From 4b7d3b92a141a560da6440efa19da2b7b79b89fe Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2026 19:32:20 +0000 Subject: [PATCH 1/2] chore(deps): bump pinia from 3.0.4 to 4.0.3 Bumps [pinia](https://github.com/vuejs/pinia) from 3.0.4 to 4.0.3. - [Release notes](https://github.com/vuejs/pinia/releases) - [Commits](https://github.com/vuejs/pinia/compare/v3.0.4...v4.0.3) --- updated-dependencies: - dependency-name: pinia dependency-version: 4.0.3 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package-lock.json | 121 ++++++---------------------------------------- package.json | 2 +- 2 files changed, 17 insertions(+), 106 deletions(-) diff --git a/package-lock.json b/package-lock.json index bec97df28..529f851f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "@nextcloud/router": "^3.0.1", "@nextcloud/typings": "^1.10.0", "@nextcloud/vue": "^9.9.0", - "pinia": "^3.0.4", + "pinia": "^4.0.3", "virtua": "^0.50.5", "vue-cropperjs": "^5.0.0", "vue-material-design-icons": "^5.3.1", @@ -5464,21 +5464,6 @@ "dev": true, "license": "MIT" }, - "node_modules/copy-anything": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-4.0.5.tgz", - "integrity": "sha512-7Vv6asjS4gMOuILabD3l739tsaxFQmC+a7pLZm02zyvs8p977bL3zEgq3yDk5rn9B0PbYgIv++jmHcuUab4RhA==", - "license": "MIT", - "dependencies": { - "is-what": "^5.2.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/mesqueeb" - } - }, "node_modules/core-js": { "version": "3.37.0", "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.37.0.tgz", @@ -7720,18 +7705,6 @@ ], "license": "MIT" }, - "node_modules/is-what": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/is-what/-/is-what-5.5.0.tgz", - "integrity": "sha512-oG7cgbmg5kLYae2N5IVd3jm2s+vldjxJzK1pcu9LfpGuQ93MQSzo0okvRna+7y5ifrD+20FE8FvjusyGaz14fw==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/mesqueeb" - } - }, "node_modules/isarray": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", @@ -9021,12 +8994,6 @@ "node": ">=16 || 14 >=14.17" } }, - "node_modules/mitt": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", - "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", - "license": "MIT" - }, "node_modules/mkdirp-classic": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", @@ -9251,6 +9218,12 @@ "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, + "node_modules/nostics": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/nostics/-/nostics-1.2.0.tgz", + "integrity": "sha512-FGqEfhQjrvo1lL8KFifdTQiNwwQHJxC1jtYE1Rc54qF/jxONUNL+kC9gS1krX8Q65PgrQ5fCqH/I4NhWBvdSqg==", + "license": "MIT" + }, "node_modules/nth-check": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", @@ -9712,65 +9685,30 @@ } }, "node_modules/pinia": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/pinia/-/pinia-3.0.4.tgz", - "integrity": "sha512-l7pqLUFTI/+ESXn6k3nu30ZIzW5E2WZF/LaHJEpoq6ElcLD+wduZoB2kBN19du6K/4FDpPMazY2wJr+IndBtQw==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/pinia/-/pinia-4.0.3.tgz", + "integrity": "sha512-XMQqpvjgG7LMqVhhFUzKLT4KEbsYbfZZ0CZU9PgdFm1O2VKBmIkykL8+SfNhOaT7sR0wT6BEgKT0YNDYWgmVRA==", "license": "MIT", "dependencies": { - "@vue/devtools-api": "^7.7.7" + "nostics": "^1.1.4" }, "funding": { "url": "https://github.com/sponsors/posva" }, "peerDependencies": { - "typescript": ">=4.5.0", + "@vue/devtools-api": "^8.1.5", + "typescript": ">=5.6.0", "vue": "^3.5.11" }, "peerDependenciesMeta": { + "@vue/devtools-api": { + "optional": false + }, "typescript": { "optional": true } } }, - "node_modules/pinia/node_modules/@vue/devtools-api": { - "version": "7.7.10", - "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-7.7.10.tgz", - "integrity": "sha512-KxtEpUOOpFz/qOGRrAwA36QF7DqIA+FXgCYit9mk9wjbaZt0sXOFz81ElOZtKA4HbWHUdwNjZHBFsFFyp5BZiA==", - "license": "MIT", - "dependencies": { - "@vue/devtools-kit": "^7.7.10" - } - }, - "node_modules/pinia/node_modules/@vue/devtools-kit": { - "version": "7.7.10", - "resolved": "https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-7.7.10.tgz", - "integrity": "sha512-3WNi2Kq4tbpVbmhml7RiphmAt0279oh3fKNeWMQIrltfX8Q91b4i5PL8DtyNKdwmcsGrV4fg+erwWOmD05CLIw==", - "license": "MIT", - "dependencies": { - "@vue/devtools-shared": "^7.7.10", - "birpc": "^2.3.0", - "hookable": "^5.5.3", - "mitt": "^3.0.1", - "perfect-debounce": "^1.0.0", - "speakingurl": "^14.0.1", - "superjson": "^2.2.2" - } - }, - "node_modules/pinia/node_modules/@vue/devtools-shared": { - "version": "7.7.10", - "resolved": "https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-7.7.10.tgz", - "integrity": "sha512-wOPslzB8vTvpxwdaOcR2qAbwmuSP0L+rhpoC6Cf56V3Jip+HWb7PQQXOUPgBNQARpXsbQX/+mvi8kKucmBGRwQ==", - "license": "MIT", - "dependencies": { - "rfdc": "^1.4.1" - } - }, - "node_modules/pinia/node_modules/perfect-debounce": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-1.0.0.tgz", - "integrity": "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==", - "license": "MIT" - }, "node_modules/pkg-dir": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-5.0.0.tgz", @@ -10276,12 +10214,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/rfdc": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz", - "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==", - "license": "MIT" - }, "node_modules/ripemd160": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", @@ -10853,15 +10785,6 @@ "spdx-license-ids": "^3.0.0" } }, - "node_modules/speakingurl": { - "version": "14.0.1", - "resolved": "https://registry.npmjs.org/speakingurl/-/speakingurl-14.0.1.tgz", - "integrity": "sha512-1POYv7uv2gXoyGFpBCmpDVSNV74IfsWlDW216UPjbWufNf+bSU6GdbDsxdcxtfwb4xlI3yxzOTKClUosxARYrQ==", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/split-ca": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/split-ca/-/split-ca-1.0.1.tgz", @@ -11161,18 +11084,6 @@ "inline-style-parser": "0.2.4" } }, - "node_modules/superjson": { - "version": "2.2.6", - "resolved": "https://registry.npmjs.org/superjson/-/superjson-2.2.6.tgz", - "integrity": "sha512-H+ue8Zo4vJmV2nRjpx86P35lzwDT3nItnIsocgumgr0hHMQ+ZGq5vrERg9kJBo5AWGmxZDhzDo+WVIJqkB0cGA==", - "license": "MIT", - "dependencies": { - "copy-anything": "^4" - }, - "engines": { - "node": ">=16" - } - }, "node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", diff --git a/package.json b/package.json index a4ebb388a..c846756bc 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "@nextcloud/router": "^3.0.1", "@nextcloud/typings": "^1.10.0", "@nextcloud/vue": "^9.9.0", - "pinia": "^3.0.4", + "pinia": "^4.0.3", "virtua": "^0.50.5", "vue-cropperjs": "^5.0.0", "vue-material-design-icons": "^5.3.1", From 0e54aa4488c569569371e2f9323413a584bd5aba Mon Sep 17 00:00:00 2001 From: nextcloud-command Date: Fri, 4 Sep 2026 19:38:16 +0000 Subject: [PATCH 2/2] chore(assets): Recompile assets Signed-off-by: nextcloud-command --- js/teams-main.mjs | 34 +++++++++++++++++----------------- js/teams-main.mjs.license | 2 +- js/teams-main.mjs.map | 2 +- js/teams-main.mjs.map.license | 2 +- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/js/teams-main.mjs b/js/teams-main.mjs index 18487de11..5c7f148b1 100644 --- a/js/teams-main.mjs +++ b/js/teams-main.mjs @@ -1,4 +1,4 @@ -import{aR as Xa,d as Ue,as as fa,X as ht,at as ic,c as q,ae as ir,aS as Zd,j as g,aT as Qd,aU as ac,aC as Qi,aV as Co,D as rc,aB as So,b as ge,aW as Eo,aD as eh,ax as th,ay as nh,C as Qe,n as pn,aX as ih,ap as ko,o as On,aY as mi,an as $t,e as _,f as G,Z as Xn,aA as ah,p as A,v as Be,O as xi,y as ea,r as Ze,aZ as rh,_ as ct,V as Ne,i as J,s as ne,G as rt,K as ke,L as zt,Q as li,R as ta,h as F,k as L,w as M,a as ze,N as Fe,a_ as oh,a$ as sh,q as Te,aQ as lh,b0 as Wn,B as ch,b1 as uh,aP as oc,a4 as dh,x as dt,ab as mn,F as na,a9 as xo,aa as Io,P as T,H as xt,T as Xe,b2 as hh,ad as sc,u as To,z as ph,J as Jr,E as ga,b3 as mh,b4 as lc,b5 as fh,a1 as gh,b6 as vh,S as Zr,b7 as Yi,b8 as Sn,b9 as It,ba as Ia,bb as No,bc as yh,bd as cc,be as Hn,bf as _h,bg as uc,bh,bi as $n,bj as dc,bk as Ds,bl as wh,bm as Ch,bn as Sh,bo as Eh,bp as kh,bq as ar,br as xh,bs as Oo,bt as Ih,bu as Th,av as Nh,bv as Oh,I as ia,$ as Ah,a0 as zr,a7 as Mh,bw as hc,l as ii,bx as Lh,by as pc,bz as Dh,bA as mc,bB as Rh,bC as Ph,bD as jh,bE as zh,bF as fc,bG as gc,bH as Vh,g as Bh,bI as $h,bJ as Uh,bK as Hh,bL as Fh,bM as Xh,bN as Wh,bO as Rs,bP as qh,bQ as Gh,bR as Yh,bS as Kh,bT as Jh,bU as Zh,bV as Qh,bW as Ao,bX as ep,ag as tp,bY as np,U as ip}from"./_plugin-vue_export-helper-BBv7rb2Q.chunk.mjs";import{L as En,ae as vc,K as yc,e as kn,am as ap,an as rp,ao as fi,f as Pe,H as op,J as sp,b as xn,x as Ie,N as rr,ap as _c,aq as lp,ar as cp,as as Wa,F as tn,at as bc,au as Qr,y as Qt,a as We,B as up,ah as aa,av as dp,aw as hp,ag as pp,ax as mp,ay as fp,E as wc,d as Cc,z as eo,az as Ps,aA as gp,aB as vp,aC as yp,aD as Sc,aE as _p,aF as qa,aG as Ec,D as bp,G as wp,aH as Cp,aI as Sp,aJ as Ep,c as Ta,R as kp,aK as xp,m as kc,aL as Ip,aM as Tp,aN as Np,aO as Op,aP as Ap,aQ as Mp,aR as Lp,aS as Dp,aT as Rp,aU as Pp,aV as jp,aW as zp,aX as Vp,Q as Mo,u as Lo,aY as Bp,aZ as $p,P as Up,a_ as Hp,a$ as Fp,b1 as Xp,b2 as Wp,b3 as qp,b4 as Gp}from"./logger-CzbArXbo.chunk.mjs";import{N as ci,u as Yp,a as Kp}from"./NcAvatar-1KxMUN7V-C_o8olwW.chunk.mjs";import{_ as qn,a as Jp,d as Do,N as Zp}from"./NcPasswordField-BFyzHTOO-DGi_OWh5.chunk.mjs";import{N as In}from"./NcActionButton-BO5T5ePT-DeqgTzaL.chunk.mjs";import{N as St}from"./NcActionRouter-vYFtIOzD-CvuCidcL.chunk.mjs";import{d as Qp,c as em,e as tm,s as nm,f as im,h as am,i as rm,j as om,N as sm,k as js,m as lm,P as cm,n as zs,C as Vs,o as um,u as dm,p as hm,q as pm,r as mm,t as fm,v as gm,w as vm,x as ym,y as _m,z as bm,A as wm,B as Cm,D as Sm,E as Em,M as Lt,F as Si,G as km,H as Bs,S as $s,I as xm,J as Im,K as Tm,L as Nm,O as Om,Q as Am,R as Mm,T as Vr,U as Lm,V as Dm,W as Rm,X as Us,Y as Pm,Z as jm,_ as za,$ as zm,a0 as Vm}from"./api-BfwHnA18.chunk.mjs";import{h as Bm,C as $m,g as Um,F as Rn,f as Hm,d as Fm,e as Xm,r as Hs,N as xc,S as Ic}from"./NcSelect--kERLlBK-CbTXAvL-.chunk.mjs";import{a as Wm,b as qm,_ as Fs,P as Gm}from"./index-BHU37c3G.chunk.mjs";import"./index-BuIDJ7AE.chunk.mjs";import"./index-DjVE9kLk.chunk.mjs";import{C as _i}from"./colors-Cv9F-jWS-KfUUs2UU.chunk.mjs";import"./NcSettingsSection-Caz1fuWt-BRuIFkG8.chunk.mjs";const tc="circles",nc="36.0.0-dev.0";function Xs(e,n){return(e.aliasOf||e)===(n.aliasOf||n)}function Ym(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(var i in e)if(!Km(e[i],n[i]))return!1;return!0}function Km(e,n){return Xa(e)?Ws(e,n):Xa(n)?Ws(n,e):(e&&e.valueOf())===(n&&n.valueOf())}function Ws(e,n){return Xa(n)?e.length===n.length&&e.every((i,a)=>i===n[a]):e.length===1&&e[0]===n}function qs(e){const n=ht(ic),i=ht(Zd),a=q(()=>{const c=g(e.to);return n.resolve(c)}),r=q(()=>{const{matched:c}=a.value,{length:f}=c,v=c[f-1],u=i.matched;if(!v||!u.length)return-1;const y=u.findIndex(Xs.bind(null,v));if(y>-1)return y;const b=Gs(c[f-2]);return f>1&&Gs(v)===b&&u[u.length-1].path!==b?u.findIndex(Xs.bind(null,c[f-2])):y}),o=q(()=>r.value>-1&&ef(i.params,a.value.params)),s=q(()=>r.value>-1&&r.value===i.matched.length-1&&Ym(i.params,a.value.params));function l(c={}){if(Qm(c)){const f=n[g(e.replace)?"replace":"push"](g(e.to)).catch(Qd);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:a,href:q(()=>a.value.href),isActive:o,isExactActive:s,navigate:l}}function Jm(e){return e.length===1?e[0]:e}const Zm=Ue({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:qs,setup(e,{slots:n}){const i=fa(qs(e)),{options:a}=ht(ic),r=q(()=>({[Ys(e.activeClass,a.linkActiveClass,"router-link-active")]:i.isActive,[Ys(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:i.isExactActive}));return()=>{const o=n.default&&Jm(n.default(i));return e.custom?o:ir("a",{"aria-current":i.isExactActive?e.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:r.value},o)}}});function Qm(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const n=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(n))return}return e.preventDefault&&e.preventDefault(),!0}}function ef(e,n){for(const i in n){const a=n[i],r=e[i];if(typeof a=="string"){if(a!==r)return!1}else if(!Xa(r)||r.length!==a.length||a.some((o,s)=>o.valueOf()!==r[s].valueOf()))return!1}return!0}function Gs(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ys=(e,n,i)=>e??n??i;let Tc;const or=e=>Tc=e,Nc=Symbol();function to(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ki;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ki||(Ki={}));function tf(){const e=So(!0),n=e.run(()=>ge({}));let i=[],a=[];const r=Eo({install(o){or(r),r._a=o,o.provide(Nc,r),o.config.globalProperties.$pinia=r,a.forEach(s=>i.push(s)),a=[]},use(o){return this._a?i.push(o):a.push(o),this},_p:i,_a:null,_e:e,_s:new Map,state:n});return r}const Oc=()=>{};function Ks(e,n,i,a=Oc){e.add(n);const r=()=>{e.delete(n)&&a()};return!i&&th()&&nh(r),r}function bi(e,...n){e.forEach(i=>{i(...n)})}const nf=e=>e(),Js=Symbol(),Br=Symbol();function no(e,n){e instanceof Map&&n instanceof Map?n.forEach((i,a)=>e.set(a,i)):e instanceof Set&&n instanceof Set&&n.forEach(e.add,e);for(const i in n){if(!n.hasOwnProperty(i))continue;const a=n[i],r=e[i];to(r)&&to(a)&&e.hasOwnProperty(i)&&!Qi(a)&&!Co(a)?e[i]=no(r,a):e[i]=a}return e}const af=Symbol();function rf(e){return!to(e)||!Object.prototype.hasOwnProperty.call(e,af)}const{assign:zn}=Object;function of(e){return!!(Qi(e)&&e.effect)}function sf(e,n,i,a){const{state:r,actions:o,getters:s}=n,l=i.state.value[e];let c;function f(){l||(i.state.value[e]=r?r():{});const v=ih(i.state.value[e]);return zn(v,o,Object.keys(s||{}).reduce((u,y)=>(u[y]=Eo(q(()=>{or(i);const b=i._s.get(e);return s[y].call(b,b)})),u),{}))}return c=Ac(e,f,n,i,a,!0),c}function Ac(e,n,i={},a,r,o){let s;const l=zn({actions:{}},i),c={deep:!0};let f,v,u=new Set,y=new Set,b;const E=a.state.value[e];!o&&!E&&(a.state.value[e]={}),ge({});let I;function D(oe){let le;f=v=!1,typeof oe=="function"?(oe(a.state.value[e]),le={type:Ki.patchFunction,storeId:e,events:b}):(no(a.state.value[e],oe),le={type:Ki.patchObject,payload:oe,storeId:e,events:b});const ae=I=Symbol();pn().then(()=>{I===ae&&(f=!0)}),v=!0,bi(u,le,a.state.value[e])}const z=o?function(){const{state:oe}=i,le=oe?oe():{};this.$patch(ae=>{zn(ae,le)})}:Oc;function R(){s.stop(),u.clear(),y.clear(),a._s.delete(e)}const ee=(oe,le="")=>{if(Js in oe)return oe[Br]=le,oe;const ae=function(){or(a);const se=Array.from(arguments),fe=new Set,ce=new Set;function we(O){fe.add(O)}function Z(O){ce.add(O)}bi(y,{args:se,name:ae[Br],store:U,after:we,onError:Z});let H;try{H=oe.apply(this&&this.$id===e?this:U,se)}catch(O){throw bi(ce,O),O}return H instanceof Promise?H.then(O=>(bi(fe,O),O)).catch(O=>(bi(ce,O),Promise.reject(O))):(bi(fe,H),H)};return ae[Js]=!0,ae[Br]=le,ae},me={_p:a,$id:e,$onAction:Ks.bind(null,y),$patch:D,$reset:z,$subscribe(oe,le={}){const ae=Ks(u,oe,le.detached,()=>se()),se=s.run(()=>Qe(()=>a.state.value[e],fe=>{(le.flush==="sync"?v:f)&&oe({storeId:e,type:Ki.direct,events:b},fe)},zn({},c,le)));return ae},$dispose:R},U=fa(me);a._s.set(e,U);const de=(a._a&&a._a.runWithContext||nf)(()=>a._e.run(()=>(s=So()).run(()=>n({action:ee}))));for(const oe in de){const le=de[oe];if(Qi(le)&&!of(le)||Co(le))o||(E&&rf(le)&&(Qi(le)?le.value=E[oe]:no(le,E[oe])),a.state.value[e][oe]=le);else if(typeof le=="function"){const ae=ee(le,oe);de[oe]=ae,l.actions[oe]=le}}return zn(U,de),zn(ac(U),de),Object.defineProperty(U,"$state",{get:()=>a.state.value[e],set:oe=>{D(le=>{zn(le,oe)})}}),a._p.forEach(oe=>{zn(U,s.run(()=>oe({store:U,app:a._a,pinia:a,options:l})))}),E&&o&&i.hydrate&&i.hydrate(U.$state,E),f=!0,v=!0,U}function Mc(e,n,i){let a;const r=typeof n=="function";a=r?i:n;function o(s,l){const c=eh();return s=s||(c?ht(Nc,null):null),s&&or(s),s=Tc,s._s.has(e)||(r?Ac(e,n,a,s):sf(e,a,s)),s._s.get(e)}return o.$id=e,o}function Lc(e){const n=ac(e),i={};for(const a in n){const r=n[a];r.effect?i[a]=q({get:()=>e[a],set(o){e[a]=o}}):(Qi(r)||Co(r))&&(i[a]=rc(e,a))}return i}const lf={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(e,{emit:n}){const i=n,a=e,r=ko(),o=ge([]),s=q(()=>o.value.reduce((k,P)=>(k[~~P.id]=P)&&k,{})),l=q(()=>o.value.length),c=ge(null),f=ge(!1),v=ge({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),u=ge({splitter:null,timeoutId:null}),y=q(()=>({[`splitpanes splitpanes--${a.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":v.value.dragging})),b=()=>{document.addEventListener("mousemove",D,{passive:!1}),document.addEventListener("mouseup",z),"ontouchstart"in window&&(document.addEventListener("touchmove",D,{passive:!1}),document.addEventListener("touchend",z))},E=()=>{document.removeEventListener("mousemove",D,{passive:!1}),document.removeEventListener("mouseup",z),"ontouchstart"in window&&(document.removeEventListener("touchmove",D,{passive:!1}),document.removeEventListener("touchend",z))},I=(k,P)=>{const j=k.target.closest(".splitpanes__splitter");if(j){const{left:V,top:Y}=j.getBoundingClientRect(),{clientX:be,clientY:ye}="ontouchstart"in window&&k.touches?k.touches[0]:k;v.value.cursorOffset=a.horizontal?ye-Y:be-V}b(),v.value.mouseDown=!0,v.value.activeSplitter=P},D=k=>{v.value.mouseDown&&(k.preventDefault(),v.value.dragging=!0,requestAnimationFrame(()=>{oe(U(k)),Ae("resize",{event:k},!0)}))},z=k=>{v.value.dragging&&(window.getSelection().removeAllRanges(),Ae("resized",{event:k},!0)),v.value.mouseDown=!1,v.value.activeSplitter=null,setTimeout(()=>{v.value.dragging=!1,E()},100)},R=(k,P)=>{"ontouchstart"in window&&(k.preventDefault(),u.value.splitter===P?(clearTimeout(u.value.timeoutId),u.value.timeoutId=null,ee(k,P),u.value.splitter=null):(u.value.splitter=P,u.value.timeoutId=setTimeout(()=>u.value.splitter=null,500))),v.value.dragging||Ae("splitter-click",{event:k,index:P},!0)},ee=(k,P)=>{if(Ae("splitter-dblclick",{event:k,index:P},!0),a.maximizePanes){let j=0;o.value=o.value.map((V,Y)=>(V.size=Y===P?V.max:V.min,Y!==P&&(j+=V.min),V)),o.value[P].size-=j,Ae("pane-maximize",{event:k,index:P,pane:o.value[P]}),Ae("resized",{event:k,index:P},!0)}},me=(k,P)=>{Ae("pane-click",{event:k,index:s.value[P].index,pane:s.value[P]})},U=k=>{const P=c.value.getBoundingClientRect(),{clientX:j,clientY:V}="ontouchstart"in window&&k.touches?k.touches[0]:k;return{x:j-(a.horizontal?0:v.value.cursorOffset)-P.left,y:V-(a.horizontal?v.value.cursorOffset:0)-P.top}},de=k=>{k=k[a.horizontal?"y":"x"];const P=c.value[a.horizontal?"clientHeight":"clientWidth"];return a.rtl&&!a.horizontal&&(k=P-k),k*100/P},oe=k=>{const P=v.value.activeSplitter;let j={prevPanesSize:ae(P),nextPanesSize:se(P),prevReachedMinPanes:0,nextReachedMinPanes:0};const V=0+(a.pushOtherPanes?0:j.prevPanesSize),Y=100-(a.pushOtherPanes?0:j.nextPanesSize),be=Math.max(Math.min(de(k),Y),V);let ye=[P,P+1],Se=o.value[ye[0]]||null,Ve=o.value[ye[1]]||null;const _e=Se.max<100&&be>=Se.max+j.prevPanesSize,ue=Ve.max<100&&be<=100-(Ve.max+se(P+1));if(_e||ue){_e?(Se.size=Se.max,Ve.size=Math.max(100-Se.max-j.prevPanesSize-j.nextPanesSize,0)):(Se.size=Math.max(100-Ve.max-j.prevPanesSize-se(P+1),0),Ve.size=Ve.max);return}if(a.pushOtherPanes){const Ee=le(j,be);if(!Ee)return;({sums:j,panesToResize:ye}=Ee),Se=o.value[ye[0]]||null,Ve=o.value[ye[1]]||null}Se!==null&&(Se.size=Math.min(Math.max(be-j.prevPanesSize-j.prevReachedMinPanes,Se.min),Se.max)),Ve!==null&&(Ve.size=Math.min(Math.max(100-be-j.nextPanesSize-j.nextReachedMinPanes,Ve.min),Ve.max))},le=(k,P)=>{const j=v.value.activeSplitter,V=[j,j+1];return P{be>V[0]&&be<=j&&(Y.size=Y.min,k.prevReachedMinPanes+=Y.min)}),k.prevPanesSize=ae(V[0]),V[0]===void 0)?(k.prevReachedMinPanes=0,o.value[0].size=o.value[0].min,o.value.forEach((Y,be)=>{be>0&&be<=j&&(Y.size=Y.min,k.prevReachedMinPanes+=Y.min)}),o.value[V[1]].size=100-k.prevReachedMinPanes-o.value[0].min-k.prevPanesSize-k.nextPanesSize,null):P>100-k.nextPanesSize-o.value[V[1]].min&&(V[1]=ce(j).index,k.nextReachedMinPanes=0,V[1]>j+1&&o.value.forEach((Y,be)=>{be>j&&be{be=j+1&&(Y.size=Y.min,k.nextReachedMinPanes+=Y.min)}),o.value[V[0]].size=100-k.prevPanesSize-se(V[0]-1),null):{sums:k,panesToResize:V}},ae=k=>o.value.reduce((P,j,V)=>P+(Vo.value.reduce((P,j,V)=>P+(V>k+1?j.size:0),0),fe=k=>[...o.value].reverse().find(P=>P.indexP.min)||{},ce=k=>o.value.find(P=>P.index>k+1&&P.size>P.min)||{},we=()=>{var k;const P=Array.from(((k=c.value)==null?void 0:k.children)||[]);for(const j of P){const V=j.classList.contains("splitpanes__pane"),Y=j.classList.contains("splitpanes__splitter");!V&&!Y&&(j.remove(),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))}},Z=(k,P,j=!1)=>{const V=k-1,Y=document.createElement("div");Y.classList.add("splitpanes__splitter"),j||(Y.onmousedown=be=>I(be,V),typeof window<"u"&&"ontouchstart"in window&&(Y.ontouchstart=be=>I(be,V)),Y.onclick=be=>R(be,V+1)),Y.ondblclick=be=>ee(be,V+1),P.parentNode.insertBefore(Y,P)},H=k=>{k.onmousedown=void 0,k.onclick=void 0,k.ondblclick=void 0,k.remove()},O=()=>{var k;const P=Array.from(((k=c.value)==null?void 0:k.children)||[]);for(const V of P)V.className.includes("splitpanes__splitter")&&H(V);let j=0;for(const V of P)V.className.includes("splitpanes__pane")&&(!j&&a.firstSplitter?Z(j,V,!0):j&&Z(j,V),j++)},Q=({uid:k,...P})=>{const j=s.value[k];for(const[V,Y]of Object.entries(P))j[V]=Y},Ce=k=>{var P;let j=-1;Array.from(((P=c.value)==null?void 0:P.children)||[]).some(V=>(V.className.includes("splitpanes__pane")&&j++,V.isSameNode(k.el))),o.value.splice(j,0,{...k,index:j}),o.value.forEach((V,Y)=>V.index=Y),f.value&&pn(()=>{O(),De({addedPane:o.value[j]}),Ae("pane-add",{pane:o.value[j]})})},xe=k=>{const P=o.value.findIndex(V=>V.id===k);o.value[P].el=null;const j=o.value.splice(P,1)[0];o.value.forEach((V,Y)=>V.index=Y),pn(()=>{O(),Ae("pane-remove",{pane:j}),De({removedPane:{...j}})})},De=(k={})=>{!k.addedPane&&!k.removedPane?it():o.value.some(P=>P.givenSize!==null||P.min||P.max<100)?Me(k):Ge(),f.value&&Ae("resized")},Ge=()=>{const k=100/l.value;let P=0;const j=[],V=[];for(const Y of o.value)Y.size=Math.max(Math.min(k,Y.max),Y.min),P-=Y.size,Y.size>=Y.max&&j.push(Y.id),Y.size<=Y.min&&V.push(Y.id);P>.1&&Le(P,j,V)},it=()=>{let k=100;const P=[],j=[];let V=0;for(const be of o.value)k-=be.size,be.givenSize!==null&&V++,be.size>=be.max&&P.push(be.id),be.size<=be.min&&j.push(be.id);let Y=100;if(k>.1){for(const be of o.value)be.givenSize===null&&(be.size=Math.max(Math.min(k/(l.value-V),be.max),be.min)),Y-=be.size;Y>.1&&Le(Y,P,j)}},Me=({addedPane:k,removedPane:P}={})=>{let j=100/l.value,V=0;const Y=[],be=[];(k?.givenSize??null)!==null&&(j=(100-k.givenSize)/(l.value-1));for(const ye of o.value)V-=ye.size,ye.size>=ye.max&&Y.push(ye.id),ye.size<=ye.min&&be.push(ye.id);if(!(Math.abs(V)<.1)){for(const ye of o.value)k?.givenSize!==null&&k?.id===ye.id||(ye.size=Math.max(Math.min(j,ye.max),ye.min)),V-=ye.size,ye.size>=ye.max&&Y.push(ye.id),ye.size<=ye.min&&be.push(ye.id);V>.1&&Le(V,Y,be)}},Le=(k,P,j)=>{let V;k>0?V=k/(l.value-P.length):V=k/(l.value-j.length),o.value.forEach((Y,be)=>{if(k>0&&!P.includes(Y.id)){const ye=Math.max(Math.min(Y.size+V,Y.max),Y.min),Se=ye-Y.size;k-=Se,Y.size=ye}else if(!j.includes(Y.id)){const ye=Math.max(Math.min(Y.size+V,Y.max),Y.min),Se=ye-Y.size;k-=Se,Y.size=ye}}),Math.abs(k)>.1&&pn(()=>{f.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},Ae=(k,P=void 0,j=!1)=>{const V=P?.index??v.value.activeSplitter??null;i(k,{...P,...V!==null&&{index:V},...j&&V!==null&&{prevPane:o.value[V-(a.firstSplitter?1:0)],nextPane:o.value[V+(a.firstSplitter?0:1)]},panes:o.value.map(Y=>({min:Y.min,max:Y.max,size:Y.size}))})};Qe(()=>a.firstSplitter,()=>O()),On(()=>{we(),O(),De(),Ae("ready"),f.value=!0}),mi(()=>f.value=!1);const st=()=>{var k;return ir("div",{ref:c,class:y.value},(k=r.default)==null?void 0:k.call(r))};return $t("panes",o),$t("indexedPanes",s),$t("horizontal",q(()=>a.horizontal)),$t("requestUpdate",Q),$t("onPaneAdd",Ce),$t("onPaneRemove",xe),$t("onPaneClick",me),(k,P)=>(_(),G(Xn(st)))}},cf={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var n;const i=e,a=ht("requestUpdate"),r=ht("onPaneAdd"),o=ht("horizontal"),s=ht("onPaneRemove"),l=ht("onPaneClick"),c=(n=ah())==null?void 0:n.uid,f=ht("indexedPanes"),v=q(()=>f.value[c]),u=ge(null),y=q(()=>{const D=isNaN(i.size)||i.size===void 0?0:parseFloat(i.size);return Math.max(Math.min(D,E.value),b.value)}),b=q(()=>{const D=parseFloat(i.minSize);return isNaN(D)?0:D}),E=q(()=>{const D=parseFloat(i.maxSize);return isNaN(D)?100:D}),I=q(()=>{var D;return`${o.value?"height":"width"}: ${(D=v.value)==null?void 0:D.size}%`});return Qe(()=>y.value,D=>a({uid:c,size:D})),Qe(()=>b.value,D=>a({uid:c,min:D})),Qe(()=>E.value,D=>a({uid:c,max:D})),On(()=>{r({id:c,el:u.value,min:b.value,max:E.value,givenSize:i.size===void 0?null:y.value,size:y.value})}),mi(()=>s(c)),(D,z)=>(_(),A("div",{ref_key:"paneEl",ref:u,class:"splitpanes__pane",onClick:z[0]||(z[0]=R=>g(l)(R,D._.uid)),style:xi(I.value)},[Be(D.$slots,"default")],4))}};function uf(e){let n=!1,i;return(...a)=>(n||(n=!0,i=e(...a)),i)}let Dc="missing-app-name";try{Dc=tc}catch{En.error("The `@nextcloud/vue` library was used without setting / replacing the `appName`.")}const df=Dc;let Rc="";try{Rc=nc}catch{En.error("The `@nextcloud/vue` library was used without setting / replacing the `appVersion`.")}const hf=Rc;function Pc(){return ht("appName",df)}const jc=uf(()=>{const e=ea("core","apps",[]),n=Pc();return e.find(({id:i})=>i===n)?.name??n});Ze(rh);const pf=Ue({__name:"NcAppContentDetailsToggle",setup(e){const n=fi();Qe(n,i),On(()=>{i(n.value)}),mi(()=>{n.value&&i(!1)});function i(a=!0){const r=document.querySelector(".app-navigation .app-navigation-toggle");r&&(r.style.display=a?"none":"",a===!0&&kn("toggle-navigation",{open:!1}))}return(a,r)=>(_(),G(g(Fe),{"aria-label":g(ze)("Go back to the list"),class:ke(["app-details-toggle",{"app-details-toggle--mobile":g(n)}]),title:g(ze)("Go back to the list"),variant:"tertiary"},{icon:M(()=>[L(g(Pe),{directional:"",path:g(op)},null,8,["path"])]),_:1},8,["aria-label","class","title"]))}}),mf=ct(pf,[["__scopeId","data-v-a28923a1"]]),Zs=vc("nextcloud").persist().build(),ff=yc().theming?.name??"Nextcloud",gf={name:"NcAppContent",components:{NcAppContentDetailsToggle:mf,Pane:cf,Splitpanes:lf},props:{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},layout:{type:String,default:"vertical-split",validator(e){return["no-split","vertical-split","horizontal-split"].includes(e)}},pageHeading:{type:String,default:null},pageTitle:{type:String,default:null}},emits:["update:showDetails","resizeList"],setup(){return{appName:Pc(),localizedAppName:jc(),isMobile:fi(),isRtl:rp}},data(){return{contentHeight:0,swiping:{},listPaneSize:this.restorePaneConfig()}},computed:{paneConfigID(){if(this.paneConfigKey!=="")return`pane-list-size-${this.paneConfigKey}`;try{return`pane-list-size-${this.appName}`}catch{return En.info("[NcAppContent]: 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 e=new Set;if(this.pageTitle)for(const n of this.pageTitle.split(" - "))e.add(n);else if(this.pageHeading){for(const n of this.pageHeading.split(" - "))e.add(n);e.size>0&&e.add(this.localizedAppName)}else return null;return e.add(ff),[...e.values()].join(" - ")}},watch:{realPageTitle:{immediate:!0,handler(){this.realPageTitle!==null&&(document.title=this.realPageTitle)}},paneConfigKey:{immediate:!0,handler(){this.restorePaneConfig()}}},mounted(){this.disableSwipe||(this.swiping=ap(this.$el,{onSwipeEnd:this.handleSwipe})),this.restorePaneConfig()},methods:{handleSwipe(e,n){Math.abs(this.swiping.lengthX)>70&&(this.swiping.coordsStart.x<300/2&&n==="right"?kn("toggle-navigation",{open:!0}):this.swiping.coordsStart.x<300*1.5&&n==="left"&&kn("toggle-navigation",{open:!1}))},handlePaneResize(e){const n=parseInt(e.panes[0].size,10);Zs.setItem(this.paneConfigID,JSON.stringify(n)),this.listPaneSize=n,this.$emit("resizeList",{size:n}),En.debug("[NcAppContent] pane config",{listPaneSize:n})},restorePaneConfig(){const e=parseInt(Zs.getItem(this.paneConfigID),10);if(!isNaN(e)&&e!==this.listPaneSize)return En.debug("[NcAppContent] pane config",{listPaneSize:e}),this.listPaneSize=e,e},hideDetails(){this.$emit("update:showDetails",!1)}}},vf={key:0,class:"hidden-visually"},yf={class:"app-content-wrapper__list"},_f={key:1,class:"app-content-wrapper"};function bf(e,n,i,a,r,o){const s=Ne("NcAppContentDetailsToggle"),l=Ne("Pane"),c=Ne("Splitpanes");return _(),A("main",{id:"app-content-vue",class:ke(["app-content no-snapper",{"app-content--has-list":!!e.$slots.list}])},[i.pageHeading?(_(),A("h1",vf,J(i.pageHeading),1)):ne("",!0),e.$slots.list?(_(),A(rt,{key:1},[a.isMobile||i.layout==="no-split"?(_(),A("div",{key:0,class:ke(["app-content-wrapper app-content-wrapper--no-split",{"app-content-wrapper--show-details":i.showDetails,"app-content-wrapper--show-list":!i.showDetails,"app-content-wrapper--mobile":a.isMobile}])},[i.showDetails?(_(),G(s,{key:0,onClick:zt(o.hideDetails,["stop","prevent"])},null,8,["onClick"])):ne("",!0),li(F("div",yf,[Be(e.$slots,"list",{},void 0,!0)],512),[[ta,!i.showDetails]]),i.showDetails?Be(e.$slots,"default",{key:1},void 0,!0):ne("",!0)],2)):i.layout==="vertical-split"||i.layout==="horizontal-split"?(_(),A("div",_f,[L(c,{horizontal:i.layout==="horizontal-split",class:ke(["default-theme",{"splitpanes--horizontal":i.layout==="horizontal-split","splitpanes--vertical":i.layout==="vertical-split"}]),rtl:a.isRtl,onResized:o.handlePaneResize},{default:M(()=>[L(l,{class:"splitpanes__pane-list",size:r.listPaneSize||o.paneDefaults.list.size,minSize:o.paneDefaults.list.min,maxSize:o.paneDefaults.list.max},{default:M(()=>[Be(e.$slots,"list",{},void 0,!0)]),_:3},8,["size","minSize","maxSize"]),L(l,{class:"splitpanes__pane-details",size:o.detailsPaneSize,minSize:o.paneDefaults.details.min,maxSize:o.paneDefaults.details.max},{default:M(()=>[Be(e.$slots,"default",{},void 0,!0)]),_:3},8,["size","minSize","maxSize"])]),_:3},8,["horizontal","class","rtl","onResized"])])):ne("",!0)],64)):ne("",!0),e.$slots.list?ne("",!0):Be(e.$slots,"default",{key:2},void 0,!0)],2)}const wf=ct(gf,[["render",bf],["__scopeId","data-v-51427d61"]]),zc=Symbol.for("NcContent:setHasAppNavigation"),Cf=Symbol.for("NcContent:selector");Ze(oh);const Sf=` @@ -50,16 +50,16 @@ import{aR as Xa,d as Ue,as as fa,X as ht,at as ic,c as q,ae as ir,aS as Zd,j as -`,kf={class:"vue-skip-actions__container"},xf={class:"vue-skip-actions__headline"},If={class:"vue-skip-actions__buttons"},Tf=Ue({__name:"NcContent",props:{appName:{}},setup(e){const n=e;$t(zc,l),$t(Cf,"#content-vue"),$t("appName",q(()=>n.appName));const i=fi(),a=ge(!1),r=ge(),o=q(()=>r.value==="navigation"?Ef:Sf);sh(()=>{const c=document.getElementById("skip-actions");c&&(c.innerHTML="",c.classList.add("vue-skip-actions"))});function s(){kn("toggle-navigation",{open:!0}),pn(()=>{window.location.hash="app-navigation-vue",document.getElementById("app-navigation-vue").focus()})}function l(c){a.value=c,r.value||(r.value="navigation")}return(c,f)=>(_(),A("div",{id:"content-vue",class:ke(["content",[`app-${e.appName.toLowerCase()}`,{"content--legacy":g(Wn)}]])},[(_(),G(lh,{to:"#skip-actions"},[F("div",kf,[F("div",xf,J(g(ze)("Keyboard navigation help")),1),F("div",If,[li(L(Fe,{href:"#app-navigation-vue",variant:"tertiary",onClick:zt(s,["prevent"]),onFocusin:f[0]||(f[0]=v=>r.value="navigation"),onMouseover:f[1]||(f[1]=v=>r.value="navigation")},{default:M(()=>[Te(J(g(ze)("Skip to app navigation")),1)]),_:1},512),[[ta,a.value]]),L(Fe,{href:"#app-content-vue",variant:"tertiary",onFocusin:f[2]||(f[2]=v=>r.value="content"),onMouseover:f[3]||(f[3]=v=>r.value="content")},{default:M(()=>[Te(J(g(ze)("Skip to main content")),1)]),_:1})]),li(L(Pe,{class:"vue-skip-actions__image",svg:o.value,size:"auto"},null,8,["svg"]),[[ta,!g(i)]])])])),Be(c.$slots,"default",{},void 0,!0)],2))}}),Nf=ct(Tf,[["__scopeId","data-v-d13dcb98"]]),Ei=typeof document<"u";function Vc(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Of(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Vc(e.default)}const tt=Object.assign;function $r(e,n){const i={};for(const a in n){const r=n[a];i[a]=sn(r)?r.map(e):e(r)}return i}const Ji=()=>{},sn=Array.isArray;function Qs(e,n){const i={};for(const a in e)i[a]=a in n?n[a]:e[a];return i}const Bc=/#/g,Af=/&/g,Mf=/\//g,Lf=/=/g,Df=/\?/g,$c=/\+/g,Rf=/%5B/g,Pf=/%5D/g,Uc=/%5E/g,jf=/%60/g,Hc=/%7B/g,zf=/%7C/g,Fc=/%7D/g,Vf=/%20/g;function Ro(e){return e==null?"":encodeURI(""+e).replace(zf,"|").replace(Rf,"[").replace(Pf,"]")}function Bf(e){return Ro(e).replace(Hc,"{").replace(Fc,"}").replace(Uc,"^")}function io(e){return Ro(e).replace($c,"%2B").replace(Vf,"+").replace(Bc,"%23").replace(Af,"%26").replace(jf,"`").replace(Hc,"{").replace(Fc,"}").replace(Uc,"^")}function $f(e){return io(e).replace(Lf,"%3D")}function Uf(e){return Ro(e).replace(Bc,"%23").replace(Df,"%3F")}function Hf(e){return Uf(e).replace(Mf,"%2F")}function ra(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Ff=/\/$/,Xf=e=>e.replace(Ff,"");function Ur(e,n,i="/"){let a,r={},o="",s="";const l=n.indexOf("#");let c=n.indexOf("?");return c=l>=0&&c>l?-1:c,c>=0&&(a=n.slice(0,c),o=n.slice(c,l>0?l:n.length),r=e(o.slice(1))),l>=0&&(a=a||n.slice(0,l),s=n.slice(l,n.length)),a=Yf(a??n,i),{fullPath:a+o+s,path:a,query:r,hash:ra(s)}}function Wf(e,n){const i=n.query?e(n.query):"";return n.path+(i&&"?")+i+(n.hash||"")}function el(e,n){return!n||!e.toLowerCase().startsWith(n.toLowerCase())?e:e.slice(n.length)||"/"}function qf(e,n,i){const a=n.matched.length-1,r=i.matched.length-1;return a>-1&&a===r&&Ti(n.matched[a],i.matched[r])&&Xc(n.params,i.params)&&e(n.query)===e(i.query)&&n.hash===i.hash}function Ti(e,n){return(e.aliasOf||e)===(n.aliasOf||n)}function Xc(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(var i in e)if(!Gf(e[i],n[i]))return!1;return!0}function Gf(e,n){return sn(e)?tl(e,n):sn(n)?tl(n,e):e?.valueOf()===n?.valueOf()}function tl(e,n){return sn(n)?e.length===n.length&&e.every((i,a)=>i===n[a]):e.length===1&&e[0]===n}function Yf(e,n){if(e.startsWith("/"))return e;if(!e)return n;const i=n.split("/"),a=e.split("/"),r=a[a.length-1];(r===".."||r===".")&&a.push("");let o=i.length-1,s,l;for(s=0;s1&&o--;else break;return i.slice(0,o).join("/")+"/"+a.slice(s).join("/")}const Pn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ao=(function(e){return e.pop="pop",e.push="push",e})({}),Hr=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Kf(e){if(!e)if(Ei){const n=document.querySelector("base");e=n&&n.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Xf(e)}const Jf=/^[^#]+#/;function Zf(e,n){return e.replace(Jf,"#")+n}function Qf(e,n){const i=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:n.behavior,left:a.left-i.left-(n.left||0),top:a.top-i.top-(n.top||0)}}const sr=()=>({left:window.scrollX,top:window.scrollY});function e1(e){let n;if("el"in e){const i=e.el,a=typeof i=="string"&&i.startsWith("#"),r=typeof i=="string"?a?document.getElementById(i.slice(1)):document.querySelector(i):i;if(!r)return;n=Qf(r,e)}else n=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(n):window.scrollTo(n.left!=null?n.left:window.scrollX,n.top!=null?n.top:window.scrollY)}function nl(e,n){return(history.state?history.state.position-n:-1)+e}const ro=new Map;function t1(e,n){ro.set(e,n)}function n1(e){const n=ro.get(e);return ro.delete(e),n}function i1(e){return typeof e=="string"||e&&typeof e=="object"}function Wc(e){return typeof e=="string"||typeof e=="symbol"}let pt=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const qc=Symbol("");pt.MATCHER_NOT_FOUND+"",pt.NAVIGATION_GUARD_REDIRECT+"",pt.NAVIGATION_ABORTED+"",pt.NAVIGATION_CANCELLED+"",pt.NAVIGATION_DUPLICATED+"";function Ni(e,n){return tt(new Error,{type:e,[qc]:!0},n)}function yn(e,n){return e instanceof Error&&qc in e&&(n==null||!!(e.type&n))}function a1(e){const n={};if(e===""||e==="?")return n;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ar&&io(r)):[a&&io(a)]).forEach(r=>{r!==void 0&&(n+=(n.length?"&":"")+i,r!=null&&(n+="="+r))})}return n}function r1(e){const n={};for(const i in e){const a=e[i];a!==void 0&&(n[i]=sn(a)?a.map(r=>r==null?null:""+r):a==null?a:""+a)}return n}const o1=Symbol(""),al=Symbol(""),lr=Symbol(""),Po=Symbol(""),oo=Symbol("");function Fi(){let e=[];function n(a){return e.push(a),()=>{const r=e.indexOf(a);r>-1&&e.splice(r,1)}}function i(){e=[]}return{add:n,list:()=>e.slice(),reset:i}}function Vn(e,n,i,a,r,o=s=>s()){const s=a&&(a.enterCallbacks[r]=a.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const f=y=>{y===!1?c(Ni(pt.NAVIGATION_ABORTED,{from:i,to:n})):y instanceof Error?c(y):i1(y)?c(Ni(pt.NAVIGATION_GUARD_REDIRECT,{from:n,to:y})):(s&&a.enterCallbacks[r]===s&&typeof y=="function"&&s.push(y),l())},v=o(()=>e.call(a&&a.instances[r],n,i,f));let u=Promise.resolve(v);e.length<3&&(u=u.then(f)),u.catch(y=>c(y))})}function Fr(e,n,i,a,r=o=>o()){const o=[];for(const s of e)for(const l in s.components){let c=s.components[l];if(!(n!=="beforeRouteEnter"&&!s.instances[l]))if(Vc(c)){const f=(c.__vccOpts||c)[n];f&&o.push(Vn(f,i,a,s,l,r))}else{let f=c();o.push(()=>f.then(v=>{if(!v)throw new Error(`Couldn't resolve component "${l}" at "${s.path}"`);const u=Of(v)?v.default:v;s.mods[l]=v,s.components[l]=u;const y=(u.__vccOpts||u)[n];return y&&Vn(y,i,a,s,l,r)()}))}}return o}function s1(e,n){const i=[],a=[],r=[],o=Math.max(n.matched.length,e.matched.length);for(let s=0;sTi(f,l))?a.push(l):i.push(l));const c=e.matched[s];c&&(n.matched.find(f=>Ti(f,c))||r.push(c))}return[i,a,r]}let l1=()=>location.protocol+"//"+location.host;function Gc(e,n){const{pathname:i,search:a,hash:r}=n,o=e.indexOf("#");if(o>-1){let s=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(s);return l[0]!=="/"&&(l="/"+l),el(l,"")}return el(i,e)+a+r}function c1(e,n,i,a){let r=[],o=[],s=null;const l=({state:y})=>{const b=Gc(e,location),E=i.value,I=n.value;let D=0;if(y){if(i.value=b,n.value=y,s&&s===E){s=null;return}D=I?y.position-I.position:0}else a(b);r.forEach(z=>{z(i.value,E,{delta:D,type:ao.pop,direction:D?D>0?Hr.forward:Hr.back:Hr.unknown})})};function c(){s=i.value}function f(y){r.push(y);const b=()=>{const E=r.indexOf(y);E>-1&&r.splice(E,1)};return o.push(b),b}function v(){if(document.visibilityState==="hidden"){const{history:y}=window;if(!y.state)return;y.replaceState(tt({},y.state,{scroll:sr()}),"")}}function u(){for(const y of o)y();o=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",v),document.removeEventListener("visibilitychange",v)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",v),document.addEventListener("visibilitychange",v),{pauseListeners:c,listen:f,destroy:u}}function rl(e,n,i,a=!1,r=!1){return{back:e,current:n,forward:i,replaced:a,position:window.history.length,scroll:r?sr():null}}function u1(e){const{history:n,location:i}=window,a={value:Gc(e,i)},r={value:n.state};r.value||o(a.value,{back:null,current:a.value,forward:null,position:n.length-1,replaced:!0,scroll:null},!0);function o(c,f,v){const u=e.indexOf("#"),y=u>-1?(i.host&&document.querySelector("base")?e:e.slice(u))+c:l1()+e+c;try{n[v?"replaceState":"pushState"](f,"",y),r.value=f}catch(b){console.error(b),i[v?"replace":"assign"](y)}}function s(c,f){o(c,tt({},n.state,rl(r.value.back,c,r.value.forward,!0),f,{position:r.value.position}),!0),a.value=c}function l(c,f){const v=tt({},r.value,n.state,{forward:c,scroll:sr()});o(v.current,v,!0),o(c,tt({},rl(a.value,c,null),{position:v.position+1},f),!1),a.value=c}return{location:a,state:r,push:l,replace:s}}function d1(e){e=Kf(e);const n=u1(e),i=c1(e,n.state,n.location,n.replace);function a(o,s=!0){s||i.pauseListeners(),history.go(o)}const r=tt({location:"",base:e,go:a,createHref:Zf.bind(null,e)},n,i);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>n.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>n.state.value}),r}let ai=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var kt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(kt||{});const h1={type:ai.Static,value:""},p1=/[a-zA-Z0-9_]/;function m1(e){if(!e)return[[]];if(e==="/")return[[h1]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function n(b){throw new Error(`ERR (${i})/"${f}": ${b}`)}let i=kt.Static,a=i;const r=[];let o;function s(){o&&r.push(o),o=[]}let l=0,c,f="",v="";function u(){f&&(i===kt.Static?o.push({type:ai.Static,value:f}):i===kt.Param||i===kt.ParamRegExp||i===kt.ParamRegExpEnd?(o.length>1&&(c==="*"||c==="+")&&n(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),o.push({type:ai.Param,value:f,regexp:v,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):n("Invalid state to consume buffer"),f="")}function y(){f+=c}for(;ln.length?n.length===1&&n[0]===Bt.Static+Bt.Segment?1:-1:0}function Yc(e,n){let i=0;const a=e.score,r=n.score;for(;i0&&n[n.length-1]<0}const _1={strict:!1,end:!0,sensitive:!1};function b1(e,n,i){const a=v1(m1(e.path),i),r=tt(a,{record:e,parent:n,children:[],alias:[]});return n&&!r.record.aliasOf==!n.record.aliasOf&&n.children.push(r),r}function w1(e,n){const i=[],a=new Map;n=Qs(_1,n);function r(u){return a.get(u)}function o(u,y,b){const E=!b,I=cl(u);I.aliasOf=b&&b.record;const D=Qs(n,u),z=[I];if("alias"in u){const me=typeof u.alias=="string"?[u.alias]:u.alias;for(const U of me)z.push(cl(tt({},I,{components:b?b.record.components:I.components,path:U,aliasOf:b?b.record:I})))}let R,ee;for(const me of z){const{path:U}=me;if(y&&U[0]!=="/"){const de=y.record.path,oe=de[de.length-1]==="/"?"":"/";me.path=y.record.path+(U&&oe+U)}if(R=b1(me,y,D),b?b.alias.push(R):(ee=ee||R,ee!==R&&ee.alias.push(R),E&&u.name&&!ul(R)&&s(u.name)),Kc(R)&&c(R),I.children){const de=I.children;for(let oe=0;oe{s(ee)}:Ji}function s(u){if(Wc(u)){const y=a.get(u);y&&(a.delete(u),i.splice(i.indexOf(y),1),y.children.forEach(s),y.alias.forEach(s))}else{const y=i.indexOf(u);y>-1&&(i.splice(y,1),u.record.name&&a.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function l(){return i}function c(u){const y=E1(u,i);i.splice(y,0,u),u.record.name&&!ul(u)&&a.set(u.record.name,u)}function f(u,y){let b,E={},I,D;if("name"in u&&u.name){if(b=a.get(u.name),!b)throw Ni(pt.MATCHER_NOT_FOUND,{location:u});D=b.record.name,E=tt(ll(y.params,b.keys.filter(ee=>!ee.optional).concat(b.parent?b.parent.keys.filter(ee=>ee.optional):[]).map(ee=>ee.name)),u.params&&ll(u.params,b.keys.map(ee=>ee.name))),I=b.stringify(E)}else if(u.path!=null)I=u.path,b=i.find(ee=>ee.re.test(I)),b&&(E=b.parse(I),D=b.record.name);else{if(b=y.name?a.get(y.name):i.find(ee=>ee.re.test(y.path)),!b)throw Ni(pt.MATCHER_NOT_FOUND,{location:u,currentLocation:y});D=b.record.name,E=tt({},y.params,u.params),I=b.stringify(E)}const z=[];let R=b;for(;R;)z.unshift(R.record),R=R.parent;return{name:D,path:I,params:E,matched:z,meta:S1(z)}}e.forEach(u=>o(u));function v(){i.length=0,a.clear()}return{addRoute:o,resolve:f,removeRoute:s,clearRoutes:v,getRoutes:l,getRecordMatcher:r}}function ll(e,n){const i={};for(const a of n)a in e&&(i[a]=e[a]);return i}function cl(e){const n={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:C1(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(n,"mods",{value:{}}),n}function C1(e){const n={},i=e.props||!1;if("component"in e)n.default=i;else for(const a in e.components)n[a]=typeof i=="object"?i[a]:i;return n}function ul(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function S1(e){return e.reduce((n,i)=>tt(n,i.meta),{})}function E1(e,n){let i=0,a=n.length;for(;i!==a;){const o=i+a>>1;Yc(e,n[o])<0?a=o:i=o+1}const r=k1(e);return r&&(a=n.lastIndexOf(r,a-1)),a}function k1(e){let n=e;for(;n=n.parent;)if(Kc(n)&&Yc(e,n)===0)return n}function Kc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function dl(e){const n=ht(lr),i=ht(Po),a=q(()=>{const c=g(e.to);return n.resolve(c)}),r=q(()=>{const{matched:c}=a.value,{length:f}=c,v=c[f-1],u=i.matched;if(!v||!u.length)return-1;const y=u.findIndex(Ti.bind(null,v));if(y>-1)return y;const b=hl(c[f-2]);return f>1&&hl(v)===b&&u[u.length-1].path!==b?u.findIndex(Ti.bind(null,c[f-2])):y}),o=q(()=>r.value>-1&&O1(i.params,a.value.params)),s=q(()=>r.value>-1&&r.value===i.matched.length-1&&Xc(i.params,a.value.params));function l(c={}){if(N1(c)){const f=n[g(e.replace)?"replace":"push"](g(e.to)).catch(Ji);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:a,href:q(()=>a.value.href),isActive:o,isExactActive:s,navigate:l}}function x1(e){return e.length===1?e[0]:e}const I1=Ue({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:dl,setup(e,{slots:n}){const i=fa(dl(e)),{options:a}=ht(lr),r=q(()=>({[pl(e.activeClass,a.linkActiveClass,"router-link-active")]:i.isActive,[pl(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:i.isExactActive}));return()=>{const o=n.default&&x1(n.default(i));return e.custom?o:ir("a",{"aria-current":i.isExactActive?e.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:r.value},o)}}}),T1=I1;function N1(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const n=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(n))return}return e.preventDefault&&e.preventDefault(),!0}}function O1(e,n){for(const i in n){const a=n[i],r=e[i];if(typeof a=="string"){if(a!==r)return!1}else if(!sn(r)||r.length!==a.length||a.some((o,s)=>o.valueOf()!==r[s].valueOf()))return!1}return!0}function hl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const pl=(e,n,i)=>e??n??i,A1=Ue({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:n,slots:i}){const a=ht(oo),r=q(()=>e.route||a.value),o=ht(al,0),s=q(()=>{let f=g(o);const{matched:v}=r.value;let u;for(;(u=v[f])&&!u.components;)f++;return f}),l=q(()=>r.value.matched[s.value]);$t(al,q(()=>s.value+1)),$t(o1,l),$t(oo,r);const c=ge();return Qe(()=>[c.value,l.value,e.name],([f,v,u],[y,b,E])=>{v&&(v.instances[u]=f,b&&b!==v&&f&&f===y&&(v.leaveGuards.size||(v.leaveGuards=b.leaveGuards),v.updateGuards.size||(v.updateGuards=b.updateGuards))),f&&v&&(!b||!Ti(v,b)||!y)&&(v.enterCallbacks[u]||[]).forEach(I=>I(f))},{flush:"post"}),()=>{const f=r.value,v=e.name,u=l.value,y=u&&u.components[v];if(!y)return ml(i.default,{Component:y,route:f});const b=u.props[v],E=b?b===!0?f.params:typeof b=="function"?b(f):b:null,I=ir(y,tt({},E,n,{onVnodeUnmounted:D=>{D.component.isUnmounted&&(u.instances[v]=null)},ref:c}));return ml(i.default,{Component:I,route:f})||I}}});function ml(e,n){if(!e)return null;const i=e(n);return i.length===1?i[0]:i}const M1=A1;function L1(e){const n=w1(e.routes,e),i=e.parseQuery||a1,a=e.stringifyQuery||il,r=e.history,o=Fi(),s=Fi(),l=Fi(),c=ch(Pn);let f=Pn;Ei&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=$r.bind(null,k=>""+k),u=$r.bind(null,Hf),y=$r.bind(null,ra);function b(k,P){let j,V;return Wc(k)?(j=n.getRecordMatcher(k),V=P):V=k,n.addRoute(V,j)}function E(k){const P=n.getRecordMatcher(k);P&&n.removeRoute(P)}function I(){return n.getRoutes().map(k=>k.record)}function D(k){return!!n.getRecordMatcher(k)}function z(k,P){if(P=tt({},P||c.value),typeof k=="string"){const Se=Ur(i,k,P.path),Ve=n.resolve({path:Se.path},P),_e=r.createHref(Se.fullPath);return tt(Se,Ve,{params:y(Ve.params),hash:ra(Se.hash),redirectedFrom:void 0,href:_e})}let j;if(k.path!=null)j=tt({},k,{path:Ur(i,k.path,P.path).path});else{const Se=tt({},k.params);for(const Ve in Se)Se[Ve]==null&&delete Se[Ve];j=tt({},k,{params:u(Se)}),P.params=u(P.params)}const V=n.resolve(j,P),Y=k.hash||"";V.params=v(y(V.params));const be=Wf(a,tt({},k,{hash:Bf(Y),path:V.path})),ye=r.createHref(be);return tt({fullPath:be,hash:Y,query:a===il?r1(k.query):k.query||{}},V,{redirectedFrom:void 0,href:ye})}function R(k){return typeof k=="string"?Ur(i,k,c.value.path):tt({},k)}function ee(k,P){if(f!==k)return Ni(pt.NAVIGATION_CANCELLED,{from:P,to:k})}function me(k){return oe(k)}function U(k){return me(tt(R(k),{replace:!0}))}function de(k,P){const j=k.matched[k.matched.length-1];if(j&&j.redirect){const{redirect:V}=j;let Y=typeof V=="function"?V(k,P):V;return typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=R(Y):{path:Y},Y.params={}),tt({query:k.query,hash:k.hash,params:Y.path!=null?{}:k.params},Y)}}function oe(k,P){const j=f=z(k),V=c.value,Y=k.state,be=k.force,ye=k.replace===!0,Se=de(j,V);if(Se)return oe(tt(R(Se),{state:typeof Se=="object"?tt({},Y,Se.state):Y,force:be,replace:ye}),P||j);const Ve=j;Ve.redirectedFrom=P;let _e;return!be&&qf(a,V,j)&&(_e=Ni(pt.NAVIGATION_DUPLICATED,{to:Ve,from:V}),Ge(V,V,!0,!1)),(_e?Promise.resolve(_e):se(Ve,V)).catch(ue=>yn(ue)?yn(ue,pt.NAVIGATION_GUARD_REDIRECT)?ue:De(ue):Ce(ue,Ve,V)).then(ue=>{if(ue){if(yn(ue,pt.NAVIGATION_GUARD_REDIRECT))return oe(tt({replace:ye},R(ue.to),{state:typeof ue.to=="object"?tt({},Y,ue.to.state):Y,force:be}),P||Ve)}else ue=ce(Ve,V,!0,ye,Y);return fe(Ve,V,ue),ue})}function le(k,P){const j=ee(k,P);return j?Promise.reject(j):Promise.resolve()}function ae(k){const P=Le.values().next().value;return P&&typeof P.runWithContext=="function"?P.runWithContext(k):k()}function se(k,P){let j;const[V,Y,be]=s1(k,P);j=Fr(V.reverse(),"beforeRouteLeave",k,P);for(const Se of V)Se.leaveGuards.forEach(Ve=>{j.push(Vn(Ve,k,P))});const ye=le.bind(null,k,P);return j.push(ye),st(j).then(()=>{j=[];for(const Se of o.list())j.push(Vn(Se,k,P));return j.push(ye),st(j)}).then(()=>{j=Fr(Y,"beforeRouteUpdate",k,P);for(const Se of Y)Se.updateGuards.forEach(Ve=>{j.push(Vn(Ve,k,P))});return j.push(ye),st(j)}).then(()=>{j=[];for(const Se of be)if(Se.beforeEnter)if(sn(Se.beforeEnter))for(const Ve of Se.beforeEnter)j.push(Vn(Ve,k,P));else j.push(Vn(Se.beforeEnter,k,P));return j.push(ye),st(j)}).then(()=>(k.matched.forEach(Se=>Se.enterCallbacks={}),j=Fr(be,"beforeRouteEnter",k,P,ae),j.push(ye),st(j))).then(()=>{j=[];for(const Se of s.list())j.push(Vn(Se,k,P));return j.push(ye),st(j)}).catch(Se=>yn(Se,pt.NAVIGATION_CANCELLED)?Se:Promise.reject(Se))}function fe(k,P,j){l.list().forEach(V=>ae(()=>V(k,P,j)))}function ce(k,P,j,V,Y){const be=ee(k,P);if(be)return be;const ye=P===Pn,Se=Ei?history.state:{};j&&(V||ye?r.replace(k.fullPath,tt({scroll:ye&&Se&&Se.scroll},Y)):r.push(k.fullPath,Y)),c.value=k,Ge(k,P,j,ye),De()}let we;function Z(){we||(we=r.listen((k,P,j)=>{if(!Ae.listening)return;const V=z(k),Y=de(V,Ae.currentRoute.value);if(Y){oe(tt(Y,{replace:!0,force:!0}),V).catch(Ji);return}f=V;const be=c.value;Ei&&t1(nl(be.fullPath,j.delta),sr()),se(V,be).catch(ye=>yn(ye,pt.NAVIGATION_ABORTED|pt.NAVIGATION_CANCELLED)?ye:yn(ye,pt.NAVIGATION_GUARD_REDIRECT)?(oe(tt(R(ye.to),{force:!0}),V).then(Se=>{yn(Se,pt.NAVIGATION_ABORTED|pt.NAVIGATION_DUPLICATED)&&!j.delta&&j.type===ao.pop&&r.go(-1,!1)}).catch(Ji),Promise.reject()):(j.delta&&r.go(-j.delta,!1),Ce(ye,V,be))).then(ye=>{ye=ye||ce(V,be,!1),ye&&(j.delta&&!yn(ye,pt.NAVIGATION_CANCELLED)?r.go(-j.delta,!1):j.type===ao.pop&&yn(ye,pt.NAVIGATION_ABORTED|pt.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),fe(V,be,ye)}).catch(Ji)}))}let H=Fi(),O=Fi(),Q;function Ce(k,P,j){De(k);const V=O.list();return V.length?V.forEach(Y=>Y(k,P,j)):console.error(k),Promise.reject(k)}function xe(){return Q&&c.value!==Pn?Promise.resolve():new Promise((k,P)=>{H.add([k,P])})}function De(k){return Q||(Q=!k,Z(),H.list().forEach(([P,j])=>k?j(k):P()),H.reset()),k}function Ge(k,P,j,V){const{scrollBehavior:Y}=e;if(!Ei||!Y)return Promise.resolve();const be=!j&&n1(nl(k.fullPath,0))||(V||!j)&&history.state&&history.state.scroll||null;return pn().then(()=>Y(k,P,be)).then(ye=>ye&&e1(ye)).catch(ye=>Ce(ye,k,P))}const it=k=>r.go(k);let Me;const Le=new Set,Ae={currentRoute:c,listening:!0,addRoute:b,removeRoute:E,clearRoutes:n.clearRoutes,hasRoute:D,getRoutes:I,resolve:z,options:e,push:me,replace:U,go:it,back:()=>it(-1),forward:()=>it(1),beforeEach:o.add,beforeResolve:s.add,afterEach:l.add,onError:O.add,isReady:xe,install(k){k.component("RouterLink",T1),k.component("RouterView",M1),k.config.globalProperties.$router=Ae,Object.defineProperty(k.config.globalProperties,"$route",{enumerable:!0,get:()=>g(c)}),Ei&&!Me&&c.value===Pn&&(Me=!0,me(r.location).catch(V=>{}));const P={};for(const V in Pn)Object.defineProperty(P,V,{get:()=>c.value[V],enumerable:!0});k.provide(lr,Ae),k.provide(Po,uh(P)),k.provide(oo,c);const j=k.unmount;Le.add(k),k.unmount=function(){Le.delete(k),Le.size<1&&(f=Pn,we&&we(),we=null,c.value=Pn,Me=!1,Q=!1),j()}}};function st(k){return k.reduce((P,j)=>P.then(()=>ae(j)),Promise.resolve())}return Ae}function ji(){return ht(lr)}function Jc(e){return ht(Po)}Ze(oc);const D1={key:0,class:"nc-chip__icon"},R1={class:"nc-chip__text"},P1=Ue({__name:"NcChip",props:{ariaLabelClose:{default:ze("Close")},actionsContainer:{default:"body"},text:{default:""},iconPath:{default:void 0},iconSvg:{default:void 0},noClose:{type:Boolean},variant:{default:"secondary"}},emits:["close"],setup(e,{emit:n}){const i=e,a=n,r=ko(),o=q(()=>!i.noClose),s=()=>!!r.actions,l=()=>!!(i.iconPath||i.iconSvg||r.icon);return(c,f)=>(_(),A("div",{class:ke(["nc-chip",{[`nc-chip--${e.variant}`]:!0,"nc-chip--no-actions":e.noClose&&!s(),"nc-chip--no-icon":!l()}])},[l()?(_(),A("span",D1,[Be(c.$slots,"icon",{},()=>[e.iconPath||e.iconSvg?(_(),G(Pe,{key:0,inline:"",path:e.iconPath,svg:e.iconPath?void 0:e.iconSvg,size:18},null,8,["path","svg"])):ne("",!0)],!0)])):ne("",!0),F("span",R1,[Be(c.$slots,"default",{},()=>[Te(J(e.text),1)],!0)]),o.value||s()?(_(),G(xn,{key:1,class:"nc-chip__actions",container:e.actionsContainer,forceMenu:!o.value,variant:"tertiary-no-background"},{default:M(()=>[o.value?(_(),G(In,{key:0,closeAfterClick:"",onClick:f[0]||(f[0]=v=>a("close"))},{icon:M(()=>[L(Pe,{path:g(sp),size:20},null,8,["path"])]),default:M(()=>[Te(" "+J(e.ariaLabelClose),1)]),_:1})):ne("",!0),Be(c.$slots,"actions",{},void 0,!0)]),_:3},8,["container","forceMenu"])):ne("",!0)],2))}}),j1=ct(P1,[["__scopeId","data-v-8f5d3c40"]]),z1=["title"],V1=Ue({__name:"NcCounterBubble",props:{count:{},active:{type:Boolean},type:{default:""},raw:{type:Boolean}},setup(e){const n=e,i=q(()=>n.raw?n.count.toString():new Intl.NumberFormat(dh(),{notation:"compact",compactDisplay:"short"}).format(n.count)),a=q(()=>{if(n.raw)return;const r=n.count.toString();if(r!==i.value)return r});return(r,o)=>(_(),A("div",{class:ke(["counter-bubble__counter",{active:e.active,"counter-bubble__counter--highlighted":e.type==="highlighted","counter-bubble__counter--outlined":e.type==="outlined"}]),title:a.value},J(i.value),11,z1))}}),B1=ct(V1,[["__scopeId","data-v-36ffc13f"]]),jo=Ue({name:"NcVNodes",props:{vnodes:{type:[Array,Object],default:null}},render(){return this.vnodes||this.$slots?.default?.({})}}),$1={name:"NcListItem",components:{NcActions:xn,NcCounterBubble:B1,NcVNodes:jo},inheritAttrs:!1,props:{details:{type:String,default:""},name:{type:String,default:void 0},to:{type:[String,Object],default:null},href:{type:String,default:"#"},target:{type:String,default:""},anchorId:{type:String,default:""},bold:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},active:{type:Boolean,default:void 0},linkAriaLabel:{type:String,default:""},actionsAriaLabel:{type:String,default:void 0},counterNumber:{type:[Number,String],default:0},counterType:{type:String,default:"",validator(e){return["highlighted","outlined",""].indexOf(e)!==-1}},forceDisplayActions:{type:Boolean,default:!1},forceMenu:{type:Boolean,default:!1},oneLine:{type:Boolean,default:!1}},emits:["click","dragstart","update:menuOpen"],setup(){return{isLegacy34:Wn}},data(){return{hovered:!1,hasActions:!1,hasSubname:!1,displayActionsOnHoverFocus:!1,menuOpen:!1,hasIndicator:!1,hasDetails:!1}},computed:{showAdditionalElements(){return!this.displayActionsOnHoverFocus||this.forceDisplayActions},showDetails(){return(this.details!==""||this.hasDetails)&&(!this.displayActionsOnHoverFocus||this.forceDisplayActions)}},watch:{menuOpen(e){!e&&!this.hovered&&(this.displayActionsOnHoverFocus=!1)}},mounted(){this.checkSlots()},updated(){this.checkSlots()},methods:{onClick(e,n,i){this.$emit("click",e),!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&i&&(n?.(e),e.preventDefault())},showActions(){this.hasActions&&(this.displayActionsOnHoverFocus=!0),this.hovered=!1},hideActions(){this.displayActionsOnHoverFocus=!1},handleBlur(e){this.menuOpen||this.$refs["list-item"]?.contains(e.relatedTarget)||this.hideActions()},handleMouseleave(){this.menuOpen||(this.displayActionsOnHoverFocus=!1),this.hovered=!1},handleMouseover(){this.showActions(),this.hovered=!0},handleActionsUpdateOpen(e){this.menuOpen=e,this.$emit("update:menuOpen",e)},checkSlots(){this.hasActions!==!!this.$slots.actions&&(this.hasActions=!!this.$slots.actions),this.hasSubname!==!!this.$slots.subname&&(this.hasSubname=!!this.$slots.subname),this.hasIndicator!==!!this.$slots.indicator&&(this.hasIndicator=!!this.$slots.indicator),this.hasDetails!==!!this.$slots.details&&(this.hasDetails=!!this.$slots.details)}}},U1=["id","aria-label","href","target","rel","onClick"],H1={class:"list-item-content"},F1={class:"list-item-content__main"},X1={class:"list-item-content__name"},W1={class:"list-item-content__details"},q1={key:0,class:"list-item-details__details"},G1={key:1,class:"list-item-details__extra"},Y1={key:1,class:"list-item-details__indicator"},K1={key:0,class:"list-item-content__extra-actions"},J1={key:2,class:"list-item__extra"};function Z1(e,n,i,a,r,o){const s=Ne("NcCounterBubble"),l=Ne("NcActions");return _(),G(Xn(i.to?"router-link":"NcVNodes"),xo(Io({...i.to&&{custom:!0,to:i.to}})),{default:M(({href:c,navigate:f,isActive:v})=>[F("li",dt({class:["list-item__wrapper",{"list-item__wrapper--active":i.active??v,"list-item__wrapper--legacy":a.isLegacy34}]},e.$attrs),[F("div",{ref:"list-item",class:ke(["list-item",{"list-item--compact":i.compact,"list-item--one-line":i.oneLine}]),onMouseover:n[5]||(n[5]=(...u)=>o.handleMouseover&&o.handleMouseover(...u)),onMouseleave:n[6]||(n[6]=(...u)=>o.handleMouseleave&&o.handleMouseleave(...u))},[F("a",{id:i.anchorId||void 0,"aria-label":i.linkAriaLabel,class:"list-item__anchor",href:c||i.href,target:i.target||(i.href==="#"?void 0:"_blank"),rel:i.href==="#"?void 0:"noopener noreferrer",onFocus:n[0]||(n[0]=(...u)=>o.showActions&&o.showActions(...u)),onFocusout:n[1]||(n[1]=(...u)=>o.handleBlur&&o.handleBlur(...u)),onClick:u=>o.onClick(u,f,c),onDragstart:n[2]||(n[2]=u=>e.$emit("dragstart",u)),onKeydown:n[3]||(n[3]=mn((...u)=>o.hideActions&&o.hideActions(...u),["esc"]))},[Be(e.$slots,"icon",{},void 0,!0),F("div",H1,[F("div",F1,[F("div",X1,[Be(e.$slots,"name",{},()=>[Te(J(i.name),1)],!0)]),r.hasSubname?(_(),A("div",{key:0,class:ke(["list-item-content__subname",{"list-item-content__subname--bold":i.bold}])},[Be(e.$slots,"subname",{},void 0,!0)],2)):ne("",!0)]),F("div",W1,[o.showDetails?(_(),A("div",q1,[Be(e.$slots,"details",{},()=>[Te(J(i.details),1)],!0)])):ne("",!0),i.counterNumber!==0||r.hasIndicator?li((_(),A("div",G1,[i.counterNumber!==0?(_(),G(s,{key:0,count:i.counterNumber,active:a.isLegacy34?i.active??v:!1,class:"list-item-details__counter",type:i.counterType},null,8,["count","active","type"])):ne("",!0),r.hasIndicator?(_(),A("span",Y1,[Be(e.$slots,"indicator",{},void 0,!0)])):ne("",!0)],512)),[[ta,o.showAdditionalElements]]):ne("",!0)])])],40,U1),e.$slots["extra-actions"]?(_(),A("div",K1,[Be(e.$slots,"extra-actions",{},void 0,!0)])):ne("",!0),i.forceDisplayActions||r.displayActionsOnHoverFocus?(_(),A("div",{key:1,class:"list-item-content__actions",onFocusout:n[4]||(n[4]=(...u)=>o.handleBlur&&o.handleBlur(...u))},[L(l,{ref:"actions",primary:a.isLegacy34?i.active??v:!1,forceMenu:i.forceMenu,"aria-label":i.actionsAriaLabel,"onUpdate:open":o.handleActionsUpdateOpen},na({default:M(()=>[Be(e.$slots,"actions",{},void 0,!0)]),_:2},[e.$slots["actions-icon"]?{name:"icon",fn:M(()=>[Be(e.$slots,"actions-icon",{},void 0,!0)]),key:"0"}:void 0]),1032,["primary","forceMenu","aria-label","onUpdate:open"])],32)):ne("",!0),e.$slots.extra?(_(),A("div",J1,[Be(e.$slots,"extra",{},void 0,!0)])):ne("",!0)],34)],16)]),_:3},16)}const zo=ct($1,[["render",Z1],["__scopeId","data-v-0e705f5a"]]),gi=Mc("teams",{state:()=>({teams:[],loading:!1,loadError:!1,createWizardOpen:!1}),getters:{getTeam:e=>n=>e.teams.find(i=>i.id===n),searchTeams:e=>n=>{const i=n.trim().toLowerCase();return i?e.teams.filter(a=>a.displayName.toLowerCase().includes(i)):e.teams}},actions:{openCreateTeamWizard(){this.createWizardOpen=!0},async loadTeams(){this.loading=!0,this.loadError=!1;try{this.teams=await om()}catch(e){this.loadError=!0,Ie.error("Failed to load teams",{error:e})}finally{this.loading=!1}},fetchTeamMembers(e){return rm(e)},async createTeam(e,n=!0,i=""){const a=await im(e.trim(),n),r=i.trim();if(r)try{await am(a,r)}catch(o){Ie.warn("Failed to set team description",{error:o})}return await this.loadTeams(),this.getTeam(a)},searchMemberCandidates(e){return nm(e)},addTeamMembers(e,n){return tm(e,n)},async leaveTeam(e){await em(e),await this.loadTeams()},async deleteTeam(e){await Qp(e),await this.loadTeams()}}}),Q1={class:"team-wizard"},e0={key:0,class:"team-wizard__step"},t0={key:0,class:"team-wizard__advanced"},n0={key:0,class:"team-wizard__advanced-body"},i0={class:"team-wizard__hint"},a0={key:1,class:"team-wizard__step"},r0={key:0,class:"team-wizard__selection"},o0={key:3,class:"team-wizard__results"},s0={class:"team-wizard__caption"},l0={class:"team-wizard__result-list"},fl=3,c0=Ue({__name:"TeamCreationWizard",emits:["close"],setup(e,{emit:n}){const i=n,a=ji(),r=gi(),o=ge(!0),s=ge("name"),l=ge(!1);Qe(o,H=>{H||i("close")});const c=ge(""),f=ge(!1),v=q(()=>c.value.trim().length>=fl),u=q(()=>!f.value||v.value?"":c.value.trim().length===0?T("circles","Please enter a team name"):T("circles","The team name must be at least {min} characters long",{min:fl})),y=!!ea("circles","teamFolderProvisioningEnabled",!0),b=ge(!0),E=ge(!1),I=ge(""),D=ge(!1),z=ge([]),R=ge(new Map),ee=q(()=>Array.from(R.value.values()));let me;function U(H){clearTimeout(me),me=setTimeout(async()=>{D.value=!0;try{z.value=await r.searchMemberCandidates(H)}catch(O){Ie.error("Failed to search for members",{error:O})}finally{D.value=!1}},300)}Qe(I,H=>U(H));function de(H){const O=new Map(R.value);O.has(H.key)?O.delete(H.key):O.set(H.key,H),R.value=O}function oe(){I.value=""}function le(H){switch(H){case 0:return T("circles","Add users");case 1:return T("circles","Add groups");case 4:return T("circles","Add emails");case 7:return T("circles","Add teams");default:return T("circles","Other")}}const ae=q(()=>{const H=[];for(const O of z.value){if(R.value.has(O.key))continue;const Q=le(O.shareType);let Ce=H.find(xe=>xe.caption===Q);Ce||(Ce={caption:Q,items:[]},H.push(Ce)),Ce.items.push(O)}return H});function se(){return v.value?(s.value="members",U(I.value),!1):(f.value=!0,!1)}function fe(){return s.value="name",!1}async function ce(){if(!v.value||l.value)return!1;l.value=!0;try{const H=await r.createTeam(c.value,b.value);if(!H)throw new Error("Team creation did not return a team");if(ee.value.length>0)try{await r.addTeamMembers(H.id,ee.value){const H={label:T("circles","Cancel"),disabled:l.value};return s.value==="name"?[H,{label:T("circles","Next"),type:"submit",variant:"primary",callback:se}]:[{label:T("circles","Back"),disabled:l.value,callback:fe},H,{label:T("circles","Create team"),type:"submit",variant:"primary",callback:ce}]});function Z(){s.value==="name"?se():ce()}return(H,O)=>(_(),G(g(rr),{open:o.value,"onUpdate:open":O[5]||(O[5]=Q=>o.value=Q),isForm:"",size:"normal",name:g(T)("circles","Create a new team"),buttons:we.value,onSubmit:Z},{default:M(()=>[F("div",Q1,[s.value==="name"?(_(),A("section",e0,[F("h3",null,J(g(T)("circles","Name your team")),1),L(g(qn),{modelValue:c.value,"onUpdate:modelValue":O[0]||(O[0]=Q=>c.value=Q),label:g(T)("circles","Team name"),error:!!u.value,helperText:u.value,placeholder:g(T)("circles","e.g. Design")},null,8,["modelValue","label","error","helperText","placeholder"]),g(y)?(_(),A("div",t0,[L(g(Fe),{variant:"tertiary","aria-expanded":E.value?"true":"false",onClick:O[1]||(O[1]=Q=>E.value=!E.value)},{icon:M(()=>[L(g(Pe),{path:E.value?g(_c):g(lp),size:20},null,8,["path"])]),default:M(()=>[Te(" "+J(g(T)("circles","Advanced")),1)]),_:1},8,["aria-expanded"]),E.value?(_(),A("div",n0,[L(g(Jp),{modelValue:b.value,"onUpdate:modelValue":O[2]||(O[2]=Q=>b.value=Q)},{default:M(()=>[Te(J(g(T)("circles","Create a team space")),1)]),_:1},8,["modelValue"]),F("p",i0,J(g(T)("circles","A shared folder for this team. You can also add one later from the team page.")),1)])):ne("",!0)])):ne("",!0)])):s.value==="members"?(_(),A("section",a0,[F("h3",null,J(g(T)("circles","Add initial members")),1),L(g(qn),{modelValue:I.value,"onUpdate:modelValue":O[3]||(O[3]=Q=>I.value=Q),label:g(T)("circles","Search people, groups, teams…"),showTrailingButton:I.value!=="",trailingButtonLabel:g(T)("circles","Cancel search"),onTrailingButtonClick:oe,onKeydown:O[4]||(O[4]=mn(zt(()=>{},["prevent"]),["enter"]))},{icon:M(()=>[L(g(Pe),{path:g(Wa),size:20},null,8,["path"])]),"trailing-button-icon":M(()=>[L(g(Pe),{path:g(cp),size:20},null,8,["path"])]),_:1},8,["modelValue","label","showTrailingButton","trailingButtonLabel"]),ee.value.length>0?(_(),A("div",r0,[(_(!0),A(rt,null,xt(ee.value,Q=>(_(),G(g(j1),{key:Q.key,text:Q.displayName,ariaLabelClose:g(T)("circles","Remove {name}",{name:Q.displayName}),onClose:Ce=>de(Q)},{icon:M(()=>[L(g(ci),{user:Q.isUser?Q.shareWith:void 0,displayName:Q.displayName,isNoUser:!Q.isUser,size:24,disableMenu:"",hideStatus:""},null,8,["user","displayName","isNoUser"])]),_:2},1032,["text","ariaLabelClose","onClose"]))),128))])):ne("",!0),D.value?(_(),G(g(tn),{key:1,class:"team-wizard__loading",size:32})):ae.value.length===0?(_(),G(g(St),{key:2,name:g(T)("circles","Search for people to add"),description:g(T)("circles","You can always add or remove members later from the team page.")},{icon:M(()=>[L(g(Pe),{path:g(bc)},null,8,["path"])]),_:1},8,["name","description"])):(_(),A("div",o0,[(_(!0),A(rt,null,xt(ae.value,Q=>(_(),A(rt,{key:Q.caption},[F("div",s0,J(Q.caption),1),F("ul",l0,[(_(!0),A(rt,null,xt(Q.items,Ce=>(_(),G(g(zo),{key:Ce.key,name:Ce.displayName,compact:"",onClick:xe=>de(Ce)},{icon:M(()=>[L(g(ci),{user:Ce.isUser?Ce.shareWith:void 0,displayName:Ce.displayName,isNoUser:!Ce.isUser,size:32,disableMenu:"",hideStatus:""},null,8,["user","displayName","isNoUser"])]),_:2},1032,["name","onClick"]))),128))])],64))),128))]))])):ne("",!0)])]),_:1},8,["open","name","buttons"]))}}),u0=Xe(c0,[["__scopeId","data-v-cfd0363f"]]);function d0(){return Zc().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Zc(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const h0=typeof Proxy=="function",p0="devtools-plugin:setup",m0="plugin:settings:set";let Xi,so;function f0(){var e;return Xi!==void 0||(typeof window<"u"&&window.performance?(Xi=!0,so=window.performance):typeof globalThis<"u"&&!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance?(Xi=!0,so=globalThis.perf_hooks.performance):Xi=!1),Xi}function g0(){return f0()?so.now():Date.now()}class v0{constructor(n,i){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=n,this.hook=i;const a={};if(n.settings)for(const s in n.settings){const l=n.settings[s];a[s]=l.defaultValue}const r=`__vue-devtools-plugin-settings__${n.id}`;let o=Object.assign({},a);try{const s=localStorage.getItem(r),l=JSON.parse(s);Object.assign(o,l)}catch{}this.fallbacks={getSettings(){return o},setSettings(s){try{localStorage.setItem(r,JSON.stringify(s))}catch{}o=s},now(){return g0()}},i&&i.on(m0,(s,l)=>{s===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(s,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(s,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(f=>{this.targetQueue.push({method:l,args:c,resolve:f})})})}async setRealTarget(n){this.target=n;for(const i of this.onQueue)this.target.on[i.method](...i.args);for(const i of this.targetQueue)i.resolve(await this.target[i.method](...i.args))}}function y0(e,n){const i=e,a=Zc(),r=d0(),o=h0&&i.enableEarlyProxy;if(r&&(a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))r.emit(p0,e,n);else{const s=o?new v0(i,r):null;(a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:i,setupFn:n,proxy:s}),s&&n(s.proxiedTarget)}}var Qc="store";function Yn(e){return e===void 0&&(e=null),ht(e!==null?e:Qc)}function ki(e,n){Object.keys(e).forEach(function(i){return n(e[i],i)})}function _0(e){return e!==null&&typeof e=="object"}function b0(e){return e&&typeof e.then=="function"}function w0(e,n){return function(){return e(n)}}function gl(e,n,i){return n.indexOf(e)<0&&(i&&i.prepend?n.unshift(e):n.push(e)),function(){var a=n.indexOf(e);a>-1&&n.splice(a,1)}}function vl(e,n){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var i=e.state;cr(e,i,[],e._modules.root,!0),Vo(e,i,n)}function Vo(e,n,i){var a=e._state,r=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,s={},l={},c=So(!0);c.run(function(){ki(o,function(f,v){s[v]=w0(f,e),l[v]=q(function(){return s[v]()}),Object.defineProperty(e.getters,v,{get:function(){return l[v].value},enumerable:!0})})}),e._state=fa({data:n}),e._scope=c,e.strict&&x0(e),a&&i&&e._withCommit(function(){a.data=null}),r&&r.stop()}function cr(e,n,i,a,r){var o=!i.length,s=e._modules.getNamespace(i);if(a.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=a),!o&&!r){var l=Bo(n,i.slice(0,-1)),c=i[i.length-1];e._withCommit(function(){l[c]=a.state})}var f=a.context=C0(e,s,i);a.forEachMutation(function(v,u){var y=s+u;S0(e,y,v,f)}),a.forEachAction(function(v,u){var y=v.root?u:s+u,b=v.handler||v;E0(e,y,b,f)}),a.forEachGetter(function(v,u){var y=s+u;k0(e,y,v,f)}),a.forEachChild(function(v,u){cr(e,n,i.concat(u),v,r)})}function C0(e,n,i){var a=n==="",r={dispatch:a?e.dispatch:function(o,s,l){var c=Ga(o,s,l),f=c.payload,v=c.options,u=c.type;return(!v||!v.root)&&(u=n+u),e.dispatch(u,f)},commit:a?e.commit:function(o,s,l){var c=Ga(o,s,l),f=c.payload,v=c.options,u=c.type;(!v||!v.root)&&(u=n+u),e.commit(u,f,v)}};return Object.defineProperties(r,{getters:{get:a?function(){return e.getters}:function(){return eu(e,n)}},state:{get:function(){return Bo(e.state,i)}}}),r}function eu(e,n){if(!e._makeLocalGettersCache[n]){var i={},a=n.length;Object.keys(e.getters).forEach(function(r){if(r.slice(0,a)===n){var o=r.slice(a);Object.defineProperty(i,o,{get:function(){return e.getters[r]},enumerable:!0})}}),e._makeLocalGettersCache[n]=i}return e._makeLocalGettersCache[n]}function S0(e,n,i,a){var r=e._mutations[n]||(e._mutations[n]=[]);r.push(function(o){i.call(e,a.state,o)})}function E0(e,n,i,a){var r=e._actions[n]||(e._actions[n]=[]);r.push(function(o){var s=i.call(e,{dispatch:a.dispatch,commit:a.commit,getters:a.getters,state:a.state,rootGetters:e.getters,rootState:e.state},o);return b0(s)||(s=Promise.resolve(s)),e._devtoolHook?s.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):s})}function k0(e,n,i,a){e._wrappedGetters[n]||(e._wrappedGetters[n]=function(r){return i(a.state,a.getters,r.state,r.getters)})}function x0(e){Qe(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function Bo(e,n){return n.reduce(function(i,a){return i[a]},e)}function Ga(e,n,i){return _0(e)&&e.type&&(i=n,n=e,e=e.type),{type:e,payload:n,options:i}}var I0="vuex bindings",yl="vuex:mutations",Xr="vuex:actions",wi="vuex",T0=0;function N0(e,n){y0({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[I0]},function(i){i.addTimelineLayer({id:yl,label:"Vuex Mutations",color:_l}),i.addTimelineLayer({id:Xr,label:"Vuex Actions",color:_l}),i.addInspector({id:wi,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),i.on.getInspectorTree(function(a){if(a.app===e&&a.inspectorId===wi)if(a.filter){var r=[];au(r,n._modules.root,a.filter,""),a.rootNodes=r}else a.rootNodes=[iu(n._modules.root,"")]}),i.on.getInspectorState(function(a){if(a.app===e&&a.inspectorId===wi){var r=a.nodeId;eu(n,r),a.state=M0(D0(n._modules,r),r==="root"?n.getters:n._makeLocalGettersCache,r)}}),i.on.editInspectorState(function(a){if(a.app===e&&a.inspectorId===wi){var r=a.nodeId,o=a.path;r!=="root"&&(o=r.split("/").filter(Boolean).concat(o)),n._withCommit(function(){a.set(n._state.data,o,a.state.value)})}}),n.subscribe(function(a,r){var o={};a.payload&&(o.payload=a.payload),o.state=r,i.notifyComponentUpdate(),i.sendInspectorTree(wi),i.sendInspectorState(wi),i.addTimelineEvent({layerId:yl,event:{time:Date.now(),title:a.type,data:o}})}),n.subscribeAction({before:function(a,r){var o={};a.payload&&(o.payload=a.payload),a._id=T0++,a._time=Date.now(),o.state=r,i.addTimelineEvent({layerId:Xr,event:{time:a._time,title:a.type,groupId:a._id,subtitle:"start",data:o}})},after:function(a,r){var o={},s=Date.now()-a._time;o.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},a.payload&&(o.payload=a.payload),o.state=r,i.addTimelineEvent({layerId:Xr,event:{time:Date.now(),title:a.type,groupId:a._id,subtitle:"end",data:o}})}})})}var _l=8702998,O0=6710886,A0=16777215,tu={label:"namespaced",textColor:A0,backgroundColor:O0};function nu(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function iu(e,n){return{id:n||"root",label:nu(n),tags:e.namespaced?[tu]:[],children:Object.keys(e._children).map(function(i){return iu(e._children[i],n+i+"/")})}}function au(e,n,i,a){a.includes(i)&&e.push({id:a||"root",label:a.endsWith("/")?a.slice(0,a.length-1):a||"Root",tags:n.namespaced?[tu]:[]}),Object.keys(n._children).forEach(function(r){au(e,n._children[r],i,a+r+"/")})}function M0(e,n,i){n=i==="root"?n:n[i];var a=Object.keys(n),r={state:Object.keys(e.state).map(function(s){return{key:s,editable:!0,value:e.state[s]}})};if(a.length){var o=L0(n);r.getters=Object.keys(o).map(function(s){return{key:s.endsWith("/")?nu(s):s,editable:!1,value:lo(function(){return o[s]})}})}return r}function L0(e){var n={};return Object.keys(e).forEach(function(i){var a=i.split("/");if(a.length>1){var r=n,o=a.pop();a.forEach(function(s){r[s]||(r[s]={_custom:{value:{},display:s,tooltip:"Module",abstract:!0}}),r=r[s]._custom.value}),r[o]=lo(function(){return e[i]})}else n[i]=lo(function(){return e[i]})}),n}function D0(e,n){var i=n.split("/").filter(function(a){return a});return i.reduce(function(a,r,o){var s=a[r];if(!s)throw new Error('Missing module "'+r+'" for path "'+n+'".');return o===i.length-1?s:s._children},n==="root"?e:e.root._children)}function lo(e){try{return e()}catch(n){return n}}var an=function(e,n){this.runtime=n,this._children=Object.create(null),this._rawModule=e;var i=e.state;this.state=(typeof i=="function"?i():i)||{}},bl={namespaced:{configurable:!0}};bl.namespaced.get=function(){return!!this._rawModule.namespaced},an.prototype.addChild=function(e,n){this._children[e]=n},an.prototype.removeChild=function(e){delete this._children[e]},an.prototype.getChild=function(e){return this._children[e]},an.prototype.hasChild=function(e){return e in this._children},an.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},an.prototype.forEachChild=function(e){ki(this._children,e)},an.prototype.forEachGetter=function(e){this._rawModule.getters&&ki(this._rawModule.getters,e)},an.prototype.forEachAction=function(e){this._rawModule.actions&&ki(this._rawModule.actions,e)},an.prototype.forEachMutation=function(e){this._rawModule.mutations&&ki(this._rawModule.mutations,e)},Object.defineProperties(an.prototype,bl);var ti=function(e){this.register([],e,!1)};ti.prototype.get=function(e){return e.reduce(function(n,i){return n.getChild(i)},this.root)},ti.prototype.getNamespace=function(e){var n=this.root;return e.reduce(function(i,a){return n=n.getChild(a),i+(n.namespaced?a+"/":"")},"")},ti.prototype.update=function(e){ru([],this.root,e)},ti.prototype.register=function(e,n,i){var a=this;i===void 0&&(i=!0);var r=new an(n,i);if(e.length===0)this.root=r;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],r)}n.modules&&ki(n.modules,function(s,l){a.register(e.concat(l),s,i)})},ti.prototype.unregister=function(e){var n=this.get(e.slice(0,-1)),i=e[e.length-1],a=n.getChild(i);a&&a.runtime&&n.removeChild(i)},ti.prototype.isRegistered=function(e){var n=this.get(e.slice(0,-1)),i=e[e.length-1];return n?n.hasChild(i):!1};function ru(e,n,i){if(n.update(i),i.modules)for(var a in i.modules){if(!n.getChild(a))return;ru(e.concat(a),n.getChild(a),i.modules[a])}}function R0(e){return new Xt(e)}var Xt=function(e){var n=this;e===void 0&&(e={});var i=e.plugins;i===void 0&&(i=[]);var a=e.strict;a===void 0&&(a=!1);var r=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ti(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=r;var o=this,s=this,l=s.dispatch,c=s.commit;this.dispatch=function(v,u){return l.call(o,v,u)},this.commit=function(v,u,y){return c.call(o,v,u,y)},this.strict=a;var f=this._modules.root.state;cr(this,f,[],this._modules.root),Vo(this,f),i.forEach(function(v){return v(n)})},Wr={state:{configurable:!0}};Xt.prototype.install=function(e,n){e.provide(n||Qc,this),e.config.globalProperties.$store=this;var i=this._devtools!==void 0?this._devtools:!1;i&&N0(e,this)},Wr.state.get=function(){return this._state.data},Wr.state.set=function(e){},Xt.prototype.commit=function(e,n,i){var a=this,r=Ga(e,n,i),o=r.type,s=r.payload,l={type:o,payload:s},c=this._mutations[o];c&&(this._withCommit(function(){c.forEach(function(f){f(s)})}),this._subscribers.slice().forEach(function(f){return f(l,a.state)}))},Xt.prototype.dispatch=function(e,n){var i=this,a=Ga(e,n),r=a.type,o=a.payload,s={type:r,payload:o},l=this._actions[r];if(l){try{this._actionSubscribers.slice().filter(function(f){return f.before}).forEach(function(f){return f.before(s,i.state)})}catch{}var c=l.length>1?Promise.all(l.map(function(f){return f(o)})):l[0](o);return new Promise(function(f,v){c.then(function(u){try{i._actionSubscribers.filter(function(y){return y.after}).forEach(function(y){return y.after(s,i.state)})}catch{}f(u)},function(u){try{i._actionSubscribers.filter(function(y){return y.error}).forEach(function(y){return y.error(s,i.state,u)})}catch{}v(u)})})}},Xt.prototype.subscribe=function(e,n){return gl(e,this._subscribers,n)},Xt.prototype.subscribeAction=function(e,n){var i=typeof e=="function"?{before:e}:e;return gl(i,this._actionSubscribers,n)},Xt.prototype.watch=function(e,n,i){var a=this;return Qe(function(){return e(a.state,a.getters)},n,Object.assign({},i))},Xt.prototype.replaceState=function(e){var n=this;this._withCommit(function(){n._state.data=e})},Xt.prototype.registerModule=function(e,n,i){i===void 0&&(i={}),typeof e=="string"&&(e=[e]),this._modules.register(e,n),cr(this,this.state,e,this._modules.get(e),i.preserveState),Vo(this,this.state)},Xt.prototype.unregisterModule=function(e){var n=this;typeof e=="string"&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var i=Bo(n.state,e.slice(0,-1));delete i[e[e.length-1]]}),vl(this)},Xt.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),this._modules.isRegistered(e)},Xt.prototype.hotUpdate=function(e){this._modules.update(e),vl(this,!0)},Xt.prototype._withCommit=function(e){var n=this._committing;this._committing=!0,e(),this._committing=n},Object.defineProperties(Xt.prototype,Wr);const P0={name:"NcActionCaption",inject:{isInSemanticMenu:{from:up,default:!1}},props:{name:{type:String,required:!0}}},j0=["role"];function z0(e,n,i,a,r,o){return _(),A("li",{class:"app-navigation-caption",role:o.isInSemanticMenu&&"presentation"},J(i.name),9,j0)}const wl=ct(P0,[["render",z0],["__scopeId","data-v-1009e96c"]]),V0={name:"NcActionSeparator"},B0={class:"action action-separator action--disabled",role:"separator"};function $0(e,n,i,a,r,o){return _(),A("li",B0)}const ou=ct(V0,[["render",$0],["__scopeId","data-v-3e2324b7"]]),U0={name:"NcAppNavigationList"},H0={class:"app-navigation-list"};function F0(e,n,i,a,r,o){return _(),A("ul",H0,[Be(e.$slots,"default",{},void 0,!0)])}const X0=ct(U0,[["render",F0],["__scopeId","data-v-d72957ed"]]);Ze(hh);const W0={class:"app-navigation-toggle-wrapper"},q0=Ue({__name:"NcAppNavigationToggle",props:{open:{type:Boolean,required:!0},openModifiers:{}},emits:["update:open"],setup(e){const n=ga(e,"open"),i=q(()=>n.value?ze("Close navigation"):ze("Open navigation"));return(a,r)=>(_(),A("div",W0,[L(g(Fe),{class:"app-navigation-toggle","aria-controls":"app-navigation-vue","aria-expanded":n.value?"true":"false","aria-label":i.value,title:i.value,variant:"tertiary",onClick:r[0]||(r[0]=o=>n.value=!n.value)},{icon:M(()=>[L(Pe,{path:n.value?g(mp):g(fp)},null,8,["path"])]),_:1},8,["aria-expanded","aria-label","title"])]))}}),G0=ct(q0,[["__scopeId","data-v-5a15295d"]]),Y0=["aria-hidden","aria-label","aria-labelledby","inert"],K0={class:"app-navigation__search"},J0=Ue({__name:"NcAppNavigation",props:{ariaLabel:{},ariaLabelledby:{}},setup(e){const n=e;let i;const a=ht(zc,()=>sc(),!1),r=To("appNavigationContainer"),o=fi(),s=ge(!o.value),l=q(()=>o.value&&s.value);ph(()=>{!n.ariaLabel&&n.ariaLabelledby}),Qe(o,()=>{s.value=!o.value}),Qe(l,()=>{v()}),On(()=>{a(!0),aa("toggle-navigation",f),kn("navigation-toggled",{open:s.value}),i=dp(r.value,{allowOutsideClick:!0,clickOutsideDeactivates:()=>(o.value&&(i.deactivate({returnFocus:!1}),c(!1)),!1),fallbackFocus:r.value,trapStack:hp(),escapeDeactivates:!1}),v()}),Jr(()=>{a(!1),pp("toggle-navigation",f),i.deactivate()});function c(y){if(s.value===y){kn("navigation-toggled",{open:s.value});return}s.value=y===void 0?!s.value:y;const b=getComputedStyle(document.body),E=parseInt(b.getPropertyValue("--animation-quick"))||100;setTimeout(()=>{kn("navigation-toggled",{open:s.value})},1.5*E)}function f({open:y}){return c(y)}function v(){l.value?i.activate():i.deactivate()}function u(){o.value&&c(!1)}return(y,b)=>(_(),A("div",{ref:"appNavigationContainer",class:ke(["app-navigation",{"app-navigation--closed":!s.value,"app-navigation--legacy":g(Wn)}])},[F("nav",{id:"app-navigation-vue","aria-hidden":s.value?"false":"true","aria-label":e.ariaLabel||void 0,"aria-labelledby":e.ariaLabelledby||void 0,class:"app-navigation__content",inert:!s.value||void 0,onKeydown:mn(u,["esc"])},[F("div",K0,[Be(y.$slots,"search",{},void 0,!0)]),F("div",{class:ke(["app-navigation__body",{"app-navigation__body--no-list":!y.$slots.list}])},[Be(y.$slots,"default",{},void 0,!0)],2),y.$slots.list?(_(),G(X0,{key:0,class:"app-navigation__list"},{default:M(()=>[Be(y.$slots,"list",{},void 0,!0)]),_:3})):ne("",!0),Be(y.$slots,"footer",{},void 0,!0)],40,Y0),L(G0,{open:s.value,"onUpdate:open":c},null,8,["open"])],2))}}),Z0=ct(J0,[["__scopeId","data-v-1344f70d"]]),Q0={name:"NcAppNavigationCaption",components:{NcActions:xn},props:{name:{type:String,required:!0},headingId:{type:String,default:null},isHeading:{type:Boolean,default:!1},headingLevel:{type:Number,default:2},...xn.props},computed:{actionsProps(){const e=Object.keys(xn.props),n=Object.entries(this.$props).filter(([i,a])=>e.includes(i));return Object.fromEntries(n)},wrapperTag(){return this.isHeading?"div":"li"},captionTag(){const e=Math.max(2,this.headingLevel);return this.isHeading?`h${e}`:"span"}}},eg={key:0,class:"app-navigation-caption__actions"};function tg(e,n,i,a,r,o){const s=Ne("NcActions");return _(),G(Xn(o.wrapperTag),{class:ke(["app-navigation-caption",{"app-navigation-caption--heading":i.isHeading}])},{default:M(()=>[(_(),G(Xn(o.captionTag),{id:i.headingId,class:"app-navigation-caption__name"},{default:M(()=>[Te(J(i.name),1)]),_:1},8,["id"])),e.$slots.actions?(_(),A("div",eg,[L(s,xo(Io(o.actionsProps)),{icon:M(()=>[Be(e.$slots,"actionsTriggerIcon",{},void 0,!0)]),default:M(()=>[Be(e.$slots,"actions",{},void 0,!0)]),_:3},16)])):ne("",!0)]),_:3},8,["class"])}const ng=ct(Q0,[["render",tg],["__scopeId","data-v-f0e411c2"]]),ig={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ag=["aria-hidden","aria-label"],rg=["fill","width","height"],og={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},sg={key:0};function lg(e,n,i,a,r,o){return _(),A("span",dt(e.$attrs,{"aria-hidden":i.title?null:"true","aria-label":i.title,class:"material-design-icon chevron-up-icon",role:"img",onClick:n[0]||(n[0]=s=>e.$emit("click",s))}),[(_(),A("svg",{fill:i.fillColor,class:"material-design-icon__svg",width:i.size,height:i.size,viewBox:"0 0 24 24"},[F("path",og,[i.title?(_(),A("title",sg,J(i.title),1)):ne("",!0)])],8,rg))],16,ag)}const cg=ct(ig,[["render",lg]]),ug={name:"ArrowRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},dg=["aria-hidden","aria-label"],hg=["fill","width","height"],pg={d:"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z"},mg={key:0};function fg(e,n,i,a,r,o){return _(),A("span",dt(e.$attrs,{"aria-hidden":i.title?null:"true","aria-label":i.title,class:"material-design-icon arrow-right-icon",role:"img",onClick:n[0]||(n[0]=s=>e.$emit("click",s))}),[(_(),A("svg",{fill:i.fillColor,class:"material-design-icon__svg",width:i.size,height:i.size,viewBox:"0 0 24 24"},[F("path",pg,[i.title?(_(),A("title",mg,J(i.title),1)):ne("",!0)])],8,hg))],16,dg)}const gg=ct(ug,[["render",fg]]);Ze(mh);const vg={name:"NcInputConfirmCancel",components:{IconArrowRight:gg,IconClose:Bm,NcButton:Fe},props:{primary:{default:!1,type:Boolean},placeholder:{default:"",type:String},modelValue:{default:"",type:String}},emits:["cancel","confirm","update:modelValue"],setup(){return{isLegacy34:Wn}},data(){return{labelConfirm:ze("Confirm changes"),labelCancel:ze("Cancel changes")}},computed:{valueModel:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{confirm(){this.$emit("confirm")},cancel(){this.$emit("cancel")},focusInput(){this.$refs.input.focus()}}},yg=["placeholder"];function _g(e,n,i,a,r,o){const s=Ne("IconArrowRight"),l=Ne("NcButton"),c=Ne("IconClose");return _(),A("div",{class:ke(["app-navigation-input-confirm",{"app-navigation-input-confirm--legacy":a.isLegacy34}])},[F("form",{onSubmit:n[1]||(n[1]=zt((...f)=>o.confirm&&o.confirm(...f),["prevent"])),onKeydown:n[2]||(n[2]=mn(zt((...f)=>o.cancel&&o.cancel(...f),["exact","stop","prevent"]),["esc"])),onClick:n[3]||(n[3]=zt(()=>{},["stop","prevent"]))},[li(F("input",{ref:"input","onUpdate:modelValue":n[0]||(n[0]=f=>o.valueModel=f),type:"text",class:"app-navigation-input-confirm__input",placeholder:i.placeholder},null,8,yg),[[lc,o.valueModel]]),L(l,{"aria-label":r.labelConfirm,type:"submit",variant:"primary",onClick:zt(o.confirm,["stop","prevent"])},{icon:M(()=>[L(s,{size:20})]),_:1},8,["aria-label","onClick"]),L(l,{"aria-label":r.labelCancel,type:"reset",variant:i.primary?"primary":"tertiary",onClick:zt(o.cancel,["stop","prevent"])},{icon:M(()=>[L(c,{size:20})]),_:1},8,["aria-label","variant","onClick"])],32)],2)}const bg=ct(vg,[["render",_g],["__scopeId","data-v-6926a0b8"]]),wg={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cg=["aria-hidden","aria-label"],Sg=["fill","width","height"],Eg={d:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z"},kg={key:0};function xg(e,n,i,a,r,o){return _(),A("span",dt(e.$attrs,{"aria-hidden":i.title?null:"true","aria-label":i.title,class:"material-design-icon pencil-icon",role:"img",onClick:n[0]||(n[0]=s=>e.$emit("click",s))}),[(_(),A("svg",{fill:i.fillColor,class:"material-design-icon__svg",width:i.size,height:i.size,viewBox:"0 0 24 24"},[F("path",Eg,[i.title?(_(),A("title",kg,J(i.title),1)):ne("",!0)])],8,Sg))],16,Cg)}const Ig=ct(wg,[["render",xg]]),Tg={name:"UndoIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ng=["aria-hidden","aria-label"],Og=["fill","width","height"],Ag={d:"M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z"},Mg={key:0};function Lg(e,n,i,a,r,o){return _(),A("span",dt(e.$attrs,{"aria-hidden":i.title?null:"true","aria-label":i.title,class:"material-design-icon undo-icon",role:"img",onClick:n[0]||(n[0]=s=>e.$emit("click",s))}),[(_(),A("svg",{fill:i.fillColor,class:"material-design-icon__svg",width:i.size,height:i.size,viewBox:"0 0 24 24"},[F("path",Ag,[i.title?(_(),A("title",Mg,J(i.title),1)):ne("",!0)])],8,Og))],16,Ng)}const Dg=ct(Tg,[["render",Lg]]);Ze(fh);const Rg={name:"NcAppNavigationIconCollapsible",components:{NcButton:Fe,ChevronDown:$m,ChevronUp:cg},props:{open:{type:Boolean,required:!0},active:{type:Boolean,required:!0}},emits:["click"],setup(){return{isLegacy34:Wn}},computed:{labelButton(){return this.open?ze("Collapse menu"):ze("Open menu")}},methods:{onClick(e){this.$emit("click",e)}}};function Pg(e,n,i,a,r,o){const s=Ne("ChevronUp"),l=Ne("ChevronDown"),c=Ne("NcButton");return _(),G(c,{class:ke(["icon-collapse",{"icon-collapse--active":i.active,"icon-collapse--open":i.open}]),"aria-label":o.labelButton,variant:i.active&&a.isLegacy34?"tertiary-on-primary":"tertiary",onClick:o.onClick},{icon:M(()=>[i.open?(_(),G(s,{key:0,size:20})):(_(),G(l,{key:1,size:20}))]),_:1},8,["class","aria-label","variant","onClick"])}const jg=ct(Rg,[["render",Pg],["__scopeId","data-v-cfbd3794"]]);Ze(vh,gh);const zg={name:"NcAppNavigationItem",components:{NcActions:xn,NcActionButton:In,NcAppNavigationIconCollapsible:jg,NcInputConfirmCancel:bg,NcLoadingIcon:tn,NcVNodes:jo,Pencil:Ig,Undo:Dg},props:{active:{type:Boolean,default:!1},name:{type:String,required:!0},title:{type:String,default:null},id:{type:String,default:()=>wc(),validator:e=>e.trim()!==""},icon:{type:String,default:""},loading:{type:Boolean,default:!1},to:{type:[String,Object],default:null},href:{type:String,default:null},allowCollapse:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},editLabel:{type:String,default:""},editPlaceholder:{type:String,default:""},pinned:{type:Boolean,default:!1},undo:{type:Boolean,default:!1},open:{type:Boolean,default:!1},menuOpen:{type:Boolean,default:!1},forceMenu:{type:Boolean,default:!1},menuIcon:{type:String,default:void 0},menuPlacement:{type:String,default:"bottom"},ariaDescription:{type:String,default:null},forceDisplayActions:{type:Boolean,default:!1},inlineActions:{type:Number,default:0}},emits:["update:menuOpen","update:open","update:name","click","undo"],setup(){return{isMobile:fi(),isLegacy34:Wn}},data(){return{actionsBoundariesElement:void 0,editingValue:"",opened:this.open,editingActive:!1,menuOpenLocalValue:!1,focused:!1}},computed:{isRouterLink(){return this.to&&!this.href},canHaveChildren(){return this.$parent.$options._componentTag!=="AppNavigationItem"},editButtonAriaLabel(){return this.editLabel?this.editLabel:ze("Edit item")},undoButtonAriaLabel(){return ze("Undo changes")}},watch:{open(e){this.opened=e}},mounted(){this.actionsBoundariesElement=document.querySelector("#content-vue")||void 0},methods:{onMenuToggle(e){this.$emit("update:menuOpen",e),this.menuOpenLocalValue=e},toggleCollapse(){this.opened=!this.opened,this.$emit("update:open",this.opened)},onClick(e,n,i){this.$emit("click",e),!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&i&&(n?.(e),e.preventDefault())},handleEdit(){this.editingValue=this.name,this.editingActive=!0,this.onMenuToggle(!1),this.$nextTick(()=>{this.$refs.editingInput.focusInput()})},cancelEditing(){this.editingActive=!1},handleEditingDone(){this.$emit("update:name",this.editingValue),this.editingValue="",this.editingActive=!1},handleUndo(){this.$emit("undo")},handleFocus(){this.focused=!0},handleBlur(){this.focused=!1},handleTab(e){this.$refs.actions&&(this.focused?(e.preventDefault(),this.$refs.actions.$refs.triggerButton.$el.focus(),this.focused=!1):this.$refs.actions.$refs.triggerButton.$el.blur())},isExternal(e){return e&&e.match(/[a-z]+:\/\//i)}}},Vg=["id"],Bg=["aria-current","aria-description","aria-expanded","href","target","title","onClick"],$g={key:0,class:"editingContainer"},Ug={key:1,class:"app-navigation-entry__deleted"},Hg={class:"app-navigation-entry__deleted-description"},Fg={key:0,class:"app-navigation-entry__counter-wrapper"},Xg={key:0,class:"app-navigation-entry__children"};function Wg(e,n,i,a,r,o){const s=Ne("NcLoadingIcon"),l=Ne("NcInputConfirmCancel"),c=Ne("Pencil"),f=Ne("NcActionButton"),v=Ne("Undo"),u=Ne("NcActions"),y=Ne("NcAppNavigationIconCollapsible");return _(),A("li",{id:i.id,class:ke([{"app-navigation-entry--opened":r.opened,"app-navigation-entry--pinned":i.pinned,"app-navigation-entry--collapsible":i.allowCollapse&&!!e.$slots.default},"app-navigation-entry-wrapper"])},[(_(),G(Xn(o.isRouterLink?"router-link":"NcVNodes"),xo(Io({...o.isRouterLink&&{custom:!0,to:i.to}})),{default:M(({href:b,navigate:E,isActive:I})=>[F("div",{class:ke(["app-navigation-entry",{"app-navigation-entry--editing":r.editingActive,"app-navigation-entry--deleted":i.undo,"app-navigation-entry--legacy":a.isLegacy34,active:i.to&&I||i.active}])},[i.undo?ne("",!0):(_(),A("a",{key:0,class:"app-navigation-entry-link","aria-current":i.active||i.to&&I?"page":void 0,"aria-description":i.ariaDescription,"aria-expanded":e.$slots.default?r.opened.toString():void 0,href:i.href||b||"#",target:o.isExternal(i.href)?"_blank":void 0,title:i.title||i.name,onBlur:n[1]||(n[1]=(...D)=>o.handleBlur&&o.handleBlur(...D)),onClick:D=>o.onClick(D,E,b),onFocus:n[2]||(n[2]=(...D)=>o.handleFocus&&o.handleFocus(...D)),onKeydown:n[3]||(n[3]=mn(zt((...D)=>o.handleTab&&o.handleTab(...D),["exact"]),["tab"]))},[F("div",{class:ke(["app-navigation-entry-icon",{[i.icon]:i.icon}])},[i.loading?(_(),G(s,{key:0})):Be(e.$slots,"icon",{key:1,active:i.active||i.to&&I},void 0,!0)],2),F("span",{class:ke(["app-navigation-entry__name",{"hidden-visually":r.editingActive}])},J(i.name),3),r.editingActive?(_(),A("div",$g,[L(l,{ref:"editingInput",modelValue:r.editingValue,"onUpdate:modelValue":n[0]||(n[0]=D=>r.editingValue=D),placeholder:i.editPlaceholder!==""?i.editPlaceholder:i.name,primary:i.to&&I||i.active,onCancel:o.cancelEditing,onConfirm:o.handleEditingDone},null,8,["modelValue","placeholder","primary","onCancel","onConfirm"])])):ne("",!0)],40,Bg)),i.undo?(_(),A("div",Ug,[F("div",Hg,J(i.name),1)])):ne("",!0),(e.$slots.actions||e.$slots.counter||i.editable||i.undo)&&!r.editingActive?(_(),A("div",{key:2,class:ke(["app-navigation-entry__utils",{"app-navigation-entry__utils--display-actions":i.forceDisplayActions||r.menuOpenLocalValue||i.menuOpen}])},[e.$slots.counter?(_(),A("div",Fg,[Be(e.$slots,"counter",{},void 0,!0)])):ne("",!0),e.$slots.actions||i.editable&&!r.editingActive||i.undo?(_(),G(u,{key:1,ref:"actions",class:"app-navigation-entry__actions",container:"#app-navigation-vue",boundariesElement:r.actionsBoundariesElement,inline:i.inlineActions,placement:i.menuPlacement,open:i.menuOpen,forceMenu:i.forceMenu,defaultIcon:i.menuIcon,variant:"tertiary","onUpdate:open":o.onMenuToggle},{icon:M(()=>[Be(e.$slots,"menu-icon",{},void 0,!0)]),default:M(()=>[i.editable&&!r.editingActive?(_(),G(f,{key:0,"aria-label":o.editButtonAriaLabel,onClick:o.handleEdit},{icon:M(()=>[L(c,{size:20})]),default:M(()=>[Te(" "+J(i.editLabel),1)]),_:1},8,["aria-label","onClick"])):ne("",!0),i.undo?(_(),G(f,{key:1,"aria-label":o.undoButtonAriaLabel,onClick:o.handleUndo},{icon:M(()=>[L(v,{size:20})]),_:1},8,["aria-label","onClick"])):ne("",!0),Be(e.$slots,"actions",{},void 0,!0)]),_:3},8,["boundariesElement","inline","placement","open","forceMenu","defaultIcon","onUpdate:open"])):ne("",!0)],2)):ne("",!0),i.allowCollapse&&e.$slots.default?(_(),G(y,{key:3,active:i.to&&I||i.active,open:r.opened,onClick:zt(o.toggleCollapse,["prevent","stop"])},null,8,["active","open","onClick"])):ne("",!0),Be(e.$slots,"extra",{},void 0,!0)],2)]),_:3},16)),o.canHaveChildren&&e.$slots.default?(_(),A("ul",Xg,[Be(e.$slots,"default",{},void 0,!0)])):ne("",!0)],10,Vg)}const qr=ct(zg,[["render",Wg],["__scopeId","data-v-fcab058b"]]),su=fa(new Map);aa("circles:avatar:updated",e=>{typeof e=="string"&&su.set(e,Date.now())});function co(e){const n=su.get(e);return Zr(`/apps/circles/circles/${e}/avatar`)+(n===void 0?"":`?v=${n}`)}const Zi=Ue({__name:"TeamAvatar",props:{displayName:{},circleId:{},size:{default:32}},setup(e){const n=e,i=q(()=>co(n.circleId));return(a,r)=>(_(),G(g(ci),{displayName:e.displayName,url:i.value,isNoUser:!0,size:e.size,hideStatus:"",disableMenu:"",disableTooltip:""},null,8,["displayName","url","size"]))}}),qg={class:"team-members-row"},Gg={key:0,class:"team-members-row__more"},Yg=Ue({__name:"TeamMembersRow",props:{members:{},hiddenCount:{}},setup(e){return(n,i)=>(_(),A("span",qg,[(_(!0),A(rt,null,xt(e.members,a=>(_(),G(g(ci),{key:a.singleId,user:a.isUser?a.userId:void 0,displayName:a.displayName,isNoUser:!a.isUser,size:24,hideStatus:"",disableMenu:""},null,8,["user","displayName","isNoUser"]))),128)),e.hiddenCount>0?(_(),A("span",Gg," +"+J(e.hiddenCount),1)):ne("",!0)]))}}),Cl=Xe(Yg,[["__scopeId","data-v-02d2a1f3"]]);function lu(e){return e?e.isOwner&&!e.isPersonal||!!Cc()?.isAdmin:!1}function $o(e){const n=ji(),i=gi(),a=q(()=>({name:"team",params:{teamId:e()?.id}})),r=q(()=>e()?.myRole==="owner"),o=q(()=>{const y=e();return!!y&&["owner","admin","moderator"].includes(y.myRole)}),s=q(()=>{const y=e();return!!y&&["owner","admin"].includes(y.myRole)}),l=q(()=>!!e()&&!r.value),c=q(()=>r.value);async function f(){const y=window.location.origin+n.resolve(a.value).href;try{await navigator.clipboard.writeText(y),Qt(T("circles","Link copied to the clipboard"))}catch(b){Ie.error("Could not copy link",{error:b}),We(T("circles","Could not copy link to the clipboard"))}}async function v(){const y=e();if(!(!y||!await eo({name:T("circles","Leave team"),text:T("circles","Are you sure you want to leave {team}?",{team:y.displayName}),labelConfirm:T("circles","Leave team"),labelReject:T("circles","Cancel"),severity:"warning"})))try{await i.leaveTeam(y.id),Qt(T("circles",'You left "{name}"',{name:y.displayName})),n.currentRoute.value.params.teamId===y.id&&n.push({name:"home"})}catch(b){Ie.error("Could not leave the team",{error:b}),We(T("circles","Could not leave the team"))}}async function u(){const y=e();if(!(!y||!await eo({name:T("circles","Delete team"),text:T("circles","Are you sure you want to delete {team}? This cannot be undone.",{team:y.displayName}),labelConfirm:T("circles","Delete team"),labelReject:T("circles","Cancel"),severity:"error"})))try{await i.deleteTeam(y.id),Qt(T("circles","Team deleted")),n.currentRoute.value.params.teamId===y.id&&n.push({name:"home"})}catch(b){Ie.error("Could not delete the team",{error:b}),We(T("circles","Could not delete the team"))}}return{canManage:o,isTeamAdmin:s,canLeave:l,canDelete:c,onCopyLink:f,onLeave:v,onDelete:u}}const Kg={class:"team-header"},Jg=["title","aria-label"],Zg={class:"team-header__info"},Qg=["title"],ev={class:"team-header__switcher"},tv={class:"team-header__switcher-current"},nv={class:"team-header__info"},iv=["title"],av=["title","aria-label"],rv={key:0,class:"team-header__switcher-caption"},ov={class:"team-header__switcher-caption-text"},sv={class:"team-header__switcher-list"},lv={class:"team-header__switcher-footer"},Sl=28,cv=36,Na=8,uv=Ue({__name:"TeamHeader",props:{circle:{}},setup(e){const n=e,i=ji(),a=Yn(),r=gi(),o=q(()=>r.getTeam(n.circle.id)),{canLeave:s,canDelete:l,onCopyLink:c,onLeave:f,onDelete:v}=$o(()=>o.value),u=q(()=>Object.values(a.getters.getCircle(n.circle.id)?.members??{})),y=ge(null),{width:b}=Ps(y),E=q(()=>{const O=b.value;if(!O||u.value.length*Sl-4<=O)return u.value;const Q=Math.max(1,Math.floor((O-cv)/Sl));return u.value.slice(0,Q)}),I=q(()=>u.value.length-E.value.length),D=ge(!1),z=ge(null),{width:R,height:ee}=Ps(z);function me(){const O=z.value?.closest("#app-navigation-vue");if(!O)return;const Q=O.getBoundingClientRect(),Ce=document.documentElement.style;Ce.setProperty("--team-switcher-top",`${Q.top+Na}px`),Ce.setProperty("--team-switcher-left",`${Q.left+Na}px`),Ce.setProperty("--team-switcher-width",`${Q.width-2*Na}px`);const xe=window.innerHeight-Q.top-2*Na;Ce.setProperty("--team-switcher-max-height",`${xe}px`)}Qe([R,ee],()=>{D.value&&me()}),Qe(D,O=>{O&&me()}),gp(window,"resize",()=>{D.value&&me()});const U=q(()=>r.teams.filter(O=>O.id!==n.circle.id)),de=ge(!1),oe=ge(""),le=ge(null),ae=ge(null),se=q(()=>{const O=oe.value.trim().toLowerCase();return O?U.value.filter(Q=>Q.displayName.toLowerCase().includes(O)):U.value});Qe(D,O=>{O||(de.value=!1,oe.value="")});async function fe(){de.value=!0,await pn(),le.value?.focus()}async function ce(){de.value=!1,oe.value="",await pn(),ae.value?.$el.focus()}async function we(){D.value=!1,await i.push({name:"home"})}function Z(){D.value=!1,r.createWizardOpen=!0}async function H(){D.value=!1,await i.push({name:"team-members",params:{teamId:n.circle.id}})}return(O,Q)=>(_(),A("div",Kg,[L(g(Ec),{popupRole:"dialog",shown:D.value,popoverBaseClass:"team-switcher-popover","onUpdate:shown":Q[3]||(Q[3]=Ce=>D.value=Ce)},{trigger:M(()=>[F("button",{ref_key:"triggerEl",ref:z,type:"button",class:"team-header__trigger",title:g(T)("circles","Switch team"),"aria-label":g(T)("circles","Switch team"),onClick:Q[0]||(Q[0]=Ce=>D.value=!0)},[L(Zi,{displayName:e.circle.displayName,circleId:e.circle.id,size:44},null,8,["displayName","circleId"]),F("span",Zg,[F("h2",{class:"team-header__name",title:e.circle.displayName},J(e.circle.displayName),9,Qg),o.value&&u.value.length>0?(_(),G(Cl,{key:0,ref_key:"membersRowEl",ref:y,members:E.value,hiddenCount:I.value},null,8,["members","hiddenCount"])):ne("",!0)]),L(g(Pe),{class:"team-header__chevron",path:g(_c),size:20},null,8,["path"])],8,Jg)]),default:M(()=>[F("div",ev,[F("div",tv,[L(Zi,{displayName:e.circle.displayName,circleId:e.circle.id,size:44},null,8,["displayName","circleId"]),F("div",nv,[F("span",{class:"team-header__name",title:e.circle.displayName},J(e.circle.displayName),9,iv),o.value&&u.value.length>0?(_(),A("button",{key:0,type:"button",class:"team-header__members-button",title:g(T)("circles","Show members"),"aria-label":g(T)("circles","Show members"),onClick:H},[L(Cl,{members:E.value,hiddenCount:I.value},null,8,["members","hiddenCount"])],8,av)):ne("",!0)]),o.value?(_(),G(g(xn),{key:0,class:"team-header__switcher-actions","aria-label":g(T)("circles","Team actions")},{default:M(()=>[L(g(In),{closeAfterClick:"",onClick:g(c)},{icon:M(()=>[L(g(Pe),{path:g(vp),size:20},null,8,["path"])]),default:M(()=>[Te(" "+J(g(T)("circles","Copy team link")),1)]),_:1},8,["onClick"]),g(s)?(_(),G(g(In),{key:0,closeAfterClick:"",onClick:g(f)},{icon:M(()=>[L(g(Pe),{path:g(yp),size:20},null,8,["path"])]),default:M(()=>[Te(" "+J(g(T)("circles","Leave team")),1)]),_:1},8,["onClick"])):ne("",!0),g(l)?(_(),G(g(In),{key:1,closeAfterClick:"",onClick:g(v)},{icon:M(()=>[L(g(Pe),{path:g(Sc),size:20},null,8,["path"])]),default:M(()=>[Te(" "+J(g(T)("circles","Delete team")),1)]),_:1},8,["onClick"])):ne("",!0)]),_:1},8,["aria-label"])):ne("",!0)]),Q[4]||(Q[4]=F("hr",{class:"team-header__switcher-divider team-header__switcher-divider--caption"},null,-1)),de.value?(_(),G(g(qn),{key:1,ref_key:"searchFieldEl",ref:le,modelValue:oe.value,"onUpdate:modelValue":Q[1]||(Q[1]=Ce=>oe.value=Ce),class:"team-header__switcher-search",label:g(T)("circles","Search teams"),showTrailingButton:"",trailingButtonIcon:"close",trailingButtonLabel:g(T)("circles","Cancel search"),onTrailingButtonClick:ce,onKeydown:mn(zt(ce,["stop","prevent"]),["esc"])},null,8,["modelValue","label","trailingButtonLabel","onKeydown"])):(_(),A("div",rv,[F("span",ov,J(g(T)("circles","Go to team")),1),L(g(Fe),{ref_key:"searchButtonEl",ref:ae,variant:"tertiary",title:g(T)("circles","Search teams"),"aria-label":g(T)("circles","Search teams"),onClick:fe},{icon:M(()=>[L(g(Pe),{path:g(Wa),size:20},null,8,["path"])]),_:1},8,["title","aria-label"])])),F("ul",sv,[(_(!0),A(rt,null,xt(se.value,Ce=>(_(),G(g(zo),{key:Ce.id,name:Ce.displayName,to:{name:"team",params:{teamId:Ce.id}},oneLine:"",onClick:Q[2]||(Q[2]=xe=>D.value=!1)},{icon:M(()=>[L(Zi,{displayName:Ce.displayName,circleId:Ce.id,size:32},null,8,["displayName","circleId"])]),_:2},1032,["name","to"]))),128))]),Q[5]||(Q[5]=F("hr",{class:"team-header__switcher-divider"},null,-1)),F("div",lv,[L(g(Fe),{variant:"tertiary",title:g(T)("circles","Home"),"aria-label":g(T)("circles","Home"),onClick:we},{icon:M(()=>[L(g(Pe),{path:g(_p),size:20},null,8,["path"])]),_:1},8,["title","aria-label"]),L(g(Fe),{class:"team-header__switcher-new",variant:"secondary",onClick:Z},{icon:M(()=>[L(g(Pe),{path:g(qa),size:20},null,8,["path"])]),default:M(()=>[Te(" "+J(g(T)("circles","New team")),1)]),_:1})])])]),_:1},8,["shown"])]))}}),dv=Xe(uv,[["__scopeId","data-v-c2615309"]]);var Oa={},El={exports:{}},kl={};const Oi=Symbol(""),Ii=Symbol(""),ur=Symbol(""),oa=Symbol(""),Uo=Symbol(""),Gn=Symbol(""),Ho=Symbol(""),Fo=Symbol(""),dr=Symbol(""),hr=Symbol(""),zi=Symbol(""),pr=Symbol(""),Xo=Symbol(""),mr=Symbol(""),fr=Symbol(""),gr=Symbol(""),vr=Symbol(""),yr=Symbol(""),_r=Symbol(""),Wo=Symbol(""),qo=Symbol(""),va=Symbol(""),sa=Symbol(""),br=Symbol(""),wr=Symbol(""),Ai=Symbol(""),Vi=Symbol(""),Cr=Symbol(""),Ya=Symbol(""),cu=Symbol(""),Ka=Symbol(""),la=Symbol(""),uu=Symbol(""),du=Symbol(""),Sr=Symbol(""),hu=Symbol(""),pu=Symbol(""),Er=Symbol(""),Go=Symbol(""),ui={[Oi]:"Fragment",[Ii]:"Teleport",[ur]:"Suspense",[oa]:"KeepAlive",[Uo]:"BaseTransition",[Gn]:"openBlock",[Ho]:"createBlock",[Fo]:"createElementBlock",[dr]:"createVNode",[hr]:"createElementVNode",[zi]:"createCommentVNode",[pr]:"createTextVNode",[Xo]:"createStaticVNode",[mr]:"resolveComponent",[fr]:"resolveDynamicComponent",[gr]:"resolveDirective",[vr]:"resolveFilter",[yr]:"withDirectives",[_r]:"renderList",[Wo]:"renderSlot",[qo]:"createSlots",[va]:"toDisplayString",[sa]:"mergeProps",[br]:"normalizeClass",[wr]:"normalizeStyle",[Ai]:"normalizeProps",[Vi]:"guardReactiveProps",[Cr]:"toHandlers",[Ya]:"camelize",[cu]:"capitalize",[Ka]:"toHandlerKey",[la]:"setBlockTracking",[uu]:"pushScopeId",[du]:"popScopeId",[Sr]:"withCtx",[hu]:"unref",[pu]:"isRef",[Er]:"withMemo",[Go]:"isMemoSame"};function mu(e){Object.getOwnPropertySymbols(e).forEach(n=>{ui[n]=e[n]})}const hv={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},pv={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},mv={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},fv={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_CACHE:2,2:"CAN_CACHE",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},Tt={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function fu(e,n=""){return{type:0,source:n,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Tt}}function Mi(e,n,i,a,r,o,s,l=!1,c=!1,f=!1,v=Tt){return e&&(l?(e.helper(Gn),e.helper(pi(e.inSSR,f))):e.helper(hi(e.inSSR,f)),s&&e.helper(yr)),{type:13,tag:n,props:i,children:a,patchFlag:r,dynamicProps:o,directives:s,isBlock:l,disableTracking:c,isComponent:f,loc:v}}function Fn(e,n=Tt){return{type:17,loc:n,elements:e}}function Jt(e,n=Tt){return{type:15,loc:n,properties:e}}function _t(e,n){return{type:16,loc:Tt,key:It(e)?je(e,!0):e,value:n}}function je(e,n=!1,i=Tt,a=0){return{type:4,loc:i,content:e,isStatic:n,constType:n?3:a}}function gv(e,n){return{type:5,loc:n,content:It(e)?je(e,!1,n):e}}function en(e,n=Tt){return{type:8,loc:n,children:e}}function Ct(e,n=[],i=Tt){return{type:14,loc:i,callee:e,arguments:n}}function di(e,n=void 0,i=!1,a=!1,r=Tt){return{type:18,params:e,returns:n,newline:i,isSlot:a,loc:r}}function Ja(e,n,i,a=!0){return{type:19,test:e,consequent:n,alternate:i,newline:a,loc:Tt}}function gu(e,n,i=!1,a=!1){return{type:20,index:e,value:n,needPauseTracking:i,inVOnce:a,needArraySpread:!1,loc:Tt}}function vu(e){return{type:21,body:e,loc:Tt}}function vv(e){return{type:22,elements:e,loc:Tt}}function yv(e,n,i){return{type:23,test:e,consequent:n,alternate:i,loc:Tt}}function _v(e,n){return{type:24,left:e,right:n,loc:Tt}}function bv(e){return{type:25,expressions:e,loc:Tt}}function wv(e){return{type:26,returns:e,loc:Tt}}function hi(e,n){return e||n?dr:hr}function pi(e,n){return e||n?Ho:Fo}function kr(e,{helper:n,removeHelper:i,inSSR:a}){e.isBlock||(e.isBlock=!0,i(hi(a,e.isComponent)),n(Gn),n(pi(a,e.isComponent)))}const xl=new Uint8Array([123,123]),Il=new Uint8Array([125,125]);function Tl(e){return e>=97&&e<=122||e>=65&&e<=90}function Kt(e){return e===32||e===10||e===9||e===12||e===13}function jn(e){return e===47||e===62||Kt(e)}function Za(e){const n=new Uint8Array(e.length);for(let i=0;i=0;r--){const o=this.newlines[r];if(n>o){i=r+2,a=n-o;break}}return{column:a,line:i,offset:n}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(n){n===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&n===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(n))}stateInterpolationOpen(n){if(n===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const i=this.index+1-this.delimiterOpen.length;i>this.sectionStart&&this.cbs.ontext(this.sectionStart,i),this.state=3,this.sectionStart=i}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(n)):(this.state=1,this.stateText(n))}stateInterpolation(n){n===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(n))}stateInterpolationClose(n){n===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(n))}stateSpecialStartSequence(n){const i=this.sequenceIndex===this.currentSequence.length;if(!(i?jn(n):(n|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!i){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(n)}stateInRCDATA(n){if(this.sequenceIndex===this.currentSequence.length){if(n===62||Kt(n)){const i=this.index-this.currentSequence.length;if(this.sectionStart=n||(this.state===28?this.currentSequence===Pt.CdataEnd?this.cbs.oncdata(this.sectionStart,n):this.cbs.oncomment(this.sectionStart,n):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,n))}emitCodePoint(n,i){}}const Sv={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},Ev={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with