diff --git a/js/office-main.mjs b/js/office-main.mjs index 06ca387..4e60d38 100644 --- a/js/office-main.mjs +++ b/js/office-main.mjs @@ -1,12 +1,12 @@ -const p1="office",h1="1.1.0",Qn=globalThis||void 0||self;function gc(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Re={},ko=[],pn=()=>{},V0=()=>!1,Bi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),$i=e=>e.startsWith("onUpdate:"),ct=Object.assign,mc=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},f1=Object.prototype.hasOwnProperty,ze=(e,t)=>f1.call(e,t),be=Array.isArray,To=e=>aa(e)==="[object Map]",H0=e=>aa(e)==="[object Set]",Dd=e=>aa(e)==="[object Date]",Ce=e=>typeof e=="function",Ke=e=>typeof e=="string",on=e=>typeof e=="symbol",Me=e=>e!==null&&typeof e=="object",G0=e=>(Me(e)||Ce(e))&&Ce(e.then)&&Ce(e.catch),W0=Object.prototype.toString,aa=e=>W0.call(e),g1=e=>aa(e).slice(8,-1),q0=e=>aa(e)==="[object Object]",Ri=e=>Ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,As=gc(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Li=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},m1=/-\w/g,Rt=Li(e=>e.replace(m1,t=>t.slice(1).toUpperCase())),v1=/\B([A-Z])/g,cr=Li(e=>e.replace(v1,"-$1").toLowerCase()),Fi=Li(e=>e.charAt(0).toUpperCase()+e.slice(1)),ja=Li(e=>e?`on${Fi(e)}`:""),At=(e,t)=>!Object.is(e,t),za=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},vc=e=>{const t=parseFloat(e);return isNaN(t)?e:t},y1=e=>{const t=Ke(e)?Number(e):NaN;return isNaN(t)?e:t};let Nd;const Ja=()=>Nd||(Nd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof Qn<"u"?Qn:{});function hn(e){if(be(e)){const t={};for(let n=0;n{if(n){const r=n.split(E1);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Be(e){let t="";if(Ke(e))t=e;else if(be(e))for(let n=0;n!!(e&&e.__v_isRef===!0),xe=e=>Ke(e)?e:e==null?"":be(e)||Me(e)&&(e.toString===W0||!Ce(e.toString))?Z0(e)?xe(e.value):JSON.stringify(e,Y0,2):String(e),Y0=(e,t)=>Z0(t)?Y0(e,t.value):To(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[bu(r,s)+" =>"]=o,n),{})}:H0(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>bu(n))}:on(t)?bu(t):Me(t)&&!be(t)&&!q0(t)?String(t):t,bu=(e,t="")=>{var n;return on(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function S1(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}let pt;class k1{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&pt&&(pt.active?(this.parent=pt,this.index=(pt.scopes||(pt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const r=this.scopes.slice();for(t=0,n=r.length;t0&&--this._on===0){if(pt===this)pt=this.prevScope;else{let t=pt;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n0)return;if(Ss){let t=Ss;for(Ss=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;_s;){let t=_s;for(_s=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function nf(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function rf(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),wc(r),O1(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function wl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(of(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function of(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===js)||(e.globalVersion=js,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!wl(e))))return;e.flags|=2;const t=e.dep,n=qe,r=wn;qe=e,wn=!0;try{nf(e);const o=e.fn(e._value);(t.version===0||At(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{qe=n,wn=r,rf(e),e.flags&=-3}}function wc(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)wc(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function O1(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let wn=!0;const sf=[];function or(){sf.push(wn),wn=!1}function sr(){const e=sf.pop();wn=e===void 0?!0:e}function Pd(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=qe;qe=void 0;try{t()}finally{qe=n}}}let js=0;class D1{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ii{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!qe||!wn||qe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==qe)n=this.activeLink=new D1(qe,this),qe.deps?(n.prevDep=qe.depsTail,qe.depsTail.nextDep=n,qe.depsTail=n):qe.deps=qe.depsTail=n,af(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=qe.depsTail,n.nextDep=void 0,qe.depsTail.nextDep=n,qe.depsTail=n,qe.deps===n&&(qe.deps=r)}return n}trigger(t){this.version++,js++,this.notify(t)}notify(t){bc();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ec()}}}function af(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)af(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Qa=new WeakMap,Qr=Symbol(""),Cl=Symbol(""),zs=Symbol("");function Nt(e,t,n){if(wn&&qe){let r=Qa.get(e);r||Qa.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new Ii),o.map=r,o.key=n),o.track()}}function Zn(e,t,n,r,o,s){const a=Qa.get(e);if(!a){js++;return}const i=u=>{u&&u.trigger()};if(bc(),t==="clear")a.forEach(i);else{const u=be(e),c=u&&Ri(n);if(u&&n==="length"){const l=Number(r);a.forEach((d,p)=>{(p==="length"||p===zs||!on(p)&&p>=l)&&i(d)})}else switch((n!==void 0||a.has(void 0))&&i(a.get(n)),c&&i(a.get(zs)),t){case"add":u?c&&i(a.get("length")):(i(a.get(Qr)),To(e)&&i(a.get(Cl)));break;case"delete":u||(i(a.get(Qr)),To(e)&&i(a.get(Cl)));break;case"set":To(e)&&i(a.get(Qr));break}}Ec()}function N1(e,t){const n=Qa.get(e);return n&&n.get(t)}function vo(e){const t=Le(e);return t===e?t:(Nt(t,"iterate",zs),rn(e)?t:t.map(An))}function Mi(e){return Nt(e=Le(e),"iterate",zs),e}function Bn(e,t){return ar(e)?Vs(eo(e)?An(t):t):An(t)}const P1={__proto__:null,[Symbol.iterator](){return wu(this,Symbol.iterator,e=>Bn(this,e))},concat(...e){return vo(this).concat(...e.map(t=>be(t)?vo(t):t))},entries(){return wu(this,"entries",e=>(e[1]=Bn(this,e[1]),e))},every(e,t){return Vn(this,"every",e,t,void 0,arguments)},filter(e,t){return Vn(this,"filter",e,t,n=>n.map(r=>Bn(this,r)),arguments)},find(e,t){return Vn(this,"find",e,t,n=>Bn(this,n),arguments)},findIndex(e,t){return Vn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Vn(this,"findLast",e,t,n=>Bn(this,n),arguments)},findLastIndex(e,t){return Vn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Vn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Cu(this,"includes",e)},indexOf(...e){return Cu(this,"indexOf",e)},join(e){return vo(this).join(e)},lastIndexOf(...e){return Cu(this,"lastIndexOf",e)},map(e,t){return Vn(this,"map",e,t,void 0,arguments)},pop(){return Qo(this,"pop")},push(...e){return Qo(this,"push",e)},reduce(e,...t){return Bd(this,"reduce",e,t)},reduceRight(e,...t){return Bd(this,"reduceRight",e,t)},shift(){return Qo(this,"shift")},some(e,t){return Vn(this,"some",e,t,void 0,arguments)},splice(...e){return Qo(this,"splice",e)},toReversed(){return vo(this).toReversed()},toSorted(e){return vo(this).toSorted(e)},toSpliced(...e){return vo(this).toSpliced(...e)},unshift(...e){return Qo(this,"unshift",e)},values(){return wu(this,"values",e=>Bn(this,e))}};function wu(e,t,n){const r=Mi(e),o=r[t]();return r!==e&&!rn(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.done||(s.value=n(s.value)),s}),o}const B1=Array.prototype;function Vn(e,t,n,r,o,s){const a=Mi(e),i=a!==e&&!rn(e),u=a[t];if(u!==B1[t]){const d=u.apply(e,s);return i?An(d):d}let c=n;a!==e&&(i?c=function(d,p){return n.call(this,Bn(e,d),p,e)}:n.length>2&&(c=function(d,p){return n.call(this,d,p,e)}));const l=u.call(a,c,r);return i&&o?o(l):l}function Bd(e,t,n,r){const o=Mi(e),s=o!==e&&!rn(e);let a=n,i=!1;o!==e&&(s?(i=r.length===0,a=function(c,l,d){return i&&(i=!1,c=Bn(e,c)),n.call(this,c,Bn(e,l),d,e)}):n.length>3&&(a=function(c,l,d){return n.call(this,c,l,d,e)}));const u=o[t](a,...r);return i?Bn(e,u):u}function Cu(e,t,n){const r=Le(e);Nt(r,"iterate",zs);const o=r[t](...n);return(o===-1||o===!1)&&Ui(n[0])?(n[0]=Le(n[0]),r[t](...n)):o}function Qo(e,t,n=[]){or(),bc();const r=Le(e)[t].apply(e,n);return Ec(),sr(),r}const $1=gc("__proto__,__v_isRef,__isVue"),uf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(on));function R1(e){on(e)||(e=String(e));const t=Le(this);return Nt(t,"has",e),t.hasOwnProperty(e)}class lf{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(o?s?gf:ff:s?hf:pf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=be(t);if(!o){let u;if(a&&(u=P1[n]))return u;if(n==="hasOwnProperty")return R1}const i=Reflect.get(t,n,lt(t)?t:r);if((on(n)?uf.has(n):$1(n))||(o||Nt(t,"get",n),s))return i;if(lt(i)){const u=a&&Ri(n)?i:i.value;return o&&Me(u)?Us(u):u}return Me(i)?o?Us(i):Fo(i):i}}class cf extends lf{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];const a=be(t)&&Ri(n);if(!this._isShallow){const c=ar(s);if(!rn(r)&&!ar(r)&&(s=Le(s),r=Le(r)),!a&<(s)&&!lt(r))return c||(s.value=r),!0}const i=a?Number(n)e,ka=e=>Reflect.getPrototypeOf(e);function j1(e,t,n){return function(...r){const o=this.__v_raw,s=Le(o),a=To(s),i=e==="entries"||e===Symbol.iterator&&a,u=e==="keys"&&a,c=o[e](...r),l=n?xl:t?Vs:An;return!t&&Nt(s,"iterate",u?Cl:Qr),ct(Object.create(c),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:i?[l(d[0]),l(d[1])]:l(d),done:p}}})}}function Ta(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function z1(e,t){const n={get(r){const o=this.__v_raw,s=Le(o),a=Le(r);e||(At(r,a)&&Nt(s,"get",r),Nt(s,"get",a));const{has:i}=ka(s),u=t?xl:e?Vs:An;if(i.call(s,r))return u(o.get(r));if(i.call(s,a))return u(o.get(a));o!==s&&o.get(r)},get size(){const r=this.__v_raw;return!e&&Nt(Le(r),"iterate",Qr),r.size},has(r){const o=this.__v_raw,s=Le(o),a=Le(r);return e||(At(r,a)&&Nt(s,"has",r),Nt(s,"has",a)),r===a?o.has(r):o.has(r)||o.has(a)},forEach(r,o){const s=this,a=s.__v_raw,i=Le(a),u=t?xl:e?Vs:An;return!e&&Nt(i,"iterate",Qr),a.forEach((c,l)=>r.call(o,u(c),u(l),s))}};return ct(n,e?{add:Ta("add"),set:Ta("set"),delete:Ta("delete"),clear:Ta("clear")}:{add(r){const o=Le(this),s=ka(o),a=Le(r),i=!t&&!rn(r)&&!ar(r)?a:r;return s.has.call(o,i)||At(r,i)&&s.has.call(o,r)||At(a,i)&&s.has.call(o,a)||(o.add(i),Zn(o,"add",i,i)),this},set(r,o){!t&&!rn(o)&&!ar(o)&&(o=Le(o));const s=Le(this),{has:a,get:i}=ka(s);let u=a.call(s,r);u||(r=Le(r),u=a.call(s,r));const c=i.call(s,r);return s.set(r,o),u?At(o,c)&&Zn(s,"set",r,o):Zn(s,"add",r,o),this},delete(r){const o=Le(this),{has:s,get:a}=ka(o);let i=s.call(o,r);i||(r=Le(r),i=s.call(o,r)),a&&a.call(o,r);const u=o.delete(r);return i&&Zn(o,"delete",r,void 0),u},clear(){const r=Le(this),o=r.size!==0,s=r.clear();return o&&Zn(r,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=j1(r,e,t)}),n}function ji(e,t){const n=z1(e,t);return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(ze(n,o)&&o in r?n:r,o,s)}const U1={get:ji(!1,!1)},V1={get:ji(!1,!0)},H1={get:ji(!0,!1)},G1={get:ji(!0,!0)},pf=new WeakMap,hf=new WeakMap,ff=new WeakMap,gf=new WeakMap;function W1(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Fo(e){return ar(e)?e:zi(e,!1,L1,U1,pf)}function mf(e){return zi(e,!1,I1,V1,hf)}function Us(e){return zi(e,!0,F1,H1,ff)}function q1(e){return zi(e,!0,M1,G1,gf)}function zi(e,t,n,r,o){if(!Me(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const s=o.get(e);if(s)return s;const a=W1(g1(e));if(a===0)return e;const i=new Proxy(e,a===2?r:n);return o.set(e,i),i}function eo(e){return ar(e)?eo(e.__v_raw):!!(e&&e.__v_isReactive)}function ar(e){return!!(e&&e.__v_isReadonly)}function rn(e){return!!(e&&e.__v_isShallow)}function Ui(e){return e?!!e.__v_raw:!1}function Le(e){const t=e&&e.__v_raw;return t?Le(t):e}function K1(e){return!ze(e,"__v_skip")&&Object.isExtensible(e)&&K0(e,"__v_skip",!0),e}const An=e=>Me(e)?Fo(e):e,Vs=e=>Me(e)?Us(e):e;function lt(e){return e?e.__v_isRef===!0:!1}function Ae(e){return vf(e,!1)}function ir(e){return vf(e,!0)}function vf(e,t){return lt(e)?e:new X1(e,t)}class X1{constructor(t,n){this.dep=new Ii,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Le(t),this._value=n?t:An(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||rn(t)||ar(t);t=r?t:Le(t),At(t,n)&&(this._rawValue=t,this._value=r?t:An(t),this.dep.trigger())}}function j(e){return lt(e)?e.value:e}function Bt(e){return Ce(e)?e():j(e)}const Z1={get:(e,t,n)=>t==="__v_raw"?e:j(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return lt(o)&&!lt(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function yf(e){return eo(e)?e:new Proxy(e,Z1)}class Y1{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Ii,{get:r,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function J1(e){return new Y1(e)}class Q1{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=on(n)?n:String(n),this._raw=Le(t);let o=!0,s=t;if(!be(t)||on(this._key)||!Ri(this._key))do o=!Ui(s)||rn(s);while(o&&(s=s.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=j(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&<(this._raw[this._key])){const n=this._object[this._key];if(lt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return N1(this._raw,this._key)}}class ey{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Al(e,t,n){return lt(e)?e:Ce(e)?new ey(e):Me(e)&&arguments.length>1?ty(e,t,n):Ae(e)}function ty(e,t,n){return new Q1(e,t,n)}class ny{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ii(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=js-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&qe!==this)return tf(this,!0),!0}get value(){const t=this.dep.track();return of(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ry(e,t,n=!1){let r,o;return Ce(e)?r=e:(r=e.get,o=e.set),new ny(r,o,n)}const Oa={},ei=new WeakMap;let Gr;function oy(e,t=!1,n=Gr){if(n){let r=ei.get(n);r||ei.set(n,r=[]),r.push(e)}}function sy(e,t,n=Re){const{immediate:r,deep:o,once:s,scheduler:a,augmentJob:i,call:u}=n,c=C=>o?C:rn(C)||o===!1||o===0?Yn(C,1):Yn(C);let l,d,p,h,g=!1,f=!1;if(lt(e)?(d=()=>e.value,g=rn(e)):eo(e)?(d=()=>c(e),g=!0):be(e)?(f=!0,g=e.some(C=>eo(C)||rn(C)),d=()=>e.map(C=>{if(lt(C))return C.value;if(eo(C))return c(C);if(Ce(C))return u?u(C,2):C()})):Ce(e)?t?d=u?()=>u(e,2):e:d=()=>{if(p){or();try{p()}finally{sr()}}const C=Gr;Gr=l;try{return u?u(e,3,[h]):e(h)}finally{Gr=C}}:d=pn,t&&o){const C=d,_=o===!0?1/0:o;d=()=>Yn(C(),_)}const m=J0(),y=()=>{l.stop(),m&&m.active&&mc(m.effects,l)};if(s&&t){const C=t;t=(..._)=>{const D=C(..._);return y(),D}}let v=f?new Array(e.length).fill(Oa):Oa;const E=C=>{if(!(!(l.flags&1)||!l.dirty&&!C))if(t){const _=l.run();if(C||o||g||(f?_.some((D,R)=>At(D,v[R])):At(_,v))){p&&p();const D=Gr;Gr=l;try{const R=[_,v===Oa?void 0:f&&v[0]===Oa?[]:v,h];v=_,u?u(t,3,R):t(...R)}finally{Gr=D}}}else l.run()};return i&&i(E),l=new Q0(d),l.scheduler=a?()=>a(E,!1):E,h=C=>oy(C,!1,l),p=l.onStop=()=>{const C=ei.get(l);if(C){if(u)u(C,4);else for(const _ of C)_();ei.delete(l)}},t?r?E(!0):v=l.run():a?a(E.bind(null,!0),!0):l.run(),y.pause=l.pause.bind(l),y.resume=l.resume.bind(l),y.stop=y,y}function Yn(e,t=1/0,n){if(t<=0||!Me(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,lt(e))Yn(e.value,t,n);else if(be(e))for(let r=0;r{Yn(r,t,n)});else if(q0(e)){for(const r in e)Yn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Yn(e[r],t,n)}return e}function ia(e,t,n,r){try{return r?e(...r):e()}catch(o){Vi(o,t,n)}}function fn(e,t,n,r){if(Ce(e)){const o=ia(e,t,n,r);return o&&G0(o)&&o.catch(s=>{Vi(s,t,n)}),o}if(be(e)){const o=[];for(let s=0;s>>1,o=Ht[r],s=Hs(o);s=Hs(n)?Ht.push(e):Ht.splice(iy(t),0,e),e.flags|=1,Ef()}}function Ef(){ti||(ti=bf.then(xf))}function wf(e){if(!be(e))Er&&e.id===-1?Er.splice(wo+1,0,e):e.flags&1||(Oo.push(e),e.flags|=1);else for(let t=0;tHs(n)-Hs(r));if(Oo.length=0,Er){for(let n=0;ne.id==null?e.flags&2?-1:1/0:e.id;function xf(e){try{for(Dn=0;Dnpe;function pe(e,t=St,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&ii(-1);const s=ni(t),a=rr.length;let i;try{i=e(...o)}finally{for(let u=rr.length;u>a;u--)kc();ni(s),r._d&&ii(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Rn(e,t){if(St===null)return e;const n=Ji(St),r=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&Ce(t)?t.call(r&&r.proxy):t}}const dy=Symbol.for("v-scx"),py=()=>rt(dy);function Gi(e,t){return Wi(e,null,t)}function hy(e,t){return Wi(e,null,{flush:"sync"})}function et(e,t,n){return Wi(e,t,n)}function Wi(e,t,n=Re){const{immediate:r,deep:o,flush:s,once:a}=n,i=ct({},n),u=t&&r||!t&&s!=="post";let c;if(Xs){if(s==="sync"){const h=py();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!u){const h=()=>{};return h.stop=pn,h.resume=pn,h.pause=pn,h}}const l=Pt;i.call=(h,g,f)=>fn(h,l,g,f);let d=!1;s==="post"?i.scheduler=h=>{Vt(h,l&&l.suspense)}:s!=="sync"&&(d=!0,i.scheduler=(h,g)=>{g?h():Cc(h)}),i.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,l&&(h.id=l.uid,h.i=l))};const p=sy(e,t,i);return Xs&&(c?c.push(p):u&&p()),p}function fy(e,t,n){const r=this.proxy,o=Ke(e)?e.includes(".")?Af(r,e):()=>r[e]:e.bind(r,r);let s;Ce(t)?s=t:(s=t.handler,n=t);const a=da(this),i=Wi(o,s.bind(r),n);return a(),i}function Af(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;oe.__isTeleport,qr=e=>e&&(e.disabled||e.disabled===""),gy=e=>e&&(e.defer||e.defer===""),Rd=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ld=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,_l=(e,t)=>{const n=e&&e.to;return Ke(n)?t?t(n):null:n},my={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,s,a,i,u,c){const{mc:l,pc:d,pbc:p,o:{insert:h,querySelector:g,createText:f,createComment:m,parentNode:y}}=c,v=qr(t.props);let{dynamicChildren:E}=t;const C=(R,Z,I)=>{R.shapeFlag&16&&l(R.children,Z,I,o,s,a,i,u)},_=(R=t)=>{const Z=qr(R.props),I=R.target=_l(R.props,g),P=Sl(I,R,f,h);I&&(a!=="svg"&&Rd(I)?a="svg":a!=="mathml"&&Ld(I)&&(a="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(I),Z||(C(R,I,P),ys(R,!1)))},D=R=>{const Z=()=>{if(vr.get(R)===Z){if(vr.delete(R),qr(R.props)){const I=y(R.el)||n;C(R,I,R.anchor),ys(R,!0)}_(R)}};vr.set(R,Z),Vt(Z,s)};if(e==null){const R=t.el=f(""),Z=t.anchor=f("");if(h(R,n,r),h(Z,n,r),gy(t.props)||s&&s.pendingBranch){D(t);return}v&&(C(t,n,Z),ys(t,!0)),_()}else{t.el=e.el;const R=t.anchor=e.anchor,Z=vr.get(e);if(Z){Z.flags|=8,vr.delete(e),D(t);return}t.targetStart=e.targetStart;const I=t.target=e.target,P=t.targetAnchor=e.targetAnchor,oe=qr(e.props),O=oe?n:I,S=oe?R:P;if(a==="svg"||Rd(I)?a="svg":(a==="mathml"||Ld(I))&&(a="mathml"),E?(p(e.dynamicChildren,E,O,o,s,a,i),Sc(e,t,!0)):u||d(e,t,O,S,o,s,a,i,!1),v)oe?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Da(t,n,R,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const G=_l(t.props,g);G&&(t.target=G,Da(t,G,null,c,0))}else oe&&Da(t,I,P,c,1);ys(t,v)}},remove(e,t,n,{um:r,o:{remove:o}},s){const{shapeFlag:a,children:i,anchor:u,targetStart:c,targetAnchor:l,target:d,props:p}=e,h=qr(p),g=s||!h,f=vr.get(e);if(f&&(f.flags|=8,vr.delete(e)),d&&(o(c),o(l)),s&&o(u),!f&&(h||d)&&a&16)for(let m=0;m{e.isMounted=!0}),ua(()=>{e.isUnmounting=!0}),e}const sn=[Function,Array],kf={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:sn,onEnter:sn,onAfterEnter:sn,onEnterCancelled:sn,onBeforeLeave:sn,onLeave:sn,onAfterLeave:sn,onLeaveCancelled:sn,onBeforeAppear:sn,onAppear:sn,onAfterAppear:sn,onAppearCancelled:sn},Tf=e=>{const t=e.subTree;return t.component?Tf(t.component):t},by={name:"BaseTransition",props:kf,setup(e,{slots:t}){const n=Mn(),r=yy();return()=>{const o=t.default&&Nf(t.default(),!0),s=o&&o.length?Of(o):n.subTree?he():void 0;if(!s)return;const a=Le(e),{mode:i}=a;if(r.isLeaving)return xu(s);const u=ri(s);if(!u)return xu(s);let c=kl(u,a,r,n,d=>c=d);u.type!==_t&&Gs(u,c);let l=n.subTree&&ri(n.subTree);if(l&&l.type!==_t&&!Kr(l,u)&&Tf(n).type!==_t){let d=kl(l,a,r,n);if(Gs(l,d),i==="out-in"&&u.type!==_t)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,l=void 0},xu(s);i==="in-out"&&u.type!==_t?d.delayLeave=(p,h,g)=>{const f=Df(r,l);f[String(l.key)]=l,p[cn]=()=>{h(),p[cn]=void 0,delete c.delayedLeave,l=void 0},c.delayedLeave=()=>{g(),delete c.delayedLeave,l=void 0}}:l=void 0}else l&&(l=void 0);return s}}};function Of(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==_t){t=n;break}}return t}const Ey=by;function Df(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function kl(e,t,n,r,o){const{appear:s,mode:a,persisted:i=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:l,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:g,onLeaveCancelled:f,onBeforeAppear:m,onAppear:y,onAfterAppear:v,onAppearCancelled:E}=t,C=String(e.key),_=Df(n,e),D=(I,P)=>{I&&fn(I,r,9,P)},R=(I,P)=>{const oe=P[1];D(I,P),be(I)?I.every(O=>O.length<=1)&&oe():I.length<=1&&oe()},Z={mode:a,persisted:i,beforeEnter(I){let P=u;if(!n.isMounted)if(s)P=m||u;else return;I[cn]&&I[cn](!0);const oe=_[C];oe&&Kr(e,oe)&&oe.el[cn]&&oe.el[cn](),D(P,[I])},enter(I){if(_[C]===e)return;let P=c,oe=l,O=d;if(!n.isMounted)if(s)P=y||c,oe=v||l,O=E||d;else return;let S=!1;I[es]=ne=>{S||(S=!0,ne?D(O,[I]):D(oe,[I]),Z.delayedLeave&&Z.delayedLeave(),I[es]=void 0)};const G=I[es].bind(null,!1);P?R(P,[I,G]):G()},leave(I,P){const oe=String(e.key);if(I[es]&&I[es](!0),n.isUnmounting)return P();D(p,[I]);let O=!1;I[cn]=G=>{O||(O=!0,P(),G?D(f,[I]):D(g,[I]),I[cn]=void 0,_[oe]===e&&delete _[oe])};const S=I[cn].bind(null,!1);_[oe]=e,h?R(h,[I,S]):S()},clone(I){const P=kl(I,t,n,r,o);return o&&o(P),P}};return Z}function xu(e){if(Ki(e))return e=Nr(e),e.children=null,e}function ri(e){if(!Ki(e))return qi(e.type)&&e.children?Of(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ce(n.default))return n.default()}}function Gs(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;Gs(qi(n.type)&&ri(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Nf(e,t=!1,n){let r=[],o=0;for(let s=0;s1)for(let s=0;sn.value,set:o=>n.value=o})}return n}function Fd(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const oi=new WeakMap;function ks(e,t,n,r,o=!1){if(be(e)){e.forEach((f,m)=>ks(f,t&&(be(t)?t[m]:t),n,r,o));return}if(Do(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&ks(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?Ji(r.component):r.el,a=o?null:s,{i,r:u}=e,c=t&&t.r,l=i.refs===Re?i.refs={}:i.refs,d=i.setupState,p=Le(d),h=d===Re?V0:f=>Fd(l,f)?!1:ze(p,f),g=(f,m)=>!(m&&Fd(l,m));if(c!=null&&c!==u){if(Id(t),Ke(c))l[c]=null,h(c)&&(d[c]=null);else if(lt(c)){const f=t;g(c,f.k)&&(c.value=null),f.k&&(l[f.k]=null)}}if(Ce(u))ia(u,i,12,[a,l]);else{const f=Ke(u),m=lt(u);if(f||m){const y=()=>{if(e.f){const v=f?h(u)?d[u]:l[u]:g()||!e.k?u.value:l[e.k];if(o)be(v)&&mc(v,s);else if(be(v))v.includes(s)||v.push(s);else if(f)l[u]=[s],h(u)&&(d[u]=l[u]);else{const E=[s];g(u,e.k)&&(u.value=E),e.k&&(l[e.k]=E)}}else f?(l[u]=a,h(u)&&(d[u]=a)):m&&(g(u,e.k)&&(u.value=a),e.k&&(l[e.k]=a))};if(a){const v=()=>{y(),oi.delete(e)};v.id=-1,oi.set(e,v),Vt(v,n)}else Id(e),y()}}}function Id(e){const t=oi.get(e);t&&(t.flags|=8,oi.delete(e))}Ja().requestIdleCallback,Ja().cancelIdleCallback;const Do=e=>!!e.type.__asyncLoader,Ki=e=>e.type.__isKeepAlive;function wy(e,t){Bf(e,"a",t)}function Cy(e,t){Bf(e,"da",t)}function Bf(e,t,n=Pt){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Xi(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Ki(o.parent.vnode)&&xy(r,t,n,o),o=o.parent}}function xy(e,t,n,r){const o=Xi(t,e,r,!0);ur(()=>{mc(r[t],o)},n)}function Xi(e,t,n=Pt,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...a)=>{or();const i=da(n),u=fn(t,n,e,a);return i(),sr(),u});return r?o.unshift(s):o.push(s),s}}const dr=e=>(t,n=Pt)=>{(!Xs||e==="sp")&&Xi(e,(...r)=>t(...r),n)},$f=dr("bm"),Sn=dr("m"),Rf=dr("bu"),Ay=dr("u"),ua=dr("bum"),ur=dr("um"),_y=dr("sp"),Sy=dr("rtg"),ky=dr("rtc");function Ty(e,t=Pt){Xi("ec",e,t)}const Lf="components";function Ye(e,t){return If(Lf,e,!0,t)||e}const Ff=Symbol.for("v-ndc");function la(e){return Ke(e)?If(Lf,e,!1)||e:e||Ff}function If(e,t,n=!0,r=!1){const o=St||Pt;if(o){const s=o.type;{const i=l4(s,!1);if(i&&(i===t||i===Rt(t)||i===Fi(Rt(t))))return s}const a=Md(o[e]||s[e],t)||Md(o.appContext[e],t);return!a&&r?s:a}}function Md(e,t){return e&&(e[t]||e[Rt(t)]||e[Fi(Rt(t))])}function Ts(e,t,n,r){let o;const s=n,a=be(e);if(a||Ke(e)){const i=a&&eo(e);let u=!1,c=!1;i&&(u=!rn(e),c=ar(e),e=Mi(e)),o=new Array(e.length);for(let l=0,d=e.length;lt(i,u,void 0,s));else{const i=Object.keys(e);o=new Array(i.length);for(let u=0,c=i.length;u{const s=r.fn(...o);return s&&(s.key=r.key),s}:r.fn)}return e}function ye(e,t,n,r,o,s){if(n==null&&(n={}),St.ce||St.parent&&Do(St.parent)&&St.parent.ce){const c=n,l=Object.keys(c).length>0;return t!=="default"&&(c.name=t),$(),ge(Ze,null,[le("slot",c,r&&r())],l?-2:64)}let a=e[t];a&&a._c&&(a._d=!1);const i=rr.length;$();let u;try{const c=a&&Mf(a(n)),l=n.key||s||c&&c.key;u=ge(Ze,{key:(l&&!on(l)?l:`_${t}`)+(!c&&r?"_fb":"")},c||(r?r():[]),c&&e._===1?64:-2)}catch(c){for(let l=rr.length;l>i;l--)kc();throw c}finally{a&&a._c&&(a._d=!0)}return!o&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),u}function Mf(e){return e.some(t=>qs(t)?!(t.type===_t||t.type===Ze&&!Mf(t.children)):!0)?e:null}function Oy(e,t){const n={};for(const r in e)n[ja(r)]=e[r];return n}const Tl=e=>e?ag(e)?Ji(e):Tl(e.parent):null,Os=ct(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Tl(e.parent),$root:e=>Tl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Uf(e),$forceUpdate:e=>e.f||(e.f=()=>{Cc(e.update)}),$nextTick:e=>e.n||(e.n=Cn.bind(e.proxy)),$watch:e=>fy.bind(e)}),Au=(e,t)=>e!==Re&&!e.__isScriptSetup&&ze(e,t),Dy={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:s,accessCache:a,type:i,appContext:u}=e;if(t[0]!=="$"){const p=a[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(Au(r,t))return a[t]=1,r[t];if(o!==Re&&ze(o,t))return a[t]=2,o[t];if(ze(s,t))return a[t]=3,s[t];if(n!==Re&&ze(n,t))return a[t]=4,n[t];Ol&&(a[t]=0)}}const c=Os[t];let l,d;if(c)return t==="$attrs"&&Nt(e.attrs,"get",""),c(e);if((l=i.__cssModules)&&(l=l[t]))return l;if(n!==Re&&ze(n,t))return a[t]=4,n[t];if(d=u.config.globalProperties,ze(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return Au(o,t)?(o[t]=n,!0):r!==Re&&ze(r,t)?(r[t]=n,!0):ze(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,props:s,type:a}},i){let u;return!!(n[i]||e!==Re&&i[0]!=="$"&&ze(e,i)||Au(t,i)||ze(s,i)||ze(r,i)||ze(Os,i)||ze(o.config.globalProperties,i)||(u=a.__cssModules)&&u[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ze(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Zi(){return jf().slots}function Ny(){return jf().attrs}function jf(e){const t=Mn();return t.setupContext||(t.setupContext=ug(t))}function si(e){return be(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Dr(e,t){return!e||!t?e||t:be(e)&&be(t)?e.concat(t):ct({},si(e),si(t))}let Ol=!0;function Py(e){const t=Uf(e),n=e.proxy,r=e.ctx;Ol=!1,t.beforeCreate&&jd(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:a,watch:i,provide:u,inject:c,created:l,beforeMount:d,mounted:p,beforeUpdate:h,updated:g,activated:f,deactivated:m,beforeDestroy:y,beforeUnmount:v,destroyed:E,unmounted:C,render:_,renderTracked:D,renderTriggered:R,errorCaptured:Z,serverPrefetch:I,expose:P,inheritAttrs:oe,components:O,directives:S,filters:G}=t;if(c&&By(c,r,null),a)for(const Q in a){const Y=a[Q];Ce(Y)&&(r[Q]=Y.bind(n))}if(o){const Q=o.call(n,n);Me(Q)&&(e.data=Fo(Q))}if(Ol=!0,s)for(const Q in s){const Y=s[Q],ee=Ce(Y)?Y.bind(n,n):Ce(Y.get)?Y.get.bind(n,n):pn,J=!Ce(Y)&&Ce(Y.set)?Y.set.bind(n):pn,te=se({get:ee,set:J});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>te.value,set:re=>te.value=re})}if(i)for(const Q in i)zf(i[Q],r,n,Q);if(u){const Q=Ce(u)?u.call(n):u;Reflect.ownKeys(Q).forEach(Y=>{Zt(Y,Q[Y])})}l&&jd(l,e,"c");function ne(Q,Y){be(Y)?Y.forEach(ee=>Q(ee.bind(n))):Y&&Q(Y.bind(n))}if(ne($f,d),ne(Sn,p),ne(Rf,h),ne(Ay,g),ne(wy,f),ne(Cy,m),ne(Ty,Z),ne(ky,D),ne(Sy,R),ne(ua,v),ne(ur,C),ne(_y,I),be(P))if(P.length){const Q=e.exposed||(e.exposed={});P.forEach(Y=>{Object.defineProperty(Q,Y,{get:()=>n[Y],set:ee=>n[Y]=ee,enumerable:!0})})}else e.exposed||(e.exposed={});_&&e.render===pn&&(e.render=_),oe!=null&&(e.inheritAttrs=oe),O&&(e.components=O),S&&(e.directives=S),I&&Pf(e)}function By(e,t,n=pn){be(e)&&(e=Dl(e));for(const r in e){const o=e[r];let s;Me(o)?"default"in o?s=rt(o.from||r,o.default,!0):s=rt(o.from||r):s=rt(o),lt(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):t[r]=s}}function jd(e,t,n){fn(be(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function zf(e,t,n,r){let o=r.includes(".")?Af(n,r):()=>n[r];if(Ke(e)){const s=t[e];Ce(s)&&et(o,s)}else if(Ce(e))et(o,e.bind(n));else if(Me(e))if(be(e))e.forEach(s=>zf(s,t,n,r));else{const s=Ce(e.handler)?e.handler.bind(n):t[e.handler];Ce(s)&&et(o,s,e)}}function Uf(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,i=s.get(t);let u;return i?u=i:!o.length&&!n&&!r?u=t:(u={},o.length&&o.forEach(c=>ai(u,c,a,!0)),ai(u,t,a)),Me(t)&&s.set(t,u),u}function ai(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&ai(e,s,n,!0),o&&o.forEach(a=>ai(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const i=$y[a]||n&&n[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const $y={data:zd,props:Ud,emits:Ud,methods:bs,computed:bs,beforeCreate:zt,created:zt,beforeMount:zt,mounted:zt,beforeUpdate:zt,updated:zt,beforeDestroy:zt,beforeUnmount:zt,destroyed:zt,unmounted:zt,activated:zt,deactivated:zt,errorCaptured:zt,serverPrefetch:zt,components:bs,directives:bs,watch:Ly,provide:zd,inject:Ry};function zd(e,t){return t?e?function(){return ct(Ce(e)?e.call(this,this):e,Ce(t)?t.call(this,this):t)}:t:e}function Ry(e,t){return bs(Dl(e),Dl(t))}function Dl(e){if(be(e)){const t={};for(let n=0;n{let l,d=Re,p;return hy(()=>{const h=e[o];At(l,h)&&(l=h,c())}),{get(){return u(),n.get?n.get(l):l},set(h){const g=n.set?n.set(h):h;if(!At(g,l)&&!(d!==Re&&At(h,d)))return;const f=r.vnode.props,m=!!(f&&(t in f||o in f||s in f)&&(`onUpdate:${t}`in f||`onUpdate:${o}`in f||`onUpdate:${s}`in f));m||(l=h,c()),r.emit(`update:${t}`,g),At(h,d)&&(At(h,g)&&!At(g,p)||m&&d!==Re&&!At(g,l))&&c(),d=h,p=g}}});return i[Symbol.iterator]=()=>{let u=0;return{next(){return u<2?{value:u++?a||Re:i,done:!1}:{done:!0}}}},i}const Hf=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Rt(t)}Modifiers`]||e[`${cr(t)}Modifiers`];function My(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Re;let o=n;const s=t.startsWith("update:"),a=s&&Hf(r,t.slice(7));a&&(a.trim&&(o=n.map(l=>Ke(l)?l.trim():l)),a.number&&(o=n.map(vc)));let i,u=r[i=ja(t)]||r[i=ja(Rt(t))];!u&&s&&(u=r[i=ja(cr(t))]),u&&fn(u,e,6,o);const c=r[i+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,fn(c,e,6,o)}}const jy=new WeakMap;function Gf(e,t,n=!1){const r=n?jy:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let a={},i=!1;if(!Ce(e)){const u=c=>{const l=Gf(c,t,!0);l&&(i=!0,ct(a,l))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!s&&!i?(Me(e)&&r.set(e,null),null):(be(s)?s.forEach(u=>a[u]=null):ct(a,s),Me(e)&&r.set(e,a),a)}function Yi(e,t){return!e||!Bi(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),ze(e,t[0].toLowerCase()+t.slice(1))||ze(e,cr(t))||ze(e,t))}function Vd(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[s],slots:a,attrs:i,emit:u,render:c,renderCache:l,props:d,data:p,setupState:h,ctx:g,inheritAttrs:f}=e,m=ni(e);let y,v;try{if(n.shapeFlag&4){const C=o||r,_=C;y=$n(c.call(_,C,l,d,h,p,g)),v=i}else{const C=t;y=$n(C.length>1?C(d,{attrs:i,slots:a,emit:u}):C(d,null)),v=t.props?i:zy(i)}}catch(C){rr.length=0,Vi(C,e,1),y=le(_t)}let E=y;if(v&&f!==!1){const C=Object.keys(v),{shapeFlag:_}=E;C.length&&_&7&&(s&&C.some($i)&&(v=Uy(v,s)),E=Nr(E,v,!1,!0))}if(n.dirs&&(E=Nr(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition){const C=qi(E.type)&&ri(E)||E;Gs(C,n.transition)}return y=E,ni(m),y}const zy=e=>{let t;for(const n in e)(n==="class"||n==="style"||Bi(n))&&((t||(t={}))[n]=e[n]);return t},Uy=(e,t)=>{const n={};for(const r in e)(!$i(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Vy(e,t,n){const{props:r,children:o,component:s}=e,{props:a,children:i,patchFlag:u}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return r?Hd(r,a,c):!!a;if(u&8){const l=t.dynamicProps;for(let d=0;dObject.create(qf),Xf=e=>Object.getPrototypeOf(e)===qf;function Gy(e,t,n,r=!1){const o={},s=Kf();e.propsDefaults=Object.create(null),Zf(e,t,o,s);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:mf(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function Wy(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:a}}=e,i=Le(o),[u]=e.propsOptions;let c=!1;if((r||a>0)&&!(a&16)){if(a&8){const l=e.vnode.dynamicProps;for(let d=0;d{u=!0;const[p,h]=Yf(d,t,!0);ct(a,p),h&&i.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!s&&!u)return Me(e)&&r.set(e,ko),ko;if(be(s))for(let l=0;le==="_"||e==="_ctx"||e==="$stable",_c=e=>be(e)?e.map($n):[$n(e)],Ky=(e,t,n)=>{if(t._n)return t;const r=pe((...o)=>_c(t(...o)),n);return r._c=!1,r},Jf=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Ac(o))continue;const s=e[o];if(Ce(s))t[o]=Ky(o,s,r);else if(s!=null){const a=_c(s);t[o]=()=>a}}},Qf=(e,t)=>{const n=_c(t);e.slots.default=()=>n},eg=(e,t,n)=>{for(const r in t)(n||!Ac(r))&&(e[r]=t[r])},Xy=(e,t,n)=>{const r=e.slots=Kf();if(e.vnode.shapeFlag&32){const o=t._;o?(eg(r,t,n),n&&K0(r,"_",o,!0)):Jf(t,r)}else t&&Qf(e,t)},Zy=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,a=Re;if(r.shapeFlag&32){const i=t._;i?n&&i===1?s=!1:eg(o,t,n):(s=!t.$stable,Jf(t,o)),a=t}else t&&(Qf(e,t),a={default:1});if(s)for(const i in o)!Ac(i)&&a[i]==null&&delete o[i]},Vt=t4;function Yy(e){return Jy(e)}function Jy(e,t){const n=Ja();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:a,createText:i,createComment:u,setText:c,setElementText:l,parentNode:d,nextSibling:p,setScopeId:h=pn,insertStaticContent:g}=e,f=(b,x,k,N=null,U=null,M=null,q=void 0,V=null,K=!!x.dynamicChildren)=>{if(b===x)return;b&&!Kr(b,x)&&(N=A(b),me(b,U,M,!0),b=null),x.patchFlag===-2&&(K=!1,x.dynamicChildren=null);const{type:W,ref:ce,shapeFlag:de}=x;switch(W){case ca:m(b,x,k,N);break;case _t:y(b,x,k,N);break;case Ua:b==null&&v(x,k,N,q);break;case Ze:O(b,x,k,N,U,M,q,V,K);break;default:de&1?_(b,x,k,N,U,M,q,V,K):de&6?S(b,x,k,N,U,M,q,V,K):(de&64||de&128)&&W.process(b,x,k,N,U,M,q,V,K,z)}ce!=null&&U?ks(ce,b&&b.ref,M,x||b,!x):ce==null&&b&&b.ref!=null&&ks(b.ref,null,M,b,!0)},m=(b,x,k,N)=>{if(b==null)r(x.el=i(x.children),k,N);else{const U=x.el=b.el;x.children!==b.children&&c(U,x.children)}},y=(b,x,k,N)=>{b==null?r(x.el=u(x.children||""),k,N):x.el=b.el},v=(b,x,k,N)=>{[b.el,b.anchor]=g(b.children,x,k,N,b.el,b.anchor)},E=({el:b,anchor:x},k,N)=>{let U;for(;b&&b!==x;)U=p(b),r(b,k,N),b=U;r(x,k,N)},C=({el:b,anchor:x})=>{let k;for(;b&&b!==x;)k=p(b),o(b),b=k;o(x)},_=(b,x,k,N,U,M,q,V,K)=>{if(x.type==="svg"?q="svg":x.type==="math"&&(q="mathml"),b==null)D(x,k,N,U,M,q,V,K);else{const W=b.el&&b.el._isVueCE?b.el:null;try{W&&W._beginPatch(),I(b,x,U,M,q,V,K)}finally{W&&W._endPatch()}}},D=(b,x,k,N,U,M,q,V)=>{let K,W;const{props:ce,shapeFlag:de,transition:fe,dirs:ve}=b;if(K=b.el=a(b.type,M,ce&&ce.is,ce),de&8?l(K,b.children):de&16&&Z(b.children,K,null,N,U,_u(b,M),q,V),ve&&Ir(b,null,N,"created"),R(K,b,b.scopeId,q,N),ce){for(const Te in ce)Te!=="value"&&!As(Te)&&s(K,Te,null,ce[Te],M,N);"value"in ce&&s(K,"value",null,ce.value,M),(W=ce.onVnodeBeforeMount)&&On(W,N,b)}ve&&Ir(b,null,N,"beforeMount");const ke=Qy(U,fe);ke&&fe.beforeEnter(K),r(K,x,k),((W=ce&&ce.onVnodeMounted)||ke||ve)&&Vt(()=>{W&&On(W,N,b),ke&&fe.enter(K),ve&&Ir(b,null,N,"mounted")},U)},R=(b,x,k,N,U)=>{if(k&&h(b,k),N)for(let M=0;M{for(let W=K;W{const V=x.el=b.el;let{patchFlag:K,dynamicChildren:W,dirs:ce}=x;K|=b.patchFlag&16;const de=b.props||Re,fe=x.props||Re;let ve;if(k&&Mr(k,!1),(ve=fe.onVnodeBeforeUpdate)&&On(ve,k,x,b),ce&&Ir(x,b,k,"beforeUpdate"),k&&Mr(k,!0),W&&(!b.dynamicChildren||b.dynamicChildren.length!==W.length)&&(K=0,q=!1,W=null),(de.innerHTML&&fe.innerHTML==null||de.textContent&&fe.textContent==null)&&l(V,""),W?P(b.dynamicChildren,W,V,k,N,_u(x,U),M):q||ee(b,x,V,null,k,N,_u(x,U),M,!1),K>0){if(K&16)oe(V,de,fe,k,U);else if(K&2&&de.class!==fe.class&&s(V,"class",null,fe.class,U),K&4&&s(V,"style",de.style,fe.style,U),K&8){const ke=x.dynamicProps;for(let Te=0;Te{ve&&On(ve,k,x,b),ce&&Ir(x,b,k,"updated")},N)},P=(b,x,k,N,U,M,q)=>{for(let V=0;V{if(x!==k){if(x!==Re)for(const M in x)!As(M)&&!(M in k)&&s(b,M,x[M],null,U,N);for(const M in k){if(As(M))continue;const q=k[M],V=x[M];q!==V&&M!=="value"&&s(b,M,V,q,U,N)}"value"in k&&s(b,"value",x.value,k.value,U)}},O=(b,x,k,N,U,M,q,V,K)=>{const W=x.el=b?b.el:i(""),ce=x.anchor=b?b.anchor:i("");let{patchFlag:de,dynamicChildren:fe,slotScopeIds:ve}=x;ve&&(V=V?V.concat(ve):ve),b==null?(r(W,k,N),r(ce,k,N),Z(x.children||[],k,ce,U,M,q,V,K)):de>0&&de&64&&fe&&b.dynamicChildren&&b.dynamicChildren.length===fe.length?(P(b.dynamicChildren,fe,k,U,M,q,V),(x.key!=null||U&&x===U.subTree)&&Sc(b,x,!0)):ee(b,x,k,ce,U,M,q,V,K)},S=(b,x,k,N,U,M,q,V,K)=>{x.slotScopeIds=V,b==null?x.shapeFlag&512?U.ctx.activate(x,k,N,q,K):G(x,k,N,U,M,q,K):ne(b,x,K)},G=(b,x,k,N,U,M,q)=>{const V=b.component=s4(b,N,U);if(Ki(b)&&(V.ctx.renderer=z),a4(V,!1,q),V.asyncDep){if(U&&U.registerDep(V,Q,q),!b.el){const K=V.subTree=le(_t);y(null,K,x,k),b.placeholder=K.el}}else Q(V,b,x,k,U,M,q)},ne=(b,x,k)=>{const N=x.component=b.component;if(Vy(b,x,k))if(N.asyncDep&&!N.asyncResolved){Y(N,x,k);return}else N.next=x,N.update();else x.el=b.el,N.vnode=x},Q=(b,x,k,N,U,M,q)=>{const V=()=>{if(b.isMounted){let{next:de,bu:fe,u:ve,parent:ke,vnode:Te}=b;{const It=tg(b);if(It){de&&(de.el=Te.el,Y(b,de,q)),It.asyncDep.then(()=>{Vt(()=>{b.isUnmounted||W()},U)});return}}let Ne=de,Ge;Mr(b,!1),de?(de.el=Te.el,Y(b,de,q)):de=Te,fe&&za(fe),(Ge=de.props&&de.props.onVnodeBeforeUpdate)&&On(Ge,ke,de,Te),Mr(b,!0);const ot=Vd(b),Ft=b.subTree;b.subTree=ot,f(Ft,ot,d(Ft.el),A(Ft),b,U,M),de.el=ot.el,Ne===null&&Hy(b,ot.el),ve&&Vt(ve,U),(Ge=de.props&&de.props.onVnodeUpdated)&&Vt(()=>On(Ge,ke,de,Te),U)}else{let de;const{el:fe,props:ve}=x,{bm:ke,m:Te,parent:Ne,root:Ge,type:ot}=b,Ft=Do(x);Mr(b,!1),ke&&za(ke),!Ft&&(de=ve&&ve.onVnodeBeforeMount)&&On(de,Ne,x),Mr(b,!0);{Ge.ce&&Ge.ce._hasShadowRoot()&&Ge.ce._injectChildStyle(ot,b.parent?b.parent.type:void 0);const It=b.subTree=Vd(b);f(null,It,k,N,b,U,M),x.el=It.el}if(Te&&Vt(Te,U),!Ft&&(de=ve&&ve.onVnodeMounted)){const It=x;Vt(()=>On(de,Ne,It),U)}(x.shapeFlag&256||Ne&&Do(Ne.vnode)&&Ne.vnode.shapeFlag&256)&&b.a&&Vt(b.a,U),b.isMounted=!0,x=k=N=null}};b.scope.on();const K=b.effect=new Q0(V);b.scope.off();const W=b.update=K.run.bind(K),ce=b.job=K.runIfDirty.bind(K);ce.i=b,ce.id=b.uid,K.scheduler=()=>Cc(ce),Mr(b,!0),W()},Y=(b,x,k)=>{x.component=b;const N=b.vnode.props;b.vnode=x,b.next=null,Wy(b,x.props,N,k),Zy(b,x.children,k),or(),$d(b),sr()},ee=(b,x,k,N,U,M,q,V,K=!1)=>{const W=b&&b.children,ce=b?b.shapeFlag:0,de=x.children,{patchFlag:fe,shapeFlag:ve}=x;if(fe>0){if(fe&128){te(W,de,k,N,U,M,q,V,K);return}else if(fe&256){J(W,de,k,N,U,M,q,V,K);return}}ve&8?(ce&16&&Fe(W,U,M),de!==W&&l(k,de)):ce&16?ve&16?te(W,de,k,N,U,M,q,V,K):Fe(W,U,M,!0):(ce&8&&l(k,""),ve&16&&Z(de,k,N,U,M,q,V,K))},J=(b,x,k,N,U,M,q,V,K)=>{b=b||ko,x=x||ko;const W=b.length,ce=x.length,de=Math.min(W,ce);let fe;for(fe=0;fece?Fe(b,U,M,!0,!1,de):Z(x,k,N,U,M,q,V,K,de)},te=(b,x,k,N,U,M,q,V,K)=>{let W=0;const ce=x.length;let de=b.length-1,fe=ce-1;for(;W<=de&&W<=fe;){const ve=b[W],ke=x[W]=K?Kn(x[W]):$n(x[W]);if(Kr(ve,ke))f(ve,ke,k,null,U,M,q,V,K);else break;W++}for(;W<=de&&W<=fe;){const ve=b[de],ke=x[fe]=K?Kn(x[fe]):$n(x[fe]);if(Kr(ve,ke))f(ve,ke,k,null,U,M,q,V,K);else break;de--,fe--}if(W>de){if(W<=fe){const ve=fe+1,ke=vefe)for(;W<=de;)me(b[W],U,M,!0),W++;else{const ve=W,ke=W,Te=new Map;for(W=ke;W<=fe;W++){const yt=x[W]=K?Kn(x[W]):$n(x[W]);yt.key!=null&&Te.set(yt.key,W)}let Ne,Ge=0;const ot=fe-ke+1;let Ft=!1,It=0;const jn=new Array(ot);for(W=0;W=ot){me(yt,U,M,!0);continue}let Mt;if(yt.key!=null)Mt=Te.get(yt.key);else for(Ne=ke;Ne<=fe;Ne++)if(jn[Ne-ke]===0&&Kr(yt,x[Ne])){Mt=Ne;break}Mt===void 0?me(yt,U,M,!0):(jn[Mt-ke]=W+1,Mt>=It?It=Mt:Ft=!0,f(yt,x[Mt],k,null,U,M,q,V,K),Ge++)}const zn=Ft?e4(jn):ko;for(Ne=zn.length-1,W=ot-1;W>=0;W--){const yt=ke+W,Mt=x[yt],Xo=x[yt+1],Zo=yt+1{const{el:M,type:q,transition:V,children:K,shapeFlag:W}=b;if(W&6){re(b.component.subTree,x,k,N);return}if(W&128){b.suspense.move(x,k,N);return}if(W&64){q.move(b,x,k,z);return}if(q===Ze){r(M,x,k);for(let ce=0;ceV.enter(M),U));else{const{leave:ce,delayLeave:de,afterLeave:fe}=V,ve=()=>{b.ctx.isUnmounted?o(M):r(M,x,k)},ke=()=>{const Te=M._isLeaving||!!M[cn];M._isLeaving&&M[cn](!0),V.persisted&&!Te?ve():ce(M,()=>{ve(),fe&&fe()})};de?de(M,ve,ke):ke()}else r(M,x,k)},me=(b,x,k,N=!1,U=!1)=>{const{type:M,props:q,ref:V,children:K,dynamicChildren:W,shapeFlag:ce,patchFlag:de,dirs:fe,cacheIndex:ve,memo:ke}=b;if(de===-2&&(U=!1),V!=null&&(or(),ks(V,null,k,b,!0),sr()),ve!=null&&(x.renderCache[ve]=void 0),ce&256){x.ctx.deactivate(b);return}const Te=ce&1&&fe,Ne=!Do(b);let Ge;if(Ne&&(Ge=q&&q.onVnodeBeforeUnmount)&&On(Ge,x,b),ce&6)Se(b.component,k,N);else{if(ce&128){b.suspense.unmount(k,N);return}Te&&Ir(b,null,x,"beforeUnmount"),ce&64?b.type.remove(b,x,k,z,N):W&&!W.hasOnce&&(M!==Ze||de>0&&de&64)?Fe(W,x,k,!1,!0):(M===Ze&&de&384||!U&&ce&16)&&Fe(K,x,k),N&&_e(b)}const ot=ke!=null&&ve==null;(Ne&&(Ge=q&&q.onVnodeUnmounted)||Te||ot)&&Vt(()=>{Ge&&On(Ge,x,b),Te&&Ir(b,null,x,"unmounted"),ot&&(b.el=null)},k)},_e=b=>{const{type:x,el:k,anchor:N,transition:U}=b;if(x===Ze){we(k,N);return}if(x===Ua){C(b);return}const M=()=>{o(k),U&&!U.persisted&&U.afterLeave&&U.afterLeave()};if(b.shapeFlag&1&&U&&!U.persisted){const{leave:q,delayLeave:V}=U,K=()=>q(k,M);V?V(b.el,M,K):K()}else M()},we=(b,x)=>{let k;for(;b!==x;)k=p(b),o(b),b=k;o(x)},Se=(b,x,k)=>{const{bum:N,scope:U,job:M,subTree:q,um:V,m:K,a:W}=b;Wd(K),Wd(W),N&&za(N),U.stop(),M&&(M.flags|=8,me(q,b,x,k)),V&&Vt(V,x),Vt(()=>{b.isUnmounted=!0},x)},Fe=(b,x,k,N=!1,U=!1,M=0)=>{for(let q=M;q{if(b.shapeFlag&6)return A(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const x=p(b.anchor||b.el),k=x&&x[_f];return k?p(k):x};let B=!1;const L=(b,x,k)=>{let N;b==null?x._vnode&&(me(x._vnode,null,null,!0),N=x._vnode.component):f(x._vnode||null,b,x,null,null,null,k),x._vnode=b,B||(B=!0,$d(N),Cf(),B=!1)},z={p:f,um:me,m:re,r:_e,mt:G,mc:Z,pc:ee,pbc:P,n:A,o:e};return{render:L,hydrate:void 0,createApp:Iy(L)}}function _u({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Mr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Qy(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Sc(e,t,n=!1){const r=e.children,o=t.children;if(be(r)&&be(o))for(let s=0;s>1,e[n[i]]0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,a=n[s-1];s-- >0;)n[s]=a,a=t[a];return n}function tg(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:tg(t)}function Wd(e){if(e)for(let t=0;te.__isSuspense;function t4(e,t){t&&t.pendingBranch?be(e)?t.effects.push(...e):t.effects.push(e):wf(e)}const Ze=Symbol.for("v-fgt"),ca=Symbol.for("v-txt"),_t=Symbol.for("v-cmt"),Ua=Symbol.for("v-stc"),rr=[];let nn=null;function $(e=!1){rr.push(nn=e?null:[])}function kc(){rr.pop(),nn=rr[rr.length-1]||null}let Ws=1;function ii(e,t=!1){Ws+=e,e<0&&nn&&t&&(nn.hasOnce=!0)}function og(e){return e.dynamicChildren=Ws>0?nn||ko:null,kc(),Ws>0&&nn&&nn.push(e),e}function X(e,t,n,r,o,s){return og(ue(e,t,n,r,o,s,!0))}function ge(e,t,n,r,o){return og(le(e,t,n,r,o,!0))}function qs(e){return e?e.__v_isVNode===!0:!1}function Kr(e,t){return e.type===t.type&&e.key===t.key}const sg=({key:e})=>e??null,Va=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ke(e)||lt(e)||Ce(e)?{i:St,r:e,k:t,f:!!n}:e:null);function ue(e,t=null,n=null,r=0,o=null,s=e===Ze?0:1,a=!1,i=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&sg(t),ref:t&&Va(t),scopeId:Hi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:St};return i?(ui(u,n),s&128&&e.normalize(u)):n&&(u.shapeFlag|=Ke(n)?8:16),Ws>0&&!a&&nn&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&nn.push(u),u}const le=n4;function n4(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===Ff)&&(e=_t),qs(e)){const i=Nr(e,t,!0);return n&&ui(i,n),Ws>0&&!s&&nn&&(i.shapeFlag&6?nn[nn.indexOf(e)]=i:nn.push(i)),i.patchFlag=-2,i}if(c4(e)&&(e=e.__vccOpts),t){t=Io(t);let{class:i,style:u}=t;i&&!Ke(i)&&(t.class=Be(i)),Me(u)&&(Ui(u)&&!be(u)&&(u=ct({},u)),t.style=hn(u))}const a=Ke(e)?1:rg(e)?128:qi(e)?64:Me(e)?4:Ce(e)?2:0;return ue(e,t,n,r,o,a,s,!0)}function Io(e){return e?Ui(e)||Xf(e)?ct({},e):e:null}function Nr(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:a,children:i,transition:u}=e,c=t?ft(o||{},t):o,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&sg(c),ref:t&&t.ref?n&&s?be(s)?s.concat(Va(t)):[s,Va(t)]:Va(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ze?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Nr(e.ssContent),ssFallback:e.ssFallback&&Nr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&r&&Gs(l,u.clone(l)),l}function wt(e=" ",t=0){return le(ca,null,e,t)}function he(e="",t=!1){return t?($(),ge(_t,null,e)):le(_t,null,e)}function $n(e){return e==null||typeof e=="boolean"?le(_t):be(e)?le(Ze,null,e.slice()):qs(e)?Kn(e):le(ca,null,String(e))}function Kn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Nr(e)}function ui(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(be(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),ui(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Xf(t)?t._ctx=St:o===3&&St&&(St.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Ce(t)){if(r&65){ui(e,{default:t});return}t={default:t,_ctx:St},n=32}else t=String(t),r&64?(n=16,t=[wt(t)]):n=8;e.children=t,e.shapeFlag|=n}function ft(...e){const t={};for(let n=0;nPt||St;let li,Ks;{const e=Ja(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),s=>{o.length>1?o.forEach(a=>a(s)):o[0](s)}};li=t("__VUE_INSTANCE_SETTERS__",n=>Pt=n),Ks=t("__VUE_SSR_SETTERS__",n=>Xs=n)}const da=e=>{const t=Pt;return li(e),e.scope.on(),()=>{e.scope.off(),li(t)}},qd=()=>{Pt&&Pt.scope.off(),li(null)};function ag(e){return e.vnode.shapeFlag&4}let Xs=!1;function a4(e,t=!1,n=!1){t&&Ks(t);const{props:r,children:o}=e.vnode,s=ag(e);Gy(e,r,s,t),Xy(e,o,n||t);const a=s?i4(e,t):void 0;return t&&Ks(!1),a}function i4(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Dy);const{setup:r}=n;if(r){or();const o=e.setupContext=r.length>1?ug(e):null,s=da(e),a=ia(r,e,0,[e.props,o]),i=G0(a);if(sr(),s(),(i||e.sp)&&!Do(e)&&Pf(e),i){if(a.then(qd,qd),t)return a.then(u=>{Ks(!0);try{Kd(e,u,t)}finally{Ks(!1)}}).catch(u=>{Vi(u,e,0)});e.asyncDep=a}else Kd(e,a)}else ig(e)}function Kd(e,t,n){Ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Me(t)&&(e.setupState=yf(t)),ig(e)}function ig(e,t,n){const r=e.type;e.render||(e.render=r.render||pn);{const o=da(e);or();try{Py(e)}finally{sr(),o()}}}const u4={get(e,t){return Nt(e,"get",""),e[t]}};function ug(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,u4),slots:e.slots,emit:e.emit,expose:t}}function Ji(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(yf(K1(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Os)return Os[n](e)},has(t,n){return n in t||n in Os}})):e.proxy}function l4(e,t=!0){return Ce(e)?e.displayName||e.name:e.name||t&&e.__name}function c4(e){return Ce(e)&&"__vccOpts"in e}const se=(e,t)=>ry(e,t,Xs);function Dt(e,t,n){try{ii(-1);const r=arguments.length;return r===2?Me(t)&&!be(t)?qs(t)?le(e,null,[t]):le(e,t):le(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&qs(n)&&(n=[n]),le(e,t,n))}finally{ii(1)}}const d4="3.5.41",p4=pn;let Pl;const Xd=typeof window<"u"&&window.trustedTypes;if(Xd)try{Pl=Xd.createPolicy("vue",{createHTML:e=>e})}catch{}const lg=Pl?e=>Pl.createHTML(e):e=>e,h4="http://www.w3.org/2000/svg",f4="http://www.w3.org/1998/Math/MathML",qn=typeof document<"u"?document:null,Zd=qn&&qn.createElement("template"),g4={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?qn.createElementNS(h4,e):t==="mathml"?qn.createElementNS(f4,e):n?qn.createElement(e,{is:n}):qn.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>qn.createTextNode(e),createComment:e=>qn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>qn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const a=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{Zd.innerHTML=lg(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const i=Zd.content;if(r==="svg"||r==="mathml"){const u=i.firstChild;for(;u.firstChild;)i.appendChild(u.firstChild);i.removeChild(u)}t.insertBefore(i,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},pr="transition",ts="animation",Zs=Symbol("_vtc"),cg={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},m4=ct({},kf,cg),v4=e=>(e.displayName="Transition",e.props=m4,e),ns=v4((e,{slots:t})=>Dt(Ey,y4(e),t)),jr=(e,t=[])=>{be(e)?e.forEach(n=>n(...t)):e&&e(...t)},Yd=e=>e?be(e)?e.some(t=>t.length>1):e.length>1:!1;function y4(e){const t={};for(const O in e)O in cg||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:u=s,appearActiveClass:c=a,appearToClass:l=i,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,g=b4(o),f=g&&g[0],m=g&&g[1],{onBeforeEnter:y,onEnter:v,onEnterCancelled:E,onLeave:C,onLeaveCancelled:_,onBeforeAppear:D=y,onAppear:R=v,onAppearCancelled:Z=E}=t,I=(O,S,G,ne)=>{O._enterCancelled=ne,zr(O,S?l:i),zr(O,S?c:a),G&&G()},P=(O,S)=>{O._isLeaving=!1,zr(O,d),zr(O,h),zr(O,p),S&&S()},oe=O=>(S,G)=>{const ne=O?R:v,Q=()=>I(S,O,G);jr(ne,[S,Q]),Jd(()=>{zr(S,O?u:s),Hn(S,O?l:i),Yd(ne)||Qd(S,r,f,Q)})};return ct(t,{onBeforeEnter(O){jr(y,[O]),Hn(O,s),Hn(O,a)},onBeforeAppear(O){jr(D,[O]),Hn(O,u),Hn(O,c)},onEnter:oe(!1),onAppear:oe(!0),onLeave(O,S){O._isLeaving=!0;const G=()=>P(O,S);Hn(O,d),O._enterCancelled?(Hn(O,p),np(O)):(np(O),Hn(O,p)),Jd(()=>{O._isLeaving&&(zr(O,d),Hn(O,h),Yd(C)||Qd(O,r,m,G))}),jr(C,[O,G])},onEnterCancelled(O){I(O,!1,void 0,!0),jr(E,[O])},onAppearCancelled(O){I(O,!0,void 0,!0),jr(Z,[O])},onLeaveCancelled(O){P(O),jr(_,[O])}})}function b4(e){if(e==null)return null;if(Me(e))return[Su(e.enter),Su(e.leave)];{const t=Su(e);return[t,t]}}function Su(e){return y1(e)}function Hn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Zs]||(e[Zs]=new Set)).add(t)}function zr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Zs];n&&(n.delete(t),n.size||(e[Zs]=void 0))}function Jd(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let E4=0;function Qd(e,t,n,r){const o=e._endId=++E4,s=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:a,timeout:i,propCount:u}=w4(e,t);if(!a)return r();const c=a+"end";let l=0;const d=()=>{e.removeEventListener(c,p),s()},p=h=>{h.target===e&&++l>=u&&d()};setTimeout(()=>{l(n[g]||"").split(", "),o=r(`${pr}Delay`),s=r(`${pr}Duration`),a=ep(o,s),i=r(`${ts}Delay`),u=r(`${ts}Duration`),c=ep(i,u);let l=null,d=0,p=0;t===pr?a>0&&(l=pr,d=a,p=s.length):t===ts?c>0&&(l=ts,d=c,p=u.length):(d=Math.max(a,c),l=d>0?a>c?pr:ts:null,p=l?l===pr?s.length:u.length:0);const h=l===pr&&/\b(?:transform|all)(?:,|$)/.test(r(`${pr}Property`).toString());return{type:l,timeout:d,propCount:p,hasTransform:h}}function ep(e,t){for(;e.lengthtp(n)+tp(e[r])))}function tp(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function np(e){return(e?e.ownerDocument:document).body.offsetHeight}function C4(e,t,n){const r=e[Zs];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ci=Symbol("_vod"),dg=Symbol("_vsh"),er={name:"show",beforeMount(e,{value:t},{transition:n}){e[ci]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):rs(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),rs(e,!0),r.enter(e)):r.leave(e,()=>{rs(e,!1)}):rs(e,t))},beforeUnmount(e,{value:t}){rs(e,t)}};function rs(e,t){e.style.display=t?e[ci]:"none",e[dg]=!t}const pg=Symbol("");function hg(e){const t=Mn();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>di(s,o))},r=()=>{const o=e(t.proxy);t.ce?di(t.ce,o):Bl(t.subTree,o),n(o)};Rf(()=>{wf(r)}),Sn(()=>{et(r,pn,{flush:"post"});const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),ur(()=>o.disconnect())})}function Bl(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Bl(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)di(e.el,t);else if(e.type===Ze)e.children.forEach(n=>Bl(n,t));else if(e.type===Ua){let{el:n,anchor:r}=e;for(;n&&(di(n,t),n!==r);)n=n.nextSibling}}function di(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t){const s=S1(t[o]);n.setProperty(`--${o}`,s),r+=`--${o}: ${s};`}n[pg]=r}}const x4=/(?:^|;)\s*display\s*:/;function A4(e,t,n){const r=e.style,o=Ke(n);let s=!1;if(n&&!o){if(t)if(Ke(t))for(const a of t.split(";")){const i=a.slice(0,a.indexOf(":")).trim();n[i]==null&&Es(r,i,"")}else for(const a in t)n[a]==null&&Es(r,a,"");for(const a in n){a==="display"&&(s=!0);const i=n[a];i!=null?S4(e,a,!Ke(t)&&t?t[a]:void 0,i)||Es(r,a,i):Es(r,a,"")}}else if(o){if(t!==n){const a=r[pg];a&&(n+=";"+a),r.cssText=n,s=x4.test(n)}}else t&&e.removeAttribute("style");ci in e&&(e[ci]=s?r.display:"",e[dg]&&(r.display="none"))}const rp=/\s*!important$/;function Es(e,t,n){if(be(n))n.forEach(r=>Es(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=_4(e,t);rp.test(n)?e.setProperty(cr(r),n.replace(rp,""),"important"):e[r]=n}}const op=["Webkit","Moz","ms"],ku={};function _4(e,t){const n=ku[t];if(n)return n;let r=Rt(t);if(r!=="filter"&&r in e)return ku[t]=r;r=Fi(r);for(let o=0;oTu||(P4.then(()=>Tu=0),Tu=Date.now());function $4(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;const o=n.value;if(be(o)){const s=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{s.call(r),r._stopped=!0};const a=o.slice(),i=[r];for(let u=0;ue.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,R4=(e,t,n,r,o,s)=>{const a=o==="svg";t==="class"?C4(e,r,a):t==="style"?A4(e,n,r):Bi(t)?$i(t)||T4(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):L4(e,t,r,a))?(ip(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ap(e,t,r,a,s,t!=="value")):e._isVueCE&&(F4(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ke(r)))?ip(e,Rt(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ap(e,t,r,a))};function L4(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&lp(t)&&Ce(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return lp(t)&&Ke(n)?!1:t in e}function F4(e,t){const n=e._def.props;if(!n)return!1;const r=Rt(t);return Array.isArray(n)?n.some(o=>Rt(o)===r):Object.keys(n).some(o=>Rt(o)===r)}const cp=e=>{const t=e.props["onUpdate:modelValue"]||!1;return be(t)?n=>za(t,n):t};function I4(e){e.target.composing=!0}function dp(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Na=Symbol("_assign"),Pa=Symbol("_initialValue");function Ou(e,t,n){return t&&(e=e.trim()),n&&(e=vc(e)),e}const M4={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e.parentNode&&(e.type==="text"?e[Pa]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Pa]=e.defaultValue.replace(/\r\n?/g,` -`))),e[Na]=cp(o);const s=r||o.props&&o.props.type==="number";Co(e,t?"change":"input",a=>{a.target.composing||e[Na](Ou(e.value,n,s))}),(n||s)&&Co(e,"change",()=>{e.value=Ou(e.value,n,s)}),t||(Co(e,"compositionstart",I4),Co(e,"compositionend",dp),Co(e,"change",dp))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){const o=t??"",s=e[Pa];delete e[Pa],s!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==s?e[Na](Ou(e.value,n,r)):e.value=o},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:s}},a){if(e[Na]=cp(a),e.composing)return;const i=(s||e.type==="number")&&!/^0\d/.test(e.value)?vc(e.value):e.value,u=t??"";if(i===u)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(r&&t===n||o&&e.value.trim()===u)||(e.value=u)}},j4=["ctrl","shift","alt","meta"],z4={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>j4.some(n=>e[`${n}Key`]&&!t.includes(n))},bn=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((o,...s)=>{for(let a=0;a{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(o=>{if(!("key"in o))return;const s=cr(o.key);if(t.some(a=>a===s||U4[a]===s))return e(o)}))},V4=ct({patchProp:R4},g4);let pp;function H4(){return pp||(pp=Yy(V4))}const G4=((...e)=>{const t=H4().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=q4(r);if(!o)return;const s=t._component;!Ce(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const a=n(o,!1,W4(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t});function W4(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function q4(e){return Ke(e)?document.querySelector(e):e}function fg(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function K4(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&fg(e.default)}const je=Object.assign;function Du(e,t){const n={};for(const r in t){const o=t[r];n[r]=_n(o)?o.map(e):e(o)}return n}const Ds=()=>{},_n=Array.isArray;function hp(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const gg=Symbol("");function Mo(e,t){return je(new Error,{type:e,[gg]:!0},t)}function Gn(e,t){return e instanceof Error&&gg in e&&(t==null||!!(e.type&t))}const X4=Symbol(""),fp=Symbol(""),ha=Symbol(""),Tc=Symbol(""),$l=Symbol("");function Z4(){return rt(ha)}function Y4(e){return rt(Tc)}const xo=typeof document<"u",mg=/#/g,J4=/&/g,Q4=/\//g,eb=/=/g,tb=/\?/g,vg=/\+/g,nb=/%5B/g,rb=/%5D/g,yg=/%5E/g,ob=/%60/g,bg=/%7B/g,sb=/%7C/g,Eg=/%7D/g,ab=/%20/g;function Oc(e){return e==null?"":encodeURI(""+e).replace(sb,"|").replace(nb,"[").replace(rb,"]")}function ib(e){return Oc(e).replace(bg,"{").replace(Eg,"}").replace(yg,"^")}function Rl(e){return Oc(e).replace(vg,"%2B").replace(ab,"+").replace(mg,"%23").replace(J4,"%26").replace(ob,"`").replace(bg,"{").replace(Eg,"}").replace(yg,"^")}function ub(e){return Rl(e).replace(eb,"%3D")}function lb(e){return Oc(e).replace(mg,"%23").replace(tb,"%3F")}function cb(e){return lb(e).replace(Q4,"%2F")}function pi(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const db=/\/$/,pb=e=>e.replace(db,"");function Nu(e,t,n="/"){let r,o={},s="",a="";const i=t.indexOf("#");let u=t.indexOf("?");return u=i>=0&&u>i?-1:u,u>=0&&(r=t.slice(0,u),s=t.slice(u,i>0?i:t.length),o=e(s.slice(1))),i>=0&&(r=r||t.slice(0,i),a=t.slice(i,t.length)),r=mb(r??t,n),{fullPath:r+s+a,path:r,query:o,hash:pi(a)}}function hb(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function gp(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function fb(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&jo(t.matched[r],n.matched[o])&&wg(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function jo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function wg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!gb(e[n],t[n]))return!1;return!0}function gb(e,t){return _n(e)?mp(e,t):_n(t)?mp(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function mp(e,t){return _n(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function mb(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,a,i;for(a=0;a1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(a).join("/")}const hr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};function vb(e){if(!e)if(xo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),pb(e)}const yb=/^[^#]+#/;function bb(e,t){return e.replace(yb,"#")+t}function Eb(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Qi=()=>({left:window.scrollX,top:window.scrollY});function wb(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Eb(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function vp(e,t){return(history.state?history.state.position-t:-1)+e}const Ll=new Map;function Cb(e,t){Ll.set(e,t)}function xb(e){const t=Ll.get(e);return Ll.delete(e),t}function Ab(e){return typeof e=="string"||e&&typeof e=="object"}function Cg(e){return typeof e=="string"||typeof e=="symbol"}function _b(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Rl(o)):[r&&Rl(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Sb(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=_n(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}function os(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function wr(e,t,n,r,o,s=a=>a()){const a=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((i,u)=>{const c=p=>{p===!1?u(Mo(4,{from:n,to:t})):p instanceof Error?u(p):Ab(p)?u(Mo(2,{from:t,to:p})):(a&&r.enterCallbacks[o]===a&&typeof p=="function"&&a.push(p),i())},l=s(()=>e.call(r&&r.instances[o],t,n,c));let d=Promise.resolve(l);e.length<3&&(d=d.then(c)),d.catch(p=>u(p))})}function Pu(e,t,n,r,o=s=>s()){const s=[];for(const a of e)for(const i in a.components){let u=a.components[i];if(!(t!=="beforeRouteEnter"&&!a.instances[i]))if(fg(u)){const c=(u.__vccOpts||u)[t];c&&s.push(wr(c,n,r,a,i,o))}else{let c=u();s.push(()=>c.then(l=>{if(!l)throw new Error(`Couldn't resolve component "${i}" at "${a.path}"`);const d=K4(l)?l.default:l;a.mods[i]=l,a.components[i]=d;const p=(d.__vccOpts||d)[t];return p&&wr(p,n,r,a,i,o)()}))}}return s}function kb(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let a=0;ajo(c,i))?r.push(i):n.push(i));const u=e.matched[a];u&&(t.matched.find(c=>jo(c,u))||o.push(u))}return[n,r,o]}let Tb=()=>location.protocol+"//"+location.host;function xg(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,i=o.slice(a);return i[0]!=="/"&&(i="/"+i),gp(i,"")}return gp(n,e)+r+o}function Ob(e,t,n,r){let o=[],s=[],a=null;const i=({state:p})=>{const h=xg(e,location),g=n.value,f=t.value;let m=0;if(p){if(n.value=h,t.value=p,a&&a===g){a=null;return}m=f?p.position-f.position:0}else r(h);o.forEach(y=>{y(n.value,g,{delta:m,type:"pop",direction:m?m>0?"forward":"back":""})})};function u(){a=n.value}function c(p){o.push(p);const h=()=>{const g=o.indexOf(p);g>-1&&o.splice(g,1)};return s.push(h),h}function l(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(je({},p.state,{scroll:Qi()}),"")}}function d(){for(const p of s)p();s=[],window.removeEventListener("popstate",i),window.removeEventListener("pagehide",l),document.removeEventListener("visibilitychange",l)}return window.addEventListener("popstate",i),window.addEventListener("pagehide",l),document.addEventListener("visibilitychange",l),{pauseListeners:u,listen:c,destroy:d}}function bp(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Qi():null}}function Db(e){const{history:t,location:n}=window,r={value:xg(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(u,c,l){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+u:Tb()+e+u;try{t[l?"replaceState":"pushState"](c,"",p),o.value=c}catch(h){console.error(h),n[l?"replace":"assign"](p)}}function a(u,c){s(u,je({},t.state,bp(o.value.back,u,o.value.forward,!0),c,{position:o.value.position}),!0),r.value=u}function i(u,c){const l=je({},o.value,t.state,{forward:u,scroll:Qi()});s(l.current,l,!0),s(u,je({},bp(r.value,u,null),{position:l.position+1},c),!1),r.value=u}return{location:r,state:o,push:i,replace:a}}function Nb(e){e=vb(e);const t=Db(e),n=Ob(e,t.state,t.location,t.replace);function r(s,a=!0){a||n.pauseListeners(),history.go(s)}const o=je({location:"",base:e,go:r,createHref:bb.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}const Pb={type:0,value:""},Bb=/[a-zA-Z0-9_]/;function $b(e){if(!e)return[[]];if(e==="/")return[[Pb]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,r=n;const o=[];let s;function a(){s&&o.push(s),s=[]}let i=0,u,c="",l="";function d(){c&&(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:l,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=u}for(;it.length?t.length===1&&t[0]===80?1:-1:0}function Ag(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const Mb={strict:!1,end:!0,sensitive:!1};function jb(e,t,n){const r=Fb($b(e.path),n),o=je(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function zb(e,t){const n=[],r=new Map;t=hp(Mb,t);function o(d){return r.get(d)}function s(d,p,h){const g=!h,f=xp(d);f.aliasOf=h&&h.record;const m=hp(t,d),y=[f];if("alias"in d){const C=typeof d.alias=="string"?[d.alias]:d.alias;for(const _ of C)y.push(xp(je({},f,{components:h?h.record.components:f.components,path:_,aliasOf:h?h.record:f})))}let v,E;for(const C of y){const{path:_}=C;if(p&&_[0]!=="/"){const D=p.record.path,R=D[D.length-1]==="/"?"":"/";C.path=p.record.path+(_&&R+_)}if(v=jb(C,p,m),h?h.alias.push(v):(E=E||v,E!==v&&E.alias.push(v),g&&d.name&&!Ap(v)&&a(d.name)),_g(v)&&u(v),f.children){const D=f.children;for(let R=0;R{a(E)}:Ds}function a(d){if(Cg(d)){const p=r.get(d);p&&(r.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(a),p.alias.forEach(a))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&r.delete(d.record.name),d.children.forEach(a),d.alias.forEach(a))}}function i(){return n}function u(d){const p=Hb(d,n);n.splice(p,0,d),d.record.name&&!Ap(d)&&r.set(d.record.name,d)}function c(d,p){let h,g={},f,m;if("name"in d&&d.name){if(h=r.get(d.name),!h)throw Mo(1,{location:d});m=h.record.name,g=je(Cp(p.params,h.keys.filter(E=>!E.optional).concat(h.parent?h.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),d.params&&Cp(d.params,h.keys.map(E=>E.name))),f=h.stringify(g)}else if(d.path!=null)f=d.path,h=n.find(E=>E.re.test(f)),h&&(g=h.parse(f),m=h.record.name,h.keys.forEach(E=>{E.optional&&!g[E.name]&&delete g[E.name]}));else{if(h=p.name?r.get(p.name):n.find(E=>E.re.test(p.path)),!h)throw Mo(1,{location:d,currentLocation:p});m=h.record.name,g=je({},p.params,d.params),f=h.stringify(g)}const y=[];let v=h;for(;v;)y.unshift(v.record),v=v.parent;return{name:m,path:f,params:g,matched:y,meta:Vb(y)}}e.forEach(d=>s(d));function l(){n.length=0,r.clear()}return{addRoute:s,resolve:c,removeRoute:a,clearRoutes:l,getRoutes:i,getRecordMatcher:o}}function Cp(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function xp(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ub(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(t,"mods",{value:{}}),t}function Ub(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Ap(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Vb(e){return e.reduce((t,n)=>je(t,n.meta),{})}function Hb(e,t){let n=0,r=t.length;for(;n!==r;){const s=n+r>>1;Ag(e,t[s])<0?r=s:n=s+1}const o=Gb(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function Gb(e){let t=e;for(;t=t.parent;)if(_g(t)&&Ag(e,t)===0)return t}function _g({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function _p(e){const t=rt(ha),n=rt(Tc),r=se(()=>{const u=j(e.to);return t.resolve(u)}),o=se(()=>{const{matched:u}=r.value,{length:c}=u,l=u[c-1],d=n.matched;if(!l||!d.length)return-1;const p=d.findIndex(jo.bind(null,l));if(p>-1)return p;const h=Sp(u[c-2]);return c>1&&Sp(l)===h&&d[d.length-1].path!==h?d.findIndex(jo.bind(null,u[c-2])):p}),s=se(()=>o.value>-1&&Xb(n.params,r.value.params)),a=se(()=>o.value>-1&&o.value===n.matched.length-1&&wg(n.params,r.value.params));function i(u={}){if(Kb(u)){const c=t[j(e.replace)?"replace":"push"](j(e.to)).catch(Ds);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:se(()=>r.value.href),isActive:s,isExactActive:a,navigate:i}}function Wb(e){return e.length===1?e[0]:e}const qb=We({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:_p,setup(e,{slots:t}){const n=Fo(_p(e)),{options:r}=rt(ha),o=se(()=>({[kp(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[kp(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&Wb(t.default(n));return e.custom?s:Dt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}});function Kb(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 t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Xb(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!_n(o)||o.length!==r.length||r.some((s,a)=>s.valueOf()!==o[a].valueOf()))return!1}return!0}function Sp(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const kp=(e,t,n)=>e??t??n,Zb=We({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=rt($l),o=se(()=>e.route||r.value),s=rt(fp,0),a=se(()=>{let c=j(s);const{matched:l}=o.value;let d;for(;(d=l[c])&&!d.components;)c++;return c}),i=se(()=>o.value.matched[a.value]);Zt(fp,se(()=>a.value+1)),Zt(X4,i),Zt($l,o);const u=Ae();return et(()=>[u.value,i.value,e.name],([c,l,d],[p,h,g])=>{l&&(l.instances[d]=c,h&&h!==l&&c&&c===p&&(l.leaveGuards.size||(l.leaveGuards=h.leaveGuards),l.updateGuards.size||(l.updateGuards=h.updateGuards))),c&&l&&(!h||!jo(l,h)||!p)&&(l.enterCallbacks[d]||[]).forEach(f=>f(c))},{flush:"post"}),()=>{const c=o.value,l=e.name,d=i.value,p=d&&d.components[l];if(!p)return Tp(n.default,{Component:p,route:c});const h=d.props[l],g=h?h===!0?c.params:typeof h=="function"?h(c):h:null,f=Dt(p,je({},g,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(d.instances[l]=null)},ref:u}));return Tp(n.default,{Component:f,route:c})||f}}});function Tp(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Sg=Zb;function Yb(e){const t=zb(e.routes,e),n=e.parseQuery||_b,r=e.stringifyQuery||yp,o=e.history,s=os(),a=os(),i=os(),u=ir(hr);let c=hr;xo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const l=Du.bind(null,A=>""+A),d=Du.bind(null,cb),p=Du.bind(null,pi);function h(A,B){let L,z;return Cg(A)?(L=t.getRecordMatcher(A),z=B):z=A,t.addRoute(z,L)}function g(A){const B=t.getRecordMatcher(A);B&&t.removeRoute(B)}function f(){return t.getRoutes().map(A=>A.record)}function m(A){return!!t.getRecordMatcher(A)}function y(A,B){if(B=je({},B||u.value),typeof A=="string"){const N=Nu(n,A,B.path),U=t.resolve({path:N.path},B),M=o.createHref(N.fullPath);return je(N,U,{params:p(U.params),redirectedFrom:void 0,href:M})}let L;if(A.path!=null)L=je({},A,{path:Nu(n,A.path,B.path).path});else{const N=je({},A.params);for(const U in N)N[U]==null&&delete N[U];L=je({},A,{params:d(N)}),B.params=d(B.params)}const z=t.resolve(L,B),b=A.hash||"";z.params=l(p(z.params));const x=hb(r,je({},A,{hash:ib(b),path:z.path})),k=o.createHref(x);return je({fullPath:x,hash:b,query:r===yp?Sb(A.query):A.query||{}},z,{redirectedFrom:void 0,href:k})}function v(A){return typeof A=="string"?Nu(n,A,u.value.path):je({},A)}function E(A,B){if(c!==A)return Mo(8,{from:B,to:A})}function C(A){return R(A)}function _(A){return C(je(v(A),{replace:!0}))}function D(A,B){const L=A.matched[A.matched.length-1];if(L&&L.redirect){const{redirect:z}=L;let b=typeof z=="function"?z(A,B):z;return typeof b=="string"&&(b=b.includes("?")||b.includes("#")?b=v(b):{path:b},b.params={}),je({query:A.query,hash:A.hash,params:b.path!=null?{}:A.params},b)}}function R(A,B){const L=c=y(A),z=u.value,b=A.state,x=A.force,k=A.replace===!0,N=D(L,z);if(N)return R(je(v(N),{state:typeof N=="object"?je({},b,N.state):b,force:x,replace:k}),B||L);const U=L;U.redirectedFrom=B;let M;return!x&&fb(r,z,L)&&(M=Mo(16,{to:U,from:z}),re(z,z,!0,!1)),(M?Promise.resolve(M):P(U,z)).catch(q=>Gn(q)?Gn(q,2)?q:te(q):ee(q,U,z)).then(q=>{if(q){if(Gn(q,2))return R(je({replace:k},v(q.to),{state:typeof q.to=="object"?je({},b,q.to.state):b,force:x}),B||U)}else q=O(U,z,!0,k,b);return oe(U,z,q),q})}function Z(A,B){const L=E(A,B);return L?Promise.reject(L):Promise.resolve()}function I(A){const B=we.values().next().value;return B&&typeof B.runWithContext=="function"?B.runWithContext(A):A()}function P(A,B){let L;const[z,b,x]=kb(A,B);L=Pu(z.reverse(),"beforeRouteLeave",A,B);for(const N of z)N.leaveGuards.forEach(U=>{L.push(wr(U,A,B))});const k=Z.bind(null,A,B);return L.push(k),Fe(L).then(()=>{L=[];for(const N of s.list())L.push(wr(N,A,B));return L.push(k),Fe(L)}).then(()=>{L=Pu(b,"beforeRouteUpdate",A,B);for(const N of b)N.updateGuards.forEach(U=>{L.push(wr(U,A,B))});return L.push(k),Fe(L)}).then(()=>{L=[];for(const N of x)if(N.beforeEnter)if(_n(N.beforeEnter))for(const U of N.beforeEnter)L.push(wr(U,A,B));else L.push(wr(N.beforeEnter,A,B));return L.push(k),Fe(L)}).then(()=>(A.matched.forEach(N=>N.enterCallbacks={}),L=Pu(x,"beforeRouteEnter",A,B,I),L.push(k),Fe(L))).then(()=>{L=[];for(const N of a.list())L.push(wr(N,A,B));return L.push(k),Fe(L)}).catch(N=>Gn(N,8)?N:Promise.reject(N))}function oe(A,B,L){i.list().forEach(z=>I(()=>z(A,B,L)))}function O(A,B,L,z,b){const x=E(A,B);if(x)return x;const k=B===hr,N=xo?history.state:{};L&&(z||k?o.replace(A.fullPath,je({scroll:k&&N&&N.scroll},b)):o.push(A.fullPath,b)),u.value=A,re(A,B,L,k),te()}let S;function G(){S||(S=o.listen((A,B,L)=>{if(!Se.listening)return;const z=y(A),b=D(z,Se.currentRoute.value);if(b){R(je(b,{replace:!0,force:!0}),z).catch(Ds);return}c=z;const x=u.value;xo&&Cb(vp(x.fullPath,L.delta),Qi()),P(z,x).catch(k=>Gn(k,12)?k:Gn(k,2)?(R(je(v(k.to),{force:!0}),z).then(N=>{Gn(N,20)&&!L.delta&&L.type==="pop"&&o.go(-1,!1)}).catch(Ds),Promise.reject()):(L.delta&&o.go(-L.delta,!1),ee(k,z,x))).then(k=>{k=k||O(z,x,!1),k&&(L.delta&&!Gn(k,8)?o.go(-L.delta,!1):L.type==="pop"&&Gn(k,20)&&o.go(-1,!1)),oe(z,x,k)}).catch(Ds)}))}let ne=os(),Q=os(),Y;function ee(A,B,L){te(A);const z=Q.list();return z.length?z.forEach(b=>b(A,B,L)):console.error(A),Promise.reject(A)}function J(){return Y&&u.value!==hr?Promise.resolve():new Promise((A,B)=>{ne.add([A,B])})}function te(A){return Y||(Y=!A,G(),ne.list().forEach(([B,L])=>A?L(A):B()),ne.reset()),A}function re(A,B,L,z){const{scrollBehavior:b}=e;if(!xo||!b)return Promise.resolve();const x=!L&&xb(vp(A.fullPath,0))||(z||!L)&&history.state&&history.state.scroll||null;return Cn().then(()=>b(A,B,x)).then(k=>A===u.value&&k&&wb(k)).catch(k=>A===u.value&&ee(k,A,B))}const me=A=>o.go(A);let _e;const we=new Set,Se={currentRoute:u,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:f,resolve:y,options:e,push:C,replace:_,go:me,back:()=>me(-1),forward:()=>me(1),beforeEach:s.add,beforeResolve:a.add,afterEach:i.add,onError:Q.add,isReady:J,install(A){A.component("RouterLink",qb),A.component("RouterView",Sg),A.config.globalProperties.$router=Se,Object.defineProperty(A.config.globalProperties,"$route",{enumerable:!0,get:()=>j(u)}),xo&&!_e&&u.value===hr&&(_e=!0,C(o.location).catch(z=>{}));const B={};for(const z in hr)Object.defineProperty(B,z,{get:()=>u.value[z],enumerable:!0});A.provide(ha,Se),A.provide(Tc,mf(B)),A.provide($l,u);const L=A.unmount;we.add(A),A.unmount=function(){we.delete(A),we.size<1&&(c=hr,S&&S(),S=null,u.value=hr,_e=!1,Y=!1),L()}}};function Fe(A){return A.reduce((B,L)=>B.then(()=>I(L)),Promise.resolve())}return Se}const Jb=We({__name:"App",setup(e){return(t,n)=>($(),ge(j(Sg)))}}),Qb=e=>"/remote.php/"+e,e3=(e,t)=>Tg()+Qb(e),kg=(e,t,n)=>{const r=Object.assign({ocsVersion:2},{}).ocsVersion===1?1:2;return Tg()+"/ocs/v"+r+".php"+Fl(e,t)},Fl=(e,t,n)=>{const r=Object.assign({escape:!0},{}),o=function(s,a){return a=a||{},s.replace(/{([^{}]*)}/g,function(i,u){const c=a[u];return r.escape?encodeURIComponent(typeof c=="string"||typeof c=="number"?c.toString():i):typeof c=="string"||typeof c=="number"?c.toString():i})};return e.charAt(0)!=="/"&&(e="/"+e),o(e,t||{})},xr=(e,t,n)=>{const r=Object.assign({noRewrite:!1},{}),o=Og();return window?.OC?.config?.modRewriteWorking===!0&&!r.noRewrite?o+Fl(e,t):o+"/index.php"+Fl(e,t)},Tg=()=>window.location.protocol+"//"+window.location.host+Og();function Og(){let e=window._oc_webroot;if(typeof e>"u"){e=location.pathname;const t=e.indexOf("/index.php/");if(t!==-1)e=e.slice(0,t);else{const n=e.indexOf("/",1);e=e.slice(0,n>0?n:void 0)}}return e}function Dc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function t3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dg={exports:{}},it=Dg.exports={},Nn,Pn;function Il(){throw new Error("setTimeout has not been defined")}function Ml(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Nn=setTimeout:Nn=Il}catch{Nn=Il}try{typeof clearTimeout=="function"?Pn=clearTimeout:Pn=Ml}catch{Pn=Ml}})();function Ng(e){if(Nn===setTimeout)return setTimeout(e,0);if((Nn===Il||!Nn)&&setTimeout)return Nn=setTimeout,setTimeout(e,0);try{return Nn(e,0)}catch{try{return Nn.call(null,e,0)}catch{return Nn.call(this,e,0)}}}function n3(e){if(Pn===clearTimeout)return clearTimeout(e);if((Pn===Ml||!Pn)&&clearTimeout)return Pn=clearTimeout,clearTimeout(e);try{return Pn(e)}catch{try{return Pn.call(null,e)}catch{return Pn.call(this,e)}}}var tr=[],Po=!1,Yr,Ha=-1;function r3(){!Po||!Yr||(Po=!1,Yr.length?tr=Yr.concat(tr):Ha=-1,tr.length&&Pg())}function Pg(){if(!Po){var e=Ng(r3);Po=!0;for(var t=tr.length;t;){for(Yr=tr,tr=[];++Ha1)for(var n=1;nconsole.error("SEMVER",...t):()=>{},Bu}var $u,Dp;function Rg(){if(Dp)return $u;Dp=1;const e="2.0.0",t=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,r=16,o=t-6;return $u={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},$u}var Ru={exports:{}},Np;function s3(){return Np||(Np=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=Rg(),s=$g();t=e.exports={};const a=t.re=[],i=t.safeRe=[],u=t.src=[],c=t.safeSrc=[],l=t.t={};let d=0;const p="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",o],[p,r]],g=m=>{for(const[y,v]of h)m=m.split(`${y}*`).join(`${y}{0,${v}}`).split(`${y}+`).join(`${y}{1,${v}}`);return m},f=(m,y,v)=>{const E=g(y),C=d++;s(m,C,y),l[m]=C,u[C]=y,c[C]=E,a[C]=new RegExp(y,v?"g":void 0),i[C]=new RegExp(E,v?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),f("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${u[l.NONNUMERICIDENTIFIER]}|${u[l.NUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NONNUMERICIDENTIFIER]}|${u[l.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${p}+`),f("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),f("FULL",`^${u[l.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),f("LOOSE",`^${u[l.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),f("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),f("COERCE",`${u[l.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",u[l.COERCEPLAIN]+`(?:${u[l.PRERELEASE]})?(?:${u[l.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",u[l.COERCE],!0),f("COERCERTLFULL",u[l.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Ru,Ru.exports)),Ru.exports}var Lu,Pp;function a3(){if(Pp)return Lu;Pp=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Lu=n=>n?typeof n!="object"?e:n:t,Lu}var Fu,Bp;function i3(){if(Bp)return Fu;Bp=1;const e=/^[0-9]+$/,t=(n,r)=>{if(typeof n=="number"&&typeof r=="number")return n===r?0:nt(r,n)},Fu}var Iu,$p;function Lg(){if($p)return Iu;$p=1;const e=$g(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=Rg(),{safeRe:r,t:o}=s3(),s=a3(),{compareIdentifiers:a}=i3(),i=(c,l)=>{const d=l.split(".");if(d.length>c.length)return!1;for(let p=0;pt)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",l,d),this.options=d,this.loose=!!d.loose,this.includePrerelease=!!d.includePrerelease;const p=l.trim().match(d.loose?r[o.LOOSE]:r[o.FULL]);if(!p)throw new TypeError(`Invalid Version: ${l}`);if(this.raw=l,this.major=+p[1],this.minor=+p[2],this.patch=+p[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");p[4]?this.prerelease=p[4].split(".").map(h=>{if(/^[0-9]+$/.test(h)){const g=+h;if(g>=0&&gl.major?1:this.minorl.minor?1:this.patchl.patch?1:0}comparePre(l){if(l instanceof u||(l=new u(l,this.options)),this.prerelease.length&&!l.prerelease.length)return-1;if(!this.prerelease.length&&l.prerelease.length)return 1;if(!this.prerelease.length&&!l.prerelease.length)return 0;let d=0;do{const p=this.prerelease[d],h=l.prerelease[d];if(e("prerelease compare",d,p,h),p===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(p===void 0)return-1;if(p!==h)return a(p,h)}while(++d)}compareBuild(l){l instanceof u||(l=new u(l,this.options));let d=0;do{const p=this.build[d],h=l.build[d];if(e("build compare",d,p,h),p===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(p===void 0)return-1;if(p!==h)return a(p,h)}while(++d)}inc(l,d,p){if(l.startsWith("pre")){if(!d&&p===!1)throw new Error("invalid increment argument: identifier is empty");if(d){const h=`-${d}`.match(this.options.loose?r[o.PRERELEASELOOSE]:r[o.PRERELEASE]);if(!h||h[1]!==d)throw new Error(`invalid identifier: ${d}`)}}switch(l){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",d,p);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",d,p);break;case"prepatch":this.prerelease.length=0,this.inc("patch",d,p),this.inc("pre",d,p);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",d,p),this.inc("pre",d,p);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const h=Number(p)?1:0;if(this.prerelease.length===0)this.prerelease=[h];else{let g=this.prerelease.length;for(;--g>=0;)typeof this.prerelease[g]=="number"&&(this.prerelease[g]++,g=-2);if(g===-1){if(d===this.prerelease.join(".")&&p===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(h)}}if(d){let g=[d,h];if(p===!1&&(g=[d]),i(this.prerelease,d)){const f=this.prerelease[d.split(".").length];isNaN(f)&&(this.prerelease=g)}else this.prerelease=g}break}default:throw new Error(`invalid increment argument: ${l}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Iu=u,Iu}var Mu,Rp;function u3(){if(Rp)return Mu;Rp=1;const e=Lg();return Mu=(t,n)=>new e(t,n).major,Mu}var l3=u3();const Lp=Dc(l3);var ju,Fp;function c3(){if(Fp)return ju;Fp=1;const e=Lg();return ju=(t,n,r=!1)=>{if(t instanceof e)return t;try{return new e(t,n)}catch(o){if(!r)return null;throw o}},ju}var zu,Ip;function d3(){if(Ip)return zu;Ip=1;const e=c3();return zu=(t,n)=>{const r=e(t,n);return r?r.version:null},zu}var p3=d3();const h3=Dc(p3);class f3{bus;constructor(t){typeof t.getVersion!="function"||!h3(t.getVersion())?console.warn("Proxying an event bus with an unknown or invalid version"):Lp(t.getVersion())!==Lp(this.getVersion())&&console.warn("Proxying an event bus of version "+t.getVersion()+" with "+this.getVersion()),this.bus=t}getVersion(){return"3.3.3"}subscribe(t,n){this.bus.subscribe(t,n)}unsubscribe(t,n){this.bus.unsubscribe(t,n)}emit(t,...n){this.bus.emit(t,...n)}}class g3{handlers=new Map;getVersion(){return"3.3.3"}subscribe(t,n){this.handlers.set(t,(this.handlers.get(t)||[]).concat(n))}unsubscribe(t,n){this.handlers.set(t,(this.handlers.get(t)||[]).filter(r=>r!==n))}emit(t,...n){(this.handlers.get(t)||[]).forEach(r=>{try{r(n[0])}catch(o){console.error("could not invoke event listener",o)}})}}let ss=null;function Nc(){return ss!==null?ss:typeof window>"u"?new Proxy({},{get:()=>()=>console.error("Window not available, EventBus can not be established!")}):(window.OC?._eventBus&&typeof window._nc_event_bus>"u"&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),typeof window?._nc_event_bus<"u"?ss=new f3(window._nc_event_bus):ss=window._nc_event_bus=new g3,ss)}function Pc(e,t){Nc().subscribe(e,t)}function Fg(e,t){Nc().unsubscribe(e,t)}function Ar(e,...t){Nc().emit(e,...t)}class hi{static GLOBAL_SCOPE_VOLATILE="nextcloud_vol";static GLOBAL_SCOPE_PERSISTENT="nextcloud_per";scope;wrapped;constructor(t,n,r){this.scope=`${r?hi.GLOBAL_SCOPE_PERSISTENT:hi.GLOBAL_SCOPE_VOLATILE}_${btoa(t)}_`,this.wrapped=n}scopeKey(t){return`${this.scope}${t}`}setItem(t,n){this.wrapped.setItem(this.scopeKey(t),n)}getItem(t){return this.wrapped.getItem(this.scopeKey(t))}removeItem(t){this.wrapped.removeItem(this.scopeKey(t))}clear(){Object.keys(this.wrapped).filter(t=>t.startsWith(this.scope)).map(this.wrapped.removeItem.bind(this.wrapped))}}class m3{appId;persisted=!1;clearedOnLogout=!1;constructor(t){this.appId=t}persist(t=!0){return this.persisted=t,this}clearOnLogout(t=!0){return this.clearedOnLogout=t,this}build(){return new hi(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}function Ig(e){return new m3(e)}y3();function Mg(){return globalThis._nc_auth_requestToken?globalThis._nc_auth_requestToken:globalThis.document?document.head.dataset.requesttoken??null:null}function jg(e){if(!e||typeof e!="string")throw new Error("Invalid CSRF token given",{cause:{token:e}});globalThis._nc_auth_requestToken!==e&&(globalThis._nc_auth_requestToken=e,globalThis.document&&(document.head.dataset.requesttoken=e),Ar("csrf-token-update",{token:e,_internal:!0}))}async function v3(){const e=xr("/csrftoken"),t=await fetch(e);if(!t.ok)throw new Error("Could not fetch CSRF token from API",{cause:t});try{const{token:n}=await t.json();return jg(n),n}catch(n){throw new Error("Could not parse CSRF token from API response",{cause:n})}}function zg(e){const t=async({token:n})=>{try{e(n)}catch(r){console.error("Error updating CSRF token observer",r)}};return Pc("csrf-token-update",t),()=>Fg("csrf-token-update",t)}function y3(){Pc("csrf-token-update",({token:e,_internal:t})=>{t||jg(e)})}Ig("public").persist().build();let yo;function Mp(e,t){return e?e.getAttribute(t):null}function eu(){if(yo!==void 0)return yo;const e=document?.getElementsByTagName("head")[0];if(!e)return null;const t=Mp(e,"data-user");return t===null?(yo=null,yo):(yo={uid:t,displayName:Mp(e,"data-user-displayname"),isAdmin:!!window._oc_isadmin},yo)}function jp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2?n-2:0),o=2;o1?t-1:0),r=1;r"u"?null:dt(BigInt.prototype.toString),Wp=typeof Symbol>"u"?null:dt(Symbol.prototype.toString),Xt=dt(Object.prototype.hasOwnProperty),us=dt(Object.prototype.toString),Tt=dt(RegExp.prototype.test),fr=P3(TypeError);function dt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:ws;if(zp&&zp(e,null),!Bo(t))return e;let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const s=n(o);s!==o&&(A3(t)||(t[r]=s),o=s)}e[o]=!0}return e}function B3(e){for(let t=0;t/g),j3=xt(/\${[\w\W]*/g),z3=xt(/^data-[\-\w.\u00B7-\uFFFF]+$/),U3=xt(/^aria-[\-\w]+$/),Yp=xt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V3=xt(/^(?:\w+script|data):/i),H3=xt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G3=xt(/^html$/i),W3=xt(/^[a-z][.\w]*(-[.\w]+)+$/i),Jp=xt(/<[/\w!]/g),Qp=xt(/<[/\w]/g),q3=xt(/<\/no(script|embed|frames)/i),K3=xt(/\/>/i),Qt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Hg=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],X3=ht($e({},Hg)),Z3=(function(){const e={};return Wr(Hg,t=>{e[t]=xt(new RegExp("])","i"))}),ht(e)})(),Y3=function(){return typeof window>"u"?null:window},J3=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},eh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},gr=function(e,t,n,r){return Xt(e,t)&&Bo(e[t])?$e(r.base?tn(r.base):{},e[t],r.transform):n},qu=function(e,t,n){const r=Xt(e,t)?e[t]:void 0;return r&&typeof r=="object"?tn(r):n()};function Gg(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Y3();const t=w=>Gg(w);if(t.version="3.4.16",t.removed=[],!e||!e.document||e.document.nodeType!==Qt.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,o=r.currentScript;e.DocumentFragment;const s=e.HTMLTemplateElement,a=e.Node,i=e.Element,u=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const c=e.DOMParser,l=e.trustedTypes,d=i.prototype,p=un(d,"cloneNode"),h=un(d,"remove"),g=un(d,"removeAttributeNode"),f=un(d,"nextSibling"),m=un(d,"childNodes"),y=un(d,"parentNode"),v=un(d,"shadowRoot"),E=un(d,"attributes"),C=a&&a.prototype?un(a.prototype,"nodeType"):null,_=a&&a.prototype?un(a.prototype,"nodeName"):null,D=a&&a.prototype?un(a.prototype,"ownerDocument"):null,R=function(w){return C?C(w):w.nodeType},Z=function(w){return _?_(w):w.nodeName};if(typeof s=="function"){const w=n.createElement("template");w.content&&w.content.ownerDocument&&(n=w.content.ownerDocument)}let I,P="",oe,O=!1,S=0;const G=function(){if(S>0)throw fr('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ne=function(w){G(),S++;try{return I.createHTML(w)}finally{S--}},Q=function(w){G(),S++;try{return I.createScriptURL(w)}finally{S--}},Y=function(){return O||(oe=J3(l,o),O=!0),oe},ee=n,J=ee.implementation,te=ee.createNodeIterator,re=ee.createDocumentFragment,me=ee.getElementsByTagName,_e=r.importNode;let we=eh();t.isSupported=typeof Ug=="function"&&typeof y=="function"&&J&&J.createHTMLDocument!==void 0;const Se=I3,Fe=M3,A=j3,B=z3,L=U3,z=V3,b=H3,x=W3;let k=Yp,N=null;const U=$e({},[...qp,...Vu,...Hu,...Gu,...Kp]);let M=null;const q=$e({},[...Xp,...Wu,...Zp,...Ba]);let V=Object.seal(Ao(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),K=null,W=null;const ce=Object.seal(Ao(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let de=!0,fe=!0,ve=!1,ke=!0,Te=!1,Ne=!0,Ge=!1,ot=!1,Ft=null,It=null,jn=!1,zn=!1,yt=!1,Mt=!1,Xo=!0,Zo=!1;const ld="user-content-";let lu=!0,cu=!1,co={},po=null;const cd=$e({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let dd=null;const pd=$e({},["audio","video","img","source","image","track"]);let hd=null;const fd=$e({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ba="http://www.w3.org/1998/Math/MathML",Ea="http://www.w3.org/2000/svg",kn="http://www.w3.org/1999/xhtml";let ho=kn,du=!1,pu=null;const Zv=$e({},[ba,Ea,kn],Uu),gd=ht(["mi","mo","mn","ms","mtext"]);let hu=$e({},gd);const md=ht(["annotation-xml"]);let fu=$e({},md);const Yv=$e({},["title","style","font","a","script"]);let Yo=null;const Jv=["application/xhtml+xml","text/html"],Qv="text/html";let st=null,fo=null;const e1=n.createElement("form"),vd=function(w){return w instanceof RegExp||w instanceof Function},gu=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(fo&&fo===w)return;(!w||typeof w!="object")&&(w={}),w=tn(w),Yo=Jv.indexOf(w.PARSER_MEDIA_TYPE)===-1?Qv:w.PARSER_MEDIA_TYPE,st=Yo==="application/xhtml+xml"?Uu:ws,N=gr(w,"ALLOWED_TAGS",U,{transform:st}),M=gr(w,"ALLOWED_ATTR",q,{transform:st}),pu=gr(w,"ALLOWED_NAMESPACES",Zv,{transform:Uu}),hd=gr(w,"ADD_URI_SAFE_ATTR",fd,{transform:st,base:fd}),dd=gr(w,"ADD_DATA_URI_TAGS",pd,{transform:st,base:pd}),po=gr(w,"FORBID_CONTENTS",cd,{transform:st}),K=gr(w,"FORBID_TAGS",tn({}),{transform:st}),W=gr(w,"FORBID_ATTR",tn({}),{transform:st}),co=Xt(w,"USE_PROFILES")?w.USE_PROFILES&&typeof w.USE_PROFILES=="object"?tn(w.USE_PROFILES):w.USE_PROFILES:!1,de=w.ALLOW_ARIA_ATTR!==!1,fe=w.ALLOW_DATA_ATTR!==!1,ve=w.ALLOW_UNKNOWN_PROTOCOLS||!1,ke=w.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Te=w.SAFE_FOR_TEMPLATES||!1,Ne=w.SAFE_FOR_XML!==!1,Ge=w.WHOLE_DOCUMENT||!1,zn=w.RETURN_DOM||!1,yt=w.RETURN_DOM_FRAGMENT||!1,Mt=w.RETURN_TRUSTED_TYPE||!1,jn=w.FORCE_BODY||!1,Xo=w.SANITIZE_DOM!==!1,Zo=w.SANITIZE_NAMED_PROPS||!1,lu=w.KEEP_CONTENT!==!1,cu=w.IN_PLACE||!1,k=R3(w.ALLOWED_URI_REGEXP)?w.ALLOWED_URI_REGEXP:Yp,ho=typeof w.NAMESPACE=="string"?w.NAMESPACE:kn,hu=qu(w,"MATHML_TEXT_INTEGRATION_POINTS",()=>$e({},gd)),fu=qu(w,"HTML_INTEGRATION_POINTS",()=>$e({},md));const F=qu(w,"CUSTOM_ELEMENT_HANDLING",()=>Ao(null));if(V=Ao(null),Xt(F,"tagNameCheck")&&vd(F.tagNameCheck)&&(V.tagNameCheck=F.tagNameCheck),Xt(F,"attributeNameCheck")&&vd(F.attributeNameCheck)&&(V.attributeNameCheck=F.attributeNameCheck),Xt(F,"allowCustomizedBuiltInElements")&&typeof F.allowCustomizedBuiltInElements=="boolean"&&(V.allowCustomizedBuiltInElements=F.allowCustomizedBuiltInElements),xt(V),Te&&(fe=!1),yt&&(zn=!0),co&&(N=$e({},Kp),M=Ao(null),co.html===!0&&($e(N,qp),$e(M,Xp)),co.svg===!0&&($e(N,Vu),$e(M,Wu),$e(M,Ba)),co.svgFilters===!0&&($e(N,Hu),$e(M,Wu),$e(M,Ba)),co.mathMl===!0&&($e(N,Gu),$e(M,Zp),$e(M,Ba))),ce.tagCheck=null,ce.attributeCheck=null,Xt(w,"ADD_TAGS")&&(typeof w.ADD_TAGS=="function"?ce.tagCheck=w.ADD_TAGS:Bo(w.ADD_TAGS)&&(N===U&&(N=tn(N)),$e(N,w.ADD_TAGS,st))),Xt(w,"ADD_ATTR")&&(typeof w.ADD_ATTR=="function"?ce.attributeCheck=w.ADD_ATTR:Bo(w.ADD_ATTR)&&(M===q&&(M=tn(M)),$e(M,w.ADD_ATTR,st))),Xt(w,"ADD_FORBID_CONTENTS")&&Bo(w.ADD_FORBID_CONTENTS)&&(po===cd&&(po=tn(po)),$e(po,w.ADD_FORBID_CONTENTS,st)),lu&&(N["#text"]=!0),Ge&&$e(N,["html","head","body"]),N.table&&($e(N,["tbody"]),delete K.tbody),w.TRUSTED_TYPES_POLICY){if(typeof w.TRUSTED_TYPES_POLICY.createHTML!="function")throw fr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof w.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw fr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const H=I;I=w.TRUSTED_TYPES_POLICY;try{P=ne("")}catch(ae){throw I=H,ae}}else w.TRUSTED_TYPES_POLICY===null?(I=void 0,P=""):(I===void 0&&(I=Y()),I&&typeof P=="string"&&(P=ne("")));ht&&ht(w),fo=w},yd=$e({},[...Vu,...Hu,...L3]),bd=$e({},[...Gu,...F3]),t1=function(w,F,H){return F.namespaceURI===kn?w==="svg":F.namespaceURI===ba?w==="svg"&&(H==="annotation-xml"||hu[H]):!!yd[w]},n1=function(w,F,H){return F.namespaceURI===kn?w==="math":F.namespaceURI===Ea?w==="math"&&fu[H]:!!bd[w]},r1=function(w,F,H){return F.namespaceURI===Ea&&!fu[H]||F.namespaceURI===ba&&!hu[H]?!1:!bd[w]&&(Yv[w]||!yd[w])},o1=function(w){let F=y(w);(!F||!F.tagName)&&(F={namespaceURI:ho,tagName:"template"});const H=ws(w.tagName),ae=ws(F.tagName);return pu[w.namespaceURI]?w.namespaceURI===Ea?t1(H,F,ae):w.namespaceURI===ba?n1(H,F,ae):w.namespaceURI===kn?r1(H,F,ae):!!(Yo==="application/xhtml+xml"&&pu[w.namespaceURI]):!1},Lr=function(w){as(t.removed,{element:w});try{y(w).removeChild(w)}catch{if(h(w),!y(w))throw fr("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ed=function(w,F,H){try{g(w,F)}catch{try{w.removeAttribute(H)}catch{}}},wa=function(w){Ca(w);const F=m(w);if(F){const ae=[];Wr(F,Ee=>{as(ae,Ee)}),Wr(ae,Ee=>{try{h(Ee)}catch{}})}const H=E(w);if(H)for(let ae=H.length-1;ae>=0;--ae){const Ee=H[ae],Oe=Ee&&Ee.name;typeof Oe=="string"&&Ed(w,Ee,Oe)}},Fr=function(w,F,H){if(!H)try{H=F.getAttributeNode(w)}catch{H=null}as(t.removed,{attribute:H||null,from:F});try{H?g(F,H):F.removeAttribute(w)}catch{try{F.removeAttribute(w)}catch{}}if(w==="is")if(zn||yt)try{Lr(F)}catch{}else try{F.setAttribute(w,"")}catch{}},s1=function(w){const F=E(w);if(F)for(let H=F.length-1;H>=0;--H){const ae=F[H],Ee=ae&&ae.name;typeof Ee!="string"||M[st(Ee)]||Ed(w,ae,Ee)}},Ca=function(w){const F=[w];for(;F.length>0;){const H=F.pop();R(H)===Qt.element&&s1(H);const ae=m(H);if(ae)for(let Ee=ae.length-1;Ee>=0;--Ee)F.push(ae[Ee])}},wd=function(w,F){return Ne?w==="patchsrc"?!0:w==="for"&&F!=="label"&&F!=="output":!1},a1=function(w){if(!Ne)return;const F=[w];for(;F.length>0;){const H=F.pop(),ae=R(H);if(ae===Qt.processingInstruction||ae===Qt.comment&&Tt(Qp,H.data)){try{h(H)}catch{}continue}if(ae===Qt.element){const Oe=H,De=st(Z(H));try{Oe.hasAttribute&&Oe.hasAttribute("patchsrc")&&Oe.removeAttribute("patchsrc"),Oe.hasAttribute&&Oe.hasAttribute("for")&&wd("for",De)&&Oe.removeAttribute("for")}catch{}}const Ee=m(H);if(Ee)for(let Oe=Ee.length-1;Oe>=0;--Oe)F.push(Ee[Oe])}},Cd=function(w){let F=null,H=null;if(jn)w=""+w;else{const Oe=Vp(w,/^[\r\n\t ]+/);H=Oe&&Oe[0]}Yo==="application/xhtml+xml"&&ho===kn&&(w=''+w+"");const ae=I?ne(w):w;if(ho===kn)try{F=new c().parseFromString(ae,Yo)}catch{}if(!F||!F.documentElement){F=J.createDocument(ho,"template",null);try{F.documentElement.innerHTML=du?P:ae}catch{}}const Ee=F.body||F.documentElement;return w&&H&&Ee.insertBefore(n.createTextNode(H),Ee.childNodes[0]||null),ho===kn?me.call(F,Ge?"html":"body")[0]:Ge?F.documentElement:Ee},xd=function(w){const F=D?D(w):w.ownerDocument;return te.call(F||w,w,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},xa=function(w){return w=is(w,Se," "),w=is(w,Fe," "),w=is(w,A," "),w},mu=function(w){var F;w.normalize();const H=D?D(w):w.ownerDocument,ae=te.call(H||w,w,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let Ee=ae.nextNode();for(;Ee;)Ee.data=xa(Ee.data),Ee=ae.nextNode();const Oe=(F=w.querySelectorAll)===null||F===void 0?void 0:F.call(w,"template");Oe&&Wr(Oe,De=>{go(De.content)&&mu(De.content)})},Aa=function(w){const F=_?_(w):null;return typeof F!="string"||st(F)!=="form"?!1:typeof w.nodeName!="string"||typeof w.textContent!="string"||typeof w.removeChild!="function"||w.attributes!==E(w)||typeof w.removeAttribute!="function"||typeof w.removeAttributeNode!="function"||typeof w.getAttributeNode!="function"||typeof w.setAttribute!="function"||typeof w.namespaceURI!="string"||typeof w.insertBefore!="function"||typeof w.hasChildNodes!="function"||w.nodeType!==C(w)||w.childNodes!==m(w)},go=function(w){if(!C||typeof w!="object"||w===null)return!1;try{return C(w)===Qt.documentFragment}catch{return!1}},Jo=function(w){if(!C||typeof w!="object"||w===null)return!1;try{return typeof C(w)=="number"}catch{return!1}};function Tn(w,F,H){w.length!==0&&Wr(w,ae=>{ae.call(t,F,H,fo)})}const i1=function(w,F){return!!(Ne&&w.hasChildNodes()&&!Jo(w.firstElementChild)&&Tt(Jp,w.textContent)&&Tt(Jp,w.innerHTML)||Ne&&w.namespaceURI===kn&&X3[F]&&(Jo(w.firstElementChild)||typeof w.textContent=="string"&&Tt(Z3[F],w.textContent))||w.nodeType===Qt.processingInstruction||Ne&&w.nodeType===Qt.comment&&Tt(Qp,w.data))},_a=function(w,F){if(w instanceof RegExp)return Tt(w,F);if(w instanceof Function){for(var H=arguments.length,ae=new Array(H>2?H-2:0),Ee=2;Ee=0;--De){const bt=w===H?p(Ee[De],!0):Ee[De];ae.insertBefore(bt,f(w))}}}return Lr(w),!0},Ad=function(w,F,H,ae){return w.length===0?F:F===H||F===ae?tn(F):F},mo=function(w,F){return w===F||y(w)!==null?!1:(cu&&Ca(w),!0)},_d=function(w,F){if(Tn(we.beforeSanitizeElements,w,null),mo(w,F))return!0;if(Aa(w))return Lr(w),!0;const H=st(Z(w));if(N=Ad(we.uponSanitizeElement,N,U,Ft),Tn(we.uponSanitizeElement,w,{tagName:H,allowedTags:N}),mo(w,F))return!0;if(i1(w,H))return Lr(w),!0;if(K[H]||!(ce.tagCheck instanceof Function&&ce.tagCheck(H))&&!N[H]){const ae=u1(w,H,F);return ae===!1&&(Tn(we.afterSanitizeElements,w,null),mo(w,F))?!0:ae}if(R(w)===Qt.element&&!o1(w)||(H==="noscript"||H==="noembed"||H==="noframes")&&Tt(q3,w.innerHTML))return Lr(w),!0;if(Te&&w.nodeType===Qt.text){const ae=xa(w.textContent);w.textContent!==ae&&(as(t.removed,{element:w.cloneNode()}),w.textContent=ae)}return Tn(we.afterSanitizeElements,w,null),mo(w,F)},Sd=function(w,F,H){if(W[F]||wd(F,w)||Xo&&(F==="id"||F==="name")&&(H in n||H in e1))return!1;const ae=M[F]||ce.attributeCheck instanceof Function&&ce.attributeCheck(F,w);return fe&&Tt(B,F)||de&&Tt(L,F)?!0:ae?hd[F]||Tt(k,is(H,b,""))||(F==="src"||F==="xlink:href"||F==="href")&&w!=="script"&&Hp(H,"data:")===0&&dd[w]||ve&&!Tt(z,is(H,b,""))?!0:!H:kd(w)&&_a(V.tagNameCheck,w)&&_a(V.attributeNameCheck,F,w)||F==="is"&&V.allowCustomizedBuiltInElements&&_a(V.tagNameCheck,H)},l1=$e({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),kd=function(w){return!l1[ws(w)]&&Tt(x,w)},c1=function(w,F,H,ae){if(I&&typeof l=="object"&&typeof l.getAttributeType=="function"&&!H)switch(l.getAttributeType(w,F)){case"TrustedHTML":return ne(ae);case"TrustedScriptURL":return Q(ae)}return ae},d1=function(w,F,H,ae){try{return H?w.setAttributeNS(H,F,ae):w.setAttribute(F,ae),Aa(w)?(Lr(w),!1):!0}catch{return Fr(F,w),!1}},Td=function(w,F){if(Tn(we.beforeSanitizeAttributes,w,null),mo(w,F))return;const H=w.attributes;if(!H||Aa(w))return;M=Ad(we.uponSanitizeAttribute,M,q,It);const ae={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:M,forceKeepAttr:void 0};let Ee=H.length;const Oe=st(w.nodeName);for(;Ee--;){const De=H[Ee],bt=De.name,Un=De.namespaceURI,vn=De.value,Et=st(bt),yu=vn;let jt=bt==="value"?yu:O3(yu),Od=!1;if(ae.attrName=Et,ae.attrValue=jt,ae.keepAttr=!0,ae.forceKeepAttr=void 0,Tn(we.uponSanitizeAttribute,w,ae),jt=ae.attrValue,Zo&&(Et==="id"||Et==="name")&&Hp(jt,ld)!==0&&(Fr(bt,w,De),jt=ld+jt,Od=!0),Ne&&Tt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,jt)){Fr(bt,w,De);continue}if(Et==="attributename"&&Vp(jt,"href")){Fr(bt,w,De);continue}if(!ae.forceKeepAttr){if(!ae.keepAttr){Fr(bt,w,De);continue}if(!ke&&Tt(K3,jt)){Fr(bt,w,De);continue}if(Te&&(jt=xa(jt)),!Sd(Oe,Et,jt)){Fr(bt,w,De);continue}jt=c1(Oe,Et,Un,jt),jt!==yu&&d1(w,bt,Un,jt)&&Od&&Up(t.removed)}}Tn(we.afterSanitizeAttributes,w,null),mo(w,F)},Sa=function(w){let F=null;const H=xd(w);for(Tn(we.beforeSanitizeShadowDOM,w,null);F=H.nextNode();)if(Tn(we.uponSanitizeShadowNode,F,null),_d(F,w),Td(F,w),go(F.content)&&Sa(F.content),R(F)===Qt.element){const ae=v(F);go(ae)&&(vu(ae),Sa(ae))}Tn(we.afterSanitizeShadowDOM,w,null)},vu=function(w){const F=[{node:w,shadow:null}];for(;F.length>0;){const H=F.pop();if(H.shadow){Sa(H.shadow);continue}const ae=H.node,Ee=R(ae)===Qt.element,Oe=m(ae);if(Oe)for(let De=Oe.length-1;De>=0;--De)F.push({node:Oe[De],shadow:null});if(Ee){const De=_?_(ae):null;if(typeof De=="string"&&st(De)==="template"){const bt=ae.content;go(bt)&&F.push({node:bt,shadow:null})}}if(Ee){const De=v(ae);go(De)&&F.push({node:null,shadow:De},{node:De,shadow:null})}}};return t.sanitize=function(w){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},H=null,ae=null,Ee=null,Oe=null;if(du=!w,du&&(w=""),typeof w!="string"&&!Jo(w)&&(w=$3(w),typeof w!="string"))throw fr("dirty is not a string, aborting");if(!t.isSupported)return w;ot?(N=Ft,M=It):gu(F),(we.uponSanitizeElement.length>0||we.uponSanitizeAttribute.length>0)&&(N=tn(N)),we.uponSanitizeAttribute.length>0&&(M=tn(M)),t.removed=[];const De=cu&&typeof w!="string"&&Jo(w);if(De){a1(w);const vn=Z(w);if(typeof vn=="string"){const Et=st(vn);if(!N[Et]||K[Et])throw wa(w),fr("root node is forbidden and cannot be sanitized in-place")}if(Aa(w))throw wa(w),fr("root node is clobbered and cannot be sanitized in-place");try{vu(w)}catch(Et){throw wa(w),Et}}else if(Jo(w))H=Cd(""),ae=H.ownerDocument.importNode(w,!0),ae.nodeType===Qt.element&&ae.nodeName==="BODY"||ae.nodeName==="HTML"?H=ae:H.appendChild(ae),vu(H);else{if(!zn&&!Te&&!Ge&&w.indexOf("<")===-1)return I&&Mt?ne(w):w;if(H=Cd(w),!H)return zn?null:Mt?P:""}H&&jn&&Lr(H.firstChild);const bt=De?w:H;try{const vn=xd(bt);for(;Ee=vn.nextNode();)_d(Ee,bt),Td(Ee,bt),go(Ee.content)&&Sa(Ee.content)}catch(vn){throw De&&(wa(w),Wr(t.removed,Et=>{Et.element&&Ca(Et.element)})),vn}if(De){let vn=!1;if(Wr(t.removed,Et=>{Et.element&&(Et.element===w&&(vn=!0),Ca(Et.element))}),vn)throw fr("a node selected for removal could not be safely returned; refusing to sanitize in place");return Te&&mu(w),w}if(zn){if(Te&&mu(H),yt)for(Oe=re.call(H.ownerDocument);H.firstChild;)Oe.appendChild(H.firstChild);else Oe=H;return(M.shadowroot||M.shadowrootmode)&&(Oe=_e.call(r,Oe,!0)),Oe}let Un=Ge?H.outerHTML:H.innerHTML;return Ge&&N["!doctype"]&&H.ownerDocument&&H.ownerDocument.doctype&&H.ownerDocument.doctype.name&&Tt(G3,H.ownerDocument.doctype.name)&&(Un=" -`+Un),Te&&(Un=xa(Un)),I&&Mt?ne(Un):Un},t.setConfig=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};gu(w),ot=!0,Ft=N,It=M},t.clearConfig=function(){fo=null,ot=!1,Ft=null,It=null,I=oe,P=""},t.isValidAttribute=function(w,F,H){fo||gu({});const ae=st(w),Ee=st(F);return Sd(ae,Ee,H)},t.addHook=function(w,F){typeof F=="function"&&Xt(we,w)&&as(we[w],F)},t.removeHook=function(w,F){if(Xt(we,w)){if(F!==void 0){const H=k3(we[w],F);return H===-1?void 0:T3(we[w],H,1)[0]}return Up(we[w])}},t.removeHooks=function(w){Xt(we,w)&&(we[w]=[])},t.removeAllHooks=function(){we=eh()},t}var Wg=Gg(),Ku,th;function Q3(){if(th)return Ku;th=1;var e=/["'&<>]/;Ku=t;function t(n){var r=""+n,o=e.exec(r);if(!o)return r;var s,a="",i=0,u=0;for(i=o.index;it)}}globalThis._oc_l10n_registry_translations??={},globalThis._oc_l10n_registry_plural_functions??={};function Ue(e,t,n,r,o){const s=typeof n=="object"?n:void 0,a=typeof r=="number"?r:typeof n=="number"?n:void 0,i={escape:!0,sanitize:!0,...typeof o=="object"?o:typeof r=="object"?r:{}},u=g=>g,c=(i.sanitize?Wg.sanitize:u)||u,l=i.escape?nh:u,d=g=>typeof g=="string"||typeof g=="number",p=(g,f,m)=>g.replace(/%n/g,""+m).replace(/{([^{}]*)}/g,(y,v)=>{if(f===void 0||!(v in f))return l(y);const E=f[v];return d(E)?l(`${E}`):typeof E=="object"&&d(E.value)?(E.escape!==!1?nh:u)(`${E.value}`):l(y)});let h=(o?.bundle??qg(e)).translations[t]||t;return h=Array.isArray(h)?h[0]:h,c(typeof s=="object"||a!==void 0?p(h,s,a):h)}function rE(e,t,n,r,o,s){const a="_"+t+"_::_"+n+"_",i=s?.bundle??qg(e),u=i.translations[a];if(typeof u<"u"){const c=u;if(Array.isArray(c)){const l=i.pluralFunction(r);return Ue(e,c[l],o,r,s)}}return r===1?Ue(e,t,o,r,s):Ue(e,n,o,r,s)}function oE(e,t=_r()){switch(t==="pt-BR"&&(t="xbr"),t.length>3&&(t=t.substring(0,t.lastIndexOf("-"))),t){case"az":case"bo":case"dz":case"id":case"ja":case"jv":case"ka":case"km":case"kn":case"ko":case"ms":case"th":case"tr":case"vi":case"zh":return 0;case"af":case"bn":case"bg":case"ca":case"da":case"de":case"el":case"en":case"eo":case"es":case"et":case"eu":case"fa":case"fi":case"fo":case"fur":case"fy":case"gl":case"gu":case"ha":case"he":case"hu":case"is":case"it":case"ku":case"lb":case"ml":case"mn":case"mr":case"nah":case"nb":case"ne":case"nl":case"nn":case"no":case"oc":case"om":case"or":case"pa":case"pap":case"ps":case"pt":case"so":case"sq":case"sv":case"sw":case"ta":case"te":case"tk":case"ur":case"zu":return e===1?0:1;case"am":case"bh":case"fil":case"fr":case"gun":case"hi":case"hy":case"ln":case"mg":case"nso":case"xbr":case"ti":case"wa":return e===0||e===1?0:1;case"be":case"bs":case"hr":case"ru":case"sh":case"sr":case"uk":return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2;case"cs":case"sk":return e===1?0:e>=2&&e<=4?1:2;case"ga":return e===1?0:e===2?1:2;case"lt":return e%10===1&&e%100!==11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2;case"sl":return e%100===1?0:e%100===2?1:e%100===3||e%100===4?2:3;case"mk":return e%10===1?0:1;case"mt":return e===1?0:e===0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3;case"lv":return e===0?0:e%10===1&&e%100!==11?1:2;case"pl":return e===1?0:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?1:2;case"cy":return e===1?0:e===2?1:e===8||e===11?2:3;case"ro":return e===1?0:e===0||e%100>0&&e%100<20?1:2;case"ar":return e===0?0:e===1?1:e===2?2:e%100>=3&&e%100<=10?3:e%100>=11&&e%100<=99?4:5;default:return 0}}function sE(e=Date.now(),t={}){const n={ignoreSeconds:!1,language:_r(),relativeTime:"long",...t},r=new Date(e),o=new Intl.RelativeTimeFormat([n.language,_r()],{numeric:"auto",style:n.relativeTime}),s=(r.getTime()-Date.now())/1e3;if(Math.abs(s)<59.5)return n.ignoreSeconds||o.format(Math.round(s),"second");const a=s/60;if(Math.abs(a)<=59)return o.format(Math.round(a),"minute");const i=a/60;if(Math.abs(i)<23.5)return o.format(Math.round(i),"hour");const u=i/24;if(Math.abs(u)<6.5)return o.format(Math.round(u),"day");if(Math.abs(u)<27.5){const d=u/7;return o.format(Math.round(d),"week")}const c=u/30,l=Math.abs(c)<11?{month:n.relativeTime,day:"numeric"}:{year:n.relativeTime==="narrow"?"2-digit":"numeric",month:n.relativeTime};return new Intl.DateTimeFormat([n.language,_r()],l).format(r)}function Ho(e,t,n){const r=`#initial-state-${e}-${t}`;if(window._nc_initial_state?.has(r))return window._nc_initial_state.get(r);window._nc_initial_state||(window._nc_initial_state=new Map);const o=document.querySelector(r);if(o===null){if(n!==void 0)return n;throw new Error(`Could not find initial state ${t} of ${e}`)}try{const s=JSON.parse(atob(o.value));return window._nc_initial_state.set(r,s),s}catch(s){if(console.error("[@nextcloud/initial-state] Could not parse initial state",{key:t,app:e,error:s}),n!==void 0)return n;throw new Error(`Could not parse initial state ${t} of ${e}`,{cause:s})}}function aE(){try{return Ho("core","capabilities")}catch{return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}function Ys(e,t){return J0()?(T1(e,t),!0):!1}const Ul=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const iE=e=>e!=null,uE=Object.prototype.toString,lE=e=>uE.call(e)==="[object Object]",cE=()=>{};function Ns(e){return Array.isArray(e)?e:[e]}function dE(e){return Mn()}function pE(e,t=!0,n){dE()?Sn(e,n):t?e():Cn(e)}function hE(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n;let s=null;const a=ir(!1);function i(){s&&(clearInterval(s),s=null)}function u(){a.value=!1,i()}function c(){const l=Bt(t);l<=0||(a.value=!0,o&&e(),i(),a.value&&(s=setInterval(e,l)))}return r&&Ul&&c(),(lt(t)||typeof t=="function")&&Ys(et(t,()=>{a.value&&Ul&&c()})),Ys(u),{isActive:q1(a),pause:u,resume:c}}function fE(e,t,n){return et(e,t,{...n,immediate:!0})}const Rr=Ul?window:void 0;function Ln(e){var t;const n=Bt(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Sr(...e){const t=(r,o,s,a)=>(r.addEventListener(o,s,a),()=>r.removeEventListener(o,s,a)),n=se(()=>{const r=Ns(Bt(e[0])).filter(o=>o!=null);return r.every(o=>typeof o!="string")?r:void 0});return fE(()=>{var r,o;return[(r=(o=n.value)===null||o===void 0?void 0:o.map(s=>Ln(s)))!==null&&r!==void 0?r:[Rr].filter(s=>s!=null),Ns(Bt(n.value?e[1]:e[0])),Ns(j(n.value?e[2]:e[1])),Bt(n.value?e[3]:e[2])]},([r,o,s,a],i,u)=>{if(!r?.length||!o?.length||!s?.length)return;const c=lE(a)?{...a}:a,l=r.flatMap(d=>o.flatMap(p=>s.map(h=>t(d,p,h,c))));u(()=>{l.forEach(d=>d())})},{flush:"post"})}function gE(){const e=ir(!1),t=Mn();return t&&Sn(()=>{e.value=!0},t),e}function Kg(e){const t=gE();return se(()=>(t.value,!!e()))}function mE(e,t,n={}){const{window:r=Rr,...o}=n;let s;const a=Kg(()=>r&&"MutationObserver"in r),i=()=>{s&&(s.disconnect(),s=void 0)},u=et(se(()=>{const d=Ns(Bt(e)).map(Ln).filter(iE);return new Set(d)}),d=>{i(),a.value&&d.size&&(s=new MutationObserver(t),d.forEach(p=>s.observe(p,o)))},{immediate:!0,flush:"post"}),c=()=>s?.takeRecords(),l=()=>{u(),i()};return Ys(l),{isSupported:a,stop:l,takeRecords:c}}function vE(e,t,n={}){const{window:r=Rr,document:o=r?.document,flush:s="sync"}=n;if(!r||!o)return cE;let a;const i=l=>{a?.(),a=l},u=Gi(()=>{const l=Ln(e);if(l){const{stop:d}=mE(o,p=>{p.map(h=>[...h.removedNodes]).flat().some(h=>h===l||h.contains(l))&&t(p)},{window:r,childList:!0,subtree:!0});i(d)}},{flush:s}),c=()=>{u(),i()};return Ys(c),c}function yE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function rh(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=Rr,eventName:s="keydown",passive:a=!1,dedupe:i=!1}=r,u=yE(t);return Sr(o,s,c=>{c.repeat&&Bt(i)||u(c)&&n(c)},a)}function bE(e={}){var t;const{window:n=Rr,deep:r=!0,triggerOnRemoval:o=!1}=e,s=(t=e.document)!==null&&t!==void 0?t:n?.document,a=()=>{let c=s?.activeElement;if(r)for(var l;c?.shadowRoot;)c=c==null||(l=c.shadowRoot)===null||l===void 0?void 0:l.activeElement;return c},i=ir(),u=()=>{i.value=a()};if(n){const c={capture:!0,passive:!0};Sr(n,"blur",l=>{l.relatedTarget===null&&u()},c),Sr(n,"focus",u,c)}return o&&vE(i,u,{document:s}),u(),i}function EE(e,t,n={}){const{window:r=Rr,...o}=n;let s;const a=Kg(()=>r&&"ResizeObserver"in r),i=()=>{s&&(s.disconnect(),s=void 0)},u=et(se(()=>{const l=Bt(e);return Array.isArray(l)?l.map(d=>Ln(d)):[Ln(l)]}),l=>{if(i(),a.value&&r){s=new ResizeObserver(t);for(const d of l)d&&s.observe(d,o)}},{immediate:!0,flush:"post"}),c=()=>{i(),u()};return Ys(c),{isSupported:a,stop:c}}function wE(e,t={width:0,height:0},n={}){const{window:r=Rr,box:o="content-box"}=n,s=se(()=>{var d;return(d=Ln(e))===null||d===void 0||(d=d.namespaceURI)===null||d===void 0?void 0:d.includes("svg")}),a=ir(t.width),i=ir(t.height),{stop:u}=EE(e,([d])=>{const p=o==="border-box"?d.borderBoxSize:o==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(r&&s.value){const h=Ln(e);if(h){const g=h.getBoundingClientRect();a.value=g.width,i.value=g.height}}else if(p){const h=Ns(p);a.value=h.reduce((g,{inlineSize:f})=>g+f,0),i.value=h.reduce((g,{blockSize:f})=>g+f,0)}else a.value=d.contentRect.width,i.value=d.contentRect.height},n);pE(()=>{const d=Ln(e);d&&(a.value="offsetWidth"in d?d.offsetWidth:t.width,i.value="offsetHeight"in d?d.offsetHeight:t.height)});const c=et(()=>Ln(e),d=>{a.value=d?t.width:0,i.value=d?t.height:0});function l(){u(),c()}return{width:a,height:i,stop:l}}const CE="focusin",xE="focusout",AE=":focus-within";function _E(e,t={}){const{window:n=Rr}=t,r=se(()=>Ln(e)),o=ir(!1),s=se(()=>o.value);if(!n||!bE(t).value)return{focused:s};const a={passive:!0};return Sr(r,CE,()=>o.value=!0,a),Sr(r,xE,()=>{var i,u,c;return o.value=(i=(u=r.value)===null||u===void 0||(c=u.matches)===null||c===void 0?void 0:c.call(u,AE))!==null&&i!==void 0?i:!1},a),{focused:s}}function Xg(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:o,onSwipeStart:s,passive:a=!0}=t,i=Fo({x:0,y:0}),u=Fo({x:0,y:0}),c=se(()=>i.x-u.x),l=se(()=>i.y-u.y),{max:d,abs:p}=Math,h=se(()=>d(p(c.value),p(l.value))>=n),g=ir(!1),f=se(()=>h.value?p(c.value)>p(l.value)?c.value>0?"left":"right":l.value>0?"up":"down":"none"),m=D=>[D.touches[0].clientX,D.touches[0].clientY],y=(D,R)=>{i.x=D,i.y=R},v=(D,R)=>{u.x=D,u.y=R},E={passive:a,capture:!a},C=D=>{g.value&&o?.(D,f.value),g.value=!1},_=[Sr(e,"touchstart",D=>{if(D.touches.length!==1)return;const[R,Z]=m(D);y(R,Z),v(R,Z),s?.(D)},E),Sr(e,"touchmove",D=>{if(D.touches.length!==1)return;const[R,Z]=m(D);v(R,Z),E.capture&&!E.passive&&Math.abs(c.value)>Math.abs(l.value)&&D.preventDefault(),!g.value&&h.value&&(g.value=!0),g.value&&r?.(D)},E),Sr(e,["touchend","touchcancel"],C,E)];return{isSwiping:g,direction:f,coordsStart:i,coordsEnd:u,lengthX:c,lengthY:l,stop:()=>_.forEach(D=>D())}}const SE={__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:t}){const n=t,r=e,o=Zi(),s=Ae([]),a=se(()=>s.value.reduce((A,B)=>(A[~~B.id]=B)&&A,{})),i=se(()=>s.value.length),u=Ae(null),c=Ae(!1),l=Ae({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),d=Ae({splitter:null,timeoutId:null}),p=se(()=>({[`splitpanes splitpanes--${r.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":l.value.dragging})),h=()=>{document.addEventListener("mousemove",m,{passive:!1}),document.addEventListener("mouseup",y),"ontouchstart"in window&&(document.addEventListener("touchmove",m,{passive:!1}),document.addEventListener("touchend",y))},g=()=>{document.removeEventListener("mousemove",m,{passive:!1}),document.removeEventListener("mouseup",y),"ontouchstart"in window&&(document.removeEventListener("touchmove",m,{passive:!1}),document.removeEventListener("touchend",y))},f=(A,B)=>{const L=A.target.closest(".splitpanes__splitter");if(L){const{left:z,top:b}=L.getBoundingClientRect(),{clientX:x,clientY:k}="ontouchstart"in window&&A.touches?A.touches[0]:A;l.value.cursorOffset=r.horizontal?k-b:x-z}h(),l.value.mouseDown=!0,l.value.activeSplitter=B},m=A=>{l.value.mouseDown&&(A.preventDefault(),l.value.dragging=!0,requestAnimationFrame(()=>{R(_(A)),Se("resize",{event:A},!0)}))},y=A=>{l.value.dragging&&(window.getSelection().removeAllRanges(),Se("resized",{event:A},!0)),l.value.mouseDown=!1,l.value.activeSplitter=null,setTimeout(()=>{l.value.dragging=!1,g()},100)},v=(A,B)=>{"ontouchstart"in window&&(A.preventDefault(),d.value.splitter===B?(clearTimeout(d.value.timeoutId),d.value.timeoutId=null,E(A,B),d.value.splitter=null):(d.value.splitter=B,d.value.timeoutId=setTimeout(()=>d.value.splitter=null,500))),l.value.dragging||Se("splitter-click",{event:A,index:B},!0)},E=(A,B)=>{if(Se("splitter-dblclick",{event:A,index:B},!0),r.maximizePanes){let L=0;s.value=s.value.map((z,b)=>(z.size=b===B?z.max:z.min,b!==B&&(L+=z.min),z)),s.value[B].size-=L,Se("pane-maximize",{event:A,index:B,pane:s.value[B]}),Se("resized",{event:A,index:B},!0)}},C=(A,B)=>{Se("pane-click",{event:A,index:a.value[B].index,pane:a.value[B]})},_=A=>{const B=u.value.getBoundingClientRect(),{clientX:L,clientY:z}="ontouchstart"in window&&A.touches?A.touches[0]:A;return{x:L-(r.horizontal?0:l.value.cursorOffset)-B.left,y:z-(r.horizontal?l.value.cursorOffset:0)-B.top}},D=A=>{A=A[r.horizontal?"y":"x"];const B=u.value[r.horizontal?"clientHeight":"clientWidth"];return r.rtl&&!r.horizontal&&(A=B-A),A*100/B},R=A=>{const B=l.value.activeSplitter;let L={prevPanesSize:I(B),nextPanesSize:P(B),prevReachedMinPanes:0,nextReachedMinPanes:0};const z=0+(r.pushOtherPanes?0:L.prevPanesSize),b=100-(r.pushOtherPanes?0:L.nextPanesSize),x=Math.max(Math.min(D(A),b),z);let k=[B,B+1],N=s.value[k[0]]||null,U=s.value[k[1]]||null;const M=N.max<100&&x>=N.max+L.prevPanesSize,q=U.max<100&&x<=100-(U.max+P(B+1));if(M||q){M?(N.size=N.max,U.size=Math.max(100-N.max-L.prevPanesSize-L.nextPanesSize,0)):(N.size=Math.max(100-U.max-L.prevPanesSize-P(B+1),0),U.size=U.max);return}if(r.pushOtherPanes){const V=Z(L,x);if(!V)return;({sums:L,panesToResize:k}=V),N=s.value[k[0]]||null,U=s.value[k[1]]||null}N!==null&&(N.size=Math.min(Math.max(x-L.prevPanesSize-L.prevReachedMinPanes,N.min),N.max)),U!==null&&(U.size=Math.min(Math.max(100-x-L.nextPanesSize-L.nextReachedMinPanes,U.min),U.max))},Z=(A,B)=>{const L=l.value.activeSplitter,z=[L,L+1];return B{x>z[0]&&x<=L&&(b.size=b.min,A.prevReachedMinPanes+=b.min)}),A.prevPanesSize=I(z[0]),z[0]===void 0)?(A.prevReachedMinPanes=0,s.value[0].size=s.value[0].min,s.value.forEach((b,x)=>{x>0&&x<=L&&(b.size=b.min,A.prevReachedMinPanes+=b.min)}),s.value[z[1]].size=100-A.prevReachedMinPanes-s.value[0].min-A.prevPanesSize-A.nextPanesSize,null):B>100-A.nextPanesSize-s.value[z[1]].min&&(z[1]=O(L).index,A.nextReachedMinPanes=0,z[1]>L+1&&s.value.forEach((b,x)=>{x>L&&x{x=L+1&&(b.size=b.min,A.nextReachedMinPanes+=b.min)}),s.value[z[0]].size=100-A.prevPanesSize-P(z[0]-1),null):{sums:A,panesToResize:z}},I=A=>s.value.reduce((B,L,z)=>B+(zs.value.reduce((B,L,z)=>B+(z>A+1?L.size:0),0),oe=A=>[...s.value].reverse().find(B=>B.indexB.min)||{},O=A=>s.value.find(B=>B.index>A+1&&B.size>B.min)||{},S=()=>{var A;const B=Array.from(((A=u.value)==null?void 0:A.children)||[]);for(const L of B){const z=L.classList.contains("splitpanes__pane"),b=L.classList.contains("splitpanes__splitter");!z&&!b&&(L.remove(),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))}},G=(A,B,L=!1)=>{const z=A-1,b=document.createElement("div");b.classList.add("splitpanes__splitter"),L||(b.onmousedown=x=>f(x,z),typeof window<"u"&&"ontouchstart"in window&&(b.ontouchstart=x=>f(x,z)),b.onclick=x=>v(x,z+1)),b.ondblclick=x=>E(x,z+1),B.parentNode.insertBefore(b,B)},ne=A=>{A.onmousedown=void 0,A.onclick=void 0,A.ondblclick=void 0,A.remove()},Q=()=>{var A;const B=Array.from(((A=u.value)==null?void 0:A.children)||[]);for(const z of B)z.className.includes("splitpanes__splitter")&&ne(z);let L=0;for(const z of B)z.className.includes("splitpanes__pane")&&(!L&&r.firstSplitter?G(L,z,!0):L&&G(L,z),L++)},Y=({uid:A,...B})=>{const L=a.value[A];for(const[z,b]of Object.entries(B))L[z]=b},ee=A=>{var B;let L=-1;Array.from(((B=u.value)==null?void 0:B.children)||[]).some(z=>(z.className.includes("splitpanes__pane")&&L++,z.isSameNode(A.el))),s.value.splice(L,0,{...A,index:L}),s.value.forEach((z,b)=>z.index=b),c.value&&Cn(()=>{Q(),te({addedPane:s.value[L]}),Se("pane-add",{pane:s.value[L]})})},J=A=>{const B=s.value.findIndex(z=>z.id===A);s.value[B].el=null;const L=s.value.splice(B,1)[0];s.value.forEach((z,b)=>z.index=b),Cn(()=>{Q(),Se("pane-remove",{pane:L}),te({removedPane:{...L}})})},te=(A={})=>{!A.addedPane&&!A.removedPane?me():s.value.some(B=>B.givenSize!==null||B.min||B.max<100)?_e(A):re(),c.value&&Se("resized")},re=()=>{const A=100/i.value;let B=0;const L=[],z=[];for(const b of s.value)b.size=Math.max(Math.min(A,b.max),b.min),B-=b.size,b.size>=b.max&&L.push(b.id),b.size<=b.min&&z.push(b.id);B>.1&&we(B,L,z)},me=()=>{let A=100;const B=[],L=[];let z=0;for(const x of s.value)A-=x.size,x.givenSize!==null&&z++,x.size>=x.max&&B.push(x.id),x.size<=x.min&&L.push(x.id);let b=100;if(A>.1){for(const x of s.value)x.givenSize===null&&(x.size=Math.max(Math.min(A/(i.value-z),x.max),x.min)),b-=x.size;b>.1&&we(b,B,L)}},_e=({addedPane:A,removedPane:B}={})=>{let L=100/i.value,z=0;const b=[],x=[];(A?.givenSize??null)!==null&&(L=(100-A.givenSize)/(i.value-1));for(const k of s.value)z-=k.size,k.size>=k.max&&b.push(k.id),k.size<=k.min&&x.push(k.id);if(!(Math.abs(z)<.1)){for(const k of s.value)A?.givenSize!==null&&A?.id===k.id||(k.size=Math.max(Math.min(L,k.max),k.min)),z-=k.size,k.size>=k.max&&b.push(k.id),k.size<=k.min&&x.push(k.id);z>.1&&we(z,b,x)}},we=(A,B,L)=>{let z;A>0?z=A/(i.value-B.length):z=A/(i.value-L.length),s.value.forEach((b,x)=>{if(A>0&&!B.includes(b.id)){const k=Math.max(Math.min(b.size+z,b.max),b.min),N=k-b.size;A-=N,b.size=k}else if(!L.includes(b.id)){const k=Math.max(Math.min(b.size+z,b.max),b.min),N=k-b.size;A-=N,b.size=k}}),Math.abs(A)>.1&&Cn(()=>{c.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},Se=(A,B=void 0,L=!1)=>{const z=B?.index??l.value.activeSplitter??null;n(A,{...B,...z!==null&&{index:z},...L&&z!==null&&{prevPane:s.value[z-(r.firstSplitter?1:0)],nextPane:s.value[z+(r.firstSplitter?0:1)]},panes:s.value.map(b=>({min:b.min,max:b.max,size:b.size}))})};et(()=>r.firstSplitter,()=>Q()),Sn(()=>{S(),Q(),te(),Se("ready"),c.value=!0}),ua(()=>c.value=!1);const Fe=()=>{var A;return Dt("div",{ref:u,class:p.value},(A=o.default)==null?void 0:A.call(o))};return Zt("panes",s),Zt("indexedPanes",a),Zt("horizontal",se(()=>r.horizontal)),Zt("requestUpdate",Y),Zt("onPaneAdd",ee),Zt("onPaneRemove",J),Zt("onPaneClick",C),(A,B)=>($(),ge(la(Fe)))}},kE={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const n=e,r=rt("requestUpdate"),o=rt("onPaneAdd"),s=rt("horizontal"),a=rt("onPaneRemove"),i=rt("onPaneClick"),u=(t=Mn())==null?void 0:t.uid,c=rt("indexedPanes"),l=se(()=>c.value[u]),d=Ae(null),p=se(()=>{const m=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min(m,g.value),h.value)}),h=se(()=>{const m=parseFloat(n.minSize);return isNaN(m)?0:m}),g=se(()=>{const m=parseFloat(n.maxSize);return isNaN(m)?100:m}),f=se(()=>{var m;return`${s.value?"height":"width"}: ${(m=l.value)==null?void 0:m.size}%`});return et(()=>p.value,m=>r({uid:u,size:m})),et(()=>h.value,m=>r({uid:u,min:m})),et(()=>g.value,m=>r({uid:u,max:m})),Sn(()=>{o({id:u,el:d.value,min:h.value,max:g.value,givenSize:n.size===void 0?null:p.value,size:p.value})}),ua(()=>a(u)),(m,y)=>($(),X("div",{ref_key:"paneEl",ref:d,class:"splitpanes__pane",onClick:y[0]||(y[0]=v=>j(i)(v,m._.uid)),style:hn(f.value)},[ye(m.$slots,"default")],4))}};var oh="M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z",Zg="M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z",Vl="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",TE="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",Yg="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",Hl="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",OE="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",DE="M21,15.61L19.59,17L14.58,12L19.59,7L21,8.39L17.44,12L21,15.61M3,6H16V8H3V6M3,13V11H13V13H3M3,18V16H16V18H3Z",NE="M14,19H18V5H14M6,19H10V5H6V19Z",PE="M8,5.14V19.14L19,12.14L8,5.14Z",BE="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";const $c=1024,Jg=$c/2,fi=e=>document.documentElement.clientWidth{Qg.value=fi($c),$E.value=fi(Jg)},{passive:!0});function fa(){return Us(Qg)}class RE{bundle;constructor(t){this.bundle={pluralFunction:t,translations:{}}}addTranslations(t){const n=Object.values(t.translations[""]??{}).map(({msgid:r,msgid_plural:o,msgstr:s})=>o!==void 0?[`_${r}_::_${o}_`,s]:[r,s[0]]);this.bundle.translations={...this.bundle.translations,...Object.fromEntries(n)}}gettext(t,n={}){return Ue("",t,n,void 0,{bundle:this.bundle})}ngettext(t,n,r,o={}){return rE("",t,n,r,o,{bundle:this.bundle})}}class LE{debug=!1;language="en";translations={};setLanguage(t){return this.language=t,this}detectLocale(){return this.detectLanguage()}detectLanguage(){return this.setLanguage(_r().replace("-","_"))}addTranslation(t,n){return this.translations[t]=n,this}enableDebugMode(){return this.debug=!0,this}build(){this.debug&&console.debug(`Creating gettext instance for language ${this.language}`);const t=new RE(n=>oE(n,this.language));return this.language in this.translations&&t.addTranslations(this.translations[this.language]),t}}function FE(){return new LE}const em=FE().detectLanguage().build(),Ie=(...e)=>em.gettext(...e);function gn(...e){for(const t of e)if(!t.registered){for(const{l:n,t:r}of t){if(n!==_r()||!r)continue;const o=Object.fromEntries(Object.entries(r).map(([s,a])=>[s,{msgid:s,msgid_plural:a.p,msgstr:a.v}]));em.addTranslations({translations:{"":o}})}t.registered=!0}}const IE=[{l:"ar",t:{"a few seconds ago":{v:["منذ عدة ثوانٍ"]},"sec. ago":{v:["ثانية مضت"]},"seconds ago":{v:["ثوانٍ مضت"]}}},{l:"ast",t:{"a few seconds ago":{v:["hai unos segundos"]},"sec. ago":{v:["hai segs"]},"seconds ago":{v:["hai segundos"]}}},{l:"br",t:{}},{l:"ca",t:{}},{l:"cs",t:{"a few seconds ago":{v:["před několika sekundami"]},"sec. ago":{v:["sek. před"]},"seconds ago":{v:["sekund předtím"]}}},{l:"cs-CZ",t:{"a few seconds ago":{v:["před několika sekundami"]},"sec. ago":{v:["sek. před"]},"seconds ago":{v:["sekund předtím"]}}},{l:"da",t:{"a few seconds ago":{v:["et par sekunder siden"]},"sec. ago":{v:["sek. siden"]},"seconds ago":{v:["sekunder siden"]}}},{l:"de",t:{"a few seconds ago":{v:["vor ein paar Sekunden"]},"sec. ago":{v:["Sek. zuvor"]},"seconds ago":{v:["Sekunden zuvor"]}}},{l:"de-DE",t:{"a few seconds ago":{v:["vor ein paar Sekunden"]},"sec. ago":{v:["Sek. zuvor"]},"seconds ago":{v:["Sekunden zuvor"]}}},{l:"el",t:{"a few seconds ago":{v:["πριν λίγα δευτερόλεπτα"]},"sec. ago":{v:["δευτ. πριν"]},"seconds ago":{v:["δευτερόλεπτα πριν"]}}},{l:"en-GB",t:{"a few seconds ago":{v:["a few seconds ago"]},"sec. ago":{v:["sec. ago"]},"seconds ago":{v:["seconds ago"]}}},{l:"eo",t:{}},{l:"es",t:{"a few seconds ago":{v:["hace unos pocos segundos"]},"sec. ago":{v:["hace segundos"]},"seconds ago":{v:["segundos atrás"]}}},{l:"es-AR",t:{"a few seconds ago":{v:["hace unos segundos"]},"sec. ago":{v:["seg. atrás"]},"seconds ago":{v:["segundos atrás"]}}},{l:"es-EC",t:{"a few seconds ago":{v:["hace unos segundos"]},"sec. ago":{v:["hace segundos"]},"seconds ago":{v:["Segundos atrás"]}}},{l:"es-MX",t:{"a few seconds ago":{v:["hace unos segundos"]},"sec. ago":{v:["seg. atrás"]},"seconds ago":{v:["segundos atrás"]}}},{l:"et-EE",t:{"a few seconds ago":{v:["mõni sekund tagasi"]},"sec. ago":{v:["sek. tagasi"]},"seconds ago":{v:["sekundit tagasi"]}}},{l:"eu",t:{"a few seconds ago":{v:["duela segundo batzuk"]},"sec. ago":{v:["duela seg."]},"seconds ago":{v:["duela segundo"]}}},{l:"fa",t:{"a few seconds ago":{v:["چند ثانیه پیش"]},"sec. ago":{v:["چند ثانیه پیش"]},"seconds ago":{v:["چند ثانیه پیش"]}}},{l:"fi",t:{"a few seconds ago":{v:["muutamia sekunteja sitten"]},"sec. ago":{v:["sek. sitten"]},"seconds ago":{v:["sekunteja sitten"]}}},{l:"fr",t:{"a few seconds ago":{v:["il y a quelques instants"]},"sec. ago":{v:["il y a qq. sec."]},"seconds ago":{v:["il y a quelques secondes"]}}},{l:"ga",t:{"a few seconds ago":{v:["cúpla soicind ó shin"]},"sec. ago":{v:["soic. ó shin"]},"seconds ago":{v:["soicind ó shin"]}}},{l:"gl",t:{"a few seconds ago":{v:["hai uns segundos"]},"sec. ago":{v:["segs. atrás"]},"seconds ago":{v:["segundos atrás"]}}},{l:"he",t:{"a few seconds ago":{v:["לפני מספר שניות"]},"sec. ago":{v:["לפני מספר שניות"]},"seconds ago":{v:["לפני מס׳ שניות"]}}},{l:"hr",t:{"a few seconds ago":{v:["prije nekoliko sekundi"]},"sec. ago":{v:["prije nek. sek."]},"seconds ago":{v:["prije nek. sek."]}}},{l:"hu",t:{"a few seconds ago":{v:["néhány másodperce"]},"sec. ago":{v:["másodperce"]},"seconds ago":{v:["másodperce"]}}},{l:"id",t:{"a few seconds ago":{v:["beberapa detik yang lalu"]},"sec. ago":{v:["dtk. yang lalu"]},"seconds ago":{v:["beberapa detik lalu"]}}},{l:"is",t:{"a few seconds ago":{v:["fyrir örfáum sekúndum síðan"]},"sec. ago":{v:["sek. síðan"]},"seconds ago":{v:["sekúndum síðan"]}}},{l:"it",t:{"a few seconds ago":{v:["pochi secondi fa"]},"sec. ago":{v:["sec. fa"]},"seconds ago":{v:["secondi fa"]}}},{l:"ja",t:{"a few seconds ago":{v:["数秒前"]},"sec. ago":{v:["秒前"]},"seconds ago":{v:["数秒前"]}}},{l:"ja-JP",t:{"a few seconds ago":{v:["数秒前"]},"sec. ago":{v:["秒前"]},"seconds ago":{v:["数秒前"]}}},{l:"ko",t:{"a few seconds ago":{v:["방금 전"]},"sec. ago":{v:["몇 초 전"]},"seconds ago":{v:["초 전"]}}},{l:"lo",t:{"a few seconds ago":{v:["ສອງສາມວິນາທີກ່ອນ"]},"sec. ago":{v:["ວິ. ກ່ອນ"]},"seconds ago":{v:["ວິນາທີກ່ອນ"]}}},{l:"lt-LT",t:{"a few seconds ago":{v:["prieš keletą sekundžių"]},"sec. ago":{v:["prieš sek."]},"seconds ago":{v:["prieš sekundes"]}}},{l:"lv",t:{}},{l:"mk",t:{"a few seconds ago":{v:["пред неколку секунди"]},"sec. ago":{v:["секунда"]},"seconds ago":{v:["секунди"]}}},{l:"mn",t:{"a few seconds ago":{v:["хэдхэн секундын өмнө"]},"sec. ago":{v:["сек. өмнө"]},"seconds ago":{v:["секундын өмнө"]}}},{l:"my",t:{}},{l:"nb",t:{"a few seconds ago":{v:["noen få sekunder siden"]},"sec. ago":{v:["sek. siden"]},"seconds ago":{v:["sekunder siden"]}}},{l:"nl",t:{"a few seconds ago":{v:["enkele seconden geleden"]},"sec. ago":{v:["sec. geleden"]},"seconds ago":{v:["seconden geleden"]}}},{l:"oc",t:{}},{l:"pl",t:{"a few seconds ago":{v:["kilka sekund temu"]},"sec. ago":{v:["sek. temu"]},"seconds ago":{v:["sekund temu"]}}},{l:"pt-BR",t:{"a few seconds ago":{v:["há alguns segundos"]},"sec. ago":{v:["seg. atrás"]},"seconds ago":{v:["segundos atrás"]}}},{l:"pt-PT",t:{"a few seconds ago":{v:["há alguns segundos"]},"sec. ago":{v:["seg. atrás"]},"seconds ago":{v:["segundos atrás"]}}},{l:"ro",t:{"a few seconds ago":{v:["acum câteva secunde"]},"sec. ago":{v:["sec. în urmă"]},"seconds ago":{v:["secunde în urmă"]}}},{l:"ru",t:{"a few seconds ago":{v:["несколько секунд назад"]},"sec. ago":{v:["сек. назад"]},"seconds ago":{v:["секунд назад"]}}},{l:"sk",t:{"a few seconds ago":{v:["pred chvíľou"]},"sec. ago":{v:["pred pár sekundami"]},"seconds ago":{v:["pred sekundami"]}}},{l:"sl",t:{}},{l:"sr",t:{"a few seconds ago":{v:["пре неколико секунди"]},"sec. ago":{v:["сек. раније"]},"seconds ago":{v:["секунди раније"]}}},{l:"sv",t:{"a few seconds ago":{v:["några sekunder sedan"]},"sec. ago":{v:["sek. sedan"]},"seconds ago":{v:["sekunder sedan"]}}},{l:"tr",t:{"a few seconds ago":{v:["birkaç saniye önce"]},"sec. ago":{v:["sn. önce"]},"seconds ago":{v:["saniye önce"]}}},{l:"uk",t:{"a few seconds ago":{v:["декілька секунд тому"]},"sec. ago":{v:["с тому"]},"seconds ago":{v:["с тому"]}}},{l:"uz",t:{"a few seconds ago":{v:["bir necha soniya oldin"]},"sec. ago":{v:["sek. oldin"]},"seconds ago":{v:["soniyalar oldin"]}}},{l:"zh-CN",t:{"a few seconds ago":{v:["几秒前"]},"sec. ago":{v:["几秒前"]},"seconds ago":{v:["几秒前"]}}},{l:"zh-HK",t:{"a few seconds ago":{v:["幾秒前"]},"sec. ago":{v:["秒前"]},"seconds ago":{v:["秒前"]}}},{l:"zh-TW",t:{"a few seconds ago":{v:["幾秒前"]},"sec. ago":{v:["秒前"]},"seconds ago":{v:["秒前"]}}}],ME=[{l:"ar",t:{Actions:{v:["إجراءات"]}}},{l:"ast",t:{Actions:{v:["Aiciones"]}}},{l:"br",t:{Actions:{v:["Oberioù"]}}},{l:"ca",t:{Actions:{v:["Accions"]}}},{l:"cs",t:{Actions:{v:["Akce"]}}},{l:"cs-CZ",t:{Actions:{v:["Akce"]}}},{l:"da",t:{Actions:{v:["Handlinger"]}}},{l:"de",t:{Actions:{v:["Aktionen"]}}},{l:"de-DE",t:{Actions:{v:["Aktionen"]}}},{l:"el",t:{Actions:{v:["Ενέργειες"]}}},{l:"en-GB",t:{Actions:{v:["Actions"]}}},{l:"eo",t:{Actions:{v:["Agoj"]}}},{l:"es",t:{Actions:{v:["Acciones"]}}},{l:"es-AR",t:{Actions:{v:["Acciones"]}}},{l:"es-EC",t:{Actions:{v:["Acciones"]}}},{l:"es-MX",t:{Actions:{v:["Acciones"]}}},{l:"et-EE",t:{Actions:{v:["Tegevus"]}}},{l:"eu",t:{Actions:{v:["Ekintzak"]}}},{l:"fa",t:{Actions:{v:["کنش‌ها"]}}},{l:"fi",t:{Actions:{v:["Toiminnot"]}}},{l:"fr",t:{Actions:{v:["Actions"]}}},{l:"ga",t:{Actions:{v:["Gníomhartha"]}}},{l:"gl",t:{Actions:{v:["Accións"]}}},{l:"he",t:{Actions:{v:["פעולות"]}}},{l:"hr",t:{Actions:{v:["Radnje"]}}},{l:"hu",t:{Actions:{v:["Műveletek"]}}},{l:"id",t:{Actions:{v:["Tindakan"]}}},{l:"is",t:{Actions:{v:["Aðgerðir"]}}},{l:"it",t:{Actions:{v:["Azioni"]}}},{l:"ja",t:{Actions:{v:["操作"]}}},{l:"ja-JP",t:{Actions:{v:["操作"]}}},{l:"ko",t:{Actions:{v:["동작"]}}},{l:"lo",t:{Actions:{v:["ການກະທຳ"]}}},{l:"lt-LT",t:{Actions:{v:["Veiksmai"]}}},{l:"lv",t:{}},{l:"mk",t:{Actions:{v:["Акции"]}}},{l:"mn",t:{Actions:{v:["Үйлдлүүд"]}}},{l:"my",t:{Actions:{v:["လုပ်ဆောင်ချက်များ"]}}},{l:"nb",t:{Actions:{v:["Handlinger"]}}},{l:"nl",t:{Actions:{v:["Acties"]}}},{l:"oc",t:{Actions:{v:["Accions"]}}},{l:"pl",t:{Actions:{v:["Działania"]}}},{l:"pt-BR",t:{Actions:{v:["Ações"]}}},{l:"pt-PT",t:{Actions:{v:["Ações"]}}},{l:"ro",t:{Actions:{v:["Acțiuni"]}}},{l:"ru",t:{Actions:{v:["Действия "]}}},{l:"sk",t:{Actions:{v:["Akcie"]}}},{l:"sl",t:{Actions:{v:["Dejanja"]}}},{l:"sr",t:{Actions:{v:["Радње"]}}},{l:"sv",t:{Actions:{v:["Åtgärder"]}}},{l:"tr",t:{Actions:{v:["İşlemler"]}}},{l:"uk",t:{Actions:{v:["Дії"]}}},{l:"uz",t:{Actions:{v:["Harakatlar"]}}},{l:"zh-CN",t:{Actions:{v:["行为"]}}},{l:"zh-HK",t:{Actions:{v:["動作"]}}},{l:"zh-TW",t:{Actions:{v:["動作"]}}}],jE=[{l:"ar",t:{"Cancel changes":{v:["إلغاء التغييرات"]},"Confirm changes":{v:["تأكيد التغييرات"]}}},{l:"ast",t:{"Cancel changes":{v:["Encaboxar los cambeos"]},"Confirm changes":{v:["Confirmar los cambeos"]}}},{l:"br",t:{}},{l:"ca",t:{"Cancel changes":{v:["Cancel·la els canvis"]},"Confirm changes":{v:["Confirmeu els canvis"]}}},{l:"cs",t:{"Cancel changes":{v:["Zrušit změny"]},"Confirm changes":{v:["Potvrdit změny"]}}},{l:"cs-CZ",t:{"Cancel changes":{v:["Zrušit změny"]},"Confirm changes":{v:["Potvrdit změny"]}}},{l:"da",t:{"Cancel changes":{v:["Annuller ændringer"]},"Confirm changes":{v:["Bekræft ændringer"]}}},{l:"de",t:{"Cancel changes":{v:["Änderungen verwerfen"]},"Confirm changes":{v:["Änderungen bestätigen"]}}},{l:"de-DE",t:{"Cancel changes":{v:["Änderungen verwerfen"]},"Confirm changes":{v:["Änderungen bestätigen"]}}},{l:"el",t:{"Cancel changes":{v:["Ακύρωση αλλαγών"]},"Confirm changes":{v:["Επιβεβαίωση αλλαγών"]}}},{l:"en-GB",t:{"Cancel changes":{v:["Cancel changes"]},"Confirm changes":{v:["Confirm changes"]}}},{l:"eo",t:{}},{l:"es",t:{"Cancel changes":{v:["Cancelar cambios"]},"Confirm changes":{v:["Confirmar cambios"]}}},{l:"es-AR",t:{"Cancel changes":{v:["Cancelar cambios"]},"Confirm changes":{v:["Confirmar cambios"]}}},{l:"es-EC",t:{"Cancel changes":{v:["Cancelar cambios"]},"Confirm changes":{v:["Confirmar cambios"]}}},{l:"es-MX",t:{"Cancel changes":{v:["Cancelar cambios"]},"Confirm changes":{v:["Confirmar cambios"]}}},{l:"et-EE",t:{"Cancel changes":{v:["Tühista muudatused"]},"Confirm changes":{v:["Kinnita muudatused"]}}},{l:"eu",t:{"Cancel changes":{v:["Ezeztatu aldaketak"]},"Confirm changes":{v:["Baieztatu aldaketak"]}}},{l:"fa",t:{"Cancel changes":{v:["لغو تغییرات"]},"Confirm changes":{v:["تایید تغییرات"]}}},{l:"fi",t:{"Cancel changes":{v:["Peruuta muutokset"]},"Confirm changes":{v:["Vahvista muutokset"]}}},{l:"fr",t:{"Cancel changes":{v:["Annuler les modifications"]},"Confirm changes":{v:["Confirmer les modifications"]}}},{l:"ga",t:{"Cancel changes":{v:["Cealaigh athruithe"]},"Confirm changes":{v:["Deimhnigh na hathruithe"]}}},{l:"gl",t:{"Cancel changes":{v:["Cancelar os cambios"]},"Confirm changes":{v:["Confirma os cambios"]}}},{l:"he",t:{"Cancel changes":{v:["ביטול שינויים"]},"Confirm changes":{v:["אישור השינויים"]}}},{l:"hr",t:{"Cancel changes":{v:["Otkaži promjene"]},"Confirm changes":{v:["Potvrdi promjene"]}}},{l:"hu",t:{"Cancel changes":{v:["Változtatások elvetése"]},"Confirm changes":{v:["Változtatások megerősítése"]}}},{l:"id",t:{"Cancel changes":{v:["Batalkan perubahan"]},"Confirm changes":{v:["Konfirmasikan perubahan"]}}},{l:"is",t:{"Cancel changes":{v:["Hætta við breytingar"]},"Confirm changes":{v:["Staðfesta breytingar"]}}},{l:"it",t:{"Cancel changes":{v:["Annulla modifiche"]},"Confirm changes":{v:["Conferma modifiche"]}}},{l:"ja",t:{"Cancel changes":{v:["変更をキャンセル"]},"Confirm changes":{v:["変更を承認"]}}},{l:"ja-JP",t:{"Cancel changes":{v:["変更をキャンセル"]},"Confirm changes":{v:["変更を承認"]}}},{l:"ko",t:{"Cancel changes":{v:["변경 취소"]},"Confirm changes":{v:["변경 사항 확인"]}}},{l:"lo",t:{"Cancel changes":{v:["ຍົກເລີກການປ່ຽນແປງ"]},"Confirm changes":{v:["ຢືນຢັນການປ່ຽນແປງ"]}}},{l:"lt-LT",t:{"Cancel changes":{v:["Atsisakyti pakeitimų"]},"Confirm changes":{v:["Patvirtinti pakeitimus"]}}},{l:"lv",t:{}},{l:"mk",t:{"Cancel changes":{v:["Откажи ги промените"]},"Confirm changes":{v:["Потврди ги промените"]}}},{l:"mn",t:{"Cancel changes":{v:["Өөрчлөлтийг цуцлах"]},"Confirm changes":{v:["Өөрчлөлтийг баталгаажуулах"]}}},{l:"my",t:{"Cancel changes":{v:["ပြောင်းလဲမှုများ ပယ်ဖျက်ရန်"]},"Confirm changes":{v:["ပြောင်းလဲမှုများ အတည်ပြုရန်"]}}},{l:"nb",t:{"Cancel changes":{v:["Avbryt endringer"]},"Confirm changes":{v:["Bekreft endringer"]}}},{l:"nl",t:{"Cancel changes":{v:["Wijzigingen annuleren"]},"Confirm changes":{v:["Wijzigingen bevestigen"]}}},{l:"oc",t:{}},{l:"pl",t:{"Cancel changes":{v:["Anuluj zmiany"]},"Confirm changes":{v:["Potwierdź zmiany"]}}},{l:"pt-BR",t:{"Cancel changes":{v:["Cancelar alterações"]},"Confirm changes":{v:["Confirmar alterações"]}}},{l:"pt-PT",t:{"Cancel changes":{v:["Cancelar alterações"]},"Confirm changes":{v:["Confirmar alterações"]}}},{l:"ro",t:{"Cancel changes":{v:["Anulează modificările"]},"Confirm changes":{v:["Confirmați modificările"]}}},{l:"ru",t:{"Cancel changes":{v:["Отменить изменения"]},"Confirm changes":{v:["Подтвердить изменения"]}}},{l:"sk",t:{"Cancel changes":{v:["Zrušiť zmeny"]},"Confirm changes":{v:["Potvrdiť zmeny"]}}},{l:"sl",t:{"Cancel changes":{v:["Prekliči spremembe"]},"Confirm changes":{v:["Potrdi spremembe"]}}},{l:"sr",t:{"Cancel changes":{v:["Откажи измене"]},"Confirm changes":{v:["Потврдите измене"]}}},{l:"sv",t:{"Cancel changes":{v:["Avbryt ändringar"]},"Confirm changes":{v:["Bekräfta ändringar"]}}},{l:"tr",t:{"Cancel changes":{v:["Değişiklikleri iptal et"]},"Confirm changes":{v:["Değişiklikleri onayla"]}}},{l:"uk",t:{"Cancel changes":{v:["Скасувати зміни"]},"Confirm changes":{v:["Підтвердити зміни"]}}},{l:"uz",t:{"Cancel changes":{v:["O'zgarishlarni bekor qilish"]},"Confirm changes":{v:["O'zgarishlarni tasdiqlang"]}}},{l:"zh-CN",t:{"Cancel changes":{v:["取消更改"]},"Confirm changes":{v:["确认更改"]}}},{l:"zh-HK",t:{"Cancel changes":{v:["取消更改"]},"Confirm changes":{v:["確認更改"]}}},{l:"zh-TW",t:{"Cancel changes":{v:["取消變更"]},"Confirm changes":{v:["確認變更"]}}}],zE=[{l:"ar",t:{"Clear search":{v:["محو البحث"]}}},{l:"ast",t:{"Clear search":{v:["Borrar la busca"]}}},{l:"br",t:{}},{l:"ca",t:{}},{l:"cs",t:{"Clear search":{v:["Vyčistit vyhledávání"]}}},{l:"cs-CZ",t:{"Clear search":{v:["Vyčistit vyhledávání"]}}},{l:"da",t:{"Clear search":{v:["Ryd søgning"]}}},{l:"de",t:{"Clear search":{v:["Suche leeren"]}}},{l:"de-DE",t:{"Clear search":{v:["Suche leeren"]}}},{l:"el",t:{"Clear search":{v:["Εκκαθάριση αναζήτησης"]}}},{l:"en-GB",t:{"Clear search":{v:["Clear search"]}}},{l:"eo",t:{}},{l:"es",t:{"Clear search":{v:["Limpiar búsqueda"]}}},{l:"es-AR",t:{"Clear search":{v:["Limpiar búsqueda"]}}},{l:"es-EC",t:{"Clear search":{v:["Limpiar búsqueda"]}}},{l:"es-MX",t:{"Clear search":{v:["Limpiar búsqueda"]}}},{l:"et-EE",t:{"Clear search":{v:["Tühjenda otsing"]}}},{l:"eu",t:{"Clear search":{v:["Garbitu bilaketa"]}}},{l:"fa",t:{"Clear search":{v:["پاک کردن جستجو"]}}},{l:"fi",t:{"Clear search":{v:["Tyhjennä haku"]}}},{l:"fr",t:{"Clear search":{v:["Effacer la recherche"]}}},{l:"ga",t:{"Clear search":{v:["Glan cuardach"]}}},{l:"gl",t:{"Clear search":{v:["Limpar a busca"]}}},{l:"he",t:{"Clear search":{v:["פינוי חיפוש"]}}},{l:"hr",t:{"Clear search":{v:["Očisti pretraživanje"]}}},{l:"hu",t:{"Clear search":{v:["Keresés törlése"]}}},{l:"id",t:{"Clear search":{v:["Bersihkan pencarian"]}}},{l:"is",t:{"Clear search":{v:["Hreinsa leit"]}}},{l:"it",t:{"Clear search":{v:["online"]}}},{l:"ja",t:{"Clear search":{v:["検索をクリア"]}}},{l:"ja-JP",t:{"Clear search":{v:["検索をクリア"]}}},{l:"ko",t:{"Clear search":{v:["검색 지우기"]}}},{l:"lo",t:{"Clear search":{v:["ລຶບການຄົ້ນຫາ"]}}},{l:"lt-LT",t:{"Clear search":{v:["Išvalyti paiešką"]}}},{l:"lv",t:{}},{l:"mk",t:{"Clear search":{v:["Исчисти пребарување"]}}},{l:"mn",t:{"Clear search":{v:["Хайлтыг цэвэрлэх"]}}},{l:"my",t:{}},{l:"nb",t:{"Clear search":{v:["Tøm søk"]}}},{l:"nl",t:{"Clear search":{v:["Zoekopdracht wissen"]}}},{l:"oc",t:{}},{l:"pl",t:{"Clear search":{v:["Wyczyść wyszukiwanie"]}}},{l:"pt-BR",t:{"Clear search":{v:["Limpar pesquisa"]}}},{l:"pt-PT",t:{"Clear search":{v:["Limpar pesquisa"]}}},{l:"ro",t:{"Clear search":{v:["Șterge căutarea"]}}},{l:"ru",t:{"Clear search":{v:["Очистить поиск"]}}},{l:"sk",t:{"Clear search":{v:["Vymazať vyhľadávanie"]}}},{l:"sl",t:{}},{l:"sr",t:{"Clear search":{v:["Обриши претрагу"]}}},{l:"sv",t:{"Clear search":{v:["Rensa sökning"]}}},{l:"tr",t:{"Clear search":{v:["Aramayı temizle"]}}},{l:"uk",t:{"Clear search":{v:["Очистити пошук"]}}},{l:"uz",t:{"Clear search":{v:["Qidiruvni tozalash"]}}},{l:"zh-CN",t:{"Clear search":{v:["清除搜索"]}}},{l:"zh-HK",t:{"Clear search":{v:["清除搜索"]}}},{l:"zh-TW",t:{"Clear search":{v:["清除搜尋"]}}}],UE=[{l:"ar",t:{"Clear text":{v:["محو النص"]},"Save changes":{v:["حفظ التغييرات"]}}},{l:"ast",t:{"Clear text":{v:["Borrar el testu"]},"Save changes":{v:["Guardar los cambeos"]}}},{l:"br",t:{}},{l:"ca",t:{"Clear text":{v:["Netejar text"]}}},{l:"cs",t:{"Clear text":{v:["Čitelný text"]},"Save changes":{v:["Uložit změny"]}}},{l:"cs-CZ",t:{"Clear text":{v:["Čitelný text"]},"Save changes":{v:["Uložit změny"]}}},{l:"da",t:{"Clear text":{v:["Ryd tekst"]},"Save changes":{v:["Gem ændringer"]}}},{l:"de",t:{"Clear text":{v:["Klartext"]},"Save changes":{v:["Änderungen speichern"]}}},{l:"de-DE",t:{"Clear text":{v:["Klartext"]},"Save changes":{v:["Änderungen speichern"]}}},{l:"el",t:{"Clear text":{v:["Εκκαθάριση κειμένου"]},"Save changes":{v:["Αποθήκευση αλλαγών"]}}},{l:"en-GB",t:{"Clear text":{v:["Clear text"]},"Save changes":{v:["Save changes"]}}},{l:"eo",t:{}},{l:"es",t:{"Clear text":{v:["Limpiar texto"]},"Save changes":{v:["Guardar cambios"]}}},{l:"es-AR",t:{"Clear text":{v:["Limpiar texto"]},"Save changes":{v:["Guardar cambios"]}}},{l:"es-EC",t:{"Clear text":{v:["Limpiar texto"]}}},{l:"es-MX",t:{"Clear text":{v:["Limpiar texto"]},"Save changes":{v:["Guardar cambios"]}}},{l:"et-EE",t:{"Clear text":{v:["Kustuta tekst"]},"Save changes":{v:["Salvesta muudatused"]}}},{l:"eu",t:{"Clear text":{v:["Garbitu testua"]}}},{l:"fa",t:{"Clear text":{v:["پاک کردن متن"]},"Save changes":{v:["ذخیرهٔ تغییرات"]}}},{l:"fi",t:{"Clear text":{v:["Tyhjennä teksti"]},"Save changes":{v:["Tallenna muutokset"]}}},{l:"fr",t:{"Clear text":{v:["Effacer le texte"]},"Save changes":{v:["Sauvegarder les changements"]}}},{l:"ga",t:{"Clear text":{v:["Glan téacs"]},"Save changes":{v:["Sabháil na hathruithe"]}}},{l:"gl",t:{"Clear text":{v:["Limpar o texto"]},"Save changes":{v:["Gardar os cambios"]}}},{l:"he",t:{"Clear text":{v:["פינוי טקסט"]}}},{l:"hr",t:{"Clear text":{v:["Očisti tekst"]},"Save changes":{v:["Spremi promjene"]}}},{l:"hu",t:{"Clear text":{v:["Szöveg törlése"]},"Save changes":{v:["Változtatások mentése"]}}},{l:"id",t:{"Clear text":{v:["Bersihkan teks"]},"Save changes":{v:["Simpan perubahan"]}}},{l:"is",t:{"Clear text":{v:["Hreinsa texta"]},"Save changes":{v:["Vista breytingar"]}}},{l:"it",t:{"Clear text":{v:["Cancella il testo"]},"Save changes":{v:["Salva le modifiche"]}}},{l:"ja",t:{"Clear text":{v:["テキストをクリア"]},"Save changes":{v:["変更を保存"]}}},{l:"ja-JP",t:{"Clear text":{v:["テキストをクリア"]},"Save changes":{v:["変更を保存"]}}},{l:"ko",t:{"Clear text":{v:["텍스트 지우기"]},"Save changes":{v:["변경 사항 저장"]}}},{l:"lo",t:{"Clear text":{v:["ລຶບຂໍ້ຄວາມ"]},"Save changes":{v:["ບັນທຶກການປ່ຽນແປງ"]}}},{l:"lt-LT",t:{"Clear text":{v:["Išvalyti tekstą"]},"Save changes":{v:["Įrašyti pakeitimus"]}}},{l:"lv",t:{}},{l:"mk",t:{"Clear text":{v:["Исчисти текст"]},"Save changes":{v:["Зачувај промени"]}}},{l:"mn",t:{"Clear text":{v:["Текстийг цэвэрлэх"]},"Save changes":{v:["Өөрчлөлтийг хадгалах"]}}},{l:"my",t:{}},{l:"nb",t:{"Clear text":{v:["Fjern tekst"]},"Save changes":{v:["Lagre endringer"]}}},{l:"nl",t:{"Clear text":{v:["Tekst wissen"]},"Save changes":{v:["Wijzigingen opslaan"]}}},{l:"oc",t:{}},{l:"pl",t:{"Clear text":{v:["Wyczyść tekst"]},"Save changes":{v:["Zapisz zmiany"]}}},{l:"pt-BR",t:{"Clear text":{v:["Limpar texto"]},"Save changes":{v:["Salvar alterações"]}}},{l:"pt-PT",t:{"Clear text":{v:["Limpar texto"]},"Save changes":{v:["Gravar alterações"]}}},{l:"ro",t:{"Clear text":{v:["Șterge textul"]},"Save changes":{v:["Salvează modificările"]}}},{l:"ru",t:{"Clear text":{v:["Очистить текст"]},"Save changes":{v:["Сохранить изменения"]}}},{l:"sk",t:{"Clear text":{v:["Vamazať text"]},"Save changes":{v:["Uložiť zmeny"]}}},{l:"sl",t:{"Clear text":{v:["Počisti besedilo"]}}},{l:"sr",t:{"Clear text":{v:["Обриши текст"]},"Save changes":{v:["Сачувај измене"]}}},{l:"sv",t:{"Clear text":{v:["Ta bort text"]},"Save changes":{v:["Spara ändringar"]}}},{l:"tr",t:{"Clear text":{v:["Metni temizle"]},"Save changes":{v:["Değişiklikleri kaydet"]}}},{l:"uk",t:{"Clear text":{v:["Очистити текст"]},"Save changes":{v:["Зберегти зміни"]}}},{l:"uz",t:{"Clear text":{v:["Matnni tozalash"]},"Save changes":{v:["O'zgarishlarni saqlang"]}}},{l:"zh-CN",t:{"Clear text":{v:["清除文本"]},"Save changes":{v:["保存修改"]}}},{l:"zh-HK",t:{"Clear text":{v:["清除文本"]},"Save changes":{v:["保存更改"]}}},{l:"zh-TW",t:{"Clear text":{v:["清除文字"]},"Save changes":{v:["儲存變更"]}}}],VE=[{l:"ar",t:{Close:{v:["إغلاق"]}}},{l:"ast",t:{Close:{v:["Zarrar"]}}},{l:"br",t:{Close:{v:["Serriñ"]}}},{l:"ca",t:{Close:{v:["Tanca"]}}},{l:"cs",t:{Close:{v:["Zavřít"]}}},{l:"cs-CZ",t:{Close:{v:["Zavřít"]}}},{l:"da",t:{Close:{v:["Luk"]}}},{l:"de",t:{Close:{v:["Schließen"]}}},{l:"de-DE",t:{Close:{v:["Schließen"]}}},{l:"el",t:{Close:{v:["Κλείσιμο"]}}},{l:"en-GB",t:{Close:{v:["Close"]}}},{l:"eo",t:{Close:{v:["Fermu"]}}},{l:"es",t:{Close:{v:["Cerrar"]}}},{l:"es-AR",t:{Close:{v:["Cerrar"]}}},{l:"es-EC",t:{Close:{v:["Cerrar"]}}},{l:"es-MX",t:{Close:{v:["Cerrar"]}}},{l:"et-EE",t:{Close:{v:["Sulge"]}}},{l:"eu",t:{Close:{v:["Itxi"]}}},{l:"fa",t:{Close:{v:["بستن"]}}},{l:"fi",t:{Close:{v:["Sulje"]}}},{l:"fr",t:{Close:{v:["Fermer"]}}},{l:"ga",t:{Close:{v:["Dún"]}}},{l:"gl",t:{Close:{v:["Pechar"]}}},{l:"he",t:{Close:{v:["סגירה"]}}},{l:"hr",t:{Close:{v:["Zatvori"]}}},{l:"hu",t:{Close:{v:["Bezárás"]}}},{l:"id",t:{Close:{v:["Tutup"]}}},{l:"is",t:{Close:{v:["Loka"]}}},{l:"it",t:{Close:{v:["Chiudi"]}}},{l:"ja",t:{Close:{v:["閉じる"]}}},{l:"ja-JP",t:{Close:{v:["閉じる"]}}},{l:"ko",t:{Close:{v:["닫기"]}}},{l:"lo",t:{Close:{v:["ປິດ"]}}},{l:"lt-LT",t:{Close:{v:["Užverti"]}}},{l:"lv",t:{Close:{v:["Aizvērt"]}}},{l:"mk",t:{Close:{v:["Затвори"]}}},{l:"mn",t:{Close:{v:["Хаах"]}}},{l:"my",t:{Close:{v:["ပိတ်ရန်"]}}},{l:"nb",t:{Close:{v:["Lukk"]}}},{l:"nl",t:{Close:{v:["Sluiten"]}}},{l:"oc",t:{Close:{v:["Tampar"]}}},{l:"pl",t:{Close:{v:["Zamknij"]}}},{l:"pt-BR",t:{Close:{v:["Fechar"]}}},{l:"pt-PT",t:{Close:{v:["Fechar"]}}},{l:"ro",t:{Close:{v:["Închideți"]}}},{l:"ru",t:{Close:{v:["Закрыть"]}}},{l:"sk",t:{Close:{v:["Zavrieť"]}}},{l:"sl",t:{Close:{v:["Zapri"]}}},{l:"sr",t:{Close:{v:["Затвори"]}}},{l:"sv",t:{Close:{v:["Stäng"]}}},{l:"tr",t:{Close:{v:["Kapat"]}}},{l:"uk",t:{Close:{v:["Закрити"]}}},{l:"uz",t:{Close:{v:["Yopish"]}}},{l:"zh-CN",t:{Close:{v:["关闭"]}}},{l:"zh-HK",t:{Close:{v:["關閉"]}}},{l:"zh-TW",t:{Close:{v:["關閉"]}}}],HE=[{l:"ar",t:{"Close navigation":{v:["إغلاق التصفح"]},"Open navigation":{v:["فتح التنقُّل"]}}},{l:"ast",t:{"Close navigation":{v:["Zarrar la navegación"]},"Open navigation":{v:["Abrir la navegación"]}}},{l:"br",t:{}},{l:"ca",t:{"Close navigation":{v:["Tanca la navegació"]},"Open navigation":{v:["Obre la navegació"]}}},{l:"cs",t:{"Close navigation":{v:["Zavřít navigaci"]},"Open navigation":{v:["Otevřít navigaci"]}}},{l:"cs-CZ",t:{"Close navigation":{v:["Zavřít navigaci"]},"Open navigation":{v:["Otevřít navigaci"]}}},{l:"da",t:{"Close navigation":{v:["Luk navigation"]},"Open navigation":{v:["Åben navigation"]}}},{l:"de",t:{"Close navigation":{v:["Navigation schließen"]},"Open navigation":{v:["Navigation öffnen"]}}},{l:"de-DE",t:{"Close navigation":{v:["Navigation schließen"]},"Open navigation":{v:["Navigation öffnen"]}}},{l:"el",t:{"Close navigation":{v:["Κλείσιμο πλοήγησης"]},"Open navigation":{v:["Άνοιγμα πλοήγησης"]}}},{l:"en-GB",t:{"Close navigation":{v:["Close navigation"]},"Open navigation":{v:["Open navigation"]}}},{l:"eo",t:{}},{l:"es",t:{"Close navigation":{v:["Cerrar navegación"]},"Open navigation":{v:["Abrir navegación"]}}},{l:"es-AR",t:{"Close navigation":{v:["Cerrar navegación"]},"Open navigation":{v:["Abrir navegación"]}}},{l:"es-EC",t:{"Close navigation":{v:["Cerrar navegación"]},"Open navigation":{v:["Abrir navegación"]}}},{l:"es-MX",t:{"Close navigation":{v:["Cerrar navegación"]},"Open navigation":{v:["Abrir navegación"]}}},{l:"et-EE",t:{"Close navigation":{v:["Sulge navigatsioon"]},"Open navigation":{v:["Ava liikumisvaade"]}}},{l:"eu",t:{"Close navigation":{v:["Itxi nabigazioa"]},"Open navigation":{v:["Ireki nabigazioa"]}}},{l:"fa",t:{"Close navigation":{v:["بستن بخش ناوبری"]},"Open navigation":{v:["باز کردن بخش ناوبری"]}}},{l:"fi",t:{"Close navigation":{v:["Sulje navigaatio"]}}},{l:"fr",t:{"Close navigation":{v:["Fermer la navigation"]},"Open navigation":{v:["Ouvrir la navigation"]}}},{l:"ga",t:{"Close navigation":{v:["Dún nascleanúint"]},"Open navigation":{v:["Oscail nascleanúint"]}}},{l:"gl",t:{"Close navigation":{v:["Pechar a navegación"]},"Open navigation":{v:["Abrir a navegación"]}}},{l:"he",t:{"Close navigation":{v:["סגירת הניווט"]},"Open navigation":{v:["פתיחת ניווט"]}}},{l:"hr",t:{"Close navigation":{v:["Zatvori navigaciju"]},"Open navigation":{v:["Otvori navigaciju"]}}},{l:"hu",t:{"Close navigation":{v:["Navigáció bezárása"]},"Open navigation":{v:["Navigáció megnyitása"]}}},{l:"id",t:{"Close navigation":{v:["Tutup navigasi"]},"Open navigation":{v:["Buka navigasi"]}}},{l:"is",t:{"Close navigation":{v:["Loka leiðsagnarsleða"]}}},{l:"it",t:{"Close navigation":{v:["Chiudi la navigazione"]},"Open navigation":{v:["Apri la navigazione"]}}},{l:"ja",t:{"Close navigation":{v:["ナビゲーションを閉じる"]},"Open navigation":{v:["ナビゲーションを開く"]}}},{l:"ja-JP",t:{"Close navigation":{v:["ナビゲーションを閉じる"]},"Open navigation":{v:["ナビゲーションを開く"]}}},{l:"ko",t:{"Close navigation":{v:["탐색 닫기"]},"Open navigation":{v:["탐색 열기"]}}},{l:"lo",t:{"Close navigation":{v:["ປິດການນຳທາງ"]},"Open navigation":{v:["ເປີດການນຳທາງ"]}}},{l:"lt-LT",t:{"Close navigation":{v:["Užverti naršymą"]},"Open navigation":{v:["Atverti naršymą"]}}},{l:"lv",t:{}},{l:"mk",t:{"Close navigation":{v:["Затвори навигација"]},"Open navigation":{v:["Отвори навигација"]}}},{l:"mn",t:{"Close navigation":{v:["Навигацийг хаах"]},"Open navigation":{v:["Навигацийг нээх"]}}},{l:"my",t:{}},{l:"nb",t:{"Close navigation":{v:["Lukk navigasjon"]},"Open navigation":{v:["Åpne navigasjon"]}}},{l:"nl",t:{"Close navigation":{v:["Navigatie sluiten"]},"Open navigation":{v:["Navigatie openen"]}}},{l:"oc",t:{}},{l:"pl",t:{"Close navigation":{v:["Zamknij nawigację"]}}},{l:"pt-BR",t:{"Close navigation":{v:["Fechar navegação"]},"Open navigation":{v:["Abrir navegação"]}}},{l:"pt-PT",t:{"Close navigation":{v:["Fechar navegação"]},"Open navigation":{v:["Abrir navegação"]}}},{l:"ro",t:{"Close navigation":{v:["Închideți navigarea"]},"Open navigation":{v:["Deschideți navigația"]}}},{l:"ru",t:{"Close navigation":{v:["Закрыть навигацию"]},"Open navigation":{v:["Открыть навигацию"]}}},{l:"sk",t:{"Close navigation":{v:["Zavrieť navigáciu"]}}},{l:"sl",t:{"Close navigation":{v:["Zapri krmarjenje"]},"Open navigation":{v:["Odpri krmarjenje"]}}},{l:"sr",t:{"Close navigation":{v:["Затвори навигацију"]},"Open navigation":{v:["Отвори навигацију"]}}},{l:"sv",t:{"Close navigation":{v:["Stäng navigering"]},"Open navigation":{v:["Öppna navigering"]}}},{l:"tr",t:{"Close navigation":{v:["Gezinmeyi kapat"]},"Open navigation":{v:["Gezinmeyi aç"]}}},{l:"uk",t:{"Close navigation":{v:["Закрити навігацію"]},"Open navigation":{v:["Перейти до навігації"]}}},{l:"uz",t:{"Close navigation":{v:["Navigatsiyani yopish"]},"Open navigation":{v:["Navigatsiyani oching"]}}},{l:"zh-CN",t:{"Close navigation":{v:["关闭导航"]}}},{l:"zh-HK",t:{"Close navigation":{v:["關閉導航"]},"Open navigation":{v:["開啟導航"]}}},{l:"zh-TW",t:{"Close navigation":{v:["關閉導航"]},"Open navigation":{v:["開啟導航"]}}}],GE=[{l:"ar",t:{"Collapse menu":{v:["طي القائمة"]},"Open menu":{v:["إفتَح القائمة"]}}},{l:"ast",t:{"Collapse menu":{v:["Recoyer el menú"]},"Open menu":{v:["Abrir le menú"]}}},{l:"br",t:{}},{l:"ca",t:{}},{l:"cs",t:{"Collapse menu":{v:["Sbalit nabídku"]},"Open menu":{v:["Otevřít nabídku"]}}},{l:"cs-CZ",t:{"Collapse menu":{v:["Sbalit nabídku"]},"Open menu":{v:["Otevřít nabídku"]}}},{l:"da",t:{"Collapse menu":{v:["Skjul menuen"]},"Open menu":{v:["Åben menu"]}}},{l:"de",t:{"Collapse menu":{v:["Menü einklappen"]},"Open menu":{v:["Menü öffnen"]}}},{l:"de-DE",t:{"Collapse menu":{v:["Menü einklappen"]},"Open menu":{v:["Menü öffnen"]}}},{l:"el",t:{"Collapse menu":{v:["Σύμπτυξη μενού"]},"Open menu":{v:["Άνοιγμα μενού"]}}},{l:"en-GB",t:{"Collapse menu":{v:["Collapse menu"]},"Open menu":{v:["Open menu"]}}},{l:"eo",t:{}},{l:"es",t:{"Collapse menu":{v:["Ocultar menú"]},"Open menu":{v:["Abrir menú"]}}},{l:"es-AR",t:{"Collapse menu":{v:["Ocultar menú"]},"Open menu":{v:["Abrir menú"]}}},{l:"es-EC",t:{"Collapse menu":{v:["Ocultar menú"]},"Open menu":{v:["Abrir menú"]}}},{l:"es-MX",t:{"Collapse menu":{v:["Ocultar menú"]},"Open menu":{v:["Abrir menú"]}}},{l:"et-EE",t:{"Collapse menu":{v:["Ahenda menüü"]},"Open menu":{v:["Ava menüü"]}}},{l:"eu",t:{"Collapse menu":{v:["Tolestu menua"]},"Open menu":{v:["Ireki menua"]}}},{l:"fa",t:{"Collapse menu":{v:["بستن فهرست"]},"Open menu":{v:["باز کردن فهرست"]}}},{l:"fi",t:{"Collapse menu":{v:["Supista valikko"]},"Open menu":{v:["Avaa valikko"]}}},{l:"fr",t:{"Collapse menu":{v:["Réduire le menu"]},"Open menu":{v:["Ouvrir le menu"]}}},{l:"ga",t:{"Collapse menu":{v:["Roghchlár Laghdaigh"]},"Open menu":{v:["Roghchlár a oscailt"]}}},{l:"gl",t:{"Collapse menu":{v:["Contraer o menú"]},"Open menu":{v:["Abrir o menú"]}}},{l:"he",t:{"Collapse menu":{v:["צמצום התפריט"]},"Open menu":{v:["פתיחת תפריט"]}}},{l:"hr",t:{"Collapse menu":{v:["Sakrij izbornik"]},"Open menu":{v:["Otvori izbornik"]}}},{l:"hu",t:{"Collapse menu":{v:["Menü összecsukása"]},"Open menu":{v:["Menü megnyitása"]}}},{l:"id",t:{"Collapse menu":{v:["Ciutkan menu"]},"Open menu":{v:["Buka menu"]}}},{l:"is",t:{"Collapse menu":{v:["Fella valmynd saman"]},"Open menu":{v:["Opna valmynd"]}}},{l:"it",t:{"Collapse menu":{v:["Chiudi Menu"]},"Open menu":{v:["Apri il menu"]}}},{l:"ja",t:{"Collapse menu":{v:["メニューの折りたたみ"]},"Open menu":{v:["メニューを開く"]}}},{l:"ja-JP",t:{"Collapse menu":{v:["メニューの折りたたみ"]},"Open menu":{v:["メニューを開く"]}}},{l:"ko",t:{"Collapse menu":{v:["메뉴 접기"]},"Open menu":{v:["메뉴 열기"]}}},{l:"lo",t:{"Collapse menu":{v:["ຫຍໍ້ເມນູ"]},"Open menu":{v:["ເປີດເມນູ"]}}},{l:"lt-LT",t:{"Collapse menu":{v:["Suskleisti meniu"]},"Open menu":{v:["Atverti meniu"]}}},{l:"lv",t:{}},{l:"mk",t:{"Collapse menu":{v:["Скриј мени"]},"Open menu":{v:["Отвори мени"]}}},{l:"mn",t:{"Collapse menu":{v:["Цэсийг хураах"]},"Open menu":{v:["Цэсийг нээх"]}}},{l:"my",t:{}},{l:"nb",t:{"Collapse menu":{v:["Skjul meny"]},"Open menu":{v:["Åpne meny"]}}},{l:"nl",t:{"Collapse menu":{v:["Menu inklappen"]},"Open menu":{v:["Menu openen"]}}},{l:"oc",t:{}},{l:"pl",t:{"Collapse menu":{v:["Zwiń menu"]},"Open menu":{v:["Otwórz menu"]}}},{l:"pt-BR",t:{"Collapse menu":{v:["Recolher menu"]},"Open menu":{v:["Abrir menu"]}}},{l:"pt-PT",t:{"Collapse menu":{v:["Ocultar menu"]},"Open menu":{v:["Abrir menu"]}}},{l:"ro",t:{"Collapse menu":{v:["Restrânge meniul"]},"Open menu":{v:["Deschide meniul"]}}},{l:"ru",t:{"Collapse menu":{v:["Свернуть меню"]},"Open menu":{v:["Открыть меню"]}}},{l:"sk",t:{"Collapse menu":{v:["Zbaliť menu"]},"Open menu":{v:["Otvoriť menu"]}}},{l:"sl",t:{}},{l:"sr",t:{"Collapse menu":{v:["Сажми мени"]},"Open menu":{v:["Отвори мени"]}}},{l:"sv",t:{"Collapse menu":{v:["Dölj menyn"]},"Open menu":{v:["Öppna menyn"]}}},{l:"tr",t:{"Collapse menu":{v:["Menüyü daralt"]},"Open menu":{v:["Menüyü aç"]}}},{l:"uk",t:{"Collapse menu":{v:["Згорнути меню"]},"Open menu":{v:["Відкрити меню"]}}},{l:"uz",t:{"Collapse menu":{v:["Menyuni yig‘ish"]},"Open menu":{v:["Menyuni oching"]}}},{l:"zh-CN",t:{"Collapse menu":{v:["收起菜单"]},"Open menu":{v:["打开菜单"]}}},{l:"zh-HK",t:{"Collapse menu":{v:["折疊選單"]},"Open menu":{v:["開啟選單"]}}},{l:"zh-TW",t:{"Collapse menu":{v:["折疊選單"]},"Open menu":{v:["開啟選單"]}}}],WE=[{l:"ar",t:{"Edit item":{v:["تعديل عنصر"]}}},{l:"ast",t:{"Edit item":{v:["Editar l'elementu"]}}},{l:"br",t:{}},{l:"ca",t:{"Edit item":{v:["Edita l'element"]}}},{l:"cs",t:{"Edit item":{v:["Upravit položku"]}}},{l:"cs-CZ",t:{"Edit item":{v:["Upravit položku"]}}},{l:"da",t:{"Edit item":{v:["Rediger emne"]}}},{l:"de",t:{"Edit item":{v:["Element bearbeiten"]}}},{l:"de-DE",t:{"Edit item":{v:["Element bearbeiten"]}}},{l:"el",t:{"Edit item":{v:["Επεξεργασία αντικειμένου"]}}},{l:"en-GB",t:{"Edit item":{v:["Edit item"]}}},{l:"eo",t:{}},{l:"es",t:{"Edit item":{v:["Editar elemento"]}}},{l:"es-AR",t:{"Edit item":{v:["Editar elemento"]}}},{l:"es-EC",t:{"Edit item":{v:["Editar elemento"]}}},{l:"es-MX",t:{"Edit item":{v:["Editar elemento"]}}},{l:"et-EE",t:{"Edit item":{v:["Muuda objekti"]}}},{l:"eu",t:{"Edit item":{v:["Editatu elementua"]}}},{l:"fa",t:{"Edit item":{v:["ویرایش مورد"]}}},{l:"fi",t:{"Edit item":{v:["Muokkaa kohdetta"]}}},{l:"fr",t:{"Edit item":{v:["Éditer l'élément"]}}},{l:"ga",t:{"Edit item":{v:["Cuir mír in eagar"]}}},{l:"gl",t:{"Edit item":{v:["Editar o elemento"]}}},{l:"he",t:{"Edit item":{v:["עריכת פריט"]}}},{l:"hr",t:{"Edit item":{v:["Uredi stavku"]}}},{l:"hu",t:{"Edit item":{v:["Elem szerkesztése"]}}},{l:"id",t:{"Edit item":{v:["Edit item"]}}},{l:"is",t:{"Edit item":{v:["Breyta atriði"]}}},{l:"it",t:{"Edit item":{v:["Modifica l'elemento"]}}},{l:"ja",t:{"Edit item":{v:["編集"]}}},{l:"ja-JP",t:{"Edit item":{v:["編集"]}}},{l:"ko",t:{"Edit item":{v:["항목 수정"]}}},{l:"lo",t:{"Edit item":{v:["ແກ້ໄຂລາຍການ"]}}},{l:"lt-LT",t:{"Edit item":{v:["Taisyti elementą"]}}},{l:"lv",t:{}},{l:"mk",t:{"Edit item":{v:["Уреди"]}}},{l:"mn",t:{"Edit item":{v:["Зүйлийг засварлах"]}}},{l:"my",t:{}},{l:"nb",t:{"Edit item":{v:["Rediger"]}}},{l:"nl",t:{"Edit item":{v:["Item bewerken"]}}},{l:"oc",t:{}},{l:"pl",t:{"Edit item":{v:["Edytuj element"]}}},{l:"pt-BR",t:{"Edit item":{v:["Editar item"]}}},{l:"pt-PT",t:{"Edit item":{v:["Editar item"]}}},{l:"ro",t:{"Edit item":{v:["Editați elementul"]}}},{l:"ru",t:{"Edit item":{v:["Изменить элемент"]}}},{l:"sk",t:{"Edit item":{v:["Upraviť položku"]}}},{l:"sl",t:{"Edit item":{v:["Uredi predmet"]}}},{l:"sr",t:{"Edit item":{v:["Уреди ставку"]}}},{l:"sv",t:{"Edit item":{v:["Redigera objekt"]}}},{l:"tr",t:{"Edit item":{v:["Ögeyi düzenle"]}}},{l:"uk",t:{"Edit item":{v:["Редагувати елемент"]}}},{l:"uz",t:{"Edit item":{v:["Elementni tahrirlash"]}}},{l:"zh-CN",t:{"Edit item":{v:["编辑项目"]}}},{l:"zh-HK",t:{"Edit item":{v:["編輯項目"]}}},{l:"zh-TW",t:{"Edit item":{v:["編輯項目"]}}}],qE=[{l:"ar",t:{"Go back to the list":{v:["عودة إلى القائمة"]}}},{l:"ast",t:{"Go back to the list":{v:["Volver a la llista"]}}},{l:"br",t:{}},{l:"ca",t:{"Go back to the list":{v:["Torna a la llista"]}}},{l:"cs",t:{"Go back to the list":{v:["Jít zpět na seznam"]}}},{l:"cs-CZ",t:{"Go back to the list":{v:["Jít zpět na seznam"]}}},{l:"da",t:{"Go back to the list":{v:["Tilbage til listen"]}}},{l:"de",t:{"Go back to the list":{v:["Zurück zur Liste"]}}},{l:"de-DE",t:{"Go back to the list":{v:["Zurück zur Liste"]}}},{l:"el",t:{"Go back to the list":{v:["Επιστροφή στην αρχική λίστα"]}}},{l:"en-GB",t:{"Go back to the list":{v:["Go back to the list"]}}},{l:"eo",t:{}},{l:"es",t:{"Go back to the list":{v:["Volver a la lista"]}}},{l:"es-AR",t:{"Go back to the list":{v:["Volver a la lista"]}}},{l:"es-EC",t:{"Go back to the list":{v:["Volver a la lista"]}}},{l:"es-MX",t:{"Go back to the list":{v:["Regresar a la lista"]}}},{l:"et-EE",t:{"Go back to the list":{v:["Tagasi nimekirja juurde"]}}},{l:"eu",t:{"Go back to the list":{v:["Bueltatu zerrendara"]}}},{l:"fa",t:{"Go back to the list":{v:["برگشت به لیست"]}}},{l:"fi",t:{"Go back to the list":{v:["Takaisin listaan"]}}},{l:"fr",t:{"Go back to the list":{v:["Retourner à la liste"]}}},{l:"ga",t:{"Go back to the list":{v:["Téigh ar ais go dtí an liosta"]}}},{l:"gl",t:{"Go back to the list":{v:["Volver á lista"]}}},{l:"he",t:{"Go back to the list":{v:["חזרה לרשימה"]}}},{l:"hr",t:{"Go back to the list":{v:["Vrati se na popis"]}}},{l:"hu",t:{"Go back to the list":{v:["Ugrás vissza a listához"]}}},{l:"id",t:{"Go back to the list":{v:["Kembali ke daftar"]}}},{l:"is",t:{"Go back to the list":{v:["Fara til baka í listann"]}}},{l:"it",t:{"Go back to the list":{v:["Torna all'elenco"]}}},{l:"ja",t:{"Go back to the list":{v:["リストに戻る"]}}},{l:"ja-JP",t:{"Go back to the list":{v:["リストに戻る"]}}},{l:"ko",t:{"Go back to the list":{v:["목록으로 돌아가기"]}}},{l:"lo",t:{"Go back to the list":{v:["ກັບໄປທີ່ລາຍການ"]}}},{l:"lt-LT",t:{"Go back to the list":{v:["Grįžti į sąrašą"]}}},{l:"lv",t:{}},{l:"mk",t:{"Go back to the list":{v:["Врати се на листата"]}}},{l:"mn",t:{"Go back to the list":{v:["Жагсаалт руу буцах"]}}},{l:"my",t:{}},{l:"nb",t:{"Go back to the list":{v:["Gå tilbake til listen"]}}},{l:"nl",t:{"Go back to the list":{v:["Ga terug naar de lijst"]}}},{l:"oc",t:{}},{l:"pl",t:{"Go back to the list":{v:["Powrót do listy"]}}},{l:"pt-BR",t:{"Go back to the list":{v:["Voltar para a lista"]}}},{l:"pt-PT",t:{"Go back to the list":{v:["Voltar para a lista"]}}},{l:"ro",t:{"Go back to the list":{v:["Întoarceți-vă la listă"]}}},{l:"ru",t:{"Go back to the list":{v:["Вернуться к списку"]}}},{l:"sk",t:{"Go back to the list":{v:["Späť na zoznam"]}}},{l:"sl",t:{"Go back to the list":{v:["Vrni se na seznam"]}}},{l:"sr",t:{"Go back to the list":{v:["Назад на листу"]}}},{l:"sv",t:{"Go back to the list":{v:["Gå tillbaka till listan"]}}},{l:"tr",t:{"Go back to the list":{v:["Listeye dön"]}}},{l:"uk",t:{"Go back to the list":{v:["Повернутися до списку"]}}},{l:"uz",t:{"Go back to the list":{v:["Ro'yxatga qayting"]}}},{l:"zh-CN",t:{"Go back to the list":{v:["返回至列表"]}}},{l:"zh-HK",t:{"Go back to the list":{v:["返回清單"]}}},{l:"zh-TW",t:{"Go back to the list":{v:["回到清單"]}}}],KE=[{l:"ar",t:{"Keyboard navigation help":{v:["مساعدة في التنقل باستعمال لوحة المفاتيح"]},"Skip to app navigation":{v:["تجاوَز إلى التنقل في التطبيق"]},"Skip to main content":{v:["تجاوَز إلى المحتوى الرئيسي"]}}},{l:"ast",t:{"Keyboard navigation help":{v:["Ayuda de la navegación pente'l tecláu"]},"Skip to app navigation":{v:["Dir a la navegación d'aplicaciones"]},"Skip to main content":{v:["Dir al conteníu principal"]}}},{l:"br",t:{}},{l:"ca",t:{}},{l:"cs",t:{"Keyboard navigation help":{v:["Nápověda pro pohyb pomocí klávesnice"]},"Skip to app navigation":{v:["Přeskočit na navigaci aplikace"]},"Skip to main content":{v:["Přeskočit na hlavní obsah"]}}},{l:"cs-CZ",t:{"Keyboard navigation help":{v:["Nápověda pro pohyb pomocí klávesnice"]},"Skip to app navigation":{v:["Přeskočit na navigaci aplikace"]},"Skip to main content":{v:["Přeskočit na hlavní obsah"]}}},{l:"da",t:{"Keyboard navigation help":{v:["Hjælp til tastaturnavigation"]},"Skip to app navigation":{v:["Spring til app navigation"]},"Skip to main content":{v:["Spring til hovedindhold"]}}},{l:"de",t:{"Keyboard navigation help":{v:["Tastatur-Navigationshilfe"]},"Skip to app navigation":{v:["Zur App-Navigation springen"]},"Skip to main content":{v:["Zum Hauptinhalt springen"]}}},{l:"de-DE",t:{"Keyboard navigation help":{v:["Tastatur-Navigationshilfe"]},"Skip to app navigation":{v:["Zur App-Navigation springen"]},"Skip to main content":{v:["Zum Hauptinhalt springen"]}}},{l:"el",t:{"Keyboard navigation help":{v:["Βοήθεια πλοήγησης με πληκτρολόγιο"]},"Skip to app navigation":{v:["Μετάβαση στην πλοήγηση της εφαρμογής"]},"Skip to main content":{v:["Μετάβαση στο κύριο περιεχόμενο"]}}},{l:"en-GB",t:{"Keyboard navigation help":{v:["Keyboard navigation help"]},"Skip to app navigation":{v:["Skip to app navigation"]},"Skip to main content":{v:["Skip to main content"]}}},{l:"eo",t:{}},{l:"es",t:{"Keyboard navigation help":{v:["Ayuda de navegación del teclado"]},"Skip to app navigation":{v:["Saltar a la navegación de apps"]},"Skip to main content":{v:["Saltar al contenido principal"]}}},{l:"es-AR",t:{"Keyboard navigation help":{v:["Ayuda de navegación del teclado"]},"Skip to app navigation":{v:["Saltar a la navegación de app"]},"Skip to main content":{v:["Saltar al contenido principal"]}}},{l:"es-EC",t:{}},{l:"es-MX",t:{"Keyboard navigation help":{v:["Ayuda de navegación del teclado"]},"Skip to app navigation":{v:["Saltar a la navegación de app"]},"Skip to main content":{v:["Saltar al contenido principal"]}}},{l:"et-EE",t:{"Keyboard navigation help":{v:["Klahvistiku kasutuse abiteave"]},"Skip to app navigation":{v:["Suundu rakenduses liikumise valikute juurde"]},"Skip to main content":{v:["Suundu põhisisu juurde"]}}},{l:"eu",t:{}},{l:"fa",t:{"Keyboard navigation help":{v:["راهنمای ناوبری صفحه کلید"]},"Skip to app navigation":{v:["رفتن به پیمایش برنامه"]},"Skip to main content":{v:["رفتن به محتوای اصلی"]}}},{l:"fi",t:{"Keyboard navigation help":{v:["Näppäimistönavigoinnin ohje"]},"Skip to app navigation":{v:["Siirry sovelluksen navigaatioon"]},"Skip to main content":{v:["Siirry pääsisältöön"]}}},{l:"fr",t:{"Keyboard navigation help":{v:["Aide à la navigation du clavier"]},"Skip to app navigation":{v:["Passer à l'app navigation"]},"Skip to main content":{v:["Passer au contenu principal"]}}},{l:"ga",t:{"Keyboard navigation help":{v:["Cabhair le nascleanúint méarchláir"]},"Skip to app navigation":{v:["Téigh ar aghaidh chuig nascleanúint aip"]},"Skip to main content":{v:["Téigh ar aghaidh chuig an bpríomhábhar"]}}},{l:"gl",t:{"Keyboard navigation help":{v:["Axuda á navegación co teclado"]},"Skip to app navigation":{v:["Ir á navegación da aplicación"]},"Skip to main content":{v:["Ir ao contido principal"]}}},{l:"he",t:{}},{l:"hr",t:{"Keyboard navigation help":{v:["Pomoć za navigaciju tipkovnicom"]},"Skip to app navigation":{v:["Preskoči na navigaciju aplikacije"]},"Skip to main content":{v:["Preskoči na glavni sadržaj"]}}},{l:"hu",t:{"Keyboard navigation help":{v:["Billentyűzetes navigáció súgója"]},"Skip to app navigation":{v:["Ugrás az alkalmazásnavigációhoz"]},"Skip to main content":{v:["Ugrás a fő tartalomhoz"]}}},{l:"id",t:{"Keyboard navigation help":{v:["Bantuan navigasi keyboard"]},"Skip to app navigation":{v:["Lewati ke navigasi aplikasi"]},"Skip to main content":{v:["Lewati ke konten utama"]}}},{l:"is",t:{"Keyboard navigation help":{v:["Aðstoð við rötun á lyklaborði"]},"Skip to app navigation":{v:["Sleppa og fara í flakk innan forrits"]},"Skip to main content":{v:["Sleppa og fara í meginefni"]}}},{l:"it",t:{}},{l:"ja",t:{"Keyboard navigation help":{v:["キーボード・ナビゲーション・ヘルプ"]},"Skip to app navigation":{v:["アプリのナビゲーションへ移動"]},"Skip to main content":{v:["メインコンテンツへ移動"]}}},{l:"ja-JP",t:{"Keyboard navigation help":{v:["キーボード・ナビゲーション・ヘルプ"]},"Skip to app navigation":{v:["アプリのナビゲーションへ移動"]},"Skip to main content":{v:["メインコンテンツへ移動"]}}},{l:"ko",t:{"Keyboard navigation help":{v:["키보드 탐색 도움말"]},"Skip to app navigation":{v:["앱 탐색으로 건너뛰기"]},"Skip to main content":{v:["본 내용으로 건너뛰기"]}}},{l:"lo",t:{"Keyboard navigation help":{v:["ການຊ່ວຍເຫຼືອການນຳທາງດ້ວຍຄີບອດ"]},"Skip to app navigation":{v:["ຂ້າມໄປທີ່ການນຳທາງຂອງແອັບ"]},"Skip to main content":{v:["ຂ້າມໄປທີ່ເນື້ອຫາຫຼັກ"]}}},{l:"lt-LT",t:{"Keyboard navigation help":{v:["Klaviatūros navigacijos pagalba"]},"Skip to app navigation":{v:["Pereiti prie programėlės naršymo"]},"Skip to main content":{v:["Pereiti prie pagrindinio turinio"]}}},{l:"lv",t:{}},{l:"mk",t:{"Keyboard navigation help":{v:["Навигација со тастатура"]},"Skip to app navigation":{v:["Прескокни на навигација на апликацијата"]},"Skip to main content":{v:["Прескокни на главна содржина"]}}},{l:"mn",t:{"Keyboard navigation help":{v:["Гарын навигацийн тусламж"]},"Skip to app navigation":{v:["Аппын навигаци руу алгасах"]},"Skip to main content":{v:["Үндсэн агуулга руу алгасах"]}}},{l:"my",t:{}},{l:"nb",t:{"Keyboard navigation help":{v:["Hjelp for tastaturnavigering"]},"Skip to app navigation":{v:["Hopp til appnavigering"]},"Skip to main content":{v:["Hopp til hovedinnhold"]}}},{l:"nl",t:{"Keyboard navigation help":{v:["Hulp voor toetsenbordnavigatie"]},"Skip to app navigation":{v:["Doorgaan naar app-navigatie"]},"Skip to main content":{v:["Naar hoofdinhoud gaan"]}}},{l:"oc",t:{}},{l:"pl",t:{"Keyboard navigation help":{v:["Pomoc w nawigacji za pomocą klawiatury"]},"Skip to app navigation":{v:["Przewiń do nawigacji"]},"Skip to main content":{v:["Przewiń do głównych treści"]}}},{l:"pt-BR",t:{"Keyboard navigation help":{v:["Ajuda para navegação pelo teclado"]},"Skip to app navigation":{v:["Ir para navegação de aplicativo"]},"Skip to main content":{v:["Ir para conteúdo principal"]}}},{l:"pt-PT",t:{"Keyboard navigation help":{v:["Ajuda à navegação no teclado"]},"Skip to app navigation":{v:["Saltar para navegação da app"]},"Skip to main content":{v:["Saltar para conteúdo principal"]}}},{l:"ro",t:{}},{l:"ru",t:{"Keyboard navigation help":{v:["Справка по навигации с помощью клавиатуры"]},"Skip to app navigation":{v:["Перейти к навигации по приложению"]},"Skip to main content":{v:["Перейти к основному содержанию"]}}},{l:"sk",t:{"Keyboard navigation help":{v:["Pomoc pri navigácii pomocou klávesnice"]},"Skip to app navigation":{v:["Preskočiť na navigáciu v aplikácii"]},"Skip to main content":{v:["Preskočiť na hlavný obsah"]}}},{l:"sl",t:{}},{l:"sr",t:{"Keyboard navigation help":{v:["Помоћ за навигацију тастатуром"]},"Skip to app navigation":{v:["Прескочи на навигацију апликацијом"]},"Skip to main content":{v:["Прескочи на главни садржај"]}}},{l:"sv",t:{"Keyboard navigation help":{v:["Hjälp med tangentbordsnavigering"]},"Skip to app navigation":{v:["Hoppa till appnavigering"]},"Skip to main content":{v:["Hoppa till huvudinnehåll"]}}},{l:"tr",t:{"Keyboard navigation help":{v:["Klavye ile gezinme yardımı"]},"Skip to app navigation":{v:["Uygulama gezinmesine git"]},"Skip to main content":{v:["Ana içeriğe git"]}}},{l:"uk",t:{"Keyboard navigation help":{v:["Допомога з навігацією клавішами"]},"Skip to app navigation":{v:["Пропустити навігацію по застосунках"]},"Skip to main content":{v:["Перейти одразу до головного вмісту"]}}},{l:"uz",t:{"Keyboard navigation help":{v:["Klaviatura navigatsiyasi yordami"]},"Skip to app navigation":{v:["Ilova navigatsiyasiga oʻtish"]},"Skip to main content":{v:["Asosiy tarkibga o'tish"]}}},{l:"zh-CN",t:{"Keyboard navigation help":{v:["键盘导航栏帮助"]},"Skip to app navigation":{v:["跳转至应用程序导航页"]},"Skip to main content":{v:["跳转至主要内容"]}}},{l:"zh-HK",t:{"Keyboard navigation help":{v:["鍵盤導航幫助"]},"Skip to app navigation":{v:["跳至應用程式導航"]},"Skip to main content":{v:["跳至主要內容"]}}},{l:"zh-TW",t:{"Keyboard navigation help":{v:["鍵盤導航說明"]},"Skip to app navigation":{v:["略過應用程式導覽"]},"Skip to main content":{v:["跳至主要內容"]}}}],XE=[{l:"ar",t:{"Loading …":{v:["التحميل جارٍ ..."]}}},{l:"ast",t:{}},{l:"br",t:{}},{l:"ca",t:{}},{l:"cs",t:{"Loading …":{v:["Načítání …"]}}},{l:"cs-CZ",t:{}},{l:"da",t:{"Loading …":{v:["Indlæser ..."]}}},{l:"de",t:{"Loading …":{v:["Wird geladen …"]}}},{l:"de-DE",t:{"Loading …":{v:["Wird geladen …"]}}},{l:"el",t:{"Loading …":{v:["Φόρτωση  …"]}}},{l:"en-GB",t:{"Loading …":{v:["Loading …"]}}},{l:"eo",t:{}},{l:"es",t:{}},{l:"es-AR",t:{}},{l:"es-EC",t:{}},{l:"es-MX",t:{}},{l:"et-EE",t:{"Loading …":{v:["Laadin…"]}}},{l:"eu",t:{}},{l:"fa",t:{"Loading …":{v:["در حال بارگذاری ..."]}}},{l:"fi",t:{"Loading …":{v:["Ladataan ..."]}}},{l:"fr",t:{"Loading …":{v:["Chargement..."]}}},{l:"ga",t:{"Loading …":{v:["Ag lódáil …"]}}},{l:"gl",t:{"Loading …":{v:["Cargando…"]}}},{l:"he",t:{}},{l:"hr",t:{"Loading …":{v:["Učitavanje …"]}}},{l:"hu",t:{"Loading …":{v:["Betöltés…"]}}},{l:"id",t:{"Loading …":{v:["Memuat …"]}}},{l:"is",t:{"Loading …":{v:["Hleð inn …"]}}},{l:"it",t:{}},{l:"ja",t:{"Loading …":{v:["読み込み中 …"]}}},{l:"ja-JP",t:{}},{l:"ko",t:{"Loading …":{v:["로딩 중 ..."]}}},{l:"lo",t:{"Loading …":{v:["ກຳລັງໂຫຼດ…"]}}},{l:"lt-LT",t:{"Loading …":{v:["Įkeliama …"]}}},{l:"lv",t:{}},{l:"mk",t:{"Loading …":{v:["Вчитување …"]}}},{l:"mn",t:{"Loading …":{v:["Ачаалж байна …"]}}},{l:"my",t:{}},{l:"nb",t:{"Loading …":{v:["Laster inn..."]}}},{l:"nl",t:{"Loading …":{v:["Laden …"]}}},{l:"oc",t:{}},{l:"pl",t:{"Loading …":{v:["Wczytywanie…"]}}},{l:"pt-BR",t:{"Loading …":{v:["Carregando …"]}}},{l:"pt-PT",t:{"Loading …":{v:["A carregar..."]}}},{l:"ro",t:{}},{l:"ru",t:{"Loading …":{v:["Загрузка …"]}}},{l:"sk",t:{"Loading …":{v:["Nahrávam ..."]}}},{l:"sl",t:{}},{l:"sr",t:{"Loading …":{v:["Учитава се…"]}}},{l:"sv",t:{"Loading …":{v:["Laddar …"]}}},{l:"tr",t:{"Loading …":{v:["Yükleniyor…"]}}},{l:"uk",t:{"Loading …":{v:["Завантаження …"]}}},{l:"uz",t:{"Loading …":{v:["Yuklanmoqda..."]}}},{l:"zh-CN",t:{"Loading …":{v:["加载中..."]}}},{l:"zh-HK",t:{"Loading …":{v:["加載中 …"]}}},{l:"zh-TW",t:{"Loading …":{v:["載入中......"]}}}],ZE=[{l:"ar",t:{Next:{v:["التالي"]},"Pause slideshow":{v:["تجميد عرض الشرائح"]},Previous:{v:["السابق"]},"Start slideshow":{v:["إبدإ العرض"]}}},{l:"ast",t:{Next:{v:["Siguiente"]},"Pause slideshow":{v:["Posar la presentación de diapositives"]},Previous:{v:["Anterior"]},"Start slideshow":{v:["Aniciar la presentación de diapositives"]}}},{l:"br",t:{Next:{v:["Da heul"]},"Pause slideshow":{v:["Arsav an diaporama"]},Previous:{v:["A-raok"]},"Start slideshow":{v:["Kregiñ an diaporama"]}}},{l:"ca",t:{Next:{v:["Següent"]},"Pause slideshow":{v:["Atura la presentació"]},Previous:{v:["Anterior"]},"Start slideshow":{v:["Inicia la presentació"]}}},{l:"cs",t:{Next:{v:["Následující"]},"Pause slideshow":{v:["Pozastavit prezentaci"]},Previous:{v:["Předchozí"]},"Start slideshow":{v:["Spustit prezentaci"]}}},{l:"cs-CZ",t:{Next:{v:["Následující"]},"Pause slideshow":{v:["Pozastavit prezentaci"]},Previous:{v:["Předchozí"]},"Start slideshow":{v:["Spustit prezentaci"]}}},{l:"da",t:{Next:{v:["Videre"]},"Pause slideshow":{v:["Suspender fremvisning"]},Previous:{v:["Forrige"]},"Start slideshow":{v:["Start fremvisning"]}}},{l:"de",t:{Next:{v:["Weiter"]},"Pause slideshow":{v:["Diashow pausieren"]},Previous:{v:["Vorherige"]},"Start slideshow":{v:["Diashow starten"]}}},{l:"de-DE",t:{Next:{v:["Weiter"]},"Pause slideshow":{v:["Diashow pausieren"]},Previous:{v:["Vorherige"]},"Start slideshow":{v:["Diashow starten"]}}},{l:"el",t:{Next:{v:["Επόμενο"]},"Pause slideshow":{v:["Παύση προβολής διαφανειών"]},Previous:{v:["Προηγούμενο"]},"Start slideshow":{v:["Έναρξη προβολής διαφανειών"]}}},{l:"en-GB",t:{Next:{v:["Next"]},"Pause slideshow":{v:["Pause slideshow"]},Previous:{v:["Previous"]},"Start slideshow":{v:["Start slideshow"]}}},{l:"eo",t:{Next:{v:["Sekva"]},"Pause slideshow":{v:["Payzi bildprezenton"]},Previous:{v:["Antaŭa"]},"Start slideshow":{v:["Komenci bildprezenton"]}}},{l:"es",t:{Next:{v:["Siguiente"]},"Pause slideshow":{v:["Pausar la presentación "]},Previous:{v:["Anterior"]},"Start slideshow":{v:["Iniciar la presentación"]}}},{l:"es-AR",t:{Next:{v:["Siguiente"]},"Pause slideshow":{v:["Pausar la presentación "]},Previous:{v:["Anterior"]},"Start slideshow":{v:["Iniciar la presentación"]}}},{l:"es-EC",t:{Next:{v:["Siguiente"]},"Pause slideshow":{v:["Pausar presentación de diapositivas"]},Previous:{v:["Anterior"]},"Start slideshow":{v:["Iniciar presentación de diapositivas"]}}},{l:"es-MX",t:{Next:{v:["Siguiente"]},"Pause slideshow":{v:["Pausar presentación de diapositivas"]},Previous:{v:["Anterior"]},"Start slideshow":{v:["Iniciar presentación de diapositivas"]}}},{l:"et-EE",t:{Next:{v:["Edasi"]},"Pause slideshow":{v:["Slaidiesitluse paus"]},Previous:{v:["Eelmine"]},"Start slideshow":{v:["Alusta slaidiesitust"]}}},{l:"eu",t:{Next:{v:["Hurrengoa"]},"Pause slideshow":{v:["Pausatu diaporama"]},Previous:{v:["Aurrekoa"]},"Start slideshow":{v:["Hasi diaporama"]}}},{l:"fa",t:{Next:{v:["بعدی"]},"Pause slideshow":{v:["توقف نمایش اسلاید"]},Previous:{v:["قبلی"]},"Start slideshow":{v:["شروع نمایش اسلاید"]}}},{l:"fi",t:{Next:{v:["Seuraava"]},"Pause slideshow":{v:["Keskeytä diaesitys"]},Previous:{v:["Edellinen"]},"Start slideshow":{v:["Aloita diaesitys"]}}},{l:"fr",t:{Next:{v:["Suivant"]},"Pause slideshow":{v:["Mettre le diaporama en pause"]},Previous:{v:["Précédent"]},"Start slideshow":{v:["Démarrer le diaporama"]}}},{l:"ga",t:{Next:{v:["Ar aghaidh"]},"Pause slideshow":{v:["Cuir taispeántas sleamhnán ar sos"]},Previous:{v:["Roimhe Seo"]},"Start slideshow":{v:["Tosaigh taispeántas sleamhnán"]}}},{l:"gl",t:{Next:{v:["Seguinte"]},"Pause slideshow":{v:["Pausar o diaporama"]},Previous:{v:["Anterir"]},"Start slideshow":{v:["Iniciar o diaporama"]}}},{l:"he",t:{Next:{v:["הבא"]},"Pause slideshow":{v:["השהיית מצגת"]},Previous:{v:["הקודם"]},"Start slideshow":{v:["התחלת המצגת"]}}},{l:"hr",t:{Next:{v:["Sljedeće"]},"Pause slideshow":{v:["Pauziraj dijaprojekciju"]},Previous:{v:["Prethodno"]},"Start slideshow":{v:["Pokreni dijaprojekciju"]}}},{l:"hu",t:{Next:{v:["Következő"]},"Pause slideshow":{v:["Diavetítés szüneteltetése"]},Previous:{v:["Előző"]},"Start slideshow":{v:["Diavetítés indítása"]}}},{l:"id",t:{Next:{v:["Selanjutnya"]},"Pause slideshow":{v:["Jeda tayangan slide"]},Previous:{v:["Sebelumnya"]},"Start slideshow":{v:["Mulai salindia"]}}},{l:"is",t:{Next:{v:["Næsta"]},"Pause slideshow":{v:["Gera hlé á skyggnusýningu"]},Previous:{v:["Fyrri"]},"Start slideshow":{v:["Byrja skyggnusýningu"]}}},{l:"it",t:{Next:{v:["Successivo"]},"Pause slideshow":{v:["Presentazione in pausa"]},Previous:{v:["Precedente"]},"Start slideshow":{v:["Avvia presentazione"]}}},{l:"ja",t:{Next:{v:["次"]},"Pause slideshow":{v:["スライドショーを一時停止"]},Previous:{v:["前"]},"Start slideshow":{v:["スライドショーを開始"]}}},{l:"ja-JP",t:{Next:{v:["次"]},"Pause slideshow":{v:["スライドショーを一時停止"]},Previous:{v:["前"]},"Start slideshow":{v:["スライドショーを開始"]}}},{l:"ko",t:{Next:{v:["다음"]},"Pause slideshow":{v:["슬라이드쇼 일시정지"]},Previous:{v:["이전"]},"Start slideshow":{v:["슬라이드쇼 시작"]}}},{l:"lo",t:{Next:{v:["ຕໍ່ໄປ"]},"Pause slideshow":{v:["ຢຸດສະໄລ້ໂຊຊົ່ວຄາວ"]},Previous:{v:["ກ່ອນໜ້າ"]},"Start slideshow":{v:["ເລີ່ມສະໄລ້ໂຊ"]}}},{l:"lt-LT",t:{Next:{v:["Kitas"]},"Pause slideshow":{v:["Pristabdyti skaidrių rodymą"]},Previous:{v:["Ankstesnis"]},"Start slideshow":{v:["Pradėti skaidrių rodymą"]}}},{l:"lv",t:{Next:{v:["Nākamais"]},"Pause slideshow":{v:["Pauzēt slaidrādi"]},Previous:{v:["Iepriekšējais"]},"Start slideshow":{v:["Sākt slaidrādi"]}}},{l:"mk",t:{Next:{v:["Следно"]},"Pause slideshow":{v:["Пузирај слајдшоу"]},Previous:{v:["Предходно"]},"Start slideshow":{v:["Стартувај слајдшоу"]}}},{l:"mn",t:{Next:{v:["Дараах"]},"Pause slideshow":{v:["Слайд шоуг түр зогсоох"]},Previous:{v:["Өмнөх"]},"Start slideshow":{v:["Слайд шоуг эхлүүлэх"]}}},{l:"my",t:{Next:{v:["နောက်သို့ဆက်ရန်"]},"Pause slideshow":{v:["စလိုက်ရှိုး ခေတ္တရပ်ရန်"]},Previous:{v:["ယခင်"]},"Start slideshow":{v:["စလိုက်ရှိုးအား စတင်ရန်"]}}},{l:"nb",t:{Next:{v:["Neste"]},"Pause slideshow":{v:["Pause lysbildefremvisning"]},Previous:{v:["Forrige"]},"Start slideshow":{v:["Start lysbildefremvisning"]}}},{l:"nl",t:{Next:{v:["Volgende"]},"Pause slideshow":{v:["Diavoorstelling pauzeren"]},Previous:{v:["Vorige"]},"Start slideshow":{v:["Diavoorstelling starten"]}}},{l:"oc",t:{Next:{v:["Seguent"]},"Pause slideshow":{v:["Metre en pausa lo diaporama"]},Previous:{v:["Precedent"]},"Start slideshow":{v:["Lançar lo diaporama"]}}},{l:"pl",t:{Next:{v:["Następny"]},"Pause slideshow":{v:["Wstrzymaj pokaz slajdów"]},Previous:{v:["Poprzedni"]},"Start slideshow":{v:["Rozpocznij pokaz slajdów"]}}},{l:"pt-BR",t:{Next:{v:["Próximo"]},"Pause slideshow":{v:["Pausar apresentação de slides"]},Previous:{v:["Anterior"]},"Start slideshow":{v:["Iniciar apresentação de slides"]}}},{l:"pt-PT",t:{Next:{v:["Seguinte"]},"Pause slideshow":{v:["Pausar diaporama"]},Previous:{v:["Anterior"]},"Start slideshow":{v:["Iniciar diaporama"]}}},{l:"ro",t:{Next:{v:["Următorul"]},"Pause slideshow":{v:["Pauză prezentare de diapozitive"]},Previous:{v:["Anterior"]},"Start slideshow":{v:["Începeți prezentarea de diapozitive"]}}},{l:"ru",t:{Next:{v:["Следующее"]},"Pause slideshow":{v:["Приостановить показ слйдов"]},Previous:{v:["Предыдущее"]},"Start slideshow":{v:["Начать показ слайдов"]}}},{l:"sk",t:{Next:{v:["Ďalej"]},"Pause slideshow":{v:["Pozastaviť prezentáciu"]},Previous:{v:["Predchádzajúce"]},"Start slideshow":{v:["Začať prezentáciu"]}}},{l:"sl",t:{Next:{v:["Naslednji"]},"Pause slideshow":{v:["Ustavi predstavitev"]},Previous:{v:["Predhodni"]},"Start slideshow":{v:["Začni predstavitev"]}}},{l:"sr",t:{Next:{v:["Следеће"]},"Pause slideshow":{v:["Паузирај слајд шоу"]},Previous:{v:["Претходно"]},"Start slideshow":{v:["Покрени слајд шоу"]}}},{l:"sv",t:{Next:{v:["Nästa"]},"Pause slideshow":{v:["Pausa bildspelet"]},Previous:{v:["Föregående"]},"Start slideshow":{v:["Starta bildspelet"]}}},{l:"tr",t:{Next:{v:["Sonraki"]},"Pause slideshow":{v:["Slayt sunumunu duraklat"]},Previous:{v:["Önceki"]},"Start slideshow":{v:["Slayt sunumunu başlat"]}}},{l:"uk",t:{Next:{v:["Вперед"]},"Pause slideshow":{v:["Пауза у показі слайдів"]},Previous:{v:["Назад"]},"Start slideshow":{v:["Почати показ слайдів"]}}},{l:"uz",t:{Next:{v:["Keyingi"]},"Pause slideshow":{v:["Slayd-shouni to'xtatib turish"]},Previous:{v:["Oldingi"]},"Start slideshow":{v:["Slayd-shouni boshlash"]}}},{l:"zh-CN",t:{Next:{v:["下一个"]},"Pause slideshow":{v:["暂停幻灯片"]},Previous:{v:["上一个"]},"Start slideshow":{v:["开始幻灯片"]}}},{l:"zh-HK",t:{Next:{v:["下一個"]},"Pause slideshow":{v:["暫停幻燈片"]},Previous:{v:["上一個"]},"Start slideshow":{v:["開始幻燈片"]}}},{l:"zh-TW",t:{Next:{v:["下一個"]},"Pause slideshow":{v:["暫停幻燈片"]},Previous:{v:["上一個"]},"Start slideshow":{v:["開始幻燈片"]}}}],YE=[{l:"ar",t:{}},{l:"ast",t:{}},{l:"br",t:{}},{l:"ca",t:{}},{l:"cs",t:{"Search …":{v:["Hledat …"]}}},{l:"cs-CZ",t:{}},{l:"da",t:{"Search …":{v:["Søg ..."]}}},{l:"de",t:{"Search …":{v:["Suche …"]}}},{l:"de-DE",t:{"Search …":{v:["Suche …"]}}},{l:"el",t:{"Search …":{v:["Αναζήτηση …"]}}},{l:"en-GB",t:{"Search …":{v:["Search …"]}}},{l:"eo",t:{}},{l:"es",t:{}},{l:"es-AR",t:{}},{l:"es-EC",t:{}},{l:"es-MX",t:{}},{l:"et-EE",t:{"Search …":{v:["Otsi…"]}}},{l:"eu",t:{}},{l:"fa",t:{}},{l:"fi",t:{}},{l:"fr",t:{"Search …":{v:["Rechercher…"]}}},{l:"ga",t:{"Search …":{v:["Cuardaigh …"]}}},{l:"gl",t:{"Search …":{v:["Buscar…"]}}},{l:"he",t:{}},{l:"hr",t:{"Search …":{v:["Traži …"]}}},{l:"hu",t:{"Search …":{v:["Keresés…"]}}},{l:"id",t:{"Search …":{v:["Cari …"]}}},{l:"is",t:{}},{l:"it",t:{}},{l:"ja",t:{"Search …":{v:["検索…"]}}},{l:"ja-JP",t:{}},{l:"ko",t:{"Search …":{v:["찾는 중 ..."]}}},{l:"lo",t:{"Search …":{v:["ຄົ້ນຫາ…"]}}},{l:"lt-LT",t:{"Search …":{v:["Ieškoti …"]}}},{l:"lv",t:{}},{l:"mk",t:{"Search …":{v:["Барај…"]}}},{l:"mn",t:{"Search …":{v:["Хайх …"]}}},{l:"my",t:{}},{l:"nb",t:{}},{l:"nl",t:{"Search …":{v:["Zoeken …"]}}},{l:"oc",t:{}},{l:"pl",t:{}},{l:"pt-BR",t:{"Search …":{v:["Pesquisar …"]}}},{l:"pt-PT",t:{}},{l:"ro",t:{}},{l:"ru",t:{"Search …":{v:["Поиск …"]}}},{l:"sk",t:{}},{l:"sl",t:{}},{l:"sr",t:{"Search …":{v:["Претражи…"]}}},{l:"sv",t:{"Search …":{v:["Sök …"]}}},{l:"tr",t:{"Search …":{v:["Ara…"]}}},{l:"uk",t:{}},{l:"uz",t:{"Search …":{v:["Izlash..."]}}},{l:"zh-CN",t:{}},{l:"zh-HK",t:{"Search …":{v:["搜尋 …"]}}},{l:"zh-TW",t:{"Search …":{v:["搜尋......"]}}}],tm=[{l:"ar",t:{"Undo changes":{v:["تراجَع عن التغييرات"]}}},{l:"ast",t:{"Undo changes":{v:["Desfacer los cambeos"]}}},{l:"br",t:{}},{l:"ca",t:{"Undo changes":{v:["Desfés els canvis"]}}},{l:"cs",t:{"Undo changes":{v:["Vzít změny zpět"]}}},{l:"cs-CZ",t:{"Undo changes":{v:["Vzít změny zpět"]}}},{l:"da",t:{"Undo changes":{v:["Fortryd ændringer"]}}},{l:"de",t:{"Undo changes":{v:["Änderungen rückgängig machen"]}}},{l:"de-DE",t:{"Undo changes":{v:["Änderungen rückgängig machen"]}}},{l:"el",t:{"Undo changes":{v:["Αναίρεση Αλλαγών"]}}},{l:"en-GB",t:{"Undo changes":{v:["Undo changes"]}}},{l:"eo",t:{}},{l:"es",t:{"Undo changes":{v:["Deshacer cambios"]}}},{l:"es-AR",t:{"Undo changes":{v:["Deshacer cambios"]}}},{l:"es-EC",t:{"Undo changes":{v:["Deshacer cambios"]}}},{l:"es-MX",t:{"Undo changes":{v:["Deshacer cambios"]}}},{l:"et-EE",t:{"Undo changes":{v:["Pööra muudatused tagasi"]}}},{l:"eu",t:{"Undo changes":{v:["Aldaketak desegin"]}}},{l:"fa",t:{"Undo changes":{v:["لغو تغییرات"]}}},{l:"fi",t:{"Undo changes":{v:["Kumoa muutokset"]}}},{l:"fr",t:{"Undo changes":{v:["Annuler les changements"]}}},{l:"ga",t:{"Undo changes":{v:["Cealaigh athruithe"]}}},{l:"gl",t:{"Undo changes":{v:["Desfacer os cambios"]}}},{l:"he",t:{"Undo changes":{v:["ביטול שינויים"]}}},{l:"hr",t:{"Undo changes":{v:["Poništi promjene"]}}},{l:"hu",t:{"Undo changes":{v:["Változtatások visszavonása"]}}},{l:"id",t:{"Undo changes":{v:["Urungkan perubahan"]}}},{l:"is",t:{"Undo changes":{v:["Afturkalla breytingar"]}}},{l:"it",t:{"Undo changes":{v:["Cancella i cambiamenti"]}}},{l:"ja",t:{"Undo changes":{v:["変更を取り消し"]}}},{l:"ja-JP",t:{"Undo changes":{v:["変更を取り消し"]}}},{l:"ko",t:{"Undo changes":{v:["변경 되돌리기"]}}},{l:"lo",t:{"Undo changes":{v:["ຍ້ອນຄືນການປ່ຽນແປງ"]}}},{l:"lt-LT",t:{"Undo changes":{v:["Atšaukti pakeitimus"]}}},{l:"lv",t:{}},{l:"mk",t:{"Undo changes":{v:["Врати ги промените"]}}},{l:"mn",t:{"Undo changes":{v:["Өөрчлөлтийг буцаах"]}}},{l:"my",t:{}},{l:"nb",t:{"Undo changes":{v:["Tilbakestill endringer"]}}},{l:"nl",t:{"Undo changes":{v:["Wijzigingen ongedaan maken"]}}},{l:"oc",t:{}},{l:"pl",t:{"Undo changes":{v:["Cofnij zmiany"]}}},{l:"pt-BR",t:{"Undo changes":{v:["Desfazer modificações"]}}},{l:"pt-PT",t:{"Undo changes":{v:["Anular alterações"]}}},{l:"ro",t:{"Undo changes":{v:["Anularea modificărilor"]}}},{l:"ru",t:{"Undo changes":{v:["Отменить изменения"]}}},{l:"sk",t:{"Undo changes":{v:["Vrátiť zmeny"]}}},{l:"sl",t:{"Undo changes":{v:["Razveljavi spremembe"]}}},{l:"sr",t:{"Undo changes":{v:["Поништи измене"]}}},{l:"sv",t:{"Undo changes":{v:["Ångra ändringar"]}}},{l:"tr",t:{"Undo changes":{v:["Değişiklikleri geri al"]}}},{l:"uk",t:{"Undo changes":{v:["Скасувати зміни"]}}},{l:"uz",t:{"Undo changes":{v:["O'zgarishlarni bekor qilish"]}}},{l:"zh-CN",t:{"Undo changes":{v:["撤销更改"]}}},{l:"zh-HK",t:{"Undo changes":{v:["取消更改"]}}},{l:"zh-TW",t:{"Undo changes":{v:["還原變更"]}}}],[JE]=window.OC?.config?.version?.split(".")??[],nm=Number.parseInt(JE??"34"),Gl=nm<32,uo=nm<34,QE=Symbol.for("NcFormBox:context");function ew(){return rt(QE,{isInFormBox:!1,formBoxItemClass:void 0})}const He=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},tw={class:"button-vue__wrapper"},nw={class:"button-vue__icon"},rw={class:"button-vue__text"},ow=We({__name:"NcButton",props:{alignment:{default:"center"},ariaLabel:{default:void 0},disabled:{type:Boolean},download:{type:[String,Boolean],default:void 0},href:{default:void 0},pressed:{type:Boolean,default:void 0},size:{default:"normal"},target:{default:"_self"},text:{default:void 0},to:{default:void 0},type:{default:"button"},variant:{default:"secondary"},wide:{type:Boolean}},emits:["click","update:pressed"],setup(e,{emit:t}){const n=e,r=t,{formBoxItemClass:o}=ew(),s=rt(ha,null)!==null,a=se(()=>s&&n.to?"RouterLink":n.href?"a":"button"),i=se(()=>a.value==="button"&&typeof n.pressed=="boolean"),u=se(()=>n.pressed?"primary":n.pressed===!1&&n.variant==="primary"?"secondary":n.variant),c=se(()=>u.value.startsWith("tertiary")),l=se(()=>n.alignment.split("-")[0]),d=se(()=>n.alignment.includes("-")),p=rt("NcPopover:trigger:attrs",()=>({}),!1),h=se(()=>p()),g=se(()=>{if(a.value==="RouterLink")return{to:n.to,activeClass:"active"};if(a.value==="a")return{href:n.href||"#",target:n.target,rel:"nofollow noreferrer noopener",download:n.download||void 0};if(a.value==="button")return{...h.value,"aria-pressed":n.pressed,type:n.type,disabled:n.disabled}});function f(m){i.value&&r("update:pressed",!n.pressed),r("click",m)}return(m,y)=>($(),ge(la(a.value),ft({class:["button-vue",[`button-vue--size-${m.size}`,{[`button-vue--${u.value}`]:u.value,"button-vue--tertiary":c.value,"button-vue--wide":m.wide,[`button-vue--${l.value}`]:l.value!=="center","button-vue--reverse":d.value,"button-vue--legacy":j(Gl),"button-vue--legacy34":j(uo)},j(o)]],"aria-label":m.ariaLabel},g.value,{onClick:f}),{default:pe(()=>[ue("span",tw,[ue("span",nw,[ye(m.$slots,"icon",{},void 0,!0)]),ue("span",rw,[ye(m.$slots,"default",{},()=>[wt(xe(m.text),1)],!0)])])]),_:3},16,["class","aria-label"]))}}),Qe=He(ow,[["__scopeId","data-v-18f6cf03"]]),sw=["aria-hidden","aria-label"],aw={key:0,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},iw=["d"],uw=["innerHTML"],lw=We({__name:"NcIconSvgWrapper",props:{directional:{type:Boolean},inline:{type:Boolean},svg:{default:""},name:{default:void 0},path:{default:""},size:{default:20}},setup(e){hg(o=>({fb515064:n.value}));const t=e,n=se(()=>typeof t.size=="number"?`${t.size}px`:t.size),r=se(()=>{if(!t.svg||t.path)return;const o=Wg.sanitize(t.svg),s=new DOMParser().parseFromString(o,"image/svg+xml");return s.querySelector("parsererror")?"":(s.documentElement.id&&s.documentElement.removeAttribute("id"),s.documentElement.outerHTML)});return(o,s)=>($(),X("span",{"aria-hidden":o.name?void 0:"true","aria-label":o.name||void 0,class:Be(["icon-vue",{"icon-vue--directional":o.directional,"icon-vue--inline":o.inline}]),role:"img"},[r.value?($(),X("span",{key:1,innerHTML:r.value},null,8,uw)):($(),X("svg",aw,[ue("path",{d:o.path},null,8,iw)]))],10,sw))}}),Ve=He(lw,[["__scopeId","data-v-aaedb1c3"]]);var ut=(e=>(e[e.Debug=0]="Debug",e[e.Info=1]="Info",e[e.Warn=2]="Warn",e[e.Error=3]="Error",e[e.Fatal=4]="Fatal",e))(ut||{});class cw{context;constructor(t){this.context=t||{}}formatMessage(t,n,r){let o="["+ut[n].toUpperCase()+"] ";return r&&r.app&&(o+=r.app+": "),typeof t=="string"?o+t:(o+=`Unexpected ${t.name}`,t.message&&(o+=` "${t.message}"`),n===ut.Debug&&t.stack&&(o+=` +const h1="office",f1="1.1.0",er=globalThis||void 0||self;function yc(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Re={},Qr=[],pn=()=>{},G0=()=>!1,Ri=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Fi=e=>e.startsWith("onUpdate:"),ct=Object.assign,bc=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},g1=Object.prototype.hasOwnProperty,ze=(e,t)=>g1.call(e,t),be=Array.isArray,Ar=e=>aa(e)==="[object Map]",Qa=e=>aa(e)==="[object Set]",Pd=e=>aa(e)==="[object Date]",Ce=e=>typeof e=="function",Ke=e=>typeof e=="string",on=e=>typeof e=="symbol",Me=e=>e!==null&&typeof e=="object",W0=e=>(Me(e)||Ce(e))&&Ce(e.then)&&Ce(e.catch),q0=Object.prototype.toString,aa=e=>q0.call(e),m1=e=>aa(e).slice(8,-1),K0=e=>aa(e)==="[object Object]",Li=e=>Ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_s=yc(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ii=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},v1=/-\w/g,Rt=Ii(e=>e.replace(v1,t=>t.slice(1).toUpperCase())),y1=/\B([A-Z])/g,cr=Ii(e=>e.replace(y1,"-$1").toLowerCase()),Mi=Ii(e=>e.charAt(0).toUpperCase()+e.slice(1)),za=Ii(e=>e?`on${Mi(e)}`:""),At=(e,t)=>!Object.is(e,t),Ua=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Ec=e=>{const t=parseFloat(e);return isNaN(t)?e:t},b1=e=>{const t=Ke(e)?Number(e):NaN;return isNaN(t)?e:t};let Bd;const ei=()=>Bd||(Bd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof er<"u"?er:{});function hn(e){if(be(e)){const t={};for(let n=0;nn.startsWith("/*")?"":n).split(E1).forEach(n=>{if(n){const r=n.split(w1);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Be(e){let t="";if(Ke(e))t=e;else if(be(e))for(let n=0;n!!(e&&e.__v_isRef===!0),xe=e=>Ke(e)?e:e==null?"":be(e)||Me(e)&&(e.toString===q0||!Ce(e.toString))?Y0(e)?xe(e.value):JSON.stringify(e,J0,2):String(e),J0=(e,t)=>Y0(t)?J0(e,t.value):Ar(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[Cu(r,s)+" =>"]=o,n),{})}:Qa(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Cu(n))}:on(t)?Cu(t):Me(t)&&!be(t)&&!K0(t)?String(t):t,Cu=(e,t="")=>{var n;return on(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function O1(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}let pt;class D1{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&pt&&(pt.active?(this.parent=pt,this.index=(pt.scopes||(pt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const r=this.scopes.slice();for(t=0,n=r.length;t0&&--this._on===0){if(pt===this)pt=this.prevScope;else{let t=pt;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n0)return;if(ks){let t=ks;for(ks=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ss;){let t=Ss;for(Ss=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function rf(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function of(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),xc(r),P1(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Al(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(sf(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function sf(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===zs)||(e.globalVersion=zs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Al(e))))return;e.flags|=2;const t=e.dep,n=qe,r=Cn;qe=e,Cn=!0;try{rf(e);const o=e.fn(e._value);(t.version===0||At(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{qe=n,Cn=r,of(e),e.flags&=-3}}function xc(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)xc(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function P1(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Cn=!0;const af=[];function sr(){af.push(Cn),Cn=!1}function ar(){const e=af.pop();Cn=e===void 0?!0:e}function Rd(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=qe;qe=void 0;try{t()}finally{qe=n}}}let zs=0;class B1{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class zi{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!qe||!Cn||qe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==qe)n=this.activeLink=new B1(qe,this),qe.deps?(n.prevDep=qe.depsTail,qe.depsTail.nextDep=n,qe.depsTail=n):qe.deps=qe.depsTail=n,uf(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=qe.depsTail,n.nextDep=void 0,qe.depsTail.nextDep=n,qe.depsTail=n,qe.deps===n&&(qe.deps=r)}return n}trigger(t){this.version++,zs++,this.notify(t)}notify(t){wc();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Cc()}}}function uf(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)uf(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ti=new WeakMap,no=Symbol(""),_l=Symbol(""),Us=Symbol("");function Nt(e,t,n){if(Cn&&qe){let r=ti.get(e);r||ti.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new zi),o.map=r,o.key=n),o.track()}}function Yn(e,t,n,r,o,s){const a=ti.get(e);if(!a){zs++;return}const i=u=>{u&&u.trigger()};if(wc(),t==="clear")a.forEach(i);else{const u=be(e),c=u&&Li(n);if(u&&n==="length"){const l=Number(r);a.forEach((d,p)=>{(p==="length"||p===Us||!on(p)&&p>=l)&&i(d)})}else switch((n!==void 0||a.has(void 0))&&i(a.get(n)),c&&i(a.get(Us)),t){case"add":u?c&&i(a.get("length")):(i(a.get(no)),Ar(e)&&i(a.get(_l)));break;case"delete":u||(i(a.get(no)),Ar(e)&&i(a.get(_l)));break;case"set":Ar(e)&&i(a.get(no));break}}Cc()}function $1(e,t){const n=ti.get(e);return n&&n.get(t)}function Eo(e){const t=Fe(e);return t===e||(Nt(t,"iterate",Us),rn(e))?t:Mn(e)?_r(e)?t.map(n=>so(fn(n))):t.map(so):t.map(fn)}function Ui(e){return Nt(e=Fe(e),"iterate",Us),e}function Bn(e,t){return Mn(e)?so(_r(e)?fn(t):t):fn(t)}const R1={__proto__:null,[Symbol.iterator](){return Au(this,Symbol.iterator,e=>Bn(this,e))},concat(...e){return Eo(this).concat(...e.map(t=>be(t)?Eo(t):t))},entries(){return Au(this,"entries",e=>(e[1]=Bn(this,e[1]),e))},every(e,t){return Hn(this,"every",e,t,void 0,arguments)},filter(e,t){return Hn(this,"filter",e,t,n=>n.map(r=>Bn(this,r)),arguments)},find(e,t){return Hn(this,"find",e,t,n=>Bn(this,n),arguments)},findIndex(e,t){return Hn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Hn(this,"findLast",e,t,n=>Bn(this,n),arguments)},findLastIndex(e,t){return Hn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Hn(this,"forEach",e,t,void 0,arguments)},includes(...e){return _u(this,"includes",e)},indexOf(...e){return _u(this,"indexOf",e)},join(e){return Eo(this).join(e)},lastIndexOf(...e){return _u(this,"lastIndexOf",e)},map(e,t){return Hn(this,"map",e,t,void 0,arguments)},pop(){return es(this,"pop")},push(...e){return es(this,"push",e)},reduce(e,...t){return Fd(this,"reduce",e,t)},reduceRight(e,...t){return Fd(this,"reduceRight",e,t)},shift(){return es(this,"shift")},some(e,t){return Hn(this,"some",e,t,void 0,arguments)},splice(...e){return es(this,"splice",e)},toReversed(){return Eo(this).toReversed()},toSorted(e){return Eo(this).toSorted(e)},toSpliced(...e){return Eo(this).toSpliced(...e)},unshift(...e){return es(this,"unshift",e)},values(){return Au(this,"values",e=>Bn(this,e))}};function Au(e,t,n){const r=Ui(e),o=r[t]();return r!==e&&!rn(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.done||(s.value=n(s.value)),s}),o}const F1=Array.prototype;function Hn(e,t,n,r,o,s){const a=Ui(e),i=a!==e&&!rn(e),u=a[t];if(u!==F1[t]){const d=u.apply(e,s);return i?fn(d):d}let c=n;a!==e&&(i?c=function(d,p){return n.call(this,Bn(e,d),p,e)}:n.length>2&&(c=function(d,p){return n.call(this,d,p,e)}));const l=u.call(a,c,r);return i&&o?o(l):l}function Fd(e,t,n,r){const o=Ui(e),s=o!==e&&!rn(e);let a=n,i=!1;o!==e&&(s?(i=r.length===0,a=function(c,l,d){return i&&(i=!1,c=Bn(e,c)),n.call(this,c,Bn(e,l),d,e)}):n.length>3&&(a=function(c,l,d){return n.call(this,c,l,d,e)}));const u=o[t](a,...r);return i?Bn(e,u):u}function _u(e,t,n){const r=Fe(e);Nt(r,"iterate",Us);const o=r[t](...n);return(o===-1||o===!1)&&Gi(n[0])?(n[0]=Fe(n[0]),r[t](...n)):o}function es(e,t,n=[]){sr(),wc();const r=Fe(e)[t].apply(e,n);return Cc(),ar(),r}const L1=yc("__proto__,__v_isRef,__isVue"),lf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(on));function I1(e){on(e)||(e=String(e));const t=Fe(this);return Nt(t,"has",e),t.hasOwnProperty(e)}class cf{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(o?s?mf:gf:s?ff:hf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=be(t);if(!o){let u;if(a&&(u=R1[n]))return u;if(n==="hasOwnProperty")return I1}const i=Reflect.get(t,n,lt(t)?t:r);if((on(n)?lf.has(n):L1(n))||(o||Nt(t,"get",n),s))return i;if(lt(i)){const u=a&&Li(n)?i:i.value;return o&&Me(u)?Vs(u):u}return Me(i)?o?Vs(i):Io(i):i}}class df extends cf{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];const a=be(t)&&Li(n);if(!this._isShallow){const c=Mn(s);if(!rn(r)&&!Mn(r)&&(s=Fe(s),r=Fe(r)),!a&<(s)&&!lt(r))return c||(s.value=r),!0}const i=a?Number(n)e,ka=e=>Reflect.getPrototypeOf(e);function V1(e,t,n){return function(...r){const o=this.__v_raw,s=Fe(o),a=Ar(s),i=e==="entries"||e===Symbol.iterator&&a,u=e==="keys"&&a,c=o[e](...r),l=n?Sl:t?so:fn;return!t&&Nt(s,"iterate",u?_l:no),ct(Object.create(c),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:i?[l(d[0]),l(d[1])]:l(d),done:p}}})}}function Ta(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function H1(e,t){const n={get(r){const o=this.__v_raw,s=Fe(o),a=Fe(r);e||(At(r,a)&&Nt(s,"get",r),Nt(s,"get",a));const{has:i}=ka(s),u=t?Sl:e?so:fn;if(i.call(s,r))return u(o.get(r));if(i.call(s,a))return u(o.get(a));o!==s&&o.get(r)},get size(){const r=this.__v_raw;return!e&&Nt(Fe(r),"iterate",no),r.size},has(r){const o=this.__v_raw,s=Fe(o),a=Fe(r);return e||(At(r,a)&&Nt(s,"has",r),Nt(s,"has",a)),r===a?o.has(r):o.has(r)||o.has(a)},forEach(r,o){const s=this,a=s.__v_raw,i=Fe(a),u=t?Sl:e?so:fn;return!e&&Nt(i,"iterate",no),a.forEach((c,l)=>r.call(o,u(c),u(l),s))}};return ct(n,e?{add:Ta("add"),set:Ta("set"),delete:Ta("delete"),clear:Ta("clear")}:{add(r){const o=Fe(this),s=ka(o),a=Fe(r),i=!t&&!rn(r)&&!Mn(r)?a:r;return s.has.call(o,i)||At(r,i)&&s.has.call(o,r)||At(a,i)&&s.has.call(o,a)||(o.add(i),Yn(o,"add",i,i)),this},set(r,o){!t&&!rn(o)&&!Mn(o)&&(o=Fe(o));const s=Fe(this),{has:a,get:i}=ka(s);let u=a.call(s,r);u||(r=Fe(r),u=a.call(s,r));const c=i.call(s,r);return s.set(r,o),u?At(o,c)&&Yn(s,"set",r,o):Yn(s,"add",r,o),this},delete(r){const o=Fe(this),{has:s,get:a}=ka(o);let i=s.call(o,r);i||(r=Fe(r),i=s.call(o,r)),a&&a.call(o,r);const u=o.delete(r);return i&&Yn(o,"delete",r,void 0),u},clear(){const r=Fe(this),o=r.size!==0,s=r.clear();return o&&Yn(r,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=V1(r,e,t)}),n}function Vi(e,t){const n=H1(e,t);return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(ze(n,o)&&o in r?n:r,o,s)}const G1={get:Vi(!1,!1)},W1={get:Vi(!1,!0)},q1={get:Vi(!0,!1)},K1={get:Vi(!0,!0)},hf=new WeakMap,ff=new WeakMap,gf=new WeakMap,mf=new WeakMap;function X1(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Io(e){return Mn(e)?e:Hi(e,!1,M1,G1,hf)}function vf(e){return Hi(e,!1,z1,W1,ff)}function Vs(e){return Hi(e,!0,j1,q1,gf)}function Z1(e){return Hi(e,!0,U1,K1,mf)}function Hi(e,t,n,r,o){if(!Me(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const s=o.get(e);if(s)return s;const a=X1(m1(e));if(a===0)return e;const i=new Proxy(e,a===2?r:n);return o.set(e,i),i}function _r(e){return Mn(e)?_r(e.__v_raw):!!(e&&e.__v_isReactive)}function Mn(e){return!!(e&&e.__v_isReadonly)}function rn(e){return!!(e&&e.__v_isShallow)}function Gi(e){return e?!!e.__v_raw:!1}function Fe(e){const t=e&&e.__v_raw;return t?Fe(t):e}function Y1(e){return!ze(e,"__v_skip")&&Object.isExtensible(e)&&X0(e,"__v_skip",!0),e}const fn=e=>Me(e)?Io(e):e,so=e=>Me(e)?Vs(e):e;function lt(e){return e?e.__v_isRef===!0:!1}function Ae(e){return yf(e,!1)}function ir(e){return yf(e,!0)}function yf(e,t){return lt(e)?e:new J1(e,t)}class J1{constructor(t,n){this.dep=new zi,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Fe(t),this._value=n?t:fn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||rn(t)||Mn(t);t=r?t:Fe(t),At(t,n)&&(this._rawValue=t,this._value=r?t:fn(t),this.dep.trigger())}}function z(e){return lt(e)?e.value:e}function Bt(e){return Ce(e)?e():z(e)}const Q1={get:(e,t,n)=>t==="__v_raw"?e:z(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return lt(o)&&!lt(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function bf(e){return _r(e)?e:new Proxy(e,Q1)}class ey{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new zi,{get:r,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function ty(e){return new ey(e)}class ny{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=on(n)?n:String(n),this._raw=Fe(t);let o=!0,s=t;if(!be(t)||on(this._key)||!Li(this._key))do o=!Gi(s)||rn(s);while(o&&(s=s.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=z(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&<(this._raw[this._key])){const n=this._object[this._key];if(lt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return $1(this._raw,this._key)}}class ry{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function kl(e,t,n){return lt(e)?e:Ce(e)?new ry(e):Me(e)&&arguments.length>1?oy(e,t,n):Ae(e)}function oy(e,t,n){return new ny(e,t,n)}class sy{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new zi(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=zs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&qe!==this)return nf(this,!0),!0}get value(){const t=this.dep.track();return sf(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ay(e,t,n=!1){let r,o;return Ce(e)?r=e:(r=e.get,o=e.set),new sy(r,o,n)}const Oa={},ni=new WeakMap;let qr;function iy(e,t=!1,n=qr){if(n){let r=ni.get(n);r||ni.set(n,r=[]),r.push(e)}}function uy(e,t,n=Re){const{immediate:r,deep:o,once:s,scheduler:a,augmentJob:i,call:u}=n,c=C=>o?C:rn(C)||o===!1||o===0?Jn(C,1):Jn(C);let l,d,p,h,g=!1,f=!1;if(lt(e)?(d=()=>e.value,g=rn(e)):_r(e)?(d=()=>c(e),g=!0):be(e)?(f=!0,g=e.some(C=>_r(C)||rn(C)),d=()=>e.map(C=>{if(lt(C))return C.value;if(_r(C))return c(C);if(Ce(C))return u?u(C,2):C()})):Ce(e)?t?d=u?()=>u(e,2):e:d=()=>{if(p){sr();try{p()}finally{ar()}}const C=qr;qr=l;try{return u?u(e,3,[h]):e(h)}finally{qr=C}}:d=pn,t&&o){const C=d,_=o===!0?1/0:o;d=()=>Jn(C(),_)}const m=Q0(),y=()=>{l.stop(),m&&m.active&&bc(m.effects,l)};if(s&&t){const C=t;t=(..._)=>{const D=C(..._);return y(),D}}let v=f?new Array(e.length).fill(Oa):Oa;const E=C=>{if(!(!(l.flags&1)||!l.dirty&&!C))if(t){const _=l.run();if(C||o||g||(f?_.some((D,R)=>At(D,v[R])):At(_,v))){p&&p();const D=qr;qr=l;try{const R=[_,v===Oa?void 0:f&&v[0]===Oa?[]:v,h];v=_,u?u(t,3,R):t(...R)}finally{qr=D}}}else l.run()};return i&&i(E),l=new ef(d),l.scheduler=a?()=>a(E,!1):E,h=C=>iy(C,!1,l),p=l.onStop=()=>{const C=ni.get(l);if(C){if(u)u(C,4);else for(const _ of C)_();ni.delete(l)}},t?r?E(!0):v=l.run():a?a(E.bind(null,!0),!0):l.run(),y.pause=l.pause.bind(l),y.resume=l.resume.bind(l),y.stop=y,y}function Jn(e,t=1/0,n){if(t<=0||!Me(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,lt(e))Jn(e.value,t,n);else if(be(e))for(let r=0;r{Jn(r,t,n)});else if(K0(e)){for(const r in e)Jn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Jn(e[r],t,n)}return e}function ia(e,t,n,r){try{return r?e(...r):e()}catch(o){Wi(o,t,n)}}function gn(e,t,n,r){if(Ce(e)){const o=ia(e,t,n,r);return o&&W0(o)&&o.catch(s=>{Wi(s,t,n)}),o}if(be(e)){const o=[];for(let s=0;s>>1,o=Ht[r],s=Hs(o);s=Hs(n)?Ht.push(e):Ht.splice(cy(t),0,e),e.flags|=1,wf()}}function wf(){ri||(ri=Ef.then(Af))}function Cf(e){if(!be(e))Er&&e.id===-1?Er.splice(Ao+1,0,e):e.flags&1||(Do.push(e),e.flags|=1);else for(let t=0;tHs(n)-Hs(r));if(Do.length=0,Er){for(let n=0;ne.id==null?e.flags&2?-1:1/0:e.id;function Af(e){try{for(Dn=0;Dnpe;function pe(e,t=St,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&li(-1);const s=oi(t),a=or.length;let i;try{i=e(...o)}finally{for(let u=or.length;u>a;u--)Oc();oi(s),r._d&&li(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Rn(e,t){if(St===null)return e;const n=tu(St),r=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&Ce(t)?t.call(r&&r.proxy):t}}const fy=Symbol.for("v-scx"),gy=()=>rt(fy);function Ki(e,t){return Xi(e,null,t)}function my(e,t){return Xi(e,null,{flush:"sync"})}function et(e,t,n){return Xi(e,t,n)}function Xi(e,t,n=Re){const{immediate:r,deep:o,flush:s,once:a}=n,i=ct({},n),u=t&&r||!t&&s!=="post";let c;if(Xs){if(s==="sync"){const h=gy();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!u){const h=()=>{};return h.stop=pn,h.resume=pn,h.pause=pn,h}}const l=Pt;i.call=(h,g,f)=>gn(h,l,g,f);let d=!1;s==="post"?i.scheduler=h=>{Vt(h,l&&l.suspense)}:s!=="sync"&&(d=!0,i.scheduler=(h,g)=>{g?h():Ac(h)}),i.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,l&&(h.id=l.uid,h.i=l))};const p=uy(e,t,i);return Xs&&(c?c.push(p):u&&p()),p}function vy(e,t,n){const r=this.proxy,o=Ke(e)?e.includes(".")?_f(r,e):()=>r[e]:e.bind(r,r);let s;Ce(t)?s=t:(s=t.handler,n=t);const a=da(this),i=Xi(o,s.bind(r),n);return a(),i}function _f(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;oe.__isTeleport,Xr=e=>e&&(e.disabled||e.disabled===""),yy=e=>e&&(e.defer||e.defer===""),Id=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Md=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Tl=(e,t)=>{const n=e&&e.to;return Ke(n)?t?t(n):null:n},by={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,s,a,i,u,c){const{mc:l,pc:d,pbc:p,o:{insert:h,querySelector:g,createText:f,createComment:m,parentNode:y}}=c,v=Xr(t.props);let{dynamicChildren:E}=t;const C=(R,Z,M)=>{R.shapeFlag&16&&l(R.children,Z,M,o,s,a,i,u)},_=(R=t)=>{const Z=Xr(R.props),M=R.target=Tl(R.props,g),P=Ol(M,R,f,h);M&&(a!=="svg"&&Id(M)?a="svg":a!=="mathml"&&Md(M)&&(a="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(M),Z||(C(R,M,P),bs(R,!1)))},D=R=>{const Z=()=>{if(vr.get(R)===Z){if(vr.delete(R),Xr(R.props)){const M=y(R.el)||n;C(R,M,R.anchor),bs(R,!0)}_(R)}};vr.set(R,Z),Vt(Z,s)};if(e==null){const R=t.el=f(""),Z=t.anchor=f("");if(h(R,n,r),h(Z,n,r),yy(t.props)||s&&s.pendingBranch){D(t);return}v&&(C(t,n,Z),bs(t,!0)),_()}else{t.el=e.el;const R=t.anchor=e.anchor,Z=vr.get(e);if(Z){Z.flags|=8,vr.delete(e),D(t);return}t.targetStart=e.targetStart;const M=t.target=e.target,P=t.targetAnchor=e.targetAnchor,oe=Xr(e.props),O=oe?n:M,S=oe?R:P;if(a==="svg"||Id(M)?a="svg":(a==="mathml"||Md(M))&&(a="mathml"),E?(p(e.dynamicChildren,E,O,o,s,a,i),Tc(e,t,!0)):u||d(e,t,O,S,o,s,a,i,!1),v)oe?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Da(t,n,R,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const W=Tl(t.props,g);W&&(t.target=W,Da(t,W,null,c,0))}else oe&&Da(t,M,P,c,1);bs(t,v)}},remove(e,t,n,{um:r,o:{remove:o}},s){const{shapeFlag:a,children:i,anchor:u,targetStart:c,targetAnchor:l,target:d,props:p}=e,h=Xr(p),g=s||!h,f=vr.get(e);if(f&&(f.flags|=8,vr.delete(e)),d&&(o(c),o(l)),s&&o(u),!f&&(h||d)&&a&16)for(let m=0;m{e.isMounted=!0}),ua(()=>{e.isUnmounting=!0}),e}const sn=[Function,Array],Tf={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:sn,onEnter:sn,onAfterEnter:sn,onEnterCancelled:sn,onBeforeLeave:sn,onLeave:sn,onAfterLeave:sn,onLeaveCancelled:sn,onBeforeAppear:sn,onAppear:sn,onAfterAppear:sn,onAppearCancelled:sn},Of=e=>{const t=e.subTree;return t.component?Of(t.component):t},Cy={name:"BaseTransition",props:Tf,setup(e,{slots:t}){const n=jn(),r=wy();return()=>{const o=t.default&&Pf(t.default(),!0),s=o&&o.length?Df(o):n.subTree?he():void 0;if(!s)return;const a=Fe(e),{mode:i}=a;if(r.isLeaving)return Su(s);const u=si(s);if(!u)return Su(s);let c=Dl(u,a,r,n,d=>c=d);u.type!==_t&&Gs(u,c);let l=n.subTree&&si(n.subTree);if(l&&l.type!==_t&&!Zr(l,u)&&Of(n).type!==_t){let d=Dl(l,a,r,n);if(Gs(l,d),i==="out-in"&&u.type!==_t)return r.isLeaving=!0,d.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,l=void 0},Su(s);i==="in-out"&&u.type!==_t?d.delayLeave=(p,h,g)=>{const f=Nf(r,l);f[String(l.key)]=l,p[cn]=()=>{h(),p[cn]=void 0,delete c.delayedLeave,l=void 0},c.delayedLeave=()=>{g(),delete c.delayedLeave,l=void 0}}:l=void 0}else l&&(l=void 0);return s}}};function Df(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==_t){t=n;break}}return t}const xy=Cy;function Nf(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Dl(e,t,n,r,o){const{appear:s,mode:a,persisted:i=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:l,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:g,onLeaveCancelled:f,onBeforeAppear:m,onAppear:y,onAfterAppear:v,onAppearCancelled:E}=t,C=String(e.key),_=Nf(n,e),D=(M,P)=>{M&&gn(M,r,9,P)},R=(M,P)=>{const oe=P[1];D(M,P),be(M)?M.every(O=>O.length<=1)&&oe():M.length<=1&&oe()},Z={mode:a,persisted:i,beforeEnter(M){let P=u;if(!n.isMounted)if(s)P=m||u;else return;M[cn]&&M[cn](!0);const oe=_[C];oe&&Zr(e,oe)&&oe.el[cn]&&oe.el[cn](),D(P,[M])},enter(M){if(_[C]===e)return;let P=c,oe=l,O=d;if(!n.isMounted)if(s)P=y||c,oe=v||l,O=E||d;else return;let S=!1;M[ts]=ne=>{S||(S=!0,ne?D(O,[M]):D(oe,[M]),Z.delayedLeave&&Z.delayedLeave(),M[ts]=void 0)};const W=M[ts].bind(null,!1);P?R(P,[M,W]):W()},leave(M,P){const oe=String(e.key);if(M[ts]&&M[ts](!0),n.isUnmounting)return P();D(p,[M]);let O=!1;M[cn]=W=>{O||(O=!0,P(),W?D(f,[M]):D(g,[M]),M[cn]=void 0,_[oe]===e&&delete _[oe])};const S=M[cn].bind(null,!1);_[oe]=e,h?R(h,[M,S]):S()},clone(M){const P=Dl(M,t,n,r,o);return o&&o(P),P}};return Z}function Su(e){if(Yi(e))return e=Br(e),e.children=null,e}function si(e){if(!Yi(e))return Zi(e.type)&&e.children?Df(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ce(n.default))return n.default()}}function Gs(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;Gs(Zi(n.type)&&si(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Pf(e,t=!1,n){let r=[],o=0;for(let s=0;s1)for(let s=0;sn.value,set:o=>n.value=o})}return n}function jd(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const ai=new WeakMap;function Ts(e,t,n,r,o=!1){if(be(e)){e.forEach((f,m)=>Ts(f,t&&(be(t)?t[m]:t),n,r,o));return}if(No(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Ts(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?tu(r.component):r.el,a=o?null:s,{i,r:u}=e,c=t&&t.r,l=i.refs===Re?i.refs={}:i.refs,d=i.setupState,p=Fe(d),h=d===Re?G0:f=>jd(l,f)?!1:ze(p,f),g=(f,m)=>!(m&&jd(l,m));if(c!=null&&c!==u){if(zd(t),Ke(c))l[c]=null,h(c)&&(d[c]=null);else if(lt(c)){const f=t;g(c,f.k)&&(c.value=null),f.k&&(l[f.k]=null)}}if(Ce(u))ia(u,i,12,[a,l]);else{const f=Ke(u),m=lt(u);if(f||m){const y=()=>{if(e.f){const v=f?h(u)?d[u]:l[u]:g()||!e.k?u.value:l[e.k];if(o)be(v)&&bc(v,s);else if(be(v))v.includes(s)||v.push(s);else if(f)l[u]=[s],h(u)&&(d[u]=l[u]);else{const E=[s];g(u,e.k)&&(u.value=E),e.k&&(l[e.k]=E)}}else f?(l[u]=a,h(u)&&(d[u]=a)):m&&(g(u,e.k)&&(u.value=a),e.k&&(l[e.k]=a))};if(a){const v=()=>{y(),ai.delete(e)};v.id=-1,ai.set(e,v),Vt(v,n)}else zd(e),y()}}}function zd(e){const t=ai.get(e);t&&(t.flags|=8,ai.delete(e))}ei().requestIdleCallback,ei().cancelIdleCallback;const No=e=>!!e.type.__asyncLoader,Yi=e=>e.type.__isKeepAlive;function Ay(e,t){$f(e,"a",t)}function _y(e,t){$f(e,"da",t)}function $f(e,t,n=Pt){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ji(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Yi(o.parent.vnode)&&Sy(r,t,n,o),o=o.parent}}function Sy(e,t,n,r){const o=Ji(t,e,r,!0);ur(()=>{bc(r[t],o)},n)}function Ji(e,t,n=Pt,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...a)=>{sr();const i=da(n),u=gn(t,n,e,a);return i(),ar(),u});return r?o.unshift(s):o.push(s),s}}const dr=e=>(t,n=Pt)=>{(!Xs||e==="sp")&&Ji(e,(...r)=>t(...r),n)},Rf=dr("bm"),Sn=dr("m"),Ff=dr("bu"),ky=dr("u"),ua=dr("bum"),ur=dr("um"),Ty=dr("sp"),Oy=dr("rtg"),Dy=dr("rtc");function Ny(e,t=Pt){Ji("ec",e,t)}const Lf="components";function Ye(e,t){return Mf(Lf,e,!0,t)||e}const If=Symbol.for("v-ndc");function la(e){return Ke(e)?Mf(Lf,e,!1)||e:e||If}function Mf(e,t,n=!0,r=!1){const o=St||Pt;if(o){const s=o.type;{const i=p4(s,!1);if(i&&(i===t||i===Rt(t)||i===Mi(Rt(t))))return s}const a=Ud(o[e]||s[e],t)||Ud(o.appContext[e],t);return!a&&r?s:a}}function Ud(e,t){return e&&(e[t]||e[Rt(t)]||e[Mi(Rt(t))])}function Os(e,t,n,r){let o;const s=n,a=be(e);if(a||Ke(e)){const i=a&&_r(e);let u=!1,c=!1;i&&(u=!rn(e),c=Mn(e),e=Ui(e)),o=new Array(e.length);for(let l=0,d=e.length;lt(i,u,void 0,s));else{const i=Object.keys(e);o=new Array(i.length);for(let u=0,c=i.length;u{const s=r.fn(...o);return s&&(s.key=r.key),s}:r.fn)}return e}function ye(e,t,n,r,o,s){if(n==null&&(n={}),St.ce||St.parent&&No(St.parent)&&St.parent.ce){const c=n,l=Object.keys(c).length>0;return t!=="default"&&(c.name=t),$(),me(Ze,null,[le("slot",c,r&&r())],l?-2:64)}let a=e[t];a&&a._c&&(a._d=!1);const i=or.length;$();let u;try{const c=a&&jf(a(n)),l=n.key||s||c&&c.key;u=me(Ze,{key:(l&&!on(l)?l:`_${t}`)+(!c&&r?"_fb":"")},c||(r?r():[]),c&&e._===1?64:-2)}catch(c){for(let l=or.length;l>i;l--)Oc();throw c}finally{a&&a._c&&(a._d=!0)}return!o&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),u}function jf(e){return e.some(t=>qs(t)?!(t.type===_t||t.type===Ze&&!jf(t.children)):!0)?e:null}function Py(e,t){const n={};for(const r in e)n[za(r)]=e[r];return n}const Nl=e=>e?ig(e)?tu(e):Nl(e.parent):null,Ds=ct(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Nl(e.parent),$root:e=>Nl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Vf(e),$forceUpdate:e=>e.f||(e.f=()=>{Ac(e.update)}),$nextTick:e=>e.n||(e.n=xn.bind(e.proxy)),$watch:e=>vy.bind(e)}),ku=(e,t)=>e!==Re&&!e.__isScriptSetup&&ze(e,t),By={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:s,accessCache:a,type:i,appContext:u}=e;if(t[0]!=="$"){const p=a[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(ku(r,t))return a[t]=1,r[t];if(o!==Re&&ze(o,t))return a[t]=2,o[t];if(ze(s,t))return a[t]=3,s[t];if(n!==Re&&ze(n,t))return a[t]=4,n[t];Pl&&(a[t]=0)}}const c=Ds[t];let l,d;if(c)return t==="$attrs"&&Nt(e.attrs,"get",""),c(e);if((l=i.__cssModules)&&(l=l[t]))return l;if(n!==Re&&ze(n,t))return a[t]=4,n[t];if(d=u.config.globalProperties,ze(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return ku(o,t)?(o[t]=n,!0):r!==Re&&ze(r,t)?(r[t]=n,!0):ze(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,props:s,type:a}},i){let u;return!!(n[i]||e!==Re&&i[0]!=="$"&&ze(e,i)||ku(t,i)||ze(s,i)||ze(r,i)||ze(Ds,i)||ze(o.config.globalProperties,i)||(u=a.__cssModules)&&u[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ze(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Qi(){return zf().slots}function $y(){return zf().attrs}function zf(e){const t=jn();return t.setupContext||(t.setupContext=lg(t))}function ii(e){return be(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Pr(e,t){return!e||!t?e||t:be(e)&&be(t)?e.concat(t):ct({},ii(e),ii(t))}let Pl=!0;function Ry(e){const t=Vf(e),n=e.proxy,r=e.ctx;Pl=!1,t.beforeCreate&&Vd(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:a,watch:i,provide:u,inject:c,created:l,beforeMount:d,mounted:p,beforeUpdate:h,updated:g,activated:f,deactivated:m,beforeDestroy:y,beforeUnmount:v,destroyed:E,unmounted:C,render:_,renderTracked:D,renderTriggered:R,errorCaptured:Z,serverPrefetch:M,expose:P,inheritAttrs:oe,components:O,directives:S,filters:W}=t;if(c&&Fy(c,r,null),a)for(const Q in a){const Y=a[Q];Ce(Y)&&(r[Q]=Y.bind(n))}if(o){const Q=o.call(n,n);Me(Q)&&(e.data=Io(Q))}if(Pl=!0,s)for(const Q in s){const Y=s[Q],ee=Ce(Y)?Y.bind(n,n):Ce(Y.get)?Y.get.bind(n,n):pn,J=!Ce(Y)&&Ce(Y.set)?Y.set.bind(n):pn,te=se({get:ee,set:J});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>te.value,set:re=>te.value=re})}if(i)for(const Q in i)Uf(i[Q],r,n,Q);if(u){const Q=Ce(u)?u.call(n):u;Reflect.ownKeys(Q).forEach(Y=>{Zt(Y,Q[Y])})}l&&Vd(l,e,"c");function ne(Q,Y){be(Y)?Y.forEach(ee=>Q(ee.bind(n))):Y&&Q(Y.bind(n))}if(ne(Rf,d),ne(Sn,p),ne(Ff,h),ne(ky,g),ne(Ay,f),ne(_y,m),ne(Ny,Z),ne(Dy,D),ne(Oy,R),ne(ua,v),ne(ur,C),ne(Ty,M),be(P))if(P.length){const Q=e.exposed||(e.exposed={});P.forEach(Y=>{Object.defineProperty(Q,Y,{get:()=>n[Y],set:ee=>n[Y]=ee,enumerable:!0})})}else e.exposed||(e.exposed={});_&&e.render===pn&&(e.render=_),oe!=null&&(e.inheritAttrs=oe),O&&(e.components=O),S&&(e.directives=S),M&&Bf(e)}function Fy(e,t,n=pn){be(e)&&(e=Bl(e));for(const r in e){const o=e[r];let s;Me(o)?"default"in o?s=rt(o.from||r,o.default,!0):s=rt(o.from||r):s=rt(o),lt(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):t[r]=s}}function Vd(e,t,n){gn(be(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Uf(e,t,n,r){let o=r.includes(".")?_f(n,r):()=>n[r];if(Ke(e)){const s=t[e];Ce(s)&&et(o,s)}else if(Ce(e))et(o,e.bind(n));else if(Me(e))if(be(e))e.forEach(s=>Uf(s,t,n,r));else{const s=Ce(e.handler)?e.handler.bind(n):t[e.handler];Ce(s)&&et(o,s,e)}}function Vf(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,i=s.get(t);let u;return i?u=i:!o.length&&!n&&!r?u=t:(u={},o.length&&o.forEach(c=>ui(u,c,a,!0)),ui(u,t,a)),Me(t)&&s.set(t,u),u}function ui(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&ui(e,s,n,!0),o&&o.forEach(a=>ui(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const i=Ly[a]||n&&n[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const Ly={data:Hd,props:Gd,emits:Gd,methods:Es,computed:Es,beforeCreate:zt,created:zt,beforeMount:zt,mounted:zt,beforeUpdate:zt,updated:zt,beforeDestroy:zt,beforeUnmount:zt,destroyed:zt,unmounted:zt,activated:zt,deactivated:zt,errorCaptured:zt,serverPrefetch:zt,components:Es,directives:Es,watch:My,provide:Hd,inject:Iy};function Hd(e,t){return t?e?function(){return ct(Ce(e)?e.call(this,this):e,Ce(t)?t.call(this,this):t)}:t:e}function Iy(e,t){return Es(Bl(e),Bl(t))}function Bl(e){if(be(e)){const t={};for(let n=0;n{let l,d=Re,p;return my(()=>{const h=e[o];At(l,h)&&(l=h,c())}),{get(){return u(),n.get?n.get(l):l},set(h){const g=n.set?n.set(h):h;if(!At(g,l)&&!(d!==Re&&At(h,d)))return;const f=r.vnode.props,m=!!(f&&(t in f||o in f||s in f)&&(`onUpdate:${t}`in f||`onUpdate:${o}`in f||`onUpdate:${s}`in f));m||(l=h,c()),r.emit(`update:${t}`,g),At(h,d)&&(At(h,g)&&!At(g,p)||m&&d!==Re&&!At(g,l))&&c(),d=h,p=g}}});return i[Symbol.iterator]=()=>{let u=0;return{next(){return u<2?{value:u++?a||Re:i,done:!1}:{done:!0}}}},i}const Gf=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Rt(t)}Modifiers`]||e[`${cr(t)}Modifiers`];function Uy(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Re;let o=n;const s=t.startsWith("update:"),a=s&&Gf(r,t.slice(7));a&&(a.trim&&(o=n.map(l=>Ke(l)?l.trim():l)),a.number&&(o=o.map(Ec)));let i,u=r[i=za(t)]||r[i=za(Rt(t))];!u&&s&&(u=r[i=za(cr(t))]),u&&gn(u,e,6,o);const c=r[i+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,gn(c,e,6,o)}}const Vy=new WeakMap;function Wf(e,t,n=!1){const r=n?Vy:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let a={},i=!1;if(!Ce(e)){const u=c=>{const l=Wf(c,t,!0);l&&(i=!0,ct(a,l))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!s&&!i?(Me(e)&&r.set(e,null),null):(be(s)?s.forEach(u=>a[u]=null):ct(a,s),Me(e)&&r.set(e,a),a)}function eu(e,t){return!e||!Ri(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),ze(e,t[0].toLowerCase()+t.slice(1))||ze(e,cr(t))||ze(e,t))}function Wd(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[s],slots:a,attrs:i,emit:u,render:c,renderCache:l,props:d,data:p,setupState:h,ctx:g,inheritAttrs:f}=e,m=oi(e);let y,v;try{if(n.shapeFlag&4){const C=o||r,_=C;y=$n(c.call(_,C,l,d,h,p,g)),v=i}else{const C=t;y=$n(C.length>1?C(d,{attrs:i,slots:a,emit:u}):C(d,null)),v=t.props?i:Hy(i)}}catch(C){or.length=0,Wi(C,e,1),y=le(_t)}let E=y;if(v&&f!==!1){const C=Object.keys(v),{shapeFlag:_}=E;C.length&&_&7&&(s&&C.some(Fi)&&(v=Gy(v,s)),E=Br(E,v,!1,!0))}if(n.dirs&&(E=Br(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition){const C=Zi(E.type)&&si(E)||E;Gs(C,n.transition)}return y=E,oi(m),y}const Hy=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ri(n))&&((t||(t={}))[n]=e[n]);return t},Gy=(e,t)=>{const n={};for(const r in e)(!Fi(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Wy(e,t,n){const{props:r,children:o,component:s}=e,{props:a,children:i,patchFlag:u}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return r?qd(r,a,c):!!a;if(u&8){const l=t.dynamicProps;for(let d=0;dObject.create(Kf),Zf=e=>Object.getPrototypeOf(e)===Kf;function Ky(e,t,n,r=!1){const o={},s=Xf();e.propsDefaults=Object.create(null),Yf(e,t,o,s);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:vf(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function Xy(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:a}}=e,i=Fe(o),[u]=e.propsOptions;let c=!1;if((r||a>0)&&!(a&16)){if(a&8){const l=e.vnode.dynamicProps;for(let d=0;d{u=!0;const[p,h]=Jf(d,t,!0);ct(a,p),h&&i.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!s&&!u)return Me(e)&&r.set(e,Qr),Qr;if(be(s))for(let l=0;le==="_"||e==="_ctx"||e==="$stable",kc=e=>be(e)?e.map($n):[$n(e)],Yy=(e,t,n)=>{if(t._n)return t;const r=pe((...o)=>kc(t(...o)),n);return r._c=!1,r},Qf=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Sc(o))continue;const s=e[o];if(Ce(s))t[o]=Yy(o,s,r);else if(s!=null){const a=kc(s);t[o]=()=>a}}},eg=(e,t)=>{const n=kc(t);e.slots.default=()=>n},tg=(e,t,n)=>{for(const r in t)(n||!Sc(r))&&(e[r]=t[r])},Jy=(e,t,n)=>{const r=e.slots=Xf();if(e.vnode.shapeFlag&32){const o=t._;o?(tg(r,t,n),n&&X0(r,"_",o,!0)):Qf(t,r)}else t&&eg(e,t)},Qy=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,a=Re;if(r.shapeFlag&32){const i=t._;i?n&&i===1?s=!1:tg(o,t,n):(s=!t.$stable,Qf(t,o)),a=t}else t&&(eg(e,t),a={default:1});if(s)for(const i in o)!Sc(i)&&a[i]==null&&delete o[i]},Vt=o4;function e4(e){return t4(e)}function t4(e,t){const n=ei();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:a,createText:i,createComment:u,setText:c,setElementText:l,parentNode:d,nextSibling:p,setScopeId:h=pn,insertStaticContent:g}=e,f=(b,x,k,N=null,I=null,j=null,q=void 0,V=null,K=!!x.dynamicChildren)=>{if(b===x)return;b&&!Zr(b,x)&&(N=A(b),fe(b,I,j,!0),b=null),x.patchFlag===-2&&(K=!1,x.dynamicChildren=null),x.dynamicChildren&&b&&b.dynamicChildren&&b.dynamicChildren.hasOnce&&(x.dynamicChildren===Qr&&(x.dynamicChildren=[]),x.dynamicChildren.hasOnce=!0);const{type:G,ref:ce,shapeFlag:de}=x;switch(G){case ca:m(b,x,k,N);break;case _t:y(b,x,k,N);break;case Va:b==null&&v(x,k,N,q);break;case Ze:O(b,x,k,N,I,j,q,V,K);break;default:de&1?_(b,x,k,N,I,j,q,V,K):de&6?S(b,x,k,N,I,j,q,V,K):(de&64||de&128)&&G.process(b,x,k,N,I,j,q,V,K,U)}ce!=null&&I?Ts(ce,b&&b.ref,j,x||b,!x):ce==null&&b&&b.ref!=null&&Ts(b.ref,null,j,b,!0)},m=(b,x,k,N)=>{if(b==null)r(x.el=i(x.children),k,N);else{const I=x.el=b.el;x.children!==b.children&&c(I,x.children)}},y=(b,x,k,N)=>{b==null?r(x.el=u(x.children||""),k,N):x.el=b.el},v=(b,x,k,N)=>{[b.el,b.anchor]=g(b.children,x,k,N,b.el,b.anchor)},E=({el:b,anchor:x},k,N)=>{let I;for(;b&&b!==x;)I=p(b),r(b,k,N),b=I;r(x,k,N)},C=({el:b,anchor:x})=>{let k;for(;b&&b!==x;)k=p(b),o(b),b=k;o(x)},_=(b,x,k,N,I,j,q,V,K)=>{if(x.type==="svg"?q="svg":x.type==="math"&&(q="mathml"),b==null)D(x,k,N,I,j,q,V,K);else{const G=b.el&&b.el._isVueCE?b.el:null;try{G&&G._beginPatch(),M(b,x,I,j,q,V,K)}finally{G&&G._endPatch()}}},D=(b,x,k,N,I,j,q,V)=>{let K,G;const{props:ce,shapeFlag:de,transition:ge,dirs:ve}=b;if(K=b.el=a(b.type,j,ce&&ce.is,ce),de&8?l(K,b.children):de&16&&Z(b.children,K,null,N,I,Tu(b,j),q,V),ve&&jr(b,null,N,"created"),R(K,b,b.scopeId,q,N),ce){for(const Te in ce)Te!=="value"&&!_s(Te)&&s(K,Te,null,ce[Te],j,N);"value"in ce&&s(K,"value",null,ce.value,j),(G=ce.onVnodeBeforeMount)&&On(G,N,b)}ve&&jr(b,null,N,"beforeMount");const ke=n4(I,ge);ke&&ge.beforeEnter(K),r(K,x,k),((G=ce&&ce.onVnodeMounted)||ke||ve)&&Vt(()=>{G&&On(G,N,b),ke&&ge.enter(K),ve&&jr(b,null,N,"mounted")},I)},R=(b,x,k,N,I)=>{if(k&&h(b,k),N)for(let j=0;j{for(let G=K;G{const V=x.el=b.el;let{patchFlag:K,dynamicChildren:G,dirs:ce}=x;K|=b.patchFlag&16;const de=b.props||Re,ge=x.props||Re;let ve;if(k&&zr(k,!1),(ve=ge.onVnodeBeforeUpdate)&&On(ve,k,x,b),ce&&jr(x,b,k,"beforeUpdate"),k&&zr(k,!0),G&&(!b.dynamicChildren||b.dynamicChildren.length!==G.length)&&(K=0,q=!1,G=null),(de.innerHTML&&ge.innerHTML==null||de.textContent&&ge.textContent==null)&&l(V,""),G?P(b.dynamicChildren,G,V,k,N,Tu(x,I),j):q||ee(b,x,V,null,k,N,Tu(x,I),j,!1),K>0){if(K&16)oe(V,de,ge,k,I);else if(K&2&&de.class!==ge.class&&s(V,"class",null,ge.class,I),K&4&&s(V,"style",de.style,ge.style,I),K&8){const ke=x.dynamicProps;for(let Te=0;Te{ve&&On(ve,k,x,b),ce&&jr(x,b,k,"updated")},N)},P=(b,x,k,N,I,j,q)=>{for(let V=0;V{if(x!==k){if(x!==Re)for(const j in x)!_s(j)&&!(j in k)&&s(b,j,x[j],null,I,N);for(const j in k){if(_s(j))continue;const q=k[j],V=x[j];q!==V&&j!=="value"&&s(b,j,V,q,I,N)}"value"in k&&s(b,"value",x.value,k.value,I)}},O=(b,x,k,N,I,j,q,V,K)=>{const G=x.el=b?b.el:i(""),ce=x.anchor=b?b.anchor:i("");let{patchFlag:de,dynamicChildren:ge,slotScopeIds:ve}=x;ve&&(V=V?V.concat(ve):ve),b==null?(r(G,k,N),r(ce,k,N),Z(x.children||[],k,ce,I,j,q,V,K)):de>0&&de&64&&ge&&b.dynamicChildren&&b.dynamicChildren.length===ge.length?(P(b.dynamicChildren,ge,k,I,j,q,V),(x.key!=null||I&&x===I.subTree)&&Tc(b,x,!0)):ee(b,x,k,ce,I,j,q,V,K)},S=(b,x,k,N,I,j,q,V,K)=>{x.slotScopeIds=V,b==null?x.shapeFlag&512?I.ctx.activate(x,k,N,q,K):W(x,k,N,I,j,q,K):ne(b,x,K)},W=(b,x,k,N,I,j,q)=>{const V=b.component=u4(b,N,I);if(Yi(b)&&(V.ctx.renderer=U),l4(V,!1,q),V.asyncDep){if(I&&I.registerDep(V,Q,q),!b.el){const K=V.subTree=le(_t);y(null,K,x,k),b.placeholder=K.el}}else Q(V,b,x,k,I,j,q)},ne=(b,x,k)=>{const N=x.component=b.component;if(Wy(b,x,k))if(N.asyncDep&&!N.asyncResolved){x.el=b.el,Y(N,x,k);return}else N.next=x,N.update();else x.el=b.el,N.vnode=x},Q=(b,x,k,N,I,j,q)=>{const V=()=>{if(b.isMounted){let{next:de,bu:ge,u:ve,parent:ke,vnode:Te}=b;{const It=ng(b);if(It){de&&(de.el=Te.el,Y(b,de,q)),It.asyncDep.then(()=>{Vt(()=>{b.isUnmounted||G()},I)});return}}let Ne=de,Ge;zr(b,!1),de?(de.el=Te.el,Y(b,de,q)):de=Te,ge&&Ua(ge),(Ge=de.props&&de.props.onVnodeBeforeUpdate)&&On(Ge,ke,de,Te),zr(b,!0);const ot=Wd(b),Lt=b.subTree;b.subTree=ot,f(Lt,ot,d(Lt.el),A(Lt),b,I,j),de.el=ot.el,Ne===null&&qy(b,ot.el),ve&&Vt(ve,I),(Ge=de.props&&de.props.onVnodeUpdated)&&Vt(()=>On(Ge,ke,de,Te),I)}else{let de;const{el:ge,props:ve}=x,{bm:ke,m:Te,parent:Ne,root:Ge,type:ot}=b,Lt=No(x);zr(b,!1),ke&&Ua(ke),!Lt&&(de=ve&&ve.onVnodeBeforeMount)&&On(de,Ne,x),zr(b,!0);{Ge.ce&&Ge.ce._hasShadowRoot()&&Ge.ce._injectChildStyle(ot,b.parent?b.parent.type:void 0);const It=b.subTree=Wd(b);f(null,It,k,N,b,I,j),x.el=It.el}if(Te&&Vt(Te,I),!Lt&&(de=ve&&ve.onVnodeMounted)){const It=x;Vt(()=>On(de,Ne,It),I)}(x.shapeFlag&256||Ne&&No(Ne.vnode)&&Ne.vnode.shapeFlag&256)&&b.a&&Vt(b.a,I),b.isMounted=!0,x=k=N=null}};b.scope.on();const K=b.effect=new ef(V);b.scope.off();const G=b.update=K.run.bind(K),ce=b.job=K.runIfDirty.bind(K);ce.i=b,ce.id=b.uid,K.scheduler=()=>Ac(ce),zr(b,!0),G()},Y=(b,x,k)=>{x.component=b;const N=b.vnode.props;b.vnode=x,b.next=null,Xy(b,x.props,N,k),Qy(b,x.children,k),sr(),Ld(b),ar()},ee=(b,x,k,N,I,j,q,V,K=!1)=>{const G=b&&b.children,ce=b?b.shapeFlag:0,de=x.children,{patchFlag:ge,shapeFlag:ve}=x;if(ge>0){if(ge&128){te(G,de,k,N,I,j,q,V,K);return}else if(ge&256){J(G,de,k,N,I,j,q,V,K);return}}ve&8?(ce&16&&Le(G,I,j),de!==G&&l(k,de)):ce&16?ve&16?te(G,de,k,N,I,j,q,V,K):Le(G,I,j,!0):(ce&8&&l(k,""),ve&16&&Z(de,k,N,I,j,q,V,K))},J=(b,x,k,N,I,j,q,V,K)=>{b=b||Qr,x=x||Qr;const G=b.length,ce=x.length,de=Math.min(G,ce);let ge;for(ge=0;gece?Le(b,I,j,!0,!1,de):Z(x,k,N,I,j,q,V,K,de)},te=(b,x,k,N,I,j,q,V,K)=>{let G=0;const ce=x.length;let de=b.length-1,ge=ce-1;for(;G<=de&&G<=ge;){const ve=b[G],ke=x[G]=K?Xn(x[G]):$n(x[G]);if(Zr(ve,ke))f(ve,ke,k,null,I,j,q,V,K);else break;G++}for(;G<=de&&G<=ge;){const ve=b[de],ke=x[ge]=K?Xn(x[ge]):$n(x[ge]);if(Zr(ve,ke))f(ve,ke,k,null,I,j,q,V,K);else break;de--,ge--}if(G>de){if(G<=ge){const ve=ge+1,ke=vege)for(;G<=de;)fe(b[G],I,j,!0),G++;else{const ve=G,ke=G,Te=new Map;for(G=ke;G<=ge;G++){const yt=x[G]=K?Xn(x[G]):$n(x[G]);yt.key!=null&&Te.set(yt.key,G)}let Ne,Ge=0;const ot=ge-ke+1;let Lt=!1,It=0;const zn=new Array(ot);for(G=0;G=ot){fe(yt,I,j,!0);continue}let Mt;if(yt.key!=null)Mt=Te.get(yt.key);else for(Ne=ke;Ne<=ge;Ne++)if(zn[Ne-ke]===0&&Zr(yt,x[Ne])){Mt=Ne;break}Mt===void 0?fe(yt,I,j,!0):(zn[Mt-ke]=G+1,Mt>=It?It=Mt:Lt=!0,f(yt,x[Mt],k,null,I,j,q,V,K),Ge++)}const Un=Lt?r4(zn):Qr;for(Ne=Un.length-1,G=ot-1;G>=0;G--){const yt=ke+G,Mt=x[yt],Zo=x[yt+1],Yo=yt+1{const{el:j,type:q,transition:V,children:K,shapeFlag:G}=b;if(G&6){re(b.component.subTree,x,k,N);return}if(G&128){b.suspense.move(x,k,N);return}if(G&64){q.move(b,x,k,U);return}if(q===Ze){r(j,x,k);for(let ce=0;ceV.enter(j),I));else{const{leave:ce,delayLeave:de,afterLeave:ge}=V,ve=()=>{b.ctx.isUnmounted?o(j):r(j,x,k)},ke=()=>{const Te=j._isLeaving||!!j[cn];j._isLeaving&&j[cn](!0),V.persisted&&!Te?ve():ce(j,()=>{ve(),ge&&ge()})};de?de(j,ve,ke):ke()}else r(j,x,k)},fe=(b,x,k,N=!1,I=!1)=>{const{type:j,props:q,ref:V,children:K,dynamicChildren:G,shapeFlag:ce,patchFlag:de,dirs:ge,cacheIndex:ve,memo:ke}=b;if((de===-2||G&&G.hasOnce)&&(I=!1),V!=null&&(sr(),Ts(V,null,k,b,!0),ar()),ve!=null&&(!b.ctx||b.ctx===x)&&(x.renderCache[ve]=void 0),ce&256){x.ctx.deactivate(b);return}const Te=ce&1&&ge,Ne=!No(b);let Ge;if(Ne&&(Ge=q&&q.onVnodeBeforeUnmount)&&On(Ge,x,b),ce&6)Se(b.component,k,N);else{if(ce&128){b.suspense.unmount(k,N);return}Te&&jr(b,null,x,"beforeUnmount"),ce&64?b.type.remove(b,x,k,U,N):G&&!G.hasOnce&&(j!==Ze||de>0&&de&64)?Le(G,x,k,!1,!0):(j===Ze&&de&384||!I&&ce&16)&&Le(K,x,k),N&&_e(b)}const ot=ke!=null&&ve==null;(Ne&&(Ge=q&&q.onVnodeUnmounted)||Te||ot)&&Vt(()=>{Ge&&On(Ge,x,b),Te&&jr(b,null,x,"unmounted"),ot&&(b.el=null)},k)},_e=b=>{const{type:x,el:k,anchor:N,transition:I}=b;if(x===Ze){we(k,N);return}if(x===Va){C(b),I&&!I.persisted&&I.afterLeave&&I.afterLeave();return}const j=()=>{o(k),I&&!I.persisted&&I.afterLeave&&I.afterLeave()};if(b.shapeFlag&1&&I&&!I.persisted){const{leave:q,delayLeave:V}=I,K=()=>q(k,j);V?V(b.el,j,K):K()}else j()},we=(b,x)=>{let k;for(;b!==x;)k=p(b),o(b),b=k;o(x)},Se=(b,x,k)=>{const{bum:N,scope:I,job:j,subTree:q,um:V,m:K,a:G}=b;Xd(K),Xd(G),N&&Ua(N),I.stop(),j?(j.flags|=8,fe(q,b,x,k)):b.vnode.el&&q&&(q.transition=b.vnode.transition,fe(q,b,x,k)),V&&Vt(V,x),Vt(()=>{b.isUnmounted=!0},x)},Le=(b,x,k,N=!1,I=!1,j=0)=>{for(let q=j;q{if(b.shapeFlag&6)return A(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const x=p(b.anchor||b.el),k=x&&x[Sf];return k?p(k):x};let B=!1;const F=(b,x,k)=>{let N;b==null?x._vnode&&(fe(x._vnode,null,null,!0),N=x._vnode.component):f(x._vnode||null,b,x,null,null,null,k),x._vnode=b,B||(B=!0,Ld(N),xf(),B=!1)},U={p:f,um:fe,m:re,r:_e,mt:W,mc:Z,pc:ee,pbc:P,n:A,o:e};return{render:F,hydrate:void 0,createApp:zy(F)}}function Tu({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function zr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function n4(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Tc(e,t,n=!1){const r=e.children,o=t.children;if(be(r)&&be(o))for(let s=0;s>1,e[n[i]]0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,a=n[s-1];s-- >0;)n[s]=a,a=t[a];return n}function ng(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ng(t)}function Xd(e){if(e)for(let t=0;te.__isSuspense;function o4(e,t){t&&t.pendingBranch?be(e)?t.effects.push(...e):t.effects.push(e):Cf(e)}const Ze=Symbol.for("v-fgt"),ca=Symbol.for("v-txt"),_t=Symbol.for("v-cmt"),Va=Symbol.for("v-stc"),or=[];let nn=null;function $(e=!1){or.push(nn=e?null:[])}function Oc(){or.pop(),nn=or[or.length-1]||null}let Ws=1;function li(e,t=!1){Ws+=e,e<0&&nn&&t&&(nn.hasOnce=!0)}function sg(e){return e.dynamicChildren=Ws>0?nn||Qr:null,Oc(),Ws>0&&nn&&nn.push(e),e}function X(e,t,n,r,o,s){return sg(ue(e,t,n,r,o,s,!0))}function me(e,t,n,r,o){return sg(le(e,t,n,r,o,!0))}function qs(e){return e?e.__v_isVNode===!0:!1}function Zr(e,t){return e.type===t.type&&e.key===t.key}const ag=({key:e})=>e??null,Ha=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ke(e)||lt(e)||Ce(e)?{i:St,r:e,k:t,f:!!n}:e:null);function ue(e,t=null,n=null,r=0,o=null,s=e===Ze?0:1,a=!1,i=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ag(t),ref:t&&Ha(t),scopeId:qi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:St};return i?(ci(u,n),s&128&&e.normalize(u)):n&&(u.shapeFlag|=Ke(n)?8:16),Ws>0&&!a&&nn&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&nn.push(u),u}const le=s4;function s4(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===If)&&(e=_t),qs(e)){const i=Br(e,t,!0);return n&&ci(i,n),Ws>0&&!s&&nn&&(i.shapeFlag&6?nn[nn.indexOf(e)]=i:nn.push(i)),i.patchFlag=-2,i}if(h4(e)&&(e=e.__vccOpts),t){t=Mo(t);let{class:i,style:u}=t;i&&!Ke(i)&&(t.class=Be(i)),Me(u)&&(Gi(u)&&!be(u)&&(u=ct({},u)),t.style=hn(u))}const a=Ke(e)?1:og(e)?128:Zi(e)?64:Me(e)?4:Ce(e)?2:0;return ue(e,t,n,r,o,a,s,!0)}function Mo(e){return e?Gi(e)||Zf(e)?ct({},e):e:null}function Br(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:a,children:i,transition:u}=e,c=t?ft(o||{},t):o,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ag(c),ref:t&&t.ref?n&&s?be(s)?s.concat(Ha(t)):[s,Ha(t)]:Ha(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ze?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Br(e.ssContent),ssFallback:e.ssFallback&&Br(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return u&&r&&Gs(l,u.clone(l)),l}function wt(e=" ",t=0){return le(ca,null,e,t)}function he(e="",t=!1){return t?($(),me(_t,null,e)):le(_t,null,e)}function $n(e){return e==null||typeof e=="boolean"?le(_t):be(e)?le(Ze,null,e.slice()):qs(e)?Xn(e):le(ca,null,String(e))}function Xn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Br(e)}function ci(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(be(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),ci(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Zf(t)?t._ctx=St:o===3&&St&&(St.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Ce(t)){if(r&65){ci(e,{default:t});return}t={default:t,_ctx:St},n=32}else t=String(t),r&64?(n=16,t=[wt(t)]):n=8;e.children=t,e.shapeFlag|=n}function ft(...e){const t={};for(let n=0;nPt||St;let di,Ks;{const e=ei(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),s=>{o.length>1?o.forEach(a=>a(s)):o[0](s)}};di=t("__VUE_INSTANCE_SETTERS__",n=>Pt=n),Ks=t("__VUE_SSR_SETTERS__",n=>Xs=n)}const da=e=>{const t=Pt;return di(e),e.scope.on(),()=>{e.scope.off(),di(t)}},Zd=()=>{Pt&&Pt.scope.off(),di(null)};function ig(e){return e.vnode.shapeFlag&4}let Xs=!1;function l4(e,t=!1,n=!1){t&&Ks(t);const{props:r,children:o}=e.vnode,s=ig(e);Ky(e,r,s,t),Jy(e,o,n||t);const a=s?c4(e,t):void 0;return t&&Ks(!1),a}function c4(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,By);const{setup:r}=n;if(r){sr();const o=e.setupContext=r.length>1?lg(e):null,s=da(e),a=ia(r,e,0,[e.props,o]),i=W0(a);if(ar(),s(),(i||e.sp)&&!No(e)&&Bf(e),i){if(a.then(Zd,Zd),t)return a.then(u=>{Ks(!0);try{Yd(e,u,t)}finally{Ks(!1)}}).catch(u=>{Wi(u,e,0)});e.asyncDep=a}else Yd(e,a)}else ug(e)}function Yd(e,t,n){Ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Me(t)&&(e.setupState=bf(t)),ug(e)}function ug(e,t,n){const r=e.type;e.render||(e.render=r.render||pn);{const o=da(e);sr();try{Ry(e)}finally{ar(),o()}}}const d4={get(e,t){return Nt(e,"get",""),e[t]}};function lg(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,d4),slots:e.slots,emit:e.emit,expose:t}}function tu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(bf(Y1(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ds)return Ds[n](e)},has(t,n){return n in t||n in Ds}})):e.proxy}function p4(e,t=!0){return Ce(e)?e.displayName||e.name:e.name||t&&e.__name}function h4(e){return Ce(e)&&"__vccOpts"in e}const se=(e,t)=>ay(e,t,Xs);function Dt(e,t,n){try{li(-1);const r=arguments.length;return r===2?Me(t)&&!be(t)?qs(t)?le(e,null,[t]):le(e,t):le(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&qs(n)&&(n=[n]),le(e,t,n))}finally{li(1)}}const f4="3.5.43",g4=pn;let Rl;const Jd=typeof window<"u"&&window.trustedTypes;if(Jd)try{Rl=Jd.createPolicy("vue",{createHTML:e=>e})}catch{}const cg=Rl?e=>Rl.createHTML(e):e=>e,m4="http://www.w3.org/2000/svg",v4="http://www.w3.org/1998/Math/MathML",Kn=typeof document<"u"?document:null,Qd=Kn&&Kn.createElement("template"),y4={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Kn.createElementNS(m4,e):t==="mathml"?Kn.createElementNS(v4,e):n?Kn.createElement(e,{is:n}):Kn.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Kn.createTextNode(e),createComment:e=>Kn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Kn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const a=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{Qd.innerHTML=cg(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const i=Qd.content;if(r==="svg"||r==="mathml"){const u=i.firstChild;for(;u.firstChild;)i.appendChild(u.firstChild);i.removeChild(u)}t.insertBefore(i,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},pr="transition",ns="animation",Zs=Symbol("_vtc"),dg={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},b4=ct({},Tf,dg),E4=e=>(e.displayName="Transition",e.props=b4,e),rs=E4((e,{slots:t})=>Dt(xy,w4(e),t)),Ur=(e,t=[])=>{be(e)?e.forEach(n=>n(...t)):e&&e(...t)},ep=e=>e?be(e)?e.some(t=>t.length>1):e.length>1:!1;function w4(e){const t={};for(const O in e)O in dg||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:u=s,appearActiveClass:c=a,appearToClass:l=i,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,g=C4(o),f=g&&g[0],m=g&&g[1],{onBeforeEnter:y,onEnter:v,onEnterCancelled:E,onLeave:C,onLeaveCancelled:_,onBeforeAppear:D=y,onAppear:R=v,onAppearCancelled:Z=E}=t,M=(O,S,W,ne)=>{O._enterCancelled=ne,Vr(O,S?l:i),Vr(O,S?c:a),W&&W()},P=(O,S)=>{O._isLeaving=!1,Vr(O,d),Vr(O,h),Vr(O,p),S&&S()},oe=O=>(S,W)=>{const ne=O?R:v,Q=()=>M(S,O,W);Ur(ne,[S,Q]),tp(()=>{Vr(S,O?u:s),Gn(S,O?l:i),ep(ne)||np(S,r,f,Q)})};return ct(t,{onBeforeEnter(O){Ur(y,[O]),Gn(O,s),Gn(O,a)},onBeforeAppear(O){Ur(D,[O]),Gn(O,u),Gn(O,c)},onEnter:oe(!1),onAppear:oe(!0),onLeave(O,S){O._isLeaving=!0;const W=()=>P(O,S);Gn(O,d),O._enterCancelled?(Gn(O,p),sp(O)):(sp(O),Gn(O,p)),tp(()=>{O._isLeaving&&(Vr(O,d),Gn(O,h),ep(C)||np(O,r,m,W))}),Ur(C,[O,W])},onEnterCancelled(O){M(O,!1,void 0,!0),Ur(E,[O])},onAppearCancelled(O){M(O,!0,void 0,!0),Ur(Z,[O])},onLeaveCancelled(O){P(O),Ur(_,[O])}})}function C4(e){if(e==null)return null;if(Me(e))return[Ou(e.enter),Ou(e.leave)];{const t=Ou(e);return[t,t]}}function Ou(e){return b1(e)}function Gn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Zs]||(e[Zs]=new Set)).add(t)}function Vr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Zs];n&&(n.delete(t),n.size||(e[Zs]=void 0))}function tp(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let x4=0;function np(e,t,n,r){const o=e._endId=++x4,s=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:a,timeout:i,propCount:u}=A4(e,t);if(!a)return r();const c=a+"end";let l=0;const d=()=>{e.removeEventListener(c,p),s()},p=h=>{h.target===e&&++l>=u&&d()};setTimeout(()=>{l(n[g]||"").split(", "),o=r(`${pr}Delay`),s=r(`${pr}Duration`),a=rp(o,s),i=r(`${ns}Delay`),u=r(`${ns}Duration`),c=rp(i,u);let l=null,d=0,p=0;t===pr?a>0&&(l=pr,d=a,p=s.length):t===ns?c>0&&(l=ns,d=c,p=u.length):(d=Math.max(a,c),l=d>0?a>c?pr:ns:null,p=l?l===pr?s.length:u.length:0);const h=l===pr&&/\b(?:transform|all)(?:,|$)/.test(r(`${pr}Property`).toString());return{type:l,timeout:d,propCount:p,hasTransform:h}}function rp(e,t){for(;e.lengthop(n)+op(e[r])))}function op(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function sp(e){return(e?e.ownerDocument:document).body.offsetHeight}function _4(e,t,n){const r=e[Zs];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const pi=Symbol("_vod"),pg=Symbol("_vsh"),tr={name:"show",beforeMount(e,{value:t},{transition:n}){e[pi]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):os(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),os(e,!0),r.enter(e)):r.leave(e,()=>{os(e,!1)}):os(e,t))},beforeUnmount(e,{value:t}){os(e,t)}};function os(e,t){e.style.display=t?e[pi]:"none",e[pg]=!t}const hg=Symbol("");function fg(e){const t=jn();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>hi(s,o))},r=()=>{const o=e(t.proxy);t.ce?hi(t.ce,o):Fl(t.subTree,o),n(o)};Ff(()=>{Cf(r)}),Sn(()=>{et(r,pn,{flush:"post"});const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),ur(()=>o.disconnect())})}function Fl(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Fl(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)hi(e.el,t);else if(e.type===Ze)e.children.forEach(n=>Fl(n,t));else if(e.type===Va){let{el:n,anchor:r}=e;for(;n&&(hi(n,t),n!==r);)n=n.nextSibling}}function hi(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t){const s=O1(t[o]);n.setProperty(`--${o}`,s),r+=`--${o}: ${s};`}n[hg]=r}}const S4=/(?:^|;)\s*display\s*:/;function k4(e,t,n){const r=e.style,o=Ke(n);let s=!1;if(n&&!o){if(t)if(Ke(t))for(const a of t.split(";")){const i=a.slice(0,a.indexOf(":")).trim();n[i]==null&&ws(r,i,"")}else for(const a in t)n[a]==null&&ws(r,a,"");for(const a in n){a==="display"&&(s=!0);const i=n[a];i!=null?O4(e,a,!Ke(t)&&t?t[a]:void 0,i)||ws(r,a,i):ws(r,a,"")}}else if(o){if(t!==n){const a=r[hg];a&&(n+=";"+a),r.cssText=n,s=S4.test(n)}}else t&&e.removeAttribute("style");pi in e&&(e[pi]=s?r.display:"",e[pg]&&(r.display="none"))}const Na=/\s*!important$/;function ws(e,t,n){if(be(n))n.forEach(r=>ws(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))Na.test(n)?e.setProperty(t,n.replace(Na,""),"important"):e.setProperty(t,n);else{const r=T4(e,t);Na.test(n)?e.setProperty(cr(r),n.replace(Na,""),"important"):e[r]=n}}const ap=["Webkit","Moz","ms"],Du={};function T4(e,t){const n=Du[t];if(n)return n;let r=Rt(t);if(r!=="filter"&&r in e)return Du[t]=r;r=Mi(r);for(let o=0;oNu||(R4.then(()=>Nu=0),Nu=Date.now());function L4(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;const o=n.value;if(be(o)){const s=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{s.call(r),r._stopped=!0};const a=o.slice(),i=[r];for(let u=0;ue.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,I4=(e,t,n,r,o,s)=>{const a=o==="svg";t==="class"?_4(e,r,a):t==="style"?k4(e,n,r):Ri(t)?Fi(t)||N4(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):M4(e,t,r,a))?(lp(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&up(e,t,r,a,s,t!=="value")):e._isVueCE&&(j4(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ke(r)))?lp(e,Rt(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),up(e,t,r,a))};function M4(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&dp(t)&&Ce(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return dp(t)&&Ke(n)?!1:t in e}function j4(e,t){const n=e._def.props;if(!n)return!1;const r=Rt(t);return Array.isArray(n)?n.some(o=>Rt(o)===r):Object.keys(n).some(o=>Rt(o)===r)}const pp=e=>{const t=e.props["onUpdate:modelValue"]||!1;return be(t)?n=>Ua(t,n):t};function z4(e){e.target.composing=!0}function hp(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Pa=Symbol("_assign"),Ba=Symbol("_initialValue");function Pu(e,t,n){return t&&(e=e.trim()),n&&(e=Ec(e)),e}const U4={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e.parentNode&&(e.type==="text"?e[Ba]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Ba]=e.defaultValue.replace(/\r\n?/g,` +`))),e[Pa]=pp(o);const s=r||o.props&&o.props.type==="number";_o(e,t?"change":"input",a=>{a.target.composing||e[Pa](Pu(e.value,n,s))}),(n||s)&&_o(e,"change",()=>{e.value=Pu(e.value,n,s)}),t||(_o(e,"compositionstart",z4),_o(e,"compositionend",hp),_o(e,"change",hp))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){const o=t??"",s=e[Ba];delete e[Ba],s!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==s?e[Pa](Pu(e.value,n,r)):e.value=o},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:s}},a){if(e[Pa]=pp(a),e.composing)return;const i=(s||e.type==="number")&&!/^0\d/.test(e.value)?Ec(e.value):e.value,u=t??"";if(i===u)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(r&&t===n||o&&e.value.trim()===u)||(e.value=u)}},V4=["ctrl","shift","alt","meta"],H4={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>V4.some(n=>e[`${n}Key`]&&!t.includes(n))},En=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((o,...s)=>{for(let a=0;a{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(o=>{if(!("key"in o))return;const s=cr(o.key);if(t.some(a=>a===s||G4[a]===s))return e(o)}))},W4=ct({patchProp:I4},y4);let fp;function q4(){return fp||(fp=e4(W4))}const K4=((...e)=>{const t=q4().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Z4(r);if(!o)return;const s=t._component;!Ce(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const a=n(o,!1,X4(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t});function X4(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Z4(e){return Ke(e)?document.querySelector(e):e}function gg(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Y4(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&gg(e.default)}const je=Object.assign;function Bu(e,t){const n={};for(const r in t){const o=t[r];n[r]=_n(o)?o.map(e):e(o)}return n}const Ns=()=>{},_n=Array.isArray;function gp(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const mg=Symbol("");function jo(e,t){return je(new Error,{type:e,[mg]:!0},t)}function Wn(e,t){return e instanceof Error&&mg in e&&(t==null||!!(e.type&t))}const J4=Symbol(""),mp=Symbol(""),ha=Symbol(""),Dc=Symbol(""),Ll=Symbol("");function Q4(){return rt(ha)}function eb(e){return rt(Dc)}const So=typeof document<"u",vg=/#/g,tb=/&/g,nb=/\//g,rb=/=/g,ob=/\?/g,yg=/\+/g,sb=/%5B/g,ab=/%5D/g,bg=/%5E/g,ib=/%60/g,Eg=/%7B/g,ub=/%7C/g,wg=/%7D/g,lb=/%20/g;function Nc(e){return e==null?"":encodeURI(""+e).replace(ub,"|").replace(sb,"[").replace(ab,"]")}function cb(e){return Nc(e).replace(Eg,"{").replace(wg,"}").replace(bg,"^")}function Il(e){return Nc(e).replace(yg,"%2B").replace(lb,"+").replace(vg,"%23").replace(tb,"%26").replace(ib,"`").replace(Eg,"{").replace(wg,"}").replace(bg,"^")}function db(e){return Il(e).replace(rb,"%3D")}function pb(e){return Nc(e).replace(vg,"%23").replace(ob,"%3F")}function hb(e){return pb(e).replace(nb,"%2F")}function fi(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const fb=/\/$/,gb=e=>e.replace(fb,"");function $u(e,t,n="/"){let r,o={},s="",a="";const i=t.indexOf("#");let u=t.indexOf("?");return u=i>=0&&u>i?-1:u,u>=0&&(r=t.slice(0,u),s=t.slice(u,i>0?i:t.length),o=e(s.slice(1))),i>=0&&(r=r||t.slice(0,i),a=t.slice(i,t.length)),r=bb(r??t,n),{fullPath:r+s+a,path:r,query:o,hash:fi(a)}}function mb(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function vp(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function vb(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&zo(t.matched[r],n.matched[o])&&Cg(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function zo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Cg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!yb(e[n],t[n]))return!1;return!0}function yb(e,t){return _n(e)?yp(e,t):_n(t)?yp(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function yp(e,t){return _n(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function bb(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,a,i;for(a=0;a1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(a).join("/")}const hr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};function Eb(e){if(!e)if(So){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),gb(e)}const wb=/^[^#]+#/;function Cb(e,t){return e.replace(wb,"#")+t}function xb(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const nu=()=>({left:window.scrollX,top:window.scrollY});function Ab(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=xb(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function bp(e,t){return(history.state?history.state.position-t:-1)+e}const Ml=new Map;function _b(e,t){Ml.set(e,t)}function Sb(e){const t=Ml.get(e);return Ml.delete(e),t}function kb(e){return typeof e=="string"||e&&typeof e=="object"}function xg(e){return typeof e=="string"||typeof e=="symbol"}function Tb(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Il(o)):[r&&Il(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Ob(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=_n(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}function ss(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function wr(e,t,n,r,o,s=a=>a()){const a=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((i,u)=>{const c=p=>{p===!1?u(jo(4,{from:n,to:t})):p instanceof Error?u(p):kb(p)?u(jo(2,{from:t,to:p})):(a&&r.enterCallbacks[o]===a&&typeof p=="function"&&a.push(p),i())},l=s(()=>e.call(r&&r.instances[o],t,n,c));let d=Promise.resolve(l);e.length<3&&(d=d.then(c)),d.catch(p=>u(p))})}function Ru(e,t,n,r,o=s=>s()){const s=[];for(const a of e)for(const i in a.components){let u=a.components[i];if(!(t!=="beforeRouteEnter"&&!a.instances[i]))if(gg(u)){const c=(u.__vccOpts||u)[t];c&&s.push(wr(c,n,r,a,i,o))}else{let c=u();s.push(()=>c.then(l=>{if(!l)throw new Error(`Couldn't resolve component "${i}" at "${a.path}"`);const d=Y4(l)?l.default:l;a.mods[i]=l,a.components[i]=d;const p=(d.__vccOpts||d)[t];return p&&wr(p,n,r,a,i,o)()}))}}return s}function Db(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let a=0;azo(c,i))?r.push(i):n.push(i));const u=e.matched[a];u&&(t.matched.find(c=>zo(c,u))||o.push(u))}return[n,r,o]}let Nb=()=>location.protocol+"//"+location.host;function Ag(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,i=o.slice(a);return i[0]!=="/"&&(i="/"+i),vp(i,"")}return vp(n,e)+r+o}function Pb(e,t,n,r){let o=[],s=[],a=null;const i=({state:p})=>{const h=Ag(e,location),g=n.value,f=t.value;let m=0;if(p){if(n.value=h,t.value=p,a&&a===g){a=null;return}m=f?p.position-f.position:0}else r(h);o.forEach(y=>{y(n.value,g,{delta:m,type:"pop",direction:m?m>0?"forward":"back":""})})};function u(){a=n.value}function c(p){o.push(p);const h=()=>{const g=o.indexOf(p);g>-1&&o.splice(g,1)};return s.push(h),h}function l(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(je({},p.state,{scroll:nu()}),"")}}function d(){for(const p of s)p();s=[],window.removeEventListener("popstate",i),window.removeEventListener("pagehide",l),document.removeEventListener("visibilitychange",l)}return window.addEventListener("popstate",i),window.addEventListener("pagehide",l),document.addEventListener("visibilitychange",l),{pauseListeners:u,listen:c,destroy:d}}function wp(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?nu():null}}function Bb(e){const{history:t,location:n}=window,r={value:Ag(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(u,c,l){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+u:Nb()+e+u;try{t[l?"replaceState":"pushState"](c,"",p),o.value=c}catch(h){console.error(h),n[l?"replace":"assign"](p)}}function a(u,c){s(u,je({},t.state,wp(o.value.back,u,o.value.forward,!0),c,{position:o.value.position}),!0),r.value=u}function i(u,c){const l=je({},o.value,t.state,{forward:u,scroll:nu()});s(l.current,l,!0),s(u,je({},wp(r.value,u,null),{position:l.position+1},c),!1),r.value=u}return{location:r,state:o,push:i,replace:a}}function $b(e){e=Eb(e);const t=Bb(e),n=Pb(e,t.state,t.location,t.replace);function r(s,a=!0){a||n.pauseListeners(),history.go(s)}const o=je({location:"",base:e,go:r,createHref:Cb.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}const Rb={type:0,value:""},Fb=/[a-zA-Z0-9_]/;function Lb(e){if(!e)return[[]];if(e==="/")return[[Rb]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,r=n;const o=[];let s;function a(){s&&o.push(s),s=[]}let i=0,u,c="",l="";function d(){c&&(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:l,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=u}for(;it.length?t.length===1&&t[0]===80?1:-1:0}function _g(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const Ub={strict:!1,end:!0,sensitive:!1};function Vb(e,t,n){const r=jb(Lb(e.path),n),o=je(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Hb(e,t){const n=[],r=new Map;t=gp(Ub,t);function o(d){return r.get(d)}function s(d,p,h){const g=!h,f=_p(d);f.aliasOf=h&&h.record;const m=gp(t,d),y=[f];if("alias"in d){const C=typeof d.alias=="string"?[d.alias]:d.alias;for(const _ of C)y.push(_p(je({},f,{components:h?h.record.components:f.components,path:_,aliasOf:h?h.record:f})))}let v,E;for(const C of y){const{path:_}=C;if(p&&_[0]!=="/"){const D=p.record.path,R=D[D.length-1]==="/"?"":"/";C.path=p.record.path+(_&&R+_)}if(v=Vb(C,p,m),h?h.alias.push(v):(E=E||v,E!==v&&E.alias.push(v),g&&d.name&&!Sp(v)&&a(d.name)),Sg(v)&&u(v),f.children){const D=f.children;for(let R=0;R{a(E)}:Ns}function a(d){if(xg(d)){const p=r.get(d);p&&(r.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(a),p.alias.forEach(a))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&r.delete(d.record.name),d.children.forEach(a),d.alias.forEach(a))}}function i(){return n}function u(d){const p=qb(d,n);n.splice(p,0,d),d.record.name&&!Sp(d)&&r.set(d.record.name,d)}function c(d,p){let h,g={},f,m;if("name"in d&&d.name){if(h=r.get(d.name),!h)throw jo(1,{location:d});m=h.record.name,g=je(Ap(p.params,h.keys.filter(E=>!E.optional).concat(h.parent?h.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),d.params&&Ap(d.params,h.keys.map(E=>E.name))),f=h.stringify(g)}else if(d.path!=null)f=d.path,h=n.find(E=>E.re.test(f)),h&&(g=h.parse(f),m=h.record.name,h.keys.forEach(E=>{E.optional&&!g[E.name]&&delete g[E.name]}));else{if(h=p.name?r.get(p.name):n.find(E=>E.re.test(p.path)),!h)throw jo(1,{location:d,currentLocation:p});m=h.record.name,g=je({},p.params,d.params),f=h.stringify(g)}const y=[];let v=h;for(;v;)y.unshift(v.record),v=v.parent;return{name:m,path:f,params:g,matched:y,meta:Wb(y)}}e.forEach(d=>s(d));function l(){n.length=0,r.clear()}return{addRoute:s,resolve:c,removeRoute:a,clearRoutes:l,getRoutes:i,getRecordMatcher:o}}function Ap(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function _p(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Gb(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(t,"mods",{value:{}}),t}function Gb(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Sp(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Wb(e){return e.reduce((t,n)=>je(t,n.meta),{})}function qb(e,t){let n=0,r=t.length;for(;n!==r;){const s=n+r>>1;_g(e,t[s])<0?r=s:n=s+1}const o=Kb(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function Kb(e){let t=e;for(;t=t.parent;)if(Sg(t)&&_g(e,t)===0)return t}function Sg({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function kp(e){const t=rt(ha),n=rt(Dc),r=se(()=>{const u=z(e.to);return t.resolve(u)}),o=se(()=>{const{matched:u}=r.value,{length:c}=u,l=u[c-1],d=n.matched;if(!l||!d.length)return-1;const p=d.findIndex(zo.bind(null,l));if(p>-1)return p;const h=Tp(u[c-2]);return c>1&&Tp(l)===h&&d[d.length-1].path!==h?d.findIndex(zo.bind(null,u[c-2])):p}),s=se(()=>o.value>-1&&Jb(n.params,r.value.params)),a=se(()=>o.value>-1&&o.value===n.matched.length-1&&Cg(n.params,r.value.params));function i(u={}){if(Yb(u)){const c=t[z(e.replace)?"replace":"push"](z(e.to)).catch(Ns);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:se(()=>r.value.href),isActive:s,isExactActive:a,navigate:i}}function Xb(e){return e.length===1?e[0]:e}const Zb=We({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:kp,setup(e,{slots:t}){const n=Io(kp(e)),{options:r}=rt(ha),o=se(()=>({[Op(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Op(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&Xb(t.default(n));return e.custom?s:Dt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}});function Yb(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 t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Jb(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!_n(o)||o.length!==r.length||r.some((s,a)=>s.valueOf()!==o[a].valueOf()))return!1}return!0}function Tp(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Op=(e,t,n)=>e??t??n,Qb=We({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=rt(Ll),o=se(()=>e.route||r.value),s=rt(mp,0),a=se(()=>{let c=z(s);const{matched:l}=o.value;let d;for(;(d=l[c])&&!d.components;)c++;return c}),i=se(()=>o.value.matched[a.value]);Zt(mp,se(()=>a.value+1)),Zt(J4,i),Zt(Ll,o);const u=Ae();return et(()=>[u.value,i.value,e.name],([c,l,d],[p,h,g])=>{l&&(l.instances[d]=c,h&&h!==l&&c&&c===p&&(l.leaveGuards.size||(l.leaveGuards=h.leaveGuards),l.updateGuards.size||(l.updateGuards=h.updateGuards))),c&&l&&(!h||!zo(l,h)||!p)&&(l.enterCallbacks[d]||[]).forEach(f=>f(c))},{flush:"post"}),()=>{const c=o.value,l=e.name,d=i.value,p=d&&d.components[l];if(!p)return Dp(n.default,{Component:p,route:c});const h=d.props[l],g=h?h===!0?c.params:typeof h=="function"?h(c):h:null,f=Dt(p,je({},g,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(d.instances[l]=null)},ref:u}));return Dp(n.default,{Component:f,route:c})||f}}});function Dp(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const kg=Qb;function e3(e){const t=Hb(e.routes,e),n=e.parseQuery||Tb,r=e.stringifyQuery||Ep,o=e.history,s=ss(),a=ss(),i=ss(),u=ir(hr);let c=hr;So&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const l=Bu.bind(null,A=>""+A),d=Bu.bind(null,hb),p=Bu.bind(null,fi);function h(A,B){let F,U;return xg(A)?(F=t.getRecordMatcher(A),U=B):U=A,t.addRoute(U,F)}function g(A){const B=t.getRecordMatcher(A);B&&t.removeRoute(B)}function f(){return t.getRoutes().map(A=>A.record)}function m(A){return!!t.getRecordMatcher(A)}function y(A,B){if(B=je({},B||u.value),typeof A=="string"){const N=$u(n,A,B.path),I=t.resolve({path:N.path},B),j=o.createHref(N.fullPath);return je(N,I,{params:p(I.params),redirectedFrom:void 0,href:j})}let F;if(A.path!=null)F=je({},A,{path:$u(n,A.path,B.path).path});else{const N=je({},A.params);for(const I in N)N[I]==null&&delete N[I];F=je({},A,{params:d(N)}),B.params=d(B.params)}const U=t.resolve(F,B),b=A.hash||"";U.params=l(p(U.params));const x=mb(r,je({},A,{hash:cb(b),path:U.path})),k=o.createHref(x);return je({fullPath:x,hash:b,query:r===Ep?Ob(A.query):A.query||{}},U,{redirectedFrom:void 0,href:k})}function v(A){return typeof A=="string"?$u(n,A,u.value.path):je({},A)}function E(A,B){if(c!==A)return jo(8,{from:B,to:A})}function C(A){return R(A)}function _(A){return C(je(v(A),{replace:!0}))}function D(A,B){const F=A.matched[A.matched.length-1];if(F&&F.redirect){const{redirect:U}=F;let b=typeof U=="function"?U(A,B):U;return typeof b=="string"&&(b=b.includes("?")||b.includes("#")?b=v(b):{path:b},b.params={}),je({query:A.query,hash:A.hash,params:b.path!=null?{}:A.params},b)}}function R(A,B){const F=c=y(A),U=u.value,b=A.state,x=A.force,k=A.replace===!0,N=D(F,U);if(N)return R(je(v(N),{state:typeof N=="object"?je({},b,N.state):b,force:x,replace:k}),B||F);const I=F;I.redirectedFrom=B;let j;return!x&&vb(r,U,F)&&(j=jo(16,{to:I,from:U}),re(U,U,!0,!1)),(j?Promise.resolve(j):P(I,U)).catch(q=>Wn(q)?Wn(q,2)?q:te(q):ee(q,I,U)).then(q=>{if(q){if(Wn(q,2))return R(je({replace:k},v(q.to),{state:typeof q.to=="object"?je({},b,q.to.state):b,force:x}),B||I)}else q=O(I,U,!0,k,b);return oe(I,U,q),q})}function Z(A,B){const F=E(A,B);return F?Promise.reject(F):Promise.resolve()}function M(A){const B=we.values().next().value;return B&&typeof B.runWithContext=="function"?B.runWithContext(A):A()}function P(A,B){let F;const[U,b,x]=Db(A,B);F=Ru(U.reverse(),"beforeRouteLeave",A,B);for(const N of U)N.leaveGuards.forEach(I=>{F.push(wr(I,A,B))});const k=Z.bind(null,A,B);return F.push(k),Le(F).then(()=>{F=[];for(const N of s.list())F.push(wr(N,A,B));return F.push(k),Le(F)}).then(()=>{F=Ru(b,"beforeRouteUpdate",A,B);for(const N of b)N.updateGuards.forEach(I=>{F.push(wr(I,A,B))});return F.push(k),Le(F)}).then(()=>{F=[];for(const N of x)if(N.beforeEnter)if(_n(N.beforeEnter))for(const I of N.beforeEnter)F.push(wr(I,A,B));else F.push(wr(N.beforeEnter,A,B));return F.push(k),Le(F)}).then(()=>(A.matched.forEach(N=>N.enterCallbacks={}),F=Ru(x,"beforeRouteEnter",A,B,M),F.push(k),Le(F))).then(()=>{F=[];for(const N of a.list())F.push(wr(N,A,B));return F.push(k),Le(F)}).catch(N=>Wn(N,8)?N:Promise.reject(N))}function oe(A,B,F){i.list().forEach(U=>M(()=>U(A,B,F)))}function O(A,B,F,U,b){const x=E(A,B);if(x)return x;const k=B===hr,N=So?history.state:{};F&&(U||k?o.replace(A.fullPath,je({scroll:k&&N&&N.scroll},b)):o.push(A.fullPath,b)),u.value=A,re(A,B,F,k),te()}let S;function W(){S||(S=o.listen((A,B,F)=>{if(!Se.listening)return;const U=y(A),b=D(U,Se.currentRoute.value);if(b){R(je(b,{replace:!0,force:!0}),U).catch(Ns);return}c=U;const x=u.value;So&&_b(bp(x.fullPath,F.delta),nu()),P(U,x).catch(k=>Wn(k,12)?k:Wn(k,2)?(R(je(v(k.to),{force:!0}),U).then(N=>{Wn(N,20)&&!F.delta&&F.type==="pop"&&o.go(-1,!1)}).catch(Ns),Promise.reject()):(F.delta&&o.go(-F.delta,!1),ee(k,U,x))).then(k=>{k=k||O(U,x,!1),k&&(F.delta&&!Wn(k,8)?o.go(-F.delta,!1):F.type==="pop"&&Wn(k,20)&&o.go(-1,!1)),oe(U,x,k)}).catch(Ns)}))}let ne=ss(),Q=ss(),Y;function ee(A,B,F){te(A);const U=Q.list();return U.length?U.forEach(b=>b(A,B,F)):console.error(A),Promise.reject(A)}function J(){return Y&&u.value!==hr?Promise.resolve():new Promise((A,B)=>{ne.add([A,B])})}function te(A){return Y||(Y=!A,W(),ne.list().forEach(([B,F])=>A?F(A):B()),ne.reset()),A}function re(A,B,F,U){const{scrollBehavior:b}=e;if(!So||!b)return Promise.resolve();const x=!F&&Sb(bp(A.fullPath,0))||(U||!F)&&history.state&&history.state.scroll||null;return xn().then(()=>b(A,B,x)).then(k=>A===u.value&&k&&Ab(k)).catch(k=>A===u.value&&ee(k,A,B))}const fe=A=>o.go(A);let _e;const we=new Set,Se={currentRoute:u,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:f,resolve:y,options:e,push:C,replace:_,go:fe,back:()=>fe(-1),forward:()=>fe(1),beforeEach:s.add,beforeResolve:a.add,afterEach:i.add,onError:Q.add,isReady:J,install(A){A.component("RouterLink",Zb),A.component("RouterView",kg),A.config.globalProperties.$router=Se,Object.defineProperty(A.config.globalProperties,"$route",{enumerable:!0,get:()=>z(u)}),So&&!_e&&u.value===hr&&(_e=!0,C(o.location).catch(U=>{}));const B={};for(const U in hr)Object.defineProperty(B,U,{get:()=>u.value[U],enumerable:!0});A.provide(ha,Se),A.provide(Dc,vf(B)),A.provide(Ll,u);const F=A.unmount;we.add(A),A.unmount=function(){we.delete(A),we.size<1&&(c=hr,S&&S(),S=null,u.value=hr,_e=!1,Y=!1),F()}}};function Le(A){return A.reduce((B,F)=>B.then(()=>M(F)),Promise.resolve())}return Se}const t3=We({__name:"App",setup(e){return(t,n)=>($(),me(z(kg)))}}),n3=e=>"/remote.php/"+e,r3=(e,t)=>Og()+n3(e),Tg=(e,t,n)=>{const r=Object.assign({ocsVersion:2},{}).ocsVersion===1?1:2;return Og()+"/ocs/v"+r+".php"+jl(e,t)},jl=(e,t,n)=>{const r=Object.assign({escape:!0},{}),o=function(s,a){return a=a||{},s.replace(/{([^{}]*)}/g,function(i,u){const c=a[u];return r.escape?encodeURIComponent(typeof c=="string"||typeof c=="number"?c.toString():i):typeof c=="string"||typeof c=="number"?c.toString():i})};return e.charAt(0)!=="/"&&(e="/"+e),o(e,t||{})},xr=(e,t,n)=>{const r=Object.assign({noRewrite:!1},{}),o=Dg();return window?.OC?.config?.modRewriteWorking===!0&&!r.noRewrite?o+jl(e,t):o+"/index.php"+jl(e,t)},Og=()=>window.location.protocol+"//"+window.location.host+Dg();function Dg(){let e=window._oc_webroot;if(typeof e>"u"){e=location.pathname;const t=e.indexOf("/index.php/");if(t!==-1)e=e.slice(0,t);else{const n=e.indexOf("/",1);e=e.slice(0,n>0?n:void 0)}}return e}function Pc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ng={exports:{}},it=Ng.exports={},Nn,Pn;function zl(){throw new Error("setTimeout has not been defined")}function Ul(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Nn=setTimeout:Nn=zl}catch{Nn=zl}try{typeof clearTimeout=="function"?Pn=clearTimeout:Pn=Ul}catch{Pn=Ul}})();function Pg(e){if(Nn===setTimeout)return setTimeout(e,0);if((Nn===zl||!Nn)&&setTimeout)return Nn=setTimeout,setTimeout(e,0);try{return Nn(e,0)}catch{try{return Nn.call(null,e,0)}catch{return Nn.call(this,e,0)}}}function s3(e){if(Pn===clearTimeout)return clearTimeout(e);if((Pn===Ul||!Pn)&&clearTimeout)return Pn=clearTimeout,clearTimeout(e);try{return Pn(e)}catch{try{return Pn.call(null,e)}catch{return Pn.call(this,e)}}}var nr=[],Bo=!1,eo,Ga=-1;function a3(){!Bo||!eo||(Bo=!1,eo.length?nr=eo.concat(nr):Ga=-1,nr.length&&Bg())}function Bg(){if(!Bo){var e=Pg(a3);Bo=!0;for(var t=nr.length;t;){for(eo=nr,nr=[];++Ga1)for(var n=1;nconsole.error("SEMVER",...t):()=>{},Fu}var Lu,Pp;function Fg(){if(Pp)return Lu;Pp=1;const e="2.0.0",t=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,r=16,o=t-6;return Lu={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Lu}var Iu={exports:{}},Bp;function u3(){return Bp||(Bp=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=Fg(),s=Rg();t=e.exports={};const a=t.re=[],i=t.safeRe=[],u=t.src=[],c=t.safeSrc=[],l=t.t={};let d=0;const p="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",o],[p,r]],g=m=>{for(const[y,v]of h)m=m.split(`${y}*`).join(`${y}{0,${v}}`).split(`${y}+`).join(`${y}{1,${v}}`);return m},f=(m,y,v)=>{const E=g(y),C=d++;s(m,C,y),l[m]=C,u[C]=y,c[C]=E,a[C]=new RegExp(y,v?"g":void 0),i[C]=new RegExp(E,v?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),f("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${u[l.NONNUMERICIDENTIFIER]}|${u[l.NUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NONNUMERICIDENTIFIER]}|${u[l.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${p}+`),f("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),f("FULL",`^${u[l.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),f("LOOSE",`^${u[l.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),f("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),f("COERCE",`${u[l.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",u[l.COERCEPLAIN]+`(?:${u[l.PRERELEASE]})?(?:${u[l.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",u[l.COERCE],!0),f("COERCERTLFULL",u[l.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Iu,Iu.exports)),Iu.exports}var Mu,$p;function l3(){if($p)return Mu;$p=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Mu=n=>n?typeof n!="object"?e:n:t,Mu}var ju,Rp;function c3(){if(Rp)return ju;Rp=1;const e=/^[0-9]+$/,t=(n,r)=>{if(typeof n=="number"&&typeof r=="number")return n===r?0:nt(r,n)},ju}var zu,Fp;function Lg(){if(Fp)return zu;Fp=1;const e=Rg(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=Fg(),{safeRe:r,t:o}=u3(),s=l3(),{compareIdentifiers:a}=c3(),i=(c,l)=>{const d=l.split(".");if(d.length>c.length)return!1;for(let p=0;pt)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",l,d),this.options=d,this.loose=!!d.loose,this.includePrerelease=!!d.includePrerelease;const p=l.trim().match(d.loose?r[o.LOOSE]:r[o.FULL]);if(!p)throw new TypeError(`Invalid Version: ${l}`);if(this.raw=l,this.major=+p[1],this.minor=+p[2],this.patch=+p[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");p[4]?this.prerelease=p[4].split(".").map(h=>{if(/^[0-9]+$/.test(h)){const g=+h;if(g>=0&&gl.major?1:this.minorl.minor?1:this.patchl.patch?1:0}comparePre(l){if(l instanceof u||(l=new u(l,this.options)),this.prerelease.length&&!l.prerelease.length)return-1;if(!this.prerelease.length&&l.prerelease.length)return 1;if(!this.prerelease.length&&!l.prerelease.length)return 0;let d=0;do{const p=this.prerelease[d],h=l.prerelease[d];if(e("prerelease compare",d,p,h),p===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(p===void 0)return-1;if(p!==h)return a(p,h)}while(++d)}compareBuild(l){l instanceof u||(l=new u(l,this.options));let d=0;do{const p=this.build[d],h=l.build[d];if(e("build compare",d,p,h),p===void 0&&h===void 0)return 0;if(h===void 0)return 1;if(p===void 0)return-1;if(p!==h)return a(p,h)}while(++d)}inc(l,d,p){if(l.startsWith("pre")){if(!d&&p===!1)throw new Error("invalid increment argument: identifier is empty");if(d){const h=`-${d}`.match(this.options.loose?r[o.PRERELEASELOOSE]:r[o.PRERELEASE]);if(!h||h[1]!==d)throw new Error(`invalid identifier: ${d}`)}}switch(l){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",d,p);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",d,p);break;case"prepatch":this.prerelease.length=0,this.inc("patch",d,p),this.inc("pre",d,p);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",d,p),this.inc("pre",d,p);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const h=Number(p)?1:0;if(this.prerelease.length===0)this.prerelease=[h];else{let g=this.prerelease.length;for(;--g>=0;)typeof this.prerelease[g]=="number"&&(this.prerelease[g]++,g=-2);if(g===-1){if(d===this.prerelease.join(".")&&p===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(h)}}if(d){let g=[d,h];if(p===!1&&(g=[d]),i(this.prerelease,d)){const f=this.prerelease[d.split(".").length];isNaN(f)&&(this.prerelease=g)}else this.prerelease=g}break}default:throw new Error(`invalid increment argument: ${l}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return zu=u,zu}var Uu,Lp;function d3(){if(Lp)return Uu;Lp=1;const e=Lg();return Uu=(t,n)=>new e(t,n).major,Uu}var p3=d3();const Ip=Pc(p3);var Vu,Mp;function h3(){if(Mp)return Vu;Mp=1;const e=Lg();return Vu=(t,n,r=!1)=>{if(t instanceof e)return t;try{return new e(t,n)}catch(o){if(!r)return null;throw o}},Vu}var Hu,jp;function f3(){if(jp)return Hu;jp=1;const e=h3();return Hu=(t,n)=>{const r=e(t,n);return r?r.version:null},Hu}var g3=f3();const m3=Pc(g3);class v3{bus;constructor(t){typeof t.getVersion!="function"||!m3(t.getVersion())?console.warn("Proxying an event bus with an unknown or invalid version"):Ip(t.getVersion())!==Ip(this.getVersion())&&console.warn("Proxying an event bus of version "+t.getVersion()+" with "+this.getVersion()),this.bus=t}getVersion(){return"3.3.3"}subscribe(t,n){this.bus.subscribe(t,n)}unsubscribe(t,n){this.bus.unsubscribe(t,n)}emit(t,...n){this.bus.emit(t,...n)}}class y3{handlers=new Map;getVersion(){return"3.3.3"}subscribe(t,n){this.handlers.set(t,(this.handlers.get(t)||[]).concat(n))}unsubscribe(t,n){this.handlers.set(t,(this.handlers.get(t)||[]).filter(r=>r!==n))}emit(t,...n){(this.handlers.get(t)||[]).forEach(r=>{try{r(n[0])}catch(o){console.error("could not invoke event listener",o)}})}}let as=null;function Bc(){return as!==null?as:typeof window>"u"?new Proxy({},{get:()=>()=>console.error("Window not available, EventBus can not be established!")}):(window.OC?._eventBus&&typeof window._nc_event_bus>"u"&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),typeof window?._nc_event_bus<"u"?as=new v3(window._nc_event_bus):as=window._nc_event_bus=new y3,as)}function $c(e,t){Bc().subscribe(e,t)}function Ig(e,t){Bc().unsubscribe(e,t)}function Sr(e,...t){Bc().emit(e,...t)}class gi{static GLOBAL_SCOPE_VOLATILE="nextcloud_vol";static GLOBAL_SCOPE_PERSISTENT="nextcloud_per";scope;wrapped;constructor(t,n,r){this.scope=`${r?gi.GLOBAL_SCOPE_PERSISTENT:gi.GLOBAL_SCOPE_VOLATILE}_${btoa(t)}_`,this.wrapped=n}scopeKey(t){return`${this.scope}${t}`}setItem(t,n){this.wrapped.setItem(this.scopeKey(t),n)}getItem(t){return this.wrapped.getItem(this.scopeKey(t))}removeItem(t){this.wrapped.removeItem(this.scopeKey(t))}clear(){Object.keys(this.wrapped).filter(t=>t.startsWith(this.scope)).map(this.wrapped.removeItem.bind(this.wrapped))}}class b3{appId;persisted=!1;clearedOnLogout=!1;constructor(t){this.appId=t}persist(t=!0){return this.persisted=t,this}clearOnLogout(t=!0){return this.clearedOnLogout=t,this}build(){return new gi(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}function Mg(e){return new b3(e)}w3();function jg(){return globalThis._nc_auth_requestToken?globalThis._nc_auth_requestToken:globalThis.document?document.head.dataset.requesttoken??null:null}function zg(e){if(!e||typeof e!="string")throw new Error("Invalid CSRF token given",{cause:{token:e}});globalThis._nc_auth_requestToken!==e&&(globalThis._nc_auth_requestToken=e,globalThis.document&&(document.head.dataset.requesttoken=e),Sr("csrf-token-update",{token:e,_internal:!0}))}async function E3(){const e=xr("/csrftoken"),t=await fetch(e);if(!t.ok)throw new Error("Could not fetch CSRF token from API",{cause:t});try{const{token:n}=await t.json();return zg(n),n}catch(n){throw new Error("Could not parse CSRF token from API response",{cause:n})}}function Ug(e){const t=async({token:n})=>{try{e(n)}catch(r){console.error("Error updating CSRF token observer",r)}};return $c("csrf-token-update",t),()=>Ig("csrf-token-update",t)}function w3(){$c("csrf-token-update",({token:e,_internal:t})=>{t||zg(e)})}Mg("public").persist().build();let wo;function zp(e,t){return e?e.getAttribute(t):null}function ru(){if(wo!==void 0)return wo;const e=document?.getElementsByTagName("head")[0];if(!e)return null;const t=zp(e,"data-user");return t===null?(wo=null,wo):(wo={uid:t,displayName:zp(e,"data-user-displayname"),isAdmin:!!window._oc_isadmin},wo)}function Up(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2?n-2:0),o=2;o1?t-1:0),r=1;r"u"?null:dt(BigInt.prototype.toString),Kp=typeof Symbol>"u"?null:dt(Symbol.prototype.toString),Xt=dt(Object.prototype.hasOwnProperty),ls=dt(Object.prototype.toString),Tt=dt(RegExp.prototype.test),fr=R3(TypeError);function dt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:Cs;if(Vp&&Vp(e,null),!$o(t))return e;let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const s=n(o);s!==o&&(k3(t)||(t[r]=s),o=s)}e[o]=!0}return e}function F3(e){for(let t=0;t/g),V3=xt(/\${[\w\W]*/g),H3=xt(/^data-[\-\w.\u00B7-\uFFFF]+$/),G3=xt(/^aria-[\-\w]+$/),Qp=xt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W3=xt(/^(?:\w+script|data):/i),q3=xt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K3=xt(/^html$/i),X3=xt(/^[a-z][.\w]*(-[.\w]+)+$/i),eh=xt(/<[/\w!]/g),th=xt(/<[/\w]/g),Z3=xt(/<\/no(script|embed|frames)/i),Y3=xt(/\/>/i),Qt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Gg=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],J3=ht($e({},Gg)),Q3=(function(){const e={};return Kr(Gg,t=>{e[t]=xt(new RegExp("])","i"))}),ht(e)})(),eE=function(){return typeof window>"u"?null:window},tE=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},nh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},gr=function(e,t,n,r){return Xt(e,t)&&$o(e[t])?$e(r.base?tn(r.base):{},e[t],r.transform):n},Zu=function(e,t,n){const r=Xt(e,t)?e[t]:void 0;return r&&typeof r=="object"?tn(r):n()};function Wg(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:eE();const t=w=>Wg(w);if(t.version="3.4.16",t.removed=[],!e||!e.document||e.document.nodeType!==Qt.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,o=r.currentScript;e.DocumentFragment;const s=e.HTMLTemplateElement,a=e.Node,i=e.Element,u=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const c=e.DOMParser,l=e.trustedTypes,d=i.prototype,p=un(d,"cloneNode"),h=un(d,"remove"),g=un(d,"removeAttributeNode"),f=un(d,"nextSibling"),m=un(d,"childNodes"),y=un(d,"parentNode"),v=un(d,"shadowRoot"),E=un(d,"attributes"),C=a&&a.prototype?un(a.prototype,"nodeType"):null,_=a&&a.prototype?un(a.prototype,"nodeName"):null,D=a&&a.prototype?un(a.prototype,"ownerDocument"):null,R=function(w){return C?C(w):w.nodeType},Z=function(w){return _?_(w):w.nodeName};if(typeof s=="function"){const w=n.createElement("template");w.content&&w.content.ownerDocument&&(n=w.content.ownerDocument)}let M,P="",oe,O=!1,S=0;const W=function(){if(S>0)throw fr('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ne=function(w){W(),S++;try{return M.createHTML(w)}finally{S--}},Q=function(w){W(),S++;try{return M.createScriptURL(w)}finally{S--}},Y=function(){return O||(oe=tE(l,o),O=!0),oe},ee=n,J=ee.implementation,te=ee.createNodeIterator,re=ee.createDocumentFragment,fe=ee.getElementsByTagName,_e=r.importNode;let we=nh();t.isSupported=typeof Vg=="function"&&typeof y=="function"&&J&&J.createHTMLDocument!==void 0;const Se=z3,Le=U3,A=V3,B=H3,F=G3,U=W3,b=q3,x=X3;let k=Qp,N=null;const I=$e({},[...Xp,...Wu,...qu,...Ku,...Zp]);let j=null;const q=$e({},[...Yp,...Xu,...Jp,...$a]);let V=Object.seal(ko(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),K=null,G=null;const ce=Object.seal(ko(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let de=!0,ge=!0,ve=!1,ke=!0,Te=!1,Ne=!0,Ge=!1,ot=!1,Lt=null,It=null,zn=!1,Un=!1,yt=!1,Mt=!1,Zo=!0,Yo=!1;const dd="user-content-";let pu=!0,hu=!1,fo={},go=null;const pd=$e({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let hd=null;const fd=$e({},["audio","video","img","source","image","track"]);let gd=null;const md=$e({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ba="http://www.w3.org/1998/Math/MathML",Ea="http://www.w3.org/2000/svg",kn="http://www.w3.org/1999/xhtml";let mo=kn,fu=!1,gu=null;const Yv=$e({},[ba,Ea,kn],Gu),vd=ht(["mi","mo","mn","ms","mtext"]);let mu=$e({},vd);const yd=ht(["annotation-xml"]);let vu=$e({},yd);const Jv=$e({},["title","style","font","a","script"]);let Jo=null;const Qv=["application/xhtml+xml","text/html"],e1="text/html";let st=null,vo=null;const t1=n.createElement("form"),bd=function(w){return w instanceof RegExp||w instanceof Function},yu=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(vo&&vo===w)return;(!w||typeof w!="object")&&(w={}),w=tn(w),Jo=Qv.indexOf(w.PARSER_MEDIA_TYPE)===-1?e1:w.PARSER_MEDIA_TYPE,st=Jo==="application/xhtml+xml"?Gu:Cs,N=gr(w,"ALLOWED_TAGS",I,{transform:st}),j=gr(w,"ALLOWED_ATTR",q,{transform:st}),gu=gr(w,"ALLOWED_NAMESPACES",Yv,{transform:Gu}),gd=gr(w,"ADD_URI_SAFE_ATTR",md,{transform:st,base:md}),hd=gr(w,"ADD_DATA_URI_TAGS",fd,{transform:st,base:fd}),go=gr(w,"FORBID_CONTENTS",pd,{transform:st}),K=gr(w,"FORBID_TAGS",tn({}),{transform:st}),G=gr(w,"FORBID_ATTR",tn({}),{transform:st}),fo=Xt(w,"USE_PROFILES")?w.USE_PROFILES&&typeof w.USE_PROFILES=="object"?tn(w.USE_PROFILES):w.USE_PROFILES:!1,de=w.ALLOW_ARIA_ATTR!==!1,ge=w.ALLOW_DATA_ATTR!==!1,ve=w.ALLOW_UNKNOWN_PROTOCOLS||!1,ke=w.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Te=w.SAFE_FOR_TEMPLATES||!1,Ne=w.SAFE_FOR_XML!==!1,Ge=w.WHOLE_DOCUMENT||!1,Un=w.RETURN_DOM||!1,yt=w.RETURN_DOM_FRAGMENT||!1,Mt=w.RETURN_TRUSTED_TYPE||!1,zn=w.FORCE_BODY||!1,Zo=w.SANITIZE_DOM!==!1,Yo=w.SANITIZE_NAMED_PROPS||!1,pu=w.KEEP_CONTENT!==!1,hu=w.IN_PLACE||!1,k=I3(w.ALLOWED_URI_REGEXP)?w.ALLOWED_URI_REGEXP:Qp,mo=typeof w.NAMESPACE=="string"?w.NAMESPACE:kn,mu=Zu(w,"MATHML_TEXT_INTEGRATION_POINTS",()=>$e({},vd)),vu=Zu(w,"HTML_INTEGRATION_POINTS",()=>$e({},yd));const L=Zu(w,"CUSTOM_ELEMENT_HANDLING",()=>ko(null));if(V=ko(null),Xt(L,"tagNameCheck")&&bd(L.tagNameCheck)&&(V.tagNameCheck=L.tagNameCheck),Xt(L,"attributeNameCheck")&&bd(L.attributeNameCheck)&&(V.attributeNameCheck=L.attributeNameCheck),Xt(L,"allowCustomizedBuiltInElements")&&typeof L.allowCustomizedBuiltInElements=="boolean"&&(V.allowCustomizedBuiltInElements=L.allowCustomizedBuiltInElements),xt(V),Te&&(ge=!1),yt&&(Un=!0),fo&&(N=$e({},Zp),j=ko(null),fo.html===!0&&($e(N,Xp),$e(j,Yp)),fo.svg===!0&&($e(N,Wu),$e(j,Xu),$e(j,$a)),fo.svgFilters===!0&&($e(N,qu),$e(j,Xu),$e(j,$a)),fo.mathMl===!0&&($e(N,Ku),$e(j,Jp),$e(j,$a))),ce.tagCheck=null,ce.attributeCheck=null,Xt(w,"ADD_TAGS")&&(typeof w.ADD_TAGS=="function"?ce.tagCheck=w.ADD_TAGS:$o(w.ADD_TAGS)&&(N===I&&(N=tn(N)),$e(N,w.ADD_TAGS,st))),Xt(w,"ADD_ATTR")&&(typeof w.ADD_ATTR=="function"?ce.attributeCheck=w.ADD_ATTR:$o(w.ADD_ATTR)&&(j===q&&(j=tn(j)),$e(j,w.ADD_ATTR,st))),Xt(w,"ADD_FORBID_CONTENTS")&&$o(w.ADD_FORBID_CONTENTS)&&(go===pd&&(go=tn(go)),$e(go,w.ADD_FORBID_CONTENTS,st)),pu&&(N["#text"]=!0),Ge&&$e(N,["html","head","body"]),N.table&&($e(N,["tbody"]),delete K.tbody),w.TRUSTED_TYPES_POLICY){if(typeof w.TRUSTED_TYPES_POLICY.createHTML!="function")throw fr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof w.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw fr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const H=M;M=w.TRUSTED_TYPES_POLICY;try{P=ne("")}catch(ae){throw M=H,ae}}else w.TRUSTED_TYPES_POLICY===null?(M=void 0,P=""):(M===void 0&&(M=Y()),M&&typeof P=="string"&&(P=ne("")));ht&&ht(w),vo=w},Ed=$e({},[...Wu,...qu,...M3]),wd=$e({},[...Ku,...j3]),n1=function(w,L,H){return L.namespaceURI===kn?w==="svg":L.namespaceURI===ba?w==="svg"&&(H==="annotation-xml"||mu[H]):!!Ed[w]},r1=function(w,L,H){return L.namespaceURI===kn?w==="math":L.namespaceURI===Ea?w==="math"&&vu[H]:!!wd[w]},o1=function(w,L,H){return L.namespaceURI===Ea&&!vu[H]||L.namespaceURI===ba&&!mu[H]?!1:!wd[w]&&(Jv[w]||!Ed[w])},s1=function(w){let L=y(w);(!L||!L.tagName)&&(L={namespaceURI:mo,tagName:"template"});const H=Cs(w.tagName),ae=Cs(L.tagName);return gu[w.namespaceURI]?w.namespaceURI===Ea?n1(H,L,ae):w.namespaceURI===ba?r1(H,L,ae):w.namespaceURI===kn?o1(H,L,ae):!!(Jo==="application/xhtml+xml"&&gu[w.namespaceURI]):!1},Ir=function(w){is(t.removed,{element:w});try{y(w).removeChild(w)}catch{if(h(w),!y(w))throw fr("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Cd=function(w,L,H){try{g(w,L)}catch{try{w.removeAttribute(H)}catch{}}},wa=function(w){Ca(w);const L=m(w);if(L){const ae=[];Kr(L,Ee=>{is(ae,Ee)}),Kr(ae,Ee=>{try{h(Ee)}catch{}})}const H=E(w);if(H)for(let ae=H.length-1;ae>=0;--ae){const Ee=H[ae],Oe=Ee&&Ee.name;typeof Oe=="string"&&Cd(w,Ee,Oe)}},Mr=function(w,L,H){if(!H)try{H=L.getAttributeNode(w)}catch{H=null}is(t.removed,{attribute:H||null,from:L});try{H?g(L,H):L.removeAttribute(w)}catch{try{L.removeAttribute(w)}catch{}}if(w==="is")if(Un||yt)try{Ir(L)}catch{}else try{L.setAttribute(w,"")}catch{}},a1=function(w){const L=E(w);if(L)for(let H=L.length-1;H>=0;--H){const ae=L[H],Ee=ae&&ae.name;typeof Ee!="string"||j[st(Ee)]||Cd(w,ae,Ee)}},Ca=function(w){const L=[w];for(;L.length>0;){const H=L.pop();R(H)===Qt.element&&a1(H);const ae=m(H);if(ae)for(let Ee=ae.length-1;Ee>=0;--Ee)L.push(ae[Ee])}},xd=function(w,L){return Ne?w==="patchsrc"?!0:w==="for"&&L!=="label"&&L!=="output":!1},i1=function(w){if(!Ne)return;const L=[w];for(;L.length>0;){const H=L.pop(),ae=R(H);if(ae===Qt.processingInstruction||ae===Qt.comment&&Tt(th,H.data)){try{h(H)}catch{}continue}if(ae===Qt.element){const Oe=H,De=st(Z(H));try{Oe.hasAttribute&&Oe.hasAttribute("patchsrc")&&Oe.removeAttribute("patchsrc"),Oe.hasAttribute&&Oe.hasAttribute("for")&&xd("for",De)&&Oe.removeAttribute("for")}catch{}}const Ee=m(H);if(Ee)for(let Oe=Ee.length-1;Oe>=0;--Oe)L.push(Ee[Oe])}},Ad=function(w){let L=null,H=null;if(zn)w=""+w;else{const Oe=Gp(w,/^[\r\n\t ]+/);H=Oe&&Oe[0]}Jo==="application/xhtml+xml"&&mo===kn&&(w=''+w+"");const ae=M?ne(w):w;if(mo===kn)try{L=new c().parseFromString(ae,Jo)}catch{}if(!L||!L.documentElement){L=J.createDocument(mo,"template",null);try{L.documentElement.innerHTML=fu?P:ae}catch{}}const Ee=L.body||L.documentElement;return w&&H&&Ee.insertBefore(n.createTextNode(H),Ee.childNodes[0]||null),mo===kn?fe.call(L,Ge?"html":"body")[0]:Ge?L.documentElement:Ee},_d=function(w){const L=D?D(w):w.ownerDocument;return te.call(L||w,w,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},xa=function(w){return w=us(w,Se," "),w=us(w,Le," "),w=us(w,A," "),w},bu=function(w){var L;w.normalize();const H=D?D(w):w.ownerDocument,ae=te.call(H||w,w,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let Ee=ae.nextNode();for(;Ee;)Ee.data=xa(Ee.data),Ee=ae.nextNode();const Oe=(L=w.querySelectorAll)===null||L===void 0?void 0:L.call(w,"template");Oe&&Kr(Oe,De=>{yo(De.content)&&bu(De.content)})},Aa=function(w){const L=_?_(w):null;return typeof L!="string"||st(L)!=="form"?!1:typeof w.nodeName!="string"||typeof w.textContent!="string"||typeof w.removeChild!="function"||w.attributes!==E(w)||typeof w.removeAttribute!="function"||typeof w.removeAttributeNode!="function"||typeof w.getAttributeNode!="function"||typeof w.setAttribute!="function"||typeof w.namespaceURI!="string"||typeof w.insertBefore!="function"||typeof w.hasChildNodes!="function"||w.nodeType!==C(w)||w.childNodes!==m(w)},yo=function(w){if(!C||typeof w!="object"||w===null)return!1;try{return C(w)===Qt.documentFragment}catch{return!1}},Qo=function(w){if(!C||typeof w!="object"||w===null)return!1;try{return typeof C(w)=="number"}catch{return!1}};function Tn(w,L,H){w.length!==0&&Kr(w,ae=>{ae.call(t,L,H,vo)})}const u1=function(w,L){return!!(Ne&&w.hasChildNodes()&&!Qo(w.firstElementChild)&&Tt(eh,w.textContent)&&Tt(eh,w.innerHTML)||Ne&&w.namespaceURI===kn&&J3[L]&&(Qo(w.firstElementChild)||typeof w.textContent=="string"&&Tt(Q3[L],w.textContent))||w.nodeType===Qt.processingInstruction||Ne&&w.nodeType===Qt.comment&&Tt(th,w.data))},_a=function(w,L){if(w instanceof RegExp)return Tt(w,L);if(w instanceof Function){for(var H=arguments.length,ae=new Array(H>2?H-2:0),Ee=2;Ee=0;--De){const bt=w===H?p(Ee[De],!0):Ee[De];ae.insertBefore(bt,f(w))}}}return Ir(w),!0},Sd=function(w,L,H,ae){return w.length===0?L:L===H||L===ae?tn(L):L},bo=function(w,L){return w===L||y(w)!==null?!1:(hu&&Ca(w),!0)},kd=function(w,L){if(Tn(we.beforeSanitizeElements,w,null),bo(w,L))return!0;if(Aa(w))return Ir(w),!0;const H=st(Z(w));if(N=Sd(we.uponSanitizeElement,N,I,Lt),Tn(we.uponSanitizeElement,w,{tagName:H,allowedTags:N}),bo(w,L))return!0;if(u1(w,H))return Ir(w),!0;if(K[H]||!(ce.tagCheck instanceof Function&&ce.tagCheck(H))&&!N[H]){const ae=l1(w,H,L);return ae===!1&&(Tn(we.afterSanitizeElements,w,null),bo(w,L))?!0:ae}if(R(w)===Qt.element&&!s1(w)||(H==="noscript"||H==="noembed"||H==="noframes")&&Tt(Z3,w.innerHTML))return Ir(w),!0;if(Te&&w.nodeType===Qt.text){const ae=xa(w.textContent);w.textContent!==ae&&(is(t.removed,{element:w.cloneNode()}),w.textContent=ae)}return Tn(we.afterSanitizeElements,w,null),bo(w,L)},Td=function(w,L,H){if(G[L]||xd(L,w)||Zo&&(L==="id"||L==="name")&&(H in n||H in t1))return!1;const ae=j[L]||ce.attributeCheck instanceof Function&&ce.attributeCheck(L,w);return ge&&Tt(B,L)||de&&Tt(F,L)?!0:ae?gd[L]||Tt(k,us(H,b,""))||(L==="src"||L==="xlink:href"||L==="href")&&w!=="script"&&Wp(H,"data:")===0&&hd[w]||ve&&!Tt(U,us(H,b,""))?!0:!H:Od(w)&&_a(V.tagNameCheck,w)&&_a(V.attributeNameCheck,L,w)||L==="is"&&V.allowCustomizedBuiltInElements&&_a(V.tagNameCheck,H)},c1=$e({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Od=function(w){return!c1[Cs(w)]&&Tt(x,w)},d1=function(w,L,H,ae){if(M&&typeof l=="object"&&typeof l.getAttributeType=="function"&&!H)switch(l.getAttributeType(w,L)){case"TrustedHTML":return ne(ae);case"TrustedScriptURL":return Q(ae)}return ae},p1=function(w,L,H,ae){try{return H?w.setAttributeNS(H,L,ae):w.setAttribute(L,ae),Aa(w)?(Ir(w),!1):!0}catch{return Mr(L,w),!1}},Dd=function(w,L){if(Tn(we.beforeSanitizeAttributes,w,null),bo(w,L))return;const H=w.attributes;if(!H||Aa(w))return;j=Sd(we.uponSanitizeAttribute,j,q,It);const ae={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0};let Ee=H.length;const Oe=st(w.nodeName);for(;Ee--;){const De=H[Ee],bt=De.name,Vn=De.namespaceURI,yn=De.value,Et=st(bt),wu=yn;let jt=bt==="value"?wu:P3(wu),Nd=!1;if(ae.attrName=Et,ae.attrValue=jt,ae.keepAttr=!0,ae.forceKeepAttr=void 0,Tn(we.uponSanitizeAttribute,w,ae),jt=ae.attrValue,Yo&&(Et==="id"||Et==="name")&&Wp(jt,dd)!==0&&(Mr(bt,w,De),jt=dd+jt,Nd=!0),Ne&&Tt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,jt)){Mr(bt,w,De);continue}if(Et==="attributename"&&Gp(jt,"href")){Mr(bt,w,De);continue}if(!ae.forceKeepAttr){if(!ae.keepAttr){Mr(bt,w,De);continue}if(!ke&&Tt(Y3,jt)){Mr(bt,w,De);continue}if(Te&&(jt=xa(jt)),!Td(Oe,Et,jt)){Mr(bt,w,De);continue}jt=d1(Oe,Et,Vn,jt),jt!==wu&&p1(w,bt,Vn,jt)&&Nd&&Hp(t.removed)}}Tn(we.afterSanitizeAttributes,w,null),bo(w,L)},Sa=function(w){let L=null;const H=_d(w);for(Tn(we.beforeSanitizeShadowDOM,w,null);L=H.nextNode();)if(Tn(we.uponSanitizeShadowNode,L,null),kd(L,w),Dd(L,w),yo(L.content)&&Sa(L.content),R(L)===Qt.element){const ae=v(L);yo(ae)&&(Eu(ae),Sa(ae))}Tn(we.afterSanitizeShadowDOM,w,null)},Eu=function(w){const L=[{node:w,shadow:null}];for(;L.length>0;){const H=L.pop();if(H.shadow){Sa(H.shadow);continue}const ae=H.node,Ee=R(ae)===Qt.element,Oe=m(ae);if(Oe)for(let De=Oe.length-1;De>=0;--De)L.push({node:Oe[De],shadow:null});if(Ee){const De=_?_(ae):null;if(typeof De=="string"&&st(De)==="template"){const bt=ae.content;yo(bt)&&L.push({node:bt,shadow:null})}}if(Ee){const De=v(ae);yo(De)&&L.push({node:null,shadow:De},{node:De,shadow:null})}}};return t.sanitize=function(w){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},H=null,ae=null,Ee=null,Oe=null;if(fu=!w,fu&&(w=""),typeof w!="string"&&!Qo(w)&&(w=L3(w),typeof w!="string"))throw fr("dirty is not a string, aborting");if(!t.isSupported)return w;ot?(N=Lt,j=It):yu(L),(we.uponSanitizeElement.length>0||we.uponSanitizeAttribute.length>0)&&(N=tn(N)),we.uponSanitizeAttribute.length>0&&(j=tn(j)),t.removed=[];const De=hu&&typeof w!="string"&&Qo(w);if(De){i1(w);const yn=Z(w);if(typeof yn=="string"){const Et=st(yn);if(!N[Et]||K[Et])throw wa(w),fr("root node is forbidden and cannot be sanitized in-place")}if(Aa(w))throw wa(w),fr("root node is clobbered and cannot be sanitized in-place");try{Eu(w)}catch(Et){throw wa(w),Et}}else if(Qo(w))H=Ad(""),ae=H.ownerDocument.importNode(w,!0),ae.nodeType===Qt.element&&ae.nodeName==="BODY"||ae.nodeName==="HTML"?H=ae:H.appendChild(ae),Eu(H);else{if(!Un&&!Te&&!Ge&&w.indexOf("<")===-1)return M&&Mt?ne(w):w;if(H=Ad(w),!H)return Un?null:Mt?P:""}H&&zn&&Ir(H.firstChild);const bt=De?w:H;try{const yn=_d(bt);for(;Ee=yn.nextNode();)kd(Ee,bt),Dd(Ee,bt),yo(Ee.content)&&Sa(Ee.content)}catch(yn){throw De&&(wa(w),Kr(t.removed,Et=>{Et.element&&Ca(Et.element)})),yn}if(De){let yn=!1;if(Kr(t.removed,Et=>{Et.element&&(Et.element===w&&(yn=!0),Ca(Et.element))}),yn)throw fr("a node selected for removal could not be safely returned; refusing to sanitize in place");return Te&&bu(w),w}if(Un){if(Te&&bu(H),yt)for(Oe=re.call(H.ownerDocument);H.firstChild;)Oe.appendChild(H.firstChild);else Oe=H;return(j.shadowroot||j.shadowrootmode)&&(Oe=_e.call(r,Oe,!0)),Oe}let Vn=Ge?H.outerHTML:H.innerHTML;return Ge&&N["!doctype"]&&H.ownerDocument&&H.ownerDocument.doctype&&H.ownerDocument.doctype.name&&Tt(K3,H.ownerDocument.doctype.name)&&(Vn=" +`+Vn),Te&&(Vn=xa(Vn)),M&&Mt?ne(Vn):Vn},t.setConfig=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};yu(w),ot=!0,Lt=N,It=j},t.clearConfig=function(){vo=null,ot=!1,Lt=null,It=null,M=oe,P=""},t.isValidAttribute=function(w,L,H){vo||yu({});const ae=st(w),Ee=st(L);return Td(ae,Ee,H)},t.addHook=function(w,L){typeof L=="function"&&Xt(we,w)&&is(we[w],L)},t.removeHook=function(w,L){if(Xt(we,w)){if(L!==void 0){const H=D3(we[w],L);return H===-1?void 0:N3(we[w],H,1)[0]}return Hp(we[w])}},t.removeHooks=function(w){Xt(we,w)&&(we[w]=[])},t.removeAllHooks=function(){we=nh()},t}var qg=Wg(),Yu,rh;function nE(){if(rh)return Yu;rh=1;var e=/["'&<>]/;Yu=t;function t(n){var r=""+n,o=e.exec(r);if(!o)return r;var s,a="",i=0,u=0;for(i=o.index;it)}}globalThis._oc_l10n_registry_translations??={},globalThis._oc_l10n_registry_plural_functions??={};function Ue(e,t,n,r,o){const s=typeof n=="object"?n:void 0,a=typeof r=="number"?r:typeof n=="number"?n:void 0,i={escape:!0,sanitize:!0,...typeof o=="object"?o:typeof r=="object"?r:{}},u=g=>g,c=(i.sanitize?qg.sanitize:u)||u,l=i.escape?oh:u,d=g=>typeof g=="string"||typeof g=="number",p=(g,f,m)=>g.replace(/%n/g,""+m).replace(/{([^{}]*)}/g,(y,v)=>{if(f===void 0||!(v in f))return l(y);const E=f[v];return d(E)?l(`${E}`):typeof E=="object"&&d(E.value)?(E.escape!==!1?oh:u)(`${E.value}`):l(y)});let h=(o?.bundle??Kg(e)).translations[t]||t;return h=Array.isArray(h)?h[0]:h,c(typeof s=="object"||a!==void 0?p(h,s,a):h)}function aE(e,t,n,r,o,s){const a="_"+t+"_::_"+n+"_",i=s?.bundle??Kg(e),u=i.translations[a];if(typeof u<"u"){const c=u;if(Array.isArray(c)){const l=i.pluralFunction(r);return Ue(e,c[l],o,r,s)}}return r===1?Ue(e,t,o,r,s):Ue(e,n,o,r,s)}function iE(e,t=kr()){switch(t==="pt-BR"&&(t="xbr"),t.length>3&&(t=t.substring(0,t.lastIndexOf("-"))),t){case"az":case"bo":case"dz":case"id":case"ja":case"jv":case"ka":case"km":case"kn":case"ko":case"ms":case"th":case"tr":case"vi":case"zh":return 0;case"af":case"bn":case"bg":case"ca":case"da":case"de":case"el":case"en":case"eo":case"es":case"et":case"eu":case"fa":case"fi":case"fo":case"fur":case"fy":case"gl":case"gu":case"ha":case"he":case"hu":case"is":case"it":case"ku":case"lb":case"ml":case"mn":case"mr":case"nah":case"nb":case"ne":case"nl":case"nn":case"no":case"oc":case"om":case"or":case"pa":case"pap":case"ps":case"pt":case"so":case"sq":case"sv":case"sw":case"ta":case"te":case"tk":case"ur":case"zu":return e===1?0:1;case"am":case"bh":case"fil":case"fr":case"gun":case"hi":case"hy":case"ln":case"mg":case"nso":case"xbr":case"ti":case"wa":return e===0||e===1?0:1;case"be":case"bs":case"hr":case"ru":case"sh":case"sr":case"uk":return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2;case"cs":case"sk":return e===1?0:e>=2&&e<=4?1:2;case"ga":return e===1?0:e===2?1:2;case"lt":return e%10===1&&e%100!==11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2;case"sl":return e%100===1?0:e%100===2?1:e%100===3||e%100===4?2:3;case"mk":return e%10===1?0:1;case"mt":return e===1?0:e===0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3;case"lv":return e===0?0:e%10===1&&e%100!==11?1:2;case"pl":return e===1?0:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?1:2;case"cy":return e===1?0:e===2?1:e===8||e===11?2:3;case"ro":return e===1?0:e===0||e%100>0&&e%100<20?1:2;case"ar":return e===0?0:e===1?1:e===2?2:e%100>=3&&e%100<=10?3:e%100>=11&&e%100<=99?4:5;default:return 0}}function uE(e=Date.now(),t={}){const n={ignoreSeconds:!1,language:kr(),relativeTime:"long",...t},r=new Date(e),o=new Intl.RelativeTimeFormat([n.language,kr()],{numeric:"auto",style:n.relativeTime}),s=(r.getTime()-Date.now())/1e3;if(Math.abs(s)<59.5)return n.ignoreSeconds||o.format(Math.round(s),"second");const a=s/60;if(Math.abs(a)<=59)return o.format(Math.round(a),"minute");const i=a/60;if(Math.abs(i)<23.5)return o.format(Math.round(i),"hour");const u=i/24;if(Math.abs(u)<6.5)return o.format(Math.round(u),"day");if(Math.abs(u)<27.5){const d=u/7;return o.format(Math.round(d),"week")}const c=u/30,l=Math.abs(c)<11?{month:n.relativeTime,day:"numeric"}:{year:n.relativeTime==="narrow"?"2-digit":"numeric",month:n.relativeTime};return new Intl.DateTimeFormat([n.language,kr()],l).format(r)}function Go(e,t,n){const r=`#initial-state-${e}-${t}`;if(window._nc_initial_state?.has(r))return window._nc_initial_state.get(r);window._nc_initial_state||(window._nc_initial_state=new Map);const o=document.querySelector(r);if(o===null){if(n!==void 0)return n;throw new Error(`Could not find initial state ${t} of ${e}`)}try{const s=JSON.parse(atob(o.value));return window._nc_initial_state.set(r,s),s}catch(s){if(console.error("[@nextcloud/initial-state] Could not parse initial state",{key:t,app:e,error:s}),n!==void 0)return n;throw new Error(`Could not parse initial state ${t} of ${e}`,{cause:s})}}function lE(){try{return Go("core","capabilities")}catch{return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}function Ys(e,t){return Q0()?(N1(e,t),!0):!1}const Gl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const cE=e=>e!=null,dE=Object.prototype.toString,pE=e=>dE.call(e)==="[object Object]",hE=()=>{};function Ps(e){return Array.isArray(e)?e:[e]}function fE(e){return jn()}function gE(e,t=!0,n){fE()?Sn(e,n):t?e():xn(e)}function mE(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n;let s=null;const a=ir(!1);function i(){s&&(clearInterval(s),s=null)}function u(){a.value=!1,i()}function c(){const l=Bt(t);l<=0||(a.value=!0,o&&e(),i(),a.value&&(s=setInterval(e,l)))}return r&&Gl&&c(),(lt(t)||typeof t=="function")&&Ys(et(t,()=>{a.value&&Gl&&c()})),Ys(u),{isActive:Z1(a),pause:u,resume:c}}function vE(e,t,n){return et(e,t,{...n,immediate:!0})}const Lr=Gl?window:void 0;function Fn(e){var t;const n=Bt(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Tr(...e){const t=(r,o,s,a)=>(r.addEventListener(o,s,a),()=>r.removeEventListener(o,s,a)),n=se(()=>{const r=Ps(Bt(e[0])).filter(o=>o!=null);return r.every(o=>typeof o!="string")?r:void 0});return vE(()=>{var r,o;return[(r=(o=n.value)===null||o===void 0?void 0:o.map(s=>Fn(s)))!==null&&r!==void 0?r:[Lr].filter(s=>s!=null),Ps(Bt(n.value?e[1]:e[0])),Ps(z(n.value?e[2]:e[1])),Bt(n.value?e[3]:e[2])]},([r,o,s,a],i,u)=>{if(!r?.length||!o?.length||!s?.length)return;const c=pE(a)?{...a}:a,l=r.flatMap(d=>o.flatMap(p=>s.map(h=>t(d,p,h,c))));u(()=>{l.forEach(d=>d())})},{flush:"post"})}function yE(){const e=ir(!1),t=jn();return t&&Sn(()=>{e.value=!0},t),e}function Xg(e){const t=yE();return se(()=>(t.value,!!e()))}function bE(e,t,n={}){const{window:r=Lr,...o}=n;let s;const a=Xg(()=>r&&"MutationObserver"in r),i=()=>{s&&(s.disconnect(),s=void 0)},u=et(se(()=>{const d=Ps(Bt(e)).map(Fn).filter(cE);return new Set(d)}),d=>{i(),a.value&&d.size&&(s=new MutationObserver(t),d.forEach(p=>s.observe(p,o)))},{immediate:!0,flush:"post"}),c=()=>s?.takeRecords(),l=()=>{u(),i()};return Ys(l),{isSupported:a,stop:l,takeRecords:c}}function EE(e,t,n={}){const{window:r=Lr,document:o=r?.document,flush:s="sync"}=n;if(!r||!o)return hE;let a;const i=l=>{a?.(),a=l},u=Ki(()=>{const l=Fn(e);if(l){const{stop:d}=bE(o,p=>{p.map(h=>[...h.removedNodes]).flat().some(h=>h===l||h.contains(l))&&t(p)},{window:r,childList:!0,subtree:!0});i(d)}},{flush:s}),c=()=>{u(),i()};return Ys(c),c}function wE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function sh(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=Lr,eventName:s="keydown",passive:a=!1,dedupe:i=!1}=r,u=wE(t);return Tr(o,s,c=>{c.repeat&&Bt(i)||u(c)&&n(c)},a)}function CE(e={}){var t;const{window:n=Lr,deep:r=!0,triggerOnRemoval:o=!1}=e,s=(t=e.document)!==null&&t!==void 0?t:n?.document,a=()=>{let c=s?.activeElement;if(r)for(var l;c?.shadowRoot;)c=c==null||(l=c.shadowRoot)===null||l===void 0?void 0:l.activeElement;return c},i=ir(),u=()=>{i.value=a()};if(n){const c={capture:!0,passive:!0};Tr(n,"blur",l=>{l.relatedTarget===null&&u()},c),Tr(n,"focus",u,c)}return o&&EE(i,u,{document:s}),u(),i}function xE(e,t,n={}){const{window:r=Lr,...o}=n;let s;const a=Xg(()=>r&&"ResizeObserver"in r),i=()=>{s&&(s.disconnect(),s=void 0)},u=et(se(()=>{const l=Bt(e);return Array.isArray(l)?l.map(d=>Fn(d)):[Fn(l)]}),l=>{if(i(),a.value&&r){s=new ResizeObserver(t);for(const d of l)d&&s.observe(d,o)}},{immediate:!0,flush:"post"}),c=()=>{i(),u()};return Ys(c),{isSupported:a,stop:c}}function AE(e,t={width:0,height:0},n={}){const{window:r=Lr,box:o="content-box"}=n,s=se(()=>{var d;return(d=Fn(e))===null||d===void 0||(d=d.namespaceURI)===null||d===void 0?void 0:d.includes("svg")}),a=ir(t.width),i=ir(t.height),{stop:u}=xE(e,([d])=>{const p=o==="border-box"?d.borderBoxSize:o==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(r&&s.value){const h=Fn(e);if(h){const g=h.getBoundingClientRect();a.value=g.width,i.value=g.height}}else if(p){const h=Ps(p);a.value=h.reduce((g,{inlineSize:f})=>g+f,0),i.value=h.reduce((g,{blockSize:f})=>g+f,0)}else a.value=d.contentRect.width,i.value=d.contentRect.height},n);gE(()=>{const d=Fn(e);d&&(a.value="offsetWidth"in d?d.offsetWidth:t.width,i.value="offsetHeight"in d?d.offsetHeight:t.height)});const c=et(()=>Fn(e),d=>{a.value=d?t.width:0,i.value=d?t.height:0});function l(){u(),c()}return{width:a,height:i,stop:l}}const _E="focusin",SE="focusout",kE=":focus-within";function TE(e,t={}){const{window:n=Lr}=t,r=se(()=>Fn(e)),o=ir(!1),s=se(()=>o.value);if(!n||!CE(t).value)return{focused:s};const a={passive:!0};return Tr(r,_E,()=>o.value=!0,a),Tr(r,SE,()=>{var i,u,c;return o.value=(i=(u=r.value)===null||u===void 0||(c=u.matches)===null||c===void 0?void 0:c.call(u,kE))!==null&&i!==void 0?i:!1},a),{focused:s}}function Zg(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:o,onSwipeStart:s,passive:a=!0}=t,i=Io({x:0,y:0}),u=Io({x:0,y:0}),c=se(()=>i.x-u.x),l=se(()=>i.y-u.y),{max:d,abs:p}=Math,h=se(()=>d(p(c.value),p(l.value))>=n),g=ir(!1),f=se(()=>h.value?p(c.value)>p(l.value)?c.value>0?"left":"right":l.value>0?"up":"down":"none"),m=D=>[D.touches[0].clientX,D.touches[0].clientY],y=(D,R)=>{i.x=D,i.y=R},v=(D,R)=>{u.x=D,u.y=R},E={passive:a,capture:!a},C=D=>{g.value&&o?.(D,f.value),g.value=!1},_=[Tr(e,"touchstart",D=>{if(D.touches.length!==1)return;const[R,Z]=m(D);y(R,Z),v(R,Z),s?.(D)},E),Tr(e,"touchmove",D=>{if(D.touches.length!==1)return;const[R,Z]=m(D);v(R,Z),E.capture&&!E.passive&&Math.abs(c.value)>Math.abs(l.value)&&D.preventDefault(),!g.value&&h.value&&(g.value=!0),g.value&&r?.(D)},E),Tr(e,["touchend","touchcancel"],C,E)];return{isSwiping:g,direction:f,coordsStart:i,coordsEnd:u,lengthX:c,lengthY:l,stop:()=>_.forEach(D=>D())}}const OE={__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:t}){const n=t,r=e,o=Qi(),s=Ae([]),a=se(()=>s.value.reduce((A,B)=>(A[~~B.id]=B)&&A,{})),i=se(()=>s.value.length),u=Ae(null),c=Ae(!1),l=Ae({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),d=Ae({splitter:null,timeoutId:null}),p=se(()=>({[`splitpanes splitpanes--${r.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":l.value.dragging})),h=()=>{document.addEventListener("mousemove",m,{passive:!1}),document.addEventListener("mouseup",y),"ontouchstart"in window&&(document.addEventListener("touchmove",m,{passive:!1}),document.addEventListener("touchend",y))},g=()=>{document.removeEventListener("mousemove",m,{passive:!1}),document.removeEventListener("mouseup",y),"ontouchstart"in window&&(document.removeEventListener("touchmove",m,{passive:!1}),document.removeEventListener("touchend",y))},f=(A,B)=>{const F=A.target.closest(".splitpanes__splitter");if(F){const{left:U,top:b}=F.getBoundingClientRect(),{clientX:x,clientY:k}="ontouchstart"in window&&A.touches?A.touches[0]:A;l.value.cursorOffset=r.horizontal?k-b:x-U}h(),l.value.mouseDown=!0,l.value.activeSplitter=B},m=A=>{l.value.mouseDown&&(A.preventDefault(),l.value.dragging=!0,requestAnimationFrame(()=>{R(_(A)),Se("resize",{event:A},!0)}))},y=A=>{l.value.dragging&&(window.getSelection().removeAllRanges(),Se("resized",{event:A},!0)),l.value.mouseDown=!1,l.value.activeSplitter=null,setTimeout(()=>{l.value.dragging=!1,g()},100)},v=(A,B)=>{"ontouchstart"in window&&(A.preventDefault(),d.value.splitter===B?(clearTimeout(d.value.timeoutId),d.value.timeoutId=null,E(A,B),d.value.splitter=null):(d.value.splitter=B,d.value.timeoutId=setTimeout(()=>d.value.splitter=null,500))),l.value.dragging||Se("splitter-click",{event:A,index:B},!0)},E=(A,B)=>{if(Se("splitter-dblclick",{event:A,index:B},!0),r.maximizePanes){let F=0;s.value=s.value.map((U,b)=>(U.size=b===B?U.max:U.min,b!==B&&(F+=U.min),U)),s.value[B].size-=F,Se("pane-maximize",{event:A,index:B,pane:s.value[B]}),Se("resized",{event:A,index:B},!0)}},C=(A,B)=>{Se("pane-click",{event:A,index:a.value[B].index,pane:a.value[B]})},_=A=>{const B=u.value.getBoundingClientRect(),{clientX:F,clientY:U}="ontouchstart"in window&&A.touches?A.touches[0]:A;return{x:F-(r.horizontal?0:l.value.cursorOffset)-B.left,y:U-(r.horizontal?l.value.cursorOffset:0)-B.top}},D=A=>{A=A[r.horizontal?"y":"x"];const B=u.value[r.horizontal?"clientHeight":"clientWidth"];return r.rtl&&!r.horizontal&&(A=B-A),A*100/B},R=A=>{const B=l.value.activeSplitter;let F={prevPanesSize:M(B),nextPanesSize:P(B),prevReachedMinPanes:0,nextReachedMinPanes:0};const U=0+(r.pushOtherPanes?0:F.prevPanesSize),b=100-(r.pushOtherPanes?0:F.nextPanesSize),x=Math.max(Math.min(D(A),b),U);let k=[B,B+1],N=s.value[k[0]]||null,I=s.value[k[1]]||null;const j=N.max<100&&x>=N.max+F.prevPanesSize,q=I.max<100&&x<=100-(I.max+P(B+1));if(j||q){j?(N.size=N.max,I.size=Math.max(100-N.max-F.prevPanesSize-F.nextPanesSize,0)):(N.size=Math.max(100-I.max-F.prevPanesSize-P(B+1),0),I.size=I.max);return}if(r.pushOtherPanes){const V=Z(F,x);if(!V)return;({sums:F,panesToResize:k}=V),N=s.value[k[0]]||null,I=s.value[k[1]]||null}N!==null&&(N.size=Math.min(Math.max(x-F.prevPanesSize-F.prevReachedMinPanes,N.min),N.max)),I!==null&&(I.size=Math.min(Math.max(100-x-F.nextPanesSize-F.nextReachedMinPanes,I.min),I.max))},Z=(A,B)=>{const F=l.value.activeSplitter,U=[F,F+1];return B{x>U[0]&&x<=F&&(b.size=b.min,A.prevReachedMinPanes+=b.min)}),A.prevPanesSize=M(U[0]),U[0]===void 0)?(A.prevReachedMinPanes=0,s.value[0].size=s.value[0].min,s.value.forEach((b,x)=>{x>0&&x<=F&&(b.size=b.min,A.prevReachedMinPanes+=b.min)}),s.value[U[1]].size=100-A.prevReachedMinPanes-s.value[0].min-A.prevPanesSize-A.nextPanesSize,null):B>100-A.nextPanesSize-s.value[U[1]].min&&(U[1]=O(F).index,A.nextReachedMinPanes=0,U[1]>F+1&&s.value.forEach((b,x)=>{x>F&&x{x=F+1&&(b.size=b.min,A.nextReachedMinPanes+=b.min)}),s.value[U[0]].size=100-A.prevPanesSize-P(U[0]-1),null):{sums:A,panesToResize:U}},M=A=>s.value.reduce((B,F,U)=>B+(Us.value.reduce((B,F,U)=>B+(U>A+1?F.size:0),0),oe=A=>[...s.value].reverse().find(B=>B.indexB.min)||{},O=A=>s.value.find(B=>B.index>A+1&&B.size>B.min)||{},S=()=>{var A;const B=Array.from(((A=u.value)==null?void 0:A.children)||[]);for(const F of B){const U=F.classList.contains("splitpanes__pane"),b=F.classList.contains("splitpanes__splitter");!U&&!b&&(F.remove(),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))}},W=(A,B,F=!1)=>{const U=A-1,b=document.createElement("div");b.classList.add("splitpanes__splitter"),F||(b.onmousedown=x=>f(x,U),typeof window<"u"&&"ontouchstart"in window&&(b.ontouchstart=x=>f(x,U)),b.onclick=x=>v(x,U+1)),b.ondblclick=x=>E(x,U+1),B.parentNode.insertBefore(b,B)},ne=A=>{A.onmousedown=void 0,A.onclick=void 0,A.ondblclick=void 0,A.remove()},Q=()=>{var A;const B=Array.from(((A=u.value)==null?void 0:A.children)||[]);for(const U of B)U.className.includes("splitpanes__splitter")&&ne(U);let F=0;for(const U of B)U.className.includes("splitpanes__pane")&&(!F&&r.firstSplitter?W(F,U,!0):F&&W(F,U),F++)},Y=({uid:A,...B})=>{const F=a.value[A];for(const[U,b]of Object.entries(B))F[U]=b},ee=A=>{var B;let F=-1;Array.from(((B=u.value)==null?void 0:B.children)||[]).some(U=>(U.className.includes("splitpanes__pane")&&F++,U.isSameNode(A.el))),s.value.splice(F,0,{...A,index:F}),s.value.forEach((U,b)=>U.index=b),c.value&&xn(()=>{Q(),te({addedPane:s.value[F]}),Se("pane-add",{pane:s.value[F]})})},J=A=>{const B=s.value.findIndex(U=>U.id===A);s.value[B].el=null;const F=s.value.splice(B,1)[0];s.value.forEach((U,b)=>U.index=b),xn(()=>{Q(),Se("pane-remove",{pane:F}),te({removedPane:{...F}})})},te=(A={})=>{!A.addedPane&&!A.removedPane?fe():s.value.some(B=>B.givenSize!==null||B.min||B.max<100)?_e(A):re(),c.value&&Se("resized")},re=()=>{const A=100/i.value;let B=0;const F=[],U=[];for(const b of s.value)b.size=Math.max(Math.min(A,b.max),b.min),B-=b.size,b.size>=b.max&&F.push(b.id),b.size<=b.min&&U.push(b.id);B>.1&&we(B,F,U)},fe=()=>{let A=100;const B=[],F=[];let U=0;for(const x of s.value)A-=x.size,x.givenSize!==null&&U++,x.size>=x.max&&B.push(x.id),x.size<=x.min&&F.push(x.id);let b=100;if(A>.1){for(const x of s.value)x.givenSize===null&&(x.size=Math.max(Math.min(A/(i.value-U),x.max),x.min)),b-=x.size;b>.1&&we(b,B,F)}},_e=({addedPane:A,removedPane:B}={})=>{let F=100/i.value,U=0;const b=[],x=[];(A?.givenSize??null)!==null&&(F=(100-A.givenSize)/(i.value-1));for(const k of s.value)U-=k.size,k.size>=k.max&&b.push(k.id),k.size<=k.min&&x.push(k.id);if(!(Math.abs(U)<.1)){for(const k of s.value)A?.givenSize!==null&&A?.id===k.id||(k.size=Math.max(Math.min(F,k.max),k.min)),U-=k.size,k.size>=k.max&&b.push(k.id),k.size<=k.min&&x.push(k.id);U>.1&&we(U,b,x)}},we=(A,B,F)=>{let U;A>0?U=A/(i.value-B.length):U=A/(i.value-F.length),s.value.forEach((b,x)=>{if(A>0&&!B.includes(b.id)){const k=Math.max(Math.min(b.size+U,b.max),b.min),N=k-b.size;A-=N,b.size=k}else if(!F.includes(b.id)){const k=Math.max(Math.min(b.size+U,b.max),b.min),N=k-b.size;A-=N,b.size=k}}),Math.abs(A)>.1&&xn(()=>{c.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},Se=(A,B=void 0,F=!1)=>{const U=B?.index??l.value.activeSplitter??null;n(A,{...B,...U!==null&&{index:U},...F&&U!==null&&{prevPane:s.value[U-(r.firstSplitter?1:0)],nextPane:s.value[U+(r.firstSplitter?0:1)]},panes:s.value.map(b=>({min:b.min,max:b.max,size:b.size}))})};et(()=>r.firstSplitter,()=>Q()),Sn(()=>{S(),Q(),te(),Se("ready"),c.value=!0}),ua(()=>c.value=!1);const Le=()=>{var A;return Dt("div",{ref:u,class:p.value},(A=o.default)==null?void 0:A.call(o))};return Zt("panes",s),Zt("indexedPanes",a),Zt("horizontal",se(()=>r.horizontal)),Zt("requestUpdate",Y),Zt("onPaneAdd",ee),Zt("onPaneRemove",J),Zt("onPaneClick",C),(A,B)=>($(),me(la(Le)))}},DE={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const n=e,r=rt("requestUpdate"),o=rt("onPaneAdd"),s=rt("horizontal"),a=rt("onPaneRemove"),i=rt("onPaneClick"),u=(t=jn())==null?void 0:t.uid,c=rt("indexedPanes"),l=se(()=>c.value[u]),d=Ae(null),p=se(()=>{const m=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min(m,g.value),h.value)}),h=se(()=>{const m=parseFloat(n.minSize);return isNaN(m)?0:m}),g=se(()=>{const m=parseFloat(n.maxSize);return isNaN(m)?100:m}),f=se(()=>{var m;return`${s.value?"height":"width"}: ${(m=l.value)==null?void 0:m.size}%`});return et(()=>p.value,m=>r({uid:u,size:m})),et(()=>h.value,m=>r({uid:u,min:m})),et(()=>g.value,m=>r({uid:u,max:m})),Sn(()=>{o({id:u,el:d.value,min:h.value,max:g.value,givenSize:n.size===void 0?null:p.value,size:p.value})}),ua(()=>a(u)),(m,y)=>($(),X("div",{ref_key:"paneEl",ref:d,class:"splitpanes__pane",onClick:y[0]||(y[0]=v=>z(i)(v,m._.uid)),style:hn(f.value)},[ye(m.$slots,"default")],4))}};var ah="M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z",Yg="M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z",Wl="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",NE="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",Jg="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",ql="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",PE="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",BE="M21,15.61L19.59,17L14.58,12L19.59,7L21,8.39L17.44,12L21,15.61M3,6H16V8H3V6M3,13V11H13V13H3M3,18V16H16V18H3Z",$E="M14,19H18V5H14M6,19H10V5H6V19Z",RE="M8,5.14V19.14L19,12.14L8,5.14Z",FE="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";const Fc=1024,Qg=Fc/2,mi=e=>document.documentElement.clientWidth{em.value=mi(Fc),LE.value=mi(Qg)},{passive:!0});function fa(){return Vs(em)}class IE{bundle;constructor(t){this.bundle={pluralFunction:t,translations:{}}}addTranslations(t){const n=Object.values(t.translations[""]??{}).map(({msgid:r,msgid_plural:o,msgstr:s})=>o!==void 0?[`_${r}_::_${o}_`,s]:[r,s[0]]);this.bundle.translations={...this.bundle.translations,...Object.fromEntries(n)}}gettext(t,n={}){return Ue("",t,n,void 0,{bundle:this.bundle})}ngettext(t,n,r,o={}){return aE("",t,n,r,o,{bundle:this.bundle})}}class ME{debug=!1;language="en";translations={};setLanguage(t){return this.language=t,this}detectLocale(){return this.detectLanguage()}detectLanguage(){return this.setLanguage(kr().replace("-","_"))}addTranslation(t,n){return this.translations[t]=n,this}enableDebugMode(){return this.debug=!0,this}build(){this.debug&&console.debug(`Creating gettext instance for language ${this.language}`);const t=new IE(n=>iE(n,this.language));return this.language in this.translations&&t.addTranslations(this.translations[this.language]),t}}function jE(){return new ME}const tm=jE().detectLanguage().build(),Ie=(...e)=>tm.gettext(...e);function mn(...e){for(const t of e)if(!t.registered){for(const{l:n,t:r}of t){if(n!==kr()||!r)continue;const o=Object.fromEntries(Object.entries(r).map(([s,a])=>[s,{msgid:s,msgid_plural:a.p,msgstr:a.v}]));tm.addTranslations({translations:{"":o}})}t.registered=!0}}const zE=[{l:"ar",t:{"a few seconds ago":{v:["منذ عدة ثوانٍ"]},"sec. ago":{v:["ثانية مضت"]},"seconds ago":{v:["ثوانٍ مضت"]}}},{l:"ast",t:{"a few seconds ago":{v:["hai unos segundos"]},"sec. ago":{v:["hai segs"]},"seconds ago":{v:["hai segundos"]}}},{l:"br",t:{}},{l:"ca",t:{}},{l:"cs",t:{"a few seconds ago":{v:["před několika sekundami"]},"sec. ago":{v:["sek. před"]},"seconds ago":{v:["sekund předtím"]}}},{l:"cs-CZ",t:{"a few seconds ago":{v:["před několika sekundami"]},"sec. ago":{v:["sek. před"]},"seconds ago":{v:["sekund předtím"]}}},{l:"da",t:{"a few seconds ago":{v:["et par sekunder siden"]},"sec. ago":{v:["sek. siden"]},"seconds ago":{v:["sekunder siden"]}}},{l:"de",t:{"a few seconds ago":{v:["vor ein paar Sekunden"]},"sec. ago":{v:["Sek. zuvor"]},"seconds ago":{v:["Sekunden zuvor"]}}},{l:"de-DE",t:{"a few seconds ago":{v:["vor ein paar Sekunden"]},"sec. ago":{v:["Sek. zuvor"]},"seconds ago":{v:["Sekunden zuvor"]}}},{l:"el",t:{"a few seconds ago":{v:["πριν λίγα δευτερόλεπτα"]},"sec. ago":{v:["δευτ. πριν"]},"seconds ago":{v:["δευτερόλεπτα πριν"]}}},{l:"en-GB",t:{"a few seconds ago":{v:["a few seconds ago"]},"sec. ago":{v:["sec. ago"]},"seconds ago":{v:["seconds ago"]}}},{l:"eo",t:{}},{l:"es",t:{"a few seconds ago":{v:["hace unos pocos segundos"]},"sec. ago":{v:["hace segundos"]},"seconds ago":{v:["segundos atrás"]}}},{l:"es-AR",t:{"a few seconds ago":{v:["hace unos segundos"]},"sec. ago":{v:["seg. atrás"]},"seconds ago":{v:["segundos atrás"]}}},{l:"es-EC",t:{"a few seconds ago":{v:["hace unos segundos"]},"sec. ago":{v:["hace segundos"]},"seconds ago":{v:["Segundos atrás"]}}},{l:"es-MX",t:{"a few seconds ago":{v:["hace unos segundos"]},"sec. ago":{v:["seg. atrás"]},"seconds ago":{v:["segundos atrás"]}}},{l:"et-EE",t:{"a few seconds ago":{v:["mõni sekund tagasi"]},"sec. ago":{v:["sek. tagasi"]},"seconds ago":{v:["sekundit tagasi"]}}},{l:"eu",t:{"a few seconds ago":{v:["duela segundo batzuk"]},"sec. ago":{v:["duela seg."]},"seconds ago":{v:["duela segundo"]}}},{l:"fa",t:{"a few seconds ago":{v:["چند ثانیه پیش"]},"sec. ago":{v:["چند ثانیه پیش"]},"seconds ago":{v:["چند ثانیه پیش"]}}},{l:"fi",t:{"a few seconds ago":{v:["muutamia sekunteja sitten"]},"sec. ago":{v:["sek. sitten"]},"seconds ago":{v:["sekunteja sitten"]}}},{l:"fr",t:{"a few seconds ago":{v:["il y a quelques instants"]},"sec. ago":{v:["il y a qq. sec."]},"seconds ago":{v:["il y a quelques secondes"]}}},{l:"ga",t:{"a few seconds ago":{v:["cúpla soicind ó shin"]},"sec. ago":{v:["soic. ó shin"]},"seconds ago":{v:["soicind ó shin"]}}},{l:"gl",t:{"a few seconds ago":{v:["hai uns segundos"]},"sec. ago":{v:["segs. atrás"]},"seconds ago":{v:["segundos atrás"]}}},{l:"he",t:{"a few seconds ago":{v:["לפני מספר שניות"]},"sec. ago":{v:["לפני מספר שניות"]},"seconds ago":{v:["לפני מס׳ שניות"]}}},{l:"hr",t:{"a few seconds ago":{v:["prije nekoliko sekundi"]},"sec. ago":{v:["prije nek. sek."]},"seconds ago":{v:["prije nek. sek."]}}},{l:"hu",t:{"a few seconds ago":{v:["néhány másodperce"]},"sec. ago":{v:["másodperce"]},"seconds ago":{v:["másodperce"]}}},{l:"id",t:{"a few seconds ago":{v:["beberapa detik yang lalu"]},"sec. ago":{v:["dtk. yang lalu"]},"seconds ago":{v:["beberapa detik lalu"]}}},{l:"is",t:{"a few seconds ago":{v:["fyrir örfáum sekúndum síðan"]},"sec. ago":{v:["sek. síðan"]},"seconds ago":{v:["sekúndum síðan"]}}},{l:"it",t:{"a few seconds ago":{v:["pochi secondi fa"]},"sec. ago":{v:["sec. fa"]},"seconds ago":{v:["secondi fa"]}}},{l:"ja",t:{"a few seconds ago":{v:["数秒前"]},"sec. ago":{v:["秒前"]},"seconds ago":{v:["数秒前"]}}},{l:"ja-JP",t:{"a few seconds ago":{v:["数秒前"]},"sec. ago":{v:["秒前"]},"seconds ago":{v:["数秒前"]}}},{l:"ko",t:{"a few seconds ago":{v:["방금 전"]},"sec. ago":{v:["몇 초 전"]},"seconds ago":{v:["초 전"]}}},{l:"lo",t:{"a few seconds ago":{v:["ສອງສາມວິນາທີກ່ອນ"]},"sec. ago":{v:["ວິ. ກ່ອນ"]},"seconds ago":{v:["ວິນາທີກ່ອນ"]}}},{l:"lt-LT",t:{"a few seconds ago":{v:["prieš keletą sekundžių"]},"sec. ago":{v:["prieš sek."]},"seconds ago":{v:["prieš sekundes"]}}},{l:"lv",t:{}},{l:"mk",t:{"a few seconds ago":{v:["пред неколку секунди"]},"sec. ago":{v:["секунда"]},"seconds ago":{v:["секунди"]}}},{l:"mn",t:{"a few seconds ago":{v:["хэдхэн секундын өмнө"]},"sec. ago":{v:["сек. өмнө"]},"seconds ago":{v:["секундын өмнө"]}}},{l:"my",t:{}},{l:"nb",t:{"a few seconds ago":{v:["noen få sekunder siden"]},"sec. ago":{v:["sek. siden"]},"seconds ago":{v:["sekunder siden"]}}},{l:"nl",t:{"a few seconds ago":{v:["enkele seconden geleden"]},"sec. ago":{v:["sec. geleden"]},"seconds ago":{v:["seconden geleden"]}}},{l:"oc",t:{}},{l:"pl",t:{"a few seconds ago":{v:["kilka sekund temu"]},"sec. ago":{v:["sek. temu"]},"seconds ago":{v:["sekund temu"]}}},{l:"pt-BR",t:{"a few seconds ago":{v:["há alguns segundos"]},"sec. ago":{v:["seg. atrás"]},"seconds ago":{v:["segundos atrás"]}}},{l:"pt-PT",t:{"a few seconds ago":{v:["há alguns segundos"]},"sec. ago":{v:["seg. atrás"]},"seconds ago":{v:["segundos atrás"]}}},{l:"ro",t:{"a few seconds ago":{v:["acum câteva secunde"]},"sec. ago":{v:["sec. în urmă"]},"seconds ago":{v:["secunde în urmă"]}}},{l:"ru",t:{"a few seconds ago":{v:["несколько секунд назад"]},"sec. ago":{v:["сек. назад"]},"seconds ago":{v:["секунд назад"]}}},{l:"sk",t:{"a few seconds ago":{v:["pred chvíľou"]},"sec. ago":{v:["pred pár sekundami"]},"seconds ago":{v:["pred sekundami"]}}},{l:"sl",t:{}},{l:"sr",t:{"a few seconds ago":{v:["пре неколико секунди"]},"sec. ago":{v:["сек. раније"]},"seconds ago":{v:["секунди раније"]}}},{l:"sv",t:{"a few seconds ago":{v:["några sekunder sedan"]},"sec. ago":{v:["sek. sedan"]},"seconds ago":{v:["sekunder sedan"]}}},{l:"tr",t:{"a few seconds ago":{v:["birkaç saniye önce"]},"sec. ago":{v:["sn. önce"]},"seconds ago":{v:["saniye önce"]}}},{l:"uk",t:{"a few seconds ago":{v:["декілька секунд тому"]},"sec. ago":{v:["с тому"]},"seconds ago":{v:["с тому"]}}},{l:"uz",t:{"a few seconds ago":{v:["bir necha soniya oldin"]},"sec. ago":{v:["sek. oldin"]},"seconds ago":{v:["soniyalar oldin"]}}},{l:"zh-CN",t:{"a few seconds ago":{v:["几秒前"]},"sec. ago":{v:["几秒前"]},"seconds ago":{v:["几秒前"]}}},{l:"zh-HK",t:{"a few seconds ago":{v:["幾秒前"]},"sec. ago":{v:["秒前"]},"seconds ago":{v:["秒前"]}}},{l:"zh-TW",t:{"a few seconds ago":{v:["幾秒前"]},"sec. ago":{v:["秒前"]},"seconds ago":{v:["秒前"]}}}],UE=[{l:"ar",t:{Actions:{v:["إجراءات"]}}},{l:"ast",t:{Actions:{v:["Aiciones"]}}},{l:"br",t:{Actions:{v:["Oberioù"]}}},{l:"ca",t:{Actions:{v:["Accions"]}}},{l:"cs",t:{Actions:{v:["Akce"]}}},{l:"cs-CZ",t:{Actions:{v:["Akce"]}}},{l:"da",t:{Actions:{v:["Handlinger"]}}},{l:"de",t:{Actions:{v:["Aktionen"]}}},{l:"de-DE",t:{Actions:{v:["Aktionen"]}}},{l:"el",t:{Actions:{v:["Ενέργειες"]}}},{l:"en-GB",t:{Actions:{v:["Actions"]}}},{l:"eo",t:{Actions:{v:["Agoj"]}}},{l:"es",t:{Actions:{v:["Acciones"]}}},{l:"es-AR",t:{Actions:{v:["Acciones"]}}},{l:"es-EC",t:{Actions:{v:["Acciones"]}}},{l:"es-MX",t:{Actions:{v:["Acciones"]}}},{l:"et-EE",t:{Actions:{v:["Tegevus"]}}},{l:"eu",t:{Actions:{v:["Ekintzak"]}}},{l:"fa",t:{Actions:{v:["کنش‌ها"]}}},{l:"fi",t:{Actions:{v:["Toiminnot"]}}},{l:"fr",t:{Actions:{v:["Actions"]}}},{l:"ga",t:{Actions:{v:["Gníomhartha"]}}},{l:"gl",t:{Actions:{v:["Accións"]}}},{l:"he",t:{Actions:{v:["פעולות"]}}},{l:"hr",t:{Actions:{v:["Radnje"]}}},{l:"hu",t:{Actions:{v:["Műveletek"]}}},{l:"id",t:{Actions:{v:["Tindakan"]}}},{l:"is",t:{Actions:{v:["Aðgerðir"]}}},{l:"it",t:{Actions:{v:["Azioni"]}}},{l:"ja",t:{Actions:{v:["操作"]}}},{l:"ja-JP",t:{Actions:{v:["操作"]}}},{l:"ko",t:{Actions:{v:["동작"]}}},{l:"lo",t:{Actions:{v:["ການກະທຳ"]}}},{l:"lt-LT",t:{Actions:{v:["Veiksmai"]}}},{l:"lv",t:{}},{l:"mk",t:{Actions:{v:["Акции"]}}},{l:"mn",t:{Actions:{v:["Үйлдлүүд"]}}},{l:"my",t:{Actions:{v:["လုပ်ဆောင်ချက်များ"]}}},{l:"nb",t:{Actions:{v:["Handlinger"]}}},{l:"nl",t:{Actions:{v:["Acties"]}}},{l:"oc",t:{Actions:{v:["Accions"]}}},{l:"pl",t:{Actions:{v:["Działania"]}}},{l:"pt-BR",t:{Actions:{v:["Ações"]}}},{l:"pt-PT",t:{Actions:{v:["Ações"]}}},{l:"ro",t:{Actions:{v:["Acțiuni"]}}},{l:"ru",t:{Actions:{v:["Действия "]}}},{l:"sk",t:{Actions:{v:["Akcie"]}}},{l:"sl",t:{Actions:{v:["Dejanja"]}}},{l:"sr",t:{Actions:{v:["Радње"]}}},{l:"sv",t:{Actions:{v:["Åtgärder"]}}},{l:"tr",t:{Actions:{v:["İşlemler"]}}},{l:"uk",t:{Actions:{v:["Дії"]}}},{l:"uz",t:{Actions:{v:["Harakatlar"]}}},{l:"zh-CN",t:{Actions:{v:["行为"]}}},{l:"zh-HK",t:{Actions:{v:["動作"]}}},{l:"zh-TW",t:{Actions:{v:["動作"]}}}],VE=[{l:"ar",t:{"Cancel changes":{v:["إلغاء التغييرات"]},"Confirm changes":{v:["تأكيد التغييرات"]}}},{l:"ast",t:{"Cancel changes":{v:["Encaboxar los cambeos"]},"Confirm changes":{v:["Confirmar los cambeos"]}}},{l:"br",t:{}},{l:"ca",t:{"Cancel changes":{v:["Cancel·la els canvis"]},"Confirm changes":{v:["Confirmeu els canvis"]}}},{l:"cs",t:{"Cancel changes":{v:["Zrušit změny"]},"Confirm changes":{v:["Potvrdit změny"]}}},{l:"cs-CZ",t:{"Cancel changes":{v:["Zrušit změny"]},"Confirm changes":{v:["Potvrdit změny"]}}},{l:"da",t:{"Cancel changes":{v:["Annuller ændringer"]},"Confirm changes":{v:["Bekræft ændringer"]}}},{l:"de",t:{"Cancel changes":{v:["Änderungen verwerfen"]},"Confirm changes":{v:["Änderungen bestätigen"]}}},{l:"de-DE",t:{"Cancel changes":{v:["Änderungen verwerfen"]},"Confirm changes":{v:["Änderungen bestätigen"]}}},{l:"el",t:{"Cancel changes":{v:["Ακύρωση αλλαγών"]},"Confirm changes":{v:["Επιβεβαίωση αλλαγών"]}}},{l:"en-GB",t:{"Cancel changes":{v:["Cancel changes"]},"Confirm changes":{v:["Confirm changes"]}}},{l:"eo",t:{}},{l:"es",t:{"Cancel changes":{v:["Cancelar cambios"]},"Confirm changes":{v:["Confirmar cambios"]}}},{l:"es-AR",t:{"Cancel changes":{v:["Cancelar cambios"]},"Confirm changes":{v:["Confirmar cambios"]}}},{l:"es-EC",t:{"Cancel changes":{v:["Cancelar cambios"]},"Confirm changes":{v:["Confirmar cambios"]}}},{l:"es-MX",t:{"Cancel changes":{v:["Cancelar cambios"]},"Confirm changes":{v:["Confirmar cambios"]}}},{l:"et-EE",t:{"Cancel changes":{v:["Tühista muudatused"]},"Confirm changes":{v:["Kinnita muudatused"]}}},{l:"eu",t:{"Cancel changes":{v:["Ezeztatu aldaketak"]},"Confirm changes":{v:["Baieztatu aldaketak"]}}},{l:"fa",t:{"Cancel changes":{v:["لغو تغییرات"]},"Confirm changes":{v:["تایید تغییرات"]}}},{l:"fi",t:{"Cancel changes":{v:["Peruuta muutokset"]},"Confirm changes":{v:["Vahvista muutokset"]}}},{l:"fr",t:{"Cancel changes":{v:["Annuler les modifications"]},"Confirm changes":{v:["Confirmer les modifications"]}}},{l:"ga",t:{"Cancel changes":{v:["Cealaigh athruithe"]},"Confirm changes":{v:["Deimhnigh na hathruithe"]}}},{l:"gl",t:{"Cancel changes":{v:["Cancelar os cambios"]},"Confirm changes":{v:["Confirma os cambios"]}}},{l:"he",t:{"Cancel changes":{v:["ביטול שינויים"]},"Confirm changes":{v:["אישור השינויים"]}}},{l:"hr",t:{"Cancel changes":{v:["Otkaži promjene"]},"Confirm changes":{v:["Potvrdi promjene"]}}},{l:"hu",t:{"Cancel changes":{v:["Változtatások elvetése"]},"Confirm changes":{v:["Változtatások megerősítése"]}}},{l:"id",t:{"Cancel changes":{v:["Batalkan perubahan"]},"Confirm changes":{v:["Konfirmasikan perubahan"]}}},{l:"is",t:{"Cancel changes":{v:["Hætta við breytingar"]},"Confirm changes":{v:["Staðfesta breytingar"]}}},{l:"it",t:{"Cancel changes":{v:["Annulla modifiche"]},"Confirm changes":{v:["Conferma modifiche"]}}},{l:"ja",t:{"Cancel changes":{v:["変更をキャンセル"]},"Confirm changes":{v:["変更を承認"]}}},{l:"ja-JP",t:{"Cancel changes":{v:["変更をキャンセル"]},"Confirm changes":{v:["変更を承認"]}}},{l:"ko",t:{"Cancel changes":{v:["변경 취소"]},"Confirm changes":{v:["변경 사항 확인"]}}},{l:"lo",t:{"Cancel changes":{v:["ຍົກເລີກການປ່ຽນແປງ"]},"Confirm changes":{v:["ຢືນຢັນການປ່ຽນແປງ"]}}},{l:"lt-LT",t:{"Cancel changes":{v:["Atsisakyti pakeitimų"]},"Confirm changes":{v:["Patvirtinti pakeitimus"]}}},{l:"lv",t:{}},{l:"mk",t:{"Cancel changes":{v:["Откажи ги промените"]},"Confirm changes":{v:["Потврди ги промените"]}}},{l:"mn",t:{"Cancel changes":{v:["Өөрчлөлтийг цуцлах"]},"Confirm changes":{v:["Өөрчлөлтийг баталгаажуулах"]}}},{l:"my",t:{"Cancel changes":{v:["ပြောင်းလဲမှုများ ပယ်ဖျက်ရန်"]},"Confirm changes":{v:["ပြောင်းလဲမှုများ အတည်ပြုရန်"]}}},{l:"nb",t:{"Cancel changes":{v:["Avbryt endringer"]},"Confirm changes":{v:["Bekreft endringer"]}}},{l:"nl",t:{"Cancel changes":{v:["Wijzigingen annuleren"]},"Confirm changes":{v:["Wijzigingen bevestigen"]}}},{l:"oc",t:{}},{l:"pl",t:{"Cancel changes":{v:["Anuluj zmiany"]},"Confirm changes":{v:["Potwierdź zmiany"]}}},{l:"pt-BR",t:{"Cancel changes":{v:["Cancelar alterações"]},"Confirm changes":{v:["Confirmar alterações"]}}},{l:"pt-PT",t:{"Cancel changes":{v:["Cancelar alterações"]},"Confirm changes":{v:["Confirmar alterações"]}}},{l:"ro",t:{"Cancel changes":{v:["Anulează modificările"]},"Confirm changes":{v:["Confirmați modificările"]}}},{l:"ru",t:{"Cancel changes":{v:["Отменить изменения"]},"Confirm changes":{v:["Подтвердить изменения"]}}},{l:"sk",t:{"Cancel changes":{v:["Zrušiť zmeny"]},"Confirm changes":{v:["Potvrdiť zmeny"]}}},{l:"sl",t:{"Cancel changes":{v:["Prekliči spremembe"]},"Confirm changes":{v:["Potrdi spremembe"]}}},{l:"sr",t:{"Cancel changes":{v:["Откажи измене"]},"Confirm changes":{v:["Потврдите измене"]}}},{l:"sv",t:{"Cancel changes":{v:["Avbryt ändringar"]},"Confirm changes":{v:["Bekräfta ändringar"]}}},{l:"tr",t:{"Cancel changes":{v:["Değişiklikleri iptal et"]},"Confirm changes":{v:["Değişiklikleri onayla"]}}},{l:"uk",t:{"Cancel changes":{v:["Скасувати зміни"]},"Confirm changes":{v:["Підтвердити зміни"]}}},{l:"uz",t:{"Cancel changes":{v:["O'zgarishlarni bekor qilish"]},"Confirm changes":{v:["O'zgarishlarni tasdiqlang"]}}},{l:"zh-CN",t:{"Cancel changes":{v:["取消更改"]},"Confirm changes":{v:["确认更改"]}}},{l:"zh-HK",t:{"Cancel changes":{v:["取消更改"]},"Confirm changes":{v:["確認更改"]}}},{l:"zh-TW",t:{"Cancel changes":{v:["取消變更"]},"Confirm changes":{v:["確認變更"]}}}],HE=[{l:"ar",t:{"Clear search":{v:["محو البحث"]}}},{l:"ast",t:{"Clear search":{v:["Borrar la busca"]}}},{l:"br",t:{}},{l:"ca",t:{}},{l:"cs",t:{"Clear search":{v:["Vyčistit vyhledávání"]}}},{l:"cs-CZ",t:{"Clear search":{v:["Vyčistit vyhledávání"]}}},{l:"da",t:{"Clear search":{v:["Ryd søgning"]}}},{l:"de",t:{"Clear search":{v:["Suche leeren"]}}},{l:"de-DE",t:{"Clear search":{v:["Suche leeren"]}}},{l:"el",t:{"Clear search":{v:["Εκκαθάριση αναζήτησης"]}}},{l:"en-GB",t:{"Clear search":{v:["Clear search"]}}},{l:"eo",t:{}},{l:"es",t:{"Clear search":{v:["Limpiar búsqueda"]}}},{l:"es-AR",t:{"Clear search":{v:["Limpiar búsqueda"]}}},{l:"es-EC",t:{"Clear search":{v:["Limpiar búsqueda"]}}},{l:"es-MX",t:{"Clear search":{v:["Limpiar búsqueda"]}}},{l:"et-EE",t:{"Clear search":{v:["Tühjenda otsing"]}}},{l:"eu",t:{"Clear search":{v:["Garbitu bilaketa"]}}},{l:"fa",t:{"Clear search":{v:["پاک کردن جستجو"]}}},{l:"fi",t:{"Clear search":{v:["Tyhjennä haku"]}}},{l:"fr",t:{"Clear search":{v:["Effacer la recherche"]}}},{l:"ga",t:{"Clear search":{v:["Glan cuardach"]}}},{l:"gl",t:{"Clear search":{v:["Limpar a busca"]}}},{l:"he",t:{"Clear search":{v:["פינוי חיפוש"]}}},{l:"hr",t:{"Clear search":{v:["Očisti pretraživanje"]}}},{l:"hu",t:{"Clear search":{v:["Keresés törlése"]}}},{l:"id",t:{"Clear search":{v:["Bersihkan pencarian"]}}},{l:"is",t:{"Clear search":{v:["Hreinsa leit"]}}},{l:"it",t:{"Clear search":{v:["online"]}}},{l:"ja",t:{"Clear search":{v:["検索をクリア"]}}},{l:"ja-JP",t:{"Clear search":{v:["検索をクリア"]}}},{l:"ko",t:{"Clear search":{v:["검색 지우기"]}}},{l:"lo",t:{"Clear search":{v:["ລຶບການຄົ້ນຫາ"]}}},{l:"lt-LT",t:{"Clear search":{v:["Išvalyti paiešką"]}}},{l:"lv",t:{}},{l:"mk",t:{"Clear search":{v:["Исчисти пребарување"]}}},{l:"mn",t:{"Clear search":{v:["Хайлтыг цэвэрлэх"]}}},{l:"my",t:{}},{l:"nb",t:{"Clear search":{v:["Tøm søk"]}}},{l:"nl",t:{"Clear search":{v:["Zoekopdracht wissen"]}}},{l:"oc",t:{}},{l:"pl",t:{"Clear search":{v:["Wyczyść wyszukiwanie"]}}},{l:"pt-BR",t:{"Clear search":{v:["Limpar pesquisa"]}}},{l:"pt-PT",t:{"Clear search":{v:["Limpar pesquisa"]}}},{l:"ro",t:{"Clear search":{v:["Șterge căutarea"]}}},{l:"ru",t:{"Clear search":{v:["Очистить поиск"]}}},{l:"sk",t:{"Clear search":{v:["Vymazať vyhľadávanie"]}}},{l:"sl",t:{}},{l:"sr",t:{"Clear search":{v:["Обриши претрагу"]}}},{l:"sv",t:{"Clear search":{v:["Rensa sökning"]}}},{l:"tr",t:{"Clear search":{v:["Aramayı temizle"]}}},{l:"uk",t:{"Clear search":{v:["Очистити пошук"]}}},{l:"uz",t:{"Clear search":{v:["Qidiruvni tozalash"]}}},{l:"zh-CN",t:{"Clear search":{v:["清除搜索"]}}},{l:"zh-HK",t:{"Clear search":{v:["清除搜索"]}}},{l:"zh-TW",t:{"Clear search":{v:["清除搜尋"]}}}],GE=[{l:"ar",t:{"Clear text":{v:["محو النص"]},"Save changes":{v:["حفظ التغييرات"]}}},{l:"ast",t:{"Clear text":{v:["Borrar el testu"]},"Save changes":{v:["Guardar los cambeos"]}}},{l:"br",t:{}},{l:"ca",t:{"Clear text":{v:["Netejar text"]}}},{l:"cs",t:{"Clear text":{v:["Čitelný text"]},"Save changes":{v:["Uložit změny"]}}},{l:"cs-CZ",t:{"Clear text":{v:["Čitelný text"]},"Save changes":{v:["Uložit změny"]}}},{l:"da",t:{"Clear text":{v:["Ryd tekst"]},"Save changes":{v:["Gem ændringer"]}}},{l:"de",t:{"Clear text":{v:["Klartext"]},"Save changes":{v:["Änderungen speichern"]}}},{l:"de-DE",t:{"Clear text":{v:["Klartext"]},"Save changes":{v:["Änderungen speichern"]}}},{l:"el",t:{"Clear text":{v:["Εκκαθάριση κειμένου"]},"Save changes":{v:["Αποθήκευση αλλαγών"]}}},{l:"en-GB",t:{"Clear text":{v:["Clear text"]},"Save changes":{v:["Save changes"]}}},{l:"eo",t:{}},{l:"es",t:{"Clear text":{v:["Limpiar texto"]},"Save changes":{v:["Guardar cambios"]}}},{l:"es-AR",t:{"Clear text":{v:["Limpiar texto"]},"Save changes":{v:["Guardar cambios"]}}},{l:"es-EC",t:{"Clear text":{v:["Limpiar texto"]}}},{l:"es-MX",t:{"Clear text":{v:["Limpiar texto"]},"Save changes":{v:["Guardar cambios"]}}},{l:"et-EE",t:{"Clear text":{v:["Kustuta tekst"]},"Save changes":{v:["Salvesta muudatused"]}}},{l:"eu",t:{"Clear text":{v:["Garbitu testua"]}}},{l:"fa",t:{"Clear text":{v:["پاک کردن متن"]},"Save changes":{v:["ذخیرهٔ تغییرات"]}}},{l:"fi",t:{"Clear text":{v:["Tyhjennä teksti"]},"Save changes":{v:["Tallenna muutokset"]}}},{l:"fr",t:{"Clear text":{v:["Effacer le texte"]},"Save changes":{v:["Sauvegarder les changements"]}}},{l:"ga",t:{"Clear text":{v:["Glan téacs"]},"Save changes":{v:["Sabháil na hathruithe"]}}},{l:"gl",t:{"Clear text":{v:["Limpar o texto"]},"Save changes":{v:["Gardar os cambios"]}}},{l:"he",t:{"Clear text":{v:["פינוי טקסט"]}}},{l:"hr",t:{"Clear text":{v:["Očisti tekst"]},"Save changes":{v:["Spremi promjene"]}}},{l:"hu",t:{"Clear text":{v:["Szöveg törlése"]},"Save changes":{v:["Változtatások mentése"]}}},{l:"id",t:{"Clear text":{v:["Bersihkan teks"]},"Save changes":{v:["Simpan perubahan"]}}},{l:"is",t:{"Clear text":{v:["Hreinsa texta"]},"Save changes":{v:["Vista breytingar"]}}},{l:"it",t:{"Clear text":{v:["Cancella il testo"]},"Save changes":{v:["Salva le modifiche"]}}},{l:"ja",t:{"Clear text":{v:["テキストをクリア"]},"Save changes":{v:["変更を保存"]}}},{l:"ja-JP",t:{"Clear text":{v:["テキストをクリア"]},"Save changes":{v:["変更を保存"]}}},{l:"ko",t:{"Clear text":{v:["텍스트 지우기"]},"Save changes":{v:["변경 사항 저장"]}}},{l:"lo",t:{"Clear text":{v:["ລຶບຂໍ້ຄວາມ"]},"Save changes":{v:["ບັນທຶກການປ່ຽນແປງ"]}}},{l:"lt-LT",t:{"Clear text":{v:["Išvalyti tekstą"]},"Save changes":{v:["Įrašyti pakeitimus"]}}},{l:"lv",t:{}},{l:"mk",t:{"Clear text":{v:["Исчисти текст"]},"Save changes":{v:["Зачувај промени"]}}},{l:"mn",t:{"Clear text":{v:["Текстийг цэвэрлэх"]},"Save changes":{v:["Өөрчлөлтийг хадгалах"]}}},{l:"my",t:{}},{l:"nb",t:{"Clear text":{v:["Fjern tekst"]},"Save changes":{v:["Lagre endringer"]}}},{l:"nl",t:{"Clear text":{v:["Tekst wissen"]},"Save changes":{v:["Wijzigingen opslaan"]}}},{l:"oc",t:{}},{l:"pl",t:{"Clear text":{v:["Wyczyść tekst"]},"Save changes":{v:["Zapisz zmiany"]}}},{l:"pt-BR",t:{"Clear text":{v:["Limpar texto"]},"Save changes":{v:["Salvar alterações"]}}},{l:"pt-PT",t:{"Clear text":{v:["Limpar texto"]},"Save changes":{v:["Gravar alterações"]}}},{l:"ro",t:{"Clear text":{v:["Șterge textul"]},"Save changes":{v:["Salvează modificările"]}}},{l:"ru",t:{"Clear text":{v:["Очистить текст"]},"Save changes":{v:["Сохранить изменения"]}}},{l:"sk",t:{"Clear text":{v:["Vamazať text"]},"Save changes":{v:["Uložiť zmeny"]}}},{l:"sl",t:{"Clear text":{v:["Počisti besedilo"]}}},{l:"sr",t:{"Clear text":{v:["Обриши текст"]},"Save changes":{v:["Сачувај измене"]}}},{l:"sv",t:{"Clear text":{v:["Ta bort text"]},"Save changes":{v:["Spara ändringar"]}}},{l:"tr",t:{"Clear text":{v:["Metni temizle"]},"Save changes":{v:["Değişiklikleri kaydet"]}}},{l:"uk",t:{"Clear text":{v:["Очистити текст"]},"Save changes":{v:["Зберегти зміни"]}}},{l:"uz",t:{"Clear text":{v:["Matnni tozalash"]},"Save changes":{v:["O'zgarishlarni saqlang"]}}},{l:"zh-CN",t:{"Clear text":{v:["清除文本"]},"Save changes":{v:["保存修改"]}}},{l:"zh-HK",t:{"Clear text":{v:["清除文本"]},"Save changes":{v:["保存更改"]}}},{l:"zh-TW",t:{"Clear text":{v:["清除文字"]},"Save changes":{v:["儲存變更"]}}}],WE=[{l:"ar",t:{Close:{v:["إغلاق"]}}},{l:"ast",t:{Close:{v:["Zarrar"]}}},{l:"br",t:{Close:{v:["Serriñ"]}}},{l:"ca",t:{Close:{v:["Tanca"]}}},{l:"cs",t:{Close:{v:["Zavřít"]}}},{l:"cs-CZ",t:{Close:{v:["Zavřít"]}}},{l:"da",t:{Close:{v:["Luk"]}}},{l:"de",t:{Close:{v:["Schließen"]}}},{l:"de-DE",t:{Close:{v:["Schließen"]}}},{l:"el",t:{Close:{v:["Κλείσιμο"]}}},{l:"en-GB",t:{Close:{v:["Close"]}}},{l:"eo",t:{Close:{v:["Fermu"]}}},{l:"es",t:{Close:{v:["Cerrar"]}}},{l:"es-AR",t:{Close:{v:["Cerrar"]}}},{l:"es-EC",t:{Close:{v:["Cerrar"]}}},{l:"es-MX",t:{Close:{v:["Cerrar"]}}},{l:"et-EE",t:{Close:{v:["Sulge"]}}},{l:"eu",t:{Close:{v:["Itxi"]}}},{l:"fa",t:{Close:{v:["بستن"]}}},{l:"fi",t:{Close:{v:["Sulje"]}}},{l:"fr",t:{Close:{v:["Fermer"]}}},{l:"ga",t:{Close:{v:["Dún"]}}},{l:"gl",t:{Close:{v:["Pechar"]}}},{l:"he",t:{Close:{v:["סגירה"]}}},{l:"hr",t:{Close:{v:["Zatvori"]}}},{l:"hu",t:{Close:{v:["Bezárás"]}}},{l:"id",t:{Close:{v:["Tutup"]}}},{l:"is",t:{Close:{v:["Loka"]}}},{l:"it",t:{Close:{v:["Chiudi"]}}},{l:"ja",t:{Close:{v:["閉じる"]}}},{l:"ja-JP",t:{Close:{v:["閉じる"]}}},{l:"ko",t:{Close:{v:["닫기"]}}},{l:"lo",t:{Close:{v:["ປິດ"]}}},{l:"lt-LT",t:{Close:{v:["Užverti"]}}},{l:"lv",t:{Close:{v:["Aizvērt"]}}},{l:"mk",t:{Close:{v:["Затвори"]}}},{l:"mn",t:{Close:{v:["Хаах"]}}},{l:"my",t:{Close:{v:["ပိတ်ရန်"]}}},{l:"nb",t:{Close:{v:["Lukk"]}}},{l:"nl",t:{Close:{v:["Sluiten"]}}},{l:"oc",t:{Close:{v:["Tampar"]}}},{l:"pl",t:{Close:{v:["Zamknij"]}}},{l:"pt-BR",t:{Close:{v:["Fechar"]}}},{l:"pt-PT",t:{Close:{v:["Fechar"]}}},{l:"ro",t:{Close:{v:["Închideți"]}}},{l:"ru",t:{Close:{v:["Закрыть"]}}},{l:"sk",t:{Close:{v:["Zavrieť"]}}},{l:"sl",t:{Close:{v:["Zapri"]}}},{l:"sr",t:{Close:{v:["Затвори"]}}},{l:"sv",t:{Close:{v:["Stäng"]}}},{l:"tr",t:{Close:{v:["Kapat"]}}},{l:"uk",t:{Close:{v:["Закрити"]}}},{l:"uz",t:{Close:{v:["Yopish"]}}},{l:"zh-CN",t:{Close:{v:["关闭"]}}},{l:"zh-HK",t:{Close:{v:["關閉"]}}},{l:"zh-TW",t:{Close:{v:["關閉"]}}}],qE=[{l:"ar",t:{"Close navigation":{v:["إغلاق التصفح"]},"Open navigation":{v:["فتح التنقُّل"]}}},{l:"ast",t:{"Close navigation":{v:["Zarrar la navegación"]},"Open navigation":{v:["Abrir la navegación"]}}},{l:"br",t:{}},{l:"ca",t:{"Close navigation":{v:["Tanca la navegació"]},"Open navigation":{v:["Obre la navegació"]}}},{l:"cs",t:{"Close navigation":{v:["Zavřít navigaci"]},"Open navigation":{v:["Otevřít navigaci"]}}},{l:"cs-CZ",t:{"Close navigation":{v:["Zavřít navigaci"]},"Open navigation":{v:["Otevřít navigaci"]}}},{l:"da",t:{"Close navigation":{v:["Luk navigation"]},"Open navigation":{v:["Åben navigation"]}}},{l:"de",t:{"Close navigation":{v:["Navigation schließen"]},"Open navigation":{v:["Navigation öffnen"]}}},{l:"de-DE",t:{"Close navigation":{v:["Navigation schließen"]},"Open navigation":{v:["Navigation öffnen"]}}},{l:"el",t:{"Close navigation":{v:["Κλείσιμο πλοήγησης"]},"Open navigation":{v:["Άνοιγμα πλοήγησης"]}}},{l:"en-GB",t:{"Close navigation":{v:["Close navigation"]},"Open navigation":{v:["Open navigation"]}}},{l:"eo",t:{}},{l:"es",t:{"Close navigation":{v:["Cerrar navegación"]},"Open navigation":{v:["Abrir navegación"]}}},{l:"es-AR",t:{"Close navigation":{v:["Cerrar navegación"]},"Open navigation":{v:["Abrir navegación"]}}},{l:"es-EC",t:{"Close navigation":{v:["Cerrar navegación"]},"Open navigation":{v:["Abrir navegación"]}}},{l:"es-MX",t:{"Close navigation":{v:["Cerrar navegación"]},"Open navigation":{v:["Abrir navegación"]}}},{l:"et-EE",t:{"Close navigation":{v:["Sulge navigatsioon"]},"Open navigation":{v:["Ava liikumisvaade"]}}},{l:"eu",t:{"Close navigation":{v:["Itxi nabigazioa"]},"Open navigation":{v:["Ireki nabigazioa"]}}},{l:"fa",t:{"Close navigation":{v:["بستن بخش ناوبری"]},"Open navigation":{v:["باز کردن بخش ناوبری"]}}},{l:"fi",t:{"Close navigation":{v:["Sulje navigaatio"]}}},{l:"fr",t:{"Close navigation":{v:["Fermer la navigation"]},"Open navigation":{v:["Ouvrir la navigation"]}}},{l:"ga",t:{"Close navigation":{v:["Dún nascleanúint"]},"Open navigation":{v:["Oscail nascleanúint"]}}},{l:"gl",t:{"Close navigation":{v:["Pechar a navegación"]},"Open navigation":{v:["Abrir a navegación"]}}},{l:"he",t:{"Close navigation":{v:["סגירת הניווט"]},"Open navigation":{v:["פתיחת ניווט"]}}},{l:"hr",t:{"Close navigation":{v:["Zatvori navigaciju"]},"Open navigation":{v:["Otvori navigaciju"]}}},{l:"hu",t:{"Close navigation":{v:["Navigáció bezárása"]},"Open navigation":{v:["Navigáció megnyitása"]}}},{l:"id",t:{"Close navigation":{v:["Tutup navigasi"]},"Open navigation":{v:["Buka navigasi"]}}},{l:"is",t:{"Close navigation":{v:["Loka leiðsagnarsleða"]}}},{l:"it",t:{"Close navigation":{v:["Chiudi la navigazione"]},"Open navigation":{v:["Apri la navigazione"]}}},{l:"ja",t:{"Close navigation":{v:["ナビゲーションを閉じる"]},"Open navigation":{v:["ナビゲーションを開く"]}}},{l:"ja-JP",t:{"Close navigation":{v:["ナビゲーションを閉じる"]},"Open navigation":{v:["ナビゲーションを開く"]}}},{l:"ko",t:{"Close navigation":{v:["탐색 닫기"]},"Open navigation":{v:["탐색 열기"]}}},{l:"lo",t:{"Close navigation":{v:["ປິດການນຳທາງ"]},"Open navigation":{v:["ເປີດການນຳທາງ"]}}},{l:"lt-LT",t:{"Close navigation":{v:["Užverti naršymą"]},"Open navigation":{v:["Atverti naršymą"]}}},{l:"lv",t:{}},{l:"mk",t:{"Close navigation":{v:["Затвори навигација"]},"Open navigation":{v:["Отвори навигација"]}}},{l:"mn",t:{"Close navigation":{v:["Навигацийг хаах"]},"Open navigation":{v:["Навигацийг нээх"]}}},{l:"my",t:{}},{l:"nb",t:{"Close navigation":{v:["Lukk navigasjon"]},"Open navigation":{v:["Åpne navigasjon"]}}},{l:"nl",t:{"Close navigation":{v:["Navigatie sluiten"]},"Open navigation":{v:["Navigatie openen"]}}},{l:"oc",t:{}},{l:"pl",t:{"Close navigation":{v:["Zamknij nawigację"]}}},{l:"pt-BR",t:{"Close navigation":{v:["Fechar navegação"]},"Open navigation":{v:["Abrir navegação"]}}},{l:"pt-PT",t:{"Close navigation":{v:["Fechar navegação"]},"Open navigation":{v:["Abrir navegação"]}}},{l:"ro",t:{"Close navigation":{v:["Închideți navigarea"]},"Open navigation":{v:["Deschideți navigația"]}}},{l:"ru",t:{"Close navigation":{v:["Закрыть навигацию"]},"Open navigation":{v:["Открыть навигацию"]}}},{l:"sk",t:{"Close navigation":{v:["Zavrieť navigáciu"]}}},{l:"sl",t:{"Close navigation":{v:["Zapri krmarjenje"]},"Open navigation":{v:["Odpri krmarjenje"]}}},{l:"sr",t:{"Close navigation":{v:["Затвори навигацију"]},"Open navigation":{v:["Отвори навигацију"]}}},{l:"sv",t:{"Close navigation":{v:["Stäng navigering"]},"Open navigation":{v:["Öppna navigering"]}}},{l:"tr",t:{"Close navigation":{v:["Gezinmeyi kapat"]},"Open navigation":{v:["Gezinmeyi aç"]}}},{l:"uk",t:{"Close navigation":{v:["Закрити навігацію"]},"Open navigation":{v:["Перейти до навігації"]}}},{l:"uz",t:{"Close navigation":{v:["Navigatsiyani yopish"]},"Open navigation":{v:["Navigatsiyani oching"]}}},{l:"zh-CN",t:{"Close navigation":{v:["关闭导航"]}}},{l:"zh-HK",t:{"Close navigation":{v:["關閉導航"]},"Open navigation":{v:["開啟導航"]}}},{l:"zh-TW",t:{"Close navigation":{v:["關閉導航"]},"Open navigation":{v:["開啟導航"]}}}],KE=[{l:"ar",t:{"Collapse menu":{v:["طي القائمة"]},"Open menu":{v:["إفتَح القائمة"]}}},{l:"ast",t:{"Collapse menu":{v:["Recoyer el menú"]},"Open menu":{v:["Abrir le menú"]}}},{l:"br",t:{}},{l:"ca",t:{}},{l:"cs",t:{"Collapse menu":{v:["Sbalit nabídku"]},"Open menu":{v:["Otevřít nabídku"]}}},{l:"cs-CZ",t:{"Collapse menu":{v:["Sbalit nabídku"]},"Open menu":{v:["Otevřít nabídku"]}}},{l:"da",t:{"Collapse menu":{v:["Skjul menuen"]},"Open menu":{v:["Åben menu"]}}},{l:"de",t:{"Collapse menu":{v:["Menü einklappen"]},"Open menu":{v:["Menü öffnen"]}}},{l:"de-DE",t:{"Collapse menu":{v:["Menü einklappen"]},"Open menu":{v:["Menü öffnen"]}}},{l:"el",t:{"Collapse menu":{v:["Σύμπτυξη μενού"]},"Open menu":{v:["Άνοιγμα μενού"]}}},{l:"en-GB",t:{"Collapse menu":{v:["Collapse menu"]},"Open menu":{v:["Open menu"]}}},{l:"eo",t:{}},{l:"es",t:{"Collapse menu":{v:["Ocultar menú"]},"Open menu":{v:["Abrir menú"]}}},{l:"es-AR",t:{"Collapse menu":{v:["Ocultar menú"]},"Open menu":{v:["Abrir menú"]}}},{l:"es-EC",t:{"Collapse menu":{v:["Ocultar menú"]},"Open menu":{v:["Abrir menú"]}}},{l:"es-MX",t:{"Collapse menu":{v:["Ocultar menú"]},"Open menu":{v:["Abrir menú"]}}},{l:"et-EE",t:{"Collapse menu":{v:["Ahenda menüü"]},"Open menu":{v:["Ava menüü"]}}},{l:"eu",t:{"Collapse menu":{v:["Tolestu menua"]},"Open menu":{v:["Ireki menua"]}}},{l:"fa",t:{"Collapse menu":{v:["بستن فهرست"]},"Open menu":{v:["باز کردن فهرست"]}}},{l:"fi",t:{"Collapse menu":{v:["Supista valikko"]},"Open menu":{v:["Avaa valikko"]}}},{l:"fr",t:{"Collapse menu":{v:["Réduire le menu"]},"Open menu":{v:["Ouvrir le menu"]}}},{l:"ga",t:{"Collapse menu":{v:["Roghchlár Laghdaigh"]},"Open menu":{v:["Roghchlár a oscailt"]}}},{l:"gl",t:{"Collapse menu":{v:["Contraer o menú"]},"Open menu":{v:["Abrir o menú"]}}},{l:"he",t:{"Collapse menu":{v:["צמצום התפריט"]},"Open menu":{v:["פתיחת תפריט"]}}},{l:"hr",t:{"Collapse menu":{v:["Sakrij izbornik"]},"Open menu":{v:["Otvori izbornik"]}}},{l:"hu",t:{"Collapse menu":{v:["Menü összecsukása"]},"Open menu":{v:["Menü megnyitása"]}}},{l:"id",t:{"Collapse menu":{v:["Ciutkan menu"]},"Open menu":{v:["Buka menu"]}}},{l:"is",t:{"Collapse menu":{v:["Fella valmynd saman"]},"Open menu":{v:["Opna valmynd"]}}},{l:"it",t:{"Collapse menu":{v:["Chiudi Menu"]},"Open menu":{v:["Apri il menu"]}}},{l:"ja",t:{"Collapse menu":{v:["メニューの折りたたみ"]},"Open menu":{v:["メニューを開く"]}}},{l:"ja-JP",t:{"Collapse menu":{v:["メニューの折りたたみ"]},"Open menu":{v:["メニューを開く"]}}},{l:"ko",t:{"Collapse menu":{v:["메뉴 접기"]},"Open menu":{v:["메뉴 열기"]}}},{l:"lo",t:{"Collapse menu":{v:["ຫຍໍ້ເມນູ"]},"Open menu":{v:["ເປີດເມນູ"]}}},{l:"lt-LT",t:{"Collapse menu":{v:["Suskleisti meniu"]},"Open menu":{v:["Atverti meniu"]}}},{l:"lv",t:{}},{l:"mk",t:{"Collapse menu":{v:["Скриј мени"]},"Open menu":{v:["Отвори мени"]}}},{l:"mn",t:{"Collapse menu":{v:["Цэсийг хураах"]},"Open menu":{v:["Цэсийг нээх"]}}},{l:"my",t:{}},{l:"nb",t:{"Collapse menu":{v:["Skjul meny"]},"Open menu":{v:["Åpne meny"]}}},{l:"nl",t:{"Collapse menu":{v:["Menu inklappen"]},"Open menu":{v:["Menu openen"]}}},{l:"oc",t:{}},{l:"pl",t:{"Collapse menu":{v:["Zwiń menu"]},"Open menu":{v:["Otwórz menu"]}}},{l:"pt-BR",t:{"Collapse menu":{v:["Recolher menu"]},"Open menu":{v:["Abrir menu"]}}},{l:"pt-PT",t:{"Collapse menu":{v:["Ocultar menu"]},"Open menu":{v:["Abrir menu"]}}},{l:"ro",t:{"Collapse menu":{v:["Restrânge meniul"]},"Open menu":{v:["Deschide meniul"]}}},{l:"ru",t:{"Collapse menu":{v:["Свернуть меню"]},"Open menu":{v:["Открыть меню"]}}},{l:"sk",t:{"Collapse menu":{v:["Zbaliť menu"]},"Open menu":{v:["Otvoriť menu"]}}},{l:"sl",t:{}},{l:"sr",t:{"Collapse menu":{v:["Сажми мени"]},"Open menu":{v:["Отвори мени"]}}},{l:"sv",t:{"Collapse menu":{v:["Dölj menyn"]},"Open menu":{v:["Öppna menyn"]}}},{l:"tr",t:{"Collapse menu":{v:["Menüyü daralt"]},"Open menu":{v:["Menüyü aç"]}}},{l:"uk",t:{"Collapse menu":{v:["Згорнути меню"]},"Open menu":{v:["Відкрити меню"]}}},{l:"uz",t:{"Collapse menu":{v:["Menyuni yig‘ish"]},"Open menu":{v:["Menyuni oching"]}}},{l:"zh-CN",t:{"Collapse menu":{v:["收起菜单"]},"Open menu":{v:["打开菜单"]}}},{l:"zh-HK",t:{"Collapse menu":{v:["折疊選單"]},"Open menu":{v:["開啟選單"]}}},{l:"zh-TW",t:{"Collapse menu":{v:["折疊選單"]},"Open menu":{v:["開啟選單"]}}}],XE=[{l:"ar",t:{"Edit item":{v:["تعديل عنصر"]}}},{l:"ast",t:{"Edit item":{v:["Editar l'elementu"]}}},{l:"br",t:{}},{l:"ca",t:{"Edit item":{v:["Edita l'element"]}}},{l:"cs",t:{"Edit item":{v:["Upravit položku"]}}},{l:"cs-CZ",t:{"Edit item":{v:["Upravit položku"]}}},{l:"da",t:{"Edit item":{v:["Rediger emne"]}}},{l:"de",t:{"Edit item":{v:["Element bearbeiten"]}}},{l:"de-DE",t:{"Edit item":{v:["Element bearbeiten"]}}},{l:"el",t:{"Edit item":{v:["Επεξεργασία αντικειμένου"]}}},{l:"en-GB",t:{"Edit item":{v:["Edit item"]}}},{l:"eo",t:{}},{l:"es",t:{"Edit item":{v:["Editar elemento"]}}},{l:"es-AR",t:{"Edit item":{v:["Editar elemento"]}}},{l:"es-EC",t:{"Edit item":{v:["Editar elemento"]}}},{l:"es-MX",t:{"Edit item":{v:["Editar elemento"]}}},{l:"et-EE",t:{"Edit item":{v:["Muuda objekti"]}}},{l:"eu",t:{"Edit item":{v:["Editatu elementua"]}}},{l:"fa",t:{"Edit item":{v:["ویرایش مورد"]}}},{l:"fi",t:{"Edit item":{v:["Muokkaa kohdetta"]}}},{l:"fr",t:{"Edit item":{v:["Éditer l'élément"]}}},{l:"ga",t:{"Edit item":{v:["Cuir mír in eagar"]}}},{l:"gl",t:{"Edit item":{v:["Editar o elemento"]}}},{l:"he",t:{"Edit item":{v:["עריכת פריט"]}}},{l:"hr",t:{"Edit item":{v:["Uredi stavku"]}}},{l:"hu",t:{"Edit item":{v:["Elem szerkesztése"]}}},{l:"id",t:{"Edit item":{v:["Edit item"]}}},{l:"is",t:{"Edit item":{v:["Breyta atriði"]}}},{l:"it",t:{"Edit item":{v:["Modifica l'elemento"]}}},{l:"ja",t:{"Edit item":{v:["編集"]}}},{l:"ja-JP",t:{"Edit item":{v:["編集"]}}},{l:"ko",t:{"Edit item":{v:["항목 수정"]}}},{l:"lo",t:{"Edit item":{v:["ແກ້ໄຂລາຍການ"]}}},{l:"lt-LT",t:{"Edit item":{v:["Taisyti elementą"]}}},{l:"lv",t:{}},{l:"mk",t:{"Edit item":{v:["Уреди"]}}},{l:"mn",t:{"Edit item":{v:["Зүйлийг засварлах"]}}},{l:"my",t:{}},{l:"nb",t:{"Edit item":{v:["Rediger"]}}},{l:"nl",t:{"Edit item":{v:["Item bewerken"]}}},{l:"oc",t:{}},{l:"pl",t:{"Edit item":{v:["Edytuj element"]}}},{l:"pt-BR",t:{"Edit item":{v:["Editar item"]}}},{l:"pt-PT",t:{"Edit item":{v:["Editar item"]}}},{l:"ro",t:{"Edit item":{v:["Editați elementul"]}}},{l:"ru",t:{"Edit item":{v:["Изменить элемент"]}}},{l:"sk",t:{"Edit item":{v:["Upraviť položku"]}}},{l:"sl",t:{"Edit item":{v:["Uredi predmet"]}}},{l:"sr",t:{"Edit item":{v:["Уреди ставку"]}}},{l:"sv",t:{"Edit item":{v:["Redigera objekt"]}}},{l:"tr",t:{"Edit item":{v:["Ögeyi düzenle"]}}},{l:"uk",t:{"Edit item":{v:["Редагувати елемент"]}}},{l:"uz",t:{"Edit item":{v:["Elementni tahrirlash"]}}},{l:"zh-CN",t:{"Edit item":{v:["编辑项目"]}}},{l:"zh-HK",t:{"Edit item":{v:["編輯項目"]}}},{l:"zh-TW",t:{"Edit item":{v:["編輯項目"]}}}],ZE=[{l:"ar",t:{"Go back to the list":{v:["عودة إلى القائمة"]}}},{l:"ast",t:{"Go back to the list":{v:["Volver a la llista"]}}},{l:"br",t:{}},{l:"ca",t:{"Go back to the list":{v:["Torna a la llista"]}}},{l:"cs",t:{"Go back to the list":{v:["Jít zpět na seznam"]}}},{l:"cs-CZ",t:{"Go back to the list":{v:["Jít zpět na seznam"]}}},{l:"da",t:{"Go back to the list":{v:["Tilbage til listen"]}}},{l:"de",t:{"Go back to the list":{v:["Zurück zur Liste"]}}},{l:"de-DE",t:{"Go back to the list":{v:["Zurück zur Liste"]}}},{l:"el",t:{"Go back to the list":{v:["Επιστροφή στην αρχική λίστα"]}}},{l:"en-GB",t:{"Go back to the list":{v:["Go back to the list"]}}},{l:"eo",t:{}},{l:"es",t:{"Go back to the list":{v:["Volver a la lista"]}}},{l:"es-AR",t:{"Go back to the list":{v:["Volver a la lista"]}}},{l:"es-EC",t:{"Go back to the list":{v:["Volver a la lista"]}}},{l:"es-MX",t:{"Go back to the list":{v:["Regresar a la lista"]}}},{l:"et-EE",t:{"Go back to the list":{v:["Tagasi nimekirja juurde"]}}},{l:"eu",t:{"Go back to the list":{v:["Bueltatu zerrendara"]}}},{l:"fa",t:{"Go back to the list":{v:["برگشت به لیست"]}}},{l:"fi",t:{"Go back to the list":{v:["Takaisin listaan"]}}},{l:"fr",t:{"Go back to the list":{v:["Retourner à la liste"]}}},{l:"ga",t:{"Go back to the list":{v:["Téigh ar ais go dtí an liosta"]}}},{l:"gl",t:{"Go back to the list":{v:["Volver á lista"]}}},{l:"he",t:{"Go back to the list":{v:["חזרה לרשימה"]}}},{l:"hr",t:{"Go back to the list":{v:["Vrati se na popis"]}}},{l:"hu",t:{"Go back to the list":{v:["Ugrás vissza a listához"]}}},{l:"id",t:{"Go back to the list":{v:["Kembali ke daftar"]}}},{l:"is",t:{"Go back to the list":{v:["Fara til baka í listann"]}}},{l:"it",t:{"Go back to the list":{v:["Torna all'elenco"]}}},{l:"ja",t:{"Go back to the list":{v:["リストに戻る"]}}},{l:"ja-JP",t:{"Go back to the list":{v:["リストに戻る"]}}},{l:"ko",t:{"Go back to the list":{v:["목록으로 돌아가기"]}}},{l:"lo",t:{"Go back to the list":{v:["ກັບໄປທີ່ລາຍການ"]}}},{l:"lt-LT",t:{"Go back to the list":{v:["Grįžti į sąrašą"]}}},{l:"lv",t:{}},{l:"mk",t:{"Go back to the list":{v:["Врати се на листата"]}}},{l:"mn",t:{"Go back to the list":{v:["Жагсаалт руу буцах"]}}},{l:"my",t:{}},{l:"nb",t:{"Go back to the list":{v:["Gå tilbake til listen"]}}},{l:"nl",t:{"Go back to the list":{v:["Ga terug naar de lijst"]}}},{l:"oc",t:{}},{l:"pl",t:{"Go back to the list":{v:["Powrót do listy"]}}},{l:"pt-BR",t:{"Go back to the list":{v:["Voltar para a lista"]}}},{l:"pt-PT",t:{"Go back to the list":{v:["Voltar para a lista"]}}},{l:"ro",t:{"Go back to the list":{v:["Întoarceți-vă la listă"]}}},{l:"ru",t:{"Go back to the list":{v:["Вернуться к списку"]}}},{l:"sk",t:{"Go back to the list":{v:["Späť na zoznam"]}}},{l:"sl",t:{"Go back to the list":{v:["Vrni se na seznam"]}}},{l:"sr",t:{"Go back to the list":{v:["Назад на листу"]}}},{l:"sv",t:{"Go back to the list":{v:["Gå tillbaka till listan"]}}},{l:"tr",t:{"Go back to the list":{v:["Listeye dön"]}}},{l:"uk",t:{"Go back to the list":{v:["Повернутися до списку"]}}},{l:"uz",t:{"Go back to the list":{v:["Ro'yxatga qayting"]}}},{l:"zh-CN",t:{"Go back to the list":{v:["返回至列表"]}}},{l:"zh-HK",t:{"Go back to the list":{v:["返回清單"]}}},{l:"zh-TW",t:{"Go back to the list":{v:["回到清單"]}}}],YE=[{l:"ar",t:{"Keyboard navigation help":{v:["مساعدة في التنقل باستعمال لوحة المفاتيح"]},"Skip to app navigation":{v:["تجاوَز إلى التنقل في التطبيق"]},"Skip to main content":{v:["تجاوَز إلى المحتوى الرئيسي"]}}},{l:"ast",t:{"Keyboard navigation help":{v:["Ayuda de la navegación pente'l tecláu"]},"Skip to app navigation":{v:["Dir a la navegación d'aplicaciones"]},"Skip to main content":{v:["Dir al conteníu principal"]}}},{l:"br",t:{}},{l:"ca",t:{}},{l:"cs",t:{"Keyboard navigation help":{v:["Nápověda pro pohyb pomocí klávesnice"]},"Skip to app navigation":{v:["Přeskočit na navigaci aplikace"]},"Skip to main content":{v:["Přeskočit na hlavní obsah"]}}},{l:"cs-CZ",t:{"Keyboard navigation help":{v:["Nápověda pro pohyb pomocí klávesnice"]},"Skip to app navigation":{v:["Přeskočit na navigaci aplikace"]},"Skip to main content":{v:["Přeskočit na hlavní obsah"]}}},{l:"da",t:{"Keyboard navigation help":{v:["Hjælp til tastaturnavigation"]},"Skip to app navigation":{v:["Spring til app navigation"]},"Skip to main content":{v:["Spring til hovedindhold"]}}},{l:"de",t:{"Keyboard navigation help":{v:["Tastatur-Navigationshilfe"]},"Skip to app navigation":{v:["Zur App-Navigation springen"]},"Skip to main content":{v:["Zum Hauptinhalt springen"]}}},{l:"de-DE",t:{"Keyboard navigation help":{v:["Tastatur-Navigationshilfe"]},"Skip to app navigation":{v:["Zur App-Navigation springen"]},"Skip to main content":{v:["Zum Hauptinhalt springen"]}}},{l:"el",t:{"Keyboard navigation help":{v:["Βοήθεια πλοήγησης με πληκτρολόγιο"]},"Skip to app navigation":{v:["Μετάβαση στην πλοήγηση της εφαρμογής"]},"Skip to main content":{v:["Μετάβαση στο κύριο περιεχόμενο"]}}},{l:"en-GB",t:{"Keyboard navigation help":{v:["Keyboard navigation help"]},"Skip to app navigation":{v:["Skip to app navigation"]},"Skip to main content":{v:["Skip to main content"]}}},{l:"eo",t:{}},{l:"es",t:{"Keyboard navigation help":{v:["Ayuda de navegación del teclado"]},"Skip to app navigation":{v:["Saltar a la navegación de apps"]},"Skip to main content":{v:["Saltar al contenido principal"]}}},{l:"es-AR",t:{"Keyboard navigation help":{v:["Ayuda de navegación del teclado"]},"Skip to app navigation":{v:["Saltar a la navegación de app"]},"Skip to main content":{v:["Saltar al contenido principal"]}}},{l:"es-EC",t:{}},{l:"es-MX",t:{"Keyboard navigation help":{v:["Ayuda de navegación del teclado"]},"Skip to app navigation":{v:["Saltar a la navegación de app"]},"Skip to main content":{v:["Saltar al contenido principal"]}}},{l:"et-EE",t:{"Keyboard navigation help":{v:["Klahvistiku kasutuse abiteave"]},"Skip to app navigation":{v:["Suundu rakenduses liikumise valikute juurde"]},"Skip to main content":{v:["Suundu põhisisu juurde"]}}},{l:"eu",t:{}},{l:"fa",t:{"Keyboard navigation help":{v:["راهنمای ناوبری صفحه کلید"]},"Skip to app navigation":{v:["رفتن به پیمایش برنامه"]},"Skip to main content":{v:["رفتن به محتوای اصلی"]}}},{l:"fi",t:{"Keyboard navigation help":{v:["Näppäimistönavigoinnin ohje"]},"Skip to app navigation":{v:["Siirry sovelluksen navigaatioon"]},"Skip to main content":{v:["Siirry pääsisältöön"]}}},{l:"fr",t:{"Keyboard navigation help":{v:["Aide à la navigation du clavier"]},"Skip to app navigation":{v:["Passer à l'app navigation"]},"Skip to main content":{v:["Passer au contenu principal"]}}},{l:"ga",t:{"Keyboard navigation help":{v:["Cabhair le nascleanúint méarchláir"]},"Skip to app navigation":{v:["Téigh ar aghaidh chuig nascleanúint aip"]},"Skip to main content":{v:["Téigh ar aghaidh chuig an bpríomhábhar"]}}},{l:"gl",t:{"Keyboard navigation help":{v:["Axuda á navegación co teclado"]},"Skip to app navigation":{v:["Ir á navegación da aplicación"]},"Skip to main content":{v:["Ir ao contido principal"]}}},{l:"he",t:{}},{l:"hr",t:{"Keyboard navigation help":{v:["Pomoć za navigaciju tipkovnicom"]},"Skip to app navigation":{v:["Preskoči na navigaciju aplikacije"]},"Skip to main content":{v:["Preskoči na glavni sadržaj"]}}},{l:"hu",t:{"Keyboard navigation help":{v:["Billentyűzetes navigáció súgója"]},"Skip to app navigation":{v:["Ugrás az alkalmazásnavigációhoz"]},"Skip to main content":{v:["Ugrás a fő tartalomhoz"]}}},{l:"id",t:{"Keyboard navigation help":{v:["Bantuan navigasi keyboard"]},"Skip to app navigation":{v:["Lewati ke navigasi aplikasi"]},"Skip to main content":{v:["Lewati ke konten utama"]}}},{l:"is",t:{"Keyboard navigation help":{v:["Aðstoð við rötun á lyklaborði"]},"Skip to app navigation":{v:["Sleppa og fara í flakk innan forrits"]},"Skip to main content":{v:["Sleppa og fara í meginefni"]}}},{l:"it",t:{}},{l:"ja",t:{"Keyboard navigation help":{v:["キーボード・ナビゲーション・ヘルプ"]},"Skip to app navigation":{v:["アプリのナビゲーションへ移動"]},"Skip to main content":{v:["メインコンテンツへ移動"]}}},{l:"ja-JP",t:{"Keyboard navigation help":{v:["キーボード・ナビゲーション・ヘルプ"]},"Skip to app navigation":{v:["アプリのナビゲーションへ移動"]},"Skip to main content":{v:["メインコンテンツへ移動"]}}},{l:"ko",t:{"Keyboard navigation help":{v:["키보드 탐색 도움말"]},"Skip to app navigation":{v:["앱 탐색으로 건너뛰기"]},"Skip to main content":{v:["본 내용으로 건너뛰기"]}}},{l:"lo",t:{"Keyboard navigation help":{v:["ການຊ່ວຍເຫຼືອການນຳທາງດ້ວຍຄີບອດ"]},"Skip to app navigation":{v:["ຂ້າມໄປທີ່ການນຳທາງຂອງແອັບ"]},"Skip to main content":{v:["ຂ້າມໄປທີ່ເນື້ອຫາຫຼັກ"]}}},{l:"lt-LT",t:{"Keyboard navigation help":{v:["Klaviatūros navigacijos pagalba"]},"Skip to app navigation":{v:["Pereiti prie programėlės naršymo"]},"Skip to main content":{v:["Pereiti prie pagrindinio turinio"]}}},{l:"lv",t:{}},{l:"mk",t:{"Keyboard navigation help":{v:["Навигација со тастатура"]},"Skip to app navigation":{v:["Прескокни на навигација на апликацијата"]},"Skip to main content":{v:["Прескокни на главна содржина"]}}},{l:"mn",t:{"Keyboard navigation help":{v:["Гарын навигацийн тусламж"]},"Skip to app navigation":{v:["Аппын навигаци руу алгасах"]},"Skip to main content":{v:["Үндсэн агуулга руу алгасах"]}}},{l:"my",t:{}},{l:"nb",t:{"Keyboard navigation help":{v:["Hjelp for tastaturnavigering"]},"Skip to app navigation":{v:["Hopp til appnavigering"]},"Skip to main content":{v:["Hopp til hovedinnhold"]}}},{l:"nl",t:{"Keyboard navigation help":{v:["Hulp voor toetsenbordnavigatie"]},"Skip to app navigation":{v:["Doorgaan naar app-navigatie"]},"Skip to main content":{v:["Naar hoofdinhoud gaan"]}}},{l:"oc",t:{}},{l:"pl",t:{"Keyboard navigation help":{v:["Pomoc w nawigacji za pomocą klawiatury"]},"Skip to app navigation":{v:["Przewiń do nawigacji"]},"Skip to main content":{v:["Przewiń do głównych treści"]}}},{l:"pt-BR",t:{"Keyboard navigation help":{v:["Ajuda para navegação pelo teclado"]},"Skip to app navigation":{v:["Ir para navegação de aplicativo"]},"Skip to main content":{v:["Ir para conteúdo principal"]}}},{l:"pt-PT",t:{"Keyboard navigation help":{v:["Ajuda à navegação no teclado"]},"Skip to app navigation":{v:["Saltar para navegação da app"]},"Skip to main content":{v:["Saltar para conteúdo principal"]}}},{l:"ro",t:{}},{l:"ru",t:{"Keyboard navigation help":{v:["Справка по навигации с помощью клавиатуры"]},"Skip to app navigation":{v:["Перейти к навигации по приложению"]},"Skip to main content":{v:["Перейти к основному содержанию"]}}},{l:"sk",t:{"Keyboard navigation help":{v:["Pomoc pri navigácii pomocou klávesnice"]},"Skip to app navigation":{v:["Preskočiť na navigáciu v aplikácii"]},"Skip to main content":{v:["Preskočiť na hlavný obsah"]}}},{l:"sl",t:{}},{l:"sr",t:{"Keyboard navigation help":{v:["Помоћ за навигацију тастатуром"]},"Skip to app navigation":{v:["Прескочи на навигацију апликацијом"]},"Skip to main content":{v:["Прескочи на главни садржај"]}}},{l:"sv",t:{"Keyboard navigation help":{v:["Hjälp med tangentbordsnavigering"]},"Skip to app navigation":{v:["Hoppa till appnavigering"]},"Skip to main content":{v:["Hoppa till huvudinnehåll"]}}},{l:"tr",t:{"Keyboard navigation help":{v:["Klavye ile gezinme yardımı"]},"Skip to app navigation":{v:["Uygulama gezinmesine git"]},"Skip to main content":{v:["Ana içeriğe git"]}}},{l:"uk",t:{"Keyboard navigation help":{v:["Допомога з навігацією клавішами"]},"Skip to app navigation":{v:["Пропустити навігацію по застосунках"]},"Skip to main content":{v:["Перейти одразу до головного вмісту"]}}},{l:"uz",t:{"Keyboard navigation help":{v:["Klaviatura navigatsiyasi yordami"]},"Skip to app navigation":{v:["Ilova navigatsiyasiga oʻtish"]},"Skip to main content":{v:["Asosiy tarkibga o'tish"]}}},{l:"zh-CN",t:{"Keyboard navigation help":{v:["键盘导航栏帮助"]},"Skip to app navigation":{v:["跳转至应用程序导航页"]},"Skip to main content":{v:["跳转至主要内容"]}}},{l:"zh-HK",t:{"Keyboard navigation help":{v:["鍵盤導航幫助"]},"Skip to app navigation":{v:["跳至應用程式導航"]},"Skip to main content":{v:["跳至主要內容"]}}},{l:"zh-TW",t:{"Keyboard navigation help":{v:["鍵盤導航說明"]},"Skip to app navigation":{v:["略過應用程式導覽"]},"Skip to main content":{v:["跳至主要內容"]}}}],JE=[{l:"ar",t:{"Loading …":{v:["التحميل جارٍ ..."]}}},{l:"ast",t:{}},{l:"br",t:{}},{l:"ca",t:{}},{l:"cs",t:{"Loading …":{v:["Načítání …"]}}},{l:"cs-CZ",t:{}},{l:"da",t:{"Loading …":{v:["Indlæser ..."]}}},{l:"de",t:{"Loading …":{v:["Wird geladen …"]}}},{l:"de-DE",t:{"Loading …":{v:["Wird geladen …"]}}},{l:"el",t:{"Loading …":{v:["Φόρτωση  …"]}}},{l:"en-GB",t:{"Loading …":{v:["Loading …"]}}},{l:"eo",t:{}},{l:"es",t:{}},{l:"es-AR",t:{}},{l:"es-EC",t:{}},{l:"es-MX",t:{}},{l:"et-EE",t:{"Loading …":{v:["Laadin…"]}}},{l:"eu",t:{}},{l:"fa",t:{"Loading …":{v:["در حال بارگذاری ..."]}}},{l:"fi",t:{"Loading …":{v:["Ladataan ..."]}}},{l:"fr",t:{"Loading …":{v:["Chargement..."]}}},{l:"ga",t:{"Loading …":{v:["Ag lódáil …"]}}},{l:"gl",t:{"Loading …":{v:["Cargando…"]}}},{l:"he",t:{}},{l:"hr",t:{"Loading …":{v:["Učitavanje …"]}}},{l:"hu",t:{"Loading …":{v:["Betöltés…"]}}},{l:"id",t:{"Loading …":{v:["Memuat …"]}}},{l:"is",t:{"Loading …":{v:["Hleð inn …"]}}},{l:"it",t:{}},{l:"ja",t:{"Loading …":{v:["読み込み中 …"]}}},{l:"ja-JP",t:{}},{l:"ko",t:{"Loading …":{v:["로딩 중 ..."]}}},{l:"lo",t:{"Loading …":{v:["ກຳລັງໂຫຼດ…"]}}},{l:"lt-LT",t:{"Loading …":{v:["Įkeliama …"]}}},{l:"lv",t:{}},{l:"mk",t:{"Loading …":{v:["Вчитување …"]}}},{l:"mn",t:{"Loading …":{v:["Ачаалж байна …"]}}},{l:"my",t:{}},{l:"nb",t:{"Loading …":{v:["Laster inn..."]}}},{l:"nl",t:{"Loading …":{v:["Laden …"]}}},{l:"oc",t:{}},{l:"pl",t:{"Loading …":{v:["Wczytywanie…"]}}},{l:"pt-BR",t:{"Loading …":{v:["Carregando …"]}}},{l:"pt-PT",t:{"Loading …":{v:["A carregar..."]}}},{l:"ro",t:{}},{l:"ru",t:{"Loading …":{v:["Загрузка …"]}}},{l:"sk",t:{"Loading …":{v:["Nahrávam ..."]}}},{l:"sl",t:{}},{l:"sr",t:{"Loading …":{v:["Учитава се…"]}}},{l:"sv",t:{"Loading …":{v:["Laddar …"]}}},{l:"tr",t:{"Loading …":{v:["Yükleniyor…"]}}},{l:"uk",t:{"Loading …":{v:["Завантаження …"]}}},{l:"uz",t:{"Loading …":{v:["Yuklanmoqda..."]}}},{l:"zh-CN",t:{"Loading …":{v:["加载中..."]}}},{l:"zh-HK",t:{"Loading …":{v:["加載中 …"]}}},{l:"zh-TW",t:{"Loading …":{v:["載入中......"]}}}],QE=[{l:"ar",t:{Next:{v:["التالي"]},"Pause slideshow":{v:["تجميد عرض الشرائح"]},Previous:{v:["السابق"]},"Start slideshow":{v:["إبدإ العرض"]}}},{l:"ast",t:{Next:{v:["Siguiente"]},"Pause slideshow":{v:["Posar la presentación de diapositives"]},Previous:{v:["Anterior"]},"Start slideshow":{v:["Aniciar la presentación de diapositives"]}}},{l:"br",t:{Next:{v:["Da heul"]},"Pause slideshow":{v:["Arsav an diaporama"]},Previous:{v:["A-raok"]},"Start slideshow":{v:["Kregiñ an diaporama"]}}},{l:"ca",t:{Next:{v:["Següent"]},"Pause slideshow":{v:["Atura la presentació"]},Previous:{v:["Anterior"]},"Start slideshow":{v:["Inicia la presentació"]}}},{l:"cs",t:{Next:{v:["Následující"]},"Pause slideshow":{v:["Pozastavit prezentaci"]},Previous:{v:["Předchozí"]},"Start slideshow":{v:["Spustit prezentaci"]}}},{l:"cs-CZ",t:{Next:{v:["Následující"]},"Pause slideshow":{v:["Pozastavit prezentaci"]},Previous:{v:["Předchozí"]},"Start slideshow":{v:["Spustit prezentaci"]}}},{l:"da",t:{Next:{v:["Videre"]},"Pause slideshow":{v:["Suspender fremvisning"]},Previous:{v:["Forrige"]},"Start slideshow":{v:["Start fremvisning"]}}},{l:"de",t:{Next:{v:["Weiter"]},"Pause slideshow":{v:["Diashow pausieren"]},Previous:{v:["Vorherige"]},"Start slideshow":{v:["Diashow starten"]}}},{l:"de-DE",t:{Next:{v:["Weiter"]},"Pause slideshow":{v:["Diashow pausieren"]},Previous:{v:["Vorherige"]},"Start slideshow":{v:["Diashow starten"]}}},{l:"el",t:{Next:{v:["Επόμενο"]},"Pause slideshow":{v:["Παύση προβολής διαφανειών"]},Previous:{v:["Προηγούμενο"]},"Start slideshow":{v:["Έναρξη προβολής διαφανειών"]}}},{l:"en-GB",t:{Next:{v:["Next"]},"Pause slideshow":{v:["Pause slideshow"]},Previous:{v:["Previous"]},"Start slideshow":{v:["Start slideshow"]}}},{l:"eo",t:{Next:{v:["Sekva"]},"Pause slideshow":{v:["Payzi bildprezenton"]},Previous:{v:["Antaŭa"]},"Start slideshow":{v:["Komenci bildprezenton"]}}},{l:"es",t:{Next:{v:["Siguiente"]},"Pause slideshow":{v:["Pausar la presentación "]},Previous:{v:["Anterior"]},"Start slideshow":{v:["Iniciar la presentación"]}}},{l:"es-AR",t:{Next:{v:["Siguiente"]},"Pause slideshow":{v:["Pausar la presentación "]},Previous:{v:["Anterior"]},"Start slideshow":{v:["Iniciar la presentación"]}}},{l:"es-EC",t:{Next:{v:["Siguiente"]},"Pause slideshow":{v:["Pausar presentación de diapositivas"]},Previous:{v:["Anterior"]},"Start slideshow":{v:["Iniciar presentación de diapositivas"]}}},{l:"es-MX",t:{Next:{v:["Siguiente"]},"Pause slideshow":{v:["Pausar presentación de diapositivas"]},Previous:{v:["Anterior"]},"Start slideshow":{v:["Iniciar presentación de diapositivas"]}}},{l:"et-EE",t:{Next:{v:["Edasi"]},"Pause slideshow":{v:["Slaidiesitluse paus"]},Previous:{v:["Eelmine"]},"Start slideshow":{v:["Alusta slaidiesitust"]}}},{l:"eu",t:{Next:{v:["Hurrengoa"]},"Pause slideshow":{v:["Pausatu diaporama"]},Previous:{v:["Aurrekoa"]},"Start slideshow":{v:["Hasi diaporama"]}}},{l:"fa",t:{Next:{v:["بعدی"]},"Pause slideshow":{v:["توقف نمایش اسلاید"]},Previous:{v:["قبلی"]},"Start slideshow":{v:["شروع نمایش اسلاید"]}}},{l:"fi",t:{Next:{v:["Seuraava"]},"Pause slideshow":{v:["Keskeytä diaesitys"]},Previous:{v:["Edellinen"]},"Start slideshow":{v:["Aloita diaesitys"]}}},{l:"fr",t:{Next:{v:["Suivant"]},"Pause slideshow":{v:["Mettre le diaporama en pause"]},Previous:{v:["Précédent"]},"Start slideshow":{v:["Démarrer le diaporama"]}}},{l:"ga",t:{Next:{v:["Ar aghaidh"]},"Pause slideshow":{v:["Cuir taispeántas sleamhnán ar sos"]},Previous:{v:["Roimhe Seo"]},"Start slideshow":{v:["Tosaigh taispeántas sleamhnán"]}}},{l:"gl",t:{Next:{v:["Seguinte"]},"Pause slideshow":{v:["Pausar o diaporama"]},Previous:{v:["Anterir"]},"Start slideshow":{v:["Iniciar o diaporama"]}}},{l:"he",t:{Next:{v:["הבא"]},"Pause slideshow":{v:["השהיית מצגת"]},Previous:{v:["הקודם"]},"Start slideshow":{v:["התחלת המצגת"]}}},{l:"hr",t:{Next:{v:["Sljedeće"]},"Pause slideshow":{v:["Pauziraj dijaprojekciju"]},Previous:{v:["Prethodno"]},"Start slideshow":{v:["Pokreni dijaprojekciju"]}}},{l:"hu",t:{Next:{v:["Következő"]},"Pause slideshow":{v:["Diavetítés szüneteltetése"]},Previous:{v:["Előző"]},"Start slideshow":{v:["Diavetítés indítása"]}}},{l:"id",t:{Next:{v:["Selanjutnya"]},"Pause slideshow":{v:["Jeda tayangan slide"]},Previous:{v:["Sebelumnya"]},"Start slideshow":{v:["Mulai salindia"]}}},{l:"is",t:{Next:{v:["Næsta"]},"Pause slideshow":{v:["Gera hlé á skyggnusýningu"]},Previous:{v:["Fyrri"]},"Start slideshow":{v:["Byrja skyggnusýningu"]}}},{l:"it",t:{Next:{v:["Successivo"]},"Pause slideshow":{v:["Presentazione in pausa"]},Previous:{v:["Precedente"]},"Start slideshow":{v:["Avvia presentazione"]}}},{l:"ja",t:{Next:{v:["次"]},"Pause slideshow":{v:["スライドショーを一時停止"]},Previous:{v:["前"]},"Start slideshow":{v:["スライドショーを開始"]}}},{l:"ja-JP",t:{Next:{v:["次"]},"Pause slideshow":{v:["スライドショーを一時停止"]},Previous:{v:["前"]},"Start slideshow":{v:["スライドショーを開始"]}}},{l:"ko",t:{Next:{v:["다음"]},"Pause slideshow":{v:["슬라이드쇼 일시정지"]},Previous:{v:["이전"]},"Start slideshow":{v:["슬라이드쇼 시작"]}}},{l:"lo",t:{Next:{v:["ຕໍ່ໄປ"]},"Pause slideshow":{v:["ຢຸດສະໄລ້ໂຊຊົ່ວຄາວ"]},Previous:{v:["ກ່ອນໜ້າ"]},"Start slideshow":{v:["ເລີ່ມສະໄລ້ໂຊ"]}}},{l:"lt-LT",t:{Next:{v:["Kitas"]},"Pause slideshow":{v:["Pristabdyti skaidrių rodymą"]},Previous:{v:["Ankstesnis"]},"Start slideshow":{v:["Pradėti skaidrių rodymą"]}}},{l:"lv",t:{Next:{v:["Nākamais"]},"Pause slideshow":{v:["Pauzēt slaidrādi"]},Previous:{v:["Iepriekšējais"]},"Start slideshow":{v:["Sākt slaidrādi"]}}},{l:"mk",t:{Next:{v:["Следно"]},"Pause slideshow":{v:["Пузирај слајдшоу"]},Previous:{v:["Предходно"]},"Start slideshow":{v:["Стартувај слајдшоу"]}}},{l:"mn",t:{Next:{v:["Дараах"]},"Pause slideshow":{v:["Слайд шоуг түр зогсоох"]},Previous:{v:["Өмнөх"]},"Start slideshow":{v:["Слайд шоуг эхлүүлэх"]}}},{l:"my",t:{Next:{v:["နောက်သို့ဆက်ရန်"]},"Pause slideshow":{v:["စလိုက်ရှိုး ခေတ္တရပ်ရန်"]},Previous:{v:["ယခင်"]},"Start slideshow":{v:["စလိုက်ရှိုးအား စတင်ရန်"]}}},{l:"nb",t:{Next:{v:["Neste"]},"Pause slideshow":{v:["Pause lysbildefremvisning"]},Previous:{v:["Forrige"]},"Start slideshow":{v:["Start lysbildefremvisning"]}}},{l:"nl",t:{Next:{v:["Volgende"]},"Pause slideshow":{v:["Diavoorstelling pauzeren"]},Previous:{v:["Vorige"]},"Start slideshow":{v:["Diavoorstelling starten"]}}},{l:"oc",t:{Next:{v:["Seguent"]},"Pause slideshow":{v:["Metre en pausa lo diaporama"]},Previous:{v:["Precedent"]},"Start slideshow":{v:["Lançar lo diaporama"]}}},{l:"pl",t:{Next:{v:["Następny"]},"Pause slideshow":{v:["Wstrzymaj pokaz slajdów"]},Previous:{v:["Poprzedni"]},"Start slideshow":{v:["Rozpocznij pokaz slajdów"]}}},{l:"pt-BR",t:{Next:{v:["Próximo"]},"Pause slideshow":{v:["Pausar apresentação de slides"]},Previous:{v:["Anterior"]},"Start slideshow":{v:["Iniciar apresentação de slides"]}}},{l:"pt-PT",t:{Next:{v:["Seguinte"]},"Pause slideshow":{v:["Pausar diaporama"]},Previous:{v:["Anterior"]},"Start slideshow":{v:["Iniciar diaporama"]}}},{l:"ro",t:{Next:{v:["Următorul"]},"Pause slideshow":{v:["Pauză prezentare de diapozitive"]},Previous:{v:["Anterior"]},"Start slideshow":{v:["Începeți prezentarea de diapozitive"]}}},{l:"ru",t:{Next:{v:["Следующее"]},"Pause slideshow":{v:["Приостановить показ слйдов"]},Previous:{v:["Предыдущее"]},"Start slideshow":{v:["Начать показ слайдов"]}}},{l:"sk",t:{Next:{v:["Ďalej"]},"Pause slideshow":{v:["Pozastaviť prezentáciu"]},Previous:{v:["Predchádzajúce"]},"Start slideshow":{v:["Začať prezentáciu"]}}},{l:"sl",t:{Next:{v:["Naslednji"]},"Pause slideshow":{v:["Ustavi predstavitev"]},Previous:{v:["Predhodni"]},"Start slideshow":{v:["Začni predstavitev"]}}},{l:"sr",t:{Next:{v:["Следеће"]},"Pause slideshow":{v:["Паузирај слајд шоу"]},Previous:{v:["Претходно"]},"Start slideshow":{v:["Покрени слајд шоу"]}}},{l:"sv",t:{Next:{v:["Nästa"]},"Pause slideshow":{v:["Pausa bildspelet"]},Previous:{v:["Föregående"]},"Start slideshow":{v:["Starta bildspelet"]}}},{l:"tr",t:{Next:{v:["Sonraki"]},"Pause slideshow":{v:["Slayt sunumunu duraklat"]},Previous:{v:["Önceki"]},"Start slideshow":{v:["Slayt sunumunu başlat"]}}},{l:"uk",t:{Next:{v:["Вперед"]},"Pause slideshow":{v:["Пауза у показі слайдів"]},Previous:{v:["Назад"]},"Start slideshow":{v:["Почати показ слайдів"]}}},{l:"uz",t:{Next:{v:["Keyingi"]},"Pause slideshow":{v:["Slayd-shouni to'xtatib turish"]},Previous:{v:["Oldingi"]},"Start slideshow":{v:["Slayd-shouni boshlash"]}}},{l:"zh-CN",t:{Next:{v:["下一个"]},"Pause slideshow":{v:["暂停幻灯片"]},Previous:{v:["上一个"]},"Start slideshow":{v:["开始幻灯片"]}}},{l:"zh-HK",t:{Next:{v:["下一個"]},"Pause slideshow":{v:["暫停幻燈片"]},Previous:{v:["上一個"]},"Start slideshow":{v:["開始幻燈片"]}}},{l:"zh-TW",t:{Next:{v:["下一個"]},"Pause slideshow":{v:["暫停幻燈片"]},Previous:{v:["上一個"]},"Start slideshow":{v:["開始幻燈片"]}}}],ew=[{l:"ar",t:{}},{l:"ast",t:{}},{l:"br",t:{}},{l:"ca",t:{}},{l:"cs",t:{"Search …":{v:["Hledat …"]}}},{l:"cs-CZ",t:{}},{l:"da",t:{"Search …":{v:["Søg ..."]}}},{l:"de",t:{"Search …":{v:["Suche …"]}}},{l:"de-DE",t:{"Search …":{v:["Suche …"]}}},{l:"el",t:{"Search …":{v:["Αναζήτηση …"]}}},{l:"en-GB",t:{"Search …":{v:["Search …"]}}},{l:"eo",t:{}},{l:"es",t:{}},{l:"es-AR",t:{}},{l:"es-EC",t:{}},{l:"es-MX",t:{}},{l:"et-EE",t:{"Search …":{v:["Otsi…"]}}},{l:"eu",t:{}},{l:"fa",t:{}},{l:"fi",t:{}},{l:"fr",t:{"Search …":{v:["Rechercher…"]}}},{l:"ga",t:{"Search …":{v:["Cuardaigh …"]}}},{l:"gl",t:{"Search …":{v:["Buscar…"]}}},{l:"he",t:{}},{l:"hr",t:{"Search …":{v:["Traži …"]}}},{l:"hu",t:{"Search …":{v:["Keresés…"]}}},{l:"id",t:{"Search …":{v:["Cari …"]}}},{l:"is",t:{}},{l:"it",t:{}},{l:"ja",t:{"Search …":{v:["検索…"]}}},{l:"ja-JP",t:{}},{l:"ko",t:{"Search …":{v:["찾는 중 ..."]}}},{l:"lo",t:{"Search …":{v:["ຄົ້ນຫາ…"]}}},{l:"lt-LT",t:{"Search …":{v:["Ieškoti …"]}}},{l:"lv",t:{}},{l:"mk",t:{"Search …":{v:["Барај…"]}}},{l:"mn",t:{"Search …":{v:["Хайх …"]}}},{l:"my",t:{}},{l:"nb",t:{}},{l:"nl",t:{"Search …":{v:["Zoeken …"]}}},{l:"oc",t:{}},{l:"pl",t:{}},{l:"pt-BR",t:{"Search …":{v:["Pesquisar …"]}}},{l:"pt-PT",t:{}},{l:"ro",t:{}},{l:"ru",t:{"Search …":{v:["Поиск …"]}}},{l:"sk",t:{}},{l:"sl",t:{}},{l:"sr",t:{"Search …":{v:["Претражи…"]}}},{l:"sv",t:{"Search …":{v:["Sök …"]}}},{l:"tr",t:{"Search …":{v:["Ara…"]}}},{l:"uk",t:{}},{l:"uz",t:{"Search …":{v:["Izlash..."]}}},{l:"zh-CN",t:{}},{l:"zh-HK",t:{"Search …":{v:["搜尋 …"]}}},{l:"zh-TW",t:{"Search …":{v:["搜尋......"]}}}],nm=[{l:"ar",t:{"Undo changes":{v:["تراجَع عن التغييرات"]}}},{l:"ast",t:{"Undo changes":{v:["Desfacer los cambeos"]}}},{l:"br",t:{}},{l:"ca",t:{"Undo changes":{v:["Desfés els canvis"]}}},{l:"cs",t:{"Undo changes":{v:["Vzít změny zpět"]}}},{l:"cs-CZ",t:{"Undo changes":{v:["Vzít změny zpět"]}}},{l:"da",t:{"Undo changes":{v:["Fortryd ændringer"]}}},{l:"de",t:{"Undo changes":{v:["Änderungen rückgängig machen"]}}},{l:"de-DE",t:{"Undo changes":{v:["Änderungen rückgängig machen"]}}},{l:"el",t:{"Undo changes":{v:["Αναίρεση Αλλαγών"]}}},{l:"en-GB",t:{"Undo changes":{v:["Undo changes"]}}},{l:"eo",t:{}},{l:"es",t:{"Undo changes":{v:["Deshacer cambios"]}}},{l:"es-AR",t:{"Undo changes":{v:["Deshacer cambios"]}}},{l:"es-EC",t:{"Undo changes":{v:["Deshacer cambios"]}}},{l:"es-MX",t:{"Undo changes":{v:["Deshacer cambios"]}}},{l:"et-EE",t:{"Undo changes":{v:["Pööra muudatused tagasi"]}}},{l:"eu",t:{"Undo changes":{v:["Aldaketak desegin"]}}},{l:"fa",t:{"Undo changes":{v:["لغو تغییرات"]}}},{l:"fi",t:{"Undo changes":{v:["Kumoa muutokset"]}}},{l:"fr",t:{"Undo changes":{v:["Annuler les changements"]}}},{l:"ga",t:{"Undo changes":{v:["Cealaigh athruithe"]}}},{l:"gl",t:{"Undo changes":{v:["Desfacer os cambios"]}}},{l:"he",t:{"Undo changes":{v:["ביטול שינויים"]}}},{l:"hr",t:{"Undo changes":{v:["Poništi promjene"]}}},{l:"hu",t:{"Undo changes":{v:["Változtatások visszavonása"]}}},{l:"id",t:{"Undo changes":{v:["Urungkan perubahan"]}}},{l:"is",t:{"Undo changes":{v:["Afturkalla breytingar"]}}},{l:"it",t:{"Undo changes":{v:["Cancella i cambiamenti"]}}},{l:"ja",t:{"Undo changes":{v:["変更を取り消し"]}}},{l:"ja-JP",t:{"Undo changes":{v:["変更を取り消し"]}}},{l:"ko",t:{"Undo changes":{v:["변경 되돌리기"]}}},{l:"lo",t:{"Undo changes":{v:["ຍ້ອນຄືນການປ່ຽນແປງ"]}}},{l:"lt-LT",t:{"Undo changes":{v:["Atšaukti pakeitimus"]}}},{l:"lv",t:{}},{l:"mk",t:{"Undo changes":{v:["Врати ги промените"]}}},{l:"mn",t:{"Undo changes":{v:["Өөрчлөлтийг буцаах"]}}},{l:"my",t:{}},{l:"nb",t:{"Undo changes":{v:["Tilbakestill endringer"]}}},{l:"nl",t:{"Undo changes":{v:["Wijzigingen ongedaan maken"]}}},{l:"oc",t:{}},{l:"pl",t:{"Undo changes":{v:["Cofnij zmiany"]}}},{l:"pt-BR",t:{"Undo changes":{v:["Desfazer modificações"]}}},{l:"pt-PT",t:{"Undo changes":{v:["Anular alterações"]}}},{l:"ro",t:{"Undo changes":{v:["Anularea modificărilor"]}}},{l:"ru",t:{"Undo changes":{v:["Отменить изменения"]}}},{l:"sk",t:{"Undo changes":{v:["Vrátiť zmeny"]}}},{l:"sl",t:{"Undo changes":{v:["Razveljavi spremembe"]}}},{l:"sr",t:{"Undo changes":{v:["Поништи измене"]}}},{l:"sv",t:{"Undo changes":{v:["Ångra ändringar"]}}},{l:"tr",t:{"Undo changes":{v:["Değişiklikleri geri al"]}}},{l:"uk",t:{"Undo changes":{v:["Скасувати зміни"]}}},{l:"uz",t:{"Undo changes":{v:["O'zgarishlarni bekor qilish"]}}},{l:"zh-CN",t:{"Undo changes":{v:["撤销更改"]}}},{l:"zh-HK",t:{"Undo changes":{v:["取消更改"]}}},{l:"zh-TW",t:{"Undo changes":{v:["還原變更"]}}}],[tw]=window.OC?.config?.version?.split(".")??[],rm=Number.parseInt(tw??"34"),Kl=rm<32,po=rm<34,nw=Symbol.for("NcFormBox:context");function rw(){return rt(nw,{isInFormBox:!1,formBoxItemClass:void 0})}const He=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},ow={class:"button-vue__wrapper"},sw={class:"button-vue__icon"},aw={class:"button-vue__text"},iw=We({__name:"NcButton",props:{alignment:{default:"center"},ariaLabel:{default:void 0},disabled:{type:Boolean},download:{type:[String,Boolean],default:void 0},href:{default:void 0},pressed:{type:Boolean,default:void 0},size:{default:"normal"},target:{default:"_self"},text:{default:void 0},to:{default:void 0},type:{default:"button"},variant:{default:"secondary"},wide:{type:Boolean}},emits:["click","update:pressed"],setup(e,{emit:t}){const n=e,r=t,{formBoxItemClass:o}=rw(),s=rt(ha,null)!==null,a=se(()=>s&&n.to?"RouterLink":n.href?"a":"button"),i=se(()=>a.value==="button"&&typeof n.pressed=="boolean"),u=se(()=>n.pressed?"primary":n.pressed===!1&&n.variant==="primary"?"secondary":n.variant),c=se(()=>u.value.startsWith("tertiary")),l=se(()=>n.alignment.split("-")[0]),d=se(()=>n.alignment.includes("-")),p=rt("NcPopover:trigger:attrs",()=>({}),!1),h=se(()=>p()),g=se(()=>{if(a.value==="RouterLink")return{to:n.to,activeClass:"active"};if(a.value==="a")return{href:n.href||"#",target:n.target,rel:"nofollow noreferrer noopener",download:n.download||void 0};if(a.value==="button")return{...h.value,"aria-pressed":n.pressed,type:n.type,disabled:n.disabled}});function f(m){i.value&&r("update:pressed",!n.pressed),r("click",m)}return(m,y)=>($(),me(la(a.value),ft({class:["button-vue",[`button-vue--size-${m.size}`,{[`button-vue--${u.value}`]:u.value,"button-vue--tertiary":c.value,"button-vue--wide":m.wide,[`button-vue--${l.value}`]:l.value!=="center","button-vue--reverse":d.value,"button-vue--legacy":z(Kl),"button-vue--legacy34":z(po)},z(o)]],"aria-label":m.ariaLabel},g.value,{onClick:f}),{default:pe(()=>[ue("span",ow,[ue("span",sw,[ye(m.$slots,"icon",{},void 0,!0)]),ue("span",aw,[ye(m.$slots,"default",{},()=>[wt(xe(m.text),1)],!0)])])]),_:3},16,["class","aria-label"]))}}),Qe=He(iw,[["__scopeId","data-v-18f6cf03"]]),uw=["aria-hidden","aria-label"],lw={key:0,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},cw=["d"],dw=["innerHTML"],pw=We({__name:"NcIconSvgWrapper",props:{directional:{type:Boolean},inline:{type:Boolean},svg:{default:""},name:{default:void 0},path:{default:""},size:{default:20}},setup(e){fg(o=>({fb515064:n.value}));const t=e,n=se(()=>typeof t.size=="number"?`${t.size}px`:t.size),r=se(()=>{if(!t.svg||t.path)return;const o=qg.sanitize(t.svg),s=new DOMParser().parseFromString(o,"image/svg+xml");return s.querySelector("parsererror")?"":(s.documentElement.id&&s.documentElement.removeAttribute("id"),s.documentElement.outerHTML)});return(o,s)=>($(),X("span",{"aria-hidden":o.name?void 0:"true","aria-label":o.name||void 0,class:Be(["icon-vue",{"icon-vue--directional":o.directional,"icon-vue--inline":o.inline}]),role:"img"},[r.value?($(),X("span",{key:1,innerHTML:r.value},null,8,dw)):($(),X("svg",lw,[ue("path",{d:o.path},null,8,cw)]))],10,uw))}}),Ve=He(pw,[["__scopeId","data-v-aaedb1c3"]]);var ut=(e=>(e[e.Debug=0]="Debug",e[e.Info=1]="Info",e[e.Warn=2]="Warn",e[e.Error=3]="Error",e[e.Fatal=4]="Fatal",e))(ut||{});class hw{context;constructor(t){this.context=t||{}}formatMessage(t,n,r){let o="["+ut[n].toUpperCase()+"] ";return r&&r.app&&(o+=r.app+": "),typeof t=="string"?o+t:(o+=`Unexpected ${t.name}`,t.message&&(o+=` "${t.message}"`),n===ut.Debug&&t.stack&&(o+=` Stack trace: -${t.stack}`),o)}log(t,n,r){if(!(typeof this.context?.level=="number"&&t{document.readyState==="complete"||document.readyState==="interactive"?(t.context.level=window._oc_config?.loglevel??ut.Warn,window._oc_debug&&(t.context.level=ut.Debug),document.removeEventListener("readystatechange",n)):document.addEventListener("readystatechange",n)};return n(),this}build(){return this.context.level===void 0&&this.detectLogLevel(),this.factory(this.context)}}function rm(){return new pw(dw)}const $o=rm().detectUser().setApp("@nextcloud/vue").build();function hw(e){let t=!1,n;return(...r)=>(t||(t=!0,n=e(...r)),n)}let om="missing-app-name";try{om=p1}catch{$o.error("The `@nextcloud/vue` library was used without setting / replacing the `appName`.")}const fw=om;let gw="";try{gw=h1}catch{$o.error("The `@nextcloud/vue` library was used without setting / replacing the `appVersion`.")}function sm(){return rt("appName",fw)}const mw=hw(()=>{const e=Ho("core","apps",[]),t=sm();return e.find(({id:n})=>n===t)?.name??t}),Js=nE();gn(qE);const vw=We({__name:"NcAppContentDetailsToggle",setup(e){const t=fa();et(t,n),Sn(()=>{n(t.value)}),ua(()=>{t.value&&n(!1)});function n(r=!0){const o=document.querySelector(".app-navigation .app-navigation-toggle");o&&(o.style.display=r?"none":"",r===!0&&Ar("toggle-navigation",{open:!1}))}return(r,o)=>($(),ge(j(Qe),{"aria-label":j(Ie)("Go back to the list"),class:Be(["app-details-toggle",{"app-details-toggle--mobile":j(t)}]),title:j(Ie)("Go back to the list"),variant:"tertiary"},{icon:pe(()=>[le(j(Ve),{directional:"",path:j(Zg)},null,8,["path"])]),_:1},8,["aria-label","class","title"]))}}),yw=He(vw,[["__scopeId","data-v-a28923a1"]]),sh=Ig("nextcloud").persist().build(),bw=aE().theming?.name??"Nextcloud",Ew={name:"NcAppContent",components:{NcAppContentDetailsToggle:yw,Pane:kE,Splitpanes:SE},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:sm(),localizedAppName:mw(),isMobile:fa(),isRtl:Js}},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 $o.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 t of this.pageTitle.split(" - "))e.add(t);else if(this.pageHeading){for(const t of this.pageHeading.split(" - "))e.add(t);e.size>0&&e.add(this.localizedAppName)}else return null;return e.add(bw),[...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=Xg(this.$el,{onSwipeEnd:this.handleSwipe})),this.restorePaneConfig()},methods:{handleSwipe(e,t){Math.abs(this.swiping.lengthX)>70&&(this.swiping.coordsStart.x<300/2&&t==="right"?Ar("toggle-navigation",{open:!0}):this.swiping.coordsStart.x<300*1.5&&t==="left"&&Ar("toggle-navigation",{open:!1}))},handlePaneResize(e){const t=parseInt(e.panes[0].size,10);sh.setItem(this.paneConfigID,JSON.stringify(t)),this.listPaneSize=t,this.$emit("resizeList",{size:t}),$o.debug("[NcAppContent] pane config",{listPaneSize:t})},restorePaneConfig(){const e=parseInt(sh.getItem(this.paneConfigID),10);if(!isNaN(e)&&e!==this.listPaneSize)return $o.debug("[NcAppContent] pane config",{listPaneSize:e}),this.listPaneSize=e,e},hideDetails(){this.$emit("update:showDetails",!1)}}},ww={key:0,class:"hidden-visually"},Cw={class:"app-content-wrapper__list"},xw={key:1,class:"app-content-wrapper"};function Aw(e,t,n,r,o,s){const a=Ye("NcAppContentDetailsToggle"),i=Ye("Pane"),u=Ye("Splitpanes");return $(),X("main",{id:"app-content-vue",class:Be(["app-content no-snapper",{"app-content--has-list":!!e.$slots.list}])},[n.pageHeading?($(),X("h1",ww,xe(n.pageHeading),1)):he("",!0),e.$slots.list?($(),X(Ze,{key:1},[r.isMobile||n.layout==="no-split"?($(),X("div",{key:0,class:Be(["app-content-wrapper app-content-wrapper--no-split",{"app-content-wrapper--show-details":n.showDetails,"app-content-wrapper--show-list":!n.showDetails,"app-content-wrapper--mobile":r.isMobile}])},[n.showDetails?($(),ge(a,{key:0,onClick:bn(s.hideDetails,["stop","prevent"])},null,8,["onClick"])):he("",!0),Rn(ue("div",Cw,[ye(e.$slots,"list",{},void 0,!0)],512),[[er,!n.showDetails]]),n.showDetails?ye(e.$slots,"default",{key:1},void 0,!0):he("",!0)],2)):n.layout==="vertical-split"||n.layout==="horizontal-split"?($(),X("div",xw,[le(u,{horizontal:n.layout==="horizontal-split",class:Be(["default-theme",{"splitpanes--horizontal":n.layout==="horizontal-split","splitpanes--vertical":n.layout==="vertical-split"}]),rtl:r.isRtl,onResized:s.handlePaneResize},{default:pe(()=>[le(i,{class:"splitpanes__pane-list",size:o.listPaneSize||s.paneDefaults.list.size,minSize:s.paneDefaults.list.min,maxSize:s.paneDefaults.list.max},{default:pe(()=>[ye(e.$slots,"list",{},void 0,!0)]),_:3},8,["size","minSize","maxSize"]),le(i,{class:"splitpanes__pane-details",size:s.detailsPaneSize,minSize:s.paneDefaults.details.min,maxSize:s.paneDefaults.details.max},{default:pe(()=>[ye(e.$slots,"default",{},void 0,!0)]),_:3},8,["size","minSize","maxSize"])]),_:3},8,["horizontal","class","rtl","onResized"])])):he("",!0)],64)):he("",!0),e.$slots.list?he("",!0):ye(e.$slots,"default",{key:2},void 0,!0)],2)}const _w=He(Ew,[["render",Aw],["__scopeId","data-v-ea1e6879"]]);var am=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],gi=am.join(","),im=typeof Element>"u",oo=im?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,mi=!im&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},vi=function(e,t){var n;t===void 0&&(t=!0);var r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),o=r===""||r==="true",s=o||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):vi(e.parentNode));return s},Sw=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},um=function(e,t,n){if(vi(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(gi));return t&&oo.call(e,gi)&&r.unshift(e),r=r.filter(n),r},yi=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var s=o.shift();if(!vi(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),i=a.length?a:s.children,u=yi(i,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:s,candidates:u})}else{var c=oo.call(s,gi);c&&n.filter(s)&&(t||!e.includes(s))&&r.push(s);var l=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),d=!vi(l,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(l&&d){var p=yi(l===!0?s.children:l.children,!0,n);n.flatten?r.push.apply(r,p):r.push({scopeParent:s,candidates:p})}else o.unshift.apply(o,s.children)}}return r},lm=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Xr=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Sw(e))&&!lm(e)?0:e.tabIndex},kw=function(e,t){var n=Xr(e);return n<0&&t&&!lm(e)?0:n},Tw=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},cm=function(e){return e.tagName==="INPUT"},Ow=function(e){return cm(e)&&e.type==="hidden"},Dw=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},Nw=function(e,t){for(var n=0;nsummary:first-of-type"),a=s?e.parentElement:e;if(oo.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof r=="function"){for(var i=e;e;){var u=e.parentElement,c=mi(e);if(u&&!u.shadowRoot&&r(u)===!0)return ah(e);e.assignedSlot?e=e.assignedSlot:!u&&c!==e.ownerDocument?e=c.host:e=u}e=i}if(Rw(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return ah(e);return!1},Fw=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n=0)},dm=function(e){var t=[],n=[];return e.forEach(function(r,o){var s=!!r.scopeParent,a=s?r.scopeParent:r,i=kw(a,s),u=s?dm(r.candidates):a;i===0?s?t.push.apply(t,u):t.push(a):n.push({documentOrder:o,tabIndex:i,item:r,isScope:s,content:u})}),n.sort(Tw).reduce(function(r,o){return o.isScope?r.push.apply(r,o.content):r.push(o.content),r},[]).concat(t)},Mw=function(e,t){t=t||{};var n;return t.getShadowRoot?n=yi([e],t.includeContainer,{filter:Wl.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Iw}):n=um(e,t.includeContainer,Wl.bind(null,t)),dm(n)},jw=function(e,t){t=t||{};var n;return t.getShadowRoot?n=yi([e],t.includeContainer,{filter:bi.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=um(e,t.includeContainer,bi.bind(null,t)),n},bo=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return oo.call(e,gi)===!1?!1:Wl(t,e)},zw=am.concat("iframe:not([inert]):not([inert] *)").join(","),Xu=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return oo.call(e,zw)===!1?!1:bi(t,e)};function ql(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,a=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return a=u.done,u},e:function(u){i=!0,s=u},f:function(){try{a||n.return==null||n.return()}finally{if(i)throw s}}}}function Vw(e,t,n){return(t=Kw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hw(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gw(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function lh(e){for(var t=1;t0?e[e.length-1]:null},activateTrap:function(e,t){var n=Jn.getActiveTrap(e);t!==n&&Jn.pauseTrap(e);var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),Jn.unpauseTrap(e)},pauseTrap:function(e){var t=Jn.getActiveTrap(e);t?._setPausedState(!0)},unpauseTrap:function(e){var t=Jn.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},Xw=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Zw=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},Ps=function(e){return e?.key==="Tab"||e?.keyCode===9},Yw=function(e){return Ps(e)&&!e.shiftKey},Jw=function(e){return Ps(e)&&e.shiftKey},ch=function(e){return setTimeout(e,0)},ls=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:{},G=S.hasFallback,ne=G===void 0?!1:G,Q=S.params,Y=Q===void 0?[]:Q,ee=o[O];if(typeof ee=="function"&&(ee=ee.apply(void 0,Ww(Y))),ee===!0&&(ee=void 0),!ee){if(ee===void 0||ee===!1)return ee;throw new Error("`".concat(O,"` was specified but was not a node, or did not return a node"))}var J=ee;if(typeof ee=="string"){try{J=n.querySelector(ee)}catch(te){throw new Error("`".concat(O,'` appears to be an invalid selector; error="').concat(te.message,'"'))}if(!J&&!ne)throw new Error("`".concat(O,"` as selector refers to no known node"))}return J},l=function(O){var S=O.activeElement;return S?S.shadowRoot&&S.shadowRoot.activeElement!==null?l(S.shadowRoot):S:null},d=function(){var O=c("initialFocus",{hasFallback:!0});if(O===!1)return!1;if(O===void 0||O&&!Xu(O,o.tabbableOptions)){var S=l(n);if(u(S)>=0)O=S;else{var G=s.tabbableGroups[0],ne=G&&G.firstTabbableNode;O=ne||c("fallbackFocus")}}else O===null&&(O=c("fallbackFocus"));if(!O)throw new Error("Your focus-trap needs to have at least one focusable element");return O},p=function(){if(s.containerGroups=s.containers.map(function(O){var S=Mw(O,o.tabbableOptions),G=jw(O,o.tabbableOptions),ne=S.length>0?S[0]:void 0,Q=S.length>0?S[S.length-1]:void 0,Y=G.find(function(te){return bo(te)}),ee=G.slice().reverse().find(function(te){return bo(te)}),J=!!S.find(function(te){return Xr(te)>0});return{container:O,tabbableNodes:S,focusableNodes:G,posTabIndexesFound:J,firstTabbableNode:ne,lastTabbableNode:Q,firstDomTabbableNode:Y,lastDomTabbableNode:ee,nextTabbableNode:function(te){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,me=S.indexOf(te);return me<0?re?G.slice(G.indexOf(te)+1).find(function(_e){return bo(_e)}):G.slice(0,G.indexOf(te)).reverse().find(function(_e){return bo(_e)}):S[me+(re?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(O){return O.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(O){return O.posTabIndexesFound})&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},h=function(O){if(O!==!1&&O!==l(document)){if(!O||!O.focus){h(d());return}O.focus({preventScroll:!!o.preventScroll}),s.mostRecentlyFocusedNode=O,Xw(O)&&O.select()}},g=function(O){var S=c("setReturnFocus",{params:[O]});return S||(S===!1?!1:O)},f=function(O){var S=O.target,G=O.event,ne=O.isBackward,Q=ne===void 0?!1:ne;S=S||$a(G),p();var Y=null;if(s.tabbableGroups.length>0){var ee=u(S,G),J=ee>=0?s.containerGroups[ee]:void 0;if(ee<0)Q?Y=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:Y=s.tabbableGroups[0].firstTabbableNode;else if(Q){var te=s.tabbableGroups.findIndex(function(Fe){var A=Fe.firstTabbableNode;return S===A});if(te<0&&(J.container===S||Xu(S,o.tabbableOptions)&&!bo(S,o.tabbableOptions)&&!J.nextTabbableNode(S,!1))&&(te=ee),te>=0){var re=te===0?s.tabbableGroups.length-1:te-1,me=s.tabbableGroups[re];Y=Xr(S)>=0?me.lastTabbableNode:me.lastDomTabbableNode}else Ps(G)||(Y=J.nextTabbableNode(S,!1))}else{var _e=s.tabbableGroups.findIndex(function(Fe){var A=Fe.lastTabbableNode;return S===A});if(_e<0&&(J.container===S||Xu(S,o.tabbableOptions)&&!bo(S,o.tabbableOptions)&&!J.nextTabbableNode(S))&&(_e=ee),_e>=0){var we=_e===s.tabbableGroups.length-1?0:_e+1,Se=s.tabbableGroups[we];Y=Xr(S)>=0?Se.firstTabbableNode:Se.firstDomTabbableNode}else Ps(G)||(Y=J.nextTabbableNode(S))}}else Y=c("fallbackFocus");return Y},m=function(O){var S=$a(O);if(!(u(S,O)>=0)){if(ls(o.clickOutsideDeactivates,O)){a.deactivate({returnFocus:o.returnFocusOnDeactivate});return}ls(o.allowOutsideClick,O)||O.preventDefault()}},y=function(O){var S=$a(O),G=u(S,O)>=0;if(G||S instanceof Document)G&&(s.mostRecentlyFocusedNode=S);else{O.stopImmediatePropagation();var ne,Q=!0;if(s.mostRecentlyFocusedNode)if(Xr(s.mostRecentlyFocusedNode)>0){var Y=u(s.mostRecentlyFocusedNode),ee=s.containerGroups[Y].tabbableNodes;if(ee.length>0){var J=ee.findIndex(function(te){return te===s.mostRecentlyFocusedNode});J>=0&&(o.isKeyForward(s.recentNavEvent)?J+1=0&&(ne=ee[J-1],Q=!1))}}else s.containerGroups.some(function(te){return te.tabbableNodes.some(function(re){return Xr(re)>0})})||(Q=!1);else Q=!1;Q&&(ne=f({target:s.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(s.recentNavEvent)})),h(ne||s.mostRecentlyFocusedNode||d())}s.recentNavEvent=void 0},v=function(O){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=O;var G=f({event:O,isBackward:S});G&&(Ps(O)&&O.preventDefault(),h(G))},E=function(O){(o.isKeyForward(O)||o.isKeyBackward(O))&&v(O,o.isKeyBackward(O))},C=function(O){Zw(O)&&ls(o.escapeDeactivates,O)!==!1&&(O.preventDefault(),a.deactivate())},_=function(O){var S=$a(O);u(S,O)>=0||ls(o.clickOutsideDeactivates,O)||ls(o.allowOutsideClick,O)||(O.preventDefault(),O.stopImmediatePropagation())},D=function(){if(s.active){Jn.activateTrap(r,a);var O;return o.delayInitialFocus?O=new Promise(function(S){s.delayInitialFocusTimer=ch(function(){h(d()),S()})}):h(d()),n.addEventListener("focusin",y,!0),n.addEventListener("mousedown",m,{capture:!0,passive:!1}),n.addEventListener("touchstart",m,{capture:!0,passive:!1}),n.addEventListener("click",_,{capture:!0,passive:!1}),n.addEventListener("keydown",E,{capture:!0,passive:!1}),n.addEventListener("keydown",C),O}},R=function(O){s.active&&!s.paused&&a._setSubtreeIsolation(!1),s.adjacentElements.clear(),s.alreadySilent.clear();var S=new Set,G=new Set,ne=ih(O),Q;try{for(ne.s();!(Q=ne.n()).done;){var Y=Q.value;S.add(Y);for(var ee=typeof ShadowRoot<"u"&&Y.getRootNode()instanceof ShadowRoot,J=Y;J;){S.add(J);var te=J.parentElement,re=[];te?re=te.children:!te&&ee&&(re=J.getRootNode().children,te=J.getRootNode().host,ee=typeof ShadowRoot<"u"&&te.getRootNode()instanceof ShadowRoot);var me=ih(re),_e;try{for(me.s();!(_e=me.n()).done;){var we=_e.value;G.add(we)}}catch(Se){me.e(Se)}finally{me.f()}J=te}}}catch(Se){ne.e(Se)}finally{ne.f()}S.forEach(function(Se){G.delete(Se)}),s.adjacentElements=G},Z=function(){if(s.active)return n.removeEventListener("focusin",y,!0),n.removeEventListener("mousedown",m,!0),n.removeEventListener("touchstart",m,!0),n.removeEventListener("click",_,!0),n.removeEventListener("keydown",E,!0),n.removeEventListener("keydown",C),a},I=function(O){var S=s.mostRecentlyFocusedNode;if(S){var G=O.some(function(Q){var Y=Array.from(Q.removedNodes);return Y.some(function(ee){return ee===S||typeof ee.contains=="function"&&ee.contains(S)})});if(G&&s.containers.some(function(Q){return Q?.isConnected})){p();var ne=d();h(ne)}}},P=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(I):void 0,oe=function(){P&&(P.disconnect(),s.active&&!s.paused&&s.containers.map(function(O){P.observe(O,{subtree:!0,childList:!0})}))};return a={get active(){return s.active},get paused(){return s.paused},activate:function(O){if(s.active)return this;var S=i(O,"onActivate"),G=i(O,"onPostActivate"),ne=i(O,"checkCanFocusTrap"),Q=Jn.getActiveTrap(r),Y=!1;if(Q&&!Q.paused){var ee;(ee=Q._setSubtreeIsolation)===null||ee===void 0||ee.call(Q,!1),Y=!0}try{ne||p(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=l(n),S?.({trap:a});var J=function(){ne&&p();var re=function(){a._setSubtreeIsolation(!0),oe(),G?.({trap:a})},me=D();me?me.then(re):re()};if(ne)return ne(s.containers.concat()).then(J,J),this;J()}catch(re){if(Q===Jn.getActiveTrap(r)&&Y){var te;(te=Q._setSubtreeIsolation)===null||te===void 0||te.call(Q,!0)}throw re}return this},deactivate:function(O){if(!s.active)return this;var S=lh({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},O);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,s.paused||a._setSubtreeIsolation(!1),s.alreadySilent.clear(),Z(),s.active=!1,s.paused=!1,oe(),Jn.deactivateTrap(r,a);var G=i(S,"onDeactivate"),ne=i(S,"onPostDeactivate"),Q=i(S,"checkCanReturnFocus"),Y=i(S,"delayReturnFocus"),ee=i(S,"returnFocus","returnFocusOnDeactivate");G?.({trap:a});var J=function(){ee&&h(g(s.nodeFocusedBeforeActivation)),ne?.({trap:a})},te=function(){Y&&ee?ch(J):J()};return ee&&Q?(Q(g(s.nodeFocusedBeforeActivation)).then(te,te),this):(te(),this)},pause:function(O){return s.active?(s.manuallyPaused=!0,this._setPausedState(!0,O)):this},unpause:function(O){return s.active?(s.manuallyPaused=!1,r[r.length-1]!==this?this:this._setPausedState(!1,O)):this},updateContainerElements:function(O){var S=[].concat(O).filter(Boolean);return s.containers=S.map(function(G){return typeof G=="string"?n.querySelector(G):G}),o.isolateSubtrees&&R(s.containers),s.active&&(p(),s.paused||a._setSubtreeIsolation(!0)),oe(),this}},Object.defineProperties(a,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(O,S){if(s.paused===O)return this;if(s.paused=O,O){var G=i(S,"onPause"),ne=i(S,"onPostPause");G?.({trap:a}),Z(),a._setSubtreeIsolation(!1),oe(),ne?.({trap:a})}else{var Q=i(S,"onUnpause"),Y=i(S,"onPostUnpause");Q?.({trap:a});var ee=function(){p();var J=function(){a._setSubtreeIsolation(!0),oe(),Y?.({trap:a})},te=D();te?te.then(J):J()};ee()}return this}},_setSubtreeIsolation:{value:function(O){o.isolateSubtrees&&s.adjacentElements.forEach(function(S){var G;O?o.isolateSubtrees==="aria-hidden"?((S.ariaHidden==="true"||((G=S.getAttribute("aria-hidden"))===null||G===void 0?void 0:G.toLowerCase())==="true")&&s.alreadySilent.add(S),S.setAttribute("aria-hidden","true")):((S.inert||S.hasAttribute("inert"))&&s.alreadySilent.add(S),S.setAttribute("inert",!0)):s.alreadySilent.has(S)||(o.isolateSubtrees==="aria-hidden"?S.removeAttribute("aria-hidden"):S.removeAttribute("inert"))})}}}),a.updateContainerElements(e),a};const e2={name:"NcAppNavigationList"},t2={class:"app-navigation-list"};function n2(e,t,n,r,o,s){return $(),X("ul",t2,[ye(e.$slots,"default",{},void 0,!0)])}const r2=He(e2,[["render",n2],["__scopeId","data-v-d72957ed"]]);function zo(){return window._nc_focus_trap??=[],window._nc_focus_trap}function o2(){let e=[];return{pause(){e=[...zo()];for(const t of e)t.pause()},unpause(){if(e.length===zo().length)for(const t of e)t.unpause();e=[]}}}const hm=Symbol.for("NcContent:setHasAppNavigation"),s2=Symbol.for("NcContent:selector");gn(HE);const a2={class:"app-navigation-toggle-wrapper"},i2=We({__name:"NcAppNavigationToggle",props:{open:{type:Boolean,required:!0},openModifiers:{}},emits:["update:open"],setup(e){const t=Vo(e,"open"),n=se(()=>t.value?Ie("Close navigation"):Ie("Open navigation"));return(r,o)=>($(),X("div",a2,[le(j(Qe),{class:"app-navigation-toggle","aria-controls":"app-navigation-vue","aria-expanded":t.value?"true":"false","aria-label":n.value,title:n.value,variant:"tertiary",onClick:o[0]||(o[0]=s=>t.value=!t.value)},{icon:pe(()=>[le(Ve,{path:t.value?j(DE):j(OE)},null,8,["path"])]),_:1},8,["aria-expanded","aria-label","title"])]))}}),u2=He(i2,[["__scopeId","data-v-5a15295d"]]),l2=["aria-hidden","aria-label","aria-labelledby","inert"],c2={class:"app-navigation__search"},d2=We({__name:"NcAppNavigation",props:{ariaLabel:{},ariaLabelledby:{}},setup(e){const t=e;let n;const r=rt(hm,()=>p4(),!1),o=ro("appNavigationContainer"),s=fa(),a=Ae(!s.value);Gi(()=>{!t.ariaLabel&&t.ariaLabelledby}),et(s,()=>{a.value=!s.value}),et(a,()=>{c()}),Sn(()=>{r(!0),Pc("toggle-navigation",u),Ar("navigation-toggled",{open:a.value}),n=Rc(o.value,{allowOutsideClick:!0,clickOutsideDeactivates:()=>(s.value&&(n.deactivate({returnFocus:!1}),i(!1)),!1),fallbackFocus:o.value,trapStack:zo(),escapeDeactivates:!1}),c()}),ur(()=>{r(!1),Fg("toggle-navigation",u),n.deactivate()});function i(d){if(a.value===d){Ar("navigation-toggled",{open:a.value});return}a.value=d===void 0?!a.value:d;const p=getComputedStyle(document.body),h=parseInt(p.getPropertyValue("--animation-quick"))||100;setTimeout(()=>{Ar("navigation-toggled",{open:a.value})},1.5*h)}function u({open:d}){return i(d)}function c(){s.value&&a.value?n.activate():n.deactivate()}function l(){s.value&&i(!1)}return(d,p)=>($(),X("div",{ref:"appNavigationContainer",class:Be(["app-navigation",{"app-navigation--closed":!a.value,"app-navigation--legacy":j(uo)}])},[ue("nav",{id:"app-navigation-vue","aria-hidden":a.value?"false":"true","aria-label":d.ariaLabel||void 0,"aria-labelledby":d.ariaLabelledby||void 0,class:"app-navigation__content",inert:!a.value||void 0,onKeydown:pa(l,["esc"])},[ue("div",c2,[ye(d.$slots,"search",{},void 0,!0)]),ue("div",{class:Be(["app-navigation__body",{"app-navigation__body--no-list":!d.$slots.list}])},[ye(d.$slots,"default",{},void 0,!0)],2),d.$slots.list?($(),ge(r2,{key:0,class:"app-navigation__list"},{default:pe(()=>[ye(d.$slots,"list",{},void 0,!0)]),_:3})):he("",!0),ye(d.$slots,"footer",{},void 0,!0)],40,l2),le(u2,{open:a.value,"onUpdate:open":i},null,8,["open"])],2))}}),p2=He(d2,[["__scopeId","data-v-3b634fbd"]]),h2={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},f2=["aria-hidden","aria-label"],g2=["fill","width","height"],m2={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},v2={key:0};function y2(e,t,n,r,o,s){return $(),X("span",ft(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:t[0]||(t[0]=a=>e.$emit("click",a))}),[($(),X("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[ue("path",m2,[n.title?($(),X("title",v2,xe(n.title),1)):he("",!0)])],8,g2))],16,f2)}const b2=He(h2,[["render",y2]]),E2={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},w2=["aria-hidden","aria-label"],C2=["fill","width","height"],x2={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},A2={key:0};function _2(e,t,n,r,o,s){return $(),X("span",ft(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon chevron-up-icon",role:"img",onClick:t[0]||(t[0]=a=>e.$emit("click",a))}),[($(),X("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[ue("path",x2,[n.title?($(),X("title",A2,xe(n.title),1)):he("",!0)])],8,C2))],16,w2)}const S2=He(E2,[["render",_2]]),k2={name:"ArrowRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},T2=["aria-hidden","aria-label"],O2=["fill","width","height"],D2={d:"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z"},N2={key:0};function P2(e,t,n,r,o,s){return $(),X("span",ft(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon arrow-right-icon",role:"img",onClick:t[0]||(t[0]=a=>e.$emit("click",a))}),[($(),X("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[ue("path",D2,[n.title?($(),X("title",N2,xe(n.title),1)):he("",!0)])],8,O2))],16,T2)}const B2=He(k2,[["render",P2]]),$2={name:"CloseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},R2=["aria-hidden","aria-label"],L2=["fill","width","height"],F2={d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"},I2={key:0};function M2(e,t,n,r,o,s){return $(),X("span",ft(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon close-icon",role:"img",onClick:t[0]||(t[0]=a=>e.$emit("click",a))}),[($(),X("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[ue("path",F2,[n.title?($(),X("title",I2,xe(n.title),1)):he("",!0)])],8,L2))],16,R2)}const fm=He($2,[["render",M2]]);gn(jE);const j2={name:"NcInputConfirmCancel",components:{IconArrowRight:B2,IconClose:fm,NcButton:Qe},setup(){return{isLegacy34:uo}},props:{primary:{default:!1,type:Boolean},placeholder:{default:"",type:String},modelValue:{default:"",type:String}},emits:["cancel","confirm","update:modelValue"],data(){return{labelConfirm:Ie("Confirm changes"),labelCancel:Ie("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()}}},z2=["placeholder"];function U2(e,t,n,r,o,s){const a=Ye("IconArrowRight"),i=Ye("NcButton"),u=Ye("IconClose");return $(),X("div",{class:Be(["app-navigation-input-confirm",{"app-navigation-input-confirm--legacy":r.isLegacy34}])},[ue("form",{onSubmit:t[1]||(t[1]=bn((...c)=>s.confirm&&s.confirm(...c),["prevent"])),onKeydown:t[2]||(t[2]=pa(bn((...c)=>s.cancel&&s.cancel(...c),["exact","stop","prevent"]),["esc"])),onClick:t[3]||(t[3]=bn(()=>{},["stop","prevent"]))},[Rn(ue("input",{ref:"input","onUpdate:modelValue":t[0]||(t[0]=c=>s.valueModel=c),type:"text",class:"app-navigation-input-confirm__input",placeholder:n.placeholder},null,8,z2),[[M4,s.valueModel]]),le(i,{"aria-label":o.labelConfirm,type:"submit",variant:"primary",onClick:bn(s.confirm,["stop","prevent"])},{icon:pe(()=>[le(a,{size:20})]),_:1},8,["aria-label","onClick"]),le(i,{"aria-label":o.labelCancel,type:"reset",variant:n.primary?"primary":"tertiary",onClick:bn(s.cancel,["stop","prevent"])},{icon:pe(()=>[le(u,{size:20})]),_:1},8,["aria-label","variant","onClick"])],32)],2)}const V2=He(j2,[["render",U2],["__scopeId","data-v-a8724c7f"]]);window._nc_vue_element_id=window._nc_vue_element_id??0;function Go(){return`nc-vue-${window._nc_vue_element_id++}`}const gm=Symbol.for("NcActions:isSemanticMenu"),mm=Symbol.for("NcActions:closeMenu"),H2={beforeUpdate(){this.text=this.getText()},data(){return{text:this.getText()}},computed:{isLongText(){return this.text&&this.text.trim().length>20}},methods:{getText(){return this.$slots.default?.()[0].children?.trim?.()||""}}},G2={mixins:[H2],props:{icon:{type:String,default:""},name:{type:String,default:""},title:{type:String,default:""},closeAfterClick:{type:Boolean,default:!1},ariaLabel:{type:String,default:null}},inject:{closeMenu:{from:mm}},emits:["click"],created(){"ariaHidden"in this.$attrs},computed:{isIconUrl(){try{return!!new URL(this.icon,this.icon.startsWith("/")?window.location.origin:void 0)}catch{return!1}}},methods:{onClick(e){this.$emit("click",e),this.closeAfterClick&&this.closeMenu(!1)}}},W2={name:"NcActionButton",components:{NcIconSvgWrapper:Ve},mixins:[G2],inject:{isInSemanticMenu:{from:gm,default:!1}},props:{disabled:{type:Boolean,default:!1},isMenu:{type:Boolean,default:!1},type:{type:String,default:"button",validator:e=>["button","checkbox","radio","reset","submit"].includes(e)},modelValue:{type:[Boolean,String],default:null},value:{type:String,default:null},description:{type:String,default:""}},emits:["update:modelValue"],setup(){return{mdiCheck:Vl,mdiChevronRight:Yg}},computed:{isFocusable(){return!this.disabled},isChecked(){return this.type==="radio"&&typeof this.modelValue!="boolean"?this.modelValue===this.value:this.modelValue},nativeType(){return this.type==="submit"||this.type==="reset"?this.type:"button"},buttonAttributes(){const e={};return this.isInSemanticMenu?(e.role="menuitem",this.type==="radio"?(e.role="menuitemradio",e["aria-checked"]=this.isChecked?"true":"false"):(this.type==="checkbox"||this.nativeType==="button"&&this.modelValue!==null)&&(e.role="menuitemcheckbox",e["aria-checked"]=this.modelValue===null?"mixed":this.modelValue?"true":"false")):this.modelValue!==null&&this.nativeType==="button"&&(e["aria-pressed"]=this.modelValue?"true":"false"),e}},methods:{handleClick(e){this.onClick(e),(this.modelValue!==null||this.type!=="button")&&(this.type==="radio"?typeof this.modelValue!="boolean"?this.isChecked||this.$emit("update:modelValue",this.value):this.$emit("update:modelValue",!this.isChecked):this.$emit("update:modelValue",!this.isChecked))}}},q2=["role"],K2=["aria-label","disabled","title","type"],X2={class:"action-button__longtext-wrapper"},Z2={key:0,class:"action-button__name"},Y2=["textContent"],J2={key:2,class:"action-button__text"},Q2=["textContent"],eC={key:2,class:"action-button__pressed-icon material-design-icon"};function tC(e,t,n,r,o,s){const a=Ye("NcIconSvgWrapper");return $(),X("li",{class:Be(["action",{"action--disabled":n.disabled}]),role:s.isInSemanticMenu&&"presentation"},[ue("button",ft({"aria-label":e.ariaLabel,class:["action-button button-vue",{"action-button--active":s.isChecked,focusable:s.isFocusable}],disabled:n.disabled,title:e.title,type:s.nativeType},s.buttonAttributes,{onClick:t[0]||(t[0]=(...i)=>s.handleClick&&s.handleClick(...i))}),[ye(e.$slots,"icon",{},()=>[ue("span",{class:Be([[e.isIconUrl?"action-button__icon--url":e.icon],"action-button__icon"]),style:hn({backgroundImage:e.isIconUrl?`url(${e.icon})`:null}),"aria-hidden":"true"},null,6)],!0),ue("span",X2,[e.name?($(),X("strong",Z2,xe(e.name),1)):he("",!0),e.isLongText?($(),X("span",{key:1,class:"action-button__longtext",textContent:xe(e.text)},null,8,Y2)):($(),X("span",J2,xe(e.text),1)),n.description?($(),X("span",{key:3,class:"action-button__description",textContent:xe(n.description)},null,8,Q2)):he("",!0)]),n.isMenu?($(),ge(a,{key:0,class:"action-button__menu-icon",directional:"",path:r.mdiChevronRight},null,8,["path"])):s.isChecked?($(),ge(a,{key:1,path:r.mdiCheck,class:"action-button__pressed-icon"},null,8,["path"])):s.isChecked===!1?($(),X("span",eC)):he("",!0),he("",!0)],16,K2)],10,q2)}const nC=He(W2,[["render",tC],["__scopeId","data-v-6c2daf4e"]]);function rC(e,t={}){const n=o2();et(e,()=>{Bt(t.disabled)||(Bt(e)?n.pause():n.unpause())}),ur(()=>{n.unpause()})}const oC=["top","right","bottom","left"],dh=["start","end"],ph=oC.reduce((e,t)=>e.concat(t,t+"-"+dh[0],t+"-"+dh[1]),[]),Qs=Math.min,Kl=Math.max,sC={left:"right",right:"left",bottom:"top",top:"bottom"};function vm(e,t,n){return Kl(e,Qs(t,n))}function lo(e,t){return typeof e=="function"?e(t):e}function lr(e){return e.split("-")[0]}function xn(e){return e.split("-")[1]}function ym(e){return e==="x"?"y":"x"}function Lc(e){return e==="y"?"height":"width"}function nr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Fc(e){return ym(nr(e))}function bm(e,t,n){n===void 0&&(n=!1);const r=xn(e),o=Fc(e),s=Lc(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=wi(a)),[a,wi(a)]}function aC(e){const t=wi(e);return[Ei(e),t,Ei(t)]}function Ei(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const hh=["left","right"],fh=["right","left"],iC=["top","bottom"],uC=["bottom","top"];function lC(e,t,n){switch(e){case"top":case"bottom":return n?t?fh:hh:t?hh:fh;case"left":case"right":return t?iC:uC;default:return[]}}function cC(e,t,n,r){const o=xn(e);let s=lC(lr(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(Ei)))),s}function wi(e){const t=lr(e);return sC[t]+e.slice(t.length)}function dC(e){var t,n,r,o;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(r=e.bottom)!=null?r:0,left:(o=e.left)!=null?o:0}}function Em(e){return typeof e!="number"?dC(e):{top:e,right:e,bottom:e,left:e}}function Bs(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function gh(e,t,n){let{reference:r,floating:o}=e;const s=nr(t),a=Fc(t),i=Lc(a),u=lr(t),c=s==="y",l=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[i]/2-o[i]/2;let h;switch(u){case"top":h={x:l,y:r.y-o.height};break;case"bottom":h={x:l,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}const g=xn(t);return g&&(h[a]+=p*(g==="end"?1:-1)*(n&&c?-1:1)),h}async function pC(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=lo(t,e),g=Em(h),f=i[p?d==="floating"?"reference":"floating":d],m=Bs(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(f)))==null||n?f:f.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:c,rootBoundary:l,strategy:u})),y=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),E=await(s.isElement==null?void 0:s.isElement(v))&&await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1},C=Bs(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:v,strategy:u}):y);return{top:(m.top-C.top+g.top)/E.y,bottom:(C.bottom-m.bottom+g.bottom)/E.y,left:(m.left-C.left+g.left)/E.x,right:(C.right-m.right+g.right)/E.x}}const hC=50,fC=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=a.detectOverflow?a:{...a,detectOverflow:pC},u=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:d}=gh(c,r,u),p=r,h=0;const g={};for(let f=0;f({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:u}=t,{element:c,padding:l=0}=lo(e,t)||{};if(c==null)return{};const d=Em(l),p={x:n,y:r},h=Fc(o),g=Lc(h),f=await a.getDimensions(c),m=h==="y",y=m?"top":"left",v=m?"bottom":"right",E=m?"clientHeight":"clientWidth",C=s.reference[g]+s.reference[h]-p[h]-s.floating[g],_=p[h]-s.reference[h],D=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let R=D?D[E]:0;(!R||!await(a.isElement==null?void 0:a.isElement(D)))&&(R=i.floating[E]||s.floating[g]);const Z=C/2-_/2,I=R/2-f[g]/2-1,P=Qs(d[y],I),oe=Qs(d[v],I),O=R-f[g]-oe,S=R/2-f[g]/2+Z,G=vm(P,S,O),ne=!u.arrow&&xn(o)!=null&&S!==G&&s.reference[g]/2-(Sxn(r)===e),...n.filter(r=>xn(r)!==e)]:n.filter(r=>lr(r)===r)).filter(r=>e?xn(r)===e||(t?Ei(r)!==r:!1):!0)}const vC=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o;const{rects:s,middlewareData:a,placement:i,platform:u,elements:c}=t,{crossAxis:l=!1,alignment:d,allowedPlacements:p=ph,autoAlignment:h=!0,...g}=lo(e,t),f=d!==void 0||p===ph?mC(d||null,h,p):p,m=((n=a.autoPlacement)==null?void 0:n.index)||0,y=f[m];if(y==null)return{};if(i!==y)return{reset:{placement:f[0]}};const v=await u.detectOverflow(t,g),E=bm(y,s,await(u.isRTL==null?void 0:u.isRTL(c.floating))),C=[v[lr(y)],v[E[0]],v[E[1]]],_=[...((r=a.autoPlacement)==null?void 0:r.overflows)||[],{placement:y,overflows:C}],D=f[m+1];if(D)return{data:{index:m+1,overflows:_},reset:{placement:D}};const R=_.map(I=>{const P=xn(I.placement);return[I.placement,P&&l?I.overflows.slice(0,2).reduce((oe,O)=>oe+O,0):I.overflows[0],I.overflows]}).sort((I,P)=>I[1]-P[1]),Z=((o=R.filter(I=>I[2].slice(0,xn(I[0])?2:3).every(P=>P<=0))[0])==null?void 0:o[0])||R[0][0];return Z!==i?{data:{index:m+1,overflows:_},reset:{placement:Z}}:{}}}},yC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:u,elements:c}=t,{mainAxis:l=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:f=!0,...m}=lo(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=lr(o),v=nr(i),E=lr(i)===i,C=await(u.isRTL==null?void 0:u.isRTL(c.floating)),_=p||(E||!f?[wi(i)]:aC(i)),D=g!=="none";!p&&D&&_.push(...cC(i,f,g,C));const R=[i,..._],Z=await u.detectOverflow(t,m),I=[];let P=((r=s.flip)==null?void 0:r.overflows)||[];if(l&&I.push(Z[y]),d){const G=bm(o,a,C);I.push(Z[G[0]],Z[G[1]])}if(P=[...P,{placement:o,overflows:I}],!I.every(G=>G<=0)){var oe,O;const G=(((oe=s.flip)==null?void 0:oe.index)||0)+1,ne=R[G];if(ne&&(!(d==="alignment"&&v!==nr(ne))||P.every(Y=>nr(Y.placement)===v?Y.overflows[0]>0:!0)))return{data:{index:G,overflows:P},reset:{placement:ne}};let Q=(O=P.filter(Y=>Y.overflows[0]<=0).sort((Y,ee)=>Y.overflows[1]-ee.overflows[1])[0])==null?void 0:O.placement;if(!Q)switch(h){case"bestFit":{var S;const Y=(S=P.filter(ee=>{if(D){const J=nr(ee.placement);return J===v||J==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(J=>J>0).reduce((J,te)=>J+te,0)]).sort((ee,J)=>ee[1]-J[1])[0])==null?void 0:S[0];Y&&(Q=Y);break}case"initialPlacement":Q=i;break}if(o!==Q)return{reset:{placement:Q}}}return{}}}},bC=new Set(["left","top"]);async function EC(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=lr(n),i=xn(n),u=nr(n)==="y",c=bC.has(a)?-1:1,l=s&&u?-1:1,d=lo(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof g=="number"&&(h=i==="end"?g*-1:g),u?{x:h*l,y:p*c}:{x:p*c,y:h*l}}const wC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,u=await EC(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:a}}}}},CC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:u={fn:v=>{let{x:E,y:C}=v;return{x:E,y:C}}},...c}=lo(e,t),l={x:n,y:r},d=await s.detectOverflow(t,c),p=nr(o),h=ym(p);let g=l[h],f=l[p];const m=(v,E)=>vm(E+d[v==="y"?"top":"left"],E,E-d[v==="y"?"bottom":"right"]);a&&(g=m(h,g)),i&&(f=m(p,f));const y=u.fn({...t,[h]:g,[p]:f});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[h]:a,[p]:i}}}}}},xC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:s}=t,{apply:a=()=>{},...i}=lo(e,t),u=await o.detectOverflow(t,i),c=lr(n),l=xn(n),d=nr(n)==="y",{width:p,height:h}=r.floating;let g,f;c==="top"||c==="bottom"?(g=c,f=l===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(f=c,g=l==="end"?"top":"bottom");const m=h-u.top-u.bottom,y=p-u.left-u.right,v=Qs(h-u[g],m),E=Qs(p-u[f],y),C=t.middlewareData.shift,_=!C;let D=v,R=E;C!=null&&C.enabled.x&&(R=y),C!=null&&C.enabled.y&&(D=m),_&&!l&&(d?R=p-2*Kl(u.left,u.right):D=h-2*Kl(u.top,u.bottom)),await a({...t,availableWidth:R,availableHeight:D});const Z=await o.getDimensions(s.floating);return p!==Z.width||h!==Z.height?{reset:{rects:!0}}:{}}}};function dn(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fn(e){return dn(e).getComputedStyle(e)}const mh=Math.min,$s=Math.max,Ci=Math.round;function wm(e){const t=Fn(e);let n=parseFloat(t.width),r=parseFloat(t.height);const o=e.offsetWidth,s=e.offsetHeight,a=Ci(n)!==o||Ci(r)!==s;return a&&(n=o,r=s),{width:n,height:r,fallback:a}}function Pr(e){return xm(e)?(e.nodeName||"").toLowerCase():""}let Ra;function Cm(){if(Ra)return Ra;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Ra=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Ra):navigator.userAgent}function In(e){return e instanceof dn(e).HTMLElement}function kr(e){return e instanceof dn(e).Element}function xm(e){return e instanceof dn(e).Node}function vh(e){return typeof ShadowRoot>"u"?!1:e instanceof dn(e).ShadowRoot||e instanceof ShadowRoot}function tu(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function AC(e){return["table","td","th"].includes(Pr(e))}function Xl(e){const t=/firefox/i.test(Cm()),n=Fn(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!r&&r!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some((o=>n.willChange.includes(o)))||["paint","layout","strict","content"].some((o=>{const s=n.contain;return s!=null&&s.includes(o)}))}function Am(){return!/^((?!chrome|android).)*safari/i.test(Cm())}function Ic(e){return["html","body","#document"].includes(Pr(e))}function _m(e){return kr(e)?e:e.contextElement}const Sm={x:1,y:1};function Ro(e){const t=_m(e);if(!In(t))return Sm;const n=t.getBoundingClientRect(),{width:r,height:o,fallback:s}=wm(t);let a=(s?Ci(n.width):n.width)/r,i=(s?Ci(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),i&&Number.isFinite(i)||(i=1),{x:a,y:i}}function ea(e,t,n,r){var o,s;t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=_m(e);let u=Sm;t&&(r?kr(r)&&(u=Ro(r)):u=Ro(e));const c=i?dn(i):window,l=!Am()&&n;let d=(a.left+(l&&((o=c.visualViewport)==null?void 0:o.offsetLeft)||0))/u.x,p=(a.top+(l&&((s=c.visualViewport)==null?void 0:s.offsetTop)||0))/u.y,h=a.width/u.x,g=a.height/u.y;if(i){const f=dn(i),m=r&&kr(r)?dn(r):r;let y=f.frameElement;for(;y&&r&&m!==f;){const v=Ro(y),E=y.getBoundingClientRect(),C=getComputedStyle(y);E.x+=(y.clientLeft+parseFloat(C.paddingLeft))*v.x,E.y+=(y.clientTop+parseFloat(C.paddingTop))*v.y,d*=v.x,p*=v.y,h*=v.x,g*=v.y,d+=E.x,p+=E.y,y=dn(y).frameElement}}return{width:h,height:g,top:p,right:d+h,bottom:p+g,left:d,x:d,y:p}}function Tr(e){return((xm(e)?e.ownerDocument:e.document)||window.document).documentElement}function nu(e){return kr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function km(e){return ea(Tr(e)).left+nu(e).scrollLeft}function ta(e){if(Pr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vh(e)&&e.host||Tr(e);return vh(t)?t.host:t}function Tm(e){const t=ta(e);return Ic(t)?t.ownerDocument.body:In(t)&&tu(t)?t:Tm(t)}function xi(e,t){var n;t===void 0&&(t=[]);const r=Tm(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=dn(r);return o?t.concat(s,s.visualViewport||[],tu(r)?r:[]):t.concat(r,xi(r))}function yh(e,t,n){return t==="viewport"?Bs((function(r,o){const s=dn(r),a=Tr(r),i=s.visualViewport;let u=a.clientWidth,c=a.clientHeight,l=0,d=0;if(i){u=i.width,c=i.height;const p=Am();(p||!p&&o==="fixed")&&(l=i.offsetLeft,d=i.offsetTop)}return{width:u,height:c,x:l,y:d}})(e,n)):kr(t)?Bs((function(r,o){const s=ea(r,!0,o==="fixed"),a=s.top+r.clientTop,i=s.left+r.clientLeft,u=In(r)?Ro(r):{x:1,y:1};return{width:r.clientWidth*u.x,height:r.clientHeight*u.y,x:i*u.x,y:a*u.y}})(t,n)):Bs((function(r){const o=Tr(r),s=nu(r),a=r.ownerDocument.body,i=$s(o.scrollWidth,o.clientWidth,a.scrollWidth,a.clientWidth),u=$s(o.scrollHeight,o.clientHeight,a.scrollHeight,a.clientHeight);let c=-s.scrollLeft+km(r);const l=-s.scrollTop;return Fn(a).direction==="rtl"&&(c+=$s(o.clientWidth,a.clientWidth)-i),{width:i,height:u,x:c,y:l}})(Tr(e)))}function bh(e){return In(e)&&Fn(e).position!=="fixed"?e.offsetParent:null}function Eh(e){const t=dn(e);let n=bh(e);for(;n&&AC(n)&&Fn(n).position==="static";)n=bh(n);return n&&(Pr(n)==="html"||Pr(n)==="body"&&Fn(n).position==="static"&&!Xl(n))?t:n||(function(r){let o=ta(r);for(;In(o)&&!Ic(o);){if(Xl(o))return o;o=ta(o)}return null})(e)||t}function _C(e,t,n){const r=In(t),o=Tr(t),s=ea(e,!0,n==="fixed",t);let a={scrollLeft:0,scrollTop:0};const i={x:0,y:0};if(r||!r&&n!=="fixed")if((Pr(t)!=="body"||tu(o))&&(a=nu(t)),In(t)){const u=ea(t,!0);i.x=u.x+t.clientLeft,i.y=u.y+t.clientTop}else o&&(i.x=km(o));return{x:s.left+a.scrollLeft-i.x,y:s.top+a.scrollTop-i.y,width:s.width,height:s.height}}const SC={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=n==="clippingAncestors"?(function(c,l){const d=l.get(c);if(d)return d;let p=xi(c).filter((m=>kr(m)&&Pr(m)!=="body")),h=null;const g=Fn(c).position==="fixed";let f=g?ta(c):c;for(;kr(f)&&!Ic(f);){const m=Fn(f),y=Xl(f);(g?y||h:y||m.position!=="static"||!h||!["absolute","fixed"].includes(h.position))?h=m:p=p.filter((v=>v!==f)),f=ta(f)}return l.set(c,p),p})(t,this._c):[].concat(n),a=[...s,r],i=a[0],u=a.reduce(((c,l)=>{const d=yh(t,l,o);return c.top=$s(d.top,c.top),c.right=mh(d.right,c.right),c.bottom=mh(d.bottom,c.bottom),c.left=$s(d.left,c.left),c}),yh(t,i,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=In(n),s=Tr(n);if(n===s)return t;let a={scrollLeft:0,scrollTop:0},i={x:1,y:1};const u={x:0,y:0};if((o||!o&&r!=="fixed")&&((Pr(n)!=="body"||tu(s))&&(a=nu(n)),In(n))){const c=ea(n);i=Ro(n),u.x=c.x+n.clientLeft,u.y=c.y+n.clientTop}return{width:t.width*i.x,height:t.height*i.y,x:t.x*i.x-a.scrollLeft*i.x+u.x,y:t.y*i.y-a.scrollTop*i.y+u.y}},isElement:kr,getDimensions:function(e){return In(e)?wm(e):e.getBoundingClientRect()},getOffsetParent:Eh,getDocumentElement:Tr,getScale:Ro,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Eh,s=this.getDimensions;return{reference:_C(t,await o(n),r),floating:{x:0,y:0,...await s(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Fn(e).direction==="rtl"},kC=(e,t,n)=>{const r=new Map,o={platform:SC,...n},s={...o.platform,_c:r};return fC(e,t,{...o,platform:s})},Or={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function TC(e,t){let n=Or.themes[e]||{},r;do r=n[t],typeof r>"u"?n.$extend?n=Or.themes[n.$extend]||{}:(n=null,r=Or[t]):n=null;while(n);return r}function OC(e){const t=[e];let n=Or.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Or.themes[n.$extend]||{}):n=null;while(n);return t.map(r=>`v-popper--theme-${r}`)}function wh(e){const t=[e];let n=Or.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Or.themes[n.$extend]||{}):n=null;while(n);return t}let na=!1;if(typeof window<"u"){na=!1;try{const e=Object.defineProperty({},"passive",{get(){na=!0}});window.addEventListener("test",null,e)}catch{}}let Om=!1;typeof window<"u"&&typeof navigator<"u"&&(Om=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const DC=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Ch={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},xh={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Ah(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Zu(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const En=[];let Ur=null;const _h={};function Sh(e){let t=_h[e];return t||(t=_h[e]=[]),t}let Zl=function(){};typeof window<"u"&&(Zl=window.Element);function Pe(e){return function(t){return TC(t.theme,e)}}const Yu="__floating-vue__popper",Dm=()=>We({name:"VPopper",provide(){return{[Yu]:{parentPopper:this}}},inject:{[Yu]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Pe("disabled")},positioningDisabled:{type:Boolean,default:Pe("positioningDisabled")},placement:{type:String,default:Pe("placement"),validator:e=>DC.includes(e)},delay:{type:[String,Number,Object],default:Pe("delay")},distance:{type:[Number,String],default:Pe("distance")},skidding:{type:[Number,String],default:Pe("skidding")},triggers:{type:Array,default:Pe("triggers")},showTriggers:{type:[Array,Function],default:Pe("showTriggers")},hideTriggers:{type:[Array,Function],default:Pe("hideTriggers")},popperTriggers:{type:Array,default:Pe("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Pe("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Pe("popperHideTriggers")},container:{type:[String,Object,Zl,Boolean],default:Pe("container")},boundary:{type:[String,Zl],default:Pe("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Pe("strategy")},autoHide:{type:[Boolean,Function],default:Pe("autoHide")},handleResize:{type:Boolean,default:Pe("handleResize")},instantMove:{type:Boolean,default:Pe("instantMove")},eagerMount:{type:Boolean,default:Pe("eagerMount")},popperClass:{type:[String,Array,Object],default:Pe("popperClass")},computeTransformOrigin:{type:Boolean,default:Pe("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Pe("autoMinSize")},autoSize:{type:[Boolean,String],default:Pe("autoSize")},autoMaxSize:{type:Boolean,default:Pe("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Pe("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Pe("preventOverflow")},overflowPadding:{type:[Number,String],default:Pe("overflowPadding")},arrowPadding:{type:[Number,String],default:Pe("arrowPadding")},arrowOverflow:{type:Boolean,default:Pe("arrowOverflow")},flip:{type:Boolean,default:Pe("flip")},shift:{type:Boolean,default:Pe("shift")},shiftCrossAxis:{type:Boolean,default:Pe("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Pe("noAutoFocus")},disposeTimeout:{type:Number,default:Pe("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Yu])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var r,o;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((o=this.parentPopper)==null?void 0:o.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(wC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(vC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(CC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(yC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(gC({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:r,rects:o,middlewareData:s})=>{let a;const{centerOffset:i}=s.arrow;return r.startsWith("top")||r.startsWith("bottom")?a=Math.abs(i)>o.reference.width/2:a=Math.abs(i)>o.reference.height/2,{data:{overflow:a}}}}),this.autoMinSize||this.autoSize){const r=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:o,placement:s,middlewareData:a})=>{var i;if((i=a.autoSize)!=null&&i.skip)return{};let u,c;return s.startsWith("top")||s.startsWith("bottom")?u=o.reference.width:c=o.reference.height,this.$_innerNode.style[r==="min"?"minWidth":r==="max"?"maxWidth":"width"]=u!=null?`${u}px`:null,this.$_innerNode.style[r==="min"?"minHeight":r==="max"?"maxHeight":"height"]=c!=null?`${c}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(xC({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:r,availableHeight:o})=>{this.$_innerNode.style.maxWidth=r!=null?`${r}px`:null,this.$_innerNode.style.maxHeight=o!=null?`${o}px`:null}})));const n=await kC(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Ur&&this.instantMove&&Ur.instantMove&&Ur!==this.parentPopper){Ur.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Ur=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Zu(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...xi(this.$_referenceNode),...xi(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),r=n.parentNode.getBoundingClientRect(),o=t.x+t.width/2-(r.left+n.offsetLeft),s=t.y+t.height/2-(r.top+n.offsetTop);this.result.transformOrigin=`${o}px ${s}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Ah(En,this),En.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of wh(this.theme)){const r=Sh(n);Ah(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}Ur===this&&(Ur=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Zu(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,Ch,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Ch,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,xh,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],xh,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(r=>r.addEventListener(t,n,na?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,r,o){let s=n;r!=null&&(s=typeof r=="function"?r(s):r),s.forEach(a=>{const i=t[a];i&&this.$_registerEventListeners(e,i,o)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:r,eventType:o,handler:s}=n;!e||e===o?r.forEach(a=>a.removeEventListener(o,s)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const r=n.getAttribute(e);r&&(n.removeAttribute(e),n.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const r=e[n];r==null?t.removeAttribute(n):t.setAttribute(n,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Rs>=e.left&&Rs<=e.right&&Ls>=e.top&&Ls<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Rs-yr,r=Ls-br,o=t.left+t.width/2-yr+(t.top+t.height/2)-br+t.width+t.height,s=yr+n*o,a=br+r*o;return La(yr,br,s,a,t.left,t.top,t.left,t.bottom)||La(yr,br,s,a,t.left,t.top,t.right,t.top)||La(yr,br,s,a,t.right,t.top,t.right,t.bottom)||La(yr,br,s,a,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Om){const e=na?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>kh(t),e),document.addEventListener("touchend",t=>Th(t,!0),e)}else window.addEventListener("mousedown",e=>kh(e),!0),window.addEventListener("click",e=>Th(e,!1),!0);window.addEventListener("resize",BC)}function kh(e,t){for(let n=0;n=0;r--){const o=En[r];try{const s=o.containsGlobalTarget=o.mouseDownContains||o.popperNode().contains(e.target);o.pendingHide=!1,requestAnimationFrame(()=>{if(o.pendingHide=!1,!n[o.randomId]&&Oh(o,s,e)){if(o.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&s){let i=o.parentPopper;for(;i;)n[i.randomId]=!0,i=i.parentPopper;return}let a=o.parentPopper;for(;a&&Oh(a,a.containsGlobalTarget,e);)a.$_handleGlobalClose(e,t),a=a.parentPopper}})}catch{}}}function Oh(e,t,n){return n.closeAllPopover||n.closePopover&&t||PC(e,n)&&!t}function PC(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function BC(){for(let e=0;e{yr=Rs,br=Ls,Rs=e.clientX,Ls=e.clientY},na?{passive:!0}:void 0);function La(e,t,n,r,o,s,a,i){const u=((a-o)*(t-s)-(i-s)*(e-o))/((i-s)*(n-e)-(a-o)*(r-t)),c=((n-e)*(t-s)-(r-t)*(e-o))/((i-s)*(n-e)-(a-o)*(r-t));return u>=0&&u<=1&&c>=0&&c<=1}const $C={extends:Dm()},Mc=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};function RC(e,t,n,r,o,s){return $(),X("div",{ref:"reference",class:Be(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[ye(e.$slots,"default",Ms(Io(e.slotData)))],2)}const LC=Mc($C,[["render",RC]]);function FC(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}let Ga;function Yl(){Yl.init||(Yl.init=!0,Ga=FC()!==-1)}var Wa={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Yl(),Cn(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Ga&&this.$el.appendChild(e),e.data="about:blank",Ga||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Ga&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const IC=cy();uy("data-v-b329ee4c");const MC={class:"resize-observer",tabindex:"-1"};ly();const jC=IC((e,t,n,r,o,s)=>($(),ge("div",MC)));Wa.render=jC,Wa.__scopeId="data-v-b329ee4c",Wa.__file="src/components/ResizeObserver.vue";const Nm=(e="theme")=>({computed:{themeClass(){return OC(this[e])}}}),zC=We({name:"VPopperContent",components:{ResizeObserver:Wa},mixins:[Nm()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),UC=["id","aria-hidden","tabindex","data-popper-placement"],VC={ref:"inner",class:"v-popper__inner"},HC=ue("div",{class:"v-popper__arrow-outer"},null,-1),GC=ue("div",{class:"v-popper__arrow-inner"},null,-1),WC=[HC,GC];function qC(e,t,n,r,o,s){const a=Ye("ResizeObserver");return $(),X("div",{id:e.popperId,ref:"popover",class:Be(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:hn(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=pa(i=>e.autoHide&&e.$emit("hide"),["esc"]))},[ue("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=i=>e.autoHide&&e.$emit("hide"))}),ue("div",{class:"v-popper__wrapper",style:hn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[ue("div",VC,[e.mounted?($(),X(Ze,{key:0},[ue("div",null,[ye(e.$slots,"default")]),e.handleResize?($(),ge(a,{key:0,onNotify:t[1]||(t[1]=i=>e.$emit("resize",i))})):he("",!0)],64)):he("",!0)],512),ue("div",{ref:"arrow",class:"v-popper__arrow-container",style:hn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},WC,4)],4)],46,UC)}const KC=Mc(zC,[["render",qC]]),XC={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Jl=function(){};typeof window<"u"&&(Jl=window.Element);const ZC=We({name:"VPopperWrapper",components:{Popper:LC,PopperContent:KC},mixins:[XC,Nm("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Jl,Boolean],default:void 0},boundary:{type:[String,Jl],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function YC(e,t,n,r,o,s){const a=Ye("PopperContent"),i=Ye("Popper");return $(),ge(i,ft({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=u=>e.$emit("update:shown",u)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:pe(({popperId:u,isShown:c,shouldMountContent:l,skipTransition:d,autoHide:p,show:h,hide:g,handleResize:f,onResize:m,classes:y,result:v})=>[ye(e.$slots,"default",{shown:c,show:h,hide:g}),le(a,{ref:"popperContent","popper-id":u,theme:e.finalTheme,shown:c,mounted:l,"skip-transition":d,"auto-hide":p,"handle-resize":f,classes:y,result:v,onHide:g,onResize:m},{default:pe(()=>[ye(e.$slots,"popper",{shown:c,hide:g})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Ql=Mc(ZC,[["render",YC]]),JC={...Ql,name:"VDropdown",vPopperTheme:"dropdown"};({...Ql},{...Ql}),Dm();const Dh=Or,QC=JC,ex=We({name:"NcPopoverTriggerProvider",provide(){return{"NcPopover:trigger:shown":()=>this.shown,"NcPopover:trigger:attrs":()=>this.triggerAttrs}},props:{shown:{type:Boolean,required:!0},popupRole:{type:String,default:void 0}},computed:{triggerAttrs(){return{"aria-haspopup":this.popupRole,"aria-expanded":this.shown.toString()}}},render(){return this.$slots.default?.({attrs:this.triggerAttrs})}}),tx="_ncPopover_HjJ88",nx={"material-design-icon":"_material-design-icon_FKPyJ",ncPopover:tx},Pm="nc-popover-9";Dh.themes[Pm]=structuredClone(Dh.themes.dropdown);const rx={name:"NcPopover",components:{Dropdown:QC,NcPopoverTriggerProvider:ex},props:{boundary:{type:[String,Object],default:""},closeOnClickOutside:{type:Boolean,default:!0},noCloseOnClickOutside:{type:Boolean,default:!1},container:{type:[Boolean,String],default:"body"},delay:{type:[Number,Object],default:0},noFocusTrap:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},popoverBaseClass:{type:String,default:""},popoverTriggers:{type:[Array,Object],default:null},popupRole:{type:String,default:void 0,validator:e=>["menu","listbox","tree","grid","dialog","true"].includes(e)},setReturnFocus:{default:void 0,type:[Boolean,HTMLElement,SVGElement,String,Function]},shown:{type:Boolean,default:!1},triggers:{type:[Array,Object],default:()=>["click"]}},emits:["afterShow","afterHide","update:shown"],setup(){return{theme:Pm}},data(){return{internalShown:this.shown}},computed:{popperTriggers(){if(this.popoverTriggers&&Array.isArray(this.popoverTriggers))return this.popoverTriggers},popperHideTriggers(){if(this.popoverTriggers&&typeof this.popoverTriggers=="object")return this.popoverTriggers.hide},popperShowTriggers(){if(this.popoverTriggers&&typeof this.popoverTriggers=="object")return this.popoverTriggers.show},internalTriggers(){if(this.triggers&&Array.isArray(this.triggers))return this.triggers},hideTriggers(){if(this.triggers&&typeof this.triggers=="object")return this.triggers.hide},showTriggers(){if(this.triggers&&typeof this.triggers=="object")return this.triggers.show},internalPlacement(){return this.placement==="start"?Js?"right":"left":this.placement==="end"?Js?"left":"right":this.placement}},watch:{shown(e){this.internalShown=e},internalShown(e){this.$emit("update:shown",e)}},mounted(){this.checkTriggerA11y()},beforeUnmount(){this.clearFocusTrap(),this.clearEscapeStopPropagation()},methods:{checkTriggerA11y(){window.OC?.debug&&this.getPopoverTriggerContainerElement().querySelector("[aria-expanded]")},removeFloatingVueAriaDescribedBy(){const e=this.getPopoverTriggerContainerElement().querySelectorAll("[data-popper-shown]");for(const t of e)t.removeAttribute("aria-describedby")},getPopoverContentElement(){return this.$refs.popover?.$refs.popperContent?.$el},getPopoverTriggerContainerElement(){return this.$refs.popover?.$refs.popper?.$refs.reference},async useFocusTrap(){if(await this.$nextTick(),this.noFocusTrap)return;const e=this.getPopoverContentElement();e.tabIndex=-1,e&&(this.$focusTrap=Rc(e,{escapeDeactivates:!1,allowOutsideClick:!0,setReturnFocus:this.setReturnFocus,trapStack:zo(),fallBackFocus:e}),this.$focusTrap.activate())},clearFocusTrap(e={}){try{this.$focusTrap?.deactivate(e),this.$focusTrap=null}catch(t){$o.warn("[NcPopover] Failed to clear focus trap",{error:t})}},addEscapeStopPropagation(){this.getPopoverContentElement()?.addEventListener("keydown",this.stopKeydownEscapeHandler)},clearEscapeStopPropagation(){this.getPopoverContentElement()?.removeEventListener("keydown",this.stopKeydownEscapeHandler)},stopKeydownEscapeHandler(e){e.type==="keydown"&&e.key==="Escape"&&e.stopPropagation()},async afterShow(){this.getPopoverContentElement().addEventListener("transitionend",()=>{this.$emit("afterShow")},{once:!0,passive:!0}),this.removeFloatingVueAriaDescribedBy(),await this.$nextTick(),await this.useFocusTrap(),this.addEscapeStopPropagation()},afterHide(){this.getPopoverContentElement()?.addEventListener("transitionend",()=>{this.$emit("afterHide")},{once:!0,passive:!0}),this.clearFocusTrap(),this.clearEscapeStopPropagation()}}};function ox(e,t,n,r,o,s){const a=Ye("NcPopoverTriggerProvider"),i=Ye("Dropdown");return $(),ge(i,{ref:"popover",shown:o.internalShown,"onUpdate:shown":[t[0]||(t[0]=u=>o.internalShown=u),t[1]||(t[1]=u=>o.internalShown=u)],arrowPadding:10,autoHide:!n.noCloseOnClickOutside&&n.closeOnClickOutside,boundary:n.boundary||void 0,container:n.container,delay:n.delay,distance:10,handleResize:"",noAutoFocus:!0,placement:s.internalPlacement,popperClass:[e.$style.ncPopover,n.popoverBaseClass],popperTriggers:s.popperTriggers,popperHideTriggers:s.popperHideTriggers,popperShowTriggers:s.popperShowTriggers,theme:r.theme,triggers:s.internalTriggers,hideTriggers:s.hideTriggers,showTriggers:s.showTriggers,onApplyShow:s.afterShow,onApplyHide:s.afterHide},{popper:pe(u=>[ye(e.$slots,"default",Ms(Io(u)))]),default:pe(()=>[le(a,{shown:o.internalShown,popupRole:n.popupRole},{default:pe(u=>[ye(e.$slots,"trigger",Ms(Io(u)))]),_:3},8,["shown","popupRole"])]),_:3},8,["shown","autoHide","boundary","container","delay","placement","popperClass","popperTriggers","popperHideTriggers","popperShowTriggers","theme","triggers","hideTriggers","showTriggers","onApplyShow","onApplyHide"])}const sx={$style:nx},Nh=He(rx,[["render",ox],["__cssModules",sx]]),ax={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ix=["aria-hidden","aria-label"],ux=["fill","width","height"],lx={d:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"},cx={key:0};function dx(e,t,n,r,o,s){return $(),X("span",ft(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon dots-horizontal-icon",role:"img",onClick:t[0]||(t[0]=a=>e.$emit("click",a))}),[($(),X("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[ue("path",lx,[n.title?($(),X("title",cx,xe(n.title),1)):he("",!0)])],8,ux))],16,ix)}const px=He(ax,[["render",dx]]);gn(ME);function Bm(e){return Array.isArray(e)&&e.some(t=>{if(t===null)return!1;if(typeof t=="object"){const n=t;if(n.type===_t||n.type===Ze&&!Bm(n.children)||n.type===ca&&!n.children.trim())return!1}return!0})}const hx=".focusable",fx={name:"NcActions",components:{NcButton:Qe,NcPopover:Nh},provide(){return{[gm]:se(()=>this.actionsMenuSemanticType==="menu"),[mm]:this.closeMenu}},props:{open:{type:Boolean,default:!1},manualOpen:{type:Boolean,default:!1},forceMenu:{type:Boolean,default:!1},forceName:{type:Boolean,default:!1},menuName:{type:String,default:null},primary:{type:Boolean,default:!1},defaultIcon:{type:String,default:""},ariaLabel:{type:String,default:Ie("Actions")},placement:{type:String,default:"bottom"},boundariesElement:{type:Element,default:()=>document.getElementById("content-vue")??document.querySelector("body")},container:{type:[Boolean,String,Object,Element],default:"body"},disabled:{type:Boolean,default:!1},inline:{type:Number,default:0},variant:{type:String,validator(e){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].includes(e)},default:null},size:{type:String,default:"normal",validator(e){return["small","normal","large"].includes(e)}}},emits:["click","blur","focus","close","closed","open","opened","update:open"],setup(){return{randomId:Go()}},data(){return{opened:this.open,focusIndex:0,actionsMenuSemanticType:"unknown"}},computed:{triggerButtonVariant(){return this.variant||(this.primary?"primary":this.menuName?"secondary":"tertiary")},config(){return{menu:{popupRole:"menu",withArrowNavigation:!0,withTabNavigation:!1,withFocusTrap:!1},navigation:{popupRole:void 0,withArrowNavigation:!1,withTabNavigation:!0,withFocusTrap:!1},dialog:{popupRole:"dialog",withArrowNavigation:!1,withTabNavigation:!0,withFocusTrap:!0},tooltip:{popupRole:void 0,withArrowNavigation:!1,withTabNavigation:!1,withFocusTrap:!1},unknown:{popupRole:void 0,role:void 0,withArrowNavigation:!0,withTabNavigation:!1,withFocusTrap:!0}}[this.actionsMenuSemanticType]},withFocusTrap(){return this.config.withFocusTrap}},watch:{open(e){e!==this.opened&&(this.opened=e)},opened(){this.opened?document.body.addEventListener("keydown",this.handleEscapePressed):document.body.removeEventListener("keydown",this.handleEscapePressed)}},created(){rC(()=>this.opened,{disabled:()=>this.config.withFocusTrap}),"ariaHidden"in this.$attrs},methods:{getActionName(e){return e?.type?.name},isValidSingleAction(e){return["NcActionButton","NcActionLink","NcActionRouter"].includes(this.getActionName(e))},isAction(e){return this.getActionName(e)?.startsWith?.("NcAction")},isIconUrl(e){try{return!!new URL(e,e.startsWith("/")?window.location.origin:void 0)}catch{return!1}},toggleMenu(e){e?this.openMenu():this.closeMenu()},openMenu(){this.opened||(this.opened=!0,this.$emit("update:open",!0),this.$emit("open"))},async closeMenu(e=!0){this.opened&&(await this.$nextTick(),this.opened=!1,this.$refs.popover?.clearFocusTrap({returnFocus:e}),this.$emit("update:open",!1),this.$emit("close"),this.focusIndex=0,e&&this.$refs.triggerButton?.$el.focus())},onOpened(){this.$nextTick(()=>{this.focusFirstAction(null),this.$emit("opened")})},onClosed(){this.$emit("closed")},getCurrentActiveMenuItemElement(){return this.$refs.menu.querySelector("li.active")},getFocusableMenuItemElements(){return this.$refs.menu.querySelectorAll(hx)},onKeydown(e){if(e.key==="Tab"){if(this.config.withFocusTrap)return;if(!this.config.withTabNavigation){this.closeMenu(!0);return}e.preventDefault();const t=this.getFocusableMenuItemElements(),n=[...t].indexOf(document.activeElement);if(n===-1)return;const r=e.shiftKey?n-1:n+1;(r<0||r===t.length)&&this.closeMenu(!0),this.focusIndex=r,this.focusAction();return}this.config.withArrowNavigation&&(e.key==="ArrowUp"&&this.focusPreviousAction(e),e.key==="ArrowDown"&&this.focusNextAction(e),e.key==="PageUp"&&this.focusFirstAction(e),e.key==="PageDown"&&this.focusLastAction(e)),this.handleEscapePressed(e)},onTriggerKeydown(e){e.key==="Escape"&&this.actionsMenuSemanticType==="tooltip"&&this.closeMenu()},handleEscapePressed(e){e.key==="Escape"&&(this.closeMenu(),e.preventDefault())},removeCurrentActive(){const e=this.$refs.menu.querySelector("li.active");e&&e.classList.remove("active")},focusAction(){const e=this.getFocusableMenuItemElements()[this.focusIndex];if(e){this.removeCurrentActive();const t=e.closest("li.action");e.focus(),t&&t.classList.add("active")}},focusPreviousAction(e){this.opened&&(this.focusIndex===0?this.focusLastAction(e):(this.preventIfEvent(e),this.focusIndex=this.focusIndex-1),this.focusAction())},focusNextAction(e){if(this.opened){const t=this.getFocusableMenuItemElements().length-1;this.focusIndex===t?this.focusFirstAction(e):(this.preventIfEvent(e),this.focusIndex=this.focusIndex+1),this.focusAction()}},focusFirstAction(e){if(this.opened){this.preventIfEvent(e);const t=[...this.getFocusableMenuItemElements()].findIndex(n=>n.getAttribute("aria-checked")==="true"&&n.getAttribute("role")==="menuitemradio");this.focusIndex=t>-1?t:0,this.focusAction()}},focusLastAction(e){this.opened&&(this.preventIfEvent(e),this.focusIndex=this.getFocusableMenuItemElements().length-1,this.focusAction())},preventIfEvent(e){e&&(e.preventDefault(),e.stopPropagation())},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e),this.actionsMenuSemanticType==="tooltip"&&this.$refs.menu&&this.getFocusableMenuItemElements().length===0&&this.closeMenu(!1)},onClick(e){this.$emit("click",e)}},render(){const e=[],t=(h,g)=>{h.forEach(f=>{if(this.isAction(f)){g.push(f);return}f.type===Ze&&t(f.children,g)})};if(t(this.$slots.default?.(),e),e.length===0)return;let n=e.filter(this.isValidSingleAction);this.forceMenu&&n.length>0&&this.inline>0&&(n=[]);const r=n.slice(0,this.inline),o=e.filter(h=>!r.includes(h)),s=["NcActionButton","NcActionButtonGroup","NcActionCheckbox","NcActionRadio"],a=["NcActionInput","NcActionTextEditable"],i=["NcActionLink","NcActionRouter"],u=o.some(h=>a.includes(this.getActionName(h))),c=o.some(h=>s.includes(this.getActionName(h))),l=o.some(h=>i.includes(this.getActionName(h)));u?this.actionsMenuSemanticType="dialog":c?this.actionsMenuSemanticType="menu":l?this.actionsMenuSemanticType="navigation":e.filter(h=>this.getActionName(h).startsWith("NcAction")).length===e.length?this.actionsMenuSemanticType="tooltip":this.actionsMenuSemanticType="unknown";const d=h=>{const g=h?.props?.icon,f=h?.children?.icon?.()?.[0]??(this.isIconUrl(g)?Dt("img",{class:"action-item__menutoggle__icon",src:g,alt:""}):Dt("span",{class:["icon",g]})),m=h?.children?.default?.()?.[0]?.children?.trim(),y=this.forceName?m:"";let v=h?.props?.title;this.forceName||v||(v=m);const E={...h?.props??{}},C=["submit","reset"].includes(E.type)?E.modelValue:"button";return delete E.modelValue,delete E.type,Dt(Qe,ft(E,{class:"action-item action-item--single","aria-label":h?.props?.["aria-label"]||m,title:v,disabled:this.disabled||h?.props?.disabled,pressed:h?.props?.modelValue,size:this.size,type:C,variant:this.variant||(y?"secondary":"tertiary"),onFocus:this.onFocus,onBlur:this.onBlur,"onUpdate:pressed":h?.props?.["onUpdate:modelValue"]??(()=>{})}),{default:()=>y,icon:()=>f})},p=h=>{const g=Bm(this.$slots.icon?.())?this.$slots.icon?.():this.defaultIcon?Dt("span",{class:["icon",this.defaultIcon]}):Dt(px,{size:20}),f=`${this.randomId}-trigger`;return Dt(Nh,{ref:"popover",delay:0,shown:this.opened,placement:this.placement,boundary:this.boundariesElement,autoBoundaryMaxSize:!0,container:this.container,...this.manualOpen&&{triggers:[]},noCloseOnClickOutside:this.manualOpen,popoverBaseClass:"action-item__popper",popupRole:this.config.popupRole,setReturnFocus:this.config.withFocusTrap?this.$refs.triggerButton?.$el:void 0,noFocusTrap:!this.config.withFocusTrap,"onUpdate:shown":this.toggleMenu,onAfterShow:this.onOpened,onAfterClose:this.onClosed},{trigger:()=>Dt(Qe,{id:f,class:"action-item__menutoggle",disabled:this.disabled,size:this.size,variant:this.triggerButtonVariant,ref:"triggerButton","aria-label":this.menuName?null:this.ariaLabel,"aria-controls":this.opened&&this.config.popupRole?this.randomId:null,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,onKeydown:this.onTriggerKeydown},{icon:()=>g,default:()=>this.menuName}),default:()=>Dt("div",{class:{open:this.opened},tabindex:"-1",onKeydown:this.onKeydown,ref:"menu"},[Dt("ul",{id:this.randomId,tabindex:"-1",ref:"menuList",role:this.config.popupRole,"aria-labelledby":f,"aria-modal":this.actionsMenuSemanticType==="dialog"?"true":void 0},[h])])})};return e.length===1&&n.length===1&&!this.forceMenu?d(e[0]):(this.$nextTick(()=>{this.opened&&this.$refs.menu&&(this.$refs.menu.querySelector("li.active")||[]).length===0&&this.focusFirstAction()}),r.length>0&&this.inline>0?Dt("div",{class:["action-items",`action-item--${this.triggerButtonVariant}`]},[...r.map(d),o.length>0?Dt("div",{class:["action-item",{"action-item--open":this.opened}]},[p(o)]):null]):Dt("div",{class:["action-item action-item--default-popover",`action-item--${this.triggerButtonVariant}`,{"action-item--open":this.opened}]},[p(e)]))}},jc=He(fx,[["__scopeId","data-v-5f7eed6b"]]),gx=["aria-label"],mx=["width","height"],vx=["fill"],yx=["fill"],bx={key:0},Ex=We({__name:"NcLoadingIcon",props:{appearance:{default:"auto"},name:{default:""},size:{default:20}},setup(e){const t=e,n=se(()=>{const r=["#777","#CCC"];return t.appearance==="light"?r:t.appearance==="dark"?r.reverse():["var(--color-loading-light)","var(--color-loading-dark)"]});return(r,o)=>($(),X("span",{"aria-label":r.name,role:"img",class:"material-design-icon loading-icon"},[($(),X("svg",{width:r.size,height:r.size,viewBox:"0 0 24 24"},[ue("path",{fill:n.value[0],d:"M12,4V2A10,10 0 1,0 22,12H20A8,8 0 1,1 12,4Z"},null,8,vx),ue("path",{fill:n.value[1],d:"M12,4V2A10,10 0 0,1 22,12H20A8,8 0 0,0 12,4Z"},[r.name?($(),X("title",bx,xe(r.name),1)):he("",!0)],8,yx)],8,mx))],8,gx))}}),zc=He(Ex,[["__scopeId","data-v-cf399190"]]),$m=We({name:"NcVNodes",props:{vnodes:{type:[Array,Object],default:null}},render(){return this.vnodes||this.$slots?.default?.({})}}),wx={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cx=["aria-hidden","aria-label"],xx=["fill","width","height"],Ax={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"},_x={key:0};function Sx(e,t,n,r,o,s){return $(),X("span",ft(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon pencil-icon",role:"img",onClick:t[0]||(t[0]=a=>e.$emit("click",a))}),[($(),X("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[ue("path",Ax,[n.title?($(),X("title",_x,xe(n.title),1)):he("",!0)])],8,xx))],16,Cx)}const kx=He(wx,[["render",Sx]]),Tx={name:"UndoIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ox=["aria-hidden","aria-label"],Dx=["fill","width","height"],Nx={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"},Px={key:0};function Bx(e,t,n,r,o,s){return $(),X("span",ft(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon undo-icon",role:"img",onClick:t[0]||(t[0]=a=>e.$emit("click",a))}),[($(),X("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[ue("path",Nx,[n.title?($(),X("title",Px,xe(n.title),1)):he("",!0)])],8,Dx))],16,Ox)}const $x=He(Tx,[["render",Bx]]);gn(GE);const Rx={name:"NcAppNavigationIconCollapsible",components:{NcButton:Qe,ChevronDown:b2,ChevronUp:S2},setup(){return{isLegacy34:uo}},props:{open:{type:Boolean,required:!0},active:{type:Boolean,required:!0}},emits:["click"],computed:{labelButton(){return this.open?Ie("Collapse menu"):Ie("Open menu")}},methods:{onClick(e){this.$emit("click",e)}}};function Lx(e,t,n,r,o,s){const a=Ye("ChevronUp"),i=Ye("ChevronDown"),u=Ye("NcButton");return $(),ge(u,{class:Be(["icon-collapse",{"icon-collapse--active":n.active,"icon-collapse--open":n.open}]),"aria-label":s.labelButton,variant:n.active&&r.isLegacy34?"tertiary-on-primary":"tertiary",onClick:s.onClick},{icon:pe(()=>[n.open?($(),ge(a,{key:0,size:20})):($(),ge(i,{key:1,size:20}))]),_:1},8,["class","aria-label","variant","onClick"])}const Fx=He(Rx,[["render",Lx],["__scopeId","data-v-acf5ed2f"]]);gn(WE,tm);const Ix={name:"NcAppNavigationItem",components:{NcActions:jc,NcActionButton:nC,NcAppNavigationIconCollapsible:Fx,NcInputConfirmCancel:V2,NcLoadingIcon:zc,NcVNodes:$m,Pencil:kx,Undo:$x},props:{active:{type:Boolean,default:!1},name:{type:String,required:!0},title:{type:String,default:null},id:{type:String,default:()=>Go(),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:fa(),isLegacy34:uo}},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:Ie("Edit item")},undoButtonAriaLabel(){return Ie("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,t,n){this.$emit("click",e),!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&n&&(t?.(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)}}},Mx=["id"],jx=["aria-current","aria-description","aria-expanded","href","target","title","onClick"],zx={key:0,class:"editingContainer"},Ux={key:1,class:"app-navigation-entry__deleted"},Vx={class:"app-navigation-entry__deleted-description"},Hx={key:0,class:"app-navigation-entry__counter-wrapper"},Gx={key:0,class:"app-navigation-entry__children"};function Wx(e,t,n,r,o,s){const a=Ye("NcLoadingIcon"),i=Ye("NcInputConfirmCancel"),u=Ye("Pencil"),c=Ye("NcActionButton"),l=Ye("Undo"),d=Ye("NcActions"),p=Ye("NcAppNavigationIconCollapsible");return $(),X("li",{id:n.id,class:Be([{"app-navigation-entry--opened":o.opened,"app-navigation-entry--pinned":n.pinned,"app-navigation-entry--collapsible":n.allowCollapse&&!!e.$slots.default},"app-navigation-entry-wrapper"])},[($(),ge(la(s.isRouterLink?"router-link":"NcVNodes"),Ms(Io({...s.isRouterLink&&{custom:!0,to:n.to}})),{default:pe(({href:h,navigate:g,isActive:f})=>[ue("div",{class:Be(["app-navigation-entry",{"app-navigation-entry--editing":o.editingActive,"app-navigation-entry--deleted":n.undo,"app-navigation-entry--legacy":r.isLegacy34,active:n.to&&f||n.active}])},[n.undo?he("",!0):($(),X("a",{key:0,class:"app-navigation-entry-link","aria-current":n.active||n.to&&f?"page":void 0,"aria-description":n.ariaDescription,"aria-expanded":e.$slots.default?o.opened.toString():void 0,href:n.href||h||"#",target:s.isExternal(n.href)?"_blank":void 0,title:n.title||n.name,onBlur:t[1]||(t[1]=(...m)=>s.handleBlur&&s.handleBlur(...m)),onClick:m=>s.onClick(m,g,h),onFocus:t[2]||(t[2]=(...m)=>s.handleFocus&&s.handleFocus(...m)),onKeydown:t[3]||(t[3]=pa(bn((...m)=>s.handleTab&&s.handleTab(...m),["exact"]),["tab"]))},[ue("div",{class:Be(["app-navigation-entry-icon",{[n.icon]:n.icon}])},[n.loading?($(),ge(a,{key:0})):ye(e.$slots,"icon",{key:1,active:n.active||n.to&&f},void 0,!0)],2),ue("span",{class:Be(["app-navigation-entry__name",{"hidden-visually":o.editingActive}])},xe(n.name),3),o.editingActive?($(),X("div",zx,[le(i,{ref:"editingInput",modelValue:o.editingValue,"onUpdate:modelValue":t[0]||(t[0]=m=>o.editingValue=m),placeholder:n.editPlaceholder!==""?n.editPlaceholder:n.name,primary:n.to&&f||n.active,onCancel:s.cancelEditing,onConfirm:s.handleEditingDone},null,8,["modelValue","placeholder","primary","onCancel","onConfirm"])])):he("",!0)],40,jx)),n.undo?($(),X("div",Ux,[ue("div",Vx,xe(n.name),1)])):he("",!0),(e.$slots.actions||e.$slots.counter||n.editable||n.undo)&&!o.editingActive?($(),X("div",{key:2,class:Be(["app-navigation-entry__utils",{"app-navigation-entry__utils--display-actions":n.forceDisplayActions||o.menuOpenLocalValue||n.menuOpen}])},[e.$slots.counter?($(),X("div",Hx,[ye(e.$slots,"counter",{},void 0,!0)])):he("",!0),e.$slots.actions||n.editable&&!o.editingActive||n.undo?($(),ge(d,{key:1,ref:"actions",class:"app-navigation-entry__actions",container:"#app-navigation-vue",boundariesElement:o.actionsBoundariesElement,inline:n.inlineActions,placement:n.menuPlacement,open:n.menuOpen,forceMenu:n.forceMenu,defaultIcon:n.menuIcon,variant:"tertiary","onUpdate:open":s.onMenuToggle},{icon:pe(()=>[ye(e.$slots,"menu-icon",{},void 0,!0)]),default:pe(()=>[n.editable&&!o.editingActive?($(),ge(c,{key:0,"aria-label":s.editButtonAriaLabel,onClick:s.handleEdit},{icon:pe(()=>[le(u,{size:20})]),default:pe(()=>[wt(" "+xe(n.editLabel),1)]),_:1},8,["aria-label","onClick"])):he("",!0),n.undo?($(),ge(c,{key:1,"aria-label":s.undoButtonAriaLabel,onClick:s.handleUndo},{icon:pe(()=>[le(l,{size:20})]),_:1},8,["aria-label","onClick"])):he("",!0),ye(e.$slots,"actions",{},void 0,!0)]),_:3},8,["boundariesElement","inline","placement","open","forceMenu","defaultIcon","onUpdate:open"])):he("",!0)],2)):he("",!0),n.allowCollapse&&e.$slots.default?($(),ge(p,{key:3,active:n.to&&f||n.active,open:o.opened,onClick:bn(s.toggleCollapse,["prevent","stop"])},null,8,["active","open","onClick"])):he("",!0),ye(e.$slots,"extra",{},void 0,!0)],2)]),_:3},16)),s.canHaveChildren&&e.$slots.default?($(),X("ul",Gx,[ye(e.$slots,"default",{},void 0,!0)])):he("",!0)],10,Mx)}const qx=He(Ix,[["render",Wx],["__scopeId","data-v-e4d562ae"]]),Kx={class:"input-field__main-wrapper"},Xx=["id","aria-describedby","disabled","placeholder","type","value"],Zx=["for"],Yx={class:"input-field__icon input-field__icon--leading"},Jx={key:2,class:"input-field__icon input-field__icon--trailing"},Qx=["id"],eA=We({inheritAttrs:!1,__name:"NcInputField",props:Dr({class:{default:""},inputClass:{default:""},id:{default:()=>Go()},label:{default:void 0},labelOutside:{type:Boolean},type:{default:"text"},placeholder:{default:void 0},showTrailingButton:{type:Boolean},trailingButtonLabel:{default:void 0},success:{type:Boolean},error:{type:Boolean},helperText:{default:""},disabled:{type:Boolean},pill:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:Dr(["trailingButtonClick"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const r=Vo(e,"modelValue"),o=e,s=n;t({focus:p,select:h});const a=Ny(),i=ro("input"),u=se(()=>o.showTrailingButton||o.success),c=se(()=>{if(o.placeholder)return o.placeholder;if(o.label)return Gl?o.label:""}),l=se(()=>o.label||o.labelOutside),d=se(()=>{const f=[];return o.helperText&&f.push(`${o.id}-helper-text`),a["aria-describedby"]&&f.push(String(a["aria-describedby"])),f.join(" ")||void 0});function p(f){i.value.focus(f)}function h(){i.value.select()}function g(f){const m=f.target;r.value=o.type==="number"&&typeof r.value=="number"?parseFloat(m.value):m.value}return(f,m)=>($(),X("div",{class:Be(["input-field",[{"input-field--disabled":f.disabled,"input-field--error":f.error,"input-field--label-outside":f.labelOutside||!l.value,"input-field--leading-icon":!!f.$slots.icon,"input-field--trailing-icon":u.value,"input-field--pill":f.pill,"input-field--success":f.success,"input-field--legacy":j(Gl)},f.$props.class]])},[ue("div",Kx,[ue("input",ft(f.$attrs,{id:f.id,ref:"input","aria-describedby":d.value,"aria-live":"polite",class:["input-field__input",f.inputClass],disabled:f.disabled,placeholder:c.value,type:f.type,value:r.value.toString(),onInput:g}),null,16,Xx),!f.labelOutside&&l.value?($(),X("label",{key:0,class:"input-field__label",for:f.id},xe(f.label),9,Zx)):he("",!0),Rn(ue("div",Yx,[ye(f.$slots,"icon",{},void 0,!0)],512),[[er,!!f.$slots.icon]]),f.showTrailingButton?($(),ge(Qe,{key:1,class:"input-field__trailing-button","aria-label":f.trailingButtonLabel,disabled:f.disabled,variant:"tertiary-no-background",onClick:m[0]||(m[0]=y=>s("trailingButtonClick",y))},{icon:pe(()=>[ye(f.$slots,"trailing-button-icon",{},void 0,!0)]),_:3},8,["aria-label","disabled"])):f.success||f.error?($(),X("div",Jx,[f.success?($(),ge(Ve,{key:0,path:j(Vl)},null,8,["path"])):($(),ge(Ve,{key:1,path:j(oh)},null,8,["path"]))])):he("",!0)]),f.helperText?($(),X("p",{key:0,id:`${f.id}-helper-text`,class:"input-field__helper-text-message"},[f.success?($(),ge(Ve,{key:0,class:"input-field__helper-text-message__icon",path:j(Vl),inline:""},null,8,["path"])):f.error?($(),ge(Ve,{key:1,class:"input-field__helper-text-message__icon",path:j(oh),inline:""},null,8,["path"])):he("",!0),wt(" "+xe(f.helperText),1)],8,Qx)):he("",!0)],2))}}),ec=He(eA,[["__scopeId","data-v-8e16cbb5"]]);gn(zE,YE);const tA=We({__name:"NcAppNavigationSearch",props:Dr({label:{type:String,default:Ie("Search …")},placeholder:{type:String,default:null}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Vo(e,"modelValue"),n=Zi(),r=Ae(),{focused:o}=_E(r),s=Number.parseInt(window.getComputedStyle(window.document.body).getPropertyValue("--animation-quick"))||100,a=ro("actionsContainer"),i=()=>!!n.actions?.({}),u=Ae(!0),c=Ae(),l=Ae(!1);et(o,()=>{u.value=!o.value,window.clearTimeout(c.value),u.value?l.value=!1:window.setTimeout(()=>{l.value=!u.value},s)});function d(){t.value="",i()&&(u.value=!0,Cn(()=>a.value?.querySelector("button")?.focus()))}return(p,h)=>($(),X("div",{class:Be(["app-navigation-search",{"app-navigation-search--has-actions":i()}])},[le(ec,{ref_key:"inputElement",ref:r,modelValue:t.value,"onUpdate:modelValue":h[0]||(h[0]=g=>t.value=g),"aria-label":e.label,class:"app-navigation-search__input",labelOutside:"",placeholder:e.placeholder??e.label,showTrailingButton:t.value.length>0,trailingButtonLabel:j(Ie)("Clear search"),type:"search",onTrailingButtonClick:d},{"trailing-button-icon":pe(()=>[le(fm,{size:20})]),_:1},8,["modelValue","aria-label","placeholder","showTrailingButton","trailingButtonLabel"]),i()?($(),X("div",{key:0,ref:"actionsContainer",class:Be(["app-navigation-search__actions",{"app-navigation-search__actions--hidden":!u.value,"hidden-visually":l.value}])},[ye(p.$slots,"actions",{},void 0,!0)],2)):he("",!0)],2))}}),nA=He(tA,[["__scopeId","data-v-191b6717"]]);gn(KE);const rA=` @@ -32,7 +32,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho -`,oA=` @@ -58,25 +58,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho -`,sA={class:"vue-skip-actions__container"},aA={class:"vue-skip-actions__headline"},iA={class:"vue-skip-actions__buttons"},uA=We({__name:"NcContent",props:{appName:{}},setup(e){const t=e;Zt(hm,i),Zt(s2,"#content-vue"),Zt("appName",se(()=>t.appName));const n=fa(),r=Ae(!1),o=Ae(),s=se(()=>o.value==="navigation"?oA:rA);$f(()=>{const u=document.getElementById("skip-actions");u&&(u.innerHTML="",u.classList.add("vue-skip-actions"))});function a(){Ar("toggle-navigation",{open:!0}),Cn(()=>{window.location.hash="app-navigation-vue",document.getElementById("app-navigation-vue").focus()})}function i(u){r.value=u,o.value||(o.value="navigation")}return(u,c)=>($(),X("div",{id:"content-vue",class:Be(["content",[`app-${u.appName.toLowerCase()}`,{"content--legacy":j(uo)}]])},[($(),ge(Sf,{to:"#skip-actions"},[ue("div",sA,[ue("div",aA,xe(j(Ie)("Keyboard navigation help")),1),ue("div",iA,[Rn(le(Qe,{href:"#app-navigation-vue",variant:"tertiary",onClick:bn(a,["prevent"]),onFocusin:c[0]||(c[0]=l=>o.value="navigation"),onMouseover:c[1]||(c[1]=l=>o.value="navigation")},{default:pe(()=>[wt(xe(j(Ie)("Skip to app navigation")),1)]),_:1},512),[[er,r.value]]),le(Qe,{href:"#app-content-vue",variant:"tertiary",onFocusin:c[2]||(c[2]=l=>o.value="content"),onMouseover:c[3]||(c[3]=l=>o.value="content")},{default:pe(()=>[wt(xe(j(Ie)("Skip to main content")),1)]),_:1})]),Rn(le(Ve,{class:"vue-skip-actions__image",svg:s.value,size:"auto"},null,8,["svg"]),[[er,!j(n)]])])])),ye(u.$slots,"default",{},void 0,!0)],2))}}),lA=He(uA,[["__scopeId","data-v-91d07631"]]);gn(IE);const cA={long:Ie("a few seconds ago"),short:Ie("seconds ago"),narrow:Ie("sec. ago")};function dA(e=Date.now(),t={}){let n;const r=se(()=>new Date(Bt(e))),o=se(()=>{const{language:i,relativeTime:u,ignoreSeconds:c}=Bt(t);return{...i&&{language:i},...u&&{relativeTime:u},ignoreSeconds:c?cA[u||"long"]:!1}}),s=Ae("");Gi(()=>a());function a(){if(s.value=sE(r.value,o.value),Bt(t).update!==!1){const i=Math.abs(Date.now()-new Date(Bt(e)).getTime()),u=i>12e4||o.value.ignoreSeconds?Math.min(i/60,18e5):1e3;n=window.setTimeout(a,u)}}return ur(()=>n&&window.clearTimeout(n)),Us(s)}function pA(e,t){const n=se(()=>({locale:Bc(),format:{dateStyle:"short",timeStyle:"medium"},...Bt(t)})),r=se(()=>new Intl.DateTimeFormat(n.value.locale,n.value.format));return se(()=>r.value.format(Bt(e)))}const hA=["data-timestamp","title","textContent"],Ph=We({__name:"NcDateTime",props:{timestamp:{},format:{default:()=>({timeStyle:"medium",dateStyle:"short"})},relativeTime:{type:[Boolean,String],default:"long"},ignoreSeconds:{type:Boolean}},setup(e){const t=e,n=se(()=>({format:t.format})),r=se(()=>({ignoreSeconds:t.ignoreSeconds,relativeTime:t.relativeTime||"long",update:t.relativeTime!==!1})),o=pA(Al(()=>t.timestamp),n),s=dA(Al(()=>t.timestamp),r),a=se(()=>t.relativeTime?s.value:o.value);return(i,u)=>($(),X("span",{class:"nc-datetime",dir:"auto","data-timestamp":i.timestamp,title:j(o),textContent:xe(a.value)},null,8,hA))}});gn(XE);const fA=We({__name:"NcDialogButton",props:{callback:{type:Function,default:()=>{}},disabled:{type:Boolean,default:!1},icon:{default:void 0},label:{},type:{default:"button"},variant:{default:"tertiary"}},emits:["click"],setup(e,{emit:t}){const n=e,r=t,o=Ae(!1);async function s(a){if(!o.value){o.value=!0;try{const i=n.type==="reset"?!1:void 0,u=await n.callback?.()??i;u!==!1&&r("click",a,u)}finally{o.value=!1}}}return(a,i)=>($(),ge(j(Qe),{"aria-label":a.label,disabled:a.disabled,type:a.type,variant:a.variant,onClick:s},{icon:pe(()=>[ye(a.$slots,"icon",{},()=>[o.value?($(),ge(j(zc),{key:0,name:j(Ie)("Loading …")},null,8,["name"])):a.icon!==void 0?($(),ge(j(Ve),{key:1,svg:a.icon},null,8,["svg"])):he("",!0)])]),default:pe(()=>[wt(xe(a.label)+" ",1)]),_:3},8,["aria-label","disabled","type","variant"]))}}),gA=/mac|ipad|iphone|darwin/i.test(navigator.userAgent),mA=window.OCP?.Accessibility?.disableKeyboardShortcuts?.(),vA=/^[a-zA-Z0-9]$/,yA=/^[^\x20-\x7F]$/;function bA(e,t){return!(e.target instanceof HTMLElement)||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement||e.target.isContentEditable?!0:t.allowInModal?!1:Array.from(document.getElementsByClassName("modal-mask")).filter(n=>n.checkVisibility()).length>0}function Bh(e,t){return n=>{if((gA?n.metaKey:n.ctrlKey)===!!t.ctrl){if(n.altKey!==!!t.alt||t.shift!==void 0&&n.shiftKey!==!!t.shift||bA(n,t))return;t.prevent&&n.preventDefault(),t.stop&&n.stopPropagation(),e(n)}}}function $h(e,t=()=>{},n={}){if(mA)return()=>{};const r=(i,u)=>{if(i.key===u)return!0;if(n.caseSensitive){const c=u===u.toLowerCase(),l=i.key===i.key.toLowerCase();if(c!==l)return!1}return vA.test(u)&&yA.test(i.key)?i.code.replace(/^(?:Key|Digit|Numpad)/,"")===u.toUpperCase():i.key.toLowerCase()===u.toLowerCase()},o=i=>typeof e=="function"?e(i):typeof e=="string"?r(i,e):Array.isArray(e)?e.some(u=>r(i,u)):!0,s=rh(o,Bh(t,n),{eventName:"keydown",dedupe:!0,passive:!n.prevent}),a=n.push?rh(o,Bh(t,n),{eventName:"keyup",passive:!n.prevent}):()=>{};return()=>{s(),a()}}function EA(e=document.body){const t=window.getComputedStyle(e).getPropertyValue("--background-invert-if-dark");return t!==void 0?t==="invert(100%)":!1}EA();const wA=Ae(Rm());window.addEventListener("resize",()=>{wA.value=Rm()});function Rm(){return window.outerHeight===window.screen.height}function Rh(e){return!e.parent||"vapor"in e||"vapor"in e.parent||e.parent.subTree!==e.vnode?null:e.parent}function CA(e){const t=[e];let n=Rh(e);for(;n;)t.push(n),n=Rh(n);return t}function xA(){const e=Mn();if(!e)throw new Error("useScopeId must be called within a setup context");const t=CA(e).map(n=>n.vnode.scopeId).filter(Boolean);return Object.fromEntries(t.map(n=>[n,""]))}gn(VE,ZE);const AA=["aria-labelledby","aria-describedby"],_A=["data-theme-light","data-theme-dark"],SA=["id"],kA={class:"icons-menu"},TA=["title"],OA=["id"],DA={class:"modal-container__content"},NA=We({inheritAttrs:!1,__name:"NcModal",props:Dr({name:{default:""},hasPrevious:{type:Boolean},hasNext:{type:Boolean},outTransition:{type:Boolean},enableSlideshow:{type:Boolean},slideshowDelay:{default:5e3},slideshowPaused:{type:Boolean},disableSwipe:{type:Boolean},spreadNavigation:{type:Boolean},size:{default:"normal"},noClose:{type:Boolean},closeOnClickOutside:{type:Boolean},dark:{type:Boolean},lightBackdrop:{type:Boolean},container:{default:"body"},closeButtonOutside:{type:Boolean},additionalTrapElements:{default:()=>[]},inlineActions:{default:0},labelId:{default:""},setReturnFocus:{default:void 0}},{show:{type:Boolean,default:!0},showModifiers:{}}),emits:Dr(["next","previous","close","update:show"],["update:show"]),setup(e,{emit:t}){hg(P=>({"046d2bb2":y.value,"71f7c020":g.value}));const n=Vo(e,"show"),r=e,o=t,s=xA(),a=Go(),i=ro("mask");let u;ur(()=>I()),et(()=>r.additionalTrapElements,P=>{u&&u.updateContainerElements([i.value,...P])});const{isActive:c,pause:l,resume:d}=hE(v,Al(()=>r.slideshowDelay),{immediate:!1}),p=Ae(0),h=Ae(!1);Gi(()=>{h.value&&!r.slideshowPaused?d():c.value&&l()});const g=se(()=>`${r.slideshowDelay}ms`),{stop:f}=Xg(i,{onSwipeEnd:C});ur(f),$h("Escape",()=>{zo().at(-1)===u&&D()},{allowInModal:!0}),$h(["ArrowLeft","ArrowRight"],P=>{document.activeElement&&!i.value.contains(document.activeElement)||(P.key==="ArrowLeft"!==Js?E():v())},{allowInModal:!0});const m=Zi(),y=se(()=>{let P=0;return r.hasNext&&r.enableSlideshow&&P++,!r.noClose&&r.closeButtonOutside&&P++,m.actions&&P++,P});Sn(()=>{!r.name&&r.labelId});function v(P){if(!r.hasNext){h.value=!1;return}P&&c.value&&_(),o("next",P)}function E(P){r.hasPrevious&&(P&&c.value&&_(),o("previous",P))}function C(P,oe){if(!r.disableSwipe){if(oe!=="left"&&oe!=="right")return;oe==="left"!==Js?v(P):E(P)}}function _(){l(),d(),p.value++}function D(P){r.noClose||(n.value=!1,setTimeout(()=>{o("close",P)},300))}function R(P){r.closeOnClickOutside&&D(P)}async function Z(){if(u)return;await Cn();const P={allowOutsideClick:!0,fallbackFocus:i.value,trapStack:zo(),escapeDeactivates:!1,setReturnFocus:r.setReturnFocus};u=Rc([i.value,...r.additionalTrapElements],P),u.activate()}function I(){u&&(u?.deactivate(),u=void 0)}return(P,oe)=>($(),ge(Sf,{disabled:P.container===null,to:P.container},[le(ns,{name:"fade",appear:"",onAfterEnter:Z,onBeforeLeave:I},{default:pe(()=>[Rn(ue("div",ft({...P.$attrs,...j(s)},{ref:"mask",class:["modal-mask",{"modal-mask--opaque":P.dark||P.closeButtonOutside||P.hasPrevious||P.hasNext,"modal-mask--light":P.lightBackdrop}],role:"dialog","aria-modal":"true","aria-labelledby":P.labelId||`modal-name-${j(a)}`,"aria-describedby":"modal-description-"+j(a),tabindex:"-1"}),[le(ns,{name:"fade-visibility",appear:""},{default:pe(()=>[ue("div",{class:"modal-header","data-theme-light":P.lightBackdrop,"data-theme-dark":!P.lightBackdrop},[P.name.trim()!==""?($(),X("h2",{key:0,id:"modal-name-"+j(a),class:"modal-header__name"},xe(P.name),9,SA)):he("",!0),ue("div",kA,[P.hasNext&&P.enableSlideshow?($(),X("button",{key:0,class:Be(["play-pause-icons",{"play-pause-icons--paused":P.slideshowPaused}]),title:j(c)?j(Ie)("Pause slideshow"):j(Ie)("Start slideshow"),type:"button",onClick:oe[0]||(oe[0]=O=>h.value=!h.value)},[le(Ve,{class:"play-pause-icons__icon",inline:"",name:j(c)?j(Ie)("Pause slideshow"):j(Ie)("Start slideshow"),path:j(c)?j(NE):j(PE)},null,8,["name","path"]),j(c)?($(),X("svg",{key:`${j(a)}-animation-${p.value}`,class:"progress-ring",height:"50",width:"50"},[...oe[1]||(oe[1]=[ue("circle",{class:"progress-ring__circle",stroke:"white","stroke-width":"2",fill:"transparent",r:"15",cx:"25",cy:"25"},null,-1)])])):he("",!0)],10,TA)):he("",!0),le(jc,{class:"header-actions",inline:P.inlineActions},{default:pe(()=>[ye(P.$slots,"actions",{},void 0,!0)]),_:3},8,["inline"]),!P.noClose&&P.closeButtonOutside?($(),ge(Qe,{key:1,"aria-label":j(Ie)("Close"),class:"header-close",variant:"tertiary",onClick:D},{icon:pe(()=>[le(Ve,{path:j(Hl)},null,8,["path"])]),_:1},8,["aria-label"])):he("",!0)])],8,_A)]),_:3}),le(ns,{name:`modal-${P.outTransition?"out":"in"}`,appear:""},{default:pe(()=>[Rn(ue("div",{class:Be(["modal-wrapper",[`modal-wrapper--${P.size}`,{"modal-wrapper--spread-navigation":P.spreadNavigation}]]),onMousedown:bn(R,["self"])},[le(ns,{name:"fade-visibility",appear:""},{default:pe(()=>[Rn(le(Qe,{"aria-label":j(Ie)("Previous"),class:"prev",variant:"tertiary-no-background",onClick:E},{icon:pe(()=>[le(Ve,{directional:"",path:j(TE),size:40},null,8,["path"])]),_:1},8,["aria-label"]),[[er,P.hasPrevious]])]),_:1}),ue("div",{id:"modal-description-"+j(a),class:"modal-container"},[ue("div",DA,[ye(P.$slots,"default",{},void 0,!0)]),!P.noClose&&!P.closeButtonOutside?($(),ge(Qe,{key:0,"aria-label":j(Ie)("Close"),class:"modal-container__close",variant:"tertiary",onClick:D},{icon:pe(()=>[le(Ve,{path:j(Hl)},null,8,["path"])]),_:1},8,["aria-label"])):he("",!0)],8,OA),le(ns,{name:"fade-visibility",appear:""},{default:pe(()=>[Rn(le(Qe,{"aria-label":j(Ie)("Next"),class:"next",variant:"tertiary-no-background",onClick:v},{icon:pe(()=>[le(Ve,{directional:"",path:j(Yg),size:40},null,8,["path"])]),_:1},8,["aria-label"]),[[er,P.hasNext]])]),_:1})],34),[[er,n.value]])]),_:3},8,["name"])],16,AA),[[er,n.value]])]),_:3})],8,["disabled","to"]))}}),PA=He(NA,[["__scopeId","data-v-3c357e2d"]]),BA=["id","textContent"],$A=["aria-label","aria-labelledby"],RA={class:"dialog__text"},LA={class:"dialog__actions"},FA=We({__name:"NcDialog",props:Dr({name:{},message:{default:""},additionalTrapElements:{default:()=>[]},container:{default:"body"},size:{default:"small"},buttons:{default:()=>[]},isForm:{type:Boolean},noClose:{type:Boolean},closeOnClickOutside:{type:Boolean},outTransition:{type:Boolean},navigationAriaLabel:{default:""},navigationAriaLabelledby:{default:""},contentClasses:{default:""},dialogClasses:{default:""},navigationClasses:{default:""}},{open:{type:Boolean,default:!0},openModifiers:{}}),emits:Dr(["closing","reset","submit"],["update:open"]),setup(e,{emit:t}){const n=Vo(e,"open"),r=e,o=t,s=Zi(),a=ro("wrapper"),{width:i}=wE(a,{width:900,height:0}),u=se(()=>i.value<876),c=se(()=>s?.navigation!==void 0),l=Go(),d=se(()=>r.navigationAriaLabel||void 0),p=se(()=>{if(!r.navigationAriaLabel)return r.navigationAriaLabelledby||l}),h=ro("dialogElement"),g=se(()=>r.isForm&&!c.value?"form":"div"),f=se(()=>g.value!=="form"?{}:{submit(_){_.preventDefault(),o("submit",_)},reset(_){_.preventDefault(),o("reset",_)}}),m=Ae(!0);function y(_,D){_.type==="submit"&&g.value==="form"&&"reportValidity"in h.value&&!h.value.reportValidity()||(v(D),window.setTimeout(()=>E(),300))}function v(_){m.value=!1,o("closing",_)}function E(){m.value=!0,n.value=!1}const C=se(()=>({noClose:r.noClose,container:r.container===void 0?"body":r.container,labelId:l,size:r.size,show:n.value&&m.value,outTransition:r.outTransition,closeOnClickOutside:r.closeOnClickOutside,additionalTrapElements:r.additionalTrapElements}));return(_,D)=>n.value?($(),ge(j(PA),ft({key:0,class:"dialog__modal",disableSwipe:""},C.value,{onClose:E,"onUpdate:show":D[0]||(D[0]=R=>v())}),{default:pe(()=>[ue("h2",{id:j(l),class:"dialog__name",textContent:xe(_.name)},null,8,BA),($(),ge(la(g.value),ft({ref:"dialogElement",class:["dialog",_.dialogClasses]},Oy(f.value)),{default:pe(()=>[ue("div",{ref:"wrapper",class:Be(["dialog__wrapper",[{"dialog__wrapper--collapsed":u.value}]])},[c.value?($(),X("nav",{key:0,class:Be(["dialog__navigation",_.navigationClasses]),"aria-label":d.value,"aria-labelledby":p.value},[ye(_.$slots,"navigation",{isCollapsed:u.value},void 0,!0)],10,$A)):he("",!0),ue("div",{class:Be(["dialog__content",_.contentClasses])},[ye(_.$slots,"default",{},()=>[ue("p",RA,xe(_.message),1)],!0)],2)],2),ue("div",LA,[ye(_.$slots,"actions",{},()=>[($(!0),X(Ze,null,Ts(_.buttons,(R,Z)=>($(),ge(j(fA),ft({key:Z},{ref_for:!0},R,{onClick:(I,P)=>y(R,P)}),null,16,["onClick"]))),128))],!0)])]),_:3},16,["class"]))]),_:3},16)):he("",!0)}}),IA=He(FA,[["__scopeId","data-v-24e91b99"]]),MA=["aria-labelledby"],jA={key:0,class:"empty-content__icon","aria-hidden":"true"},zA=["id"],UA={key:2,class:"empty-content__description"},VA={key:3,class:"empty-content__action"},HA=We({__name:"NcEmptyContent",props:{description:{default:""},name:{default:""}},setup(e){const t=Go();return(n,r)=>($(),X("div",{"aria-labelledby":j(t),class:"empty-content",role:"note"},[n.$slots.icon?($(),X("div",jA,[ye(n.$slots,"icon",{},void 0,!0)])):he("",!0),n.name!==""||n.$slots.name?($(),X("div",{key:1,id:j(t),class:"empty-content__name"},[ye(n.$slots,"name",{},()=>[wt(xe(n.name),1)],!0)],8,zA)):he("",!0),n.description!==""||n.$slots.description?($(),X("p",UA,[ye(n.$slots,"description",{},()=>[wt(xe(n.description),1)],!0)])):he("",!0),n.$slots.action?($(),X("div",VA,[ye(n.$slots,"action",{},void 0,!0)])):he("",!0)],8,MA))}}),Ju=He(HA,[["__scopeId","data-v-8609a4c1"]]),GA=["title"],WA=We({__name:"NcCounterBubble",props:{count:{},active:{type:Boolean},type:{default:""},raw:{type:Boolean}},setup(e){const t=e,n=se(()=>t.raw?t.count.toString():new Intl.NumberFormat(Bc(),{notation:"compact",compactDisplay:"short"}).format(t.count)),r=se(()=>{if(t.raw)return;const o=t.count.toString();if(o!==n.value)return o});return(o,s)=>($(),X("div",{class:Be(["counter-bubble__counter",{active:o.active,"counter-bubble__counter--highlighted":o.type==="highlighted","counter-bubble__counter--outlined":o.type==="outlined"}]),title:r.value},xe(n.value),11,GA))}}),qA=He(WA,[["__scopeId","data-v-36ffc13f"]]),KA={name:"NcListItem",components:{NcActions:jc,NcCounterBubble:qA,NcVNodes:$m},inheritAttrs:!1,setup(){return{isLegacy34:uo}},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"],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,t,n){this.$emit("click",e),!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&n&&(t?.(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)}}},XA=["id","aria-label","href","target","rel","onClick"],ZA={class:"list-item-content"},YA={class:"list-item-content__main"},JA={class:"list-item-content__name"},QA={class:"list-item-content__details"},e_={key:0,class:"list-item-details__details"},t_={key:1,class:"list-item-details__extra"},n_={key:1,class:"list-item-details__indicator"},r_={key:0,class:"list-item-content__extra-actions"},o_={key:2,class:"list-item__extra"};function s_(e,t,n,r,o,s){const a=Ye("NcCounterBubble"),i=Ye("NcActions");return $(),ge(la(n.to?"router-link":"NcVNodes"),Ms(Io({...n.to&&{custom:!0,to:n.to}})),{default:pe(({href:u,navigate:c,isActive:l})=>[ue("li",ft({class:["list-item__wrapper",{"list-item__wrapper--active":n.active??l,"list-item__wrapper--legacy":r.isLegacy34}]},e.$attrs),[ue("div",{ref:"list-item",class:Be(["list-item",{"list-item--compact":n.compact,"list-item--one-line":n.oneLine}]),onMouseover:t[5]||(t[5]=(...d)=>s.handleMouseover&&s.handleMouseover(...d)),onMouseleave:t[6]||(t[6]=(...d)=>s.handleMouseleave&&s.handleMouseleave(...d))},[ue("a",{id:n.anchorId||void 0,"aria-label":n.linkAriaLabel,class:"list-item__anchor",href:u||n.href,target:n.target||(n.href==="#"?void 0:"_blank"),rel:n.href==="#"?void 0:"noopener noreferrer",onFocus:t[0]||(t[0]=(...d)=>s.showActions&&s.showActions(...d)),onFocusout:t[1]||(t[1]=(...d)=>s.handleBlur&&s.handleBlur(...d)),onClick:d=>s.onClick(d,c,u),onDragstart:t[2]||(t[2]=d=>e.$emit("dragstart",d)),onKeydown:t[3]||(t[3]=pa((...d)=>s.hideActions&&s.hideActions(...d),["esc"]))},[ye(e.$slots,"icon",{},void 0,!0),ue("div",ZA,[ue("div",YA,[ue("div",JA,[ye(e.$slots,"name",{},()=>[wt(xe(n.name),1)],!0)]),o.hasSubname?($(),X("div",{key:0,class:Be(["list-item-content__subname",{"list-item-content__subname--bold":n.bold}])},[ye(e.$slots,"subname",{},void 0,!0)],2)):he("",!0)]),ue("div",QA,[s.showDetails?($(),X("div",e_,[ye(e.$slots,"details",{},()=>[wt(xe(n.details),1)],!0)])):he("",!0),n.counterNumber!==0||o.hasIndicator?Rn(($(),X("div",t_,[n.counterNumber!==0?($(),ge(a,{key:0,count:n.counterNumber,active:r.isLegacy34?n.active??l:!1,class:"list-item-details__counter",type:n.counterType},null,8,["count","active","type"])):he("",!0),o.hasIndicator?($(),X("span",n_,[ye(e.$slots,"indicator",{},void 0,!0)])):he("",!0)],512)),[[er,s.showAdditionalElements]]):he("",!0)])])],40,XA),e.$slots["extra-actions"]?($(),X("div",r_,[ye(e.$slots,"extra-actions",{},void 0,!0)])):he("",!0),n.forceDisplayActions||o.displayActionsOnHoverFocus?($(),X("div",{key:1,class:"list-item-content__actions",onFocusout:t[4]||(t[4]=(...d)=>s.handleBlur&&s.handleBlur(...d))},[le(i,{ref:"actions",primary:r.isLegacy34?n.active??l:!1,forceMenu:n.forceMenu,"aria-label":n.actionsAriaLabel,"onUpdate:open":s.handleActionsUpdateOpen},xc({default:pe(()=>[ye(e.$slots,"actions",{},void 0,!0)]),_:2},[e.$slots["actions-icon"]?{name:"icon",fn:pe(()=>[ye(e.$slots,"actions-icon",{},void 0,!0)]),key:"0"}:void 0]),1032,["primary","forceMenu","aria-label","onUpdate:open"])],32)):he("",!0),e.$slots.extra?($(),X("div",o_,[ye(e.$slots,"extra",{},void 0,!0)])):he("",!0)],34)],16)]),_:3},16)}const a_=He(KA,[["render",s_],["__scopeId","data-v-7e90555e"]]);gn(UE,tm);const i_=We({__name:"NcTextField",props:Dr({class:{},inputClass:{},id:{},label:{},labelOutside:{type:Boolean},type:{},placeholder:{},showTrailingButton:{type:Boolean},trailingButtonLabel:{default:void 0},success:{type:Boolean},error:{type:Boolean},helperText:{},disabled:{type:Boolean},pill:{type:Boolean},trailingButtonIcon:{default:"close"}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const n=Vo(e,"modelValue"),r=e;t({focus:u,select:c});const o=ro("inputField"),s={arrowEnd:Ie("Save changes"),close:Ie("Clear text"),undo:Ie("Undo changes")},a=new Set(Object.keys(ec.props)),i=se(()=>{const l=Object.fromEntries(Object.entries(r).filter(([d])=>a.has(d)));return l.trailingButtonLabel??=s[r.trailingButtonIcon],l});function u(l){o.value.focus(l)}function c(){o.value.select()}return(l,d)=>($(),ge(j(ec),ft(i.value,{ref:"inputField",modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=p=>n.value=p)}),xc({_:2},[l.$slots.icon?{name:"icon",fn:pe(()=>[ye(l.$slots,"icon")]),key:"0"}:void 0,l.type!=="search"?{name:"trailing-button-icon",fn:pe(()=>[l.trailingButtonIcon==="arrowEnd"?($(),ge(j(Ve),{key:0,directional:"",path:j(Zg)},null,8,["path"])):($(),ge(j(Ve),{key:1,path:l.trailingButtonIcon==="undo"?j(BE):j(Hl)},null,8,["path"]))]),key:"1"}:void 0]),1040,["modelValue"]))}});var u_="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",l_="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",tc="M6,2A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6M6,4H13V9H18V20H6V4M8,12V14H16V12H8M8,16V18H13V16H8Z",c_="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",d_="M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",p_="M3,11H11V3H3M3,21H11V13H3M13,21H21V13H13M13,3V11H21V3",h_="M9,5V9H21V5M9,19H21V15H9M9,14H21V10H9M4,9H8V5H4M4,19H8V15H4M4,14H8V10H4V14Z";const f_={class:"file-card__preview"},g_={class:"file-card__content"},m_={key:0,class:"file-card__icon"},v_={class:"file-card__text"},y_={class:"file-card__name"},b_={key:0,class:"file-card__subname"},E_=We({__name:"FileCard",emits:["click"],setup(e){return(t,n)=>($(),X("button",{type:"button",class:"file-card",onClick:n[0]||(n[0]=r=>t.$emit("click",r))},[ue("div",f_,[ye(t.$slots,"preview",{},void 0,!0)]),ue("div",g_,[t.$slots.icon?($(),X("span",m_,[ye(t.$slots,"icon",{},void 0,!0)])):he("",!0),ue("div",v_,[ue("div",y_,[ye(t.$slots,"name",{},void 0,!0)]),t.$slots.subname?($(),X("div",b_,[ye(t.$slots,"subname",{},void 0,!0)])):he("",!0)])])]))}}),ru=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},w_=ru(E_,[["__scopeId","data-v-945915af"]]),C_={class:"file-preview"},x_=["src","alt"],A_=We({__name:"FilePreview",props:{file:{},size:{default:300},fallbackIconSize:{default:48},alt:{default:""}},setup(e){const t=e,n=Ae(!1),r=se(()=>{const o=(t.file.attributes?.etag??"").slice(0,6);return xr("/core/preview?fileId={fileid}&x={x}&y={y}&v={v}&a=1&mimeFallback=true",{fileid:t.file.fileid,x:t.size,y:t.size,v:o})});return(o,s)=>($(),X("div",C_,[n.value?($(),ge(j(Ve),{key:1,path:j(tc),size:e.fallbackIconSize,class:"file-preview__fallback"},null,8,["path","size"])):($(),X("img",{key:0,src:r.value,alt:e.alt,loading:"lazy",class:"file-preview__image",onError:s[0]||(s[0]=a=>n.value=!0)},null,40,x_))]))}}),Lh=ru(A_,[["__scopeId","data-v-52ee489a"]]),__={class:"template-section__header"},S_={id:"template-section-heading",class:"template-section__heading"},k_={key:0,class:"template-section__nav"},T_={class:"template-card__preview"},O_={class:"template-card__name"},D_=["onClick"],N_={class:"template-card__preview"},P_=["src","alt","onError"],B_={class:"template-card__name"},Fh=160,Ih=12,$_=We({__name:"TemplateSection",props:{creator:{}},emits:["select"],setup(e,{emit:t}){const n={document:["hsl(203 79% 78%)","hsl(203 79% 60%)","hsl(203 70% 42%)","hsl(203 65% 26%)"],spreadsheet:["hsl(79 46% 70%)","hsl(79 46% 52%)","hsl(79 50% 38%)","hsl(79 55% 24%)"],presentation:["hsl(23 83% 80%)","hsl(23 83% 66%)","hsl(23 75% 48%)","hsl(23 70% 32%)"],drawing:["hsl(47 80% 62%)","hsl(47 80% 39%)","hsl(47 82% 28%)","hsl(47 85% 18%)"]},r={"application/vnd.oasis.opendocument.presentation":"presentation","application/vnd.oasis.opendocument.presentation-template":"presentation","application/vnd.ms-powerpoint":"presentation","application/vnd.openxmlformats-officedocument.presentationml.presentation":"presentation","application/vnd.oasis.opendocument.spreadsheet":"spreadsheet","application/vnd.oasis.opendocument.spreadsheet-template":"spreadsheet","application/vnd.ms-excel":"spreadsheet","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"spreadsheet","application/vnd.oasis.opendocument.graphics":"drawing","application/vnd.oasis.opendocument.graphics-template":"drawing"},o=e,s=t,a=Ae(null),i=Ae(!1),u=Ae(!1),c=Ae({});let l=null;const d=se(()=>{for(const C of o.creator.mimetypes??[]){const _=r[C];if(_)return _}return"document"}),p=se(()=>{const C=d.value==="presentation",_=C?150:200,D=C?16/9:2/3;return{width:`${Math.round(_*D)}px`,"--tpl-preview-height":`${_}px`}}),h=se(()=>{const[C,_,D,R]=n[d.value];return{"--tpl-glow-1":C,"--tpl-glow-2":_,"--tpl-glow-3":D,"--tpl-glow-4":R}}),g=se(()=>i.value||u.value),f=se(()=>[{blank:!0},...o.creator.templates??[]]);et(()=>o.creator,()=>{a.value&&(a.value.scrollLeft=0),m()});function m(){if(!a.value)return;const{scrollLeft:C,scrollWidth:_,clientWidth:D}=a.value;i.value=C>0,u.value=C+D<_-1}function y(C){if(!a.value)return;const _=Math.max(Fh+Ih,a.value.clientWidth-(Fh+Ih));a.value.scrollBy({left:C*_,behavior:"smooth"})}function v(C){const _=C.lastIndexOf(".");return _>0?C.slice(0,_):C}function E(C){return C.previewUrl?C.previewUrl:xr("/core/preview?fileId={fileid}&x=256&y=256&a=1",{fileid:C.fileid})}return Sn(()=>{l=new ResizeObserver(()=>m()),a.value&&l.observe(a.value),m()}),ur(()=>{l?.disconnect()}),(C,_)=>($(),X("section",{class:"template-section",style:hn(h.value),"aria-labelledby":"template-section-heading"},[ue("div",__,[ue("h2",S_,xe(j(Ue)("office","Create new")),1),g.value?($(),X("div",k_,[le(j(Qe),{variant:"tertiary","aria-label":j(Ue)("office","Scroll left"),disabled:!i.value,onClick:_[0]||(_[0]=D=>y(-1))},{icon:pe(()=>[le(j(Ve),{svg:j(u_),size:20},null,8,["svg"])]),_:1},8,["aria-label","disabled"]),le(j(Qe),{variant:"tertiary","aria-label":j(Ue)("office","Scroll right"),disabled:!u.value,onClick:_[1]||(_[1]=D=>y(1))},{icon:pe(()=>[le(j(Ve),{svg:j(l_),size:20},null,8,["svg"])]),_:1},8,["aria-label","disabled"])])):he("",!0)]),ue("ul",{ref_key:"list",ref:a,class:"template-section__list",onScroll:m},[($(!0),X(Ze,null,Ts(f.value,D=>($(),X("li",{key:"blank"in D?"blank":D.fileid,class:"template-section__item"},["blank"in D?($(),X("button",{key:0,class:"template-card",style:hn(p.value),onClick:_[2]||(_[2]=R=>s("select",e.creator,null))},[ue("span",T_,[le(j(Ve),{svg:e.creator.iconSvgInline??"",size:32},null,8,["svg"])]),ue("span",O_,xe(j(Ue)("office","Blank")),1)],4)):($(),X("button",{key:1,class:"template-card",style:hn(p.value),onClick:R=>s("select",e.creator,D)},[ue("span",N_,[D.hasPreview&&!c.value[D.fileid]?($(),X("img",{key:0,src:E(D),alt:v(D.basename),loading:"lazy",class:"template-card__image",onError:R=>c.value={...c.value,[D.fileid]:!0}},null,40,P_)):($(),ge(j(Ve),{key:1,svg:e.creator.iconSvgInline??"",size:48},null,8,["svg"]))]),ue("span",B_,xe(v(D.basename)),1)],12,D_))]))),128))],544)],4))}}),R_=ru($_,[["__scopeId","data-v-e970ce47"]]);function Uc(){return Ho("files_sharing","isPublic",null)??document.querySelector('input#isPublic[type="hidden"][name="isPublic"][value="1"]')!==null}function L_(){return Ho("files_sharing","sharingToken",null)??document.querySelector('input#sharingToken[type="hidden"]')?.value??null}var Qu={},F_={2(e){function t(o,s,a){o instanceof RegExp&&(o=n(o,a)),s instanceof RegExp&&(s=n(s,a));var i=r(o,s,a);return i&&{start:i[0],end:i[1],pre:a.slice(0,i[0]),body:a.slice(i[0]+o.length,i[1]),post:a.slice(i[1]+s.length)}}function n(o,s){var a=s.match(o);return a?a[0]:null}function r(o,s,a){var i,u,c,l,d,p=a.indexOf(o),h=a.indexOf(s,p+1),g=p;if(p>=0&&h>0){for(i=[],c=a.length;g>=0&&!d;)g==p?(i.push(g),p=a.indexOf(o,g+1)):i.length==1?d=[i.pop(),h]:((u=i.pop())=0?p:h;i.length&&(d=[c,l])}return d}e.exports=t,t.range=r},101(e,t,n){var r;e=n.nmd(e),(function(){var o=(e&&e.exports,typeof Qn=="object"&&Qn);o.global!==o&&o.window;var s=function(l){this.message=l};(s.prototype=new Error).name="InvalidCharacterError";var a=function(l){throw new s(l)},i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=/[\t\n\f\r ]/g,c={encode:function(l){l=String(l),/[^\0-\xFF]/.test(l)&&a("The string to be encoded contains characters outside of the Latin1 range.");for(var d,p,h,g,f=l.length%3,m="",y=-1,v=l.length-f;++y>18&63)+i.charAt(g>>12&63)+i.charAt(g>>6&63)+i.charAt(63&g);return f==2?(d=l.charCodeAt(y)<<8,p=l.charCodeAt(++y),m+=i.charAt((g=d+p)>>10)+i.charAt(g>>4&63)+i.charAt(g<<2&63)+"="):f==1&&(g=l.charCodeAt(y),m+=i.charAt(g>>2)+i.charAt(g<<4&63)+"=="),m},decode:function(l){var d=(l=String(l).replace(u,"")).length;d%4==0&&(d=(l=l.replace(/==?$/,"")).length),(d%4==1||/[^+a-zA-Z0-9/]/.test(l))&&a("Invalid character: the string to be decoded is not correctly encoded.");for(var p,h,g=0,f="",m=-1;++m>(-2*g&6)));return f},version:"1.0.0"};(r=function(){return c}.call(t,n,t,e))===void 0||(e.exports=r)})()},172(e,t){t.d=function(n){if(!n)return 0;for(var r=(n=n.toString()).length,o=n.length;o--;){var s=n.charCodeAt(o);56320<=s&&s<=57343&&o--,127>>32-o},rotr:function(r,o){return r<<32-o|r>>>o},endian:function(r){if(r.constructor==Number)return 16711935&n.rotl(r,8)|4278255360&n.rotl(r,24);for(var o=0;o0;r--)o.push(Math.floor(256*Math.random()));return o},bytesToWords:function(r){for(var o=[],s=0,a=0;s>>5]|=r[s]<<24-a%32;return o},wordsToBytes:function(r){for(var o=[],s=0;s<32*r.length;s+=8)o.push(r[s>>>5]>>>24-s%32&255);return o},bytesToHex:function(r){for(var o=[],s=0;s>>4).toString(16)),o.push((15&r[s]).toString(16));return o.join("")},hexToBytes:function(r){for(var o=[],s=0;s>>6*(3-i)&63)):o.push("=");return o.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/gi,"");for(var o=[],s=0,a=0;s>>6-2*a);return o}},e.exports=n},135(e){function t(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}e.exports=function(n){return n!=null&&(t(n)||(function(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&t(r.slice(0,0))})(n)||!!n._isBuffer)}},542(e,t,n){(function(){var r=n(298),o=n(526).utf8,s=n(135),a=n(526).bin,i=function(u,c){u.constructor==String?u=c&&c.encoding==="binary"?a.stringToBytes(u):o.stringToBytes(u):s(u)?u=Array.prototype.slice.call(u,0):Array.isArray(u)||u.constructor===Uint8Array||(u=u.toString());for(var l=r.bytesToWords(u),d=8*u.length,p=1732584193,h=-271733879,g=-1732584194,f=271733878,m=0;m>>24)|4278255360&(l[m]<<24|l[m]>>>8);l[d>>>5]|=128<>>9<<4)]=d;var y=i._ff,v=i._gg,E=i._hh,C=i._ii;for(m=0;m>>0,h=h+D>>>0,g=g+R>>>0,f=f+Z>>>0}return r.endian([p,h,g,f])};i._ff=function(u,c,l,d,p,h,g){var f=u+(c&l|~c&d)+(p>>>0)+g;return(f<>>32-h)+c},i._gg=function(u,c,l,d,p,h,g){var f=u+(c&d|l&~d)+(p>>>0)+g;return(f<>>32-h)+c},i._hh=function(u,c,l,d,p,h,g){var f=u+(c^l^d)+(p>>>0)+g;return(f<>>32-h)+c},i._ii=function(u,c,l,d,p,h,g){var f=u+(l^(c|~d))+(p>>>0)+g;return(f<>>32-h)+c},i._blocksize=16,i._digestsize=16,e.exports=function(u,c){if(u==null)throw new Error("Illegal argument "+u);var l=r.wordsToBytes(i(u,c));return c&&c.asBytes?l:c&&c.asString?a.bytesToString(l):r.bytesToHex(l)}})()},285(e,t,n){var r=n(2);e.exports=function(y,v){if(!y)return[];var E=(v=v||{}).max==null?1/0:v.max;return y.substr(0,2)==="{}"&&(y="\\{\\}"+y.substr(2)),m((function(C){return C.split("\\\\").join(o).split("\\{").join(s).split("\\}").join(a).split("\\,").join(i).split("\\.").join(u)})(y),E,!0).map(l)};var o="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",i="\0COMMA"+Math.random()+"\0",u="\0PERIOD"+Math.random()+"\0";function c(y){return parseInt(y,10)==y?parseInt(y,10):y.charCodeAt(0)}function l(y){return y.split(o).join("\\").split(s).join("{").split(a).join("}").split(i).join(",").split(u).join(".")}function d(y){if(!y)return[""];var v=[],E=r("{","}",y);if(!E)return y.split(",");var C=E.pre,_=E.body,D=E.post,R=C.split(",");R[R.length-1]+="{"+_+"}";var Z=d(D);return D.length&&(R[R.length-1]+=Z.shift(),R.push.apply(R,Z)),v.push.apply(v,R),v}function p(y){return"{"+y+"}"}function h(y){return/^-?0\d/.test(y)}function g(y,v){return y<=v}function f(y,v){return y>=v}function m(y,v,E){var C=[],_=r("{","}",y);if(!_)return[y];var D=_.pre,R=_.post.length?m(_.post,v,!1):[""];if(/\$$/.test(_.pre))for(var Z=0;Z=0;if(!G&&!ne)return _.post.match(/,(?!,).*\}/)?m(y=_.pre+"{"+_.body+a+_.post,v,!0):[y];if(G)P=_.body.split(/\.\./);else if((P=d(_.body)).length===1&&(P=m(P[0],v,!1).map(p)).length===1)return R.map((function(A){return _.pre+P[0]+A}));if(G){var Q=c(P[0]),Y=c(P[1]),ee=Math.max(P[0].length,P[1].length),J=P.length==3?Math.max(Math.abs(c(P[2])),1):1,te=g;Y0){var Se=new Array(we+1).join("0");_e=me<0?"-"+Se+_e.slice(1):Se+_e}}oe.push(_e)}}else{oe=[];for(var Fe=0;Fe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}})()?Reflect.construct:function(p,h,g){var f=[null];f.push.apply(f,h);var m=new(Function.bind.apply(p,f));return g&&o(m,g.prototype),m},r.apply(null,arguments)}function o(c,l){return o=Object.setPrototypeOf||function(d,p){return d.__proto__=p,d},o(c,l)}function s(c){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)},s(c)}var a=(function(c){function l(d){var p;return(function(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")})(this,l),(p=(function(h,g){return!g||t(g)!=="object"&&typeof g!="function"?(function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f})(h):g})(this,s(l).call(this,d))).name="ObjectPrototypeMutationError",p}return(function(d,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(p&&p.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),p&&o(d,p)})(l,c),l})(n(Error));function i(c,l){for(var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},p=l.split("."),h=p.length,g=function(y){var v=p[y];if(!c)return{v:void 0};if(v==="+"){if(Array.isArray(c))return{v:c.map((function(C,_){var D=p.slice(y+1);return D.length>0?i(C,D.join("."),d):d(c,_,p,y)}))};var E=p.slice(0,y).join(".");throw new Error("Object at wildcard (".concat(E,") is not an array"))}c=d(c,v,p,y)},f=0;f2&&arguments[2]!==void 0?arguments[2]:{};if(t(c)!="object"||c===null||l===void 0)return!1;if(typeof l=="number")return l in c;try{var p=!1;return i(c,l,(function(h,g,f,m){if(!u(f,m))return h&&h[g];p=d.own?h.hasOwnProperty(g):g in h})),p}catch{return!1}},hasOwn:function(c,l,d){return this.has(c,l,d||{own:!0})},isIn:function(c,l,d){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(t(c)!="object"||c===null||l===void 0)return!1;try{var h=!1,g=!1;return i(c,l,(function(f,m,y,v){return h=h||f===d||!!f&&f[m]===d,g=u(y,v)&&t(f)==="object"&&m in f,f&&f[m]})),p.validPath?h&&g:h}catch{return!1}},ObjectPrototypeMutationError:a}},47(e,t,n){var r=n(410),o=function(c){return typeof c=="string"};function s(c,l){for(var d=[],p=0;p=-1&&!l;d--){var p=d>=0?arguments[d]:to.cwd();if(!o(p))throw new TypeError("Arguments to path.resolve must be strings");p&&(c=p+"/"+c,l=p.charAt(0)==="/")}return(l?"/":"")+(c=s(c.split("/"),!l).join("/"))||"."},i.normalize=function(c){var l=i.isAbsolute(c),d=c.substr(-1)==="/";return(c=s(c.split("/"),!l).join("/"))||l||(c="."),c&&d&&(c+="/"),(l?"/":"")+c},i.isAbsolute=function(c){return c.charAt(0)==="/"},i.join=function(){for(var c="",l=0;l=0&&v[C]==="";C--);return E>C?[]:v.slice(E,C+1)}c=i.resolve(c).substr(1),l=i.resolve(l).substr(1);for(var p=d(c.split("/")),h=d(l.split("/")),g=Math.min(p.length,h.length),f=g,m=0;m=2&&(C=C.slice(2)):f(D)?C=_[4]:D?R&&(C=C.slice(2)):I>=2&&f(E.protocol)&&(C=_[4]),{protocol:D,slashes:R||f(D),slashesCount:I,rest:C}}function y(v,E,C){if(v=(v=d(v)).replace(a,""),!(this instanceof y))return new y(v,E,C);var _,D,R,Z,I,P,oe=p.slice(),O=typeof E,S=this,G=0;for(O!=="object"&&O!=="string"&&(C=E,E=null),C&&typeof C!="function"&&(C=o.parse),_=!(D=m(v||"",E=g(E))).protocol&&!D.slashes,S.slashes=D.slashes||_&&E.slashes,S.protocol=D.protocol||E.protocol||"",v=D.rest,(D.protocol==="file:"&&(D.slashesCount!==2||l.test(v))||!D.slashes&&(D.protocol||D.slashesCount<2||!f(S.protocol)))&&(oe[3]=[/(.*)/,"pathname"]);G{var t=e&&e.__esModule?()=>e.default:()=>e;return Xe.d(t,{a:t}),t},Xe.d=(e,t)=>{for(var n in t)Xe.o(t,n)&&!Xe.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},Xe.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Xe.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var I_=Xe(737),M_=Xe.n(I_);function el(e){if(!nc(e))throw new Error("Parameter was not an error")}function nc(e){return!!e&&typeof e=="object"&&(t=e,Object.prototype.toString.call(t)==="[object Error]")||e instanceof Error;var t}class Wt extends Error{constructor(t,n){const r=[...arguments],{options:o,shortMessage:s}=(function(i){let u,c="";if(i.length===0)u={};else if(nc(i[0]))u={cause:i[0]},c=i.slice(1).join(" ")||"";else if(i[0]&&typeof i[0]=="object")u=Object.assign({},i[0]),c=i.slice(1).join(" ")||"";else{if(typeof i[0]!="string")throw new Error("Invalid arguments passed to Layerr");u={},c=c=i.join(" ")||""}return{options:u,shortMessage:c}})(r);let a=s;if(o.cause&&(a=`${a}: ${o.cause.message}`),super(a),this.message=a,o.name&&typeof o.name=="string"?this.name=o.name:this.name="Layerr",o.cause&&Object.defineProperty(this,"_cause",{value:o.cause}),Object.defineProperty(this,"_info",{value:{}}),o.info&&typeof o.info=="object"&&Object.assign(this._info,o.info),Error.captureStackTrace){const i=o.constructorOpt||this.constructor;Error.captureStackTrace(this,i)}}static cause(t){return el(t),t._cause&&nc(t._cause)?t._cause:null}static fullStack(t){el(t);const n=Wt.cause(t);return n?`${t.stack} -caused by: ${Wt.fullStack(n)}`:t.stack??""}static info(t){el(t);const n={},r=Wt.cause(t);return r&&Object.assign(n,Wt.info(r)),t._info&&Object.assign(n,t._info),n}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}var j_=Xe(47),Ai=Xe.n(j_);const jh="__PATH_SEPARATOR_POSIX__",zh="__PATH_SEPARATOR_WINDOWS__";function tt(e){try{const t=e.replace(/\//g,jh).replace(/\\\\/g,zh);return encodeURIComponent(t).split(zh).join("\\\\").split(jh).join("/")}catch(t){throw new Wt(t,"Failed encoding path")}}function Uh(e){return e.startsWith("/")?e:"/"+e}function ra(e){let t=e;return t[0]!=="/"&&(t="/"+t),/^.+\/$/.test(t)&&(t=t.substr(0,t.length-1)),t}function z_(e){let t=new(M_())(e).pathname;return t.length<=0&&(t="/"),ra(t)}function nt(){for(var e=arguments.length,t=new Array(e),n=0;n1){var s=r.shift();r[0]=s+r[0]}r[0].match(/^file:\/\/\//)?r[0]=r[0].replace(/^([^/:]+):\/*/,"$1:///"):r[0]=r[0].replace(/^([^/:]+):\/*/,"$1://");for(var a=0;a0&&(i=i.replace(/^[\/]+/,"")),i=a0?"?":"")+c.join("&")})(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))})(t.reduce(((r,o,s)=>((s===0||o!=="/"||o==="/"&&r[r.length-1]!=="/")&&r.push(o),r)),[]))}var U_=Xe(542),cs=Xe.n(U_);function Vh(e,t){const n=e.url.replace("//",""),r=n.indexOf("/")==-1?"/":n.slice(n.indexOf("/")),o=e.method?e.method.toUpperCase():"GET",s=!!/(^|,)\s*auth\s*($|,)/.test(t.qop)&&"auth",a=`00000000${t.nc}`.slice(-8),i=(function(p,h,g,f,m,y,v){const E=v||cs()(`${h}:${g}:${f}`);return p&&p.toLowerCase()==="md5-sess"?cs()(`${E}:${m}:${y}`):E})(t.algorithm,t.username,t.realm,t.password,t.nonce,t.cnonce,t.ha1),u=cs()(`${o}:${r}`),c=s?cs()(`${i}:${t.nonce}:${a}:${t.cnonce}:${s}:${u}`):cs()(`${i}:${t.nonce}:${u}`),l={username:t.username,realm:t.realm,nonce:t.nonce,uri:r,qop:s,response:c,nc:a,cnonce:t.cnonce,algorithm:t.algorithm,opaque:t.opaque},d=[];for(const p in l)l[p]&&(p==="qop"||p==="nc"||p==="algorithm"?d.push(`${p}=${l[p]}`):d.push(`${p}="${l[p]}"`));return`Digest ${d.join(", ")}`}function Lm(e){return(e.headers&&e.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var V_=Xe(101),Fm=Xe.n(V_);function Hh(e){return Fm().decode(e)}function Gh(e,t){var n;return`Basic ${n=`${e}:${t}`,Fm().encode(n)}`}const Wh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:typeof window<"u"?window:globalThis,H_=Wh.fetch.bind(Wh);let Yt=(function(e){return e.Auto="auto",e.Digest="digest",e.None="none",e.Password="password",e.Token="token",e})({}),Br=(function(e){return e.DataTypeNoLength="data-type-no-length",e.InvalidAuthType="invalid-auth-type",e.InvalidOutputFormat="invalid-output-format",e.LinkUnsupportedAuthType="link-unsupported-auth",e.InvalidUpdateRange="invalid-update-range",e.NotSupported="not-supported",e})({});function Im(e,t,n,r,o){switch(e.authType){case Yt.Auto:t&&n&&(e.headers.Authorization=Gh(t,n));break;case Yt.Digest:e.digest=(function(a,i,u){return{username:a,password:i,ha1:u,nc:0,algorithm:"md5",hasDigestAuth:!1}})(t,n,o);break;case Yt.None:break;case Yt.Password:e.headers.Authorization=Gh(t,n);break;case Yt.Token:e.headers.Authorization=`${(s=r).token_type} ${s.access_token}`;break;default:throw new Wt({info:{code:Br.InvalidAuthType}},`Invalid auth type: ${e.authType}`)}var s}Xe(345),Xe(800);const qh="@@HOTPATCHER",G_=()=>{};function tl(e){return{original:e,methods:[e],final:!1}}class W_{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=qh}get configuration(){return this._configuration}get getEmptyAction(){return this.configuration.getEmptyAction}set getEmptyAction(t){this.configuration.getEmptyAction=t}control(t){let n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!t||t.__type__!==qh)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(t.configuration.registry).forEach((r=>{this.configuration.registry.hasOwnProperty(r)?n&&(this.configuration.registry[r]=Object.assign({},t.configuration.registry[r])):this.configuration.registry[r]=Object.assign({},t.configuration.registry[r])})),t._configuration=this.configuration,this}execute(t){const n=this.get(t)||G_;for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s0;)c=[o.shift().apply(l,c)];return c[0]}})(...n.methods)}isPatched(t){return!!this.configuration.registry[t]}patch(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{chain:o=!1}=r;if(this.configuration.registry[t]&&this.configuration.registry[t].final)throw new Error(`Failed patching '${t}': Method marked as being final`);if(typeof n!="function")throw new Error(`Failed patching '${t}': Provided method is not a function`);if(o)this.configuration.registry[t]?this.configuration.registry[t].methods.push(n):this.configuration.registry[t]=tl(n);else if(this.isPatched(t)){const{original:s}=this.configuration.registry[t];this.configuration.registry[t]=Object.assign(tl(n),{original:s})}else this.configuration.registry[t]=tl(n);return this}patchInline(t,n){this.isPatched(t)||this.patch(t,n);for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s1?n-1:0),o=1;o{this.patch(t,s,{chain:!0})})),this}restore(t){if(!this.isPatched(t))throw new Error(`Failed restoring method: No method present for key: ${t}`);if(typeof this.configuration.registry[t].original!="function")throw new Error(`Failed restoring method: Original method not found or of invalid type for key: ${t}`);return this.configuration.registry[t].methods=[this.configuration.registry[t].original],this}setFinal(t){if(!this.configuration.registry.hasOwnProperty(t))throw new Error(`Failed marking '${t}' as final: No method found for key`);return this.configuration.registry[t].final=!0,this}}let nl=null;function Mm(){return nl||(nl=new W_),nl}function _i(e){return(function(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let n=t;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(t)===n})(e)?Object.assign({},e):Object.setPrototypeOf(Object.assign({},e),Object.getPrototypeOf(e))}function Kh(){for(var e=arguments.length,t=new Array(e),n=0;n0;){const s=o.shift();r=r?jm(r,s):_i(s)}return r}function jm(e,t){const n=_i(e);return Object.keys(t).forEach((r=>{n.hasOwnProperty(r)?Array.isArray(t[r])?n[r]=Array.isArray(n[r])?[...n[r],...t[r]]:[...t[r]]:typeof t[r]=="object"&&t[r]?n[r]=typeof n[r]=="object"&&n[r]?jm(n[r],t[r]):_i(t[r]):n[r]=t[r]:n[r]=t[r]})),n}function q_(e){const t={};for(const n of e.keys())t[n]=e.get(n);return t}function rc(){for(var e=arguments.length,t=new Array(e),n=0;n(Object.keys(s).forEach((a=>{const i=a.toLowerCase();r.hasOwnProperty(i)?o[r[i]]=s[a]:(r[i]=a,o[a]=s[a])})),o)),{})}Xe(805);const K_=typeof ArrayBuffer=="function",{toString:X_}=Object.prototype;function zm(e){return K_&&(e instanceof ArrayBuffer||X_.call(e)==="[object ArrayBuffer]")}function Um(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Vc(e){return function(){for(var t=[],n=0;nt.patchInline("fetch",H_,n.url,(function(r){let o={};const s={method:r.method};if(r.headers&&(o=rc(o,r.headers)),r.data!==void 0){const[a,i]=(function(u){if(typeof u=="string")return[u,{}];if(Um(u))return[u,{}];if(zm(u))return[u,{}];if(u&&typeof u=="object")return[JSON.stringify(u),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+typeof u)})(r.data);s.body=a,o=rc(o,i)}return r.signal&&(s.signal=r.signal),r.withCredentials&&(s.credentials="include"),s.headers=o,s})(n))),e)}var Y_=Xe(285);const ki=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},J_={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},ds=e=>e.replace(/[[\]\\-]/g,"\\$&"),Xh=e=>e.join(""),Q_=(e,t)=>{const n=t;if(e.charAt(n)!=="[")throw new Error("not in a brace expression");const r=[],o=[];let s=n+1,a=!1,i=!1,u=!1,c=!1,l=n,d="";e:for(;sd?r.push(ds(d)+"-"+ds(f)):f===d&&r.push(ds(f)),d="",s++):e.startsWith("-]",s+1)?(r.push(ds(f+"-")),s+=2):e.startsWith("-",s+1)?(d=f,s+=2):(r.push(ds(f)),s++)}else u=!0,s++}else c=!0,s++}if(l1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")};var Kt;const eS=new Set(["!","?","+","*","@"]),sc=e=>eS.has(e),Zh=e=>sc(e.type),tS=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),nS=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),rS=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Yh=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),rl="(?!\\.)",oS=new Set(["[","."]),sS=new Set(["..","."]),aS=new Set("().*{}+?[]^$\\!"),Hc="[^/]",Jh=Hc+"*?",Qh=Hc+"+?";class Gc{type;#n;#r;#o=!1;#e=[];#t;#i;#l;#u=!1;#s;#a;#c=!1;constructor(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=t,t&&(this.#r=!0),this.#t=n,this.#n=this.#t?this.#t.#n:this,this.#s=this.#n===this?r:this.#n.#s,this.#l=this.#n===this?[]:this.#n.#l,t!=="!"||this.#n.#u||this.#l.push(this),this.#i=this.#t?this.#t.#e.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(const t of this.#e)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#a!==void 0?this.#a:this.type?this.#a=this.type+"("+this.#e.map((t=>String(t))).join("|")+")":this.#a=this.#e.map((t=>String(t))).join("")}#v(){if(this!==this.#n)throw new Error("should only call on root");if(this.#u)return this;let t;for(this.toString(),this.#u=!0;t=this.#l.pop();){if(t.type!=="!")continue;let n=t,r=n.#t;for(;r;){for(let o=n.#i+1;!r.type&&otypeof n=="string"?n:n.toJSON())):[this.type,...this.#e.map((n=>n.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#n||this.#n.#u&&this.#t?.type==="!")&&t.push({}),t}isStart(){if(this.#n===this)return!0;if(!this.#t?.isStart())return!1;if(this.#i===0)return!0;const t=this.#t;for(let n=0;n1&&arguments[1]!==void 0?arguments[1]:tS;if(!t||typeof t!="object"||t.type!==null||t.#e.length!==1||this.type===null)return!1;const r=t.#e[0];return!(!r||typeof r!="object"||r.type===null)&&this.#p(r.type,n)}#p(t){return!!(arguments.length>1&&arguments[1]!==void 0?arguments[1]:rS).get(this.type)?.includes(t)}#b(t,n){const r=t.#e[0],o=new Kt(null,r,this.options);o.#e.push(""),r.push(o),this.#g(t,n)}#g(t,n){const r=t.#e[0];this.#e.splice(n,1,...r.#e);for(const o of r.#e)typeof o=="object"&&(o.#t=this);this.#a=void 0}#E(t){return!!Yh.get(this.type)?.has(t)}#w(t){if(!t||typeof t!="object"||t.type!==null||t.#e.length!==1||this.type===null||this.#e.length!==1)return!1;const n=t.#e[0];return!(!n||typeof n!="object"||n.type===null)&&this.#E(n.type)}#C(t){const n=Yh.get(this.type),r=t.#e[0],o=n?.get(r.type);if(!o)return!1;this.#e=r.#e;for(const s of this.#e)typeof s=="object"&&(s.#t=this);this.type=o,this.#a=void 0,this.#c=!1}#h(){if(Zh(this)){let t=0,n=!1;do{n=!0;for(let r=0;r1&&arguments[1]!==void 0?arguments[1]:{};const r=new Kt(null,void 0,n);return Kt.#d(t,r,0,n,0),r}toMMPattern(){if(this!==this.#n)return this.#n.toMMPattern();const t=this.toString(),[n,r,o,s]=this.toRegExpSource();if(!(o||this.#r||this.#s.nocase&&!this.#s.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return r;const a=(this.#s.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${n}$`,a),{_src:n,_glob:t})}get options(){return this.#s}toRegExpSource(t){const n=t??!!this.#s.dot;if(this.#n===this&&(this.#h(),this.#v()),!Zh(this)){const u=this.isStart()&&this.isEnd(),c=this.#e.map((p=>{const[h,g,f,m]=typeof p=="string"?Kt.#x(p,this.#r,u):p.toRegExpSource(t);return this.#r=this.#r||f,this.#o=this.#o||m,h})).join("");let l="";if(this.isStart()&&typeof this.#e[0]=="string"&&(this.#e.length!==1||!sS.has(this.#e[0]))){const p=oS,h=n&&p.has(c.charAt(0))||c.startsWith("\\.")&&p.has(c.charAt(2))||c.startsWith("\\.\\.")&&p.has(c.charAt(4)),g=!n&&!t&&p.has(c.charAt(0));l=h?"(?!(?:^|/)\\.\\.?(?:$|/))":g?rl:""}let d="";return this.isEnd()&&this.#n.#u&&this.#t?.type==="!"&&(d="(?:$|\\/)"),[l+c+d,Cs(c),this.#r=!!this.#r,this.#o]}const r=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let s=this.#m(n);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const u=this.toString(),c=this;return c.#e=[u],c.type=null,c.#r=void 0,[u,Cs(this.toString()),!1,!1]}let a=!r||t||n?"":this.#m(!0);a===s&&(a=""),a&&(s=`(?:${s})(?:${a})*?`);let i="";return i=this.type==="!"&&this.#c?(this.isStart()&&!n?rl:"")+Qh:o+s+(this.type==="!"?"))"+(!this.isStart()||n||t?"":rl)+Jh+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`),[i,Cs(s),this.#r=!!this.#r,this.#o]}#m(t){return this.#e.map((n=>{if(typeof n=="string")throw new Error("string type in extglob ast??");const[r,o,s,a]=n.toRegExpSource(t);return this.#o=this.#o||a,r})).filter((n=>!(this.isStart()&&this.isEnd()&&!n))).join("|")}static#x(t,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=!1,s="",a=!1,i=!1;for(let u=0;u2&&arguments[2]!==void 0?arguments[2]:{};return ki(t),!(!n.nocomment&&t.charAt(0)==="#")&&new Ti(t,n).match(e)},iS=/^\*+([^+@!?\*\[\(]*)$/,uS=e=>t=>!t.startsWith(".")&&t.endsWith(e),lS=e=>t=>t.endsWith(e),cS=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),dS=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),pS=/^\*+\.\*+$/,hS=e=>!e.startsWith(".")&&e.includes("."),fS=e=>e!=="."&&e!==".."&&e.includes("."),gS=/^\.\*+$/,mS=e=>e!=="."&&e!==".."&&e.startsWith("."),vS=/^\*+$/,yS=e=>e.length!==0&&!e.startsWith("."),bS=e=>e.length!==0&&e!=="."&&e!=="..",ES=/^\?+([^+@!?\*\[\(]*)?$/,wS=e=>{let[t,n=""]=e;const r=Hm([t]);return n?(n=n.toLowerCase(),o=>r(o)&&o.toLowerCase().endsWith(n)):r},CS=e=>{let[t,n=""]=e;const r=Gm([t]);return n?(n=n.toLowerCase(),o=>r(o)&&o.toLowerCase().endsWith(n)):r},xS=e=>{let[t,n=""]=e;const r=Gm([t]);return n?o=>r(o)&&o.endsWith(n):r},AS=e=>{let[t,n=""]=e;const r=Hm([t]);return n?o=>r(o)&&o.endsWith(n):r},Hm=e=>{let[t]=e;const n=t.length;return r=>r.length===n&&!r.startsWith(".")},Gm=e=>{let[t]=e;const n=t.length;return r=>r.length===n&&r!=="."&&r!==".."},Wm=typeof to=="object"&&to?typeof Qu=="object"&&Qu&&Qu.__MINIMATCH_TESTING_PLATFORM__||to.platform:"posix";$t.sep=Wm==="win32"?"\\":"/";const Ot=Symbol("globstar **");$t.GLOBSTAR=Ot,$t.filter=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n=>$t(n,e,t)};const an=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.assign({},e,t)};$t.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return $t;const t=$t;return Object.assign((function(n,r){return t(n,r,an(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}),{Minimatch:class extends t.Minimatch{constructor(n){super(n,an(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}))}static defaults(n){return t.defaults(an(e,n)).Minimatch}},AST:class extends t.AST{constructor(n,r){super(n,r,an(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}static fromGlob(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.AST.fromGlob(n,an(e,r))}},unescape:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.unescape(n,an(e,r))},escape:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.escape(n,an(e,r))},filter:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.filter(n,an(e,r))},defaults:n=>t.defaults(an(e,n)),makeRe:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.makeRe(n,an(e,r))},braceExpand:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.braceExpand(n,an(e,r))},match:function(n,r){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.match(n,r,an(e,o))},sep:t.sep,GLOBSTAR:Ot})};const qm=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ki(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Y_(e)};$t.braceExpand=qm,$t.makeRe=function(e){return new Ti(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},$t.match=function(e,t){const n=new Ti(t,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{});return e=e.filter((r=>n.match(r))),n.options.nonull&&!e.length&&e.push(t),e};const e0=/[?*]|[+@!]\(.*?\)|\[|\]/;class Ti{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ki(t),n=n||{},this.options=n,this.maxGlobstarRecursion=n.maxGlobstarRecursion??200,this.pattern=t,this.platform=n.platform||Wm,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!n.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!n.nonegate,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=n.windowsNoMagicRoot!==void 0?n.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const n of t)if(typeof n!="string")return!0;return!1}debug(){}make(){const t=this.pattern,n=this.options;if(!n.nocomment&&t.charAt(0)==="#")return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],n.debug&&(this.debug=function(){return console.error(...arguments)}),this.debug(this.pattern,this.globSet);const r=this.globSet.map((s=>this.slashSplit(s)));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let o=this.globParts.map(((s,a,i)=>{if(this.isWindows&&this.windowsNoMagicRoot){const u=!(s[0]!==""||s[1]!==""||s[2]!=="?"&&e0.test(s[2])||e0.test(s[3])),c=/^[a-z]:/i.test(s[0]);if(u)return[...s.slice(0,4),...s.slice(4).map((l=>this.parse(l)))];if(c)return[s[0],...s.slice(1).map((l=>this.parse(l)))]}return s.map((u=>this.parse(u)))}));if(this.debug(this.pattern,o),this.set=o.filter((s=>s.indexOf(!1)===-1)),this.isWindows)for(let s=0;s=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=n>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((n=>{let r=-1;for(;(r=n.indexOf("**",r+1))!==-1;){let o=r;for(;n[o+1]==="**";)o++;o!==r&&n.splice(r,o-r)}return n}))}levelOneOptimize(t){return t.map((n=>(n=n.reduce(((r,o)=>{const s=r[r.length-1];return o==="**"&&s==="**"?r:o===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(r.pop(),r):(r.push(o),r)}),[])).length===0?[""]:n))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let n=!1;do{if(n=!1,!this.preserveMultipleSlashes){for(let o=1;oo&&r.splice(o+1,a-o);let i=r[o+1];const u=r[o+2],c=r[o+3];if(i!==".."||!u||u==="."||u===".."||!c||c==="."||c==="..")continue;n=!0,r.splice(o,1);const l=r.slice(0);l[o]="**",t.push(l),o--}if(!this.preserveMultipleSlashes){for(let a=1;an.length))}partsMatch(t,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=0,s=0,a=[],i="";for(;o2&&arguments[2]!==void 0&&arguments[2],o=0,s=0;if(this.isWindows){const i=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),u=!i&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),c=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),l=u?3:i?0:void 0,d=!c&&n[0]===""&&n[1]===""&&n[2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3])?3:c?0:void 0;if(typeof l=="number"&&typeof d=="number"){const[p,h]=[t[l],n[d]];p.toLowerCase()===h.toLowerCase()&&(n[d]=p,s=d,o=l)}}const{optimizationLevel:a=1}=this.options;return a>=2&&(t=this.levelTwoFileOptimize(t)),n.includes(Ot)?this.#n(t,n,r,o,s):this.#o(t,n,r,o,s)}#n(t,n,r,o,s){const a=n.indexOf(Ot,s),i=n.lastIndexOf(Ot),[u,c,l]=r?[n.slice(s,a),n.slice(a+1),[]]:[n.slice(s,a),n.slice(a+1,i),n.slice(i+1)];if(u.length){const v=t.slice(o,o+u.length);if(!this.#o(v,u,r,0,0))return!1;o+=u.length}let d=0;if(l.length){if(l.length+o>t.length)return!1;let v=t.length-l.length;if(this.#o(t,l,r,v,0))d=l.length;else{if(t[t.length-1]!==""||o+l.length===t.length||(v--,!this.#o(t,l,r,v,0)))return!1;d=l.length+1}}if(!c.length){let v=!!d;for(let E=o;E{const c=u.map((l=>{if(l instanceof RegExp)for(const d of l.flags.split(""))o.add(d);return typeof l=="string"?l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):l===Ot?Ot:l._src}));return c.forEach(((l,d)=>{const p=c[d+1],h=c[d-1];l===Ot&&h!==Ot&&(h===void 0?p!==void 0&&p!==Ot?c[d+1]="(?:\\/|"+r+"\\/)?"+p:c[d]=r:p===void 0?c[d-1]=h+"(?:\\/|"+r+")?":p!==Ot&&(c[d-1]=h+"(?:\\/|\\/"+r+"\\/)"+p,c[d+1]=Ot))})),c.filter((l=>l!==Ot)).join("/")})).join("|");const[a,i]=t.length>1?["(?:",")"]:["",""];s="^"+a+s+i+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...o].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.partial;if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&n)return!0;const r=this.options;this.isWindows&&(t=t.split("\\").join("/"));const o=this.slashSplit(t);this.debug(this.pattern,"split",o);const s=this.set;this.debug(this.pattern,"set",s);let a=o[o.length-1];if(!a)for(let i=o.length-2;!a&&i>=0;i--)a=o[i];for(let i=0;i1&&arguments[1]!==void 0?arguments[1]:""}Invalid response: ${e.status} ${e.statusText}`);return t.status=e.status,t.response=e,t}function vt(e,t){const{status:n}=t;if(n===401&&e.digest)return t;if(n>=400)throw Wc(t);return t}function Wo(e,t){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:t,headers:e.headers?q_(e.headers):{},status:e.status,statusText:e.statusText}:t}$t.AST=Gc,$t.Minimatch=Ti,$t.escape=function(e){let{windowsPathsNoEscape:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&")},$t.unescape=Cs;const _S=(t0=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=mt({url:nt(e.remoteURL,tt(t)),method:"COPY",headers:{Destination:nt(e.remoteURL,tt(n)),Overwrite:r.overwrite===!1?"F":"T",Depth:r.shallow?"0":"infinity"}},e,r);return a=function(i){vt(e,i)},(s=gt(o,e))&&s.then||(s=Promise.resolve(s)),a?s.then(a):s;var s,a},function(){for(var e=[],t=0;tqc.includes(e)?"__"+e:e,kS={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:Zm};function TS(e,t){if(typeof e!="string")return;const n=e.toLowerCase();if(qc.some((r=>n===r.toLowerCase())))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);if(Xm.some((r=>n===r.toLowerCase())))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function Ym(e,t){return typeof e=="boolean"?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:typeof e=="object"&&e!==null?{enabled:e.enabled!==!1,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??"all"}:Ym(!0)}const OS=function(e){const t=Object.assign({},kS,e),n=[{value:t.attributeNamePrefix,name:"attributeNamePrefix"},{value:t.attributesGroupName,name:"attributesGroupName"},{value:t.textNodeName,name:"textNodeName"},{value:t.cdataPropName,name:"cdataPropName"},{value:t.commentPropName,name:"commentPropName"}];for(const{value:r,name:o}of n)r&&TS(r,o);return t.onDangerousProperty===null&&(t.onDangerousProperty=Zm),t.processEntities=Ym(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map((r=>typeof r=="string"&&r.startsWith("*.")?".."+r.substring(2):r))),t};let ac;ac=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class Cr{constructor(t){this.tagname=t,this.child=[],this[":@"]=Object.create(null)}add(t,n){t==="__proto__"&&(t="#__proto__"),this.child.push({[t]:n})}addChild(t,n){t.tagname==="__proto__"&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child}),n!==void 0&&(this.child[this.child.length-1][ac]={startIndex:n})}static getMetaDataSymbol(){return ac}}class DS{constructor(t){this.suppressValidationErr=!t,this.options=t}readDocType(t,n){const r=Object.create(null);let o=0;if(t[n+3]!=="O"||t[n+4]!=="C"||t[n+5]!=="T"||t[n+6]!=="Y"||t[n+7]!=="P"||t[n+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{n+=9;let s=1,a=!1,i=!1,u="";for(;n"){if(i?t[n-1]==="-"&&t[n-2]==="-"&&(i=!1,s--):s--,s===0)break}else t[n]==="["?a=!0:u+=t[n];else{if(a&&Vr(t,"!ENTITY",n)){let c,l;if(n+=7,[c,l,n]=this.readEntityExp(t,n+1,this.suppressValidationErr),l.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&o>=this.options.maxEntityCount)throw new Error(`Entity count (${o+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);r[c]=l,o++}}else if(a&&Vr(t,"!ELEMENT",n)){n+=8;const{index:c}=this.readElementExp(t,n+1);n=c}else if(a&&Vr(t,"!ATTLIST",n))n+=8;else if(a&&Vr(t,"!NOTATION",n)){n+=9;const{index:c}=this.readNotationExp(t,n+1,this.suppressValidationErr);n=c}else{if(!Vr(t,"!--",n))throw new Error("Invalid DOCTYPE");i=!0}s++,u=""}if(s!==0)throw new Error("Unclosed DOCTYPE")}return{entities:r,i:n}}readEntityExp(t,n){const r=n=qt(t,n);for(;nthis.options.maxEntitySize)throw new Error(`Entity "${o}" size (${s.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[o,s,--n]}readNotationExp(t,n){const r=n=qt(t,n);for(;n{for(;t0?t[t.length-1].tag:void 0}getCurrentNamespace(){const t=this._matcher.path;return t.length>0?t[t.length-1].namespace:void 0}getAttrValue(t){const n=this._matcher.path;if(n.length!==0)return n[n.length-1].values?.[t]}hasAttr(t){const n=this._matcher.path;if(n.length===0)return!1;const r=n[n.length-1];return r.values!==void 0&&t in r.values}getPosition(){const t=this._matcher.path;return t.length===0?-1:t[t.length-1].position??0}getCounter(){const t=this._matcher.path;return t.length===0?-1:t[t.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(t){let n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return this._matcher.toString(t,n)}toArray(){return this._matcher.path.map((t=>t.tag))}matches(t){return this._matcher.matches(t)}matchesAny(t){return t.matchesAny(this._matcher)}}class Kc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.separator=t.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new RS(this)}push(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);const o=this.path.length;this.siblingStacks[o]||(this.siblingStacks[o]=new Map);const s=this.siblingStacks[o],a=r?`${r}:${t}`:t,i=s.get(a)||0;let u=0;for(const l of s.values())u+=l;s.set(a,i+1);const c={tag:t,position:u,counter:i};r!=null&&(c.namespace=r),n!=null&&(c.values=n),this.path.push(c)}pop(){if(this.path.length===0)return;this._pathStringCache=null;const t=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),t}updateCurrent(t){if(this.path.length>0){const n=this.path[this.path.length-1];t!=null&&(n.values=t)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(t){if(this.path.length!==0)return this.path[this.path.length-1].values?.[t]}hasAttr(t){if(this.path.length===0)return!1;const n=this.path[this.path.length-1];return n.values!==void 0&&t in n.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(t){let n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];const r=t||this.separator;if(r===this.separator&&n===!0){if(this._pathStringCache!==null)return this._pathStringCache;const o=this.path.map((s=>s.namespace?`${s.namespace}:${s.tag}`:s.tag)).join(r);return this._pathStringCache=o,o}return this.path.map((o=>n&&o.namespace?`${o.namespace}:${o.tag}`:o.tag)).join(r)}toArray(){return this.path.map((t=>t.tag))}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(t){const n=t.segments;return n.length!==0&&(t.hasDeepWildcard()?this._matchWithDeepWildcard(n):this._matchSimple(n))}_matchSimple(t){if(this.path.length!==t.length)return!1;for(let n=0;n=0&&n>=0;){const o=t[r];if(o.type==="deep-wildcard"){if(r--,r<0)return!0;const s=t[r];let a=!1;for(let i=n;i>=0;i--)if(this._matchSegment(s,this.path[i],i===this.path.length-1)){n=i-1,r--,a=!0;break}if(!a)return!1}else{if(!this._matchSegment(o,this.path[n],n===this.path.length-1))return!1;n--,r--}}return r<0}_matchSegment(t,n,r){if(t.tag!=="*"&&t.tag!==n.tag||t.namespace!==void 0&&t.namespace!=="*"&&t.namespace!==n.namespace||t.attrName!==void 0&&(!r||!n.values||!(t.attrName in n.values)||t.attrValue!==void 0&&String(n.values[t.attrName])!==String(t.attrValue)))return!1;if(t.position!==void 0){if(!r)return!1;const o=n.counter??0;if(t.position==="first"&&o!==0||t.position==="odd"&&o%2!=1||t.position==="even"&&o%2!=0||t.position==="nth"&&o!==t.positionValue)return!1}return!0}matchesAny(t){return t.matchesAny(this)}snapshot(){return{path:this.path.map((t=>({...t}))),siblingStacks:this.siblingStacks.map((t=>new Map(t)))}}restore(t){this._pathStringCache=null,this.path=t.path.map((n=>({...n}))),this.siblingStacks=t.siblingStacks.map((n=>new Map(n)))}readOnly(){return this._view}}class Uo{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;this.pattern=t,this.separator=n.separator||".",this.segments=this._parse(t),this.data=r,this._hasDeepWildcard=this.segments.some((o=>o.type==="deep-wildcard")),this._hasAttributeCondition=this.segments.some((o=>o.attrName!==void 0)),this._hasPositionSelector=this.segments.some((o=>o.position!==void 0))}_parse(t){const n=[];let r=0,o="";for(;r",lt:"<",quot:'"'},IS={nbsp:" ",copy:"©",reg:"®",trade:"™",mdash:"—",ndash:"–",hellip:"…",laquo:"«",raquo:"»",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",para:"¶",sect:"§",deg:"°",frac12:"½",frac14:"¼",frac34:"¾"},MS=new Set("!?\\\\/[]$%{}^&*()<>|+");function r0(e){if(e[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(const t of e)if(MS.has(t))throw new Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function ol(){const e=Object.create(null);for(var t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{};var n;this._limit=t.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof t.postCheck=="function"?t.postCheck:o=>o,this._limitTiers=(n=this._limit.applyLimitsTo??Hr)&&n!==Hr?n===sl?new Set([sl]):n===Fa?new Set([Fa]):Array.isArray(n)?new Set(n):new Set([Hr]):new Set([Hr]),this._numericAllowed=t.numericAllowed??!0,this._baseMap=ol(Jm,t.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(t.remove&&Array.isArray(t.remove)?t.remove:[]),this._leaveSet=new Set(t.leave&&Array.isArray(t.leave)?t.leave:[]);const r=(function(o){if(!o)return{xmlVersion:1,onLevel:en.allow,nullLevel:en.remove};const s=o.xmlVersion===1.1?1.1:1,a=en[o.onNCR]??en.allow,i=en[o.nullNCR]??en.remove;return{xmlVersion:s,onLevel:a,nullLevel:Math.max(i,en.remove)}})(t.ncr);this._ncrXmlVersion=r.xmlVersion,this._ncrOnLevel=r.onLevel,this._ncrNullLevel=r.nullLevel}setExternalEntities(t){if(t)for(const n of Object.keys(t))r0(n);this._externalMap=ol(t)}addExternalEntity(t,n){r0(t),typeof n=="string"&&n.indexOf("&")===-1&&(this._externalMap[t]=n)}addInputEntities(t){this._totalExpansions=0,this._expandedLength=0,this._inputMap=ol(t)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(t){this._ncrXmlVersion=t===1.1?1.1:1}decode(t){if(typeof t!="string"||t.length===0)return t;const n=t,r=[],o=t.length;let s=0,a=0;const i=this._maxTotalExpansions>0,u=this._maxExpandedLength>0,c=i||u;for(;a=o||t.charCodeAt(d)!==59){a++;continue}const p=t.slice(a+1,d);if(p.length===0){a++;continue}let h,g;if(this._removeSet.has(p))h="",g===void 0&&(g=Hr);else{if(this._leaveSet.has(p)){a++;continue}if(p.charCodeAt(0)===35){const f=this._resolveNCR(p);if(f===void 0){a++;continue}h=f,g=Fa}else{const f=this._resolveName(p);h=f?.value,g=f?.tier}}if(h!==void 0){if(a>s&&r.push(t.slice(s,a)),r.push(h),s=d+1,a=s,c&&this._tierCounts(g)){if(i&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(u){const f=h.length-(p.length+2);if(f>0&&(this._expandedLength+=f,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}else a++}s=55296&&t<=57343||this._ncrXmlVersion===1&&t>=1&&t<=31&&!jS.has(t)?en.remove:-1}_applyNCRAction(t,n,r){switch(t){case en.allow:return String.fromCodePoint(r);case en.remove:return"";case en.leave:return;case en.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference &${n}; (U+${r.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(r)}}_resolveNCR(t){const n=t.charCodeAt(1);let r;if(r=n===120||n===88?parseInt(t.slice(2),16):parseInt(t.slice(1),10),Number.isNaN(r)||r<0||r>1114111)return;const o=this._classifyNCR(r);if(!this._numericAllowed&&o0){const n=e.substring(0,t);if(n!=="xmlns")return n}}class VS{constructor(t,n){var r;this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=KS,this.parseTextData=HS,this.resolveNameSpace=GS,this.buildAttributesMap=qS,this.isItStopNode=JS,this.replaceEntitiesValue=ZS,this.readStopNodeData=e6,this.saveTextToParentTag=YS,this.addChild=XS,this.ignoreAttributesFn=typeof(r=this.options.ignoreAttributes)=="function"?r:Array.isArray(r)?a=>{for(const i of r)if(typeof i=="string"&&a===i||i instanceof RegExp&&i.test(a))return!0}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0;let o={...Jm};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?o=this.options.htmlEntities:this.options.htmlEntities===!0&&(o={...IS,...FS}),this.entityDecoder=new Qm({namedEntities:{...o,...n},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new Kc,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new LS;const s=this.options.stopNodes;if(s&&s.length>0){for(let a=0;a0)){a||(e=this.replaceEntitiesValue(e,t,n));const u=i.jPath?n.toString():n,c=i.tagValueProcessor(t,e,u,o,s);return c==null?e:typeof c!=typeof e||c!==e?c:i.trimValues||e.trim()===e?ev(e,i.parseTagValue,i.numberParseOptions):e}}function GS(e){if(this.options.removeNSPrefix){const t=e.split(":"),n=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns")return"";t.length===2&&(e=n+t[1])}return e}const WS=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function qS(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];const o=this.options;if(r===!0||o.ignoreAttributes!==!0&&typeof e=="string"){const s=Km(e,WS),a=s.length,i={},u=new Array(a);let c=!1;const l={};for(let h=0;h",i,"Closing Tag is not closed.");let l=e.substring(i+2,c).trim();if(o.removeNSPrefix){const p=l.indexOf(":");p!==-1&&(l=l.substr(p+1))}l=al(o.transformTagName,l,"",o).tagName,n&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher));const d=this.matcher.getCurrentTag();if(l&&o.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: `);d&&o.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),r="",i=c}else if(u===63){let c=ic(e,i,!1,"?>");if(!c)throw new Error("Pi Tag is not closed.");r=this.saveTextToParentTag(r,n,this.readonlyMatcher);const l=this.buildAttributesMap(c.tagExp,this.matcher,c.tagName,!0);if(l){const d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1)}if(!(o.ignoreDeclaration&&c.tagName==="?xml"||o.ignorePiTags)){const d=new Cr(c.tagName);d.add(o.textNodeName,""),c.tagName!==c.tagExp&&c.attrExpPresent&&o.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(n,d,this.readonlyMatcher,i)}i=c.closeIndex+1}else if(u===33&&e.charCodeAt(i+2)===45&&e.charCodeAt(i+3)===45){const c=Lo(e,"-->",i+4,"Comment is not closed.");if(o.commentPropName){const l=e.substring(i+4,c-2);r=this.saveTextToParentTag(r,n,this.readonlyMatcher),n.add(o.commentPropName,[{[o.textNodeName]:l}])}i=c}else if(u===33&&e.charCodeAt(i+2)===68){const c=s.readDocType(e,i);this.entityDecoder.addInputEntities(c.entities),i=c.i}else if(u===33&&e.charCodeAt(i+2)===91){const c=Lo(e,"]]>",i,"CDATA is not closed.")-2,l=e.substring(i+9,c);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let d=this.parseTextData(l,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),o.cdataPropName?n.add(o.cdataPropName,[{[o.textNodeName]:l}]):n.add(o.textNodeName,d),i=c+2}else{let c=ic(e,i,o.removeNSPrefix);if(!c){const C=e.substring(Math.max(0,i-50),Math.min(a,i+50));throw new Error(`readTagExp returned undefined at position ${i}. Context: "${C}"`)}let l=c.tagName;const d=c.rawTagName;let p=c.tagExp,h=c.attrExpPresent,g=c.closeIndex;if({tagName:l,tagExp:p}=al(o.transformTagName,l,p,o),o.strictReservedNames&&(l===o.commentPropName||l===o.cdataPropName||l===o.textNodeName||l===o.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);n&&r&&n.tagname!=="!xml"&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher,!1));const f=n;f&&o.unpairedTagsSet.has(f.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),p=l):p=p.substr(0,p.length-1),h=l!==p);let y,v=null;y=US(d),l!==t.tagname&&this.matcher.push(l,{},y),l!==p&&h&&(v=this.buildAttributesMap(p,this.matcher,l),v&&zS(v,o)),l!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());const E=i;if(this.isCurrentNodeStopNode){let C="";if(m)i=c.closeIndex;else if(o.unpairedTagsSet.has(l))i=c.closeIndex;else{const D=this.readStopNodeData(e,d,g+1);if(!D)throw new Error(`Unexpected end of ${d}`);i=D.i,C=D.tagContent}const _=new Cr(l);v&&(_[":@"]=v),_.add(o.textNodeName,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,_,this.readonlyMatcher,E)}else{if(m){({tagName:l,tagExp:p}=al(o.transformTagName,l,p,o));const C=new Cr(l);v&&(C[":@"]=v),this.addChild(n,C,this.readonlyMatcher,E),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(o.unpairedTagsSet.has(l)){const C=new Cr(l);v&&(C[":@"]=v),this.addChild(n,C,this.readonlyMatcher,E),this.matcher.pop(),this.isCurrentNodeStopNode=!1,i=c.closeIndex;continue}{const C=new Cr(l);if(this.tagsNodeStack.length>o.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(n),v&&(C[":@"]=v),this.addChild(n,C,this.readonlyMatcher,E),n=C}}r="",i=g}}}else r+=e[i];return t.child};function XS(e,t,n,r){this.options.captureMetaData||(r=void 0);const o=this.options.jPath?n.toString():n,s=this.options.updateTag(t.tagname,o,t[":@"]);s===!1||(typeof s=="string"&&(t.tagname=s),e.addChild(t,r))}function ZS(e,t,n){const r=this.options.processEntities;if(!r||!r.enabled)return e;if(r.allowedTags){const o=this.options.jPath?n.toString():n;if(!(Array.isArray(r.allowedTags)?r.allowedTags.includes(t):r.allowedTags(t,o)))return e}if(r.tagFilter){const o=this.options.jPath?n.toString():n;if(!r.tagFilter(t,o))return e}return this.entityDecoder.decode(e)}function YS(e,t,n,r){return e&&(r===void 0&&(r=t.child.length===0),(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&Object.keys(t[":@"]).length!==0,r))!==void 0&&e!==""&&t.add(this.options.textNodeName,e),e=""),e}function JS(){return this.stopNodeExpressionsSet.size!==0&&this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Lo(e,t,n,r){const o=e.indexOf(t,n);if(o===-1)throw new Error(r);return o+t.length-1}function QS(e,t,n,r){const o=e.indexOf(t,n);if(o===-1)throw new Error(r);return o}function ic(e,t,n){const r=(function(l,d){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",h=0;const g=l.length,f=p.charCodeAt(0),m=p.length>1?p.charCodeAt(1):-1;let y="",v=d;for(let E=d;E3&&arguments[3]!==void 0?arguments[3]:">");if(!r)return;let o=r.data;const s=r.index,a=o.search(/\s/);let i=o,u=!0;a!==-1&&(i=o.substring(0,a),o=o.substring(a+1).trimStart());const c=i;if(n){const l=i.indexOf(":");l!==-1&&(i=i.substr(l+1),u=i!==r.data.substr(l+1))}return{tagName:i,tagExp:o,closeIndex:s,attrExpPresent:u,rawTagName:c}}function e6(e,t,n){const r=n;let o=1;const s=e.length;for(;n",n,`${t} is not closed`);if(e.substring(n+2,i).trim()===t&&(o--,o===0))return{tagContent:e.substring(r,n),i};n=i}else if(a===63)n=Lo(e,"?>",n+1,"StopNode is not closed.");else if(a===33&&e.charCodeAt(n+2)===45&&e.charCodeAt(n+3)===45)n=Lo(e,"-->",n+3,"StopNode is not closed.");else if(a===33&&e.charCodeAt(n+2)===91)n=Lo(e,"]]>",n,"StopNode is not closed.")-2;else{const i=ic(e,n,">");i&&((i&&i.tagName)===t&&i.tagExp[i.tagExp.length-1]!=="/"&&o++,n=i.closeIndex)}}}function ev(e,t,n){if(t&&typeof e=="string"){const r=e.trim();return r==="true"||r!=="false"&&(function(o){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(s=Object.assign({},BS,s),!o||typeof o!="string")return o;let a=o.trim();if(a.length===0||s.skipLike!==void 0&&s.skipLike.test(a))return o;if(a==="0")return 0;if(s.hex&&NS.test(a))return(function(u){if(parseInt)return parseInt(u,16);if(Number.parseInt)return Number.parseInt(u,16);if(window&&window.parseInt)return window.parseInt(u,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")})(a);if(isFinite(a)){if(a.includes("e")||a.includes("E"))return(function(u,c,l){if(!l.eNotation)return u;const d=c.match($S);if(d){let p=d[1]||"";const h=d[3].indexOf("e")===-1?"E":"e",g=d[2],f=p?u[g.length+1]===h:u[g.length]===h;return g.length>1&&f?u:(g.length!==1||!d[3].startsWith(`.${h}`)&&d[3][0]!==h)&&g.length>0?l.leadingZeros&&!f?(c=(d[1]||"")+d[3],Number(c)):u:Number(c)}return u})(o,a,s);{const u=PS.exec(a);if(u){const c=u[1]||"",l=u[2];let d=((i=u[3])&&i.indexOf(".")!==-1&&((i=i.replace(/0+$/,""))==="."?i="0":i[0]==="."?i="0"+i:i[i.length-1]==="."&&(i=i.substring(0,i.length-1))),i);const p=c?o[l.length+1]===".":o[l.length]===".";if(!s.leadingZeros&&(l.length>1||l.length===1&&!p))return o;{const h=Number(a),g=String(h);if(h===0)return h;if(g.search(/[eE]/)!==-1)return s.eNotation?h:o;if(a.indexOf(".")!==-1)return g==="0"||g===d||g===`${c}${d}`?h:o;let f=l?d:a;return l?f===g||c+f===g?h:o:f===g||f===c+g?h:o}}return o}}var i;return(function(u,c,l){const d=c===1/0;switch(l.infinity.toLowerCase()){case"null":return null;case"infinity":return c;case"string":return d?"Infinity":"-Infinity";default:return u}})(o,Number(a),s)})(e,n)}return e!==void 0?e:""}function al(e,t,n,r){if(e){const o=e(t);n===t&&(n=o),t=o}return{tagName:t=tv(t,r),tagExp:n}}function tv(e,t){if(Xm.includes(e))throw new Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return qc.includes(e)?t.onDangerousProperty(e):e}const il=Cr.getMetaDataSymbol();function t6(e,t){if(!e||typeof e!="object")return{};if(!t)return e;const n={};for(const r in e)r.startsWith(t)?n[r.substring(t.length)]=e[r]:n[r]=e[r];return n}function n6(e,t,n,r){return nv(e,t,n,r)}function nv(e,t,n,r){let o;const s={};for(let a=0;a0&&(s[t.textNodeName]=o):o!==void 0&&(s[t.textNodeName]=o),s}function r6(e){const t=Object.keys(e);for(let n=0;n5&&r==="xml")return at("InvalidXml","XML declaration allowed only at the start of the document.",Ut(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}}return t}function a0(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t"){t+=2;break}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let n=1;for(t+=8;t"&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t"){t+=2;break}}return t}function i6(e,t){let n="",r="",o=!1;for(;t"&&r===""){o=!0;break}n+=e[t]}return r===""&&{value:n,index:t,tagClosed:o}}const u6=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function i0(e,t){const n=Km(e,u6),r={};for(let o=0;o"&&a[d]!==" "&&a[d]!==" "&&a[d]!==` -`&&a[d]!=="\r";d++)g+=a[d];if(g=g.trim(),g[g.length-1]==="/"&&(g=g.substring(0,g.length-1),d--),!ou(g)){let y;return y=g.trim().length===0?"Invalid space after '<'.":"Tag '"+g+"' is an invalid name.",at("InvalidTag",y,Ut(a,d))}const f=i6(a,d);if(f===!1)return at("InvalidAttr","Attributes for '"+g+"' have open quote.",Ut(a,d));let m=f.value;if(d=f.index,m[m.length-1]==="/"){const y=d-m.length;m=m.substring(0,m.length-1);const v=i0(m,i);if(v!==!0)return at(v.err.code,v.err.msg,Ut(a,y+v.err.line));c=!0}else if(h){if(!f.tagClosed)return at("InvalidTag","Closing tag '"+g+"' doesn't have proper closing.",Ut(a,d));if(m.trim().length>0)return at("InvalidTag","Closing tag '"+g+"' can't have attributes or invalid starting.",Ut(a,p));if(u.length===0)return at("InvalidTag","Closing tag '"+g+"' has not been opened.",Ut(a,p));{const y=u.pop();if(g!==y.tagName){let v=Ut(a,y.tagStartPos);return at("InvalidTag","Expected closing tag '"+y.tagName+"' (opened in line "+v.line+", col "+v.col+") instead of closing tag '"+g+"'.",Ut(a,p))}u.length==0&&(l=!0)}}else{const y=i0(m,i);if(y!==!0)return at(y.err.code,y.err.msg,Ut(a,d-m.length+y.err.line));if(l===!0)return at("InvalidXml","Multiple possible root nodes found.",Ut(a,d));i.unpairedTags.indexOf(g)!==-1||u.push({tagName:g,tagStartPos:p}),c=!0}for(d++;d0)||at("InvalidXml","Invalid '"+JSON.stringify(u.map((d=>d.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):at("InvalidXml","Start tag expected.",1)})(t,n);if(s!==!0)throw Error(`${s.err.msg}:${s.err.line}:${s.err.col}`)}const r=new VS(this.options,this.externalEntities),o=r.parseXml(t);return this.options.preserveOrder||o===void 0?o:n6(o,this.options,r.matcher,r.readonlyMatcher)}addEntity(t,n){if(n.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(t.indexOf("&")!==-1||t.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if(n==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=n}static getMetaDataSymbol(){return Cr.getMetaDataSymbol()}}var d6=Xe(829),Xn=Xe.n(d6),_o=(function(e){return e.Array="array",e.Object="object",e.Original="original",e})(_o||{});function u0(e){return typeof e=="string"?e:e.toString(".",!1)}function ov(e,t){if(!e.endsWith("propstat.prop.displayname"))return t}function Ia(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_o.Original;const r=Xn().get(e,t);return n==="array"&&Array.isArray(r)===!1?[r]:n==="object"&&Array.isArray(r)?r[0]:r}function su(e,t){return t=t??{attributeNamePrefix:"@",attributeParsers:[],tagParsers:[ov]},new Promise((n=>{n((function(r){const{multistatus:o}=r;if(o==="")return{multistatus:{response:[]}};if(!o)throw new Error("Invalid response: No root multistatus found");const s={multistatus:Array.isArray(o)?o[0]:o};return Xn().set(s,"multistatus.response",Ia(s,"multistatus.response",_o.Array)),Xn().set(s,"multistatus.response",Xn().get(s,"multistatus.response").map((a=>(function(i){const u=Object.assign({},i);return u.status?Xn().set(u,"status",Ia(u,"status",_o.Object)):(Xn().set(u,"propstat",Ia(u,"propstat",_o.Object)),Xn().set(u,"propstat.prop",Ia(u,"propstat.prop",_o.Object))),u})(a)))),s})((function(r){let{attributeNamePrefix:o,attributeParsers:s,entityDecoder:a,tagParsers:i}=r;const u={allowBooleanAttributes:!0,attributeNamePrefix:o,textNodeName:"text",ignoreAttributes:!1,removeNSPrefix:!0,jPath:!1,numberParseOptions:{hex:!0,leadingZeros:!1},attributeValueProcessor(c,l,d){const p=u0(d);for(const h of s)try{const g=h(p,l);if(g!==l)return g}catch{}return l},tagValueProcessor(c,l,d){const p=u0(d);for(const h of i)try{const g=h(p,l);if(g!==l)return g}catch{}return l}};return a&&(u.entityDecoder=new Qm({limit:{maxTotalExpansions:a.limit?.maxTotalExpansions??0,maxExpandedLength:a.limit?.maxExpandedLength??0}})),new rv(u)})(t).parse(e)))}))}function Xc(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const{getlastmodified:r=null,getcontentlength:o="0",resourcetype:s=null,getcontenttype:a=null,getetag:i=null}=e,u=s&&typeof s=="object"&&s.collection!==void 0?"directory":"file",c={filename:t,basename:Ai().basename(t),lastmod:r,size:parseInt(o,10),type:u,etag:typeof i=="string"?i.replace(/"/g,""):null};return u==="file"&&(c.mime=a&&typeof a=="string"?a.split(";")[0]:""),n&&(e.displayname!==void 0&&(e.displayname=String(e.displayname)),c.props=e),c}function p6(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=null;try{e.multistatus.response[0].propstat&&(r=e.multistatus.response[0])}catch{}if(!r)throw new Error("Failed getting item stat: bad response");const{propstat:{prop:o,status:s}}=r,[a,i,u]=s.split(" ",3),c=parseInt(i,10);if(c>=400){const l=new Error(`Invalid response: ${c} ${u}`);throw l.status=c,l}return Xc(o,ra(t),n)}function h6(e){switch(String(e)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(e),10)}}function ul(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Zc=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const{details:r=!1}=n,o=mt({url:nt(e.remoteURL,tt(t)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,n);return ul(gt(o,e),(function(s){return vt(e,s),ul(s.text(),(function(a){return ul(su(a,e.parsing),(function(i){const u=p6(i,t,r);return Wo(s,u,r)}))}))}))}));function sv(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const f6=av((function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=(function(s){if(!s||s==="/")return[];let a=s;const i=[];do i.push(a),a=Ai().dirname(a);while(a&&a!=="/");return i})(ra(t));r.sort(((s,a)=>s.length>a.length?1:a.length>s.length?-1:0));let o=!1;return(function(s,a,i){if(typeof s[c0]=="function"){let f=function(m){try{for(;!(u=d.next()).done;)if((m=a(u.value))&&m.then){if(!d0(m))return void m.then(f,l||(l=Gt.bind(null,c=new So,2)));m=m.v}c?Gt(c,1,m):c=m}catch(y){Gt(c||(c=new So),2,y)}};var u,c,l,d=s[c0]();if(f(),d.return){var p=function(m){try{u.done||d.return()}catch{}return m};if(c&&c.then)return c.then(p,(function(m){throw p(m)}));p()}return c}if(!("length"in s))throw new TypeError("Object is not iterable");for(var h=[],g=0;g2&&arguments[2]!==void 0?arguments[2]:{};if(n.recursive===!0)return f6(e,t,n);const r=mt({url:nt(e.remoteURL,(o=tt(t),o.endsWith("/")?o:o+"/")),method:"MKCOL"},e,n);var o;return sv(gt(r,e),(function(s){vt(e,s)}))}));var m6=Xe(388),p0=Xe.n(m6);const v6=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const r={};if(typeof n.range=="object"&&typeof n.range.start=="number"){let i=`bytes=${n.range.start}-`;typeof n.range.end=="number"&&(i=`${i}${n.range.end}`),r.Range=i}const o=mt({url:nt(e.remoteURL,tt(t)),method:"GET",headers:r},e,n);return a=function(i){if(vt(e,i),r.Range&&i.status!==206){const u=new Error(`Invalid response code for partial request: ${i.status}`);throw u.status=i.status,u}return n.callback&&setTimeout((()=>{n.callback(i)}),0),i.body},(s=gt(o,e))&&s.then||(s=Promise.resolve(s)),a?s.then(a):s;var s,a})),y6=()=>{},b6=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const r=mt({url:nt(e.remoteURL,tt(t)),method:"DELETE"},e,n);return s=function(a){vt(e,a)},(o=gt(r,e))&&o.then||(o=Promise.resolve(o)),s?o.then(s):o;var o,s})),w6=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};return(function(r,o){try{var s=(a=Zc(e,t,n),i=function(){return!0},u?i?i(a):a:(a&&a.then||(a=Promise.resolve(a)),i?a.then(i):a))}catch(c){return o(c)}var a,i,u;return s&&s.then?s.then(void 0,o):s})(0,(function(r){if(r.status===404)return!1;throw r}))}));function ll(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const C6=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const r=mt({url:nt(e.remoteURL,tt(t),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:n.deep?"infinity":"1"}},e,n);return ll(gt(r,e),(function(o){return vt(e,o),ll(o.text(),(function(s){if(!s)throw new Error("Failed parsing directory contents: Empty response");return ll(su(s,e.parsing),(function(a){const i=Uh(t);let u=(function(c,l,d){let p=arguments.length>3&&arguments[3]!==void 0&&arguments[3],h=arguments.length>4&&arguments[4]!==void 0&&arguments[4];const g=Ai().join(l,"/"),{multistatus:{response:f}}=c,m=f.map((y=>{const v=(function(C){try{return C.replace(/^https?:\/\/[^\/]+/,"")}catch(_){throw new Wt(_,"Failed normalising HREF")}})(y.href),{propstat:{prop:E}}=y;return Xc(E,g==="/"?decodeURIComponent(ra(v)):ra(Ai().relative(decodeURIComponent(g),decodeURIComponent(v))),p)}));return h?m:m.filter((y=>y.basename&&(y.type==="file"||y.filename!==d.replace(/\/$/,""))))})(a,Uh(e.remoteBasePath||e.remotePath),i,n.details,n.includeSelf);return n.glob&&(u=(function(c,l){return c.filter((d=>$t(d.filename,l,{matchBase:!0})))})(u,n.glob)),Wo(o,u,n.details)}))}))}))}));function Yc(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const r=mt({url:nt(e.remoteURL,tt(t)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[S6]},e,n);return Oi(gt(r,e),(function(o){return vt(e,o),Oi(o.text(),(function(s){return Wo(o,s,n.details)}))}))}));function Oi(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const A6=Yc((function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=mt({url:nt(e.remoteURL,tt(t)),method:"GET"},e,n);return Oi(gt(r,e),(function(o){let s;return vt(e,o),(function(a,i){var u=a();return u&&u.then?u.then(i):i()})((function(){return Oi(o.arrayBuffer(),(function(a){s=a}))}),(function(){return Wo(o,s,n.details)}))}))})),_6=Yc((function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{format:r="binary"}=n;if(r!=="binary"&&r!=="text")throw new Wt({info:{code:Br.InvalidOutputFormat}},`Invalid output format: ${r}`);return r==="text"?x6(e,t,n):A6(e,t,n)})),S6=e=>e;function k6(e,t){let n="";t.format&&t.indentBy.length>0&&(n=` -`);const r=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let o=0;ot.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(e)){if(e!=null){let i=e.toString();return i=lc(i,t),i}return""}for(let i=0;i/g,"]]]]>")}]]>`,a=!1,r.pop();continue}if(c===t.commentPropName){const f=u[c][0][t.textNodeName];s+=n+``,a=!0,r.pop();continue}if(c[0]==="?"){const f=h0(u[":@"],t,d),m=c==="?xml"?"":n;let y=u[c][0][t.textNodeName];y=y.length!==0?" "+y:"",s+=m+`<${c}${y}${f}?>`,a=!0,r.pop();continue}let p=n;p!==""&&(p+=t.indentBy);const h=n+`<${c}${h0(u[":@"],t,d)}`;let g;g=d?uv(u[c],t):iv(u[c],t,p,r,o),t.unpairedTags.indexOf(c)!==-1?t.suppressUnpairedNode?s+=h+">":s+=h+"/>":g&&g.length!==0||!t.suppressEmptyNode?g&&g.endsWith(">")?s+=h+`>${g}${n}`:(s+=h+">",g&&n!==""&&(g.includes("/>")||g.includes("`):s+=h+"/>",a=!0,r.pop()}return s}function T6(e,t){if(!e||t.ignoreAttributes)return null;const n={};let r=!1;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o.startsWith(t.attributeNamePrefix)?o.substr(t.attributeNamePrefix.length):o]=e[o],r=!0);return r?n:null}function uv(e,t){if(!Array.isArray(e))return e!=null?e.toString():"";let n="";for(let r=0;r${i}`:n+=`<${s}${a}/>`}}}return n}function O6(e,t){let n="";if(e&&!t.ignoreAttributes)for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let o=e[r];o===!0&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${o}"`}return n}function lv(e){const t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function ln(e){if(this.options=Object.assign({},N6,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map((n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n))),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let n=0;n{for(const r of t)if(typeof r=="string"&&n===r||r instanceof RegExp&&r.test(n))return!0}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=$6),this.processTextOrObjNode=P6,this.options.format?(this.indentate=B6,this.tagEndChar=`> +`,uA={class:"vue-skip-actions__container"},lA={class:"vue-skip-actions__headline"},cA={class:"vue-skip-actions__buttons"},dA=We({__name:"NcContent",props:{appName:{}},setup(e){const t=e;Zt(fm,i),Zt(u2,"#content-vue"),Zt("appName",se(()=>t.appName));const n=fa(),r=Ae(!1),o=Ae(),s=se(()=>o.value==="navigation"?iA:aA);Rf(()=>{const u=document.getElementById("skip-actions");u&&(u.innerHTML="",u.classList.add("vue-skip-actions"))});function a(){Sr("toggle-navigation",{open:!0}),xn(()=>{window.location.hash="app-navigation-vue",document.getElementById("app-navigation-vue").focus()})}function i(u){r.value=u,o.value||(o.value="navigation")}return(u,c)=>($(),X("div",{id:"content-vue",class:Be(["content",[`app-${u.appName.toLowerCase()}`,{"content--legacy":z(po)}]])},[($(),me(kf,{to:"#skip-actions"},[ue("div",uA,[ue("div",lA,xe(z(Ie)("Keyboard navigation help")),1),ue("div",cA,[Rn(le(Qe,{href:"#app-navigation-vue",variant:"tertiary",onClick:En(a,["prevent"]),onFocusin:c[0]||(c[0]=l=>o.value="navigation"),onMouseover:c[1]||(c[1]=l=>o.value="navigation")},{default:pe(()=>[wt(xe(z(Ie)("Skip to app navigation")),1)]),_:1},512),[[tr,r.value]]),le(Qe,{href:"#app-content-vue",variant:"tertiary",onFocusin:c[2]||(c[2]=l=>o.value="content"),onMouseover:c[3]||(c[3]=l=>o.value="content")},{default:pe(()=>[wt(xe(z(Ie)("Skip to main content")),1)]),_:1})]),Rn(le(Ve,{class:"vue-skip-actions__image",svg:s.value,size:"auto"},null,8,["svg"]),[[tr,!z(n)]])])])),ye(u.$slots,"default",{},void 0,!0)],2))}}),pA=He(dA,[["__scopeId","data-v-91d07631"]]);mn(zE);const hA={long:Ie("a few seconds ago"),short:Ie("seconds ago"),narrow:Ie("sec. ago")};function fA(e=Date.now(),t={}){let n;const r=se(()=>new Date(Bt(e))),o=se(()=>{const{language:i,relativeTime:u,ignoreSeconds:c}=Bt(t);return{...i&&{language:i},...u&&{relativeTime:u},ignoreSeconds:c?hA[u||"long"]:!1}}),s=Ae("");Ki(()=>a());function a(){if(s.value=uE(r.value,o.value),Bt(t).update!==!1){const i=Math.abs(Date.now()-new Date(Bt(e)).getTime()),u=i>12e4||o.value.ignoreSeconds?Math.min(i/60,18e5):1e3;n=window.setTimeout(a,u)}}return ur(()=>n&&window.clearTimeout(n)),Vs(s)}function gA(e,t){const n=se(()=>({locale:Rc(),format:{dateStyle:"short",timeStyle:"medium"},...Bt(t)})),r=se(()=>new Intl.DateTimeFormat(n.value.locale,n.value.format));return se(()=>r.value.format(Bt(e)))}const mA=["data-timestamp","title","textContent"],$h=We({__name:"NcDateTime",props:{timestamp:{},format:{default:()=>({timeStyle:"medium",dateStyle:"short"})},relativeTime:{type:[Boolean,String],default:"long"},ignoreSeconds:{type:Boolean}},setup(e){const t=e,n=se(()=>({format:t.format})),r=se(()=>({ignoreSeconds:t.ignoreSeconds,relativeTime:t.relativeTime||"long",update:t.relativeTime!==!1})),o=gA(kl(()=>t.timestamp),n),s=fA(kl(()=>t.timestamp),r),a=se(()=>t.relativeTime?s.value:o.value);return(i,u)=>($(),X("span",{class:"nc-datetime",dir:"auto","data-timestamp":i.timestamp,title:z(o),textContent:xe(a.value)},null,8,mA))}});mn(JE);const vA=We({__name:"NcDialogButton",props:{callback:{type:Function,default:()=>{}},disabled:{type:Boolean,default:!1},icon:{default:void 0},label:{},type:{default:"button"},variant:{default:"tertiary"}},emits:["click"],setup(e,{emit:t}){const n=e,r=t,o=Ae(!1);async function s(a){if(!o.value){o.value=!0;try{const i=n.type==="reset"?!1:void 0,u=await n.callback?.()??i;u!==!1&&r("click",a,u)}finally{o.value=!1}}}return(a,i)=>($(),me(z(Qe),{"aria-label":a.label,disabled:a.disabled,type:a.type,variant:a.variant,onClick:s},{icon:pe(()=>[ye(a.$slots,"icon",{},()=>[o.value?($(),me(z(Vc),{key:0,name:z(Ie)("Loading …")},null,8,["name"])):a.icon!==void 0?($(),me(z(Ve),{key:1,svg:a.icon},null,8,["svg"])):he("",!0)])]),default:pe(()=>[wt(xe(a.label)+" ",1)]),_:3},8,["aria-label","disabled","type","variant"]))}}),yA=/mac|ipad|iphone|darwin/i.test(navigator.userAgent),bA=window.OCP?.Accessibility?.disableKeyboardShortcuts?.(),EA=/^[a-zA-Z0-9]$/,wA=/^[^\x20-\x7F]$/;function CA(e,t){return!(e.target instanceof HTMLElement)||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement||e.target.isContentEditable?!0:t.allowInModal?!1:Array.from(document.getElementsByClassName("modal-mask")).filter(n=>n.checkVisibility()).length>0}function Rh(e,t){return n=>{if((yA?n.metaKey:n.ctrlKey)===!!t.ctrl){if(n.altKey!==!!t.alt||t.shift!==void 0&&n.shiftKey!==!!t.shift||CA(n,t))return;t.prevent&&n.preventDefault(),t.stop&&n.stopPropagation(),e(n)}}}function Fh(e,t=()=>{},n={}){if(bA)return()=>{};const r=(i,u)=>{if(i.key===u)return!0;if(n.caseSensitive){const c=u===u.toLowerCase(),l=i.key===i.key.toLowerCase();if(c!==l)return!1}return EA.test(u)&&wA.test(i.key)?i.code.replace(/^(?:Key|Digit|Numpad)/,"")===u.toUpperCase():i.key.toLowerCase()===u.toLowerCase()},o=i=>typeof e=="function"?e(i):typeof e=="string"?r(i,e):Array.isArray(e)?e.some(u=>r(i,u)):!0,s=sh(o,Rh(t,n),{eventName:"keydown",dedupe:!0,passive:!n.prevent}),a=n.push?sh(o,Rh(t,n),{eventName:"keyup",passive:!n.prevent}):()=>{};return()=>{s(),a()}}function xA(e=document.body){const t=window.getComputedStyle(e).getPropertyValue("--background-invert-if-dark");return t!==void 0?t==="invert(100%)":!1}xA();const AA=Ae(Fm());window.addEventListener("resize",()=>{AA.value=Fm()});function Fm(){return window.outerHeight===window.screen.height}function Lh(e){return!e.parent||"vapor"in e||"vapor"in e.parent||e.parent.subTree!==e.vnode?null:e.parent}function _A(e){const t=[e];let n=Lh(e);for(;n;)t.push(n),n=Lh(n);return t}function SA(){const e=jn();if(!e)throw new Error("useScopeId must be called within a setup context");const t=_A(e).map(n=>n.vnode.scopeId).filter(Boolean);return Object.fromEntries(t.map(n=>[n,""]))}mn(WE,QE);const kA=["aria-labelledby","aria-describedby"],TA=["data-theme-light","data-theme-dark"],OA=["id"],DA={class:"icons-menu"},NA=["title"],PA=["id"],BA={class:"modal-container__content"},$A=We({inheritAttrs:!1,__name:"NcModal",props:Pr({name:{default:""},hasPrevious:{type:Boolean},hasNext:{type:Boolean},outTransition:{type:Boolean},enableSlideshow:{type:Boolean},slideshowDelay:{default:5e3},slideshowPaused:{type:Boolean},disableSwipe:{type:Boolean},spreadNavigation:{type:Boolean},size:{default:"normal"},noClose:{type:Boolean},closeOnClickOutside:{type:Boolean},dark:{type:Boolean},lightBackdrop:{type:Boolean},container:{default:"body"},closeButtonOutside:{type:Boolean},additionalTrapElements:{default:()=>[]},inlineActions:{default:0},labelId:{default:""},setReturnFocus:{default:void 0}},{show:{type:Boolean,default:!0},showModifiers:{}}),emits:Pr(["next","previous","close","update:show"],["update:show"]),setup(e,{emit:t}){fg(P=>({"046d2bb2":y.value,"71f7c020":g.value}));const n=Ho(e,"show"),r=e,o=t,s=SA(),a=Wo(),i=ao("mask");let u;ur(()=>M()),et(()=>r.additionalTrapElements,P=>{u&&u.updateContainerElements([i.value,...P])});const{isActive:c,pause:l,resume:d}=mE(v,kl(()=>r.slideshowDelay),{immediate:!1}),p=Ae(0),h=Ae(!1);Ki(()=>{h.value&&!r.slideshowPaused?d():c.value&&l()});const g=se(()=>`${r.slideshowDelay}ms`),{stop:f}=Zg(i,{onSwipeEnd:C});ur(f),Fh("Escape",()=>{Uo().at(-1)===u&&D()},{allowInModal:!0}),Fh(["ArrowLeft","ArrowRight"],P=>{document.activeElement&&!i.value.contains(document.activeElement)||(P.key==="ArrowLeft"!==Js?E():v())},{allowInModal:!0});const m=Qi(),y=se(()=>{let P=0;return r.hasNext&&r.enableSlideshow&&P++,!r.noClose&&r.closeButtonOutside&&P++,m.actions&&P++,P});Sn(()=>{!r.name&&r.labelId});function v(P){if(!r.hasNext){h.value=!1;return}P&&c.value&&_(),o("next",P)}function E(P){r.hasPrevious&&(P&&c.value&&_(),o("previous",P))}function C(P,oe){if(!r.disableSwipe){if(oe!=="left"&&oe!=="right")return;oe==="left"!==Js?v(P):E(P)}}function _(){l(),d(),p.value++}function D(P){r.noClose||(n.value=!1,setTimeout(()=>{o("close",P)},300))}function R(P){r.closeOnClickOutside&&D(P)}async function Z(){if(u)return;await xn();const P={allowOutsideClick:!0,fallbackFocus:i.value,trapStack:Uo(),escapeDeactivates:!1,setReturnFocus:r.setReturnFocus};u=Lc([i.value,...r.additionalTrapElements],P),u.activate()}function M(){u&&(u?.deactivate(),u=void 0)}return(P,oe)=>($(),me(kf,{disabled:P.container===null,to:P.container},[le(rs,{name:"fade",appear:"",onAfterEnter:Z,onBeforeLeave:M},{default:pe(()=>[Rn(ue("div",ft({...P.$attrs,...z(s)},{ref:"mask",class:["modal-mask",{"modal-mask--opaque":P.dark||P.closeButtonOutside||P.hasPrevious||P.hasNext,"modal-mask--light":P.lightBackdrop}],role:"dialog","aria-modal":"true","aria-labelledby":P.labelId||`modal-name-${z(a)}`,"aria-describedby":"modal-description-"+z(a),tabindex:"-1"}),[le(rs,{name:"fade-visibility",appear:""},{default:pe(()=>[ue("div",{class:"modal-header","data-theme-light":P.lightBackdrop,"data-theme-dark":!P.lightBackdrop},[P.name.trim()!==""?($(),X("h2",{key:0,id:"modal-name-"+z(a),class:"modal-header__name"},xe(P.name),9,OA)):he("",!0),ue("div",DA,[P.hasNext&&P.enableSlideshow?($(),X("button",{key:0,class:Be(["play-pause-icons",{"play-pause-icons--paused":P.slideshowPaused}]),title:z(c)?z(Ie)("Pause slideshow"):z(Ie)("Start slideshow"),type:"button",onClick:oe[0]||(oe[0]=O=>h.value=!h.value)},[le(Ve,{class:"play-pause-icons__icon",inline:"",name:z(c)?z(Ie)("Pause slideshow"):z(Ie)("Start slideshow"),path:z(c)?z($E):z(RE)},null,8,["name","path"]),z(c)?($(),X("svg",{key:`${z(a)}-animation-${p.value}`,class:"progress-ring",height:"50",width:"50"},[...oe[1]||(oe[1]=[ue("circle",{class:"progress-ring__circle",stroke:"white","stroke-width":"2",fill:"transparent",r:"15",cx:"25",cy:"25"},null,-1)])])):he("",!0)],10,NA)):he("",!0),le(Uc,{class:"header-actions",inline:P.inlineActions},{default:pe(()=>[ye(P.$slots,"actions",{},void 0,!0)]),_:3},8,["inline"]),!P.noClose&&P.closeButtonOutside?($(),me(Qe,{key:1,"aria-label":z(Ie)("Close"),class:"header-close",variant:"tertiary",onClick:D},{icon:pe(()=>[le(Ve,{path:z(ql)},null,8,["path"])]),_:1},8,["aria-label"])):he("",!0)])],8,TA)]),_:3}),le(rs,{name:`modal-${P.outTransition?"out":"in"}`,appear:""},{default:pe(()=>[Rn(ue("div",{class:Be(["modal-wrapper",[`modal-wrapper--${P.size}`,{"modal-wrapper--spread-navigation":P.spreadNavigation}]]),onMousedown:En(R,["self"])},[le(rs,{name:"fade-visibility",appear:""},{default:pe(()=>[Rn(le(Qe,{"aria-label":z(Ie)("Previous"),class:"prev",variant:"tertiary-no-background",onClick:E},{icon:pe(()=>[le(Ve,{directional:"",path:z(NE),size:40},null,8,["path"])]),_:1},8,["aria-label"]),[[tr,P.hasPrevious]])]),_:1}),ue("div",{id:"modal-description-"+z(a),class:"modal-container"},[ue("div",BA,[ye(P.$slots,"default",{},void 0,!0)]),!P.noClose&&!P.closeButtonOutside?($(),me(Qe,{key:0,"aria-label":z(Ie)("Close"),class:"modal-container__close",variant:"tertiary",onClick:D},{icon:pe(()=>[le(Ve,{path:z(ql)},null,8,["path"])]),_:1},8,["aria-label"])):he("",!0)],8,PA),le(rs,{name:"fade-visibility",appear:""},{default:pe(()=>[Rn(le(Qe,{"aria-label":z(Ie)("Next"),class:"next",variant:"tertiary-no-background",onClick:v},{icon:pe(()=>[le(Ve,{directional:"",path:z(Jg),size:40},null,8,["path"])]),_:1},8,["aria-label"]),[[tr,P.hasNext]])]),_:1})],34),[[tr,n.value]])]),_:3},8,["name"])],16,kA),[[tr,n.value]])]),_:3})],8,["disabled","to"]))}}),RA=He($A,[["__scopeId","data-v-3c357e2d"]]),FA=["id","textContent"],LA=["aria-label","aria-labelledby"],IA={class:"dialog__text"},MA={class:"dialog__actions"},jA=We({__name:"NcDialog",props:Pr({name:{},message:{default:""},additionalTrapElements:{default:()=>[]},container:{default:"body"},size:{default:"small"},buttons:{default:()=>[]},isForm:{type:Boolean},noClose:{type:Boolean},closeOnClickOutside:{type:Boolean},outTransition:{type:Boolean},navigationAriaLabel:{default:""},navigationAriaLabelledby:{default:""},contentClasses:{default:""},dialogClasses:{default:""},navigationClasses:{default:""}},{open:{type:Boolean,default:!0},openModifiers:{}}),emits:Pr(["closing","reset","submit"],["update:open"]),setup(e,{emit:t}){const n=Ho(e,"open"),r=e,o=t,s=Qi(),a=ao("wrapper"),{width:i}=AE(a,{width:900,height:0}),u=se(()=>i.value<876),c=se(()=>s?.navigation!==void 0),l=Wo(),d=se(()=>r.navigationAriaLabel||void 0),p=se(()=>{if(!r.navigationAriaLabel)return r.navigationAriaLabelledby||l}),h=ao("dialogElement"),g=se(()=>r.isForm&&!c.value?"form":"div"),f=se(()=>g.value!=="form"?{}:{submit(_){_.preventDefault(),o("submit",_)},reset(_){_.preventDefault(),o("reset",_)}}),m=Ae(!0);function y(_,D){_.type==="submit"&&g.value==="form"&&"reportValidity"in h.value&&!h.value.reportValidity()||(v(D),window.setTimeout(()=>E(),300))}function v(_){m.value=!1,o("closing",_)}function E(){m.value=!0,n.value=!1}const C=se(()=>({noClose:r.noClose,container:r.container===void 0?"body":r.container,labelId:l,size:r.size,show:n.value&&m.value,outTransition:r.outTransition,closeOnClickOutside:r.closeOnClickOutside,additionalTrapElements:r.additionalTrapElements}));return(_,D)=>n.value?($(),me(z(RA),ft({key:0,class:"dialog__modal",disableSwipe:""},C.value,{onClose:E,"onUpdate:show":D[0]||(D[0]=R=>v())}),{default:pe(()=>[ue("h2",{id:z(l),class:"dialog__name",textContent:xe(_.name)},null,8,FA),($(),me(la(g.value),ft({ref:"dialogElement",class:["dialog",_.dialogClasses]},Py(f.value)),{default:pe(()=>[ue("div",{ref:"wrapper",class:Be(["dialog__wrapper",[{"dialog__wrapper--collapsed":u.value}]])},[c.value?($(),X("nav",{key:0,class:Be(["dialog__navigation",_.navigationClasses]),"aria-label":d.value,"aria-labelledby":p.value},[ye(_.$slots,"navigation",{isCollapsed:u.value},void 0,!0)],10,LA)):he("",!0),ue("div",{class:Be(["dialog__content",_.contentClasses])},[ye(_.$slots,"default",{},()=>[ue("p",IA,xe(_.message),1)],!0)],2)],2),ue("div",MA,[ye(_.$slots,"actions",{},()=>[($(!0),X(Ze,null,Os(_.buttons,(R,Z)=>($(),me(z(vA),ft({key:Z},{ref_for:!0},R,{onClick:(M,P)=>y(R,P)}),null,16,["onClick"]))),128))],!0)])]),_:3},16,["class"]))]),_:3},16)):he("",!0)}}),zA=He(jA,[["__scopeId","data-v-24e91b99"]]),UA=["aria-labelledby"],VA={key:0,class:"empty-content__icon","aria-hidden":"true"},HA=["id"],GA={key:2,class:"empty-content__description"},WA={key:3,class:"empty-content__action"},qA=We({__name:"NcEmptyContent",props:{description:{default:""},name:{default:""}},setup(e){const t=Wo();return(n,r)=>($(),X("div",{"aria-labelledby":z(t),class:"empty-content",role:"note"},[n.$slots.icon?($(),X("div",VA,[ye(n.$slots,"icon",{},void 0,!0)])):he("",!0),n.name!==""||n.$slots.name?($(),X("div",{key:1,id:z(t),class:"empty-content__name"},[ye(n.$slots,"name",{},()=>[wt(xe(n.name),1)],!0)],8,HA)):he("",!0),n.description!==""||n.$slots.description?($(),X("p",GA,[ye(n.$slots,"description",{},()=>[wt(xe(n.description),1)],!0)])):he("",!0),n.$slots.action?($(),X("div",WA,[ye(n.$slots,"action",{},void 0,!0)])):he("",!0)],8,UA))}}),tl=He(qA,[["__scopeId","data-v-8609a4c1"]]),KA=["title"],XA=We({__name:"NcCounterBubble",props:{count:{},active:{type:Boolean},type:{default:""},raw:{type:Boolean}},setup(e){const t=e,n=se(()=>t.raw?t.count.toString():new Intl.NumberFormat(Rc(),{notation:"compact",compactDisplay:"short"}).format(t.count)),r=se(()=>{if(t.raw)return;const o=t.count.toString();if(o!==n.value)return o});return(o,s)=>($(),X("div",{class:Be(["counter-bubble__counter",{active:o.active,"counter-bubble__counter--highlighted":o.type==="highlighted","counter-bubble__counter--outlined":o.type==="outlined"}]),title:r.value},xe(n.value),11,KA))}}),ZA=He(XA,[["__scopeId","data-v-36ffc13f"]]),YA={name:"NcListItem",components:{NcActions:Uc,NcCounterBubble:ZA,NcVNodes:Rm},inheritAttrs:!1,setup(){return{isLegacy34:po}},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"],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,t,n){this.$emit("click",e),!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&n&&(t?.(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)}}},JA=["id","aria-label","href","target","rel","onClick"],QA={class:"list-item-content"},e_={class:"list-item-content__main"},t_={class:"list-item-content__name"},n_={class:"list-item-content__details"},r_={key:0,class:"list-item-details__details"},o_={key:1,class:"list-item-details__extra"},s_={key:1,class:"list-item-details__indicator"},a_={key:0,class:"list-item-content__extra-actions"},i_={key:2,class:"list-item__extra"};function u_(e,t,n,r,o,s){const a=Ye("NcCounterBubble"),i=Ye("NcActions");return $(),me(la(n.to?"router-link":"NcVNodes"),js(Mo({...n.to&&{custom:!0,to:n.to}})),{default:pe(({href:u,navigate:c,isActive:l})=>[ue("li",ft({class:["list-item__wrapper",{"list-item__wrapper--active":n.active??l,"list-item__wrapper--legacy":r.isLegacy34}]},e.$attrs),[ue("div",{ref:"list-item",class:Be(["list-item",{"list-item--compact":n.compact,"list-item--one-line":n.oneLine}]),onMouseover:t[5]||(t[5]=(...d)=>s.handleMouseover&&s.handleMouseover(...d)),onMouseleave:t[6]||(t[6]=(...d)=>s.handleMouseleave&&s.handleMouseleave(...d))},[ue("a",{id:n.anchorId||void 0,"aria-label":n.linkAriaLabel,class:"list-item__anchor",href:u||n.href,target:n.target||(n.href==="#"?void 0:"_blank"),rel:n.href==="#"?void 0:"noopener noreferrer",onFocus:t[0]||(t[0]=(...d)=>s.showActions&&s.showActions(...d)),onFocusout:t[1]||(t[1]=(...d)=>s.handleBlur&&s.handleBlur(...d)),onClick:d=>s.onClick(d,c,u),onDragstart:t[2]||(t[2]=d=>e.$emit("dragstart",d)),onKeydown:t[3]||(t[3]=pa((...d)=>s.hideActions&&s.hideActions(...d),["esc"]))},[ye(e.$slots,"icon",{},void 0,!0),ue("div",QA,[ue("div",e_,[ue("div",t_,[ye(e.$slots,"name",{},()=>[wt(xe(n.name),1)],!0)]),o.hasSubname?($(),X("div",{key:0,class:Be(["list-item-content__subname",{"list-item-content__subname--bold":n.bold}])},[ye(e.$slots,"subname",{},void 0,!0)],2)):he("",!0)]),ue("div",n_,[s.showDetails?($(),X("div",r_,[ye(e.$slots,"details",{},()=>[wt(xe(n.details),1)],!0)])):he("",!0),n.counterNumber!==0||o.hasIndicator?Rn(($(),X("div",o_,[n.counterNumber!==0?($(),me(a,{key:0,count:n.counterNumber,active:r.isLegacy34?n.active??l:!1,class:"list-item-details__counter",type:n.counterType},null,8,["count","active","type"])):he("",!0),o.hasIndicator?($(),X("span",s_,[ye(e.$slots,"indicator",{},void 0,!0)])):he("",!0)],512)),[[tr,s.showAdditionalElements]]):he("",!0)])])],40,JA),e.$slots["extra-actions"]?($(),X("div",a_,[ye(e.$slots,"extra-actions",{},void 0,!0)])):he("",!0),n.forceDisplayActions||o.displayActionsOnHoverFocus?($(),X("div",{key:1,class:"list-item-content__actions",onFocusout:t[4]||(t[4]=(...d)=>s.handleBlur&&s.handleBlur(...d))},[le(i,{ref:"actions",primary:r.isLegacy34?n.active??l:!1,forceMenu:n.forceMenu,"aria-label":n.actionsAriaLabel,"onUpdate:open":s.handleActionsUpdateOpen},_c({default:pe(()=>[ye(e.$slots,"actions",{},void 0,!0)]),_:2},[e.$slots["actions-icon"]?{name:"icon",fn:pe(()=>[ye(e.$slots,"actions-icon",{},void 0,!0)]),key:"0"}:void 0]),1032,["primary","forceMenu","aria-label","onUpdate:open"])],32)):he("",!0),e.$slots.extra?($(),X("div",i_,[ye(e.$slots,"extra",{},void 0,!0)])):he("",!0)],34)],16)]),_:3},16)}const l_=He(YA,[["render",u_],["__scopeId","data-v-7e90555e"]]);mn(GE,nm);const c_=We({__name:"NcTextField",props:Pr({class:{},inputClass:{},id:{},label:{},labelOutside:{type:Boolean},type:{},placeholder:{},showTrailingButton:{type:Boolean},trailingButtonLabel:{default:void 0},success:{type:Boolean},error:{type:Boolean},helperText:{},disabled:{type:Boolean},pill:{type:Boolean},trailingButtonIcon:{default:"close"}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e,{expose:t}){const n=Ho(e,"modelValue"),r=e;t({focus:u,select:c});const o=ao("inputField"),s={arrowEnd:Ie("Save changes"),close:Ie("Clear text"),undo:Ie("Undo changes")},a=new Set(Object.keys(rc.props)),i=se(()=>{const l=Object.fromEntries(Object.entries(r).filter(([d])=>a.has(d)));return l.trailingButtonLabel??=s[r.trailingButtonIcon],l});function u(l){o.value.focus(l)}function c(){o.value.select()}return(l,d)=>($(),me(z(rc),ft(i.value,{ref:"inputField",modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=p=>n.value=p)}),_c({_:2},[l.$slots.icon?{name:"icon",fn:pe(()=>[ye(l.$slots,"icon")]),key:"0"}:void 0,l.type!=="search"?{name:"trailing-button-icon",fn:pe(()=>[l.trailingButtonIcon==="arrowEnd"?($(),me(z(Ve),{key:0,directional:"",path:z(Yg)},null,8,["path"])):($(),me(z(Ve),{key:1,path:l.trailingButtonIcon==="undo"?z(FE):z(ql)},null,8,["path"]))]),key:"1"}:void 0]),1040,["modelValue"]))}});var d_="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",p_="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",oc="M6,2A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6M6,4H13V9H18V20H6V4M8,12V14H16V12H8M8,16V18H13V16H8Z",h_="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",f_="M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",g_="M3,11H11V3H3M3,21H11V13H3M13,21H21V13H13M13,3V11H21V3",m_="M9,5V9H21V5M9,19H21V15H9M9,14H21V10H9M4,9H8V5H4M4,19H8V15H4M4,14H8V10H4V14Z";const v_={class:"file-card__preview"},y_={class:"file-card__content"},b_={key:0,class:"file-card__icon"},E_={class:"file-card__text"},w_={class:"file-card__name"},C_={key:0,class:"file-card__subname"},x_=We({__name:"FileCard",emits:["click"],setup(e){return(t,n)=>($(),X("button",{type:"button",class:"file-card",onClick:n[0]||(n[0]=r=>t.$emit("click",r))},[ue("div",v_,[ye(t.$slots,"preview",{},void 0,!0)]),ue("div",y_,[t.$slots.icon?($(),X("span",b_,[ye(t.$slots,"icon",{},void 0,!0)])):he("",!0),ue("div",E_,[ue("div",w_,[ye(t.$slots,"name",{},void 0,!0)]),t.$slots.subname?($(),X("div",C_,[ye(t.$slots,"subname",{},void 0,!0)])):he("",!0)])])]))}}),au=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},A_=au(x_,[["__scopeId","data-v-945915af"]]),__={class:"file-preview"},S_=["src","alt"],k_=We({__name:"FilePreview",props:{file:{},size:{default:300},fallbackIconSize:{default:48},alt:{default:""}},setup(e){const t=e,n=Ae(!1),r=se(()=>{const o=(t.file.attributes?.etag??"").slice(0,6);return xr("/core/preview?fileId={fileid}&x={x}&y={y}&v={v}&a=1&mimeFallback=true",{fileid:t.file.fileid,x:t.size,y:t.size,v:o})});return(o,s)=>($(),X("div",__,[n.value?($(),me(z(Ve),{key:1,path:z(oc),size:e.fallbackIconSize,class:"file-preview__fallback"},null,8,["path","size"])):($(),X("img",{key:0,src:r.value,alt:e.alt,loading:"lazy",class:"file-preview__image",onError:s[0]||(s[0]=a=>n.value=!0)},null,40,S_))]))}}),Ih=au(k_,[["__scopeId","data-v-52ee489a"]]),T_={class:"template-section__header"},O_={id:"template-section-heading",class:"template-section__heading"},D_={key:0,class:"template-section__nav"},N_={class:"template-card__preview"},P_={class:"template-card__name"},B_=["onClick"],$_={class:"template-card__preview"},R_=["src","alt","onError"],F_={class:"template-card__name"},Mh=160,jh=12,L_=We({__name:"TemplateSection",props:{creator:{}},emits:["select"],setup(e,{emit:t}){const n={document:["hsl(203 79% 78%)","hsl(203 79% 60%)","hsl(203 70% 42%)","hsl(203 65% 26%)"],spreadsheet:["hsl(79 46% 70%)","hsl(79 46% 52%)","hsl(79 50% 38%)","hsl(79 55% 24%)"],presentation:["hsl(23 83% 80%)","hsl(23 83% 66%)","hsl(23 75% 48%)","hsl(23 70% 32%)"],drawing:["hsl(47 80% 62%)","hsl(47 80% 39%)","hsl(47 82% 28%)","hsl(47 85% 18%)"]},r={"application/vnd.oasis.opendocument.presentation":"presentation","application/vnd.oasis.opendocument.presentation-template":"presentation","application/vnd.ms-powerpoint":"presentation","application/vnd.openxmlformats-officedocument.presentationml.presentation":"presentation","application/vnd.oasis.opendocument.spreadsheet":"spreadsheet","application/vnd.oasis.opendocument.spreadsheet-template":"spreadsheet","application/vnd.ms-excel":"spreadsheet","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"spreadsheet","application/vnd.oasis.opendocument.graphics":"drawing","application/vnd.oasis.opendocument.graphics-template":"drawing"},o=e,s=t,a=Ae(null),i=Ae(!1),u=Ae(!1),c=Ae({});let l=null;const d=se(()=>{for(const C of o.creator.mimetypes??[]){const _=r[C];if(_)return _}return"document"}),p=se(()=>{const C=d.value==="presentation",_=C?150:200,D=C?16/9:2/3;return{width:`${Math.round(_*D)}px`,"--tpl-preview-height":`${_}px`}}),h=se(()=>{const[C,_,D,R]=n[d.value];return{"--tpl-glow-1":C,"--tpl-glow-2":_,"--tpl-glow-3":D,"--tpl-glow-4":R}}),g=se(()=>i.value||u.value),f=se(()=>[{blank:!0},...o.creator.templates??[]]);et(()=>o.creator,()=>{a.value&&(a.value.scrollLeft=0),m()});function m(){if(!a.value)return;const{scrollLeft:C,scrollWidth:_,clientWidth:D}=a.value;i.value=C>0,u.value=C+D<_-1}function y(C){if(!a.value)return;const _=Math.max(Mh+jh,a.value.clientWidth-(Mh+jh));a.value.scrollBy({left:C*_,behavior:"smooth"})}function v(C){const _=C.lastIndexOf(".");return _>0?C.slice(0,_):C}function E(C){return C.previewUrl?C.previewUrl:xr("/core/preview?fileId={fileid}&x=256&y=256&a=1",{fileid:C.fileid})}return Sn(()=>{l=new ResizeObserver(()=>m()),a.value&&l.observe(a.value),m()}),ur(()=>{l?.disconnect()}),(C,_)=>($(),X("section",{class:"template-section",style:hn(h.value),"aria-labelledby":"template-section-heading"},[ue("div",T_,[ue("h2",O_,xe(z(Ue)("office","Create new")),1),g.value?($(),X("div",D_,[le(z(Qe),{variant:"tertiary","aria-label":z(Ue)("office","Scroll left"),disabled:!i.value,onClick:_[0]||(_[0]=D=>y(-1))},{icon:pe(()=>[le(z(Ve),{svg:z(d_),size:20},null,8,["svg"])]),_:1},8,["aria-label","disabled"]),le(z(Qe),{variant:"tertiary","aria-label":z(Ue)("office","Scroll right"),disabled:!u.value,onClick:_[1]||(_[1]=D=>y(1))},{icon:pe(()=>[le(z(Ve),{svg:z(p_),size:20},null,8,["svg"])]),_:1},8,["aria-label","disabled"])])):he("",!0)]),ue("ul",{ref_key:"list",ref:a,class:"template-section__list",onScroll:m},[($(!0),X(Ze,null,Os(f.value,D=>($(),X("li",{key:"blank"in D?"blank":D.fileid,class:"template-section__item"},["blank"in D?($(),X("button",{key:0,class:"template-card",style:hn(p.value),onClick:_[2]||(_[2]=R=>s("select",e.creator,null))},[ue("span",N_,[le(z(Ve),{svg:e.creator.iconSvgInline??"",size:32},null,8,["svg"])]),ue("span",P_,xe(z(Ue)("office","Blank")),1)],4)):($(),X("button",{key:1,class:"template-card",style:hn(p.value),onClick:R=>s("select",e.creator,D)},[ue("span",$_,[D.hasPreview&&!c.value[D.fileid]?($(),X("img",{key:0,src:E(D),alt:v(D.basename),loading:"lazy",class:"template-card__image",onError:R=>c.value={...c.value,[D.fileid]:!0}},null,40,R_)):($(),me(z(Ve),{key:1,svg:e.creator.iconSvgInline??"",size:48},null,8,["svg"]))]),ue("span",F_,xe(v(D.basename)),1)],12,B_))]))),128))],544)],4))}}),I_=au(L_,[["__scopeId","data-v-e970ce47"]]);function Hc(){return Go("files_sharing","isPublic",null)??document.querySelector('input#isPublic[type="hidden"][name="isPublic"][value="1"]')!==null}function M_(){return Go("files_sharing","sharingToken",null)??document.querySelector('input#sharingToken[type="hidden"]')?.value??null}var nl={},j_={2(e){function t(o,s,a){o instanceof RegExp&&(o=n(o,a)),s instanceof RegExp&&(s=n(s,a));var i=r(o,s,a);return i&&{start:i[0],end:i[1],pre:a.slice(0,i[0]),body:a.slice(i[0]+o.length,i[1]),post:a.slice(i[1]+s.length)}}function n(o,s){var a=s.match(o);return a?a[0]:null}function r(o,s,a){var i,u,c,l,d,p=a.indexOf(o),h=a.indexOf(s,p+1),g=p;if(p>=0&&h>0){for(i=[],c=a.length;g>=0&&!d;)g==p?(i.push(g),p=a.indexOf(o,g+1)):i.length==1?d=[i.pop(),h]:((u=i.pop())=0?p:h;i.length&&(d=[c,l])}return d}e.exports=t,t.range=r},101(e,t,n){var r;e=n.nmd(e),(function(){var o=(e&&e.exports,typeof er=="object"&&er);o.global!==o&&o.window;var s=function(l){this.message=l};(s.prototype=new Error).name="InvalidCharacterError";var a=function(l){throw new s(l)},i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=/[\t\n\f\r ]/g,c={encode:function(l){l=String(l),/[^\0-\xFF]/.test(l)&&a("The string to be encoded contains characters outside of the Latin1 range.");for(var d,p,h,g,f=l.length%3,m="",y=-1,v=l.length-f;++y>18&63)+i.charAt(g>>12&63)+i.charAt(g>>6&63)+i.charAt(63&g);return f==2?(d=l.charCodeAt(y)<<8,p=l.charCodeAt(++y),m+=i.charAt((g=d+p)>>10)+i.charAt(g>>4&63)+i.charAt(g<<2&63)+"="):f==1&&(g=l.charCodeAt(y),m+=i.charAt(g>>2)+i.charAt(g<<4&63)+"=="),m},decode:function(l){var d=(l=String(l).replace(u,"")).length;d%4==0&&(d=(l=l.replace(/==?$/,"")).length),(d%4==1||/[^+a-zA-Z0-9/]/.test(l))&&a("Invalid character: the string to be decoded is not correctly encoded.");for(var p,h,g=0,f="",m=-1;++m>(-2*g&6)));return f},version:"1.0.0"};(r=function(){return c}.call(t,n,t,e))===void 0||(e.exports=r)})()},172(e,t){t.d=function(n){if(!n)return 0;for(var r=(n=n.toString()).length,o=n.length;o--;){var s=n.charCodeAt(o);56320<=s&&s<=57343&&o--,127>>32-o},rotr:function(r,o){return r<<32-o|r>>>o},endian:function(r){if(r.constructor==Number)return 16711935&n.rotl(r,8)|4278255360&n.rotl(r,24);for(var o=0;o0;r--)o.push(Math.floor(256*Math.random()));return o},bytesToWords:function(r){for(var o=[],s=0,a=0;s>>5]|=r[s]<<24-a%32;return o},wordsToBytes:function(r){for(var o=[],s=0;s<32*r.length;s+=8)o.push(r[s>>>5]>>>24-s%32&255);return o},bytesToHex:function(r){for(var o=[],s=0;s>>4).toString(16)),o.push((15&r[s]).toString(16));return o.join("")},hexToBytes:function(r){for(var o=[],s=0;s>>6*(3-i)&63)):o.push("=");return o.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/gi,"");for(var o=[],s=0,a=0;s>>6-2*a);return o}},e.exports=n},135(e){function t(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}e.exports=function(n){return n!=null&&(t(n)||(function(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&t(r.slice(0,0))})(n)||!!n._isBuffer)}},542(e,t,n){(function(){var r=n(298),o=n(526).utf8,s=n(135),a=n(526).bin,i=function(u,c){u.constructor==String?u=c&&c.encoding==="binary"?a.stringToBytes(u):o.stringToBytes(u):s(u)?u=Array.prototype.slice.call(u,0):Array.isArray(u)||u.constructor===Uint8Array||(u=u.toString());for(var l=r.bytesToWords(u),d=8*u.length,p=1732584193,h=-271733879,g=-1732584194,f=271733878,m=0;m>>24)|4278255360&(l[m]<<24|l[m]>>>8);l[d>>>5]|=128<>>9<<4)]=d;var y=i._ff,v=i._gg,E=i._hh,C=i._ii;for(m=0;m>>0,h=h+D>>>0,g=g+R>>>0,f=f+Z>>>0}return r.endian([p,h,g,f])};i._ff=function(u,c,l,d,p,h,g){var f=u+(c&l|~c&d)+(p>>>0)+g;return(f<>>32-h)+c},i._gg=function(u,c,l,d,p,h,g){var f=u+(c&d|l&~d)+(p>>>0)+g;return(f<>>32-h)+c},i._hh=function(u,c,l,d,p,h,g){var f=u+(c^l^d)+(p>>>0)+g;return(f<>>32-h)+c},i._ii=function(u,c,l,d,p,h,g){var f=u+(l^(c|~d))+(p>>>0)+g;return(f<>>32-h)+c},i._blocksize=16,i._digestsize=16,e.exports=function(u,c){if(u==null)throw new Error("Illegal argument "+u);var l=r.wordsToBytes(i(u,c));return c&&c.asBytes?l:c&&c.asString?a.bytesToString(l):r.bytesToHex(l)}})()},285(e,t,n){var r=n(2);e.exports=function(y,v){if(!y)return[];var E=(v=v||{}).max==null?1/0:v.max;return y.substr(0,2)==="{}"&&(y="\\{\\}"+y.substr(2)),m((function(C){return C.split("\\\\").join(o).split("\\{").join(s).split("\\}").join(a).split("\\,").join(i).split("\\.").join(u)})(y),E,!0).map(l)};var o="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",i="\0COMMA"+Math.random()+"\0",u="\0PERIOD"+Math.random()+"\0";function c(y){return parseInt(y,10)==y?parseInt(y,10):y.charCodeAt(0)}function l(y){return y.split(o).join("\\").split(s).join("{").split(a).join("}").split(i).join(",").split(u).join(".")}function d(y){if(!y)return[""];var v=[],E=r("{","}",y);if(!E)return y.split(",");var C=E.pre,_=E.body,D=E.post,R=C.split(",");R[R.length-1]+="{"+_+"}";var Z=d(D);return D.length&&(R[R.length-1]+=Z.shift(),R.push.apply(R,Z)),v.push.apply(v,R),v}function p(y){return"{"+y+"}"}function h(y){return/^-?0\d/.test(y)}function g(y,v){return y<=v}function f(y,v){return y>=v}function m(y,v,E){var C=[],_=r("{","}",y);if(!_)return[y];var D=_.pre,R=_.post.length?m(_.post,v,!1):[""];if(/\$$/.test(_.pre))for(var Z=0;Z=0;if(!W&&!ne)return _.post.match(/,(?!,).*\}/)?m(y=_.pre+"{"+_.body+a+_.post,v,!0):[y];if(W)P=_.body.split(/\.\./);else if((P=d(_.body)).length===1&&(P=m(P[0],v,!1).map(p)).length===1)return R.map((function(A){return _.pre+P[0]+A}));if(W){var Q=c(P[0]),Y=c(P[1]),ee=Math.max(P[0].length,P[1].length),J=P.length==3?Math.max(Math.abs(c(P[2])),1):1,te=g;Y0){var Se=new Array(we+1).join("0");_e=fe<0?"-"+Se+_e.slice(1):Se+_e}}oe.push(_e)}}else{oe=[];for(var Le=0;Le"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}})()?Reflect.construct:function(p,h,g){var f=[null];f.push.apply(f,h);var m=new(Function.bind.apply(p,f));return g&&o(m,g.prototype),m},r.apply(null,arguments)}function o(c,l){return o=Object.setPrototypeOf||function(d,p){return d.__proto__=p,d},o(c,l)}function s(c){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)},s(c)}var a=(function(c){function l(d){var p;return(function(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")})(this,l),(p=(function(h,g){return!g||t(g)!=="object"&&typeof g!="function"?(function(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f})(h):g})(this,s(l).call(this,d))).name="ObjectPrototypeMutationError",p}return(function(d,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(p&&p.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),p&&o(d,p)})(l,c),l})(n(Error));function i(c,l){for(var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},p=l.split("."),h=p.length,g=function(y){var v=p[y];if(!c)return{v:void 0};if(v==="+"){if(Array.isArray(c))return{v:c.map((function(C,_){var D=p.slice(y+1);return D.length>0?i(C,D.join("."),d):d(c,_,p,y)}))};var E=p.slice(0,y).join(".");throw new Error("Object at wildcard (".concat(E,") is not an array"))}c=d(c,v,p,y)},f=0;f2&&arguments[2]!==void 0?arguments[2]:{};if(t(c)!="object"||c===null||l===void 0)return!1;if(typeof l=="number")return l in c;try{var p=!1;return i(c,l,(function(h,g,f,m){if(!u(f,m))return h&&h[g];p=d.own?h.hasOwnProperty(g):g in h})),p}catch{return!1}},hasOwn:function(c,l,d){return this.has(c,l,d||{own:!0})},isIn:function(c,l,d){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(t(c)!="object"||c===null||l===void 0)return!1;try{var h=!1,g=!1;return i(c,l,(function(f,m,y,v){return h=h||f===d||!!f&&f[m]===d,g=u(y,v)&&t(f)==="object"&&m in f,f&&f[m]})),p.validPath?h&&g:h}catch{return!1}},ObjectPrototypeMutationError:a}},47(e,t,n){var r=n(410),o=function(c){return typeof c=="string"};function s(c,l){for(var d=[],p=0;p=-1&&!l;d--){var p=d>=0?arguments[d]:ro.cwd();if(!o(p))throw new TypeError("Arguments to path.resolve must be strings");p&&(c=p+"/"+c,l=p.charAt(0)==="/")}return(l?"/":"")+(c=s(c.split("/"),!l).join("/"))||"."},i.normalize=function(c){var l=i.isAbsolute(c),d=c.substr(-1)==="/";return(c=s(c.split("/"),!l).join("/"))||l||(c="."),c&&d&&(c+="/"),(l?"/":"")+c},i.isAbsolute=function(c){return c.charAt(0)==="/"},i.join=function(){for(var c="",l=0;l=0&&v[C]==="";C--);return E>C?[]:v.slice(E,C+1)}c=i.resolve(c).substr(1),l=i.resolve(l).substr(1);for(var p=d(c.split("/")),h=d(l.split("/")),g=Math.min(p.length,h.length),f=g,m=0;m=2&&(C=C.slice(2)):f(D)?C=_[4]:D?R&&(C=C.slice(2)):M>=2&&f(E.protocol)&&(C=_[4]),{protocol:D,slashes:R||f(D),slashesCount:M,rest:C}}function y(v,E,C){if(v=(v=d(v)).replace(a,""),!(this instanceof y))return new y(v,E,C);var _,D,R,Z,M,P,oe=p.slice(),O=typeof E,S=this,W=0;for(O!=="object"&&O!=="string"&&(C=E,E=null),C&&typeof C!="function"&&(C=o.parse),_=!(D=m(v||"",E=g(E))).protocol&&!D.slashes,S.slashes=D.slashes||_&&E.slashes,S.protocol=D.protocol||E.protocol||"",v=D.rest,(D.protocol==="file:"&&(D.slashesCount!==2||l.test(v))||!D.slashes&&(D.protocol||D.slashesCount<2||!f(S.protocol)))&&(oe[3]=[/(.*)/,"pathname"]);W{var t=e&&e.__esModule?()=>e.default:()=>e;return Xe.d(t,{a:t}),t},Xe.d=(e,t)=>{for(var n in t)Xe.o(t,n)&&!Xe.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},Xe.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Xe.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var z_=Xe(737),U_=Xe.n(z_);function rl(e){if(!sc(e))throw new Error("Parameter was not an error")}function sc(e){return!!e&&typeof e=="object"&&(t=e,Object.prototype.toString.call(t)==="[object Error]")||e instanceof Error;var t}class Wt extends Error{constructor(t,n){const r=[...arguments],{options:o,shortMessage:s}=(function(i){let u,c="";if(i.length===0)u={};else if(sc(i[0]))u={cause:i[0]},c=i.slice(1).join(" ")||"";else if(i[0]&&typeof i[0]=="object")u=Object.assign({},i[0]),c=i.slice(1).join(" ")||"";else{if(typeof i[0]!="string")throw new Error("Invalid arguments passed to Layerr");u={},c=c=i.join(" ")||""}return{options:u,shortMessage:c}})(r);let a=s;if(o.cause&&(a=`${a}: ${o.cause.message}`),super(a),this.message=a,o.name&&typeof o.name=="string"?this.name=o.name:this.name="Layerr",o.cause&&Object.defineProperty(this,"_cause",{value:o.cause}),Object.defineProperty(this,"_info",{value:{}}),o.info&&typeof o.info=="object"&&Object.assign(this._info,o.info),Error.captureStackTrace){const i=o.constructorOpt||this.constructor;Error.captureStackTrace(this,i)}}static cause(t){return rl(t),t._cause&&sc(t._cause)?t._cause:null}static fullStack(t){rl(t);const n=Wt.cause(t);return n?`${t.stack} +caused by: ${Wt.fullStack(n)}`:t.stack??""}static info(t){rl(t);const n={},r=Wt.cause(t);return r&&Object.assign(n,Wt.info(r)),t._info&&Object.assign(n,t._info),n}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}var V_=Xe(47),Si=Xe.n(V_);const Uh="__PATH_SEPARATOR_POSIX__",Vh="__PATH_SEPARATOR_WINDOWS__";function tt(e){try{const t=e.replace(/\//g,Uh).replace(/\\\\/g,Vh);return encodeURIComponent(t).split(Vh).join("\\\\").split(Uh).join("/")}catch(t){throw new Wt(t,"Failed encoding path")}}function Hh(e){return e.startsWith("/")?e:"/"+e}function ra(e){let t=e;return t[0]!=="/"&&(t="/"+t),/^.+\/$/.test(t)&&(t=t.substr(0,t.length-1)),t}function H_(e){let t=new(U_())(e).pathname;return t.length<=0&&(t="/"),ra(t)}function nt(){for(var e=arguments.length,t=new Array(e),n=0;n1){var s=r.shift();r[0]=s+r[0]}r[0].match(/^file:\/\/\//)?r[0]=r[0].replace(/^([^/:]+):\/*/,"$1:///"):r[0]=r[0].replace(/^([^/:]+):\/*/,"$1://");for(var a=0;a0&&(i=i.replace(/^[\/]+/,"")),i=a0?"?":"")+c.join("&")})(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))})(t.reduce(((r,o,s)=>((s===0||o!=="/"||o==="/"&&r[r.length-1]!=="/")&&r.push(o),r)),[]))}var G_=Xe(542),ds=Xe.n(G_);function Gh(e,t){const n=e.url.replace("//",""),r=n.indexOf("/")==-1?"/":n.slice(n.indexOf("/")),o=e.method?e.method.toUpperCase():"GET",s=!!/(^|,)\s*auth\s*($|,)/.test(t.qop)&&"auth",a=`00000000${t.nc}`.slice(-8),i=(function(p,h,g,f,m,y,v){const E=v||ds()(`${h}:${g}:${f}`);return p&&p.toLowerCase()==="md5-sess"?ds()(`${E}:${m}:${y}`):E})(t.algorithm,t.username,t.realm,t.password,t.nonce,t.cnonce,t.ha1),u=ds()(`${o}:${r}`),c=s?ds()(`${i}:${t.nonce}:${a}:${t.cnonce}:${s}:${u}`):ds()(`${i}:${t.nonce}:${u}`),l={username:t.username,realm:t.realm,nonce:t.nonce,uri:r,qop:s,response:c,nc:a,cnonce:t.cnonce,algorithm:t.algorithm,opaque:t.opaque},d=[];for(const p in l)l[p]&&(p==="qop"||p==="nc"||p==="algorithm"?d.push(`${p}=${l[p]}`):d.push(`${p}="${l[p]}"`));return`Digest ${d.join(", ")}`}function Lm(e){return(e.headers&&e.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var W_=Xe(101),Im=Xe.n(W_);function Wh(e){return Im().decode(e)}function qh(e,t){var n;return`Basic ${n=`${e}:${t}`,Im().encode(n)}`}const Kh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:typeof window<"u"?window:globalThis,q_=Kh.fetch.bind(Kh);let Yt=(function(e){return e.Auto="auto",e.Digest="digest",e.None="none",e.Password="password",e.Token="token",e})({}),Rr=(function(e){return e.DataTypeNoLength="data-type-no-length",e.InvalidAuthType="invalid-auth-type",e.InvalidOutputFormat="invalid-output-format",e.LinkUnsupportedAuthType="link-unsupported-auth",e.InvalidUpdateRange="invalid-update-range",e.NotSupported="not-supported",e})({});function Mm(e,t,n,r,o){switch(e.authType){case Yt.Auto:t&&n&&(e.headers.Authorization=qh(t,n));break;case Yt.Digest:e.digest=(function(a,i,u){return{username:a,password:i,ha1:u,nc:0,algorithm:"md5",hasDigestAuth:!1}})(t,n,o);break;case Yt.None:break;case Yt.Password:e.headers.Authorization=qh(t,n);break;case Yt.Token:e.headers.Authorization=`${(s=r).token_type} ${s.access_token}`;break;default:throw new Wt({info:{code:Rr.InvalidAuthType}},`Invalid auth type: ${e.authType}`)}var s}Xe(345),Xe(800);const Xh="@@HOTPATCHER",K_=()=>{};function ol(e){return{original:e,methods:[e],final:!1}}class X_{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=Xh}get configuration(){return this._configuration}get getEmptyAction(){return this.configuration.getEmptyAction}set getEmptyAction(t){this.configuration.getEmptyAction=t}control(t){let n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!t||t.__type__!==Xh)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(t.configuration.registry).forEach((r=>{this.configuration.registry.hasOwnProperty(r)?n&&(this.configuration.registry[r]=Object.assign({},t.configuration.registry[r])):this.configuration.registry[r]=Object.assign({},t.configuration.registry[r])})),t._configuration=this.configuration,this}execute(t){const n=this.get(t)||K_;for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s0;)c=[o.shift().apply(l,c)];return c[0]}})(...n.methods)}isPatched(t){return!!this.configuration.registry[t]}patch(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{chain:o=!1}=r;if(this.configuration.registry[t]&&this.configuration.registry[t].final)throw new Error(`Failed patching '${t}': Method marked as being final`);if(typeof n!="function")throw new Error(`Failed patching '${t}': Provided method is not a function`);if(o)this.configuration.registry[t]?this.configuration.registry[t].methods.push(n):this.configuration.registry[t]=ol(n);else if(this.isPatched(t)){const{original:s}=this.configuration.registry[t];this.configuration.registry[t]=Object.assign(ol(n),{original:s})}else this.configuration.registry[t]=ol(n);return this}patchInline(t,n){this.isPatched(t)||this.patch(t,n);for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s1?n-1:0),o=1;o{this.patch(t,s,{chain:!0})})),this}restore(t){if(!this.isPatched(t))throw new Error(`Failed restoring method: No method present for key: ${t}`);if(typeof this.configuration.registry[t].original!="function")throw new Error(`Failed restoring method: Original method not found or of invalid type for key: ${t}`);return this.configuration.registry[t].methods=[this.configuration.registry[t].original],this}setFinal(t){if(!this.configuration.registry.hasOwnProperty(t))throw new Error(`Failed marking '${t}' as final: No method found for key`);return this.configuration.registry[t].final=!0,this}}let sl=null;function jm(){return sl||(sl=new X_),sl}function ki(e){return(function(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let n=t;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(t)===n})(e)?Object.assign({},e):Object.setPrototypeOf(Object.assign({},e),Object.getPrototypeOf(e))}function Zh(){for(var e=arguments.length,t=new Array(e),n=0;n0;){const s=o.shift();r=r?zm(r,s):ki(s)}return r}function zm(e,t){const n=ki(e);return Object.keys(t).forEach((r=>{n.hasOwnProperty(r)?Array.isArray(t[r])?n[r]=Array.isArray(n[r])?[...n[r],...t[r]]:[...t[r]]:typeof t[r]=="object"&&t[r]?n[r]=typeof n[r]=="object"&&n[r]?zm(n[r],t[r]):ki(t[r]):n[r]=t[r]:n[r]=t[r]})),n}function Z_(e){const t={};for(const n of e.keys())t[n]=e.get(n);return t}function ac(){for(var e=arguments.length,t=new Array(e),n=0;n(Object.keys(s).forEach((a=>{const i=a.toLowerCase();r.hasOwnProperty(i)?o[r[i]]=s[a]:(r[i]=a,o[a]=s[a])})),o)),{})}Xe(805);const Y_=typeof ArrayBuffer=="function",{toString:J_}=Object.prototype;function Um(e){return Y_&&(e instanceof ArrayBuffer||J_.call(e)==="[object ArrayBuffer]")}function Vm(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Gc(e){return function(){for(var t=[],n=0;nt.patchInline("fetch",q_,n.url,(function(r){let o={};const s={method:r.method};if(r.headers&&(o=ac(o,r.headers)),r.data!==void 0){const[a,i]=(function(u){if(typeof u=="string")return[u,{}];if(Vm(u))return[u,{}];if(Um(u))return[u,{}];if(u&&typeof u=="object")return[JSON.stringify(u),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+typeof u)})(r.data);s.body=a,o=ac(o,i)}return r.signal&&(s.signal=r.signal),r.withCredentials&&(s.credentials="include"),s.headers=o,s})(n))),e)}var eS=Xe(285);const Oi=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},tS={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},ps=e=>e.replace(/[[\]\\-]/g,"\\$&"),Yh=e=>e.join(""),nS=(e,t)=>{const n=t;if(e.charAt(n)!=="[")throw new Error("not in a brace expression");const r=[],o=[];let s=n+1,a=!1,i=!1,u=!1,c=!1,l=n,d="";e:for(;sd?r.push(ps(d)+"-"+ps(f)):f===d&&r.push(ps(f)),d="",s++):e.startsWith("-]",s+1)?(r.push(ps(f+"-")),s+=2):e.startsWith("-",s+1)?(d=f,s+=2):(r.push(ps(f)),s++)}else u=!0,s++}else c=!0,s++}if(l1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")};var Kt;const rS=new Set(["!","?","+","*","@"]),uc=e=>rS.has(e),Jh=e=>uc(e.type),oS=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),sS=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),aS=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Qh=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),al="(?!\\.)",iS=new Set(["[","."]),uS=new Set(["..","."]),lS=new Set("().*{}+?[]^$\\!"),Wc="[^/]",e0=Wc+"*?",t0=Wc+"+?";class qc{type;#n;#r;#o=!1;#e=[];#t;#i;#l;#u=!1;#s;#a;#c=!1;constructor(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=t,t&&(this.#r=!0),this.#t=n,this.#n=this.#t?this.#t.#n:this,this.#s=this.#n===this?r:this.#n.#s,this.#l=this.#n===this?[]:this.#n.#l,t!=="!"||this.#n.#u||this.#l.push(this),this.#i=this.#t?this.#t.#e.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(const t of this.#e)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#a!==void 0?this.#a:this.type?this.#a=this.type+"("+this.#e.map((t=>String(t))).join("|")+")":this.#a=this.#e.map((t=>String(t))).join("")}#v(){if(this!==this.#n)throw new Error("should only call on root");if(this.#u)return this;let t;for(this.toString(),this.#u=!0;t=this.#l.pop();){if(t.type!=="!")continue;let n=t,r=n.#t;for(;r;){for(let o=n.#i+1;!r.type&&otypeof n=="string"?n:n.toJSON())):[this.type,...this.#e.map((n=>n.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#n||this.#n.#u&&this.#t?.type==="!")&&t.push({}),t}isStart(){if(this.#n===this)return!0;if(!this.#t?.isStart())return!1;if(this.#i===0)return!0;const t=this.#t;for(let n=0;n1&&arguments[1]!==void 0?arguments[1]:oS;if(!t||typeof t!="object"||t.type!==null||t.#e.length!==1||this.type===null)return!1;const r=t.#e[0];return!(!r||typeof r!="object"||r.type===null)&&this.#p(r.type,n)}#p(t){return!!(arguments.length>1&&arguments[1]!==void 0?arguments[1]:aS).get(this.type)?.includes(t)}#b(t,n){const r=t.#e[0],o=new Kt(null,r,this.options);o.#e.push(""),r.push(o),this.#g(t,n)}#g(t,n){const r=t.#e[0];this.#e.splice(n,1,...r.#e);for(const o of r.#e)typeof o=="object"&&(o.#t=this);this.#a=void 0}#E(t){return!!Qh.get(this.type)?.has(t)}#w(t){if(!t||typeof t!="object"||t.type!==null||t.#e.length!==1||this.type===null||this.#e.length!==1)return!1;const n=t.#e[0];return!(!n||typeof n!="object"||n.type===null)&&this.#E(n.type)}#C(t){const n=Qh.get(this.type),r=t.#e[0],o=n?.get(r.type);if(!o)return!1;this.#e=r.#e;for(const s of this.#e)typeof s=="object"&&(s.#t=this);this.type=o,this.#a=void 0,this.#c=!1}#h(){if(Jh(this)){let t=0,n=!1;do{n=!0;for(let r=0;r1&&arguments[1]!==void 0?arguments[1]:{};const r=new Kt(null,void 0,n);return Kt.#d(t,r,0,n,0),r}toMMPattern(){if(this!==this.#n)return this.#n.toMMPattern();const t=this.toString(),[n,r,o,s]=this.toRegExpSource();if(!(o||this.#r||this.#s.nocase&&!this.#s.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return r;const a=(this.#s.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${n}$`,a),{_src:n,_glob:t})}get options(){return this.#s}toRegExpSource(t){const n=t??!!this.#s.dot;if(this.#n===this&&(this.#h(),this.#v()),!Jh(this)){const u=this.isStart()&&this.isEnd(),c=this.#e.map((p=>{const[h,g,f,m]=typeof p=="string"?Kt.#x(p,this.#r,u):p.toRegExpSource(t);return this.#r=this.#r||f,this.#o=this.#o||m,h})).join("");let l="";if(this.isStart()&&typeof this.#e[0]=="string"&&(this.#e.length!==1||!uS.has(this.#e[0]))){const p=iS,h=n&&p.has(c.charAt(0))||c.startsWith("\\.")&&p.has(c.charAt(2))||c.startsWith("\\.\\.")&&p.has(c.charAt(4)),g=!n&&!t&&p.has(c.charAt(0));l=h?"(?!(?:^|/)\\.\\.?(?:$|/))":g?al:""}let d="";return this.isEnd()&&this.#n.#u&&this.#t?.type==="!"&&(d="(?:$|\\/)"),[l+c+d,xs(c),this.#r=!!this.#r,this.#o]}const r=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let s=this.#m(n);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const u=this.toString(),c=this;return c.#e=[u],c.type=null,c.#r=void 0,[u,xs(this.toString()),!1,!1]}let a=!r||t||n?"":this.#m(!0);a===s&&(a=""),a&&(s=`(?:${s})(?:${a})*?`);let i="";return i=this.type==="!"&&this.#c?(this.isStart()&&!n?al:"")+t0:o+s+(this.type==="!"?"))"+(!this.isStart()||n||t?"":al)+e0+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`),[i,xs(s),this.#r=!!this.#r,this.#o]}#m(t){return this.#e.map((n=>{if(typeof n=="string")throw new Error("string type in extglob ast??");const[r,o,s,a]=n.toRegExpSource(t);return this.#o=this.#o||a,r})).filter((n=>!(this.isStart()&&this.isEnd()&&!n))).join("|")}static#x(t,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=!1,s="",a=!1,i=!1;for(let u=0;u2&&arguments[2]!==void 0?arguments[2]:{};return Oi(t),!(!n.nocomment&&t.charAt(0)==="#")&&new Di(t,n).match(e)},cS=/^\*+([^+@!?\*\[\(]*)$/,dS=e=>t=>!t.startsWith(".")&&t.endsWith(e),pS=e=>t=>t.endsWith(e),hS=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),fS=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),gS=/^\*+\.\*+$/,mS=e=>!e.startsWith(".")&&e.includes("."),vS=e=>e!=="."&&e!==".."&&e.includes("."),yS=/^\.\*+$/,bS=e=>e!=="."&&e!==".."&&e.startsWith("."),ES=/^\*+$/,wS=e=>e.length!==0&&!e.startsWith("."),CS=e=>e.length!==0&&e!=="."&&e!=="..",xS=/^\?+([^+@!?\*\[\(]*)?$/,AS=e=>{let[t,n=""]=e;const r=Gm([t]);return n?(n=n.toLowerCase(),o=>r(o)&&o.toLowerCase().endsWith(n)):r},_S=e=>{let[t,n=""]=e;const r=Wm([t]);return n?(n=n.toLowerCase(),o=>r(o)&&o.toLowerCase().endsWith(n)):r},SS=e=>{let[t,n=""]=e;const r=Wm([t]);return n?o=>r(o)&&o.endsWith(n):r},kS=e=>{let[t,n=""]=e;const r=Gm([t]);return n?o=>r(o)&&o.endsWith(n):r},Gm=e=>{let[t]=e;const n=t.length;return r=>r.length===n&&!r.startsWith(".")},Wm=e=>{let[t]=e;const n=t.length;return r=>r.length===n&&r!=="."&&r!==".."},qm=typeof ro=="object"&&ro?typeof nl=="object"&&nl&&nl.__MINIMATCH_TESTING_PLATFORM__||ro.platform:"posix";$t.sep=qm==="win32"?"\\":"/";const Ot=Symbol("globstar **");$t.GLOBSTAR=Ot,$t.filter=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n=>$t(n,e,t)};const an=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.assign({},e,t)};$t.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return $t;const t=$t;return Object.assign((function(n,r){return t(n,r,an(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}),{Minimatch:class extends t.Minimatch{constructor(n){super(n,an(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}))}static defaults(n){return t.defaults(an(e,n)).Minimatch}},AST:class extends t.AST{constructor(n,r){super(n,r,an(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}static fromGlob(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.AST.fromGlob(n,an(e,r))}},unescape:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.unescape(n,an(e,r))},escape:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.escape(n,an(e,r))},filter:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.filter(n,an(e,r))},defaults:n=>t.defaults(an(e,n)),makeRe:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.makeRe(n,an(e,r))},braceExpand:function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.braceExpand(n,an(e,r))},match:function(n,r){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.match(n,r,an(e,o))},sep:t.sep,GLOBSTAR:Ot})};const Km=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Oi(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:eS(e)};$t.braceExpand=Km,$t.makeRe=function(e){return new Di(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},$t.match=function(e,t){const n=new Di(t,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{});return e=e.filter((r=>n.match(r))),n.options.nonull&&!e.length&&e.push(t),e};const n0=/[?*]|[+@!]\(.*?\)|\[|\]/;class Di{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Oi(t),n=n||{},this.options=n,this.maxGlobstarRecursion=n.maxGlobstarRecursion??200,this.pattern=t,this.platform=n.platform||qm,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!n.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!n.nonegate,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=n.windowsNoMagicRoot!==void 0?n.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const n of t)if(typeof n!="string")return!0;return!1}debug(){}make(){const t=this.pattern,n=this.options;if(!n.nocomment&&t.charAt(0)==="#")return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],n.debug&&(this.debug=function(){return console.error(...arguments)}),this.debug(this.pattern,this.globSet);const r=this.globSet.map((s=>this.slashSplit(s)));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let o=this.globParts.map(((s,a,i)=>{if(this.isWindows&&this.windowsNoMagicRoot){const u=!(s[0]!==""||s[1]!==""||s[2]!=="?"&&n0.test(s[2])||n0.test(s[3])),c=/^[a-z]:/i.test(s[0]);if(u)return[...s.slice(0,4),...s.slice(4).map((l=>this.parse(l)))];if(c)return[s[0],...s.slice(1).map((l=>this.parse(l)))]}return s.map((u=>this.parse(u)))}));if(this.debug(this.pattern,o),this.set=o.filter((s=>s.indexOf(!1)===-1)),this.isWindows)for(let s=0;s=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=n>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((n=>{let r=-1;for(;(r=n.indexOf("**",r+1))!==-1;){let o=r;for(;n[o+1]==="**";)o++;o!==r&&n.splice(r,o-r)}return n}))}levelOneOptimize(t){return t.map((n=>(n=n.reduce(((r,o)=>{const s=r[r.length-1];return o==="**"&&s==="**"?r:o===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(r.pop(),r):(r.push(o),r)}),[])).length===0?[""]:n))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let n=!1;do{if(n=!1,!this.preserveMultipleSlashes){for(let o=1;oo&&r.splice(o+1,a-o);let i=r[o+1];const u=r[o+2],c=r[o+3];if(i!==".."||!u||u==="."||u===".."||!c||c==="."||c==="..")continue;n=!0,r.splice(o,1);const l=r.slice(0);l[o]="**",t.push(l),o--}if(!this.preserveMultipleSlashes){for(let a=1;an.length))}partsMatch(t,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=0,s=0,a=[],i="";for(;o2&&arguments[2]!==void 0&&arguments[2],o=0,s=0;if(this.isWindows){const i=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),u=!i&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),c=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),l=u?3:i?0:void 0,d=!c&&n[0]===""&&n[1]===""&&n[2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3])?3:c?0:void 0;if(typeof l=="number"&&typeof d=="number"){const[p,h]=[t[l],n[d]];p.toLowerCase()===h.toLowerCase()&&(n[d]=p,s=d,o=l)}}const{optimizationLevel:a=1}=this.options;return a>=2&&(t=this.levelTwoFileOptimize(t)),n.includes(Ot)?this.#n(t,n,r,o,s):this.#o(t,n,r,o,s)}#n(t,n,r,o,s){const a=n.indexOf(Ot,s),i=n.lastIndexOf(Ot),[u,c,l]=r?[n.slice(s,a),n.slice(a+1),[]]:[n.slice(s,a),n.slice(a+1,i),n.slice(i+1)];if(u.length){const v=t.slice(o,o+u.length);if(!this.#o(v,u,r,0,0))return!1;o+=u.length}let d=0;if(l.length){if(l.length+o>t.length)return!1;let v=t.length-l.length;if(this.#o(t,l,r,v,0))d=l.length;else{if(t[t.length-1]!==""||o+l.length===t.length||(v--,!this.#o(t,l,r,v,0)))return!1;d=l.length+1}}if(!c.length){let v=!!d;for(let E=o;E{const c=u.map((l=>{if(l instanceof RegExp)for(const d of l.flags.split(""))o.add(d);return typeof l=="string"?l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):l===Ot?Ot:l._src}));return c.forEach(((l,d)=>{const p=c[d+1],h=c[d-1];l===Ot&&h!==Ot&&(h===void 0?p!==void 0&&p!==Ot?c[d+1]="(?:\\/|"+r+"\\/)?"+p:c[d]=r:p===void 0?c[d-1]=h+"(?:\\/|"+r+")?":p!==Ot&&(c[d-1]=h+"(?:\\/|\\/"+r+"\\/)"+p,c[d+1]=Ot))})),c.filter((l=>l!==Ot)).join("/")})).join("|");const[a,i]=t.length>1?["(?:",")"]:["",""];s="^"+a+s+i+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...o].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.partial;if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&n)return!0;const r=this.options;this.isWindows&&(t=t.split("\\").join("/"));const o=this.slashSplit(t);this.debug(this.pattern,"split",o);const s=this.set;this.debug(this.pattern,"set",s);let a=o[o.length-1];if(!a)for(let i=o.length-2;!a&&i>=0;i--)a=o[i];for(let i=0;i1&&arguments[1]!==void 0?arguments[1]:""}Invalid response: ${e.status} ${e.statusText}`);return t.status=e.status,t.response=e,t}function vt(e,t){const{status:n}=t;if(n===401&&e.digest)return t;if(n>=400)throw Kc(t);return t}function qo(e,t){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:t,headers:e.headers?Z_(e.headers):{},status:e.status,statusText:e.statusText}:t}$t.AST=qc,$t.Minimatch=Di,$t.escape=function(e){let{windowsPathsNoEscape:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&")},$t.unescape=xs;const TS=(r0=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=mt({url:nt(e.remoteURL,tt(t)),method:"COPY",headers:{Destination:nt(e.remoteURL,tt(n)),Overwrite:r.overwrite===!1?"F":"T",Depth:r.shallow?"0":"infinity"}},e,r);return a=function(i){vt(e,i)},(s=gt(o,e))&&s.then||(s=Promise.resolve(s)),a?s.then(a):s;var s,a},function(){for(var e=[],t=0;tXc.includes(e)?"__"+e:e,DS={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:Ym};function NS(e,t){if(typeof e!="string")return;const n=e.toLowerCase();if(Xc.some((r=>n===r.toLowerCase())))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);if(Zm.some((r=>n===r.toLowerCase())))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function Jm(e,t){return typeof e=="boolean"?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:typeof e=="object"&&e!==null?{enabled:e.enabled!==!1,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??"all"}:Jm(!0)}const PS=function(e){const t=Object.assign({},DS,e),n=[{value:t.attributeNamePrefix,name:"attributeNamePrefix"},{value:t.attributesGroupName,name:"attributesGroupName"},{value:t.textNodeName,name:"textNodeName"},{value:t.cdataPropName,name:"cdataPropName"},{value:t.commentPropName,name:"commentPropName"}];for(const{value:r,name:o}of n)r&&NS(r,o);return t.onDangerousProperty===null&&(t.onDangerousProperty=Ym),t.processEntities=Jm(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map((r=>typeof r=="string"&&r.startsWith("*.")?".."+r.substring(2):r))),t};let lc;lc=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class Cr{constructor(t){this.tagname=t,this.child=[],this[":@"]=Object.create(null)}add(t,n){t==="__proto__"&&(t="#__proto__"),this.child.push({[t]:n})}addChild(t,n){t.tagname==="__proto__"&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child}),n!==void 0&&(this.child[this.child.length-1][lc]={startIndex:n})}static getMetaDataSymbol(){return lc}}class BS{constructor(t){this.suppressValidationErr=!t,this.options=t}readDocType(t,n){const r=Object.create(null);let o=0;if(t[n+3]!=="O"||t[n+4]!=="C"||t[n+5]!=="T"||t[n+6]!=="Y"||t[n+7]!=="P"||t[n+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{n+=9;let s=1,a=!1,i=!1,u="";for(;n"){if(i?t[n-1]==="-"&&t[n-2]==="-"&&(i=!1,s--):s--,s===0)break}else t[n]==="["?a=!0:u+=t[n];else{if(a&&Gr(t,"!ENTITY",n)){let c,l;if(n+=7,[c,l,n]=this.readEntityExp(t,n+1,this.suppressValidationErr),l.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&o>=this.options.maxEntityCount)throw new Error(`Entity count (${o+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);r[c]=l,o++}}else if(a&&Gr(t,"!ELEMENT",n)){n+=8;const{index:c}=this.readElementExp(t,n+1);n=c}else if(a&&Gr(t,"!ATTLIST",n))n+=8;else if(a&&Gr(t,"!NOTATION",n)){n+=9;const{index:c}=this.readNotationExp(t,n+1,this.suppressValidationErr);n=c}else{if(!Gr(t,"!--",n))throw new Error("Invalid DOCTYPE");i=!0}s++,u=""}if(s!==0)throw new Error("Unclosed DOCTYPE")}return{entities:r,i:n}}readEntityExp(t,n){const r=n=qt(t,n);for(;nthis.options.maxEntitySize)throw new Error(`Entity "${o}" size (${s.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[o,s,--n]}readNotationExp(t,n){const r=n=qt(t,n);for(;n{for(;t0?t[t.length-1].tag:void 0}getCurrentNamespace(){const t=this._matcher.path;return t.length>0?t[t.length-1].namespace:void 0}getAttrValue(t){const n=this._matcher.path;if(n.length!==0)return n[n.length-1].values?.[t]}hasAttr(t){const n=this._matcher.path;if(n.length===0)return!1;const r=n[n.length-1];return r.values!==void 0&&t in r.values}getPosition(){const t=this._matcher.path;return t.length===0?-1:t[t.length-1].position??0}getCounter(){const t=this._matcher.path;return t.length===0?-1:t[t.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(t){let n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return this._matcher.toString(t,n)}toArray(){return this._matcher.path.map((t=>t.tag))}matches(t){return this._matcher.matches(t)}matchesAny(t){return t.matchesAny(this._matcher)}}class Zc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.separator=t.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new IS(this)}push(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);const o=this.path.length;this.siblingStacks[o]||(this.siblingStacks[o]=new Map);const s=this.siblingStacks[o],a=r?`${r}:${t}`:t,i=s.get(a)||0;let u=0;for(const l of s.values())u+=l;s.set(a,i+1);const c={tag:t,position:u,counter:i};r!=null&&(c.namespace=r),n!=null&&(c.values=n),this.path.push(c)}pop(){if(this.path.length===0)return;this._pathStringCache=null;const t=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),t}updateCurrent(t){if(this.path.length>0){const n=this.path[this.path.length-1];t!=null&&(n.values=t)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(t){if(this.path.length!==0)return this.path[this.path.length-1].values?.[t]}hasAttr(t){if(this.path.length===0)return!1;const n=this.path[this.path.length-1];return n.values!==void 0&&t in n.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(t){let n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];const r=t||this.separator;if(r===this.separator&&n===!0){if(this._pathStringCache!==null)return this._pathStringCache;const o=this.path.map((s=>s.namespace?`${s.namespace}:${s.tag}`:s.tag)).join(r);return this._pathStringCache=o,o}return this.path.map((o=>n&&o.namespace?`${o.namespace}:${o.tag}`:o.tag)).join(r)}toArray(){return this.path.map((t=>t.tag))}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(t){const n=t.segments;return n.length!==0&&(t.hasDeepWildcard()?this._matchWithDeepWildcard(n):this._matchSimple(n))}_matchSimple(t){if(this.path.length!==t.length)return!1;for(let n=0;n=0&&n>=0;){const o=t[r];if(o.type==="deep-wildcard"){if(r--,r<0)return!0;const s=t[r];let a=!1;for(let i=n;i>=0;i--)if(this._matchSegment(s,this.path[i],i===this.path.length-1)){n=i-1,r--,a=!0;break}if(!a)return!1}else{if(!this._matchSegment(o,this.path[n],n===this.path.length-1))return!1;n--,r--}}return r<0}_matchSegment(t,n,r){if(t.tag!=="*"&&t.tag!==n.tag||t.namespace!==void 0&&t.namespace!=="*"&&t.namespace!==n.namespace||t.attrName!==void 0&&(!r||!n.values||!(t.attrName in n.values)||t.attrValue!==void 0&&String(n.values[t.attrName])!==String(t.attrValue)))return!1;if(t.position!==void 0){if(!r)return!1;const o=n.counter??0;if(t.position==="first"&&o!==0||t.position==="odd"&&o%2!=1||t.position==="even"&&o%2!=0||t.position==="nth"&&o!==t.positionValue)return!1}return!0}matchesAny(t){return t.matchesAny(this)}snapshot(){return{path:this.path.map((t=>({...t}))),siblingStacks:this.siblingStacks.map((t=>new Map(t)))}}restore(t){this._pathStringCache=null,this.path=t.path.map((n=>({...n}))),this.siblingStacks=t.siblingStacks.map((n=>new Map(n)))}readOnly(){return this._view}}class Vo{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;this.pattern=t,this.separator=n.separator||".",this.segments=this._parse(t),this.data=r,this._hasDeepWildcard=this.segments.some((o=>o.type==="deep-wildcard")),this._hasAttributeCondition=this.segments.some((o=>o.attrName!==void 0)),this._hasPositionSelector=this.segments.some((o=>o.position!==void 0))}_parse(t){const n=[];let r=0,o="";for(;r",lt:"<",quot:'"'},zS={nbsp:" ",copy:"©",reg:"®",trade:"™",mdash:"—",ndash:"–",hellip:"…",laquo:"«",raquo:"»",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",para:"¶",sect:"§",deg:"°",frac12:"½",frac14:"¼",frac34:"¾"},US=new Set("!?\\\\/[]$%{}^&*()<>|+");function s0(e){if(e[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(const t of e)if(US.has(t))throw new Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function il(){const e=Object.create(null);for(var t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{};var n;this._limit=t.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof t.postCheck=="function"?t.postCheck:o=>o,this._limitTiers=(n=this._limit.applyLimitsTo??Wr)&&n!==Wr?n===ul?new Set([ul]):n===Ia?new Set([Ia]):Array.isArray(n)?new Set(n):new Set([Wr]):new Set([Wr]),this._numericAllowed=t.numericAllowed??!0,this._baseMap=il(Qm,t.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(t.remove&&Array.isArray(t.remove)?t.remove:[]),this._leaveSet=new Set(t.leave&&Array.isArray(t.leave)?t.leave:[]);const r=(function(o){if(!o)return{xmlVersion:1,onLevel:en.allow,nullLevel:en.remove};const s=o.xmlVersion===1.1?1.1:1,a=en[o.onNCR]??en.allow,i=en[o.nullNCR]??en.remove;return{xmlVersion:s,onLevel:a,nullLevel:Math.max(i,en.remove)}})(t.ncr);this._ncrXmlVersion=r.xmlVersion,this._ncrOnLevel=r.onLevel,this._ncrNullLevel=r.nullLevel}setExternalEntities(t){if(t)for(const n of Object.keys(t))s0(n);this._externalMap=il(t)}addExternalEntity(t,n){s0(t),typeof n=="string"&&n.indexOf("&")===-1&&(this._externalMap[t]=n)}addInputEntities(t){this._totalExpansions=0,this._expandedLength=0,this._inputMap=il(t)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(t){this._ncrXmlVersion=t===1.1?1.1:1}decode(t){if(typeof t!="string"||t.length===0)return t;const n=t,r=[],o=t.length;let s=0,a=0;const i=this._maxTotalExpansions>0,u=this._maxExpandedLength>0,c=i||u;for(;a=o||t.charCodeAt(d)!==59){a++;continue}const p=t.slice(a+1,d);if(p.length===0){a++;continue}let h,g;if(this._removeSet.has(p))h="",g===void 0&&(g=Wr);else{if(this._leaveSet.has(p)){a++;continue}if(p.charCodeAt(0)===35){const f=this._resolveNCR(p);if(f===void 0){a++;continue}h=f,g=Ia}else{const f=this._resolveName(p);h=f?.value,g=f?.tier}}if(h!==void 0){if(a>s&&r.push(t.slice(s,a)),r.push(h),s=d+1,a=s,c&&this._tierCounts(g)){if(i&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(u){const f=h.length-(p.length+2);if(f>0&&(this._expandedLength+=f,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}else a++}s=55296&&t<=57343||this._ncrXmlVersion===1&&t>=1&&t<=31&&!VS.has(t)?en.remove:-1}_applyNCRAction(t,n,r){switch(t){case en.allow:return String.fromCodePoint(r);case en.remove:return"";case en.leave:return;case en.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference &${n}; (U+${r.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(r)}}_resolveNCR(t){const n=t.charCodeAt(1);let r;if(r=n===120||n===88?parseInt(t.slice(2),16):parseInt(t.slice(1),10),Number.isNaN(r)||r<0||r>1114111)return;const o=this._classifyNCR(r);if(!this._numericAllowed&&o0){const n=e.substring(0,t);if(n!=="xmlns")return n}}class WS{constructor(t,n){var r;this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=YS,this.parseTextData=qS,this.resolveNameSpace=KS,this.buildAttributesMap=ZS,this.isItStopNode=t6,this.replaceEntitiesValue=QS,this.readStopNodeData=r6,this.saveTextToParentTag=e6,this.addChild=JS,this.ignoreAttributesFn=typeof(r=this.options.ignoreAttributes)=="function"?r:Array.isArray(r)?a=>{for(const i of r)if(typeof i=="string"&&a===i||i instanceof RegExp&&i.test(a))return!0}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0;let o={...Qm};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?o=this.options.htmlEntities:this.options.htmlEntities===!0&&(o={...zS,...jS}),this.entityDecoder=new ev({namedEntities:{...o,...n},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new Zc,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new MS;const s=this.options.stopNodes;if(s&&s.length>0){for(let a=0;a0)){a||(e=this.replaceEntitiesValue(e,t,n));const u=i.jPath?n.toString():n,c=i.tagValueProcessor(t,e,u,o,s);return c==null?e:typeof c!=typeof e||c!==e?c:i.trimValues||e.trim()===e?tv(e,i.parseTagValue,i.numberParseOptions):e}}function KS(e){if(this.options.removeNSPrefix){const t=e.split(":"),n=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns")return"";t.length===2&&(e=n+t[1])}return e}const XS=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function ZS(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];const o=this.options;if(r===!0||o.ignoreAttributes!==!0&&typeof e=="string"){const s=Xm(e,XS),a=s.length,i={},u=new Array(a);let c=!1;const l={};for(let h=0;h",i,"Closing Tag is not closed.");let l=e.substring(i+2,c).trim();if(o.removeNSPrefix){const p=l.indexOf(":");p!==-1&&(l=l.substr(p+1))}l=ll(o.transformTagName,l,"",o).tagName,n&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher));const d=this.matcher.getCurrentTag();if(l&&o.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: `);d&&o.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),r="",i=c}else if(u===63){let c=cc(e,i,!1,"?>");if(!c)throw new Error("Pi Tag is not closed.");r=this.saveTextToParentTag(r,n,this.readonlyMatcher);const l=this.buildAttributesMap(c.tagExp,this.matcher,c.tagName,!0);if(l){const d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1)}if(!(o.ignoreDeclaration&&c.tagName==="?xml"||o.ignorePiTags)){const d=new Cr(c.tagName);d.add(o.textNodeName,""),c.tagName!==c.tagExp&&c.attrExpPresent&&o.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(n,d,this.readonlyMatcher,i)}i=c.closeIndex+1}else if(u===33&&e.charCodeAt(i+2)===45&&e.charCodeAt(i+3)===45){const c=Lo(e,"-->",i+4,"Comment is not closed.");if(o.commentPropName){const l=e.substring(i+4,c-2);r=this.saveTextToParentTag(r,n,this.readonlyMatcher),n.add(o.commentPropName,[{[o.textNodeName]:l}])}i=c}else if(u===33&&e.charCodeAt(i+2)===68){const c=s.readDocType(e,i);this.entityDecoder.addInputEntities(c.entities),i=c.i}else if(u===33&&e.charCodeAt(i+2)===91){const c=Lo(e,"]]>",i,"CDATA is not closed.")-2,l=e.substring(i+9,c);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let d=this.parseTextData(l,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),o.cdataPropName?n.add(o.cdataPropName,[{[o.textNodeName]:l}]):n.add(o.textNodeName,d),i=c+2}else{let c=cc(e,i,o.removeNSPrefix);if(!c){const C=e.substring(Math.max(0,i-50),Math.min(a,i+50));throw new Error(`readTagExp returned undefined at position ${i}. Context: "${C}"`)}let l=c.tagName;const d=c.rawTagName;let p=c.tagExp,h=c.attrExpPresent,g=c.closeIndex;if({tagName:l,tagExp:p}=ll(o.transformTagName,l,p,o),o.strictReservedNames&&(l===o.commentPropName||l===o.cdataPropName||l===o.textNodeName||l===o.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);n&&r&&n.tagname!=="!xml"&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher,!1));const f=n;f&&o.unpairedTagsSet.has(f.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),p=l):p=p.substr(0,p.length-1),h=l!==p);let y,v=null;y=GS(d),l!==t.tagname&&this.matcher.push(l,{},y),l!==p&&h&&(v=this.buildAttributesMap(p,this.matcher,l),v&&HS(v,o)),l!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());const E=i;if(this.isCurrentNodeStopNode){let C="";if(m)i=c.closeIndex;else if(o.unpairedTagsSet.has(l))i=c.closeIndex;else{const D=this.readStopNodeData(e,d,g+1);if(!D)throw new Error(`Unexpected end of ${d}`);i=D.i,C=D.tagContent}const _=new Cr(l);v&&(_[":@"]=v),_.add(o.textNodeName,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,_,this.readonlyMatcher,E)}else{if(m){({tagName:l,tagExp:p}=ll(o.transformTagName,l,p,o));const C=new Cr(l);v&&(C[":@"]=v),this.addChild(n,C,this.readonlyMatcher,E),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(o.unpairedTagsSet.has(l)){const C=new Cr(l);v&&(C[":@"]=v),this.addChild(n,C,this.readonlyMatcher,E),this.matcher.pop(),this.isCurrentNodeStopNode=!1,i=c.closeIndex;continue}{const C=new Cr(l);if(this.tagsNodeStack.length>o.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(n),v&&(C[":@"]=v),this.addChild(n,C,this.readonlyMatcher,E),n=C}}r="",i=g}}}else r+=e[i];return t.child};function JS(e,t,n,r){this.options.captureMetaData||(r=void 0);const o=this.options.jPath?n.toString():n,s=this.options.updateTag(t.tagname,o,t[":@"]);s===!1||(typeof s=="string"&&(t.tagname=s),e.addChild(t,r))}function QS(e,t,n){const r=this.options.processEntities;if(!r||!r.enabled)return e;if(r.allowedTags){const o=this.options.jPath?n.toString():n;if(!(Array.isArray(r.allowedTags)?r.allowedTags.includes(t):r.allowedTags(t,o)))return e}if(r.tagFilter){const o=this.options.jPath?n.toString():n;if(!r.tagFilter(t,o))return e}return this.entityDecoder.decode(e)}function e6(e,t,n,r){return e&&(r===void 0&&(r=t.child.length===0),(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&Object.keys(t[":@"]).length!==0,r))!==void 0&&e!==""&&t.add(this.options.textNodeName,e),e=""),e}function t6(){return this.stopNodeExpressionsSet.size!==0&&this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Lo(e,t,n,r){const o=e.indexOf(t,n);if(o===-1)throw new Error(r);return o+t.length-1}function n6(e,t,n,r){const o=e.indexOf(t,n);if(o===-1)throw new Error(r);return o}function cc(e,t,n){const r=(function(l,d){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",h=0;const g=l.length,f=p.charCodeAt(0),m=p.length>1?p.charCodeAt(1):-1;let y="",v=d;for(let E=d;E3&&arguments[3]!==void 0?arguments[3]:">");if(!r)return;let o=r.data;const s=r.index,a=o.search(/\s/);let i=o,u=!0;a!==-1&&(i=o.substring(0,a),o=o.substring(a+1).trimStart());const c=i;if(n){const l=i.indexOf(":");l!==-1&&(i=i.substr(l+1),u=i!==r.data.substr(l+1))}return{tagName:i,tagExp:o,closeIndex:s,attrExpPresent:u,rawTagName:c}}function r6(e,t,n){const r=n;let o=1;const s=e.length;for(;n",n,`${t} is not closed`);if(e.substring(n+2,i).trim()===t&&(o--,o===0))return{tagContent:e.substring(r,n),i};n=i}else if(a===63)n=Lo(e,"?>",n+1,"StopNode is not closed.");else if(a===33&&e.charCodeAt(n+2)===45&&e.charCodeAt(n+3)===45)n=Lo(e,"-->",n+3,"StopNode is not closed.");else if(a===33&&e.charCodeAt(n+2)===91)n=Lo(e,"]]>",n,"StopNode is not closed.")-2;else{const i=cc(e,n,">");i&&((i&&i.tagName)===t&&i.tagExp[i.tagExp.length-1]!=="/"&&o++,n=i.closeIndex)}}}function tv(e,t,n){if(t&&typeof e=="string"){const r=e.trim();return r==="true"||r!=="false"&&(function(o){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(s=Object.assign({},FS,s),!o||typeof o!="string")return o;let a=o.trim();if(a.length===0||s.skipLike!==void 0&&s.skipLike.test(a))return o;if(a==="0")return 0;if(s.hex&&$S.test(a))return(function(u){if(parseInt)return parseInt(u,16);if(Number.parseInt)return Number.parseInt(u,16);if(window&&window.parseInt)return window.parseInt(u,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")})(a);if(isFinite(a)){if(a.includes("e")||a.includes("E"))return(function(u,c,l){if(!l.eNotation)return u;const d=c.match(LS);if(d){let p=d[1]||"";const h=d[3].indexOf("e")===-1?"E":"e",g=d[2],f=p?u[g.length+1]===h:u[g.length]===h;return g.length>1&&f?u:(g.length!==1||!d[3].startsWith(`.${h}`)&&d[3][0]!==h)&&g.length>0?l.leadingZeros&&!f?(c=(d[1]||"")+d[3],Number(c)):u:Number(c)}return u})(o,a,s);{const u=RS.exec(a);if(u){const c=u[1]||"",l=u[2];let d=((i=u[3])&&i.indexOf(".")!==-1&&((i=i.replace(/0+$/,""))==="."?i="0":i[0]==="."?i="0"+i:i[i.length-1]==="."&&(i=i.substring(0,i.length-1))),i);const p=c?o[l.length+1]===".":o[l.length]===".";if(!s.leadingZeros&&(l.length>1||l.length===1&&!p))return o;{const h=Number(a),g=String(h);if(h===0)return h;if(g.search(/[eE]/)!==-1)return s.eNotation?h:o;if(a.indexOf(".")!==-1)return g==="0"||g===d||g===`${c}${d}`?h:o;let f=l?d:a;return l?f===g||c+f===g?h:o:f===g||f===c+g?h:o}}return o}}var i;return(function(u,c,l){const d=c===1/0;switch(l.infinity.toLowerCase()){case"null":return null;case"infinity":return c;case"string":return d?"Infinity":"-Infinity";default:return u}})(o,Number(a),s)})(e,n)}return e!==void 0?e:""}function ll(e,t,n,r){if(e){const o=e(t);n===t&&(n=o),t=o}return{tagName:t=nv(t,r),tagExp:n}}function nv(e,t){if(Zm.includes(e))throw new Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return Xc.includes(e)?t.onDangerousProperty(e):e}const cl=Cr.getMetaDataSymbol();function o6(e,t){if(!e||typeof e!="object")return{};if(!t)return e;const n={};for(const r in e)r.startsWith(t)?n[r.substring(t.length)]=e[r]:n[r]=e[r];return n}function s6(e,t,n,r){return rv(e,t,n,r)}function rv(e,t,n,r){let o;const s={};for(let a=0;a0&&(s[t.textNodeName]=o):o!==void 0&&(s[t.textNodeName]=o),s}function a6(e){const t=Object.keys(e);for(let n=0;n5&&r==="xml")return at("InvalidXml","XML declaration allowed only at the start of the document.",Ut(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}}return t}function u0(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t"){t+=2;break}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let n=1;for(t+=8;t"&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t"){t+=2;break}}return t}function c6(e,t){let n="",r="",o=!1;for(;t"&&r===""){o=!0;break}n+=e[t]}return r===""&&{value:n,index:t,tagClosed:o}}const d6=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function l0(e,t){const n=Xm(e,d6),r={};for(let o=0;o"&&a[d]!==" "&&a[d]!==" "&&a[d]!==` +`&&a[d]!=="\r";d++)g+=a[d];if(g=g.trim(),g[g.length-1]==="/"&&(g=g.substring(0,g.length-1),d--),!iu(g)){let y;return y=g.trim().length===0?"Invalid space after '<'.":"Tag '"+g+"' is an invalid name.",at("InvalidTag",y,Ut(a,d))}const f=c6(a,d);if(f===!1)return at("InvalidAttr","Attributes for '"+g+"' have open quote.",Ut(a,d));let m=f.value;if(d=f.index,m[m.length-1]==="/"){const y=d-m.length;m=m.substring(0,m.length-1);const v=l0(m,i);if(v!==!0)return at(v.err.code,v.err.msg,Ut(a,y+v.err.line));c=!0}else if(h){if(!f.tagClosed)return at("InvalidTag","Closing tag '"+g+"' doesn't have proper closing.",Ut(a,d));if(m.trim().length>0)return at("InvalidTag","Closing tag '"+g+"' can't have attributes or invalid starting.",Ut(a,p));if(u.length===0)return at("InvalidTag","Closing tag '"+g+"' has not been opened.",Ut(a,p));{const y=u.pop();if(g!==y.tagName){let v=Ut(a,y.tagStartPos);return at("InvalidTag","Expected closing tag '"+y.tagName+"' (opened in line "+v.line+", col "+v.col+") instead of closing tag '"+g+"'.",Ut(a,p))}u.length==0&&(l=!0)}}else{const y=l0(m,i);if(y!==!0)return at(y.err.code,y.err.msg,Ut(a,d-m.length+y.err.line));if(l===!0)return at("InvalidXml","Multiple possible root nodes found.",Ut(a,d));i.unpairedTags.indexOf(g)!==-1||u.push({tagName:g,tagStartPos:p}),c=!0}for(d++;d0)||at("InvalidXml","Invalid '"+JSON.stringify(u.map((d=>d.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):at("InvalidXml","Start tag expected.",1)})(t,n);if(s!==!0)throw Error(`${s.err.msg}:${s.err.line}:${s.err.col}`)}const r=new WS(this.options,this.externalEntities),o=r.parseXml(t);return this.options.preserveOrder||o===void 0?o:s6(o,this.options,r.matcher,r.readonlyMatcher)}addEntity(t,n){if(n.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(t.indexOf("&")!==-1||t.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if(n==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=n}static getMetaDataSymbol(){return Cr.getMetaDataSymbol()}}var f6=Xe(829),Zn=Xe.n(f6),To=(function(e){return e.Array="array",e.Object="object",e.Original="original",e})(To||{});function c0(e){return typeof e=="string"?e:e.toString(".",!1)}function sv(e,t){if(!e.endsWith("propstat.prop.displayname"))return t}function Ma(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:To.Original;const r=Zn().get(e,t);return n==="array"&&Array.isArray(r)===!1?[r]:n==="object"&&Array.isArray(r)?r[0]:r}function uu(e,t){return t=t??{attributeNamePrefix:"@",attributeParsers:[],tagParsers:[sv]},new Promise((n=>{n((function(r){const{multistatus:o}=r;if(o==="")return{multistatus:{response:[]}};if(!o)throw new Error("Invalid response: No root multistatus found");const s={multistatus:Array.isArray(o)?o[0]:o};return Zn().set(s,"multistatus.response",Ma(s,"multistatus.response",To.Array)),Zn().set(s,"multistatus.response",Zn().get(s,"multistatus.response").map((a=>(function(i){const u=Object.assign({},i);return u.status?Zn().set(u,"status",Ma(u,"status",To.Object)):(Zn().set(u,"propstat",Ma(u,"propstat",To.Object)),Zn().set(u,"propstat.prop",Ma(u,"propstat.prop",To.Object))),u})(a)))),s})((function(r){let{attributeNamePrefix:o,attributeParsers:s,entityDecoder:a,tagParsers:i}=r;const u={allowBooleanAttributes:!0,attributeNamePrefix:o,textNodeName:"text",ignoreAttributes:!1,removeNSPrefix:!0,jPath:!1,numberParseOptions:{hex:!0,leadingZeros:!1},attributeValueProcessor(c,l,d){const p=c0(d);for(const h of s)try{const g=h(p,l);if(g!==l)return g}catch{}return l},tagValueProcessor(c,l,d){const p=c0(d);for(const h of i)try{const g=h(p,l);if(g!==l)return g}catch{}return l}};return a&&(u.entityDecoder=new ev({limit:{maxTotalExpansions:a.limit?.maxTotalExpansions??0,maxExpandedLength:a.limit?.maxExpandedLength??0}})),new ov(u)})(t).parse(e)))}))}function Yc(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const{getlastmodified:r=null,getcontentlength:o="0",resourcetype:s=null,getcontenttype:a=null,getetag:i=null}=e,u=s&&typeof s=="object"&&s.collection!==void 0?"directory":"file",c={filename:t,basename:Si().basename(t),lastmod:r,size:parseInt(o,10),type:u,etag:typeof i=="string"?i.replace(/"/g,""):null};return u==="file"&&(c.mime=a&&typeof a=="string"?a.split(";")[0]:""),n&&(e.displayname!==void 0&&(e.displayname=String(e.displayname)),c.props=e),c}function g6(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=null;try{e.multistatus.response[0].propstat&&(r=e.multistatus.response[0])}catch{}if(!r)throw new Error("Failed getting item stat: bad response");const{propstat:{prop:o,status:s}}=r,[a,i,u]=s.split(" ",3),c=parseInt(i,10);if(c>=400){const l=new Error(`Invalid response: ${c} ${u}`);throw l.status=c,l}return Yc(o,ra(t),n)}function m6(e){switch(String(e)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(e),10)}}function dl(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Jc=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const{details:r=!1}=n,o=mt({url:nt(e.remoteURL,tt(t)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,n);return dl(gt(o,e),(function(s){return vt(e,s),dl(s.text(),(function(a){return dl(uu(a,e.parsing),(function(i){const u=g6(i,t,r);return qo(s,u,r)}))}))}))}));function av(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const v6=iv((function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=(function(s){if(!s||s==="/")return[];let a=s;const i=[];do i.push(a),a=Si().dirname(a);while(a&&a!=="/");return i})(ra(t));r.sort(((s,a)=>s.length>a.length?1:a.length>s.length?-1:0));let o=!1;return(function(s,a,i){if(typeof s[p0]=="function"){let f=function(m){try{for(;!(u=d.next()).done;)if((m=a(u.value))&&m.then){if(!h0(m))return void m.then(f,l||(l=Gt.bind(null,c=new Oo,2)));m=m.v}c?Gt(c,1,m):c=m}catch(y){Gt(c||(c=new Oo),2,y)}};var u,c,l,d=s[p0]();if(f(),d.return){var p=function(m){try{u.done||d.return()}catch{}return m};if(c&&c.then)return c.then(p,(function(m){throw p(m)}));p()}return c}if(!("length"in s))throw new TypeError("Object is not iterable");for(var h=[],g=0;g2&&arguments[2]!==void 0?arguments[2]:{};if(n.recursive===!0)return v6(e,t,n);const r=mt({url:nt(e.remoteURL,(o=tt(t),o.endsWith("/")?o:o+"/")),method:"MKCOL"},e,n);var o;return av(gt(r,e),(function(s){vt(e,s)}))}));var b6=Xe(388),f0=Xe.n(b6);const E6=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const r={};if(typeof n.range=="object"&&typeof n.range.start=="number"){let i=`bytes=${n.range.start}-`;typeof n.range.end=="number"&&(i=`${i}${n.range.end}`),r.Range=i}const o=mt({url:nt(e.remoteURL,tt(t)),method:"GET",headers:r},e,n);return a=function(i){if(vt(e,i),r.Range&&i.status!==206){const u=new Error(`Invalid response code for partial request: ${i.status}`);throw u.status=i.status,u}return n.callback&&setTimeout((()=>{n.callback(i)}),0),i.body},(s=gt(o,e))&&s.then||(s=Promise.resolve(s)),a?s.then(a):s;var s,a})),w6=()=>{},C6=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const r=mt({url:nt(e.remoteURL,tt(t)),method:"DELETE"},e,n);return s=function(a){vt(e,a)},(o=gt(r,e))&&o.then||(o=Promise.resolve(o)),s?o.then(s):o;var o,s})),A6=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};return(function(r,o){try{var s=(a=Jc(e,t,n),i=function(){return!0},u?i?i(a):a:(a&&a.then||(a=Promise.resolve(a)),i?a.then(i):a))}catch(c){return o(c)}var a,i,u;return s&&s.then?s.then(void 0,o):s})(0,(function(r){if(r.status===404)return!1;throw r}))}));function pl(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const _6=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const r=mt({url:nt(e.remoteURL,tt(t),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:n.deep?"infinity":"1"}},e,n);return pl(gt(r,e),(function(o){return vt(e,o),pl(o.text(),(function(s){if(!s)throw new Error("Failed parsing directory contents: Empty response");return pl(uu(s,e.parsing),(function(a){const i=Hh(t);let u=(function(c,l,d){let p=arguments.length>3&&arguments[3]!==void 0&&arguments[3],h=arguments.length>4&&arguments[4]!==void 0&&arguments[4];const g=Si().join(l,"/"),{multistatus:{response:f}}=c,m=f.map((y=>{const v=(function(C){try{return C.replace(/^https?:\/\/[^\/]+/,"")}catch(_){throw new Wt(_,"Failed normalising HREF")}})(y.href),{propstat:{prop:E}}=y;return Yc(E,g==="/"?decodeURIComponent(ra(v)):ra(Si().relative(decodeURIComponent(g),decodeURIComponent(v))),p)}));return h?m:m.filter((y=>y.basename&&(y.type==="file"||y.filename!==d.replace(/\/$/,""))))})(a,Hh(e.remoteBasePath||e.remotePath),i,n.details,n.includeSelf);return n.glob&&(u=(function(c,l){return c.filter((d=>$t(d.filename,l,{matchBase:!0})))})(u,n.glob)),qo(o,u,n.details)}))}))}))}));function Qc(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const r=mt({url:nt(e.remoteURL,tt(t)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[O6]},e,n);return Ni(gt(r,e),(function(o){return vt(e,o),Ni(o.text(),(function(s){return qo(o,s,n.details)}))}))}));function Ni(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const k6=Qc((function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=mt({url:nt(e.remoteURL,tt(t)),method:"GET"},e,n);return Ni(gt(r,e),(function(o){let s;return vt(e,o),(function(a,i){var u=a();return u&&u.then?u.then(i):i()})((function(){return Ni(o.arrayBuffer(),(function(a){s=a}))}),(function(){return qo(o,s,n.details)}))}))})),T6=Qc((function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{format:r="binary"}=n;if(r!=="binary"&&r!=="text")throw new Wt({info:{code:Rr.InvalidOutputFormat}},`Invalid output format: ${r}`);return r==="text"?S6(e,t,n):k6(e,t,n)})),O6=e=>e;function D6(e,t){let n="";t.format&&t.indentBy.length>0&&(n=` +`);const r=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let o=0;ot.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(e)){if(e!=null){let i=e.toString();return i=pc(i,t),i}return""}for(let i=0;i/g,"]]]]>")}]]>`,a=!1,r.pop();continue}if(c===t.commentPropName){const f=u[c][0][t.textNodeName];s+=n+``,a=!0,r.pop();continue}if(c[0]==="?"){const f=g0(u[":@"],t,d),m=c==="?xml"?"":n;let y=u[c][0][t.textNodeName];y=y.length!==0?" "+y:"",s+=m+`<${c}${y}${f}?>`,a=!0,r.pop();continue}let p=n;p!==""&&(p+=t.indentBy);const h=n+`<${c}${g0(u[":@"],t,d)}`;let g;g=d?lv(u[c],t):uv(u[c],t,p,r,o),t.unpairedTags.indexOf(c)!==-1?t.suppressUnpairedNode?s+=h+">":s+=h+"/>":g&&g.length!==0||!t.suppressEmptyNode?g&&g.endsWith(">")?s+=h+`>${g}${n}`:(s+=h+">",g&&n!==""&&(g.includes("/>")||g.includes("`):s+=h+"/>",a=!0,r.pop()}return s}function N6(e,t){if(!e||t.ignoreAttributes)return null;const n={};let r=!1;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o.startsWith(t.attributeNamePrefix)?o.substr(t.attributeNamePrefix.length):o]=e[o],r=!0);return r?n:null}function lv(e,t){if(!Array.isArray(e))return e!=null?e.toString():"";let n="";for(let r=0;r${i}`:n+=`<${s}${a}/>`}}}return n}function P6(e,t){let n="";if(e&&!t.ignoreAttributes)for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let o=e[r];o===!0&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${o}"`}return n}function cv(e){const t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function ln(e){if(this.options=Object.assign({},$6,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map((n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n))),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let n=0;n{for(const r of t)if(typeof r=="string"&&n===r||r instanceof RegExp&&r.test(n))return!0}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=L6),this.processTextOrObjNode=R6,this.options.format?(this.indentate=F6,this.tagEndChar=`> `,this.newLine=` -`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function P6(e,t,n,r){const o=this.extractAttributes(e);if(r.push(t,o),this.checkStopNode(r)){const a=this.buildRawContent(e),i=this.buildAttributesForStopNode(e);return r.pop(),this.buildObjectNode(a,t,i,n)}const s=this.j2x(e,n+1,r);return r.pop(),e[this.options.textNodeName]!==void 0&&Object.keys(e).length===1?this.buildTextValNode(e[this.options.textNodeName],t,s.attrStr,n,r):this.buildObjectNode(s.val,t,s.attrStr,n)}function B6(e){return this.options.indentBy.repeat(e)}function $6(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}ln.prototype.build=function(e){if(this.options.preserveOrder)return k6(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});const t=new Kc;return this.j2x(e,0,t).val}},ln.prototype.j2x=function(e,t,n){let r="",o="";if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");const s=this.options.jPath?n.toString():n,a=this.checkStopNode(n);for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i))if(e[i]===void 0)this.isAttribute(i)&&(o+="");else if(e[i]===null)this.isAttribute(i)||i===this.options.cdataPropName?o+="":i[0]==="?"?o+=this.indentate(t)+"<"+i+"?"+this.tagEndChar:o+=this.indentate(t)+"<"+i+"/"+this.tagEndChar;else if(e[i]instanceof Date)o+=this.buildTextValNode(e[i],i,"",t,n);else if(typeof e[i]!="object"){const u=this.isAttribute(i);if(u&&!this.ignoreAttributesFn(u,s))r+=this.buildAttrPairStr(u,""+e[i],a);else if(!u)if(i===this.options.textNodeName){let c=this.options.tagValueProcessor(i,""+e[i]);o+=this.replaceEntitiesValue(c)}else{n.push(i);const c=this.checkStopNode(n);if(n.pop(),c){const l=""+e[i];o+=l===""?this.indentate(t)+"<"+i+this.closeTag(i)+this.tagEndChar:this.indentate(t)+"<"+i+">"+l+""+g+"${o}`;else if(typeof o=="object"&&o!==null){const s=this.buildRawContent(o),a=this.buildAttributesForStopNode(o);t+=s===""?`<${n}${a}/>`:`<${n}${a}>${s}`}}else if(typeof r=="object"&&r!==null){const o=this.buildRawContent(r),s=this.buildAttributesForStopNode(r);t+=o===""?`<${n}${s}/>`:`<${n}${s}>${o}`}else t+=`<${n}>${r}`}return t},ln.prototype.buildAttributesForStopNode=function(e){if(!e||typeof e!="object")return"";let t="";if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const n=e[this.options.attributesGroupName];for(let r in n){if(!Object.prototype.hasOwnProperty.call(n,r))continue;const o=r.startsWith(this.options.attributeNamePrefix)?r.substring(this.options.attributeNamePrefix.length):r,s=n[r];s===!0&&this.options.suppressBooleanAttributes?t+=" "+o:t+=" "+o+'="'+s+'"'}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const r=this.isAttribute(n);if(r){const o=e[n];o===!0&&this.options.suppressBooleanAttributes?t+=" "+r:t+=" "+r+'="'+o+'"'}}return t},ln.prototype.buildObjectNode=function(e,t,n,r){if(e==="")return t[0]==="?"?this.indentate(r)+"<"+t+n+"?"+this.tagEndChar:this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let o="`+this.newLine:this.indentate(r)+"<"+t+n+s+this.tagEndChar+e+this.indentate(r)+o:this.indentate(r)+"<"+t+n+s+">"+e+o}},ln.prototype.closeTag=function(e){let t="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`>/g,"]]]]>");return this.indentate(r)+``+this.newLine}if(this.options.commentPropName!==!1&&t===this.options.commentPropName){const s=String(e).replace(/--/g,"- -").replace(/-$/,"- ");return this.indentate(r)+``+this.newLine}if(t[0]==="?")return this.indentate(r)+"<"+t+n+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(t,e);return s=this.replaceEntitiesValue(s),s===""?this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+"<"+t+n+">"+s+"0&&this.options.processEntities)for(let t=0;t3&&arguments[3]!==void 0?arguments[3]:{};const o=mt({url:nt(e.remoteURL,tt(t)),method:"UNLOCK",headers:{"Lock-Token":n}},e,r);return cc(gt(o,e),(function(s){if(vt(e,s),s.status!==204&&s.status!==200)throw Wc(s)}))})),I6=dv((function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{refreshToken:r,timeout:o=M6}=n,s={Accept:"text/plain,application/xml",Timeout:o};r&&(s.If=r);const a=mt({url:nt(e.remoteURL,tt(t)),method:"LOCK",headers:s,data:L6(e.contactHref)},e,n);return cc(gt(a,e),(function(i){return vt(e,i),cc(i.text(),(function(u){const c=(p=u,new rv({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(p)),l=Xn().get(c,"prop.lockdiscovery.activelock.locktoken.href"),d=Xn().get(c,"prop.lockdiscovery.activelock.timeout");var p;if(!l)throw Wc(i,"No lock token received: ");return{token:l,serverTimeout:d}}))}))})),M6="Infinite, Second-4100000000";function cl(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const j6=(function(e){return function(){for(var t=[],n=0;n1&&arguments[1]!==void 0?arguments[1]:{};const n=t.path||"/",r=mt({url:nt(e.remoteURL,n),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,t);return cl(gt(r,e),(function(o){return vt(e,o),cl(o.text(),(function(s){return cl(su(s,e.parsing),(function(a){const i=(function(u){try{const[c]=u.multistatus.response,{propstat:{prop:{"quota-used-bytes":l,"quota-available-bytes":d}}}=c;return l!==void 0&&d!==void 0?{used:parseInt(String(l),10),available:h6(d)}:null}catch{}return null})(a);return Wo(o,i,t.details)}))}))}))}));function dl(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const z6=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const{details:r=!1}=n,o=mt({url:nt(e.remoteURL,tt(t)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":e.headers["Content-Type"]||"application/xml; charset=utf-8"}},e,n);return dl(gt(o,e),(function(s){return vt(e,s),dl(s.text(),(function(a){return dl(su(a,e.parsing),(function(i){const u=(function(c,l,d){const p={truncated:!1,results:[]};return p.truncated=c.multistatus.response.some((h=>(h.status||h.propstat?.status).split(" ",3)?.[1]==="507"&&h.href.replace(/\/$/,"").endsWith(tt(l).replace(/\/$/,"")))),c.multistatus.response.forEach((h=>{if(h.propstat===void 0)return;const g=h.href.split("/").map(decodeURIComponent).join("/");p.results.push(Xc(h.propstat.prop,g,d))})),p})(i,t,r);return Wo(s,u,r)}))}))}))})),U6=(function(e){return function(){for(var t=[],n=0;n3&&arguments[3]!==void 0?arguments[3]:{};const o=mt({url:nt(e.remoteURL,tt(t)),method:"MOVE",headers:{Destination:nt(e.remoteURL,tt(n)),Overwrite:r.overwrite===!1?"F":"T"}},e,r);return a=function(i){vt(e,i)},(s=gt(o,e))&&s.then||(s=Promise.resolve(s)),a?s.then(a):s;var s,a}));var V6=Xe(172);function H6(e){if(zm(e))return e.byteLength;if(Um(e))return e.length;if(typeof e=="string")return(0,V6.d)(e);throw new Wt({info:{code:Br.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}const G6=(function(e){return function(){for(var t=[],n=0;n3&&arguments[3]!==void 0?arguments[3]:{};const{contentLength:o=!0,overwrite:s=!0}=r,a={"Content-Type":"application/octet-stream"};o===!1||(a["Content-Length"]=typeof o=="number"?`${o}`:`${H6(n)}`),s||(a["If-None-Match"]="*");const i=mt({url:nt(e.remoteURL,tt(t)),method:"PUT",headers:a,data:n},e,r);return c=function(l){try{vt(e,l)}catch(d){const p=d;if(p.status!==412||s)throw p;return!1}return!0},(u=gt(i,e))&&u.then||(u=Promise.resolve(u)),c?u.then(c):u;var u,c})),pv=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const r=mt({url:nt(e.remoteURL,tt(t)),method:"OPTIONS"},e,n);return s=function(a){try{vt(e,a)}catch(i){throw i}return{compliance:(a.headers.get("DAV")??"").split(",").map((i=>i.trim())),server:a.headers.get("Server")??""}},(o=gt(r,e))&&o.then||(o=Promise.resolve(o)),s?o.then(s):o;var o,s}));function Fs(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const W6=Jc((function(e,t,n,r,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(n>r||n<0)throw new Wt({info:{code:Br.InvalidUpdateRange}},`Invalid update range ${n} for partial update`);const a={"Content-Type":"application/octet-stream","Content-Length":""+(r-n+1),"Content-Range":`bytes ${n}-${r}/*`},i=mt({url:nt(e.remoteURL,tt(t)),method:"PUT",headers:a,data:o},e,s);return Fs(gt(i,e),(function(u){vt(e,u)}))}));function f0(e,t){var n=e();return n&&n.then?n.then(t):t(n)}const q6=Jc((function(e,t,n,r,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(n>r||n<0)throw new Wt({info:{code:Br.InvalidUpdateRange}},`Invalid update range ${n} for partial update`);const a={"Content-Type":"application/x-sabredav-partialupdate","Content-Length":""+(r-n+1),"X-Update-Range":`bytes=${n}-${r}`},i=mt({url:nt(e.remoteURL,tt(t)),method:"PATCH",headers:a,data:o},e,s);return Fs(gt(i,e),(function(u){vt(e,u)}))}));function Jc(e){return function(){for(var t=[],n=0;n5&&arguments[5]!==void 0?arguments[5]:{};return Fs(pv(e,t,s),(function(a){let i=!1;return f0((function(){if(a.compliance.includes("sabredav-partialupdate"))return Fs(q6(e,t,n,r,o,s),(function(u){return i=!0,u}))}),(function(u){let c=!1;return i?u:f0((function(){if(a.server.includes("Apache")&&a.compliance.includes(""))return Fs(W6(e,t,n,r,o,s),(function(l){return c=!0,l}))}),(function(l){if(c)return l;throw new Wt({info:{code:Br.NotSupported}},"Not supported")}))}))}))})),X6="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function Z6(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{authType:n=null,remoteBasePath:r,contactHref:o=X6,entityDecoder:s,ha1:a,headers:i={},httpAgent:u,httpsAgent:c,password:l,token:d,username:p,withCredentials:h}=t;let g=n;g||(g=p||l?Yt.Password:Yt.None);const f={authType:g,remoteBasePath:r,contactHref:o,ha1:a,headers:Object.assign({},i),httpAgent:u,httpsAgent:c,password:l,parsing:{attributeNamePrefix:t.attributeNamePrefix??"@",attributeParsers:[],entityDecoder:s,tagParsers:[ov]},remotePath:z_(e),remoteURL:e,token:d,username:p,withCredentials:h};return Im(f,p,l,d,a),{copyFile:(m,y,v)=>_S(f,m,y,v),createDirectory:(m,y)=>uc(f,m,y),createReadStream:(m,y)=>(function(v,E){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const _=new(p0()).PassThrough;return v6(v,E,C).then((D=>{D.pipe(_)})).catch((D=>{_.emit("error",D)})),_})(f,m,y),createWriteStream:(m,y,v)=>(function(E,C){let _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:y6;const R=new(p0()).PassThrough,Z={};_.overwrite===!1&&(Z["If-None-Match"]="*");const I=mt({url:nt(E.remoteURL,tt(C)),method:"PUT",headers:Z,data:R,maxRedirects:0},E,_);return gt(I,E).then((P=>vt(E,P))).then((P=>{setTimeout((()=>{D(P)}),0)})).catch((P=>{R.emit("error",P)})),R})(f,m,y,v),customRequest:(m,y)=>b6(f,m,y),deleteFile:(m,y)=>E6(f,m,y),exists:(m,y)=>w6(f,m,y),getDirectoryContents:(m,y)=>C6(f,m,y),getFileContents:(m,y)=>_6(f,m,y),getFileDownloadLink:m=>(function(y,v){let E=nt(y.remoteURL,tt(v));const C=/^https:/i.test(E)?"https":"http";switch(y.authType){case Yt.None:break;case Yt.Password:{const _=Hh(y.headers.Authorization.replace(/^Basic /i,"").trim());E=E.replace(/^https?:\/\//,`${C}://${_}@`);break}default:throw new Wt({info:{code:Br.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${y.authType}`)}return E})(f,m),getFileUploadLink:m=>(function(y,v){let E=`${nt(y.remoteURL,tt(v))}?Content-Type=application/octet-stream`;const C=/^https:/i.test(E)?"https":"http";switch(y.authType){case Yt.None:break;case Yt.Password:{const _=Hh(y.headers.Authorization.replace(/^Basic /i,"").trim());E=E.replace(/^https?:\/\//,`${C}://${_}@`);break}default:throw new Wt({info:{code:Br.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${y.authType}`)}return E})(f,m),getHeaders:()=>Object.assign({},f.headers),getQuota:m=>j6(f,m),lock:(m,y)=>I6(f,m,y),moveFile:(m,y,v)=>U6(f,m,y,v),putFileContents:(m,y,v)=>G6(f,m,y,v),partialUpdateFileContents:(m,y,v,E,C)=>K6(f,m,y,v,E,C),getDAVCompliance:m=>pv(f,m),search:(m,y)=>z6(f,m,y),setHeaders:m=>{f.headers=Object.assign({},m)},stat:(m,y)=>Zc(f,m,y),unlock:(m,y,v)=>F6(f,m,y,v),registerAttributeParser:m=>{f.parsing.attributeParsers.push(m)},registerTagParser:m=>{f.parsing.tagParsers.push(m)}}}function g0(e){return e&&e.split("/").map(encodeURIComponent).join("/")}function hv(e,t){return e=e.replace(/\\/g,"/").replace(/\/+$/g,"").replace(/.*\//,""),e}function m0(e){e=e.replaceAll(/\\/g,"/");const t=e.split("/");return t.length<=1?".":(t.pop(),t.length===1&&t[0]===""?"/":t.join("/"))}function Y6(e){const t=hv(e),n=t.lastIndexOf(".");return n>0?t.substring(n):""}function J6(...e){if(arguments.length<1)return"";const t=e.filter(u=>u.length>0);if(t.length<1)return"";const n=t[t.length-1],r=t[0].charAt(0)==="/",o=n.charAt(n.length-1)==="/",s=t.reduce((u,c)=>u.concat(c.split("/")),[]);let a=!r;const i=s.reduce((u,c)=>c===""?u:a?(a=!1,u+c):u+"/"+c,"");return o?i+"/":i}window._nc_files_scope??={},window._nc_files_scope.v4_0??={};const Is=window._nc_files_scope.v4_0;rm().setApp("@nextcloud/files").detectUser().build();const Qc=Object.freeze({Folder:"folder",File:"file"}),yn=Object.freeze({NONE:0,READ:1,UPDATE:2,CREATE:4,WRITE:4,DELETE:8,SHARE:16,ALL:31}),fv=Object.freeze({NEW:"new",FAILED:"failed",LOADING:"loading",LOCKED:"locked"});function gv(e,t){return e.match(t)!==null}function mr(e,t){if(e.id&&typeof e.id!="number"&&typeof e.id!="string")throw new Error("Invalid id type of value");if(!e.source)throw new Error("Missing mandatory source");try{new URL(e.source)}catch{throw new Error("Invalid source format, source must be a valid URL")}if(!e.source.startsWith("http"))throw new Error("Invalid source format, only http(s) is supported");if(!e.root)throw new Error("Missing mandatory root");if(typeof e.root!="string")throw new Error("Invalid root type");if(!e.root.startsWith("/"))throw new Error("Root must start with a leading slash");if(!e.source.includes(e.root))throw new Error("Root must be part of the source");if(gv(e.source,t)){const n=e.source.match(t)[0];if(!e.source.includes(J6(n,e.root)))throw new Error("The root must be relative to the service. e.g /files/emma")}if(e.displayname&&typeof e.displayname!="string")throw new Error("Invalid displayname type");if(e.mtime&&!(e.mtime instanceof Date))throw new Error("Invalid mtime type");if(e.crtime&&!(e.crtime instanceof Date))throw new Error("Invalid crtime type");if(!e.mime||typeof e.mime!="string"||!e.mime.match(/^[-\w.]+\/[-+\w.]+$/gi))throw new Error("Missing or invalid mandatory mime");if("size"in e&&typeof e.size!="number"&&e.size!==void 0)throw new Error("Invalid size type");if("permissions"in e&&e.permissions!==void 0&&!(typeof e.permissions=="number"&&e.permissions>=yn.NONE&&e.permissions<=yn.ALL))throw new Error("Invalid permissions");if(e.owner&&e.owner!==null&&typeof e.owner!="string")throw new Error("Invalid owner type");if(e.attributes&&typeof e.attributes!="object")throw new Error("Invalid attributes type");if(e.status&&!Object.values(fv).includes(e.status))throw new Error("Status must be a valid NodeStatus")}function Q6(e){e.mtime&&typeof e.mtime=="string"&&!isNaN(Date.parse(e.mtime))&&JSON.stringify(new Date(e.mtime))===JSON.stringify(e.mtime)&&(e.mtime=new Date(e.mtime)),e.crtime&&typeof e.crtime=="string"&&!isNaN(Date.parse(e.crtime))&&JSON.stringify(new Date(e.crtime))===JSON.stringify(e.crtime)&&(e.crtime=new Date(e.crtime))}function ek(e){if(e instanceof RegExp)return e;const t=e.match(/(\/?)(.+)\1([a-z]*)/i);if(!t)throw new Error("Invalid regular expression format.");const n=Array.from(new Set(t[3])).filter(r=>"gimsuy".includes(r)).join("");return new RegExp(t[2],n)}class au{_attributes;_data;_knownDavService=/(remote|public)\.php\/(web)?dav/i;readonlyAttributes=Object.entries(Object.getOwnPropertyDescriptors(au.prototype)).filter(t=>typeof t[1].get=="function"&&t[0]!=="__proto__").map(t=>t[0]);handler={set:(t,n,r)=>this.readonlyAttributes.includes(n)?!1:Reflect.set(t,n,r),deleteProperty:(t,n)=>this.readonlyAttributes.includes(n)?!1:Reflect.deleteProperty(t,n)};constructor(...[t,n]){t.mime||(t.mime="application/octet-stream"),Q6(t),n=ek(n||this._knownDavService),mr(t,n),this._data={...t,attributes:{}},this._attributes=new Proxy(this._data.attributes,this.handler),this.update(t.attributes??{}),n&&(this._knownDavService=n)}get source(){return this._data.source.replace(/\/$/i,"")}get encodedSource(){const{origin:t}=new URL(this.source);return t+g0(this.source.slice(t.length))}get basename(){return hv(this.source)}get displayname(){return this._data.displayname||this.basename}set displayname(t){mr({...this._data,displayname:t},this._knownDavService),this._data.displayname=t}get extension(){return Y6(this.source)}get dirname(){return m0(this.path)}get mime(){return this._data.mime||"application/octet-stream"}set mime(t){t??="application/octet-stream",mr({...this._data,mime:t},this._knownDavService),this._data.mime=t}get mtime(){return this._data.mtime}set mtime(t){mr({...this._data,mtime:t},this._knownDavService),this._data.mtime=t}get crtime(){return this._data.crtime}get size(){return this._data.size}set size(t){mr({...this._data,size:t},this._knownDavService),this.updateMtime(),this._data.size=t}get attributes(){return this._attributes}get permissions(){return this.owner===null&&!this.isDavResource?yn.READ:this._data.permissions!==void 0?this._data.permissions:yn.NONE}set permissions(t){mr({...this._data,permissions:t},this._knownDavService),this.updateMtime(),this._data.permissions=t}get owner(){return this.isDavResource?this._data.owner:null}get isDavResource(){return gv(this.source,this._knownDavService)}get root(){return this._data.root.replace(/^(.+)\/$/,"$1")}get path(){const t=this.source.indexOf("://"),n=this.source.slice(0,t),r=this.source.slice(t+3),o=r.indexOf("/"),s=r.slice(0,o),a=r.slice(o),i=`${n}://${s}${g0(a)}`,u=new URL(i);let c=decodeURIComponent(u.pathname);this.isDavResource&&(c=c.split(this._knownDavService).pop());const l=c.indexOf(this.root),d=this.root.replace(/\/$/,"");return c.slice(l+d.length)||"/"}get fileid(){return typeof this._data?.id=="number"?this._data.id:void 0}get id(){if(!(typeof this._data?.id>"u"||typeof this._data.id=="number"&&this._data.id<0))return String(this._data.id)}get status(){return this._data?.status}set status(t){mr({...this._data,status:t},this._knownDavService),this._data.status=t}move(t){mr({...this._data,source:t},this._knownDavService);const n=this.basename;this._data.source=t,this.displayname===n&&this.basename!==n&&(this.displayname=this.basename)}rename(t){if(t.includes("/"))throw new Error("Invalid basename");this.move(m0(this.source)+"/"+t)}updateMtime(){this._data.mtime&&(this._data.mtime=new Date)}update(t){for(const[n,r]of Object.entries(t))try{r===void 0?delete this.attributes[n]:this.attributes[n]=r}catch(o){if(o instanceof TypeError)continue;throw o}}clone(){return new this.constructor(structuredClone(this._data),this._knownDavService)}toJSON(){return JSON.stringify([structuredClone(this._data),this._knownDavService.toString()])}}class tk extends au{constructor(...[t,n]){super(t,n)}get type(){return Qc.File}}class nk extends au{constructor(...[t,n]){super({...t,mime:"httpd/unix-directory"},n)}get type(){return Qc.Folder}get extension(){return null}get mime(){return"httpd/unix-directory"}}function rk(e=""){let t=yn.NONE;return e&&(e.includes("G")&&(t|=yn.READ),e.includes("W")&&(t|=yn.WRITE),e.includes("CK")&&(t|=yn.CREATE),e.includes("NV")&&(t|=yn.UPDATE),e.includes("D")&&(t|=yn.DELETE),e.includes("R")&&(t|=yn.SHARE)),t}const ok=["d:getcontentlength","d:getcontenttype","d:getetag","d:getlastmodified","d:creationdate","d:displayname","d:quota-available-bytes","d:resourcetype","nc:has-preview","nc:is-encrypted","nc:mount-type","oc:comments-unread","oc:favorite","oc:fileid","oc:owner-display-name","oc:owner-id","oc:permissions","oc:size"],sk={d:"DAV:",nc:"http://nextcloud.org/ns",oc:"http://owncloud.org/ns",ocs:"http://open-collaboration-services.org/ns"};function ak(){return Is.davProperties??=[...ok],Is.davProperties.map(e=>`<${e} />`).join(" ")}function ik(){return Is.davNamespaces??={...sk},Object.keys(Is.davNamespaces).map(e=>`xmlns:${e}="${Is.davNamespaces?.[e]}"`).join(" ")}function mv(){return Uc()?`/files/${L_()}`:`/files/${eu()?.uid}`}const uk=mv();function lk(){const e=e3("dav");return Uc()?e.replace("remote.php","public.php"):e}const vv=lk();function ck(e=vv,t={}){const n=Z6(e,{headers:t});function r(o){n.setHeaders({...t,"X-Requested-With":"XMLHttpRequest",requesttoken:o??""})}return zg(r),r(Mg()),Mm().patch("fetch",(o,s)=>{const a=s.headers;return a?.method&&(s.method=a.method,delete a.method),fetch(o,s)}),n}function dk(e,t=uk,n=vv){let r=eu()?.uid;if(Uc())r=r??"anonymous";else if(!r)throw new Error("No user id found");const o=e.props,s=rk(o?.permissions),a=String(o?.["owner-id"]||r),i=o.fileid||0,u=new Date(Date.parse(e.lastmod)),c=new Date(Date.parse(o.creationdate)),l={id:i,source:`${n}${e.filename}`,mtime:!isNaN(u.getTime())&&u.getTime()!==0?u:void 0,crtime:!isNaN(c.getTime())&&c.getTime()!==0?c:void 0,mime:e.mime||"application/octet-stream",displayname:o.displayname!==void 0?String(o.displayname):void 0,size:o?.size||Number.parseInt(o.getcontentlength||"0"),status:i<0?fv.FAILED:void 0,permissions:s,owner:a,root:t,attributes:{...e,...o,hasPreview:o?.["has-preview"]}};return delete l.attributes?.props,e.type==="file"?new tk(l):new nk(l)}const v0=200,dc=500;function pk(e){const t=r=>r.replace(/&/g,"&").replace(//g,">"),n=e.map(r=>` ${t(r)}`).join(` +`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function R6(e,t,n,r){const o=this.extractAttributes(e);if(r.push(t,o),this.checkStopNode(r)){const a=this.buildRawContent(e),i=this.buildAttributesForStopNode(e);return r.pop(),this.buildObjectNode(a,t,i,n)}const s=this.j2x(e,n+1,r);return r.pop(),e[this.options.textNodeName]!==void 0&&Object.keys(e).length===1?this.buildTextValNode(e[this.options.textNodeName],t,s.attrStr,n,r):this.buildObjectNode(s.val,t,s.attrStr,n)}function F6(e){return this.options.indentBy.repeat(e)}function L6(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}ln.prototype.build=function(e){if(this.options.preserveOrder)return D6(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});const t=new Zc;return this.j2x(e,0,t).val}},ln.prototype.j2x=function(e,t,n){let r="",o="";if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");const s=this.options.jPath?n.toString():n,a=this.checkStopNode(n);for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i))if(e[i]===void 0)this.isAttribute(i)&&(o+="");else if(e[i]===null)this.isAttribute(i)||i===this.options.cdataPropName?o+="":i[0]==="?"?o+=this.indentate(t)+"<"+i+"?"+this.tagEndChar:o+=this.indentate(t)+"<"+i+"/"+this.tagEndChar;else if(e[i]instanceof Date)o+=this.buildTextValNode(e[i],i,"",t,n);else if(typeof e[i]!="object"){const u=this.isAttribute(i);if(u&&!this.ignoreAttributesFn(u,s))r+=this.buildAttrPairStr(u,""+e[i],a);else if(!u)if(i===this.options.textNodeName){let c=this.options.tagValueProcessor(i,""+e[i]);o+=this.replaceEntitiesValue(c)}else{n.push(i);const c=this.checkStopNode(n);if(n.pop(),c){const l=""+e[i];o+=l===""?this.indentate(t)+"<"+i+this.closeTag(i)+this.tagEndChar:this.indentate(t)+"<"+i+">"+l+""+g+"${o}`;else if(typeof o=="object"&&o!==null){const s=this.buildRawContent(o),a=this.buildAttributesForStopNode(o);t+=s===""?`<${n}${a}/>`:`<${n}${a}>${s}`}}else if(typeof r=="object"&&r!==null){const o=this.buildRawContent(r),s=this.buildAttributesForStopNode(r);t+=o===""?`<${n}${s}/>`:`<${n}${s}>${o}`}else t+=`<${n}>${r}`}return t},ln.prototype.buildAttributesForStopNode=function(e){if(!e||typeof e!="object")return"";let t="";if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const n=e[this.options.attributesGroupName];for(let r in n){if(!Object.prototype.hasOwnProperty.call(n,r))continue;const o=r.startsWith(this.options.attributeNamePrefix)?r.substring(this.options.attributeNamePrefix.length):r,s=n[r];s===!0&&this.options.suppressBooleanAttributes?t+=" "+o:t+=" "+o+'="'+s+'"'}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const r=this.isAttribute(n);if(r){const o=e[n];o===!0&&this.options.suppressBooleanAttributes?t+=" "+r:t+=" "+r+'="'+o+'"'}}return t},ln.prototype.buildObjectNode=function(e,t,n,r){if(e==="")return t[0]==="?"?this.indentate(r)+"<"+t+n+"?"+this.tagEndChar:this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let o="`+this.newLine:this.indentate(r)+"<"+t+n+s+this.tagEndChar+e+this.indentate(r)+o:this.indentate(r)+"<"+t+n+s+">"+e+o}},ln.prototype.closeTag=function(e){let t="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`>/g,"]]]]>");return this.indentate(r)+``+this.newLine}if(this.options.commentPropName!==!1&&t===this.options.commentPropName){const s=String(e).replace(/--/g,"- -").replace(/-$/,"- ");return this.indentate(r)+``+this.newLine}if(t[0]==="?")return this.indentate(r)+"<"+t+n+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(t,e);return s=this.replaceEntitiesValue(s),s===""?this.indentate(r)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+"<"+t+n+">"+s+"0&&this.options.processEntities)for(let t=0;t3&&arguments[3]!==void 0?arguments[3]:{};const o=mt({url:nt(e.remoteURL,tt(t)),method:"UNLOCK",headers:{"Lock-Token":n}},e,r);return hc(gt(o,e),(function(s){if(vt(e,s),s.status!==204&&s.status!==200)throw Kc(s)}))})),z6=pv((function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{refreshToken:r,timeout:o=U6}=n,s={Accept:"text/plain,application/xml",Timeout:o};r&&(s.If=r);const a=mt({url:nt(e.remoteURL,tt(t)),method:"LOCK",headers:s,data:M6(e.contactHref)},e,n);return hc(gt(a,e),(function(i){return vt(e,i),hc(i.text(),(function(u){const c=(p=u,new ov({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(p)),l=Zn().get(c,"prop.lockdiscovery.activelock.locktoken.href"),d=Zn().get(c,"prop.lockdiscovery.activelock.timeout");var p;if(!l)throw Kc(i,"No lock token received: ");return{token:l,serverTimeout:d}}))}))})),U6="Infinite, Second-4100000000";function hl(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const V6=(function(e){return function(){for(var t=[],n=0;n1&&arguments[1]!==void 0?arguments[1]:{};const n=t.path||"/",r=mt({url:nt(e.remoteURL,n),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,t);return hl(gt(r,e),(function(o){return vt(e,o),hl(o.text(),(function(s){return hl(uu(s,e.parsing),(function(a){const i=(function(u){try{const[c]=u.multistatus.response,{propstat:{prop:{"quota-used-bytes":l,"quota-available-bytes":d}}}=c;return l!==void 0&&d!==void 0?{used:parseInt(String(l),10),available:m6(d)}:null}catch{}return null})(a);return qo(o,i,t.details)}))}))}))}));function fl(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const H6=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const{details:r=!1}=n,o=mt({url:nt(e.remoteURL,tt(t)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":e.headers["Content-Type"]||"application/xml; charset=utf-8"}},e,n);return fl(gt(o,e),(function(s){return vt(e,s),fl(s.text(),(function(a){return fl(uu(a,e.parsing),(function(i){const u=(function(c,l,d){const p={truncated:!1,results:[]};return p.truncated=c.multistatus.response.some((h=>(h.status||h.propstat?.status).split(" ",3)?.[1]==="507"&&h.href.replace(/\/$/,"").endsWith(tt(l).replace(/\/$/,"")))),c.multistatus.response.forEach((h=>{if(h.propstat===void 0)return;const g=h.href.split("/").map(decodeURIComponent).join("/");p.results.push(Yc(h.propstat.prop,g,d))})),p})(i,t,r);return qo(s,u,r)}))}))}))})),G6=(function(e){return function(){for(var t=[],n=0;n3&&arguments[3]!==void 0?arguments[3]:{};const o=mt({url:nt(e.remoteURL,tt(t)),method:"MOVE",headers:{Destination:nt(e.remoteURL,tt(n)),Overwrite:r.overwrite===!1?"F":"T"}},e,r);return a=function(i){vt(e,i)},(s=gt(o,e))&&s.then||(s=Promise.resolve(s)),a?s.then(a):s;var s,a}));var W6=Xe(172);function q6(e){if(Um(e))return e.byteLength;if(Vm(e))return e.length;if(typeof e=="string")return(0,W6.d)(e);throw new Wt({info:{code:Rr.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}const K6=(function(e){return function(){for(var t=[],n=0;n3&&arguments[3]!==void 0?arguments[3]:{};const{contentLength:o=!0,overwrite:s=!0}=r,a={"Content-Type":"application/octet-stream"};o===!1||(a["Content-Length"]=typeof o=="number"?`${o}`:`${q6(n)}`),s||(a["If-None-Match"]="*");const i=mt({url:nt(e.remoteURL,tt(t)),method:"PUT",headers:a,data:n},e,r);return c=function(l){try{vt(e,l)}catch(d){const p=d;if(p.status!==412||s)throw p;return!1}return!0},(u=gt(i,e))&&u.then||(u=Promise.resolve(u)),c?u.then(c):u;var u,c})),hv=(function(e){return function(){for(var t=[],n=0;n2&&arguments[2]!==void 0?arguments[2]:{};const r=mt({url:nt(e.remoteURL,tt(t)),method:"OPTIONS"},e,n);return s=function(a){try{vt(e,a)}catch(i){throw i}return{compliance:(a.headers.get("DAV")??"").split(",").map((i=>i.trim())),server:a.headers.get("Server")??""}},(o=gt(r,e))&&o.then||(o=Promise.resolve(o)),s?o.then(s):o;var o,s}));function Is(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const X6=ed((function(e,t,n,r,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(n>r||n<0)throw new Wt({info:{code:Rr.InvalidUpdateRange}},`Invalid update range ${n} for partial update`);const a={"Content-Type":"application/octet-stream","Content-Length":""+(r-n+1),"Content-Range":`bytes ${n}-${r}/*`},i=mt({url:nt(e.remoteURL,tt(t)),method:"PUT",headers:a,data:o},e,s);return Is(gt(i,e),(function(u){vt(e,u)}))}));function m0(e,t){var n=e();return n&&n.then?n.then(t):t(n)}const Z6=ed((function(e,t,n,r,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(n>r||n<0)throw new Wt({info:{code:Rr.InvalidUpdateRange}},`Invalid update range ${n} for partial update`);const a={"Content-Type":"application/x-sabredav-partialupdate","Content-Length":""+(r-n+1),"X-Update-Range":`bytes=${n}-${r}`},i=mt({url:nt(e.remoteURL,tt(t)),method:"PATCH",headers:a,data:o},e,s);return Is(gt(i,e),(function(u){vt(e,u)}))}));function ed(e){return function(){for(var t=[],n=0;n5&&arguments[5]!==void 0?arguments[5]:{};return Is(hv(e,t,s),(function(a){let i=!1;return m0((function(){if(a.compliance.includes("sabredav-partialupdate"))return Is(Z6(e,t,n,r,o,s),(function(u){return i=!0,u}))}),(function(u){let c=!1;return i?u:m0((function(){if(a.server.includes("Apache")&&a.compliance.includes(""))return Is(X6(e,t,n,r,o,s),(function(l){return c=!0,l}))}),(function(l){if(c)return l;throw new Wt({info:{code:Rr.NotSupported}},"Not supported")}))}))}))})),J6="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function Q6(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{authType:n=null,remoteBasePath:r,contactHref:o=J6,entityDecoder:s,ha1:a,headers:i={},httpAgent:u,httpsAgent:c,password:l,token:d,username:p,withCredentials:h}=t;let g=n;g||(g=p||l?Yt.Password:Yt.None);const f={authType:g,remoteBasePath:r,contactHref:o,ha1:a,headers:Object.assign({},i),httpAgent:u,httpsAgent:c,password:l,parsing:{attributeNamePrefix:t.attributeNamePrefix??"@",attributeParsers:[],entityDecoder:s,tagParsers:[sv]},remotePath:H_(e),remoteURL:e,token:d,username:p,withCredentials:h};return Mm(f,p,l,d,a),{copyFile:(m,y,v)=>TS(f,m,y,v),createDirectory:(m,y)=>dc(f,m,y),createReadStream:(m,y)=>(function(v,E){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const _=new(f0()).PassThrough;return E6(v,E,C).then((D=>{D.pipe(_)})).catch((D=>{_.emit("error",D)})),_})(f,m,y),createWriteStream:(m,y,v)=>(function(E,C){let _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:w6;const R=new(f0()).PassThrough,Z={};_.overwrite===!1&&(Z["If-None-Match"]="*");const M=mt({url:nt(E.remoteURL,tt(C)),method:"PUT",headers:Z,data:R,maxRedirects:0},E,_);return gt(M,E).then((P=>vt(E,P))).then((P=>{setTimeout((()=>{D(P)}),0)})).catch((P=>{R.emit("error",P)})),R})(f,m,y,v),customRequest:(m,y)=>C6(f,m,y),deleteFile:(m,y)=>x6(f,m,y),exists:(m,y)=>A6(f,m,y),getDirectoryContents:(m,y)=>_6(f,m,y),getFileContents:(m,y)=>T6(f,m,y),getFileDownloadLink:m=>(function(y,v){let E=nt(y.remoteURL,tt(v));const C=/^https:/i.test(E)?"https":"http";switch(y.authType){case Yt.None:break;case Yt.Password:{const _=Wh(y.headers.Authorization.replace(/^Basic /i,"").trim());E=E.replace(/^https?:\/\//,`${C}://${_}@`);break}default:throw new Wt({info:{code:Rr.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${y.authType}`)}return E})(f,m),getFileUploadLink:m=>(function(y,v){let E=`${nt(y.remoteURL,tt(v))}?Content-Type=application/octet-stream`;const C=/^https:/i.test(E)?"https":"http";switch(y.authType){case Yt.None:break;case Yt.Password:{const _=Wh(y.headers.Authorization.replace(/^Basic /i,"").trim());E=E.replace(/^https?:\/\//,`${C}://${_}@`);break}default:throw new Wt({info:{code:Rr.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${y.authType}`)}return E})(f,m),getHeaders:()=>Object.assign({},f.headers),getQuota:m=>V6(f,m),lock:(m,y)=>z6(f,m,y),moveFile:(m,y,v)=>G6(f,m,y,v),putFileContents:(m,y,v)=>K6(f,m,y,v),partialUpdateFileContents:(m,y,v,E,C)=>Y6(f,m,y,v,E,C),getDAVCompliance:m=>hv(f,m),search:(m,y)=>H6(f,m,y),setHeaders:m=>{f.headers=Object.assign({},m)},stat:(m,y)=>Jc(f,m,y),unlock:(m,y,v)=>j6(f,m,y,v),registerAttributeParser:m=>{f.parsing.attributeParsers.push(m)},registerTagParser:m=>{f.parsing.tagParsers.push(m)}}}function v0(e){return e&&e.split("/").map(encodeURIComponent).join("/")}function fv(e,t){return e=e.replace(/\\/g,"/").replace(/\/+$/g,"").replace(/.*\//,""),e}function y0(e){e=e.replaceAll(/\\/g,"/");const t=e.split("/");return t.length<=1?".":(t.pop(),t.length===1&&t[0]===""?"/":t.join("/"))}function ek(e){const t=fv(e),n=t.lastIndexOf(".");return n>0?t.substring(n):""}function tk(...e){if(arguments.length<1)return"";const t=e.filter(u=>u.length>0);if(t.length<1)return"";const n=t[t.length-1],r=t[0].charAt(0)==="/",o=n.charAt(n.length-1)==="/",s=t.reduce((u,c)=>u.concat(c.split("/")),[]);let a=!r;const i=s.reduce((u,c)=>c===""?u:a?(a=!1,u+c):u+"/"+c,"");return o?i+"/":i}window._nc_files_scope??={},window._nc_files_scope.v4_0??={};const Ms=window._nc_files_scope.v4_0;om().setApp("@nextcloud/files").detectUser().build();const td=Object.freeze({Folder:"folder",File:"file"}),bn=Object.freeze({NONE:0,READ:1,UPDATE:2,CREATE:4,WRITE:4,DELETE:8,SHARE:16,ALL:31}),gv=Object.freeze({NEW:"new",FAILED:"failed",LOADING:"loading",LOCKED:"locked"});function mv(e,t){return e.match(t)!==null}function mr(e,t){if(e.id&&typeof e.id!="number"&&typeof e.id!="string")throw new Error("Invalid id type of value");if(!e.source)throw new Error("Missing mandatory source");try{new URL(e.source)}catch{throw new Error("Invalid source format, source must be a valid URL")}if(!e.source.startsWith("http"))throw new Error("Invalid source format, only http(s) is supported");if(!e.root)throw new Error("Missing mandatory root");if(typeof e.root!="string")throw new Error("Invalid root type");if(!e.root.startsWith("/"))throw new Error("Root must start with a leading slash");if(!e.source.includes(e.root))throw new Error("Root must be part of the source");if(mv(e.source,t)){const n=e.source.match(t)[0];if(!e.source.includes(tk(n,e.root)))throw new Error("The root must be relative to the service. e.g /files/emma")}if(e.displayname&&typeof e.displayname!="string")throw new Error("Invalid displayname type");if(e.mtime&&!(e.mtime instanceof Date))throw new Error("Invalid mtime type");if(e.crtime&&!(e.crtime instanceof Date))throw new Error("Invalid crtime type");if(!e.mime||typeof e.mime!="string"||!e.mime.match(/^[-\w.]+\/[-+\w.]+$/gi))throw new Error("Missing or invalid mandatory mime");if("size"in e&&typeof e.size!="number"&&e.size!==void 0)throw new Error("Invalid size type");if("permissions"in e&&e.permissions!==void 0&&!(typeof e.permissions=="number"&&e.permissions>=bn.NONE&&e.permissions<=bn.ALL))throw new Error("Invalid permissions");if(e.owner&&e.owner!==null&&typeof e.owner!="string")throw new Error("Invalid owner type");if(e.attributes&&typeof e.attributes!="object")throw new Error("Invalid attributes type");if(e.status&&!Object.values(gv).includes(e.status))throw new Error("Status must be a valid NodeStatus")}function nk(e){e.mtime&&typeof e.mtime=="string"&&!isNaN(Date.parse(e.mtime))&&JSON.stringify(new Date(e.mtime))===JSON.stringify(e.mtime)&&(e.mtime=new Date(e.mtime)),e.crtime&&typeof e.crtime=="string"&&!isNaN(Date.parse(e.crtime))&&JSON.stringify(new Date(e.crtime))===JSON.stringify(e.crtime)&&(e.crtime=new Date(e.crtime))}function rk(e){if(e instanceof RegExp)return e;const t=e.match(/(\/?)(.+)\1([a-z]*)/i);if(!t)throw new Error("Invalid regular expression format.");const n=Array.from(new Set(t[3])).filter(r=>"gimsuy".includes(r)).join("");return new RegExp(t[2],n)}class lu{_attributes;_data;_knownDavService=/(remote|public)\.php\/(web)?dav/i;readonlyAttributes=Object.entries(Object.getOwnPropertyDescriptors(lu.prototype)).filter(t=>typeof t[1].get=="function"&&t[0]!=="__proto__").map(t=>t[0]);handler={set:(t,n,r)=>this.readonlyAttributes.includes(n)?!1:Reflect.set(t,n,r),deleteProperty:(t,n)=>this.readonlyAttributes.includes(n)?!1:Reflect.deleteProperty(t,n)};constructor(...[t,n]){t.mime||(t.mime="application/octet-stream"),nk(t),n=rk(n||this._knownDavService),mr(t,n),this._data={...t,attributes:{}},this._attributes=new Proxy(this._data.attributes,this.handler),this.update(t.attributes??{}),n&&(this._knownDavService=n)}get source(){return this._data.source.replace(/\/$/i,"")}get encodedSource(){const{origin:t}=new URL(this.source);return t+v0(this.source.slice(t.length))}get basename(){return fv(this.source)}get displayname(){return this._data.displayname||this.basename}set displayname(t){mr({...this._data,displayname:t},this._knownDavService),this._data.displayname=t}get extension(){return ek(this.source)}get dirname(){return y0(this.path)}get mime(){return this._data.mime||"application/octet-stream"}set mime(t){t??="application/octet-stream",mr({...this._data,mime:t},this._knownDavService),this._data.mime=t}get mtime(){return this._data.mtime}set mtime(t){mr({...this._data,mtime:t},this._knownDavService),this._data.mtime=t}get crtime(){return this._data.crtime}get size(){return this._data.size}set size(t){mr({...this._data,size:t},this._knownDavService),this.updateMtime(),this._data.size=t}get attributes(){return this._attributes}get permissions(){return this.owner===null&&!this.isDavResource?bn.READ:this._data.permissions!==void 0?this._data.permissions:bn.NONE}set permissions(t){mr({...this._data,permissions:t},this._knownDavService),this.updateMtime(),this._data.permissions=t}get owner(){return this.isDavResource?this._data.owner:null}get isDavResource(){return mv(this.source,this._knownDavService)}get root(){return this._data.root.replace(/^(.+)\/$/,"$1")}get path(){const t=this.source.indexOf("://"),n=this.source.slice(0,t),r=this.source.slice(t+3),o=r.indexOf("/"),s=r.slice(0,o),a=r.slice(o),i=`${n}://${s}${v0(a)}`,u=new URL(i);let c=decodeURIComponent(u.pathname);this.isDavResource&&(c=c.split(this._knownDavService).pop());const l=c.indexOf(this.root),d=this.root.replace(/\/$/,"");return c.slice(l+d.length)||"/"}get fileid(){return typeof this._data?.id=="number"?this._data.id:void 0}get id(){if(!(typeof this._data?.id>"u"||typeof this._data.id=="number"&&this._data.id<0))return String(this._data.id)}get status(){return this._data?.status}set status(t){mr({...this._data,status:t},this._knownDavService),this._data.status=t}move(t){mr({...this._data,source:t},this._knownDavService);const n=this.basename;this._data.source=t,this.displayname===n&&this.basename!==n&&(this.displayname=this.basename)}rename(t){if(t.includes("/"))throw new Error("Invalid basename");this.move(y0(this.source)+"/"+t)}updateMtime(){this._data.mtime&&(this._data.mtime=new Date)}update(t){for(const[n,r]of Object.entries(t))try{r===void 0?delete this.attributes[n]:this.attributes[n]=r}catch(o){if(o instanceof TypeError)continue;throw o}}clone(){return new this.constructor(structuredClone(this._data),this._knownDavService)}toJSON(){return JSON.stringify([structuredClone(this._data),this._knownDavService.toString()])}}class ok extends lu{constructor(...[t,n]){super(t,n)}get type(){return td.File}}class sk extends lu{constructor(...[t,n]){super({...t,mime:"httpd/unix-directory"},n)}get type(){return td.Folder}get extension(){return null}get mime(){return"httpd/unix-directory"}}function ak(e=""){let t=bn.NONE;return e&&(e.includes("G")&&(t|=bn.READ),e.includes("W")&&(t|=bn.WRITE),e.includes("CK")&&(t|=bn.CREATE),e.includes("NV")&&(t|=bn.UPDATE),e.includes("D")&&(t|=bn.DELETE),e.includes("R")&&(t|=bn.SHARE)),t}const ik=["d:getcontentlength","d:getcontenttype","d:getetag","d:getlastmodified","d:creationdate","d:displayname","d:quota-available-bytes","d:resourcetype","nc:has-preview","nc:is-encrypted","nc:mount-type","oc:comments-unread","oc:favorite","oc:fileid","oc:owner-display-name","oc:owner-id","oc:permissions","oc:size"],uk={d:"DAV:",nc:"http://nextcloud.org/ns",oc:"http://owncloud.org/ns",ocs:"http://open-collaboration-services.org/ns"};function lk(){return Ms.davProperties??=[...ik],Ms.davProperties.map(e=>`<${e} />`).join(" ")}function ck(){return Ms.davNamespaces??={...uk},Object.keys(Ms.davNamespaces).map(e=>`xmlns:${e}="${Ms.davNamespaces?.[e]}"`).join(" ")}function vv(){return Hc()?`/files/${M_()}`:`/files/${ru()?.uid}`}const dk=vv();function pk(){const e=r3("dav");return Hc()?e.replace("remote.php","public.php"):e}const yv=pk();function hk(e=yv,t={}){const n=Q6(e,{headers:t});function r(o){n.setHeaders({...t,"X-Requested-With":"XMLHttpRequest",requesttoken:o??""})}return Ug(r),r(jg()),jm().patch("fetch",(o,s)=>{const a=s.headers;return a?.method&&(s.method=a.method,delete a.method),fetch(o,s)}),n}function fk(e,t=dk,n=yv){let r=ru()?.uid;if(Hc())r=r??"anonymous";else if(!r)throw new Error("No user id found");const o=e.props,s=ak(o?.permissions),a=String(o?.["owner-id"]||r),i=o.fileid||0,u=new Date(Date.parse(e.lastmod)),c=new Date(Date.parse(o.creationdate)),l={id:i,source:`${n}${e.filename}`,mtime:!isNaN(u.getTime())&&u.getTime()!==0?u:void 0,crtime:!isNaN(c.getTime())&&c.getTime()!==0?c:void 0,mime:e.mime||"application/octet-stream",displayname:o.displayname!==void 0?String(o.displayname):void 0,size:o?.size||Number.parseInt(o.getcontentlength||"0"),status:i<0?gv.FAILED:void 0,permissions:s,owner:a,root:t,attributes:{...e,...o,hasPreview:o?.["has-preview"]}};return delete l.attributes?.props,e.type==="file"?new ok(l):new sk(l)}const b0=200,fc=500;function gk(e){const t=r=>r.replace(/&/g,"&").replace(//g,">"),n=e.map(r=>` ${t(r)}`).join(` `);return` - + - ${ak()} + ${lk()} - ${mv()}/ + ${vv()}/ infinity @@ -92,16 +92,16 @@ ${n} - ${dc+1} + ${fc+1} -`}let xs=null;async function hk(e){if(xs)return xs;const t=(await ck().search("/",{details:!0,data:pk(e)})).data.results;return xs={nodes:t.map(n=>dk(n)).filter(n=>n.type==="file").slice(0,dc),truncated:t.length>dc},xs}function fk(){xs=null}function gk(e,t){return e.filter(n=>t.includes(n.mime??""))}function yv(e,t){return function(){return e.apply(t,arguments)}}const{toString:mk}=Object.prototype,{getPrototypeOf:$r}=Object,{iterator:ga,toStringTag:bv}=Symbol,oa=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ev=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),wv=(e,t,n)=>e===Object.prototype||!n&&t===null,vk=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(n=>{if(Ev(n))return!1;const r=Object.getOwnPropertyDescriptor(e,n);return!!r&&r.configurable&&r.writable===!0})},sa=(e,t)=>{let n=e;const r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);const o=$r(n);if(wv(n,o,n===e))return!1;if(oa(n,t))return!0;n=o}return!1},yk=(e,t)=>e!=null&&sa(e,t)?e[t]:void 0,bk=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;const t=$r(e);if(t===null&&vk(e))return e;const n=Object.create(null),r=Object.create(null),o=[];let s=e;for(;s!=null&&o.indexOf(s)===-1;){o.push(s);const a=s===e?t:$r(s);if(wv(s,a,s===e))break;const i=Object.getOwnPropertyNames(s);Object.getOwnPropertySymbols&&i.push(...Object.getOwnPropertySymbols(s));for(const u of i)Ev(u)||oa(r,u)||(n[u]=e[u],r[u]=!0);s=a}return n},ed=(e=>t=>{const n=mk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),mn=e=>(e=e.toLowerCase(),t=>ed(t)===e),iu=e=>t=>typeof t===e,{isArray:so}=Array,ao=iu("undefined");function qo(e){return e!==null&&!ao(e)&&e.constructor!==null&&!ao(e.constructor)&&Jt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Cv=mn("ArrayBuffer");function Ek(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Cv(e.buffer),t}const wk=iu("string"),Jt=iu("function"),xv=iu("number"),Ko=e=>e!==null&&typeof e=="object",Ck=e=>e===!0||e===!1,qa=e=>{if(!Ko(e))return!1;const t=$r(e);return(t===null||t===Object.prototype||$r(t)===null)&&!sa(e,bv)&&!sa(e,ga)},xk=e=>{if(!Ko(e)||qo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Ak=mn("Date"),_k=mn("File"),Sk=e=>!!(e&&typeof e.uri<"u"),kk=e=>e&&typeof e.getParts<"u",Tk=mn("Blob"),Ok=mn("FileList"),Dk=mn("Set"),Nk=e=>Ko(e)&&Jt(e.pipe);function Pk(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof Qn<"u"?Qn:{}}const y0=Pk(),b0=typeof y0.FormData<"u"?y0.FormData:void 0,Bk=e=>{if(!e)return!1;if(b0&&e instanceof b0)return!0;const t=$r(e);if(!t||t===Object.prototype||!Jt(e.append))return!1;const n=ed(e);return n==="formdata"||n==="object"&&Jt(e.toString)&&e.toString()==="[object FormData]"},$k=mn("URLSearchParams"),[Rk,Lk,Fk,Ik]=["ReadableStream","Request","Response","Headers"].map(mn),Mk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ma(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),so(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Jr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Qn,_v=e=>!ao(e)&&e!==Jr;function pc(...e){const{caseless:t,skipUndefined:n}=_v(this)&&this||{},r={},o=(s,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const i=t&&typeof a=="string"&&Av(r,a)||a,u=oa(r,i)?r[i]:void 0;qa(u)&&qa(s)?r[i]=pc(u,s):qa(s)?r[i]=pc({},s):so(s)?r[i]=s.slice():(!n||!ao(s))&&(r[i]=s)};for(let s=0,a=e.length;s(ma(t,(o,s)=>{n&&Jt(o)?Object.defineProperty(e,s,{__proto__:null,value:yv(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),zk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Uk=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Vk=(e,t,n,r)=>{let o,s,a;const i={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)a=o[s],(!r||r(a,e,t))&&!i[a]&&(t[a]=e[a],i[a]=!0);e=n!==!1&&$r(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Hk=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Gk=e=>{if(!e)return null;if(so(e))return e;let t=e.length;if(!xv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Wk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&$r(Uint8Array)),qk=(e,t)=>{const n=(e&&e[ga]).call(e);let r;for(;(r=n.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},Kk=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Xk=mn("HTMLFormElement"),Zk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),{propertyIsEnumerable:Yk}=Object.prototype,Jk=mn("RegExp"),Sv=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ma(n,(o,s)=>{let a;(a=t(o,s,e))!==!1&&(r[s]=a||o)}),Object.defineProperties(e,r)},Qk=e=>{Sv(e,(t,n)=>{if(Jt(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(Jt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},e5=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return so(e)?r(e):r(String(e).split(t)),n},t5=()=>{},n5=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function r5(e){return!!(e&&Jt(e.append)&&e[bv]==="FormData"&&e[ga])}const o5=e=>{const t=new WeakSet,n=r=>{if(Ko(r)){if(t.has(r))return;if(qo(r))return r;if(!("toJSON"in r)){t.add(r);let o;if(Dk(r)){o=[];for(const s of r){const a=n(s);!ao(a)&&o.push(a)}}else o=so(r)?[]:{},ma(r,(s,a)=>{const i=n(s);!ao(i)&&(o[a]=i)});return t.delete(r),o}}return r};return n(e)},s5=mn("AsyncFunction"),a5=e=>e&&(Ko(e)||Jt(e))&&Jt(e.then)&&Jt(e.catch),kv=((e,t)=>e?setImmediate:t?((n,r)=>(Jr.addEventListener("message",({source:o,data:s})=>{o===Jr&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Jr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Jt(Jr.postMessage)),i5=typeof queueMicrotask<"u"?queueMicrotask.bind(Jr):typeof to<"u"&&to.nextTick||kv,Tv=e=>e!=null&&Jt(e[ga]),u5=e=>e!=null&&sa(e,ga)&&Tv(e),T={isArray:so,isArrayBuffer:Cv,isBuffer:qo,isFormData:Bk,isArrayBufferView:Ek,isString:wk,isNumber:xv,isBoolean:Ck,isObject:Ko,isPlainObject:qa,isEmptyObject:xk,isReadableStream:Rk,isRequest:Lk,isResponse:Fk,isHeaders:Ik,isUndefined:ao,isDate:Ak,isFile:_k,isReactNativeBlob:Sk,isReactNative:kk,isBlob:Tk,isRegExp:Jk,isFunction:Jt,isStream:Nk,isURLSearchParams:$k,isTypedArray:Wk,isFileList:Ok,forEach:ma,merge:pc,extend:jk,trim:Mk,stripBOM:zk,inherits:Uk,toFlatObject:Vk,kindOf:ed,kindOfTest:mn,endsWith:Hk,toArray:Gk,forEachEntry:qk,matchAll:Kk,isHTMLForm:Xk,hasOwnProperty:oa,hasOwnProp:oa,hasOwnInPrototypeChain:sa,getSafeProp:yk,toSafeFlatObject:bk,reduceDescriptors:Sv,freezeMethods:Qk,toObjectSet:e5,toCamelCase:Zk,noop:t5,toFiniteNumber:n5,findKey:Av,global:Jr,isContextDefined:_v,isSpecCompliantForm:r5,toJSONObject:o5,isAsyncFn:s5,isThenable:a5,setImmediate:kv,asap:i5,isIterable:Tv,isSafeIterable:u5},l5=T.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),c5=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim();const a=T.hasOwnProp(t,n);!n||a&&T.hasOwnProp(l5,n)||(n==="set-cookie"?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+", "+r:r)}),t};function d5(e){let t=0,n=e.length;for(;tt;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const p5=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),h5=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function td(e,t){return T.isArray(e)?e.map(n=>td(n,t)):d5(String(e).replace(t,""))}const f5=e=>td(e,p5),g5=e=>td(e,h5);function Ov(e){const t=Object.create(null);return T.forEach(e.toJSON(),(n,r)=>{t[r]=g5(n)}),t}const E0=Symbol("internals");function fs(e){return e&&String(e).trim().toLowerCase()}function Ka(e){return e===!1||e==null?e:T.isArray(e)?e.map(Ka):f5(String(e))}function m5(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const v5=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function pl(e){let t=0,n=e.length;for(;tt;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function y5(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let r=1;r=t))return e;n+=e[r]}return n}function b5(e){const t=Object.create(null),n=String(e);let r=0,o=!1,s=!1;function a(i){const u=pl(n.slice(r,i)),c=u.indexOf("=");if(c<1)return;const l=pl(u.slice(0,c));if(!v5.test(l))return;const d=l.toLowerCase();if(d==="__proto__"||d==="constructor"||d==="prototype")return;const p=pl(u.slice(c+1));t[d]=y5(p)}for(let i=0;i/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function hl(e,t,n,r,o){if(T.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!T.isString(t)){if(T.isString(r))return t.indexOf(r)!==-1;if(T.isRegExp(r))return r.test(t)}}function w5(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function C5(e,t){const n=T.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(o,s,a){return this[r].call(this,t,o,s,a)},configurable:!0})})}let Lt=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(a,i,u){const c=fs(i);if(!c)return;const l=T.findKey(r,c);(!l||r[l]===void 0||u===!0||u===void 0&&r[l]!==!1)&&(r[l||i]=Ka(a))}const s=(a,i)=>T.forEach(a,(u,c)=>o(u,c,i));if(T.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(T.isString(e)&&(e=e.trim())&&!E5(e))s(c5(e),t);else if(T.isObject(e)&&T.isSafeIterable(e)){let a=Object.create(null),i,u;for(const c of e){if(!T.isArray(c))throw new TypeError("Object iterator must return a key-value pair");u=c[0],T.hasOwnProp(a,u)?(i=a[u],a[u]=T.isArray(i)?[...i,c[1]]:[i,c[1]]):a[u]=c[1]}s(a,t)}else e!=null&&o(t,e,n);return this}get(e,t){if(e=fs(e),e){const n=T.findKey(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return m5(r);if(T.isFunction(t))return t.call(this,r,n);if(T.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=fs(e),e){const n=T.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||hl(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let r=!1;function o(s){if(s=fs(s),s){const a=T.findKey(n,s);a&&(!t||hl(n,n[a],a,t))&&(delete n[a],r=!0)}}return T.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];(!e||hl(this,this[o],o,e,!0))&&(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return T.forEach(this,(r,o)=>{const s=T.findKey(n,o);if(s){t[s]=Ka(r),delete t[o];return}const a=e?w5(o):String(o).trim();a!==o&&delete t[o],t[a]=Ka(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return T.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&T.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(` -`)}getSetCookie(){const e=this.get("set-cookie");return T.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return b5(e)}static concat(e,...t){const n=new this(e);return t.forEach(r=>n.set(r)),n}static accessor(e){const t=(this[E0]=this[E0]={accessors:{}}).accessors,n=this.prototype;function r(o){const s=fs(o);t[s]||(C5(n,o),t[s]=!0)}return T.isArray(e)?e.forEach(r):r(e),this}};Lt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),T.reduceDescriptors(Lt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),T.freezeMethods(Lt);const Di="[REDACTED ****]";function x5(e){if(T.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(T.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function A5(e,t){const n=new Set(t.map(s=>String(s).toLowerCase())),r=[],o=s=>{if(s===null||typeof s!="object"||T.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof Lt&&(s=s.toJSON()),r.push(s);let a;if(T.isArray(s))a=[],s.forEach((i,u)=>{const c=o(i);T.isUndefined(c)||(a[u]=c)});else{if(!T.isPlainObject(s)&&x5(s))return r.pop(),s;a=Object.create(null);for(const[i,u]of Object.entries(s)){const c=n.has(i.toLowerCase())?Di:o(u);T.isUndefined(c)||(a[i]=c)}}return r.pop(),a};return o(e)}function w0(e){try{return String(e)}catch{return""}}function _5(e){return e.errors.map(t=>{try{return t&&t.message?w0(t.message):w0(t)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let ie=class Dv extends Error{static from(t,n,r,o,s,a){let i=t.message;!i&&T.isArray(t.errors)&&t.errors.length&&(i=_5(t));const u=new Dv(i,n||t.code,r,o,s);return Object.defineProperty(u,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),u.name=t.name,t.status!=null&&u.status==null&&(u.status=t.status),a&&Object.assign(u,a),u}constructor(t,n,r,o,s){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s,this.status=s.status)}toJSON(){const t=this.config,n=t&&T.hasOwnProp(t,"redact")?t.redact:void 0,r=T.isArray(n)&&n.length>0?A5(t,n):T.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};ie.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ie.ERR_BAD_OPTION="ERR_BAD_OPTION",ie.ECONNABORTED="ECONNABORTED",ie.ETIMEDOUT="ETIMEDOUT",ie.ECONNREFUSED="ECONNREFUSED",ie.ERR_NETWORK="ERR_NETWORK",ie.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ie.ERR_DEPRECATED="ERR_DEPRECATED",ie.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ie.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ie.ERR_CANCELED="ERR_CANCELED",ie.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ie.ERR_INVALID_URL="ERR_INVALID_URL",ie.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const S5=null,Nv=100;function hc(e){return T.isPlainObject(e)||T.isArray(e)}function Pv(e){return T.endsWith(e,"[]")?e.slice(0,-2):e}function fl(e,t,n){return e?e.concat(t).map(function(r,o){return r=Pv(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function k5(e){return T.isArray(e)&&!e.some(hc)}const T5=T.toFlatObject(T,{},null,function(e){return/^is[A-Z]/.test(e)});function uu(e,t,n){if(!T.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(v,E)=>{const C=T.getSafeProp(n,v);return T.isUndefined(C)?E:C},o=r("metaTokens",!0),s=r("visitor")||f,a=r("dots",!1),i=r("indexes",!1),u=r("Blob")||typeof Blob<"u"&&Blob,c=r("maxDepth",Nv),l=u&&T.isSpecCompliantForm(t),d=[];if(!T.isFunction(s))throw new TypeError("visitor must be a function");function p(v){if(v===null)return"";if(T.isDate(v))return v.toISOString();if(T.isBoolean(v))return v.toString();if(!l&&T.isBlob(v))throw new ie("Blob is not supported. Use a Buffer instead.");if(T.isArrayBuffer(v)||T.isTypedArray(v)){if(l&&typeof u=="function")return new u([v]);throw new ie("Blob is not supported. Use a Buffer instead.",ie.ERR_NOT_SUPPORT)}return v}function h(v){if(v>c)throw new ie("Object is too deeply nested ("+v+" levels). Max depth: "+c,ie.ERR_FORM_DATA_DEPTH_EXCEEDED)}function g(v,E){if(c===1/0)return JSON.stringify(v);const C=[];return JSON.stringify(v,function(_,D){if(!T.isObject(D))return D;for(;C.length&&C[C.length-1]!==this;)C.pop();return C.push(D),h(E+C.length-1),D})}function f(v,E,C){let _=v;if(T.isReactNative(t)&&T.isReactNativeBlob(v))return t.append(fl(C,E,a),p(v)),!1;if(v&&!C&&typeof v=="object"){if(T.endsWith(E,"{}"))E=o?E:E.slice(0,-2),v=g(v,1);else if(T.isArray(v)&&k5(v)||(T.isFileList(v)||T.endsWith(E,"[]"))&&(_=T.toArray(v)))return E=Pv(E),_.forEach(function(D,R){!(T.isUndefined(D)||D===null)&&t.append(i===!0?fl([E],R,a):i===null?E:E+"[]",p(D))}),!1}return hc(v)?!0:(t.append(fl(C,E,a),p(v)),!1)}const m=Object.assign(T5,{defaultVisitor:f,convertValue:p,isVisitable:hc});function y(v,E,C=0){if(!T.isUndefined(v)){if(h(C),d.indexOf(v)!==-1)throw new Error("Circular reference detected in "+E.join("."));d.push(v),T.forEach(v,function(_,D){(!(T.isUndefined(_)||_===null)&&s.call(t,_,T.isString(D)?D.trim():D,E,m))===!0&&y(_,E?E.concat(D):[D],C+1)}),d.pop()}}if(!T.isObject(e))throw new TypeError("data must be an object");return y(e),t}function C0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(n){return t[n]})}function nd(e,t){this._pairs=[],e&&uu(e,this,t)}const x0=nd.prototype;x0.append=function(e,t){this._pairs.push([e,t])},x0.toString=function(e){const t=e?n=>e.call(this,n,C0):C0;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function O5(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Bv(e,t,n){if(!t)return e;e=e||"";const r=T.isFunction(n)?{serialize:n}:n,o=T.getSafeProp(r,"encode")||O5,s=T.getSafeProp(r,"serialize");let a;if(s?a=s(t,r):a=T.isURLSearchParams(t)?t.toString():new nd(t,r).toString(o),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}const gs=Symbol("internals");function $v(e){return e?e.length:0}function A0(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function ms(e,t){const n=e.handlers,r=$v(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(o,s){n[o.index]!==o.handler&&t.handlerEntries.delete(s)}):t.handlerEntries.clear()),t.handlersLength=r}class _0{constructor(){this.handlers=[],this[gs]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,n,r){const o={fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null},s=this[gs];this.handlers==null&&(this.handlers=[]),ms(this,s);const a=s.nextId++;return this.handlers.push(o),s.handlerEntries.set(a,{handler:o,index:this.handlers.length-1}),s.handlersLength=this.handlers.length,a}eject(t){const n=this[gs];ms(this,n);const r=n.handlerEntries.get(t);if(r){if(n.handlerEntries.delete(t),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,n.iterationDepth||(A0(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],ms(this,this[gs]))}forEach(t){const n=this[gs];ms(this,n),n.iterationDepth++;try{T.forEach(this.handlers,function(r){r!==null&&t(r)})}finally{--n.iterationDepth||(ms(this,n),A0(this.handlers),n.handlersLength=$v(this.handlers))}}}const rd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},D5=typeof URLSearchParams<"u"?URLSearchParams:nd,N5=typeof FormData<"u"?FormData:null,P5=typeof Blob<"u"?Blob:null,B5={isBrowser:!0,classes:{URLSearchParams:D5,FormData:N5,Blob:P5},protocols:["http","https","file","blob","url","data"]},od=typeof window<"u"&&typeof document<"u",fc=typeof navigator=="object"&&navigator||void 0,$5=od&&(!fc||["ReactNative","NativeScript","NS"].indexOf(fc.product)<0),R5=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",L5=od&&window.location.href||"http://localhost",F5=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:od,hasStandardBrowserEnv:$5,hasStandardBrowserWebWorkerEnv:R5,navigator:fc,origin:L5},Symbol.toStringTag,{value:"Module"})),Ct={...F5,...B5};function I5(e,t){return uu(e,new Ct.classes.URLSearchParams,{visitor:function(n,r,o,s){return Ct.isNode&&T.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}const S0=Nv;function Rv(e){if(e>S0)throw new ie("FormData field is too deeply nested ("+e+" levels). Max depth: "+S0,ie.ERR_FORM_DATA_DEPTH_EXCEEDED)}function M5(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(e))!==null;)Rv(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function j5(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return a=!a&&T.isArray(o)?o.length:a,u?(T.hasOwnProp(o,a)?o[a]=T.isArray(o[a])?o[a].concat(r):[o[a],r]:o[a]=r,!i):((!T.hasOwnProp(o,a)||!T.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],s)&&T.isArray(o[a])&&(o[a]=j5(o[a])),!i)}if(T.isFormData(e)&&T.isFunction(e.entries)){const n={};return T.forEachEntry(e,(r,o)=>{t(M5(r),o,n,0)}),n}return null}const Fv=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Eo=(e,t)=>e!=null&&T.hasOwnProp(e,t)?e[t]:void 0;function z5(e,t,n){if(T.isString(e))try{return(t||JSON.parse)(e),T.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const va={transitional:rd,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=T.isObject(e);if(o&&T.isHTMLForm(e)&&(e=new FormData(e)),T.isFormData(e))return r?JSON.stringify(Lv(e)):e;if(T.isArrayBuffer(e)||T.isBuffer(e)||T.isStream(e)||T.isFile(e)||T.isBlob(e)||T.isReadableStream(e))return e;if(T.isArrayBufferView(e))return e.buffer;if(T.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){const a=Eo(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return I5(e,a).toString();if((s=T.isFileList(e))||n.indexOf("multipart/form-data")>-1){const i=Eo(this,"env"),u=i&&i.FormData;return uu(s?{"files[]":e}:e,u&&new u,a)}}return o||r?(t.setContentType("application/json",!1),z5(e)):e}],transformResponse:[function(e){const t=Eo(this,"transitional")||va.transitional,n=t&&t.forcedJSONParsing,r=Eo(this,"responseType"),o=r==="json";if(T.isResponse(e)||T.isReadableStream(e))return e;if(e&&T.isString(e)&&(n&&!r||o)){const s=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,Eo(this,"parseReviver"))}catch(a){if(s)throw a.name==="SyntaxError"?ie.from(a,ie.ERR_BAD_RESPONSE,this,null,Eo(this,"response")):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ct.classes.FormData,Blob:Ct.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};T.forEach(Fv,e=>{va.headers[e]={}});function gl(e,t){const n=this||va,r=t||n,o=Lt.from(r.headers);let s=r.data;return T.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Iv(e){return!!(e&&e.__CANCEL__)}let ya=class extends ie{constructor(e,t,n){super(e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Mv(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ie("Request failed with status code "+n.status,n.status>=400&&n.status<500?ie.ERR_BAD_REQUEST:ie.ERR_BAD_RESPONSE,n.config,n.request,n))}const U5=/[\t\n\r]/g;function jv(e){if(typeof e!="string")return e;let t=0;for(;t{n=u,o=null,s&&(clearTimeout(s),s=null),e(...i)};return[(...i)=>{const u=Date.now(),c=u-n;c>=r?a(i,u):(o=i,s||(s=setTimeout(()=>{s=null,a(o)},r-c)))},()=>o&&a(o),(...i)=>a(i)]}const Ni=(e,t,n=3)=>{let r=0;const o=V5(50,250);return H5(s=>{if(!s||!T.isNumber(s.loaded))return;const a=s.loaded,i=s.lengthComputable?s.total:void 0,u=Math.max(0,i!=null?Math.min(a,i):a),c=Math.max(0,u-r),l=o(c);r=Math.max(r,u);const d={loaded:u,total:i,progress:i?u/i:void 0,bytes:c,rate:l||void 0,estimated:l&&i?(i-u)/l:void 0,event:s,lengthComputable:i!=null,[t?"download":"upload"]:!0};e(d)},n)},k0=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},T0=(e,t=T.asap)=>(...n)=>t(()=>e(...n)),G5=Ct.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ct.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ct.origin),Ct.navigator&&/(msie|trident)/i.test(Ct.navigator.userAgent)):()=>!0,W5=Ct.hasStandardBrowserEnv?{write(e,t,n,r,o,s,a){if(typeof document>"u")return;const i=[`${e}=${encodeURIComponent(t)}`];T.isNumber(n)&&i.push(`expires=${new Date(n).toUTCString()}`),T.isString(r)&&i.push(`path=${r}`),T.isString(o)&&i.push(`domain=${o}`),s===!0&&i.push("secure"),T.isString(a)&&i.push(`SameSite=${a}`),document.cookie=i.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const X5=/^https?:(?!\/\/)/i;function Z5(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,r="")=>`${n}${r}${Di}`)}function Y5(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Di}@`),n=t.indexOf("#"),r=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Di}`);return n===-1?r:`${r}#${Z5(t.slice(n+1))}`}function O0(e,t){if(typeof e=="string"){const n=jv(e);if(X5.test(n))throw new ie(`Invalid URL ${JSON.stringify(Y5(n))}: missing "//" after protocol`,ie.ERR_INVALID_URL,t)}}function zv(e,t,n,r){O0(t,r);let o=!q5(t);return e&&(o||n===!1)?(O0(e,r),K5(e,t)):t}const D0=e=>e instanceof Lt?{...e}:e,J5=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function io(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(l,d,p,h){return T.isPlainObject(l)&&T.isPlainObject(d)?T.merge.call({caseless:h},l,d):T.isPlainObject(d)?T.merge({},d):T.isArray(d)?d.slice():d}function o(l,d,p,h){if(T.isUndefined(d)){if(!T.isUndefined(l))return r(void 0,l,p,h)}else return r(l,d,p,h)}function s(l,d){if(!T.isUndefined(d))return r(void 0,d)}function a(l,d){if(T.isUndefined(d)){if(!T.isUndefined(l))return r(void 0,l)}else return r(void 0,d)}function i(l){const d=T.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!T.isUndefined(d))if(T.isPlainObject(d)){if(T.hasOwnProp(d,l))return d[l]}else return;const p=T.hasOwnProp(e,"transitional")?e.transitional:void 0;if(T.isPlainObject(p)&&T.hasOwnProp(p,l))return p[l]}function u(l,d,p){if(T.hasOwnProp(t,p))return r(l,d);if(T.hasOwnProp(e,p))return r(void 0,l)}const c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutErrorMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:u,headers:(l,d,p)=>o(D0(l),D0(d),p,!0)};return T.forEach(J5({...e,...t}),function(l){if(l==="__proto__"||l==="constructor"||l==="prototype")return;const d=T.hasOwnProp(c,l)?c[l]:o,p=T.hasOwnProp(e,l)?e[l]:void 0,h=T.hasOwnProp(t,l)?t[l]:void 0,g=d(p,h,l);T.isUndefined(g)&&d!==u||(n[l]=g)}),T.hasOwnProp(t,"validateStatus")&&T.isUndefined(t.validateStatus)&&i("validateStatusUndefinedResolves")===!1&&(T.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const Q5=["content-type","content-length"];function eT(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,o])=>{Q5.includes(r.toLowerCase())&&e.set(r,o)})}const tT=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function Uv(e){const t=io({},e),n=p=>T.hasOwnProp(t,p)?t[p]:void 0,r=n("data");let o=n("withXSRFToken");const s=n("xsrfHeaderName"),a=n("xsrfCookieName");let i=n("headers");const u=n("auth"),c=n("baseURL"),l=n("allowAbsoluteUrls"),d=n("url");if(t.headers=i=Lt.from(i),t.url=Bv(zv(c,d,l,t),n("params"),n("paramsSerializer")),u){const p=T.getSafeProp(u,"username")||"",h=T.getSafeProp(u,"password")||"";try{i.set("Authorization","Basic "+btoa(p+":"+(h?tT(h):"")))}catch(g){throw ie.from(g,ie.ERR_BAD_OPTION_VALUE,e)}}if(T.isFormData(r)){const p=T.getSafeProp(r,"getHeaders");Ct.hasStandardBrowserEnv||Ct.hasStandardBrowserWebWorkerEnv||T.isReactNative(r)?i.setContentType(void 0):T.isFunction(p)&&eT(i,p.call(r),n("formDataHeaderPolicy"))}if(Ct.hasStandardBrowserEnv&&(T.isFunction(o)&&(o=o(t)),o===!0||o==null&&G5(t.url))){const p=s&&a&&W5.read(a);p&&i.set(s,p)}return t}const nT=typeof XMLHttpRequest<"u",rT=nT&&function(e){return new Promise(function(t,n){const r=Uv(e);let o=r.data;const s=Lt.from(r.headers).normalize();let{responseType:a,onUploadProgress:i,onDownloadProgress:u}=r,c,l,d,p,h,g;function f(){p&&p(),h&&h(),r.cancelToken&&r.cancelToken.unsubscribe(c),r.signal&&r.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout;function y(E){if(!m)return;if(m.status===0&&(ml(jv(r.url))||ml(Ct.origin))!=="file"&&!(m.responseURL&&m.responseURL.startsWith("file:"))){n(new ie("Request aborted",ie.ECONNABORTED,e,m)),f(),m=null;return}try{E?g&&g(E):h&&h()}catch(D){setTimeout(()=>{throw D})}if(!m)return;const C=Lt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),_={data:!a||a==="text"||a==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:C,config:e,request:m};Mv(function(D){t(D),f()},function(D){n(D),f()},_),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.startsWith("file:"))||setTimeout(y)},m.onabort=function(){m&&(n(new ie("Request aborted",ie.ECONNABORTED,e,m)),f(),m=null)},m.onerror=function(E){const C=E&&E.message?E.message:"Network Error",_=new ie(C,ie.ERR_NETWORK,e,m);_.event=E||null,n(_),f(),m=null},m.ontimeout=function(){let E=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const C=r.transitional||rd;r.timeoutErrorMessage&&(E=r.timeoutErrorMessage),n(new ie(E,C.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,m)),f(),m=null},o===void 0&&s.setContentType(null),"setRequestHeader"in m&&T.forEach(Ov(s),function(E,C){m.setRequestHeader(C,E)}),T.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),a&&a!=="json"&&(m.responseType=r.responseType),u&&([d,h,g]=Ni(u,!0),m.addEventListener("progress",d)),i&&m.upload&&([l,p]=Ni(i),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",p)),(r.cancelToken||r.signal)&&(c=E=>{m&&(n(!E||E.type?new ya(null,e,m):E),m.abort(),f(),m=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const v=ml(r.url);if(v&&!Ct.protocols.includes(v)){n(new ie("Unsupported protocol "+v+":",ie.ERR_BAD_REQUEST,e)),f();return}m.send(o||null)})},oT=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(u){if(!r){r=!0,a();const c=u instanceof Error?u:this.reason;n.abort(c instanceof ie?c:new ya(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{s=null,o(new ie(`timeout of ${t}ms exceeded`,ie.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>{if(!r){if(u.aborted){o.call(u);return}u.addEventListener("abort",o,{once:!0})}});const{signal:i}=n;return i.unsubscribe=()=>T.asap(a),i},sT=function*(e,t){let n=e.byteLength;if(n{const o=aT(e,t);let s=0,a,i=u=>{a||(a=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:l}=await o.next();if(c){i(),u.close();return}let d=l.byteLength;if(n){let p=s+=d;n(p)}u.enqueue(new Uint8Array(l))}catch(c){throw i(c),c}},cancel(u){return i(u),o.return()}},{highWaterMark:2})},P0=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Vv=(e,t,n)=>t+2e<=57?e-48:(e&223)-55,uT=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,lT=e=>e===9||e===10||e===12||e===13||e===32,cT=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},dT=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},pT=e=>{const t=e.length;let n=0,r=0,o=!1;for(let s=0;s0){o=!0;continue}n++}}return o||r>2||r>0&&(n+r)%4!==0||n%4===1?dT(e):cT(n)},hT=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),o=e.slice(n+1);if(/;base64/i.test(r))return t(o);let s=0;for(let a=0,i=o.length;a=55296&&u<=56319&&a+1=56320&&c<=57343?(s+=4,a++):s+=3}else s+=3}return s};function fT(e){const t=typeof e=="string"?e.indexOf("#"):-1;return hT(t===-1?e:e.slice(0,t),pT)}const sd="1.20.0",$0=64*1024,gT={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Ma}=T,mT=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),R0=e=>{if(!T.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},L0=(e,...t)=>{try{return!!e(...t)}catch{return!1}},vT=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},yT=e=>{const t=T.global!==void 0&&T.global!==null?T.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=T.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:s,Response:a}=e,i=o?Ma(o):typeof fetch=="function",u=Ma(s),c=Ma(a);if(!i)return!1;const l=i&&Ma(n),d=i&&(typeof r=="function"?(y=>v=>y.encode(v))(new r):async y=>new Uint8Array(await new s(y).arrayBuffer())),p=u&&l&&L0(()=>{let y=!1;const v=new s(Ct.origin,{body:new n,method:"POST",get duplex(){return y=!0,"half"}}),E=v.headers.has("Content-Type");return v.body!=null&&v.body.cancel(),y&&!E}),h=c&&l&&L0(()=>T.isReadableStream(new a("").body)),g={stream:h&&(y=>y.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!g[y]&&(g[y]=(v,E)=>{let C=v&&v[y];if(C)return C.call(v);throw new ie(`Response type '${y}' is not supported`,ie.ERR_NOT_SUPPORT,E)})});const f=async y=>{if(y==null)return 0;if(T.isBlob(y))return y.size;if(T.isSpecCompliantForm(y))return(await new s(Ct.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(T.isArrayBufferView(y)||T.isArrayBuffer(y))return y.byteLength;if(T.isURLSearchParams(y)&&(y=y+""),T.isString(y))return(await d(y)).byteLength},m=async(y,v)=>T.toFiniteNumber(y.getContentLength())??f(v);return async y=>{let{url:v,method:E,data:C,signal:_,cancelToken:D,timeout:R,onDownloadProgress:Z,onUploadProgress:I,responseType:P,headers:oe,withCredentials:O="same-origin",fetchOptions:S,maxContentLength:G,maxBodyLength:ne,maxRedirects:Q}=Uv(y);const Y=T.isNumber(G)&&G>-1,ee=T.isNumber(ne)&&ne>-1,J=A=>T.hasOwnProp(y,A)?y[A]:void 0;let te=o||fetch;P=P?(P+"").toLowerCase():"text";let re=oT([_,D&&D.toAbortSignal()],R),me=null;const _e=re&&re.unsubscribe&&(()=>{re.unsubscribe()});let we,Se=null;const Fe=()=>new ie("Request body larger than maxBodyLength limit",ie.ERR_BAD_REQUEST,y,me);try{let A;const B=J("auth");if(B){const V=T.getSafeProp(B,"username")||"",K=T.getSafeProp(B,"password")||"";A={username:V,password:K}}if(vT(v)){const V=new URL(v,Ct.origin);if(!A&&(V.username||V.password)){const K=R0(V.username),W=R0(V.password);A={username:K,password:W}}(V.username||V.password)&&(V.username="",V.password="",v=V.href)}if(A&&(oe.delete("authorization"),oe.set("Authorization","Basic "+btoa(mT((A.username||"")+":"+(A.password||""))))),Y&&typeof v=="string"&&v.startsWith("data:")&&fT(v)>G)throw new ie("maxContentLength size of "+G+" exceeded",ie.ERR_BAD_RESPONSE,y,me);if(ee&&E!=="get"&&E!=="head"){const V=await f(C);if(typeof V=="number"&&isFinite(V)&&(we=V,V>ne))throw Fe()}const L=ee&&(T.isReadableStream(C)||T.isStream(C)),z=(V,K,W)=>N0(V,$0,ce=>{if(ee&&ce>ne)throw Se=Fe();K&&K(ce)},W);if(p&&E!=="get"&&E!=="head"&&(I||L)){if(we=we??await m(oe,C),we!==0||L){let V=new s(v,{method:"POST",body:C,duplex:"half"}),K;if(T.isFormData(C)&&(K=V.headers.get("content-type"))&&oe.setContentType(K),V.body){const[W,ce]=I&&k0(we,Ni(T0(I)))||[];C=z(V.body,W,ce)}}}else if(L&&!u&&l&&E!=="get"&&E!=="head")C=z(C);else if(L&&u&&!p&&E!=="get"&&E!=="head")throw new ie("Stream request bodies are not supported by the current fetch implementation",ie.ERR_NOT_SUPPORT,y,me);T.isString(O)||(O=O?"include":"omit");const b=u&&"credentials"in s.prototype;if(T.isFormData(C)){const V=oe.getContentType();V&&/^multipart\/form-data/i.test(V)&&!/boundary=/i.test(V)&&oe.delete("content-type")}oe.set("User-Agent","axios/"+sd,!1);const x=S==null?S:Object.assign(Object.create(null),S);x&&(delete x.body,delete x.headers,delete x.method,delete x.signal,delete x.duplex,delete x.credentials);const k=Object.assign(Object.create(null),x,{signal:re,method:E.toUpperCase(),headers:Ov(oe.normalize()),body:C,duplex:"half",credentials:b?O:void 0});u&&(T.forEach(gT,(V,K)=>{k[K]===void 0&&(k[K]=V)}),k.signal===void 0&&(k.signal=null),k.body===void 0&&(k.body=null)),Q===0&&(k.redirect="manual",x&&(x.redirect="manual")),me=u&&new s(v,k);let N=await(u?te(me,x):te(v,k));const U=Lt.from(N.headers);if(Y){const V=T.toFiniteNumber(U.getContentLength());if(V!=null&&V>G)throw new ie("maxContentLength size of "+G+" exceeded",ie.ERR_BAD_RESPONSE,y,me)}const M=h&&(P==="stream"||P==="response");if(h&&N.body&&(Z||Y||M&&_e)){const V={};["status","statusText","headers"].forEach(ve=>{V[ve]=N[ve]});const K=T.toFiniteNumber(U.getContentLength()),[W,ce]=Z&&k0(K,Ni(T0(Z),!0))||[];let de=0;const fe=ve=>{if(Y&&(de=ve,de>G))throw new ie("maxContentLength size of "+G+" exceeded",ie.ERR_BAD_RESPONSE,y,me);W&&W(ve)};N=new a(N0(N.body,$0,fe,()=>{ce&&ce(),_e&&_e()}),V)}P=P||"text";let q=await g[T.findKey(g,P)||"text"](N,y);if(Y&&!h&&!M){let V;if(q!=null&&(typeof q.byteLength=="number"?V=q.byteLength:typeof q.size=="number"?V=q.size:typeof q=="string"&&(V=typeof r=="function"?new r().encode(q).byteLength:q.length)),typeof V=="number"&&V>G)throw new ie("maxContentLength size of "+G+" exceeded",ie.ERR_BAD_RESPONSE,y,me)}return!M&&_e&&_e(),await new Promise((V,K)=>{Mv(V,K,{data:q,headers:Lt.from(N.headers),status:N.status,statusText:N.statusText,config:y,request:me})})}catch(A){if(_e&&_e(),re&&re.aborted&&re.reason instanceof ie){const B=re.reason;throw B.config=y,me&&(B.request=me),A!==B&&Object.defineProperty(B,"cause",{__proto__:null,value:A,writable:!0,enumerable:!1,configurable:!0}),B}if(Se)throw me&&!Se.request&&(Se.request=me),Se;if(A instanceof ie)throw me&&!A.request&&(A.request=me),A;if(A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)){const B=new ie("Network Error",ie.ERR_NETWORK,y,me,A&&A.response);throw Object.defineProperty(B,"cause",{__proto__:null,value:A.cause||A,writable:!0,enumerable:!1,configurable:!0}),B}throw ie.from(A,A&&A.code,y,me,A&&A.response)}}},bT=new Map,Hv=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let a=s.length,i=a,u,c,l=bT;for(;i--;)u=s[i],c=l.get(u),c===void 0&&l.set(u,c=i?new Map:yT(t)),l=c;return c};Hv();const ad={http:S5,xhr:rT,fetch:{get:Hv}};T.forEach(ad,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const F0=e=>`- ${e}`,ET=e=>T.isFunction(e)||e===null||e===!1;function wT(e,t){e=T.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let a=0;a`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=n?a.length>1?`since : -`+a.map(F0).join(` -`):" "+F0(a[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+i,ie.ERR_NOT_SUPPORT)}return o}const Gv={getAdapter:wT,adapters:ad};function vl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ya(null,e)}function yl(e){const t=T.toSafeFlatObject(e);return vl(t),t.headers=Lt.from(T.getSafeProp(t,"headers")),t.data=gl.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Gv.getAdapter(t.adapter||va.adapter,t)(t).then(function(n){vl(t),t.response=n;try{n.data=gl.call(t,t.transformResponse,n)}finally{delete t.response}return n.headers=Lt.from(n.headers),n},function(n){if(!Iv(n)&&(vl(t),n&&n.response)){t.response=n.response;try{n.response.data=gl.call(t,t.transformResponse,n.response)}finally{delete t.response}n.response.headers=Lt.from(n.response.headers)}return Promise.reject(n)})}const Pi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Pi[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const I0={};Pi.transitional=function(e,t,n){function r(o,s){return"[Axios v"+sd+"] Transitional option '"+o+"'"+s+(n?". "+n:"")}return(o,s,a)=>{if(e===!1)throw new ie(r(s," has been removed"+(t?" in "+t:"")),ie.ERR_DEPRECATED);return t&&!I0[s]&&(I0[s]=!0,console.warn(r(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,s,a):!0}},Pi.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function CT(e,t,n){if(typeof e!="object"||e===null)throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],a=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(a){const i=e[s],u=i===void 0||a(i,s,e);if(u!==!0)throw new ie("option "+s+" must be "+u,ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ie("Unknown option "+s,ie.ERR_BAD_OPTION)}}const Xa={assertOptions:CT,validators:Pi},kt=Xa.validators;let no=class{constructor(e){this.defaults=e||{},this.interceptors={request:new _0,response:new _0}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error)try{let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=r.stack;let s="";if(typeof o=="string"){const a=o.indexOf(` +`}let As=null;async function mk(e){if(As)return As;const t=(await hk().search("/",{details:!0,data:gk(e)})).data.results;return As={nodes:t.map(n=>fk(n)).filter(n=>n.type==="file").slice(0,fc),truncated:t.length>fc},As}function vk(){As=null}function yk(e,t){return e.filter(n=>t.includes(n.mime??""))}function bv(e,t){return function(){return e.apply(t,arguments)}}const{toString:bk}=Object.prototype,{getPrototypeOf:Fr}=Object,{iterator:ga,toStringTag:Ev}=Symbol,oa=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),wv=e=>typeof e=="string"&&(e==="__proto__"||e==="constructor"||e==="prototype"),Cv=(e,t,n)=>e===Object.prototype||!n&&t===null,Ek=e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(n=>{if(wv(n))return!1;const r=Object.getOwnPropertyDescriptor(e,n);return!!r&&r.configurable&&r.writable===!0})},sa=(e,t)=>{let n=e;const r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);const o=Fr(n);if(Cv(n,o,n===e))return!1;if(oa(n,t))return!0;n=o}return!1},wk=(e,t)=>e!=null&&sa(e,t)?e[t]:void 0,Ck=e=>{if(e==null||typeof e!="object"&&typeof e!="function")return e;const t=Fr(e);if(t===null&&Ek(e))return e;const n=Object.create(null),r=Object.create(null),o=[];let s=e;for(;s!=null&&o.indexOf(s)===-1;){o.push(s);const a=s===e?t:Fr(s);if(Cv(s,a,s===e))break;const i=Object.getOwnPropertyNames(s);Object.getOwnPropertySymbols&&i.push(...Object.getOwnPropertySymbols(s));for(const u of i)wv(u)||oa(r,u)||(n[u]=e[u],r[u]=!0);s=a}return n},nd=(e=>t=>{const n=bk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),vn=e=>(e=e.toLowerCase(),t=>nd(t)===e),cu=e=>t=>typeof t===e,{isArray:uo}=Array,lo=cu("undefined");function Ko(e){return e!==null&&!lo(e)&&e.constructor!==null&&!lo(e.constructor)&&Jt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xv=vn("ArrayBuffer");function xk(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&xv(e.buffer),t}const Ak=cu("string"),Jt=cu("function"),Av=cu("number"),Xo=e=>e!==null&&typeof e=="object",_k=e=>e===!0||e===!1,Ka=e=>{if(!Xo(e))return!1;const t=Fr(e);return(t===null||t===Object.prototype||Fr(t)===null)&&!sa(e,Ev)&&!sa(e,ga)},Sk=e=>{if(!Xo(e)||Ko(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},kk=vn("Date"),Tk=vn("File"),Ok=e=>!!(e&&typeof e.uri<"u"),Dk=e=>e&&typeof e.getParts<"u",Nk=vn("Blob"),Pk=vn("FileList"),Bk=vn("Set"),$k=e=>Xo(e)&&Jt(e.pipe);function Rk(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof er<"u"?er:{}}const E0=Rk(),w0=typeof E0.FormData<"u"?E0.FormData:void 0,Fk=e=>{if(!e)return!1;if(w0&&e instanceof w0)return!0;const t=Fr(e);if(!t||t===Object.prototype||!Jt(e.append))return!1;const n=nd(e);return n==="formdata"||n==="object"&&Jt(e.toString)&&e.toString()==="[object FormData]"},Lk=vn("URLSearchParams"),[Ik,Mk,jk,zk]=["ReadableStream","Request","Response","Headers"].map(vn),Uk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ma(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),uo(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const to=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:er,Sv=e=>!lo(e)&&e!==to;function gc(...e){const{caseless:t,skipUndefined:n}=Sv(this)&&this||{},r={},o=(s,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const i=t&&typeof a=="string"&&_v(r,a)||a,u=oa(r,i)?r[i]:void 0;Ka(u)&&Ka(s)?r[i]=gc(u,s):Ka(s)?r[i]=gc({},s):uo(s)?r[i]=s.slice():(!n||!lo(s))&&(r[i]=s)};for(let s=0,a=e.length;s(ma(t,(o,s)=>{n&&Jt(o)?Object.defineProperty(e,s,{__proto__:null,value:bv(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Hk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Gk=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Wk=(e,t,n,r)=>{let o,s,a;const i={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)a=o[s],(!r||r(a,e,t))&&!i[a]&&(t[a]=e[a],i[a]=!0);e=n!==!1&&Fr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qk=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Kk=e=>{if(!e)return null;if(uo(e))return e;let t=e.length;if(!Av(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Xk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Fr(Uint8Array)),Zk=(e,t)=>{const n=(e&&e[ga]).call(e);let r;for(;(r=n.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},Yk=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Jk=vn("HTMLFormElement"),Qk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),{propertyIsEnumerable:e5}=Object.prototype,t5=vn("RegExp"),kv=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ma(n,(o,s)=>{let a;(a=t(o,s,e))!==!1&&(r[s]=a||o)}),Object.defineProperties(e,r)},n5=e=>{kv(e,(t,n)=>{if(Jt(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(Jt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},r5=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return uo(e)?r(e):r(String(e).split(t)),n},o5=()=>{},s5=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function a5(e){return!!(e&&Jt(e.append)&&e[Ev]==="FormData"&&e[ga])}const i5=e=>{const t=new WeakSet,n=r=>{if(Xo(r)){if(t.has(r))return;if(Ko(r))return r;if(!("toJSON"in r)){t.add(r);let o;if(Bk(r)){o=[];for(const s of r){const a=n(s);!lo(a)&&o.push(a)}}else o=uo(r)?[]:{},ma(r,(s,a)=>{const i=n(s);!lo(i)&&(o[a]=i)});return t.delete(r),o}}return r};return n(e)},u5=vn("AsyncFunction"),l5=e=>e&&(Xo(e)||Jt(e))&&Jt(e.then)&&Jt(e.catch),Tv=((e,t)=>e?setImmediate:t?((n,r)=>(to.addEventListener("message",({source:o,data:s})=>{o===to&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),to.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Jt(to.postMessage)),c5=typeof queueMicrotask<"u"?queueMicrotask.bind(to):typeof ro<"u"&&ro.nextTick||Tv,Ov=e=>e!=null&&Jt(e[ga]),d5=e=>e!=null&&sa(e,ga)&&Ov(e),T={isArray:uo,isArrayBuffer:xv,isBuffer:Ko,isFormData:Fk,isArrayBufferView:xk,isString:Ak,isNumber:Av,isBoolean:_k,isObject:Xo,isPlainObject:Ka,isEmptyObject:Sk,isReadableStream:Ik,isRequest:Mk,isResponse:jk,isHeaders:zk,isUndefined:lo,isDate:kk,isFile:Tk,isReactNativeBlob:Ok,isReactNative:Dk,isBlob:Nk,isRegExp:t5,isFunction:Jt,isStream:$k,isURLSearchParams:Lk,isTypedArray:Xk,isFileList:Pk,forEach:ma,merge:gc,extend:Vk,trim:Uk,stripBOM:Hk,inherits:Gk,toFlatObject:Wk,kindOf:nd,kindOfTest:vn,endsWith:qk,toArray:Kk,forEachEntry:Zk,matchAll:Yk,isHTMLForm:Jk,hasOwnProperty:oa,hasOwnProp:oa,hasOwnInPrototypeChain:sa,getSafeProp:wk,toSafeFlatObject:Ck,reduceDescriptors:kv,freezeMethods:n5,toObjectSet:r5,toCamelCase:Qk,noop:o5,toFiniteNumber:s5,findKey:_v,global:to,isContextDefined:Sv,isSpecCompliantForm:a5,toJSONObject:i5,isAsyncFn:u5,isThenable:l5,setImmediate:Tv,asap:c5,isIterable:Ov,isSafeIterable:d5},p5=T.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),h5=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim();const a=T.hasOwnProp(t,n);!n||a&&T.hasOwnProp(p5,n)||(n==="set-cookie"?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+", "+r:r)}),t};function f5(e){let t=0,n=e.length;for(;tt;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const g5=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),m5=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function rd(e,t){return T.isArray(e)?e.map(n=>rd(n,t)):f5(String(e).replace(t,""))}const v5=e=>rd(e,g5),y5=e=>rd(e,m5);function Dv(e){const t=Object.create(null);return T.forEach(e.toJSON(),(n,r)=>{t[r]=y5(n)}),t}const C0=Symbol("internals");function gs(e){return e&&String(e).trim().toLowerCase()}function Xa(e){return e===!1||e==null?e:T.isArray(e)?e.map(Xa):v5(String(e))}function b5(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const E5=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function gl(e){let t=0,n=e.length;for(;tt;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function w5(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let r=1;r=t))return e;n+=e[r]}return n}function C5(e){const t=Object.create(null),n=String(e);let r=0,o=!1,s=!1;function a(i){const u=gl(n.slice(r,i)),c=u.indexOf("=");if(c<1)return;const l=gl(u.slice(0,c));if(!E5.test(l))return;const d=l.toLowerCase();if(d==="__proto__"||d==="constructor"||d==="prototype")return;const p=gl(u.slice(c+1));t[d]=w5(p)}for(let i=0;i/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ml(e,t,n,r,o){if(T.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!T.isString(t)){if(T.isString(r))return t.indexOf(r)!==-1;if(T.isRegExp(r))return r.test(t)}}function A5(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function _5(e,t){const n=T.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(o,s,a){return this[r].call(this,t,o,s,a)},configurable:!0})})}let Ft=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(a,i,u){const c=gs(i);if(!c)return;const l=T.findKey(r,c);(!l||r[l]===void 0||u===!0||u===void 0&&r[l]!==!1)&&(r[l||i]=Xa(a))}const s=(a,i)=>T.forEach(a,(u,c)=>o(u,c,i));if(T.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(T.isString(e)&&(e=e.trim())&&!x5(e))s(h5(e),t);else if(T.isObject(e)&&T.isSafeIterable(e)){let a=Object.create(null),i,u;for(const c of e){if(!T.isArray(c))throw new TypeError("Object iterator must return a key-value pair");u=c[0],T.hasOwnProp(a,u)?(i=a[u],a[u]=T.isArray(i)?[...i,c[1]]:[i,c[1]]):a[u]=c[1]}s(a,t)}else e!=null&&o(t,e,n);return this}get(e,t){if(e=gs(e),e){const n=T.findKey(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return b5(r);if(T.isFunction(t))return t.call(this,r,n);if(T.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=gs(e),e){const n=T.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||ml(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let r=!1;function o(s){if(s=gs(s),s){const a=T.findKey(n,s);a&&(!t||ml(n,n[a],a,t))&&(delete n[a],r=!0)}}return T.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];(!e||ml(this,this[o],o,e,!0))&&(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return T.forEach(this,(r,o)=>{const s=T.findKey(n,o);if(s){t[s]=Xa(r),delete t[o];return}const a=e?A5(o):String(o).trim();a!==o&&delete t[o],t[a]=Xa(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return T.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&T.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(` +`)}getSetCookie(){const e=this.get("set-cookie");return T.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return C5(e)}static concat(e,...t){const n=new this(e);return t.forEach(r=>n.set(r)),n}static accessor(e){const t=(this[C0]=this[C0]={accessors:{}}).accessors,n=this.prototype;function r(o){const s=gs(o);t[s]||(_5(n,o),t[s]=!0)}return T.isArray(e)?e.forEach(r):r(e),this}};Ft.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),T.reduceDescriptors(Ft.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),T.freezeMethods(Ft);const Pi="[REDACTED ****]";function S5(e){if(T.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(T.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function k5(e,t){const n=new Set(t.map(s=>String(s).toLowerCase())),r=[],o=s=>{if(s===null||typeof s!="object"||T.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof Ft&&(s=s.toJSON()),r.push(s);let a;if(T.isArray(s))a=[],s.forEach((i,u)=>{const c=o(i);T.isUndefined(c)||(a[u]=c)});else{if(!T.isPlainObject(s)&&S5(s))return r.pop(),s;a=Object.create(null);for(const[i,u]of Object.entries(s)){const c=n.has(i.toLowerCase())?Pi:o(u);T.isUndefined(c)||(a[i]=c)}}return r.pop(),a};return o(e)}function x0(e){try{return String(e)}catch{return""}}function T5(e){return e.errors.map(t=>{try{return t&&t.message?x0(t.message):x0(t)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let ie=class Nv extends Error{static from(t,n,r,o,s,a){let i=t.message;!i&&T.isArray(t.errors)&&t.errors.length&&(i=T5(t));const u=new Nv(i,n||t.code,r,o,s);return Object.defineProperty(u,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),u.name=t.name,t.status!=null&&u.status==null&&(u.status=t.status),a&&Object.assign(u,a),u}constructor(t,n,r,o,s){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s,this.status=s.status)}toJSON(){const t=this.config,n=t&&T.hasOwnProp(t,"redact")?t.redact:void 0,r=T.isArray(n)&&n.length>0?k5(t,n):T.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};ie.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ie.ERR_BAD_OPTION="ERR_BAD_OPTION",ie.ECONNABORTED="ECONNABORTED",ie.ETIMEDOUT="ETIMEDOUT",ie.ECONNREFUSED="ECONNREFUSED",ie.ERR_NETWORK="ERR_NETWORK",ie.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ie.ERR_DEPRECATED="ERR_DEPRECATED",ie.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ie.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ie.ERR_CANCELED="ERR_CANCELED",ie.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ie.ERR_INVALID_URL="ERR_INVALID_URL",ie.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const O5=null,Pv=100;function mc(e){return T.isPlainObject(e)||T.isArray(e)}function Bv(e){return T.endsWith(e,"[]")?e.slice(0,-2):e}function vl(e,t,n){return e?e.concat(t).map(function(r,o){return r=Bv(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function D5(e){return T.isArray(e)&&!e.some(mc)}const N5=T.toFlatObject(T,{},null,function(e){return/^is[A-Z]/.test(e)});function du(e,t,n){if(!T.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(v,E)=>{const C=T.getSafeProp(n,v);return T.isUndefined(C)?E:C},o=r("metaTokens",!0),s=r("visitor")||f,a=r("dots",!1),i=r("indexes",!1),u=r("Blob")||typeof Blob<"u"&&Blob,c=r("maxDepth",Pv),l=u&&T.isSpecCompliantForm(t),d=[];if(!T.isFunction(s))throw new TypeError("visitor must be a function");function p(v){if(v===null)return"";if(T.isDate(v))return v.toISOString();if(T.isBoolean(v))return v.toString();if(!l&&T.isBlob(v))throw new ie("Blob is not supported. Use a Buffer instead.");if(T.isArrayBuffer(v)||T.isTypedArray(v)){if(l&&typeof u=="function")return new u([v]);throw new ie("Blob is not supported. Use a Buffer instead.",ie.ERR_NOT_SUPPORT)}return v}function h(v){if(v>c)throw new ie("Object is too deeply nested ("+v+" levels). Max depth: "+c,ie.ERR_FORM_DATA_DEPTH_EXCEEDED)}function g(v,E){if(c===1/0)return JSON.stringify(v);const C=[];return JSON.stringify(v,function(_,D){if(!T.isObject(D))return D;for(;C.length&&C[C.length-1]!==this;)C.pop();return C.push(D),h(E+C.length-1),D})}function f(v,E,C){let _=v;if(T.isReactNative(t)&&T.isReactNativeBlob(v))return t.append(vl(C,E,a),p(v)),!1;if(v&&!C&&typeof v=="object"){if(T.endsWith(E,"{}"))E=o?E:E.slice(0,-2),v=g(v,1);else if(T.isArray(v)&&D5(v)||(T.isFileList(v)||T.endsWith(E,"[]"))&&(_=T.toArray(v)))return E=Bv(E),_.forEach(function(D,R){!(T.isUndefined(D)||D===null)&&t.append(i===!0?vl([E],R,a):i===null?E:E+"[]",p(D))}),!1}return mc(v)?!0:(t.append(vl(C,E,a),p(v)),!1)}const m=Object.assign(N5,{defaultVisitor:f,convertValue:p,isVisitable:mc});function y(v,E,C=0){if(!T.isUndefined(v)){if(h(C),d.indexOf(v)!==-1)throw new Error("Circular reference detected in "+E.join("."));d.push(v),T.forEach(v,function(_,D){(!(T.isUndefined(_)||_===null)&&s.call(t,_,T.isString(D)?D.trim():D,E,m))===!0&&y(_,E?E.concat(D):[D],C+1)}),d.pop()}}if(!T.isObject(e))throw new TypeError("data must be an object");return y(e),t}function A0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(n){return t[n]})}function od(e,t){this._pairs=[],e&&du(e,this,t)}const _0=od.prototype;_0.append=function(e,t){this._pairs.push([e,t])},_0.toString=function(e){const t=e?n=>e.call(this,n,A0):A0;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function P5(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function $v(e,t,n){if(!t)return e;e=e||"";const r=T.isFunction(n)?{serialize:n}:n,o=T.getSafeProp(r,"encode")||P5,s=T.getSafeProp(r,"serialize");let a;if(s?a=s(t,r):a=T.isURLSearchParams(t)?t.toString():new od(t,r).toString(o),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}const ms=Symbol("internals");function Rv(e){return e?e.length:0}function S0(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function vs(e,t){const n=e.handlers,r=Rv(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(o,s){n[o.index]!==o.handler&&t.handlerEntries.delete(s)}):t.handlerEntries.clear()),t.handlersLength=r}class k0{constructor(){this.handlers=[],this[ms]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,n,r){const o={fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null},s=this[ms];this.handlers==null&&(this.handlers=[]),vs(this,s);const a=s.nextId++;return this.handlers.push(o),s.handlerEntries.set(a,{handler:o,index:this.handlers.length-1}),s.handlersLength=this.handlers.length,a}eject(t){const n=this[ms];vs(this,n);const r=n.handlerEntries.get(t);if(r){if(n.handlerEntries.delete(t),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,n.iterationDepth||(S0(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],vs(this,this[ms]))}forEach(t){const n=this[ms];vs(this,n),n.iterationDepth++;try{T.forEach(this.handlers,function(r){r!==null&&t(r)})}finally{--n.iterationDepth||(vs(this,n),S0(this.handlers),n.handlersLength=Rv(this.handlers))}}}const sd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},B5=typeof URLSearchParams<"u"?URLSearchParams:od,$5=typeof FormData<"u"?FormData:null,R5=typeof Blob<"u"?Blob:null,F5={isBrowser:!0,classes:{URLSearchParams:B5,FormData:$5,Blob:R5},protocols:["http","https","file","blob","url","data"]},ad=typeof window<"u"&&typeof document<"u",vc=typeof navigator=="object"&&navigator||void 0,L5=ad&&(!vc||["ReactNative","NativeScript","NS"].indexOf(vc.product)<0),I5=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",M5=ad&&window.location.href||"http://localhost",j5=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ad,hasStandardBrowserEnv:L5,hasStandardBrowserWebWorkerEnv:I5,navigator:vc,origin:M5},Symbol.toStringTag,{value:"Module"})),Ct={...j5,...F5};function z5(e,t){return du(e,new Ct.classes.URLSearchParams,{visitor:function(n,r,o,s){return Ct.isNode&&T.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}const T0=Pv;function Fv(e){if(e>T0)throw new ie("FormData field is too deeply nested ("+e+" levels). Max depth: "+T0,ie.ERR_FORM_DATA_DEPTH_EXCEEDED)}function U5(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(e))!==null;)Fv(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function V5(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return a=!a&&T.isArray(o)?o.length:a,u?(T.hasOwnProp(o,a)?o[a]=T.isArray(o[a])?o[a].concat(r):[o[a],r]:o[a]=r,!i):((!T.hasOwnProp(o,a)||!T.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],s)&&T.isArray(o[a])&&(o[a]=V5(o[a])),!i)}if(T.isFormData(e)&&T.isFunction(e.entries)){const n={};return T.forEachEntry(e,(r,o)=>{t(U5(r),o,n,0)}),n}return null}const Iv=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),xo=(e,t)=>e!=null&&T.hasOwnProp(e,t)?e[t]:void 0;function H5(e,t,n){if(T.isString(e))try{return(t||JSON.parse)(e),T.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const va={transitional:sd,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=T.isObject(e);if(o&&T.isHTMLForm(e)&&(e=new FormData(e)),T.isFormData(e))return r?JSON.stringify(Lv(e)):e;if(T.isArrayBuffer(e)||T.isBuffer(e)||T.isStream(e)||T.isFile(e)||T.isBlob(e)||T.isReadableStream(e))return e;if(T.isArrayBufferView(e))return e.buffer;if(T.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){const a=xo(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return z5(e,a).toString();if((s=T.isFileList(e))||n.indexOf("multipart/form-data")>-1){const i=xo(this,"env"),u=i&&i.FormData;return du(s?{"files[]":e}:e,u&&new u,a)}}return o||r?(t.setContentType("application/json",!1),H5(e)):e}],transformResponse:[function(e){const t=xo(this,"transitional")||va.transitional,n=t&&t.forcedJSONParsing,r=xo(this,"responseType"),o=r==="json";if(T.isResponse(e)||T.isReadableStream(e))return e;if(e&&T.isString(e)&&(n&&!r||o)){const s=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,xo(this,"parseReviver"))}catch(a){if(s)throw a.name==="SyntaxError"?ie.from(a,ie.ERR_BAD_RESPONSE,this,null,xo(this,"response")):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ct.classes.FormData,Blob:Ct.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};T.forEach(Iv,e=>{va.headers[e]={}});function yl(e,t){const n=this||va,r=t||n,o=Ft.from(r.headers);let s=r.data;return T.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Mv(e){return!!(e&&e.__CANCEL__)}let ya=class extends ie{constructor(e,t,n){super(e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function jv(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ie("Request failed with status code "+n.status,n.status>=400&&n.status<500?ie.ERR_BAD_REQUEST:ie.ERR_BAD_RESPONSE,n.config,n.request,n))}const G5=/[\t\n\r]/g;function zv(e){if(typeof e!="string")return e;let t=0;for(;t{n=u,o=null,s&&(clearTimeout(s),s=null),e(...i)};return[(...i)=>{const u=Date.now(),c=u-n;c>=r?a(i,u):(o=i,s||(s=setTimeout(()=>{s=null,a(o)},r-c)))},()=>o&&a(o),(...i)=>a(i)]}const Bi=(e,t,n=3)=>{let r=0;const o=W5(50,250);return q5(s=>{if(!s||!T.isNumber(s.loaded))return;const a=s.loaded,i=s.lengthComputable?s.total:void 0,u=Math.max(0,i!=null?Math.min(a,i):a),c=Math.max(0,u-r),l=o(c);r=Math.max(r,u);const d={loaded:u,total:i,progress:i?u/i:void 0,bytes:c,rate:l||void 0,estimated:l&&i?(i-u)/l:void 0,event:s,lengthComputable:i!=null,[t?"download":"upload"]:!0};e(d)},n)},O0=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},D0=(e,t=T.asap)=>(...n)=>t(()=>e(...n)),K5=Ct.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ct.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ct.origin),Ct.navigator&&/(msie|trident)/i.test(Ct.navigator.userAgent)):()=>!0,X5=Ct.hasStandardBrowserEnv?{write(e,t,n,r,o,s,a){if(typeof document>"u")return;const i=[`${e}=${encodeURIComponent(t)}`];T.isNumber(n)&&i.push(`expires=${new Date(n).toUTCString()}`),T.isString(r)&&i.push(`path=${r}`),T.isString(o)&&i.push(`domain=${o}`),s===!0&&i.push("secure"),T.isString(a)&&i.push(`SameSite=${a}`),document.cookie=i.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const J5=/^https?:(?!\/\/)/i;function Q5(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,r="")=>`${n}${r}${Pi}`)}function eT(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Pi}@`),n=t.indexOf("#"),r=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Pi}`);return n===-1?r:`${r}#${Q5(t.slice(n+1))}`}function N0(e,t){if(typeof e=="string"){const n=zv(e);if(J5.test(n))throw new ie(`Invalid URL ${JSON.stringify(eT(n))}: missing "//" after protocol`,ie.ERR_INVALID_URL,t)}}function Uv(e,t,n,r){N0(t,r);let o=!Z5(t);return e&&(o||n===!1)?(N0(e,r),Y5(e,t)):t}const P0=e=>e instanceof Ft?{...e}:e,tT=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function co(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(l,d,p,h){return T.isPlainObject(l)&&T.isPlainObject(d)?T.merge.call({caseless:h},l,d):T.isPlainObject(d)?T.merge({},d):T.isArray(d)?d.slice():d}function o(l,d,p,h){if(T.isUndefined(d)){if(!T.isUndefined(l))return r(void 0,l,p,h)}else return r(l,d,p,h)}function s(l,d){if(!T.isUndefined(d))return r(void 0,d)}function a(l,d){if(T.isUndefined(d)){if(!T.isUndefined(l))return r(void 0,l)}else return r(void 0,d)}function i(l){const d=T.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!T.isUndefined(d))if(T.isPlainObject(d)){if(T.hasOwnProp(d,l))return d[l]}else return;const p=T.hasOwnProp(e,"transitional")?e.transitional:void 0;if(T.isPlainObject(p)&&T.hasOwnProp(p,l))return p[l]}function u(l,d,p){if(T.hasOwnProp(t,p))return r(l,d);if(T.hasOwnProp(e,p))return r(void 0,l)}const c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutErrorMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:u,headers:(l,d,p)=>o(P0(l),P0(d),p,!0)};return T.forEach(tT({...e,...t}),function(l){if(l==="__proto__"||l==="constructor"||l==="prototype")return;const d=T.hasOwnProp(c,l)?c[l]:o,p=T.hasOwnProp(e,l)?e[l]:void 0,h=T.hasOwnProp(t,l)?t[l]:void 0,g=d(p,h,l);T.isUndefined(g)&&d!==u||(n[l]=g)}),T.hasOwnProp(t,"validateStatus")&&T.isUndefined(t.validateStatus)&&i("validateStatusUndefinedResolves")===!1&&(T.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const nT=["content-type","content-length"];function rT(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,o])=>{nT.includes(r.toLowerCase())&&e.set(r,o)})}const oT=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function Vv(e){const t=co({},e),n=p=>T.hasOwnProp(t,p)?t[p]:void 0,r=n("data");let o=n("withXSRFToken");const s=n("xsrfHeaderName"),a=n("xsrfCookieName");let i=n("headers");const u=n("auth"),c=n("baseURL"),l=n("allowAbsoluteUrls"),d=n("url");if(t.headers=i=Ft.from(i),t.url=$v(Uv(c,d,l,t),n("params"),n("paramsSerializer")),u){const p=T.getSafeProp(u,"username")||"",h=T.getSafeProp(u,"password")||"";try{i.set("Authorization","Basic "+btoa(p+":"+(h?oT(h):"")))}catch(g){throw ie.from(g,ie.ERR_BAD_OPTION_VALUE,e)}}if(T.isFormData(r)){const p=T.getSafeProp(r,"getHeaders");Ct.hasStandardBrowserEnv||Ct.hasStandardBrowserWebWorkerEnv||T.isReactNative(r)?i.setContentType(void 0):T.isFunction(p)&&rT(i,p.call(r),n("formDataHeaderPolicy"))}if(Ct.hasStandardBrowserEnv&&(T.isFunction(o)&&(o=o(t)),o===!0||o==null&&K5(t.url))){const p=s&&a&&X5.read(a);p&&i.set(s,p)}return t}const sT=typeof XMLHttpRequest<"u",aT=sT&&function(e){return new Promise(function(t,n){const r=Vv(e);let o=r.data;const s=Ft.from(r.headers).normalize();let{responseType:a,onUploadProgress:i,onDownloadProgress:u}=r,c,l,d,p,h,g;function f(){p&&p(),h&&h(),r.cancelToken&&r.cancelToken.unsubscribe(c),r.signal&&r.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout;function y(E){if(!m)return;if(m.status===0&&(bl(zv(r.url))||bl(Ct.origin))!=="file"&&!(m.responseURL&&m.responseURL.startsWith("file:"))){n(new ie("Request aborted",ie.ECONNABORTED,e,m)),f(),m=null;return}try{E?g&&g(E):h&&h()}catch(D){setTimeout(()=>{throw D})}if(!m)return;const C=Ft.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),_={data:!a||a==="text"||a==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:C,config:e,request:m};jv(function(D){t(D),f()},function(D){n(D),f()},_),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.startsWith("file:"))||setTimeout(y)},m.onabort=function(){m&&(n(new ie("Request aborted",ie.ECONNABORTED,e,m)),f(),m=null)},m.onerror=function(E){const C=E&&E.message?E.message:"Network Error",_=new ie(C,ie.ERR_NETWORK,e,m);_.event=E||null,n(_),f(),m=null},m.ontimeout=function(){let E=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const C=r.transitional||sd;r.timeoutErrorMessage&&(E=r.timeoutErrorMessage),n(new ie(E,C.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,m)),f(),m=null},o===void 0&&s.setContentType(null),"setRequestHeader"in m&&T.forEach(Dv(s),function(E,C){m.setRequestHeader(C,E)}),T.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),a&&a!=="json"&&(m.responseType=r.responseType),u&&([d,h,g]=Bi(u,!0),m.addEventListener("progress",d)),i&&m.upload&&([l,p]=Bi(i),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",p)),(r.cancelToken||r.signal)&&(c=E=>{m&&(n(!E||E.type?new ya(null,e,m):E),m.abort(),f(),m=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const v=bl(r.url);if(v&&!Ct.protocols.includes(v)){n(new ie("Unsupported protocol "+v+":",ie.ERR_BAD_REQUEST,e)),f();return}m.send(o||null)})},iT=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(u){if(!r){r=!0,a();const c=u instanceof Error?u:this.reason;n.abort(c instanceof ie?c:new ya(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{s=null,o(new ie(`timeout of ${t}ms exceeded`,ie.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>{if(!r){if(u.aborted){o.call(u);return}u.addEventListener("abort",o,{once:!0})}});const{signal:i}=n;return i.unsubscribe=()=>T.asap(a),i},uT=function*(e,t){let n=e.byteLength;if(n{const o=lT(e,t);let s=0,a,i=u=>{a||(a=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:l}=await o.next();if(c){i(),u.close();return}let d=l.byteLength;if(n){let p=s+=d;n(p)}u.enqueue(new Uint8Array(l))}catch(c){throw i(c),c}},cancel(u){return i(u),o.return()}},{highWaterMark:2})},$0=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Hv=(e,t,n)=>t+2e<=57?e-48:(e&223)-55,dT=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,pT=e=>e===9||e===10||e===12||e===13||e===32,hT=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},fT=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},gT=e=>{const t=e.length;let n=0,r=0,o=!1;for(let s=0;s0){o=!0;continue}n++}}return o||r>2||r>0&&(n+r)%4!==0||n%4===1?fT(e):hT(n)},mT=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),o=e.slice(n+1);if(/;base64/i.test(r))return t(o);let s=0;for(let a=0,i=o.length;a=55296&&u<=56319&&a+1=56320&&c<=57343?(s+=4,a++):s+=3}else s+=3}return s};function vT(e){const t=typeof e=="string"?e.indexOf("#"):-1;return mT(t===-1?e:e.slice(0,t),gT)}const id="1.20.0",F0=64*1024,yT={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:ja}=T,bT=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),L0=e=>{if(!T.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},I0=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ET=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},wT=e=>{const t=T.global!==void 0&&T.global!==null?T.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=T.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:s,Response:a}=e,i=o?ja(o):typeof fetch=="function",u=ja(s),c=ja(a);if(!i)return!1;const l=i&&ja(n),d=i&&(typeof r=="function"?(y=>v=>y.encode(v))(new r):async y=>new Uint8Array(await new s(y).arrayBuffer())),p=u&&l&&I0(()=>{let y=!1;const v=new s(Ct.origin,{body:new n,method:"POST",get duplex(){return y=!0,"half"}}),E=v.headers.has("Content-Type");return v.body!=null&&v.body.cancel(),y&&!E}),h=c&&l&&I0(()=>T.isReadableStream(new a("").body)),g={stream:h&&(y=>y.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!g[y]&&(g[y]=(v,E)=>{let C=v&&v[y];if(C)return C.call(v);throw new ie(`Response type '${y}' is not supported`,ie.ERR_NOT_SUPPORT,E)})});const f=async y=>{if(y==null)return 0;if(T.isBlob(y))return y.size;if(T.isSpecCompliantForm(y))return(await new s(Ct.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(T.isArrayBufferView(y)||T.isArrayBuffer(y))return y.byteLength;if(T.isURLSearchParams(y)&&(y=y+""),T.isString(y))return(await d(y)).byteLength},m=async(y,v)=>T.toFiniteNumber(y.getContentLength())??f(v);return async y=>{let{url:v,method:E,data:C,signal:_,cancelToken:D,timeout:R,onDownloadProgress:Z,onUploadProgress:M,responseType:P,headers:oe,withCredentials:O="same-origin",fetchOptions:S,maxContentLength:W,maxBodyLength:ne,maxRedirects:Q}=Vv(y);const Y=T.isNumber(W)&&W>-1,ee=T.isNumber(ne)&&ne>-1,J=A=>T.hasOwnProp(y,A)?y[A]:void 0;let te=o||fetch;P=P?(P+"").toLowerCase():"text";let re=iT([_,D&&D.toAbortSignal()],R),fe=null;const _e=re&&re.unsubscribe&&(()=>{re.unsubscribe()});let we,Se=null;const Le=()=>new ie("Request body larger than maxBodyLength limit",ie.ERR_BAD_REQUEST,y,fe);try{let A;const B=J("auth");if(B){const V=T.getSafeProp(B,"username")||"",K=T.getSafeProp(B,"password")||"";A={username:V,password:K}}if(ET(v)){const V=new URL(v,Ct.origin);if(!A&&(V.username||V.password)){const K=L0(V.username),G=L0(V.password);A={username:K,password:G}}(V.username||V.password)&&(V.username="",V.password="",v=V.href)}if(A&&(oe.delete("authorization"),oe.set("Authorization","Basic "+btoa(bT((A.username||"")+":"+(A.password||""))))),Y&&typeof v=="string"&&v.startsWith("data:")&&vT(v)>W)throw new ie("maxContentLength size of "+W+" exceeded",ie.ERR_BAD_RESPONSE,y,fe);if(ee&&E!=="get"&&E!=="head"){const V=await f(C);if(typeof V=="number"&&isFinite(V)&&(we=V,V>ne))throw Le()}const F=ee&&(T.isReadableStream(C)||T.isStream(C)),U=(V,K,G)=>B0(V,F0,ce=>{if(ee&&ce>ne)throw Se=Le();K&&K(ce)},G);if(p&&E!=="get"&&E!=="head"&&(M||F)){if(we=we??await m(oe,C),we!==0||F){let V=new s(v,{method:"POST",body:C,duplex:"half"}),K;if(T.isFormData(C)&&(K=V.headers.get("content-type"))&&oe.setContentType(K),V.body){const[G,ce]=M&&O0(we,Bi(D0(M)))||[];C=U(V.body,G,ce)}}}else if(F&&!u&&l&&E!=="get"&&E!=="head")C=U(C);else if(F&&u&&!p&&E!=="get"&&E!=="head")throw new ie("Stream request bodies are not supported by the current fetch implementation",ie.ERR_NOT_SUPPORT,y,fe);T.isString(O)||(O=O?"include":"omit");const b=u&&"credentials"in s.prototype;if(T.isFormData(C)){const V=oe.getContentType();V&&/^multipart\/form-data/i.test(V)&&!/boundary=/i.test(V)&&oe.delete("content-type")}oe.set("User-Agent","axios/"+id,!1);const x=S==null?S:Object.assign(Object.create(null),S);x&&(delete x.body,delete x.headers,delete x.method,delete x.signal,delete x.duplex,delete x.credentials);const k=Object.assign(Object.create(null),x,{signal:re,method:E.toUpperCase(),headers:Dv(oe.normalize()),body:C,duplex:"half",credentials:b?O:void 0});u&&(T.forEach(yT,(V,K)=>{k[K]===void 0&&(k[K]=V)}),k.signal===void 0&&(k.signal=null),k.body===void 0&&(k.body=null)),Q===0&&(k.redirect="manual",x&&(x.redirect="manual")),fe=u&&new s(v,k);let N=await(u?te(fe,x):te(v,k));const I=Ft.from(N.headers);if(Y){const V=T.toFiniteNumber(I.getContentLength());if(V!=null&&V>W)throw new ie("maxContentLength size of "+W+" exceeded",ie.ERR_BAD_RESPONSE,y,fe)}const j=h&&(P==="stream"||P==="response");if(h&&N.body&&(Z||Y||j&&_e)){const V={};["status","statusText","headers"].forEach(ve=>{V[ve]=N[ve]});const K=T.toFiniteNumber(I.getContentLength()),[G,ce]=Z&&O0(K,Bi(D0(Z),!0))||[];let de=0;const ge=ve=>{if(Y&&(de=ve,de>W))throw new ie("maxContentLength size of "+W+" exceeded",ie.ERR_BAD_RESPONSE,y,fe);G&&G(ve)};N=new a(B0(N.body,F0,ge,()=>{ce&&ce(),_e&&_e()}),V)}P=P||"text";let q=await g[T.findKey(g,P)||"text"](N,y);if(Y&&!h&&!j){let V;if(q!=null&&(typeof q.byteLength=="number"?V=q.byteLength:typeof q.size=="number"?V=q.size:typeof q=="string"&&(V=typeof r=="function"?new r().encode(q).byteLength:q.length)),typeof V=="number"&&V>W)throw new ie("maxContentLength size of "+W+" exceeded",ie.ERR_BAD_RESPONSE,y,fe)}return!j&&_e&&_e(),await new Promise((V,K)=>{jv(V,K,{data:q,headers:Ft.from(N.headers),status:N.status,statusText:N.statusText,config:y,request:fe})})}catch(A){if(_e&&_e(),re&&re.aborted&&re.reason instanceof ie){const B=re.reason;throw B.config=y,fe&&(B.request=fe),A!==B&&Object.defineProperty(B,"cause",{__proto__:null,value:A,writable:!0,enumerable:!1,configurable:!0}),B}if(Se)throw fe&&!Se.request&&(Se.request=fe),Se;if(A instanceof ie)throw fe&&!A.request&&(A.request=fe),A;if(A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)){const B=new ie("Network Error",ie.ERR_NETWORK,y,fe,A&&A.response);throw Object.defineProperty(B,"cause",{__proto__:null,value:A.cause||A,writable:!0,enumerable:!1,configurable:!0}),B}throw ie.from(A,A&&A.code,y,fe,A&&A.response)}}},CT=new Map,Gv=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let a=s.length,i=a,u,c,l=CT;for(;i--;)u=s[i],c=l.get(u),c===void 0&&l.set(u,c=i?new Map:wT(t)),l=c;return c};Gv();const ud={http:O5,xhr:aT,fetch:{get:Gv}};T.forEach(ud,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const M0=e=>`- ${e}`,xT=e=>T.isFunction(e)||e===null||e===!1;function AT(e,t){e=T.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let a=0;a`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=n?a.length>1?`since : +`+a.map(M0).join(` +`):" "+M0(a[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+i,ie.ERR_NOT_SUPPORT)}return o}const Wv={getAdapter:AT,adapters:ud};function El(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ya(null,e)}function wl(e){const t=T.toSafeFlatObject(e);return El(t),t.headers=Ft.from(T.getSafeProp(t,"headers")),t.data=yl.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Wv.getAdapter(t.adapter||va.adapter,t)(t).then(function(n){El(t),t.response=n;try{n.data=yl.call(t,t.transformResponse,n)}finally{delete t.response}return n.headers=Ft.from(n.headers),n},function(n){if(!Mv(n)&&(El(t),n&&n.response)){t.response=n.response;try{n.response.data=yl.call(t,t.transformResponse,n.response)}finally{delete t.response}n.response.headers=Ft.from(n.response.headers)}return Promise.reject(n)})}const $i={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{$i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const j0={};$i.transitional=function(e,t,n){function r(o,s){return"[Axios v"+id+"] Transitional option '"+o+"'"+s+(n?". "+n:"")}return(o,s,a)=>{if(e===!1)throw new ie(r(s," has been removed"+(t?" in "+t:"")),ie.ERR_DEPRECATED);return t&&!j0[s]&&(j0[s]=!0,console.warn(r(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,s,a):!0}},$i.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function _T(e,t,n){if(typeof e!="object"||e===null)throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],a=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(a){const i=e[s],u=i===void 0||a(i,s,e);if(u!==!0)throw new ie("option "+s+" must be "+u,ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ie("Unknown option "+s,ie.ERR_BAD_OPTION)}}const Za={assertOptions:_T,validators:$i},kt=Za.validators;let oo=class{constructor(e){this.defaults=e||{},this.interceptors={request:new k0,response:new k0}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error)try{let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=r.stack;let s="";if(typeof o=="string"){const a=o.indexOf(` `);s=a===-1?"":o.slice(a+1)}if(!n.stack)n.stack=s;else if(s){const a=s.indexOf(` `),i=a===-1?-1:s.indexOf(` `,a+1),u=i===-1?"":s.slice(i+1);String(n.stack).endsWith(u)||(n.stack+=` -`+s)}}catch{}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=io(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;n!==void 0&&Xa.assertOptions(n,{silentJSONParsing:kt.transitional(kt.boolean),forcedJSONParsing:kt.transitional(kt.boolean),clarifyTimeoutError:kt.transitional(kt.boolean),legacyInterceptorReqResOrdering:kt.transitional(kt.boolean),advertiseZstdAcceptEncoding:kt.transitional(kt.boolean),validateStatusUndefinedResolves:kt.transitional(kt.boolean)},!1),r!=null&&(T.isFunction(r)?t.paramsSerializer={serialize:r}:Xa.assertOptions(r,{encode:kt.function,serialize:kt.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Xa.assertOptions(t,{baseUrl:kt.spelling("baseURL"),withXsrfToken:kt.spelling("withXSRFToken")},!0),t.method=(T.getSafeProp(t,"method")||T.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=o&&T.merge(o.common,o[t.method]);o&&T.forEach(Fv.concat("common"),h=>{delete o[h]}),t.headers=Lt.concat(s,o);const a=[];let i=!0;this.interceptors.request.forEach(function(h){if(typeof h.runWhen=="function"&&h.runWhen(t)===!1)return;i=i&&h.synchronous;const g=t.transitional||rd;g&&g.legacyInterceptorReqResOrdering?a.unshift(h.fulfilled,h.rejected):a.push(h.fulfilled,h.rejected)});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let c,l=0,d;if(!i){const h=[yl.bind(this),void 0];for(h.unshift(...a),h.push(...u),d=h.length,c=Promise.resolve(t);lyl.call(this,p)))}catch(m){c=Promise.reject(m)}break}}if(!c)try{c=yl.call(this,p)}catch(h){c=Promise.reject(h)}for(l=0,d=u.length;l{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const a=new Promise(i=>{r.subscribe(i),s=i}).then(o);return a.cancel=function(){r.unsubscribe(s)},a},t(function(o,s,a){r.reason||(r.reason=new ya(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Wv(function(n){t=n}),cancel:t}}};function AT(e){return function(t){return e.apply(null,t)}}function _T(e){return T.isObject(e)&&e.isAxiosError===!0}const Za={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Za).forEach(([e,t])=>{Za[t]===void 0&&(Za[t]=e)});function qv(e){const t=new no(e),n=yv(no.prototype.request,t);return T.extend(n,no.prototype,t,{allOwnKeys:!0}),T.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return qv(io(e,r))},n}const Je=qv(va);Je.Axios=no,Je.CanceledError=ya,Je.CancelToken=xT,Je.isCancel=Iv,Je.VERSION=sd,Je.toFormData=uu,Je.AxiosError=ie,Je.Cancel=Je.CanceledError,Je.all=function(e){return Promise.all(e)},Je.spread=AT,Je.isAxiosError=_T,Je.mergeConfig=io,Je.AxiosHeaders=Lt,Je.formToJSON=e=>Lv(T.isHTMLForm(e)?new FormData(e):e),Je.getAdapter=Gv.getAdapter,Je.HttpStatusCode=Za,Je.default=Je;const{Axios:nO,AxiosError:rO,CanceledError:oO,isCancel:sO,CancelToken:aO,VERSION:iO,all:uO,Cancel:lO,isAxiosError:id,spread:cO,toFormData:dO,AxiosHeaders:pO,HttpStatusCode:hO,formToJSON:fO,getAdapter:gO,mergeConfig:mO,create:vO}=Je;function ST(){const e=Je.create({headers:{requesttoken:Mg()??"","X-Requested-With":"XMLHttpRequest"}});return zg(t=>{e.defaults.headers.requesttoken=t}),Object.assign(e,{CancelToken:Je.CancelToken,isCancel:Je.isCancel})}const M0="_nextcloudCsrfTokenReloaded";function kT(e){return async t=>{if(!id(t))throw t;const{config:n,response:r,request:o}=t,s=o?.responseURL;if(n&&!(M0 in n)&&r?.status===412&&r?.data?.message==="CSRF check failed"){console.warn(`Request to ${s} failed because of a CSRF mismatch. Fetching a new token.`);const a=await v3();return e.defaults.headers.requesttoken=a,e({...n,[M0]:!0,headers:{...n.headers,requesttoken:a}})}throw t}}const j0="_nextcloudMaintenanceModeRetryDelay";function TT(e){return async t=>{if(!id(t))throw t;const{config:n,response:r,request:o}=t,s=o?.responseURL,a=r?.status,i=r?.headers;let u=n?.[j0]??1;if(a===503&&i?.["x-nextcloud-maintenance-mode"]==="1"&&n?.retryIfMaintenanceMode){if(u*=2,u>32)throw console.error("Retry delay exceeded one minute, giving up.",{responseURL:s}),t;return console.warn(`Request to ${s} failed because of maintenance mode. Retrying in ${u}s`),await new Promise(c=>{setTimeout(c,u*1e3)}),e({...n,[j0]:u})}throw t}}async function OT(e){if(id(e)){const{config:t,response:n,request:r}=e,o=r?.responseURL;n?.status===401&&n?.data?.message==="Current user is not logged in"&&t?.reloadExpiredSession&&globalThis.location?.reload&&(console.error(`Request to ${o} failed because the user session expired. Reloading the page …`),globalThis.OC?.reload?globalThis.OC.reload():globalThis.location.reload())}throw e}const Zr=ST();Zr.interceptors.response.use(e=>e,kT(Zr)),Zr.interceptors.response.use(e=>e,TT(Zr)),Zr.interceptors.response.use(e=>e,OT);async function DT(){return(await Zr.get(kg("apps/files/api/v1/templates"))).data.ocs.data}async function NT(e,t,n){return(await Zr.post(kg("apps/files/api/v1/templates/create"),{filePath:e,templatePath:t,templateType:n})).data.ocs.data}const Kv="office.overview.gridView";function PT(){return localStorage.getItem(Kv)==="true"}function BT(e){localStorage.setItem(Kv,String(e))}function Xv(){const e=Ho("office","creator-categories",[]);return Array.isArray(e)?e:[]}function ud(e){return Xv().find(t=>t.app===e.app&&t.extension===e.extension)??null}function bl(e){return ud(e)?.label??e.label}function Ya(e){return ud(e)?.id??`${e.app}-${e.extension.replace(/^\./,"")}`}function $T(e,t){return t?e.find(n=>Ya(n)===t)??null:null}function RT(e){return[...new Set([...ud(e)?.mimetypes??[],...e.mimetypes])]}function LT(){return[...new Set(Xv().flatMap(e=>e.mimetypes))]}function FT(e){const t=e.trim();return t?/[/\\]/.test(t)||t.includes("\0")?Ue("office","Filename contains invalid characters"):null:Ue("office","Filename cannot be empty")}function z0(e){return e instanceof Date?e.toISOString():String(e)}function IT(e,t,n){t=t??[s=>s],n=n??[];const r=t.map((s,a)=>(n[a]??"asc")==="asc"?1:-1),o=Intl.Collator([_r(),Bc()],{numeric:!0,usage:"sort"});return[...e].sort((s,a)=>{for(const[i,u]of t.entries()){const c=o.compare(z0(u(s)),z0(u(a)));if(c!==0)return c*r[i]}return 0})}const vs=Object.freeze({Name:"basename",Modified:"mtime",Size:"size"});function MT(e,t={}){const n={sortingMode:vs.Name,sortingOrder:"asc",...t};function r(a){const i=a.displayname||a.attributes?.displayname||a.basename||"";return a.type===Qc.Folder?i:i.lastIndexOf(".")>0?i.slice(0,i.lastIndexOf(".")):i}const o=[...n.sortFavoritesFirst?[a=>a.attributes?.favorite!==1]:[],...n.sortFoldersFirst?[a=>a.type!=="folder"]:[],...n.sortingMode!==vs.Name?[a=>a[n.sortingMode]??a.attributes[n.sortingMode]]:[],a=>r(a),a=>a.basename],s=[...n.sortFavoritesFirst?["asc"]:[],...n.sortFoldersFirst?["asc"]:[],...n.sortingMode===vs.Modified?[n.sortingOrder==="asc"?"desc":"asc"]:[],...n.sortingMode!==vs.Modified&&n.sortingMode!==vs.Name?[n.sortingOrder]:[],n.sortingOrder,n.sortingOrder];return IT(e,o,s)}const jT=["group","shared","external","external-session"];function zT(e,{activeFilter:t,currentUid:n,searchQuery:r,category:o}){const s=gk(e,o);let a=s;if(t==="mine"?a=s.filter(i=>i.owner===n&&!jT.includes(i.attributes?.["nc:mount-type"])):t==="shared"&&(a=s.filter(i=>i.attributes?.["nc:mount-type"]==="shared")),r){const i=r.toLowerCase();a=a.filter(u=>u.basename.toLowerCase().includes(i))}return MT(a,{sortFavoritesFirst:!0,sortingMode:"mtime",sortingOrder:"asc"})}const UT={key:2,class:"office-overview__files","aria-labelledby":"files-section-heading"},VT={role:"status",class:"sr-only"},HT={class:"office-overview__files-header"},GT={id:"files-section-heading",class:"office-overview__files-title"},WT={class:"office-overview__controls"},qT=["aria-label"],KT={key:1,class:"office-overview__grid"},XT={key:2,class:"office-overview__list"},ZT={key:3,class:"office-overview__more"},YT=We({__name:"OfficeOverview",setup(e){const t=eu()?.uid??null,n=Y4(),r=Z4(),o=Ae([]),s=Ae([]),a=Ae(!1),i=Ae(!1),u=Ae(null),c=Ae(PT()?"grid":"list"),l=Ae("mine"),d=Ae(""),p=Ae(!1),h=Ae(""),g=Ae(null),f=Ae(null),m=Ae(!1),y=Ae(""),v=Ae(null),E=se(()=>{const J=n.params.creatorId;return(Array.isArray(J)?J[0]:J)||null}),C=se(()=>$T(o.value,E.value)??o.value[0]??null);function _(J){return{name:"creator",params:{creatorId:Ya(J)}}}const D=se(()=>{const J=new Set;return o.value.filter(te=>{const re=Ya(te);return J.has(re)?!1:(J.add(re),!0)})});et([C,E],()=>{const J=C.value;J&&E.value!==Ya(J)&&r.replace(_(J)).catch(()=>{})},{immediate:!0}),et(C,()=>{d.value=""});const R=se(()=>C.value?Ue("office","Search {category}",{category:bl(C.value)}):Ue("office","Search")),Z=se(()=>C.value?zT(s.value,{activeFilter:l.value,currentUid:t,searchQuery:d.value,category:RT(C.value)}):[]),I=se(()=>Z.value.slice(0,v0)),P=se(()=>Z.value.length>v0||a.value),oe=se(()=>C.value?bl(C.value):"");function O(){const J=c.value==="list"?"grid":"list";c.value=J,BT(J==="grid")}const S=Ho("office","editor-url",null);function G(J){S?window.location.href=S+"?fileId="+encodeURIComponent(String(J.fileid)):window.location.href=xr("/f/{fileid}",{fileid:J.fileid})}function ne(){d.value?window.location.href=xr("/apps/files/search")+"?query="+encodeURIComponent(d.value):window.location.href=xr("/apps/files/recent")}function Q(J,te){g.value=J,f.value=te,h.value=J.label+J.extension,y.value="",p.value=!0,Cn(()=>{const re=v.value;typeof re?.focus=="function"?re.focus():re?.$el?.querySelector("input")?.focus(),re?.$el?.querySelector("input")?.setSelectionRange(0,h.value.length-J.extension.length)})}async function Y(){if(m.value)return;const J=FT(h.value);if(J){y.value=J;return}m.value=!0,y.value="";try{const te="/"+h.value.trim(),re=f.value?.templateId??"",me=f.value?.templateType??"user_system",_e=await NT(te,re,me);p.value=!1,fk(),window.location.href=xr("/f/{fileid}",{fileid:_e.fileid})}catch(te){const re=te;y.value=re.response?.data?.ocs?.meta?.message??Ue("office","Failed to create file")}finally{m.value=!1}}async function ee(){i.value=!0,u.value=null;try{if(o.value=await DT(),o.value.length>0){const J=[...new Set([...LT(),...o.value.flatMap(re=>re.mimetypes)])],te=await hk(J);s.value=te.nodes,a.value=te.truncated}}catch{u.value=Ue("office","Failed to load files"),s.value=[],a.value=!1}finally{i.value=!1}}return ee(),(J,te)=>($(),ge(j(lA),{"app-name":"office"},{default:pe(()=>[le(j(p2),null,{search:pe(()=>[le(j(nA),{modelValue:d.value,"onUpdate:modelValue":te[0]||(te[0]=re=>d.value=re),label:R.value},null,8,["modelValue","label"])]),list:pe(()=>[($(!0),X(Ze,null,Ts(D.value,re=>($(),ge(j(qx),{key:re.app+"-"+re.extension,name:j(bl)(re),to:_(re),active:C.value===re},{icon:pe(()=>[le(j(Ve),{svg:re.iconSvgInline??"",class:"office-overview__nav-icon"},null,8,["svg"])]),_:2},1032,["name","to","active"]))),128))]),_:1}),le(j(_w),{class:"office-overview__content"},{default:pe(()=>[i.value?($(),ge(j(zc),{key:0,class:"office-overview__loading"})):($(),X(Ze,{key:1},[o.value.length===0?($(),ge(j(Ju),{key:0,name:j(Ue)("office","No office suite installed")},{icon:pe(()=>[le(j(Ve),{path:j(tc),size:48},null,8,["path"])]),_:1},8,["name"])):($(),X(Ze,{key:1},[!d.value&&C.value?($(),ge(R_,{key:0,creator:C.value,onSelect:Q},null,8,["creator"])):he("",!0),u.value?($(),ge(j(Ju),{key:1,name:u.value},null,8,["name"])):C.value?($(),X("section",UT,[ue("div",VT,xe(j(Ue)("office","{count} found in {category}",{count:I.value.length,category:oe.value})),1),ue("div",HT,[ue("h2",GT,xe(j(Ue)("office","Recent {category}",{category:oe.value})),1)]),ue("div",WT,[ue("div",{class:"office-overview__filters",role:"group","aria-label":j(Ue)("office","Filter files")},[le(j(Qe),{size:"small",variant:l.value==="all"?"primary":"secondary","aria-pressed":l.value==="all",onClick:te[1]||(te[1]=re=>l.value="all")},{default:pe(()=>[wt(xe(j(Ue)("office","All")),1)]),_:1},8,["variant","aria-pressed"]),le(j(Qe),{size:"small",variant:l.value==="mine"?"primary":"secondary","aria-pressed":l.value==="mine",onClick:te[2]||(te[2]=re=>l.value="mine")},{default:pe(()=>[wt(xe(j(Ue)("office","Mine")),1)]),_:1},8,["variant","aria-pressed"]),le(j(Qe),{size:"small",variant:l.value==="shared"?"primary":"secondary","aria-pressed":l.value==="shared",onClick:te[3]||(te[3]=re=>l.value="shared")},{default:pe(()=>[wt(xe(j(Ue)("office","Shared with me")),1)]),_:1},8,["variant","aria-pressed"])],8,qT),le(j(Qe),{"aria-label":c.value==="list"?j(Ue)("office","Switch to grid view"):j(Ue)("office","Switch to list view"),variant:"tertiary",onClick:O},{icon:pe(()=>[c.value==="list"?($(),ge(j(Ve),{key:0,path:j(p_),size:20},null,8,["path"])):($(),ge(j(Ve),{key:1,path:j(h_),size:20},null,8,["path"]))]),_:1},8,["aria-label"])]),I.value.length===0?($(),ge(j(Ju),{key:0,name:j(Ue)("office","No {category} found",{category:oe.value})},xc({icon:pe(()=>[le(j(Ve),{path:j(tc),size:48},null,8,["path"])]),_:2},[l.value!=="all"?{name:"description",fn:pe(()=>[wt(xe(j(Ue)("office",'Switch to "All" to see every file you have access to')),1)]),key:"0"}:void 0]),1032,["name"])):c.value==="grid"?($(),X("div",KT,[($(!0),X(Ze,null,Ts(I.value,re=>($(),ge(w_,{key:re.fileid,onClick:me=>G(re)},{preview:pe(()=>[le(Lh,{file:re,alt:re.basename},null,8,["file","alt"])]),icon:pe(()=>[le(j(Ve),{svg:C.value.iconSvgInline??"",size:20},null,8,["svg"])]),name:pe(()=>[wt(xe(re.basename),1)]),subname:pe(()=>[le(j(Ph),{timestamp:re.mtime},null,8,["timestamp"])]),_:2},1032,["onClick"]))),128))])):($(),X("div",XT,[($(!0),X(Ze,null,Ts(I.value,re=>($(),ge(j(a_),{key:re.fileid,name:re.basename,active:!1,onClick:me=>G(re)},{icon:pe(()=>[le(Lh,{file:re,size:96,"fallback-icon-size":32,class:"office-overview__list-thumb"},null,8,["file"])]),indicator:pe(()=>[re.attributes?.favorite===1?($(),ge(j(Ve),{key:0,path:j(d_),size:16,class:"office-overview__favourite-icon"},null,8,["path"])):he("",!0)]),subname:pe(()=>[le(j(Ph),{timestamp:re.mtime},null,8,["timestamp"])]),_:2},1032,["name","onClick"]))),128))])),P.value?($(),X("div",ZT,[le(j(Qe),{variant:"tertiary",onClick:ne},{icon:pe(()=>[le(j(Ve),{path:j(c_),size:20},null,8,["path"])]),default:pe(()=>[wt(xe(d.value?j(Ue)("office","Search all in Files"):j(Ue)("office","Show all in Files"))+" ",1)]),_:1})])):he("",!0)])):he("",!0)],64)),p.value?($(),ge(j(IA),{key:2,name:g.value?g.value.label:"",open:p.value,"close-on-click-outside":"","onUpdate:open":te[5]||(te[5]=re=>p.value=!1)},{actions:pe(()=>[le(j(Qe),{disabled:m.value||!h.value.trim(),variant:"primary",onClick:Y},{default:pe(()=>[wt(xe(j(Ue)("office","Create")),1)]),_:1},8,["disabled"])]),default:pe(()=>[ue("form",{class:"office-overview__create-form",onSubmit:bn(Y,["prevent"])},[le(j(i_),{ref_key:"createInput",ref:v,modelValue:h.value,"onUpdate:modelValue":te[4]||(te[4]=re=>h.value=re),label:j(Ue)("office","Filename"),error:!!y.value,"helper-text":y.value,disabled:m.value},null,8,["modelValue","label","error","helper-text","disabled"])],32)]),_:1},8,["name","open"])):he("",!0)],64))]),_:1})]),_:1}))}}),JT=ru(YT,[["__scopeId","data-v-f0f929a6"]]),QT=[{name:"creator",path:"/:creatorId?",component:JT},{path:"/:pathMatch(.*)*",redirect:"/"}],El="/apps/office";function eO(e){const t=e.lastIndexOf(El);return t===-1?xr(El):e.slice(0,t+El.length)}const tO=Yb({history:Nb(eO(window.location.pathname)),routes:QT}),U0=G4(Jb);U0.use(tO),U0.mount("#office"); +`+s)}}catch{}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=co(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;n!==void 0&&Za.assertOptions(n,{silentJSONParsing:kt.transitional(kt.boolean),forcedJSONParsing:kt.transitional(kt.boolean),clarifyTimeoutError:kt.transitional(kt.boolean),legacyInterceptorReqResOrdering:kt.transitional(kt.boolean),advertiseZstdAcceptEncoding:kt.transitional(kt.boolean),validateStatusUndefinedResolves:kt.transitional(kt.boolean)},!1),r!=null&&(T.isFunction(r)?t.paramsSerializer={serialize:r}:Za.assertOptions(r,{encode:kt.function,serialize:kt.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Za.assertOptions(t,{baseUrl:kt.spelling("baseURL"),withXsrfToken:kt.spelling("withXSRFToken")},!0),t.method=(T.getSafeProp(t,"method")||T.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=o&&T.merge(o.common,o[t.method]);o&&T.forEach(Iv.concat("common"),h=>{delete o[h]}),t.headers=Ft.concat(s,o);const a=[];let i=!0;this.interceptors.request.forEach(function(h){if(typeof h.runWhen=="function"&&h.runWhen(t)===!1)return;i=i&&h.synchronous;const g=t.transitional||sd;g&&g.legacyInterceptorReqResOrdering?a.unshift(h.fulfilled,h.rejected):a.push(h.fulfilled,h.rejected)});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let c,l=0,d;if(!i){const h=[wl.bind(this),void 0];for(h.unshift(...a),h.push(...u),d=h.length,c=Promise.resolve(t);lwl.call(this,p)))}catch(m){c=Promise.reject(m)}break}}if(!c)try{c=wl.call(this,p)}catch(h){c=Promise.reject(h)}for(l=0,d=u.length;l{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const a=new Promise(i=>{r.subscribe(i),s=i}).then(o);return a.cancel=function(){r.unsubscribe(s)},a},t(function(o,s,a){r.reason||(r.reason=new ya(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new qv(function(n){t=n}),cancel:t}}};function kT(e){return function(t){return e.apply(null,t)}}function TT(e){return T.isObject(e)&&e.isAxiosError===!0}const Ya={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ya).forEach(([e,t])=>{Ya[t]===void 0&&(Ya[t]=e)});function Kv(e){const t=new oo(e),n=bv(oo.prototype.request,t);return T.extend(n,oo.prototype,t,{allOwnKeys:!0}),T.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Kv(co(e,r))},n}const Je=Kv(va);Je.Axios=oo,Je.CanceledError=ya,Je.CancelToken=ST,Je.isCancel=Mv,Je.VERSION=id,Je.toFormData=du,Je.AxiosError=ie,Je.Cancel=Je.CanceledError,Je.all=function(e){return Promise.all(e)},Je.spread=kT,Je.isAxiosError=TT,Je.mergeConfig=co,Je.AxiosHeaders=Ft,Je.formToJSON=e=>Lv(T.isHTMLForm(e)?new FormData(e):e),Je.getAdapter=Wv.getAdapter,Je.HttpStatusCode=Ya,Je.default=Je;const{Axios:sO,AxiosError:aO,CanceledError:iO,isCancel:uO,CancelToken:lO,VERSION:cO,all:dO,Cancel:pO,isAxiosError:ld,spread:hO,toFormData:fO,AxiosHeaders:gO,HttpStatusCode:mO,formToJSON:vO,getAdapter:yO,mergeConfig:bO,create:EO}=Je;function OT(){const e=Je.create({headers:{requesttoken:jg()??"","X-Requested-With":"XMLHttpRequest"}});return Ug(t=>{e.defaults.headers.requesttoken=t}),Object.assign(e,{CancelToken:Je.CancelToken,isCancel:Je.isCancel})}const z0="_nextcloudCsrfTokenReloaded";function DT(e){return async t=>{if(!ld(t))throw t;const{config:n,response:r,request:o}=t,s=o?.responseURL;if(n&&!(z0 in n)&&r?.status===412&&r?.data?.message==="CSRF check failed"){console.warn(`Request to ${s} failed because of a CSRF mismatch. Fetching a new token.`);const a=await E3();return e.defaults.headers.requesttoken=a,e({...n,[z0]:!0,headers:{...n.headers,requesttoken:a}})}throw t}}const U0="_nextcloudMaintenanceModeRetryDelay";function NT(e){return async t=>{if(!ld(t))throw t;const{config:n,response:r,request:o}=t,s=o?.responseURL,a=r?.status,i=r?.headers;let u=n?.[U0]??1;if(a===503&&i?.["x-nextcloud-maintenance-mode"]==="1"&&n?.retryIfMaintenanceMode){if(u*=2,u>32)throw console.error("Retry delay exceeded one minute, giving up.",{responseURL:s}),t;return console.warn(`Request to ${s} failed because of maintenance mode. Retrying in ${u}s`),await new Promise(c=>{setTimeout(c,u*1e3)}),e({...n,[U0]:u})}throw t}}async function PT(e){if(ld(e)){const{config:t,response:n,request:r}=e,o=r?.responseURL;n?.status===401&&n?.data?.message==="Current user is not logged in"&&t?.reloadExpiredSession&&globalThis.location?.reload&&(console.error(`Request to ${o} failed because the user session expired. Reloading the page …`),globalThis.OC?.reload?globalThis.OC.reload():globalThis.location.reload())}throw e}const Jr=OT();Jr.interceptors.response.use(e=>e,DT(Jr)),Jr.interceptors.response.use(e=>e,NT(Jr)),Jr.interceptors.response.use(e=>e,PT);async function BT(){return(await Jr.get(Tg("apps/files/api/v1/templates"))).data.ocs.data}async function $T(e,t,n){return(await Jr.post(Tg("apps/files/api/v1/templates/create"),{filePath:e,templatePath:t,templateType:n})).data.ocs.data}const Xv="office.overview.gridView";function RT(){return localStorage.getItem(Xv)==="true"}function FT(e){localStorage.setItem(Xv,String(e))}function Zv(){const e=Go("office","creator-categories",[]);return Array.isArray(e)?e:[]}function cd(e){return Zv().find(t=>t.app===e.app&&t.extension===e.extension)??null}function Cl(e){return cd(e)?.label??e.label}function Ja(e){return cd(e)?.id??`${e.app}-${e.extension.replace(/^\./,"")}`}function LT(e,t){return t?e.find(n=>Ja(n)===t)??null:null}function IT(e){return[...new Set([...cd(e)?.mimetypes??[],...e.mimetypes])]}function MT(){return[...new Set(Zv().flatMap(e=>e.mimetypes))]}function jT(e){const t=e.trim();return t?/[/\\]/.test(t)||t.includes("\0")?Ue("office","Filename contains invalid characters"):null:Ue("office","Filename cannot be empty")}function V0(e){return e instanceof Date?e.toISOString():String(e)}function zT(e,t,n){t=t??[s=>s],n=n??[];const r=t.map((s,a)=>(n[a]??"asc")==="asc"?1:-1),o=Intl.Collator([kr(),Rc()],{numeric:!0,usage:"sort"});return[...e].sort((s,a)=>{for(const[i,u]of t.entries()){const c=o.compare(V0(u(s)),V0(u(a)));if(c!==0)return c*r[i]}return 0})}const ys=Object.freeze({Name:"basename",Modified:"mtime",Size:"size"});function UT(e,t={}){const n={sortingMode:ys.Name,sortingOrder:"asc",...t};function r(a){const i=a.displayname||a.attributes?.displayname||a.basename||"";return a.type===td.Folder?i:i.lastIndexOf(".")>0?i.slice(0,i.lastIndexOf(".")):i}const o=[...n.sortFavoritesFirst?[a=>a.attributes?.favorite!==1]:[],...n.sortFoldersFirst?[a=>a.type!=="folder"]:[],...n.sortingMode!==ys.Name?[a=>a[n.sortingMode]??a.attributes[n.sortingMode]]:[],a=>r(a),a=>a.basename],s=[...n.sortFavoritesFirst?["asc"]:[],...n.sortFoldersFirst?["asc"]:[],...n.sortingMode===ys.Modified?[n.sortingOrder==="asc"?"desc":"asc"]:[],...n.sortingMode!==ys.Modified&&n.sortingMode!==ys.Name?[n.sortingOrder]:[],n.sortingOrder,n.sortingOrder];return zT(e,o,s)}const VT=["group","shared","external","external-session"];function HT(e,{activeFilter:t,currentUid:n,searchQuery:r,category:o}){const s=yk(e,o);let a=s;if(t==="mine"?a=s.filter(i=>i.owner===n&&!VT.includes(i.attributes?.["nc:mount-type"])):t==="shared"&&(a=s.filter(i=>i.attributes?.["nc:mount-type"]==="shared")),r){const i=r.toLowerCase();a=a.filter(u=>u.basename.toLowerCase().includes(i))}return UT(a,{sortFavoritesFirst:!0,sortingMode:"mtime",sortingOrder:"asc"})}const GT={key:2,class:"office-overview__files","aria-labelledby":"files-section-heading"},WT={role:"status",class:"sr-only"},qT={class:"office-overview__files-header"},KT={id:"files-section-heading",class:"office-overview__files-title"},XT={class:"office-overview__controls"},ZT=["aria-label"],YT={key:1,class:"office-overview__grid"},JT={key:2,class:"office-overview__list"},QT={key:3,class:"office-overview__more"},eO=We({__name:"OfficeOverview",setup(e){const t=ru()?.uid??null,n=eb(),r=Q4(),o=Ae([]),s=Ae([]),a=Ae(!1),i=Ae(!1),u=Ae(null),c=Ae(RT()?"grid":"list"),l=Ae("mine"),d=Ae(""),p=Ae(!1),h=Ae(""),g=Ae(null),f=Ae(null),m=Ae(!1),y=Ae(""),v=Ae(null),E=se(()=>{const J=n.params.creatorId;return(Array.isArray(J)?J[0]:J)||null}),C=se(()=>LT(o.value,E.value)??o.value[0]??null);function _(J){return{name:"creator",params:{creatorId:Ja(J)}}}const D=se(()=>{const J=new Set;return o.value.filter(te=>{const re=Ja(te);return J.has(re)?!1:(J.add(re),!0)})});et([C,E],()=>{const J=C.value;J&&E.value!==Ja(J)&&r.replace(_(J)).catch(()=>{})},{immediate:!0}),et(C,()=>{d.value=""});const R=se(()=>C.value?Ue("office","Search {category}",{category:Cl(C.value)}):Ue("office","Search")),Z=se(()=>C.value?HT(s.value,{activeFilter:l.value,currentUid:t,searchQuery:d.value,category:IT(C.value)}):[]),M=se(()=>Z.value.slice(0,b0)),P=se(()=>Z.value.length>b0||a.value),oe=se(()=>C.value?Cl(C.value):"");function O(){const J=c.value==="list"?"grid":"list";c.value=J,FT(J==="grid")}const S=Go("office","editor-url",null);function W(J){S?window.location.href=S+"?fileId="+encodeURIComponent(String(J.fileid)):window.location.href=xr("/f/{fileid}",{fileid:J.fileid})}function ne(){d.value?window.location.href=xr("/apps/files/search")+"?query="+encodeURIComponent(d.value):window.location.href=xr("/apps/files/recent")}function Q(J,te){g.value=J,f.value=te,h.value=J.label+J.extension,y.value="",p.value=!0,xn(()=>{const re=v.value;typeof re?.focus=="function"?re.focus():re?.$el?.querySelector("input")?.focus(),re?.$el?.querySelector("input")?.setSelectionRange(0,h.value.length-J.extension.length)})}async function Y(){if(m.value)return;const J=jT(h.value);if(J){y.value=J;return}m.value=!0,y.value="";try{const te="/"+h.value.trim(),re=f.value?.templateId??"",fe=f.value?.templateType??"user_system",_e=await $T(te,re,fe);p.value=!1,vk(),window.location.href=xr("/f/{fileid}",{fileid:_e.fileid})}catch(te){const re=te;y.value=re.response?.data?.ocs?.meta?.message??Ue("office","Failed to create file")}finally{m.value=!1}}async function ee(){i.value=!0,u.value=null;try{if(o.value=await BT(),o.value.length>0){const J=[...new Set([...MT(),...o.value.flatMap(re=>re.mimetypes)])],te=await mk(J);s.value=te.nodes,a.value=te.truncated}}catch{u.value=Ue("office","Failed to load files"),s.value=[],a.value=!1}finally{i.value=!1}}return ee(),(J,te)=>($(),me(z(pA),{"app-name":"office"},{default:pe(()=>[le(z(g2),null,{search:pe(()=>[le(z(sA),{modelValue:d.value,"onUpdate:modelValue":te[0]||(te[0]=re=>d.value=re),label:R.value},null,8,["modelValue","label"])]),list:pe(()=>[($(!0),X(Ze,null,Os(D.value,re=>($(),me(z(Zx),{key:re.app+"-"+re.extension,name:z(Cl)(re),to:_(re),active:C.value===re},{icon:pe(()=>[le(z(Ve),{svg:re.iconSvgInline??"",class:"office-overview__nav-icon"},null,8,["svg"])]),_:2},1032,["name","to","active"]))),128))]),_:1}),le(z(Tw),{class:"office-overview__content"},{default:pe(()=>[i.value?($(),me(z(Vc),{key:0,class:"office-overview__loading"})):($(),X(Ze,{key:1},[o.value.length===0?($(),me(z(tl),{key:0,name:z(Ue)("office","No office suite installed")},{icon:pe(()=>[le(z(Ve),{path:z(oc),size:48},null,8,["path"])]),_:1},8,["name"])):($(),X(Ze,{key:1},[!d.value&&C.value?($(),me(I_,{key:0,creator:C.value,onSelect:Q},null,8,["creator"])):he("",!0),u.value?($(),me(z(tl),{key:1,name:u.value},null,8,["name"])):C.value?($(),X("section",GT,[ue("div",WT,xe(z(Ue)("office","{count} found in {category}",{count:M.value.length,category:oe.value})),1),ue("div",qT,[ue("h2",KT,xe(z(Ue)("office","Recent {category}",{category:oe.value})),1)]),ue("div",XT,[ue("div",{class:"office-overview__filters",role:"group","aria-label":z(Ue)("office","Filter files")},[le(z(Qe),{size:"small",variant:l.value==="all"?"primary":"secondary","aria-pressed":l.value==="all",onClick:te[1]||(te[1]=re=>l.value="all")},{default:pe(()=>[wt(xe(z(Ue)("office","All")),1)]),_:1},8,["variant","aria-pressed"]),le(z(Qe),{size:"small",variant:l.value==="mine"?"primary":"secondary","aria-pressed":l.value==="mine",onClick:te[2]||(te[2]=re=>l.value="mine")},{default:pe(()=>[wt(xe(z(Ue)("office","Mine")),1)]),_:1},8,["variant","aria-pressed"]),le(z(Qe),{size:"small",variant:l.value==="shared"?"primary":"secondary","aria-pressed":l.value==="shared",onClick:te[3]||(te[3]=re=>l.value="shared")},{default:pe(()=>[wt(xe(z(Ue)("office","Shared with me")),1)]),_:1},8,["variant","aria-pressed"])],8,ZT),le(z(Qe),{"aria-label":c.value==="list"?z(Ue)("office","Switch to grid view"):z(Ue)("office","Switch to list view"),variant:"tertiary",onClick:O},{icon:pe(()=>[c.value==="list"?($(),me(z(Ve),{key:0,path:z(g_),size:20},null,8,["path"])):($(),me(z(Ve),{key:1,path:z(m_),size:20},null,8,["path"]))]),_:1},8,["aria-label"])]),M.value.length===0?($(),me(z(tl),{key:0,name:z(Ue)("office","No {category} found",{category:oe.value})},_c({icon:pe(()=>[le(z(Ve),{path:z(oc),size:48},null,8,["path"])]),_:2},[l.value!=="all"?{name:"description",fn:pe(()=>[wt(xe(z(Ue)("office",'Switch to "All" to see every file you have access to')),1)]),key:"0"}:void 0]),1032,["name"])):c.value==="grid"?($(),X("div",YT,[($(!0),X(Ze,null,Os(M.value,re=>($(),me(A_,{key:re.fileid,onClick:fe=>W(re)},{preview:pe(()=>[le(Ih,{file:re,alt:re.basename},null,8,["file","alt"])]),icon:pe(()=>[le(z(Ve),{svg:C.value.iconSvgInline??"",size:20},null,8,["svg"])]),name:pe(()=>[wt(xe(re.basename),1)]),subname:pe(()=>[le(z($h),{timestamp:re.mtime},null,8,["timestamp"])]),_:2},1032,["onClick"]))),128))])):($(),X("div",JT,[($(!0),X(Ze,null,Os(M.value,re=>($(),me(z(l_),{key:re.fileid,name:re.basename,active:!1,onClick:fe=>W(re)},{icon:pe(()=>[le(Ih,{file:re,size:96,"fallback-icon-size":32,class:"office-overview__list-thumb"},null,8,["file"])]),indicator:pe(()=>[re.attributes?.favorite===1?($(),me(z(Ve),{key:0,path:z(f_),size:16,class:"office-overview__favourite-icon"},null,8,["path"])):he("",!0)]),subname:pe(()=>[le(z($h),{timestamp:re.mtime},null,8,["timestamp"])]),_:2},1032,["name","onClick"]))),128))])),P.value?($(),X("div",QT,[le(z(Qe),{variant:"tertiary",onClick:ne},{icon:pe(()=>[le(z(Ve),{path:z(h_),size:20},null,8,["path"])]),default:pe(()=>[wt(xe(d.value?z(Ue)("office","Search all in Files"):z(Ue)("office","Show all in Files"))+" ",1)]),_:1})])):he("",!0)])):he("",!0)],64)),p.value?($(),me(z(zA),{key:2,name:g.value?g.value.label:"",open:p.value,"close-on-click-outside":"","onUpdate:open":te[5]||(te[5]=re=>p.value=!1)},{actions:pe(()=>[le(z(Qe),{disabled:m.value||!h.value.trim(),variant:"primary",onClick:Y},{default:pe(()=>[wt(xe(z(Ue)("office","Create")),1)]),_:1},8,["disabled"])]),default:pe(()=>[ue("form",{class:"office-overview__create-form",onSubmit:En(Y,["prevent"])},[le(z(c_),{ref_key:"createInput",ref:v,modelValue:h.value,"onUpdate:modelValue":te[4]||(te[4]=re=>h.value=re),label:z(Ue)("office","Filename"),error:!!y.value,"helper-text":y.value,disabled:m.value},null,8,["modelValue","label","error","helper-text","disabled"])],32)]),_:1},8,["name","open"])):he("",!0)],64))]),_:1})]),_:1}))}}),tO=au(eO,[["__scopeId","data-v-f0f929a6"]]),nO=[{name:"creator",path:"/:creatorId?",component:tO},{path:"/:pathMatch(.*)*",redirect:"/"}],xl="/apps/office";function rO(e){const t=e.lastIndexOf(xl);return t===-1?xr(xl):e.slice(0,t+xl.length)}const oO=e3({history:$b(rO(window.location.pathname)),routes:nO}),H0=K4(t3);H0.use(oO),H0.mount("#office"); //# sourceMappingURL=office-main.mjs.map diff --git a/js/office-main.mjs.license b/js/office-main.mjs.license index 00e7d97..8ebbe74 100644 --- a/js/office-main.mjs.license +++ b/js/office-main.mjs.license @@ -77,16 +77,16 @@ This file is generated from multiple sources. Included packages: - version: 6.0.7 - license: MIT - @vue/reactivity - - version: 3.5.41 + - version: 3.5.43 - license: MIT - @vue/runtime-core - - version: 3.5.41 + - version: 3.5.43 - license: MIT - @vue/runtime-dom - - version: 3.5.41 + - version: 3.5.43 - license: MIT - @vue/shared - - version: 3.5.41 + - version: 3.5.43 - license: MIT - @vueuse/core - version: 14.3.0 diff --git a/js/office-main.mjs.map b/js/office-main.mjs.map index 3ed5cfd..b130950 100644 --- a/js/office-main.mjs.map +++ b/js/office-main.mjs.map @@ -1 +1 @@ -{"version":3,"file":"office-main.mjs","sources":["../node_modules/vite-plugin-node-polyfills/shims/global/dist/index.js","../node_modules/@vue/shared/dist/shared.esm-bundler.js","../node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js","../node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js","../node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js","../node_modules/vue-router/dist/useApi-CROJJdhE.js","../node_modules/vue-router/dist/devtools-Bpr7ZAVB.js","../node_modules/vue-router/dist/vue-router.js","../src/App.vue","../node_modules/@nextcloud/router/dist/index.mjs","../node_modules/vite-plugin-node-polyfills/shims/process/dist/index.js","../node_modules/@nextcloud/event-bus/node_modules/semver/internal/debug.js","../node_modules/@nextcloud/event-bus/node_modules/semver/internal/constants.js","../node_modules/@nextcloud/event-bus/node_modules/semver/internal/re.js","../node_modules/@nextcloud/event-bus/node_modules/semver/internal/parse-options.js","../node_modules/@nextcloud/event-bus/node_modules/semver/internal/identifiers.js","../node_modules/@nextcloud/event-bus/node_modules/semver/classes/semver.js","../node_modules/@nextcloud/event-bus/node_modules/semver/functions/major.js","../node_modules/@nextcloud/event-bus/node_modules/semver/functions/parse.js","../node_modules/@nextcloud/event-bus/node_modules/semver/functions/valid.js","../node_modules/@nextcloud/event-bus/dist/index.mjs","../node_modules/@nextcloud/browser-storage/dist/ScopedStorage.js","../node_modules/@nextcloud/browser-storage/dist/StorageBuilder.js","../node_modules/@nextcloud/browser-storage/dist/index.js","../node_modules/@nextcloud/auth/dist/index.mjs","../node_modules/dompurify/dist/purify.es.mjs","../node_modules/escape-html/index.js","../node_modules/@nextcloud/l10n/dist/chunks/translation-DoG5ZELJ.mjs","../node_modules/@nextcloud/l10n/dist/index.mjs","../node_modules/@nextcloud/initial-state/dist/index.js","../node_modules/@nextcloud/capabilities/dist/index.mjs","../node_modules/@vueuse/shared/dist/index.js","../node_modules/@vueuse/core/dist/index.js","../node_modules/splitpanes/dist/splitpanes.es.js","../node_modules/@nextcloud/vue/dist/chunks/mdi-CpchYUUV.mjs","../node_modules/@nextcloud/vue/dist/composables/useIsMobile/index.mjs","../node_modules/@nextcloud/l10n/dist/gettext.mjs","../node_modules/@nextcloud/vue/dist/chunks/_l10n-BCg4udFv.mjs","../node_modules/@nextcloud/vue/dist/chunks/legacy-BoqDmOCa.mjs","../node_modules/@nextcloud/vue/dist/chunks/useNcFormBox-Djlh582y.mjs","../node_modules/@nextcloud/vue/dist/chunks/_plugin-vue_export-helper-1tPrXgE0.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcButton-CdQzGSB6.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcIconSvgWrapper-De-2-ukl.mjs","../node_modules/@nextcloud/logger/dist/index.mjs","../node_modules/@nextcloud/vue/dist/chunks/logger-D3RVzcfQ.mjs","../node_modules/@nextcloud/vue/dist/chunks/appName-DyNMVZpX.mjs","../node_modules/@nextcloud/vue/dist/chunks/rtl-v0UOPAM7.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcAppContent-taTvqnvd.mjs","../node_modules/tabbable/dist/index.esm.js","../node_modules/focus-trap/dist/focus-trap.esm.js","../node_modules/@nextcloud/vue/dist/chunks/NcAppNavigationList-CGSWabRB.mjs","../node_modules/@nextcloud/vue/dist/chunks/focusTrap-HJQ4pqHV.mjs","../node_modules/@nextcloud/vue/dist/chunks/constants-Ciwvl5xb.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcAppNavigation-Bb54U_qJ.mjs","../node_modules/@nextcloud/vue/dist/chunks/ChevronDown-C6gc637b.mjs","../node_modules/@nextcloud/vue/dist/chunks/ChevronUp-ChH8oB7p.mjs","../node_modules/@nextcloud/vue/dist/chunks/ArrowRight-B1ncAhus.mjs","../node_modules/@nextcloud/vue/dist/chunks/Close-CuhcJnX2.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcInputConfirmCancel-BL_BkfXh.mjs","../node_modules/@nextcloud/vue/dist/chunks/createElementId-DhjFt1I9.mjs","../node_modules/@nextcloud/vue/dist/chunks/useNcActions-BzPO2c4h.mjs","../node_modules/@nextcloud/vue/dist/chunks/actionGlobal-BZFdtdJL.mjs","../node_modules/@nextcloud/vue/dist/chunks/actionText-BXR0sWNu.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcActionButton-BJKJG2zO.mjs","../node_modules/@nextcloud/vue/dist/chunks/useTrapStackControl-B6cEicto.mjs","../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs","../node_modules/@floating-ui/core/dist/floating-ui.core.mjs","../node_modules/floating-vue/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs","../node_modules/floating-vue/dist/floating-vue.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcPopover-CtdLAkEU.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcActions-fCXSb_0o.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcLoadingIcon-CInLzPtA.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcVNodes.vue_vue_type_script_lang-BqUHinRZ.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcAppNavigationItem-Dg2d2AwS.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcInputField-C3iof9pY.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcAppNavigationSearch-BWHsAoc1.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcContent-Dd15hgck.mjs","../node_modules/@nextcloud/vue/dist/composables/useFormatDateTime/index.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcDateTime.vue_vue_type_script_setup_true_lang-B4upiZjL.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcDialogButton.vue_vue_type_script_setup_true_lang-WZfDqDwc.mjs","../node_modules/@nextcloud/vue/dist/chunks/platform-CC2ecGvV.mjs","../node_modules/@nextcloud/vue/dist/composables/useHotKey/index.mjs","../node_modules/@nextcloud/vue/dist/functions/isDarkTheme/index.mjs","../node_modules/@nextcloud/vue/dist/composables/useIsFullscreen/index.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcModal-DyOZxq9E.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcDialog-D-qxVQxL.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcEmptyContent--TRhmNAW.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcCounterBubble-VUNXKsnk.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcListItem-Chk9TtPa.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcTextField.vue_vue_type_script_setup_true_lang-DgvCZDmR.mjs","../node_modules/@mdi/js/mdi.js","../src/components/FileCard.vue","../src/components/FilePreview.vue","../src/components/TemplateSection.vue","../node_modules/@nextcloud/sharing/dist/public.js","../node_modules/webdav/dist/web/index.js","../node_modules/@nextcloud/paths/dist/index.mjs","../node_modules/@nextcloud/files/dist/chunks/folder-29HuacU_.mjs","../node_modules/@nextcloud/files/dist/dav.mjs","../src/services/officeFiles.ts","../node_modules/axios/lib/helpers/bind.js","../node_modules/axios/lib/utils.js","../node_modules/axios/lib/helpers/parseHeaders.js","../node_modules/axios/lib/helpers/sanitizeHeaderValue.js","../node_modules/axios/lib/core/AxiosHeaders.js","../node_modules/axios/lib/core/AxiosError.js","../node_modules/axios/lib/helpers/null.js","../node_modules/axios/lib/helpers/toFormData.js","../node_modules/axios/lib/helpers/AxiosURLSearchParams.js","../node_modules/axios/lib/helpers/buildURL.js","../node_modules/axios/lib/core/InterceptorManager.js","../node_modules/axios/lib/defaults/transitional.js","../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","../node_modules/axios/lib/platform/browser/classes/FormData.js","../node_modules/axios/lib/platform/browser/classes/Blob.js","../node_modules/axios/lib/platform/browser/index.js","../node_modules/axios/lib/platform/common/utils.js","../node_modules/axios/lib/platform/index.js","../node_modules/axios/lib/helpers/toURLEncodedForm.js","../node_modules/axios/lib/helpers/formDataToJSON.js","../node_modules/axios/lib/core/methodList.js","../node_modules/axios/lib/defaults/index.js","../node_modules/axios/lib/core/transformData.js","../node_modules/axios/lib/cancel/isCancel.js","../node_modules/axios/lib/cancel/CanceledError.js","../node_modules/axios/lib/core/settle.js","../node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js","../node_modules/axios/lib/helpers/parseProtocol.js","../node_modules/axios/lib/helpers/speedometer.js","../node_modules/axios/lib/helpers/throttle.js","../node_modules/axios/lib/helpers/progressEventReducer.js","../node_modules/axios/lib/helpers/isURLSameOrigin.js","../node_modules/axios/lib/helpers/cookies.js","../node_modules/axios/lib/helpers/isAbsoluteURL.js","../node_modules/axios/lib/helpers/combineURLs.js","../node_modules/axios/lib/core/buildFullPath.js","../node_modules/axios/lib/core/mergeConfig.js","../node_modules/axios/lib/core/setFormDataHeaders.js","../node_modules/axios/lib/helpers/resolveConfig.js","../node_modules/axios/lib/adapters/xhr.js","../node_modules/axios/lib/helpers/composeSignals.js","../node_modules/axios/lib/helpers/trackStream.js","../node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js","../node_modules/axios/lib/env/data.js","../node_modules/axios/lib/adapters/fetch.js","../node_modules/axios/lib/adapters/adapters.js","../node_modules/axios/lib/core/dispatchRequest.js","../node_modules/axios/lib/helpers/validator.js","../node_modules/axios/lib/core/Axios.js","../node_modules/axios/lib/cancel/CancelToken.js","../node_modules/axios/lib/helpers/spread.js","../node_modules/axios/lib/helpers/isAxiosError.js","../node_modules/axios/lib/helpers/HttpStatusCode.js","../node_modules/axios/lib/axios.js","../node_modules/axios/index.js","../node_modules/@nextcloud/axios/dist/client.js","../node_modules/@nextcloud/axios/dist/interceptors/csrf-token.js","../node_modules/@nextcloud/axios/dist/interceptors/maintenance-mode.js","../node_modules/@nextcloud/axios/dist/interceptors/not-logged-in.js","../node_modules/@nextcloud/axios/dist/index.js","../src/services/templates.ts","../src/services/config.ts","../src/utils/fileCategories.ts","../src/utils/validateFilename.ts","../node_modules/@nextcloud/files/dist/index.mjs","../src/utils/fileFilters.ts","../src/views/OfficeOverview.vue","../src/router.ts","../src/main.ts"],"sourcesContent":["const global = globalThis || void 0 || self;\n\nexport { global as default, global };\n//# sourceMappingURL=index.js.map\n","/**\n* @vue/shared v3.5.41\n* (c) 2018-present Yuxi (Evan) You and Vue contributors\n* @license MIT\n**/\n// @__NO_SIDE_EFFECTS__\nfunction makeMap(str) {\n const map = /* @__PURE__ */ Object.create(null);\n for (const key of str.split(\",\")) map[key] = 1;\n return (val) => val in map;\n}\n\nconst EMPTY_OBJ = !!(process.env.NODE_ENV !== \"production\") ? Object.freeze({}) : {};\nconst EMPTY_ARR = !!(process.env.NODE_ENV !== \"production\") ? Object.freeze([]) : [];\nconst NOOP = () => {\n};\nconst NO = () => false;\nconst isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter\n(key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);\nconst isModelListener = (key) => key.startsWith(\"onUpdate:\");\nconst extend = Object.assign;\nconst remove = (arr, el) => {\n const i = arr.indexOf(el);\n if (i > -1) {\n arr.splice(i, 1);\n }\n};\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\nconst hasOwn = (val, key) => hasOwnProperty.call(val, key);\nconst isArray = Array.isArray;\nconst isMap = (val) => toTypeString(val) === \"[object Map]\";\nconst isSet = (val) => toTypeString(val) === \"[object Set]\";\nconst isDate = (val) => toTypeString(val) === \"[object Date]\";\nconst isRegExp = (val) => toTypeString(val) === \"[object RegExp]\";\nconst isFunction = (val) => typeof val === \"function\";\nconst isString = (val) => typeof val === \"string\";\nconst isSymbol = (val) => typeof val === \"symbol\";\nconst isObject = (val) => val !== null && typeof val === \"object\";\nconst isPromise = (val) => {\n return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch);\n};\nconst objectToString = Object.prototype.toString;\nconst toTypeString = (value) => objectToString.call(value);\nconst toRawType = (value) => {\n return toTypeString(value).slice(8, -1);\n};\nconst isPlainObject = (val) => toTypeString(val) === \"[object Object]\";\nconst isIntegerKey = (key) => isString(key) && key !== \"NaN\" && key[0] !== \"-\" && \"\" + parseInt(key, 10) === key;\nconst isReservedProp = /* @__PURE__ */ makeMap(\n // the leading comma is intentional so empty string \"\" is also included\n \",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted\"\n);\nconst isBuiltInDirective = /* @__PURE__ */ makeMap(\n \"bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo\"\n);\nconst cacheStringFunction = (fn) => {\n const cache = /* @__PURE__ */ Object.create(null);\n return ((str) => {\n const hit = cache[str];\n return hit || (cache[str] = fn(str));\n });\n};\nconst camelizeRE = /-\\w/g;\nconst camelize = cacheStringFunction(\n (str) => {\n return str.replace(camelizeRE, (c) => c.slice(1).toUpperCase());\n }\n);\nconst hyphenateRE = /\\B([A-Z])/g;\nconst hyphenate = cacheStringFunction(\n (str) => str.replace(hyphenateRE, \"-$1\").toLowerCase()\n);\nconst capitalize = cacheStringFunction((str) => {\n return str.charAt(0).toUpperCase() + str.slice(1);\n});\nconst toHandlerKey = cacheStringFunction(\n (str) => {\n const s = str ? `on${capitalize(str)}` : ``;\n return s;\n }\n);\nconst hasChanged = (value, oldValue) => !Object.is(value, oldValue);\nconst invokeArrayFns = (fns, ...arg) => {\n for (let i = 0; i < fns.length; i++) {\n fns[i](...arg);\n }\n};\nconst def = (obj, key, value, writable = false) => {\n Object.defineProperty(obj, key, {\n configurable: true,\n enumerable: false,\n writable,\n value\n });\n};\nconst looseToNumber = (val) => {\n const n = parseFloat(val);\n return isNaN(n) ? val : n;\n};\nconst toNumber = (val) => {\n const n = isString(val) ? Number(val) : NaN;\n return isNaN(n) ? val : n;\n};\nlet _globalThis;\nconst getGlobalThis = () => {\n return _globalThis || (_globalThis = typeof globalThis !== \"undefined\" ? globalThis : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : typeof global !== \"undefined\" ? global : {});\n};\nconst identRE = /^[_$a-zA-Z\\xA0-\\uFFFF][_$a-zA-Z0-9\\xA0-\\uFFFF]*$/;\nfunction genPropsAccessExp(name) {\n return identRE.test(name) ? `__props.${name}` : `__props[${JSON.stringify(name)}]`;\n}\nfunction genCacheKey(source, options) {\n return source + JSON.stringify(\n options,\n (_, val) => typeof val === \"function\" ? val.toString() : val\n );\n}\n\nconst PatchFlags = {\n \"TEXT\": 1,\n \"1\": \"TEXT\",\n \"CLASS\": 2,\n \"2\": \"CLASS\",\n \"STYLE\": 4,\n \"4\": \"STYLE\",\n \"PROPS\": 8,\n \"8\": \"PROPS\",\n \"FULL_PROPS\": 16,\n \"16\": \"FULL_PROPS\",\n \"NEED_HYDRATION\": 32,\n \"32\": \"NEED_HYDRATION\",\n \"STABLE_FRAGMENT\": 64,\n \"64\": \"STABLE_FRAGMENT\",\n \"KEYED_FRAGMENT\": 128,\n \"128\": \"KEYED_FRAGMENT\",\n \"UNKEYED_FRAGMENT\": 256,\n \"256\": \"UNKEYED_FRAGMENT\",\n \"NEED_PATCH\": 512,\n \"512\": \"NEED_PATCH\",\n \"DYNAMIC_SLOTS\": 1024,\n \"1024\": \"DYNAMIC_SLOTS\",\n \"DEV_ROOT_FRAGMENT\": 2048,\n \"2048\": \"DEV_ROOT_FRAGMENT\",\n \"CACHED\": -1,\n \"-1\": \"CACHED\",\n \"BAIL\": -2,\n \"-2\": \"BAIL\"\n};\nconst PatchFlagNames = {\n [1]: `TEXT`,\n [2]: `CLASS`,\n [4]: `STYLE`,\n [8]: `PROPS`,\n [16]: `FULL_PROPS`,\n [32]: `NEED_HYDRATION`,\n [64]: `STABLE_FRAGMENT`,\n [128]: `KEYED_FRAGMENT`,\n [256]: `UNKEYED_FRAGMENT`,\n [512]: `NEED_PATCH`,\n [1024]: `DYNAMIC_SLOTS`,\n [2048]: `DEV_ROOT_FRAGMENT`,\n [-1]: `CACHED`,\n [-2]: `BAIL`\n};\n\nconst ShapeFlags = {\n \"ELEMENT\": 1,\n \"1\": \"ELEMENT\",\n \"FUNCTIONAL_COMPONENT\": 2,\n \"2\": \"FUNCTIONAL_COMPONENT\",\n \"STATEFUL_COMPONENT\": 4,\n \"4\": \"STATEFUL_COMPONENT\",\n \"TEXT_CHILDREN\": 8,\n \"8\": \"TEXT_CHILDREN\",\n \"ARRAY_CHILDREN\": 16,\n \"16\": \"ARRAY_CHILDREN\",\n \"SLOTS_CHILDREN\": 32,\n \"32\": \"SLOTS_CHILDREN\",\n \"TELEPORT\": 64,\n \"64\": \"TELEPORT\",\n \"SUSPENSE\": 128,\n \"128\": \"SUSPENSE\",\n \"COMPONENT_SHOULD_KEEP_ALIVE\": 256,\n \"256\": \"COMPONENT_SHOULD_KEEP_ALIVE\",\n \"COMPONENT_KEPT_ALIVE\": 512,\n \"512\": \"COMPONENT_KEPT_ALIVE\",\n \"COMPONENT\": 6,\n \"6\": \"COMPONENT\"\n};\n\nconst SlotFlags = {\n \"STABLE\": 1,\n \"1\": \"STABLE\",\n \"DYNAMIC\": 2,\n \"2\": \"DYNAMIC\",\n \"FORWARDED\": 3,\n \"3\": \"FORWARDED\"\n};\nconst slotFlagsText = {\n [1]: \"STABLE\",\n [2]: \"DYNAMIC\",\n [3]: \"FORWARDED\"\n};\n\nconst GLOBALS_ALLOWED = \"Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol\";\nconst isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED);\nconst isGloballyWhitelisted = isGloballyAllowed;\n\nconst range = 2;\nfunction generateCodeFrame(source, start = 0, end = source.length) {\n start = Math.max(0, Math.min(start, source.length));\n end = Math.max(0, Math.min(end, source.length));\n if (start > end) return \"\";\n let lines = source.split(/(\\r?\\n)/);\n const newlineSequences = lines.filter((_, idx) => idx % 2 === 1);\n lines = lines.filter((_, idx) => idx % 2 === 0);\n let count = 0;\n const res = [];\n for (let i = 0; i < lines.length; i++) {\n count += lines[i].length + (newlineSequences[i] && newlineSequences[i].length || 0);\n if (count >= start) {\n for (let j = i - range; j <= i + range || end > count; j++) {\n if (j < 0 || j >= lines.length) continue;\n const line = j + 1;\n res.push(\n `${line}${\" \".repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}`\n );\n const lineLength = lines[j].length;\n const newLineSeqLength = newlineSequences[j] && newlineSequences[j].length || 0;\n if (j === i) {\n const pad = start - (count - (lineLength + newLineSeqLength));\n const length = Math.max(\n 1,\n end > count ? lineLength - pad : end - start\n );\n res.push(` | ` + \" \".repeat(pad) + \"^\".repeat(length));\n } else if (j > i) {\n if (end > count) {\n const length = Math.max(Math.min(end - count, lineLength), 1);\n res.push(` | ` + \"^\".repeat(length));\n }\n count += lineLength + newLineSeqLength;\n }\n }\n break;\n }\n }\n return res.join(\"\\n\");\n}\n\nfunction normalizeStyle(value) {\n if (isArray(value)) {\n const res = {};\n for (let i = 0; i < value.length; i++) {\n const item = value[i];\n const normalized = isString(item) ? parseStringStyle(item) : normalizeStyle(item);\n if (normalized) {\n for (const key in normalized) {\n res[key] = normalized[key];\n }\n }\n }\n return res;\n } else if (isString(value) || isObject(value)) {\n return value;\n }\n}\nconst listDelimiterRE = /;(?![^(]*\\))/g;\nconst propertyDelimiterRE = /:([^]+)/;\nconst styleCommentRE = /\\/\\*[^]*?\\*\\//g;\nfunction parseStringStyle(cssText) {\n const ret = {};\n cssText.replace(styleCommentRE, \"\").split(listDelimiterRE).forEach((item) => {\n if (item) {\n const tmp = item.split(propertyDelimiterRE);\n tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());\n }\n });\n return ret;\n}\nfunction stringifyStyle(styles) {\n if (!styles) return \"\";\n if (isString(styles)) return styles;\n let ret = \"\";\n for (const key in styles) {\n const value = styles[key];\n if (isString(value) || typeof value === \"number\") {\n const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);\n ret += `${normalizedKey}:${value};`;\n }\n }\n return ret;\n}\nfunction normalizeClass(value) {\n let res = \"\";\n if (isString(value)) {\n res = value;\n } else if (isArray(value)) {\n for (let i = 0; i < value.length; i++) {\n const normalized = normalizeClass(value[i]);\n if (normalized) {\n res += normalized + \" \";\n }\n }\n } else if (isObject(value)) {\n for (const name in value) {\n if (value[name]) {\n res += name + \" \";\n }\n }\n }\n return res.trim();\n}\nfunction normalizeProps(props) {\n if (!props) return null;\n let { class: klass, style } = props;\n if (klass && !isString(klass)) {\n props.class = normalizeClass(klass);\n }\n if (style) {\n props.style = normalizeStyle(style);\n }\n return props;\n}\n\nconst HTML_TAGS = \"html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot\";\nconst SVG_TAGS = \"svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view\";\nconst MATH_TAGS = \"annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics\";\nconst VOID_TAGS = \"area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr\";\nconst isHTMLTag = /* @__PURE__ */ makeMap(HTML_TAGS);\nconst isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);\nconst isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);\nconst isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);\n\nconst specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;\nconst isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);\nconst isBooleanAttr = /* @__PURE__ */ makeMap(\n specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`\n);\nfunction includeBooleanAttr(value) {\n return !!value || value === \"\";\n}\nconst unsafeAttrCharRE = /[>/=\"'\\u0009\\u000a\\u000c\\u0020]/;\nconst attrValidationCache = {};\nfunction isSSRSafeAttrName(name) {\n if (attrValidationCache.hasOwnProperty(name)) {\n return attrValidationCache[name];\n }\n const isUnsafe = unsafeAttrCharRE.test(name);\n if (isUnsafe) {\n console.error(`unsafe attribute name: ${name}`);\n }\n return attrValidationCache[name] = !isUnsafe;\n}\nconst propsToAttrMap = {\n acceptCharset: \"accept-charset\",\n className: \"class\",\n htmlFor: \"for\",\n httpEquiv: \"http-equiv\"\n};\nconst isKnownHtmlAttr = /* @__PURE__ */ makeMap(\n `accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap`\n);\nconst isKnownSvgAttr = /* @__PURE__ */ makeMap(\n `xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`\n);\nconst isKnownMathMLAttr = /* @__PURE__ */ makeMap(\n `accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns`\n);\nfunction isRenderableAttrValue(value) {\n if (value == null) {\n return false;\n }\n const type = typeof value;\n return type === \"string\" || type === \"number\" || type === \"boolean\";\n}\n\nconst escapeRE = /[\"'&<>]/;\nfunction escapeHtml(string) {\n const str = \"\" + string;\n const match = escapeRE.exec(str);\n if (!match) {\n return str;\n }\n let html = \"\";\n let escaped;\n let index;\n let lastIndex = 0;\n for (index = match.index; index < str.length; index++) {\n switch (str.charCodeAt(index)) {\n case 34:\n escaped = \""\";\n break;\n case 38:\n escaped = \"&\";\n break;\n case 39:\n escaped = \"'\";\n break;\n case 60:\n escaped = \"<\";\n break;\n case 62:\n escaped = \">\";\n break;\n default:\n continue;\n }\n if (lastIndex !== index) {\n html += str.slice(lastIndex, index);\n }\n lastIndex = index + 1;\n html += escaped;\n }\n return lastIndex !== index ? html + str.slice(lastIndex, index) : html;\n}\nconst commentStripRE = /^(?:-?>)+||--!>|?@[\\\\\\]^`{|}~]/g;\nfunction getEscapedCssVarName(key, doubleEscape) {\n return key.replace(\n cssVarNameEscapeSymbolsRE,\n (s) => doubleEscape ? s === '\"' ? '\\\\\\\\\\\\\"' : `\\\\\\\\${s}` : `\\\\${s}`\n );\n}\n\nfunction looseCompareArrays(a, b) {\n if (a.length !== b.length) return false;\n let equal = true;\n for (let i = 0; equal && i < a.length; i++) {\n equal = looseEqual(a[i], b[i]);\n }\n return equal;\n}\nfunction looseEqual(a, b) {\n if (a === b) return true;\n let aValidType = isDate(a);\n let bValidType = isDate(b);\n if (aValidType || bValidType) {\n return aValidType && bValidType ? a.getTime() === b.getTime() : false;\n }\n aValidType = isSymbol(a);\n bValidType = isSymbol(b);\n if (aValidType || bValidType) {\n return a === b;\n }\n aValidType = isArray(a);\n bValidType = isArray(b);\n if (aValidType || bValidType) {\n return aValidType && bValidType ? looseCompareArrays(a, b) : false;\n }\n aValidType = isObject(a);\n bValidType = isObject(b);\n if (aValidType || bValidType) {\n if (!aValidType || !bValidType) {\n return false;\n }\n const aKeysCount = Object.keys(a).length;\n const bKeysCount = Object.keys(b).length;\n if (aKeysCount !== bKeysCount) {\n return false;\n }\n for (const key in a) {\n const aHasKey = a.hasOwnProperty(key);\n const bHasKey = b.hasOwnProperty(key);\n if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a[key], b[key])) {\n return false;\n }\n }\n }\n return String(a) === String(b);\n}\nfunction looseIndexOf(arr, val) {\n return arr.findIndex((item) => looseEqual(item, val));\n}\n\nconst isRef = (val) => {\n return !!(val && val[\"__v_isRef\"] === true);\n};\nconst toDisplayString = (val) => {\n return isString(val) ? val : val == null ? \"\" : isArray(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? isRef(val) ? toDisplayString(val.value) : JSON.stringify(val, replacer, 2) : String(val);\n};\nconst replacer = (_key, val) => {\n if (isRef(val)) {\n return replacer(_key, val.value);\n } else if (isMap(val)) {\n return {\n [`Map(${val.size})`]: [...val.entries()].reduce(\n (entries, [key, val2], i) => {\n entries[stringifySymbol(key, i) + \" =>\"] = val2;\n return entries;\n },\n {}\n )\n };\n } else if (isSet(val)) {\n return {\n [`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v))\n };\n } else if (isSymbol(val)) {\n return stringifySymbol(val);\n } else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {\n return String(val);\n }\n return val;\n};\nconst stringifySymbol = (v, i = \"\") => {\n var _a;\n return (\n // Symbol.description in es2019+ so we need to cast here to pass\n // the lib: es2016 check\n isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v\n );\n};\n\nfunction normalizeCssVarValue(value) {\n if (value == null) {\n return \"initial\";\n }\n if (typeof value === \"string\") {\n return value === \"\" ? \" \" : value;\n }\n if (typeof value !== \"number\" || !Number.isFinite(value)) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n console.warn(\n \"[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:\",\n value\n );\n }\n }\n return String(value);\n}\n\nexport { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags, camelize, capitalize, cssVarNameEscapeSymbolsRE, def, escapeHtml, escapeHtmlComment, extend, genCacheKey, genPropsAccessExp, generateCodeFrame, getEscapedCssVarName, getGlobalThis, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isArray, isBooleanAttr, isBuiltInDirective, isDate, isFunction, isGloballyAllowed, isGloballyWhitelisted, isHTMLTag, isIntegerKey, isKnownHtmlAttr, isKnownMathMLAttr, isKnownSvgAttr, isMap, isMathMLTag, isModelListener, isObject, isOn, isPlainObject, isPromise, isRegExp, isRenderableAttrValue, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, looseToNumber, makeMap, normalizeClass, normalizeCssVarValue, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };\n","/**\n* @vue/reactivity v3.5.41\n* (c) 2018-present Yuxi (Evan) You and Vue contributors\n* @license MIT\n**/\nimport { extend, hasChanged, isArray, isIntegerKey, isSymbol, isMap, hasOwn, isObject, makeMap, capitalize, toRawType, def, isFunction, EMPTY_OBJ, isSet, isPlainObject, remove, NOOP } from '@vue/shared';\n\nfunction warn(msg, ...args) {\n console.warn(`[Vue warn] ${msg}`, ...args);\n}\n\nlet activeEffectScope;\nclass EffectScope {\n // TODO isolatedDeclarations \"__v_skip\"\n constructor(detached = false) {\n this.detached = detached;\n /**\n * @internal\n */\n this._active = true;\n /**\n * @internal track `on` calls, allow `on` call multiple times\n */\n this._on = 0;\n /**\n * @internal\n */\n this.effects = [];\n /**\n * @internal\n */\n this.cleanups = [];\n this._isPaused = false;\n this._warnOnRun = true;\n this.__v_skip = true;\n if (!detached && activeEffectScope) {\n if (activeEffectScope.active) {\n this.parent = activeEffectScope;\n this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(\n this\n ) - 1;\n } else {\n this._active = false;\n this._warnOnRun = false;\n }\n }\n }\n get active() {\n return this._active;\n }\n pause() {\n if (this._active) {\n this._isPaused = true;\n let i, l;\n if (this.scopes) {\n const scopes = this.scopes.slice();\n for (i = 0, l = scopes.length; i < l; i++) {\n scopes[i].pause();\n }\n }\n for (i = 0, l = this.effects.length; i < l; i++) {\n this.effects[i].pause();\n }\n }\n }\n /**\n * Resumes the effect scope, including all child scopes and effects.\n */\n resume() {\n if (this._active) {\n if (this._isPaused) {\n this._isPaused = false;\n let i, l;\n if (this.scopes) {\n const scopes = this.scopes.slice();\n for (i = 0, l = scopes.length; i < l; i++) {\n scopes[i].resume();\n }\n }\n const effects = this.effects.slice();\n for (i = 0, l = effects.length; i < l; i++) {\n effects[i].resume();\n }\n }\n }\n }\n run(fn) {\n if (this._active) {\n const currentEffectScope = activeEffectScope;\n try {\n activeEffectScope = this;\n return fn();\n } finally {\n activeEffectScope = currentEffectScope;\n }\n } else if (!!(process.env.NODE_ENV !== \"production\") && this._warnOnRun) {\n warn(`cannot run an inactive effect scope.`);\n }\n }\n /**\n * This should only be called on non-detached scopes\n * @internal\n */\n on() {\n if (++this._on === 1) {\n this.prevScope = activeEffectScope;\n activeEffectScope = this;\n }\n }\n /**\n * This should only be called on non-detached scopes\n * @internal\n */\n off() {\n if (this._on > 0 && --this._on === 0) {\n if (activeEffectScope === this) {\n activeEffectScope = this.prevScope;\n } else {\n let current = activeEffectScope;\n while (current) {\n if (current.prevScope === this) {\n current.prevScope = this.prevScope;\n break;\n }\n current = current.prevScope;\n }\n }\n this.prevScope = void 0;\n }\n }\n stop(fromParent) {\n if (this._active) {\n this._active = false;\n let i, l;\n for (i = 0, l = this.effects.length; i < l; i++) {\n this.effects[i].stop();\n }\n this.effects.length = 0;\n for (i = 0, l = this.cleanups.length; i < l; i++) {\n this.cleanups[i]();\n }\n this.cleanups.length = 0;\n if (this.scopes) {\n const scopes = this.scopes.slice();\n for (i = 0, l = scopes.length; i < l; i++) {\n scopes[i].stop(true);\n }\n this.scopes.length = 0;\n }\n if (!this.detached && this.parent && !fromParent) {\n const last = this.parent.scopes.pop();\n if (last && last !== this) {\n this.parent.scopes[this.index] = last;\n last.index = this.index;\n }\n }\n this.parent = void 0;\n }\n }\n}\nfunction effectScope(detached) {\n return new EffectScope(detached);\n}\nfunction getCurrentScope() {\n return activeEffectScope;\n}\nfunction onScopeDispose(fn, failSilently = false) {\n if (activeEffectScope) {\n activeEffectScope.cleanups.push(fn);\n } else if (!!(process.env.NODE_ENV !== \"production\") && !failSilently) {\n warn(\n `onScopeDispose() is called when there is no active effect scope to be associated with.`\n );\n }\n}\n\nlet activeSub;\nconst EffectFlags = {\n \"ACTIVE\": 1,\n \"1\": \"ACTIVE\",\n \"RUNNING\": 2,\n \"2\": \"RUNNING\",\n \"TRACKING\": 4,\n \"4\": \"TRACKING\",\n \"NOTIFIED\": 8,\n \"8\": \"NOTIFIED\",\n \"DIRTY\": 16,\n \"16\": \"DIRTY\",\n \"ALLOW_RECURSE\": 32,\n \"32\": \"ALLOW_RECURSE\",\n \"PAUSED\": 64,\n \"64\": \"PAUSED\",\n \"EVALUATED\": 128,\n \"128\": \"EVALUATED\"\n};\nconst pausedQueueEffects = /* @__PURE__ */ new WeakSet();\nclass ReactiveEffect {\n constructor(fn) {\n this.fn = fn;\n /**\n * @internal\n */\n this.deps = void 0;\n /**\n * @internal\n */\n this.depsTail = void 0;\n /**\n * @internal\n */\n this.flags = 1 | 4;\n /**\n * @internal\n */\n this.next = void 0;\n /**\n * @internal\n */\n this.cleanup = void 0;\n this.scheduler = void 0;\n if (activeEffectScope) {\n if (activeEffectScope.active) {\n activeEffectScope.effects.push(this);\n } else {\n this.flags &= -2;\n }\n }\n }\n pause() {\n this.flags |= 64;\n }\n resume() {\n if (this.flags & 64) {\n this.flags &= -65;\n if (pausedQueueEffects.has(this)) {\n pausedQueueEffects.delete(this);\n this.trigger();\n }\n }\n }\n /**\n * @internal\n */\n notify() {\n if (this.flags & 2 && !(this.flags & 32)) {\n return;\n }\n if (!(this.flags & 8)) {\n batch(this);\n }\n }\n run() {\n if (!(this.flags & 1)) {\n return this.fn();\n }\n this.flags |= 2;\n cleanupEffect(this);\n prepareDeps(this);\n const prevEffect = activeSub;\n const prevShouldTrack = shouldTrack;\n activeSub = this;\n shouldTrack = true;\n try {\n return this.fn();\n } finally {\n if (!!(process.env.NODE_ENV !== \"production\") && activeSub !== this) {\n warn(\n \"Active effect was not restored correctly - this is likely a Vue internal bug.\"\n );\n }\n cleanupDeps(this);\n activeSub = prevEffect;\n shouldTrack = prevShouldTrack;\n this.flags &= -3;\n }\n }\n stop() {\n if (this.flags & 1) {\n for (let link = this.deps; link; link = link.nextDep) {\n removeSub(link);\n }\n this.deps = this.depsTail = void 0;\n cleanupEffect(this);\n this.onStop && this.onStop();\n this.flags &= -2;\n }\n }\n trigger() {\n if (this.flags & 64) {\n pausedQueueEffects.add(this);\n } else if (this.scheduler) {\n this.scheduler();\n } else {\n this.runIfDirty();\n }\n }\n /**\n * @internal\n */\n runIfDirty() {\n if (isDirty(this)) {\n this.run();\n }\n }\n get dirty() {\n return isDirty(this);\n }\n}\nlet batchDepth = 0;\nlet batchedSub;\nlet batchedComputed;\nfunction batch(sub, isComputed = false) {\n sub.flags |= 8;\n if (isComputed) {\n sub.next = batchedComputed;\n batchedComputed = sub;\n return;\n }\n sub.next = batchedSub;\n batchedSub = sub;\n}\nfunction startBatch() {\n batchDepth++;\n}\nfunction endBatch() {\n if (--batchDepth > 0) {\n return;\n }\n if (batchedComputed) {\n let e = batchedComputed;\n batchedComputed = void 0;\n while (e) {\n const next = e.next;\n e.next = void 0;\n e.flags &= -9;\n e = next;\n }\n }\n let error;\n while (batchedSub) {\n let e = batchedSub;\n batchedSub = void 0;\n while (e) {\n const next = e.next;\n e.next = void 0;\n e.flags &= -9;\n if (e.flags & 1) {\n try {\n ;\n e.trigger();\n } catch (err) {\n if (!error) error = err;\n }\n }\n e = next;\n }\n }\n if (error) throw error;\n}\nfunction prepareDeps(sub) {\n for (let link = sub.deps; link; link = link.nextDep) {\n link.version = -1;\n link.prevActiveLink = link.dep.activeLink;\n link.dep.activeLink = link;\n }\n}\nfunction cleanupDeps(sub) {\n let head;\n let tail = sub.depsTail;\n let link = tail;\n while (link) {\n const prev = link.prevDep;\n if (link.version === -1) {\n if (link === tail) tail = prev;\n removeSub(link);\n removeDep(link);\n } else {\n head = link;\n }\n link.dep.activeLink = link.prevActiveLink;\n link.prevActiveLink = void 0;\n link = prev;\n }\n sub.deps = head;\n sub.depsTail = tail;\n}\nfunction isDirty(sub) {\n for (let link = sub.deps; link; link = link.nextDep) {\n if (link.dep.version !== link.version || link.dep.computed && (refreshComputed(link.dep.computed) || link.dep.version !== link.version)) {\n return true;\n }\n }\n if (sub._dirty) {\n return true;\n }\n return false;\n}\nfunction refreshComputed(computed) {\n if (computed.flags & 4 && !(computed.flags & 16)) {\n return;\n }\n computed.flags &= -17;\n if (computed.globalVersion === globalVersion) {\n return;\n }\n computed.globalVersion = globalVersion;\n if (!computed.isSSR && computed.flags & 128 && (!computed.deps && !computed._dirty || !isDirty(computed))) {\n return;\n }\n computed.flags |= 2;\n const dep = computed.dep;\n const prevSub = activeSub;\n const prevShouldTrack = shouldTrack;\n activeSub = computed;\n shouldTrack = true;\n try {\n prepareDeps(computed);\n const value = computed.fn(computed._value);\n if (dep.version === 0 || hasChanged(value, computed._value)) {\n computed.flags |= 128;\n computed._value = value;\n dep.version++;\n }\n } catch (err) {\n dep.version++;\n throw err;\n } finally {\n activeSub = prevSub;\n shouldTrack = prevShouldTrack;\n cleanupDeps(computed);\n computed.flags &= -3;\n }\n}\nfunction removeSub(link, soft = false) {\n const { dep, prevSub, nextSub } = link;\n if (prevSub) {\n prevSub.nextSub = nextSub;\n link.prevSub = void 0;\n }\n if (nextSub) {\n nextSub.prevSub = prevSub;\n link.nextSub = void 0;\n }\n if (!!(process.env.NODE_ENV !== \"production\") && dep.subsHead === link) {\n dep.subsHead = nextSub;\n }\n if (dep.subs === link) {\n dep.subs = prevSub;\n if (!prevSub && dep.computed) {\n dep.computed.flags &= -5;\n for (let l = dep.computed.deps; l; l = l.nextDep) {\n removeSub(l, true);\n }\n }\n }\n if (!soft && !--dep.sc && dep.map) {\n dep.map.delete(dep.key);\n }\n}\nfunction removeDep(link) {\n const { prevDep, nextDep } = link;\n if (prevDep) {\n prevDep.nextDep = nextDep;\n link.prevDep = void 0;\n }\n if (nextDep) {\n nextDep.prevDep = prevDep;\n link.nextDep = void 0;\n }\n}\nfunction effect(fn, options) {\n if (fn.effect instanceof ReactiveEffect) {\n fn = fn.effect.fn;\n }\n const e = new ReactiveEffect(fn);\n if (options) {\n extend(e, options);\n }\n try {\n e.run();\n } catch (err) {\n e.stop();\n throw err;\n }\n const runner = e.run.bind(e);\n runner.effect = e;\n return runner;\n}\nfunction stop(runner) {\n runner.effect.stop();\n}\nlet shouldTrack = true;\nconst trackStack = [];\nfunction pauseTracking() {\n trackStack.push(shouldTrack);\n shouldTrack = false;\n}\nfunction enableTracking() {\n trackStack.push(shouldTrack);\n shouldTrack = true;\n}\nfunction resetTracking() {\n const last = trackStack.pop();\n shouldTrack = last === void 0 ? true : last;\n}\nfunction onEffectCleanup(fn, failSilently = false) {\n if (activeSub instanceof ReactiveEffect) {\n activeSub.cleanup = fn;\n } else if (!!(process.env.NODE_ENV !== \"production\") && !failSilently) {\n warn(\n `onEffectCleanup() was called when there was no active effect to associate with.`\n );\n }\n}\nfunction cleanupEffect(e) {\n const { cleanup } = e;\n e.cleanup = void 0;\n if (cleanup) {\n const prevSub = activeSub;\n activeSub = void 0;\n try {\n cleanup();\n } finally {\n activeSub = prevSub;\n }\n }\n}\n\nlet globalVersion = 0;\nclass Link {\n constructor(sub, dep) {\n this.sub = sub;\n this.dep = dep;\n this.version = dep.version;\n this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;\n }\n}\nclass Dep {\n // TODO isolatedDeclarations \"__v_skip\"\n constructor(computed) {\n this.computed = computed;\n this.version = 0;\n /**\n * Link between this dep and the current active effect\n */\n this.activeLink = void 0;\n /**\n * Doubly linked list representing the subscribing effects (tail)\n */\n this.subs = void 0;\n /**\n * For object property deps cleanup\n */\n this.map = void 0;\n this.key = void 0;\n /**\n * Subscriber counter\n */\n this.sc = 0;\n /**\n * @internal\n */\n this.__v_skip = true;\n if (!!(process.env.NODE_ENV !== \"production\")) {\n this.subsHead = void 0;\n }\n }\n track(debugInfo) {\n if (!activeSub || !shouldTrack || activeSub === this.computed) {\n return;\n }\n let link = this.activeLink;\n if (link === void 0 || link.sub !== activeSub) {\n link = this.activeLink = new Link(activeSub, this);\n if (!activeSub.deps) {\n activeSub.deps = activeSub.depsTail = link;\n } else {\n link.prevDep = activeSub.depsTail;\n activeSub.depsTail.nextDep = link;\n activeSub.depsTail = link;\n }\n addSub(link);\n } else if (link.version === -1) {\n link.version = this.version;\n if (link.nextDep) {\n const next = link.nextDep;\n next.prevDep = link.prevDep;\n if (link.prevDep) {\n link.prevDep.nextDep = next;\n }\n link.prevDep = activeSub.depsTail;\n link.nextDep = void 0;\n activeSub.depsTail.nextDep = link;\n activeSub.depsTail = link;\n if (activeSub.deps === link) {\n activeSub.deps = next;\n }\n }\n }\n if (!!(process.env.NODE_ENV !== \"production\") && activeSub.onTrack) {\n activeSub.onTrack(\n extend(\n {\n effect: activeSub\n },\n debugInfo\n )\n );\n }\n return link;\n }\n trigger(debugInfo) {\n this.version++;\n globalVersion++;\n this.notify(debugInfo);\n }\n notify(debugInfo) {\n startBatch();\n try {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n for (let head = this.subsHead; head; head = head.nextSub) {\n if (head.sub.onTrigger && !(head.sub.flags & 8)) {\n head.sub.onTrigger(\n extend(\n {\n effect: head.sub\n },\n debugInfo\n )\n );\n }\n }\n }\n for (let link = this.subs; link; link = link.prevSub) {\n if (link.sub.notify()) {\n ;\n link.sub.dep.notify();\n }\n }\n } finally {\n endBatch();\n }\n }\n}\nfunction addSub(link) {\n link.dep.sc++;\n if (link.sub.flags & 4) {\n const computed = link.dep.computed;\n if (computed && !link.dep.subs) {\n computed.flags |= 4 | 16;\n for (let l = computed.deps; l; l = l.nextDep) {\n addSub(l);\n }\n }\n const currentTail = link.dep.subs;\n if (currentTail !== link) {\n link.prevSub = currentTail;\n if (currentTail) currentTail.nextSub = link;\n }\n if (!!(process.env.NODE_ENV !== \"production\") && link.dep.subsHead === void 0) {\n link.dep.subsHead = link;\n }\n link.dep.subs = link;\n }\n}\nconst targetMap = /* @__PURE__ */ new WeakMap();\nconst ITERATE_KEY = /* @__PURE__ */ Symbol(\n !!(process.env.NODE_ENV !== \"production\") ? \"Object iterate\" : \"\"\n);\nconst MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(\n !!(process.env.NODE_ENV !== \"production\") ? \"Map keys iterate\" : \"\"\n);\nconst ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(\n !!(process.env.NODE_ENV !== \"production\") ? \"Array iterate\" : \"\"\n);\nfunction track(target, type, key) {\n if (shouldTrack && activeSub) {\n let depsMap = targetMap.get(target);\n if (!depsMap) {\n targetMap.set(target, depsMap = /* @__PURE__ */ new Map());\n }\n let dep = depsMap.get(key);\n if (!dep) {\n depsMap.set(key, dep = new Dep());\n dep.map = depsMap;\n dep.key = key;\n }\n if (!!(process.env.NODE_ENV !== \"production\")) {\n dep.track({\n target,\n type,\n key\n });\n } else {\n dep.track();\n }\n }\n}\nfunction trigger(target, type, key, newValue, oldValue, oldTarget) {\n const depsMap = targetMap.get(target);\n if (!depsMap) {\n globalVersion++;\n return;\n }\n const run = (dep) => {\n if (dep) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n dep.trigger({\n target,\n type,\n key,\n newValue,\n oldValue,\n oldTarget\n });\n } else {\n dep.trigger();\n }\n }\n };\n startBatch();\n if (type === \"clear\") {\n depsMap.forEach(run);\n } else {\n const targetIsArray = isArray(target);\n const isArrayIndex = targetIsArray && isIntegerKey(key);\n if (targetIsArray && key === \"length\") {\n const newLength = Number(newValue);\n depsMap.forEach((dep, key2) => {\n if (key2 === \"length\" || key2 === ARRAY_ITERATE_KEY || !isSymbol(key2) && key2 >= newLength) {\n run(dep);\n }\n });\n } else {\n if (key !== void 0 || depsMap.has(void 0)) {\n run(depsMap.get(key));\n }\n if (isArrayIndex) {\n run(depsMap.get(ARRAY_ITERATE_KEY));\n }\n switch (type) {\n case \"add\":\n if (!targetIsArray) {\n run(depsMap.get(ITERATE_KEY));\n if (isMap(target)) {\n run(depsMap.get(MAP_KEY_ITERATE_KEY));\n }\n } else if (isArrayIndex) {\n run(depsMap.get(\"length\"));\n }\n break;\n case \"delete\":\n if (!targetIsArray) {\n run(depsMap.get(ITERATE_KEY));\n if (isMap(target)) {\n run(depsMap.get(MAP_KEY_ITERATE_KEY));\n }\n }\n break;\n case \"set\":\n if (isMap(target)) {\n run(depsMap.get(ITERATE_KEY));\n }\n break;\n }\n }\n }\n endBatch();\n}\nfunction getDepFromReactive(object, key) {\n const depMap = targetMap.get(object);\n return depMap && depMap.get(key);\n}\n\nfunction reactiveReadArray(array) {\n const raw = toRaw(array);\n if (raw === array) return raw;\n track(raw, \"iterate\", ARRAY_ITERATE_KEY);\n return isShallow(array) ? raw : raw.map(toReactive);\n}\nfunction shallowReadArray(arr) {\n track(arr = toRaw(arr), \"iterate\", ARRAY_ITERATE_KEY);\n return arr;\n}\nfunction toWrapped(target, item) {\n if (isReadonly(target)) {\n return isReactive(target) ? toReadonly(toReactive(item)) : toReadonly(item);\n }\n return toReactive(item);\n}\nconst arrayInstrumentations = {\n __proto__: null,\n [Symbol.iterator]() {\n return iterator(this, Symbol.iterator, (item) => toWrapped(this, item));\n },\n concat(...args) {\n return reactiveReadArray(this).concat(\n ...args.map((x) => isArray(x) ? reactiveReadArray(x) : x)\n );\n },\n entries() {\n return iterator(this, \"entries\", (value) => {\n value[1] = toWrapped(this, value[1]);\n return value;\n });\n },\n every(fn, thisArg) {\n return apply(this, \"every\", fn, thisArg, void 0, arguments);\n },\n filter(fn, thisArg) {\n return apply(\n this,\n \"filter\",\n fn,\n thisArg,\n (v) => v.map((item) => toWrapped(this, item)),\n arguments\n );\n },\n find(fn, thisArg) {\n return apply(\n this,\n \"find\",\n fn,\n thisArg,\n (item) => toWrapped(this, item),\n arguments\n );\n },\n findIndex(fn, thisArg) {\n return apply(this, \"findIndex\", fn, thisArg, void 0, arguments);\n },\n findLast(fn, thisArg) {\n return apply(\n this,\n \"findLast\",\n fn,\n thisArg,\n (item) => toWrapped(this, item),\n arguments\n );\n },\n findLastIndex(fn, thisArg) {\n return apply(this, \"findLastIndex\", fn, thisArg, void 0, arguments);\n },\n // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement\n forEach(fn, thisArg) {\n return apply(this, \"forEach\", fn, thisArg, void 0, arguments);\n },\n includes(...args) {\n return searchProxy(this, \"includes\", args);\n },\n indexOf(...args) {\n return searchProxy(this, \"indexOf\", args);\n },\n join(separator) {\n return reactiveReadArray(this).join(separator);\n },\n // keys() iterator only reads `length`, no optimization required\n lastIndexOf(...args) {\n return searchProxy(this, \"lastIndexOf\", args);\n },\n map(fn, thisArg) {\n return apply(this, \"map\", fn, thisArg, void 0, arguments);\n },\n pop() {\n return noTracking(this, \"pop\");\n },\n push(...args) {\n return noTracking(this, \"push\", args);\n },\n reduce(fn, ...args) {\n return reduce(this, \"reduce\", fn, args);\n },\n reduceRight(fn, ...args) {\n return reduce(this, \"reduceRight\", fn, args);\n },\n shift() {\n return noTracking(this, \"shift\");\n },\n // slice could use ARRAY_ITERATE but also seems to beg for range tracking\n some(fn, thisArg) {\n return apply(this, \"some\", fn, thisArg, void 0, arguments);\n },\n splice(...args) {\n return noTracking(this, \"splice\", args);\n },\n toReversed() {\n return reactiveReadArray(this).toReversed();\n },\n toSorted(comparer) {\n return reactiveReadArray(this).toSorted(comparer);\n },\n toSpliced(...args) {\n return reactiveReadArray(this).toSpliced(...args);\n },\n unshift(...args) {\n return noTracking(this, \"unshift\", args);\n },\n values() {\n return iterator(this, \"values\", (item) => toWrapped(this, item));\n }\n};\nfunction iterator(self, method, wrapValue) {\n const arr = shallowReadArray(self);\n const iter = arr[method]();\n if (arr !== self && !isShallow(self)) {\n iter._next = iter.next;\n iter.next = () => {\n const result = iter._next();\n if (!result.done) {\n result.value = wrapValue(result.value);\n }\n return result;\n };\n }\n return iter;\n}\nconst arrayProto = Array.prototype;\nfunction apply(self, method, fn, thisArg, wrappedRetFn, args) {\n const arr = shallowReadArray(self);\n const needsWrap = arr !== self && !isShallow(self);\n const methodFn = arr[method];\n if (methodFn !== arrayProto[method]) {\n const result2 = methodFn.apply(self, args);\n return needsWrap ? toReactive(result2) : result2;\n }\n let wrappedFn = fn;\n if (arr !== self) {\n if (needsWrap) {\n wrappedFn = function(item, index) {\n return fn.call(this, toWrapped(self, item), index, self);\n };\n } else if (fn.length > 2) {\n wrappedFn = function(item, index) {\n return fn.call(this, item, index, self);\n };\n }\n }\n const result = methodFn.call(arr, wrappedFn, thisArg);\n return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result;\n}\nfunction reduce(self, method, fn, args) {\n const arr = shallowReadArray(self);\n const needsWrap = arr !== self && !isShallow(self);\n let wrappedFn = fn;\n let wrapInitialAccumulator = false;\n if (arr !== self) {\n if (needsWrap) {\n wrapInitialAccumulator = args.length === 0;\n wrappedFn = function(acc, item, index) {\n if (wrapInitialAccumulator) {\n wrapInitialAccumulator = false;\n acc = toWrapped(self, acc);\n }\n return fn.call(this, acc, toWrapped(self, item), index, self);\n };\n } else if (fn.length > 3) {\n wrappedFn = function(acc, item, index) {\n return fn.call(this, acc, item, index, self);\n };\n }\n }\n const result = arr[method](wrappedFn, ...args);\n return wrapInitialAccumulator ? toWrapped(self, result) : result;\n}\nfunction searchProxy(self, method, args) {\n const arr = toRaw(self);\n track(arr, \"iterate\", ARRAY_ITERATE_KEY);\n const res = arr[method](...args);\n if ((res === -1 || res === false) && isProxy(args[0])) {\n args[0] = toRaw(args[0]);\n return arr[method](...args);\n }\n return res;\n}\nfunction noTracking(self, method, args = []) {\n pauseTracking();\n startBatch();\n const res = toRaw(self)[method].apply(self, args);\n endBatch();\n resetTracking();\n return res;\n}\n\nconst isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);\nconst builtInSymbols = new Set(\n /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== \"arguments\" && key !== \"caller\").map((key) => Symbol[key]).filter(isSymbol)\n);\nfunction hasOwnProperty(key) {\n if (!isSymbol(key)) key = String(key);\n const obj = toRaw(this);\n track(obj, \"has\", key);\n return obj.hasOwnProperty(key);\n}\nclass BaseReactiveHandler {\n constructor(_isReadonly = false, _isShallow = false) {\n this._isReadonly = _isReadonly;\n this._isShallow = _isShallow;\n }\n get(target, key, receiver) {\n if (key === \"__v_skip\") return target[\"__v_skip\"];\n const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow;\n if (key === \"__v_isReactive\") {\n return !isReadonly2;\n } else if (key === \"__v_isReadonly\") {\n return isReadonly2;\n } else if (key === \"__v_isShallow\") {\n return isShallow2;\n } else if (key === \"__v_raw\") {\n if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype\n // this means the receiver is a user proxy of the reactive proxy\n Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {\n return target;\n }\n return;\n }\n const targetIsArray = isArray(target);\n if (!isReadonly2) {\n let fn;\n if (targetIsArray && (fn = arrayInstrumentations[key])) {\n return fn;\n }\n if (key === \"hasOwnProperty\") {\n return hasOwnProperty;\n }\n }\n const res = Reflect.get(\n target,\n key,\n // if this is a proxy wrapping a ref, return methods using the raw ref\n // as receiver so that we don't have to call `toRaw` on the ref in all\n // its class methods\n isRef(target) ? target : receiver\n );\n if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {\n return res;\n }\n if (!isReadonly2) {\n track(target, \"get\", key);\n }\n if (isShallow2) {\n return res;\n }\n if (isRef(res)) {\n const value = targetIsArray && isIntegerKey(key) ? res : res.value;\n return isReadonly2 && isObject(value) ? readonly(value) : value;\n }\n if (isObject(res)) {\n return isReadonly2 ? readonly(res) : reactive(res);\n }\n return res;\n }\n}\nclass MutableReactiveHandler extends BaseReactiveHandler {\n constructor(isShallow2 = false) {\n super(false, isShallow2);\n }\n set(target, key, value, receiver) {\n let oldValue = target[key];\n const isArrayWithIntegerKey = isArray(target) && isIntegerKey(key);\n if (!this._isShallow) {\n const isOldValueReadonly = isReadonly(oldValue);\n if (!isShallow(value) && !isReadonly(value)) {\n oldValue = toRaw(oldValue);\n value = toRaw(value);\n }\n if (!isArrayWithIntegerKey && isRef(oldValue) && !isRef(value)) {\n if (isOldValueReadonly) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n warn(\n `Set operation on key \"${String(key)}\" failed: target is readonly.`,\n target[key]\n );\n }\n return true;\n } else {\n oldValue.value = value;\n return true;\n }\n }\n }\n const hadKey = isArrayWithIntegerKey ? Number(key) < target.length : hasOwn(target, key);\n const result = Reflect.set(\n target,\n key,\n value,\n isRef(target) ? target : receiver\n );\n if (target === toRaw(receiver) && result) {\n if (!hadKey) {\n trigger(target, \"add\", key, value);\n } else if (hasChanged(value, oldValue)) {\n trigger(target, \"set\", key, value, oldValue);\n }\n }\n return result;\n }\n deleteProperty(target, key) {\n const hadKey = hasOwn(target, key);\n const oldValue = target[key];\n const result = Reflect.deleteProperty(target, key);\n if (result && hadKey) {\n trigger(target, \"delete\", key, void 0, oldValue);\n }\n return result;\n }\n has(target, key) {\n const result = Reflect.has(target, key);\n if (!isSymbol(key) || !builtInSymbols.has(key)) {\n track(target, \"has\", key);\n }\n return result;\n }\n ownKeys(target) {\n track(\n target,\n \"iterate\",\n isArray(target) ? \"length\" : ITERATE_KEY\n );\n return Reflect.ownKeys(target);\n }\n}\nclass ReadonlyReactiveHandler extends BaseReactiveHandler {\n constructor(isShallow2 = false) {\n super(true, isShallow2);\n }\n set(target, key) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n warn(\n `Set operation on key \"${String(key)}\" failed: target is readonly.`,\n target\n );\n }\n return true;\n }\n deleteProperty(target, key) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n warn(\n `Delete operation on key \"${String(key)}\" failed: target is readonly.`,\n target\n );\n }\n return true;\n }\n}\nconst mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();\nconst readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();\nconst shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true);\nconst shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);\n\nconst toShallow = (value) => value;\nconst getProto = (v) => Reflect.getPrototypeOf(v);\nfunction createIterableMethod(method, isReadonly2, isShallow2) {\n return function(...args) {\n const target = this[\"__v_raw\"];\n const rawTarget = toRaw(target);\n const targetIsMap = isMap(rawTarget);\n const isPair = method === \"entries\" || method === Symbol.iterator && targetIsMap;\n const isKeyOnly = method === \"keys\" && targetIsMap;\n const innerIterator = target[method](...args);\n const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;\n !isReadonly2 && track(\n rawTarget,\n \"iterate\",\n isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY\n );\n return extend(\n // inheriting all iterator properties\n Object.create(innerIterator),\n {\n // iterator protocol\n next() {\n const { value, done } = innerIterator.next();\n return done ? { value, done } : {\n value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),\n done\n };\n }\n }\n );\n };\n}\nfunction createReadonlyMethod(type) {\n return function(...args) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n const key = args[0] ? `on key \"${args[0]}\" ` : ``;\n warn(\n `${capitalize(type)} operation ${key}failed: target is readonly.`,\n toRaw(this)\n );\n }\n return type === \"delete\" ? false : type === \"clear\" ? void 0 : this;\n };\n}\nfunction createInstrumentations(readonly, shallow) {\n const instrumentations = {\n get(key) {\n const target = this[\"__v_raw\"];\n const rawTarget = toRaw(target);\n const rawKey = toRaw(key);\n if (!readonly) {\n if (hasChanged(key, rawKey)) {\n track(rawTarget, \"get\", key);\n }\n track(rawTarget, \"get\", rawKey);\n }\n const { has } = getProto(rawTarget);\n const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;\n if (has.call(rawTarget, key)) {\n return wrap(target.get(key));\n } else if (has.call(rawTarget, rawKey)) {\n return wrap(target.get(rawKey));\n } else if (target !== rawTarget) {\n target.get(key);\n }\n },\n get size() {\n const target = this[\"__v_raw\"];\n !readonly && track(toRaw(target), \"iterate\", ITERATE_KEY);\n return target.size;\n },\n has(key) {\n const target = this[\"__v_raw\"];\n const rawTarget = toRaw(target);\n const rawKey = toRaw(key);\n if (!readonly) {\n if (hasChanged(key, rawKey)) {\n track(rawTarget, \"has\", key);\n }\n track(rawTarget, \"has\", rawKey);\n }\n return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);\n },\n forEach(callback, thisArg) {\n const observed = this;\n const target = observed[\"__v_raw\"];\n const rawTarget = toRaw(target);\n const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;\n !readonly && track(rawTarget, \"iterate\", ITERATE_KEY);\n return target.forEach((value, key) => {\n return callback.call(thisArg, wrap(value), wrap(key), observed);\n });\n }\n };\n extend(\n instrumentations,\n readonly ? {\n add: createReadonlyMethod(\"add\"),\n set: createReadonlyMethod(\"set\"),\n delete: createReadonlyMethod(\"delete\"),\n clear: createReadonlyMethod(\"clear\")\n } : {\n add(value) {\n const target = toRaw(this);\n const proto = getProto(target);\n const rawValue = toRaw(value);\n const valueToAdd = !shallow && !isShallow(value) && !isReadonly(value) ? rawValue : value;\n const hadKey = proto.has.call(target, valueToAdd) || hasChanged(value, valueToAdd) && proto.has.call(target, value) || hasChanged(rawValue, valueToAdd) && proto.has.call(target, rawValue);\n if (!hadKey) {\n target.add(valueToAdd);\n trigger(target, \"add\", valueToAdd, valueToAdd);\n }\n return this;\n },\n set(key, value) {\n if (!shallow && !isShallow(value) && !isReadonly(value)) {\n value = toRaw(value);\n }\n const target = toRaw(this);\n const { has, get } = getProto(target);\n let hadKey = has.call(target, key);\n if (!hadKey) {\n key = toRaw(key);\n hadKey = has.call(target, key);\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n checkIdentityKeys(target, has, key);\n }\n const oldValue = get.call(target, key);\n target.set(key, value);\n if (!hadKey) {\n trigger(target, \"add\", key, value);\n } else if (hasChanged(value, oldValue)) {\n trigger(target, \"set\", key, value, oldValue);\n }\n return this;\n },\n delete(key) {\n const target = toRaw(this);\n const { has, get } = getProto(target);\n let hadKey = has.call(target, key);\n if (!hadKey) {\n key = toRaw(key);\n hadKey = has.call(target, key);\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n checkIdentityKeys(target, has, key);\n }\n const oldValue = get ? get.call(target, key) : void 0;\n const result = target.delete(key);\n if (hadKey) {\n trigger(target, \"delete\", key, void 0, oldValue);\n }\n return result;\n },\n clear() {\n const target = toRaw(this);\n const hadItems = target.size !== 0;\n const oldTarget = !!(process.env.NODE_ENV !== \"production\") ? isMap(target) ? new Map(target) : new Set(target) : void 0;\n const result = target.clear();\n if (hadItems) {\n trigger(\n target,\n \"clear\",\n void 0,\n void 0,\n oldTarget\n );\n }\n return result;\n }\n }\n );\n const iteratorMethods = [\n \"keys\",\n \"values\",\n \"entries\",\n Symbol.iterator\n ];\n iteratorMethods.forEach((method) => {\n instrumentations[method] = createIterableMethod(method, readonly, shallow);\n });\n return instrumentations;\n}\nfunction createInstrumentationGetter(isReadonly2, shallow) {\n const instrumentations = createInstrumentations(isReadonly2, shallow);\n return (target, key, receiver) => {\n if (key === \"__v_isReactive\") {\n return !isReadonly2;\n } else if (key === \"__v_isReadonly\") {\n return isReadonly2;\n } else if (key === \"__v_raw\") {\n return target;\n }\n return Reflect.get(\n hasOwn(instrumentations, key) && key in target ? instrumentations : target,\n key,\n receiver\n );\n };\n}\nconst mutableCollectionHandlers = {\n get: /* @__PURE__ */ createInstrumentationGetter(false, false)\n};\nconst shallowCollectionHandlers = {\n get: /* @__PURE__ */ createInstrumentationGetter(false, true)\n};\nconst readonlyCollectionHandlers = {\n get: /* @__PURE__ */ createInstrumentationGetter(true, false)\n};\nconst shallowReadonlyCollectionHandlers = {\n get: /* @__PURE__ */ createInstrumentationGetter(true, true)\n};\nfunction checkIdentityKeys(target, has, key) {\n const rawKey = toRaw(key);\n if (rawKey !== key && has.call(target, rawKey)) {\n const type = toRawType(target);\n warn(\n `Reactive ${type} contains both the raw and reactive versions of the same object${type === `Map` ? ` as keys` : ``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`\n );\n }\n}\n\nconst reactiveMap = /* @__PURE__ */ new WeakMap();\nconst shallowReactiveMap = /* @__PURE__ */ new WeakMap();\nconst readonlyMap = /* @__PURE__ */ new WeakMap();\nconst shallowReadonlyMap = /* @__PURE__ */ new WeakMap();\nfunction targetTypeMap(rawType) {\n switch (rawType) {\n case \"Object\":\n case \"Array\":\n return 1 /* COMMON */;\n case \"Map\":\n case \"Set\":\n case \"WeakMap\":\n case \"WeakSet\":\n return 2 /* COLLECTION */;\n default:\n return 0 /* INVALID */;\n }\n}\n// @__NO_SIDE_EFFECTS__\nfunction reactive(target) {\n if (/* @__PURE__ */ isReadonly(target)) {\n return target;\n }\n return createReactiveObject(\n target,\n false,\n mutableHandlers,\n mutableCollectionHandlers,\n reactiveMap\n );\n}\n// @__NO_SIDE_EFFECTS__\nfunction shallowReactive(target) {\n return createReactiveObject(\n target,\n false,\n shallowReactiveHandlers,\n shallowCollectionHandlers,\n shallowReactiveMap\n );\n}\n// @__NO_SIDE_EFFECTS__\nfunction readonly(target) {\n return createReactiveObject(\n target,\n true,\n readonlyHandlers,\n readonlyCollectionHandlers,\n readonlyMap\n );\n}\n// @__NO_SIDE_EFFECTS__\nfunction shallowReadonly(target) {\n return createReactiveObject(\n target,\n true,\n shallowReadonlyHandlers,\n shallowReadonlyCollectionHandlers,\n shallowReadonlyMap\n );\n}\nfunction createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) {\n if (!isObject(target)) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n warn(\n `value cannot be made ${isReadonly2 ? \"readonly\" : \"reactive\"}: ${String(\n target\n )}`\n );\n }\n return target;\n }\n if (target[\"__v_raw\"] && !(isReadonly2 && target[\"__v_isReactive\"])) {\n return target;\n }\n if (target[\"__v_skip\"] || !Object.isExtensible(target)) {\n return target;\n }\n const existingProxy = proxyMap.get(target);\n if (existingProxy) {\n return existingProxy;\n }\n const targetType = targetTypeMap(toRawType(target));\n if (targetType === 0 /* INVALID */) {\n return target;\n }\n const proxy = new Proxy(\n target,\n targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers\n );\n proxyMap.set(target, proxy);\n return proxy;\n}\n// @__NO_SIDE_EFFECTS__\nfunction isReactive(value) {\n if (/* @__PURE__ */ isReadonly(value)) {\n return /* @__PURE__ */ isReactive(value[\"__v_raw\"]);\n }\n return !!(value && value[\"__v_isReactive\"]);\n}\n// @__NO_SIDE_EFFECTS__\nfunction isReadonly(value) {\n return !!(value && value[\"__v_isReadonly\"]);\n}\n// @__NO_SIDE_EFFECTS__\nfunction isShallow(value) {\n return !!(value && value[\"__v_isShallow\"]);\n}\n// @__NO_SIDE_EFFECTS__\nfunction isProxy(value) {\n return value ? !!value[\"__v_raw\"] : false;\n}\n// @__NO_SIDE_EFFECTS__\nfunction toRaw(observed) {\n const raw = observed && observed[\"__v_raw\"];\n return raw ? /* @__PURE__ */ toRaw(raw) : observed;\n}\nfunction markRaw(value) {\n if (!hasOwn(value, \"__v_skip\") && Object.isExtensible(value)) {\n def(value, \"__v_skip\", true);\n }\n return value;\n}\nconst toReactive = (value) => isObject(value) ? /* @__PURE__ */ reactive(value) : value;\nconst toReadonly = (value) => isObject(value) ? /* @__PURE__ */ readonly(value) : value;\n\n// @__NO_SIDE_EFFECTS__\nfunction isRef(r) {\n return r ? r[\"__v_isRef\"] === true : false;\n}\n// @__NO_SIDE_EFFECTS__\nfunction ref(value) {\n return createRef(value, false);\n}\n// @__NO_SIDE_EFFECTS__\nfunction shallowRef(value) {\n return createRef(value, true);\n}\nfunction createRef(rawValue, shallow) {\n if (/* @__PURE__ */ isRef(rawValue)) {\n return rawValue;\n }\n return new RefImpl(rawValue, shallow);\n}\nclass RefImpl {\n constructor(value, isShallow2) {\n this.dep = new Dep();\n this[\"__v_isRef\"] = true;\n this[\"__v_isShallow\"] = false;\n this._rawValue = isShallow2 ? value : toRaw(value);\n this._value = isShallow2 ? value : toReactive(value);\n this[\"__v_isShallow\"] = isShallow2;\n }\n get value() {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n this.dep.track({\n target: this,\n type: \"get\",\n key: \"value\"\n });\n } else {\n this.dep.track();\n }\n return this._value;\n }\n set value(newValue) {\n const oldValue = this._rawValue;\n const useDirectValue = this[\"__v_isShallow\"] || isShallow(newValue) || isReadonly(newValue);\n newValue = useDirectValue ? newValue : toRaw(newValue);\n if (hasChanged(newValue, oldValue)) {\n this._rawValue = newValue;\n this._value = useDirectValue ? newValue : toReactive(newValue);\n if (!!(process.env.NODE_ENV !== \"production\")) {\n this.dep.trigger({\n target: this,\n type: \"set\",\n key: \"value\",\n newValue,\n oldValue\n });\n } else {\n this.dep.trigger();\n }\n }\n }\n}\nfunction triggerRef(ref2) {\n if (ref2.dep) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n ref2.dep.trigger({\n target: ref2,\n type: \"set\",\n key: \"value\",\n newValue: ref2._value\n });\n } else {\n ref2.dep.trigger();\n }\n }\n}\nfunction unref(ref2) {\n return /* @__PURE__ */ isRef(ref2) ? ref2.value : ref2;\n}\nfunction toValue(source) {\n return isFunction(source) ? source() : unref(source);\n}\nconst shallowUnwrapHandlers = {\n get: (target, key, receiver) => key === \"__v_raw\" ? target : unref(Reflect.get(target, key, receiver)),\n set: (target, key, value, receiver) => {\n const oldValue = target[key];\n if (/* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) {\n oldValue.value = value;\n return true;\n } else {\n return Reflect.set(target, key, value, receiver);\n }\n }\n};\nfunction proxyRefs(objectWithRefs) {\n return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers);\n}\nclass CustomRefImpl {\n constructor(factory) {\n this[\"__v_isRef\"] = true;\n this._value = void 0;\n const dep = this.dep = new Dep();\n const { get, set } = factory(dep.track.bind(dep), dep.trigger.bind(dep));\n this._get = get;\n this._set = set;\n }\n get value() {\n return this._value = this._get();\n }\n set value(newVal) {\n this._set(newVal);\n }\n}\nfunction customRef(factory) {\n return new CustomRefImpl(factory);\n}\n// @__NO_SIDE_EFFECTS__\nfunction toRefs(object) {\n if (!!(process.env.NODE_ENV !== \"production\") && !isProxy(object)) {\n warn(`toRefs() expects a reactive object but received a plain one.`);\n }\n const ret = isArray(object) ? new Array(object.length) : {};\n for (const key in object) {\n ret[key] = propertyToRef(object, key);\n }\n return ret;\n}\nclass ObjectRefImpl {\n constructor(_object, key, _defaultValue) {\n this._object = _object;\n this._defaultValue = _defaultValue;\n this[\"__v_isRef\"] = true;\n this._value = void 0;\n this._key = isSymbol(key) ? key : String(key);\n this._raw = toRaw(_object);\n let shallow = true;\n let obj = _object;\n if (!isArray(_object) || isSymbol(this._key) || !isIntegerKey(this._key)) {\n do {\n shallow = !isProxy(obj) || isShallow(obj);\n } while (shallow && (obj = obj[\"__v_raw\"]));\n }\n this._shallow = shallow;\n }\n get value() {\n let val = this._object[this._key];\n if (this._shallow) {\n val = unref(val);\n }\n return this._value = val === void 0 ? this._defaultValue : val;\n }\n set value(newVal) {\n if (this._shallow && /* @__PURE__ */ isRef(this._raw[this._key])) {\n const nestedRef = this._object[this._key];\n if (/* @__PURE__ */ isRef(nestedRef)) {\n nestedRef.value = newVal;\n return;\n }\n }\n this._object[this._key] = newVal;\n }\n get dep() {\n return getDepFromReactive(this._raw, this._key);\n }\n}\nclass GetterRefImpl {\n constructor(_getter) {\n this._getter = _getter;\n this[\"__v_isRef\"] = true;\n this[\"__v_isReadonly\"] = true;\n this._value = void 0;\n }\n get value() {\n return this._value = this._getter();\n }\n}\n// @__NO_SIDE_EFFECTS__\nfunction toRef(source, key, defaultValue) {\n if (/* @__PURE__ */ isRef(source)) {\n return source;\n } else if (isFunction(source)) {\n return new GetterRefImpl(source);\n } else if (isObject(source) && arguments.length > 1) {\n return propertyToRef(source, key, defaultValue);\n } else {\n return /* @__PURE__ */ ref(source);\n }\n}\nfunction propertyToRef(source, key, defaultValue) {\n return new ObjectRefImpl(source, key, defaultValue);\n}\n\nclass ComputedRefImpl {\n constructor(fn, setter, isSSR) {\n this.fn = fn;\n this.setter = setter;\n /**\n * @internal\n */\n this._value = void 0;\n /**\n * @internal\n */\n this.dep = new Dep(this);\n /**\n * @internal\n */\n this.__v_isRef = true;\n // TODO isolatedDeclarations \"__v_isReadonly\"\n // A computed is also a subscriber that tracks other deps\n /**\n * @internal\n */\n this.deps = void 0;\n /**\n * @internal\n */\n this.depsTail = void 0;\n /**\n * @internal\n */\n this.flags = 16;\n /**\n * @internal\n */\n this.globalVersion = globalVersion - 1;\n /**\n * @internal\n */\n this.next = void 0;\n // for backwards compat\n this.effect = this;\n this[\"__v_isReadonly\"] = !setter;\n this.isSSR = isSSR;\n }\n /**\n * @internal\n */\n notify() {\n this.flags |= 16;\n if (!(this.flags & 8) && // avoid infinite self recursion\n activeSub !== this) {\n batch(this, true);\n return true;\n } else if (!!(process.env.NODE_ENV !== \"production\")) ;\n }\n get value() {\n const link = !!(process.env.NODE_ENV !== \"production\") ? this.dep.track({\n target: this,\n type: \"get\",\n key: \"value\"\n }) : this.dep.track();\n refreshComputed(this);\n if (link) {\n link.version = this.dep.version;\n }\n return this._value;\n }\n set value(newValue) {\n if (this.setter) {\n this.setter(newValue);\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn(\"Write operation failed: computed value is readonly\");\n }\n }\n}\n// @__NO_SIDE_EFFECTS__\nfunction computed(getterOrOptions, debugOptions, isSSR = false) {\n let getter;\n let setter;\n if (isFunction(getterOrOptions)) {\n getter = getterOrOptions;\n } else {\n getter = getterOrOptions.get;\n setter = getterOrOptions.set;\n }\n const cRef = new ComputedRefImpl(getter, setter, isSSR);\n if (!!(process.env.NODE_ENV !== \"production\") && debugOptions && !isSSR) {\n cRef.onTrack = debugOptions.onTrack;\n cRef.onTrigger = debugOptions.onTrigger;\n }\n return cRef;\n}\n\nconst TrackOpTypes = {\n \"GET\": \"get\",\n \"HAS\": \"has\",\n \"ITERATE\": \"iterate\"\n};\nconst TriggerOpTypes = {\n \"SET\": \"set\",\n \"ADD\": \"add\",\n \"DELETE\": \"delete\",\n \"CLEAR\": \"clear\"\n};\nconst ReactiveFlags = {\n \"SKIP\": \"__v_skip\",\n \"IS_REACTIVE\": \"__v_isReactive\",\n \"IS_READONLY\": \"__v_isReadonly\",\n \"IS_SHALLOW\": \"__v_isShallow\",\n \"RAW\": \"__v_raw\",\n \"IS_REF\": \"__v_isRef\"\n};\n\nconst WatchErrorCodes = {\n \"WATCH_GETTER\": 2,\n \"2\": \"WATCH_GETTER\",\n \"WATCH_CALLBACK\": 3,\n \"3\": \"WATCH_CALLBACK\",\n \"WATCH_CLEANUP\": 4,\n \"4\": \"WATCH_CLEANUP\"\n};\nconst INITIAL_WATCHER_VALUE = {};\nconst cleanupMap = /* @__PURE__ */ new WeakMap();\nlet activeWatcher = void 0;\nfunction getCurrentWatcher() {\n return activeWatcher;\n}\nfunction onWatcherCleanup(cleanupFn, failSilently = false, owner = activeWatcher) {\n if (owner) {\n let cleanups = cleanupMap.get(owner);\n if (!cleanups) cleanupMap.set(owner, cleanups = []);\n cleanups.push(cleanupFn);\n } else if (!!(process.env.NODE_ENV !== \"production\") && !failSilently) {\n warn(\n `onWatcherCleanup() was called when there was no active watcher to associate with.`\n );\n }\n}\nfunction watch(source, cb, options = EMPTY_OBJ) {\n const { immediate, deep, once, scheduler, augmentJob, call } = options;\n const warnInvalidSource = (s) => {\n (options.onWarn || warn)(\n `Invalid watch source: `,\n s,\n `A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`\n );\n };\n const reactiveGetter = (source2) => {\n if (deep) return source2;\n if (isShallow(source2) || deep === false || deep === 0)\n return traverse(source2, 1);\n return traverse(source2);\n };\n let effect;\n let getter;\n let cleanup;\n let boundCleanup;\n let forceTrigger = false;\n let isMultiSource = false;\n if (isRef(source)) {\n getter = () => source.value;\n forceTrigger = isShallow(source);\n } else if (isReactive(source)) {\n getter = () => reactiveGetter(source);\n forceTrigger = true;\n } else if (isArray(source)) {\n isMultiSource = true;\n forceTrigger = source.some((s) => isReactive(s) || isShallow(s));\n getter = () => source.map((s) => {\n if (isRef(s)) {\n return s.value;\n } else if (isReactive(s)) {\n return reactiveGetter(s);\n } else if (isFunction(s)) {\n return call ? call(s, 2) : s();\n } else {\n !!(process.env.NODE_ENV !== \"production\") && warnInvalidSource(s);\n }\n });\n } else if (isFunction(source)) {\n if (cb) {\n getter = call ? () => call(source, 2) : source;\n } else {\n getter = () => {\n if (cleanup) {\n pauseTracking();\n try {\n cleanup();\n } finally {\n resetTracking();\n }\n }\n const currentEffect = activeWatcher;\n activeWatcher = effect;\n try {\n return call ? call(source, 3, [boundCleanup]) : source(boundCleanup);\n } finally {\n activeWatcher = currentEffect;\n }\n };\n }\n } else {\n getter = NOOP;\n !!(process.env.NODE_ENV !== \"production\") && warnInvalidSource(source);\n }\n if (cb && deep) {\n const baseGetter = getter;\n const depth = deep === true ? Infinity : deep;\n getter = () => traverse(baseGetter(), depth);\n }\n const scope = getCurrentScope();\n const watchHandle = () => {\n effect.stop();\n if (scope && scope.active) {\n remove(scope.effects, effect);\n }\n };\n if (once && cb) {\n const _cb = cb;\n cb = (...args) => {\n const res = _cb(...args);\n watchHandle();\n return res;\n };\n }\n let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;\n const job = (immediateFirstRun) => {\n if (!(effect.flags & 1) || !effect.dirty && !immediateFirstRun) {\n return;\n }\n if (cb) {\n const newValue = effect.run();\n if (immediateFirstRun || deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue))) {\n if (cleanup) {\n cleanup();\n }\n const currentWatcher = activeWatcher;\n activeWatcher = effect;\n try {\n const args = [\n newValue,\n // pass undefined as the old value when it's changed for the first time\n oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,\n boundCleanup\n ];\n oldValue = newValue;\n call ? call(cb, 3, args) : (\n // @ts-expect-error\n cb(...args)\n );\n } finally {\n activeWatcher = currentWatcher;\n }\n }\n } else {\n effect.run();\n }\n };\n if (augmentJob) {\n augmentJob(job);\n }\n effect = new ReactiveEffect(getter);\n effect.scheduler = scheduler ? () => scheduler(job, false) : job;\n boundCleanup = (fn) => onWatcherCleanup(fn, false, effect);\n cleanup = effect.onStop = () => {\n const cleanups = cleanupMap.get(effect);\n if (cleanups) {\n if (call) {\n call(cleanups, 4);\n } else {\n for (const cleanup2 of cleanups) cleanup2();\n }\n cleanupMap.delete(effect);\n }\n };\n if (!!(process.env.NODE_ENV !== \"production\")) {\n effect.onTrack = options.onTrack;\n effect.onTrigger = options.onTrigger;\n }\n if (cb) {\n if (immediate) {\n job(true);\n } else {\n oldValue = effect.run();\n }\n } else if (scheduler) {\n scheduler(job.bind(null, true), true);\n } else {\n effect.run();\n }\n watchHandle.pause = effect.pause.bind(effect);\n watchHandle.resume = effect.resume.bind(effect);\n watchHandle.stop = watchHandle;\n return watchHandle;\n}\nfunction traverse(value, depth = Infinity, seen) {\n if (depth <= 0 || !isObject(value) || value[\"__v_skip\"]) {\n return value;\n }\n seen = seen || /* @__PURE__ */ new Map();\n if ((seen.get(value) || 0) >= depth) {\n return value;\n }\n seen.set(value, depth);\n depth--;\n if (isRef(value)) {\n traverse(value.value, depth, seen);\n } else if (isArray(value)) {\n for (let i = 0; i < value.length; i++) {\n traverse(value[i], depth, seen);\n }\n } else if (isSet(value) || isMap(value)) {\n value.forEach((v) => {\n traverse(v, depth, seen);\n });\n } else if (isPlainObject(value)) {\n for (const key in value) {\n traverse(value[key], depth, seen);\n }\n for (const key of Object.getOwnPropertySymbols(value)) {\n if (Object.prototype.propertyIsEnumerable.call(value, key)) {\n traverse(value[key], depth, seen);\n }\n }\n }\n return value;\n}\n\nexport { ARRAY_ITERATE_KEY, EffectFlags, EffectScope, ITERATE_KEY, MAP_KEY_ITERATE_KEY, ReactiveEffect, ReactiveFlags, TrackOpTypes, TriggerOpTypes, WatchErrorCodes, computed, customRef, effect, effectScope, enableTracking, getCurrentScope, getCurrentWatcher, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onEffectCleanup, onScopeDispose, onWatcherCleanup, pauseTracking, proxyRefs, reactive, reactiveReadArray, readonly, ref, resetTracking, shallowReactive, shallowReadArray, shallowReadonly, shallowRef, stop, toRaw, toReactive, toReadonly, toRef, toRefs, toValue, track, traverse, trigger, triggerRef, unref, watch };\n","/**\n* @vue/runtime-core v3.5.41\n* (c) 2018-present Yuxi (Evan) You and Vue contributors\n* @license MIT\n**/\nimport { pauseTracking, resetTracking, isRef, toRaw, traverse, watch as watch$1, shallowRef, readonly, isReactive, ref, isShallow, isReadonly, shallowReadArray, toReadonly, toReactive, shallowReadonly, track, reactive, customRef, shallowReactive, trigger, ReactiveEffect, isProxy, proxyRefs, markRaw, EffectScope, computed as computed$1 } from '@vue/reactivity';\nexport { EffectScope, ReactiveEffect, TrackOpTypes, TriggerOpTypes, customRef, effect, effectScope, getCurrentScope, getCurrentWatcher, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, onWatcherCleanup, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from '@vue/reactivity';\nimport { isString, isFunction, EMPTY_OBJ, isPromise, isArray, NOOP, getGlobalThis, extend, isBuiltInDirective, NO, hasOwn, remove, def, isOn, isReservedProp, normalizeClass, stringifyStyle, normalizeStyle, isKnownSvgAttr, isBooleanAttr, isKnownHtmlAttr, includeBooleanAttr, isRenderableAttrValue, normalizeCssVarValue, getEscapedCssVarName, isObject, isRegExp, invokeArrayFns, toHandlerKey, camelize, capitalize, isSymbol, isGloballyAllowed, hyphenate, hasChanged, looseToNumber, isModelListener, looseEqual, EMPTY_ARR, toRawType, makeMap, toNumber } from '@vue/shared';\nexport { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';\n\nconst stack = [];\nfunction pushWarningContext(vnode) {\n stack.push(vnode);\n}\nfunction popWarningContext() {\n stack.pop();\n}\nlet isWarning = false;\nfunction warn$1(msg, ...args) {\n if (isWarning) return;\n isWarning = true;\n pauseTracking();\n const instance = stack.length ? stack[stack.length - 1].component : null;\n const appWarnHandler = instance && instance.appContext.config.warnHandler;\n const trace = getComponentTrace();\n if (appWarnHandler) {\n callWithErrorHandling(\n appWarnHandler,\n instance,\n 11,\n [\n // eslint-disable-next-line no-restricted-syntax\n msg + args.map((a) => {\n var _a, _b;\n return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);\n }).join(\"\"),\n instance && instance.proxy,\n trace.map(\n ({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`\n ).join(\"\\n\"),\n trace\n ]\n );\n } else {\n const warnArgs = [`[Vue warn]: ${msg}`, ...args];\n if (trace.length && // avoid spamming console during tests\n true) {\n warnArgs.push(`\n`, ...formatTrace(trace));\n }\n console.warn(...warnArgs);\n }\n resetTracking();\n isWarning = false;\n}\nfunction getComponentTrace() {\n let currentVNode = stack[stack.length - 1];\n if (!currentVNode) {\n return [];\n }\n const normalizedStack = [];\n while (currentVNode) {\n const last = normalizedStack[0];\n if (last && last.vnode === currentVNode) {\n last.recurseCount++;\n } else {\n normalizedStack.push({\n vnode: currentVNode,\n recurseCount: 0\n });\n }\n const parentInstance = currentVNode.component && currentVNode.component.parent;\n currentVNode = parentInstance && parentInstance.vnode;\n }\n return normalizedStack;\n}\nfunction formatTrace(trace) {\n const logs = [];\n trace.forEach((entry, i) => {\n logs.push(...i === 0 ? [] : [`\n`], ...formatTraceEntry(entry));\n });\n return logs;\n}\nfunction formatTraceEntry({ vnode, recurseCount }) {\n const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``;\n const isRoot = vnode.component ? vnode.component.parent == null : false;\n const open = ` at <${formatComponentName(\n vnode.component,\n vnode.type,\n isRoot\n )}`;\n const close = `>` + postfix;\n return vnode.props ? [open, ...formatProps(vnode.props), close] : [open + close];\n}\nfunction formatProps(props) {\n const res = [];\n const keys = Object.keys(props);\n keys.slice(0, 3).forEach((key) => {\n res.push(...formatProp(key, props[key]));\n });\n if (keys.length > 3) {\n res.push(` ...`);\n }\n return res;\n}\nfunction formatProp(key, value, raw) {\n if (isString(value)) {\n value = JSON.stringify(value);\n return raw ? value : [`${key}=${value}`];\n } else if (typeof value === \"number\" || typeof value === \"boolean\" || value == null) {\n return raw ? value : [`${key}=${value}`];\n } else if (isRef(value)) {\n value = formatProp(key, toRaw(value.value), true);\n return raw ? value : [`${key}=Ref<`, value, `>`];\n } else if (isFunction(value)) {\n return [`${key}=fn${value.name ? `<${value.name}>` : ``}`];\n } else {\n value = toRaw(value);\n return raw ? value : [`${key}=`, value];\n }\n}\nfunction assertNumber(val, type) {\n if (!!!(process.env.NODE_ENV !== \"production\")) return;\n if (val === void 0) {\n return;\n } else if (typeof val !== \"number\") {\n warn$1(`${type} is not a valid number - got ${JSON.stringify(val)}.`);\n } else if (isNaN(val)) {\n warn$1(`${type} is NaN - the duration expression might be incorrect.`);\n }\n}\n\nconst ErrorCodes = {\n \"SETUP_FUNCTION\": 0,\n \"0\": \"SETUP_FUNCTION\",\n \"RENDER_FUNCTION\": 1,\n \"1\": \"RENDER_FUNCTION\",\n \"NATIVE_EVENT_HANDLER\": 5,\n \"5\": \"NATIVE_EVENT_HANDLER\",\n \"COMPONENT_EVENT_HANDLER\": 6,\n \"6\": \"COMPONENT_EVENT_HANDLER\",\n \"VNODE_HOOK\": 7,\n \"7\": \"VNODE_HOOK\",\n \"DIRECTIVE_HOOK\": 8,\n \"8\": \"DIRECTIVE_HOOK\",\n \"TRANSITION_HOOK\": 9,\n \"9\": \"TRANSITION_HOOK\",\n \"APP_ERROR_HANDLER\": 10,\n \"10\": \"APP_ERROR_HANDLER\",\n \"APP_WARN_HANDLER\": 11,\n \"11\": \"APP_WARN_HANDLER\",\n \"FUNCTION_REF\": 12,\n \"12\": \"FUNCTION_REF\",\n \"ASYNC_COMPONENT_LOADER\": 13,\n \"13\": \"ASYNC_COMPONENT_LOADER\",\n \"SCHEDULER\": 14,\n \"14\": \"SCHEDULER\",\n \"COMPONENT_UPDATE\": 15,\n \"15\": \"COMPONENT_UPDATE\",\n \"APP_UNMOUNT_CLEANUP\": 16,\n \"16\": \"APP_UNMOUNT_CLEANUP\"\n};\nconst ErrorTypeStrings$1 = {\n [\"sp\"]: \"serverPrefetch hook\",\n [\"bc\"]: \"beforeCreate hook\",\n [\"c\"]: \"created hook\",\n [\"bm\"]: \"beforeMount hook\",\n [\"m\"]: \"mounted hook\",\n [\"bu\"]: \"beforeUpdate hook\",\n [\"u\"]: \"updated\",\n [\"bum\"]: \"beforeUnmount hook\",\n [\"um\"]: \"unmounted hook\",\n [\"a\"]: \"activated hook\",\n [\"da\"]: \"deactivated hook\",\n [\"ec\"]: \"errorCaptured hook\",\n [\"rtc\"]: \"renderTracked hook\",\n [\"rtg\"]: \"renderTriggered hook\",\n [0]: \"setup function\",\n [1]: \"render function\",\n [2]: \"watcher getter\",\n [3]: \"watcher callback\",\n [4]: \"watcher cleanup function\",\n [5]: \"native event handler\",\n [6]: \"component event handler\",\n [7]: \"vnode hook\",\n [8]: \"directive hook\",\n [9]: \"transition hook\",\n [10]: \"app errorHandler\",\n [11]: \"app warnHandler\",\n [12]: \"ref function\",\n [13]: \"async component loader\",\n [14]: \"scheduler flush\",\n [15]: \"component update\",\n [16]: \"app unmount cleanup function\"\n};\nfunction callWithErrorHandling(fn, instance, type, args) {\n try {\n return args ? fn(...args) : fn();\n } catch (err) {\n handleError(err, instance, type);\n }\n}\nfunction callWithAsyncErrorHandling(fn, instance, type, args) {\n if (isFunction(fn)) {\n const res = callWithErrorHandling(fn, instance, type, args);\n if (res && isPromise(res)) {\n res.catch((err) => {\n handleError(err, instance, type);\n });\n }\n return res;\n }\n if (isArray(fn)) {\n const values = [];\n for (let i = 0; i < fn.length; i++) {\n values.push(callWithAsyncErrorHandling(fn[i], instance, type, args));\n }\n return values;\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\n `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof fn}`\n );\n }\n}\nfunction handleError(err, instance, type, throwInDev = true) {\n const contextVNode = instance ? instance.vnode : null;\n const { errorHandler, throwUnhandledErrorInProduction } = instance && instance.appContext.config || EMPTY_OBJ;\n if (instance) {\n let cur = instance.parent;\n const exposedInstance = instance.proxy;\n const errorInfo = !!(process.env.NODE_ENV !== \"production\") ? ErrorTypeStrings$1[type] : `https://vuejs.org/error-reference/#runtime-${type}`;\n while (cur) {\n const errorCapturedHooks = cur.ec;\n if (errorCapturedHooks) {\n for (let i = 0; i < errorCapturedHooks.length; i++) {\n if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) {\n return;\n }\n }\n }\n cur = cur.parent;\n }\n if (errorHandler) {\n pauseTracking();\n callWithErrorHandling(errorHandler, null, 10, [\n err,\n exposedInstance,\n errorInfo\n ]);\n resetTracking();\n return;\n }\n }\n logError(err, type, contextVNode, throwInDev, throwUnhandledErrorInProduction);\n}\nfunction logError(err, type, contextVNode, throwInDev = true, throwInProd = false) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n const info = ErrorTypeStrings$1[type];\n if (contextVNode) {\n pushWarningContext(contextVNode);\n }\n warn$1(`Unhandled error${info ? ` during execution of ${info}` : ``}`);\n if (contextVNode) {\n popWarningContext();\n }\n if (throwInDev) {\n throw err;\n } else {\n console.error(err);\n }\n } else if (throwInProd) {\n throw err;\n } else {\n console.error(err);\n }\n}\n\nconst queue = [];\nlet flushIndex = -1;\nconst pendingPostFlushCbs = [];\nlet activePostFlushCbs = null;\nlet postFlushIndex = 0;\nconst resolvedPromise = /* @__PURE__ */ Promise.resolve();\nlet currentFlushPromise = null;\nconst RECURSION_LIMIT = 100;\nfunction nextTick(fn) {\n const p = currentFlushPromise || resolvedPromise;\n return fn ? p.then(this ? fn.bind(this) : fn) : p;\n}\nfunction findInsertionIndex(id) {\n let start = flushIndex + 1;\n let end = queue.length;\n while (start < end) {\n const middle = start + end >>> 1;\n const middleJob = queue[middle];\n const middleJobId = getId(middleJob);\n if (middleJobId < id || middleJobId === id && middleJob.flags & 2) {\n start = middle + 1;\n } else {\n end = middle;\n }\n }\n return start;\n}\nfunction queueJob(job) {\n if (!(job.flags & 1)) {\n const jobId = getId(job);\n const lastJob = queue[queue.length - 1];\n if (!lastJob || // fast path when the job id is larger than the tail\n !(job.flags & 2) && jobId >= getId(lastJob)) {\n queue.push(job);\n } else {\n queue.splice(findInsertionIndex(jobId), 0, job);\n }\n job.flags |= 1;\n queueFlush();\n }\n}\nfunction queueFlush() {\n if (!currentFlushPromise) {\n currentFlushPromise = resolvedPromise.then(flushJobs);\n }\n}\nfunction queuePostFlushCb(cb) {\n if (!isArray(cb)) {\n if (activePostFlushCbs && cb.id === -1) {\n activePostFlushCbs.splice(postFlushIndex + 1, 0, cb);\n } else if (!(cb.flags & 1)) {\n pendingPostFlushCbs.push(cb);\n cb.flags |= 1;\n }\n } else {\n for (let i = 0; i < cb.length; i++) {\n pendingPostFlushCbs.push(cb[i]);\n }\n }\n queueFlush();\n}\nfunction flushPreFlushCbs(instance, seen, i = flushIndex + 1) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n seen = seen || /* @__PURE__ */ new Map();\n }\n for (; i < queue.length; i++) {\n const cb = queue[i];\n if (cb && cb.flags & 2) {\n if (instance && cb.id !== instance.uid) {\n continue;\n }\n if (!!(process.env.NODE_ENV !== \"production\") && checkRecursiveUpdates(seen, cb)) {\n continue;\n }\n queue.splice(i, 1);\n i--;\n if (cb.flags & 4) {\n cb.flags &= -2;\n }\n cb();\n if (!(cb.flags & 4)) {\n cb.flags &= -2;\n }\n }\n }\n}\nfunction flushPostFlushCbs(seen) {\n if (pendingPostFlushCbs.length) {\n const deduped = [...new Set(pendingPostFlushCbs)].sort(\n (a, b) => getId(a) - getId(b)\n );\n pendingPostFlushCbs.length = 0;\n if (activePostFlushCbs) {\n for (let i = 0; i < deduped.length; i++) {\n activePostFlushCbs.push(deduped[i]);\n }\n return;\n }\n activePostFlushCbs = deduped;\n if (!!(process.env.NODE_ENV !== \"production\")) {\n seen = seen || /* @__PURE__ */ new Map();\n }\n for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {\n const cb = activePostFlushCbs[postFlushIndex];\n if (!!(process.env.NODE_ENV !== \"production\") && checkRecursiveUpdates(seen, cb)) {\n continue;\n }\n if (cb.flags & 4) {\n cb.flags &= -2;\n }\n if (!(cb.flags & 8)) cb();\n cb.flags &= -2;\n }\n activePostFlushCbs = null;\n postFlushIndex = 0;\n }\n}\nconst getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;\nfunction flushJobs(seen) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n seen = seen || /* @__PURE__ */ new Map();\n }\n const check = !!(process.env.NODE_ENV !== \"production\") ? (job) => checkRecursiveUpdates(seen, job) : NOOP;\n try {\n for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {\n const job = queue[flushIndex];\n if (job && !(job.flags & 8)) {\n if (!!(process.env.NODE_ENV !== \"production\") && check(job)) {\n continue;\n }\n if (job.flags & 4) {\n job.flags &= ~1;\n }\n callWithErrorHandling(\n job,\n job.i,\n job.i ? 15 : 14\n );\n if (!(job.flags & 4)) {\n job.flags &= ~1;\n }\n }\n }\n } finally {\n for (; flushIndex < queue.length; flushIndex++) {\n const job = queue[flushIndex];\n if (job) {\n job.flags &= -2;\n }\n }\n flushIndex = -1;\n queue.length = 0;\n flushPostFlushCbs(seen);\n currentFlushPromise = null;\n if (queue.length || pendingPostFlushCbs.length) {\n flushJobs(seen);\n }\n }\n}\nfunction checkRecursiveUpdates(seen, fn) {\n const count = seen.get(fn) || 0;\n if (count > RECURSION_LIMIT) {\n const instance = fn.i;\n const componentName = instance && getComponentName(instance.type);\n handleError(\n `Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,\n null,\n 10\n );\n return true;\n }\n seen.set(fn, count + 1);\n return false;\n}\n\nlet isHmrUpdating = false;\nconst setHmrUpdating = (v) => {\n try {\n return isHmrUpdating;\n } finally {\n isHmrUpdating = v;\n }\n};\nconst hmrDirtyComponents = /* @__PURE__ */ new Map();\nif (!!(process.env.NODE_ENV !== \"production\")) {\n getGlobalThis().__VUE_HMR_RUNTIME__ = {\n createRecord: tryWrap(createRecord),\n rerender: tryWrap(rerender),\n reload: tryWrap(reload)\n };\n}\nconst map = /* @__PURE__ */ new Map();\nfunction registerHMR(instance) {\n const id = instance.type.__hmrId;\n let record = map.get(id);\n if (!record) {\n createRecord(id, instance.type);\n record = map.get(id);\n }\n record.instances.add(instance);\n}\nfunction unregisterHMR(instance) {\n map.get(instance.type.__hmrId).instances.delete(instance);\n}\nfunction createRecord(id, initialDef) {\n if (map.has(id)) {\n return false;\n }\n map.set(id, {\n initialDef: normalizeClassComponent(initialDef),\n instances: /* @__PURE__ */ new Set()\n });\n return true;\n}\nfunction normalizeClassComponent(component) {\n return isClassComponent(component) ? component.__vccOpts : component;\n}\nfunction rerender(id, newRender) {\n const record = map.get(id);\n if (!record) {\n return;\n }\n record.initialDef.render = newRender;\n [...record.instances].forEach((instance) => {\n if (newRender) {\n instance.render = newRender;\n normalizeClassComponent(instance.type).render = newRender;\n }\n instance.renderCache = [];\n isHmrUpdating = true;\n if (!(instance.job.flags & 8)) {\n instance.update();\n }\n isHmrUpdating = false;\n });\n}\nfunction reload(id, newComp) {\n const record = map.get(id);\n if (!record) return;\n newComp = normalizeClassComponent(newComp);\n updateComponentDef(record.initialDef, newComp);\n const instances = [...record.instances];\n for (let i = 0; i < instances.length; i++) {\n const instance = instances[i];\n const oldComp = normalizeClassComponent(instance.type);\n let dirtyInstances = hmrDirtyComponents.get(oldComp);\n if (!dirtyInstances) {\n if (oldComp !== record.initialDef) {\n updateComponentDef(oldComp, newComp);\n }\n hmrDirtyComponents.set(oldComp, dirtyInstances = /* @__PURE__ */ new Set());\n }\n dirtyInstances.add(instance);\n instance.appContext.propsCache.delete(instance.type);\n instance.appContext.emitsCache.delete(instance.type);\n instance.appContext.optionsCache.delete(instance.type);\n if (instance.ceReload) {\n dirtyInstances.add(instance);\n instance.ceReload(newComp.styles);\n dirtyInstances.delete(instance);\n } else if (instance.parent) {\n queueJob(() => {\n if (!(instance.job.flags & 8)) {\n isHmrUpdating = true;\n instance.parent.update();\n isHmrUpdating = false;\n dirtyInstances.delete(instance);\n }\n });\n } else if (instance.appContext.reload) {\n instance.appContext.reload();\n } else if (typeof window !== \"undefined\") {\n window.location.reload();\n } else {\n console.warn(\n \"[HMR] Root or manually mounted instance modified. Full reload required.\"\n );\n }\n if (instance.root.ce && instance !== instance.root) {\n instance.root.ce._removeChildStyle(oldComp);\n }\n }\n queuePostFlushCb(() => {\n hmrDirtyComponents.clear();\n });\n}\nfunction updateComponentDef(oldComp, newComp) {\n extend(oldComp, newComp);\n for (const key in oldComp) {\n if (key !== \"__file\" && !(key in newComp)) {\n delete oldComp[key];\n }\n }\n}\nfunction tryWrap(fn) {\n return (id, arg) => {\n try {\n return fn(id, arg);\n } catch (e) {\n console.error(e);\n console.warn(\n `[HMR] Something went wrong during Vue component hot-reload. Full reload required.`\n );\n }\n };\n}\n\nlet devtools$1;\nlet buffer = [];\nlet devtoolsNotInstalled = false;\nfunction emit$1(event, ...args) {\n if (devtools$1) {\n devtools$1.emit(event, ...args);\n } else if (!devtoolsNotInstalled) {\n buffer.push({ event, args });\n }\n}\nfunction setDevtoolsHook$1(hook, target) {\n var _a, _b;\n devtools$1 = hook;\n if (devtools$1) {\n devtools$1.enabled = true;\n buffer.forEach(({ event, args }) => devtools$1.emit(event, ...args));\n buffer = [];\n } else if (\n // handle late devtools injection - only do this if we are in an actual\n // browser environment to avoid the timer handle stalling test runner exit\n // (#4815)\n typeof window !== \"undefined\" && // some envs mock window but not fully\n window.HTMLElement && // also exclude jsdom\n // eslint-disable-next-line no-restricted-syntax\n !((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes(\"jsdom\"))\n ) {\n const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];\n replay.push((newHook) => {\n setDevtoolsHook$1(newHook, target);\n });\n setTimeout(() => {\n if (!devtools$1) {\n target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;\n devtoolsNotInstalled = true;\n buffer = [];\n }\n }, 3e3);\n } else {\n devtoolsNotInstalled = true;\n buffer = [];\n }\n}\nfunction devtoolsInitApp(app, version) {\n emit$1(\"app:init\" /* APP_INIT */, app, version, {\n Fragment,\n Text,\n Comment,\n Static\n });\n}\nfunction devtoolsUnmountApp(app) {\n emit$1(\"app:unmount\" /* APP_UNMOUNT */, app);\n}\nconst devtoolsComponentAdded = /* @__PURE__ */ createDevtoolsComponentHook(\"component:added\" /* COMPONENT_ADDED */);\nconst devtoolsComponentUpdated = /* @__PURE__ */ createDevtoolsComponentHook(\"component:updated\" /* COMPONENT_UPDATED */);\nconst _devtoolsComponentRemoved = /* @__PURE__ */ createDevtoolsComponentHook(\n \"component:removed\" /* COMPONENT_REMOVED */\n);\nconst devtoolsComponentRemoved = (component) => {\n if (devtools$1 && typeof devtools$1.cleanupBuffer === \"function\" && // remove the component if it wasn't buffered\n !devtools$1.cleanupBuffer(component)) {\n _devtoolsComponentRemoved(component);\n }\n};\n// @__NO_SIDE_EFFECTS__\nfunction createDevtoolsComponentHook(hook) {\n return (component) => {\n emit$1(\n hook,\n component.appContext.app,\n component.uid,\n component.parent ? component.parent.uid : void 0,\n component\n );\n };\n}\nconst devtoolsPerfStart = /* @__PURE__ */ createDevtoolsPerformanceHook(\"perf:start\" /* PERFORMANCE_START */);\nconst devtoolsPerfEnd = /* @__PURE__ */ createDevtoolsPerformanceHook(\"perf:end\" /* PERFORMANCE_END */);\nfunction createDevtoolsPerformanceHook(hook) {\n return (component, type, time) => {\n emit$1(hook, component.appContext.app, component.uid, component, type, time);\n };\n}\nfunction devtoolsComponentEmit(component, event, params) {\n emit$1(\n \"component:emit\" /* COMPONENT_EMIT */,\n component.appContext.app,\n component,\n event,\n params\n );\n}\n\nlet currentRenderingInstance = null;\nlet currentScopeId = null;\nfunction setCurrentRenderingInstance(instance) {\n const prev = currentRenderingInstance;\n currentRenderingInstance = instance;\n currentScopeId = instance && instance.type.__scopeId || null;\n return prev;\n}\nfunction pushScopeId(id) {\n currentScopeId = id;\n}\nfunction popScopeId() {\n currentScopeId = null;\n}\nconst withScopeId = (_id) => withCtx;\nfunction withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {\n if (!ctx) return fn;\n if (fn._n) {\n return fn;\n }\n const renderFnWithContext = (...args) => {\n if (renderFnWithContext._d) {\n setBlockTracking(-1);\n }\n const prevInstance = setCurrentRenderingInstance(ctx);\n const prevStackSize = blockStack.length;\n let res;\n try {\n res = fn(...args);\n } finally {\n for (let i = blockStack.length; i > prevStackSize; i--) closeBlock();\n setCurrentRenderingInstance(prevInstance);\n if (renderFnWithContext._d) {\n setBlockTracking(1);\n }\n }\n if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_DEVTOOLS__) {\n devtoolsComponentUpdated(ctx);\n }\n return res;\n };\n renderFnWithContext._n = true;\n renderFnWithContext._c = true;\n renderFnWithContext._d = true;\n return renderFnWithContext;\n}\n\nfunction validateDirectiveName(name) {\n if (isBuiltInDirective(name)) {\n warn$1(\"Do not use built-in directive ids as custom directive id: \" + name);\n }\n}\nfunction withDirectives(vnode, directives) {\n if (currentRenderingInstance === null) {\n !!(process.env.NODE_ENV !== \"production\") && warn$1(`withDirectives can only be used inside render functions.`);\n return vnode;\n }\n const instance = getComponentPublicInstance(currentRenderingInstance);\n const bindings = vnode.dirs || (vnode.dirs = []);\n for (let i = 0; i < directives.length; i++) {\n let [dir, value, arg, modifiers = EMPTY_OBJ] = directives[i];\n if (dir) {\n if (isFunction(dir)) {\n dir = {\n mounted: dir,\n updated: dir\n };\n }\n if (dir.deep) {\n traverse(value);\n }\n bindings.push({\n dir,\n instance,\n value,\n oldValue: void 0,\n arg,\n modifiers\n });\n }\n }\n return vnode;\n}\nfunction invokeDirectiveHook(vnode, prevVNode, instance, name) {\n const bindings = vnode.dirs;\n const oldBindings = prevVNode && prevVNode.dirs;\n for (let i = 0; i < bindings.length; i++) {\n const binding = bindings[i];\n if (oldBindings) {\n binding.oldValue = oldBindings[i].value;\n }\n let hook = binding.dir[name];\n if (hook) {\n pauseTracking();\n callWithAsyncErrorHandling(hook, instance, 8, [\n vnode.el,\n binding,\n vnode,\n prevVNode\n ]);\n resetTracking();\n }\n }\n}\n\nfunction provide(key, value) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n if (!currentInstance || currentInstance.isMounted) {\n warn$1(`provide() can only be used inside setup().`);\n }\n }\n if (currentInstance) {\n let provides = currentInstance.provides;\n const parentProvides = currentInstance.parent && currentInstance.parent.provides;\n if (parentProvides === provides) {\n provides = currentInstance.provides = Object.create(parentProvides);\n }\n provides[key] = value;\n }\n}\nfunction inject(key, defaultValue, treatDefaultAsFactory = false) {\n const instance = getCurrentInstance();\n if (instance || currentApp) {\n let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;\n if (provides && key in provides) {\n return provides[key];\n } else if (arguments.length > 1) {\n return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(`injection \"${String(key)}\" not found.`);\n }\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(`inject() can only be used inside setup() or functional components.`);\n }\n}\nfunction hasInjectionContext() {\n return !!(getCurrentInstance() || currentApp);\n}\n\nconst ssrContextKey = /* @__PURE__ */ Symbol.for(\"v-scx\");\nconst useSSRContext = () => {\n {\n const ctx = inject(ssrContextKey);\n if (!ctx) {\n !!(process.env.NODE_ENV !== \"production\") && warn$1(\n `Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`\n );\n }\n return ctx;\n }\n};\n\nfunction watchEffect(effect, options) {\n return doWatch(effect, null, options);\n}\nfunction watchPostEffect(effect, options) {\n return doWatch(\n effect,\n null,\n !!(process.env.NODE_ENV !== \"production\") ? extend({}, options, { flush: \"post\" }) : { flush: \"post\" }\n );\n}\nfunction watchSyncEffect(effect, options) {\n return doWatch(\n effect,\n null,\n !!(process.env.NODE_ENV !== \"production\") ? extend({}, options, { flush: \"sync\" }) : { flush: \"sync\" }\n );\n}\nfunction watch(source, cb, options) {\n if (!!(process.env.NODE_ENV !== \"production\") && !isFunction(cb)) {\n warn$1(\n `\\`watch(fn, options?)\\` signature has been moved to a separate API. Use \\`watchEffect(fn, options?)\\` instead. \\`watch\\` now only supports \\`watch(source, cb, options?) signature.`\n );\n }\n return doWatch(source, cb, options);\n}\nfunction doWatch(source, cb, options = EMPTY_OBJ) {\n const { immediate, deep, flush, once } = options;\n if (!!(process.env.NODE_ENV !== \"production\") && !cb) {\n if (immediate !== void 0) {\n warn$1(\n `watch() \"immediate\" option is only respected when using the watch(source, callback, options?) signature.`\n );\n }\n if (deep !== void 0) {\n warn$1(\n `watch() \"deep\" option is only respected when using the watch(source, callback, options?) signature.`\n );\n }\n if (once !== void 0) {\n warn$1(\n `watch() \"once\" option is only respected when using the watch(source, callback, options?) signature.`\n );\n }\n }\n const baseWatchOptions = extend({}, options);\n if (!!(process.env.NODE_ENV !== \"production\")) baseWatchOptions.onWarn = warn$1;\n const runsImmediately = cb && immediate || !cb && flush !== \"post\";\n let ssrCleanup;\n if (isInSSRComponentSetup) {\n if (flush === \"sync\") {\n const ctx = useSSRContext();\n ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);\n } else if (!runsImmediately) {\n const watchStopHandle = () => {\n };\n watchStopHandle.stop = NOOP;\n watchStopHandle.resume = NOOP;\n watchStopHandle.pause = NOOP;\n return watchStopHandle;\n }\n }\n const instance = currentInstance;\n baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);\n let isPre = false;\n if (flush === \"post\") {\n baseWatchOptions.scheduler = (job) => {\n queuePostRenderEffect(job, instance && instance.suspense);\n };\n } else if (flush !== \"sync\") {\n isPre = true;\n baseWatchOptions.scheduler = (job, isFirstRun) => {\n if (isFirstRun) {\n job();\n } else {\n queueJob(job);\n }\n };\n }\n baseWatchOptions.augmentJob = (job) => {\n if (cb) {\n job.flags |= 4;\n }\n if (isPre) {\n job.flags |= 2;\n if (instance) {\n job.id = instance.uid;\n job.i = instance;\n }\n }\n };\n const watchHandle = watch$1(source, cb, baseWatchOptions);\n if (isInSSRComponentSetup) {\n if (ssrCleanup) {\n ssrCleanup.push(watchHandle);\n } else if (runsImmediately) {\n watchHandle();\n }\n }\n return watchHandle;\n}\nfunction instanceWatch(source, value, options) {\n const publicThis = this.proxy;\n const getter = isString(source) ? source.includes(\".\") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);\n let cb;\n if (isFunction(value)) {\n cb = value;\n } else {\n cb = value.handler;\n options = value;\n }\n const reset = setCurrentInstance(this);\n const res = doWatch(getter, cb.bind(publicThis), options);\n reset();\n return res;\n}\nfunction createPathGetter(ctx, path) {\n const segments = path.split(\".\");\n return () => {\n let cur = ctx;\n for (let i = 0; i < segments.length && cur; i++) {\n cur = cur[segments[i]];\n }\n return cur;\n };\n}\n\nconst pendingMounts = /* @__PURE__ */ new WeakMap();\nconst TeleportEndKey = /* @__PURE__ */ Symbol(\"_vte\");\nconst isTeleport = (type) => type.__isTeleport;\nconst isTeleportDisabled = (props) => props && (props.disabled || props.disabled === \"\");\nconst isTeleportDeferred = (props) => props && (props.defer || props.defer === \"\");\nconst isTargetSVG = (target) => typeof SVGElement !== \"undefined\" && target instanceof SVGElement;\nconst isTargetMathML = (target) => typeof MathMLElement === \"function\" && target instanceof MathMLElement;\nconst resolveTarget = (props, select) => {\n const targetSelector = props && props.to;\n if (isString(targetSelector)) {\n if (!select) {\n !!(process.env.NODE_ENV !== \"production\") && warn$1(\n `Current renderer does not support string target for Teleports. (missing querySelector renderer option)`\n );\n return null;\n } else {\n const target = select(targetSelector);\n if (!!(process.env.NODE_ENV !== \"production\") && !target && !isTeleportDisabled(props)) {\n warn$1(\n `Failed to locate Teleport target with selector \"${targetSelector}\". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`\n );\n }\n return target;\n }\n } else {\n if (!!(process.env.NODE_ENV !== \"production\") && !targetSelector && !isTeleportDisabled(props)) {\n warn$1(`Invalid Teleport target: ${targetSelector}`);\n }\n return targetSelector;\n }\n};\nconst TeleportImpl = {\n name: \"Teleport\",\n __isTeleport: true,\n process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals) {\n const {\n mc: mountChildren,\n pc: patchChildren,\n pbc: patchBlockChildren,\n o: { insert, querySelector, createText, createComment, parentNode }\n } = internals;\n const disabled = isTeleportDisabled(n2.props);\n let { dynamicChildren } = n2;\n if (!!(process.env.NODE_ENV !== \"production\") && isHmrUpdating) {\n optimized = false;\n dynamicChildren = null;\n }\n const mount = (vnode, container2, anchor2) => {\n if (vnode.shapeFlag & 16) {\n mountChildren(\n vnode.children,\n container2,\n anchor2,\n parentComponent,\n parentSuspense,\n namespace,\n slotScopeIds,\n optimized\n );\n }\n };\n const mountToTarget = (vnode = n2) => {\n const disabled2 = isTeleportDisabled(vnode.props);\n const target = vnode.target = resolveTarget(vnode.props, querySelector);\n const targetAnchor = prepareAnchor(target, vnode, createText, insert);\n if (target) {\n if (namespace !== \"svg\" && isTargetSVG(target)) {\n namespace = \"svg\";\n } else if (namespace !== \"mathml\" && isTargetMathML(target)) {\n namespace = \"mathml\";\n }\n if (parentComponent && parentComponent.isCE) {\n (parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);\n }\n if (!disabled2) {\n mount(vnode, target, targetAnchor);\n updateCssVars(vnode, false);\n }\n } else if (!!(process.env.NODE_ENV !== \"production\") && !disabled2) {\n warn$1(\"Invalid Teleport target on mount:\", target, `(${typeof target})`);\n }\n };\n const queuePendingMount = (vnode) => {\n const mountJob = () => {\n if (pendingMounts.get(vnode) !== mountJob) return;\n pendingMounts.delete(vnode);\n if (isTeleportDisabled(vnode.props)) {\n const mountContainer = parentNode(vnode.el) || container;\n mount(vnode, mountContainer, vnode.anchor);\n updateCssVars(vnode, true);\n }\n mountToTarget(vnode);\n };\n pendingMounts.set(vnode, mountJob);\n queuePostRenderEffect(mountJob, parentSuspense);\n };\n if (n1 == null) {\n const placeholder = n2.el = !!(process.env.NODE_ENV !== \"production\") ? createComment(\"teleport start\") : createText(\"\");\n const mainAnchor = n2.anchor = !!(process.env.NODE_ENV !== \"production\") ? createComment(\"teleport end\") : createText(\"\");\n insert(placeholder, container, anchor);\n insert(mainAnchor, container, anchor);\n if (isTeleportDeferred(n2.props) || parentSuspense && parentSuspense.pendingBranch) {\n queuePendingMount(n2);\n return;\n }\n if (disabled) {\n mount(n2, container, mainAnchor);\n updateCssVars(n2, true);\n }\n mountToTarget();\n } else {\n n2.el = n1.el;\n const mainAnchor = n2.anchor = n1.anchor;\n const pendingMount = pendingMounts.get(n1);\n if (pendingMount) {\n pendingMount.flags |= 8;\n pendingMounts.delete(n1);\n queuePendingMount(n2);\n return;\n }\n n2.targetStart = n1.targetStart;\n const target = n2.target = n1.target;\n const targetAnchor = n2.targetAnchor = n1.targetAnchor;\n const wasDisabled = isTeleportDisabled(n1.props);\n const currentContainer = wasDisabled ? container : target;\n const currentAnchor = wasDisabled ? mainAnchor : targetAnchor;\n if (namespace === \"svg\" || isTargetSVG(target)) {\n namespace = \"svg\";\n } else if (namespace === \"mathml\" || isTargetMathML(target)) {\n namespace = \"mathml\";\n }\n if (dynamicChildren) {\n patchBlockChildren(\n n1.dynamicChildren,\n dynamicChildren,\n currentContainer,\n parentComponent,\n parentSuspense,\n namespace,\n slotScopeIds\n );\n traverseStaticChildren(n1, n2, !!!(process.env.NODE_ENV !== \"production\"));\n } else if (!optimized) {\n patchChildren(\n n1,\n n2,\n currentContainer,\n currentAnchor,\n parentComponent,\n parentSuspense,\n namespace,\n slotScopeIds,\n false\n );\n }\n if (disabled) {\n if (!wasDisabled) {\n moveTeleport(\n n2,\n container,\n mainAnchor,\n internals,\n 1\n );\n } else {\n if (n2.props && n1.props && n2.props.to !== n1.props.to) {\n n2.props.to = n1.props.to;\n }\n }\n } else {\n if ((n2.props && n2.props.to) !== (n1.props && n1.props.to)) {\n const nextTarget = resolveTarget(n2.props, querySelector);\n if (nextTarget) {\n n2.target = nextTarget;\n moveTeleport(\n n2,\n nextTarget,\n null,\n internals,\n 0\n );\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\n \"Invalid Teleport target on update:\",\n target,\n `(${typeof target})`\n );\n }\n } else if (wasDisabled) {\n moveTeleport(\n n2,\n target,\n targetAnchor,\n internals,\n 1\n );\n }\n }\n updateCssVars(n2, disabled);\n }\n },\n remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {\n const {\n shapeFlag,\n children,\n anchor,\n targetStart,\n targetAnchor,\n target,\n props\n } = vnode;\n const disabled = isTeleportDisabled(props);\n const shouldRemove = doRemove || !disabled;\n const pendingMount = pendingMounts.get(vnode);\n if (pendingMount) {\n pendingMount.flags |= 8;\n pendingMounts.delete(vnode);\n }\n if (target) {\n hostRemove(targetStart);\n hostRemove(targetAnchor);\n }\n doRemove && hostRemove(anchor);\n if (!pendingMount && (disabled || target) && shapeFlag & 16) {\n for (let i = 0; i < children.length; i++) {\n const child = children[i];\n unmount(\n child,\n parentComponent,\n parentSuspense,\n shouldRemove,\n !!child.dynamicChildren\n );\n }\n }\n },\n move: moveTeleport,\n hydrate: hydrateTeleport\n};\nfunction moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2) {\n if (moveType === 0) {\n insert(vnode.targetAnchor, container, parentAnchor);\n }\n const { el, anchor, shapeFlag, children, props } = vnode;\n const isReorder = moveType === 2;\n if (isReorder) {\n insert(el, container, parentAnchor);\n }\n if (!pendingMounts.has(vnode) && (!isReorder || isTeleportDisabled(props))) {\n if (shapeFlag & 16) {\n for (let i = 0; i < children.length; i++) {\n move(\n children[i],\n container,\n parentAnchor,\n 2\n );\n }\n }\n }\n if (isReorder) {\n insert(anchor, container, parentAnchor);\n }\n}\nfunction hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, {\n o: { nextSibling, parentNode, querySelector, insert, createText }\n}, hydrateChildren) {\n function hydrateAnchor(target2, targetNode) {\n let targetAnchor = targetNode;\n while (targetAnchor) {\n if (targetAnchor && targetAnchor.nodeType === 8) {\n if (targetAnchor.data === \"teleport start anchor\") {\n vnode.targetStart = targetAnchor;\n } else if (targetAnchor.data === \"teleport anchor\") {\n vnode.targetAnchor = targetAnchor;\n target2._lpa = vnode.targetAnchor && nextSibling(vnode.targetAnchor);\n break;\n }\n }\n targetAnchor = nextSibling(targetAnchor);\n }\n }\n function hydrateDisabledTeleport(node2, vnode2) {\n vnode2.anchor = hydrateChildren(\n nextSibling(node2),\n vnode2,\n parentNode(node2),\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n }\n const target = vnode.target = resolveTarget(\n vnode.props,\n querySelector\n );\n const disabled = isTeleportDisabled(vnode.props);\n if (target) {\n const targetNode = target._lpa || target.firstChild;\n if (vnode.shapeFlag & 16) {\n if (disabled) {\n hydrateDisabledTeleport(node, vnode);\n hydrateAnchor(target, targetNode);\n if (!vnode.targetAnchor) {\n prepareAnchor(\n target,\n vnode,\n createText,\n insert,\n // if target is the same as the main view, insert anchors before current node\n // to avoid hydrating mismatch\n parentNode(node) === target ? node : null\n );\n }\n } else {\n vnode.anchor = nextSibling(node);\n hydrateAnchor(target, targetNode);\n if (!vnode.targetAnchor) {\n prepareAnchor(target, vnode, createText, insert);\n }\n hydrateChildren(\n targetNode && nextSibling(targetNode),\n vnode,\n target,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n }\n }\n updateCssVars(vnode, disabled);\n } else if (disabled) {\n if (vnode.shapeFlag & 16) {\n hydrateDisabledTeleport(node, vnode);\n vnode.targetStart = node;\n vnode.targetAnchor = nextSibling(node);\n }\n }\n return vnode.anchor && nextSibling(vnode.anchor);\n}\nconst Teleport = TeleportImpl;\nfunction updateCssVars(vnode, isDisabled) {\n const ctx = vnode.ctx;\n if (ctx && ctx.ut) {\n let node, anchor;\n if (isDisabled) {\n node = vnode.el;\n anchor = vnode.anchor;\n } else {\n node = vnode.targetStart;\n anchor = vnode.targetAnchor;\n }\n while (node && node !== anchor) {\n if (node.nodeType === 1) node.setAttribute(\"data-v-owner\", ctx.uid);\n node = node.nextSibling;\n }\n ctx.ut();\n }\n}\nfunction prepareAnchor(target, vnode, createText, insert, anchor = null) {\n const targetStart = vnode.targetStart = createText(\"\");\n const targetAnchor = vnode.targetAnchor = createText(\"\");\n targetStart[TeleportEndKey] = targetAnchor;\n if (target) {\n insert(targetStart, target, anchor);\n insert(targetAnchor, target, anchor);\n }\n return targetAnchor;\n}\n\nconst leaveCbKey = /* @__PURE__ */ Symbol(\"_leaveCb\");\nconst enterCbKey = /* @__PURE__ */ Symbol(\"_enterCb\");\nfunction useTransitionState() {\n const state = {\n isMounted: false,\n isLeaving: false,\n isUnmounting: false,\n leavingVNodes: /* @__PURE__ */ new Map()\n };\n onMounted(() => {\n state.isMounted = true;\n });\n onBeforeUnmount(() => {\n state.isUnmounting = true;\n });\n return state;\n}\nconst TransitionHookValidator = [Function, Array];\nconst BaseTransitionPropsValidators = {\n mode: String,\n appear: Boolean,\n persisted: Boolean,\n // enter\n onBeforeEnter: TransitionHookValidator,\n onEnter: TransitionHookValidator,\n onAfterEnter: TransitionHookValidator,\n onEnterCancelled: TransitionHookValidator,\n // leave\n onBeforeLeave: TransitionHookValidator,\n onLeave: TransitionHookValidator,\n onAfterLeave: TransitionHookValidator,\n onLeaveCancelled: TransitionHookValidator,\n // appear\n onBeforeAppear: TransitionHookValidator,\n onAppear: TransitionHookValidator,\n onAfterAppear: TransitionHookValidator,\n onAppearCancelled: TransitionHookValidator\n};\nconst recursiveGetSubtree = (instance) => {\n const subTree = instance.subTree;\n return subTree.component ? recursiveGetSubtree(subTree.component) : subTree;\n};\nconst BaseTransitionImpl = {\n name: `BaseTransition`,\n props: BaseTransitionPropsValidators,\n setup(props, { slots }) {\n const instance = getCurrentInstance();\n const state = useTransitionState();\n return () => {\n const children = slots.default && getTransitionRawChildren(slots.default(), true);\n const child = children && children.length ? findNonCommentChild(children) : (\n // Keep explicit default-slot conditionals on the same transition path\n // as regular v-if branches, which render a comment placeholder.\n instance.subTree ? createCommentVNode() : void 0\n );\n if (!child) {\n return;\n }\n const rawProps = toRaw(props);\n const { mode } = rawProps;\n if (!!(process.env.NODE_ENV !== \"production\") && mode && mode !== \"in-out\" && mode !== \"out-in\" && mode !== \"default\") {\n warn$1(`invalid mode: ${mode}`);\n }\n if (state.isLeaving) {\n return emptyPlaceholder(child);\n }\n const innerChild = getInnerChild$1(child);\n if (!innerChild) {\n return emptyPlaceholder(child);\n }\n let enterHooks = resolveTransitionHooks(\n innerChild,\n rawProps,\n state,\n instance,\n // #11061, ensure enterHooks is fresh after clone\n (hooks) => enterHooks = hooks\n );\n if (innerChild.type !== Comment) {\n setTransitionHooks(innerChild, enterHooks);\n }\n let oldInnerChild = instance.subTree && getInnerChild$1(instance.subTree);\n if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(oldInnerChild, innerChild) && recursiveGetSubtree(instance).type !== Comment) {\n let leavingHooks = resolveTransitionHooks(\n oldInnerChild,\n rawProps,\n state,\n instance\n );\n setTransitionHooks(oldInnerChild, leavingHooks);\n if (mode === \"out-in\" && innerChild.type !== Comment) {\n state.isLeaving = true;\n leavingHooks.afterLeave = () => {\n state.isLeaving = false;\n if (!(instance.job.flags & 8)) {\n instance.update();\n }\n delete leavingHooks.afterLeave;\n oldInnerChild = void 0;\n };\n return emptyPlaceholder(child);\n } else if (mode === \"in-out\" && innerChild.type !== Comment) {\n leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => {\n const leavingVNodesCache = getLeavingNodesForType(\n state,\n oldInnerChild\n );\n leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild;\n el[leaveCbKey] = () => {\n earlyRemove();\n el[leaveCbKey] = void 0;\n delete enterHooks.delayedLeave;\n oldInnerChild = void 0;\n };\n enterHooks.delayedLeave = () => {\n delayedLeave();\n delete enterHooks.delayedLeave;\n oldInnerChild = void 0;\n };\n };\n } else {\n oldInnerChild = void 0;\n }\n } else if (oldInnerChild) {\n oldInnerChild = void 0;\n }\n return child;\n };\n }\n};\nfunction findNonCommentChild(children) {\n let child = children[0];\n if (children.length > 1) {\n let hasFound = false;\n for (const c of children) {\n if (c.type !== Comment) {\n if (!!(process.env.NODE_ENV !== \"production\") && hasFound) {\n warn$1(\n \" can only be used on a single element or component. Use for lists.\"\n );\n break;\n }\n child = c;\n hasFound = true;\n if (!!!(process.env.NODE_ENV !== \"production\")) break;\n }\n }\n }\n return child;\n}\nconst BaseTransition = BaseTransitionImpl;\nfunction getLeavingNodesForType(state, vnode) {\n const { leavingVNodes } = state;\n let leavingVNodesCache = leavingVNodes.get(vnode.type);\n if (!leavingVNodesCache) {\n leavingVNodesCache = /* @__PURE__ */ Object.create(null);\n leavingVNodes.set(vnode.type, leavingVNodesCache);\n }\n return leavingVNodesCache;\n}\nfunction resolveTransitionHooks(vnode, props, state, instance, postClone) {\n const {\n appear,\n mode,\n persisted = false,\n onBeforeEnter,\n onEnter,\n onAfterEnter,\n onEnterCancelled,\n onBeforeLeave,\n onLeave,\n onAfterLeave,\n onLeaveCancelled,\n onBeforeAppear,\n onAppear,\n onAfterAppear,\n onAppearCancelled\n } = props;\n const key = String(vnode.key);\n const leavingVNodesCache = getLeavingNodesForType(state, vnode);\n const callHook = (hook, args) => {\n hook && callWithAsyncErrorHandling(\n hook,\n instance,\n 9,\n args\n );\n };\n const callAsyncHook = (hook, args) => {\n const done = args[1];\n callHook(hook, args);\n if (isArray(hook)) {\n if (hook.every((hook2) => hook2.length <= 1)) done();\n } else if (hook.length <= 1) {\n done();\n }\n };\n const hooks = {\n mode,\n persisted,\n beforeEnter(el) {\n let hook = onBeforeEnter;\n if (!state.isMounted) {\n if (appear) {\n hook = onBeforeAppear || onBeforeEnter;\n } else {\n return;\n }\n }\n if (el[leaveCbKey]) {\n el[leaveCbKey](\n true\n /* cancelled */\n );\n }\n const leavingVNode = leavingVNodesCache[key];\n if (leavingVNode && isSameVNodeType(vnode, leavingVNode) && leavingVNode.el[leaveCbKey]) {\n leavingVNode.el[leaveCbKey]();\n }\n callHook(hook, [el]);\n },\n enter(el) {\n if (!isHmrUpdating && leavingVNodesCache[key] === vnode) return;\n let hook = onEnter;\n let afterHook = onAfterEnter;\n let cancelHook = onEnterCancelled;\n if (!state.isMounted) {\n if (appear) {\n hook = onAppear || onEnter;\n afterHook = onAfterAppear || onAfterEnter;\n cancelHook = onAppearCancelled || onEnterCancelled;\n } else {\n return;\n }\n }\n let called = false;\n el[enterCbKey] = (cancelled) => {\n if (called) return;\n called = true;\n if (cancelled) {\n callHook(cancelHook, [el]);\n } else {\n callHook(afterHook, [el]);\n }\n if (hooks.delayedLeave) {\n hooks.delayedLeave();\n }\n el[enterCbKey] = void 0;\n };\n const done = el[enterCbKey].bind(null, false);\n if (hook) {\n callAsyncHook(hook, [el, done]);\n } else {\n done();\n }\n },\n leave(el, remove) {\n const key2 = String(vnode.key);\n if (el[enterCbKey]) {\n el[enterCbKey](\n true\n /* cancelled */\n );\n }\n if (state.isUnmounting) {\n return remove();\n }\n callHook(onBeforeLeave, [el]);\n let called = false;\n el[leaveCbKey] = (cancelled) => {\n if (called) return;\n called = true;\n remove();\n if (cancelled) {\n callHook(onLeaveCancelled, [el]);\n } else {\n callHook(onAfterLeave, [el]);\n }\n el[leaveCbKey] = void 0;\n if (leavingVNodesCache[key2] === vnode) {\n delete leavingVNodesCache[key2];\n }\n };\n const done = el[leaveCbKey].bind(null, false);\n leavingVNodesCache[key2] = vnode;\n if (onLeave) {\n callAsyncHook(onLeave, [el, done]);\n } else {\n done();\n }\n },\n clone(vnode2) {\n const hooks2 = resolveTransitionHooks(\n vnode2,\n props,\n state,\n instance,\n postClone\n );\n if (postClone) postClone(hooks2);\n return hooks2;\n }\n };\n return hooks;\n}\nfunction emptyPlaceholder(vnode) {\n if (isKeepAlive(vnode)) {\n vnode = cloneVNode(vnode);\n vnode.children = null;\n return vnode;\n }\n}\nfunction getInnerChild$1(vnode) {\n if (!isKeepAlive(vnode)) {\n if (isTeleport(vnode.type) && vnode.children) {\n return findNonCommentChild(vnode.children);\n }\n return vnode;\n }\n if (vnode.component) {\n return vnode.component.subTree;\n }\n const { shapeFlag, children } = vnode;\n if (children) {\n if (shapeFlag & 16) {\n return children[0];\n }\n if (shapeFlag & 32 && isFunction(children.default)) {\n return children.default();\n }\n }\n}\nfunction setTransitionHooks(vnode, hooks) {\n if (vnode.shapeFlag & 6 && vnode.component) {\n vnode.transition = hooks;\n const subTree = vnode.component.subTree;\n setTransitionHooks(\n isTeleport(subTree.type) ? getInnerChild$1(subTree) || subTree : subTree,\n hooks\n );\n } else if (vnode.shapeFlag & 128) {\n vnode.ssContent.transition = hooks.clone(vnode.ssContent);\n vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);\n } else {\n vnode.transition = hooks;\n }\n}\nfunction getTransitionRawChildren(children, keepComment = false, parentKey) {\n let ret = [];\n let keyedFragmentCount = 0;\n for (let i = 0; i < children.length; i++) {\n let child = children[i];\n const key = parentKey == null ? child.key : String(parentKey) + String(child.key != null ? child.key : i);\n if (child.type === Fragment) {\n if (child.patchFlag & 128) keyedFragmentCount++;\n ret = ret.concat(\n getTransitionRawChildren(child.children, keepComment, key)\n );\n } else if (keepComment || child.type !== Comment) {\n ret.push(key != null ? cloneVNode(child, { key }) : child);\n }\n }\n if (keyedFragmentCount > 1) {\n for (let i = 0; i < ret.length; i++) {\n ret[i].patchFlag = -2;\n }\n }\n return ret;\n}\n\n// @__NO_SIDE_EFFECTS__\nfunction defineComponent(options, extraOptions) {\n return isFunction(options) ? (\n // #8236: extend call and options.name access are considered side-effects\n // by Rollup, so we have to wrap it in a pure-annotated IIFE.\n /* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))()\n ) : options;\n}\n\nfunction useId() {\n const i = getCurrentInstance();\n if (i) {\n return (i.appContext.config.idPrefix || \"v\") + \"-\" + i.ids[0] + i.ids[1]++;\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\n `useId() is called when there is no active component instance to be associated with.`\n );\n }\n return \"\";\n}\nfunction markAsyncBoundary(instance) {\n instance.ids = [instance.ids[0] + instance.ids[2]++ + \"-\", 0, 0];\n}\n\nconst knownTemplateRefs = /* @__PURE__ */ new WeakSet();\nfunction useTemplateRef(key) {\n const i = getCurrentInstance();\n const r = shallowRef(null);\n if (i) {\n const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;\n if (!!(process.env.NODE_ENV !== \"production\") && isTemplateRefKey(refs, key)) {\n warn$1(`useTemplateRef('${key}') already exists.`);\n } else {\n Object.defineProperty(refs, key, {\n enumerable: true,\n get: () => r.value,\n set: (val) => r.value = val\n });\n }\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\n `useTemplateRef() is called when there is no active component instance to be associated with.`\n );\n }\n const ret = !!(process.env.NODE_ENV !== \"production\") ? readonly(r) : r;\n if (!!(process.env.NODE_ENV !== \"production\")) {\n knownTemplateRefs.add(ret);\n }\n return ret;\n}\nfunction isTemplateRefKey(refs, key) {\n let desc;\n return !!((desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable);\n}\n\nconst pendingSetRefMap = /* @__PURE__ */ new WeakMap();\nfunction setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {\n if (isArray(rawRef)) {\n rawRef.forEach(\n (r, i) => setRef(\n r,\n oldRawRef && (isArray(oldRawRef) ? oldRawRef[i] : oldRawRef),\n parentSuspense,\n vnode,\n isUnmount\n )\n );\n return;\n }\n if (isAsyncWrapper(vnode) && !isUnmount) {\n if (vnode.shapeFlag & 512 && vnode.type.__asyncResolved && vnode.component.subTree.component) {\n setRef(rawRef, oldRawRef, parentSuspense, vnode.component.subTree);\n }\n return;\n }\n const refValue = vnode.shapeFlag & 4 ? getComponentPublicInstance(vnode.component) : vnode.el;\n const value = isUnmount ? null : refValue;\n const { i: owner, r: ref } = rawRef;\n if (!!(process.env.NODE_ENV !== \"production\") && !owner) {\n warn$1(\n `Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.`\n );\n return;\n }\n const oldRef = oldRawRef && oldRawRef.r;\n const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs;\n const setupState = owner.setupState;\n const rawSetupState = toRaw(setupState);\n const canSetSetupRef = setupState === EMPTY_OBJ ? NO : (key) => {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n if (hasOwn(rawSetupState, key) && !isRef(rawSetupState[key])) {\n warn$1(\n `Template ref \"${key}\" used on a non-ref value. It will not work in the production build.`\n );\n }\n if (knownTemplateRefs.has(rawSetupState[key])) {\n return false;\n }\n }\n if (isTemplateRefKey(refs, key)) {\n return false;\n }\n return hasOwn(rawSetupState, key);\n };\n const canSetRef = (ref2, key) => {\n if (!!(process.env.NODE_ENV !== \"production\") && knownTemplateRefs.has(ref2)) {\n return false;\n }\n if (key && isTemplateRefKey(refs, key)) {\n return false;\n }\n return true;\n };\n if (oldRef != null && oldRef !== ref) {\n invalidatePendingSetRef(oldRawRef);\n if (isString(oldRef)) {\n refs[oldRef] = null;\n if (canSetSetupRef(oldRef)) {\n setupState[oldRef] = null;\n }\n } else if (isRef(oldRef)) {\n const oldRawRefAtom = oldRawRef;\n if (canSetRef(oldRef, oldRawRefAtom.k)) {\n oldRef.value = null;\n }\n if (oldRawRefAtom.k) refs[oldRawRefAtom.k] = null;\n }\n }\n if (isFunction(ref)) {\n callWithErrorHandling(ref, owner, 12, [value, refs]);\n } else {\n const _isString = isString(ref);\n const _isRef = isRef(ref);\n if (_isString || _isRef) {\n const doSet = () => {\n if (rawRef.f) {\n const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : canSetRef(ref) || !rawRef.k ? ref.value : refs[rawRef.k];\n if (isUnmount) {\n isArray(existing) && remove(existing, refValue);\n } else {\n if (!isArray(existing)) {\n if (_isString) {\n refs[ref] = [refValue];\n if (canSetSetupRef(ref)) {\n setupState[ref] = refs[ref];\n }\n } else {\n const newVal = [refValue];\n if (canSetRef(ref, rawRef.k)) {\n ref.value = newVal;\n }\n if (rawRef.k) refs[rawRef.k] = newVal;\n }\n } else if (!existing.includes(refValue)) {\n existing.push(refValue);\n }\n }\n } else if (_isString) {\n refs[ref] = value;\n if (canSetSetupRef(ref)) {\n setupState[ref] = value;\n }\n } else if (_isRef) {\n if (canSetRef(ref, rawRef.k)) {\n ref.value = value;\n }\n if (rawRef.k) refs[rawRef.k] = value;\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\"Invalid template ref type:\", ref, `(${typeof ref})`);\n }\n };\n if (value) {\n const job = () => {\n doSet();\n pendingSetRefMap.delete(rawRef);\n };\n job.id = -1;\n pendingSetRefMap.set(rawRef, job);\n queuePostRenderEffect(job, parentSuspense);\n } else {\n invalidatePendingSetRef(rawRef);\n doSet();\n }\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\"Invalid template ref type:\", ref, `(${typeof ref})`);\n }\n }\n}\nfunction invalidatePendingSetRef(rawRef) {\n const pendingSetRef = pendingSetRefMap.get(rawRef);\n if (pendingSetRef) {\n pendingSetRef.flags |= 8;\n pendingSetRefMap.delete(rawRef);\n }\n}\n\nlet hasLoggedMismatchError = false;\nconst logMismatchError = () => {\n if (hasLoggedMismatchError) {\n return;\n }\n console.error(\"Hydration completed but contains mismatches.\");\n hasLoggedMismatchError = true;\n};\nconst isSVGContainer = (container) => container.namespaceURI.includes(\"svg\") && container.tagName !== \"foreignObject\";\nconst isMathMLContainer = (container) => container.namespaceURI.includes(\"MathML\");\nconst getContainerType = (container) => {\n if (container.nodeType !== 1) return void 0;\n if (isSVGContainer(container)) return \"svg\";\n if (isMathMLContainer(container)) return \"mathml\";\n return void 0;\n};\nconst isComment = (node) => node.nodeType === 8;\nfunction createHydrationFunctions(rendererInternals) {\n const {\n mt: mountComponent,\n p: patch,\n o: {\n patchProp,\n createText,\n nextSibling,\n parentNode,\n remove,\n insert,\n createComment\n }\n } = rendererInternals;\n const hydrate = (vnode, container) => {\n if (!container.hasChildNodes()) {\n (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(\n `Attempting to hydrate existing markup but container is empty. Performing full mount instead.`\n );\n patch(null, vnode, container);\n flushPostFlushCbs();\n container._vnode = vnode;\n return;\n }\n hydrateNode(container.firstChild, vnode, null, null, null);\n flushPostFlushCbs();\n container._vnode = vnode;\n };\n const hydrateNode = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized = false) => {\n optimized = optimized || !!vnode.dynamicChildren;\n const isFragmentStart = isComment(node) && node.data === \"[\";\n const onMismatch = () => handleMismatch(\n node,\n vnode,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n isFragmentStart\n );\n const { type, ref, shapeFlag, patchFlag } = vnode;\n let domType = node.nodeType;\n vnode.el = node;\n if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_DEVTOOLS__) {\n def(node, \"__vnode\", vnode, true);\n def(node, \"__vueParentComponent\", parentComponent, true);\n }\n if (patchFlag === -2) {\n optimized = false;\n vnode.dynamicChildren = null;\n }\n let nextNode = null;\n switch (type) {\n case Text:\n if (domType !== 3) {\n if (vnode.children === \"\") {\n insert(vnode.el = createText(\"\"), parentNode(node), node);\n nextNode = node;\n } else {\n nextNode = onMismatch();\n }\n } else {\n if (node.data !== vnode.children) {\n (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(\n `Hydration text mismatch in`,\n node.parentNode,\n `\n - rendered on server: ${JSON.stringify(\n node.data\n )}\n - expected on client: ${JSON.stringify(vnode.children)}`\n );\n logMismatchError();\n node.data = vnode.children;\n }\n nextNode = nextSibling(node);\n }\n break;\n case Comment:\n if (isTemplateNode(node)) {\n nextNode = nextSibling(node);\n replaceNode(\n vnode.el = node.content.firstChild,\n node,\n parentComponent\n );\n } else if (domType !== 8 || isFragmentStart) {\n nextNode = onMismatch();\n } else {\n nextNode = nextSibling(node);\n }\n break;\n case Static:\n if (isFragmentStart) {\n node = nextSibling(node);\n domType = node.nodeType;\n }\n if (domType === 1 || domType === 3) {\n nextNode = node;\n const needToAdoptContent = !vnode.children.length;\n for (let i = 0; i < vnode.staticCount; i++) {\n if (needToAdoptContent)\n vnode.children += nextNode.nodeType === 1 ? nextNode.outerHTML : nextNode.data;\n if (i === vnode.staticCount - 1) {\n vnode.anchor = nextNode;\n }\n nextNode = nextSibling(nextNode);\n }\n return isFragmentStart ? nextSibling(nextNode) : nextNode;\n } else {\n onMismatch();\n }\n break;\n case Fragment:\n if (!isFragmentStart) {\n nextNode = onMismatch();\n } else {\n nextNode = hydrateFragment(\n node,\n vnode,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n }\n break;\n default:\n if (shapeFlag & 1) {\n if ((domType !== 1 || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) && !isTemplateNode(node)) {\n nextNode = onMismatch();\n } else {\n nextNode = hydrateElement(\n node,\n vnode,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n }\n } else if (shapeFlag & 6) {\n vnode.slotScopeIds = slotScopeIds;\n const container = parentNode(node);\n if (isFragmentStart) {\n nextNode = locateClosingAnchor(node);\n } else if (isComment(node) && node.data === \"teleport start\") {\n nextNode = locateClosingAnchor(node, node.data, \"teleport end\");\n } else {\n nextNode = nextSibling(node);\n }\n mountComponent(\n vnode,\n container,\n null,\n parentComponent,\n parentSuspense,\n getContainerType(container),\n optimized\n );\n if (isAsyncWrapper(vnode) && !vnode.type.__asyncResolved) {\n let subTree;\n if (isFragmentStart) {\n subTree = createVNode(Fragment);\n subTree.anchor = nextNode ? nextNode.previousSibling : container.lastChild;\n } else {\n subTree = node.nodeType === 3 ? createTextVNode(\"\") : createVNode(\"div\");\n }\n subTree.el = node;\n vnode.component.subTree = subTree;\n }\n } else if (shapeFlag & 64) {\n if (domType !== 8) {\n nextNode = onMismatch();\n } else {\n nextNode = vnode.type.hydrate(\n node,\n vnode,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized,\n rendererInternals,\n hydrateChildren\n );\n }\n } else if (shapeFlag & 128) {\n nextNode = vnode.type.hydrate(\n node,\n vnode,\n parentComponent,\n parentSuspense,\n getContainerType(parentNode(node)),\n slotScopeIds,\n optimized,\n rendererInternals,\n hydrateNode\n );\n } else if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) {\n warn$1(\"Invalid HostVNode type:\", type, `(${typeof type})`);\n }\n }\n if (ref != null) {\n setRef(ref, null, parentSuspense, vnode);\n }\n return nextNode;\n };\n const hydrateElement = (el, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {\n optimized = optimized || !!vnode.dynamicChildren;\n const {\n type,\n dynamicProps,\n props,\n patchFlag,\n shapeFlag,\n dirs,\n transition\n } = vnode;\n const forcePatch = type === \"input\" || type === \"option\";\n const hasDynamicProps = !!dynamicProps;\n if (!!(process.env.NODE_ENV !== \"production\") || forcePatch || hasDynamicProps || patchFlag !== -1) {\n if (dirs) {\n invokeDirectiveHook(vnode, null, parentComponent, \"created\");\n }\n let needCallTransitionHooks = false;\n if (isTemplateNode(el)) {\n needCallTransitionHooks = needTransition(\n null,\n // no need check parentSuspense in hydration\n transition\n ) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;\n const content = el.content.firstChild;\n if (needCallTransitionHooks) {\n const cls = content.getAttribute(\"class\");\n if (cls) content.$cls = cls;\n transition.beforeEnter(content);\n }\n replaceNode(content, el, parentComponent);\n vnode.el = el = content;\n }\n if (shapeFlag & 16 && // skip if element has innerHTML / textContent\n !(props && (props.innerHTML || props.textContent))) {\n let next = hydrateChildren(\n el.firstChild,\n vnode,\n el,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n if (next && !isMismatchAllowed(el, 1 /* CHILDREN */)) {\n (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(\n `Hydration children mismatch on`,\n el,\n `\nServer rendered element contains more child nodes than client vdom.`\n );\n logMismatchError();\n }\n while (next) {\n const cur = next;\n next = next.nextSibling;\n remove(cur);\n }\n } else if (shapeFlag & 8) {\n let clientText = vnode.children;\n if (clientText[0] === \"\\n\" && (el.tagName === \"PRE\" || el.tagName === \"TEXTAREA\")) {\n clientText = clientText.slice(1);\n }\n const { textContent } = el;\n if (textContent !== clientText && // innerHTML normalize \\r\\n or \\r into a single \\n in the DOM\n textContent !== clientText.replace(/\\r\\n|\\r/g, \"\\n\")) {\n if (!isMismatchAllowed(el, 0 /* TEXT */)) {\n (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(\n `Hydration text content mismatch on`,\n el,\n `\n - rendered on server: ${textContent}\n - expected on client: ${clientText}`\n );\n logMismatchError();\n }\n el.textContent = vnode.children;\n }\n }\n if (props) {\n if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ || forcePatch || hasDynamicProps || !optimized || patchFlag & (16 | 32)) {\n const isCustomElement = el.tagName.includes(\"-\");\n const namespace = el.namespaceURI.includes(\"svg\") ? \"svg\" : el.namespaceURI.includes(\"MathML\") ? \"mathml\" : void 0;\n for (const key in props) {\n if ((!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && // #11189 skip if this node has directives that have created hooks\n // as it could have mutated the DOM in any possible way\n !(dirs && dirs.some((d) => d.dir.created)) && propHasMismatch(el, key, props[key], vnode, parentComponent)) {\n logMismatchError();\n }\n if (forcePatch && (key.endsWith(\"value\") || key === \"indeterminate\") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers\n key[0] === \".\" || isCustomElement && !isReservedProp(key) || dynamicProps && dynamicProps.includes(key)) {\n if (isUnchangedResourceProp(el, key, props[key])) {\n continue;\n }\n patchProp(el, key, null, props[key], namespace, parentComponent);\n }\n }\n } else if (props.onClick) {\n patchProp(\n el,\n \"onClick\",\n null,\n props.onClick,\n void 0,\n parentComponent\n );\n } else if (patchFlag & 4 && isReactive(props.style)) {\n for (const key in props.style) props.style[key];\n }\n }\n let vnodeHooks;\n if (vnodeHooks = props && props.onVnodeBeforeMount) {\n invokeVNodeHook(vnodeHooks, parentComponent, vnode);\n }\n if (dirs) {\n invokeDirectiveHook(vnode, null, parentComponent, \"beforeMount\");\n }\n if ((vnodeHooks = props && props.onVnodeMounted) || dirs || needCallTransitionHooks) {\n queueEffectWithSuspense(() => {\n vnodeHooks && invokeVNodeHook(vnodeHooks, parentComponent, vnode);\n needCallTransitionHooks && transition.enter(el);\n dirs && invokeDirectiveHook(vnode, null, parentComponent, \"mounted\");\n }, parentSuspense);\n }\n }\n return el.nextSibling;\n };\n const hydrateChildren = (node, parentVNode, container, parentComponent, parentSuspense, slotScopeIds, optimized) => {\n optimized = optimized || !!parentVNode.dynamicChildren;\n const children = parentVNode.children;\n const l = children.length;\n let hasCheckedMismatch = false;\n for (let i = 0; i < l; i++) {\n const vnode = optimized ? children[i] : children[i] = normalizeVNode(children[i]);\n const isText = vnode.type === Text;\n if (node) {\n if (isText && !optimized) {\n if (i + 1 < l && normalizeVNode(children[i + 1]).type === Text) {\n insert(\n createText(\n node.data.slice(vnode.children.length)\n ),\n container,\n nextSibling(node)\n );\n node.data = vnode.children;\n }\n }\n node = hydrateNode(\n node,\n vnode,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n } else if (isText && !vnode.children) {\n insert(vnode.el = createText(\"\"), container);\n } else {\n if (!hasCheckedMismatch) {\n hasCheckedMismatch = true;\n if (!isMismatchAllowed(container, 1 /* CHILDREN */)) {\n (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(\n `Hydration children mismatch on`,\n container,\n `\nServer rendered element contains fewer child nodes than client vdom.`\n );\n logMismatchError();\n }\n }\n patch(\n null,\n vnode,\n container,\n null,\n parentComponent,\n parentSuspense,\n getContainerType(container),\n slotScopeIds\n );\n }\n }\n return node;\n };\n const hydrateFragment = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {\n const { slotScopeIds: fragmentSlotScopeIds } = vnode;\n if (fragmentSlotScopeIds) {\n slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds;\n }\n const container = parentNode(node);\n const next = hydrateChildren(\n nextSibling(node),\n vnode,\n container,\n parentComponent,\n parentSuspense,\n slotScopeIds,\n optimized\n );\n if (next && isComment(next) && next.data === \"]\") {\n return nextSibling(vnode.anchor = next);\n } else {\n logMismatchError();\n insert(vnode.anchor = createComment(`]`), container, next);\n return next;\n }\n };\n const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {\n if (!isNodeMismatchAllowed(node, vnode)) {\n (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(\n `Hydration node mismatch:\n- rendered on server:`,\n node,\n node.nodeType === 3 ? `(text)` : isComment(node) && node.data === \"[\" ? `(start of fragment)` : ``,\n `\n- expected on client:`,\n vnode.type\n );\n logMismatchError();\n }\n vnode.el = null;\n if (isFragment) {\n const end = locateClosingAnchor(node);\n while (true) {\n const next2 = nextSibling(node);\n if (next2 && next2 !== end) {\n remove(next2);\n } else {\n break;\n }\n }\n }\n const next = nextSibling(node);\n const container = parentNode(node);\n remove(node);\n patch(\n null,\n vnode,\n container,\n next,\n parentComponent,\n parentSuspense,\n getContainerType(container),\n slotScopeIds\n );\n if (parentComponent) {\n parentComponent.vnode.el = vnode.el;\n updateHOCHostEl(parentComponent, vnode.el);\n }\n return next;\n };\n const locateClosingAnchor = (node, open = \"[\", close = \"]\") => {\n let match = 0;\n while (node) {\n node = nextSibling(node);\n if (node && isComment(node)) {\n if (node.data === open) match++;\n if (node.data === close) {\n if (match === 0) {\n return nextSibling(node);\n } else {\n match--;\n }\n }\n }\n }\n return node;\n };\n const replaceNode = (newNode, oldNode, parentComponent) => {\n const parentNode2 = oldNode.parentNode;\n if (parentNode2) {\n parentNode2.replaceChild(newNode, oldNode);\n }\n let parent = parentComponent;\n while (parent) {\n if (parent.vnode.el === oldNode) {\n parent.vnode.el = parent.subTree.el = newNode;\n }\n parent = parent.parent;\n }\n };\n const isTemplateNode = (node) => {\n return node.nodeType === 1 && node.tagName === \"TEMPLATE\";\n };\n return [hydrate, hydrateNode];\n}\nconst resourceProps = /* @__PURE__ */ new Set([\"src\", \"srcset\", \"href\", \"poster\"]);\nfunction isUnchangedResourceProp(el, key, clientValue) {\n if (!resourceProps.has(key)) {\n return false;\n }\n return el.getAttribute(key) === (clientValue == null ? null : `${clientValue}`);\n}\nfunction propHasMismatch(el, key, clientValue, vnode, instance) {\n let mismatchType;\n let mismatchKey;\n let actual;\n let expected;\n if (key === \"class\") {\n if (el.$cls) {\n actual = el.$cls;\n delete el.$cls;\n } else {\n actual = el.getAttribute(\"class\");\n }\n expected = normalizeClass(clientValue);\n if (!isSetEqual(toClassSet(actual || \"\"), toClassSet(expected))) {\n mismatchType = 2 /* CLASS */;\n mismatchKey = `class`;\n }\n } else if (key === \"style\") {\n actual = el.getAttribute(\"style\") || \"\";\n expected = isString(clientValue) ? clientValue : stringifyStyle(normalizeStyle(clientValue));\n const actualMap = toStyleMap(actual);\n const expectedMap = toStyleMap(expected);\n if (vnode.dirs) {\n for (const { dir, value } of vnode.dirs) {\n if (dir.name === \"show\" && !value) {\n expectedMap.set(\"display\", \"none\");\n }\n }\n }\n if (instance) {\n resolveCssVars(instance, vnode, expectedMap);\n }\n if (!isMapEqual(actualMap, expectedMap)) {\n mismatchType = 3 /* STYLE */;\n mismatchKey = \"style\";\n }\n } else if (el instanceof SVGElement && isKnownSvgAttr(key) || el instanceof HTMLElement && (isBooleanAttr(key) || isKnownHtmlAttr(key))) {\n if (key === \"hidden\") {\n actual = normalizeHiddenValue(el.getAttribute(key));\n expected = normalizeHiddenValue(clientValue);\n } else if (isBooleanAttr(key)) {\n actual = el.hasAttribute(key);\n expected = includeBooleanAttr(clientValue);\n } else if (clientValue == null) {\n actual = el.hasAttribute(key);\n expected = false;\n } else {\n if (el.hasAttribute(key)) {\n actual = el.getAttribute(key);\n } else if (key === \"value\" && el.tagName === \"TEXTAREA\") {\n actual = el.value;\n } else {\n actual = false;\n }\n expected = isRenderableAttrValue(clientValue) ? String(clientValue) : false;\n }\n if (actual !== expected) {\n mismatchType = 4 /* ATTRIBUTE */;\n mismatchKey = key;\n }\n }\n if (mismatchType != null && !isMismatchAllowed(el, mismatchType)) {\n const format = (v) => v === false ? `(not rendered)` : `${mismatchKey}=\"${v}\"`;\n const preSegment = `Hydration ${MismatchTypeString[mismatchType]} mismatch on`;\n const postSegment = `\n - rendered on server: ${format(actual)}\n - expected on client: ${format(expected)}\n Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.\n You should fix the source of the mismatch.`;\n {\n warn$1(preSegment, el, postSegment);\n }\n return true;\n }\n return false;\n}\nfunction normalizeHiddenValue(value) {\n if (!isRenderableAttrValue(value)) {\n return false;\n }\n if (isString(value)) {\n return value.toLowerCase() === \"until-found\" ? \"until-found\" : \"\";\n }\n return includeBooleanAttr(value) ? \"\" : false;\n}\nfunction toClassSet(str) {\n return new Set(str.trim().split(/\\s+/));\n}\nfunction isSetEqual(a, b) {\n if (a.size !== b.size) {\n return false;\n }\n for (const s of a) {\n if (!b.has(s)) {\n return false;\n }\n }\n return true;\n}\nfunction toStyleMap(str) {\n const styleMap = /* @__PURE__ */ new Map();\n for (const item of str.split(\";\")) {\n let [key, value] = item.split(\":\");\n key = key.trim();\n value = value && value.trim();\n if (key && value) {\n styleMap.set(key, value);\n }\n }\n return styleMap;\n}\nfunction isMapEqual(a, b) {\n if (a.size !== b.size) {\n return false;\n }\n for (const [key, value] of a) {\n if (value !== b.get(key)) {\n return false;\n }\n }\n return true;\n}\nfunction resolveCssVars(instance, vnode, expectedMap) {\n const root = instance.subTree;\n if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) {\n const cssVars = instance.getCssVars();\n for (const key in cssVars) {\n const value = normalizeCssVarValue(cssVars[key]);\n expectedMap.set(`--${getEscapedCssVarName(key, false)}`, value);\n }\n }\n if (vnode === root && instance.parent) {\n resolveCssVars(instance.parent, instance.vnode, expectedMap);\n }\n}\nconst allowMismatchAttr = \"data-allow-mismatch\";\nconst MismatchTypeString = {\n [0 /* TEXT */]: \"text\",\n [1 /* CHILDREN */]: \"children\",\n [2 /* CLASS */]: \"class\",\n [3 /* STYLE */]: \"style\",\n [4 /* ATTRIBUTE */]: \"attribute\"\n};\nfunction isMismatchAllowed(el, allowedType) {\n if (allowedType === 0 /* TEXT */ || allowedType === 1 /* CHILDREN */) {\n while (el && !el.hasAttribute(allowMismatchAttr)) {\n el = el.parentElement;\n }\n }\n return isMismatchAllowedByAttr(\n el && el.getAttribute(allowMismatchAttr),\n allowedType\n );\n}\nfunction isMismatchAllowedByAttr(allowedAttr, allowedType) {\n if (allowedAttr == null) {\n return false;\n } else if (allowedAttr === \"\") {\n return true;\n } else {\n const list = allowedAttr.split(\",\");\n if (allowedType === 0 /* TEXT */ && list.includes(\"children\")) {\n return true;\n }\n return list.includes(MismatchTypeString[allowedType]);\n }\n}\nfunction isNodeMismatchAllowed(node, vnode) {\n return isMismatchAllowed(node.parentElement, 1 /* CHILDREN */) || isMismatchAllowedByNode(node) || isMismatchAllowedByVNode(vnode);\n}\nfunction isMismatchAllowedByNode(node) {\n return node.nodeType === 1 && isMismatchAllowedByAttr(\n node.getAttribute(allowMismatchAttr),\n 1 /* CHILDREN */\n );\n}\nfunction isMismatchAllowedByVNode({ props }) {\n const allowedAttr = props && props[allowMismatchAttr];\n return typeof allowedAttr === \"string\" && isMismatchAllowedByAttr(allowedAttr, 1 /* CHILDREN */);\n}\n\nconst requestIdleCallback = getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1));\nconst cancelIdleCallback = getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));\nconst hydrateOnIdle = (timeout = 1e4) => (hydrate) => {\n const id = requestIdleCallback(hydrate, { timeout });\n return () => cancelIdleCallback(id);\n};\nfunction elementIsVisibleInViewport(el) {\n const { top, left, bottom, right } = el.getBoundingClientRect();\n const { innerHeight, innerWidth } = window;\n return (top > 0 && top < innerHeight || bottom > 0 && bottom < innerHeight) && (left > 0 && left < innerWidth || right > 0 && right < innerWidth);\n}\nconst hydrateOnVisible = (opts) => (hydrate, forEach) => {\n const ob = new IntersectionObserver((entries) => {\n for (const e of entries) {\n if (!e.isIntersecting) continue;\n ob.disconnect();\n hydrate();\n break;\n }\n }, opts);\n forEach((el) => {\n if (!(el instanceof Element)) return;\n if (elementIsVisibleInViewport(el)) {\n hydrate();\n ob.disconnect();\n return false;\n }\n ob.observe(el);\n });\n return () => ob.disconnect();\n};\nconst hydrateOnMediaQuery = (query) => (hydrate) => {\n if (query) {\n const mql = matchMedia(query);\n if (mql.matches) {\n hydrate();\n } else {\n mql.addEventListener(\"change\", hydrate, { once: true });\n return () => mql.removeEventListener(\"change\", hydrate);\n }\n }\n};\nconst hydrateOnInteraction = (interactions = []) => (hydrate, forEach) => {\n if (isString(interactions)) interactions = [interactions];\n let hasHydrated = false;\n const doHydrate = (e) => {\n if (!hasHydrated) {\n hasHydrated = true;\n teardown();\n hydrate();\n e.target.dispatchEvent(new e.constructor(e.type, e));\n }\n };\n const teardown = () => {\n forEach((el) => {\n for (const i of interactions) {\n el.removeEventListener(i, doHydrate);\n }\n });\n };\n forEach((el) => {\n for (const i of interactions) {\n el.addEventListener(i, doHydrate, { once: true });\n }\n });\n return teardown;\n};\nfunction forEachElement(node, cb) {\n if (isComment(node) && node.data === \"[\") {\n let depth = 1;\n let next = node.nextSibling;\n while (next) {\n if (next.nodeType === 1) {\n const result = cb(next);\n if (result === false) {\n break;\n }\n } else if (isComment(next)) {\n if (next.data === \"]\") {\n if (--depth === 0) break;\n } else if (next.data === \"[\") {\n depth++;\n }\n }\n next = next.nextSibling;\n }\n } else {\n cb(node);\n }\n}\n\nconst isAsyncWrapper = (i) => !!i.type.__asyncLoader;\n// @__NO_SIDE_EFFECTS__\nfunction defineAsyncComponent(source) {\n if (isFunction(source)) {\n source = { loader: source };\n }\n const {\n loader,\n loadingComponent,\n errorComponent,\n delay = 200,\n hydrate: hydrateStrategy,\n timeout,\n // undefined = never times out\n suspensible = true,\n onError: userOnError\n } = source;\n let pendingRequest = null;\n let resolvedComp;\n let retries = 0;\n const retry = () => {\n retries++;\n pendingRequest = null;\n return load();\n };\n const load = () => {\n let thisRequest;\n return pendingRequest || (thisRequest = pendingRequest = loader().catch((err) => {\n err = err instanceof Error ? err : new Error(String(err));\n if (userOnError) {\n return new Promise((resolve, reject) => {\n const userRetry = () => resolve(retry());\n const userFail = () => reject(err);\n userOnError(err, userRetry, userFail, retries + 1);\n });\n } else {\n throw err;\n }\n }).then((comp) => {\n if (thisRequest !== pendingRequest && pendingRequest) {\n return pendingRequest;\n }\n if (!!(process.env.NODE_ENV !== \"production\") && !comp) {\n warn$1(\n `Async component loader resolved to undefined. If you are using retry(), make sure to return its return value.`\n );\n }\n if (comp && (comp.__esModule || comp[Symbol.toStringTag] === \"Module\")) {\n comp = comp.default;\n }\n if (!!(process.env.NODE_ENV !== \"production\") && comp && !isObject(comp) && !isFunction(comp)) {\n throw new Error(`Invalid async component load result: ${comp}`);\n }\n resolvedComp = comp;\n return comp;\n }));\n };\n return defineComponent({\n name: \"AsyncComponentWrapper\",\n __asyncLoader: load,\n __asyncHydrate(el, instance, hydrate) {\n const wasConnected = el.isConnected;\n let patched = false;\n (instance.bu || (instance.bu = [])).push(() => patched = true);\n const performHydrate = () => {\n if (patched) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\n `Skipping lazy hydration for component '${getComponentName(resolvedComp) || resolvedComp.__file}': it was updated before lazy hydration performed.`\n );\n }\n return;\n }\n if (!el.parentNode || wasConnected && !el.isConnected) return;\n hydrate();\n };\n const doHydrate = hydrateStrategy ? () => {\n const teardown = hydrateStrategy(\n performHydrate,\n (cb) => forEachElement(el, cb)\n );\n if (teardown) {\n (instance.bum || (instance.bum = [])).push(teardown);\n }\n } : performHydrate;\n if (resolvedComp) {\n doHydrate();\n } else {\n load().then(() => !instance.isUnmounted && doHydrate());\n }\n },\n get __asyncResolved() {\n return resolvedComp;\n },\n setup() {\n const instance = currentInstance;\n markAsyncBoundary(instance);\n if (resolvedComp) {\n return () => createInnerComp(resolvedComp, instance);\n }\n const onError = (err) => {\n pendingRequest = null;\n handleError(\n err,\n instance,\n 13,\n !errorComponent\n );\n };\n if (suspensible && instance.suspense || isInSSRComponentSetup) {\n return load().then((comp) => {\n return () => createInnerComp(comp, instance);\n }).catch((err) => {\n onError(err);\n return () => errorComponent ? createVNode(errorComponent, {\n error: err\n }) : null;\n });\n }\n const loaded = ref(false);\n const error = ref();\n const delayed = ref(!!delay);\n let timeoutTimer;\n let delayTimer;\n onUnmounted(() => {\n if (timeoutTimer != null) clearTimeout(timeoutTimer);\n if (delayTimer != null) clearTimeout(delayTimer);\n });\n if (delay) {\n delayTimer = setTimeout(() => {\n if (instance.isUnmounted) return;\n delayed.value = false;\n }, delay);\n }\n if (timeout != null) {\n timeoutTimer = setTimeout(() => {\n if (instance.isUnmounted) return;\n if (!loaded.value && !error.value) {\n const err = new Error(\n `Async component timed out after ${timeout}ms.`\n );\n onError(err);\n error.value = err;\n }\n }, timeout);\n }\n load().then(() => {\n if (instance.isUnmounted) return;\n loaded.value = true;\n if (instance.parent && isKeepAlive(instance.parent.vnode)) {\n instance.parent.update();\n }\n }).catch((err) => {\n if (instance.isUnmounted) {\n pendingRequest = null;\n return;\n }\n onError(err);\n error.value = err;\n });\n return () => {\n if (loaded.value && resolvedComp) {\n return createInnerComp(resolvedComp, instance);\n } else if (error.value && errorComponent) {\n return createVNode(errorComponent, {\n error: error.value\n });\n } else if (loadingComponent && !delayed.value) {\n return createInnerComp(\n loadingComponent,\n instance\n );\n }\n };\n }\n });\n}\nfunction createInnerComp(comp, parent) {\n const { ref: ref2, props, children, ce } = parent.vnode;\n const vnode = createVNode(comp, props, children);\n vnode.ref = ref2;\n vnode.ce = ce;\n delete parent.vnode.ce;\n return vnode;\n}\n\nconst isKeepAlive = (vnode) => vnode.type.__isKeepAlive;\nconst KeepAliveImpl = {\n name: `KeepAlive`,\n // Marker for special handling inside the renderer. We are not using a ===\n // check directly on KeepAlive in the renderer, because importing it directly\n // would prevent it from being tree-shaken.\n __isKeepAlive: true,\n props: {\n include: [String, RegExp, Array],\n exclude: [String, RegExp, Array],\n max: [String, Number]\n },\n setup(props, { slots }) {\n const instance = getCurrentInstance();\n const sharedContext = instance.ctx;\n if (!sharedContext.renderer) {\n return () => {\n const children = slots.default && slots.default();\n return children && children.length === 1 ? children[0] : children;\n };\n }\n const cache = /* @__PURE__ */ new Map();\n const keys = /* @__PURE__ */ new Set();\n let current = null;\n if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_DEVTOOLS__) {\n instance.__v_cache = cache;\n }\n const parentSuspense = instance.suspense;\n const {\n renderer: {\n p: patch,\n m: move,\n um: _unmount,\n o: { createElement }\n }\n } = sharedContext;\n const storageContainer = createElement(\"div\");\n sharedContext.activate = (vnode, container, anchor, namespace, optimized) => {\n const instance2 = vnode.component;\n move(vnode, container, anchor, 0, parentSuspense);\n patch(\n instance2.vnode,\n vnode,\n container,\n anchor,\n instance2,\n parentSuspense,\n namespace,\n vnode.slotScopeIds,\n optimized\n );\n queuePostRenderEffect(() => {\n instance2.isDeactivated = false;\n if (instance2.a) {\n invokeArrayFns(instance2.a);\n }\n const vnodeHook = vnode.props && vnode.props.onVnodeMounted;\n if (vnodeHook) {\n invokeVNodeHook(vnodeHook, instance2.parent, vnode);\n }\n }, parentSuspense);\n if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_DEVTOOLS__) {\n devtoolsComponentAdded(instance2);\n }\n };\n sharedContext.deactivate = (vnode) => {\n const instance2 = vnode.component;\n invalidateMount(instance2.m);\n invalidateMount(instance2.a);\n move(vnode, storageContainer, null, 1, parentSuspense);\n queuePostRenderEffect(() => {\n if (instance2.da) {\n invokeArrayFns(instance2.da);\n }\n const vnodeHook = vnode.props && vnode.props.onVnodeUnmounted;\n if (vnodeHook) {\n invokeVNodeHook(vnodeHook, instance2.parent, vnode);\n }\n instance2.isDeactivated = true;\n }, parentSuspense);\n if (!!(process.env.NODE_ENV !== \"production\") || __VUE_PROD_DEVTOOLS__) {\n devtoolsComponentAdded(instance2);\n }\n if (!!(process.env.NODE_ENV !== \"production\") && true) {\n instance2.__keepAliveStorageContainer = storageContainer;\n }\n };\n function unmount(vnode) {\n resetShapeFlag(vnode);\n _unmount(vnode, instance, parentSuspense, true);\n }\n function pruneCache(filter) {\n cache.forEach((vnode, key) => {\n const name = getComponentName(\n isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : vnode.type\n );\n if (name && !filter(name)) {\n pruneCacheEntry(key);\n }\n });\n }\n function pruneCacheEntry(key) {\n const cached = cache.get(key);\n if (cached && (!current || !isSameVNodeType(cached, current))) {\n unmount(cached);\n } else if (current) {\n resetShapeFlag(current);\n }\n cache.delete(key);\n keys.delete(key);\n }\n watch(\n () => [props.include, props.exclude],\n ([include, exclude]) => {\n include && pruneCache((name) => matches(include, name));\n exclude && pruneCache((name) => !matches(exclude, name));\n },\n // prune post-render after `current` has been updated\n { flush: \"post\", deep: true }\n );\n let pendingCacheKey = null;\n const cacheSubtree = () => {\n if (pendingCacheKey != null) {\n if (isSuspense(instance.subTree.type)) {\n queuePostRenderEffect(() => {\n cache.set(pendingCacheKey, getInnerChild(instance.subTree));\n }, instance.subTree.suspense);\n } else {\n cache.set(pendingCacheKey, getInnerChild(instance.subTree));\n }\n }\n };\n onMounted(cacheSubtree);\n onUpdated(cacheSubtree);\n onBeforeUnmount(() => {\n cache.forEach((cached) => {\n const { subTree, suspense } = instance;\n const vnode = getInnerChild(subTree);\n if (cached.type === vnode.type && cached.key === vnode.key) {\n resetShapeFlag(vnode);\n const da = vnode.component.da;\n da && queuePostRenderEffect(da, suspense);\n return;\n }\n unmount(cached);\n });\n });\n return () => {\n pendingCacheKey = null;\n if (!slots.default) {\n return current = null;\n }\n const children = slots.default();\n const rawVNode = children[0];\n if (children.length > 1) {\n if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(`KeepAlive should contain exactly one component child.`);\n }\n current = null;\n return children;\n } else if (!isVNode(rawVNode) || !(rawVNode.shapeFlag & 4) && !(rawVNode.shapeFlag & 128)) {\n current = null;\n return rawVNode;\n }\n let vnode = getInnerChild(rawVNode);\n if (vnode.type === Comment) {\n current = null;\n return vnode;\n }\n const comp = vnode.type;\n const name = getComponentName(\n isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : comp\n );\n const { include, exclude, max } = props;\n if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) {\n vnode.shapeFlag &= -257;\n current = vnode;\n return rawVNode;\n }\n const key = vnode.key == null ? comp : vnode.key;\n const cachedVNode = cache.get(key);\n if (vnode.el) {\n vnode = cloneVNode(vnode);\n if (rawVNode.shapeFlag & 128) {\n rawVNode.ssContent = vnode;\n }\n }\n pendingCacheKey = key;\n if (cachedVNode) {\n vnode.el = cachedVNode.el;\n vnode.component = cachedVNode.component;\n if (vnode.transition) {\n setTransitionHooks(vnode, vnode.transition);\n }\n vnode.shapeFlag |= 512;\n keys.delete(key);\n keys.add(key);\n } else {\n keys.add(key);\n if (max && keys.size > parseInt(max, 10)) {\n pruneCacheEntry(keys.values().next().value);\n }\n }\n vnode.shapeFlag |= 256;\n current = vnode;\n return isSuspense(rawVNode.type) ? rawVNode : vnode;\n };\n }\n};\nconst KeepAlive = KeepAliveImpl;\nfunction matches(pattern, name) {\n if (isArray(pattern)) {\n return pattern.some((p) => matches(p, name));\n } else if (isString(pattern)) {\n return pattern.split(\",\").includes(name);\n } else if (isRegExp(pattern)) {\n pattern.lastIndex = 0;\n return pattern.test(name);\n }\n return false;\n}\nfunction onActivated(hook, target) {\n registerKeepAliveHook(hook, \"a\", target);\n}\nfunction onDeactivated(hook, target) {\n registerKeepAliveHook(hook, \"da\", target);\n}\nfunction registerKeepAliveHook(hook, type, target = currentInstance) {\n const wrappedHook = hook.__wdc || (hook.__wdc = () => {\n let current = target;\n while (current) {\n if (current.isDeactivated) {\n return;\n }\n current = current.parent;\n }\n return hook();\n });\n injectHook(type, wrappedHook, target);\n if (target) {\n let current = target.parent;\n while (current && current.parent) {\n if (isKeepAlive(current.parent.vnode)) {\n injectToKeepAliveRoot(wrappedHook, type, target, current);\n }\n current = current.parent;\n }\n }\n}\nfunction injectToKeepAliveRoot(hook, type, target, keepAliveRoot) {\n const injected = injectHook(\n type,\n hook,\n keepAliveRoot,\n true\n /* prepend */\n );\n onUnmounted(() => {\n remove(keepAliveRoot[type], injected);\n }, target);\n}\nfunction resetShapeFlag(vnode) {\n vnode.shapeFlag &= -257;\n vnode.shapeFlag &= -513;\n}\nfunction getInnerChild(vnode) {\n return vnode.shapeFlag & 128 ? vnode.ssContent : vnode;\n}\n\nfunction injectHook(type, hook, target = currentInstance, prepend = false) {\n if (target) {\n const hooks = target[type] || (target[type] = []);\n const wrappedHook = hook.__weh || (hook.__weh = (...args) => {\n pauseTracking();\n const reset = setCurrentInstance(target);\n const res = callWithAsyncErrorHandling(hook, target, type, args);\n reset();\n resetTracking();\n return res;\n });\n if (prepend) {\n hooks.unshift(wrappedHook);\n } else {\n hooks.push(wrappedHook);\n }\n return wrappedHook;\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n const apiName = toHandlerKey(ErrorTypeStrings$1[type].replace(/ hook$/, \"\"));\n warn$1(\n `${apiName} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup().` + (` If you are using async setup(), make sure to register lifecycle hooks before the first await statement.` )\n );\n }\n}\nconst createHook = (lifecycle) => (hook, target = currentInstance) => {\n if (!isInSSRComponentSetup || lifecycle === \"sp\") {\n injectHook(lifecycle, (...args) => hook(...args), target);\n }\n};\nconst onBeforeMount = createHook(\"bm\");\nconst onMounted = createHook(\"m\");\nconst onBeforeUpdate = createHook(\n \"bu\"\n);\nconst onUpdated = createHook(\"u\");\nconst onBeforeUnmount = createHook(\n \"bum\"\n);\nconst onUnmounted = createHook(\"um\");\nconst onServerPrefetch = createHook(\n \"sp\"\n);\nconst onRenderTriggered = createHook(\"rtg\");\nconst onRenderTracked = createHook(\"rtc\");\nfunction onErrorCaptured(hook, target = currentInstance) {\n injectHook(\"ec\", hook, target);\n}\n\nconst COMPONENTS = \"components\";\nconst DIRECTIVES = \"directives\";\nfunction resolveComponent(name, maybeSelfReference) {\n return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;\n}\nconst NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for(\"v-ndc\");\nfunction resolveDynamicComponent(component) {\n if (isString(component)) {\n return resolveAsset(COMPONENTS, component, false) || component;\n } else {\n return component || NULL_DYNAMIC_COMPONENT;\n }\n}\nfunction resolveDirective(name) {\n return resolveAsset(DIRECTIVES, name);\n}\nfunction resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {\n const instance = currentRenderingInstance || currentInstance;\n if (instance) {\n const Component = instance.type;\n if (type === COMPONENTS) {\n const selfName = getComponentName(\n Component,\n false\n );\n if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) {\n return Component;\n }\n }\n const res = (\n // local registration\n // check instance[type] first which is resolved for options API\n resolve(instance[type] || Component[type], name) || // global registration\n resolve(instance.appContext[type], name)\n );\n if (!res && maybeSelfReference) {\n return Component;\n }\n if (!!(process.env.NODE_ENV !== \"production\") && warnMissing && !res) {\n const extra = type === COMPONENTS ? `\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``;\n warn$1(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);\n }\n return res;\n } else if (!!(process.env.NODE_ENV !== \"production\")) {\n warn$1(\n `resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().`\n );\n }\n}\nfunction resolve(registry, name) {\n return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]);\n}\n\nfunction renderList(source, renderItem, cache, index) {\n let ret;\n const cached = cache && cache[index];\n const sourceIsArray = isArray(source);\n if (sourceIsArray || isString(source)) {\n const sourceIsReactiveArray = sourceIsArray && isReactive(source);\n let needsWrap = false;\n let isReadonlySource = false;\n if (sourceIsReactiveArray) {\n needsWrap = !isShallow(source);\n isReadonlySource = isReadonly(source);\n source = shallowReadArray(source);\n }\n ret = new Array(source.length);\n for (let i = 0, l = source.length; i < l; i++) {\n ret[i] = renderItem(\n needsWrap ? isReadonlySource ? toReadonly(toReactive(source[i])) : toReactive(source[i]) : source[i],\n i,\n void 0,\n cached && cached[i]\n );\n }\n } else if (typeof source === \"number\") {\n if (!!(process.env.NODE_ENV !== \"production\") && (!Number.isInteger(source) || source < 0)) {\n warn$1(\n `The v-for range expects a positive integer value but got ${source}.`\n );\n ret = [];\n } else {\n ret = new Array(source);\n for (let i = 0; i < source; i++) {\n ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);\n }\n }\n } else if (isObject(source)) {\n if (source[Symbol.iterator]) {\n ret = Array.from(\n source,\n (item, i) => renderItem(item, i, void 0, cached && cached[i])\n );\n } else {\n const keys = Object.keys(source);\n ret = new Array(keys.length);\n for (let i = 0, l = keys.length; i < l; i++) {\n const key = keys[i];\n ret[i] = renderItem(source[key], key, i, cached && cached[i]);\n }\n }\n } else {\n ret = [];\n }\n if (cache) {\n cache[index] = ret;\n }\n return ret;\n}\n\nfunction createSlots(slots, dynamicSlots) {\n for (let i = 0; i < dynamicSlots.length; i++) {\n const slot = dynamicSlots[i];\n if (isArray(slot)) {\n for (let j = 0; j < slot.length; j++) {\n slots[slot[j].name] = slot[j].fn;\n }\n } else if (slot) {\n slots[slot.name] = slot.key ? (...args) => {\n const res = slot.fn(...args);\n if (res) res.key = slot.key;\n return res;\n } : slot.fn;\n }\n }\n return slots;\n}\n\nfunction renderSlot(slots, name, props, fallback, noSlotted, branchKey) {\n if (props == null) props = {};\n if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {\n const slotProps = branchKey != null && props.key == null ? extend({}, props, { key: branchKey }) : props;\n const hasProps = Object.keys(slotProps).length > 0;\n if (name !== \"default\") slotProps.name = name;\n return openBlock(), createBlock(\n Fragment,\n null,\n [createVNode(\"slot\", slotProps, fallback && fallback())],\n hasProps ? -2 : 64\n );\n }\n let slot = slots[name];\n if (!!(process.env.NODE_ENV !== \"production\") && slot && slot.length > 1) {\n warn$1(\n `SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template.`\n );\n slot = () => [];\n }\n if (slot && slot._c) {\n slot._d = false;\n }\n const prevStackSize = blockStack.length;\n openBlock();\n let rendered;\n try {\n const validSlotContent = slot && ensureValidVNode(slot(props));\n const slotKey = props.key || branchKey || // slot content array of a dynamic conditional slot may have a branch\n // key attached in the `createSlots` helper, respect that\n validSlotContent && validSlotContent.key;\n rendered = createBlock(\n Fragment,\n {\n key: (slotKey && !isSymbol(slotKey) ? slotKey : `_${name}`) + // #7256 force differentiate fallback content from actual content\n (!validSlotContent && fallback ? \"_fb\" : \"\")\n },\n validSlotContent || (fallback ? fallback() : []),\n validSlotContent && slots._ === 1 ? 64 : -2\n );\n } catch (err) {\n for (let i = blockStack.length; i > prevStackSize; i--) closeBlock();\n throw err;\n } finally {\n if (slot && slot._c) {\n slot._d = true;\n }\n }\n if (!noSlotted && rendered.scopeId) {\n rendered.slotScopeIds = [rendered.scopeId + \"-s\"];\n }\n return rendered;\n}\nfunction ensureValidVNode(vnodes) {\n return vnodes.some((child) => {\n if (!isVNode(child)) return true;\n if (child.type === Comment) return false;\n if (child.type === Fragment && !ensureValidVNode(child.children))\n return false;\n return true;\n }) ? vnodes : null;\n}\n\nfunction toHandlers(obj, preserveCaseIfNecessary) {\n const ret = {};\n if (!!(process.env.NODE_ENV !== \"production\") && !isObject(obj)) {\n warn$1(`v-on with no argument expects an object value.`);\n return ret;\n }\n for (const key in obj) {\n ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key];\n }\n return ret;\n}\n\nconst getPublicInstance = (i) => {\n if (!i) return null;\n if (isStatefulComponent(i)) return getComponentPublicInstance(i);\n return getPublicInstance(i.parent);\n};\nconst publicPropertiesMap = (\n // Move PURE marker to new line to workaround compiler discarding it\n // due to type annotation\n /* @__PURE__ */ extend(/* @__PURE__ */ Object.create(null), {\n $: (i) => i,\n $el: (i) => i.vnode.el,\n $data: (i) => i.data,\n $props: (i) => !!(process.env.NODE_ENV !== \"production\") ? shallowReadonly(i.props) : i.props,\n $attrs: (i) => !!(process.env.NODE_ENV !== \"production\") ? shallowReadonly(i.attrs) : i.attrs,\n $slots: (i) => !!(process.env.NODE_ENV !== \"production\") ? shallowReadonly(i.slots) : i.slots,\n $refs: (i) => !!(process.env.NODE_ENV !== \"production\") ? shallowReadonly(i.refs) : i.refs,\n $parent: (i) => getPublicInstance(i.parent),\n $root: (i) => getPublicInstance(i.root),\n $host: (i) => i.ce,\n $emit: (i) => i.emit,\n $options: (i) => __VUE_OPTIONS_API__ ? resolveMergedOptions(i) : i.type,\n $forceUpdate: (i) => i.f || (i.f = () => {\n queueJob(i.update);\n }),\n $nextTick: (i) => i.n || (i.n = nextTick.bind(i.proxy)),\n $watch: (i) => __VUE_OPTIONS_API__ ? instanceWatch.bind(i) : NOOP\n })\n);\nconst isReservedPrefix = (key) => key === \"_\" || key === \"$\";\nconst hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn(state, key);\nconst PublicInstanceProxyHandlers = {\n get({ _: instance }, key) {\n if (key === \"__v_skip\") {\n return true;\n }\n const { ctx, setupState, data, props, accessCache, type, appContext } = instance;\n if (!!(process.env.NODE_ENV !== \"production\") && key === \"__isVue\") {\n return true;\n }\n if (key[0] !== \"$\") {\n const n = accessCache[key];\n if (n !== void 0) {\n switch (n) {\n case 1 /* SETUP */:\n return setupState[key];\n case 2 /* DATA */:\n return data[key];\n case 4 /* CONTEXT */:\n return ctx[key];\n case 3 /* PROPS */:\n return props[key];\n }\n } else if (hasSetupBinding(setupState, key)) {\n accessCache[key] = 1 /* SETUP */;\n return setupState[key];\n } else if (__VUE_OPTIONS_API__ && data !== EMPTY_OBJ && hasOwn(data, key)) {\n accessCache[key] = 2 /* DATA */;\n return data[key];\n } else if (hasOwn(props, key)) {\n accessCache[key] = 3 /* PROPS */;\n return props[key];\n } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) {\n accessCache[key] = 4 /* CONTEXT */;\n return ctx[key];\n } else if (!__VUE_OPTIONS_API__ || shouldCacheAccess) {\n accessCache[key] = 0 /* OTHER */;\n }\n }\n const publicGetter = publicPropertiesMap[key];\n let cssModule, globalProperties;\n if (publicGetter) {\n if (key === \"$attrs\") {\n track(instance.attrs, \"get\", \"\");\n !!(process.env.NODE_ENV !== \"production\") && markAttrsAccessed();\n } else if (!!(process.env.NODE_ENV !== \"production\") && key === \"$slots\") {\n track(instance, \"get\", key);\n }\n return publicGetter(instance);\n } else if (\n // css module (injected by vue-loader)\n (cssModule = type.__cssModules) && (cssModule = cssModule[key])\n ) {\n return cssModule;\n } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) {\n accessCache[key] = 4 /* CONTEXT */;\n return ctx[key];\n } else if (\n // global properties\n globalProperties = appContext.config.globalProperties, hasOwn(globalProperties, key)\n ) {\n {\n return globalProperties[key];\n }\n } else if (!!(process.env.NODE_ENV !== \"production\") && currentRenderingInstance && (!isString(key) || // #1091 avoid internal isRef/isVNode checks on component instance leading\n // to infinite warning loop\n key.indexOf(\"__v\") !== 0)) {\n if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) {\n warn$1(\n `Property ${JSON.stringify(\n key\n )} must be accessed via $data because it starts with a reserved character (\"$\" or \"_\") and is not proxied on the render context.`\n );\n } else if (instance === currentRenderingInstance) {\n warn$1(\n `Property ${JSON.stringify(key)} was accessed during render but is not defined on instance.`\n );\n }\n }\n },\n set({ _: instance }, key, value) {\n const { data, setupState, ctx } = instance;\n if (hasSetupBinding(setupState, key)) {\n setupState[key] = value;\n return true;\n } else if (!!(process.env.NODE_ENV !== \"production\") && setupState.__isScriptSetup && hasOwn(setupState, key)) {\n warn$1(`Cannot mutate \n\n\n","function linkTo(app, file) {\n return generateFilePath(app, \"\", file);\n}\nconst linkToRemoteBase = (service) => \"/remote.php/\" + service;\nconst generateRemoteUrl = (service, options) => {\n const baseURL = options?.baseURL ?? getBaseUrl();\n return baseURL + linkToRemoteBase(service);\n};\nconst generateOcsUrl = (url, params, options) => {\n const allOptions = Object.assign({\n ocsVersion: 2\n }, options || {});\n const version = allOptions.ocsVersion === 1 ? 1 : 2;\n const baseURL = options?.baseURL ?? getBaseUrl();\n return baseURL + \"/ocs/v\" + version + \".php\" + _generateUrlPath(url, params, options);\n};\nconst _generateUrlPath = (url, params, options) => {\n const allOptions = Object.assign({\n escape: true\n }, options || {});\n const _build = function(text, vars) {\n vars = vars || {};\n return text.replace(\n /{([^{}]*)}/g,\n function(a, b) {\n const r = vars[b];\n if (allOptions.escape) {\n return typeof r === \"string\" || typeof r === \"number\" ? encodeURIComponent(r.toString()) : encodeURIComponent(a);\n } else {\n return typeof r === \"string\" || typeof r === \"number\" ? r.toString() : a;\n }\n }\n );\n };\n if (url.charAt(0) !== \"/\") {\n url = \"/\" + url;\n }\n return _build(url, params || {});\n};\nconst generateUrl = (url, params, options) => {\n const allOptions = Object.assign({\n noRewrite: false\n }, options || {});\n const baseOrRootURL = options?.baseURL ?? getRootUrl();\n if (window?.OC?.config?.modRewriteWorking === true && !allOptions.noRewrite) {\n return baseOrRootURL + _generateUrlPath(url, params, options);\n }\n return baseOrRootURL + \"/index.php\" + _generateUrlPath(url, params, options);\n};\nconst imagePath = (app, file) => {\n if (!file.includes(\".\")) {\n return generateFilePath(app, \"img\", `${file}.svg`);\n }\n return generateFilePath(app, \"img\", file);\n};\nconst generateFilePath = (app, type, file) => {\n const isCore = window?.OC?.coreApps?.includes(app) ?? false;\n const isPHP = file.slice(-3) === \"php\";\n let link = getRootUrl();\n if (isPHP && !isCore) {\n link += `/index.php/apps/${app}`;\n if (type) {\n link += `/${encodeURI(type)}`;\n }\n if (file !== \"index.php\") {\n link += `/${file}`;\n }\n } else if (!isPHP && !isCore) {\n link = getAppRootUrl(app);\n if (type) {\n link += `/${type}/`;\n }\n if (link.at(-1) !== \"/\") {\n link += \"/\";\n }\n link += file;\n } else {\n if ((app === \"settings\" || app === \"core\" || app === \"search\") && type === \"ajax\") {\n link += \"/index.php\";\n }\n if (app) {\n link += `/${app}`;\n }\n if (type) {\n link += `/${type}`;\n }\n link += `/${file}`;\n }\n return link;\n};\nconst getBaseUrl = () => window.location.protocol + \"//\" + window.location.host + getRootUrl();\nfunction getRootUrl() {\n let webroot = window._oc_webroot;\n if (typeof webroot === \"undefined\") {\n webroot = location.pathname;\n const pos = webroot.indexOf(\"/index.php/\");\n if (pos !== -1) {\n webroot = webroot.slice(0, pos);\n } else {\n const index = webroot.indexOf(\"/\", 1);\n webroot = webroot.slice(0, index > 0 ? index : void 0);\n }\n }\n return webroot;\n}\nfunction getAppRootUrl(app) {\n const webroots = window._oc_appswebroots ?? {};\n return webroots[app] ?? \"\";\n}\n/*!\n * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: GPL-3.0-or-later\n */\nfunction generateAvatarUrl(user, options) {\n const size = (options?.size || 64) <= 64 ? 64 : 512;\n const guestUrl = options?.isGuestUser ? \"/guest\" : \"\";\n const themeUrl = options?.isDarkTheme ? \"/dark\" : \"\";\n return generateUrl(`/avatar${guestUrl}/{user}/{size}${themeUrl}`, {\n user,\n size\n });\n}\nexport {\n generateAvatarUrl,\n generateFilePath,\n generateOcsUrl,\n generateRemoteUrl,\n generateUrl,\n getAppRootUrl,\n getBaseUrl,\n getRootUrl,\n imagePath,\n linkTo\n};\n//# sourceMappingURL=index.mjs.map\n","function getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nvar browser = {exports: {}};\n\n// shim for using process in browser\nvar process = browser.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ());\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] };\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\nvar browserExports = browser.exports;\nconst process$1 = /*@__PURE__*/getDefaultExportFromCjs(browserExports);\n\nexport { process$1 as default, process$1 as process };\n//# sourceMappingURL=index.js.map\n","'use strict'\n\nconst debug = (\n typeof process === 'object' &&\n process.env &&\n process.env.NODE_DEBUG &&\n /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n : () => {}\n\nmodule.exports = debug\n","'use strict'\n\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\nconst RELEASE_TYPES = [\n 'major',\n 'premajor',\n 'minor',\n 'preminor',\n 'patch',\n 'prepatch',\n 'prerelease',\n]\n\nmodule.exports = {\n MAX_LENGTH,\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_SAFE_INTEGER,\n RELEASE_TYPES,\n SEMVER_SPEC_VERSION,\n FLAG_INCLUDE_PRERELEASE: 0b001,\n FLAG_LOOSE: 0b010,\n}\n","'use strict'\n\nconst {\n MAX_SAFE_COMPONENT_LENGTH,\n MAX_SAFE_BUILD_LENGTH,\n MAX_LENGTH,\n} = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst safeRe = exports.safeRe = []\nconst src = exports.src = []\nconst safeSrc = exports.safeSrc = []\nconst t = exports.t = {}\nlet R = 0\n\nconst LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n ['\\\\s', 1],\n ['\\\\d', MAX_LENGTH],\n [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nconst makeSafeRegex = (value) => {\n for (const [token, max] of safeRegexReplacements) {\n value = value\n .split(`${token}*`).join(`${token}{0,${max}}`)\n .split(`${token}+`).join(`${token}{1,${max}}`)\n }\n return value\n}\n\nconst createToken = (name, value, isGlobal) => {\n const safe = makeSafeRegex(value)\n const index = R++\n debug(name, index, value)\n t[name] = index\n src[index] = value\n safeSrc[index] = safe\n re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '\\\\d+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n// Non-numeric identifiers include numeric identifiers but can be longer.\n// Therefore non-numeric identifiers must go first.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER]\n}|${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NONNUMERICIDENTIFIER]\n}|${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups. The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifier, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n `(?:${src[t.PRERELEASE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n `(?:${src[t.PRERELEASELOOSE]})?${\n src[t.BUILD]}?` +\n `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCEPLAIN', `${'(^|[^\\\\d])' +\n '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`)\ncreateToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`)\ncreateToken('COERCEFULL', src[t.COERCEPLAIN] +\n `(?:${src[t.PRERELEASE]})?` +\n `(?:${src[t.BUILD]})?` +\n `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\ncreateToken('COERCERTLFULL', src[t.COERCEFULL], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAIN]})` +\n `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s+-\\\\s+` +\n `(${src[t.XRANGEPLAINLOOSE]})` +\n `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n","'use strict'\n\n// parse out just the options we care about\nconst looseOption = Object.freeze({ loose: true })\nconst emptyOpts = Object.freeze({ })\nconst parseOptions = options => {\n if (!options) {\n return emptyOpts\n }\n\n if (typeof options !== 'object') {\n return looseOption\n }\n\n return options\n}\nmodule.exports = parseOptions\n","'use strict'\n\nconst numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n if (typeof a === 'number' && typeof b === 'number') {\n return a === b ? 0 : a < b ? -1 : 1\n }\n\n const anum = numeric.test(a)\n const bnum = numeric.test(b)\n\n if (anum && bnum) {\n a = +a\n b = +b\n }\n\n return a === b ? 0\n : (anum && !bnum) ? -1\n : (bnum && !anum) ? 1\n : a < b ? -1\n : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n compareIdentifiers,\n rcompareIdentifiers,\n}\n","'use strict'\n\nconst debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\n\nconst isPrereleaseIdentifier = (prerelease, identifier) => {\n const identifiers = identifier.split('.')\n if (identifiers.length > prerelease.length) {\n return false\n }\n\n for (let i = 0; i < identifiers.length; i++) {\n if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) {\n return false\n }\n }\n\n return true\n}\n\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n if (this.major < other.major) {\n return -1\n }\n if (this.major > other.major) {\n return 1\n }\n if (this.minor < other.minor) {\n return -1\n }\n if (this.minor > other.minor) {\n return 1\n }\n if (this.patch < other.patch) {\n return -1\n }\n if (this.patch > other.patch) {\n return 1\n }\n return 0\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('build compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n if (release.startsWith('pre')) {\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n // Avoid an invalid semver results\n if (identifier) {\n const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE])\n if (!match || match[1] !== identifier) {\n throw new Error(`invalid identifier: ${identifier}`)\n }\n }\n }\n\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n case 'release':\n if (this.prerelease.length === 0) {\n throw new Error(`version ${this.raw} is not a prerelease`)\n }\n this.prerelease.length = 0\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (isPrereleaseIdentifier(this.prerelease, identifier)) {\n const prereleaseBase = this.prerelease[identifier.split('.').length]\n if (isNaN(prereleaseBase)) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.raw = this.format()\n if (this.build.length) {\n this.raw += `+${this.build.join('.')}`\n }\n return this\n }\n}\n\nmodule.exports = SemVer\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst major = (a, loose) => new SemVer(a, loose).major\nmodule.exports = major\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst parse = (version, options, throwErrors = false) => {\n if (version instanceof SemVer) {\n return version\n }\n try {\n return new SemVer(version, options)\n } catch (er) {\n if (!throwErrors) {\n return null\n }\n throw er\n }\n}\n\nmodule.exports = parse\n","'use strict'\n\nconst parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n","import major from \"semver/functions/major.js\";\nimport valid from \"semver/functions/valid.js\";\n/*!\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: GPL-3.0-or-later\n */\nclass ProxyBus {\n bus;\n constructor(bus2) {\n if (typeof bus2.getVersion !== \"function\" || !valid(bus2.getVersion())) {\n console.warn(\"Proxying an event bus with an unknown or invalid version\");\n } else if (major(bus2.getVersion()) !== major(this.getVersion())) {\n console.warn(\n \"Proxying an event bus of version \" + bus2.getVersion() + \" with \" + this.getVersion()\n );\n }\n this.bus = bus2;\n }\n getVersion() {\n return \"3.3.3\";\n }\n subscribe(name, handler) {\n this.bus.subscribe(name, handler);\n }\n unsubscribe(name, handler) {\n this.bus.unsubscribe(name, handler);\n }\n emit(name, ...event) {\n this.bus.emit(name, ...event);\n }\n}\n/*!\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: GPL-3.0-or-later\n */\nclass SimpleBus {\n handlers = /* @__PURE__ */ new Map();\n getVersion() {\n return \"3.3.3\";\n }\n subscribe(name, handler) {\n this.handlers.set(\n name,\n (this.handlers.get(name) || []).concat(\n handler\n )\n );\n }\n unsubscribe(name, handler) {\n this.handlers.set(\n name,\n (this.handlers.get(name) || []).filter((h) => h !== handler)\n );\n }\n emit(name, ...event) {\n const handlers = this.handlers.get(name) || [];\n handlers.forEach((h) => {\n try {\n ;\n h(event[0]);\n } catch (e) {\n console.error(\"could not invoke event listener\", e);\n }\n });\n }\n}\n/*!\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: GPL-3.0-or-later\n */\nlet bus = null;\nfunction getBus() {\n if (bus !== null) {\n return bus;\n }\n if (typeof window === \"undefined\") {\n return new Proxy({}, {\n get: () => {\n return () => console.error(\n \"Window not available, EventBus can not be established!\"\n );\n }\n });\n }\n if (window.OC?._eventBus && typeof window._nc_event_bus === \"undefined\") {\n console.warn(\n \"found old event bus instance at OC._eventBus. Update your version!\"\n );\n window._nc_event_bus = window.OC._eventBus;\n }\n if (typeof window?._nc_event_bus !== \"undefined\") {\n bus = new ProxyBus(window._nc_event_bus);\n } else {\n bus = window._nc_event_bus = new SimpleBus();\n }\n return bus;\n}\nfunction subscribe(name, handler) {\n getBus().subscribe(name, handler);\n}\nfunction unsubscribe(name, handler) {\n getBus().unsubscribe(name, handler);\n}\nfunction emit(name, ...event) {\n getBus().emit(name, ...event);\n}\nexport {\n ProxyBus,\n SimpleBus,\n emit,\n subscribe,\n unsubscribe\n};\n//# sourceMappingURL=index.mjs.map\n","/*\n * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: GPL-3.0-or-later\n */\nexport default class ScopedStorage {\n static GLOBAL_SCOPE_VOLATILE = 'nextcloud_vol';\n static GLOBAL_SCOPE_PERSISTENT = 'nextcloud_per';\n scope;\n wrapped;\n constructor(scope, wrapped, persistent) {\n this.scope = `${persistent ? ScopedStorage.GLOBAL_SCOPE_PERSISTENT : ScopedStorage.GLOBAL_SCOPE_VOLATILE}_${btoa(scope)}_`;\n this.wrapped = wrapped;\n }\n scopeKey(key) {\n return `${this.scope}${key}`;\n }\n setItem(key, value) {\n this.wrapped.setItem(this.scopeKey(key), value);\n }\n getItem(key) {\n return this.wrapped.getItem(this.scopeKey(key));\n }\n removeItem(key) {\n this.wrapped.removeItem(this.scopeKey(key));\n }\n clear() {\n Object.keys(this.wrapped)\n .filter((key) => key.startsWith(this.scope))\n .map(this.wrapped.removeItem.bind(this.wrapped));\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: GPL-3.0-or-later\n */\nimport ScopedStorage from \"./ScopedStorage.js\";\nexport default class StorageBuilder {\n appId;\n persisted = false;\n clearedOnLogout = false;\n constructor(appId) {\n this.appId = appId;\n }\n persist(persist = true) {\n this.persisted = persist;\n return this;\n }\n clearOnLogout(clear = true) {\n this.clearedOnLogout = clear;\n return this;\n }\n build() {\n return new ScopedStorage(this.appId, this.persisted ? window.localStorage : window.sessionStorage, !this.clearedOnLogout);\n }\n}\n","/*\n * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: GPL-3.0-or-later\n */\nimport ScopedStorage from \"./ScopedStorage.js\";\nimport StorageBuilder from \"./StorageBuilder.js\";\n/**\n * Get the storage builder for an app\n *\n * @param appId App ID to scope storage\n */\nexport function getBuilder(appId) {\n return new StorageBuilder(appId);\n}\n/**\n * Clear values from storage\n *\n * @param storage The storage to clear\n * @param pred Callback to check if value should be cleared\n */\nfunction clearStorage(storage, pred) {\n Object.keys(storage)\n .filter((k) => pred ? pred(k) : true)\n .map(storage.removeItem.bind(storage));\n}\n/**\n * Clear all values from all storages\n */\nexport function clearAll() {\n const storages = [\n window.sessionStorage,\n window.localStorage,\n ];\n storages.map((s) => clearStorage(s));\n}\n/**\n * Clear ony non persistent values\n */\nexport function clearNonPersistent() {\n const storages = [\n window.sessionStorage,\n window.localStorage,\n ];\n storages.map((s) => clearStorage(s, (k) => !k.startsWith(ScopedStorage.GLOBAL_SCOPE_PERSISTENT)));\n}\n","import { subscribe, emit, unsubscribe } from \"@nextcloud/event-bus\";\nimport { generateUrl } from \"@nextcloud/router\";\nimport { getBuilder } from \"@nextcloud/browser-storage\";\n_subscribeToTokenUpdates();\nfunction getRequestToken() {\n if (globalThis._nc_auth_requestToken) {\n return globalThis._nc_auth_requestToken;\n }\n if (globalThis.document) {\n return document.head.dataset.requesttoken ?? null;\n }\n return null;\n}\nfunction setRequestToken(token) {\n if (!token || typeof token !== \"string\") {\n throw new Error(\"Invalid CSRF token given\", { cause: { token } });\n }\n if (globalThis._nc_auth_requestToken === token) {\n return;\n }\n globalThis._nc_auth_requestToken = token;\n if (globalThis.document) {\n document.head.dataset.requesttoken = token;\n }\n emit(\"csrf-token-update\", { token, _internal: true });\n}\nasync function fetchRequestToken() {\n const url = generateUrl(\"/csrftoken\");\n const response = await fetch(url);\n if (!response.ok) {\n throw new Error(\"Could not fetch CSRF token from API\", { cause: response });\n }\n try {\n const { token } = await response.json();\n setRequestToken(token);\n return token;\n } catch (error) {\n throw new Error(\"Could not parse CSRF token from API response\", { cause: error });\n }\n}\nfunction onRequestTokenUpdate(observer) {\n const wrapper = async ({ token }) => {\n try {\n observer(token);\n } catch (error) {\n console.error(\"Error updating CSRF token observer\", error);\n }\n };\n subscribe(\"csrf-token-update\", wrapper);\n return () => unsubscribe(\"csrf-token-update\", wrapper);\n}\nfunction _subscribeToTokenUpdates() {\n subscribe(\"csrf-token-update\", ({ token, _internal }) => {\n if (!_internal) {\n setRequestToken(token);\n }\n });\n}\nfunction getCSPNonce() {\n const meta = document?.querySelector('meta[name=\"csp-nonce\"]');\n if (!meta) {\n const token = getRequestToken();\n return token ? btoa(token) : void 0;\n }\n return meta.nonce;\n}\n/*!\n * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: GPL-3.0-or-later\n */\nconst browserStorage = getBuilder(\"public\").persist().build();\nclass GuestUser {\n _displayName;\n uid;\n isAdmin;\n constructor() {\n if (!browserStorage.getItem(\"guestUid\")) {\n browserStorage.setItem(\"guestUid\", randomUUID());\n }\n this._displayName = browserStorage.getItem(\"guestNickname\") || \"\";\n this.uid = browserStorage.getItem(\"guestUid\") || randomUUID();\n this.isAdmin = false;\n subscribe(\"user:info:changed\", (guest) => {\n this._displayName = guest.displayName;\n browserStorage.setItem(\"guestNickname\", guest.displayName || \"\");\n });\n }\n get displayName() {\n return this._displayName;\n }\n set displayName(displayName) {\n this._displayName = displayName;\n browserStorage.setItem(\"guestNickname\", displayName);\n emit(\"user:info:changed\", this);\n }\n}\nlet currentUser$1;\nfunction getGuestUser() {\n if (!currentUser$1) {\n currentUser$1 = new GuestUser();\n }\n return currentUser$1;\n}\nfunction getGuestNickname() {\n return getGuestUser()?.displayName || null;\n}\nfunction setGuestNickname(nickname) {\n if (!nickname || nickname.trim().length === 0) {\n throw new Error(\"Nickname cannot be empty\");\n }\n getGuestUser().displayName = nickname;\n}\nfunction randomUUID() {\n if (globalThis.crypto?.randomUUID) {\n return globalThis.crypto.randomUUID();\n }\n return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, (c) => {\n const r = Math.random() * 16 | 0;\n const v = c === \"x\" ? r : r & 3 | 8;\n return v.toString(16);\n });\n}\nlet currentUser;\nfunction getAttribute(el, attribute) {\n if (el) {\n return el.getAttribute(attribute);\n }\n return null;\n}\nfunction getCurrentUser() {\n if (currentUser !== void 0) {\n return currentUser;\n }\n const head = document?.getElementsByTagName(\"head\")[0];\n if (!head) {\n return null;\n }\n const uid = getAttribute(head, \"data-user\");\n if (uid === null) {\n currentUser = null;\n return currentUser;\n }\n currentUser = {\n uid,\n displayName: getAttribute(head, \"data-user-displayname\"),\n isAdmin: !!window._oc_isadmin\n };\n return currentUser;\n}\nexport {\n fetchRequestToken,\n getCSPNonce,\n getCurrentUser,\n getGuestNickname,\n getGuestUser,\n getRequestToken,\n onRequestTokenUpdate,\n setGuestNickname,\n setRequestToken\n};\n//# sourceMappingURL=index.mjs.map\n","/*! @license DOMPurify 3.4.16 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.16/LICENSE */\nfunction _OverloadYield(e, d) {\n\tthis.v = e, this.k = d;\n}\nfunction _arrayLikeToArray(r, a) {\n\t(null == a || a > r.length) && (a = r.length);\n\tfor (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n\treturn n;\n}\nfunction _arrayWithHoles(r) {\n\tif (Array.isArray(r)) return r;\n}\nfunction _iterableToArrayLimit(r, l) {\n\tvar t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n\tif (null != t) {\n\t\tvar e, n, i, u, a = [], f = !0, o = !1;\n\t\ttry {\n\t\t\tif (i = (t = t.call(r)).next, 0 === l) {\n\t\t\t\tif (Object(t) !== t) return;\n\t\t\t\tf = !1;\n\t\t\t} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n\t\t} catch (r) {\n\t\t\to = !0, n = r;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;\n\t\t\t} finally {\n\t\t\t\tif (o) throw n;\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}\n}\nfunction _nonIterableRest() {\n\tthrow new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */\nfunction _slicedToArray(r, e) {\n\treturn _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();\n}\nfunction _unsupportedIterableToArray(r, a) {\n\tif (r) {\n\t\tif (\"string\" == typeof r) return _arrayLikeToArray(r, a);\n\t\tvar t = {}.toString.call(r).slice(8, -1);\n\t\treturn \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;\n\t}\n}\nfunction AsyncGenerator(e) {\n\tvar t, n;\n\tfunction resume(t, n) {\n\t\ttry {\n\t\t\tvar r = e[t](n), o = r.value, u = o instanceof _OverloadYield;\n\t\t\tPromise.resolve(u ? o.v : o).then(function(n) {\n\t\t\t\tif (u) {\n\t\t\t\t\tvar i = \"return\" === t && o.k ? t : \"next\";\n\t\t\t\t\tif (!o.k || n.done) return resume(i, n);\n\t\t\t\t\tn = e[i](n).value;\n\t\t\t\t}\n\t\t\t\tsettle(!!r.done, n);\n\t\t\t}, function(e) {\n\t\t\t\tresume(\"throw\", e);\n\t\t\t});\n\t\t} catch (e) {\n\t\t\tsettle(2, e);\n\t\t}\n\t}\n\tfunction settle(e, r) {\n\t\t2 === e ? t.reject(r) : t.resolve({\n\t\t\tvalue: r,\n\t\t\tdone: e\n\t\t}), (t = t.next) ? resume(t.key, t.arg) : n = null;\n\t}\n\tthis._invoke = function(e, r) {\n\t\treturn new Promise(function(o, u) {\n\t\t\tvar i = {\n\t\t\t\tkey: e,\n\t\t\t\targ: r,\n\t\t\t\tresolve: o,\n\t\t\t\treject: u,\n\t\t\t\tnext: null\n\t\t\t};\n\t\t\tn ? n = n.next = i : (t = n = i, resume(e, r));\n\t\t});\n\t}, \"function\" != typeof e.return && (this.return = void 0);\n}\nAsyncGenerator.prototype[\"function\" == typeof Symbol && Symbol.asyncIterator || \"@@asyncIterator\"] = function() {\n\treturn this;\n}, AsyncGenerator.prototype.next = function(e) {\n\treturn this._invoke(\"next\", e);\n}, AsyncGenerator.prototype.throw = function(e) {\n\treturn this._invoke(\"throw\", e);\n}, AsyncGenerator.prototype.return = function(e) {\n\treturn this._invoke(\"return\", e);\n};\nconst entries = Object.entries;\nconst setPrototypeOf = Object.setPrototypeOf;\nconst isFrozen = Object.isFrozen;\nconst getPrototypeOf = Object.getPrototypeOf;\nconst getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nlet freeze = Object.freeze;\nlet seal = Object.seal;\nlet create = Object.create;\nlet _ref = typeof Reflect !== \"undefined\" && Reflect;\nlet apply = _ref.apply;\nlet construct = _ref.construct;\nif (!freeze) freeze = function freeze(x) {\n\treturn x;\n};\nif (!seal) seal = function seal(x) {\n\treturn x;\n};\nif (!apply) apply = function apply(func, thisArg) {\n\tfor (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) args[_key - 2] = arguments[_key];\n\treturn func.apply(thisArg, args);\n};\nif (!construct) construct = function construct(Func) {\n\tfor (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) args[_key2 - 1] = arguments[_key2];\n\treturn new Func(...args);\n};\nconst arrayForEach = unapply(Array.prototype.forEach);\nArray.prototype.indexOf;\nconst arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);\nconst arrayPop = unapply(Array.prototype.pop);\nconst arrayPush = unapply(Array.prototype.push);\nArray.prototype.slice;\nconst arraySplice = unapply(Array.prototype.splice);\nconst arrayIsArray = Array.isArray;\nconst stringToLowerCase = unapply(String.prototype.toLowerCase);\nconst stringToString = unapply(String.prototype.toString);\nconst stringMatch = unapply(String.prototype.match);\nconst stringReplace = unapply(String.prototype.replace);\nconst stringIndexOf = unapply(String.prototype.indexOf);\nconst stringTrim = unapply(String.prototype.trim);\nconst numberToString = unapply(Number.prototype.toString);\nconst booleanToString = unapply(Boolean.prototype.toString);\nconst bigintToString = typeof BigInt === \"undefined\" ? null : unapply(BigInt.prototype.toString);\nconst symbolToString = typeof Symbol === \"undefined\" ? null : unapply(Symbol.prototype.toString);\nconst objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);\nconst objectToString = unapply(Object.prototype.toString);\nconst regExpTest = unapply(RegExp.prototype.test);\nconst typeErrorCreate = unconstruct(TypeError);\n/**\n* Creates a new function that calls the given function with a specified thisArg and arguments.\n*\n* @param func - The function to be wrapped and called.\n* @returns A new function that calls the given function with a specified thisArg and arguments.\n*/\nfunction unapply(func) {\n\treturn function(thisArg) {\n\t\tif (thisArg instanceof RegExp) thisArg.lastIndex = 0;\n\t\tfor (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) args[_key3 - 1] = arguments[_key3];\n\t\treturn apply(func, thisArg, args);\n\t};\n}\n/**\n* Creates a new function that constructs an instance of the given constructor function with the provided arguments.\n*\n* @param func - The constructor function to be wrapped and called.\n* @returns A new function that constructs an instance of the given constructor function with the provided arguments.\n*/\nfunction unconstruct(Func) {\n\treturn function() {\n\t\tfor (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) args[_key4] = arguments[_key4];\n\t\treturn construct(Func, args);\n\t};\n}\n/**\n* Add properties to a lookup table\n*\n* @param set - The set to which elements will be added.\n* @param array - The array containing elements to be added to the set.\n* @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.\n* @returns The modified set with added elements.\n*/\nfunction addToSet(set, array) {\n\tlet transformCaseFunc = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : stringToLowerCase;\n\tif (setPrototypeOf) setPrototypeOf(set, null);\n\tif (!arrayIsArray(array)) return set;\n\tlet l = array.length;\n\twhile (l--) {\n\t\tlet element = array[l];\n\t\tif (typeof element === \"string\") {\n\t\t\tconst lcElement = transformCaseFunc(element);\n\t\t\tif (lcElement !== element) {\n\t\t\t\tif (!isFrozen(array)) array[l] = lcElement;\n\t\t\t\telement = lcElement;\n\t\t\t}\n\t\t}\n\t\tset[element] = true;\n\t}\n\treturn set;\n}\n/**\n* Clean up an array to harden against CSPP\n*\n* @param array - The array to be cleaned.\n* @returns The cleaned version of the array\n*/\nfunction cleanArray(array) {\n\tfor (let index = 0; index < array.length; index++) if (!objectHasOwnProperty(array, index)) array[index] = null;\n\treturn array;\n}\n/**\n* Shallow clone an object\n*\n* @param object - The object to be cloned.\n* @returns A new object that copies the original.\n*/\nfunction clone(object) {\n\tconst newObject = create(null);\n\tfor (const _ref2 of entries(object)) {\n\t\tvar _ref3 = _slicedToArray(_ref2, 2);\n\t\tconst property = _ref3[0];\n\t\tconst value = _ref3[1];\n\t\tif (objectHasOwnProperty(object, property)) {\n\t\t\tif (arrayIsArray(value)) newObject[property] = cleanArray(value);\n\t\t\telse if (value && typeof value === \"object\" && value.constructor === Object) newObject[property] = clone(value);\n\t\t\telse newObject[property] = value;\n\t\t}\n\t}\n\treturn newObject;\n}\n/**\n* Convert non-node values into strings without depending on direct property access.\n*\n* @param value - The value to stringify.\n* @returns A string representation of the provided value.\n*/\nfunction stringifyValue(value) {\n\tswitch (typeof value) {\n\t\tcase \"string\": return value;\n\t\tcase \"number\": return numberToString(value);\n\t\tcase \"boolean\": return booleanToString(value);\n\t\tcase \"bigint\": return bigintToString ? bigintToString(value) : \"0\";\n\t\tcase \"symbol\": return symbolToString ? symbolToString(value) : \"Symbol()\";\n\t\tcase \"undefined\": return objectToString(value);\n\t\tcase \"function\":\n\t\tcase \"object\": {\n\t\t\tif (value === null) return objectToString(value);\n\t\t\tconst valueAsRecord = value;\n\t\t\tconst valueToString = lookupGetter(valueAsRecord, \"toString\");\n\t\t\tif (typeof valueToString === \"function\") {\n\t\t\t\tconst stringified = valueToString(valueAsRecord);\n\t\t\t\treturn typeof stringified === \"string\" ? stringified : objectToString(stringified);\n\t\t\t}\n\t\t\treturn objectToString(value);\n\t\t}\n\t\tdefault: return objectToString(value);\n\t}\n}\n/**\n* This method automatically checks if the prop is function or getter and behaves accordingly.\n*\n* @param object - The object to look up the getter function in its prototype chain.\n* @param prop - The property name for which to find the getter function.\n* @returns The getter function found in the prototype chain or a fallback function.\n*/\nfunction lookupGetter(object, prop) {\n\twhile (object !== null) {\n\t\tconst desc = getOwnPropertyDescriptor(object, prop);\n\t\tif (desc) {\n\t\t\tif (desc.get) return unapply(desc.get);\n\t\t\tif (typeof desc.value === \"function\") return unapply(desc.value);\n\t\t}\n\t\tobject = getPrototypeOf(object);\n\t}\n\tfunction fallbackValue() {\n\t\treturn null;\n\t}\n\treturn fallbackValue;\n}\nfunction isRegex(value) {\n\ttry {\n\t\tregExpTest(value, \"\");\n\t\treturn true;\n\t} catch (_unused) {\n\t\treturn false;\n\t}\n}\nconst html$1 = freeze([\n\t\"a\",\n\t\"abbr\",\n\t\"acronym\",\n\t\"address\",\n\t\"area\",\n\t\"article\",\n\t\"aside\",\n\t\"audio\",\n\t\"b\",\n\t\"bdi\",\n\t\"bdo\",\n\t\"big\",\n\t\"blink\",\n\t\"blockquote\",\n\t\"body\",\n\t\"br\",\n\t\"button\",\n\t\"canvas\",\n\t\"caption\",\n\t\"center\",\n\t\"cite\",\n\t\"code\",\n\t\"col\",\n\t\"colgroup\",\n\t\"content\",\n\t\"data\",\n\t\"datalist\",\n\t\"dd\",\n\t\"decorator\",\n\t\"del\",\n\t\"details\",\n\t\"dfn\",\n\t\"dialog\",\n\t\"dir\",\n\t\"div\",\n\t\"dl\",\n\t\"dt\",\n\t\"element\",\n\t\"em\",\n\t\"fieldset\",\n\t\"figcaption\",\n\t\"figure\",\n\t\"font\",\n\t\"footer\",\n\t\"form\",\n\t\"h1\",\n\t\"h2\",\n\t\"h3\",\n\t\"h4\",\n\t\"h5\",\n\t\"h6\",\n\t\"head\",\n\t\"header\",\n\t\"hgroup\",\n\t\"hr\",\n\t\"html\",\n\t\"i\",\n\t\"img\",\n\t\"input\",\n\t\"ins\",\n\t\"kbd\",\n\t\"label\",\n\t\"legend\",\n\t\"li\",\n\t\"main\",\n\t\"map\",\n\t\"mark\",\n\t\"marquee\",\n\t\"menu\",\n\t\"menuitem\",\n\t\"meter\",\n\t\"nav\",\n\t\"nobr\",\n\t\"ol\",\n\t\"optgroup\",\n\t\"option\",\n\t\"output\",\n\t\"p\",\n\t\"picture\",\n\t\"pre\",\n\t\"progress\",\n\t\"q\",\n\t\"rp\",\n\t\"rt\",\n\t\"ruby\",\n\t\"s\",\n\t\"samp\",\n\t\"search\",\n\t\"section\",\n\t\"select\",\n\t\"shadow\",\n\t\"slot\",\n\t\"small\",\n\t\"source\",\n\t\"spacer\",\n\t\"span\",\n\t\"strike\",\n\t\"strong\",\n\t\"style\",\n\t\"sub\",\n\t\"summary\",\n\t\"sup\",\n\t\"table\",\n\t\"tbody\",\n\t\"td\",\n\t\"template\",\n\t\"textarea\",\n\t\"tfoot\",\n\t\"th\",\n\t\"thead\",\n\t\"time\",\n\t\"tr\",\n\t\"track\",\n\t\"tt\",\n\t\"u\",\n\t\"ul\",\n\t\"var\",\n\t\"video\",\n\t\"wbr\"\n]);\nconst svg$1 = freeze([\n\t\"svg\",\n\t\"a\",\n\t\"altglyph\",\n\t\"altglyphdef\",\n\t\"altglyphitem\",\n\t\"animatecolor\",\n\t\"animatemotion\",\n\t\"animatetransform\",\n\t\"circle\",\n\t\"clippath\",\n\t\"defs\",\n\t\"desc\",\n\t\"ellipse\",\n\t\"enterkeyhint\",\n\t\"exportparts\",\n\t\"filter\",\n\t\"font\",\n\t\"g\",\n\t\"glyph\",\n\t\"glyphref\",\n\t\"hkern\",\n\t\"image\",\n\t\"inputmode\",\n\t\"line\",\n\t\"lineargradient\",\n\t\"marker\",\n\t\"mask\",\n\t\"metadata\",\n\t\"mpath\",\n\t\"part\",\n\t\"path\",\n\t\"pattern\",\n\t\"polygon\",\n\t\"polyline\",\n\t\"radialgradient\",\n\t\"rect\",\n\t\"stop\",\n\t\"style\",\n\t\"switch\",\n\t\"symbol\",\n\t\"text\",\n\t\"textpath\",\n\t\"title\",\n\t\"tref\",\n\t\"tspan\",\n\t\"view\",\n\t\"vkern\"\n]);\nconst svgFilters = freeze([\n\t\"feBlend\",\n\t\"feColorMatrix\",\n\t\"feComponentTransfer\",\n\t\"feComposite\",\n\t\"feConvolveMatrix\",\n\t\"feDiffuseLighting\",\n\t\"feDisplacementMap\",\n\t\"feDistantLight\",\n\t\"feDropShadow\",\n\t\"feFlood\",\n\t\"feFuncA\",\n\t\"feFuncB\",\n\t\"feFuncG\",\n\t\"feFuncR\",\n\t\"feGaussianBlur\",\n\t\"feImage\",\n\t\"feMerge\",\n\t\"feMergeNode\",\n\t\"feMorphology\",\n\t\"feOffset\",\n\t\"fePointLight\",\n\t\"feSpecularLighting\",\n\t\"feSpotLight\",\n\t\"feTile\",\n\t\"feTurbulence\"\n]);\nconst svgDisallowed = freeze([\n\t\"animate\",\n\t\"color-profile\",\n\t\"cursor\",\n\t\"discard\",\n\t\"font-face\",\n\t\"font-face-format\",\n\t\"font-face-name\",\n\t\"font-face-src\",\n\t\"font-face-uri\",\n\t\"foreignobject\",\n\t\"hatch\",\n\t\"hatchpath\",\n\t\"mesh\",\n\t\"meshgradient\",\n\t\"meshpatch\",\n\t\"meshrow\",\n\t\"missing-glyph\",\n\t\"script\",\n\t\"set\",\n\t\"solidcolor\",\n\t\"unknown\",\n\t\"use\"\n]);\nconst mathMl$1 = freeze([\n\t\"math\",\n\t\"menclose\",\n\t\"merror\",\n\t\"mfenced\",\n\t\"mfrac\",\n\t\"mglyph\",\n\t\"mi\",\n\t\"mlabeledtr\",\n\t\"mmultiscripts\",\n\t\"mn\",\n\t\"mo\",\n\t\"mover\",\n\t\"mpadded\",\n\t\"mphantom\",\n\t\"mroot\",\n\t\"mrow\",\n\t\"ms\",\n\t\"mspace\",\n\t\"msqrt\",\n\t\"mstyle\",\n\t\"msub\",\n\t\"msup\",\n\t\"msubsup\",\n\t\"mtable\",\n\t\"mtd\",\n\t\"mtext\",\n\t\"mtr\",\n\t\"munder\",\n\t\"munderover\",\n\t\"mprescripts\"\n]);\nconst mathMlDisallowed = freeze([\n\t\"maction\",\n\t\"maligngroup\",\n\t\"malignmark\",\n\t\"mlongdiv\",\n\t\"mscarries\",\n\t\"mscarry\",\n\t\"msgroup\",\n\t\"mstack\",\n\t\"msline\",\n\t\"msrow\",\n\t\"semantics\",\n\t\"annotation\",\n\t\"annotation-xml\",\n\t\"mprescripts\",\n\t\"none\"\n]);\nconst text = freeze([\"#text\"]);\nconst html = freeze([\n\t\"accept\",\n\t\"action\",\n\t\"align\",\n\t\"alt\",\n\t\"autocapitalize\",\n\t\"autocomplete\",\n\t\"autopictureinpicture\",\n\t\"autoplay\",\n\t\"background\",\n\t\"bgcolor\",\n\t\"border\",\n\t\"capture\",\n\t\"cellpadding\",\n\t\"cellspacing\",\n\t\"checked\",\n\t\"cite\",\n\t\"class\",\n\t\"clear\",\n\t\"color\",\n\t\"cols\",\n\t\"colspan\",\n\t\"command\",\n\t\"commandfor\",\n\t\"controls\",\n\t\"controlslist\",\n\t\"coords\",\n\t\"crossorigin\",\n\t\"datetime\",\n\t\"decoding\",\n\t\"default\",\n\t\"dir\",\n\t\"disabled\",\n\t\"disablepictureinpicture\",\n\t\"disableremoteplayback\",\n\t\"download\",\n\t\"draggable\",\n\t\"enctype\",\n\t\"enterkeyhint\",\n\t\"exportparts\",\n\t\"face\",\n\t\"for\",\n\t\"headers\",\n\t\"height\",\n\t\"hidden\",\n\t\"high\",\n\t\"href\",\n\t\"hreflang\",\n\t\"id\",\n\t\"inert\",\n\t\"inputmode\",\n\t\"integrity\",\n\t\"ismap\",\n\t\"kind\",\n\t\"label\",\n\t\"lang\",\n\t\"list\",\n\t\"loading\",\n\t\"loop\",\n\t\"low\",\n\t\"max\",\n\t\"maxlength\",\n\t\"media\",\n\t\"method\",\n\t\"min\",\n\t\"minlength\",\n\t\"multiple\",\n\t\"muted\",\n\t\"name\",\n\t\"nonce\",\n\t\"noshade\",\n\t\"novalidate\",\n\t\"nowrap\",\n\t\"open\",\n\t\"optimum\",\n\t\"part\",\n\t\"pattern\",\n\t\"placeholder\",\n\t\"playsinline\",\n\t\"popover\",\n\t\"popovertarget\",\n\t\"popovertargetaction\",\n\t\"poster\",\n\t\"preload\",\n\t\"pubdate\",\n\t\"radiogroup\",\n\t\"readonly\",\n\t\"rel\",\n\t\"required\",\n\t\"rev\",\n\t\"reversed\",\n\t\"role\",\n\t\"rows\",\n\t\"rowspan\",\n\t\"spellcheck\",\n\t\"scope\",\n\t\"selected\",\n\t\"shape\",\n\t\"size\",\n\t\"sizes\",\n\t\"slot\",\n\t\"span\",\n\t\"srclang\",\n\t\"start\",\n\t\"src\",\n\t\"srcset\",\n\t\"step\",\n\t\"style\",\n\t\"summary\",\n\t\"tabindex\",\n\t\"title\",\n\t\"translate\",\n\t\"type\",\n\t\"usemap\",\n\t\"valign\",\n\t\"value\",\n\t\"width\",\n\t\"wrap\",\n\t\"xmlns\"\n]);\nconst svg = freeze([\n\t\"accent-height\",\n\t\"accumulate\",\n\t\"additive\",\n\t\"alignment-baseline\",\n\t\"amplitude\",\n\t\"ascent\",\n\t\"attributename\",\n\t\"attributetype\",\n\t\"azimuth\",\n\t\"basefrequency\",\n\t\"baseline-shift\",\n\t\"begin\",\n\t\"bias\",\n\t\"by\",\n\t\"class\",\n\t\"clip\",\n\t\"clippathunits\",\n\t\"clip-path\",\n\t\"clip-rule\",\n\t\"color\",\n\t\"color-interpolation\",\n\t\"color-interpolation-filters\",\n\t\"color-profile\",\n\t\"color-rendering\",\n\t\"cx\",\n\t\"cy\",\n\t\"d\",\n\t\"dx\",\n\t\"dy\",\n\t\"diffuseconstant\",\n\t\"direction\",\n\t\"display\",\n\t\"divisor\",\n\t\"dominant-baseline\",\n\t\"dur\",\n\t\"edgemode\",\n\t\"elevation\",\n\t\"end\",\n\t\"exponent\",\n\t\"fill\",\n\t\"fill-opacity\",\n\t\"fill-rule\",\n\t\"filter\",\n\t\"filterunits\",\n\t\"flood-color\",\n\t\"flood-opacity\",\n\t\"font-family\",\n\t\"font-size\",\n\t\"font-size-adjust\",\n\t\"font-stretch\",\n\t\"font-style\",\n\t\"font-variant\",\n\t\"font-weight\",\n\t\"fx\",\n\t\"fy\",\n\t\"g1\",\n\t\"g2\",\n\t\"glyph-name\",\n\t\"glyphref\",\n\t\"gradientunits\",\n\t\"gradienttransform\",\n\t\"height\",\n\t\"href\",\n\t\"id\",\n\t\"image-rendering\",\n\t\"in\",\n\t\"in2\",\n\t\"intercept\",\n\t\"k\",\n\t\"k1\",\n\t\"k2\",\n\t\"k3\",\n\t\"k4\",\n\t\"kerning\",\n\t\"keypoints\",\n\t\"keysplines\",\n\t\"keytimes\",\n\t\"lang\",\n\t\"lengthadjust\",\n\t\"letter-spacing\",\n\t\"kernelmatrix\",\n\t\"kernelunitlength\",\n\t\"lighting-color\",\n\t\"local\",\n\t\"marker-end\",\n\t\"marker-mid\",\n\t\"marker-start\",\n\t\"markerheight\",\n\t\"markerunits\",\n\t\"markerwidth\",\n\t\"maskcontentunits\",\n\t\"maskunits\",\n\t\"max\",\n\t\"mask\",\n\t\"mask-type\",\n\t\"media\",\n\t\"method\",\n\t\"mode\",\n\t\"min\",\n\t\"name\",\n\t\"numoctaves\",\n\t\"offset\",\n\t\"operator\",\n\t\"opacity\",\n\t\"order\",\n\t\"orient\",\n\t\"orientation\",\n\t\"origin\",\n\t\"overflow\",\n\t\"paint-order\",\n\t\"path\",\n\t\"pathlength\",\n\t\"patterncontentunits\",\n\t\"patterntransform\",\n\t\"patternunits\",\n\t\"pointer-events\",\n\t\"points\",\n\t\"preservealpha\",\n\t\"preserveaspectratio\",\n\t\"primitiveunits\",\n\t\"r\",\n\t\"rx\",\n\t\"ry\",\n\t\"radius\",\n\t\"refx\",\n\t\"refy\",\n\t\"repeatcount\",\n\t\"repeatdur\",\n\t\"restart\",\n\t\"result\",\n\t\"rotate\",\n\t\"scale\",\n\t\"seed\",\n\t\"shape-rendering\",\n\t\"slope\",\n\t\"specularconstant\",\n\t\"specularexponent\",\n\t\"spreadmethod\",\n\t\"startoffset\",\n\t\"stddeviation\",\n\t\"stitchtiles\",\n\t\"stop-color\",\n\t\"stop-opacity\",\n\t\"stroke-dasharray\",\n\t\"stroke-dashoffset\",\n\t\"stroke-linecap\",\n\t\"stroke-linejoin\",\n\t\"stroke-miterlimit\",\n\t\"stroke-opacity\",\n\t\"stroke\",\n\t\"stroke-width\",\n\t\"style\",\n\t\"surfacescale\",\n\t\"systemlanguage\",\n\t\"tabindex\",\n\t\"tablevalues\",\n\t\"targetx\",\n\t\"targety\",\n\t\"transform\",\n\t\"transform-origin\",\n\t\"text-anchor\",\n\t\"text-decoration\",\n\t\"text-orientation\",\n\t\"text-rendering\",\n\t\"textlength\",\n\t\"type\",\n\t\"u1\",\n\t\"u2\",\n\t\"unicode\",\n\t\"values\",\n\t\"vector-effect\",\n\t\"viewbox\",\n\t\"visibility\",\n\t\"version\",\n\t\"vert-adv-y\",\n\t\"vert-origin-x\",\n\t\"vert-origin-y\",\n\t\"width\",\n\t\"word-spacing\",\n\t\"wrap\",\n\t\"writing-mode\",\n\t\"xchannelselector\",\n\t\"ychannelselector\",\n\t\"x\",\n\t\"x1\",\n\t\"x2\",\n\t\"xmlns\",\n\t\"y\",\n\t\"y1\",\n\t\"y2\",\n\t\"z\",\n\t\"zoomandpan\"\n]);\nconst mathMl = freeze([\n\t\"accent\",\n\t\"accentunder\",\n\t\"align\",\n\t\"bevelled\",\n\t\"close\",\n\t\"columnalign\",\n\t\"columnlines\",\n\t\"columnspacing\",\n\t\"columnspan\",\n\t\"denomalign\",\n\t\"depth\",\n\t\"dir\",\n\t\"display\",\n\t\"displaystyle\",\n\t\"encoding\",\n\t\"fence\",\n\t\"frame\",\n\t\"height\",\n\t\"href\",\n\t\"id\",\n\t\"largeop\",\n\t\"length\",\n\t\"linethickness\",\n\t\"lquote\",\n\t\"lspace\",\n\t\"mathbackground\",\n\t\"mathcolor\",\n\t\"mathsize\",\n\t\"mathvariant\",\n\t\"maxsize\",\n\t\"minsize\",\n\t\"movablelimits\",\n\t\"notation\",\n\t\"numalign\",\n\t\"open\",\n\t\"rowalign\",\n\t\"rowlines\",\n\t\"rowspacing\",\n\t\"rowspan\",\n\t\"rspace\",\n\t\"rquote\",\n\t\"scriptlevel\",\n\t\"scriptminsize\",\n\t\"scriptsizemultiplier\",\n\t\"selection\",\n\t\"separator\",\n\t\"separators\",\n\t\"stretchy\",\n\t\"subscriptshift\",\n\t\"supscriptshift\",\n\t\"symmetric\",\n\t\"voffset\",\n\t\"width\",\n\t\"xmlns\"\n]);\nconst xml = freeze([\n\t\"xlink:href\",\n\t\"xml:id\",\n\t\"xlink:title\",\n\t\"xml:space\",\n\t\"xmlns:xlink\"\n]);\nconst MUSTACHE_EXPR = seal(/{{[\\w\\W]*|^[\\w\\W]*}}/g);\nconst ERB_EXPR = seal(/<%[\\w\\W]*|^[\\w\\W]*%>/g);\nconst TMPLIT_EXPR = seal(/\\${[\\w\\W]*/g);\nconst DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]+$/);\nconst ARIA_ATTR = seal(/^aria-[\\-\\w]+$/);\nconst IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i);\nconst IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\nconst ATTR_WHITESPACE = seal(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g);\nconst DOCTYPE_NAME = seal(/^html$/i);\nconst CUSTOM_ELEMENT = seal(/^[a-z][.\\w]*(-[.\\w]+)+$/i);\nconst ELEMENT_MARKUP_PROBE = seal(/<[/\\w!]/g);\nconst COMMENT_MARKUP_PROBE = seal(/<[/\\w]/g);\nconst FALLBACK_TAG_CLOSE = seal(/<\\/no(script|embed|frames)/i);\nconst SELF_CLOSING_TAG = seal(/\\/>/i);\nconst NODE_TYPE = {\n\telement: 1,\n\tattribute: 2,\n\ttext: 3,\n\tcdataSection: 4,\n\tentityReference: 5,\n\tentityNode: 6,\n\tprocessingInstruction: 7,\n\tcomment: 8,\n\tdocument: 9,\n\tdocumentType: 10,\n\tdocumentFragment: 11,\n\tnotation: 12\n};\nconst LITERAL_TEXT_ELEMENT_NAMES = [\n\t\"style\",\n\t\"script\",\n\t\"xmp\",\n\t\"iframe\",\n\t\"noembed\",\n\t\"noframes\",\n\t\"plaintext\",\n\t\"noscript\"\n];\nconst LITERAL_TEXT_ELEMENTS = freeze(addToSet({}, LITERAL_TEXT_ELEMENT_NAMES));\nconst LITERAL_TEXT_CLOSE = function() {\n\tconst map = {};\n\tarrayForEach(LITERAL_TEXT_ELEMENT_NAMES, (name) => {\n\t\tmap[name] = seal(new RegExp(\"])\", \"i\"));\n\t});\n\treturn freeze(map);\n}();\nconst getGlobal = function getGlobal() {\n\treturn typeof window === \"undefined\" ? null : window;\n};\n/**\n* Creates a no-op policy for internal use only.\n* Don't export this function outside this module!\n* @param trustedTypes The policy factory.\n* @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).\n* @return The policy created (or null, if Trusted Types\n* are not supported or creating the policy failed).\n*/\nconst _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {\n\tif (typeof trustedTypes !== \"object\" || typeof trustedTypes.createPolicy !== \"function\") return null;\n\tlet suffix = null;\n\tconst ATTR_NAME = \"data-tt-policy-suffix\";\n\tif (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) suffix = purifyHostElement.getAttribute(ATTR_NAME);\n\tconst policyName = \"dompurify\" + (suffix ? \"#\" + suffix : \"\");\n\ttry {\n\t\treturn trustedTypes.createPolicy(policyName, {\n\t\t\tcreateHTML(html) {\n\t\t\t\treturn html;\n\t\t\t},\n\t\t\tcreateScriptURL(scriptUrl) {\n\t\t\t\treturn scriptUrl;\n\t\t\t}\n\t\t});\n\t} catch (_) {\n\t\tconsole.warn(\"TrustedTypes policy \" + policyName + \" could not be created.\");\n\t\treturn null;\n\t}\n};\nconst _createHooksMap = function _createHooksMap() {\n\treturn {\n\t\tafterSanitizeAttributes: [],\n\t\tafterSanitizeElements: [],\n\t\tafterSanitizeShadowDOM: [],\n\t\tbeforeSanitizeAttributes: [],\n\t\tbeforeSanitizeElements: [],\n\t\tbeforeSanitizeShadowDOM: [],\n\t\tuponSanitizeAttribute: [],\n\t\tuponSanitizeElement: [],\n\t\tuponSanitizeShadowNode: []\n\t};\n};\n/**\n* Resolve a set-valued configuration option: a fresh set built from\n* cfg[key] when it is an own array property (seeded with a clone of\n* options.base when given, case-normalized via options.transform),\n* the fallback set otherwise.\n*\n* @param cfg the cloned, prototype-free configuration object\n* @param key the configuration property to read\n* @param fallback the set to use when the option is absent or not an array\n* @param options transform and optional base set to merge into\n* @returns the resolved set\n*/\nconst _resolveSetOption = function _resolveSetOption(cfg, key, fallback, options) {\n\treturn objectHasOwnProperty(cfg, key) && arrayIsArray(cfg[key]) ? addToSet(options.base ? clone(options.base) : {}, cfg[key], options.transform) : fallback;\n};\n/**\n* Resolve an object-valued configuration option: a prototype-free clone\n* of cfg[key] when it is an own, truthy object property, else a fresh\n* fallback built by makeFallback (fresh on every parse, so a previous\n* parse can never leak state into the next one).\n*\n* @param cfg the cloned, prototype-free configuration object\n* @param key the configuration property to read\n* @param makeFallback builds the fallback value when the option is absent\n* @returns the resolved object\n*/\nconst _resolveObjectOption = function _resolveObjectOption(cfg, key, makeFallback) {\n\tconst value = objectHasOwnProperty(cfg, key) ? cfg[key] : void 0;\n\treturn value && typeof value === \"object\" ? clone(value) : makeFallback();\n};\nfunction createDOMPurify() {\n\tlet window = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();\n\tconst DOMPurify = (root) => createDOMPurify(root);\n\tDOMPurify.version = \"3.4.16\";\n\tDOMPurify.removed = [];\n\tif (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {\n\t\tDOMPurify.isSupported = false;\n\t\treturn DOMPurify;\n\t}\n\tlet document = window.document;\n\tconst originalDocument = document;\n\tconst currentScript = originalDocument.currentScript;\n\twindow.DocumentFragment;\n\tconst HTMLTemplateElement = window.HTMLTemplateElement, Node = window.Node, Element = window.Element, NodeFilter = window.NodeFilter;\n\twindow.NamedNodeMap === void 0 && (window.NamedNodeMap || window.MozNamedAttrMap);\n\twindow.HTMLFormElement;\n\tconst DOMParser = window.DOMParser, trustedTypes = window.trustedTypes;\n\tconst ElementPrototype = Element.prototype;\n\tconst cloneNode = lookupGetter(ElementPrototype, \"cloneNode\");\n\tconst remove = lookupGetter(ElementPrototype, \"remove\");\n\tconst removeAttributeNode = lookupGetter(ElementPrototype, \"removeAttributeNode\");\n\tconst getNextSibling = lookupGetter(ElementPrototype, \"nextSibling\");\n\tconst getChildNodes = lookupGetter(ElementPrototype, \"childNodes\");\n\tconst getParentNode = lookupGetter(ElementPrototype, \"parentNode\");\n\tconst getShadowRoot = lookupGetter(ElementPrototype, \"shadowRoot\");\n\tconst getAttributes = lookupGetter(ElementPrototype, \"attributes\");\n\tconst getNodeType = Node && Node.prototype ? lookupGetter(Node.prototype, \"nodeType\") : null;\n\tconst getNodeName = Node && Node.prototype ? lookupGetter(Node.prototype, \"nodeName\") : null;\n\tconst getOwnerDocument = Node && Node.prototype ? lookupGetter(Node.prototype, \"ownerDocument\") : null;\n\tconst _readNodeType = function _readNodeType(node) {\n\t\treturn getNodeType ? getNodeType(node) : node.nodeType;\n\t};\n\tconst _readNodeName = function _readNodeName(node) {\n\t\treturn getNodeName ? getNodeName(node) : node.nodeName;\n\t};\n\tif (typeof HTMLTemplateElement === \"function\") {\n\t\tconst template = document.createElement(\"template\");\n\t\tif (template.content && template.content.ownerDocument) document = template.content.ownerDocument;\n\t}\n\tlet trustedTypesPolicy;\n\tlet emptyHTML = \"\";\n\tlet defaultTrustedTypesPolicy;\n\tlet defaultTrustedTypesPolicyResolved = false;\n\tlet IN_TRUSTED_TYPES_POLICY = 0;\n\tconst _assertNotInTrustedTypesPolicy = function _assertNotInTrustedTypesPolicy() {\n\t\tif (IN_TRUSTED_TYPES_POLICY > 0) throw typeErrorCreate(\"A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \\\"DOMPurify and Trusted Types\\\" section of the README.\");\n\t};\n\tconst _createTrustedHTML = function _createTrustedHTML(html) {\n\t\t_assertNotInTrustedTypesPolicy();\n\t\tIN_TRUSTED_TYPES_POLICY++;\n\t\ttry {\n\t\t\treturn trustedTypesPolicy.createHTML(html);\n\t\t} finally {\n\t\t\tIN_TRUSTED_TYPES_POLICY--;\n\t\t}\n\t};\n\tconst _createTrustedScriptURL = function _createTrustedScriptURL(scriptUrl) {\n\t\t_assertNotInTrustedTypesPolicy();\n\t\tIN_TRUSTED_TYPES_POLICY++;\n\t\ttry {\n\t\t\treturn trustedTypesPolicy.createScriptURL(scriptUrl);\n\t\t} finally {\n\t\t\tIN_TRUSTED_TYPES_POLICY--;\n\t\t}\n\t};\n\tconst _getDefaultTrustedTypesPolicy = function _getDefaultTrustedTypesPolicy() {\n\t\tif (!defaultTrustedTypesPolicyResolved) {\n\t\t\tdefaultTrustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);\n\t\t\tdefaultTrustedTypesPolicyResolved = true;\n\t\t}\n\t\treturn defaultTrustedTypesPolicy;\n\t};\n\tconst _document = document, implementation = _document.implementation, createNodeIterator = _document.createNodeIterator, createDocumentFragment = _document.createDocumentFragment, getElementsByTagName = _document.getElementsByTagName;\n\tconst importNode = originalDocument.importNode;\n\tlet hooks = _createHooksMap();\n\t/**\n\t* Expose whether this browser supports running the full DOMPurify.\n\t*/\n\tDOMPurify.isSupported = typeof entries === \"function\" && typeof getParentNode === \"function\" && implementation && implementation.createHTMLDocument !== void 0;\n\tconst MUSTACHE_EXPR$1 = MUSTACHE_EXPR, ERB_EXPR$1 = ERB_EXPR, TMPLIT_EXPR$1 = TMPLIT_EXPR, DATA_ATTR$1 = DATA_ATTR, ARIA_ATTR$1 = ARIA_ATTR, IS_SCRIPT_OR_DATA$1 = IS_SCRIPT_OR_DATA, ATTR_WHITESPACE$1 = ATTR_WHITESPACE, CUSTOM_ELEMENT$1 = CUSTOM_ELEMENT;\n\tlet IS_ALLOWED_URI$1 = IS_ALLOWED_URI;\n\t/**\n\t* We consider the elements and attributes below to be safe. Ideally\n\t* don't add any new ones but feel free to remove unwanted ones.\n\t*/\n\tlet ALLOWED_TAGS = null;\n\tconst DEFAULT_ALLOWED_TAGS = addToSet({}, [\n\t\t...html$1,\n\t\t...svg$1,\n\t\t...svgFilters,\n\t\t...mathMl$1,\n\t\t...text\n\t]);\n\tlet ALLOWED_ATTR = null;\n\tconst DEFAULT_ALLOWED_ATTR = addToSet({}, [\n\t\t...html,\n\t\t...svg,\n\t\t...mathMl,\n\t\t...xml\n\t]);\n\tlet CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {\n\t\ttagNameCheck: {\n\t\t\twritable: true,\n\t\t\tconfigurable: false,\n\t\t\tenumerable: true,\n\t\t\tvalue: null\n\t\t},\n\t\tattributeNameCheck: {\n\t\t\twritable: true,\n\t\t\tconfigurable: false,\n\t\t\tenumerable: true,\n\t\t\tvalue: null\n\t\t},\n\t\tallowCustomizedBuiltInElements: {\n\t\t\twritable: true,\n\t\t\tconfigurable: false,\n\t\t\tenumerable: true,\n\t\t\tvalue: false\n\t\t}\n\t}));\n\tlet FORBID_TAGS = null;\n\tlet FORBID_ATTR = null;\n\tconst EXTRA_ELEMENT_HANDLING = Object.seal(create(null, {\n\t\ttagCheck: {\n\t\t\twritable: true,\n\t\t\tconfigurable: false,\n\t\t\tenumerable: true,\n\t\t\tvalue: null\n\t\t},\n\t\tattributeCheck: {\n\t\t\twritable: true,\n\t\t\tconfigurable: false,\n\t\t\tenumerable: true,\n\t\t\tvalue: null\n\t\t}\n\t}));\n\tlet ALLOW_ARIA_ATTR = true;\n\tlet ALLOW_DATA_ATTR = true;\n\tlet ALLOW_UNKNOWN_PROTOCOLS = false;\n\tlet ALLOW_SELF_CLOSE_IN_ATTR = true;\n\tlet SAFE_FOR_TEMPLATES = false;\n\tlet SAFE_FOR_XML = true;\n\tlet WHOLE_DOCUMENT = false;\n\tlet SET_CONFIG = false;\n\tlet SET_CONFIG_ALLOWED_TAGS = null;\n\tlet SET_CONFIG_ALLOWED_ATTR = null;\n\tlet FORCE_BODY = false;\n\tlet RETURN_DOM = false;\n\tlet RETURN_DOM_FRAGMENT = false;\n\tlet RETURN_TRUSTED_TYPE = false;\n\tlet SANITIZE_DOM = true;\n\tlet SANITIZE_NAMED_PROPS = false;\n\tconst SANITIZE_NAMED_PROPS_PREFIX = \"user-content-\";\n\tlet KEEP_CONTENT = true;\n\tlet IN_PLACE = false;\n\tlet USE_PROFILES = {};\n\tlet FORBID_CONTENTS = null;\n\tconst DEFAULT_FORBID_CONTENTS = addToSet({}, [\n\t\t\"annotation-xml\",\n\t\t\"audio\",\n\t\t\"colgroup\",\n\t\t\"desc\",\n\t\t\"foreignobject\",\n\t\t\"head\",\n\t\t\"iframe\",\n\t\t\"math\",\n\t\t\"mi\",\n\t\t\"mn\",\n\t\t\"mo\",\n\t\t\"ms\",\n\t\t\"mtext\",\n\t\t\"noembed\",\n\t\t\"noframes\",\n\t\t\"noscript\",\n\t\t\"plaintext\",\n\t\t\"script\",\n\t\t\"selectedcontent\",\n\t\t\"style\",\n\t\t\"svg\",\n\t\t\"template\",\n\t\t\"thead\",\n\t\t\"title\",\n\t\t\"video\",\n\t\t\"xmp\"\n\t]);\n\tlet DATA_URI_TAGS = null;\n\tconst DEFAULT_DATA_URI_TAGS = addToSet({}, [\n\t\t\"audio\",\n\t\t\"video\",\n\t\t\"img\",\n\t\t\"source\",\n\t\t\"image\",\n\t\t\"track\"\n\t]);\n\tlet URI_SAFE_ATTRIBUTES = null;\n\tconst DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, [\n\t\t\"alt\",\n\t\t\"class\",\n\t\t\"for\",\n\t\t\"id\",\n\t\t\"label\",\n\t\t\"name\",\n\t\t\"pattern\",\n\t\t\"placeholder\",\n\t\t\"role\",\n\t\t\"summary\",\n\t\t\"title\",\n\t\t\"value\",\n\t\t\"style\",\n\t\t\"xmlns\"\n\t]);\n\tconst MATHML_NAMESPACE = \"http://www.w3.org/1998/Math/MathML\";\n\tconst SVG_NAMESPACE = \"http://www.w3.org/2000/svg\";\n\tconst HTML_NAMESPACE = \"http://www.w3.org/1999/xhtml\";\n\tlet NAMESPACE = HTML_NAMESPACE;\n\tlet IS_EMPTY_INPUT = false;\n\tlet ALLOWED_NAMESPACES = null;\n\tconst DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [\n\t\tMATHML_NAMESPACE,\n\t\tSVG_NAMESPACE,\n\t\tHTML_NAMESPACE\n\t], stringToString);\n\tconst DEFAULT_MATHML_TEXT_INTEGRATION_POINTS = freeze([\n\t\t\"mi\",\n\t\t\"mo\",\n\t\t\"mn\",\n\t\t\"ms\",\n\t\t\"mtext\"\n\t]);\n\tlet MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS);\n\tconst DEFAULT_HTML_INTEGRATION_POINTS = freeze([\"annotation-xml\"]);\n\tlet HTML_INTEGRATION_POINTS = addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS);\n\tconst COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, [\n\t\t\"title\",\n\t\t\"style\",\n\t\t\"font\",\n\t\t\"a\",\n\t\t\"script\"\n\t]);\n\tlet PARSER_MEDIA_TYPE = null;\n\tconst SUPPORTED_PARSER_MEDIA_TYPES = [\"application/xhtml+xml\", \"text/html\"];\n\tconst DEFAULT_PARSER_MEDIA_TYPE = \"text/html\";\n\tlet transformCaseFunc = null;\n\tlet CONFIG = null;\n\tconst formElement = document.createElement(\"form\");\n\tconst isRegexOrFunction = function isRegexOrFunction(testValue) {\n\t\treturn testValue instanceof RegExp || testValue instanceof Function;\n\t};\n\t/**\n\t* _parseConfig\n\t*\n\t* @param cfg optional config literal\n\t*/\n\tconst _parseConfig = function _parseConfig() {\n\t\tlet cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n\t\tif (CONFIG && CONFIG === cfg) return;\n\t\tif (!cfg || typeof cfg !== \"object\") cfg = {};\n\t\tcfg = clone(cfg);\n\t\tPARSER_MEDIA_TYPE = SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;\n\t\ttransformCaseFunc = PARSER_MEDIA_TYPE === \"application/xhtml+xml\" ? stringToString : stringToLowerCase;\n\t\tALLOWED_TAGS = _resolveSetOption(cfg, \"ALLOWED_TAGS\", DEFAULT_ALLOWED_TAGS, { transform: transformCaseFunc });\n\t\tALLOWED_ATTR = _resolveSetOption(cfg, \"ALLOWED_ATTR\", DEFAULT_ALLOWED_ATTR, { transform: transformCaseFunc });\n\t\tALLOWED_NAMESPACES = _resolveSetOption(cfg, \"ALLOWED_NAMESPACES\", DEFAULT_ALLOWED_NAMESPACES, { transform: stringToString });\n\t\tURI_SAFE_ATTRIBUTES = _resolveSetOption(cfg, \"ADD_URI_SAFE_ATTR\", DEFAULT_URI_SAFE_ATTRIBUTES, {\n\t\t\ttransform: transformCaseFunc,\n\t\t\tbase: DEFAULT_URI_SAFE_ATTRIBUTES\n\t\t});\n\t\tDATA_URI_TAGS = _resolveSetOption(cfg, \"ADD_DATA_URI_TAGS\", DEFAULT_DATA_URI_TAGS, {\n\t\t\ttransform: transformCaseFunc,\n\t\t\tbase: DEFAULT_DATA_URI_TAGS\n\t\t});\n\t\tFORBID_CONTENTS = _resolveSetOption(cfg, \"FORBID_CONTENTS\", DEFAULT_FORBID_CONTENTS, { transform: transformCaseFunc });\n\t\tFORBID_TAGS = _resolveSetOption(cfg, \"FORBID_TAGS\", clone({}), { transform: transformCaseFunc });\n\t\tFORBID_ATTR = _resolveSetOption(cfg, \"FORBID_ATTR\", clone({}), { transform: transformCaseFunc });\n\t\tUSE_PROFILES = objectHasOwnProperty(cfg, \"USE_PROFILES\") ? cfg.USE_PROFILES && typeof cfg.USE_PROFILES === \"object\" ? clone(cfg.USE_PROFILES) : cfg.USE_PROFILES : false;\n\t\tALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;\n\t\tALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;\n\t\tALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false;\n\t\tALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false;\n\t\tSAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false;\n\t\tSAFE_FOR_XML = cfg.SAFE_FOR_XML !== false;\n\t\tWHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false;\n\t\tRETURN_DOM = cfg.RETURN_DOM || false;\n\t\tRETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false;\n\t\tRETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false;\n\t\tFORCE_BODY = cfg.FORCE_BODY || false;\n\t\tSANITIZE_DOM = cfg.SANITIZE_DOM !== false;\n\t\tSANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false;\n\t\tKEEP_CONTENT = cfg.KEEP_CONTENT !== false;\n\t\tIN_PLACE = cfg.IN_PLACE || false;\n\t\tIS_ALLOWED_URI$1 = isRegex(cfg.ALLOWED_URI_REGEXP) ? cfg.ALLOWED_URI_REGEXP : IS_ALLOWED_URI;\n\t\tNAMESPACE = typeof cfg.NAMESPACE === \"string\" ? cfg.NAMESPACE : HTML_NAMESPACE;\n\t\tMATHML_TEXT_INTEGRATION_POINTS = _resolveObjectOption(cfg, \"MATHML_TEXT_INTEGRATION_POINTS\", () => addToSet({}, DEFAULT_MATHML_TEXT_INTEGRATION_POINTS));\n\t\tHTML_INTEGRATION_POINTS = _resolveObjectOption(cfg, \"HTML_INTEGRATION_POINTS\", () => addToSet({}, DEFAULT_HTML_INTEGRATION_POINTS));\n\t\tconst customElementHandling = _resolveObjectOption(cfg, \"CUSTOM_ELEMENT_HANDLING\", () => create(null));\n\t\tCUSTOM_ELEMENT_HANDLING = create(null);\n\t\tif (objectHasOwnProperty(customElementHandling, \"tagNameCheck\") && isRegexOrFunction(customElementHandling.tagNameCheck)) CUSTOM_ELEMENT_HANDLING.tagNameCheck = customElementHandling.tagNameCheck;\n\t\tif (objectHasOwnProperty(customElementHandling, \"attributeNameCheck\") && isRegexOrFunction(customElementHandling.attributeNameCheck)) CUSTOM_ELEMENT_HANDLING.attributeNameCheck = customElementHandling.attributeNameCheck;\n\t\tif (objectHasOwnProperty(customElementHandling, \"allowCustomizedBuiltInElements\") && typeof customElementHandling.allowCustomizedBuiltInElements === \"boolean\") CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = customElementHandling.allowCustomizedBuiltInElements;\n\t\tseal(CUSTOM_ELEMENT_HANDLING);\n\t\tif (SAFE_FOR_TEMPLATES) ALLOW_DATA_ATTR = false;\n\t\tif (RETURN_DOM_FRAGMENT) RETURN_DOM = true;\n\t\tif (USE_PROFILES) {\n\t\t\tALLOWED_TAGS = addToSet({}, text);\n\t\t\tALLOWED_ATTR = create(null);\n\t\t\tif (USE_PROFILES.html === true) {\n\t\t\t\taddToSet(ALLOWED_TAGS, html$1);\n\t\t\t\taddToSet(ALLOWED_ATTR, html);\n\t\t\t}\n\t\t\tif (USE_PROFILES.svg === true) {\n\t\t\t\taddToSet(ALLOWED_TAGS, svg$1);\n\t\t\t\taddToSet(ALLOWED_ATTR, svg);\n\t\t\t\taddToSet(ALLOWED_ATTR, xml);\n\t\t\t}\n\t\t\tif (USE_PROFILES.svgFilters === true) {\n\t\t\t\taddToSet(ALLOWED_TAGS, svgFilters);\n\t\t\t\taddToSet(ALLOWED_ATTR, svg);\n\t\t\t\taddToSet(ALLOWED_ATTR, xml);\n\t\t\t}\n\t\t\tif (USE_PROFILES.mathMl === true) {\n\t\t\t\taddToSet(ALLOWED_TAGS, mathMl$1);\n\t\t\t\taddToSet(ALLOWED_ATTR, mathMl);\n\t\t\t\taddToSet(ALLOWED_ATTR, xml);\n\t\t\t}\n\t\t}\n\t\tEXTRA_ELEMENT_HANDLING.tagCheck = null;\n\t\tEXTRA_ELEMENT_HANDLING.attributeCheck = null;\n\t\tif (objectHasOwnProperty(cfg, \"ADD_TAGS\")) {\n\t\t\tif (typeof cfg.ADD_TAGS === \"function\") EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;\n\t\t\telse if (arrayIsArray(cfg.ADD_TAGS)) {\n\t\t\t\tif (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) ALLOWED_TAGS = clone(ALLOWED_TAGS);\n\t\t\t\taddToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n\t\t\t}\n\t\t}\n\t\tif (objectHasOwnProperty(cfg, \"ADD_ATTR\")) {\n\t\t\tif (typeof cfg.ADD_ATTR === \"function\") EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;\n\t\t\telse if (arrayIsArray(cfg.ADD_ATTR)) {\n\t\t\t\tif (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) ALLOWED_ATTR = clone(ALLOWED_ATTR);\n\t\t\t\taddToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n\t\t\t}\n\t\t}\n\t\tif (objectHasOwnProperty(cfg, \"ADD_FORBID_CONTENTS\") && arrayIsArray(cfg.ADD_FORBID_CONTENTS)) {\n\t\t\tif (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) FORBID_CONTENTS = clone(FORBID_CONTENTS);\n\t\t\taddToSet(FORBID_CONTENTS, cfg.ADD_FORBID_CONTENTS, transformCaseFunc);\n\t\t}\n\t\tif (KEEP_CONTENT) ALLOWED_TAGS[\"#text\"] = true;\n\t\tif (WHOLE_DOCUMENT) addToSet(ALLOWED_TAGS, [\n\t\t\t\"html\",\n\t\t\t\"head\",\n\t\t\t\"body\"\n\t\t]);\n\t\tif (ALLOWED_TAGS.table) {\n\t\t\taddToSet(ALLOWED_TAGS, [\"tbody\"]);\n\t\t\tdelete FORBID_TAGS.tbody;\n\t\t}\n\t\tif (cfg.TRUSTED_TYPES_POLICY) {\n\t\t\tif (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== \"function\") throw typeErrorCreate(\"TRUSTED_TYPES_POLICY configuration option must provide a \\\"createHTML\\\" hook.\");\n\t\t\tif (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== \"function\") throw typeErrorCreate(\"TRUSTED_TYPES_POLICY configuration option must provide a \\\"createScriptURL\\\" hook.\");\n\t\t\tconst previousTrustedTypesPolicy = trustedTypesPolicy;\n\t\t\ttrustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;\n\t\t\ttry {\n\t\t\t\temptyHTML = _createTrustedHTML(\"\");\n\t\t\t} catch (error) {\n\t\t\t\ttrustedTypesPolicy = previousTrustedTypesPolicy;\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t} else if (cfg.TRUSTED_TYPES_POLICY === null) {\n\t\t\ttrustedTypesPolicy = void 0;\n\t\t\temptyHTML = \"\";\n\t\t} else {\n\t\t\tif (trustedTypesPolicy === void 0) trustedTypesPolicy = _getDefaultTrustedTypesPolicy();\n\t\t\tif (trustedTypesPolicy && typeof emptyHTML === \"string\") emptyHTML = _createTrustedHTML(\"\");\n\t\t}\n\t\tif (freeze) freeze(cfg);\n\t\tCONFIG = cfg;\n\t};\n\tconst ALL_SVG_TAGS = addToSet({}, [\n\t\t...svg$1,\n\t\t...svgFilters,\n\t\t...svgDisallowed\n\t]);\n\tconst ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);\n\t/**\n\t* Namespace rules for an element in the SVG namespace.\n\t*\n\t* @param tagName the element's lowercase tag name\n\t* @param parent the (possibly simulated) parent node\n\t* @param parentTagName the parent's lowercase tag name\n\t* @returns true if a spec-compliant parser could produce this element\n\t*/\n\tconst _checkSvgNamespace = function _checkSvgNamespace(tagName, parent, parentTagName) {\n\t\tif (parent.namespaceURI === HTML_NAMESPACE) return tagName === \"svg\";\n\t\tif (parent.namespaceURI === MATHML_NAMESPACE) return tagName === \"svg\" && (parentTagName === \"annotation-xml\" || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);\n\t\treturn Boolean(ALL_SVG_TAGS[tagName]);\n\t};\n\t/**\n\t* Namespace rules for an element in the MathML namespace.\n\t*\n\t* @param tagName the element's lowercase tag name\n\t* @param parent the (possibly simulated) parent node\n\t* @param parentTagName the parent's lowercase tag name\n\t* @returns true if a spec-compliant parser could produce this element\n\t*/\n\tconst _checkMathMlNamespace = function _checkMathMlNamespace(tagName, parent, parentTagName) {\n\t\tif (parent.namespaceURI === HTML_NAMESPACE) return tagName === \"math\";\n\t\tif (parent.namespaceURI === SVG_NAMESPACE) return tagName === \"math\" && HTML_INTEGRATION_POINTS[parentTagName];\n\t\treturn Boolean(ALL_MATHML_TAGS[tagName]);\n\t};\n\t/**\n\t* Namespace rules for an element in the HTML namespace.\n\t*\n\t* @param tagName the element's lowercase tag name\n\t* @param parent the (possibly simulated) parent node\n\t* @param parentTagName the parent's lowercase tag name\n\t* @returns true if a spec-compliant parser could produce this element\n\t*/\n\tconst _checkHtmlNamespace = function _checkHtmlNamespace(tagName, parent, parentTagName) {\n\t\tif (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) return false;\n\t\tif (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) return false;\n\t\treturn !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);\n\t};\n\t/**\n\t* @param element a DOM element whose namespace is being checked\n\t* @returns Return false if the element has a\n\t* namespace that a spec-compliant parser would never\n\t* return. Return true otherwise.\n\t*/\n\tconst _checkValidNamespace = function _checkValidNamespace(element) {\n\t\tlet parent = getParentNode(element);\n\t\tif (!parent || !parent.tagName) parent = {\n\t\t\tnamespaceURI: NAMESPACE,\n\t\t\ttagName: \"template\"\n\t\t};\n\t\tconst tagName = stringToLowerCase(element.tagName);\n\t\tconst parentTagName = stringToLowerCase(parent.tagName);\n\t\tif (!ALLOWED_NAMESPACES[element.namespaceURI]) return false;\n\t\tif (element.namespaceURI === SVG_NAMESPACE) return _checkSvgNamespace(tagName, parent, parentTagName);\n\t\tif (element.namespaceURI === MATHML_NAMESPACE) return _checkMathMlNamespace(tagName, parent, parentTagName);\n\t\tif (element.namespaceURI === HTML_NAMESPACE) return _checkHtmlNamespace(tagName, parent, parentTagName);\n\t\tif (PARSER_MEDIA_TYPE === \"application/xhtml+xml\" && ALLOWED_NAMESPACES[element.namespaceURI]) return true;\n\t\treturn false;\n\t};\n\t/**\n\t* _forceRemove\n\t*\n\t* @param node a DOM node\n\t*/\n\tconst _forceRemove = function _forceRemove(node) {\n\t\tarrayPush(DOMPurify.removed, { element: node });\n\t\ttry {\n\t\t\tgetParentNode(node).removeChild(node);\n\t\t} catch (_) {\n\t\t\tremove(node);\n\t\t\tif (!getParentNode(node)) throw typeErrorCreate(\"a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place\");\n\t\t}\n\t};\n\t/**\n\t* _stripAttributeNode\n\t*\n\t* Remove a single Attr node case/namespace-exactly on an attribute-teardown\n\t* path. Name-based removeAttribute() ASCII-lowercases its lookup key for an\n\t* HTML element in an HTML document and so silently misses a case-preserved\n\t* handler (e.g. `ONERROR` off an XML/XHTML import) - the same defect\n\t* _removeAttribute() was fixed for, which a name-based call would reintroduce\n\t* on these IN_PLACE teardown paths. Unlike _removeAttribute this does not\n\t* record into DOMPurify.removed: the neutralize passes intentionally do not\n\t* book-keep. A clobbered/detached node falls back to best-effort name-based\n\t* removal.\n\t*\n\t* @param element the element to strip the attribute from\n\t* @param attribute the Attr node to remove\n\t* @param name the attribute's name, for the fallback path\n\t*/\n\tconst _stripAttributeNode = function _stripAttributeNode(element, attribute, name) {\n\t\ttry {\n\t\t\tremoveAttributeNode(element, attribute);\n\t\t} catch (_) {\n\t\t\ttry {\n\t\t\t\telement.removeAttribute(name);\n\t\t\t} catch (_) {}\n\t\t}\n\t};\n\t/**\n\t* _neutralizeRoot\n\t*\n\t* Fail-closed teardown of an in-place root after the sanitize walk aborts\n\t* (campaign-3 F2). An internal throw mid-walk — e.g. a page-registered\n\t* custom element's reaction detaches a node so `_forceRemove`'s deliberate\n\t* parentless guard throws, or any other re-entrant engine mutation — would\n\t* otherwise leave the caller's *live* tree half-sanitized, with everything\n\t* after the abort point still carrying its handlers. There is no safe way\n\t* to resume the walk (the tree mutated under us), so we strip the root bare:\n\t* remove every child and every attribute, then let the caller's catch see\n\t* the original error. Clobber-safe (cached `remove`/`childNodes`/`attributes`\n\t* getters; the root was already clobber-pre-flighted at the IN_PLACE entry).\n\t*\n\t* @param root the in-place root to empty\n\t*/\n\tconst _neutralizeRoot = function _neutralizeRoot(root) {\n\t\t_neutralizeSubtree(root);\n\t\tconst childNodes = getChildNodes(root);\n\t\tif (childNodes) {\n\t\t\tconst snapshot = [];\n\t\t\tarrayForEach(childNodes, (child) => {\n\t\t\t\tarrayPush(snapshot, child);\n\t\t\t});\n\t\t\tarrayForEach(snapshot, (child) => {\n\t\t\t\ttry {\n\t\t\t\t\tremove(child);\n\t\t\t\t} catch (_) {}\n\t\t\t});\n\t\t}\n\t\tconst attributes = getAttributes(root);\n\t\tif (attributes) for (let i = attributes.length - 1; i >= 0; --i) {\n\t\t\tconst attribute = attributes[i];\n\t\t\tconst name = attribute && attribute.name;\n\t\t\tif (typeof name === \"string\") _stripAttributeNode(root, attribute, name);\n\t\t}\n\t};\n\t/**\n\t* _removeAttribute\n\t*\n\t* Name-based getAttributeNode()/removeAttribute() ASCII-lowercase their\n\t* lookup key for HTML elements in an HTML document, so they silently miss an\n\t* attribute whose stored qualified name still contains uppercase ASCII\n\t* letters. That happens when the node came from a case-preserving source\n\t* (an XML/XHTML document imported via importNode(), or createAttributeNS()),\n\t* where e.g. `ONERROR` survives the walk: the policy check lowercases to\n\t* `onerror` and rejects it, but `removeAttribute('ONERROR')` looks up\n\t* `onerror` and finds nothing. Remove the exact Attr node instead, which is\n\t* case- and namespace-exact, and fall back to name-based removal only when\n\t* the caller could not supply the node.\n\t*\n\t* @param name an Attribute name\n\t* @param element a DOM node\n\t* @param attr the exact Attr node to remove, when the caller has it\n\t*/\n\tconst _removeAttribute = function _removeAttribute(name, element, attr) {\n\t\tif (!attr) try {\n\t\t\tattr = element.getAttributeNode(name);\n\t\t} catch (_) {\n\t\t\tattr = null;\n\t\t}\n\t\tarrayPush(DOMPurify.removed, {\n\t\t\tattribute: attr || null,\n\t\t\tfrom: element\n\t\t});\n\t\ttry {\n\t\t\tif (attr) removeAttributeNode(element, attr);\n\t\t\telse element.removeAttribute(name);\n\t\t} catch (_) {\n\t\t\ttry {\n\t\t\t\telement.removeAttribute(name);\n\t\t\t} catch (_) {}\n\t\t}\n\t\tif (name === \"is\") {\n\t\t\tif (RETURN_DOM || RETURN_DOM_FRAGMENT) try {\n\t\t\t\t_forceRemove(element);\n\t\t\t} catch (_) {}\n\t\t\telse try {\n\t\t\t\telement.setAttribute(name, \"\");\n\t\t\t} catch (_) {}\n\t\t}\n\t};\n\t/**\n\t* _stripDisallowedAttributes\n\t*\n\t* Removes every attribute the active configuration does not allow from a\n\t* single element, using the same allowlist as the main attribute pass (so\n\t* `on*` handlers go, but no `/^on/` blocklist is introduced). Used only to\n\t* neutralise nodes that are being discarded from an in-place tree.\n\t*\n\t* @param element the element to strip\n\t*/\n\tconst _stripDisallowedAttributes = function _stripDisallowedAttributes(element) {\n\t\tconst attributes = getAttributes(element);\n\t\tif (!attributes) return;\n\t\tfor (let i = attributes.length - 1; i >= 0; --i) {\n\t\t\tconst attribute = attributes[i];\n\t\t\tconst name = attribute && attribute.name;\n\t\t\tif (typeof name !== \"string\" || ALLOWED_ATTR[transformCaseFunc(name)]) continue;\n\t\t\t_stripAttributeNode(element, attribute, name);\n\t\t}\n\t};\n\t/**\n\t* _neutralizeSubtree\n\t*\n\t* Completes the audit-5 F1 fix across every removal path. The KEEP_CONTENT\n\t* move-hoist neutralises only disallowed-tag removals; clobber, mXSS-canary,\n\t* namespace, comment, processing-instruction and KEEP_CONTENT:false removals\n\t* all drop their subtree wholesale via `_forceRemove`. On the IN_PLACE path\n\t* those dropped nodes are detached from the caller's LIVE tree but a\n\t* handler-bearing original among them (an ``/`