diff options
Diffstat (limited to 'dist/files-sidebar.js')
-rw-r--r-- | dist/files-sidebar.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dist/files-sidebar.js b/dist/files-sidebar.js index 8f2c3d37657..1c09da1700a 100644 --- a/dist/files-sidebar.js +++ b/dist/files-sidebar.js @@ -1,3 +1,2 @@ -/*! For license information please see files-sidebar.js.LICENSE.txt */ -(()=>{var e,s,i,n={5119:(t,e,s)=>{"use strict";const{XMLParser:i,XMLValidator:n}=s(16932),r=t=>{if(null==t)return!1;if(0===(t=t.toString().trim()).length)return!1;if(!0!==n.validate(t))return!1;let e;const s=new i;try{e=s.parse(t)}catch(t){return!1}return!!e&&"svg"in e};t.exports=r,t.exports.default=r},17932:(e,s,i)=>{"use strict";var n=i(20144),r=i(31352),o=i(69183),a=i(65358),l=i(5656),d=i(42515),c=i(77958),u=i(41922),h=i(19755),p=i.n(h),f=i(93664),m=i(80351),g=i.n(m),b=i(66805),y=i(97021),v=i(51900);const w=(0,v.Z)(y.Z,b.s,b.x,!1,null,null,null).exports;var A=i(94277),j=i(41251);const x=(0,v.Z)(j.Z,A.s,A.x,!1,null,null,null).exports;var _=i(36135),E=i(72155),N=i(22175);const T={name:"LegacyView",props:{component:{type:Object,required:!0},fileInfo:{type:Object,default:()=>{},required:!0}},watch:{fileInfo(t){this.setFileInfo(t)}},mounted(){this.component.$el.replaceAll(this.$el),this.setFileInfo(this.fileInfo)},methods:{setFileInfo(t){this.component.setFileInfo(new OCA.Files.FileInfoModel(t))}}},C=(0,v.Z)(T,(function(){return(0,this._self._c)("div")}),[],!1,null,null,null).exports,S={name:"SidebarTab",components:{NcAppSidebarTab:i(98445).Z,NcEmptyContent:N.Z},props:{fileInfo:{type:Object,default:()=>{},required:!0},id:{type:String,required:!0},name:{type:String,required:!0},icon:{type:String,required:!1},onMount:{type:Function,required:!0},onUpdate:{type:Function,required:!0},onDestroy:{type:Function,required:!0},onScrollBottomReached:{type:Function,default:()=>{}}},data:()=>({loading:!0}),computed:{activeTab(){return this.$parent.activeTab}},watch:{async fileInfo(t,e){t.id!==e.id&&(this.loading=!0,await this.onUpdate(this.fileInfo),this.loading=!1)}},async mounted(){this.loading=!0,await this.onMount(this.$refs.mount,this.fileInfo,this.$refs.tab),this.loading=!1},async beforeDestroy(){await this.onDestroy()}},I=(0,v.Z)(S,(function(){var t=this,e=t._self._c;return e("NcAppSidebarTab",{ref:"tab",attrs:{id:t.id,name:t.name,icon:t.icon},on:{bottomReached:t.onScrollBottomReached},scopedSlots:t._u([{key:"icon",fn:function(){return[t._t("icon")]},proxy:!0}],null,!0)},[t._v(" "),t.loading?e("NcEmptyContent",{attrs:{icon:"icon-loading"}}):t._e(),t._v(" "),e("div",{ref:"mount"})],1)}),[],!1,null,null,null).exports;var O=i(20435),F=i(35380),k=i(64024),D=i(36906);const P={userVisible:!0,userAssignable:!0,canAssign:!0},L=t=>t.map((t=>{let{props:e}=t;return Object.fromEntries(Object.entries(e).map((t=>{let[e,s]=t;return[(0,D.Z)(e),"displayName"===(0,D.Z)(e)?String(s):s]})))})),$=t=>{const e={...t};return e.name&&!e.displayName||(e.name=e.displayName,delete e.displayName),e};var R=i(79753),z=i(14596);const B=(0,R.generateRemoteUrl)("dav"),M=(0,z.eI)(B,{headers:{requesttoken:(0,c.IH)()??""}}),U=(0,i(17499).IY)().setApp("systemtags").detectUser().build(),q='<?xml version="1.0"?>\n<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">\n\t<d:prop>\n\t\t<oc:id />\n\t\t<oc:display-name />\n\t\t<oc:user-visible />\n\t\t<oc:user-assignable />\n\t\t<oc:can-assign />\n\t</d:prop>\n</d:propfind>',V=async(e,s)=>{const i="/systemtags-relations/files/"+s+"/"+e.id,n=$(e);try{await M.customRequest(i,{method:"PUT",data:n})}catch(e){throw U.error(t("systemtags","Failed to set tag for file"),{error:e}),new Error(t("systemtags","Failed to set tag for file"))}},Z=n.default.extend({name:"SystemTags",components:{NcLoadingIcon:O.Z,NcSelectTags:F.Z},props:{fileId:{type:Number,required:!0}},data:()=>({sortedTags:[],selectedTags:[],loadingTags:!1,loading:!1}),async created(){try{const t=await(async()=>{try{const{data:t}=await M.getDirectoryContents("/systemtags",{data:q,details:!0,glob:"/systemtags/*"});return L(t)}catch(t){throw U.error((0,r.Iu)("systemtags","Failed to load tags"),{error:t}),new Error((0,r.Iu)("systemtags","Failed to load tags"))}})(),e=await(async()=>{const t=(0,R.generateUrl)("/apps/systemtags/lastused");try{const{data:e}=await f.Z.get(t);return e.map(Number)}catch(t){throw U.error((0,r.Iu)("systemtags","Failed to load last used tags"),{error:t}),new Error((0,r.Iu)("systemtags","Failed to load last used tags"))}})(),s=[],i=[];for(const n of t)e.includes(n.id)?s.push(n):i.push(n);const n=(t,s)=>e.indexOf(t.id)-e.indexOf(s.id);s.sort(n),this.sortedTags=[...s,...i]}catch(t){(0,k.x2)((0,r.Iu)("systemtags","Failed to load tags"))}},watch:{fileId:{immediate:!0,async handler(){this.loadingTags=!0;try{this.selectedTags=await(async e=>{const s="/systemtags-relations/files/"+this.fileId;try{const{data:t}=await M.getDirectoryContents(s,{data:q,details:!0,glob:"/systemtags-relations/files/*/*"});return L(t)}catch(e){throw U.error(t("systemtags","Failed to load tags for file"),{error:e}),new Error(t("systemtags","Failed to load tags for file"))}})(),this.$emit("has-tags",this.selectedTags.length>0)}catch(t){(0,k.x2)((0,r.Iu)("systemtags","Failed to load selected tags"))}this.loadingTags=!1}}},methods:{t:r.Iu,createOption(t){for(const e of this.sortedTags){const{id:s,displayName:i,...n}=e;if(i===t&&Object.entries(n).every((t=>{let[e,s]=t;return P[e]===s})))return e}return{...P,displayName:t}},handleInput(t){this.selectedTags=t.filter((t=>Boolean(t.id)))},async handleSelect(t){const e=t[t.length-1];if(!e.id)return;const s=e;this.loading=!0;try{await V(s,this.fileId);const t=(t,e)=>t.id===s.id?-1:e.id===s.id?1:0;this.sortedTags.sort(t)}catch(t){(0,k.x2)((0,r.Iu)("systemtags","Failed to select tag"))}this.loading=!1},async handleCreate(t){this.loading=!0;try{const e=await(async(t,e)=>{const s=$(t),i=await(async t=>{const e=$(t);try{const{headers:t}=await M.customRequest("/systemtags",{method:"POST",data:e}),s=t.get("content-location");if(s)return(t=>{const e=t.indexOf("?");e>0&&(t=t.substring(0,e));const s=t.split("/");let i;do{i=s[s.length-1],s.pop()}while(!i&&s.length>0);return Number(i)})(s);throw U.error((0,r.Iu)("systemtags",'Missing "Content-Location" header')),new Error((0,r.Iu)("systemtags",'Missing "Content-Location" header'))}catch(t){throw U.error((0,r.Iu)("systemtags","Failed to create tag"),{error:t}),new Error((0,r.Iu)("systemtags","Failed to create tag"))}})(s),n={...s,id:i};return await V(n,e),n.id})(t,this.fileId),s={...t,id:e};this.sortedTags.unshift(s),this.selectedTags.push(s)}catch(t){(0,k.x2)((0,r.Iu)("systemtags","Failed to create tag"))}this.loading=!1},async handleDeselect(e){this.loading=!0;try{await(async(e,s)=>{const i="/systemtags-relations/files/"+this.fileId+"/"+e.id;try{await M.deleteFile(i)}catch(e){throw U.error(t("systemtags","Failed to delete tag for file"),{error:e}),new Error(t("systemtags","Failed to delete tag for file"))}})(e)}catch(t){(0,k.x2)((0,r.Iu)("systemtags","Failed to delete tag"))}this.loading=!1}}});var H=i(93379),G=i.n(H),W=i(7795),K=i.n(W),X=i(90569),Y=i.n(X),J=i(3565),Q=i.n(J),tt=i(19216),et=i.n(tt),st=i(44589),it=i.n(st),nt=i(32583),rt={};rt.styleTagTransform=it(),rt.setAttributes=Q(),rt.insert=Y().bind(null,"head"),rt.domAPI=K(),rt.insertStyleElement=et(),G()(nt.Z,rt),nt.Z&&nt.Z.locals&&nt.Z.locals;const ot=(0,v.Z)(Z,(function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"system-tags"},[t.loadingTags?e("NcLoadingIcon",{attrs:{name:t.t("systemtags","Loading collaborative tags …"),size:32}}):[e("label",{attrs:{for:"system-tags-input"}},[t._v(t._s(t.t("systemtags","Search or create collaborative tags")))]),t._v(" "),e("NcSelectTags",{staticClass:"system-tags__select",attrs:{"input-id":"system-tags-input",placeholder:t.t("systemtags","Collaborative tags …"),options:t.sortedTags,value:t.selectedTags,"create-option":t.createOption,taggable:!0,passthru:!0,"fetch-tags":!1,loading:t.loading},on:{input:t.handleInput,"option:selected":t.handleSelect,"option:created":t.handleCreate,"option:deselected":t.handleDeselect},scopedSlots:t._u([{key:"no-options",fn:function(){return[t._v("\n\t\t\t\t"+t._s(t.t("systemtags","No tags to select, type to create a new tag"))+"\n\t\t\t")]},proxy:!0}])})]],2)}),[],!1,null,"3ff8ae0b",null).exports;var at=i(25108);const lt={name:"Sidebar",components:{LegacyView:C,NcActionButton:E.Z,NcAppSidebar:_.Z,NcEmptyContent:N.Z,SidebarTab:I,SystemTags:ot,Star:w,StarOutline:x},data:()=>({Sidebar:OCA.Files.Sidebar.state,showTags:!1,showTagsDefault:!0,error:null,loading:!0,fileInfo:null,starLoading:!1,isFullScreen:!1,hasLowHeight:!1}),computed:{file(){return this.Sidebar.file},tabs(){return this.Sidebar.tabs},views(){return this.Sidebar.views},davPath(){const t=OC.getCurrentUser().uid;return OC.linkToRemote(`dav/files/${t}${(0,a.Ec)(this.file)}`)},activeTab(){return this.Sidebar.activeTab},subtitle(){return`${this.fileInfo.isFavourited?"★ ":""} ${this.size}, ${this.time}`},time(){return OC.Util.relativeModifiedDate(this.fileInfo.mtime)},fullTime(){return g()(this.fileInfo.mtime).format("LLL")},size(){return OC.Util.humanFileSize(this.fileInfo.size)},background(){return this.getPreviewIfAny(this.fileInfo)},appSidebar(){return this.fileInfo?{"data-mimetype":this.fileInfo.mimetype,"star-loading":this.starLoading,active:this.activeTab,background:this.background,class:{"app-sidebar--has-preview":this.fileInfo.hasPreview&&!this.isFullScreen,"app-sidebar--full":this.isFullScreen},compact:this.hasLowHeight||!this.fileInfo.hasPreview||this.isFullScreen,loading:this.loading,subname:this.subtitle,subtitle:this.fullTime,name:this.fileInfo.name,title:this.fileInfo.name}:this.error?{key:"error",subname:"",name:"",class:{"app-sidebar--full":this.isFullScreen}}:{loading:this.loading,subname:"",name:"",class:{"app-sidebar--full":this.isFullScreen}}},defaultAction(){return this.fileInfo&&OCA.Files&&OCA.Files.App&&OCA.Files.App.fileList&&OCA.Files.App.fileList.fileActions&&OCA.Files.App.fileList.fileActions.getDefaultFileAction&&OCA.Files.App.fileList.fileActions.getDefaultFileAction(this.fileInfo.mimetype,this.fileInfo.type,OC.PERMISSION_READ)},defaultActionListener(){return this.defaultAction?"figure-click":null},isSystemTagsEnabled:()=>!0===(0,d.getCapabilities)()?.systemtags?.enabled},created(){window.addEventListener("resize",this.handleWindowResize),this.handleWindowResize()},beforeDestroy(){window.removeEventListener("resize",this.handleWindowResize)},methods:{canDisplay(t){return t.enabled(this.fileInfo)},resetData(){this.error=null,this.fileInfo=null,this.$nextTick((()=>{this.$refs.tabs&&this.$refs.tabs.updateTabs()}))},getPreviewIfAny(t){return t.hasPreview&&!this.isFullScreen?OC.generateUrl(`/core/preview?fileId=${t.id}&x=${screen.width}&y=${screen.height}&a=true`):this.getIconUrl(t)},getIconUrl(t){const e=t.mimetype||"application/octet-stream";return"httpd/unix-directory"===e?"shared"===t.mountType||"shared-root"===t.mountType?OC.MimeType.getIconUrl("dir-shared"):"external-root"===t.mountType?OC.MimeType.getIconUrl("dir-external"):void 0!==t.mountType&&""!==t.mountType?OC.MimeType.getIconUrl("dir-"+t.mountType):t.shareTypes&&(t.shareTypes.indexOf(u.D.SHARE_TYPE_LINK)>-1||t.shareTypes.indexOf(u.D.SHARE_TYPE_EMAIL)>-1)?OC.MimeType.getIconUrl("dir-public"):t.shareTypes&&t.shareTypes.length>0?OC.MimeType.getIconUrl("dir-shared"):OC.MimeType.getIconUrl("dir"):OC.MimeType.getIconUrl(e)},setActiveTab(t){OCA.Files.Sidebar.setActiveTab(t),this.tabs.forEach((e=>{try{e.setIsActive(t===e.id)}catch(t){logger.error("Error while setting tab active state",{error:t,id:e.id,tab:e})}}))},async toggleStarred(e){try{this.starLoading=!0,await(0,f.Z)({method:"PROPPATCH",url:this.davPath,data:`<?xml version="1.0"?>\n\t\t\t\t\t\t<d:propertyupdate xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">\n\t\t\t\t\t\t${e?"<d:set>":"<d:remove>"}\n\t\t\t\t\t\t\t<d:prop>\n\t\t\t\t\t\t\t\t<oc:favorite>1</oc:favorite>\n\t\t\t\t\t\t\t</d:prop>\n\t\t\t\t\t\t${e?"</d:set>":"</d:remove>"}\n\t\t\t\t\t\t</d:propertyupdate>`});const t="dir"===this.fileInfo.type,s=t?l.gt:l.$B;(0,o.j8)(e?"files:favorites:added":"files:favorites:removed",new s({fileid:this.fileInfo.id,source:this.davPath,root:`/files/${(0,c.ts)().uid}`,mime:t?void 0:this.fileInfo.mimetype}))}catch(e){OC.Notification.showTemporary(t("files","Unable to change the favourite state of the file")),at.error("Unable to change favourite state",e)}this.starLoading=!1},onDefaultAction(){this.defaultAction&&this.defaultAction.action(this.fileInfo.name,{fileInfo:this.fileInfo,dir:this.fileInfo.dir,fileList:OCA.Files.App.fileList,$file:p()("body")})},toggleTags(){this.showTagsDefault=this.showTags=!this.showTags},async open(e){if(!e||""===e.trim())throw new Error(`Invalid path '${e}'`);this.Sidebar.file=e,this.error=null,this.loading=!0;try{this.fileInfo=await async function(t){const e=await(0,f.Z)({method:"PROPFIND",url:t,data:(0,l.h7)()}),s=OC.Files.getClient()._client.parseMultiStatus(e.data),i=OC.Files.getClient()._parseFileInfo(s[0]);return i.get=t=>i[t],i.isDirectory=()=>"httpd/unix-directory"===i.mimetype,i}(this.davPath),this.fileInfo.dir=this.file.split("/").slice(0,-1).join("/"),this.views.forEach((t=>{t.setFileInfo(this.fileInfo)})),this.$nextTick((()=>{this.$refs.tabs&&this.$refs.tabs.updateTabs(),this.setActiveTab(this.Sidebar.activeTab||this.tabs[0].id)}))}catch(e){throw this.error=t("files","Error while loading the file data"),at.error("Error while loading the file data",e),new Error(e)}finally{this.loading=!1}},close(){this.Sidebar.file="",this.showTags=!1,this.resetData()},setFullScreenMode(t){this.isFullScreen=t,t?document.querySelector("#content")?.classList.add("with-sidebar--full")||document.querySelector("#content-vue")?.classList.add("with-sidebar--full"):document.querySelector("#content")?.classList.remove("with-sidebar--full")||document.querySelector("#content-vue")?.classList.remove("with-sidebar--full")},setShowTagsDefault(t){this.showTagsDefault=t},handleOpening(){(0,o.j8)("files:sidebar:opening")},handleOpened(){(0,o.j8)("files:sidebar:opened")},handleClosing(){(0,o.j8)("files:sidebar:closing")},handleClosed(){(0,o.j8)("files:sidebar:closed")},handleWindowResize(){this.hasLowHeight=document.documentElement.clientHeight<1024}}};var dt=i(12060),ct={};ct.styleTagTransform=it(),ct.setAttributes=Q(),ct.insert=Y().bind(null,"head"),ct.domAPI=K(),ct.insertStyleElement=et(),G()(dt.Z,ct),dt.Z&&dt.Z.locals&&dt.Z.locals;const ut=(0,v.Z)(lt,(function(){var t=this,e=t._self._c;return t.file?e("NcAppSidebar",t._b({ref:"sidebar",attrs:{"force-menu":!0,tabindex:"0"},on:t._d({close:t.close,"update:active":t.setActiveTab,opening:t.handleOpening,opened:t.handleOpened,closing:t.handleClosing,closed:t.handleClosed},[t.defaultActionListener,function(e){return e.stopPropagation(),e.preventDefault(),t.onDefaultAction.apply(null,arguments)}]),scopedSlots:t._u([t.fileInfo?{key:"description",fn:function(){return[e("div",{staticClass:"sidebar__description"},[t.isSystemTagsEnabled&&t.showTagsDefault?e("SystemTags",{directives:[{name:"show",rawName:"v-show",value:t.showTags,expression:"showTags"}],attrs:{"file-id":t.fileInfo.id},on:{"has-tags":e=>t.showTags=e}}):t._e(),t._v(" "),t._l(t.views,(function(s){return e("LegacyView",{key:s.cid,attrs:{component:s,"file-info":t.fileInfo}})}))],2)]},proxy:!0}:null,t.fileInfo?{key:"secondary-actions",fn:function(){return[e("NcActionButton",{attrs:{"close-after-click":!0},on:{click:function(e){return t.toggleStarred(!t.fileInfo.isFavourited)}},scopedSlots:t._u([t.fileInfo.isFavourited?{key:"icon",fn:function(){return[e("StarOutline",{attrs:{size:20}})]},proxy:!0}:{key:"icon",fn:function(){return[e("Star",{attrs:{size:20}})]},proxy:!0}],null,!0)},[t._v("\n\t\t\t"+t._s(t.fileInfo.isFavourited?t.t("files","Remove from favorites"):t.t("files","Add to favorites"))+"\n\t\t")]),t._v(" "),t.isSystemTagsEnabled?e("NcActionButton",{attrs:{"close-after-click":!0,icon:"icon-tag"},on:{click:t.toggleTags}},[t._v("\n\t\t\t"+t._s(t.t("files","Tags"))+"\n\t\t")]):t._e()]},proxy:!0}:null],null,!0)},"NcAppSidebar",t.appSidebar,!1),[t._v(" "),t._v(" "),t.error?e("NcEmptyContent",{attrs:{icon:"icon-error"}},[t._v("\n\t\t"+t._s(t.error)+"\n\t")]):t.fileInfo?t._l(t.tabs,(function(s){return[s.enabled(t.fileInfo)?e("SidebarTab",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}],key:s.id,attrs:{id:s.id,name:s.name,icon:s.icon,"on-mount":s.mount,"on-update":s.update,"on-destroy":s.destroy,"on-scroll-bottom-reached":s.scrollBottomReached,"file-info":t.fileInfo},scopedSlots:t._u([void 0!==s.iconSvg?{key:"icon",fn:function(){return[e("span",{staticClass:"svg-icon",domProps:{innerHTML:t._s(s.iconSvg)}})]},proxy:!0}:null],null,!0)}):t._e()]})):t._e()],2):t._e()}),[],!1,null,"f1de5f1a",null).exports;var ht=i(25108);var pt=i(48764),ft=i(5119),mt=i.n(ft);function gt(t,e,s){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}n.default.prototype.t=r.Iu,window.OCA.Files||(window.OCA.Files={}),Object.assign(window.OCA.Files,{Sidebar:new class{constructor(){var t,e,s;t=this,s=void 0,(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var i=s.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e="_state"))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,this._state={},this._state.tabs=[],this._state.views=[],this._state.file="",this._state.activeTab="",ht.debug("OCA.Files.Sidebar initialized")}get state(){return this._state}registerTab(t){return this._state.tabs.findIndex((e=>e.id===t.id))>-1?(ht.error(`An tab with the same id ${t.id} already exists`,t),!1):(this._state.tabs.push(t),!0)}registerSecondaryView(t){return this._state.views.findIndex((e=>e.id===t.id))>-1?(ht.error("A similar view already exists",t),!1):(this._state.views.push(t),!0)}get file(){return this._state.file}setActiveTab(t){this._state.activeTab=t}}}),Object.assign(window.OCA.Files.Sidebar,{Tab:class{constructor(){let{id:t,name:e,icon:s,iconSvg:i,mount:n,setIsActive:r,update:o,destroy:a,enabled:l,scrollBottomReached:d}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(gt(this,"_id",void 0),gt(this,"_name",void 0),gt(this,"_icon",void 0),gt(this,"_iconSvgSanitized",void 0),gt(this,"_mount",void 0),gt(this,"_setIsActive",void 0),gt(this,"_update",void 0),gt(this,"_destroy",void 0),gt(this,"_enabled",void 0),gt(this,"_scrollBottomReached",void 0),void 0===l&&(l=()=>!0),void 0===d&&(d=()=>{}),"string"!=typeof t||""===t.trim())throw new Error("The id argument is not a valid string");if("string"!=typeof e||""===e.trim())throw new Error("The name argument is not a valid string");if(("string"!=typeof s||""===s.trim())&&"string"!=typeof i)throw new Error("Missing valid string for icon or iconSvg argument");if("function"!=typeof n)throw new Error("The mount argument should be a function");if(void 0!==r&&"function"!=typeof r)throw new Error("The setIsActive argument should be a function");if("function"!=typeof o)throw new Error("The update argument should be a function");if("function"!=typeof a)throw new Error("The destroy argument should be a function");if("function"!=typeof l)throw new Error("The enabled argument should be a function");if("function"!=typeof d)throw new Error("The scrollBottomReached argument should be a function");this._id=t,this._name=e,this._icon=s,this._mount=n,this._setIsActive=r,this._update=o,this._destroy=a,this._enabled=l,this._scrollBottomReached=d,"string"==typeof i&&(async t=>{if(!t)throw new Error("Not an svg");let e="";if(e=pt.Buffer.isBuffer(t)||t instanceof File?await(t=>new Promise((e=>{if(void 0!==t.size){const s=new FileReader;s.onload=()=>{e(s.result)},s.readAsText(t)}else e(t.toString("utf-8"))})))(t):t,!mt()(e))throw new Error("Not an svg");const s=document.createElement("div");s.innerHTML=e;const i=s.firstElementChild,n=!!Array.from(i.attributes).map((({name:t})=>t)).find((t=>t.startsWith("on")));return 0!==i.getElementsByTagName("script").length||n?null:t})(i).then((t=>{this._iconSvgSanitized=t}))}get id(){return this._id}get name(){return this._name}get icon(){return this._icon}get iconSvg(){return this._iconSvgSanitized}get mount(){return this._mount}get setIsActive(){return this._setIsActive||(()=>{})}get update(){return this._update}get destroy(){return this._destroy}get enabled(){return this._enabled}get scrollBottomReached(){return this._scrollBottomReached}}}),window.addEventListener("DOMContentLoaded",(function(){const t=document.querySelector("body > .content")||document.querySelector("body > #content");if(t&&!document.getElementById("app-sidebar")){const e=document.createElement("div");e.id="app-sidebar",t.appendChild(e)}const e=new(n.default.extend(ut))({name:"SidebarRoot"});e.$mount("#app-sidebar"),window.OCA.Files.Sidebar.open=e.open,window.OCA.Files.Sidebar.close=e.close,window.OCA.Files.Sidebar.setFullScreenMode=e.setFullScreenMode,window.OCA.Files.Sidebar.setShowTagsDefault=e.setShowTagsDefault}))},12060:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});var i=s(87537),n=s.n(i),r=s(23645),o=s.n(r)()(n());o.push([t.id,'.app-sidebar--has-preview[data-v-f1de5f1a] .app-sidebar-header__figure{background-size:cover}.app-sidebar--has-preview[data-v-f1de5f1a][data-mimetype="text/plain"] .app-sidebar-header__figure,.app-sidebar--has-preview[data-v-f1de5f1a][data-mimetype="text/markdown"] .app-sidebar-header__figure{background-size:contain}.app-sidebar--full[data-v-f1de5f1a]{position:fixed !important;z-index:2025 !important;top:0 !important;height:100% !important}.app-sidebar[data-v-f1de5f1a] .app-sidebar-header__description{margin:0 16px 4px 16px !important}.app-sidebar .svg-icon[data-v-f1de5f1a] svg{width:20px;height:20px;fill:currentColor}.sidebar__description[data-v-f1de5f1a]{display:flex;flex-direction:column;width:100%;gap:8px 0}',"",{version:3,sources:["webpack://./apps/files/src/views/Sidebar.vue"],names:[],mappings:"AAGE,uEACC,qBAAA,CAKA,yMACC,uBAAA,CAKH,oCACC,yBAAA,CACA,uBAAA,CACA,gBAAA,CACA,sBAAA,CAIA,+DACC,iCAAA,CAKD,4CACC,UAAA,CACA,WAAA,CACA,iBAAA,CAKH,uCACC,YAAA,CACA,qBAAA,CACA,UAAA,CACA,SAAA",sourcesContent:['\n.app-sidebar {\n\t&--has-preview:deep {\n\t\t.app-sidebar-header__figure {\n\t\t\tbackground-size: cover;\n\t\t}\n\n\t\t&[data-mimetype="text/plain"],\n\t\t&[data-mimetype="text/markdown"] {\n\t\t\t.app-sidebar-header__figure {\n\t\t\t\tbackground-size: contain;\n\t\t\t}\n\t\t}\n\t}\n\n\t&--full {\n\t\tposition: fixed !important;\n\t\tz-index: 2025 !important;\n\t\ttop: 0 !important;\n\t\theight: 100% !important;\n\t}\n\n\t:deep {\n\t\t.app-sidebar-header__description {\n\t\t\tmargin: 0 16px 4px 16px !important;\n\t\t}\n\t}\n\n\t.svg-icon {\n\t\t::v-deep svg {\n\t\t\twidth: 20px;\n\t\t\theight: 20px;\n\t\t\tfill: currentColor;\n\t\t}\n\t}\n}\n\n.sidebar__description {\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\tgap: 8px 0;\n}\n'],sourceRoot:""}]);const a=o},32583:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});var i=s(87537),n=s.n(i),r=s(23645),o=s.n(r)()(n());o.push([t.id,".system-tags[data-v-3ff8ae0b]{display:flex;flex-direction:column}.system-tags label[for=system-tags-input][data-v-3ff8ae0b]{margin-bottom:2px}.system-tags__select[data-v-3ff8ae0b]{width:100%}.system-tags__select[data-v-3ff8ae0b] .vs__deselect{padding:0}","",{version:3,sources:["webpack://./apps/systemtags/src/components/SystemTags.vue"],names:[],mappings:"AACA,8BACC,YAAA,CACA,qBAAA,CAEA,2DACC,iBAAA,CAGD,sCACC,UAAA,CAEC,oDACC,SAAA",sourcesContent:['\n.system-tags {\n\tdisplay: flex;\n\tflex-direction: column;\n\n\tlabel[for="system-tags-input"] {\n\t\tmargin-bottom: 2px;\n\t}\n\n\t&__select {\n\t\twidth: 100%;\n\t\t:deep {\n\t\t\t.vs__deselect {\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const a=o},16932:(t,e,s)=>{"use strict";const i=s(78501),n=s(58844),r=s(41192);t.exports={XMLParser:n,XMLValidator:i,XMLBuilder:r}},46700:(t,e,s)=>{var i={"./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 n(t){var e=r(t);return s(e)}function r(t){if(!s.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}n.keys=function(){return Object.keys(i)},n.resolve=r,t.exports=n,n.id=46700},5656:(t,e,s)=>{"use strict";s.d(e,{$B:()=>N,RL:()=>F,Tv:()=>A,_o:()=>C,gt:()=>T,h7:()=>v,pC:()=>O,rp:()=>I,sS:()=>p,tB:()=>w});var i,n=s(77958),r=s(17499),o=s(31352),a=s(62520),l=s(65358),d=s(79753),c=s(14596);null===(i=(0,n.ts)())?(0,r.IY)().setApp("files").build():(0,r.IY)().setApp("files").setUid(i.uid).build();const u=["B","KB","MB","GB","TB","PB"],h=["B","KiB","MiB","GiB","TiB","PiB"];function p(t,e=!1,s=!1,i=!1){s=s&&!i,"string"==typeof t&&(t=Number(t));let n=t>0?Math.floor(Math.log(t)/Math.log(i?1e3:1024)):0;n=Math.min((s?h.length:u.length)-1,n);const r=s?h[n]:u[n];let a=(t/Math.pow(i?1e3:1024,n)).toFixed(1);return!0===e&&0===n?("0.0"!==a?"< 1 ":"0 ")+(s?h[1]:u[1]):(a=n<2?parseFloat(a).toFixed(0):parseFloat(a).toLocaleString((0,o.aj)()),a+" "+r)}var f=(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",t))(f||{});const m=["d:getcontentlength","d:getcontenttype","d:getetag","d:getlastmodified","d:quota-available-bytes","d:resourcetype","nc:has-preview","nc:is-encrypted","nc:mount-type","nc:share-attributes","oc:comments-unread","oc:favorite","oc:fileid","oc:owner-display-name","oc:owner-id","oc:permissions","oc:share-types","oc:size","ocs:share-permissions"],g={d:"DAV:",nc:"http://nextcloud.org/ns",oc:"http://owncloud.org/ns",ocs:"http://open-collaboration-services.org/ns"},b=function(){return typeof window._nc_dav_properties>"u"&&(window._nc_dav_properties=[...m]),window._nc_dav_properties.map((t=>`<${t} />`)).join(" ")},y=function(){return typeof window._nc_dav_namespaces>"u"&&(window._nc_dav_namespaces={...g}),Object.keys(window._nc_dav_namespaces).map((t=>`xmlns:${t}="${window._nc_dav_namespaces?.[t]}"`)).join(" ")},v=function(){return`<?xml version="1.0"?>\n\t\t<d:propfind ${y()}>\n\t\t\t<d:prop>\n\t\t\t\t${b()}\n\t\t\t</d:prop>\n\t\t</d:propfind>`},w=function(t){return`<?xml version="1.0" encoding="UTF-8"?>\n<d:searchrequest ${y()}\n\txmlns:ns="https://github.com/icewind1991/SearchDAV/ns">\n\t<d:basicsearch>\n\t\t<d:select>\n\t\t\t<d:prop>\n\t\t\t\t${b()}\n\t\t\t</d:prop>\n\t\t</d:select>\n\t\t<d:from>\n\t\t\t<d:scope>\n\t\t\t\t<d:href>/files/${(0,n.ts)()?.uid}/</d:href>\n\t\t\t\t<d:depth>infinity</d:depth>\n\t\t\t</d:scope>\n\t\t</d:from>\n\t\t<d:where>\n\t\t\t<d:and>\n\t\t\t\t<d:or>\n\t\t\t\t\t<d:not>\n\t\t\t\t\t\t<d:eq>\n\t\t\t\t\t\t\t<d:prop>\n\t\t\t\t\t\t\t\t<d:getcontenttype/>\n\t\t\t\t\t\t\t</d:prop>\n\t\t\t\t\t\t\t<d:literal>httpd/unix-directory</d:literal>\n\t\t\t\t\t\t</d:eq>\n\t\t\t\t\t</d:not>\n\t\t\t\t\t<d:eq>\n\t\t\t\t\t\t<d:prop>\n\t\t\t\t\t\t\t<oc:size/>\n\t\t\t\t\t\t</d:prop>\n\t\t\t\t\t\t<d:literal>0</d:literal>\n\t\t\t\t\t</d:eq>\n\t\t\t\t</d:or>\n\t\t\t\t<d:gt>\n\t\t\t\t\t<d:prop>\n\t\t\t\t\t\t<d:getlastmodified/>\n\t\t\t\t\t</d:prop>\n\t\t\t\t\t<d:literal>${t}</d:literal>\n\t\t\t\t</d:gt>\n\t\t\t</d:and>\n\t\t</d:where>\n\t\t<d:orderby>\n\t\t\t<d:order>\n\t\t\t\t<d:prop>\n\t\t\t\t\t<d:getlastmodified/>\n\t\t\t\t</d:prop>\n\t\t\t\t<d:descending/>\n\t\t\t</d:order>\n\t\t</d:orderby>\n\t\t<d:limit>\n\t\t\t<d:nresults>100</d:nresults>\n\t\t\t<ns:firstresult>0</ns:firstresult>\n\t\t</d:limit>\n\t</d:basicsearch>\n</d:searchrequest>`};var A=(t=>(t.Folder="folder",t.File="file",t))(A||{});const j=function(t,e){return null!==t.match(e)},x=(t,e)=>{if(t.id&&"number"!=typeof t.id)throw new Error("Invalid id type of value");if(!t.source)throw new Error("Missing mandatory source");try{new URL(t.source)}catch{throw new Error("Invalid source format, source must be a valid URL")}if(!t.source.startsWith("http"))throw new Error("Invalid source format, only http(s) is supported");if(t.mtime&&!(t.mtime instanceof Date))throw new Error("Invalid mtime type");if(t.crtime&&!(t.crtime instanceof Date))throw new Error("Invalid crtime type");if(!t.mime||"string"!=typeof t.mime||!t.mime.match(/^[-\w.]+\/[-+\w.]+$/gi))throw new Error("Missing or invalid mandatory mime");if("size"in t&&"number"!=typeof t.size&&void 0!==t.size)throw new Error("Invalid size type");if("permissions"in t&&void 0!==t.permissions&&!("number"==typeof t.permissions&&t.permissions>=f.NONE&&t.permissions<=f.ALL))throw new Error("Invalid permissions");if(t.owner&&null!==t.owner&&"string"!=typeof t.owner)throw new Error("Invalid owner type");if(t.attributes&&"object"!=typeof t.attributes)throw new Error("Invalid attributes type");if(t.root&&"string"!=typeof t.root)throw new Error("Invalid root type");if(t.root&&!t.root.startsWith("/"))throw new Error("Root must start with a leading slash");if(t.root&&!t.source.includes(t.root))throw new Error("Root must be part of the source");if(t.root&&j(t.source,e)){const s=t.source.match(e)[0];if(!t.source.includes((0,a.join)(s,t.root)))throw new Error("The root must be relative to the service. e.g /files/emma")}if(t.status&&!Object.values(_).includes(t.status))throw new Error("Status must be a valid NodeStatus")};var _=(t=>(t.NEW="new",t.FAILED="failed",t.LOADING="loading",t.LOCKED="locked",t))(_||{});class E{_data;_attributes;_knownDavService=/(remote|public)\.php\/(web)?dav/i;constructor(t,e){x(t,e||this._knownDavService),this._data=t;const s={set:(t,e,s)=>(this.updateMtime(),Reflect.set(t,e,s)),deleteProperty:(t,e)=>(this.updateMtime(),Reflect.deleteProperty(t,e))};this._attributes=new Proxy(t.attributes||{},s),delete this._data.attributes,e&&(this._knownDavService=e)}get source(){return this._data.source.replace(/\/$/i,"")}get encodedSource(){const{origin:t}=new URL(this.source);return t+(0,l.Ec)(this.source.slice(t.length))}get basename(){return(0,a.basename)(this.source)}get extension(){return(0,a.extname)(this.source)}get dirname(){if(this.root){let t=this.source;this.isDavRessource&&(t=t.split(this._knownDavService).pop());const e=t.indexOf(this.root),s=this.root.replace(/\/$/,"");return(0,a.dirname)(t.slice(e+s.length)||"/")}const t=new URL(this.source);return(0,a.dirname)(t.pathname)}get mime(){return this._data.mime}get mtime(){return this._data.mtime}get crtime(){return this._data.crtime}get size(){return this._data.size}get attributes(){return this._attributes}get permissions(){return null!==this.owner||this.isDavRessource?void 0!==this._data.permissions?this._data.permissions:f.NONE:f.READ}get owner(){return this.isDavRessource?this._data.owner:null}get isDavRessource(){return j(this.source,this._knownDavService)}get root(){return this._data.root?this._data.root.replace(/^(.+)\/$/,"$1"):this.isDavRessource&&(0,a.dirname)(this.source).split(this._knownDavService).pop()||null}get path(){if(this.root){let t=this.source;this.isDavRessource&&(t=t.split(this._knownDavService).pop());const e=t.indexOf(this.root),s=this.root.replace(/\/$/,"");return t.slice(e+s.length)||"/"}return(this.dirname+"/"+this.basename).replace(/\/\//g,"/")}get fileid(){return this._data?.id||this.attributes?.fileid}get status(){return this._data?.status}set status(t){this._data.status=t}move(t){x({...this._data,source:t},this._knownDavService),this._data.source=t,this.updateMtime()}rename(t){if(t.includes("/"))throw new Error("Invalid basename");this.move((0,a.dirname)(this.source)+"/"+t)}updateMtime(){this._data.mtime&&(this._data.mtime=new Date)}}class N extends E{get type(){return A.File}}class T extends E{constructor(t){super({...t,mime:"httpd/unix-directory"})}get type(){return A.Folder}get extension(){return null}get mime(){return"httpd/unix-directory"}}const C=`/files/${(0,n.ts)()?.uid}`,S=(0,d.generateRemoteUrl)("dav"),I=function(t=S,e={}){const s=(0,c.eI)(t,{headers:e});function i(t){s.setHeaders({...e,"X-Requested-With":"XMLHttpRequest",requesttoken:t??""})}return(0,n._S)(i),i((0,n.IH)()),(0,c.lD)().patch("fetch",((t,e)=>{const s=e.headers;return s?.method&&(e.method=s.method,delete s.method),fetch(t,e)})),s},O=async(t,e="/",s=C)=>(await t.getDirectoryContents(`${s}${e}`,{details:!0,data:`<?xml version="1.0"?>\n\t\t<oc:filter-files ${y()}>\n\t\t\t<d:prop>\n\t\t\t\t${b()}\n\t\t\t</d:prop>\n\t\t\t<oc:filter-rules>\n\t\t\t\t<oc:favorite>1</oc:favorite>\n\t\t\t</oc:filter-rules>\n\t\t</oc:filter-files>`,headers:{method:"REPORT"},includeSelf:!0})).data.filter((t=>t.filename!==e)).map((t=>F(t,s))),F=function(t,e=C,s=S){const i=t.props,r=function(t=""){let e=f.NONE;return t&&((t.includes("C")||t.includes("K"))&&(e|=f.CREATE),t.includes("G")&&(e|=f.READ),(t.includes("W")||t.includes("N")||t.includes("V"))&&(e|=f.UPDATE),t.includes("D")&&(e|=f.DELETE),t.includes("R")&&(e|=f.SHARE)),e}(i?.permissions),o=i?.["owner-id"]||(0,n.ts)()?.uid,a={id:i?.fileid||0,source:`${s}${t.filename}`,mtime:new Date(Date.parse(t.lastmod)),mime:t.mime,size:i?.size||Number.parseInt(i.getcontentlength||"0"),permissions:r,owner:o,root:e,attributes:{...t,...i,hasPreview:i?.["has-preview"]}};return delete a.attributes?.props,"file"===t.type?new N(a):new T(a)};var k={};!function(t){const e=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",s="["+e+"]["+e+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",i=new RegExp("^"+s+"$");t.isExist=function(t){return typeof t<"u"},t.isEmptyObject=function(t){return 0===Object.keys(t).length},t.merge=function(t,e,s){if(e){const i=Object.keys(e),n=i.length;for(let r=0;r<n;r++)t[i[r]]="strict"===s?[e[i[r]]]:e[i[r]]}},t.getValue=function(e){return t.isExist(e)?e:""},t.isName=function(t){const e=i.exec(t);return!(null===e||typeof e>"u")},t.getAllMatches=function(t,e){const s=[];let i=e.exec(t);for(;i;){const n=[];n.startIndex=e.lastIndex-i[0].length;const r=i.length;for(let t=0;t<r;t++)n.push(i[t]);s.push(n),i=e.exec(t)}return s},t.nameRegexp=s}(k);new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");var D={};const P={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,s){return t}};D.buildOptions=function(t){return Object.assign({},P,t)},D.defaultOptions=P,!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,k.nameRegexp),new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");var L={};function $(t,e,s){let i;const n={};for(let r=0;r<t.length;r++){const o=t[r],a=R(o);let l="";if(l=void 0===s?a:s+"."+a,a===e.textNodeName)void 0===i?i=o[a]:i+=""+o[a];else{if(void 0===a)continue;if(o[a]){let t=$(o[a],e,l);const s=B(t,e);o[":@"]?z(t,o[":@"],l,e):1!==Object.keys(t).length||void 0===t[e.textNodeName]||e.alwaysCreateTextNode?0===Object.keys(t).length&&(e.alwaysCreateTextNode?t[e.textNodeName]="":t=""):t=t[e.textNodeName],void 0!==n[a]&&n.hasOwnProperty(a)?(Array.isArray(n[a])||(n[a]=[n[a]]),n[a].push(t)):e.isArray(a,l,s)?n[a]=[t]:n[a]=t}}}return"string"==typeof i?i.length>0&&(n[e.textNodeName]=i):void 0!==i&&(n[e.textNodeName]=i),n}function R(t){const e=Object.keys(t);for(let t=0;t<e.length;t++){const s=e[t];if(":@"!==s)return s}}function z(t,e,s,i){if(e){const n=Object.keys(e),r=n.length;for(let o=0;o<r;o++){const r=n[o];i.isArray(r,s+"."+r,!0,!0)?t[r]=[e[r]]:t[r]=e[r]}}}function B(t,e){const{textNodeName:s}=e,i=Object.keys(t).length;return!(0!==i&&(1!==i||!t[s]&&"boolean"!=typeof t[s]&&0!==t[s]))}L.prettify=function(t,e){return $(t,e)};const{buildOptions:M}=D,{prettify:U}=L;function q(t,e,s,i){let n="",r=!1;for(let o=0;o<t.length;o++){const a=t[o],l=V(a);if(void 0===l)continue;let d="";if(d=0===s.length?l:`${s}.${l}`,l===e.textNodeName){let t=a[l];H(d,e)||(t=e.tagValueProcessor(l,t),t=G(t,e)),r&&(n+=i),n+=t,r=!1;continue}if(l===e.cdataPropName){r&&(n+=i),n+=`<![CDATA[${a[l][0][e.textNodeName]}]]>`,r=!1;continue}if(l===e.commentPropName){n+=i+`\x3c!--${a[l][0][e.textNodeName]}--\x3e`,r=!0;continue}if("?"===l[0]){const t=Z(a[":@"],e),s="?xml"===l?"":i;let o=a[l][0][e.textNodeName];o=0!==o.length?" "+o:"",n+=s+`<${l}${o}${t}?>`,r=!0;continue}let c=i;""!==c&&(c+=e.indentBy);const u=i+`<${l}${Z(a[":@"],e)}`,h=q(a[l],e,d,c);-1!==e.unpairedTags.indexOf(l)?e.suppressUnpairedNode?n+=u+">":n+=u+"/>":h&&0!==h.length||!e.suppressEmptyNode?h&&h.endsWith(">")?n+=u+`>${h}${i}</${l}>`:(n+=u+">",h&&""!==i&&(h.includes("/>")||h.includes("</"))?n+=i+e.indentBy+h+i:n+=h,n+=`</${l}>`):n+=u+"/>",r=!0}return n}function V(t){const e=Object.keys(t);for(let s=0;s<e.length;s++){const i=e[s];if(t.hasOwnProperty(i)&&":@"!==i)return i}}function Z(t,e){let s="";if(t&&!e.ignoreAttributes)for(let i in t){if(!t.hasOwnProperty(i))continue;let n=e.attributeValueProcessor(i,t[i]);n=G(n,e),!0===n&&e.suppressBooleanAttributes?s+=` ${i.substr(e.attributeNamePrefix.length)}`:s+=` ${i.substr(e.attributeNamePrefix.length)}="${n}"`}return s}function H(t,e){let s=(t=t.substr(0,t.length-e.textNodeName.length-1)).substr(t.lastIndexOf(".")+1);for(let i in e.stopNodes)if(e.stopNodes[i]===t||e.stopNodes[i]==="*."+s)return!0;return!1}function G(t,e){if(t&&t.length>0&&e.processEntities)for(let s=0;s<e.entities.length;s++){const i=e.entities[s];t=t.replace(i.regex,i.val)}return t}const W=function(t,e){let s="";return e.format&&e.indentBy.length>0&&(s="\n"),q(t,e,"",s)},K={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function X(t){this.options=Object.assign({},K,t),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Q),this.processTextOrObjNode=Y,this.options.format?(this.indentate=J,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Y(t,e,s){const i=this.j2x(t,s+1);return void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextValNode(t[this.options.textNodeName],e,i.attrStr,s):this.buildObjectNode(i.val,e,i.attrStr,s)}function J(t){return this.options.indentBy.repeat(t)}function Q(t){return!(!t.startsWith(this.options.attributeNamePrefix)||t===this.options.textNodeName)&&t.substr(this.attrPrefixLen)}X.prototype.build=function(t){return this.options.preserveOrder?W(t,this.options):(Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t}),this.j2x(t,0).val)},X.prototype.j2x=function(t,e){let s="",i="";for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n))if(typeof t[n]>"u")this.isAttribute(n)&&(i+="");else if(null===t[n])this.isAttribute(n)?i+="":"?"===n[0]?i+=this.indentate(e)+"<"+n+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+n+"/"+this.tagEndChar;else if(t[n]instanceof Date)i+=this.buildTextValNode(t[n],n,"",e);else if("object"!=typeof t[n]){const r=this.isAttribute(n);if(r)s+=this.buildAttrPairStr(r,""+t[n]);else if(n===this.options.textNodeName){let e=this.options.tagValueProcessor(n,""+t[n]);i+=this.replaceEntitiesValue(e)}else i+=this.buildTextValNode(t[n],n,"",e)}else if(Array.isArray(t[n])){const s=t[n].length;let r="";for(let o=0;o<s;o++){const s=t[n][o];typeof s>"u"||(null===s?"?"===n[0]?i+=this.indentate(e)+"<"+n+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+n+"/"+this.tagEndChar:"object"==typeof s?this.options.oneListGroup?r+=this.j2x(s,e+1).val:r+=this.processTextOrObjNode(s,n,e):r+=this.buildTextValNode(s,n,"",e))}this.options.oneListGroup&&(r=this.buildObjectNode(r,n,"",e)),i+=r}else if(this.options.attributesGroupName&&n===this.options.attributesGroupName){const e=Object.keys(t[n]),i=e.length;for(let r=0;r<i;r++)s+=this.buildAttrPairStr(e[r],""+t[n][e[r]])}else i+=this.processTextOrObjNode(t[n],n,e);return{attrStr:s,val:i}},X.prototype.buildAttrPairStr=function(t,e){return e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&"true"===e?" "+t:" "+t+'="'+e+'"'},X.prototype.buildObjectNode=function(t,e,s,i){if(""===t)return"?"===e[0]?this.indentate(i)+"<"+e+s+"?"+this.tagEndChar:this.indentate(i)+"<"+e+s+this.closeTag(e)+this.tagEndChar;{let n="</"+e+this.tagEndChar,r="";return"?"===e[0]&&(r="?",n=""),!s&&""!==s||-1!==t.indexOf("<")?!1!==this.options.commentPropName&&e===this.options.commentPropName&&0===r.length?this.indentate(i)+`\x3c!--${t}--\x3e`+this.newLine:this.indentate(i)+"<"+e+s+r+this.tagEndChar+t+this.indentate(i)+n:this.indentate(i)+"<"+e+s+r+">"+t+n}},X.prototype.closeTag=function(t){let e="";return-1!==this.options.unpairedTags.indexOf(t)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":`></${t}`,e},X.prototype.buildTextValNode=function(t,e,s,i){if(!1!==this.options.cdataPropName&&e===this.options.cdataPropName)return this.indentate(i)+`<![CDATA[${t}]]>`+this.newLine;if(!1!==this.options.commentPropName&&e===this.options.commentPropName)return this.indentate(i)+`\x3c!--${t}--\x3e`+this.newLine;if("?"===e[0])return this.indentate(i)+"<"+e+s+"?"+this.tagEndChar;{let n=this.options.tagValueProcessor(e,t);return n=this.replaceEntitiesValue(n),""===n?this.indentate(i)+"<"+e+s+this.closeTag(e)+this.tagEndChar:this.indentate(i)+"<"+e+s+">"+n+"</"+e+this.tagEndChar}},X.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){const s=this.options.entities[e];t=t.replace(s.regex,s.val)}return t}}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var s=r[t]={id:t,loaded:!1,exports:{}};return n[t].call(s.exports,s,s.exports,o),s.loaded=!0,s.exports}o.m=n,e=[],o.O=(t,s,i,n)=>{if(!s){var r=1/0;for(c=0;c<e.length;c++){s=e[c][0],i=e[c][1],n=e[c][2];for(var a=!0,l=0;l<s.length;l++)(!1&n||r>=n)&&Object.keys(o.O).every((t=>o.O[t](s[l])))?s.splice(l--,1):(a=!1,n<r&&(r=n));if(a){e.splice(c--,1);var d=i();void 0!==d&&(t=d)}}return t}n=n||0;for(var c=e.length;c>0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[s,i,n]},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var s in e)o.o(e,s)&&!o.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},o.f={},o.e=t=>Promise.all(Object.keys(o.f).reduce(((e,s)=>(o.f[s](t,e),e)),[])),o.u=t=>t+"-"+t+".js?v="+{1697:"17920ffa1ad36f333ac6",5076:"5df17ad2d937c26c5b50"}[t],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),s={},i="nextcloud:",o.l=(t,e,n,r)=>{if(s[t])s[t].push(e);else{var a,l;if(void 0!==n)for(var d=document.getElementsByTagName("script"),c=0;c<d.length;c++){var u=d[c];if(u.getAttribute("src")==t||u.getAttribute("data-webpack")==i+n){a=u;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.setAttribute("data-webpack",i+n),a.src=t),s[t]=[e];var h=(e,i)=>{a.onerror=a.onload=null,clearTimeout(p);var n=s[t];if(delete s[t],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((t=>t(i))),e)return e(i)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=h.bind(null,a.onerror),a.onload=h.bind(null,a.onload),l&&document.head.appendChild(a)}},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=4092,(()=>{var t;o.g.importScripts&&(t=o.g.location+"");var e=o.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var s=e.getElementsByTagName("script");if(s.length)for(var i=s.length-1;i>-1&&!t;)t=s[i--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t})(),(()=>{o.b=document.baseURI||self.location.href;var t={4092:0};o.f.j=(e,s)=>{var i=o.o(t,e)?t[e]:void 0;if(0!==i)if(i)s.push(i[2]);else{var n=new Promise(((s,n)=>i=t[e]=[s,n]));s.push(i[2]=n);var r=o.p+o.u(e),a=new Error;o.l(r,(s=>{if(o.o(t,e)&&(0!==(i=t[e])&&(t[e]=void 0),i)){var n=s&&("load"===s.type?"missing":s.type),r=s&&s.target&&s.target.src;a.message="Loading chunk "+e+" failed.\n("+n+": "+r+")",a.name="ChunkLoadError",a.type=n,a.request=r,i[1](a)}}),"chunk-"+e,e)}},o.O.j=e=>0===t[e];var e=(e,s)=>{var i,n,r=s[0],a=s[1],l=s[2],d=0;if(r.some((e=>0!==t[e]))){for(i in a)o.o(a,i)&&(o.m[i]=a[i]);if(l)var c=l(o)}for(e&&e(s);d<r.length;d++)n=r[d],o.o(t,n)&&t[n]&&t[n][0](),t[n]=0;return o.O(c)},s=self.webpackChunknextcloud=self.webpackChunknextcloud||[];s.forEach(e.bind(null,0)),s.push=e.bind(null,s.push.bind(s))})(),o.nc=void 0;var a=o.O(void 0,[7874],(()=>o(17932)));a=o.O(a)})(); -//# sourceMappingURL=files-sidebar.js.map?v=133eed109e2b43442628
\ No newline at end of file +(()=>{var e,i,r,a={9165:(e,t,i)=>{"use strict";i.d(t,{Brj:()=>o,HzW:()=>p,IyB:()=>r,NZC:()=>a,ZL5:()=>d,dF:()=>u,fEr:()=>s,jUz:()=>c,kHm:()=>l,kOJ:()=>n});var r="M15,14C12.33,14 7,15.33 7,18V20H23V18C23,15.33 17.67,14 15,14M6,10V7H4V10H1V12H4V15H6V12H9V10M15,12A4,4 0 0,0 19,8A4,4 0 0,0 15,4A4,4 0 0,0 11,8A4,4 0 0,0 15,12Z",a="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M16.2,16.2L11,13V7H12.5V12.2L17,14.9L16.2,16.2Z",s="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",n="M1,1V5H2V19H1V23H5V22H19V23H23V19H22V5H23V1H19V2H5V1M5,4H19V5H20V19H19V20H5V19H4V5H5M6,6V14H9V18H18V9H14V6M8,8H12V12H8M14,11H16V16H11V14H14",o="M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z",l="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",c="M17,3A2,2 0 0,1 19,5V15A2,2 0 0,1 17,17H13V19H14A1,1 0 0,1 15,20H22V22H15A1,1 0 0,1 14,23H10A1,1 0 0,1 9,22H2V20H9A1,1 0 0,1 10,19H11V17H7C5.89,17 5,16.1 5,15V5A2,2 0 0,1 7,3H17Z",d="M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",u="M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",p="M5.5,7A1.5,1.5 0 0,1 4,5.5A1.5,1.5 0 0,1 5.5,4A1.5,1.5 0 0,1 7,5.5A1.5,1.5 0 0,1 5.5,7M21.41,11.58L12.41,2.58C12.05,2.22 11.55,2 11,2H4C2.89,2 2,2.89 2,4V11C2,11.55 2.22,12.05 2.59,12.41L11.58,21.41C11.95,21.77 12.45,22 13,22C13.55,22 14.05,21.77 14.41,21.41L21.41,14.41C21.78,14.05 22,13.55 22,13C22,12.44 21.77,11.94 21.41,11.58Z"},10637:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var r=i(71354),a=i.n(r),s=i(76314),n=i.n(s)()(a());n.push([e.id,".system-tags[data-v-5283eb84]{display:flex;flex-direction:column}.system-tags__select[data-v-5283eb84]{width:100%}.system-tags__select[data-v-5283eb84] .vs__deselect{padding:0}","",{version:3,sources:["webpack://./apps/systemtags/src/components/SystemTags.vue"],names:[],mappings:"AACA,8BACC,YAAA,CACA,qBAAA,CAGA,sCACC,UAAA,CAEC,oDACC,SAAA",sourcesContent:["\n.system-tags {\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t// Fix issue with AppSidebar styles overwriting NcSelect styles\n\t&__select {\n\t\twidth: 100%;\n\t\t:deep {\n\t\t\t.vs__deselect {\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const o=n},35810:(e,t,i)=>{"use strict";i.d(t,{Al:()=>o.r,H4:()=>o.c,KT:()=>P,PY:()=>o.b,Q$:()=>o.e,R3:()=>o.n,VL:()=>o.l,ZH:()=>o.q,di:()=>F,lJ:()=>o.d,nF:()=>D,pt:()=>o.F,ur:()=>B,v7:()=>$,vd:()=>o.s});var r,a,s,n,o=i(68896),l=i(380),c=i(83141),d=i(87485),u=(i(43627),i(53334)),p=i(65606),f=i(62045).hp;function h(){if(a)return r;a=1;const e="object"==typeof p&&p.env&&p.env.NODE_DEBUG&&/\bsemver\b/i.test(p.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};return r=e}function m(){if(n)return s;n=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return s={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}var g,E,A,T,I,b,v,y,N,_,C,w,O,S={exports:{}};function L(){if(v)return b;v=1;const e=h(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:i}=m(),{safeRe:r,t:a}=(g||(g=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:a}=m(),s=h(),n=(t=e.exports={}).re=[],o=t.safeRe=[],l=t.src=[],c=t.t={};let d=0;const u="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",a],[u,r]],f=(e,t,i)=>{const r=(e=>{for(const[t,i]of p)e=e.split(`${t}*`).join(`${t}{0,${i}}`).split(`${t}+`).join(`${t}{1,${i}}`);return e})(t),a=d++;s(e,a,t),c[e]=a,l[a]=t,n[a]=new RegExp(t,i?"g":void 0),o[a]=new RegExp(r,i?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${u}*`),f("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${u}+`),f("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),f("FULL",`^${l[c.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),f("LOOSE",`^${l[c.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),f("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`),f("COERCE",`${l[c.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",l[c.COERCEPLAIN]+`(?:${l[c.PRERELEASE]})?(?:${l[c.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",l[c.COERCE],!0),f("COERCERTLFULL",l[c.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(S,S.exports)),S.exports),s=function(){if(A)return E;A=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return E=i=>i?"object"!=typeof i?e:i:t}(),{compareIdentifiers:n}=function(){if(I)return T;I=1;const e=/^[0-9]+$/,t=(t,i)=>{const r=e.test(t),a=e.test(i);return r&&a&&(t=+t,i=+i),t===i?0:r&&!a?-1:a&&!r?1:t<i?-1:1};return T={compareIdentifiers:t,rcompareIdentifiers:(e,i)=>t(i,e)}}();class o{constructor(n,l){if(l=s(l),n instanceof o){if(n.loose===!!l.loose&&n.includePrerelease===!!l.includePrerelease)return n;n=n.version}else if("string"!=typeof n)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof n}".`);if(n.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",n,l),this.options=l,this.loose=!!l.loose,this.includePrerelease=!!l.includePrerelease;const c=n.trim().match(l.loose?r[a.LOOSE]:r[a.FULL]);if(!c)throw new TypeError(`Invalid Version: ${n}`);if(this.raw=n,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=c[5]?c[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(e("SemVer.compare",this.version,this.options,t),!(t instanceof o)){if("string"==typeof t&&t===this.version)return 0;t=new o(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof o||(e=new o(e,this.options)),n(this.major,e.major)||n(this.minor,e.minor)||n(this.patch,e.patch)}comparePre(t){if(t instanceof o||(t=new o(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let i=0;do{const r=this.prerelease[i],a=t.prerelease[i];if(e("prerelease compare",i,r,a),void 0===r&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===r)return-1;if(r!==a)return n(r,a)}while(++i)}compareBuild(t){t instanceof o||(t=new o(t,this.options));let i=0;do{const r=this.build[i],a=t.build[i];if(e("build compare",i,r,a),void 0===r&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===r)return-1;if(r!==a)return n(r,a)}while(++i)}inc(e,t,i){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,i),this.inc("pre",t,i);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,i),this.inc("pre",t,i);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(i)?1:0;if(!t&&!1===i)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===i)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===i&&(r=[t]),0===n(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return b=o}!function(){if(C)return _;C=1;const e=function(){if(N)return y;N=1;const e=L();return y=(t,i,r=!1)=>{if(t instanceof e)return t;try{return new e(t,i)}catch(e){if(!r)return null;throw e}}}();_=(t,i)=>{const r=e(t,i);return r?r.version:null}}(),function(){if(O)return w;O=1;const e=L();w=(t,i)=>new e(t,i).major}(),l.m;var R;R||(R=1,function(e){e.parser=function(e,t){return new r(e,t)},e.SAXParser=r,e.SAXStream=s,e.createStream=function(e,t){return new s(e,t)},e.MAX_BUFFER_LENGTH=65536;var t,i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function r(t,a){if(!(this instanceof r))return new r(t,a);var s=this;!function(e){for(var t=0,r=i.length;t<r;t++)e[i[t]]=""}(s),s.q=s.c="",s.bufferCheckPosition=e.MAX_BUFFER_LENGTH,s.opt=a||{},s.opt.lowercase=s.opt.lowercase||s.opt.lowercasetags,s.looseCase=s.opt.lowercase?"toLowerCase":"toUpperCase",s.tags=[],s.closed=s.closedRoot=s.sawRoot=!1,s.tag=s.error=null,s.strict=!!t,s.noscript=!(!t&&!s.opt.noscript),s.state=_.BEGIN,s.strictEntities=s.opt.strictEntities,s.ENTITIES=s.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),s.attribList=[],s.opt.xmlns&&(s.ns=Object.create(u)),void 0===s.opt.unquotedAttributeValues&&(s.opt.unquotedAttributeValues=!t),s.trackPosition=!1!==s.opt.position,s.trackPosition&&(s.position=s.line=s.column=0),w(s,"onready")}e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(i);return t}),r.prototype={end:function(){D(this)},write:function(t){var r=this;if(this.error)throw this.error;if(r.closed)return R(r,"Cannot write after close. Assign an onready handler.");if(null===t)return D(r);"object"==typeof t&&(t=t.toString());for(var a=0,s="";s=H(t,a++),r.c=s,s;)switch(r.trackPosition&&(r.position++,"\n"===s?(r.line++,r.column=0):r.column++),r.state){case _.BEGIN:if(r.state=_.BEGIN_WHITESPACE,"\ufeff"===s)continue;V(r,s);continue;case _.BEGIN_WHITESPACE:V(r,s);continue;case _.TEXT:if(r.sawRoot&&!r.closedRoot){for(var l=a-1;s&&"<"!==s&&"&"!==s;)(s=H(t,a++))&&r.trackPosition&&(r.position++,"\n"===s?(r.line++,r.column=0):r.column++);r.textNode+=t.substring(l,a-1)}"<"!==s||r.sawRoot&&r.closedRoot&&!r.strict?(E(s)||r.sawRoot&&!r.closedRoot||F(r,"Text data outside of root node."),"&"===s?r.state=_.TEXT_ENTITY:r.textNode+=s):(r.state=_.OPEN_WAKA,r.startTagPosition=r.position);continue;case _.SCRIPT:"<"===s?r.state=_.SCRIPT_ENDING:r.script+=s;continue;case _.SCRIPT_ENDING:"/"===s?r.state=_.CLOSE_TAG:(r.script+="<"+s,r.state=_.SCRIPT);continue;case _.OPEN_WAKA:if("!"===s)r.state=_.SGML_DECL,r.sgmlDecl="";else if(E(s));else if(I(p,s))r.state=_.OPEN_TAG,r.tagName=s;else if("/"===s)r.state=_.CLOSE_TAG,r.tagName="";else if("?"===s)r.state=_.PROC_INST,r.procInstName=r.procInstBody="";else{if(F(r,"Unencoded <"),r.startTagPosition+1<r.position){var c=r.position-r.startTagPosition;s=new Array(c).join(" ")+s}r.textNode+="<"+s,r.state=_.TEXT}continue;case _.SGML_DECL:if(r.sgmlDecl+s==="--"){r.state=_.COMMENT,r.comment="",r.sgmlDecl="";continue}r.doctype&&!0!==r.doctype&&r.sgmlDecl?(r.state=_.DOCTYPE_DTD,r.doctype+="<!"+r.sgmlDecl+s,r.sgmlDecl=""):(r.sgmlDecl+s).toUpperCase()===n?(O(r,"onopencdata"),r.state=_.CDATA,r.sgmlDecl="",r.cdata=""):(r.sgmlDecl+s).toUpperCase()===o?(r.state=_.DOCTYPE,(r.doctype||r.sawRoot)&&F(r,"Inappropriately located doctype declaration"),r.doctype="",r.sgmlDecl=""):">"===s?(O(r,"onsgmldeclaration",r.sgmlDecl),r.sgmlDecl="",r.state=_.TEXT):A(s)?(r.state=_.SGML_DECL_QUOTED,r.sgmlDecl+=s):r.sgmlDecl+=s;continue;case _.SGML_DECL_QUOTED:s===r.q&&(r.state=_.SGML_DECL,r.q=""),r.sgmlDecl+=s;continue;case _.DOCTYPE:">"===s?(r.state=_.TEXT,O(r,"ondoctype",r.doctype),r.doctype=!0):(r.doctype+=s,"["===s?r.state=_.DOCTYPE_DTD:A(s)&&(r.state=_.DOCTYPE_QUOTED,r.q=s));continue;case _.DOCTYPE_QUOTED:r.doctype+=s,s===r.q&&(r.q="",r.state=_.DOCTYPE);continue;case _.DOCTYPE_DTD:"]"===s?(r.doctype+=s,r.state=_.DOCTYPE):"<"===s?(r.state=_.OPEN_WAKA,r.startTagPosition=r.position):A(s)?(r.doctype+=s,r.state=_.DOCTYPE_DTD_QUOTED,r.q=s):r.doctype+=s;continue;case _.DOCTYPE_DTD_QUOTED:r.doctype+=s,s===r.q&&(r.state=_.DOCTYPE_DTD,r.q="");continue;case _.COMMENT:"-"===s?r.state=_.COMMENT_ENDING:r.comment+=s;continue;case _.COMMENT_ENDING:"-"===s?(r.state=_.COMMENT_ENDED,r.comment=L(r.opt,r.comment),r.comment&&O(r,"oncomment",r.comment),r.comment=""):(r.comment+="-"+s,r.state=_.COMMENT);continue;case _.COMMENT_ENDED:">"!==s?(F(r,"Malformed comment"),r.comment+="--"+s,r.state=_.COMMENT):r.doctype&&!0!==r.doctype?r.state=_.DOCTYPE_DTD:r.state=_.TEXT;continue;case _.CDATA:"]"===s?r.state=_.CDATA_ENDING:r.cdata+=s;continue;case _.CDATA_ENDING:"]"===s?r.state=_.CDATA_ENDING_2:(r.cdata+="]"+s,r.state=_.CDATA);continue;case _.CDATA_ENDING_2:">"===s?(r.cdata&&O(r,"oncdata",r.cdata),O(r,"onclosecdata"),r.cdata="",r.state=_.TEXT):"]"===s?r.cdata+="]":(r.cdata+="]]"+s,r.state=_.CDATA);continue;case _.PROC_INST:"?"===s?r.state=_.PROC_INST_ENDING:E(s)?r.state=_.PROC_INST_BODY:r.procInstName+=s;continue;case _.PROC_INST_BODY:if(!r.procInstBody&&E(s))continue;"?"===s?r.state=_.PROC_INST_ENDING:r.procInstBody+=s;continue;case _.PROC_INST_ENDING:">"===s?(O(r,"onprocessinginstruction",{name:r.procInstName,body:r.procInstBody}),r.procInstName=r.procInstBody="",r.state=_.TEXT):(r.procInstBody+="?"+s,r.state=_.PROC_INST_BODY);continue;case _.OPEN_TAG:I(h,s)?r.tagName+=s:(P(r),">"===s?$(r):"/"===s?r.state=_.OPEN_TAG_SLASH:(E(s)||F(r,"Invalid character in tag name"),r.state=_.ATTRIB));continue;case _.OPEN_TAG_SLASH:">"===s?($(r,!0),U(r)):(F(r,"Forward-slash in opening tag not followed by >"),r.state=_.ATTRIB);continue;case _.ATTRIB:if(E(s))continue;">"===s?$(r):"/"===s?r.state=_.OPEN_TAG_SLASH:I(p,s)?(r.attribName=s,r.attribValue="",r.state=_.ATTRIB_NAME):F(r,"Invalid attribute name");continue;case _.ATTRIB_NAME:"="===s?r.state=_.ATTRIB_VALUE:">"===s?(F(r,"Attribute without value"),r.attribValue=r.attribName,M(r),$(r)):E(s)?r.state=_.ATTRIB_NAME_SAW_WHITE:I(h,s)?r.attribName+=s:F(r,"Invalid attribute name");continue;case _.ATTRIB_NAME_SAW_WHITE:if("="===s)r.state=_.ATTRIB_VALUE;else{if(E(s))continue;F(r,"Attribute without value"),r.tag.attributes[r.attribName]="",r.attribValue="",O(r,"onattribute",{name:r.attribName,value:""}),r.attribName="",">"===s?$(r):I(p,s)?(r.attribName=s,r.state=_.ATTRIB_NAME):(F(r,"Invalid attribute name"),r.state=_.ATTRIB)}continue;case _.ATTRIB_VALUE:if(E(s))continue;A(s)?(r.q=s,r.state=_.ATTRIB_VALUE_QUOTED):(r.opt.unquotedAttributeValues||R(r,"Unquoted attribute value"),r.state=_.ATTRIB_VALUE_UNQUOTED,r.attribValue=s);continue;case _.ATTRIB_VALUE_QUOTED:if(s!==r.q){"&"===s?r.state=_.ATTRIB_VALUE_ENTITY_Q:r.attribValue+=s;continue}M(r),r.q="",r.state=_.ATTRIB_VALUE_CLOSED;continue;case _.ATTRIB_VALUE_CLOSED:E(s)?r.state=_.ATTRIB:">"===s?$(r):"/"===s?r.state=_.OPEN_TAG_SLASH:I(p,s)?(F(r,"No whitespace between attributes"),r.attribName=s,r.attribValue="",r.state=_.ATTRIB_NAME):F(r,"Invalid attribute name");continue;case _.ATTRIB_VALUE_UNQUOTED:if(!T(s)){"&"===s?r.state=_.ATTRIB_VALUE_ENTITY_U:r.attribValue+=s;continue}M(r),">"===s?$(r):r.state=_.ATTRIB;continue;case _.CLOSE_TAG:if(r.tagName)">"===s?U(r):I(h,s)?r.tagName+=s:r.script?(r.script+="</"+r.tagName,r.tagName="",r.state=_.SCRIPT):(E(s)||F(r,"Invalid tagname in closing tag"),r.state=_.CLOSE_TAG_SAW_WHITE);else{if(E(s))continue;b(p,s)?r.script?(r.script+="</"+s,r.state=_.SCRIPT):F(r,"Invalid tagname in closing tag."):r.tagName=s}continue;case _.CLOSE_TAG_SAW_WHITE:if(E(s))continue;">"===s?U(r):F(r,"Invalid characters in closing tag");continue;case _.TEXT_ENTITY:case _.ATTRIB_VALUE_ENTITY_Q:case _.ATTRIB_VALUE_ENTITY_U:var d,u;switch(r.state){case _.TEXT_ENTITY:d=_.TEXT,u="textNode";break;case _.ATTRIB_VALUE_ENTITY_Q:d=_.ATTRIB_VALUE_QUOTED,u="attribValue";break;case _.ATTRIB_VALUE_ENTITY_U:d=_.ATTRIB_VALUE_UNQUOTED,u="attribValue"}if(";"===s){var f=B(r);r.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(f)?(r.entity="",r.state=d,r.write(f)):(r[u]+=f,r.entity="",r.state=d)}else I(r.entity.length?g:m,s)?r.entity+=s:(F(r,"Invalid character in entity name"),r[u]+="&"+r.entity+s,r.entity="",r.state=d);continue;default:throw new Error(r,"Unknown state: "+r.state)}return r.position>=r.bufferCheckPosition&&function(t){for(var r=Math.max(e.MAX_BUFFER_LENGTH,10),a=0,s=0,n=i.length;s<n;s++){var o=t[i[s]].length;if(o>r)switch(i[s]){case"textNode":S(t);break;case"cdata":O(t,"oncdata",t.cdata),t.cdata="";break;case"script":O(t,"onscript",t.script),t.script="";break;default:R(t,"Max buffer length exceeded: "+i[s])}a=Math.max(a,o)}var l=e.MAX_BUFFER_LENGTH-a;t.bufferCheckPosition=l+t.position}(r),r},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var e;S(e=this),""!==e.cdata&&(O(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(O(e,"onscript",e.script),e.script="")}};try{t=require("stream").Stream}catch(e){t=function(){}}t||(t=function(){});var a=e.EVENTS.filter((function(e){return"error"!==e&&"end"!==e}));function s(e,i){if(!(this instanceof s))return new s(e,i);t.apply(this),this._parser=new r(e,i),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(e){n.emit("error",e),n._parser.error=null},this._decoder=null,a.forEach((function(e){Object.defineProperty(n,"on"+e,{get:function(){return n._parser["on"+e]},set:function(t){if(!t)return n.removeAllListeners(e),n._parser["on"+e]=t,t;n.on(e,t)},enumerable:!0,configurable:!1})}))}s.prototype=Object.create(t.prototype,{constructor:{value:s}}),s.prototype.write=function(e){if("function"==typeof f&&"function"==typeof f.isBuffer&&f.isBuffer(e)){if(!this._decoder){var t=c.I;this._decoder=new t("utf8")}e=this._decoder.write(e)}return this._parser.write(e.toString()),this.emit("data",e),!0},s.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},s.prototype.on=function(e,i){var r=this;return r._parser["on"+e]||-1===a.indexOf(e)||(r._parser["on"+e]=function(){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),r.emit.apply(r,t)}),t.prototype.on.call(r,e,i)};var n="[CDATA[",o="DOCTYPE",l="http://www.w3.org/XML/1998/namespace",d="http://www.w3.org/2000/xmlns/",u={xml:l,xmlns:d},p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,h=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function E(e){return" "===e||"\n"===e||"\r"===e||"\t"===e}function A(e){return'"'===e||"'"===e}function T(e){return">"===e||E(e)}function I(e,t){return e.test(t)}function b(e,t){return!I(e,t)}var v,y,N,_=0;for(var C in e.STATE={BEGIN:_++,BEGIN_WHITESPACE:_++,TEXT:_++,TEXT_ENTITY:_++,OPEN_WAKA:_++,SGML_DECL:_++,SGML_DECL_QUOTED:_++,DOCTYPE:_++,DOCTYPE_QUOTED:_++,DOCTYPE_DTD:_++,DOCTYPE_DTD_QUOTED:_++,COMMENT_STARTING:_++,COMMENT:_++,COMMENT_ENDING:_++,COMMENT_ENDED:_++,CDATA:_++,CDATA_ENDING:_++,CDATA_ENDING_2:_++,PROC_INST:_++,PROC_INST_BODY:_++,PROC_INST_ENDING:_++,OPEN_TAG:_++,OPEN_TAG_SLASH:_++,ATTRIB:_++,ATTRIB_NAME:_++,ATTRIB_NAME_SAW_WHITE:_++,ATTRIB_VALUE:_++,ATTRIB_VALUE_QUOTED:_++,ATTRIB_VALUE_CLOSED:_++,ATTRIB_VALUE_UNQUOTED:_++,ATTRIB_VALUE_ENTITY_Q:_++,ATTRIB_VALUE_ENTITY_U:_++,CLOSE_TAG:_++,CLOSE_TAG_SAW_WHITE:_++,SCRIPT:_++,SCRIPT_ENDING:_++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach((function(t){var i=e.ENTITIES[t],r="number"==typeof i?String.fromCharCode(i):i;e.ENTITIES[t]=r})),e.STATE)e.STATE[e.STATE[C]]=C;function w(e,t,i){e[t]&&e[t](i)}function O(e,t,i){e.textNode&&S(e),w(e,t,i)}function S(e){e.textNode=L(e.opt,e.textNode),e.textNode&&w(e,"ontext",e.textNode),e.textNode=""}function L(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function R(e,t){return S(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,w(e,"onerror",t),e}function D(e){return e.sawRoot&&!e.closedRoot&&F(e,"Unclosed root tag"),e.state!==_.BEGIN&&e.state!==_.BEGIN_WHITESPACE&&e.state!==_.TEXT&&R(e,"Unexpected end"),S(e),e.c="",e.closed=!0,w(e,"onend"),r.call(e,e.strict,e.opt),e}function F(e,t){if("object"!=typeof e||!(e instanceof r))throw new Error("bad call to strictFail");e.strict&&R(e,t)}function P(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,i=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(i.ns=t.ns),e.attribList.length=0,O(e,"onopentagstart",i)}function x(e,t){var i=e.indexOf(":")<0?["",e]:e.split(":"),r=i[0],a=i[1];return t&&"xmlns"===e&&(r="xmlns",a=""),{prefix:r,local:a}}function M(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=x(e.attribName,!0),i=t.prefix,r=t.local;if("xmlns"===i)if("xml"===r&&e.attribValue!==l)F(e,"xml: prefix must be bound to "+l+"\nActual: "+e.attribValue);else if("xmlns"===r&&e.attribValue!==d)F(e,"xmlns: prefix must be bound to "+d+"\nActual: "+e.attribValue);else{var a=e.tag,s=e.tags[e.tags.length-1]||e;a.ns===s.ns&&(a.ns=Object.create(s.ns)),a.ns[r]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,O(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function $(e,t){if(e.opt.xmlns){var i=e.tag,r=x(e.tagName);i.prefix=r.prefix,i.local=r.local,i.uri=i.ns[r.prefix]||"",i.prefix&&!i.uri&&(F(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),i.uri=r.prefix);var a=e.tags[e.tags.length-1]||e;i.ns&&a.ns!==i.ns&&Object.keys(i.ns).forEach((function(t){O(e,"onopennamespace",{prefix:t,uri:i.ns[t]})}));for(var s=0,n=e.attribList.length;s<n;s++){var o=e.attribList[s],l=o[0],c=o[1],d=x(l,!0),u=d.prefix,p=d.local,f=""===u?"":i.ns[u]||"",h={name:l,value:c,prefix:u,local:p,uri:f};u&&"xmlns"!==u&&!f&&(F(e,"Unbound namespace prefix: "+JSON.stringify(u)),h.uri=u),e.tag.attributes[l]=h,O(e,"onattribute",h)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),O(e,"onopentag",e.tag),t||(e.noscript||"script"!==e.tagName.toLowerCase()?e.state=_.TEXT:e.state=_.SCRIPT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function U(e){if(!e.tagName)return F(e,"Weird empty close tag."),e.textNode+="</>",void(e.state=_.TEXT);if(e.script){if("script"!==e.tagName)return e.script+="</"+e.tagName+">",e.tagName="",void(e.state=_.SCRIPT);O(e,"onscript",e.script),e.script=""}var t=e.tags.length,i=e.tagName;e.strict||(i=i[e.looseCase]());for(var r=i;t--&&e.tags[t].name!==r;)F(e,"Unexpected close tag");if(t<0)return F(e,"Unmatched closing tag: "+e.tagName),e.textNode+="</"+e.tagName+">",void(e.state=_.TEXT);e.tagName=i;for(var a=e.tags.length;a-- >t;){var s=e.tag=e.tags.pop();e.tagName=e.tag.name,O(e,"onclosetag",e.tagName);var n={};for(var o in s.ns)n[o]=s.ns[o];var l=e.tags[e.tags.length-1]||e;e.opt.xmlns&&s.ns!==l.ns&&Object.keys(s.ns).forEach((function(t){var i=s.ns[t];O(e,"onclosenamespace",{prefix:t,uri:i})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=_.TEXT}function B(e){var t,i=e.entity,r=i.toLowerCase(),a="";return e.ENTITIES[i]?e.ENTITIES[i]:e.ENTITIES[r]?e.ENTITIES[r]:("#"===(i=r).charAt(0)&&("x"===i.charAt(1)?(i=i.slice(2),a=(t=parseInt(i,16)).toString(16)):(i=i.slice(1),a=(t=parseInt(i,10)).toString(10))),i=i.replace(/^0+/,""),isNaN(t)||a.toLowerCase()!==i?(F(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function V(e,t){"<"===t?(e.state=_.OPEN_WAKA,e.startTagPosition=e.position):E(t)||(F(e,"Non-whitespace before first tag."),e.textNode=t,e.state=_.TEXT)}function H(e,t){var i="";return t<e.length&&(i=e.charAt(t)),i}_=e.STATE,String.fromCodePoint||(v=String.fromCharCode,y=Math.floor,N=function(){var e,t,i=[],r=-1,a=arguments.length;if(!a)return"";for(var s="";++r<a;){var n=Number(arguments[r]);if(!isFinite(n)||n<0||n>1114111||y(n)!==n)throw RangeError("Invalid code point: "+n);n<=65535?i.push(n):(e=55296+((n-=65536)>>10),t=n%1024+56320,i.push(e,t)),(r+1===a||i.length>16384)&&(s+=v.apply(null,i),i.length=0)}return s},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:N,configurable:!0,writable:!0}):String.fromCodePoint=N)}({}));var D=(e=>(e.ReservedName="reserved name",e.Character="character",e.Extension="extension",e))(D||{});class F extends Error{constructor(e){super(`Invalid ${e.reason} '${e.segment}' in filename '${e.filename}'`,{cause:e})}get filename(){return this.cause.filename}get reason(){return this.cause.reason}get segment(){return this.cause.segment}}function P(e){const t=(0,d.F)().files,i=t.forbidden_filename_characters??window._oc_config?.forbidden_filenames_characters??["/","\\"];for(const t of i)if(e.includes(t))throw new F({segment:t,reason:"character",filename:e});if(e=e.toLocaleLowerCase(),(t.forbidden_filenames??[".htaccess"]).includes(e))throw new F({filename:e,segment:e,reason:"reserved name"});const r=e.indexOf(".",1),a=e.substring(0,-1===r?void 0:r);if((t.forbidden_filename_basenames??[]).includes(a))throw new F({filename:e,segment:a,reason:"reserved name"});const s=t.forbidden_filename_extensions??[".part",".filepart"];for(const t of s)if(e.length>t.length&&e.endsWith(t))throw new F({segment:t,reason:"extension",filename:e})}const x=["B","KB","MB","GB","TB","PB"],M=["B","KiB","MiB","GiB","TiB","PiB"];function $(e,t=!1,i=!1,r=!1){i=i&&!r,"string"==typeof e&&(e=Number(e));let a=e>0?Math.floor(Math.log(e)/Math.log(r?1e3:1024)):0;a=Math.min((i?M.length:x.length)-1,a);const s=i?M[a]:x[a];let n=(e/Math.pow(r?1e3:1024,a)).toFixed(1);return!0===t&&0===a?("0.0"!==n?"< 1 ":"0 ")+(i?M[1]:x[1]):(n=a<2?parseFloat(n).toFixed(0):parseFloat(n).toLocaleString((0,u.lO)()),n+" "+s)}function U(e){return e instanceof Date?e.toISOString():String(e)}function B(e,t={}){const i={sortingMode:"basename",sortingOrder:"asc",...t};return function(e,t,i){i=i??[];const r=(t=t??[e=>e]).map(((e,t)=>"asc"===(i[t]??"asc")?1:-1)),a=Intl.Collator([(0,u.Z0)(),(0,u.lO)()],{numeric:!0,usage:"sort"});return[...e].sort(((e,i)=>{for(const[s,n]of t.entries()){const t=a.compare(U(n(e)),U(n(i)));if(0!==t)return t*r[s]}return 0}))}(e,[...i.sortFavoritesFirst?[e=>1!==e.attributes?.favorite]:[],...i.sortFoldersFirst?[e=>"folder"!==e.type]:[],..."basename"!==i.sortingMode?[e=>e[i.sortingMode]??e.attributes[i.sortingMode]]:[],e=>{return(t=e.displayname||e.attributes?.displayname||e.basename||"").lastIndexOf(".")>0?t.slice(0,t.lastIndexOf(".")):t;var t},e=>e.basename],[...i.sortFavoritesFirst?["asc"]:[],...i.sortFoldersFirst?["asc"]:[],..."mtime"===i.sortingMode?["asc"===i.sortingOrder?"desc":"asc"]:[],..."mtime"!==i.sortingMode&&"basename"!==i.sortingMode?[i.sortingOrder]:[],i.sortingOrder,i.sortingOrder])}},42634:()=>{},59169:()=>{},63779:()=>{},77199:()=>{},82867:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var r=i(71354),a=i.n(r),s=i(76314),n=i.n(s)()(a());n.push([e.id,'.app-sidebar--has-preview[data-v-54fe7d2a] .app-sidebar-header__figure{background-size:cover}.app-sidebar--has-preview[data-v-54fe7d2a][data-mimetype="text/plain"] .app-sidebar-header__figure,.app-sidebar--has-preview[data-v-54fe7d2a][data-mimetype="text/markdown"] .app-sidebar-header__figure{background-size:contain}.app-sidebar--full[data-v-54fe7d2a]{position:fixed !important;z-index:2025 !important;top:0 !important;height:100% !important}.app-sidebar[data-v-54fe7d2a] .app-sidebar-header__description{margin:0 16px 4px 16px !important}.app-sidebar .svg-icon[data-v-54fe7d2a] svg{width:20px;height:20px;fill:currentColor}.sidebar__subname[data-v-54fe7d2a]{display:flex;align-items:center;gap:0 8px}.sidebar__subname-separator[data-v-54fe7d2a]{display:inline-block;font-weight:bold !important}.sidebar__subname .user-bubble__wrapper[data-v-54fe7d2a]{display:inline-flex}.sidebar__description[data-v-54fe7d2a]{display:flex;flex-direction:column;width:100%;gap:8px 0}',"",{version:3,sources:["webpack://./apps/files/src/views/Sidebar.vue"],names:[],mappings:"AAGE,uEACC,qBAAA,CAKA,yMACC,uBAAA,CAKH,oCACC,yBAAA,CACA,uBAAA,CACA,gBAAA,CACA,sBAAA,CAIA,+DACC,iCAAA,CAKD,4CACC,UAAA,CACA,WAAA,CACA,iBAAA,CAKH,mCACE,YAAA,CACA,kBAAA,CACA,SAAA,CAEA,6CACE,oBAAA,CACA,2BAAA,CAGF,yDACD,mBAAA,CAID,uCACE,YAAA,CACA,qBAAA,CACA,UAAA,CACA,SAAA",sourcesContent:['\n.app-sidebar {\n\t&--has-preview:deep {\n\t\t.app-sidebar-header__figure {\n\t\t\tbackground-size: cover;\n\t\t}\n\n\t\t&[data-mimetype="text/plain"],\n\t\t&[data-mimetype="text/markdown"] {\n\t\t\t.app-sidebar-header__figure {\n\t\t\t\tbackground-size: contain;\n\t\t\t}\n\t\t}\n\t}\n\n\t&--full {\n\t\tposition: fixed !important;\n\t\tz-index: 2025 !important;\n\t\ttop: 0 !important;\n\t\theight: 100% !important;\n\t}\n\n\t:deep {\n\t\t.app-sidebar-header__description {\n\t\t\tmargin: 0 16px 4px 16px !important;\n\t\t}\n\t}\n\n\t.svg-icon {\n\t\t:deep(svg) {\n\t\t\twidth: 20px;\n\t\t\theight: 20px;\n\t\t\tfill: currentColor;\n\t\t}\n\t}\n}\n\n.sidebar__subname {\n display: flex;\n align-items: center;\n gap: 0 8px;\n\n &-separator {\n display: inline-block;\n font-weight: bold !important;\n }\n\n .user-bubble__wrapper {\n\tdisplay: inline-flex;\n }\n}\n\n.sidebar__description {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\twidth: 100%;\n\t\tgap: 8px 0;\n\t}\n'],sourceRoot:""}]);const o=n},86833:()=>{},87137:(e,i,r)=>{"use strict";var a=r(85471),s=r(53334),n=r(35810),o=r(61338),l=r(71225),c=r(68896);const d=(0,c.c)(),u=async e=>{const t=(0,c.l)(),i=await d.stat(`${(0,c.g)()}${e}`,{details:!0,data:t});return(0,c.r)(i.data)};var p=r(63814),f=r(87485),h=r(21777),m=r(9165),g=r(77905),E=r(85168),A=r(74692),T=r.n(A),I=r(65043),b=r(99907),v=r(57505),y=r(4604),N=r(32190),_=r(6695),C=r(77764);const w={name:"LegacyView",props:{component:{type:Object,required:!0},fileInfo:{type:Object,default:()=>{},required:!0}},watch:{fileInfo(e){this.setFileInfo(e)}},mounted(){this.component.$el.replaceAll(this.$el),this.setFileInfo(this.fileInfo)},methods:{setFileInfo(e){this.component.setFileInfo(e)}}};var O=r(14486);const S=(0,O.A)(w,(function(){return(0,this._self._c)("div")}),[],!1,null,null,null).exports,L={name:"SidebarTab",components:{NcAppSidebarTab:r(18608).A,NcEmptyContent:N.A},props:{fileInfo:{type:Object,default:()=>{},required:!0},id:{type:String,required:!0},name:{type:String,required:!0},icon:{type:String,default:""},onMount:{type:Function,required:!0},onUpdate:{type:Function,required:!0},onDestroy:{type:Function,required:!0},onScrollBottomReached:{type:Function,default:()=>{}}},data:()=>({loading:!0}),computed:{activeTab(){return this.$parent.activeTab}},watch:{async fileInfo(e,t){e.id!==t.id&&(this.loading=!0,await this.onUpdate(this.fileInfo),this.loading=!1)}},async mounted(){this.loading=!0,await this.onMount(this.$refs.mount,this.fileInfo,this.$refs.tab),this.loading=!1},async beforeDestroy(){await this.onDestroy()}},R=(0,O.A)(L,(function(){var e=this,t=e._self._c;return t("NcAppSidebarTab",{ref:"tab",attrs:{id:e.id,name:e.name,icon:e.icon},on:{bottomReached:e.onScrollBottomReached},scopedSlots:e._u([{key:"icon",fn:function(){return[e._t("icon")]},proxy:!0}],null,!0)},[e._v(" "),e.loading?t("NcEmptyContent",{attrs:{icon:"icon-loading"}}):e._e(),e._v(" "),t("div",{ref:"mount"})],1)}),[],!1,null,null,null).exports;var D=r(59892),F=r(5212),P=r(81222),x=r(71654);const M={userVisible:!0,userAssignable:!0,canAssign:!0},$=e=>e.map((e=>{let{props:t}=e;return Object.fromEntries(Object.entries(t).map((e=>{let[t,i]=e;return[(0,x.A)(t),"displayName"===(0,x.A)(t)?String(i):i]})))})),U=e=>{if("name"in e&&!("displayName"in e))return{...e};const t={...e};return t.name=t.displayName,delete t.displayName,t};var B=r(60669);const V=(0,p.dC)("dav"),H=(0,B.UU)(V),G=e=>{H.setHeaders({"X-Requested-With":"XMLHttpRequest",requesttoken:e??""})};(0,h.zo)(G),G((0,h.do)());var k=r(35947);const j=(0,k.YK)().setApp("systemtags").detectUser().build();r(56760);const X='<?xml version="1.0"?>\n<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">\n\t<d:prop>\n\t\t<oc:id />\n\t\t<oc:display-name />\n\t\t<oc:user-visible />\n\t\t<oc:user-assignable />\n\t\t<oc:can-assign />\n\t\t<d:getetag />\n\t\t<nc:color />\n\t</d:prop>\n</d:propfind>',q=async e=>{const t="/systemtags-relations/files/"+e;try{const{data:e}=await H.getDirectoryContents(t,{data:X,details:!0,glob:"/systemtags-relations/files/*/*"});return $(e)}catch(e){throw j.error((0,s.t)("systemtags","Failed to load tags for file"),{error:e}),new Error((0,s.t)("systemtags","Failed to load tags for file"))}},Y=async(e,t)=>{const i="/systemtags-relations/files/"+t+"/"+e.id,r=U(e);try{await H.customRequest(i,{method:"PUT",data:r})}catch(e){throw j.error((0,s.t)("systemtags","Failed to set tag for file"),{error:e}),new Error((0,s.t)("systemtags","Failed to set tag for file"))}},z=a.Ay.extend({name:"SystemTags",components:{NcLoadingIcon:D.A,NcSelectTags:F.A},props:{fileId:{type:Number,required:!0},disabled:{type:Boolean,default:!1}},data:()=>({sortedTags:[],selectedTags:[],loadingTags:!1,loading:!1}),async created(){try{const e=await(async()=>{try{const{data:e}=await H.getDirectoryContents("/systemtags",{data:X,details:!0,glob:"/systemtags/*"});return $(e)}catch(e){throw j.error((0,s.t)("systemtags","Failed to load tags"),{error:e}),new Error((0,s.t)("systemtags","Failed to load tags"))}})(),t=await(async()=>{const e=(0,p.Jv)("/apps/systemtags/lastused");try{const{data:t}=await I.Ay.get(e);return t.map(Number)}catch(e){throw j.error((0,s.t)("systemtags","Failed to load last used tags"),{error:e}),new Error((0,s.t)("systemtags","Failed to load last used tags"))}})(),i=[],r=[];for(const a of e)t.includes(a.id)?i.push(a):r.push(a);const a=(e,i)=>t.indexOf(e.id)-t.indexOf(i.id);i.sort(a),this.sortedTags=[...i,...r]}catch(e){(0,E.Qg)((0,s.t)("systemtags","Failed to load tags"))}},watch:{fileId:{immediate:!0,async handler(){this.loadingTags=!0;try{this.selectedTags=await q(this.fileId)}catch(e){(0,E.Qg)((0,s.t)("systemtags","Failed to load selected tags"))}this.loadingTags=!1}}},mounted(){(0,o.B1)("systemtags:node:updated",this.onTagUpdated)},methods:{t:s.t,createOption(e){for(const t of this.sortedTags){const{id:i,displayName:r,...a}=t;if(r===e&&Object.entries(a).every((e=>{let[t,i]=e;return M[t]===i})))return t}return{...M,displayName:e}},handleInput(e){this.selectedTags=e.filter((e=>Boolean(e.id)))},async handleSelect(e){const t=e[e.length-1];if(!t.id)return;const i=t;this.loading=!0;try{await Y(i,this.fileId);const e=(e,t)=>e.id===i.id?-1:t.id===i.id?1:0;this.sortedTags.sort(e)}catch(e){(0,E.Qg)((0,s.t)("systemtags","Failed to select tag"))}this.loading=!1,this.updateAndDispatchNodeTagsEvent(this.fileId)},async handleCreate(e){this.loading=!0;try{const t=await(async(e,t)=>{const i=U(e),r=await(async e=>{const t=U(e);try{const{headers:i}=await H.customRequest("/systemtags",{method:"POST",data:t}),r=i.get("content-location");if(r)return(0,o.Ic)("systemtags:tag:created",e),(e=>{const t=e.indexOf("?");t>0&&(e=e.substring(0,t));const i=e.split("/");let r;do{r=i[i.length-1],i.pop()}while(!r&&i.length>0);return Number(r)})(r);throw j.error((0,s.t)("systemtags",'Missing "Content-Location" header')),new Error((0,s.t)("systemtags",'Missing "Content-Location" header'))}catch(e){if(409===e?.response?.status)throw j.error((0,s.t)("systemtags","A tag with the same name already exists"),{error:e}),new Error((0,s.t)("systemtags","A tag with the same name already exists"));throw j.error((0,s.t)("systemtags","Failed to create tag"),{error:e}),new Error((0,s.t)("systemtags","Failed to create tag"))}})(i),a={...i,id:r};return await Y(a,t),a.id})(e,this.fileId),i={...e,id:t};this.sortedTags.unshift(i),this.selectedTags.push(i)}catch(e){if(!0===(0,P.C)("settings","restrictSystemTagsCreationToAdmin",!1))return void(0,E.Qg)((0,s.t)("systemtags","System admin disabled tag creation. You can only use existing ones."));(0,E.Qg)((0,s.t)("systemtags","Failed to create tag"))}this.loading=!1,this.updateAndDispatchNodeTagsEvent(this.fileId)},async handleDeselect(e){this.loading=!0;try{await(async e=>{const t="/systemtags-relations/files/"+this.fileId+"/"+e.id;try{await H.deleteFile(t)}catch(e){throw j.error((0,s.t)("systemtags","Failed to delete tag for file"),{error:e}),new Error((0,s.t)("systemtags","Failed to delete tag for file"))}})(e)}catch(e){(0,E.Qg)((0,s.t)("systemtags","Failed to delete tag"))}this.loading=!1,this.updateAndDispatchNodeTagsEvent(this.fileId)},async onTagUpdated(e){if(e.fileid===this.fileId){this.loadingTags=!0;try{this.selectedTags=await q(this.fileId)}catch(e){(0,E.Qg)((0,s.t)("systemtags","Failed to load selected tags"))}this.loadingTags=!1}},async updateAndDispatchNodeTagsEvent(e){const t=window.OCA?.Files?.Sidebar?.file||"";try{const e=await u(t);e&&(0,o.Ic)("systemtags:node:updated",e)}catch(t){j.error("Failed to fetch node for system tags update",{error:t,fileId:e})}}}});var W=r(85072),Q=r.n(W),Z=r(97825),K=r.n(Z),J=r(77659),ee=r.n(J),te=r(55056),ie=r.n(te),re=r(10540),ae=r.n(re),se=r(41113),ne=r.n(se),oe=r(10637),le={};le.styleTagTransform=ne(),le.setAttributes=ie(),le.insert=ee().bind(null,"head"),le.domAPI=K(),le.insertStyleElement=ae(),Q()(oe.A,le),oe.A&&oe.A.locals&&oe.A.locals;const ce=(0,O.A)(z,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"system-tags"},[e.loadingTags?t("NcLoadingIcon",{attrs:{name:e.t("systemtags","Loading collaborative tags …"),size:32}}):e._e(),e._v(" "),t("NcSelectTags",{directives:[{name:"show",rawName:"v-show",value:!e.loadingTags,expression:"!loadingTags"}],staticClass:"system-tags__select",attrs:{"input-label":e.t("systemtags","Search or create collaborative tags"),placeholder:e.t("systemtags","Collaborative tags …"),options:e.sortedTags,value:e.selectedTags,"create-option":e.createOption,disabled:e.disabled,taggable:!0,passthru:!0,"fetch-tags":!1,loading:e.loading},on:{input:e.handleInput,"option:selected":e.handleSelect,"option:created":e.handleCreate,"option:deselected":e.handleDeselect},scopedSlots:e._u([{key:"no-options",fn:function(){return[e._v("\n\t\t\t"+e._s(e.t("systemtags","No tags to select, type to create a new tag"))+"\n\t\t")]},proxy:!0}])})],1)}),[],!1,null,"5283eb84",null).exports,de=(0,k.YK)().setApp("files").detectUser().build(),ue=(0,a.pM)({name:"Sidebar",components:{LegacyView:S,NcActionButton:v.A,NcAppSidebar:b.N,NcDateTime:y.A,NcEmptyContent:N.A,NcIconSvgWrapper:_.A,SidebarTab:R,SystemTags:ce,NcUserBubble:C.A},setup:()=>({currentUser:(0,h.HW)(),mdiStar:m.ZL5,mdiStarOutline:m.dF}),data:()=>({Sidebar:OCA.Files.Sidebar.state,showTags:!1,showTagsDefault:!0,error:null,loading:!0,fileInfo:null,node:null,isFullScreen:!1,hasLowHeight:!1}),computed:{file(){return this.Sidebar.file},tabs(){return this.Sidebar.tabs},views(){return this.Sidebar.views},davPath(){return`${n.PY}${n.lJ}${(0,l.O0)(this.file)}`},activeTab(){return this.Sidebar.activeTab},size(){return(0,n.v7)(this.fileInfo?.size)},background(){return this.getPreviewIfAny(this.fileInfo)},appSidebar(){return this.fileInfo?{"data-mimetype":this.fileInfo.mimetype,active:this.activeTab,background:this.background,class:{"app-sidebar--has-preview":this.fileInfo.hasPreview&&!this.isFullScreen,"app-sidebar--full":this.isFullScreen},compact:this.hasLowHeight||!this.fileInfo.hasPreview||this.isFullScreen,loading:this.loading,name:this.node?.displayname??this.fileInfo.name,title:this.node?.displayname??this.fileInfo.name}:this.error?{key:"error",subname:"",name:"",class:{"app-sidebar--full":this.isFullScreen}}:{loading:this.loading,subname:"",name:"",class:{"app-sidebar--full":this.isFullScreen}}},defaultAction(){return this.fileInfo&&OCA.Files&&OCA.Files.App&&OCA.Files.App.fileList&&OCA.Files.App.fileList.fileActions&&OCA.Files.App.fileList.fileActions.getDefaultFileAction&&OCA.Files.App.fileList.fileActions.getDefaultFileAction(this.fileInfo.mimetype,this.fileInfo.type,OC.PERMISSION_READ)},defaultActionListener(){return this.defaultAction?"figure-click":null},isSystemTagsEnabled:()=>!0===(0,f.F)()?.systemtags?.enabled,ownerId(){return this.node?.attributes?.["owner-id"]??this.currentUser.uid},currentUserIsOwner(){return this.ownerId===this.currentUser.uid},nodeOwnerLabel(){let e=this.node?.attributes?.["owner-display-name"];return this.currentUserIsOwner&&(e=`${e} (${t("files","You")})`),e},sharedMultipleTimes:()=>Array.isArray(node.attributes?.["share-types"])&&node.attributes?.["share-types"].length>1?t("files","Shared multiple times with different people"):null},created(){(0,o.B1)("files:node:deleted",this.onNodeDeleted),window.addEventListener("resize",this.handleWindowResize),this.handleWindowResize()},beforeDestroy(){(0,o.al)("file:node:deleted",this.onNodeDeleted),window.removeEventListener("resize",this.handleWindowResize)},methods:{canDisplay(e){return e.enabled(this.fileInfo)},resetData(){this.error=null,this.fileInfo=null,this.$nextTick((()=>{this.$refs.tabs&&this.$refs.tabs.updateTabs()}))},getPreviewIfAny(e){if(e?.hasPreview&&!this.isFullScreen){const t=e?.etag||"";return(0,p.Jv)(`/core/preview?fileId=${e.id}&x=${screen.width}&y=${screen.height}&a=true&v=${t.slice(0,6)}`)}return this.getIconUrl(e)},getIconUrl(e){const t=e?.mimetype||"application/octet-stream";return"httpd/unix-directory"===t?"shared"===e.mountType||"shared-root"===e.mountType?OC.MimeType.getIconUrl("dir-shared"):"external-root"===e.mountType?OC.MimeType.getIconUrl("dir-external"):void 0!==e.mountType&&""!==e.mountType?OC.MimeType.getIconUrl("dir-"+e.mountType):e.shareTypes&&(e.shareTypes.indexOf(g.I.Link)>-1||e.shareTypes.indexOf(g.I.Email)>-1)?OC.MimeType.getIconUrl("dir-public"):e.shareTypes&&e.shareTypes.length>0?OC.MimeType.getIconUrl("dir-shared"):OC.MimeType.getIconUrl("dir"):OC.MimeType.getIconUrl(t)},setActiveTab(e){OCA.Files.Sidebar.setActiveTab(e),this.tabs.forEach((t=>{try{t.setIsActive(e===t.id)}catch(e){de.error("Error while setting tab active state",{error:e,id:t.id,tab:t})}}))},async toggleStarred(e){try{await(0,I.Ay)({method:"PROPPATCH",url:this.davPath,data:`<?xml version="1.0"?>\n\t\t\t\t\t\t<d:propertyupdate xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">\n\t\t\t\t\t\t${e?"<d:set>":"<d:remove>"}\n\t\t\t\t\t\t\t<d:prop>\n\t\t\t\t\t\t\t\t<oc:favorite>1</oc:favorite>\n\t\t\t\t\t\t\t</d:prop>\n\t\t\t\t\t\t${e?"</d:set>":"</d:remove>"}\n\t\t\t\t\t\t</d:propertyupdate>`});const t="dir"===this.fileInfo.type,i=new(t?n.vd:n.ZH)({fileid:this.fileInfo.id,source:`${n.PY}${n.lJ}${this.file}`,root:n.lJ,mime:t?void 0:this.fileInfo.mimetype,attributes:{favorite:1}});(0,o.Ic)(e?"files:favorites:added":"files:favorites:removed",i),this.fileInfo.isFavourited=e}catch(e){(0,E.Qg)(t("files","Unable to change the favorite state of the file")),de.error("Unable to change favorite state",{error:e})}},onDefaultAction(){this.defaultAction&&this.defaultAction.action(this.fileInfo.name,{fileInfo:this.fileInfo,dir:this.fileInfo.dir,fileList:OCA.Files.App.fileList,$file:T()("body")})},toggleTags(){this.showTags=!this.showTags,this.setShowTagsDefault(this.showTags)},async open(e){if(!e||""===e.trim())throw new Error(`Invalid path '${e}'`);const i=!!this.Sidebar.file;this.Sidebar.file=e,this.error=null,this.loading=!0;try{this.node=await u(this.file),this.fileInfo=function(e){const t=new OC.Files.FileInfo({id:e.fileid,path:e.dirname,name:e.basename,mtime:e.mtime?.getTime(),etag:e.attributes.etag,size:e.size,hasPreview:e.attributes.hasPreview,isEncrypted:1===e.attributes.isEncrypted,isFavourited:1===e.attributes.favorite,mimetype:e.mime,permissions:e.permissions,mountType:e.attributes["mount-type"],sharePermissions:e.attributes["share-permissions"],shareAttributes:JSON.parse(e.attributes["share-attributes"]||"[]"),type:"file"===e.type?"file":"dir",attributes:e.attributes});return t.get=e=>t[e],t.isDirectory=()=>"httpd/unix-directory"===t.mimetype,t.canEdit=()=>Boolean(t.permissions&OC.PERMISSION_UPDATE),t}(this.node),this.fileInfo.dir=this.file.split("/").slice(0,-1).join("/"),this.views.forEach((e=>{e.setFileInfo(this.fileInfo)})),await this.$nextTick(),this.setActiveTab(this.Sidebar.activeTab||this.tabs[0].id),this.loading=!1,await this.$nextTick(),i&&this.$refs.sidebar&&this.$refs.sidebar.focusActiveTabContent()}catch(e){throw this.loading=!1,this.error=t("files","Error while loading the file data"),console.error("Error while loading the file data",e),new Error(e)}},close(){this.Sidebar.file="",this.showTags=!1,this.resetData()},onNodeDeleted(e){this.fileInfo&&e&&this.fileInfo.id===e.fileid&&this.close()},setFullScreenMode(e){this.isFullScreen=e,e?document.querySelector("#content")?.classList.add("with-sidebar--full")||document.querySelector("#content-vue")?.classList.add("with-sidebar--full"):document.querySelector("#content")?.classList.remove("with-sidebar--full")||document.querySelector("#content-vue")?.classList.remove("with-sidebar--full")},setShowTagsDefault(e){this.showTagsDefault=e},handleOpening(){(0,o.Ic)("files:sidebar:opening")},handleOpened(){(0,o.Ic)("files:sidebar:opened")},handleClosing(){(0,o.Ic)("files:sidebar:closing")},handleClosed(){(0,o.Ic)("files:sidebar:closed")},handleWindowResize(){this.hasLowHeight=document.documentElement.clientHeight<1024}}});var pe=r(82867),fe={};fe.styleTagTransform=ne(),fe.setAttributes=ie(),fe.insert=ee().bind(null,"head"),fe.domAPI=K(),fe.insertStyleElement=ae(),Q()(pe.A,fe),pe.A&&pe.A.locals&&pe.A.locals;const he=(0,O.A)(ue,(function(){var e=this,t=e._self._c;return e._self._setupProxy,e.file?t("NcAppSidebar",e._b({ref:"sidebar",attrs:{"data-cy-sidebar":"","force-menu":!0},on:e._d({close:e.close,"update:active":e.setActiveTab,opening:e.handleOpening,opened:e.handleOpened,closing:e.handleClosing,closed:e.handleClosed},[e.defaultActionListener,function(t){return t.stopPropagation(),t.preventDefault(),e.onDefaultAction.apply(null,arguments)}]),scopedSlots:e._u([e.fileInfo?{key:"subname",fn:function(){return[t("div",{staticClass:"sidebar__subname"},[e.fileInfo.isFavourited?t("NcIconSvgWrapper",{attrs:{path:e.mdiStar,name:e.t("files","Favorite"),inline:""}}):e._e(),e._v(" "),t("span",[e._v(e._s(e.size))]),e._v(" "),t("span",{staticClass:"sidebar__subname-separator"},[e._v("•")]),e._v(" "),t("NcDateTime",{attrs:{timestamp:e.fileInfo.mtime}}),e._v(" "),t("span",{staticClass:"sidebar__subname-separator"},[e._v("•")]),e._v(" "),t("span",[e._v(e._s(e.t("files","Owner")))]),e._v(" "),t("NcUserBubble",{attrs:{user:e.ownerId,"display-name":e.nodeOwnerLabel}})],1)]},proxy:!0}:null,e.fileInfo?{key:"description",fn:function(){return[t("div",{staticClass:"sidebar__description"},[e.isSystemTagsEnabled&&e.showTagsDefault?t("SystemTags",{directives:[{name:"show",rawName:"v-show",value:e.showTags,expression:"showTags"}],attrs:{disabled:!e.fileInfo?.canEdit(),"file-id":e.fileInfo.id}}):e._e(),e._v(" "),e._l(e.views,(function(i){return t("LegacyView",{key:i.cid,attrs:{component:i,"file-info":e.fileInfo}})}))],2)]},proxy:!0}:null,e.fileInfo?{key:"secondary-actions",fn:function(){return[t("NcActionButton",{attrs:{"close-after-click":!0},on:{click:function(t){return e.toggleStarred(!e.fileInfo.isFavourited)}},scopedSlots:e._u([{key:"icon",fn:function(){return[t("NcIconSvgWrapper",{attrs:{path:e.fileInfo.isFavourited?e.mdiStarOutline:e.mdiStar}})]},proxy:!0}],null,!1,3772937801)},[e._v("\n\t\t\t"+e._s(e.fileInfo.isFavourited?e.t("files","Remove from favorites"):e.t("files","Add to favorites"))+"\n\t\t")]),e._v(" "),e.isSystemTagsEnabled?t("NcActionButton",{attrs:{"close-after-click":!0,icon:"icon-tag"},on:{click:e.toggleTags}},[e._v("\n\t\t\t"+e._s(e.t("files","Tags"))+"\n\t\t")]):e._e()]},proxy:!0}:null],null,!0)},"NcAppSidebar",e.appSidebar,!1),[e._v(" "),e._v(" "),e._v(" "),e.error?t("NcEmptyContent",{attrs:{icon:"icon-error"}},[e._v("\n\t\t"+e._s(e.error)+"\n\t")]):e.fileInfo?e._l(e.tabs,(function(i){return[i.enabled(e.fileInfo)?t("SidebarTab",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],key:i.id,attrs:{id:i.id,name:i.name,icon:i.icon,"on-mount":i.mount,"on-update":i.update,"on-destroy":i.destroy,"on-scroll-bottom-reached":i.scrollBottomReached,"file-info":e.fileInfo},scopedSlots:e._u([void 0!==i.iconSvg?{key:"icon",fn:function(){return[t("span",{staticClass:"svg-icon",domProps:{innerHTML:e._s(i.iconSvg)}})]},proxy:!0}:null],null,!0)}):e._e()]})):e._e()],2):e._e()}),[],!1,null,"54fe7d2a",null).exports;var me=r(99418);function ge(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}a.Ay.prototype.t=s.Tl,window.OCA.Files||(window.OCA.Files={}),Object.assign(window.OCA.Files,{Sidebar:new class{constructor(){(function(e,t,i){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})(this,"_state",void 0),this._state={},this._state.tabs=[],this._state.views=[],this._state.file="",this._state.activeTab="",console.debug("OCA.Files.Sidebar initialized")}get state(){return this._state}registerTab(e){return this._state.tabs.findIndex((t=>t.id===e.id))>-1?(console.error(`An tab with the same id ${e.id} already exists`,e),!1):(this._state.tabs.push(e),!0)}registerSecondaryView(e){return this._state.views.findIndex((t=>t.id===e.id))>-1?(console.error("A similar view already exists",e),!1):(this._state.views.push(e),!0)}get file(){return this._state.file}setActiveTab(e){this._state.activeTab=e}}}),Object.assign(window.OCA.Files.Sidebar,{Tab:class{constructor(){let{id:e,name:t,icon:i,iconSvg:r,mount:a,setIsActive:s,update:n,destroy:o,enabled:l,scrollBottomReached:c}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(ge(this,"_id",void 0),ge(this,"_name",void 0),ge(this,"_icon",void 0),ge(this,"_iconSvgSanitized",void 0),ge(this,"_mount",void 0),ge(this,"_setIsActive",void 0),ge(this,"_update",void 0),ge(this,"_destroy",void 0),ge(this,"_enabled",void 0),ge(this,"_scrollBottomReached",void 0),void 0===l&&(l=()=>!0),void 0===c&&(c=()=>{}),"string"!=typeof e||""===e.trim())throw new Error("The id argument is not a valid string");if("string"!=typeof t||""===t.trim())throw new Error("The name argument is not a valid string");if(("string"!=typeof i||""===i.trim())&&"string"!=typeof r)throw new Error("Missing valid string for icon or iconSvg argument");if("function"!=typeof a)throw new Error("The mount argument should be a function");if(void 0!==s&&"function"!=typeof s)throw new Error("The setIsActive argument should be a function");if("function"!=typeof n)throw new Error("The update argument should be a function");if("function"!=typeof o)throw new Error("The destroy argument should be a function");if("function"!=typeof l)throw new Error("The enabled argument should be a function");if("function"!=typeof c)throw new Error("The scrollBottomReached argument should be a function");this._id=e,this._name=t,this._icon=i,this._mount=a,this._setIsActive=s,this._update=n,this._destroy=o,this._enabled=l,this._scrollBottomReached=c,"string"==typeof r&&(this._iconSvgSanitized=me.A.sanitize(r))}get id(){return this._id}get name(){return this._name}get icon(){return this._icon}get iconSvg(){return this._iconSvgSanitized}get mount(){return this._mount}get setIsActive(){return this._setIsActive||(()=>{})}get update(){return this._update}get destroy(){return this._destroy}get enabled(){return this._enabled}get scrollBottomReached(){return this._scrollBottomReached}}}),window.addEventListener("DOMContentLoaded",(function(){const e=document.querySelector("body > .content")||document.querySelector("body > #content");let t;if(e){if(!document.getElementById("app-sidebar")){const t=document.createElement("div");t.id="app-sidebar",e.appendChild(t)}t=e.__vue__}const i=new(a.Ay.extend(he))({name:"SidebarRoot",parent:t}).$mount("#app-sidebar");window.OCA.Files.Sidebar.open=i.open,window.OCA.Files.Sidebar.close=i.close,window.OCA.Files.Sidebar.setFullScreenMode=i.setFullScreenMode,window.OCA.Files.Sidebar.setShowTagsDefault=i.setShowTagsDefault}))}},s={};function n(e){var t=s[e];if(void 0!==t)return t.exports;var i=s[e]={id:e,loaded:!1,exports:{}};return a[e].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=a,e=[],n.O=(t,i,r,a)=>{if(!i){var s=1/0;for(d=0;d<e.length;d++){i=e[d][0],r=e[d][1],a=e[d][2];for(var o=!0,l=0;l<i.length;l++)(!1&a||s>=a)&&Object.keys(n.O).every((e=>n.O[e](i[l])))?i.splice(l--,1):(o=!1,a<s&&(s=a));if(o){e.splice(d--,1);var c=r();void 0!==c&&(t=c)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[i,r,a]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,i)=>(n.f[i](e,t),t)),[])),n.u=e=>e+"-"+e+".js?v="+{640:"ce8e671e5f815db1f8e8",3580:"6c010e0aed50d3c00035",5771:"a4e2a98efcfb7393c5bd",5810:"e0ecfcd31fb108c51bfd"}[e],n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i={},r="nextcloud:",n.l=(e,t,a,s)=>{if(i[e])i[e].push(t);else{var o,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==r+a){o=u;break}}o||(l=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,n.nc&&o.setAttribute("nonce",n.nc),o.setAttribute("data-webpack",r+a),o.src=e),i[e]=[t];var p=(t,r)=>{o.onerror=o.onload=null,clearTimeout(f);var a=i[e];if(delete i[e],o.parentNode&&o.parentNode.removeChild(o),a&&a.forEach((e=>e(r))),t)return t(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=p.bind(null,o.onerror),o.onload=p.bind(null,o.onload),l&&document.head.appendChild(o)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.j=4763,(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var i=t.getElementsByTagName("script");if(i.length)for(var r=i.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=i[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{n.b=document.baseURI||self.location.href;var e={4763:0,5810:0};n.f.j=(t,i)=>{var r=n.o(e,t)?e[t]:void 0;if(0!==r)if(r)i.push(r[2]);else{var a=new Promise(((i,a)=>r=e[t]=[i,a]));i.push(r[2]=a);var s=n.p+n.u(t),o=new Error;n.l(s,(i=>{if(n.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;o.message="Loading chunk "+t+" failed.\n("+a+": "+s+")",o.name="ChunkLoadError",o.type=a,o.request=s,r[1](o)}}),"chunk-"+t,t)}},n.O.j=t=>0===e[t];var t=(t,i)=>{var r,a,s=i[0],o=i[1],l=i[2],c=0;if(s.some((t=>0!==e[t]))){for(r in o)n.o(o,r)&&(n.m[r]=o[r]);if(l)var d=l(n)}for(t&&t(i);c<s.length;c++)a=s[c],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(d)},i=self.webpackChunknextcloud=self.webpackChunknextcloud||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})(),n.nc=void 0;var o=n.O(void 0,[4208],(()=>n(87137)));o=n.O(o)})(); +//# sourceMappingURL=files-sidebar.js.map?v=1a21d41d34cffe67ca75
\ No newline at end of file |