server/core/js/dist/maintenance.js

305 lines
548 KiB
JavaScript
Raw Normal View History

!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},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=775)}([function(e,t,n){var r,a,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
*/a="undefined"!=typeof window?window:this,i=function(n,a){var i=[],s=i.slice,o=i.concat,u=i.push,d=i.indexOf,l={},c=l.toString,f=l.hasOwnProperty,_={},m=n.document,h=function(e,t){return new h.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,y=/^-ms-/,g=/-([\da-z])/gi,M=function(e,t){return t.toUpperCase()};function v(e){var t="length"in e&&e.length,n=h.type(e);return"function"!==n&&!h.isWindow(e)&&(!(1!==e.nodeType||!t)||"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}h.fn=h.prototype={jquery:"2.1.4",constructor:h,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=h.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return h.each(this,e,t)},map:function(e){return this.pushStack(h.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:u,sort:i.sort,splice:i.splice},h.extend=h.fn.extend=function(){var e,t,n,r,a,i,s=arguments[0]||{},o=1,u=arguments.length,d=!1;for("boolean"==typeof s&&(d=s,s=arguments[o]||{},o++),"object"==typeof s||h.isFunction(s)||(s={}),o===u&&(s=this,o--);o<u;o++)if(null!=(e=arguments[o]))for(t in e)n=s[t],s!==(r=e[t])&&(d&&r&&(h.isPlainObject(r)||(a=h.isArray(r)))?(a?(a=!1,i=n&&h.isArray(n)?n:[]):i=n&&h.isPlainObject(n)?n:{},s[t]=h.extend(d,i,r)):void 0!==r&&(s[t]=r));return s},h.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"===h.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!h.isArray(e)&&e-parseFloat(e)+1>=0},isPlainObject:function(e){return!("object"!==h.type(e)||e.nodeType||h.isWindow(e)||e.constructor&&!f.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=h.trim(e))&&(1===e.indexOf("use strict")?((t=m.createElement("script")).text=e,m.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(y,"ms-").replace(g,M)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r=0,a=e.length,i=v(e);if(n){if(i)for(;r<a&&!1!==t.apply(e[r],n);r++);else for(r in e)if(!1===t.apply(e[r],n))break}else if(i)for(;r<a&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(p,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(v(Object(e))?h.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:d.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,a=e.length;r<n;r++)e[a++]=t[r];return e.length=a,e},grep:function(e,t,n){for(var r=[],a=0,i=e.length,s=!n;a<i;a++)!t(e[a],a)!==s&&r.push(e[a]);return r},map:function(e,t,n){var r,a=0,i=e.length,s=[];if(v(e))for(;a<i;a++)null!=(r=t(e[a],a,n))&&s.push(r);else for(a in e)null!=(r=t(e[a],a,n))&&s.push(r);return o.apply([],s)},guid:1,proxy:function(e,t){var n,r,a;if("string"==typeof t&&(n=e[t],t=e,e=n),h.isFunction(e))return r=s.call(arguments,2),(a=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||h.guid++,a},now:Date.now,support:_}),h.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()}));var L=
/*!
* 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,r,a,i,s,o,u,d,l,c,f,_,m,h,p,y,g,M,v="sizzle"+1*new Date,L=e.document,Y=0,k=0,w=se(),b=se(),T=se(),D=function(e,t){return e===t&&(c=!0),0},x=1<<31,S={}.hasOwnProperty,H=[],j=H.pop,O=H.push,P=H.push,E=H.slice,A=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},C="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#"),R="\\["+F+"*("+N+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+W+"))|)"+F+"*\\]",I=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",z=new RegExp(F+"+","g"),U=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),$=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("^"+R),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("^(?:"+C+")$","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,Q=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ne=new RegExp("\\\\([\\da-f]{1,6}"+F+"?|("+F+")|.)","ig"),re=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},ae=function(){f()};try{P.apply(H=E.call(L.childNodes),L.childNodes),H[L.childNodes.length].nodeType}catch(e){P={apply:H.length?function(e,t){O.apply(e,E.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ie(e,t,r,a){var i,o,d,l,c,m,y,g,Y,k;if((t?t.ownerDocument||t:L)!==_&&f(t),r=r||[],l=(t=t||_).nodeType,"string"!=typeof e||!e||1!==l&&9!==l&&11!==l)return r;if(!a&&h){if(11!==l&&(i=Z.exec(e)))if(d=i[1]){if(9===l){if(!(o=t.getElementById(d))||!o.parentNode)return r;if(o.id===d)return r.push(o),r}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(d))&&M(t,o)&&o.id===d)return r.push(o),r}else{if(i[2])return P.apply(r,t.getElementsByTagName(e)),r;if((d=i[3])&&n.getElementsByClassName)return P.apply(r,t.getElementsByClassName(d)),r}if(n.qsa&&(!p||!p.test(e))){if(g=y=v,Y=t,k=1!==l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){for(m=s(e),(y=t.getAttribute("id"))?g=y.replace(te,"\\$&"):t.setAttribute("id",g),g="[id='"+g+"'] ",c=m.length;c--;)m[c]=g+pe(m[c]);Y=ee.test(e)&&me(t.parentNode)||t,k=m.join(",")}if(k)try{return P.apply(r,Y.querySelectorAll(k)),r}catch(e){}finally{y||t.removeAttribute("id")}}}return u(e.replace(U,"$1"),t,r,a)}function se(){var e=[];return function t(n,a){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=a}}function oe(e){return e[v]=!0,e}function ue(e){var t=_.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),a=e.length;a--;)r.attrHandle[n[a]]=t}function le(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||x)-(~e.sourceIndex||x);if(r)return r;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 fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function _e(e){return oe((function(t){return t=+t,oe((function(n,r){for(var a,i=e([],n.length,t),s=i.length;s--;)n[a=i[s]]&&(n[a]=!(r[a]=n[a]))}))}))}function me(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},f=ie.setDocument=function(e){var
/**
* @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/>.
*/$.fallBackSources=[],$.iframeCount=0,$.fallBackCallBack=function(e,t,n){$.fallBackSources[e].fallBackCallBack(t,n)},$.prototype={typelessListeners:[],iframe:null,listeners:{},useFallBack:!1,fallBackCallBack:function(e,t){var n;if(!this.closed)if(e){if(void 0!==this.listeners.done)for(n=0;n<this.listeners[e].length;n++)this.listeners[e][n](t)}else for(n=0;n<this.typelessListeners.length;n++)this.typelessListeners[n](t)},lastLength:0,listen:function(e,t){t&&t.call&&(e?this.useFallBack?(this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)):this.source.addEventListener(e,(function(e){void 0!==e.data?t(JSON.parse(e.data)):t("")}),!1):this.typelessListeners.push(t))},close:function(){this.closed=!0,void 0!==this.source&&this.source.close()}};var J=$,q=window._oc_capabilities||{},B=function(){return q},V=null,G=function(e){if(V){var t=V;V.trigger(new o.a.Event("beforeHide")),V.slideUp(A.j,(function(){t.trigger(new o.a.Event("afterHide")),e&&e.apply(this,arguments)}))}o()(".menutoggle").attr("aria-expanded",!1),o()(".openedMenu").removeClass("openedMenu"),V=null,null},K=!!window._oc_isadmin,X=a(22),Q={startSaving:function(e){this.startAction(e,t("core","Saving..."))},startAction:function(e,t){o()(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){o()(e).text(t).addClass("success").removeClass("error").stop(!0,!0).delay(3e3).fadeOut(900).show()},finishedError:function(e,t){o()(e).text(t).addClass("error").removeClass("success").show()}},Z=a(88),ee=function(e){fe.Search.search(e,null,0,30)};
/**
* @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/>.
*/ee.customResults={},ee.resultTypes={};var te=ee,ne=window._theme||{},re=a(1),ae=a.n(re);
/*
* @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 ie(e){for(var t,n=[],r=0,a=-1,i=0;r<e.length;){t=e.charAt(r);var s=!i&&"."===t||t>="0"&&t<="9";s!==i&&(n[++a]="",i=s),n[a]+=t,r++}return n}var se={History:{_handlers:[],_pushState:function(e,t,n){var r;if(r="string"==typeof e?e:fe.buildQueryString(e),window.history.pushState){if(t=t||location.pathname+"?"+r,navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&parseInt(navigator.userAgent.split("/").pop())<51)for(var a,i=document.querySelectorAll('[fill^="url(#"], [stroke^="url(#"], [filter^="url(#invert"]'),s=0,o=i.length;s<o;s++)(a=i[s]).style.fill=a.style.fill,a.style.stroke=a.style.stroke,a.removeAttribute("filter"),a.setAttribute("filter","url(#invert)");n?window.history.replaceState(e,"",t):window.history.pushState(e,"",t)}else window.location.hash="?"+r,this._cancelPop=!0},pushState:function(e,t){this._pushState(e,t,!1)},replaceState:function(e,t){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=fe.parseQueryString(this._decodeQuery(t))),(e=c.a.extend(e||{},fe.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,c.a.isString(t)?t=fe.parseQueryString(t):t||(t=this.parseUrlQuery()||{});for(var n=0;n<this._handlers.length;n++)this._handlers[n](t)}}},humanFileSize:a(89).a,computerFileSize:function(e){if("string"!=typeof e)return null;var t=e.toLowerCase().trim(),n=null,r=t.match(/^[\s+]?([0-9]*)(\.([0-9]+))?( +)?([kmgtp]?b?)$/i);return null===r?null:(n=parseFloat(t),isFinite(n)?(r[5]&&(n*={b:1,k:1024,kb:1024,mb:1048576,m:1048576,gb:1073741824,g:1073741824,tb:1099511627776,t:1099511627776,pb:0x4000000000000,p:0x4000000000000}[r[5]]),n=Math.round(n)):null)},formatDate:function(e,t){return t=t||"LLL",ae()(e).format(t)},relativeModifiedDate:function(e){var n=ae()().diff(ae()(e));return n>=0&&n<45e3?t("core","seconds ago"):ae()(e).fromNow()},isIE:function(){return o()("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 r=e.offsetWidth;return n===r&&(r=t.clientWidth),document.body.removeChild(t),this._scrollBarWidth=n-r,this._scrollBarWidth},stripTime:function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())},naturalSortCompare:function(e,t){var n,r=ie(e),a=ie(t);for(n=0;r[n]&&a[n];n++)if(r[n]!==a[n]){var i=Number(r[n]),s=Number(a[n]);return i==r[n]&&s==a[n]?i-s:r[n].localeCompare(a[n],fe.getLanguage())}return r.length-a.length},waitFor:function(e,t){!function n(){!0!==e()&&setTimeout(n,t)}()},isCookieSetToValue:function(e,t){for(var n=document.cookie.split(";"),r=0;r<n.length;r++){var a=n[r].split("=");if(a[0].trim()===e&&a[1].trim()===t)return!0}return!1}},oe=window._oc_debug,ue=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===ue){var de=(ue=location.pathname).indexOf("/index.php/");ue=-1!==de?ue.substr(0,de):ue.substr(0,ue.lastIndexOf("/"))}var le,ce=ue,fe=r.a={coreApps:A.i,menuSpeed:A.j,PERMISSION_ALL:A.a,PERMISSION_CREATE:A.b,PERMISSION_DELETE:A.c,PERMISSION_NONE:A.d,PERMISSION_READ:A.e,PERMISSION_SHARE:A.f,PERMISSION_UPDATE:A.g,TAG_FAVORITE:A.h,fileIsBlacklisted:function(e){return!!e.match(E.blacklist_files_regex)},addScript:function(e,t,n){var r;console.warn("OC.addScript is deprecated, use OCP.Loader.loadScript instead");var a=OC.filePath(e,"js",t+".js");return u[a]?n&&n():(r=o.a.Deferred(),o.a.getScript(a,(function(){return r.resolve()})),u[a]=r),u[a]},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=o()('<link rel="stylesheet" type="text/css" href="'+n+'"/>'),o()("head").append(t)))},Apps:m.a,AppConfig:y,appConfig:p,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};o.a.extend(n,e);var r=o()("#appsettings");if(0===r.length)throw{name:"MissingDOMElement",message:'There has be be an element with id "appsettings" for the popup to show.'};var a=o()("#appsettings_popup");if(0===a.length&&(o()("body").prepend('<div class="popup hidden" id="appsettings_popup"></div>'),(a=o()("#appsettings_popup")).addClass(r.hasClass("topright")?"topright":"bottomleft")),a.is(":visible"))a.hide().remove();else{var i=r.hasClass("topright")?"up":"left";o.a.get(Object(g.a)(n.appid,"",n.scriptName),(function(e){a.html(e).ready((function(){if(a.prepend('<span class="arrow '+i+'"></span><h2>'+t("core","Settings")+'</h2><a class="close"></a>').show(),a.find(".close").bind("click",(function(){a.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&&o.a.ajaxSetup({cache:!0}),o.a.getScript(Object(g.a)(n.appid,"js",e)).fail((function(e,t,n){throw n}))}})).show()}),"html")}},appswebroots:M,Backbone:j,ContactsMenu:C.a,config:E,currentUser:W,dialogs:z,EventSource:J,getCurrentUser:function(){return{uid:W,displayName:N}},isUserAdmin:function(){return K},L10N:X.a,_ajaxConnectionLostHandler:_,_processAjaxError:function(e){(0!==e.status||"abort"!==e.statusText&&"timeout"!==e.statusText&&!fe._reloadCalled)&&(c.a.contains([302,303,307,401],e.status)&&fe.currentUser?setTimeout((function(){if(!fe._userIsNavigatingAway&&!fe._reloadCalled){var e=0,t=setInterval((function(){f.showUpdate(n("core","Problem loading page, reloading in %n second","Problem loading page, reloading in %n seconds",5-e)),e>=5&&(clearInterval(t),fe.reload()),e++}),1e3);fe._reloadCalled=!0}}),100):0===e.status&&setTimeout((function(){fe._userIsNavigatingAway||fe._reloadCalled||fe._ajaxConnectionLostHandler()}),100))},registerXHRForErrorProcessing:function(e){e.addEventListener&&(e.addEventListener("load",(function(){4===e.readyState&&(e.status>=200&&e.status<300||304===e.status||o()(document).trigger(new o.a.Event("ajaxError"),e))})),e.addEventListener("error",(function(){o()(document).trigger(new o.a.Event("ajaxError"),e)})))},_capabilities:B(),getCapabilities:B,hideMenus:G,registerMenu:function(e,t,n,r){t.addClass("menu");var a="A"===e.prop("tagName")||"BUTTON"===e.prop("tagName");e.on(a?"click.menu":"click.menu keyup.menu",(function(a){a.preventDefault(),a.key&&"Enter"!==a.key||(t.is(V)?G():(V&&G(),!0===r&&t.parent().addClass("openedMenu"),e.attr("aria-expanded",!0),t.slideToggle(A.j,n),V=t,e))}))},showMenu:function(e,t,n){t.is(V)||(G(),V=t,e,t.trigger(new o.a.Event("beforeShow")),t.show(),t.trigger(new o.a.Event("afterShow")),c.a.isFunction(n)&&n())},unregisterMenu:function(e,t){t.is(V)&&G(),e.off("click.menu").removeClass("menutoggle"),t.removeClass("m
/**
* @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(i.subscribe)("csrf-token-update",(function(e){OC.requestToken=e.token,console.info("OC.requestToken changed",e.token)}))},,function(e,t,n){"use strict";n.d(t,"i",(function(){return r})),n.d(t,"j",(function(){return a})),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 u})),n.d(t,"c",(function(){return d})),n.d(t,"f",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"h",(function(){return f}));
/**
* @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 r=["","admin","log","core/search","core","3rdparty"],a=50,i=0,s=4,o=1,u=2,d=8,l=16,c=31,f="_$!<Favorite>!$_"},function(e,t,n){var r=n(8),a=n(45),i=n(63),s=n(291),o=r.Symbol,u=a("wks");e.exports=function(e){return u[e]||(u[e]=s&&o[e]||(s?o:i)("Symbol."+e))}},function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"h",(function(){return u})),n.d(t,"g",(function(){return d})),n.d(t,"f",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return f})),n.d(t,"a",(function(){return _})),n.d(t,"c",(function(){return m}));var r=n(2),a=n.n(r),i=n(3),s=n(5),o=function(e,t){return _(e,"",t)},u=function(e){return m()+"/remote.php/"+e},d=function(e){return window.location.protocol+"//"+window.location.host+u(e)},l=function(e,t){return t=2!==t?1:2,window.location.protocol+"//"+window.location.host+m()+"/ocs/v"+t+".php/"+e+"/"},c=function(e,t,n){var r=n||{};a.a.defaults(r,{escape:!0});var s=function(e,t){return t=t||[],e.replace(/{([^{}]*)}/g,(function(e,n){var a=t[n];return r.escape?"string"==typeof a||"number"==typeof a?encodeURIComponent(a):encodeURIComponent(e):"string"==typeof a||"number"==typeof a?a:e}))};return"/"!==e.charAt(0)&&(e="/"+e),!0===i.a.config.modRewriteWorking?m()+s(e,t):m()+"/index.php"+s(e,t)},f=function(e,t){return-1===t.indexOf(".")?_(e,"img",t+".svg"):_(e,"img",t)},_=function(e,t,n){var r=-1!==s.i.indexOf(e),a=m();return"php"!==n.substring(n.length-3)||r?"php"===n.substring(n.length-3)||r?(a+="core"!==e&&"search"!==e||"ajax"!==t?"/":"/index.php/",r||(a+="apps/"),""!==e&&(a+=e+="/"),t&&(a+=t+"/"),a+=n):(a=i.a.appswebroots[e],t&&(a+="/"+t+"/"),"/"!==a.substring(a.length-1)&&(a+="/"),a+=n):(a+="/index.php/apps/"+e,"index.php"!==n&&(a+="/",t&&(a+=encodeURI(t+"/")),a+=n)),a},m=function(){return i.a.webroot}},function(e,t,n){(function(t){var n="object",r=function(e){return e&&e.Math==Math&&e};e.exports=r(typeof globalThis==n&&globalThis)||r(typeof window==n&&window)||r(typeof self==n&&self)||r(typeof t==n&&t)||Function("return this")()}).call(this,n(20))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},,,,,function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(24),a=n(21),i=n(43);e.exports=r?function(e,t,n){return a.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";t.__esModule=!0,t.extend=o,t.indexOf=function(e,t){for(var n=0,r=e.length;n<r;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(a,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 r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},a=/[&<>"'`=]/g,i=/[&<>"'`=]/;function s(e){return r[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 u=Object.prototype.toString;t.toString=u;var d=function(e){return"function"==typeof e};d(/x/)&&(t.isFunction=d=function(e){return"function"==typeof e&&"[object Function]"===u.call(e)}),t.isFunction=d;var l=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===u.call(e)};t.isArray=l},function(e,t,n){(function(r){var a,i,s;s="object"==typeof self&&self.self===self&&self||"object"==typeof r&&r.global===r&&r,a=[n(2),n(0),t],void 0===(i=function(e,t,n){s.Backbone=function(e,t,n,r){var a=e.Backbone,i=Array.prototype.slice;t.VERSION="1.4.0",t.$=r,t.noConflict=function(){return e.Backbone=a,this},t.emulateHTTP=!1,t.emulateJSON=!1;var s,o=t.Events={},u=/\s+/,d=function(e,t,r,a,i){var s,o=0;if(r&&"object"==typeof r){void 0!==a&&"context"in i&&void 0===i.context&&(i.context=a);for(s=n.keys
/**
* @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/>.
*/
window._oc_l10n_registry_translations=window._oc_l10n_registry_translations||{},window._oc_l10n_registry_plural_functions=window._oc_l10n_registry_plural_functions||{};var m=function(e,t,n){h(e)?function(e,t,n){window._oc_l10n_registry_translations[e]=Object.assign(window._oc_l10n_registry_translations[e],t),window._oc_l10n_registry_plural_functions[e]=n}(e,t,n):function(e,t,n){window._oc_l10n_registry_translations[e]=t,window._oc_l10n_registry_plural_functions[e]=n}(e,t,n)},h=function(e){return void 0!==window._oc_l10n_registry_translations[e]&&void 0!==window._oc_l10n_registry_plural_functions[e]},p=function(e){return{translations:window._oc_l10n_registry_translations[e]||{},pluralFunction:window._oc_l10n_registry_plural_functions[e]}};function y(e){return(y="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)}n.d(t,"b",(function(){return M})),n.d(t,"d",(function(){return v})),n.d(t,"c",(function(){return L}));var g={load:function(e,t){if(h(e)||"en"===_.a.getLocale()){var n=s.a.Deferred(),r=n.promise();return r.then(t),n.resolve(),r}var a=this,i=_.a.filePath(e,"l10n",_.a.getLocale()+".json");return s.a.get(i).then((function(t){t.translations&&a.register(e,t.translations,t.pluralForm)})).then(t)},register:function(e,t){m(e,t,this._getPlural)},_unregister:function(e){delete window._oc_l10n_registry_translations[e],delete window._oc_l10n_registry_plural_functions[e]},translate:function(e,t,n,r,i){var s=i||{};a.a.defaults(s,{escape:!0});var o=t,d=p(e).translations[t];return void 0!==d&&(o=d),"object"===y(n)||void 0!==r?u.a.sanitize(function(e,t,n){return e.replace(/%n/g,n).replace(/{([^{}]*)}/g,(function(e,n){var r=t[n];return"string"==typeof r||"number"==typeof r?s.escape?u.a.sanitize(f()(r)):u.a.sanitize(r):u.a.sanitize(e)}))}(o,n,r)):u.a.sanitize(o)},translatePlural:function(e,t,n,r,a,i){var o="_"+t+"_::_"+n+"_",u=p(e),d=u.translations[o];if(void 0!==d){var l=d;if(s.a.isArray(l)){var c=u.pluralFunction(r);return this.translate(e,l[c],a,r,i)}}return 1===r?this.translate(e,t,a,r,i):this.translate(e,n,a,r,i)},_getPlural:function(e){var t=_.a.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 e%10==1&&e%100!=11?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 e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2;case"sl":return e%100==1?0:e%100==2?1:e%100==3||e%100==4?2:3;case"mk":return e%10==1?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:e%10==1&&e%100!=11?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}}},M=(t.a=g,function(){var e=v();return"string"==typeof e?e.replace(/_/g,"-"):e}),v=function(){return s()("html").data("locale")},L=function(){return s()("html").prop("lang")};l.a.registerH
/**
* @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,r){"post"!==t&&"delete"!==t||!i.a.PasswordConfirmation.requiresPasswordConfirmation()?(r=r||{},a.a.ajax({type:t.toUpperCase(),url:i.a.linkToOCS("apps/provisioning_api/api/v1",2)+"config/apps"+n,data:r.data||{},success:r.success,error:r.error})):i.a.PasswordConfirmation.requirePasswordConfirmation(e.bind(s,this,t,n,r))}function o(e){s("get","",e)}function u(e,t){s("get","/"+e,t)}function d(e,t,n,r){(r=r||{}).data={defaultValue:n},s("get","/"+e+"/"+t,r)}function l(e,t,n,r){(r=r||{}).data={value:n},s("post","/"+e+"/"+t,r)}function c(e,t,n){s("delete","/"+e+"/"+t,n)}}.call(this,n(2))},function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze||function(e){return e},t=e(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),n=e(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern"]),r=e(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),a=e(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),i=e(["#text"]),s=Object.freeze||function(e){return e},o=s(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","minlength","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),u=s(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","g
/*
* @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){e.exports=n(52).default},function(e,t,n){var r=n(8),a=n(100).f,i=n(16),s=n(38),o=n(60),u=n(283),d=n(106);e.exports=function(e,t){var n,l,c,f,_,m=e.target,h=e.global,p=e.stat;if(n=h?r:p?r[m]||o(m,{}):(r[m]||{}).prototype)for(l in t){if(f=t[l],c=e.noTargetGet?(_=a(n,l))&&_.value:n[l],!d(h?l:m+(p?".":"#")+l,e.forced)&&void 0!==c){if(typeof f==typeof c)continue;u(f,c)}(e.sham||c&&c.sham)&&i(f,"sham",!0),s(n,l,f,e)}}},function(e,t,n){var r=n(8),a=n(45),i=n(16),s=n(15),o=n(60),u=n(104),d=n(46),l=d.get,c=d.enforce,f=String(u).split("toString");a("inspectSource",(function(e){return u.call(e)})),(e.exports=function(e,t,n,a){var u=!!a&&!!a.unsafe,d=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof t||s(n,"name")||i(n,"name",t),c(n).source=f.join("string"==typeof t?t:"")),e!==r?(u?!l&&e[t]&&(d=!0):delete e[t],d?e[t]=n:i(e,t,n)):d?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||u.call(this)}))},function(e,t){e.exports={}},function(e,t,n){"use strict";t.__esModule=!0;var r=["description","fileName","lineNumber","message","name","number","stack"];function a(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),u=0;u<r.length;u++)this[r[u]]=o[r[u]];Error.captureStackTrace&&Error.captureStackTrace(this,a);try{n&&(this.lineNumber=i,Object.defineProperty?Object.defineProperty(this,"column",{value:s,enumerable:!0}):this.column=s)}catch(e){}}a.prototype=new Error,t.default=a,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.emit=t.unsubscribe=t.subscribe=void 0;var r=n(278),a=n(279);var i=(void 0!==window.OC&&window.OC._eventBus&&void 0===window._nc_event_bus&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),void 0!==window._nc_event_bus?new r.ProxyBus(window._nc_event_bus):window._nc_event_bus=new a.SimpleBus),s=i.subscribe.bind(i);t.subscribe=s;var o=i.unsubscribe.bind(i);t.unsubscribe=o;var u=i.emit.bind(i);t.emit=u},,function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(101),a=n(58);e.exports=function(e){return r(a(e))}},function(e,t,n){var r=n(8),a=n(60),i=n(61),s=r["__core-js_shared__"]||a("__core-js_shared__",{});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.2.1",mode:i?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r,a,i,s=n(282),o=n(8),u=n(10),d=n(16),l=n(15),c=n(62),f=n(47),_=o.WeakMap;if(s){var m=new _,h=m.get,p=m.has,y=m.set;r=function(e,t){return y.call(m,e,t),t},a=function(e){return h.call(m,e)||{}},i=function(e){return p.call(m,e)}}else{var g=c("state");f[g]=!0,r=function(e,t){return d(e,g,t),t},a=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}e.exports={set:r,get:a,has:i,enforce:function(e){return i(e)?a(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t){e.exports={}},function(e,t,n){var r=n(65),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0;var i=a(n(122)),s=r(n(331)),o=r(n(40)),u=a(n(17)),d=a(n(332)),l=r(n(333));function c(){var e=new i.HandlebarsEnvironment;return u.extend(e,i),e.SafeString=s.default,e.Exception=o.default,e.Utils=u,e.escapeExpression=u.escapeExpression,e.VM=d,e.template=function(t){return d.template(t,e)},e}var f=c();f.create=c,l.default(f),f.default=f,t.default=f,e.exports=t.default},,,,function(e,t,n){"use strict";
/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/var r=/["'&<>]/;e.exports=function(e){var t,n=""+e,a=r.exec(n);if(!a)return n;var i="",s=0,o=0;for(s=a.index;s<n.length;s++){switch(n.charCodeAt(s)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#39;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}o!==s&&(i+=n.substring(o,s)),o=s+1,i+=t}return o!==s?i+n.substring(o,s):i}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(10);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(8),a=n(16);e.exports=function(e,t){try{a(r,e,t)}catch(n){r[e]=t}return t}},function(e,t){e.exports=!1},function(e,t,n){var r=n(45),a=n(63),i=r("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(285),a=n(8),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(a[e]):r[e]&&r[e][t]||a[e]&&a[e][t]}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var r=n(58);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(293);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(25),a=n(297),i=n(66),s=n(47),o=n(299),u=n(103),d=n(62)("IE_PROTO"),l=function(){},c=function(){var e,t=u("iframe"),n=i.length;for(t.style.display="none",o.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c.prototype[i[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(l.prototype=r(e),n=new l,l.prototype=null,n[d]=e):n=c(),void 0===t?n:a(n,t)},s[d]=!0},function(e,t,n){"use strict";var r=n(37),a=n(300),i=n(114),s=n(115),o=n(71),u=n(16),d=n(38),l=n(6),c=n(61),f=n(39),_=n(113),m=_.IteratorPrototype,h=_.BUGGY_SAFARI_ITERATORS,p=l("iterator"),y=function(){return this};e.exports=function(e,t,n,l,_,g,M){a(n,t,l);var v,L,Y,k=function(e){if(e===_&&x)return x;if(!h&&e in T)return T[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},w=t+" Iterator",b=!1,T=e.prototype,D=T[p]||T["@@iterator"]||_&&T[_],x=!h&&D||k(_),S="Array"==t&&T.entries||D;if(S&&(v=i(S.call(new e)),m!==Object.prototype&&v.next&&(c||i(v)===m||(s?s(v,m):"function"!=typeof v[p]&&u(v,p,y)),o(v,w,!0,!0),c&&(f[w]=y))),"values"==_&&D&&"values"!==D.name&&(b=!0,x=function(){return D.call(this)}),c&&!M||T[p]===x||u(T,p,x),f[t]=x,_)if(L={values:k("values"),keys:g?x:k("keys"),entries:k("entries")},M)for(Y in L)!h&&!b&&Y in T||d(T,Y,L[Y]);else r({target:t,proto:!0,forced:h||b},L);return L}},function(e,t,n){var r=n(21).f,a=n(15),i=n(6)("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(90);e.exports=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},,,,function
/**
* @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 r=function(e){var t,n,r,a,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];(r=(n=o.indexOf("="))>=0?[o.substr(0,n),o.substr(n+1)]:[o]).length&&((a=decodeURIComponent(r[0]))&&(r.length>1?i[a]=decodeURIComponent(r[1]):i[a]=null))}return i},a=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 r=n(0),a=n.n(r),i=!1,s={enableDynamicSlideToggle:function(){i=!0},showAppSidebar:function(e){(e||a()("#app-sidebar")).removeClass("disappear").show(),a()("#app-content").trigger(new a.a.Event("appresized"))},hideAppSidebar:function(e){(e||a()("#app-sidebar")).hide().addClass("disappear"),a()("#app-content").trigger(new a.a.Event("appresized"))}},o=function(){var e=a()("[data-apps-slide-toggle]");0===e.length&&a()("#app-navigation").addClass("without-app-settings"),a()(document).click((function(t){i&&(e=a()("[data-apps-slide-toggle]")),e.each((function(e,n){var r=a()(n).data("apps-slide-toggle"),i=a()(r);function s(){i.slideUp(4*OC.menuSpeed,(function(){i.trigger(new a.a.Event("hide"))})),i.removeClass("opened"),a()(n).removeClass("opened")}if(!i.is(":animated"))if(a()(n).is(a()(t.target).closest("[data-apps-slide-toggle]")))i.is(":visible")?s():function(){i.slideDown(4*OC.menuSpeed,(function(){i.trigger(new a.a.Event("show"))})),i.addClass("opened"),a()(n).addClass("opened");var e=a()(r+" [autofocus]");1===e.length&&e.focus()}();else{var o=a()(t.target).closest(r);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,r){void 0===n&&(n="0"),n=""+n,(r=r||{}).Depth=n,r["Content-Type"]="application/xml; charset=utf-8";var a,i='<?xml version="1.0"?>\n<d:propfind ';for(a in this.xmlNamespaces)i+=" xmlns:"+this.xmlNamespaces[a]+'="'+a+'"';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,r,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 r,a=this.parseClarkNotation(n),i=e[n];"d:resourcetype"!==(r=this.xmlNamespaces[a.namespace]?this.xmlNamespaces[a.namespace]+":"+a.name:"x:"+a.name+' xmlns:x="'+a.namespace+'"')&&(i=dav._escapeXml(i)),t+=" <"+r+">"+i+"</"+r+">\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 r,a='<?xml version="1.0"?>\n<d:propertyupdate ';for(r in this.xmlNamespaces)a+=" xmlns:"+this.xmlNamespaces[r]+'="'+r+'"';return a+=">\n"+this._renderPropSet(t),a+="</d:propertyupdate>",this.request("PROPPATCH",e,n,a).then(function(e){return{status:e.status,body:e.body,xhr:e.xhr}}.bind(this))},mkcol:function(e,t,n){var r="";if((n=n||{})["Content-Type"]="application/xml; charset=utf-8",t){var a;for(a in r='<?xml version="1.0"?>\n<d:mkcol',this.xmlNamespaces)r+=" xmlns:"+this.xmlNamespaces[a]+'="'+a+'"';r+=">\n"+this._renderPropSet(t),r+="</d:mkcol>"}return this.request("MKCOL",e,n,r).then(function(e){return{status:e.status,body:e.body,xhr:e.xhr}}.bind(this))},request:function(e,t,n,r){var a,i=this,s=this.xhrProvider();for(a in n=n||{},this.userName&&(n.Authorization="Basic "+btoa(this.userName+":"+this.password)),s.open(e,this.resolveUrl(t),!0),n)s.setR
/**
* @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=d.a.now()},requiresPasswordConfirmation:function(){var e=this.pageLoadTime-1e3*window.nc_pageLoad,t=d.a.now()-(e+1e3*window.nc_lastLogin);return window.backendAllowsPasswordConfirmation&&t>18e5},requirePasswordConfirmation:function(e,n,r){n=void 0!==n?n:{};var a={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(a,n),u=this;this.requiresPasswordConfirmation()&&l.a.dialogs.prompt(s.text,s.title,(function(e,t){e&&""!==t?u._confirmPassword(t,s):i.a.isFunction(r)&&r()}),!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 r=this;o.a.ajax({url:l.a.generateUrl("/login/confirm"),data:{password:e},type:"POST",success:function(e){window.nc_lastLogin=e.lastLogin,i.a.isFunction(r.callback)&&r.callback()},error:function(){n.error=t("core","Failed to authenticate, try again"),l.a.PasswordConfirmation.requirePasswordConfirmation(r.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 r(e,t){var n=["B","KB","MB","GB","TB"],r=e>0?Math.floor(Math.log(e)/Math.log(1024)):0,a=n[r=Math.min(n.length-1,r)],i=(e/Math.pow(1024,r)).toFixed(1);return!0===t&&0===r?"0.0"!==i?"< 1 KB":"0 KB":(i=r<2?parseFloat(i).toFixed(0):".0"===i.substr(i.length-2,2)?i.substr(0,i.length-2):parseFloat(i).toLocaleString(OC.getCanonicalLocale()))+" "+a}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(72),a=n(255),i=n(340);e.exports=r?function(e,t,n){return a.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(49);e.exports=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(93),a=n(362),i=n(356);e.exports=r?function(e,t,n){return a.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(29),a=n(259),i=n(441),s=r["__core-js_shared__"]||a("__core-js_shared__",{});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.2.1",mode:i?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},,,,function(e){e.exports=JSON.parse('{"name":"@nextcloud/event-bus","version":"0.2.0","description":"","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"babel ./lib --out-dir dist --extensions \'.ts,.tsx\' --source-maps && tsc --emitDeclarationOnly","check-types":"tsc","dev":"babel ./lib --out-dir dist --extensions \'.ts,.tsx\' --watch","test":"jest","test:watch":"jest --watchAll"},"keywords":["nextcloud"],"homepage":"https://github.com/nextcloud/nextcloud-event-bus#readme","author":"Christoph Wurst","license":"GPL-3.0-or-later","repository":{"type":"git","url":"https://github.com/nextcloud/nextcloud-event-bus"},"dependencies":{"core-js":"^3.1.4"},"devDependencies":{"@babel/cli":"^7.6.0","@babel/core":"^7.6.0","@babel/plugin-proposal-class-properties":"^7.5.5","@babel/preset-env":"^7.6.0","@babel/preset-typescript":"^7.6.0","babel-jest":"^24.9.0","browserslist-config-nextcloud":"0.0.1","jest":"^24.9.0","typescript":"^3.6.3"},"browserslist":["extends browserslist-config-nextcloud"],"_resolved":"https://registry.npmjs.org/@nextcloud/event-bus/-/event-bus-0.2.0.tgz","_integrity":"sha512-G+YTHhkJFQgJ2126UIrm3ezv+iESDRR/blbaBAz1WoCRPUTHfQZfdoarv/hNbXJaJ7aFz6mLsNe1+oGHwCpstg==","_from":"@nextcloud/event-bus@0.2.0"}')},function(e,t,n){var r=n(24),a=n(281),i=n(43),s=n(44),o=n(59),u=n(15),d=n(102),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=s(e),t=o(t,!0),d)try{return l(e,t)}catch(e){}if(u(e,t))return i(!a.f.call(e,t),e[t])}},function(e,t,n){var r=n(9),a=n(57),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?i.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(24),a=n(9),i=n(103);e.exports=!r&&!a((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(8),a=n(10),i=r.document,s=a(i)&&a(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},function(e,t,n){var r=n(45);e.exports=r("native-function-to-string",Function.toString)},function(e,t,n){var r=n(15),a=n(44),i=n(287).indexOf,s=n(47);e.exports=function(e,t){var n,o=a(e),u=0,d=[];for(n in o)!r(s,n)&&r(o,n)&&d.push(n);for(;t.length>u;)r(o,n=t[u++])&&(~i(d,n)||d.push(n));return d}},function(e,t,n){var r=n(9),a=/#|\.prototype\./,i=function(e,t){var n=o[s(e)];return n==d||n!=u&&("function"==typeof t?r(t):!!t)},s=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},o=i.data={},u=i.NATIVE="N",d=i.POLYFILL="P";e.exports=i},function(e,t,n){var r=n(57);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(10),a=n(107),i=n(6)("species");e.exports=function(e,t){var n;return a(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!a(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(9),a=n(6)("species");e.exp
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";var r=n(19),a=n(348),i=n(421),s=n(422),o=n(353);function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=o(this.defaults,e)).method=e.method?e.method.toLowerCase():"get";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},u.prototype.getUri=function(e){return e=o(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,a){return this.request(r.merge(a||{},{method:e,url:t,data:n}))}})),e.exports=u},function(e,t,n){"use strict";var r=n(19);function a(){this.handlers=[]}a.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=a},function(e,t,n){"use strict";var r=n(19),a=n(423),i=n(349),s=n(350),o=n(430),u=n(431);function d(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return d(e),e.baseURL&&!o(e.url)&&(e.url=u(e.baseURL,e.url)),e.headers=e.headers||{},e.data=a(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return d(e),t.data=a(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(d(e),t&&t.response&&(t.response.data=a(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(19);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(19);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(352);e.exports=function(e,t,n){var a=n.config.validateStatus;!a||a(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,a){return e.config=t,n&&(e.code=n),e.request=r,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(19),a=["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={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(s[t]&&a.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},function(e,t,n){"use strict";var r=n(19);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function a(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.c
//# sourceMappingURL=maintenance.js.map