nuxt-email-renderer 2.5.2 → 2.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/5b5e3b09-8a7a-4a77-9d09-6c0e34f8583b.json +1 -0
- package/dist/client/_nuxt/{BuoEiOhd.js → osikNjd9.js} +5 -5
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +83 -30
- package/dist/runtime/components/html/EHtml.d.vue.ts +1 -1
- package/dist/runtime/components/html/EHtml.vue.d.ts +1 -1
- package/dist/runtime/server/api/emails/render.post.js +1 -2
- package/dist/runtime/server/utils/render.d.ts +0 -6
- package/dist/runtime/server/utils/render.js +20 -54
- package/package.json +1 -1
- package/dist/client/_nuxt/builds/meta/3e585ddf-15c5-443a-9fbb-c4cbf21d2c78.json +0 -1
|
@@ -12,11 +12,11 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DxNHbxmM.js","./Cnne
|
|
|
12
12
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
13
13
|
* @license MIT
|
|
14
14
|
**/function Or(e,t,n,r){try{return r?e(...r):e()}catch(o){er(o,t,n)}}function Mt(e,t,n,r){if(ae(e)){const o=Or(e,t,n,r);return o&&xs(o)&&o.catch(i=>{er(i,t,n)}),o}if(ne(e)){const o=[];for(let i=0;i<e.length;i++)o.push(Mt(e[i],t,n,r));return o}}function er(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||Ee;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(i){Gt(),Or(i,null,10,[e,l,u]),Wt();return}}tp(e,n,o,r,s)}function tp(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const it=[];let Ot=-1;const jn=[];let Xt=null,Ln=0;const kc=Promise.resolve();let go=null;function Rt(e){const t=go||kc;return e?t.then(this?e.bind(this):e):t}function np(e){let t=Ot+1,n=it.length;for(;t<n;){const r=t+n>>>1,o=it[r],i=Sr(o);i<e||i===e&&o.flags&2?t=r+1:n=r}return t}function Bs(e){if(!(e.flags&1)){const t=Sr(e),n=it[it.length-1];!n||!(e.flags&2)&&t>=Sr(n)?it.push(e):it.splice(np(t),0,e),e.flags|=1,xc()}}function xc(){go||(go=kc.then(Oc))}function Wi(e){ne(e)?jn.push(...e):Xt&&e.id===-1?Xt.splice(Ln+1,0,e):e.flags&1||(jn.push(e),e.flags|=1),xc()}function Ra(e,t,n=Ot+1){for(;n<it.length;n++){const r=it[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;it.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function _o(e){if(jn.length){const t=[...new Set(jn)].sort((n,r)=>Sr(n)-Sr(r));if(jn.length=0,Xt){Xt.push(...t);return}for(Xt=t,Ln=0;Ln<Xt.length;Ln++){const n=Xt[Ln];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Xt=null,Ln=0}}const Sr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Oc(e){try{for(Ot=0;Ot<it.length;Ot++){const t=it[Ot];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Or(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ot<it.length;Ot++){const t=it[Ot];t&&(t.flags&=-2)}Ot=-1,it.length=0,_o(),go=null,(it.length||jn.length)&&Oc()}}let He=null,Ic=null;function yo(e){const t=He;return He=e,Ic=e&&e.type.__scopeId||null,t}function Pe(e,t=He,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&wo(-1);const i=yo(t);let s;try{s=e(...o)}finally{yo(i),r._d&&wo(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Zo(e,t){if(He===null)return e;const n=ri(He),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,s,a,l=Ee]=t[o];i&&(ae(i)&&(i={mounted:i,updated:i}),i.deep&&Ht(s),r.push({dir:i,instance:n,value:s,oldValue:void 0,arg:a,modifiers:l}))}return e}function It(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let s=0;s<o.length;s++){const a=o[s];i&&(a.oldValue=i[s].value);let l=a.dir[r];l&&(Gt(),Mt(l,n,8,[e.el,a,e,t]),Wt())}}const Dc=Symbol("_vte"),rp=e=>e.__isTeleport,mr=e=>e&&(e.disabled||e.disabled===""),Aa=e=>e&&(e.defer||e.defer===""),Pa=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ca=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,qi=(e,t)=>{const n=e&&e.to;return ke(n)?t?t(n):null:n},Nc={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,s,a,l,u){const{mc:c,pc:f,pbc:p,o:{insert:d,querySelector:h,createText:_,createComment:v}}=u,b=mr(t.props);let{shapeFlag:E,children:m,dynamicChildren:w}=t;if(e==null){const T=t.el=_(""),k=t.anchor=_("");d(T,n,r),d(k,n,r);const $=(W,z)=>{E&16&&(o&&o.isCE&&(o.ce._teleportTarget=W),c(m,W,z,o,i,s,a,l))},K=()=>{const W=t.target=qi(t.props,h),z=Mc(W,t,_,d);W&&(s!=="svg"&&Pa(W)?s="svg":s!=="mathml"&&Ca(W)&&(s="mathml"),b||($(W,z),no(t,!1)))};b&&($(n,k),no(t,!0)),Aa(t.props)?(t.el.__isMounted=!1,ot(()=>{K(),delete t.el.__isMounted},i)):K()}else{if(Aa(t.props)&&e.el.__isMounted===!1){ot(()=>{Nc.process(e,t,n,r,o,i,s,a,l,u)},i);return}t.el=e.el,t.targetStart=e.targetStart;const T=t.anchor=e.anchor,k=t.target=e.target,$=t.targetAnchor=e.targetAnchor,K=mr(e.props),W=K?n:k,z=K?T:$;if(s==="svg"||Pa(k)?s="svg":(s==="mathml"||Ca(k))&&(s="mathml"),w?(p(e.dynamicChildren,w,W,o,i,s,a),Ks(e,t,!0)):l||f(e,t,W,z,o,i,s,a,!1),b)K?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Br(t,n,T,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const le=t.target=qi(t.props,h);le&&Br(t,le,null,u,0)}else K&&Br(t,k,$,u,1);no(t,b)}},remove(e,t,n,{um:r,o:{remove:o}},i){const{shapeFlag:s,children:a,anchor:l,targetStart:u,targetAnchor:c,target:f,props:p}=e;if(f&&(o(u),o(c)),i&&o(l),s&16){const d=i||!mr(p);for(let h=0;h<a.length;h++){const _=a[h];r(_,t,n,d,!!_.dynamicChildren)}}},move:Br,hydrate:op};function Br(e,t,n,{o:{insert:r},m:o},i=2){i===0&&r(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:l,children:u,props:c}=e,f=i===2;if(f&&r(s,t,n),(!f||mr(c))&&l&16)for(let p=0;p<u.length;p++)o(u[p],t,n,2);f&&r(a,t,n)}function op(e,t,n,r,o,i,{o:{nextSibling:s,parentNode:a,querySelector:l,insert:u,createText:c}},f){function p(_,v,b,E){v.anchor=f(s(_),v,a(_),n,r,o,i),v.targetStart=b,v.targetAnchor=E}const d=t.target=qi(t.props,l),h=mr(t.props);if(d){const _=d._lpa||d.firstChild;if(t.shapeFlag&16)if(h)p(e,t,_,_&&s(_));else{t.anchor=s(e);let v=_;for(;v;){if(v&&v.nodeType===8){if(v.data==="teleport start anchor")t.targetStart=v;else if(v.data==="teleport anchor"){t.targetAnchor=v,d._lpa=t.targetAnchor&&s(t.targetAnchor);break}}v=s(v)}t.targetAnchor||Mc(d,t,c,u),f(_&&s(_),t,d,n,r,o,i)}no(t,h)}else h&&t.shapeFlag&16&&p(e,t,e,s(e));return t.anchor&&s(t.anchor)}const ip=Nc;function no(e,t){const n=e.ctx;if(n&&n.ut){let r,o;for(t?(r=e.el,o=e.anchor):(r=e.targetStart,o=e.targetAnchor);r&&r!==o;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Mc(e,t,n,r){const o=t.targetStart=n(""),i=t.targetAnchor=n("");return o[Dc]=i,e&&(r(o,e),r(i,e)),i}const sp=Symbol("_leaveCb");function Fs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Fs(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function gt(e,t){return ae(e)?et({name:e.name},t,{setup:e}):e}function Hs(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const vo=new WeakMap;function Bn(e,t,n,r,o=!1){if(ne(e)){e.forEach((h,_)=>Bn(h,t&&(ne(t)?t[_]:t),n,r,o));return}if(pn(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Bn(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?ri(r.component):r.el,s=o?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===Ee?a.refs={}:a.refs,f=a.setupState,p=ye(f),d=f===Ee?oc:h=>ve(p,h);if(u!=null&&u!==l){if(La(t),ke(u))c[u]=null,d(u)&&(f[u]=null);else if(we(u)){u.value=null;const h=t;h.k&&(c[h.k]=null)}}if(ae(l))Or(l,a,12,[s,c]);else{const h=ke(l),_=we(l);if(h||_){const v=()=>{if(e.f){const b=h?d(l)?f[l]:c[l]:l.value;if(o)ne(b)&&ks(b,i);else if(ne(b))b.includes(i)||b.push(i);else if(h)c[l]=[i],d(l)&&(f[l]=c[l]);else{const E=[i];l.value=E,e.k&&(c[e.k]=E)}}else h?(c[l]=s,d(l)&&(f[l]=s)):_&&(l.value=s,e.k&&(c[e.k]=s))};if(s){const b=()=>{v(),vo.delete(e)};b.id=-1,vo.set(e,b),ot(b,n)}else La(e),v()}}}function La(e){const t=vo.get(e);t&&(t.flags|=8,vo.delete(e))}let ka=!1;const Pn=()=>{ka||(console.error("Hydration completed but contains mismatches."),ka=!0)},ap=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",lp=e=>e.namespaceURI.includes("MathML"),Fr=e=>{if(e.nodeType===1){if(ap(e))return"svg";if(lp(e))return"mathml"}},On=e=>e.nodeType===8;function cp(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:i,parentNode:s,remove:a,insert:l,createComment:u}}=e,c=(m,w)=>{if(!w.hasChildNodes()){n(null,m,w),_o(),w._vnode=m;return}f(w.firstChild,m,null,null,null),_o(),w._vnode=m},f=(m,w,T,k,$,K=!1)=>{K=K||!!w.dynamicChildren;const W=On(m)&&m.data==="[",z=()=>_(m,w,T,k,$,W),{type:le,ref:ie,shapeFlag:Y,patchFlag:R}=w;let A=m.nodeType;w.el=m,R===-2&&(K=!1,w.dynamicChildren=null);let C=null;switch(le){case mn:A!==3?w.children===""?(l(w.el=o(""),s(m),m),C=m):C=z():(m.data!==w.children&&(Pn(),m.data=w.children),C=i(m));break;case Et:E(m)?(C=i(m),b(w.el=m.content.firstChild,m,T)):A!==8||W?C=z():C=i(m);break;case ro:if(W&&(m=i(m),A=m.nodeType),A===1||A===3){C=m;const G=!w.children.length;for(let I=0;I<w.staticCount;I++)G&&(w.children+=C.nodeType===1?C.outerHTML:C.data),I===w.staticCount-1&&(w.anchor=C),C=i(C);return W?i(C):C}else z();break;case je:W?C=h(m,w,T,k,$,K):C=z();break;default:if(Y&1)(A!==1||w.type.toLowerCase()!==m.tagName.toLowerCase())&&!E(m)?C=z():C=p(m,w,T,k,$,K);else if(Y&6){w.slotScopeIds=$;const G=s(m);if(W?C=v(m):On(m)&&m.data==="teleport start"?C=v(m,m.data,"teleport end"):C=i(m),t(w,G,null,T,k,Fr(G),K),pn(w)&&!w.type.__asyncResolved){let I;W?(I=oe(je),I.anchor=C?C.previousSibling:G.lastChild):I=m.nodeType===3?st(""):oe("div"),I.el=m,w.component.subTree=I}}else Y&64?A!==8?C=z():C=w.type.hydrate(m,w,T,k,$,K,e,d):Y&128&&(C=w.type.hydrate(m,w,T,k,Fr(s(m)),$,K,e,f))}return ie!=null&&Bn(ie,null,k,w),C},p=(m,w,T,k,$,K)=>{K=K||!!w.dynamicChildren;const{type:W,props:z,patchFlag:le,shapeFlag:ie,dirs:Y,transition:R}=w,A=W==="input"||W==="option";if(A||le!==-1){Y&&It(w,null,T,"created");let C=!1;if(E(m)){C=su(null,R)&&T&&T.vnode.props&&T.vnode.props.appear;const I=m.content.firstChild;if(C){const ee=I.getAttribute("class");ee&&(I.$cls=ee),R.beforeEnter(I)}b(I,m,T),w.el=m=I}if(ie&16&&!(z&&(z.innerHTML||z.textContent))){let I=d(m.firstChild,w,m,T,k,$,K);for(;I;){Hr(m,1)||Pn();const ee=I;I=I.nextSibling,a(ee)}}else if(ie&8){let I=w.children;I[0]===`
|
|
15
|
-
`&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(I=I.slice(1)),m.textContent!==I&&(Hr(m,0)||Pn(),m.textContent=w.children)}if(z){if(A||!K||le&48){const I=m.tagName.includes("-");for(const ee in z)(A&&(ee.endsWith("value")||ee==="indeterminate")||Lr(ee)&&!$n(ee)||ee[0]==="."||I)&&r(m,ee,null,z[ee],void 0,T)}else if(z.onClick)r(m,"onClick",null,z.onClick,void 0,T);else if(le&4&&dn(z.style))for(const I in z.style)z.style[I]}let G;(G=z&&z.onVnodeBeforeMount)&&yt(G,T,w),Y&&It(w,null,T,"beforeMount"),((G=z&&z.onVnodeMounted)||Y||C)&&pu(()=>{G&&yt(G,T,w),C&&R.enter(m),Y&&It(w,null,T,"mounted")},k)}return m.nextSibling},d=(m,w,T,k,$,K,W)=>{W=W||!!w.dynamicChildren;const z=w.children,le=z.length;for(let ie=0;ie<le;ie++){const Y=W?z[ie]:z[ie]=mt(z[ie]),R=Y.type===mn;m?(R&&!W&&ie+1<le&&mt(z[ie+1]).type===mn&&(l(o(m.data.slice(Y.children.length)),T,i(m)),m.data=Y.children),m=f(m,Y,k,$,K,W)):R&&!Y.children?l(Y.el=o(""),T):(Hr(T,1)||Pn(),n(null,Y,T,null,k,$,Fr(T),K))}return m},h=(m,w,T,k,$,K)=>{const{slotScopeIds:W}=w;W&&($=$?$.concat(W):W);const z=s(m),le=d(i(m),w,z,T,k,$,K);return le&&On(le)&&le.data==="]"?i(w.anchor=le):(Pn(),l(w.anchor=u("]"),z,le),le)},_=(m,w,T,k,$,K)=>{if(Hr(m.parentElement,1)||Pn(),w.el=null,K){const le=v(m);for(;;){const ie=i(m);if(ie&&ie!==le)a(ie);else break}}const W=i(m),z=s(m);return a(m),n(null,w,z,W,T,k,Fr(z),$),T&&(T.vnode.el=w.el,ni(T,w.el)),W},v=(m,w="[",T="]")=>{let k=0;for(;m;)if(m=i(m),m&&On(m)&&(m.data===w&&k++,m.data===T)){if(k===0)return i(m);k--}return m},b=(m,w,T)=>{const k=w.parentNode;k&&k.replaceChild(m,w);let $=T;for(;$;)$.vnode.el===w&&($.vnode.el=$.subTree.el=m),$=$.parent},E=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[c,f]}const xa="data-allow-mismatch",up={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Hr(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(xa);)e=e.parentElement;const n=e&&e.getAttribute(xa);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(up[t])}}Ko().requestIdleCallback;Ko().cancelIdleCallback;function fp(e,t){if(On(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(On(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const pn=e=>!!e.type.__asyncLoader;function Oa(e){ae(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,hydrate:i,timeout:s,suspensible:a=!0,onError:l}=e;let u=null,c,f=0;const p=()=>(f++,u=null,d()),d=()=>{let h;return u||(h=u=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),l)return new Promise((v,b)=>{l(_,()=>v(p()),()=>b(_),f+1)});throw _}).then(_=>h!==u&&u?u:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),c=_,_)))};return gt({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(h,_,v){let b=!1;(_.bu||(_.bu=[])).push(()=>b=!0);const E=()=>{b||v()},m=i?()=>{const w=i(E,T=>fp(h,T));w&&(_.bum||(_.bum=[])).push(w)}:E;c?m():d().then(()=>!_.isUnmounted&&m())},get __asyncResolved(){return c},setup(){const h=Fe;if(Hs(h),c)return()=>bi(c,h);const _=m=>{u=null,er(m,h,13,!r)};if(a&&h.suspense||Jn)return d().then(m=>()=>bi(m,h)).catch(m=>(_(m),()=>r?oe(r,{error:m}):null));const v=_e(!1),b=_e(),E=_e(!!o);return o&&setTimeout(()=>{E.value=!1},o),s!=null&&setTimeout(()=>{if(!v.value&&!b.value){const m=new Error(`Async component timed out after ${s}ms.`);_(m),b.value=m}},s),d().then(()=>{v.value=!0,h.parent&&Us(h.parent.vnode)&&h.parent.update()}).catch(m=>{_(m),b.value=m}),()=>{if(v.value&&c)return bi(c,h);if(b.value&&r)return oe(r,{error:b.value});if(n&&!E.value)return oe(n)}}})}function bi(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,s=oe(e,r,o);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const Us=e=>e.type.__isKeepAlive;function Vc(e,t){jc(e,"a",t)}function $c(e,t){jc(e,"da",t)}function jc(e,t,n=Fe){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ei(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Us(o.parent.vnode)&&dp(r,t,n,o),o=o.parent}}function dp(e,t,n,r){const o=ei(t,e,r,!0);zs(()=>{ks(r[t],o)},n)}function ei(e,t,n=Fe,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{Gt();const a=vn(n),l=Mt(t,n,e,s);return a(),Wt(),l});return r?o.unshift(i):o.push(i),i}}const Kt=e=>(t,n=Fe)=>{(!Jn||e==="sp")&&ei(e,(...r)=>t(...r),n)},Bc=Kt("bm"),tr=Kt("m"),pp=Kt("bu"),hp=Kt("u"),Ir=Kt("bum"),zs=Kt("um"),mp=Kt("sp"),gp=Kt("rtg"),_p=Kt("rtc");function Fc(e,t=Fe){ei("ec",e,t)}const Hc="components";function Ia(e,t){return Gc(Hc,e,!0,t)||e}const Uc=Symbol.for("v-ndc");function zc(e){return ke(e)?Gc(Hc,e,!1)||e:e||Uc}function Gc(e,t,n=!0,r=!1){const o=He||Fe;if(o){const i=o.type;{const a=lh(i,!1);if(a&&(a===t||a===wt(t)||a===qo(wt(t))))return i}const s=Da(o[e]||i[e],t)||Da(o.appContext[e],t);return!s&&r?i:s}}function Da(e,t){return e&&(e[t]||e[wt(t)]||e[qo(wt(t))])}function Wc(e,t,n,r){let o;const i=n,s=ne(e);if(s||ke(e)){const a=s&&dn(e);let l=!1,u=!1;a&&(l=!vt(e),u=qt(e),e=Xo(e)),o=new Array(e.length);for(let c=0,f=e.length;c<f;c++)o[c]=t(l?u?ho(Be(e[c])):Be(e[c]):e[c],c,void 0,i)}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,i)}else if(Se(e))if(e[Symbol.iterator])o=Array.from(e,(a,l)=>t(a,l,void 0,i));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];o[l]=t(e[c],c,l,i)}}else o=[];return o}function tt(e,t,n={},r,o){if(He.ce||He.parent&&pn(He.parent)&&He.parent.ce)return t!=="default"&&(n.name=t),Q(),xe(je,null,[oe("slot",n,r&&r())],64);let i=e[t];i&&i._c&&(i._d=!1),Q();const s=i&&qc(i(n)),a=n.key||s&&s.key,l=xe(je,{key:(a&&!At(a)?a:`_${t}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function qc(e){return e.some(t=>qn(t)?!(t.type===Et||t.type===je&&!qc(t.children)):!0)?e:null}const Ki=e=>e?yu(e)?ri(e):Ki(e.parent):null,gr=et(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=>Ki(e.parent),$root:e=>Ki(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Jc(e),$forceUpdate:e=>e.f||(e.f=()=>{Bs(e.update)}),$nextTick:e=>e.n||(e.n=Rt.bind(e.proxy)),$watch:e=>Bp.bind(e)}),wi=(e,t)=>e!==Ee&&!e.__isScriptSetup&&ve(e,t),yp={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const d=s[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(wi(r,t))return s[t]=1,r[t];if(o!==Ee&&ve(o,t))return s[t]=2,o[t];if((u=e.propsOptions[0])&&ve(u,t))return s[t]=3,i[t];if(n!==Ee&&ve(n,t))return s[t]=4,n[t];Ji&&(s[t]=0)}}const c=gr[t];let f,p;if(c)return t==="$attrs"&&Ye(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==Ee&&ve(n,t))return s[t]=4,n[t];if(p=l.config.globalProperties,ve(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return wi(o,t)?(o[t]=n,!0):r!==Ee&&ve(r,t)?(r[t]=n,!0):ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i,type:s}},a){let l,u;return!!(n[a]||e!==Ee&&a[0]!=="$"&&ve(e,a)||wi(t,a)||(l=i[0])&&ve(l,a)||ve(r,a)||ve(gr,a)||ve(o.config.globalProperties,a)||(u=s.__cssModules)&&u[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ve(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function vp(){return bp().slots}function bp(e){const t=Ct();return t.setupContext||(t.setupContext=bu(t))}function Na(e){return ne(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function wp(e){const t=Ct();let n=e();return es(),xs(n)&&(n=n.catch(r=>{throw vn(t),r})),[n,()=>vn(t)]}let Ji=!0;function Ep(e){const t=Jc(e),n=e.proxy,r=e.ctx;Ji=!1,t.beforeCreate&&Ma(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:p,beforeUpdate:d,updated:h,activated:_,deactivated:v,beforeDestroy:b,beforeUnmount:E,destroyed:m,unmounted:w,render:T,renderTracked:k,renderTriggered:$,errorCaptured:K,serverPrefetch:W,expose:z,inheritAttrs:le,components:ie,directives:Y,filters:R}=t;if(u&&Sp(u,r,null),s)for(const G in s){const I=s[G];ae(I)&&(r[G]=I.bind(n))}if(o){const G=o.call(n,n);Se(G)&&(e.data=Nt(G))}if(Ji=!0,i)for(const G in i){const I=i[G],ee=ae(I)?I.bind(n,n):ae(I.get)?I.get.bind(n,n):Dt,se=!ae(I)&&ae(I.set)?I.set.bind(n):Dt,de=pe({get:ee,set:se});Object.defineProperty(r,G,{enumerable:!0,configurable:!0,get:()=>de.value,set:ue=>de.value=ue})}if(a)for(const G in a)Kc(a[G],r,n,G);if(l){const G=ae(l)?l.call(n):l;Reflect.ownKeys(G).forEach(I=>{jt(I,G[I])})}c&&Ma(c,e,"c");function C(G,I){ne(I)?I.forEach(ee=>G(ee.bind(n))):I&&G(I.bind(n))}if(C(Bc,f),C(tr,p),C(pp,d),C(hp,h),C(Vc,_),C($c,v),C(Fc,K),C(_p,k),C(gp,$),C(Ir,E),C(zs,w),C(mp,W),ne(z))if(z.length){const G=e.exposed||(e.exposed={});z.forEach(I=>{Object.defineProperty(G,I,{get:()=>n[I],set:ee=>n[I]=ee,enumerable:!0})})}else e.exposed||(e.exposed={});T&&e.render===Dt&&(e.render=T),le!=null&&(e.inheritAttrs=le),ie&&(e.components=ie),Y&&(e.directives=Y),W&&Hs(e)}function Sp(e,t,n=Dt){ne(e)&&(e=Xi(e));for(const r in e){const o=e[r];let i;Se(o)?"default"in o?i=ht(o.from||r,o.default,!0):i=ht(o.from||r):i=ht(o),we(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[r]=i}}function Ma(e,t,n){Mt(ne(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Kc(e,t,n,r){let o=r.includes(".")?cu(n,r):()=>n[r];if(ke(e)){const i=t[e];ae(i)&&Ge(o,i)}else if(ae(e))Ge(o,e.bind(n));else if(Se(e))if(ne(e))e.forEach(i=>Kc(i,t,n,r));else{const i=ae(e.handler)?e.handler.bind(n):t[e.handler];ae(i)&&Ge(o,i,e)}}function Jc(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(u=>bo(l,u,s,!0)),bo(l,t,s)),Se(t)&&i.set(t,l),l}function bo(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&bo(e,i,n,!0),o&&o.forEach(s=>bo(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const a=Tp[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const Tp={data:Va,props:$a,emits:$a,methods:ur,computed:ur,beforeCreate:rt,created:rt,beforeMount:rt,mounted:rt,beforeUpdate:rt,updated:rt,beforeDestroy:rt,beforeUnmount:rt,destroyed:rt,unmounted:rt,activated:rt,deactivated:rt,errorCaptured:rt,serverPrefetch:rt,components:ur,directives:ur,watch:Ap,provide:Va,inject:Rp};function Va(e,t){return t?e?function(){return et(ae(e)?e.call(this,this):e,ae(t)?t.call(this,this):t)}:t:e}function Rp(e,t){return ur(Xi(e),Xi(t))}function Xi(e){if(ne(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function rt(e,t){return e?[...new Set([].concat(e,t))]:t}function ur(e,t){return e?et(Object.create(null),e,t):t}function $a(e,t){return e?ne(e)&&ne(t)?[...new Set([...e,...t])]:et(Object.create(null),Na(e),Na(t??{})):t}function Ap(e,t){if(!e)return t;if(!t)return e;const n=et(Object.create(null),e);for(const r in t)n[r]=rt(e[r],t[r]);return n}function Xc(){return{app:null,config:{isNativeTag:oc,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Pp=0;function Cp(e,t){return function(r,o=null){ae(r)||(r=et({},r)),o!=null&&!Se(o)&&(o=null);const i=Xc(),s=new WeakSet,a=[];let l=!1;const u=i.app={_uid:Pp++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:uh,get config(){return i.config},set config(c){},use(c,...f){return s.has(c)||(c&&ae(c.install)?(s.add(c),c.install(u,...f)):ae(c)&&(s.add(c),c(u,...f))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,f){return f?(i.components[c]=f,u):i.components[c]},directive(c,f){return f?(i.directives[c]=f,u):i.directives[c]},mount(c,f,p){if(!l){const d=u._ceVNode||oe(r,o);return d.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),f&&t?t(d,c):e(d,c,p),l=!0,u._container=c,c.__vue_app__=u,ri(d.component)}},onUnmount(c){a.push(c)},unmount(){l&&(Mt(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return i.provides[c]=f,u},runWithContext(c){const f=hn;hn=u;try{return c()}finally{hn=f}}};return u}}let hn=null;function jt(e,t){if(Fe){let n=Fe.provides;const r=Fe.parent&&Fe.parent.provides;r===n&&(n=Fe.provides=Object.create(r)),n[e]=t}}function ht(e,t,n=!1){const r=Ct();if(r||hn){let o=hn?hn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&ae(t)?t.call(r&&r.proxy):t}}function Gs(){return!!(Ct()||hn)}const Yc={},Qc=()=>Object.create(Yc),Zc=e=>Object.getPrototypeOf(e)===Yc;function Lp(e,t,n,r=!1){const o={},i=Qc();e.propsDefaults=Object.create(null),eu(e,t,o,i);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:xn(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function kp(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:s}}=e,a=ye(o),[l]=e.propsOptions;let u=!1;if((r||s>0)&&!(s&16)){if(s&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let p=c[f];if(ti(e.emitsOptions,p))continue;const d=t[p];if(l)if(ve(i,p))d!==i[p]&&(i[p]=d,u=!0);else{const h=wt(p);o[h]=Yi(l,a,h,d,e,!1)}else d!==i[p]&&(i[p]=d,u=!0)}}}else{eu(e,t,o,i)&&(u=!0);let c;for(const f in a)(!t||!ve(t,f)&&((c=En(f))===f||!ve(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(o[f]=Yi(l,a,f,void 0,e,!0)):delete o[f]);if(i!==a)for(const f in i)(!t||!ve(t,f))&&(delete i[f],u=!0)}u&&Ft(e.attrs,"set","")}function eu(e,t,n,r){const[o,i]=e.propsOptions;let s=!1,a;if(t)for(let l in t){if($n(l))continue;const u=t[l];let c;o&&ve(o,c=wt(l))?!i||!i.includes(c)?n[c]=u:(a||(a={}))[c]=u:ti(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,s=!0)}if(i){const l=ye(n),u=a||Ee;for(let c=0;c<i.length;c++){const f=i[c];n[f]=Yi(o,l,f,u[f],e,!ve(u,f))}}return s}function Yi(e,t,n,r,o,i){const s=e[n];if(s!=null){const a=ve(s,"default");if(a&&r===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&ae(l)){const{propsDefaults:u}=o;if(n in u)r=u[n];else{const c=vn(o);r=u[n]=l.call(null,t),c()}}else r=l;o.ce&&o.ce._setProp(n,r)}s[0]&&(i&&!a?r=!1:s[1]&&(r===""||r===En(n))&&(r=!0))}return r}const xp=new WeakMap;function tu(e,t,n=!1){const r=n?xp:t.propsCache,o=r.get(e);if(o)return o;const i=e.props,s={},a=[];let l=!1;if(!ae(e)){const c=f=>{l=!0;const[p,d]=tu(f,t,!0);et(s,p),d&&a.push(...d)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Se(e)&&r.set(e,Mn),Mn;if(ne(i))for(let c=0;c<i.length;c++){const f=wt(i[c]);ja(f)&&(s[f]=Ee)}else if(i)for(const c in i){const f=wt(c);if(ja(f)){const p=i[c],d=s[f]=ne(p)||ae(p)?{type:p}:et({},p),h=d.type;let _=!1,v=!0;if(ne(h))for(let b=0;b<h.length;++b){const E=h[b],m=ae(E)&&E.name;if(m==="Boolean"){_=!0;break}else m==="String"&&(v=!1)}else _=ae(h)&&h.name==="Boolean";d[0]=_,d[1]=v,(_||ve(d,"default"))&&a.push(f)}}const u=[s,a];return Se(e)&&r.set(e,u),u}function ja(e){return e[0]!=="$"&&!$n(e)}const Ws=e=>e==="_"||e==="_ctx"||e==="$stable",qs=e=>ne(e)?e.map(mt):[mt(e)],Op=(e,t,n)=>{if(t._n)return t;const r=Pe((...o)=>qs(t(...o)),n);return r._c=!1,r},nu=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Ws(o))continue;const i=e[o];if(ae(i))t[o]=Op(o,i,r);else if(i!=null){const s=qs(i);t[o]=()=>s}}},ru=(e,t)=>{const n=qs(t);e.slots.default=()=>n},ou=(e,t,n)=>{for(const r in t)(n||!Ws(r))&&(e[r]=t[r])},Ip=(e,t,n)=>{const r=e.slots=Qc();if(e.vnode.shapeFlag&32){const o=t._;o?(ou(r,t,n),n&&ac(r,"_",o,!0)):nu(t,r)}else t&&ru(e,t)},Dp=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,s=Ee;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:ou(o,t,n):(i=!t.$stable,nu(t,o)),s=t}else t&&(ru(e,t),s={default:1});if(i)for(const a in o)!Ws(a)&&s[a]==null&&delete o[a]},ot=pu;function Np(e){return iu(e)}function Mp(e){return iu(e,cp)}function iu(e,t){const n=Ko();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:s,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:p,setScopeId:d=Dt,insertStaticContent:h}=e,_=(y,S,P,D=null,x=null,O=null,q=void 0,H=null,B=!!S.dynamicChildren)=>{if(y===S)return;y&&!Qt(y,S)&&(D=L(y),ue(y,x,O,!0),y=null),S.patchFlag===-2&&(B=!1,S.dynamicChildren=null);const{type:M,ref:re,shapeFlag:J}=S;switch(M){case mn:v(y,S,P,D);break;case Et:b(y,S,P,D);break;case ro:y==null&&E(S,P,D,q);break;case je:ie(y,S,P,D,x,O,q,H,B);break;default:J&1?T(y,S,P,D,x,O,q,H,B):J&6?Y(y,S,P,D,x,O,q,H,B):(J&64||J&128)&&M.process(y,S,P,D,x,O,q,H,B,j)}re!=null&&x?Bn(re,y&&y.ref,O,S||y,!S):re==null&&y&&y.ref!=null&&Bn(y.ref,null,O,y,!0)},v=(y,S,P,D)=>{if(y==null)r(S.el=a(S.children),P,D);else{const x=S.el=y.el;S.children!==y.children&&u(x,S.children)}},b=(y,S,P,D)=>{y==null?r(S.el=l(S.children||""),P,D):S.el=y.el},E=(y,S,P,D)=>{[y.el,y.anchor]=h(y.children,S,P,D,y.el,y.anchor)},m=({el:y,anchor:S},P,D)=>{let x;for(;y&&y!==S;)x=p(y),r(y,P,D),y=x;r(S,P,D)},w=({el:y,anchor:S})=>{let P;for(;y&&y!==S;)P=p(y),o(y),y=P;o(S)},T=(y,S,P,D,x,O,q,H,B)=>{S.type==="svg"?q="svg":S.type==="math"&&(q="mathml"),y==null?k(S,P,D,x,O,q,H,B):W(y,S,x,O,q,H,B)},k=(y,S,P,D,x,O,q,H)=>{let B,M;const{props:re,shapeFlag:J,transition:Z,dirs:ce}=y;if(B=y.el=s(y.type,O,re&&re.is,re),J&8?c(B,y.children):J&16&&K(y.children,B,null,D,x,Ei(y,O),q,H),ce&&It(y,null,D,"created"),$(B,y,y.scopeId,q,D),re){for(const Te in re)Te!=="value"&&!$n(Te)&&i(B,Te,null,re[Te],O,D);"value"in re&&i(B,"value",null,re.value,O),(M=re.onVnodeBeforeMount)&&yt(M,D,y)}ce&&It(y,null,D,"beforeMount");const ge=su(x,Z);ge&&Z.beforeEnter(B),r(B,S,P),((M=re&&re.onVnodeMounted)||ge||ce)&&ot(()=>{M&&yt(M,D,y),ge&&Z.enter(B),ce&&It(y,null,D,"mounted")},x)},$=(y,S,P,D,x)=>{if(P&&d(y,P),D)for(let O=0;O<D.length;O++)d(y,D[O]);if(x){let O=x.subTree;if(S===O||fu(O.type)&&(O.ssContent===S||O.ssFallback===S)){const q=x.vnode;$(y,q,q.scopeId,q.slotScopeIds,x.parent)}}},K=(y,S,P,D,x,O,q,H,B=0)=>{for(let M=B;M<y.length;M++){const re=y[M]=H?Yt(y[M]):mt(y[M]);_(null,re,S,P,D,x,O,q,H)}},W=(y,S,P,D,x,O,q)=>{const H=S.el=y.el;let{patchFlag:B,dynamicChildren:M,dirs:re}=S;B|=y.patchFlag&16;const J=y.props||Ee,Z=S.props||Ee;let ce;if(P&&nn(P,!1),(ce=Z.onVnodeBeforeUpdate)&&yt(ce,P,S,y),re&&It(S,y,P,"beforeUpdate"),P&&nn(P,!0),(J.innerHTML&&Z.innerHTML==null||J.textContent&&Z.textContent==null)&&c(H,""),M?z(y.dynamicChildren,M,H,P,D,Ei(S,x),O):q||I(y,S,H,null,P,D,Ei(S,x),O,!1),B>0){if(B&16)le(H,J,Z,P,x);else if(B&2&&J.class!==Z.class&&i(H,"class",null,Z.class,x),B&4&&i(H,"style",J.style,Z.style,x),B&8){const ge=S.dynamicProps;for(let Te=0;Te<ge.length;Te++){const be=ge[Te],at=J[be],Ke=Z[be];(Ke!==at||be==="value")&&i(H,be,at,Ke,x,P)}}B&1&&y.children!==S.children&&c(H,S.children)}else!q&&M==null&&le(H,J,Z,P,x);((ce=Z.onVnodeUpdated)||re)&&ot(()=>{ce&&yt(ce,P,S,y),re&&It(S,y,P,"updated")},D)},z=(y,S,P,D,x,O,q)=>{for(let H=0;H<S.length;H++){const B=y[H],M=S[H],re=B.el&&(B.type===je||!Qt(B,M)||B.shapeFlag&198)?f(B.el):P;_(B,M,re,null,D,x,O,q,!0)}},le=(y,S,P,D,x)=>{if(S!==P){if(S!==Ee)for(const O in S)!$n(O)&&!(O in P)&&i(y,O,S[O],null,x,D);for(const O in P){if($n(O))continue;const q=P[O],H=S[O];q!==H&&O!=="value"&&i(y,O,H,q,x,D)}"value"in P&&i(y,"value",S.value,P.value,x)}},ie=(y,S,P,D,x,O,q,H,B)=>{const M=S.el=y?y.el:a(""),re=S.anchor=y?y.anchor:a("");let{patchFlag:J,dynamicChildren:Z,slotScopeIds:ce}=S;ce&&(H=H?H.concat(ce):ce),y==null?(r(M,P,D),r(re,P,D),K(S.children||[],P,re,x,O,q,H,B)):J>0&&J&64&&Z&&y.dynamicChildren?(z(y.dynamicChildren,Z,P,x,O,q,H),(S.key!=null||x&&S===x.subTree)&&Ks(y,S,!0)):I(y,S,P,re,x,O,q,H,B)},Y=(y,S,P,D,x,O,q,H,B)=>{S.slotScopeIds=H,y==null?S.shapeFlag&512?x.ctx.activate(S,P,D,q,B):R(S,P,D,x,O,q,B):A(y,S,B)},R=(y,S,P,D,x,O,q)=>{const H=y.component=oh(y,D,x);if(Us(y)&&(H.ctx.renderer=j),ih(H,!1,q),H.asyncDep){if(x&&x.registerDep(H,C,q),!y.el){const B=H.subTree=oe(Et);b(null,B,S,P),y.placeholder=B.el}}else C(H,y,S,P,x,O,q)},A=(y,S,P)=>{const D=S.component=y.component;if(qp(y,S,P))if(D.asyncDep&&!D.asyncResolved){G(D,S,P);return}else D.next=S,D.update();else S.el=y.el,D.vnode=S},C=(y,S,P,D,x,O,q)=>{const H=()=>{if(y.isMounted){let{next:J,bu:Z,u:ce,parent:ge,vnode:Te}=y;{const ut=au(y);if(ut){J&&(J.el=Te.el,G(y,J,q)),ut.asyncDep.then(()=>{y.isUnmounted||H()});return}}let be=J,at;nn(y,!1),J?(J.el=Te.el,G(y,J,q)):J=Te,Z&&to(Z),(at=J.props&&J.props.onVnodeBeforeUpdate)&&yt(at,ge,J,Te),nn(y,!0);const Ke=Si(y),St=y.subTree;y.subTree=Ke,_(St,Ke,f(St.el),L(St),y,x,O),J.el=Ke.el,be===null&&ni(y,Ke.el),ce&&ot(ce,x),(at=J.props&&J.props.onVnodeUpdated)&&ot(()=>yt(at,ge,J,Te),x)}else{let J;const{el:Z,props:ce}=S,{bm:ge,m:Te,parent:be,root:at,type:Ke}=y,St=pn(S);if(nn(y,!1),ge&&to(ge),!St&&(J=ce&&ce.onVnodeBeforeMount)&&yt(J,be,S),nn(y,!0),Z&&te){const ut=()=>{y.subTree=Si(y),te(Z,y.subTree,y,x,null)};St&&Ke.__asyncHydrate?Ke.__asyncHydrate(Z,y,ut):ut()}else{at.ce&&at.ce._def.shadowRoot!==!1&&at.ce._injectChildStyle(Ke);const ut=y.subTree=Si(y);_(null,ut,P,D,y,x,O),S.el=ut.el}if(Te&&ot(Te,x),!St&&(J=ce&&ce.onVnodeMounted)){const ut=S;ot(()=>yt(J,be,ut),x)}(S.shapeFlag&256||be&&pn(be.vnode)&&be.vnode.shapeFlag&256)&&y.a&&ot(y.a,x),y.isMounted=!0,S=P=D=null}};y.scope.on();const B=y.effect=new dc(H);y.scope.off();const M=y.update=B.run.bind(B),re=y.job=B.runIfDirty.bind(B);re.i=y,re.id=y.uid,B.scheduler=()=>Bs(re),nn(y,!0),M()},G=(y,S,P)=>{S.component=y;const D=y.vnode.props;y.vnode=S,y.next=null,kp(y,S.props,D,P),Dp(y,S.children,P),Gt(),Ra(y),Wt()},I=(y,S,P,D,x,O,q,H,B=!1)=>{const M=y&&y.children,re=y?y.shapeFlag:0,J=S.children,{patchFlag:Z,shapeFlag:ce}=S;if(Z>0){if(Z&128){se(M,J,P,D,x,O,q,H,B);return}else if(Z&256){ee(M,J,P,D,x,O,q,H,B);return}}ce&8?(re&16&&nt(M,x,O),J!==M&&c(P,J)):re&16?ce&16?se(M,J,P,D,x,O,q,H,B):nt(M,x,O,!0):(re&8&&c(P,""),ce&16&&K(J,P,D,x,O,q,H,B))},ee=(y,S,P,D,x,O,q,H,B)=>{y=y||Mn,S=S||Mn;const M=y.length,re=S.length,J=Math.min(M,re);let Z;for(Z=0;Z<J;Z++){const ce=S[Z]=B?Yt(S[Z]):mt(S[Z]);_(y[Z],ce,P,null,x,O,q,H,B)}M>re?nt(y,x,O,!0,!1,J):K(S,P,D,x,O,q,H,B,J)},se=(y,S,P,D,x,O,q,H,B)=>{let M=0;const re=S.length;let J=y.length-1,Z=re-1;for(;M<=J&&M<=Z;){const ce=y[M],ge=S[M]=B?Yt(S[M]):mt(S[M]);if(Qt(ce,ge))_(ce,ge,P,null,x,O,q,H,B);else break;M++}for(;M<=J&&M<=Z;){const ce=y[J],ge=S[Z]=B?Yt(S[Z]):mt(S[Z]);if(Qt(ce,ge))_(ce,ge,P,null,x,O,q,H,B);else break;J--,Z--}if(M>J){if(M<=Z){const ce=Z+1,ge=ce<re?S[ce].el:D;for(;M<=Z;)_(null,S[M]=B?Yt(S[M]):mt(S[M]),P,ge,x,O,q,H,B),M++}}else if(M>Z)for(;M<=J;)ue(y[M],x,O,!0),M++;else{const ce=M,ge=M,Te=new Map;for(M=ge;M<=Z;M++){const ft=S[M]=B?Yt(S[M]):mt(S[M]);ft.key!=null&&Te.set(ft.key,M)}let be,at=0;const Ke=Z-ge+1;let St=!1,ut=0;const or=new Array(Ke);for(M=0;M<Ke;M++)or[M]=0;for(M=ce;M<=J;M++){const ft=y[M];if(at>=Ke){ue(ft,x,O,!0);continue}let Lt;if(ft.key!=null)Lt=Te.get(ft.key);else for(be=ge;be<=Z;be++)if(or[be-ge]===0&&Qt(ft,S[be])){Lt=be;break}Lt===void 0?ue(ft,x,O,!0):(or[Lt-ge]=M+1,Lt>=ut?ut=Lt:St=!0,_(ft,S[Lt],P,null,x,O,q,H,B),at++)}const ya=St?Vp(or):Mn;for(be=ya.length-1,M=Ke-1;M>=0;M--){const ft=ge+M,Lt=S[ft],va=S[ft+1],ba=ft+1<re?va.el||va.placeholder:D;or[M]===0?_(null,Lt,P,ba,x,O,q,H,B):St&&(be<0||M!==ya[be]?de(Lt,P,ba,2):be--)}}},de=(y,S,P,D,x=null)=>{const{el:O,type:q,transition:H,children:B,shapeFlag:M}=y;if(M&6){de(y.component.subTree,S,P,D);return}if(M&128){y.suspense.move(S,P,D);return}if(M&64){q.move(y,S,P,j);return}if(q===je){r(O,S,P);for(let J=0;J<B.length;J++)de(B[J],S,P,D);r(y.anchor,S,P);return}if(q===ro){m(y,S,P);return}if(D!==2&&M&1&&H)if(D===0)H.beforeEnter(O),r(O,S,P),ot(()=>H.enter(O),x);else{const{leave:J,delayLeave:Z,afterLeave:ce}=H,ge=()=>{y.ctx.isUnmounted?o(O):r(O,S,P)},Te=()=>{O._isLeaving&&O[sp](!0),J(O,()=>{ge(),ce&&ce()})};Z?Z(O,ge,Te):Te()}else r(O,S,P)},ue=(y,S,P,D=!1,x=!1)=>{const{type:O,props:q,ref:H,children:B,dynamicChildren:M,shapeFlag:re,patchFlag:J,dirs:Z,cacheIndex:ce}=y;if(J===-2&&(x=!1),H!=null&&(Gt(),Bn(H,null,P,y,!0),Wt()),ce!=null&&(S.renderCache[ce]=void 0),re&256){S.ctx.deactivate(y);return}const ge=re&1&&Z,Te=!pn(y);let be;if(Te&&(be=q&&q.onVnodeBeforeUnmount)&&yt(be,S,y),re&6)Ce(y.component,P,D);else{if(re&128){y.suspense.unmount(P,D);return}ge&&It(y,null,S,"beforeUnmount"),re&64?y.type.remove(y,S,P,j,D):M&&!M.hasOnce&&(O!==je||J>0&&J&64)?nt(M,S,P,!1,!0):(O===je&&J&384||!x&&re&16)&&nt(B,S,P),D&&Ne(y)}(Te&&(be=q&&q.onVnodeUnmounted)||ge)&&ot(()=>{be&&yt(be,S,y),ge&&It(y,null,S,"unmounted")},P)},Ne=y=>{const{type:S,el:P,anchor:D,transition:x}=y;if(S===je){qe(P,D);return}if(S===ro){w(y);return}const O=()=>{o(P),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(y.shapeFlag&1&&x&&!x.persisted){const{leave:q,delayLeave:H}=x,B=()=>q(P,O);H?H(y.el,O,B):B()}else O()},qe=(y,S)=>{let P;for(;y!==S;)P=p(y),o(y),y=P;o(S)},Ce=(y,S,P)=>{const{bum:D,scope:x,job:O,subTree:q,um:H,m:B,a:M}=y;Ba(B),Ba(M),D&&to(D),x.stop(),O&&(O.flags|=8,ue(q,y,S,P)),H&&ot(H,S),ot(()=>{y.isUnmounted=!0},S)},nt=(y,S,P,D=!1,x=!1,O=0)=>{for(let q=O;q<y.length;q++)ue(y[q],S,P,D,x)},L=y=>{if(y.shapeFlag&6)return L(y.component.subTree);if(y.shapeFlag&128)return y.suspense.next();const S=p(y.anchor||y.el),P=S&&S[Dc];return P?p(P):S};let N=!1;const F=(y,S,P)=>{y==null?S._vnode&&ue(S._vnode,null,null,!0):_(S._vnode||null,y,S,null,null,null,P),S._vnode=y,N||(N=!0,Ra(),_o(),N=!1)},j={p:_,um:ue,m:de,r:Ne,mt:R,mc:K,pc:I,pbc:z,n:L,o:e};let U,te;return t&&([U,te]=t(j)),{render:F,hydrate:U,createApp:Cp(F,U)}}function Ei({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 nn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function su(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ks(e,t,n=!1){const r=e.children,o=t.children;if(ne(r)&&ne(o))for(let i=0;i<r.length;i++){const s=r[i];let a=o[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[i]=Yt(o[i]),a.el=s.el),!n&&a.patchFlag!==-2&&Ks(s,a)),a.type===mn&&a.patchFlag!==-1&&(a.el=s.el),a.type===Et&&!a.el&&(a.el=s.el)}}function Vp(e){const t=e.slice(),n=[0];let r,o,i,s,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}for(i=0,s=n.length-1;i<s;)a=i+s>>1,e[n[a]]<u?i=a+1:s=a;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}function au(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:au(t)}function Ba(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const $p=Symbol.for("v-scx"),jp=()=>ht($p);function lu(e,t){return Js(e,null,t)}function Ge(e,t,n){return Js(e,t,n)}function Js(e,t,n=Ee){const{immediate:r,deep:o,flush:i,once:s}=n,a=et({},n),l=t&&r||!t&&i!=="post";let u;if(Jn){if(i==="sync"){const d=jp();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=Dt,d.resume=Dt,d.pause=Dt,d}}const c=Fe;a.call=(d,h,_)=>Mt(d,c,h,_);let f=!1;i==="post"?a.scheduler=d=>{ot(d,c&&c.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(d,h)=>{h?d():Bs(d)}),a.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const p=ep(e,t,a);return Jn&&(u?u.push(p):l&&p()),p}function Bp(e,t,n){const r=this.proxy,o=ke(e)?e.includes(".")?cu(r,e):()=>r[e]:e.bind(r,r);let i;ae(t)?i=t:(i=t.handler,n=t);const s=vn(this),a=Js(o,i.bind(r),n);return s(),a}function cu(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}const Fp=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${wt(t)}Modifiers`]||e[`${En(t)}Modifiers`];function Hp(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ee;let o=n;const i=t.startsWith("update:"),s=i&&Fp(r,t.slice(7));s&&(s.trim&&(o=n.map(c=>ke(c)?c.trim():c)),s.number&&(o=n.map(fo)));let a,l=r[a=mi(t)]||r[a=mi(wt(t))];!l&&i&&(l=r[a=mi(En(t))]),l&&Mt(l,e,6,o);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Mt(u,e,6,o)}}const Up=new WeakMap;function uu(e,t,n=!1){const r=n?Up:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let s={},a=!1;if(!ae(e)){const l=u=>{const c=uu(u,t,!0);c&&(a=!0,et(s,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Se(e)&&r.set(e,null),null):(ne(i)?i.forEach(l=>s[l]=null):et(s,i),Se(e)&&r.set(e,s),s)}function ti(e,t){return!e||!Lr(t)?!1:(t=t.slice(2).replace(/Once$/,""),ve(e,t[0].toLowerCase()+t.slice(1))||ve(e,En(t))||ve(e,t))}function Si(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[i],slots:s,attrs:a,emit:l,render:u,renderCache:c,props:f,data:p,setupState:d,ctx:h,inheritAttrs:_}=e,v=yo(e);let b,E;try{if(n.shapeFlag&4){const w=o||r,T=w;b=mt(u.call(T,w,c,f,d,p,h)),E=a}else{const w=t;b=mt(w.length>1?w(f,{attrs:a,slots:s,emit:l}):w(f,null)),E=t.props?a:Gp(a)}}catch(w){_r.length=0,er(w,e,1),b=oe(Et)}let m=b;if(E&&_!==!1){const w=Object.keys(E),{shapeFlag:T}=m;w.length&&T&7&&(i&&w.some(Ls)&&(E=Wp(E,i)),m=Kn(m,E,!1,!0))}return n.dirs&&(m=Kn(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&Fs(m,n.transition),b=m,yo(v),b}function zp(e,t=!0){let n;for(let r=0;r<e.length;r++){const o=e[r];if(qn(o)){if(o.type!==Et||o.children==="v-if"){if(n)return;n=o}}else return}return n}const Gp=e=>{let t;for(const n in e)(n==="class"||n==="style"||Lr(n))&&((t||(t={}))[n]=e[n]);return t},Wp=(e,t)=>{const n={};for(const r in e)(!Ls(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function qp(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Fa(r,s,u):!!s;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const p=c[f];if(s[p]!==r[p]&&!ti(u,p))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===s?!1:r?s?Fa(r,s,u):!0:!!s;return!1}function Fa(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!ti(n,i))return!0}return!1}function ni({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const fu=e=>e.__isSuspense;let Qi=0;const Kp={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,s,a,l,u){if(e==null)Xp(t,n,r,o,i,s,a,l,u);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Yp(e,t,n,r,o,s,a,l,u)}},hydrate:Qp,normalize:Zp},Jp=Kp;function Tr(e,t){const n=e.props&&e.props[t];ae(n)&&n()}function Xp(e,t,n,r,o,i,s,a,l){const{p:u,o:{createElement:c}}=l,f=c("div"),p=e.suspense=du(e,o,r,t,f,n,i,s,a,l);u(null,p.pendingBranch=e.ssContent,f,null,r,p,i,s),p.deps>0?(Tr(e,"onPending"),Tr(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,i,s),Fn(p,e.ssFallback)):p.resolve(!1,!0)}function Yp(e,t,n,r,o,i,s,a,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const p=t.ssContent,d=t.ssFallback,{activeBranch:h,pendingBranch:_,isInFallback:v,isHydrating:b}=f;if(_)f.pendingBranch=p,Qt(_,p)?(l(_,p,f.hiddenContainer,null,o,f,i,s,a),f.deps<=0?f.resolve():v&&(b||(l(h,d,n,r,o,null,i,s,a),Fn(f,d)))):(f.pendingId=Qi++,b?(f.isHydrating=!1,f.activeBranch=_):u(_,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),v?(l(null,p,f.hiddenContainer,null,o,f,i,s,a),f.deps<=0?f.resolve():(l(h,d,n,r,o,null,i,s,a),Fn(f,d))):h&&Qt(h,p)?(l(h,p,n,r,o,f,i,s,a),f.resolve(!0)):(l(null,p,f.hiddenContainer,null,o,f,i,s,a),f.deps<=0&&f.resolve()));else if(h&&Qt(h,p))l(h,p,n,r,o,f,i,s,a),Fn(f,p);else if(Tr(t,"onPending"),f.pendingBranch=p,p.shapeFlag&512?f.pendingId=p.component.suspenseId:f.pendingId=Qi++,l(null,p,f.hiddenContainer,null,o,f,i,s,a),f.deps<=0)f.resolve();else{const{timeout:E,pendingId:m}=f;E>0?setTimeout(()=>{f.pendingId===m&&f.fallback(d)},E):E===0&&f.fallback(d)}}function du(e,t,n,r,o,i,s,a,l,u,c=!1){const{p:f,m:p,um:d,n:h,o:{parentNode:_,remove:v}}=u;let b;const E=eh(e);E&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const m=e.props?pd(e.props.timeout):void 0,w=i,T={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:o,deps:0,pendingId:Qi++,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(k=!1,$=!1){const{vnode:K,activeBranch:W,pendingBranch:z,pendingId:le,effects:ie,parentComponent:Y,container:R}=T;let A=!1;T.isHydrating?T.isHydrating=!1:k||(A=W&&z.transition&&z.transition.mode==="out-in",A&&(W.transition.afterLeave=()=>{le===T.pendingId&&(p(z,R,i===w?h(W):i,0),Wi(ie))}),W&&(_(W.el)===R&&(i=h(W)),d(W,Y,T,!0)),A||p(z,R,i,0)),Fn(T,z),T.pendingBranch=null,T.isInFallback=!1;let C=T.parent,G=!1;for(;C;){if(C.pendingBranch){C.effects.push(...ie),G=!0;break}C=C.parent}!G&&!A&&Wi(ie),T.effects=[],E&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,t.deps===0&&!$&&t.resolve()),Tr(K,"onResolve")},fallback(k){if(!T.pendingBranch)return;const{vnode:$,activeBranch:K,parentComponent:W,container:z,namespace:le}=T;Tr($,"onFallback");const ie=h(K),Y=()=>{T.isInFallback&&(f(null,k,z,ie,W,null,le,a,l),Fn(T,k))},R=k.transition&&k.transition.mode==="out-in";R&&(K.transition.afterLeave=Y),T.isInFallback=!0,d(K,W,null,!0),R||Y()},move(k,$,K){T.activeBranch&&p(T.activeBranch,k,$,K),T.container=k},next(){return T.activeBranch&&h(T.activeBranch)},registerDep(k,$,K){const W=!!T.pendingBranch;W&&T.deps++;const z=k.vnode.el;k.asyncDep.catch(le=>{er(le,k,0)}).then(le=>{if(k.isUnmounted||T.isUnmounted||T.pendingId!==k.suspenseId)return;k.asyncResolved=!0;const{vnode:ie}=k;ts(k,le),z&&(ie.el=z);const Y=!z&&k.subTree.el;$(k,ie,_(z||k.subTree.el),z?null:h(k.subTree),T,s,K),Y&&v(Y),ni(k,ie.el),W&&--T.deps===0&&T.resolve()})},unmount(k,$){T.isUnmounted=!0,T.activeBranch&&d(T.activeBranch,n,k,$),T.pendingBranch&&d(T.pendingBranch,n,k,$)}};return T}function Qp(e,t,n,r,o,i,s,a,l){const u=t.suspense=du(t,r,n,e.parentNode,document.createElement("div"),null,o,i,s,a,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,i,s);return u.deps===0&&u.resolve(!1,!0),c}function Zp(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Ha(r?n.default:n),e.ssFallback=r?Ha(n.fallback):oe(Et)}function Ha(e){let t;if(ae(e)){const n=Wn&&e._c;n&&(e._d=!1,Q()),e=e(),n&&(e._d=!0,t=lt,hu())}return ne(e)&&(e=zp(e)),e=mt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function pu(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):Wi(e)}function Fn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,ni(r,o))}function eh(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const je=Symbol.for("v-fgt"),mn=Symbol.for("v-txt"),Et=Symbol.for("v-cmt"),ro=Symbol.for("v-stc"),_r=[];let lt=null;function Q(e=!1){_r.push(lt=e?null:[])}function hu(){_r.pop(),lt=_r[_r.length-1]||null}let Wn=1;function wo(e,t=!1){Wn+=e,e<0&<&&t&&(lt.hasOnce=!0)}function mu(e){return e.dynamicChildren=Wn>0?lt||Mn:null,hu(),Wn>0&<&<.push(e),e}function me(e,t,n,r,o,i){return mu(he(e,t,n,r,o,i,!0))}function xe(e,t,n,r,o){return mu(oe(e,t,n,r,o,!0))}function qn(e){return e?e.__v_isVNode===!0:!1}function Qt(e,t){return e.type===t.type&&e.key===t.key}const gu=({key:e})=>e??null,oo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||we(e)||ae(e)?{i:He,r:e,k:t,f:!!n}:e:null);function he(e,t=null,n=null,r=0,o=null,i=e===je?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&gu(t),ref:t&&oo(t),scopeId:Ic,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:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:He};return a?(Xs(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=ke(n)?8:16),Wn>0&&!s&<&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&<.push(l),l}const oe=th;function th(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===Uc)&&(e=Et),qn(e)){const a=Kn(e,t,!0);return n&&Xs(a,n),Wn>0&&!i&<&&(a.shapeFlag&6?lt[lt.indexOf(e)]=a:lt.push(a)),a.patchFlag=-2,a}if(ch(e)&&(e=e.__vccOpts),t){t=_u(t);let{class:a,style:l}=t;a&&!ke(a)&&(t.class=Ue(a)),Se(l)&&($s(l)&&!ne(l)&&(l=et({},l)),t.style=_n(l))}const s=ke(e)?1:fu(e)?128:rp(e)?64:Se(e)?4:ae(e)?2:0;return he(e,t,n,r,o,s,i,!0)}function _u(e){return e?$s(e)||Zc(e)?et({},e):e:null}function Kn(e,t,n=!1,r=!1){const{props:o,ref:i,patchFlag:s,children:a,transition:l}=e,u=t?Ys(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&gu(u),ref:t&&t.ref?n&&i?ne(i)?i.concat(oo(t)):[i,oo(t)]:oo(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==je?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Kn(e.ssContent),ssFallback:e.ssFallback&&Kn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Fs(c,l.clone(c)),c}function st(e=" ",t=0){return oe(mn,null,e,t)}function Ze(e="",t=!1){return t?(Q(),xe(Et,null,e)):oe(Et,null,e)}function mt(e){return e==null||typeof e=="boolean"?oe(Et):ne(e)?oe(je,null,e.slice()):qn(e)?Yt(e):oe(mn,null,String(e))}function Yt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Kn(e)}function Xs(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ne(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Xs(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Zc(t)?t._ctx=He:o===3&&He&&(He.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ae(t)?(t={default:t,_ctx:He},n=32):(t=String(t),r&64?(n=16,t=[st(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ys(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=Ue([t.class,r.class]));else if(o==="style")t.style=_n([t.style,r.style]);else if(Lr(o)){const i=t[o],s=r[o];s&&i!==s&&!(ne(i)&&i.includes(s))&&(t[o]=i?[].concat(i,s):s)}else o!==""&&(t[o]=r[o])}return t}function yt(e,t,n,r=null){Mt(e,t,7,[n,r])}const nh=Xc();let rh=0;function oh(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||nh,i={uid:rh++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new fc(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:tu(r,o),emitsOptions:uu(r,o),emit:null,emitted:null,propsDefaults:Ee,inheritAttrs:r.inheritAttrs,ctx:Ee,data:Ee,props:Ee,attrs:Ee,slots:Ee,refs:Ee,setupState:Ee,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Hp.bind(null,i),e.ce&&e.ce(i),i}let Fe=null;const Ct=()=>Fe||He;let Eo,Zi;{const e=Ko(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),i=>{o.length>1?o.forEach(s=>s(i)):o[0](i)}};Eo=t("__VUE_INSTANCE_SETTERS__",n=>Fe=n),Zi=t("__VUE_SSR_SETTERS__",n=>Jn=n)}const vn=e=>{const t=Fe;return Eo(e),e.scope.on(),()=>{e.scope.off(),Eo(t)}},es=()=>{Fe&&Fe.scope.off(),Eo(null)};function yu(e){return e.vnode.shapeFlag&4}let Jn=!1;function ih(e,t=!1,n=!1){t&&Zi(t);const{props:r,children:o}=e.vnode,i=yu(e);Lp(e,r,i,t),Ip(e,o,n||t);const s=i?sh(e,t):void 0;return t&&Zi(!1),s}function sh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,yp);const{setup:r}=n;if(r){Gt();const o=e.setupContext=r.length>1?bu(e):null,i=vn(e),s=Or(r,e,0,[e.props,o]),a=xs(s);if(Wt(),i(),(a||e.sp)&&!pn(e)&&Hs(e),a){if(s.then(es,es),t)return s.then(l=>{ts(e,l)}).catch(l=>{er(l,e,0)});e.asyncDep=s}else ts(e,s)}else vu(e)}function ts(e,t,n){ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Se(t)&&(e.setupState=Lc(t)),vu(e)}function vu(e,t,n){const r=e.type;e.render||(e.render=r.render||Dt);{const o=vn(e);Gt();try{Ep(e)}finally{Wt(),o()}}}const ah={get(e,t){return Ye(e,"get",""),e[t]}};function bu(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,ah),slots:e.slots,emit:e.emit,expose:t}}function ri(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Lc(Ud(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in gr)return gr[n](e)},has(t,n){return n in t||n in gr}})):e.proxy}function lh(e,t=!0){return ae(e)?e.displayName||e.name:e.name||t&&e.__name}function ch(e){return ae(e)&&"__vccOpts"in e}const pe=(e,t)=>Qd(e,t,Jn);function bn(e,t,n){const r=(i,s,a)=>{wo(-1);try{return oe(i,s,a)}finally{wo(1)}},o=arguments.length;return o===2?Se(t)&&!ne(t)?qn(t)?r(e,null,[t]):r(e,t):r(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&qn(n)&&(n=[n]),r(e,t,n))}const uh="3.5.21";/**
|
|
15
|
+
`&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(I=I.slice(1)),m.textContent!==I&&(Hr(m,0)||Pn(),m.textContent=w.children)}if(z){if(A||!K||le&48){const I=m.tagName.includes("-");for(const ee in z)(A&&(ee.endsWith("value")||ee==="indeterminate")||Lr(ee)&&!$n(ee)||ee[0]==="."||I)&&r(m,ee,null,z[ee],void 0,T)}else if(z.onClick)r(m,"onClick",null,z.onClick,void 0,T);else if(le&4&&dn(z.style))for(const I in z.style)z.style[I]}let G;(G=z&&z.onVnodeBeforeMount)&&yt(G,T,w),Y&&It(w,null,T,"beforeMount"),((G=z&&z.onVnodeMounted)||Y||C)&&pu(()=>{G&&yt(G,T,w),C&&R.enter(m),Y&&It(w,null,T,"mounted")},k)}return m.nextSibling},d=(m,w,T,k,$,K,W)=>{W=W||!!w.dynamicChildren;const z=w.children,le=z.length;for(let ie=0;ie<le;ie++){const Y=W?z[ie]:z[ie]=mt(z[ie]),R=Y.type===mn;m?(R&&!W&&ie+1<le&&mt(z[ie+1]).type===mn&&(l(o(m.data.slice(Y.children.length)),T,i(m)),m.data=Y.children),m=f(m,Y,k,$,K,W)):R&&!Y.children?l(Y.el=o(""),T):(Hr(T,1)||Pn(),n(null,Y,T,null,k,$,Fr(T),K))}return m},h=(m,w,T,k,$,K)=>{const{slotScopeIds:W}=w;W&&($=$?$.concat(W):W);const z=s(m),le=d(i(m),w,z,T,k,$,K);return le&&On(le)&&le.data==="]"?i(w.anchor=le):(Pn(),l(w.anchor=u("]"),z,le),le)},_=(m,w,T,k,$,K)=>{if(Hr(m.parentElement,1)||Pn(),w.el=null,K){const le=v(m);for(;;){const ie=i(m);if(ie&&ie!==le)a(ie);else break}}const W=i(m),z=s(m);return a(m),n(null,w,z,W,T,k,Fr(z),$),T&&(T.vnode.el=w.el,ni(T,w.el)),W},v=(m,w="[",T="]")=>{let k=0;for(;m;)if(m=i(m),m&&On(m)&&(m.data===w&&k++,m.data===T)){if(k===0)return i(m);k--}return m},b=(m,w,T)=>{const k=w.parentNode;k&&k.replaceChild(m,w);let $=T;for(;$;)$.vnode.el===w&&($.vnode.el=$.subTree.el=m),$=$.parent},E=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[c,f]}const xa="data-allow-mismatch",up={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Hr(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(xa);)e=e.parentElement;const n=e&&e.getAttribute(xa);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(up[t])}}Ko().requestIdleCallback;Ko().cancelIdleCallback;function fp(e,t){if(On(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(On(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const pn=e=>!!e.type.__asyncLoader;function Oa(e){ae(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,hydrate:i,timeout:s,suspensible:a=!0,onError:l}=e;let u=null,c,f=0;const p=()=>(f++,u=null,d()),d=()=>{let h;return u||(h=u=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),l)return new Promise((v,b)=>{l(_,()=>v(p()),()=>b(_),f+1)});throw _}).then(_=>h!==u&&u?u:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),c=_,_)))};return gt({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(h,_,v){let b=!1;(_.bu||(_.bu=[])).push(()=>b=!0);const E=()=>{b||v()},m=i?()=>{const w=i(E,T=>fp(h,T));w&&(_.bum||(_.bum=[])).push(w)}:E;c?m():d().then(()=>!_.isUnmounted&&m())},get __asyncResolved(){return c},setup(){const h=Fe;if(Hs(h),c)return()=>bi(c,h);const _=m=>{u=null,er(m,h,13,!r)};if(a&&h.suspense||Jn)return d().then(m=>()=>bi(m,h)).catch(m=>(_(m),()=>r?oe(r,{error:m}):null));const v=_e(!1),b=_e(),E=_e(!!o);return o&&setTimeout(()=>{E.value=!1},o),s!=null&&setTimeout(()=>{if(!v.value&&!b.value){const m=new Error(`Async component timed out after ${s}ms.`);_(m),b.value=m}},s),d().then(()=>{v.value=!0,h.parent&&Us(h.parent.vnode)&&h.parent.update()}).catch(m=>{_(m),b.value=m}),()=>{if(v.value&&c)return bi(c,h);if(b.value&&r)return oe(r,{error:b.value});if(n&&!E.value)return oe(n)}}})}function bi(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,s=oe(e,r,o);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const Us=e=>e.type.__isKeepAlive;function Vc(e,t){jc(e,"a",t)}function $c(e,t){jc(e,"da",t)}function jc(e,t,n=Fe){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ei(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Us(o.parent.vnode)&&dp(r,t,n,o),o=o.parent}}function dp(e,t,n,r){const o=ei(t,e,r,!0);zs(()=>{ks(r[t],o)},n)}function ei(e,t,n=Fe,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{Gt();const a=vn(n),l=Mt(t,n,e,s);return a(),Wt(),l});return r?o.unshift(i):o.push(i),i}}const Kt=e=>(t,n=Fe)=>{(!Jn||e==="sp")&&ei(e,(...r)=>t(...r),n)},Bc=Kt("bm"),tr=Kt("m"),pp=Kt("bu"),hp=Kt("u"),Ir=Kt("bum"),zs=Kt("um"),mp=Kt("sp"),gp=Kt("rtg"),_p=Kt("rtc");function Fc(e,t=Fe){ei("ec",e,t)}const Hc="components";function Ia(e,t){return Gc(Hc,e,!0,t)||e}const Uc=Symbol.for("v-ndc");function zc(e){return ke(e)?Gc(Hc,e,!1)||e:e||Uc}function Gc(e,t,n=!0,r=!1){const o=He||Fe;if(o){const i=o.type;{const a=lh(i,!1);if(a&&(a===t||a===wt(t)||a===qo(wt(t))))return i}const s=Da(o[e]||i[e],t)||Da(o.appContext[e],t);return!s&&r?i:s}}function Da(e,t){return e&&(e[t]||e[wt(t)]||e[qo(wt(t))])}function Wc(e,t,n,r){let o;const i=n,s=ne(e);if(s||ke(e)){const a=s&&dn(e);let l=!1,u=!1;a&&(l=!vt(e),u=qt(e),e=Xo(e)),o=new Array(e.length);for(let c=0,f=e.length;c<f;c++)o[c]=t(l?u?ho(Be(e[c])):Be(e[c]):e[c],c,void 0,i)}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,i)}else if(Se(e))if(e[Symbol.iterator])o=Array.from(e,(a,l)=>t(a,l,void 0,i));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];o[l]=t(e[c],c,l,i)}}else o=[];return o}function tt(e,t,n={},r,o){if(He.ce||He.parent&&pn(He.parent)&&He.parent.ce)return t!=="default"&&(n.name=t),Q(),xe(je,null,[oe("slot",n,r&&r())],64);let i=e[t];i&&i._c&&(i._d=!1),Q();const s=i&&qc(i(n)),a=n.key||s&&s.key,l=xe(je,{key:(a&&!At(a)?a:`_${t}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function qc(e){return e.some(t=>qn(t)?!(t.type===Et||t.type===je&&!qc(t.children)):!0)?e:null}const Ki=e=>e?yu(e)?ri(e):Ki(e.parent):null,gr=et(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=>Ki(e.parent),$root:e=>Ki(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Jc(e),$forceUpdate:e=>e.f||(e.f=()=>{Bs(e.update)}),$nextTick:e=>e.n||(e.n=Rt.bind(e.proxy)),$watch:e=>Bp.bind(e)}),wi=(e,t)=>e!==Ee&&!e.__isScriptSetup&&ve(e,t),yp={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const d=s[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(wi(r,t))return s[t]=1,r[t];if(o!==Ee&&ve(o,t))return s[t]=2,o[t];if((u=e.propsOptions[0])&&ve(u,t))return s[t]=3,i[t];if(n!==Ee&&ve(n,t))return s[t]=4,n[t];Ji&&(s[t]=0)}}const c=gr[t];let f,p;if(c)return t==="$attrs"&&Ye(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==Ee&&ve(n,t))return s[t]=4,n[t];if(p=l.config.globalProperties,ve(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return wi(o,t)?(o[t]=n,!0):r!==Ee&&ve(r,t)?(r[t]=n,!0):ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i,type:s}},a){let l,u;return!!(n[a]||e!==Ee&&a[0]!=="$"&&ve(e,a)||wi(t,a)||(l=i[0])&&ve(l,a)||ve(r,a)||ve(gr,a)||ve(o.config.globalProperties,a)||(u=s.__cssModules)&&u[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ve(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function vp(){return bp().slots}function bp(e){const t=Ct();return t.setupContext||(t.setupContext=bu(t))}function Na(e){return ne(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function wp(e){const t=Ct();let n=e();return es(),xs(n)&&(n=n.catch(r=>{throw vn(t),r})),[n,()=>vn(t)]}let Ji=!0;function Ep(e){const t=Jc(e),n=e.proxy,r=e.ctx;Ji=!1,t.beforeCreate&&Ma(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:p,beforeUpdate:d,updated:h,activated:_,deactivated:v,beforeDestroy:b,beforeUnmount:E,destroyed:m,unmounted:w,render:T,renderTracked:k,renderTriggered:$,errorCaptured:K,serverPrefetch:W,expose:z,inheritAttrs:le,components:ie,directives:Y,filters:R}=t;if(u&&Sp(u,r,null),s)for(const G in s){const I=s[G];ae(I)&&(r[G]=I.bind(n))}if(o){const G=o.call(n,n);Se(G)&&(e.data=Nt(G))}if(Ji=!0,i)for(const G in i){const I=i[G],ee=ae(I)?I.bind(n,n):ae(I.get)?I.get.bind(n,n):Dt,se=!ae(I)&&ae(I.set)?I.set.bind(n):Dt,pe=de({get:ee,set:se});Object.defineProperty(r,G,{enumerable:!0,configurable:!0,get:()=>pe.value,set:ue=>pe.value=ue})}if(a)for(const G in a)Kc(a[G],r,n,G);if(l){const G=ae(l)?l.call(n):l;Reflect.ownKeys(G).forEach(I=>{jt(I,G[I])})}c&&Ma(c,e,"c");function C(G,I){ne(I)?I.forEach(ee=>G(ee.bind(n))):I&&G(I.bind(n))}if(C(Bc,f),C(tr,p),C(pp,d),C(hp,h),C(Vc,_),C($c,v),C(Fc,K),C(_p,k),C(gp,$),C(Ir,E),C(zs,w),C(mp,W),ne(z))if(z.length){const G=e.exposed||(e.exposed={});z.forEach(I=>{Object.defineProperty(G,I,{get:()=>n[I],set:ee=>n[I]=ee,enumerable:!0})})}else e.exposed||(e.exposed={});T&&e.render===Dt&&(e.render=T),le!=null&&(e.inheritAttrs=le),ie&&(e.components=ie),Y&&(e.directives=Y),W&&Hs(e)}function Sp(e,t,n=Dt){ne(e)&&(e=Xi(e));for(const r in e){const o=e[r];let i;Se(o)?"default"in o?i=ht(o.from||r,o.default,!0):i=ht(o.from||r):i=ht(o),we(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[r]=i}}function Ma(e,t,n){Mt(ne(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Kc(e,t,n,r){let o=r.includes(".")?cu(n,r):()=>n[r];if(ke(e)){const i=t[e];ae(i)&&Ge(o,i)}else if(ae(e))Ge(o,e.bind(n));else if(Se(e))if(ne(e))e.forEach(i=>Kc(i,t,n,r));else{const i=ae(e.handler)?e.handler.bind(n):t[e.handler];ae(i)&&Ge(o,i,e)}}function Jc(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(u=>bo(l,u,s,!0)),bo(l,t,s)),Se(t)&&i.set(t,l),l}function bo(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&bo(e,i,n,!0),o&&o.forEach(s=>bo(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const a=Tp[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const Tp={data:Va,props:$a,emits:$a,methods:ur,computed:ur,beforeCreate:rt,created:rt,beforeMount:rt,mounted:rt,beforeUpdate:rt,updated:rt,beforeDestroy:rt,beforeUnmount:rt,destroyed:rt,unmounted:rt,activated:rt,deactivated:rt,errorCaptured:rt,serverPrefetch:rt,components:ur,directives:ur,watch:Ap,provide:Va,inject:Rp};function Va(e,t){return t?e?function(){return et(ae(e)?e.call(this,this):e,ae(t)?t.call(this,this):t)}:t:e}function Rp(e,t){return ur(Xi(e),Xi(t))}function Xi(e){if(ne(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function rt(e,t){return e?[...new Set([].concat(e,t))]:t}function ur(e,t){return e?et(Object.create(null),e,t):t}function $a(e,t){return e?ne(e)&&ne(t)?[...new Set([...e,...t])]:et(Object.create(null),Na(e),Na(t??{})):t}function Ap(e,t){if(!e)return t;if(!t)return e;const n=et(Object.create(null),e);for(const r in t)n[r]=rt(e[r],t[r]);return n}function Xc(){return{app:null,config:{isNativeTag:oc,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Pp=0;function Cp(e,t){return function(r,o=null){ae(r)||(r=et({},r)),o!=null&&!Se(o)&&(o=null);const i=Xc(),s=new WeakSet,a=[];let l=!1;const u=i.app={_uid:Pp++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:uh,get config(){return i.config},set config(c){},use(c,...f){return s.has(c)||(c&&ae(c.install)?(s.add(c),c.install(u,...f)):ae(c)&&(s.add(c),c(u,...f))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,f){return f?(i.components[c]=f,u):i.components[c]},directive(c,f){return f?(i.directives[c]=f,u):i.directives[c]},mount(c,f,p){if(!l){const d=u._ceVNode||oe(r,o);return d.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),f&&t?t(d,c):e(d,c,p),l=!0,u._container=c,c.__vue_app__=u,ri(d.component)}},onUnmount(c){a.push(c)},unmount(){l&&(Mt(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return i.provides[c]=f,u},runWithContext(c){const f=hn;hn=u;try{return c()}finally{hn=f}}};return u}}let hn=null;function jt(e,t){if(Fe){let n=Fe.provides;const r=Fe.parent&&Fe.parent.provides;r===n&&(n=Fe.provides=Object.create(r)),n[e]=t}}function ht(e,t,n=!1){const r=Ct();if(r||hn){let o=hn?hn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&ae(t)?t.call(r&&r.proxy):t}}function Gs(){return!!(Ct()||hn)}const Yc={},Qc=()=>Object.create(Yc),Zc=e=>Object.getPrototypeOf(e)===Yc;function Lp(e,t,n,r=!1){const o={},i=Qc();e.propsDefaults=Object.create(null),eu(e,t,o,i);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:xn(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function kp(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:s}}=e,a=ye(o),[l]=e.propsOptions;let u=!1;if((r||s>0)&&!(s&16)){if(s&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let p=c[f];if(ti(e.emitsOptions,p))continue;const d=t[p];if(l)if(ve(i,p))d!==i[p]&&(i[p]=d,u=!0);else{const h=wt(p);o[h]=Yi(l,a,h,d,e,!1)}else d!==i[p]&&(i[p]=d,u=!0)}}}else{eu(e,t,o,i)&&(u=!0);let c;for(const f in a)(!t||!ve(t,f)&&((c=En(f))===f||!ve(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(o[f]=Yi(l,a,f,void 0,e,!0)):delete o[f]);if(i!==a)for(const f in i)(!t||!ve(t,f))&&(delete i[f],u=!0)}u&&Ft(e.attrs,"set","")}function eu(e,t,n,r){const[o,i]=e.propsOptions;let s=!1,a;if(t)for(let l in t){if($n(l))continue;const u=t[l];let c;o&&ve(o,c=wt(l))?!i||!i.includes(c)?n[c]=u:(a||(a={}))[c]=u:ti(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,s=!0)}if(i){const l=ye(n),u=a||Ee;for(let c=0;c<i.length;c++){const f=i[c];n[f]=Yi(o,l,f,u[f],e,!ve(u,f))}}return s}function Yi(e,t,n,r,o,i){const s=e[n];if(s!=null){const a=ve(s,"default");if(a&&r===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&ae(l)){const{propsDefaults:u}=o;if(n in u)r=u[n];else{const c=vn(o);r=u[n]=l.call(null,t),c()}}else r=l;o.ce&&o.ce._setProp(n,r)}s[0]&&(i&&!a?r=!1:s[1]&&(r===""||r===En(n))&&(r=!0))}return r}const xp=new WeakMap;function tu(e,t,n=!1){const r=n?xp:t.propsCache,o=r.get(e);if(o)return o;const i=e.props,s={},a=[];let l=!1;if(!ae(e)){const c=f=>{l=!0;const[p,d]=tu(f,t,!0);et(s,p),d&&a.push(...d)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Se(e)&&r.set(e,Mn),Mn;if(ne(i))for(let c=0;c<i.length;c++){const f=wt(i[c]);ja(f)&&(s[f]=Ee)}else if(i)for(const c in i){const f=wt(c);if(ja(f)){const p=i[c],d=s[f]=ne(p)||ae(p)?{type:p}:et({},p),h=d.type;let _=!1,v=!0;if(ne(h))for(let b=0;b<h.length;++b){const E=h[b],m=ae(E)&&E.name;if(m==="Boolean"){_=!0;break}else m==="String"&&(v=!1)}else _=ae(h)&&h.name==="Boolean";d[0]=_,d[1]=v,(_||ve(d,"default"))&&a.push(f)}}const u=[s,a];return Se(e)&&r.set(e,u),u}function ja(e){return e[0]!=="$"&&!$n(e)}const Ws=e=>e==="_"||e==="_ctx"||e==="$stable",qs=e=>ne(e)?e.map(mt):[mt(e)],Op=(e,t,n)=>{if(t._n)return t;const r=Pe((...o)=>qs(t(...o)),n);return r._c=!1,r},nu=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Ws(o))continue;const i=e[o];if(ae(i))t[o]=Op(o,i,r);else if(i!=null){const s=qs(i);t[o]=()=>s}}},ru=(e,t)=>{const n=qs(t);e.slots.default=()=>n},ou=(e,t,n)=>{for(const r in t)(n||!Ws(r))&&(e[r]=t[r])},Ip=(e,t,n)=>{const r=e.slots=Qc();if(e.vnode.shapeFlag&32){const o=t._;o?(ou(r,t,n),n&&ac(r,"_",o,!0)):nu(t,r)}else t&&ru(e,t)},Dp=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,s=Ee;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:ou(o,t,n):(i=!t.$stable,nu(t,o)),s=t}else t&&(ru(e,t),s={default:1});if(i)for(const a in o)!Ws(a)&&s[a]==null&&delete o[a]},ot=pu;function Np(e){return iu(e)}function Mp(e){return iu(e,cp)}function iu(e,t){const n=Ko();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:s,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:p,setScopeId:d=Dt,insertStaticContent:h}=e,_=(y,S,P,D=null,x=null,O=null,q=void 0,H=null,B=!!S.dynamicChildren)=>{if(y===S)return;y&&!Qt(y,S)&&(D=L(y),ue(y,x,O,!0),y=null),S.patchFlag===-2&&(B=!1,S.dynamicChildren=null);const{type:M,ref:re,shapeFlag:J}=S;switch(M){case mn:v(y,S,P,D);break;case Et:b(y,S,P,D);break;case ro:y==null&&E(S,P,D,q);break;case je:ie(y,S,P,D,x,O,q,H,B);break;default:J&1?T(y,S,P,D,x,O,q,H,B):J&6?Y(y,S,P,D,x,O,q,H,B):(J&64||J&128)&&M.process(y,S,P,D,x,O,q,H,B,j)}re!=null&&x?Bn(re,y&&y.ref,O,S||y,!S):re==null&&y&&y.ref!=null&&Bn(y.ref,null,O,y,!0)},v=(y,S,P,D)=>{if(y==null)r(S.el=a(S.children),P,D);else{const x=S.el=y.el;S.children!==y.children&&u(x,S.children)}},b=(y,S,P,D)=>{y==null?r(S.el=l(S.children||""),P,D):S.el=y.el},E=(y,S,P,D)=>{[y.el,y.anchor]=h(y.children,S,P,D,y.el,y.anchor)},m=({el:y,anchor:S},P,D)=>{let x;for(;y&&y!==S;)x=p(y),r(y,P,D),y=x;r(S,P,D)},w=({el:y,anchor:S})=>{let P;for(;y&&y!==S;)P=p(y),o(y),y=P;o(S)},T=(y,S,P,D,x,O,q,H,B)=>{S.type==="svg"?q="svg":S.type==="math"&&(q="mathml"),y==null?k(S,P,D,x,O,q,H,B):W(y,S,x,O,q,H,B)},k=(y,S,P,D,x,O,q,H)=>{let B,M;const{props:re,shapeFlag:J,transition:Z,dirs:ce}=y;if(B=y.el=s(y.type,O,re&&re.is,re),J&8?c(B,y.children):J&16&&K(y.children,B,null,D,x,Ei(y,O),q,H),ce&&It(y,null,D,"created"),$(B,y,y.scopeId,q,D),re){for(const Te in re)Te!=="value"&&!$n(Te)&&i(B,Te,null,re[Te],O,D);"value"in re&&i(B,"value",null,re.value,O),(M=re.onVnodeBeforeMount)&&yt(M,D,y)}ce&&It(y,null,D,"beforeMount");const ge=su(x,Z);ge&&Z.beforeEnter(B),r(B,S,P),((M=re&&re.onVnodeMounted)||ge||ce)&&ot(()=>{M&&yt(M,D,y),ge&&Z.enter(B),ce&&It(y,null,D,"mounted")},x)},$=(y,S,P,D,x)=>{if(P&&d(y,P),D)for(let O=0;O<D.length;O++)d(y,D[O]);if(x){let O=x.subTree;if(S===O||fu(O.type)&&(O.ssContent===S||O.ssFallback===S)){const q=x.vnode;$(y,q,q.scopeId,q.slotScopeIds,x.parent)}}},K=(y,S,P,D,x,O,q,H,B=0)=>{for(let M=B;M<y.length;M++){const re=y[M]=H?Yt(y[M]):mt(y[M]);_(null,re,S,P,D,x,O,q,H)}},W=(y,S,P,D,x,O,q)=>{const H=S.el=y.el;let{patchFlag:B,dynamicChildren:M,dirs:re}=S;B|=y.patchFlag&16;const J=y.props||Ee,Z=S.props||Ee;let ce;if(P&&nn(P,!1),(ce=Z.onVnodeBeforeUpdate)&&yt(ce,P,S,y),re&&It(S,y,P,"beforeUpdate"),P&&nn(P,!0),(J.innerHTML&&Z.innerHTML==null||J.textContent&&Z.textContent==null)&&c(H,""),M?z(y.dynamicChildren,M,H,P,D,Ei(S,x),O):q||I(y,S,H,null,P,D,Ei(S,x),O,!1),B>0){if(B&16)le(H,J,Z,P,x);else if(B&2&&J.class!==Z.class&&i(H,"class",null,Z.class,x),B&4&&i(H,"style",J.style,Z.style,x),B&8){const ge=S.dynamicProps;for(let Te=0;Te<ge.length;Te++){const be=ge[Te],at=J[be],Ke=Z[be];(Ke!==at||be==="value")&&i(H,be,at,Ke,x,P)}}B&1&&y.children!==S.children&&c(H,S.children)}else!q&&M==null&&le(H,J,Z,P,x);((ce=Z.onVnodeUpdated)||re)&&ot(()=>{ce&&yt(ce,P,S,y),re&&It(S,y,P,"updated")},D)},z=(y,S,P,D,x,O,q)=>{for(let H=0;H<S.length;H++){const B=y[H],M=S[H],re=B.el&&(B.type===je||!Qt(B,M)||B.shapeFlag&198)?f(B.el):P;_(B,M,re,null,D,x,O,q,!0)}},le=(y,S,P,D,x)=>{if(S!==P){if(S!==Ee)for(const O in S)!$n(O)&&!(O in P)&&i(y,O,S[O],null,x,D);for(const O in P){if($n(O))continue;const q=P[O],H=S[O];q!==H&&O!=="value"&&i(y,O,H,q,x,D)}"value"in P&&i(y,"value",S.value,P.value,x)}},ie=(y,S,P,D,x,O,q,H,B)=>{const M=S.el=y?y.el:a(""),re=S.anchor=y?y.anchor:a("");let{patchFlag:J,dynamicChildren:Z,slotScopeIds:ce}=S;ce&&(H=H?H.concat(ce):ce),y==null?(r(M,P,D),r(re,P,D),K(S.children||[],P,re,x,O,q,H,B)):J>0&&J&64&&Z&&y.dynamicChildren?(z(y.dynamicChildren,Z,P,x,O,q,H),(S.key!=null||x&&S===x.subTree)&&Ks(y,S,!0)):I(y,S,P,re,x,O,q,H,B)},Y=(y,S,P,D,x,O,q,H,B)=>{S.slotScopeIds=H,y==null?S.shapeFlag&512?x.ctx.activate(S,P,D,q,B):R(S,P,D,x,O,q,B):A(y,S,B)},R=(y,S,P,D,x,O,q)=>{const H=y.component=oh(y,D,x);if(Us(y)&&(H.ctx.renderer=j),ih(H,!1,q),H.asyncDep){if(x&&x.registerDep(H,C,q),!y.el){const B=H.subTree=oe(Et);b(null,B,S,P),y.placeholder=B.el}}else C(H,y,S,P,x,O,q)},A=(y,S,P)=>{const D=S.component=y.component;if(qp(y,S,P))if(D.asyncDep&&!D.asyncResolved){G(D,S,P);return}else D.next=S,D.update();else S.el=y.el,D.vnode=S},C=(y,S,P,D,x,O,q)=>{const H=()=>{if(y.isMounted){let{next:J,bu:Z,u:ce,parent:ge,vnode:Te}=y;{const ut=au(y);if(ut){J&&(J.el=Te.el,G(y,J,q)),ut.asyncDep.then(()=>{y.isUnmounted||H()});return}}let be=J,at;nn(y,!1),J?(J.el=Te.el,G(y,J,q)):J=Te,Z&&to(Z),(at=J.props&&J.props.onVnodeBeforeUpdate)&&yt(at,ge,J,Te),nn(y,!0);const Ke=Si(y),St=y.subTree;y.subTree=Ke,_(St,Ke,f(St.el),L(St),y,x,O),J.el=Ke.el,be===null&&ni(y,Ke.el),ce&&ot(ce,x),(at=J.props&&J.props.onVnodeUpdated)&&ot(()=>yt(at,ge,J,Te),x)}else{let J;const{el:Z,props:ce}=S,{bm:ge,m:Te,parent:be,root:at,type:Ke}=y,St=pn(S);if(nn(y,!1),ge&&to(ge),!St&&(J=ce&&ce.onVnodeBeforeMount)&&yt(J,be,S),nn(y,!0),Z&&te){const ut=()=>{y.subTree=Si(y),te(Z,y.subTree,y,x,null)};St&&Ke.__asyncHydrate?Ke.__asyncHydrate(Z,y,ut):ut()}else{at.ce&&at.ce._def.shadowRoot!==!1&&at.ce._injectChildStyle(Ke);const ut=y.subTree=Si(y);_(null,ut,P,D,y,x,O),S.el=ut.el}if(Te&&ot(Te,x),!St&&(J=ce&&ce.onVnodeMounted)){const ut=S;ot(()=>yt(J,be,ut),x)}(S.shapeFlag&256||be&&pn(be.vnode)&&be.vnode.shapeFlag&256)&&y.a&&ot(y.a,x),y.isMounted=!0,S=P=D=null}};y.scope.on();const B=y.effect=new dc(H);y.scope.off();const M=y.update=B.run.bind(B),re=y.job=B.runIfDirty.bind(B);re.i=y,re.id=y.uid,B.scheduler=()=>Bs(re),nn(y,!0),M()},G=(y,S,P)=>{S.component=y;const D=y.vnode.props;y.vnode=S,y.next=null,kp(y,S.props,D,P),Dp(y,S.children,P),Gt(),Ra(y),Wt()},I=(y,S,P,D,x,O,q,H,B=!1)=>{const M=y&&y.children,re=y?y.shapeFlag:0,J=S.children,{patchFlag:Z,shapeFlag:ce}=S;if(Z>0){if(Z&128){se(M,J,P,D,x,O,q,H,B);return}else if(Z&256){ee(M,J,P,D,x,O,q,H,B);return}}ce&8?(re&16&&nt(M,x,O),J!==M&&c(P,J)):re&16?ce&16?se(M,J,P,D,x,O,q,H,B):nt(M,x,O,!0):(re&8&&c(P,""),ce&16&&K(J,P,D,x,O,q,H,B))},ee=(y,S,P,D,x,O,q,H,B)=>{y=y||Mn,S=S||Mn;const M=y.length,re=S.length,J=Math.min(M,re);let Z;for(Z=0;Z<J;Z++){const ce=S[Z]=B?Yt(S[Z]):mt(S[Z]);_(y[Z],ce,P,null,x,O,q,H,B)}M>re?nt(y,x,O,!0,!1,J):K(S,P,D,x,O,q,H,B,J)},se=(y,S,P,D,x,O,q,H,B)=>{let M=0;const re=S.length;let J=y.length-1,Z=re-1;for(;M<=J&&M<=Z;){const ce=y[M],ge=S[M]=B?Yt(S[M]):mt(S[M]);if(Qt(ce,ge))_(ce,ge,P,null,x,O,q,H,B);else break;M++}for(;M<=J&&M<=Z;){const ce=y[J],ge=S[Z]=B?Yt(S[Z]):mt(S[Z]);if(Qt(ce,ge))_(ce,ge,P,null,x,O,q,H,B);else break;J--,Z--}if(M>J){if(M<=Z){const ce=Z+1,ge=ce<re?S[ce].el:D;for(;M<=Z;)_(null,S[M]=B?Yt(S[M]):mt(S[M]),P,ge,x,O,q,H,B),M++}}else if(M>Z)for(;M<=J;)ue(y[M],x,O,!0),M++;else{const ce=M,ge=M,Te=new Map;for(M=ge;M<=Z;M++){const ft=S[M]=B?Yt(S[M]):mt(S[M]);ft.key!=null&&Te.set(ft.key,M)}let be,at=0;const Ke=Z-ge+1;let St=!1,ut=0;const or=new Array(Ke);for(M=0;M<Ke;M++)or[M]=0;for(M=ce;M<=J;M++){const ft=y[M];if(at>=Ke){ue(ft,x,O,!0);continue}let Lt;if(ft.key!=null)Lt=Te.get(ft.key);else for(be=ge;be<=Z;be++)if(or[be-ge]===0&&Qt(ft,S[be])){Lt=be;break}Lt===void 0?ue(ft,x,O,!0):(or[Lt-ge]=M+1,Lt>=ut?ut=Lt:St=!0,_(ft,S[Lt],P,null,x,O,q,H,B),at++)}const ya=St?Vp(or):Mn;for(be=ya.length-1,M=Ke-1;M>=0;M--){const ft=ge+M,Lt=S[ft],va=S[ft+1],ba=ft+1<re?va.el||va.placeholder:D;or[M]===0?_(null,Lt,P,ba,x,O,q,H,B):St&&(be<0||M!==ya[be]?pe(Lt,P,ba,2):be--)}}},pe=(y,S,P,D,x=null)=>{const{el:O,type:q,transition:H,children:B,shapeFlag:M}=y;if(M&6){pe(y.component.subTree,S,P,D);return}if(M&128){y.suspense.move(S,P,D);return}if(M&64){q.move(y,S,P,j);return}if(q===je){r(O,S,P);for(let J=0;J<B.length;J++)pe(B[J],S,P,D);r(y.anchor,S,P);return}if(q===ro){m(y,S,P);return}if(D!==2&&M&1&&H)if(D===0)H.beforeEnter(O),r(O,S,P),ot(()=>H.enter(O),x);else{const{leave:J,delayLeave:Z,afterLeave:ce}=H,ge=()=>{y.ctx.isUnmounted?o(O):r(O,S,P)},Te=()=>{O._isLeaving&&O[sp](!0),J(O,()=>{ge(),ce&&ce()})};Z?Z(O,ge,Te):Te()}else r(O,S,P)},ue=(y,S,P,D=!1,x=!1)=>{const{type:O,props:q,ref:H,children:B,dynamicChildren:M,shapeFlag:re,patchFlag:J,dirs:Z,cacheIndex:ce}=y;if(J===-2&&(x=!1),H!=null&&(Gt(),Bn(H,null,P,y,!0),Wt()),ce!=null&&(S.renderCache[ce]=void 0),re&256){S.ctx.deactivate(y);return}const ge=re&1&&Z,Te=!pn(y);let be;if(Te&&(be=q&&q.onVnodeBeforeUnmount)&&yt(be,S,y),re&6)Ce(y.component,P,D);else{if(re&128){y.suspense.unmount(P,D);return}ge&&It(y,null,S,"beforeUnmount"),re&64?y.type.remove(y,S,P,j,D):M&&!M.hasOnce&&(O!==je||J>0&&J&64)?nt(M,S,P,!1,!0):(O===je&&J&384||!x&&re&16)&&nt(B,S,P),D&&Ne(y)}(Te&&(be=q&&q.onVnodeUnmounted)||ge)&&ot(()=>{be&&yt(be,S,y),ge&&It(y,null,S,"unmounted")},P)},Ne=y=>{const{type:S,el:P,anchor:D,transition:x}=y;if(S===je){qe(P,D);return}if(S===ro){w(y);return}const O=()=>{o(P),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(y.shapeFlag&1&&x&&!x.persisted){const{leave:q,delayLeave:H}=x,B=()=>q(P,O);H?H(y.el,O,B):B()}else O()},qe=(y,S)=>{let P;for(;y!==S;)P=p(y),o(y),y=P;o(S)},Ce=(y,S,P)=>{const{bum:D,scope:x,job:O,subTree:q,um:H,m:B,a:M}=y;Ba(B),Ba(M),D&&to(D),x.stop(),O&&(O.flags|=8,ue(q,y,S,P)),H&&ot(H,S),ot(()=>{y.isUnmounted=!0},S)},nt=(y,S,P,D=!1,x=!1,O=0)=>{for(let q=O;q<y.length;q++)ue(y[q],S,P,D,x)},L=y=>{if(y.shapeFlag&6)return L(y.component.subTree);if(y.shapeFlag&128)return y.suspense.next();const S=p(y.anchor||y.el),P=S&&S[Dc];return P?p(P):S};let N=!1;const F=(y,S,P)=>{y==null?S._vnode&&ue(S._vnode,null,null,!0):_(S._vnode||null,y,S,null,null,null,P),S._vnode=y,N||(N=!0,Ra(),_o(),N=!1)},j={p:_,um:ue,m:pe,r:Ne,mt:R,mc:K,pc:I,pbc:z,n:L,o:e};let U,te;return t&&([U,te]=t(j)),{render:F,hydrate:U,createApp:Cp(F,U)}}function Ei({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 nn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function su(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ks(e,t,n=!1){const r=e.children,o=t.children;if(ne(r)&&ne(o))for(let i=0;i<r.length;i++){const s=r[i];let a=o[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[i]=Yt(o[i]),a.el=s.el),!n&&a.patchFlag!==-2&&Ks(s,a)),a.type===mn&&a.patchFlag!==-1&&(a.el=s.el),a.type===Et&&!a.el&&(a.el=s.el)}}function Vp(e){const t=e.slice(),n=[0];let r,o,i,s,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}for(i=0,s=n.length-1;i<s;)a=i+s>>1,e[n[a]]<u?i=a+1:s=a;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}function au(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:au(t)}function Ba(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const $p=Symbol.for("v-scx"),jp=()=>ht($p);function lu(e,t){return Js(e,null,t)}function Ge(e,t,n){return Js(e,t,n)}function Js(e,t,n=Ee){const{immediate:r,deep:o,flush:i,once:s}=n,a=et({},n),l=t&&r||!t&&i!=="post";let u;if(Jn){if(i==="sync"){const d=jp();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=Dt,d.resume=Dt,d.pause=Dt,d}}const c=Fe;a.call=(d,h,_)=>Mt(d,c,h,_);let f=!1;i==="post"?a.scheduler=d=>{ot(d,c&&c.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(d,h)=>{h?d():Bs(d)}),a.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const p=ep(e,t,a);return Jn&&(u?u.push(p):l&&p()),p}function Bp(e,t,n){const r=this.proxy,o=ke(e)?e.includes(".")?cu(r,e):()=>r[e]:e.bind(r,r);let i;ae(t)?i=t:(i=t.handler,n=t);const s=vn(this),a=Js(o,i.bind(r),n);return s(),a}function cu(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}const Fp=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${wt(t)}Modifiers`]||e[`${En(t)}Modifiers`];function Hp(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ee;let o=n;const i=t.startsWith("update:"),s=i&&Fp(r,t.slice(7));s&&(s.trim&&(o=n.map(c=>ke(c)?c.trim():c)),s.number&&(o=n.map(fo)));let a,l=r[a=mi(t)]||r[a=mi(wt(t))];!l&&i&&(l=r[a=mi(En(t))]),l&&Mt(l,e,6,o);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Mt(u,e,6,o)}}const Up=new WeakMap;function uu(e,t,n=!1){const r=n?Up:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let s={},a=!1;if(!ae(e)){const l=u=>{const c=uu(u,t,!0);c&&(a=!0,et(s,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Se(e)&&r.set(e,null),null):(ne(i)?i.forEach(l=>s[l]=null):et(s,i),Se(e)&&r.set(e,s),s)}function ti(e,t){return!e||!Lr(t)?!1:(t=t.slice(2).replace(/Once$/,""),ve(e,t[0].toLowerCase()+t.slice(1))||ve(e,En(t))||ve(e,t))}function Si(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[i],slots:s,attrs:a,emit:l,render:u,renderCache:c,props:f,data:p,setupState:d,ctx:h,inheritAttrs:_}=e,v=yo(e);let b,E;try{if(n.shapeFlag&4){const w=o||r,T=w;b=mt(u.call(T,w,c,f,d,p,h)),E=a}else{const w=t;b=mt(w.length>1?w(f,{attrs:a,slots:s,emit:l}):w(f,null)),E=t.props?a:Gp(a)}}catch(w){_r.length=0,er(w,e,1),b=oe(Et)}let m=b;if(E&&_!==!1){const w=Object.keys(E),{shapeFlag:T}=m;w.length&&T&7&&(i&&w.some(Ls)&&(E=Wp(E,i)),m=Kn(m,E,!1,!0))}return n.dirs&&(m=Kn(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&Fs(m,n.transition),b=m,yo(v),b}function zp(e,t=!0){let n;for(let r=0;r<e.length;r++){const o=e[r];if(qn(o)){if(o.type!==Et||o.children==="v-if"){if(n)return;n=o}}else return}return n}const Gp=e=>{let t;for(const n in e)(n==="class"||n==="style"||Lr(n))&&((t||(t={}))[n]=e[n]);return t},Wp=(e,t)=>{const n={};for(const r in e)(!Ls(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function qp(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Fa(r,s,u):!!s;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const p=c[f];if(s[p]!==r[p]&&!ti(u,p))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===s?!1:r?s?Fa(r,s,u):!0:!!s;return!1}function Fa(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!ti(n,i))return!0}return!1}function ni({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const fu=e=>e.__isSuspense;let Qi=0;const Kp={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,s,a,l,u){if(e==null)Xp(t,n,r,o,i,s,a,l,u);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Yp(e,t,n,r,o,s,a,l,u)}},hydrate:Qp,normalize:Zp},Jp=Kp;function Tr(e,t){const n=e.props&&e.props[t];ae(n)&&n()}function Xp(e,t,n,r,o,i,s,a,l){const{p:u,o:{createElement:c}}=l,f=c("div"),p=e.suspense=du(e,o,r,t,f,n,i,s,a,l);u(null,p.pendingBranch=e.ssContent,f,null,r,p,i,s),p.deps>0?(Tr(e,"onPending"),Tr(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,i,s),Fn(p,e.ssFallback)):p.resolve(!1,!0)}function Yp(e,t,n,r,o,i,s,a,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const p=t.ssContent,d=t.ssFallback,{activeBranch:h,pendingBranch:_,isInFallback:v,isHydrating:b}=f;if(_)f.pendingBranch=p,Qt(_,p)?(l(_,p,f.hiddenContainer,null,o,f,i,s,a),f.deps<=0?f.resolve():v&&(b||(l(h,d,n,r,o,null,i,s,a),Fn(f,d)))):(f.pendingId=Qi++,b?(f.isHydrating=!1,f.activeBranch=_):u(_,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),v?(l(null,p,f.hiddenContainer,null,o,f,i,s,a),f.deps<=0?f.resolve():(l(h,d,n,r,o,null,i,s,a),Fn(f,d))):h&&Qt(h,p)?(l(h,p,n,r,o,f,i,s,a),f.resolve(!0)):(l(null,p,f.hiddenContainer,null,o,f,i,s,a),f.deps<=0&&f.resolve()));else if(h&&Qt(h,p))l(h,p,n,r,o,f,i,s,a),Fn(f,p);else if(Tr(t,"onPending"),f.pendingBranch=p,p.shapeFlag&512?f.pendingId=p.component.suspenseId:f.pendingId=Qi++,l(null,p,f.hiddenContainer,null,o,f,i,s,a),f.deps<=0)f.resolve();else{const{timeout:E,pendingId:m}=f;E>0?setTimeout(()=>{f.pendingId===m&&f.fallback(d)},E):E===0&&f.fallback(d)}}function du(e,t,n,r,o,i,s,a,l,u,c=!1){const{p:f,m:p,um:d,n:h,o:{parentNode:_,remove:v}}=u;let b;const E=eh(e);E&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const m=e.props?pd(e.props.timeout):void 0,w=i,T={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:o,deps:0,pendingId:Qi++,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(k=!1,$=!1){const{vnode:K,activeBranch:W,pendingBranch:z,pendingId:le,effects:ie,parentComponent:Y,container:R}=T;let A=!1;T.isHydrating?T.isHydrating=!1:k||(A=W&&z.transition&&z.transition.mode==="out-in",A&&(W.transition.afterLeave=()=>{le===T.pendingId&&(p(z,R,i===w?h(W):i,0),Wi(ie))}),W&&(_(W.el)===R&&(i=h(W)),d(W,Y,T,!0)),A||p(z,R,i,0)),Fn(T,z),T.pendingBranch=null,T.isInFallback=!1;let C=T.parent,G=!1;for(;C;){if(C.pendingBranch){C.effects.push(...ie),G=!0;break}C=C.parent}!G&&!A&&Wi(ie),T.effects=[],E&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,t.deps===0&&!$&&t.resolve()),Tr(K,"onResolve")},fallback(k){if(!T.pendingBranch)return;const{vnode:$,activeBranch:K,parentComponent:W,container:z,namespace:le}=T;Tr($,"onFallback");const ie=h(K),Y=()=>{T.isInFallback&&(f(null,k,z,ie,W,null,le,a,l),Fn(T,k))},R=k.transition&&k.transition.mode==="out-in";R&&(K.transition.afterLeave=Y),T.isInFallback=!0,d(K,W,null,!0),R||Y()},move(k,$,K){T.activeBranch&&p(T.activeBranch,k,$,K),T.container=k},next(){return T.activeBranch&&h(T.activeBranch)},registerDep(k,$,K){const W=!!T.pendingBranch;W&&T.deps++;const z=k.vnode.el;k.asyncDep.catch(le=>{er(le,k,0)}).then(le=>{if(k.isUnmounted||T.isUnmounted||T.pendingId!==k.suspenseId)return;k.asyncResolved=!0;const{vnode:ie}=k;ts(k,le),z&&(ie.el=z);const Y=!z&&k.subTree.el;$(k,ie,_(z||k.subTree.el),z?null:h(k.subTree),T,s,K),Y&&v(Y),ni(k,ie.el),W&&--T.deps===0&&T.resolve()})},unmount(k,$){T.isUnmounted=!0,T.activeBranch&&d(T.activeBranch,n,k,$),T.pendingBranch&&d(T.pendingBranch,n,k,$)}};return T}function Qp(e,t,n,r,o,i,s,a,l){const u=t.suspense=du(t,r,n,e.parentNode,document.createElement("div"),null,o,i,s,a,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,i,s);return u.deps===0&&u.resolve(!1,!0),c}function Zp(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Ha(r?n.default:n),e.ssFallback=r?Ha(n.fallback):oe(Et)}function Ha(e){let t;if(ae(e)){const n=Wn&&e._c;n&&(e._d=!1,Q()),e=e(),n&&(e._d=!0,t=lt,hu())}return ne(e)&&(e=zp(e)),e=mt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function pu(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):Wi(e)}function Fn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,ni(r,o))}function eh(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const je=Symbol.for("v-fgt"),mn=Symbol.for("v-txt"),Et=Symbol.for("v-cmt"),ro=Symbol.for("v-stc"),_r=[];let lt=null;function Q(e=!1){_r.push(lt=e?null:[])}function hu(){_r.pop(),lt=_r[_r.length-1]||null}let Wn=1;function wo(e,t=!1){Wn+=e,e<0&<&&t&&(lt.hasOnce=!0)}function mu(e){return e.dynamicChildren=Wn>0?lt||Mn:null,hu(),Wn>0&<&<.push(e),e}function me(e,t,n,r,o,i){return mu(he(e,t,n,r,o,i,!0))}function xe(e,t,n,r,o){return mu(oe(e,t,n,r,o,!0))}function qn(e){return e?e.__v_isVNode===!0:!1}function Qt(e,t){return e.type===t.type&&e.key===t.key}const gu=({key:e})=>e??null,oo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||we(e)||ae(e)?{i:He,r:e,k:t,f:!!n}:e:null);function he(e,t=null,n=null,r=0,o=null,i=e===je?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&gu(t),ref:t&&oo(t),scopeId:Ic,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:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:He};return a?(Xs(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=ke(n)?8:16),Wn>0&&!s&<&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&<.push(l),l}const oe=th;function th(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===Uc)&&(e=Et),qn(e)){const a=Kn(e,t,!0);return n&&Xs(a,n),Wn>0&&!i&<&&(a.shapeFlag&6?lt[lt.indexOf(e)]=a:lt.push(a)),a.patchFlag=-2,a}if(ch(e)&&(e=e.__vccOpts),t){t=_u(t);let{class:a,style:l}=t;a&&!ke(a)&&(t.class=Ue(a)),Se(l)&&($s(l)&&!ne(l)&&(l=et({},l)),t.style=_n(l))}const s=ke(e)?1:fu(e)?128:rp(e)?64:Se(e)?4:ae(e)?2:0;return he(e,t,n,r,o,s,i,!0)}function _u(e){return e?$s(e)||Zc(e)?et({},e):e:null}function Kn(e,t,n=!1,r=!1){const{props:o,ref:i,patchFlag:s,children:a,transition:l}=e,u=t?Ys(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&gu(u),ref:t&&t.ref?n&&i?ne(i)?i.concat(oo(t)):[i,oo(t)]:oo(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==je?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Kn(e.ssContent),ssFallback:e.ssFallback&&Kn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Fs(c,l.clone(c)),c}function st(e=" ",t=0){return oe(mn,null,e,t)}function Ze(e="",t=!1){return t?(Q(),xe(Et,null,e)):oe(Et,null,e)}function mt(e){return e==null||typeof e=="boolean"?oe(Et):ne(e)?oe(je,null,e.slice()):qn(e)?Yt(e):oe(mn,null,String(e))}function Yt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Kn(e)}function Xs(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ne(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Xs(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Zc(t)?t._ctx=He:o===3&&He&&(He.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ae(t)?(t={default:t,_ctx:He},n=32):(t=String(t),r&64?(n=16,t=[st(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ys(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=Ue([t.class,r.class]));else if(o==="style")t.style=_n([t.style,r.style]);else if(Lr(o)){const i=t[o],s=r[o];s&&i!==s&&!(ne(i)&&i.includes(s))&&(t[o]=i?[].concat(i,s):s)}else o!==""&&(t[o]=r[o])}return t}function yt(e,t,n,r=null){Mt(e,t,7,[n,r])}const nh=Xc();let rh=0;function oh(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||nh,i={uid:rh++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new fc(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:tu(r,o),emitsOptions:uu(r,o),emit:null,emitted:null,propsDefaults:Ee,inheritAttrs:r.inheritAttrs,ctx:Ee,data:Ee,props:Ee,attrs:Ee,slots:Ee,refs:Ee,setupState:Ee,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Hp.bind(null,i),e.ce&&e.ce(i),i}let Fe=null;const Ct=()=>Fe||He;let Eo,Zi;{const e=Ko(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),i=>{o.length>1?o.forEach(s=>s(i)):o[0](i)}};Eo=t("__VUE_INSTANCE_SETTERS__",n=>Fe=n),Zi=t("__VUE_SSR_SETTERS__",n=>Jn=n)}const vn=e=>{const t=Fe;return Eo(e),e.scope.on(),()=>{e.scope.off(),Eo(t)}},es=()=>{Fe&&Fe.scope.off(),Eo(null)};function yu(e){return e.vnode.shapeFlag&4}let Jn=!1;function ih(e,t=!1,n=!1){t&&Zi(t);const{props:r,children:o}=e.vnode,i=yu(e);Lp(e,r,i,t),Ip(e,o,n||t);const s=i?sh(e,t):void 0;return t&&Zi(!1),s}function sh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,yp);const{setup:r}=n;if(r){Gt();const o=e.setupContext=r.length>1?bu(e):null,i=vn(e),s=Or(r,e,0,[e.props,o]),a=xs(s);if(Wt(),i(),(a||e.sp)&&!pn(e)&&Hs(e),a){if(s.then(es,es),t)return s.then(l=>{ts(e,l)}).catch(l=>{er(l,e,0)});e.asyncDep=s}else ts(e,s)}else vu(e)}function ts(e,t,n){ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Se(t)&&(e.setupState=Lc(t)),vu(e)}function vu(e,t,n){const r=e.type;e.render||(e.render=r.render||Dt);{const o=vn(e);Gt();try{Ep(e)}finally{Wt(),o()}}}const ah={get(e,t){return Ye(e,"get",""),e[t]}};function bu(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,ah),slots:e.slots,emit:e.emit,expose:t}}function ri(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Lc(Ud(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in gr)return gr[n](e)},has(t,n){return n in t||n in gr}})):e.proxy}function lh(e,t=!0){return ae(e)?e.displayName||e.name:e.name||t&&e.__name}function ch(e){return ae(e)&&"__vccOpts"in e}const de=(e,t)=>Qd(e,t,Jn);function bn(e,t,n){const r=(i,s,a)=>{wo(-1);try{return oe(i,s,a)}finally{wo(1)}},o=arguments.length;return o===2?Se(t)&&!ne(t)?qn(t)?r(e,null,[t]):r(e,t):r(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&qn(n)&&(n=[n]),r(e,t,n))}const uh="3.5.21";/**
|
|
16
16
|
* @vue/runtime-dom v3.5.21
|
|
17
17
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
18
18
|
* @license MIT
|
|
19
|
-
**/let ns;const Ua=typeof window<"u"&&window.trustedTypes;if(Ua)try{ns=Ua.createPolicy("vue",{createHTML:e=>e})}catch{}const wu=ns?e=>ns.createHTML(e):e=>e,fh="http://www.w3.org/2000/svg",dh="http://www.w3.org/1998/Math/MathML",Bt=typeof document<"u"?document:null,za=Bt&&Bt.createElement("template"),ph={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"?Bt.createElementNS(fh,e):t==="mathml"?Bt.createElementNS(dh,e):n?Bt.createElement(e,{is:n}):Bt.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Bt.createTextNode(e),createComment:e=>Bt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Bt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const s=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{za.innerHTML=wu(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=za.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},hh=Symbol("_vtc");function mh(e,t,n){const r=e[hh];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const So=Symbol("_vod"),Eu=Symbol("_vsh"),gh={name:"show",beforeMount(e,{value:t},{transition:n}){e[So]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):sr(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),sr(e,!0),r.enter(e)):r.leave(e,()=>{sr(e,!1)}):sr(e,t))},beforeUnmount(e,{value:t}){sr(e,t)}};function sr(e,t){e.style.display=t?e[So]:"none",e[Eu]=!t}const _h=Symbol(""),yh=/(?:^|;)\s*display\s*:/;function vh(e,t,n){const r=e.style,o=ke(n);let i=!1;if(n&&!o){if(t)if(ke(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&io(r,a,"")}else for(const s in t)n[s]==null&&io(r,s,"");for(const s in n)s==="display"&&(i=!0),io(r,s,n[s])}else if(o){if(t!==n){const s=r[_h];s&&(n+=";"+s),r.cssText=n,i=yh.test(n)}}else t&&e.removeAttribute("style");So in e&&(e[So]=i?r.display:"",e[Eu]&&(r.display="none"))}const Ga=/\s*!important$/;function io(e,t,n){if(ne(n))n.forEach(r=>io(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=bh(e,t);Ga.test(n)?e.setProperty(En(r),n.replace(Ga,""),"important"):e[r]=n}}const Wa=["Webkit","Moz","ms"],Ti={};function bh(e,t){const n=Ti[t];if(n)return n;let r=wt(t);if(r!=="filter"&&r in e)return Ti[t]=r;r=qo(r);for(let o=0;o<Wa.length;o++){const i=Wa[o]+r;if(i in e)return Ti[t]=i}return t}const qa="http://www.w3.org/1999/xlink";function Ka(e,t,n,r,o,i=bd(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(qa,t.slice(6,t.length)):e.setAttributeNS(qa,t,n):n==null||i&&!lc(n)?e.removeAttribute(t):e.setAttribute(t,i?"":At(n)?String(n):n)}function Ja(e,t,n,r,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?wu(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=lc(n):n==null&&a==="string"?(n="",s=!0):a==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(o||t)}function Ut(e,t,n,r){e.addEventListener(t,n,r)}function wh(e,t,n,r){e.removeEventListener(t,n,r)}const Xa=Symbol("_vei");function Eh(e,t,n,r,o=null){const i=e[Xa]||(e[Xa]={}),s=i[t];if(r&&s)s.value=r;else{const[a,l]=Sh(t);if(r){const u=i[t]=Ah(r,o);Ut(e,a,u,l)}else s&&(wh(e,a,s,l),i[t]=void 0)}}const Ya=/(?:Once|Passive|Capture)$/;function Sh(e){let t;if(Ya.test(e)){t={};let r;for(;r=e.match(Ya);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):En(e.slice(2)),t]}let Ri=0;const Th=Promise.resolve(),Rh=()=>Ri||(Th.then(()=>Ri=0),Ri=Date.now());function Ah(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Mt(Ph(r,n.value),t,5,[r])};return n.value=e,n.attached=Rh(),n}function Ph(e,t){if(ne(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const Qa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ch=(e,t,n,r,o,i)=>{const s=o==="svg";t==="class"?mh(e,r,s):t==="style"?vh(e,n,r):Lr(t)?Ls(t)||Eh(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Lh(e,t,r,s))?(Ja(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ka(e,t,r,s,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ke(r))?Ja(e,wt(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Ka(e,t,r,s))};function Lh(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Qa(t)&&ae(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||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 Qa(t)&&ke(n)?!1:t in e}const tn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ne(t)?n=>to(t,n):t};function kh(e){e.target.composing=!0}function Za(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const bt=Symbol("_assign"),el={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[bt]=tn(o);const i=r||o.props&&o.props.type==="number";Ut(e,t?"change":"input",s=>{if(s.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=fo(a)),e[bt](a)}),n&&Ut(e,"change",()=>{e.value=e.value.trim()}),t||(Ut(e,"compositionstart",kh),Ut(e,"compositionend",Za),Ut(e,"change",Za))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:i}},s){if(e[bt]=tn(s),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?fo(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||o&&e.value.trim()===l)||(e.value=l))}},xh={deep:!0,created(e,t,n){e[bt]=tn(n),Ut(e,"change",()=>{const r=e._modelValue,o=Xn(e),i=e.checked,s=e[bt];if(ne(r)){const a=Is(r,o),l=a!==-1;if(i&&!l)s(r.concat(o));else if(!i&&l){const u=[...r];u.splice(a,1),s(u)}}else if(Zn(r)){const a=new Set(r);i?a.add(o):a.delete(o),s(a)}else s(Ru(e,i))})},mounted:tl,beforeUpdate(e,t,n){e[bt]=tn(n),tl(e,t,n)}};function tl(e,{value:t,oldValue:n},r){e._modelValue=t;let o;if(ne(t))o=Is(t,r.props.value)>-1;else if(Zn(t))o=t.has(r.props.value);else{if(t===n)return;o=yn(t,Ru(e,!0))}e.checked!==o&&(e.checked=o)}const Su={created(e,{value:t},n){e.checked=yn(t,n.props.value),e[bt]=tn(n),Ut(e,"change",()=>{e[bt](Xn(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[bt]=tn(r),t!==n&&(e.checked=yn(t,r.props.value))}},Tu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Zn(t);Ut(e,"change",()=>{const i=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?fo(Xn(s)):Xn(s));e[bt](e.multiple?o?new Set(i):i:i[0]),e._assigning=!0,Rt(()=>{e._assigning=!1})}),e[bt]=tn(r)},mounted(e,{value:t}){nl(e,t)},beforeUpdate(e,t,n){e[bt]=tn(n)},updated(e,{value:t}){e._assigning||nl(e,t)}};function nl(e,t){const n=e.multiple,r=ne(t);if(!(n&&!r&&!Zn(t))){for(let o=0,i=e.options.length;o<i;o++){const s=e.options[o],a=Xn(s);if(n)if(r){const l=typeof a;l==="string"||l==="number"?s.selected=t.some(u=>String(u)===String(a)):s.selected=Is(t,a)>-1}else s.selected=t.has(a);else if(yn(Xn(s),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Xn(e){return"_value"in e?e._value:e.value}function Ru(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Oh={created(e,t,n){Ur(e,t,n,null,"created")},mounted(e,t,n){Ur(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Ur(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Ur(e,t,n,r,"updated")}};function Ih(e,t){switch(e){case"SELECT":return Tu;case"TEXTAREA":return el;default:switch(t){case"checkbox":return xh;case"radio":return Su;default:return el}}}function Ur(e,t,n,r,o){const s=Ih(e.tagName,n.props&&n.props.type)[o];s&&s(e,t,n,r)}const Au=et({patchProp:Ch},ph);let yr,rl=!1;function Dh(){return yr||(yr=Np(Au))}function Nh(){return yr=rl?yr:Mp(Au),rl=!0,yr}const Mh=((...e)=>{const t=Dh().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Cu(r);if(!o)return;const i=t._component;!ae(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,Pu(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t}),Vh=((...e)=>{const t=Nh().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Cu(r);if(o)return n(o,!0,Pu(o))},t});function Pu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Cu(e){return ke(e)?document.querySelector(e):e}const $h=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,jh=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Bh=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Fh(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Hh(e);return}return t}function Hh(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function To(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Bh.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if($h.test(e)||jh.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Fh)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const Uh=/#/g,zh=/&/g,Gh=/\//g,Wh=/=/g,Qs=/\+/g,qh=/%5e/gi,Kh=/%60/gi,Jh=/%7c/gi,Xh=/%20/gi;function Yh(e){return encodeURI(""+e).replace(Jh,"|")}function rs(e){return Yh(typeof e=="string"?e:JSON.stringify(e)).replace(Qs,"%2B").replace(Xh,"+").replace(Uh,"%23").replace(zh,"%26").replace(Kh,"`").replace(qh,"^").replace(Gh,"%2F")}function Ai(e){return rs(e).replace(Wh,"%3D")}function Ro(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Qh(e){return Ro(e.replace(Qs," "))}function Zh(e){return Ro(e.replace(Qs," "))}function oi(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const o=Qh(r[1]);if(o==="__proto__"||o==="constructor")continue;const i=Zh(r[2]||"");t[o]===void 0?t[o]=i:Array.isArray(t[o])?t[o].push(i):t[o]=[t[o],i]}return t}function em(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Ai(e)}=${rs(n)}`).join("&"):`${Ai(e)}=${rs(t)}`:Ai(e)}function Lu(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>em(t,e[t])).filter(Boolean).join("&")}const tm=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,nm=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,rm=/^([/\\]\s*){2,}[^/\\]/,om=/^[\s\0]*(blob|data|javascript|vbscript):$/i,im=/\/$|\/\?|\/#/,sm=/^\.?\//;function Sn(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?tm.test(e):nm.test(e)||(t.acceptRelative?rm.test(e):!1)}function am(e){return!!e&&om.test(e)}function os(e="",t){return t?im.test(e):e.endsWith("/")}function ii(e="",t){if(!t)return(os(e)?e.slice(0,-1):e)||"/";if(!os(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");o!==-1&&(n=e.slice(0,o),r=e.slice(o));const[i,...s]=n.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(s.length>0?`?${s.join("?")}`:"")+r}function Ao(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(os(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");if(o!==-1&&(n=e.slice(0,o),r=e.slice(o),!n))return r;const[i,...s]=n.split("?");return i+"/"+(s.length>0?`?${s.join("?")}`:"")+r}function lm(e=""){return e.startsWith("/")}function ol(e=""){return lm(e)?e:"/"+e}function cm(e,t){if(xu(t)||Sn(e))return e;const n=ii(t);return e.startsWith(n)?e:Dr(n,e)}function um(e,t){if(xu(t))return e;const n=ii(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function ku(e,t){const n=Iu(e),r={...oi(n.search),...t};return n.search=Lu(r),Du(n)}function xu(e){return!e||e==="/"}function fm(e){return e&&e!=="/"}function Dr(e,...t){let n=e||"";for(const r of t.filter(o=>fm(o)))if(n){const o=r.replace(sm,"");n=Ao(n)+o}else n=r;return n}function dm(e,t,n={}){return n.trailingSlash||(e=Ao(e),t=Ao(t)),n.leadingSlash||(e=ol(e),t=ol(t)),n.encoding||(e=Ro(e),t=Ro(t)),e===t}const Ou=Symbol.for("ufo:protocolRelative");function Iu(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,p=""]=n;return{protocol:f.toLowerCase(),pathname:p,href:f+p,auth:"",host:"",search:"",hash:""}}if(!Sn(e,{acceptRelative:!0}))return il(e);const[,r="",o,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:c}=il(a);return{protocol:r.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:s,pathname:l,search:u,hash:c,[Ou]:!r}}function il(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Du(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",o=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[Ou]?(e.protocol||"")+"//":"")+o+i+t+n+r}class pm extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function hm(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",o=`[${n}] ${JSON.stringify(r)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",s=`${o}: ${i}${t?` ${t}`:""}`,a=new pm(s,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return e[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return e.response&&e.response[u]}});return a}const mm=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function sl(e="GET"){return mm.has(e.toUpperCase())}function gm(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const _m=new Set(["image/svg","application/xml","application/xhtml","application/html"]),ym=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function vm(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return ym.test(t)?"json":_m.has(t)||t.startsWith("text/")?"text":"blob"}function bm(e,t,n,r){const o=wm(t?.headers??e?.headers,n?.headers,r);let i;return(n?.query||n?.params||t?.params||t?.query)&&(i={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:i,params:i,headers:o}}function wm(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[o,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(o,i);return r}async function zr(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const Em=new Set([408,409,425,429,500,502,503,504]),Sm=new Set([101,204,205,304]);function Nu(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function o(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;typeof a.options.retry=="number"?c=a.options.retry:c=sl(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):Em.has(f))){const p=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return p>0&&await new Promise(d=>setTimeout(d,p)),i(a.request,{...a.options,retry:c-1})}}const u=hm(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(l,u={}){const c={request:l,options:bm(l,u,e.defaults,n),response:void 0,error:void 0};c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&await zr(c,c.options.onRequest),typeof c.request=="string"&&(c.options.baseURL&&(c.request=cm(c.request,c.options.baseURL)),c.options.query&&(c.request=ku(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&sl(c.options.method)&&(gm(c.options.body)?(c.options.body=typeof c.options.body=="string"?c.options.body:JSON.stringify(c.options.body),c.options.headers=new n(c.options.headers||{}),c.options.headers.has("content-type")||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")):("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half")));let f;if(!c.options.signal&&c.options.timeout){const d=new r;f=setTimeout(()=>{const h=new Error("[TimeoutError]: The operation was aborted due to timeout");h.name="TimeoutError",h.code=23,d.abort(h)},c.options.timeout),c.options.signal=d.signal}try{c.response=await t(c.request,c.options)}catch(d){return c.error=d,c.options.onRequestError&&await zr(c,c.options.onRequestError),await o(c)}finally{f&&clearTimeout(f)}if((c.response.body||c.response._bodyInit)&&!Sm.has(c.response.status)&&c.options.method!=="HEAD"){const d=(c.options.parseResponse?"json":c.options.responseType)||vm(c.response.headers.get("content-type")||"");switch(d){case"json":{const h=await c.response.text(),_=c.options.parseResponse||To;c.response._data=_(h);break}case"stream":{c.response._data=c.response.body||c.response._bodyInit;break}default:c.response._data=await c.response[d]()}}return c.options.onResponse&&await zr(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await zr(c,c.options.onResponseError),await o(c)):c.response},s=async function(l,u){return(await i(l,u))._data};return s.raw=i,s.native=(...a)=>t(...a),s.create=(a={},l={})=>Nu({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),s}const Po=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),Tm=Po.fetch?(...e)=>Po.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Rm=Po.Headers,Am=Po.AbortController,Pm=Nu({fetch:Tm,Headers:Rm,AbortController:Am}),Cm=Pm,Lm=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,km=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,xm=/^([/\\]\s*){2,}[^/\\]/;function Om(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Lm.test(e):km.test(e)||(t.acceptRelative?xm.test(e):!1)}function Mu(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let o=0;for(const s of n)if(!(!s||s==="/")){for(const[a,l]of s.split(t).entries())if(!(!l||l===".")){if(l===".."){if(r.length===1&&Om(r[0]))continue;r.pop(),o--;continue}if(a===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+l;continue}r.push(l),o++}}let i=r.join("/");return o>=0?n[0]?.startsWith("/")&&!i.startsWith("/")?i="/"+i:n[0]?.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*o)+i,n[n.length-1]?.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}const Im=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,Zs=()=>Im().app,Dm=()=>Zs().baseURL,Nm=()=>Zs().buildAssetsDir,ea=(...e)=>Mu(Vu(),Nm(),...e),Vu=(...e)=>{const t=Zs(),n=t.cdnURL||t.baseURL;return e.length?Mu(n,...e):n};globalThis.__buildAssetsURL=ea,globalThis.__publicAssetsURL=Vu;globalThis.$fetch||(globalThis.$fetch=Cm.create({baseURL:Dm()}));"global"in globalThis||(globalThis.global=globalThis);function is(e,t={},n){for(const r in e){const o=e[r],i=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?is(o,t,i):typeof o=="function"&&(t[i]=o)}return t}const Mm={run:e=>e()},Vm=()=>Mm,$u=typeof console.createTask<"u"?console.createTask:Vm;function $m(e,t){const n=t.shift(),r=$u(n);return e.reduce((o,i)=>o.then(()=>r.run(()=>i(...t))),Promise.resolve())}function jm(e,t){const n=t.shift(),r=$u(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function Pi(e,t){for(const n of[...e])n(t)}class Bm{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!r.allowDeprecated){let s=i.message;s||(s=`${o} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...i)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...i));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=is(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=is(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith($m,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(jm,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Pi(this._before,o);const i=t(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&o&&Pi(this._after,o)}):(this._after&&o&&Pi(this._after,o),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function ju(){return new Bm}function Fm(e={}){let t,n=!1;const r=s=>{if(t&&t!==s)throw new Error("Context conflict")};let o;if(e.asyncContext){const s=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;s?o=new s:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>{if(o){const s=o.getStore();if(s!==void 0)return s}return t};return{use:()=>{const s=i();if(s===void 0)throw new Error("Context is not available");return s},tryUse:()=>i(),set:(s,a)=>{a||r(s),t=s,n=!0},unset:()=>{t=void 0,n=!1},call:(s,a)=>{r(s),t=s;try{return o?o.run(s,a):a()}finally{n||(t=void 0)}},async callAsync(s,a){t=s;const l=()=>{t=s},u=()=>t===s?l:void 0;ss.add(u);try{const c=o?o.run(s,a):a();return n||(t=void 0),await c}finally{ss.delete(u)}}}}function Hm(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Fm({...e,...r})),t[n]}}}const Co=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},al="__unctx__",Um=Co[al]||(Co[al]=Hm()),zm=(e,t={})=>Um.get(e,t),ll="__unctx_async_handlers__",ss=Co[ll]||(Co[ll]=new Set);function Bu(e){const t=[];for(const o of ss){const i=o();i&&t.push(i)}const n=()=>{for(const o of t)o()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(o=>{throw n(),o})),[r,n]}const cl={id:"__nuxt-loader"},Gm={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Wm={deep:!1},qm={},Km="#__nuxt",Fu="nuxt-app",ul=36e5,Jm="vite:preloadError";function Hu(e=Fu){return zm(e,{asyncContext:!1})}const Xm="__nuxt_plugin";function Ym(e){let t=0;const n={_id:e.id||Fu||"nuxt-app",_scope:Ed(),provide:void 0,versions:{get nuxt(){return"4.1.2"},get vue(){return n.vueApp.version}},payload:xn({...e.ssrContext?.payload||{},data:xn({}),state:Nt({}),once:new Set,_errors:xn({})}),static:{data:{}},runWithContext(o){return n._scope.active&&!xr()?n._scope.run(()=>fl(n,o)):fl(n,o)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:xn({}),_payloadRevivers:{},...e};{const o=window.__NUXT__;if(o)for(const i in o)switch(i){case"data":case"state":case"_errors":Object.assign(n.payload[i],o[i]);break;default:n.payload[i]=o[i]}}n.hooks=ju(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,i)=>{const s="$"+o;Gr(n,s,i),Gr(n.vueApp.config.globalProperties,s,i)},Gr(n.vueApp,"$nuxt",n),Gr(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(Jm,i=>{n.callHook("app:chunkError",{error:i.payload}),i.payload.message.includes("Unable to preload CSS")&&i.preventDefault()}),window.useNuxtApp||=Oe;const o=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",o)}const r=n.payload.config;return n.provide("config",r),n}function Qm(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function Zm(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function eg(e,t){const n=new Set,r=[],o=[];let i,s=0;async function a(l){const u=l.dependsOn?.filter(c=>t.some(f=>f._name===c)&&!n.has(c))??[];if(u.length>0)r.push([new Set(u),l]);else{const c=Zm(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(r.map(async([f,p])=>{f.has(l._name)&&(f.delete(l._name),f.size===0&&(s++,await a(p)))})))}).catch(f=>{if(!l.parallel&&!e.payload.error)throw f;i||=f});l.parallel?o.push(c):await c}}for(const l of t)Qm(e,l);for(const l of t)await a(l);if(await Promise.all(o),s)for(let l=0;l<s;l++)await Promise.all(o);if(i)throw e.payload.error||i}function Jt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[Xm]:!0,_name:t})}function fl(e,t,n){const r=()=>t();return Hu(e._id).set(e),e.vueApp.runWithContext(r)}function tg(e){let t;return Gs()&&(t=Ct()?.appContext.app.$nuxt),t||=Hu(e).tryUse(),t||null}function Oe(e){const t=tg(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function Yn(e){return Oe().$config}function Gr(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function ng(e,t){return{ctx:{table:e},matchAll:n=>zu(n,e)}}function Uu(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,o])=>[r,Uu(o)])):new Map(Object.entries(e[n]));return t}function rg(e){return ng(Uu(e))}function zu(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[i,s]of dl(t.wildcard))(e===i||e.startsWith(i+"/"))&&r.push(s);for(const[i,s]of dl(t.dynamic))if(e.startsWith(i+"/")){const a="/"+e.slice(i.length).split("/").splice(2).join("/");r.push(...zu(a,s))}const o=t.static.get(e);return o&&r.push(o),r.filter(Boolean)}function dl(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function Ci(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function as(e,t,n=".",r){if(!Ci(t))return as(e,{},n,r);const o=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const s=e[i];s!=null&&(r&&r(o,i,s,n)||(Array.isArray(s)&&Array.isArray(o[i])?o[i]=[...s,...o[i]]:Ci(s)&&Ci(o[i])?o[i]=as(s,o[i],(n?`${n}.`:"")+i.toString(),r):o[i]=s))}return o}function og(e){return(...t)=>t.reduce((n,r)=>as(n,r,"",e),{})}const ig=og();function sg(e,t){try{return t in e}catch{return!1}}class pl extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,n={}){super(t,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:ls(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=Gu(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function ag(e){if(typeof e=="string")return new pl(e);if(lg(e))return e;const t=new pl(e.message??e.statusMessage??"",{cause:e.cause||e});if(sg(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=ls(e.statusCode,t.statusCode):e.status&&(t.statusCode=ls(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Gu(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function lg(e){return e?.constructor?.__h3_error__===!0}const cg=/[^\u0009\u0020-\u007E]/g;function Gu(e=""){return e.replace(cg,"")}function ls(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Wu=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const Vt=()=>Oe()?.$router,qu=()=>Gs()?ht(Wu,Oe()._route):Oe()._route;const ug=()=>{try{if(Oe()._processingMiddleware)return!0}catch{return!1}return!1},Ku=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?cs(e):Vt().resolve(e).href;if(t?.open){const{target:l="_blank",windowFeatures:u={}}=t.open,c=[];for(const[f,p]of Object.entries(u))p!==void 0&&c.push(`${f.toLowerCase()}=${p}`);return open(n,l,c.join(", ")),Promise.resolve()}const r=Sn(n,{acceptRelative:!0}),o=t?.external||r;if(o){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&am(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const i=ug();if(!o&&i){if(t?.replace){if(typeof e=="string"){const{pathname:l,search:u,hash:c}=Iu(e);return{path:l,...u&&{query:oi(u)},...c&&{hash:c},replace:!0}}return{...e,replace:!0}}return e}const s=Vt(),a=Oe();return o?(a._scope.stop(),t?.replace?location.replace(n):location.href=n,i?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t?.replace?s.replace(e):s.push(e)};function cs(e){return ku(e.path||"",e.query||{})+(e.hash||"")}const Ju="__nuxt_error",ta=()=>js(Oe().payload,"error"),fg=e=>{const t=si(e);try{const n=Oe(),r=ta();n.hooks.callHook("app:error",t),r.value||=t}catch{throw t}return t},dg=async(e={})=>{const t=Oe(),n=ta();t.callHook("app:error:cleared",e),e.redirect&&await Vt().replace(e.redirect),n.value=void 0},pg=e=>!!e&&typeof e=="object"&&Ju in e,si=e=>{const t=ag(e);return Object.defineProperty(t,Ju,{value:!0,configurable:!1,writable:!1}),t};function hg(e){const t=gg(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let o=0;o<n.byteLength;o++)r.setUint8(o,t.charCodeAt(o));return n}const mg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function gg(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let o=0;o<e.length;o++)n<<=6,n|=mg.indexOf(e[o]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const _g=-1,yg=-2,vg=-3,bg=-4,wg=-5,Eg=-6;function Sg(e,t){return Tg(JSON.parse(e),t)}function Tg(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function o(i,s=!1){if(i===_g)return;if(i===vg)return NaN;if(i===bg)return 1/0;if(i===wg)return-1/0;if(i===Eg)return-0;if(s||typeof i!="number")throw new Error("Invalid input");if(i in r)return r[i];const a=n[i];if(!a||typeof a!="object")r[i]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],u=t?.[l];if(u)return r[i]=u(o(a[1]));switch(l){case"Date":r[i]=new Date(a[1]);break;case"Set":const c=new Set;r[i]=c;for(let d=1;d<a.length;d+=1)c.add(o(a[d]));break;case"Map":const f=new Map;r[i]=f;for(let d=1;d<a.length;d+=2)f.set(o(a[d]),o(a[d+1]));break;case"RegExp":r[i]=new RegExp(a[1],a[2]);break;case"Object":r[i]=Object(a[1]);break;case"BigInt":r[i]=BigInt(a[1]);break;case"null":const p=Object.create(null);r[i]=p;for(let d=1;d<a.length;d+=2)p[a[d]]=o(a[d+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const d=globalThis[l],h=new d(o(a[1]));r[i]=a[2]!==void 0?h.subarray(a[2],a[3]):h;break}case"ArrayBuffer":{const d=a[1],h=hg(d);r[i]=h;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const d=l.slice(9);r[i]=Temporal[d].from(a[1]);break}case"URL":{const d=new URL(a[1]);r[i]=d;break}case"URLSearchParams":{const d=new URLSearchParams(a[1]);r[i]=d;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);r[i]=l;for(let u=0;u<a.length;u+=1){const c=a[u];c!==yg&&(l[u]=o(c))}}else{const l={};r[i]=l;for(const u in a){if(u==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const c=a[u];l[u]=o(c)}}return r[i]}return o(0)}const Rg=new Set(["link","style","script","noscript"]),Ag=new Set(["title","titleTemplate","script","style","noscript"]),hl=new Set(["base","meta","link","style","script","noscript"]),Pg=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),Cg=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),Lg=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),kg=new Set(["templateParams","htmlAttrs","bodyAttrs"]),xg=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),Og=["name","property","http-equiv"],Ig=new Set(["viewport","description","keywords","robots"]);function Xu(e){const t=e.split(":");return t.length?xg.has(t[1]):!1}function us(e){const{props:t,tag:n}=e;if(Cg.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const r of Og)if(t[r]!==void 0){const o=t[r],i=o.includes(":"),s=Ig.has(o),l=!(i||s)&&e.key?`:key:${e.key}`:"";return`${n}:${o}${l}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(Ag.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function ml(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([r,o])=>`${r}:${String(o)}`).join(",")}`}function Lo(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());let o;if(t&&(o=t(n,e)),Array.isArray(o))return o.map(i=>Lo(i,t));if(o?.constructor===Object){const i={};for(const s of Object.keys(o))i[s]=Lo(o[s],t,s);return i}return o}function Dg(e,t){const n=e==="style"?new Map:new Set;function r(o){const i=o.trim();if(i)if(e==="style"){const[s,...a]=i.split(":").map(l=>l.trim());s&&a.length&&n.set(s,a.join(":"))}else i.split(" ").filter(Boolean).forEach(s=>n.add(s))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(o=>r(o)):t&&typeof t=="object"&&Object.entries(t).forEach(([o,i])=>{i&&i!=="false"&&(e==="style"?n.set(o.trim(),i):r(o))}),n}function Yu(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=Dg(n,r);return}if(Lg.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let s=t.type;if(t.type||(s="application/json"),!s?.endsWith("json")&&s!=="speculationrules")return;t.type=s,e.props.type=s,e[n]=JSON.stringify(r)}else e[n]=r;return}const o=String(r),i=n.startsWith("data-");o==="true"||o===""?e.props[n]=i?o:!0:!r&&i&&o==="false"?e.props[n]="false":r!==void 0&&(e.props[n]=r)}),e):e}function Ng(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=Yu({tag:e,props:{}},n);return r.key&&Rg.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(o=>({...r,props:{...r.props,content:o}})):r}function Mg(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(o,i)=>{for(let s=0;s<t.length;s++)i=t[s](o,i);return i};e=n(void 0,e);const r=[];return e=Lo(e,n),Object.entries(e||{}).forEach(([o,i])=>{if(i!==void 0)for(const s of Array.isArray(i)?i:[i])r.push(Ng(o,s))}),r.flat()}const gl=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,_l={base:-10,title:10},Vg={critical:-8,high:-1,low:2},yl={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},$g=/@import/,ar=e=>e===""||e===!0;function jg(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=Vg[t.tagPriority]||0,o=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:yl;if(t.tag in _l)n=_l[t.tag];else if(t.tag==="meta"){const i=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;i&&(n=yl.meta[i])}else t.tag==="link"&&t.props.rel?n=o.link[t.props.rel]:t.tag==="script"?ar(t.props.async)?n=o.script.async:t.props.src&&!ar(t.props.defer)&&!ar(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?n=o.script.sync:ar(t.props.defer)&&t.props.src&&!ar(t.props.async)&&(n=o.script.defer):t.tag==="style"&&(n=t.innerHTML&&$g.test(t.innerHTML)?o.style.imported:o.style.sync);return(n||100)+r}function vl(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function Bg(e={}){const t=ju();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,o=new Map,i=new Set,s={_entryCount:1,plugins:o,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:a=>vl(s,a),push(a,l){const u={...l||{}};delete u.head;const c=u._index??s._entryCount++,f={_i:c,input:a,options:u},p={_poll(d=!1){s.dirty=!0,!d&&i.add(c),t.callHook("entries:updated",s)},dispose(){r.delete(c)&&s.invalidate()},patch(d){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(f.input=d,r.set(c,f),p._poll())}};return p.patch(a),p},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...s.entries.values()]};for(await t.callHook("entries:resolve",a);i.size;){const p=i.values().next().value;i.delete(p);const d=r.get(p);if(d){const h={tags:Mg(d.input,e.propResolvers||[]).map(_=>Object.assign(_,d.options)),entry:d};await t.callHook("entries:normalize",h),d._tags=h.tags.map((_,v)=>(_._w=jg(s,_),_._p=(d._i<<10)+v,_._d=us(_),_))}}let l=!1;a.entries.flatMap(p=>(p._tags||[]).map(d=>({...d,props:{...d.props}}))).sort(gl).reduce((p,d)=>{const h=String(d._d||d._p);if(!p.has(h))return p.set(h,d);const _=p.get(h);if((d?.tagDuplicateStrategy||(kg.has(d.tag)?"merge":null)||(d.key&&d.key===_.key?"merge":null))==="merge"){const b={..._.props};Object.entries(d.props).forEach(([E,m])=>b[E]=E==="style"?new Map([..._.props.style||new Map,...m]):E==="class"?new Set([..._.props.class||new Set,...m]):m),p.set(h,{...d,props:b})}else d._p>>10===_._p>>10&&d.tag==="meta"&&Xu(h)?(p.set(h,Object.assign([...Array.isArray(_)?_:[_],d],d)),l=!0):(d._w===_._w?d._p>_._p:d?._w<_?._w)&&p.set(h,d);return p},a.tagMap);const u=a.tagMap.get("title"),c=a.tagMap.get("titleTemplate");if(s._title=u?.textContent,c){const p=c?.textContent;if(s._titleTemplate=p,p){let d=typeof p=="function"?p(u?.textContent):p;typeof d=="string"&&!s.plugins.has("template-params")&&(d=d.replace("%s",u?.textContent||"")),u?d===null?a.tagMap.delete("title"):a.tagMap.set("title",{...u,textContent:d}):(c.tag="title",c.textContent=d)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(gl)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const f=[];for(const p of a.tags){const{innerHTML:d,tag:h,props:_}=p;if(Pg.has(h)&&!(Object.keys(_).length===0&&!p.innerHTML&&!p.textContent)&&!(h==="meta"&&!_.content&&!_["http-equiv"]&&!_.charset)){if(h==="script"&&d){if(_.type?.endsWith("json")){const v=typeof d=="string"?d:JSON.stringify(d);p.innerHTML=v.replace(/</g,"\\u003C")}else typeof d=="string"&&(p.innerHTML=d.replace(new RegExp(`</${h}`,"g"),`<\\/${h}`));p._d=us(p)}f.push(p)}}return f},invalidate(){for(const a of r.values())i.add(a._i);s.dirty=!0,t.callHook("entries:updated",s)}};return(e?.plugins||[]).forEach(a=>vl(s,a)),s.hooks.callHook("init",s),e.init?.forEach(a=>a&&s.push(a)),s}const Fg=(e,t)=>we(t)?Le(t):t,Qu="usehead";function Hg(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Qu,e)}}.install}function Ug(){if(Gs()){const e=ht(Qu);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function VE(e,t={}){const n=t.head||Ug();return n.ssr?n.push(e||{},t):zg(n,e,t)}function zg(e,t,n={}){const r=_e(!1);let o;return lu(()=>{const s=r.value?{}:Lo(t,Fg);o?o.patch(s):o=e.push(s,n)}),Ct()&&(Ir(()=>{o.dispose()}),$c(()=>{r.value=!0}),Vc(()=>{r.value=!1})),o}const Gg="modulepreload",Wg=function(e,t){return new URL(e,t).href},bl={},g=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");o=u(n.map(c=>{if(c=Wg(c,r),c in bl)return;bl[c]=!0;const f=c.endsWith(".css"),p=f?'[rel="stylesheet"]':"";if(!!r)for(let _=s.length-1;_>=0;_--){const v=s[_];if(v.href===c&&(!f||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${p}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":Gg,f||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),f)return new Promise((_,v)=>{h.addEventListener("load",_),h.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};let so,ao;function qg(){return so=$fetch(ea(`builds/meta/${Yn().app.buildId}.json`),{responseType:"json"}),so.then(e=>{ao=rg(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),so}function ai(){return so||qg()}async function na(e){const t=typeof e=="string"?e:e.path;if(await ai(),!ao)return console.error("[nuxt] Error creating app manifest matcher.",ao),{};try{return ig({},...ao.matchAll(t).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function wl(e,t={}){if(!await ef(e))return null;const r=await Jg(e,t);return await Zu(r)||null}const Kg="_payload.json";async function Jg(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||Sn(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=Yn(),o=t.hash||(t.fresh?Date.now():r.app.buildId),i=r.app.cdnURL,s=i&&await ef(e)?i:r.app.baseURL;return Dr(s,n.pathname,Kg+(o?`?${o}`:""))}async function Zu(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(tf));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function ef(e=qu().path){const t=Oe();return e=ii(e),(await ai()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const r=await na({path:e});return!!r.prerender&&!r.redirect})}let rn=null;async function Xg(){if(rn)return rn;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await tf(e.textContent||""),n=e.dataset.src?await Zu(e.dataset.src):void 0;return rn={...t,...n,...window.__NUXT__},rn.config?.public&&(rn.config.public=Nt(rn.config.public)),rn}async function tf(e){return await Sg(e,Oe()._payloadRevivers)}function Yg(e,t){Oe()._payloadRevivers[e]=t}const Qg=[["NuxtError",e=>si(e)],["EmptyShallowRef",e=>ze(e==="_"?void 0:e==="0n"?BigInt(0):To(e))],["EmptyRef",e=>_e(e==="_"?void 0:e==="0n"?BigInt(0):To(e))],["ShallowRef",e=>ze(e)],["ShallowReactive",e=>xn(e)],["Ref",e=>_e(e)],["Reactive",e=>Nt(e)]],Zg=Jt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,o]of Qg)Yg(r,o);Object.assign(e.payload,([t,n]=Bu(()=>e.runWithContext(Xg)),t=await t,n(),t)),delete window.__NUXT__}});async function ra(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async o=>{const i=new Map,s=new Promise(d=>{e.resolveTags().then(h=>{d(h.map(_=>{const v=i.get(_._d)||0,b={tag:_,id:(v?`${_._d}:${v}`:_._d)||ml(_),shouldRender:!0};return _._d&&Xu(_._d)&&i.set(_._d,v+1),b}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const d of["body","head"]){const h=n[d]?.children;for(const _ of h){const v=_.tagName.toLowerCase();if(!hl.has(v))continue;const b=Yu({tag:v,props:{}},{innerHTML:_.innerHTML,..._.getAttributeNames().reduce((E,m)=>(E[m]=_.getAttribute(m),E),{})||{}});if(b.key=_.getAttribute("data-hid")||void 0,b._d=us(b)||ml(b),a.elMap.has(b._d)){let E=1,m=b._d;for(;a.elMap.has(m);)m=`${b._d}:${E++}`;a.elMap.set(m,_)}else a.elMap.set(b._d,_)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(d,h,_){const v=`${d}:${h}`;a.sideEffects[v]=_,delete a.pendingSideEffects[v]}function u({id:d,$el:h,tag:_}){const v=_.tag.endsWith("Attrs");a.elMap.set(d,h),v||(_.textContent&&_.textContent!==h.textContent&&(h.textContent=_.textContent),_.innerHTML&&_.innerHTML!==h.innerHTML&&(h.innerHTML=_.innerHTML),l(d,"el",()=>{h?.remove(),a.elMap.delete(d)}));for(const b in _.props){if(!Object.prototype.hasOwnProperty.call(_.props,b))continue;const E=_.props[b];if(b.startsWith("on")&&typeof E=="function"){const w=h?.dataset;if(w&&w[`${b}fired`]){const T=b.slice(0,-5);E.call(h,new Event(T.substring(2)))}h.getAttribute(`data-${b}`)!==""&&((_.tag==="bodyAttrs"?n.defaultView:h).addEventListener(b.substring(2),E.bind(h)),h.setAttribute(`data-${b}`,""));continue}const m=`attr:${b}`;if(b==="class"){if(!E)continue;for(const w of E)v&&l(d,`${m}:${w}`,()=>h.classList.remove(w)),!h.classList.contains(w)&&h.classList.add(w)}else if(b==="style"){if(!E)continue;for(const[w,T]of E)l(d,`${m}:${w}`,()=>{h.style.removeProperty(w)}),h.style.setProperty(w,T)}else E!==!1&&E!==null&&(h.getAttribute(b)!==E&&h.setAttribute(b,E===!0?"":String(E)),v&&l(d,m,()=>h.removeAttribute(b)))}}const c=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},p=await s;for(const d of p){const{tag:h,shouldRender:_,id:v}=d;if(_){if(h.tag==="title"){n.title=h.textContent,l("title","",()=>n.title=a.title);continue}d.$el=d.$el||a.elMap.get(v),d.$el?u(d):hl.has(h.tag)&&c.push(d)}}for(const d of c){const h=d.tag.tagPosition||"head";d.$el=n.createElement(d.tag.tag),u(d),f[h]=f[h]||n.createDocumentFragment(),f[h].appendChild(d.$el)}for(const d of p)await e.hooks.callHook("dom:renderTag",d,n,l);f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.body.appendChild(f.bodyClose);for(const d in a.pendingSideEffects)a.pendingSideEffects[d]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:p}),o()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function e_(e={}){const t=e.domOptions?.render||ra;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return Bg({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function t_(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function n_(e={}){const t=e_({domOptions:{render:t_(()=>ra(t),n=>setTimeout(n,0))},...e});return t.install=Hg(t),t}const r_={disableDefaults:!0},o_=Jt({name:"nuxt:head",enforce:"pre",setup(e){const t=n_(r_);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await ra(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}}),i_=async e=>{let t,n;const r=([t,n]=Bu(()=>na({path:e.path})),t=await t,n(),t);if(r.redirect)return Sn(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},s_=[i_];function Li(e){const t=e&&typeof e=="object"?e:{};typeof e=="object"&&(e=Du({pathname:e.path||"",search:Lu(e.query||{}),hash:e.hash||""}));const n=new URL(e.toString(),window.location.href);return{path:n.pathname,fullPath:e,query:oi(n.search),hash:n.hash,params:t.params||{},name:void 0,matched:t.matched||[],redirectedFrom:void 0,meta:t.meta||{},href:e}}const a_=Jt({name:"nuxt:router",enforce:"pre",setup(e){const t=um(window.location.pathname,Yn().app.baseURL)+window.location.search+window.location.hash,n=[],r={"navigate:before":[],"resolve:before":[],"navigate:after":[],error:[]},o=(f,p)=>(r[f].push(p),()=>r[f].splice(r[f].indexOf(p),1)),i=Yn().app.baseURL,s=Nt(Li(t));async function a(f,p){try{const d=Li(f);for(const h of r["navigate:before"]){const _=await h(d,s);if(_===!1||_ instanceof Error)return;if(typeof _=="string"&&_.length)return a(_,!0)}for(const h of r["resolve:before"])await h(d,s);Object.assign(s,d),window.history[p?"replaceState":"pushState"]({},"",Dr(i,d.fullPath)),e.isHydrating||await e.runWithContext(dg);for(const h of r["navigate:after"])await h(d,s)}catch(d){for(const h of r.error)await h(d)}}const u={currentRoute:pe(()=>s),isReady:()=>Promise.resolve(),options:{},install:()=>Promise.resolve(),push:f=>a(f,!1),replace:f=>a(f,!0),back:()=>window.history.go(-1),go:f=>window.history.go(f),forward:()=>window.history.go(1),beforeResolve:f=>o("resolve:before",f),beforeEach:f=>o("navigate:before",f),afterEach:f=>o("navigate:after",f),onError:f=>o("error",f),resolve:Li,addRoute:(f,p)=>{n.push(p)},getRoutes:()=>n,hasRoute:f=>n.some(p=>p.name===f),removeRoute:f=>{const p=n.findIndex(d=>d.name===f);p!==-1&&n.splice(p,1)}};e.vueApp.component("RouterLink",gt({functional:!0,props:{to:{type:String,required:!0},custom:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:String},setup:(f,{slots:p})=>{const d=()=>a(f.to,f.replace);return()=>{const h=u.resolve(f.to);return f.custom?p.default?.({href:f.to,navigate:d,route:h}):bn("a",{href:f.to,onClick:_=>(_.preventDefault(),d())},p)}}})),window.addEventListener("popstate",f=>{const p=f.target.location;u.replace(p.href.replace(p.origin,""))}),e._route=s,e._middleware||={global:[],named:{}};const c=e.payload.state._layout;return e.hooks.hookOnce("app:created",async()=>{u.beforeEach(async(f,p)=>{f.meta=Nt(f.meta||{}),e.isHydrating&&c&&!qt(f.meta.layout)&&(f.meta.layout=c),e._processingMiddleware=!0;{const d=new Set([...s_,...e._middleware.global]);{const h=await e.runWithContext(()=>na({path:f.path}));if(h.appMiddleware)for(const _ in h.appMiddleware){const v=e._middleware.named[_];if(!v)return;h.appMiddleware[_]?d.add(v):d.delete(v)}}for(const h of d){const _=await e.runWithContext(()=>h(f,p));if(_!==!0&&(_||_===!1))return _}}}),u.afterEach(()=>{delete e._processingMiddleware}),await u.replace(t),dm(s.fullPath,t)||await e.runWithContext(()=>Ku(s.fullPath))}),{provide:{route:s,router:u}}}}),fs=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),l_=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),li=e=>{const t=Oe();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{fs(()=>e())}):fs(()=>e())},c_=Jt({name:"nuxt:payload",setup(e){const t=new Set;Vt().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const o=await wl(n.path);if(o){for(const i of t)delete e.static.data[i];for(const i in o.data)i in e.static.data||t.add(i),e.static.data[i]=o.data[i]}}),li(()=>{e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await wl(n).catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(ai,1e3)})}}),u_=Jt(()=>{const e=Vt();li(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),f_=Jt(e=>{let t;async function n(){let r;try{r=await ai()}catch(o){const i=o;if(!("status"in i&&(i.status===404||i.status===403)))throw i}t&&clearTimeout(t),t=setTimeout(n,ul);try{const o=await $fetch(ea("builds/latest.json")+`?${Date.now()}`);o.id!==r?.id&&(e.hooks.callHook("app:manifest:update",o),t&&clearTimeout(t))}catch{}}li(()=>{t=setTimeout(n,ul)})});function d_(e={}){const t=e.path||window.location.pathname;let n={};try{n=To(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||n?.path!==t||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Oe().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const p_=Jt({name:"nuxt:chunk-reload",setup(e){const t=Vt(),n=Yn(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:i})=>{r.add(i)});function o(i){const s=Dr(n.app.baseURL,i.fullPath);d_({path:s,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((i,s)=>{r.has(i)&&o(s)})}}),h_=Jt({name:"nuxt:global-components"}),m_=Jt(()=>{}),g_=[Zg,o_,a_,c_,u_,f_,p_,h_,m_];function __(e,t){const n=t/e*100;return 2/Math.PI*100*Math.atan(n/50)}function y_(e={}){const{duration:t=2e3,throttle:n=200,hideDelay:r=500,resetDelay:o=400}=e,i=e.estimatedProgress||__,s=Oe(),a=ze(0),l=ze(!1),u=ze(!1);let c=!1,f,p,d,h;const _=($={})=>{m(),u.value=!1,v(0,$)};function v($=0,K={}){if(s.isHydrating)return;if($>=100)return E({force:K.force});w(),a.value=$<0?0:$;const W=K.force?0:n;W?p=setTimeout(()=>{l.value=!0,T()},W):(l.value=!0,T())}function b(){d=setTimeout(()=>{l.value=!1,h=setTimeout(()=>{a.value=0},o)},r)}function E($={}){a.value=100,c=!0,w(),m(),$.error&&(u.value=!0),$.force?(a.value=0,l.value=!1):b()}function m(){clearTimeout(d),clearTimeout(h)}function w(){clearTimeout(p),cancelAnimationFrame(f)}function T(){c=!1;let $;function K(W){if(c)return;$??=W;const z=W-$;a.value=Math.max(0,Math.min(100,i(t,z))),f=requestAnimationFrame(K)}f=requestAnimationFrame(K)}let k=()=>{};{const $=s.hook("page:loading:start",()=>{_()}),K=s.hook("page:loading:end",()=>{E()}),W=s.hook("vue:error",()=>E());k=()=>{W(),$(),K(),w()}}return{_cleanup:k,progress:pe(()=>a.value),isLoading:pe(()=>l.value),error:pe(()=>u.value),start:_,set:v,finish:E,clear:w}}function v_(e={}){const t=Oe(),n=t._loadingIndicator||=y_(e);return xr()&&(t._loadingIndicatorDeps||=0,t._loadingIndicatorDeps++,Ds(()=>{t._loadingIndicatorDeps--,t._loadingIndicatorDeps===0&&(n._cleanup(),delete t._loadingIndicator)})),n}const b_=gt({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},hideDelay:{type:Number,default:500},resetDelay:{type:Number,default:400},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},errorColor:{type:String,default:"repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)"},estimatedProgress:{type:Function,required:!1}},setup(e,{slots:t,expose:n}){const{progress:r,isLoading:o,error:i,start:s,finish:a,clear:l}=v_({duration:e.duration,throttle:e.throttle,hideDelay:e.hideDelay,resetDelay:e.resetDelay,estimatedProgress:e.estimatedProgress});return n({progress:r,isLoading:o,error:i,start:s,finish:a,clear:l}),()=>bn("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${e.height}px`,opacity:o.value?1:0,background:i.value?e.errorColor:e.color||void 0,backgroundSize:`${r.value>0?100/r.value*100:0}% auto`,transform:`scaleX(${r.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},t)}});let nf;function Hn(e){nf?.(e)}function w_(e){nf=e}const E_={__name:"NNotification",setup(e){const t=_e(!1),n=_e(),r=_e(),o=_e(),i=_e("top-center");return w_(s=>{r.value=s.message,n.value=s.icon,o.value=s.classes??"text-primary border-primary",n.value=s.icon,t.value=!0,i.value=s.position??"top-center",setTimeout(()=>{t.value=!1},s.duration??1500)}),(s,a)=>(Q(),me("div",{fixed:"","left-0":"","right-0":"","z-999":"","text-center":"",class:Ue([{"pointer-events-none overflow-hidden":!t.value},{"top-0":i.value.startsWith("top")},{"bottom-0":i.value.startsWith("bottom")}])},[he("div",{flex:"",style:_n({justifyContent:i.value.includes("right")?"right":i.value.includes("left")?"left":"center"})},[he("div",{border:"~ base",flex:"~ inline gap2","m-3":"","inline-block":"","items-center":"",rounded:"","bg-base":"","px-4":"","py-1":"","transition-all":"","duration-300":"",style:_n(t.value?{}:{transform:`translateY(${i.value.startsWith("top")?"-":""}300%)`}),class:Ue([t.value?"shadow":"shadow-none",o.value])},[n.value?(Q(),me("div",{key:0,class:Ue(n.value)},null,2)):Ze("",!0),he("div",null,Pt(r.value),1)],6)],4)],2))}},Tn={__name:"NIcon",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>(Q(),me("div",{class:Ue(["n-icon",e.icon])},null,2))}};async function rf(e,t=Vt()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const o=t._preloadPromises||=[];if(o.length>4)return Promise.all(o).then(()=>rf(e,t));t._routePreloaded.add(n);for(const i of r){const s=i.components?.default;if(typeof s!="function")continue;const a=Promise.resolve(s()).catch(()=>{}).finally(()=>o.splice(o.indexOf(a)));o.push(a)}await Promise.all(o)}const S_=(...e)=>e.find(t=>t!==void 0);function T_(e){const t=e.componentName||"NuxtLink";function n(i){return typeof i=="string"&&i.startsWith("#")}function r(i,s,a){const l=a??e.trailingSlash;if(!i||l!=="append"&&l!=="remove")return i;if(typeof i=="string")return Wr(i,l);const u="path"in i&&i.path!==void 0?i.path:s(i).path;return{...i,name:void 0,path:Wr(u,l)}}function o(i){const s=Vt(),a=Yn(),l=pe(()=>!!i.target&&i.target!=="_self"),u=pe(()=>{const v=i.to||i.href||"";return typeof v=="string"&&Sn(v,{acceptRelative:!0})}),c=Ia("RouterLink"),f=typeof c!="string"?c.useLink:void 0,p=pe(()=>{if(i.external)return!0;const v=i.to||i.href||"";return typeof v=="object"?!1:v===""||u.value}),d=pe(()=>{const v=i.to||i.href||"";return p.value?v:r(v,s.resolve,i.trailingSlash)}),h=p.value?void 0:f?.({...i,to:d}),_=pe(()=>{const v=i.trailingSlash??e.trailingSlash;if(!d.value||u.value||n(d.value))return d.value;if(p.value){const b=typeof d.value=="object"&&"path"in d.value?cs(d.value):d.value,E=typeof b=="object"?s.resolve(b).href:b;return Wr(E,v)}return typeof d.value=="object"?s.resolve(d.value)?.href??null:Wr(Dr(a.app.baseURL,d.value),v)});return{to:d,hasTarget:l,isAbsoluteUrl:u,isExternal:p,href:_,isActive:h?.isActive??pe(()=>d.value===s.currentRoute.value.path),isExactActive:h?.isExactActive??pe(()=>d.value===s.currentRoute.value.path),route:h?.route??pe(()=>s.resolve(d.value)),async navigate(v){await Ku(_.value,{replace:i.replace,external:p.value||l.value})}}}return gt({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:o,setup(i,{slots:s}){const a=Vt(),{to:l,href:u,navigate:c,isExternal:f,hasTarget:p,isAbsoluteUrl:d}=o(i),h=ze(!1),_=_e(null),v=m=>{_.value=i.custom?m?.$el?.nextElementSibling:m?.$el};function b(m){return!h.value&&(typeof i.prefetchOn=="string"?i.prefetchOn===m:i.prefetchOn?.[m]??e.prefetchOn?.[m])&&(i.prefetch??e.prefetch)!==!1&&i.noPrefetch!==!0&&i.target!=="_blank"&&!C_()}async function E(m=Oe()){if(h.value)return;h.value=!0;const w=typeof l.value=="string"?l.value:f.value?cs(l.value):a.resolve(l.value).fullPath,T=f.value?new URL(w,window.location.href).href:w;await Promise.all([m.hooks.callHook("link:prefetch",T).catch(()=>{}),!f.value&&!p.value&&rf(l.value,a).catch(()=>{})])}if(b("visibility")){const m=Oe();let w,T=null;tr(()=>{const k=A_();li(()=>{w=fs(()=>{_?.value?.tagName&&(T=k.observe(_.value,async()=>{T?.(),T=null,await E(m)}))})})}),Ir(()=>{w&&l_(w),T?.(),T=null})}return()=>{if(!f.value&&!p.value&&!n(l.value)){const T={ref:v,to:l.value,activeClass:i.activeClass||e.activeClass,exactActiveClass:i.exactActiveClass||e.exactActiveClass,replace:i.replace,ariaCurrentValue:i.ariaCurrentValue,custom:i.custom};return i.custom||(b("interaction")&&(T.onPointerenter=E.bind(null,void 0),T.onFocus=E.bind(null,void 0)),h.value&&(T.class=i.prefetchedClass||e.prefetchedClass),T.rel=i.rel||void 0),bn(Ia("RouterLink"),T,s.default)}const m=i.target||null,w=S_(i.noRel?"":i.rel,e.externalRelAttribute,d.value||p.value?"noopener noreferrer":"")||null;return i.custom?s.default?s.default({href:u.value,navigate:c,prefetch:E,get route(){if(!u.value)return;const T=new URL(u.value,window.location.href);return{path:T.pathname,fullPath:T.pathname,get query(){return oi(T.search)},hash:T.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:u.value}},rel:w,target:m,isExternal:f.value||p.value,isActive:!1,isExactActive:!1}):null:bn("a",{ref:_,href:u.value||null,rel:w,target:m,onClick:T=>{if(!(f.value||p.value))return T.preventDefault(),i.replace?a.replace(u.value):a.push(u.value)}},s.default?.())}}})}const R_=T_(Gm);function Wr(e,t){const n=t==="append"?Ao:ii;return Sn(e)&&!e.startsWith("http")?e:n(e,!0)}function A_(){const e=Oe();if(e._observer)return e._observer;let t=null;const n=new Map,r=(i,s)=>(t||=new IntersectionObserver(a=>{for(const l of a){const u=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&u&&u()}}),n.set(i,s),t.observe(i),()=>{n.delete(i),t?.unobserve(i),n.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:r}}const P_=/2g/;function C_(){const e=navigator.connection;return!!(e&&(e.saveData||P_.test(e.effectiveType)))}const oa=gt({name:"NButton",props:{to:String,icon:String,border:{type:Boolean,default:!0},disabled:Boolean,type:{type:String,default:"button"}},setup(e,{attrs:t,slots:n}){return()=>bn(e.to?R_:"button",{to:e.to,...t,...!e.to&&{type:e.type},...e.disabled?{disabled:!0}:{tabindex:0},class:[e.border?"n-button-base active:n-button-active focus-visible:n-focus-base hover:n-button-hover":"",n.default?"":"n-icon-button","n-button n-transition n-disabled:n-disabled"].join(" ")},{default:()=>[tt(n,"icon",{},()=>e.icon?[bn(Tn,{icon:e.icon,class:n.default?"n-button-icon":""})]:[]),tt(n,"default")]})}}),ia=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},L_={},k_={class:"n-loading n-panel-grids-center"},x_={class:"flex flex-col animate-pulse items-center text-lg"};function O_(e,t){return Q(),me("div",k_,[he("div",x_,[t[1]||(t[1]=he("div",{class:"i-carbon-circle-dash animate-spin text-4xl op50"},null,-1)),tt(e.$slots,"default",{},()=>[t[0]||(t[0]=st(" Loading... ",-1))])])])}const of=Object.assign(ia(L_,[["render",O_]]),{__name:"NLoading"}),I_={class:"n-tip n-tip-base"},sf={__name:"NTip",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>{const r=Tn;return Q(),me("div",I_,[tt(t.$slots,"icon",{},()=>[e.icon?(Q(),xe(r,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):Ze("",!0)]),he("div",null,[tt(t.$slots,"default")])])}}},D_={},N_={class:"n-card n-card-base"};function M_(e,t){return Q(),me("div",N_,[tt(e.$slots,"default")])}const ci=Object.assign(ia(D_,[["render",M_]]),{__name:"NCard"}),V_={flex:"~ gap-3","items-center":""},$_={__name:"NIconTitle",props:{icon:{type:String,required:!1},text:{type:String,required:!1}},setup(e){return(t,n)=>(Q(),me("div",V_,[e.icon?(Q(),me("div",{key:0,class:Ue(e.icon)},null,2)):Ze("",!0),tt(t.$slots,"default",{},()=>[he("div",null,Pt(e.text),1)])]))}},j_={},B_={class:"n-badge"};function F_(e,t){return Q(),me("span",B_,[tt(e.$slots,"default")])}const af=Object.assign(ia(j_,[["render",F_]]),{__name:"NBadge"});function lf(e,t){return xr()?(Ds(e,t),!0):!1}const sa=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const H_=e=>typeof e<"u",U_=e=>e!=null,z_=Object.prototype.toString,G_=e=>z_.call(e)==="[object Object]",fr=()=>{};function W_(...e){if(e.length!==1)return js(...e);const t=e[0];return typeof t=="function"?Gn(qd(()=>({get:t,set:fr}))):_e(t)}function q_(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}const cf=e=>e();function K_(e=cf,t={}){const{initialState:n="active"}=t,r=W_(n==="active");function o(){r.value=!1}function i(){r.value=!0}const s=(...a)=>{r.value&&e(...a)};return{isActive:Gn(r),pause:o,resume:i,eventFilter:s}}function J_(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const r=t;t=void 0,r&&await r},n}function lo(e){return Array.isArray(e)?e:[e]}function X_(e){return Ct()}function Y_(e,t,n={}){const{eventFilter:r=cf,...o}=n;return Ge(e,q_(r,t),o)}function Q_(e,t,n={}){const{eventFilter:r,initialState:o="active",...i}=n,{eventFilter:s,pause:a,resume:l,isActive:u}=K_(r,{initialState:o});return{stop:Y_(e,t,{...i,eventFilter:s}),pause:a,resume:l,isActive:u}}function Z_(e,t=!0,n){X_()?tr(e,n):t?e():Rt(e)}function ey(e,t,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n,i=ze(!1);let s;function a(){s&&(clearTimeout(s),s=void 0)}function l(){i.value=!1,a()}function u(...c){o&&e(),a(),i.value=!0,s=setTimeout(()=>{i.value=!1,s=void 0,e(...c)},Le(t))}return r&&(i.value=!0,sa&&u()),lf(l),{isPending:Hd(i),start:u,stop:l}}function ty(e,t,n){return Ge(e,t,{...n,immediate:!0})}const cn=sa?window:void 0,uf=sa?window.navigator:void 0;function In(e){var t;const n=Le(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function gn(...e){const t=(r,o,i,s)=>(r.addEventListener(o,i,s),()=>r.removeEventListener(o,i,s)),n=pe(()=>{const r=lo(Le(e[0])).filter(o=>o!=null);return r.every(o=>typeof o!="string")?r:void 0});return ty(()=>{var r,o;return[(r=(o=n.value)===null||o===void 0?void 0:o.map(i=>In(i)))!==null&&r!==void 0?r:[cn].filter(i=>i!=null),lo(Le(n.value?e[1]:e[0])),lo(X(n.value?e[2]:e[1])),Le(n.value?e[3]:e[2])]},([r,o,i,s],a,l)=>{if(!r?.length||!o?.length||!i?.length)return;const u=G_(s)?{...s}:s,c=r.flatMap(f=>o.flatMap(p=>i.map(d=>t(f,p,d,u))));l(()=>{c.forEach(f=>f())})},{flush:"post"})}function ny(e,t,n={}){const{window:r=cn,ignore:o=[],capture:i=!0,detectIframe:s=!1,controls:a=!1}=n;if(!r)return a?{stop:fr,cancel:fr,trigger:fr}:fr;let l=!0;const u=v=>Le(o).some(b=>{if(typeof b=="string")return Array.from(r.document.querySelectorAll(b)).some(E=>E===v.target||v.composedPath().includes(E));{const E=In(b);return E&&(v.target===E||v.composedPath().includes(E))}});function c(v){const b=Le(v);return b&&b.$.subTree.shapeFlag===16}function f(v,b){const E=Le(v),m=E.$.subTree&&E.$.subTree.children;return m==null||!Array.isArray(m)?!1:m.some(w=>w.el===b.target||b.composedPath().includes(w.el))}const p=v=>{const b=In(e);if(v.target!=null&&!(!(b instanceof Element)&&c(e)&&f(e,v))&&!(!b||b===v.target||v.composedPath().includes(b))){if("detail"in v&&v.detail===0&&(l=!u(v)),!l){l=!0;return}t(v)}};let d=!1;const h=[gn(r,"click",v=>{d||(d=!0,setTimeout(()=>{d=!1},0),p(v))},{passive:!0,capture:i}),gn(r,"pointerdown",v=>{const b=In(e);l=!u(v)&&!!(b&&!v.composedPath().includes(b))},{passive:!0}),s&&gn(r,"blur",v=>{setTimeout(()=>{var b;const E=In(e);((b=r.document.activeElement)===null||b===void 0?void 0:b.tagName)==="IFRAME"&&!E?.contains(r.document.activeElement)&&t(v)},0)},{passive:!0})].filter(Boolean),_=()=>h.forEach(v=>v());return a?{stop:_,cancel:()=>{l=!1},trigger:v=>{l=!0,p(v),l=!1}}:_}function ry(){const e=ze(!1),t=Ct();return t&&tr(()=>{e.value=!0},t),e}function ff(e){const t=ry();return pe(()=>(t.value,!!e()))}function El(e,t={}){const{controls:n=!1,navigator:r=uf}=t,o=ff(()=>r&&"permissions"in r),i=ze(),s=typeof e=="string"?{name:e}:e,a=ze(),l=()=>{var c,f;a.value=(c=(f=i.value)===null||f===void 0?void 0:f.state)!==null&&c!==void 0?c:"prompt"};gn(i,"change",l,{passive:!0});const u=J_(async()=>{if(o.value){if(!i.value)try{i.value=await r.permissions.query(s)}catch{i.value=void 0}finally{l()}if(n)return ye(i.value)}});return u(),n?{state:a,isSupported:o,query:u}:a}function oy(e={}){const{navigator:t=uf,read:n=!1,source:r,copiedDuring:o=1500,legacy:i=!1}=e,s=ff(()=>t&&"clipboard"in t),a=El("clipboard-read"),l=El("clipboard-write"),u=pe(()=>s.value||i),c=ze(""),f=ze(!1),p=ey(()=>f.value=!1,o,{immediate:!1});async function d(){let E=!(s.value&&b(a.value));if(!E)try{c.value=await t.clipboard.readText()}catch{E=!0}E&&(c.value=v())}u.value&&n&&gn(["copy","cut"],d,{passive:!0});async function h(E=Le(r)){if(u.value&&E!=null){let m=!(s.value&&b(l.value));if(!m)try{await t.clipboard.writeText(E)}catch{m=!0}m&&_(E),c.value=E,f.value=!0,p.start()}}function _(E){const m=document.createElement("textarea");m.value=E,m.style.position="absolute",m.style.opacity="0",m.setAttribute("readonly",""),document.body.appendChild(m),m.select(),document.execCommand("copy"),m.remove()}function v(){var E,m,w;return(E=(m=document)===null||m===void 0||(w=m.getSelection)===null||w===void 0||(w=w.call(m))===null||w===void 0?void 0:w.toString())!==null&&E!==void 0?E:""}function b(E){return E==="granted"||E==="prompt"}return{isSupported:u,text:Gn(c),copied:Gn(f),copy:h}}function iy(e){return JSON.parse(JSON.stringify(e))}const qr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Kr="__vueuse_ssr_handlers__",sy=ay();function ay(){return Kr in qr||(qr[Kr]=qr[Kr]||{}),qr[Kr]}function ly(e,t){return sy[e]||t}function cy(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const uy={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Sl="vueuse-storage";function fy(e,t,n,r={}){var o;const{flush:i="pre",deep:s=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=cn,eventFilter:p,onError:d=R=>{console.error(R)},initOnMounted:h}=r,_=(c?ze:_e)(typeof t=="function"?t():t),v=pe(()=>Le(e));if(!n)try{n=ly("getDefaultStorage",()=>cn?.localStorage)()}catch(R){d(R)}if(!n)return _;const b=Le(t),E=cy(b),m=(o=r.serializer)!==null&&o!==void 0?o:uy[E],{pause:w,resume:T}=Q_(_,R=>z(R),{flush:i,deep:s,eventFilter:p});Ge(v,()=>ie(),{flush:i});let k=!1;const $=R=>{h&&!k||ie(R)},K=R=>{h&&!k||Y(R)};f&&a&&(n instanceof Storage?gn(f,"storage",$,{passive:!0}):gn(f,Sl,K)),h?Z_(()=>{k=!0,ie()}):ie();function W(R,A){if(f){const C={key:v.value,oldValue:R,newValue:A,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",C):new CustomEvent(Sl,{detail:C}))}}function z(R){try{const A=n.getItem(v.value);if(R==null)W(A,null),n.removeItem(v.value);else{const C=m.write(R);A!==C&&(n.setItem(v.value,C),W(A,C))}}catch(A){d(A)}}function le(R){const A=R?R.newValue:n.getItem(v.value);if(A==null)return l&&b!=null&&n.setItem(v.value,m.write(b)),b;if(!R&&u){const C=m.read(A);return typeof u=="function"?u(C,b):E==="object"&&!Array.isArray(C)?{...b,...C}:C}else return typeof A!="string"?A:m.read(A)}function ie(R){if(!(R&&R.storageArea!==n)){if(R&&R.key==null){_.value=b;return}if(!(R&&R.key!==v.value)){w();try{const A=m.write(_.value);(R===void 0||R?.newValue!==A)&&(_.value=le(R))}catch(A){d(A)}finally{R?Rt(T):T()}}}}function Y(R){ie(R.detail)}return _}function dy(e,t,n={}){const{window:r=cn}=n;return fy(e,t,r?.localStorage,n)}function ui(e,t,n,r={}){var o,i;const{clone:s=!1,passive:a=!1,eventName:l,deep:u=!1,defaultValue:c,shouldEmit:f}=r,p=Ct(),d=n||p?.emit||(p==null||(o=p.$emit)===null||o===void 0?void 0:o.bind(p))||(p==null||(i=p.proxy)===null||i===void 0||(i=i.$emit)===null||i===void 0?void 0:i.bind(p?.proxy));let h=l;h=h||`update:${t.toString()}`;const _=E=>s?typeof s=="function"?s(E):iy(E):E,v=()=>H_(e[t])?_(e[t]):c,b=E=>{f?f(E)&&d(h,E):d(h,E)};if(a){const E=_e(v());let m=!1;return Ge(()=>e[t],w=>{m||(m=!0,E.value=_(w),Rt(()=>m=!1))}),Ge(E,w=>{!m&&(w!==e[t]||u)&&b(w)},{deep:u}),E}else return pe({get(){return v()},set(E){b(E)}})}const py=["disabled"],hy={key:0,value:"",disabled:"",hidden:""},my={__name:"NSelect",props:{modelValue:{type:null,required:!1,default:void 0},placeholder:{type:String,required:!1,default:""},icon:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1}},emits:[],setup(e,{emit:t}){const o=ui(e,"modelValue",t,{passive:!0});return(i,s)=>{const a=Tn;return Q(),me("div",{class:Ue(["n-select flex flex items-center border rounded n-bg-base px-2 py-1 focus-within:border-context focus-within:n-focus-base",e.disabled?"border-gray:10":"n-border-base"])},[tt(i.$slots,"icon",{},()=>[e.icon?(Q(),xe(a,{key:0,icon:e.icon,class:"mr-0.4em text-1.1em op50"},null,8,["icon"])):Ze("",!0)]),Zo(he("select",{"onUpdate:modelValue":s[0]||(s[0]=l=>we(o)?o.value=l:null),disabled:e.disabled,class:Ue(["w-full flex-auto n-bg-base !outline-none",e.disabled?"appearance-none":""])},[e.placeholder?(Q(),me("option",hy,Pt(e.placeholder),1)):Ze("",!0),tt(i.$slots,"default")],10,py),[[Tu,X(o)]])],2)}}},gy={class:"space-y-2"},_y={class:"flex items-center justify-between"},yy=["value"],vy=gt({__name:"EmailTemplateSelector",props:{emailTemplates:{},selectedTemplate:{}},emits:["select"],setup(e){return(t,n)=>{const r=$_,o=af,i=my,s=ci;return Q(),me("div",gy,[he("div",_y,[oe(r,{text:"Select a template:",icon:"carbon:list"}),oe(o,null,{default:Pe(()=>[st(Pt(t.emailTemplates.length)+" templates ",1)]),_:1})]),t.emailTemplates.length>0?(Q(),xe(s,{key:0,class:"grid gap-3"},{default:Pe(()=>[oe(i,{"model-value":t.selectedTemplate,"onUpdate:modelValue":n[0]||(n[0]=a=>t.$emit("select",a))},{default:Pe(()=>[(Q(!0),me(je,null,Wc(t.emailTemplates,a=>(Q(),me("option",{key:a.filename,value:a},Pt(a.filename),9,yy))),128))]),_:1},8,["model-value"])]),_:1})):Ze("",!0)])}}}),by=Object.assign(vy,{__name:"EmailTemplateSelector"}),wy={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded n-bg-base"},Ey=["disabled","title"],Sy=["disabled","value","title"],Ty={__name:"NSelectTabs",props:{modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1},options:{type:Array,required:!0}},emits:[],setup(e,{emit:t}){const o=ui(e,"modelValue",t,{passive:!0});return(i,s)=>(Q(),me("fieldset",wy,[(Q(!0),me(je,null,Wc(e.options,(a,l)=>(Q(),me("label",{key:a.label,disabled:e.disabled,class:Ue(["relative n-border-base px-0.5em py-0.1em hover:n-bg-active",[l?"border-l n-border-base ml--1px":"",a.value===X(o)?"n-bg-active":""]]),title:a.label},[he("div",{class:Ue([a.value===X(o)?"":"op35"])},Pt(a.label),3),Zo(he("input",{"onUpdate:modelValue":s[0]||(s[0]=u=>we(o)?o.value=u:null),type:"radio",disabled:e.disabled,value:a.value,title:a.label,class:"absolute inset-0 op-0.1"},null,8,Sy),[[Su,X(o)]])],10,Ey))),128))]))}},Ry=gt({__name:"BaseButton",props:{isLoading:{type:Boolean},isDisabled:{type:Boolean},icon:{}},setup(e){return(t,n)=>{const r=Tn,o=oa;return Q(),xe(o,{disabled:t.isLoading||t.isDisabled},{icon:Pe(()=>[oe(r,{icon:t.isLoading?"carbon:circle-dash":t.icon,class:Ue({"animate-spin":t.isLoading})},null,8,["icon","class"])]),default:Pe(()=>[tt(t.$slots,"default")]),_:3},8,["disabled"])}}}),ds=Object.assign(Ry,{__name:"BaseButton"}),Ay={class:"n-text-input flex flex items-center border n-border-base rounded n-bg-base py-1 pl-1 pr-2 focus-within:border-context focus-within:n-focus-base"},Py={__name:"NTextInput",props:{modelValue:{type:[String,Number],required:!1,default:""},icon:{type:String,required:!1},placeholder:{type:String,required:!1},disabled:{type:Boolean,required:!1},autofocus:{type:Boolean,required:!1},autocomplete:{type:String,required:!1},readonly:{type:Boolean,required:!1},type:{type:String,required:!1,default:"text"}},emits:["keydown","keyup","change"],setup(e,{emit:t}){const o=ui(e,"modelValue",t,{passive:!0});return(i,s)=>{const a=Tn;return Q(),me("div",Ay,[tt(i.$slots,"icon",{},()=>[e.icon?(Q(),xe(a,{key:0,icon:e.icon,class:"ml-0.3em mr-0.1em text-1.1em op50"},null,8,["icon"])):Ze("",!0)]),Zo(he("input",Ys({"onUpdate:modelValue":s[0]||(s[0]=l=>we(o)?o.value=l:null)},i.$props,{class:"ml-0.4em w-full flex-auto n-bg-base !outline-none"}),null,16),[[Oh,X(o)]])])}}};/*!
|
|
19
|
+
**/let ns;const Ua=typeof window<"u"&&window.trustedTypes;if(Ua)try{ns=Ua.createPolicy("vue",{createHTML:e=>e})}catch{}const wu=ns?e=>ns.createHTML(e):e=>e,fh="http://www.w3.org/2000/svg",dh="http://www.w3.org/1998/Math/MathML",Bt=typeof document<"u"?document:null,za=Bt&&Bt.createElement("template"),ph={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"?Bt.createElementNS(fh,e):t==="mathml"?Bt.createElementNS(dh,e):n?Bt.createElement(e,{is:n}):Bt.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Bt.createTextNode(e),createComment:e=>Bt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Bt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const s=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{za.innerHTML=wu(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=za.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},hh=Symbol("_vtc");function mh(e,t,n){const r=e[hh];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const So=Symbol("_vod"),Eu=Symbol("_vsh"),gh={name:"show",beforeMount(e,{value:t},{transition:n}){e[So]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):sr(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),sr(e,!0),r.enter(e)):r.leave(e,()=>{sr(e,!1)}):sr(e,t))},beforeUnmount(e,{value:t}){sr(e,t)}};function sr(e,t){e.style.display=t?e[So]:"none",e[Eu]=!t}const _h=Symbol(""),yh=/(?:^|;)\s*display\s*:/;function vh(e,t,n){const r=e.style,o=ke(n);let i=!1;if(n&&!o){if(t)if(ke(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&io(r,a,"")}else for(const s in t)n[s]==null&&io(r,s,"");for(const s in n)s==="display"&&(i=!0),io(r,s,n[s])}else if(o){if(t!==n){const s=r[_h];s&&(n+=";"+s),r.cssText=n,i=yh.test(n)}}else t&&e.removeAttribute("style");So in e&&(e[So]=i?r.display:"",e[Eu]&&(r.display="none"))}const Ga=/\s*!important$/;function io(e,t,n){if(ne(n))n.forEach(r=>io(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=bh(e,t);Ga.test(n)?e.setProperty(En(r),n.replace(Ga,""),"important"):e[r]=n}}const Wa=["Webkit","Moz","ms"],Ti={};function bh(e,t){const n=Ti[t];if(n)return n;let r=wt(t);if(r!=="filter"&&r in e)return Ti[t]=r;r=qo(r);for(let o=0;o<Wa.length;o++){const i=Wa[o]+r;if(i in e)return Ti[t]=i}return t}const qa="http://www.w3.org/1999/xlink";function Ka(e,t,n,r,o,i=bd(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(qa,t.slice(6,t.length)):e.setAttributeNS(qa,t,n):n==null||i&&!lc(n)?e.removeAttribute(t):e.setAttribute(t,i?"":At(n)?String(n):n)}function Ja(e,t,n,r,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?wu(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=lc(n):n==null&&a==="string"?(n="",s=!0):a==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(o||t)}function Ut(e,t,n,r){e.addEventListener(t,n,r)}function wh(e,t,n,r){e.removeEventListener(t,n,r)}const Xa=Symbol("_vei");function Eh(e,t,n,r,o=null){const i=e[Xa]||(e[Xa]={}),s=i[t];if(r&&s)s.value=r;else{const[a,l]=Sh(t);if(r){const u=i[t]=Ah(r,o);Ut(e,a,u,l)}else s&&(wh(e,a,s,l),i[t]=void 0)}}const Ya=/(?:Once|Passive|Capture)$/;function Sh(e){let t;if(Ya.test(e)){t={};let r;for(;r=e.match(Ya);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):En(e.slice(2)),t]}let Ri=0;const Th=Promise.resolve(),Rh=()=>Ri||(Th.then(()=>Ri=0),Ri=Date.now());function Ah(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Mt(Ph(r,n.value),t,5,[r])};return n.value=e,n.attached=Rh(),n}function Ph(e,t){if(ne(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const Qa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ch=(e,t,n,r,o,i)=>{const s=o==="svg";t==="class"?mh(e,r,s):t==="style"?vh(e,n,r):Lr(t)?Ls(t)||Eh(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Lh(e,t,r,s))?(Ja(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ka(e,t,r,s,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ke(r))?Ja(e,wt(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Ka(e,t,r,s))};function Lh(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Qa(t)&&ae(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||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 Qa(t)&&ke(n)?!1:t in e}const tn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ne(t)?n=>to(t,n):t};function kh(e){e.target.composing=!0}function Za(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const bt=Symbol("_assign"),el={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[bt]=tn(o);const i=r||o.props&&o.props.type==="number";Ut(e,t?"change":"input",s=>{if(s.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=fo(a)),e[bt](a)}),n&&Ut(e,"change",()=>{e.value=e.value.trim()}),t||(Ut(e,"compositionstart",kh),Ut(e,"compositionend",Za),Ut(e,"change",Za))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:i}},s){if(e[bt]=tn(s),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?fo(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||o&&e.value.trim()===l)||(e.value=l))}},xh={deep:!0,created(e,t,n){e[bt]=tn(n),Ut(e,"change",()=>{const r=e._modelValue,o=Xn(e),i=e.checked,s=e[bt];if(ne(r)){const a=Is(r,o),l=a!==-1;if(i&&!l)s(r.concat(o));else if(!i&&l){const u=[...r];u.splice(a,1),s(u)}}else if(Zn(r)){const a=new Set(r);i?a.add(o):a.delete(o),s(a)}else s(Ru(e,i))})},mounted:tl,beforeUpdate(e,t,n){e[bt]=tn(n),tl(e,t,n)}};function tl(e,{value:t,oldValue:n},r){e._modelValue=t;let o;if(ne(t))o=Is(t,r.props.value)>-1;else if(Zn(t))o=t.has(r.props.value);else{if(t===n)return;o=yn(t,Ru(e,!0))}e.checked!==o&&(e.checked=o)}const Su={created(e,{value:t},n){e.checked=yn(t,n.props.value),e[bt]=tn(n),Ut(e,"change",()=>{e[bt](Xn(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[bt]=tn(r),t!==n&&(e.checked=yn(t,r.props.value))}},Tu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Zn(t);Ut(e,"change",()=>{const i=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?fo(Xn(s)):Xn(s));e[bt](e.multiple?o?new Set(i):i:i[0]),e._assigning=!0,Rt(()=>{e._assigning=!1})}),e[bt]=tn(r)},mounted(e,{value:t}){nl(e,t)},beforeUpdate(e,t,n){e[bt]=tn(n)},updated(e,{value:t}){e._assigning||nl(e,t)}};function nl(e,t){const n=e.multiple,r=ne(t);if(!(n&&!r&&!Zn(t))){for(let o=0,i=e.options.length;o<i;o++){const s=e.options[o],a=Xn(s);if(n)if(r){const l=typeof a;l==="string"||l==="number"?s.selected=t.some(u=>String(u)===String(a)):s.selected=Is(t,a)>-1}else s.selected=t.has(a);else if(yn(Xn(s),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Xn(e){return"_value"in e?e._value:e.value}function Ru(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Oh={created(e,t,n){Ur(e,t,n,null,"created")},mounted(e,t,n){Ur(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Ur(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Ur(e,t,n,r,"updated")}};function Ih(e,t){switch(e){case"SELECT":return Tu;case"TEXTAREA":return el;default:switch(t){case"checkbox":return xh;case"radio":return Su;default:return el}}}function Ur(e,t,n,r,o){const s=Ih(e.tagName,n.props&&n.props.type)[o];s&&s(e,t,n,r)}const Au=et({patchProp:Ch},ph);let yr,rl=!1;function Dh(){return yr||(yr=Np(Au))}function Nh(){return yr=rl?yr:Mp(Au),rl=!0,yr}const Mh=((...e)=>{const t=Dh().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Cu(r);if(!o)return;const i=t._component;!ae(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,Pu(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t}),Vh=((...e)=>{const t=Nh().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Cu(r);if(o)return n(o,!0,Pu(o))},t});function Pu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Cu(e){return ke(e)?document.querySelector(e):e}const $h=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,jh=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Bh=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Fh(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Hh(e);return}return t}function Hh(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function To(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Bh.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if($h.test(e)||jh.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Fh)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const Uh=/#/g,zh=/&/g,Gh=/\//g,Wh=/=/g,Qs=/\+/g,qh=/%5e/gi,Kh=/%60/gi,Jh=/%7c/gi,Xh=/%20/gi;function Yh(e){return encodeURI(""+e).replace(Jh,"|")}function rs(e){return Yh(typeof e=="string"?e:JSON.stringify(e)).replace(Qs,"%2B").replace(Xh,"+").replace(Uh,"%23").replace(zh,"%26").replace(Kh,"`").replace(qh,"^").replace(Gh,"%2F")}function Ai(e){return rs(e).replace(Wh,"%3D")}function Ro(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Qh(e){return Ro(e.replace(Qs," "))}function Zh(e){return Ro(e.replace(Qs," "))}function oi(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const o=Qh(r[1]);if(o==="__proto__"||o==="constructor")continue;const i=Zh(r[2]||"");t[o]===void 0?t[o]=i:Array.isArray(t[o])?t[o].push(i):t[o]=[t[o],i]}return t}function em(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Ai(e)}=${rs(n)}`).join("&"):`${Ai(e)}=${rs(t)}`:Ai(e)}function Lu(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>em(t,e[t])).filter(Boolean).join("&")}const tm=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,nm=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,rm=/^([/\\]\s*){2,}[^/\\]/,om=/^[\s\0]*(blob|data|javascript|vbscript):$/i,im=/\/$|\/\?|\/#/,sm=/^\.?\//;function Sn(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?tm.test(e):nm.test(e)||(t.acceptRelative?rm.test(e):!1)}function am(e){return!!e&&om.test(e)}function os(e="",t){return t?im.test(e):e.endsWith("/")}function ii(e="",t){if(!t)return(os(e)?e.slice(0,-1):e)||"/";if(!os(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");o!==-1&&(n=e.slice(0,o),r=e.slice(o));const[i,...s]=n.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(s.length>0?`?${s.join("?")}`:"")+r}function Ao(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(os(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");if(o!==-1&&(n=e.slice(0,o),r=e.slice(o),!n))return r;const[i,...s]=n.split("?");return i+"/"+(s.length>0?`?${s.join("?")}`:"")+r}function lm(e=""){return e.startsWith("/")}function ol(e=""){return lm(e)?e:"/"+e}function cm(e,t){if(xu(t)||Sn(e))return e;const n=ii(t);return e.startsWith(n)?e:Dr(n,e)}function um(e,t){if(xu(t))return e;const n=ii(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function ku(e,t){const n=Iu(e),r={...oi(n.search),...t};return n.search=Lu(r),Du(n)}function xu(e){return!e||e==="/"}function fm(e){return e&&e!=="/"}function Dr(e,...t){let n=e||"";for(const r of t.filter(o=>fm(o)))if(n){const o=r.replace(sm,"");n=Ao(n)+o}else n=r;return n}function dm(e,t,n={}){return n.trailingSlash||(e=Ao(e),t=Ao(t)),n.leadingSlash||(e=ol(e),t=ol(t)),n.encoding||(e=Ro(e),t=Ro(t)),e===t}const Ou=Symbol.for("ufo:protocolRelative");function Iu(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,p=""]=n;return{protocol:f.toLowerCase(),pathname:p,href:f+p,auth:"",host:"",search:"",hash:""}}if(!Sn(e,{acceptRelative:!0}))return il(e);const[,r="",o,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:c}=il(a);return{protocol:r.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:s,pathname:l,search:u,hash:c,[Ou]:!r}}function il(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Du(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",o=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[Ou]?(e.protocol||"")+"//":"")+o+i+t+n+r}class pm extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function hm(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",o=`[${n}] ${JSON.stringify(r)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",s=`${o}: ${i}${t?` ${t}`:""}`,a=new pm(s,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return e[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return e.response&&e.response[u]}});return a}const mm=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function sl(e="GET"){return mm.has(e.toUpperCase())}function gm(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const _m=new Set(["image/svg","application/xml","application/xhtml","application/html"]),ym=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function vm(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return ym.test(t)?"json":_m.has(t)||t.startsWith("text/")?"text":"blob"}function bm(e,t,n,r){const o=wm(t?.headers??e?.headers,n?.headers,r);let i;return(n?.query||n?.params||t?.params||t?.query)&&(i={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:i,params:i,headers:o}}function wm(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[o,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(o,i);return r}async function zr(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const Em=new Set([408,409,425,429,500,502,503,504]),Sm=new Set([101,204,205,304]);function Nu(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function o(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;typeof a.options.retry=="number"?c=a.options.retry:c=sl(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):Em.has(f))){const p=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return p>0&&await new Promise(d=>setTimeout(d,p)),i(a.request,{...a.options,retry:c-1})}}const u=hm(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(l,u={}){const c={request:l,options:bm(l,u,e.defaults,n),response:void 0,error:void 0};c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&await zr(c,c.options.onRequest),typeof c.request=="string"&&(c.options.baseURL&&(c.request=cm(c.request,c.options.baseURL)),c.options.query&&(c.request=ku(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&sl(c.options.method)&&(gm(c.options.body)?(c.options.body=typeof c.options.body=="string"?c.options.body:JSON.stringify(c.options.body),c.options.headers=new n(c.options.headers||{}),c.options.headers.has("content-type")||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")):("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half")));let f;if(!c.options.signal&&c.options.timeout){const d=new r;f=setTimeout(()=>{const h=new Error("[TimeoutError]: The operation was aborted due to timeout");h.name="TimeoutError",h.code=23,d.abort(h)},c.options.timeout),c.options.signal=d.signal}try{c.response=await t(c.request,c.options)}catch(d){return c.error=d,c.options.onRequestError&&await zr(c,c.options.onRequestError),await o(c)}finally{f&&clearTimeout(f)}if((c.response.body||c.response._bodyInit)&&!Sm.has(c.response.status)&&c.options.method!=="HEAD"){const d=(c.options.parseResponse?"json":c.options.responseType)||vm(c.response.headers.get("content-type")||"");switch(d){case"json":{const h=await c.response.text(),_=c.options.parseResponse||To;c.response._data=_(h);break}case"stream":{c.response._data=c.response.body||c.response._bodyInit;break}default:c.response._data=await c.response[d]()}}return c.options.onResponse&&await zr(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await zr(c,c.options.onResponseError),await o(c)):c.response},s=async function(l,u){return(await i(l,u))._data};return s.raw=i,s.native=(...a)=>t(...a),s.create=(a={},l={})=>Nu({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),s}const Po=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),Tm=Po.fetch?(...e)=>Po.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Rm=Po.Headers,Am=Po.AbortController,Pm=Nu({fetch:Tm,Headers:Rm,AbortController:Am}),Cm=Pm,Lm=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,km=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,xm=/^([/\\]\s*){2,}[^/\\]/;function Om(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Lm.test(e):km.test(e)||(t.acceptRelative?xm.test(e):!1)}function Mu(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let o=0;for(const s of n)if(!(!s||s==="/")){for(const[a,l]of s.split(t).entries())if(!(!l||l===".")){if(l===".."){if(r.length===1&&Om(r[0]))continue;r.pop(),o--;continue}if(a===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+l;continue}r.push(l),o++}}let i=r.join("/");return o>=0?n[0]?.startsWith("/")&&!i.startsWith("/")?i="/"+i:n[0]?.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*o)+i,n[n.length-1]?.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}const Im=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,Zs=()=>Im().app,Dm=()=>Zs().baseURL,Nm=()=>Zs().buildAssetsDir,ea=(...e)=>Mu(Vu(),Nm(),...e),Vu=(...e)=>{const t=Zs(),n=t.cdnURL||t.baseURL;return e.length?Mu(n,...e):n};globalThis.__buildAssetsURL=ea,globalThis.__publicAssetsURL=Vu;globalThis.$fetch||(globalThis.$fetch=Cm.create({baseURL:Dm()}));"global"in globalThis||(globalThis.global=globalThis);function is(e,t={},n){for(const r in e){const o=e[r],i=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?is(o,t,i):typeof o=="function"&&(t[i]=o)}return t}const Mm={run:e=>e()},Vm=()=>Mm,$u=typeof console.createTask<"u"?console.createTask:Vm;function $m(e,t){const n=t.shift(),r=$u(n);return e.reduce((o,i)=>o.then(()=>r.run(()=>i(...t))),Promise.resolve())}function jm(e,t){const n=t.shift(),r=$u(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function Pi(e,t){for(const n of[...e])n(t)}class Bm{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!r.allowDeprecated){let s=i.message;s||(s=`${o} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...i)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...i));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=is(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=is(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith($m,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(jm,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Pi(this._before,o);const i=t(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&o&&Pi(this._after,o)}):(this._after&&o&&Pi(this._after,o),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function ju(){return new Bm}function Fm(e={}){let t,n=!1;const r=s=>{if(t&&t!==s)throw new Error("Context conflict")};let o;if(e.asyncContext){const s=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;s?o=new s:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>{if(o){const s=o.getStore();if(s!==void 0)return s}return t};return{use:()=>{const s=i();if(s===void 0)throw new Error("Context is not available");return s},tryUse:()=>i(),set:(s,a)=>{a||r(s),t=s,n=!0},unset:()=>{t=void 0,n=!1},call:(s,a)=>{r(s),t=s;try{return o?o.run(s,a):a()}finally{n||(t=void 0)}},async callAsync(s,a){t=s;const l=()=>{t=s},u=()=>t===s?l:void 0;ss.add(u);try{const c=o?o.run(s,a):a();return n||(t=void 0),await c}finally{ss.delete(u)}}}}function Hm(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Fm({...e,...r})),t[n]}}}const Co=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},al="__unctx__",Um=Co[al]||(Co[al]=Hm()),zm=(e,t={})=>Um.get(e,t),ll="__unctx_async_handlers__",ss=Co[ll]||(Co[ll]=new Set);function Bu(e){const t=[];for(const o of ss){const i=o();i&&t.push(i)}const n=()=>{for(const o of t)o()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(o=>{throw n(),o})),[r,n]}const cl={id:"__nuxt-loader"},Gm={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Wm={deep:!1},qm={},Km="#__nuxt",Fu="nuxt-app",ul=36e5,Jm="vite:preloadError";function Hu(e=Fu){return zm(e,{asyncContext:!1})}const Xm="__nuxt_plugin";function Ym(e){let t=0;const n={_id:e.id||Fu||"nuxt-app",_scope:Ed(),provide:void 0,versions:{get nuxt(){return"4.1.2"},get vue(){return n.vueApp.version}},payload:xn({...e.ssrContext?.payload||{},data:xn({}),state:Nt({}),once:new Set,_errors:xn({})}),static:{data:{}},runWithContext(o){return n._scope.active&&!xr()?n._scope.run(()=>fl(n,o)):fl(n,o)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:xn({}),_payloadRevivers:{},...e};{const o=window.__NUXT__;if(o)for(const i in o)switch(i){case"data":case"state":case"_errors":Object.assign(n.payload[i],o[i]);break;default:n.payload[i]=o[i]}}n.hooks=ju(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,i)=>{const s="$"+o;Gr(n,s,i),Gr(n.vueApp.config.globalProperties,s,i)},Gr(n.vueApp,"$nuxt",n),Gr(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(Jm,i=>{n.callHook("app:chunkError",{error:i.payload}),i.payload.message.includes("Unable to preload CSS")&&i.preventDefault()}),window.useNuxtApp||=Oe;const o=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",o)}const r=n.payload.config;return n.provide("config",r),n}function Qm(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function Zm(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function eg(e,t){const n=new Set,r=[],o=[];let i,s=0;async function a(l){const u=l.dependsOn?.filter(c=>t.some(f=>f._name===c)&&!n.has(c))??[];if(u.length>0)r.push([new Set(u),l]);else{const c=Zm(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(r.map(async([f,p])=>{f.has(l._name)&&(f.delete(l._name),f.size===0&&(s++,await a(p)))})))}).catch(f=>{if(!l.parallel&&!e.payload.error)throw f;i||=f});l.parallel?o.push(c):await c}}for(const l of t)Qm(e,l);for(const l of t)await a(l);if(await Promise.all(o),s)for(let l=0;l<s;l++)await Promise.all(o);if(i)throw e.payload.error||i}function Jt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[Xm]:!0,_name:t})}function fl(e,t,n){const r=()=>t();return Hu(e._id).set(e),e.vueApp.runWithContext(r)}function tg(e){let t;return Gs()&&(t=Ct()?.appContext.app.$nuxt),t||=Hu(e).tryUse(),t||null}function Oe(e){const t=tg(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function Yn(e){return Oe().$config}function Gr(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function ng(e,t){return{ctx:{table:e},matchAll:n=>zu(n,e)}}function Uu(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,o])=>[r,Uu(o)])):new Map(Object.entries(e[n]));return t}function rg(e){return ng(Uu(e))}function zu(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[i,s]of dl(t.wildcard))(e===i||e.startsWith(i+"/"))&&r.push(s);for(const[i,s]of dl(t.dynamic))if(e.startsWith(i+"/")){const a="/"+e.slice(i.length).split("/").splice(2).join("/");r.push(...zu(a,s))}const o=t.static.get(e);return o&&r.push(o),r.filter(Boolean)}function dl(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function Ci(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function as(e,t,n=".",r){if(!Ci(t))return as(e,{},n,r);const o=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const s=e[i];s!=null&&(r&&r(o,i,s,n)||(Array.isArray(s)&&Array.isArray(o[i])?o[i]=[...s,...o[i]]:Ci(s)&&Ci(o[i])?o[i]=as(s,o[i],(n?`${n}.`:"")+i.toString(),r):o[i]=s))}return o}function og(e){return(...t)=>t.reduce((n,r)=>as(n,r,"",e),{})}const ig=og();function sg(e,t){try{return t in e}catch{return!1}}class pl extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,n={}){super(t,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:ls(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=Gu(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function ag(e){if(typeof e=="string")return new pl(e);if(lg(e))return e;const t=new pl(e.message??e.statusMessage??"",{cause:e.cause||e});if(sg(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=ls(e.statusCode,t.statusCode):e.status&&(t.statusCode=ls(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Gu(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function lg(e){return e?.constructor?.__h3_error__===!0}const cg=/[^\u0009\u0020-\u007E]/g;function Gu(e=""){return e.replace(cg,"")}function ls(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Wu=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const Vt=()=>Oe()?.$router,qu=()=>Gs()?ht(Wu,Oe()._route):Oe()._route;const ug=()=>{try{if(Oe()._processingMiddleware)return!0}catch{return!1}return!1},Ku=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?cs(e):Vt().resolve(e).href;if(t?.open){const{target:l="_blank",windowFeatures:u={}}=t.open,c=[];for(const[f,p]of Object.entries(u))p!==void 0&&c.push(`${f.toLowerCase()}=${p}`);return open(n,l,c.join(", ")),Promise.resolve()}const r=Sn(n,{acceptRelative:!0}),o=t?.external||r;if(o){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&am(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const i=ug();if(!o&&i){if(t?.replace){if(typeof e=="string"){const{pathname:l,search:u,hash:c}=Iu(e);return{path:l,...u&&{query:oi(u)},...c&&{hash:c},replace:!0}}return{...e,replace:!0}}return e}const s=Vt(),a=Oe();return o?(a._scope.stop(),t?.replace?location.replace(n):location.href=n,i?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t?.replace?s.replace(e):s.push(e)};function cs(e){return ku(e.path||"",e.query||{})+(e.hash||"")}const Ju="__nuxt_error",ta=()=>js(Oe().payload,"error"),fg=e=>{const t=si(e);try{const n=Oe(),r=ta();n.hooks.callHook("app:error",t),r.value||=t}catch{throw t}return t},dg=async(e={})=>{const t=Oe(),n=ta();t.callHook("app:error:cleared",e),e.redirect&&await Vt().replace(e.redirect),n.value=void 0},pg=e=>!!e&&typeof e=="object"&&Ju in e,si=e=>{const t=ag(e);return Object.defineProperty(t,Ju,{value:!0,configurable:!1,writable:!1}),t};function hg(e){const t=gg(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let o=0;o<n.byteLength;o++)r.setUint8(o,t.charCodeAt(o));return n}const mg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function gg(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let o=0;o<e.length;o++)n<<=6,n|=mg.indexOf(e[o]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const _g=-1,yg=-2,vg=-3,bg=-4,wg=-5,Eg=-6;function Sg(e,t){return Tg(JSON.parse(e),t)}function Tg(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function o(i,s=!1){if(i===_g)return;if(i===vg)return NaN;if(i===bg)return 1/0;if(i===wg)return-1/0;if(i===Eg)return-0;if(s||typeof i!="number")throw new Error("Invalid input");if(i in r)return r[i];const a=n[i];if(!a||typeof a!="object")r[i]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],u=t?.[l];if(u)return r[i]=u(o(a[1]));switch(l){case"Date":r[i]=new Date(a[1]);break;case"Set":const c=new Set;r[i]=c;for(let d=1;d<a.length;d+=1)c.add(o(a[d]));break;case"Map":const f=new Map;r[i]=f;for(let d=1;d<a.length;d+=2)f.set(o(a[d]),o(a[d+1]));break;case"RegExp":r[i]=new RegExp(a[1],a[2]);break;case"Object":r[i]=Object(a[1]);break;case"BigInt":r[i]=BigInt(a[1]);break;case"null":const p=Object.create(null);r[i]=p;for(let d=1;d<a.length;d+=2)p[a[d]]=o(a[d+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const d=globalThis[l],h=new d(o(a[1]));r[i]=a[2]!==void 0?h.subarray(a[2],a[3]):h;break}case"ArrayBuffer":{const d=a[1],h=hg(d);r[i]=h;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const d=l.slice(9);r[i]=Temporal[d].from(a[1]);break}case"URL":{const d=new URL(a[1]);r[i]=d;break}case"URLSearchParams":{const d=new URLSearchParams(a[1]);r[i]=d;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);r[i]=l;for(let u=0;u<a.length;u+=1){const c=a[u];c!==yg&&(l[u]=o(c))}}else{const l={};r[i]=l;for(const u in a){if(u==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const c=a[u];l[u]=o(c)}}return r[i]}return o(0)}const Rg=new Set(["link","style","script","noscript"]),Ag=new Set(["title","titleTemplate","script","style","noscript"]),hl=new Set(["base","meta","link","style","script","noscript"]),Pg=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),Cg=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),Lg=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),kg=new Set(["templateParams","htmlAttrs","bodyAttrs"]),xg=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),Og=["name","property","http-equiv"],Ig=new Set(["viewport","description","keywords","robots"]);function Xu(e){const t=e.split(":");return t.length?xg.has(t[1]):!1}function us(e){const{props:t,tag:n}=e;if(Cg.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const r of Og)if(t[r]!==void 0){const o=t[r],i=o.includes(":"),s=Ig.has(o),l=!(i||s)&&e.key?`:key:${e.key}`:"";return`${n}:${o}${l}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(Ag.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function ml(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([r,o])=>`${r}:${String(o)}`).join(",")}`}function Lo(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());let o;if(t&&(o=t(n,e)),Array.isArray(o))return o.map(i=>Lo(i,t));if(o?.constructor===Object){const i={};for(const s of Object.keys(o))i[s]=Lo(o[s],t,s);return i}return o}function Dg(e,t){const n=e==="style"?new Map:new Set;function r(o){const i=o.trim();if(i)if(e==="style"){const[s,...a]=i.split(":").map(l=>l.trim());s&&a.length&&n.set(s,a.join(":"))}else i.split(" ").filter(Boolean).forEach(s=>n.add(s))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(o=>r(o)):t&&typeof t=="object"&&Object.entries(t).forEach(([o,i])=>{i&&i!=="false"&&(e==="style"?n.set(o.trim(),i):r(o))}),n}function Yu(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=Dg(n,r);return}if(Lg.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let s=t.type;if(t.type||(s="application/json"),!s?.endsWith("json")&&s!=="speculationrules")return;t.type=s,e.props.type=s,e[n]=JSON.stringify(r)}else e[n]=r;return}const o=String(r),i=n.startsWith("data-");o==="true"||o===""?e.props[n]=i?o:!0:!r&&i&&o==="false"?e.props[n]="false":r!==void 0&&(e.props[n]=r)}),e):e}function Ng(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=Yu({tag:e,props:{}},n);return r.key&&Rg.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(o=>({...r,props:{...r.props,content:o}})):r}function Mg(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(o,i)=>{for(let s=0;s<t.length;s++)i=t[s](o,i);return i};e=n(void 0,e);const r=[];return e=Lo(e,n),Object.entries(e||{}).forEach(([o,i])=>{if(i!==void 0)for(const s of Array.isArray(i)?i:[i])r.push(Ng(o,s))}),r.flat()}const gl=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,_l={base:-10,title:10},Vg={critical:-8,high:-1,low:2},yl={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},$g=/@import/,ar=e=>e===""||e===!0;function jg(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=Vg[t.tagPriority]||0,o=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:yl;if(t.tag in _l)n=_l[t.tag];else if(t.tag==="meta"){const i=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;i&&(n=yl.meta[i])}else t.tag==="link"&&t.props.rel?n=o.link[t.props.rel]:t.tag==="script"?ar(t.props.async)?n=o.script.async:t.props.src&&!ar(t.props.defer)&&!ar(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?n=o.script.sync:ar(t.props.defer)&&t.props.src&&!ar(t.props.async)&&(n=o.script.defer):t.tag==="style"&&(n=t.innerHTML&&$g.test(t.innerHTML)?o.style.imported:o.style.sync);return(n||100)+r}function vl(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function Bg(e={}){const t=ju();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,o=new Map,i=new Set,s={_entryCount:1,plugins:o,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:a=>vl(s,a),push(a,l){const u={...l||{}};delete u.head;const c=u._index??s._entryCount++,f={_i:c,input:a,options:u},p={_poll(d=!1){s.dirty=!0,!d&&i.add(c),t.callHook("entries:updated",s)},dispose(){r.delete(c)&&s.invalidate()},patch(d){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(f.input=d,r.set(c,f),p._poll())}};return p.patch(a),p},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...s.entries.values()]};for(await t.callHook("entries:resolve",a);i.size;){const p=i.values().next().value;i.delete(p);const d=r.get(p);if(d){const h={tags:Mg(d.input,e.propResolvers||[]).map(_=>Object.assign(_,d.options)),entry:d};await t.callHook("entries:normalize",h),d._tags=h.tags.map((_,v)=>(_._w=jg(s,_),_._p=(d._i<<10)+v,_._d=us(_),_))}}let l=!1;a.entries.flatMap(p=>(p._tags||[]).map(d=>({...d,props:{...d.props}}))).sort(gl).reduce((p,d)=>{const h=String(d._d||d._p);if(!p.has(h))return p.set(h,d);const _=p.get(h);if((d?.tagDuplicateStrategy||(kg.has(d.tag)?"merge":null)||(d.key&&d.key===_.key?"merge":null))==="merge"){const b={..._.props};Object.entries(d.props).forEach(([E,m])=>b[E]=E==="style"?new Map([..._.props.style||new Map,...m]):E==="class"?new Set([..._.props.class||new Set,...m]):m),p.set(h,{...d,props:b})}else d._p>>10===_._p>>10&&d.tag==="meta"&&Xu(h)?(p.set(h,Object.assign([...Array.isArray(_)?_:[_],d],d)),l=!0):(d._w===_._w?d._p>_._p:d?._w<_?._w)&&p.set(h,d);return p},a.tagMap);const u=a.tagMap.get("title"),c=a.tagMap.get("titleTemplate");if(s._title=u?.textContent,c){const p=c?.textContent;if(s._titleTemplate=p,p){let d=typeof p=="function"?p(u?.textContent):p;typeof d=="string"&&!s.plugins.has("template-params")&&(d=d.replace("%s",u?.textContent||"")),u?d===null?a.tagMap.delete("title"):a.tagMap.set("title",{...u,textContent:d}):(c.tag="title",c.textContent=d)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(gl)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const f=[];for(const p of a.tags){const{innerHTML:d,tag:h,props:_}=p;if(Pg.has(h)&&!(Object.keys(_).length===0&&!p.innerHTML&&!p.textContent)&&!(h==="meta"&&!_.content&&!_["http-equiv"]&&!_.charset)){if(h==="script"&&d){if(_.type?.endsWith("json")){const v=typeof d=="string"?d:JSON.stringify(d);p.innerHTML=v.replace(/</g,"\\u003C")}else typeof d=="string"&&(p.innerHTML=d.replace(new RegExp(`</${h}`,"g"),`<\\/${h}`));p._d=us(p)}f.push(p)}}return f},invalidate(){for(const a of r.values())i.add(a._i);s.dirty=!0,t.callHook("entries:updated",s)}};return(e?.plugins||[]).forEach(a=>vl(s,a)),s.hooks.callHook("init",s),e.init?.forEach(a=>a&&s.push(a)),s}const Fg=(e,t)=>we(t)?Le(t):t,Qu="usehead";function Hg(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Qu,e)}}.install}function Ug(){if(Gs()){const e=ht(Qu);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function VE(e,t={}){const n=t.head||Ug();return n.ssr?n.push(e||{},t):zg(n,e,t)}function zg(e,t,n={}){const r=_e(!1);let o;return lu(()=>{const s=r.value?{}:Lo(t,Fg);o?o.patch(s):o=e.push(s,n)}),Ct()&&(Ir(()=>{o.dispose()}),$c(()=>{r.value=!0}),Vc(()=>{r.value=!1})),o}const Gg="modulepreload",Wg=function(e,t){return new URL(e,t).href},bl={},g=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");o=u(n.map(c=>{if(c=Wg(c,r),c in bl)return;bl[c]=!0;const f=c.endsWith(".css"),p=f?'[rel="stylesheet"]':"";if(!!r)for(let _=s.length-1;_>=0;_--){const v=s[_];if(v.href===c&&(!f||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${p}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":Gg,f||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),f)return new Promise((_,v)=>{h.addEventListener("load",_),h.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};let so,ao;function qg(){return so=$fetch(ea(`builds/meta/${Yn().app.buildId}.json`),{responseType:"json"}),so.then(e=>{ao=rg(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),so}function ai(){return so||qg()}async function na(e){const t=typeof e=="string"?e:e.path;if(await ai(),!ao)return console.error("[nuxt] Error creating app manifest matcher.",ao),{};try{return ig({},...ao.matchAll(t).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function wl(e,t={}){if(!await ef(e))return null;const r=await Jg(e,t);return await Zu(r)||null}const Kg="_payload.json";async function Jg(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||Sn(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=Yn(),o=t.hash||(t.fresh?Date.now():r.app.buildId),i=r.app.cdnURL,s=i&&await ef(e)?i:r.app.baseURL;return Dr(s,n.pathname,Kg+(o?`?${o}`:""))}async function Zu(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(tf));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function ef(e=qu().path){const t=Oe();return e=ii(e),(await ai()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const r=await na({path:e});return!!r.prerender&&!r.redirect})}let rn=null;async function Xg(){if(rn)return rn;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await tf(e.textContent||""),n=e.dataset.src?await Zu(e.dataset.src):void 0;return rn={...t,...n,...window.__NUXT__},rn.config?.public&&(rn.config.public=Nt(rn.config.public)),rn}async function tf(e){return await Sg(e,Oe()._payloadRevivers)}function Yg(e,t){Oe()._payloadRevivers[e]=t}const Qg=[["NuxtError",e=>si(e)],["EmptyShallowRef",e=>ze(e==="_"?void 0:e==="0n"?BigInt(0):To(e))],["EmptyRef",e=>_e(e==="_"?void 0:e==="0n"?BigInt(0):To(e))],["ShallowRef",e=>ze(e)],["ShallowReactive",e=>xn(e)],["Ref",e=>_e(e)],["Reactive",e=>Nt(e)]],Zg=Jt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,o]of Qg)Yg(r,o);Object.assign(e.payload,([t,n]=Bu(()=>e.runWithContext(Xg)),t=await t,n(),t)),delete window.__NUXT__}});async function ra(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async o=>{const i=new Map,s=new Promise(d=>{e.resolveTags().then(h=>{d(h.map(_=>{const v=i.get(_._d)||0,b={tag:_,id:(v?`${_._d}:${v}`:_._d)||ml(_),shouldRender:!0};return _._d&&Xu(_._d)&&i.set(_._d,v+1),b}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const d of["body","head"]){const h=n[d]?.children;for(const _ of h){const v=_.tagName.toLowerCase();if(!hl.has(v))continue;const b=Yu({tag:v,props:{}},{innerHTML:_.innerHTML,..._.getAttributeNames().reduce((E,m)=>(E[m]=_.getAttribute(m),E),{})||{}});if(b.key=_.getAttribute("data-hid")||void 0,b._d=us(b)||ml(b),a.elMap.has(b._d)){let E=1,m=b._d;for(;a.elMap.has(m);)m=`${b._d}:${E++}`;a.elMap.set(m,_)}else a.elMap.set(b._d,_)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(d,h,_){const v=`${d}:${h}`;a.sideEffects[v]=_,delete a.pendingSideEffects[v]}function u({id:d,$el:h,tag:_}){const v=_.tag.endsWith("Attrs");a.elMap.set(d,h),v||(_.textContent&&_.textContent!==h.textContent&&(h.textContent=_.textContent),_.innerHTML&&_.innerHTML!==h.innerHTML&&(h.innerHTML=_.innerHTML),l(d,"el",()=>{h?.remove(),a.elMap.delete(d)}));for(const b in _.props){if(!Object.prototype.hasOwnProperty.call(_.props,b))continue;const E=_.props[b];if(b.startsWith("on")&&typeof E=="function"){const w=h?.dataset;if(w&&w[`${b}fired`]){const T=b.slice(0,-5);E.call(h,new Event(T.substring(2)))}h.getAttribute(`data-${b}`)!==""&&((_.tag==="bodyAttrs"?n.defaultView:h).addEventListener(b.substring(2),E.bind(h)),h.setAttribute(`data-${b}`,""));continue}const m=`attr:${b}`;if(b==="class"){if(!E)continue;for(const w of E)v&&l(d,`${m}:${w}`,()=>h.classList.remove(w)),!h.classList.contains(w)&&h.classList.add(w)}else if(b==="style"){if(!E)continue;for(const[w,T]of E)l(d,`${m}:${w}`,()=>{h.style.removeProperty(w)}),h.style.setProperty(w,T)}else E!==!1&&E!==null&&(h.getAttribute(b)!==E&&h.setAttribute(b,E===!0?"":String(E)),v&&l(d,m,()=>h.removeAttribute(b)))}}const c=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},p=await s;for(const d of p){const{tag:h,shouldRender:_,id:v}=d;if(_){if(h.tag==="title"){n.title=h.textContent,l("title","",()=>n.title=a.title);continue}d.$el=d.$el||a.elMap.get(v),d.$el?u(d):hl.has(h.tag)&&c.push(d)}}for(const d of c){const h=d.tag.tagPosition||"head";d.$el=n.createElement(d.tag.tag),u(d),f[h]=f[h]||n.createDocumentFragment(),f[h].appendChild(d.$el)}for(const d of p)await e.hooks.callHook("dom:renderTag",d,n,l);f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.body.appendChild(f.bodyClose);for(const d in a.pendingSideEffects)a.pendingSideEffects[d]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:p}),o()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function e_(e={}){const t=e.domOptions?.render||ra;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return Bg({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function t_(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function n_(e={}){const t=e_({domOptions:{render:t_(()=>ra(t),n=>setTimeout(n,0))},...e});return t.install=Hg(t),t}const r_={disableDefaults:!0},o_=Jt({name:"nuxt:head",enforce:"pre",setup(e){const t=n_(r_);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await ra(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}}),i_=async e=>{let t,n;const r=([t,n]=Bu(()=>na({path:e.path})),t=await t,n(),t);if(r.redirect)return Sn(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},s_=[i_];function Li(e){const t=e&&typeof e=="object"?e:{};typeof e=="object"&&(e=Du({pathname:e.path||"",search:Lu(e.query||{}),hash:e.hash||""}));const n=new URL(e.toString(),window.location.href);return{path:n.pathname,fullPath:e,query:oi(n.search),hash:n.hash,params:t.params||{},name:void 0,matched:t.matched||[],redirectedFrom:void 0,meta:t.meta||{},href:e}}const a_=Jt({name:"nuxt:router",enforce:"pre",setup(e){const t=um(window.location.pathname,Yn().app.baseURL)+window.location.search+window.location.hash,n=[],r={"navigate:before":[],"resolve:before":[],"navigate:after":[],error:[]},o=(f,p)=>(r[f].push(p),()=>r[f].splice(r[f].indexOf(p),1)),i=Yn().app.baseURL,s=Nt(Li(t));async function a(f,p){try{const d=Li(f);for(const h of r["navigate:before"]){const _=await h(d,s);if(_===!1||_ instanceof Error)return;if(typeof _=="string"&&_.length)return a(_,!0)}for(const h of r["resolve:before"])await h(d,s);Object.assign(s,d),window.history[p?"replaceState":"pushState"]({},"",Dr(i,d.fullPath)),e.isHydrating||await e.runWithContext(dg);for(const h of r["navigate:after"])await h(d,s)}catch(d){for(const h of r.error)await h(d)}}const u={currentRoute:de(()=>s),isReady:()=>Promise.resolve(),options:{},install:()=>Promise.resolve(),push:f=>a(f,!1),replace:f=>a(f,!0),back:()=>window.history.go(-1),go:f=>window.history.go(f),forward:()=>window.history.go(1),beforeResolve:f=>o("resolve:before",f),beforeEach:f=>o("navigate:before",f),afterEach:f=>o("navigate:after",f),onError:f=>o("error",f),resolve:Li,addRoute:(f,p)=>{n.push(p)},getRoutes:()=>n,hasRoute:f=>n.some(p=>p.name===f),removeRoute:f=>{const p=n.findIndex(d=>d.name===f);p!==-1&&n.splice(p,1)}};e.vueApp.component("RouterLink",gt({functional:!0,props:{to:{type:String,required:!0},custom:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:String},setup:(f,{slots:p})=>{const d=()=>a(f.to,f.replace);return()=>{const h=u.resolve(f.to);return f.custom?p.default?.({href:f.to,navigate:d,route:h}):bn("a",{href:f.to,onClick:_=>(_.preventDefault(),d())},p)}}})),window.addEventListener("popstate",f=>{const p=f.target.location;u.replace(p.href.replace(p.origin,""))}),e._route=s,e._middleware||={global:[],named:{}};const c=e.payload.state._layout;return e.hooks.hookOnce("app:created",async()=>{u.beforeEach(async(f,p)=>{f.meta=Nt(f.meta||{}),e.isHydrating&&c&&!qt(f.meta.layout)&&(f.meta.layout=c),e._processingMiddleware=!0;{const d=new Set([...s_,...e._middleware.global]);{const h=await e.runWithContext(()=>na({path:f.path}));if(h.appMiddleware)for(const _ in h.appMiddleware){const v=e._middleware.named[_];if(!v)return;h.appMiddleware[_]?d.add(v):d.delete(v)}}for(const h of d){const _=await e.runWithContext(()=>h(f,p));if(_!==!0&&(_||_===!1))return _}}}),u.afterEach(()=>{delete e._processingMiddleware}),await u.replace(t),dm(s.fullPath,t)||await e.runWithContext(()=>Ku(s.fullPath))}),{provide:{route:s,router:u}}}}),fs=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),l_=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),li=e=>{const t=Oe();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{fs(()=>e())}):fs(()=>e())},c_=Jt({name:"nuxt:payload",setup(e){const t=new Set;Vt().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const o=await wl(n.path);if(o){for(const i of t)delete e.static.data[i];for(const i in o.data)i in e.static.data||t.add(i),e.static.data[i]=o.data[i]}}),li(()=>{e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await wl(n).catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(ai,1e3)})}}),u_=Jt(()=>{const e=Vt();li(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),f_=Jt(e=>{let t;async function n(){let r;try{r=await ai()}catch(o){const i=o;if(!("status"in i&&(i.status===404||i.status===403)))throw i}t&&clearTimeout(t),t=setTimeout(n,ul);try{const o=await $fetch(ea("builds/latest.json")+`?${Date.now()}`);o.id!==r?.id&&(e.hooks.callHook("app:manifest:update",o),t&&clearTimeout(t))}catch{}}li(()=>{t=setTimeout(n,ul)})});function d_(e={}){const t=e.path||window.location.pathname;let n={};try{n=To(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||n?.path!==t||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Oe().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const p_=Jt({name:"nuxt:chunk-reload",setup(e){const t=Vt(),n=Yn(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:i})=>{r.add(i)});function o(i){const s=Dr(n.app.baseURL,i.fullPath);d_({path:s,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((i,s)=>{r.has(i)&&o(s)})}}),h_=Jt({name:"nuxt:global-components"}),m_=Jt(()=>{}),g_=[Zg,o_,a_,c_,u_,f_,p_,h_,m_];function __(e,t){const n=t/e*100;return 2/Math.PI*100*Math.atan(n/50)}function y_(e={}){const{duration:t=2e3,throttle:n=200,hideDelay:r=500,resetDelay:o=400}=e,i=e.estimatedProgress||__,s=Oe(),a=ze(0),l=ze(!1),u=ze(!1);let c=!1,f,p,d,h;const _=($={})=>{m(),u.value=!1,v(0,$)};function v($=0,K={}){if(s.isHydrating)return;if($>=100)return E({force:K.force});w(),a.value=$<0?0:$;const W=K.force?0:n;W?p=setTimeout(()=>{l.value=!0,T()},W):(l.value=!0,T())}function b(){d=setTimeout(()=>{l.value=!1,h=setTimeout(()=>{a.value=0},o)},r)}function E($={}){a.value=100,c=!0,w(),m(),$.error&&(u.value=!0),$.force?(a.value=0,l.value=!1):b()}function m(){clearTimeout(d),clearTimeout(h)}function w(){clearTimeout(p),cancelAnimationFrame(f)}function T(){c=!1;let $;function K(W){if(c)return;$??=W;const z=W-$;a.value=Math.max(0,Math.min(100,i(t,z))),f=requestAnimationFrame(K)}f=requestAnimationFrame(K)}let k=()=>{};{const $=s.hook("page:loading:start",()=>{_()}),K=s.hook("page:loading:end",()=>{E()}),W=s.hook("vue:error",()=>E());k=()=>{W(),$(),K(),w()}}return{_cleanup:k,progress:de(()=>a.value),isLoading:de(()=>l.value),error:de(()=>u.value),start:_,set:v,finish:E,clear:w}}function v_(e={}){const t=Oe(),n=t._loadingIndicator||=y_(e);return xr()&&(t._loadingIndicatorDeps||=0,t._loadingIndicatorDeps++,Ds(()=>{t._loadingIndicatorDeps--,t._loadingIndicatorDeps===0&&(n._cleanup(),delete t._loadingIndicator)})),n}const b_=gt({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},hideDelay:{type:Number,default:500},resetDelay:{type:Number,default:400},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},errorColor:{type:String,default:"repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)"},estimatedProgress:{type:Function,required:!1}},setup(e,{slots:t,expose:n}){const{progress:r,isLoading:o,error:i,start:s,finish:a,clear:l}=v_({duration:e.duration,throttle:e.throttle,hideDelay:e.hideDelay,resetDelay:e.resetDelay,estimatedProgress:e.estimatedProgress});return n({progress:r,isLoading:o,error:i,start:s,finish:a,clear:l}),()=>bn("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${e.height}px`,opacity:o.value?1:0,background:i.value?e.errorColor:e.color||void 0,backgroundSize:`${r.value>0?100/r.value*100:0}% auto`,transform:`scaleX(${r.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},t)}});let nf;function Hn(e){nf?.(e)}function w_(e){nf=e}const E_={__name:"NNotification",setup(e){const t=_e(!1),n=_e(),r=_e(),o=_e(),i=_e("top-center");return w_(s=>{r.value=s.message,n.value=s.icon,o.value=s.classes??"text-primary border-primary",n.value=s.icon,t.value=!0,i.value=s.position??"top-center",setTimeout(()=>{t.value=!1},s.duration??1500)}),(s,a)=>(Q(),me("div",{fixed:"","left-0":"","right-0":"","z-999":"","text-center":"",class:Ue([{"pointer-events-none overflow-hidden":!t.value},{"top-0":i.value.startsWith("top")},{"bottom-0":i.value.startsWith("bottom")}])},[he("div",{flex:"",style:_n({justifyContent:i.value.includes("right")?"right":i.value.includes("left")?"left":"center"})},[he("div",{border:"~ base",flex:"~ inline gap2","m-3":"","inline-block":"","items-center":"",rounded:"","bg-base":"","px-4":"","py-1":"","transition-all":"","duration-300":"",style:_n(t.value?{}:{transform:`translateY(${i.value.startsWith("top")?"-":""}300%)`}),class:Ue([t.value?"shadow":"shadow-none",o.value])},[n.value?(Q(),me("div",{key:0,class:Ue(n.value)},null,2)):Ze("",!0),he("div",null,Pt(r.value),1)],6)],4)],2))}},Tn={__name:"NIcon",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>(Q(),me("div",{class:Ue(["n-icon",e.icon])},null,2))}};async function rf(e,t=Vt()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const o=t._preloadPromises||=[];if(o.length>4)return Promise.all(o).then(()=>rf(e,t));t._routePreloaded.add(n);for(const i of r){const s=i.components?.default;if(typeof s!="function")continue;const a=Promise.resolve(s()).catch(()=>{}).finally(()=>o.splice(o.indexOf(a)));o.push(a)}await Promise.all(o)}const S_=(...e)=>e.find(t=>t!==void 0);function T_(e){const t=e.componentName||"NuxtLink";function n(i){return typeof i=="string"&&i.startsWith("#")}function r(i,s,a){const l=a??e.trailingSlash;if(!i||l!=="append"&&l!=="remove")return i;if(typeof i=="string")return Wr(i,l);const u="path"in i&&i.path!==void 0?i.path:s(i).path;return{...i,name:void 0,path:Wr(u,l)}}function o(i){const s=Vt(),a=Yn(),l=de(()=>!!i.target&&i.target!=="_self"),u=de(()=>{const v=i.to||i.href||"";return typeof v=="string"&&Sn(v,{acceptRelative:!0})}),c=Ia("RouterLink"),f=typeof c!="string"?c.useLink:void 0,p=de(()=>{if(i.external)return!0;const v=i.to||i.href||"";return typeof v=="object"?!1:v===""||u.value}),d=de(()=>{const v=i.to||i.href||"";return p.value?v:r(v,s.resolve,i.trailingSlash)}),h=p.value?void 0:f?.({...i,to:d}),_=de(()=>{const v=i.trailingSlash??e.trailingSlash;if(!d.value||u.value||n(d.value))return d.value;if(p.value){const b=typeof d.value=="object"&&"path"in d.value?cs(d.value):d.value,E=typeof b=="object"?s.resolve(b).href:b;return Wr(E,v)}return typeof d.value=="object"?s.resolve(d.value)?.href??null:Wr(Dr(a.app.baseURL,d.value),v)});return{to:d,hasTarget:l,isAbsoluteUrl:u,isExternal:p,href:_,isActive:h?.isActive??de(()=>d.value===s.currentRoute.value.path),isExactActive:h?.isExactActive??de(()=>d.value===s.currentRoute.value.path),route:h?.route??de(()=>s.resolve(d.value)),async navigate(v){await Ku(_.value,{replace:i.replace,external:p.value||l.value})}}}return gt({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:o,setup(i,{slots:s}){const a=Vt(),{to:l,href:u,navigate:c,isExternal:f,hasTarget:p,isAbsoluteUrl:d}=o(i),h=ze(!1),_=_e(null),v=m=>{_.value=i.custom?m?.$el?.nextElementSibling:m?.$el};function b(m){return!h.value&&(typeof i.prefetchOn=="string"?i.prefetchOn===m:i.prefetchOn?.[m]??e.prefetchOn?.[m])&&(i.prefetch??e.prefetch)!==!1&&i.noPrefetch!==!0&&i.target!=="_blank"&&!C_()}async function E(m=Oe()){if(h.value)return;h.value=!0;const w=typeof l.value=="string"?l.value:f.value?cs(l.value):a.resolve(l.value).fullPath,T=f.value?new URL(w,window.location.href).href:w;await Promise.all([m.hooks.callHook("link:prefetch",T).catch(()=>{}),!f.value&&!p.value&&rf(l.value,a).catch(()=>{})])}if(b("visibility")){const m=Oe();let w,T=null;tr(()=>{const k=A_();li(()=>{w=fs(()=>{_?.value?.tagName&&(T=k.observe(_.value,async()=>{T?.(),T=null,await E(m)}))})})}),Ir(()=>{w&&l_(w),T?.(),T=null})}return()=>{if(!f.value&&!p.value&&!n(l.value)){const T={ref:v,to:l.value,activeClass:i.activeClass||e.activeClass,exactActiveClass:i.exactActiveClass||e.exactActiveClass,replace:i.replace,ariaCurrentValue:i.ariaCurrentValue,custom:i.custom};return i.custom||(b("interaction")&&(T.onPointerenter=E.bind(null,void 0),T.onFocus=E.bind(null,void 0)),h.value&&(T.class=i.prefetchedClass||e.prefetchedClass),T.rel=i.rel||void 0),bn(Ia("RouterLink"),T,s.default)}const m=i.target||null,w=S_(i.noRel?"":i.rel,e.externalRelAttribute,d.value||p.value?"noopener noreferrer":"")||null;return i.custom?s.default?s.default({href:u.value,navigate:c,prefetch:E,get route(){if(!u.value)return;const T=new URL(u.value,window.location.href);return{path:T.pathname,fullPath:T.pathname,get query(){return oi(T.search)},hash:T.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:u.value}},rel:w,target:m,isExternal:f.value||p.value,isActive:!1,isExactActive:!1}):null:bn("a",{ref:_,href:u.value||null,rel:w,target:m,onClick:T=>{if(!(f.value||p.value))return T.preventDefault(),i.replace?a.replace(u.value):a.push(u.value)}},s.default?.())}}})}const R_=T_(Gm);function Wr(e,t){const n=t==="append"?Ao:ii;return Sn(e)&&!e.startsWith("http")?e:n(e,!0)}function A_(){const e=Oe();if(e._observer)return e._observer;let t=null;const n=new Map,r=(i,s)=>(t||=new IntersectionObserver(a=>{for(const l of a){const u=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&u&&u()}}),n.set(i,s),t.observe(i),()=>{n.delete(i),t?.unobserve(i),n.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:r}}const P_=/2g/;function C_(){const e=navigator.connection;return!!(e&&(e.saveData||P_.test(e.effectiveType)))}const oa=gt({name:"NButton",props:{to:String,icon:String,border:{type:Boolean,default:!0},disabled:Boolean,type:{type:String,default:"button"}},setup(e,{attrs:t,slots:n}){return()=>bn(e.to?R_:"button",{to:e.to,...t,...!e.to&&{type:e.type},...e.disabled?{disabled:!0}:{tabindex:0},class:[e.border?"n-button-base active:n-button-active focus-visible:n-focus-base hover:n-button-hover":"",n.default?"":"n-icon-button","n-button n-transition n-disabled:n-disabled"].join(" ")},{default:()=>[tt(n,"icon",{},()=>e.icon?[bn(Tn,{icon:e.icon,class:n.default?"n-button-icon":""})]:[]),tt(n,"default")]})}}),ia=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},L_={},k_={class:"n-loading n-panel-grids-center"},x_={class:"flex flex-col animate-pulse items-center text-lg"};function O_(e,t){return Q(),me("div",k_,[he("div",x_,[t[1]||(t[1]=he("div",{class:"i-carbon-circle-dash animate-spin text-4xl op50"},null,-1)),tt(e.$slots,"default",{},()=>[t[0]||(t[0]=st(" Loading... ",-1))])])])}const of=Object.assign(ia(L_,[["render",O_]]),{__name:"NLoading"}),I_={class:"n-tip n-tip-base"},sf={__name:"NTip",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>{const r=Tn;return Q(),me("div",I_,[tt(t.$slots,"icon",{},()=>[e.icon?(Q(),xe(r,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):Ze("",!0)]),he("div",null,[tt(t.$slots,"default")])])}}},D_={},N_={class:"n-card n-card-base"};function M_(e,t){return Q(),me("div",N_,[tt(e.$slots,"default")])}const ci=Object.assign(ia(D_,[["render",M_]]),{__name:"NCard"}),V_={flex:"~ gap-3","items-center":""},$_={__name:"NIconTitle",props:{icon:{type:String,required:!1},text:{type:String,required:!1}},setup(e){return(t,n)=>(Q(),me("div",V_,[e.icon?(Q(),me("div",{key:0,class:Ue(e.icon)},null,2)):Ze("",!0),tt(t.$slots,"default",{},()=>[he("div",null,Pt(e.text),1)])]))}},j_={},B_={class:"n-badge"};function F_(e,t){return Q(),me("span",B_,[tt(e.$slots,"default")])}const af=Object.assign(ia(j_,[["render",F_]]),{__name:"NBadge"});function lf(e,t){return xr()?(Ds(e,t),!0):!1}const sa=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const H_=e=>typeof e<"u",U_=e=>e!=null,z_=Object.prototype.toString,G_=e=>z_.call(e)==="[object Object]",fr=()=>{};function W_(...e){if(e.length!==1)return js(...e);const t=e[0];return typeof t=="function"?Gn(qd(()=>({get:t,set:fr}))):_e(t)}function q_(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}const cf=e=>e();function K_(e=cf,t={}){const{initialState:n="active"}=t,r=W_(n==="active");function o(){r.value=!1}function i(){r.value=!0}const s=(...a)=>{r.value&&e(...a)};return{isActive:Gn(r),pause:o,resume:i,eventFilter:s}}function J_(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const r=t;t=void 0,r&&await r},n}function lo(e){return Array.isArray(e)?e:[e]}function X_(e){return Ct()}function Y_(e,t,n={}){const{eventFilter:r=cf,...o}=n;return Ge(e,q_(r,t),o)}function Q_(e,t,n={}){const{eventFilter:r,initialState:o="active",...i}=n,{eventFilter:s,pause:a,resume:l,isActive:u}=K_(r,{initialState:o});return{stop:Y_(e,t,{...i,eventFilter:s}),pause:a,resume:l,isActive:u}}function Z_(e,t=!0,n){X_()?tr(e,n):t?e():Rt(e)}function ey(e,t,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n,i=ze(!1);let s;function a(){s&&(clearTimeout(s),s=void 0)}function l(){i.value=!1,a()}function u(...c){o&&e(),a(),i.value=!0,s=setTimeout(()=>{i.value=!1,s=void 0,e(...c)},Le(t))}return r&&(i.value=!0,sa&&u()),lf(l),{isPending:Hd(i),start:u,stop:l}}function ty(e,t,n){return Ge(e,t,{...n,immediate:!0})}const cn=sa?window:void 0,uf=sa?window.navigator:void 0;function In(e){var t;const n=Le(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function gn(...e){const t=(r,o,i,s)=>(r.addEventListener(o,i,s),()=>r.removeEventListener(o,i,s)),n=de(()=>{const r=lo(Le(e[0])).filter(o=>o!=null);return r.every(o=>typeof o!="string")?r:void 0});return ty(()=>{var r,o;return[(r=(o=n.value)===null||o===void 0?void 0:o.map(i=>In(i)))!==null&&r!==void 0?r:[cn].filter(i=>i!=null),lo(Le(n.value?e[1]:e[0])),lo(X(n.value?e[2]:e[1])),Le(n.value?e[3]:e[2])]},([r,o,i,s],a,l)=>{if(!r?.length||!o?.length||!i?.length)return;const u=G_(s)?{...s}:s,c=r.flatMap(f=>o.flatMap(p=>i.map(d=>t(f,p,d,u))));l(()=>{c.forEach(f=>f())})},{flush:"post"})}function ny(e,t,n={}){const{window:r=cn,ignore:o=[],capture:i=!0,detectIframe:s=!1,controls:a=!1}=n;if(!r)return a?{stop:fr,cancel:fr,trigger:fr}:fr;let l=!0;const u=v=>Le(o).some(b=>{if(typeof b=="string")return Array.from(r.document.querySelectorAll(b)).some(E=>E===v.target||v.composedPath().includes(E));{const E=In(b);return E&&(v.target===E||v.composedPath().includes(E))}});function c(v){const b=Le(v);return b&&b.$.subTree.shapeFlag===16}function f(v,b){const E=Le(v),m=E.$.subTree&&E.$.subTree.children;return m==null||!Array.isArray(m)?!1:m.some(w=>w.el===b.target||b.composedPath().includes(w.el))}const p=v=>{const b=In(e);if(v.target!=null&&!(!(b instanceof Element)&&c(e)&&f(e,v))&&!(!b||b===v.target||v.composedPath().includes(b))){if("detail"in v&&v.detail===0&&(l=!u(v)),!l){l=!0;return}t(v)}};let d=!1;const h=[gn(r,"click",v=>{d||(d=!0,setTimeout(()=>{d=!1},0),p(v))},{passive:!0,capture:i}),gn(r,"pointerdown",v=>{const b=In(e);l=!u(v)&&!!(b&&!v.composedPath().includes(b))},{passive:!0}),s&&gn(r,"blur",v=>{setTimeout(()=>{var b;const E=In(e);((b=r.document.activeElement)===null||b===void 0?void 0:b.tagName)==="IFRAME"&&!E?.contains(r.document.activeElement)&&t(v)},0)},{passive:!0})].filter(Boolean),_=()=>h.forEach(v=>v());return a?{stop:_,cancel:()=>{l=!1},trigger:v=>{l=!0,p(v),l=!1}}:_}function ry(){const e=ze(!1),t=Ct();return t&&tr(()=>{e.value=!0},t),e}function ff(e){const t=ry();return de(()=>(t.value,!!e()))}function El(e,t={}){const{controls:n=!1,navigator:r=uf}=t,o=ff(()=>r&&"permissions"in r),i=ze(),s=typeof e=="string"?{name:e}:e,a=ze(),l=()=>{var c,f;a.value=(c=(f=i.value)===null||f===void 0?void 0:f.state)!==null&&c!==void 0?c:"prompt"};gn(i,"change",l,{passive:!0});const u=J_(async()=>{if(o.value){if(!i.value)try{i.value=await r.permissions.query(s)}catch{i.value=void 0}finally{l()}if(n)return ye(i.value)}});return u(),n?{state:a,isSupported:o,query:u}:a}function oy(e={}){const{navigator:t=uf,read:n=!1,source:r,copiedDuring:o=1500,legacy:i=!1}=e,s=ff(()=>t&&"clipboard"in t),a=El("clipboard-read"),l=El("clipboard-write"),u=de(()=>s.value||i),c=ze(""),f=ze(!1),p=ey(()=>f.value=!1,o,{immediate:!1});async function d(){let E=!(s.value&&b(a.value));if(!E)try{c.value=await t.clipboard.readText()}catch{E=!0}E&&(c.value=v())}u.value&&n&&gn(["copy","cut"],d,{passive:!0});async function h(E=Le(r)){if(u.value&&E!=null){let m=!(s.value&&b(l.value));if(!m)try{await t.clipboard.writeText(E)}catch{m=!0}m&&_(E),c.value=E,f.value=!0,p.start()}}function _(E){const m=document.createElement("textarea");m.value=E,m.style.position="absolute",m.style.opacity="0",m.setAttribute("readonly",""),document.body.appendChild(m),m.select(),document.execCommand("copy"),m.remove()}function v(){var E,m,w;return(E=(m=document)===null||m===void 0||(w=m.getSelection)===null||w===void 0||(w=w.call(m))===null||w===void 0?void 0:w.toString())!==null&&E!==void 0?E:""}function b(E){return E==="granted"||E==="prompt"}return{isSupported:u,text:Gn(c),copied:Gn(f),copy:h}}function iy(e){return JSON.parse(JSON.stringify(e))}const qr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Kr="__vueuse_ssr_handlers__",sy=ay();function ay(){return Kr in qr||(qr[Kr]=qr[Kr]||{}),qr[Kr]}function ly(e,t){return sy[e]||t}function cy(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const uy={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Sl="vueuse-storage";function fy(e,t,n,r={}){var o;const{flush:i="pre",deep:s=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=cn,eventFilter:p,onError:d=R=>{console.error(R)},initOnMounted:h}=r,_=(c?ze:_e)(typeof t=="function"?t():t),v=de(()=>Le(e));if(!n)try{n=ly("getDefaultStorage",()=>cn?.localStorage)()}catch(R){d(R)}if(!n)return _;const b=Le(t),E=cy(b),m=(o=r.serializer)!==null&&o!==void 0?o:uy[E],{pause:w,resume:T}=Q_(_,R=>z(R),{flush:i,deep:s,eventFilter:p});Ge(v,()=>ie(),{flush:i});let k=!1;const $=R=>{h&&!k||ie(R)},K=R=>{h&&!k||Y(R)};f&&a&&(n instanceof Storage?gn(f,"storage",$,{passive:!0}):gn(f,Sl,K)),h?Z_(()=>{k=!0,ie()}):ie();function W(R,A){if(f){const C={key:v.value,oldValue:R,newValue:A,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",C):new CustomEvent(Sl,{detail:C}))}}function z(R){try{const A=n.getItem(v.value);if(R==null)W(A,null),n.removeItem(v.value);else{const C=m.write(R);A!==C&&(n.setItem(v.value,C),W(A,C))}}catch(A){d(A)}}function le(R){const A=R?R.newValue:n.getItem(v.value);if(A==null)return l&&b!=null&&n.setItem(v.value,m.write(b)),b;if(!R&&u){const C=m.read(A);return typeof u=="function"?u(C,b):E==="object"&&!Array.isArray(C)?{...b,...C}:C}else return typeof A!="string"?A:m.read(A)}function ie(R){if(!(R&&R.storageArea!==n)){if(R&&R.key==null){_.value=b;return}if(!(R&&R.key!==v.value)){w();try{const A=m.write(_.value);(R===void 0||R?.newValue!==A)&&(_.value=le(R))}catch(A){d(A)}finally{R?Rt(T):T()}}}}function Y(R){ie(R.detail)}return _}function dy(e,t,n={}){const{window:r=cn}=n;return fy(e,t,r?.localStorage,n)}function ui(e,t,n,r={}){var o,i;const{clone:s=!1,passive:a=!1,eventName:l,deep:u=!1,defaultValue:c,shouldEmit:f}=r,p=Ct(),d=n||p?.emit||(p==null||(o=p.$emit)===null||o===void 0?void 0:o.bind(p))||(p==null||(i=p.proxy)===null||i===void 0||(i=i.$emit)===null||i===void 0?void 0:i.bind(p?.proxy));let h=l;h=h||`update:${t.toString()}`;const _=E=>s?typeof s=="function"?s(E):iy(E):E,v=()=>H_(e[t])?_(e[t]):c,b=E=>{f?f(E)&&d(h,E):d(h,E)};if(a){const E=_e(v());let m=!1;return Ge(()=>e[t],w=>{m||(m=!0,E.value=_(w),Rt(()=>m=!1))}),Ge(E,w=>{!m&&(w!==e[t]||u)&&b(w)},{deep:u}),E}else return de({get(){return v()},set(E){b(E)}})}const py=["disabled"],hy={key:0,value:"",disabled:"",hidden:""},my={__name:"NSelect",props:{modelValue:{type:null,required:!1,default:void 0},placeholder:{type:String,required:!1,default:""},icon:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1}},emits:[],setup(e,{emit:t}){const o=ui(e,"modelValue",t,{passive:!0});return(i,s)=>{const a=Tn;return Q(),me("div",{class:Ue(["n-select flex flex items-center border rounded n-bg-base px-2 py-1 focus-within:border-context focus-within:n-focus-base",e.disabled?"border-gray:10":"n-border-base"])},[tt(i.$slots,"icon",{},()=>[e.icon?(Q(),xe(a,{key:0,icon:e.icon,class:"mr-0.4em text-1.1em op50"},null,8,["icon"])):Ze("",!0)]),Zo(he("select",{"onUpdate:modelValue":s[0]||(s[0]=l=>we(o)?o.value=l:null),disabled:e.disabled,class:Ue(["w-full flex-auto n-bg-base !outline-none",e.disabled?"appearance-none":""])},[e.placeholder?(Q(),me("option",hy,Pt(e.placeholder),1)):Ze("",!0),tt(i.$slots,"default")],10,py),[[Tu,X(o)]])],2)}}},gy={class:"space-y-2"},_y={class:"flex items-center justify-between"},yy=["value"],vy=gt({__name:"EmailTemplateSelector",props:{emailTemplates:{},selectedTemplate:{}},emits:["select"],setup(e){return(t,n)=>{const r=$_,o=af,i=my,s=ci;return Q(),me("div",gy,[he("div",_y,[oe(r,{text:"Select a template:",icon:"carbon:list"}),oe(o,null,{default:Pe(()=>[st(Pt(t.emailTemplates.length)+" templates ",1)]),_:1})]),t.emailTemplates.length>0?(Q(),xe(s,{key:0,class:"grid gap-3"},{default:Pe(()=>[oe(i,{"model-value":t.selectedTemplate,"onUpdate:modelValue":n[0]||(n[0]=a=>t.$emit("select",a))},{default:Pe(()=>[(Q(!0),me(je,null,Wc(t.emailTemplates,a=>(Q(),me("option",{key:a.filename,value:a},Pt(a.filename),9,yy))),128))]),_:1},8,["model-value"])]),_:1})):Ze("",!0)])}}}),by=Object.assign(vy,{__name:"EmailTemplateSelector"}),wy={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded n-bg-base"},Ey=["disabled","title"],Sy=["disabled","value","title"],Ty={__name:"NSelectTabs",props:{modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1},options:{type:Array,required:!0}},emits:[],setup(e,{emit:t}){const o=ui(e,"modelValue",t,{passive:!0});return(i,s)=>(Q(),me("fieldset",wy,[(Q(!0),me(je,null,Wc(e.options,(a,l)=>(Q(),me("label",{key:a.label,disabled:e.disabled,class:Ue(["relative n-border-base px-0.5em py-0.1em hover:n-bg-active",[l?"border-l n-border-base ml--1px":"",a.value===X(o)?"n-bg-active":""]]),title:a.label},[he("div",{class:Ue([a.value===X(o)?"":"op35"])},Pt(a.label),3),Zo(he("input",{"onUpdate:modelValue":s[0]||(s[0]=u=>we(o)?o.value=u:null),type:"radio",disabled:e.disabled,value:a.value,title:a.label,class:"absolute inset-0 op-0.1"},null,8,Sy),[[Su,X(o)]])],10,Ey))),128))]))}},Ry=gt({__name:"BaseButton",props:{isLoading:{type:Boolean},isDisabled:{type:Boolean},icon:{}},setup(e){return(t,n)=>{const r=Tn,o=oa;return Q(),xe(o,{disabled:t.isLoading||t.isDisabled},{icon:Pe(()=>[oe(r,{icon:t.isLoading?"carbon:circle-dash":t.icon,class:Ue({"animate-spin":t.isLoading})},null,8,["icon","class"])]),default:Pe(()=>[tt(t.$slots,"default")]),_:3},8,["disabled"])}}}),ds=Object.assign(Ry,{__name:"BaseButton"}),Ay={class:"n-text-input flex flex items-center border n-border-base rounded n-bg-base py-1 pl-1 pr-2 focus-within:border-context focus-within:n-focus-base"},Py={__name:"NTextInput",props:{modelValue:{type:[String,Number],required:!1,default:""},icon:{type:String,required:!1},placeholder:{type:String,required:!1},disabled:{type:Boolean,required:!1},autofocus:{type:Boolean,required:!1},autocomplete:{type:String,required:!1},readonly:{type:Boolean,required:!1},type:{type:String,required:!1,default:"text"}},emits:["keydown","keyup","change"],setup(e,{emit:t}){const o=ui(e,"modelValue",t,{passive:!0});return(i,s)=>{const a=Tn;return Q(),me("div",Ay,[tt(i.$slots,"icon",{},()=>[e.icon?(Q(),xe(a,{key:0,icon:e.icon,class:"ml-0.3em mr-0.1em text-1.1em op50"},null,8,["icon"])):Ze("",!0)]),Zo(he("input",Ys({"onUpdate:modelValue":s[0]||(s[0]=l=>we(o)?o.value=l:null)},i.$props,{class:"ml-0.4em w-full flex-auto n-bg-base !outline-none"}),null,16),[[Oh,X(o)]])])}}};/*!
|
|
20
20
|
* tabbable 6.4.0
|
|
21
21
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
22
22
|
*/var df=["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] *)"],ko=df.join(","),pf=typeof Element>"u",wn=pf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,xo=!pf&&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},Oo=function(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=o===""||o==="true",s=i||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):Oo(t.parentNode));return s},Cy=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},hf=function(t,n,r){if(Oo(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(ko));return n&&wn.call(t,ko)&&o.unshift(t),o=o.filter(r),o},Io=function(t,n,r){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if(!Oo(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,u=Io(l,!0,r);r.flatten?o.push.apply(o,u):o.push({scopeParent:s,candidates:u})}else{var c=wn.call(s,ko);c&&r.filter(s)&&(n||!t.includes(s))&&o.push(s);var f=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),p=!Oo(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(f&&p){var d=Io(f===!0?s.children:f.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:s,candidates:d})}else i.unshift.apply(i,s.children)}}return o},mf=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},ln=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Cy(t))&&!mf(t)?0:t.tabIndex},Ly=function(t,n){var r=ln(t);return r<0&&n&&!mf(t)?0:r},ky=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},gf=function(t){return t.tagName==="INPUT"},xy=function(t){return gf(t)&&t.type==="hidden"},Oy=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Iy=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},Dy=function(t){if(!t.name)return!0;var n=t.form||xo(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=Iy(o,t.form);return!i||i===t},Ny=function(t){return gf(t)&&t.type==="radio"},My=function(t){return Ny(t)&&!Dy(t)},Vy=function(t){var n,r=t&&xo(t),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==t){var s,a,l;for(i=!!((s=o)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!i&&o;){var u,c,f;r=xo(o),o=(u=r)===null||u===void 0?void 0:u.host,i=!!((c=o)!==null&&c!==void 0&&(f=c.ownerDocument)!==null&&f!==void 0&&f.contains(o))}}return i},Tl=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},$y=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var i=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!i}if(getComputedStyle(t).visibility==="hidden")return!0;var s=wn.call(t,"details>summary:first-of-type"),a=s?t.parentElement:t;if(wn.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof o=="function"){for(var l=t;t;){var u=t.parentElement,c=xo(t);if(u&&!u.shadowRoot&&o(u)===!0)return Tl(t);t.assignedSlot?t=t.assignedSlot:!u&&c!==t.ownerDocument?t=c.host:t=u}t=l}if(Vy(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Tl(t);return!1},jy=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return wn.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},Do=function(t,n){return!(n.disabled||xy(n)||$y(n,t)||Oy(n)||jy(n))},ps=function(t,n){return!(My(n)||ln(n)<0||!Do(t,n))},By=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},_f=function(t){var n=[],r=[];return t.forEach(function(o,i){var s=!!o.scopeParent,a=s?o.scopeParent:o,l=Ly(a,s),u=s?_f(o.candidates):a;l===0?s?n.push.apply(n,u):n.push(a):r.push({documentOrder:i,tabIndex:l,item:o,isScope:s,content:u})}),r.sort(ky).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},Fy=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Io([t],n.includeContainer,{filter:ps.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:By}):r=hf(t,n.includeContainer,ps.bind(null,n)),_f(r)},Hy=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Io([t],n.includeContainer,{filter:Do.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=hf(t,n.includeContainer,Do.bind(null,n)),r},Cn=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return wn.call(t,ko)===!1?!1:ps(n,t)},Uy=df.concat("iframe:not([inert]):not([inert] *)").join(","),ki=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return wn.call(t,Uy)===!1?!1:Do(n,t)};/*!
|
|
@@ -24,7 +24,7 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DxNHbxmM.js","./Cnne
|
|
|
24
24
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
25
25
|
*/function hs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zy(e){if(Array.isArray(e))return hs(e)}function Rl(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=yf(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
26
26
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return s=l.done,l},e:function(l){a=!0,i=l},f:function(){try{s||n.return==null||n.return()}finally{if(a)throw i}}}}function Gy(e,t,n){return(t=Xy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wy(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qy(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
27
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Al(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 Pl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Al(Object(n),!0).forEach(function(r){Gy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Al(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ky(e){return zy(e)||Wy(e)||yf(e)||qy()}function Jy(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xy(e){var t=Jy(e,"string");return typeof t=="symbol"?t:t+""}function yf(e,t){if(e){if(typeof e=="string")return hs(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hs(e,t):void 0}}var zt={getActiveTrap:function(t){return t?.length>0?t[t.length-1]:null},activateTrap:function(t,n){var r=zt.getActiveTrap(t);n!==r&&zt.pauseTrap(t);var o=t.indexOf(n);o===-1||t.splice(o,1),t.push(n)},deactivateTrap:function(t,n){var r=t.indexOf(n);r!==-1&&t.splice(r,1),zt.unpauseTrap(t)},pauseTrap:function(t){var n=zt.getActiveTrap(t);n?._setPausedState(!0)},unpauseTrap:function(t){var n=zt.getActiveTrap(t);n&&!n._isManuallyPaused()&&n._setPausedState(!1)}},Yy=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Qy=function(t){return t?.key==="Escape"||t?.key==="Esc"||t?.keyCode===27},vr=function(t){return t?.key==="Tab"||t?.keyCode===9},Zy=function(t){return vr(t)&&!t.shiftKey},ev=function(t){return vr(t)&&t.shiftKey},Cl=function(t){return setTimeout(t,0)},lr=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return typeof t=="function"?t.apply(void 0,r):t},Jr=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},tv=[],nv=function(t,n){var r=n?.document||document,o=n?.trapStack||tv,i=Pl({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:Zy,isKeyBackward:ev},n),s={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,l=function(R,A,C){return R&&R[A]!==void 0?R[A]:i[C||A]},u=function(R,A){var C=typeof A?.composedPath=="function"?A.composedPath():void 0;return s.containerGroups.findIndex(function(G){var I=G.container,ee=G.tabbableNodes;return I.contains(R)||C?.includes(I)||ee.find(function(se){return se===R})})},c=function(R){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=A.hasFallback,G=C===void 0?!1:C,I=A.params,ee=I===void 0?[]:I,se=i[R];if(typeof se=="function"&&(se=se.apply(void 0,Ky(ee))),se===!0&&(se=void 0),!se){if(se===void 0||se===!1)return se;throw new Error("`".concat(R,"` was specified but was not a node, or did not return a node"))}var de=se;if(typeof se=="string"){try{de=r.querySelector(se)}catch(ue){throw new Error("`".concat(R,'` appears to be an invalid selector; error="').concat(ue.message,'"'))}if(!de&&!G)throw new Error("`".concat(R,"` as selector refers to no known node"))}return de},f=function(){var R=c("initialFocus",{hasFallback:!0});if(R===!1)return!1;if(R===void 0||R&&!ki(R,i.tabbableOptions))if(u(r.activeElement)>=0)R=r.activeElement;else{var A=s.tabbableGroups[0],C=A&&A.firstTabbableNode;R=C||c("fallbackFocus")}else R===null&&(R=c("fallbackFocus"));if(!R)throw new Error("Your focus-trap needs to have at least one focusable element");return R},p=function(){if(s.containerGroups=s.containers.map(function(R){var A=Fy(R,i.tabbableOptions),C=Hy(R,i.tabbableOptions),G=A.length>0?A[0]:void 0,I=A.length>0?A[A.length-1]:void 0,ee=C.find(function(ue){return Cn(ue)}),se=C.slice().reverse().find(function(ue){return Cn(ue)}),de=!!A.find(function(ue){return ln(ue)>0});return{container:R,tabbableNodes:A,focusableNodes:C,posTabIndexesFound:de,firstTabbableNode:G,lastTabbableNode:I,firstDomTabbableNode:ee,lastDomTabbableNode:se,nextTabbableNode:function(Ne){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Ce=A.indexOf(Ne);return Ce<0?qe?C.slice(C.indexOf(Ne)+1).find(function(nt){return Cn(nt)}):C.slice(0,C.indexOf(Ne)).reverse().find(function(nt){return Cn(nt)}):A[Ce+(qe?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(R){return R.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(R){return R.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.")},d=function(R){var A=R.activeElement;if(A)return A.shadowRoot&&A.shadowRoot.activeElement!==null?d(A.shadowRoot):A},h=function(R){if(R!==!1&&R!==d(document)){if(!R||!R.focus){h(f());return}R.focus({preventScroll:!!i.preventScroll}),s.mostRecentlyFocusedNode=R,Yy(R)&&R.select()}},_=function(R){var A=c("setReturnFocus",{params:[R]});return A||(A===!1?!1:R)},v=function(R){var A=R.target,C=R.event,G=R.isBackward,I=G===void 0?!1:G;A=A||Jr(C),p();var ee=null;if(s.tabbableGroups.length>0){var se=u(A,C),de=se>=0?s.containerGroups[se]:void 0;if(se<0)I?ee=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:ee=s.tabbableGroups[0].firstTabbableNode;else if(I){var ue=s.tabbableGroups.findIndex(function(N){var F=N.firstTabbableNode;return A===F});if(ue<0&&(de.container===A||ki(A,i.tabbableOptions)&&!Cn(A,i.tabbableOptions)&&!de.nextTabbableNode(A,!1))&&(ue=se),ue>=0){var Ne=ue===0?s.tabbableGroups.length-1:ue-1,qe=s.tabbableGroups[Ne];ee=ln(A)>=0?qe.lastTabbableNode:qe.lastDomTabbableNode}else vr(C)||(ee=de.nextTabbableNode(A,!1))}else{var Ce=s.tabbableGroups.findIndex(function(N){var F=N.lastTabbableNode;return A===F});if(Ce<0&&(de.container===A||ki(A,i.tabbableOptions)&&!Cn(A,i.tabbableOptions)&&!de.nextTabbableNode(A))&&(Ce=se),Ce>=0){var nt=Ce===s.tabbableGroups.length-1?0:Ce+1,L=s.tabbableGroups[nt];ee=ln(A)>=0?L.firstTabbableNode:L.firstDomTabbableNode}else vr(C)||(ee=de.nextTabbableNode(A))}}else ee=c("fallbackFocus");return ee},b=function(R){var A=Jr(R);if(!(u(A,R)>=0)){if(lr(i.clickOutsideDeactivates,R)){a.deactivate({returnFocus:i.returnFocusOnDeactivate});return}lr(i.allowOutsideClick,R)||R.preventDefault()}},E=function(R){var A=Jr(R),C=u(A,R)>=0;if(C||A instanceof Document)C&&(s.mostRecentlyFocusedNode=A);else{R.stopImmediatePropagation();var G,I=!0;if(s.mostRecentlyFocusedNode)if(ln(s.mostRecentlyFocusedNode)>0){var ee=u(s.mostRecentlyFocusedNode),se=s.containerGroups[ee].tabbableNodes;if(se.length>0){var de=se.findIndex(function(ue){return ue===s.mostRecentlyFocusedNode});de>=0&&(i.isKeyForward(s.recentNavEvent)?de+1<se.length&&(G=se[de+1],I=!1):de-1>=0&&(G=se[de-1],I=!1))}}else s.containerGroups.some(function(ue){return ue.tabbableNodes.some(function(Ne){return ln(Ne)>0})})||(I=!1);else I=!1;I&&(G=v({target:s.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(s.recentNavEvent)})),h(G||s.mostRecentlyFocusedNode||f())}s.recentNavEvent=void 0},m=function(R){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=R;var C=v({event:R,isBackward:A});C&&(vr(R)&&R.preventDefault(),h(C))},w=function(R){(i.isKeyForward(R)||i.isKeyBackward(R))&&m(R,i.isKeyBackward(R))},T=function(R){Qy(R)&&lr(i.escapeDeactivates,R)!==!1&&(R.preventDefault(),a.deactivate())},k=function(R){var A=Jr(R);u(A,R)>=0||lr(i.clickOutsideDeactivates,R)||lr(i.allowOutsideClick,R)||(R.preventDefault(),R.stopImmediatePropagation())},$=function(){if(s.active)return zt.activateTrap(o,a),s.delayInitialFocusTimer=i.delayInitialFocus?Cl(function(){h(f())}):h(f()),r.addEventListener("focusin",E,!0),r.addEventListener("mousedown",b,{capture:!0,passive:!1}),r.addEventListener("touchstart",b,{capture:!0,passive:!1}),r.addEventListener("click",k,{capture:!0,passive:!1}),r.addEventListener("keydown",w,{capture:!0,passive:!1}),r.addEventListener("keydown",T),a},K=function(R){s.active&&!s.paused&&a._setSubtreeIsolation(!1),s.adjacentElements.clear(),s.alreadySilent.clear();var A=new Set,C=new Set,G=Rl(R),I;try{for(G.s();!(I=G.n()).done;){var ee=I.value;A.add(ee);for(var se=typeof ShadowRoot<"u"&&ee.getRootNode()instanceof ShadowRoot,de=ee;de;){A.add(de);var ue=de.parentElement,Ne=[];ue?Ne=ue.children:!ue&&se&&(Ne=de.getRootNode().children,ue=de.getRootNode().host,se=typeof ShadowRoot<"u"&&ue.getRootNode()instanceof ShadowRoot);var qe=Rl(Ne),Ce;try{for(qe.s();!(Ce=qe.n()).done;){var nt=Ce.value;C.add(nt)}}catch(L){qe.e(L)}finally{qe.f()}de=ue}}}catch(L){G.e(L)}finally{G.f()}A.forEach(function(L){C.delete(L)}),s.adjacentElements=C},W=function(){if(s.active)return r.removeEventListener("focusin",E,!0),r.removeEventListener("mousedown",b,!0),r.removeEventListener("touchstart",b,!0),r.removeEventListener("click",k,!0),r.removeEventListener("keydown",w,!0),r.removeEventListener("keydown",T),a},z=function(R){var A=R.some(function(C){var G=Array.from(C.removedNodes);return G.some(function(I){return I===s.mostRecentlyFocusedNode})});A&&h(f())},le=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(z):void 0,ie=function(){le&&(le.disconnect(),s.active&&!s.paused&&s.containers.map(function(R){le.observe(R,{subtree:!0,childList:!0})}))};return a={get active(){return s.active},get paused(){return s.paused},activate:function(R){if(s.active)return this;var A=l(R,"onActivate"),C=l(R,"onPostActivate"),G=l(R,"checkCanFocusTrap"),I=zt.getActiveTrap(o),ee=!1;if(I&&!I.paused){var se;(se=I._setSubtreeIsolation)===null||se===void 0||se.call(I,!1),ee=!0}try{G||p(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=d(r),A?.();var de=function(){G&&p(),$(),ie(),i.isolateSubtrees&&a._setSubtreeIsolation(!0),C?.()};if(G)return G(s.containers.concat()).then(de,de),this;de()}catch(Ne){if(I===zt.getActiveTrap(o)&&ee){var ue;(ue=I._setSubtreeIsolation)===null||ue===void 0||ue.call(I,!0)}throw Ne}return this},deactivate:function(R){if(!s.active)return this;var A=Pl({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},R);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,s.paused||a._setSubtreeIsolation(!1),s.alreadySilent.clear(),W(),s.active=!1,s.paused=!1,ie(),zt.deactivateTrap(o,a);var C=l(A,"onDeactivate"),G=l(A,"onPostDeactivate"),I=l(A,"checkCanReturnFocus"),ee=l(A,"returnFocus","returnFocusOnDeactivate");C?.();var se=function(){Cl(function(){ee&&h(_(s.nodeFocusedBeforeActivation)),G?.()})};return ee&&I?(I(_(s.nodeFocusedBeforeActivation)).then(se,se),this):(se(),this)},pause:function(R){return s.active?(s.manuallyPaused=!0,this._setPausedState(!0,R)):this},unpause:function(R){return s.active?(s.manuallyPaused=!1,o[o.length-1]!==this?this:this._setPausedState(!1,R)):this},updateContainerElements:function(R){var A=[].concat(R).filter(Boolean);return s.containers=A.map(function(C){return typeof C=="string"?r.querySelector(C):C}),i.isolateSubtrees&&K(s.containers),s.active&&(p(),i.isolateSubtrees&&!s.paused&&a._setSubtreeIsolation(!0)),ie(),this}},Object.defineProperties(a,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(R,A){if(s.paused===R)return this;if(s.paused=R,R){var C=l(A,"onPause"),G=l(A,"onPostPause");C?.(),W(),ie(),a._setSubtreeIsolation(!1),G?.()}else{var I=l(A,"onUnpause"),ee=l(A,"onPostUnpause");I?.(),a._setSubtreeIsolation(!0),p(),$(),ie(),ee?.()}return this}},_setSubtreeIsolation:{value:function(R){i.isolateSubtrees&&s.adjacentElements.forEach(function(A){var C;if(R)switch(i.isolateSubtrees){case"aria-hidden":(A.ariaHidden==="true"||((C=A.getAttribute("aria-hidden"))===null||C===void 0?void 0:C.toLowerCase())==="true")&&s.alreadySilent.add(A),A.setAttribute("aria-hidden","true");break;default:(A.inert||A.hasAttribute("inert"))&&s.alreadySilent.add(A),A.setAttribute("inert",!0);break}else if(!s.alreadySilent.has(A))switch(i.isolateSubtrees){case"aria-hidden":A.removeAttribute("aria-hidden");break;default:A.removeAttribute("inert");break}})}}}),a.updateContainerElements(t),a};function rv(e,t={}){let n;const{immediate:r,...o}=t,i=ze(!1),s=ze(!1),a=f=>n&&n.activate(f),l=f=>n&&n.deactivate(f),u=()=>{n&&(n.pause(),s.value=!0)},c=()=>{n&&(n.unpause(),s.value=!1)};return Ge(pe(()=>lo(Le(e)).map(f=>{const p=Le(f);return typeof p=="string"?p:In(p)}).filter(U_)),f=>{if(f.length)if(!n)n=nv(f,{...o,onActivate(){i.value=!0,t.onActivate&&t.onActivate()},onDeactivate(){i.value=!1,t.onDeactivate&&t.onDeactivate()}}),r&&a();else{const p=n?.active;n?.updateContainerElements(f),!p&&r&&a()}},{flush:"post"}),lf(()=>l()),{hasFocus:i,isPaused:s,activate:a,deactivate:l,pause:u,unpause:c}}const ov={inheritAttrs:!1},iv=Object.assign(ov,{__name:"NDialog",props:{modelValue:{type:Boolean,required:!1,default:!1},dim:{type:Boolean,required:!1,default:!0},autoClose:{type:Boolean,required:!1,default:!0}},emits:["close","update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=ui(n,"modelValue",r,{passive:!0}),i=_e(null),s=_e(!1),{activate:a,deactivate:l}=rv(pe(()=>i.value||document.body),{immediate:!1});return lu(()=>{!s.value&&o.value&&(s.value=!0),o.value&&i.value?Rt(a):l()}),ny(i,()=>{n.modelValue&&n.autoClose&&(o.value=!1,r("close"))},{ignore:["a","button","summary"]}),(u,c)=>{const f=ci;return s.value?(Q(),xe(ip,{key:0,to:"body"},[Zo(he("div",{class:Ue(["fixed inset-0 z-100 flex items-center justify-center n-glass-effect n-transition",[X(o)?"":"op0 pointer-events-none visibility-none"]]),role:"dialog","aria-modal":"true"},[he("div",{class:Ue(["absolute inset-0 -z-1",[e.dim?"glass-effect":""]])},null,2),oe(f,Ys(u.$attrs,{ref_key:"card",ref:i,class:"max-h-screen of-auto"}),{default:Pe(()=>[tt(u.$slots,"default")]),_:3},16)],2),[[gh,X(o)]])])):Ze("",!0)}}}),dt={fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},Ll={silent:{level:-1},fatal:{level:dt.fatal},error:{level:dt.error},warn:{level:dt.warn},log:{level:dt.log},info:{level:dt.info},success:{level:dt.success},fail:{level:dt.fail},ready:{level:dt.info},start:{level:dt.info},box:{level:dt.info},debug:{level:dt.debug},trace:{level:dt.trace},verbose:{level:dt.verbose}};function xi(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function ms(e,t,n=".",r){if(!xi(t))return ms(e,{},n);const o=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const s=e[i];s!=null&&(Array.isArray(s)&&Array.isArray(o[i])?o[i]=[...s,...o[i]]:xi(s)&&xi(o[i])?o[i]=ms(s,o[i],(n?`${n}.`:"")+i.toString()):o[i]=s)}return o}function sv(e){return(...t)=>t.reduce((n,r)=>ms(n,r,""),{})}const av=sv();function lv(e){return Object.prototype.toString.call(e)==="[object Object]"}function cv(e){return!(!lv(e)||!e.message&&!e.args||e.stack)}let Oi=!1;const kl=[];class We{options;_lastLog;_mockFn;constructor(t={}){const n=t.types||Ll;this.options=av({...t,defaults:{...t.defaults},level:Ii(t.level,n),reporters:[...t.reporters||[]]},{types:Ll,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const r in n){const o={type:r,...this.options.defaults,...n[r]};this[r]=this._wrapLogFn(o),this[r].raw=this._wrapLogFn(o,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(t){this.options.level=Ii(t,this.options.types,this.options.level)}prompt(t,n){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(t,n)}create(t){const n=new We({...this.options,...t});return this._mockFn&&n.mockTypes(this._mockFn),n}withDefaults(t){return this.create({...this.options,defaults:{...this.options.defaults,...t}})}withTag(t){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+t:t})}addReporter(t){return this.options.reporters.push(t),this}removeReporter(t){if(t){const n=this.options.reporters.indexOf(t);if(n!==-1)return this.options.reporters.splice(n,1)}else this.options.reporters.splice(0);return this}setReporters(t){return this.options.reporters=Array.isArray(t)?t:[t],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const t in this.options.types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}restoreConsole(){for(const t in this.options.types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(t,n){t&&(t.__write||(t.__write=t.write),t.write=r=>{this[n].raw(String(r).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}pauseLogs(){Oi=!0}resumeLogs(){Oi=!1;const t=kl.splice(0);for(const n of t)n[0]._logFn(n[1],n[2])}mockTypes(t){const n=t||this.options.mockFn;if(this._mockFn=n,typeof n=="function")for(const r in this.options.types)this[r]=n(r,this.options.types[r])||this[r],this[r].raw=this[r]}_wrapLogFn(t,n){return(...r)=>{if(Oi){kl.push([this,t,r,n]);return}return this._logFn(t,r,n)}}_logFn(t,n,r){if((t.level||0)>this.level)return!1;const o={date:new Date,args:[],...t,level:Ii(t.level,this.options.types)};!r&&n.length===1&&cv(n[0])?Object.assign(o,n[0]):o.args=[...n],o.message&&(o.args.unshift(o.message),delete o.message),o.additional&&(Array.isArray(o.additional)||(o.additional=o.additional.split(`
|
|
27
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Al(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 Pl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Al(Object(n),!0).forEach(function(r){Gy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Al(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ky(e){return zy(e)||Wy(e)||yf(e)||qy()}function Jy(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xy(e){var t=Jy(e,"string");return typeof t=="symbol"?t:t+""}function yf(e,t){if(e){if(typeof e=="string")return hs(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hs(e,t):void 0}}var zt={getActiveTrap:function(t){return t?.length>0?t[t.length-1]:null},activateTrap:function(t,n){var r=zt.getActiveTrap(t);n!==r&&zt.pauseTrap(t);var o=t.indexOf(n);o===-1||t.splice(o,1),t.push(n)},deactivateTrap:function(t,n){var r=t.indexOf(n);r!==-1&&t.splice(r,1),zt.unpauseTrap(t)},pauseTrap:function(t){var n=zt.getActiveTrap(t);n?._setPausedState(!0)},unpauseTrap:function(t){var n=zt.getActiveTrap(t);n&&!n._isManuallyPaused()&&n._setPausedState(!1)}},Yy=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Qy=function(t){return t?.key==="Escape"||t?.key==="Esc"||t?.keyCode===27},vr=function(t){return t?.key==="Tab"||t?.keyCode===9},Zy=function(t){return vr(t)&&!t.shiftKey},ev=function(t){return vr(t)&&t.shiftKey},Cl=function(t){return setTimeout(t,0)},lr=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return typeof t=="function"?t.apply(void 0,r):t},Jr=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},tv=[],nv=function(t,n){var r=n?.document||document,o=n?.trapStack||tv,i=Pl({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:Zy,isKeyBackward:ev},n),s={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,l=function(R,A,C){return R&&R[A]!==void 0?R[A]:i[C||A]},u=function(R,A){var C=typeof A?.composedPath=="function"?A.composedPath():void 0;return s.containerGroups.findIndex(function(G){var I=G.container,ee=G.tabbableNodes;return I.contains(R)||C?.includes(I)||ee.find(function(se){return se===R})})},c=function(R){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=A.hasFallback,G=C===void 0?!1:C,I=A.params,ee=I===void 0?[]:I,se=i[R];if(typeof se=="function"&&(se=se.apply(void 0,Ky(ee))),se===!0&&(se=void 0),!se){if(se===void 0||se===!1)return se;throw new Error("`".concat(R,"` was specified but was not a node, or did not return a node"))}var pe=se;if(typeof se=="string"){try{pe=r.querySelector(se)}catch(ue){throw new Error("`".concat(R,'` appears to be an invalid selector; error="').concat(ue.message,'"'))}if(!pe&&!G)throw new Error("`".concat(R,"` as selector refers to no known node"))}return pe},f=function(){var R=c("initialFocus",{hasFallback:!0});if(R===!1)return!1;if(R===void 0||R&&!ki(R,i.tabbableOptions))if(u(r.activeElement)>=0)R=r.activeElement;else{var A=s.tabbableGroups[0],C=A&&A.firstTabbableNode;R=C||c("fallbackFocus")}else R===null&&(R=c("fallbackFocus"));if(!R)throw new Error("Your focus-trap needs to have at least one focusable element");return R},p=function(){if(s.containerGroups=s.containers.map(function(R){var A=Fy(R,i.tabbableOptions),C=Hy(R,i.tabbableOptions),G=A.length>0?A[0]:void 0,I=A.length>0?A[A.length-1]:void 0,ee=C.find(function(ue){return Cn(ue)}),se=C.slice().reverse().find(function(ue){return Cn(ue)}),pe=!!A.find(function(ue){return ln(ue)>0});return{container:R,tabbableNodes:A,focusableNodes:C,posTabIndexesFound:pe,firstTabbableNode:G,lastTabbableNode:I,firstDomTabbableNode:ee,lastDomTabbableNode:se,nextTabbableNode:function(Ne){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Ce=A.indexOf(Ne);return Ce<0?qe?C.slice(C.indexOf(Ne)+1).find(function(nt){return Cn(nt)}):C.slice(0,C.indexOf(Ne)).reverse().find(function(nt){return Cn(nt)}):A[Ce+(qe?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(R){return R.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(R){return R.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.")},d=function(R){var A=R.activeElement;if(A)return A.shadowRoot&&A.shadowRoot.activeElement!==null?d(A.shadowRoot):A},h=function(R){if(R!==!1&&R!==d(document)){if(!R||!R.focus){h(f());return}R.focus({preventScroll:!!i.preventScroll}),s.mostRecentlyFocusedNode=R,Yy(R)&&R.select()}},_=function(R){var A=c("setReturnFocus",{params:[R]});return A||(A===!1?!1:R)},v=function(R){var A=R.target,C=R.event,G=R.isBackward,I=G===void 0?!1:G;A=A||Jr(C),p();var ee=null;if(s.tabbableGroups.length>0){var se=u(A,C),pe=se>=0?s.containerGroups[se]:void 0;if(se<0)I?ee=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:ee=s.tabbableGroups[0].firstTabbableNode;else if(I){var ue=s.tabbableGroups.findIndex(function(N){var F=N.firstTabbableNode;return A===F});if(ue<0&&(pe.container===A||ki(A,i.tabbableOptions)&&!Cn(A,i.tabbableOptions)&&!pe.nextTabbableNode(A,!1))&&(ue=se),ue>=0){var Ne=ue===0?s.tabbableGroups.length-1:ue-1,qe=s.tabbableGroups[Ne];ee=ln(A)>=0?qe.lastTabbableNode:qe.lastDomTabbableNode}else vr(C)||(ee=pe.nextTabbableNode(A,!1))}else{var Ce=s.tabbableGroups.findIndex(function(N){var F=N.lastTabbableNode;return A===F});if(Ce<0&&(pe.container===A||ki(A,i.tabbableOptions)&&!Cn(A,i.tabbableOptions)&&!pe.nextTabbableNode(A))&&(Ce=se),Ce>=0){var nt=Ce===s.tabbableGroups.length-1?0:Ce+1,L=s.tabbableGroups[nt];ee=ln(A)>=0?L.firstTabbableNode:L.firstDomTabbableNode}else vr(C)||(ee=pe.nextTabbableNode(A))}}else ee=c("fallbackFocus");return ee},b=function(R){var A=Jr(R);if(!(u(A,R)>=0)){if(lr(i.clickOutsideDeactivates,R)){a.deactivate({returnFocus:i.returnFocusOnDeactivate});return}lr(i.allowOutsideClick,R)||R.preventDefault()}},E=function(R){var A=Jr(R),C=u(A,R)>=0;if(C||A instanceof Document)C&&(s.mostRecentlyFocusedNode=A);else{R.stopImmediatePropagation();var G,I=!0;if(s.mostRecentlyFocusedNode)if(ln(s.mostRecentlyFocusedNode)>0){var ee=u(s.mostRecentlyFocusedNode),se=s.containerGroups[ee].tabbableNodes;if(se.length>0){var pe=se.findIndex(function(ue){return ue===s.mostRecentlyFocusedNode});pe>=0&&(i.isKeyForward(s.recentNavEvent)?pe+1<se.length&&(G=se[pe+1],I=!1):pe-1>=0&&(G=se[pe-1],I=!1))}}else s.containerGroups.some(function(ue){return ue.tabbableNodes.some(function(Ne){return ln(Ne)>0})})||(I=!1);else I=!1;I&&(G=v({target:s.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(s.recentNavEvent)})),h(G||s.mostRecentlyFocusedNode||f())}s.recentNavEvent=void 0},m=function(R){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=R;var C=v({event:R,isBackward:A});C&&(vr(R)&&R.preventDefault(),h(C))},w=function(R){(i.isKeyForward(R)||i.isKeyBackward(R))&&m(R,i.isKeyBackward(R))},T=function(R){Qy(R)&&lr(i.escapeDeactivates,R)!==!1&&(R.preventDefault(),a.deactivate())},k=function(R){var A=Jr(R);u(A,R)>=0||lr(i.clickOutsideDeactivates,R)||lr(i.allowOutsideClick,R)||(R.preventDefault(),R.stopImmediatePropagation())},$=function(){if(s.active)return zt.activateTrap(o,a),s.delayInitialFocusTimer=i.delayInitialFocus?Cl(function(){h(f())}):h(f()),r.addEventListener("focusin",E,!0),r.addEventListener("mousedown",b,{capture:!0,passive:!1}),r.addEventListener("touchstart",b,{capture:!0,passive:!1}),r.addEventListener("click",k,{capture:!0,passive:!1}),r.addEventListener("keydown",w,{capture:!0,passive:!1}),r.addEventListener("keydown",T),a},K=function(R){s.active&&!s.paused&&a._setSubtreeIsolation(!1),s.adjacentElements.clear(),s.alreadySilent.clear();var A=new Set,C=new Set,G=Rl(R),I;try{for(G.s();!(I=G.n()).done;){var ee=I.value;A.add(ee);for(var se=typeof ShadowRoot<"u"&&ee.getRootNode()instanceof ShadowRoot,pe=ee;pe;){A.add(pe);var ue=pe.parentElement,Ne=[];ue?Ne=ue.children:!ue&&se&&(Ne=pe.getRootNode().children,ue=pe.getRootNode().host,se=typeof ShadowRoot<"u"&&ue.getRootNode()instanceof ShadowRoot);var qe=Rl(Ne),Ce;try{for(qe.s();!(Ce=qe.n()).done;){var nt=Ce.value;C.add(nt)}}catch(L){qe.e(L)}finally{qe.f()}pe=ue}}}catch(L){G.e(L)}finally{G.f()}A.forEach(function(L){C.delete(L)}),s.adjacentElements=C},W=function(){if(s.active)return r.removeEventListener("focusin",E,!0),r.removeEventListener("mousedown",b,!0),r.removeEventListener("touchstart",b,!0),r.removeEventListener("click",k,!0),r.removeEventListener("keydown",w,!0),r.removeEventListener("keydown",T),a},z=function(R){var A=R.some(function(C){var G=Array.from(C.removedNodes);return G.some(function(I){return I===s.mostRecentlyFocusedNode})});A&&h(f())},le=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(z):void 0,ie=function(){le&&(le.disconnect(),s.active&&!s.paused&&s.containers.map(function(R){le.observe(R,{subtree:!0,childList:!0})}))};return a={get active(){return s.active},get paused(){return s.paused},activate:function(R){if(s.active)return this;var A=l(R,"onActivate"),C=l(R,"onPostActivate"),G=l(R,"checkCanFocusTrap"),I=zt.getActiveTrap(o),ee=!1;if(I&&!I.paused){var se;(se=I._setSubtreeIsolation)===null||se===void 0||se.call(I,!1),ee=!0}try{G||p(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=d(r),A?.();var pe=function(){G&&p(),$(),ie(),i.isolateSubtrees&&a._setSubtreeIsolation(!0),C?.()};if(G)return G(s.containers.concat()).then(pe,pe),this;pe()}catch(Ne){if(I===zt.getActiveTrap(o)&&ee){var ue;(ue=I._setSubtreeIsolation)===null||ue===void 0||ue.call(I,!0)}throw Ne}return this},deactivate:function(R){if(!s.active)return this;var A=Pl({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},R);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,s.paused||a._setSubtreeIsolation(!1),s.alreadySilent.clear(),W(),s.active=!1,s.paused=!1,ie(),zt.deactivateTrap(o,a);var C=l(A,"onDeactivate"),G=l(A,"onPostDeactivate"),I=l(A,"checkCanReturnFocus"),ee=l(A,"returnFocus","returnFocusOnDeactivate");C?.();var se=function(){Cl(function(){ee&&h(_(s.nodeFocusedBeforeActivation)),G?.()})};return ee&&I?(I(_(s.nodeFocusedBeforeActivation)).then(se,se),this):(se(),this)},pause:function(R){return s.active?(s.manuallyPaused=!0,this._setPausedState(!0,R)):this},unpause:function(R){return s.active?(s.manuallyPaused=!1,o[o.length-1]!==this?this:this._setPausedState(!1,R)):this},updateContainerElements:function(R){var A=[].concat(R).filter(Boolean);return s.containers=A.map(function(C){return typeof C=="string"?r.querySelector(C):C}),i.isolateSubtrees&&K(s.containers),s.active&&(p(),i.isolateSubtrees&&!s.paused&&a._setSubtreeIsolation(!0)),ie(),this}},Object.defineProperties(a,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(R,A){if(s.paused===R)return this;if(s.paused=R,R){var C=l(A,"onPause"),G=l(A,"onPostPause");C?.(),W(),ie(),a._setSubtreeIsolation(!1),G?.()}else{var I=l(A,"onUnpause"),ee=l(A,"onPostUnpause");I?.(),a._setSubtreeIsolation(!0),p(),$(),ie(),ee?.()}return this}},_setSubtreeIsolation:{value:function(R){i.isolateSubtrees&&s.adjacentElements.forEach(function(A){var C;if(R)switch(i.isolateSubtrees){case"aria-hidden":(A.ariaHidden==="true"||((C=A.getAttribute("aria-hidden"))===null||C===void 0?void 0:C.toLowerCase())==="true")&&s.alreadySilent.add(A),A.setAttribute("aria-hidden","true");break;default:(A.inert||A.hasAttribute("inert"))&&s.alreadySilent.add(A),A.setAttribute("inert",!0);break}else if(!s.alreadySilent.has(A))switch(i.isolateSubtrees){case"aria-hidden":A.removeAttribute("aria-hidden");break;default:A.removeAttribute("inert");break}})}}}),a.updateContainerElements(t),a};function rv(e,t={}){let n;const{immediate:r,...o}=t,i=ze(!1),s=ze(!1),a=f=>n&&n.activate(f),l=f=>n&&n.deactivate(f),u=()=>{n&&(n.pause(),s.value=!0)},c=()=>{n&&(n.unpause(),s.value=!1)};return Ge(de(()=>lo(Le(e)).map(f=>{const p=Le(f);return typeof p=="string"?p:In(p)}).filter(U_)),f=>{if(f.length)if(!n)n=nv(f,{...o,onActivate(){i.value=!0,t.onActivate&&t.onActivate()},onDeactivate(){i.value=!1,t.onDeactivate&&t.onDeactivate()}}),r&&a();else{const p=n?.active;n?.updateContainerElements(f),!p&&r&&a()}},{flush:"post"}),lf(()=>l()),{hasFocus:i,isPaused:s,activate:a,deactivate:l,pause:u,unpause:c}}const ov={inheritAttrs:!1},iv=Object.assign(ov,{__name:"NDialog",props:{modelValue:{type:Boolean,required:!1,default:!1},dim:{type:Boolean,required:!1,default:!0},autoClose:{type:Boolean,required:!1,default:!0}},emits:["close","update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=ui(n,"modelValue",r,{passive:!0}),i=_e(null),s=_e(!1),{activate:a,deactivate:l}=rv(de(()=>i.value||document.body),{immediate:!1});return lu(()=>{!s.value&&o.value&&(s.value=!0),o.value&&i.value?Rt(a):l()}),ny(i,()=>{n.modelValue&&n.autoClose&&(o.value=!1,r("close"))},{ignore:["a","button","summary"]}),(u,c)=>{const f=ci;return s.value?(Q(),xe(ip,{key:0,to:"body"},[Zo(he("div",{class:Ue(["fixed inset-0 z-100 flex items-center justify-center n-glass-effect n-transition",[X(o)?"":"op0 pointer-events-none visibility-none"]]),role:"dialog","aria-modal":"true"},[he("div",{class:Ue(["absolute inset-0 -z-1",[e.dim?"glass-effect":""]])},null,2),oe(f,Ys(u.$attrs,{ref_key:"card",ref:i,class:"max-h-screen of-auto"}),{default:Pe(()=>[tt(u.$slots,"default")]),_:3},16)],2),[[gh,X(o)]])])):Ze("",!0)}}}),dt={fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},Ll={silent:{level:-1},fatal:{level:dt.fatal},error:{level:dt.error},warn:{level:dt.warn},log:{level:dt.log},info:{level:dt.info},success:{level:dt.success},fail:{level:dt.fail},ready:{level:dt.info},start:{level:dt.info},box:{level:dt.info},debug:{level:dt.debug},trace:{level:dt.trace},verbose:{level:dt.verbose}};function xi(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function ms(e,t,n=".",r){if(!xi(t))return ms(e,{},n);const o=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const s=e[i];s!=null&&(Array.isArray(s)&&Array.isArray(o[i])?o[i]=[...s,...o[i]]:xi(s)&&xi(o[i])?o[i]=ms(s,o[i],(n?`${n}.`:"")+i.toString()):o[i]=s)}return o}function sv(e){return(...t)=>t.reduce((n,r)=>ms(n,r,""),{})}const av=sv();function lv(e){return Object.prototype.toString.call(e)==="[object Object]"}function cv(e){return!(!lv(e)||!e.message&&!e.args||e.stack)}let Oi=!1;const kl=[];class We{options;_lastLog;_mockFn;constructor(t={}){const n=t.types||Ll;this.options=av({...t,defaults:{...t.defaults},level:Ii(t.level,n),reporters:[...t.reporters||[]]},{types:Ll,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const r in n){const o={type:r,...this.options.defaults,...n[r]};this[r]=this._wrapLogFn(o),this[r].raw=this._wrapLogFn(o,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(t){this.options.level=Ii(t,this.options.types,this.options.level)}prompt(t,n){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(t,n)}create(t){const n=new We({...this.options,...t});return this._mockFn&&n.mockTypes(this._mockFn),n}withDefaults(t){return this.create({...this.options,defaults:{...this.options.defaults,...t}})}withTag(t){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+t:t})}addReporter(t){return this.options.reporters.push(t),this}removeReporter(t){if(t){const n=this.options.reporters.indexOf(t);if(n!==-1)return this.options.reporters.splice(n,1)}else this.options.reporters.splice(0);return this}setReporters(t){return this.options.reporters=Array.isArray(t)?t:[t],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const t in this.options.types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}restoreConsole(){for(const t in this.options.types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(t,n){t&&(t.__write||(t.__write=t.write),t.write=r=>{this[n].raw(String(r).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}pauseLogs(){Oi=!0}resumeLogs(){Oi=!1;const t=kl.splice(0);for(const n of t)n[0]._logFn(n[1],n[2])}mockTypes(t){const n=t||this.options.mockFn;if(this._mockFn=n,typeof n=="function")for(const r in this.options.types)this[r]=n(r,this.options.types[r])||this[r],this[r].raw=this[r]}_wrapLogFn(t,n){return(...r)=>{if(Oi){kl.push([this,t,r,n]);return}return this._logFn(t,r,n)}}_logFn(t,n,r){if((t.level||0)>this.level)return!1;const o={date:new Date,args:[],...t,level:Ii(t.level,this.options.types)};!r&&n.length===1&&cv(n[0])?Object.assign(o,n[0]):o.args=[...n],o.message&&(o.args.unshift(o.message),delete o.message),o.additional&&(Array.isArray(o.additional)||(o.additional=o.additional.split(`
|
|
28
28
|
`)),o.args.push(`
|
|
29
29
|
`+o.additional.join(`
|
|
30
30
|
`)),delete o.additional),o.type=typeof o.type=="string"?o.type.toLowerCase():"log",o.tag=typeof o.tag=="string"?o.tag:"";const i=(a=!1)=>{const l=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&l>0){const u=[...this._lastLog.object.args];l>1&&u.push(`(repeated ${l} times)`),this._log({...this._lastLog.object,args:u}),this._lastLog.count=1}a&&(this._lastLog.object=o,this._log(o))};clearTimeout(this._lastLog.timeout);const s=this._lastLog.time&&o.date?o.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=o.date,s<this.options.throttle)try{const a=JSON.stringify([o.type,o.tag,o.args]),l=this._lastLog.serialized===a;if(this._lastLog.serialized=a,l&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin)){this._lastLog.timeout=setTimeout(i,this.options.throttle);return}}catch{}i(!0)}_log(t){for(const n of this.options.reporters)n.log(t,{options:this.options})}}function Ii(e,t={},n=3){return e===void 0?n:typeof e=="number"?e:t[e]&&t[e].level!==void 0?t[e].level:n}We.prototype.add=We.prototype.addReporter;We.prototype.remove=We.prototype.removeReporter;We.prototype.clear=We.prototype.removeReporter;We.prototype.withScope=We.prototype.withTag;We.prototype.mock=We.prototype.mockTypes;We.prototype.pause=We.prototype.pauseLogs;We.prototype.resume=We.prototype.resumeLogs;function uv(e={}){return new We(e)}class fv{options;defaultColor;levelColorMap;typeColorMap;constructor(t){this.options={...t},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(t){return t<1?console.__error||console.error:t===1?console.__warn||console.warn:console.__log||console.log}log(t){const n=this._getLogFn(t.level),r=t.type==="log"?"":t.type,o=t.tag||"",s=`
|
|
@@ -33,7 +33,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
33
33
|
color: white;
|
|
34
34
|
font-weight: bold;
|
|
35
35
|
padding: 2px 0.5em;
|
|
36
|
-
`,a=`%c${[o,r].filter(Boolean).join(":")}`;typeof t.args[0]=="string"?n(`${a}%c ${t.args[0]}`,s,"",...t.args.slice(1)):n(a,s,...t.args)}}function dv(e={}){return uv({reporters:e.reporters||[new fv({})],prompt(n,r={}){return r.type==="confirm"?Promise.resolve(confirm(n)):Promise.resolve(prompt(n))},...e})}const No=dv(),pv={class:"flex flex-col gap-2"},hv=gt({__name:"EmailSendButton",props:{html:{}},setup(e){const t=e,n=_e(!1),r=_e(!1),o=_e(""),i=async()=>{n.value=!0;try{if(!o.value)return;const s=await fetch("https://react.email/api/send/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({to:o.value,subject:"Test Email from Nuxt Email Renderer",html:t.html})});if(s.status===429){const{error:a}=await s.json();No.error(`Error sending test email: ${a}`),r.value=!1,Hn({message:"Too many requests",icon:"i-carbon-warning",classes:"text-red"})}s.status===200&&(r.value=!1,Hn({message:"Email sent successfully",icon:"i-carbon-checkmark",classes:"text-green"}))}catch(s){No.error("Error sending test email:",s),r.value=!1,Hn({message:"Something went wrong. Please try again.",icon:"i-carbon-warning",classes:"text-red"})}finally{n.value=!1}};return(s,a)=>{const l=Py,u=iv;return Q(),me(je,null,[he("div",pv,[oe(ds,{"is-loading":X(n),icon:"carbon:email",onClick:a[0]||(a[0]=c=>r.value=!0)},{default:Pe(()=>[...a[3]||(a[3]=[st(" Send ",-1)])]),_:1},8,["is-loading"])]),oe(u,{modelValue:X(r),"onUpdate:modelValue":a[2]||(a[2]=c=>we(r)?r.value=c:null),class:"min-w-100 flex flex-col gap-4 p4"},{default:Pe(()=>[a[5]||(a[5]=he("h1",{"text-xl":""}," Send Test Email ",-1)),oe(l,{modelValue:X(o),"onUpdate:modelValue":a[1]||(a[1]=c=>we(o)?o.value=c:null),placeholder:"you@email.com",type:"email"},null,8,["modelValue"]),he("div",null,[oe(ds,{"is-loading":X(n),icon:"carbon:send",onClick:i},{default:Pe(()=>[...a[4]||(a[4]=[st(" Send ",-1)])]),_:1},8,["is-loading"])])]),_:1},8,["modelValue"])],64)}}}),mv=Object.assign(hv,{__name:"EmailSendButton"}),gv={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"},_v={class:"flex flex-col sm:flex-row sm:items-center gap-4"},yv={class:"flex items-center gap-3"},vv={class:"flex items-center gap-3"},bv={class:"flex items-center gap-4"},wv={class:"flex items-center gap-2"},Ev=gt({__name:"EmailViewerToolbar",props:{viewMode:{},contentMode:{},renderedHtml:{},sourceCode:{}},emits:["update:viewMode","update:contentMode","refresh"],setup(e,{emit:t}){const n=e,r=t,o=[{value:"desktop",label:"Desktop"},{value:"mobile",label:"Mobile"}],i=[{value:"preview",label:"Preview"},{value:"html",label:"HTML"},{value:"source",label:"Source Code"}],s=pe({get:()=>n.viewMode,set:d=>r("update:viewMode",d)}),a=pe({get:()=>n.contentMode,set:d=>r("update:contentMode",d)}),{copy:l,copied:u,isSupported:c}=oy(),f=async()=>{try{n.contentMode==="source"&&n.sourceCode?(await l(n.sourceCode),Hn({message:"Copied source code to clipboard",icon:"i-carbon-checkmark",classes:"text-green"})):(n.contentMode==="preview"||n.contentMode==="html")&&n.renderedHtml&&(await l(n.renderedHtml),Hn({message:"Copied HTML to clipboard",icon:"i-carbon-checkmark",classes:"text-green"}))}catch(d){No.error("Error copying to clipboard:",d),Hn({message:"Failed to copy to clipboard",icon:"i-carbon-warning",classes:"text-red"})}},p=()=>{r("refresh")};return(d,h)=>{const _=Ty,v=af,b=ds,E=oa;return Q(),me("div",gv,[he("div",_v,[he("div",yv,[h[2]||(h[2]=he("span",{class:"text-sm font-medium text-gray-700 dark:text-gray-300"}," View: ",-1)),oe(_,{modelValue:X(a),"onUpdate:modelValue":h[0]||(h[0]=m=>we(a)?a.value=m:null),options:i},null,8,["modelValue"])]),d.contentMode==="preview"?(Q(),me(je,{key:0},[h[4]||(h[4]=he("div",{class:"hidden sm:block w-px h-8 bg-gray-200 dark:bg-gray-700"},null,-1)),he("div",vv,[h[3]||(h[3]=he("span",{class:"text-sm font-medium text-gray-700 dark:text-gray-300"}," Viewport: ",-1)),oe(_,{modelValue:X(s),"onUpdate:modelValue":h[1]||(h[1]=m=>we(s)?s.value=m:null),options:o},null,8,["modelValue"]),oe(v,{class:"hidden sm:inline-flex"},{default:Pe(()=>[st(Pt(d.viewMode==="desktop"?"800px":"375px"),1)]),_:1})])],64)):Ze("",!0)]),he("div",bv,[he("div",wv,[d.contentMode==="preview"&&d.renderedHtml?(Q(),xe(b,{key:0,icon:"carbon:rotate-360",onClick:p},{default:Pe(()=>[...h[5]||(h[5]=[st(" Re-render ",-1)])]),_:1})):Ze("",!0),X(c)?(Q(),xe(E,{key:1,icon:X(u)?"carbon:checkmark-outline":"carbon:copy",onClick:f},{default:Pe(()=>[st(Pt(X(u)?"Copied":"Copy"),1)]),_:1},8,["icon"])):Ze("",!0),d.renderedHtml?(Q(),xe(mv,{key:2,html:d.renderedHtml},null,8,["html"])):Ze("",!0)])])])}}}),Sv=Object.assign(Ev,{__name:"EmailViewerToolbar"}),Tv={class:"border rounded-lg overflow-hidden bg-white shadow-sm"},Rv=["srcdoc"],Av=gt({__name:"EmailPreviewPane",props:{renderedHtml:{},viewMode:{}},setup(e){const t=e,n=pe(()=>t.viewMode==="mobile"?"max-w-[375px] mx-auto":"max-w-[800px] mx-auto");return(r,o)=>(Q(),me("div",null,[he("div",Tv,[r.renderedHtml?(Q(),me("iframe",{key:0,srcdoc:r.renderedHtml,class:Ue(["w-full h-screen border-0",X(n)]),width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts"},null,10,Rv)):Ze("",!0)])]))}}),Pv=Object.assign(Av,{__name:"EmailPreviewPane"});let De=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Cv(e){return aa(e)}function aa(e){return Array.isArray(e)?Lv(e):e instanceof RegExp?e:typeof e=="object"?kv(e):e}function Lv(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=aa(e[n]);return t}function kv(e){let t={};for(let n in e)t[n]=aa(e[n]);return t}function vf(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function bf(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?bf(e.substring(0,e.length-1)):e.substr(~t+1)}var Di=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Xr=class{static hasCaptures(e){return e===null?!1:(Di.lastIndex=0,Di.test(e))}static replaceCaptures(e,t,n){return e.replace(Di,(r,o,i,s)=>{let a=n[parseInt(o||i,10)];if(a){let l=t.substring(a.start,a.end);for(;l[0]===".";)l=l.substring(1);switch(s){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function wf(e,t){return e<t?-1:e>t?1:0}function Ef(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let o=0;o<n;o++){let i=wf(e[o],t[o]);if(i!==0)return i}return 0}return n-r}function xl(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Sf(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Tf=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Mo=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Iv(e),t)}static createFromParsedTheme(e,t){return Nv(e,t)}_cachedMatchRoot=new Tf(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(o=>xv(e.parent,o.parentScopes));return r?new Rf(r.fontStyle,r.foreground,r.background):null}},Ni=class co{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new co(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new co(n,t[r]);return n}push(t){return new co(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function xv(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],o=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],o=!0}for(;e&&!Ov(e.scopeName,r);){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Ov(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Rf=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Iv(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let o=0,i=t.length;o<i;o++){let s=t[o];if(!s.settings)continue;let a;if(typeof s.scope=="string"){let f=s.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),a=f.split(",")}else Array.isArray(s.scope)?a=s.scope:a=[""];let l=-1;if(typeof s.settings.fontStyle=="string"){l=0;let f=s.settings.fontStyle.split(" ");for(let p=0,d=f.length;p<d;p++)switch(f[p]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let u=null;typeof s.settings.foreground=="string"&&xl(s.settings.foreground)&&(u=s.settings.foreground);let c=null;typeof s.settings.background=="string"&&xl(s.settings.background)&&(c=s.settings.background);for(let f=0,p=a.length;f<p;f++){let h=a[f].trim().split(" "),_=h[h.length-1],v=null;h.length>1&&(v=h.slice(0,h.length-1),v.reverse()),n[r++]=new Dv(_,v,o,l,u,c)}}return n}var Dv=class{constructor(e,t,n,r,o,i){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=o,this.background=i}},Qe=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Qe||{});function Nv(e,t){e.sort((l,u)=>{let c=wf(l.scope,u.scope);return c!==0||(c=Ef(l.parentScopes,u.parentScopes),c!==0)?c:l.index-u.index});let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(o=l.background)}let i=new Mv(t),s=new Rf(n,i.getId(r),i.getId(o)),a=new $v(new gs(0,null,-1,0,0),[]);for(let l=0,u=e.length;l<u;l++){let c=e[l];a.insert(0,c.scope,c.parentScopes,c.fontStyle,i.getId(c.foreground),i.getId(c.background))}return new Mo(i,s,a)}var Mv=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},Vv=Object.freeze([]),gs=class Af{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,o,i){this.scopeDepth=t,this.parentScopes=n||Vv,this.fontStyle=r,this.foreground=o,this.background=i}clone(){return new Af(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,o=t.length;r<o;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,o){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),o!==0&&(this.background=o)}},$v=class _s{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,o=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[o]===">"&&o++,!(r>=t.parentScopes.length||o>=n.parentScopes.length);){const i=n.parentScopes[o].length-t.parentScopes[r].length;if(i!==0)return i;r++,o++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),o,i;if(r===-1?(o=t,i=""):(o=t.substring(0,r),i=t.substring(r+1)),this._children.hasOwnProperty(o))return this._children[o].match(i)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(_s._cmpBySpecificity),n}insert(t,n,r,o,i,s){if(n===""){this._doInsertHere(t,r,o,i,s);return}let a=n.indexOf("."),l,u;a===-1?(l=n,u=""):(l=n.substring(0,a),u=n.substring(a+1));let c;this._children.hasOwnProperty(l)?c=this._children[l]:(c=new _s(this._mainRule.clone(),gs.cloneArr(this._rulesWithParentScopes)),this._children[l]=c),c.insert(t+1,u,r,o,i,s)}_doInsertHere(t,n,r,o,i){if(n===null){this._mainRule.acceptOverwrite(t,r,o,i);return}for(let s=0,a=this._rulesWithParentScopes.length;s<a;s++){let l=this._rulesWithParentScopes[s];if(Ef(l.parentScopes,n)===0){l.acceptOverwrite(t,r,o,i);return}}r===-1&&(r=this._mainRule.fontStyle),o===0&&(o=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new gs(t,n,r,o,i))}},Qn=class _t{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=_t.getLanguageId(t),r=_t.getTokenType(t),o=_t.getFontStyle(t),i=_t.getForeground(t),s=_t.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:o,foreground:i,background:s})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,o,i,s,a){let l=_t.getLanguageId(t),u=_t.getTokenType(t),c=_t.containsBalancedBrackets(t)?1:0,f=_t.getFontStyle(t),p=_t.getForeground(t),d=_t.getBackground(t);return n!==0&&(l=n),r!==8&&(u=r),o!==null&&(c=o?1:0),i!==-1&&(f=i),s!==0&&(p=s),a!==0&&(d=a),(l<<0|u<<8|c<<10|f<<11|p<<15|d<<24)>>>0}};function Vo(e,t){const n=[],r=jv(e);let o=r.next();for(;o!==null;){let l=0;if(o.length===2&&o.charAt(1)===":"){switch(o.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=r.next()}let u=s();if(n.push({matcher:u,priority:l}),o!==",")break;o=r.next()}return n;function i(){if(o==="-"){o=r.next();const l=i();return u=>!!l&&!l(u)}if(o==="("){o=r.next();const l=a();return o===")"&&(o=r.next()),l}if(Ol(o)){const l=[];do l.push(o),o=r.next();while(Ol(o));return u=>t(l,u)}return null}function s(){const l=[];let u=i();for(;u;)l.push(u),u=i();return c=>l.every(f=>f(c))}function a(){const l=[];let u=s();for(;u&&(l.push(u),o==="|"||o===",");){do o=r.next();while(o==="|"||o===",");u=s()}return c=>l.some(f=>f(c))}}function Ol(e){return!!e&&!!e.match(/[\w\.:]+/)}function jv(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function Pf(e){typeof e.dispose=="function"&&e.dispose()}var Rr=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Bv=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Fv=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},Hv=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Rr(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new Fv;for(const n of e)Uv(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Rr){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function Uv(e,t,n,r){const o=n.lookup(e.scopeName);if(!o){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const i=n.lookup(t);e instanceof Rr?uo({baseGrammar:i,selfGrammar:o},r):ys(e.ruleName,{baseGrammar:i,selfGrammar:o,repository:o.repository},r);const s=n.injections(e.scopeName);if(s)for(const a of s)r.add(new Rr(a))}function ys(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];$o([r],t,n)}}function uo(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&$o(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&$o(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function $o(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const o=r.repository?vf({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&$o(r.patterns,{...t,repository:o},n);const i=r.include;if(!i)continue;const s=Cf(i);switch(s.kind){case 0:uo({...t,selfGrammar:t.baseGrammar},n);break;case 1:uo(t,n);break;case 2:ys(s.ruleName,{...t,repository:o},n);break;case 3:case 4:const a=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const l={baseGrammar:t.baseGrammar,selfGrammar:a,repository:o};s.kind===4?ys(s.ruleName,l,n):uo(l,n)}else s.kind===4?n.add(new Bv(s.scopeName,s.ruleName)):n.add(new Rr(s.scopeName));break}}}var zv=class{kind=0},Gv=class{kind=1},Wv=class{constructor(e){this.ruleName=e}kind=2},qv=class{constructor(e){this.scopeName=e}kind=3},Kv=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Cf(e){if(e==="$base")return new zv;if(e==="$self")return new Gv;const t=e.indexOf("#");if(t===-1)return new qv(e);if(t===0)return new Wv(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new Kv(n,r)}}var Jv=/\\(\d+)/,Il=/\\(\d+)/g,Xv=-1,Lf=-2;var Nr=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Xr.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Xr.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${bf(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Xr.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Xr.replaceCaptures(this._contentName,e,t)}},Yv=class extends Nr{retokenizeCapturedWithRuleId;constructor(e,t,n,r,o){super(e,t,n,r),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},Qv=class extends Nr{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,o){super(e,t,n,null),this._match=new Ar(r,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Pr,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Dl=class extends Nr{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,o){super(e,t,n,r),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Pr,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},vs=class extends Nr{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,o,i,s,a,l,u){super(e,t,n,r),this._begin=new Ar(o,this.id),this.beginCaptures=i,this._end=new Ar(s||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Pr;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},jo=class extends Nr{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,o,i,s,a,l){super(e,t,n,r),this._begin=new Ar(o,this.id),this.beginCaptures=i,this.whileCaptures=a,this._while=new Ar(s,Lf),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Pr;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Pr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},kf=class Je{static createCaptureRule(t,n,r,o,i){return t.registerRule(s=>new Yv(n,s,r,o,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(o=>{if(t.id=o,t.match)return new Qv(t.$vscodeTextmateLocation,t.id,t.name,t.match,Je._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=vf({},r,t.repository));let i=t.patterns;return typeof i>"u"&&t.include&&(i=[{include:t.include}]),new Dl(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Je._compilePatterns(i,n,r))}return t.while?new jo(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Je._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Je._compileCaptures(t.whileCaptures||t.captures,n,r),Je._compilePatterns(t.patterns,n,r)):new vs(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Je._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Je._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Je._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let o=[];if(t){let i=0;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);a>i&&(i=a)}for(let s=0;s<=i;s++)o[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);let l=0;t[s].patterns&&(l=Je.getCompiledRuleId(t[s],n,r)),o[a]=Je.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,l)}}return o}static _compilePatterns(t,n,r){let o=[];if(t)for(let i=0,s=t.length;i<s;i++){const a=t[i];let l=-1;if(a.include){const u=Cf(a.include);switch(u.kind){case 0:case 1:l=Je.getCompiledRuleId(r[a.include],n,r);break;case 2:let c=r[u.ruleName];c&&(l=Je.getCompiledRuleId(c,n,r));break;case 3:case 4:const f=u.scopeName,p=u.kind===4?u.ruleName:null,d=n.getExternalGrammar(f,r);if(d)if(p){let h=d.repository[p];h&&(l=Je.getCompiledRuleId(h,n,d.repository))}else l=Je.getCompiledRuleId(d.repository.$self,n,d.repository);break}}else l=Je.getCompiledRuleId(a,n,r);if(l!==-1){const u=n.getRule(l);let c=!1;if((u instanceof Dl||u instanceof vs||u instanceof jo)&&u.hasMissingPatterns&&u.patterns.length===0&&(c=!0),c)continue;o.push(l)}}return{patterns:o,hasMissingPatterns:(t?t.length:0)!==o.length}}},Ar=class xf{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let o=0,i=[],s=!1;for(let a=0;a<r;a++)if(t.charAt(a)==="\\"&&a+1<r){const u=t.charAt(a+1);u==="z"?(i.push(t.substring(o,a)),i.push("$(?!\\n)(?<!\\n)"),o=a+2):(u==="A"||u==="G")&&(s=!0),a++}this.hasAnchor=s,o===0?this.source=t:(i.push(t.substring(o,r)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=Jv.test(this.source):this.hasBackReferences=!1}clone(){return new xf(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(o=>t.substring(o.start,o.end));return Il.lastIndex=0,this.source.replace(Il,(o,i)=>Sf(r[parseInt(i,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],o=[],i,s,a,l;for(i=0,s=this.source.length;i<s;i++)a=this.source.charAt(i),t[i]=a,n[i]=a,r[i]=a,o[i]=a,a==="\\"&&i+1<s&&(l=this.source.charAt(i+1),l==="A"?(t[i+1]="",n[i+1]="",r[i+1]="A",o[i+1]="A"):l==="G"?(t[i+1]="",n[i+1]="G",r[i+1]="",o[i+1]="G"):(t[i+1]=l,n[i+1]=l,r[i+1]=l,o[i+1]=l),i++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:o.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Pr=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Nl(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(o=>o.resolveAnchors(t,n));return new Nl(e,r,this._items.map(o=>o.ruleId))}},Nl=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
36
|
+
`,a=`%c${[o,r].filter(Boolean).join(":")}`;typeof t.args[0]=="string"?n(`${a}%c ${t.args[0]}`,s,"",...t.args.slice(1)):n(a,s,...t.args)}}function dv(e={}){return uv({reporters:e.reporters||[new fv({})],prompt(n,r={}){return r.type==="confirm"?Promise.resolve(confirm(n)):Promise.resolve(prompt(n))},...e})}const No=dv(),pv={class:"flex flex-col gap-2"},hv=gt({__name:"EmailSendButton",props:{html:{},subject:{}},setup(e){const t=e,n=_e(!1),r=_e(!1),o=_e(""),i=async()=>{n.value=!0;try{if(!o.value)return;const s=await fetch("https://react.email/api/send/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({to:o.value,subject:t.subject||"Test Email from Nuxt Email Renderer",html:t.html})});if(s.status===429){const{error:a}=await s.json();No.error(`Error sending test email: ${a}`),r.value=!1,Hn({message:"Too many requests",icon:"i-carbon-warning",classes:"text-red"})}s.status===200&&(r.value=!1,Hn({message:"Email sent successfully",icon:"i-carbon-checkmark",classes:"text-green"}))}catch(s){No.error("Error sending test email:",s),r.value=!1,Hn({message:"Something went wrong. Please try again.",icon:"i-carbon-warning",classes:"text-red"})}finally{n.value=!1}};return(s,a)=>{const l=Py,u=iv;return Q(),me(je,null,[he("div",pv,[oe(ds,{"is-loading":X(n),icon:"carbon:email",onClick:a[0]||(a[0]=c=>r.value=!0)},{default:Pe(()=>[...a[3]||(a[3]=[st(" Send ",-1)])]),_:1},8,["is-loading"])]),oe(u,{modelValue:X(r),"onUpdate:modelValue":a[2]||(a[2]=c=>we(r)?r.value=c:null),class:"min-w-100 flex flex-col gap-4 p4"},{default:Pe(()=>[a[5]||(a[5]=he("h1",{"text-xl":""}," Send Test Email ",-1)),oe(l,{modelValue:X(o),"onUpdate:modelValue":a[1]||(a[1]=c=>we(o)?o.value=c:null),placeholder:"you@email.com",type:"email"},null,8,["modelValue"]),he("div",null,[oe(ds,{"is-loading":X(n),icon:"carbon:send",onClick:i},{default:Pe(()=>[...a[4]||(a[4]=[st(" Send ",-1)])]),_:1},8,["is-loading"])])]),_:1},8,["modelValue"])],64)}}}),mv=Object.assign(hv,{__name:"EmailSendButton"}),gv={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"},_v={class:"flex flex-col sm:flex-row sm:items-center gap-4"},yv={class:"flex items-center gap-3"},vv={class:"flex items-center gap-3"},bv={class:"flex items-center gap-4"},wv={class:"flex items-center gap-2"},Ev=gt({__name:"EmailViewerToolbar",props:{viewMode:{},contentMode:{},renderedHtml:{},renderedSubject:{},sourceCode:{}},emits:["update:viewMode","update:contentMode","refresh"],setup(e,{emit:t}){const n=e,r=t,o=[{value:"desktop",label:"Desktop"},{value:"mobile",label:"Mobile"}],i=[{value:"preview",label:"Preview"},{value:"html",label:"HTML"},{value:"source",label:"Source Code"}],s=de({get:()=>n.viewMode,set:d=>r("update:viewMode",d)}),a=de({get:()=>n.contentMode,set:d=>r("update:contentMode",d)}),{copy:l,copied:u,isSupported:c}=oy(),f=async()=>{try{n.contentMode==="source"&&n.sourceCode?(await l(n.sourceCode),Hn({message:"Copied source code to clipboard",icon:"i-carbon-checkmark",classes:"text-green"})):(n.contentMode==="preview"||n.contentMode==="html")&&n.renderedHtml&&(await l(n.renderedHtml),Hn({message:"Copied HTML to clipboard",icon:"i-carbon-checkmark",classes:"text-green"}))}catch(d){No.error("Error copying to clipboard:",d),Hn({message:"Failed to copy to clipboard",icon:"i-carbon-warning",classes:"text-red"})}},p=()=>{r("refresh")};return(d,h)=>{const _=Ty,v=af,b=ds,E=oa;return Q(),me("div",gv,[he("div",_v,[he("div",yv,[h[2]||(h[2]=he("span",{class:"text-sm font-medium text-gray-700 dark:text-gray-300"}," View: ",-1)),oe(_,{modelValue:X(a),"onUpdate:modelValue":h[0]||(h[0]=m=>we(a)?a.value=m:null),options:i},null,8,["modelValue"])]),d.contentMode==="preview"?(Q(),me(je,{key:0},[h[4]||(h[4]=he("div",{class:"hidden sm:block w-px h-8 bg-gray-200 dark:bg-gray-700"},null,-1)),he("div",vv,[h[3]||(h[3]=he("span",{class:"text-sm font-medium text-gray-700 dark:text-gray-300"}," Viewport: ",-1)),oe(_,{modelValue:X(s),"onUpdate:modelValue":h[1]||(h[1]=m=>we(s)?s.value=m:null),options:o},null,8,["modelValue"]),oe(v,{class:"hidden sm:inline-flex"},{default:Pe(()=>[st(Pt(d.viewMode==="desktop"?"800px":"375px"),1)]),_:1})])],64)):Ze("",!0)]),he("div",bv,[he("div",wv,[d.contentMode==="preview"&&d.renderedHtml?(Q(),xe(b,{key:0,icon:"carbon:rotate-360",onClick:p},{default:Pe(()=>[...h[5]||(h[5]=[st(" Re-render ",-1)])]),_:1})):Ze("",!0),X(c)?(Q(),xe(E,{key:1,icon:X(u)?"carbon:checkmark-outline":"carbon:copy",onClick:f},{default:Pe(()=>[st(Pt(X(u)?"Copied":"Copy"),1)]),_:1},8,["icon"])):Ze("",!0),d.renderedHtml?(Q(),xe(mv,{key:2,html:d.renderedHtml,subject:d.renderedSubject},null,8,["html","subject"])):Ze("",!0)])])])}}}),Sv=Object.assign(Ev,{__name:"EmailViewerToolbar"}),Tv={class:"border rounded-lg overflow-hidden bg-white shadow-sm"},Rv=["srcdoc"],Av=gt({__name:"EmailPreviewPane",props:{renderedHtml:{},viewMode:{}},setup(e){const t=e,n=de(()=>t.viewMode==="mobile"?"max-w-[375px] mx-auto":"max-w-[800px] mx-auto");return(r,o)=>(Q(),me("div",null,[he("div",Tv,[r.renderedHtml?(Q(),me("iframe",{key:0,srcdoc:r.renderedHtml,class:Ue(["w-full h-screen border-0",X(n)]),width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts"},null,10,Rv)):Ze("",!0)])]))}}),Pv=Object.assign(Av,{__name:"EmailPreviewPane"});let De=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Cv(e){return aa(e)}function aa(e){return Array.isArray(e)?Lv(e):e instanceof RegExp?e:typeof e=="object"?kv(e):e}function Lv(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=aa(e[n]);return t}function kv(e){let t={};for(let n in e)t[n]=aa(e[n]);return t}function vf(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function bf(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?bf(e.substring(0,e.length-1)):e.substr(~t+1)}var Di=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Xr=class{static hasCaptures(e){return e===null?!1:(Di.lastIndex=0,Di.test(e))}static replaceCaptures(e,t,n){return e.replace(Di,(r,o,i,s)=>{let a=n[parseInt(o||i,10)];if(a){let l=t.substring(a.start,a.end);for(;l[0]===".";)l=l.substring(1);switch(s){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function wf(e,t){return e<t?-1:e>t?1:0}function Ef(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let o=0;o<n;o++){let i=wf(e[o],t[o]);if(i!==0)return i}return 0}return n-r}function xl(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Sf(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Tf=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Mo=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Iv(e),t)}static createFromParsedTheme(e,t){return Nv(e,t)}_cachedMatchRoot=new Tf(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(o=>xv(e.parent,o.parentScopes));return r?new Rf(r.fontStyle,r.foreground,r.background):null}},Ni=class co{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new co(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new co(n,t[r]);return n}push(t){return new co(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function xv(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],o=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],o=!0}for(;e&&!Ov(e.scopeName,r);){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Ov(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Rf=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Iv(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let o=0,i=t.length;o<i;o++){let s=t[o];if(!s.settings)continue;let a;if(typeof s.scope=="string"){let f=s.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),a=f.split(",")}else Array.isArray(s.scope)?a=s.scope:a=[""];let l=-1;if(typeof s.settings.fontStyle=="string"){l=0;let f=s.settings.fontStyle.split(" ");for(let p=0,d=f.length;p<d;p++)switch(f[p]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let u=null;typeof s.settings.foreground=="string"&&xl(s.settings.foreground)&&(u=s.settings.foreground);let c=null;typeof s.settings.background=="string"&&xl(s.settings.background)&&(c=s.settings.background);for(let f=0,p=a.length;f<p;f++){let h=a[f].trim().split(" "),_=h[h.length-1],v=null;h.length>1&&(v=h.slice(0,h.length-1),v.reverse()),n[r++]=new Dv(_,v,o,l,u,c)}}return n}var Dv=class{constructor(e,t,n,r,o,i){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=o,this.background=i}},Qe=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Qe||{});function Nv(e,t){e.sort((l,u)=>{let c=wf(l.scope,u.scope);return c!==0||(c=Ef(l.parentScopes,u.parentScopes),c!==0)?c:l.index-u.index});let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(o=l.background)}let i=new Mv(t),s=new Rf(n,i.getId(r),i.getId(o)),a=new $v(new gs(0,null,-1,0,0),[]);for(let l=0,u=e.length;l<u;l++){let c=e[l];a.insert(0,c.scope,c.parentScopes,c.fontStyle,i.getId(c.foreground),i.getId(c.background))}return new Mo(i,s,a)}var Mv=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},Vv=Object.freeze([]),gs=class Af{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,o,i){this.scopeDepth=t,this.parentScopes=n||Vv,this.fontStyle=r,this.foreground=o,this.background=i}clone(){return new Af(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,o=t.length;r<o;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,o){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),o!==0&&(this.background=o)}},$v=class _s{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,o=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[o]===">"&&o++,!(r>=t.parentScopes.length||o>=n.parentScopes.length);){const i=n.parentScopes[o].length-t.parentScopes[r].length;if(i!==0)return i;r++,o++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),o,i;if(r===-1?(o=t,i=""):(o=t.substring(0,r),i=t.substring(r+1)),this._children.hasOwnProperty(o))return this._children[o].match(i)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(_s._cmpBySpecificity),n}insert(t,n,r,o,i,s){if(n===""){this._doInsertHere(t,r,o,i,s);return}let a=n.indexOf("."),l,u;a===-1?(l=n,u=""):(l=n.substring(0,a),u=n.substring(a+1));let c;this._children.hasOwnProperty(l)?c=this._children[l]:(c=new _s(this._mainRule.clone(),gs.cloneArr(this._rulesWithParentScopes)),this._children[l]=c),c.insert(t+1,u,r,o,i,s)}_doInsertHere(t,n,r,o,i){if(n===null){this._mainRule.acceptOverwrite(t,r,o,i);return}for(let s=0,a=this._rulesWithParentScopes.length;s<a;s++){let l=this._rulesWithParentScopes[s];if(Ef(l.parentScopes,n)===0){l.acceptOverwrite(t,r,o,i);return}}r===-1&&(r=this._mainRule.fontStyle),o===0&&(o=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new gs(t,n,r,o,i))}},Qn=class _t{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=_t.getLanguageId(t),r=_t.getTokenType(t),o=_t.getFontStyle(t),i=_t.getForeground(t),s=_t.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:o,foreground:i,background:s})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,o,i,s,a){let l=_t.getLanguageId(t),u=_t.getTokenType(t),c=_t.containsBalancedBrackets(t)?1:0,f=_t.getFontStyle(t),p=_t.getForeground(t),d=_t.getBackground(t);return n!==0&&(l=n),r!==8&&(u=r),o!==null&&(c=o?1:0),i!==-1&&(f=i),s!==0&&(p=s),a!==0&&(d=a),(l<<0|u<<8|c<<10|f<<11|p<<15|d<<24)>>>0}};function Vo(e,t){const n=[],r=jv(e);let o=r.next();for(;o!==null;){let l=0;if(o.length===2&&o.charAt(1)===":"){switch(o.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=r.next()}let u=s();if(n.push({matcher:u,priority:l}),o!==",")break;o=r.next()}return n;function i(){if(o==="-"){o=r.next();const l=i();return u=>!!l&&!l(u)}if(o==="("){o=r.next();const l=a();return o===")"&&(o=r.next()),l}if(Ol(o)){const l=[];do l.push(o),o=r.next();while(Ol(o));return u=>t(l,u)}return null}function s(){const l=[];let u=i();for(;u;)l.push(u),u=i();return c=>l.every(f=>f(c))}function a(){const l=[];let u=s();for(;u&&(l.push(u),o==="|"||o===",");){do o=r.next();while(o==="|"||o===",");u=s()}return c=>l.some(f=>f(c))}}function Ol(e){return!!e&&!!e.match(/[\w\.:]+/)}function jv(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function Pf(e){typeof e.dispose=="function"&&e.dispose()}var Rr=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Bv=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Fv=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},Hv=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Rr(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new Fv;for(const n of e)Uv(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Rr){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function Uv(e,t,n,r){const o=n.lookup(e.scopeName);if(!o){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const i=n.lookup(t);e instanceof Rr?uo({baseGrammar:i,selfGrammar:o},r):ys(e.ruleName,{baseGrammar:i,selfGrammar:o,repository:o.repository},r);const s=n.injections(e.scopeName);if(s)for(const a of s)r.add(new Rr(a))}function ys(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];$o([r],t,n)}}function uo(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&$o(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&$o(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function $o(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const o=r.repository?vf({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&$o(r.patterns,{...t,repository:o},n);const i=r.include;if(!i)continue;const s=Cf(i);switch(s.kind){case 0:uo({...t,selfGrammar:t.baseGrammar},n);break;case 1:uo(t,n);break;case 2:ys(s.ruleName,{...t,repository:o},n);break;case 3:case 4:const a=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const l={baseGrammar:t.baseGrammar,selfGrammar:a,repository:o};s.kind===4?ys(s.ruleName,l,n):uo(l,n)}else s.kind===4?n.add(new Bv(s.scopeName,s.ruleName)):n.add(new Rr(s.scopeName));break}}}var zv=class{kind=0},Gv=class{kind=1},Wv=class{constructor(e){this.ruleName=e}kind=2},qv=class{constructor(e){this.scopeName=e}kind=3},Kv=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Cf(e){if(e==="$base")return new zv;if(e==="$self")return new Gv;const t=e.indexOf("#");if(t===-1)return new qv(e);if(t===0)return new Wv(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new Kv(n,r)}}var Jv=/\\(\d+)/,Il=/\\(\d+)/g,Xv=-1,Lf=-2;var Nr=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Xr.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Xr.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${bf(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Xr.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Xr.replaceCaptures(this._contentName,e,t)}},Yv=class extends Nr{retokenizeCapturedWithRuleId;constructor(e,t,n,r,o){super(e,t,n,r),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},Qv=class extends Nr{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,o){super(e,t,n,null),this._match=new Ar(r,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Pr,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Dl=class extends Nr{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,o){super(e,t,n,r),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Pr,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},vs=class extends Nr{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,o,i,s,a,l,u){super(e,t,n,r),this._begin=new Ar(o,this.id),this.beginCaptures=i,this._end=new Ar(s||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Pr;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},jo=class extends Nr{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,o,i,s,a,l){super(e,t,n,r),this._begin=new Ar(o,this.id),this.beginCaptures=i,this.whileCaptures=a,this._while=new Ar(s,Lf),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Pr;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Pr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},kf=class Je{static createCaptureRule(t,n,r,o,i){return t.registerRule(s=>new Yv(n,s,r,o,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(o=>{if(t.id=o,t.match)return new Qv(t.$vscodeTextmateLocation,t.id,t.name,t.match,Je._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=vf({},r,t.repository));let i=t.patterns;return typeof i>"u"&&t.include&&(i=[{include:t.include}]),new Dl(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Je._compilePatterns(i,n,r))}return t.while?new jo(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Je._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Je._compileCaptures(t.whileCaptures||t.captures,n,r),Je._compilePatterns(t.patterns,n,r)):new vs(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Je._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Je._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Je._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let o=[];if(t){let i=0;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);a>i&&(i=a)}for(let s=0;s<=i;s++)o[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const a=parseInt(s,10);let l=0;t[s].patterns&&(l=Je.getCompiledRuleId(t[s],n,r)),o[a]=Je.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,l)}}return o}static _compilePatterns(t,n,r){let o=[];if(t)for(let i=0,s=t.length;i<s;i++){const a=t[i];let l=-1;if(a.include){const u=Cf(a.include);switch(u.kind){case 0:case 1:l=Je.getCompiledRuleId(r[a.include],n,r);break;case 2:let c=r[u.ruleName];c&&(l=Je.getCompiledRuleId(c,n,r));break;case 3:case 4:const f=u.scopeName,p=u.kind===4?u.ruleName:null,d=n.getExternalGrammar(f,r);if(d)if(p){let h=d.repository[p];h&&(l=Je.getCompiledRuleId(h,n,d.repository))}else l=Je.getCompiledRuleId(d.repository.$self,n,d.repository);break}}else l=Je.getCompiledRuleId(a,n,r);if(l!==-1){const u=n.getRule(l);let c=!1;if((u instanceof Dl||u instanceof vs||u instanceof jo)&&u.hasMissingPatterns&&u.patterns.length===0&&(c=!0),c)continue;o.push(l)}}return{patterns:o,hasMissingPatterns:(t?t.length:0)!==o.length}}},Ar=class xf{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let o=0,i=[],s=!1;for(let a=0;a<r;a++)if(t.charAt(a)==="\\"&&a+1<r){const u=t.charAt(a+1);u==="z"?(i.push(t.substring(o,a)),i.push("$(?!\\n)(?<!\\n)"),o=a+2):(u==="A"||u==="G")&&(s=!0),a++}this.hasAnchor=s,o===0?this.source=t:(i.push(t.substring(o,r)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=Jv.test(this.source):this.hasBackReferences=!1}clone(){return new xf(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(o=>t.substring(o.start,o.end));return Il.lastIndex=0,this.source.replace(Il,(o,i)=>Sf(r[parseInt(i,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],o=[],i,s,a,l;for(i=0,s=this.source.length;i<s;i++)a=this.source.charAt(i),t[i]=a,n[i]=a,r[i]=a,o[i]=a,a==="\\"&&i+1<s&&(l=this.source.charAt(i+1),l==="A"?(t[i+1]="",n[i+1]="",r[i+1]="A",o[i+1]="A"):l==="G"?(t[i+1]="",n[i+1]="G",r[i+1]="",o[i+1]="G"):(t[i+1]=l,n[i+1]=l,r[i+1]=l,o[i+1]=l),i++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:o.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Pr=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Nl(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(o=>o.resolveAnchors(t,n));return new Nl(e,r,this._items.map(o=>o.ruleId))}},Nl=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
37
37
|
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Mi=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Zv=class bs{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new Mi(t,8),this._embeddedLanguagesMatcher=new eb(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?bs._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Mi(0,0);_getBasicScopeAttributes=new Tf(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new Mi(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(bs.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},eb=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>Sf(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Ml=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Of(e,t,n,r,o,i,s,a){const l=t.content.length;let u=!1,c=-1;if(s){const d=tb(e,t,n,r,o,i);o=d.stack,r=d.linePos,n=d.isFirstLine,c=d.anchorPosition}const f=Date.now();for(;!u;){if(a!==0&&Date.now()-f>a)return new Ml(o,!0);p()}return new Ml(o,!1);function p(){const d=nb(e,t,n,r,o,c);if(!d){i.produce(o,l),u=!0;return}const h=d.captureIndices,_=d.matchedRuleId,v=h&&h.length>0?h[0].end>r:!1;if(_===Xv){const b=o.getRule(e);i.produce(o,h[0].start),o=o.withContentNameScopesList(o.nameScopesList),dr(e,t,n,o,i,b.endCaptures,h),i.produce(o,h[0].end);const E=o;if(o=o.parent,c=E.getAnchorPos(),!v&&E.getEnterPos()===r){o=E,i.produce(o,l),u=!0;return}}else{const b=e.getRule(_);i.produce(o,h[0].start);const E=o,m=b.getName(t.content,h),w=o.contentNameScopesList.pushAttributed(m,e);if(o=o.push(_,r,c,h[0].end===l,null,w,w),b instanceof vs){const T=b;dr(e,t,n,o,i,T.beginCaptures,h),i.produce(o,h[0].end),c=h[0].end;const k=T.getContentName(t.content,h),$=w.pushAttributed(k,e);if(o=o.withContentNameScopesList($),T.endHasBackReferences&&(o=o.withEndRule(T.getEndWithResolvedBackReferences(t.content,h))),!v&&E.hasSameRuleAs(o)){o=o.pop(),i.produce(o,l),u=!0;return}}else if(b instanceof jo){const T=b;dr(e,t,n,o,i,T.beginCaptures,h),i.produce(o,h[0].end),c=h[0].end;const k=T.getContentName(t.content,h),$=w.pushAttributed(k,e);if(o=o.withContentNameScopesList($),T.whileHasBackReferences&&(o=o.withEndRule(T.getWhileWithResolvedBackReferences(t.content,h))),!v&&E.hasSameRuleAs(o)){o=o.pop(),i.produce(o,l),u=!0;return}}else if(dr(e,t,n,o,i,b.captures,h),i.produce(o,h[0].end),o=o.pop(),!v){o=o.safePop(),i.produce(o,l),u=!0;return}}h[0].end>r&&(r=h[0].end,n=!1)}}function tb(e,t,n,r,o,i){let s=o.beginRuleCapturedEOL?0:-1;const a=[];for(let l=o;l;l=l.pop()){const u=l.getRule(e);u instanceof jo&&a.push({rule:u,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:u,findOptions:c}=ib(l.rule,e,l.stack.endRule,n,r===s),f=u.findNextMatchSync(t,r,c);if(f){if(f.ruleId!==Lf){o=l.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(i.produce(l.stack,f.captureIndices[0].start),dr(e,t,n,l.stack,i,l.rule.whileCaptures,f.captureIndices),i.produce(l.stack,f.captureIndices[0].end),s=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}else{o=l.stack.pop();break}}return{stack:o,linePos:r,anchorPosition:s,isFirstLine:n}}function nb(e,t,n,r,o,i){const s=rb(e,t,n,r,o,i),a=e.getInjections();if(a.length===0)return s;const l=ob(a,e,t,n,r,o,i);if(!l)return s;if(!s)return l;const u=s.captureIndices[0].start,c=l.captureIndices[0].start;return c<u||l.priorityMatch&&c===u?l:s}function rb(e,t,n,r,o,i){const s=o.getRule(e),{ruleScanner:a,findOptions:l}=If(s,e,o.endRule,n,r===i),u=a.findNextMatchSync(t,r,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function ob(e,t,n,r,o,i,s){let a=Number.MAX_VALUE,l=null,u,c=0;const f=i.contentNameScopesList.getScopeNames();for(let p=0,d=e.length;p<d;p++){const h=e[p];if(!h.matcher(f))continue;const _=t.getRule(h.ruleId),{ruleScanner:v,findOptions:b}=If(_,t,null,r,o===s),E=v.findNextMatchSync(n,o,b);if(!E)continue;const m=E.captureIndices[0].start;if(!(m>=a)&&(a=m,l=E.captureIndices,u=E.ruleId,c=h.priority,a===o))break}return l?{priorityMatch:c===-1,captureIndices:l,matchedRuleId:u}:null}function If(e,t,n,r,o){return{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function ib(e,t,n,r,o){return{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function dr(e,t,n,r,o,i,s){if(i.length===0)return;const a=t.content,l=Math.min(i.length,s.length),u=[],c=s[0].end;for(let f=0;f<l;f++){const p=i[f];if(p===null)continue;const d=s[f];if(d.length===0)continue;if(d.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=d.start;)o.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?o.produceFromScopes(u[u.length-1].scopes,d.start):o.produce(r,d.start),p.retokenizeCapturedWithRuleId){const _=p.getName(a,s),v=r.contentNameScopesList.pushAttributed(_,e),b=p.getContentName(a,s),E=v.pushAttributed(b,e),m=r.push(p.retokenizeCapturedWithRuleId,d.start,-1,!1,null,v,E),w=e.createOnigString(a.substring(0,d.end));Of(e,w,n&&d.start===0,d.start,m,o,!1,0),Pf(w);continue}const h=p.getName(a,s);if(h!==null){const v=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(h,e);u.push(new sb(v,d.end))}}for(;u.length>0;)o.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var sb=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function ab(e,t,n,r,o,i,s,a){return new cb(e,t,n,r,o,i,s,a)}function Vl(e,t,n,r,o){const i=Vo(t,Bo),s=kf.getCompiledRuleId(n,r,o.repository);for(const a of i)e.push({debugSelector:t,matcher:a.matcher,ruleId:s,grammar:o,priority:a.priority})}function Bo(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let o=n;o<t.length;o++)if(lb(t[o],r))return n=o+1,!0;return!1})}function lb(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var cb=class{constructor(e,t,n,r,o,i,s,a){if(this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=a,this._basicScopeAttributesProvider=new Zv(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=$l(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const l of Object.keys(o)){const u=Vo(l,Bo);for(const c of u)this._tokenTypeMatchers.push({matcher:c.matcher,type:o[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:o=>o===this._rootScopeName?this._grammar:this.getExternalGrammar(o),injections:o=>this._grammarRepository.injections(o)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const o=r.injections;if(o)for(let s in o)Vl(t,s,o[s],this,r);const i=this._grammarRepository.injections(n);i&&i.forEach(s=>{const a=this.getExternalGrammar(s);if(a){const l=a.injectionSelector;l&&Vl(t,l,a,this,a)}})}return t.sort((o,i)=>o.priority-i.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=$l(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=kf.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!t||t===ws.NULL){o=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),f=Qn.set(0,u.languageId,u.tokenType,null,c.fontStyle,c.foregroundId,c.backgroundId),p=this.getRule(this._rootId).getName(null,null);let d;p?d=br.createRootAndLookUpScopeName(p,f,this):d=br.createRoot("unknown",f),t=new ws(null,this._rootId,-1,-1,!1,null,d,d)}else o=!1,t.reset();e=e+`
|
|
38
38
|
`;const i=this.createOnigString(e),s=i.content.length,a=new fb(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=Of(this,i,o,0,t,a,!0,r);return Pf(i),{lineLength:s,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function $l(e,t){return e=Cv(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var br=class kt{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,o=t?.scopePath??null;for(const i of n)o=Ni.push(o,i.scopeNames),r=new kt(r,o,i.encodedTokenAttributes);return r}static createRoot(t,n){return new kt(null,new Ni(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const o=r.getMetadataForScope(t),i=new Ni(null,t),s=r.themeProvider.themeMatch(i),a=kt.mergeAttributes(n,o,s);return new kt(null,i,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return kt.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let o=-1,i=0,s=0;return r!==null&&(o=r.fontStyle,i=r.foregroundId,s=r.backgroundId),Qn.set(t,n.languageId,n.tokenType,null,o,i,s)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return kt._pushAttributed(this,t,n);const r=t.split(/ /g);let o=this;for(const i of r)o=kt._pushAttributed(o,i,n);return o}static _pushAttributed(t,n,r){const o=r.getMetadataForScope(n),i=t.scopePath.push(n),s=r.themeProvider.themeMatch(i),a=kt.mergeAttributes(t.tokenAttributes,o,s);return new kt(t,i,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},ws=class an{constructor(t,n,r,o,i,s,a,l){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=i,this.endRule=s,this.nameScopesList=a,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=o}_stackElementBrand=void 0;static NULL=new an(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:an._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?br.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){an._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,o,i,s,a){return new an(this,t,n,r,o,i,s,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new an(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=br.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new an(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,br.fromExtension(r,n.contentNameScopesList))}},ub=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Vo(n,Bo).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Vo(n,Bo).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},fb=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,o=!1;if(this.balancedBracketSelectors?.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const i=e?.getScopeNames()??[];for(const s of this._tokenTypeOverrides)s.matcher(i)&&(r=Qn.set(r,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(i))}if(o&&(r=Qn.set(r,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,o=this._binaryTokens.length;r<o;r++)n[r]=this._binaryTokens[r];return n}},db=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,o){if(!this._grammars.has(e)){let i=this._rawGrammars.get(e);if(!i)return null;this._grammars.set(e,ab(e,i,t,n,r,o,this,this._onigLib))}return this._grammars.get(e)}},pb=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new db(Mo.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Mo.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new ub(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,o,i){const s=new Hv(this._syncRegistry,t);for(;s.Q.length>0;)s.Q.map(a=>this._loadSingleGrammar(a.scopeName)),s.processQueue();return this._grammarForScopeName(t,n,r,o,i)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,o=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,o)}_grammarForScopeName(t,n=0,r=null,o=null,i=null){return this._syncRegistry.grammarForScopeName(t,n,r,o,i)}},Es=ws.NULL;const hb=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Mr{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Mr.prototype.normal={};Mr.prototype.property={};Mr.prototype.space=void 0;function Df(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Mr(n,r,t)}function Ss(e){return e.toLowerCase()}class ct{constructor(t,n){this.attribute=n,this.property=t}}ct.prototype.attribute="";ct.prototype.booleanish=!1;ct.prototype.boolean=!1;ct.prototype.commaOrSpaceSeparated=!1;ct.prototype.commaSeparated=!1;ct.prototype.defined=!1;ct.prototype.mustUseProperty=!1;ct.prototype.number=!1;ct.prototype.overloadedBoolean=!1;ct.prototype.property="";ct.prototype.spaceSeparated=!1;ct.prototype.space=void 0;let mb=0;const fe=Rn(),Ie=Rn(),Ts=Rn(),V=Rn(),Re=Rn(),Un=Rn(),pt=Rn();function Rn(){return 2**++mb}const Rs=Object.freeze(Object.defineProperty({__proto__:null,boolean:fe,booleanish:Ie,commaOrSpaceSeparated:pt,commaSeparated:Un,number:V,overloadedBoolean:Ts,spaceSeparated:Re},Symbol.toStringTag,{value:"Module"})),Vi=Object.keys(Rs);class la extends ct{constructor(t,n,r,o){let i=-1;if(super(t,n),jl(this,"space",o),typeof r=="number")for(;++i<Vi.length;){const s=Vi[i];jl(this,Vi[i],(r&Rs[s])===Rs[s])}}}la.prototype.defined=!0;function jl(e,t,n){n&&(e[t]=n)}function nr(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new la(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Ss(r)]=r,n[Ss(i.attribute)]=r}return new Mr(t,n,e.space)}const Nf=nr({properties:{ariaActiveDescendant:null,ariaAtomic:Ie,ariaAutoComplete:null,ariaBusy:Ie,ariaChecked:Ie,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:Re,ariaCurrent:null,ariaDescribedBy:Re,ariaDetails:null,ariaDisabled:Ie,ariaDropEffect:Re,ariaErrorMessage:null,ariaExpanded:Ie,ariaFlowTo:Re,ariaGrabbed:Ie,ariaHasPopup:null,ariaHidden:Ie,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Re,ariaLevel:V,ariaLive:null,ariaModal:Ie,ariaMultiLine:Ie,ariaMultiSelectable:Ie,ariaOrientation:null,ariaOwns:Re,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:Ie,ariaReadOnly:Ie,ariaRelevant:null,ariaRequired:Ie,ariaRoleDescription:Re,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:Ie,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Mf(e,t){return t in e?e[t]:t}function Vf(e,t){return Mf(e,t.toLowerCase())}const gb=nr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Un,acceptCharset:Re,accessKey:Re,action:null,allow:null,allowFullScreen:fe,allowPaymentRequest:fe,allowUserMedia:fe,alt:null,as:null,async:fe,autoCapitalize:null,autoComplete:Re,autoFocus:fe,autoPlay:fe,blocking:Re,capture:null,charSet:null,checked:fe,cite:null,className:Re,cols:V,colSpan:null,content:null,contentEditable:Ie,controls:fe,controlsList:Re,coords:V|Un,crossOrigin:null,data:null,dateTime:null,decoding:null,default:fe,defer:fe,dir:null,dirName:null,disabled:fe,download:Ts,draggable:Ie,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:fe,formTarget:null,headers:Re,height:V,hidden:Ts,high:V,href:null,hrefLang:null,htmlFor:Re,httpEquiv:Re,id:null,imageSizes:null,imageSrcSet:null,inert:fe,inputMode:null,integrity:null,is:null,isMap:fe,itemId:null,itemProp:Re,itemRef:Re,itemScope:fe,itemType:Re,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:fe,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:fe,muted:fe,name:null,nonce:null,noModule:fe,noValidate:fe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:fe,optimum:V,pattern:null,ping:Re,placeholder:null,playsInline:fe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:fe,referrerPolicy:null,rel:Re,required:fe,reversed:fe,rows:V,rowSpan:V,sandbox:Re,scope:null,scoped:fe,seamless:fe,selected:fe,shadowRootClonable:fe,shadowRootDelegatesFocus:fe,shadowRootMode:null,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:Ie,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:fe,useMap:null,value:Ie,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Re,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:fe,declare:fe,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:fe,noHref:fe,noShade:fe,noWrap:fe,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:Ie,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:fe,disableRemotePlayback:fe,prefix:null,property:null,results:V,security:null,unselectable:null},space:"html",transform:Vf}),_b=nr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:pt,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:Re,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:fe,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Un,g2:Un,glyphName:Un,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:pt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:V,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Re,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pt,rev:pt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pt,requiredFeatures:pt,requiredFonts:pt,requiredFormats:pt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:pt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pt,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Mf}),$f=nr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),jf=nr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Vf}),Bf=nr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),yb=/[A-Z]/g,Bl=/-[a-z]/g,vb=/^data[-\w.:]+$/i;function bb(e,t){const n=Ss(t);let r=t,o=ct;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&vb.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Bl,Eb);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Bl.test(i)){let s=i.replace(yb,wb);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=la}return new o(r,t)}function wb(e){return"-"+e.toLowerCase()}function Eb(e){return e.charAt(1).toUpperCase()}const Sb=Df([Nf,gb,$f,jf,Bf],"html"),Ff=Df([Nf,_b,$f,jf,Bf],"svg"),Fl={}.hasOwnProperty;function Tb(e,t){const n=t||{};function r(o,...i){let s=r.invalid;const a=r.handlers;if(o&&Fl.call(o,e)){const l=String(o[e]);s=Fl.call(a,l)?a[l]:r.unknown}if(s)return s.call(this,o,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Rb=/["&'<>`]/g,Ab=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Pb=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Cb=/[|\\{}()[\]^$+*?.]/g,Hl=new WeakMap;function Lb(e,t){if(e=e.replace(t.subset?kb(t.subset):Rb,r),t.subset||t.escapeOnly)return e;return e.replace(Ab,n).replace(Pb,r);function n(o,i,s){return t.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),t)}function r(o,i,s){return t.format(o.charCodeAt(0),s.charCodeAt(i+1),t)}}function kb(e){let t=Hl.get(e);return t||(t=xb(e),Hl.set(e,t)),t}function xb(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(Cb,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Ob=/[\dA-Fa-f]/;function Ib(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Ob.test(String.fromCharCode(t))?r:r+";"}const Db=/\d/;function Nb(e,t,n){const r="&#"+String(e);return n&&t&&!Db.test(String.fromCharCode(t))?r:r+";"}const Mb=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],$i={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Vb=["cent","copy","divide","gt","lt","not","para","times"],Hf={}.hasOwnProperty,As={};let Yr;for(Yr in $i)Hf.call($i,Yr)&&(As[$i[Yr]]=Yr);const $b=/[^\dA-Za-z]/;function jb(e,t,n,r){const o=String.fromCharCode(e);if(Hf.call(As,o)){const i=As[o],s="&"+i;return n&&Mb.includes(i)&&!Vb.includes(i)&&(!r||t&&t!==61&&$b.test(String.fromCharCode(t)))?s:s+";"}return""}function Bb(e,t,n){let r=Ib(e,t,n.omitOptionalSemicolons),o;if((n.useNamedReferences||n.useShortestReferences)&&(o=jb(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!o)&&n.useShortestReferences){const i=Nb(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return o&&(!n.useShortestReferences||o.length<r.length)?o:r}function zn(e,t){return Lb(e,Object.assign({format:Bb},t))}const Fb=/^>|^->|<!--|-->|--!>|<!-$/g,Hb=[">"],Ub=["<",">"];function zb(e,t,n,r){return r.settings.bogusComments?"<?"+zn(e.value,Object.assign({},r.settings.characterReferences,{subset:Hb}))+">":"<!--"+e.value.replace(Fb,o)+"-->";function o(i){return zn(i,Object.assign({},r.settings.characterReferences,{subset:Ub}))}}function Gb(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Ul(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;o!==-1;)r++,o=n.indexOf(t,o+t.length);return r}function Wb(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function qb(e){return e.join(" ").trim()}const Kb=/[ \t\n\f\r]/g;function ca(e){return typeof e=="object"?e.type==="text"?zl(e.value):!1:zl(e)}function zl(e){return e.replace(Kb,"")===""}const Ve=zf(1),Uf=zf(-1),Jb=[];function zf(e){return t;function t(n,r,o){const i=n?n.children:Jb;let s=(r||0)+e,a=i[s];if(!o)for(;a&&ca(a);)s+=e,a=i[s];return a}}const Xb={}.hasOwnProperty;function Gf(e){return t;function t(n,r,o){return Xb.call(e,n.tagName)&&e[n.tagName](n,r,o)}}const ua=Gf({body:Qb,caption:ji,colgroup:ji,dd:n0,dt:t0,head:ji,html:Yb,li:e0,optgroup:r0,option:o0,p:Zb,rp:Gl,rt:Gl,tbody:s0,td:Wl,tfoot:a0,th:Wl,thead:i0,tr:l0});function ji(e,t,n){const r=Ve(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&ca(r.value.charAt(0)))}function Yb(e,t,n){const r=Ve(n,t);return!r||r.type!=="comment"}function Qb(e,t,n){const r=Ve(n,t);return!r||r.type!=="comment"}function Zb(e,t,n){const r=Ve(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function e0(e,t,n){const r=Ve(n,t);return!r||r.type==="element"&&r.tagName==="li"}function t0(e,t,n){const r=Ve(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function n0(e,t,n){const r=Ve(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Gl(e,t,n){const r=Ve(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function r0(e,t,n){const r=Ve(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function o0(e,t,n){const r=Ve(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function i0(e,t,n){const r=Ve(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function s0(e,t,n){const r=Ve(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function a0(e,t,n){return!Ve(n,t)}function l0(e,t,n){const r=Ve(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Wl(e,t,n){const r=Ve(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const c0=Gf({body:d0,colgroup:p0,head:f0,html:u0,tbody:h0});function u0(e){const t=Ve(e,-1);return!t||t.type!=="comment"}function f0(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function d0(e){const t=Ve(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&ca(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function p0(e,t,n){const r=Uf(n,t),o=Ve(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&ua(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function h0(e,t,n){const r=Uf(n,t),o=Ve(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&ua(r,n.children.indexOf(r),n)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}const Qr={name:[[`
|
|
39
39
|
\f\r &/=>`.split(""),`
|
|
@@ -48,6 +48,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
48
48
|
* @vue/shared v3.5.22
|
|
49
49
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
50
50
|
* @license MIT
|
|
51
|
-
**/const oE=Object.prototype.toString,iE=e=>oE.call(e),sE=e=>iE(e)==="[object Object]",aE=Symbol.for("nuxt:client-only");function sd(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;lE(e[0],e[1])&&e.unshift(t);let[n,r,o={}]=e;const i=pe(()=>Le(n));if(typeof i.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const s=Oe();o.server??=!0,o.default??=uE,o.getCachedData??=ld,o.lazy??=!1,o.immediate??=!0,o.deep??=Wm.deep,o.dedupe??="cancel",o._functionName,s._asyncData[i.value];const a={cause:"initial",dedupe:o.dedupe};s._asyncData[i.value]?._init||(a.cachedData=o.getCachedData(i.value,s,{cause:"initial"}),s._asyncData[i.value]=Zl(s,i.value,r,o,a.cachedData));const l=s._asyncData[i.value];l._deps++;const u=()=>s._asyncData[i.value].execute(a),c=o.server!==!1&&s.payload.serverRendered;{let d=function(m){const w=s._asyncData[m];w?._deps&&(w._deps--,w._deps===0&&w?._off())};const h=Ct();if(h&&c&&o.immediate&&!h.sp&&(h.sp=[]),h&&!h._nuxtOnBeforeMountCbs){h._nuxtOnBeforeMountCbs=[];const m=h._nuxtOnBeforeMountCbs;Bc(()=>{m.forEach(w=>{w()}),m.splice(0,m.length)}),zs(()=>m.splice(0,m.length))}const _=h&&(h._nuxtClientOnly||ht(aE,!1));c&&s.isHydrating&&(l.error.value||l.data.value!==void 0)?l.status.value=l.error.value?"error":"success":h&&(!_&&s.payload.serverRendered&&s.isHydrating||o.lazy)&&o.immediate?h._nuxtOnBeforeMountCbs.push(u):o.immediate&&l.status.value!=="success"&&u();const v=xr(),b=Ge(i,(m,w)=>{if((m||w)&&m!==w){const T=s._asyncData[w]?.data.value!==void 0,k=s._asyncDataPromises[w]!==void 0;w&&d(w);const $={cause:"initial",dedupe:o.dedupe};if(!s._asyncData[m]?._init){let K;w&&T?K=s._asyncData[w]?.data.value:(K=o.getCachedData(m,s,{cause:"initial"}),$.cachedData=K),s._asyncData[m]=Zl(s,m,r,o,K)}s._asyncData[m]._deps++,(o.immediate||T||k)&&s._asyncData[m].execute($)}},{flush:"sync"}),E=o.watch?Ge(o.watch,()=>{l._execute({cause:"watch",dedupe:o.dedupe})}):()=>{};v&&Ds(()=>{b(),E(),d(i.value)})}const f={data:eo(()=>s._asyncData[i.value]?.data),pending:eo(()=>s._asyncData[i.value]?.pending),status:eo(()=>s._asyncData[i.value]?.status),error:eo(()=>s._asyncData[i.value]?.error),refresh:(...d)=>s._asyncData[i.value].execute(...d),execute:(...d)=>s._asyncData[i.value].execute(...d),clear:()=>ad(s,i.value)},p=Promise.resolve(s._asyncDataPromises[i.value]).then(()=>f);return Object.assign(p,f),p}function eo(e){return pe({get(){return e()?.value},set(t){const n=e();n&&(n.value=t)}})}function lE(e,t){return!(typeof e=="string"||typeof e=="object"&&e!==null||typeof e=="function"&&typeof t=="function")}function ad(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=void 0),e._asyncData[t]&&(e._asyncData[t].data.value=X(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]&&(e._asyncDataPromises[t].cancelled=!0),e._asyncDataPromises[t]=void 0)}function cE(e,t){const n={};for(const r of t)n[r]=e[r];return n}function Zl(e,t,n,r,o){e.payload._errors[t]??=void 0;const i=r.getCachedData!==ld,s=n,a=r.deep?_e:ze,l=o!==void 0,u=e.hook("app:data:refresh",async f=>{(!f||f.includes(t))&&await c.execute({cause:"refresh:hook"})}),c={data:a(l?o:r.default()),pending:pe(()=>c.status.value==="pending"),error:js(e.payload._errors,t),status:ze("idle"),execute:(...f)=>{const[p,d=void 0]=f,h=p&&d===void 0&&typeof p=="object"?p:{};if(e._asyncDataPromises[t]){if((h.dedupe??r.dedupe)==="defer")return e._asyncDataPromises[t];e._asyncDataPromises[t].cancelled=!0}{const v="cachedData"in h?h.cachedData:r.getCachedData(t,e,{cause:h.cause??"refresh:manual"});if(v!==void 0)return e.payload.data[t]=c.data.value=v,c.error.value=void 0,c.status.value="success",Promise.resolve(v)}c.status.value="pending";const _=new Promise((v,b)=>{try{v(s(e))}catch(E){b(E)}}).then(async v=>{if(_.cancelled)return e._asyncDataPromises[t];let b=v;r.transform&&(b=await r.transform(v)),r.pick&&(b=cE(b,r.pick)),e.payload.data[t]=b,c.data.value=b,c.error.value=void 0,c.status.value="success"}).catch(v=>{if(_.cancelled)return e._asyncDataPromises[t];c.error.value=si(v),c.data.value=X(r.default()),c.status.value="error"}).finally(()=>{_.cancelled||delete e._asyncDataPromises[t]});return e._asyncDataPromises[t]=_,e._asyncDataPromises[t]},_execute:Jw((...f)=>c.execute(...f),0,{leading:!0}),_default:r.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{u(),e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),i||Rt(()=>{e._asyncData[t]?._init||(ad(e,t),c.execute=()=>Promise.resolve())})}};return c}const uE=()=>{},ld=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!=="refresh:manual"&&n.cause!=="refresh:hook")return t.static.data[e]},fE={class:"space-y-2"},dE={key:0,class:"flex mt-8"},pE={key:1,class:"flex flex-col"},hE={key:2,class:"flex items-center justify-center h-64"},mE={class:"text-center"},gE={key:3,class:"space-y-6"},_E={class:"space-y-4"},yE={key:0},vE={key:1},bE={key:2},wE=gt({__name:"EmailTemplateViewer",props:{template:{}},setup(e){const t=e,n=_e("desktop"),r=_e("preview"),o=id(),{data:i,error:s,pending:a,refresh:l}=sd(async()=>{if(!t.template)return{html:null,sourceCode:null};const f=await $fetch(`${o.origin}/api/emails/render`,{method:"POST",body:{name:t.template.filename,pretty:!0}}),d=(await $fetch(`${o.origin}/api/emails/source`,{method:"POST",body:{name:t.template.filename}})).sourceCode;return{html:f,sourceCode:d}},{watch:[()=>t.template]},"$XdfX-fxT8q"),u=pe(()=>i.value?.sourceCode??null),c=pe(()=>i.value?.html??null);return(f,p)=>{const d=of,h=sf,_=Tn,v=Sv,b=Pv,E=qw;return Q(),me("div",fE,[X(a)?(Q(),me("div",dE,[oe(d,null,{default:Pe(()=>[...p[2]||(p[2]=[st("Loading email template...",-1)])]),_:1})])):X(s)?(Q(),me("div",pE,[oe(h,{n:"red6 dark:red5",icon:"carbon:warning-alt"},{default:Pe(()=>[...p[3]||(p[3]=[st(" Error! ",-1)])]),_:1}),oe(h,{n:"red6 dark:red5"},{default:Pe(()=>[st(Pt(X(s)),1)]),_:1})])):f.template?(Q(),me("div",gE,[oe(v,{"view-mode":X(n),"onUpdate:viewMode":p[0]||(p[0]=m=>we(n)?n.value=m:null),"content-mode":X(r),"onUpdate:contentMode":p[1]||(p[1]=m=>we(r)?r.value=m:null),"rendered-html":X(c),"source-code":X(u),onRefresh:X(l)},null,8,["view-mode","content-mode","rendered-html","source-code","onRefresh"]),he("div",_E,[X(r)==="preview"?(Q(),me("div",yE,[oe(b,{"rendered-html":X(c),"view-mode":X(n)},null,8,["rendered-html","view-mode"])])):X(r)==="html"?(Q(),me("div",vE,[oe(E,{"source-code":X(c),"content-mode":X(r)},null,8,["source-code","content-mode"])])):X(r)==="source"?(Q(),me("div",bE,[oe(E,{"source-code":X(u),"content-mode":X(r)},null,8,["source-code","content-mode"])])):Ze("",!0)])])):(Q(),me("div",hE,[he("div",mE,[oe(_,{icon:"carbon:email",class:"w-12 h-12 text-gray-400 mx-auto mb-4"}),p[4]||(p[4]=he("p",{class:"text-gray-500 dark:text-gray-400"}," Select an email template to preview ",-1))])]))])}}}),EE=Object.assign(wE,{__name:"EmailTemplateViewer"}),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=vp(),i=_e([]),s=pe(()=>i.value.reduce((L,N)=>(L[~~N.id]=N)&&L,{})),a=pe(()=>i.value.length),l=_e(null),u=_e(!1),c=_e({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),f=_e({splitter:null,timeoutId:null}),p=pe(()=>({[`splitpanes splitpanes--${r.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":c.value.dragging})),d=()=>{document.addEventListener("mousemove",v,{passive:!1}),document.addEventListener("mouseup",b),"ontouchstart"in window&&(document.addEventListener("touchmove",v,{passive:!1}),document.addEventListener("touchend",b))},h=()=>{document.removeEventListener("mousemove",v,{passive:!1}),document.removeEventListener("mouseup",b),"ontouchstart"in window&&(document.removeEventListener("touchmove",v,{passive:!1}),document.removeEventListener("touchend",b))},_=(L,N)=>{const F=L.target.closest(".splitpanes__splitter");if(F){const{left:j,top:U}=F.getBoundingClientRect(),{clientX:te,clientY:y}="ontouchstart"in window&&L.touches?L.touches[0]:L;c.value.cursorOffset=r.horizontal?y-U:te-j}d(),c.value.mouseDown=!0,c.value.activeSplitter=N},v=L=>{c.value.mouseDown&&(L.preventDefault(),c.value.dragging=!0,requestAnimationFrame(()=>{$(T(L)),Ce("resize",{event:L},!0)}))},b=L=>{c.value.dragging&&(window.getSelection().removeAllRanges(),Ce("resized",{event:L},!0)),c.value.mouseDown=!1,c.value.activeSplitter=null,setTimeout(()=>{c.value.dragging=!1,h()},100)},E=(L,N)=>{"ontouchstart"in window&&(L.preventDefault(),f.value.splitter===N?(clearTimeout(f.value.timeoutId),f.value.timeoutId=null,m(L,N),f.value.splitter=null):(f.value.splitter=N,f.value.timeoutId=setTimeout(()=>f.value.splitter=null,500))),c.value.dragging||Ce("splitter-click",{event:L,index:N},!0)},m=(L,N)=>{if(Ce("splitter-dblclick",{event:L,index:N},!0),r.maximizePanes){let F=0;i.value=i.value.map((j,U)=>(j.size=U===N?j.max:j.min,U!==N&&(F+=j.min),j)),i.value[N].size-=F,Ce("pane-maximize",{event:L,index:N,pane:i.value[N]}),Ce("resized",{event:L,index:N},!0)}},w=(L,N)=>{Ce("pane-click",{event:L,index:s.value[N].index,pane:s.value[N]})},T=L=>{const N=l.value.getBoundingClientRect(),{clientX:F,clientY:j}="ontouchstart"in window&&L.touches?L.touches[0]:L;return{x:F-(r.horizontal?0:c.value.cursorOffset)-N.left,y:j-(r.horizontal?c.value.cursorOffset:0)-N.top}},k=L=>{L=L[r.horizontal?"y":"x"];const N=l.value[r.horizontal?"clientHeight":"clientWidth"];return r.rtl&&!r.horizontal&&(L=N-L),L*100/N},$=L=>{const N=c.value.activeSplitter;let F={prevPanesSize:W(N),nextPanesSize:z(N),prevReachedMinPanes:0,nextReachedMinPanes:0};const j=0+(r.pushOtherPanes?0:F.prevPanesSize),U=100-(r.pushOtherPanes?0:F.nextPanesSize),te=Math.max(Math.min(k(L),U),j);let y=[N,N+1],S=i.value[y[0]]||null,P=i.value[y[1]]||null;const D=S.max<100&&te>=S.max+F.prevPanesSize,x=P.max<100&&te<=100-(P.max+z(N+1));if(D||x){D?(S.size=S.max,P.size=Math.max(100-S.max-F.prevPanesSize-F.nextPanesSize,0)):(S.size=Math.max(100-P.max-F.prevPanesSize-z(N+1),0),P.size=P.max);return}if(r.pushOtherPanes){const O=K(F,te);if(!O)return;({sums:F,panesToResize:y}=O),S=i.value[y[0]]||null,P=i.value[y[1]]||null}S!==null&&(S.size=Math.min(Math.max(te-F.prevPanesSize-F.prevReachedMinPanes,S.min),S.max)),P!==null&&(P.size=Math.min(Math.max(100-te-F.nextPanesSize-F.nextReachedMinPanes,P.min),P.max))},K=(L,N)=>{const F=c.value.activeSplitter,j=[F,F+1];return N<L.prevPanesSize+i.value[j[0]].min&&(j[0]=le(F).index,L.prevReachedMinPanes=0,j[0]<F&&i.value.forEach((U,te)=>{te>j[0]&&te<=F&&(U.size=U.min,L.prevReachedMinPanes+=U.min)}),L.prevPanesSize=W(j[0]),j[0]===void 0)?(L.prevReachedMinPanes=0,i.value[0].size=i.value[0].min,i.value.forEach((U,te)=>{te>0&&te<=F&&(U.size=U.min,L.prevReachedMinPanes+=U.min)}),i.value[j[1]].size=100-L.prevReachedMinPanes-i.value[0].min-L.prevPanesSize-L.nextPanesSize,null):N>100-L.nextPanesSize-i.value[j[1]].min&&(j[1]=ie(F).index,L.nextReachedMinPanes=0,j[1]>F+1&&i.value.forEach((U,te)=>{te>F&&te<j[1]&&(U.size=U.min,L.nextReachedMinPanes+=U.min)}),L.nextPanesSize=z(j[1]-1),j[1]===void 0)?(L.nextReachedMinPanes=0,i.value.forEach((U,te)=>{te<a.value-1&&te>=F+1&&(U.size=U.min,L.nextReachedMinPanes+=U.min)}),i.value[j[0]].size=100-L.prevPanesSize-z(j[0]-1),null):{sums:L,panesToResize:j}},W=L=>i.value.reduce((N,F,j)=>N+(j<L?F.size:0),0),z=L=>i.value.reduce((N,F,j)=>N+(j>L+1?F.size:0),0),le=L=>[...i.value].reverse().find(N=>N.index<L&&N.size>N.min)||{},ie=L=>i.value.find(N=>N.index>L+1&&N.size>N.min)||{},Y=()=>{var L;const N=Array.from(((L=l.value)==null?void 0:L.children)||[]);for(const F of N){const j=F.classList.contains("splitpanes__pane"),U=F.classList.contains("splitpanes__splitter");!j&&!U&&(F.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},R=(L,N,F=!1)=>{const j=L-1,U=document.createElement("div");U.classList.add("splitpanes__splitter"),F||(U.onmousedown=te=>_(te,j),typeof window<"u"&&"ontouchstart"in window&&(U.ontouchstart=te=>_(te,j)),U.onclick=te=>E(te,j+1)),U.ondblclick=te=>m(te,j+1),N.parentNode.insertBefore(U,N)},A=L=>{L.onmousedown=void 0,L.onclick=void 0,L.ondblclick=void 0,L.remove()},C=()=>{var L;const N=Array.from(((L=l.value)==null?void 0:L.children)||[]);for(const j of N)j.className.includes("splitpanes__splitter")&&A(j);let F=0;for(const j of N)j.className.includes("splitpanes__pane")&&(!F&&r.firstSplitter?R(F,j,!0):F&&R(F,j),F++)},G=({uid:L,...N})=>{const F=s.value[L];for(const[j,U]of Object.entries(N))F[j]=U},I=L=>{var N;let F=-1;Array.from(((N=l.value)==null?void 0:N.children)||[]).some(j=>(j.className.includes("splitpanes__pane")&&F++,j.isSameNode(L.el))),i.value.splice(F,0,{...L,index:F}),i.value.forEach((j,U)=>j.index=U),u.value&&Rt(()=>{C(),se({addedPane:i.value[F]}),Ce("pane-add",{pane:i.value[F]})})},ee=L=>{const N=i.value.findIndex(j=>j.id===L);i.value[N].el=null;const F=i.value.splice(N,1)[0];i.value.forEach((j,U)=>j.index=U),Rt(()=>{C(),Ce("pane-remove",{pane:F}),se({removedPane:{...F}})})},se=(L={})=>{!L.addedPane&&!L.removedPane?ue():i.value.some(N=>N.givenSize!==null||N.min||N.max<100)?Ne(L):de(),u.value&&Ce("resized")},de=()=>{const L=100/a.value;let N=0;const F=[],j=[];for(const U of i.value)U.size=Math.max(Math.min(L,U.max),U.min),N-=U.size,U.size>=U.max&&F.push(U.id),U.size<=U.min&&j.push(U.id);N>.1&&qe(N,F,j)},ue=()=>{let L=100;const N=[],F=[];let j=0;for(const te of i.value)L-=te.size,te.givenSize!==null&&j++,te.size>=te.max&&N.push(te.id),te.size<=te.min&&F.push(te.id);let U=100;if(L>.1){for(const te of i.value)te.givenSize===null&&(te.size=Math.max(Math.min(L/(a.value-j),te.max),te.min)),U-=te.size;U>.1&&qe(U,N,F)}},Ne=({addedPane:L,removedPane:N}={})=>{let F=100/a.value,j=0;const U=[],te=[];(L?.givenSize??null)!==null&&(F=(100-L.givenSize)/(a.value-1));for(const y of i.value)j-=y.size,y.size>=y.max&&U.push(y.id),y.size<=y.min&&te.push(y.id);if(!(Math.abs(j)<.1)){for(const y of i.value)L?.givenSize!==null&&L?.id===y.id||(y.size=Math.max(Math.min(F,y.max),y.min)),j-=y.size,y.size>=y.max&&U.push(y.id),y.size<=y.min&&te.push(y.id);j>.1&&qe(j,U,te)}},qe=(L,N,F)=>{let j;L>0?j=L/(a.value-N.length):j=L/(a.value-F.length),i.value.forEach((U,te)=>{if(L>0&&!N.includes(U.id)){const y=Math.max(Math.min(U.size+j,U.max),U.min),S=y-U.size;L-=S,U.size=y}else if(!F.includes(U.id)){const y=Math.max(Math.min(U.size+j,U.max),U.min),S=y-U.size;L-=S,U.size=y}}),Math.abs(L)>.1&&Rt(()=>{u.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},Ce=(L,N=void 0,F=!1)=>{const j=N?.index??c.value.activeSplitter??null;n(L,{...N,...j!==null&&{index:j},...F&&j!==null&&{prevPane:i.value[j-(r.firstSplitter?1:0)],nextPane:i.value[j+(r.firstSplitter?0:1)]},panes:i.value.map(U=>({min:U.min,max:U.max,size:U.size}))})};Ge(()=>r.firstSplitter,()=>C()),tr(()=>{Y(),C(),se(),Ce("ready"),u.value=!0}),Ir(()=>u.value=!1);const nt=()=>{var L;return bn("div",{ref:l,class:p.value},(L=o.default)==null?void 0:L.call(o))};return jt("panes",i),jt("indexedPanes",s),jt("horizontal",pe(()=>r.horizontal)),jt("requestUpdate",G),jt("onPaneAdd",I),jt("onPaneRemove",ee),jt("onPaneClick",w),(L,N)=>(Q(),xe(zc(nt)))}},ec={__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=ht("requestUpdate"),o=ht("onPaneAdd"),i=ht("horizontal"),s=ht("onPaneRemove"),a=ht("onPaneClick"),l=(t=Ct())==null?void 0:t.uid,u=ht("indexedPanes"),c=pe(()=>u.value[l]),f=_e(null),p=pe(()=>{const v=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min(v,h.value),d.value)}),d=pe(()=>{const v=parseFloat(n.minSize);return isNaN(v)?0:v}),h=pe(()=>{const v=parseFloat(n.maxSize);return isNaN(v)?100:v}),_=pe(()=>{var v;return`${i.value?"height":"width"}: ${(v=c.value)==null?void 0:v.size}%`});return Ge(()=>p.value,v=>r({uid:l,size:v})),Ge(()=>d.value,v=>r({uid:l,min:v})),Ge(()=>h.value,v=>r({uid:l,max:v})),tr(()=>{o({id:l,el:f.value,min:d.value,max:h.value,givenSize:n.size===void 0?null:p.value,size:p.value})}),Ir(()=>s(l)),(v,b)=>(Q(),me("div",{ref_key:"paneEl",ref:f,class:"splitpanes__pane",onClick:b[0]||(b[0]=E=>X(a)(E,v._.uid)),style:_n(_.value)},[tt(v.$slots,"default")],4))}},tc=30,TE={__name:"NSplitPane",props:{storageKey:{type:String,required:!1},stateKey:{type:String,required:!1,default:"nuxt-devtools-panels-state"},leftSize:{type:Number,required:!1},minSize:{type:Number,required:!1},horizontal:{type:Boolean,required:!1}},setup(e){const t=e,n=dy(t.stateKey,{},{listenToStorageChanges:!1}),r=t.storageKey,o=r?pe({get:()=>n.value[r]||t.leftSize||tc,set:i=>{n.value[r]=i}}):_e(t.leftSize||tc);return(i,s)=>(Q(),xe(X(SE),{horizontal:e.horizontal,"h-full":"","of-hidden":"",onResize:s[0]||(s[0]=a=>o.value=a[0].size)},{default:Pe(()=>[oe(X(ec),{"h-full":"",class:"of-auto!",size:X(o),"min-size":i.$slots.right?e.minSize||10:100},{default:Pe(()=>[tt(i.$slots,"left")]),_:3},8,["size","min-size"]),i.$slots.right?(Q(),xe(X(ec),{key:0,relative:"","h-full":"",class:"of-auto!","min-size":e.minSize||10},{default:Pe(()=>[tt(i.$slots,"right")]),_:3},8,["min-size"])):Ze("",!0)]),_:3},8,["horizontal"]))}};function RE(e,t,n){const[r={},o]=typeof t=="string"?[{},t]:[t,n],i=pe(()=>Le(e)),s=pe(()=>Le(r.key)||"$f"+kn([o,typeof i.value=="string"?i.value:"",...AE(r)]));if(!r.baseURL&&typeof i.value=="string"&&i.value[0]==="/"&&i.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:a,lazy:l,default:u,transform:c,pick:f,watch:p,immediate:d,getCachedData:h,deep:_,dedupe:v,...b}=r,E=Nt({...qm,...b,cache:typeof r.cache=="boolean"?void 0:r.cache}),m={server:a,lazy:l,default:u,transform:c,pick:f,immediate:d,getCachedData:h,deep:_,dedupe:v,watch:p===!1?[]:[...p||[],E]};let w;return sd(p===!1?s.value:s,()=>{w?.abort?.(new DOMException("Request aborted as another request to the same endpoint was initiated.","AbortError")),w=typeof AbortController<"u"?new AbortController:{};const k=Le(r.timeout);let $;return k&&($=setTimeout(()=>w.abort(new DOMException("Request aborted due to timeout.","AbortError")),k),w.signal.onabort=()=>clearTimeout($)),(r.$fetch||globalThis.$fetch)(i.value,{signal:w.signal,...E}).finally(()=>{clearTimeout($)})},m)}function AE(e){const t=[Le(e.method)?.toUpperCase()||"GET",Le(e.baseURL)];for(const n of[e.params||e.query]){const r=Le(n);if(!r)continue;const o={};for(const[i,s]of Object.entries(r))o[Le(i)]=Le(s);t.push(o)}if(e.body){const n=Le(e.body);if(!n)t.push(kn(n));else if(n instanceof ArrayBuffer)t.push(kn(Object.fromEntries([...new Uint8Array(n).entries()].map(([r,o])=>[r,o.toString()]))));else if(n instanceof FormData){const r={};for(const o of n.entries()){const[i,s]=o;r[i]=s instanceof File?s.name:s}t.push(kn(r))}else if(sE(n))t.push(kn(Nt(n)));else try{t.push(kn(n))}catch{console.warn("[useFetch] Failed to hash body",n)}}return t}const PE={fixed:"","inset-0":"","h-screen":"","w-screen":"","font-sans":""},CE={class:"mb-8 flex justify-between"},LE={class:"flex items-center gap-2"},kE={key:0,class:"flex mt-8"},xE={key:1,class:"flex flex-col"},OE={key:3,class:"flex flex-col h-full"},IE={class:"mt-8"},DE=gt({__name:"app",async setup(e){let t,n;const r=id(),{data:o,pending:i,error:s}=([t,n]=wp(()=>RE(`${r.origin}/api/emails`,{default:()=>[]},"$3oRWNoOsuN")),t=await t,n(),t),a=_e(null);function l(u){a.value=u}return Ge(o,u=>{u.length>0&&!a.value&&(a.value=u[0])},{immediate:!0}),(u,c)=>{const f=b_,p=E_,d=oa,h=of,_=sf,v=Tn,b=ci,E=by,m=EE,w=TE;return Q(),me("div",PE,[oe(f),oe(p),oe(w,{"storage-key":"devtools:nuxt-email-renderer",class:"!h-screen p-4","min-size":30,horizontal:!1},{left:Pe(()=>[he("div",CE,[c[0]||(c[0]=he("h1",{class:"text-xl font-bold text-gray-900 dark:text-white mb-2"}," Nuxt Email Renderer ",-1)),he("div",LE,[oe(d,{icon:"carbon:logo-github",to:"https://github.com/Mokkapps/nuxt-email-renderer",target:"_blank"}),oe(d,{icon:"carbon:earth",to:"https://nuxtemail.com",target:"_blank"})])]),X(i)?(Q(),me("div",kE,[oe(h,null,{default:Pe(()=>[...c[1]||(c[1]=[st("Loading email templates...",-1)])]),_:1})])):X(s)?(Q(),me("div",xE,[oe(_,{n:"red6 dark:red5",icon:"carbon:warning-alt"},{default:Pe(()=>[...c[2]||(c[2]=[st(" Error! ",-1)])]),_:1}),oe(_,{n:"red6 dark:red5"},{default:Pe(()=>[st(Pt(X(s)),1)]),_:1})])):Ze("",!0),X(o).length===0?(Q(),xe(b,{key:2,class:"text-center py-12"},{default:Pe(()=>[oe(v,{icon:"carbon:email",class:"w-16 h-16 text-gray-300 dark:text-gray-600 mx-auto mb-4"}),c[3]||(c[3]=he("h3",{class:"text-lg font-medium text-gray-900 dark:text-white mb-2"}," No email templates found ",-1)),c[4]||(c[4]=he("p",{class:"text-gray-500 dark:text-gray-400 mb-6 max-w-sm mx-auto"}," Create your first email template by adding a .vue file to the emails directory. ",-1))]),_:1})):(Q(),me("div",OE,[oe(E,{"email-templates":X(o),"selected-template":X(a),onSelect:l},null,8,["email-templates","selected-template"]),he("div",IE,[oe(m,{template:X(a)},null,8,["template"])])]))]),_:1})])}}}),NE={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(`
|
|
51
|
+
**/const oE=Object.prototype.toString,iE=e=>oE.call(e),sE=e=>iE(e)==="[object Object]",aE=Symbol.for("nuxt:client-only");function sd(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;lE(e[0],e[1])&&e.unshift(t);let[n,r,o={}]=e;const i=de(()=>Le(n));if(typeof i.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const s=Oe();o.server??=!0,o.default??=uE,o.getCachedData??=ld,o.lazy??=!1,o.immediate??=!0,o.deep??=Wm.deep,o.dedupe??="cancel",o._functionName,s._asyncData[i.value];const a={cause:"initial",dedupe:o.dedupe};s._asyncData[i.value]?._init||(a.cachedData=o.getCachedData(i.value,s,{cause:"initial"}),s._asyncData[i.value]=Zl(s,i.value,r,o,a.cachedData));const l=s._asyncData[i.value];l._deps++;const u=()=>s._asyncData[i.value].execute(a),c=o.server!==!1&&s.payload.serverRendered;{let d=function(m){const w=s._asyncData[m];w?._deps&&(w._deps--,w._deps===0&&w?._off())};const h=Ct();if(h&&c&&o.immediate&&!h.sp&&(h.sp=[]),h&&!h._nuxtOnBeforeMountCbs){h._nuxtOnBeforeMountCbs=[];const m=h._nuxtOnBeforeMountCbs;Bc(()=>{m.forEach(w=>{w()}),m.splice(0,m.length)}),zs(()=>m.splice(0,m.length))}const _=h&&(h._nuxtClientOnly||ht(aE,!1));c&&s.isHydrating&&(l.error.value||l.data.value!==void 0)?l.status.value=l.error.value?"error":"success":h&&(!_&&s.payload.serverRendered&&s.isHydrating||o.lazy)&&o.immediate?h._nuxtOnBeforeMountCbs.push(u):o.immediate&&l.status.value!=="success"&&u();const v=xr(),b=Ge(i,(m,w)=>{if((m||w)&&m!==w){const T=s._asyncData[w]?.data.value!==void 0,k=s._asyncDataPromises[w]!==void 0;w&&d(w);const $={cause:"initial",dedupe:o.dedupe};if(!s._asyncData[m]?._init){let K;w&&T?K=s._asyncData[w]?.data.value:(K=o.getCachedData(m,s,{cause:"initial"}),$.cachedData=K),s._asyncData[m]=Zl(s,m,r,o,K)}s._asyncData[m]._deps++,(o.immediate||T||k)&&s._asyncData[m].execute($)}},{flush:"sync"}),E=o.watch?Ge(o.watch,()=>{l._execute({cause:"watch",dedupe:o.dedupe})}):()=>{};v&&Ds(()=>{b(),E(),d(i.value)})}const f={data:eo(()=>s._asyncData[i.value]?.data),pending:eo(()=>s._asyncData[i.value]?.pending),status:eo(()=>s._asyncData[i.value]?.status),error:eo(()=>s._asyncData[i.value]?.error),refresh:(...d)=>s._asyncData[i.value].execute(...d),execute:(...d)=>s._asyncData[i.value].execute(...d),clear:()=>ad(s,i.value)},p=Promise.resolve(s._asyncDataPromises[i.value]).then(()=>f);return Object.assign(p,f),p}function eo(e){return de({get(){return e()?.value},set(t){const n=e();n&&(n.value=t)}})}function lE(e,t){return!(typeof e=="string"||typeof e=="object"&&e!==null||typeof e=="function"&&typeof t=="function")}function ad(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=void 0),e._asyncData[t]&&(e._asyncData[t].data.value=X(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]&&(e._asyncDataPromises[t].cancelled=!0),e._asyncDataPromises[t]=void 0)}function cE(e,t){const n={};for(const r of t)n[r]=e[r];return n}function Zl(e,t,n,r,o){e.payload._errors[t]??=void 0;const i=r.getCachedData!==ld,s=n,a=r.deep?_e:ze,l=o!==void 0,u=e.hook("app:data:refresh",async f=>{(!f||f.includes(t))&&await c.execute({cause:"refresh:hook"})}),c={data:a(l?o:r.default()),pending:de(()=>c.status.value==="pending"),error:js(e.payload._errors,t),status:ze("idle"),execute:(...f)=>{const[p,d=void 0]=f,h=p&&d===void 0&&typeof p=="object"?p:{};if(e._asyncDataPromises[t]){if((h.dedupe??r.dedupe)==="defer")return e._asyncDataPromises[t];e._asyncDataPromises[t].cancelled=!0}{const v="cachedData"in h?h.cachedData:r.getCachedData(t,e,{cause:h.cause??"refresh:manual"});if(v!==void 0)return e.payload.data[t]=c.data.value=v,c.error.value=void 0,c.status.value="success",Promise.resolve(v)}c.status.value="pending";const _=new Promise((v,b)=>{try{v(s(e))}catch(E){b(E)}}).then(async v=>{if(_.cancelled)return e._asyncDataPromises[t];let b=v;r.transform&&(b=await r.transform(v)),r.pick&&(b=cE(b,r.pick)),e.payload.data[t]=b,c.data.value=b,c.error.value=void 0,c.status.value="success"}).catch(v=>{if(_.cancelled)return e._asyncDataPromises[t];c.error.value=si(v),c.data.value=X(r.default()),c.status.value="error"}).finally(()=>{_.cancelled||delete e._asyncDataPromises[t]});return e._asyncDataPromises[t]=_,e._asyncDataPromises[t]},_execute:Jw((...f)=>c.execute(...f),0,{leading:!0}),_default:r.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{u(),e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),i||Rt(()=>{e._asyncData[t]?._init||(ad(e,t),c.execute=()=>Promise.resolve())})}};return c}const uE=()=>{},ld=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!=="refresh:manual"&&n.cause!=="refresh:hook")return t.static.data[e]},fE={class:"space-y-2"},dE={key:0,class:"flex mt-8"},pE={key:1,class:"flex flex-col"},hE={key:2,class:"flex items-center justify-center h-64"},mE={class:"text-center"},gE={key:3,class:"space-y-6"},_E={class:"space-y-4"},yE={key:0},vE={key:1},bE={key:2},wE=gt({__name:"EmailTemplateViewer",props:{template:{}},setup(e){const t=e,n=_e("desktop"),r=_e("preview"),o=id(),{data:i,error:s,pending:a,refresh:l}=sd(async()=>{if(!t.template)return{html:null,subject:null,sourceCode:null};const p=await $fetch(`${o.origin}/api/emails/render`,{method:"POST",body:{name:t.template.filename,pretty:!0}}),d=typeof p=="string"?p:p.html,h=typeof p=="string"?null:p.subject,v=(await $fetch(`${o.origin}/api/emails/source`,{method:"POST",body:{name:t.template.filename}})).sourceCode;return{html:d,subject:h,sourceCode:v}},{watch:[()=>t.template]},"$XdfX-fxT8q"),u=de(()=>i.value?.sourceCode??null),c=de(()=>i.value?.html??null),f=de(()=>i.value?.subject??null);return(p,d)=>{const h=of,_=sf,v=Tn,b=Sv,E=Pv,m=qw;return Q(),me("div",fE,[X(a)?(Q(),me("div",dE,[oe(h,null,{default:Pe(()=>[...d[2]||(d[2]=[st("Loading email template...",-1)])]),_:1})])):X(s)?(Q(),me("div",pE,[oe(_,{n:"red6 dark:red5",icon:"carbon:warning-alt"},{default:Pe(()=>[...d[3]||(d[3]=[st(" Error! ",-1)])]),_:1}),oe(_,{n:"red6 dark:red5"},{default:Pe(()=>[st(Pt(X(s)),1)]),_:1})])):p.template?(Q(),me("div",gE,[oe(b,{"view-mode":X(n),"onUpdate:viewMode":d[0]||(d[0]=w=>we(n)?n.value=w:null),"content-mode":X(r),"onUpdate:contentMode":d[1]||(d[1]=w=>we(r)?r.value=w:null),"rendered-html":X(c),"rendered-subject":X(f),"source-code":X(u),onRefresh:X(l)},null,8,["view-mode","content-mode","rendered-html","rendered-subject","source-code","onRefresh"]),he("div",_E,[X(r)==="preview"?(Q(),me("div",yE,[oe(E,{"rendered-html":X(c),"view-mode":X(n)},null,8,["rendered-html","view-mode"])])):X(r)==="html"?(Q(),me("div",vE,[oe(m,{"source-code":X(c),"content-mode":X(r)},null,8,["source-code","content-mode"])])):X(r)==="source"?(Q(),me("div",bE,[oe(m,{"source-code":X(u),"content-mode":X(r)},null,8,["source-code","content-mode"])])):Ze("",!0)])])):(Q(),me("div",hE,[he("div",mE,[oe(v,{icon:"carbon:email",class:"w-12 h-12 text-gray-400 mx-auto mb-4"}),d[4]||(d[4]=he("p",{class:"text-gray-500 dark:text-gray-400"}," Select an email template to preview ",-1))])]))])}}}),EE=Object.assign(wE,{__name:"EmailTemplateViewer"}),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=vp(),i=_e([]),s=de(()=>i.value.reduce((L,N)=>(L[~~N.id]=N)&&L,{})),a=de(()=>i.value.length),l=_e(null),u=_e(!1),c=_e({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),f=_e({splitter:null,timeoutId:null}),p=de(()=>({[`splitpanes splitpanes--${r.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":c.value.dragging})),d=()=>{document.addEventListener("mousemove",v,{passive:!1}),document.addEventListener("mouseup",b),"ontouchstart"in window&&(document.addEventListener("touchmove",v,{passive:!1}),document.addEventListener("touchend",b))},h=()=>{document.removeEventListener("mousemove",v,{passive:!1}),document.removeEventListener("mouseup",b),"ontouchstart"in window&&(document.removeEventListener("touchmove",v,{passive:!1}),document.removeEventListener("touchend",b))},_=(L,N)=>{const F=L.target.closest(".splitpanes__splitter");if(F){const{left:j,top:U}=F.getBoundingClientRect(),{clientX:te,clientY:y}="ontouchstart"in window&&L.touches?L.touches[0]:L;c.value.cursorOffset=r.horizontal?y-U:te-j}d(),c.value.mouseDown=!0,c.value.activeSplitter=N},v=L=>{c.value.mouseDown&&(L.preventDefault(),c.value.dragging=!0,requestAnimationFrame(()=>{$(T(L)),Ce("resize",{event:L},!0)}))},b=L=>{c.value.dragging&&(window.getSelection().removeAllRanges(),Ce("resized",{event:L},!0)),c.value.mouseDown=!1,c.value.activeSplitter=null,setTimeout(()=>{c.value.dragging=!1,h()},100)},E=(L,N)=>{"ontouchstart"in window&&(L.preventDefault(),f.value.splitter===N?(clearTimeout(f.value.timeoutId),f.value.timeoutId=null,m(L,N),f.value.splitter=null):(f.value.splitter=N,f.value.timeoutId=setTimeout(()=>f.value.splitter=null,500))),c.value.dragging||Ce("splitter-click",{event:L,index:N},!0)},m=(L,N)=>{if(Ce("splitter-dblclick",{event:L,index:N},!0),r.maximizePanes){let F=0;i.value=i.value.map((j,U)=>(j.size=U===N?j.max:j.min,U!==N&&(F+=j.min),j)),i.value[N].size-=F,Ce("pane-maximize",{event:L,index:N,pane:i.value[N]}),Ce("resized",{event:L,index:N},!0)}},w=(L,N)=>{Ce("pane-click",{event:L,index:s.value[N].index,pane:s.value[N]})},T=L=>{const N=l.value.getBoundingClientRect(),{clientX:F,clientY:j}="ontouchstart"in window&&L.touches?L.touches[0]:L;return{x:F-(r.horizontal?0:c.value.cursorOffset)-N.left,y:j-(r.horizontal?c.value.cursorOffset:0)-N.top}},k=L=>{L=L[r.horizontal?"y":"x"];const N=l.value[r.horizontal?"clientHeight":"clientWidth"];return r.rtl&&!r.horizontal&&(L=N-L),L*100/N},$=L=>{const N=c.value.activeSplitter;let F={prevPanesSize:W(N),nextPanesSize:z(N),prevReachedMinPanes:0,nextReachedMinPanes:0};const j=0+(r.pushOtherPanes?0:F.prevPanesSize),U=100-(r.pushOtherPanes?0:F.nextPanesSize),te=Math.max(Math.min(k(L),U),j);let y=[N,N+1],S=i.value[y[0]]||null,P=i.value[y[1]]||null;const D=S.max<100&&te>=S.max+F.prevPanesSize,x=P.max<100&&te<=100-(P.max+z(N+1));if(D||x){D?(S.size=S.max,P.size=Math.max(100-S.max-F.prevPanesSize-F.nextPanesSize,0)):(S.size=Math.max(100-P.max-F.prevPanesSize-z(N+1),0),P.size=P.max);return}if(r.pushOtherPanes){const O=K(F,te);if(!O)return;({sums:F,panesToResize:y}=O),S=i.value[y[0]]||null,P=i.value[y[1]]||null}S!==null&&(S.size=Math.min(Math.max(te-F.prevPanesSize-F.prevReachedMinPanes,S.min),S.max)),P!==null&&(P.size=Math.min(Math.max(100-te-F.nextPanesSize-F.nextReachedMinPanes,P.min),P.max))},K=(L,N)=>{const F=c.value.activeSplitter,j=[F,F+1];return N<L.prevPanesSize+i.value[j[0]].min&&(j[0]=le(F).index,L.prevReachedMinPanes=0,j[0]<F&&i.value.forEach((U,te)=>{te>j[0]&&te<=F&&(U.size=U.min,L.prevReachedMinPanes+=U.min)}),L.prevPanesSize=W(j[0]),j[0]===void 0)?(L.prevReachedMinPanes=0,i.value[0].size=i.value[0].min,i.value.forEach((U,te)=>{te>0&&te<=F&&(U.size=U.min,L.prevReachedMinPanes+=U.min)}),i.value[j[1]].size=100-L.prevReachedMinPanes-i.value[0].min-L.prevPanesSize-L.nextPanesSize,null):N>100-L.nextPanesSize-i.value[j[1]].min&&(j[1]=ie(F).index,L.nextReachedMinPanes=0,j[1]>F+1&&i.value.forEach((U,te)=>{te>F&&te<j[1]&&(U.size=U.min,L.nextReachedMinPanes+=U.min)}),L.nextPanesSize=z(j[1]-1),j[1]===void 0)?(L.nextReachedMinPanes=0,i.value.forEach((U,te)=>{te<a.value-1&&te>=F+1&&(U.size=U.min,L.nextReachedMinPanes+=U.min)}),i.value[j[0]].size=100-L.prevPanesSize-z(j[0]-1),null):{sums:L,panesToResize:j}},W=L=>i.value.reduce((N,F,j)=>N+(j<L?F.size:0),0),z=L=>i.value.reduce((N,F,j)=>N+(j>L+1?F.size:0),0),le=L=>[...i.value].reverse().find(N=>N.index<L&&N.size>N.min)||{},ie=L=>i.value.find(N=>N.index>L+1&&N.size>N.min)||{},Y=()=>{var L;const N=Array.from(((L=l.value)==null?void 0:L.children)||[]);for(const F of N){const j=F.classList.contains("splitpanes__pane"),U=F.classList.contains("splitpanes__splitter");!j&&!U&&(F.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},R=(L,N,F=!1)=>{const j=L-1,U=document.createElement("div");U.classList.add("splitpanes__splitter"),F||(U.onmousedown=te=>_(te,j),typeof window<"u"&&"ontouchstart"in window&&(U.ontouchstart=te=>_(te,j)),U.onclick=te=>E(te,j+1)),U.ondblclick=te=>m(te,j+1),N.parentNode.insertBefore(U,N)},A=L=>{L.onmousedown=void 0,L.onclick=void 0,L.ondblclick=void 0,L.remove()},C=()=>{var L;const N=Array.from(((L=l.value)==null?void 0:L.children)||[]);for(const j of N)j.className.includes("splitpanes__splitter")&&A(j);let F=0;for(const j of N)j.className.includes("splitpanes__pane")&&(!F&&r.firstSplitter?R(F,j,!0):F&&R(F,j),F++)},G=({uid:L,...N})=>{const F=s.value[L];for(const[j,U]of Object.entries(N))F[j]=U},I=L=>{var N;let F=-1;Array.from(((N=l.value)==null?void 0:N.children)||[]).some(j=>(j.className.includes("splitpanes__pane")&&F++,j.isSameNode(L.el))),i.value.splice(F,0,{...L,index:F}),i.value.forEach((j,U)=>j.index=U),u.value&&Rt(()=>{C(),se({addedPane:i.value[F]}),Ce("pane-add",{pane:i.value[F]})})},ee=L=>{const N=i.value.findIndex(j=>j.id===L);i.value[N].el=null;const F=i.value.splice(N,1)[0];i.value.forEach((j,U)=>j.index=U),Rt(()=>{C(),Ce("pane-remove",{pane:F}),se({removedPane:{...F}})})},se=(L={})=>{!L.addedPane&&!L.removedPane?ue():i.value.some(N=>N.givenSize!==null||N.min||N.max<100)?Ne(L):pe(),u.value&&Ce("resized")},pe=()=>{const L=100/a.value;let N=0;const F=[],j=[];for(const U of i.value)U.size=Math.max(Math.min(L,U.max),U.min),N-=U.size,U.size>=U.max&&F.push(U.id),U.size<=U.min&&j.push(U.id);N>.1&&qe(N,F,j)},ue=()=>{let L=100;const N=[],F=[];let j=0;for(const te of i.value)L-=te.size,te.givenSize!==null&&j++,te.size>=te.max&&N.push(te.id),te.size<=te.min&&F.push(te.id);let U=100;if(L>.1){for(const te of i.value)te.givenSize===null&&(te.size=Math.max(Math.min(L/(a.value-j),te.max),te.min)),U-=te.size;U>.1&&qe(U,N,F)}},Ne=({addedPane:L,removedPane:N}={})=>{let F=100/a.value,j=0;const U=[],te=[];(L?.givenSize??null)!==null&&(F=(100-L.givenSize)/(a.value-1));for(const y of i.value)j-=y.size,y.size>=y.max&&U.push(y.id),y.size<=y.min&&te.push(y.id);if(!(Math.abs(j)<.1)){for(const y of i.value)L?.givenSize!==null&&L?.id===y.id||(y.size=Math.max(Math.min(F,y.max),y.min)),j-=y.size,y.size>=y.max&&U.push(y.id),y.size<=y.min&&te.push(y.id);j>.1&&qe(j,U,te)}},qe=(L,N,F)=>{let j;L>0?j=L/(a.value-N.length):j=L/(a.value-F.length),i.value.forEach((U,te)=>{if(L>0&&!N.includes(U.id)){const y=Math.max(Math.min(U.size+j,U.max),U.min),S=y-U.size;L-=S,U.size=y}else if(!F.includes(U.id)){const y=Math.max(Math.min(U.size+j,U.max),U.min),S=y-U.size;L-=S,U.size=y}}),Math.abs(L)>.1&&Rt(()=>{u.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},Ce=(L,N=void 0,F=!1)=>{const j=N?.index??c.value.activeSplitter??null;n(L,{...N,...j!==null&&{index:j},...F&&j!==null&&{prevPane:i.value[j-(r.firstSplitter?1:0)],nextPane:i.value[j+(r.firstSplitter?0:1)]},panes:i.value.map(U=>({min:U.min,max:U.max,size:U.size}))})};Ge(()=>r.firstSplitter,()=>C()),tr(()=>{Y(),C(),se(),Ce("ready"),u.value=!0}),Ir(()=>u.value=!1);const nt=()=>{var L;return bn("div",{ref:l,class:p.value},(L=o.default)==null?void 0:L.call(o))};return jt("panes",i),jt("indexedPanes",s),jt("horizontal",de(()=>r.horizontal)),jt("requestUpdate",G),jt("onPaneAdd",I),jt("onPaneRemove",ee),jt("onPaneClick",w),(L,N)=>(Q(),xe(zc(nt)))}},ec={__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=ht("requestUpdate"),o=ht("onPaneAdd"),i=ht("horizontal"),s=ht("onPaneRemove"),a=ht("onPaneClick"),l=(t=Ct())==null?void 0:t.uid,u=ht("indexedPanes"),c=de(()=>u.value[l]),f=_e(null),p=de(()=>{const v=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min(v,h.value),d.value)}),d=de(()=>{const v=parseFloat(n.minSize);return isNaN(v)?0:v}),h=de(()=>{const v=parseFloat(n.maxSize);return isNaN(v)?100:v}),_=de(()=>{var v;return`${i.value?"height":"width"}: ${(v=c.value)==null?void 0:v.size}%`});return Ge(()=>p.value,v=>r({uid:l,size:v})),Ge(()=>d.value,v=>r({uid:l,min:v})),Ge(()=>h.value,v=>r({uid:l,max:v})),tr(()=>{o({id:l,el:f.value,min:d.value,max:h.value,givenSize:n.size===void 0?null:p.value,size:p.value})}),Ir(()=>s(l)),(v,b)=>(Q(),me("div",{ref_key:"paneEl",ref:f,class:"splitpanes__pane",onClick:b[0]||(b[0]=E=>X(a)(E,v._.uid)),style:_n(_.value)},[tt(v.$slots,"default")],4))}},tc=30,TE={__name:"NSplitPane",props:{storageKey:{type:String,required:!1},stateKey:{type:String,required:!1,default:"nuxt-devtools-panels-state"},leftSize:{type:Number,required:!1},minSize:{type:Number,required:!1},horizontal:{type:Boolean,required:!1}},setup(e){const t=e,n=dy(t.stateKey,{},{listenToStorageChanges:!1}),r=t.storageKey,o=r?de({get:()=>n.value[r]||t.leftSize||tc,set:i=>{n.value[r]=i}}):_e(t.leftSize||tc);return(i,s)=>(Q(),xe(X(SE),{horizontal:e.horizontal,"h-full":"","of-hidden":"",onResize:s[0]||(s[0]=a=>o.value=a[0].size)},{default:Pe(()=>[oe(X(ec),{"h-full":"",class:"of-auto!",size:X(o),"min-size":i.$slots.right?e.minSize||10:100},{default:Pe(()=>[tt(i.$slots,"left")]),_:3},8,["size","min-size"]),i.$slots.right?(Q(),xe(X(ec),{key:0,relative:"","h-full":"",class:"of-auto!","min-size":e.minSize||10},{default:Pe(()=>[tt(i.$slots,"right")]),_:3},8,["min-size"])):Ze("",!0)]),_:3},8,["horizontal"]))}};function RE(e,t,n){const[r={},o]=typeof t=="string"?[{},t]:[t,n],i=de(()=>Le(e)),s=de(()=>Le(r.key)||"$f"+kn([o,typeof i.value=="string"?i.value:"",...AE(r)]));if(!r.baseURL&&typeof i.value=="string"&&i.value[0]==="/"&&i.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:a,lazy:l,default:u,transform:c,pick:f,watch:p,immediate:d,getCachedData:h,deep:_,dedupe:v,...b}=r,E=Nt({...qm,...b,cache:typeof r.cache=="boolean"?void 0:r.cache}),m={server:a,lazy:l,default:u,transform:c,pick:f,immediate:d,getCachedData:h,deep:_,dedupe:v,watch:p===!1?[]:[...p||[],E]};let w;return sd(p===!1?s.value:s,()=>{w?.abort?.(new DOMException("Request aborted as another request to the same endpoint was initiated.","AbortError")),w=typeof AbortController<"u"?new AbortController:{};const k=Le(r.timeout);let $;return k&&($=setTimeout(()=>w.abort(new DOMException("Request aborted due to timeout.","AbortError")),k),w.signal.onabort=()=>clearTimeout($)),(r.$fetch||globalThis.$fetch)(i.value,{signal:w.signal,...E}).finally(()=>{clearTimeout($)})},m)}function AE(e){const t=[Le(e.method)?.toUpperCase()||"GET",Le(e.baseURL)];for(const n of[e.params||e.query]){const r=Le(n);if(!r)continue;const o={};for(const[i,s]of Object.entries(r))o[Le(i)]=Le(s);t.push(o)}if(e.body){const n=Le(e.body);if(!n)t.push(kn(n));else if(n instanceof ArrayBuffer)t.push(kn(Object.fromEntries([...new Uint8Array(n).entries()].map(([r,o])=>[r,o.toString()]))));else if(n instanceof FormData){const r={};for(const o of n.entries()){const[i,s]=o;r[i]=s instanceof File?s.name:s}t.push(kn(r))}else if(sE(n))t.push(kn(Nt(n)));else try{t.push(kn(n))}catch{console.warn("[useFetch] Failed to hash body",n)}}return t}const PE={fixed:"","inset-0":"","h-screen":"","w-screen":"","font-sans":""},CE={class:"mb-8 flex justify-between"},LE={class:"flex items-center gap-2"},kE={key:0,class:"flex mt-8"},xE={key:1,class:"flex flex-col"},OE={key:3,class:"flex flex-col h-full"},IE={class:"mt-8"},DE=gt({__name:"app",async setup(e){let t,n;const r=id(),{data:o,pending:i,error:s}=([t,n]=wp(()=>RE(`${r.origin}/api/emails`,{default:()=>[]},"$3oRWNoOsuN")),t=await t,n(),t),a=_e(null);function l(u){a.value=u}return Ge(o,u=>{u.length>0&&!a.value&&(a.value=u[0])},{immediate:!0}),(u,c)=>{const f=b_,p=E_,d=oa,h=of,_=sf,v=Tn,b=ci,E=by,m=EE,w=TE;return Q(),me("div",PE,[oe(f),oe(p),oe(w,{"storage-key":"devtools:nuxt-email-renderer",class:"!h-screen p-4","min-size":30,horizontal:!1},{left:Pe(()=>[he("div",CE,[c[0]||(c[0]=he("h1",{class:"text-xl font-bold text-gray-900 dark:text-white mb-2"}," Nuxt Email Renderer ",-1)),he("div",LE,[oe(d,{icon:"carbon:logo-github",to:"https://github.com/Mokkapps/nuxt-email-renderer",target:"_blank"}),oe(d,{icon:"carbon:earth",to:"https://nuxtemail.com",target:"_blank"})])]),X(i)?(Q(),me("div",kE,[oe(h,null,{default:Pe(()=>[...c[1]||(c[1]=[st("Loading email templates...",-1)])]),_:1})])):X(s)?(Q(),me("div",xE,[oe(_,{n:"red6 dark:red5",icon:"carbon:warning-alt"},{default:Pe(()=>[...c[2]||(c[2]=[st(" Error! ",-1)])]),_:1}),oe(_,{n:"red6 dark:red5"},{default:Pe(()=>[st(Pt(X(s)),1)]),_:1})])):Ze("",!0),X(o).length===0?(Q(),xe(b,{key:2,class:"text-center py-12"},{default:Pe(()=>[oe(v,{icon:"carbon:email",class:"w-16 h-16 text-gray-300 dark:text-gray-600 mx-auto mb-4"}),c[3]||(c[3]=he("h3",{class:"text-lg font-medium text-gray-900 dark:text-white mb-2"}," No email templates found ",-1)),c[4]||(c[4]=he("p",{class:"text-gray-500 dark:text-gray-400 mb-6 max-w-sm mx-auto"}," Create your first email template by adding a .vue file to the emails directory. ",-1))]),_:1})):(Q(),me("div",OE,[oe(E,{"email-templates":X(o),"selected-template":X(a),onSelect:l},null,8,["email-templates","selected-template"]),he("div",IE,[oe(m,{template:X(a)},null,8,["template"])])]))]),_:1})])}}}),NE={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(`
|
|
52
52
|
`).splice(1).map(f=>({text:f.replace("webpack:/","").replace(".vue",".js").trim(),internal:f.includes("node_modules")&&!f.includes(".cache")||f.includes("internal")||f.includes("new Promise")})).map(f=>`<span class="stack${f.internal?" internal":""}">${f.text}</span>`).join(`
|
|
53
53
|
`);const r=Number(n.statusCode||500),o=r===404,i=n.statusMessage??(o?"Page Not Found":"Internal Server Error"),s=n.message||n.toString(),a=void 0,c=o?Oa(()=>g(()=>import("./2tRuyRz6.js"),__vite__mapDeps([98,99,100]),import.meta.url)):Oa(()=>g(()=>import("./DDWDunuf.js"),__vite__mapDeps([101,99,102]),import.meta.url));return(f,p)=>(Q(),xe(X(c),yd(_u({statusCode:X(r),statusMessage:X(i),description:X(s),stack:X(a)})),null,16))}},ME={key:0},nc={__name:"nuxt-root",setup(e){const t=()=>null,n=Oe(),r=n.deferHydration();if(n.isHydrating){const u=n.hooks.hookOnce("app:error",r);Vt().beforeEach(u)}const o=!1;jt(Wu,qu()),n.hooks.callHookWith(u=>u.map(c=>c()),"vue:setup");const i=ta(),s=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;Fc((u,c,f)=>{if(n.hooks.callHook("vue:error",u,c,f).catch(p=>console.error("[nuxt] Error in `vue:error` hook",p)),a.test(navigator.userAgent))return n.hooks.callHook("app:error",u),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,u),!1;if(pg(u)&&(u.fatal||u.unhandled))return n.runWithContext(()=>fg(u)),!1});const l=!1;return(u,c)=>(Q(),xe(Jp,{onResolve:X(r)},{default:Pe(()=>[X(s)?(Q(),me("div",ME)):X(i)?(Q(),xe(X(NE),{key:1,error:X(i)},null,8,["error"])):X(l)?(Q(),xe(X(t),{key:2,context:X(l)},null,8,["context"])):X(o)?(Q(),xe(zc(X(o)),{key:3})):(Q(),xe(X(DE),{key:4}))]),_:1},8,["onResolve"]))}};let rc;{let e;rc=async function(){if(e)return e;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),r=n?Vh(nc):Mh(nc),o=Ym({vueApp:r});async function i(s){await o.callHook("app:error",s),o.payload.error||=si(s)}r.config.errorHandler=i,o.hook("app:suspense:resolve",()=>{r.config.errorHandler===i&&(r.config.errorHandler=void 0)}),!n&&cl.id&&o.hook("app:suspense:resolve",()=>{document.getElementById(cl.id)?.remove()});try{await eg(o,g_)}catch(s){i(s)}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(Km),await o.hooks.callHook("app:mounted",r),await Rt()}catch(s){i(s)}return r},e=rc().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{ia as _,he as a,oe as b,me as c,st as d,R_ as e,Oe as f,Qu as g,Gs as h,ht as i,Q as o,Pt as t,VE as u,Pe as w};
|