').addClass("crumb");if(n){var i=n.split("/");c().each(i,(function(t,n){if(""===(n=i.pop()))return!1;e.$dirTree.prepend(o.octemplate({dir:i.join("/")+"/"+n,name:n}))}))}o.octemplate({dir:"",name:""},{escapeFunction:null}).prependTo(this.$dirTree)},_handleTreeListSelect:function(t,e){var n=t.data,o=c()(t.target).closest(".crumb").data("dir");n._fillFilePicker(o);var i=t.target.closest(".oc-dialog"),a=c()(".primary",i);this._changeButtonsText(e,o.split(/[/]+/).pop()),-1!==this.$filePicker.data("mimetype").indexOf("httpd/unix-directory")||this.$filePicker.data("allowDirectoryChooser")?a.prop("disabled",!1):a.prop("disabled",!0)},_handlePickerClick:function(t,e,n){var o=this.$filePicker.closest(".oc-dialog").find(".primary");"file"===e.data("type")?(!0===this.$filePicker.data("multiselect")&&t.ctrlKey||this.$filelist.find(".filepicker_element_selected").removeClass("filepicker_element_selected"),e.toggleClass("filepicker_element_selected"),o.prop("disabled",!1)):"dir"===e.data("type")&&(this._fillFilePicker(this.$filePicker.data("path")+"/"+e.data("entryname")),this._changeButtonsText(n,e.data("entryname")),-1!==this.$filePicker.data("mimetype").indexOf("httpd/unix-directory")||this.$filePicker.data("allowDirectoryChooser")?o.prop("disabled",!1):o.prop("disabled",!0))},_changeButtonsText:function(e,n){var o=""===n?t("core","Copy"):t("core","Copy to {folder}",{folder:n}),i=""===n?t("core","Move"):t("core","Move to {folder}",{folder:n}),a=c()(".oc-dialog-buttonrow button");switch(e){case this.FILEPICKER_TYPE_CHOOSE:case this.FILEPICKER_TYPE_CUSTOM:break;case this.FILEPICKER_TYPE_COPY:a.text(o);break;case this.FILEPICKER_TYPE_MOVE:a.text(i);break;case this.FILEPICKER_TYPE_COPY_MOVE:a.eq(0).text(o),a.eq(1).text(i)}}},dt=ut,pt=(st=document,lt=u.j8,ct=st.getElementsByTagName("head")[0].getAttribute("data-requesttoken"),{getToken:function(){return ct},setToken:function(t){lt("csrf-token-update",{token:ct=t})}}),At=pt.getToken,ft=pt.setToken,ht=function t(e,n){var o,i,a="";if(this.typelessListeners=[],this.closed=!1,this.listeners={},n)for(o in n)a+=o+"="+encodeURIComponent(n[o])+"&";if(a+="requesttoken="+encodeURIComponent(At()),this.useFallBack||"undefined"==typeof EventSource){var r="oc_eventsource_iframe_"+t.iframeCount;t.fallBackSources[t.iframeCount]=this,this.iframe=c()(""),this.iframe.attr("id",r),this.iframe.hide(),i="&",-1===e.indexOf("?")&&(i="?"),this.iframe.attr("src",e+i+"fallback=true&fallback_id="+t.iframeCount+"&"+a),c()("body").append(this.iframe),this.useFallBack=!0,t.iframeCount++}else i="&",-1===e.indexOf("?")&&(i="?"),this.source=new EventSource(e+i+a),this.source.onmessage=function(t){for(var e=0;e3&&(e=e.substring(0,e.lastIndexOf("-"))),e){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":default: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===t?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===t||1===t?0:1;case"be":case"bs":case"hr":case"ru":case"sh":case"sr":case"uk":return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2;case"cs":case"sk":return 1===t?0:t>=2&&t<=4?1:2;case"ga":return 1===t?0:2===t?1:2;case"lt":return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2;case"sl":return t%100==1?0:t%100==2?1:t%100==3||t%100==4?2:3;case"mk":return t%10==1?0:1;case"mt":return 1===t?0:0===t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3;case"lv":return 0===t?0:t%10==1&&t%100!=11?1:2;case"pl":return 1===t?0:t%10>=2&&t%10<=4&&(t%100<12||t%100>14)?1:2;case"cy":return 1===t?0:2===t?1:8===t||11===t?2:3;case"ro":return 1===t?0:0===t||t%100>0&&t%100<20?1:2;case"ar":return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11&&t%100<=99?4:5}}},_t=zt;Pt().registerHelper("t",(function(t,e){return zt.translate(t,e)}));var St=i(31352),Nt={startSaving:function(e){this.startAction(e,t("core","Saving …"))},startAction:function(t,e){c()(t).text(e).removeClass("success").removeClass("error").stop(!0,!0).show()},finishedSaving:function(t,e){this.finishedAction(t,e)},finishedAction:function(t,e){"success"===e.status?this.finishedSuccess(t,e.data.message):this.finishedError(t,e.data.message)},finishedSuccess:function(t,e){c()(t).text(e).addClass("success").removeClass("error").stop(!0,!0).delay(3e3).fadeOut(900).show()},finishedError:function(t,e){c()(t).text(e).addClass("error").removeClass("success").show()}},Ut=i(30381),Mt=i.n(Ut),Lt={callback:null,pageLoadTime:null,init:function(){c()(".password-confirm-required").on("click",f.ZP.bind(this.requirePasswordConfirmation,this)),this.pageLoadTime=Mt().now()},requiresPasswordConfirmation:function(){var t=this.pageLoadTime-1e3*window.nc_pageLoad,e=Mt().now()-(t+1e3*window.nc_lastLogin);return window.backendAllowsPasswordConfirmation&&e>18e5},requirePasswordConfirmation:function(e,n,o){n=void 0!==n?n:{};var i={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:""},a=f.ZP.extend(i,n),r=this;this.requiresPasswordConfirmation()&&Wt.dialogs.prompt(a.text,a.title,(function(t,e){t&&""!==e?r._confirmPassword(e,a):f.ZP.isFunction(o)&&o()}),!0,a.label,!0).then((function(){var t=c()(".oc-dialog:visible");if(t.find(".ui-icon").remove(),t.addClass("password-confirmation"),""!==a.error){var e=c()("").addClass("msg warning").text(a.error);t.find(".oc-dialog-content").append(e)}t.find(".oc-dialog-buttonrow").addClass("aside");var n=t.find("button");n.eq(0).hide(),n.eq(1).text(a.confirm)})),this.callback=e},_confirmPassword:function(e,n){var o=this;c().ajax({url:(0,d.generateUrl)("/login/confirm"),data:{password:e},type:"POST",success:function(t){window.nc_lastLogin=t.lastLogin,f.ZP.isFunction(o.callback)&&o.callback()},error:function(){n.error=t("core","Failed to authenticate, try again"),Wt.PasswordConfirmation.requirePasswordConfirmation(o.callback,n)}})}},Ft=window._theme||{},Rt={_handlers:[],_pushState:function(t,e,n){var o;if(o="string"==typeof t?t:Wt.buildQueryString(t),window.history.pushState){if(e=e||location.pathname+"?"+o,navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&parseInt(navigator.userAgent.split("/").pop())<51)for(var i,a=document.querySelectorAll('[fill^="url(#"], [stroke^="url(#"], [filter^="url(#invert"]'),r=0,s=a.length;r=0?t.substr(e+1):t.length?t.substr(1):""},_decodeQuery:function(t){return t.replace(/\+/g," ")},parseUrlQuery:function(){var t,e=this._parseHashQuery();return e&&(t=Wt.parseQueryString(this._decodeQuery(e))),(t=f.ZP.extend(t||{},Wt.parseQueryString(this._decodeQuery(location.search))))||{}},_onPopState:function(t){var e;if(this._cancelPop)this._cancelPop=!1;else if(this._handlers.length){e=t&&t.state,f.ZP.isString(e)?e=Wt.parseQueryString(e):e||(e=this.parseUrlQuery()||{});for(var n=0;n="0"&&e<="9";r!==a&&(n[++i]="",a=r),n[i]+=e,o++}return n}var Gt={History:Rt,humanFileSize:i(91770).sS,computerFileSize:function(t){if("string"!=typeof t)return null;var e=t.toLowerCase().trim(),n=null,o=e.match(/^[\s+]?([0-9]*)(\.([0-9]+))?( +)?([kmgtp]?b?)$/i);return null===o?null:(n=parseFloat(e),isFinite(n)?(o[5]&&(n*={b:1,k:1024,kb:1024,mb:1048576,m:1048576,gb:1073741824,g:1073741824,tb:1099511627776,t:1099511627776,pb:0x4000000000000,p:0x4000000000000}[o[5]]),n=Math.round(n)):null)},formatDate:function(t,e){return void 0===window.TESTING&&console.warn("OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment"),e=e||"LLL",Mt()(t).format(e)},relativeModifiedDate:function(e){void 0===window.TESTING&&console.warn("OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment");var n=Mt()().diff(Mt()(e));return n>=0&&n<45e3?t("core","seconds ago"):Mt()(e).fromNow()},getScrollBarWidth:function(){if(this._scrollBarWidth)return this._scrollBarWidth;var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var o=t.offsetWidth;return n===o&&(o=e.clientWidth),document.body.removeChild(e),this._scrollBarWidth=n-o,this._scrollBarWidth},stripTime:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},naturalSortCompare:function(t,e){var n,o=Qt(t),i=Qt(e);for(n=0;o[n]&&i[n];n++)if(o[n]!==i[n]){var a=Number(o[n]),r=Number(i[n]);return a==o[n]&&r==i[n]?a-r:o[n].localeCompare(i[n],Wt.getLanguage())}return o.length-i.length},waitFor:function(t,e){!function n(){!0!==t()&&setTimeout(n,e)}()},isCookieSetToValue:function(t,e){for(var n=document.cookie.split(";"),o=0;o!$_",fileIsBlacklisted:function(t){return!!t.match(R.blacklist_files_regex)},addScript:function(t,e,n){var o;console.warn("OC.addScript is deprecated, use OCP.Loader.loadScript instead");var i=(0,d.generateFilePath)(t,"js",e+".js");return p[i]?n&&n():(o=c().Deferred(),c().getScript(i,(function(){return o.resolve()})),p[i]=o),p[i]},addStyle:function(t,e){console.warn("OC.addStyle is deprecated, use OCP.Loader.loadStylesheet instead");var n=(0,d.generateFilePath)(t,"css",e+".css");-1===A.indexOf(n)&&(A.push(n),document.createStyleSheet?document.createStyleSheet(n):(e=c()(''),c()("head").append(e)))},Apps:C,AppConfig:B,appConfig:E,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};c().extend(n,e);var o=c()("#appsettings");if(0===o.length)throw{name:"MissingDOMElement",message:'There has be be an element with id "appsettings" for the popup to show.'};var i=c()("#appsettings_popup");if(0===i.length&&(c()("body").prepend(''),(i=c()("#appsettings_popup")).addClass(o.hasClass("topright")?"topright":"bottomleft")),i.is(":visible"))i.hide().remove();else{var a=o.hasClass("topright")?"up":"left";c().get((0,d.generateFilePath)(n.appid,"",n.scriptName),(function(e){i.html(e).ready((function(){if(i.prepend('
'+t("core","Settings")+'
').show(),i.find(".close").bind("click",(function(){i.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&&c().ajaxSetup({cache:!0}),c().getScript((0,d.generateFilePath)(n.appid,"js",e)).fail((function(t,e,n){throw n}))}})).show()}),"html")}},appswebroots:O,Backbone:L,ContactsMenu:q,config:R,currentUser:V,dialogs:dt,EventSource:mt,getCurrentUser:function(){return{uid:V,displayName:J}},isUserAdmin:function(){return wt},L10N:_t,_ajaxConnectionLostHandler:g,_processAjaxError:function(t){(0!==t.status||"abort"!==t.statusText&&"timeout"!==t.statusText&&!Wt._reloadCalled)&&(f.ZP.contains([302,303,307,401],t.status)&&Wt.currentUser?setTimeout((function(){if(!Wt._userIsNavigatingAway&&!Wt._reloadCalled){var t=0,e=setInterval((function(){m.showUpdate(n("core","Problem loading page, reloading in %n second","Problem loading page, reloading in %n seconds",5-t)),t>=5&&(clearInterval(e),Wt.reload()),t++}),1e3);Wt._reloadCalled=!0}}),100):0===t.status&&setTimeout((function(){Wt._userIsNavigatingAway||Wt._reloadCalled||Wt._ajaxConnectionLostHandler()}),100))},registerXHRForErrorProcessing:function(t){t.addEventListener&&(t.addEventListener("load",(function(){4===t.readyState&&(t.status>=200&&t.status<300||304===t.status||c()(document).trigger(new(c().Event)("ajaxError"),t))})),t.addEventListener("error",(function(){c()(document).trigger(new(c().Event)("ajaxError"),t)})))},getCapabilities:function(){return console.warn("OC.getCapabilities is deprecated and will be removed in Nextcloud 21. See @nextcloud/capabilities"),(0,gt.getCapabilities)()},hideMenus:bt,registerMenu:function(t,e,n,o){e.addClass("menu");var i="A"===t.prop("tagName")||"BUTTON"===t.prop("tagName");t.on(i?"click.menu":"click.menu keyup.menu",(function(i){i.preventDefault(),i.key&&"Enter"!==i.key||(e.is(vt)?bt():(vt&&bt(),!0===o&&e.parent().addClass("openedMenu"),t.attr("aria-expanded",!0),e.slideToggle(50,n),vt=e,Ct=t))}))},showMenu:function(t,e,n){e.is(vt)||(bt(),vt=e,Ct=t,e.trigger(new(c().Event)("beforeShow")),e.show(),e.trigger(new(c().Event)("afterShow")),f.ZP.isFunction(n)&&n())},unregisterMenu:function(t,e){e.is(vt)&&bt(),t.off("click.menu").removeClass("menutoggle"),e.removeClass("menu")},basename:F.EZ,encodePath:F.Ec,dirname:F.XX,isSamePath:F.Mg,joinPaths:F.RQ,getHost:function(){return window.location.host},getHostName:function(){return window.location.hostname},getPort:function(){return window.location.port},getProtocol:function(){return window.location.protocol.split(":")[0]},getCanonicalLocale:St.aj,getLocale:function(){var t;return null!==(t=c()("html").data("locale"))&&void 0!==t?t:"en"},getLanguage:function(){return c()("html").prop("lang")},addTranslations:_t.load,buildQueryString:function(t){return t?c().map(t,(function(t,e){var n=encodeURIComponent(e);return null!=t&&(n+="="+encodeURIComponent(t)),n})).join("&"):""},parseQueryString:function(t){var e,n,o,i={};if(!t)return null;(e=t.indexOf("?"))>=0&&(t=t.substr(e+1));for(var a=t.replace(/\+/g,"%20").split("&"),r=0;r=0?[s.substr(0,e),s.substr(e+1)]:[s]).length&&(o=decodeURIComponent(n[0]))&&(i[o]=n.length>1?decodeURIComponent(n[1]):null)}return i},msg:Nt,Notification:m,PasswordConfirmation:Lt,Plugins:{_plugins:{},register:function(t,e){var n=this._plugins[t];n||(n=this._plugins[t]=[]),n.push(e)},getPlugins:function(t){return this._plugins[t]||[]},attach:function(t,e,n){for(var o=this.getPlugins(t),i=0;i0?" ("+n("core","{count} notification","{count} notifications",e.unread,{count:e.unread})+")":"")}}},mounted:function(){this.observer=new ResizeObserver(this.resize),this.observer.observe(this.$el),this.resize(),(0,u.Ld)("nextcloud:app-menu.refresh",this.setApps)},beforeDestroy:function(){this.observer.disconnect(),(0,u.r1)("nextcloud:app-menu.refresh",this.setApps)},methods:{setNavigationCounter:function(t,e){this.$set(this.apps[t],"unread",e)},setApps:function(t){var e=t.apps;this.apps=e},resize:function(){var t=this.$el.offsetWidth,e=Math.floor(t/50)-1;1==this.appList.length-e&&e--,e<1&&(e=0),this.appLimit=e}}},Te=Oe,De=i(9572),je={};je.styleTagTransform=Ce(),je.setAttributes=he(),je.insert=Ae().bind(null,"head"),je.domAPI=de(),je.insertStyleElement=ge(),ce()(De.Z,je),De.Z&&De.Z.locals&&De.Z.locals;var Ie=(0,ye.Z)(Te,(function(){var t=this,e=t._self._c;return e("nav",{staticClass:"app-menu"},[e("ul",{staticClass:"app-menu-main"},t._l(t.mainAppList,(function(n){return e("li",{key:n.id,staticClass:"app-menu-entry",class:{"app-menu-entry__active":n.active},attrs:{"data-app-id":n.id}},[e("a",{class:{"has-unread":n.unread>0},attrs:{href:n.href,"aria-label":t.appLabel(n),title:n.name,"aria-current":!!n.active&&"page",target:n.target?"_blank":void 0,rel:n.target?"noopener noreferrer":void 0}},[e("img",{attrs:{src:n.icon,alt:""}}),t._v(" "),e("div",{staticClass:"app-menu-entry--label"},[t._v("\n\t\t\t\t\t"+t._s(n.name)+"\n\t\t\t\t\t"),n.unread>0?e("span",{staticClass:"hidden-visually unread-counter"},[t._v(t._s(n.unread))]):t._e()])])])})),0),t._v(" "),e("NcActions",{staticClass:"app-menu-more",attrs:{"aria-label":t.t("core","More apps")}},t._l(t.popoverAppList,(function(n){return e("NcActionLink",{key:n.id,staticClass:"app-menu-popover-entry",attrs:{"aria-label":t.appLabel(n),"aria-current":!!n.active&&"page",href:n.href},scopedSlots:t._u([{key:"icon",fn:function(){return[e("div",{staticClass:"app-icon",class:{"has-unread":n.unread>0}},[e("img",{attrs:{src:n.icon,alt:""}})])]},proxy:!0}],null,!0)},[t._v("\n\t\t\t"+t._s(n.name)+"\n\t\t\t"),n.unread>0?e("span",{staticClass:"hidden-visually unread-counter"},[t._v(t._s(n.unread))]):t._e()])})),1)],1)}),[],!1,null,"44a795f6",null).exports,ze={zh:"zh-cn",zh_Hans:"zh-cn",zh_Hans_CN:"zh-cn",zh_Hans_HK:"zh-cn",zh_Hans_MO:"zh-cn",zh_Hans_SG:"zh-cn",zh_Hant:"zh-hk",zh_Hant_HK:"zh-hk",zh_Hant_MO:"zh-mo",zh_Hant_TW:"zh-tw"},_e=Wt.getLocale();Object.prototype.hasOwnProperty.call(ze,_e)&&(_e=ze[_e]),Mt().locale(_e);var Se,Ne=function(){var t,e,n;if(c()(window).on("unload.main",(function(){Wt._unloadCalled=!0})),c()(window).on("beforeunload.main",(function(){setTimeout((function(){Wt._userIsNavigatingAway=!0,setTimeout((function(){Wt._unloadCalled||(Wt._userIsNavigatingAway=!1)}),1e4)}),1)})),c()(document).on("ajaxError.main",(function(t,e,n){n&&n.allowAuthErrors||Wt._processAjaxError(e)})),function(){if(function(){try{te=(0,Jt.j)("core","config")}catch(t){te=Wt.config}}(),function(){if(te.auto_logout&&(0,Vt.ts)()){var t=Date.now();window.addEventListener("mousemove",(function(e){t=Date.now(),localStorage.setItem("lastActive",t)})),window.addEventListener("touchstart",(function(e){t=Date.now(),localStorage.setItem("lastActive",t)})),window.addEventListener("storage",(function(e){"lastActive"===e.key&&(t=e.newValue)})),setInterval((function(){var e=Date.now()-1e3*te.session_lifetime;if(t").addClass("icon-loading-small")))})),t.delegate("a","mouseup",(function(t){2===t.which&&Wt.hideMenus((function(){return!1}))})),(n=document.getElementById("contactsmenu"))&&new ie.ZP({el:n,render:function(t){return t(xe)}}),c()("#app-navigation").length&&!c()("html").hasClass("lte9")&&!c()("#app-content").hasClass("no-snapper")){var o=new Snap({element:document.getElementById("app-content"),disable:"right",maxPosition:300,minDragDistance:100});c()("#app-content").prepend('');var i=!1;o.on("animating",(function(){i=!0})),o.on("animated",(function(){i=!1})),o.on("start",(function(){i=!0})),o.on("end",(function(){i=!1}));var a=o.open,r=o.close,s=function(){i||"closed"!==o.state().state||a("left")},l=function(){i||"closed"===o.state().state||r()};window.TESTING||(o.open=function(){f.ZP.defer(s)},o.close=function(){f.ZP.defer(l)}),c()("#app-navigation-toggle").click((function(t){"left"!==o.state().state&&o.open()})),c()("#app-navigation-toggle").keypress((function(t){"left"===o.state().state?o.close():o.open()})),c()("#app-navigation").delegate("a, :button","click",(function(t){var e=c()(t.target);e.is(".app-navigation-noclose")||e.closest(".app-navigation-noclose").length||e.is(".app-navigation-entry-utils-menu-button")||e.closest(".app-navigation-entry-utils-menu-button").length||e.is(".add-new")||e.closest(".add-new").length||e.is("#app-settings")||e.closest("#app-settings").length||o.close()}));var p=!1,A=!0,h=!1;Wt.allowNavigationBarSlideGesture=function(){A=!0,h&&(o.enable(),p=!0,h=!1)},Wt.disallowNavigationBarSlideGesture=function(){A=!1,p&&(o.disable(!0),p=!1,h=!0)};var m=function(){c()(window).width()>1024?(o.close(),o.disable(),p=!1,h=!1):A?(o.enable(),p=!0,h=!1):h=!0};c()(window).resize(f.ZP.debounce(m,250)),m()}setInterval((function(){c()(".live-relative-timestamp").each((function(){var t=parseInt(c()(this).attr("data-timestamp"),10);c()(this).text(Mt()(t).fromNow())}))}),3e4),Lt.init()},Ue=(i(49226),i(41704),i(78312),i(22634),i(3682));c().prototype.tooltip=(Se=c().prototype.tooltip,function(t){try{return Se.call(this,t)}catch(e){if(e instanceof TypeError&&"destroy"===t)return void 0===window.TESTING&&console.error("Deprecated call $.tooltip('destroy') has been deprecated and should be removed"),Se.call(this,"dispose");if(e instanceof TypeError&&"fixTitle"===t)return void 0===window.TESTING&&console.error("Deprecated call $.tooltip('fixTitle') has been deprecated and should be removed"),Se.call(this,"_fixTitle")}});var Me=i(42152),Le=i.n(Me),Fe=i(99560),Re=i.n(Fe),Qe=(i(18553),i(34140),i(75693),i(99205),i(38554),/(\s|^)(https?:\/\/)((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/gi);function Ge(t){return this.formatLinksRich(t)}function He(t){return this.formatLinksPlain(t)}function Ke(t){return t.replace(Qe,(function(t,e,n,o,i){var a=o;return n?"http://"===n&&(a=n+o):n="https://",e+''+a+""+i}))}function Ze(t){var e=c()("").html(t);return e.find("a").each((function(){var t=c()(this);t.html(t.attr("href"))})),e.html()}function Ye(e){var n=(e=e||{}).dismiss||{};c().ajax({type:"GET",url:e.url||(0,d.generateOcsUrl)("core/whatsnew?format=json"),success:e.success||function(e,o,i){!function(e,n,o,i){if(console.debug("querying Whats New data was successful: "+n),console.debug(e),200===o.status){var a,r,s,l,c=document.createElement("div");c.classList.add("popovermenu","open","whatsNewPopover","menu-left");var u=document.createElement("ul");for(var d in a=document.createElement("li"),(r=document.createElement("span")).className="menuitem",(s=document.createElement("span")).innerText=t("core","New in")+" "+e.ocs.data.product,s.className="caption",r.appendChild(s),(l=document.createElement("span")).className="icon-close",l.onclick=function(){qe(e.ocs.data.version,i)},r.appendChild(l),a.appendChild(r),u.appendChild(a),e.ocs.data.whatsNew.regular){var p=e.ocs.data.whatsNew.regular[d];a=document.createElement("li"),(r=document.createElement("span")).className="menuitem",(l=document.createElement("span")).className="icon-checkmark",r.appendChild(l),(s=document.createElement("p")).innerHTML=f.ZP.escape(p),r.appendChild(s),a.appendChild(r),u.appendChild(a)}f.ZP.isUndefined(e.ocs.data.changelogURL)||(a=document.createElement("li"),(r=document.createElement("a")).href=e.ocs.data.changelogURL,r.rel="noreferrer noopener",r.target="_blank",(l=document.createElement("span")).className="icon-link",r.appendChild(l),(s=document.createElement("span")).innerText=t("core","View changelog"),r.appendChild(s),a.appendChild(r),u.appendChild(a)),c.appendChild(u),document.body.appendChild(c)}}(e,o,i,n)},error:e.error||We})}function qe(t,e){e=e||{},c().ajax({type:"POST",url:e.url||(0,d.generateOcsUrl)("core/whatsnew"),data:{version:encodeURIComponent(t)},success:e.success||Je,error:e.error||Ve}),c()(".whatsNewPopover").remove()}function We(t,e,n){console.debug("querying Whats New Data resulted in an error: "+e+n),console.debug(t)}function Je(t){}function Ve(t){console.debug("dismissing Whats New data resulted in an error: "+t)}var Xe,$e,tn,en,nn={},on={},an={},rn={loadScript:function(t,e){var n=t+e;return Object.prototype.hasOwnProperty.call(on,n)?Promise.resolve():(on[n]=!0,new Promise((function(n,o){var i=OC.filePath(t,"js",e),a=document.createElement("script");a.src=i,a.setAttribute("nonce",btoa(OC.requestToken)),a.onload=function(){return n()},a.onerror=function(){return o(new Error("Failed to load script from ".concat(i)))},document.head.appendChild(a)})))},loadStylesheet:function(t,e){var n=t+e;return Object.prototype.hasOwnProperty.call(an,n)?Promise.resolve():(an[n]=!0,new Promise((function(n,o){var i=OC.filePath(t,"css",e),a=document.createElement("link");a.href=i,a.type="text/css",a.rel="stylesheet",a.onload=function(){return n()},a.onerror=function(){return o(new Error("Failed to load stylesheet from ".concat(i)))},document.head.appendChild(a)})))}},sn={success:function(t,e){return(0,h.s$)(t,e)},warning:function(t,e){return(0,h.K2)(t,e)},error:function(t,e){return(0,h.x2)(t,e)},info:function(t,e){return(0,h.JQ)(t,e)},message:function(t,e){return(0,h.PV)(t,e)}},ln={Accessibility:{disableKeyboardShortcuts:function(){return(0,Jt.j)("theming","shortcutsDisabled",!1)}},AppConfig:a,Collaboration:{registerType:function(t,e){nn[t]=e},trigger:function(t){return nn[t].action()},getTypes:function(){return Object.keys(nn)},getIcon:function(t){return nn[t].typeIconClass||""},getLabel:function(t){return Tt()(nn[t].typeString||t)},getLink:function(t,e){return void 0!==nn[t]?nn[t].link(e):""}},Comments:r,InitialState:{loadState:Jt.j},Loader:rn,Toast:sn,WhatsNew:s},cn=function(){void 0===window.TESTING&&console.warn.apply(console,arguments)},un=function(t,e,n){(Array.isArray(t)?t:[t]).forEach((function(t){void 0!==window[t]&&delete window[t],Object.defineProperty(window,t,{get:function(){return cn(n?"".concat(t," is deprecated: ").concat(n):"".concat(t," is deprecated")),e()}})}))};window._=f.ZP,un(["$","jQuery"],(function(){return c()}),"The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own."),un("autosize",(function(){return Ue.Z}),"please ship your own, this will be removed in Nextcloud 20"),un("Backbone",(function(){return D()}),"please ship your own, this will be removed in Nextcloud 20"),un(["Clipboard","ClipboardJS"],(function(){return Le()}),"please ship your own, this will be removed in Nextcloud 20"),window.dav=j.dav,un("Handlebars",(function(){return Pt()}),"please ship your own, this will be removed in Nextcloud 20"),un("md5",(function(){return Re()}),"please ship your own, this will be removed in Nextcloud 20"),un("moment",(function(){return Mt()}),"please ship your own, this will be removed in Nextcloud 20"),window.OC=Wt,un("initCore",(function(){return Ne}),"this is an internal function"),un("oc_appswebroots",(function(){return Wt.appswebroots}),"use OC.appswebroots instead, this will be removed in Nextcloud 20"),un("oc_config",(function(){return Wt.config}),"use OC.config instead, this will be removed in Nextcloud 20"),un("oc_current_user",(function(){return Wt.getCurrentUser().uid}),"use OC.getCurrentUser().uid instead, this will be removed in Nextcloud 20"),un("oc_debug",(function(){return Wt.debug}),"use OC.debug instead, this will be removed in Nextcloud 20"),un("oc_defaults",(function(){return Wt.theme}),"use OC.theme instead, this will be removed in Nextcloud 20"),un("oc_isadmin",Wt.isUserAdmin,"use OC.isUserAdmin() instead, this will be removed in Nextcloud 20"),un("oc_requesttoken",(function(){return At()}),"use OC.requestToken instead, this will be removed in Nextcloud 20"),un("oc_webroot",(function(){return Wt.webroot}),"use OC.getRootPath() instead, this will be removed in Nextcloud 20"),un("OCDialogs",(function(){return Wt.dialogs}),"use OC.dialogs instead, this will be removed in Nextcloud 20"),window.OCP=ln,window.OCA=et,c().fn.select2=(Xe=c().fn.select2,$e="select2",19,tn=Xe,en=function(){return cn("The ".concat($e," library is deprecated! It will be removed in nextcloud ").concat(19,".")),tn.apply(this,arguments)},Object.assign(en,tn),en),window.t=f.ZP.bind(Wt.L10N.translate,Wt.L10N),window.n=f.ZP.bind(Wt.L10N.translatePlural,Wt.L10N),c().fn.avatar=function(t,e,n,o,i,a){var r=function(t){t.imageplaceholder("?"),t.css("background-color","#b9b9b9")};if(void 0!==t&&(t=String(t)),void 0!==a&&(a=String(a)),void 0===e&&(e=this.height()>0?this.height():this.data("size")>0?this.data("size"):64),this.height(e),this.width(e),void 0===t){if(void 0===this.data("user"))return void r(this);t=this.data("user")}t=String(t).replace(/\//g,"");var s,l=this;s=t===Wt.getCurrentUser().uid?Wt.generateUrl("/avatar/{user}/{size}?v={version}",{user:t,size:Math.ceil(e*window.devicePixelRatio),version:oc_userconfig.avatar.version}):Wt.generateUrl("/avatar/{user}/{size}",{user:t,size:Math.ceil(e*window.devicePixelRatio)});var c=new Image;c.onload=function(){l.clearimageplaceholder(),l.append(c),"function"==typeof i&&i()},c.onerror=function(){l.clearimageplaceholder(),void 0!==a?l.imageplaceholder(t,a):r(l),"function"==typeof i&&i()},e<32?l.addClass("icon-loading-small"):l.addClass("icon-loading"),c.width=e,c.height=e,c.src=s,c.alt=""};var dn=i(47078);c().fn.contactsMenu=function(e,n,o){if(-1!==[0,4,6].indexOf(n)){var i=this;o.append('