12 |
- (()=>{var e,i,s,r={9165:(e,t,i)=>{"use strict";i.d(t,{NZC:()=>s,ZL5:()=>n,dF:()=>o,fEr:()=>r});var s="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",r="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="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",o="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"},55175:(e,i,s)=>{"use strict";var r=s(85471),n=s(53334),o=s(21777),a=s(87485),l=s(85168),d=s(61338),c=s(35810),u=s(71225),p=s(63814),h=s(77905),f=s(9165);const g=(0,c.H4)();var m=s(65043),A=s(74692),E=s.n(A),b=s(54859),y=s(18503),I=s(4604),v=s(28326),N=s(6695),O=s(77764);const T={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(new OCA.Files.FileInfoModel(e))}}};var w=s(14486);const L=(0,w.A)(T,(function(){return(0,this._self._c)("div")}),[],!1,null,null,null).exports,C={name:"SidebarTab",components:{NcAppSidebarTab:s(18608).A,NcEmptyContent:v.A},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(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()}},S=(0,w.A)(C,(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 R=s(59892),_=s(5212),F=s(71654);const x={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,F.A)(t),"displayName"===(0,F.A)(t)?String(i):i]})))})),P=e=>{if("name"in e&&!("displayName"in e))return{...e};const t={...e};return t.name=t.displayName,delete t.displayName,t};var D=s(60669);const M=(0,p.dC)("dav"),B=(0,D.UU)(M),U=e=>{B.setHeaders({"X-Requested-With":"XMLHttpRequest",requesttoken:e??""})};(0,o.zo)(U),U((0,o.do)());var G=s(35947);const j=(0,G.YK)().setApp("systemtags").detectUser().build(),k='<?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>',V=async(e,t)=>{const i="/systemtags-relations/files/"+t+"/"+e.id,s=P(e);try{await B.customRequest(i,{method:"PUT",data:s})}catch(e){throw j.error((0,n.t)("systemtags","Failed to set tag for file"),{error:e}),new Error((0,n.t)("systemtags","Failed to set tag for file"))}},X=r.Ay.extend({name:"SystemTags",components:{NcLoadingIcon:R.A,NcSelectTags:_.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 B.getDirectoryContents("/systemtags",{data:k,details:!0,glob:"/systemtags/*"});return $(e)}catch(e){throw j.error((0,n.t)("systemtags","Failed to load tags"),{error:e}),new Error((0,n.t)("systemtags","Failed to load tags"))}})(),t=await(async()=>{const e=(0,p.Jv)("/apps/systemtags/lastused");try{const{data:t}=await m.Ay.get(e);return t.map(Number)}catch(e){throw j.error((0,n.t)("systemtags","Failed to load last used tags"),{error:e}),new Error((0,n.t)("systemtags","Failed to load last used tags"))}})(),i=[],s=[];for(const r of e)t.includes(r.id)?i.push(r):s.push(r);const r=(e,i)=>t.indexOf(e.id)-t.indexOf(i.id);i.sort(r),this.sortedTags=[...i,...s]}catch(e){(0,l.Qg)((0,n.Tl)("systemtags","Failed to load tags"))}},watch:{fileId:{immediate:!0,async handler(){this.loadingTags=!0;try{this.selectedTags=await(async()=>{const e="/systemtags-relations/files/"+this.fileId;try{const{data:t}=await B.getDirectoryContents(e,{data:k,details:!0,glob:"/systemtags-relations/files/*/*"});return $(t)}catch(e){throw j.error((0,n.t)("systemtags","Failed to load tags for file"),{error:e}),new Error((0,n.t)("systemtags","Failed to load tags for file"))}})(),this.$emit("has-tags",this.selectedTags.length>0)}catch(e){(0,l.Qg)((0,n.Tl)("systemtags","Failed to load selected tags"))}this.loadingTags=!1}}},methods:{t:n.Tl,createOption(e){for(const t of this.sortedTags){const{id:i,displayName:s,...r}=t;if(s===e&&Object.entries(r).every((e=>{let[t,i]=e;return x[t]===i})))return t}return{...x,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 V(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,l.Qg)((0,n.Tl)("systemtags","Failed to select tag"))}this.loading=!1},async handleCreate(e){this.loading=!0;try{const t=await(async(e,t)=>{const i=P(e),s=await(async e=>{const t=P(e);try{const{headers:i}=await B.customRequest("/systemtags",{method:"POST",data:t}),s=i.get("content-location");if(s)return(0,d.Ic)("systemtags:tag:created",e),(e=>{const t=e.indexOf("?");t>0&&(e=e.substring(0,t));const i=e.split("/");let s;do{s=i[i.length-1],i.pop()}while(!s&&i.length>0);return Number(s)})(s);throw j.error((0,n.t)("systemtags",'Missing "Content-Location" header')),new Error((0,n.t)("systemtags",'Missing "Content-Location" header'))}catch(e){if(409===e?.response?.status)throw j.error((0,n.t)("systemtags","A tag with the same name already exists"),{error:e}),new Error((0,n.t)("systemtags","A tag with the same name already exists"));throw j.error((0,n.t)("systemtags","Failed to create tag"),{error:e}),new Error((0,n.t)("systemtags","Failed to create tag"))}})(i),r={...i,id:s};return await V(r,t),r.id})(e,this.fileId),i={...e,id:t};this.sortedTags.unshift(i),this.selectedTags.push(i)}catch(e){(0,l.Qg)((0,n.Tl)("systemtags","Failed to create tag"))}this.loading=!1},async handleDeselect(e){this.loading=!0;try{await(async e=>{const t="/systemtags-relations/files/"+this.fileId+"/"+e.id;try{await B.deleteFile(t)}catch(e){throw j.error((0,n.t)("systemtags","Failed to delete tag for file"),{error:e}),new Error((0,n.t)("systemtags","Failed to delete tag for file"))}})(e)}catch(e){(0,l.Qg)((0,n.Tl)("systemtags","Failed to delete tag"))}this.loading=!1}}});var H=s(85072),q=s.n(H),z=s(97825),Z=s.n(z),W=s(77659),Y=s.n(W),K=s(55056),Q=s.n(K),J=s(10540),ee=s.n(J),te=s(41113),ie=s.n(te),se=s(41732),re={};re.styleTagTransform=ie(),re.setAttributes=Q(),re.insert=Y().bind(null,"head"),re.domAPI=Z(),re.insertStyleElement=ee(),q()(se.A,re),se.A&&se.A.locals&&se.A.locals;const ne=(0,w.A)(X,(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}}):[t("NcSelectTags",{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\t"+e._s(e.t("systemtags","No tags to select, type to create a new tag"))+"\n\t\t\t")]},proxy:!0}])})]],2)}),[],!1,null,"5ded81d5",null).exports,oe=(0,G.YK)().setApp("files").detectUser().build(),ae={name:"Sidebar",components:{LegacyView:L,NcActionButton:y.A,NcAppSidebar:b.N,NcDateTime:I.A,NcEmptyContent:v.A,NcIconSvgWrapper:N.A,SidebarTab:S,SystemTags:ne,NcUserBubble:O.A},setup:()=>({currentUser:(0,o.HW)(),mdiStar:f.ZL5,mdiStarOutline:f.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`${c.PY}/${c.lJ}${(0,u.O0)(this.file)}`},activeTab(){return this.Sidebar.activeTab},size(){return(0,c.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.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,a.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,d.B1)("files:node:deleted",this.onNodeDeleted),window.addEventListener("resize",this.handleWindowResize),this.handleWindowResize()},beforeDestroy(){(0,d.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(h.I.Link)>-1||e.shareTypes.indexOf(h.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){oe.error("Error while setting tab active state",{error:e,id:t.id,tab:t})}}))},async toggleStarred(e){try{await(0,m.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=t?c.vd:c.ZH;(0,d.Ic)(e?"files:favorites:added":"files:favorites:removed",new i({fileid:this.fileInfo.id,source:this.davPath,root:`/files/${(0,o.HW)().uid}`,mime:t?void 0:this.fileInfo.mimetype})),this.fileInfo.isFavourited=e}catch(e){(0,l.Qg)(t("files","Unable to change the favourite state of the file")),oe.error("Unable to change favourite 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:E()("body")})},toggleTags(){this.showTagsDefault=this.showTags=!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.fileInfo=await async function(e){const t=await(0,m.Ay)({method:"PROPFIND",url:e,data:(0,c.VL)()}),i=OC.Files.getClient()._client.parseMultiStatus(t.data),s=OC.Files.getClient()._parseFileInfo(i[0]);return s.get=e=>s[e],s.isDirectory=()=>"httpd/unix-directory"===s.mimetype,s.canEdit=()=>Boolean(s.permissions&OC.PERMISSION_UPDATE),s}(this.davPath),this.fileInfo.dir=this.file.split("/").slice(0,-1).join("/"),this.node=await(async e=>{const t=(0,c.VL)(),i=await g.stat(`${c.lJ}${e.path}`,{details:!0,data:t});return(0,c.Al)(i.data)})({path:(this.fileInfo.path+"/"+this.fileInfo.name).replace("//","/")}),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,d.Ic)("files:sidebar:opening")},handleOpened(){(0,d.Ic)("files:sidebar:opened")},handleClosing(){(0,d.Ic)("files:sidebar:closing")},handleClosed(){(0,d.Ic)("files:sidebar:closed")},handleWindowResize(){this.hasLowHeight=document.documentElement.clientHeight<1024}}};var le=s(39986),de={};de.styleTagTransform=ie(),de.setAttributes=Q(),de.insert=Y().bind(null,"head"),de.domAPI=Z(),de.insertStyleElement=ee(),q()(le.A,de),le.A&&le.A.locals&&le.A.locals;const ce=(0,w.A)(ae,(function(){var e=this,t=e._self._c;return 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},on:{"has-tags":t=>e.showTags=t}}):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,"5066bd3e",null).exports;var ue=s(42838),pe=s.n(ue);function he(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}r.Ay.prototype.t=n.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:s,mount:r,setIsActive:n,update:o,destroy:a,enabled:l,scrollBottomReached:d}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(he(this,"_id",void 0),he(this,"_name",void 0),he(this,"_icon",void 0),he(this,"_iconSvgSanitized",void 0),he(this,"_mount",void 0),he(this,"_setIsActive",void 0),he(this,"_update",void 0),he(this,"_destroy",void 0),he(this,"_enabled",void 0),he(this,"_scrollBottomReached",void 0),void 0===l&&(l=()=>!0),void 0===d&&(d=()=>{}),"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 s)throw new Error("Missing valid string for icon or iconSvg argument");if("function"!=typeof r)throw new Error("The mount argument should be a function");if(void 0!==n&&"function"!=typeof n)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=e,this._name=t,this._icon=i,this._mount=r,this._setIsActive=n,this._update=o,this._destroy=a,this._enabled=l,this._scrollBottomReached=d,"string"==typeof s&&(this._iconSvgSanitized=pe().sanitize(s))}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");if(e&&!document.getElementById("app-sidebar")){const t=document.createElement("div");t.id="app-sidebar",e.appendChild(t)}const t=new(r.Ay.extend(ce))({name:"SidebarRoot"});t.$mount("#app-sidebar"),window.OCA.Files.Sidebar.open=t.open,window.OCA.Files.Sidebar.close=t.close,window.OCA.Files.Sidebar.setFullScreenMode=t.setFullScreenMode,window.OCA.Files.Sidebar.setShowTagsDefault=t.setShowTagsDefault}))},39986:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var s=i(71354),r=i.n(s),n=i(76314),o=i.n(n)()(r());o.push([e.id,'.app-sidebar--has-preview[data-v-5066bd3e] .app-sidebar-header__figure{background-size:cover}.app-sidebar--has-preview[data-v-5066bd3e][data-mimetype="text/plain"] .app-sidebar-header__figure,.app-sidebar--has-preview[data-v-5066bd3e][data-mimetype="text/markdown"] .app-sidebar-header__figure{background-size:contain}.app-sidebar--full[data-v-5066bd3e]{position:fixed !important;z-index:2025 !important;top:0 !important;height:100% !important}.app-sidebar[data-v-5066bd3e] .app-sidebar-header__description{margin:0 16px 4px 16px !important}.app-sidebar .svg-icon[data-v-5066bd3e] svg{width:20px;height:20px;fill:currentColor}.sidebar__subname[data-v-5066bd3e]{display:flex;align-items:center;gap:0 8px}.sidebar__subname-separator[data-v-5066bd3e]{display:inline-block;font-weight:bold !important}.sidebar__subname .user-bubble__wrapper[data-v-5066bd3e]{display:inline-flex}.sidebar__description[data-v-5066bd3e]{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",sourceRoot:""}]);const a=o},41732:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var s=i(71354),r=i.n(s),n=i(76314),o=i.n(n)()(r());o.push([e.id,".system-tags[data-v-5ded81d5]{display:flex;flex-direction:column}.system-tags__select[data-v-5ded81d5]{width:100%}.system-tags__select[data-v-5ded81d5] .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",sourceRoot:""}]);const a=o},42634:()=>{},63779:()=>{},77199:()=>{},59169:()=>{},86833:()=>{},35810:(e,t,i)=>{"use strict";i.d(t,{Al:()=>s.r,H4:()=>s.c,PY:()=>s.b,Q$:()=>s.e,R3:()=>s.n,VL:()=>s.l,ZH:()=>s.q,lJ:()=>s.d,pt:()=>s.F,ur:()=>u,v7:()=>d,vd:()=>s.s});var s=i(29719),r=(i(43627),i(53334)),n=i(380),o=i(65606);Error;const a=["B","KB","MB","GB","TB","PB"],l=["B","KiB","MiB","GiB","TiB","PiB"];function d(e,t=!1,i=!1,s=!1){i=i&&!s,"string"==typeof e&&(e=Number(e));let n=e>0?Math.floor(Math.log(e)/Math.log(s?1e3:1024)):0;n=Math.min((i?l.length:a.length)-1,n);const o=i?l[n]:a[n];let d=(e/Math.pow(s?1e3:1024,n)).toFixed(1);return!0===t&&0===n?("0.0"!==d?"< 1 ":"0 ")+(i?l[1]:a[1]):(d=n<2?parseFloat(d).toFixed(0):parseFloat(d).toLocaleString((0,r.lO)()),d+" "+o)}function c(e){return e instanceof Date?e.toISOString():String(e)}function u(e,t={}){const i={sortingMode:"basename",sortingOrder:"asc",...t};return function(e,t,i){i=i??[];const s=(t=t??[e=>e]).map(((e,t)=>"asc"===(i[t]??"asc")?1:-1)),n=Intl.Collator([(0,r.Z0)(),(0,r.lO)()],{numeric:!0,usage:"sort"});return[...e].sort(((e,i)=>{for(const[r,o]of t.entries()){const t=n.compare(c(o(e)),c(o(i)));if(0!==t)return t*s[r]}return 0}))}(e,[...i.sortFavoritesFirst?[e=>1!==e.attributes?.favorite]:[],...i.sortFoldersFirst?[e=>"folder"!==e.type]:[],..."basename"!==i.sortingMode?[e=>e[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])}var p={};!function(e){const t=":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",i="["+t+"]["+t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",s=new RegExp("^"+i+"$");e.isExist=function(e){return void 0!==e},e.isEmptyObject=function(e){return 0===Object.keys(e).length},e.merge=function(e,t,i){if(t){const s=Object.keys(t),r=s.length;for(let n=0;n<r;n++)e[s[n]]="strict"===i?[t[s[n]]]:t[s[n]]}},e.getValue=function(t){return e.isExist(t)?t:""},e.isName=function(e){return!(null==s.exec(e))},e.getAllMatches=function(e,t){const i=[];let s=t.exec(e);for(;s;){const r=[];r.startIndex=t.lastIndex-s[0].length;const n=s.length;for(let e=0;e<n;e++)r.push(s[e]);i.push(r),s=t.exec(e)}return i},e.nameRegexp=i}(p);new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");var h={};const f={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(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,i){return e}};h.buildOptions=function(e){return Object.assign({},f,e)},h.defaultOptions=f,!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");var g={};function m(e,t,i){let s;const r={};for(let n=0;n<e.length;n++){const o=e[n],a=A(o);let l="";if(l=void 0===i?a:i+"."+a,a===t.textNodeName)void 0===s?s=o[a]:s+=""+o[a];else{if(void 0===a)continue;if(o[a]){let e=m(o[a],t,l);const i=b(e,t);o[":@"]?E(e,o[":@"],l,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==r[a]&&r.hasOwnProperty(a)?(Array.isArray(r[a])||(r[a]=[r[a]]),r[a].push(e)):t.isArray(a,l,i)?r[a]=[e]:r[a]=e}}}return"string"==typeof s?s.length>0&&(r[t.textNodeName]=s):void 0!==s&&(r[t.textNodeName]=s),r}function A(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const i=t[e];if(":@"!==i)return i}}function E(e,t,i,s){if(t){const r=Object.keys(t),n=r.length;for(let o=0;o<n;o++){const n=r[o];s.isArray(n,i+"."+n,!0,!0)?e[n]=[t[n]]:e[n]=t[n]}}}function b(e,t){const{textNodeName:i}=t,s=Object.keys(e).length;return 0===s||!(1!==s||!e[i]&&"boolean"!=typeof e[i]&&0!==e[i])}g.prettify=function(e,t){return m(e,t)};const{buildOptions:y}=h,{prettify:I}=g;function v(e,t,i,s){let r="",n=!1;for(let o=0;o<e.length;o++){const a=e[o],l=N(a);if(void 0===l)continue;let d="";if(d=0===i.length?l:`${i}.${l}`,l===t.textNodeName){let e=a[l];T(d,t)||(e=t.tagValueProcessor(l,e),e=w(e,t)),n&&(r+=s),r+=e,n=!1;continue}if(l===t.cdataPropName){n&&(r+=s),r+=`<![CDATA[${a[l][0][t.textNodeName]}]]>`,n=!1;continue}if(l===t.commentPropName){r+=s+`\x3c!--${a[l][0][t.textNodeName]}--\x3e`,n=!0;continue}if("?"===l[0]){const e=O(a[":@"],t),i="?xml"===l?"":s;let o=a[l][0][t.textNodeName];o=0!==o.length?" "+o:"",r+=i+`<${l}${o}${e}?>`,n=!0;continue}let c=s;""!==c&&(c+=t.indentBy);const u=s+`<${l}${O(a[":@"],t)}`,p=v(a[l],t,d,c);-1!==t.unpairedTags.indexOf(l)?t.suppressUnpairedNode?r+=u+">":r+=u+"/>":p&&0!==p.length||!t.suppressEmptyNode?p&&p.endsWith(">")?r+=u+`>${p}${s}</${l}>`:(r+=u+">",p&&""!==s&&(p.includes("/>")||p.includes("</"))?r+=s+t.indentBy+p+s:r+=p,r+=`</${l}>`):r+=u+"/>",n=!0}return r}function N(e){const t=Object.keys(e);for(let i=0;i<t.length;i++){const s=t[i];if(e.hasOwnProperty(s)&&":@"!==s)return s}}function O(e,t){let i="";if(e&&!t.ignoreAttributes)for(let s in e){if(!e.hasOwnProperty(s))continue;let r=t.attributeValueProcessor(s,e[s]);r=w(r,t),!0===r&&t.suppressBooleanAttributes?i+=` ${s.substr(t.attributeNamePrefix.length)}`:i+=` ${s.substr(t.attributeNamePrefix.length)}="${r}"`}return i}function T(e,t){let i=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let s in t.stopNodes)if(t.stopNodes[s]===e||t.stopNodes[s]==="*."+i)return!0;return!1}function w(e,t){if(e&&e.length>0&&t.processEntities)for(let i=0;i<t.entities.length;i++){const s=t.entities[i];e=e.replace(s.regex,s.val)}return e}const L=function(e,t){let i="";return t.format&&t.indentBy.length>0&&(i="\n"),v(e,t,"",i)},C=function(e){return"function"==typeof e?e:Array.isArray(e)?t=>{for(const i of e){if("string"==typeof i&&t===i)return!0;if(i instanceof RegExp&&i.test(t))return!0}}:()=>!1},S={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},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 R(e){this.options=Object.assign({},S,e),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=C(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=x),this.processTextOrObjNode=_,this.options.format?(this.indentate=F,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function _(e,t,i,s){const r=this.j2x(e,i+1,s.concat(t));return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,r.attrStr,i):this.buildObjectNode(r.val,t,r.attrStr,i)}function F(e){return this.options.indentBy.repeat(e)}function x(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}R.prototype.build=function(e){return this.options.preserveOrder?L(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},R.prototype.j2x=function(e,t,i){let s="",r="";const n=i.join(".");for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o))if(void 0===e[o])this.isAttribute(o)&&(r+="");else if(null===e[o])this.isAttribute(o)?r+="":"?"===o[0]?r+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+o+"/"+this.tagEndChar;else if(e[o]instanceof Date)r+=this.buildTextValNode(e[o],o,"",t);else if("object"!=typeof e[o]){const i=this.isAttribute(o);if(i&&!this.ignoreAttributesFn(i,n))s+=this.buildAttrPairStr(i,""+e[o]);else if(!i)if(o===this.options.textNodeName){let t=this.options.tagValueProcessor(o,""+e[o]);r+=this.replaceEntitiesValue(t)}else r+=this.buildTextValNode(e[o],o,"",t)}else if(Array.isArray(e[o])){const s=e[o].length;let n="",a="";for(let l=0;l<s;l++){const s=e[o][l];if(void 0===s);else if(null===s)"?"===o[0]?r+=this.indentate(t)+"<"+o+"?"+this.tagEndChar:r+=this.indentate(t)+"<"+o+"/"+this.tagEndChar;else if("object"==typeof s)if(this.options.oneListGroup){const e=this.j2x(s,t+1,i.concat(o));n+=e.val,this.options.attributesGroupName&&s.hasOwnProperty(this.options.attributesGroupName)&&(a+=e.attrStr)}else n+=this.processTextOrObjNode(s,o,t,i);else if(this.options.oneListGroup){let e=this.options.tagValueProcessor(o,s);e=this.replaceEntitiesValue(e),n+=e}else n+=this.buildTextValNode(s,o,"",t)}this.options.oneListGroup&&(n=this.buildObjectNode(n,o,a,t)),r+=n}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){const t=Object.keys(e[o]),i=t.length;for(let r=0;r<i;r++)s+=this.buildAttrPairStr(t[r],""+e[o][t[r]])}else r+=this.processTextOrObjNode(e[o],o,t,i);return{attrStr:s,val:r}},R.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},R.prototype.buildObjectNode=function(e,t,i,s){if(""===e)return"?"===t[0]?this.indentate(s)+"<"+t+i+"?"+this.tagEndChar:this.indentate(s)+"<"+t+i+this.closeTag(t)+this.tagEndChar;{let r="</"+t+this.tagEndChar,n="";return"?"===t[0]&&(n="?",r=""),!i&&""!==i||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===n.length?this.indentate(s)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(s)+"<"+t+i+n+this.tagEndChar+e+this.indentate(s)+r:this.indentate(s)+"<"+t+i+n+">"+e+r}},R.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},R.prototype.buildTextValNode=function(e,t,i,s){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(s)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(s)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(s)+"<"+t+i+"?"+this.tagEndChar;{let r=this.options.tagValueProcessor(t,e);return r=this.replaceEntitiesValue(r),""===r?this.indentate(s)+"<"+t+i+this.closeTag(t)+this.tagEndChar:this.indentate(s)+"<"+t+i+">"+r+"</"+t+this.tagEndChar}},R.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const i=this.options.entities[t];e=e.replace(i.regex,i.val)}return e};var $="object"==typeof o&&o.env&&o.env.NODE_DEBUG&&/\bsemver\b/i.test(o.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},P={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},D={exports:{}};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:r}=P,n=$,o=(t=e.exports={}).re=[],a=t.safeRe=[],l=t.src=[],d=t.t={};let c=0;const u="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",r],[u,s]],h=(e,t,i)=>{const s=(e=>{for(const[t,i]of p)e=e.split(`${t}*`).join(`${t}{0,${i}}`).split(`${t}+`).join(`${t}{1,${i}}`);return e})(t),r=c++;n(e,r,t),d[e]=r,l[r]=t,o[r]=new RegExp(t,i?"g":void 0),a[r]=new RegExp(s,i?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${u}*`),h("MAINVERSION",`(${l[d.NUMERICIDENTIFIER]})\\.(${l[d.NUMERICIDENTIFIER]})\\.(${l[d.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${l[d.NUMERICIDENTIFIERLOOSE]})\\.(${l[d.NUMERICIDENTIFIERLOOSE]})\\.(${l[d.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${l[d.NUMERICIDENTIFIER]}|${l[d.NONNUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${l[d.NUMERICIDENTIFIERLOOSE]}|${l[d.NONNUMERICIDENTIFIER]})`),h("PRERELEASE",`(?:-(${l[d.PRERELEASEIDENTIFIER]}(?:\\.${l[d.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${l[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[d.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${u}+`),h("BUILD",`(?:\\+(${l[d.BUILDIDENTIFIER]}(?:\\.${l[d.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${l[d.MAINVERSION]}${l[d.PRERELEASE]}?${l[d.BUILD]}?`),h("FULL",`^${l[d.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${l[d.MAINVERSIONLOOSE]}${l[d.PRERELEASELOOSE]}?${l[d.BUILD]}?`),h("LOOSE",`^${l[d.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${l[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${l[d.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${l[d.XRANGEIDENTIFIER]})(?:\\.(${l[d.XRANGEIDENTIFIER]})(?:\\.(${l[d.XRANGEIDENTIFIER]})(?:${l[d.PRERELEASE]})?${l[d.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${l[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[d.XRANGEIDENTIFIERLOOSE]})(?:${l[d.PRERELEASELOOSE]})?${l[d.BUILD]}?)?)?`),h("XRANGE",`^${l[d.GTLT]}\\s*${l[d.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${l[d.GTLT]}\\s*${l[d.XRANGEPLAINLOOSE]}$`),h("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`),h("COERCE",`${l[d.COERCEPLAIN]}(?:$|[^\\d])`),h("COERCEFULL",l[d.COERCEPLAIN]+`(?:${l[d.PRERELEASE]})?(?:${l[d.BUILD]})?(?:$|[^\\d])`),h("COERCERTL",l[d.COERCE],!0),h("COERCERTLFULL",l[d.COERCEFULL],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${l[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",h("TILDE",`^${l[d.LONETILDE]}${l[d.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${l[d.LONETILDE]}${l[d.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${l[d.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",h("CARET",`^${l[d.LONECARET]}${l[d.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${l[d.LONECARET]}${l[d.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${l[d.GTLT]}\\s*(${l[d.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${l[d.GTLT]}\\s*(${l[d.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${l[d.GTLT]}\\s*(${l[d.LOOSEPLAIN]}|${l[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${l[d.XRANGEPLAIN]})\\s+-\\s+(${l[d.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${l[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[d.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(D,D.exports);var M=D.exports;Object.freeze({loose:!0}),Object.freeze({});const B=/^[0-9]+$/,U=(e,t)=>{const i=B.test(e),s=B.test(t);return i&&s&&(e=+e,t=+t),e===t?0:i&&!s?-1:s&&!i?1:e<t?-1:1};var G={compareIdentifiers:U,rcompareIdentifiers:(e,t)=>U(t,e)};const{MAX_LENGTH:j,MAX_SAFE_INTEGER:k}=P,{safeRe:V,t:X}=M,{compareIdentifiers:H}=G;n.m}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return r[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=r,e=[],o.O=(t,i,s,r)=>{if(!i){var n=1/0;for(c=0;c<e.length;c++){i=e[c][0],s=e[c][1],r=e[c][2];for(var a=!0,l=0;l<i.length;l++)(!1&r||n>=r)&&Object.keys(o.O).every((e=>o.O[e](i[l])))?i.splice(l--,1):(a=!1,r<n&&(n=r));if(a){e.splice(c--,1);var d=s();void 0!==d&&(t=d)}}return t}r=r||0;for(var c=e.length;c>0&&e[c-1][2]>r;c--)e[c]=e[c-1];e[c]=[i,s,r]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,i)=>(o.f[i](e,t),t)),[])),o.u=e=>e+"-"+e+".js?v="+{5706:"3153330af47fc26a725a",6127:"da37b69cd9ee64a1836b"}[e],o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i={},s="nextcloud:",o.l=(e,t,r,n)=>{if(i[e])i[e].push(t);else{var a,l;if(void 0!==r)for(var d=document.getElementsByTagName("script"),c=0;c<d.length;c++){var u=d[c];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==s+r){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",s+r),a.src=e),i[e]=[t];var p=(t,s)=>{a.onerror=a.onload=null,clearTimeout(h);var r=i[e];if(delete i[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(s))),t)return t(s)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),l&&document.head.appendChild(a)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.j=4763,(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.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 s=i.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=i[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{o.b=document.baseURI||self.location.href;var e={4763:0};o.f.j=(t,i)=>{var s=o.o(e,t)?e[t]:void 0;if(0!==s)if(s)i.push(s[2]);else{var r=new Promise(((i,r)=>s=e[t]=[i,r]));i.push(s[2]=r);var n=o.p+o.u(t),a=new Error;o.l(n,(i=>{if(o.o(e,t)&&(0!==(s=e[t])&&(e[t]=void 0),s)){var r=i&&("load"===i.type?"missing":i.type),n=i&&i.target&&i.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+n+")",a.name="ChunkLoadError",a.type=r,a.request=n,s[1](a)}}),"chunk-"+t,t)}},o.O.j=t=>0===e[t];var t=(t,i)=>{var s,r,n=i[0],a=i[1],l=i[2],d=0;if(n.some((t=>0!==e[t]))){for(s in a)o.o(a,s)&&(o.m[s]=a[s]);if(l)var c=l(o)}for(t&&t(i);d<n.length;d++)r=n[d],o.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return o.O(c)},i=self.webpackChunknextcloud=self.webpackChunknextcloud||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})(),o.nc=void 0;var a=o.O(void 0,[4208],(()=>o(55175)));a=o.O(a)})();
- //# sourceMappingURL=files-sidebar.js.map?v=6f4c2ec7032197517ad6
|