@openapi-studio/core 0.1.0 → 0.3.0

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.
@@ -1,9 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Main-D-Gy0vw8.js","assets/Main-CMK9wQCJ.css","assets/NotFound-Cat7CdKJ.js","assets/NotFound-DMon75y1.css"])))=>i.map(i=>d[i]);
2
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();function Kn(e,t={},r){for(const n in e){const s=e[n],o=r?`${r}:${n}`:n;typeof s=="object"&&s!==null?Kn(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const lc={run:e=>e()},cc=()=>lc,ti=typeof console.createTask<"u"?console.createTask:cc;function ac(e,t){const r=t.shift(),n=ti(r);return e.reduce((s,o)=>s.then(()=>n.run(()=>o(...t))),Promise.resolve())}function uc(e,t){const r=t.shift(),n=ti(r);return Promise.all(e.map(s=>n.run(()=>s(...t))))}function En(e,t){for(const r of[...e])r(t)}class fc{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,r,n={}){if(!t||typeof r!="function")return()=>{};const s=t;let o;for(;this._deprecatedHooks[t];)o=this._deprecatedHooks[t],t=o.to;if(o&&!n.allowDeprecated){let i=o.message;i||(i=`${s} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!r.name)try{Object.defineProperty(r,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(r),()=>{r&&(this.removeHook(t,r),r=void 0)}}hookOnce(t,r){let n,s=(...o)=>(typeof n=="function"&&n(),n=void 0,s=void 0,r(...o));return n=this.hook(t,s),n}removeHook(t,r){if(this._hooks[t]){const n=this._hooks[t].indexOf(r);n!==-1&&this._hooks[t].splice(n,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,r){this._deprecatedHooks[t]=typeof r=="string"?{to:r}:r;const n=this._hooks[t]||[];delete this._hooks[t];for(const s of n)this.hook(t,s)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const r in t)this.deprecateHook(r,t[r])}addHooks(t){const r=Kn(t),n=Object.keys(r).map(s=>this.hook(s,r[s]));return()=>{for(const s of n.splice(0,n.length))s()}}removeHooks(t){const r=Kn(t);for(const n in r)this.removeHook(n,r[n])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...r){return r.unshift(t),this.callHookWith(ac,t,...r)}callHookParallel(t,...r){return r.unshift(t),this.callHookWith(uc,t,...r)}callHookWith(t,r,...n){const s=this._before||this._after?{name:r,args:n,context:{}}:void 0;this._before&&En(this._before,s);const o=t(r in this._hooks?[...this._hooks[r]]:[],n);return o instanceof Promise?o.finally(()=>{this._after&&s&&En(this._after,s)}):(this._after&&s&&En(this._after,s),o)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const r=this._before.indexOf(t);r!==-1&&this._before.splice(r,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const r=this._after.indexOf(t);r!==-1&&this._after.splice(r,1)}}}}function dc(){return new fc}const pc=new Set(["link","style","script","noscript"]),hc=new Set(["title","titleTemplate","script","style","noscript"]),Vs=new Set(["base","meta","link","style","script","noscript"]),gc=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),mc=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),yc=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),_c=new Set(["templateParams","htmlAttrs","bodyAttrs"]),vc=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),bc=["name","property","http-equiv"],Sc=new Set(["viewport","description","keywords","robots"]);function ri(e){const t=e.split(":");return t.length?vc.has(t[1]):!1}function Vn(e){const{props:t,tag:r}=e;if(mc.has(r))return r;if(r==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const n of bc)if(t[n]!==void 0){const s=t[n],o=s&&typeof s=="string"&&s.includes(":"),i=s&&Sc.has(s),c=!(o||i)&&e.key?`:key:${e.key}`:"";return`${r}:${s}${c}`}}if(e.key)return`${r}:key:${e.key}`;if(t.id)return`${r}:id:${t.id}`;if(hc.has(r)){const n=e.textContent||e.innerHTML;if(n)return`${r}:content:${n}`}}function Ws(e){const t=e._h||e._d;if(t)return t;const r=e.textContent||e.innerHTML;return r||`${e.tag}:${Object.entries(e.props).map(([n,s])=>`${n}:${String(s)}`).join(",")}`}function Wn(e,t,r){typeof e==="function"&&(!r||r!=="titleTemplate"&&!(r[0]==="o"&&r[1]==="n"))&&(e=e());const s=t?t(r,e):e;if(Array.isArray(s))return s.map(o=>Wn(o,t));if(s?.constructor===Object){const o={};for(const i of Object.keys(s))o[i]=Wn(s[i],t,i);return o}return s}function Pc(e,t){const r=e==="style"?new Map:new Set;function n(s){if(s==null||s===void 0)return;const o=String(s).trim();if(o)if(e==="style"){const[i,...l]=o.split(":").map(c=>c?c.trim():"");i&&l.length&&r.set(i,l.join(":"))}else o.split(" ").filter(Boolean).forEach(i=>r.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(n):n(t):Array.isArray(t)?t.forEach(s=>n(s)):t&&typeof t=="object"&&Object.entries(t).forEach(([s,o])=>{o&&o!=="false"&&(e==="style"?r.set(String(s).trim(),String(o)):n(s))}),r}function ni(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([r,n])=>{if(n===null){e.props[r]=null;return}if(r==="class"||r==="style"){e.props[r]=Pc(r,n);return}if(yc.has(r)){if(["textContent","innerHTML"].includes(r)&&typeof n=="object"){let l=t.type;if(t.type||(l="application/json"),!l?.endsWith("json")&&l!=="speculationrules")return;t.type=l,e.props.type=l,e[r]=JSON.stringify(n)}else e[r]=n;return}const s=String(n),o=r.startsWith("data-"),i=e.tag==="meta"&&r==="content";s==="true"||s===""?e.props[r]=o||i?s:!0:!n&&o&&s==="false"?e.props[r]="false":n!==void 0&&(e.props[r]=n)}),e):e}function Ec(e,t){const r=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},n=ni({tag:e,props:{}},r);return n.key&&pc.has(n.tag)&&(n.props["data-hid"]=n._h=n.key),n.tag==="script"&&typeof n.innerHTML=="object"&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||"application/json"),Array.isArray(n.props.content)?n.props.content.map(s=>({...n,props:{...n.props,content:s}})):n}function wc(e,t){if(!e)return[];typeof e=="function"&&(e=e());const r=(s,o)=>{for(let i=0;i<t.length;i++)o=t[i](s,o);return o};e=r(void 0,e);const n=[];return e=Wn(e,r),Object.entries(e||{}).forEach(([s,o])=>{if(o!==void 0)for(const i of Array.isArray(o)?o:[o])n.push(Ec(s,i))}),n.flat()}const qs=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,zs={base:-10,title:10},Cc={critical:-8,high:-1,low:2},$s={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}},Rc=/@import/,er=e=>e===""||e===!0;function Ac(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let r=100;const n=Cc[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:$s;if(t.tag in zs)r=zs[t.tag];else if(t.tag==="meta"){const o=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;o&&(r=$s.meta[o])}else if(t.tag==="link"&&t.props.rel)r=s.link[t.props.rel];else if(t.tag==="script"){const o=String(t.props.type);er(t.props.async)?r=s.script.async:t.props.src&&!er(t.props.defer)&&!er(t.props.async)&&o!=="module"&&!o.endsWith("json")||t.innerHTML&&!o.endsWith("json")?r=s.script.sync:(er(t.props.defer)&&t.props.src&&!er(t.props.async)||o==="module")&&(r=s.script.defer)}else t.tag==="style"&&(r=t.innerHTML&&Rc.test(t.innerHTML)?s.style.imported:s.style.sync);return(r||100)+n}function Gs(e,t){const r=typeof t=="function"?t(e):t,n=r.key||String(e.plugins.size+1);e.plugins.get(n)||(e.plugins.set(n,r),e.hooks.addHooks(r.hooks||{}))}function xc(e={}){const t=dc();t.addHooks(e.hooks||{});const r=!e.document,n=new Map,s=new Map,o=new Set,i={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:e,hooks:t,ssr:r,entries:n,headEntries(){return[...n.values()]},use:l=>Gs(i,l),push(l,c){const u={...c||{}};delete u.head;const a=u._index??i._entryCount++,f={_i:a,input:l,options:u},h={_poll(d=!1){i.dirty=!0,!d&&o.add(a),t.callHook("entries:updated",i)},dispose(){n.delete(a)&&i.invalidate()},patch(d){(!u.mode||u.mode==="server"&&r||u.mode==="client"&&!r)&&(f.input=d,n.set(a,f),h._poll())}};return h.patch(l),h},async resolveTags(){const l={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",l);o.size;){const h=o.values().next().value;o.delete(h);const d=n.get(h);if(d){const y={tags:wc(d.input,e.propResolvers||[]).map(_=>Object.assign(_,d.options)),entry:d};await t.callHook("entries:normalize",y),d._tags=y.tags.map((_,E)=>(_._w=Ac(i,_),_._p=(d._i<<10)+E,_._d=Vn(_),_))}}let c=!1;l.entries.flatMap(h=>(h._tags||[]).map(d=>({...d,props:{...d.props}}))).sort(qs).reduce((h,d)=>{const y=String(d._d||d._p);if(!h.has(y))return h.set(y,d);const _=h.get(y);if((d?.tagDuplicateStrategy||(_c.has(d.tag)?"merge":null)||(d.key&&d.key===_.key?"merge":null))==="merge"){const w={..._.props};Object.entries(d.props).forEach(([R,k])=>w[R]=R==="style"?new Map([..._.props.style||new Map,...k]):R==="class"?new Set([..._.props.class||new Set,...k]):k),h.set(y,{...d,props:w})}else d._p>>10===_._p>>10&&d.tag==="meta"&&ri(y)?(h.set(y,Object.assign([...Array.isArray(_)?_:[_],d],d)),c=!0):(d._w===_._w?d._p>_._p:d?._w<_?._w)&&h.set(y,d);return h},l.tagMap);const u=l.tagMap.get("title"),a=l.tagMap.get("titleTemplate");if(i._title=u?.textContent,a){const h=a?.textContent;if(i._titleTemplate=h,h){let d=typeof h=="function"?h(u?.textContent):h;typeof d=="string"&&!i.plugins.has("template-params")&&(d=d.replace("%s",u?.textContent||"")),u?d===null?l.tagMap.delete("title"):l.tagMap.set("title",{...u,textContent:d}):(a.tag="title",a.textContent=d)}}l.tags=Array.from(l.tagMap.values()),c&&(l.tags=l.tags.flat().sort(qs)),await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l);const f=[];for(const h of l.tags){const{innerHTML:d,tag:y,props:_}=h;if(gc.has(y)&&!(Object.keys(_).length===0&&!h.innerHTML&&!h.textContent)&&!(y==="meta"&&!_.content&&!_["http-equiv"]&&!_.charset)){if(y==="script"&&d){if(String(_.type).endsWith("json")){const E=typeof d=="string"?d:JSON.stringify(d);h.innerHTML=E.replace(/</g,"\\u003C")}else typeof d=="string"&&(h.innerHTML=d.replace(new RegExp(`</${y}`,"g"),`<\\/${y}`));h._d=Vn(h)}f.push(h)}}return f},invalidate(){for(const l of n.values())o.add(l._i);i.dirty=!0,t.callHook("entries:updated",i)}};return(e?.plugins||[]).forEach(l=>Gs(i,l)),i.hooks.callHook("init",i),e.init?.forEach(l=>l&&i.push(l)),i}async function si(e,t={}){const r=t.document||e.resolvedOptions.document;if(!r||!e.dirty)return;const n={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",n),!!n.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async s=>{const o=new Map,i=new Promise(d=>{e.resolveTags().then(y=>{d(y.map(_=>{const E=o.get(_._d)||0,w={tag:_,id:(E?`${_._d}:${E}`:_._d)||Ws(_),shouldRender:!0};return _._d&&ri(_._d)&&o.set(_._d,E+1),w}))})});let l=e._dom;if(!l){l={title:r.title,elMap:new Map().set("htmlAttrs",r.documentElement).set("bodyAttrs",r.body)};for(const d of["body","head"]){const y=r[d]?.children;for(const _ of y){const E=_.tagName.toLowerCase();if(!Vs.has(E))continue;const w=ni({tag:E,props:{}},{innerHTML:_.innerHTML,..._.getAttributeNames().reduce((R,k)=>(R[k]=_.getAttribute(k),R),{})||{}});if(w.key=_.getAttribute("data-hid")||void 0,w._d=Vn(w)||Ws(w),l.elMap.has(w._d)){let R=1,k=w._d;for(;l.elMap.has(k);)k=`${w._d}:${R++}`;l.elMap.set(k,_)}else l.elMap.set(w._d,_)}}}l.pendingSideEffects={...l.sideEffects},l.sideEffects={};function c(d,y,_){const E=`${d}:${y}`;l.sideEffects[E]=_,delete l.pendingSideEffects[E]}function u({id:d,$el:y,tag:_}){const E=_.tag.endsWith("Attrs");l.elMap.set(d,y),E||(_.textContent&&_.textContent!==y.textContent&&(y.textContent=_.textContent),_.innerHTML&&_.innerHTML!==y.innerHTML&&(y.innerHTML=_.innerHTML),c(d,"el",()=>{y?.remove(),l.elMap.delete(d)}));for(const w in _.props){if(!Object.prototype.hasOwnProperty.call(_.props,w))continue;const R=_.props[w];if(w.startsWith("on")&&typeof R=="function"){const x=y?.dataset;if(x&&x[`${w}fired`]){const U=w.slice(0,-5);R.call(y,new Event(U.substring(2)))}y.getAttribute(`data-${w}`)!==""&&((_.tag==="bodyAttrs"?r.defaultView:y).addEventListener(w.substring(2),R.bind(y)),y.setAttribute(`data-${w}`,""));continue}const k=`attr:${w}`;if(w==="class"){if(!R)continue;for(const x of R)E&&c(d,`${k}:${x}`,()=>y.classList.remove(x)),!y.classList.contains(x)&&y.classList.add(x)}else if(w==="style"){if(!R)continue;for(const[x,U]of R)c(d,`${k}:${x}`,()=>{y.style.removeProperty(x)}),y.style.setProperty(x,U)}else R!==!1&&R!==null&&(y.getAttribute(w)!==R&&y.setAttribute(w,R===!0?"":String(R)),E&&c(d,k,()=>y.removeAttribute(w)))}}const a=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},h=await i;for(const d of h){const{tag:y,shouldRender:_,id:E}=d;if(_){if(y.tag==="title"){r.title=y.textContent,c("title","",()=>r.title=l.title);continue}d.$el=d.$el||l.elMap.get(E),d.$el?u(d):Vs.has(y.tag)&&a.push(d)}}for(const d of a){const y=d.tag.tagPosition||"head";d.$el=r.createElement(d.tag.tag),u(d),f[y]=f[y]||r.createDocumentFragment(),f[y].appendChild(d.$el)}for(const d of h)await e.hooks.callHook("dom:renderTag",d,r,c);f.head&&r.head.appendChild(f.head),f.bodyOpen&&r.body.insertBefore(f.bodyOpen,r.body.firstChild),f.bodyClose&&r.body.appendChild(f.bodyClose);for(const d in l.pendingSideEffects)l.pendingSideEffects[d]();e._dom=l,await e.hooks.callHook("dom:rendered",{renders:h}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function Oc(e={}){const t=e.domOptions?.render||si;e.document=e.document||(typeof window<"u"?document:void 0);const r=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return xc({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[r?JSON.parse(r):!1,...e.init||[]]})}function kc(e,t){let r=0;return()=>{const n=++r;t(()=>{r===n&&e()})}}function ds(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const re={},Wt=[],Je=()=>{},oi=()=>!1,en=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ps=e=>e.startsWith("onUpdate:"),be=Object.assign,hs=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Ic=Object.prototype.hasOwnProperty,X=(e,t)=>Ic.call(e,t),H=Array.isArray,qt=e=>tn(e)==="[object Map]",ii=e=>tn(e)==="[object Set]",V=e=>typeof e=="function",fe=e=>typeof e=="string",ut=e=>typeof e=="symbol",oe=e=>e!==null&&typeof e=="object",li=e=>(oe(e)||V(e))&&V(e.then)&&V(e.catch),ci=Object.prototype.toString,tn=e=>ci.call(e),Tc=e=>tn(e).slice(8,-1),ai=e=>tn(e)==="[object Object]",rn=e=>fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,lr=ds(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),nn=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},Mc=/-\w/g,Ne=nn(e=>e.replace(Mc,t=>t.slice(1).toUpperCase())),Lc=/\B([A-Z])/g,Lt=nn(e=>e.replace(Lc,"-$1").toLowerCase()),sn=nn(e=>e.charAt(0).toUpperCase()+e.slice(1)),wn=nn(e=>e?`on${sn(e)}`:""),St=(e,t)=>!Object.is(e,t),Hr=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},ui=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},gs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Js;const on=()=>Js||(Js=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ms(e){if(H(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],s=fe(n)?jc(n):ms(n);if(s)for(const o in s)t[o]=s[o]}return t}else if(fe(e)||oe(e))return e}const Uc=/;(?![^(]*\))/g,Nc=/:([^]+)/,Dc=/\/\*[^]*?\*\//g;function jc(e){const t={};return e.replace(Dc,"").split(Uc).forEach(r=>{if(r){const n=r.split(Nc);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ys(e){let t="";if(fe(e))t=e;else if(H(e))for(let r=0;r<e.length;r++){const n=ys(e[r]);n&&(t+=n+" ")}else if(oe(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const Fc="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Hc=ds(Fc);function fi(e){return!!e||e===""}const di=e=>!!(e&&e.__v_isRef===!0),Bc=e=>fe(e)?e:e==null?"":H(e)||oe(e)&&(e.toString===ci||!V(e.toString))?di(e)?Bc(e.value):JSON.stringify(e,pi,2):String(e),pi=(e,t)=>di(t)?pi(e,t.value):qt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,s],o)=>(r[Cn(n,o)+" =>"]=s,r),{})}:ii(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Cn(r))}:ut(t)?Cn(t):oe(t)&&!H(t)&&!ai(t)?String(t):t,Cn=(e,t="")=>{var r;return ut(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};let ye;class hi{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ye,!t&&ye&&(this.index=(ye.scopes||(ye.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=ye;try{return ye=this,t()}finally{ye=r}}}on(){++this._on===1&&(this.prevScope=ye,ye=this)}off(){this._on>0&&--this._on===0&&(ye=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function gi(e){return new hi(e)}function mi(){return ye}function Kc(e,t=!1){ye&&ye.cleanups.push(e)}let se;const Rn=new WeakSet;class yi{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ye&&ye.active&&ye.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Rn.has(this)&&(Rn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||vi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ys(this),bi(this);const t=se,r=De;se=this,De=!0;try{return this.fn()}finally{Si(this),se=t,De=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)bs(t);this.deps=this.depsTail=void 0,Ys(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Rn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){qn(this)&&this.run()}get dirty(){return qn(this)}}let _i=0,cr,ar;function vi(e,t=!1){if(e.flags|=8,t){e.next=ar,ar=e;return}e.next=cr,cr=e}function _s(){_i++}function vs(){if(--_i>0)return;if(ar){let t=ar;for(ar=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;cr;){let t=cr;for(cr=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function bi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Si(e){let t,r=e.depsTail,n=r;for(;n;){const s=n.prevDep;n.version===-1?(n===r&&(r=s),bs(n),Vc(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=s}e.deps=t,e.depsTail=r}function qn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Pi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Pi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===yr)||(e.globalVersion=yr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!qn(e))))return;e.flags|=2;const t=e.dep,r=se,n=De;se=e,De=!0;try{bi(e);const s=e.fn(e._value);(t.version===0||St(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{se=r,De=n,Si(e),e.flags&=-3}}function bs(e,t=!1){const{dep:r,prevSub:n,nextSub:s}=e;if(n&&(n.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let o=r.computed.deps;o;o=o.nextDep)bs(o,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function Vc(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let De=!0;const Ei=[];function ot(){Ei.push(De),De=!1}function it(){const e=Ei.pop();De=e===void 0?!0:e}function Ys(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=se;se=void 0;try{t()}finally{se=r}}}let yr=0;class Wc{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ss{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!se||!De||se===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==se)r=this.activeLink=new Wc(se,this),se.deps?(r.prevDep=se.depsTail,se.depsTail.nextDep=r,se.depsTail=r):se.deps=se.depsTail=r,wi(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=se.depsTail,r.nextDep=void 0,se.depsTail.nextDep=r,se.depsTail=r,se.deps===r&&(se.deps=n)}return r}trigger(t){this.version++,yr++,this.notify(t)}notify(t){_s();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{vs()}}}function wi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)wi(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Wr=new WeakMap,kt=Symbol(""),zn=Symbol(""),_r=Symbol("");function _e(e,t,r){if(De&&se){let n=Wr.get(e);n||Wr.set(e,n=new Map);let s=n.get(r);s||(n.set(r,s=new Ss),s.map=n,s.key=r),s.track()}}function rt(e,t,r,n,s,o){const i=Wr.get(e);if(!i){yr++;return}const l=c=>{c&&c.trigger()};if(_s(),t==="clear")i.forEach(l);else{const c=H(e),u=c&&rn(r);if(c&&r==="length"){const a=Number(n);i.forEach((f,h)=>{(h==="length"||h===_r||!ut(h)&&h>=a)&&l(f)})}else switch((r!==void 0||i.has(void 0))&&l(i.get(r)),u&&l(i.get(_r)),t){case"add":c?u&&l(i.get("length")):(l(i.get(kt)),qt(e)&&l(i.get(zn)));break;case"delete":c||(l(i.get(kt)),qt(e)&&l(i.get(zn)));break;case"set":qt(e)&&l(i.get(kt));break}}vs()}function qc(e,t){const r=Wr.get(e);return r&&r.get(t)}function jt(e){const t=G(e);return t===e?t:(_e(t,"iterate",_r),Te(e)?t:t.map(je))}function ln(e){return _e(e=G(e),"iterate",_r),e}function yt(e,t){return lt(e)?st(e)?Gt(je(t)):Gt(t):je(t)}const zc={__proto__:null,[Symbol.iterator](){return An(this,Symbol.iterator,e=>yt(this,e))},concat(...e){return jt(this).concat(...e.map(t=>H(t)?jt(t):t))},entries(){return An(this,"entries",e=>(e[1]=yt(this,e[1]),e))},every(e,t){return Ze(this,"every",e,t,void 0,arguments)},filter(e,t){return Ze(this,"filter",e,t,r=>r.map(n=>yt(this,n)),arguments)},find(e,t){return Ze(this,"find",e,t,r=>yt(this,r),arguments)},findIndex(e,t){return Ze(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ze(this,"findLast",e,t,r=>yt(this,r),arguments)},findLastIndex(e,t){return Ze(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ze(this,"forEach",e,t,void 0,arguments)},includes(...e){return xn(this,"includes",e)},indexOf(...e){return xn(this,"indexOf",e)},join(e){return jt(this).join(e)},lastIndexOf(...e){return xn(this,"lastIndexOf",e)},map(e,t){return Ze(this,"map",e,t,void 0,arguments)},pop(){return tr(this,"pop")},push(...e){return tr(this,"push",e)},reduce(e,...t){return Xs(this,"reduce",e,t)},reduceRight(e,...t){return Xs(this,"reduceRight",e,t)},shift(){return tr(this,"shift")},some(e,t){return Ze(this,"some",e,t,void 0,arguments)},splice(...e){return tr(this,"splice",e)},toReversed(){return jt(this).toReversed()},toSorted(e){return jt(this).toSorted(e)},toSpliced(...e){return jt(this).toSpliced(...e)},unshift(...e){return tr(this,"unshift",e)},values(){return An(this,"values",e=>yt(this,e))}};function An(e,t,r){const n=ln(e),s=n[t]();return n!==e&&!Te(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.done||(o.value=r(o.value)),o}),s}const $c=Array.prototype;function Ze(e,t,r,n,s,o){const i=ln(e),l=i!==e&&!Te(e),c=i[t];if(c!==$c[t]){const f=c.apply(e,o);return l?je(f):f}let u=r;i!==e&&(l?u=function(f,h){return r.call(this,yt(e,f),h,e)}:r.length>2&&(u=function(f,h){return r.call(this,f,h,e)}));const a=c.call(i,u,n);return l&&s?s(a):a}function Xs(e,t,r,n){const s=ln(e);let o=r;return s!==e&&(Te(e)?r.length>3&&(o=function(i,l,c){return r.call(this,i,l,c,e)}):o=function(i,l,c){return r.call(this,i,yt(e,l),c,e)}),s[t](o,...n)}function xn(e,t,r){const n=G(e);_e(n,"iterate",_r);const s=n[t](...r);return(s===-1||s===!1)&&cn(r[0])?(r[0]=G(r[0]),n[t](...r)):s}function tr(e,t,r=[]){ot(),_s();const n=G(e)[t].apply(e,r);return vs(),it(),n}const Gc=ds("__proto__,__v_isRef,__isVue"),Ci=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ut));function Jc(e){ut(e)||(e=String(e));const t=G(this);return _e(t,"has",e),t.hasOwnProperty(e)}class Ri{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return o;if(r==="__v_raw")return n===(s?o?oa:ki:o?Oi:xi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=H(t);if(!s){let c;if(i&&(c=zc[r]))return c;if(r==="hasOwnProperty")return Jc}const l=Reflect.get(t,r,ue(t)?t:n);if((ut(r)?Ci.has(r):Gc(r))||(s||_e(t,"get",r),o))return l;if(ue(l)){const c=i&&rn(r)?l:l.value;return s&&oe(c)?Gn(c):c}return oe(l)?s?Gn(l):Cr(l):l}}class Ai extends Ri{constructor(t=!1){super(!1,t)}set(t,r,n,s){let o=t[r];const i=H(t)&&rn(r);if(!this._isShallow){const u=lt(o);if(!Te(n)&&!lt(n)&&(o=G(o),n=G(n)),!i&&ue(o)&&!ue(n))return u||(o.value=n),!0}const l=i?Number(r)<t.length:X(t,r),c=Reflect.set(t,r,n,ue(t)?t:s);return t===G(s)&&(l?St(n,o)&&rt(t,"set",r,n):rt(t,"add",r,n)),c}deleteProperty(t,r){const n=X(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&n&&rt(t,"delete",r,void 0),s}has(t,r){const n=Reflect.has(t,r);return(!ut(r)||!Ci.has(r))&&_e(t,"has",r),n}ownKeys(t){return _e(t,"iterate",H(t)?"length":kt),Reflect.ownKeys(t)}}class Yc extends Ri{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const Xc=new Ai,Qc=new Yc,Zc=new Ai(!0);const $n=e=>e,Nr=e=>Reflect.getPrototypeOf(e);function ea(e,t,r){return function(...n){const s=this.__v_raw,o=G(s),i=qt(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,u=s[e](...n),a=r?$n:t?Gt:je;return!t&&_e(o,"iterate",c?zn:kt),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:l?[a(f[0]),a(f[1])]:a(f),done:h}},[Symbol.iterator](){return this}}}}function Dr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ta(e,t){const r={get(s){const o=this.__v_raw,i=G(o),l=G(s);e||(St(s,l)&&_e(i,"get",s),_e(i,"get",l));const{has:c}=Nr(i),u=t?$n:e?Gt:je;if(c.call(i,s))return u(o.get(s));if(c.call(i,l))return u(o.get(l));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&_e(G(s),"iterate",kt),s.size},has(s){const o=this.__v_raw,i=G(o),l=G(s);return e||(St(s,l)&&_e(i,"has",s),_e(i,"has",l)),s===l?o.has(s):o.has(s)||o.has(l)},forEach(s,o){const i=this,l=i.__v_raw,c=G(l),u=t?$n:e?Gt:je;return!e&&_e(c,"iterate",kt),l.forEach((a,f)=>s.call(o,u(a),u(f),i))}};return be(r,e?{add:Dr("add"),set:Dr("set"),delete:Dr("delete"),clear:Dr("clear")}:{add(s){!t&&!Te(s)&&!lt(s)&&(s=G(s));const o=G(this);return Nr(o).has.call(o,s)||(o.add(s),rt(o,"add",s,s)),this},set(s,o){!t&&!Te(o)&&!lt(o)&&(o=G(o));const i=G(this),{has:l,get:c}=Nr(i);let u=l.call(i,s);u||(s=G(s),u=l.call(i,s));const a=c.call(i,s);return i.set(s,o),u?St(o,a)&&rt(i,"set",s,o):rt(i,"add",s,o),this},delete(s){const o=G(this),{has:i,get:l}=Nr(o);let c=i.call(o,s);c||(s=G(s),c=i.call(o,s)),l&&l.call(o,s);const u=o.delete(s);return c&&rt(o,"delete",s,void 0),u},clear(){const s=G(this),o=s.size!==0,i=s.clear();return o&&rt(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{r[s]=ea(s,e,t)}),r}function Ps(e,t){const r=ta(e,t);return(n,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?n:Reflect.get(X(r,s)&&s in n?r:n,s,o)}const ra={get:Ps(!1,!1)},na={get:Ps(!1,!0)},sa={get:Ps(!0,!1)};const xi=new WeakMap,Oi=new WeakMap,ki=new WeakMap,oa=new WeakMap;function ia(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function la(e){return e.__v_skip||!Object.isExtensible(e)?0:ia(Tc(e))}function Cr(e){return lt(e)?e:Es(e,!1,Xc,ra,xi)}function Ii(e){return Es(e,!1,Zc,na,Oi)}function Gn(e){return Es(e,!0,Qc,sa,ki)}function Es(e,t,r,n,s){if(!oe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=la(e);if(o===0)return e;const i=s.get(e);if(i)return i;const l=new Proxy(e,o===2?n:r);return s.set(e,l),l}function st(e){return lt(e)?st(e.__v_raw):!!(e&&e.__v_isReactive)}function lt(e){return!!(e&&e.__v_isReadonly)}function Te(e){return!!(e&&e.__v_isShallow)}function cn(e){return e?!!e.__v_raw:!1}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function ws(e){return!X(e,"__v_skip")&&Object.isExtensible(e)&&ui(e,"__v_skip",!0),e}const je=e=>oe(e)?Cr(e):e,Gt=e=>oe(e)?Gn(e):e;function ue(e){return e?e.__v_isRef===!0:!1}function He(e){return Ti(e,!1)}function Jn(e){return Ti(e,!0)}function Ti(e,t){return ue(e)?e:new ca(e,t)}class ca{constructor(t,r){this.dep=new Ss,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:G(t),this._value=r?t:je(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Te(t)||lt(t);t=n?t:G(t),St(t,r)&&(this._rawValue=t,this._value=n?t:je(t),this.dep.trigger())}}function aa(e){e.dep&&e.dep.trigger()}function It(e){return ue(e)?e.value:e}const ua={get:(e,t,r)=>t==="__v_raw"?e:It(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const s=e[t];return ue(s)&&!ue(r)?(s.value=r,!0):Reflect.set(e,t,r,n)}};function Mi(e){return st(e)?e:new Proxy(e,ua)}function fa(e){const t=H(e)?new Array(e.length):{};for(const r in e)t[r]=pa(e,r);return t}class da{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=G(t);let s=!0,o=t;if(!H(t)||!rn(String(r)))do s=!cn(o)||Te(o);while(s&&(o=o.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=It(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ue(this._raw[this._key])){const r=this._object[this._key];if(ue(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return qc(this._raw,this._key)}}function pa(e,t,r){return new da(e,t,r)}class ha{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Ss(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=yr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&se!==this)return vi(this,!0),!0}get value(){const t=this.dep.track();return Pi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ga(e,t,r=!1){let n,s;return V(e)?n=e:(n=e.get,s=e.set),new ha(n,s,r)}const jr={},qr=new WeakMap;let xt;function ma(e,t=!1,r=xt){if(r){let n=qr.get(r);n||qr.set(r,n=[]),n.push(e)}}function ya(e,t,r=re){const{immediate:n,deep:s,once:o,scheduler:i,augmentJob:l,call:c}=r,u=x=>s?x:Te(x)||s===!1||s===0?nt(x,1):nt(x);let a,f,h,d,y=!1,_=!1;if(ue(e)?(f=()=>e.value,y=Te(e)):st(e)?(f=()=>u(e),y=!0):H(e)?(_=!0,y=e.some(x=>st(x)||Te(x)),f=()=>e.map(x=>{if(ue(x))return x.value;if(st(x))return u(x);if(V(x))return c?c(x,2):x()})):V(e)?t?f=c?()=>c(e,2):e:f=()=>{if(h){ot();try{h()}finally{it()}}const x=xt;xt=a;try{return c?c(e,3,[d]):e(d)}finally{xt=x}}:f=Je,t&&s){const x=f,U=s===!0?1/0:s;f=()=>nt(x(),U)}const E=mi(),w=()=>{a.stop(),E&&E.active&&hs(E.effects,a)};if(o&&t){const x=t;t=(...U)=>{x(...U),w()}}let R=_?new Array(e.length).fill(jr):jr;const k=x=>{if(!(!(a.flags&1)||!a.dirty&&!x))if(t){const U=a.run();if(s||y||(_?U.some((Z,q)=>St(Z,R[q])):St(U,R))){h&&h();const Z=xt;xt=a;try{const q=[U,R===jr?void 0:_&&R[0]===jr?[]:R,d];R=U,c?c(t,3,q):t(...q)}finally{xt=Z}}}else a.run()};return l&&l(k),a=new yi(f),a.scheduler=i?()=>i(k,!1):k,d=x=>ma(x,!1,a),h=a.onStop=()=>{const x=qr.get(a);if(x){if(c)c(x,4);else for(const U of x)U();qr.delete(a)}},t?n?k(!0):R=a.run():i?i(k.bind(null,!0),!0):a.run(),w.pause=a.pause.bind(a),w.resume=a.resume.bind(a),w.stop=w,w}function nt(e,t=1/0,r){if(t<=0||!oe(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,ue(e))nt(e.value,t,r);else if(H(e))for(let n=0;n<e.length;n++)nt(e[n],t,r);else if(ii(e)||qt(e))e.forEach(n=>{nt(n,t,r)});else if(ai(e)){for(const n in e)nt(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&nt(e[n],t,r)}return e}function Rr(e,t,r,n){try{return n?e(...n):e()}catch(s){an(s,t,r)}}function Xe(e,t,r,n){if(V(e)){const s=Rr(e,t,r,n);return s&&li(s)&&s.catch(o=>{an(o,t,r)}),s}if(H(e)){const s=[];for(let o=0;o<e.length;o++)s.push(Xe(e[o],t,r,n));return s}}function an(e,t,r,n=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||re;if(t){let l=t.parent;const c=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${r}`;for(;l;){const a=l.ec;if(a){for(let f=0;f<a.length;f++)if(a[f](e,c,u)===!1)return}l=l.parent}if(o){ot(),Rr(o,null,10,[e,c,u]),it();return}}_a(e,r,s,n,i)}function _a(e,t,r,n=!0,s=!1){if(s)throw e;console.error(e)}const we=[];let $e=-1;const zt=[];let _t=null,Bt=0;const Li=Promise.resolve();let zr=null;function Cs(e){const t=zr||Li;return e?t.then(this?e.bind(this):e):t}function va(e){let t=$e+1,r=we.length;for(;t<r;){const n=t+r>>>1,s=we[n],o=vr(s);o<e||o===e&&s.flags&2?t=n+1:r=n}return t}function Rs(e){if(!(e.flags&1)){const t=vr(e),r=we[we.length-1];!r||!(e.flags&2)&&t>=vr(r)?we.push(e):we.splice(va(t),0,e),e.flags|=1,Ui()}}function Ui(){zr||(zr=Li.then(Di))}function ba(e){H(e)?zt.push(...e):_t&&e.id===-1?_t.splice(Bt+1,0,e):e.flags&1||(zt.push(e),e.flags|=1),Ui()}function Qs(e,t,r=$e+1){for(;r<we.length;r++){const n=we[r];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;we.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Ni(e){if(zt.length){const t=[...new Set(zt)].sort((r,n)=>vr(r)-vr(n));if(zt.length=0,_t){_t.push(...t);return}for(_t=t,Bt=0;Bt<_t.length;Bt++){const r=_t[Bt];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}_t=null,Bt=0}}const vr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Di(e){try{for($e=0;$e<we.length;$e++){const t=we[$e];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Rr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;$e<we.length;$e++){const t=we[$e];t&&(t.flags&=-2)}$e=-1,we.length=0,Ni(),zr=null,(we.length||zt.length)&&Di()}}let me=null,ji=null;function $r(e){const t=me;return me=e,ji=e&&e.type.__scopeId||null,t}function Fi(e,t=me,r){if(!t||e._n)return e;const n=(...s)=>{n._d&&Yr(-1);const o=$r(t);let i;try{i=e(...s)}finally{$r(o),n._d&&Yr(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function Uh(e,t){if(me===null)return e;const r=pn(me),n=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,i,l,c=re]=t[s];o&&(V(o)&&(o={mounted:o,updated:o}),o.deep&&nt(i),n.push({dir:o,instance:r,value:i,oldValue:void 0,arg:l,modifiers:c}))}return e}function Ct(e,t,r,n){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const l=s[i];o&&(l.oldValue=o[i].value);let c=l.dir[n];c&&(ot(),Xe(c,r,8,[e.el,l,e,t]),it())}}function Ye(e,t){if(ve){let r=ve.provides;const n=ve.parent&&ve.parent.provides;n===r&&(r=ve.provides=Object.create(n)),r[e]=t}}function de(e,t,r=!1){const n=Ls();if(n||Tt){let s=Tt?Tt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&V(t)?t.call(n&&n.proxy):t}}function Sa(){return!!(Ls()||Tt)}const Pa=Symbol.for("v-scx"),Ea=()=>de(Pa);function wa(e,t){return As(e,null,t)}function Pt(e,t,r){return As(e,t,r)}function As(e,t,r=re){const{immediate:n,deep:s,flush:o,once:i}=r,l=be({},r),c=t&&n||!t&&o!=="post";let u;if(Er){if(o==="sync"){const d=Ea();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!c){const d=()=>{};return d.stop=Je,d.resume=Je,d.pause=Je,d}}const a=ve;l.call=(d,y,_)=>Xe(d,a,y,_);let f=!1;o==="post"?l.scheduler=d=>{Pe(d,a&&a.suspense)}:o!=="sync"&&(f=!0,l.scheduler=(d,y)=>{y?d():Rs(d)}),l.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,a&&(d.id=a.uid,d.i=a))};const h=ya(e,t,l);return Er&&(u?u.push(h):c&&h()),h}function Ca(e,t,r){const n=this.proxy,s=fe(e)?e.includes(".")?Hi(n,e):()=>n[e]:e.bind(n,n);let o;V(t)?o=t:(o=t.handler,r=t);const i=Or(this),l=As(s,o.bind(n),r);return i(),l}function Hi(e,t){const r=t.split(".");return()=>{let n=e;for(let s=0;s<r.length&&n;s++)n=n[r[s]];return n}}const Bi=Symbol("_vte"),Ra=e=>e.__isTeleport,ur=e=>e&&(e.disabled||e.disabled===""),Zs=e=>e&&(e.defer||e.defer===""),eo=e=>typeof SVGElement<"u"&&e instanceof SVGElement,to=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Yn=(e,t)=>{const r=e&&e.to;return fe(r)?t?t(r):null:r},Ki={name:"Teleport",__isTeleport:!0,process(e,t,r,n,s,o,i,l,c,u){const{mc:a,pc:f,pbc:h,o:{insert:d,querySelector:y,createText:_,createComment:E}}=u,w=ur(t.props);let{shapeFlag:R,children:k,dynamicChildren:x}=t;if(e==null){const U=t.el=_(""),Z=t.anchor=_("");d(U,r,n),d(Z,r,n);const q=(F,ee)=>{R&16&&a(k,F,ee,s,o,i,l,c)},K=()=>{const F=t.target=Yn(t.props,y),ee=Vi(F,t,_,d);F&&(i!=="svg"&&eo(F)?i="svg":i!=="mathml"&&to(F)&&(i="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(F),w||(q(F,ee),Br(t,!1)))};w&&(q(r,Z),Br(t,!0)),Zs(t.props)?(t.el.__isMounted=!1,Pe(()=>{K(),delete t.el.__isMounted},o)):K()}else{if(Zs(t.props)&&e.el.__isMounted===!1){Pe(()=>{Ki.process(e,t,r,n,s,o,i,l,c,u)},o);return}t.el=e.el,t.targetStart=e.targetStart;const U=t.anchor=e.anchor,Z=t.target=e.target,q=t.targetAnchor=e.targetAnchor,K=ur(e.props),F=K?r:Z,ee=K?U:q;if(i==="svg"||eo(Z)?i="svg":(i==="mathml"||to(Z))&&(i="mathml"),x?(h(e.dynamicChildren,x,F,s,o,i,l),Ts(e,t,!0)):c||f(e,t,F,ee,s,o,i,l,!1),w)K?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Fr(t,r,U,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const he=t.target=Yn(t.props,y);he&&Fr(t,he,null,u,0)}else K&&Fr(t,Z,q,u,1);Br(t,w)}},remove(e,t,r,{um:n,o:{remove:s}},o){const{shapeFlag:i,children:l,anchor:c,targetStart:u,targetAnchor:a,target:f,props:h}=e;if(f&&(s(u),s(a)),o&&s(c),i&16){const d=o||!ur(h);for(let y=0;y<l.length;y++){const _=l[y];n(_,t,r,d,!!_.dynamicChildren)}}},move:Fr,hydrate:Aa};function Fr(e,t,r,{o:{insert:n},m:s},o=2){o===0&&n(e.targetAnchor,t,r);const{el:i,anchor:l,shapeFlag:c,children:u,props:a}=e,f=o===2;if(f&&n(i,t,r),(!f||ur(a))&&c&16)for(let h=0;h<u.length;h++)s(u[h],t,r,2);f&&n(l,t,r)}function Aa(e,t,r,n,s,o,{o:{nextSibling:i,parentNode:l,querySelector:c,insert:u,createText:a}},f){function h(_,E,w,R){E.anchor=f(i(_),E,l(_),r,n,s,o),E.targetStart=w,E.targetAnchor=R}const d=t.target=Yn(t.props,c),y=ur(t.props);if(d){const _=d._lpa||d.firstChild;if(t.shapeFlag&16)if(y)h(e,t,_,_&&i(_));else{t.anchor=i(e);let E=_;for(;E;){if(E&&E.nodeType===8){if(E.data==="teleport start anchor")t.targetStart=E;else if(E.data==="teleport anchor"){t.targetAnchor=E,d._lpa=t.targetAnchor&&i(t.targetAnchor);break}}E=i(E)}t.targetAnchor||Vi(d,t,a,u),f(_&&i(_),t,d,r,n,s,o)}Br(t,y)}else y&&t.shapeFlag&16&&h(e,t,e,i(e));return t.anchor&&i(t.anchor)}const xa=Ki;function Br(e,t){const r=e.ctx;if(r&&r.ut){let n,s;for(t?(n=e.el,s=e.anchor):(n=e.targetStart,s=e.targetAnchor);n&&n!==s;)n.nodeType===1&&n.setAttribute("data-v-owner",r.uid),n=n.nextSibling;r.ut()}}function Vi(e,t,r,n){const s=t.targetStart=r(""),o=t.targetAnchor=r("");return s[Bi]=o,e&&(n(s,e),n(o,e)),o}const Oa=Symbol("_leaveCb");function xs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,xs(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 ie(e,t){return V(e)?be({name:e.name},t,{setup:e}):e}function Wi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Gr=new WeakMap;function fr(e,t,r,n,s=!1){if(H(e)){e.forEach((y,_)=>fr(y,t&&(H(t)?t[_]:t),r,n,s));return}if($t(n)&&!s){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&fr(e,t,r,n.component.subTree);return}const o=n.shapeFlag&4?pn(n.component):n.el,i=s?null:o,{i:l,r:c}=e,u=t&&t.r,a=l.refs===re?l.refs={}:l.refs,f=l.setupState,h=G(f),d=f===re?oi:y=>X(h,y);if(u!=null&&u!==c){if(ro(t),fe(u))a[u]=null,d(u)&&(f[u]=null);else if(ue(u)){u.value=null;const y=t;y.k&&(a[y.k]=null)}}if(V(c))Rr(c,l,12,[i,a]);else{const y=fe(c),_=ue(c);if(y||_){const E=()=>{if(e.f){const w=y?d(c)?f[c]:a[c]:c.value;if(s)H(w)&&hs(w,o);else if(H(w))w.includes(o)||w.push(o);else if(y)a[c]=[o],d(c)&&(f[c]=a[c]);else{const R=[o];c.value=R,e.k&&(a[e.k]=R)}}else y?(a[c]=i,d(c)&&(f[c]=i)):_&&(c.value=i,e.k&&(a[e.k]=i))};if(i){const w=()=>{E(),Gr.delete(e)};w.id=-1,Gr.set(e,w),Pe(w,r)}else ro(e),E()}}}function ro(e){const t=Gr.get(e);t&&(t.flags|=8,Gr.delete(e))}on().requestIdleCallback;on().cancelIdleCallback;const $t=e=>!!e.type.__asyncLoader,qi=e=>e.type.__isKeepAlive;function ka(e,t){zi(e,"a",t)}function Ia(e,t){zi(e,"da",t)}function zi(e,t,r=ve){const n=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(un(t,n,r),r){let s=r.parent;for(;s&&s.parent;)qi(s.parent.vnode)&&Ta(n,t,r,s),s=s.parent}}function Ta(e,t,r,n){const s=un(t,e,n,!0);Os(()=>{hs(n[t],s)},r)}function un(e,t,r=ve,n=!1){if(r){const s=r[e]||(r[e]=[]),o=t.__weh||(t.__weh=(...i)=>{ot();const l=Or(r),c=Xe(t,r,e,i);return l(),it(),c});return n?s.unshift(o):s.push(o),o}}const ft=e=>(t,r=ve)=>{(!Er||e==="sp")&&un(e,(...n)=>t(...n),r)},Ma=ft("bm"),$i=ft("m"),La=ft("bu"),Ua=ft("u"),Na=ft("bum"),Os=ft("um"),Da=ft("sp"),ja=ft("rtg"),Fa=ft("rtc");function Ha(e,t=ve){un("ec",e,t)}const Gi="components";function Ba(e,t){return Yi(Gi,e,!0,t)||e}const Ji=Symbol.for("v-ndc");function Ka(e){return fe(e)?Yi(Gi,e,!1)||e:e||Ji}function Yi(e,t,r=!0,n=!1){const s=me||ve;if(s){const o=s.type;{const l=Au(o,!1);if(l&&(l===t||l===Ne(t)||l===sn(Ne(t))))return o}const i=no(s[e]||o[e],t)||no(s.appContext[e],t);return!i&&n?o:i}}function no(e,t){return e&&(e[t]||e[Ne(t)]||e[sn(Ne(t))])}function Nh(e,t,r,n){let s;const o=r,i=H(e);if(i||fe(e)){const l=i&&st(e);let c=!1,u=!1;l&&(c=!Te(e),u=lt(e),e=ln(e)),s=new Array(e.length);for(let a=0,f=e.length;a<f;a++)s[a]=t(c?u?Gt(je(e[a])):je(e[a]):e[a],a,void 0,o)}else if(typeof e=="number"){s=new Array(e);for(let l=0;l<e;l++)s[l]=t(l+1,l,void 0,o)}else if(oe(e))if(e[Symbol.iterator])s=Array.from(e,(l,c)=>t(l,c,void 0,o));else{const l=Object.keys(e);s=new Array(l.length);for(let c=0,u=l.length;c<u;c++){const a=l[c];s[c]=t(e[a],a,c,o)}}else s=[];return s}function Ar(e,t,r={},n,s){if(me.ce||me.parent&&$t(me.parent)&&me.parent.ce){const u=Object.keys(r).length>0;return at(),Sr(ge,null,[ae("slot",r,n)],u?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),at();const i=o&&Xi(o(r)),l=r.key||i&&i.key,c=Sr(ge,{key:(l&&!ut(l)?l:`_${t}`)+(!i&&n?"_fb":"")},i||[],i&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function Xi(e){return e.some(t=>Pr(t)?!(t.type===ct||t.type===ge&&!Xi(t.children)):!0)?e:null}const Xn=e=>e?_l(e)?pn(e):Xn(e.parent):null,dr=be(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=>Xn(e.parent),$root:e=>Xn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>el(e),$forceUpdate:e=>e.f||(e.f=()=>{Rs(e.update)}),$nextTick:e=>e.n||(e.n=Cs.bind(e.proxy)),$watch:e=>Ca.bind(e)}),On=(e,t)=>e!==re&&!e.__isScriptSetup&&X(e,t),Va={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:s,props:o,accessCache:i,type:l,appContext:c}=e;if(t[0]!=="$"){const h=i[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return s[t];case 4:return r[t];case 3:return o[t]}else{if(On(n,t))return i[t]=1,n[t];if(s!==re&&X(s,t))return i[t]=2,s[t];if(X(o,t))return i[t]=3,o[t];if(r!==re&&X(r,t))return i[t]=4,r[t];Qn&&(i[t]=0)}}const u=dr[t];let a,f;if(u)return t==="$attrs"&&_e(e.attrs,"get",""),u(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(r!==re&&X(r,t))return i[t]=4,r[t];if(f=c.config.globalProperties,X(f,t))return f[t]},set({_:e},t,r){const{data:n,setupState:s,ctx:o}=e;return On(s,t)?(s[t]=r,!0):n!==re&&X(n,t)?(n[t]=r,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:s,props:o,type:i}},l){let c;return!!(r[l]||e!==re&&l[0]!=="$"&&X(e,l)||On(t,l)||X(o,l)||X(n,l)||X(dr,l)||X(s.config.globalProperties,l)||(c=i.__cssModules)&&c[l])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:X(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function Wa(){return Qi().slots}function qa(){return Qi().attrs}function Qi(e){const t=Ls();return t.setupContext||(t.setupContext=bl(t))}function so(e){return H(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let Qn=!0;function za(e){const t=el(e),r=e.proxy,n=e.ctx;Qn=!1,t.beforeCreate&&oo(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:l,provide:c,inject:u,created:a,beforeMount:f,mounted:h,beforeUpdate:d,updated:y,activated:_,deactivated:E,beforeDestroy:w,beforeUnmount:R,destroyed:k,unmounted:x,render:U,renderTracked:Z,renderTriggered:q,errorCaptured:K,serverPrefetch:F,expose:ee,inheritAttrs:he,components:Oe,directives:Ce,filters:Et}=t;if(u&&$a(u,n,null),i)for(const W in i){const J=i[W];V(J)&&(n[W]=J.bind(r))}if(s){const W=s.call(r,r);oe(W)&&(e.data=Cr(W))}if(Qn=!0,o)for(const W in o){const J=o[W],Qe=V(J)?J.bind(r,r):V(J.get)?J.get.bind(r,r):Je,pt=!V(J)&&V(J.set)?J.set.bind(r):Je,Ke=Q({get:Qe,set:pt});Object.defineProperty(n,W,{enumerable:!0,configurable:!0,get:()=>Ke.value,set:Re=>Ke.value=Re})}if(l)for(const W in l)Zi(l[W],n,r,W);if(c){const W=V(c)?c.call(r):c;Reflect.ownKeys(W).forEach(J=>{Ye(J,W[J])})}a&&oo(a,e,"c");function le(W,J){H(J)?J.forEach(Qe=>W(Qe.bind(r))):J&&W(J.bind(r))}if(le(Ma,f),le($i,h),le(La,d),le(Ua,y),le(ka,_),le(Ia,E),le(Ha,K),le(Fa,Z),le(ja,q),le(Na,R),le(Os,x),le(Da,F),H(ee))if(ee.length){const W=e.exposed||(e.exposed={});ee.forEach(J=>{Object.defineProperty(W,J,{get:()=>r[J],set:Qe=>r[J]=Qe,enumerable:!0})})}else e.exposed||(e.exposed={});U&&e.render===Je&&(e.render=U),he!=null&&(e.inheritAttrs=he),Oe&&(e.components=Oe),Ce&&(e.directives=Ce),F&&Wi(e)}function $a(e,t,r=Je){H(e)&&(e=Zn(e));for(const n in e){const s=e[n];let o;oe(s)?"default"in s?o=de(s.from||n,s.default,!0):o=de(s.from||n):o=de(s),ue(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[n]=o}}function oo(e,t,r){Xe(H(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Zi(e,t,r,n){let s=n.includes(".")?Hi(r,n):()=>r[n];if(fe(e)){const o=t[e];V(o)&&Pt(s,o)}else if(V(e))Pt(s,e.bind(r));else if(oe(e))if(H(e))e.forEach(o=>Zi(o,t,r,n));else{const o=V(e.handler)?e.handler.bind(r):t[e.handler];V(o)&&Pt(s,o,e)}}function el(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!s.length&&!r&&!n?c=t:(c={},s.length&&s.forEach(u=>Jr(c,u,i,!0)),Jr(c,t,i)),oe(t)&&o.set(t,c),c}function Jr(e,t,r,n=!1){const{mixins:s,extends:o}=t;o&&Jr(e,o,r,!0),s&&s.forEach(i=>Jr(e,i,r,!0));for(const i in t)if(!(n&&i==="expose")){const l=Ga[i]||r&&r[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Ga={data:io,props:lo,emits:lo,methods:ir,computed:ir,beforeCreate:Se,created:Se,beforeMount:Se,mounted:Se,beforeUpdate:Se,updated:Se,beforeDestroy:Se,beforeUnmount:Se,destroyed:Se,unmounted:Se,activated:Se,deactivated:Se,errorCaptured:Se,serverPrefetch:Se,components:ir,directives:ir,watch:Ya,provide:io,inject:Ja};function io(e,t){return t?e?function(){return be(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function Ja(e,t){return ir(Zn(e),Zn(t))}function Zn(e){if(H(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Se(e,t){return e?[...new Set([].concat(e,t))]:t}function ir(e,t){return e?be(Object.create(null),e,t):t}function lo(e,t){return e?H(e)&&H(t)?[...new Set([...e,...t])]:be(Object.create(null),so(e),so(t??{})):t}function Ya(e,t){if(!e)return t;if(!t)return e;const r=be(Object.create(null),e);for(const n in t)r[n]=Se(e[n],t[n]);return r}function tl(){return{app:null,config:{isNativeTag:oi,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 Xa=0;function Qa(e,t){return function(n,s=null){V(n)||(n=be({},n)),s!=null&&!oe(s)&&(s=null);const o=tl(),i=new WeakSet,l=[];let c=!1;const u=o.app={_uid:Xa++,_component:n,_props:s,_container:null,_context:o,_instance:null,version:Ou,get config(){return o.config},set config(a){},use(a,...f){return i.has(a)||(a&&V(a.install)?(i.add(a),a.install(u,...f)):V(a)&&(i.add(a),a(u,...f))),u},mixin(a){return o.mixins.includes(a)||o.mixins.push(a),u},component(a,f){return f?(o.components[a]=f,u):o.components[a]},directive(a,f){return f?(o.directives[a]=f,u):o.directives[a]},mount(a,f,h){if(!c){const d=u._ceVNode||ae(n,s);return d.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),e(d,a,h),c=!0,u._container=a,a.__vue_app__=u,pn(d.component)}},onUnmount(a){l.push(a)},unmount(){c&&(Xe(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(a,f){return o.provides[a]=f,u},runWithContext(a){const f=Tt;Tt=u;try{return a()}finally{Tt=f}}};return u}}let Tt=null;const Za=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ne(t)}Modifiers`]||e[`${Lt(t)}Modifiers`];function eu(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||re;let s=r;const o=t.startsWith("update:"),i=o&&Za(n,t.slice(7));i&&(i.trim&&(s=r.map(a=>fe(a)?a.trim():a)),i.number&&(s=r.map(gs)));let l,c=n[l=wn(t)]||n[l=wn(Ne(t))];!c&&o&&(c=n[l=wn(Lt(t))]),c&&Xe(c,e,6,s);const u=n[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Xe(u,e,6,s)}}const tu=new WeakMap;function rl(e,t,r=!1){const n=r?tu:t.emitsCache,s=n.get(e);if(s!==void 0)return s;const o=e.emits;let i={},l=!1;if(!V(e)){const c=u=>{const a=rl(u,t,!0);a&&(l=!0,be(i,a))};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(oe(e)&&n.set(e,null),null):(H(o)?o.forEach(c=>i[c]=null):be(i,o),oe(e)&&n.set(e,i),i)}function fn(e,t){return!e||!en(t)?!1:(t=t.slice(2).replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,Lt(t))||X(e,t))}function co(e){const{type:t,vnode:r,proxy:n,withProxy:s,propsOptions:[o],slots:i,attrs:l,emit:c,render:u,renderCache:a,props:f,data:h,setupState:d,ctx:y,inheritAttrs:_}=e,E=$r(e);let w,R;try{if(r.shapeFlag&4){const x=s||n,U=x;w=Ge(u.call(U,x,a,f,d,h,y)),R=l}else{const x=t;w=Ge(x.length>1?x(f,{attrs:l,slots:i,emit:c}):x(f,null)),R=t.props?l:ru(l)}}catch(x){pr.length=0,an(x,e,1),w=ae(ct)}let k=w;if(R&&_!==!1){const x=Object.keys(R),{shapeFlag:U}=k;x.length&&U&7&&(o&&x.some(ps)&&(R=nu(R,o)),k=Jt(k,R,!1,!0))}return r.dirs&&(k=Jt(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(r.dirs):r.dirs),r.transition&&xs(k,r.transition),w=k,$r(E),w}const ru=e=>{let t;for(const r in e)(r==="class"||r==="style"||en(r))&&((t||(t={}))[r]=e[r]);return t},nu=(e,t)=>{const r={};for(const n in e)(!ps(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function su(e,t,r){const{props:n,children:s,component:o}=e,{props:i,children:l,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&c>=0){if(c&1024)return!0;if(c&16)return n?ao(n,i,u):!!i;if(c&8){const a=t.dynamicProps;for(let f=0;f<a.length;f++){const h=a[f];if(i[h]!==n[h]&&!fn(u,h))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:n===i?!1:n?i?ao(n,i,u):!0:!!i;return!1}function ao(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let s=0;s<n.length;s++){const o=n[s];if(t[o]!==e[o]&&!fn(r,o))return!0}return!1}function ou({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}const nl={},sl=()=>Object.create(nl),ol=e=>Object.getPrototypeOf(e)===nl;function iu(e,t,r,n=!1){const s={},o=sl();e.propsDefaults=Object.create(null),il(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);r?e.props=n?s:Ii(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function lu(e,t,r,n){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,l=G(s),[c]=e.propsOptions;let u=!1;if((n||i>0)&&!(i&16)){if(i&8){const a=e.vnode.dynamicProps;for(let f=0;f<a.length;f++){let h=a[f];if(fn(e.emitsOptions,h))continue;const d=t[h];if(c)if(X(o,h))d!==o[h]&&(o[h]=d,u=!0);else{const y=Ne(h);s[y]=es(c,l,y,d,e,!1)}else d!==o[h]&&(o[h]=d,u=!0)}}}else{il(e,t,s,o)&&(u=!0);let a;for(const f in l)(!t||!X(t,f)&&((a=Lt(f))===f||!X(t,a)))&&(c?r&&(r[f]!==void 0||r[a]!==void 0)&&(s[f]=es(c,l,f,void 0,e,!0)):delete s[f]);if(o!==l)for(const f in o)(!t||!X(t,f))&&(delete o[f],u=!0)}u&&rt(e.attrs,"set","")}function il(e,t,r,n){const[s,o]=e.propsOptions;let i=!1,l;if(t)for(let c in t){if(lr(c))continue;const u=t[c];let a;s&&X(s,a=Ne(c))?!o||!o.includes(a)?r[a]=u:(l||(l={}))[a]=u:fn(e.emitsOptions,c)||(!(c in n)||u!==n[c])&&(n[c]=u,i=!0)}if(o){const c=G(r),u=l||re;for(let a=0;a<o.length;a++){const f=o[a];r[f]=es(s,c,f,u[f],e,!X(u,f))}}return i}function es(e,t,r,n,s,o){const i=e[r];if(i!=null){const l=X(i,"default");if(l&&n===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&V(c)){const{propsDefaults:u}=s;if(r in u)n=u[r];else{const a=Or(s);n=u[r]=c.call(null,t),a()}}else n=c;s.ce&&s.ce._setProp(r,n)}i[0]&&(o&&!l?n=!1:i[1]&&(n===""||n===Lt(r))&&(n=!0))}return n}const cu=new WeakMap;function ll(e,t,r=!1){const n=r?cu:t.propsCache,s=n.get(e);if(s)return s;const o=e.props,i={},l=[];let c=!1;if(!V(e)){const a=f=>{c=!0;const[h,d]=ll(f,t,!0);be(i,h),d&&l.push(...d)};!r&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!o&&!c)return oe(e)&&n.set(e,Wt),Wt;if(H(o))for(let a=0;a<o.length;a++){const f=Ne(o[a]);uo(f)&&(i[f]=re)}else if(o)for(const a in o){const f=Ne(a);if(uo(f)){const h=o[a],d=i[f]=H(h)||V(h)?{type:h}:be({},h),y=d.type;let _=!1,E=!0;if(H(y))for(let w=0;w<y.length;++w){const R=y[w],k=V(R)&&R.name;if(k==="Boolean"){_=!0;break}else k==="String"&&(E=!1)}else _=V(y)&&y.name==="Boolean";d[0]=_,d[1]=E,(_||X(d,"default"))&&l.push(f)}}const u=[i,l];return oe(e)&&n.set(e,u),u}function uo(e){return e[0]!=="$"&&!lr(e)}const ks=e=>e==="_"||e==="_ctx"||e==="$stable",Is=e=>H(e)?e.map(Ge):[Ge(e)],au=(e,t,r)=>{if(t._n)return t;const n=Fi((...s)=>Is(t(...s)),r);return n._c=!1,n},cl=(e,t,r)=>{const n=e._ctx;for(const s in e){if(ks(s))continue;const o=e[s];if(V(o))t[s]=au(s,o,n);else if(o!=null){const i=Is(o);t[s]=()=>i}}},al=(e,t)=>{const r=Is(t);e.slots.default=()=>r},ul=(e,t,r)=>{for(const n in t)(r||!ks(n))&&(e[n]=t[n])},uu=(e,t,r)=>{const n=e.slots=sl();if(e.vnode.shapeFlag&32){const s=t._;s?(ul(n,t,r),r&&ui(n,"_",s,!0)):cl(t,n)}else t&&al(e,t)},fu=(e,t,r)=>{const{vnode:n,slots:s}=e;let o=!0,i=re;if(n.shapeFlag&32){const l=t._;l?r&&l===1?o=!1:ul(s,t,r):(o=!t.$stable,cl(t,s)),i=t}else t&&(al(e,t),i={default:1});if(o)for(const l in s)!ks(l)&&i[l]==null&&delete s[l]},Pe=mu;function du(e){return pu(e)}function pu(e,t){const r=on();r.__VUE__=!0;const{insert:n,remove:s,patchProp:o,createElement:i,createText:l,createComment:c,setText:u,setElementText:a,parentNode:f,nextSibling:h,setScopeId:d=Je,insertStaticContent:y}=e,_=(p,g,m,v=null,P=null,b=null,I=void 0,O=null,A=!!g.dynamicChildren)=>{if(p===g)return;p&&!rr(p,g)&&(v=S(p),Re(p,P,b,!0),p=null),g.patchFlag===-2&&(A=!1,g.dynamicChildren=null);const{type:C,ref:j,shapeFlag:M}=g;switch(C){case xr:E(p,g,m,v);break;case ct:w(p,g,m,v);break;case In:p==null&&R(g,m,v,I);break;case ge:Oe(p,g,m,v,P,b,I,O,A);break;default:M&1?U(p,g,m,v,P,b,I,O,A):M&6?Ce(p,g,m,v,P,b,I,O,A):(M&64||M&128)&&C.process(p,g,m,v,P,b,I,O,A,N)}j!=null&&P?fr(j,p&&p.ref,b,g||p,!g):j==null&&p&&p.ref!=null&&fr(p.ref,null,b,p,!0)},E=(p,g,m,v)=>{if(p==null)n(g.el=l(g.children),m,v);else{const P=g.el=p.el;g.children!==p.children&&u(P,g.children)}},w=(p,g,m,v)=>{p==null?n(g.el=c(g.children||""),m,v):g.el=p.el},R=(p,g,m,v)=>{[p.el,p.anchor]=y(p.children,g,m,v,p.el,p.anchor)},k=({el:p,anchor:g},m,v)=>{let P;for(;p&&p!==g;)P=h(p),n(p,m,v),p=P;n(g,m,v)},x=({el:p,anchor:g})=>{let m;for(;p&&p!==g;)m=h(p),s(p),p=m;s(g)},U=(p,g,m,v,P,b,I,O,A)=>{if(g.type==="svg"?I="svg":g.type==="math"&&(I="mathml"),p==null)Z(g,m,v,P,b,I,O,A);else{const C=p.el&&p.el._isVueCE?p.el:null;try{C&&C._beginPatch(),F(p,g,P,b,I,O,A)}finally{C&&C._endPatch()}}},Z=(p,g,m,v,P,b,I,O)=>{let A,C;const{props:j,shapeFlag:M,transition:D,dirs:B}=p;if(A=p.el=i(p.type,b,j&&j.is,j),M&8?a(A,p.children):M&16&&K(p.children,A,null,v,P,kn(p,b),I,O),B&&Ct(p,null,v,"created"),q(A,p,p.scopeId,I,v),j){for(const ne in j)ne!=="value"&&!lr(ne)&&o(A,ne,null,j[ne],b,v);"value"in j&&o(A,"value",null,j.value,b),(C=j.onVnodeBeforeMount)&&ze(C,v,p)}B&&Ct(p,null,v,"beforeMount");const $=hu(P,D);$&&D.beforeEnter(A),n(A,g,m),((C=j&&j.onVnodeMounted)||$||B)&&Pe(()=>{C&&ze(C,v,p),$&&D.enter(A),B&&Ct(p,null,v,"mounted")},P)},q=(p,g,m,v,P)=>{if(m&&d(p,m),v)for(let b=0;b<v.length;b++)d(p,v[b]);if(P){let b=P.subTree;if(g===b||pl(b.type)&&(b.ssContent===g||b.ssFallback===g)){const I=P.vnode;q(p,I,I.scopeId,I.slotScopeIds,P.parent)}}},K=(p,g,m,v,P,b,I,O,A=0)=>{for(let C=A;C<p.length;C++){const j=p[C]=O?vt(p[C]):Ge(p[C]);_(null,j,g,m,v,P,b,I,O)}},F=(p,g,m,v,P,b,I)=>{const O=g.el=p.el;let{patchFlag:A,dynamicChildren:C,dirs:j}=g;A|=p.patchFlag&16;const M=p.props||re,D=g.props||re;let B;if(m&&Rt(m,!1),(B=D.onVnodeBeforeUpdate)&&ze(B,m,g,p),j&&Ct(g,p,m,"beforeUpdate"),m&&Rt(m,!0),(M.innerHTML&&D.innerHTML==null||M.textContent&&D.textContent==null)&&a(O,""),C?ee(p.dynamicChildren,C,O,m,v,kn(g,P),b):I||J(p,g,O,null,m,v,kn(g,P),b,!1),A>0){if(A&16)he(O,M,D,m,P);else if(A&2&&M.class!==D.class&&o(O,"class",null,D.class,P),A&4&&o(O,"style",M.style,D.style,P),A&8){const $=g.dynamicProps;for(let ne=0;ne<$.length;ne++){const te=$[ne],Ae=M[te],xe=D[te];(xe!==Ae||te==="value")&&o(O,te,Ae,xe,P,m)}}A&1&&p.children!==g.children&&a(O,g.children)}else!I&&C==null&&he(O,M,D,m,P);((B=D.onVnodeUpdated)||j)&&Pe(()=>{B&&ze(B,m,g,p),j&&Ct(g,p,m,"updated")},v)},ee=(p,g,m,v,P,b,I)=>{for(let O=0;O<g.length;O++){const A=p[O],C=g[O],j=A.el&&(A.type===ge||!rr(A,C)||A.shapeFlag&198)?f(A.el):m;_(A,C,j,null,v,P,b,I,!0)}},he=(p,g,m,v,P)=>{if(g!==m){if(g!==re)for(const b in g)!lr(b)&&!(b in m)&&o(p,b,g[b],null,P,v);for(const b in m){if(lr(b))continue;const I=m[b],O=g[b];I!==O&&b!=="value"&&o(p,b,O,I,P,v)}"value"in m&&o(p,"value",g.value,m.value,P)}},Oe=(p,g,m,v,P,b,I,O,A)=>{const C=g.el=p?p.el:l(""),j=g.anchor=p?p.anchor:l("");let{patchFlag:M,dynamicChildren:D,slotScopeIds:B}=g;B&&(O=O?O.concat(B):B),p==null?(n(C,m,v),n(j,m,v),K(g.children||[],m,j,P,b,I,O,A)):M>0&&M&64&&D&&p.dynamicChildren&&p.dynamicChildren.length===D.length?(ee(p.dynamicChildren,D,m,P,b,I,O),(g.key!=null||P&&g===P.subTree)&&Ts(p,g,!0)):J(p,g,m,j,P,b,I,O,A)},Ce=(p,g,m,v,P,b,I,O,A)=>{g.slotScopeIds=O,p==null?g.shapeFlag&512?P.ctx.activate(g,m,v,I,A):Et(g,m,v,P,b,I,A):dt(p,g,A)},Et=(p,g,m,v,P,b,I)=>{const O=p.component=Eu(p,v,P);if(qi(p)&&(O.ctx.renderer=N),wu(O,!1,I),O.asyncDep){if(P&&P.registerDep(O,le,I),!p.el){const A=O.subTree=ae(ct);w(null,A,g,m),p.placeholder=A.el}}else le(O,p,g,m,P,b,I)},dt=(p,g,m)=>{const v=g.component=p.component;if(su(p,g,m))if(v.asyncDep&&!v.asyncResolved){W(v,g,m);return}else v.next=g,v.update();else g.el=p.el,v.vnode=g},le=(p,g,m,v,P,b,I)=>{const O=()=>{if(p.isMounted){let{next:M,bu:D,u:B,parent:$,vnode:ne}=p;{const We=fl(p);if(We){M&&(M.el=ne.el,W(p,M,I)),We.asyncDep.then(()=>{p.isUnmounted||O()});return}}let te=M,Ae;Rt(p,!1),M?(M.el=ne.el,W(p,M,I)):M=ne,D&&Hr(D),(Ae=M.props&&M.props.onVnodeBeforeUpdate)&&ze(Ae,$,M,ne),Rt(p,!0);const xe=co(p),Ve=p.subTree;p.subTree=xe,_(Ve,xe,f(Ve.el),S(Ve),p,P,b),M.el=xe.el,te===null&&ou(p,xe.el),B&&Pe(B,P),(Ae=M.props&&M.props.onVnodeUpdated)&&Pe(()=>ze(Ae,$,M,ne),P)}else{let M;const{el:D,props:B}=g,{bm:$,m:ne,parent:te,root:Ae,type:xe}=p,Ve=$t(g);Rt(p,!1),$&&Hr($),!Ve&&(M=B&&B.onVnodeBeforeMount)&&ze(M,te,g),Rt(p,!0);{Ae.ce&&Ae.ce._def.shadowRoot!==!1&&Ae.ce._injectChildStyle(xe);const We=p.subTree=co(p);_(null,We,m,v,p,P,b),g.el=We.el}if(ne&&Pe(ne,P),!Ve&&(M=B&&B.onVnodeMounted)){const We=g;Pe(()=>ze(M,te,We),P)}(g.shapeFlag&256||te&&$t(te.vnode)&&te.vnode.shapeFlag&256)&&p.a&&Pe(p.a,P),p.isMounted=!0,g=m=v=null}};p.scope.on();const A=p.effect=new yi(O);p.scope.off();const C=p.update=A.run.bind(A),j=p.job=A.runIfDirty.bind(A);j.i=p,j.id=p.uid,A.scheduler=()=>Rs(j),Rt(p,!0),C()},W=(p,g,m)=>{g.component=p;const v=p.vnode.props;p.vnode=g,p.next=null,lu(p,g.props,v,m),fu(p,g.children,m),ot(),Qs(p),it()},J=(p,g,m,v,P,b,I,O,A=!1)=>{const C=p&&p.children,j=p?p.shapeFlag:0,M=g.children,{patchFlag:D,shapeFlag:B}=g;if(D>0){if(D&128){pt(C,M,m,v,P,b,I,O,A);return}else if(D&256){Qe(C,M,m,v,P,b,I,O,A);return}}B&8?(j&16&&Me(C,P,b),M!==C&&a(m,M)):j&16?B&16?pt(C,M,m,v,P,b,I,O,A):Me(C,P,b,!0):(j&8&&a(m,""),B&16&&K(M,m,v,P,b,I,O,A))},Qe=(p,g,m,v,P,b,I,O,A)=>{p=p||Wt,g=g||Wt;const C=p.length,j=g.length,M=Math.min(C,j);let D;for(D=0;D<M;D++){const B=g[D]=A?vt(g[D]):Ge(g[D]);_(p[D],B,m,null,P,b,I,O,A)}C>j?Me(p,P,b,!0,!1,M):K(g,m,v,P,b,I,O,A,M)},pt=(p,g,m,v,P,b,I,O,A)=>{let C=0;const j=g.length;let M=p.length-1,D=j-1;for(;C<=M&&C<=D;){const B=p[C],$=g[C]=A?vt(g[C]):Ge(g[C]);if(rr(B,$))_(B,$,m,null,P,b,I,O,A);else break;C++}for(;C<=M&&C<=D;){const B=p[M],$=g[D]=A?vt(g[D]):Ge(g[D]);if(rr(B,$))_(B,$,m,null,P,b,I,O,A);else break;M--,D--}if(C>M){if(C<=D){const B=D+1,$=B<j?g[B].el:v;for(;C<=D;)_(null,g[C]=A?vt(g[C]):Ge(g[C]),m,$,P,b,I,O,A),C++}}else if(C>D)for(;C<=M;)Re(p[C],P,b,!0),C++;else{const B=C,$=C,ne=new Map;for(C=$;C<=D;C++){const ke=g[C]=A?vt(g[C]):Ge(g[C]);ke.key!=null&&ne.set(ke.key,C)}let te,Ae=0;const xe=D-$+1;let Ve=!1,We=0;const Zt=new Array(xe);for(C=0;C<xe;C++)Zt[C]=0;for(C=B;C<=M;C++){const ke=p[C];if(Ae>=xe){Re(ke,P,b,!0);continue}let qe;if(ke.key!=null)qe=ne.get(ke.key);else for(te=$;te<=D;te++)if(Zt[te-$]===0&&rr(ke,g[te])){qe=te;break}qe===void 0?Re(ke,P,b,!0):(Zt[qe-$]=C+1,qe>=We?We=qe:Ve=!0,_(ke,g[qe],m,null,P,b,I,O,A),Ae++)}const Hs=Ve?gu(Zt):Wt;for(te=Hs.length-1,C=xe-1;C>=0;C--){const ke=$+C,qe=g[ke],Bs=g[ke+1],Ks=ke+1<j?Bs.el||dl(Bs):v;Zt[C]===0?_(null,qe,m,Ks,P,b,I,O,A):Ve&&(te<0||C!==Hs[te]?Ke(qe,m,Ks,2):te--)}}},Ke=(p,g,m,v,P=null)=>{const{el:b,type:I,transition:O,children:A,shapeFlag:C}=p;if(C&6){Ke(p.component.subTree,g,m,v);return}if(C&128){p.suspense.move(g,m,v);return}if(C&64){I.move(p,g,m,N);return}if(I===ge){n(b,g,m);for(let M=0;M<A.length;M++)Ke(A[M],g,m,v);n(p.anchor,g,m);return}if(I===In){k(p,g,m);return}if(v!==2&&C&1&&O)if(v===0)O.beforeEnter(b),n(b,g,m),Pe(()=>O.enter(b),P);else{const{leave:M,delayLeave:D,afterLeave:B}=O,$=()=>{p.ctx.isUnmounted?s(b):n(b,g,m)},ne=()=>{b._isLeaving&&b[Oa](!0),M(b,()=>{$(),B&&B()})};D?D(b,$,ne):ne()}else n(b,g,m)},Re=(p,g,m,v=!1,P=!1)=>{const{type:b,props:I,ref:O,children:A,dynamicChildren:C,shapeFlag:j,patchFlag:M,dirs:D,cacheIndex:B}=p;if(M===-2&&(P=!1),O!=null&&(ot(),fr(O,null,m,p,!0),it()),B!=null&&(g.renderCache[B]=void 0),j&256){g.ctx.deactivate(p);return}const $=j&1&&D,ne=!$t(p);let te;if(ne&&(te=I&&I.onVnodeBeforeUnmount)&&ze(te,g,p),j&6)wt(p.component,m,v);else{if(j&128){p.suspense.unmount(m,v);return}$&&Ct(p,null,g,"beforeUnmount"),j&64?p.type.remove(p,g,m,N,v):C&&!C.hasOnce&&(b!==ge||M>0&&M&64)?Me(C,g,m,!1,!0):(b===ge&&M&384||!P&&j&16)&&Me(A,g,m),v&&Nt(p)}(ne&&(te=I&&I.onVnodeUnmounted)||$)&&Pe(()=>{te&&ze(te,g,p),$&&Ct(p,null,g,"unmounted")},m)},Nt=p=>{const{type:g,el:m,anchor:v,transition:P}=p;if(g===ge){Dt(m,v);return}if(g===In){x(p);return}const b=()=>{s(m),P&&!P.persisted&&P.afterLeave&&P.afterLeave()};if(p.shapeFlag&1&&P&&!P.persisted){const{leave:I,delayLeave:O}=P,A=()=>I(m,b);O?O(p.el,b,A):A()}else b()},Dt=(p,g)=>{let m;for(;p!==g;)m=h(p),s(p),p=m;s(g)},wt=(p,g,m)=>{const{bum:v,scope:P,job:b,subTree:I,um:O,m:A,a:C}=p;fo(A),fo(C),v&&Hr(v),P.stop(),b&&(b.flags|=8,Re(I,p,g,m)),O&&Pe(O,g),Pe(()=>{p.isUnmounted=!0},g)},Me=(p,g,m,v=!1,P=!1,b=0)=>{for(let I=b;I<p.length;I++)Re(p[I],g,m,v,P)},S=p=>{if(p.shapeFlag&6)return S(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const g=h(p.anchor||p.el),m=g&&g[Bi];return m?h(m):g};let L=!1;const T=(p,g,m)=>{let v;p==null?g._vnode&&(Re(g._vnode,null,null,!0),v=g._vnode.component):_(g._vnode||null,p,g,null,null,null,m),g._vnode=p,L||(L=!0,Qs(v),Ni(),L=!1)},N={p:_,um:Re,m:Ke,r:Nt,mt:Et,mc:K,pc:J,pbc:ee,n:S,o:e};return{render:T,hydrate:void 0,createApp:Qa(T)}}function kn({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Rt({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function hu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ts(e,t,r=!1){const n=e.children,s=t.children;if(H(n)&&H(s))for(let o=0;o<n.length;o++){const i=n[o];let l=s[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[o]=vt(s[o]),l.el=i.el),!r&&l.patchFlag!==-2&&Ts(i,l)),l.type===xr&&(l.patchFlag!==-1?l.el=i.el:l.__elIndex=o+(e.type===ge?1:0)),l.type===ct&&!l.el&&(l.el=i.el)}}function gu(e){const t=e.slice(),r=[0];let n,s,o,i,l;const c=e.length;for(n=0;n<c;n++){const u=e[n];if(u!==0){if(s=r[r.length-1],e[s]<u){t[n]=s,r.push(n);continue}for(o=0,i=r.length-1;o<i;)l=o+i>>1,e[r[l]]<u?o=l+1:i=l;u<e[r[o]]&&(o>0&&(t[n]=r[o-1]),r[o]=n)}}for(o=r.length,i=r[o-1];o-- >0;)r[o]=i,i=t[i];return r}function fl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:fl(t)}function fo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function dl(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?dl(t.subTree):null}const pl=e=>e.__isSuspense;function mu(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):ba(e)}const ge=Symbol.for("v-fgt"),xr=Symbol.for("v-txt"),ct=Symbol.for("v-cmt"),In=Symbol.for("v-stc"),pr=[];let Ie=null;function at(e=!1){pr.push(Ie=e?null:[])}function yu(){pr.pop(),Ie=pr[pr.length-1]||null}let br=1;function Yr(e,t=!1){br+=e,e<0&&Ie&&t&&(Ie.hasOnce=!0)}function hl(e){return e.dynamicChildren=br>0?Ie||Wt:null,yu(),br>0&&Ie&&Ie.push(e),e}function dn(e,t,r,n,s,o){return hl(ml(e,t,r,n,s,o,!0))}function Sr(e,t,r,n,s){return hl(ae(e,t,r,n,s,!0))}function Pr(e){return e?e.__v_isVNode===!0:!1}function rr(e,t){return e.type===t.type&&e.key===t.key}const gl=({key:e})=>e??null,Kr=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?fe(e)||ue(e)||V(e)?{i:me,r:e,k:t,f:!!r}:e:null);function ml(e,t=null,r=null,n=0,s=null,o=e===ge?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&gl(t),ref:t&&Kr(t),scopeId:ji,slotScopeIds:null,children:r,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:o,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:me};return l?(Ms(c,r),o&128&&e.normalize(c)):r&&(c.shapeFlag|=fe(r)?8:16),br>0&&!i&&Ie&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Ie.push(c),c}const ae=_u;function _u(e,t=null,r=null,n=0,s=null,o=!1){if((!e||e===Ji)&&(e=ct),Pr(e)){const l=Jt(e,t,!0);return r&&Ms(l,r),br>0&&!o&&Ie&&(l.shapeFlag&6?Ie[Ie.indexOf(e)]=l:Ie.push(l)),l.patchFlag=-2,l}if(xu(e)&&(e=e.__vccOpts),t){t=vu(t);let{class:l,style:c}=t;l&&!fe(l)&&(t.class=ys(l)),oe(c)&&(cn(c)&&!H(c)&&(c=be({},c)),t.style=ms(c))}const i=fe(e)?1:pl(e)?128:Ra(e)?64:oe(e)?4:V(e)?2:0;return ml(e,t,r,n,s,i,o,!0)}function vu(e){return e?cn(e)||ol(e)?be({},e):e:null}function Jt(e,t,r=!1,n=!1){const{props:s,ref:o,patchFlag:i,children:l,transition:c}=e,u=t?yl(s||{},t):s,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&gl(u),ref:t&&t.ref?r&&o?H(o)?o.concat(Kr(t)):[o,Kr(t)]:Kr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Jt(e.ssContent),ssFallback:e.ssFallback&&Jt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&xs(a,c.clone(a)),a}function bu(e=" ",t=0){return ae(xr,null,e,t)}function Dh(e="",t=!1){return t?(at(),Sr(ct,null,e)):ae(ct,null,e)}function Ge(e){return e==null||typeof e=="boolean"?ae(ct):H(e)?ae(ge,null,e.slice()):Pr(e)?vt(e):ae(xr,null,String(e))}function vt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Jt(e)}function Ms(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(H(t))r=16;else if(typeof t=="object")if(n&65){const s=t.default;s&&(s._c&&(s._d=!1),Ms(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!ol(t)?t._ctx=me:s===3&&me&&(me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:me},r=32):(t=String(t),n&64?(r=16,t=[bu(t)]):r=8);e.children=t,e.shapeFlag|=r}function yl(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const s in n)if(s==="class")t.class!==n.class&&(t.class=ys([t.class,n.class]));else if(s==="style")t.style=ms([t.style,n.style]);else if(en(s)){const o=t[s],i=n[s];i&&o!==i&&!(H(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=n[s])}return t}function ze(e,t,r,n=null){Xe(e,t,7,[r,n])}const Su=tl();let Pu=0;function Eu(e,t,r){const n=e.type,s=(t?t.appContext:e.appContext)||Su,o={uid:Pu++,vnode:e,type:n,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new hi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ll(n,s),emitsOptions:rl(n,s),emit:null,emitted:null,propsDefaults:re,inheritAttrs:n.inheritAttrs,ctx:re,data:re,props:re,attrs:re,slots:re,refs:re,setupState:re,setupContext:null,suspense:r,suspenseId:r?r.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 o.ctx={_:o},o.root=t?t.root:o,o.emit=eu.bind(null,o),e.ce&&e.ce(o),o}let ve=null;const Ls=()=>ve||me;let Xr,ts;{const e=on(),t=(r,n)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(n),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};Xr=t("__VUE_INSTANCE_SETTERS__",r=>ve=r),ts=t("__VUE_SSR_SETTERS__",r=>Er=r)}const Or=e=>{const t=ve;return Xr(e),e.scope.on(),()=>{e.scope.off(),Xr(t)}},po=()=>{ve&&ve.scope.off(),Xr(null)};function _l(e){return e.vnode.shapeFlag&4}let Er=!1;function wu(e,t=!1,r=!1){t&&ts(t);const{props:n,children:s}=e.vnode,o=_l(e);iu(e,n,o,t),uu(e,s,r||t);const i=o?Cu(e,t):void 0;return t&&ts(!1),i}function Cu(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Va);const{setup:n}=r;if(n){ot();const s=e.setupContext=n.length>1?bl(e):null,o=Or(e),i=Rr(n,e,0,[e.props,s]),l=li(i);if(it(),o(),(l||e.sp)&&!$t(e)&&Wi(e),l){if(i.then(po,po),t)return i.then(c=>{ho(e,c)}).catch(c=>{an(c,e,0)});e.asyncDep=i}else ho(e,i)}else vl(e)}function ho(e,t,r){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:oe(t)&&(e.setupState=Mi(t)),vl(e)}function vl(e,t,r){const n=e.type;e.render||(e.render=n.render||Je);{const s=Or(e);ot();try{za(e)}finally{it(),s()}}}const Ru={get(e,t){return _e(e,"get",""),e[t]}};function bl(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Ru),slots:e.slots,emit:e.emit,expose:t}}function pn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Mi(ws(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in dr)return dr[r](e)},has(t,r){return r in t||r in dr}})):e.proxy}function Au(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function xu(e){return V(e)&&"__vccOpts"in e}const Q=(e,t)=>ga(e,t,Er);function Mt(e,t,r){try{Yr(-1);const n=arguments.length;return n===2?oe(t)&&!H(t)?Pr(t)?ae(e,null,[t]):ae(e,t):ae(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Pr(r)&&(r=[r]),ae(e,t,r))}finally{Yr(1)}}const Ou="3.5.26";let rs;const go=typeof window<"u"&&window.trustedTypes;if(go)try{rs=go.createPolicy("vue",{createHTML:e=>e})}catch{}const Sl=rs?e=>rs.createHTML(e):e=>e,ku="http://www.w3.org/2000/svg",Iu="http://www.w3.org/1998/Math/MathML",tt=typeof document<"u"?document:null,mo=tt&&tt.createElement("template"),Tu={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const s=t==="svg"?tt.createElementNS(ku,e):t==="mathml"?tt.createElementNS(Iu,e):r?tt.createElement(e,{is:r}):tt.createElement(e);return e==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:e=>tt.createTextNode(e),createComment:e=>tt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,s,o){const i=r?r.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===o||!(s=s.nextSibling)););else{mo.innerHTML=Sl(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=mo.content;if(n==="svg"||n==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,r)}return[i?i.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Mu=Symbol("_vtc");function Lu(e,t,r){const n=e[Mu];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Qr=Symbol("_vod"),Pl=Symbol("_vsh"),jh={name:"show",beforeMount(e,{value:t},{transition:r}){e[Qr]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):nr(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),nr(e,!0),n.enter(e)):n.leave(e,()=>{nr(e,!1)}):nr(e,t))},beforeUnmount(e,{value:t}){nr(e,t)}};function nr(e,t){e.style.display=t?e[Qr]:"none",e[Pl]=!t}const Uu=Symbol(""),Nu=/(?:^|;)\s*display\s*:/;function Du(e,t,r){const n=e.style,s=fe(r);let o=!1;if(r&&!s){if(t)if(fe(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();r[l]==null&&Vr(n,l,"")}else for(const i in t)r[i]==null&&Vr(n,i,"");for(const i in r)i==="display"&&(o=!0),Vr(n,i,r[i])}else if(s){if(t!==r){const i=n[Uu];i&&(r+=";"+i),n.cssText=r,o=Nu.test(r)}}else t&&e.removeAttribute("style");Qr in e&&(e[Qr]=o?n.display:"",e[Pl]&&(n.display="none"))}const yo=/\s*!important$/;function Vr(e,t,r){if(H(r))r.forEach(n=>Vr(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=ju(e,t);yo.test(r)?e.setProperty(Lt(n),r.replace(yo,""),"important"):e[n]=r}}const _o=["Webkit","Moz","ms"],Tn={};function ju(e,t){const r=Tn[t];if(r)return r;let n=Ne(t);if(n!=="filter"&&n in e)return Tn[t]=n;n=sn(n);for(let s=0;s<_o.length;s++){const o=_o[s]+n;if(o in e)return Tn[t]=o}return t}const vo="http://www.w3.org/1999/xlink";function bo(e,t,r,n,s,o=Hc(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(vo,t.slice(6,t.length)):e.setAttributeNS(vo,t,r):r==null||o&&!fi(r)?e.removeAttribute(t):e.setAttribute(t,o?"":ut(r)?String(r):r)}function So(e,t,r,n,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?Sl(r):r);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?e.getAttribute("value")||"":e.value,c=r==null?e.type==="checkbox"?"on":"":String(r);(l!==c||!("_value"in e))&&(e.value=c),r==null&&e.removeAttribute(t),e._value=r;return}let i=!1;if(r===""||r==null){const l=typeof e[t];l==="boolean"?r=fi(r):r==null&&l==="string"?(r="",i=!0):l==="number"&&(r=0,i=!0)}try{e[t]=r}catch{}i&&e.removeAttribute(s||t)}function Kt(e,t,r,n){e.addEventListener(t,r,n)}function Fu(e,t,r,n){e.removeEventListener(t,r,n)}const Po=Symbol("_vei");function Hu(e,t,r,n,s=null){const o=e[Po]||(e[Po]={}),i=o[t];if(n&&i)i.value=n;else{const[l,c]=Bu(t);if(n){const u=o[t]=Wu(n,s);Kt(e,l,u,c)}else i&&(Fu(e,l,i,c),o[t]=void 0)}}const Eo=/(?:Once|Passive|Capture)$/;function Bu(e){let t;if(Eo.test(e)){t={};let n;for(;n=e.match(Eo);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Lt(e.slice(2)),t]}let Mn=0;const Ku=Promise.resolve(),Vu=()=>Mn||(Ku.then(()=>Mn=0),Mn=Date.now());function Wu(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Xe(qu(n,r.value),t,5,[n])};return r.value=e,r.attached=Vu(),r}function qu(e,t){if(H(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>s=>!s._stopped&&n&&n(s))}else return t}const wo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,zu=(e,t,r,n,s,o)=>{const i=s==="svg";t==="class"?Lu(e,n,i):t==="style"?Du(e,r,n):en(t)?ps(t)||Hu(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$u(e,t,n,i))?(So(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&bo(e,t,n,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!fe(n))?So(e,Ne(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),bo(e,t,n,i))};function $u(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&wo(t)&&V(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return wo(t)&&fe(r)?!1:t in e}const Co=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?r=>Hr(t,r):t};function Gu(e){e.target.composing=!0}function Ro(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ln=Symbol("_assign");function Ao(e,t,r){return t&&(e=e.trim()),r&&(e=gs(e)),e}const Fh={created(e,{modifiers:{lazy:t,trim:r,number:n}},s){e[Ln]=Co(s);const o=n||s.props&&s.props.type==="number";Kt(e,t?"change":"input",i=>{i.target.composing||e[Ln](Ao(e.value,r,o))}),(r||o)&&Kt(e,"change",()=>{e.value=Ao(e.value,r,o)}),t||(Kt(e,"compositionstart",Gu),Kt(e,"compositionend",Ro),Kt(e,"change",Ro))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:s,number:o}},i){if(e[Ln]=Co(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?gs(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||s&&e.value.trim()===c)||(e.value=c))}},Ju=["ctrl","shift","alt","meta"],Yu={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ju.some(r=>e[`${r}Key`]&&!t.includes(r))},Hh=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=((s,...o)=>{for(let i=0;i<t.length;i++){const l=Yu[t[i]];if(l&&l(s,t))return}return e(s,...o)}))},Xu=be({patchProp:zu},Tu);let xo;function Qu(){return xo||(xo=du(Xu))}const Zu=((...e)=>{const t=Qu().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=tf(n);if(!s)return;const o=t._component;!V(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=r(s,!1,ef(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t});function ef(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function tf(e){return fe(e)?document.querySelector(e):e}const rf="usehead";function nf(e){return{install(r){r.config.globalProperties.$unhead=e,r.config.globalProperties.$head=e,r.provide(rf,e)}}.install}function sf(e={}){const t=Oc({domOptions:{render:kc(()=>si(t),r=>setTimeout(r,0))},...e});return t.install=nf(t),t}const of="modulepreload",lf=function(e){return"/"+e},Oo={},ko=function(t,r,n){let s=Promise.resolve();if(r&&r.length>0){let c=function(u){return Promise.all(u.map(a=>Promise.resolve(a).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=i?.nonce||i?.getAttribute("nonce");s=c(r.map(u=>{if(u=lf(u),u in Oo)return;Oo[u]=!0;const a=u.endsWith(".css"),f=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const h=document.createElement("link");if(h.rel=a?"stylesheet":of,a||(h.as="script"),h.crossOrigin="",h.href=u,l&&h.setAttribute("nonce",l),document.head.appendChild(h),a)return new Promise((d,y)=>{h.addEventListener("load",d),h.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return s.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};const Vt=typeof document<"u";function El(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function cf(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&El(e.default)}const Y=Object.assign;function Un(e,t){const r={};for(const n in t){const s=t[n];r[n]=Fe(s)?s.map(e):e(s)}return r}const hr=()=>{},Fe=Array.isArray;function Io(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}const wl=/#/g,af=/&/g,uf=/\//g,ff=/=/g,df=/\?/g,Cl=/\+/g,pf=/%5B/g,hf=/%5D/g,Rl=/%5E/g,gf=/%60/g,Al=/%7B/g,mf=/%7C/g,xl=/%7D/g,yf=/%20/g;function Us(e){return e==null?"":encodeURI(""+e).replace(mf,"|").replace(pf,"[").replace(hf,"]")}function _f(e){return Us(e).replace(Al,"{").replace(xl,"}").replace(Rl,"^")}function ns(e){return Us(e).replace(Cl,"%2B").replace(yf,"+").replace(wl,"%23").replace(af,"%26").replace(gf,"`").replace(Al,"{").replace(xl,"}").replace(Rl,"^")}function vf(e){return ns(e).replace(ff,"%3D")}function bf(e){return Us(e).replace(wl,"%23").replace(df,"%3F")}function Sf(e){return bf(e).replace(uf,"%2F")}function wr(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Pf=/\/$/,Ef=e=>e.replace(Pf,"");function Nn(e,t,r="/"){let n,s={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return c=l>=0&&c>l?-1:c,c>=0&&(n=t.slice(0,c),o=t.slice(c,l>0?l:t.length),s=e(o.slice(1))),l>=0&&(n=n||t.slice(0,l),i=t.slice(l,t.length)),n=Af(n??t,r),{fullPath:n+o+i,path:n,query:s,hash:wr(i)}}function wf(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function To(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Cf(e,t,r){const n=t.matched.length-1,s=r.matched.length-1;return n>-1&&n===s&&Yt(t.matched[n],r.matched[s])&&Ol(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Yt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ol(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(!Rf(e[r],t[r]))return!1;return!0}function Rf(e,t){return Fe(e)?Mo(e,t):Fe(t)?Mo(t,e):e?.valueOf()===t?.valueOf()}function Mo(e,t){return Fe(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function Af(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),s=n[n.length-1];(s===".."||s===".")&&n.push("");let o=r.length-1,i,l;for(i=0;i<n.length;i++)if(l=n[i],l!==".")if(l==="..")o>1&&o--;else break;return r.slice(0,o).join("/")+"/"+n.slice(i).join("/")}const ht={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ss=(function(e){return e.pop="pop",e.push="push",e})({}),Dn=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function xf(e){if(!e)if(Vt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ef(e)}const Of=/^[^#]+#/;function kf(e,t){return e.replace(Of,"#")+t}function If(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const hn=()=>({left:window.scrollX,top:window.scrollY});function Tf(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=If(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Lo(e,t){return(history.state?history.state.position-t:-1)+e}const os=new Map;function Mf(e,t){os.set(e,t)}function Lf(e){const t=os.get(e);return os.delete(e),t}function Uf(e){return typeof e=="string"||e&&typeof e=="object"}function kl(e){return typeof e=="string"||typeof e=="symbol"}let ce=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Il=Symbol("");ce.MATCHER_NOT_FOUND+"",ce.NAVIGATION_GUARD_REDIRECT+"",ce.NAVIGATION_ABORTED+"",ce.NAVIGATION_CANCELLED+"",ce.NAVIGATION_DUPLICATED+"";function Xt(e,t){return Y(new Error,{type:e,[Il]:!0},t)}function et(e,t){return e instanceof Error&&Il in e&&(t==null||!!(e.type&t))}const Nf=["params","query","hash"];function Df(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const r of Nf)r in e&&(t[r]=e[r]);return JSON.stringify(t,null,2)}function jf(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<r.length;++n){const s=r[n].replace(Cl," "),o=s.indexOf("="),i=wr(o<0?s:s.slice(0,o)),l=o<0?null:wr(s.slice(o+1));if(i in t){let c=t[i];Fe(c)||(c=t[i]=[c]),c.push(l)}else t[i]=l}return t}function Uo(e){let t="";for(let r in e){const n=e[r];if(r=vf(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(Fe(n)?n.map(s=>s&&ns(s)):[n&&ns(n)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+r,s!=null&&(t+="="+s))})}return t}function Ff(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Fe(n)?n.map(s=>s==null?null:""+s):n==null?n:""+n)}return t}const Hf=Symbol(""),No=Symbol(""),gn=Symbol(""),Ns=Symbol(""),is=Symbol("");function sr(){let e=[];function t(n){return e.push(n),()=>{const s=e.indexOf(n);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function bt(e,t,r,n,s,o=i=>i()){const i=n&&(n.enterCallbacks[s]=n.enterCallbacks[s]||[]);return()=>new Promise((l,c)=>{const u=h=>{h===!1?c(Xt(ce.NAVIGATION_ABORTED,{from:r,to:t})):h instanceof Error?c(h):Uf(h)?c(Xt(ce.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(i&&n.enterCallbacks[s]===i&&typeof h=="function"&&i.push(h),l())},a=o(()=>e.call(n&&n.instances[s],t,r,u));let f=Promise.resolve(a);e.length<3&&(f=f.then(u)),f.catch(h=>c(h))})}function jn(e,t,r,n,s=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(El(c)){const u=(c.__vccOpts||c)[t];u&&o.push(bt(u,r,n,i,l,s))}else{let u=c();o.push(()=>u.then(a=>{if(!a)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const f=cf(a)?a.default:a;i.mods[l]=a,i.components[l]=f;const h=(f.__vccOpts||f)[t];return h&&bt(h,r,n,i,l,s)()}))}}return o}function Bf(e,t){const r=[],n=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const l=t.matched[i];l&&(e.matched.find(u=>Yt(u,l))?n.push(l):r.push(l));const c=e.matched[i];c&&(t.matched.find(u=>Yt(u,c))||s.push(c))}return[r,n,s]}let Kf=()=>location.protocol+"//"+location.host;function Tl(e,t){const{pathname:r,search:n,hash:s}=t,o=e.indexOf("#");if(o>-1){let i=s.includes(e.slice(o))?e.slice(o).length:1,l=s.slice(i);return l[0]!=="/"&&(l="/"+l),To(l,"")}return To(r,e)+n+s}function Vf(e,t,r,n){let s=[],o=[],i=null;const l=({state:h})=>{const d=Tl(e,location),y=r.value,_=t.value;let E=0;if(h){if(r.value=d,t.value=h,i&&i===y){i=null;return}E=_?h.position-_.position:0}else n(d);s.forEach(w=>{w(r.value,y,{delta:E,type:ss.pop,direction:E?E>0?Dn.forward:Dn.back:Dn.unknown})})};function c(){i=r.value}function u(h){s.push(h);const d=()=>{const y=s.indexOf(h);y>-1&&s.splice(y,1)};return o.push(d),d}function a(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(Y({},h.state,{scroll:hn()}),"")}}function f(){for(const h of o)h();o=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",a),document.removeEventListener("visibilitychange",a)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",a),document.addEventListener("visibilitychange",a),{pauseListeners:c,listen:u,destroy:f}}function Do(e,t,r,n=!1,s=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:s?hn():null}}function Wf(e){const{history:t,location:r}=window,n={value:Tl(e,r)},s={value:t.state};s.value||o(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,u,a){const f=e.indexOf("#"),h=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+c:Kf()+e+c;try{t[a?"replaceState":"pushState"](u,"",h),s.value=u}catch(d){console.error(d),r[a?"replace":"assign"](h)}}function i(c,u){o(c,Y({},t.state,Do(s.value.back,c,s.value.forward,!0),u,{position:s.value.position}),!0),n.value=c}function l(c,u){const a=Y({},s.value,t.state,{forward:c,scroll:hn()});o(a.current,a,!0),o(c,Y({},Do(n.value,c,null),{position:a.position+1},u),!1),n.value=c}return{location:n,state:s,push:l,replace:i}}function qf(e){e=xf(e);const t=Wf(e),r=Vf(e,t.state,t.location,t.replace);function n(o,i=!0){i||r.pauseListeners(),history.go(o)}const s=Y({location:"",base:e,go:n,createHref:kf.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}let Ot=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var pe=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(pe||{});const zf={type:Ot.Static,value:""},$f=/[a-zA-Z0-9_]/;function Gf(e){if(!e)return[[]];if(e==="/")return[[zf]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${r})/"${u}": ${d}`)}let r=pe.Static,n=r;const s=[];let o;function i(){o&&s.push(o),o=[]}let l=0,c,u="",a="";function f(){u&&(r===pe.Static?o.push({type:Ot.Static,value:u}):r===pe.Param||r===pe.ParamRegExp||r===pe.ParamRegExpEnd?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Ot.Param,value:u,regexp:a,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=c}for(;l<e.length;){if(c=e[l++],c==="\\"&&r!==pe.ParamRegExp){n=r,r=pe.EscapeNext;continue}switch(r){case pe.Static:c==="/"?(u&&f(),i()):c===":"?(f(),r=pe.Param):h();break;case pe.EscapeNext:h(),r=n;break;case pe.Param:c==="("?r=pe.ParamRegExp:$f.test(c)?h():(f(),r=pe.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case pe.ParamRegExp:c===")"?a[a.length-1]=="\\"?a=a.slice(0,-1)+c:r=pe.ParamRegExpEnd:a+=c;break;case pe.ParamRegExpEnd:f(),r=pe.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--,a="";break;default:t("Unknown state");break}}return r===pe.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),f(),i(),s}const jo="[^/]+?",Jf={sensitive:!1,strict:!1,start:!0,end:!0};var Ee=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Ee||{});const Yf=/[.+*?^${}()[\]/\\]/g;function Xf(e,t){const r=Y({},Jf,t),n=[];let s=r.start?"^":"";const o=[];for(const u of e){const a=u.length?[]:[Ee.Root];r.strict&&!u.length&&(s+="/");for(let f=0;f<u.length;f++){const h=u[f];let d=Ee.Segment+(r.sensitive?Ee.BonusCaseSensitive:0);if(h.type===Ot.Static)f||(s+="/"),s+=h.value.replace(Yf,"\\$&"),d+=Ee.Static;else if(h.type===Ot.Param){const{value:y,repeatable:_,optional:E,regexp:w}=h;o.push({name:y,repeatable:_,optional:E});const R=w||jo;if(R!==jo){d+=Ee.BonusCustomRegExp;try{`${R}`}catch(x){throw new Error(`Invalid custom RegExp for param "${y}" (${R}): `+x.message)}}let k=_?`((?:${R})(?:/(?:${R}))*)`:`(${R})`;f||(k=E&&u.length<2?`(?:/${k})`:"/"+k),E&&(k+="?"),s+=k,d+=Ee.Dynamic,E&&(d+=Ee.BonusOptional),_&&(d+=Ee.BonusRepeatable),R===".*"&&(d+=Ee.BonusWildcard)}a.push(d)}n.push(a)}if(r.strict&&r.end){const u=n.length-1;n[u][n[u].length-1]+=Ee.BonusStrict}r.strict||(s+="/?"),r.end?s+="$":r.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const i=new RegExp(s,r.sensitive?"":"i");function l(u){const a=u.match(i),f={};if(!a)return null;for(let h=1;h<a.length;h++){const d=a[h]||"",y=o[h-1];f[y.name]=d&&y.repeatable?d.split("/"):d}return f}function c(u){let a="",f=!1;for(const h of e){(!f||!a.endsWith("/"))&&(a+="/"),f=!1;for(const d of h)if(d.type===Ot.Static)a+=d.value;else if(d.type===Ot.Param){const{value:y,repeatable:_,optional:E}=d,w=y in u?u[y]:"";if(Fe(w)&&!_)throw new Error(`Provided param "${y}" is an array but it is not repeatable (* or + modifiers)`);const R=Fe(w)?w.join("/"):w;if(!R)if(E)h.length<2&&(a.endsWith("/")?a=a.slice(0,-1):f=!0);else throw new Error(`Missing required param "${y}"`);a+=R}}return a||"/"}return{re:i,score:n,keys:o,parse:l,stringify:c}}function Qf(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===Ee.Static+Ee.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Ee.Static+Ee.Segment?1:-1:0}function Ml(e,t){let r=0;const n=e.score,s=t.score;for(;r<n.length&&r<s.length;){const o=Qf(n[r],s[r]);if(o)return o;r++}if(Math.abs(s.length-n.length)===1){if(Fo(n))return 1;if(Fo(s))return-1}return s.length-n.length}function Fo(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Zf={strict:!1,end:!0,sensitive:!1};function ed(e,t,r){const n=Xf(Gf(e.path),r),s=Y(n,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function td(e,t){const r=[],n=new Map;t=Io(Zf,t);function s(f){return n.get(f)}function o(f,h,d){const y=!d,_=Bo(f);_.aliasOf=d&&d.record;const E=Io(t,f),w=[_];if("alias"in f){const x=typeof f.alias=="string"?[f.alias]:f.alias;for(const U of x)w.push(Bo(Y({},_,{components:d?d.record.components:_.components,path:U,aliasOf:d?d.record:_})))}let R,k;for(const x of w){const{path:U}=x;if(h&&U[0]!=="/"){const Z=h.record.path,q=Z[Z.length-1]==="/"?"":"/";x.path=h.record.path+(U&&q+U)}if(R=ed(x,h,E),d?d.alias.push(R):(k=k||R,k!==R&&k.alias.push(R),y&&f.name&&!Ko(R)&&i(f.name)),Ll(R)&&c(R),_.children){const Z=_.children;for(let q=0;q<Z.length;q++)o(Z[q],R,d&&d.children[q])}d=d||R}return k?()=>{i(k)}:hr}function i(f){if(kl(f)){const h=n.get(f);h&&(n.delete(f),r.splice(r.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=r.indexOf(f);h>-1&&(r.splice(h,1),f.record.name&&n.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function l(){return r}function c(f){const h=sd(f,r);r.splice(h,0,f),f.record.name&&!Ko(f)&&n.set(f.record.name,f)}function u(f,h){let d,y={},_,E;if("name"in f&&f.name){if(d=n.get(f.name),!d)throw Xt(ce.MATCHER_NOT_FOUND,{location:f});E=d.record.name,y=Y(Ho(h.params,d.keys.filter(k=>!k.optional).concat(d.parent?d.parent.keys.filter(k=>k.optional):[]).map(k=>k.name)),f.params&&Ho(f.params,d.keys.map(k=>k.name))),_=d.stringify(y)}else if(f.path!=null)_=f.path,d=r.find(k=>k.re.test(_)),d&&(y=d.parse(_),E=d.record.name);else{if(d=h.name?n.get(h.name):r.find(k=>k.re.test(h.path)),!d)throw Xt(ce.MATCHER_NOT_FOUND,{location:f,currentLocation:h});E=d.record.name,y=Y({},h.params,f.params),_=d.stringify(y)}const w=[];let R=d;for(;R;)w.unshift(R.record),R=R.parent;return{name:E,path:_,params:y,matched:w,meta:nd(w)}}e.forEach(f=>o(f));function a(){r.length=0,n.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:a,getRoutes:l,getRecordMatcher:s}}function Ho(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function Bo(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:rd(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function rd(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function Ko(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function nd(e){return e.reduce((t,r)=>Y(t,r.meta),{})}function sd(e,t){let r=0,n=t.length;for(;r!==n;){const o=r+n>>1;Ml(e,t[o])<0?n=o:r=o+1}const s=od(e);return s&&(n=t.lastIndexOf(s,n-1)),n}function od(e){let t=e;for(;t=t.parent;)if(Ll(t)&&Ml(e,t)===0)return t}function Ll({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Vo(e){const t=de(gn),r=de(Ns),n=Q(()=>{const c=It(e.to);return t.resolve(c)}),s=Q(()=>{const{matched:c}=n.value,{length:u}=c,a=c[u-1],f=r.matched;if(!a||!f.length)return-1;const h=f.findIndex(Yt.bind(null,a));if(h>-1)return h;const d=Wo(c[u-2]);return u>1&&Wo(a)===d&&f[f.length-1].path!==d?f.findIndex(Yt.bind(null,c[u-2])):h}),o=Q(()=>s.value>-1&&ud(r.params,n.value.params)),i=Q(()=>s.value>-1&&s.value===r.matched.length-1&&Ol(r.params,n.value.params));function l(c={}){if(ad(c)){const u=t[It(e.replace)?"replace":"push"](It(e.to)).catch(hr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:Q(()=>n.value.href),isActive:o,isExactActive:i,navigate:l}}function id(e){return e.length===1?e[0]:e}const ld=ie({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Vo,setup(e,{slots:t}){const r=Cr(Vo(e)),{options:n}=de(gn),s=Q(()=>({[qo(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[qo(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const o=t.default&&id(t.default(r));return e.custom?o:Mt("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},o)}}}),cd=ld;function ad(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ud(e,t){for(const r in t){const n=t[r],s=e[r];if(typeof n=="string"){if(n!==s)return!1}else if(!Fe(s)||s.length!==n.length||n.some((o,i)=>o.valueOf()!==s[i].valueOf()))return!1}return!0}function Wo(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const qo=(e,t,r)=>e??t??r,fd=ie({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=de(is),s=Q(()=>e.route||n.value),o=de(No,0),i=Q(()=>{let u=It(o);const{matched:a}=s.value;let f;for(;(f=a[u])&&!f.components;)u++;return u}),l=Q(()=>s.value.matched[i.value]);Ye(No,Q(()=>i.value+1)),Ye(Hf,l),Ye(is,s);const c=He();return Pt(()=>[c.value,l.value,e.name],([u,a,f],[h,d,y])=>{a&&(a.instances[f]=u,d&&d!==a&&u&&u===h&&(a.leaveGuards.size||(a.leaveGuards=d.leaveGuards),a.updateGuards.size||(a.updateGuards=d.updateGuards))),u&&a&&(!d||!Yt(a,d)||!h)&&(a.enterCallbacks[f]||[]).forEach(_=>_(u))},{flush:"post"}),()=>{const u=s.value,a=e.name,f=l.value,h=f&&f.components[a];if(!h)return zo(r.default,{Component:h,route:u});const d=f.props[a],y=d?d===!0?u.params:typeof d=="function"?d(u):d:null,E=Mt(h,Y({},y,t,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(f.instances[a]=null)},ref:c}));return zo(r.default,{Component:E,route:u})||E}}});function zo(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const dd=fd;function pd(e){const t=td(e.routes,e),r=e.parseQuery||jf,n=e.stringifyQuery||Uo,s=e.history,o=sr(),i=sr(),l=sr(),c=Jn(ht);let u=ht;Vt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=Un.bind(null,S=>""+S),f=Un.bind(null,Sf),h=Un.bind(null,wr);function d(S,L){let T,N;return kl(S)?(T=t.getRecordMatcher(S),N=L):N=S,t.addRoute(N,T)}function y(S){const L=t.getRecordMatcher(S);L&&t.removeRoute(L)}function _(){return t.getRoutes().map(S=>S.record)}function E(S){return!!t.getRecordMatcher(S)}function w(S,L){if(L=Y({},L||c.value),typeof S=="string"){const m=Nn(r,S,L.path),v=t.resolve({path:m.path},L),P=s.createHref(m.fullPath);return Y(m,v,{params:h(v.params),hash:wr(m.hash),redirectedFrom:void 0,href:P})}let T;if(S.path!=null)T=Y({},S,{path:Nn(r,S.path,L.path).path});else{const m=Y({},S.params);for(const v in m)m[v]==null&&delete m[v];T=Y({},S,{params:f(m)}),L.params=f(L.params)}const N=t.resolve(T,L),z=S.hash||"";N.params=a(h(N.params));const p=wf(n,Y({},S,{hash:_f(z),path:N.path})),g=s.createHref(p);return Y({fullPath:p,hash:z,query:n===Uo?Ff(S.query):S.query||{}},N,{redirectedFrom:void 0,href:g})}function R(S){return typeof S=="string"?Nn(r,S,c.value.path):Y({},S)}function k(S,L){if(u!==S)return Xt(ce.NAVIGATION_CANCELLED,{from:L,to:S})}function x(S){return q(S)}function U(S){return x(Y(R(S),{replace:!0}))}function Z(S,L){const T=S.matched[S.matched.length-1];if(T&&T.redirect){const{redirect:N}=T;let z=typeof N=="function"?N(S,L):N;return typeof z=="string"&&(z=z.includes("?")||z.includes("#")?z=R(z):{path:z},z.params={}),Y({query:S.query,hash:S.hash,params:z.path!=null?{}:S.params},z)}}function q(S,L){const T=u=w(S),N=c.value,z=S.state,p=S.force,g=S.replace===!0,m=Z(T,N);if(m)return q(Y(R(m),{state:typeof m=="object"?Y({},z,m.state):z,force:p,replace:g}),L||T);const v=T;v.redirectedFrom=L;let P;return!p&&Cf(n,N,T)&&(P=Xt(ce.NAVIGATION_DUPLICATED,{to:v,from:N}),Ke(N,N,!0,!1)),(P?Promise.resolve(P):ee(v,N)).catch(b=>et(b)?et(b,ce.NAVIGATION_GUARD_REDIRECT)?b:pt(b):J(b,v,N)).then(b=>{if(b){if(et(b,ce.NAVIGATION_GUARD_REDIRECT))return q(Y({replace:g},R(b.to),{state:typeof b.to=="object"?Y({},z,b.to.state):z,force:p}),L||v)}else b=Oe(v,N,!0,g,z);return he(v,N,b),b})}function K(S,L){const T=k(S,L);return T?Promise.reject(T):Promise.resolve()}function F(S){const L=Dt.values().next().value;return L&&typeof L.runWithContext=="function"?L.runWithContext(S):S()}function ee(S,L){let T;const[N,z,p]=Bf(S,L);T=jn(N.reverse(),"beforeRouteLeave",S,L);for(const m of N)m.leaveGuards.forEach(v=>{T.push(bt(v,S,L))});const g=K.bind(null,S,L);return T.push(g),Me(T).then(()=>{T=[];for(const m of o.list())T.push(bt(m,S,L));return T.push(g),Me(T)}).then(()=>{T=jn(z,"beforeRouteUpdate",S,L);for(const m of z)m.updateGuards.forEach(v=>{T.push(bt(v,S,L))});return T.push(g),Me(T)}).then(()=>{T=[];for(const m of p)if(m.beforeEnter)if(Fe(m.beforeEnter))for(const v of m.beforeEnter)T.push(bt(v,S,L));else T.push(bt(m.beforeEnter,S,L));return T.push(g),Me(T)}).then(()=>(S.matched.forEach(m=>m.enterCallbacks={}),T=jn(p,"beforeRouteEnter",S,L,F),T.push(g),Me(T))).then(()=>{T=[];for(const m of i.list())T.push(bt(m,S,L));return T.push(g),Me(T)}).catch(m=>et(m,ce.NAVIGATION_CANCELLED)?m:Promise.reject(m))}function he(S,L,T){l.list().forEach(N=>F(()=>N(S,L,T)))}function Oe(S,L,T,N,z){const p=k(S,L);if(p)return p;const g=L===ht,m=Vt?history.state:{};T&&(N||g?s.replace(S.fullPath,Y({scroll:g&&m&&m.scroll},z)):s.push(S.fullPath,z)),c.value=S,Ke(S,L,T,g),pt()}let Ce;function Et(){Ce||(Ce=s.listen((S,L,T)=>{if(!wt.listening)return;const N=w(S),z=Z(N,wt.currentRoute.value);if(z){q(Y(z,{replace:!0,force:!0}),N).catch(hr);return}u=N;const p=c.value;Vt&&Mf(Lo(p.fullPath,T.delta),hn()),ee(N,p).catch(g=>et(g,ce.NAVIGATION_ABORTED|ce.NAVIGATION_CANCELLED)?g:et(g,ce.NAVIGATION_GUARD_REDIRECT)?(q(Y(R(g.to),{force:!0}),N).then(m=>{et(m,ce.NAVIGATION_ABORTED|ce.NAVIGATION_DUPLICATED)&&!T.delta&&T.type===ss.pop&&s.go(-1,!1)}).catch(hr),Promise.reject()):(T.delta&&s.go(-T.delta,!1),J(g,N,p))).then(g=>{g=g||Oe(N,p,!1),g&&(T.delta&&!et(g,ce.NAVIGATION_CANCELLED)?s.go(-T.delta,!1):T.type===ss.pop&&et(g,ce.NAVIGATION_ABORTED|ce.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),he(N,p,g)}).catch(hr)}))}let dt=sr(),le=sr(),W;function J(S,L,T){pt(S);const N=le.list();return N.length?N.forEach(z=>z(S,L,T)):console.error(S),Promise.reject(S)}function Qe(){return W&&c.value!==ht?Promise.resolve():new Promise((S,L)=>{dt.add([S,L])})}function pt(S){return W||(W=!S,Et(),dt.list().forEach(([L,T])=>S?T(S):L()),dt.reset()),S}function Ke(S,L,T,N){const{scrollBehavior:z}=e;if(!Vt||!z)return Promise.resolve();const p=!T&&Lf(Lo(S.fullPath,0))||(N||!T)&&history.state&&history.state.scroll||null;return Cs().then(()=>z(S,L,p)).then(g=>g&&Tf(g)).catch(g=>J(g,S,L))}const Re=S=>s.go(S);let Nt;const Dt=new Set,wt={currentRoute:c,listening:!0,addRoute:d,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:E,getRoutes:_,resolve:w,options:e,push:x,replace:U,go:Re,back:()=>Re(-1),forward:()=>Re(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:le.add,isReady:Qe,install(S){S.component("RouterLink",cd),S.component("RouterView",dd),S.config.globalProperties.$router=wt,Object.defineProperty(S.config.globalProperties,"$route",{enumerable:!0,get:()=>It(c)}),Vt&&!Nt&&c.value===ht&&(Nt=!0,x(s.location).catch(N=>{}));const L={};for(const N in ht)Object.defineProperty(L,N,{get:()=>c.value[N],enumerable:!0});S.provide(gn,wt),S.provide(Ns,Ii(L)),S.provide(is,c);const T=S.unmount;Dt.add(S),S.unmount=function(){Dt.delete(S),Dt.size<1&&(u=ht,Ce&&Ce(),Ce=null,c.value=ht,Nt=!1,W=!1),T()}}};function Me(S){return S.reduce((L,T)=>L.then(()=>F(T)),Promise.resolve())}return wt}function Bh(){return de(gn)}function Kh(e){return de(Ns)}function hd(e){return document.readyState==="loading"?new Promise(t=>{document.addEventListener("DOMContentLoaded",()=>t(e))}):Promise.resolve(e)}const gd=ie({setup(e,{slots:t}){const r=He(!1);return $i(()=>r.value=!0),()=>r.value?t.default&&t.default({}):t.placeholder&&t.placeholder({})}});function md(e){try{return JSON.parse(e||"{}")}catch(t){return console.error("[SSG] On state deserialization -",t,e),{}}}function yd(e,t,r,n){const{transformState:s,registerComponents:o=!0,useHead:i=!0,rootContainer:l="#app"}={};async function c(u){const a=Zu(e);let f;i&&a.use(f=sf());const h=pd({history:qf(t.base),...t}),{routes:d}=t;o&&a.component("ClientOnly",gd);const y=[],w={app:a,head:f,isClient:!0,router:h,routes:d,onSSRAppRendered:()=>{},triggerOnSSRAppRendered:()=>Promise.all(y.map(U=>U())),initialState:{},transformState:s,routePath:u};await hd(),w.initialState=s?.(window.__INITIAL_STATE__||{})||md(window.__INITIAL_STATE__),await r?.(w),a.use(h);let R,k=!0;h.beforeEach((U,Z,q)=>{(k||R&&R===U.path)&&(k=!1,R=U.path,U.meta.state=w.initialState),q()});const x=w.initialState;return{...w,initialState:x}}return(async()=>{const{app:u,router:a}=await c();await a.isReady(),u.mount(l,!0)})(),c}let Ul;const mn=e=>Ul=e,Nl=Symbol();function ls(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var gr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(gr||(gr={}));function _d(){const e=gi(!0),t=e.run(()=>He({}));let r=[],n=[];const s=ws({install(o){mn(s),s._a=o,o.provide(Nl,s),o.config.globalProperties.$pinia=s,n.forEach(i=>r.push(i)),n=[]},use(o){return this._a?r.push(o):n.push(o),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return s}const Dl=()=>{};function $o(e,t,r,n=Dl){e.add(t);const s=()=>{e.delete(t)&&n()};return!r&&mi()&&Kc(s),s}function Ft(e,...t){e.forEach(r=>{r(...t)})}const vd=e=>e(),Go=Symbol(),Fn=Symbol();function cs(e,t){e instanceof Map&&t instanceof Map?t.forEach((r,n)=>e.set(n,r)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const n=t[r],s=e[r];ls(s)&&ls(n)&&e.hasOwnProperty(r)&&!ue(n)&&!st(n)?e[r]=cs(s,n):e[r]=n}return e}const bd=Symbol();function Sd(e){return!ls(e)||!Object.prototype.hasOwnProperty.call(e,bd)}const{assign:mt}=Object;function Pd(e){return!!(ue(e)&&e.effect)}function Ed(e,t,r,n){const{state:s,actions:o,getters:i}=t,l=r.state.value[e];let c;function u(){l||(r.state.value[e]=s?s():{});const a=fa(r.state.value[e]);return mt(a,o,Object.keys(i||{}).reduce((f,h)=>(f[h]=ws(Q(()=>{mn(r);const d=r._s.get(e);return i[h].call(d,d)})),f),{}))}return c=jl(e,u,t,r,n,!0),c}function jl(e,t,r={},n,s,o){let i;const l=mt({actions:{}},r),c={deep:!0};let u,a,f=new Set,h=new Set,d;const y=n.state.value[e];!o&&!y&&(n.state.value[e]={}),He({});let _;function E(K){let F;u=a=!1,typeof K=="function"?(K(n.state.value[e]),F={type:gr.patchFunction,storeId:e,events:d}):(cs(n.state.value[e],K),F={type:gr.patchObject,payload:K,storeId:e,events:d});const ee=_=Symbol();Cs().then(()=>{_===ee&&(u=!0)}),a=!0,Ft(f,F,n.state.value[e])}const w=o?function(){const{state:F}=r,ee=F?F():{};this.$patch(he=>{mt(he,ee)})}:Dl;function R(){i.stop(),f.clear(),h.clear(),n._s.delete(e)}const k=(K,F="")=>{if(Go in K)return K[Fn]=F,K;const ee=function(){mn(n);const he=Array.from(arguments),Oe=new Set,Ce=new Set;function Et(W){Oe.add(W)}function dt(W){Ce.add(W)}Ft(h,{args:he,name:ee[Fn],store:U,after:Et,onError:dt});let le;try{le=K.apply(this&&this.$id===e?this:U,he)}catch(W){throw Ft(Ce,W),W}return le instanceof Promise?le.then(W=>(Ft(Oe,W),W)).catch(W=>(Ft(Ce,W),Promise.reject(W))):(Ft(Oe,le),le)};return ee[Go]=!0,ee[Fn]=F,ee},x={_p:n,$id:e,$onAction:$o.bind(null,h),$patch:E,$reset:w,$subscribe(K,F={}){const ee=$o(f,K,F.detached,()=>he()),he=i.run(()=>Pt(()=>n.state.value[e],Oe=>{(F.flush==="sync"?a:u)&&K({storeId:e,type:gr.direct,events:d},Oe)},mt({},c,F)));return ee},$dispose:R},U=Cr(x);n._s.set(e,U);const q=(n._a&&n._a.runWithContext||vd)(()=>n._e.run(()=>(i=gi()).run(()=>t({action:k}))));for(const K in q){const F=q[K];if(ue(F)&&!Pd(F)||st(F))o||(y&&Sd(F)&&(ue(F)?F.value=y[K]:cs(F,y[K])),n.state.value[e][K]=F);else if(typeof F=="function"){const ee=k(F,K);q[K]=ee,l.actions[K]=F}}return mt(U,q),mt(G(U),q),Object.defineProperty(U,"$state",{get:()=>n.state.value[e],set:K=>{E(F=>{mt(F,K)})}}),n._p.forEach(K=>{mt(U,i.run(()=>K({store:U,app:n._a,pinia:n,options:l})))}),y&&o&&r.hydrate&&r.hydrate(U.$state,y),u=!0,a=!0,U}function Fl(e,t,r){let n;const s=typeof t=="function";n=s?r:t;function o(i,l){const c=Sa();return i=i||(c?de(Nl,null):null),i&&mn(i),i=Ul,i._s.has(e)||(s?jl(e,t,n,i):Ed(e,n,i)),i._s.get(e)}return o.$id=e,o}var wd=class Hl extends Error{static kind="ClerkError";clerkError=!0;code;longMessage;docsUrl;cause;get name(){return this.constructor.name}constructor(t){super(new.target.formatMessage(new.target.kind,t.message,t.code,t.docsUrl),{cause:t.cause}),Object.setPrototypeOf(this,Hl.prototype),this.code=t.code,this.docsUrl=t.docsUrl,this.longMessage=t.longMessage,this.cause=t.cause}toString(){return`[${this.name}]
3
- Message:${this.message}`}static formatMessage(t,r,n,s){const o="Clerk:",i=new RegExp(o.replace(" ","\\s*"),"i");return r=r.replace(i,""),r=`${o} ${r.trim()}
4
-
5
- (code="${n}")
6
-
7
- `,s&&(r+=`
8
-
9
- Docs: ${s}`),r}};const Cd=Object.freeze({InvalidProxyUrlErrorMessage:"The proxyUrl passed to Clerk is invalid. The expected value for proxyUrl is an absolute URL or a relative path with a leading '/'. (key={{url}})",InvalidPublishableKeyErrorMessage:"The publishableKey passed to Clerk is invalid. You can get your Publishable key at https://dashboard.clerk.com/last-active?path=api-keys. (key={{key}})",MissingPublishableKeyErrorMessage:"Missing publishableKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.",MissingSecretKeyErrorMessage:"Missing secretKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.",MissingClerkProvider:"{{source}} can only be used within the <ClerkProvider /> component. Learn more: https://clerk.com/docs/components/clerk-provider"});function Bl({packageName:e,customMessages:t}){let r=e;function n(o,i){if(!i)return`${r}: ${o}`;let l=o;const c=o.matchAll(/{{([a-zA-Z0-9-_]+)}}/g);for(const u of c){const a=(i[u[1]]||"").toString();l=l.replace(`{{${u[1]}}}`,a)}return`${r}: ${l}`}const s={...Cd,...t};return{setPackageName({packageName:o}){return typeof o=="string"&&(r=o),this},setMessages({customMessages:o}){return Object.assign(s,o||{}),this},throwInvalidPublishableKeyError(o){throw new Error(n(s.InvalidPublishableKeyErrorMessage,o))},throwInvalidProxyUrl(o){throw new Error(n(s.InvalidProxyUrlErrorMessage,o))},throwMissingPublishableKeyError(){throw new Error(n(s.MissingPublishableKeyErrorMessage))},throwMissingSecretKeyError(){throw new Error(n(s.MissingSecretKeyErrorMessage))},throwMissingClerkProviderError(o){throw new Error(n(s.MissingClerkProvider,o))},throw(o){throw new Error(n(o))}}}var as=class Kl extends wd{static kind="ClerkRuntimeError";clerkRuntimeError=!0;constructor(t,r){super({...r,message:t}),Object.setPrototypeOf(this,Kl.prototype)}},Be=Bl({packageName:"@clerk/vue"});function Rd(e){Be.setMessages(e).setPackageName(e)}const Ad={strict_mfa:{afterMinutes:10,level:"multi_factor"},strict:{afterMinutes:10,level:"second_factor"},moderate:{afterMinutes:60,level:"second_factor"},lax:{afterMinutes:1440,level:"second_factor"}},xd=new Set(["first_factor","second_factor","multi_factor"]),Od=new Set(["strict_mfa","strict","moderate","lax"]),kd=e=>typeof e=="number"&&e>0,Id=e=>xd.has(e),Td=e=>Od.has(e),Hn=e=>e.replace(/^(org:)*/,"org:"),Md=(e,t)=>{const{orgId:r,orgRole:n,orgPermissions:s}=t;return!e.role&&!e.permission||!r||!n||!s?null:e.permission?s.includes(Hn(e.permission)):e.role?Hn(n)===Hn(e.role):null},Jo=(e,t)=>{const{org:r,user:n}=Ud(e),[s,o]=t.split(":"),i=o||s;return s==="org"?r.includes(i):s==="user"?n.includes(i):[...r,...n].includes(i)},Ld=(e,t)=>{const{features:r,plans:n}=t;return e.feature&&r?Jo(r,e.feature):e.plan&&n?Jo(n,e.plan):null},Ud=e=>{const t=e?e.split(",").map(r=>r.trim()):[];return{org:t.filter(r=>r.split(":")[0].includes("o")).map(r=>r.split(":")[1]),user:t.filter(r=>r.split(":")[0].includes("u")).map(r=>r.split(":")[1])}},Nd=e=>{if(!e)return!1;const t=s=>typeof s=="string"?Ad[s]:s,r=typeof e=="string"&&Td(e),n=typeof e=="object"&&Id(e.level)&&kd(e.afterMinutes);return r||n?t.bind(null,e):!1},Dd=(e,{factorVerificationAge:t})=>{if(!e.reverification||!t)return null;const r=Nd(e.reverification);if(!r)return null;const{level:n,afterMinutes:s}=r(),[o,i]=t,l=o!==-1?s>o:null,c=i!==-1?s>i:null;switch(n){case"first_factor":return l;case"second_factor":return i!==-1?c:l;case"multi_factor":return i===-1?l:l&&c}},jd=e=>t=>{if(!e.userId)return!1;const r=Ld(t,e),n=Md(t,e),s=Dd(t,e);return[r||n,s].some(o=>o===null)?[r||n,s].some(o=>o===!0):[r||n,s].every(o=>o===!0)},Fd=({authObject:{sessionId:e,sessionStatus:t,userId:r,actor:n,orgId:s,orgRole:o,orgSlug:i,signOut:l,getToken:c,has:u,sessionClaims:a},options:{treatPendingAsSignedOut:f=!0}})=>{if(e===void 0&&r===void 0)return{isLoaded:!1,isSignedIn:void 0,sessionId:e,sessionClaims:void 0,userId:r,actor:void 0,orgId:void 0,orgRole:void 0,orgSlug:void 0,has:void 0,signOut:l,getToken:c};if(e===null&&r===null)return{isLoaded:!0,isSignedIn:!1,sessionId:e,userId:r,sessionClaims:null,actor:null,orgId:null,orgRole:null,orgSlug:null,has:()=>!1,signOut:l,getToken:c};if(f&&t==="pending")return{isLoaded:!0,isSignedIn:!1,sessionId:null,userId:null,sessionClaims:null,actor:null,orgId:null,orgRole:null,orgSlug:null,has:()=>!1,signOut:l,getToken:c};if(e&&a&&r&&s&&o)return{isLoaded:!0,isSignedIn:!0,sessionId:e,sessionClaims:a,userId:r,actor:n||null,orgId:s,orgRole:o,orgSlug:i||null,has:u,signOut:l,getToken:c};if(e&&a&&r&&!s)return{isLoaded:!0,isSignedIn:!0,sessionId:e,sessionClaims:a,userId:r,actor:n||null,orgId:null,orgRole:null,orgSlug:null,has:u,signOut:l,getToken:c}};var Vl=Symbol("clerk"),Wl=Symbol("UserButton"),Ds=Symbol("UserButton.MenuItems"),yn=Symbol("UserProfile"),_n=Symbol("OrganizationProfile");function js(e){const t=de(Vl);return t||Be.throw(`${e} can only be used when the Vue plugin is installed. Learn more: https://clerk.com/docs/reference/vue/clerk-plugin`)}var Ut=()=>{const{clerk:e}=js("useClerk");return e},Hd=e=>`You've passed multiple children components to <${e}/>. You can only pass a single child component or text.`,Bd="Invalid state. Feel free to submit a bug or reach out to support here: https://clerk.com/support",Kd="<UserButton.Action /> component needs to be a direct child of `<UserButton.MenuItems />`.",Vd="<UserButton.Link /> component needs to be a direct child of `<UserButton.MenuItems />`.",Wd="Missing requirements. <UserButton.Link /> component requires props: href, label and slots: labelIcon.",qd="Missing requirements. <UserButton.Action /> component requires props: label and slots: labelIcon.",zd="<UserButton.MenuItems /> component needs to be a direct child of `<UserButton />`.",$d=e=>`Missing requirements. <${e}.Page /> component requires props: url, label and slots: labelIcon and a default slot for page content`,Gd=e=>`Missing requirements. <${e}.Link /> component requires the following props: url, label and slots: labelIcon.`,Jd="<UserProfile.Page /> component needs to be a direct child of `<UserProfile />` or `<UserButton />`.",Yd="<UserProfile.Link /> component needs to be a direct child of `<UserProfile />` or `<UserButton />`.",Xd="<OrganizationProfile.Page /> component needs to be a direct child of `<OrganizationProfile />` or `<OrganizationSwitcher />`.",Qd="<OrganizationProfile.Link /> component needs to be a direct child of `<OrganizationProfile />` or `<OrganizationSwitcher />`.",Zd=(e,t)=>e?e[0].type===xr?Mt("button",e):e:Mt("button",t),ep=(e,t)=>Array.isArray(e)?e.length>1?Be.throw(Hd(t)):e[0]:e;function tp(e){const t={};for(const r in e.value)t[r]=Q(()=>e.value[r]);return t}function ql(e){return new Promise(t=>{Pt(e,r=>{r?.loaded&&t(r)},{immediate:!0})})}function rp(e){return async t=>{const r=await ql(e);return r.session?r.session.getToken(t):null}}function np(e){return async(...t)=>(await ql(e)).signOut(...t)}var Fs=(e={})=>{const{clerk:t,authCtx:r}=js("useAuth"),n=rp(t),s=np(t),o=Q(()=>{const{userId:i,orgId:l,orgRole:c,orgPermissions:u,sessionClaims:a,factorVerificationAge:f}=r.value,h=jd({userId:i,orgId:l,orgRole:c,orgPermissions:u,factorVerificationAge:f,features:a?.fea||"",plans:a?.pla||""}),d=Fd({authObject:{...r.value,getToken:n,signOut:s,has:h},options:{treatPendingAsSignedOut:e.treatPendingAsSignedOut}});return d||Be.throw(Bd)});return tp(o)},kr=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r};const sp=[".lcl.dev",".stg.dev",".lclstage.dev",".stgstage.dev",".dev.lclclerk.com",".stg.lclclerk.com",".accounts.lclclerk.com","accountsstage.dev","accounts.dev"],zl=e=>typeof atob<"u"&&typeof atob=="function"?atob(e):typeof global<"u"&&global.Buffer?new global.Buffer(e,"base64").toString():e,$l="pk_live_",op="pk_test_";function Gl(e){if(!e.endsWith("$"))return!1;const t=e.slice(0,-1);return t.includes("$")?!1:t.includes(".")}function Yo(e,t={}){if(e=e||"",!e||!Xo(e)){if(t.fatal&&!e)throw new Error("Publishable key is missing. Ensure that your publishable key is correctly configured. Double-check your environment configuration for your keys, or access them here: https://dashboard.clerk.com/last-active?path=api-keys");if(t.fatal&&!Xo(e))throw new Error("Publishable key not valid.");return null}const r=e.startsWith($l)?"production":"development";let n;try{n=zl(e.split("_")[2])}catch{if(t.fatal)throw new Error("Publishable key not valid: Failed to decode key.");return null}if(!Gl(n)){if(t.fatal)throw new Error("Publishable key not valid: Decoded key has invalid format.");return null}let s=n.slice(0,-1);return t.proxyUrl?s=t.proxyUrl:r!=="development"&&t.domain&&t.isSatellite&&(s=`clerk.${t.domain}`),{instanceType:r,frontendApi:s}}function Xo(e=""){try{if(!(e.startsWith($l)||e.startsWith(op)))return!1;const t=e.split("_");if(t.length!==3)return!1;const r=t[2];return r?Gl(zl(r)):!1}catch{return!1}}function ip(){const e=new Map;return{isDevOrStagingUrl:t=>{if(!t)return!1;const r=typeof t=="string"?t:t.hostname;let n=e.get(r);return n===void 0&&(n=sp.some(s=>r.endsWith(s)),e.set(r,n)),n}}}const lp={initialDelay:125,maxDelayBetweenRetries:0,factor:2,shouldRetry:(e,t)=>t<5,retryImmediately:!1,jitter:!0},cp=100,Jl=async e=>new Promise(t=>setTimeout(t,e)),Yl=(e,t)=>t?e*(1+Math.random()):e,ap=e=>{let t=0;const r=()=>{const n=e.initialDelay,s=e.factor;let o=n*Math.pow(s,t);return o=Yl(o,e.jitter),Math.min(e.maxDelayBetweenRetries||o,o)};return async()=>{await Jl(r()),t++}},up=async(e,t={})=>{let r=0;const{shouldRetry:n,initialDelay:s,maxDelayBetweenRetries:o,factor:i,retryImmediately:l,jitter:c,onBeforeRetry:u}={...lp,...t},a=ap({initialDelay:s,maxDelayBetweenRetries:o,factor:i,jitter:c});for(;;)try{return await e()}catch(f){if(r++,!n(f,r))throw f;u&&await u(r),l&&r===1?await Jl(Yl(cp,c)):await a()}},fp="loadScript cannot be called when document does not exist",dp="loadScript cannot be called without a src";async function pp(e="",t){const{async:r,defer:n,beforeLoad:s,crossOrigin:o,nonce:i}=t||{};return up(()=>new Promise((c,u)=>{e||u(new Error(dp)),(!document||!document.body)&&u(new Error(fp));const a=document.createElement("script");o&&a.setAttribute("crossorigin",o),a.async=r||!1,a.defer=n||!1,a.addEventListener("load",()=>{a.remove(),c(a)}),a.addEventListener("error",f=>{a.remove(),u(f.error??new Error(`failed to load script: ${e}`))}),a.src=e,a.nonce=i,s?.(a),document.body.appendChild(a)}),{shouldRetry:(c,u)=>u<=5})}function hp(e){return e?gp(e)||Xl(e):!0}function gp(e){return/^http(s)?:\/\//.test(e||"")}function Xl(e){return e.startsWith("/")}function mp(e){return e?Xl(e)?new URL(e,window.location.origin).toString():e:""}function yp(e){if(!e)return"";let t;if(e.match(/^(clerk\.)+\w*$/))t=/(clerk\.)*(?=clerk\.)/;else{if(e.match(/\.clerk.accounts/))return e;t=/^(clerk\.)*/gi}return`clerk.${e.replace(t,"")}`}const _p=(e,t="5.117.0")=>{if(e)return e;const r=vp(t);return r?r==="snapshot"?"5.117.0":r:bp(t)},vp=e=>e.trim().replace(/^v/,"").match(/-(.+?)(\.|$)/)?.[1],bp=e=>e.trim().replace(/^v/,"").split(".")[0],Ql="failed_to_load_clerk_js",Sp="failed_to_load_clerk_js_timeout",us="Failed to load Clerk",{isDevOrStagingUrl:Pp}=ip(),Zl=Bl({packageName:"@clerk/shared"});function Ep(e){Zl.setPackageName({packageName:e})}function fs(){if(typeof window>"u"||!window.Clerk)return!1;const e=window.Clerk;return typeof e=="object"&&typeof e.load=="function"}function wp(e){if(typeof window>"u"||!window.performance)return!1;const t=performance.getEntriesByName(e,"resource");if(t.length===0)return!1;const r=t[t.length-1];return r.transferSize===0&&r.decodedBodySize===0&&(r.responseEnd===0||r.responseEnd>0&&r.responseStart>0||"responseStatus"in r&&(r.responseStatus>=400||r.responseStatus===0))}function Qo(e,t){return new Promise((r,n)=>{let s=!1;const o=(a,f)=>{clearTimeout(a),clearInterval(f)};t?.addEventListener("error",()=>{o(c,u),n(new as(us,{code:Ql}))});const i=()=>{s||fs()&&(s=!0,o(c,u),r(null))},c=setTimeout(()=>{s||(s=!0,o(c,u),fs()?r(null):n(new as(us,{code:Sp})))},e);i();const u=setInterval(()=>{if(s){clearInterval(u);return}i()},100)})}const Cp=async e=>{const t=e?.scriptLoadTimeout??15e3;if(fs())return null;if(!e?.publishableKey)return Zl.throwMissingPublishableKeyError(),null;const r=Rp(e),n=document.querySelector("script[data-clerk-js-script]");if(n)if(wp(r))n.remove();else try{return await Qo(t,n),null}catch{n.remove()}const s=Qo(t);return pp(r,{async:!0,crossOrigin:"anonymous",nonce:e.nonce,beforeLoad:xp(e)}).catch(o=>{throw new as(us+(o.message?`, ${o.message}`:""),{code:Ql,cause:o})}),s},Rp=e=>{const{clerkJSUrl:t,clerkJSVariant:r,clerkJSVersion:n,proxyUrl:s,domain:o,publishableKey:i}=e;if(t)return t;let l="";s&&hp(s)?l=mp(s).replace(/http(s)?:\/\//,""):o&&!Pp(Yo(i)?.frontendApi||"")?l=yp(o):l=Yo(i)?.frontendApi||"";const c=r?`${r.replace(/\.+$/,"")}.`:"",u=_p(n);return`https://${l}/npm/@clerk/clerk-js@${u}/dist/clerk.${c}browser.js`},Ap=e=>{const t={};return e.publishableKey&&(t["data-clerk-publishable-key"]=e.publishableKey),e.proxyUrl&&(t["data-clerk-proxy-url"]=e.proxyUrl),e.domain&&(t["data-clerk-domain"]=e.domain),e.nonce&&(t.nonce=e.nonce),t},xp=e=>t=>{const r=Ap(e);for(const n in r)t.setAttribute(n,r[n])},Op=()=>{try{return!1}catch{}return!1},mr=e=>{Op()&&console.error(`Clerk: ${e}`)};function kp(){return typeof window<"u"}const Ip=(e,t,r)=>!e&&r?Tp(r):Mp(t),Tp=e=>{const t=e.userId,r=e.user,n=e.sessionId,s=e.sessionStatus,o=e.sessionClaims;return{userId:t,user:r,sessionId:n,session:e.session,sessionStatus:s,sessionClaims:o,organization:e.organization,orgId:e.orgId,orgRole:e.orgRole,orgPermissions:e.orgPermissions,orgSlug:e.orgSlug,actor:e.actor,factorVerificationAge:e.factorVerificationAge}},Mp=e=>{const t=e.user?e.user.id:e.user,r=e.user,n=e.session?e.session.id:e.session,s=e.session,o=e.session?.status,i=e.session?e.session.lastActiveToken?.jwt?.claims:null,l=e.session?e.session.factorVerificationAge:null,c=s?.actor,u=e.organization,a=e.organization?e.organization.id:e.organization,f=u?.slug,h=u&&r?.organizationMemberships?.find(y=>y.organization.id===a),d=h&&h.permissions;return{userId:t,user:r,sessionId:n,session:s,sessionStatus:o,sessionClaims:i,organization:u,orgId:a,orgRole:h&&h.role,orgSlug:f,orgPermissions:d,actor:c,factorVerificationAge:l}};var vn=e=>{const t=Ut();Pt(t,r=>{r?.loaded&&e(r)},{immediate:!0})},Lp=ie(({treatPendingAsSignedOut:e},{slots:t})=>{const{userId:r}=Fs({treatPendingAsSignedOut:e});return()=>r.value?t.default?.():null});Object.defineProperty(Lp,"props",{value:["treatPendingAsSignedOut"]});var Up=ie(({treatPendingAsSignedOut:e},{slots:t})=>{const{userId:r}=Fs({treatPendingAsSignedOut:e});return()=>r.value===null?t.default?.():null});Object.defineProperty(Up,"props",{value:["treatPendingAsSignedOut"]});var Np=ie((e,{slots:t})=>{const r=Ut();return()=>r.value?.loaded?t.default?.():null}),Dp=ie(e=>{const{sessionCtx:t,clientCtx:r}=js("RedirectToSignIn");return vn(n=>{const s=r.value?.signedInSessions&&r.value.signedInSessions.length>0;t.value===null&&s?n.redirectToAfterSignOut():n.redirectToSignIn(e)}),()=>null});Object.defineProperty(Dp,"props",{value:["signInForceRedirectUrl","signInFallbackRedirectUrl","signUpForceRedirectUrl","signUpFallbackRedirectUrl","afterSignInUrl","afterSignUpUrl","redirectUrl"]});var jp=ie(e=>(vn(t=>{t.redirectToSignUp(e)}),()=>null));Object.defineProperty(jp,"props",{value:["signInForceRedirectUrl","signInFallbackRedirectUrl","signUpForceRedirectUrl","signUpFallbackRedirectUrl","afterSignInUrl","afterSignUpUrl","redirectUrl"]});var Fp=ie(e=>(vn(t=>{t.redirectToTasks(e)}),()=>null));Object.defineProperty(Fp,"props",{value:["signInForceRedirectUrl","signInFallbackRedirectUrl","signUpForceRedirectUrl","signUpFallbackRedirectUrl","afterSignInUrl","afterSignUpUrl","redirectUrl"]});var Hp=ie(e=>(vn(t=>{t.handleRedirectCallback(e)}),()=>null));Object.defineProperty(Hp,"props",{value:["transferable","signInForceRedirectUrl","signInFallbackRedirectUrl","signUpForceRedirectUrl","signUpFallbackRedirectUrl","afterSignInUrl","afterSignUpUrl","redirectUrl","signInUrl","signUpUrl","firstFactorUrl","secondFactorUrl","resetPasswordUrl","continueSignUpUrl","verifyEmailAddressUrl","verifyPhoneNumberUrl","reloadResource"]});var Bp=ie((e,{slots:t})=>{const{isLoaded:r,has:n,userId:s}=Fs({treatPendingAsSignedOut:e.treatPendingAsSignedOut});return()=>r.value?s.value?typeof e.condition=="function"?e.condition(n.value)?t.default?.():t.fallback?.():e.role||e.permission||e.feature||e.plan?n.value?.(e)?t.default?.():t.fallback?.():t.default?.():t.fallback?.():null});Object.defineProperty(Bp,"props",{value:["condition","role","permission","feature","plan","treatPendingAsSignedOut"]});var Ir=ie(e=>()=>[...e?.customPagesPortals??[],...e?.customMenuItemsPortals??[]]);Object.defineProperty(Ir,"props",{value:["customPagesPortals","customMenuItemsPortals"]});var bn=ie({props:{mount:{type:Function,required:!1},unmount:{type:Function,required:!1},open:{type:Function,required:!1},close:{type:Function,required:!1},updateProps:{type:Function,required:!1},props:{type:Object,required:!1,default:()=>({})}},setup(e){const t=He(null);let r=!1;return wa(()=>{!t.value||r||(e.mount&&e.mount(t.value,e.props),e.open&&e.open(e.props),r=!0)}),Pt(()=>e.props,n=>{r&&e.updateProps&&t.value&&e.updateProps({node:t.value,props:n})},{deep:!0}),Os(()=>{r&&t.value&&(e.unmount&&e.unmount(t.value),e.close&&e.close())}),()=>Mt(Np,()=>Mt("div",{ref:t}))}}),Kp=ie({__name:"OrganizationProfile",props:{path:{type:null,required:!1},routing:{type:String,required:!1},afterLeaveOrganizationUrl:{type:String,required:!1},appearance:{type:Object,required:!1},__experimental_startPath:{type:String,required:!1},apiKeysProps:{type:Object,required:!1}},setup(e,{expose:t}){t();const r=e,n=Ut(),{customPages:s,customPagesPortals:o,addCustomPage:i}=rc(),l=Q(()=>({...r,customPages:s.value}));Ye(_n,{addCustomPage:i});const c={props:r,clerk:n,customPages:s,customPagesPortals:o,addCustomPage:i,finalProps:l,get ClerkHostRenderer(){return bn},get CustomPortalsRenderer(){return Ir}};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}});function Vp(e,t,r,n,s,o){return at(),dn(ge,null,[ae(n.ClerkHostRenderer,{mount:n.clerk?.mountOrganizationProfile,unmount:n.clerk?.unmountOrganizationProfile,props:n.finalProps,"update-props":n.clerk?.__unstable__updateProps},null,8,["mount","unmount","props","update-props"]),ae(n.CustomPortalsRenderer,{"custom-pages-portals":n.customPagesPortals},null,8,["custom-pages-portals"]),Ar(e.$slots,"default")],64)}var Wp=kr(Kp,[["render",Vp],["__file","/home/runner/work/javascript/javascript/packages/vue/src/components/ui-components/OrganizationProfile/OrganizationProfile.vue"]]),Tr=ie((e,{slots:t})=>{const r=de(_n);return r?(r.addCustomPage({props:e,slots:t,component:Tr}),()=>null):Be.throw(Xd)},{name:"OrganizationProfilePage"});Object.defineProperty(Tr,"props",{value:["label","url"]});var Mr=ie((e,{slots:t})=>{const r=de(_n);return r?(r.addCustomPage({props:e,slots:t,component:Mr}),()=>null):Be.throw(Qd)},{name:"OrganizationProfileLink"});Object.defineProperty(Mr,"props",{value:["url","label"]});Object.assign(Wp,{Page:Tr,Link:Mr});var Zr=(e,t)=>!!e&&qp(e)&&e.name===t.name,qp=e=>"name"in e&&"setup"in e;function zp(){return Math.random().toString(36).substring(2,7)}var ec=()=>{const e=He([]);return{portals:Q(()=>e.value.map(s=>Mt(xa,{to:s.el},s.slot()))),mount:(s,o)=>{const i=zp();s.setAttribute("data-clerk-mount-id",i),e.value.push({id:i,el:s,slot:o})},unmount:s=>{const o=s?.getAttribute("data-clerk-mount-id");if(o){const i=e.value.findIndex(l=>l.id===o);i!==-1&&e.value.splice(i,1)}}}},tc=()=>{const{customPages:e,customPagesPortals:t,addCustomPage:r}=nc({reorderItemsLabels:["account","security","billing","apiKeys"],PageComponent:Lr,LinkComponent:Ur,componentName:"UserProfile"});return{customPages:e,customPagesPortals:t,addCustomPage:s=>r(s)}},rc=()=>{const{customPages:e,customPagesPortals:t,addCustomPage:r}=nc({reorderItemsLabels:["general","members","billing","apiKeys"],PageComponent:Tr,LinkComponent:Mr,componentName:"OrganizationProfile"});return{customPages:e,customPagesPortals:t,addCustomPage:s=>r(s)}},nc=e=>{const t=He([]),{portals:r,mount:n,unmount:s}=ec(),{PageComponent:o,LinkComponent:i,reorderItemsLabels:l,componentName:c}=e;return{customPages:t,customPagesPortals:r,addCustomPage:a=>{const{props:f,slots:h,component:d}=a,{label:y,url:_}=f;if(Zr(d,o))if($p(f,h,l))t.value.push({label:y});else if(Gp(f,h))t.value.push({label:y,url:_,mountIcon(E){n(E,h.labelIcon)},unmountIcon:s,mount(E){n(E,h.default)},unmount:s});else{mr($d(c));return}if(Zr(d,i))if(Jp(f,h))t.value.push({label:y,url:_,mountIcon(E){n(E,h.labelIcon)},unmountIcon:s});else{mr(Gd(c));return}}}},$p=(e,t,r)=>{const{label:n,url:s}=e,{default:o,labelIcon:i}=t;return!o&&!s&&!i&&r.some(l=>l===n)},Gp=(e,t)=>{const{label:r,url:n}=e,{default:s,labelIcon:o}=t;return!!s&&!!n&&!!o&&!!r},Jp=(e,t)=>{const{label:r,url:n}=e,{default:s,labelIcon:o}=t;return!s&&!!n&&!!o&&!!r},Yp=ie({__name:"UserProfile",props:{path:{type:null,required:!1},routing:{type:String,required:!1},appearance:{type:Object,required:!1},additionalOAuthScopes:{type:Object,required:!1},__experimental_startPath:{type:String,required:!1},apiKeysProps:{type:Object,required:!1}},setup(e,{expose:t}){t();const r=e,n=Ut(),{customPages:s,customPagesPortals:o,addCustomPage:i}=tc(),l=Q(()=>({...r,customPages:s.value}));Ye(yn,{addCustomPage:i});const c={props:r,clerk:n,customPages:s,customPagesPortals:o,addCustomPage:i,finalProps:l,get ClerkHostRenderer(){return bn},get CustomPortalsRenderer(){return Ir}};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}});function Xp(e,t,r,n,s,o){return at(),dn(ge,null,[ae(n.ClerkHostRenderer,{mount:n.clerk?.mountUserProfile,unmount:n.clerk?.unmountUserProfile,props:n.finalProps,"update-props":n.clerk?.__unstable__updateProps},null,8,["mount","unmount","props","update-props"]),ae(n.CustomPortalsRenderer,{"custom-pages-portals":n.customPagesPortals},null,8,["custom-pages-portals"]),Ar(e.$slots,"default")],64)}var Qp=kr(Yp,[["render",Xp],["__file","/home/runner/work/javascript/javascript/packages/vue/src/components/ui-components/UserProfile/UserProfile.vue"]]),Lr=ie((e,{slots:t})=>{const r=de(yn);return r?(r.addCustomPage({props:e,slots:t,component:Lr}),()=>null):Be.throw(Jd)},{name:"UserProfilePage"});Object.defineProperty(Lr,"props",{value:["label","url"]});var Ur=ie((e,{slots:t})=>{const r=de(yn);return r?(r.addCustomPage({props:e,slots:t,component:Ur}),()=>null):Be.throw(Yd)},{name:"UserProfileLink"});Object.defineProperty(Ur,"props",{value:["url","label"]});Object.assign(Qp,{Page:Lr,Link:Ur});var Zp=ie({__name:"OrganizationSwitcher",props:{createOrganizationUrl:{type:null,required:!1},createOrganizationMode:{type:String,required:!1},organizationProfileUrl:{type:null,required:!1},organizationProfileMode:{type:String,required:!1},defaultOpen:{type:Boolean,required:!1},hidePersonal:{type:Boolean,required:!1},afterSwitchOrganizationUrl:{type:String,required:!1},afterCreateOrganizationUrl:{type:[Function,Object],required:!1,skipCheck:!0},afterSelectOrganizationUrl:{type:[Function,Object],required:!1,skipCheck:!0},afterSelectPersonalUrl:{type:[Function,Object],required:!1,skipCheck:!0},afterLeaveOrganizationUrl:{type:String,required:!1},skipInvitationScreen:{type:Boolean,required:!1},hideSlug:{type:Boolean,required:!1},appearance:{type:Object,required:!1},organizationProfileProps:{type:Object,required:!1}},setup(e,{expose:t}){t();const r=Ut(),n=e,{customPages:s,customPagesPortals:o,addCustomPage:i}=rc(),l=Q(()=>({...n,organizationProfileProps:{...n.organizationProfileProps||{},customPages:s.value}}));Ye(_n,{addCustomPage:i});const c={clerk:r,props:n,customPages:s,customPagesPortals:o,addCustomPage:i,finalProps:l,get ClerkHostRenderer(){return bn},get CustomPortalsRenderer(){return Ir}};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}});function eh(e,t,r,n,s,o){return at(),dn(ge,null,[ae(n.ClerkHostRenderer,{mount:n.clerk?.mountOrganizationSwitcher,unmount:n.clerk?.unmountOrganizationSwitcher,"update-props":n.clerk?.__unstable__updateProps,props:n.finalProps},null,8,["mount","unmount","update-props","props"]),ae(n.CustomPortalsRenderer,{"custom-pages-portals":n.customPagesPortals},null,8,["custom-pages-portals"]),Ar(e.$slots,"default")],64)}var th=kr(Zp,[["render",eh],["__file","/home/runner/work/javascript/javascript/packages/vue/src/components/ui-components/OrganizationSwitcher/OrganizationSwitcher.vue"]]);Object.assign(th,{OrganizationProfilePage:Tr,OrganizationProfileLink:Mr});var rh=()=>{const e=He([]),{portals:t,mount:r,unmount:n}=ec(),s=["manageAccount","signOut"];function o(i){const{props:l,component:c,slots:u}=i,{label:a,onClick:f,open:h,href:d}=l;if(Zr(c,Sn))if(nh(l,u,s))e.value.push({label:a});else if(sh(l,u)){const y={label:a,mountIcon(_){r(_,u.labelIcon)},unmountIcon:n};if(f!==void 0)e.value.push({...y,onClick:f,open:h});else if(h!==void 0)e.value.push({...y,open:h.startsWith("/")?h:`/${h}`});else{mr("Custom menu item must have either onClick or open property");return}}else{mr(qd);return}if(Zr(c,Pn))if(oh(l,u))e.value.push({label:a,href:d,mountIcon(y){r(y,u.labelIcon)},unmountIcon:n});else{mr(Wd);return}}return{customMenuItems:e,customMenuItemsPortals:t,addCustomMenuItem:o}},nh=(e,t,r)=>{const{label:n,onClick:s}=e,{labelIcon:o}=t;return!s&&!o&&r.some(i=>i===n)},sh=(e,t)=>{const{label:r,onClick:n,open:s}=e,{labelIcon:o}=t;return!!o&&!!r&&(typeof n=="function"||typeof s=="string")},oh=(e,t)=>{const{label:r,href:n}=e,{labelIcon:s}=t;return!!n&&!!s&&!!r},ih=ie({__name:"UserButton",props:{userProfileUrl:{type:null,required:!1},userProfileMode:{type:String,required:!1},showName:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},__experimental_asStandalone:{type:[Boolean,Function],required:!1},afterSignOutUrl:{type:String,required:!1},afterMultiSessionSingleSignOutUrl:{type:String,required:!1},signInUrl:{type:String,required:!1},afterSwitchSessionUrl:{type:String,required:!1},appearance:{type:Object,required:!1},userProfileProps:{type:Object,required:!1}},setup(e,{expose:t}){t();const r=e,n=Ut(),{customMenuItems:s,customMenuItemsPortals:o,addCustomMenuItem:i}=rh(),{customPages:l,customPagesPortals:c,addCustomPage:u}=tc(),a=Q(()=>({...r,userProfileProps:{...r.userProfileProps||{},customPages:l.value},customMenuItems:s.value}));Ye(Wl,{addCustomMenuItem:i}),Ye(yn,{addCustomPage:u});const f={props:r,clerk:n,customMenuItems:s,customMenuItemsPortals:o,addCustomMenuItem:i,customPages:l,customPagesPortals:c,addCustomPage:u,finalProps:a,get ClerkHostRenderer(){return bn},get CustomPortalsRenderer(){return Ir}};return Object.defineProperty(f,"__isScriptSetup",{enumerable:!1,value:!0}),f}});function lh(e,t,r,n,s,o){return at(),dn(ge,null,[ae(n.ClerkHostRenderer,{mount:n.clerk?.mountUserButton,unmount:n.clerk?.unmountUserButton,props:n.finalProps,"update-props":n.clerk?.__unstable__updateProps},null,8,["mount","unmount","props","update-props"]),ae(n.CustomPortalsRenderer,{"custom-pages-portals":n.customPagesPortals,"custom-menu-items-portals":n.customMenuItemsPortals},null,8,["custom-pages-portals","custom-menu-items-portals"]),Ar(e.$slots,"default")],64)}var ch=kr(ih,[["render",lh],["__file","/home/runner/work/javascript/javascript/packages/vue/src/components/ui-components/UserButton/UserButton.vue"]]),ah=ie((e,{slots:t})=>{const r=de(Wl);return r?(Ye(Ds,r),()=>t.default?.()):Be.throw(zd)}),Sn=ie((e,{slots:t})=>{const r=de(Ds);return r?(r.addCustomMenuItem({props:e,slots:t,component:Sn}),()=>null):Be.throw(Kd)},{name:"MenuAction"});Object.defineProperty(Sn,"props",{value:["label","onClick","open"]});var Pn=ie((e,{slots:t})=>{const r=de(Ds);return r?(r.addCustomMenuItem({props:e,slots:t,component:Pn}),()=>null):Be.throw(Vd)},{name:"MenuLink"});Object.defineProperty(Pn,"props",{value:["href","label"]});var Vh=Object.assign(ch,{MenuItems:ah,Action:Sn,Link:Pn,UserProfilePage:Lr,UserProfileLink:Ur}),uh=ie({__name:"SignInButton",props:{mode:{type:String,required:!1},appearance:{type:Object,required:!1},fallbackRedirectUrl:{type:[String,null],required:!1},forceRedirectUrl:{type:[String,null],required:!1},signUpForceRedirectUrl:{type:[String,null],required:!1},signUpFallbackRedirectUrl:{type:[String,null],required:!1},initialValues:{type:Object,required:!1},withSignUp:{type:Boolean,required:!1},oauthFlow:{type:String,required:!1}},setup(e,{expose:t}){t();const r=e,n=Ut(),s=Wa(),o=qa();function i(){const u=Zd(s.default?.({}),"Sign in");return ep(u,"SignInButton")}function l(){const{mode:u,...a}=r;if(u==="modal")return n.value?.openSignIn({...a,appearance:r.appearance});const{withSignUp:f,...h}=a;n.value?.redirectToSignIn({...h,signInFallbackRedirectUrl:r.fallbackRedirectUrl,signInForceRedirectUrl:r.forceRedirectUrl})}const c={props:r,clerk:n,slots:s,attrs:o,getChildComponent:i,clickHandler:l};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}});function fh(e,t,r,n,s,o){return at(),Sr(Ka(n.getChildComponent),yl(n.attrs,{onClick:n.clickHandler}),{default:Fi(()=>[Ar(e.$slots,"default")]),_:3},16)}var Wh=kr(uh,[["render",fh],["__file","/home/runner/work/javascript/javascript/packages/vue/src/components/SignInButton.vue"]]),dh={name:"@clerk/vue",version:"1.17.6",environment:"production"},ph={install(e,t){const{initialState:r}=t||{},n=Jn(!1),s=Jn(null),o=He({client:void 0,session:void 0,user:void 0,organization:void 0}),i={...t,sdkMetadata:t.sdkMetadata||dh};kp()&&Cp(i).then(async()=>{if(!window.Clerk)throw new Error("Failed to download latest ClerkJS. Contact support@clerk.com.");s.value=window.Clerk,await window.Clerk.load(i),n.value=!0,s.value.addListener(d=>{o.value=d}),aa(s)});const l=Q(()=>Ip(n.value,o.value,r)),c=Q(()=>{const{sessionId:d,userId:y,orgId:_,actor:E,orgRole:w,orgSlug:R,orgPermissions:k,sessionStatus:x,sessionClaims:U,factorVerificationAge:Z}=l.value;return{sessionId:d,userId:y,actor:E,orgId:_,orgRole:w,orgSlug:R,orgPermissions:k,sessionStatus:x,sessionClaims:U,factorVerificationAge:Z}}),u=Q(()=>o.value.client),a=Q(()=>l.value.user),f=Q(()=>l.value.session),h=Q(()=>l.value.organization);e.provide(Vl,{clerk:s,authCtx:c,clientCtx:u,sessionCtx:f,userCtx:a,organizationCtx:h})}};Rd({packageName:"@clerk/vue"});Ep("@clerk/vue");function sc(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var s=!1;try{s=this instanceof n}catch{}return s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),r}var Bn={exports:{}};const Qt=e=>({...e,__type:"prebuilt_appearance"}),hh=Object.freeze(Object.defineProperty({__proto__:null,experimental_createTheme:Qt},Symbol.toStringTag,{value:"Module"})),gh=sc(hh),oc=Qt({name:"dark",variables:{colorBackground:"#212126",colorNeutral:"white",colorPrimary:"#ffffff",colorPrimaryForeground:"black",colorForeground:"white",colorInputForeground:"white",colorInput:"#26262B"},elements:{providerIcon__apple:{filter:"invert(1)"},providerIcon__github:{filter:"invert(1)"},providerIcon__okx_wallet:{filter:"invert(1)"},providerIcon__vercel:{filter:"invert(1)"},activeDeviceIcon:{"--cl-chassis-bottom":"#d2d2d2","--cl-chassis-back":"#e6e6e6","--cl-chassis-screen":"#e6e6e6","--cl-screen":"#111111"}}}),mh=Qt({name:"shadesOfPurple",baseTheme:oc,variables:{colorBackground:"#3f3c77",colorPrimary:"#f8d80d",colorPrimaryForeground:"#38375f",colorInputForeground:"#a1fdfe",colorShimmer:"rgba(161,253,254,0.36)"}}),gt={boxShadow:"3px 3px 0px #000",border:"2px solid #000","&:focus":{boxShadow:"4px 4px 0px #000",border:"2px solid #000",transform:"scale(1.01)"},"&:active":{boxShadow:"2px 2px 0px #000",transform:"translate(1px)"}},At={boxShadow:"3px 3px 0px #000",border:"2px solid #000"},yh=Qt({name:"neobrutalism",simpleStyles:!0,variables:{colorPrimary:"#DF1B1B",colorShimmer:"rgba(255,255,255,0.64)",fontWeight:{normal:500,medium:600,bold:700}},elements:{cardBox:{boxShadow:"7px 7px 0px #000",border:"3px solid #000"},card:{borderRadius:"0"},headerSubtitle:{color:"#212126"},alternativeMethodsBlockButton:gt,socialButtonsIconButton:{...gt},selectButton:{...gt,...At,transition:"all 0.2s ease-in-out","&:focus":{boxShadow:"4px 4px 0px #000",border:"2px solid #000",transform:"scale(1.01)"}},socialButtonsBlockButton:{...gt,color:"#212126"},profileSectionPrimaryButton:gt,profileSectionItem:{color:"#212126"},avatarImageActionsUpload:gt,menuButton:At,menuList:At,formButtonPrimary:gt,navbarButton:gt,formFieldAction:{fontWeight:"700"},formFieldInput:{...At,transition:"all 0.2s ease-in-out","&:focus":{boxShadow:"4px 4px 0px #000",border:"2px solid #000",transform:"scale(1.01)"},"&:hover":{...At,transform:"scale(1.01)"}},table:At,tableHead:{color:"#212126"},dividerLine:{background:"#000"},dividerText:{fontWeight:"700",color:"#212126"},footer:{background:"#fff","& div":{color:"#212126"}},footerActionText:{color:"#212126"},footerActionLink:{fontWeight:"700",borderBottom:"3px solid","&:focus":{boxShadow:"none"}},actionCard:{...At},badge:{border:"1px solid #000",background:"#fff",color:"#212126"}}}),_h=Qt({name:"shadcn",cssLayerName:"components",variables:{colorBackground:"var(--card)",colorDanger:"var(--destructive)",colorForeground:"var(--card-foreground)",colorInput:"var(--input)",colorInputForeground:"var(--card-foreground)",colorModalBackdrop:"var(--color-black)",colorMuted:"var(--muted)",colorMutedForeground:"var(--muted-foreground)",colorNeutral:"var(--foreground)",colorPrimary:"var(--primary)",colorPrimaryForeground:"var(--primary-foreground)",colorRing:"var(--ring)",fontWeight:{normal:"var(--font-weight-normal)",medium:"var(--font-weight-medium)",semibold:"var(--font-weight-semibold)",bold:"var(--font-weight-semibold)"}},elements:{input:"bg-transparent dark:bg-input/30",cardBox:"shadow-sm border",popoverBox:"shadow-sm border",button:{'&[data-variant="solid"]::after':{display:"none"}},providerIcon__apple:"dark:invert",providerIcon__github:"dark:invert",providerIcon__okx_wallet:"dark:invert",providerIcon__vercel:"dark:invert"}}),vh=Qt({name:"simple",simpleStyles:!0}),bh=Object.freeze(Object.defineProperty({__proto__:null,dark:oc,experimental__simple:vh,neobrutalism:yh,shadcn:_h,shadesOfPurple:mh},Symbol.toStringTag,{value:"Module"})),Sh=sc(bh);var Zo;function Ph(){return Zo||(Zo=1,(function(e){var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o=(u,a,f,h)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of n(a))!s.call(u,d)&&d!==f&&t(u,d,{get:()=>a[d],enumerable:!(h=r(a,d))||h.enumerable});return u},i=(u,a,f)=>(o(u,a,"default"),f&&o(f,a,"default")),l=u=>o(t({},"__esModule",{value:!0}),u),c={};e.exports=l(c),i(c,gh,e.exports),i(c,Sh,e.exports)})(Bn)),Bn.exports}var Eh=Ph();const wh=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},Ch={};function Rh(e,t){const r=Ba("RouterView");return at(),Sr(r)}const Ah=wh(Ch,[["render",Rh]]),xh=[{path:"/",name:"main",component:()=>ko(()=>import("./Main-D-Gy0vw8.js"),__vite__mapDeps([0,1]))},{path:"/:pathMatch(.*)*",name:"not-found",component:()=>ko(()=>import("./NotFound-Cat7CdKJ.js"),__vite__mapDeps([2,3]))}],Le={CLERK_KEY:"clerk-publishable-key",SIDEBAR_COLLAPSED:"sidebar-collapsed",EXAMPLES_SIDEBAR_COLLAPSED:"examples-sidebar-collapsed",ENDPOINTS_SIDEBAR_WIDTH:"endpoints-sidebar-width",EXAMPLES_SIDEBAR_WIDTH:"examples-sidebar-width"};function Ht(e,t){try{const r=localStorage.getItem(e);return r===null?t:JSON.parse(r)}catch(r){return console.error(`Failed to parse localStorage item "${e}":`,r),t}}function or(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(r){console.error(`Failed to save localStorage item "${e}":`,r)}}function Oh(e){try{localStorage.removeItem(e)}catch(t){console.error(`Failed to remove localStorage item "${e}":`,t)}}const kh=Fl("localStorage",()=>{const e=He("");function t(){e.value=Ht(Le.CLERK_KEY,"")}function r(E){E.trim()?(e.value=E.trim(),or(Le.CLERK_KEY,E.trim())):n()}function n(){e.value="",Oh(Le.CLERK_KEY)}function s(){return Ht(Le.CLERK_KEY,"")}function o(){const E=s();return!!(E&&E.trim())}function i(){return o()}function l(){return Ht(Le.SIDEBAR_COLLAPSED,!1)}function c(E){or(Le.SIDEBAR_COLLAPSED,E)}function u(){return Ht(Le.EXAMPLES_SIDEBAR_COLLAPSED,!1)}function a(E){or(Le.EXAMPLES_SIDEBAR_COLLAPSED,E)}function f(){return Ht(Le.ENDPOINTS_SIDEBAR_WIDTH,500)}function h(E){or(Le.ENDPOINTS_SIDEBAR_WIDTH,E)}function d(){return Ht(Le.EXAMPLES_SIDEBAR_WIDTH,400)}function y(E){or(Le.EXAMPLES_SIDEBAR_WIDTH,E)}function _(){t()}return{clerkKey:e,loadClerkKey:t,saveClerkKey:r,clearClerkKey:n,getClerkKey:s,hasClerkKey:o,hasSavedClerkKey:i,loadSidebarCollapsed:l,saveSidebarCollapsed:c,loadExamplesSidebarCollapsed:u,saveExamplesSidebarCollapsed:a,loadEndpointsSidebarWidth:f,saveEndpointsSidebarWidth:h,loadExamplesSidebarWidth:d,saveExamplesSidebarWidth:y,initialize:_}});let Ue=null;function Ih(){return"/openapi-studio-config.json"}async function Th(){if(Ue!==null)return Ue;let e={};{const t=Ih();try{const r=await fetch(t);r.ok&&(e=await r.json())}catch(r){console.warn(`Failed to load config from ${t}, falling back to environment variables:`,r)}}return e.serviceHost||(e.serviceHost=void 0),e.clerkKey||(e.clerkKey=void 0),e.openApiSpecUrl||(e.openApiSpecUrl=void 0),e.openApiSpecUrl||(e.openApiSpecUrl=[void 0,"openapi.json"].filter(Boolean).join("/")),Ue=e,Ue}function qh(){return Ue?.serviceHost?Ue.serviceHost:""}function ei(){return Ue?.clerkKey?Ue.clerkKey:""}function zh(){if(Ue?.openApiSpecUrl)return Ue.openApiSpecUrl;const e="";return e?`${e}/openapi.json`:""}function ic(){return!!(Ue?.clerkKey&&Ue.clerkKey.trim())}function Mh(){return ic(),!1}const Lh=Fl("clerk",()=>{const e=He(""),t=kh(),r=Q(()=>{{const f=t.getClerkKey();if(f&&f.trim())return!0}const a=ei();return!!(a&&a.trim())}),n=Q(()=>{{const f=t.getClerkKey();if(f&&f.trim())return f.trim()}const a=ei();return a&&a.trim()?a.trim():""}),s=Q(()=>t.hasSavedClerkKey()),o=Q(()=>{{const a=t.getClerkKey();if(a&&a.trim())return"localStorage"}return ic()?"config.json":Mh()?"env":null}),i=Q(()=>{const a=o.value;return a==="config.json"||a==="env"});function l(){if(t.loadClerkKey(),t.clerkKey&&t.clerkKey.trim())e.value=t.clerkKey;else{const a=n.value;a?e.value=a:e.value=""}}function c(){e.value.trim()?t.saveClerkKey(e.value):t.clearClerkKey(),typeof window<"u"&&window.location.reload()}function u(){e.value="",t.clearClerkKey(),typeof window<"u"&&window.location.reload()}return{clerkKey:e,hasClerkKey:r,getClerkKey:n,hasSavedClerkKey:s,clerkKeySource:o,isClerkKeyReadOnly:i,loadClerkKey:l,saveClerkKey:c,clearClerkKey:u}});yd(Ah,{routes:xh},async({app:e})=>{await Th();const t=_d();e.use(t);const n=Lh().getClerkKey;n&&e.use(ph,{publishableKey:n,appearance:{theme:Eh.dark}})});export{Bc as A,It as B,ae as C,Sr as D,Fi as E,ge as F,Nh as G,Uh as H,Fh as I,jh as J,qh as K,bu as L,wh as M,Wh as S,Vh as U,ko as _,Dh as a,ys as b,dn as c,ie as d,He as e,Q as f,Cr as g,Pt as h,de as i,$i as j,Cs as k,Na as l,Mt as m,ms as n,at as o,Fl as p,zh as q,Ar as r,Kh as s,Lh as t,Bh as u,kh as v,Hh as w,Fs as x,Ih as y,ml as z};