const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('photos', '', 'js/FoldersView-Dj623CV_.chunk.mjs'),window.OC.filePath('photos', '', 'js/index-XmYygNaN.chunk.mjs'),window.OC.filePath('photos', '', 'js/vue.runtime.esm-Ct3_M7aQ.chunk.mjs'),window.OC.filePath('photos', '', 'js/index-DdKmqUaK-BlSvvbCn.chunk.mjs'),window.OC.filePath('photos', '', 'js/preload-helper-Dh9HmuEY.chunk.mjs'),window.OC.filePath('photos', '', 'js/index-BMeBqg0T.chunk.mjs'),window.OC.filePath('photos', '', 'css/index-BI5EMzdB.chunk.css'),window.OC.filePath('photos', '', 'js/index-_ghYQSTa.chunk.mjs'),window.OC.filePath('photos', '', 'js/useHotKey-CXYH7Vg8.chunk.mjs'),window.OC.filePath('photos', '', 'js/NcActionButton-CuVNJJtW-78GF8FR5.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcActionButton-CuVNJJtW-DndYZcrz.chunk.css'),window.OC.filePath('photos', '', 'js/NcProgressBar-DegJ2JjE-FoyaEkrc.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcProgressBar-DegJ2JjE-C6EnQdKV.chunk.css'),window.OC.filePath('photos', '', 'js/index-VV9wNENq.chunk.mjs'),window.OC.filePath('photos', '', 'js/dialog-DMSB8C_5.chunk.mjs'),window.OC.filePath('photos', '', 'css/index-DdKmqUaK-Dbzl6yZq.chunk.css'),window.OC.filePath('photos', '', 'js/NcEmptyContent-C3BLUUdi.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcEmptyContent-CupRzXxM.chunk.css'),window.OC.filePath('photos', '', 'js/icons-VGG7keIQ.chunk.mjs'),window.OC.filePath('photos', '', 'js/AbortControllerMixin-KqbYNBDv.chunk.mjs'),window.OC.filePath('photos', '', 'js/HeaderNavigation-Drss-bOM.chunk.mjs'),window.OC.filePath('photos', '', 'css/HeaderNavigation-M6k4iIbz.chunk.css'),window.OC.filePath('photos', '', 'js/fileFetcher-EOUUgMjG.chunk.mjs'),window.OC.filePath('photos', '', 'css/FoldersView-DSJBIW8U.chunk.css'),window.OC.filePath('photos', '', 'js/AlbumsView-ch-kscP4.chunk.mjs'),window.OC.filePath('photos', '', 'js/AlbumForm-B5HQDBP6.chunk.mjs'),window.OC.filePath('photos', '', 'js/NcTextField-o_8gWurX-D9H3ZKW0.chunk.mjs'),window.OC.filePath('photos', '', 'js/useModelMigration-EhAWvqDD-wVDp4GUR.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcTextField-o_8gWurX-BoQ379sd.chunk.css'),window.OC.filePath('photos', '', 'js/PhotosFiltersInput-V84ZfLNi.chunk.mjs'),window.OC.filePath('photos', '', 'js/NcSelect-CjUzohn5-BzxyFHzp.chunk.mjs'),window.OC.filePath('photos', '', 'js/NcAvatar-YSp2ORHc-k3rtAvRh.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcAvatar-YSp2ORHc-DAJmDZPH.chunk.css'),window.OC.filePath('photos', '', 'css/NcSelect-CjUzohn5-CrE8uTZw.chunk.css'),window.OC.filePath('photos', '', 'js/NcDateTimePicker-CijBajMH.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcDateTimePicker-B6Pi3K9l.chunk.css'),window.OC.filePath('photos', '', 'js/NcDialog-CKgpZOiy-Yt0iPUKp.chunk.mjs'),window.OC.filePath('photos', '', 'js/NcDateTime-DshRFtUU-DhtBMvqa.chunk.mjs'),window.OC.filePath('photos', '', 'js/collectionFetcher-Bc_5r3B7.chunk.mjs'),window.OC.filePath('photos', '', 'css/PhotosFiltersInput-BHkYWDzh.chunk.css'),window.OC.filePath('photos', '', 'js/index-x9vhq81Z.chunk.mjs'),window.OC.filePath('photos', '', 'js/FetchCollectionContentMixin-BXizDLoQ.chunk.mjs'),window.OC.filePath('photos', '', 'css/AlbumForm-DyN-n8K3.chunk.css'),window.OC.filePath('photos', '', 'js/CollectionsList-DvZBXyrk.chunk.mjs'),window.OC.filePath('photos', '', 'css/CollectionsList-DKsrVzWp.chunk.css'),window.OC.filePath('photos', '', 'js/FetchCollectionsMixin-CqTYuk_r.chunk.mjs'),window.OC.filePath('photos', '', 'css/AlbumsView-Bo_gBDuH.chunk.css'),window.OC.filePath('photos', '', 'js/AlbumContent-Cz6sddgl.chunk.mjs'),window.OC.filePath('photos', '', 'js/ActionFavorite-bRkKTDIn.chunk.mjs'),window.OC.filePath('photos', '', 'js/CollectionContent-DjRoRvK_.chunk.mjs'),window.OC.filePath('photos', '', 'js/FileComponent-Z0cvFFM3.chunk.mjs'),window.OC.filePath('photos', '', 'js/NcCheckboxRadioSwitch-VeztTzpz-CXqdOpK4.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcCheckboxRadioSwitch-VeztTzpz-CdJ-sA3l.chunk.css'),window.OC.filePath('photos', '', 'css/FileComponent-SjsvQy4O.chunk.css'),window.OC.filePath('photos', '', 'js/FilesSelectionMixin-JLsUiKnU.chunk.mjs'),window.OC.filePath('photos', '', 'css/FilesSelectionMixin-DmEwu1vg.chunk.css'),window.OC.filePath('photos', '', 'css/CollectionContent-CbeUv2Tw.chunk.css'),window.OC.filePath('photos', '', 'js/PhotosPicker-Co0d4oE2.chunk.mjs'),window.OC.filePath('photos', '', 'js/NcNoteCard-B0DAcORy.chunk.mjs'),window.OC.filePath('photos', '', 'js/FetchFilesMixin-Dh0XuSuT.chunk.mjs'),window.OC.filePath('photos', '', 'js/PhotoSearch-DdDD9daK.chunk.mjs'),window.OC.filePath('photos', '', 'js/FilesByMonthMixin-BmZxTSkI.chunk.mjs'),window.OC.filePath('photos', '', 'css/PhotosPicker-DE2A0Q0x.chunk.css'),window.OC.filePath('photos', '', 'css/AlbumContent-B4Usks2I.chunk.css'),window.OC.filePath('photos', '', 'js/SharedAlbums-GGuqkf-J.chunk.mjs'),window.OC.filePath('photos', '', 'js/NcUserBubble-B3-E-5F5-PCL0TJHA.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcUserBubble-B3-E-5F5-C6u6hz5L.chunk.css'),window.OC.filePath('photos', '', 'css/SharedAlbums-KlGsfAoO.chunk.css'),window.OC.filePath('photos', '', 'js/SharedAlbumContent-9P45Z4uh.chunk.mjs'),window.OC.filePath('photos', '', 'css/SharedAlbumContent-BsbERqq9.chunk.css'),window.OC.filePath('photos', '', 'js/PublicAlbumContent-NMWWk0wJ.chunk.mjs'),window.OC.filePath('photos', '', 'js/NcBreadcrumbs-CFRjXqRg-CpAoZ80-.chunk.mjs'),window.OC.filePath('photos', '', 'js/index-CeB-M9CM.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcBreadcrumbs-CFRjXqRg-lGay6tH6.chunk.css'),window.OC.filePath('photos', '', 'js/NcAppSettingsSection-Bl2-D3_g-DMjCM07_.chunk.mjs'),window.OC.filePath('photos', '', 'js/NcVNodes-C0MrhmVc.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcAppSettingsSection-Bl2-D3_g-C7JNUOt1.chunk.css'),window.OC.filePath('photos', '', 'js/NcListItem-DfaWGP5A-eZQtYwBb.chunk.mjs'),window.OC.filePath('photos', '', 'css/NcListItem-DfaWGP5A-DGi5g68f.chunk.css'),window.OC.filePath('photos', '', 'css/PublicAlbumContent-DoxtF8PM.chunk.css'),window.OC.filePath('photos', '', 'js/PlacesView-DmE6kvTj.chunk.mjs'),window.OC.filePath('photos', '', 'css/PlacesView-CVBtM1GJ.chunk.css'),window.OC.filePath('photos', '', 'js/PlaceContent-BPchkDTy.chunk.mjs'),window.OC.filePath('photos', '', 'css/PlaceContent-B1fHHBZd.chunk.css'),window.OC.filePath('photos', '', 'js/TagsView-BYg4BmER.chunk.mjs'),window.OC.filePath('photos', '', 'css/TagsView-C4OIWFt1.chunk.css'),window.OC.filePath('photos', '', 'js/TagContent-DjVq0Rp9.chunk.mjs'),window.OC.filePath('photos', '', 'css/TagContent-Bvp0UERJ.chunk.css'),window.OC.filePath('photos', '', 'js/TimelineView-oBWAVriN.chunk.mjs'),window.OC.filePath('photos', '', 'js/filters-DO7HFMym.chunk.mjs'),window.OC.filePath('photos', '', 'css/filters-tvMIxE8P.chunk.css'),window.OC.filePath('photos', '', 'css/TimelineView-BcEXEwdc.chunk.css'),window.OC.filePath('photos', '', 'js/FacesView-BhXE6KL0.chunk.mjs'),window.OC.filePath('photos', '', 'js/FaceCover-NZ7niz3k.chunk.mjs'),window.OC.filePath('photos', '', 'css/FaceCover-Dh5LT0oL.chunk.css'),window.OC.filePath('photos', '', 'css/FacesView-BnR83shV.chunk.css'),window.OC.filePath('photos', '', 'js/FaceContent-DMIngLh-.chunk.mjs'),window.OC.filePath('photos', '', 'js/FaceMergeForm-BNC1lU6c.chunk.mjs'),window.OC.filePath('photos', '', 'css/FaceMergeForm-DL6EU9Jq.chunk.css'),window.OC.filePath('photos', '', 'css/FaceContent-DL1jP81r.chunk.css'),window.OC.filePath('photos', '', 'js/UnassignedFaces-BGIdLg8P.chunk.mjs'),window.OC.filePath('photos', '', 'css/UnassignedFaces-DDgVDaG0.chunk.css')])))=>i.map(i=>d[i]); import{b as ie,c as Ct,i as Oe,f as Le,l as V,e as Y,V as H,_ as Q,t as x}from"./vue.runtime.esm-Ct3_M7aQ.chunk.mjs";import{n as B,r as re,u as $e,N as ae,a as oe,b as Ve,d as je,e as Ie,i as He,v as Be}from"./index-BMeBqg0T.chunk.mjs";import{_ as S}from"./preload-helper-Dh9HmuEY.chunk.mjs";const bt="photos";var ht={},Rt;function qe(){if(Rt)return ht;Rt=1,ht.sync=function(e,n,i){var r=(i||{}).moduleName||"route";e.registerModule(r,{namespaced:!0,state:t(n.currentRoute),mutations:{ROUTE_CHANGED:function(p,f){e.state[r]=t(f.to,f.from)}}});var a=!1,o,s=e.watch(function(p){return p[r]},function(p){var f=p.fullPath;f!==o&&(o!=null&&(a=!0,n.push(p)),o=f)},{sync:!0}),l=n.afterEach(function(p,f){if(a){a=!1;return}o=p.fullPath,e.commit(r+"/ROUTE_CHANGED",{to:p,from:f})});return function(){l?.(),s?.(),e.unregisterModule(r)}};function t(e,n){var i={name:e.name,path:e.path,hash:e.hash,query:e.query,params:e.params,fullPath:e.fullPath,meta:e.meta};return n&&(i.from=t(n)),Object.freeze(i)}return ht}var sr=qe(),Fe=Object.defineProperty,Ue=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,Nt=(t,e,n)=>e in t?Fe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,We=(t,e)=>{for(var n in e||(e={}))se.call(e,n)&&Nt(t,n,e[n]);if(tt)for(var n of tt(e))le.call(e,n)&&Nt(t,n,e[n]);return t},Ge=(t,e)=>Ue(t,Ze(e)),Ke=(t,e)=>{var n={};for(var i in t)se.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&tt)for(var i of tt(t))e.indexOf(i)<0&&le.call(t,i)&&(n[i]=t[i]);return n};function pe(t,e,n,i,r,a,o,s){var l=typeof t=="function"?t.options:t;e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0);var p;if(r&&(p=r),p)if(l.functional){l._injectStyles=p;var f=l.render;l.render=function(v,h){return p.call(h),f(v,h)}}else{var m=l.beforeCreate;l.beforeCreate=m?[].concat(m,p):[p]}return{exports:t,options:l}}const Xe={name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,e)=>(t[e.id]=e)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,e){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(t,e){let n=0;this.panes=this.panes.map((i,r)=>(i.size=r===e?i.max:i.min,r!==e&&(n+=i.min),i)),this.panes[e].size-=n,this.$emit("pane-maximize",this.panes[e])},onPaneClick(t,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(t){const e=this.container.getBoundingClientRect(),{clientX:n,clientY:i}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:n-e.left,y:i-e.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=e-t),t*100/e},calculatePanesSize(t){const e=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const i=0+(this.pushOtherPanes?0:n.prevPanesSize),r=100-(this.pushOtherPanes?0:n.nextPanesSize),a=Math.max(Math.min(this.getCurrentDragPercentage(t),r),i);let o=[e,e+1],s=this.panes[o[0]]||null,l=this.panes[o[1]]||null;const p=s.max<100&&a>=s.max+n.prevPanesSize,f=l.max<100&&a<=100-(l.max+this.sumNextPanesSize(e+1));if(p||f){p?(s.size=s.max,l.size=Math.max(100-s.max-n.prevPanesSize-n.nextPanesSize,0)):(s.size=Math.max(100-l.max-n.prevPanesSize-this.sumNextPanesSize(e+1),0),l.size=l.max);return}if(this.pushOtherPanes){const m=this.doPushOtherPanes(n,a);if(!m)return;({sums:n,panesToResize:o}=m),s=this.panes[o[0]]||null,l=this.panes[o[1]]||null}s!==null&&(s.size=Math.min(Math.max(a-n.prevPanesSize-n.prevReachedMinPanes,s.min),s.max)),l!==null&&(l.size=Math.min(Math.max(100-a-n.nextPanesSize-n.nextReachedMinPanes,l.min),l.max))},doPushOtherPanes(t,e){const n=this.touch.activeSplitter,i=[n,n+1];return e{a>i[0]&&a<=n&&(r.size=r.min,t.prevReachedMinPanes+=r.min)}),t.prevPanesSize=this.sumPrevPanesSize(i[0]),i[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((r,a)=>{a>0&&a<=n&&(r.size=r.min,t.prevReachedMinPanes+=r.min)}),this.panes[i[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):e>100-t.nextPanesSize-this.panes[i[1]].min&&(i[1]=this.findNextExpandedPane(n).index,t.nextReachedMinPanes=0,i[1]>n+1&&this.panes.forEach((r,a)=>{a>n&&a{a=n+1&&(r.size=r.min,t.nextReachedMinPanes+=r.min)}),this.panes[i[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:i}},sumPrevPanesSize(t){return this.panes.reduce((e,n,i)=>e+(ie+(i>t+1?n.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(e=>e.indexe.min)||{}},findNextExpandedPane(t){return this.panes.find(e=>e.index>t+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const e=t.classList.contains("splitpanes__pane"),n=t.classList.contains("splitpanes__splitter");if(!e&&!n){t.parentNode.removeChild(t),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed.");return}})},addSplitter(t,e,n=!1){const i=t-1,r=document.createElement("div");r.classList.add("splitpanes__splitter"),n||(r.onmousedown=a=>this.onMouseDown(a,i),typeof window<"u"&&"ontouchstart"in window&&(r.ontouchstart=a=>this.onMouseDown(a,i)),r.onclick=a=>this.onSplitterClick(a,i+1)),this.dblClickSplitter&&(r.ondblclick=a=>this.onSplitterDblClick(a,i+1)),e.parentNode.insertBefore(r,e)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let e=0;t.forEach(n=>{n.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,n,!0):e&&this.addSplitter(e,n),e++)})},requestUpdate(t){var e=t,{target:n}=e,i=Ke(e,["target"]);const r=this.indexedPanes[n._uid];Object.entries(i).forEach(([a,o])=>r[a]=o)},onPaneAdd(t){let e=-1;Array.from(t.$el.parentNode.children).some(r=>(r.className.includes("splitpanes__pane")&&e++,r===t.$el));const n=parseFloat(t.minSize),i=parseFloat(t.maxSize);this.panes.splice(e,0,{id:t._uid,index:e,min:isNaN(n)?0:n,max:isNaN(i)?100:i,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((r,a)=>r.index=a),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},onPaneRemove(t){const e=this.panes.findIndex(i=>i.id===t._uid),n=this.panes.splice(e,1)[0];this.panes.forEach((i,r)=>i.index=r),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:Ge(We({},n),{index:e})}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const t=100/this.panesCount;let e=0,n=[],i=[];this.panes.forEach(r=>{r.size=Math.max(Math.min(t,r.max),r.min),e-=r.size,r.size>=r.max&&n.push(r.id),r.size<=r.min&&i.push(r.id)}),e>.1&&this.readjustSizes(e,n,i)},initialPanesSizing(){100/this.panesCount;let t=100,e=[],n=[],i=0;this.panes.forEach(a=>{t-=a.size,a.size!==null&&i++,a.size>=a.max&&e.push(a.id),a.size<=a.min&&n.push(a.id)});let r=100;t>.1&&(this.panes.forEach(a=>{a.size===null&&(a.size=Math.max(Math.min(t/(this.panesCount-i),a.max),a.min)),r-=a.size}),r>.1&&this.readjustSizes(t,e,n))},equalizeAfterAddOrRemove({addedPane:t,removedPane:e}={}){let n=100/this.panesCount,i=0,r=[],a=[];t&&t.givenSize!==null&&(n=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{i-=o.size,o.size>=o.max&&r.push(o.id),o.size<=o.min&&a.push(o.id)}),!(Math.abs(i)<.1)&&(this.panes.forEach(o=>{t&&t.givenSize!==null&&t.id===o.id||(o.size=Math.max(Math.min(n,o.max),o.min)),i-=o.size,o.size>=o.max&&r.push(o.id),o.size<=o.min&&a.push(o.id)}),i>.1&&this.readjustSizes(i,r,a))},readjustSizes(t,e,n){let i;t>0?i=t/(this.panesCount-e.length):i=t/(this.panesCount-n.length),this.panes.forEach((r,a)=>{if(t>0&&!e.includes(r.id)){const o=Math.max(Math.min(r.size+i,r.max),r.min),s=o-r.size;t-=s,r.size=o}else if(!n.includes(r.id)){const o=Math.max(Math.min(r.size+i,r.max),r.min),s=o-r.size;t-=s,r.size=o}r.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[r.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((e,n)=>{e.ondblclick=t?i=>this.onSplitterDblClick(i,n):void 0})}},beforeDestroy(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(t){return t("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default)}};let Je,Ye;const Mt={};var Qe=pe(Xe,Je,Ye,!1,tn);function tn(t){for(let e in Mt)this[e]=Mt[e]}var en=function(){return Qe.exports}(),nn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"splitpanes__pane",style:t.style,on:{click:function(i){return t.onPaneClick(i,t._uid)}}},[t._t("default")],2)},rn=[];const an={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeDestroy(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}},Ot={};var on=pe(an,nn,rn,!1,sn);function sn(t){for(let e in Ot)this[e]=Ot[e]}var ln=function(){return on.exports}();const _t=1024,ce=_t/2,et=t=>document.documentElement.clientWidth{zt.value=et(_t),ue.value=et(ce)},{passive:!0});function St(){return Ct(zt)}function lr(){return Ct(ue)}const pr=Ct(zt),pn={name:"ArrowRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var cn=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon arrow-right-icon",attrs:{"aria-hidden":t.title?null:"true","aria-label":t.title,role:"img"},on:{click:function(n){return t.$emit("click",n)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},un=[],hn=B(pn,cn,un,!1,null,null);const dn=hn.exports,fn={name:"ArrowLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var mn=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon arrow-left-icon",attrs:{"aria-hidden":t.title?null:"true","aria-label":t.title,role:"img"},on:{click:function(n){return t.$emit("click",n)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},vn=[],gn=B(fn,mn,vn,!1,null,null);const yn=gn.exports,he=Oe();re(Ve);const wn={name:"NcAppDetailsToggle",components:{ArrowRight:dn,ArrowLeft:yn,NcButton:ae},setup(){return{isRtl:he,isMobile:St()}},computed:{title(){return oe("Go back to the list")}},watch:{isMobile:{immediate:!0,handler(){this.toggleAppNavigationButton(this.isMobile)}}},beforeDestroy(){this.isMobile&&this.toggleAppNavigationButton(!1)},methods:{toggleAppNavigationButton(t=!0){const e=document.querySelector(".app-navigation .app-navigation-toggle");e&&(e.style.display=t?"none":null,t===!0&&Y("toggle-navigation",{open:!1}))}}};var xn=function(){var t=this,e=t._self._c;return e("NcButton",{staticClass:"app-details-toggle",class:{"app-details-toggle--mobile":t.isMobile},attrs:{"aria-label":t.title,title:t.title,variant:"tertiary"},scopedSlots:t._u([{key:"icon",fn:function(){return[t.isRtl?e("ArrowLeft",{attrs:{size:20}}):e("ArrowRight",{attrs:{size:20}})]},proxy:!0}])})},bn=[],Cn=B(wn,xn,bn,!1,null,"0bdd48d0");const _n=Cn.exports,Lt=Le.getBuilder("nextcloud").persist().build(),{name:zn}=V("theming","data",{name:"Nextcloud"}),Sn=V("core","active-app",bt),En=V("core","apps",{})[Sn]?.name??bt,Pn={name:"NcAppContent",components:{NcAppDetailsToggle:_n,Pane:ln,Splitpanes:en},props:{allowSwipeNavigation:{type:Boolean,default:!0},disableSwipe:{type:Boolean,default:!1},listSize:{type:Number,default:20},listMinWidth:{type:Number,default:15},listMaxWidth:{type:Number,default:40},paneConfigKey:{type:String,default:""},showDetails:{type:Boolean,default:!0},pageHeading:{type:String,default:null},layout:{type:String,default:"vertical-split",validator(t){return["no-split","vertical-split","horizontal-split"].includes(t)}},pageTitle:{type:String,default:null}},emits:["update:showDetails","resize:list"],setup(){return{isMobile:St(),isRtl:he}},data(){return{contentHeight:0,hasList:!1,hasContent:!1,swiping:{},listPaneSize:this.restorePaneConfig()}},computed:{paneConfigID(){if(this.paneConfigKey!=="")return`pane-list-size-${this.paneConfigKey}`;try{return`pane-list-size-${bt}`}catch{return console.info("[INFO] AppContent:","falling back to global nextcloud pane config"),"pane-list-size-nextcloud"}},detailsPaneSize(){return this.listPaneSize?100-this.listPaneSize:this.paneDefaults.details.size},paneDefaults(){return{list:{size:this.listSize,min:this.listMinWidth,max:this.listMaxWidth},details:{size:100-this.listSize,min:100-this.listMaxWidth,max:100-this.listMinWidth}}},realPageTitle(){const t=new Set;return this.pageTitle&&t.add(this.pageTitle),this.pageHeading&&t.add(this.pageHeading),t.size===0?null:(t.size<2&&t.add(En),t.add(zn),[...t.values()].join(" - "))}},watch:{realPageTitle:{immediate:!0,handler(){this.realPageTitle!==null&&(document.title=this.realPageTitle)}}},updated(){this.checkSlots()},mounted(){this.allowSwipeNavigation&&!this.disableSwipe&&(this.swiping=$e(this.$el,{onSwipeEnd:this.handleSwipe})),this.checkSlots(),this.restorePaneConfig()},methods:{handleSwipe(t,e){Math.abs(this.swiping.lengthX)>70&&(this.swiping.coordsStart.x<300/2&&e==="right"?Y("toggle-navigation",{open:!0}):this.swiping.coordsStart.x<300*1.5&&e==="left"&&Y("toggle-navigation",{open:!1}))},handlePaneResize(t){const e=parseInt(t[0].size,10);Lt.setItem(this.paneConfigID,JSON.stringify(e)),this.listPaneSize=e,this.$emit("resize:list",{size:e}),console.debug("AppContent pane config",e)},checkSlots(){this.hasList=!!this.$scopedSlots.list,this.hasContent=!!this.$scopedSlots.default},restorePaneConfig(){const t=parseInt(Lt.getItem(this.paneConfigID),10);if(!isNaN(t)&&t!==this.listPaneSize)return console.debug("AppContent pane config",t),this.listPaneSize=t,t},hideDetails(){this.$emit("update:showDetails",!1)}}};var Dn=function(){var t=this,e=t._self._c;return e("main",{staticClass:"app-content no-snapper",class:{"app-content--has-list":t.hasList},attrs:{id:"app-content-vue"}},[t.pageHeading?e("h1",{staticClass:"hidden-visually"},[t._v(" "+t._s(t.pageHeading)+" ")]):t._e(),t.hasList?[t.isMobile||t.layout==="no-split"?e("div",{staticClass:"app-content-wrapper app-content-wrapper--no-split",class:{"app-content-wrapper--show-details":t.showDetails,"app-content-wrapper--show-list":!t.showDetails,"app-content-wrapper--mobile":t.isMobile}},[t.showDetails?e("NcAppDetailsToggle",{nativeOn:{click:function(n){return n.stopPropagation(),n.preventDefault(),t.hideDetails.apply(null,arguments)}}}):t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.showDetails,expression:"!showDetails"}]},[t._t("list")],2),t.showDetails?t._t("default"):t._e()],2):t.layout==="vertical-split"||t.layout==="horizontal-split"?e("div",{staticClass:"app-content-wrapper"},[e("Splitpanes",{staticClass:"default-theme",class:{"splitpanes--horizontal":t.layout==="horizontal-split","splitpanes--vertical":t.layout==="vertical-split"},attrs:{horizontal:t.layout==="horizontal-split",rtl:t.isRtl},on:{resized:t.handlePaneResize}},[e("Pane",{staticClass:"splitpanes__pane-list",attrs:{size:t.listPaneSize||t.paneDefaults.list.size,"min-size":t.paneDefaults.list.min,"max-size":t.paneDefaults.list.max}},[t._t("list")],2),e("Pane",{staticClass:"splitpanes__pane-details",attrs:{size:t.detailsPaneSize,"min-size":t.paneDefaults.details.min,"max-size":t.paneDefaults.details.max}},[t._t("default")],2)],1)],1):t._e()]:t._e(),t.hasList?t._e():t._t("default")],2)},An=[],kn=B(Pn,Dn,An,!1,null,"bfc6f887");const cr=kn.exports;let Tn="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Rn=(t=21)=>{let e="",n=t|0;for(;n--;)e+=Tn[Math.random()*64|0];return e};function Z(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Z=function(e){return typeof e}:Z=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(t)}var de={selector:"vue-portal-target-".concat(Rn())},Nn=function(t){return de.selector=t},dt=typeof window<"u"&&(typeof document>"u"?"undefined":Z(document))!==void 0,Mn=H.extend({abstract:!0,name:"PortalOutlet",props:["nodes","tag"],data:function(t){return{updatedNodes:t.nodes}},render:function(t){var e=this.updatedNodes&&this.updatedNodes();return e?e.length===1&&!e[0].text?e:t(this.tag||"DIV",e):t()},destroyed:function(){var t=this.$el;t&&t.parentNode.removeChild(t)}}),fe=H.extend({name:"VueSimplePortal",props:{disabled:{type:Boolean},prepend:{type:Boolean},selector:{type:String,default:function(){return"#".concat(de.selector)}},tag:{type:String,default:"DIV"}},render:function(t){if(this.disabled){var e=this.$scopedSlots&&this.$scopedSlots.default();return e?e.length<2&&!e[0].text?e:t(this.tag,e):t()}return t()},created:function(){this.getTargetEl()||this.insertTargetEl()},updated:function(){var t=this;this.$nextTick(function(){!t.disabled&&t.slotFn!==t.$scopedSlots.default&&(t.container.updatedNodes=t.$scopedSlots.default),t.slotFn=t.$scopedSlots.default})},beforeDestroy:function(){this.unmount()},watch:{disabled:{immediate:!0,handler:function(t){t?this.unmount():this.$nextTick(this.mount)}}},methods:{getTargetEl:function(){if(dt)return document.querySelector(this.selector)},insertTargetEl:function(){if(dt){var t=document.querySelector("body"),e=document.createElement(this.tag);e.id=this.selector.substring(1),t.appendChild(e)}},mount:function(){if(dt){var t=this.getTargetEl(),e=document.createElement("DIV");this.prepend&&t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e),this.container=new Mn({el:e,parent:this,propsData:{tag:this.tag,nodes:this.$scopedSlots.default}})}},unmount:function(){this.container&&(this.container.$destroy(),delete this.container)}}});function On(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};t.component(e.name||"portal",fe),e.defaultSelector&&Nn(e.defaultSelector)}typeof window<"u"&&window.Vue&&window.Vue===H&&H.use(On),re(je);const Ln=` `,$n=` `,Vn={name:"NcContent",components:{NcButton:ae,NcIconSvgWrapper:Ie,Teleport:fe},provide(){return{"NcContent:setHasAppNavigation":this.setAppNavigation,"NcContent:selector":"#content-vue"}},props:{appName:{type:String,required:!0}},setup(){return{isMobile:St()}},data(){return{hasAppNavigation:!1,currentFocus:""}},computed:{currentImage(){return this.currentFocus==="navigation"?$n:Ln}},beforeMount(){const t=document.getElementById("skip-actions");t&&(t.innerHTML="",t.classList.add("vue-skip-actions"))},methods:{t:oe,openAppNavigation(){Y("toggle-navigation",{open:!0}),this.$nextTick(()=>{window.location.hash="app-navigation-vue",document.getElementById("app-navigation-vue").focus()})},setAppNavigation(t){this.hasAppNavigation=t,this.currentFocus===""&&(this.currentFocus="navigation")}}};var jn=function(){var t=this,e=t._self._c;return e("div",{class:["content",`app-${t.appName.toLowerCase()}`],attrs:{id:"content-vue"}},[e("Teleport",{attrs:{selector:"#skip-actions"}},[e("div",{staticClass:"vue-skip-actions__container"},[e("div",{staticClass:"vue-skip-actions__headline"},[t._v(" "+t._s(t.t("Keyboard navigation help"))+" ")]),e("div",{staticClass:"vue-skip-actions__buttons"},[e("NcButton",{directives:[{name:"show",rawName:"v-show",value:t.hasAppNavigation,expression:"hasAppNavigation"}],attrs:{href:"#app-navigation-vue",variant:"tertiary"},on:{click:function(n){return n.preventDefault(),t.openAppNavigation.apply(null,arguments)},focusin:function(n){t.currentFocus="navigation"},mouseover:function(n){t.currentFocus="navigation"}}},[t._v(" "+t._s(t.t("Skip to app navigation"))+" ")]),e("NcButton",{attrs:{href:"#app-content-vue",variant:"tertiary"},on:{focusin:function(n){t.currentFocus="content"},mouseover:function(n){t.currentFocus="content"}}},[t._v(" "+t._s(t.t("Skip to main content"))+" ")])],1),e("NcIconSvgWrapper",{directives:[{name:"show",rawName:"v-show",value:!t.isMobile,expression:"!isMobile"}],staticClass:"vue-skip-actions__image",attrs:{svg:t.currentImage,size:"auto"}})],1),t._v("  ")]),t._t("default")],2)},In=[],Hn=B(Vn,jn,In,!1,null,"bac4a5f1");const ur=Hn.exports;function P(t,e){for(var n in e)t[n]=e[n];return t}var Bn=/[!'()*]/g,qn=function(t){return"%"+t.charCodeAt(0).toString(16)},Fn=/%2C/g,O=function(t){return encodeURIComponent(t).replace(Bn,qn).replace(Fn,",")};function mt(t){try{return decodeURIComponent(t)}catch{}return t}function Un(t,e,n){e===void 0&&(e={});var i=n||Zn,r;try{r=i(t||"")}catch{r={}}for(var a in e){var o=e[a];r[a]=Array.isArray(o)?o.map($t):$t(o)}return r}var $t=function(t){return t==null||typeof t=="object"?t:String(t)};function Zn(t){var e={};return t=t.trim().replace(/^(\?|#|&)/,""),t&&t.split("&").forEach(function(n){var i=n.replace(/\+/g," ").split("="),r=mt(i.shift()),a=i.length>0?mt(i.join("=")):null;e[r]===void 0?e[r]=a:Array.isArray(e[r])?e[r].push(a):e[r]=[e[r],a]}),e}function Wn(t){var e=t?Object.keys(t).map(function(n){var i=t[n];if(i===void 0)return"";if(i===null)return O(n);if(Array.isArray(i)){var r=[];return i.forEach(function(a){a!==void 0&&(a===null?r.push(O(n)):r.push(O(n)+"="+O(a)))}),r.join("&")}return O(n)+"="+O(i)}).filter(function(n){return n.length>0}).join("&"):null;return e?"?"+e:""}var nt=/\/?$/;function it(t,e,n,i){var r=i&&i.options.stringifyQuery,a=e.query||{};try{a=vt(a)}catch{}var o={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:a,params:e.params||{},fullPath:Vt(e,r),matched:t?Gn(t):[]};return n&&(o.redirectedFrom=Vt(n,r)),Object.freeze(o)}function vt(t){if(Array.isArray(t))return t.map(vt);if(t&&typeof t=="object"){var e={};for(var n in t)e[n]=vt(t[n]);return e}else return t}var N=it(null,{path:"/"});function Gn(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function Vt(t,e){var n=t.path,i=t.query;i===void 0&&(i={});var r=t.hash;r===void 0&&(r="");var a=e||Wn;return(n||"/")+a(i)+r}function me(t,e,n){return e===N?t===e:e?t.path&&e.path?t.path.replace(nt,"")===e.path.replace(nt,"")&&(n||t.hash===e.hash&&W(t.query,e.query)):t.name&&e.name?t.name===e.name&&(n||t.hash===e.hash&&W(t.query,e.query)&&W(t.params,e.params)):!1:!1}function W(t,e){if(t===void 0&&(t={}),e===void 0&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),i=Object.keys(e).sort();return n.length!==i.length?!1:n.every(function(r,a){var o=t[r],s=i[a];if(s!==r)return!1;var l=e[r];return o==null||l==null?o===l:typeof o=="object"&&typeof l=="object"?W(o,l):String(o)===String(l)})}function Kn(t,e){return t.path.replace(nt,"/").indexOf(e.path.replace(nt,"/"))===0&&(!e.hash||t.hash===e.hash)&&Xn(t.query,e.query)}function Xn(t,e){for(var n in e)if(!(n in t))return!1;return!0}function ve(t){for(var e=0;e=0&&(e=t.slice(i),t=t.slice(0,i));var r=t.indexOf("?");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{path:t,query:n,hash:e}}function k(t){return t.replace(/\/(?:\s*\/)+/g,"/")}var rt=Array.isArray||function(t){return Object.prototype.toString.call(t)=="[object Array]"},L=xe,ti=Et,ei=ai,ni=ye,ii=we,ri=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function Et(t,e){for(var n=[],i=0,r=0,a="",o=e&&e.delimiter||"/",s;(s=ri.exec(t))!=null;){var l=s[0],p=s[1],f=s.index;if(a+=t.slice(r,f),r=f+l.length,p){a+=p[1];continue}var m=t[r],v=s[2],h=s[3],c=s[4],d=s[5],u=s[6],y=s[7];a&&(n.push(a),a="");var g=v!=null&&m!=null&&m!==v,C=u==="+"||u==="*",b=u==="?"||u==="*",_=s[2]||o,z=c||d;n.push({name:h||i++,prefix:v||"",delimiter:_,optional:b,repeat:C,partial:g,asterisk:!!y,pattern:z?li(z):y?".*":"[^"+G(_)+"]+?"})}return r1||!b.length)return b.length===0?t():t("span",{},b)}if(this.tag==="a")C.on=g,C.attrs={href:s,"aria-current":u};else{var _=be(this.$slots.default);if(_){_.isStatic=!1;var z=_.data=P({},_.data);z.on=z.on||{};for(var A in z.on){var D=z.on[A];A in g&&(z.on[A]=Array.isArray(D)?D:[D])}for(var F in g)F in z.on?z.on[F].push(g[F]):z.on[F]=y;var Tt=_.data.attrs=P({},_.data.attrs);Tt.href=s,Tt["aria-current"]=u}else C.on=g}return t(this.tag,C,this.$slots.default)}};function Bt(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function be(t){if(t){for(var e,n=0;n-1&&(u.params[b]=c.params[b]);return u.path=K(g.path,u.params),v(g,u,d)}else if(u.path){u.params={};for(var _=0;_-1}function lt(t,e){return st(t)&&t._isRouter&&(e==null||t.type===e)}function Gt(t,e,n){var i=function(r){r>=t.length?n():t[r]?e(t[r],function(){i(r+1)}):i(r+1)};i(0)}function ki(t){return function(e,n,i){var r=!1,a=0,o=null;De(t,function(s,l,p,f){if(typeof s=="function"&&s.cid===void 0){r=!0,a++;var m=Kt(function(d){Ri(d)&&(d=d.default),s.resolved=typeof d=="function"?d:at.extend(d),p.components[f]=d,a--,a<=0&&i()}),v=Kt(function(d){var u="Failed to resolve async component "+f+": "+d;o||(o=st(d)?d:new Error(u),i(o))}),h;try{h=s(m,v)}catch(d){v(d)}if(h)if(typeof h.then=="function")h.then(m,v);else{var c=h.component;c&&typeof c.then=="function"&&c.then(m,v)}}}),r||i()}}function De(t,e){return Ae(t.map(function(n){return Object.keys(n.components).map(function(i){return e(n.components[i],n.instances[i],n,i)})}))}function Ae(t){return Array.prototype.concat.apply([],t)}var Ti=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ri(t){return t.__esModule||Ti&&t[Symbol.toStringTag]==="Module"}function Kt(t){var e=!1;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(!e)return e=!0,t.apply(this,n)}}var E=function(t,e){this.router=t,this.base=Ni(e),this.current=N,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};E.prototype.listen=function(t){this.cb=t},E.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},E.prototype.onError=function(t){this.errorCbs.push(t)},E.prototype.transitionTo=function(t,e,n){var i=this,r;try{r=this.router.match(t,this.current)}catch(o){throw this.errorCbs.forEach(function(s){s(o)}),o}var a=this.current;this.confirmTransition(r,function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.router.afterHooks.forEach(function(o){o&&o(r,a)}),i.ready||(i.ready=!0,i.readyCbs.forEach(function(o){o(r)}))},function(o){n&&n(o),o&&!i.ready&&(!lt(o,M.redirected)||a!==N)&&(i.ready=!0,i.readyErrorCbs.forEach(function(s){s(o)}))})},E.prototype.confirmTransition=function(t,e,n){var i=this,r=this.current;this.pending=t;var a=function(c){!lt(c)&&st(c)&&(i.errorCbs.length?i.errorCbs.forEach(function(d){d(c)}):console.error(c)),n&&n(c)},o=t.matched.length-1,s=r.matched.length-1;if(me(t,r)&&o===s&&t.matched[o]===r.matched[s])return this.ensureURL(),t.hash&&T(this.router,r,t,!1),a(Ei(r,t));var l=Mi(this.current.matched,t.matched),p=l.updated,f=l.deactivated,m=l.activated,v=[].concat(Li(f),this.router.beforeHooks,$i(p),m.map(function(c){return c.beforeEnter}),ki(m)),h=function(c,d){if(i.pending!==t)return a(Wt(r,t));try{c(t,r,function(u){u===!1?(i.ensureURL(!0),a(Pi(r,t))):st(u)?(i.ensureURL(!0),a(u)):typeof u=="string"||typeof u=="object"&&(typeof u.path=="string"||typeof u.name=="string")?(a(Si(r,t)),typeof u=="object"&&u.replace?i.replace(u):i.push(u)):d(u)})}catch(u){a(u)}};Gt(v,h,function(){var c=Vi(m),d=c.concat(i.router.resolveHooks);Gt(d,h,function(){if(i.pending!==t)return a(Wt(r,t));i.pending=null,e(t),i.router.app&&i.router.app.$nextTick(function(){ve(t)})})})},E.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},E.prototype.setupListeners=function(){},E.prototype.teardown=function(){this.listeners.forEach(function(t){t()}),this.listeners=[],this.current=N,this.pending=null};function Ni(t){if(!t)if(q){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return t.charAt(0)!=="/"&&(t="/"+t),t.replace(/\/$/,"")}function Mi(t,e){var n,i=Math.max(t.length,e.length);for(n=0;n0)){var i=this.router,r=i.options.scrollBehavior,a=R&&r;a&&this.listeners.push(Ee());var o=function(){var s=n.current,l=I(n.base);n.current===N&&l===n._startLocation||n.transitionTo(l,function(p){a&&T(i,p,s,!0)})};window.addEventListener("popstate",o),this.listeners.push(function(){window.removeEventListener("popstate",o)})}},e.prototype.go=function(n){window.history.go(n)},e.prototype.push=function(n,i,r){var a=this,o=this,s=o.current;this.transitionTo(n,function(l){ot(k(a.base+l.fullPath)),T(a.router,l,s,!1),i&&i(l)},r)},e.prototype.replace=function(n,i,r){var a=this,o=this,s=o.current;this.transitionTo(n,function(l){wt(k(a.base+l.fullPath)),T(a.router,l,s,!1),i&&i(l)},r)},e.prototype.ensureURL=function(n){if(I(this.base)!==this.current.fullPath){var i=k(this.base+this.current.fullPath);n?ot(i):wt(i)}},e.prototype.getCurrentLocation=function(){return I(this.base)},e}(E);function I(t){var e=window.location.pathname,n=e.toLowerCase(),i=t.toLowerCase();return t&&(n===i||n.indexOf(k(i+"/"))===0)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Re=function(t){function e(n,i,r){t.call(this,n,i),!(r&&Ii(this.base))&&Xt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var n=this;if(!(this.listeners.length>0)){var i=this.router,r=i.options.scrollBehavior,a=R&&r;a&&this.listeners.push(Ee());var o=function(){var l=n.current;Xt()&&n.transitionTo(X(),function(p){a&&T(n.router,p,l,!0),R||J(p.fullPath)})},s=R?"popstate":"hashchange";window.addEventListener(s,o),this.listeners.push(function(){window.removeEventListener(s,o)})}},e.prototype.push=function(n,i,r){var a=this,o=this,s=o.current;this.transitionTo(n,function(l){Jt(l.fullPath),T(a.router,l,s,!1),i&&i(l)},r)},e.prototype.replace=function(n,i,r){var a=this,o=this,s=o.current;this.transitionTo(n,function(l){J(l.fullPath),T(a.router,l,s,!1),i&&i(l)},r)},e.prototype.go=function(n){window.history.go(n)},e.prototype.ensureURL=function(n){var i=this.current.fullPath;X()!==i&&(n?Jt(i):J(i))},e.prototype.getCurrentLocation=function(){return X()},e}(E);function Ii(t){var e=I(t);if(!/^\/#/.test(e))return window.location.replace(k(t+"/#"+e)),!0}function Xt(){var t=X();return t.charAt(0)==="/"?!0:(J("/"+t),!1)}function X(){var t=window.location.href,e=t.indexOf("#");return e<0?"":(t=t.slice(e+1),t)}function xt(t){var e=window.location.href,n=e.indexOf("#"),i=n>=0?e.slice(0,n):e;return i+"#"+t}function Jt(t){R?ot(xt(t)):window.location.hash=t}function J(t){R?wt(xt(t)):window.location.replace(xt(t))}var Hi=function(t){function e(n,i){t.call(this,n,i),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(n,i,r){var a=this;this.transitionTo(n,function(o){a.stack=a.stack.slice(0,a.index+1).concat(o),a.index++,i&&i(o)},r)},e.prototype.replace=function(n,i,r){var a=this;this.transitionTo(n,function(o){a.stack=a.stack.slice(0,a.index).concat(o),i&&i(o)},r)},e.prototype.go=function(n){var i=this,r=this.index+n;if(!(r<0||r>=this.stack.length)){var a=this.stack[r];this.confirmTransition(a,function(){var o=i.current;i.index=r,i.updateRoute(a),i.router.afterHooks.forEach(function(s){s&&s(a,o)})},function(o){lt(o,M.duplicated)&&(i.index=r)})}},e.prototype.getCurrentLocation=function(){var n=this.stack[this.stack.length-1];return n?n.fullPath:"/"},e.prototype.ensureURL=function(){},e}(E),w=function(t){t===void 0&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=gi(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback=e==="history"&&!R&&t.fallback!==!1,this.fallback&&(e="hash"),q||(e="abstract"),this.mode=e,e){case"history":this.history=new Te(this,t.base);break;case"hash":this.history=new Re(this,t.base,this.fallback);break;case"abstract":this.history=new Hi(this,t.base);break}},Yt={currentRoute:{configurable:!0}};w.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Yt.currentRoute.get=function(){return this.history&&this.history.current},w.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var a=e.apps.indexOf(t);a>-1&&e.apps.splice(a,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()}),!this.app){this.app=t;var n=this.history;if(n instanceof Te||n instanceof Re){var i=function(a){var o=n.current,s=e.options.scrollBehavior,l=R&&s;l&&"fullPath"in a&&T(e,a,o,!1)},r=function(a){n.setupListeners(),i(a)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(a){e.apps.forEach(function(o){o._route=a})})}},w.prototype.beforeEach=function(t){return ft(this.beforeHooks,t)},w.prototype.beforeResolve=function(t){return ft(this.resolveHooks,t)},w.prototype.afterEach=function(t){return ft(this.afterHooks,t)},w.prototype.onReady=function(t,e){this.history.onReady(t,e)},w.prototype.onError=function(t){this.history.onError(t)},w.prototype.push=function(t,e,n){var i=this;if(!e&&!n&&typeof Promise<"u")return new Promise(function(r,a){i.history.push(t,r,a)});this.history.push(t,e,n)},w.prototype.replace=function(t,e,n){var i=this;if(!e&&!n&&typeof Promise<"u")return new Promise(function(r,a){i.history.replace(t,r,a)});this.history.replace(t,e,n)},w.prototype.go=function(t){this.history.go(t)},w.prototype.back=function(){this.go(-1)},w.prototype.forward=function(){this.go(1)},w.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(n){return Object.keys(n.components).map(function(i){return n.components[i]})})):[]},w.prototype.resolve=function(t,e,n){e=e||this.history.current;var i=At(t,e,n,this),r=this.match(i,e),a=r.redirectedFrom||r.fullPath,o=this.history.base,s=Bi(o,a,this.mode);return{location:i,route:r,href:s,normalizedTo:i,resolved:r}},w.prototype.getRoutes=function(){return this.matcher.getRoutes()},w.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==N&&this.history.transitionTo(this.history.getCurrentLocation())},w.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==N&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(w.prototype,Yt);var Ne=w;function ft(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function Bi(t,e,n){var i=n==="hash"?"#"+e:e;return t?k(t+"/"+i):i}w.install=gt,w.version="3.6.5",w.isNavigationFailure=lt,w.NavigationFailureType=M,w.START_LOCATION=N,q&&window.Vue&&window.Vue.use(w);const Qt=V("photos","systemtags",!1),qi=V("photos","maps",!1),Fi=V("photos","recognize",!1),te=()=>S(()=>import("./FoldersView-Dj623CV_.chunk.mjs"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]),import.meta.url),Ui=()=>S(()=>import("./AlbumsView-ch-kscP4.chunk.mjs"),__vite__mapDeps([24,2,5,1,6,16,17,18,25,26,27,28,29,30,31,9,10,32,33,14,34,35,36,37,38,39,40,41,19,42,43,44,20,21,45,4,46]),import.meta.url),Zi=()=>S(()=>import("./AlbumContent-Cz6sddgl.chunk.mjs"),__vite__mapDeps([47,2,9,5,1,6,10,3,4,7,8,11,12,13,14,15,36,16,17,18,48,25,26,27,28,29,30,31,32,33,34,35,37,38,39,40,41,19,42,49,50,51,52,53,54,22,55,56,20,21,57,58,59,60,61,62,63]),import.meta.url),Wi=()=>S(()=>import("./SharedAlbums-GGuqkf-J.chunk.mjs"),__vite__mapDeps([64,2,16,5,1,6,17,65,31,9,10,32,66,18,43,44,20,21,45,38,19,4,67]),import.meta.url),Gi=()=>S(()=>import("./SharedAlbumContent-9P45Z4uh.chunk.mjs"),__vite__mapDeps([68,2,40,9,5,1,6,10,3,4,7,8,11,12,13,14,15,16,17,65,31,32,66,18,49,50,51,27,52,53,54,22,55,56,20,21,57,36,58,30,33,59,60,19,61,62,41,38,69]),import.meta.url),Ki=()=>S(()=>import("./PublicAlbumContent-NMWWk0wJ.chunk.mjs"),__vite__mapDeps([70,2,9,5,1,6,10,11,12,71,34,27,30,31,32,33,35,72,26,28,73,74,75,36,76,8,51,52,16,17,7,77,78,37,65,66,18,49,50,53,54,22,55,56,20,21,41,38,19,4,79]),import.meta.url),Xi=()=>S(()=>import("./PlacesView-DmE6kvTj.chunk.mjs"),__vite__mapDeps([80,2,16,5,1,6,17,18,43,44,20,21,45,38,19,4,81]),import.meta.url),Ji=()=>S(()=>import("./PlaceContent-BPchkDTy.chunk.mjs"),__vite__mapDeps([82,2,5,1,6,16,17,18,49,50,51,27,52,53,54,22,55,56,20,21,41,38,19,4,83]),import.meta.url),Yi=()=>S(()=>import("./TagsView-BYg4BmER.chunk.mjs"),__vite__mapDeps([84,2,16,5,1,6,17,18,19,4,85]),import.meta.url),Qi=()=>S(()=>import("./TagContent-DjVq0Rp9.chunk.mjs"),__vite__mapDeps([86,2,9,5,1,6,10,16,17,18,50,51,27,52,53,54,22,55,19,4,87]),import.meta.url),j=()=>S(()=>import("./TimelineView-oBWAVriN.chunk.mjs"),__vite__mapDeps([88,2,1,89,13,4,14,5,6,72,18,29,30,31,9,10,32,27,33,34,35,36,37,38,39,90,16,17,48,25,26,28,40,41,19,42,77,78,75,65,66,45,50,51,52,53,54,22,55,20,21,59,60,61,91]),import.meta.url),tr=()=>S(()=>import("./FacesView-BhXE6KL0.chunk.mjs"),__vite__mapDeps([92,2,16,5,1,6,17,18,93,19,94,4,95]),import.meta.url),er=()=>S(()=>import("./FaceContent-DMIngLh-.chunk.mjs"),__vite__mapDeps([96,2,9,5,1,6,10,36,16,17,18,97,93,19,94,98,50,51,27,52,53,54,22,55,59,60,99]),import.meta.url),nr=()=>S(()=>import("./UnassignedFaces-BGIdLg8P.chunk.mjs"),__vite__mapDeps([100,2,9,5,1,6,10,36,16,17,18,97,93,19,94,98,50,51,27,52,53,54,22,55,59,60,101]),import.meta.url),ee=document.title;H.use(Ne);let Me=Q("/apps/maps");qi||(Me=Q("/settings/apps/integration/maps"));const ne=t=>`/${Array.isArray(t)?t.join("/"):t||""}`,ir=new Ne({mode:"history",base:Q("/apps/photos"),linkActiveClass:"active",routes:[{path:"/",component:j,name:"all_media",props:()=>({rootTitle:x("photos","All your media")}),meta:{rootTitle:()=>x("photos","All your media")}},{path:"/photos",component:j,name:"photos",props:()=>({rootTitle:x("photos","Photos"),mimesType:He}),meta:{rootTitle:()=>x("photos","Photos")}},{path:"/videos",component:j,name:"videos",props:()=>({rootTitle:x("photos","Videos"),mimesType:Be}),meta:{rootTitle:()=>x("photos","Videos")}},{path:"/albums",component:Ui,name:"albums",meta:{rootTitle:()=>x("photos","Albums")}},{path:"/albums/:albumName*",component:Zi,name:"albumsContent",props:t=>({albumName:t.params.albumName}),meta:{rootTitle:t=>x("photos","Album {title}",{title:t.params.albumName})}},{path:"/sharedalbums",component:Wi,name:"sharedAlbums",meta:{rootTitle:()=>x("photos","Shared Albums")}},{path:"/sharedalbums/:albumName*",component:Gi,name:"sharedAlbumsContent",props:t=>({albumName:t.params.albumName}),meta:{rootTitle:t=>x("photos","Shared album {title}",{title:t.params.albumName})}},{path:"/public/:token",component:Ki,name:"publicAlbums",props:t=>({token:t.params.token}),meta:{rootTitle:t=>x("photos","Public album {title}",{title:t.params.token})}},{path:"/places",component:Xi,name:"places"},{path:"/places/:placeName*",component:Ji,name:"placesContent",props:t=>({placeName:t.params.placeName})},{path:"/folders/:path*",component:te,name:"folders",props:t=>({path:ne(t.params.path),isRoot:!t.params.path,rootTitle:x("photos","Folders")}),meta:{rootTitle:()=>x("photos","Folders")}},{path:"/shared/:path*",component:te,name:"shared",props:t=>({path:ne(t.params.path),isRoot:!t.params.path,rootTitle:x("photos","Shared with you"),showShared:!0}),meta:{rootTitle:()=>x("photos","Shared with you")}},{path:"/favorites",component:j,name:"favorites",props:()=>({rootTitle:x("photos","Favorites"),onlyFavorites:!0}),meta:{rootTitle:()=>x("photos","Favorites")}},{path:"/tags/",component:Yi,name:"tags",redirect:Qt?void 0:{name:"timeline"},props:t=>({path:"",isRoot:!t.params.path,rootTitle:x("photos","Tagged photos")}),meta:{rootTitle:()=>x("photos","Tagged photos")}},{path:"/tags/:path",component:Qi,name:"tagcontent",redirect:Qt?void 0:{name:"timeline"},props:t=>({path:`${t.params.path?t.params.path:""}`}),meta:{rootTitle:t=>x("photos","Tagged photo {title}",{title:t.params.path})}},{path:"/maps",name:"maps",beforeEnter(){window.open(Me,"_blank")}},{path:"/thisday",name:"thisday",component:j,props:()=>({rootTitle:x("photos","On this day"),onThisDay:!0}),meta:{rootTitle:()=>x("photos","On this day")}},{path:"/faces",name:"faces",component:tr,...!Fi&&{beforeEnter(){const t=Q("/settings/apps/installed/recognize");window.open(t,"_blank")}}},{path:"/faces/unassigned",name:"unassignedfaces",component:nr,meta:{rootTitle:()=>x("photos","Unassigned faces")}},{path:"/faces/:faceName",name:"facecontent",component:er,props:t=>({rootTitle:t.params.faceName,faceName:t.params.faceName}),meta:{rootTitle:t=>x("photos","{title}'s face",{title:t.params.faceName})}}]});ir.afterEach((t,e)=>{const n=t.meta?.rootTitle?.(t);n?document.title=`${n} - ${ee}`:document.title=ee,window.OCA?.Files?.Sidebar?.file&&t.name!==e.name&&window.OCA.Files.Sidebar.close()});const hr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2050%2050'%3e%3cdefs%3e%3clinearGradient%20id='placeholder__gradient'%3e%3cstop%20offset='0%25'%20stop-color='%23ededed'%3e%3canimate%20attributeName='stop-color'%20values='%23ededed;%20%23ededed;%20%23cccccc;%20%23cccccc;%20%23ededed'%20dur='2s'%20repeatCount='indefinite'/%3e%3c/stop%3e%3cstop%20offset='100%25'%20stop-color='%23cccccc'%3e%3canimate%20attributeName='stop-color'%20values='%23cccccc;%20%23ededed;%20%23ededed;%20%23cccccc;%20%23cccccc'%20dur='2s'%20repeatCount='indefinite'/%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",dr="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3cpath%20d='M5%2021c-.55%200-1.021-.196-1.412-.587A1.927%201.927%200%200%201%203%2019V5c0-.55.196-1.021.588-1.413A1.926%201.926%200%200%201%205%203h14c.55%200%201.021.196%201.413.587.391.392.587.863.587%201.413v14a1.93%201.93%200%200%201-.587%201.413A1.93%201.93%200%200%201%2019%2021H5Zm0-2h14V5H5v14Zm1-2h12l-3.75-5-3%204L9%2013l-3%204Zm-1%202V5v14Zm3.5-9a1.45%201.45%200%200%200%201.063-.437A1.45%201.45%200%200%200%2010%208.5c0-.417-.146-.771-.437-1.062A1.447%201.447%200%200%200%208.5%207c-.417%200-.771.146-1.062.438A1.443%201.443%200%200%200%207%208.5c0%20.417.146.771.438%201.063.291.291.645.437%201.062.437Z'%20style='fill-rule:nonzero'%20transform='translate(-2.665%20-2.665)%20scale(1.55497)'/%3e%3c/svg%3e",fr="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2'%3e%3cpath%20d='m4%204%202%204h3L7%204h2l2%204h3l-2-4h2l2%204h3l-2-4h3c.55%200%201.021.196%201.413.587.391.392.587.863.587%201.413v12a1.93%201.93%200%200%201-.587%201.413A1.93%201.93%200%200%201%2020%2020H4c-.55%200-1.021-.196-1.412-.587A1.927%201.927%200%200%201%202%2018V6c0-.55.196-1.021.588-1.413A1.926%201.926%200%200%201%204%204Z'%20style='fill-rule:nonzero'%20transform='translate(-.804%20-.607)%20scale(1.40177)'/%3e%3c/svg%3e";export{dn as A,fi as L,ur as N,cr as a,hr as b,sr as c,ir as d,lr as e,pr as f,dr as i,qi as m,Fi as r,Qt as s,St as u,fr as v}; //# sourceMappingURL=video-rmrjCz0n.chunk.mjs.map