diff --git a/200.html b/200.html index cb02a9d..22cf576 100644 --- a/200.html +++ b/200.html @@ -1,17 +1,17 @@ - + - - + + - + - - + + - -
+ +
\ No newline at end of file diff --git a/404.html b/404.html index cb02a9d..22cf576 100644 --- a/404.html +++ b/404.html @@ -1,17 +1,17 @@ - + - - + + - + - - + + - -
+ +
\ No newline at end of file diff --git a/board/index.html b/board/index.html index cb02a9d..22cf576 100644 --- a/board/index.html +++ b/board/index.html @@ -1,17 +1,17 @@ - + - - + + - + - - + + - -
+ +
\ No newline at end of file diff --git a/index.html b/index.html index cb02a9d..22cf576 100644 --- a/index.html +++ b/index.html @@ -1,17 +1,17 @@ - + - - + + - + - - + + - -
+ +
\ No newline at end of file diff --git a/login/index.html b/login/index.html index cb02a9d..22cf576 100644 --- a/login/index.html +++ b/login/index.html @@ -1,17 +1,17 @@ - + - - + + - + - - + + - -
+ +
\ No newline at end of file diff --git a/nuxt/builds/latest.json b/nuxt/builds/latest.json index 6e5cac7..1f3a42e 100644 --- a/nuxt/builds/latest.json +++ b/nuxt/builds/latest.json @@ -1 +1 @@ -{"id":"f00cf603-bac3-47e9-98a3-353396ec875f","timestamp":1710614642166} \ No newline at end of file +{"id":"aab99b43-e716-4f34-bc1d-6ca8b255d116","timestamp":1710619088045} \ No newline at end of file diff --git a/nuxt/builds/meta/aab99b43-e716-4f34-bc1d-6ca8b255d116.json b/nuxt/builds/meta/aab99b43-e716-4f34-bc1d-6ca8b255d116.json new file mode 100644 index 0000000..365f591 --- /dev/null +++ b/nuxt/builds/meta/aab99b43-e716-4f34-bc1d-6ca8b255d116.json @@ -0,0 +1 @@ +{"id":"aab99b43-e716-4f34-bc1d-6ca8b255d116","timestamp":1710619088045,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]} \ No newline at end of file diff --git a/nuxt/builds/meta/f00cf603-bac3-47e9-98a3-353396ec875f.json b/nuxt/builds/meta/f00cf603-bac3-47e9-98a3-353396ec875f.json deleted file mode 100644 index f041451..0000000 --- a/nuxt/builds/meta/f00cf603-bac3-47e9-98a3-353396ec875f.json +++ /dev/null @@ -1 +0,0 @@ -{"id":"f00cf603-bac3-47e9-98a3-353396ec875f","timestamp":1710614642166,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]} \ No newline at end of file diff --git a/nuxt/default.BtqJ2PtA.js b/nuxt/default.DPO3LuHh.js similarity index 92% rename from nuxt/default.BtqJ2PtA.js rename to nuxt/default.DPO3LuHh.js index 204a4b5..f222f5a 100644 --- a/nuxt/default.BtqJ2PtA.js +++ b/nuxt/default.DPO3LuHh.js @@ -1 +1 @@ -import{_ as h}from"./nuxt-link.CC9b3Q5E.js";import{s as l,u as f,o as t,D as v,w as $,d as y,_ as i,c as n,a as u,t as x,z as d,b as r,F as k,v as a,S as U}from"./entry.BaaUaxo-.js";/* empty css */const H=l({__name:"NoUser",setup(s){return f(),(e,o)=>{const _=h;return t(),v(_,{to:"/login"},{default:$(()=>[y("Login")]),_:1})}}}),N={};function S(s,e){return t(),n("div",null,"Loading...")}const C=i(N,[["render",S]]),M=l({__name:"UserAuthenticated",setup(s){const e=f(),o=e.readyUser;return(_,c)=>{const m=h;return t(),n(k,null,[u("div",{onClick:c[0]||(c[0]=(...p)=>d(e).logout&&d(e).logout(...p))},[u("p",null,x(d(o).username),1)]),r(m,{to:"/board"},{default:$(()=>[y("Dashboard")]),_:1})],64)}}}),L={key:0},B={key:1},F={key:2},b=l({__name:"HeaderUserManager",setup(s){const o=f().user;return(_,c)=>{const m=H,p=C,g=M;return t(),n("div",null,[d(o).state=="unauthenticated"?(t(),n("div",L,[r(m)])):d(o).state=="loading"?(t(),n("div",B,[r(p)])):(t(),n("div",F,[r(g)]))])}}}),D="_header_1772k_1",V={header:D},w={},z=u("h1",null,"Header",-1);function A(s,e){const o=b;return t(),n("div",{class:a(s.$style.header)},[z,u("div",null,[r(o)])],2)}const E={$style:V},T=i(w,[["render",A],["__cssModules",E]]),j={};function q(s,e){return t(),n("h2",null,"Footer")}const G=i(j,[["render",q]]),I=l({__name:"default",setup(s){return(e,o)=>{const _=T,c=G;return t(),n("div",{id:"content",class:a(e.$style.content)},[r(_,{class:a(e.$style.header)},null,8,["class"]),u("div",{class:a(e.$style.main)},[U(e.$slots,"default")],2),r(c,{class:a(e.$style.footer)},null,8,["class"])],2)}}}),J="_header_1oro4_1",K="_main_1oro4_2",O="_footer_1oro4_3",P={header:J,main:K,footer:O},Q={$style:P},Y=i(I,[["__cssModules",Q]]);export{Y as default}; +import{_ as h}from"./nuxt-link.C5ztXXDi.js";import{s as l,u as f,o as t,D as v,w as $,d as y,_ as i,c as n,a as u,t as x,z as d,b as r,F as k,v as a,S as U}from"./entry.DNkX-rFi.js";/* empty css */const H=l({__name:"NoUser",setup(s){return f(),(e,o)=>{const _=h;return t(),v(_,{to:"/login"},{default:$(()=>[y("Login")]),_:1})}}}),N={};function S(s,e){return t(),n("div",null,"Loading...")}const C=i(N,[["render",S]]),M=l({__name:"UserAuthenticated",setup(s){const e=f(),o=e.readyUser;return(_,c)=>{const m=h;return t(),n(k,null,[u("div",{onClick:c[0]||(c[0]=(...p)=>d(e).logout&&d(e).logout(...p))},[u("p",null,x(d(o).username),1)]),r(m,{to:"/board"},{default:$(()=>[y("Dashboard")]),_:1})],64)}}}),L={key:0},B={key:1},F={key:2},b=l({__name:"HeaderUserManager",setup(s){const o=f().user;return(_,c)=>{const m=H,p=C,g=M;return t(),n("div",null,[d(o).state=="unauthenticated"?(t(),n("div",L,[r(m)])):d(o).state=="loading"?(t(),n("div",B,[r(p)])):(t(),n("div",F,[r(g)]))])}}}),D="_header_1772k_1",V={header:D},w={},z=u("h1",null,"Header",-1);function A(s,e){const o=b;return t(),n("div",{class:a(s.$style.header)},[z,u("div",null,[r(o)])],2)}const E={$style:V},T=i(w,[["render",A],["__cssModules",E]]),j={};function q(s,e){return t(),n("h2",null,"Footer")}const G=i(j,[["render",q]]),I=l({__name:"default",setup(s){return(e,o)=>{const _=T,c=G;return t(),n("div",{id:"content",class:a(e.$style.content)},[r(_,{class:a(e.$style.header)},null,8,["class"]),u("div",{class:a(e.$style.main)},[U(e.$slots,"default")],2),r(c,{class:a(e.$style.footer)},null,8,["class"])],2)}}}),J="_header_1oro4_1",K="_main_1oro4_2",O="_footer_1oro4_3",P={header:J,main:K,footer:O},Q={$style:P},Y=i(I,[["__cssModules",Q]]);export{Y as default}; diff --git a/nuxt/entry.BaaUaxo-.js b/nuxt/entry.DNkX-rFi.js similarity index 99% rename from nuxt/entry.BaaUaxo-.js rename to nuxt/entry.DNkX-rFi.js index 2aae064..d6a6c6c 100644 --- a/nuxt/entry.BaaUaxo-.js +++ b/nuxt/entry.DNkX-rFi.js @@ -18,11 +18,11 @@ * vue v3.4.19 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const rg=()=>{},og=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:gu,BaseTransitionPropsValidators:pl,Comment:et,DeprecationTypes:gm,EffectScope:Qi,ErrorCodes:Ih,ErrorTypeStrings:cm,Fragment:qe,KeepAlive:bu,ReactiveEffect:rr,Static:Nn,Suspense:ls,Teleport:qp,Text:Ln,TrackOpTypes:Oh,Transition:eo,TransitionGroup:Wm,TriggerOpTypes:Mh,VueElement:gs,assertNumber:Nh,callWithAsyncErrorHandling:gt,callWithErrorHandling:Yt,camelize:rt,capitalize:Kr,cloneVNode:jt,compatUtils:mm,compile:rg,computed:Ze,createApp:gf,createBlock:Ht,createCommentVNode:Yp,createElementBlock:zp,createElementVNode:_l,createHydrationRenderer:Bu,createPropsRestProxy:Rp,createRenderer:Hu,createSSRApp:yf,createSlots:up,createStaticVNode:Xp,createTextVNode:wl,createVNode:Oe,customRef:Qc,defineAsyncComponent:si,defineComponent:Ft,defineCustomElement:rf,defineEmits:mp,defineExpose:gp,defineModel:_p,defineOptions:yp,defineProps:pp,defineSSRCustomElement:$m,defineSlots:bp,devtools:um,effect:th,effectScope:es,getCurrentInstance:$t,getCurrentScope:Zi,getTransitionRawChildren:as,guardReactiveProps:vl,h:lt,handleError:Un,hasInjectionContext:hs,hydrate:mf,initCustomFormatter:im,initDirectivesForSSR:ng,inject:ze,isMemoSame:Xu,isProxy:ol,isReactive:Xt,isReadonly:En,isRef:Be,isRuntimeOnly:nm,isShallow:Ir,isVNode:Cn,markRaw:Gr,mergeDefaults:Cp,mergeModels:Sp,mergeProps:Cl,nextTick:At,normalizeClass:zr,normalizeProps:Mc,normalizeStyle:qr,onActivated:_u,onBeforeMount:Eu,onBeforeUnmount:fs,onBeforeUpdate:Cu,onDeactivated:vu,onErrorCaptured:ml,onMounted:Qr,onRenderTracked:ku,onRenderTriggered:Ru,onScopeDispose:Hc,onServerPrefetch:Su,onUnmounted:ds,onUpdated:us,openBlock:Rt,popScopeId:Uh,provide:_n,proxyRefs:ll,pushScopeId:Dh,queuePostFlushCb:Ho,reactive:Tt,readonly:rl,ref:mt,registerRuntimeCompiler:tm,render:wi,renderList:cp,renderSlot:fp,resolveComponent:Jh,resolveDirective:Xh,resolveDynamicComponent:au,resolveFilter:pm,resolveTransitionHooks:sr,setBlockTracking:di,setDevtoolsHook:fm,setTransitionHooks:In,shallowReactive:dr,shallowReadonly:Eh,shallowRef:or,ssrContextKey:fu,ssrUtils:hm,stop:nh,toDisplayString:Zd,toHandlerKey:Sr,toHandlers:dp,toRaw:ue,toRef:eu,toRefs:Zc,toValue:kh,transformVNodeArgs:Gp,triggerRef:Rh,unref:Pe,useAttrs:Ep,useCssModule:Um,useCssVars:Rm,useModel:sm,useSSRContext:du,useSlots:wp,useTransitionState:hl,vModelCheckbox:Rl,vModelDynamic:uf,vModelRadio:kl,vModelSelect:af,vModelText:Vo,vShow:tf,version:Sl,warn:am,watch:bn,watchEffect:rp,watchPostEffect:hu,watchSyncEffect:pu,withAsyncContext:kp,withCtx:Jr,withDefaults:vp,withDirectives:sp,withKeys:tg,withMemo:lm,withModifiers:Zm,withScopeId:Vh},Symbol.toStringTag,{value:"Module"})),sg=/#/g,ig=/&/g,lg=/\//g,ag=/=/g,xl=/\+/g,cg=/%5e/gi,ug=/%60/gi,fg=/%7c/gi,dg=/%20/gi;function hg(e){return encodeURI(""+e).replace(fg,"|")}function Ei(e){return hg(typeof e=="string"?e:JSON.stringify(e)).replace(xl,"%2B").replace(dg,"+").replace(sg,"%23").replace(ig,"%26").replace(ug,"`").replace(cg,"^").replace(lg,"%2F")}function Ds(e){return Ei(e).replace(ag,"%3D")}function Wo(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function pg(e){return Wo(e.replace(xl," "))}function mg(e){return Wo(e.replace(xl," "))}function gg(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const o=pg(r[1]);if(o==="__proto__"||o==="constructor")continue;const s=mg(r[2]||"");t[o]===void 0?t[o]=s:Array.isArray(t[o])?t[o].push(s):t[o]=[t[o],s]}return t}function yg(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Ds(e)}=${Ei(n)}`).join("&"):`${Ds(e)}=${Ei(t)}`:Ds(e)}function bg(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>yg(t,e[t])).filter(Boolean).join("&")}const _g=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,vg=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,wg=/^([/\\]\s*){2,}[^/\\]/,Eg=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Cg=/\/$|\/\?|\/#/,Sg=/^\.?\//;function to(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?_g.test(e):vg.test(e)||(t.acceptRelative?wg.test(e):!1)}function Rg(e){return!!e&&Eg.test(e)}function Ci(e="",t){return t?Cg.test(e):e.endsWith("/")}function Tl(e="",t){if(!t)return(Ci(e)?e.slice(0,-1):e)||"/";if(!Ci(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");o>=0&&(n=e.slice(0,o),r=e.slice(o));const[s,...i]=n.split("?");return(s.slice(0,-1)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function Si(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Ci(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");if(o>=0&&(n=e.slice(0,o),r=e.slice(o),!n))return r;const[s,...i]=n.split("?");return s+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function kg(e=""){return e.startsWith("/")}function Ma(e=""){return kg(e)?e:"/"+e}function xg(e,t){if(wf(t)||to(e))return e;const n=Tl(t);return e.startsWith(n)?e:no(n,e)}function Na(e,t){if(wf(t))return e;const n=Tl(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function vf(e,t){const n=ys(e),r={...gg(n.search),...t};return n.search=bg(r),Ag(n)}function wf(e){return!e||e==="/"}function Tg(e){return e&&e!=="/"}function no(e,...t){let n=e||"";for(const r of t.filter(o=>Tg(o)))if(n){const o=r.replace(Sg,"");n=Si(n)+o}else n=r;return n}function Pg(e,t,n={}){return n.trailingSlash||(e=Si(e),t=Si(t)),n.leadingSlash||(e=Ma(e),t=Ma(t)),n.encoding||(e=Wo(e),t=Wo(t)),e===t}const Ef=Symbol.for("ufo:protocolRelative");function ys(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!to(e,{acceptRelative:!0}))return t?ys(t+e):Ia(e);const[,r="",o,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,i="",l=""]=s.match(/([^#/?]*)(.*)?/)||[],{pathname:a,search:u,hash:c}=Ia(l.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:r.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:i,pathname:a,search:u,hash:c,[Ef]:!r}}function Ia(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Ag(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",o=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[Ef]?(e.protocol||"")+"//":"")+o+s+t+n+r}const Og=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},Ko=Og().app,Mg=()=>Ko.baseURL,Ng=()=>Ko.buildAssetsDir,Pl=(...e)=>no(Cf(),Ng(),...e),Cf=(...e)=>{const t=Ko.cdnURL||Ko.baseURL;return e.length?no(t,...e):t};globalThis.__buildAssetsURL=Pl,globalThis.__publicAssetsURL=Cf;const Ig=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Lg=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Hg=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Bg(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){jg(e);return}return t}function jg(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function qo(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.at(-1)==='"'&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!Hg.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Ig.test(e)||Lg.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Bg)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}class Fg extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function $g(e){var a,u,c,f,d;const t=((a=e.error)==null?void 0:a.message)||((u=e.error)==null?void 0:u.toString())||"",n=((c=e.request)==null?void 0:c.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",o=`[${n}] ${JSON.stringify(r)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"",i=`${o}: ${s}${t?` ${t}`:""}`,l=new Fg(i,e.error?{cause:e.error}:void 0);for(const p of["request","options","response"])Object.defineProperty(l,p,{get(){return e[p]}});for(const[p,g]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(l,p,{get(){return e.response&&e.response[g]}});return l}const Dg=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function La(e="GET"){return Dg.has(e.toUpperCase())}function Ug(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Vg=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Wg=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Kg(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Wg.test(t)?"json":Vg.has(t)||t.startsWith("text/")?"text":"blob"}function qg(e,t,n=globalThis.Headers){const r={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(r.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(r.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){r.headers=new n((t==null?void 0:t.headers)||{});for(const[o,s]of new n((e==null?void 0:e.headers)||{}))r.headers.set(o,s)}return r}const zg=new Set([408,409,425,429,500,502,503,504]),Gg=new Set([101,204,205,304]);function Sf(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function o(l){const a=l.error&&l.error.name==="AbortError"&&!l.options.timeout||!1;if(l.options.retry!==!1&&!a){let c;typeof l.options.retry=="number"?c=l.options.retry:c=La(l.options.method)?0:1;const f=l.response&&l.response.status||500;if(c>0&&(Array.isArray(l.options.retryStatusCodes)?l.options.retryStatusCodes.includes(f):zg.has(f))){const d=l.options.retryDelay||0;return d>0&&await new Promise(p=>setTimeout(p,d)),s(l.request,{...l.options,retry:c-1,timeout:l.options.timeout})}}const u=$g(l);throw Error.captureStackTrace&&Error.captureStackTrace(u,s),u}const s=async function(a,u={}){var d;const c={request:a,options:qg(u,e.defaults,n),response:void 0,error:void 0};if(c.options.method=(d=c.options.method)==null?void 0:d.toUpperCase(),c.options.onRequest&&await c.options.onRequest(c),typeof c.request=="string"&&(c.options.baseURL&&(c.request=xg(c.request,c.options.baseURL)),(c.options.query||c.options.params)&&(c.request=vf(c.request,{...c.options.params,...c.options.query}))),c.options.body&&La(c.options.method)&&(Ug(c.options.body)?(c.options.body=typeof c.options.body=="string"?c.options.body:JSON.stringify(c.options.body),c.options.headers=new n(c.options.headers||{}),c.options.headers.has("content-type")||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")):("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half"))),!c.options.signal&&c.options.timeout){const p=new r;setTimeout(()=>p.abort(),c.options.timeout),c.options.signal=p.signal}try{c.response=await t(c.request,c.options)}catch(p){return c.error=p,c.options.onRequestError&&await c.options.onRequestError(c),await o(c)}if(c.response.body&&!Gg.has(c.response.status)&&c.options.method!=="HEAD"){const p=(c.options.parseResponse?"json":c.options.responseType)||Kg(c.response.headers.get("content-type")||"");switch(p){case"json":{const g=await c.response.text(),_=c.options.parseResponse||qo;c.response._data=_(g);break}case"stream":{c.response._data=c.response.body;break}default:c.response._data=await c.response[p]()}}return c.options.onResponse&&await c.options.onResponse(c),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await c.options.onResponseError(c),await o(c)):c.response},i=async function(a,u){return(await s(a,u))._data};return i.raw=s,i.native=(...l)=>t(...l),i.create=(l={})=>Sf({...e,defaults:{...e.defaults,...l}}),i}const Al=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Jg=Al.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),Xg=Al.Headers,Yg=Al.AbortController,Qg=Sf({fetch:Jg,Headers:Xg,AbortController:Yg}),Zg=Qg;globalThis.$fetch||(globalThis.$fetch=Zg.create({baseURL:Mg()}));function Ri(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?Ri(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const ey={run:e=>e()},ty=()=>ey,Rf=typeof console.createTask<"u"?console.createTask:ty;function ny(e,t){const n=t.shift(),r=Rf(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function ry(e,t){const n=t.shift(),r=Rf(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function Us(e,t){for(const n of[...e])n(t)}class oy{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Ri(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=Ri(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(ny,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(ry,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Us(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&Us(this._after,o)}):(this._after&&o&&Us(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function kf(){return new oy}function sy(e={}){let t,n=!1;const r=i=>{if(t&&t!==i)throw new Error("Context conflict")};let o;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?o=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const s=()=>{if(o&&t===void 0){const i=o.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=s();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>s(),set:(i,l)=>{l||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,l)=>{r(i),t=i;try{return o?o.run(i,l):l()}finally{n||(t=void 0)}},async callAsync(i,l){t=i;const a=()=>{t=i},u=()=>t===i?a:void 0;ki.add(u);try{const c=o?o.run(i,l):l();return n||(t=void 0),await c}finally{ki.delete(u)}}}}function iy(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=sy({...e,...r})),t[n],t[n]}}}const zo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Ha="__unctx__",ly=zo[Ha]||(zo[Ha]=iy()),ay=(e,t={})=>ly.get(e,t),Ba="__unctx_async_handlers__",ki=zo[Ba]||(zo[Ba]=new Set);function jn(e){const t=[];for(const o of ki){const s=o();s&&t.push(s)}const n=()=>{for(const o of t)o()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(o=>{throw n(),o})),[r,n]}const xf=ay("nuxt-app",{asyncContext:!1}),cy="__nuxt_plugin";function uy(e){let t=0;const n={_scope:es(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.10.2"},get vue(){return n.vueApp.version}},payload:Tt({data:{},state:{},once:new Set,_errors:{},...window.__NUXT__??{}}),static:{data:{}},runWithContext:o=>n._scope.run(()=>hy(n,o)),isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...e};n.hooks=kf(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,s)=>{const i="$"+o;Co(n,i,s),Co(n.vueApp.config.globalProperties,i,s)},Co(n.vueApp,"$nuxt",n),Co(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",s=>{n.callHook("app:chunkError",{error:s.payload})}),window.useNuxtApp=window.useNuxtApp||He;const o=n.hook("app:error",(...s)=>{console.error("[nuxt] error caught during app initialization",...s)});n.hook("app:mounted",o)}const r=Tt(n.payload.config);return n.provide("config",r),n}async function fy(e,t){if(t.hooks&&e.hooks.addHooks(t.hooks),typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function dy(e,t){const n=[],r=[],o=[],s=[];let i=0;async function l(a){var c;const u=((c=a.dependsOn)==null?void 0:c.filter(f=>t.some(d=>d._name===f)&&!n.includes(f)))??[];if(u.length>0)r.push([new Set(u),a]);else{const f=fy(e,a).then(async()=>{a._name&&(n.push(a._name),await Promise.all(r.map(async([d,p])=>{d.has(a._name)&&(d.delete(a._name),d.size===0&&(i++,await l(p)))})))});a.parallel?o.push(f.catch(d=>s.push(d))):await f}}for(const a of t)await l(a);if(await Promise.all(o),i)for(let a=0;a{}),e,{[cy]:!0,_name:t})}function hy(e,t,n){const r=()=>n?t(...n):t();return xf.set(e),e.vueApp.runWithContext(r)}function py(){var t;let e;return hs()&&(e=(t=$t())==null?void 0:t.appContext.app.$nuxt),e=e||xf.tryUse(),e||null}function He(){const e=py();if(!e)throw new Error("[nuxt] instance unavailable");return e}function bs(e){return He().$config}function Co(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function my(e){return{ctx:{table:e},matchAll:t=>Pf(t,e)}}function Tf(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,o])=>[r,Tf(o)])):new Map(Object.entries(e[n]));return t}function gy(e){return my(Tf(e))}function Pf(e,t){const n=[];for(const[o,s]of ja(t.wildcard))e.startsWith(o)&&n.push(s);for(const[o,s]of ja(t.dynamic))if(e.startsWith(o+"/")){const i="/"+e.slice(o.length).split("/").splice(2).join("/");n.push(...Pf(i,s))}const r=t.static.get(e);return r&&n.push(r),n.filter(Boolean)}function ja(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function Vs(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function xi(e,t,n=".",r){if(!Vs(t))return xi(e,{},n,r);const o=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(r&&r(o,s,i,n)||(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:Vs(i)&&Vs(o[s])?o[s]=xi(i,o[s],(n?`${n}.`:"")+s.toString(),r):o[s]=i))}return o}function Af(e){return(...t)=>t.reduce((n,r)=>xi(n,r,"",e),{})}const Of=Af(),yy=Af((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0});function by(e,t){try{return t in e}catch{return!1}}var _y=Object.defineProperty,vy=(e,t,n)=>t in e?_y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xn=(e,t,n)=>(vy(e,typeof t!="symbol"?t+"":t,n),n);class Ti extends Error{constructor(t,n={}){super(t,n),xn(this,"statusCode",500),xn(this,"fatal",!1),xn(this,"unhandled",!1),xn(this,"statusMessage"),xn(this,"data"),xn(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:Ai(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=Mf(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}xn(Ti,"__h3_error__",!0);function Pi(e){if(typeof e=="string")return new Ti(e);if(wy(e))return e;const t=new Ti(e.message??e.statusMessage??"",{cause:e.cause||e});if(by(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=Ai(e.statusCode,t.statusCode):e.status&&(t.statusCode=Ai(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Mf(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function wy(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const Ey=/[^\u0009\u0020-\u007E]/g;function Mf(e=""){return e.replace(Ey,"")}function Ai(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Nf=Symbol("layout-meta"),ro=Symbol("route"),Ot=()=>{var e;return(e=He())==null?void 0:e.$router},Ol=()=>hs()?ze(ro,He()._route):He()._route;const Cy=()=>{try{if(He()._processingMiddleware)return!0}catch{return!0}return!1},Sy=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:vf(e.path||"/",e.query||{})+(e.hash||"");if(t!=null&&t.open){{const{target:l="_blank",windowFeatures:a={}}=t.open,u=Object.entries(a).filter(([c,f])=>f!==void 0).map(([c,f])=>`${c.toLowerCase()}=${f}`).join(", ");open(n,l,u)}return Promise.resolve()}const r=(t==null?void 0:t.external)||to(n,{acceptRelative:!0});if(r){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const l=ys(n).protocol;if(l&&Rg(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=Cy();if(!r&&o)return e;const s=Ot(),i=He();return r?(i._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,o?i.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?s.replace(e):s.push(e)},If="__nuxt_error",_s=()=>eu(He().payload,"error"),Gn=e=>{const t=vs(e);try{const n=He(),r=_s();n.hooks.callHook("app:error",t),r.value=r.value||t}catch{throw t}return t},Ry=async(e={})=>{const t=He(),n=_s();t.callHook("app:error:cleared",e),e.redirect&&await Ot().replace(e.redirect),n.value=null},ky=e=>!!e&&typeof e=="object"&&If in e,vs=e=>{const t=Pi(e);return Object.defineProperty(t,If,{value:!0,configurable:!1,writable:!1}),t},xy="modulepreload",Ty=function(e,t){return e[0]==="."?new URL(e,t).href:e},Fa={},Py=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link");o=Promise.all(n.map(i=>{if(i=Ty(i,r),i in Fa)return;Fa[i]=!0;const l=i.endsWith(".css"),a=l?'[rel="stylesheet"]':"";if(!!r)for(let f=s.length-1;f>=0;f--){const d=s[f];if(d.href===i&&(!l||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const c=document.createElement("link");if(c.rel=l?"stylesheet":xy,l||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),l)return new Promise((f,d)=>{c.addEventListener("load",f),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})}))}return o.then(()=>t()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})},Gt=(...e)=>Py(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),Ay=-1,Oy=-2,My=-3,Ny=-4,Iy=-5,Ly=-6;function Hy(e,t){return By(JSON.parse(e),t)}function By(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function o(s,i=!1){if(s===Ay)return;if(s===My)return NaN;if(s===Ny)return 1/0;if(s===Iy)return-1/0;if(s===Ly)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const l=n[s];if(!l||typeof l!="object")r[s]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const a=l[0],u=t==null?void 0:t[a];if(u)return r[s]=u(o(l[1]));switch(a){case"Date":r[s]=new Date(l[1]);break;case"Set":const c=new Set;r[s]=c;for(let p=1;p>>9)+65536).toString(16).substring(1,8).toLowerCase()}function $a(e){return e._h||Ml(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,n])=>`${t}:${String(n)}`).join(",")}`)}function Hf(e,t){const{props:n,tag:r}=e;if(Dy.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const o=["id"];r==="meta"&&o.push("name","property","http-equiv");for(const s of o)if(typeof n[s]<"u"){const i=String(n[s]);return t&&!t(i)?!1:`${r}:${s}:${i}`}return!1}function Da(e,t){return e==null?t||null:typeof e=="function"?e(t):e}async function Vy(e,t,n){const r={tag:e,props:await Bf(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t},["templateParams","titleTemplate"].includes(e))};return Lf.forEach(o=>{const s=typeof r.props[o]<"u"?r.props[o]:n[o];typeof s<"u"&&((!["innerHTML","textContent","children"].includes(o)||Fy.includes(r.tag))&&(r[o==="children"?"innerHTML":o]=s),delete r.props[o])}),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(o=>({...r,props:{...r.props,content:o}})):r}function Wy(e){return typeof e=="object"&&!Array.isArray(e)&&(e=Object.keys(e).filter(t=>e[t])),(Array.isArray(e)?e.join(" "):e).split(" ").filter(t=>t.trim()).filter(Boolean).join(" ")}async function Bf(e,t){for(const n of Object.keys(e)){if(n==="class"){e[n]=Wy(e[n]);continue}if(e[n]instanceof Promise&&(e[n]=await e[n]),!t&&!Lf.includes(n)){const r=String(e[n]),o=n.startsWith("data-");r==="true"||r===""?e[n]=o?"true":!0:e[n]||(o&&r==="false"?e[n]="false":delete e[n])}}return e}const Ky=10;async function qy(e){const t=[];return Object.entries(e.resolvedInput).filter(([n,r])=>typeof r<"u"&&$y.includes(n)).forEach(([n,r])=>{const o=jy(r);t.push(...o.map(s=>Vy(n,s,e)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((n,r)=>(n._e=e._i,e.mode&&(n._m=e.mode),n._p=(e._i<a&&a[u]||void 0,t):l=t[i],typeof l<"u"?(l||"").replace(/"/g,'\\"'):!1}let o=e;try{o=decodeURI(e)}catch{}return(o.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(i=>{const l=r(i.slice(1));typeof l=="string"&&(e=e.replace(new RegExp(`\\${i}(\\W|$)`,"g"),(a,u)=>`${l}${u}`).trim())}),e.includes(ln)&&(e.endsWith(ln)&&(e=e.slice(0,-ln.length).trim()),e.startsWith(ln)&&(e=e.slice(ln.length).trim()),e=e.replace(new RegExp(`\\${ln}\\s*\\${ln}`,"g"),ln),e=To(e,{separator:n},n)),e}async function Gy(e){const t={tag:e.tagName.toLowerCase(),props:await Bf(e.getAttributeNames().reduce((n,r)=>({...n,[r]:e.getAttribute(r)}),{})),innerHTML:e.innerHTML};return t._d=Hf(t),t}async function Ff(e,t={}){var c;const n=t.document||e.resolvedOptions.document;if(!n)return;const r={shouldRender:e.dirty,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const o=(await e.resolveTags()).map(f=>({tag:f,id:xo.includes(f.tag)?$a(f):f.tag,shouldRender:!0}));let s=e._dom;if(!s){s={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const f of["body","head"]){const d=(c=n==null?void 0:n[f])==null?void 0:c.children;for(const p of[...d].filter(g=>xo.includes(g.tagName.toLowerCase())))s.elMap[p.getAttribute("data-hid")||$a(await Gy(p))]=p}}s.pendingSideEffects={...s.sideEffects||{}},s.sideEffects={};function i(f,d,p){const g=`${f}:${d}`;s.sideEffects[g]=p,delete s.pendingSideEffects[g]}function l({id:f,$el:d,tag:p}){const g=p.tag.endsWith("Attrs");s.elMap[f]=d,g||(["textContent","innerHTML"].forEach(_=>{p[_]&&p[_]!==d[_]&&(d[_]=p[_])}),i(f,"el",()=>{s.elMap[f].remove(),delete s.elMap[f]})),Object.entries(p.props).forEach(([_,x])=>{const R=`attr:${_}`;if(_==="class")for(const v of(x||"").split(" ").filter(Boolean))g&&i(f,`${R}:${v}`,()=>d.classList.remove(v)),!d.classList.contains(v)&&d.classList.add(v);else d.getAttribute(_)!==x&&d.setAttribute(_,x===!0?"":String(x)),g&&i(f,R,()=>d.removeAttribute(_))})}const a=[],u={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of o){const{tag:d,shouldRender:p,id:g}=f;if(p){if(d.tag==="title"){n.title=d.textContent;continue}f.$el=f.$el||s.elMap[g],f.$el?l(f):xo.includes(d.tag)&&a.push(f)}}for(const f of a){const d=f.tag.tagPosition||"head";f.$el=n.createElement(f.tag.tag),l(f),u[d]=u[d]||n.createDocumentFragment(),u[d].appendChild(f.$el)}for(const f of o)await e.hooks.callHook("dom:renderTag",f,n,i);u.head&&n.head.appendChild(u.head),u.bodyOpen&&n.body.insertBefore(u.bodyOpen,n.body.firstChild),u.bodyClose&&n.body.appendChild(u.bodyClose),Object.values(s.pendingSideEffects).forEach(f=>f()),e._dom=s,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:o})}async function Jy(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domUpdatePromise=e._domUpdatePromise||new Promise(r=>n(async()=>{await Ff(e,t),delete e._domUpdatePromise,r()}))}function Xy(e){return t=>{var r,o;const n=((o=(r=t.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(s){Jy(s,e)}}}}}const Yy=["templateParams","htmlAttrs","bodyAttrs"],Qy={hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(r=>{e.props[r]&&(e.key=e.props[r],delete e.props[r])});const n=Hf(e)||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":function(e){const t={};e.tags.forEach(r=>{const o=(r.key?`${r.tag}:${r.key}`:r._d)||r._p,s=t[o];if(s){let l=r==null?void 0:r.tagDuplicateStrategy;if(!l&&Yy.includes(r.tag)&&(l="merge"),l==="merge"){const a=s.props;["class","style"].forEach(u=>{a[u]&&(r.props[u]?(u==="style"&&!a[u].endsWith(";")&&(a[u]+=";"),r.props[u]=`${a[u]} ${r.props[u]}`):r.props[u]=a[u])}),t[o].props={...a,...r.props};return}else if(r._e===s._e){s._duped=s._duped||[],r._d=`${s._d}:${s._duped.length+1}`,s._duped.push(r);return}else if(Go(r)>Go(s))return}const i=Object.keys(r.props).length+(r.innerHTML?1:0)+(r.textContent?1:0);if(xo.includes(r.tag)&&i===0){delete t[o];return}t[o]=r});const n=[];Object.values(t).forEach(r=>{const o=r._duped;delete r._duped,n.push(r),o&&n.push(...o)}),e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},Zy={mode:"server",hooks:{"tags:resolve":function(e){const t={};e.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{t[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(t).length&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},eb=["script","link","bodyAttrs"];function tb(e){const t={},n={};return Object.entries(e.props).forEach(([r,o])=>{r.startsWith("on")&&typeof o=="function"?(jf.includes(r)&&(t[r]=`this.dataset.${r} = true`),n[r]=o):t[r]=o}),{props:t,eventHandlers:n}}const nb=e=>({hooks:{"tags:resolve":function(t){for(const n of t.tags)if(eb.includes(n.tag)){const{props:r,eventHandlers:o}=tb(n);n.props=r,Object.keys(o).length&&((n.props.src||n.props.href)&&(n.key=n.key||Ml(n.props.src||n.props.href)),n._eventHandlers=o)}},"dom:renderTag":function(t,n,r){if(!t.tag._eventHandlers)return;const o=t.tag.tag==="bodyAttrs"?n.defaultView:t.$el;Object.entries(t.tag._eventHandlers).forEach(([s,i])=>{const l=`${t.tag._d||t.tag._p}:${s}`,a=s.slice(2).toLowerCase(),u=`data-h-${a}`;if(r(t.id,l,()=>{}),t.$el.hasAttribute(u))return;t.$el.setAttribute(u,"");let c;const f=d=>{i(d),c==null||c.disconnect()};s in t.$el.dataset?f(new Event(s.replace("on",""))):jf.includes(s)&&typeof MutationObserver<"u"?(c=new MutationObserver(d=>{d.some(g=>g.attributeName===`data-${s}`)&&(f(new Event(s.replace("on",""))),c==null||c.disconnect())}),c.observe(t.$el,{attributes:!0})):o.addEventListener(a,f),r(t.id,l,()=>{c==null||c.disconnect(),o.removeEventListener(a,f),t.$el.removeAttribute(u)})})}}}),rb=["link","style","script","noscript"],ob={hooks:{"tag:normalise":({tag:e})=>{e.key&&rb.includes(e.tag)&&(e.props["data-hid"]=e._h=Ml(e.key))}}},sb={hooks:{"tags:resolve":e=>{const t=n=>{var r;return(r=e.tags.find(o=>o._d===n))==null?void 0:r._p};for(const{prefix:n,offset:r}of zy)for(const o of e.tags.filter(s=>typeof s.tagPriority=="string"&&s.tagPriority.startsWith(n))){const s=t(o.tagPriority.replace(n,""));typeof s<"u"&&(o._p=s+r)}e.tags.sort((n,r)=>n._p-r._p).sort((n,r)=>Go(n)-Go(r))}}},ib={meta:"content",link:"href",htmlAttrs:"lang"},lb=e=>({hooks:{"tags:resolve":t=>{var l;const{tags:n}=t,r=(l=n.find(a=>a.tag==="title"))==null?void 0:l.textContent,o=n.findIndex(a=>a.tag==="templateParams"),s=o!==-1?n[o].props:{},i=s.separator||"|";delete s.separator,s.pageTitle=To(s.pageTitle||r||"",s,i);for(const a of n.filter(u=>u.processTemplateParams!==!1)){const u=ib[a.tag];u&&typeof a.props[u]=="string"?a.props[u]=To(a.props[u],s,i):(a.processTemplateParams===!0||["titleTemplate","title"].includes(a.tag))&&["innerHTML","textContent"].forEach(c=>{typeof a[c]=="string"&&(a[c]=To(a[c],s,i))})}e._templateParams=s,e._separator=i,t.tags=n.filter(a=>a.tag!=="templateParams")}}}),ab={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(o=>o.tag==="titleTemplate");const r=t.findIndex(o=>o.tag==="title");if(r!==-1&&n!==-1){const o=Da(t[n].textContent,t[r].textContent);o!==null?t[r].textContent=o||t[r].textContent:delete t[r]}else if(n!==-1){const o=Da(t[n].textContent);o!==null&&(t[n].textContent=o,t[n].tag="title",n=-1)}n!==-1&&delete t[n],e.tags=t.filter(Boolean)}}},cb={hooks:{"tags:afterResolve":function(e){for(const t of e.tags)typeof t.innerHTML=="string"&&(t.innerHTML&&["application/ld+json","application/json"].includes(t.props.type)?t.innerHTML=t.innerHTML.replace(/{l.dirty=!0,t.callHook("entries:updated",l)};let o=0,s=[];const i=[],l={plugins:i,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return s},use(a){const u=typeof a=="function"?a(l):a;(!u.key||!i.some(c=>c.key===u.key))&&(i.push(u),Wa(u.mode,n)&&t.addHooks(u.hooks||{}))},push(a,u){u==null||delete u.head;const c={_i:o++,input:a,...u};return Wa(c.mode,n)&&(s.push(c),r()),{dispose(){s=s.filter(f=>f._i!==c._i),t.callHook("entries:updated",l),r()},patch(f){s=s.map(d=>(d._i===c._i&&(d.input=c.input=f),d)),r()}}},async resolveTags(){const a={tags:[],entries:[...s]};await t.callHook("entries:resolve",a);for(const u of a.entries){const c=u.resolvedInput||u.input;if(u.resolvedInput=await(u.transform?u.transform(c):c),u.resolvedInput)for(const f of await qy(u)){const d={tag:f,entry:u,resolvedOptions:l.resolvedOptions};await t.callHook("tag:normalise",d),a.tags.push(d.tag)}}return await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a),a.tags},ssr:n};return[Qy,Zy,nb,ob,sb,lb,ab,cb,...(e==null?void 0:e.plugins)||[]].forEach(a=>l.use(a)),l.hooks.callHook("init",l),l}function db(){return $f}const hb=Sl.startsWith("3");function pb(e){return typeof e=="function"?e():Pe(e)}function Oi(e,t=""){if(e instanceof Promise)return e;const n=pb(e);return!e||!n?n:Array.isArray(n)?n.map(r=>Oi(r,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,o])=>r==="titleTemplate"||r.startsWith("on")?[r,Pe(o)]:[r,Oi(o,r)])):n}const mb={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=Oi(t.input)}}},Df="usehead";function gb(e){return{install(n){hb&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Df,e))}}.install}function yb(e={}){e.domDelayFn=e.domDelayFn||(n=>At(()=>setTimeout(()=>n(),0)));const t=ub(e);return t.use(mb),t.install=gb(t),t}const Mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ni="__unhead_injection_handler__";function bb(e){Mi[Ni]=e}function iw(){if(Ni in Mi)return Mi[Ni]();const e=ze(Df);return e||db()}const _b={nuxt:{buildId:"f00cf603-bac3-47e9-98a3-353396ec875f"}},vb=yy(_b);function wb(){const e=He();return e._appConfig||(e._appConfig=Tt(vb)),e._appConfig}const Eb=!1,Ii=!1,Cb=!1,lw={componentName:"NuxtLink"},Sb="#__nuxt";let Po,Uf;function Rb(){var t;const e=(t=wb().nuxt)==null?void 0:t.buildId;return Po=$fetch(Pl(`builds/meta/${e}.json`)),Po.then(n=>{Uf=gy(n.matcher)}),Po}function ws(){return Po||Rb()}async function Vf(e){return await ws(),Of({},...Uf.matchAll(e).reverse())}function Ka(e,t={}){const n=kb(e,t),r=He(),o=r._payloadCache=r._payloadCache||{};return n in o||(o[n]=xb(e).then(s=>s?Wf(n).then(i=>i||(delete o[n],null)):(o[n]=null,null))),o[n]}const qa="json";function kb(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||to(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=t.hash||(t.fresh?Date.now():"");return no(bs().app.baseURL,n.pathname,r?`_payload.${r}.${qa}`:`_payload.${qa}`)}async function Wf(e){const t=fetch(e).then(n=>n.text().then(Kf));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function xb(e=Ol().path){if(e=Tl(e),(await ws()).prerendered.includes(e))return!0;const n=await Vf(e);return!!n.prerender&&!n.redirect}let So=null;async function Tb(){if(So)return So;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Kf(e.textContent||""),n=e.dataset.src?await Wf(e.dataset.src):void 0;return So={...t,...n,...window.__NUXT__},So}async function Kf(e){return await Hy(e,He()._payloadRevivers)}function Pb(e,t){He()._payloadRevivers[e]=t}const za={NuxtError:e=>vs(e),EmptyShallowRef:e=>or(e==="_"?void 0:e==="0n"?BigInt(0):qo(e)),EmptyRef:e=>mt(e==="_"?void 0:e==="0n"?BigInt(0):qo(e)),ShallowRef:e=>or(e),ShallowReactive:e=>dr(e),Ref:e=>mt(e),Reactive:e=>Tt(e)},Ab=Dt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const r in za)Pb(r,za[r]);Object.assign(e.payload,([t,n]=jn(()=>e.runWithContext(Tb)),t=await t,n(),t)),window.__NUXT__=e.payload}}),Ob=[],Mb=Dt({name:"nuxt:head",enforce:"pre",setup(e){const t=yb({plugins:Ob});bb(()=>He().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await Ff(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*! +**/const rg=()=>{},og=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:gu,BaseTransitionPropsValidators:pl,Comment:et,DeprecationTypes:gm,EffectScope:Qi,ErrorCodes:Ih,ErrorTypeStrings:cm,Fragment:qe,KeepAlive:bu,ReactiveEffect:rr,Static:Nn,Suspense:ls,Teleport:qp,Text:Ln,TrackOpTypes:Oh,Transition:eo,TransitionGroup:Wm,TriggerOpTypes:Mh,VueElement:gs,assertNumber:Nh,callWithAsyncErrorHandling:gt,callWithErrorHandling:Yt,camelize:rt,capitalize:Kr,cloneVNode:jt,compatUtils:mm,compile:rg,computed:Ze,createApp:gf,createBlock:Ht,createCommentVNode:Yp,createElementBlock:zp,createElementVNode:_l,createHydrationRenderer:Bu,createPropsRestProxy:Rp,createRenderer:Hu,createSSRApp:yf,createSlots:up,createStaticVNode:Xp,createTextVNode:wl,createVNode:Oe,customRef:Qc,defineAsyncComponent:si,defineComponent:Ft,defineCustomElement:rf,defineEmits:mp,defineExpose:gp,defineModel:_p,defineOptions:yp,defineProps:pp,defineSSRCustomElement:$m,defineSlots:bp,devtools:um,effect:th,effectScope:es,getCurrentInstance:$t,getCurrentScope:Zi,getTransitionRawChildren:as,guardReactiveProps:vl,h:lt,handleError:Un,hasInjectionContext:hs,hydrate:mf,initCustomFormatter:im,initDirectivesForSSR:ng,inject:ze,isMemoSame:Xu,isProxy:ol,isReactive:Xt,isReadonly:En,isRef:Be,isRuntimeOnly:nm,isShallow:Ir,isVNode:Cn,markRaw:Gr,mergeDefaults:Cp,mergeModels:Sp,mergeProps:Cl,nextTick:At,normalizeClass:zr,normalizeProps:Mc,normalizeStyle:qr,onActivated:_u,onBeforeMount:Eu,onBeforeUnmount:fs,onBeforeUpdate:Cu,onDeactivated:vu,onErrorCaptured:ml,onMounted:Qr,onRenderTracked:ku,onRenderTriggered:Ru,onScopeDispose:Hc,onServerPrefetch:Su,onUnmounted:ds,onUpdated:us,openBlock:Rt,popScopeId:Uh,provide:_n,proxyRefs:ll,pushScopeId:Dh,queuePostFlushCb:Ho,reactive:Tt,readonly:rl,ref:mt,registerRuntimeCompiler:tm,render:wi,renderList:cp,renderSlot:fp,resolveComponent:Jh,resolveDirective:Xh,resolveDynamicComponent:au,resolveFilter:pm,resolveTransitionHooks:sr,setBlockTracking:di,setDevtoolsHook:fm,setTransitionHooks:In,shallowReactive:dr,shallowReadonly:Eh,shallowRef:or,ssrContextKey:fu,ssrUtils:hm,stop:nh,toDisplayString:Zd,toHandlerKey:Sr,toHandlers:dp,toRaw:ue,toRef:eu,toRefs:Zc,toValue:kh,transformVNodeArgs:Gp,triggerRef:Rh,unref:Pe,useAttrs:Ep,useCssModule:Um,useCssVars:Rm,useModel:sm,useSSRContext:du,useSlots:wp,useTransitionState:hl,vModelCheckbox:Rl,vModelDynamic:uf,vModelRadio:kl,vModelSelect:af,vModelText:Vo,vShow:tf,version:Sl,warn:am,watch:bn,watchEffect:rp,watchPostEffect:hu,watchSyncEffect:pu,withAsyncContext:kp,withCtx:Jr,withDefaults:vp,withDirectives:sp,withKeys:tg,withMemo:lm,withModifiers:Zm,withScopeId:Vh},Symbol.toStringTag,{value:"Module"})),sg=/#/g,ig=/&/g,lg=/\//g,ag=/=/g,xl=/\+/g,cg=/%5e/gi,ug=/%60/gi,fg=/%7c/gi,dg=/%20/gi;function hg(e){return encodeURI(""+e).replace(fg,"|")}function Ei(e){return hg(typeof e=="string"?e:JSON.stringify(e)).replace(xl,"%2B").replace(dg,"+").replace(sg,"%23").replace(ig,"%26").replace(ug,"`").replace(cg,"^").replace(lg,"%2F")}function Ds(e){return Ei(e).replace(ag,"%3D")}function Wo(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function pg(e){return Wo(e.replace(xl," "))}function mg(e){return Wo(e.replace(xl," "))}function gg(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const o=pg(r[1]);if(o==="__proto__"||o==="constructor")continue;const s=mg(r[2]||"");t[o]===void 0?t[o]=s:Array.isArray(t[o])?t[o].push(s):t[o]=[t[o],s]}return t}function yg(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Ds(e)}=${Ei(n)}`).join("&"):`${Ds(e)}=${Ei(t)}`:Ds(e)}function bg(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>yg(t,e[t])).filter(Boolean).join("&")}const _g=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,vg=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,wg=/^([/\\]\s*){2,}[^/\\]/,Eg=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Cg=/\/$|\/\?|\/#/,Sg=/^\.?\//;function to(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?_g.test(e):vg.test(e)||(t.acceptRelative?wg.test(e):!1)}function Rg(e){return!!e&&Eg.test(e)}function Ci(e="",t){return t?Cg.test(e):e.endsWith("/")}function Tl(e="",t){if(!t)return(Ci(e)?e.slice(0,-1):e)||"/";if(!Ci(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");o>=0&&(n=e.slice(0,o),r=e.slice(o));const[s,...i]=n.split("?");return(s.slice(0,-1)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function Si(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Ci(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");if(o>=0&&(n=e.slice(0,o),r=e.slice(o),!n))return r;const[s,...i]=n.split("?");return s+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function kg(e=""){return e.startsWith("/")}function Ma(e=""){return kg(e)?e:"/"+e}function xg(e,t){if(wf(t)||to(e))return e;const n=Tl(t);return e.startsWith(n)?e:no(n,e)}function Na(e,t){if(wf(t))return e;const n=Tl(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function vf(e,t){const n=ys(e),r={...gg(n.search),...t};return n.search=bg(r),Ag(n)}function wf(e){return!e||e==="/"}function Tg(e){return e&&e!=="/"}function no(e,...t){let n=e||"";for(const r of t.filter(o=>Tg(o)))if(n){const o=r.replace(Sg,"");n=Si(n)+o}else n=r;return n}function Pg(e,t,n={}){return n.trailingSlash||(e=Si(e),t=Si(t)),n.leadingSlash||(e=Ma(e),t=Ma(t)),n.encoding||(e=Wo(e),t=Wo(t)),e===t}const Ef=Symbol.for("ufo:protocolRelative");function ys(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!to(e,{acceptRelative:!0}))return t?ys(t+e):Ia(e);const[,r="",o,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,i="",l=""]=s.match(/([^#/?]*)(.*)?/)||[],{pathname:a,search:u,hash:c}=Ia(l.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:r.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:i,pathname:a,search:u,hash:c,[Ef]:!r}}function Ia(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Ag(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",o=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[Ef]?(e.protocol||"")+"//":"")+o+s+t+n+r}const Og=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},Ko=Og().app,Mg=()=>Ko.baseURL,Ng=()=>Ko.buildAssetsDir,Pl=(...e)=>no(Cf(),Ng(),...e),Cf=(...e)=>{const t=Ko.cdnURL||Ko.baseURL;return e.length?no(t,...e):t};globalThis.__buildAssetsURL=Pl,globalThis.__publicAssetsURL=Cf;const Ig=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Lg=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Hg=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Bg(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){jg(e);return}return t}function jg(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function qo(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.at(-1)==='"'&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!Hg.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Ig.test(e)||Lg.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Bg)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}class Fg extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function $g(e){var a,u,c,f,d;const t=((a=e.error)==null?void 0:a.message)||((u=e.error)==null?void 0:u.toString())||"",n=((c=e.request)==null?void 0:c.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",o=`[${n}] ${JSON.stringify(r)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"",i=`${o}: ${s}${t?` ${t}`:""}`,l=new Fg(i,e.error?{cause:e.error}:void 0);for(const p of["request","options","response"])Object.defineProperty(l,p,{get(){return e[p]}});for(const[p,g]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(l,p,{get(){return e.response&&e.response[g]}});return l}const Dg=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function La(e="GET"){return Dg.has(e.toUpperCase())}function Ug(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Vg=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Wg=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Kg(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Wg.test(t)?"json":Vg.has(t)||t.startsWith("text/")?"text":"blob"}function qg(e,t,n=globalThis.Headers){const r={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(r.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(r.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){r.headers=new n((t==null?void 0:t.headers)||{});for(const[o,s]of new n((e==null?void 0:e.headers)||{}))r.headers.set(o,s)}return r}const zg=new Set([408,409,425,429,500,502,503,504]),Gg=new Set([101,204,205,304]);function Sf(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function o(l){const a=l.error&&l.error.name==="AbortError"&&!l.options.timeout||!1;if(l.options.retry!==!1&&!a){let c;typeof l.options.retry=="number"?c=l.options.retry:c=La(l.options.method)?0:1;const f=l.response&&l.response.status||500;if(c>0&&(Array.isArray(l.options.retryStatusCodes)?l.options.retryStatusCodes.includes(f):zg.has(f))){const d=l.options.retryDelay||0;return d>0&&await new Promise(p=>setTimeout(p,d)),s(l.request,{...l.options,retry:c-1,timeout:l.options.timeout})}}const u=$g(l);throw Error.captureStackTrace&&Error.captureStackTrace(u,s),u}const s=async function(a,u={}){var d;const c={request:a,options:qg(u,e.defaults,n),response:void 0,error:void 0};if(c.options.method=(d=c.options.method)==null?void 0:d.toUpperCase(),c.options.onRequest&&await c.options.onRequest(c),typeof c.request=="string"&&(c.options.baseURL&&(c.request=xg(c.request,c.options.baseURL)),(c.options.query||c.options.params)&&(c.request=vf(c.request,{...c.options.params,...c.options.query}))),c.options.body&&La(c.options.method)&&(Ug(c.options.body)?(c.options.body=typeof c.options.body=="string"?c.options.body:JSON.stringify(c.options.body),c.options.headers=new n(c.options.headers||{}),c.options.headers.has("content-type")||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")):("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half"))),!c.options.signal&&c.options.timeout){const p=new r;setTimeout(()=>p.abort(),c.options.timeout),c.options.signal=p.signal}try{c.response=await t(c.request,c.options)}catch(p){return c.error=p,c.options.onRequestError&&await c.options.onRequestError(c),await o(c)}if(c.response.body&&!Gg.has(c.response.status)&&c.options.method!=="HEAD"){const p=(c.options.parseResponse?"json":c.options.responseType)||Kg(c.response.headers.get("content-type")||"");switch(p){case"json":{const g=await c.response.text(),_=c.options.parseResponse||qo;c.response._data=_(g);break}case"stream":{c.response._data=c.response.body;break}default:c.response._data=await c.response[p]()}}return c.options.onResponse&&await c.options.onResponse(c),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await c.options.onResponseError(c),await o(c)):c.response},i=async function(a,u){return(await s(a,u))._data};return i.raw=s,i.native=(...l)=>t(...l),i.create=(l={})=>Sf({...e,defaults:{...e.defaults,...l}}),i}const Al=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Jg=Al.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),Xg=Al.Headers,Yg=Al.AbortController,Qg=Sf({fetch:Jg,Headers:Xg,AbortController:Yg}),Zg=Qg;globalThis.$fetch||(globalThis.$fetch=Zg.create({baseURL:Mg()}));function Ri(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?Ri(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const ey={run:e=>e()},ty=()=>ey,Rf=typeof console.createTask<"u"?console.createTask:ty;function ny(e,t){const n=t.shift(),r=Rf(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function ry(e,t){const n=t.shift(),r=Rf(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function Us(e,t){for(const n of[...e])n(t)}class oy{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Ri(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=Ri(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(ny,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(ry,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Us(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&Us(this._after,o)}):(this._after&&o&&Us(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function kf(){return new oy}function sy(e={}){let t,n=!1;const r=i=>{if(t&&t!==i)throw new Error("Context conflict")};let o;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?o=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const s=()=>{if(o&&t===void 0){const i=o.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=s();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>s(),set:(i,l)=>{l||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,l)=>{r(i),t=i;try{return o?o.run(i,l):l()}finally{n||(t=void 0)}},async callAsync(i,l){t=i;const a=()=>{t=i},u=()=>t===i?a:void 0;ki.add(u);try{const c=o?o.run(i,l):l();return n||(t=void 0),await c}finally{ki.delete(u)}}}}function iy(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=sy({...e,...r})),t[n],t[n]}}}const zo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Ha="__unctx__",ly=zo[Ha]||(zo[Ha]=iy()),ay=(e,t={})=>ly.get(e,t),Ba="__unctx_async_handlers__",ki=zo[Ba]||(zo[Ba]=new Set);function jn(e){const t=[];for(const o of ki){const s=o();s&&t.push(s)}const n=()=>{for(const o of t)o()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(o=>{throw n(),o})),[r,n]}const xf=ay("nuxt-app",{asyncContext:!1}),cy="__nuxt_plugin";function uy(e){let t=0;const n={_scope:es(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.10.2"},get vue(){return n.vueApp.version}},payload:Tt({data:{},state:{},once:new Set,_errors:{},...window.__NUXT__??{}}),static:{data:{}},runWithContext:o=>n._scope.run(()=>hy(n,o)),isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...e};n.hooks=kf(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,s)=>{const i="$"+o;Co(n,i,s),Co(n.vueApp.config.globalProperties,i,s)},Co(n.vueApp,"$nuxt",n),Co(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",s=>{n.callHook("app:chunkError",{error:s.payload})}),window.useNuxtApp=window.useNuxtApp||He;const o=n.hook("app:error",(...s)=>{console.error("[nuxt] error caught during app initialization",...s)});n.hook("app:mounted",o)}const r=Tt(n.payload.config);return n.provide("config",r),n}async function fy(e,t){if(t.hooks&&e.hooks.addHooks(t.hooks),typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function dy(e,t){const n=[],r=[],o=[],s=[];let i=0;async function l(a){var c;const u=((c=a.dependsOn)==null?void 0:c.filter(f=>t.some(d=>d._name===f)&&!n.includes(f)))??[];if(u.length>0)r.push([new Set(u),a]);else{const f=fy(e,a).then(async()=>{a._name&&(n.push(a._name),await Promise.all(r.map(async([d,p])=>{d.has(a._name)&&(d.delete(a._name),d.size===0&&(i++,await l(p)))})))});a.parallel?o.push(f.catch(d=>s.push(d))):await f}}for(const a of t)await l(a);if(await Promise.all(o),i)for(let a=0;a{}),e,{[cy]:!0,_name:t})}function hy(e,t,n){const r=()=>n?t(...n):t();return xf.set(e),e.vueApp.runWithContext(r)}function py(){var t;let e;return hs()&&(e=(t=$t())==null?void 0:t.appContext.app.$nuxt),e=e||xf.tryUse(),e||null}function He(){const e=py();if(!e)throw new Error("[nuxt] instance unavailable");return e}function bs(e){return He().$config}function Co(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function my(e){return{ctx:{table:e},matchAll:t=>Pf(t,e)}}function Tf(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,o])=>[r,Tf(o)])):new Map(Object.entries(e[n]));return t}function gy(e){return my(Tf(e))}function Pf(e,t){const n=[];for(const[o,s]of ja(t.wildcard))e.startsWith(o)&&n.push(s);for(const[o,s]of ja(t.dynamic))if(e.startsWith(o+"/")){const i="/"+e.slice(o.length).split("/").splice(2).join("/");n.push(...Pf(i,s))}const r=t.static.get(e);return r&&n.push(r),n.filter(Boolean)}function ja(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function Vs(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function xi(e,t,n=".",r){if(!Vs(t))return xi(e,{},n,r);const o=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(r&&r(o,s,i,n)||(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:Vs(i)&&Vs(o[s])?o[s]=xi(i,o[s],(n?`${n}.`:"")+s.toString(),r):o[s]=i))}return o}function Af(e){return(...t)=>t.reduce((n,r)=>xi(n,r,"",e),{})}const Of=Af(),yy=Af((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0});function by(e,t){try{return t in e}catch{return!1}}var _y=Object.defineProperty,vy=(e,t,n)=>t in e?_y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xn=(e,t,n)=>(vy(e,typeof t!="symbol"?t+"":t,n),n);class Ti extends Error{constructor(t,n={}){super(t,n),xn(this,"statusCode",500),xn(this,"fatal",!1),xn(this,"unhandled",!1),xn(this,"statusMessage"),xn(this,"data"),xn(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:Ai(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=Mf(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}xn(Ti,"__h3_error__",!0);function Pi(e){if(typeof e=="string")return new Ti(e);if(wy(e))return e;const t=new Ti(e.message??e.statusMessage??"",{cause:e.cause||e});if(by(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=Ai(e.statusCode,t.statusCode):e.status&&(t.statusCode=Ai(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Mf(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function wy(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const Ey=/[^\u0009\u0020-\u007E]/g;function Mf(e=""){return e.replace(Ey,"")}function Ai(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Nf=Symbol("layout-meta"),ro=Symbol("route"),Ot=()=>{var e;return(e=He())==null?void 0:e.$router},Ol=()=>hs()?ze(ro,He()._route):He()._route;const Cy=()=>{try{if(He()._processingMiddleware)return!0}catch{return!0}return!1},Sy=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:vf(e.path||"/",e.query||{})+(e.hash||"");if(t!=null&&t.open){{const{target:l="_blank",windowFeatures:a={}}=t.open,u=Object.entries(a).filter(([c,f])=>f!==void 0).map(([c,f])=>`${c.toLowerCase()}=${f}`).join(", ");open(n,l,u)}return Promise.resolve()}const r=(t==null?void 0:t.external)||to(n,{acceptRelative:!0});if(r){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const l=ys(n).protocol;if(l&&Rg(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=Cy();if(!r&&o)return e;const s=Ot(),i=He();return r?(i._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,o?i.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?s.replace(e):s.push(e)},If="__nuxt_error",_s=()=>eu(He().payload,"error"),Gn=e=>{const t=vs(e);try{const n=He(),r=_s();n.hooks.callHook("app:error",t),r.value=r.value||t}catch{throw t}return t},Ry=async(e={})=>{const t=He(),n=_s();t.callHook("app:error:cleared",e),e.redirect&&await Ot().replace(e.redirect),n.value=null},ky=e=>!!e&&typeof e=="object"&&If in e,vs=e=>{const t=Pi(e);return Object.defineProperty(t,If,{value:!0,configurable:!1,writable:!1}),t},xy="modulepreload",Ty=function(e,t){return e[0]==="."?new URL(e,t).href:e},Fa={},Py=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link");o=Promise.all(n.map(i=>{if(i=Ty(i,r),i in Fa)return;Fa[i]=!0;const l=i.endsWith(".css"),a=l?'[rel="stylesheet"]':"";if(!!r)for(let f=s.length-1;f>=0;f--){const d=s[f];if(d.href===i&&(!l||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const c=document.createElement("link");if(c.rel=l?"stylesheet":xy,l||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),l)return new Promise((f,d)=>{c.addEventListener("load",f),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})}))}return o.then(()=>t()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})},Gt=(...e)=>Py(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),Ay=-1,Oy=-2,My=-3,Ny=-4,Iy=-5,Ly=-6;function Hy(e,t){return By(JSON.parse(e),t)}function By(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function o(s,i=!1){if(s===Ay)return;if(s===My)return NaN;if(s===Ny)return 1/0;if(s===Iy)return-1/0;if(s===Ly)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const l=n[s];if(!l||typeof l!="object")r[s]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const a=l[0],u=t==null?void 0:t[a];if(u)return r[s]=u(o(l[1]));switch(a){case"Date":r[s]=new Date(l[1]);break;case"Set":const c=new Set;r[s]=c;for(let p=1;p>>9)+65536).toString(16).substring(1,8).toLowerCase()}function $a(e){return e._h||Ml(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,n])=>`${t}:${String(n)}`).join(",")}`)}function Hf(e,t){const{props:n,tag:r}=e;if(Dy.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const o=["id"];r==="meta"&&o.push("name","property","http-equiv");for(const s of o)if(typeof n[s]<"u"){const i=String(n[s]);return t&&!t(i)?!1:`${r}:${s}:${i}`}return!1}function Da(e,t){return e==null?t||null:typeof e=="function"?e(t):e}async function Vy(e,t,n){const r={tag:e,props:await Bf(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t},["templateParams","titleTemplate"].includes(e))};return Lf.forEach(o=>{const s=typeof r.props[o]<"u"?r.props[o]:n[o];typeof s<"u"&&((!["innerHTML","textContent","children"].includes(o)||Fy.includes(r.tag))&&(r[o==="children"?"innerHTML":o]=s),delete r.props[o])}),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(o=>({...r,props:{...r.props,content:o}})):r}function Wy(e){return typeof e=="object"&&!Array.isArray(e)&&(e=Object.keys(e).filter(t=>e[t])),(Array.isArray(e)?e.join(" "):e).split(" ").filter(t=>t.trim()).filter(Boolean).join(" ")}async function Bf(e,t){for(const n of Object.keys(e)){if(n==="class"){e[n]=Wy(e[n]);continue}if(e[n]instanceof Promise&&(e[n]=await e[n]),!t&&!Lf.includes(n)){const r=String(e[n]),o=n.startsWith("data-");r==="true"||r===""?e[n]=o?"true":!0:e[n]||(o&&r==="false"?e[n]="false":delete e[n])}}return e}const Ky=10;async function qy(e){const t=[];return Object.entries(e.resolvedInput).filter(([n,r])=>typeof r<"u"&&$y.includes(n)).forEach(([n,r])=>{const o=jy(r);t.push(...o.map(s=>Vy(n,s,e)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((n,r)=>(n._e=e._i,e.mode&&(n._m=e.mode),n._p=(e._i<a&&a[u]||void 0,t):l=t[i],typeof l<"u"?(l||"").replace(/"/g,'\\"'):!1}let o=e;try{o=decodeURI(e)}catch{}return(o.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(i=>{const l=r(i.slice(1));typeof l=="string"&&(e=e.replace(new RegExp(`\\${i}(\\W|$)`,"g"),(a,u)=>`${l}${u}`).trim())}),e.includes(ln)&&(e.endsWith(ln)&&(e=e.slice(0,-ln.length).trim()),e.startsWith(ln)&&(e=e.slice(ln.length).trim()),e=e.replace(new RegExp(`\\${ln}\\s*\\${ln}`,"g"),ln),e=To(e,{separator:n},n)),e}async function Gy(e){const t={tag:e.tagName.toLowerCase(),props:await Bf(e.getAttributeNames().reduce((n,r)=>({...n,[r]:e.getAttribute(r)}),{})),innerHTML:e.innerHTML};return t._d=Hf(t),t}async function Ff(e,t={}){var c;const n=t.document||e.resolvedOptions.document;if(!n)return;const r={shouldRender:e.dirty,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const o=(await e.resolveTags()).map(f=>({tag:f,id:xo.includes(f.tag)?$a(f):f.tag,shouldRender:!0}));let s=e._dom;if(!s){s={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const f of["body","head"]){const d=(c=n==null?void 0:n[f])==null?void 0:c.children;for(const p of[...d].filter(g=>xo.includes(g.tagName.toLowerCase())))s.elMap[p.getAttribute("data-hid")||$a(await Gy(p))]=p}}s.pendingSideEffects={...s.sideEffects||{}},s.sideEffects={};function i(f,d,p){const g=`${f}:${d}`;s.sideEffects[g]=p,delete s.pendingSideEffects[g]}function l({id:f,$el:d,tag:p}){const g=p.tag.endsWith("Attrs");s.elMap[f]=d,g||(["textContent","innerHTML"].forEach(_=>{p[_]&&p[_]!==d[_]&&(d[_]=p[_])}),i(f,"el",()=>{s.elMap[f].remove(),delete s.elMap[f]})),Object.entries(p.props).forEach(([_,x])=>{const R=`attr:${_}`;if(_==="class")for(const v of(x||"").split(" ").filter(Boolean))g&&i(f,`${R}:${v}`,()=>d.classList.remove(v)),!d.classList.contains(v)&&d.classList.add(v);else d.getAttribute(_)!==x&&d.setAttribute(_,x===!0?"":String(x)),g&&i(f,R,()=>d.removeAttribute(_))})}const a=[],u={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of o){const{tag:d,shouldRender:p,id:g}=f;if(p){if(d.tag==="title"){n.title=d.textContent;continue}f.$el=f.$el||s.elMap[g],f.$el?l(f):xo.includes(d.tag)&&a.push(f)}}for(const f of a){const d=f.tag.tagPosition||"head";f.$el=n.createElement(f.tag.tag),l(f),u[d]=u[d]||n.createDocumentFragment(),u[d].appendChild(f.$el)}for(const f of o)await e.hooks.callHook("dom:renderTag",f,n,i);u.head&&n.head.appendChild(u.head),u.bodyOpen&&n.body.insertBefore(u.bodyOpen,n.body.firstChild),u.bodyClose&&n.body.appendChild(u.bodyClose),Object.values(s.pendingSideEffects).forEach(f=>f()),e._dom=s,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:o})}async function Jy(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domUpdatePromise=e._domUpdatePromise||new Promise(r=>n(async()=>{await Ff(e,t),delete e._domUpdatePromise,r()}))}function Xy(e){return t=>{var r,o;const n=((o=(r=t.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(s){Jy(s,e)}}}}}const Yy=["templateParams","htmlAttrs","bodyAttrs"],Qy={hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(r=>{e.props[r]&&(e.key=e.props[r],delete e.props[r])});const n=Hf(e)||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":function(e){const t={};e.tags.forEach(r=>{const o=(r.key?`${r.tag}:${r.key}`:r._d)||r._p,s=t[o];if(s){let l=r==null?void 0:r.tagDuplicateStrategy;if(!l&&Yy.includes(r.tag)&&(l="merge"),l==="merge"){const a=s.props;["class","style"].forEach(u=>{a[u]&&(r.props[u]?(u==="style"&&!a[u].endsWith(";")&&(a[u]+=";"),r.props[u]=`${a[u]} ${r.props[u]}`):r.props[u]=a[u])}),t[o].props={...a,...r.props};return}else if(r._e===s._e){s._duped=s._duped||[],r._d=`${s._d}:${s._duped.length+1}`,s._duped.push(r);return}else if(Go(r)>Go(s))return}const i=Object.keys(r.props).length+(r.innerHTML?1:0)+(r.textContent?1:0);if(xo.includes(r.tag)&&i===0){delete t[o];return}t[o]=r});const n=[];Object.values(t).forEach(r=>{const o=r._duped;delete r._duped,n.push(r),o&&n.push(...o)}),e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},Zy={mode:"server",hooks:{"tags:resolve":function(e){const t={};e.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{t[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(t).length&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},eb=["script","link","bodyAttrs"];function tb(e){const t={},n={};return Object.entries(e.props).forEach(([r,o])=>{r.startsWith("on")&&typeof o=="function"?(jf.includes(r)&&(t[r]=`this.dataset.${r} = true`),n[r]=o):t[r]=o}),{props:t,eventHandlers:n}}const nb=e=>({hooks:{"tags:resolve":function(t){for(const n of t.tags)if(eb.includes(n.tag)){const{props:r,eventHandlers:o}=tb(n);n.props=r,Object.keys(o).length&&((n.props.src||n.props.href)&&(n.key=n.key||Ml(n.props.src||n.props.href)),n._eventHandlers=o)}},"dom:renderTag":function(t,n,r){if(!t.tag._eventHandlers)return;const o=t.tag.tag==="bodyAttrs"?n.defaultView:t.$el;Object.entries(t.tag._eventHandlers).forEach(([s,i])=>{const l=`${t.tag._d||t.tag._p}:${s}`,a=s.slice(2).toLowerCase(),u=`data-h-${a}`;if(r(t.id,l,()=>{}),t.$el.hasAttribute(u))return;t.$el.setAttribute(u,"");let c;const f=d=>{i(d),c==null||c.disconnect()};s in t.$el.dataset?f(new Event(s.replace("on",""))):jf.includes(s)&&typeof MutationObserver<"u"?(c=new MutationObserver(d=>{d.some(g=>g.attributeName===`data-${s}`)&&(f(new Event(s.replace("on",""))),c==null||c.disconnect())}),c.observe(t.$el,{attributes:!0})):o.addEventListener(a,f),r(t.id,l,()=>{c==null||c.disconnect(),o.removeEventListener(a,f),t.$el.removeAttribute(u)})})}}}),rb=["link","style","script","noscript"],ob={hooks:{"tag:normalise":({tag:e})=>{e.key&&rb.includes(e.tag)&&(e.props["data-hid"]=e._h=Ml(e.key))}}},sb={hooks:{"tags:resolve":e=>{const t=n=>{var r;return(r=e.tags.find(o=>o._d===n))==null?void 0:r._p};for(const{prefix:n,offset:r}of zy)for(const o of e.tags.filter(s=>typeof s.tagPriority=="string"&&s.tagPriority.startsWith(n))){const s=t(o.tagPriority.replace(n,""));typeof s<"u"&&(o._p=s+r)}e.tags.sort((n,r)=>n._p-r._p).sort((n,r)=>Go(n)-Go(r))}}},ib={meta:"content",link:"href",htmlAttrs:"lang"},lb=e=>({hooks:{"tags:resolve":t=>{var l;const{tags:n}=t,r=(l=n.find(a=>a.tag==="title"))==null?void 0:l.textContent,o=n.findIndex(a=>a.tag==="templateParams"),s=o!==-1?n[o].props:{},i=s.separator||"|";delete s.separator,s.pageTitle=To(s.pageTitle||r||"",s,i);for(const a of n.filter(u=>u.processTemplateParams!==!1)){const u=ib[a.tag];u&&typeof a.props[u]=="string"?a.props[u]=To(a.props[u],s,i):(a.processTemplateParams===!0||["titleTemplate","title"].includes(a.tag))&&["innerHTML","textContent"].forEach(c=>{typeof a[c]=="string"&&(a[c]=To(a[c],s,i))})}e._templateParams=s,e._separator=i,t.tags=n.filter(a=>a.tag!=="templateParams")}}}),ab={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(o=>o.tag==="titleTemplate");const r=t.findIndex(o=>o.tag==="title");if(r!==-1&&n!==-1){const o=Da(t[n].textContent,t[r].textContent);o!==null?t[r].textContent=o||t[r].textContent:delete t[r]}else if(n!==-1){const o=Da(t[n].textContent);o!==null&&(t[n].textContent=o,t[n].tag="title",n=-1)}n!==-1&&delete t[n],e.tags=t.filter(Boolean)}}},cb={hooks:{"tags:afterResolve":function(e){for(const t of e.tags)typeof t.innerHTML=="string"&&(t.innerHTML&&["application/ld+json","application/json"].includes(t.props.type)?t.innerHTML=t.innerHTML.replace(/{l.dirty=!0,t.callHook("entries:updated",l)};let o=0,s=[];const i=[],l={plugins:i,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return s},use(a){const u=typeof a=="function"?a(l):a;(!u.key||!i.some(c=>c.key===u.key))&&(i.push(u),Wa(u.mode,n)&&t.addHooks(u.hooks||{}))},push(a,u){u==null||delete u.head;const c={_i:o++,input:a,...u};return Wa(c.mode,n)&&(s.push(c),r()),{dispose(){s=s.filter(f=>f._i!==c._i),t.callHook("entries:updated",l),r()},patch(f){s=s.map(d=>(d._i===c._i&&(d.input=c.input=f),d)),r()}}},async resolveTags(){const a={tags:[],entries:[...s]};await t.callHook("entries:resolve",a);for(const u of a.entries){const c=u.resolvedInput||u.input;if(u.resolvedInput=await(u.transform?u.transform(c):c),u.resolvedInput)for(const f of await qy(u)){const d={tag:f,entry:u,resolvedOptions:l.resolvedOptions};await t.callHook("tag:normalise",d),a.tags.push(d.tag)}}return await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a),a.tags},ssr:n};return[Qy,Zy,nb,ob,sb,lb,ab,cb,...(e==null?void 0:e.plugins)||[]].forEach(a=>l.use(a)),l.hooks.callHook("init",l),l}function db(){return $f}const hb=Sl.startsWith("3");function pb(e){return typeof e=="function"?e():Pe(e)}function Oi(e,t=""){if(e instanceof Promise)return e;const n=pb(e);return!e||!n?n:Array.isArray(n)?n.map(r=>Oi(r,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,o])=>r==="titleTemplate"||r.startsWith("on")?[r,Pe(o)]:[r,Oi(o,r)])):n}const mb={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=Oi(t.input)}}},Df="usehead";function gb(e){return{install(n){hb&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Df,e))}}.install}function yb(e={}){e.domDelayFn=e.domDelayFn||(n=>At(()=>setTimeout(()=>n(),0)));const t=ub(e);return t.use(mb),t.install=gb(t),t}const Mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ni="__unhead_injection_handler__";function bb(e){Mi[Ni]=e}function iw(){if(Ni in Mi)return Mi[Ni]();const e=ze(Df);return e||db()}const _b={nuxt:{buildId:"aab99b43-e716-4f34-bc1d-6ca8b255d116"}},vb=yy(_b);function wb(){const e=He();return e._appConfig||(e._appConfig=Tt(vb)),e._appConfig}const Eb=!1,Ii=!1,Cb=!1,lw={componentName:"NuxtLink"},Sb="#__nuxt";let Po,Uf;function Rb(){var t;const e=(t=wb().nuxt)==null?void 0:t.buildId;return Po=$fetch(Pl(`builds/meta/${e}.json`)),Po.then(n=>{Uf=gy(n.matcher)}),Po}function ws(){return Po||Rb()}async function Vf(e){return await ws(),Of({},...Uf.matchAll(e).reverse())}function Ka(e,t={}){const n=kb(e,t),r=He(),o=r._payloadCache=r._payloadCache||{};return n in o||(o[n]=xb(e).then(s=>s?Wf(n).then(i=>i||(delete o[n],null)):(o[n]=null,null))),o[n]}const qa="json";function kb(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||to(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=t.hash||(t.fresh?Date.now():"");return no(bs().app.baseURL,n.pathname,r?`_payload.${r}.${qa}`:`_payload.${qa}`)}async function Wf(e){const t=fetch(e).then(n=>n.text().then(Kf));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function xb(e=Ol().path){if(e=Tl(e),(await ws()).prerendered.includes(e))return!0;const n=await Vf(e);return!!n.prerender&&!n.redirect}let So=null;async function Tb(){if(So)return So;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Kf(e.textContent||""),n=e.dataset.src?await Wf(e.dataset.src):void 0;return So={...t,...n,...window.__NUXT__},So}async function Kf(e){return await Hy(e,He()._payloadRevivers)}function Pb(e,t){He()._payloadRevivers[e]=t}const za={NuxtError:e=>vs(e),EmptyShallowRef:e=>or(e==="_"?void 0:e==="0n"?BigInt(0):qo(e)),EmptyRef:e=>mt(e==="_"?void 0:e==="0n"?BigInt(0):qo(e)),ShallowRef:e=>or(e),ShallowReactive:e=>dr(e),Ref:e=>mt(e),Reactive:e=>Tt(e)},Ab=Dt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const r in za)Pb(r,za[r]);Object.assign(e.payload,([t,n]=jn(()=>e.runWithContext(Tb)),t=await t,n(),t)),window.__NUXT__=e.payload}}),Ob=[],Mb=Dt({name:"nuxt:head",enforce:"pre",setup(e){const t=yb({plugins:Ob});bb(()=>He().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await Ff(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*! * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const zn=typeof window<"u";function Nb(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ce=Object.assign;function Ws(e,t){const n={};for(const r in t){const o=t[r];n[r]=Pt(o)?o.map(e):e(o)}return n}const Pr=()=>{},Pt=Array.isArray,Ib=/\/$/,Lb=e=>e.replace(Ib,"");function Ks(e,t,n="/"){let r,o={},s="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(r=t.slice(0,a),s=t.slice(a+1,l>-1?l:t.length),o=e(s)),l>-1&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=Fb(r??t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:i}}function Hb(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ga(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Bb(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&ar(t.matched[r],n.matched[o])&&qf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ar(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function qf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!jb(e[n],t[n]))return!1;return!0}function jb(e,t){return Pt(e)?Ja(e,t):Pt(t)?Ja(t,e):e===t}function Ja(e,t){return Pt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Fb(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,i,l;for(i=0;i1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var Ur;(function(e){e.pop="pop",e.push="push"})(Ur||(Ur={}));var Ar;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ar||(Ar={}));function $b(e){if(!e)if(zn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Lb(e)}const Db=/^[^#]+#/;function Ub(e,t){return e.replace(Db,"#")+t}function Vb(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Es=()=>({left:window.pageXOffset,top:window.pageYOffset});function Wb(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Vb(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Xa(e,t){return(history.state?history.state.position-t:-1)+e}const Li=new Map;function Kb(e,t){Li.set(e,t)}function qb(e){const t=Li.get(e);return Li.delete(e),t}let zb=()=>location.protocol+"//"+location.host;function zf(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let l=o.includes(e.slice(s))?e.slice(s).length:1,a=o.slice(l);return a[0]!=="/"&&(a="/"+a),Ga(a,"")}return Ga(n,e)+r+o}function Gb(e,t,n,r){let o=[],s=[],i=null;const l=({state:d})=>{const p=zf(e,location),g=n.value,_=t.value;let x=0;if(d){if(n.value=p,t.value=d,i&&i===g){i=null;return}x=_?d.position-_.position:0}else r(p);o.forEach(R=>{R(n.value,g,{delta:x,type:Ur.pop,direction:x?x>0?Ar.forward:Ar.back:Ar.unknown})})};function a(){i=n.value}function u(d){o.push(d);const p=()=>{const g=o.indexOf(d);g>-1&&o.splice(g,1)};return s.push(p),p}function c(){const{history:d}=window;d.state&&d.replaceState(Ce({},d.state,{scroll:Es()}),"")}function f(){for(const d of s)d();s=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:a,listen:u,destroy:f}}function Ya(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Es():null}}function Jb(e){const{history:t,location:n}=window,r={value:zf(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(a,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:zb()+e+a;try{t[c?"replaceState":"pushState"](u,"",d),o.value=u}catch(p){console.error(p),n[c?"replace":"assign"](d)}}function i(a,u){const c=Ce({},t.state,Ya(o.value.back,a,o.value.forward,!0),u,{position:o.value.position});s(a,c,!0),r.value=a}function l(a,u){const c=Ce({},o.value,t.state,{forward:a,scroll:Es()});s(c.current,c,!0);const f=Ce({},Ya(r.value,a,null),{position:c.position+1},u);s(a,f,!1),r.value=a}return{location:r,state:o,push:l,replace:i}}function Gf(e){e=$b(e);const t=Jb(e),n=Gb(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=Ce({location:"",base:e,go:r,createHref:Ub.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Xb(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Gf(e)}function Yb(e){return typeof e=="string"||e&&typeof e=="object"}function Jf(e){return typeof e=="string"||typeof e=="symbol"}const St={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Xf=Symbol("");var Qa;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Qa||(Qa={}));function cr(e,t){return Ce(new Error,{type:e,[Xf]:!0},t)}function Kt(e,t){return e instanceof Error&&Xf in e&&(t==null||!!(e.type&t))}const Za="[^/]+?",Qb={sensitive:!1,strict:!1,start:!0,end:!0},Zb=/[.+*?^${}()[\]/\\]/g;function e_(e,t){const n=Ce({},Qb,t),r=[];let o=n.start?"^":"";const s=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function n_(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const r_={type:0,value:""},o_=/[a-zA-Z0-9_]/;function s_(e){if(!e)return[[]];if(e==="/")return[[r_]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=0,r=n;const o=[];let s;function i(){s&&o.push(s),s=[]}let l=0,a,u="",c="";function f(){u&&(n===0?s.push({type:0,value:u}):n===1||n===2||n===3?(s.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:u,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=a}for(;l{i(v)}:Pr}function i(c){if(Jf(c)){const f=r.get(c);f&&(r.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&r.delete(c.record.name),c.children.forEach(i),c.alias.forEach(i))}}function l(){return n}function a(c){let f=0;for(;f=0&&(c.record.path!==n[f].record.path||!Yf(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!nc(c)&&r.set(c.record.name,c)}function u(c,f){let d,p={},g,_;if("name"in c&&c.name){if(d=r.get(c.name),!d)throw cr(1,{location:c});_=d.record.name,p=Ce(tc(f.params,d.keys.filter(v=>!v.optional).map(v=>v.name)),c.params&&tc(c.params,d.keys.map(v=>v.name))),g=d.stringify(p)}else if("path"in c)g=c.path,d=n.find(v=>v.re.test(g)),d&&(p=d.parse(g),_=d.record.name);else{if(d=f.name?r.get(f.name):n.find(v=>v.re.test(f.path)),!d)throw cr(1,{location:c,currentLocation:f});_=d.record.name,p=Ce({},f.params,c.params),g=d.stringify(p)}const x=[];let R=d;for(;R;)x.unshift(R.record),R=R.parent;return{name:_,path:g,params:p,matched:x,meta:u_(x)}}return e.forEach(c=>s(c)),{addRoute:s,resolve:u,removeRoute:i,getRoutes:l,getRecordMatcher:o}}function tc(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function a_(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:c_(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function c_(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function nc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function u_(e){return e.reduce((t,n)=>Ce(t,n.meta),{})}function rc(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Yf(e,t){return t.children.some(n=>n===e||Yf(e,n))}const Qf=/#/g,f_=/&/g,d_=/\//g,h_=/=/g,p_=/\?/g,Zf=/\+/g,m_=/%5B/g,g_=/%5D/g,ed=/%5E/g,y_=/%60/g,td=/%7B/g,b_=/%7C/g,nd=/%7D/g,__=/%20/g;function Nl(e){return encodeURI(""+e).replace(b_,"|").replace(m_,"[").replace(g_,"]")}function v_(e){return Nl(e).replace(td,"{").replace(nd,"}").replace(ed,"^")}function Hi(e){return Nl(e).replace(Zf,"%2B").replace(__,"+").replace(Qf,"%23").replace(f_,"%26").replace(y_,"`").replace(td,"{").replace(nd,"}").replace(ed,"^")}function w_(e){return Hi(e).replace(h_,"%3D")}function E_(e){return Nl(e).replace(Qf,"%23").replace(p_,"%3F")}function C_(e){return e==null?"":E_(e).replace(d_,"%2F")}function Jo(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function S_(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&Hi(s)):[r&&Hi(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function R_(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Pt(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const k_=Symbol(""),sc=Symbol(""),Il=Symbol(""),Ll=Symbol(""),Bi=Symbol("");function _r(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function mn(e,t,n,r,o){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((i,l)=>{const a=f=>{f===!1?l(cr(4,{from:n,to:t})):f instanceof Error?l(f):Yb(f)?l(cr(2,{from:t,to:f})):(s&&r.enterCallbacks[o]===s&&typeof f=="function"&&s.push(f),i())},u=e.call(r&&r.instances[o],t,n,a);let c=Promise.resolve(u);e.length<3&&(c=c.then(a)),c.catch(f=>l(f))})}function qs(e,t,n,r){const o=[];for(const s of e)for(const i in s.components){let l=s.components[i];if(!(t!=="beforeRouteEnter"&&!s.instances[i]))if(x_(l)){const u=(l.__vccOpts||l)[t];u&&o.push(mn(u,n,r,s,i))}else{let a=l();o.push(()=>a.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${s.path}"`));const c=Nb(u)?u.default:u;s.components[i]=c;const d=(c.__vccOpts||c)[t];return d&&mn(d,n,r,s,i)()}))}}return o}function x_(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ic(e){const t=ze(Il),n=ze(Ll),r=Ze(()=>t.resolve(Pe(e.to))),o=Ze(()=>{const{matched:a}=r.value,{length:u}=a,c=a[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(ar.bind(null,c));if(d>-1)return d;const p=lc(a[u-2]);return u>1&&lc(c)===p&&f[f.length-1].path!==p?f.findIndex(ar.bind(null,a[u-2])):d}),s=Ze(()=>o.value>-1&&O_(n.params,r.value.params)),i=Ze(()=>o.value>-1&&o.value===n.matched.length-1&&qf(n.params,r.value.params));function l(a={}){return A_(a)?t[Pe(e.replace)?"replace":"push"](Pe(e.to)).catch(Pr):Promise.resolve()}return{route:r,href:Ze(()=>r.value.href),isActive:s,isExactActive:i,navigate:l}}const T_=Ft({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"}},useLink:ic,setup(e,{slots:t}){const n=Tt(ic(e)),{options:r}=ze(Il),o=Ze(()=>({[ac(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ac(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:lt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),P_=T_;function A_(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 O_(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!Pt(o)||o.length!==r.length||r.some((s,i)=>s!==o[i]))return!1}return!0}function lc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ac=(e,t,n)=>e??t??n,M_=Ft({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ze(Bi),o=Ze(()=>e.route||r.value),s=ze(sc,0),i=Ze(()=>{let u=Pe(s);const{matched:c}=o.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),l=Ze(()=>o.value.matched[i.value]);_n(sc,Ze(()=>i.value+1)),_n(k_,l),_n(Bi,o);const a=mt();return bn(()=>[a.value,l.value,e.name],([u,c,f],[d,p,g])=>{c&&(c.instances[f]=u,p&&p!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=p.leaveGuards),c.updateGuards.size||(c.updateGuards=p.updateGuards))),u&&c&&(!p||!ar(c,p)||!d)&&(c.enterCallbacks[f]||[]).forEach(_=>_(u))},{flush:"post"}),()=>{const u=o.value,c=e.name,f=l.value,d=f&&f.components[c];if(!d)return cc(n.default,{Component:d,route:u});const p=f.props[c],g=p?p===!0?u.params:typeof p=="function"?p(u):p:null,x=lt(d,Ce({},g,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(f.instances[c]=null)},ref:a}));return cc(n.default,{Component:x,route:u})||x}}});function cc(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const rd=M_;function N_(e){const t=l_(e.routes,e),n=e.parseQuery||S_,r=e.stringifyQuery||oc,o=e.history,s=_r(),i=_r(),l=_r(),a=or(St);let u=St;zn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Ws.bind(null,O=>""+O),f=Ws.bind(null,C_),d=Ws.bind(null,Jo);function p(O,z){let U,Q;return Jf(O)?(U=t.getRecordMatcher(O),Q=z):Q=O,t.addRoute(Q,U)}function g(O){const z=t.getRecordMatcher(O);z&&t.removeRoute(z)}function _(){return t.getRoutes().map(O=>O.record)}function x(O){return!!t.getRecordMatcher(O)}function R(O,z){if(z=Ce({},z||a.value),typeof O=="string"){const m=Ks(n,O,z.path),E=t.resolve({path:m.path},z),M=o.createHref(m.fullPath);return Ce(m,E,{params:d(E.params),hash:Jo(m.hash),redirectedFrom:void 0,href:M})}let U;if("path"in O)U=Ce({},O,{path:Ks(n,O.path,z.path).path});else{const m=Ce({},O.params);for(const E in m)m[E]==null&&delete m[E];U=Ce({},O,{params:f(m)}),z.params=f(z.params)}const Q=t.resolve(U,z),pe=O.hash||"";Q.params=c(d(Q.params));const xe=Hb(r,Ce({},O,{hash:v_(pe),path:Q.path})),h=o.createHref(xe);return Ce({fullPath:xe,hash:pe,query:r===oc?R_(O.query):O.query||{}},Q,{redirectedFrom:void 0,href:h})}function v(O){return typeof O=="string"?Ks(n,O,a.value.path):Ce({},O)}function y(O,z){if(u!==O)return cr(8,{from:z,to:O})}function w(O){return I(O)}function C(O){return w(Ce(v(O),{replace:!0}))}function k(O){const z=O.matched[O.matched.length-1];if(z&&z.redirect){const{redirect:U}=z;let Q=typeof U=="function"?U(O):U;return typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=v(Q):{path:Q},Q.params={}),Ce({query:O.query,hash:O.hash,params:"path"in Q?{}:O.params},Q)}}function I(O,z){const U=u=R(O),Q=a.value,pe=O.state,xe=O.force,h=O.replace===!0,m=k(U);if(m)return I(Ce(v(m),{state:typeof m=="object"?Ce({},pe,m.state):pe,force:xe,replace:h}),z||U);const E=U;E.redirectedFrom=z;let M;return!xe&&Bb(r,Q,U)&&(M=cr(16,{to:E,from:Q}),yt(Q,Q,!0,!1)),(M?Promise.resolve(M):H(E,Q)).catch(P=>Kt(P)?Kt(P,2)?P:Mt(P):Z(P,E,Q)).then(P=>{if(P){if(Kt(P,2))return I(Ce({replace:h},v(P.to),{state:typeof P.to=="object"?Ce({},pe,P.to.state):pe,force:xe}),z||E)}else P=B(E,Q,!0,h,pe);return X(E,Q,P),P})}function T(O,z){const U=y(O,z);return U?Promise.reject(U):Promise.resolve()}function N(O){const z=en.values().next().value;return z&&typeof z.runWithContext=="function"?z.runWithContext(O):O()}function H(O,z){let U;const[Q,pe,xe]=I_(O,z);U=qs(Q.reverse(),"beforeRouteLeave",O,z);for(const m of Q)m.leaveGuards.forEach(E=>{U.push(mn(E,O,z))});const h=T.bind(null,O,z);return U.push(h),Ue(U).then(()=>{U=[];for(const m of s.list())U.push(mn(m,O,z));return U.push(h),Ue(U)}).then(()=>{U=qs(pe,"beforeRouteUpdate",O,z);for(const m of pe)m.updateGuards.forEach(E=>{U.push(mn(E,O,z))});return U.push(h),Ue(U)}).then(()=>{U=[];for(const m of xe)if(m.beforeEnter)if(Pt(m.beforeEnter))for(const E of m.beforeEnter)U.push(mn(E,O,z));else U.push(mn(m.beforeEnter,O,z));return U.push(h),Ue(U)}).then(()=>(O.matched.forEach(m=>m.enterCallbacks={}),U=qs(xe,"beforeRouteEnter",O,z),U.push(h),Ue(U))).then(()=>{U=[];for(const m of i.list())U.push(mn(m,O,z));return U.push(h),Ue(U)}).catch(m=>Kt(m,8)?m:Promise.reject(m))}function X(O,z,U){l.list().forEach(Q=>N(()=>Q(O,z,U)))}function B(O,z,U,Q,pe){const xe=y(O,z);if(xe)return xe;const h=z===St,m=zn?history.state:{};U&&(Q||h?o.replace(O.fullPath,Ce({scroll:h&&m&&m.scroll},pe)):o.push(O.fullPath,pe)),a.value=O,yt(O,z,U,h),Mt()}let ee;function ye(){ee||(ee=o.listen((O,z,U)=>{if(!Vn.listening)return;const Q=R(O),pe=k(Q);if(pe){I(Ce(pe,{replace:!0}),Q).catch(Pr);return}u=Q;const xe=a.value;zn&&Kb(Xa(xe.fullPath,U.delta),Es()),H(Q,xe).catch(h=>Kt(h,12)?h:Kt(h,2)?(I(h.to,Q).then(m=>{Kt(m,20)&&!U.delta&&U.type===Ur.pop&&o.go(-1,!1)}).catch(Pr),Promise.reject()):(U.delta&&o.go(-U.delta,!1),Z(h,Q,xe))).then(h=>{h=h||B(Q,xe,!1),h&&(U.delta&&!Kt(h,8)?o.go(-U.delta,!1):U.type===Ur.pop&&Kt(h,20)&&o.go(-1,!1)),X(Q,xe,h)}).catch(Pr)}))}let de=_r(),W=_r(),se;function Z(O,z,U){Mt(O);const Q=W.list();return Q.length?Q.forEach(pe=>pe(O,z,U)):console.error(O),Promise.reject(O)}function Ge(){return se&&a.value!==St?Promise.resolve():new Promise((O,z)=>{de.add([O,z])})}function Mt(O){return se||(se=!O,ye(),de.list().forEach(([z,U])=>O?U(O):z()),de.reset()),O}function yt(O,z,U,Q){const{scrollBehavior:pe}=e;if(!zn||!pe)return Promise.resolve();const xe=!U&&qb(Xa(O.fullPath,0))||(Q||!U)&&history.state&&history.state.scroll||null;return At().then(()=>pe(O,z,xe)).then(h=>h&&Wb(h)).catch(h=>Z(h,O,z))}const Je=O=>o.go(O);let wt;const en=new Set,Vn={currentRoute:a,listening:!0,addRoute:p,removeRoute:g,hasRoute:x,getRoutes:_,resolve:R,options:e,push:w,replace:C,go:Je,back:()=>Je(-1),forward:()=>Je(1),beforeEach:s.add,beforeResolve:i.add,afterEach:l.add,onError:W.add,isReady:Ge,install(O){const z=this;O.component("RouterLink",P_),O.component("RouterView",rd),O.config.globalProperties.$router=z,Object.defineProperty(O.config.globalProperties,"$route",{enumerable:!0,get:()=>Pe(a)}),zn&&!wt&&a.value===St&&(wt=!0,w(o.location).catch(pe=>{}));const U={};for(const pe in St)Object.defineProperty(U,pe,{get:()=>a.value[pe],enumerable:!0});O.provide(Il,z),O.provide(Ll,dr(U)),O.provide(Bi,a);const Q=O.unmount;en.add(O),O.unmount=function(){en.delete(O),en.size<1&&(u=St,ee&&ee(),ee=null,a.value=St,wt=!1,se=!1),Q()}}};function Ue(O){return O.reduce((z,U)=>z.then(()=>N(U)),Promise.resolve())}return Vn}function I_(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;iar(u,l))?r.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(u=>ar(u,a))||o.push(a))}return[n,r,o]}function L_(){return ze(Ll)}const H_=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),ji=(e,t)=>{const n=e.route.matched.find(o=>{var s;return((s=o.components)==null?void 0:s.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&H_(e.route,n));return typeof r=="function"?r(e.route):r},B_=(e,t)=>({default:()=>e?lt(bu,e===!0?{}:e,t):t});function Hl(e){return Array.isArray(e)?e:[e]}const ut={layout:"messaging"},zs=null,Gs=null,Js=null,uc=[{name:(ut==null?void 0:ut.name)??"board",path:(ut==null?void 0:ut.path)??"/board",meta:ut||{},alias:(ut==null?void 0:ut.alias)||[],redirect:ut==null?void 0:ut.redirect,component:()=>Gt(()=>import("./index._scJnMP6.js"),__vite__mapDeps([0,1]),import.meta.url).then(e=>e.default||e)},{name:"index",path:"/",meta:{},alias:[],redirect:zs==null?void 0:zs.redirect,component:()=>Gt(()=>import("./index.FBYgf3lJ.js"),__vite__mapDeps([]),import.meta.url).then(e=>e.default||e)},{name:"login",path:"/login",meta:{},alias:[],redirect:Gs==null?void 0:Gs.redirect,component:()=>Gt(()=>import("./login.CSVNeue6.js"),__vite__mapDeps([2,3,4]),import.meta.url).then(e=>e.default||e)},{name:"register",path:"/register",meta:{},alias:[],redirect:Js==null?void 0:Js.redirect,component:()=>Gt(()=>import("./register.Dk73nCdI.js"),__vite__mapDeps([5,6]),import.meta.url).then(e=>e.default||e)}],od=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?lt(e,t,n):(r=n.default)==null?void 0:r.call(n)}});function fc(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function j_(e,t){return e===t||t===St?!1:fc(e)!==fc(t)?!0:!e.matched.every((r,o)=>{var s,i;return r.components&&r.components.default===((i=(s=t.matched[o])==null?void 0:s.components)==null?void 0:i.default)})}const F_={scrollBehavior(e,t,n){var u;const r=He(),o=((u=Ot().options)==null?void 0:u.scrollBehaviorType)??"auto";let s=n||void 0;const i=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!s&&t&&e&&i!==!1&&j_(e,t)&&(s={left:0,top:0}),e.path===t.path){if(t.hash&&!e.hash)return{left:0,top:0};if(e.hash)return{el:e.hash,top:dc(e.hash),behavior:o}}const l=c=>!!(c.meta.pageTransition??Ii),a=l(t)&&l(e)?"page:transition:finish":"page:finish";return new Promise(c=>{r.hooks.hookOnce(a,async()=>{await At(),e.hash&&(s={el:e.hash,top:dc(e.hash),behavior:o}),c(s)})})}};function dc(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}const $_={hashMode:!1,scrollBehaviorType:"auto"},ft={...$_,...F_},D_=async e=>{var a;let t,n;if(!((a=e.meta)!=null&&a.validate))return;const r=He(),o=Ot();if(([t,n]=jn(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const i=vs({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),l=o.beforeResolve(u=>{if(l(),u===e){const c=o.afterEach(async()=>{c(),await r.runWithContext(()=>Gn(i)),window.history.pushState({},"",e.fullPath)});return!1}})},U_=window.setInterval,V_=!1;/*! + */const zn=typeof window<"u";function Nb(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ce=Object.assign;function Ws(e,t){const n={};for(const r in t){const o=t[r];n[r]=Pt(o)?o.map(e):e(o)}return n}const Pr=()=>{},Pt=Array.isArray,Ib=/\/$/,Lb=e=>e.replace(Ib,"");function Ks(e,t,n="/"){let r,o={},s="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(r=t.slice(0,a),s=t.slice(a+1,l>-1?l:t.length),o=e(s)),l>-1&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=Fb(r??t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:i}}function Hb(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ga(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Bb(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&ar(t.matched[r],n.matched[o])&&qf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ar(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function qf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!jb(e[n],t[n]))return!1;return!0}function jb(e,t){return Pt(e)?Ja(e,t):Pt(t)?Ja(t,e):e===t}function Ja(e,t){return Pt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Fb(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,i,l;for(i=0;i1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var Ur;(function(e){e.pop="pop",e.push="push"})(Ur||(Ur={}));var Ar;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ar||(Ar={}));function $b(e){if(!e)if(zn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Lb(e)}const Db=/^[^#]+#/;function Ub(e,t){return e.replace(Db,"#")+t}function Vb(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Es=()=>({left:window.pageXOffset,top:window.pageYOffset});function Wb(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Vb(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Xa(e,t){return(history.state?history.state.position-t:-1)+e}const Li=new Map;function Kb(e,t){Li.set(e,t)}function qb(e){const t=Li.get(e);return Li.delete(e),t}let zb=()=>location.protocol+"//"+location.host;function zf(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let l=o.includes(e.slice(s))?e.slice(s).length:1,a=o.slice(l);return a[0]!=="/"&&(a="/"+a),Ga(a,"")}return Ga(n,e)+r+o}function Gb(e,t,n,r){let o=[],s=[],i=null;const l=({state:d})=>{const p=zf(e,location),g=n.value,_=t.value;let x=0;if(d){if(n.value=p,t.value=d,i&&i===g){i=null;return}x=_?d.position-_.position:0}else r(p);o.forEach(R=>{R(n.value,g,{delta:x,type:Ur.pop,direction:x?x>0?Ar.forward:Ar.back:Ar.unknown})})};function a(){i=n.value}function u(d){o.push(d);const p=()=>{const g=o.indexOf(d);g>-1&&o.splice(g,1)};return s.push(p),p}function c(){const{history:d}=window;d.state&&d.replaceState(Ce({},d.state,{scroll:Es()}),"")}function f(){for(const d of s)d();s=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:a,listen:u,destroy:f}}function Ya(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Es():null}}function Jb(e){const{history:t,location:n}=window,r={value:zf(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(a,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:zb()+e+a;try{t[c?"replaceState":"pushState"](u,"",d),o.value=u}catch(p){console.error(p),n[c?"replace":"assign"](d)}}function i(a,u){const c=Ce({},t.state,Ya(o.value.back,a,o.value.forward,!0),u,{position:o.value.position});s(a,c,!0),r.value=a}function l(a,u){const c=Ce({},o.value,t.state,{forward:a,scroll:Es()});s(c.current,c,!0);const f=Ce({},Ya(r.value,a,null),{position:c.position+1},u);s(a,f,!1),r.value=a}return{location:r,state:o,push:l,replace:i}}function Gf(e){e=$b(e);const t=Jb(e),n=Gb(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=Ce({location:"",base:e,go:r,createHref:Ub.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Xb(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Gf(e)}function Yb(e){return typeof e=="string"||e&&typeof e=="object"}function Jf(e){return typeof e=="string"||typeof e=="symbol"}const St={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Xf=Symbol("");var Qa;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Qa||(Qa={}));function cr(e,t){return Ce(new Error,{type:e,[Xf]:!0},t)}function Kt(e,t){return e instanceof Error&&Xf in e&&(t==null||!!(e.type&t))}const Za="[^/]+?",Qb={sensitive:!1,strict:!1,start:!0,end:!0},Zb=/[.+*?^${}()[\]/\\]/g;function e_(e,t){const n=Ce({},Qb,t),r=[];let o=n.start?"^":"";const s=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function n_(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const r_={type:0,value:""},o_=/[a-zA-Z0-9_]/;function s_(e){if(!e)return[[]];if(e==="/")return[[r_]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=0,r=n;const o=[];let s;function i(){s&&o.push(s),s=[]}let l=0,a,u="",c="";function f(){u&&(n===0?s.push({type:0,value:u}):n===1||n===2||n===3?(s.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:u,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=a}for(;l{i(v)}:Pr}function i(c){if(Jf(c)){const f=r.get(c);f&&(r.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&r.delete(c.record.name),c.children.forEach(i),c.alias.forEach(i))}}function l(){return n}function a(c){let f=0;for(;f=0&&(c.record.path!==n[f].record.path||!Yf(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!nc(c)&&r.set(c.record.name,c)}function u(c,f){let d,p={},g,_;if("name"in c&&c.name){if(d=r.get(c.name),!d)throw cr(1,{location:c});_=d.record.name,p=Ce(tc(f.params,d.keys.filter(v=>!v.optional).map(v=>v.name)),c.params&&tc(c.params,d.keys.map(v=>v.name))),g=d.stringify(p)}else if("path"in c)g=c.path,d=n.find(v=>v.re.test(g)),d&&(p=d.parse(g),_=d.record.name);else{if(d=f.name?r.get(f.name):n.find(v=>v.re.test(f.path)),!d)throw cr(1,{location:c,currentLocation:f});_=d.record.name,p=Ce({},f.params,c.params),g=d.stringify(p)}const x=[];let R=d;for(;R;)x.unshift(R.record),R=R.parent;return{name:_,path:g,params:p,matched:x,meta:u_(x)}}return e.forEach(c=>s(c)),{addRoute:s,resolve:u,removeRoute:i,getRoutes:l,getRecordMatcher:o}}function tc(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function a_(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:c_(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function c_(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function nc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function u_(e){return e.reduce((t,n)=>Ce(t,n.meta),{})}function rc(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Yf(e,t){return t.children.some(n=>n===e||Yf(e,n))}const Qf=/#/g,f_=/&/g,d_=/\//g,h_=/=/g,p_=/\?/g,Zf=/\+/g,m_=/%5B/g,g_=/%5D/g,ed=/%5E/g,y_=/%60/g,td=/%7B/g,b_=/%7C/g,nd=/%7D/g,__=/%20/g;function Nl(e){return encodeURI(""+e).replace(b_,"|").replace(m_,"[").replace(g_,"]")}function v_(e){return Nl(e).replace(td,"{").replace(nd,"}").replace(ed,"^")}function Hi(e){return Nl(e).replace(Zf,"%2B").replace(__,"+").replace(Qf,"%23").replace(f_,"%26").replace(y_,"`").replace(td,"{").replace(nd,"}").replace(ed,"^")}function w_(e){return Hi(e).replace(h_,"%3D")}function E_(e){return Nl(e).replace(Qf,"%23").replace(p_,"%3F")}function C_(e){return e==null?"":E_(e).replace(d_,"%2F")}function Jo(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function S_(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&Hi(s)):[r&&Hi(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function R_(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Pt(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const k_=Symbol(""),sc=Symbol(""),Il=Symbol(""),Ll=Symbol(""),Bi=Symbol("");function _r(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function mn(e,t,n,r,o){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((i,l)=>{const a=f=>{f===!1?l(cr(4,{from:n,to:t})):f instanceof Error?l(f):Yb(f)?l(cr(2,{from:t,to:f})):(s&&r.enterCallbacks[o]===s&&typeof f=="function"&&s.push(f),i())},u=e.call(r&&r.instances[o],t,n,a);let c=Promise.resolve(u);e.length<3&&(c=c.then(a)),c.catch(f=>l(f))})}function qs(e,t,n,r){const o=[];for(const s of e)for(const i in s.components){let l=s.components[i];if(!(t!=="beforeRouteEnter"&&!s.instances[i]))if(x_(l)){const u=(l.__vccOpts||l)[t];u&&o.push(mn(u,n,r,s,i))}else{let a=l();o.push(()=>a.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${s.path}"`));const c=Nb(u)?u.default:u;s.components[i]=c;const d=(c.__vccOpts||c)[t];return d&&mn(d,n,r,s,i)()}))}}return o}function x_(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ic(e){const t=ze(Il),n=ze(Ll),r=Ze(()=>t.resolve(Pe(e.to))),o=Ze(()=>{const{matched:a}=r.value,{length:u}=a,c=a[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(ar.bind(null,c));if(d>-1)return d;const p=lc(a[u-2]);return u>1&&lc(c)===p&&f[f.length-1].path!==p?f.findIndex(ar.bind(null,a[u-2])):d}),s=Ze(()=>o.value>-1&&O_(n.params,r.value.params)),i=Ze(()=>o.value>-1&&o.value===n.matched.length-1&&qf(n.params,r.value.params));function l(a={}){return A_(a)?t[Pe(e.replace)?"replace":"push"](Pe(e.to)).catch(Pr):Promise.resolve()}return{route:r,href:Ze(()=>r.value.href),isActive:s,isExactActive:i,navigate:l}}const T_=Ft({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"}},useLink:ic,setup(e,{slots:t}){const n=Tt(ic(e)),{options:r}=ze(Il),o=Ze(()=>({[ac(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ac(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:lt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),P_=T_;function A_(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 O_(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!Pt(o)||o.length!==r.length||r.some((s,i)=>s!==o[i]))return!1}return!0}function lc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ac=(e,t,n)=>e??t??n,M_=Ft({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ze(Bi),o=Ze(()=>e.route||r.value),s=ze(sc,0),i=Ze(()=>{let u=Pe(s);const{matched:c}=o.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),l=Ze(()=>o.value.matched[i.value]);_n(sc,Ze(()=>i.value+1)),_n(k_,l),_n(Bi,o);const a=mt();return bn(()=>[a.value,l.value,e.name],([u,c,f],[d,p,g])=>{c&&(c.instances[f]=u,p&&p!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=p.leaveGuards),c.updateGuards.size||(c.updateGuards=p.updateGuards))),u&&c&&(!p||!ar(c,p)||!d)&&(c.enterCallbacks[f]||[]).forEach(_=>_(u))},{flush:"post"}),()=>{const u=o.value,c=e.name,f=l.value,d=f&&f.components[c];if(!d)return cc(n.default,{Component:d,route:u});const p=f.props[c],g=p?p===!0?u.params:typeof p=="function"?p(u):p:null,x=lt(d,Ce({},g,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(f.instances[c]=null)},ref:a}));return cc(n.default,{Component:x,route:u})||x}}});function cc(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const rd=M_;function N_(e){const t=l_(e.routes,e),n=e.parseQuery||S_,r=e.stringifyQuery||oc,o=e.history,s=_r(),i=_r(),l=_r(),a=or(St);let u=St;zn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Ws.bind(null,O=>""+O),f=Ws.bind(null,C_),d=Ws.bind(null,Jo);function p(O,z){let U,Q;return Jf(O)?(U=t.getRecordMatcher(O),Q=z):Q=O,t.addRoute(Q,U)}function g(O){const z=t.getRecordMatcher(O);z&&t.removeRoute(z)}function _(){return t.getRoutes().map(O=>O.record)}function x(O){return!!t.getRecordMatcher(O)}function R(O,z){if(z=Ce({},z||a.value),typeof O=="string"){const m=Ks(n,O,z.path),E=t.resolve({path:m.path},z),M=o.createHref(m.fullPath);return Ce(m,E,{params:d(E.params),hash:Jo(m.hash),redirectedFrom:void 0,href:M})}let U;if("path"in O)U=Ce({},O,{path:Ks(n,O.path,z.path).path});else{const m=Ce({},O.params);for(const E in m)m[E]==null&&delete m[E];U=Ce({},O,{params:f(m)}),z.params=f(z.params)}const Q=t.resolve(U,z),pe=O.hash||"";Q.params=c(d(Q.params));const xe=Hb(r,Ce({},O,{hash:v_(pe),path:Q.path})),h=o.createHref(xe);return Ce({fullPath:xe,hash:pe,query:r===oc?R_(O.query):O.query||{}},Q,{redirectedFrom:void 0,href:h})}function v(O){return typeof O=="string"?Ks(n,O,a.value.path):Ce({},O)}function y(O,z){if(u!==O)return cr(8,{from:z,to:O})}function w(O){return I(O)}function C(O){return w(Ce(v(O),{replace:!0}))}function k(O){const z=O.matched[O.matched.length-1];if(z&&z.redirect){const{redirect:U}=z;let Q=typeof U=="function"?U(O):U;return typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=v(Q):{path:Q},Q.params={}),Ce({query:O.query,hash:O.hash,params:"path"in Q?{}:O.params},Q)}}function I(O,z){const U=u=R(O),Q=a.value,pe=O.state,xe=O.force,h=O.replace===!0,m=k(U);if(m)return I(Ce(v(m),{state:typeof m=="object"?Ce({},pe,m.state):pe,force:xe,replace:h}),z||U);const E=U;E.redirectedFrom=z;let M;return!xe&&Bb(r,Q,U)&&(M=cr(16,{to:E,from:Q}),yt(Q,Q,!0,!1)),(M?Promise.resolve(M):H(E,Q)).catch(P=>Kt(P)?Kt(P,2)?P:Mt(P):Z(P,E,Q)).then(P=>{if(P){if(Kt(P,2))return I(Ce({replace:h},v(P.to),{state:typeof P.to=="object"?Ce({},pe,P.to.state):pe,force:xe}),z||E)}else P=B(E,Q,!0,h,pe);return X(E,Q,P),P})}function T(O,z){const U=y(O,z);return U?Promise.reject(U):Promise.resolve()}function N(O){const z=en.values().next().value;return z&&typeof z.runWithContext=="function"?z.runWithContext(O):O()}function H(O,z){let U;const[Q,pe,xe]=I_(O,z);U=qs(Q.reverse(),"beforeRouteLeave",O,z);for(const m of Q)m.leaveGuards.forEach(E=>{U.push(mn(E,O,z))});const h=T.bind(null,O,z);return U.push(h),Ue(U).then(()=>{U=[];for(const m of s.list())U.push(mn(m,O,z));return U.push(h),Ue(U)}).then(()=>{U=qs(pe,"beforeRouteUpdate",O,z);for(const m of pe)m.updateGuards.forEach(E=>{U.push(mn(E,O,z))});return U.push(h),Ue(U)}).then(()=>{U=[];for(const m of xe)if(m.beforeEnter)if(Pt(m.beforeEnter))for(const E of m.beforeEnter)U.push(mn(E,O,z));else U.push(mn(m.beforeEnter,O,z));return U.push(h),Ue(U)}).then(()=>(O.matched.forEach(m=>m.enterCallbacks={}),U=qs(xe,"beforeRouteEnter",O,z),U.push(h),Ue(U))).then(()=>{U=[];for(const m of i.list())U.push(mn(m,O,z));return U.push(h),Ue(U)}).catch(m=>Kt(m,8)?m:Promise.reject(m))}function X(O,z,U){l.list().forEach(Q=>N(()=>Q(O,z,U)))}function B(O,z,U,Q,pe){const xe=y(O,z);if(xe)return xe;const h=z===St,m=zn?history.state:{};U&&(Q||h?o.replace(O.fullPath,Ce({scroll:h&&m&&m.scroll},pe)):o.push(O.fullPath,pe)),a.value=O,yt(O,z,U,h),Mt()}let ee;function ye(){ee||(ee=o.listen((O,z,U)=>{if(!Vn.listening)return;const Q=R(O),pe=k(Q);if(pe){I(Ce(pe,{replace:!0}),Q).catch(Pr);return}u=Q;const xe=a.value;zn&&Kb(Xa(xe.fullPath,U.delta),Es()),H(Q,xe).catch(h=>Kt(h,12)?h:Kt(h,2)?(I(h.to,Q).then(m=>{Kt(m,20)&&!U.delta&&U.type===Ur.pop&&o.go(-1,!1)}).catch(Pr),Promise.reject()):(U.delta&&o.go(-U.delta,!1),Z(h,Q,xe))).then(h=>{h=h||B(Q,xe,!1),h&&(U.delta&&!Kt(h,8)?o.go(-U.delta,!1):U.type===Ur.pop&&Kt(h,20)&&o.go(-1,!1)),X(Q,xe,h)}).catch(Pr)}))}let de=_r(),W=_r(),se;function Z(O,z,U){Mt(O);const Q=W.list();return Q.length?Q.forEach(pe=>pe(O,z,U)):console.error(O),Promise.reject(O)}function Ge(){return se&&a.value!==St?Promise.resolve():new Promise((O,z)=>{de.add([O,z])})}function Mt(O){return se||(se=!O,ye(),de.list().forEach(([z,U])=>O?U(O):z()),de.reset()),O}function yt(O,z,U,Q){const{scrollBehavior:pe}=e;if(!zn||!pe)return Promise.resolve();const xe=!U&&qb(Xa(O.fullPath,0))||(Q||!U)&&history.state&&history.state.scroll||null;return At().then(()=>pe(O,z,xe)).then(h=>h&&Wb(h)).catch(h=>Z(h,O,z))}const Je=O=>o.go(O);let wt;const en=new Set,Vn={currentRoute:a,listening:!0,addRoute:p,removeRoute:g,hasRoute:x,getRoutes:_,resolve:R,options:e,push:w,replace:C,go:Je,back:()=>Je(-1),forward:()=>Je(1),beforeEach:s.add,beforeResolve:i.add,afterEach:l.add,onError:W.add,isReady:Ge,install(O){const z=this;O.component("RouterLink",P_),O.component("RouterView",rd),O.config.globalProperties.$router=z,Object.defineProperty(O.config.globalProperties,"$route",{enumerable:!0,get:()=>Pe(a)}),zn&&!wt&&a.value===St&&(wt=!0,w(o.location).catch(pe=>{}));const U={};for(const pe in St)Object.defineProperty(U,pe,{get:()=>a.value[pe],enumerable:!0});O.provide(Il,z),O.provide(Ll,dr(U)),O.provide(Bi,a);const Q=O.unmount;en.add(O),O.unmount=function(){en.delete(O),en.size<1&&(u=St,ee&&ee(),ee=null,a.value=St,wt=!1,se=!1),Q()}}};function Ue(O){return O.reduce((z,U)=>z.then(()=>N(U)),Promise.resolve())}return Vn}function I_(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;iar(u,l))?r.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(u=>ar(u,a))||o.push(a))}return[n,r,o]}function L_(){return ze(Ll)}const H_=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),ji=(e,t)=>{const n=e.route.matched.find(o=>{var s;return((s=o.components)==null?void 0:s.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&H_(e.route,n));return typeof r=="function"?r(e.route):r},B_=(e,t)=>({default:()=>e?lt(bu,e===!0?{}:e,t):t});function Hl(e){return Array.isArray(e)?e:[e]}const ut={layout:"messaging"},zs=null,Gs=null,Js=null,uc=[{name:(ut==null?void 0:ut.name)??"board",path:(ut==null?void 0:ut.path)??"/board",meta:ut||{},alias:(ut==null?void 0:ut.alias)||[],redirect:ut==null?void 0:ut.redirect,component:()=>Gt(()=>import("./index.CVTfO2Hz.js"),__vite__mapDeps([0,1]),import.meta.url).then(e=>e.default||e)},{name:"index",path:"/",meta:{},alias:[],redirect:zs==null?void 0:zs.redirect,component:()=>Gt(()=>import("./index.D3TNqCkv.js"),__vite__mapDeps([]),import.meta.url).then(e=>e.default||e)},{name:"login",path:"/login",meta:{},alias:[],redirect:Gs==null?void 0:Gs.redirect,component:()=>Gt(()=>import("./login.Cfry8RGN.js"),__vite__mapDeps([2,3,4]),import.meta.url).then(e=>e.default||e)},{name:"register",path:"/register",meta:{},alias:[],redirect:Js==null?void 0:Js.redirect,component:()=>Gt(()=>import("./register.B2P9PNR6.js"),__vite__mapDeps([5,6]),import.meta.url).then(e=>e.default||e)}],od=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?lt(e,t,n):(r=n.default)==null?void 0:r.call(n)}});function fc(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function j_(e,t){return e===t||t===St?!1:fc(e)!==fc(t)?!0:!e.matched.every((r,o)=>{var s,i;return r.components&&r.components.default===((i=(s=t.matched[o])==null?void 0:s.components)==null?void 0:i.default)})}const F_={scrollBehavior(e,t,n){var u;const r=He(),o=((u=Ot().options)==null?void 0:u.scrollBehaviorType)??"auto";let s=n||void 0;const i=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!s&&t&&e&&i!==!1&&j_(e,t)&&(s={left:0,top:0}),e.path===t.path){if(t.hash&&!e.hash)return{left:0,top:0};if(e.hash)return{el:e.hash,top:dc(e.hash),behavior:o}}const l=c=>!!(c.meta.pageTransition??Ii),a=l(t)&&l(e)?"page:transition:finish":"page:finish";return new Promise(c=>{r.hooks.hookOnce(a,async()=>{await At(),e.hash&&(s={el:e.hash,top:dc(e.hash),behavior:o}),c(s)})})}};function dc(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}const $_={hashMode:!1,scrollBehaviorType:"auto"},ft={...$_,...F_},D_=async e=>{var a;let t,n;if(!((a=e.meta)!=null&&a.validate))return;const r=He(),o=Ot();if(([t,n]=jn(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const i=vs({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),l=o.beforeResolve(u=>{if(l(),u===e){const c=o.afterEach(async()=>{c(),await r.runWithContext(()=>Gn(i)),window.history.pushState({},"",e.fullPath)});return!1}})},U_=window.setInterval,V_=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT @@ -31,12 +31,12 @@ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[_c]=this[_c]={accessors:{}}).accessors,o=this.prototype;function s(i){const l=vr(i);r[l]||(r0(o,i),r[l]=!0)}return A.isArray(t)?t.forEach(s):s(t),this}}xs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(xs.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});A.freezeMethods(xs);const Qt=xs;function Qs(e,t){const n=this||Dl,r=t||n,o=Qt.from(r.headers);let s=r.data;return A.forEach(e,function(l){s=l.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function kd(e){return!!(e&&e.__CANCEL__)}function io(e,t,n){he.call(this,e??"canceled",he.ERR_CANCELED,t,n),this.name="CanceledError"}A.inherits(io,he,{__CANCEL__:!0});function o0(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new he("Request failed with status code "+n.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const s0=Bt.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];A.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),A.isString(r)&&i.push("path="+r),A.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function i0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function l0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function xd(e,t){return e&&!i0(t)?l0(e,t):t}const a0=Bt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const l=A.isString(i)?o(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function c0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function u0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=r[s];i||(i=u),n[o]=a,r[o]=u;let f=s,d=0;for(;f!==o;)d+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),u-i{const s=o.loaded,i=o.lengthComputable?o.total:void 0,l=s-n,a=r(l),u=s<=i;n=s;const c={loaded:s,total:i,progress:i?s/i:void 0,bytes:l,rate:a||void 0,estimated:a&&i&&u?(i-s)/a:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const f0=typeof XMLHttpRequest<"u",d0=f0&&function(e){return new Promise(function(n,r){let o=e.data;const s=Qt.from(e.headers).normalize();let{responseType:i,withXSRFToken:l}=e,a;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let c;if(A.isFormData(o)){if(Bt.hasStandardBrowserEnv||Bt.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((c=s.getContentType())!==!1){const[_,...x]=c?c.split(";").map(R=>R.trim()).filter(Boolean):[];s.setContentType([_||"multipart/form-data",...x].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const _=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(_+":"+x))}const d=xd(e.baseURL,e.url);f.open(e.method.toUpperCase(),Ed(d,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function p(){if(!f)return;const _=Qt.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),R={data:!i||i==="text"||i==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:_,config:e,request:f};o0(function(y){n(y),u()},function(y){r(y),u()},R),f=null}if("onloadend"in f?f.onloadend=p:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(p)},f.onabort=function(){f&&(r(new he("Request aborted",he.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new he("Network Error",he.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let x=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const R=e.transitional||Cd;e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),r(new he(x,R.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,e,f)),f=null},Bt.hasStandardBrowserEnv&&(l&&A.isFunction(l)&&(l=l(e)),l||l!==!1&&a0(d))){const _=e.xsrfHeaderName&&e.xsrfCookieName&&s0.read(e.xsrfCookieName);_&&s.set(e.xsrfHeaderName,_)}o===void 0&&s.setContentType(null),"setRequestHeader"in f&&A.forEach(s.toJSON(),function(x,R){f.setRequestHeader(R,x)}),A.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),i&&i!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",vc(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",vc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=_=>{f&&(r(!_||_.type?new io(null,e,f):_),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const g=c0(d);if(g&&Bt.protocols.indexOf(g)===-1){r(new he("Unsupported protocol "+g+":",he.ERR_BAD_REQUEST,e));return}f.send(o||null)})},Wi={http:Bv,xhr:d0};A.forEach(Wi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const wc=e=>`- ${e}`,h0=e=>A.isFunction(e)||e===null||e===!1,Td={getAdapter:e=>{e=A.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since : `+s.map(wc).join(` `):" "+wc(s[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Wi};function Zs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new io(null,e)}function Ec(e){return Zs(e),e.headers=Qt.from(e.headers),e.data=Qs.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Td.getAdapter(e.adapter||Dl.adapter)(e).then(function(r){return Zs(e),r.data=Qs.call(e,e.transformResponse,r),r.headers=Qt.from(r.headers),r},function(r){return kd(r)||(Zs(e),r&&r.response&&(r.response.data=Qs.call(e,e.transformResponse,r.response),r.response.headers=Qt.from(r.response.headers))),Promise.reject(r)})}const Cc=e=>e instanceof Qt?e.toJSON():e;function ur(e,t){t=t||{};const n={};function r(u,c,f){return A.isPlainObject(u)&&A.isPlainObject(c)?A.merge.call({caseless:f},u,c):A.isPlainObject(c)?A.merge({},c):A.isArray(c)?c.slice():c}function o(u,c,f){if(A.isUndefined(c)){if(!A.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function s(u,c){if(!A.isUndefined(c))return r(void 0,c)}function i(u,c){if(A.isUndefined(c)){if(!A.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const a={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,c)=>o(Cc(u),Cc(c),!0)};return A.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=a[c]||o,d=f(e[c],t[c],c);A.isUndefined(d)&&f!==l||(n[c]=d)}),n}const Pd="1.6.7",Ul={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ul[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Sc={};Ul.transitional=function(t,n,r){function o(s,i){return"[Axios v"+Pd+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,l)=>{if(t===!1)throw new he(o(i," has been removed"+(n?" in "+n:"")),he.ERR_DEPRECATED);return n&&!Sc[i]&&(Sc[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,l):!0}};function p0(e,t,n){if(typeof e!="object")throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const l=e[s],a=l===void 0||i(l,s,e);if(a!==!0)throw new he("option "+s+" must be "+a,he.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new he("Unknown option "+s,he.ERR_BAD_OPTION)}}const Ki={assertOptions:p0,validators:Ul},an=Ki.validators;class Xo{constructor(t){this.defaults=t,this.interceptors={request:new bc,response:new bc}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+s):r.stack=s}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ur(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Ki.assertOptions(r,{silentJSONParsing:an.transitional(an.boolean),forcedJSONParsing:an.transitional(an.boolean),clarifyTimeoutError:an.transitional(an.boolean)},!1),o!=null&&(A.isFunction(o)?n.paramsSerializer={serialize:o}:Ki.assertOptions(o,{encode:an.function,serialize:an.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&A.merge(s.common,s[n.method]);s&&A.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=Qt.concat(i,s);const l=[];let a=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(a=a&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let c,f=0,d;if(!a){const g=[Ec.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,u),d=g.length,c=Promise.resolve(n);f{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(l=>{r.subscribe(l),s=l}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,l){r.reason||(r.reason=new io(s,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Vl(function(o){t=o}),cancel:t}}}const m0=Vl;function g0(e){return function(n){return e.apply(null,n)}}function y0(e){return A.isObject(e)&&e.isAxiosError===!0}const qi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qi).forEach(([e,t])=>{qi[t]=e});const b0=qi;function Ad(e){const t=new Mo(e),n=ud(Mo.prototype.request,t);return A.extend(n,Mo.prototype,t,{allOwnKeys:!0}),A.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Ad(ur(e,o))},n}const Fe=Ad(Dl);Fe.Axios=Mo;Fe.CanceledError=io;Fe.CancelToken=m0;Fe.isCancel=kd;Fe.VERSION=Pd;Fe.toFormData=ks;Fe.AxiosError=he;Fe.Cancel=Fe.CanceledError;Fe.all=function(t){return Promise.all(t)};Fe.spread=g0;Fe.isAxiosError=y0;Fe.mergeConfig=ur;Fe.AxiosHeaders=Qt;Fe.formToJSON=e=>Rd(A.isHTMLForm(e)?new FormData(e):e);Fe.getAdapter=Td.getAdapter;Fe.HttpStatusCode=b0;Fe.default=Fe;function _0(){return bs().public.apiURL}function v0(e){var n,r;console.error(`Axios error: ${e.message}`);const t=(r=(n=e.response)==null?void 0:n.data)==null?void 0:r.description;throw t&&(e.message=t),e}function w0(e){const t={baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json"},maxRedirects:0},n=Fe.create(t);return n.interceptors.response.use(r=>r,v0),n}function Od(){return w0(_0())}function E0(e){const t="token"in e&&"username"in e?e.token:e,n=Od();return n.defaults.headers.common.Authorization=`Bearer ${t.rawToken}`,n}async function Rc(e){const r=(await E0(e).get("/user")).data;return{state:"ready",token:e,...r}}async function C0(e,t){const o=(await Od().post("/login",{username:e,password:t})).data;return nv(o),tv()}const S0=X_("user",()=>{const e=Ot(),t=mt({state:"loading"});Di()?s(!0):t.value={state:"unauthenticated"};function n(_){t.value=_}function r(){return n({state:"unauthenticated"}),t.value}function o(){return n({state:"loading"}),t.value}async function s(_=!1){const x=Di();if(!x)return r();if(t.value.state=="loading"&&!_)return await i();n({state:"loading"});try{const R=await Rc(x);n(R)}catch{return d()}return await i()}async function i(){return t.value.state=="loading"&&await a(),t.value}async function l(){const _=await i();if(_.state==="ready")return _;throw new Error("User is not ready!")}async function a(){await new Promise(_=>{const x=U_(async()=>{t.value.state!="loading"&&(clearInterval(x),_(void 0))},10)})}async function u(_,x){console.log(`${_}:${x}`);const R=C0(_,x);await c(R)}async function c(_){try{o();const x=await _;n(await Rc(x)),g()}catch(x){alert(x instanceof Error?x.message:"An unexpected error occured!"),r()}}async function f(){return(await i()).state!="unauthenticated"}function d(){return cd(),r()}function p(){d(),e.push("/")}function g(){e.push("/board")}return{user:Ze(()=>t),readyUser:Ze(()=>t),getUser:i,getReadyUser:l,reloadUser:s,passwordLogin:u,isAuthenticated:f,logout:p}}),Md=async(e,t)=>{let n,r;if(window==null)return;const o=S0();if(([n,r]=jn(()=>o.getUser()),n=await n,r(),n).state!=="ready")return Sy("/")},R0=Object.freeze(Object.defineProperty({__proto__:null,default:Md},Symbol.toStringTag,{value:"Module"}));function k0(e){return!!e.path.startsWith("/board")}const x0=async(e,t)=>{let n,r;if(k0(e))return[n,r]=jn(()=>Md(e,t)),n=await n,r(),n},T0=async e=>{let t,n;const r=([t,n]=jn(()=>Vf(e.path)),t=await t,n(),t);if(r.redirect)return r.redirect},P0=[D_,x0,T0],Mr={auth:()=>Gt(()=>Promise.resolve().then(()=>R0),void 0,import.meta.url)};function A0(e,t,n){const{pathname:r,search:o,hash:s}=t,i=e.indexOf("#");if(i>-1){const u=s.includes(e.slice(i))?e.slice(i).length:1;let c=s.slice(u);return c[0]!=="/"&&(c="/"+c),Na(c,"")}const l=Na(r,e),a=!n||Pg(l,n,{trailingSlash:!0})?l:n;return a+(a.includes("?")?"":o)+s}const O0=Dt({name:"nuxt:router",enforce:"pre",async setup(e){var _,x;let t,n,r=bs().app.baseURL;ft.hashMode&&!r.includes("#")&&(r+="#");const o=((_=ft.history)==null?void 0:_.call(ft,r))??(ft.hashMode?Xb(r):Gf(r)),s=((x=ft.routes)==null?void 0:x.call(ft,uc))??uc;let i;const l=A0(r,window.location,e.payload.path),a=N_({...ft,scrollBehavior:(R,v,y)=>{if(v===St){i=y;return}if(ft.scrollBehavior){if(a.options.scrollBehavior=ft.scrollBehavior,"scrollRestoration"in window.history){const w=a.beforeEach(()=>{w(),window.history.scrollRestoration="manual"})}return ft.scrollBehavior(R,St,i||y)}},history:o,routes:s});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const u=or(a.currentRoute.value);a.afterEach((R,v)=>{u.value=v}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>u.value});const c=or(a.resolve(l)),f=()=>{c.value=a.currentRoute.value};e.hook("page:finish",f),a.afterEach((R,v)=>{var y,w,C,k;((w=(y=R.matched[0])==null?void 0:y.components)==null?void 0:w.default)===((k=(C=v.matched[0])==null?void 0:C.components)==null?void 0:k.default)&&f()});const d={};for(const R in c.value)Object.defineProperty(d,R,{get:()=>c.value[R]});e._route=dr(d),e._middleware=e._middleware||{global:[],named:{}};const p=_s();try{[t,n]=jn(()=>a.isReady()),await t,n()}catch(R){[t,n]=jn(()=>e.runWithContext(()=>Gn(R))),await t,n()}const g=e.payload.state._layout;return a.beforeEach(async(R,v)=>{var y;await e.callHook("page:loading:start"),R.meta=Tt(R.meta),e.isHydrating&&g&&!En(R.meta.layout)&&(R.meta.layout=g),e._processingMiddleware=!0;{const w=new Set([...P0,...e._middleware.global]);for(const C of R.matched){const k=C.meta.middleware;if(k)for(const I of Hl(k))w.add(I)}for(const C of w){const k=typeof C=="string"?e._middleware.named[C]||await((y=Mr[C])==null?void 0:y.call(Mr).then(T=>T.default||T)):C;if(!k)throw new Error(`Unknown route middleware: '${C}'.`);const I=await e.runWithContext(()=>k(R,v));if(!e.payload.serverRendered&&e.isHydrating&&(I===!1||I instanceof Error)){const T=I||Pi({statusCode:404,statusMessage:`Page Not Found: ${l}`});return await e.runWithContext(()=>Gn(T)),!1}if(I!==!0&&(I||I===!1))return I}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(async(R,v,y)=>{delete e._processingMiddleware,!e.isHydrating&&p.value&&await e.runWithContext(Ry),y&&await e.callHook("page:loading:end"),R.matched.length===0&&await e.runWithContext(()=>Gn(Pi({statusCode:404,fatal:!1,statusMessage:`Page not found: ${R.fullPath}`,data:{path:R.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{await a.replace({...a.resolve(l),name:void 0,force:!0}),a.options.scrollBehavior=ft.scrollBehavior}catch(R){await e.runWithContext(()=>Gn(R))}}),{provide:{router:a}}}}),kc=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),aw=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Nd=e=>{const t=He();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{kc(e)}):kc(e)},M0=Dt({name:"nuxt:payload",setup(e){Ot().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await Ka(t.path);r&&Object.assign(e.static.data,r.data)}),Nd(()=>{var t;e.hooks.hook("link:prefetch",async n=>{ys(n).protocol||await Ka(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout(ws,1e3)})}}),N0=Dt(e=>{let t;async function n(){const r=await ws();t&&clearTimeout(t),t=setTimeout(n,1e3*60*60);const o=await $fetch(Pl("builds/latest.json"));o.id!==r.id&&e.hooks.callHook("app:manifest:update",o)}Nd(()=>{t=setTimeout(n,1e3*60*60)})});function I0(e={}){const t=e.path||window.location.pathname;let n={};try{n=qo(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires){const t=W_();return e.vueApp.use(t),oo(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}),H0=Dt({name:"nuxt:global-components"}),gn={default:()=>Gt(()=>import("./default.BtqJ2PtA.js"),__vite__mapDeps([7,3,8,9]),import.meta.url).then(e=>e.default||e),messaging:()=>Gt(()=>import("./messaging.CfaYSvRm.js"),__vite__mapDeps([10,11,9]),import.meta.url).then(e=>e.default||e)},B0=Dt({name:"nuxt:prefetch",setup(e){const t=Ot();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var o;const r=(o=n==null?void 0:n.meta)==null?void 0:o.layout;r&&typeof gn[r]=="function"&&await gn[r]()})}),e.hooks.hook("link:prefetch",n=>{if(to(n))return;const r=t.resolve(n);if(!r)return;const o=r.meta.layout;let s=Hl(r.meta.middleware);s=s.filter(i=>typeof i=="string");for(const i of s)typeof Mr[i]=="function"&&Mr[i]();o&&typeof gn[o]=="function"&&gn[o]()})}}),j0=Dt({name:"nuxt:chunk-reload",setup(e){const t=Ot(),n=bs(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:s})=>{r.add(s)});function o(s){const l="href"in s&&s.href[0]==="#"?n.app.baseURL+s.href:no(n.app.baseURL,s.fullPath);I0({path:l,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((s,i)=>{r.has(s)&&o(i)})}});var F0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function D0(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var zi={exports:{}};const U0=D0(og);(function(e,t){(function(n,r){r(t,U0)})(F0,function(n,r){let o=null;function s(){return o!==null}function i(b){o&&a(),o=b}function l(b){b===o&&(o=null)}function a(){o&&(o.closeMenu(),o=null)}const u={defaultDirection:"br",defaultMinWidth:100,defaultMaxWidth:600,defaultZindex:100,defaultAdjustPadding:{x:0,y:10}};function c(b,S){let j=b.offsetTop;return b.offsetParent!=null&&b.offsetParent!=S&&(j-=b.offsetParent.scrollTop,j+=c(b.offsetParent,S)),j}function f(b,S){let j=b.offsetLeft;return b.offsetParent!=null&&b.offsetParent!=S&&(j-=b.offsetParent.scrollLeft,j+=f(b.offsetParent,S)),j}function d(b,S,j,K){return{x:f(b,K)+S,y:c(b,K)+j}}const p="mx-menu-default-container",g="mx-menu-container-";let _=0;function x(b){const{getContainer:S,zIndex:j}=b;if(S){const Y=typeof S=="function"?S():S;if(Y){let te=Y.getAttribute("id");return te||(te=g+_++,Y.setAttribute("id",te)),{eleId:te,container:Y,isNew:!1}}}let K=document.getElementById(p);return K||(K=document.createElement("div"),K.setAttribute("id",p),K.setAttribute("class","mx-menu-ghost-host fullscreen"),document.body.appendChild(K)),K.style.zIndex=(j==null?void 0:j.toString())||u.defaultZindex.toString(),{eleId:p,container:K,isNew:!0}}function R(b){return typeof b=="number"?`${b}px`:b}const v=r.defineComponent({props:{vnode:{type:null},data:{type:null,default:null}},setup(b){const{vnode:S,data:j}=r.toRefs(b);return()=>typeof S.value=="function"?S.value(j.value):S.value}}),y=(b,S)=>{const j=b.__vccOpts||b;for(const[K,Y]of S)j[K]=Y;return j},w={},C={class:"mx-checked-mark","aria-hidden":"true",viewBox:"0 0 1024 1024"},k=[r.createElementVNode("path",{d:"M129.3,428.6L52,512l345,372.5l575-620.8l-69.5-75L400.4,718.2L129.3,428.6z"},null,-1)];function I(b,S){return r.openBlock(),r.createElementBlock("svg",C,k)}const T=y(w,[["render",I]]),N={},H={class:"mx-right-arrow","aria-hidden":"true",viewBox:"0 0 1024 1024"},X=[r.createElementVNode("path",{d:"M307.018 49.445c11.517 0 23.032 4.394 31.819 13.18L756.404 480.18c8.439 8.438 13.181 19.885 13.181 31.82s-4.741 23.38-13.181 31.82L338.838 961.376c-17.574 17.573-46.065 17.573-63.64-0.001-17.573-17.573-17.573-46.065 0.001-63.64L660.944 512 275.198 126.265c-17.574-17.573-17.574-46.066-0.001-63.64C283.985 53.839 295.501 49.445 307.018 49.445z"},null,-1)];function B(b,S){return r.openBlock(),r.createElementBlock("svg",H,X)}const ee=y(N,[["render",B]]),ye={class:"mx-item-row"},de=["xlink:href"],W={key:1,class:"label"},se={class:"mx-item-row"},Z={class:"mx-shortcut"},Ge=r.defineComponent({__name:"ContextMenuItem",props:{disabled:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},customRender:{type:Function,default:null},customClass:{type:String,default:""},clickHandler:{type:Function,default:null},label:{type:[String,Object,Function],default:""},icon:{type:[String,Object,Function],default:""},iconFontClass:{type:String,default:"iconfont"},checked:{type:Boolean,default:!1},shortcut:{type:String,default:""},svgIcon:{type:String,default:""},svgProps:{type:Object,default:null},preserveIconWidth:{type:Boolean,default:!0},showRightArrow:{type:Boolean,default:!1},hasChildren:{type:Boolean,default:!1},clickClose:{type:Boolean,default:!0},clickableWhenHasChildren:{type:Boolean,default:!1},rawMenuItem:{type:Object,default:void 0}},emits:["click","subMenuOpen","subMenuClose"],setup(b,{expose:S,emit:j}){const K=b,Y=j,{clickHandler:te,clickClose:le,clickableWhenHasChildren:we,disabled:be,hidden:_e,label:V,icon:re,iconFontClass:Re,showRightArrow:Ee,shortcut:Xe,hasChildren:Le}=r.toRefs(K),ge=r.ref(!1),ie=r.ref(!1),fe=r.ref(),ve=r.inject("globalHasSlot"),Te=r.inject("globalRenderSlot"),$e=r.inject("globalTheme"),Et=r.inject("globalIconFontClass"),Ct=r.inject("globalMenuTransitionProps"),Nt=r.inject("globalClickCloseClassName"),tn=r.inject("globalIgnoreClickClassName"),ce=r.inject("globalCloseMenu"),Me=r.inject("menuContext"),ct={showSubMenu:()=>ge.value?(Me.markActiveMenuItem(ct,!0),!0):Le.value?(Vt(),!0):!1,isDisabledOrHidden:()=>be.value||_e.value,getElement:()=>fe.value,focus:()=>ie.value=!0,blur:()=>ie.value=!1,click:nn};r.onMounted(()=>{Me.isMenuItemDataCollectedFlag()?r.nextTick(()=>{let ae=0;const Ye=Me.getElement();if(Ye){let ne=0;for(let Ae=0;Ae{Me.removeChildMenuItem(ct)});function nn(ae){if(!be.value){if(ae){const Ye=ae.target;if(Ye.classList.contains("mx-context-no-clickable")||tn&&Ye.classList.contains(tn))return;if(Nt&&Ye.classList.contains(Nt)){ae.stopPropagation(),ce(K.rawMenuItem);return}}Le.value?we.value?(typeof te.value=="function"&&te.value(ae),Y("click",ae)):ge.value||Vt():(typeof te.value=="function"&&te.value(ae),Y("click",ae),le.value&&ce(K.rawMenuItem))}}function Vt(ae){ie.value=!1,Me.checkCloseOtherSubMenuTimeOut()||Me.closeOtherSubMenu(),be.value||(Me.markActiveMenuItem(ct),Le.value&&(ae||Me.markThisOpenedByKeyBoard(),Me.addOpenedSubMenu(()=>{ie.value=!1,ge.value=!1,Y("subMenuClose")}),ge.value=!0,Y("subMenuOpen")))}function tt(){return{disabled:be.value,label:V.value,icon:re.value,iconFontClass:Re.value,showRightArrow:Ee.value,clickClose:le.value,clickableWhenHasChildren:we.value,shortcut:Xe.value,theme:$e,isOpen:ge,hasChildren:Le,onClick:nn,onMouseEnter:Vt,closeMenu:ce}}return S({showSubMenu:ge,keyBoardFocusMenu:ie}),(ae,Ye)=>r.unref(_e)?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:"mx-context-menu-item-wrapper",ref_key:"menuItemRef",ref:fe,"data-type":"ContextMenuItem"},[r.unref(ve)("itemRender")?(r.openBlock(),r.createBlock(r.unref(v),{key:0,vnode:()=>r.unref(Te)("itemRender",tt())},null,8,["vnode"])):b.customRender?(r.openBlock(),r.createBlock(r.unref(v),{key:1,vnode:b.customRender,data:tt()},null,8,["vnode","data"])):(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(["mx-context-menu-item",r.unref(be)?"disabled":"",ie.value?"keyboard-focus":"",b.customClass?" "+b.customClass:"",ge.value?"open":""]),onClick:nn,onMouseenter:Vt},[r.renderSlot(ae.$slots,"default",{},()=>[r.createElementVNode("div",ye,[r.createElementVNode("div",{class:r.normalizeClass(["mx-icon-placeholder",b.preserveIconWidth?"preserve-width":""])},[r.renderSlot(ae.$slots,"icon",{},()=>[r.unref(ve)("itemIconRender")?(r.openBlock(),r.createBlock(r.unref(v),{key:0,vnode:()=>r.unref(Te)("itemIconRender",tt())},null,8,["vnode"])):typeof b.svgIcon=="string"&&b.svgIcon?(r.openBlock(),r.createElementBlock("svg",r.mergeProps({key:1,class:"icon svg"},b.svgProps),[r.createElementVNode("use",{"xlink:href":b.svgIcon},null,8,de)],16)):typeof r.unref(re)!="string"?(r.openBlock(),r.createBlock(r.unref(v),{key:2,vnode:r.unref(re),data:r.unref(re)},null,8,["vnode","data"])):typeof r.unref(re)=="string"&&r.unref(re)!==""?(r.openBlock(),r.createElementBlock("i",{key:3,class:r.normalizeClass(r.unref(re)+" icon "+r.unref(Re)+" "+r.unref(Et))},null,2)):r.createCommentVNode("",!0)]),b.checked?r.renderSlot(ae.$slots,"check",{key:0},()=>[r.unref(ve)("itemCheckRender")?(r.openBlock(),r.createBlock(r.unref(v),{key:0,vnode:()=>r.unref(Te)("itemCheckRender",tt())},null,8,["vnode"])):r.createCommentVNode("",!0),r.createVNode(T)]):r.createCommentVNode("",!0)],2),r.renderSlot(ae.$slots,"label",{},()=>[r.unref(ve)("itemLabelRender")?(r.openBlock(),r.createBlock(r.unref(v),{key:0,vnode:()=>r.unref(Te)("itemLabelRender",tt())},null,8,["vnode"])):typeof r.unref(V)=="string"?(r.openBlock(),r.createElementBlock("span",W,r.toDisplayString(r.unref(V)),1)):(r.openBlock(),r.createBlock(r.unref(v),{key:2,vnode:r.unref(V),data:r.unref(V)},null,8,["vnode","data"]))])]),r.createElementVNode("div",se,[r.unref(Xe)?r.renderSlot(ae.$slots,"shortcut",{key:0},()=>[r.unref(ve)("itemShortcutRender")?(r.openBlock(),r.createBlock(r.unref(v),{key:0,vnode:()=>r.unref(Te)("itemShortcutRender",tt())},null,8,["vnode"])):r.createCommentVNode("",!0),r.createElementVNode("span",Z,r.toDisplayString(r.unref(Xe)),1)]):r.createCommentVNode("",!0),r.unref(Ee)?r.renderSlot(ae.$slots,"rightArrow",{key:1},()=>[r.unref(ve)("itemRightArrowRender")?(r.openBlock(),r.createBlock(r.unref(v),{key:0,vnode:()=>r.unref(Te)("itemRightArrowRender",tt())},null,8,["vnode"])):r.createCommentVNode("",!0),r.createVNode(ee)]):r.createCommentVNode("",!0)])])],34)),r.unref(Ct)?(r.openBlock(),r.createBlock(r.Transition,r.normalizeProps(r.mergeProps({key:3},r.unref(Ct))),{default:r.withCtx(()=>[ge.value?r.renderSlot(ae.$slots,"submenu",{key:0}):r.createCommentVNode("",!0)]),_:3},16)):ge.value?r.renderSlot(ae.$slots,"submenu",{key:4}):r.createCommentVNode("",!0)],512))}}),Mt=r.defineComponent({name:"ContextMenuSperator",components:{VNodeRender:v},setup(){const b=r.inject("globalHasSlot"),S=r.inject("globalRenderSlot");return{globalHasSlot:b,globalRenderSlot:S}}}),yt={key:1,class:"mx-context-menu-item-sperator mx-context-no-clickable"};function Je(b,S,j,K,Y,te){const le=r.resolveComponent("VNodeRender");return b.globalHasSlot("separatorRender")?(r.openBlock(),r.createBlock(le,{key:0,vnode:()=>b.globalRenderSlot("separatorRender",{})},null,8,["vnode"])):(r.openBlock(),r.createElementBlock("div",yt))}const wt=y(Mt,[["render",Je]]),en=r.defineComponent({name:"ContextSubMenu",components:{ContextMenuItem:Ge,ContextMenuSeparator:wt,ContextMenuIconRight:ee},props:{items:{type:Object,default:null},maxWidth:{type:[String,Number],default:0},minWidth:{type:[String,Number],default:0},adjustPosition:{type:Boolean,default:!0},direction:{type:String,default:"br"}},setup(b){const S=r.inject("menuContext"),j=r.inject("globalOptions"),K=r.inject("globalHasSlot"),Y=r.inject("globalRenderSlot"),te=r.inject("globalTheme"),{zIndex:le,getParentWidth:we,getParentHeight:be}=S,{adjustPosition:_e}=r.toRefs(b),V=r.ref(),re=r.ref(),Re=r.ref(),Ee=[],Xe=r.inject("globalSetCurrentSubMenu"),Le=[];let ge=null,ie=0;function fe(){ge&&ge.blur()}function ve(ne,Ae){if(ne){for(let Ve=Ae!==void 0?Ae:0;Ve=0;Ve--)if(!Le[Ve].isDisabledOrHidden()){Te(Ve);break}}function Te(ne){if(ge&&fe(),ne!==void 0&&(ge=Le[Math.max(0,Math.min(ne,Le.length-1))]),!!ge&&(ge.focus(),tt.value)){const Ae=ge.getElement();Ae&&(ce.value=Math.min(Math.max(-Me.value,-Ae.offsetTop-Ae.offsetHeight+Ye.value),0))}}function $e(){Xe(Et)}const Et={isTopLevel:()=>S.getParentContext()===null,closeSelfAndActiveParent:()=>{const ne=tn.getParentContext();if(ne){ne.closeOtherSubMenu();const Ae=ne.getSubMenuInstanceContext();if(Ae)return Ae.focusCurrentItem(),!0}return!1},closeCurrentSubMenu:()=>{var ne;return(ne=tn.getParentContext())==null?void 0:ne.closeOtherSubMenu()},moveCurrentItemFirst:()=>ve(!0),moveCurrentItemLast:()=>ve(!1),moveCurrentItemDown:()=>ve(!0,ge?Le.indexOf(ge)+1:0),moveCurrentItemUp:()=>ve(!1,ge?Le.indexOf(ge)-1:0),focusCurrentItem:()=>Te(),openCurrentItemSubMenu:()=>ge?ge==null?void 0:ge.showSubMenu():!1,triggerCurrentItemClick:ne=>ge==null?void 0:ge.click(ne)};let Ct=!1,Nt=!1;const tn={zIndex:le+1,container:S.container,adjustPadding:j.adjustPadding||u.defaultAdjustPadding,getParentWidth:()=>{var ne;return((ne=V.value)==null?void 0:ne.offsetWidth)||0},getParentHeight:()=>{var ne;return((ne=V.value)==null?void 0:ne.offsetHeight)||0},getParentX:()=>ae.value.x,getParentY:()=>ae.value.y,getParentAbsX:()=>V.value?f(V.value,S.container):0,getParentAbsY:()=>V.value?c(V.value,S.container):0,getPositon:()=>[0,0],addOpenedSubMenu(ne){Ee.push(ne)},closeOtherSubMenu(){Ee.forEach(ne=>ne()),Ee.splice(0,Ee.length),Xe(Et)},checkCloseOtherSubMenuTimeOut(){return ie?(clearTimeout(ie),ie=0,!0):!1},closeOtherSubMenuWithTimeOut(){ie=setTimeout(()=>{ie=0,this.closeOtherSubMenu()},200)},addChildMenuItem:(ne,Ae)=>{Ae===void 0?Le.push(ne):Le.splice(Ae,0,ne)},removeChildMenuItem:ne=>{Le.splice(Le.indexOf(ne),1)},markActiveMenuItem:(ne,Ae=!1)=>{fe(),ge=ne,Ae&&Te()},markThisOpenedByKeyBoard:()=>{Ct=!0},isOpenedByKeyBoardFlag:()=>Ct?(Ct=!1,!0):!1,isMenuItemDataCollectedFlag:()=>Nt,getElement:()=>V.value||null,getParentContext:()=>S,getSubMenuInstanceContext:()=>Et};r.provide("menuContext",tn);const ce=r.ref(0),Me=r.ref(0);function ct(ne){ne?ce.value=Math.min(Math.max(ce.value-50,-Me.value),0):ce.value=Math.min(ce.value+50,0)}function nn(ne){ne.preventDefault(),ne.stopPropagation(),ct(ne.deltaY>0)}function Vt(ne){j.mouseScroll&&(ne.preventDefault(),ne.stopPropagation(),ct(ne.deltaY>0))}const tt=r.ref(!1),ae=r.ref({x:0,y:0}),Ye=r.ref(0);return r.onMounted(()=>{const ne=S.getPositon();ae.value={x:ne[0]??j.xOffset??0,y:ne[1]??j.yOffset??0},Xe(Et),r.nextTick(()=>{var Ae,Ve;const We=V.value;if(We&&re.value){const{container:Wt}=S,Wn=(we==null?void 0:we())??0,lo=(be==null?void 0:be())??0,ao=typeof S.adjustPadding=="number"?S.adjustPadding:((Ae=S.adjustPadding)==null?void 0:Ae.x)??0,co=typeof S.adjustPadding=="number"?S.adjustPadding:((Ve=S.adjustPadding)==null?void 0:Ve.y)??0,pr=lo>0?co:0,Id=document.documentElement.scrollHeight,Ld=document.documentElement.scrollWidth,Hd=Math.min(Ld,Wt.offsetWidth),Ts=Math.min(Id,Wt.offsetHeight);let Ps=f(We,Wt),As=c(We,Wt);b.direction.includes("l")?ae.value.x-=We.offsetWidth+ao:b.direction.includes("r")?ae.value.x+=Wn+ao:(ae.value.x+=Wn/2,ae.value.x-=(We.offsetWidth+ao)/2),b.direction.includes("t")?ae.value.y-=We.offsetHeight+co*2:b.direction.includes("b")?ae.value.y-=co:ae.value.y-=(We.offsetHeight+co)/2,_e.value&&r.nextTick(()=>{Ps=f(We,Wt),As=c(We,Wt);const Bd=Ps+We.offsetWidth-Hd,Wl=As+We.offsetHeight+pr*2-Ts;if(tt.value=Wl>0,Me.value=We.offsetHeight-Ts+pr*2,Bd>0){const mr=Wn+We.offsetWidth-ao,gr=Ps;mr>gr?ae.value.x-=gr:ae.value.x-=mr}if(tt.value){const mr=Wl,gr=As;mr>gr?ae.value.y-=gr-pr:ae.value.y-=mr-pr,Ye.value=Ts-pr*2}else Ye.value=0})}We==null||We.focus({preventScroll:!0}),S.isOpenedByKeyBoardFlag()&&ve(!0),Nt=!0})}),{menu:V,scroll:re,options:j,zIndex:le,constOptions:u,scrollValue:ce,upScrollButton:Re,overflow:tt,position:ae,scrollHeight:Me,maxHeight:Ye,globalHasSlot:K,globalRenderSlot:Y,globalTheme:te,onScroll:ct,onSubMenuBodyClick:$e,onMouseWhell:Vt,onMouseWhellMx:nn,solveNumberOrStringSize:R}}}),Vn={key:0,class:"mx-context-menu-updown placeholder"},Ue={key:1,class:"mx-context-menu-updown placeholder"},O={class:"mx-context-menu-scroll",ref:"scroll"};function z(b,S,j,K,Y,te){const le=r.resolveComponent("ContextMenuSeparator"),we=r.resolveComponent("ContextSubMenu",!0),be=r.resolveComponent("ContextMenuItem"),_e=r.resolveComponent("ContextMenuIconRight");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass("mx-context-menu "+(b.options.customClass?b.options.customClass:"")+" "+b.globalTheme),style:r.normalizeStyle({maxWidth:b.maxWidth?b.solveNumberOrStringSize(b.maxWidth):`${b.constOptions.defaultMaxWidth}px`,minWidth:b.minWidth?b.solveNumberOrStringSize(b.minWidth):`${b.constOptions.defaultMinWidth}px`,maxHeight:b.overflow&&b.maxHeight>0?`${b.maxHeight}px`:void 0,zIndex:b.zIndex,left:`${b.position.x}px`,top:`${b.position.y}px`}),"data-type":"ContextSubMenu",onClick:S[4]||(S[4]=(...V)=>b.onSubMenuBodyClick&&b.onSubMenuBodyClick(...V)),onWheel:S[5]||(S[5]=(...V)=>b.onMouseWhell&&b.onMouseWhell(...V))},[r.createElementVNode("div",{class:r.normalizeClass(["mx-context-menu-items"]),ref:"menu",style:r.normalizeStyle({top:`${b.scrollValue}px`})},[r.renderSlot(b.$slots,"default",{},()=>[b.overflow&&b.options.updownButtonSpaceholder?(r.openBlock(),r.createElementBlock("div",Vn)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(b.items,(V,re)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:re},[V.hidden!==!0&&V.divided==="up"?(r.openBlock(),r.createBlock(le,{key:0})):r.createCommentVNode("",!0),V.hidden!==!0&&V.divided==="self"?(r.openBlock(),r.createBlock(le,{key:1})):(r.openBlock(),r.createBlock(be,{key:2,clickHandler:V.onClick?Re=>V.onClick(Re):void 0,disabled:V.disabled,hidden:V.hidden,icon:V.icon,iconFontClass:V.iconFontClass,svgIcon:V.svgIcon,svgProps:V.svgProps,label:V.label,customRender:V.customRender,customClass:V.customClass,checked:V.checked,shortcut:V.shortcut,clickClose:V.clickClose,clickableWhenHasChildren:V.clickableWhenHasChildren,preserveIconWidth:V.preserveIconWidth!==void 0?V.preserveIconWidth:b.options.preserveIconWidth,showRightArrow:V.children&&V.children.length>0,hasChildren:V.children&&V.children.length>0,rawMenuItem:V,onSubMenuOpen:V.onSubMenuOpen,onSubMenuClose:V.onSubMenuClose},r.createSlots({_:2},[V.children&&V.children.length>0?{name:"submenu",fn:r.withCtx(()=>[r.createVNode(we,{items:V.children,maxWidth:V.maxWidth,minWidth:V.minWidth,adjustPosition:V.adjustSubMenuPosition!==void 0?V.adjustSubMenuPosition:b.options.adjustPosition,direction:V.direction!==void 0?V.direction:b.options.direction},null,8,["items","maxWidth","minWidth","adjustPosition","direction"])]),key:"0"}:void 0]),1032,["clickHandler","disabled","hidden","icon","iconFontClass","svgIcon","svgProps","label","customRender","customClass","checked","shortcut","clickClose","clickableWhenHasChildren","preserveIconWidth","showRightArrow","hasChildren","rawMenuItem","onSubMenuOpen","onSubMenuClose"])),V.hidden!==!0&&(V.divided==="down"||V.divided===!0)?(r.openBlock(),r.createBlock(le,{key:3})):r.createCommentVNode("",!0)],64))),128)),b.overflow&&b.options.updownButtonSpaceholder?(r.openBlock(),r.createElementBlock("div",Ue)):r.createCommentVNode("",!0)])],4),r.createElementVNode("div",O,[r.withDirectives(r.createElementVNode("div",{ref:"upScrollButton",class:r.normalizeClass("mx-context-menu-updown mx-context-no-clickable up"+(b.overflow&&b.scrollValue<0?"":" disabled")),onClick:S[0]||(S[0]=V=>b.onScroll(!1)),onWheel:S[1]||(S[1]=(...V)=>b.onMouseWhellMx&&b.onMouseWhellMx(...V))},[r.createVNode(_e)],34),[[r.vShow,b.overflow]]),r.withDirectives(r.createElementVNode("div",{class:r.normalizeClass("mx-context-menu-updown mx-context-no-clickable down"+(b.overflow&&b.scrollValue>-b.scrollHeight?"":" disabled")),onClick:S[2]||(S[2]=V=>b.onScroll(!0)),onWheel:S[3]||(S[3]=(...V)=>b.onMouseWhellMx&&b.onMouseWhellMx(...V))},[r.createVNode(_e)],34),[[r.vShow,b.overflow]])],512)],38)}const U=y(en,[["render",z]]),Q={class:"mx-menu-ghost-host"},pe=r.defineComponent({__name:"ContextSubMenuWrapper",props:{options:{type:Object,default:null},show:{type:Object,default:null},container:{type:Object,default:null},isFullScreenContainer:{type:Boolean,default:!0}},emits:["close","closeAnimFinished"],setup(b,{expose:S,emit:j}){var K,Y,te,le,we;const be=b,_e=j,V=r.useSlots(),{options:re,show:Re,container:Ee}=r.toRefs(be);r.onMounted(()=>{Re.value&&ge()}),r.onBeforeUnmount(()=>{Te()}),r.watch(Re,ce=>{ce?ge():Te()});const Xe={closeMenu:ie,isClosed:fe};let Le=!1;function ge(){ve(),i(Xe)}function ie(ce){Le=!0,_e("close",ce),re.value.menuTransitionProps||_e("closeAnimFinished"),l(Xe)}function fe(){return Le}function ve(){setTimeout(()=>{document.addEventListener("click",Nt,!0),document.addEventListener("contextmenu",Nt,!0),document.addEventListener("scroll",Ct,!0),!be.isFullScreenContainer&&Ee.value&&Ee.value.addEventListener("scroll",Ct,!0),re.value.keyboardControl!==!1&&document.addEventListener("keydown",Et)},50)}function Te(){document.removeEventListener("contextmenu",Nt,!0),document.removeEventListener("click",Nt,!0),document.removeEventListener("scroll",Ct,!0),!be.isFullScreenContainer&&Ee.value&&Ee.value.removeEventListener("scroll",Ct,!0),re.value.keyboardControl!==!1&&document.removeEventListener("keydown",Et)}const $e=r.ref();r.provide("globalSetCurrentSubMenu",ce=>$e.value=ce);function Et(ce){var Me,ct,nn,Vt,tt,ae,Ye,ne,Ae,Ve,We,Wt,Wn;let lo=!0;switch(ce.key){case"Escape":{((Me=$e.value)==null?void 0:Me.isTopLevel())===!1?(ct=$e.value)==null||ct.closeCurrentSubMenu():ie();break}case"ArrowDown":(nn=$e.value)==null||nn.moveCurrentItemDown();break;case"ArrowUp":(Vt=$e.value)==null||Vt.moveCurrentItemUp();break;case"Home":(tt=$e.value)==null||tt.moveCurrentItemFirst();break;case"End":(ae=$e.value)==null||ae.moveCurrentItemLast();break;case"ArrowLeft":{(Ye=$e.value)!=null&&Ye.closeSelfAndActiveParent()||(Ae=(ne=re.value).onKeyFocusMoveLeft)==null||Ae.call(ne);break}case"ArrowRight":(Ve=$e.value)!=null&&Ve.openCurrentItemSubMenu()||(Wt=(We=re.value).onKeyFocusMoveRight)==null||Wt.call(We);break;case"Enter":(Wn=$e.value)==null||Wn.triggerCurrentItemClick(ce);break;default:lo=!1;break}lo&&$e.value&&(ce.stopPropagation(),ce.preventDefault())}function Ct(){re.value.closeWhenScroll!==!1&&ie()}function Nt(ce){tn(ce.target)}function tn(ce){for(;ce;){if(ce.classList&&ce.classList.contains("mx-menu-host"))return;ce=ce.parentNode}re.value.clickCloseOnOutside!==!1&&(Te(),ie())}return r.provide("globalOptions",re.value),r.provide("globalCloseMenu",ie),r.provide("globalTheme",((K=re.value)==null?void 0:K.theme)||"light"),r.provide("globalIsFullScreenContainer",be.isFullScreenContainer),r.provide("globalClickCloseClassName",(Y=re.value)==null?void 0:Y.clickCloseClassName),r.provide("globalIgnoreClickClassName",(te=re.value)==null?void 0:te.ignoreClickClassName),r.provide("globalIconFontClass",((le=re.value)==null?void 0:le.iconFontClass)||"iconfont"),r.provide("globalMenuTransitionProps",(we=re.value)==null?void 0:we.menuTransitionProps),r.provide("globalHasSlot",ce=>V[ce]!==void 0),r.provide("globalRenderSlot",(ce,Me)=>r.renderSlot(V,ce,{...Me},()=>[r.h("span","Render slot failed")],!1)),r.provide("menuContext",{zIndex:re.value.zIndex||u.defaultZindex,container:Ee.value,adjustPadding:{x:0,y:0},getParentAbsY:()=>re.value.x,getParentAbsX:()=>re.value.y,getParentX:()=>0,getParentY:()=>0,getParentWidth:()=>0,getParentHeight:()=>0,getPositon:()=>[re.value.x,re.value.y],closeOtherSubMenuWithTimeOut:()=>{},checkCloseOtherSubMenuTimeOut:()=>!1,addOpenedSubMenu:()=>{},closeOtherSubMenu:()=>{},getParentContext:()=>null,getSubMenuInstanceContext:()=>null,getElement:()=>null,addChildMenuItem:()=>{},removeChildMenuItem:()=>{},markActiveMenuItem:()=>{},markThisOpenedByKeyBoard:()=>{},isOpenedByKeyBoardFlag:()=>!1,isMenuItemDataCollectedFlag:()=>!1}),S(Xe),(ce,Me)=>(r.openBlock(),r.createElementBlock("div",Q,[r.unref(re).menuTransitionProps?(r.openBlock(),r.createBlock(r.Transition,r.mergeProps({key:0,appear:""},r.unref(re).menuTransitionProps,{onAfterLeave:Me[0]||(Me[0]=ct=>_e("closeAnimFinished"))}),{default:r.withCtx(()=>[r.unref(Re)?(r.openBlock(),r.createBlock(U,{key:0,class:"mx-menu-host",items:r.unref(re).items,adjustPosition:r.unref(re).adjustPosition,maxWidth:r.unref(re).maxWidth||r.unref(u).defaultMaxWidth,minWidth:r.unref(re).minWidth||r.unref(u).defaultMinWidth,direction:r.unref(re).direction||r.unref(u).defaultDirection},{default:r.withCtx(()=>[r.renderSlot(ce.$slots,"default")]),_:3},8,["items","adjustPosition","maxWidth","minWidth","direction"])):r.createCommentVNode("",!0)]),_:3},16)):r.unref(Re)?(r.openBlock(),r.createBlock(U,{key:1,class:"mx-menu-host",items:r.unref(re).items,adjustPosition:r.unref(re).adjustPosition,maxWidth:r.unref(re).maxWidth||r.unref(u).defaultMaxWidth,minWidth:r.unref(re).minWidth||r.unref(u).defaultMinWidth,direction:r.unref(re).direction||r.unref(u).defaultDirection},{default:r.withCtx(()=>[r.renderSlot(ce.$slots,"default")]),_:3},8,["items","adjustPosition","maxWidth","minWidth","direction"])):r.createCommentVNode("",!0)]))}}),xe=r.defineComponent({name:"ContextMenu",emits:["update:show","close"],props:{options:{type:Object,default:null},show:{type:Boolean,default:!1}},setup(b,S){const{options:j,show:K}=r.toRefs(b);return S.expose({closeMenu:()=>S.emit("update:show",!1),isClosed:()=>!K.value}),()=>{const{isNew:Y,container:te,eleId:le}=x(j.value);return[r.h(r.Teleport,{to:`#${le}`},[r.h(pe,{options:j,show:K,container:te,isFullScreenContainer:!Y,onClose:we=>{var be,_e;S.emit("update:show",!1),S.emit("close"),(_e=(be=j.value).onClose)==null||_e.call(be,we)}},S.slots)])]}}}),h=r.defineComponent({name:"ContextMenuGroup",props:{disabled:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},clickHandler:{type:Function,default:null},label:{type:String,default:""},icon:{type:String,default:""},iconFontClass:{type:String,default:"iconfont"},checked:{type:Boolean,default:!1},shortcut:{type:String,default:""},svgIcon:{type:String,default:""},svgProps:{type:Object,default:null},preserveIconWidth:{type:Boolean,default:!0},showRightArrow:{type:Boolean,default:!1},clickClose:{type:Boolean,default:!0},adjustSubMenuPosition:{type:Boolean,default:void 0},maxWidth:{type:[String,Number],default:0},minWidth:{type:[String,Number],default:0}},setup(b,S){const j=r.inject("globalOptions"),{adjustSubMenuPosition:K,maxWidth:Y,minWidth:te}=r.toRefs(b),le=typeof K.value<"u"?K.value:j.adjustPosition;return()=>r.h(Ge,{...b,showRightArrow:!0,maxWidth:void 0,minWidth:void 0,adjustSubMenuPosition:void 0,hasChildren:typeof S.slots.default!==void 0},S.slots.default?{submenu:()=>r.h(U,{maxWidth:Y.value,minWidth:te.value,adjustPosition:le},{default:S.slots.default})}:void 0)}});function m(b,S,j,K){const Y=r.ref(!0),te=r.h(pe,{options:b,show:Y,container:S,isFullScreenContainer:!j,onCloseAnimFinished:()=>{r.render(null,S)},onClose:le=>{var we;(we=b.onClose)==null||we.call(b,le),Y.value=!1}},K);return r.render(te,S),te.component}function E(b,S){const j=x(b);return m(b,j.container,j.isNew,S).exposed}const M={install(b){b.config.globalProperties.$contextmenu=E,b.component("ContextMenu",xe),b.component("ContextMenuItem",Ge),b.component("ContextMenuGroup",h),b.component("ContextMenuSperator",wt),b.component("ContextMenuSeparator",wt),b.component("ContextSubMenu",U)},showContextMenu(b,S){return E(b,S)},isAnyContextMenuOpen(){return s()},closeContextMenu:a,transformMenuPosition:d},P={},$={class:"mx-menu-bar-icon-menu",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},q=[r.createElementVNode("path",{d:"M133.310936 296.552327l757.206115 0c19.781623 0 35.950949-16.169326 35.950949-35.950949 0-19.781623-15.997312-35.950949-35.950949-35.950949L133.310936 224.650428c-19.781623 0-35.950949 16.169326-35.950949 35.950949C97.359987 280.383 113.529313 296.552327 133.310936 296.552327z"},null,-1),r.createElementVNode("path",{d:"M890.51705 476.135058 133.310936 476.135058c-19.781623 0-35.950949 16.169326-35.950949 35.950949 0 19.781623 16.169326 35.950949 35.950949 35.950949l757.206115 0c19.781623 0 35.950949-16.169326 35.950949-35.950949C926.467999 492.304384 910.298673 476.135058 890.51705 476.135058z"},null,-1),r.createElementVNode("path",{d:"M890.51705 727.447673 133.310936 727.447673c-19.781623 0-35.950949 15.997312-35.950949 35.950949s16.169326 35.950949 35.950949 35.950949l757.206115 0c19.781623 0 35.950949-15.997312 35.950949-35.950949S910.298673 727.447673 890.51705 727.447673z"},null,-1)];function F(b,S){return r.openBlock(),r.createElementBlock("svg",$,q)}const D=y(P,[["render",F]]),L=["onClick","onMouseenter"],G=r.defineComponent({__name:"MenuBar",props:{options:{type:Object,default:null}},setup(b){const S=b,j=r.ref(),K=r.ref(!1),Y=r.ref([]),te=r.ref(null);function le(){K.value=!0}function we(){K.value=!1}r.onMounted(()=>{Y.value=S.options.items||[]}),r.watch(()=>S.options,()=>{Y.value=S.options.items||[]});let be=null,_e=-1;function V(){_e0?_e--:_e=Y.value.length-1,Ee(_e,Y.value[_e])}function Re(ie){const fe=S.options.barPopDirection??"bl";let ve=0,Te=0;return fe.startsWith("b")?Te=c(ie)+ie.offsetHeight:fe.startsWith("t")?Te=c(ie):Te=c(ie)+ie.offsetHeight/2,fe.endsWith("l")?ve=f(ie):fe.startsWith("r")?ve=f(ie)+ie.offsetWidth:ve=f(ie)+ie.offsetWidth/2,{x:ve,y:Te}}function Ee(ie,fe){var ve;if(_e=ie,!fe.children)return;be&&(be.closeMenu(),be=null,K.value=!0),te.value=fe;const Te=(ve=j.value)==null?void 0:ve.children[ie];if(Te){const{x:$e,y:Et}=Re(Te);be=M.showContextMenu({...S.options,items:fe.children,x:$e,y:Et,onKeyFocusMoveLeft(){re()},onKeyFocusMoveRight(){V()},onClose(){te.value==fe&&(K.value=!1,te.value=null)}})}}function Xe(){_e=0;const ie=j.value;if(ie){const{x:fe,y:ve}=Re(ie);be=M.showContextMenu({...S.options,x:fe,y:ve})}}function Le(ie,fe){fe?(K.value=!0,Ee(ie,fe),fe.onClick&&(fe.clickableWhenHasChildren===!0&&fe.children&&fe.children.length>0||!fe.children||fe.children.length===0)&&fe.onClick()):Xe()}function ge(ie,fe){K.value&&Ee(ie,fe)}return(ie,fe)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["mx-menu-bar",b.options.theme??"",b.options.mini?"mini":""]),onFocus:le,onBlur:we},[r.renderSlot(ie.$slots,"prefix"),b.options.mini?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"menuBarContent",ref:j,class:"mx-menu-bar-content"},[r.createElementVNode("div",{class:"mx-menu-bar-item",onClick:fe[0]||(fe[0]=ve=>Le(0,null))},[r.createVNode(D)])],512)):(r.openBlock(),r.createElementBlock("div",{key:1,ref_key:"menuBarContent",ref:j,class:"mx-menu-bar-content"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Y.value,(ve,Te)=>(r.openBlock(),r.createElementBlock("div",{key:Te,class:r.normalizeClass(["mx-menu-bar-item",ve==te.value?"active":""]),onClick:$e=>Le(Te,ve),onMouseenter:$e=>ge(Te,ve)},r.toDisplayString(ve.label),43,L))),128))],512)),r.renderSlot(ie.$slots,"suffix")],34))}});n.ContextMenu=xe,n.ContextMenuGroup=h,n.ContextMenuItem=Ge,n.ContextMenuSeparator=wt,n.MenuBar=G,n.default=M,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(zi,zi.exports);var V0=zi.exports;const W0=$0(V0),K0=Dt(e=>{e.vueApp.use(W0)}),q0=[Ab,Mb,O0,M0,N0,L0,H0,B0,j0,K0],z0=Ft({props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const o in e.route)Object.defineProperty(r,o,{get:()=>t===e.renderKey?e.route[o]:n[o]});return _n(ro,dr(r)),()=>lt(e.vnode,{ref:e.vnodeRef})}}),G0=Ft({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,expose:n}){const r=He(),o=mt(),s=ze(ro,null);let i;n({pageRef:o});const l=ze(Nf,null);let a;const u=r.deferHydration();if(r.isHydrating){const c=r.hooks.hookOnce("app:error",u);Ot().beforeEach(c)}return e.pageKey&&bn(()=>e.pageKey,(c,f)=>{c!==f&&r.callHook("page:loading:start")}),()=>lt(rd,{name:e.name,route:e.route,...t},{default:c=>{const f=X0(s,c.route,c.Component),d=s&&s.matched.length===c.route.matched.length;if(!c.Component){if(a&&!d)return a;u();return}if(a&&l&&!l.isCurrent(c.route))return a;if(f&&s&&(!l||l!=null&&l.isCurrent(s)))return d?a:null;const p=ji(c,e.pageKey);!r.isHydrating&&!Y0(s,c.route,c.Component)&&i===p&&r.callHook("page:loading:end"),i=p;const g=!!(e.transition??c.route.meta.pageTransition??Ii),_=g&&J0([e.transition,c.route.meta.pageTransition,Ii,{onAfterLeave:()=>{r.callHook("page:transition:finish",c.Component)}}].filter(Boolean)),x=e.keepalive??c.route.meta.keepalive??Cb;return a=od(eo,g&&_,B_(x,lt(ls,{suspensible:!0,onPending:()=>r.callHook("page:start",c.Component),onResolve:()=>{At(()=>r.callHook("page:finish",c.Component).then(()=>r.callHook("page:loading:end")).finally(u))}},{default:()=>{const R=lt(z0,{key:p||void 0,vnode:c.Component,route:c.route,renderKey:p||void 0,trackRootNodes:g,vnodeRef:o});return x&&(R.type.name=c.Component.type.name||c.Component.type.__name||"RouteProvider"),R}}))).default(),a}})}});function J0(e){const t=e.map(n=>({...n,onAfterLeave:n.onAfterLeave?Hl(n.onAfterLeave):void 0}));return Of(...t)}function X0(e,t,n){if(!e)return!1;const r=t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((o,s)=>{var i,l,a;return((i=o.components)==null?void 0:i.default)!==((a=(l=e.matched[s])==null?void 0:l.components)==null?void 0:a.default)})||n&&ji({route:t,Component:n})!==ji({route:e,Component:n})}function Y0(e,t,n){return e?t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(n==null?void 0:n.type)})r.default||r);return()=>lt(n,e.layoutProps,t.slots)}}),Z0=Ft({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(e,t){const n=He(),r=ze(ro),o=r===Ol()?L_():r,s=Ze(()=>{let a=Pe(e.name)??o.meta.layout??"default";return a&&!(a in gn)&&e.fallback&&(a=Pe(e.fallback)),a}),i=mt();t.expose({layoutRef:i});const l=n.deferHydration();if(n.isHydrating){const a=n.hooks.hookOnce("app:error",l);Ot().beforeEach(a)}return()=>{const a=s.value&&s.value in gn,u=o.meta.layoutTransition??Eb;return od(eo,a&&u,{default:()=>lt(ls,{suspensible:!0,onResolve:()=>{At(l)}},{default:()=>lt(ew,{layoutProps:Cl(t.attrs,{ref:i}),key:s.value||void 0,name:s.value,shouldProvide:!e.name,hasTransition:!!u},t.slots)})}).default()}}}),ew=Ft({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(e,t){const n=e.name;return e.shouldProvide&&_n(Nf,{isCurrent:r=>n===(r.meta.layout??"default")}),()=>{var r,o;return!n||typeof n=="string"&&!(n in gn)?(o=(r=t.slots).default)==null?void 0:o.call(r):lt(Q0,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}}),tw=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},nw={};function rw(e,t){const n=G0,r=Z0;return Rt(),Ht(r,null,{default:Jr(()=>[Oe(n)]),_:1})}const ow=tw(nw,[["render",rw]]),sw={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;(n.stack||"").split(` +`+s):r.stack=s}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ur(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Ki.assertOptions(r,{silentJSONParsing:an.transitional(an.boolean),forcedJSONParsing:an.transitional(an.boolean),clarifyTimeoutError:an.transitional(an.boolean)},!1),o!=null&&(A.isFunction(o)?n.paramsSerializer={serialize:o}:Ki.assertOptions(o,{encode:an.function,serialize:an.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&A.merge(s.common,s[n.method]);s&&A.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=Qt.concat(i,s);const l=[];let a=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(a=a&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let c,f=0,d;if(!a){const g=[Ec.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,u),d=g.length,c=Promise.resolve(n);f{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(l=>{r.subscribe(l),s=l}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,l){r.reason||(r.reason=new io(s,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Vl(function(o){t=o}),cancel:t}}}const m0=Vl;function g0(e){return function(n){return e.apply(null,n)}}function y0(e){return A.isObject(e)&&e.isAxiosError===!0}const qi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qi).forEach(([e,t])=>{qi[t]=e});const b0=qi;function Ad(e){const t=new Mo(e),n=ud(Mo.prototype.request,t);return A.extend(n,Mo.prototype,t,{allOwnKeys:!0}),A.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Ad(ur(e,o))},n}const Fe=Ad(Dl);Fe.Axios=Mo;Fe.CanceledError=io;Fe.CancelToken=m0;Fe.isCancel=kd;Fe.VERSION=Pd;Fe.toFormData=ks;Fe.AxiosError=he;Fe.Cancel=Fe.CanceledError;Fe.all=function(t){return Promise.all(t)};Fe.spread=g0;Fe.isAxiosError=y0;Fe.mergeConfig=ur;Fe.AxiosHeaders=Qt;Fe.formToJSON=e=>Rd(A.isHTMLForm(e)?new FormData(e):e);Fe.getAdapter=Td.getAdapter;Fe.HttpStatusCode=b0;Fe.default=Fe;function _0(){return bs().public.apiURL}function v0(e){var n,r;console.error(`Axios error: ${e.message}`);const t=(r=(n=e.response)==null?void 0:n.data)==null?void 0:r.description;throw t&&(e.message=t),e}function w0(e){const t={baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json"},maxRedirects:0},n=Fe.create(t);return n.interceptors.response.use(r=>r,v0),n}function Od(){return w0(_0())}function E0(e){const t="token"in e&&"username"in e?e.token:e,n=Od();return n.defaults.headers.common.Authorization=`Bearer ${t.rawToken}`,n}async function Rc(e){const r=(await E0(e).get("/user")).data;return{state:"ready",token:e,...r}}async function C0(e,t){const o=(await Od().post("/login",{username:e,password:t})).data;return nv(o),tv()}const S0=X_("user",()=>{const e=Ot(),t=mt({state:"loading"});Di()?s(!0):t.value={state:"unauthenticated"};function n(_){t.value=_}function r(){return n({state:"unauthenticated"}),t.value}function o(){return n({state:"loading"}),t.value}async function s(_=!1){const x=Di();if(!x)return r();if(t.value.state=="loading"&&!_)return await i();n({state:"loading"});try{const R=await Rc(x);n(R)}catch{return d()}return await i()}async function i(){return t.value.state=="loading"&&await a(),t.value}async function l(){const _=await i();if(_.state==="ready")return _;throw new Error("User is not ready!")}async function a(){await new Promise(_=>{const x=U_(async()=>{t.value.state!="loading"&&(clearInterval(x),_(void 0))},10)})}async function u(_,x){console.log(`${_}:${x}`);const R=C0(_,x);await c(R)}async function c(_){try{o();const x=await _;n(await Rc(x)),g()}catch(x){alert(x instanceof Error?x.message:"An unexpected error occured!"),r()}}async function f(){return(await i()).state!="unauthenticated"}function d(){return cd(),r()}function p(){d(),e.push("/")}function g(){e.push("/board")}return{user:Ze(()=>t),readyUser:Ze(()=>t),getUser:i,getReadyUser:l,reloadUser:s,passwordLogin:u,isAuthenticated:f,logout:p}}),Md=async(e,t)=>{let n,r;if(window==null)return;const o=S0();if(([n,r]=jn(()=>o.getUser()),n=await n,r(),n).state!=="ready")return Sy("/")},R0=Object.freeze(Object.defineProperty({__proto__:null,default:Md},Symbol.toStringTag,{value:"Module"}));function k0(e){return!!e.path.startsWith("/board")}const x0=async(e,t)=>{let n,r;if(k0(e))return[n,r]=jn(()=>Md(e,t)),n=await n,r(),n},T0=async e=>{let t,n;const r=([t,n]=jn(()=>Vf(e.path)),t=await t,n(),t);if(r.redirect)return r.redirect},P0=[D_,x0,T0],Mr={auth:()=>Gt(()=>Promise.resolve().then(()=>R0),void 0,import.meta.url)};function A0(e,t,n){const{pathname:r,search:o,hash:s}=t,i=e.indexOf("#");if(i>-1){const u=s.includes(e.slice(i))?e.slice(i).length:1;let c=s.slice(u);return c[0]!=="/"&&(c="/"+c),Na(c,"")}const l=Na(r,e),a=!n||Pg(l,n,{trailingSlash:!0})?l:n;return a+(a.includes("?")?"":o)+s}const O0=Dt({name:"nuxt:router",enforce:"pre",async setup(e){var _,x;let t,n,r=bs().app.baseURL;ft.hashMode&&!r.includes("#")&&(r+="#");const o=((_=ft.history)==null?void 0:_.call(ft,r))??(ft.hashMode?Xb(r):Gf(r)),s=((x=ft.routes)==null?void 0:x.call(ft,uc))??uc;let i;const l=A0(r,window.location,e.payload.path),a=N_({...ft,scrollBehavior:(R,v,y)=>{if(v===St){i=y;return}if(ft.scrollBehavior){if(a.options.scrollBehavior=ft.scrollBehavior,"scrollRestoration"in window.history){const w=a.beforeEach(()=>{w(),window.history.scrollRestoration="manual"})}return ft.scrollBehavior(R,St,i||y)}},history:o,routes:s});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const u=or(a.currentRoute.value);a.afterEach((R,v)=>{u.value=v}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>u.value});const c=or(a.resolve(l)),f=()=>{c.value=a.currentRoute.value};e.hook("page:finish",f),a.afterEach((R,v)=>{var y,w,C,k;((w=(y=R.matched[0])==null?void 0:y.components)==null?void 0:w.default)===((k=(C=v.matched[0])==null?void 0:C.components)==null?void 0:k.default)&&f()});const d={};for(const R in c.value)Object.defineProperty(d,R,{get:()=>c.value[R]});e._route=dr(d),e._middleware=e._middleware||{global:[],named:{}};const p=_s();try{[t,n]=jn(()=>a.isReady()),await t,n()}catch(R){[t,n]=jn(()=>e.runWithContext(()=>Gn(R))),await t,n()}const g=e.payload.state._layout;return a.beforeEach(async(R,v)=>{var y;await e.callHook("page:loading:start"),R.meta=Tt(R.meta),e.isHydrating&&g&&!En(R.meta.layout)&&(R.meta.layout=g),e._processingMiddleware=!0;{const w=new Set([...P0,...e._middleware.global]);for(const C of R.matched){const k=C.meta.middleware;if(k)for(const I of Hl(k))w.add(I)}for(const C of w){const k=typeof C=="string"?e._middleware.named[C]||await((y=Mr[C])==null?void 0:y.call(Mr).then(T=>T.default||T)):C;if(!k)throw new Error(`Unknown route middleware: '${C}'.`);const I=await e.runWithContext(()=>k(R,v));if(!e.payload.serverRendered&&e.isHydrating&&(I===!1||I instanceof Error)){const T=I||Pi({statusCode:404,statusMessage:`Page Not Found: ${l}`});return await e.runWithContext(()=>Gn(T)),!1}if(I!==!0&&(I||I===!1))return I}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(async(R,v,y)=>{delete e._processingMiddleware,!e.isHydrating&&p.value&&await e.runWithContext(Ry),y&&await e.callHook("page:loading:end"),R.matched.length===0&&await e.runWithContext(()=>Gn(Pi({statusCode:404,fatal:!1,statusMessage:`Page not found: ${R.fullPath}`,data:{path:R.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{await a.replace({...a.resolve(l),name:void 0,force:!0}),a.options.scrollBehavior=ft.scrollBehavior}catch(R){await e.runWithContext(()=>Gn(R))}}),{provide:{router:a}}}}),kc=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),aw=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Nd=e=>{const t=He();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{kc(e)}):kc(e)},M0=Dt({name:"nuxt:payload",setup(e){Ot().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await Ka(t.path);r&&Object.assign(e.static.data,r.data)}),Nd(()=>{var t;e.hooks.hook("link:prefetch",async n=>{ys(n).protocol||await Ka(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout(ws,1e3)})}}),N0=Dt(e=>{let t;async function n(){const r=await ws();t&&clearTimeout(t),t=setTimeout(n,1e3*60*60);const o=await $fetch(Pl("builds/latest.json"));o.id!==r.id&&e.hooks.callHook("app:manifest:update",o)}Nd(()=>{t=setTimeout(n,1e3*60*60)})});function I0(e={}){const t=e.path||window.location.pathname;let n={};try{n=qo(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires){const t=W_();return e.vueApp.use(t),oo(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}),H0=Dt({name:"nuxt:global-components"}),gn={default:()=>Gt(()=>import("./default.DPO3LuHh.js"),__vite__mapDeps([7,3,8,9]),import.meta.url).then(e=>e.default||e),messaging:()=>Gt(()=>import("./messaging.C41G1zUO.js"),__vite__mapDeps([10,11,9]),import.meta.url).then(e=>e.default||e)},B0=Dt({name:"nuxt:prefetch",setup(e){const t=Ot();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var o;const r=(o=n==null?void 0:n.meta)==null?void 0:o.layout;r&&typeof gn[r]=="function"&&await gn[r]()})}),e.hooks.hook("link:prefetch",n=>{if(to(n))return;const r=t.resolve(n);if(!r)return;const o=r.meta.layout;let s=Hl(r.meta.middleware);s=s.filter(i=>typeof i=="string");for(const i of s)typeof Mr[i]=="function"&&Mr[i]();o&&typeof gn[o]=="function"&&gn[o]()})}}),j0=Dt({name:"nuxt:chunk-reload",setup(e){const t=Ot(),n=bs(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:s})=>{r.add(s)});function o(s){const l="href"in s&&s.href[0]==="#"?n.app.baseURL+s.href:no(n.app.baseURL,s.fullPath);I0({path:l,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((s,i)=>{r.has(s)&&o(i)})}});var F0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function D0(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var zi={exports:{}};const U0=D0(og);(function(e,t){(function(n,r){r(t,U0)})(F0,function(n,r){let o=null;function s(){return o!==null}function i(b){o&&a(),o=b}function l(b){b===o&&(o=null)}function a(){o&&(o.closeMenu(),o=null)}const u={defaultDirection:"br",defaultMinWidth:100,defaultMaxWidth:600,defaultZindex:100,defaultAdjustPadding:{x:0,y:10}};function c(b,S){let j=b.offsetTop;return b.offsetParent!=null&&b.offsetParent!=S&&(j-=b.offsetParent.scrollTop,j+=c(b.offsetParent,S)),j}function f(b,S){let j=b.offsetLeft;return b.offsetParent!=null&&b.offsetParent!=S&&(j-=b.offsetParent.scrollLeft,j+=f(b.offsetParent,S)),j}function d(b,S,j,K){return{x:f(b,K)+S,y:c(b,K)+j}}const p="mx-menu-default-container",g="mx-menu-container-";let _=0;function x(b){const{getContainer:S,zIndex:j}=b;if(S){const Y=typeof S=="function"?S():S;if(Y){let te=Y.getAttribute("id");return te||(te=g+_++,Y.setAttribute("id",te)),{eleId:te,container:Y,isNew:!1}}}let K=document.getElementById(p);return K||(K=document.createElement("div"),K.setAttribute("id",p),K.setAttribute("class","mx-menu-ghost-host fullscreen"),document.body.appendChild(K)),K.style.zIndex=(j==null?void 0:j.toString())||u.defaultZindex.toString(),{eleId:p,container:K,isNew:!0}}function R(b){return typeof b=="number"?`${b}px`:b}const v=r.defineComponent({props:{vnode:{type:null},data:{type:null,default:null}},setup(b){const{vnode:S,data:j}=r.toRefs(b);return()=>typeof S.value=="function"?S.value(j.value):S.value}}),y=(b,S)=>{const j=b.__vccOpts||b;for(const[K,Y]of S)j[K]=Y;return j},w={},C={class:"mx-checked-mark","aria-hidden":"true",viewBox:"0 0 1024 1024"},k=[r.createElementVNode("path",{d:"M129.3,428.6L52,512l345,372.5l575-620.8l-69.5-75L400.4,718.2L129.3,428.6z"},null,-1)];function I(b,S){return r.openBlock(),r.createElementBlock("svg",C,k)}const T=y(w,[["render",I]]),N={},H={class:"mx-right-arrow","aria-hidden":"true",viewBox:"0 0 1024 1024"},X=[r.createElementVNode("path",{d:"M307.018 49.445c11.517 0 23.032 4.394 31.819 13.18L756.404 480.18c8.439 8.438 13.181 19.885 13.181 31.82s-4.741 23.38-13.181 31.82L338.838 961.376c-17.574 17.573-46.065 17.573-63.64-0.001-17.573-17.573-17.573-46.065 0.001-63.64L660.944 512 275.198 126.265c-17.574-17.573-17.574-46.066-0.001-63.64C283.985 53.839 295.501 49.445 307.018 49.445z"},null,-1)];function B(b,S){return r.openBlock(),r.createElementBlock("svg",H,X)}const ee=y(N,[["render",B]]),ye={class:"mx-item-row"},de=["xlink:href"],W={key:1,class:"label"},se={class:"mx-item-row"},Z={class:"mx-shortcut"},Ge=r.defineComponent({__name:"ContextMenuItem",props:{disabled:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},customRender:{type:Function,default:null},customClass:{type:String,default:""},clickHandler:{type:Function,default:null},label:{type:[String,Object,Function],default:""},icon:{type:[String,Object,Function],default:""},iconFontClass:{type:String,default:"iconfont"},checked:{type:Boolean,default:!1},shortcut:{type:String,default:""},svgIcon:{type:String,default:""},svgProps:{type:Object,default:null},preserveIconWidth:{type:Boolean,default:!0},showRightArrow:{type:Boolean,default:!1},hasChildren:{type:Boolean,default:!1},clickClose:{type:Boolean,default:!0},clickableWhenHasChildren:{type:Boolean,default:!1},rawMenuItem:{type:Object,default:void 0}},emits:["click","subMenuOpen","subMenuClose"],setup(b,{expose:S,emit:j}){const K=b,Y=j,{clickHandler:te,clickClose:le,clickableWhenHasChildren:we,disabled:be,hidden:_e,label:V,icon:re,iconFontClass:Re,showRightArrow:Ee,shortcut:Xe,hasChildren:Le}=r.toRefs(K),ge=r.ref(!1),ie=r.ref(!1),fe=r.ref(),ve=r.inject("globalHasSlot"),Te=r.inject("globalRenderSlot"),$e=r.inject("globalTheme"),Et=r.inject("globalIconFontClass"),Ct=r.inject("globalMenuTransitionProps"),Nt=r.inject("globalClickCloseClassName"),tn=r.inject("globalIgnoreClickClassName"),ce=r.inject("globalCloseMenu"),Me=r.inject("menuContext"),ct={showSubMenu:()=>ge.value?(Me.markActiveMenuItem(ct,!0),!0):Le.value?(Vt(),!0):!1,isDisabledOrHidden:()=>be.value||_e.value,getElement:()=>fe.value,focus:()=>ie.value=!0,blur:()=>ie.value=!1,click:nn};r.onMounted(()=>{Me.isMenuItemDataCollectedFlag()?r.nextTick(()=>{let ae=0;const Ye=Me.getElement();if(Ye){let ne=0;for(let Ae=0;Ae{Me.removeChildMenuItem(ct)});function nn(ae){if(!be.value){if(ae){const Ye=ae.target;if(Ye.classList.contains("mx-context-no-clickable")||tn&&Ye.classList.contains(tn))return;if(Nt&&Ye.classList.contains(Nt)){ae.stopPropagation(),ce(K.rawMenuItem);return}}Le.value?we.value?(typeof te.value=="function"&&te.value(ae),Y("click",ae)):ge.value||Vt():(typeof te.value=="function"&&te.value(ae),Y("click",ae),le.value&&ce(K.rawMenuItem))}}function Vt(ae){ie.value=!1,Me.checkCloseOtherSubMenuTimeOut()||Me.closeOtherSubMenu(),be.value||(Me.markActiveMenuItem(ct),Le.value&&(ae||Me.markThisOpenedByKeyBoard(),Me.addOpenedSubMenu(()=>{ie.value=!1,ge.value=!1,Y("subMenuClose")}),ge.value=!0,Y("subMenuOpen")))}function tt(){return{disabled:be.value,label:V.value,icon:re.value,iconFontClass:Re.value,showRightArrow:Ee.value,clickClose:le.value,clickableWhenHasChildren:we.value,shortcut:Xe.value,theme:$e,isOpen:ge,hasChildren:Le,onClick:nn,onMouseEnter:Vt,closeMenu:ce}}return S({showSubMenu:ge,keyBoardFocusMenu:ie}),(ae,Ye)=>r.unref(_e)?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:"mx-context-menu-item-wrapper",ref_key:"menuItemRef",ref:fe,"data-type":"ContextMenuItem"},[r.unref(ve)("itemRender")?(r.openBlock(),r.createBlock(r.unref(v),{key:0,vnode:()=>r.unref(Te)("itemRender",tt())},null,8,["vnode"])):b.customRender?(r.openBlock(),r.createBlock(r.unref(v),{key:1,vnode:b.customRender,data:tt()},null,8,["vnode","data"])):(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(["mx-context-menu-item",r.unref(be)?"disabled":"",ie.value?"keyboard-focus":"",b.customClass?" "+b.customClass:"",ge.value?"open":""]),onClick:nn,onMouseenter:Vt},[r.renderSlot(ae.$slots,"default",{},()=>[r.createElementVNode("div",ye,[r.createElementVNode("div",{class:r.normalizeClass(["mx-icon-placeholder",b.preserveIconWidth?"preserve-width":""])},[r.renderSlot(ae.$slots,"icon",{},()=>[r.unref(ve)("itemIconRender")?(r.openBlock(),r.createBlock(r.unref(v),{key:0,vnode:()=>r.unref(Te)("itemIconRender",tt())},null,8,["vnode"])):typeof b.svgIcon=="string"&&b.svgIcon?(r.openBlock(),r.createElementBlock("svg",r.mergeProps({key:1,class:"icon svg"},b.svgProps),[r.createElementVNode("use",{"xlink:href":b.svgIcon},null,8,de)],16)):typeof r.unref(re)!="string"?(r.openBlock(),r.createBlock(r.unref(v),{key:2,vnode:r.unref(re),data:r.unref(re)},null,8,["vnode","data"])):typeof r.unref(re)=="string"&&r.unref(re)!==""?(r.openBlock(),r.createElementBlock("i",{key:3,class:r.normalizeClass(r.unref(re)+" icon "+r.unref(Re)+" "+r.unref(Et))},null,2)):r.createCommentVNode("",!0)]),b.checked?r.renderSlot(ae.$slots,"check",{key:0},()=>[r.unref(ve)("itemCheckRender")?(r.openBlock(),r.createBlock(r.unref(v),{key:0,vnode:()=>r.unref(Te)("itemCheckRender",tt())},null,8,["vnode"])):r.createCommentVNode("",!0),r.createVNode(T)]):r.createCommentVNode("",!0)],2),r.renderSlot(ae.$slots,"label",{},()=>[r.unref(ve)("itemLabelRender")?(r.openBlock(),r.createBlock(r.unref(v),{key:0,vnode:()=>r.unref(Te)("itemLabelRender",tt())},null,8,["vnode"])):typeof r.unref(V)=="string"?(r.openBlock(),r.createElementBlock("span",W,r.toDisplayString(r.unref(V)),1)):(r.openBlock(),r.createBlock(r.unref(v),{key:2,vnode:r.unref(V),data:r.unref(V)},null,8,["vnode","data"]))])]),r.createElementVNode("div",se,[r.unref(Xe)?r.renderSlot(ae.$slots,"shortcut",{key:0},()=>[r.unref(ve)("itemShortcutRender")?(r.openBlock(),r.createBlock(r.unref(v),{key:0,vnode:()=>r.unref(Te)("itemShortcutRender",tt())},null,8,["vnode"])):r.createCommentVNode("",!0),r.createElementVNode("span",Z,r.toDisplayString(r.unref(Xe)),1)]):r.createCommentVNode("",!0),r.unref(Ee)?r.renderSlot(ae.$slots,"rightArrow",{key:1},()=>[r.unref(ve)("itemRightArrowRender")?(r.openBlock(),r.createBlock(r.unref(v),{key:0,vnode:()=>r.unref(Te)("itemRightArrowRender",tt())},null,8,["vnode"])):r.createCommentVNode("",!0),r.createVNode(ee)]):r.createCommentVNode("",!0)])])],34)),r.unref(Ct)?(r.openBlock(),r.createBlock(r.Transition,r.normalizeProps(r.mergeProps({key:3},r.unref(Ct))),{default:r.withCtx(()=>[ge.value?r.renderSlot(ae.$slots,"submenu",{key:0}):r.createCommentVNode("",!0)]),_:3},16)):ge.value?r.renderSlot(ae.$slots,"submenu",{key:4}):r.createCommentVNode("",!0)],512))}}),Mt=r.defineComponent({name:"ContextMenuSperator",components:{VNodeRender:v},setup(){const b=r.inject("globalHasSlot"),S=r.inject("globalRenderSlot");return{globalHasSlot:b,globalRenderSlot:S}}}),yt={key:1,class:"mx-context-menu-item-sperator mx-context-no-clickable"};function Je(b,S,j,K,Y,te){const le=r.resolveComponent("VNodeRender");return b.globalHasSlot("separatorRender")?(r.openBlock(),r.createBlock(le,{key:0,vnode:()=>b.globalRenderSlot("separatorRender",{})},null,8,["vnode"])):(r.openBlock(),r.createElementBlock("div",yt))}const wt=y(Mt,[["render",Je]]),en=r.defineComponent({name:"ContextSubMenu",components:{ContextMenuItem:Ge,ContextMenuSeparator:wt,ContextMenuIconRight:ee},props:{items:{type:Object,default:null},maxWidth:{type:[String,Number],default:0},minWidth:{type:[String,Number],default:0},adjustPosition:{type:Boolean,default:!0},direction:{type:String,default:"br"}},setup(b){const S=r.inject("menuContext"),j=r.inject("globalOptions"),K=r.inject("globalHasSlot"),Y=r.inject("globalRenderSlot"),te=r.inject("globalTheme"),{zIndex:le,getParentWidth:we,getParentHeight:be}=S,{adjustPosition:_e}=r.toRefs(b),V=r.ref(),re=r.ref(),Re=r.ref(),Ee=[],Xe=r.inject("globalSetCurrentSubMenu"),Le=[];let ge=null,ie=0;function fe(){ge&&ge.blur()}function ve(ne,Ae){if(ne){for(let Ve=Ae!==void 0?Ae:0;Ve=0;Ve--)if(!Le[Ve].isDisabledOrHidden()){Te(Ve);break}}function Te(ne){if(ge&&fe(),ne!==void 0&&(ge=Le[Math.max(0,Math.min(ne,Le.length-1))]),!!ge&&(ge.focus(),tt.value)){const Ae=ge.getElement();Ae&&(ce.value=Math.min(Math.max(-Me.value,-Ae.offsetTop-Ae.offsetHeight+Ye.value),0))}}function $e(){Xe(Et)}const Et={isTopLevel:()=>S.getParentContext()===null,closeSelfAndActiveParent:()=>{const ne=tn.getParentContext();if(ne){ne.closeOtherSubMenu();const Ae=ne.getSubMenuInstanceContext();if(Ae)return Ae.focusCurrentItem(),!0}return!1},closeCurrentSubMenu:()=>{var ne;return(ne=tn.getParentContext())==null?void 0:ne.closeOtherSubMenu()},moveCurrentItemFirst:()=>ve(!0),moveCurrentItemLast:()=>ve(!1),moveCurrentItemDown:()=>ve(!0,ge?Le.indexOf(ge)+1:0),moveCurrentItemUp:()=>ve(!1,ge?Le.indexOf(ge)-1:0),focusCurrentItem:()=>Te(),openCurrentItemSubMenu:()=>ge?ge==null?void 0:ge.showSubMenu():!1,triggerCurrentItemClick:ne=>ge==null?void 0:ge.click(ne)};let Ct=!1,Nt=!1;const tn={zIndex:le+1,container:S.container,adjustPadding:j.adjustPadding||u.defaultAdjustPadding,getParentWidth:()=>{var ne;return((ne=V.value)==null?void 0:ne.offsetWidth)||0},getParentHeight:()=>{var ne;return((ne=V.value)==null?void 0:ne.offsetHeight)||0},getParentX:()=>ae.value.x,getParentY:()=>ae.value.y,getParentAbsX:()=>V.value?f(V.value,S.container):0,getParentAbsY:()=>V.value?c(V.value,S.container):0,getPositon:()=>[0,0],addOpenedSubMenu(ne){Ee.push(ne)},closeOtherSubMenu(){Ee.forEach(ne=>ne()),Ee.splice(0,Ee.length),Xe(Et)},checkCloseOtherSubMenuTimeOut(){return ie?(clearTimeout(ie),ie=0,!0):!1},closeOtherSubMenuWithTimeOut(){ie=setTimeout(()=>{ie=0,this.closeOtherSubMenu()},200)},addChildMenuItem:(ne,Ae)=>{Ae===void 0?Le.push(ne):Le.splice(Ae,0,ne)},removeChildMenuItem:ne=>{Le.splice(Le.indexOf(ne),1)},markActiveMenuItem:(ne,Ae=!1)=>{fe(),ge=ne,Ae&&Te()},markThisOpenedByKeyBoard:()=>{Ct=!0},isOpenedByKeyBoardFlag:()=>Ct?(Ct=!1,!0):!1,isMenuItemDataCollectedFlag:()=>Nt,getElement:()=>V.value||null,getParentContext:()=>S,getSubMenuInstanceContext:()=>Et};r.provide("menuContext",tn);const ce=r.ref(0),Me=r.ref(0);function ct(ne){ne?ce.value=Math.min(Math.max(ce.value-50,-Me.value),0):ce.value=Math.min(ce.value+50,0)}function nn(ne){ne.preventDefault(),ne.stopPropagation(),ct(ne.deltaY>0)}function Vt(ne){j.mouseScroll&&(ne.preventDefault(),ne.stopPropagation(),ct(ne.deltaY>0))}const tt=r.ref(!1),ae=r.ref({x:0,y:0}),Ye=r.ref(0);return r.onMounted(()=>{const ne=S.getPositon();ae.value={x:ne[0]??j.xOffset??0,y:ne[1]??j.yOffset??0},Xe(Et),r.nextTick(()=>{var Ae,Ve;const We=V.value;if(We&&re.value){const{container:Wt}=S,Wn=(we==null?void 0:we())??0,lo=(be==null?void 0:be())??0,ao=typeof S.adjustPadding=="number"?S.adjustPadding:((Ae=S.adjustPadding)==null?void 0:Ae.x)??0,co=typeof S.adjustPadding=="number"?S.adjustPadding:((Ve=S.adjustPadding)==null?void 0:Ve.y)??0,pr=lo>0?co:0,Id=document.documentElement.scrollHeight,Ld=document.documentElement.scrollWidth,Hd=Math.min(Ld,Wt.offsetWidth),Ts=Math.min(Id,Wt.offsetHeight);let Ps=f(We,Wt),As=c(We,Wt);b.direction.includes("l")?ae.value.x-=We.offsetWidth+ao:b.direction.includes("r")?ae.value.x+=Wn+ao:(ae.value.x+=Wn/2,ae.value.x-=(We.offsetWidth+ao)/2),b.direction.includes("t")?ae.value.y-=We.offsetHeight+co*2:b.direction.includes("b")?ae.value.y-=co:ae.value.y-=(We.offsetHeight+co)/2,_e.value&&r.nextTick(()=>{Ps=f(We,Wt),As=c(We,Wt);const Bd=Ps+We.offsetWidth-Hd,Wl=As+We.offsetHeight+pr*2-Ts;if(tt.value=Wl>0,Me.value=We.offsetHeight-Ts+pr*2,Bd>0){const mr=Wn+We.offsetWidth-ao,gr=Ps;mr>gr?ae.value.x-=gr:ae.value.x-=mr}if(tt.value){const mr=Wl,gr=As;mr>gr?ae.value.y-=gr-pr:ae.value.y-=mr-pr,Ye.value=Ts-pr*2}else Ye.value=0})}We==null||We.focus({preventScroll:!0}),S.isOpenedByKeyBoardFlag()&&ve(!0),Nt=!0})}),{menu:V,scroll:re,options:j,zIndex:le,constOptions:u,scrollValue:ce,upScrollButton:Re,overflow:tt,position:ae,scrollHeight:Me,maxHeight:Ye,globalHasSlot:K,globalRenderSlot:Y,globalTheme:te,onScroll:ct,onSubMenuBodyClick:$e,onMouseWhell:Vt,onMouseWhellMx:nn,solveNumberOrStringSize:R}}}),Vn={key:0,class:"mx-context-menu-updown placeholder"},Ue={key:1,class:"mx-context-menu-updown placeholder"},O={class:"mx-context-menu-scroll",ref:"scroll"};function z(b,S,j,K,Y,te){const le=r.resolveComponent("ContextMenuSeparator"),we=r.resolveComponent("ContextSubMenu",!0),be=r.resolveComponent("ContextMenuItem"),_e=r.resolveComponent("ContextMenuIconRight");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass("mx-context-menu "+(b.options.customClass?b.options.customClass:"")+" "+b.globalTheme),style:r.normalizeStyle({maxWidth:b.maxWidth?b.solveNumberOrStringSize(b.maxWidth):`${b.constOptions.defaultMaxWidth}px`,minWidth:b.minWidth?b.solveNumberOrStringSize(b.minWidth):`${b.constOptions.defaultMinWidth}px`,maxHeight:b.overflow&&b.maxHeight>0?`${b.maxHeight}px`:void 0,zIndex:b.zIndex,left:`${b.position.x}px`,top:`${b.position.y}px`}),"data-type":"ContextSubMenu",onClick:S[4]||(S[4]=(...V)=>b.onSubMenuBodyClick&&b.onSubMenuBodyClick(...V)),onWheel:S[5]||(S[5]=(...V)=>b.onMouseWhell&&b.onMouseWhell(...V))},[r.createElementVNode("div",{class:r.normalizeClass(["mx-context-menu-items"]),ref:"menu",style:r.normalizeStyle({top:`${b.scrollValue}px`})},[r.renderSlot(b.$slots,"default",{},()=>[b.overflow&&b.options.updownButtonSpaceholder?(r.openBlock(),r.createElementBlock("div",Vn)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(b.items,(V,re)=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:re},[V.hidden!==!0&&V.divided==="up"?(r.openBlock(),r.createBlock(le,{key:0})):r.createCommentVNode("",!0),V.hidden!==!0&&V.divided==="self"?(r.openBlock(),r.createBlock(le,{key:1})):(r.openBlock(),r.createBlock(be,{key:2,clickHandler:V.onClick?Re=>V.onClick(Re):void 0,disabled:V.disabled,hidden:V.hidden,icon:V.icon,iconFontClass:V.iconFontClass,svgIcon:V.svgIcon,svgProps:V.svgProps,label:V.label,customRender:V.customRender,customClass:V.customClass,checked:V.checked,shortcut:V.shortcut,clickClose:V.clickClose,clickableWhenHasChildren:V.clickableWhenHasChildren,preserveIconWidth:V.preserveIconWidth!==void 0?V.preserveIconWidth:b.options.preserveIconWidth,showRightArrow:V.children&&V.children.length>0,hasChildren:V.children&&V.children.length>0,rawMenuItem:V,onSubMenuOpen:V.onSubMenuOpen,onSubMenuClose:V.onSubMenuClose},r.createSlots({_:2},[V.children&&V.children.length>0?{name:"submenu",fn:r.withCtx(()=>[r.createVNode(we,{items:V.children,maxWidth:V.maxWidth,minWidth:V.minWidth,adjustPosition:V.adjustSubMenuPosition!==void 0?V.adjustSubMenuPosition:b.options.adjustPosition,direction:V.direction!==void 0?V.direction:b.options.direction},null,8,["items","maxWidth","minWidth","adjustPosition","direction"])]),key:"0"}:void 0]),1032,["clickHandler","disabled","hidden","icon","iconFontClass","svgIcon","svgProps","label","customRender","customClass","checked","shortcut","clickClose","clickableWhenHasChildren","preserveIconWidth","showRightArrow","hasChildren","rawMenuItem","onSubMenuOpen","onSubMenuClose"])),V.hidden!==!0&&(V.divided==="down"||V.divided===!0)?(r.openBlock(),r.createBlock(le,{key:3})):r.createCommentVNode("",!0)],64))),128)),b.overflow&&b.options.updownButtonSpaceholder?(r.openBlock(),r.createElementBlock("div",Ue)):r.createCommentVNode("",!0)])],4),r.createElementVNode("div",O,[r.withDirectives(r.createElementVNode("div",{ref:"upScrollButton",class:r.normalizeClass("mx-context-menu-updown mx-context-no-clickable up"+(b.overflow&&b.scrollValue<0?"":" disabled")),onClick:S[0]||(S[0]=V=>b.onScroll(!1)),onWheel:S[1]||(S[1]=(...V)=>b.onMouseWhellMx&&b.onMouseWhellMx(...V))},[r.createVNode(_e)],34),[[r.vShow,b.overflow]]),r.withDirectives(r.createElementVNode("div",{class:r.normalizeClass("mx-context-menu-updown mx-context-no-clickable down"+(b.overflow&&b.scrollValue>-b.scrollHeight?"":" disabled")),onClick:S[2]||(S[2]=V=>b.onScroll(!0)),onWheel:S[3]||(S[3]=(...V)=>b.onMouseWhellMx&&b.onMouseWhellMx(...V))},[r.createVNode(_e)],34),[[r.vShow,b.overflow]])],512)],38)}const U=y(en,[["render",z]]),Q={class:"mx-menu-ghost-host"},pe=r.defineComponent({__name:"ContextSubMenuWrapper",props:{options:{type:Object,default:null},show:{type:Object,default:null},container:{type:Object,default:null},isFullScreenContainer:{type:Boolean,default:!0}},emits:["close","closeAnimFinished"],setup(b,{expose:S,emit:j}){var K,Y,te,le,we;const be=b,_e=j,V=r.useSlots(),{options:re,show:Re,container:Ee}=r.toRefs(be);r.onMounted(()=>{Re.value&&ge()}),r.onBeforeUnmount(()=>{Te()}),r.watch(Re,ce=>{ce?ge():Te()});const Xe={closeMenu:ie,isClosed:fe};let Le=!1;function ge(){ve(),i(Xe)}function ie(ce){Le=!0,_e("close",ce),re.value.menuTransitionProps||_e("closeAnimFinished"),l(Xe)}function fe(){return Le}function ve(){setTimeout(()=>{document.addEventListener("click",Nt,!0),document.addEventListener("contextmenu",Nt,!0),document.addEventListener("scroll",Ct,!0),!be.isFullScreenContainer&&Ee.value&&Ee.value.addEventListener("scroll",Ct,!0),re.value.keyboardControl!==!1&&document.addEventListener("keydown",Et)},50)}function Te(){document.removeEventListener("contextmenu",Nt,!0),document.removeEventListener("click",Nt,!0),document.removeEventListener("scroll",Ct,!0),!be.isFullScreenContainer&&Ee.value&&Ee.value.removeEventListener("scroll",Ct,!0),re.value.keyboardControl!==!1&&document.removeEventListener("keydown",Et)}const $e=r.ref();r.provide("globalSetCurrentSubMenu",ce=>$e.value=ce);function Et(ce){var Me,ct,nn,Vt,tt,ae,Ye,ne,Ae,Ve,We,Wt,Wn;let lo=!0;switch(ce.key){case"Escape":{((Me=$e.value)==null?void 0:Me.isTopLevel())===!1?(ct=$e.value)==null||ct.closeCurrentSubMenu():ie();break}case"ArrowDown":(nn=$e.value)==null||nn.moveCurrentItemDown();break;case"ArrowUp":(Vt=$e.value)==null||Vt.moveCurrentItemUp();break;case"Home":(tt=$e.value)==null||tt.moveCurrentItemFirst();break;case"End":(ae=$e.value)==null||ae.moveCurrentItemLast();break;case"ArrowLeft":{(Ye=$e.value)!=null&&Ye.closeSelfAndActiveParent()||(Ae=(ne=re.value).onKeyFocusMoveLeft)==null||Ae.call(ne);break}case"ArrowRight":(Ve=$e.value)!=null&&Ve.openCurrentItemSubMenu()||(Wt=(We=re.value).onKeyFocusMoveRight)==null||Wt.call(We);break;case"Enter":(Wn=$e.value)==null||Wn.triggerCurrentItemClick(ce);break;default:lo=!1;break}lo&&$e.value&&(ce.stopPropagation(),ce.preventDefault())}function Ct(){re.value.closeWhenScroll!==!1&&ie()}function Nt(ce){tn(ce.target)}function tn(ce){for(;ce;){if(ce.classList&&ce.classList.contains("mx-menu-host"))return;ce=ce.parentNode}re.value.clickCloseOnOutside!==!1&&(Te(),ie())}return r.provide("globalOptions",re.value),r.provide("globalCloseMenu",ie),r.provide("globalTheme",((K=re.value)==null?void 0:K.theme)||"light"),r.provide("globalIsFullScreenContainer",be.isFullScreenContainer),r.provide("globalClickCloseClassName",(Y=re.value)==null?void 0:Y.clickCloseClassName),r.provide("globalIgnoreClickClassName",(te=re.value)==null?void 0:te.ignoreClickClassName),r.provide("globalIconFontClass",((le=re.value)==null?void 0:le.iconFontClass)||"iconfont"),r.provide("globalMenuTransitionProps",(we=re.value)==null?void 0:we.menuTransitionProps),r.provide("globalHasSlot",ce=>V[ce]!==void 0),r.provide("globalRenderSlot",(ce,Me)=>r.renderSlot(V,ce,{...Me},()=>[r.h("span","Render slot failed")],!1)),r.provide("menuContext",{zIndex:re.value.zIndex||u.defaultZindex,container:Ee.value,adjustPadding:{x:0,y:0},getParentAbsY:()=>re.value.x,getParentAbsX:()=>re.value.y,getParentX:()=>0,getParentY:()=>0,getParentWidth:()=>0,getParentHeight:()=>0,getPositon:()=>[re.value.x,re.value.y],closeOtherSubMenuWithTimeOut:()=>{},checkCloseOtherSubMenuTimeOut:()=>!1,addOpenedSubMenu:()=>{},closeOtherSubMenu:()=>{},getParentContext:()=>null,getSubMenuInstanceContext:()=>null,getElement:()=>null,addChildMenuItem:()=>{},removeChildMenuItem:()=>{},markActiveMenuItem:()=>{},markThisOpenedByKeyBoard:()=>{},isOpenedByKeyBoardFlag:()=>!1,isMenuItemDataCollectedFlag:()=>!1}),S(Xe),(ce,Me)=>(r.openBlock(),r.createElementBlock("div",Q,[r.unref(re).menuTransitionProps?(r.openBlock(),r.createBlock(r.Transition,r.mergeProps({key:0,appear:""},r.unref(re).menuTransitionProps,{onAfterLeave:Me[0]||(Me[0]=ct=>_e("closeAnimFinished"))}),{default:r.withCtx(()=>[r.unref(Re)?(r.openBlock(),r.createBlock(U,{key:0,class:"mx-menu-host",items:r.unref(re).items,adjustPosition:r.unref(re).adjustPosition,maxWidth:r.unref(re).maxWidth||r.unref(u).defaultMaxWidth,minWidth:r.unref(re).minWidth||r.unref(u).defaultMinWidth,direction:r.unref(re).direction||r.unref(u).defaultDirection},{default:r.withCtx(()=>[r.renderSlot(ce.$slots,"default")]),_:3},8,["items","adjustPosition","maxWidth","minWidth","direction"])):r.createCommentVNode("",!0)]),_:3},16)):r.unref(Re)?(r.openBlock(),r.createBlock(U,{key:1,class:"mx-menu-host",items:r.unref(re).items,adjustPosition:r.unref(re).adjustPosition,maxWidth:r.unref(re).maxWidth||r.unref(u).defaultMaxWidth,minWidth:r.unref(re).minWidth||r.unref(u).defaultMinWidth,direction:r.unref(re).direction||r.unref(u).defaultDirection},{default:r.withCtx(()=>[r.renderSlot(ce.$slots,"default")]),_:3},8,["items","adjustPosition","maxWidth","minWidth","direction"])):r.createCommentVNode("",!0)]))}}),xe=r.defineComponent({name:"ContextMenu",emits:["update:show","close"],props:{options:{type:Object,default:null},show:{type:Boolean,default:!1}},setup(b,S){const{options:j,show:K}=r.toRefs(b);return S.expose({closeMenu:()=>S.emit("update:show",!1),isClosed:()=>!K.value}),()=>{const{isNew:Y,container:te,eleId:le}=x(j.value);return[r.h(r.Teleport,{to:`#${le}`},[r.h(pe,{options:j,show:K,container:te,isFullScreenContainer:!Y,onClose:we=>{var be,_e;S.emit("update:show",!1),S.emit("close"),(_e=(be=j.value).onClose)==null||_e.call(be,we)}},S.slots)])]}}}),h=r.defineComponent({name:"ContextMenuGroup",props:{disabled:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},clickHandler:{type:Function,default:null},label:{type:String,default:""},icon:{type:String,default:""},iconFontClass:{type:String,default:"iconfont"},checked:{type:Boolean,default:!1},shortcut:{type:String,default:""},svgIcon:{type:String,default:""},svgProps:{type:Object,default:null},preserveIconWidth:{type:Boolean,default:!0},showRightArrow:{type:Boolean,default:!1},clickClose:{type:Boolean,default:!0},adjustSubMenuPosition:{type:Boolean,default:void 0},maxWidth:{type:[String,Number],default:0},minWidth:{type:[String,Number],default:0}},setup(b,S){const j=r.inject("globalOptions"),{adjustSubMenuPosition:K,maxWidth:Y,minWidth:te}=r.toRefs(b),le=typeof K.value<"u"?K.value:j.adjustPosition;return()=>r.h(Ge,{...b,showRightArrow:!0,maxWidth:void 0,minWidth:void 0,adjustSubMenuPosition:void 0,hasChildren:typeof S.slots.default!==void 0},S.slots.default?{submenu:()=>r.h(U,{maxWidth:Y.value,minWidth:te.value,adjustPosition:le},{default:S.slots.default})}:void 0)}});function m(b,S,j,K){const Y=r.ref(!0),te=r.h(pe,{options:b,show:Y,container:S,isFullScreenContainer:!j,onCloseAnimFinished:()=>{r.render(null,S)},onClose:le=>{var we;(we=b.onClose)==null||we.call(b,le),Y.value=!1}},K);return r.render(te,S),te.component}function E(b,S){const j=x(b);return m(b,j.container,j.isNew,S).exposed}const M={install(b){b.config.globalProperties.$contextmenu=E,b.component("ContextMenu",xe),b.component("ContextMenuItem",Ge),b.component("ContextMenuGroup",h),b.component("ContextMenuSperator",wt),b.component("ContextMenuSeparator",wt),b.component("ContextSubMenu",U)},showContextMenu(b,S){return E(b,S)},isAnyContextMenuOpen(){return s()},closeContextMenu:a,transformMenuPosition:d},P={},$={class:"mx-menu-bar-icon-menu",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"},q=[r.createElementVNode("path",{d:"M133.310936 296.552327l757.206115 0c19.781623 0 35.950949-16.169326 35.950949-35.950949 0-19.781623-15.997312-35.950949-35.950949-35.950949L133.310936 224.650428c-19.781623 0-35.950949 16.169326-35.950949 35.950949C97.359987 280.383 113.529313 296.552327 133.310936 296.552327z"},null,-1),r.createElementVNode("path",{d:"M890.51705 476.135058 133.310936 476.135058c-19.781623 0-35.950949 16.169326-35.950949 35.950949 0 19.781623 16.169326 35.950949 35.950949 35.950949l757.206115 0c19.781623 0 35.950949-16.169326 35.950949-35.950949C926.467999 492.304384 910.298673 476.135058 890.51705 476.135058z"},null,-1),r.createElementVNode("path",{d:"M890.51705 727.447673 133.310936 727.447673c-19.781623 0-35.950949 15.997312-35.950949 35.950949s16.169326 35.950949 35.950949 35.950949l757.206115 0c19.781623 0 35.950949-15.997312 35.950949-35.950949S910.298673 727.447673 890.51705 727.447673z"},null,-1)];function F(b,S){return r.openBlock(),r.createElementBlock("svg",$,q)}const D=y(P,[["render",F]]),L=["onClick","onMouseenter"],G=r.defineComponent({__name:"MenuBar",props:{options:{type:Object,default:null}},setup(b){const S=b,j=r.ref(),K=r.ref(!1),Y=r.ref([]),te=r.ref(null);function le(){K.value=!0}function we(){K.value=!1}r.onMounted(()=>{Y.value=S.options.items||[]}),r.watch(()=>S.options,()=>{Y.value=S.options.items||[]});let be=null,_e=-1;function V(){_e0?_e--:_e=Y.value.length-1,Ee(_e,Y.value[_e])}function Re(ie){const fe=S.options.barPopDirection??"bl";let ve=0,Te=0;return fe.startsWith("b")?Te=c(ie)+ie.offsetHeight:fe.startsWith("t")?Te=c(ie):Te=c(ie)+ie.offsetHeight/2,fe.endsWith("l")?ve=f(ie):fe.startsWith("r")?ve=f(ie)+ie.offsetWidth:ve=f(ie)+ie.offsetWidth/2,{x:ve,y:Te}}function Ee(ie,fe){var ve;if(_e=ie,!fe.children)return;be&&(be.closeMenu(),be=null,K.value=!0),te.value=fe;const Te=(ve=j.value)==null?void 0:ve.children[ie];if(Te){const{x:$e,y:Et}=Re(Te);be=M.showContextMenu({...S.options,items:fe.children,x:$e,y:Et,onKeyFocusMoveLeft(){re()},onKeyFocusMoveRight(){V()},onClose(){te.value==fe&&(K.value=!1,te.value=null)}})}}function Xe(){_e=0;const ie=j.value;if(ie){const{x:fe,y:ve}=Re(ie);be=M.showContextMenu({...S.options,x:fe,y:ve})}}function Le(ie,fe){fe?(K.value=!0,Ee(ie,fe),fe.onClick&&(fe.clickableWhenHasChildren===!0&&fe.children&&fe.children.length>0||!fe.children||fe.children.length===0)&&fe.onClick()):Xe()}function ge(ie,fe){K.value&&Ee(ie,fe)}return(ie,fe)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["mx-menu-bar",b.options.theme??"",b.options.mini?"mini":""]),onFocus:le,onBlur:we},[r.renderSlot(ie.$slots,"prefix"),b.options.mini?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"menuBarContent",ref:j,class:"mx-menu-bar-content"},[r.createElementVNode("div",{class:"mx-menu-bar-item",onClick:fe[0]||(fe[0]=ve=>Le(0,null))},[r.createVNode(D)])],512)):(r.openBlock(),r.createElementBlock("div",{key:1,ref_key:"menuBarContent",ref:j,class:"mx-menu-bar-content"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Y.value,(ve,Te)=>(r.openBlock(),r.createElementBlock("div",{key:Te,class:r.normalizeClass(["mx-menu-bar-item",ve==te.value?"active":""]),onClick:$e=>Le(Te,ve),onMouseenter:$e=>ge(Te,ve)},r.toDisplayString(ve.label),43,L))),128))],512)),r.renderSlot(ie.$slots,"suffix")],34))}});n.ContextMenu=xe,n.ContextMenuGroup=h,n.ContextMenuItem=Ge,n.ContextMenuSeparator=wt,n.MenuBar=G,n.default=M,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(zi,zi.exports);var V0=zi.exports;const W0=$0(V0),K0=Dt(e=>{e.vueApp.use(W0)}),q0=[Ab,Mb,O0,M0,N0,L0,H0,B0,j0,K0],z0=Ft({props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const o in e.route)Object.defineProperty(r,o,{get:()=>t===e.renderKey?e.route[o]:n[o]});return _n(ro,dr(r)),()=>lt(e.vnode,{ref:e.vnodeRef})}}),G0=Ft({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,expose:n}){const r=He(),o=mt(),s=ze(ro,null);let i;n({pageRef:o});const l=ze(Nf,null);let a;const u=r.deferHydration();if(r.isHydrating){const c=r.hooks.hookOnce("app:error",u);Ot().beforeEach(c)}return e.pageKey&&bn(()=>e.pageKey,(c,f)=>{c!==f&&r.callHook("page:loading:start")}),()=>lt(rd,{name:e.name,route:e.route,...t},{default:c=>{const f=X0(s,c.route,c.Component),d=s&&s.matched.length===c.route.matched.length;if(!c.Component){if(a&&!d)return a;u();return}if(a&&l&&!l.isCurrent(c.route))return a;if(f&&s&&(!l||l!=null&&l.isCurrent(s)))return d?a:null;const p=ji(c,e.pageKey);!r.isHydrating&&!Y0(s,c.route,c.Component)&&i===p&&r.callHook("page:loading:end"),i=p;const g=!!(e.transition??c.route.meta.pageTransition??Ii),_=g&&J0([e.transition,c.route.meta.pageTransition,Ii,{onAfterLeave:()=>{r.callHook("page:transition:finish",c.Component)}}].filter(Boolean)),x=e.keepalive??c.route.meta.keepalive??Cb;return a=od(eo,g&&_,B_(x,lt(ls,{suspensible:!0,onPending:()=>r.callHook("page:start",c.Component),onResolve:()=>{At(()=>r.callHook("page:finish",c.Component).then(()=>r.callHook("page:loading:end")).finally(u))}},{default:()=>{const R=lt(z0,{key:p||void 0,vnode:c.Component,route:c.route,renderKey:p||void 0,trackRootNodes:g,vnodeRef:o});return x&&(R.type.name=c.Component.type.name||c.Component.type.__name||"RouteProvider"),R}}))).default(),a}})}});function J0(e){const t=e.map(n=>({...n,onAfterLeave:n.onAfterLeave?Hl(n.onAfterLeave):void 0}));return Of(...t)}function X0(e,t,n){if(!e)return!1;const r=t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((o,s)=>{var i,l,a;return((i=o.components)==null?void 0:i.default)!==((a=(l=e.matched[s])==null?void 0:l.components)==null?void 0:a.default)})||n&&ji({route:t,Component:n})!==ji({route:e,Component:n})}function Y0(e,t,n){return e?t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(n==null?void 0:n.type)})r.default||r);return()=>lt(n,e.layoutProps,t.slots)}}),Z0=Ft({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(e,t){const n=He(),r=ze(ro),o=r===Ol()?L_():r,s=Ze(()=>{let a=Pe(e.name)??o.meta.layout??"default";return a&&!(a in gn)&&e.fallback&&(a=Pe(e.fallback)),a}),i=mt();t.expose({layoutRef:i});const l=n.deferHydration();if(n.isHydrating){const a=n.hooks.hookOnce("app:error",l);Ot().beforeEach(a)}return()=>{const a=s.value&&s.value in gn,u=o.meta.layoutTransition??Eb;return od(eo,a&&u,{default:()=>lt(ls,{suspensible:!0,onResolve:()=>{At(l)}},{default:()=>lt(ew,{layoutProps:Cl(t.attrs,{ref:i}),key:s.value||void 0,name:s.value,shouldProvide:!e.name,hasTransition:!!u},t.slots)})}).default()}}}),ew=Ft({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(e,t){const n=e.name;return e.shouldProvide&&_n(Nf,{isCurrent:r=>n===(r.meta.layout??"default")}),()=>{var r,o;return!n||typeof n=="string"&&!(n in gn)?(o=(r=t.slots).default)==null?void 0:o.call(r):lt(Q0,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}}),tw=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},nw={};function rw(e,t){const n=G0,r=Z0;return Rt(),Ht(r,null,{default:Jr(()=>[Oe(n)]),_:1})}const ow=tw(nw,[["render",rw]]),sw={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;(n.stack||"").split(` `).splice(1).map(f=>({text:f.replace("webpack:/","").replace(".vue",".js").trim(),internal:f.includes("node_modules")&&!f.includes(".cache")||f.includes("internal")||f.includes("new Promise")})).map(f=>`${f.text}`).join(` -`);const r=Number(n.statusCode||500),o=r===404,s=n.statusMessage??(o?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),l=void 0,c=o?si(()=>Gt(()=>import("./error-404.Bs6kZf8Q.js"),__vite__mapDeps([12,3,13,14]),import.meta.url).then(f=>f.default||f)):si(()=>Gt(()=>import("./error-500.BXXFiEt_.js"),__vite__mapDeps([15,13,16]),import.meta.url).then(f=>f.default||f));return(f,d)=>(Rt(),Ht(Pe(c),Mc(vl({statusCode:Pe(r),statusMessage:Pe(s),description:Pe(i),stack:Pe(l)})),null,16))}},xc={__name:"nuxt-root",setup(e){const t=()=>null,n=He(),r=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",r);Ot().beforeEach(l)}const o=!1;_n(ro,Ol()),n.hooks.callHookWith(l=>l.map(a=>a()),"vue:setup");const s=_s();ml((l,a,u)=>{if(n.hooks.callHook("vue:error",l,a,u).catch(c=>console.error("[nuxt] Error in `vue:error` hook",c)),ky(l)&&(l.fatal||l.unhandled))return n.runWithContext(()=>Gn(l)),!1});const i=!1;return(l,a)=>(Rt(),Ht(ls,{onResolve:Pe(r)},{default:Jr(()=>[Pe(s)?(Rt(),Ht(Pe(sw),{key:0,error:Pe(s)},null,8,["error"])):Pe(i)?(Rt(),Ht(Pe(t),{key:1,context:Pe(i)},null,8,["context"])):Pe(o)?(Rt(),Ht(au(Pe(o)),{key:2})):(Rt(),Ht(Pe(ow),{key:3}))]),_:1},8,["onResolve"]))}};let Tc;{let e;Tc=async function(){var i,l;if(e)return e;const r=!!((i=window.__NUXT__)!=null&&i.serverRendered||((l=document.getElementById("__NUXT_DATA__"))==null?void 0:l.dataset.ssr)==="true")?yf(xc):gf(xc),o=uy({vueApp:r});async function s(a){await o.callHook("app:error",a),o.payload.error=o.payload.error||vs(a)}r.config.errorHandler=s;try{await dy(o,q0)}catch(a){s(a)}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(Sb),await o.hooks.callHook("app:mounted",r),await At()}catch(a){s(a)}return r.config.errorHandler===s&&(r.config.errorHandler=void 0),r},e=Tc().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{ys as $,Be as A,Zc as B,cp as C,Ht as D,Yp as E,qe as F,Qr as G,Ze as H,At as I,qr as J,tg as K,Zm as L,V0 as M,_0 as N,bu as O,tf as P,Od as Q,Ot as R,fp as S,to as T,Nd as U,kc as V,aw as W,lt as X,Jh as Y,no as Z,tw as _,_l as a,gg as a0,lw as a1,bs as a2,He as a3,Sy as a4,Si as a5,Tl as a6,Oe as b,zp as c,wl as d,Uh as e,rp as f,Oi as g,bn as h,iw as i,$t as j,fs as k,vu as l,_u as m,E0 as n,Rt as o,Dh as p,Tt as q,mt as r,Ft as s,Zd as t,S0 as u,zr as v,Jr as w,sp as x,Vo as y,Pe as z}; +`);const r=Number(n.statusCode||500),o=r===404,s=n.statusMessage??(o?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),l=void 0,c=o?si(()=>Gt(()=>import("./error-404.DF807Tnt.js"),__vite__mapDeps([12,3,13,14]),import.meta.url).then(f=>f.default||f)):si(()=>Gt(()=>import("./error-500.m1YMJCX4.js"),__vite__mapDeps([15,13,16]),import.meta.url).then(f=>f.default||f));return(f,d)=>(Rt(),Ht(Pe(c),Mc(vl({statusCode:Pe(r),statusMessage:Pe(s),description:Pe(i),stack:Pe(l)})),null,16))}},xc={__name:"nuxt-root",setup(e){const t=()=>null,n=He(),r=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",r);Ot().beforeEach(l)}const o=!1;_n(ro,Ol()),n.hooks.callHookWith(l=>l.map(a=>a()),"vue:setup");const s=_s();ml((l,a,u)=>{if(n.hooks.callHook("vue:error",l,a,u).catch(c=>console.error("[nuxt] Error in `vue:error` hook",c)),ky(l)&&(l.fatal||l.unhandled))return n.runWithContext(()=>Gn(l)),!1});const i=!1;return(l,a)=>(Rt(),Ht(ls,{onResolve:Pe(r)},{default:Jr(()=>[Pe(s)?(Rt(),Ht(Pe(sw),{key:0,error:Pe(s)},null,8,["error"])):Pe(i)?(Rt(),Ht(Pe(t),{key:1,context:Pe(i)},null,8,["context"])):Pe(o)?(Rt(),Ht(au(Pe(o)),{key:2})):(Rt(),Ht(Pe(ow),{key:3}))]),_:1},8,["onResolve"]))}};let Tc;{let e;Tc=async function(){var i,l;if(e)return e;const r=!!((i=window.__NUXT__)!=null&&i.serverRendered||((l=document.getElementById("__NUXT_DATA__"))==null?void 0:l.dataset.ssr)==="true")?yf(xc):gf(xc),o=uy({vueApp:r});async function s(a){await o.callHook("app:error",a),o.payload.error=o.payload.error||vs(a)}r.config.errorHandler=s;try{await dy(o,q0)}catch(a){s(a)}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(Sb),await o.hooks.callHook("app:mounted",r),await At()}catch(a){s(a)}return r.config.errorHandler===s&&(r.config.errorHandler=void 0),r},e=Tc().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{ys as $,Be as A,Zc as B,cp as C,Ht as D,Yp as E,qe as F,Qr as G,Ze as H,At as I,qr as J,tg as K,Zm as L,V0 as M,_0 as N,bu as O,tf as P,Od as Q,Ot as R,fp as S,to as T,Nd as U,kc as V,aw as W,lt as X,Jh as Y,no as Z,tw as _,_l as a,gg as a0,lw as a1,bs as a2,He as a3,Sy as a4,Si as a5,Tl as a6,Oe as b,zp as c,wl as d,Uh as e,rp as f,Oi as g,bn as h,iw as i,$t as j,fs as k,vu as l,_u as m,E0 as n,Rt as o,Dh as p,Tt as q,mt as r,Ft as s,Zd as t,S0 as u,zr as v,Jr as w,sp as x,Vo as y,Pe as z}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["./index._scJnMP6.js","./index.BCJtRfHW.css","./login.CSVNeue6.js","./nuxt-link.CC9b3Q5E.js","./login.C3a4NQis.css","./register.Dk73nCdI.js","./register.B1h1fWIv.css","./default.BtqJ2PtA.js","./default.B3TUr3A8.css","./_nullstyle.BBDyL2jw.css","./messaging.CfaYSvRm.js","./messaging.BIwQx5Vw.css","./error-404.Bs6kZf8Q.js","./vue.f36acd1f.DaM6ovJN.js","./error-404.CoUbADi5.css","./error-500.BXXFiEt_.js","./error-500.BXQ_YkC0.css"] + __vite__mapDeps.viteFileDeps = ["./index.CVTfO2Hz.js","./index.BCJtRfHW.css","./login.Cfry8RGN.js","./nuxt-link.C5ztXXDi.js","./login.C3a4NQis.css","./register.B2P9PNR6.js","./register.B1h1fWIv.css","./default.DPO3LuHh.js","./default.B3TUr3A8.css","./_nullstyle.BBDyL2jw.css","./messaging.C41G1zUO.js","./messaging.BIwQx5Vw.css","./error-404.DF807Tnt.js","./vue.f36acd1f.BXEiIuW0.js","./error-404.CoUbADi5.css","./error-500.m1YMJCX4.js","./error-500.BXQ_YkC0.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/nuxt/error-404.Bs6kZf8Q.js b/nuxt/error-404.DF807Tnt.js similarity index 91% rename from nuxt/error-404.Bs6kZf8Q.js rename to nuxt/error-404.DF807Tnt.js index 2b9f403..a3c48fb 100644 --- a/nuxt/error-404.Bs6kZf8Q.js +++ b/nuxt/error-404.DF807Tnt.js @@ -1 +1 @@ -import{_ as a}from"./nuxt-link.CC9b3Q5E.js";import{u as n}from"./vue.f36acd1f.DaM6ovJN.js";import{_ as r,o as d,c as l,a as e,t as s,b as c,w as p,d as m,p as f,e as h}from"./entry.BaaUaxo-.js";const x=t=>(f("data-v-ccd3db62"),t=t(),h(),t),u={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},g=x(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),b={class:"max-w-520px text-center z-20"},_=["textContent"],w=["textContent"],y={class:"w-full flex items-center justify-center"},S={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const o=t;return n({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(k,N)=>{const i=a;return d(),l("div",u,[g,e("div",b,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,_),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,w),e("div",y,[c(i,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:p(()=>[m(s(t.backHome),1)]),_:1})])])])}}},I=r(S,[["__scopeId","data-v-ccd3db62"]]);export{I as default}; +import{_ as a}from"./nuxt-link.C5ztXXDi.js";import{u as n}from"./vue.f36acd1f.BXEiIuW0.js";import{_ as r,o as d,c as l,a as e,t as s,b as c,w as p,d as m,p as f,e as h}from"./entry.DNkX-rFi.js";const x=t=>(f("data-v-ccd3db62"),t=t(),h(),t),u={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},g=x(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),b={class:"max-w-520px text-center z-20"},_=["textContent"],w=["textContent"],y={class:"w-full flex items-center justify-center"},S={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const o=t;return n({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(k,N)=>{const i=a;return d(),l("div",u,[g,e("div",b,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,_),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,w),e("div",y,[c(i,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:p(()=>[m(s(t.backHome),1)]),_:1})])])])}}},I=r(S,[["__scopeId","data-v-ccd3db62"]]);export{I as default}; diff --git a/nuxt/error-500.BXXFiEt_.js b/nuxt/error-500.m1YMJCX4.js similarity index 93% rename from nuxt/error-500.BXXFiEt_.js rename to nuxt/error-500.m1YMJCX4.js index b9ea32f..7994b7a 100644 --- a/nuxt/error-500.BXXFiEt_.js +++ b/nuxt/error-500.m1YMJCX4.js @@ -1 +1 @@ -import{u as i}from"./vue.f36acd1f.DaM6ovJN.js";import{_ as a,o as r,c as n,a as e,t as s,p as l,e as d}from"./entry.BaaUaxo-.js";const c=t=>(l("data-v-df79c84d"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},f=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},m=["textContent"],g=["textContent"],x={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const o=t;return i({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(b,u)=>(r(),n("div",p,[f,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,m),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,g)])]))}},y=a(x,[["__scopeId","data-v-df79c84d"]]);export{y as default}; +import{u as i}from"./vue.f36acd1f.BXEiIuW0.js";import{_ as a,o as r,c as n,a as e,t as s,p as l,e as d}from"./entry.DNkX-rFi.js";const c=t=>(l("data-v-df79c84d"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},f=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},m=["textContent"],g=["textContent"],x={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const o=t;return i({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(b,u)=>(r(),n("div",p,[f,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,m),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,g)])]))}},y=a(x,[["__scopeId","data-v-df79c84d"]]);export{y as default}; diff --git a/nuxt/index._scJnMP6.js b/nuxt/index.CVTfO2Hz.js similarity index 99% rename from nuxt/index._scJnMP6.js rename to nuxt/index.CVTfO2Hz.js index 79500d1..ffa0ee8 100644 --- a/nuxt/index._scJnMP6.js +++ b/nuxt/index.CVTfO2Hz.js @@ -1 +1 @@ -var st=Object.defineProperty;var nt=(n,e,t)=>e in n?st(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var C=(n,e,t)=>(nt(n,typeof e!="symbol"?e+"":e,t),t);import{n as N,q as ue,s as I,u as we,r as _,o as v,c as b,a as p,v as l,x as ne,y as fe,z as f,A as ie,_ as D,B as j,F as _e,C as be,t as q,D as F,E as O,G as oe,H as re,I as Y,h as Fe,J as it,K as rt,L as ot,d as at,b as K,w as ct,M as ce,N as ht,O as lt,P as ut}from"./entry.BaaUaxo-.js";function ft(n,e,t){return n.author.id===t.id?"author":e.ownerId==t.id?"owner":"viewer"}async function dt(n,e,t){const r=(await N(t).post(`/chats/${e.id}/messages`,n,{headers:{"Content-Type":"text/plain"}})).data;return ke(r,e,t)}async function pt(n,e,t){await N(t).delete(`/chats/${e.id}/messages/${n.id}`)}async function yt(n,e,t,s){await N(s).put(`/chats/${t.id}/messages/${e.id}`,n,{headers:{"Content-Type":"text/plain"}})}function ke(n,e,t){return{...n,privileges:ft(n,e,t)}}class mt{constructor(e,t){C(this,"chat");C(this,"user");C(this,"history",[]);C(this,"upFilled",!1);C(this,"downFilled",!1);C(this,"loading",null);C(this,"pushedMessages",new Set);C(this,"messageSendId",-1);C(this,"newMessageId",ue({id:0}));C(this,"idToMessage",{});this.chat=e,this.user=t}async loadHistory(e){this.loading||(this.loading=this._LoadHistory(e)),await this.loading,this.loading=null}async _LoadHistory(e){const t=N(this.user);if(!e)if(this.history.length===0)e={loadDirection:"up",loadAmount:250};else{for(this.downFilled=!1;!this.downFilled;)await this.loadHistory({loadDirection:"down",loadAmount:1e3});return}if(e.loadDirection=="up"&&this.upFilled||e.loadDirection=="down"&&this.downFilled)return;const s=e.loadAmount,i=e.loadDirection=="up"?this.getUpMessageIndex():this.getDownMessageIndex(),r=e.loadDirection=="up"?1:-1,h=(await t.get(`/chats/${this.chat.id}/messages?limit=${s}&startIdx=${i}&loadDirection=${r}`)).data;h.reverse();const c=h.map(u=>ke(u,this.chat,this.user));if(e.loadDirection=="up"){if(c.length=this.history[0].id;)c.pop();else this.downFilled=!0;this.history.unshift(...c);for(const u of c)this.idToMessage[u.id]=u}else{c.lengththis.history.length?this.upFilled?!1:(await this.loadHistory({loadDirection:"up",loadAmount:100}),!0):!0}getDownMessageIndex(){return this.history.length!=0?this.history[this.history.length-1].id:-1}getUpMessageIndex(){return this.history.length!=0?this.history[0].id:-1}isUpFilled(){return this.upFilled}markNewId(e){return this.pushedMessages.has(e)?!1:(this.pushedMessages.add(e),!0)}newMessage(e){this.markNewId(e.id)&&this.history.push(e),this.newMessageId.id=e.id,this.idToMessage[e.id]=e}async sendMessage(e){if(e=e.trim(),!e)return;const t=ue({id:this.messageSendId--,author:this.user,content:e,created_at:"now",privileges:"author",state:"pending"});this.newMessage(t);try{const s=await dt(e,this.chat,this.user);if(!this.markNewId(s.id)){console.log("too long"),t.state="hidden";return}for(const i in t)t[i]=s[i]}catch{t.state="postingError"}return t}messageFromId(e){return this.idToMessage[e]}}class Ce{constructor(e,t){C(this,"id");C(this,"name");C(this,"icon");C(this,"createdAt");C(this,"updatedAt");C(this,"ownerId");C(this,"chatHistory");C(this,"user");C(this,"isOwner");C(this,"invites");this.id=e.id,this.name=e.name,this.icon=e.icon,this.createdAt=e.createdAt,this.updatedAt=e.updatedAt,this.ownerId=e.owner_id,this.user=t,this.chatHistory=new mt(this,t),this.isOwner=this.user.id==this.ownerId}async loadInvites(){if(!this.isOwner)return;const s=(await N(this.user).get(`/chats/${this.id}/invites`)).data;return this.invites=s,s}async getInvites(){return this.invites?this.invites:this.loadInvites()}async createInvite(){var i;const s=(await N(this.user).post(`/chats/${this.id}/invites`)).data;return(i=this.invites)==null||i.push(s),s}}async function gt(n){const i=(await N(n).get("/chats")).data.map(o=>new Ce(o,n)),r={};for(const o of i)r[o.id]=o;return r}async function vt(n,e){const i=(await N(e).post("/chats",n)).data;return new Ce(i,e)}async function wt(n,e){const t=N(e),s=n,r=(await t.post(`/chats/invites/${s}/join`)).data;return new Ce(r.chat,e)}const _t=p("h1",null,"Create chat",-1),bt=p("h3",null,"Enter chat name:",-1),kt=p("h2",null,"Or join existing one:",-1),Ct=p("h3",null,"Enter invite link:",-1),Et=I({__name:"ChatCreateComponent",emits:["close","chatCreated"],setup(n,{emit:e}){const s=we().readyUser,i=e,r=_(""),o=_(""),h=_(!1);async function c(){if(!h.value)try{const a=r.value.trim();if(!a)return alert("Chat name cannot be null");const k=await vt({name:a},s.value);i("chatCreated",k),h.value=!0,i("close")}catch(a){a instanceof Error&&alert(a.message)}}async function u(){if(!h.value)try{if(!o.value)return alert("Invite link cannot be null");const a=await wt(o.value,s.value);i("chatCreated",a),h.value=!0,i("close")}catch(a){a instanceof Error&&alert(a.message)}}return(a,y)=>(v(),b("div",{class:l(a.$style.mask)},[p("div",{class:l(a.$style.window)},[p("div",{class:l(a.$style.chatCreation)},[_t,p("div",{class:l(a.$style.inputField)},[bt,ne(p("input",{class:l(a.$style.inputName),"onUpdate:modelValue":y[0]||(y[0]=k=>ie(r)?r.value=k:null)},null,2),[[fe,f(r)]])],2),p("div",{class:l(a.$style.actions)},[p("div",{class:l(a.$style.submitButton),onClick:c},"Create",2),p("div",{class:l(a.$style.close),onClick:y[1]||(y[1]=k=>i("close"))},"Close",2)],2)],2),p("div",{class:l(a.$style.chatJoin)},[kt,p("div",{class:l(a.$style.inputField)},[Ct,ne(p("input",{class:l(a.$style.inputName),"onUpdate:modelValue":y[2]||(y[2]=k=>ie(o)?o.value=k:null)},null,2),[[fe,f(o)]])],2),p("div",{class:l(a.$style.actions)},[p("div",{class:l(a.$style.submitButton),onClick:u},"Join",2)],2)],2)],2)],2))}}),At="_window_rabcw_1",Tt="_actions_rabcw_1",St="_submitButton_rabcw_1",Bt="_close_rabcw_16",$t="_mask_rabcw_31",Rt="_inputField_rabcw_58",Mt={window:At,actions:Tt,submitButton:St,close:Bt,mask:$t,inputField:Rt},Ot={$style:Mt},Lt=D(Et,[["__cssModules",Ot]]),Nt=["onClick"],It=I({__name:"ChatListComponent",props:{chatList:{},activeChat:{}},emits:["chatSelected"],setup(n,{emit:e}){const t=n,{chatList:s}=j(t),i=e,r=_();function o(h){s.value[h.id]=h,i("chatSelected",h)}return(h,c)=>{const u=Lt;return v(),b("div",{class:l(h.$style.chatList)},[p("div",null,[(v(!0),b(_e,null,be(f(s),a=>{var y;return v(),b("div",{class:l([h.$style.chatUnit,((y=h.activeChat)==null?void 0:y.id)==a.id?h.$style.activeChat:void 0]),key:a.id,onClick:()=>i("chatSelected",a)},q(a.name),11,Nt)}),128)),p("div",{class:l(h.$style.createChat),onClick:c[0]||(c[0]=a=>r.value=!0)}," Create Chat ",2),f(r)?(v(),F(u,{key:0,onClose:c[1]||(c[1]=a=>r.value=!1),onChatCreated:o})):O("",!0)])],2)}}}),xt="_chatList_a435w_1",qt="_chatUnit_a435w_11",Dt="_activeChat_a435w_20",Pt="_createChat_a435w_26",Ft={chatList:xt,chatUnit:qt,activeChat:Dt,createChat:Pt},Ht={$style:Ft},Ut=D(It,[["__cssModules",Ht]]),Vt=I({__name:"ChatInfoComponent",props:{chat:{}},emits:["close"],setup(n,{emit:e}){const t=n,{chat:s}=j(t),i=e,r=_(),o=_(!1);oe(async()=>{o.value=!0;try{r.value=await s.value.loadInvites()}catch{console.error("Unable to load invites")}finally{o.value=!1}});async function h(){await s.value.createInvite()}return(c,u)=>(v(),b("div",{class:l(c.$style.mask)},[p("div",{class:l(c.$style.window)},[p("div",{class:l(c.$style.head)},[p("h1",{class:l(c.$style.chatName)},q(f(s).name),3),p("div",{class:l(c.$style.closeButton),onClick:u[0]||(u[0]=a=>i("close"))},"Close",2)],2),f(s).isOwner?(v(),b("div",{key:0,class:l(c.$style.invitesStore)},[p("h2",{class:l(c.$style.invitesHead)},"Chat invites",2),p("div",{class:l(c.$style.invitesList)},[(v(!0),b(_e,null,be(f(r),a=>(v(),b("div",{class:l(c.$style.inviteRecord),key:a.id},q(a.code),3))),128))],2),p("div",{class:l(c.$style.createInviteButton),onClick:h}," Create invite ",2)],2)):O("",!0)],2)],2))}}),Wt="_window_1lkhn_1",zt="_invitesStore_1lkhn_1",Kt="_createInviteButton_1lkhn_1",Jt="_head_1lkhn_16",Yt="_closeButton_1lkhn_16",jt="_mask_1lkhn_31",Xt={window:Wt,invitesStore:zt,createInviteButton:Kt,head:Jt,closeButton:Yt,mask:jt},Qt={$style:Xt},Gt=D(Vt,[["__cssModules",Qt]]),Zt=200,es=I({__name:"SendMessageComponent",emits:["sendMessage","editMessage"],setup(n,{expose:e,emit:t}){const s=_(""),i=_(!1),r=_(),o=re(()=>i.value),h=t,c=_(),u=_(19);function a(){c.value&&(c.value.style.height="0",u.value=Math.min(c.value.scrollHeight,Zt),c.value.style.height=u.value+"px")}oe(()=>Y(a)),Fe(s,()=>Y(a));function y(){c.value&&c.value.focus()}function k(A){s.value=A.content,i.value=!0,r.value=A,y()}e({messageEditFlow:k,focusToTextarea:y});function P(){i.value?(i.value=!1,r.value&&h("editMessage",s.value,r.value)):h("sendMessage",s.value),s.value=""}return(A,w)=>(v(),b("div",{class:l(A.$style.sendMessage),onClick:y},[f(o)?(v(),b("div",{key:0,class:l(A.$style.senderInfo)},[f(i)?(v(),b("div",{key:0,class:l([A.$style.editingMessage,A.$style.messagedInfo])},[p("p",{class:l(A.$style.infoText)},"Editing message",2),p("div",{class:l(A.$style.closeInfo),onClick:w[0]||(w[0]=g=>{i.value=!1,s.value=""})}," CLOSE ",2)],2)):O("",!0)],2)):O("",!0),p("div",{class:l(A.$style.messagePrompt)},[p("div",{class:l(A.$style.messageContentWrapper)},[ne(p("textarea",{class:l(A.$style.messageContent),style:it({height:f(u)+"px"}),"onUpdate:modelValue":w[1]||(w[1]=g=>ie(s)?s.value=g:null),ref_key:"textareaField",ref:c,onKeypress:w[2]||(w[2]=rt(ot(g=>{g.preventDefault(),P()},["exact"]),["enter"]))},null,38),[[fe,f(s)]])],2),p("div",{class:l(A.$style.messageSendButton),onClick:P},"Send",2)],2)],2))}}),ts="_sendMessage_fq4qj_1",ss="_senderInfo_fq4qj_9",ns="_messagedInfo_fq4qj_15",is="_closeInfo_fq4qj_25",rs="_messagePrompt_fq4qj_32",os="_messageContentWrapper_fq4qj_36",as="_messageContent_fq4qj_36",cs="_messageSendButton_fq4qj_50",hs={sendMessage:ts,senderInfo:ss,messagedInfo:ns,closeInfo:is,messagePrompt:rs,messageContentWrapper:os,messageContent:as,messageSendButton:cs},ls={$style:hs},us=D(es,[["__cssModules",ls]]),fs=I({__name:"MessageComponent",props:{message:{}},emits:["deleteMessage","editMessage"],setup(n,{emit:e}){const t=n,s=e,{message:i}=j(t),r=_(!1),o=_({x:0,y:0,theme:"dark"});function h(a){a.preventDefault(),o.value={zIndex:1e3,x:a.x,y:a.y},r.value=!0}function c(){s("deleteMessage",i.value)}function u(){s("editMessage",i.value)}return(a,y)=>(v(),b("div",{class:l(a.$style.message),onContextmenu:h},[p("div",{class:l(a.$style.messageAuthor)},q(f(i).author.username),3),p("div",{class:l(a.$style.messageContent)},q(f(i).content),3),p("div",{class:l(a.$style.timestamps)},[at(q(f(i).created_at)+" "+q(f(i).updated_at?"(updated)":"")+" ",1),f(i).state=="postingError"?(v(),b("div",{key:0,class:l(a.$style.postingError)}," sending error ",2)):O("",!0),f(i).state=="pending"?(v(),b("div",{key:1,class:l(a.$style.pending)}," pending... ",2)):O("",!0)],2),K(f(ce.ContextMenu),{show:f(r),"onUpdate:show":y[0]||(y[0]=k=>ie(r)?r.value=k:null),options:f(o)},{default:ct(()=>[K(f(ce.ContextMenuItem),{label:"Delete message",onClick:c,class:l(a.$style.menuLabel)},null,8,["class"]),K(f(ce.ContextMenuItem),{label:"Edit message",onClick:u,class:l(a.$style.menuLabel)},null,8,["class"])]),_:1},8,["show","options"])],34))}}),ds="_message_1rrmw_1",ps="_messageContent_1rrmw_10",ys="_timestamps_1rrmw_16",ms="_postingError_1rrmw_26",gs="_menuLabel_1rrmw_30",vs={message:ds,messageContent:ps,timestamps:ys,postingError:ms,menuLabel:gs},ws={$style:vs},_s=D(fs,[["__cssModules",ws]]),bs=I({__name:"ChatHistoryComponent",props:{messageHistory:{}},emits:["deleteMessage","editMessage"],setup(n,{expose:e,emit:t}){const s=n,{messageHistory:i}=j(s),r=_(50),o=ue({start:0,size:r.value/2});function h(d){const B=d.scrollHeight,T=d.scrollTop,S=d.offsetHeight;return S==0||Math.abs(T-(B-S))<10}function c(d){return d.scrollTop==0}async function u(d,B=o.size,T){const S=i.value.history.length;let V=T?c(T)?100:h(T)?T.scrollTop-500:-1:-1;d<0?d=0:S-(d+B)<=0&&(await i.value.shiftWindow(d,B)?await P():(d=Math.max(S-B,0),V=-1)),d==0&&V!=100&&(V=-1),V!=-1&&T&&(T.scrollTop=V),o.start=d,o.size=B}const a=_(),y=_(),k=_(1);async function P(){if(k.value++,!a.value)return;const d=a.value.scrollHeight,B=a.value.scrollTop;let T=o.start,S=o.size;B4*d/5&&T!=0&&(T-=r.value/4|0),u(T,S,a.value)}const A=re(()=>{const d=i.value.history.length,B=d-(o.start+o.size),T=d-o.start;return i.value.history.slice(B,T).filter(S=>S.state!="hidden")});function w(d=!1){a.value&&a.value.scrollTo({top:a.value.scrollHeight,behavior:d?"smooth":"instant"})}async function g(d=!1){await u(0),await Y(),w(d)}const x=re(()=>(k.value,!(!a.value||o.start==0&&a.value.scrollTop>=a.value.scrollHeight-1e3)));return e({scrollToLastMessage:g}),oe(()=>{g(!1)}),Fe(i.value.newMessageId,()=>{a.value&&h(a.value)&&g(!0)}),(d,B)=>(v(),b("div",{class:l(d.$style.historyWrapper)},[f(i)?(v(),b("div",{key:0,class:l(d.$style.messageHistory),onScroll:P,ref_key:"historyView",ref:a},[(v(!0),b(_e,null,be(f(A),T=>(v(),b("div",{class:l([d.$style.message,T.privileges=="author"?d.$style.self:void 0]),key:T.id,ref_for:!0,ref_key:"messageElems",ref:y},[K(_s,{message:T,onDeleteMessage:S=>d.$emit("deleteMessage",S),onEditMessage:S=>d.$emit("editMessage",S)},null,8,["message","onDeleteMessage","onEditMessage"])],2))),128))],34)):O("",!0),p("div",{class:l(d.$style.scrollDownWrapper)},[f(x)?(v(),b("div",{key:0,class:l(d.$style.scrollDownArrow),onClick:B[0]||(B[0]=async()=>{await("nextTick"in d?d.nextTick:f(Y))(),await g(!0)})},null,2)):O("",!0)],2)],2))}}),ks="_historyWrapper_14w73_1",Cs="_messageHistory_14w73_8",Es="_message_14w73_8",As="_self_14w73_21",Ts="_scrollDownWrapper_14w73_24",Ss="_scrollDownArrow_14w73_28",Bs={historyWrapper:ks,messageHistory:Cs,message:Es,self:As,scrollDownWrapper:Ts,scrollDownArrow:Ss},$s={$style:Bs},Rs=D(bs,[["__cssModules",$s]]),L=Object.create(null);L.open="0";L.close="1";L.ping="2";L.pong="3";L.message="4";L.upgrade="5";L.noop="6";const ee=Object.create(null);Object.keys(L).forEach(n=>{ee[L[n]]=n});const de={type:"error",data:"parser error"},He=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Ue=typeof ArrayBuffer=="function",Ve=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,Ee=({type:n,data:e},t,s)=>He&&e instanceof Blob?t?s(e):Re(e,s):Ue&&(e instanceof ArrayBuffer||Ve(e))?t?s(e):Re(new Blob([e]),s):s(L[n]+(e||"")),Re=(n,e)=>{const t=new FileReader;return t.onload=function(){const s=t.result.split(",")[1];e("b"+(s||""))},t.readAsDataURL(n)};function Me(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let he;function Ms(n,e){if(He&&n.data instanceof Blob)return n.data.arrayBuffer().then(Me).then(e);if(Ue&&(n.data instanceof ArrayBuffer||Ve(n.data)))return e(Me(n.data));Ee(n,!1,t=>{he||(he=new TextEncoder),e(he.encode(t))})}const Oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n{let e=n.length*.75,t=n.length,s,i=0,r,o,h,c;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const u=new ArrayBuffer(e),a=new Uint8Array(u);for(s=0;s>4,a[i++]=(o&15)<<4|h>>2,a[i++]=(h&3)<<6|c&63;return u},Ls=typeof ArrayBuffer=="function",Ae=(n,e)=>{if(typeof n!="string")return{type:"message",data:We(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:Ns(n.substring(1),e)}:ee[t]?n.length>1?{type:ee[t],data:n.substring(1)}:{type:ee[t]}:de},Ns=(n,e)=>{if(Ls){const t=Os(n);return We(t,e)}else return{base64:!0,data:n}},We=(n,e)=>{switch(e){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},ze="",Is=(n,e)=>{const t=n.length,s=new Array(t);let i=0;n.forEach((r,o)=>{Ee(r,!1,h=>{s[o]=h,++i===t&&e(s.join(ze))})})},xs=(n,e)=>{const t=n.split(ze),s=[];for(let i=0;i{const s=t.length;let i;if(s<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,s);else if(s<65536){i=new Uint8Array(3);const r=new DataView(i.buffer);r.setUint8(0,126),r.setUint16(1,s)}else{i=new Uint8Array(9);const r=new DataView(i.buffer);r.setUint8(0,127),r.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}let le;function X(n){return n.reduce((e,t)=>e+t.length,0)}function Q(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let s=0;for(let i=0;iMath.pow(2,21)-1){h.enqueue(de);break}i=a*Math.pow(2,32)+u.getUint32(4),s=3}else{if(X(t)n){h.enqueue(de);break}}}})}const Ke=4;function E(n){if(n)return Ps(n)}function Ps(n){for(var e in E.prototype)n[e]=E.prototype[e];return n}E.prototype.on=E.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this};E.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this};E.prototype.off=E.prototype.removeListener=E.prototype.removeAllListeners=E.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,i=0;i(n.hasOwnProperty(s)&&(t[s]=n[s]),t),{})}const Fs=$.setTimeout,Hs=$.clearTimeout;function ae(n,e){e.useNativeTimers?(n.setTimeoutFn=Fs.bind($),n.clearTimeoutFn=Hs.bind($)):(n.setTimeoutFn=$.setTimeout.bind($),n.clearTimeoutFn=$.clearTimeout.bind($))}const Us=1.33;function Vs(n){return typeof n=="string"?Ws(n):Math.ceil((n.byteLength||n.size)*Us)}function Ws(n){let e=0,t=0;for(let s=0,i=n.length;s=57344?t+=3:(s++,t+=4);return t}function zs(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function Ks(n){let e={},t=n.split("&");for(let s=0,i=t.length;s0);return e}function je(){const n=Ie(+new Date);return n!==Ne?(Le=0,Ne=n):n+"."+Ie(Le++)}for(;G{this.readyState="paused",e()};if(this.polling||!this.writable){let s=0;this.polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};xs(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,Is(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=je()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new M(this.uri(),e)}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,r)=>{this.onError("xhr post error",i,r)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class M extends E{constructor(e,t){super(),ae(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=t.data!==void 0?t.data:null,this.create()}create(){var e;const t=Je(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const s=this.xhr=new Qe(t);try{s.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this.opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(s.timeout=this.opts.requestTimeout),s.onreadystatechange=()=>{var i;s.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(s)),s.readyState===4&&(s.status===200||s.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof s.status=="number"?s.status:0)},0))},s.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=M.requestsCount++,M.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Xs,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete M.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}M.requestsCount=0;M.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",xe);else if(typeof addEventListener=="function"){const n="onpagehide"in $?"pagehide":"unload";addEventListener(n,xe,!1)}}function xe(){for(let n in M.requests)M.requests.hasOwnProperty(n)&&M.requests[n].abort()}const Se=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),Z=$.WebSocket||$.MozWebSocket,qe=!0,Zs="arraybuffer",De=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class en extends Te{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,s=De?{}:Je(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=qe&&!De?t?new Z(e,t):new Z(e):new Z(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{const o={};try{qe&&this.ws.send(r)}catch{}i&&Se(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=je()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!Z}}class tn extends Te{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const t=Ds(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=qs();i.readable.pipeTo(e.writable),this.writer=i.writable.getWriter();const r=()=>{s.read().then(({done:h,value:c})=>{h||(this.onPacket(c),r())}).catch(h=>{})};r();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t{i&&Se(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const sn={websocket:en,webtransport:tn,polling:Gs},nn=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,rn=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ye(n){if(n.length>2e3)throw"URI too long";const e=n,t=n.indexOf("["),s=n.indexOf("]");t!=-1&&s!=-1&&(n=n.substring(0,t)+n.substring(t,s).replace(/:/g,";")+n.substring(s,n.length));let i=nn.exec(n||""),r={},o=14;for(;o--;)r[rn[o]]=i[o]||"";return t!=-1&&s!=-1&&(r.source=e,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=on(r,r.path),r.queryKey=an(r,r.query),r}function on(n,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function an(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,r){i&&(t[i]=r)}),t}let Ge=class H extends E{constructor(e,t={}){super(),this.binaryType=Zs,this.writeBuffer=[],e&&typeof e=="object"&&(t=e,e=null),e?(e=ye(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=ye(t.host).host),ae(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Ks(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=Ke,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new sn[e](s)}open(){let e;if(this.opts.rememberUpgrade&&H.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",t=>this.onClose("transport close",t))}probe(e){let t=this.createTransport(e),s=!1;H.priorWebsocketSuccess=!1;const i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",y=>{if(!s)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;H.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(a(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const k=new Error("probe error");k.transport=t.name,this.emitReserved("upgradeError",k)}}))};function r(){s||(s=!0,a(),t.close(),t=null)}const o=y=>{const k=new Error("probe error: "+y);k.transport=t.name,r(),this.emitReserved("upgradeError",k)};function h(){o("transport closed")}function c(){o("socket closed")}function u(y){t&&y.name!==t.name&&r()}const a=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",h),this.off("close",c),this.off("upgrading",u)};t.once("open",i),t.once("error",o),t.once("close",h),this.once("close",c),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onOpen(){if(this.readyState="open",H.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s0&&t>this.maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}write(e,t,s){return this.sendPacket("message",e,t,s),this}send(e,t,s){return this.sendPacket("message",e,t,s),this}sendPacket(e,t,s,i){if(typeof t=="function"&&(i=t,t=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const r={type:e,data:t,options:s};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}onError(e){H.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let s=0;const i=e.length;for(;stypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Ze=Object.prototype.toString,un=typeof Blob=="function"||typeof Blob<"u"&&Ze.call(Blob)==="[object BlobConstructor]",fn=typeof File=="function"||typeof File<"u"&&Ze.call(File)==="[object FileConstructor]";function Be(n){return hn&&(n instanceof ArrayBuffer||ln(n))||un&&n instanceof Blob||fn&&n instanceof File}function te(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,s=n.length;t=0&&n.num{delete this.acks[e];for(let h=0;h{this.io.clearTimeoutFn(r),t.apply(this,h)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((s,i)=>{const r=(o,h)=>o?i(o):s(h);r.withError=!0,t.push(r),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...r)=>s!==this._queue[0]?void 0:(i!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...r)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:m.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){const s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case m.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case m.EVENT:case m.BINARY_EVENT:this.onevent(e);break;case m.ACK:case m.BINARY_ACK:this.onack(e);break;case m.DISCONNECT:this.ondisconnect();break;case m.CONNECT_ERROR:this.destroy();const s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let s=!1;return function(...i){s||(s=!0,t.packet({type:m.ACK,id:e,data:i}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:m.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let s=0;s0&&n.jitter<=1?n.jitter:0,this.attempts=0}U.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=Math.floor(e*10)&1?n+t:n-t}return Math.min(n,this.max)|0};U.prototype.reset=function(){this.attempts=0};U.prototype.setMin=function(n){this.ms=n};U.prototype.setMax=function(n){this.max=n};U.prototype.setJitter=function(n){this.jitter=n};class ve extends E{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,ae(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((s=t.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new U({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||wn;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Ge(this.uri,this.opts);const t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const i=R(t,"open",function(){s.onopen(),e&&e()}),r=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),e?e(h):this.maybeReconnectOnOpen()},o=R(t,"error",r);if(this._timeout!==!1){const h=this._timeout,c=this.setTimeoutFn(()=>{i(),r(new Error("timeout")),t.close()},h);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(R(e,"ping",this.onping.bind(this)),R(e,"data",this.ondata.bind(this)),R(e,"error",this.onerror.bind(this)),R(e,"close",this.onclose.bind(this)),R(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){Se(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new et(this,e,t),this.nsps[e]=s),s}_destroy(e){const t=Object.keys(this.nsps);for(const s of t)if(this.nsps[s].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let s=0;se()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const W={};function se(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=cn(n,e.path||"/socket.io"),s=t.source,i=t.id,r=t.path,o=W[i]&&r in W[i].nsps,h=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let c;return h?c=new ve(s,e):(W[i]||(W[i]=new ve(s,e)),c=W[i]),t.query&&!e.query&&(e.query=t.queryKey),c.socket(t.path,e)}Object.assign(se,{Manager:ve,Socket:et,io:se,connect:se});let J;function bn(n){return J||(J=se(`${ht()}/chat`,{auth:{token:n.token.rawToken}})),J}function tt(n){return J||bn(n)}const kn=I({__name:"ChatBodyComponent",props:{chat:{}},setup(n){const e=n,{chat:t}=j(e),i=we().readyUser;tt(i.value).emit("subscribe",{chat_id:t.value.id});const o=re(()=>t.value.chatHistory),h=_(),c=_(null);async function u(){var w,g;await t.value.chatHistory.loadHistory(),(w=c.value)==null||w.focusToTextarea(),await((g=h.value)==null?void 0:g.scrollToLastMessage(!1))}oe(()=>u());function a(w){var g;(g=c.value)==null||g.messageEditFlow(w)}_(-1);async function y(w){const g=t.value.chatHistory.sendMessage(w);Y(()=>{var x;return(x=h.value)==null?void 0:x.scrollToLastMessage(!0)}),await g}async function k(w,g){if(w=w.trim(),!g||!w)return;const x=g.content,d=g.updated_at;g.content=w,g.updated_at="now";try{await yt(w,g,t.value,i.value)}catch{g.content=x,g.updated_at=d}}async function P(w){if(t.value){w.state="hidden";try{await pt(w,t.value,i.value)}catch{console.log("Couldn't delete message.")}}}const A=_(!1);return(w,g)=>{const x=Gt;return v(),b("div",{class:l(w.$style.chatBody)},[p("div",{class:l(w.$style.head),onClick:g[0]||(g[0]=d=>A.value=!0)},q(f(t).name),3),f(o)?(v(),F(Rs,{key:f(t).id,"message-history":f(o),onEditMessage:a,onDeleteMessage:P,ref_key:"chatHistoryElement",ref:h},null,8,["message-history"])):O("",!0),(v(),F(lt,null,[(v(),F(us,{onSendMessage:y,onEditMessage:k,ref_key:"messageSender",ref:c,key:f(t).id}))],1024)),ne(K(x,{chat:f(t),onClose:g[1]||(g[1]=d=>A.value=!1)},null,8,["chat"]),[[ut,f(A)]])],2)}}}),Cn="_chatBody_jonpn_1",En="_head_jonpn_7",An={chatBody:Cn,head:En},Tn={$style:An},Sn=D(kn,[["__cssModules",Tn]]),Bn=I({__name:"ChatAreaComponent",setup(n){const e=_(),s=we().readyUser,i=_();gt(s.value).then(o=>i.value=o).catch(o=>{throw o});const r=tt(s.value);return r.off(),r.on("messageSent",async o=>{if(!i.value)return;const{chat_id:h}=o,c=i.value[h];if(!c)return;const u=o.message;u.author.id==s.value.id&&await new Promise(y=>setTimeout(y,100));const a=ke(u,c,s.value);c.chatHistory.newMessage(a)}),r.on("messageDelete",async o=>{if(!i.value)return;const{chat_id:h,message_id:c}=o,u=i.value[h];if(!u)return;const a=u.chatHistory.messageFromId(c);a&&(a.state="hidden")}),r.on("messageUpdate",async o=>{if(!i.value)return;const{chat_id:h,message:c}=o,u=i.value[h];if(!u)return;const a=u.chatHistory.messageFromId(c.id);if(a)for(const y in c)a[y]=c[y]}),(o,h)=>{var a;const c=Ut,u=Sn;return v(),b("div",{class:l(o.$style.content)},[p("div",{class:l(o.$style.chatList)},[f(i)?(v(),F(c,{key:0,"chat-list":f(i),onChatSelected:h[0]||(h[0]=y=>e.value=y),activeChat:f(e)},null,8,["chat-list","activeChat"])):(v(),b("div",{key:1,class:l(o.$style.chatsLoading)},"Loading...",2))],2),p("div",{class:l(o.$style.chatBody)},[f(e)?(v(),F(u,{chat:f(e),key:(a=f(e))==null?void 0:a.id},null,8,["chat"])):O("",!0)],2)],2)}}}),$n="_content_1usbv_1",Rn="_chatList_1usbv_9",Mn="_chatBody_1usbv_15",On={content:$n,chatList:Rn,chatBody:Mn},Ln={$style:On},Nn=D(Bn,[["__cssModules",Ln]]),qn=I({__name:"index",setup(n){return(e,t)=>{const s=Nn;return v(),F(s)}}});export{qn as default}; +var st=Object.defineProperty;var nt=(n,e,t)=>e in n?st(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var C=(n,e,t)=>(nt(n,typeof e!="symbol"?e+"":e,t),t);import{n as N,q as ue,s as I,u as we,r as _,o as v,c as b,a as p,v as l,x as ne,y as fe,z as f,A as ie,_ as D,B as j,F as _e,C as be,t as q,D as F,E as O,G as oe,H as re,I as Y,h as Fe,J as it,K as rt,L as ot,d as at,b as K,w as ct,M as ce,N as ht,O as lt,P as ut}from"./entry.DNkX-rFi.js";function ft(n,e,t){return n.author.id===t.id?"author":e.ownerId==t.id?"owner":"viewer"}async function dt(n,e,t){const r=(await N(t).post(`/chats/${e.id}/messages`,n,{headers:{"Content-Type":"text/plain"}})).data;return ke(r,e,t)}async function pt(n,e,t){await N(t).delete(`/chats/${e.id}/messages/${n.id}`)}async function yt(n,e,t,s){await N(s).put(`/chats/${t.id}/messages/${e.id}`,n,{headers:{"Content-Type":"text/plain"}})}function ke(n,e,t){return{...n,privileges:ft(n,e,t)}}class mt{constructor(e,t){C(this,"chat");C(this,"user");C(this,"history",[]);C(this,"upFilled",!1);C(this,"downFilled",!1);C(this,"loading",null);C(this,"pushedMessages",new Set);C(this,"messageSendId",-1);C(this,"newMessageId",ue({id:0}));C(this,"idToMessage",{});this.chat=e,this.user=t}async loadHistory(e){this.loading||(this.loading=this._LoadHistory(e)),await this.loading,this.loading=null}async _LoadHistory(e){const t=N(this.user);if(!e)if(this.history.length===0)e={loadDirection:"up",loadAmount:250};else{for(this.downFilled=!1;!this.downFilled;)await this.loadHistory({loadDirection:"down",loadAmount:1e3});return}if(e.loadDirection=="up"&&this.upFilled||e.loadDirection=="down"&&this.downFilled)return;const s=e.loadAmount,i=e.loadDirection=="up"?this.getUpMessageIndex():this.getDownMessageIndex(),r=e.loadDirection=="up"?1:-1,h=(await t.get(`/chats/${this.chat.id}/messages?limit=${s}&startIdx=${i}&loadDirection=${r}`)).data;h.reverse();const c=h.map(u=>ke(u,this.chat,this.user));if(e.loadDirection=="up"){if(c.length=this.history[0].id;)c.pop();else this.downFilled=!0;this.history.unshift(...c);for(const u of c)this.idToMessage[u.id]=u}else{c.lengththis.history.length?this.upFilled?!1:(await this.loadHistory({loadDirection:"up",loadAmount:100}),!0):!0}getDownMessageIndex(){return this.history.length!=0?this.history[this.history.length-1].id:-1}getUpMessageIndex(){return this.history.length!=0?this.history[0].id:-1}isUpFilled(){return this.upFilled}markNewId(e){return this.pushedMessages.has(e)?!1:(this.pushedMessages.add(e),!0)}newMessage(e){this.markNewId(e.id)&&this.history.push(e),this.newMessageId.id=e.id,this.idToMessage[e.id]=e}async sendMessage(e){if(e=e.trim(),!e)return;const t=ue({id:this.messageSendId--,author:this.user,content:e,created_at:"now",privileges:"author",state:"pending"});this.newMessage(t);try{const s=await dt(e,this.chat,this.user);if(!this.markNewId(s.id)){console.log("too long"),t.state="hidden";return}for(const i in t)t[i]=s[i]}catch{t.state="postingError"}return t}messageFromId(e){return this.idToMessage[e]}}class Ce{constructor(e,t){C(this,"id");C(this,"name");C(this,"icon");C(this,"createdAt");C(this,"updatedAt");C(this,"ownerId");C(this,"chatHistory");C(this,"user");C(this,"isOwner");C(this,"invites");this.id=e.id,this.name=e.name,this.icon=e.icon,this.createdAt=e.createdAt,this.updatedAt=e.updatedAt,this.ownerId=e.owner_id,this.user=t,this.chatHistory=new mt(this,t),this.isOwner=this.user.id==this.ownerId}async loadInvites(){if(!this.isOwner)return;const s=(await N(this.user).get(`/chats/${this.id}/invites`)).data;return this.invites=s,s}async getInvites(){return this.invites?this.invites:this.loadInvites()}async createInvite(){var i;const s=(await N(this.user).post(`/chats/${this.id}/invites`)).data;return(i=this.invites)==null||i.push(s),s}}async function gt(n){const i=(await N(n).get("/chats")).data.map(o=>new Ce(o,n)),r={};for(const o of i)r[o.id]=o;return r}async function vt(n,e){const i=(await N(e).post("/chats",n)).data;return new Ce(i,e)}async function wt(n,e){const t=N(e),s=n,r=(await t.post(`/chats/invites/${s}/join`)).data;return new Ce(r.chat,e)}const _t=p("h1",null,"Create chat",-1),bt=p("h3",null,"Enter chat name:",-1),kt=p("h2",null,"Or join existing one:",-1),Ct=p("h3",null,"Enter invite link:",-1),Et=I({__name:"ChatCreateComponent",emits:["close","chatCreated"],setup(n,{emit:e}){const s=we().readyUser,i=e,r=_(""),o=_(""),h=_(!1);async function c(){if(!h.value)try{const a=r.value.trim();if(!a)return alert("Chat name cannot be null");const k=await vt({name:a},s.value);i("chatCreated",k),h.value=!0,i("close")}catch(a){a instanceof Error&&alert(a.message)}}async function u(){if(!h.value)try{if(!o.value)return alert("Invite link cannot be null");const a=await wt(o.value,s.value);i("chatCreated",a),h.value=!0,i("close")}catch(a){a instanceof Error&&alert(a.message)}}return(a,y)=>(v(),b("div",{class:l(a.$style.mask)},[p("div",{class:l(a.$style.window)},[p("div",{class:l(a.$style.chatCreation)},[_t,p("div",{class:l(a.$style.inputField)},[bt,ne(p("input",{class:l(a.$style.inputName),"onUpdate:modelValue":y[0]||(y[0]=k=>ie(r)?r.value=k:null)},null,2),[[fe,f(r)]])],2),p("div",{class:l(a.$style.actions)},[p("div",{class:l(a.$style.submitButton),onClick:c},"Create",2),p("div",{class:l(a.$style.close),onClick:y[1]||(y[1]=k=>i("close"))},"Close",2)],2)],2),p("div",{class:l(a.$style.chatJoin)},[kt,p("div",{class:l(a.$style.inputField)},[Ct,ne(p("input",{class:l(a.$style.inputName),"onUpdate:modelValue":y[2]||(y[2]=k=>ie(o)?o.value=k:null)},null,2),[[fe,f(o)]])],2),p("div",{class:l(a.$style.actions)},[p("div",{class:l(a.$style.submitButton),onClick:u},"Join",2)],2)],2)],2)],2))}}),At="_window_rabcw_1",Tt="_actions_rabcw_1",St="_submitButton_rabcw_1",Bt="_close_rabcw_16",$t="_mask_rabcw_31",Rt="_inputField_rabcw_58",Mt={window:At,actions:Tt,submitButton:St,close:Bt,mask:$t,inputField:Rt},Ot={$style:Mt},Lt=D(Et,[["__cssModules",Ot]]),Nt=["onClick"],It=I({__name:"ChatListComponent",props:{chatList:{},activeChat:{}},emits:["chatSelected"],setup(n,{emit:e}){const t=n,{chatList:s}=j(t),i=e,r=_();function o(h){s.value[h.id]=h,i("chatSelected",h)}return(h,c)=>{const u=Lt;return v(),b("div",{class:l(h.$style.chatList)},[p("div",null,[(v(!0),b(_e,null,be(f(s),a=>{var y;return v(),b("div",{class:l([h.$style.chatUnit,((y=h.activeChat)==null?void 0:y.id)==a.id?h.$style.activeChat:void 0]),key:a.id,onClick:()=>i("chatSelected",a)},q(a.name),11,Nt)}),128)),p("div",{class:l(h.$style.createChat),onClick:c[0]||(c[0]=a=>r.value=!0)}," Create Chat ",2),f(r)?(v(),F(u,{key:0,onClose:c[1]||(c[1]=a=>r.value=!1),onChatCreated:o})):O("",!0)])],2)}}}),xt="_chatList_a435w_1",qt="_chatUnit_a435w_11",Dt="_activeChat_a435w_20",Pt="_createChat_a435w_26",Ft={chatList:xt,chatUnit:qt,activeChat:Dt,createChat:Pt},Ht={$style:Ft},Ut=D(It,[["__cssModules",Ht]]),Vt=I({__name:"ChatInfoComponent",props:{chat:{}},emits:["close"],setup(n,{emit:e}){const t=n,{chat:s}=j(t),i=e,r=_(),o=_(!1);oe(async()=>{o.value=!0;try{r.value=await s.value.loadInvites()}catch{console.error("Unable to load invites")}finally{o.value=!1}});async function h(){await s.value.createInvite()}return(c,u)=>(v(),b("div",{class:l(c.$style.mask)},[p("div",{class:l(c.$style.window)},[p("div",{class:l(c.$style.head)},[p("h1",{class:l(c.$style.chatName)},q(f(s).name),3),p("div",{class:l(c.$style.closeButton),onClick:u[0]||(u[0]=a=>i("close"))},"Close",2)],2),f(s).isOwner?(v(),b("div",{key:0,class:l(c.$style.invitesStore)},[p("h2",{class:l(c.$style.invitesHead)},"Chat invites",2),p("div",{class:l(c.$style.invitesList)},[(v(!0),b(_e,null,be(f(r),a=>(v(),b("div",{class:l(c.$style.inviteRecord),key:a.id},q(a.code),3))),128))],2),p("div",{class:l(c.$style.createInviteButton),onClick:h}," Create invite ",2)],2)):O("",!0)],2)],2))}}),Wt="_window_1lkhn_1",zt="_invitesStore_1lkhn_1",Kt="_createInviteButton_1lkhn_1",Jt="_head_1lkhn_16",Yt="_closeButton_1lkhn_16",jt="_mask_1lkhn_31",Xt={window:Wt,invitesStore:zt,createInviteButton:Kt,head:Jt,closeButton:Yt,mask:jt},Qt={$style:Xt},Gt=D(Vt,[["__cssModules",Qt]]),Zt=200,es=I({__name:"SendMessageComponent",emits:["sendMessage","editMessage"],setup(n,{expose:e,emit:t}){const s=_(""),i=_(!1),r=_(),o=re(()=>i.value),h=t,c=_(),u=_(19);function a(){c.value&&(c.value.style.height="0",u.value=Math.min(c.value.scrollHeight,Zt),c.value.style.height=u.value+"px")}oe(()=>Y(a)),Fe(s,()=>Y(a));function y(){c.value&&c.value.focus()}function k(A){s.value=A.content,i.value=!0,r.value=A,y()}e({messageEditFlow:k,focusToTextarea:y});function P(){i.value?(i.value=!1,r.value&&h("editMessage",s.value,r.value)):h("sendMessage",s.value),s.value=""}return(A,w)=>(v(),b("div",{class:l(A.$style.sendMessage),onClick:y},[f(o)?(v(),b("div",{key:0,class:l(A.$style.senderInfo)},[f(i)?(v(),b("div",{key:0,class:l([A.$style.editingMessage,A.$style.messagedInfo])},[p("p",{class:l(A.$style.infoText)},"Editing message",2),p("div",{class:l(A.$style.closeInfo),onClick:w[0]||(w[0]=g=>{i.value=!1,s.value=""})}," CLOSE ",2)],2)):O("",!0)],2)):O("",!0),p("div",{class:l(A.$style.messagePrompt)},[p("div",{class:l(A.$style.messageContentWrapper)},[ne(p("textarea",{class:l(A.$style.messageContent),style:it({height:f(u)+"px"}),"onUpdate:modelValue":w[1]||(w[1]=g=>ie(s)?s.value=g:null),ref_key:"textareaField",ref:c,onKeypress:w[2]||(w[2]=rt(ot(g=>{g.preventDefault(),P()},["exact"]),["enter"]))},null,38),[[fe,f(s)]])],2),p("div",{class:l(A.$style.messageSendButton),onClick:P},"Send",2)],2)],2))}}),ts="_sendMessage_fq4qj_1",ss="_senderInfo_fq4qj_9",ns="_messagedInfo_fq4qj_15",is="_closeInfo_fq4qj_25",rs="_messagePrompt_fq4qj_32",os="_messageContentWrapper_fq4qj_36",as="_messageContent_fq4qj_36",cs="_messageSendButton_fq4qj_50",hs={sendMessage:ts,senderInfo:ss,messagedInfo:ns,closeInfo:is,messagePrompt:rs,messageContentWrapper:os,messageContent:as,messageSendButton:cs},ls={$style:hs},us=D(es,[["__cssModules",ls]]),fs=I({__name:"MessageComponent",props:{message:{}},emits:["deleteMessage","editMessage"],setup(n,{emit:e}){const t=n,s=e,{message:i}=j(t),r=_(!1),o=_({x:0,y:0,theme:"dark"});function h(a){a.preventDefault(),o.value={zIndex:1e3,x:a.x,y:a.y},r.value=!0}function c(){s("deleteMessage",i.value)}function u(){s("editMessage",i.value)}return(a,y)=>(v(),b("div",{class:l(a.$style.message),onContextmenu:h},[p("div",{class:l(a.$style.messageAuthor)},q(f(i).author.username),3),p("div",{class:l(a.$style.messageContent)},q(f(i).content),3),p("div",{class:l(a.$style.timestamps)},[at(q(f(i).created_at)+" "+q(f(i).updated_at?"(updated)":"")+" ",1),f(i).state=="postingError"?(v(),b("div",{key:0,class:l(a.$style.postingError)}," sending error ",2)):O("",!0),f(i).state=="pending"?(v(),b("div",{key:1,class:l(a.$style.pending)}," pending... ",2)):O("",!0)],2),K(f(ce.ContextMenu),{show:f(r),"onUpdate:show":y[0]||(y[0]=k=>ie(r)?r.value=k:null),options:f(o)},{default:ct(()=>[K(f(ce.ContextMenuItem),{label:"Delete message",onClick:c,class:l(a.$style.menuLabel)},null,8,["class"]),K(f(ce.ContextMenuItem),{label:"Edit message",onClick:u,class:l(a.$style.menuLabel)},null,8,["class"])]),_:1},8,["show","options"])],34))}}),ds="_message_1rrmw_1",ps="_messageContent_1rrmw_10",ys="_timestamps_1rrmw_16",ms="_postingError_1rrmw_26",gs="_menuLabel_1rrmw_30",vs={message:ds,messageContent:ps,timestamps:ys,postingError:ms,menuLabel:gs},ws={$style:vs},_s=D(fs,[["__cssModules",ws]]),bs=I({__name:"ChatHistoryComponent",props:{messageHistory:{}},emits:["deleteMessage","editMessage"],setup(n,{expose:e,emit:t}){const s=n,{messageHistory:i}=j(s),r=_(50),o=ue({start:0,size:r.value/2});function h(d){const B=d.scrollHeight,T=d.scrollTop,S=d.offsetHeight;return S==0||Math.abs(T-(B-S))<10}function c(d){return d.scrollTop==0}async function u(d,B=o.size,T){const S=i.value.history.length;let V=T?c(T)?100:h(T)?T.scrollTop-500:-1:-1;d<0?d=0:S-(d+B)<=0&&(await i.value.shiftWindow(d,B)?await P():(d=Math.max(S-B,0),V=-1)),d==0&&V!=100&&(V=-1),V!=-1&&T&&(T.scrollTop=V),o.start=d,o.size=B}const a=_(),y=_(),k=_(1);async function P(){if(k.value++,!a.value)return;const d=a.value.scrollHeight,B=a.value.scrollTop;let T=o.start,S=o.size;B4*d/5&&T!=0&&(T-=r.value/4|0),u(T,S,a.value)}const A=re(()=>{const d=i.value.history.length,B=d-(o.start+o.size),T=d-o.start;return i.value.history.slice(B,T).filter(S=>S.state!="hidden")});function w(d=!1){a.value&&a.value.scrollTo({top:a.value.scrollHeight,behavior:d?"smooth":"instant"})}async function g(d=!1){await u(0),await Y(),w(d)}const x=re(()=>(k.value,!(!a.value||o.start==0&&a.value.scrollTop>=a.value.scrollHeight-1e3)));return e({scrollToLastMessage:g}),oe(()=>{g(!1)}),Fe(i.value.newMessageId,()=>{a.value&&h(a.value)&&g(!0)}),(d,B)=>(v(),b("div",{class:l(d.$style.historyWrapper)},[f(i)?(v(),b("div",{key:0,class:l(d.$style.messageHistory),onScroll:P,ref_key:"historyView",ref:a},[(v(!0),b(_e,null,be(f(A),T=>(v(),b("div",{class:l([d.$style.message,T.privileges=="author"?d.$style.self:void 0]),key:T.id,ref_for:!0,ref_key:"messageElems",ref:y},[K(_s,{message:T,onDeleteMessage:S=>d.$emit("deleteMessage",S),onEditMessage:S=>d.$emit("editMessage",S)},null,8,["message","onDeleteMessage","onEditMessage"])],2))),128))],34)):O("",!0),p("div",{class:l(d.$style.scrollDownWrapper)},[f(x)?(v(),b("div",{key:0,class:l(d.$style.scrollDownArrow),onClick:B[0]||(B[0]=async()=>{await("nextTick"in d?d.nextTick:f(Y))(),await g(!0)})},null,2)):O("",!0)],2)],2))}}),ks="_historyWrapper_14w73_1",Cs="_messageHistory_14w73_8",Es="_message_14w73_8",As="_self_14w73_21",Ts="_scrollDownWrapper_14w73_24",Ss="_scrollDownArrow_14w73_28",Bs={historyWrapper:ks,messageHistory:Cs,message:Es,self:As,scrollDownWrapper:Ts,scrollDownArrow:Ss},$s={$style:Bs},Rs=D(bs,[["__cssModules",$s]]),L=Object.create(null);L.open="0";L.close="1";L.ping="2";L.pong="3";L.message="4";L.upgrade="5";L.noop="6";const ee=Object.create(null);Object.keys(L).forEach(n=>{ee[L[n]]=n});const de={type:"error",data:"parser error"},He=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Ue=typeof ArrayBuffer=="function",Ve=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,Ee=({type:n,data:e},t,s)=>He&&e instanceof Blob?t?s(e):Re(e,s):Ue&&(e instanceof ArrayBuffer||Ve(e))?t?s(e):Re(new Blob([e]),s):s(L[n]+(e||"")),Re=(n,e)=>{const t=new FileReader;return t.onload=function(){const s=t.result.split(",")[1];e("b"+(s||""))},t.readAsDataURL(n)};function Me(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let he;function Ms(n,e){if(He&&n.data instanceof Blob)return n.data.arrayBuffer().then(Me).then(e);if(Ue&&(n.data instanceof ArrayBuffer||Ve(n.data)))return e(Me(n.data));Ee(n,!1,t=>{he||(he=new TextEncoder),e(he.encode(t))})}const Oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n{let e=n.length*.75,t=n.length,s,i=0,r,o,h,c;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const u=new ArrayBuffer(e),a=new Uint8Array(u);for(s=0;s>4,a[i++]=(o&15)<<4|h>>2,a[i++]=(h&3)<<6|c&63;return u},Ls=typeof ArrayBuffer=="function",Ae=(n,e)=>{if(typeof n!="string")return{type:"message",data:We(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:Ns(n.substring(1),e)}:ee[t]?n.length>1?{type:ee[t],data:n.substring(1)}:{type:ee[t]}:de},Ns=(n,e)=>{if(Ls){const t=Os(n);return We(t,e)}else return{base64:!0,data:n}},We=(n,e)=>{switch(e){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},ze="",Is=(n,e)=>{const t=n.length,s=new Array(t);let i=0;n.forEach((r,o)=>{Ee(r,!1,h=>{s[o]=h,++i===t&&e(s.join(ze))})})},xs=(n,e)=>{const t=n.split(ze),s=[];for(let i=0;i{const s=t.length;let i;if(s<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,s);else if(s<65536){i=new Uint8Array(3);const r=new DataView(i.buffer);r.setUint8(0,126),r.setUint16(1,s)}else{i=new Uint8Array(9);const r=new DataView(i.buffer);r.setUint8(0,127),r.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}let le;function X(n){return n.reduce((e,t)=>e+t.length,0)}function Q(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let s=0;for(let i=0;iMath.pow(2,21)-1){h.enqueue(de);break}i=a*Math.pow(2,32)+u.getUint32(4),s=3}else{if(X(t)n){h.enqueue(de);break}}}})}const Ke=4;function E(n){if(n)return Ps(n)}function Ps(n){for(var e in E.prototype)n[e]=E.prototype[e];return n}E.prototype.on=E.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this};E.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this};E.prototype.off=E.prototype.removeListener=E.prototype.removeAllListeners=E.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,i=0;i(n.hasOwnProperty(s)&&(t[s]=n[s]),t),{})}const Fs=$.setTimeout,Hs=$.clearTimeout;function ae(n,e){e.useNativeTimers?(n.setTimeoutFn=Fs.bind($),n.clearTimeoutFn=Hs.bind($)):(n.setTimeoutFn=$.setTimeout.bind($),n.clearTimeoutFn=$.clearTimeout.bind($))}const Us=1.33;function Vs(n){return typeof n=="string"?Ws(n):Math.ceil((n.byteLength||n.size)*Us)}function Ws(n){let e=0,t=0;for(let s=0,i=n.length;s=57344?t+=3:(s++,t+=4);return t}function zs(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function Ks(n){let e={},t=n.split("&");for(let s=0,i=t.length;s0);return e}function je(){const n=Ie(+new Date);return n!==Ne?(Le=0,Ne=n):n+"."+Ie(Le++)}for(;G{this.readyState="paused",e()};if(this.polling||!this.writable){let s=0;this.polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};xs(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,Is(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=je()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new M(this.uri(),e)}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,r)=>{this.onError("xhr post error",i,r)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class M extends E{constructor(e,t){super(),ae(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=t.data!==void 0?t.data:null,this.create()}create(){var e;const t=Je(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const s=this.xhr=new Qe(t);try{s.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this.opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(s.timeout=this.opts.requestTimeout),s.onreadystatechange=()=>{var i;s.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(s)),s.readyState===4&&(s.status===200||s.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof s.status=="number"?s.status:0)},0))},s.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=M.requestsCount++,M.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Xs,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete M.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}M.requestsCount=0;M.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",xe);else if(typeof addEventListener=="function"){const n="onpagehide"in $?"pagehide":"unload";addEventListener(n,xe,!1)}}function xe(){for(let n in M.requests)M.requests.hasOwnProperty(n)&&M.requests[n].abort()}const Se=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),Z=$.WebSocket||$.MozWebSocket,qe=!0,Zs="arraybuffer",De=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class en extends Te{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,s=De?{}:Je(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=qe&&!De?t?new Z(e,t):new Z(e):new Z(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{const o={};try{qe&&this.ws.send(r)}catch{}i&&Se(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=je()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!Z}}class tn extends Te{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const t=Ds(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=qs();i.readable.pipeTo(e.writable),this.writer=i.writable.getWriter();const r=()=>{s.read().then(({done:h,value:c})=>{h||(this.onPacket(c),r())}).catch(h=>{})};r();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t{i&&Se(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const sn={websocket:en,webtransport:tn,polling:Gs},nn=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,rn=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ye(n){if(n.length>2e3)throw"URI too long";const e=n,t=n.indexOf("["),s=n.indexOf("]");t!=-1&&s!=-1&&(n=n.substring(0,t)+n.substring(t,s).replace(/:/g,";")+n.substring(s,n.length));let i=nn.exec(n||""),r={},o=14;for(;o--;)r[rn[o]]=i[o]||"";return t!=-1&&s!=-1&&(r.source=e,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=on(r,r.path),r.queryKey=an(r,r.query),r}function on(n,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function an(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,r){i&&(t[i]=r)}),t}let Ge=class H extends E{constructor(e,t={}){super(),this.binaryType=Zs,this.writeBuffer=[],e&&typeof e=="object"&&(t=e,e=null),e?(e=ye(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=ye(t.host).host),ae(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Ks(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=Ke,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new sn[e](s)}open(){let e;if(this.opts.rememberUpgrade&&H.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",t=>this.onClose("transport close",t))}probe(e){let t=this.createTransport(e),s=!1;H.priorWebsocketSuccess=!1;const i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",y=>{if(!s)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;H.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(a(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const k=new Error("probe error");k.transport=t.name,this.emitReserved("upgradeError",k)}}))};function r(){s||(s=!0,a(),t.close(),t=null)}const o=y=>{const k=new Error("probe error: "+y);k.transport=t.name,r(),this.emitReserved("upgradeError",k)};function h(){o("transport closed")}function c(){o("socket closed")}function u(y){t&&y.name!==t.name&&r()}const a=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",h),this.off("close",c),this.off("upgrading",u)};t.once("open",i),t.once("error",o),t.once("close",h),this.once("close",c),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onOpen(){if(this.readyState="open",H.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s0&&t>this.maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}write(e,t,s){return this.sendPacket("message",e,t,s),this}send(e,t,s){return this.sendPacket("message",e,t,s),this}sendPacket(e,t,s,i){if(typeof t=="function"&&(i=t,t=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const r={type:e,data:t,options:s};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}onError(e){H.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let s=0;const i=e.length;for(;stypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Ze=Object.prototype.toString,un=typeof Blob=="function"||typeof Blob<"u"&&Ze.call(Blob)==="[object BlobConstructor]",fn=typeof File=="function"||typeof File<"u"&&Ze.call(File)==="[object FileConstructor]";function Be(n){return hn&&(n instanceof ArrayBuffer||ln(n))||un&&n instanceof Blob||fn&&n instanceof File}function te(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,s=n.length;t=0&&n.num{delete this.acks[e];for(let h=0;h{this.io.clearTimeoutFn(r),t.apply(this,h)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((s,i)=>{const r=(o,h)=>o?i(o):s(h);r.withError=!0,t.push(r),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...r)=>s!==this._queue[0]?void 0:(i!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...r)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:m.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){const s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case m.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case m.EVENT:case m.BINARY_EVENT:this.onevent(e);break;case m.ACK:case m.BINARY_ACK:this.onack(e);break;case m.DISCONNECT:this.ondisconnect();break;case m.CONNECT_ERROR:this.destroy();const s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let s=!1;return function(...i){s||(s=!0,t.packet({type:m.ACK,id:e,data:i}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:m.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let s=0;s0&&n.jitter<=1?n.jitter:0,this.attempts=0}U.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=Math.floor(e*10)&1?n+t:n-t}return Math.min(n,this.max)|0};U.prototype.reset=function(){this.attempts=0};U.prototype.setMin=function(n){this.ms=n};U.prototype.setMax=function(n){this.max=n};U.prototype.setJitter=function(n){this.jitter=n};class ve extends E{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,ae(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((s=t.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new U({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||wn;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Ge(this.uri,this.opts);const t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const i=R(t,"open",function(){s.onopen(),e&&e()}),r=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),e?e(h):this.maybeReconnectOnOpen()},o=R(t,"error",r);if(this._timeout!==!1){const h=this._timeout,c=this.setTimeoutFn(()=>{i(),r(new Error("timeout")),t.close()},h);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(R(e,"ping",this.onping.bind(this)),R(e,"data",this.ondata.bind(this)),R(e,"error",this.onerror.bind(this)),R(e,"close",this.onclose.bind(this)),R(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){Se(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new et(this,e,t),this.nsps[e]=s),s}_destroy(e){const t=Object.keys(this.nsps);for(const s of t)if(this.nsps[s].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let s=0;se()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const W={};function se(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=cn(n,e.path||"/socket.io"),s=t.source,i=t.id,r=t.path,o=W[i]&&r in W[i].nsps,h=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let c;return h?c=new ve(s,e):(W[i]||(W[i]=new ve(s,e)),c=W[i]),t.query&&!e.query&&(e.query=t.queryKey),c.socket(t.path,e)}Object.assign(se,{Manager:ve,Socket:et,io:se,connect:se});let J;function bn(n){return J||(J=se(`${ht()}/chat`,{auth:{token:n.token.rawToken}})),J}function tt(n){return J||bn(n)}const kn=I({__name:"ChatBodyComponent",props:{chat:{}},setup(n){const e=n,{chat:t}=j(e),i=we().readyUser;tt(i.value).emit("subscribe",{chat_id:t.value.id});const o=re(()=>t.value.chatHistory),h=_(),c=_(null);async function u(){var w,g;await t.value.chatHistory.loadHistory(),(w=c.value)==null||w.focusToTextarea(),await((g=h.value)==null?void 0:g.scrollToLastMessage(!1))}oe(()=>u());function a(w){var g;(g=c.value)==null||g.messageEditFlow(w)}_(-1);async function y(w){const g=t.value.chatHistory.sendMessage(w);Y(()=>{var x;return(x=h.value)==null?void 0:x.scrollToLastMessage(!0)}),await g}async function k(w,g){if(w=w.trim(),!g||!w)return;const x=g.content,d=g.updated_at;g.content=w,g.updated_at="now";try{await yt(w,g,t.value,i.value)}catch{g.content=x,g.updated_at=d}}async function P(w){if(t.value){w.state="hidden";try{await pt(w,t.value,i.value)}catch{console.log("Couldn't delete message.")}}}const A=_(!1);return(w,g)=>{const x=Gt;return v(),b("div",{class:l(w.$style.chatBody)},[p("div",{class:l(w.$style.head),onClick:g[0]||(g[0]=d=>A.value=!0)},q(f(t).name),3),f(o)?(v(),F(Rs,{key:f(t).id,"message-history":f(o),onEditMessage:a,onDeleteMessage:P,ref_key:"chatHistoryElement",ref:h},null,8,["message-history"])):O("",!0),(v(),F(lt,null,[(v(),F(us,{onSendMessage:y,onEditMessage:k,ref_key:"messageSender",ref:c,key:f(t).id}))],1024)),ne(K(x,{chat:f(t),onClose:g[1]||(g[1]=d=>A.value=!1)},null,8,["chat"]),[[ut,f(A)]])],2)}}}),Cn="_chatBody_jonpn_1",En="_head_jonpn_7",An={chatBody:Cn,head:En},Tn={$style:An},Sn=D(kn,[["__cssModules",Tn]]),Bn=I({__name:"ChatAreaComponent",setup(n){const e=_(),s=we().readyUser,i=_();gt(s.value).then(o=>i.value=o).catch(o=>{throw o});const r=tt(s.value);return r.off(),r.on("messageSent",async o=>{if(!i.value)return;const{chat_id:h}=o,c=i.value[h];if(!c)return;const u=o.message;u.author.id==s.value.id&&await new Promise(y=>setTimeout(y,100));const a=ke(u,c,s.value);c.chatHistory.newMessage(a)}),r.on("messageDelete",async o=>{if(!i.value)return;const{chat_id:h,message_id:c}=o,u=i.value[h];if(!u)return;const a=u.chatHistory.messageFromId(c);a&&(a.state="hidden")}),r.on("messageUpdate",async o=>{if(!i.value)return;const{chat_id:h,message:c}=o,u=i.value[h];if(!u)return;const a=u.chatHistory.messageFromId(c.id);if(a)for(const y in c)a[y]=c[y]}),(o,h)=>{var a;const c=Ut,u=Sn;return v(),b("div",{class:l(o.$style.content)},[p("div",{class:l(o.$style.chatList)},[f(i)?(v(),F(c,{key:0,"chat-list":f(i),onChatSelected:h[0]||(h[0]=y=>e.value=y),activeChat:f(e)},null,8,["chat-list","activeChat"])):(v(),b("div",{key:1,class:l(o.$style.chatsLoading)},"Loading...",2))],2),p("div",{class:l(o.$style.chatBody)},[f(e)?(v(),F(u,{chat:f(e),key:(a=f(e))==null?void 0:a.id},null,8,["chat"])):O("",!0)],2)],2)}}}),$n="_content_1usbv_1",Rn="_chatList_1usbv_9",Mn="_chatBody_1usbv_15",On={content:$n,chatList:Rn,chatBody:Mn},Ln={$style:On},Nn=D(Bn,[["__cssModules",Ln]]),qn=I({__name:"index",setup(n){return(e,t)=>{const s=Nn;return v(),F(s)}}});export{qn as default}; diff --git a/nuxt/index.FBYgf3lJ.js b/nuxt/index.D3TNqCkv.js similarity index 78% rename from nuxt/index.FBYgf3lJ.js rename to nuxt/index.D3TNqCkv.js index 0977618..e30564d 100644 --- a/nuxt/index.FBYgf3lJ.js +++ b/nuxt/index.D3TNqCkv.js @@ -1 +1 @@ -import{_ as o,o as t,c as n,a as e}from"./entry.BaaUaxo-.js";const s={},c=e("h1",null,"Welcome to the homepage",-1),_=e("h3",null,"This is an auto-imported component",-1),a=e("h1",null,null,-1),l=[c,_,a];function r(i,d){return t(),n("div",null,l)}const u=o(s,[["render",r]]);export{u as default}; +import{_ as o,o as t,c as n,a as e}from"./entry.DNkX-rFi.js";const s={},c=e("h1",null,"Welcome to the homepage",-1),_=e("h3",null,"This is an auto-imported component",-1),a=e("h1",null,null,-1),l=[c,_,a];function r(i,d){return t(),n("div",null,l)}const u=o(s,[["render",r]]);export{u as default}; diff --git a/nuxt/login.CSVNeue6.js b/nuxt/login.Cfry8RGN.js similarity index 87% rename from nuxt/login.CSVNeue6.js rename to nuxt/login.Cfry8RGN.js index ebdedc0..8d1af42 100644 --- a/nuxt/login.CSVNeue6.js +++ b/nuxt/login.Cfry8RGN.js @@ -1 +1 @@ -import{_ as f}from"./nuxt-link.CC9b3Q5E.js";import{s as g,r as a,u as h,o as w,c as x,a as s,x as r,y as u,z as i,A as d,v as _,d as c,b as y,w as F,F as V,_ as b}from"./entry.BaaUaxo-.js";const k=s("h2",null,"Enter username",-1),B=s("h2",null,"Enter password:",-1),C=s("br",null,null,-1),L=s("br",null,null,-1),N=g({__name:"login",setup($){const e=a(),t=a(),p=h();function m(){e.value&&t.value&&p.passwordLogin(e.value,t.value)}return(l,o)=>{const v=f;return w(),x(V,null,[s("div",{class:_(l.$style.authForm)},[s("div",null,[k,r(s("input",{"onUpdate:modelValue":o[0]||(o[0]=n=>d(e)?e.value=n:null),type:"text"},null,512),[[u,i(e)]])]),s("div",null,[B,r(s("input",{"onUpdate:modelValue":o[1]||(o[1]=n=>d(t)?t.value=n:null),type:"password"},null,512),[[u,i(t)]])]),s("button",{class:_(l.$style.loginButton),onClick:m},"Login",2)],2),C,L,s("div",null,[c("Or "),y(v,{to:"/register"},{default:F(()=>[c("register")]),_:1})])],64)}}}),E="_authForm_7verc_1",M={authForm:E},U={$style:M},T=b(N,[["__cssModules",U]]);export{T as default}; +import{_ as f}from"./nuxt-link.C5ztXXDi.js";import{s as g,r as a,u as h,o as w,c as x,a as s,x as r,y as u,z as i,A as d,v as _,d as c,b as y,w as F,F as V,_ as b}from"./entry.DNkX-rFi.js";const k=s("h2",null,"Enter username",-1),B=s("h2",null,"Enter password:",-1),C=s("br",null,null,-1),L=s("br",null,null,-1),N=g({__name:"login",setup($){const e=a(),t=a(),p=h();function m(){e.value&&t.value&&p.passwordLogin(e.value,t.value)}return(l,o)=>{const v=f;return w(),x(V,null,[s("div",{class:_(l.$style.authForm)},[s("div",null,[k,r(s("input",{"onUpdate:modelValue":o[0]||(o[0]=n=>d(e)?e.value=n:null),type:"text"},null,512),[[u,i(e)]])]),s("div",null,[B,r(s("input",{"onUpdate:modelValue":o[1]||(o[1]=n=>d(t)?t.value=n:null),type:"password"},null,512),[[u,i(t)]])]),s("button",{class:_(l.$style.loginButton),onClick:m},"Login",2)],2),C,L,s("div",null,[c("Or "),y(v,{to:"/register"},{default:F(()=>[c("register")]),_:1})])],64)}}}),E="_authForm_7verc_1",M={authForm:E},U={$style:M},T=b(N,[["__cssModules",U]]);export{T as default}; diff --git a/nuxt/messaging.C41G1zUO.js b/nuxt/messaging.C41G1zUO.js new file mode 100644 index 0000000..003da12 --- /dev/null +++ b/nuxt/messaging.C41G1zUO.js @@ -0,0 +1 @@ +/* empty css */import{s,S as t}from"./entry.DNkX-rFi.js";const m=s({__name:"messaging",setup(r){return(e,n)=>t(e.$slots,"default")}});export{m as default}; diff --git a/nuxt/messaging.CfaYSvRm.js b/nuxt/messaging.CfaYSvRm.js deleted file mode 100644 index c0ca6f3..0000000 --- a/nuxt/messaging.CfaYSvRm.js +++ /dev/null @@ -1 +0,0 @@ -/* empty css */import{s,S as t}from"./entry.BaaUaxo-.js";const m=s({__name:"messaging",setup(r){return(e,n)=>t(e.$slots,"default")}});export{m as default}; diff --git a/nuxt/nuxt-link.CC9b3Q5E.js b/nuxt/nuxt-link.C5ztXXDi.js similarity index 98% rename from nuxt/nuxt-link.CC9b3Q5E.js rename to nuxt/nuxt-link.C5ztXXDi.js index 5abc71a..9be67cc 100644 --- a/nuxt/nuxt-link.CC9b3Q5E.js +++ b/nuxt/nuxt-link.C5ztXXDi.js @@ -1 +1 @@ -import{R as _,s as B,H as b,T as q,r as C,G as w,U as L,V as N,k as T,W as U,X as P,Y as V,Z as j,$ as I,a0 as O,a1 as D,a2 as E,a3 as R,a4 as F,a5 as H,a6 as $}from"./entry.BaaUaxo-.js";async function k(t,r=_()){const{path:s,matched:e}=r.resolve(t);if(!e.length||(r._routePreloaded||(r._routePreloaded=new Set),r._routePreloaded.has(s)))return;const n=r._preloadPromises=r._preloadPromises||[];if(n.length>4)return Promise.all(n).then(()=>k(t,r));r._routePreloaded.add(s);const i=e.map(c=>{var a;return(a=c.components)==null?void 0:a.default}).filter(c=>typeof c=="function");for(const c of i){const a=Promise.resolve(c()).catch(()=>{}).finally(()=>n.splice(n.indexOf(a)));n.push(a)}await Promise.all(n)}const z=(...t)=>t.find(r=>r!==void 0);function M(t){const r=t.componentName||"NuxtLink";function s(e,n){if(!e||t.trailingSlash!=="append"&&t.trailingSlash!=="remove")return e;if(typeof e=="string")return S(e,t.trailingSlash);const i="path"in e?e.path:n(e).path;return{...e,name:void 0,path:S(i,t.trailingSlash)}}return B({name:r,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(e,{slots:n}){const i=_(),c=E(),a=b(()=>{const l=e.to||e.href||"";return s(l,i.resolve)}),f=b(()=>typeof a.value=="string"&&q(a.value,{acceptRelative:!0})),m=b(()=>e.target&&e.target!=="_self"),p=b(()=>e.external||m.value?!0:typeof a.value=="object"?!1:a.value===""||f.value),x=C(!1),v=C(null),A=l=>{var d;v.value=e.custom?(d=l==null?void 0:l.$el)==null?void 0:d.nextElementSibling:l==null?void 0:l.$el};if(e.prefetch!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!G()){const d=R();let h,u=null;w(()=>{const y=W();L(()=>{h=N(()=>{var g;(g=v==null?void 0:v.value)!=null&&g.tagName&&(u=y.observe(v.value,async()=>{u==null||u(),u=null;const o=typeof a.value=="string"?a.value:i.resolve(a.value).fullPath;await Promise.all([d.hooks.callHook("link:prefetch",o).catch(()=>{}),!p.value&&k(a.value,i).catch(()=>{})]),x.value=!0}))})})}),T(()=>{h&&U(h),u==null||u(),u=null})}return()=>{var y,g;if(!p.value){const o={ref:A,to:a.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(x.value&&(o.class=e.prefetchedClass||t.prefetchedClass),o.rel=e.rel||void 0),P(V("RouterLink"),o,n.default)}const l=typeof a.value=="object"?((y=i.resolve(a.value))==null?void 0:y.href)??null:a.value&&!e.external&&!f.value?s(j(c.app.baseURL,a.value),i.resolve):a.value||null,d=e.target||null,h=z(e.noRel?"":e.rel,t.externalRelAttribute,f.value||m.value?"noopener noreferrer":"")||null,u=()=>F(l,{replace:e.replace});return e.custom?n.default?n.default({href:l,navigate:u,get route(){if(!l)return;const o=I(l);return{path:o.pathname,fullPath:o.pathname,get query(){return O(o.search)},hash:o.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:l}},rel:h,target:d,isExternal:p.value,isActive:!1,isExactActive:!1}):null:P("a",{ref:v,href:l,rel:h,target:d},(g=n.default)==null?void 0:g.call(n))}}})}const X=M(D);function S(t,r){const s=r==="append"?H:$;return q(t)&&!t.startsWith("http")?t:s(t,!0)}function W(){const t=R();if(t._observer)return t._observer;let r=null;const s=new Map,e=(i,c)=>(r||(r=new IntersectionObserver(a=>{for(const f of a){const m=s.get(f.target);(f.isIntersecting||f.intersectionRatio>0)&&m&&m()}})),s.set(i,c),r.observe(i),()=>{s.delete(i),r.unobserve(i),s.size===0&&(r.disconnect(),r=null)});return t._observer={observe:e}}function G(){const t=navigator.connection;return!!(t&&(t.saveData||/2g/.test(t.effectiveType)))}export{X as _}; +import{R as _,s as B,H as b,T as q,r as C,G as w,U as L,V as N,k as T,W as U,X as P,Y as V,Z as j,$ as I,a0 as O,a1 as D,a2 as E,a3 as R,a4 as F,a5 as H,a6 as $}from"./entry.DNkX-rFi.js";async function k(t,r=_()){const{path:s,matched:e}=r.resolve(t);if(!e.length||(r._routePreloaded||(r._routePreloaded=new Set),r._routePreloaded.has(s)))return;const n=r._preloadPromises=r._preloadPromises||[];if(n.length>4)return Promise.all(n).then(()=>k(t,r));r._routePreloaded.add(s);const i=e.map(c=>{var a;return(a=c.components)==null?void 0:a.default}).filter(c=>typeof c=="function");for(const c of i){const a=Promise.resolve(c()).catch(()=>{}).finally(()=>n.splice(n.indexOf(a)));n.push(a)}await Promise.all(n)}const z=(...t)=>t.find(r=>r!==void 0);function M(t){const r=t.componentName||"NuxtLink";function s(e,n){if(!e||t.trailingSlash!=="append"&&t.trailingSlash!=="remove")return e;if(typeof e=="string")return S(e,t.trailingSlash);const i="path"in e?e.path:n(e).path;return{...e,name:void 0,path:S(i,t.trailingSlash)}}return B({name:r,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(e,{slots:n}){const i=_(),c=E(),a=b(()=>{const l=e.to||e.href||"";return s(l,i.resolve)}),f=b(()=>typeof a.value=="string"&&q(a.value,{acceptRelative:!0})),m=b(()=>e.target&&e.target!=="_self"),p=b(()=>e.external||m.value?!0:typeof a.value=="object"?!1:a.value===""||f.value),x=C(!1),v=C(null),A=l=>{var d;v.value=e.custom?(d=l==null?void 0:l.$el)==null?void 0:d.nextElementSibling:l==null?void 0:l.$el};if(e.prefetch!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!G()){const d=R();let h,u=null;w(()=>{const y=W();L(()=>{h=N(()=>{var g;(g=v==null?void 0:v.value)!=null&&g.tagName&&(u=y.observe(v.value,async()=>{u==null||u(),u=null;const o=typeof a.value=="string"?a.value:i.resolve(a.value).fullPath;await Promise.all([d.hooks.callHook("link:prefetch",o).catch(()=>{}),!p.value&&k(a.value,i).catch(()=>{})]),x.value=!0}))})})}),T(()=>{h&&U(h),u==null||u(),u=null})}return()=>{var y,g;if(!p.value){const o={ref:A,to:a.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(x.value&&(o.class=e.prefetchedClass||t.prefetchedClass),o.rel=e.rel||void 0),P(V("RouterLink"),o,n.default)}const l=typeof a.value=="object"?((y=i.resolve(a.value))==null?void 0:y.href)??null:a.value&&!e.external&&!f.value?s(j(c.app.baseURL,a.value),i.resolve):a.value||null,d=e.target||null,h=z(e.noRel?"":e.rel,t.externalRelAttribute,f.value||m.value?"noopener noreferrer":"")||null,u=()=>F(l,{replace:e.replace});return e.custom?n.default?n.default({href:l,navigate:u,get route(){if(!l)return;const o=I(l);return{path:o.pathname,fullPath:o.pathname,get query(){return O(o.search)},hash:o.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:l}},rel:h,target:d,isExternal:p.value,isActive:!1,isExactActive:!1}):null:P("a",{ref:v,href:l,rel:h,target:d},(g=n.default)==null?void 0:g.call(n))}}})}const X=M(D);function S(t,r){const s=r==="append"?H:$;return q(t)&&!t.startsWith("http")?t:s(t,!0)}function W(){const t=R();if(t._observer)return t._observer;let r=null;const s=new Map,e=(i,c)=>(r||(r=new IntersectionObserver(a=>{for(const f of a){const m=s.get(f.target);(f.isIntersecting||f.intersectionRatio>0)&&m&&m()}})),s.set(i,c),r.observe(i),()=>{s.delete(i),r.unobserve(i),s.size===0&&(r.disconnect(),r=null)});return t._observer={observe:e}}function G(){const t=navigator.connection;return!!(t&&(t.saveData||/2g/.test(t.effectiveType)))}export{X as _}; diff --git a/nuxt/register.Dk73nCdI.js b/nuxt/register.B2P9PNR6.js similarity index 93% rename from nuxt/register.Dk73nCdI.js rename to nuxt/register.B2P9PNR6.js index c944426..0f04c82 100644 --- a/nuxt/register.Dk73nCdI.js +++ b/nuxt/register.B2P9PNR6.js @@ -1 +1 @@ -import{s as m,r as a,o as _,c as g,a as e,x as l,y as u,z as i,A as c,v as d,Q as f,R as v,_ as y}from"./entry.BaaUaxo-.js";const h=e("h1",null,"Register",-1),w=e("h2",null,"Enter name:",-1),x=e("h2",null,"Enter password:",-1),R=m({__name:"register",setup(F){const r=a(""),o=a("");async function p(){const n=f();if(!r.value||!o.value)return alert("Required fields are null.");const t={username:r.value,password:o.value};try{const s=await n.post("/register",t)}catch(s){alert(s instanceof Error?s.message:"An unexpected error occured")}v().push("/login")}return(n,t)=>(_(),g("div",{class:d(n.$style.registerForm)},[h,e("div",null,[w,l(e("input",{"onUpdate:modelValue":t[0]||(t[0]=s=>c(r)?r.value=s:null),type:"text"},null,512),[[u,i(r)]])]),e("div",null,[x,l(e("input",{"onUpdate:modelValue":t[1]||(t[1]=s=>c(o)?o.value=s:null),type:"password"},null,512),[[u,i(o)]])]),e("button",{class:d(n.$style.loginButton),onClick:p},"Login",2)],2))}}),k="_registerForm_1haak_1",B={registerForm:k},E={$style:B},C=y(R,[["__cssModules",E]]);export{C as default}; +import{s as m,r as a,o as _,c as g,a as e,x as l,y as u,z as i,A as c,v as d,Q as f,R as v,_ as y}from"./entry.DNkX-rFi.js";const h=e("h1",null,"Register",-1),w=e("h2",null,"Enter name:",-1),x=e("h2",null,"Enter password:",-1),R=m({__name:"register",setup(F){const r=a(""),o=a("");async function p(){const n=f();if(!r.value||!o.value)return alert("Required fields are null.");const t={username:r.value,password:o.value};try{const s=await n.post("/register",t)}catch(s){alert(s instanceof Error?s.message:"An unexpected error occured")}v().push("/login")}return(n,t)=>(_(),g("div",{class:d(n.$style.registerForm)},[h,e("div",null,[w,l(e("input",{"onUpdate:modelValue":t[0]||(t[0]=s=>c(r)?r.value=s:null),type:"text"},null,512),[[u,i(r)]])]),e("div",null,[x,l(e("input",{"onUpdate:modelValue":t[1]||(t[1]=s=>c(o)?o.value=s:null),type:"password"},null,512),[[u,i(o)]])]),e("button",{class:d(n.$style.loginButton),onClick:p},"Login",2)],2))}}),k="_registerForm_1haak_1",B={registerForm:k},E={$style:B},C=y(R,[["__cssModules",E]]);export{C as default}; diff --git a/nuxt/vue.f36acd1f.DaM6ovJN.js b/nuxt/vue.f36acd1f.BXEiIuW0.js similarity index 83% rename from nuxt/vue.f36acd1f.DaM6ovJN.js rename to nuxt/vue.f36acd1f.BXEiIuW0.js index 8052fa6..c50a7d7 100644 --- a/nuxt/vue.f36acd1f.DaM6ovJN.js +++ b/nuxt/vue.f36acd1f.BXEiIuW0.js @@ -1 +1 @@ -import{i as f,r as u,f as o,g as d,h as v,j as l,k as i,l as h,m}from"./entry.BaaUaxo-.js";function U(t,a={}){const e=a.head||f();if(e)return e.ssr?e.push(t,a):p(e,t,a)}function p(t,a,e={}){const s=u(!1),n=u({});o(()=>{n.value=s.value?{}:d(a)});const r=t.push(n.value,e);return v(n,c=>{r.patch(c)}),l()&&(i(()=>{r.dispose()}),h(()=>{s.value=!0}),m(()=>{s.value=!1})),r}export{U as u}; +import{i as f,r as u,f as o,g as d,h as v,j as l,k as i,l as h,m}from"./entry.DNkX-rFi.js";function U(t,a={}){const e=a.head||f();if(e)return e.ssr?e.push(t,a):p(e,t,a)}function p(t,a,e={}){const s=u(!1),n=u({});o(()=>{n.value=s.value?{}:d(a)});const r=t.push(n.value,e);return v(n,c=>{r.patch(c)}),l()&&(i(()=>{r.dispose()}),h(()=>{s.value=!0}),m(()=>{s.value=!1})),r}export{U as u}; diff --git a/register/index.html b/register/index.html index cb02a9d..22cf576 100644 --- a/register/index.html +++ b/register/index.html @@ -1,17 +1,17 @@ - + - - + + - + - - + + - -
+ +
\ No newline at end of file