core-login.js 155 KB

123
  1. /*! For license information please see core-login.js.LICENSE.txt */
  2. (()=>{var e,r={65358:(t,e,n)=>{"use strict";function r(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(arguments.length<1)return"";var r=e.filter((function(t){return t.length>0}));if(r.length<1)return"";var i=r[r.length-1],o="/"===r[0].charAt(0),s="/"===i.charAt(i.length-1),a=r.reduce((function(t,e){return t.concat(e.split("/"))}),[]),l=!o,c=a.reduce((function(t,e){return""===e?t:l?(l=!1,t+e):t+"/"+e}),"");return s?c+"/":c}e.Ec=function(t){return t?t.split("/").map(encodeURIComponent).join("/"):t},e.EZ=function(t){return t.replace(/\\/g,"/").replace(/.*\//,"")},e.XX=function(t){return t.replace(/\\/g,"/").replace(/\/[^\/]*$/,"")},e.RQ=r,e.Mg=function(t,e){var n=(t||"").split("/").filter((function(t){return"."!==t})),i=(e||"").split("/").filter((function(t){return"."!==t}));return(t=r.apply(void 0,n))===(e=r.apply(void 0,i))},n(21249),n(74916),n(23123),n(15306),n(57327),n(85827),n(92222)},99711:(e,r,i)=>{"use strict";var o={};i.r(o),i.d(o,{exclude:()=>oe,extract:()=>Qt,parse:()=>te,parseUrl:()=>ne,pick:()=>ie,stringify:()=>ee,stringifyUrl:()=>re});var s=i(20144),a=i(69183),l=i(59050),c=i(19755),u=i.n(c),d=i(3255),f=i(25108);const h={updatableNotification:null,getDefaultNotificationFunction:null,setDefault(t){this.getDefaultNotificationFunction=t},hide(t,e){l.default.isFunction(t)&&(e=t,t=void 0),t?(t.each((function(){u()(this)[0].toastify?u()(this)[0].toastify.hideToast():f.error("cannot hide toast because object is not set"),this===this.updatableNotification&&(this.updatableNotification=null)})),e&&e.call(),this.getDefaultNotificationFunction&&this.getDefaultNotificationFunction()):f.error("Missing argument $row in OC.Notification.hide() call, caller needs to be adjusted to only dismiss its own notification")},showHtml(t,e){(e=e||{}).isHTML=!0,e.timeout=e.timeout?e.timeout:d.Rl;const n=(0,d.PV)(t,e);return n.toastElement.toastify=n,u()(n.toastElement)},show(t,e){(e=e||{}).timeout=e.timeout?e.timeout:d.Rl;const n=(0,d.PV)(function(t){return t.toString().split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split('"').join("&quot;").split("'").join("&#039;")}(t),e);return n.toastElement.toastify=n,u()(n.toastElement)},showUpdate(t){return this.updatableNotification&&this.updatableNotification.hideToast(),this.updatableNotification=(0,d.PV)(t,{timeout:d.Rl}),this.updatableNotification.toastElement.toastify=this.updatableNotification,u()(this.updatableNotification.toastElement)},showTemporary(t,e){(e=e||{}).timeout=e.timeout||d.TN;const n=(0,d.PV)(t,e);return n.toastElement.toastify=n,u()(n.toastElement)},isHidden:()=>!u()("#content").find(".toastify").length},p=l.default.throttle((()=>{h.showTemporary(t("core","Connection to server lost"))}),7e3,{trailing:!1});let m=!1;const g={enableDynamicSlideToggle(){m=!0},showAppSidebar:function(t){(t||u()("#app-sidebar")).removeClass("disappear").show(),u()("#app-content").trigger(new(u().Event)("appresized"))},hideAppSidebar:function(t){(t||u()("#app-sidebar")).hide().addClass("disappear"),u()("#app-content").trigger(new(u().Event)("appresized"))}};var v=i(79753);function y(t,e,n){"post"!==t&&"delete"!==t||!Lt.PasswordConfirmation.requiresPasswordConfirmation()?(n=n||{},u().ajax({type:t.toUpperCase(),url:(0,v.generateOcsUrl)("apps/provisioning_api/api/v1/config/apps")+e,data:n.data||{},success:n.success,error:n.error})):Lt.PasswordConfirmation.requirePasswordConfirmation(_.bind(y,this,t,e,n))}const b=window.oc_appconfig||{},w={getValue:function(t,e,n,r){!function(t,e,n,r){(r=r||{}).data={defaultValue:n},y("get","/"+t+"/"+e,r)}(t,e,n,{success:r})},setValue:function(t,e,n){!function(t,e,n,r){(r=r||{}).data={value:n},y("post","/"+t+"/"+e,r)}(t,e,n)},getApps:function(t){!function(t){y("get","",t)}({success:t})},getKeys:function(t,e){!function(t,e){y("get","/"+t,e)}(t,{success:e})},deleteKey:function(t,e){!function(t,e,n){y("delete","/"+t+"/"+e,void 0)}(t,e)}},A=void 0!==window._oc_appswebroots&&window._oc_appswebroots;var x=i(72316),C=i.n(x),k=i(76591),P=i(25108);const E={create:"POST",update:"PROPPATCH",patch:"PROPPATCH",delete:"DELETE",read:"PROPFIND"};function T(t,e){if(l.default.isArray(t))return l.default.map(t,(function(t){return T(t,e)}));var n={href:t.href};return l.default.each(t.propStat,(function(t){if("HTTP/1.1 200 OK"===t.status)for(var r in t.properties){var i=r;r in e&&(i=e[r]),n[i]=t.properties[r]}})),n.id||(n.id=j(n.href)),n}function j(t){var e=t.indexOf("?");e>0&&(t=t.substr(0,e));var n,r=t.split("/");do{n=r[r.length-1],r.pop()}while(!n&&r.length>0);return n}function O(t){return t>=200&&t<=299}function S(t,e,n,r){return t.propPatch(e.url,function(t,e){var n,r={};for(n in t){var i=e[n],o=t[n];i||(P.warn('No matching DAV property for property "'+n),i=n),(l.default.isBoolean(o)||l.default.isNumber(o))&&(o=""+o),r[i]=o}return r}(n.changed,e.davProperties),r).then((function(t){O(t.status)?l.default.isFunction(e.success)&&e.success(n.toJSON()):l.default.isFunction(e.error)&&e.error(t)}))}const N=C().noConflict();Object.assign(N,{davCall:(t,e)=>{var n=new k.dav.Client({baseUrl:t.url,xmlNamespaces:l.default.extend({"DAV:":"d","http://owncloud.org/ns":"oc"},t.xmlNamespaces||{})});n.resolveUrl=function(){return t.url};var r=l.default.extend({"X-Requested-With":"XMLHttpRequest",requesttoken:OC.requestToken},t.headers);return"PROPFIND"===t.type?function(t,e,n,r){return t.propFind(e.url,l.default.values(e.davProperties)||[],e.depth,r).then((function(t){if(O(t.status)){if(l.default.isFunction(e.success)){var n=l.default.invert(e.davProperties),r=T(t.body,n);e.depth>0&&r.shift(),e.success(r)}}else l.default.isFunction(e.error)&&e.error(t)}))}(n,t,0,r):"PROPPATCH"===t.type?S(n,t,e,r):"MKCOL"===t.type?function(t,e,n,r){return t.request(e.type,e.url,r,null).then((function(i){O(i.status)?S(t,e,n,r):l.default.isFunction(e.error)&&e.error(i)}))}(n,t,e,r):function(t,e,n,r){return r["Content-Type"]="application/json",t.request(e.type,e.url,r,e.data).then((function(t){if(O(t.status)){if(l.default.isFunction(e.success)){if("PUT"===e.type||"POST"===e.type||"MKCOL"===e.type){var r=t.body||n.toJSON(),i=t.xhr.getResponseHeader("Content-Location");return"POST"===e.type&&i&&(r.id=j(i)),void e.success(r)}if(207===t.status){var o=l.default.invert(e.davProperties);e.success(T(t.body,o))}else e.success(t.body)}}else l.default.isFunction(e.error)&&e.error(t)}))}(n,t,e,r)},davSync:(t=>(e,n,r)=>{var i={type:E[e]||e},o=n instanceof t.Collection;if("update"===e&&(n.hasInnerCollection?i.type="MKCOL":(n.usePUT||n.collection&&n.collection.usePUT)&&(i.type="PUT")),r.url||(i.url=l.default.result(n,"url")||function(){throw new Error('A "url" property or function must be specified')}()),null!=r.data||!n||"create"!==e&&"update"!==e&&"patch"!==e||(i.data=JSON.stringify(r.attrs||n.toJSON(r))),"PROPFIND"!==i.type&&(i.processData=!1),"PROPFIND"===i.type||"PROPPATCH"===i.type){var s=n.davProperties;!s&&n.model&&(s=n.model.prototype.davProperties),s&&(l.default.isFunction(s)?i.davProperties=s.call(n):i.davProperties=s),i.davProperties=l.default.extend(i.davProperties||{},r.davProperties),l.default.isUndefined(r.depth)&&(r.depth=o?1:0)}var a=r.error;r.error=function(t,e,n){r.textStatus=e,r.errorThrown=n,a&&a.call(r.context,t,e,n)};var c=r.xhr=t.davCall(l.default.extend(i,r),n);return n.trigger("request",n,c,r),c})(N)});const I=N;var L=i(65358);const F=window._oc_config||{};var R=i(25108);const U=x.Model.extend({defaults:{fullName:"",lastMessage:"",actions:[],hasOneAction:!1,hasTwoActions:!1,hasManyActions:!1},initialize:function(){0===this.get("actions").length?this.set("hasOneAction",!0):1===this.get("actions").length?(this.set("hasTwoActions",!0),this.set("secondAction",this.get("actions")[0])):this.set("hasManyActions",!0);const e=this.get("fullName");this.get("avatar")&&e&&this.set("avatarLabel",t("core","Avatar of {fullName}",{fullName:e}))}}),$=x.Collection.extend({model:U}),M=x.View.extend({_collection:void 0,_subViews:[],tagName:"ul",initialize:function(t){this._collection=t.collection},render:function(){var t=this;return t.$el.html(""),t._subViews=[],t._collection.forEach((function(e){var n=new B({model:e});n.render(),t.$el.append(n.$el),n.on("toggle:actionmenu",t._onChildActionMenuToggle,t),t._subViews.push(n)})),t},_onChildActionMenuToggle:function(t){this._subViews.forEach((function(e){e.trigger("parent:toggle:actionmenu",t)}))}}),B=x.View.extend({className:"contact",tagName:"li",_template:void 0,_model:void 0,_actionMenuShown:!1,events:{"click .icon-more":"_onToggleActionsMenu"},contactTemplate:i(10944),template:function(t){return this.contactTemplate(t)},initialize:function(t){this._model=t.model,this.on("parent:toggle:actionmenu",this._onOtherActionMenuOpened,this)},render:function(){return this.$el.html(this.template({contact:this._model.toJSON()})),this.delegateEvents(),this.$("div.avatar").imageplaceholder(this._model.get("fullName")),this},_onToggleActionsMenu:function(){this._actionMenuShown=!this._actionMenuShown,this._actionMenuShown?this.$(".menu").show():this.$(".menu").hide(),this.trigger("toggle:actionmenu",this.$el)},_onOtherActionMenuOpened:function(t){this.$el.is(t)||(this._actionMenuShown=!1,this.$(".menu").hide())}}),z=x.View.extend({_loadingTemplate:void 0,_errorTemplate:void 0,_contentTemplate:void 0,_contactsTemplate:void 0,_contacts:void 0,_searchTerm:"",events:{"input #contactsmenu-search":"_onSearch"},templates:{loading:i(95386),error:i(20421),menu:i(66115),list:i(34083)},_onSearch:l.default.debounce((function(t){var e=this.$("#contactsmenu-search").val();e!==this._searchTerm&&(this.trigger("search",this.$("#contactsmenu-search").val()),this._searchTerm=e)}),700),loadingTemplate:function(t){return this.templates.loading(t)},errorTemplate:function(e){return this.templates.error(l.default.extend({couldNotLoadText:t("core","Could not load your contacts")},e))},contentTemplate:function(e){return this.templates.menu(l.default.extend({searchContactsText:t("core","Search contacts …")},e))},contactsTemplate:function(e){return this.templates.list(l.default.extend({noContactsFoundText:t("core","No contacts found"),showAllContactsText:t("core","Show all contacts …"),contactsAppMgmtText:t("core","Install the Contacts app")},e))},initialize:function(t){this.options=t},showLoading:function(t){this.render(),this._contacts=void 0,this.$(".content").html(this.loadingTemplate({loadingText:t}))},showError:function(){this.render(),this._contacts=void 0,this.$(".content").html(this.errorTemplate())},showContacts:function(t,e){this._contacts=t.contacts,this.render({contacts:t.contacts});var n=new M({collection:t.contacts});n.render(),this.$(".content").html(this.contactsTemplate({contacts:t.contacts,searchTerm:e,contactsAppEnabled:t.contactsAppEnabled,contactsAppURL:Lt.generateUrl("/apps/contacts"),canInstallApp:Lt.isUserAdmin(),contactsAppMgmtURL:Lt.generateUrl("/settings/apps/social/contacts")})),this.$("#contactsmenu-contacts").html(n.$el)},render:function(t){var e=this.$("#contactsmenu-search").val();return this.$el.html(this.contentTemplate(t)),this.$("#contactsmenu-search").val(e),this.$("#contactsmenu-search").focus(),this}}),D=function(t){this.initialize(t)};D.prototype={$el:void 0,_view:void 0,_contactsPromise:void 0,initialize:function(t){this.$el=u()(t.el),this._view=new z({el:this.$el}),this._view.on("search",(function(t){this.loadContacts(t)}),this)},_getContacts:function(t){var e=Lt.generateUrl("/contactsmenu/contacts");return Promise.resolve(u().ajax(e,{method:"POST",data:{filter:t}}))},loadContacts:function(e){var n=this;return n._contactsPromise||(n._contactsPromise=n._getContacts(e)),l.default.isUndefined(e)||""===e?n._view.showLoading(t("core","Loading your contacts …")):n._view.showLoading(t("core","Looking for {term} …",{term:e})),n._contactsPromise.then((function(t){t.contacts=new $(t.contacts),n._view.showContacts(t,e)}),(function(t){n._view.showError(),R.error("There was an error loading your contacts",t)})).then((function(){delete n._contactsPromise})).catch(R.error.bind(this))}};const H=D,q=document.getElementsByTagName("head")[0].getAttribute("data-user"),Y=document.getElementsByTagName("head")[0].getAttribute("data-user-displayname"),V=void 0!==q&&q;var K=i(25108);const Z={Search:class{constructor(){OC.debug&&K.warn("OCA.Search is deprecated. Please use the unified search API instead")}}},G=t=>"click"===t.type||"keydown"===t.type&&"Enter"===t.key;var W=i(25108);const J={YES_NO_BUTTONS:70,OK_BUTTONS:71,FILEPICKER_TYPE_CHOOSE:1,FILEPICKER_TYPE_MOVE:2,FILEPICKER_TYPE_COPY:3,FILEPICKER_TYPE_COPY_MOVE:4,FILEPICKER_TYPE_CUSTOM:5,dialogsCounter:0,alert:function(t,e,n,r){this.message(t,e,"alert",J.OK_BUTTON,n,r)},info:function(t,e,n,r){this.message(t,e,"info",J.OK_BUTTON,n,r)},confirm:function(t,e,n,r){return this.message(t,e,"notice",J.YES_NO_BUTTONS,n,r)},confirmDestructive:function(t,e,n,r,i){return this.message(t,e,"none",n,r,void 0===i||i)},confirmHtml:function(t,e,n,r){return this.message(t,e,"notice",J.YES_NO_BUTTONS,n,r,!0)},prompt:function(e,n,r,i,o,s){return u().when(this._getMessageTemplate()).then((function(a){var c="oc-dialog-"+J.dialogsCounter+"-content",d="#"+c,f=a.octemplate({dialog_name:c,title:n,message:e,type:"notice"}),h=u()("<input/>");h.attr("type",s?"password":"text").attr("id",c+"-input").attr("placeholder",o);var p=u()("<label/>").attr("for",c+"-input").text(o+": ");f.append(p),f.append(h),void 0===i&&(i=!1),u()("body").append(f),void 0!==r&&(r=l.default.once(r));var m=[{text:t("core","No"),click:function(){void 0!==r&&r(!1,h.val()),u()(d).ocdialog("close")}},{text:t("core","Yes"),click:function(){void 0!==r&&r(!0,h.val()),u()(d).ocdialog("close")},defaultButton:!0}];u()(d).ocdialog({closeOnEscape:!0,modal:i,buttons:m,close:function(){void 0!==r&&r(!1,h.val())}}),h.focus(),J.dialogsCounter++}))},filepicker:function(e,n,r,i,o,s,a,l){var c=this;if(this.filepicker.sortField="name",this.filepicker.sortOrder="asc",!this.filepicker.loading){void 0===s&&(s=this.FILEPICKER_TYPE_CHOOSE);var d=t("core","No files in here"),f=t("files","New folder");s!==this.FILEPICKER_TYPE_COPY&&s!==this.FILEPICKER_TYPE_MOVE&&s!==this.FILEPICKER_TYPE_COPY_MOVE||(d=t("core","No more subfolders in here")),this.filepicker.loading=!0,this.filepicker.filesClient=Z.Sharing&&Z.Sharing.PublicApp&&Z.Sharing.PublicApp.fileList?Z.Sharing.PublicApp.fileList.filesClient:Lt.Files.getClient(),this.filelist=null,a=a||"",l=Object.assign({allowDirectoryChooser:!1},l),u().when(this._getFilePickerTemplate()).then((function(h){var p,m;c.filepicker.loading=!1,c.$filePicker&&c.$filePicker.ocdialog("close"),null==i&&(i=[]),"string"==typeof i&&(i=[i]),c.$filePicker=h.octemplate({dialog_name:"oc-dialog-filepicker-content",title:e,emptytext:d,newtext:f,nameCol:t("core","Name"),sizeCol:t("core","Size"),modifiedCol:t("core","Modified")}).data("path",a).data("multiselect",r).data("mimetype",i).data("allowDirectoryChooser",l.allowDirectoryChooser),"function"==typeof l.filter&&c.$filePicker.data("filter",l.filter),void 0===o&&(o=!1),void 0===r&&(r=!1),u()(null!==(p=null===(m=l)||void 0===m?void 0:m.target)&&void 0!==p?p:"body").prepend(c.$filePicker),c.$showGridView=u()("button#picker-showgridview"),c.$showGridView.on("click keydown",(function(t){G(t)&&c._onGridviewChange()})),c._getGridSettings();var g=c.$filePicker.find(".actions.creatable .button-add");s!==c.FILEPICKER_TYPE_CHOOSE||l.allowDirectoryChooser||c.$filePicker.find(".actions.creatable").hide(),g.on("focus",(function(){c.$filePicker.ocdialog("setEnterCallback",(function(t){t.stopImmediatePropagation(),t.preventDefault(),g.click()}))})),g.on("blur",(function(){c.$filePicker.ocdialog("unsetEnterCallback")})),Lt.registerMenu(g,c.$filePicker.find(".menu"),(function(){y.tooltip("hide"),y.focus(),c.$filePicker.ocdialog("setEnterCallback",(function(t){t.stopImmediatePropagation(),t.preventDefault(),c.$filePicker.submit()}));var t=y.val(),e=t.lastIndexOf(".");-1===e&&(e=t.length),y.selectRange(0,e)}));var v=c.$filePicker.find(".filenameform"),y=v.find("input[type='text']"),b=v.find("input[type='submit']");y.on("keydown",(function(t){G(t)&&(t.stopImmediatePropagation(),t.preventDefault(),v.submit())})),b.on("click",(function(t){t.stopImmediatePropagation(),t.preventDefault(),v.submit()}));v.on("submit",(function(e){if(e.stopPropagation(),e.preventDefault(),function(){var e=y.val();try{if(function(e){var n=e.trim();if("."===n||".."===n)throw t("files",'"{name}" is an invalid file name.',{name:e});if(0===n.length)throw t("files","File name cannot be empty.");if(-1!==n.indexOf("/"))throw t("files",'"/" is not allowed inside a file name.');if(n.match(Lt.config.blacklist_files_regex))throw t("files",'"{name}" is not an allowed filetype',{name:e});return!0}(e)){if(c.filelist.find((function(t){return t.name===this}),e))throw t("files","{newName} already exists",{newName:e},void 0,{escape:!1});return!0}}catch(t){y.attr("title",t),y.tooltip({placement:"right",trigger:"manual",container:".newFolderMenu"}),y.tooltip("_fixTitle"),y.tooltip("show"),y.addClass("error")}return!1}()){var n=y.val();c.filepicker.filesClient.createDirectory(c.$filePicker.data("path")+"/"+n).always((function(t){c._fillFilePicker(c.$filePicker.data("path")+"/"+n,s)})),Lt.hideMenus(),c.$filePicker.ocdialog("unsetEnterCallback"),c.$filePicker.click(),y.val(f)}})),y.on("input",(function(t){y.tooltip("hide")})),c.$filePicker.ready((function(){c.$fileListHeader=c.$filePicker.find(".filelist thead tr"),c.$filelist=c.$filePicker.find(".filelist tbody"),c.$filelistContainer=c.$filePicker.find(".filelist-container"),c.$dirTree=c.$filePicker.find(".dirtree"),c.$dirTree.on("click keydown",".crumb",c,(function(t){G(t)&&c._handleTreeListSelect(t,s)})),c.$filelist.on("click keydown","tr",(function(t){G(t)&&c._handlePickerClick(t,u()(this),s)})),c.$fileListHeader.on("click keydown","a",(function(t){if(G(t)){var e=c.$filePicker.data("path");c.filepicker.sortField=u()(t.currentTarget).data("sort"),c.filepicker.sortOrder="asc"===c.filepicker.sortOrder?"desc":"asc",c._fillFilePicker(e,s)}})),c._fillFilePicker(a,s)}));var w=function(t){if(void 0!==n){var e;if(!0===r)e=[],c.$filelist.find("tr.filepicker_element_selected").each((function(t,n){e.push(c.$filePicker.data("path")+"/"+u()(n).data("entryname"))}));else{e=c.$filePicker.data("path");var i=c.$filelist.find("tr.filepicker_element_selected").data("entryname");i&&(e+="/"+i)}n(e,t),c.$filePicker.ocdialog("close")}},_=[];s===J.FILEPICKER_TYPE_CHOOSE?_.push({text:t("core","Choose"),click:function(){w(J.FILEPICKER_TYPE_CHOOSE)},defaultButton:!0}):s===J.FILEPICKER_TYPE_CUSTOM?l.buttons.forEach((function(t){_.push({text:t.text,click:function(){w(t.type)},defaultButton:t.defaultButton})})):(s!==J.FILEPICKER_TYPE_COPY&&s!==J.FILEPICKER_TYPE_COPY_MOVE||_.push({text:t("core","Copy"),click:function(){w(J.FILEPICKER_TYPE_COPY)},defaultButton:!1}),s!==J.FILEPICKER_TYPE_MOVE&&s!==J.FILEPICKER_TYPE_COPY_MOVE||_.push({text:t("core","Move"),click:function(){w(J.FILEPICKER_TYPE_MOVE)},defaultButton:!0})),c.$filePicker.ocdialog({closeOnEscape:!0,width:600,height:500,modal:o,buttons:_,style:{buttons:"aside"},close:function(){try{u()(this).ocdialog("destroy").remove()}catch(t){}c.$filePicker=null}});var A=c.$filePicker.closest(".oc-dialog").find(".primary");-1!==c.$filePicker.data("mimetype").indexOf("httpd/unix-directory")||c.$filePicker.data("allowDirectoryChooser")?A.prop("disabled",!1):A.prop("disabled",!0)})).fail((function(e,n){c.filepicker.loading=!1,0!==e&&alert(t("core","Error loading file picker template: {error}",{error:n}))}))}},message:function(e,n,r,i,o,s,a){return u().when(this._getMessageTemplate()).then((function(l){var c="oc-dialog-"+J.dialogsCounter+"-content",d="#"+c,f=l.octemplate({dialog_name:c,title:n,message:e,type:r},a?{escapeFunction:""}:{});void 0===s&&(s=!1),u()("body").append(f);var h=[];switch(i){case J.YES_NO_BUTTONS:h=[{text:t("core","No"),click:function(){void 0!==o&&o(!1),u()(d).ocdialog("close")}},{text:t("core","Yes"),click:function(){void 0!==o&&o(!0),u()(d).ocdialog("close")},defaultButton:!0}];break;case J.OK_BUTTON:h[0]={text:t("core","OK"),click:function(){u()(d).ocdialog("close"),void 0!==o&&o()},defaultButton:!0};break;default:"object"==typeof i&&i.type===J.YES_NO_BUTTONS&&(h=[{text:i.cancel||t("core","No"),click:function(){void 0!==o&&o(!1),u()(d).ocdialog("close")}},{text:i.confirm||t("core","Yes"),click:function(){void 0!==o&&o(!0),u()(d).ocdialog("close")},defaultButton:!0,classes:i.confirmClasses}])}u()(d).ocdialog({closeOnEscape:!0,closeCallback:()=>{o&&o(!1)},modal:s,buttons:h}),J.dialogsCounter++})).fail((function(r,i){0===r?alert(n+": "+e):alert(t("core","Error loading message template: {error}",{error:i}))}))},_fileexistsshown:!1,fileexists:function(e,r,i,o){var s=this,a=new(u().Deferred),l=function(t,e,n,r,i){r=Math.round(r),i=Math.round(i);for(var o=t.getContext("2d").getImageData(0,0,e,n),s=t.getContext("2d").getImageData(0,0,r,i),a=o.data,l=s.data,c=e/r,u=n/i,d=Math.ceil(c/2),f=Math.ceil(u/2),h=0;h<i;h++)for(var p=0;p<r;p++){for(var m=4*(p+h*r),g=0,v=0,y=0,b=0,w=0,_=0,A=0,x=(h+.5)*u,C=Math.floor(h*u);C<(h+1)*u;C++)for(var k=Math.abs(x-(C+.5))/f,P=(p+.5)*c,E=k*k,T=Math.floor(p*c);T<(p+1)*c;T++){var j=Math.abs(P-(T+.5))/d,O=Math.sqrt(E+j*j);O>=-1&&O<=1&&(g=2*O*O*O-3*O*O+1)>0&&(A+=g*a[3+(j=4*(T+C*e))],y+=g,a[j+3]<255&&(g=g*a[j+3]/250),b+=g*a[j],w+=g*a[j+1],_+=g*a[j+2],v+=g)}l[m]=b/v,l[m+1]=w/v,l[m+2]=_/v,l[m+3]=A/y}t.getContext("2d").clearRect(0,0,Math.max(e,r),Math.max(n,i)),t.width=r,t.height=i,t.getContext("2d").putImageData(s,0,0)},c=function(n,r,i){var o=n.find(".template").clone().removeClass("template").addClass("conflict"),s=o.find(".original"),a=o.find(".replacement");o.data("data",e),o.find(".filename").text(r.name),s.find(".size").text(Lt.Util.humanFileSize(r.size)),s.find(".mtime").text(Lt.Util.formatDate(r.mtime)),i.size&&i.lastModified&&(a.find(".size").text(Lt.Util.humanFileSize(i.size)),a.find(".mtime").text(Lt.Util.formatDate(i.lastModified)));var c=r.directory+"/"+r.name,d={file:c,x:96,y:96,c:r.etag,forceIcon:0},f=Files.generatePreviewUrl(d);f=f.replace(/'/g,"%27"),s.find(".icon").css({"background-image":"url('"+f+"')"}),function(t){var e=new(u().Deferred),n=t.type&&t.type.split("/").shift();if(window.FileReader&&"image"===n){var r=new FileReader;r.onload=function(t){var n=new Blob([t.target.result]);window.URL=window.URL||window.webkitURL;var r=window.URL.createObjectURL(n),i=new Image;i.src=r,i.onload=function(){var t,n,r,o,s,a,c,u=(t=i,s=document.createElement("canvas"),a=t.width,c=t.height,a>c?(r=0,n=(a-c)/2):(r=(c-a)/2,n=0),o=Math.min(a,c),s.width=o,s.height=o,s.getContext("2d").drawImage(t,n,r,o,o,0,0,o,o),l(s,o,o,96,96),s.toDataURL("image/png",.7));e.resolve(u)}},r.readAsArrayBuffer(t)}else e.reject();return e}(i).then((function(t){a.find(".icon").css("background-image","url("+t+")")}),(function(){c=Lt.MimeType.getIconUrl(i.type),a.find(".icon").css("background-image","url("+c+")")}));var h=n.find(".conflict").length;s.find("input:checkbox").attr("id","checkbox_original_"+h),a.find("input:checkbox").attr("id","checkbox_replacement_"+h),n.append(o),i.lastModified>r.mtime?a.find(".mtime").css("font-weight","bold"):i.lastModified<r.mtime&&s.find(".mtime").css("font-weight","bold"),i.size&&i.size>r.size?a.find(".size").css("font-weight","bold"):i.size&&i.size<r.size&&s.find(".size").css("font-weight","bold"),"readonly"===r.status&&(s.addClass("readonly").find('input[type="checkbox"]').prop("checked",!0).prop("disabled",!0),s.find(".message").text(t("core","read-only")))},d="oc-dialog-fileexists-content",f="#"+d;if(this._fileexistsshown){var h=u()(f+" .conflicts");c(h,r,i);var p=u()(f+" .conflict").length,m=n("core","{count} file conflict","{count} file conflicts",p,{count:p});u()(f).parent().children(".oc-dialog-title").text(m),u()(window).trigger("resize"),a.resolve()}else this._fileexistsshown=!0,u().when(this._getFileExistsTemplate()).then((function(n){var l=t("core","One file conflict"),h=n.octemplate({dialog_name:d,title:l,type:"fileexists",allnewfiles:t("core","New Files"),allexistingfiles:t("core","Already existing files"),why:t("core","Which files do you want to keep?"),what:t("core","If you select both versions, the copied file will have a number added to its name.")});if(u()("body").append(h),r&&i){var p=h.find(".conflicts");c(p,r,i)}var m=[{text:t("core","Cancel"),classes:"cancel",click:function(){void 0!==o.onCancel&&o.onCancel(e),u()(f).ocdialog("close")}},{text:t("core","Continue"),classes:"continue",click:function(){void 0!==o.onContinue&&o.onContinue(u()(f+" .conflict")),u()(f).ocdialog("close")}}];u()(f).ocdialog({width:500,closeOnEscape:!0,modal:!0,buttons:m,closeButton:null,close:function(){s._fileexistsshown=!1;try{u()(this).ocdialog("destroy").remove()}catch(t){}}}),u()(f).css("height","auto");var g=h.closest(".oc-dialog").find("button.continue");function v(){var t=h.find(".conflicts .checkbox:checked").length;g.prop("disabled",0===t)}g.prop("disabled",!0),u()(f).find(".allnewfiles").on("click",(function(){u()(f).find('.conflict .replacement input[type="checkbox"]').prop("checked",u()(this).prop("checked"))})),u()(f).find(".allexistingfiles").on("click",(function(){u()(f).find('.conflict .original:not(.readonly) input[type="checkbox"]').prop("checked",u()(this).prop("checked"))})),u()(f).find(".conflicts").on("click",".replacement,.original:not(.readonly)",(function(){var t=u()(this).find('input[type="checkbox"]');t.prop("checked",!t.prop("checked"))})),u()(f).find(".conflicts").on("click",'.replacement input[type="checkbox"],.original:not(.readonly) input[type="checkbox"]',(function(){var t=u()(this);t.prop("checked",!t.prop("checked"))})),u()(f).on("click",".replacement,.allnewfiles",(function(){var e=u()(f).find('.conflict .replacement input[type="checkbox"]:checked').length;e===u()(f+" .conflict").length?(u()(f).find(".allnewfiles").prop("checked",!0),u()(f).find(".allnewfiles + .count").text(t("core","(all selected)"))):e>0?(u()(f).find(".allnewfiles").prop("checked",!1),u()(f).find(".allnewfiles + .count").text(t("core","({count} selected)",{count:e}))):(u()(f).find(".allnewfiles").prop("checked",!1),u()(f).find(".allnewfiles + .count").text("")),v()})),u()(f).on("click",".original,.allexistingfiles",(function(){var e=u()(f).find('.conflict .original input[type="checkbox"]:checked').length;e===u()(f+" .conflict").length?(u()(f).find(".allexistingfiles").prop("checked",!0),u()(f).find(".allexistingfiles + .count").text(t("core","(all selected)"))):e>0?(u()(f).find(".allexistingfiles").prop("checked",!1),u()(f).find(".allexistingfiles + .count").text(t("core","({count} selected)",{count:e}))):(u()(f).find(".allexistingfiles").prop("checked",!1),u()(f).find(".allexistingfiles + .count").text("")),v()})),a.resolve()})).fail((function(){a.reject(),alert(t("core","Error loading file exists template"))}));return a.promise()},_getGridSettings:function(){const e=this;u().get(Lt.generateUrl("/apps/files/api/v1/showgridview"),(function(n){e.$showGridView.removeClass("icon-toggle-filelist icon-toggle-pictures").addClass(n.gridview?"icon-toggle-filelist":"icon-toggle-pictures"),e.$showGridView.attr("aria-label",n.gridview?t("files","Show list view"):t("files","Show grid view")),u()(".list-container").toggleClass("view-grid",n.gridview)}))},_onGridviewChange:function(){const e=this.$showGridView.hasClass("icon-toggle-filelist");Lt.currentUser&&u().post(Lt.generateUrl("/apps/files/api/v1/showgridview"),{show:!e}),this.$showGridView.removeClass("icon-toggle-filelist icon-toggle-pictures").addClass(e?"icon-toggle-pictures":"icon-toggle-filelist"),this.$showGridView.attr("aria-label",e?t("files","Show grid view"):t("files","Show list view")),this.$filePicker.find(".list-container").toggleClass("view-grid",!e)},_getFilePickerTemplate:function(){var t=u().Deferred();if(this.$filePickerTemplate)t.resolve(this.$filePickerTemplate);else{var e=this;u().get(Lt.filePath("core","templates","filepicker.html"),(function(n){e.$filePickerTemplate=u()(n),e.$listTmpl=e.$filePickerTemplate.find(".filelist tbody tr:first-child").detach(),t.resolve(e.$filePickerTemplate)})).fail((function(e,n,r){t.reject(e.status,r)}))}return t.promise()},_getMessageTemplate:function(){var t=u().Deferred();if(this.$messageTemplate)t.resolve(this.$messageTemplate);else{var e=this;u().get(Lt.filePath("core","templates","message.html"),(function(n){e.$messageTemplate=u()(n),t.resolve(e.$messageTemplate)})).fail((function(e,n,r){t.reject(e.status,r)}))}return t.promise()},_getFileExistsTemplate:function(){var t=u().Deferred();if(this.$fileexistsTemplate)t.resolve(this.$fileexistsTemplate);else{var e=this;u().get(Lt.filePath("files","templates","fileexists.html"),(function(n){e.$fileexistsTemplate=u()(n),t.resolve(e.$fileexistsTemplate)})).fail((function(){t.reject()}))}return t.promise()},_fillFilePicker:async function(e,n){var r=this;this.$filelist.empty(),this.$filePicker.find(".emptycontent").hide(),this.$filelistContainer.addClass("icon-loading"),this.$filePicker.data("path",e);var i=this.$filePicker.data("mimetype"),o=this.$filePicker.data("filter");"string"==typeof i&&(i=[i]),r.$fileListHeader.find(".sort-indicator").addClass("hidden").removeClass("icon-triangle-n").removeClass("icon-triangle-s"),r.$fileListHeader.find("[data-sort="+r.filepicker.sortField+"] .sort-indicator").removeClass("hidden"),"asc"===r.filepicker.sortOrder?r.$fileListHeader.find("[data-sort="+r.filepicker.sortField+"] .sort-indicator").addClass("icon-triangle-n"):r.$fileListHeader.find("[data-sort="+r.filepicker.sortField+"] .sort-indicator").addClass("icon-triangle-s");var s=async function(t){return r.filepicker.filesClient.getFolderContents(t).then(((t,e)=>e))};try{var a=await s(e)}catch(t){W.error("Requested path does not exists, falling back to root"),a=await s("/"),this.$filePicker.data("path","/"),this._changeButtonsText(n,"")}r.filelist=a,i&&i.length>0&&-1===i.indexOf("*")&&(a=a.filter((function(t){return"dir"===t.type||-1!==i.indexOf(t.mimetype)}))),o&&(a=a.filter(o));const l=document.getElementById("showHiddenFiles");"1"!==(null==l?void 0:l.value)&&(a=a.filter((function(t){return!t.name.startsWith(".")})));var c={name:function(t,e){return"dir"===t.type&&"dir"!==e.type?-1:"dir"!==t.type&&"dir"===e.type?1:Lt.Util.naturalSortCompare(t.name,e.name)},size:function(t,e){return t.size-e.size},mtime:function(t,e){return t.mtime-e.mtime}},d=c[r.filepicker.sortField]||c.name;a=a.sort((function(t,e){var n=function(t){return t.tags&&t.tags.indexOf(Lt.TAG_FAVORITE)>=0};return n(t)&&!n(e)?-1:!n(t)&&n(e)?1:"asc"===r.filepicker.sortOrder?d(t,e):-d(t,e)})),r._fillSlug(),0===a.length?(r.$filePicker.find(".emptycontent").show(),r.$fileListHeader.hide()):(r.$filePicker.find(".emptycontent").hide(),r.$fileListHeader.show()),r.$filelist.empty(),u().each(a,(function(n,i){var o,s;if(i.isEncrypted&&"httpd/unix-directory"===i.mimetype?i.icon=Lt.MimeType.getIconUrl("dir-encrypted"):i.icon=Lt.MimeType.getIconUrl(i.mimetype),void 0!==i.size&&i.size>=0?(o=Lt.Util.humanFileSize(parseInt(i.size,10),!0),s=Math.round(160-Math.pow(i.size/1048576,2))):(o=t("files","Pending"),s=80),i.name.length>=10)var a=Math.min(Math.floor(i.name.length/2),10),l=i.name.substr(0,i.name.length-a),c=i.name.substr(i.name.length-a);else l=i.name,c="";var d=r.$listTmpl.octemplate({type:i.type,dir:e,filename:i.name,filename1:l,filename2:c,date:Lt.Util.relativeModifiedDate(i.mtime),size:o,sizeColor:s,icon:i.icon});if("file"===i.type){var f={file:e+"/"+i.name,x:100,y:100},h=new Image,p=Lt.generateUrl("/core/preview.png?")+u().param(f);h.onload=function(){h.width>5&&d.find("td.filename").attr("style","background-image:url("+p+")")},h.src=p}r.$filelist.append(d)})),r.$filelistContainer.removeClass("icon-loading")},_fillSlug:function(){var e=this.$dirTree.find(".actions.creatable").detach();this.$dirTree.empty(),this.$dirTree.append("<nav></nav>"),this.$dirTree.append(e);var n=this.$filePicker.data("path"),r=u()('<li data-dir="{dir}" tabindex="0"><a class="{classList}">{name}</a></li>').addClass("crumb"),i=u()('<ul class="breadcrumb"></ul>');if(n){var o=n.split("/");u().each(o,(function(t,e){if(""===(e=o.pop()))return!1;i.prepend(r.octemplate({dir:o.join("/")+"/"+e,name:e}))}))}r.octemplate({dir:"",name:t("core","Home"),classList:"icon-home"},{escapeFunction:null}).addClass("crumb svg crumbhome").prependTo(i),this.$dirTree.find("> nav").prepend(i)},_handleTreeListSelect:function(t,e){var n=t.data,r=u()(t.target).closest(".crumb").data("dir");n._fillFilePicker(r,e);var i=t.target.closest(".oc-dialog"),o=u()(".primary",i);this._changeButtonsText(e,r.split(/[/]+/).pop()),-1!==this.$filePicker.data("mimetype").indexOf("httpd/unix-directory")||this.$filePicker.data("allowDirectoryChooser")?o.prop("disabled",!1):o.prop("disabled",!0)},_handlePickerClick:function(t,e,n){var r=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"),r.prop("disabled",!1)):"dir"===e.data("type")&&(this._fillFilePicker(this.$filePicker.data("path")+"/"+e.data("entryname"),n),this._changeButtonsText(n,e.data("entryname")),-1!==this.$filePicker.data("mimetype").indexOf("httpd/unix-directory")||this.$filePicker.data("allowDirectoryChooser")?r.prop("disabled",!1):r.prop("disabled",!0))},_changeButtonsText:function(e,n){var r=""===n?t("core","Copy"):t("core","Copy to {folder}",{folder:n}),i=""===n?t("core","Move"):t("core","Move to {folder}",{folder:n}),o=u()(".oc-dialog-buttonrow button");switch(e){case this.FILEPICKER_TYPE_CHOOSE:case this.FILEPICKER_TYPE_CUSTOM:break;case this.FILEPICKER_TYPE_COPY:o.text(r);break;case this.FILEPICKER_TYPE_MOVE:o.text(i);break;case this.FILEPICKER_TYPE_COPY_MOVE:o.eq(0).text(r),o.eq(1).text(i)}}},X=J,Q=((t,e)=>{let n=t.getElementsByTagName("head")[0].getAttribute("data-requesttoken");return{getToken:()=>n,setToken:t=>{n=t,e("csrf-token-update",{token:n})}}})(document,a.j8),tt=Q.getToken,et=(Q.setToken,function(t,e){var n,r,i="";if(this.typelessListeners=[],this.closed=!1,this.listeners={},e)for(n in e)i+=n+"="+encodeURIComponent(e[n])+"&";if(i+="requesttoken="+encodeURIComponent(tt()),this.useFallBack||"undefined"==typeof EventSource){var o="oc_eventsource_iframe_"+et.iframeCount;et.fallBackSources[et.iframeCount]=this,this.iframe=u()("<iframe></iframe>"),this.iframe.attr("id",o),this.iframe.hide(),r="&",-1===t.indexOf("?")&&(r="?"),this.iframe.attr("src",t+r+"fallback=true&fallback_id="+et.iframeCount+"&"+i),u()("body").append(this.iframe),this.useFallBack=!0,et.iframeCount++}else r="&",-1===t.indexOf("?")&&(r="?"),this.source=new EventSource(t+r+i),this.source.onmessage=function(t){for(var e=0;e<this.typelessListeners.length;e++)this.typelessListeners[e](JSON.parse(t.data))}.bind(this);this.listen("__internal__",function(t){"close"===t&&this.close()}.bind(this))});et.fallBackSources=[],et.iframeCount=0,et.fallBackCallBack=function(t,e,n){et.fallBackSources[t].fallBackCallBack(e,n)},et.prototype={typelessListeners:[],iframe:null,listeners:{},useFallBack:!1,fallBackCallBack:function(t,e){var n;if(!this.closed)if(t){if(void 0!==this.listeners.done)for(n=0;n<this.listeners[t].length;n++)this.listeners[t][n](e)}else for(n=0;n<this.typelessListeners.length;n++)this.typelessListeners[n](e)},lastLength:0,listen:function(t,e){e&&e.call&&(t?this.useFallBack?(this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)):this.source.addEventListener(t,(function(t){void 0!==t.data?e(JSON.parse(t.data)):e("")}),!1):this.typelessListeners.push(e))},close:function(){this.closed=!0,void 0!==this.source&&this.source.close()}};const nt=et;var rt=i(42515),it=i(25108);let ot=null,st=null;const at=function(t){if(ot){const e=ot;ot.trigger(new(u().Event)("beforeHide")),ot.slideUp(50,(function(){e.trigger(new(u().Event)("afterHide")),t&&t.apply(this,arguments)}))}u()(".menutoggle").attr("aria-expanded",!1),st&&st.attr("aria-expanded",!1),u()(".openedMenu").removeClass("openedMenu"),ot=null,st=null},lt=!!window._oc_isadmin;var ct=i(86834),ut=i.n(ct),dt=i(31352);const ft={load:dt.XJ,register:dt.z2,_unregister:dt.ET,translate:dt.Iu,translatePlural:dt.uN};ut().registerHelper("t",(function(t,e){return(0,dt.Iu)(t,e)}));const ht={startSaving(e){this.startAction(e,t("core","Saving …"))},startAction(t,e){u()(t).text(e).removeClass("success").removeClass("error").stop(!0,!0).show()},finishedSaving(t,e){this.finishedAction(t,e)},finishedAction(t,e){"success"===e.status?this.finishedSuccess(t,e.data.message):this.finishedError(t,e.data.message)},finishedSuccess(t,e){u()(t).text(e).addClass("success").removeClass("error").stop(!0,!0).delay(3e3).fadeOut(900).show()},finishedError(t,e){u()(t).text(e).addClass("error").removeClass("success").show()}};var pt=i(30381),mt=i.n(pt);const gt={callback:null,pageLoadTime:null,init(){u()(".password-confirm-required").on("click",l.default.bind(this.requirePasswordConfirmation,this)),this.pageLoadTime=mt().now()},requiresPasswordConfirmation(){const t=this.pageLoadTime-1e3*window.nc_pageLoad,e=mt().now()-(t+1e3*window.nc_lastLogin);return window.backendAllowsPasswordConfirmation&&e>18e5},requirePasswordConfirmation(e,n,r){n=void 0!==n?n:{};const 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:""},o=l.default.extend(i,n),s=this;this.requiresPasswordConfirmation()&&Lt.dialogs.prompt(o.text,o.title,(function(t,e){t&&""!==e?s._confirmPassword(e,o):l.default.isFunction(r)&&r()}),!0,o.label,!0).then((function(){const t=u()(".oc-dialog:visible");if(t.find(".ui-icon").remove(),t.addClass("password-confirmation"),""!==o.error){const e=u()("<p></p>").addClass("msg warning").text(o.error);t.find(".oc-dialog-content").append(e)}const e=t.find(".oc-dialog-buttonrow");e.addClass("aside");const n=e.find("button");n.eq(0).hide(),n.eq(1).text(o.confirm)})),this.callback=e},_confirmPassword(e,n){const r=this;u().ajax({url:(0,v.generateUrl)("/login/confirm"),data:{password:e},type:"POST",success(t){window.nc_lastLogin=t.lastLogin,l.default.isFunction(r.callback)&&r.callback()},error(){n.error=t("core","Failed to authenticate, try again"),Lt.PasswordConfirmation.requirePasswordConfirmation(r.callback,n)}})}},vt={_plugins:{},register(t,e){let n=this._plugins[t];n||(n=this._plugins[t]=[]),n.push(e)},getPlugins(t){return this._plugins[t]||[]},attach(t,e,n){const r=this.getPlugins(t);for(let t=0;t<r.length;t++)r[t].attach&&r[t].attach(e,n)},detach(t,e,n){const r=this.getPlugins(t);for(let t=0;t<r.length;t++)r[t].detach&&r[t].detach(e,n)}},yt=window._theme||{},bt={_handlers:[],_pushState(t,e,n){let r;if(r="string"==typeof t?t:Lt.buildQueryString(t),window.history.pushState){if(e=e||location.pathname+"?"+r,navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&parseInt(navigator.userAgent.split("/").pop())<51){const t=document.querySelectorAll('[fill^="url(#"], [stroke^="url(#"], [filter^="url(#invert"]');for(let e,n=0,r=t.length;n<r;n++)e=t[n],e.style.fill=e.style.fill,e.style.stroke=e.style.stroke,e.removeAttribute("filter"),e.setAttribute("filter","url(#invert)")}n?window.history.replaceState(t,"",e):window.history.pushState(t,"",e)}else window.location.hash="?"+r,this._cancelPop=!0},pushState(t,e){this._pushState(t,e,!1)},replaceState(t,e){this._pushState(t,e,!0)},addOnPopStateHandler(t){this._handlers.push(t)},_parseHashQuery(){const t=window.location.hash,e=t.indexOf("?");return e>=0?t.substr(e+1):t.length?t.substr(1):""},_decodeQuery:t=>t.replace(/\+/g," "),parseUrlQuery(){const t=this._parseHashQuery();let e;return t&&(e=Lt.parseQueryString(this._decodeQuery(t))),e=l.default.extend(e||{},Lt.parseQueryString(this._decodeQuery(location.search))),e||{}},_onPopState(t){if(this._cancelPop)return void(this._cancelPop=!1);let e;if(this._handlers.length){e=t&&t.state,l.default.isString(e)?e=Lt.parseQueryString(e):e||(e=this.parseUrlQuery()||{});for(let t=0;t<this._handlers.length;t++)this._handlers[t](e)}}};var wt=i(77958),_t=i(17499);i(62520);const At=["B","KB","MB","GB","TB","PB"],xt=["B","KiB","MiB","GiB","TiB","PiB"];var Ct,kt,Pt;null===(Ct=(0,wt.ts)())?(0,_t.IY)().setApp("files").build():(0,_t.IY)().setApp("files").setUid(Ct.uid).build(),function(t){t.Folder="folder",t.File="file"}(kt||(kt={})),function(t){t[t.NONE=0]="NONE",t[t.CREATE=4]="CREATE",t[t.READ=1]="READ",t[t.UPDATE=2]="UPDATE",t[t.DELETE=8]="DELETE",t[t.SHARE=16]="SHARE",t[t.ALL=31]="ALL"}(Pt||(Pt={}));var Et=i(25108);function Tt(t){const e=[];let n,r=0,i=-1,o=0;for(;r<t.length;){n=t.charAt(r);const s=!o&&"."===n||n>="0"&&n<="9";s!==o&&(i++,e[i]="",o=s),e[i]+=n,r++}return e}const jt={History:bt,humanFileSize:function(t,e=!1,n=!1){"string"==typeof t&&(t=Number(t));let r=t>0?Math.floor(Math.log(t)/Math.log(n?1024:1e3)):0;r=Math.min((n?xt.length:At.length)-1,r);const i=n?xt[r]:At[r];let o=(t/Math.pow(n?1024:1e3,r)).toFixed(1);return!0===e&&0===r?("0.0"!==o?"< 1 ":"0 ")+(n?xt[1]:At[1]):(o=r<2?parseFloat(o).toFixed(0):parseFloat(o).toLocaleString((0,dt.aj)()),o+" "+i)},computerFileSize(t){if("string"!=typeof t)return null;const e=t.toLowerCase().trim();let n=null;const r=e.match(/^[\s+]?([0-9]*)(\.([0-9]+))?( +)?([kmgtp]?b?)$/i);return null===r?null:(n=parseFloat(e),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),n):null)},formatDate:(t,e)=>(void 0===window.TESTING&&Lt.debug&&Et.warn("OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment"),e=e||"LLL",mt()(t).format(e)),relativeModifiedDate(e){void 0===window.TESTING&&Lt.debug&&Et.warn("OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment");const n=mt()().diff(mt()(e));return n>=0&&n<45e3?t("core","seconds ago"):mt()(e).fromNow()},getScrollBarWidth(){if(this._scrollBarWidth)return this._scrollBarWidth;const t=document.createElement("p");t.style.width="100%",t.style.height="200px";const 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);const n=t.offsetWidth;e.style.overflow="scroll";let r=t.offsetWidth;return n===r&&(r=e.clientWidth),document.body.removeChild(e),this._scrollBarWidth=n-r,this._scrollBarWidth},stripTime:t=>new Date(t.getFullYear(),t.getMonth(),t.getDate()),naturalSortCompare(t,e){let n;const r=Tt(t),i=Tt(e);for(n=0;r[n]&&i[n];n++)if(r[n]!==i[n]){const t=Number(r[n]),e=Number(i[n]);return t==r[n]&&e==i[n]?t-e:r[n].localeCompare(i[n],Lt.getLanguage())}return r.length-i.length},waitFor(t,e){const n=function(){!0!==t()&&setTimeout(n,e)};n()},isCookieSetToValue(t,e){const n=document.cookie.split(";");for(let r=0;r<n.length;r++){const i=n[r].split("=");if(i[0].trim()===t&&i[1].trim()===e)return!0}return!1}},Ot=window._oc_debug;let St=window._oc_webroot;if(void 0===St){St=location.pathname;const t=St.indexOf("/index.php/");St=-1!==t?St.substr(0,t):St.substr(0,St.lastIndexOf("/"))}const Nt=St;var It=i(25108);const Lt={coreApps:["","admin","log","core/search","core","3rdparty"],menuSpeed:50,PERMISSION_ALL:31,PERMISSION_CREATE:4,PERMISSION_DELETE:8,PERMISSION_NONE:0,PERMISSION_READ:1,PERMISSION_SHARE:16,PERMISSION_UPDATE:2,TAG_FAVORITE:"_$!<Favorite>!$_",fileIsBlacklisted:t=>!!t.match(F.blacklist_files_regex),Apps:g,AppConfig:w,appConfig:b,appswebroots:A,Backbone:I,ContactsMenu:H,config:F,currentUser:V,dialogs:X,EventSource:nt,getCurrentUser:()=>({uid:V,displayName:Y}),isUserAdmin:()=>lt,L10N:ft,_ajaxConnectionLostHandler:p,_processAjaxError:t=>{(0!==t.status||"abort"!==t.statusText&&"timeout"!==t.statusText&&!Lt._reloadCalled)&&(l.default.contains([302,303,307,401],t.status)&&Lt.currentUser?setTimeout((function(){if(!Lt._userIsNavigatingAway&&!Lt._reloadCalled){let t=0;const e=5,r=setInterval((function(){h.showUpdate(n("core","Problem loading page, reloading in %n second","Problem loading page, reloading in %n seconds",e-t)),t>=e&&(clearInterval(r),Lt.reload()),t++}),1e3);Lt._reloadCalled=!0}}),100):0===t.status&&setTimeout((function(){Lt._userIsNavigatingAway||Lt._reloadCalled||Lt._ajaxConnectionLostHandler()}),100))},registerXHRForErrorProcessing:t=>{t.addEventListener&&(t.addEventListener("load",(()=>{4===t.readyState&&(t.status>=200&&t.status<300||304===t.status||u()(document).trigger(new(u().Event)("ajaxError"),t))})),t.addEventListener("error",(()=>{u()(document).trigger(new(u().Event)("ajaxError"),t)})))},getCapabilities:()=>(OC.debug&&it.warn("OC.getCapabilities is deprecated and will be removed in Nextcloud 21. See @nextcloud/capabilities"),(0,rt.getCapabilities)()),hideMenus:at,registerMenu:function(t,e,n,r){e.addClass("menu");const 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(ot)?at():(ot&&at(),!0===r&&e.parent().addClass("openedMenu"),t.attr("aria-expanded",!0),e.slideToggle(50,n),ot=e,st=t))}))},showMenu:(t,e,n)=>{e.is(ot)||(at(),ot=e,st=t,e.trigger(new(u().Event)("beforeShow")),e.show(),e.trigger(new(u().Event)("afterShow")),l.default.isFunction(n)&&n())},unregisterMenu:(t,e)=>{e.is(ot)&&at(),t.off("click.menu").removeClass("menutoggle"),e.removeClass("menu")},basename:L.EZ,encodePath:L.Ec,dirname:L.XX,isSamePath:L.Mg,joinPaths:L.RQ,getHost:()=>window.location.host,getHostName:()=>window.location.hostname,getPort:()=>window.location.port,getProtocol:()=>window.location.protocol.split(":")[0],getCanonicalLocale:dt.aj,getLocale:dt.Kd,getLanguage:dt.G3,buildQueryString:t=>t?u().map(t,(function(t,e){let n=encodeURIComponent(e);return null!=t&&(n+="="+encodeURIComponent(t)),n})).join("&"):"",parseQueryString:t=>{let e,n;const r={};let i;if(!t)return null;e=t.indexOf("?"),e>=0&&(t=t.substr(e+1));const o=t.replace(/\+/g,"%20").split("&");for(let t=0;t<o.length;t++){const s=o[t];e=s.indexOf("="),n=e>=0?[s.substr(0,e),s.substr(e+1)]:[s],n.length&&(i=decodeURIComponent(n[0]),i&&(r[i]=n.length>1?decodeURIComponent(n[1]):null))}return r},msg:ht,Notification:h,PasswordConfirmation:gt,Plugins:vt,theme:yt,Util:jt,debug:Ot,filePath:v.generateFilePath,generateUrl:v.generateUrl,get:(Ft=window,t=>{const e=t.split("."),n=e.pop();for(let t=0;t<e.length;t++)if(!(Ft=Ft[e[t]]))return!1;return Ft[n]}),set:(t=>(e,n)=>{const r=e.split("."),i=r.pop();for(let e=0;e<r.length;e++)t[r[e]]||(t[r[e]]={}),t=t[r[e]];return t[i]=n,n})(window),getRootPath:v.getRootUrl,imagePath:v.imagePath,redirect:t=>{window.location=t},reload:()=>{window.location.reload()},requestToken:tt(),linkTo:v.linkTo,linkToOCS:(t,e)=>(0,v.generateOcsUrl)(t,{},{ocsVersion:e||1})+"/",linkToRemote:v.generateRemoteUrl,linkToRemoteBase:t=>(0,v.getRootUrl)()+"/remote.php/"+t,webroot:Nt};var Ft;(0,a.Ld)("csrf-token-update",(t=>{OC.requestToken=t.token,It.info("OC.requestToken changed",t.token)}));var Rt=i(79954);const Ut="%[a-f0-9]{2}",$t=new RegExp("("+Ut+")|([^%]+?)","gi"),Mt=new RegExp("("+Ut+")+","gi");function Bt(t,e){try{return[decodeURIComponent(t.join(""))]}catch{}if(1===t.length)return t;e=e||1;const n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],Bt(n),Bt(r))}function zt(t){try{return decodeURIComponent(t)}catch{let e=t.match($t)||[];for(let n=1;n<e.length;n++)e=(t=Bt(e,n).join("")).match($t)||[];return t}}function Dt(t,e){if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===t||""===e)return[];const n=t.indexOf(e);return-1===n?[]:[t.slice(0,n),t.slice(n+e.length)]}function Ht(t,e){const n={};if(Array.isArray(e))for(const r of e){const e=Object.getOwnPropertyDescriptor(t,r);e?.enumerable&&Object.defineProperty(n,r,e)}else for(const r of Reflect.ownKeys(t)){const i=Object.getOwnPropertyDescriptor(t,r);i.enumerable&&e(r,t[r],t)&&Object.defineProperty(n,r,i)}return n}const qt=t=>null==t,Yt=t=>encodeURIComponent(t).replace(/[!'()*]/g,(t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Vt=Symbol("encodeFragmentIdentifier");function Kt(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function Zt(t,e){return e.encode?e.strict?Yt(t):encodeURIComponent(t):t}function Gt(t,e){return e.decode?function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return decodeURIComponent(t)}catch{return function(t){const e={"%FE%FF":"��","%FF%FE":"��"};let n=Mt.exec(t);for(;n;){try{e[n[0]]=decodeURIComponent(n[0])}catch{const t=zt(n[0]);t!==n[0]&&(e[n[0]]=t)}n=Mt.exec(t)}e["%C2"]="�";const r=Object.keys(e);for(const n of r)t=t.replace(new RegExp(n,"g"),e[n]);return t}(t)}}(t):t}function Wt(t){return Array.isArray(t)?t.sort():"object"==typeof t?Wt(Object.keys(t)).sort(((t,e)=>Number(t)-Number(e))).map((e=>t[e])):t}function Jt(t){const e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function Xt(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function Qt(t){const e=(t=Jt(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function te(t,e){Kt((e={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...e}).arrayFormatSeparator);const n=function(t){let e;switch(t.arrayFormat){case"index":return(t,n,r)=>{e=/\[(\d*)]$/.exec(t),t=t.replace(/\[\d*]$/,""),e?(void 0===r[t]&&(r[t]={}),r[t][e[1]]=n):r[t]=n};case"bracket":return(t,n,r)=>{e=/(\[])$/.exec(t),t=t.replace(/\[]$/,""),e?void 0!==r[t]?r[t]=[...r[t],n]:r[t]=[n]:r[t]=n};case"colon-list-separator":return(t,n,r)=>{e=/(:list)$/.exec(t),t=t.replace(/:list$/,""),e?void 0!==r[t]?r[t]=[...r[t],n]:r[t]=[n]:r[t]=n};case"comma":case"separator":return(e,n,r)=>{const i="string"==typeof n&&n.includes(t.arrayFormatSeparator),o="string"==typeof n&&!i&&Gt(n,t).includes(t.arrayFormatSeparator);n=o?Gt(n,t):n;const s=i||o?n.split(t.arrayFormatSeparator).map((e=>Gt(e,t))):null===n?n:Gt(n,t);r[e]=s};case"bracket-separator":return(e,n,r)=>{const i=/(\[])$/.test(e);if(e=e.replace(/\[]$/,""),!i)return void(r[e]=n?Gt(n,t):n);const o=null===n?[]:n.split(t.arrayFormatSeparator).map((e=>Gt(e,t)));void 0!==r[e]?r[e]=[...r[e],...o]:r[e]=o};default:return(t,e,n)=>{void 0!==n[t]?n[t]=[...[n[t]].flat(),e]:n[t]=e}}}(e),r=Object.create(null);if("string"!=typeof t)return r;if(!(t=t.trim().replace(/^[?#&]/,"")))return r;for(const i of t.split("&")){if(""===i)continue;const t=e.decode?i.replace(/\+/g," "):i;let[o,s]=Dt(t,"=");void 0===o&&(o=t),s=void 0===s?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?s:Gt(s,e),n(Gt(o,e),s,r)}for(const[t,n]of Object.entries(r))if("object"==typeof n&&null!==n)for(const[t,r]of Object.entries(n))n[t]=Xt(r,e);else r[t]=Xt(n,e);return!1===e.sort?r:(!0===e.sort?Object.keys(r).sort():Object.keys(r).sort(e.sort)).reduce(((t,e)=>{const n=r[e];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?t[e]=Wt(n):t[e]=n,t}),Object.create(null))}function ee(t,e){if(!t)return"";Kt((e={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...e}).arrayFormatSeparator);const n=n=>e.skipNull&&qt(t[n])||e.skipEmptyString&&""===t[n],r=function(t){switch(t.arrayFormat){case"index":return e=>(n,r)=>{const i=n.length;return void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?n:null===r?[...n,[Zt(e,t),"[",i,"]"].join("")]:[...n,[Zt(e,t),"[",Zt(i,t),"]=",Zt(r,t)].join("")]};case"bracket":return e=>(n,r)=>void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?n:null===r?[...n,[Zt(e,t),"[]"].join("")]:[...n,[Zt(e,t),"[]=",Zt(r,t)].join("")];case"colon-list-separator":return e=>(n,r)=>void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?n:null===r?[...n,[Zt(e,t),":list="].join("")]:[...n,[Zt(e,t),":list=",Zt(r,t)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===t.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[Zt(n,t),e,Zt(i,t)].join("")]:[[r,Zt(i,t)].join(t.arrayFormatSeparator)])}default:return e=>(n,r)=>void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?n:null===r?[...n,Zt(e,t)]:[...n,[Zt(e,t),"=",Zt(r,t)].join("")]}}(e),i={};for(const[e,r]of Object.entries(t))n(e)||(i[e]=r);const o=Object.keys(i);return!1!==e.sort&&o.sort(e.sort),o.map((n=>{const i=t[n];return void 0===i?"":null===i?Zt(n,e):Array.isArray(i)?0===i.length&&"bracket-separator"===e.arrayFormat?Zt(n,e)+"[]":i.reduce(r(n),[]).join("&"):Zt(n,e)+"="+Zt(i,e)})).filter((t=>t.length>0)).join("&")}function ne(t,e){e={decode:!0,...e};let[n,r]=Dt(t,"#");return void 0===n&&(n=t),{url:n?.split("?")?.[0]??"",query:te(Qt(t),e),...e&&e.parseFragmentIdentifier&&r?{fragmentIdentifier:Gt(r,e)}:{}}}function re(t,e){e={encode:!0,strict:!0,[Vt]:!0,...e};const n=Jt(t.url).split("?")[0]||"";let r=ee({...te(Qt(t.url),{sort:!1}),...t.query},e);r&&(r=`?${r}`);let i=function(t){let e="";const n=t.indexOf("#");return-1!==n&&(e=t.slice(n)),e}(t.url);if(t.fragmentIdentifier){const r=new URL(n);r.hash=t.fragmentIdentifier,i=e[Vt]?r.hash:`#${t.fragmentIdentifier}`}return`${n}${r}${i}`}function ie(t,e,n){n={parseFragmentIdentifier:!0,[Vt]:!1,...n};const{url:r,query:i,fragmentIdentifier:o}=ne(t,n);return re({url:r,query:Ht(i,e),fragmentIdentifier:o},n)}function oe(t,e,n){return ie(t,Array.isArray(e)?t=>!e.includes(t):(t,n)=>!e(t,n),n)}const se=o;var ae=i(22660),le=i.n(ae),ce=i(10204),ue=i.n(ce),de=i(57290),fe=i.n(de),he=i(10861),pe=i.n(he);const me={name:"LoginButton",components:{ArrowRight:i(39429).default,NcButton:pe()},props:{value:{type:String,default:t("core","Log in")},valueLoading:{type:String,default:t("core","Logging in …")},loading:{type:Boolean,required:!0},invertedColors:{type:Boolean,default:!1}}};var ge=i(93379),ve=i.n(ge),ye=i(7795),be=i.n(ye),we=i(90569),_e=i.n(we),Ae=i(3565),xe=i.n(Ae),Ce=i(19216),ke=i.n(Ce),Pe=i(44589),Ee=i.n(Pe),Te=i(76515),je={};je.styleTagTransform=Ee(),je.setAttributes=xe(),je.insert=_e().bind(null,"head"),je.domAPI=be(),je.insertStyleElement=ke(),ve()(Te.Z,je),Te.Z&&Te.Z.locals&&Te.Z.locals;var Oe=i(51900);const Se=(0,Oe.Z)(me,(function(){var t=this,e=t._self._c;return e("NcButton",{attrs:{type:"primary","native-type":"submit",wide:!0},on:{click:function(e){return t.$emit("click")}},scopedSlots:t._u([{key:"icon",fn:function(){return[t.loading?e("div",{staticClass:"submit-wrapper__icon icon-loading-small-dark"}):e("ArrowRight",{staticClass:"submit-wrapper__icon"})]},proxy:!0}])},[t._v("\n\t"+t._s(t.loading?t.valueLoading:t.value)+"\n\t")])}),[],!1,null,"3fa8511b",null).exports,Ne={name:"LoginForm",components:{LoginButton:Se,NcPasswordField:le(),NcTextField:ue(),NcNoteCard:fe()},props:{username:{type:String,default:""},redirectUrl:{type:[String,Boolean],default:!1},errors:{type:Array,default:()=>[]},messages:{type:Array,default:()=>[]},throttleDelay:{type:Number,default:0},autoCompleteAllowed:{type:Boolean,default:!0},directLogin:{type:Boolean,default:!1}},data(){var e,n;return{loading:!1,timezone:null===(e=new Intl.DateTimeFormat)||void 0===e||null===(n=e.resolvedOptions())||void 0===n?void 0:n.timeZone,timezoneOffset:-(new Date).getTimezoneOffset()/60,headline:t("core","Log in to {productName}",{productName:OC.theme.name}),user:"",password:""}},computed:{isError(){return this.invalidPassword||this.userDisabled||this.throttleDelay>5e3},errorLabel(){return this.invalidPassword?t("core","Wrong username or password."):this.userDisabled?t("core","User disabled"):this.throttleDelay>5e3?t("core","We have detected multiple invalid login attempts from your IP. Therefore your next login is throttled up to 30 seconds."):void 0},apacheAuthFailed(){return-1!==this.errors.indexOf("apacheAuthFailed")},internalException(){return-1!==this.errors.indexOf("internalexception")},invalidPassword(){return-1!==this.errors.indexOf("invalidpassword")},userDisabled(){return-1!==this.errors.indexOf("userdisabled")},loadingIcon:()=>(0,v.imagePath)("core","loading-dark.gif"),loginActionUrl:()=>(0,v.generateUrl)("login")},mounted(){""===this.username?this.$refs.user.$refs.inputField.$refs.input.focus():(this.user=this.username,this.$refs.password.$refs.inputField.$refs.input.focus())},methods:{updateUsername(){this.$emit("update:username",this.user)},submit(){this.loading=!0,this.$emit("submit")}}};var Ie=i(3591),Le={};Le.styleTagTransform=Ee(),Le.setAttributes=xe(),Le.insert=_e().bind(null,"head"),Le.domAPI=be(),Le.insertStyleElement=ke(),ve()(Ie.Z,Le),Ie.Z&&Ie.Z.locals&&Ie.Z.locals;const Fe=(0,Oe.Z)(Ne,(function(){var t=this,e=t._self._c;return e("form",{ref:"loginForm",staticClass:"login-form",attrs:{method:"post",name:"login",action:t.loginActionUrl},on:{submit:t.submit}},[e("fieldset",{staticClass:"login-form__fieldset",attrs:{"data-login-form":""}},[t.apacheAuthFailed?e("NcNoteCard",{attrs:{title:t.t("core","Server side authentication failed!"),type:"warning"}},[t._v("\n\t\t\t"+t._s(t.t("core","Please contact your administrator."))+"\n\t\t")]):t._e(),t._v(" "),t.messages.length>0?e("NcNoteCard",t._l(t.messages,(function(n,r){return e("div",{key:r},[t._v("\n\t\t\t\t"+t._s(n)),e("br")])})),0):t._e(),t._v(" "),t.internalException?e("NcNoteCard",{class:t.t("core","An internal error occurred."),attrs:{type:"warning"}},[t._v("\n\t\t\t"+t._s(t.t("core","Please try again or contact your administrator."))+"\n\t\t")]):t._e(),t._v(" "),e("div",{staticClass:"hidden",attrs:{id:"message"}},[e("img",{staticClass:"float-spinner",attrs:{alt:"",src:t.loadingIcon}}),t._v(" "),e("span",{attrs:{id:"messageText"}}),t._v(" "),e("div",{staticStyle:{clear:"both"}})]),t._v(" "),e("h2",{staticClass:"login-form__headline",attrs:{"data-login-form-headline":""},domProps:{innerHTML:t._s(t.headline)}}),t._v(" "),e("NcTextField",{ref:"user",class:{shake:t.invalidPassword},attrs:{id:"user",label:t.t("core","Account name or email"),"label-visible":!0,name:"user",value:t.user,autocapitalize:"none",spellchecking:!1,autocomplete:t.autoCompleteAllowed?"username":"off",required:"","data-login-form-input-user":""},on:{"update:value":function(e){t.user=e},change:t.updateUsername}}),t._v(" "),e("NcPasswordField",{ref:"password",class:{shake:t.invalidPassword},attrs:{id:"password",name:"password","label-visible":!0,value:t.password,spellchecking:!1,autocapitalize:"none",autocomplete:t.autoCompleteAllowed?"current-password":"off",label:t.t("core","Password"),"helper-text":t.errorLabel,error:t.isError,"data-login-form-input-password":"",required:""},on:{"update:value":function(e){t.password=e}}}),t._v(" "),e("LoginButton",{attrs:{"data-login-form-submit":"",loading:t.loading}}),t._v(" "),t.redirectUrl?e("input",{attrs:{type:"hidden",name:"redirect_url"},domProps:{value:t.redirectUrl}}):t._e(),t._v(" "),e("input",{attrs:{type:"hidden",name:"timezone"},domProps:{value:t.timezone}}),t._v(" "),e("input",{attrs:{type:"hidden",name:"timezone_offset"},domProps:{value:t.timezoneOffset}}),t._v(" "),e("input",{attrs:{type:"hidden",name:"requesttoken"},domProps:{value:t.OC.requestToken}}),t._v(" "),t.directLogin?e("input",{attrs:{type:"hidden",name:"direct",value:"1"}}):t._e()],1)])}),[],!1,null,"5bd351bc",null).exports;var Re=i(26937);const Ue={name:"InformationIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},$e=(0,Oe.Z)(Ue,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon information-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports,Me={name:"LockOpenIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Be=(0,Oe.Z)(Me,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon lock-open-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports;var ze=i(25108);class De extends Error{}const He={name:"PasswordLessLoginForm",components:{LoginButton:Se,InformationIcon:$e,LockOpenIcon:Be,NcTextField:ue()},props:{username:{type:String,default:""},redirectUrl:{type:[String,Boolean],default:!1},autoCompleteAllowed:{type:Boolean,default:!0},isHttps:{type:Boolean,default:!1},isLocalhost:{type:Boolean,default:!1},hasPublicKeyCredential:{type:Boolean,default:!1}},data(){return{user:this.username,loading:!1,validCredentials:!0}},methods:{authenticate(){this.$refs.loginForm.checkValidity()&&(ze.debug("passwordless login initiated"),this.getAuthenticationData(this.user).then((t=>(ze.debug(t),t))).then(this.sign).then(this.completeAuthentication).catch((t=>{t instanceof De?this.validCredentials=!1:ze.debug(t)})))},changeUsername(t){this.user=t,this.$emit("update:username",this.user)},getAuthenticationData(t){const e=function(t){const e=(t=t.replace(/-/g,"+").replace(/_/g,"/")).length%4;if(e){if(1===e)throw new Error("InvalidLengthError: Input base64url string is the wrong length to determine padding");t+=new Array(5-e).join("=")}return window.atob(t)};return function(t){const e=(0,v.generateUrl)("/login/webauthn/start");return Re.Z.post(e,{loginName:t}).then((t=>t.data))}(t).then((t=>{if(ze.debug("Obtained PublicKeyCredentialRequestOptions"),ze.debug(t),!Object.prototype.hasOwnProperty.call(t,"allowCredentials"))throw ze.debug("No credentials found."),new De;return t.challenge=Uint8Array.from(e(t.challenge),(t=>t.charCodeAt(0))),t.allowCredentials=t.allowCredentials.map((function(t){return{...t,id:Uint8Array.from(e(t.id),(t=>t.charCodeAt(0)))}})),ze.debug("Converted PublicKeyCredentialRequestOptions"),ze.debug(t),t})).catch((t=>{throw ze.debug("Error while obtaining data"),t}))},sign(t){const e=function(t){return window.btoa(String.fromCharCode(...t))};return navigator.credentials.get({publicKey:t}).then((t=>{return ze.debug(t),ze.debug(new Uint8Array(t.rawId)),ze.debug(e(new Uint8Array(t.rawId))),{id:t.id,type:t.type,rawId:e(new Uint8Array(t.rawId)),response:{authenticatorData:e(new Uint8Array(t.response.authenticatorData)),clientDataJSON:e(new Uint8Array(t.response.clientDataJSON)),signature:e(new Uint8Array(t.response.signature)),userHandle:t.response.userHandle?(n=new Uint8Array(t.response.userHandle),String.fromCharCode(...n)):null}};var n})).then((t=>(ze.debug(t),t))).catch((t=>{ze.debug("GOT AN ERROR!"),ze.debug(t)}))},completeAuthentication(t){ze.debug("TIME TO COMPLETE");const e=this.redirectUrl;return function(t){const e=(0,v.generateUrl)("/login/webauthn/finish");return Re.Z.post(e,{data:t}).then((t=>t.data))}(JSON.stringify(t)).then((t=>{let{defaultRedirectUrl:n}=t;ze.debug("Logged in redirecting"),window.location.href=e||n})).catch((t=>{ze.debug("GOT AN ERROR WHILE SUBMITTING CHALLENGE!"),ze.debug(t)}))},submit(){}}};var qe=i(34840),Ye={};Ye.styleTagTransform=Ee(),Ye.setAttributes=xe(),Ye.insert=_e().bind(null,"head"),Ye.domAPI=be(),Ye.insertStyleElement=ke(),ve()(qe.Z,Ye),qe.Z&&qe.Z.locals&&qe.Z.locals;const Ve=(0,Oe.Z)(He,(function(){var t=this,e=t._self._c;return(t.isHttps||t.isLocalhost)&&t.hasPublicKeyCredential?e("form",{ref:"loginForm",attrs:{method:"post",name:"login"},on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[e("h2",[t._v(t._s(t.t("core","Log in with a device")))]),t._v(" "),e("fieldset",[e("NcTextField",{attrs:{required:"",value:t.user,autocomplete:t.autoCompleteAllowed?"on":"off",error:!t.validCredentials,"label-visible":!0,label:t.t("core","Username or email"),placeholder:t.t("core","Username or email"),"helper-text":t.validCredentials?"":t.t("core","Your account is not setup for passwordless login.")},on:{"update:value":t.changeUsername}}),t._v(" "),t.validCredentials?e("LoginButton",{attrs:{loading:t.loading},on:{click:t.authenticate}}):t._e()],1)]):t.hasPublicKeyCredential?t.isHttps||t.isLocalhost?t._e():e("div",{staticClass:"update"},[e("LockOpenIcon",{attrs:{size:"70"}}),t._v(" "),e("h2",[t._v(t._s(t.t("core","Your connection is not secure")))]),t._v(" "),e("p",{staticClass:"infogroup"},[t._v("\n\t\t"+t._s(t.t("core","Passwordless authentication is only available over a secure connection."))+"\n\t")])],1):e("div",{staticClass:"update"},[e("InformationIcon",{attrs:{size:"70"}}),t._v(" "),e("h2",[t._v(t._s(t.t("core","Browser not supported")))]),t._v(" "),e("p",{staticClass:"infogroup"},[t._v("\n\t\t"+t._s(t.t("core","Passwordless authentication is not supported in your browser."))+"\n\t")])],1)}),[],!1,null,"11c76644",null).exports;var Ke=i(25108);const Ze={name:"ResetPassword",components:{LoginButton:Se,NcNoteCard:fe(),NcTextField:ue()},props:{username:{type:String,required:!0},resetPasswordLink:{type:String,required:!0}},data(){return{error:!1,loading:!1,message:void 0,user:this.username}},watch:{username(t){this.user=t}},methods:{updateUsername(){this.$emit("update:username",this.user)},submit(){this.loading=!0,this.error=!1,this.message="";const t=(0,v.generateUrl)("/lostpassword/email"),e={user:this.user};return Re.Z.post(t,e).then((t=>t.data)).then((t=>{if("success"!==t.status)throw new Error("got status ".concat(t.status));this.message="send-success"})).catch((t=>{Ke.error("could not send reset email request",t),this.error=!0,this.message="send-error"})).then((()=>{this.loading=!1}))}}};var Ge=i(72076),We={};We.styleTagTransform=Ee(),We.setAttributes=xe(),We.insert=_e().bind(null,"head"),We.domAPI=be(),We.insertStyleElement=ke(),ve()(Ge.Z,We),Ge.Z&&Ge.Z.locals&&Ge.Z.locals;const Je=(0,Oe.Z)(Ze,(function(){var t=this,e=t._self._c;return e("form",{staticClass:"login-form",on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[e("fieldset",{staticClass:"login-form__fieldset"},[e("NcTextField",{attrs:{id:"user",value:t.user,name:"user",autocapitalize:"off",label:t.t("core","Account name or email"),"label-visible":!0,required:""},on:{"update:value":function(e){t.user=e},change:t.updateUsername}}),t._v(" "),e("LoginButton",{attrs:{value:t.t("core","Reset password")}}),t._v(" "),"send-success"===t.message?e("NcNoteCard",{attrs:{type:"success"}},[t._v("\n\t\t\t"+t._s(t.t("core","If this account exists, a password reset message has been sent to its email address. If you do not receive it, verify your email address and/or account name, check your spam/junk folders or ask your local administration for help."))+"\n\t\t")]):"send-error"===t.message?e("NcNoteCard",{attrs:{type:"error"}},[t._v("\n\t\t\t"+t._s(t.t("core","Couldn't send reset email. Please contact your administrator."))+"\n\t\t")]):"reset-error"===t.message?e("NcNoteCard",{attrs:{type:"error"}},[t._v("\n\t\t\t"+t._s(t.t("core","Password cannot be changed. Please contact your administrator."))+"\n\t\t")]):t._e(),t._v(" "),e("a",{staticClass:"login-form__link",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.$emit("abort")}}},[t._v("\n\t\t\t"+t._s(t.t("core","Back to login"))+"\n\t\t")])],1)])}),[],!1,null,"6636f1b2",null).exports,Xe={name:"UpdatePassword",components:{LoginButton:Se},props:{username:{type:String,required:!0},resetPasswordTarget:{type:String,required:!0}},data(){return{error:!1,loading:!1,message:void 0,user:this.username,password:"",encrypted:!1,proceed:!1}},watch:{username(t){this.user=t}},methods:{async submit(){this.loading=!0,this.error=!1,this.message="";try{const{data:t}=await Re.Z.post(this.resetPasswordTarget,{password:this.password,proceed:this.proceed});if(t&&"success"===t.status)this.message="send-success",this.$emit("update:username",this.user),this.$emit("done");else{if(!t||!t.encryption)throw t&&t.msg?new Error(t.msg):new Error;this.encrypted=!0}}catch(e){this.error=!0,this.message=e.message?e.message:t("core","Password cannot be changed. Please contact your administrator.")}finally{this.loading=!1}}}};var Qe=i(74778),tn={};tn.styleTagTransform=Ee(),tn.setAttributes=xe(),tn.insert=_e().bind(null,"head"),tn.domAPI=be(),tn.insertStyleElement=ke(),ve()(Qe.Z,tn),Qe.Z&&Qe.Z.locals&&Qe.Z.locals;const en=(0,Oe.Z)(Xe,(function(){var t=this,e=t._self._c;return e("form",{on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[e("fieldset",[e("p",[e("label",{staticClass:"infield",attrs:{for:"password"}},[t._v(t._s(t.t("core","New password")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{id:"password",type:"password",name:"password",autocomplete:"new-password",autocapitalize:"none",autocorrect:"off",required:"",placeholder:t.t("core","New password")},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),t._v(" "),t.encrypted?e("div",{staticClass:"update"},[e("p",[t._v("\n\t\t\t\t"+t._s(t.t("core","Your files are encrypted. There will be no way to get your data back after your password is reset. If you are not sure what to do, please contact your administrator before you continue. Do you really want to continue?"))+"\n\t\t\t")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.proceed,expression:"proceed"}],staticClass:"checkbox",attrs:{id:"encrypted-continue",type:"checkbox"},domProps:{checked:Array.isArray(t.proceed)?t._i(t.proceed,null)>-1:t.proceed},on:{change:function(e){var n=t.proceed,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.proceed=n.concat([null])):o>-1&&(t.proceed=n.slice(0,o).concat(n.slice(o+1)))}else t.proceed=i}}}),t._v(" "),e("label",{attrs:{for:"encrypted-continue"}},[t._v("\n\t\t\t\t"+t._s(t.t("core","I know what I'm doing"))+"\n\t\t\t")])]):t._e(),t._v(" "),e("LoginButton",{attrs:{loading:t.loading,value:t.t("core","Reset password"),"value-loading":t.t("core","Resetting password")}}),t._v(" "),t.error&&t.message?e("p",{class:{warning:t.error}},[t._v("\n\t\t\t"+t._s(t.message)+"\n\t\t")]):t._e()],1)])}),[],!1,null,"4dc21d74",null).exports;var nn=i(25108);const rn=se.parse(location.search);if("1"===rn.clear)try{window.localStorage.clear(),window.sessionStorage.clear(),nn.debug("Browser storage cleared")}catch(t){nn.error("Could not clear browser storage",t)}const on={name:"Login",components:{LoginForm:Fe,PasswordLessLoginForm:Ve,ResetPassword:Je,UpdatePassword:en,NcButton:pe(),NcNoteCard:fe()},data:()=>({loading:!1,user:(0,Rt.j)("core","loginUsername",""),passwordlessLogin:!1,resetPassword:!1,errors:(0,Rt.j)("core","loginErrors",[]),messages:(0,Rt.j)("core","loginMessages",[]),redirectUrl:(0,Rt.j)("core","loginRedirectUrl",!1),throttleDelay:(0,Rt.j)("core","loginThrottleDelay",0),canResetPassword:(0,Rt.j)("core","loginCanResetPassword",!1),resetPasswordLink:(0,Rt.j)("core","loginResetPasswordLink",""),autoCompleteAllowed:(0,Rt.j)("core","loginAutocomplete",!0),resetPasswordTarget:(0,Rt.j)("core","resetPasswordTarget",""),resetPasswordUser:(0,Rt.j)("core","resetPasswordUser",""),directLogin:"1"===rn.direct,hasPasswordless:(0,Rt.j)("core","webauthn-available",!1),countAlternativeLogins:(0,Rt.j)("core","countAlternativeLogins",!1),alternativeLogins:(0,Rt.j)("core","alternativeLogins",[]),isHttps:"https:"===window.location.protocol,isLocalhost:"localhost"===window.location.hostname,hasPublicKeyCredential:void 0!==window.PublicKeyCredential,hideLoginForm:(0,Rt.j)("core","hideLoginForm",!1)}),methods:{passwordResetFinished(){this.resetPasswordTarget="",this.directLogin=!0}}};var sn=i(52454),an={};an.styleTagTransform=Ee(),an.setAttributes=xe(),an.insert=_e().bind(null,"head"),an.domAPI=be(),an.insertStyleElement=ke(),ve()(sn.Z,an),sn.Z&&sn.Z.locals&&sn.Z.locals;const ln=(0,Oe.Z)(on,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"guest-box login-box"},[!t.hideLoginForm||t.directLogin?[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.passwordlessLogin||t.resetPassword||""!==t.resetPasswordTarget?!t.loading&&t.passwordlessLogin?e("div",{key:"reset",staticClass:"login-additional login-passwordless"},[e("PasswordLessLoginForm",{attrs:{username:t.user,"redirect-url":t.redirectUrl,"auto-complete-allowed":t.autoCompleteAllowed,"is-https":t.isHttps,"is-localhost":t.isLocalhost,"has-public-key-credential":t.hasPublicKeyCredential},on:{"update:username":function(e){t.user=e},submit:function(e){t.loading=!0}}}),t._v(" "),e("NcButton",{attrs:{type:"tertiary","aria-label":t.t("core","Back to login form"),wide:!0},on:{click:function(e){t.passwordlessLogin=!1}}},[t._v("\n\t\t\t\t\t"+t._s(t.t("core","Back"))+"\n\t\t\t\t")])],1):!t.loading&&t.canResetPassword?e("div",{key:"reset",staticClass:"login-additional"},[e("div",{staticClass:"lost-password-container"},[t.resetPassword?e("ResetPassword",{attrs:{username:t.user,"reset-password-link":t.resetPasswordLink},on:{"update:username":function(e){t.user=e},abort:function(e){t.resetPassword=!1}}}):t._e()],1)]):""!==t.resetPasswordTarget?e("div",[e("UpdatePassword",{attrs:{username:t.user,"reset-password-target":t.resetPasswordTarget},on:{"update:username":function(e){t.user=e},done:t.passwordResetFinished}})],1):t._e():e("div",[e("LoginForm",{attrs:{username:t.user,"redirect-url":t.redirectUrl,"direct-login":t.directLogin,messages:t.messages,errors:t.errors,"throttle-delay":t.throttleDelay,"auto-complete-allowed":t.autoCompleteAllowed},on:{"update:username":function(e){t.user=e},submit:function(e){t.loading=!0}}}),t._v(" "),t.canResetPassword&&""!==t.resetPasswordLink?e("a",{staticClass:"login-box__link",attrs:{id:"lost-password",href:t.resetPasswordLink}},[t._v("\n\t\t\t\t\t"+t._s(t.t("core","Forgot password?"))+"\n\t\t\t\t")]):t.canResetPassword&&!t.resetPassword?e("a",{staticClass:"login-box__link",attrs:{id:"lost-password",href:t.resetPasswordLink},on:{click:function(e){e.preventDefault(),t.resetPassword=!0}}},[t._v("\n\t\t\t\t\t"+t._s(t.t("core","Forgot password?"))+"\n\t\t\t\t")]):t._e(),t._v(" "),t.hasPasswordless?[t.countAlternativeLogins?e("div",{staticClass:"alternative-logins"},[t.hasPasswordless?e("a",{staticClass:"button",class:{"single-alt-login-option":t.countAlternativeLogins},attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.passwordlessLogin=!0}}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.t("core","Log in with a device"))+"\n\t\t\t\t\t\t")]):t._e()]):e("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.passwordlessLogin=!0}}},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("core","Log in with a device"))+"\n\t\t\t\t\t")])]:t._e()],2)])]:[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("NcNoteCard",{attrs:{type:"warning",title:t.t("core","Login form is disabled.")}},[t._v("\n\t\t\t\t"+t._s(t.t("core","Please contact your administrator."))+"\n\t\t\t")])],1)],t._v(" "),e("div",{staticClass:"alternative-logins",attrs:{id:"alternative-logins"}},t._l(t.alternativeLogins,(function(n,r){return e("NcButton",{key:r,class:[n.class],attrs:{type:"secondary",wide:!0,role:"link",href:n.href}},[t._v("\n\t\t\t"+t._s(n.name)+"\n\t\t")])})),1)],2)}),[],!1,null,null,null).exports,cn={data:()=>({OC:Lt}),methods:{t:ft.translate.bind(ft),n:ft.translatePlural.bind(ft)}};s.default.mixin(cn),(new(s.default.extend(ln))).$mount("#login")},72316:(t,e,n)=>{var r,i,o;o="object"==typeof self&&self.self===self&&self||"object"==typeof n.g&&n.g.global===n.g&&n.g,r=[n(59050),n(19755),e],i=function(t,e,n){o.Backbone=function(t,e,n,r){var i=t.Backbone,o=Array.prototype.slice;e.VERSION="1.4.1",e.$=r,e.noConflict=function(){return t.Backbone=i,this},e.emulateHTTP=!1,e.emulateJSON=!1;var s,a=e.Events={},l=/\s+/,c=function(t,e,r,i,o){var s,a=0;if(r&&"object"==typeof r){void 0!==i&&"context"in o&&void 0===o.context&&(o.context=i);for(s=n.keys(r);a<s.length;a++)e=c(t,e,s[a],r[s[a]],o)}else if(r&&l.test(r))for(s=r.split(l);a<s.length;a++)e=t(e,s[a],i,o);else e=t(e,r,i,o);return e};a.on=function(t,e,n){return this._events=c(u,this._events||{},t,e,{context:n,ctx:this,listening:s}),s&&((this._listeners||(this._listeners={}))[s.id]=s,s.interop=!1),this},a.listenTo=function(t,e,r){if(!t)return this;var i=t._listenId||(t._listenId=n.uniqueId("l")),o=this._listeningTo||(this._listeningTo={}),a=s=o[i];a||(this._listenId||(this._listenId=n.uniqueId("l")),a=s=o[i]=new g(this,t));var l=d(t,e,r,this);if(s=void 0,l)throw l;return a.interop&&a.on(e,r),this};var u=function(t,e,n,r){if(n){var i=t[e]||(t[e]=[]),o=r.context,s=r.ctx,a=r.listening;a&&a.count++,i.push({callback:n,context:o,ctx:o||s,listening:a})}return t},d=function(t,e,n,r){try{t.on(e,n,r)}catch(t){return t}};a.off=function(t,e,n){return this._events?(this._events=c(f,this._events,t,e,{context:n,listeners:this._listeners}),this):this},a.stopListening=function(t,e,r){var i=this._listeningTo;if(!i)return this;for(var o=t?[t._listenId]:n.keys(i),s=0;s<o.length;s++){var a=i[o[s]];if(!a)break;a.obj.off(e,r,this),a.interop&&a.off(e,r)}return n.isEmpty(i)&&(this._listeningTo=void 0),this};var f=function(t,e,r,i){if(t){var o,s=i.context,a=i.listeners,l=0;if(e||s||r){for(o=e?[e]:n.keys(t);l<o.length;l++){var c=t[e=o[l]];if(!c)break;for(var u=[],d=0;d<c.length;d++){var f=c[d];if(r&&r!==f.callback&&r!==f.callback._callback||s&&s!==f.context)u.push(f);else{var h=f.listening;h&&h.off(e,r)}}u.length?t[e]=u:delete t[e]}return t}for(o=n.keys(a);l<o.length;l++)a[o[l]].cleanup()}};a.once=function(t,e,n){var r=c(h,{},t,e,this.off.bind(this));return"string"==typeof t&&null==n&&(e=void 0),this.on(r,e,n)},a.listenToOnce=function(t,e,n){var r=c(h,{},e,n,this.stopListening.bind(this,t));return this.listenTo(t,r)};var h=function(t,e,r,i){if(r){var o=t[e]=n.once((function(){i(e,o),r.apply(this,arguments)}));o._callback=r}return t};a.trigger=function(t){if(!this._events)return this;for(var e=Math.max(0,arguments.length-1),n=Array(e),r=0;r<e;r++)n[r]=arguments[r+1];return c(p,this._events,t,void 0,n),this};var p=function(t,e,n,r){if(t){var i=t[e],o=t.all;i&&o&&(o=o.slice()),i&&m(i,r),o&&m(o,[e].concat(r))}return t},m=function(t,e){var n,r=-1,i=t.length,o=e[0],s=e[1],a=e[2];switch(e.length){case 0:for(;++r<i;)(n=t[r]).callback.call(n.ctx);return;case 1:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o);return;case 2:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o,s);return;case 3:for(;++r<i;)(n=t[r]).callback.call(n.ctx,o,s,a);return;default:for(;++r<i;)(n=t[r]).callback.apply(n.ctx,e);return}},g=function(t,e){this.id=t._listenId,this.listener=t,this.obj=e,this.interop=!0,this.count=0,this._events=void 0};g.prototype.on=a.on,g.prototype.off=function(t,e){var n;this.interop?(this._events=c(f,this._events,t,e,{context:void 0,listeners:void 0}),n=!this._events):(this.count--,n=0===this.count),n&&this.cleanup()},g.prototype.cleanup=function(){delete this.listener._listeningTo[this.obj._listenId],this.interop||delete this.obj._listeners[this.id]},a.bind=a.on,a.unbind=a.off,n.extend(e,a);var v=e.Model=function(t,e){var r=t||{};e||(e={}),this.preinitialize.apply(this,arguments),this.cid=n.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(r=this.parse(r,e)||{});var i=n.result(this,"defaults");r=n.defaults(n.extend({},i,r),i),this.set(r,e),this.changed={},this.initialize.apply(this,arguments)};n.extend(v.prototype,a,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",preinitialize:function(){},initialize:function(){},toJSON:function(t){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!n.iteratee(t,this)(this.attributes)},set:function(t,e,r){if(null==t)return this;var i;if("object"==typeof t?(i=t,r=e):(i={})[t]=e,r||(r={}),!this._validate(i,r))return!1;var o=r.unset,s=r.silent,a=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=n.clone(this.attributes),this.changed={});var c=this.attributes,u=this.changed,d=this._previousAttributes;for(var f in i)e=i[f],n.isEqual(c[f],e)||a.push(f),n.isEqual(d[f],e)?delete u[f]:u[f]=e,o?delete c[f]:c[f]=e;if(this.idAttribute in i){var h=this.id;this.id=this.get(this.idAttribute),this.trigger("changeId",this,h,r)}if(!s){a.length&&(this._pending=r);for(var p=0;p<a.length;p++)this.trigger("change:"+a[p],this,c[a[p]],r)}if(l)return this;if(!s)for(;this._pending;)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var r in this.attributes)e[r]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&n.clone(this.changed);var e,r=this._changing?this._previousAttributes:this.attributes,i={};for(var o in t){var s=t[o];n.isEqual(r[o],s)||(i[o]=s,e=!0)}return!!e&&i},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){t=n.extend({parse:!0},t);var e=this,r=t.success;return t.success=function(n){var i=t.parse?e.parse(n,t):n;if(!e.set(i,t))return!1;r&&r.call(t.context,e,n,t),e.trigger("sync",e,n,t)},q(this,t),this.sync("read",this,t)},save:function(t,e,r){var i;null==t||"object"==typeof t?(i=t,r=e):(i={})[t]=e;var o=(r=n.extend({validate:!0,parse:!0},r)).wait;if(i&&!o){if(!this.set(i,r))return!1}else if(!this._validate(i,r))return!1;var s=this,a=r.success,l=this.attributes;r.success=function(t){s.attributes=l;var e=r.parse?s.parse(t,r):t;if(o&&(e=n.extend({},i,e)),e&&!s.set(e,r))return!1;a&&a.call(r.context,s,t,r),s.trigger("sync",s,t,r)},q(this,r),i&&o&&(this.attributes=n.extend({},l,i));var c=this.isNew()?"create":r.patch?"patch":"update";"patch"!==c||r.attrs||(r.attrs=i);var u=this.sync(c,this,r);return this.attributes=l,u},destroy:function(t){t=t?n.clone(t):{};var e=this,r=t.success,i=t.wait,o=function(){e.stopListening(),e.trigger("destroy",e,e.collection,t)};t.success=function(n){i&&o(),r&&r.call(t.context,e,n,t),e.isNew()||e.trigger("sync",e,n,t)};var s=!1;return this.isNew()?n.defer(t.success):(q(this,t),s=this.sync("delete",this,t)),i||o(),s},url:function(){var t=n.result(this,"urlRoot")||n.result(this.collection,"url")||H();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\/]$/,"$&/")+encodeURIComponent(e)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},n.extend({},t,{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var r=this.validationError=this.validate(t,e)||null;return!r||(this.trigger("invalid",this,r,n.extend(e,{validationError:r})),!1)}});var y=e.Collection=function(t,e){e||(e={}),this.preinitialize.apply(this,arguments),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},b={add:!0,remove:!0,merge:!0},w={add:!0,remove:!1},_=function(t,e,n){n=Math.min(Math.max(n,0),t.length);var r,i=Array(t.length-n),o=e.length;for(r=0;r<i.length;r++)i[r]=t[r+n];for(r=0;r<o;r++)t[r+n]=e[r];for(r=0;r<i.length;r++)t[r+o+n]=i[r]};n.extend(y.prototype,a,{model:v,preinitialize:function(){},initialize:function(){},toJSON:function(t){return this.map((function(e){return e.toJSON(t)}))},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,w))},remove:function(t,e){e=n.extend({},e);var r=!n.isArray(t);t=r?[t]:t.slice();var i=this._removeModels(t,e);return!e.silent&&i.length&&(e.changes={added:[],merged:[],removed:i},this.trigger("update",this,e)),r?i[0]:i},set:function(t,e){if(null!=t){(e=n.extend({},b,e)).parse&&!this._isModel(t)&&(t=this.parse(t,e)||[]);var r=!n.isArray(t);t=r?[t]:t.slice();var i=e.at;null!=i&&(i=+i),i>this.length&&(i=this.length),i<0&&(i+=this.length+1);var o,s,a=[],l=[],c=[],u=[],d={},f=e.add,h=e.merge,p=e.remove,m=!1,g=this.comparator&&null==i&&!1!==e.sort,v=n.isString(this.comparator)?this.comparator:null;for(s=0;s<t.length;s++){o=t[s];var y=this.get(o);if(y){if(h&&o!==y){var w=this._isModel(o)?o.attributes:o;e.parse&&(w=y.parse(w,e)),y.set(w,e),c.push(y),g&&!m&&(m=y.hasChanged(v))}d[y.cid]||(d[y.cid]=!0,a.push(y)),t[s]=y}else f&&(o=t[s]=this._prepareModel(o,e))&&(l.push(o),this._addReference(o,e),d[o.cid]=!0,a.push(o))}if(p){for(s=0;s<this.length;s++)d[(o=this.models[s]).cid]||u.push(o);u.length&&this._removeModels(u,e)}var A=!1,x=!g&&f&&p;if(a.length&&x?(A=this.length!==a.length||n.some(this.models,(function(t,e){return t!==a[e]})),this.models.length=0,_(this.models,a,0),this.length=this.models.length):l.length&&(g&&(m=!0),_(this.models,l,null==i?this.length:i),this.length=this.models.length),m&&this.sort({silent:!0}),!e.silent){for(s=0;s<l.length;s++)null!=i&&(e.index=i+s),(o=l[s]).trigger("add",o,this,e);(m||A)&&this.trigger("sort",this,e),(l.length||u.length||c.length)&&(e.changes={added:l,removed:u,merged:c},this.trigger("update",this,e))}return r?t[0]:t}},reset:function(t,e){e=e?n.clone(e):{};for(var r=0;r<this.models.length;r++)this._removeReference(this.models[r],e);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return o.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[this.modelId(this._isModel(t)?t.attributes:t,t.idAttribute)]||t.cid&&this._byId[t.cid]},has:function(t){return null!=this.get(t)},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,!0)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t||(t={});var r=e.length;return n.isFunction(e)&&(e=e.bind(this)),1===r||n.isString(e)?this.models=this.sortBy(e):this.models.sort(e),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return this.map(t+"")},fetch:function(t){var e=(t=n.extend({parse:!0},t)).success,r=this;return t.success=function(n){var i=t.reset?"reset":"set";r[i](n,t),e&&e.call(t.context,r,n,t),r.trigger("sync",r,n,t)},q(this,t),this.sync("read",this,t)},create:function(t,e){var r=(e=e?n.clone(e):{}).wait;if(!(t=this._prepareModel(t,e)))return!1;r||this.add(t,e);var i=this,o=e.success;return e.success=function(t,e,n){r&&i.add(t,n),o&&o.call(n.context,t,e,n)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t,e){return t[e||this.model.prototype.idAttribute||"id"]},values:function(){return new x(this,C)},keys:function(){return new x(this,k)},entries:function(){return new x(this,P)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){return this._isModel(t)?(t.collection||(t.collection=this),t):((e=e?n.clone(e):{}).collection=this,(r=this.model.prototype?new this.model(t,e):this.model(t,e)).validationError?(this.trigger("invalid",this,r.validationError,e),!1):r);var r},_removeModels:function(t,e){for(var n=[],r=0;r<t.length;r++){var i=this.get(t[r]);if(i){var o=this.indexOf(i);this.models.splice(o,1),this.length--,delete this._byId[i.cid];var s=this.modelId(i.attributes,i.idAttribute);null!=s&&delete this._byId[s],e.silent||(e.index=o,i.trigger("remove",i,this,e)),n.push(i),this._removeReference(i,e)}}return n},_isModel:function(t){return t instanceof v},_addReference:function(t,e){this._byId[t.cid]=t;var n=this.modelId(t.attributes,t.idAttribute);null!=n&&(this._byId[n]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var n=this.modelId(t.attributes,t.idAttribute);null!=n&&delete this._byId[n],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,r){if(e){if(("add"===t||"remove"===t)&&n!==this)return;if("destroy"===t&&this.remove(e,r),"changeId"===t){var i=this.modelId(e.previousAttributes(),e.idAttribute),o=this.modelId(e.attributes,e.idAttribute);null!=i&&delete this._byId[i],null!=o&&(this._byId[o]=e)}}this.trigger.apply(this,arguments)}});var A="function"==typeof Symbol&&Symbol.iterator;A&&(y.prototype[A]=y.prototype.values);var x=function(t,e){this._collection=t,this._kind=e,this._index=0},C=1,k=2,P=3;A&&(x.prototype[A]=function(){return this}),x.prototype.next=function(){if(this._collection){if(this._index<this._collection.length){var t,e=this._collection.at(this._index);if(this._index++,this._kind===C)t=e;else{var n=this._collection.modelId(e.attributes,e.idAttribute);t=this._kind===k?n:[n,e]}return{value:t,done:!1}}this._collection=void 0}return{value:void 0,done:!0}};var E=e.View=function(t){this.cid=n.uniqueId("view"),this.preinitialize.apply(this,arguments),n.extend(this,n.pick(t,j)),this._ensureElement(),this.initialize.apply(this,arguments)},T=/^(\S+)\s*(.*)$/,j=["model","collection","el","id","attributes","className","tagName","events"];n.extend(E.prototype,a,{tagName:"div",$:function(t){return this.$el.find(t)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t||(t=n.result(this,"events")),!t)return this;for(var e in this.undelegateEvents(),t){var r=t[e];if(n.isFunction(r)||(r=this[r]),r){var i=e.match(T);this.delegate(i[1],i[2],r.bind(this))}}return this},delegate:function(t,e,n){return this.$el.on(t+".delegateEvents"+this.cid,e,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,n){return this.$el.off(t+".delegateEvents"+this.cid,e,n),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"));else{var t=n.extend({},n.result(this,"attributes"));this.id&&(t.id=n.result(this,"id")),this.className&&(t.class=n.result(this,"className")),this.setElement(this._createElement(n.result(this,"tagName"))),this._setAttributes(t)}},_setAttributes:function(t){this.$el.attr(t)}});var O=function(t,e,r,i){n.each(r,(function(n,r){e[r]&&(t.prototype[r]=function(t,e,n,r){switch(e){case 1:return function(){return t[n](this[r])};case 2:return function(e){return t[n](this[r],e)};case 3:return function(e,i){return t[n](this[r],S(e,this),i)};case 4:return function(e,i,o){return t[n](this[r],S(e,this),i,o)};default:return function(){var e=o.call(arguments);return e.unshift(this[r]),t[n].apply(t,e)}}}(e,n,r,i))}))},S=function(t,e){return n.isFunction(t)?t:n.isObject(t)&&!e._isModel(t)?N(t):n.isString(t)?function(e){return e.get(t)}:t},N=function(t){var e=n.matches(t);return function(t){return e(t.attributes)}};n.each([[y,{forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},"models"],[v,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes"]],(function(t){var e=t[0],r=t[1],i=t[2];e.mixin=function(t){var r=n.reduce(n.functions(t),(function(t,e){return t[e]=0,t}),{});O(e,t,r,i)},O(e,n,r,i)})),e.sync=function(t,r,i){var o=I[t];n.defaults(i||(i={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var s={type:o,dataType:"json"};if(i.url||(s.url=n.result(r,"url")||H()),null!=i.data||!r||"create"!==t&&"update"!==t&&"patch"!==t||(s.contentType="application/json",s.data=JSON.stringify(i.attrs||r.toJSON(i))),i.emulateJSON&&(s.contentType="application/x-www-form-urlencoded",s.data=s.data?{model:s.data}:{}),i.emulateHTTP&&("PUT"===o||"DELETE"===o||"PATCH"===o)){s.type="POST",i.emulateJSON&&(s.data._method=o);var a=i.beforeSend;i.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",o),a)return a.apply(this,arguments)}}"GET"===s.type||i.emulateJSON||(s.processData=!1);var l=i.error;i.error=function(t,e,n){i.textStatus=e,i.errorThrown=n,l&&l.call(i.context,t,e,n)};var c=i.xhr=e.ajax(n.extend(s,i));return r.trigger("request",r,c,i),c};var I={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var L=e.Router=function(t){t||(t={}),this.preinitialize.apply(this,arguments),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},F=/\((.*?)\)/g,R=/(\(\?)?:\w+/g,U=/\*\w+/g,$=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(L.prototype,a,{preinitialize:function(){},initialize:function(){},route:function(t,r,i){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(r)&&(i=r,r=""),i||(i=this[r]);var o=this;return e.history.route(t,(function(n){var s=o._extractParameters(t,n);!1!==o.execute(i,s,r)&&(o.trigger.apply(o,["route:"+r].concat(s)),o.trigger("route",r,s),e.history.trigger("route",o,r,s))})),this},execute:function(t,e,n){t&&t.apply(this,e)},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace($,"\\$&").replace(F,"(?:$1)?").replace(R,(function(t,e){return e?t:"([^/?]+)"})).replace(U,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return n.map(r,(function(t,e){return e===r.length-1?t||null:t?decodeURIComponent(t):null}))}});var M=e.History=function(){this.handlers=[],this.checkUrl=this.checkUrl.bind(this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},B=/^[#\/]|\s+$/g,z=/^\/+|\/+$/g,D=/#.*$/;M.started=!1,n.extend(M.prototype,a,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return null==t&&(t=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),t.replace(B,"")},start:function(t){if(M.started)throw new Error("Backbone.history has already been started");if(M.started=!0,this.options=n.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(z,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";return this.location.replace(e+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var r=document.body,i=r.insertBefore(this.iframe,r.firstChild).contentWindow;i.document.open(),i.document.close(),i.location.hash="#"+this.fragment}var o=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?o("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?o("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),M.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(t){return!!this.matchRoot()&&(t=this.fragment=this.getFragment(t),n.some(this.handlers,(function(e){if(e.route.test(t))return e.callback(t),!0})))},navigate:function(t,e){if(!M.started)return!1;e&&!0!==e||(e={trigger:!!e}),t=this.getFragment(t||"");var n=this.root;""!==t&&"?"!==t.charAt(0)||(n=n.slice(0,-1)||"/");var r=n+t;t=t.replace(D,"");var i=this.decodeFragment(t);if(this.fragment!==i){if(this.fragment=i,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,r);else{if(!this._wantsHashChange)return this.location.assign(r);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var o=this.iframe.contentWindow;e.replace||(o.document.open(),o.document.close()),this._updateHash(o.location,t,e.replace)}}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else t.hash="#"+e}}),e.history=new M;v.extend=y.extend=L.extend=E.extend=M.extend=function(t,e){var r,i=this;return r=t&&n.has(t,"constructor")?t.constructor:function(){return i.apply(this,arguments)},n.extend(r,i,e),r.prototype=n.create(i.prototype,t),r.prototype.constructor=r,r.__super__=i.prototype,r};var H=function(){throw new Error('A "url" property or function must be specified')},q=function(t,e){var n=e.error;e.error=function(r){n&&n.call(e.context,t,r,e),t.trigger("error",t,r,e)}};return e}(o,n,t,e)}.apply(e,r),void 0===i||(t.exports=i)},76515:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(87537),i=n.n(r),o=n(23645),s=n.n(o)()(i());s.push([t.id,".button-vue[data-v-3fa8511b]{margin-top:.5rem}","",{version:3,sources:["webpack://./core/src/components/login/LoginButton.vue"],names:[],mappings:"AACA,6BACC,gBAAA",sourcesContent:["\n.button-vue {\n\tmargin-top: .5rem;\n}\n"],sourceRoot:""}]);const a=s},3591:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(87537),i=n.n(r),o=n(23645),s=n.n(o)()(i());s.push([t.id,".login-form[data-v-5bd351bc]{text-align:left;font-size:1rem}.login-form__fieldset[data-v-5bd351bc]{width:100%;display:flex;flex-direction:column;gap:.5rem}.login-form__headline[data-v-5bd351bc]{text-align:center}","",{version:3,sources:["webpack://./core/src/components/login/LoginForm.vue"],names:[],mappings:"AACA,6BACC,eAAA,CACA,cAAA,CAEA,uCACC,UAAA,CACA,YAAA,CACA,qBAAA,CACA,SAAA,CAGD,uCACC,iBAAA",sourcesContent:["\n.login-form {\n\ttext-align: left;\n\tfont-size: 1rem;\n\n\t&__fieldset {\n\t\twidth: 100%;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: .5rem;\n\t}\n\n\t&__headline {\n\t\ttext-align: center;\n\t}\n}\n"],sourceRoot:""}]);const a=s},34840:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(87537),i=n.n(r),o=n(23645),s=n.n(o)()(i());s.push([t.id,"fieldset[data-v-11c76644]{display:flex;flex-direction:column;gap:.5rem}fieldset[data-v-11c76644] label{text-align:initial}.update[data-v-11c76644]{margin:0 auto}","",{version:3,sources:["webpack://./core/src/components/login/PasswordLessLoginForm.vue"],names:[],mappings:"AACA,0BACC,YAAA,CACA,qBAAA,CACA,SAAA,CAEA,gCACC,kBAAA,CAIF,yBACC,aAAA",sourcesContent:["\nfieldset {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 0.5rem;\n\n\t:deep(label) {\n\t\ttext-align: initial;\n\t}\n}\n\n.update {\n\tmargin: 0 auto;\n}\n"],sourceRoot:""}]);const a=s},72076:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(87537),i=n.n(r),o=n(23645),s=n.n(o)()(i());s.push([t.id,".login-form[data-v-6636f1b2]{text-align:left;font-size:1rem}.login-form__fieldset[data-v-6636f1b2]{width:100%;display:flex;flex-direction:column;gap:.5rem}.login-form__link[data-v-6636f1b2]{display:block;font-weight:normal !important;padding-bottom:1rem;cursor:pointer;font-size:var(--default-font-size);text-align:center;padding:.5rem 1rem 1rem 1rem}","",{version:3,sources:["webpack://./core/src/components/login/ResetPassword.vue"],names:[],mappings:"AACA,6BACC,eAAA,CACA,cAAA,CAEA,uCACC,UAAA,CACA,YAAA,CACA,qBAAA,CACA,SAAA,CAGD,mCACC,aAAA,CACA,6BAAA,CACA,mBAAA,CACA,cAAA,CACA,kCAAA,CACA,iBAAA,CACA,4BAAA",sourcesContent:["\n.login-form {\n\ttext-align: left;\n\tfont-size: 1rem;\n\n\t&__fieldset {\n\t\twidth: 100%;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: .5rem;\n\t}\n\n\t&__link {\n\t\tdisplay: block;\n\t\tfont-weight: normal !important;\n\t\tpadding-bottom: 1rem;\n\t\tcursor: pointer;\n\t\tfont-size: var(--default-font-size);\n\t\ttext-align: center;\n\t\tpadding: .5rem 1rem 1rem 1rem;\n\t}\n}\n"],sourceRoot:""}]);const a=s},52454:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(87537),i=n.n(r),o=n(23645),s=n.n(o)()(i());s.push([t.id,"body{font-size:var(--default-font-size)}.login-box{width:320px;box-sizing:border-box}.login-box__link{display:block;padding:1rem;font-size:var(--default-font-size);text-align:center;font-weight:normal !important}.login-box.guest-box,footer{color:var(--color-main-text);background-color:var(--color-main-background-blur);-webkit-backdrop-filter:var(--filter-background-blur);backdrop-filter:var(--filter-background-blur)}footer{min-width:320px;box-sizing:border-box;box-shadow:0 0 10px var(--color-box-shadow);border-radius:var(--border-radius-pill);padding:6px 24px;margin-bottom:1rem;min-height:unset}footer p.info{margin:auto 0px}.fade-enter-active,.fade-leave-active{transition:opacity .3s}.fade-enter,.fade-leave-to{opacity:0}.alternative-logins{display:flex;flex-direction:column;gap:.75rem}.alternative-logins .button-vue{box-sizing:border-box}.login-passwordless .button-vue{margin-top:.5rem}","",{version:3,sources:["webpack://./core/src/views/Login.vue"],names:[],mappings:"AACA,KACC,kCAAA,CAGD,WAEC,WAAA,CACA,qBAAA,CAEA,iBACC,aAAA,CACA,YAAA,CACA,kCAAA,CACA,iBAAA,CACA,6BAAA,CAKF,4BACC,4BAAA,CACA,kDAAA,CACA,qDAAA,CACA,6CAAA,CAGD,OAEC,eAAA,CACA,qBAAA,CAEA,2CAAA,CAEA,uCAAA,CACA,gBAAA,CAEA,kBAAA,CACA,gBAAA,CAGA,cACC,eAAA,CAIF,sCACC,sBAAA,CAED,2BACC,SAAA,CAGD,oBACC,YAAA,CACA,qBAAA,CACA,UAAA,CAEA,gCACC,qBAAA,CAKD,gCACC,gBAAA",sourcesContent:["\nbody {\n\tfont-size: var(--default-font-size);\n}\n\n.login-box {\n\t// Same size as dashboard panels\n\twidth: 320px;\n\tbox-sizing: border-box;\n\n\t&__link {\n\t\tdisplay: block;\n\t\tpadding: 1rem;\n\t\tfont-size: var(--default-font-size);\n\t\ttext-align: center;\n\t\tfont-weight: normal !important;\n\t}\n}\n\n// Same look like a dashboard panel\n.login-box.guest-box, footer {\n\tcolor: var(--color-main-text);\n\tbackground-color: var(--color-main-background-blur);\n\t-webkit-backdrop-filter: var(--filter-background-blur);\n\tbackdrop-filter: var(--filter-background-blur);\n}\n\nfooter {\n\t// Usually the same size as the login box, but allow longer texts\n\tmin-width: 320px;\n\tbox-sizing: border-box;\n\t// align with login box\n\tbox-shadow: 0 0 10px var(--color-box-shadow);\n\t// set border to pill style and adjust padding for it\n\tborder-radius: var(--border-radius-pill);\n\tpadding: 6px 24px;\n\t// always show above bottom\n\tmargin-bottom: 1rem;\n\tmin-height: unset;\n\n\t// reset margin to reduce height of pill\n\tp.info {\n\t\tmargin: auto 0px;\n\t}\n}\n\n.fade-enter-active, .fade-leave-active {\n\ttransition: opacity .3s;\n}\n.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {\n\topacity: 0;\n}\n\n.alternative-logins {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 0.75rem;\n\n\t.button-vue {\n\t\tbox-sizing: border-box;\n\t}\n}\n\n.login-passwordless {\n\t.button-vue {\n\t\tmargin-top: 0.5rem;\n\t}\n}\n"],sourceRoot:""}]);const a=s},74778:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(87537),i=n.n(r),o=n(23645),s=n.n(o)()(i());s.push([t.id,"\nfieldset[data-v-4dc21d74] {\n\ttext-align: center;\n}\ninput[type=submit][data-v-4dc21d74] {\n\tmargin-top: 20px;\n}\n","",{version:3,sources:["webpack://./core/src/components/login/UpdatePassword.vue"],names:[],mappings:";AA4IA;CACA,kBAAA;AACA;AAEA;CACA,gBAAA;AACA",sourcesContent:["\x3c!--\n - @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>\n -\n - @author Julius Härtl <jus@bitgrid.net>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n --\x3e\n\n<template>\n\t<form @submit.prevent=\"submit\">\n\t\t<fieldset>\n\t\t\t<p>\n\t\t\t\t<label for=\"password\" class=\"infield\">{{ t('core', 'New password') }}</label>\n\t\t\t\t<input id=\"password\"\n\t\t\t\t\tv-model=\"password\"\n\t\t\t\t\ttype=\"password\"\n\t\t\t\t\tname=\"password\"\n\t\t\t\t\tautocomplete=\"new-password\"\n\t\t\t\t\tautocapitalize=\"none\"\n\t\t\t\t\tautocorrect=\"off\"\n\t\t\t\t\trequired\n\t\t\t\t\t:placeholder=\"t('core', 'New password')\">\n\t\t\t</p>\n\n\t\t\t<div v-if=\"encrypted\" class=\"update\">\n\t\t\t\t<p>\n\t\t\t\t\t{{ t('core', 'Your files are encrypted. There will be no way to get your data back after your password is reset. If you are not sure what to do, please contact your administrator before you continue. Do you really want to continue?') }}\n\t\t\t\t</p>\n\t\t\t\t<input id=\"encrypted-continue\"\n\t\t\t\t\tv-model=\"proceed\"\n\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\tclass=\"checkbox\">\n\t\t\t\t<label for=\"encrypted-continue\">\n\t\t\t\t\t{{ t('core', 'I know what I\\'m doing') }}\n\t\t\t\t</label>\n\t\t\t</div>\n\n\t\t\t<LoginButton :loading=\"loading\"\n\t\t\t\t:value=\"t('core', 'Reset password')\"\n\t\t\t\t:value-loading=\"t('core', 'Resetting password')\" />\n\n\t\t\t<p v-if=\"error && message\" :class=\"{warning: error}\">\n\t\t\t\t{{ message }}\n\t\t\t</p>\n\t\t</fieldset>\n\t</form>\n</template>\n\n<script>\nimport Axios from '@nextcloud/axios'\nimport LoginButton from './LoginButton.vue'\n\nexport default {\n\tname: 'UpdatePassword',\n\tcomponents: {\n\t\tLoginButton,\n\t},\n\tprops: {\n\t\tusername: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t\tresetPasswordTarget: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t},\n\tdata() {\n\t\treturn {\n\t\t\terror: false,\n\t\t\tloading: false,\n\t\t\tmessage: undefined,\n\t\t\tuser: this.username,\n\t\t\tpassword: '',\n\t\t\tencrypted: false,\n\t\t\tproceed: false,\n\t\t}\n\t},\n\twatch: {\n\t\tusername(value) {\n\t\t\tthis.user = value\n\t\t},\n\t},\n\tmethods: {\n\t\tasync submit() {\n\t\t\tthis.loading = true\n\t\t\tthis.error = false\n\t\t\tthis.message = ''\n\n\t\t\ttry {\n\t\t\t\tconst { data } = await Axios.post(this.resetPasswordTarget, {\n\t\t\t\t\tpassword: this.password,\n\t\t\t\t\tproceed: this.proceed,\n\t\t\t\t})\n\t\t\t\tif (data && data.status === 'success') {\n\t\t\t\t\tthis.message = 'send-success'\n\t\t\t\t\tthis.$emit('update:username', this.user)\n\t\t\t\t\tthis.$emit('done')\n\t\t\t\t} else if (data && data.encryption) {\n\t\t\t\t\tthis.encrypted = true\n\t\t\t\t} else if (data && data.msg) {\n\t\t\t\t\tthrow new Error(data.msg)\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Error()\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\tthis.error = true\n\t\t\t\tthis.message = e.message ? e.message : t('core', 'Password cannot be changed. Please contact your administrator.')\n\t\t\t} finally {\n\t\t\t\tthis.loading = false\n\t\t\t}\n\t\t},\n\t},\n}\n<\/script>\n\n<style scoped>\n\tfieldset {\n\t\ttext-align: center;\n\t}\n\n\tinput[type=submit] {\n\t\tmargin-top: 20px;\n\t}\n</style>\n"],sourceRoot:""}]);const a=s},76591:t=>{"undefined"==typeof dav&&(dav={}),dav._XML_CHAR_MAP={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&apos;"},dav._escapeXml=function(t){return t.replace(/[<>&"']/g,(function(t){return dav._XML_CHAR_MAP[t]}))},dav.Client=function(t){var e;for(e in t)this[e]=t[e]},dav.Client.prototype={baseUrl:null,userName:null,password:null,xmlNamespaces:{"DAV:":"d"},propFind:function(t,e,n,r){void 0===n&&(n="0"),n=""+n,(r=r||{}).Depth=n,r["Content-Type"]="application/xml; charset=utf-8";var i,o='<?xml version="1.0"?>\n<d:propfind ';for(i in this.xmlNamespaces)o+=" xmlns:"+this.xmlNamespaces[i]+'="'+i+'"';for(var s in o+=">\n <d:prop>\n",e)if(e.hasOwnProperty(s)){var a=this.parseClarkNotation(e[s]);this.xmlNamespaces[a.namespace]?o+=" <"+this.xmlNamespaces[a.namespace]+":"+a.name+" />\n":o+=" <x:"+a.name+' xmlns:x="'+a.namespace+'" />\n'}return o+=" </d:prop>\n",o+="</d:propfind>",this.request("PROPFIND",t,r,o).then(function(t){return"0"===n?{status:t.status,body:t.body[0],xhr:t.xhr}:{status:t.status,body:t.body,xhr:t.xhr}}.bind(this))},_renderPropSet:function(t){var e=" <d:set>\n <d:prop>\n";for(var n in t)if(t.hasOwnProperty(n)){var r,i=this.parseClarkNotation(n),o=t[n];"d:resourcetype"!=(r=this.xmlNamespaces[i.namespace]?this.xmlNamespaces[i.namespace]+":"+i.name:"x:"+i.name+' xmlns:x="'+i.namespace+'"')&&(o=dav._escapeXml(o)),e+=" <"+r+">"+o+"</"+r+">\n"}return(e+=" </d:prop>\n")+" </d:set>\n"},propPatch:function(t,e,n){(n=n||{})["Content-Type"]="application/xml; charset=utf-8";var r,i='<?xml version="1.0"?>\n<d:propertyupdate ';for(r in this.xmlNamespaces)i+=" xmlns:"+this.xmlNamespaces[r]+'="'+r+'"';return i+=">\n"+this._renderPropSet(e),i+="</d:propertyupdate>",this.request("PROPPATCH",t,n,i).then(function(t){return{status:t.status,body:t.body,xhr:t.xhr}}.bind(this))},mkcol:function(t,e,n){var r="";if((n=n||{})["Content-Type"]="application/xml; charset=utf-8",e){var i;for(i in r='<?xml version="1.0"?>\n<d:mkcol',this.xmlNamespaces)r+=" xmlns:"+this.xmlNamespaces[i]+'="'+i+'"';r+=">\n"+this._renderPropSet(e),r+="</d:mkcol>"}return this.request("MKCOL",t,n,r).then(function(t){return{status:t.status,body:t.body,xhr:t.xhr}}.bind(this))},request:function(t,e,n,r,i,o){var s,a=this,l=this.xhrProvider();for(s in n=n||{},i=i||"",this.userName&&(n.Authorization="Basic "+btoa(this.userName+":"+this.password)),l.open(t,this.resolveUrl(e),!0),n)l.setRequestHeader(s,n[s]);return l.responseType=i,o&&"function"==typeof o.onProgress&&("PUT"===t||"POST"===t?l.upload.addEventListener("progress",(function(t){o.onProgress(t)}),!1):l.addEventListener("progress",(function(t){o.onProgress(t)}),!1)),void 0===r?l.send():l.send(r),new Promise((function(t,e){l.onreadystatechange=function(){if(4===l.readyState){var e=l.response;207===l.status&&(e=a.parseMultiStatus(l.response)),t({body:e,status:l.status,xhr:l})}},l.ontimeout=function(){e(new Error("Timeout exceeded"))}}))},xhrProvider:function(){return new XMLHttpRequest},_parsePropNode:function(t){var e=null;if(t.childNodes&&t.childNodes.length>0){for(var n=[],r=0;r<t.childNodes.length;r++){var i=t.childNodes[r];1===i.nodeType&&n.push(i)}n.length&&(e=n)}return e||t.textContent||t.text||""},parseMultiStatus:function(t){for(var e=(new DOMParser).parseFromString(t,"application/xml"),n=function(t){var e;for(e in this.xmlNamespaces)if(this.xmlNamespaces[e]===t)return e}.bind(this),r=e.evaluate("/d:multistatus/d:response",e,n,XPathResult.ANY_TYPE,null),i=[],o=r.iterateNext();o;){var s={href:null,propStat:[]};s.href=e.evaluate("string(d:href)",o,n,XPathResult.ANY_TYPE,null).stringValue;for(var a=e.evaluate("d:propstat",o,n,XPathResult.ANY_TYPE,null),l=a.iterateNext();l;){for(var c={status:e.evaluate("string(d:status)",l,n,XPathResult.ANY_TYPE,null).stringValue,properties:{}},u=e.evaluate("d:prop/*",l,n,XPathResult.ANY_TYPE,null),d=u.iterateNext();d;){var f=this._parsePropNode(d);c.properties["{"+d.namespaceURI+"}"+d.localName]=f,d=u.iterateNext()}s.propStat.push(c),l=a.iterateNext()}i.push(s),o=r.iterateNext()}return i},resolveUrl:function(t){if(/^https?:\/\//i.test(t))return t;var e=this.parseUrl(this.baseUrl);return t.charAt("/")?e.root+t:(e.root,-1!==e.path.lastIndexOf("/")&&e.path.subString(0,e.path.lastIndexOf("/")),t)},parseUrl:function(t){var e=t.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/),n={url:e[0],scheme:e[1],host:e[3],port:e[4],path:e[5],query:e[6],fragment:e[7]};return n.root=n.scheme+"://"+n.host+(n.port?":"+n.port:""),n},parseClarkNotation:function(t){var e=t.match(/^{([^}]+)}(.*)$/);if(e)return{name:e[2],namespace:e[1]}}},void 0!==t.exports&&(t.exports.Client=dav.Client),t.exports={dav}},10944:(t,e,n)=>{var r=n(40202);t.exports=(r.default||r).template({1:function(t,e,n,r,i){var o,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(o=s(n,"if").call(null!=e?e:t.nullContext||{},null!=(o=null!=e?s(e,"contact"):e)?s(o,"profileUrl"):o,{name:"if",hash:{},fn:t.program(2,i,0),inverse:t.program(5,i,0),data:i,loc:{start:{line:2,column:1},end:{line:10,column:8}}}))?o:""},2:function(t,e,n,r,i){var o,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(o=s(n,"if").call(null!=e?e:t.nullContext||{},null!=(o=null!=e?s(e,"contact"):e)?s(o,"profileTitle"):o,{name:"if",hash:{},fn:t.program(3,i,0),inverse:t.noop,data:i,loc:{start:{line:3,column:2},end:{line:7,column:9}}}))?o:""},3:function(t,e,n,r,i){var o,s=t.lambda,a=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t\t<a class="profile-link--avatar" href="'+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"profileUrl"):o,e))+'">\n\t\t\t\t<img src="'+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"avatar"):o,e))+'&size=32" class="avatar" srcset="'+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"avatar"):o,e))+"&size=32 1x, "+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"avatar"):o,e))+"&size=64 2x, "+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"avatar"):o,e))+'&size=128 4x" alt="'+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"avatarLabel"):o,e))+'">\n\t\t\t</a>\n'},5:function(t,e,n,r,i){var o,s=t.lambda,a=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t<img src="'+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"avatar"):o,e))+'&size=32" class="avatar" srcset="'+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"avatar"):o,e))+"&size=32 1x, "+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"avatar"):o,e))+"&size=64 2x, "+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"avatar"):o,e))+'&size=128 4x" alt="'+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"avatarLabel"):o,e))+'">\n'},7:function(t,e,n,r,i){var o,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(o=s(n,"if").call(null!=e?e:t.nullContext||{},null!=(o=null!=e?s(e,"contact"):e)?s(o,"profileUrl"):o,{name:"if",hash:{},fn:t.program(8,i,0),inverse:t.program(11,i,0),data:i,loc:{start:{line:12,column:1},end:{line:20,column:8}}}))?o:""},8:function(t,e,n,r,i){var o,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(o=s(n,"if").call(null!=e?e:t.nullContext||{},null!=(o=null!=e?s(e,"contact"):e)?s(o,"profileTitle"):o,{name:"if",hash:{},fn:t.program(9,i,0),inverse:t.noop,data:i,loc:{start:{line:13,column:2},end:{line:17,column:9}}}))?o:""},9:function(t,e,n,r,i){var o,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t\t<a class="profile-link--avatar" href="'+t.escapeExpression(t.lambda(null!=(o=null!=e?s(e,"contact"):e)?s(o,"profileUrl"):o,e))+'">\n\t\t\t\t<div class="avatar"></div>\n\t\t\t</a>\n'},11:function(t,e,n,r,i){return'\t\t<div class="avatar"></div>\n'},13:function(t,e,n,r,i){var o,s=null!=e?e:t.nullContext||{},a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return(null!=(o=a(n,"if").call(s,null!=(o=null!=e?a(e,"contact"):e)?a(o,"profileTitle"):o,{name:"if",hash:{},fn:t.program(14,i,0),inverse:t.noop,data:i,loc:{start:{line:23,column:1},end:{line:29,column:8}}}))?o:"")+(null!=(o=a(n,"if").call(s,null!=(o=null!=e?a(e,"contact"):e)?a(o,"topAction"):o,{name:"if",hash:{},fn:t.program(16,i,0),inverse:t.noop,data:i,loc:{start:{line:30,column:1},end:{line:34,column:8}}}))?o:"")},14:function(t,e,n,r,i){var o,s=t.lambda,a=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t<a class="body profile-link--full-name" href="'+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"profileUrl"):o,e))+'">\n\t\t\t<div class="full-name">'+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"fullName"):o,e))+'</div>\n\t\t\t<div class="last-message">'+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"lastMessage"):o,e))+'</div>\n\t\t\t<div class="email-address">'+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"emailAddresses"):o,e))+"</div>\n\t\t</a>\n"},16:function(t,e,n,r,i){var o,s=t.lambda,a=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t<a class="top-action" href="'+a(s(null!=(o=null!=(o=null!=e?l(e,"contact"):e)?l(o,"topAction"):o)?l(o,"hyperlink"):o,e))+'" title="'+a(s(null!=(o=null!=(o=null!=e?l(e,"contact"):e)?l(o,"topAction"):o)?l(o,"title"):o,e))+'" aria-label="'+a(s(null!=(o=null!=(o=null!=e?l(e,"contact"):e)?l(o,"topAction"):o)?l(o,"title"):o,e))+'">\n\t\t\t<img src="'+a(s(null!=(o=null!=(o=null!=e?l(e,"contact"):e)?l(o,"topAction"):o)?l(o,"icon"):o,e))+'" alt="'+a(s(null!=(o=null!=(o=null!=e?l(e,"contact"):e)?l(o,"topAction"):o)?l(o,"title"):o,e))+'">\n\t\t</a>\n'},18:function(t,e,n,r,i){var o,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(o=s(n,"if").call(null!=e?e:t.nullContext||{},null!=(o=null!=e?s(e,"contact"):e)?s(o,"topAction"):o,{name:"if",hash:{},fn:t.program(19,i,0),inverse:t.program(21,i,0),data:i,loc:{start:{line:35,column:0},end:{line:50,column:0}}}))?o:""},19:function(t,e,n,r,i){var o,s=t.lambda,a=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t<a class="body" href="'+a(s(null!=(o=null!=(o=null!=e?l(e,"contact"):e)?l(o,"topAction"):o)?l(o,"hyperlink"):o,e))+'">\n\t\t<div class="full-name">'+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"fullName"):o,e))+'</div>\n\t\t<div class="last-message">'+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"lastMessage"):o,e))+'</div>\n\t\t<div class="email-address">'+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"emailAddresses"):o,e))+'</div>\n\t</a>\n \t<a class="top-action" href="'+a(s(null!=(o=null!=(o=null!=e?l(e,"contact"):e)?l(o,"topAction"):o)?l(o,"hyperlink"):o,e))+'" title="'+a(s(null!=(o=null!=(o=null!=e?l(e,"contact"):e)?l(o,"topAction"):o)?l(o,"title"):o,e))+'">\n \t\t<img src="'+a(s(null!=(o=null!=(o=null!=e?l(e,"contact"):e)?l(o,"topAction"):o)?l(o,"icon"):o,e))+'" alt="'+a(s(null!=(o=null!=(o=null!=e?l(e,"contact"):e)?l(o,"topAction"):o)?l(o,"title"):o,e))+'">\n\t</a>\n'},21:function(t,e,n,r,i){var o,s=t.lambda,a=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t<div class="body">\n\t\t<div class="full-name">'+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"fullName"):o,e))+'</div>\n\t\t<div class="last-message">'+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"lastMessage"):o,e))+'</div>\n\t\t<div class="email-address">'+a(s(null!=(o=null!=e?l(e,"contact"):e)?l(o,"emailAddresses"):o,e))+"</div>\n\t</div>\n"},23:function(t,e,n,r,i){var o,s=t.lambda,a=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<a class="second-action" href="'+a(s(null!=(o=null!=(o=null!=e?l(e,"contact"):e)?l(o,"secondAction"):o)?l(o,"hyperlink"):o,e))+'" aria-label="'+a(s(null!=(o=null!=(o=null!=e?l(e,"contact"):e)?l(o,"secondAction"):o)?l(o,"title"):o,e))+'" title="'+a(s(null!=(o=null!=(o=null!=e?l(e,"contact"):e)?l(o,"secondAction"):o)?l(o,"title"):o,e))+'">\n\t<img src="'+a(s(null!=(o=null!=(o=null!=e?l(e,"contact"):e)?l(o,"secondAction"):o)?l(o,"icon"):o,e))+'" alt="'+a(s(null!=(o=null!=(o=null!=e?l(e,"contact"):e)?l(o,"secondAction"):o)?l(o,"title"):o,e))+'">\n</a>\n'},25:function(t,e,n,r,i){var o,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t<button class="other-actions icon-more"></button>\n\t<div class="menu popovermenu">\n\t\t<ul>\n'+(null!=(o=s(n,"each").call(null!=e?e:t.nullContext||{},null!=(o=null!=e?s(e,"contact"):e)?s(o,"actions"):o,{name:"each",hash:{},fn:t.program(26,i,0),inverse:t.noop,data:i,loc:{start:{line:60,column:3},end:{line:67,column:12}}}))?o:"")+"\t\t</ul>\n\t</div>\n"},26:function(t,e,n,r,i){var o,s=null!=e?e:t.nullContext||{},a=t.hooks.helperMissing,l="function",c=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t\t<li>\n\t\t\t\t<a href="'+c(typeof(o=null!=(o=u(n,"hyperlink")||(null!=e?u(e,"hyperlink"):e))?o:a)===l?o.call(s,{name:"hyperlink",hash:{},data:i,loc:{start:{line:62,column:13},end:{line:62,column:26}}}):o)+'">\n\t\t\t\t\t<img src="'+c(typeof(o=null!=(o=u(n,"icon")||(null!=e?u(e,"icon"):e))?o:a)===l?o.call(s,{name:"icon",hash:{},data:i,loc:{start:{line:63,column:15},end:{line:63,column:23}}}):o)+'" alt="">\n\t\t\t\t\t<span>'+c(typeof(o=null!=(o=u(n,"title")||(null!=e?u(e,"title"):e))?o:a)===l?o.call(s,{name:"title",hash:{},data:i,loc:{start:{line:64,column:11},end:{line:64,column:20}}}):o)+"</span>\n\t\t\t\t</a>\n\t\t\t</li>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,i){var o,s=null!=e?e:t.nullContext||{},a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return(null!=(o=a(n,"if").call(s,null!=(o=null!=e?a(e,"contact"):e)?a(o,"avatar"):o,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.program(7,i,0),data:i,loc:{start:{line:1,column:0},end:{line:21,column:7}}}))?o:"")+(null!=(o=a(n,"if").call(s,null!=(o=null!=e?a(e,"contact"):e)?a(o,"profileUrl"):o,{name:"if",hash:{},fn:t.program(13,i,0),inverse:t.program(18,i,0),data:i,loc:{start:{line:22,column:0},end:{line:50,column:7}}}))?o:"")+(null!=(o=a(n,"if").call(s,null!=(o=null!=e?a(e,"contact"):e)?a(o,"hasTwoActions"):o,{name:"if",hash:{},fn:t.program(23,i,0),inverse:t.noop,data:i,loc:{start:{line:51,column:0},end:{line:55,column:7}}}))?o:"")+(null!=(o=a(n,"if").call(s,null!=(o=null!=e?a(e,"contact"):e)?a(o,"hasManyActions"):o,{name:"if",hash:{},fn:t.program(25,i,0),inverse:t.noop,data:i,loc:{start:{line:56,column:0},end:{line:70,column:7}}}))?o:"")},useData:!0})},20421:(t,e,n)=>{var r=n(40202);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,i){var o,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<div class="emptycontent">\n\t<div class="icon-search"></div>\n\t<h2>'+t.escapeExpression("function"==typeof(o=null!=(o=s(n,"couldNotLoadText")||(null!=e?s(e,"couldNotLoadText"):e))?o:t.hooks.helperMissing)?o.call(null!=e?e:t.nullContext||{},{name:"couldNotLoadText",hash:{},data:i,loc:{start:{line:3,column:5},end:{line:3,column:25}}}):o)+"</h2>\n</div>\n"},useData:!0})},34083:(t,e,n)=>{var r=n(40202);t.exports=(r.default||r).template({1:function(t,e,n,r,i){var o,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<div class="emptycontent">\n\t<div class="icon-search"></div>\n\t<h2>'+t.escapeExpression("function"==typeof(o=null!=(o=s(n,"noContactsFoundText")||(null!=e?s(e,"noContactsFoundText"):e))?o:t.hooks.helperMissing)?o.call(null!=e?e:t.nullContext||{},{name:"noContactsFoundText",hash:{},data:i,loc:{start:{line:4,column:5},end:{line:4,column:28}}}):o)+"</h2>\n</div>\n"},3:function(t,e,n,r,i){var o,s=null!=e?e:t.nullContext||{},a=t.hooks.helperMissing,l="function",c=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<div class="footer"><a href="'+c(typeof(o=null!=(o=u(n,"contactsAppURL")||(null!=e?u(e,"contactsAppURL"):e))?o:a)===l?o.call(s,{name:"contactsAppURL",hash:{},data:i,loc:{start:{line:9,column:29},end:{line:9,column:47}}}):o)+'">'+c(typeof(o=null!=(o=u(n,"showAllContactsText")||(null!=e?u(e,"showAllContactsText"):e))?o:a)===l?o.call(s,{name:"showAllContactsText",hash:{},data:i,loc:{start:{line:9,column:49},end:{line:9,column:72}}}):o)+"</a></div>\n"},5:function(t,e,n,r,i){var o,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(o=s(n,"if").call(null!=e?e:t.nullContext||{},null!=e?s(e,"canInstallApp"):e,{name:"if",hash:{},fn:t.program(6,i,0),inverse:t.noop,data:i,loc:{start:{line:10,column:0},end:{line:12,column:0}}}))?o:""},6:function(t,e,n,r,i){var o,s=null!=e?e:t.nullContext||{},a=t.hooks.helperMissing,l="function",c=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<div class="footer"><a href="'+c(typeof(o=null!=(o=u(n,"contactsAppMgmtURL")||(null!=e?u(e,"contactsAppMgmtURL"):e))?o:a)===l?o.call(s,{name:"contactsAppMgmtURL",hash:{},data:i,loc:{start:{line:11,column:29},end:{line:11,column:51}}}):o)+'">'+c(typeof(o=null!=(o=u(n,"contactsAppMgmtText")||(null!=e?u(e,"contactsAppMgmtText"):e))?o:a)===l?o.call(s,{name:"contactsAppMgmtText",hash:{},data:i,loc:{start:{line:11,column:53},end:{line:11,column:76}}}):o)+"</a></div>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,i){var o,s=null!=e?e:t.nullContext||{},a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return(null!=(o=a(n,"unless").call(s,null!=(o=null!=e?a(e,"contacts"):e)?a(o,"length"):o,{name:"unless",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i,loc:{start:{line:1,column:0},end:{line:6,column:11}}}))?o:"")+'<div id="contactsmenu-contacts"></div>\n'+(null!=(o=a(n,"if").call(s,null!=e?a(e,"contactsAppEnabled"):e,{name:"if",hash:{},fn:t.program(3,i,0),inverse:t.program(5,i,0),data:i,loc:{start:{line:8,column:0},end:{line:12,column:7}}}))?o:"")},useData:!0})},95386:(t,e,n)=>{var r=n(40202);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,i){var o,s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<div class="emptycontent">\n\t<div class="icon-loading"></div>\n\t<h2>'+t.escapeExpression("function"==typeof(o=null!=(o=s(n,"loadingText")||(null!=e?s(e,"loadingText"):e))?o:t.hooks.helperMissing)?o.call(null!=e?e:t.nullContext||{},{name:"loadingText",hash:{},data:i,loc:{start:{line:3,column:5},end:{line:3,column:20}}}):o)+"</h2>\n</div>\n"},useData:!0})},66115:(t,e,n)=>{var r=n(40202);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,i){var o,s=null!=e?e:t.nullContext||{},a=t.hooks.helperMissing,l="function",c=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<label class="hidden-visually" for="contactsmenu-search">'+c(typeof(o=null!=(o=u(n,"searchContactsText")||(null!=e?u(e,"searchContactsText"):e))?o:a)===l?o.call(s,{name:"searchContactsText",hash:{},data:i,loc:{start:{line:1,column:57},end:{line:1,column:79}}}):o)+'</label>\n<input id="contactsmenu-search" type="search" placeholder="'+c(typeof(o=null!=(o=u(n,"searchContactsText")||(null!=e?u(e,"searchContactsText"):e))?o:a)===l?o.call(s,{name:"searchContactsText",hash:{},data:i,loc:{start:{line:2,column:59},end:{line:2,column:81}}}):o)+'" value="'+c(typeof(o=null!=(o=u(n,"searchTerm")||(null!=e?u(e,"searchTerm"):e))?o:a)===l?o.call(s,{name:"searchTerm",hash:{},data:i,loc:{start:{line:2,column:90},end:{line:2,column:104}}}):o)+'">\n<div class="content">\n</div>\n'},useData:!0})},46700:(t,e,n)=>{var r={"./af":42786,"./af.js":42786,"./ar":30867,"./ar-dz":14130,"./ar-dz.js":14130,"./ar-kw":96135,"./ar-kw.js":96135,"./ar-ly":56440,"./ar-ly.js":56440,"./ar-ma":47702,"./ar-ma.js":47702,"./ar-sa":16040,"./ar-sa.js":16040,"./ar-tn":37100,"./ar-tn.js":37100,"./ar.js":30867,"./az":31083,"./az.js":31083,"./be":9808,"./be.js":9808,"./bg":68338,"./bg.js":68338,"./bm":67438,"./bm.js":67438,"./bn":8905,"./bn-bd":76225,"./bn-bd.js":76225,"./bn.js":8905,"./bo":11560,"./bo.js":11560,"./br":1278,"./br.js":1278,"./bs":80622,"./bs.js":80622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":50877,"./cv.js":50877,"./cy":47373,"./cy.js":47373,"./da":24780,"./da.js":24780,"./de":59740,"./de-at":60217,"./de-at.js":60217,"./de-ch":60894,"./de-ch.js":60894,"./de.js":59740,"./dv":5300,"./dv.js":5300,"./el":50837,"./el.js":50837,"./en-au":78348,"./en-au.js":78348,"./en-ca":77925,"./en-ca.js":77925,"./en-gb":22243,"./en-gb.js":22243,"./en-ie":46436,"./en-ie.js":46436,"./en-il":47207,"./en-il.js":47207,"./en-in":44175,"./en-in.js":44175,"./en-nz":76319,"./en-nz.js":76319,"./en-sg":31662,"./en-sg.js":31662,"./eo":92915,"./eo.js":92915,"./es":55655,"./es-do":55251,"./es-do.js":55251,"./es-mx":96112,"./es-mx.js":96112,"./es-us":71146,"./es-us.js":71146,"./es.js":55655,"./et":5603,"./et.js":5603,"./eu":77763,"./eu.js":77763,"./fa":76959,"./fa.js":76959,"./fi":11897,"./fi.js":11897,"./fil":42549,"./fil.js":42549,"./fo":94694,"./fo.js":94694,"./fr":94470,"./fr-ca":63049,"./fr-ca.js":63049,"./fr-ch":52330,"./fr-ch.js":52330,"./fr.js":94470,"./fy":5044,"./fy.js":5044,"./ga":29295,"./ga.js":29295,"./gd":2101,"./gd.js":2101,"./gl":38794,"./gl.js":38794,"./gom-deva":27884,"./gom-deva.js":27884,"./gom-latn":23168,"./gom-latn.js":23168,"./gu":95349,"./gu.js":95349,"./he":24206,"./he.js":24206,"./hi":30094,"./hi.js":30094,"./hr":30316,"./hr.js":30316,"./hu":22138,"./hu.js":22138,"./hy-am":11423,"./hy-am.js":11423,"./id":29218,"./id.js":29218,"./is":90135,"./is.js":90135,"./it":90626,"./it-ch":10150,"./it-ch.js":10150,"./it.js":90626,"./ja":39183,"./ja.js":39183,"./jv":24286,"./jv.js":24286,"./ka":12105,"./ka.js":12105,"./kk":47772,"./kk.js":47772,"./km":18758,"./km.js":18758,"./kn":79282,"./kn.js":79282,"./ko":33730,"./ko.js":33730,"./ku":1408,"./ku.js":1408,"./ky":33291,"./ky.js":33291,"./lb":36841,"./lb.js":36841,"./lo":55466,"./lo.js":55466,"./lt":57010,"./lt.js":57010,"./lv":37595,"./lv.js":37595,"./me":39861,"./me.js":39861,"./mi":35493,"./mi.js":35493,"./mk":95966,"./mk.js":95966,"./ml":87341,"./ml.js":87341,"./mn":5115,"./mn.js":5115,"./mr":10370,"./mr.js":10370,"./ms":9847,"./ms-my":41237,"./ms-my.js":41237,"./ms.js":9847,"./mt":72126,"./mt.js":72126,"./my":56165,"./my.js":56165,"./nb":64924,"./nb.js":64924,"./ne":16744,"./ne.js":16744,"./nl":93901,"./nl-be":59814,"./nl-be.js":59814,"./nl.js":93901,"./nn":83877,"./nn.js":83877,"./oc-lnc":92135,"./oc-lnc.js":92135,"./pa-in":15858,"./pa-in.js":15858,"./pl":64495,"./pl.js":64495,"./pt":89520,"./pt-br":57971,"./pt-br.js":57971,"./pt.js":89520,"./ro":96459,"./ro.js":96459,"./ru":21793,"./ru.js":21793,"./sd":40950,"./sd.js":40950,"./se":10490,"./se.js":10490,"./si":90124,"./si.js":90124,"./sk":64249,"./sk.js":64249,"./sl":14985,"./sl.js":14985,"./sq":51104,"./sq.js":51104,"./sr":49131,"./sr-cyrl":79915,"./sr-cyrl.js":79915,"./sr.js":49131,"./ss":85893,"./ss.js":85893,"./sv":98760,"./sv.js":98760,"./sw":91172,"./sw.js":91172,"./ta":27333,"./ta.js":27333,"./te":23110,"./te.js":23110,"./tet":52095,"./tet.js":52095,"./tg":27321,"./tg.js":27321,"./th":9041,"./th.js":9041,"./tk":19005,"./tk.js":19005,"./tl-ph":75768,"./tl-ph.js":75768,"./tlh":89444,"./tlh.js":89444,"./tr":72397,"./tr.js":72397,"./tzl":28254,"./tzl.js":28254,"./tzm":51106,"./tzm-latn":30699,"./tzm-latn.js":30699,"./tzm.js":51106,"./ug-cn":9288,"./ug-cn.js":9288,"./uk":67691,"./uk.js":67691,"./ur":13795,"./ur.js":13795,"./uz":6791,"./uz-latn":60588,"./uz-latn.js":60588,"./uz.js":6791,"./vi":65666,"./vi.js":65666,"./x-pseudo":14378,"./x-pseudo.js":14378,"./yo":75805,"./yo.js":75805,"./zh-cn":83839,"./zh-cn.js":83839,"./zh-hk":55726,"./zh-hk.js":55726,"./zh-mo":99807,"./zh-mo.js":99807,"./zh-tw":74152,"./zh-tw.js":74152};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id=46700},59050:(t,e,n)=>{"use strict";n.r(e),n.d(e,{VERSION:()=>i,after:()=>Le,all:()=>tn,allKeys:()=>gt,any:()=>en,assign:()=>Lt,before:()=>Fe,bind:()=>Ae,bindAll:()=>ke,chain:()=>ye,chunk:()=>$n,clone:()=>$t,collect:()=>Ze,compact:()=>En,compose:()=>Ie,constant:()=>X,contains:()=>nn,countBy:()=>vn,create:()=>Ut,debounce:()=>Oe,default:()=>Hn,defaults:()=>Ft,defer:()=>Te,delay:()=>Ee,detect:()=>Ye,difference:()=>jn,drop:()=>kn,each:()=>Ke,escape:()=>se,every:()=>tn,extend:()=>It,extendOwn:()=>Lt,filter:()=>Xe,find:()=>Ye,findIndex:()=>Me,findKey:()=>Ue,findLastIndex:()=>Be,findWhere:()=>Ve,first:()=>Cn,flatten:()=>Tn,foldl:()=>We,foldr:()=>Je,forEach:()=>Ke,functions:()=>St,get:()=>Ht,groupBy:()=>mn,has:()=>qt,head:()=>Cn,identity:()=>Yt,include:()=>nn,includes:()=>nn,indexBy:()=>gn,indexOf:()=>He,initial:()=>xn,inject:()=>We,intersection:()=>In,invert:()=>Ot,invoke:()=>rn,isArguments:()=>G,isArray:()=>V,isArrayBuffer:()=>U,isBoolean:()=>T,isDataView:()=>Y,isDate:()=>I,isElement:()=>j,isEmpty:()=>lt,isEqual:()=>mt,isError:()=>F,isFinite:()=>W,isFunction:()=>B,isMap:()=>Ct,isMatch:()=>ct,isNaN:()=>J,isNull:()=>P,isNumber:()=>N,isObject:()=>k,isRegExp:()=>L,isSet:()=>Pt,isString:()=>S,isSymbol:()=>R,isTypedArray:()=>it,isUndefined:()=>E,isWeakMap:()=>kt,isWeakSet:()=>Et,iteratee:()=>Wt,keys:()=>at,last:()=>Pn,lastIndexOf:()=>qe,map:()=>Ze,mapObject:()=>Xt,matcher:()=>Vt,matches:()=>Vt,max:()=>an,memoize:()=>Pe,methods:()=>St,min:()=>ln,mixin:()=>Bn,negate:()=>Ne,noop:()=>Qt,now:()=>re,object:()=>Rn,omit:()=>An,once:()=>Re,pairs:()=>jt,partial:()=>_e,partition:()=>yn,pick:()=>_n,pluck:()=>on,property:()=>Kt,propertyOf:()=>te,random:()=>ne,range:()=>Un,reduce:()=>We,reduceRight:()=>Je,reject:()=>Qe,rest:()=>kn,restArguments:()=>C,result:()=>me,sample:()=>dn,select:()=>Xe,shuffle:()=>fn,size:()=>bn,some:()=>en,sortBy:()=>hn,sortedIndex:()=>ze,tail:()=>kn,take:()=>Cn,tap:()=>Mt,template:()=>pe,templateSettings:()=>le,throttle:()=>je,times:()=>ee,toArray:()=>un,toPath:()=>Bt,transpose:()=>Ln,unescape:()=>ae,union:()=>Nn,uniq:()=>Sn,unique:()=>Sn,uniqueId:()=>ve,unzip:()=>Ln,values:()=>Tt,where:()=>sn,without:()=>On,wrap:()=>Se,zip:()=>Fn});var r={};n.r(r),n.d(r,{VERSION:()=>i,after:()=>Le,all:()=>tn,allKeys:()=>gt,any:()=>en,assign:()=>Lt,before:()=>Fe,bind:()=>Ae,bindAll:()=>ke,chain:()=>ye,chunk:()=>$n,clone:()=>$t,collect:()=>Ze,compact:()=>En,compose:()=>Ie,constant:()=>X,contains:()=>nn,countBy:()=>vn,create:()=>Ut,debounce:()=>Oe,default:()=>zn,defaults:()=>Ft,defer:()=>Te,delay:()=>Ee,detect:()=>Ye,difference:()=>jn,drop:()=>kn,each:()=>Ke,escape:()=>se,every:()=>tn,extend:()=>It,extendOwn:()=>Lt,filter:()=>Xe,find:()=>Ye,findIndex:()=>Me,findKey:()=>Ue,findLastIndex:()=>Be,findWhere:()=>Ve,first:()=>Cn,flatten:()=>Tn,foldl:()=>We,foldr:()=>Je,forEach:()=>Ke,functions:()=>St,get:()=>Ht,groupBy:()=>mn,has:()=>qt,head:()=>Cn,identity:()=>Yt,include:()=>nn,includes:()=>nn,indexBy:()=>gn,indexOf:()=>He,initial:()=>xn,inject:()=>We,intersection:()=>In,invert:()=>Ot,invoke:()=>rn,isArguments:()=>G,isArray:()=>V,isArrayBuffer:()=>U,isBoolean:()=>T,isDataView:()=>Y,isDate:()=>I,isElement:()=>j,isEmpty:()=>lt,isEqual:()=>mt,isError:()=>F,isFinite:()=>W,isFunction:()=>B,isMap:()=>Ct,isMatch:()=>ct,isNaN:()=>J,isNull:()=>P,isNumber:()=>N,isObject:()=>k,isRegExp:()=>L,isSet:()=>Pt,isString:()=>S,isSymbol:()=>R,isTypedArray:()=>it,isUndefined:()=>E,isWeakMap:()=>kt,isWeakSet:()=>Et,iteratee:()=>Wt,keys:()=>at,last:()=>Pn,lastIndexOf:()=>qe,map:()=>Ze,mapObject:()=>Xt,matcher:()=>Vt,matches:()=>Vt,max:()=>an,memoize:()=>Pe,methods:()=>St,min:()=>ln,mixin:()=>Bn,negate:()=>Ne,noop:()=>Qt,now:()=>re,object:()=>Rn,omit:()=>An,once:()=>Re,pairs:()=>jt,partial:()=>_e,partition:()=>yn,pick:()=>_n,pluck:()=>on,property:()=>Kt,propertyOf:()=>te,random:()=>ne,range:()=>Un,reduce:()=>We,reduceRight:()=>Je,reject:()=>Qe,rest:()=>kn,restArguments:()=>C,result:()=>me,sample:()=>dn,select:()=>Xe,shuffle:()=>fn,size:()=>bn,some:()=>en,sortBy:()=>hn,sortedIndex:()=>ze,tail:()=>kn,take:()=>Cn,tap:()=>Mt,template:()=>pe,templateSettings:()=>le,throttle:()=>je,times:()=>ee,toArray:()=>un,toPath:()=>Bt,transpose:()=>Ln,unescape:()=>ae,union:()=>Nn,uniq:()=>Sn,unique:()=>Sn,uniqueId:()=>ve,unzip:()=>Ln,values:()=>Tt,where:()=>sn,without:()=>On,wrap:()=>Se,zip:()=>Fn});var i="1.13.6",o="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},s=Array.prototype,a=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,c=s.push,u=s.slice,d=a.toString,f=a.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,p="undefined"!=typeof DataView,m=Array.isArray,g=Object.keys,v=Object.create,y=h&&ArrayBuffer.isView,b=isNaN,w=isFinite,_=!{toString:null}.propertyIsEnumerable("toString"),A=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x=Math.pow(2,53)-1;function C(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+e];switch(e){case 0:return t.call(this,r);case 1:return t.call(this,arguments[0],r);case 2:return t.call(this,arguments[0],arguments[1],r)}var o=Array(e+1);for(i=0;i<e;i++)o[i]=arguments[i];return o[e]=r,t.apply(this,o)}}function k(t){var e=typeof t;return"function"===e||"object"===e&&!!t}function P(t){return null===t}function E(t){return void 0===t}function T(t){return!0===t||!1===t||"[object Boolean]"===d.call(t)}function j(t){return!(!t||1!==t.nodeType)}function O(t){var e="[object "+t+"]";return function(t){return d.call(t)===e}}const S=O("String"),N=O("Number"),I=O("Date"),L=O("RegExp"),F=O("Error"),R=O("Symbol"),U=O("ArrayBuffer");var $=O("Function"),M=o.document&&o.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof M&&($=function(t){return"function"==typeof t||!1});const B=$,z=O("Object");var D=p&&z(new DataView(new ArrayBuffer(8))),H="undefined"!=typeof Map&&z(new Map),q=O("DataView");const Y=D?function(t){return null!=t&&B(t.getInt8)&&U(t.buffer)}:q,V=m||O("Array");function K(t,e){return null!=t&&f.call(t,e)}var Z=O("Arguments");!function(){Z(arguments)||(Z=function(t){return K(t,"callee")})}();const G=Z;function W(t){return!R(t)&&w(t)&&!isNaN(parseFloat(t))}function J(t){return N(t)&&b(t)}function X(t){return function(){return t}}function Q(t){return function(e){var n=t(e);return"number"==typeof n&&n>=0&&n<=x}}function tt(t){return function(e){return null==e?void 0:e[t]}}const et=tt("byteLength"),nt=Q(et);var rt=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const it=h?function(t){return y?y(t)&&!Y(t):nt(t)&&rt.test(d.call(t))}:X(!1),ot=tt("length");function st(t,e){e=function(t){for(var e={},n=t.length,r=0;r<n;++r)e[t[r]]=!0;return{contains:function(t){return!0===e[t]},push:function(n){return e[n]=!0,t.push(n)}}}(e);var n=A.length,r=t.constructor,i=B(r)&&r.prototype||a,o="constructor";for(K(t,o)&&!e.contains(o)&&e.push(o);n--;)(o=A[n])in t&&t[o]!==i[o]&&!e.contains(o)&&e.push(o)}function at(t){if(!k(t))return[];if(g)return g(t);var e=[];for(var n in t)K(t,n)&&e.push(n);return _&&st(t,e),e}function lt(t){if(null==t)return!0;var e=ot(t);return"number"==typeof e&&(V(t)||S(t)||G(t))?0===e:0===ot(at(t))}function ct(t,e){var n=at(e),r=n.length;if(null==t)return!r;for(var i=Object(t),o=0;o<r;o++){var s=n[o];if(e[s]!==i[s]||!(s in i))return!1}return!0}function ut(t){return t instanceof ut?t:this instanceof ut?void(this._wrapped=t):new ut(t)}function dt(t){return new Uint8Array(t.buffer||t,t.byteOffset||0,et(t))}ut.VERSION=i,ut.prototype.value=function(){return this._wrapped},ut.prototype.valueOf=ut.prototype.toJSON=ut.prototype.value,ut.prototype.toString=function(){return String(this._wrapped)};var ft="[object DataView]";function ht(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var i=typeof t;return("function"===i||"object"===i||"object"==typeof e)&&pt(t,e,n,r)}function pt(t,e,n,r){t instanceof ut&&(t=t._wrapped),e instanceof ut&&(e=e._wrapped);var i=d.call(t);if(i!==d.call(e))return!1;if(D&&"[object Object]"==i&&Y(t)){if(!Y(e))return!1;i=ft}switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(e);case"[object ArrayBuffer]":case ft:return pt(dt(t),dt(e),n,r)}var o="[object Array]"===i;if(!o&&it(t)){if(et(t)!==et(e))return!1;if(t.buffer===e.buffer&&t.byteOffset===e.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var s=t.constructor,a=e.constructor;if(s!==a&&!(B(s)&&s instanceof s&&B(a)&&a instanceof a)&&"constructor"in t&&"constructor"in e)return!1}r=r||[];for(var c=(n=n||[]).length;c--;)if(n[c]===t)return r[c]===e;if(n.push(t),r.push(e),o){if((c=t.length)!==e.length)return!1;for(;c--;)if(!ht(t[c],e[c],n,r))return!1}else{var u,f=at(t);if(c=f.length,at(e).length!==c)return!1;for(;c--;)if(!K(e,u=f[c])||!ht(t[u],e[u],n,r))return!1}return n.pop(),r.pop(),!0}function mt(t,e){return ht(t,e)}function gt(t){if(!k(t))return[];var e=[];for(var n in t)e.push(n);return _&&st(t,e),e}function vt(t){var e=ot(t);return function(n){if(null==n)return!1;var r=gt(n);if(ot(r))return!1;for(var i=0;i<e;i++)if(!B(n[t[i]]))return!1;return t!==At||!B(n[yt])}}var yt="forEach",bt=["clear","delete"],wt=["get","has","set"],_t=bt.concat(yt,wt),At=bt.concat(wt),xt=["add"].concat(bt,yt,"has");const Ct=H?vt(_t):O("Map"),kt=H?vt(At):O("WeakMap"),Pt=H?vt(xt):O("Set"),Et=O("WeakSet");function Tt(t){for(var e=at(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=t[e[i]];return r}function jt(t){for(var e=at(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=[e[i],t[e[i]]];return r}function Ot(t){for(var e={},n=at(t),r=0,i=n.length;r<i;r++)e[t[n[r]]]=n[r];return e}function St(t){var e=[];for(var n in t)B(t[n])&&e.push(n);return e.sort()}function Nt(t,e){return function(n){var r=arguments.length;if(e&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],s=t(o),a=s.length,l=0;l<a;l++){var c=s[l];e&&void 0!==n[c]||(n[c]=o[c])}return n}}const It=Nt(gt),Lt=Nt(at),Ft=Nt(gt,!0);function Rt(t){if(!k(t))return{};if(v)return v(t);var e=function(){};e.prototype=t;var n=new e;return e.prototype=null,n}function Ut(t,e){var n=Rt(t);return e&&Lt(n,e),n}function $t(t){return k(t)?V(t)?t.slice():It({},t):t}function Mt(t,e){return e(t),t}function Bt(t){return V(t)?t:[t]}function zt(t){return ut.toPath(t)}function Dt(t,e){for(var n=e.length,r=0;r<n;r++){if(null==t)return;t=t[e[r]]}return n?t:void 0}function Ht(t,e,n){var r=Dt(t,zt(e));return E(r)?n:r}function qt(t,e){for(var n=(e=zt(e)).length,r=0;r<n;r++){var i=e[r];if(!K(t,i))return!1;t=t[i]}return!!n}function Yt(t){return t}function Vt(t){return t=Lt({},t),function(e){return ct(e,t)}}function Kt(t){return t=zt(t),function(e){return Dt(e,t)}}function Zt(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)}}return function(){return t.apply(e,arguments)}}function Gt(t,e,n){return null==t?Yt:B(t)?Zt(t,e,n):k(t)&&!V(t)?Vt(t):Kt(t)}function Wt(t,e){return Gt(t,e,1/0)}function Jt(t,e,n){return ut.iteratee!==Wt?ut.iteratee(t,e):Gt(t,e,n)}function Xt(t,e,n){e=Jt(e,n);for(var r=at(t),i=r.length,o={},s=0;s<i;s++){var a=r[s];o[a]=e(t[a],a,t)}return o}function Qt(){}function te(t){return null==t?Qt:function(e){return Ht(t,e)}}function ee(t,e,n){var r=Array(Math.max(0,t));e=Zt(e,n,1);for(var i=0;i<t;i++)r[i]=e(i);return r}function ne(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))}ut.toPath=Bt,ut.iteratee=Wt;const re=Date.now||function(){return(new Date).getTime()};function ie(t){var e=function(e){return t[e]},n="(?:"+at(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,e):t}}const oe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},se=ie(oe),ae=ie(Ot(oe)),le=ut.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ce=/(.)^/,ue={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},de=/\\|'|\r|\n|\u2028|\u2029/g;function fe(t){return"\\"+ue[t]}var he=/^\s*(\w|\$)+\s*$/;function pe(t,e,n){!e&&n&&(e=n),e=Ft({},e,ut.templateSettings);var r=RegExp([(e.escape||ce).source,(e.interpolate||ce).source,(e.evaluate||ce).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,(function(e,n,r,s,a){return o+=t.slice(i,a).replace(de,fe),i=a+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":s&&(o+="';\n"+s+"\n__p+='"),e})),o+="';\n";var s,a=e.variable;if(a){if(!he.test(a))throw new Error("variable is not a bare identifier: "+a)}else o="with(obj||{}){\n"+o+"}\n",a="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{s=new Function(a,"_",o)}catch(t){throw t.source=o,t}var l=function(t){return s.call(this,t,ut)};return l.source="function("+a+"){\n"+o+"}",l}function me(t,e,n){var r=(e=zt(e)).length;if(!r)return B(n)?n.call(t):n;for(var i=0;i<r;i++){var o=null==t?void 0:t[e[i]];void 0===o&&(o=n,i=r),t=B(o)?o.call(t):o}return t}var ge=0;function ve(t){var e=++ge+"";return t?t+e:e}function ye(t){var e=ut(t);return e._chain=!0,e}function be(t,e,n,r,i){if(!(r instanceof e))return t.apply(n,i);var o=Rt(t.prototype),s=t.apply(o,i);return k(s)?s:o}var we=C((function(t,e){var n=we.placeholder,r=function(){for(var i=0,o=e.length,s=Array(o),a=0;a<o;a++)s[a]=e[a]===n?arguments[i++]:e[a];for(;i<arguments.length;)s.push(arguments[i++]);return be(t,r,this,this,s)};return r}));we.placeholder=ut;const _e=we,Ae=C((function(t,e,n){if(!B(t))throw new TypeError("Bind must be called on a function");var r=C((function(i){return be(t,r,e,this,n.concat(i))}));return r})),xe=Q(ot);function Ce(t,e,n,r){if(r=r||[],e||0===e){if(e<=0)return r.concat(t)}else e=1/0;for(var i=r.length,o=0,s=ot(t);o<s;o++){var a=t[o];if(xe(a)&&(V(a)||G(a)))if(e>1)Ce(a,e-1,n,r),i=r.length;else for(var l=0,c=a.length;l<c;)r[i++]=a[l++];else n||(r[i++]=a)}return r}const ke=C((function(t,e){var n=(e=Ce(e,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=e[n];t[r]=Ae(t[r],t)}return t}));function Pe(t,e){var n=function(r){var i=n.cache,o=""+(e?e.apply(this,arguments):r);return K(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return n.cache={},n}const Ee=C((function(t,e,n){return setTimeout((function(){return t.apply(null,n)}),e)})),Te=_e(Ee,ut,1);function je(t,e,n){var r,i,o,s,a=0;n||(n={});var l=function(){a=!1===n.leading?0:re(),r=null,s=t.apply(i,o),r||(i=o=null)},c=function(){var c=re();a||!1!==n.leading||(a=c);var u=e-(c-a);return i=this,o=arguments,u<=0||u>e?(r&&(clearTimeout(r),r=null),a=c,s=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,u)),s};return c.cancel=function(){clearTimeout(r),a=0,r=i=o=null},c}function Oe(t,e,n){var r,i,o,s,a,l=function(){var c=re()-i;e>c?r=setTimeout(l,e-c):(r=null,n||(s=t.apply(a,o)),r||(o=a=null))},c=C((function(c){return a=this,o=c,i=re(),r||(r=setTimeout(l,e),n&&(s=t.apply(a,o))),s}));return c.cancel=function(){clearTimeout(r),r=o=a=null},c}function Se(t,e){return _e(e,t)}function Ne(t){return function(){return!t.apply(this,arguments)}}function Ie(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}}function Le(t,e){return function(){if(--t<1)return e.apply(this,arguments)}}function Fe(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}}const Re=_e(Fe,2);function Ue(t,e,n){e=Jt(e,n);for(var r,i=at(t),o=0,s=i.length;o<s;o++)if(e(t[r=i[o]],r,t))return r}function $e(t){return function(e,n,r){n=Jt(n,r);for(var i=ot(e),o=t>0?0:i-1;o>=0&&o<i;o+=t)if(n(e[o],o,e))return o;return-1}}const Me=$e(1),Be=$e(-1);function ze(t,e,n,r){for(var i=(n=Jt(n,r,1))(e),o=0,s=ot(t);o<s;){var a=Math.floor((o+s)/2);n(t[a])<i?o=a+1:s=a}return o}function De(t,e,n){return function(r,i,o){var s=0,a=ot(r);if("number"==typeof o)t>0?s=o>=0?o:Math.max(o+a,s):a=o>=0?Math.min(o+1,a):o+a+1;else if(n&&o&&a)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=e(u.call(r,s,a),J))>=0?o+s:-1;for(o=t>0?s:a-1;o>=0&&o<a;o+=t)if(r[o]===i)return o;return-1}}const He=De(1,Me,ze),qe=De(-1,Be);function Ye(t,e,n){var r=(xe(t)?Me:Ue)(t,e,n);if(void 0!==r&&-1!==r)return t[r]}function Ve(t,e){return Ye(t,Vt(e))}function Ke(t,e,n){var r,i;if(e=Zt(e,n),xe(t))for(r=0,i=t.length;r<i;r++)e(t[r],r,t);else{var o=at(t);for(r=0,i=o.length;r<i;r++)e(t[o[r]],o[r],t)}return t}function Ze(t,e,n){e=Jt(e,n);for(var r=!xe(t)&&at(t),i=(r||t).length,o=Array(i),s=0;s<i;s++){var a=r?r[s]:s;o[s]=e(t[a],a,t)}return o}function Ge(t){return function(e,n,r,i){var o=arguments.length>=3;return function(e,n,r,i){var o=!xe(e)&&at(e),s=(o||e).length,a=t>0?0:s-1;for(i||(r=e[o?o[a]:a],a+=t);a>=0&&a<s;a+=t){var l=o?o[a]:a;r=n(r,e[l],l,e)}return r}(e,Zt(n,i,4),r,o)}}const We=Ge(1),Je=Ge(-1);function Xe(t,e,n){var r=[];return e=Jt(e,n),Ke(t,(function(t,n,i){e(t,n,i)&&r.push(t)})),r}function Qe(t,e,n){return Xe(t,Ne(Jt(e)),n)}function tn(t,e,n){e=Jt(e,n);for(var r=!xe(t)&&at(t),i=(r||t).length,o=0;o<i;o++){var s=r?r[o]:o;if(!e(t[s],s,t))return!1}return!0}function en(t,e,n){e=Jt(e,n);for(var r=!xe(t)&&at(t),i=(r||t).length,o=0;o<i;o++){var s=r?r[o]:o;if(e(t[s],s,t))return!0}return!1}function nn(t,e,n,r){return xe(t)||(t=Tt(t)),("number"!=typeof n||r)&&(n=0),He(t,e,n)>=0}const rn=C((function(t,e,n){var r,i;return B(e)?i=e:(e=zt(e),r=e.slice(0,-1),e=e[e.length-1]),Ze(t,(function(t){var o=i;if(!o){if(r&&r.length&&(t=Dt(t,r)),null==t)return;o=t[e]}return null==o?o:o.apply(t,n)}))}));function on(t,e){return Ze(t,Kt(e))}function sn(t,e){return Xe(t,Vt(e))}function an(t,e,n){var r,i,o=-1/0,s=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var a=0,l=(t=xe(t)?t:Tt(t)).length;a<l;a++)null!=(r=t[a])&&r>o&&(o=r);else e=Jt(e,n),Ke(t,(function(t,n,r){((i=e(t,n,r))>s||i===-1/0&&o===-1/0)&&(o=t,s=i)}));return o}function ln(t,e,n){var r,i,o=1/0,s=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var a=0,l=(t=xe(t)?t:Tt(t)).length;a<l;a++)null!=(r=t[a])&&r<o&&(o=r);else e=Jt(e,n),Ke(t,(function(t,n,r){((i=e(t,n,r))<s||i===1/0&&o===1/0)&&(o=t,s=i)}));return o}var cn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function un(t){return t?V(t)?u.call(t):S(t)?t.match(cn):xe(t)?Ze(t,Yt):Tt(t):[]}function dn(t,e,n){if(null==e||n)return xe(t)||(t=Tt(t)),t[ne(t.length-1)];var r=un(t),i=ot(r);e=Math.max(Math.min(e,i),0);for(var o=i-1,s=0;s<e;s++){var a=ne(s,o),l=r[s];r[s]=r[a],r[a]=l}return r.slice(0,e)}function fn(t){return dn(t,1/0)}function hn(t,e,n){var r=0;return e=Jt(e,n),on(Ze(t,(function(t,n,i){return{value:t,index:r++,criteria:e(t,n,i)}})).sort((function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return t.index-e.index})),"value")}function pn(t,e){return function(n,r,i){var o=e?[[],[]]:{};return r=Jt(r,i),Ke(n,(function(e,i){var s=r(e,i,n);t(o,e,s)})),o}}const mn=pn((function(t,e,n){K(t,n)?t[n].push(e):t[n]=[e]})),gn=pn((function(t,e,n){t[n]=e})),vn=pn((function(t,e,n){K(t,n)?t[n]++:t[n]=1})),yn=pn((function(t,e,n){t[n?0:1].push(e)}),!0);function bn(t){return null==t?0:xe(t)?t.length:at(t).length}function wn(t,e,n){return e in n}const _n=C((function(t,e){var n={},r=e[0];if(null==t)return n;B(r)?(e.length>1&&(r=Zt(r,e[1])),e=gt(t)):(r=wn,e=Ce(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i<o;i++){var s=e[i],a=t[s];r(a,s,t)&&(n[s]=a)}return n})),An=C((function(t,e){var n,r=e[0];return B(r)?(r=Ne(r),e.length>1&&(n=e[1])):(e=Ze(Ce(e,!1,!1),String),r=function(t,n){return!nn(e,n)}),_n(t,r,n)}));function xn(t,e,n){return u.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))}function Cn(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[0]:xn(t,t.length-e)}function kn(t,e,n){return u.call(t,null==e||n?1:e)}function Pn(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[t.length-1]:kn(t,Math.max(0,t.length-e))}function En(t){return Xe(t,Boolean)}function Tn(t,e){return Ce(t,e,!1)}const jn=C((function(t,e){return e=Ce(e,!0,!0),Xe(t,(function(t){return!nn(e,t)}))})),On=C((function(t,e){return jn(t,e)}));function Sn(t,e,n,r){T(e)||(r=n,n=e,e=!1),null!=n&&(n=Jt(n,r));for(var i=[],o=[],s=0,a=ot(t);s<a;s++){var l=t[s],c=n?n(l,s,t):l;e&&!n?(s&&o===c||i.push(l),o=c):n?nn(o,c)||(o.push(c),i.push(l)):nn(i,l)||i.push(l)}return i}const Nn=C((function(t){return Sn(Ce(t,!0,!0))}));function In(t){for(var e=[],n=arguments.length,r=0,i=ot(t);r<i;r++){var o=t[r];if(!nn(e,o)){var s;for(s=1;s<n&&nn(arguments[s],o);s++);s===n&&e.push(o)}}return e}function Ln(t){for(var e=t&&an(t,ot).length||0,n=Array(e),r=0;r<e;r++)n[r]=on(t,r);return n}const Fn=C(Ln);function Rn(t,e){for(var n={},r=0,i=ot(t);r<i;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n}function Un(t,e,n){null==e&&(e=t||0,t=0),n||(n=e<t?-1:1);for(var r=Math.max(Math.ceil((e-t)/n),0),i=Array(r),o=0;o<r;o++,t+=n)i[o]=t;return i}function $n(t,e){if(null==e||e<1)return[];for(var n=[],r=0,i=t.length;r<i;)n.push(u.call(t,r,r+=e));return n}function Mn(t,e){return t._chain?ut(e).chain():e}function Bn(t){return Ke(St(t),(function(e){var n=ut[e]=t[e];ut.prototype[e]=function(){var t=[this._wrapped];return c.apply(t,arguments),Mn(this,n.apply(ut,t))}})),ut}Ke(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=s[t];ut.prototype[t]=function(){var n=this._wrapped;return null!=n&&(e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0]),Mn(this,n)}})),Ke(["concat","join","slice"],(function(t){var e=s[t];ut.prototype[t]=function(){var t=this._wrapped;return null!=t&&(t=e.apply(t,arguments)),Mn(this,t)}}));const zn=ut;var Dn=Bn(r);Dn._=Dn;const Hn=Dn}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var n=i[t]={id:t,loaded:!1,exports:{}};return r[t].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}o.m=r,e=[],o.O=(t,n,r,i)=>{if(!n){var s=1/0;for(u=0;u<e.length;u++){n=e[u][0],r=e[u][1],i=e[u][2];for(var a=!0,l=0;l<n.length;l++)(!1&i||s>=i)&&Object.keys(o.O).every((t=>o.O[t](n[l])))?n.splice(l--,1):(a=!1,i<s&&(s=i));if(a){e.splice(u--,1);var c=r();void 0!==c&&(t=c)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,r,i]},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),o.j=4577,(()=>{o.b=document.baseURI||self.location.href;var t={4577:0};o.O.j=e=>0===t[e];var e=(e,n)=>{var r,i,s=n[0],a=n[1],l=n[2],c=0;if(s.some((e=>0!==t[e]))){for(r in a)o.o(a,r)&&(o.m[r]=a[r]);if(l)var u=l(o)}for(e&&e(n);c<s.length;c++)i=s[c],o.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return o.O(u)},n=self.webpackChunknextcloud=self.webpackChunknextcloud||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),o.nc=void 0;var s=o.O(void 0,[7874],(()=>o(99711)));s=o.O(s)})();
  3. //# sourceMappingURL=core-login.js.map?v=9904f093b1e563c0190b