nextcloud/core/js/dist/maintenance.js

312 lines
486 KiB
JavaScript
Raw Normal View History

!function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=539)}([function(e,t,n){var a,r,i;
/*!
* jQuery JavaScript Library v2.1.4
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2015-04-28T16:01Z
*/
/*!
* jQuery JavaScript Library v2.1.4
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2015-04-28T16:01Z
*/
r="undefined"!=typeof window?window:this,i=function(n,r){var i=[],s=i.slice,o=i.concat,d=i.push,u=i.indexOf,l={},c=l.toString,_=l.hasOwnProperty,m={},h=n.document,f=function(e,t){return new f.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,y=/^-ms-/,M=/-([\da-z])/gi,g=function(e,t){return t.toUpperCase()};function L(e){var t="length"in e&&e.length,n=f.type(e);return"function"!==n&&!f.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e))}f.fn=f.prototype={jquery:"2.1.4",constructor:f,selector:"",length:0,toArray:function(){return s.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:s.call(this)},pushStack:function(e){var t=f.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return f.each(this,e,t)},map:function(e){return this.pushStack(f.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:d,sort:i.sort,splice:i.splice},f.extend=f.fn.extend=function(){var e,t,n,a,r,i,s=arguments[0]||{},o=1,d=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[o]||{},o++),"object"==typeof s||f.isFunction(s)||(s={}),o===d&&(s=this,o--);o<d;o++)if(null!=(e=arguments[o]))for(t in e)n=s[t],s!==(a=e[t])&&(u&&a&&(f.isPlainObject(a)||(r=f.isArray(a)))?(r?(r=!1,i=n&&f.isArray(n)?n:[]):i=n&&f.isPlainObject(n)?n:{},s[t]=f.extend(u,i,a)):void 0!==a&&(s[t]=a));return s},f.extend({expando:"jQuery"+("2.1.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===f.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!f.isArray(e)&&e-parseFloat(e)+1>=0},isPlainObject:function(e){return"object"===f.type(e)&&!e.nodeType&&!f.isWindow(e)&&!(e.constructor&&!_.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=f.trim(e))&&(1===e.indexOf("use strict")?((t=h.createElement("script")).text=e,h.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(y,"ms-").replace(M,g)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var a=0,r=e.length,i=L(e);if(n){if(i)for(;a<r&&!1!==t.apply(e[a],n);a++);else for(a in e)if(!1===t.apply(e[a],n))break}else if(i)for(;a<r&&!1!==t.call(e[a],a,e[a]);a++);else for(a in e)if(!1===t.call(e[a],a,e[a]))break;return e},trim:function(e){return null==e?"":(e+"").replace(p,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(L(Object(e))?f.merge(n,"string"==typeof e?[e]:e):d.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,a=0,r=e.length;a<n;a++)e[r++]=t[a];return e.length=r,e},grep:function(e,t,n){for(var a=[],r=0,i=e.length,s=!n;r<i;r++)!t(e[r],r)!==s&&a.push(e[r]);return a},map:function(e,t,n){var a,r=0,i=e.length,s=[];if(L(e))for(;r<i;r++)null!=(a=t(e[r],r,n))&&s.push(a);else for(r in e)null!=(a=t(e[r],r,n))&&s.push(a);return o.apply([],s)},guid:1,proxy:function(e,t){var n,a,r;if("string"==typeof t&&(n=e[t],t=e,e=n),f.isFunction(e))return a=s.call(arguments,2),(r=function(){return e.apply(t||this,a.concat(s.call(arguments)))}).guid=e.guid=e.guid||f.guid++,r},now:Date.now,support:m}),f.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});var v=
/*!
* Sizzle CSS Selector Engine v2.2.0-pre
* http://sizzlejs.com/
*
* Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-12-16
*/
function(e){var t,n,a,r,i,s,o,d,u,l,c,_,m,h,f,p,y,M,g,L="sizzle"+1*new Date,v=e.document,Y=0,k=0,w=se(),D=se(),T=se(),b=function(e,t){return e===t&&(c=!0),0},x=1<<31,S={}.hasOwnProperty,H=[],j=H.pop,P=H.push,E=H.push,O=H.slice,C=function(e,t){for(var n=0,a=e.length;n<a;n++)if(e[n]===t)return n;return-1},A="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=N.replace("w","w#"),z="\\["+F+"*("+N+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+W+"))|)"+F+"*\\]",I=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",R=new RegExp(F+"+","g"),$=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),U=new RegExp("^"+F+"*,"+F+"*"),J=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),q=new RegExp("="+F+"*([^\\]'\"]*?)"+F+"*\\]","g"),B=new RegExp(I),V=new RegExp("^"+W+"$"),G={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+A+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ne=new RegExp("\\\\([\\da-f]{1,6}"+F+"?|("+F+")|.)","ig"),ae=function(e,t,n){var a="0x"+t-65536;return a!=a||n?t:a<0?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,1023&a|56320)},re=function(){_()};try{E.apply(H=O.call(v.childNodes),v.childNodes),H[v.childNodes.length].nodeType}catch(e){E={apply:H.length?function(e,t){P.apply(e,O.call(t))}:function(e,t){for(var n=e.length,a=0;e[n++]=t[a++];);e.length=n-1}}}function ie(e,t,a,r){var i,o,u,l,c,h,y,M,Y,k;if((t?t.ownerDocument||t:v)!==m&&_(t),a=a||[],l=(t=t||m).nodeType,"string"!=typeof e||!e||1!==l&&9!==l&&11!==l)return a;if(!r&&f){if(11!==l&&(i=Q.exec(e)))if(u=i[1]){if(9===l){if(!(o=t.getElementById(u))||!o.parentNode)return a;if(o.id===u)return a.push(o),a}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(u))&&g(t,o)&&o.id===u)return a.push(o),a}else{if(i[2])return E.apply(a,t.getElementsByTagName(e)),a;if((u=i[3])&&n.getElementsByClassName)return E.apply(a,t.getElementsByClassName(u)),a}if(n.qsa&&(!p||!p.test(e))){if(M=y=L,Y=t,k=1!==l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){for(h=s(e),(y=t.getAttribute("id"))?M=y.replace(te,"\\$&"):t.setAttribute("id",M),M="[id='"+M+"'] ",c=h.length;c--;)h[c]=M+pe(h[c]);Y=ee.test(e)&&he(t.parentNode)||t,k=h.join(",")}if(k)try{return E.apply(a,Y.querySelectorAll(k)),a}catch(e){}finally{y||t.removeAttribute("id")}}}return d(e.replace($,"$1"),t,a,r)}function se(){var e=[];return function t(n,r){return e.push(n+" ")>a.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function oe(e){return e[L]=!0,e}function de(e){var t=m.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),r=e.length;r--;)a.attrHandle[n[r]]=t}function le(e,t){var n=t&&e,a=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||x)-(~e.sourceIndex||x);if(a)return a;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ce(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function _e(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return oe(function(t){return t=+t,oe(function(n,a){for(var r,i=e([],n.length,t),s=i.length;s--;)n[r=i[s]]&&(n[r]=!(a[r]=n[r]))})})}function he(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ie.support={},i=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},_=ie.setDocument=function(e){var t,r
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Q={_bundles:{},_pluralFunctions:{},load:function(e,t){if(this._bundles[e]||"en"===pe.getLocale()){var n=s.a.Deferred(),a=n.promise();return a.then(t),n.resolve(),a}var r=this,i=pe.filePath(e,"l10n",pe.getLocale()+".json");return s.a.get(i).then(function(t){t.translations&&r.register(e,t.translations,t.pluralForm)}).then(t)},register:function(e,t,n){l.a.isUndefined(this._bundles[e])?(this._bundles[e]=t||{},this._pluralFunctions[e]=this._getPlural):l.a.extend(this._bundles[e],t)},translate:function(e,t,n,a,r){var i=r||{};l.a.defaults(i,{escape:!0});var s=t,o=(this._bundles[e]||{})[t];return void 0!==o&&(s=o),"object"===Z(n)||void 0!==a?DOMPurify.sanitize(function(e,t,n){return e.replace(/%n/g,n).replace(/{([^{}]*)}/g,function(e,n){var a=t[n];return"string"==typeof a||"number"==typeof a?i.escape?DOMPurify.sanitize(escapeHTML(a)):DOMPurify.sanitize(a):DOMPurify.sanitize(e)})}(s,n,a)):DOMPurify.sanitize(s)},translatePlural:function(e,t,n,a,r,i){var o="_"+t+"_::_"+n+"_",d=(this._bundles[e]||{})[o];if(void 0!==d){var u=d;if(s.a.isArray(u)){var l=this._pluralFunctions[e](a);return this.translate(e,u[l],r,a,i)}}return 1===a?this.translate(e,t,r,a,i):this.translate(e,n,r,a,i)},_getPlural:function(e){var t=pe.getLanguage();if("pt_BR"===t&&(t="xbr"),void 0===t||""===t)return 1==e?0:1;switch(t.length>3&&(t=t.substring(0,t.lastIndexOf("_"))),t){case"az":case"bo":case"dz":case"id":case"ja":case"jv":case"ka":case"km":case"kn":case"ko":case"ms":case"th":case"tr":case"vi":case"zh":return 0;case"af":case"bn":case"bg":case"ca":case"da":case"de":case"el":case"en":case"eo":case"es":case"et":case"eu":case"fa":case"fi":case"fo":case"fur":case"fy":case"gl":case"gu":case"ha":case"he":case"hu":case"is":case"it":case"ku":case"lb":case"ml":case"mn":case"mr":case"nah":case"nb":case"ne":case"nl":case"nn":case"no":case"oc":case"om":case"or":case"pa":case"pap":case"ps":case"pt":case"so":case"sq":case"sv":case"sw":case"ta":case"te":case"tk":case"ur":case"zu":return 1==e?0:1;case"am":case"bh":case"fil":case"fr":case"gun":case"hi":case"hy":case"ln":case"mg":case"nso":case"xbr":case"ti":case"wa":return 0==e||1==e?0:1;case"be":case"bs":case"hr":case"ru":case"sh":case"sr":case"uk":return 1==e%10&&11!=e%100?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2;case"cs":case"sk":return 1==e?0:e>=2&&e<=4?1:2;case"ga":return 1==e?0:2==e?1:2;case"lt":return 1==e%10&&11!=e%100?0:e%10>=2&&(e%100<10||e%100>=20)?1:2;case"sl":return 1==e%100?0:2==e%100?1:3==e%100||4==e%100?2:3;case"mk":return 1==e%10?0:1;case"mt":return 1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3;case"lv":return 0==e?0:1==e%10&&11!=e%100?1:2;case"pl":return 1==e?0:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?1:2;case"cy":return 1==e?0:2==e?1:8==e||11==e?2:3;case"ro":return 1==e?0:0==e||e%100>0&&e%100<20?1:2;case"ar":return 0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11&&e%100<=99?4:5;default:return 0}}},ee=Q,te=function(){return s()("html").data("locale")};r.n(X).a.registerHelper("t",function(e,t){return Q.translate(e,t)});
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/var ne={startSaving:function(e){this.startAction(e,t("core","Saving..."))},startAction:function(e,t){s()(e).text(t).removeClass("success").removeClass("error").stop(!0,!0).show()},finishedSaving:function(e,t){this.finishedAction(e,t)},finishedAction:function(e,t){"success"===t.status?this.finishedSuccess(e,t.data.message):this.finishedError(e,t.data.message)},finishedSuccess:function(e,t){s()(e).text(t).addClass("success").removeClass("error").stop(!0,!0).delay(3e3).fadeOut(900).show()},finishedError:function(e,t){s()(e).text(t).addClass("error").removeClass("success").show()}},ae=r(41),re=function(e){pe.Search.search(e,null,0,30)};re.customResults={},re.resultTypes={};var ie=re,se=window._theme||{},oe=r(1),de=r.n(oe);
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
function ue(e){for(var t,n=[],a=0,r=-1,i=0;a<e.length;){t=e.charAt(a);var s=!i&&"."===t||t>="0"&&t<="9";s!==i&&(n[++r]="",i=s),n[r]+=t,a++}return n}var le={History:{_handlers:[],_pushState:function(e,t,n){var a;if(a="string"==typeof e?e:pe.buildQueryString(e),window.history.pushState){if(t=t||location.pathname+"?"+a,navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&parseInt(navigator.userAgent.split("/").pop())<51)for(var r,i=document.querySelectorAll('[fill^="url(#"], [stroke^="url(#"], [filter^="url(#invert"]'),s=0,o=i.length;s<o;s++)(r=i[s]).style.fill=r.style.fill,r.style.stroke=r.style.stroke,r.removeAttribute("filter"),r.setAttribute("filter","url(#invert)");n?window.history.replaceState(e,"",t):window.history.pushState(e,"",t)}else window.location.hash="?"+a,this._cancelPop=!0},pushState:function(e,t){return this._pushState(e,t,!1)},replaceState:function(e,t){return this._pushState(e,t,!0)},addOnPopStateHandler:function(e){this._handlers.push(e)},_parseHashQuery:function(){var e=window.location.hash,t=e.indexOf("?");return t>=0?e.substr(t+1):e.length?e.substr(1):""},_decodeQuery:function(e){return e.replace(/\+/g," ")},parseUrlQuery:function(){var e,t=this._parseHashQuery();return t&&(e=pe.parseQueryString(this._decodeQuery(t))),(e=l.a.extend(e||{},pe.parseQueryString(this._decodeQuery(location.search))))||{}},_onPopState:function(e){var t;if(this._cancelPop)this._cancelPop=!1;else if(this._handlers.length){t=e&&e.state,l.a.isString(t)?t=pe.parseQueryString(t):t||(t=this.parseUrlQuery()||{});for(var n=0;n<this._handlers.length;n++)this._handlers[n](t)}}},humanFileSize:r(42).a,computerFileSize:function(e){if("string"!=typeof e)return null;var t=e.toLowerCase().trim(),n=null,a=t.match(/^[\s+]?([0-9]*)(\.([0-9]+))?( +)?([kmgtp]?b?)$/i);return null===a?null:(n=parseFloat(t),isFinite(n)?(a[5]&&(n*={b:1,k:1024,kb:1024,mb:1048576,m:1048576,gb:1073741824,g:1073741824,tb:1099511627776,t:1099511627776,pb:0x4000000000000,p:0x4000000000000}[a[5]]),n=Math.round(n)):null)},formatDate:function(e,t){return t=t||"LLL",de()(e).format(t)},relativeModifiedDate:function(e){var n=de()().diff(de()(e));return n>=0&&n<45e3?t("core","seconds ago"):de()(e).fromNow()},isIE:function(){return s()("html").hasClass("ie")},getScrollBarWidth:function(){if(this._scrollBarWidth)return this._scrollBarWidth;var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var a=e.offsetWidth;return n===a&&(a=t.clientWidth),document.body.removeChild(t),this._scrollBarWidth=n-a,this._scrollBarWidth},stripTime:function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())},naturalSortCompare:function(e,t){var n,a=ue(e),r=ue(t);for(n=0;a[n]&&r[n];n++)if(a[n]!==r[n]){var i=Number(a[n]),s=Number(r[n]);return i==a[n]&&s==r[n]?i-s:a[n].localeCompare(r[n],pe.getLanguage())}return a.length-r.length},waitFor:function(e,t){!function n(){!0!==e()&&setTimeout(n,t)}()},isCookieSetToValue:function(e,t){for(var n=document.cookie.split(";"),a=0;a<n.length;a++){var r=n[a].split("=");if(r[0].trim()===e&&r[1].trim()===t)return!0}return!1}},ce=window._oc_debug,_e=window._oc_webroot;
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/if(void 0===_e){var me=(_e=location.pathname).indexOf("/index.php/");_e=-1!==me?_e.substr(0,me):_e.substr(0,_e.lastIndexOf("/"))}var he,fe=_e,pe=a.a={coreApps:C.i,menuSpeed:C.j,PERMISSION_ALL:C.a,PERMISSION_CREATE:C.b,PERMISSION_DELETE:C.c,PERMISSION_NONE:C.d,PERMISSION_READ:C.e,PERMISSION_SHARE:C.f,PERMISSION_UPDATE:C.g,TAG_FAVORITE:C.h,fileIsBlacklisted:function(e){return!!e.match(O.blacklist_files_regex)},addScript:function(e,t,n){var a;console.warn("OC.addScript is deprecated, use OCP.Loader.loadScript instead");var r=OC.filePath(e,"js",t+".js");return o[r]?n&&n():(a=s.a.Deferred(),s.a.getScript(r,function(){return a.resolve()}),o[r]=a),o[r]},addStyle:function(e,t){console.warn("OC.addStyle is deprecated, use OCP.Loader.loadStylesheet instead");var n=OC.filePath(e,"css",t+".css");-1===d.indexOf(n)&&(d.push(n),document.createStyleSheet?document.createStyleSheet(n):(t=s()('<link rel="stylesheet" type="text/css" href="'+n+'"/>'),s()("head").append(t)))},Apps:m.a,AppConfig:p,appConfig:f,appSettings:function(e){if(console.warn("OC.appSettings is deprecated and will be removed with Nextcloud 18"),void 0===e||void 0===e.appid)throw{name:"MissingParameter",message:"The parameter appid is missing"};var n={scriptName:"settings.php",cache:!0};s.a.extend(n,e);var a=s()("#appsettings");if(0===a.length)throw{name:"MissingDOMElement",message:'There has be be an element with id "appsettings" for the popup to show.'};var r=s()("#appsettings_popup");if(0===r.length&&(s()("body").prepend('<div class="popup hidden" id="appsettings_popup"></div>'),(r=s()("#appsettings_popup")).addClass(a.hasClass("topright")?"topright":"bottomleft")),r.is(":visible"))r.hide().remove();else{var i=a.hasClass("topright")?"up":"left";s.a.get(Object(y.a)(n.appid,"",n.scriptName),function(e){r.html(e).ready(function(){if(r.prepend('<span class="arrow '+i+'"></span><h2>'+t("core","Settings")+'</h2><a class="close"></a>').show(),r.find(".close").bind("click",function(){r.remove()}),void 0!==n.loadJS){var e;if(!0===n.loadJS)e="settings.js";else{if("string"!=typeof n.loadJS)throw{name:"InvalidParameter",message:'The "loadJS" parameter must be either boolean or a string.'};e=n.loadJS}n.cache&&s.a.ajaxSetup({cache:!0}),s.a.getScript(Object(y.a)(n.appid,"js",e)).fail(function(e,t,n){throw n})}}).show()},"html")}},appswebroots:M,Backbone:H,ContactsMenu:A.a,config:O,currentUser:W,dialogs:R,EventSource:J,getCurrentUser:function(){return{uid:W,displayName:N}},isUserAdmin:function(){return K},L10N:ee,_ajaxConnectionLostHandler:_,_processAjaxError:function(e){(0!==e.status||"abort"!==e.statusText&&"timeout"!==e.statusText&&!pe._reloadCalled)&&(l.a.contains([302,303,307,401],e.status)&&pe.currentUser?setTimeout(function(){if(!pe._userIsNavigatingAway&&!pe._reloadCalled){var e=0,t=setInterval(function(){c.showUpdate(n("core","Problem loading page, reloading in %n second","Problem loading page, reloading in %n seconds",5-e)),e>=5&&(clearInterval(t),pe.reload()),e++},1e3);pe._reloadCalled=!0}},100):0===e.status&&setTimeout(function(){pe._userIsNavigatingAway||pe._reloadCalled||pe._ajaxConnectionLostHandler()},100))},registerXHRForErrorProcessing:function(e){e.addEventListener&&(e.addEventListener("load",function(){4===e.readyState&&(e.status>=200&&e.status<300||304===e.status||s()(document).trigger(new s.a.Event("ajaxError"),e))}),e.addEventListener("error",function(){s()(document).trigger(new s.a.Event("ajaxError"),e)}))},_capabilities:B(),getCapabilities:B,hideMenus:G,registerMenu:function(e,t,n,a){t.addClass("menu"),e.on("A"===e.prop("tagName")?"click.menu":"click.menu keyup.menu",function(r){r.preventDefault(),r.key&&"Enter"!==r.key||(t.is(V)?G():(V&&G(),!0===a&&t.parent().addClass("openedMenu"),e.attr("aria-expanded",!0),t.slideToggle(C.j,n),V=t,e))})},showMenu:function(e,t,n){t.is(V)||(G(),V=t,e,t.trigger(new s.a.Event("beforeShow")),t.show(),t.trigger(new s.a.Event("afterShow")),l.a.isFunction(n)&&n())},unregisterMenu:function(e,t){t.is(V)&&G(),e.off("click.menu").removeClass("menutoggle"),t.removeClass("menu")},basename:function(e){return e.replace(/\\/g,"/").repla
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/Object($.c)(function(e){return OC.requestToken=e})},,function(e,t,n){"use strict";n.d(t,"i",function(){return a}),n.d(t,"j",function(){return r}),n.d(t,"d",function(){return i}),n.d(t,"b",function(){return s}),n.d(t,"e",function(){return o}),n.d(t,"g",function(){return d}),n.d(t,"c",function(){return u}),n.d(t,"f",function(){return l}),n.d(t,"a",function(){return c}),n.d(t,"h",function(){return _});
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software = you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation either version 3 of the
* License or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not see <http://www.gnu.org/licenses/>.
*/
var a=["","admin","log","core/search","settings","core","3rdparty"],r=50,i=0,s=4,o=1,d=2,u=8,l=16,c=31,_="_$!<Favorite>!$_"},function(e,t,n){"use strict";n.d(t,"e",function(){return o}),n.d(t,"h",function(){return d}),n.d(t,"g",function(){return u}),n.d(t,"f",function(){return l}),n.d(t,"b",function(){return c}),n.d(t,"d",function(){return _}),n.d(t,"a",function(){return m}),n.d(t,"c",function(){return h});var a=n(2),r=n.n(a),i=n(3),s=n(5),o=function(e,t){return m(e,"",t)},d=function(e){return h()+"/remote.php/"+e},u=function(e){return window.location.protocol+"//"+window.location.host+d(e)},l=function(e,t){return t=2!==t?1:2,window.location.protocol+"//"+window.location.host+h()+"/ocs/v"+t+".php/"+e+"/"},c=function(e,t,n){var a=n||{};r.a.defaults(a,{escape:!0});var s=function(e,t){return t=t||[],e.replace(/{([^{}]*)}/g,function(e,n){var r=t[n];return a.escape?"string"==typeof r||"number"==typeof r?encodeURIComponent(r):encodeURIComponent(e):"string"==typeof r||"number"==typeof r?r:e})};return"/"!==e.charAt(0)&&(e="/"+e),!0===i.a.config.modRewriteWorking?h()+s(e,t):h()+"/index.php"+s(e,t)},_=function(e,t){return-1===t.indexOf(".")?m(e,"img",t+".svg"):m(e,"img",t)},m=function(e,t,n){var a=-1!==s.i.indexOf(e),r=h();return"php"!==n.substring(n.length-3)||a?"php"===n.substring(n.length-3)||a?(r+="settings"!==e&&"core"!==e&&"search"!==e||"ajax"!==t?"/":"/index.php/",a||(r+="apps/"),""!==e&&(r+=e+="/"),t&&(r+=t+"/"),r+=n):(r=i.a.appswebroots[e],t&&(r+="/"+t+"/"),"/"!==r.substring(r.length-1)&&(r+="/"),r+=n):(r+="/index.php/apps/"+e,"index.php"!==n&&(r+="/",t&&(r+=encodeURI(t+"/")),r+=n)),r},h=function(){return i.a.webroot}},,,,,function(e,t,n){"use strict";t.__esModule=!0,t.extend=o,t.indexOf=function(e,t){for(var n=0,a=e.length;n<a;n++)if(e[n]===t)return n;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}if(!i.test(e))return e;return e.replace(r,s)},t.isEmpty=function(e){return!e&&0!==e||!(!l(e)||0!==e.length)},t.createFrame=function(e){var t=o({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},r=/[&<>"'`=]/g,i=/[&<>"'`=]/;function s(e){return a[e]}function o(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var d=Object.prototype.toString;t.toString=d;var u=function(e){return"function"==typeof e};u(/x/)&&(t.isFunction=u=function(e){return"function"==typeof e&&"[object Function]"===d.call(e)}),t.isFunction=u;var l=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===d.call(e)};t.isArray=l},function(e,t,n){(function(a){var r,i,s;s="object"==typeof self&&self.self===self&&self||"object"==typeof a&&a.global===a&&a,r=[n(2),n(0),t],void 0===(i=function(e,t,n){s.Backbone=function(e,t,n,a){var r=e.Backbone,i=Array.prototype.slice;t.VERSION="1.4.0",t.$=a,t.noConflict=function(){return e.Backbone=r,this},t.emulateHTTP=!1,t.emulateJSON=!1;var s,o=t.Events={},d=/\s+/,u=function(e,t,a,r,i){var s,o=0;if(a&&"object"==typeof a){void 0!==r&&"context"in i&&void 0===i.context&&(i.context=r);for(s=n.keys(a);o<s.length;o++)t=u(e,t,s[o],a[s[o]],i)}else if(a&&d.test(a))for(s=a.split(d);o<s.length;o++)t=e(t,s[o],r,i);else t=e(t,a,r,i);return t};o.on=function(e,t,n){if(this._events=u(l,this._events||{},e,t,{context:n,ctx:this,listening:s}),s){var a=this._listeners||(this._listeners={});a[s.id]=s,s.interop=!1}return this},o.listenTo=function(e,t,a){if(!e)return this;var r=e._listenId||(e._listenId=n.uniqueId("l")),i=this._listeningTo||(this._listeningTo={}),o=s=i[r];o||(this._listenId||(this._listenId=n.uniqueId("l")),o=s=i[r]=new p(this,e));var d=c(e,t,a,this);if(s=void 0,d)throw d;return o.interop&&o.on(t,a),this};var l=function(e,t,n,a){if(n){var r=e[t]||(e[t]=[]),i=a.context,s=a.ctx,o=a.listening;o&&o.count++,r.push({callback:n,context:i,ctx:i||s,listening:o})
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var a=document.getElementsByTagName("head")[0].getAttribute("data-requesttoken"),r=[],i=function(){return a},s=function(e){return r.push(e)},o=function(e){a=e,r.forEach(function(e){return e(a)})}},,function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"getApps",function(){return o}),n.d(t,"getKeys",function(){return d}),n.d(t,"getValue",function(){return u}),n.d(t,"setValue",function(){return l}),n.d(t,"deleteKey",function(){return c});var a=n(0),r=n.n(a),i=n(3);
/**
* @copyright Copyright (c) 2016 Joas Schilling <coding@schilljs.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
function s(t,n,a){"post"!==t&&"delete"!==t||!i.a.PasswordConfirmation.requiresPasswordConfirmation()?(a=a||{},r.a.ajax({type:t.toUpperCase(),url:i.a.linkToOCS("apps/provisioning_api/api/v1",2)+"config/apps"+n,data:a.data||{},success:a.success,error:a.error})):i.a.PasswordConfirmation.requirePasswordConfirmation(e.bind(s,this,t,n,a))}function o(e){s("get","",e)}function d(e,t){s("get","/"+e,t)}function u(e,t,n,a){(a=a||{}).data={defaultValue:n},s("get","/"+e+"/"+t,a)}function l(e,t,n,a){(a=a||{}).data={value:n},s("post","/"+e+"/"+t,a)}function c(e,t,n){s("delete","/"+e+"/"+t,n)}}.call(this,n(2))},,,function(e,t,n){"use strict";
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/t.a={}},function(e,t,n){"use strict";t.__esModule=!0;var a=["description","fileName","lineNumber","message","name","number","stack"];function r(e,t){var n=t&&t.loc,i=void 0,s=void 0;n&&(e+=" - "+(i=n.start.line)+":"+(s=n.start.column));for(var o=Error.prototype.constructor.call(this,e),d=0;d<a.length;d++)this[a[d]]=o[a[d]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{n&&(this.lineNumber=i,Object.defineProperty?Object.defineProperty(this,"column",{value:s,enumerable:!0}):this.column=s)}catch(e){}}r.prototype=new Error,t.default=r,e.exports=t.default},,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,,,,function(e,t,n){"use strict";var a=n(306),r=n(542),i=Object.prototype.toString;function s(e){return"[object Array]"===i.call(e)}function o(e){return null!==e&&"object"==typeof e}function d(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),s(e))for(var n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}e.exports={isArray:s,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:r,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:o,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:d,isStream:function(e){return o(e)&&d(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:u,merge:function e(){var t={};function n(n,a){"object"==typeof t[a]&&"object"==typeof n?t[a]=e(t[a],n):t[a]=n}for(var a=0,r=arguments.length;a<r;a++)u(arguments[a],n);return t},extend:function(e,t,n){return u(t,function(t,r){e[r]=n&&"function"==typeof t?a(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},,function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return a}),n.d(t,"a",function(){return r});
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var a=function(e){var t,n,a,r,i={};if(!e)return null;(n=e.indexOf("?"))>=0&&(e=e.substr(n+1)),t=e.replace(/\+/g,"%20").split("&");for(var s=0;s<t.length;s++){var o=t[s];(a=(n=o.indexOf("="))>=0?[o.substr(0,n),o.substr(n+1)]:[o]).length&&((r=decodeURIComponent(a[0]))&&(a.length>1?i[r]=decodeURIComponent(a[1]):i[r]=null))}return i},r=function(t){return t?e.map(t,function(e,t){var n=encodeURIComponent(t);return null!=e&&(n+="="+encodeURIComponent(e)),n}).join("&"):""}}).call(this,n(0))},,,,,,,function(e,t,n){"use strict";n.d(t,"b",function(){return o});var a=n(0),r=n.n(a),i=!1,s={enableDynamicSlideToggle:function(){i=!0},showAppSidebar:function(e){(e||r()("#app-sidebar")).removeClass("disappear").show(),r()("#app-content").trigger(new r.a.Event("appresized"))},hideAppSidebar:function(e){(e||r()("#app-sidebar")).hide().addClass("disappear"),r()("#app-content").trigger(new r.a.Event("appresized"))}},o=function(){var e=r()("[data-apps-slide-toggle]");0===e.length&&r()("#app-navigation").addClass("without-app-settings"),r()(document).click(function(t){i&&(e=r()("[data-apps-slide-toggle]")),e.each(function(e,n){var a=r()(n).data("apps-slide-toggle"),i=r()(a);function s(){i.slideUp(4*OC.menuSpeed,function(){i.trigger(new r.a.Event("hide"))}),i.removeClass("opened"),r()(n).removeClass("opened")}if(!i.is(":animated"))if(r()(n).is(r()(t.target).closest("[data-apps-slide-toggle]")))i.is(":visible")?s():function(){i.slideDown(4*OC.menuSpeed,function(){i.trigger(new r.a.Event("show"))}),i.addClass("opened"),r()(n).addClass("opened");var e=r()(a+" [autofocus]");1===e.length&&e.focus()}();else{var o=r()(t.target).closest(a);i.is(":visible")&&o[0]!==i[0]&&s()}})})};t.a=s},function(e,t){"undefined"==typeof dav&&(dav={}),dav._XML_CHAR_MAP={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&apos;"},dav._escapeXml=function(e){return e.replace(/[<>&"']/g,function(e){return dav._XML_CHAR_MAP[e]})},dav.Client=function(e){var t;for(t in e)this[t]=e[t]},dav.Client.prototype={baseUrl:null,userName:null,password:null,xmlNamespaces:{"DAV:":"d"},propFind:function(e,t,n,a){void 0===n&&(n="0"),n=""+n,(a=a||{}).Depth=n,a["Content-Type"]="application/xml; charset=utf-8";var r,i='<?xml version="1.0"?>\n<d:propfind ';for(r in this.xmlNamespaces)i+=" xmlns:"+this.xmlNamespaces[r]+'="'+r+'"';for(var s in i+=">\n <d:prop>\n",t)if(t.hasOwnProperty(s)){var o=this.parseClarkNotation(t[s]);this.xmlNamespaces[o.namespace]?i+=" <"+this.xmlNamespaces[o.namespace]+":"+o.name+" />\n":i+=" <x:"+o.name+' xmlns:x="'+o.namespace+'" />\n'}return i+=" </d:prop>\n",i+="</d:propfind>",this.request("PROPFIND",e,a,i).then(function(e){return"0"===n?{status:e.status,body:e.body[0],xhr:e.xhr}:{status:e.status,body:e.body,xhr:e.xhr}}.bind(this))},_renderPropSet:function(e){var t=" <d:set>\n <d:prop>\n";for(var n in e)if(e.hasOwnProperty(n)){var a,r=this.parseClarkNotation(n),i=e[n];"d:resourcetype"!==(a=this.xmlNamespaces[r.namespace]?this.xmlNamespaces[r.namespace]+":"+r.name:"x:"+r.name+' xmlns:x="'+r.namespace+'"')&&(i=dav._escapeXml(i)),t+=" <"+a+">"+i+"</"+a+">\n"}return t+=" </d:prop>\n",t+=" </d:set>\n"},propPatch:function(e,t,n){(n=n||{})["Content-Type"]="application/xml; charset=utf-8";var a,r='<?xml version="1.0"?>\n<d:propertyupdate ';for(a in this.xmlNamespaces)r+=" xmlns:"+this.xmlNamespaces[a]+'="'+a+'"';return r+=">\n"+this._renderPropSet(t),r+="</d:propertyupdate>",this.request("PROPPATCH",e,n,r).then(function(e){return{status:e.status,body:e.body,xhr:e.xhr}}.bind(this))},mkcol:function(e,t,n){var a="";if((n=n||{})["Content-Type"]="application/xml; charset=utf-8",t){var r;for(r in a='<?xml version="1.0"?>\n<d:mkcol',this.xmlNamespaces)a+=" xmlns:"+this.xmlNamespaces[r]+'="'+r+'"';a+=">\n"+this._renderPropSet(t),a+="</d:mkcol>"}return this.request("MKCOL",e,n,a).then(function(e){return{status:e.status,body:e.body,xhr:e.xhr}}.bind(this))},request:function(e,t,n,a){var r,i=this,s=this.xhrProvider();for(r in n=n||{},this.userName&&(n.Authorization="Basic "+btoa(this.userName+":"+this.password)),s.open(e,this.resolveUrl(t),!0),n)s.setRequestHeader(r
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/n.a={callback:null,pageLoadTime:null,init:function(){o()(".password-confirm-required").on("click",i.a.bind(this.requirePasswordConfirmation,this)),this.pageLoadTime=u.a.now()},requiresPasswordConfirmation:function(){var e=this.pageLoadTime-1e3*nc_pageLoad,t=u.a.now()-(e+1e3*nc_lastLogin);return backendAllowsPasswordConfirmation&&t>18e5},requirePasswordConfirmation:function(e,n,a){n=void 0!==n?n:{};var r={title:t("core","Authentication required"),text:t("core","This action requires you to confirm your password"),confirm:t("core","Confirm"),label:t("core","Password"),error:""},s=i.a.extend(r,n),d=this;this.requiresPasswordConfirmation()&&l.a.dialogs.prompt(s.text,s.title,function(e,t){e&&""!==t?d._confirmPassword(t,s):i.a.isFunction(a)&&a()},!0,s.label,!0).then(function(){var e=o()(".oc-dialog:visible");if(e.find(".ui-icon").remove(),e.addClass("password-confirmation"),""!==s.error)var t=o()("<p></p>").addClass("msg warning").text(s.error);e.find(".oc-dialog-content").append(t),e.find(".oc-dialog-buttonrow").addClass("aside");var n=e.find("button");n.eq(0).hide(),n.eq(1).text(s.confirm)}),this.callback=e},_confirmPassword:function(e,n){var a=this;o.a.ajax({url:l.a.generateUrl("/login/confirm"),data:{password:e},type:"POST",success:function(e){nc_lastLogin=e.lastLogin,i.a.isFunction(a.callback)&&a.callback()},error:function(){n.error=t("core","Failed to authenticate, try again"),l.a.PasswordConfirmation.requirePasswordConfirmation(a.callback,n)}})}}},function(e,t,n){"use strict";
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
function a(e,t){var n=["B","KB","MB","GB","TB"],a=e>0?Math.floor(Math.log(e)/Math.log(1024)):0,r=n[a=Math.min(n.length-1,a)],i=(e/Math.pow(1024,a)).toFixed(1);return!0===t&&0===a?"0.0"!==i?"< 1 KB":"0 KB":(i=a<2?parseFloat(i).toFixed(0):".0"===i.substr(i.length-2,2)?i.substr(0,i.length-2):parseFloat(i).toLocaleString(OC.getCanonicalLocale()))+" "+r}n.d(t,"a",function(){return a})},,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.HandlebarsEnvironment=u;var r=n(11),i=a(n(21)),s=n(199),o=n(207),d=a(n(209));t.VERSION="4.1.2";t.COMPILER_REVISION=7;t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0"};function u(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},s.registerDefaultHelpers(this),o.registerDefaultDecorators(this)}u.prototype={constructor:u,logger:d.default,log:d.default.log,registerHelper:function(e,t){if("[object Object]"===r.toString.call(e)){if(t)throw new i.default("Arg not supported with multiple helpers");r.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if("[object Object]"===r.toString.call(e))r.extend(this.partials,e);else{if(void 0===t)throw new i.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if("[object Object]"===r.toString.call(e)){if(t)throw new i.default("Arg not supported with multiple decorators");r.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]}};var l=d.default.log;t.log=l,t.createFrame=r.createFrame,t.logger=d.default},function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(1))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},a=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يو<EFBFBD>
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,n){"use strict";var a=n(265),r=n(30),i=n(553),s=n(554);function o(e){this.defaults=e,this.interceptors={request:new i,response:new i}}o.prototype.request=function(e){"string"==typeof e&&(e=r.merge({url:arguments[0]},arguments[1])),(e=r.merge(a,{method:"get"},this.defaults,e)).method=e.method.toLowerCase();var t=[s,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},r.forEach(["delete","get","head","options"],function(e){o.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}}),r.forEach(["post","put","patch"],function(e){o.prototype[e]=function(t,n,a){return this.request(r.merge(a||{},{method:e,url:t,data:n}))}}),e.exports=o},function(e,t){var n,a,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{a="function"==typeof clearTimeout?clearTimeout:s}catch(e){a=s}}();var d,u=[],l=!1,c=-1;function _(){l&&d&&(l=!1,d.length?u=d.concat(u):c=-1,u.length&&m())}function m(){if(!l){var e=o(_);l=!0;for(var t=u.length;t;){for(d=u,u=[];++c<t;)d&&d[c].run();c=-1,t=u.length}d=null,l=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===s||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||o(m)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){"use strict";var a=n(30);e.exports=function(e,t){a.forEach(e,function(n,a){a!==t&&a.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[a])})}},function(e,t,n){"use strict";var a=n(308);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(a("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,a,r){return e.config=t,n&&(e.code=n),e.request=a,e.response=r,e}},function(e,t,n){"use strict";var a=n(30);function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(a.isURLSearchParams(t))i=t.toString();else{var s=[];a.forEach(t,function(e,t){null!=e&&(a.isArray(e)?t+="[]":e=[e],a.forEach(e,function(e){a.isDate(e)?e=e.toISOString():a.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))}))}),i=s.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},function(e,t,n){"use strict";var a=n(30),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,s={};r
//# sourceMappingURL=maintenance.js.map