@x18n/ui 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/index.mjs +1 -1
  2. package/dist/nitro.json +1 -1
  3. package/dist/public/200.html +1 -1
  4. package/dist/public/404.html +1 -1
  5. package/dist/public/_nuxt/{CU-cHgDp.js → 6DTeintI.js} +1 -1
  6. package/dist/public/_nuxt/{C059D2ly.js → AdR9tqED.js} +1 -1
  7. package/dist/public/_nuxt/{D4W_YgBv.js → BH143Pz-.js} +1 -1
  8. package/dist/public/_nuxt/BHxb101O.js +1 -0
  9. package/dist/public/_nuxt/{D3lsgOGg.js → BQbrRyj1.js} +1 -1
  10. package/dist/public/_nuxt/Boxecvzt.js +1 -0
  11. package/dist/public/_nuxt/{BtGb9LkL.js → BuVS4UTW.js} +1 -1
  12. package/dist/public/_nuxt/{BqPdh3b3.js → C3YrgNlB.js} +1 -1
  13. package/dist/public/_nuxt/{D5tpRc1q.js → C5AT5PNH.js} +1 -1
  14. package/dist/public/_nuxt/{BWdW6dXs.js → CAeV2zG7.js} +1 -1
  15. package/dist/public/_nuxt/{eVN_U-F6.js → CugIO4Ok.js} +1 -1
  16. package/dist/public/_nuxt/{Bkjpr8TV.js → D08T24dG.js} +1 -1
  17. package/dist/public/_nuxt/{Cnqs6S_B.js → D8wRJGd0.js} +1 -1
  18. package/dist/public/_nuxt/D9175g8g.js +1 -0
  19. package/dist/public/_nuxt/{DsqCc3fC.js → DF0vjjh8.js} +1 -1
  20. package/dist/public/_nuxt/{Dc1J86T9.js → DFNwy14e.js} +1 -1
  21. package/dist/public/_nuxt/{Eg7r6GmC.js → DPc4aOpP.js} +1 -1
  22. package/dist/public/_nuxt/{BR2xHYez.js → DSHArhRM.js} +1 -1
  23. package/dist/public/_nuxt/{Cr_IeTC5.js → DvBiEoxc.js} +1 -1
  24. package/dist/public/_nuxt/{0cXQUs3T.js → DwGgiVOP.js} +1 -1
  25. package/dist/public/_nuxt/{CGD9uLl4.js → EGsfZg42.js} +1 -1
  26. package/dist/public/_nuxt/{JMXpOiMg.js → HmocOjc4.js} +3 -2
  27. package/dist/public/_nuxt/{z56wu47o.js → MHlmqv3A.js} +1 -1
  28. package/dist/public/_nuxt/{Q_pa0PYz.js → UNeUdORH.js} +4 -4
  29. package/dist/public/_nuxt/builds/latest.json +1 -1
  30. package/dist/public/_nuxt/builds/meta/3aca01cb-a9af-4da3-9d17-d110d7e229c4.json +1 -0
  31. package/dist/public/_nuxt/entry.O6-qt5XN.css +1 -0
  32. package/dist/public/_nuxt/{CcXhso-T.js → f6bf8PNO.js} +1 -1
  33. package/dist/public/_nuxt/mUMfez_o.js +1 -0
  34. package/dist/public/index.html +1 -1
  35. package/package.json +4 -4
  36. package/dist/public/_nuxt/BJFGPxOj.js +0 -1
  37. package/dist/public/_nuxt/BSomwWYk.js +0 -1
  38. package/dist/public/_nuxt/builds/meta/235d93ab-29e8-4de8-b81b-d46616104d4c.json +0 -1
  39. package/dist/public/_nuxt/entry.ByHxb6Pl.css +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Dc1J86T9.js","./B4prFwj0.js","./DoHg1T7s.js","./D4dwYDex.js","./Bw3sjlsE.js","./DsqCc3fC.js","./0cXQUs3T.js","./DQNu8teu.js","./JMXpOiMg.js","./CcXhso-T.js","./BtGb9LkL.js","./BqPdh3b3.js","./Bkjpr8TV.js","./C059D2ly.js","./ztSLDBsK.js","./CGD9uLl4.js","./Cr_IeTC5.js","./C7ReGOzp.js","./BSomwWYk.js","./Eg7r6GmC.js","./BJFGPxOj.js","./DWpOVjuS.js","./CQOvHI-h.js","./error-404.B3F8lAkA.css","./ChIAts7W.js","./error-500.BO-H0E44.css"])))=>i.map(i=>d[i]);
2
- import{_ as e,a as t,d as n,f as r,g as i,h as a,i as o,l as s,m as c,n as l,o as u,p as d,r as f,s as p,t as m,u as h,v as g}from"./Bw3sjlsE.js";import{$ as _,A as v,B as y,C as b,Ct as x,E as S,Et as C,H as w,I as T,J as E,L as D,M as O,N as k,O as ee,P as A,Q as j,S as M,U as te,V as ne,X as re,_ as N,a as ie,b as P,c as F,d as I,g as ae,h as oe,i as se,it as L,j as ce,l as R,m as le,q as ue,r as de,s as z,tt as fe,u as pe,v as me,wt as he,x as ge,y as _e,z as ve}from"./B4prFwj0.js";import{a as ye,c as be,n as xe,o as Se,r as Ce,s as we,t as Te}from"./DoHg1T7s.js";import{A as Ee,C as De,D as Oe,E as ke,M as Ae,O as je,S as Me,T as Ne,_ as Pe,a as Fe,b as Ie,c as Le,d as B,f as Re,g as ze,h as Be,i as Ve,j as He,k as Ue,l as We,m as Ge,n as Ke,o as qe,p as Je,r as Ye,s as Xe,t as Ze,u as Qe,v as $e,w as et,x as tt,y as nt}from"./D4dwYDex.js";import{C as rt,E as it,O as V,S as H,T as at,a as ot,b as st,c as ct,d as lt,f as ut,g as dt,h as ft,i as pt,l as mt,n as ht,o as gt,p as _t,r as vt,s as yt,t as bt,u as xt,v as St,w as Ct,x as wt,y as Tt}from"./DsqCc3fC.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function Et(e){return t=>{let n=`${e.bold(e.red(`[${t.name}]`))} ${t.message}`,r=[];return t.fix&&r.push(`${e.dim(`fix:`)} ${t.fix}`),t.sources?.length&&r.push(`${e.dim(`sources:`)} ${t.sources.join(`, `)}`),t.docs&&r.push(`${e.dim(`see:`)} ${e.cyan(t.docs)}`),r.length===0?n:[n,...r.map((t,n)=>`${e.dim(n<r.length-1?`├▶`:`╰▶`)} ${t}`)].join(`
3
- `)}}var Dt=/"(?:_|\\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*:/,Ot=/"(?: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*:/,kt=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function At(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t)jt(e);else return t}function jt(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Mt(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!kt.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(Dt.test(e)||Ot.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,At)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}var Nt=class extends Error{constructor(e,t){super(e,t),this.name=`FetchError`,t?.cause&&!this.cause&&(this.cause=t.cause)}};function Pt(e){let t=e.error?.message||e.error?.toString()||``,n=e.request?.method||e.options?.method||`GET`,r=e.request?.url||String(e.request)||`/`,i=new Nt(`${`[${n}] ${JSON.stringify(r)}`}: ${e.response?`${e.response.status} ${e.response.statusText}`:`<no response>`}${t?` ${t}`:``}`,e.error?{cause:e.error}:void 0);for(let t of[`request`,`options`,`response`])Object.defineProperty(i,t,{get(){return e[t]}});for(let[t,n]of[[`data`,`_data`],[`status`,`status`],[`statusCode`,`status`],[`statusText`,`statusText`],[`statusMessage`,`statusText`]])Object.defineProperty(i,t,{get(){return e.response&&e.response[n]}});return i}var Ft=new Set(Object.freeze([`PATCH`,`POST`,`PUT`,`DELETE`]));function It(e=`GET`){return Ft.has(e.toUpperCase())}function Lt(e){if(e===void 0)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===null?!0:t===`object`?Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name===`Object`||typeof e.toJSON==`function`:!1}var Rt=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]),zt=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Bt(e=``){if(!e)return`json`;let t=e.split(`;`).shift()||``;return zt.test(t)?`json`:t===`text/event-stream`?`stream`:Rt.has(t)||t.startsWith(`text/`)?`text`:`blob`}function Vt(e,t,n,r){let i=Ht(t?.headers??e?.headers,n?.headers,r),a;return(n?.query||n?.params||t?.params||t?.query)&&(a={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:a,params:a,headers:i}}function Ht(e,t,n){if(!t)return new n(e);let r=new n(t);if(e)for(let[t,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(t,i);return r}async function Ut(e,t){if(t){if(Array.isArray(t))for(let n of t)await n(e);else await t(e)}}var Wt=new Set([408,409,425,429,500,502,503,504]),Gt=new Set([101,204,205,304]);function Kt(e={}){let{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function i(e){let t=e.error&&e.error.name===`AbortError`&&!e.options.timeout||!1;if(e.options.retry!==!1&&!t){let t;t=typeof e.options.retry==`number`?e.options.retry:+!It(e.options.method);let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):Wt.has(n))){let n=typeof e.options.retryDelay==`function`?e.options.retryDelay(e):e.options.retryDelay||0;return n>0&&await new Promise(e=>setTimeout(e,n)),a(e.request,{...e.options,retry:t-1})}}let n=Pt(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,a),n}let a=async function(a,o={}){let s={request:a,options:Vt(a,o,e.defaults,n),response:void 0,error:void 0};if(s.options.method&&(s.options.method=s.options.method.toUpperCase()),s.options.onRequest&&(await Ut(s,s.options.onRequest),s.options.headers instanceof n||(s.options.headers=new n(s.options.headers||{}))),typeof s.request==`string`&&(s.options.baseURL&&(s.request=je(s.request,s.options.baseURL)),s.options.query&&(s.request=Ue(s.request,s.options.query),delete s.options.query),`query`in s.options&&delete s.options.query,`params`in s.options&&delete s.options.params),s.options.body&&It(s.options.method)){if(Lt(s.options.body)){let e=s.options.headers.get(`content-type`);typeof s.options.body!=`string`&&(s.options.body=e===`application/x-www-form-urlencoded`?new URLSearchParams(s.options.body).toString():JSON.stringify(s.options.body)),e||s.options.headers.set(`content-type`,`application/json`),s.options.headers.has(`accept`)||s.options.headers.set(`accept`,`application/json`)}else(`pipeTo`in s.options.body&&typeof s.options.body.pipeTo==`function`||typeof s.options.body.pipe==`function`)&&(`duplex`in s.options||(s.options.duplex=`half`))}let c;if(!s.options.signal&&s.options.timeout){let e=new r;c=setTimeout(()=>{let t=Error(`[TimeoutError]: The operation was aborted due to timeout`);t.name=`TimeoutError`,t.code=23,e.abort(t)},s.options.timeout),s.options.signal=e.signal}try{s.response=await t(s.request,s.options)}catch(e){return s.error=e,s.options.onRequestError&&await Ut(s,s.options.onRequestError),await i(s)}finally{c&&clearTimeout(c)}if((s.response.body||s.response._bodyInit)&&!Gt.has(s.response.status)&&s.options.method!==`HEAD`){let e=(s.options.parseResponse?`json`:s.options.responseType)||Bt(s.response.headers.get(`content-type`)||``);switch(e){case`json`:{let e=await s.response.text(),t=s.options.parseResponse||Mt;s.response._data=t(e);break}case`stream`:s.response._data=s.response.body||s.response._bodyInit;break;default:s.response._data=await s.response[e]()}}return s.options.onResponse&&await Ut(s,s.options.onResponse),!s.options.ignoreResponseError&&s.response.status>=400&&s.response.status<600?(s.options.onResponseError&&await Ut(s,s.options.onResponseError),await i(s)):s.response},o=async function(e,t){return(await a(e,t))._data};return o.raw=a,o.native=(...e)=>t(...e),o.create=(t={},n={})=>Kt({...e,...n,defaults:{...e.defaults,...n.defaults,...t}}),o}var qt=(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 Error(`unable to locate global object`)})(),Jt=qt.fetch?(...e)=>qt.fetch(...e):()=>Promise.reject(Error(`[ofetch] global.fetch is not supported!`)),Yt=qt.Headers,Xt=qt.AbortController,Zt=Kt({fetch:Jt,Headers:Yt,AbortController:Xt}),Qt=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,$t=()=>Qt().app,en=()=>$t().baseURL,tn=()=>$t().buildAssetsDir,nn=(...e)=>Ne(rn(),tn(),...e),rn=(...e)=>{let t=$t(),n=t.cdnURL||t.baseURL;return e.length?Ne(n,...e):n};globalThis.__buildAssetsURL=nn,globalThis.__publicAssetsURL=rn,globalThis.$fetch||(globalThis.$fetch=Zt.create({baseURL:en()}));var an=globalThis.$fetch;`global`in globalThis||(globalThis.global=globalThis);function on(e,t){t.push(p),e.vueApp.use(t);let n=!0,r=()=>{n=!1,t.render()};t.hooks?.hook(`dom:beforeRender`,e=>{e.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);let i=t.push.bind(t);t.push=((t,n)=>{let r=i(t,n),a=r.dispose.bind(r);return r.dispose=()=>{let t=e[`~transitionPromise`];t?t.finally(a):a()},r})}function sn(e,t){if(typeof t==`function`&&t.key&&e.plugins.has(t.key))return;let n=typeof t==`function`?t(e):t,r=n.key||String(e.plugins.size+1);if(!e.plugins.get(r)){e.plugins.set(r,n);for(let t in n.hooks||{})e.hooks?.hook(t,n.hooks[t])}}function cn(e,t={}){let n=!t.document,r=new Map,i={_entryCount:1,_h:0,plugins:new Map,resolvedOptions:t,ssr:n,entries:r,hooks:void 0,render:()=>e(i),use:e=>sn(i,e),push(e,t){let a=t?._index??i._entryCount++,o=t?{...t}:{};delete o.head,delete o.onRendered,delete o._index;let s={_i:a,input:e,options:o};return r.set(a,s),{_i:a,dispose(){r.delete(a)},patch(e){n?(s.input=e,delete s._tags):s._pending=e,r.has(a)||r.set(a,s)}}}};return t.init?.forEach(e=>e&&i.push(e)),i}var ln=new Set([`link`,`style`,`script`,`noscript`]),un=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),dn=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),fn=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),pn=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),mn=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),hn=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),gn=new Set([`theme-color`,`google-site-verification`,`author`,`og:locale:alternate`,`og:image`,`og:video`,`og:audio`,`article:author`,`article:tag`,`book:author`,`book:tag`,`twitter:image`]),_n={critical:-8,high:-1,low:2},vn=e=>typeof e==`number`?Number.isFinite(e):e;function yn(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function bn(e){let t=new d;for(let n in e||{})t.hook(n,e[n]);return t}function xn(e,t,n){if(e.hooks?._hooks?.[t]?.length)return e.hooks?.callHook(t,n)}function Sn(e,t,n){let r=e.push,i=e;i.ssr=!1,i.hooks=t,i.dirty=!!i.dirty,i.use=e=>sn(i,e),i.render=()=>n(i);function a(){t.callHook(`entries:updated`,i),i._b||i.render()}return i.invalidate=()=>{for(let e of i.entries.values())delete e._tags;i.dirty=!0,a()},i.push=(n,o)=>{let s=o?.onRendered?t.hook(`dom:rendered`,o.onRendered):void 0,c=r(n,o),l=e.entries.get(c._i);return l&&(l._o=n),i.dirty=!0,a(),{_i:c._i,patch(e){c.patch(e),i.dirty=!0,a()},dispose(){s?.(),e.entries.has(c._i)&&(c.dispose(),i.invalidate())}}},i}var Cn=/^(?:viewport|description|keywords|robots)$/,wn=[`name`,`property`,`http-equiv`];function Tn(e){let t=e.indexOf(`:`);if(t===-1)return!1;let n=e.slice(t+1);return gn.has(n)||n.startsWith(`og:image:`)||n.startsWith(`og:video:`)||n.startsWith(`og:audio:`)||n.startsWith(`twitter:image:`)}function En(e){let{props:t,tag:n,key:r}=e;if(pn.has(n))return n;if(n===`link`){if(t.rel===`canonical`)return`canonical`;if(t.rel===`alternate`&&t.hreflang)return`alternate:${t.hreflang}`}if(t.charset)return`charset`;if(n===`meta`)for(let e of wn){let n=t[e];if(n!==void 0)return`meta:${n}${(typeof n!=`string`||!n.includes(`:`))&&!Cn.test(n)&&r?`:key:${r}`:``}`}return r?`${n}:key:${r}`:t.id?`${n}:id:${t.id}`:n===`link`&&t.rel&&t.href?`link:${t.rel}:${t.href}`:un.has(n)&&(e.textContent||e.innerHTML)?`${n}:content:${e.textContent||e.innerHTML}`:void 0}function Dn(e){let t=e._h||e._d||e.textContent||e.innerHTML;if(t)return String(t);let n=Object.keys(e.props).sort(),r=`${e.tag}:`,i=``;for(let t of n)r+=`${i}${t}:${String(e.props[t])}`,i=`,`;return r}function On(e,t,n){if(n===`_resolver`)return e;typeof e==`function`&&(!n||n!==`titleTemplate`&&!n.startsWith(`on`))&&(e=e());let r=t?t(n,e):e;if(Array.isArray(r)){let e;for(let n=0;n<r.length;n++){let i=On(r[n],t);e?e[n]=i:i!==r[n]&&(e=r.slice(0,n),e[n]=i)}return e||r}if(r?.constructor===Object){let e;for(let n in r){let i=yn(n),a=i?void 0:On(r[n],t,n);if(!e&&(i||a!==r[n])){e={};for(let t in r){if(t===n)break;e[t]=r[t]}}e&&!i&&(e[n]=a)}return e||r}return r}var kn=/[\s"'<>/=\x00-\x1F\x7F]/;function An(e,t){let n=e===`style`,r=n?new Map:new Set,i=e=>{if(e){if(n){let t=e.indexOf(`:`);t>0&&r.set(e.slice(0,t).trim(),e.slice(t+1).trim())}else e.split(` `).forEach(e=>e&&r.add(e))}};if(typeof t==`string`)(n?t.split(`;`):[t]).forEach(i);else if(Array.isArray(t))t.forEach(i);else if(t&&typeof t==`object`)for(let e in t){let a=t[e];a&&a!==`false`&&(n?r.set(e.trim(),String(a)):i(e))}return r}function jn(e,t){if(e.props=e.props||{},!t)return e;if(e.tag===`templateParams`)return e.props=t,e;let n=dn.has(e.tag)||e.tag===`htmlAttrs`||e.tag===`bodyAttrs`;for(let r in t){if(yn(r))continue;let i=r.startsWith(`data-`),a=n&&!mn.has(r),o=a&&!i?r.toLowerCase():r;if(a&&(!o||kn.test(o)))continue;let s=t[r];if(s===null)e.props[o]=null;else if(r===`class`||r===`style`)e.props[r]=An(r,s);else if(mn.has(r)){if((r===`textContent`||r===`innerHTML`)&&typeof s==`object`){let n=t.type||`application/json`;(n.endsWith(`json`)||n===`speculationrules`||n===`importmap`)&&(e.props.type=n,e[r]=JSON.stringify(s))}else e[r]=s}else if(s!==void 0){let t=String(s),n=e.tag===`meta`&&o===`content`;e.props[o]=t===`true`||t===``?i||n?t:!0:!s&&i&&t===`false`?`false`:s}}return e}function Mn(e,t){let n;return t.length&&(n=(e,n)=>{for(let r=0;r<t.length;r++)n=t[r](e,n);return n},e=n(void 0,e)),On(e,n)}function Nn(e,t){let n=jn({tag:e,props:{}},typeof t==`object`&&typeof t!=`function`?t:{[e===`script`||e===`noscript`||e===`style`?`innerHTML`:`textContent`]:t});if(n.key&&ln.has(n.tag)&&(n.props[`data-hid`]=n._h=n.key),n.tag===`script`&&typeof n.innerHTML==`object`&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||`application/json`),Array.isArray(n.props.content)){let e=[];for(let t of n.props.content)e.push({...n,props:{...n.props,content:t}});return e}return n}function Pn(e,t){if(Array.isArray(t))for(let n of t)e.push(n);else e.push(t)}function Fn(e,t){if(!e)return[];typeof e==`function`&&(e=e()),e=Mn(e,t);let n=[];for(let t in e){let r=e[t];if(r!==void 0){if(Array.isArray(r))for(let e of r)Pn(n,Nn(t,e));else Pn(n,Nn(t,r))}}return n}var In=/</g,Ln=/<\/script/g,Rn=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,zn=()=>100;function Bn(e){for(let t in e)return!1;return!0}var Vn=/^tags:|:render/;function Hn(e,t){let n=(t[`entries:resolve`]?.length||0)+(t[`entries:normalize`]?.length||0);if(e._h!==n){e._h=n;for(let t of e.entries.values())delete t._tags}}function Un(e){for(let t=0;t<e.length;t++){let n=e[t],r={...n.props};r.class instanceof Set&&(r.class=new Set(r.class)),r.style instanceof Map&&(r.style=new Map(r.style)),e[t]={...n,props:r}}}function Wn(e,t){let n=e.tags,r=0;for(let t of e.tagMap.values())if(Array.isArray(t))for(let e of t)n[r++]=e;else n[r++]=t;n.length=r,t&&n.sort(Rn)}function Gn(e){let t=!1;for(let n of e.tags.sort(Rn)){let r=n._d||Dn(n);if(!r)continue;let i=e.tagMap.get(r);if(!i)e.tagMap.set(r,n);else if((n.tagDuplicateStrategy||(hn.has(n.tag)?`merge`:null)||(n.key&&n.key===i.key?`merge`:null))===`merge`){let t={...i.props};for(let e in n.props)t[e]=e===`style`?new Map([...i.props.style||new Map,...n.props[e]]):e===`class`?new Set([...i.props.class||[],...n.props[e]]):n.props[e];e.tagMap.set(r,{...n,props:t})}else n._p>>10==i._p>>10&&n.tag===`meta`&&Tn(r)?(e.tagMap.set(r,Object.assign([...Array.isArray(i)?i:[i],n],n)),t=!0):(n._w===i._w?n._p>i._p:n._w<i._w)&&e.tagMap.set(r,n)}return t}function Kn(e,t){let n=e.tagMap.get(`title`),r=e.tagMap.get(`titleTemplate`);if(t._title=n?.textContent,!r)return;let i=r.textContent;if(t._titleTemplate=i,!i)return;let a=typeof i==`function`?i(n?.textContent):i;typeof a==`string`&&!t.plugins.has(`template-params`)&&(a=a.replace(`%s`,n?.textContent||``)),n?a===null?e.tagMap.delete(`title`):e.tagMap.set(`title`,{...n,textContent:a}):e.tagMap.set(`titleTemplate`,{...r,tag:`title`,textContent:a})}function qn(e){let t=0;for(let n of e){let{innerHTML:r,tag:i,props:a}=n;if(fn.has(i)&&(!Bn(a)||vn(r)||vn(n.textContent))&&(i!==`meta`||vn(a.content)||a[`http-equiv`]||a.charset)){if(i===`script`&&(r||n.textContent)){let e=String(a.type),t=e.endsWith(`json`)||e===`importmap`||e===`speculationrules`,i=e=>t?(typeof e==`string`?e:JSON.stringify(e)).replace(In,`\\u003C`):typeof e==`string`?e.replace(Ln,`<\\/script`):e;n={...n},r&&(n.innerHTML=i(r)),n.textContent&&(n.textContent=i(n.textContent)),n._d=En(n)}e[t++]=n}}return e.length=t,e}function Jn(e,t){let n=t?.tagWeight??e.resolvedOptions._tagWeight??zn,r={tagMap:new Map,tags:[]},i=e.hooks?._hooks||{};Hn(e,i);for(let t of e.entries.values())t._pending!==void 0&&(t.input=t._pending,delete t._pending,delete t._tags,delete t._precomputedTags);let a;(i[`entries:resolve`]?.length||i[`entries:normalize`]?.length)&&(a=[...e.entries.values()],i[`entries:resolve`]?.length&&xn(e,`entries:resolve`,{entries:a,...r})),Hn(e,i);for(let t of a||e.entries.values()){let a=t._tags;if(!a){if(t._precomputedTags&&n===e.resolvedOptions._tagWeight&&!i[`entries:normalize`]?.length&&!i[`entries:resolve`]?.length&&(!t.options||Bn(t.options)))a=t._precomputedTags;else{if(a=Fn(t.input,e.resolvedOptions.propResolvers||[]),t.options&&!Bn(t.options))for(let e of a)Object.assign(e,t.options);if(i[`entries:normalize`]?.length){let n={tags:a,entry:t};xn(e,`entries:normalize`,n),a=n.tags}for(let e=0;e<a.length;e++){let r=a[e];r._w=n(r),r._p=(t._i<<10)+e,r._d=En(r),r._d||(r._h=Dn(r))}t._tags=a}}r.tags.push(...a)}for(let e in i)if(i[e]?.length&&Vn.test(e)){Un(r.tags);break}let o=Gn(r);return Kn(r,e),Wn(r,o),xn(e,`tags:beforeResolve`,r),xn(e,`tags:resolve`,r),xn(e,`tags:afterResolve`,r),qn(r.tags)}var Yn=/\s+/;function Xn(e={}){return t=>$n(t,e)}function Zn(e){for(let t of e.entries.values())if(t._pending!==void 0)return!0;return!1}function Qn(e,t){let n={_d:t,_t:t.title,_e:new Map([[`htmlAttrs`,t.documentElement],[`bodyAttrs`,t.body]]),_p:{},_s:{},_l:new Map};for(let t of e.entries.values())if(t._o!==void 0){let e=t._o;for(let t of[`bodyAttrs`,`htmlAttrs`]){let r=e[t]?.class;if(typeof r==`string`){let e=n._e.get(t);for(let i of r.split(Yn))i&&(n._p[`${t}:attr:class:${i}`]=()=>e.classList.remove(i))}}}return n}function $n(e,t={}){let n=t.document||e.resolvedOptions.document,r=e._dom;if(!n||e._du||r&&r._d===n&&!e.dirty&&!Zn(e))return!1;let i=n.defaultView;e._du=!0;let a=!1;try{let o=function(e,t,n){d._s[e]=!n&&f[e]||t,delete f[e]},s=function(e,t,n,r,i,a){let s=`${e}:event:${t}`,c=d._l.get(s);if(c&&c[0]===a&&c[1]===n&&c[2]===r){o(s,c[4]);return}c?.[4]();let l=`data-${t}`,u=(e=>r.call(i,e)),f=()=>{a.removeEventListener(n,u),i.getAttribute(l)===``&&i.removeAttribute(l),d._l.get(s)?.[3]===u&&d._l.delete(s)};a.addEventListener(n,u),d._l.set(s,[a,n,r,u,f]),i.setAttribute(l,``),o(s,f,!0)},c=function({id:e,$el:t,tag:n}){if(d._e.set(e,t),!n.tag.endsWith(`Attrs`)){let r=n.textContent;r!=null&&r!==``&&(r!==t.textContent&&(t.textContent=r),o(`${e}:text`,()=>{t.textContent===r&&(t.textContent=``)},!0));let i=n.innerHTML;i!=null&&i!==``&&(i!==t.innerHTML&&(t.innerHTML=i),o(`${e}:html`,()=>{t.innerHTML===i&&(t.innerHTML=``)},!0));let a=`${e}:el`;o(a,f[a]||(()=>{t?.remove(),d._e.delete(e)}))}for(let r in n.props){let a=n.props[r];if(r[0]===`o`&&r[1]===`n`&&typeof a==`function`){let o=r.slice(2);t?.dataset?.[`${r}fired`]&&a.call(t,new((i?.Event)||Event)(o)),s(e,r,o,a,t,n.tag===`bodyAttrs`&&i?i:t);continue}let c=`${e}:attr:${r}`;if(r===`class`&&a)for(let e of a){let n=`${c}:${e}`;o(n,f[n]||(()=>t.classList.remove(e))),t.classList.contains(e)||t.classList.add(e)}else if(r===`style`&&a)for(let[e,n]of a){let r=`${c}:${e}`;o(r,f[r]||(()=>t.style.removeProperty(e))),t.style.setProperty(e,n)}else a!==!1&&a!==null&&(t.getAttribute(r)!==a&&t.setAttribute(r,a===!0?``:String(a)),o(c,f[c]||(()=>t.removeAttribute(r))))}},l={shouldRender:!0,tags:[]};if(xn(e,`dom:beforeRender`,l),!l.shouldRender)return!1;let u=r;if(u?._d!==n){if(u){for(let e in u._s)u._s[e]();for(let e in u._p)u._p[e]();u._s=u._p={},u._e.clear(),u._l.clear()}u=void 0}u?u._p=u._s:u=Qn(e,n),u._s={};let d=u,f=d._p,p=[],m={};e.dirty=!1;let h=Jn(e,t.tagWeight?{tagWeight:t.tagWeight}:void 0),g=[],_={};for(let e of h){let t=_[e._d]||0,r=(t?`${e._d}:${t}`:e._d)||e._h,i={tag:e,id:r,shouldRender:!0};e.tag===`meta`&&e._d&&Tn(e._d)&&(_[e._d]=t+1),g.push(i),e.tag===`title`?(n.title=e.textContent,o(`title:`,()=>n.title=d._t)):(i.$el=d._e.get(r),i.$el?c(i):dn.has(e.tag)&&p.push(i))}if(p.length){let e=new Set(d._e.values());for(let t of[...n.body.children,...n.head.children]){let n=t.tagName.toLowerCase();if(!dn.has(n)||e.has(t))continue;let r={innerHTML:t.innerHTML};for(let e of t.getAttributeNames())r[e]=t.getAttribute(e);let i=jn({tag:n,props:{}},r);i.key=t.getAttribute(`data-hid`)||void 0;let a=En(i)||Dn(i),o=a,s=1;for(;d._e.has(o);)o=`${a}:${s++}`;d._e.set(o,t)}}for(let e of p){let t=d._e.get(e.id);e.$el=t||n.createElement(e.tag.tag),c(e),t||(m[e.tag.tagPosition||`head`]??=n.createDocumentFragment()).appendChild(e.$el)}m.head&&n.head.appendChild(m.head),m.bodyOpen&&n.body.insertBefore(m.bodyOpen,n.body.firstChild),m.bodyClose&&n.body.appendChild(m.bodyClose);for(let e in f)f[e]();e._dom=d,a=!0,xn(e,`dom:rendered`,{renders:g})}catch(t){throw e.dirty=!0,t}finally{e._du=!1}return a&&(e.dirty||Zn(e))&&$n(e,t),a}var er=e=>typeof e.tagPriority==`number`?e.tagPriority:100+(_n[e.tagPriority]||0);function tr(e={}){e.document=e.document||(typeof window<`u`?document:void 0);let t=e.render||Xn({document:e.document}),n=Sn(cn(t,{document:e.document,propResolvers:e.propResolvers,_tagWeight:er,init:[]}),bn(e.hooks),t);return e.plugins?.forEach(e=>n.use(e)),e.init?.forEach(e=>e&&n.push(e)),n}var nr=`usehead`;function rr(){if(ge()){let e=M(nr);if(e)return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function ir(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(nr,e)}}.install}function ar(e,t){return t&&typeof e==`function`&&(e.key=t),e}var or=/\\/g,sr=/</g,cr=/"/g,lr=/%\w+(?:\.\w+)?/g,ur=`%separator`;function dr(e,t,n=!1){let r;if(t===`s`||t===`pageTitle`)r=e.pageTitle;else if(t.includes(`.`)){let n=t.indexOf(`.`);r=e[t.substring(0,n)]?.[t.substring(n+1)]}else r=e[t];if(r!==void 0){let e=String(typeof r==`number`?r:r||``);return n?e.replace(or,`\\\\`).replace(sr,`\\u003C`).replace(cr,`\\"`):e}}function fr(e,t,n,r=!1){if(typeof e!=`string`||!e.includes(`%`))return e;let i=e;try{i=decodeURI(e)}catch{}let a=i.match(lr);if(!a)return e;let o=e.includes(ur);return e=e.replace(lr,e=>{if(e===ur||!a.includes(e))return e;let n=dr(t,e.slice(1),r);return n===void 0?e:n}).trim(),o&&(e=e.split(ur).map(e=>e.trim()).filter(e=>e!==``).join(n?` ${n} `:` `)),e}var pr=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,mr=e=>e.includes(`:key`)?e:e.split(`:`).join(`:key:`),hr=ar({key:`aliasSorting`,hooks:{"tags:resolve":e=>{let t=!1;for(let n of e.tags){let r=n.tagPriority;if(!r)continue;let i=String(r);if(i.startsWith(`before:`)){let r=mr(i.slice(7)),a=e.tagMap.get(r);a&&(typeof a.tagPriority==`number`&&(n.tagPriority=a.tagPriority),n._p=a._p-1,t=!0)}else if(i.startsWith(`after:`)){let r=mr(i.slice(6)),a=e.tagMap.get(r);a&&(typeof a.tagPriority==`number`&&(n.tagPriority=a.tagPriority),n._p=a._p+1,t=!0)}}t&&(e.tags=e.tags.sort(pr))}}}),gr=ar({key:`deprecations`,hooks:{"entries:normalize":({tags:e})=>{for(let t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),`body`in t.props&&(t.props.body&&(t.tagPosition=`bodyClose`),delete t.props.body),t.props.renderPriority!=null&&(t.tagPriority=t.props.renderPriority,delete t.props.renderPriority)}}});function _r(e){return typeof e?.then==`function`}var vr=256;function yr(e,t){if(t===e.length)return;if(t===vr){let n=Array(e.length),r=!1;for(;t<e.length;t++){let i=xr(e[t]);n[t]=i,r||=_r(i)}return r?n:void 0}let n=xr(e[t]);if(_r(n)){let r=Array(e.length);r[t]=n;for(let n=t+1;n<e.length;n++)r[n]=xr(e[n]);return r}let r=yr(e,t+1);return r&&(r[t]=n),r}function br(e,t,n){if(n===t.length)return;if(n===vr){let r=Array(t.length),i=!1;for(;n<t.length;n++){let a=xr(e[t[n]]);r[n]=a,i||=_r(a)}return i?r:void 0}let r=xr(e[t[n]]);if(_r(r)){let i=Array(t.length);i[n]=r;for(let r=n+1;r<t.length;r++)i[r]=xr(e[t[r]]);return i}let i=br(e,t,n+1);return i&&(i[n]=r),i}function xr(e){if(typeof e==`function`)return e;if(_r(e))return Promise.resolve(e).then(xr);if(Array.isArray(e)){let t=yr(e,0);return t?Promise.all(t):e}if(e?.constructor===Object){let t=Object.keys(e),n=br(e,t,0);if(n)return Promise.all(n).then(e=>Object.fromEntries(t.map((t,n)=>[t,e[n]])))}return e}var Sr=ar(e=>{let t=new WeakMap;return{key:`promises`,hooks:{"entries:resolve":n=>{for(let r=n.entries.length-1;r>=0;r--){let i=n.entries[r],a=i.input;if(t.get(i)===a){n.entries.splice(r,1);continue}let o=xr(a);_r(o)?(t.set(i,a),n.entries.splice(r,1),Promise.resolve(o).then(n=>{t.get(i)===a&&(t.delete(i),i.input=n,delete i._tags,e.invalidate?.())},()=>{t.get(i)===a&&t.delete(i)})):t.delete(i)}}}}},`promises`),Cr={meta:`content`,link:`href`,htmlAttrs:`lang`},wr=[`innerHTML`,`textContent`];function Tr(e,t,n,r=!1){return typeof e==`string`&&e.includes(`%`)?fr(e,t,n,r):e}var Er=ar(e=>({key:`template-params`,hooks:{"tags:resolve":({tagMap:t,tags:n})=>{let r=t.get(`templateParams`)?.props||{},i=r.separator||`|`;delete r.separator,r.pageTitle=Tr(r.pageTitle||e._title||``,r,i);for(let e of n){if(e.processTemplateParams===!1)continue;let t=Cr[e.tag];if(t&&typeof e.props[t]==`string`)e.props[t]=Tr(e.props[t],r,i);else if(e.processTemplateParams||e.tag===`titleTemplate`||e.tag===`title`)for(let t of wr)typeof e[t]==`string`&&(e[t]=Tr(e[t],r,i,e.tag===`script`&&typeof e.props.type==`string`&&e.props.type.endsWith(`json`)))}e._templateParams=r,e._separator=i},"tags:afterResolve":({tagMap:t})=>{let n=t.get(`title`);n?.textContent&&n.processTemplateParams!==!1&&(n.textContent=Tr(n.textContent,e._templateParams,e._separator))}}}),`template-params`);function Dr(e={}){let t=Xn(),n,r=0;return n=tr({render:()=>{let e=++r;setTimeout(()=>{e===r&&t(n)},0)},...e}),n.install=ir(n),n}var Or={disableDefaults:!0,plugins:[gr,Sr,Er,hr]},kr=f({name:`nuxt:head`,enforce:`pre`,setup(e){on(e,Dr(Or))}}),Ar=/(:\w+)\([^)]+\)/g,jr=/(:\w+)[?+*]/g,Mr=/:\w+/g,Nr=(e,t)=>t.path.replace(Ar,`$1`).replace(jr,`$1`).replace(Mr,t=>e.params[t.slice(1)]?.toString()||``),Pr=(e,t)=>{let n=e.route.matched.find(t=>t.components?.default===e.Component.type),r=t??n?.meta.key??(n&&Nr(e.route,n));return typeof r==`function`?r(e.route):r},Fr=(e,t)=>({default:()=>e?P(se,e===!0?{}:e,t):t});function Ir(e){return Array.isArray(e)?e:[e]}var Lr=()=>({}),Rr=e=>e.startsWith(`/`);function zr(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Br(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&zr(e.default)}var U=Object.assign;function Vr(e,t){let n={};for(let r in t){let i=t[r];n[r]=W(i)?i.map(e):e(i)}return n}var Hr=()=>{},W=Array.isArray;function Ur(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var Wr=Symbol(``),Gr=function(e){return e[e.aborted=4]=`aborted`,e[e.cancelled=8]=`cancelled`,e[e.duplicated=16]=`duplicated`,e}({});function Kr(e,t){return U(Error(),{type:e,[Wr]:!0},t)}function G(e,t){return e instanceof Error&&Wr in e&&(t==null||!!(e.type&t))}var qr=Symbol(``),Jr=Symbol(``),Yr=Symbol(``),Xr=Symbol(``),Zr=Symbol(``),Qr=Symbol(``),$r=typeof document<`u`,ei=/#/g,ti=/&/g,ni=/\//g,ri=/=/g,ii=/\?/g,ai=/\+/g,oi=/%5B/g,si=/%5D/g,ci=/%5E/g,li=/%60/g,ui=/%7B/g,di=/%7C/g,fi=/%7D/g,pi=/%20/g;function mi(e){return e==null?``:encodeURI(``+e).replace(di,`|`).replace(oi,`[`).replace(si,`]`)}function hi(e){return mi(e).replace(ui,`{`).replace(fi,`}`).replace(ci,`^`)}function gi(e){return mi(e).replace(ai,`%2B`).replace(pi,`+`).replace(ei,`%23`).replace(ti,`%26`).replace(li,"`").replace(ui,`{`).replace(fi,`}`).replace(ci,`^`)}function _i(e){return gi(e).replace(ri,`%3D`)}function vi(e){return mi(e).replace(ei,`%23`).replace(ii,`%3F`)}function yi(e){return vi(e).replace(ni,`%2F`)}function bi(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var xi=/\/$/,Si=e=>e.replace(xi,``);function Ci(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=ji(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:bi(o)}}function wi(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Ti(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Ei(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Di(t.matched[r],n.matched[i])&&Oi(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Di(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Oi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!ki(e[n],t[n]))return!1;return!0}function ki(e,t){return W(e)?Ai(e,t):W(t)?Ai(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Ai(e,t){return W(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function ji(e,t){if(Rr(e))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`){if(s===`..`)a>1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var K={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function Mi(e){if(!e){if($r){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Si(e)}var Ni=/^[^#]+#/;function Pi(e,t){return e.replace(Ni,`#`)+t}function Fi(e,t){let 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)}}var Ii=()=>history.scrollRestoration===`manual`?{left:window.scrollX,top:window.scrollY}:null;function Li(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Fi(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Ri(e,t){return(history.state?history.state.position-t:-1)+e}var zi=new Map;function Bi(e){zi.set(e,Ii())}function Vi(e){let t=zi.get(e);return zi.delete(e),t}function Hi(e,t=!1){for(let n of zi.keys()){let r=parseInt(n,10);(r===e||!t&&r>e)&&zi.delete(n)}}function Ui(e){return typeof e==`string`||e&&typeof e==`object`}function Wi(e){return typeof e==`string`||typeof e==`symbol`}function Gi(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(ai,` `),i=r.indexOf(`=`),a=bi(i<0?r:r.slice(0,i)),o=i<0?null:bi(r.slice(i+1));if(a in t){let e=t[a];W(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Ki(e){let t=``;for(let n in e){let r=e[n];n=_i(n),r==null?r!==void 0&&(t+=(t.length?`&`:``)+n):(W(r)?r.map(e=>e&&gi(e)):[r&&gi(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function qi(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=W(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Ji(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Yi(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(Kr(4,{from:n,to:t})):e instanceof Error?c(e):Ui(e)?c(Kr(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Xi(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(t===`beforeRouteEnter`||o.instances[e]){if(zr(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Yi(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Br(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Yi(c,n,r,o,e,i)()}))}}}return a}function Zi(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>Di(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>Di(e,s))||i.push(s))}return[n,r,i]}var Qi=()=>location.protocol+`//`+location.host;function $i(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Ti(n,``)}return Ti(n,e)+r+i}function ea(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=$i(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){let{history:e}=window;e.state&&e.replaceState(U({},e.state,{scroll:Ii()}),``)}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),{pauseListeners:c,listen:l,destroy:d}}function ta(e,t,n,r=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:null}}function na(e){let{history:t,location:n}=window,r={value:$i(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Qi()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){let o=U({},t.state,ta(i.value.back,e,i.value.forward,!0),n,{position:i.value.position});a(e,o,!0),Hi(o.position,!0),r.value=e}function s(e,n){let o=U({},i.value,t.state,{forward:e,scroll:Ii()});a(o.current,o,!0),a(e,U({},ta(r.value,e,null),{position:o.position+1},n),!1),Hi(o.position),r.value=e}return{location:r,state:i,push:s,replace:o}}function ra(e){e=Mi(e);let t=na(e),n=ea(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=U({location:``,base:e,go:r,createHref:Pi.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function ia(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),ra(e)}var aa={type:0,value:``},oa=/[a-zA-Z0-9_]/;function sa(e){if(!e)return[[]];if(e===`/`)return[[aa]];if(!Rr(e))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:oa.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var ca=`[^/]+?`,la={sensitive:!1,strict:!1,start:!0,end:!0},ua=/[.+*?^${}()[\]/\\]/g;function da(e,t){let n=U({},la,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(ua,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||ca;if(u!==ca){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(W(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=W(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function fa(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function pa(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=fa(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(ma(r))return 1;if(ma(i))return-1}return i.length-r.length}function ma(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var ha={strict:!1,end:!0,sensitive:!1};function ga(e,t,n){let r=U(da(sa(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function _a(e,t){let n=[],r=new Map;t=Ur(ha,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=ya(e);s.aliasOf=r&&r.record;let l=Ur(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(ya(U({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&!Rr(u)){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=ga(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!xa(d)&&o(e.name)),Ta(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:Hr}function o(e){if(Wi(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Ca(e,n);n.splice(t,0,e),e.record.name&&!xa(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw Kr(1,{location:e});s=i.record.name,a=U(va(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&va(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw Kr(1,{location:e,currentLocation:t});s=i.record.name,a=U({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Sa(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function va(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function ya(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:ba(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function ba(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function xa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Sa(e){return e.reduce((e,t)=>U(e,t.meta),{})}function Ca(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;pa(e,t[i])<0?r=i:n=i+1}let i=wa(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function wa(e){let t=e;for(;t=t.parent;)if(Ta(t)&&pa(e,t)===0)return t}function Ta({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ea(e){let t=M(Yr),n=M(Xr),r=z(()=>{let n=L(e.to);return t.resolve(n)}),i=z(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(Di.bind(null,i));if(o>-1)return o;let s=ja(e[t-2]);return t>1&&ja(i)===s&&a[a.length-1].path!==s?a.findIndex(Di.bind(null,e[t-2])):o}),a=z(()=>i.value>-1&&Aa(n.params,r.value.params)),o=z(()=>i.value>-1&&i.value===n.matched.length-1&&Oi(n.params,r.value.params));function s(n={}){if(ka(n)){let n=t[L(e.replace)?`replace`:`push`](L(e.to)).catch(Hr);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:z(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Da(e){return e.length===1?e[0]:e}var Oa=N({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Ea,setup(e,{slots:t}){let n=re(Ea(e)),{options:r}=M(Yr),i=z(()=>({[Ma(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Ma(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Da(t.default(n));return e.custom?r:P(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function ka(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){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Aa(e,t){for(let n in t){let r=t[n],i=e[n];if(W(r)){if(!W(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}else if(r!==i)return!1}return!0}function ja(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Ma=(e,t,n)=>e??t??n,Na=N({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=M(Zr),i=z(()=>e.route||r.value),a=M(Jr,0),o=z(()=>{let e=L(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=z(()=>i.value.matched[o.value]);k(Jr,z(()=>o.value+1)),k(qr,s),k(Zr,i);let c=new Set;k(Qr,c);let l=j(),u=K,{app:d}=me().appContext;return y(()=>[l.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Di(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,f=o&&o.components[a];if(!f)return Pa(n.default,{Component:f,route:r});let p=o.props[a],m=p?p===!0?r.params:typeof p==`function`?p(r):p:null,h=e=>{e.component.isUnmounted&&(o.instances[a]=null)},g=e=>S(()=>{if(u===r||i.value!==r||e.el.getRootNode()!==d._container.getRootNode())return;let t=u;u=r;for(let e of c)e(r,t)}),_=P(f,U({},m,t,{onVnodeUnmounted:h,onVnodeMounted:g,onVnodeUpdated:g,ref:l}));return Pa(n.default,{Component:_,route:r})||_}}});function Pa(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Fa=Na;function Ia(e){let t=e.matcher||_a(e.routes,e),n=e.parseQuery||Gi,r=e.stringifyQuery||Ki,i=e.history,a=Ji(),o=Ji(),s=Ji(),c=fe(K),l=fe(0),u=K;$r&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let d=Vr.bind(null,e=>``+e),f=Vr.bind(null,yi),p=Vr.bind(null,bi);function m(e,n){let r,i;Wi(e)?(r=t.getRecordMatcher(e),i=n):i=e;let a=t.addRoute(i,r);return l.value++,()=>{a(),l.value++}}function h(e){let n=t.getRecordMatcher(e);n&&(t.removeRoute(n),l.value++)}function g(){t.clearRoutes(),l.value++}function v(){return t.getRoutes().map(e=>e.record)}function y(e){return!!t.getRecordMatcher(e)}function b(e,a){if(l.value,typeof e==`string`){a||=e.startsWith(`/`)?K:c.value;let r=Ci(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return U(r,o,{params:p(o.params),redirectedFrom:void 0,href:s})}a=U({},a||(e.path!=null&&e.path.startsWith(`/`)&&!(`name`in e&&e.name)?K:c.value));let o;if(e.path!=null)o=U({},e,{path:Ci(n,e.path,a.path).path});else{let t=U({},e.params);for(let e in t)t[e]??delete t[e];o=U({},e,{params:f(t)}),a.params=f(a.params)}let s=t.resolve(o,a),u=e.hash||``;s.params=d(p(s.params));let m=wi(r,U({},e,{hash:hi(u),path:s.path})),h=i.createHref(m);return U({fullPath:m,hash:u,query:r===Ki?qi(e.query):e.query||{}},s,{redirectedFrom:void 0,href:h})}function x(e){return typeof e==`string`?Ci(n,e,c.value.path):U({},e)}function C(e,t){if(u!==e)return Kr(8,{from:t,to:e})}function w(e){return D(e)}function T(e){return w(U(x(e),{replace:!0}))}function E(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=x(i):{path:i},i.params={}),U({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function D(e,t){let n=u=b(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,l=E(n,i);if(l)return D(U(x(l),{state:typeof l==`object`?U({},a,l.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&Ei(r,i,n)&&(f=Kr(16,{to:d,from:i}),I(i,i,!0,!1)),(f?Promise.resolve(f):ee(d,i)).catch(e=>G(e)?G(e,2)?e:F(e):ie(e,d,i)).then(e=>{if(e){if(G(e,2))return D(U({replace:s},x(e.to),{state:typeof e.to==`object`?U({},a,e.to.state):a,force:o}),t||d)}else e=j(d,i,!0,s,a);return A(d,i,e),e})}function O(e,t){let n=C(e,t);return n?Promise.reject(n):Promise.resolve()}function k(e){let t=se.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function ee(e,t){let n,[r,i,s]=Zi(e,t);n=Xi(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Yi(r,e,t))});let c=O.bind(null,e,t);return n.push(c),R(n).then(()=>{n=[];for(let r of a.list())n.push(Yi(r,e,t));return n.push(c),R(n)}).then(()=>{n=Xi(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Yi(r,e,t))});return n.push(c),R(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter){if(W(r.beforeEnter))for(let i of r.beforeEnter)n.push(Yi(i,e,t));else n.push(Yi(r.beforeEnter,e,t))}return n.push(c),R(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Xi(s,`beforeRouteEnter`,e,t,k),n.push(c),R(n))).then(()=>{n=[];for(let r of o.list())n.push(Yi(r,e,t));return n.push(c),R(n)}).catch(e=>G(e,8)?e:Promise.reject(e))}function A(e,t,n){s.list().forEach(r=>k(()=>r(e,t,n)))}function j(e,t,n,r,a){let o=C(e,t);if(o)return o;let s=t===K,l=$r?history.state:{};n&&(r||s?i.replace(e.fullPath,U({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,I(e,t,n,s),F()}let M;function te(){M||=i.listen((e,t,n)=>{if(!ce.listening)return;let r=b(e),a=E(r,ce.currentRoute.value);if(a){D(U(a,{replace:!0,force:!0}),r).catch(Hr);return}u=r;let o=c.value;$r&&n.delta&&Bi(Ri(o.fullPath,n.delta)),ee(r,o).catch(e=>G(e,12)?e:G(e,2)?(D(U(x(e.to),{force:!0}),r).then(e=>{G(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(Hr),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ie(e,r,o))).then(e=>{e||=j(r,o,!1),e&&(n.delta&&!G(e,8)?i.go(-n.delta,!1):n.type===`pop`&&G(e,20)&&i.go(-1,!1)),A(r,o,e)}).catch(Hr)})}let ne=Ji(),re=Ji(),N;function ie(e,t,n){F(e);let r=re.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function P(){return N&&c.value!==K?Promise.resolve():new Promise((e,t)=>{ne.add([e,t])})}function F(e){return N||(N=!e,te(),ne.list().forEach(([t,n])=>e?n(e):t()),ne.reset()),e}function I(t,n,r,i){let{scrollBehavior:a}=e;if(!$r||!a)return Promise.resolve();let o=!r&&Vi(Ri(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return S().then(()=>a(t,n,o)).then(e=>t===c.value&&e&&Li(e)).catch(e=>t===c.value&&ie(e,t,n))}let ae=e=>i.go(e),oe,se=new Set,ce={currentRoute:c,listening:!0,addRoute:m,removeRoute:h,clearRoutes:g,hasRoute:y,getRoutes:v,resolve:b,options:e,push:w,replace:T,go:ae,back:()=>ae(-1),forward:()=>ae(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:re.add,isReady:P,install(e){e.component(`RouterLink`,Oa),e.component(`RouterView`,Fa),e.config.globalProperties.$router=ce,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>L(c)}),$r&&!oe&&c.value===K&&(oe=!0,w(i.location).catch(e=>{}));let t={};for(let e in K)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(Yr,ce),e.provide(Xr,_(t)),e.provide(Zr,c);let n=e.unmount;se.add(e),e.unmount=function(){se.delete(e),se.size<1&&(u=K,M&&M(),M=null,c.value=K,oe=!1,N=!1),n()}}};function R(e){return e.reduce((e,t)=>e.then(()=>k(t)),Promise.resolve())}return ce}var La=(e,t)=>({default:()=>e?P(Te,e===!0?{}:e,t):t.default?.()}),Ra=/(:\w+)\([^)]+\)/g,za=/(:\w+)[?+*]/g,Ba=/:\w+/g;function Va(e){let t=e?.meta.key??e.path.replace(Ra,`$1`).replace(za,`$1`).replace(Ba,t=>e.params[t.slice(1)]?.toString()||``);return typeof t==`function`?t(e):t}function Ha(e,t){return e===t||t===K?!1:Va(e)!==Va(t)||!e.matched.every((e,n)=>e.components&&e.components.default===t.matched[n]?.components?.default)}function Ua(e){return Array.isArray(e)?e:[e]}function Wa(e){let t=[];for(let n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?Ua(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?Ua(n.onBeforeLeave):void 0});return tt(...t)}function Ga(e){e[`~transitionPromise`]||=new Promise(t=>{e[`~transitionFinish`]=t})}function Ka(e){e[`~transitionFinish`]?.(),delete e[`~transitionFinish`],delete e[`~transitionPromise`]}var qa={scrollBehavior(e,n,r){let i=t(),a=B(),o=a.options?.scrollBehaviorType??`auto`;return e.path.replace(/\/$/,``)===n.path.replace(/\/$/,``)?n.hash&&!e.hash?r??{left:0,top:0}:e.hash?{el:e.hash,top:Ja(e.hash),behavior:o}:!1:(typeof e.meta.scrollToTop==`function`?e.meta.scrollToTop(e,n):e.meta.scrollToTop)===!1?!1:n===K?Ya(e,n,r,o):new Promise(t=>{let s=()=>{requestAnimationFrame(()=>{a.currentRoute.value.fullPath===e.fullPath?t(Ya(e,n,r,o)):t(!1)})};i.hooks.hookOnce(`page:loading:end`,()=>{let e=i[`~transitionPromise`];e?e.then(s):s()})})}};function Ja(e){let t=document.getElementById(e.slice(1));return t?(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0):0}function Ya(e,t,n,r){return n||(e.hash?{el:e.hash,top:Ja(e.hash),behavior:Ha(e,t)?r:`instant`}:{left:0,top:0})}var Xa={hashMode:!0,scrollBehaviorType:`auto`,sensitive:!1,...qa},Za=qe(async e=>{if(!e.meta?.validate)return;let t=await Promise.resolve(e.meta.validate(e));if(t!==!0)return nt({fatal:!0,status:t&&(t.status||t.statusCode)||404,statusText:t&&(t.statusText||t.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}})}),Qa=g({docsBase:a,reporters:i}),$a=an;function eo(e){return Lr(e)}var to;function no(){let e;return e=$a(nn(`builds/meta/${u().app.buildId}.json`),{responseType:`json`}).then(e=>{if(!e||typeof e!=`object`||!Array.isArray(e.prerendered))throw Qa.NUXT_E5004();return e}),to=e,e.catch(t=>{to===e&&(to=void 0),Qa.NUXT_E5002({cause:t})}),e}function ro(){return to||no()}function io(e){let t=typeof e==`string`?e:e.path;try{return eo(t)}catch(e){return Qa.NUXT_E5003({path:t,cause:e}),{}}}var ao=[Za,qe(e=>{let t=io({path:e.path});if(t.redirect){let n=t.redirect.includes(`#`)?t.redirect:t.redirect+e.hash;return Be(n)?(window.location.href=n,!1):n}})],oo={},so=[{name:`keys-key`,path:`/keys/:key()`,component:()=>V(()=>import(`./Dc1J86T9.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url)},{name:`locales-locale`,path:`/locales/:locale()`,component:()=>V(()=>import(`./C059D2ly.js`),__vite__mapDeps([13,1,3,4,5,14,7,8,2,9]),import.meta.url)},{name:`extract`,path:`/extract`,component:()=>V(()=>import(`./CGD9uLl4.js`),__vite__mapDeps([15,1,2,5,6,14,7]),import.meta.url)},{name:`keys`,path:`/keys`,component:()=>V(()=>import(`./Cr_IeTC5.js`),__vite__mapDeps([16,1,2,3,4,5,9,12,17]),import.meta.url)},{name:`project`,path:`/project`,component:()=>V(()=>import(`./BSomwWYk.js`),__vite__mapDeps([18,1,5,6,14,7]),import.meta.url)},{name:`usages`,path:`/usages`,component:()=>V(()=>import(`./Eg7r6GmC.js`),__vite__mapDeps([19,1,2,5,6,14,11,17]),import.meta.url)},{name:`index`,path:`/`,component:()=>V(()=>import(`./BJFGPxOj.js`),__vite__mapDeps([20,1,5,14,7,8,2,9,10]),import.meta.url)}],co=/\/(?=$|[?#])/;function lo(e,t,n){let{pathname:r,search:i,hash:a}=t,o=e.indexOf(`#`);if(o>-1){let t=a.includes(e.slice(o))?e.slice(o).length:1,n=a.slice(t);return n[0]!==`/`&&(n=`/`+n),He(n,``)}let s=He(r,e),c=!n||De(s,n)?s:n;return c+(c.includes(`?`)?``:i)+a}var uo=f({name:`nuxt:router`,enforce:`pre`,async setup(e){let t=u().app.baseURL;t.includes(`#`)||(t+=`#`);let n=Xa.history?.(t)??ia(t),r=Xa.routes?await Xa.routes(so)??so:so,i,a=Ia({...Xa,scrollBehavior:(e,t,n)=>{if(t===K)i=n;else if(Xa.scrollBehavior){if(a.options.scrollBehavior=Xa.scrollBehavior,`scrollRestoration`in window.history){let e=a.beforeEach(()=>{e(),window.history.scrollRestoration=`manual`})}return Xa.scrollBehavior(e,K,i||n)}},history:n,routes:r});`scrollRestoration`in window.history&&(window.history.scrollRestoration=`auto`),e.vueApp.use(a);let o=fe(a.currentRoute.value);a.afterEach((e,t)=>{o.value=t}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>o.value});let s=lo(t,window.location,e.payload.path);He(window.location.pathname,t);let c=fe(a.currentRoute.value),l=()=>{c.value=a.currentRoute.value};a.afterEach((e,t)=>{let n=e.matched.at(-1)?.components?.default,r=t.matched.at(-1)?.components?.default;n===r?Pr({route:e,Component:{type:n}})===Pr({route:t,Component:{type:r}})&&l():e.matched.length<t.matched.length&&e.matched.every((e,n)=>e.components?.default===t.matched[n]?.components?.default)&&l()});let d={sync:l};for(let e in c.value)Object.defineProperty(d,e,{get:()=>c.value[e],enumerable:!0});e._route=_(d),e._middleware||={global:[],named:{}};let f=Fe();a.afterEach(async(t,n,r)=>{delete e._processingMiddleware,!e.isHydrating&&f.value&&!G(r,Gr.aborted|Gr.cancelled)&&await e.runWithContext(Ye),r&&await e.callHook(`page:loading:end`)}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook(`page:loading:end`)});try{await a.isReady()}catch(t){await Ke(e,t)}let p=s===a.currentRoute.value.fullPath?a.currentRoute.value:a.resolve(s),m=a.currentRoute.value.fullPath,h=e.isHydrating&&e.payload.prerenderedAt&&e.payload.path&&s.replace(co,``)!==e.payload.path.replace(co,``)&&De(a.currentRoute.value.path,e.payload.path);l();function g(r){!e.isHydrating&&r.fullPath!==lo(t,window.location)&&n.push(r.fullPath)}a.beforeEach(t=>{if(!e.isHydrating&&Lr(t.path).noScripts)return window.location.assign(a.resolve(t.fullPath).href),!1});let v=e.payload.state._layout;return a.beforeEach(async(t,n)=>{await e.callHook(`page:loading:start`),t.meta=re(t.meta),e.isHydrating&&v&&!ue(t.meta.layout)&&(t.meta.layout=v),e._processingMiddleware=!0;{let r=new Set([...ao,...e._middleware.global]);for(let e of t.matched){let t=e.meta.middleware;if(t)for(let e of Ir(t))r.add(e)}let i=io({path:t.path});if(i.appMiddleware)for(let e in i.appMiddleware)i.appMiddleware[e]?r.add(e):r.delete(e);for(let i of r){let r=typeof i==`string`?e._middleware.named[i]||await oo[i]?.().then(e=>e.default||e):i;if(!r)throw Re.NUXT_E2004({entry:String(i),validMiddleware:void 0});try{let i=await e.runWithContext(()=>r(t,n));if(!e.payload.serverRendered&&e.isHydrating&&(i===!1||i instanceof Error)){let t=i||nt({status:404,statusText:`Page Not Found: ${s}`});return await e.runWithContext(()=>Ve(t)),!1}if(i===!0)continue;if(i===!1)return i;if(i)return Ie(i)&&i.fatal&&(await e.runWithContext(()=>Ve(i)),g(t)),i}catch(n){let r=nt(n);return r.fatal&&(await e.runWithContext(()=>Ve(r)),g(t)),r}}}}),a.afterEach((t,n,r)=>{if(t.matched.length===0&&!f.value&&!G(r,Gr.aborted|Gr.cancelled))return e.runWithContext(()=>Ve(nt({status:404,fatal:!1,statusText:`Page not found: ${t.fullPath}`,data:{path:t.fullPath}})))}),e.hooks.hookOnce(`app:created`,async()=>{try{if(`name`in p&&(p.name=void 0),a.currentRoute.value.fullPath===m){if(h){let t=a.resolve(e.payload.path);`name`in t&&(t.name=void 0),await a.replace({...t,force:!0});let n=()=>{if(!e[`~restoreDeferredRoute`])return;e[`~restoreDeferredRoute`]=void 0;let t=a.currentRoute,n=a.resolve(s);n.matched.at(-1)===t.value.matched.at(-1)&&(n.meta=t.value.meta),t.value=n,l(),a.replace({...p,force:!0}).catch(()=>{})};e[`~restoreDeferredRoute`]=n,e.hooks.hookOnce(`app:suspense:resolve`,n)}else await a.replace({...p,force:!0})}a.options.scrollBehavior=Xa.scrollBehavior}catch(t){await Ke(e,t)}}),{provide:{router:a}}}}),fo=globalThis.requestIdleCallback||(e=>{let t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),po=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),mo=e=>{let n=t();n.isHydrating?n.hooks.hookOnce(`app:suspense:resolve`,()=>{fo(()=>e())}):fo(()=>e())},ho=f(()=>{let e=B();mo(()=>{e.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),go=f(e=>{let t;async function r(){let i;try{i=await ro()}catch(e){let t=e;if(!(`status`in t&&(t.status===404||t.status===403)))throw t}t&&clearTimeout(t),t=setTimeout(r,n);try{let n=await an(nn(`builds/latest.json`)+`?${Date.now()}`);n.id!==i?.id&&(e.hooks.callHook(`app:manifest:update`,n),t&&clearTimeout(t))}catch{}}mo(()=>{t=setTimeout(r,n)})});function _o(e={}){let n=e.path||window.location.pathname,r=new URL(n,window.location.href);if(r.host!==window.location.host)throw Re.NUXT_E2010({path:n});if(r.protocol&&et(r.protocol))throw Re.NUXT_E2002({toPath:n,protocol:r.protocol});let i={};try{i=JSON.parse(sessionStorage.getItem(`nuxt:reload`)||`{}`)}catch{}if(e.force||i?.path!==n||i?.expires<Date.now()){try{sessionStorage.setItem(`nuxt:reload`,JSON.stringify({path:n,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem(`nuxt:reload:state`,JSON.stringify({state:t().payload.state}))}catch{}window.location.pathname===n?window.location.reload():window.location.href=n}}var vo=f({name:`nuxt:chunk-reload-crawler`,setup(e){let t=!0;e.hooks.hookOnce(`app:suspense:resolve`,()=>{t=!1}),e.hook(`app:chunkError`,()=>{t&&ze(navigator.userAgent)&&_o()})}}),yo=f({name:`nuxt:chunk-reload`,setup(e){let t=B(),n=u(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook(`app:chunkError`,({error:e})=>{r.add(e)});function i(e){_o({path:ke(n.app.baseURL,e.fullPath),persistState:!0})}e.hook(`app:manifest:update`,()=>{t.beforeResolve(i)}),t.onError((e,t)=>{r.has(e)&&i(t)})}}),bo=/2g/;function xo(){let e=navigator.connection;return!e||!e.saveData&&!bo.test(e.effectiveType||``)}function So(e){let{pathname:t,search:n}=new URL(e,window.location.href);return t+n}function Co(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}function wo(e){return Promise.all(e.map(e=>{let t=e.components?.default;return typeof t==`function`?Promise.resolve(t()).catch(()=>{}):void 0}))}function To(e,t){let{fullPath:n,path:r,matched:i}=t.resolve(e);if(!i.length)return;let a=o()?._prefetch;a?a.schedule({key:`route:${r}`,priority:`route`,scope:`navigation`,group:So(n),run:e=>e.aborted?void 0:wo(i)}):wo(i)}var Eo=(...e)=>e.find(e=>e!==void 0);function Do(e){let n=e.componentName||`NuxtLink`;function r(e){return!1}function i(t,n,r){let i=r??e.trailingSlash;if(!t||i!==`append`&&i!==`remove`)return t;if(typeof t==`string`)return ko(t,i);let a=`path`in t&&t.path!==void 0?t.path:n(t).path;return{...t,name:void 0,path:ko(a,i)}}function a(t){let n=B(),a=u(),o=n.options?.history?.createHref??(e=>ke(a.app.baseURL,e)),s=z(()=>!!L(t.target)&&L(t.target)!==`_self`),c=z(()=>{let e=L(t.to)||L(t.href)||``;return typeof e==`string`&&Be(e)}),l=z(()=>{if(L(t.external))return!0;let e=L(t.to)||L(t.href)||``;return typeof e==`object`?!1:e===``||c.value}),d=z(()=>{let e=L(t.to)||L(t.href)||``;return l.value?e:i(e,n.resolve,L(t.trailingSlash))}),f=z(()=>{let i=L(t.trailingSlash)??e.trailingSlash;if(!d.value||c.value||r(d.value)){let e=d.value;return typeof e==`string`?$e(e):e}if(l.value){let e=typeof d.value==`object`&&`path`in d.value?We(d.value):d.value,t=typeof e==`object`?n.resolve(e).href:e,r=typeof t==`string`?$e(t):t;return r===null?null:ko(r,i)}return typeof d.value==`object`?n.resolve(d.value)?.href??null:ko(Pe(d.value)?o(d.value):n.resolve(d.value).href,i)});return{to:d,hasTarget:s,isAbsoluteUrl:c,isExternal:l,href:f,async navigate(e){f.value!==null&&await Le(f.value,{replace:L(t.replace),external:l.value||s.value})}}}function o(e){let t=B(),n=a(e),r=T(`RouterLink`),i=r&&typeof r!=`string`?r.useLink:void 0,o=n.isExternal.value?void 0:i?.({...e,to:n.to,viewTransition:L(e.viewTransition)});return{...n,isActive:o?.isActive??z(()=>n.to.value===t.currentRoute.value.path),isExactActive:o?.isExactActive??z(()=>n.to.value===t.currentRoute.value.path),route:o?.route??z(()=>t.resolve(n.to.value))}}return N({name:n,props:{to:{type:[String,Object],required:!1},href:{type:[String,Object],required:!1},target:{type:String,required:!1},rel:{type:String,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},prefetchedClass:{type:String,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,required:!1}},useLink:o,setup(n,{slots:i}){let o=B(),s=T(`RouterLink`),{to:c,href:l,navigate:u,isExternal:d,hasTarget:f,isAbsoluteUrl:p}=a(n),m=fe(!1),h=j(null),g=e=>{h.value=n.custom?e?.$el?.nextElementSibling:e?.$el};function _(t){return typeof n.prefetchOn==`string`?n.prefetchOn===t:n.prefetchOn?.[t]??e.prefetchOn?.[t]}function v(){return!!((n.prefetch??e.prefetch)!==!1&&n.noPrefetch!==!0&&n.target!==`_blank`&&xo())}function y(e){return!!(!m.value&&_(e)&&v())}function b(){let e=typeof c.value==`string`?c.value:d.value?We(c.value):o.resolve(c.value).fullPath;return d.value?new URL(e,window.location.href).href:e}function x(){m.value?d.value||t()._prefetch?.promote(So(b())):_(`interaction`)&&S()}async function S(e=t()){if(m.value||l.value===null)return;m.value=!0;let n=b();await Promise.all([e.hooks.callHook(`link:prefetch`,n)?.catch(()=>{}),!d.value&&!f.value&&To(c.value,o)])}if(!n.custom&&y(`visibility`)){let e=t(),n,r=null;ce(()=>{let t=Ao();mo(()=>{n=fo(()=>{h?.value?.tagName&&(r=t.observe(h.value,async()=>{r?.(),r=null,await S(e)}))})})}),ee(()=>{n&&po(n),r?.(),r=null})}return()=>{let t=n.target||null,a=Eo(n.noRel?``:n.rel,e.externalRelAttribute,p.value||f.value?`noopener noreferrer`:``)||null,b=e=>({navigate:u,get route(){if(!l.value)return;let e=new URL(l.value,window.location.href);return{path:e.pathname,fullPath:e.pathname,get query(){return Oe(e.search)},hash:e.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:l.value}},rel:a,target:t,isExternal:d.value||f.value,isActive:!1,isExactActive:!1,...e,href:typeof e?.href==`string`?$e(e.href):l.value,prefetch:S,prefetched:m.value,shouldPrefetch:y});if(!d.value&&!f.value&&!r(c.value)){let t={ref:g,to:c.value,activeClass:n.activeClass||e.activeClass,exactActiveClass:n.exactActiveClass||e.exactActiveClass,replace:n.replace,ariaCurrentValue:n.ariaCurrentValue,custom:n.custom};return n.custom||((_(`interaction`)||m.value)&&v()&&(t.onPointerenter=x,t.onFocus=x,t.onPointerdown=x),m.value&&(t.class=n.prefetchedClass||e.prefetchedClass),t.rel=n.rel||void 0),P(s,t,n.custom&&i.default?{default:e=>i.default(b(e))}:i.default)}return n.custom?i.default?i.default(b()):null:P(`a`,{ref:h,href:l.value||null,rel:a,target:t,onClick:async e=>{if(!(d.value||f.value)){e.preventDefault();try{let e=Xe(l.value??``);return await(n.replace?o.replace(e):o.push(e))}finally{if(r(c.value)){let e=c.value.slice(1),t=e;try{t=decodeURIComponent(e)}catch{}document.getElementById(t)?.focus()}}}}},i.default?.())}}})}var Oo=Do(h);function ko(e,t){if(t!==`append`&&t!==`remove`)return e;let n=t===`append`?Ee:Ae;return Me(e)&&!e.startsWith(`http`)?e:n(e,!0)}function Ao(){let e=t();if(e._observer)return e._observer;let n=null,r=new Map;return e._observer={observe:(e,t)=>(n||=new IntersectionObserver(e=>{for(let t of e){let e=r.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),r.set(e,t),n.observe(e),()=>{r.delete(e),n?.unobserve(e),r.size===0&&(n?.disconnect(),n=null)})}}var jo=f({name:`nuxt:island-link-navigation`,setup(e){}}),Mo=f({name:`nuxt:global-components`}),No={},Po=[`route`,`payload`,`island`,`hint`],Fo=12,Io={route:8,payload:8,island:4,hint:8};function Lo(e={}){let t={...Io,...e.concurrency},n=e.total??Fo,r=e.canPrefetch,i=e.defer,a={route:[],payload:[],island:[],hint:[]},o=Po.map(e=>a[e]),s=new WeakSet,c=new Map,l={route:0,payload:0,island:0,hint:0},u=0,d=new Map,f=new AbortController,p=new AbortController;p.abort();function m(e){c.get(e.key)===e&&c.delete(e.key)}function h(e){m(e),Promise.resolve().then(()=>e.run(p.signal,!1)).catch(()=>{})}function g(){if(!r||r())for(;u<n;){let e=Po.find(e=>a[e].length&&l[e]<t[e]);if(!e)return;let n=a[e].shift();_(n,s.delete(n))}}function _(e,t){let n=e.scope===`app`?f:new AbortController;e.scope===`navigation`&&d.set(e,n),l[e.priority]++,u++;let r=!1,a=()=>{r||(r=!0,l[e.priority]--,u--,d.delete(e),m(e),g())};n.signal.addEventListener(`abort`,a,{once:!0});let o=()=>Promise.resolve().then(()=>e.run(n.signal,t)).then(a,a);i?i(o,t,e.priority):o()}let v=(e,t)=>t!==void 0&&e.group===t&&e.priority!==`hint`;return{schedule(e){let t=[];for(let n of Array.isArray(e)?e:[e])c.has(n.key)?h(n):(c.set(n.key,n),t.push(n));for(let e=t.length-1;e>=0;e--)a[t[e].priority].unshift(t[e]);g()},promote(e){for(let t of o){let n=[],r=[];for(let i of t)i.group===e&&s.add(i),(i.group===e?n:r).push(i);t.length=0,t.push(...n,...r)}g()},reset(e){for(let t of o)for(let n=t.length-1;n>=0;n--){let r=t[n];r.scope===`navigation`&&!v(r,e)&&(t.splice(n,1),h(r))}for(let[t,n]of[...d])v(t,e)||n.abort();g()},resume:g}}var Ro=1e3;function zo(e,t,n){if(t||n===`route`)return e();let r=globalThis.scheduler;r?.postTask?r.postTask(e,{priority:`background`}).catch(()=>{}):fo(e,{timeout:Ro})}function Bo(e=t()){if(e._prefetch)return e._prefetch;let n=!1,r=Lo({canPrefetch:()=>xo()&&!n&&document.visibilityState!==`hidden`,defer:zo});e._prefetch=r,navigator.connection?.addEventListener?.(`change`,()=>r.resume()),document.addEventListener(`visibilitychange`,()=>r.resume());let i=e.$router;return i.beforeEach(()=>{n=!0}),i.afterEach(e=>{n=!1,r.reset(So(e.fullPath))}),i.onError(()=>{n=!1,r.resume()}),r}var Vo=[kr,uo,ho,go,vo,yo,jo,Mo,f({name:`nuxt:prefetch`,setup(e){let t=B();e.hooks.hook(`app:mounted`,()=>{t.beforeEach(async e=>{let t=e?.meta?.layout;typeof t==`string`&&t in No&&await Co(No[t])})});let{schedule:n}=Bo(e);e.hooks.hook(`link:prefetch`,async e=>{if(Me(e))return;let r=t.resolve(e);if(!r)return;let i=r.meta.layout,a=Ir(r.meta.middleware).filter(e=>typeof e==`string`);n({key:`route:chunks:${e}`,priority:`route`,scope:`navigation`,group:So(e),run:e=>{if(e.aborted)return;let t=[];for(let e of a){let n=oo[e];typeof n==`function`&&t.push(n())}return typeof i==`string`&&i in No&&t.push(Co(No[i])),Promise.all(t).catch(()=>{})}})})}}),f(()=>{})];function Ho(e=me()){let t=e;t&&!t.sp&&(t.sp=[])}function q(e,t){let n=`\x1B[${e}m`,r=`\x1B[${t}m`;return((e,...t)=>{if(Array.isArray(e)&&`raw`in e){let i=e,a=``;for(let e=0;e<i.length;e++)a+=i[e],e<t.length&&(a+=String(t[e]));return`${n}${a}${r}`}return`${n}${String(e)}${r}`})}var Uo={blue:q(34,39),cyan:q(36,39),gray:q(90,39),green:q(32,39),red:q(31,39),yellow:q(33,39),bold:q(1,22),dim:q(2,22),reset:q(0,0),underline:q(4,24)},J={bus:{agentManifestChanged:`agent:manifest:changed`,agentToolRegistered:`agent:tool:registered`,agentToolUnregistered:`agent:tool:unregistered`,agentResourceRegistered:`agent:resource:registered`,agentResourceUnregistered:`agent:resource:unregistered`},client:{isTrustedUpdated:`rpc:is-trusted:updated`,error:`rpc:error`,connectionStatus:`connection:status`,connectionError:`connection:error`},broadcast:{authRevoked:`devframe:auth:revoked`,cacheInvalidate:`devframe:rpc:cache:invalidate`,clientStateUpdated:`devframe:rpc:client-state:updated`,clientStatePatch:`devframe:rpc:client-state:patch`,streamingChunk:`devframe:streaming:chunk`,streamingEnd:`devframe:streaming:end`,streamingUploadCancel:`devframe:streaming:upload-cancel`},inPageChannel:{panelStateUpdated:`devframe:in-page:panel-state:updated`,panelStatePatch:`devframe:in-page:panel-state:patch`},postMessage:{remoteAssetsError:`devframe:remote-assets-error`,inPageChannel:`devframe:in-page-channel`}},Wo=Et(Uo);function Go(e,{method:t=`warn`}={}){console[t](Wo(e))}function Ko(t){return e({...t,reporters:[Go,...t.reporters??[]]})}function qo(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var Jo=Math.random.bind(Math),Yo=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function Xo(e=21){let t=``,n=e;for(;n--;)t+=Yo[Jo()*64|0];return t}var Zo=6e4,Qo=e=>e,$o=Qo,{clearTimeout:es,setTimeout:ts}=globalThis;function ns(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=Qo,deserialize:s=$o,resolver:c,bind:l=`rpc`,timeout:u=Zo,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:`q`};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=qo(),_=Xo();s.i=_;let v;async function y(n=s){return u>=0&&(v=ts(()=>{try{if(t.onTimeoutError?.call(h,e,r)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){g(e)}p.delete(_)},u),typeof v==`object`&&(v=v.unref?.())),p.set(_,{resolve:d,reject:g,timeoutId:v,method:e}),await c(n),l}try{t.onRequest?await t.onRequest.call(h,s,y,d):await y()}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}finally{es(v),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:y,get $closed(){return f},get $meta(){return t.meta},$close:v,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.hasOwn(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function v(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(b)}function y(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function b(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===`q`){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:`s`,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:`s`,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(es(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}function rs(e,t){return t.safety?t.safety:e===`static`||e===`query`||e==null?`read`:`action`}var is=Object.freeze({type:`object`,additionalProperties:!0});function as(e){let t=e[`~standard`];if(t.jsonSchema)try{return t.jsonSchema.input({target:`draft-2020-12`})}catch{return is}return is}function os(e){if(!e||e.length===0)return{type:`object`,properties:{}};let t={},n=[];for(let r=0;r<e.length;r++){let i=`arg${r}`;t[i]=as(e[r]),n.push(i)}return{type:`object`,properties:t,required:n,additionalProperties:!1}}function ss(e,t){if(Array.isArray(e))return e;if(e==null)return[];if(typeof e!=`object`)return;let n=e;if(t!=null)return Array.from({length:t},(e,t)=>n[`arg${t}`]);if(`arg0`in n){let e=[];for(;`arg${e.length}`in n;)e.push(n[`arg${e.length}`]);return e}return Object.keys(n).length===0?[]:void 0}function cs(e,t){return ss(e,t)??[e]}function ls(e){return typeof e==`string`?`'${e}'`:new ps().serialize(e)}var us=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,ds=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[us.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function fs(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;i++){let n=e.charCodeAt(i),a=t.charCodeAt(i);if(n===a)continue;let o=n<128&&ds[n]?ds[n]:n+128,s=a<128&&ds[a]?ds[a]:a+128;if(o!==s)return o<s?-1:1;r===0&&(r=n>a?-1:1)}return e.length===t.length?r:e.length<t.length?-1:1}var ps=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?fs(e,t):n===`number`&&r===`number`?e-t:fs(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(`toJSON`in e&&typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}let i=Object.keys(e).sort(fs),a=`${r}{`;for(let t=0;t<i.length;t++){let n=i[t];a+=`${n}:${this.serialize(e[n])}`,t<i.length-1&&(a+=`,`)}return a+`}`}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e})(),ms=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],hs=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],gs=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,_s=[],vs=class{_data=new ys;_hash=new ys([...ms]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);let t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){let n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7];for(let n=0;n<64;n++){if(n<16)_s[n]=e[t+n]|0;else{let e=_s[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=_s[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;_s[n]=t+_s[n-7]+i+_s[n-16]}let d=s&c^~s&l,f=r&i^r&a^i&a,p=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),h=u+m+d+hs[n]+_s[n],g=p+f;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+u|0}_append(e){typeof e==`string`&&(e=ys.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;n=e?Math.ceil(n):Math.max((n|0)-this._minBufferSize,0);let r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let e=0;e<r;e+=16)this._doProcessBlock(this._data.words,e);t=this._data.words.splice(0,r),this._data.sigBytes-=i}return new ys(t,i)}},ys=class e{words;sigBytes;constructor(e,t){e=this.words=e||[],this.sigBytes=t===void 0?e.length*4:t}static fromUtf8(t){let n=unescape(encodeURIComponent(t)),r=n.length,i=[];for(let e=0;e<r;e++)i[e>>>2]|=(n.charCodeAt(e)&255)<<24-e%4*8;return new e(i,r)}toBase64(){let e=[];for(let t=0;t<this.sigBytes;t+=3){let n=this.words[t>>>2]>>>24-t%4*8&255,r=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,a=n<<16|r<<8|i;for(let n=0;n<4&&t*8+n*6<this.sigBytes*8;n++)e.push(gs.charAt(a>>>6*(3-n)&63))}return e.join(``)}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t<e.sigBytes;t++){let n=e.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<e.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=e.words[t>>>2];this.sigBytes+=e.sigBytes}};function bs(e){return new vs().finalize(e).toBase64()}function xs(e){return bs(ls(e))}function Ss(e){return xs(e)}function Cs(){let e={};function t(t,...n){let r=e[t]||[];for(let e=0,t=r.length;e<t;e++){let t=r[e];t&&t(...n)}}function n(n,...r){t(n,...r),delete e[n]}function r(t,n){return(e[t]||=[]).push(n),()=>{e[t]=e[t]?.filter(e=>n!==e)}}function i(e,t){let n=r(e,((...e)=>(n(),t(...e))));return n}return{_listeners:e,emit:t,emitOnce:n,on:r,once:i}}var ws=/^[\w+.-]{2,}:\/\//;function Ts(e){return e.endsWith(`/`)?e:`${e}/`}function Es(e){return(e.endsWith(`/`)?e.slice(0,-1):e)||`/`}function Ds(e,...t){let n=e;for(let e of t)e&&e!==`/`&&(n=n?Ts(n)+e.replace(/^\.?\//,``):e);return n}function Os(e,t){if(!t||t===`/`||ws.test(e))return e;let n=Es(t);return e.startsWith(n)?e:Ds(n,e)}function ks(e,t){let n=e.match(ws);return t+(n?e.slice(n[0].length):e)}var As=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function js(e=21){let t=``,n=e;for(;n--;)t+=As[Math.random()*64|0];return t}var Ms=Symbol.for(`immer-nothing`),Ns=Symbol.for(`immer-draftable`),Y=Symbol.for(`immer-state`),Ps=[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},`This object has been frozen and should not be mutated`,function(e){return`Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? `+e},`An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.`,`Immer forbids circular references`,"The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},`Object.defineProperty() cannot be used on an Immer draft`,`Object.setPrototypeOf() cannot be used on an Immer draft`,`Immer only supports deleting array indices`,`Immer only supports setting array indices and the 'length' property`,function(e){return`'original' expects a draft, got: ${e}`}];function X(e,...t){{let n=Ps[e],r=tc(n)?n.apply(null,t):n;throw Error(`[Immer] ${r}`)}}var Z=Object,Fs=Z.getPrototypeOf,Is=`constructor`,Ls=`prototype`,Rs=`configurable`,zs=`enumerable`,Bs=`writable`,Vs=`value`,Q=e=>!!e&&!!e[Y];function $(e){return e?Ws(e)||Zs(e)||!!e[Ns]||!!e[Is]?.[Ns]||Qs(e)||$s(e):!1}var Hs=Z[Ls][Is].toString(),Us=new WeakMap;function Ws(e){if(!e||!ec(e))return!1;let t=Fs(e);if(t===null||t===Z[Ls])return!0;let n=Z.hasOwnProperty.call(t,Is)&&t[Is];if(n===Object)return!0;if(!tc(n))return!1;let r=Us.get(n);return r===void 0&&(r=Function.toString.call(n),Us.set(n,r)),r===Hs}function Gs(e,t,n=!0){Ks(e)===0?(n?Reflect.ownKeys(e):Z.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Ks(e){let t=e[Y];return t?t.type_:Zs(e)?1:Qs(e)?2:$s(e)?3:0}var qs=(e,t,n=Ks(e))=>n===2?e.has(t):Z[Ls].hasOwnProperty.call(e,t),Js=(e,t,n=Ks(e))=>n===2?e.get(t):e[t],Ys=(e,t,n,r=Ks(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Xs(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Zs=Array.isArray,Qs=e=>e instanceof Map,$s=e=>e instanceof Set,ec=e=>typeof e==`object`,tc=e=>typeof e==`function`,nc=e=>typeof e==`boolean`;function rc(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var ic=e=>ec(e)?e?.[Y]:null,ac=e=>e.copy_||e.base_,oc=e=>e.modified_?e.copy_:e.base_;function sc(e,t){if(Qs(e))return new Map(e);if($s(e))return new Set(e);if(Zs(e))return Array[Ls].slice.call(e);let n=Ws(e);if(t===!0||t===`class_only`&&!n){let t=Z.getOwnPropertyDescriptors(e);delete t[Y];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Bs]===!1&&(a[Bs]=!0,a[Rs]=!0),(a.get||a.set)&&(t[i]={[Rs]:!0,[Bs]:!0,[zs]:a[zs],[Vs]:e[i]})}return Z.create(Fs(e),t)}{let t=Fs(e);if(t!==null&&n)return{...e};let r=Z.create(t);return Z.assign(r,e)}}function cc(e,t=!1){return dc(e)||Q(e)||!$(e)||(Ks(e)>1&&Z.defineProperties(e,{set:uc,add:uc,clear:uc,delete:uc}),Z.freeze(e),t&&Gs(e,(e,t)=>{cc(t,!0)},!1)),e}function lc(){X(2)}var uc={[Vs]:lc};function dc(e){return e===null||!ec(e)||Z.isFrozen(e)}var fc=`MapSet`,pc=`Patches`,mc=`ArrayMethods`,hc={};function gc(e){let t=hc[e];return t||X(0,e),t}var _c=e=>!!hc[e];function vc(e,t){hc[e]||(hc[e]=t)}var yc,bc=()=>yc,xc=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:_c(fc)?gc(fc):void 0,arrayMethodsPlugin_:_c(mc)?gc(mc):void 0});function Sc(e,t){t&&(e.patchPlugin_=gc(pc),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Cc(e){wc(e),e.drafts_.forEach(Ec),e.drafts_=null}function wc(e){e===yc&&(yc=e.parent_)}var Tc=e=>yc=xc(yc,e);function Ec(e){let t=e[Y];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Dc(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[Y].modified_&&(Cc(t),X(4)),$(e)&&(e=Oc(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[Y].base_,e,t)}else e=Oc(t,n);return kc(t,e,!0),Cc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Ms?void 0:e}function Oc(e,t){if(dc(t))return t;let n=t[Y];if(!n)return Lc(t,e.handledSet_,e);if(!jc(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);Fc(n,e)}return n.copy_}function kc(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&cc(t,n)}function Ac(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var jc=(e,t)=>e.scope_===t,Mc=[];function Nc(e,t,n,r){let i=ac(e),a=e.type_;if(r!==void 0&&Js(i,r,a)===t){Ys(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Gs(i,(e,n)=>{if(Q(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??Mc;for(let e of o)Ys(i,e,n,a)}function Pc(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!jc(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=oc(i);Nc(e,i.draft_??i,a,n),Fc(i,r)})}function Fc(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}Ac(e)}}function Ic(e,t,n){let{scope_:r}=e;if(Q(n)){let i=n[Y];jc(i,r)&&i.callbacks_.push(function(){Kc(e),Nc(e,n,oc(i),t)})}else $(n)&&e.callbacks_.push(function(){let i=ac(e);e.type_===3?i.has(n)&&Lc(n,r.handledSet_,r):Js(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Lc(Js(e.copy_,t,e.type_),r.handledSet_,r)})}function Lc(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Q(e)||t.has(e)||!$(e)||dc(e)||(t.add(e),Gs(e,(r,i)=>{if(Q(i)){let t=i[Y];jc(t,n)&&(Ys(e,r,oc(t),e.type_),Ac(t))}else $(i)&&Lc(i,t,n)})),e}function Rc(e,t){let n=Zs(e),r={type_:+!!n,scope_:t?t.scope_:bc(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=zc;n&&(i=[r],a=Bc);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var zc={get(e,t){if(t===Y)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=ac(e);if(!qs(i,t,e.type_))return Uc(e,i,t);let a=i[t];if(e.finalized_||!$(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&rc(t))return a;if(a===Vc(e.base_,t)||Hc(e,t,a)){Kc(e);let n=e.type_===1?+t:t,r=Jc(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in ac(e)},ownKeys(e){return Reflect.ownKeys(ac(e))},set(e,t,n){let r=Wc(ac(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Vc(ac(e),t),i=r?.[Y];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.delete(t),!0;if(Xs(n,r)&&(n!==void 0||qs(e.base_,t,e.type_)))return!0;Kc(e),Gc(e)}return e.copy_[t]===n&&(n!==void 0||qs(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),Ic(e,t,n)),!0},deleteProperty(e,t){return Kc(e),Vc(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Gc(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=ac(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Bs]:!0,[Rs]:e.type_!==1||t!==`length`,[zs]:r[zs],[Vs]:n[t]}},defineProperty(){X(11)},getPrototypeOf(e){return Fs(e.base_)},setPrototypeOf(){X(12)}},Bc={};for(let e in zc){let t=zc[e];Bc[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Bc.deleteProperty=function(e,t){return isNaN(parseInt(t))&&X(13),Bc.set.call(this,e,t,void 0)},Bc.set=function(e,t,n){return t!==`length`&&isNaN(parseInt(t))&&X(14),zc.set.call(this,e[0],t,n,e[0])};function Vc(e,t){let n=e[Y];return(n?ac(n):e)[t]}function Hc(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!$(n)||n[Y]?!1:e.baseRefs_.has(n)}function Uc(e,t,n){let r=Wc(t,n);return r?Vs in r?r[Vs]:r.get?.call(e.draft_):void 0}function Wc(e,t){if(!(t in e))return;let n=Fs(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Fs(n)}}function Gc(e){e.modified_||(e.modified_=!0,e.parent_&&Gc(e.parent_))}function Kc(e){e.copy_||=(e.assigned_=new Map,sc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var qc=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(tc(e)&&!tc(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}tc(t)||X(6),n!==void 0&&!tc(n)&&X(7);let r;if($(e)){let i=Tc(this),a=Jc(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?Cc(i):wc(i)}return Sc(i,n),Dc(r,i)}if(!e||!ec(e)){if(r=t(e),r===void 0&&(r=e),r===Ms&&(r=void 0),this.autoFreeze_&&cc(r,!0),n){let t=[],i=[];gc(pc).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}X(1,e)},this.produceWithPatches=(e,t)=>{if(tc(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},nc(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),nc(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),nc(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){$(e)||X(8),Q(e)&&(e=Yc(e));let t=Tc(this),n=Jc(t,e,void 0);return n[Y].isManual_=!0,wc(t),n}finishDraft(e,t){let n=e&&e[Y];(!n||!n.isManual_)&&X(9);let{scope_:r}=n;return Sc(r,t),Dc(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=gc(pc).applyPatches_;return Q(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Jc(e,t,n,r){let[i,a]=Qs(t)?gc(fc).proxyMap_(t,n):$s(t)?gc(fc).proxySet_(t,n):Rc(t,n);return(n?.scope_??bc()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Pc(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function Yc(e){return Q(e)||X(10,e),Xc(e)}function Xc(e){if(!$(e)||dc(e))return e;let t=e[Y],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=sc(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=sc(e,!0);return Gs(n,(e,t)=>{Ys(n,e,Xc(t))},r),t&&(t.finalized_=!1),n}function Zc(){Ps.push(`Sets cannot have "replace" patches.`,function(e){return`Unsupported patch operation: `+e},function(e){return`Cannot apply patch, path doesn't resolve: `+e},`Patching reserved attributes like __proto__, prototype and constructor is not allowed`);function e(n,r=[]){if(n.key_!==void 0){let e=n.parent_.copy_??n.parent_.base_,t=ic(Js(e,n.key_)),i=Js(e,n.key_);if(i===void 0||i!==n.draft_&&i!==n.base_&&i!==n.copy_||t!=null&&t.base_!==n.base_)return null;let a=n.parent_.type_===3,o;if(a){let e=n.parent_;o=Array.from(e.drafts_.keys()).indexOf(n.key_)}else o=n.key_;if(!(a&&e.size>o||qs(e,o)))return null;r.push(o)}if(n.parent_)return e(n.parent_,r);r.reverse();try{t(n.copy_,r)}catch{return null}return r}function t(e,t){let n=e;for(let e=0;e<t.length-1;e++){let r=t[e];if(n=Js(n,r),!ec(n)||n===null)throw Error(`Cannot resolve path at '${t.join(`/`)}'`)}return n}let n=`replace`,r=`remove`;function i(e,t,n){if(e.scope_.processedForPatches_.has(e))return;e.scope_.processedForPatches_.add(e);let{patches_:r,inversePatches_:i}=n;switch(e.type_){case 0:case 2:return o(e,t,r,i);case 1:return a(e,t,r,i);case 3:return s(e,t,r,i)}}function a(e,t,i,a){let{base_:o,assigned_:s}=e,c=e.copy_;c.length<o.length&&([o,c]=[c,o],[i,a]=[a,i]);let l=e.allIndicesReassigned_===!0;for(let e=0;e<o.length;e++){let r=c[e],u=o[e];if((l||s?.get(e.toString()))&&r!==u){let o=r?.[Y];if(o&&o.modified_)continue;let s=t.concat([e]);i.push({op:n,path:s,value:d(r)}),a.push({op:n,path:s,value:d(u)})}}for(let e=o.length;e<c.length;e++){let n=t.concat([e]);i.push({op:`add`,path:n,value:d(c[e])})}for(let e=c.length-1;o.length<=e;--e){let n=t.concat([e]);a.push({op:r,path:n})}}function o(e,t,i,a){let{base_:o,copy_:s,type_:c}=e;Gs(e.assigned_,(e,l)=>{let u=Js(o,e,c),f=Js(s,e,c),p=l?qs(o,e)?n:`add`:r;if(u===f&&p===n)return;let m=t.concat(e);i.push(p===r?{op:p,path:m}:{op:p,path:m,value:d(f)}),a.push(p===`add`?{op:r,path:m}:p===r?{op:`add`,path:m,value:d(u)}:{op:n,path:m,value:d(u)})})}function s(e,t,n,i){let{base_:a,copy_:o}=e,s=0;a.forEach(e=>{if(!o.has(e)){let a=t.concat([s]);n.push({op:r,path:a,value:e}),i.unshift({op:`add`,path:a,value:e})}s++}),s=0,o.forEach(e=>{if(!a.has(e)){let a=t.concat([s]);n.push({op:`add`,path:a,value:e}),i.unshift({op:r,path:a,value:e})}s++})}function c(e,t,r){let{patches_:i,inversePatches_:a}=r;i.push({op:n,path:[],value:t===Ms?void 0:t}),a.push({op:n,path:[],value:e})}function l(e,t){return t.forEach(t=>{let{path:i,op:a}=t,o=e;for(let e=0;e<i.length-1;e++){let t=Ks(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===Is)&&X(19),tc(o)&&n===Ls&&X(19),o=Js(o,n),(o===null||!ec(o))&&X(18,i.join(`/`))}let s=Ks(o),c=u(t.value),l=i[i.length-1];switch(a){case n:switch(s){case 2:return o.set(l,c);case 3:X(16);default:return o[l]=c}case`add`:switch(s){case 1:return l===`-`?o.push(c):o.splice(l,0,c);case 2:return o.set(l,c);case 3:return o.add(c);default:return o[l]=c}case r:switch(s){case 1:return o.splice(l,1);case 2:return o.delete(l);case 3:return o.delete(t.value);default:return delete o[l]}default:X(17,a)}}),e}function u(e){if(!$(e))return e;if(Zs(e))return e.map(u);if(Qs(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if($s(e))return new Set(Array.from(e).map(u));let t=Object.create(Fs(e));for(let n in e)t[n]=u(e[n]);return qs(e,Ns)&&(t[Ns]=e[Ns]),t}function d(e){return Q(e)?u(e):e}vc(pc,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}globalThis.Iterator?.from;var Qc=new qc,$c=Qc.produce,el=Qc.produceWithPatches.bind(Qc),tl=Qc.applyPatches.bind(Qc),nl=1e3;function rl(e,t){if(e.add(t),e.size>nl){let t=e.values().next().value;t!==void 0&&e.delete(t)}}function il(e){let{enablePatches:t=!1}=e;t&&Zc();let n=Cs(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=js())=>{i.has(t)||(Zc(),r=tl(r,e),rl(i,t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=js())=>{if(!i.has(a)){if(rl(i,a),t){let[t,i]=el(r,e);if(t===r)return;r=t,n.emit(`updated`,r,i,a)}else{let t=$c(r,e);if(t===r)return;r=t,n.emit(`updated`,r,void 0,a)}}},syncIds:i}}var al=typeof self==`object`?self:globalThis,ol=new Set([`Error`,`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`,`AggregateError`]),sl=new Set([`Boolean`,`Number`,`String`,`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float16Array`,`Float32Array`,`Float64Array`,`BigInt64Array`,`BigUint64Array`]);function cl(e,t){let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o,r=ol.has(e)?al[e]:void 0;return n(new(r??al.Error)(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}if(typeof a==`string`&&sl.has(a))return n(new al[a](o),i);throw TypeError(`unable to deserialize unsafe or unknown type: ${String(a)}`)};return r}function ll(e){return cl(new Map,e)(0)}var ul=``,{toString:dl}={},{keys:fl}=Object;function pl(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=dl.call(e).slice(8,-1);switch(n){case`Array`:return[1,ul];case`Object`:return[2,ul];case`Date`:return[3,ul];case`RegExp`:return[4,ul];case`Map`:return[5,ul];case`Set`:return[6,ul];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function ml([e,t]){return e===0&&(t===`function`||t===`symbol`)}function hl(e,t,n,r){let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=pl(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize ${s}`);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of fl(r))(e||!ml(pl(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(ml(pl(n))||ml(pl(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!ml(pl(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function gl(e,t={}){let n=[];return hl(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:_l,stringify:vl}=JSON,yl={json:!0,lossy:!0};function bl(e){return ll(_l(e))}function xl(e){return vl(gl(e,yl))}function Sl(e){return ll(e)}function Cl(e){return xl(e)}function wl(e){return bl(e)}var Tl=256,El=class extends Error{name=`StreamClosedError`};function Dl(e={}){let t=e.id??js(),n=Math.max(0,e.replayWindow??0),r=Cs(),i=new AbortController,a=[],o=!1,s=0;function c(e){if(o)throw new El(`Cannot write to a closed stream "${t}"`);s+=1,n>0&&(a.push({seq:s,chunk:e}),a.length>n&&(a.length-n===1?a.shift():a.splice(0,a.length-n))),r.emit(`chunk`,s,e)}function l(e){if(o)return;o=!0;let t=kl(e);i.abort(e),r.emit(`end`,t)}function u(){o||(o=!0,i.signal.aborted||i.abort(`stream closed`),r.emit(`end`,void 0))}function d(e){o||i.signal.aborted||i.abort(e??`aborted`)}let f=new WritableStream({write(e){c(e)},close(){u()},abort(e){l(e)}});return{id:t,signal:i.signal,get closed(){return o},get lastSeq(){return s},write:c,error:l,close:u,abort:d,writable:f,events:r,buffer:a}}function Ol(e={}){let t=e.id??js(),n=Math.max(1,e.highWaterMark??Tl),r=[],i=0,a=!1,o=!1,s,c,l,u;function d(){if(c){if(r.length>0){let e=r.shift(),t=c;c=void 0,t.resolve({value:e,done:!1})}else if(a){let e=c;if(c=void 0,s){let t=Error(s.message);t.name=s.name,e.reject(t)}else e.resolve({value:void 0,done:!0})}}}function f(){if(l){for(;r.length>0;){let e=r.shift();try{l.enqueue(e)}catch{break}}if(a&&l){try{if(s){let e=Error(s.message);e.name=s.name,l.error(e)}else l.close()}catch{}l=void 0}}}function p(t,s){if(!(a||o)&&!(t<=i)){if(i=t,r.push(s),r.length>n){let t=r.length-n;r.splice(0,t),e.onOverflow?.(t)}d(),u&&f()}}function m(e){a||(a=!0,s=e,d(),u&&f())}function h(){o||a||(o=!0,e.onCancel?.(),m(void 0))}function g(){return u||(u=new ReadableStream({start(e){l=e,f()},cancel(){h()}}),u)}return{id:t,get cancelled(){return o},get done(){return a},get lastSeenSeq(){return i},get readable(){return g()},cancel:h,_push:p,_end:m,[Symbol.asyncIterator](){return{next(){if(r.length>0)return Promise.resolve({value:r.shift(),done:!1});if(a){if(s){let e=Error(s.message);return e.name=s.name,Promise.reject(e)}return Promise.resolve({value:void 0,done:!0})}return new Promise((e,t)=>{c={resolve:e,reject:t}})},return(){return h(),Promise.resolve({value:void 0,done:!0})}}}}}function kl(e){if(e instanceof Error)return{name:e.name||`Error`,message:e.message};if(typeof e==`string`)return{name:`Error`,message:e};try{return{name:`Error`,message:JSON.stringify(e)}}catch{return{name:`Error`,message:String(e)}}}var Al=128;function jl(e){return e.replace(/[^\w-]+/g,`_`).slice(0,Al)}var Ml=`__connection.json`,Nl=`__DEVFRAME_CONNECTION__`,Pl=`x-birpc-session`,Fl=`__rpc-dump/index.json`,Il=`devframe:services`,Ll=`devframe_otp`,Rl=`devframe_auth_token`;J.postMessage.remoteAssetsError;var zl=class{cacheMap=new Map;options;keySerializer;constructor(e){this.options=e,this.keySerializer=e.keySerializer||(e=>Ss(e))}updateOptions(e){this.options={...this.options,...e}}cached(e,t){let n=this.cacheMap.get(e);if(n)return n.get(this.keySerializer(t))}has(e,t){return this.cacheMap.get(e)?.has(this.keySerializer(t))??!1}apply(e,t){let n=this.cacheMap.get(e.m)||new Map;n.set(this.keySerializer(e.a),t),this.cacheMap.set(e.m,n)}validate(e){return this.options.functions.includes(e)}clear(e){e?this.cacheMap.delete(e):this.cacheMap.clear()}},Bl=Ko({docsBase:`https://devfra.me/errors`,codes:{DF0019:{why:e=>`RPC function "${e.name}" has \`agent\` set but \`jsonSerializable\` is \`false\`; MCP requires JSON-serializable data.`,fix:"Remove `jsonSerializable: false`, or remove `agent` to keep it RPC-only."},DF0020:{why:e=>`RPC function "${e.name}" declares \`jsonSerializable: true\` but the value at "${e.path}" is a ${e.type}.`,fix:"Either drop `jsonSerializable: true` (falls back to structured-clone) or change the value to a JSON-safe shape."},DF0021:{why:e=>`RPC function "${e.name}" is already registered`,fix:"Use the `force` parameter to overwrite an existing registration."},DF0022:{why:e=>`RPC function "${e.name}" is not registered. Use register() to add new functions.`},DF0023:{why:e=>`RPC function "${e.name}" is not registered`},DF0024:{why:e=>`Either handler or setup function must be provided for RPC function "${e.name}"`},DF0025:{why:e=>`Function "${e.name}" not found in dump store`},DF0026:{why:e=>`No dump match for "${e.name}" with args: ${e.args}`},DF0027:{why:e=>`Function "${e.name}" with type "${e.type}" cannot have dump configuration. Only "static" and "query" types support dumps.`},DF0028:{why:e=>`Function "${e.name}" with type "${e.type}" cannot use \`snapshot: true\`. Only "query" functions support this sugar; "static" functions have equivalent default behavior already.`,fix:"Remove `snapshot: true`, or change the function type to `query`."},DF0043:{why:e=>`RPC function "${e.name}" received an invalid argument at position ${e.index}: ${e.issues}`,fix:"Pass a value that satisfies the `args` schema declared for this function."},DF0044:{why:e=>`RPC function "${e.name}" returned a value that failed its \`returns\` schema: ${e.issues}`,fix:"Make the handler return a value that satisfies the `returns` schema, or relax the schema."}}});function Vl(e){if(e.agent&&e.jsonSerializable===!1)throw Bl.DF0019({name:e.name});e.agent&&!e.jsonSerializable&&(e.jsonSerializable=!0)}async function Hl(e,t){let n=e[`~standard`].validate(t);return n instanceof Promise?await n:n}function Ul(e){return e.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `)}async function Wl(e,t,n){let r=n.slice();if(!t||t.length===0)return r;for(let r=0;r<t.length;r++){let i=t[r];if(!i)continue;let a=await Hl(i,n[r]);if(a.issues)throw Bl.DF0043({name:e,index:r,issues:Ul(a.issues)})}return r}async function Gl(e,t,n){if(!t)return n;let r=await Hl(t,n);if(r.issues)throw Bl.DF0044({name:e,issues:Ul(r.issues)});return n}async function Kl(e,t){if(!e.setup)return{};if(typeof t==`object`&&t){e.__cache??=new WeakMap;let n=e.__cache,r=n.get(t);return r||(r=Promise.resolve(e.setup(t)),r.catch(()=>{n.get(t)===r&&n.delete(t)}),n.set(t,r)),await r}if(!e.__promise){let n=Promise.resolve(e.setup(t));n.catch(()=>{e.__promise===n&&(e.__promise=void 0)}),e.__promise=n}return await e.__promise}async function ql(e,t){let n=e.handler;if(!n){let r=await Kl(e,t);if(!r.handler)throw Bl.DF0024({name:e.name});n=r.handler}let r=e.args,i=e.returns;if(!r&&!i)return n;let a=n;return async(...t)=>{let n=await Wl(e.name,r,t),o=await a(...n);return await Gl(e.name,i,o)}}var Jl=class{context;definitions=new Map;functions;_onChanged=[];constructor(e){this.context=e;let t=this.definitions,n=this;this.functions=new Proxy({},{get(e,r){let i=t.get(r);if(i)return ql(i,n.context)},has(e,n){return t.has(n)},getOwnPropertyDescriptor(e,n){return{value:t.get(n)?.handler,configurable:!0,enumerable:!0}},ownKeys(){return Array.from(t.keys())}})}register(e,t=!1){if(this.definitions.has(e.name)&&!t)throw Bl.DF0021({name:e.name});Vl(e),this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}update(e,t=!1){if(!this.definitions.has(e.name)&&!t)throw Bl.DF0022({name:e.name});Vl(e),this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}onChanged(e){return this._onChanged.push(e),()=>{let t=this._onChanged.indexOf(e);t!==-1&&this._onChanged.splice(t,1)}}async getHandler(e){return await ql(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw Bl.DF0023({name:String(e)});return{args:t.args,returns:t.returns}}has(e){return this.definitions.has(e)}get(e){return this.definitions.get(e)}list(){return Array.from(this.definitions.keys())}};function Yl(e,t=``){return JSON.stringify(e,function(e,n){let r=this,i=r==null?n:r[e];if(i===void 0){if(Array.isArray(r))throw Zl(t,`undefined`,r,e);return n}return i!==null&&Xl(i,r,e,t),n})}function Xl(e,t,n,r){if(typeof e==`bigint`)throw Zl(r,`BigInt`,t,n);if(typeof e!=`object`)return;if(e instanceof Map)throw Zl(r,`Map`,t,n);if(e instanceof Set)throw Zl(r,`Set`,t,n);if(e instanceof Date)throw Zl(r,`Date`,t,n);if(Array.isArray(e))return;let i=Object.getPrototypeOf(e);if(i!==null&&i!==Object.prototype)throw Zl(r,e.constructor?.name??`class instance`,t,n)}function Zl(e,t,n,r){let i=Ql(n,r);return Bl.DF0020({name:e||`<anonymous>`,type:t,path:i})}function Ql(e,t){return Array.isArray(e)?`[${t}]`:t===``?`<root>`:t}var $l=`__DEVFRAME_CONNECTION_META__`,eu=`__DEVFRAME_CONNECTION_AUTH_TOKEN__`;function tu(e){let t=[()=>window?.[e],()=>globalThis?.[e],()=>parent.window?.[e]];for(let e of t)try{let t=e();if(t)return t}catch{}}function nu(){return tu(Nl)}function ru(){return tu($l)}function iu(e){if(e)return e;try{let e=localStorage.getItem(eu);if(e)return e}catch{}return tu(eu)}function au(e){globalThis[Nl]=e,globalThis[$l]={...e.connectionMeta,baseUrl:e.metaBaseUrl},e.authToken&&ou(e.authToken)}function ou(e){try{localStorage.setItem(eu,e)}catch{}globalThis[eu]=e;let t=nu();t&&(globalThis[Nl]={...t,authToken:e})}function su(e){let t=Os(Ml,e);try{return new URL(t,globalThis.location?.href).href}catch{return t}}function cu(e,t){return t&&t!==e.authToken?{...e,authToken:t}:e}function lu(){let e=nu();if(e)return cu(e,iu()??e.authToken??e.connectionMeta.authToken);let t=ru();if(t)return{connectionMeta:t,metaBaseUrl:t.baseUrl??su(`./`),authToken:iu(t.authToken)}}async function uu(e={}){if(e.connection){let t=cu(e.connection,iu(e.authToken??e.connection.authToken??e.connection.connectionMeta.authToken));return au(t),t}let t=Array.isArray(e.baseURL)?e.baseURL:[e.baseURL??`./`];if(e.connectionMeta){let n={connectionMeta:e.connectionMeta,metaBaseUrl:su(t[0]??`./`),authToken:iu(e.authToken??e.connectionMeta.authToken)};return au(n),n}let n=lu();if(n){let t=cu(n,iu(e.authToken??n.authToken??n.connectionMeta.authToken));return au(t),t}let r=[];for(let n of t){let t=Os(Ml,n),i=su(n);try{let n=await fetch(t);if(!n.ok)throw Error(`Failed to fetch connection meta from ${i}: ${n.status}`);let r=await n.json(),a=n.url||i,o={connectionMeta:r,metaBaseUrl:r.baseUrl?new URL(r.baseUrl,a).href:a,authToken:iu(e.authToken??r.authToken)};return au(o),o}catch(e){r.push(e)}}throw Error(`Failed to get connection meta from ${t.join(`, `)}`,{cause:r})}var du=class extends Error{name=`DevframeConnectionError`;kind;constructor(e,t,n){super(t,n),this.kind=e}};function fu(e=Ll){try{let t=globalThis.location?.hash?.replace(/^#/,``)??``;return new URLSearchParams(t).get(e)||void 0}catch{return}}function pu(e){try{let t=new URL(globalThis.location.href),n=new URLSearchParams(t.hash.replace(/^#/,``));if(!n.has(e))return;n.delete(e),t.hash=n.toString(),globalThis.history?.replaceState(globalThis.history.state,``,t.href)}catch{}}function mu(e=Ll){let t=fu(e);return t&&pu(e),t}async function hu(e,t={}){let n=mu(t.param??`devframe_otp`);return n?e.isTrusted?!0:e.requestTrustWithCode(n):!1}function gu(e){let t={},n=new WeakMap,r,i=()=>(r??=e.sharedState.get(Il,{initialValue:{}}).then(e=>(t=e.value(),e.on(`updated`,e=>{t=e}),e)),r);return i(),{state:i,has:e=>e in t,keys:()=>Object.keys(t),get:r=>{let i=t[r];if(!i)return;let a=n.get(i);return a||(a={...i,rpc:e.scope(i.scope).rpc},n.set(i,a)),a}}}function _u(e){let t=new Map,n=new Map,r=new Map,i=new Set,a=e.connectionMeta.backend===`static`;function o(e,t){let n=r.get(e);return n&&typeof n==`object`&&!Array.isArray(n)&&typeof t==`object`&&!Array.isArray(t)?{...n,...t}:t}e.client.register({name:J.broadcast.clientStateUpdated,type:`event`,handler:(e,n,r)=>{let i=t.get(e);i&&!i.syncIds.has(r)&&i.mutate(()=>o(e,n),r)}}),e.client.register({name:J.broadcast.clientStatePatch,type:`event`,handler:(e,n,r)=>{let i=t.get(e);i&&!i.syncIds.has(r)&&i.patch(n,r)}});function s(t,n){let r=[];return r.push(n.on(`updated`,(n,r,i)=>{a||(r?e.callEvent(`devframe:rpc:server-state:patch`,t,r,i):e.callEvent(`devframe:rpc:server-state:set`,t,n,i))})),()=>{for(let e of r)e()}}return{keys:()=>Array.from(t.keys()),onKeyAdded(e){return i.add(e),()=>{i.delete(e)}},delete(e){let i=n.get(e);n.delete(e);let a=t.delete(e);return r.delete(e),i?.(),a},get:async(c,l)=>{if(l?.initialValue!==void 0&&r.set(c,l.initialValue),t.has(c))return t.get(c);let u=il({initialValue:l?.initialValue,enablePatches:!1});async function d(){if(a||e.callEvent(`devframe:rpc:server-state:subscribe`,c),l?.initialValue!==void 0){t.set(c,u);for(let e of i)e(c);return e.call(`devframe:rpc:server-state:get`,c).then(e=>{e!==void 0&&u.mutate(()=>o(c,e))}).catch(e=>{console.error(`Error getting server state`,e)}),n.set(c,s(c,u)),u}{let r=await e.call(`devframe:rpc:server-state:get`,c);u.mutate(()=>o(c,r)),t.set(c,u);for(let e of i)e(c);return n.set(c,s(c,u)),u}}return new Promise((t,n)=>{if(e.isTrusted)d().then(t,n);else{t(u);let n=!1;e.events.on(J.client.isTrustedUpdated,e=>{e&&!n&&(n=!0,d())})}})}}}var vu=new Map;function yu(e=vu){let t=new Map;return{serialize:n=>{let r;return n.t===`q`?r=n.m:(r=t.get(n.i),t.delete(n.i)),!(n.t===`s`&&`e`in n)&&r&&e.get(r)?.jsonSerializable===!0?Yl(n,r??``):`s:${Cl(n)}`},deserialize:e=>{let n=e.startsWith(`s:`)?wl(e.slice(2)):JSON.parse(e);return n.t===`q`&&n.i&&n.m&&t.set(n.i,n.m),n}}}function bu(){}function xu(e){let t=e.search(/\n\n|\r\n\r\n/);if(!(t<0))return{frame:e.slice(0,t),rest:e.slice(t+(e[t]===`\r`?4:2))}}function Su(e){let t=`message`,n=[];for(let r of e.split(/\r?\n/))r.startsWith(`:`)||(r.startsWith(`event:`)?t=r.slice(6).trimStart():r.startsWith(`data:`)&&n.push(r.slice(5).replace(/^ /,``)));return{event:t,data:n}}function Cu(e){let{onConnected:t=bu,onError:n=bu,onDisconnected:r=bu,definitions:i,fetch:a=globalThis.fetch.bind(globalThis)}=e,o=e.url;e.authToken&&(o=`${o}${o.includes(`?`)?`&`:`?`}${Rl}=${encodeURIComponent(e.authToken)}`);let s=yu(i),c=new AbortController,l=!1,u,d,f,p,m=new Promise((e,t)=>{f=e,p=t});m.catch(()=>{});function h(e){l||(l=!0,p(e),n(e),r())}function g(){l||(l=!0,p(Error(`Devframe SSE stream closed`)),r())}function _(e,n){e===`session`?(f(n),t()):u?.(n)}async function v(e){let t=e.getReader();d=t;let n=new TextDecoder,r=``;for(;;){let{done:e,value:i}=await t.read();if(e)break;for(r+=n.decode(i,{stream:!0});;){let e=xu(r);if(!e)break;r=e.rest;let{event:t,data:n}=Su(e.frame);n.length>0&&_(t,n.join(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DFNwy14e.js","./B4prFwj0.js","./DoHg1T7s.js","./D4dwYDex.js","./Bw3sjlsE.js","./DF0vjjh8.js","./HmocOjc4.js","./DwGgiVOP.js","./DQNu8teu.js","./f6bf8PNO.js","./BuVS4UTW.js","./C3YrgNlB.js","./D08T24dG.js","./AdR9tqED.js","./ztSLDBsK.js","./mUMfez_o.js","./EGsfZg42.js","./DvBiEoxc.js","./C7ReGOzp.js","./Boxecvzt.js","./D9175g8g.js","./DPc4aOpP.js","./BHxb101O.js","./DWpOVjuS.js","./CQOvHI-h.js","./error-404.B3F8lAkA.css","./ChIAts7W.js","./error-500.BO-H0E44.css"])))=>i.map(i=>d[i]);
2
+ import{_ as e,a as t,d as n,f as r,g as i,h as a,i as o,l as s,m as c,n as l,o as u,p as d,r as f,s as p,t as m,u as h,v as g}from"./Bw3sjlsE.js";import{$ as _,A as v,B as y,C as b,Ct as x,E as S,Et as C,H as w,I as T,J as E,L as D,M as O,N as k,O as ee,P as A,Q as j,S as M,U as te,V as ne,X as re,_ as N,a as ie,b as P,c as F,d as I,g as ae,h as oe,i as se,it as L,j as ce,l as R,m as le,q as ue,r as de,s as z,tt as fe,u as pe,v as me,wt as he,x as ge,y as _e,z as ve}from"./B4prFwj0.js";import{a as ye,c as be,n as xe,o as Se,r as Ce,s as we,t as Te}from"./DoHg1T7s.js";import{A as Ee,C as De,D as Oe,E as ke,M as Ae,O as je,S as Me,T as Ne,_ as Pe,a as Fe,b as Ie,c as Le,d as B,f as Re,g as ze,h as Be,i as Ve,j as He,k as Ue,l as We,m as Ge,n as Ke,o as qe,p as Je,r as Ye,s as Xe,t as Ze,u as Qe,v as $e,w as et,x as tt,y as nt}from"./D4dwYDex.js";import{C as rt,E as it,O as V,S as H,T as at,a as ot,b as st,c as ct,d as lt,f as ut,g as dt,h as ft,i as pt,l as mt,n as ht,o as gt,p as _t,r as vt,s as yt,t as bt,u as xt,v as St,w as Ct,x as wt,y as Tt}from"./DF0vjjh8.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function Et(e){return t=>{let n=`${e.bold(e.red(`[${t.name}]`))} ${t.message}`,r=[];return t.fix&&r.push(`${e.dim(`fix:`)} ${t.fix}`),t.sources?.length&&r.push(`${e.dim(`sources:`)} ${t.sources.join(`, `)}`),t.docs&&r.push(`${e.dim(`see:`)} ${e.cyan(t.docs)}`),r.length===0?n:[n,...r.map((t,n)=>`${e.dim(n<r.length-1?`├▶`:`╰▶`)} ${t}`)].join(`
3
+ `)}}var Dt=/"(?:_|\\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*:/,Ot=/"(?: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*:/,kt=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function At(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t)jt(e);else return t}function jt(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Mt(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!kt.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(Dt.test(e)||Ot.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,At)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}var Nt=class extends Error{constructor(e,t){super(e,t),this.name=`FetchError`,t?.cause&&!this.cause&&(this.cause=t.cause)}};function Pt(e){let t=e.error?.message||e.error?.toString()||``,n=e.request?.method||e.options?.method||`GET`,r=e.request?.url||String(e.request)||`/`,i=new Nt(`${`[${n}] ${JSON.stringify(r)}`}: ${e.response?`${e.response.status} ${e.response.statusText}`:`<no response>`}${t?` ${t}`:``}`,e.error?{cause:e.error}:void 0);for(let t of[`request`,`options`,`response`])Object.defineProperty(i,t,{get(){return e[t]}});for(let[t,n]of[[`data`,`_data`],[`status`,`status`],[`statusCode`,`status`],[`statusText`,`statusText`],[`statusMessage`,`statusText`]])Object.defineProperty(i,t,{get(){return e.response&&e.response[n]}});return i}var Ft=new Set(Object.freeze([`PATCH`,`POST`,`PUT`,`DELETE`]));function It(e=`GET`){return Ft.has(e.toUpperCase())}function Lt(e){if(e===void 0)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===null?!0:t===`object`?Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name===`Object`||typeof e.toJSON==`function`:!1}var Rt=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]),zt=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Bt(e=``){if(!e)return`json`;let t=e.split(`;`).shift()||``;return zt.test(t)?`json`:t===`text/event-stream`?`stream`:Rt.has(t)||t.startsWith(`text/`)?`text`:`blob`}function Vt(e,t,n,r){let i=Ht(t?.headers??e?.headers,n?.headers,r),a;return(n?.query||n?.params||t?.params||t?.query)&&(a={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:a,params:a,headers:i}}function Ht(e,t,n){if(!t)return new n(e);let r=new n(t);if(e)for(let[t,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(t,i);return r}async function Ut(e,t){if(t){if(Array.isArray(t))for(let n of t)await n(e);else await t(e)}}var Wt=new Set([408,409,425,429,500,502,503,504]),Gt=new Set([101,204,205,304]);function Kt(e={}){let{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function i(e){let t=e.error&&e.error.name===`AbortError`&&!e.options.timeout||!1;if(e.options.retry!==!1&&!t){let t;t=typeof e.options.retry==`number`?e.options.retry:+!It(e.options.method);let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):Wt.has(n))){let n=typeof e.options.retryDelay==`function`?e.options.retryDelay(e):e.options.retryDelay||0;return n>0&&await new Promise(e=>setTimeout(e,n)),a(e.request,{...e.options,retry:t-1})}}let n=Pt(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,a),n}let a=async function(a,o={}){let s={request:a,options:Vt(a,o,e.defaults,n),response:void 0,error:void 0};if(s.options.method&&(s.options.method=s.options.method.toUpperCase()),s.options.onRequest&&(await Ut(s,s.options.onRequest),s.options.headers instanceof n||(s.options.headers=new n(s.options.headers||{}))),typeof s.request==`string`&&(s.options.baseURL&&(s.request=je(s.request,s.options.baseURL)),s.options.query&&(s.request=Ue(s.request,s.options.query),delete s.options.query),`query`in s.options&&delete s.options.query,`params`in s.options&&delete s.options.params),s.options.body&&It(s.options.method)){if(Lt(s.options.body)){let e=s.options.headers.get(`content-type`);typeof s.options.body!=`string`&&(s.options.body=e===`application/x-www-form-urlencoded`?new URLSearchParams(s.options.body).toString():JSON.stringify(s.options.body)),e||s.options.headers.set(`content-type`,`application/json`),s.options.headers.has(`accept`)||s.options.headers.set(`accept`,`application/json`)}else(`pipeTo`in s.options.body&&typeof s.options.body.pipeTo==`function`||typeof s.options.body.pipe==`function`)&&(`duplex`in s.options||(s.options.duplex=`half`))}let c;if(!s.options.signal&&s.options.timeout){let e=new r;c=setTimeout(()=>{let t=Error(`[TimeoutError]: The operation was aborted due to timeout`);t.name=`TimeoutError`,t.code=23,e.abort(t)},s.options.timeout),s.options.signal=e.signal}try{s.response=await t(s.request,s.options)}catch(e){return s.error=e,s.options.onRequestError&&await Ut(s,s.options.onRequestError),await i(s)}finally{c&&clearTimeout(c)}if((s.response.body||s.response._bodyInit)&&!Gt.has(s.response.status)&&s.options.method!==`HEAD`){let e=(s.options.parseResponse?`json`:s.options.responseType)||Bt(s.response.headers.get(`content-type`)||``);switch(e){case`json`:{let e=await s.response.text(),t=s.options.parseResponse||Mt;s.response._data=t(e);break}case`stream`:s.response._data=s.response.body||s.response._bodyInit;break;default:s.response._data=await s.response[e]()}}return s.options.onResponse&&await Ut(s,s.options.onResponse),!s.options.ignoreResponseError&&s.response.status>=400&&s.response.status<600?(s.options.onResponseError&&await Ut(s,s.options.onResponseError),await i(s)):s.response},o=async function(e,t){return(await a(e,t))._data};return o.raw=a,o.native=(...e)=>t(...e),o.create=(t={},n={})=>Kt({...e,...n,defaults:{...e.defaults,...n.defaults,...t}}),o}var qt=(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 Error(`unable to locate global object`)})(),Jt=qt.fetch?(...e)=>qt.fetch(...e):()=>Promise.reject(Error(`[ofetch] global.fetch is not supported!`)),Yt=qt.Headers,Xt=qt.AbortController,Zt=Kt({fetch:Jt,Headers:Yt,AbortController:Xt}),Qt=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,$t=()=>Qt().app,en=()=>$t().baseURL,tn=()=>$t().buildAssetsDir,nn=(...e)=>Ne(rn(),tn(),...e),rn=(...e)=>{let t=$t(),n=t.cdnURL||t.baseURL;return e.length?Ne(n,...e):n};globalThis.__buildAssetsURL=nn,globalThis.__publicAssetsURL=rn,globalThis.$fetch||(globalThis.$fetch=Zt.create({baseURL:en()}));var an=globalThis.$fetch;`global`in globalThis||(globalThis.global=globalThis);function on(e,t){t.push(p),e.vueApp.use(t);let n=!0,r=()=>{n=!1,t.render()};t.hooks?.hook(`dom:beforeRender`,e=>{e.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);let i=t.push.bind(t);t.push=((t,n)=>{let r=i(t,n),a=r.dispose.bind(r);return r.dispose=()=>{let t=e[`~transitionPromise`];t?t.finally(a):a()},r})}function sn(e,t){if(typeof t==`function`&&t.key&&e.plugins.has(t.key))return;let n=typeof t==`function`?t(e):t,r=n.key||String(e.plugins.size+1);if(!e.plugins.get(r)){e.plugins.set(r,n);for(let t in n.hooks||{})e.hooks?.hook(t,n.hooks[t])}}function cn(e,t={}){let n=!t.document,r=new Map,i={_entryCount:1,_h:0,plugins:new Map,resolvedOptions:t,ssr:n,entries:r,hooks:void 0,render:()=>e(i),use:e=>sn(i,e),push(e,t){let a=t?._index??i._entryCount++,o=t?{...t}:{};delete o.head,delete o.onRendered,delete o._index;let s={_i:a,input:e,options:o};return r.set(a,s),{_i:a,dispose(){r.delete(a)},patch(e){n?(s.input=e,delete s._tags):s._pending=e,r.has(a)||r.set(a,s)}}}};return t.init?.forEach(e=>e&&i.push(e)),i}var ln=new Set([`link`,`style`,`script`,`noscript`]),un=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),dn=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),fn=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),pn=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),mn=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),hn=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),gn=new Set([`theme-color`,`google-site-verification`,`author`,`og:locale:alternate`,`og:image`,`og:video`,`og:audio`,`article:author`,`article:tag`,`book:author`,`book:tag`,`twitter:image`]),_n={critical:-8,high:-1,low:2},vn=e=>typeof e==`number`?Number.isFinite(e):e;function yn(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function bn(e){let t=new d;for(let n in e||{})t.hook(n,e[n]);return t}function xn(e,t,n){if(e.hooks?._hooks?.[t]?.length)return e.hooks?.callHook(t,n)}function Sn(e,t,n){let r=e.push,i=e;i.ssr=!1,i.hooks=t,i.dirty=!!i.dirty,i.use=e=>sn(i,e),i.render=()=>n(i);function a(){t.callHook(`entries:updated`,i),i._b||i.render()}return i.invalidate=()=>{for(let e of i.entries.values())delete e._tags;i.dirty=!0,a()},i.push=(n,o)=>{let s=o?.onRendered?t.hook(`dom:rendered`,o.onRendered):void 0,c=r(n,o),l=e.entries.get(c._i);return l&&(l._o=n),i.dirty=!0,a(),{_i:c._i,patch(e){c.patch(e),i.dirty=!0,a()},dispose(){s?.(),e.entries.has(c._i)&&(c.dispose(),i.invalidate())}}},i}var Cn=/^(?:viewport|description|keywords|robots)$/,wn=[`name`,`property`,`http-equiv`];function Tn(e){let t=e.indexOf(`:`);if(t===-1)return!1;let n=e.slice(t+1);return gn.has(n)||n.startsWith(`og:image:`)||n.startsWith(`og:video:`)||n.startsWith(`og:audio:`)||n.startsWith(`twitter:image:`)}function En(e){let{props:t,tag:n,key:r}=e;if(pn.has(n))return n;if(n===`link`){if(t.rel===`canonical`)return`canonical`;if(t.rel===`alternate`&&t.hreflang)return`alternate:${t.hreflang}`}if(t.charset)return`charset`;if(n===`meta`)for(let e of wn){let n=t[e];if(n!==void 0)return`meta:${n}${(typeof n!=`string`||!n.includes(`:`))&&!Cn.test(n)&&r?`:key:${r}`:``}`}return r?`${n}:key:${r}`:t.id?`${n}:id:${t.id}`:n===`link`&&t.rel&&t.href?`link:${t.rel}:${t.href}`:un.has(n)&&(e.textContent||e.innerHTML)?`${n}:content:${e.textContent||e.innerHTML}`:void 0}function Dn(e){let t=e._h||e._d||e.textContent||e.innerHTML;if(t)return String(t);let n=Object.keys(e.props).sort(),r=`${e.tag}:`,i=``;for(let t of n)r+=`${i}${t}:${String(e.props[t])}`,i=`,`;return r}function On(e,t,n){if(n===`_resolver`)return e;typeof e==`function`&&(!n||n!==`titleTemplate`&&!n.startsWith(`on`))&&(e=e());let r=t?t(n,e):e;if(Array.isArray(r)){let e;for(let n=0;n<r.length;n++){let i=On(r[n],t);e?e[n]=i:i!==r[n]&&(e=r.slice(0,n),e[n]=i)}return e||r}if(r?.constructor===Object){let e;for(let n in r){let i=yn(n),a=i?void 0:On(r[n],t,n);if(!e&&(i||a!==r[n])){e={};for(let t in r){if(t===n)break;e[t]=r[t]}}e&&!i&&(e[n]=a)}return e||r}return r}var kn=/[\s"'<>/=\x00-\x1F\x7F]/;function An(e,t){let n=e===`style`,r=n?new Map:new Set,i=e=>{if(e){if(n){let t=e.indexOf(`:`);t>0&&r.set(e.slice(0,t).trim(),e.slice(t+1).trim())}else e.split(` `).forEach(e=>e&&r.add(e))}};if(typeof t==`string`)(n?t.split(`;`):[t]).forEach(i);else if(Array.isArray(t))t.forEach(i);else if(t&&typeof t==`object`)for(let e in t){let a=t[e];a&&a!==`false`&&(n?r.set(e.trim(),String(a)):i(e))}return r}function jn(e,t){if(e.props=e.props||{},!t)return e;if(e.tag===`templateParams`)return e.props=t,e;let n=dn.has(e.tag)||e.tag===`htmlAttrs`||e.tag===`bodyAttrs`;for(let r in t){if(yn(r))continue;let i=r.startsWith(`data-`),a=n&&!mn.has(r),o=a&&!i?r.toLowerCase():r;if(a&&(!o||kn.test(o)))continue;let s=t[r];if(s===null)e.props[o]=null;else if(r===`class`||r===`style`)e.props[r]=An(r,s);else if(mn.has(r)){if((r===`textContent`||r===`innerHTML`)&&typeof s==`object`){let n=t.type||`application/json`;(n.endsWith(`json`)||n===`speculationrules`||n===`importmap`)&&(e.props.type=n,e[r]=JSON.stringify(s))}else e[r]=s}else if(s!==void 0){let t=String(s),n=e.tag===`meta`&&o===`content`;e.props[o]=t===`true`||t===``?i||n?t:!0:!s&&i&&t===`false`?`false`:s}}return e}function Mn(e,t){let n;return t.length&&(n=(e,n)=>{for(let r=0;r<t.length;r++)n=t[r](e,n);return n},e=n(void 0,e)),On(e,n)}function Nn(e,t){let n=jn({tag:e,props:{}},typeof t==`object`&&typeof t!=`function`?t:{[e===`script`||e===`noscript`||e===`style`?`innerHTML`:`textContent`]:t});if(n.key&&ln.has(n.tag)&&(n.props[`data-hid`]=n._h=n.key),n.tag===`script`&&typeof n.innerHTML==`object`&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||`application/json`),Array.isArray(n.props.content)){let e=[];for(let t of n.props.content)e.push({...n,props:{...n.props,content:t}});return e}return n}function Pn(e,t){if(Array.isArray(t))for(let n of t)e.push(n);else e.push(t)}function Fn(e,t){if(!e)return[];typeof e==`function`&&(e=e()),e=Mn(e,t);let n=[];for(let t in e){let r=e[t];if(r!==void 0){if(Array.isArray(r))for(let e of r)Pn(n,Nn(t,e));else Pn(n,Nn(t,r))}}return n}var In=/</g,Ln=/<\/script/g,Rn=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,zn=()=>100;function Bn(e){for(let t in e)return!1;return!0}var Vn=/^tags:|:render/;function Hn(e,t){let n=(t[`entries:resolve`]?.length||0)+(t[`entries:normalize`]?.length||0);if(e._h!==n){e._h=n;for(let t of e.entries.values())delete t._tags}}function Un(e){for(let t=0;t<e.length;t++){let n=e[t],r={...n.props};r.class instanceof Set&&(r.class=new Set(r.class)),r.style instanceof Map&&(r.style=new Map(r.style)),e[t]={...n,props:r}}}function Wn(e,t){let n=e.tags,r=0;for(let t of e.tagMap.values())if(Array.isArray(t))for(let e of t)n[r++]=e;else n[r++]=t;n.length=r,t&&n.sort(Rn)}function Gn(e){let t=!1;for(let n of e.tags.sort(Rn)){let r=n._d||Dn(n);if(!r)continue;let i=e.tagMap.get(r);if(!i)e.tagMap.set(r,n);else if((n.tagDuplicateStrategy||(hn.has(n.tag)?`merge`:null)||(n.key&&n.key===i.key?`merge`:null))===`merge`){let t={...i.props};for(let e in n.props)t[e]=e===`style`?new Map([...i.props.style||new Map,...n.props[e]]):e===`class`?new Set([...i.props.class||[],...n.props[e]]):n.props[e];e.tagMap.set(r,{...n,props:t})}else n._p>>10==i._p>>10&&n.tag===`meta`&&Tn(r)?(e.tagMap.set(r,Object.assign([...Array.isArray(i)?i:[i],n],n)),t=!0):(n._w===i._w?n._p>i._p:n._w<i._w)&&e.tagMap.set(r,n)}return t}function Kn(e,t){let n=e.tagMap.get(`title`),r=e.tagMap.get(`titleTemplate`);if(t._title=n?.textContent,!r)return;let i=r.textContent;if(t._titleTemplate=i,!i)return;let a=typeof i==`function`?i(n?.textContent):i;typeof a==`string`&&!t.plugins.has(`template-params`)&&(a=a.replace(`%s`,n?.textContent||``)),n?a===null?e.tagMap.delete(`title`):e.tagMap.set(`title`,{...n,textContent:a}):e.tagMap.set(`titleTemplate`,{...r,tag:`title`,textContent:a})}function qn(e){let t=0;for(let n of e){let{innerHTML:r,tag:i,props:a}=n;if(fn.has(i)&&(!Bn(a)||vn(r)||vn(n.textContent))&&(i!==`meta`||vn(a.content)||a[`http-equiv`]||a.charset)){if(i===`script`&&(r||n.textContent)){let e=String(a.type),t=e.endsWith(`json`)||e===`importmap`||e===`speculationrules`,i=e=>t?(typeof e==`string`?e:JSON.stringify(e)).replace(In,`\\u003C`):typeof e==`string`?e.replace(Ln,`<\\/script`):e;n={...n},r&&(n.innerHTML=i(r)),n.textContent&&(n.textContent=i(n.textContent)),n._d=En(n)}e[t++]=n}}return e.length=t,e}function Jn(e,t){let n=t?.tagWeight??e.resolvedOptions._tagWeight??zn,r={tagMap:new Map,tags:[]},i=e.hooks?._hooks||{};Hn(e,i);for(let t of e.entries.values())t._pending!==void 0&&(t.input=t._pending,delete t._pending,delete t._tags,delete t._precomputedTags);let a;(i[`entries:resolve`]?.length||i[`entries:normalize`]?.length)&&(a=[...e.entries.values()],i[`entries:resolve`]?.length&&xn(e,`entries:resolve`,{entries:a,...r})),Hn(e,i);for(let t of a||e.entries.values()){let a=t._tags;if(!a){if(t._precomputedTags&&n===e.resolvedOptions._tagWeight&&!i[`entries:normalize`]?.length&&!i[`entries:resolve`]?.length&&(!t.options||Bn(t.options)))a=t._precomputedTags;else{if(a=Fn(t.input,e.resolvedOptions.propResolvers||[]),t.options&&!Bn(t.options))for(let e of a)Object.assign(e,t.options);if(i[`entries:normalize`]?.length){let n={tags:a,entry:t};xn(e,`entries:normalize`,n),a=n.tags}for(let e=0;e<a.length;e++){let r=a[e];r._w=n(r),r._p=(t._i<<10)+e,r._d=En(r),r._d||(r._h=Dn(r))}t._tags=a}}r.tags.push(...a)}for(let e in i)if(i[e]?.length&&Vn.test(e)){Un(r.tags);break}let o=Gn(r);return Kn(r,e),Wn(r,o),xn(e,`tags:beforeResolve`,r),xn(e,`tags:resolve`,r),xn(e,`tags:afterResolve`,r),qn(r.tags)}var Yn=/\s+/;function Xn(e={}){return t=>$n(t,e)}function Zn(e){for(let t of e.entries.values())if(t._pending!==void 0)return!0;return!1}function Qn(e,t){let n={_d:t,_t:t.title,_e:new Map([[`htmlAttrs`,t.documentElement],[`bodyAttrs`,t.body]]),_p:{},_s:{},_l:new Map};for(let t of e.entries.values())if(t._o!==void 0){let e=t._o;for(let t of[`bodyAttrs`,`htmlAttrs`]){let r=e[t]?.class;if(typeof r==`string`){let e=n._e.get(t);for(let i of r.split(Yn))i&&(n._p[`${t}:attr:class:${i}`]=()=>e.classList.remove(i))}}}return n}function $n(e,t={}){let n=t.document||e.resolvedOptions.document,r=e._dom;if(!n||e._du||r&&r._d===n&&!e.dirty&&!Zn(e))return!1;let i=n.defaultView;e._du=!0;let a=!1;try{let o=function(e,t,n){d._s[e]=!n&&f[e]||t,delete f[e]},s=function(e,t,n,r,i,a){let s=`${e}:event:${t}`,c=d._l.get(s);if(c&&c[0]===a&&c[1]===n&&c[2]===r){o(s,c[4]);return}c?.[4]();let l=`data-${t}`,u=(e=>r.call(i,e)),f=()=>{a.removeEventListener(n,u),i.getAttribute(l)===``&&i.removeAttribute(l),d._l.get(s)?.[3]===u&&d._l.delete(s)};a.addEventListener(n,u),d._l.set(s,[a,n,r,u,f]),i.setAttribute(l,``),o(s,f,!0)},c=function({id:e,$el:t,tag:n}){if(d._e.set(e,t),!n.tag.endsWith(`Attrs`)){let r=n.textContent;r!=null&&r!==``&&(r!==t.textContent&&(t.textContent=r),o(`${e}:text`,()=>{t.textContent===r&&(t.textContent=``)},!0));let i=n.innerHTML;i!=null&&i!==``&&(i!==t.innerHTML&&(t.innerHTML=i),o(`${e}:html`,()=>{t.innerHTML===i&&(t.innerHTML=``)},!0));let a=`${e}:el`;o(a,f[a]||(()=>{t?.remove(),d._e.delete(e)}))}for(let r in n.props){let a=n.props[r];if(r[0]===`o`&&r[1]===`n`&&typeof a==`function`){let o=r.slice(2);t?.dataset?.[`${r}fired`]&&a.call(t,new((i?.Event)||Event)(o)),s(e,r,o,a,t,n.tag===`bodyAttrs`&&i?i:t);continue}let c=`${e}:attr:${r}`;if(r===`class`&&a)for(let e of a){let n=`${c}:${e}`;o(n,f[n]||(()=>t.classList.remove(e))),t.classList.contains(e)||t.classList.add(e)}else if(r===`style`&&a)for(let[e,n]of a){let r=`${c}:${e}`;o(r,f[r]||(()=>t.style.removeProperty(e))),t.style.setProperty(e,n)}else a!==!1&&a!==null&&(t.getAttribute(r)!==a&&t.setAttribute(r,a===!0?``:String(a)),o(c,f[c]||(()=>t.removeAttribute(r))))}},l={shouldRender:!0,tags:[]};if(xn(e,`dom:beforeRender`,l),!l.shouldRender)return!1;let u=r;if(u?._d!==n){if(u){for(let e in u._s)u._s[e]();for(let e in u._p)u._p[e]();u._s=u._p={},u._e.clear(),u._l.clear()}u=void 0}u?u._p=u._s:u=Qn(e,n),u._s={};let d=u,f=d._p,p=[],m={};e.dirty=!1;let h=Jn(e,t.tagWeight?{tagWeight:t.tagWeight}:void 0),g=[],_={};for(let e of h){let t=_[e._d]||0,r=(t?`${e._d}:${t}`:e._d)||e._h,i={tag:e,id:r,shouldRender:!0};e.tag===`meta`&&e._d&&Tn(e._d)&&(_[e._d]=t+1),g.push(i),e.tag===`title`?(n.title=e.textContent,o(`title:`,()=>n.title=d._t)):(i.$el=d._e.get(r),i.$el?c(i):dn.has(e.tag)&&p.push(i))}if(p.length){let e=new Set(d._e.values());for(let t of[...n.body.children,...n.head.children]){let n=t.tagName.toLowerCase();if(!dn.has(n)||e.has(t))continue;let r={innerHTML:t.innerHTML};for(let e of t.getAttributeNames())r[e]=t.getAttribute(e);let i=jn({tag:n,props:{}},r);i.key=t.getAttribute(`data-hid`)||void 0;let a=En(i)||Dn(i),o=a,s=1;for(;d._e.has(o);)o=`${a}:${s++}`;d._e.set(o,t)}}for(let e of p){let t=d._e.get(e.id);e.$el=t||n.createElement(e.tag.tag),c(e),t||(m[e.tag.tagPosition||`head`]??=n.createDocumentFragment()).appendChild(e.$el)}m.head&&n.head.appendChild(m.head),m.bodyOpen&&n.body.insertBefore(m.bodyOpen,n.body.firstChild),m.bodyClose&&n.body.appendChild(m.bodyClose);for(let e in f)f[e]();e._dom=d,a=!0,xn(e,`dom:rendered`,{renders:g})}catch(t){throw e.dirty=!0,t}finally{e._du=!1}return a&&(e.dirty||Zn(e))&&$n(e,t),a}var er=e=>typeof e.tagPriority==`number`?e.tagPriority:100+(_n[e.tagPriority]||0);function tr(e={}){e.document=e.document||(typeof window<`u`?document:void 0);let t=e.render||Xn({document:e.document}),n=Sn(cn(t,{document:e.document,propResolvers:e.propResolvers,_tagWeight:er,init:[]}),bn(e.hooks),t);return e.plugins?.forEach(e=>n.use(e)),e.init?.forEach(e=>e&&n.push(e)),n}var nr=`usehead`;function rr(){if(ge()){let e=M(nr);if(e)return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function ir(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(nr,e)}}.install}function ar(e,t){return t&&typeof e==`function`&&(e.key=t),e}var or=/\\/g,sr=/</g,cr=/"/g,lr=/%\w+(?:\.\w+)?/g,ur=`%separator`;function dr(e,t,n=!1){let r;if(t===`s`||t===`pageTitle`)r=e.pageTitle;else if(t.includes(`.`)){let n=t.indexOf(`.`);r=e[t.substring(0,n)]?.[t.substring(n+1)]}else r=e[t];if(r!==void 0){let e=String(typeof r==`number`?r:r||``);return n?e.replace(or,`\\\\`).replace(sr,`\\u003C`).replace(cr,`\\"`):e}}function fr(e,t,n,r=!1){if(typeof e!=`string`||!e.includes(`%`))return e;let i=e;try{i=decodeURI(e)}catch{}let a=i.match(lr);if(!a)return e;let o=e.includes(ur);return e=e.replace(lr,e=>{if(e===ur||!a.includes(e))return e;let n=dr(t,e.slice(1),r);return n===void 0?e:n}).trim(),o&&(e=e.split(ur).map(e=>e.trim()).filter(e=>e!==``).join(n?` ${n} `:` `)),e}var pr=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,mr=e=>e.includes(`:key`)?e:e.split(`:`).join(`:key:`),hr=ar({key:`aliasSorting`,hooks:{"tags:resolve":e=>{let t=!1;for(let n of e.tags){let r=n.tagPriority;if(!r)continue;let i=String(r);if(i.startsWith(`before:`)){let r=mr(i.slice(7)),a=e.tagMap.get(r);a&&(typeof a.tagPriority==`number`&&(n.tagPriority=a.tagPriority),n._p=a._p-1,t=!0)}else if(i.startsWith(`after:`)){let r=mr(i.slice(6)),a=e.tagMap.get(r);a&&(typeof a.tagPriority==`number`&&(n.tagPriority=a.tagPriority),n._p=a._p+1,t=!0)}}t&&(e.tags=e.tags.sort(pr))}}}),gr=ar({key:`deprecations`,hooks:{"entries:normalize":({tags:e})=>{for(let t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),`body`in t.props&&(t.props.body&&(t.tagPosition=`bodyClose`),delete t.props.body),t.props.renderPriority!=null&&(t.tagPriority=t.props.renderPriority,delete t.props.renderPriority)}}});function _r(e){return typeof e?.then==`function`}var vr=256;function yr(e,t){if(t===e.length)return;if(t===vr){let n=Array(e.length),r=!1;for(;t<e.length;t++){let i=xr(e[t]);n[t]=i,r||=_r(i)}return r?n:void 0}let n=xr(e[t]);if(_r(n)){let r=Array(e.length);r[t]=n;for(let n=t+1;n<e.length;n++)r[n]=xr(e[n]);return r}let r=yr(e,t+1);return r&&(r[t]=n),r}function br(e,t,n){if(n===t.length)return;if(n===vr){let r=Array(t.length),i=!1;for(;n<t.length;n++){let a=xr(e[t[n]]);r[n]=a,i||=_r(a)}return i?r:void 0}let r=xr(e[t[n]]);if(_r(r)){let i=Array(t.length);i[n]=r;for(let r=n+1;r<t.length;r++)i[r]=xr(e[t[r]]);return i}let i=br(e,t,n+1);return i&&(i[n]=r),i}function xr(e){if(typeof e==`function`)return e;if(_r(e))return Promise.resolve(e).then(xr);if(Array.isArray(e)){let t=yr(e,0);return t?Promise.all(t):e}if(e?.constructor===Object){let t=Object.keys(e),n=br(e,t,0);if(n)return Promise.all(n).then(e=>Object.fromEntries(t.map((t,n)=>[t,e[n]])))}return e}var Sr=ar(e=>{let t=new WeakMap;return{key:`promises`,hooks:{"entries:resolve":n=>{for(let r=n.entries.length-1;r>=0;r--){let i=n.entries[r],a=i.input;if(t.get(i)===a){n.entries.splice(r,1);continue}let o=xr(a);_r(o)?(t.set(i,a),n.entries.splice(r,1),Promise.resolve(o).then(n=>{t.get(i)===a&&(t.delete(i),i.input=n,delete i._tags,e.invalidate?.())},()=>{t.get(i)===a&&t.delete(i)})):t.delete(i)}}}}},`promises`),Cr={meta:`content`,link:`href`,htmlAttrs:`lang`},wr=[`innerHTML`,`textContent`];function Tr(e,t,n,r=!1){return typeof e==`string`&&e.includes(`%`)?fr(e,t,n,r):e}var Er=ar(e=>({key:`template-params`,hooks:{"tags:resolve":({tagMap:t,tags:n})=>{let r=t.get(`templateParams`)?.props||{},i=r.separator||`|`;delete r.separator,r.pageTitle=Tr(r.pageTitle||e._title||``,r,i);for(let e of n){if(e.processTemplateParams===!1)continue;let t=Cr[e.tag];if(t&&typeof e.props[t]==`string`)e.props[t]=Tr(e.props[t],r,i);else if(e.processTemplateParams||e.tag===`titleTemplate`||e.tag===`title`)for(let t of wr)typeof e[t]==`string`&&(e[t]=Tr(e[t],r,i,e.tag===`script`&&typeof e.props.type==`string`&&e.props.type.endsWith(`json`)))}e._templateParams=r,e._separator=i},"tags:afterResolve":({tagMap:t})=>{let n=t.get(`title`);n?.textContent&&n.processTemplateParams!==!1&&(n.textContent=Tr(n.textContent,e._templateParams,e._separator))}}}),`template-params`);function Dr(e={}){let t=Xn(),n,r=0;return n=tr({render:()=>{let e=++r;setTimeout(()=>{e===r&&t(n)},0)},...e}),n.install=ir(n),n}var Or={disableDefaults:!0,plugins:[gr,Sr,Er,hr]},kr=f({name:`nuxt:head`,enforce:`pre`,setup(e){on(e,Dr(Or))}}),Ar=/(:\w+)\([^)]+\)/g,jr=/(:\w+)[?+*]/g,Mr=/:\w+/g,Nr=(e,t)=>t.path.replace(Ar,`$1`).replace(jr,`$1`).replace(Mr,t=>e.params[t.slice(1)]?.toString()||``),Pr=(e,t)=>{let n=e.route.matched.find(t=>t.components?.default===e.Component.type),r=t??n?.meta.key??(n&&Nr(e.route,n));return typeof r==`function`?r(e.route):r},Fr=(e,t)=>({default:()=>e?P(se,e===!0?{}:e,t):t});function Ir(e){return Array.isArray(e)?e:[e]}var Lr=()=>({}),Rr=e=>e.startsWith(`/`);function zr(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Br(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&zr(e.default)}var U=Object.assign;function Vr(e,t){let n={};for(let r in t){let i=t[r];n[r]=W(i)?i.map(e):e(i)}return n}var Hr=()=>{},W=Array.isArray;function Ur(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var Wr=Symbol(``),Gr=function(e){return e[e.aborted=4]=`aborted`,e[e.cancelled=8]=`cancelled`,e[e.duplicated=16]=`duplicated`,e}({});function Kr(e,t){return U(Error(),{type:e,[Wr]:!0},t)}function G(e,t){return e instanceof Error&&Wr in e&&(t==null||!!(e.type&t))}var qr=Symbol(``),Jr=Symbol(``),Yr=Symbol(``),Xr=Symbol(``),Zr=Symbol(``),Qr=Symbol(``),$r=typeof document<`u`,ei=/#/g,ti=/&/g,ni=/\//g,ri=/=/g,ii=/\?/g,ai=/\+/g,oi=/%5B/g,si=/%5D/g,ci=/%5E/g,li=/%60/g,ui=/%7B/g,di=/%7C/g,fi=/%7D/g,pi=/%20/g;function mi(e){return e==null?``:encodeURI(``+e).replace(di,`|`).replace(oi,`[`).replace(si,`]`)}function hi(e){return mi(e).replace(ui,`{`).replace(fi,`}`).replace(ci,`^`)}function gi(e){return mi(e).replace(ai,`%2B`).replace(pi,`+`).replace(ei,`%23`).replace(ti,`%26`).replace(li,"`").replace(ui,`{`).replace(fi,`}`).replace(ci,`^`)}function _i(e){return gi(e).replace(ri,`%3D`)}function vi(e){return mi(e).replace(ei,`%23`).replace(ii,`%3F`)}function yi(e){return vi(e).replace(ni,`%2F`)}function bi(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var xi=/\/$/,Si=e=>e.replace(xi,``);function Ci(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=ji(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:bi(o)}}function wi(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Ti(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Ei(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Di(t.matched[r],n.matched[i])&&Oi(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Di(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Oi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!ki(e[n],t[n]))return!1;return!0}function ki(e,t){return W(e)?Ai(e,t):W(t)?Ai(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Ai(e,t){return W(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function ji(e,t){if(Rr(e))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`){if(s===`..`)a>1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var K={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function Mi(e){if(!e){if($r){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Si(e)}var Ni=/^[^#]+#/;function Pi(e,t){return e.replace(Ni,`#`)+t}function Fi(e,t){let 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)}}var Ii=()=>history.scrollRestoration===`manual`?{left:window.scrollX,top:window.scrollY}:null;function Li(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Fi(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Ri(e,t){return(history.state?history.state.position-t:-1)+e}var zi=new Map;function Bi(e){zi.set(e,Ii())}function Vi(e){let t=zi.get(e);return zi.delete(e),t}function Hi(e,t=!1){for(let n of zi.keys()){let r=parseInt(n,10);(r===e||!t&&r>e)&&zi.delete(n)}}function Ui(e){return typeof e==`string`||e&&typeof e==`object`}function Wi(e){return typeof e==`string`||typeof e==`symbol`}function Gi(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(ai,` `),i=r.indexOf(`=`),a=bi(i<0?r:r.slice(0,i)),o=i<0?null:bi(r.slice(i+1));if(a in t){let e=t[a];W(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Ki(e){let t=``;for(let n in e){let r=e[n];n=_i(n),r==null?r!==void 0&&(t+=(t.length?`&`:``)+n):(W(r)?r.map(e=>e&&gi(e)):[r&&gi(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function qi(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=W(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Ji(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Yi(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(Kr(4,{from:n,to:t})):e instanceof Error?c(e):Ui(e)?c(Kr(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Xi(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(t===`beforeRouteEnter`||o.instances[e]){if(zr(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Yi(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Br(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Yi(c,n,r,o,e,i)()}))}}}return a}function Zi(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>Di(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>Di(e,s))||i.push(s))}return[n,r,i]}var Qi=()=>location.protocol+`//`+location.host;function $i(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Ti(n,``)}return Ti(n,e)+r+i}function ea(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=$i(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){let{history:e}=window;e.state&&e.replaceState(U({},e.state,{scroll:Ii()}),``)}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),{pauseListeners:c,listen:l,destroy:d}}function ta(e,t,n,r=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:null}}function na(e){let{history:t,location:n}=window,r={value:$i(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Qi()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){let o=U({},t.state,ta(i.value.back,e,i.value.forward,!0),n,{position:i.value.position});a(e,o,!0),Hi(o.position,!0),r.value=e}function s(e,n){let o=U({},i.value,t.state,{forward:e,scroll:Ii()});a(o.current,o,!0),a(e,U({},ta(r.value,e,null),{position:o.position+1},n),!1),Hi(o.position),r.value=e}return{location:r,state:i,push:s,replace:o}}function ra(e){e=Mi(e);let t=na(e),n=ea(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=U({location:``,base:e,go:r,createHref:Pi.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function ia(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),ra(e)}var aa={type:0,value:``},oa=/[a-zA-Z0-9_]/;function sa(e){if(!e)return[[]];if(e===`/`)return[[aa]];if(!Rr(e))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:oa.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var ca=`[^/]+?`,la={sensitive:!1,strict:!1,start:!0,end:!0},ua=/[.+*?^${}()[\]/\\]/g;function da(e,t){let n=U({},la,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(ua,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||ca;if(u!==ca){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(W(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=W(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function fa(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function pa(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=fa(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(ma(r))return 1;if(ma(i))return-1}return i.length-r.length}function ma(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var ha={strict:!1,end:!0,sensitive:!1};function ga(e,t,n){let r=U(da(sa(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function _a(e,t){let n=[],r=new Map;t=Ur(ha,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=ya(e);s.aliasOf=r&&r.record;let l=Ur(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(ya(U({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&!Rr(u)){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=ga(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!xa(d)&&o(e.name)),Ta(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:Hr}function o(e){if(Wi(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Ca(e,n);n.splice(t,0,e),e.record.name&&!xa(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw Kr(1,{location:e});s=i.record.name,a=U(va(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&va(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw Kr(1,{location:e,currentLocation:t});s=i.record.name,a=U({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Sa(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function va(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function ya(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:ba(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function ba(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function xa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Sa(e){return e.reduce((e,t)=>U(e,t.meta),{})}function Ca(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;pa(e,t[i])<0?r=i:n=i+1}let i=wa(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function wa(e){let t=e;for(;t=t.parent;)if(Ta(t)&&pa(e,t)===0)return t}function Ta({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ea(e){let t=M(Yr),n=M(Xr),r=z(()=>{let n=L(e.to);return t.resolve(n)}),i=z(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(Di.bind(null,i));if(o>-1)return o;let s=ja(e[t-2]);return t>1&&ja(i)===s&&a[a.length-1].path!==s?a.findIndex(Di.bind(null,e[t-2])):o}),a=z(()=>i.value>-1&&Aa(n.params,r.value.params)),o=z(()=>i.value>-1&&i.value===n.matched.length-1&&Oi(n.params,r.value.params));function s(n={}){if(ka(n)){let n=t[L(e.replace)?`replace`:`push`](L(e.to)).catch(Hr);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:z(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Da(e){return e.length===1?e[0]:e}var Oa=N({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Ea,setup(e,{slots:t}){let n=re(Ea(e)),{options:r}=M(Yr),i=z(()=>({[Ma(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Ma(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Da(t.default(n));return e.custom?r:P(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function ka(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){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Aa(e,t){for(let n in t){let r=t[n],i=e[n];if(W(r)){if(!W(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}else if(r!==i)return!1}return!0}function ja(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Ma=(e,t,n)=>e??t??n,Na=N({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=M(Zr),i=z(()=>e.route||r.value),a=M(Jr,0),o=z(()=>{let e=L(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=z(()=>i.value.matched[o.value]);k(Jr,z(()=>o.value+1)),k(qr,s),k(Zr,i);let c=new Set;k(Qr,c);let l=j(),u=K,{app:d}=me().appContext;return y(()=>[l.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Di(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,f=o&&o.components[a];if(!f)return Pa(n.default,{Component:f,route:r});let p=o.props[a],m=p?p===!0?r.params:typeof p==`function`?p(r):p:null,h=e=>{e.component.isUnmounted&&(o.instances[a]=null)},g=e=>S(()=>{if(u===r||i.value!==r||e.el.getRootNode()!==d._container.getRootNode())return;let t=u;u=r;for(let e of c)e(r,t)}),_=P(f,U({},m,t,{onVnodeUnmounted:h,onVnodeMounted:g,onVnodeUpdated:g,ref:l}));return Pa(n.default,{Component:_,route:r})||_}}});function Pa(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Fa=Na;function Ia(e){let t=e.matcher||_a(e.routes,e),n=e.parseQuery||Gi,r=e.stringifyQuery||Ki,i=e.history,a=Ji(),o=Ji(),s=Ji(),c=fe(K),l=fe(0),u=K;$r&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let d=Vr.bind(null,e=>``+e),f=Vr.bind(null,yi),p=Vr.bind(null,bi);function m(e,n){let r,i;Wi(e)?(r=t.getRecordMatcher(e),i=n):i=e;let a=t.addRoute(i,r);return l.value++,()=>{a(),l.value++}}function h(e){let n=t.getRecordMatcher(e);n&&(t.removeRoute(n),l.value++)}function g(){t.clearRoutes(),l.value++}function v(){return t.getRoutes().map(e=>e.record)}function y(e){return!!t.getRecordMatcher(e)}function b(e,a){if(l.value,typeof e==`string`){a||=e.startsWith(`/`)?K:c.value;let r=Ci(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return U(r,o,{params:p(o.params),redirectedFrom:void 0,href:s})}a=U({},a||(e.path!=null&&e.path.startsWith(`/`)&&!(`name`in e&&e.name)?K:c.value));let o;if(e.path!=null)o=U({},e,{path:Ci(n,e.path,a.path).path});else{let t=U({},e.params);for(let e in t)t[e]??delete t[e];o=U({},e,{params:f(t)}),a.params=f(a.params)}let s=t.resolve(o,a),u=e.hash||``;s.params=d(p(s.params));let m=wi(r,U({},e,{hash:hi(u),path:s.path})),h=i.createHref(m);return U({fullPath:m,hash:u,query:r===Ki?qi(e.query):e.query||{}},s,{redirectedFrom:void 0,href:h})}function x(e){return typeof e==`string`?Ci(n,e,c.value.path):U({},e)}function C(e,t){if(u!==e)return Kr(8,{from:t,to:e})}function w(e){return D(e)}function T(e){return w(U(x(e),{replace:!0}))}function E(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=x(i):{path:i},i.params={}),U({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function D(e,t){let n=u=b(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,l=E(n,i);if(l)return D(U(x(l),{state:typeof l==`object`?U({},a,l.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&Ei(r,i,n)&&(f=Kr(16,{to:d,from:i}),I(i,i,!0,!1)),(f?Promise.resolve(f):ee(d,i)).catch(e=>G(e)?G(e,2)?e:F(e):ie(e,d,i)).then(e=>{if(e){if(G(e,2))return D(U({replace:s},x(e.to),{state:typeof e.to==`object`?U({},a,e.to.state):a,force:o}),t||d)}else e=j(d,i,!0,s,a);return A(d,i,e),e})}function O(e,t){let n=C(e,t);return n?Promise.reject(n):Promise.resolve()}function k(e){let t=se.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function ee(e,t){let n,[r,i,s]=Zi(e,t);n=Xi(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Yi(r,e,t))});let c=O.bind(null,e,t);return n.push(c),R(n).then(()=>{n=[];for(let r of a.list())n.push(Yi(r,e,t));return n.push(c),R(n)}).then(()=>{n=Xi(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Yi(r,e,t))});return n.push(c),R(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter){if(W(r.beforeEnter))for(let i of r.beforeEnter)n.push(Yi(i,e,t));else n.push(Yi(r.beforeEnter,e,t))}return n.push(c),R(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Xi(s,`beforeRouteEnter`,e,t,k),n.push(c),R(n))).then(()=>{n=[];for(let r of o.list())n.push(Yi(r,e,t));return n.push(c),R(n)}).catch(e=>G(e,8)?e:Promise.reject(e))}function A(e,t,n){s.list().forEach(r=>k(()=>r(e,t,n)))}function j(e,t,n,r,a){let o=C(e,t);if(o)return o;let s=t===K,l=$r?history.state:{};n&&(r||s?i.replace(e.fullPath,U({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,I(e,t,n,s),F()}let M;function te(){M||=i.listen((e,t,n)=>{if(!ce.listening)return;let r=b(e),a=E(r,ce.currentRoute.value);if(a){D(U(a,{replace:!0,force:!0}),r).catch(Hr);return}u=r;let o=c.value;$r&&n.delta&&Bi(Ri(o.fullPath,n.delta)),ee(r,o).catch(e=>G(e,12)?e:G(e,2)?(D(U(x(e.to),{force:!0}),r).then(e=>{G(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(Hr),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ie(e,r,o))).then(e=>{e||=j(r,o,!1),e&&(n.delta&&!G(e,8)?i.go(-n.delta,!1):n.type===`pop`&&G(e,20)&&i.go(-1,!1)),A(r,o,e)}).catch(Hr)})}let ne=Ji(),re=Ji(),N;function ie(e,t,n){F(e);let r=re.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function P(){return N&&c.value!==K?Promise.resolve():new Promise((e,t)=>{ne.add([e,t])})}function F(e){return N||(N=!e,te(),ne.list().forEach(([t,n])=>e?n(e):t()),ne.reset()),e}function I(t,n,r,i){let{scrollBehavior:a}=e;if(!$r||!a)return Promise.resolve();let o=!r&&Vi(Ri(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return S().then(()=>a(t,n,o)).then(e=>t===c.value&&e&&Li(e)).catch(e=>t===c.value&&ie(e,t,n))}let ae=e=>i.go(e),oe,se=new Set,ce={currentRoute:c,listening:!0,addRoute:m,removeRoute:h,clearRoutes:g,hasRoute:y,getRoutes:v,resolve:b,options:e,push:w,replace:T,go:ae,back:()=>ae(-1),forward:()=>ae(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:re.add,isReady:P,install(e){e.component(`RouterLink`,Oa),e.component(`RouterView`,Fa),e.config.globalProperties.$router=ce,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>L(c)}),$r&&!oe&&c.value===K&&(oe=!0,w(i.location).catch(e=>{}));let t={};for(let e in K)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(Yr,ce),e.provide(Xr,_(t)),e.provide(Zr,c);let n=e.unmount;se.add(e),e.unmount=function(){se.delete(e),se.size<1&&(u=K,M&&M(),M=null,c.value=K,oe=!1,N=!1),n()}}};function R(e){return e.reduce((e,t)=>e.then(()=>k(t)),Promise.resolve())}return ce}var La=(e,t)=>({default:()=>e?P(Te,e===!0?{}:e,t):t.default?.()}),Ra=/(:\w+)\([^)]+\)/g,za=/(:\w+)[?+*]/g,Ba=/:\w+/g;function Va(e){let t=e?.meta.key??e.path.replace(Ra,`$1`).replace(za,`$1`).replace(Ba,t=>e.params[t.slice(1)]?.toString()||``);return typeof t==`function`?t(e):t}function Ha(e,t){return e===t||t===K?!1:Va(e)!==Va(t)||!e.matched.every((e,n)=>e.components&&e.components.default===t.matched[n]?.components?.default)}function Ua(e){return Array.isArray(e)?e:[e]}function Wa(e){let t=[];for(let n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?Ua(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?Ua(n.onBeforeLeave):void 0});return tt(...t)}function Ga(e){e[`~transitionPromise`]||=new Promise(t=>{e[`~transitionFinish`]=t})}function Ka(e){e[`~transitionFinish`]?.(),delete e[`~transitionFinish`],delete e[`~transitionPromise`]}var qa={scrollBehavior(e,n,r){let i=t(),a=B(),o=a.options?.scrollBehaviorType??`auto`;return e.path.replace(/\/$/,``)===n.path.replace(/\/$/,``)?n.hash&&!e.hash?r??{left:0,top:0}:e.hash?{el:e.hash,top:Ja(e.hash),behavior:o}:!1:(typeof e.meta.scrollToTop==`function`?e.meta.scrollToTop(e,n):e.meta.scrollToTop)===!1?!1:n===K?Ya(e,n,r,o):new Promise(t=>{let s=()=>{requestAnimationFrame(()=>{a.currentRoute.value.fullPath===e.fullPath?t(Ya(e,n,r,o)):t(!1)})};i.hooks.hookOnce(`page:loading:end`,()=>{let e=i[`~transitionPromise`];e?e.then(s):s()})})}};function Ja(e){let t=document.getElementById(e.slice(1));return t?(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0):0}function Ya(e,t,n,r){return n||(e.hash?{el:e.hash,top:Ja(e.hash),behavior:Ha(e,t)?r:`instant`}:{left:0,top:0})}var Xa={hashMode:!0,scrollBehaviorType:`auto`,sensitive:!1,...qa},Za=qe(async e=>{if(!e.meta?.validate)return;let t=await Promise.resolve(e.meta.validate(e));if(t!==!0)return nt({fatal:!0,status:t&&(t.status||t.statusCode)||404,statusText:t&&(t.statusText||t.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}})}),Qa=g({docsBase:a,reporters:i}),$a=an;function eo(e){return Lr(e)}var to;function no(){let e;return e=$a(nn(`builds/meta/${u().app.buildId}.json`),{responseType:`json`}).then(e=>{if(!e||typeof e!=`object`||!Array.isArray(e.prerendered))throw Qa.NUXT_E5004();return e}),to=e,e.catch(t=>{to===e&&(to=void 0),Qa.NUXT_E5002({cause:t})}),e}function ro(){return to||no()}function io(e){let t=typeof e==`string`?e:e.path;try{return eo(t)}catch(e){return Qa.NUXT_E5003({path:t,cause:e}),{}}}var ao=[Za,qe(e=>{let t=io({path:e.path});if(t.redirect){let n=t.redirect.includes(`#`)?t.redirect:t.redirect+e.hash;return Be(n)?(window.location.href=n,!1):n}})],oo={},so=[{name:`keys-key`,path:`/keys/:key()`,component:()=>V(()=>import(`./DFNwy14e.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url)},{name:`locales-locale`,path:`/locales/:locale()`,component:()=>V(()=>import(`./AdR9tqED.js`),__vite__mapDeps([13,1,3,4,5,6,2,14,8,9]),import.meta.url)},{name:`diagnostics`,path:`/diagnostics`,component:()=>V(()=>import(`./mUMfez_o.js`),__vite__mapDeps([15,1,3,4,5,6,2,7,14]),import.meta.url)},{name:`extract`,path:`/extract`,component:()=>V(()=>import(`./EGsfZg42.js`),__vite__mapDeps([16,1,2,5,7,14,8]),import.meta.url)},{name:`keys`,path:`/keys`,component:()=>V(()=>import(`./DvBiEoxc.js`),__vite__mapDeps([17,1,2,3,4,5,9,12,18]),import.meta.url)},{name:`project`,path:`/project`,component:()=>V(()=>import(`./Boxecvzt.js`),__vite__mapDeps([19,1,5,7,14,8,20]),import.meta.url)},{name:`usages`,path:`/usages`,component:()=>V(()=>import(`./DPc4aOpP.js`),__vite__mapDeps([21,1,2,5,7,14,11,18]),import.meta.url)},{name:`index`,path:`/`,component:()=>V(()=>import(`./BHxb101O.js`),__vite__mapDeps([22,1,5,6,2,14,8,9,10,20]),import.meta.url)}],co=/\/(?=$|[?#])/;function lo(e,t,n){let{pathname:r,search:i,hash:a}=t,o=e.indexOf(`#`);if(o>-1){let t=a.includes(e.slice(o))?e.slice(o).length:1,n=a.slice(t);return n[0]!==`/`&&(n=`/`+n),He(n,``)}let s=He(r,e),c=!n||De(s,n)?s:n;return c+(c.includes(`?`)?``:i)+a}var uo=f({name:`nuxt:router`,enforce:`pre`,async setup(e){let t=u().app.baseURL;t.includes(`#`)||(t+=`#`);let n=Xa.history?.(t)??ia(t),r=Xa.routes?await Xa.routes(so)??so:so,i,a=Ia({...Xa,scrollBehavior:(e,t,n)=>{if(t===K)i=n;else if(Xa.scrollBehavior){if(a.options.scrollBehavior=Xa.scrollBehavior,`scrollRestoration`in window.history){let e=a.beforeEach(()=>{e(),window.history.scrollRestoration=`manual`})}return Xa.scrollBehavior(e,K,i||n)}},history:n,routes:r});`scrollRestoration`in window.history&&(window.history.scrollRestoration=`auto`),e.vueApp.use(a);let o=fe(a.currentRoute.value);a.afterEach((e,t)=>{o.value=t}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>o.value});let s=lo(t,window.location,e.payload.path);He(window.location.pathname,t);let c=fe(a.currentRoute.value),l=()=>{c.value=a.currentRoute.value};a.afterEach((e,t)=>{let n=e.matched.at(-1)?.components?.default,r=t.matched.at(-1)?.components?.default;n===r?Pr({route:e,Component:{type:n}})===Pr({route:t,Component:{type:r}})&&l():e.matched.length<t.matched.length&&e.matched.every((e,n)=>e.components?.default===t.matched[n]?.components?.default)&&l()});let d={sync:l};for(let e in c.value)Object.defineProperty(d,e,{get:()=>c.value[e],enumerable:!0});e._route=_(d),e._middleware||={global:[],named:{}};let f=Fe();a.afterEach(async(t,n,r)=>{delete e._processingMiddleware,!e.isHydrating&&f.value&&!G(r,Gr.aborted|Gr.cancelled)&&await e.runWithContext(Ye),r&&await e.callHook(`page:loading:end`)}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook(`page:loading:end`)});try{await a.isReady()}catch(t){await Ke(e,t)}let p=s===a.currentRoute.value.fullPath?a.currentRoute.value:a.resolve(s),m=a.currentRoute.value.fullPath,h=e.isHydrating&&e.payload.prerenderedAt&&e.payload.path&&s.replace(co,``)!==e.payload.path.replace(co,``)&&De(a.currentRoute.value.path,e.payload.path);l();function g(r){!e.isHydrating&&r.fullPath!==lo(t,window.location)&&n.push(r.fullPath)}a.beforeEach(t=>{if(!e.isHydrating&&Lr(t.path).noScripts)return window.location.assign(a.resolve(t.fullPath).href),!1});let v=e.payload.state._layout;return a.beforeEach(async(t,n)=>{await e.callHook(`page:loading:start`),t.meta=re(t.meta),e.isHydrating&&v&&!ue(t.meta.layout)&&(t.meta.layout=v),e._processingMiddleware=!0;{let r=new Set([...ao,...e._middleware.global]);for(let e of t.matched){let t=e.meta.middleware;if(t)for(let e of Ir(t))r.add(e)}let i=io({path:t.path});if(i.appMiddleware)for(let e in i.appMiddleware)i.appMiddleware[e]?r.add(e):r.delete(e);for(let i of r){let r=typeof i==`string`?e._middleware.named[i]||await oo[i]?.().then(e=>e.default||e):i;if(!r)throw Re.NUXT_E2004({entry:String(i),validMiddleware:void 0});try{let i=await e.runWithContext(()=>r(t,n));if(!e.payload.serverRendered&&e.isHydrating&&(i===!1||i instanceof Error)){let t=i||nt({status:404,statusText:`Page Not Found: ${s}`});return await e.runWithContext(()=>Ve(t)),!1}if(i===!0)continue;if(i===!1)return i;if(i)return Ie(i)&&i.fatal&&(await e.runWithContext(()=>Ve(i)),g(t)),i}catch(n){let r=nt(n);return r.fatal&&(await e.runWithContext(()=>Ve(r)),g(t)),r}}}}),a.afterEach((t,n,r)=>{if(t.matched.length===0&&!f.value&&!G(r,Gr.aborted|Gr.cancelled))return e.runWithContext(()=>Ve(nt({status:404,fatal:!1,statusText:`Page not found: ${t.fullPath}`,data:{path:t.fullPath}})))}),e.hooks.hookOnce(`app:created`,async()=>{try{if(`name`in p&&(p.name=void 0),a.currentRoute.value.fullPath===m){if(h){let t=a.resolve(e.payload.path);`name`in t&&(t.name=void 0),await a.replace({...t,force:!0});let n=()=>{if(!e[`~restoreDeferredRoute`])return;e[`~restoreDeferredRoute`]=void 0;let t=a.currentRoute,n=a.resolve(s);n.matched.at(-1)===t.value.matched.at(-1)&&(n.meta=t.value.meta),t.value=n,l(),a.replace({...p,force:!0}).catch(()=>{})};e[`~restoreDeferredRoute`]=n,e.hooks.hookOnce(`app:suspense:resolve`,n)}else await a.replace({...p,force:!0})}a.options.scrollBehavior=Xa.scrollBehavior}catch(t){await Ke(e,t)}}),{provide:{router:a}}}}),fo=globalThis.requestIdleCallback||(e=>{let t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),po=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),mo=e=>{let n=t();n.isHydrating?n.hooks.hookOnce(`app:suspense:resolve`,()=>{fo(()=>e())}):fo(()=>e())},ho=f(()=>{let e=B();mo(()=>{e.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),go=f(e=>{let t;async function r(){let i;try{i=await ro()}catch(e){let t=e;if(!(`status`in t&&(t.status===404||t.status===403)))throw t}t&&clearTimeout(t),t=setTimeout(r,n);try{let n=await an(nn(`builds/latest.json`)+`?${Date.now()}`);n.id!==i?.id&&(e.hooks.callHook(`app:manifest:update`,n),t&&clearTimeout(t))}catch{}}mo(()=>{t=setTimeout(r,n)})});function _o(e={}){let n=e.path||window.location.pathname,r=new URL(n,window.location.href);if(r.host!==window.location.host)throw Re.NUXT_E2010({path:n});if(r.protocol&&et(r.protocol))throw Re.NUXT_E2002({toPath:n,protocol:r.protocol});let i={};try{i=JSON.parse(sessionStorage.getItem(`nuxt:reload`)||`{}`)}catch{}if(e.force||i?.path!==n||i?.expires<Date.now()){try{sessionStorage.setItem(`nuxt:reload`,JSON.stringify({path:n,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem(`nuxt:reload:state`,JSON.stringify({state:t().payload.state}))}catch{}window.location.pathname===n?window.location.reload():window.location.href=n}}var vo=f({name:`nuxt:chunk-reload-crawler`,setup(e){let t=!0;e.hooks.hookOnce(`app:suspense:resolve`,()=>{t=!1}),e.hook(`app:chunkError`,()=>{t&&ze(navigator.userAgent)&&_o()})}}),yo=f({name:`nuxt:chunk-reload`,setup(e){let t=B(),n=u(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook(`app:chunkError`,({error:e})=>{r.add(e)});function i(e){_o({path:ke(n.app.baseURL,e.fullPath),persistState:!0})}e.hook(`app:manifest:update`,()=>{t.beforeResolve(i)}),t.onError((e,t)=>{r.has(e)&&i(t)})}}),bo=/2g/;function xo(){let e=navigator.connection;return!e||!e.saveData&&!bo.test(e.effectiveType||``)}function So(e){let{pathname:t,search:n}=new URL(e,window.location.href);return t+n}function Co(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}function wo(e){return Promise.all(e.map(e=>{let t=e.components?.default;return typeof t==`function`?Promise.resolve(t()).catch(()=>{}):void 0}))}function To(e,t){let{fullPath:n,path:r,matched:i}=t.resolve(e);if(!i.length)return;let a=o()?._prefetch;a?a.schedule({key:`route:${r}`,priority:`route`,scope:`navigation`,group:So(n),run:e=>e.aborted?void 0:wo(i)}):wo(i)}var Eo=(...e)=>e.find(e=>e!==void 0);function Do(e){let n=e.componentName||`NuxtLink`;function r(e){return!1}function i(t,n,r){let i=r??e.trailingSlash;if(!t||i!==`append`&&i!==`remove`)return t;if(typeof t==`string`)return ko(t,i);let a=`path`in t&&t.path!==void 0?t.path:n(t).path;return{...t,name:void 0,path:ko(a,i)}}function a(t){let n=B(),a=u(),o=n.options?.history?.createHref??(e=>ke(a.app.baseURL,e)),s=z(()=>!!L(t.target)&&L(t.target)!==`_self`),c=z(()=>{let e=L(t.to)||L(t.href)||``;return typeof e==`string`&&Be(e)}),l=z(()=>{if(L(t.external))return!0;let e=L(t.to)||L(t.href)||``;return typeof e==`object`?!1:e===``||c.value}),d=z(()=>{let e=L(t.to)||L(t.href)||``;return l.value?e:i(e,n.resolve,L(t.trailingSlash))}),f=z(()=>{let i=L(t.trailingSlash)??e.trailingSlash;if(!d.value||c.value||r(d.value)){let e=d.value;return typeof e==`string`?$e(e):e}if(l.value){let e=typeof d.value==`object`&&`path`in d.value?We(d.value):d.value,t=typeof e==`object`?n.resolve(e).href:e,r=typeof t==`string`?$e(t):t;return r===null?null:ko(r,i)}return typeof d.value==`object`?n.resolve(d.value)?.href??null:ko(Pe(d.value)?o(d.value):n.resolve(d.value).href,i)});return{to:d,hasTarget:s,isAbsoluteUrl:c,isExternal:l,href:f,async navigate(e){f.value!==null&&await Le(f.value,{replace:L(t.replace),external:l.value||s.value})}}}function o(e){let t=B(),n=a(e),r=T(`RouterLink`),i=r&&typeof r!=`string`?r.useLink:void 0,o=n.isExternal.value?void 0:i?.({...e,to:n.to,viewTransition:L(e.viewTransition)});return{...n,isActive:o?.isActive??z(()=>n.to.value===t.currentRoute.value.path),isExactActive:o?.isExactActive??z(()=>n.to.value===t.currentRoute.value.path),route:o?.route??z(()=>t.resolve(n.to.value))}}return N({name:n,props:{to:{type:[String,Object],required:!1},href:{type:[String,Object],required:!1},target:{type:String,required:!1},rel:{type:String,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},prefetchedClass:{type:String,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,required:!1}},useLink:o,setup(n,{slots:i}){let o=B(),s=T(`RouterLink`),{to:c,href:l,navigate:u,isExternal:d,hasTarget:f,isAbsoluteUrl:p}=a(n),m=fe(!1),h=j(null),g=e=>{h.value=n.custom?e?.$el?.nextElementSibling:e?.$el};function _(t){return typeof n.prefetchOn==`string`?n.prefetchOn===t:n.prefetchOn?.[t]??e.prefetchOn?.[t]}function v(){return!!((n.prefetch??e.prefetch)!==!1&&n.noPrefetch!==!0&&n.target!==`_blank`&&xo())}function y(e){return!!(!m.value&&_(e)&&v())}function b(){let e=typeof c.value==`string`?c.value:d.value?We(c.value):o.resolve(c.value).fullPath;return d.value?new URL(e,window.location.href).href:e}function x(){m.value?d.value||t()._prefetch?.promote(So(b())):_(`interaction`)&&S()}async function S(e=t()){if(m.value||l.value===null)return;m.value=!0;let n=b();await Promise.all([e.hooks.callHook(`link:prefetch`,n)?.catch(()=>{}),!d.value&&!f.value&&To(c.value,o)])}if(!n.custom&&y(`visibility`)){let e=t(),n,r=null;ce(()=>{let t=Ao();mo(()=>{n=fo(()=>{h?.value?.tagName&&(r=t.observe(h.value,async()=>{r?.(),r=null,await S(e)}))})})}),ee(()=>{n&&po(n),r?.(),r=null})}return()=>{let t=n.target||null,a=Eo(n.noRel?``:n.rel,e.externalRelAttribute,p.value||f.value?`noopener noreferrer`:``)||null,b=e=>({navigate:u,get route(){if(!l.value)return;let e=new URL(l.value,window.location.href);return{path:e.pathname,fullPath:e.pathname,get query(){return Oe(e.search)},hash:e.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:l.value}},rel:a,target:t,isExternal:d.value||f.value,isActive:!1,isExactActive:!1,...e,href:typeof e?.href==`string`?$e(e.href):l.value,prefetch:S,prefetched:m.value,shouldPrefetch:y});if(!d.value&&!f.value&&!r(c.value)){let t={ref:g,to:c.value,activeClass:n.activeClass||e.activeClass,exactActiveClass:n.exactActiveClass||e.exactActiveClass,replace:n.replace,ariaCurrentValue:n.ariaCurrentValue,custom:n.custom};return n.custom||((_(`interaction`)||m.value)&&v()&&(t.onPointerenter=x,t.onFocus=x,t.onPointerdown=x),m.value&&(t.class=n.prefetchedClass||e.prefetchedClass),t.rel=n.rel||void 0),P(s,t,n.custom&&i.default?{default:e=>i.default(b(e))}:i.default)}return n.custom?i.default?i.default(b()):null:P(`a`,{ref:h,href:l.value||null,rel:a,target:t,onClick:async e=>{if(!(d.value||f.value)){e.preventDefault();try{let e=Xe(l.value??``);return await(n.replace?o.replace(e):o.push(e))}finally{if(r(c.value)){let e=c.value.slice(1),t=e;try{t=decodeURIComponent(e)}catch{}document.getElementById(t)?.focus()}}}}},i.default?.())}}})}var Oo=Do(h);function ko(e,t){if(t!==`append`&&t!==`remove`)return e;let n=t===`append`?Ee:Ae;return Me(e)&&!e.startsWith(`http`)?e:n(e,!0)}function Ao(){let e=t();if(e._observer)return e._observer;let n=null,r=new Map;return e._observer={observe:(e,t)=>(n||=new IntersectionObserver(e=>{for(let t of e){let e=r.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),r.set(e,t),n.observe(e),()=>{r.delete(e),n?.unobserve(e),r.size===0&&(n?.disconnect(),n=null)})}}var jo=f({name:`nuxt:island-link-navigation`,setup(e){}}),Mo=f({name:`nuxt:global-components`}),No={},Po=[`route`,`payload`,`island`,`hint`],Fo=12,Io={route:8,payload:8,island:4,hint:8};function Lo(e={}){let t={...Io,...e.concurrency},n=e.total??Fo,r=e.canPrefetch,i=e.defer,a={route:[],payload:[],island:[],hint:[]},o=Po.map(e=>a[e]),s=new WeakSet,c=new Map,l={route:0,payload:0,island:0,hint:0},u=0,d=new Map,f=new AbortController,p=new AbortController;p.abort();function m(e){c.get(e.key)===e&&c.delete(e.key)}function h(e){m(e),Promise.resolve().then(()=>e.run(p.signal,!1)).catch(()=>{})}function g(){if(!r||r())for(;u<n;){let e=Po.find(e=>a[e].length&&l[e]<t[e]);if(!e)return;let n=a[e].shift();_(n,s.delete(n))}}function _(e,t){let n=e.scope===`app`?f:new AbortController;e.scope===`navigation`&&d.set(e,n),l[e.priority]++,u++;let r=!1,a=()=>{r||(r=!0,l[e.priority]--,u--,d.delete(e),m(e),g())};n.signal.addEventListener(`abort`,a,{once:!0});let o=()=>Promise.resolve().then(()=>e.run(n.signal,t)).then(a,a);i?i(o,t,e.priority):o()}let v=(e,t)=>t!==void 0&&e.group===t&&e.priority!==`hint`;return{schedule(e){let t=[];for(let n of Array.isArray(e)?e:[e])c.has(n.key)?h(n):(c.set(n.key,n),t.push(n));for(let e=t.length-1;e>=0;e--)a[t[e].priority].unshift(t[e]);g()},promote(e){for(let t of o){let n=[],r=[];for(let i of t)i.group===e&&s.add(i),(i.group===e?n:r).push(i);t.length=0,t.push(...n,...r)}g()},reset(e){for(let t of o)for(let n=t.length-1;n>=0;n--){let r=t[n];r.scope===`navigation`&&!v(r,e)&&(t.splice(n,1),h(r))}for(let[t,n]of[...d])v(t,e)||n.abort();g()},resume:g}}var Ro=1e3;function zo(e,t,n){if(t||n===`route`)return e();let r=globalThis.scheduler;r?.postTask?r.postTask(e,{priority:`background`}).catch(()=>{}):fo(e,{timeout:Ro})}function Bo(e=t()){if(e._prefetch)return e._prefetch;let n=!1,r=Lo({canPrefetch:()=>xo()&&!n&&document.visibilityState!==`hidden`,defer:zo});e._prefetch=r,navigator.connection?.addEventListener?.(`change`,()=>r.resume()),document.addEventListener(`visibilitychange`,()=>r.resume());let i=e.$router;return i.beforeEach(()=>{n=!0}),i.afterEach(e=>{n=!1,r.reset(So(e.fullPath))}),i.onError(()=>{n=!1,r.resume()}),r}var Vo=[kr,uo,ho,go,vo,yo,jo,Mo,f({name:`nuxt:prefetch`,setup(e){let t=B();e.hooks.hook(`app:mounted`,()=>{t.beforeEach(async e=>{let t=e?.meta?.layout;typeof t==`string`&&t in No&&await Co(No[t])})});let{schedule:n}=Bo(e);e.hooks.hook(`link:prefetch`,async e=>{if(Me(e))return;let r=t.resolve(e);if(!r)return;let i=r.meta.layout,a=Ir(r.meta.middleware).filter(e=>typeof e==`string`);n({key:`route:chunks:${e}`,priority:`route`,scope:`navigation`,group:So(e),run:e=>{if(e.aborted)return;let t=[];for(let e of a){let n=oo[e];typeof n==`function`&&t.push(n())}return typeof i==`string`&&i in No&&t.push(Co(No[i])),Promise.all(t).catch(()=>{})}})})}}),f(()=>{})];function Ho(e=me()){let t=e;t&&!t.sp&&(t.sp=[])}function q(e,t){let n=`\x1B[${e}m`,r=`\x1B[${t}m`;return((e,...t)=>{if(Array.isArray(e)&&`raw`in e){let i=e,a=``;for(let e=0;e<i.length;e++)a+=i[e],e<t.length&&(a+=String(t[e]));return`${n}${a}${r}`}return`${n}${String(e)}${r}`})}var Uo={blue:q(34,39),cyan:q(36,39),gray:q(90,39),green:q(32,39),red:q(31,39),yellow:q(33,39),bold:q(1,22),dim:q(2,22),reset:q(0,0),underline:q(4,24)},J={bus:{agentManifestChanged:`agent:manifest:changed`,agentToolRegistered:`agent:tool:registered`,agentToolUnregistered:`agent:tool:unregistered`,agentResourceRegistered:`agent:resource:registered`,agentResourceUnregistered:`agent:resource:unregistered`},client:{isTrustedUpdated:`rpc:is-trusted:updated`,error:`rpc:error`,connectionStatus:`connection:status`,connectionError:`connection:error`},broadcast:{authRevoked:`devframe:auth:revoked`,cacheInvalidate:`devframe:rpc:cache:invalidate`,clientStateUpdated:`devframe:rpc:client-state:updated`,clientStatePatch:`devframe:rpc:client-state:patch`,streamingChunk:`devframe:streaming:chunk`,streamingEnd:`devframe:streaming:end`,streamingUploadCancel:`devframe:streaming:upload-cancel`},inPageChannel:{panelStateUpdated:`devframe:in-page:panel-state:updated`,panelStatePatch:`devframe:in-page:panel-state:patch`},postMessage:{remoteAssetsError:`devframe:remote-assets-error`,inPageChannel:`devframe:in-page-channel`}},Wo=Et(Uo);function Go(e,{method:t=`warn`}={}){console[t](Wo(e))}function Ko(t){return e({...t,reporters:[Go,...t.reporters??[]]})}function qo(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var Jo=Math.random.bind(Math),Yo=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function Xo(e=21){let t=``,n=e;for(;n--;)t+=Yo[Jo()*64|0];return t}var Zo=6e4,Qo=e=>e,$o=Qo,{clearTimeout:es,setTimeout:ts}=globalThis;function ns(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=Qo,deserialize:s=$o,resolver:c,bind:l=`rpc`,timeout:u=Zo,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:`q`};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=qo(),_=Xo();s.i=_;let v;async function y(n=s){return u>=0&&(v=ts(()=>{try{if(t.onTimeoutError?.call(h,e,r)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){g(e)}p.delete(_)},u),typeof v==`object`&&(v=v.unref?.())),p.set(_,{resolve:d,reject:g,timeoutId:v,method:e}),await c(n),l}try{t.onRequest?await t.onRequest.call(h,s,y,d):await y()}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}finally{es(v),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:y,get $closed(){return f},get $meta(){return t.meta},$close:v,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.hasOwn(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function v(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(b)}function y(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function b(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===`q`){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:`s`,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:`s`,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(es(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}function rs(e,t){return t.safety?t.safety:e===`static`||e===`query`||e==null?`read`:`action`}var is=Object.freeze({type:`object`,additionalProperties:!0});function as(e){let t=e[`~standard`];if(t.jsonSchema)try{return t.jsonSchema.input({target:`draft-2020-12`})}catch{return is}return is}function os(e){if(!e||e.length===0)return{type:`object`,properties:{}};let t={},n=[];for(let r=0;r<e.length;r++){let i=`arg${r}`;t[i]=as(e[r]),n.push(i)}return{type:`object`,properties:t,required:n,additionalProperties:!1}}function ss(e,t){if(Array.isArray(e))return e;if(e==null)return[];if(typeof e!=`object`)return;let n=e;if(t!=null)return Array.from({length:t},(e,t)=>n[`arg${t}`]);if(`arg0`in n){let e=[];for(;`arg${e.length}`in n;)e.push(n[`arg${e.length}`]);return e}return Object.keys(n).length===0?[]:void 0}function cs(e,t){return ss(e,t)??[e]}function ls(e){return typeof e==`string`?`'${e}'`:new ps().serialize(e)}var us=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,ds=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[us.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function fs(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;i++){let n=e.charCodeAt(i),a=t.charCodeAt(i);if(n===a)continue;let o=n<128&&ds[n]?ds[n]:n+128,s=a<128&&ds[a]?ds[a]:a+128;if(o!==s)return o<s?-1:1;r===0&&(r=n>a?-1:1)}return e.length===t.length?r:e.length<t.length?-1:1}var ps=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?fs(e,t):n===`number`&&r===`number`?e-t:fs(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(`toJSON`in e&&typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}let i=Object.keys(e).sort(fs),a=`${r}{`;for(let t=0;t<i.length;t++){let n=i[t];a+=`${n}:${this.serialize(e[n])}`,t<i.length-1&&(a+=`,`)}return a+`}`}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e})(),ms=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],hs=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],gs=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,_s=[],vs=class{_data=new ys;_hash=new ys([...ms]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);let t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){let n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7];for(let n=0;n<64;n++){if(n<16)_s[n]=e[t+n]|0;else{let e=_s[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=_s[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;_s[n]=t+_s[n-7]+i+_s[n-16]}let d=s&c^~s&l,f=r&i^r&a^i&a,p=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),h=u+m+d+hs[n]+_s[n],g=p+f;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+u|0}_append(e){typeof e==`string`&&(e=ys.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;n=e?Math.ceil(n):Math.max((n|0)-this._minBufferSize,0);let r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let e=0;e<r;e+=16)this._doProcessBlock(this._data.words,e);t=this._data.words.splice(0,r),this._data.sigBytes-=i}return new ys(t,i)}},ys=class e{words;sigBytes;constructor(e,t){e=this.words=e||[],this.sigBytes=t===void 0?e.length*4:t}static fromUtf8(t){let n=unescape(encodeURIComponent(t)),r=n.length,i=[];for(let e=0;e<r;e++)i[e>>>2]|=(n.charCodeAt(e)&255)<<24-e%4*8;return new e(i,r)}toBase64(){let e=[];for(let t=0;t<this.sigBytes;t+=3){let n=this.words[t>>>2]>>>24-t%4*8&255,r=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,a=n<<16|r<<8|i;for(let n=0;n<4&&t*8+n*6<this.sigBytes*8;n++)e.push(gs.charAt(a>>>6*(3-n)&63))}return e.join(``)}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t<e.sigBytes;t++){let n=e.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<e.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=e.words[t>>>2];this.sigBytes+=e.sigBytes}};function bs(e){return new vs().finalize(e).toBase64()}function xs(e){return bs(ls(e))}function Ss(e){return xs(e)}function Cs(){let e={};function t(t,...n){let r=e[t]||[];for(let e=0,t=r.length;e<t;e++){let t=r[e];t&&t(...n)}}function n(n,...r){t(n,...r),delete e[n]}function r(t,n){return(e[t]||=[]).push(n),()=>{e[t]=e[t]?.filter(e=>n!==e)}}function i(e,t){let n=r(e,((...e)=>(n(),t(...e))));return n}return{_listeners:e,emit:t,emitOnce:n,on:r,once:i}}var ws=/^[\w+.-]{2,}:\/\//;function Ts(e){return e.endsWith(`/`)?e:`${e}/`}function Es(e){return(e.endsWith(`/`)?e.slice(0,-1):e)||`/`}function Ds(e,...t){let n=e;for(let e of t)e&&e!==`/`&&(n=n?Ts(n)+e.replace(/^\.?\//,``):e);return n}function Os(e,t){if(!t||t===`/`||ws.test(e))return e;let n=Es(t);return e.startsWith(n)?e:Ds(n,e)}function ks(e,t){let n=e.match(ws);return t+(n?e.slice(n[0].length):e)}var As=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function js(e=21){let t=``,n=e;for(;n--;)t+=As[Math.random()*64|0];return t}var Ms=Symbol.for(`immer-nothing`),Ns=Symbol.for(`immer-draftable`),Y=Symbol.for(`immer-state`),Ps=[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},`This object has been frozen and should not be mutated`,function(e){return`Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? `+e},`An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.`,`Immer forbids circular references`,"The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},`Object.defineProperty() cannot be used on an Immer draft`,`Object.setPrototypeOf() cannot be used on an Immer draft`,`Immer only supports deleting array indices`,`Immer only supports setting array indices and the 'length' property`,function(e){return`'original' expects a draft, got: ${e}`}];function X(e,...t){{let n=Ps[e],r=tc(n)?n.apply(null,t):n;throw Error(`[Immer] ${r}`)}}var Z=Object,Fs=Z.getPrototypeOf,Is=`constructor`,Ls=`prototype`,Rs=`configurable`,zs=`enumerable`,Bs=`writable`,Vs=`value`,Q=e=>!!e&&!!e[Y];function $(e){return e?Ws(e)||Zs(e)||!!e[Ns]||!!e[Is]?.[Ns]||Qs(e)||$s(e):!1}var Hs=Z[Ls][Is].toString(),Us=new WeakMap;function Ws(e){if(!e||!ec(e))return!1;let t=Fs(e);if(t===null||t===Z[Ls])return!0;let n=Z.hasOwnProperty.call(t,Is)&&t[Is];if(n===Object)return!0;if(!tc(n))return!1;let r=Us.get(n);return r===void 0&&(r=Function.toString.call(n),Us.set(n,r)),r===Hs}function Gs(e,t,n=!0){Ks(e)===0?(n?Reflect.ownKeys(e):Z.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Ks(e){let t=e[Y];return t?t.type_:Zs(e)?1:Qs(e)?2:$s(e)?3:0}var qs=(e,t,n=Ks(e))=>n===2?e.has(t):Z[Ls].hasOwnProperty.call(e,t),Js=(e,t,n=Ks(e))=>n===2?e.get(t):e[t],Ys=(e,t,n,r=Ks(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Xs(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Zs=Array.isArray,Qs=e=>e instanceof Map,$s=e=>e instanceof Set,ec=e=>typeof e==`object`,tc=e=>typeof e==`function`,nc=e=>typeof e==`boolean`;function rc(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var ic=e=>ec(e)?e?.[Y]:null,ac=e=>e.copy_||e.base_,oc=e=>e.modified_?e.copy_:e.base_;function sc(e,t){if(Qs(e))return new Map(e);if($s(e))return new Set(e);if(Zs(e))return Array[Ls].slice.call(e);let n=Ws(e);if(t===!0||t===`class_only`&&!n){let t=Z.getOwnPropertyDescriptors(e);delete t[Y];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Bs]===!1&&(a[Bs]=!0,a[Rs]=!0),(a.get||a.set)&&(t[i]={[Rs]:!0,[Bs]:!0,[zs]:a[zs],[Vs]:e[i]})}return Z.create(Fs(e),t)}{let t=Fs(e);if(t!==null&&n)return{...e};let r=Z.create(t);return Z.assign(r,e)}}function cc(e,t=!1){return dc(e)||Q(e)||!$(e)||(Ks(e)>1&&Z.defineProperties(e,{set:uc,add:uc,clear:uc,delete:uc}),Z.freeze(e),t&&Gs(e,(e,t)=>{cc(t,!0)},!1)),e}function lc(){X(2)}var uc={[Vs]:lc};function dc(e){return e===null||!ec(e)||Z.isFrozen(e)}var fc=`MapSet`,pc=`Patches`,mc=`ArrayMethods`,hc={};function gc(e){let t=hc[e];return t||X(0,e),t}var _c=e=>!!hc[e];function vc(e,t){hc[e]||(hc[e]=t)}var yc,bc=()=>yc,xc=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:_c(fc)?gc(fc):void 0,arrayMethodsPlugin_:_c(mc)?gc(mc):void 0});function Sc(e,t){t&&(e.patchPlugin_=gc(pc),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Cc(e){wc(e),e.drafts_.forEach(Ec),e.drafts_=null}function wc(e){e===yc&&(yc=e.parent_)}var Tc=e=>yc=xc(yc,e);function Ec(e){let t=e[Y];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Dc(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[Y].modified_&&(Cc(t),X(4)),$(e)&&(e=Oc(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[Y].base_,e,t)}else e=Oc(t,n);return kc(t,e,!0),Cc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Ms?void 0:e}function Oc(e,t){if(dc(t))return t;let n=t[Y];if(!n)return Lc(t,e.handledSet_,e);if(!jc(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);Fc(n,e)}return n.copy_}function kc(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&cc(t,n)}function Ac(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var jc=(e,t)=>e.scope_===t,Mc=[];function Nc(e,t,n,r){let i=ac(e),a=e.type_;if(r!==void 0&&Js(i,r,a)===t){Ys(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Gs(i,(e,n)=>{if(Q(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??Mc;for(let e of o)Ys(i,e,n,a)}function Pc(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!jc(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=oc(i);Nc(e,i.draft_??i,a,n),Fc(i,r)})}function Fc(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}Ac(e)}}function Ic(e,t,n){let{scope_:r}=e;if(Q(n)){let i=n[Y];jc(i,r)&&i.callbacks_.push(function(){Kc(e),Nc(e,n,oc(i),t)})}else $(n)&&e.callbacks_.push(function(){let i=ac(e);e.type_===3?i.has(n)&&Lc(n,r.handledSet_,r):Js(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Lc(Js(e.copy_,t,e.type_),r.handledSet_,r)})}function Lc(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Q(e)||t.has(e)||!$(e)||dc(e)||(t.add(e),Gs(e,(r,i)=>{if(Q(i)){let t=i[Y];jc(t,n)&&(Ys(e,r,oc(t),e.type_),Ac(t))}else $(i)&&Lc(i,t,n)})),e}function Rc(e,t){let n=Zs(e),r={type_:+!!n,scope_:t?t.scope_:bc(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=zc;n&&(i=[r],a=Bc);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var zc={get(e,t){if(t===Y)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=ac(e);if(!qs(i,t,e.type_))return Uc(e,i,t);let a=i[t];if(e.finalized_||!$(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&rc(t))return a;if(a===Vc(e.base_,t)||Hc(e,t,a)){Kc(e);let n=e.type_===1?+t:t,r=Jc(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in ac(e)},ownKeys(e){return Reflect.ownKeys(ac(e))},set(e,t,n){let r=Wc(ac(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Vc(ac(e),t),i=r?.[Y];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.delete(t),!0;if(Xs(n,r)&&(n!==void 0||qs(e.base_,t,e.type_)))return!0;Kc(e),Gc(e)}return e.copy_[t]===n&&(n!==void 0||qs(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),Ic(e,t,n)),!0},deleteProperty(e,t){return Kc(e),Vc(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Gc(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=ac(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Bs]:!0,[Rs]:e.type_!==1||t!==`length`,[zs]:r[zs],[Vs]:n[t]}},defineProperty(){X(11)},getPrototypeOf(e){return Fs(e.base_)},setPrototypeOf(){X(12)}},Bc={};for(let e in zc){let t=zc[e];Bc[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Bc.deleteProperty=function(e,t){return isNaN(parseInt(t))&&X(13),Bc.set.call(this,e,t,void 0)},Bc.set=function(e,t,n){return t!==`length`&&isNaN(parseInt(t))&&X(14),zc.set.call(this,e[0],t,n,e[0])};function Vc(e,t){let n=e[Y];return(n?ac(n):e)[t]}function Hc(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!$(n)||n[Y]?!1:e.baseRefs_.has(n)}function Uc(e,t,n){let r=Wc(t,n);return r?Vs in r?r[Vs]:r.get?.call(e.draft_):void 0}function Wc(e,t){if(!(t in e))return;let n=Fs(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Fs(n)}}function Gc(e){e.modified_||(e.modified_=!0,e.parent_&&Gc(e.parent_))}function Kc(e){e.copy_||=(e.assigned_=new Map,sc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var qc=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(tc(e)&&!tc(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}tc(t)||X(6),n!==void 0&&!tc(n)&&X(7);let r;if($(e)){let i=Tc(this),a=Jc(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?Cc(i):wc(i)}return Sc(i,n),Dc(r,i)}if(!e||!ec(e)){if(r=t(e),r===void 0&&(r=e),r===Ms&&(r=void 0),this.autoFreeze_&&cc(r,!0),n){let t=[],i=[];gc(pc).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}X(1,e)},this.produceWithPatches=(e,t)=>{if(tc(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},nc(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),nc(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),nc(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){$(e)||X(8),Q(e)&&(e=Yc(e));let t=Tc(this),n=Jc(t,e,void 0);return n[Y].isManual_=!0,wc(t),n}finishDraft(e,t){let n=e&&e[Y];(!n||!n.isManual_)&&X(9);let{scope_:r}=n;return Sc(r,t),Dc(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=gc(pc).applyPatches_;return Q(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Jc(e,t,n,r){let[i,a]=Qs(t)?gc(fc).proxyMap_(t,n):$s(t)?gc(fc).proxySet_(t,n):Rc(t,n);return(n?.scope_??bc()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Pc(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function Yc(e){return Q(e)||X(10,e),Xc(e)}function Xc(e){if(!$(e)||dc(e))return e;let t=e[Y],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=sc(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=sc(e,!0);return Gs(n,(e,t)=>{Ys(n,e,Xc(t))},r),t&&(t.finalized_=!1),n}function Zc(){Ps.push(`Sets cannot have "replace" patches.`,function(e){return`Unsupported patch operation: `+e},function(e){return`Cannot apply patch, path doesn't resolve: `+e},`Patching reserved attributes like __proto__, prototype and constructor is not allowed`);function e(n,r=[]){if(n.key_!==void 0){let e=n.parent_.copy_??n.parent_.base_,t=ic(Js(e,n.key_)),i=Js(e,n.key_);if(i===void 0||i!==n.draft_&&i!==n.base_&&i!==n.copy_||t!=null&&t.base_!==n.base_)return null;let a=n.parent_.type_===3,o;if(a){let e=n.parent_;o=Array.from(e.drafts_.keys()).indexOf(n.key_)}else o=n.key_;if(!(a&&e.size>o||qs(e,o)))return null;r.push(o)}if(n.parent_)return e(n.parent_,r);r.reverse();try{t(n.copy_,r)}catch{return null}return r}function t(e,t){let n=e;for(let e=0;e<t.length-1;e++){let r=t[e];if(n=Js(n,r),!ec(n)||n===null)throw Error(`Cannot resolve path at '${t.join(`/`)}'`)}return n}let n=`replace`,r=`remove`;function i(e,t,n){if(e.scope_.processedForPatches_.has(e))return;e.scope_.processedForPatches_.add(e);let{patches_:r,inversePatches_:i}=n;switch(e.type_){case 0:case 2:return o(e,t,r,i);case 1:return a(e,t,r,i);case 3:return s(e,t,r,i)}}function a(e,t,i,a){let{base_:o,assigned_:s}=e,c=e.copy_;c.length<o.length&&([o,c]=[c,o],[i,a]=[a,i]);let l=e.allIndicesReassigned_===!0;for(let e=0;e<o.length;e++){let r=c[e],u=o[e];if((l||s?.get(e.toString()))&&r!==u){let o=r?.[Y];if(o&&o.modified_)continue;let s=t.concat([e]);i.push({op:n,path:s,value:d(r)}),a.push({op:n,path:s,value:d(u)})}}for(let e=o.length;e<c.length;e++){let n=t.concat([e]);i.push({op:`add`,path:n,value:d(c[e])})}for(let e=c.length-1;o.length<=e;--e){let n=t.concat([e]);a.push({op:r,path:n})}}function o(e,t,i,a){let{base_:o,copy_:s,type_:c}=e;Gs(e.assigned_,(e,l)=>{let u=Js(o,e,c),f=Js(s,e,c),p=l?qs(o,e)?n:`add`:r;if(u===f&&p===n)return;let m=t.concat(e);i.push(p===r?{op:p,path:m}:{op:p,path:m,value:d(f)}),a.push(p===`add`?{op:r,path:m}:p===r?{op:`add`,path:m,value:d(u)}:{op:n,path:m,value:d(u)})})}function s(e,t,n,i){let{base_:a,copy_:o}=e,s=0;a.forEach(e=>{if(!o.has(e)){let a=t.concat([s]);n.push({op:r,path:a,value:e}),i.unshift({op:`add`,path:a,value:e})}s++}),s=0,o.forEach(e=>{if(!a.has(e)){let a=t.concat([s]);n.push({op:`add`,path:a,value:e}),i.unshift({op:r,path:a,value:e})}s++})}function c(e,t,r){let{patches_:i,inversePatches_:a}=r;i.push({op:n,path:[],value:t===Ms?void 0:t}),a.push({op:n,path:[],value:e})}function l(e,t){return t.forEach(t=>{let{path:i,op:a}=t,o=e;for(let e=0;e<i.length-1;e++){let t=Ks(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===Is)&&X(19),tc(o)&&n===Ls&&X(19),o=Js(o,n),(o===null||!ec(o))&&X(18,i.join(`/`))}let s=Ks(o),c=u(t.value),l=i[i.length-1];switch(a){case n:switch(s){case 2:return o.set(l,c);case 3:X(16);default:return o[l]=c}case`add`:switch(s){case 1:return l===`-`?o.push(c):o.splice(l,0,c);case 2:return o.set(l,c);case 3:return o.add(c);default:return o[l]=c}case r:switch(s){case 1:return o.splice(l,1);case 2:return o.delete(l);case 3:return o.delete(t.value);default:return delete o[l]}default:X(17,a)}}),e}function u(e){if(!$(e))return e;if(Zs(e))return e.map(u);if(Qs(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if($s(e))return new Set(Array.from(e).map(u));let t=Object.create(Fs(e));for(let n in e)t[n]=u(e[n]);return qs(e,Ns)&&(t[Ns]=e[Ns]),t}function d(e){return Q(e)?u(e):e}vc(pc,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}globalThis.Iterator?.from;var Qc=new qc,$c=Qc.produce,el=Qc.produceWithPatches.bind(Qc),tl=Qc.applyPatches.bind(Qc),nl=1e3;function rl(e,t){if(e.add(t),e.size>nl){let t=e.values().next().value;t!==void 0&&e.delete(t)}}function il(e){let{enablePatches:t=!1}=e;t&&Zc();let n=Cs(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=js())=>{i.has(t)||(Zc(),r=tl(r,e),rl(i,t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=js())=>{if(!i.has(a)){if(rl(i,a),t){let[t,i]=el(r,e);if(t===r)return;r=t,n.emit(`updated`,r,i,a)}else{let t=$c(r,e);if(t===r)return;r=t,n.emit(`updated`,r,void 0,a)}}},syncIds:i}}var al=typeof self==`object`?self:globalThis,ol=new Set([`Error`,`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`,`AggregateError`]),sl=new Set([`Boolean`,`Number`,`String`,`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float16Array`,`Float32Array`,`Float64Array`,`BigInt64Array`,`BigUint64Array`]);function cl(e,t){let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o,r=ol.has(e)?al[e]:void 0;return n(new(r??al.Error)(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}if(typeof a==`string`&&sl.has(a))return n(new al[a](o),i);throw TypeError(`unable to deserialize unsafe or unknown type: ${String(a)}`)};return r}function ll(e){return cl(new Map,e)(0)}var ul=``,{toString:dl}={},{keys:fl}=Object;function pl(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=dl.call(e).slice(8,-1);switch(n){case`Array`:return[1,ul];case`Object`:return[2,ul];case`Date`:return[3,ul];case`RegExp`:return[4,ul];case`Map`:return[5,ul];case`Set`:return[6,ul];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function ml([e,t]){return e===0&&(t===`function`||t===`symbol`)}function hl(e,t,n,r){let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=pl(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize ${s}`);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of fl(r))(e||!ml(pl(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(ml(pl(n))||ml(pl(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!ml(pl(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function gl(e,t={}){let n=[];return hl(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:_l,stringify:vl}=JSON,yl={json:!0,lossy:!0};function bl(e){return ll(_l(e))}function xl(e){return vl(gl(e,yl))}function Sl(e){return ll(e)}function Cl(e){return xl(e)}function wl(e){return bl(e)}var Tl=256,El=class extends Error{name=`StreamClosedError`};function Dl(e={}){let t=e.id??js(),n=Math.max(0,e.replayWindow??0),r=Cs(),i=new AbortController,a=[],o=!1,s=0;function c(e){if(o)throw new El(`Cannot write to a closed stream "${t}"`);s+=1,n>0&&(a.push({seq:s,chunk:e}),a.length>n&&(a.length-n===1?a.shift():a.splice(0,a.length-n))),r.emit(`chunk`,s,e)}function l(e){if(o)return;o=!0;let t=kl(e);i.abort(e),r.emit(`end`,t)}function u(){o||(o=!0,i.signal.aborted||i.abort(`stream closed`),r.emit(`end`,void 0))}function d(e){o||i.signal.aborted||i.abort(e??`aborted`)}let f=new WritableStream({write(e){c(e)},close(){u()},abort(e){l(e)}});return{id:t,signal:i.signal,get closed(){return o},get lastSeq(){return s},write:c,error:l,close:u,abort:d,writable:f,events:r,buffer:a}}function Ol(e={}){let t=e.id??js(),n=Math.max(1,e.highWaterMark??Tl),r=[],i=0,a=!1,o=!1,s,c,l,u;function d(){if(c){if(r.length>0){let e=r.shift(),t=c;c=void 0,t.resolve({value:e,done:!1})}else if(a){let e=c;if(c=void 0,s){let t=Error(s.message);t.name=s.name,e.reject(t)}else e.resolve({value:void 0,done:!0})}}}function f(){if(l){for(;r.length>0;){let e=r.shift();try{l.enqueue(e)}catch{break}}if(a&&l){try{if(s){let e=Error(s.message);e.name=s.name,l.error(e)}else l.close()}catch{}l=void 0}}}function p(t,s){if(!(a||o)&&!(t<=i)){if(i=t,r.push(s),r.length>n){let t=r.length-n;r.splice(0,t),e.onOverflow?.(t)}d(),u&&f()}}function m(e){a||(a=!0,s=e,d(),u&&f())}function h(){o||a||(o=!0,e.onCancel?.(),m(void 0))}function g(){return u||(u=new ReadableStream({start(e){l=e,f()},cancel(){h()}}),u)}return{id:t,get cancelled(){return o},get done(){return a},get lastSeenSeq(){return i},get readable(){return g()},cancel:h,_push:p,_end:m,[Symbol.asyncIterator](){return{next(){if(r.length>0)return Promise.resolve({value:r.shift(),done:!1});if(a){if(s){let e=Error(s.message);return e.name=s.name,Promise.reject(e)}return Promise.resolve({value:void 0,done:!0})}return new Promise((e,t)=>{c={resolve:e,reject:t}})},return(){return h(),Promise.resolve({value:void 0,done:!0})}}}}}function kl(e){if(e instanceof Error)return{name:e.name||`Error`,message:e.message};if(typeof e==`string`)return{name:`Error`,message:e};try{return{name:`Error`,message:JSON.stringify(e)}}catch{return{name:`Error`,message:String(e)}}}var Al=128;function jl(e){return e.replace(/[^\w-]+/g,`_`).slice(0,Al)}var Ml=`__connection.json`,Nl=`__DEVFRAME_CONNECTION__`,Pl=`x-birpc-session`,Fl=`__rpc-dump/index.json`,Il=`devframe:services`,Ll=`devframe_otp`,Rl=`devframe_auth_token`;J.postMessage.remoteAssetsError;var zl=class{cacheMap=new Map;options;keySerializer;constructor(e){this.options=e,this.keySerializer=e.keySerializer||(e=>Ss(e))}updateOptions(e){this.options={...this.options,...e}}cached(e,t){let n=this.cacheMap.get(e);if(n)return n.get(this.keySerializer(t))}has(e,t){return this.cacheMap.get(e)?.has(this.keySerializer(t))??!1}apply(e,t){let n=this.cacheMap.get(e.m)||new Map;n.set(this.keySerializer(e.a),t),this.cacheMap.set(e.m,n)}validate(e){return this.options.functions.includes(e)}clear(e){e?this.cacheMap.delete(e):this.cacheMap.clear()}},Bl=Ko({docsBase:`https://devfra.me/errors`,codes:{DF0019:{why:e=>`RPC function "${e.name}" has \`agent\` set but \`jsonSerializable\` is \`false\`; MCP requires JSON-serializable data.`,fix:"Remove `jsonSerializable: false`, or remove `agent` to keep it RPC-only."},DF0020:{why:e=>`RPC function "${e.name}" declares \`jsonSerializable: true\` but the value at "${e.path}" is a ${e.type}.`,fix:"Either drop `jsonSerializable: true` (falls back to structured-clone) or change the value to a JSON-safe shape."},DF0021:{why:e=>`RPC function "${e.name}" is already registered`,fix:"Use the `force` parameter to overwrite an existing registration."},DF0022:{why:e=>`RPC function "${e.name}" is not registered. Use register() to add new functions.`},DF0023:{why:e=>`RPC function "${e.name}" is not registered`},DF0024:{why:e=>`Either handler or setup function must be provided for RPC function "${e.name}"`},DF0025:{why:e=>`Function "${e.name}" not found in dump store`},DF0026:{why:e=>`No dump match for "${e.name}" with args: ${e.args}`},DF0027:{why:e=>`Function "${e.name}" with type "${e.type}" cannot have dump configuration. Only "static" and "query" types support dumps.`},DF0028:{why:e=>`Function "${e.name}" with type "${e.type}" cannot use \`snapshot: true\`. Only "query" functions support this sugar; "static" functions have equivalent default behavior already.`,fix:"Remove `snapshot: true`, or change the function type to `query`."},DF0043:{why:e=>`RPC function "${e.name}" received an invalid argument at position ${e.index}: ${e.issues}`,fix:"Pass a value that satisfies the `args` schema declared for this function."},DF0044:{why:e=>`RPC function "${e.name}" returned a value that failed its \`returns\` schema: ${e.issues}`,fix:"Make the handler return a value that satisfies the `returns` schema, or relax the schema."}}});function Vl(e){if(e.agent&&e.jsonSerializable===!1)throw Bl.DF0019({name:e.name});e.agent&&!e.jsonSerializable&&(e.jsonSerializable=!0)}async function Hl(e,t){let n=e[`~standard`].validate(t);return n instanceof Promise?await n:n}function Ul(e){return e.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `)}async function Wl(e,t,n){let r=n.slice();if(!t||t.length===0)return r;for(let r=0;r<t.length;r++){let i=t[r];if(!i)continue;let a=await Hl(i,n[r]);if(a.issues)throw Bl.DF0043({name:e,index:r,issues:Ul(a.issues)})}return r}async function Gl(e,t,n){if(!t)return n;let r=await Hl(t,n);if(r.issues)throw Bl.DF0044({name:e,issues:Ul(r.issues)});return n}async function Kl(e,t){if(!e.setup)return{};if(typeof t==`object`&&t){e.__cache??=new WeakMap;let n=e.__cache,r=n.get(t);return r||(r=Promise.resolve(e.setup(t)),r.catch(()=>{n.get(t)===r&&n.delete(t)}),n.set(t,r)),await r}if(!e.__promise){let n=Promise.resolve(e.setup(t));n.catch(()=>{e.__promise===n&&(e.__promise=void 0)}),e.__promise=n}return await e.__promise}async function ql(e,t){let n=e.handler;if(!n){let r=await Kl(e,t);if(!r.handler)throw Bl.DF0024({name:e.name});n=r.handler}let r=e.args,i=e.returns;if(!r&&!i)return n;let a=n;return async(...t)=>{let n=await Wl(e.name,r,t),o=await a(...n);return await Gl(e.name,i,o)}}var Jl=class{context;definitions=new Map;functions;_onChanged=[];constructor(e){this.context=e;let t=this.definitions,n=this;this.functions=new Proxy({},{get(e,r){let i=t.get(r);if(i)return ql(i,n.context)},has(e,n){return t.has(n)},getOwnPropertyDescriptor(e,n){return{value:t.get(n)?.handler,configurable:!0,enumerable:!0}},ownKeys(){return Array.from(t.keys())}})}register(e,t=!1){if(this.definitions.has(e.name)&&!t)throw Bl.DF0021({name:e.name});Vl(e),this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}update(e,t=!1){if(!this.definitions.has(e.name)&&!t)throw Bl.DF0022({name:e.name});Vl(e),this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}onChanged(e){return this._onChanged.push(e),()=>{let t=this._onChanged.indexOf(e);t!==-1&&this._onChanged.splice(t,1)}}async getHandler(e){return await ql(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw Bl.DF0023({name:String(e)});return{args:t.args,returns:t.returns}}has(e){return this.definitions.has(e)}get(e){return this.definitions.get(e)}list(){return Array.from(this.definitions.keys())}};function Yl(e,t=``){return JSON.stringify(e,function(e,n){let r=this,i=r==null?n:r[e];if(i===void 0){if(Array.isArray(r))throw Zl(t,`undefined`,r,e);return n}return i!==null&&Xl(i,r,e,t),n})}function Xl(e,t,n,r){if(typeof e==`bigint`)throw Zl(r,`BigInt`,t,n);if(typeof e!=`object`)return;if(e instanceof Map)throw Zl(r,`Map`,t,n);if(e instanceof Set)throw Zl(r,`Set`,t,n);if(e instanceof Date)throw Zl(r,`Date`,t,n);if(Array.isArray(e))return;let i=Object.getPrototypeOf(e);if(i!==null&&i!==Object.prototype)throw Zl(r,e.constructor?.name??`class instance`,t,n)}function Zl(e,t,n,r){let i=Ql(n,r);return Bl.DF0020({name:e||`<anonymous>`,type:t,path:i})}function Ql(e,t){return Array.isArray(e)?`[${t}]`:t===``?`<root>`:t}var $l=`__DEVFRAME_CONNECTION_META__`,eu=`__DEVFRAME_CONNECTION_AUTH_TOKEN__`;function tu(e){let t=[()=>window?.[e],()=>globalThis?.[e],()=>parent.window?.[e]];for(let e of t)try{let t=e();if(t)return t}catch{}}function nu(){return tu(Nl)}function ru(){return tu($l)}function iu(e){if(e)return e;try{let e=localStorage.getItem(eu);if(e)return e}catch{}return tu(eu)}function au(e){globalThis[Nl]=e,globalThis[$l]={...e.connectionMeta,baseUrl:e.metaBaseUrl},e.authToken&&ou(e.authToken)}function ou(e){try{localStorage.setItem(eu,e)}catch{}globalThis[eu]=e;let t=nu();t&&(globalThis[Nl]={...t,authToken:e})}function su(e){let t=Os(Ml,e);try{return new URL(t,globalThis.location?.href).href}catch{return t}}function cu(e,t){return t&&t!==e.authToken?{...e,authToken:t}:e}function lu(){let e=nu();if(e)return cu(e,iu()??e.authToken??e.connectionMeta.authToken);let t=ru();if(t)return{connectionMeta:t,metaBaseUrl:t.baseUrl??su(`./`),authToken:iu(t.authToken)}}async function uu(e={}){if(e.connection){let t=cu(e.connection,iu(e.authToken??e.connection.authToken??e.connection.connectionMeta.authToken));return au(t),t}let t=Array.isArray(e.baseURL)?e.baseURL:[e.baseURL??`./`];if(e.connectionMeta){let n={connectionMeta:e.connectionMeta,metaBaseUrl:su(t[0]??`./`),authToken:iu(e.authToken??e.connectionMeta.authToken)};return au(n),n}let n=lu();if(n){let t=cu(n,iu(e.authToken??n.authToken??n.connectionMeta.authToken));return au(t),t}let r=[];for(let n of t){let t=Os(Ml,n),i=su(n);try{let n=await fetch(t);if(!n.ok)throw Error(`Failed to fetch connection meta from ${i}: ${n.status}`);let r=await n.json(),a=n.url||i,o={connectionMeta:r,metaBaseUrl:r.baseUrl?new URL(r.baseUrl,a).href:a,authToken:iu(e.authToken??r.authToken)};return au(o),o}catch(e){r.push(e)}}throw Error(`Failed to get connection meta from ${t.join(`, `)}`,{cause:r})}var du=class extends Error{name=`DevframeConnectionError`;kind;constructor(e,t,n){super(t,n),this.kind=e}};function fu(e=Ll){try{let t=globalThis.location?.hash?.replace(/^#/,``)??``;return new URLSearchParams(t).get(e)||void 0}catch{return}}function pu(e){try{let t=new URL(globalThis.location.href),n=new URLSearchParams(t.hash.replace(/^#/,``));if(!n.has(e))return;n.delete(e),t.hash=n.toString(),globalThis.history?.replaceState(globalThis.history.state,``,t.href)}catch{}}function mu(e=Ll){let t=fu(e);return t&&pu(e),t}async function hu(e,t={}){let n=mu(t.param??`devframe_otp`);return n?e.isTrusted?!0:e.requestTrustWithCode(n):!1}function gu(e){let t={},n=new WeakMap,r,i=()=>(r??=e.sharedState.get(Il,{initialValue:{}}).then(e=>(t=e.value(),e.on(`updated`,e=>{t=e}),e)),r);return i(),{state:i,has:e=>e in t,keys:()=>Object.keys(t),get:r=>{let i=t[r];if(!i)return;let a=n.get(i);return a||(a={...i,rpc:e.scope(i.scope).rpc},n.set(i,a)),a}}}function _u(e){let t=new Map,n=new Map,r=new Map,i=new Set,a=e.connectionMeta.backend===`static`;function o(e,t){let n=r.get(e);return n&&typeof n==`object`&&!Array.isArray(n)&&typeof t==`object`&&!Array.isArray(t)?{...n,...t}:t}e.client.register({name:J.broadcast.clientStateUpdated,type:`event`,handler:(e,n,r)=>{let i=t.get(e);i&&!i.syncIds.has(r)&&i.mutate(()=>o(e,n),r)}}),e.client.register({name:J.broadcast.clientStatePatch,type:`event`,handler:(e,n,r)=>{let i=t.get(e);i&&!i.syncIds.has(r)&&i.patch(n,r)}});function s(t,n){let r=[];return r.push(n.on(`updated`,(n,r,i)=>{a||(r?e.callEvent(`devframe:rpc:server-state:patch`,t,r,i):e.callEvent(`devframe:rpc:server-state:set`,t,n,i))})),()=>{for(let e of r)e()}}return{keys:()=>Array.from(t.keys()),onKeyAdded(e){return i.add(e),()=>{i.delete(e)}},delete(e){let i=n.get(e);n.delete(e);let a=t.delete(e);return r.delete(e),i?.(),a},get:async(c,l)=>{if(l?.initialValue!==void 0&&r.set(c,l.initialValue),t.has(c))return t.get(c);let u=il({initialValue:l?.initialValue,enablePatches:!1});async function d(){if(a||e.callEvent(`devframe:rpc:server-state:subscribe`,c),l?.initialValue!==void 0){t.set(c,u);for(let e of i)e(c);return e.call(`devframe:rpc:server-state:get`,c).then(e=>{e!==void 0&&u.mutate(()=>o(c,e))}).catch(e=>{console.error(`Error getting server state`,e)}),n.set(c,s(c,u)),u}{let r=await e.call(`devframe:rpc:server-state:get`,c);u.mutate(()=>o(c,r)),t.set(c,u);for(let e of i)e(c);return n.set(c,s(c,u)),u}}return new Promise((t,n)=>{if(e.isTrusted)d().then(t,n);else{t(u);let n=!1;e.events.on(J.client.isTrustedUpdated,e=>{e&&!n&&(n=!0,d())})}})}}}var vu=new Map;function yu(e=vu){let t=new Map;return{serialize:n=>{let r;return n.t===`q`?r=n.m:(r=t.get(n.i),t.delete(n.i)),!(n.t===`s`&&`e`in n)&&r&&e.get(r)?.jsonSerializable===!0?Yl(n,r??``):`s:${Cl(n)}`},deserialize:e=>{let n=e.startsWith(`s:`)?wl(e.slice(2)):JSON.parse(e);return n.t===`q`&&n.i&&n.m&&t.set(n.i,n.m),n}}}function bu(){}function xu(e){let t=e.search(/\n\n|\r\n\r\n/);if(!(t<0))return{frame:e.slice(0,t),rest:e.slice(t+(e[t]===`\r`?4:2))}}function Su(e){let t=`message`,n=[];for(let r of e.split(/\r?\n/))r.startsWith(`:`)||(r.startsWith(`event:`)?t=r.slice(6).trimStart():r.startsWith(`data:`)&&n.push(r.slice(5).replace(/^ /,``)));return{event:t,data:n}}function Cu(e){let{onConnected:t=bu,onError:n=bu,onDisconnected:r=bu,definitions:i,fetch:a=globalThis.fetch.bind(globalThis)}=e,o=e.url;e.authToken&&(o=`${o}${o.includes(`?`)?`&`:`?`}${Rl}=${encodeURIComponent(e.authToken)}`);let s=yu(i),c=new AbortController,l=!1,u,d,f,p,m=new Promise((e,t)=>{f=e,p=t});m.catch(()=>{});function h(e){l||(l=!0,p(e),n(e),r())}function g(){l||(l=!0,p(Error(`Devframe SSE stream closed`)),r())}function _(e,n){e===`session`?(f(n),t()):u?.(n)}async function v(e){let t=e.getReader();d=t;let n=new TextDecoder,r=``;for(;;){let{done:e,value:i}=await t.read();if(e)break;for(r+=n.decode(i,{stream:!0});;){let e=xu(r);if(!e)break;r=e.rest;let{event:t,data:n}=Su(e.frame);n.length>0&&_(t,n.join(`
4
4
  `))}}g()}return(async()=>{try{let e=await a(o,{headers:{accept:`text/event-stream`},signal:c.signal});if(!e.ok||!e.body)throw Error(`Devframe SSE stream request failed: ${e.status}`);await v(e.body)}catch(e){if(c.signal.aborted){g();return}h(e instanceof Error?e:Error(String(e)))}})(),{close:()=>{l=!0,c.abort(),d?.cancel().catch(()=>{})},on:e=>{u=e},post:async e=>{let t;try{t=await m}catch{return}if(l)n(Error(`Devframe SSE channel is closed; message dropped`));else try{let n=await a(o,{method:`POST`,headers:{"content-type":`text/plain; charset=utf-8`,[Pl]:t},body:e});if(n.status===200){let e=await n.text();e&&u?.(e);return}if(!n.ok)throw Error(`Devframe SSE POST failed: ${n.status}`)}catch(e){n(e instanceof Error?e:Error(String(e)))}},serialize:s.serialize,deserialize:s.deserialize}}function wu(e,t){let{channel:n,rpcOptions:r={}}=t;return ns(e,{...n,timeout:-1,...r,proxify:!1})}function Tu(e){let{transport:t,authToken:n,connectionMeta:r,events:i,clientRpc:a,rpcOptions:o={},callTimeout:s=0}=e,c=!1,l=`connecting`,u=null,d=Promise.withResolvers();function f(e,t=null){if(t?u=t:e===`connected`&&(u=null),e===l)return;let n=l;l=e,i.emit(J.client.connectionStatus,e,n)}let p=new Set;function m(e){for(let t of[...p])t.reject(e)}function h(){return l===`disconnected`||l===`error`?new du(`connection`,`[devframe] Not connected to the devframe server`,{cause:u??void 0}):l===`unauthorized`?new du(`auth`,`[devframe] Not authorized by the devframe server`,{cause:u??void 0}):null}function g(e,t){return new Promise((n,r)=>{let a=!1,o,c={reject(e){a||(l(),i.emit(J.client.error,e,t),r(e))}};function l(){a=!0,p.delete(c),o&&clearTimeout(o)}p.add(c),s>0&&(o=setTimeout(()=>{c.reject(new du(`timeout`,`[devframe] RPC call "${t}" timed out after ${s}ms`))},s)),e.then(e=>{a||(l(),n(e))},e=>{if(a)return;l();let n=e instanceof Error?e:Error(String(e));i.emit(J.client.error,n,t),r(n)})})}let _=new Map;for(let e of r.jsonSerializableMethods??[])_.set(e,{jsonSerializable:!0});let v=e.createChannel({definitions:_,onError(e){f(`error`,e),i.emit(J.client.connectionError,e),m(new du(`connection`,`[devframe] Connection to the devframe server failed`,{cause:e}))},onDisconnected(){l!==`error`&&f(`disconnected`),m(new du(`connection`,`[devframe] Disconnected from the devframe server`,{cause:u??void 0}))}}),y=wu(a.functions,{channel:v,rpcOptions:o});a.register({name:J.broadcast.authRevoked,type:`event`,handler:()=>{c=!1;let e=new du(`auth`,`[devframe] The devframe server revoked this client's trust`);f(`unauthorized`,e),i.emit(J.client.connectionError,e),m(e),i.emit(J.client.isTrustedUpdated,!1)}});let b=n;async function x(e){b=e;let t=await y.$call(`anonymous:devframe:auth`,{authToken:e,ua:navigator.userAgent,origin:location.origin});if(c=t.isTrusted,c)d.resolve(!0),f(`connected`);else{let e=new du(`auth`,`[devframe] The devframe server refused this client's credentials`);f(`unauthorized`,e),i.emit(J.client.connectionError,e)}return i.emit(J.client.isTrustedUpdated,c),t.isTrusted}async function S(e){let t=(await y.$call(`anonymous:devframe:auth:exchange`,{code:e,ua:navigator.userAgent,origin:location.origin}))?.authToken??null;return t&&(b=t,c=!0,d.resolve(!0),f(`connected`),i.emit(J.client.isTrustedUpdated,!0)),t}async function C(e={}){await y.$call(`anonymous:devframe:auth:request-code`,{ua:navigator.userAgent,origin:location.origin,...e.reissue?{reissue:!0}:{}})}async function w(){return c?!0:x(b??``)}async function T(e=6e4){if(c&&d.resolve(!0),e<=0)return d.promise;let t;try{return await Promise.race([d.promise,new Promise((n,r)=>{t=setTimeout(()=>{r(Error(`[devframe] Timeout waiting for rpc to be trusted`))},e)})]),c}finally{clearTimeout(t)}}return{transport:t,get isTrusted(){return c},get status(){return l},get connectionError(){return u},requestTrust:w,requestTrustWithToken:x,requestTrustWithCode:S,requestAuthCode:C,ensureTrusted:T,call:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(J.client.error,n,t),Promise.reject(n)):g(y.$call(...e),t)},callEvent:(...e)=>{let t=h();if(t)i.emit(J.client.error,t,String(e[0]));else return y.$callEvent(...e)},callOptional:(...e)=>{let t=String(e[0]),n=h();return n?(i.emit(J.client.error,n,t),Promise.reject(n)):g(y.$callOptional(...e),t)},close:()=>{v.close()}}}function Eu(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})();if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`;return new URL(e.path??`/`,`${r.protocol}//${t}`).href}return new URL(e.path??``,r).href}let i=e??``;return/^https?:\/\//i.test(i)?i:new URL(i,r).href}function Du(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},sseOptions:s={},callTimeout:c=0}=e,l=Eu(n.sse,r??`./`,location);return Tu({transport:`sse`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>Cu({url:l,authToken:t,definitions:e.definitions,...s,onConnected(){s.onConnected?.()},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(){e.onDisconnected(),s.onDisconnected?.()}})})}function Ou(e){let{name:t,message:n,cause:r,...i}=e,a=r instanceof Error?r:ku(r)?Ou(r):r,o=a===void 0?Error(n):Error(n,{cause:a});return o.name=t,Object.assign(o,i),o}function ku(e){return typeof e==`object`&&!!e&&typeof e.message==`string`&&typeof e.name==`string`}function Au(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function ju(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function Mu(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function Nu(e){if(e.error)throw Ou(e.error);return e.output}function Pu(e){return e.some(e=>e!=null)}function Fu(e){return typeof e==`object`&&e&&`serialization`in e&&`data`in e?e.data:e}function Iu(e,t){let n=new Map,r=new Map;function i(e,t){return t===`structured-clone`&&Array.isArray(e)?Sl(e):e}function a(e,t){return i(Fu(e),t)}async function o(e){n.has(e.path)||n.set(e.path,t(e.path).then(t=>a(t,e.serialization)));let r=await n.get(e.path);return Mu(r)?Nu(r):r}async function s(e,n){return r.has(e)||r.set(e,t(e).then(e=>a(e,n))),await r.get(e)}async function c(t,n){if(!(t in e))throw Error(`[devframe-rpc] Function "${t}" not found in dump store`);let r=e[t];if(Au(r)){if(Pu(n))throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await o(r)}if(ju(r)){let e=Ss(n),i=r.records[e];if(i)return Nu(await s(i,r.serialization));if(r.fallback)return Nu(await s(r.fallback,r.serialization));throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}if(!Pu(n))return r;throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}return{call:async(e,t)=>await c(e,t),callOptional:async(t,n)=>{if(t in e)return await c(t,n)},callEvent:async(e,t)=>{}}}async function Lu(e){let t=Iu(await e.fetchJsonFromBases(Fl),e.fetchJsonFromBases);return{transport:`static`,isTrusted:!0,status:`connected`,connectionError:null,requestTrust:async()=>!0,requestTrustWithToken:async()=>!0,requestTrustWithCode:async()=>null,requestAuthCode:async()=>{},ensureTrusted:async()=>!0,call:(...e)=>t.call(e[0],e.slice(1)),callEvent:(...e)=>t.callEvent(e[0],e.slice(1)),callOptional:(...e)=>t.callOptional(e[0],e.slice(1)),close:()=>{}}}var Ru=``;function zu(e,t){return`${e}${Ru}${t}`}function Bu(e){let t=new Map,n=new Map;e.client.register({name:J.broadcast.streamingChunk,type:`event`,handler(e,n,r,i){t.get(zu(e,n))?._push(r,i)}}),e.client.register({name:J.broadcast.streamingEnd,type:`event`,handler(e,n,r){let i=zu(e,n),a=t.get(i);a&&(a._end(r),t.delete(i))}}),e.client.register({name:J.broadcast.streamingUploadCancel,type:`event`,handler(e,t){let r=zu(e,t),i=n.get(r);i&&(i.abort(`server cancelled upload`),n.delete(r))}}),e.events.on(J.client.isTrustedUpdated,n=>{if(n)for(let[n,r]of t){if(r.cancelled||r.done)continue;let t=n.indexOf(Ru);if(t<0)continue;let i=n.slice(0,t),a=n.slice(t+1);e.callEvent(`devframe:streaming:subscribe`,i,a,{afterSeq:r.lastSeenSeq})}});function r(n,r,i={}){let a=zu(n,r),o=t.get(a);if(o)return o;let s=Ol({id:r,highWaterMark:i.highWaterMark,onOverflow(e){console.warn(`[devframe] DF0029: Stream "${n}#${r}" dropped ${e} chunk(s) after exceeding the client high-water mark.`)},onCancel(){e.callEvent(`devframe:streaming:cancel`,n,r),t.delete(a)}});if(t.set(a,s),e.isTrusted)e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:0});else{let i=e.events.on(J.client.isTrustedUpdated,o=>{o&&(i(),t.has(a)&&!s.cancelled&&!s.done&&e.callEvent(`devframe:streaming:subscribe`,n,r,{afterSeq:s.lastSeenSeq}))})}return s}function i(t,r){let i=zu(t,r),a=n.get(i);if(a)return a;let o=Dl({id:r});return o.events.on(`chunk`,(n,i)=>{e.callEvent(`devframe:streaming:upload-chunk`,t,r,n,i)}),o.events.on(`end`,a=>{e.callEvent(`devframe:streaming:upload-end`,t,r,a),n.delete(i)}),n.set(i,o),o}return{subscribe:r,upload:i}}function Vu(){}var Hu=new Map;function Uu(e){let t=e.url;e.authToken&&(t=`${t}?${Rl}=${encodeURIComponent(e.authToken)}`);let n=new WebSocket(t),{onConnected:r=Vu,onError:i=Vu,onDisconnected:a=Vu,definitions:o=Hu}=e;n.addEventListener(`open`,e=>{r(e)}),n.addEventListener(`error`,e=>{let t=e instanceof Error?e:Error(e.type);i(t)}),n.addEventListener(`close`,e=>{a(e)});let s=yu(o);return{close:()=>{n.close()},on:e=>{n.addEventListener(`message`,t=>{e(t.data)})},post:e=>{if(n.readyState===WebSocket.OPEN)n.send(e);else if(n.readyState===WebSocket.CONNECTING){let t=()=>{i(),n.readyState===WebSocket.OPEN&&n.send(e)},r=()=>i();function i(){n.removeEventListener(`open`,t),n.removeEventListener(`close`,r)}n.addEventListener(`open`,t),n.addEventListener(`close`,r)}else i(Error(`Devframe WebSocket is not open; message dropped`))},serialize:s.serialize,deserialize:s.deserialize}}function Wu(e,t,n){let r=(()=>{try{return new URL(t,n.href)}catch{return new URL(n.href)}})(),i=r.protocol===`https:`?`wss:`:`ws:`;if(e&&typeof e==`object`){if(e.host!=null||e.port!=null){let t=e.host??`${r.hostname}:${e.port}`,n=new URL(e.path??`/`,`${i}//${t}`);return n.protocol=i,n.href}let t=new URL(e.path??``,r);return t.protocol=i,t.href}if(typeof e==`number`)return`${i}//${r.hostname}:${e}`;let a=e??``;if(/^wss?:\/\//i.test(a))return a;if(/^https?:\/\//i.test(a))return ks(a,/^https/i.test(a)?`wss://`:`ws://`);let o=new URL(a,r);return o.protocol=i,o.href}function Gu(e){let{authToken:t,connectionMeta:n,metaBaseUrl:r,events:i,clientRpc:a,rpcOptions:o={},wsOptions:s={},callTimeout:c=0}=e,l=Wu(n.websocket,r??`./`,location);return Tu({transport:`websocket`,authToken:t,connectionMeta:n,events:i,clientRpc:a,rpcOptions:o,callTimeout:c,createChannel:e=>Uu({url:l,authToken:t,definitions:e.definitions,...s,onConnected(e){s.onConnected?.(e)},onError(t){e.onError(t),s.onError?.(t)},onDisconnected(t){e.onDisconnected(),s.onDisconnected?.(t)}})})}function Ku(e){return e.includes(`:`)}function qu(e,t){return Ku(t)?t:`${e}:${t}`}function Ju(e){return{async get(t){return(await e()).value()?.[t]},async set(t,n){(await e()).mutate(e=>{if(e===void 0)return{[t]:n};e[t]=n})},async delete(t){(await e()).mutate(e=>{e!==void 0&&delete e[t]})},async all(){return(await e()).value()??{}},async onChange(t){return(await e()).on(`updated`,e=>t(e??{}))}}}function Yu(e,t,n){let r=`devframe:settings:${n}:${t}`,i;function a(){return i||=(async()=>(await e.ensureTrusted(),e.sharedState.get(r)))().catch(e=>{throw i=void 0,e}),i}return Ju(a)}function Xu(e,t){return{global:Yu(e,t,`global`),project:Yu(e,t,`project`)}}function Zu(e,t){return{namespace:t,base:e,rpc:{namespace:t,register(n){if(Ku(n.name))throw Error(`[devframe] Scoped client RPC registration for namespace "${t}" received an already-namespaced function name "${n.name}". Pass a bare name without a ":" separator.`);e.client.register({...n,name:`${t}:${n.name}`})},call:((n,...r)=>e.call(qu(t,n),...r)),callEvent:((n,...r)=>e.callEvent(qu(t,n),...r)),callOptional:((n,...r)=>e.callOptional(qu(t,n),...r)),sharedState:((n,r)=>e.sharedState.get(qu(t,n),r)),streaming:{subscribe:(n,r,i)=>e.streaming.subscribe(qu(t,n),r,i),upload:(n,r)=>e.streaming.upload(qu(t,n),r)}},settings:Xu(e,t),scope:e.scope}}function Qu(){if(typeof document<`u`){let e=document.modelContext;if(e)return e}if(typeof navigator<`u`){let e=navigator.modelContext;if(e)return e}}function $u(e,t={}){let n=t.modelContext??Qu();if(!n)return()=>{};let r=n,i=new Map,a=new Map;function o(t,n){let o=jl(t.name),s=a.get(o);if(s&&s!==t.name){console.warn(`[devframe] WebMCP tool name "${o}" (from "${t.name}") collides with "${s}"; keeping the first registration.`);return}let c=new AbortController,l=rs(t.type,n),u=r.registerTool({name:o,description:n.description,inputSchema:os(t.args),annotations:{title:n.title??t.name,readOnlyHint:l===`read`,destructiveHint:l===`destructive`},execute:n=>ed(t,e.context,n)},{signal:c.signal});u&&`then`in u&&u.then(()=>{},()=>{}),a.set(o,t.name),i.set(t.name,()=>{c.abort(),u&&`unregister`in u&&typeof u.unregister==`function`&&u.unregister(),a.delete(o)})}function s(t){let n=t?[t]:[...e.definitions.keys()];for(let t of n){i.get(t)?.(),i.delete(t);let n=e.definitions.get(t),r=n?.agent;n&&r&&o(n,r)}}s();let c=e.onChanged(e=>s(e));return()=>{c();for(let e of i.values())e();i.clear()}}async function ed(e,t,n){try{let r=cs(n,e.args?.length);return{content:[{type:`text`,text:td(await(await ql(e,t))(...r))}]}}catch(e){return{isError:!0,content:[{type:`text`,text:nd(e)}]}}}function td(e){return e===void 0?`undefined`:typeof e==`string`?e:JSON.stringify(e,null,2)}function nd(e){if(!(e instanceof Error))return String(e);let t=e.cause instanceof Error?` (cause: ${e.cause.message})`:``;return`${e.name}: ${e.message}${t}`}function rd(e,t){if(t.backend===`static`)return`static`;let n=t.websocket!==void 0,r=t.sse!==void 0;if(e===`websocket`){if(!n)throw Error(`[devframe] transport: 'websocket' was requested, but this server does not advertise a WebSocket endpoint`);return`websocket`}if(e===`sse`){if(!r)throw Error(`[devframe] transport: 'sse' was requested, but this server does not advertise an SSE endpoint`);return`sse`}if(t.backend===`sse`&&r)return`sse`;if(n)return`websocket`;if(r)return`sse`;throw Error(`[devframe] This server advertises no RPC transport (backend "none"), so there is nothing to connect to. Enable the WebSocket or SSE endpoint on the server, or use its static/MCP surfaces instead.`)}async function id(e={}){let{baseURL:t=`./`,rpcOptions:n={},cacheOptions:r=!1}=e,i=Cs(),a=Array.isArray(t)?t:[t],o=await uu(e),{connectionMeta:s,metaBaseUrl:c,authToken:l}=o,u=a[0]??`./`;try{u=new URL(`.`,c).href}catch{}let d=new zl({functions:[],...typeof e.cacheOptions==`object`?e.cacheOptions:{}}),f={rpc:void 0},p=new Jl(f),m=e.webmcp===!1?void 0:$u(p),h,g=!1,_=0,v;function y(){_++,v=void 0,d.clear(),r===!0&&d.updateOptions({functions:[]})}r&&(p.register({name:J.broadcast.cacheInvalidate,type:`event`,handler:y}),i.on(J.client.connectionStatus,y),i.on(J.client.isTrustedUpdated,y));async function b(e){let t=[u,...a.filter(e=>e!==u)].filter(e=>e!=null),n=[];for(let r of t)try{return await fetch(Os(e,r)).then(t=>{if(!t.ok)throw Error(`Failed to fetch ${e} from ${r}: ${t.status}`);return t.json()})}catch(e){n.push(e)}throw Error(`Failed to load ${e} from ${t.join(`, `)}`,{cause:n})}let x=e.callTimeout??0,S=x>0?x:1/0,C,w={authToken:l,connectionMeta:s,metaBaseUrl:c,events:i,clientRpc:p,callTimeout:e.callTimeout,rpcOptions:{...n,async onRequest(e,t,i){let a=performance.now()+S;if(await n.onRequest?.call(this,e,t,i),r===!0&&e.i&&C.isTrusted&&!e.m.startsWith(`anonymous:`)&&e.m!==`devframe:rpc:cacheable-functions`){function t(){if(performance.now()>=a)throw new du(`timeout`,`[devframe] RPC call "${e.m}" timed out after ${x}ms`)}for(;!v&&(t(),!(g||C.status!==`connected`));){let e=_;v=C.callOptional(`devframe:rpc:cacheable-functions`).then(t=>{e===_&&d.updateOptions({functions:t??[]})}).catch(t=>{throw e===_&&(v=void 0),t}),await v}await v,t()}let o=_;if(r&&e.i&&!g&&C.isTrusted&&d.validate(e.m)){if(d.has(e.m,e.a))return i(d.cached(e.m,e.a));let n=await t(e);o===_&&!g&&d.apply(e,n)}else await t(e)}}},T=rd(e.transport??`auto`,s);C=T===`static`?await Lu({fetchJsonFromBases:b}):T===`sse`?Du({...w,sseOptions:e.sseOptions}):Gu({...w,wsOptions:e.wsOptions});let E;try{E=new BroadcastChannel(`devframe-auth`)}catch{}let D,O=!1;function k(e){return((...t)=>O||!D?e(...t):D.then(()=>e(...t)))}function ee(){g=!0,y();try{h?.(),m?.()}finally{try{E?.close()}finally{C.close?.()}}}let A={events:i,get isTrusted(){return C.isTrusted},get status(){return C.status},get connectionError(){return C.connectionError},get transport(){return C.transport??T},get connection(){return o},connectionMeta:s,ensureTrusted:C.ensureTrusted,requestTrust:C.requestTrust,requestTrustWithToken:async e=>(ou(e),o={...o,authToken:e},C.requestTrustWithToken(e)),requestTrustWithCode:async e=>{let t=await C.requestTrustWithCode(e);if(!t)return!1;ou(t),o={...o,authToken:t};try{E?.postMessage({type:`auth-update`,authToken:t})}catch{}return!0},requestAuthCode:e=>C.requestAuthCode(e),call:k(C.call),callEvent:k(C.callEvent),callOptional:k(C.callOptional),client:p,sharedState:void 0,services:void 0,streaming:void 0,cacheManager:d,scope:void 0,close:ee};A.sharedState=_u(A),A.streaming=Bu(A),A.services=gu(A);let j=new Map;A.scope=(e=>{if(!e)return A;let t=j.get(e);return t||(t=Zu(A,e),j.set(e,t)),t}),f.rpc=A;function M(){try{return typeof window<`u`&&window.self===window.top}catch{return!1}}async function te(){if(e.simpleAuth!==!1&&M()&&typeof globalThis.prompt==`function`)for(await A.requestAuthCode().catch(()=>{});!A.isTrusted;){let e=globalThis.prompt(`devframe: enter the authentication code shown in your terminal`);if(e==null)return;let t=e.trim();if(t&&await A.requestTrustWithCode(t))return}}async function ne(){let t=await C.requestTrust(),n=e.otpParam??`devframe_otp`,r=n?await hu(A,{param:n}):!1;t||r||A.isTrusted||await te()}return D=ne().then(()=>{O=!0},()=>{O=!0}),s.mcp&&V(async()=>{let{setupBrowserAgentRpcBridge:e}=await import(`./B48W2q7f.js`);return{setupBrowserAgentRpcBridge:e}},[],import.meta.url).then(({setupBrowserAgentRpcBridge:e})=>{g||(h=e(A))}).catch(()=>{}),E&&(E.onmessage=e=>{e.data?.type===`auth-update`&&e.data.authToken&&A.requestTrustWithToken(e.data.authToken)}),A}var ad=id;function od(e){return{project:()=>e.call(`x18n:project`),keys:t=>e.call(`x18n:keys`,{project:t}),key:(t,n)=>e.call(`x18n:key`,{project:t,key:n}),usages:t=>e.call(`x18n:usages`,{project:t}),analysis:t=>e.call(`x18n:analysis`,{project:t}),explain:()=>e.call(`x18n:explain`),extractCandidates:t=>e.call(`x18n:extract-candidates`,{project:t})}}function sd(){throw Error(`This report is read-only.`)}function cd(e){return{mode:`static`,capabilities:{write:!1,prompts:!1,openInEditor:!1},...od(e),plan:sd,apply:sd,extractApply:sd,openInEditor:sd,onChange:()=>()=>{}}}async function ld(e){let{openInEditor:t}=await e.call(`x18n:project`),n=await e.sharedState.get(`x18n:state`);return{mode:`server`,capabilities:{write:!0,prompts:!0,openInEditor:t},...od(e),plan:t=>e.call(`x18n:plan`,t),apply:t=>e.call(`x18n:apply`,t),extractApply:t=>e.call(`x18n:extract-apply`,t),openInEditor:t=>e.call(`x18n:open-in-editor`,t),onChange:e=>n.on(`updated`,t=>e(t))}}var ud=fe();async function dd(e){let t=sessionStorage.getItem(`x18n:otp`);sessionStorage.removeItem(`x18n:otp`),!(t&&await e.requestTrustWithCode(t))&&(e.isTrusted||await e.requestTrust()||(await e.requestAuthCode(),await new Promise(t=>{ud.value=async n=>{let r=await e.requestTrustWithCode(n);return r&&(ud.value=void 0,t()),r}})))}var fd;function pd(){return fd??=ad({otpParam:!1,simpleAuth:!1}).then(async e=>e.transport===`static`?cd(e):(await dd(e),ld(e))),fd}var md=[`aria-label`,`aria-expanded`],hd={key:0,class:`absolute right-0 top-full z-20 mt-1 min-w-36 border border-strong bg-base py-1 shadow-lg`,role:`menu`},gd=[`aria-checked`,`lang`,`onClick`],_d=N({__name:`LanguageMenu`,setup(e){let t=ve(`root`),n=j(!1);at(t,()=>n.value=!1);function r(e){st(e),n.value=!1}return(e,i)=>(O(),I(`div`,{ref_key:`root`,ref:t,class:`relative`,onKeydown:i[1]||=we(e=>n.value=!1,[`escape`])},[F(`button`,{type:`button`,class:x([`btn-icon`,n.value&&`bg-hover color-base`]),"aria-label":L(H)(`app.language`),"aria-haspopup":`menu`,"aria-expanded":n.value,onClick:i[0]||=e=>n.value=!n.value},[...i[2]||=[F(`span`,{class:`i-ph-translate-duotone text-base`},null,-1)]],10,md),n.value?(O(),I(`div`,hd,[(O(!0),I(de,null,A(L(Ct),e=>(O(),I(`button`,{key:e,type:`button`,role:`menuitemradio`,"aria-checked":e===L(rt),lang:e,class:x([`focus-ring flex w-full items-center gap-2 px-3 py-1.5 text-left text-xs transition-colors hover:bg-hover`,e===L(rt)?`color-base`:`color-muted`]),onClick:t=>r(e)},[F(`span`,{class:x([`i-ph-check-duotone shrink-0`,e!==L(rt)&&`op-0`])},null,2),le(` `+C(L(dt)(e)),1)],10,gd))),128))])):pe(``,!0)],544))}}),vd=it(`x18n:flags`,!0),yd=fe();ne(()=>{vd.value&&!yd.value&&V(()=>import(`./ChbLIx1c.js`).then(e=>yd.value=e.icons),[],import.meta.url)});function bd(e){return[...e].map(e=>String.fromCharCode(e.codePointAt(0)-127462+65)).join(``)}function xd(e){let t=yd.value;if(!t)return;let n=e.toLowerCase(),r=t.icons[t.aliases?.[n]?.parent??n]?.body;if(r)return`data:image/svg+xml,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${t.width??512} ${t.height??512}">${r}</svg>`)}`}var Sd=[`src`],Cd=N({__name:`LocaleFlag`,props:{code:{}},setup(e){function t(e){let t=ot.value.find(t=>t.code===e)?.flag;if(t)return bd(t);try{return new Intl.Locale(e).maximize().region}catch{return}}let n=z(()=>{let n=vd.value?t(e.code):void 0;return n&&xd(n)});return(e,t)=>n.value?(O(),I(`img`,{key:0,src:n.value,alt:``,class:`size-[1.1em] shrink-0 select-none`,draggable:`false`,"data-flag":``},null,8,Sd)):pe(``,!0)}}),wd=[`aria-label`],Td={class:`label`},Ed=[`aria-pressed`,`title`,`data-locale-toggle`,`onClick`,`onKeydown`,`onDragstart`,`onDragover`],Dd={class:`font-mono text-[11px] color-muted tabular-nums`},Od=[`aria-pressed`,`title`],kd=N({__name:`LocaleBar`,setup(e){let t=j(),n=j();function r(e,n){t.value=n,e.dataTransfer?.setData(`text/plain`,n),e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`)}function i(e,r){if(!t.value||!(e.currentTarget instanceof HTMLElement))return;e.preventDefault();let{left:i,width:a}=e.currentTarget.getBoundingClientRect();n.value=e.clientX<i+a/2?r:r+1}function a(){let e=t.value,r=n.value;if(e!==void 0&&r!==void 0){let t=ot.value.findIndex(t=>t.code===e);gt(e,t<r?r-1:r)}o()}function o(){t.value=void 0,n.value=void 0}return(e,s)=>(O(),I(`div`,{class:`flex min-h-10 flex-wrap items-center gap-x-3 gap-y-1 px-4 py-1.5`,role:`toolbar`,"aria-label":L(H)(`localeBar.bar`)},[F(`span`,Td,C(L(H)(`localeBar.title`)),1),F(`div`,{class:`flex flex-wrap gap-1`,onDragleave:s[0]||=be(e=>n.value=void 0,[`self`])},[(O(!0),I(de,null,A(L(ot),(e,s)=>(O(),I(`button`,{key:e.code,type:`button`,draggable:`true`,class:x([`focus-ring h-7 flex cursor-grab items-center gap-1.5 border px-2 font-mono text-xs transition-colors active:cursor-grabbing`,[L(pt)(e.code)?`border-strong color-base hover:border-inverse`:`border-dashed border-base color-faint hover:color-muted`,t.value===e.code&&`op-40`,n.value===s&&`shadow-[-3px_0_0_var(--x-fg)]`,n.value===s+1&&s===L(ot).length-1&&`shadow-[3px_0_0_var(--x-fg)]`]]),"aria-pressed":L(pt)(e.code),title:[L(H)(`localeBar.toggle`,{locale:L(Tt)(e.code)??e.code}),e.code===L(ht)?.sourceLocale?L(H)(`overview.source`):L(St)(e.percent),L(H)(`localeBar.reorder`)].join(`
5
- `),"data-locale-toggle":e.code,onClick:t=>L(_t)(e.code),onKeydown:[we(be(t=>L(gt)(e.code,s-1),[`alt`,`prevent`]),[`left`]),we(be(t=>L(gt)(e.code,s+1),[`alt`,`prevent`]),[`right`])],onDragstart:t=>r(t,e.code),onDragover:e=>i(e,s),onDrop:be(a,[`prevent`]),onDragend:o},[L(vd)?(O(),R(Cd,{key:0,code:e.code,class:x(!L(pt)(e.code)&&`grayscale op-50`)},null,8,[`code`,`class`])):(O(),I(`span`,{key:1,class:x([L(pt)(e.code)?`i-ph-eye-duotone`:`i-ph-eye-slash-duotone`,`text-[13px] op-70`]),"aria-hidden":`true`},null,2)),le(` `+C(e.code),1)],42,Ed))),128))],32),s[4]||=F(`div`,{class:`flex-auto`},null,-1),F(`span`,Dd,C(L(H)(`localeBar.shown`,{shown:L(ft).length,total:L(ot).length})),1),L(ft).length<L(ot).length?(O(),I(`button`,{key:0,type:`button`,class:`btn-ghost h-7`,onClick:s[1]||=(...e)=>L(ut)&&L(ut)(...e)},C(L(H)(`localeBar.showAll`)),1)):pe(``,!0),L(vt)?(O(),I(`button`,{key:1,type:`button`,class:`btn-ghost h-7`,onClick:s[2]||=(...e)=>L(xt)&&L(xt)(...e)},C(L(H)(`localeBar.resetOrder`)),1)):pe(``,!0),F(`button`,{type:`button`,class:`btn-icon h-7 w-7`,"aria-pressed":L(vd),title:L(H)(`localeBar.flags`),onClick:s[3]||=e=>vd.value=!L(vd)},[F(`span`,{class:x(L(vd)?`i-ph-flag-fill`:`i-ph-flag-duotone`)},null,2)],8,Od)],8,wd))}}),Ad=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},jd={},Md={viewBox:`0 0 662 662`,fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`};function Nd(e,t){return O(),I(`svg`,Md,[...t[0]||=[F(`path`,{d:`M349.284 19C436.277 19 513.752 56.3771 569.63 113.614C572.613 116.211 575.474 118.915 578.202 121.716L579.279 122.834C601.781 146.444 616.853 178.397 616.853 211.32C616.853 252.86 594.452 289.118 561.019 314.418L557.462 317.109L553.86 314.479C537.583 302.595 520.656 293.021 505.087 286.419L493.09 281.332L504.755 275.524C537.492 259.225 553.85 232.943 553.85 211.32C553.85 201.929 550.767 191.158 544.617 180.795C538.963 173.484 532.936 166.475 526.564 159.804C514.15 149.592 499.089 143.522 483.347 143.522C441.556 143.523 410.658 172.577 410.658 211.32C410.658 211.593 410.66 211.864 410.664 212.132L410.693 213.176C410.702 213.398 410.706 213.525 410.713 213.67L410.727 213.938C410.762 214.623 410.812 215.307 410.876 215.989L410.909 216.333C410.924 216.478 410.94 216.629 410.959 216.797L410.982 217.019V217.021C411.726 223.49 413.741 229.739 416.973 235.821L417.098 236.051L417.105 236.064L417.113 236.079C417.288 236.405 417.471 236.737 417.663 237.079L417.834 237.382L417.835 237.384C418.037 237.74 418.244 238.097 418.456 238.454L418.657 238.79L418.658 238.793C418.887 239.173 419.115 239.545 419.346 239.912L419.353 239.924C419.358 239.933 419.366 239.943 419.377 239.96L419.473 240.11L419.474 240.112C421.18 242.808 423.133 245.475 425.328 248.117C425.32 248.107 425.317 248.103 425.337 248.127L425.433 248.24L425.434 248.241C427.288 250.465 429.312 252.667 431.502 254.847L432.451 255.78L432.453 255.782C432.733 256.054 432.633 255.961 432.809 256.131C432.811 256.133 432.814 256.135 432.817 256.139C432.831 256.151 432.868 256.187 432.908 256.226L433.345 256.641L433.348 256.643C433.694 256.972 434.034 257.293 434.373 257.607L434.773 257.976L434.774 257.978C435.097 258.274 435.424 258.571 435.755 258.868L436.079 259.162C436.345 259.399 435.888 258.99 436.267 259.326C436.999 259.977 437.739 260.621 438.488 261.257L439.24 261.89L439.268 261.911C439.293 261.932 439.36 261.986 439.431 262.045C439.862 262.404 440.295 262.759 440.727 263.109C440.868 263.224 441.011 263.34 441.158 263.458C441.554 263.776 441.953 264.093 442.354 264.408C442.496 264.52 442.635 264.628 442.772 264.735C443.205 265.072 443.643 265.41 444.089 265.749C444.475 266.043 444.078 265.744 444.348 265.948C444.883 266.354 445.421 266.756 445.963 267.155L447.552 268.309C447.757 268.456 447.961 268.601 448.193 268.766C448.5 268.983 448.808 269.199 449.115 269.414C449.378 269.598 449.641 269.781 449.904 269.963C450.204 270.17 450.509 270.377 450.818 270.588C451.063 270.754 451.276 270.9 451.494 271.047C451.954 271.356 452.41 271.661 452.866 271.962C453.018 272.062 453.127 272.134 453.252 272.216C453.738 272.534 454.229 272.852 454.724 273.169C454.934 273.304 455.133 273.43 455.377 273.585C455.761 273.829 456.135 274.065 456.505 274.296C456.698 274.416 456.891 274.536 457.085 274.656C457.455 274.885 457.831 275.115 458.217 275.35C458.48 275.51 458.636 275.607 458.847 275.734C459.997 276.429 461.157 277.112 462.324 277.783C462.467 277.865 462.489 277.876 462.687 277.989C463.139 278.248 463.597 278.507 464.063 278.77L464.573 279.057L465.839 279.756C466.063 279.879 466.208 279.96 466.392 280.06C467.563 280.697 468.737 281.322 469.913 281.934C470.144 282.054 470.29 282.128 470.585 282.279C470.91 282.447 471.217 282.605 471.523 282.761C471.842 282.923 472.161 283.084 472.481 283.245C472.776 283.393 473.07 283.54 473.364 283.687C473.612 283.81 473.862 283.933 474.118 284.059C474.439 284.216 474.761 284.374 475.1 284.538C475.42 284.694 475.7 284.83 475.987 284.968C476.873 285.393 477.755 285.809 478.632 286.217L479.138 286.45C484.327 288.843 489.449 290.964 494.358 292.8C509.667 298.524 526.842 307.62 543.501 319.242C548.028 322.4 552.524 325.749 556.94 329.275C558.585 330.589 560.216 331.926 561.832 333.283L563.738 334.9C568.171 338.7 572.498 342.679 576.665 346.823C601.44 371.464 624.867 406.303 624.867 447.326C624.867 486.265 606.727 523.557 578.158 550.609L578.2 550.655L573.779 554.692C518.785 604.912 430.329 643.3 349.284 643.3C177.351 643.3 38.0002 503.53 38 331.15C38 158.771 177.351 19 349.284 19ZM349.284 82.1465C212.178 82.1465 101.002 193.614 101.002 331.15C101.002 425.452 153.272 507.509 230.351 549.775V296.352L159.471 337.391L127.982 282.697L293.353 186.949V573.803C311.325 577.953 330.045 580.153 349.284 580.153C366.832 580.153 385.152 577.774 403.445 573.458C358.263 546.202 330.902 494.837 330.902 447.326C330.902 411.131 348.63 376.016 372.35 348.838C379.326 340.844 387.058 333.256 395.402 326.263L399.018 323.233L402.815 326.031C418.226 337.386 434.611 346.416 449.826 353.354L459.863 357.93L450.566 363.869C439.226 371.114 428.691 380.192 419.769 390.415C402.406 410.31 393.904 431.234 393.904 447.326C393.904 466.854 402.431 487.587 416.888 503.451C431.299 519.266 451.26 529.88 473.885 529.88C498.082 529.88 520.115 519.296 536.147 503.503C552.228 487.663 561.864 466.995 561.864 447.326C561.864 430.618 551.765 411.02 532.288 391.648C513.247 372.711 489.527 358.392 472.336 351.964C472.168 351.901 471.979 351.829 471.796 351.759L471.194 351.531C453.823 344.949 433.353 335.213 414.14 321.946C405.535 316.005 397.137 309.325 389.365 301.861L389.363 301.859C382.682 295.438 376.316 288.291 370.659 280.409L370.658 280.408C370.644 280.389 370.629 280.367 370.597 280.323C370.569 280.285 370.526 280.227 370.481 280.164C369.264 278.459 368.081 276.721 366.937 274.952L366.936 274.951C356.003 258.052 348.439 238.027 347.713 214.969C347.675 213.76 347.655 212.543 347.655 211.32C347.655 156.559 379.052 114.169 422.575 93.7686C399.423 86.2397 374.822 82.1465 349.284 82.1465Z`},null,-1)]])}var Pd=Ad(jd,[[`render`,Nd]]);function Fd(e){return e===`dark`||e===`light`||e===`high-contrast`}function Id(e){let t=document.documentElement;t.classList.toggle(`dark`,e!==`light`),t.classList.toggle(`high-contrast`,e===`high-contrast`)}function Ld(){let e=new URLSearchParams(location.search).get(`theme`);Id(Fd(e)?e:matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`),window.addEventListener(`message`,e=>{e.source===window.parent&&e.source!==window&&e.data?.type===`x18n:theme`&&Fd(e.data.theme)&&Id(e.data.theme)})}var Rd=(e=`RouteProvider`)=>N({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean,routeRecord:Object},setup(e){let t=e.renderKey,n=e.route,r={};for(let i in e.route)Object.defineProperty(r,i,{get:()=>t===e.renderKey?e.route[i]:n[i],enumerable:!0});return k(Ge,_(r)),()=>e.vnode?P(e.vnode,{ref:e.vnodeRef}):e.vnode}}),zd=Rd(),Bd=new WeakMap,Vd=N({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:n,slots:r,expose:i}){let a=t(),o=j(),s=M(Ge,null),c=new Set,l;i({pageRef:o});let u=M(Je,null),d,f=a.deferHydration(),p=!1,m=!1,h,g=0;if(a.isHydrating){let e=a.hooks.hookOnce(`app:error`,f),t=B().beforeEach(()=>{e(),t()})}e.pageKey&&y(()=>e.pageKey,(e,t)=>{e!==t&&a.callHook(`page:loading:start`)});let _=!1;{let e=B().beforeResolve(()=>{_=!1});ee(()=>{e(),f()})}return()=>P(Fa,{name:e.name,route:e.route,...n},{default:Wd(t=>{let n=Hd(s,t.route,t.Component),i=s&&s.matched.length===t.route.matched.length;if(!t.Component)return d&&!i&&!Kd(d)?d:(f(),e.transition??t.route.meta.pageTransition??!1?La(Wa([e.transition,t.route.meta.pageTransition,!1]),null).default():void 0);if(d&&u&&!Kd(d)&&!u.isCurrent(t.route))return d;if(n&&s&&(!u||u?.isCurrent(s)))return(i||d)&&!Kd(d)?d:null;let v=Pr(t,e.pageKey),y=Ud(s,t.route,t.Component);!a.isHydrating&&l===v&&!y&&S(()=>{_||(_=!0,a.callHook(`page:loading:end`))}),p&&l!==v&&m&&g++,l=v;let b=!!(e.transition??t.route.meta.pageTransition??!1),x=b&&Wa([e.transition,t.route.meta.pageTransition,!1,{onAfterLeave(){Ka(a),a.callHook(`page:transition:finish`,t.Component)}}]),C=e.keepalive??t.route.meta.keepalive??!1,w=t.Component.type,T=w.name||w.__name;t.route.meta.keepalive&&T&&c.add(T);let E;if(c.size>0&&e.keepalive==null&&(!C||typeof C==`object`&&C&&C.include)){let e=typeof C==`object`&&C?{...C}:{},t=e.include?Array.isArray(e.include)?e.include:[e.include]:[];E={...e,include:Array.from(new Set([...t,...c]))}}else E=C;return d=La(b&&x,Fr(E,P(ie,{key:g,suspensible:!0,onPending:()=>{p=!0,b&&m&&Ga(a),h=a.callHook(`page:start`,t.Component)},onResolve:async()=>{p=!1,m=!0,a.isHydrating&&a[`~restoreDeferredRoute`]?.();try{await S(),a._route.sync?.(),await h,await a.callHook(`page:finish`,t.Component),!_&&!y&&(_=!0,await a.callHook(`page:loading:end`))}finally{f()}}},{default:()=>{let e={key:v||void 0,vnode:r.default?Gd(r.default,t):t.Component,route:t.route,renderKey:v||void 0,trackRootNodes:b,vnodeRef:o,routeRecord:void 0};if(!E)return P(zd,e);let n=w,i=Bd.get(n);return i||(i=Rd(T),Bd.set(n,i)),P(i,e)}}))).default(),d})})}});function Hd(e,t,n){if(!e)return!1;let r=t.matched.findIndex(e=>e.components?.default===n?.type);if(r===-1)return!1;let i=t.matched.slice(0,r).filter(e=>e.components?.default);if(!i.length)return!1;let a=e.matched.filter(e=>e.components?.default);return i.some((e,t)=>e.components?.default!==a[t]?.components?.default)||n&&Pr({route:t,Component:n})!==Pr({route:e,Component:n})}function Ud(e,t,n){return e?t.matched.findIndex(e=>e.components?.default===n?.type)<t.matched.length-1:!1}function Wd(e){let t=(t=>{let n=e(t);return Array.isArray(n)?n:n==null||!b(n)?[pe()]:[n]});return t._n=!0,t}function Gd(e,t){let n=e(t);return n.length===1?P(n[0]):P(de,void 0,n)}function Kd(e){return!!e&&(!!e.suspense?.isUnmounted||!!e.component?.isUnmounted)}var qd={class:`h-full flex flex-col bg-base color-base font-sans text-sm`},Jd={class:`shrink-0 border-b border-base`},Yd={class:`h-12 flex items-center gap-6 border-b border-base px-4`},Xd={class:`flex items-center gap-1`},Zd=[`title`],Qd={key:1,class:`flex items-center gap-2`},$d={class:`label`},ef=[`value`],tf={class:`flex-auto min-h-0 of-auto`},nf={class:`label`},rf={class:`text-2xl font-semibold tracking-tight`},af={class:`color-muted`},of=[`aria-label`],sf={key:0,class:`color-error`},cf={class:`btn-solid self-start`,type:`submit`},lf={key:1,class:`p-4 color-error`},uf={key:2,class:`p-4 label`},df=N({__name:`app`,setup(e){let t=z(()=>[{to:`/`,label:H(`nav.overview`)},{to:`/keys`,label:H(`nav.keys`)},{to:`/usages`,label:H(`nav.usages`)},{to:`/extract`,label:H(`nav.extract`)},{to:`/project`,label:H(`nav.project`)}]),n=j(),r=j(``),i=j(!1);async function a(){i.value=!await ud.value?.(r.value.trim())}async function o(){let e=await bt.value.project();yt.value=e,e.projects.some(e=>e.name===ct.value)||(ct.value=e.projects[0]?.name)}return Ld(),wt(),ce(async()=>{try{let e=await pd();bt.value=e,await o(),e.onChange(e=>{mt.value=e.changedKeys,lt.value++,o()})}catch(e){n.value=e instanceof Error?e.message:String(e)}}),(e,o)=>(O(),I(`div`,qd,[F(`header`,Jd,[F(`div`,Yd,[oe(L(Oo),{to:`/`,class:`focus-ring flex items-center gap-2.5 font-mono text-sm font-medium`},{default:w(()=>[oe(Pd,{class:`size-6 shrink-0`}),le(` `+C(L(H)(`app.name`)),1)]),_:1}),F(`nav`,Xd,[(O(!0),I(de,null,A(t.value,e=>(O(),R(L(Oo),{key:e.to,to:e.to,class:`focus-ring whitespace-nowrap px-2 py-1 font-mono text-xs uppercase tracking-[0.12em] color-muted transition-colors hover:color-base`,"active-class":e.to===`/`?``:`!color-base`,"exact-active-class":`!color-base`},{default:w(()=>[le(C(e.label),1)]),_:2},1032,[`to`,`active-class`]))),128))]),o[2]||=F(`div`,{class:`flex-auto`},null,-1),L(bt)?.mode===`static`?(O(),I(`span`,{key:0,class:`badge`,title:L(H)(`app.staticHint`)},C(L(H)(`app.static`)),9,Zd)):pe(``,!0),(L(yt)?.projects.length??0)>1?(O(),I(`label`,Qd,[F(`span`,$d,C(L(H)(`app.project`)),1),te(F(`select`,{"onUpdate:modelValue":o[0]||=e=>E(ct)?ct.value=e:null,class:`input font-mono text-xs`},[(O(!0),I(de,null,A(L(yt)?.projects,e=>(O(),I(`option`,{key:e.name,value:e.name},C(e.name),9,ef))),128))],512),[[ye,L(ct)]])])):pe(``,!0),oe(_d)]),L(ct)&&!L(ud)?(O(),R(kd,{key:0})):pe(``,!0)]),F(`main`,tf,[L(ud)?(O(),I(`form`,{key:0,class:`max-w-sm mx-auto mt-20 flex flex-col gap-4`,onSubmit:be(a,[`prevent`])},[F(`span`,nf,C(L(H)(`auth.label`)),1),F(`h1`,rf,C(L(H)(`auth.title`)),1),F(`p`,af,C(L(H)(`auth.hint`)),1),te(F(`input`,{"onUpdate:modelValue":o[1]||=e=>r.value=e,class:`input h-11 font-mono text-lg tracking-[0.4em]`,inputmode:`numeric`,autocomplete:`one-time-code`,"aria-label":L(H)(`auth.code`),autofocus:``},null,8,of),[[Se,r.value]]),i.value?(O(),I(`p`,sf,C(L(H)(`auth.rejected`)),1)):pe(``,!0),F(`button`,cf,C(L(H)(`auth.submit`)),1)],32)):n.value?(O(),I(`p`,lf,C(L(H)(`app.error`,{message:n.value})),1)):L(ct)?(O(),R(L(Vd),{key:3})):(O(),I(`p`,uf,C(L(H)(`app.loading`)),1))])]))}}),ff={__name:`nuxt-error-page`,props:{error:Object},setup(e){let t=e.error,n=Number(t.statusCode||500),r=n===404,i=t.statusMessage??(r?`Page Not Found`:`Internal Server Error`),a=t.message||t.toString(),o=ae(()=>V(()=>import(`./DWpOVjuS.js`),__vite__mapDeps([21,1,22,4,23]),import.meta.url)),s=ae(()=>V(()=>import(`./ChIAts7W.js`),__vite__mapDeps([24,1,22,4,25]),import.meta.url)),c=r?o:s;return(e,t)=>(O(),R(L(c),he(_e({status:L(n),statusText:L(i),statusCode:L(n),statusMessage:L(i),description:L(a),stack:L(void 0)})),null,16))}},pf=()=>null,mf={key:0},hf={__name:`nuxt-root`,setup(e){let n=t(),r=n.deferHydration();if(n.isHydrating){let e=n.hooks.hookOnce(`app:error`,r),t=B().beforeEach(()=>{e(),t()})}window.location.pathname,k(Ge,Qe()),n.hooks.callHookWith(e=>e.map(e=>e()),`vue:setup`,[]);let i=Fe();function a(e,t,r){let i=n.vueApp.config.errorHandler;if(i&&!i.__nuxt_default)try{i(e,t,r)}catch(e){console.error("[nuxt] Error in `app.config.errorHandler`",e)}}return v((e,t,r)=>{if(n.hooks.callHook(`vue:error`,e,t,r)?.catch(e=>console.error("[nuxt] Error in `vue:error` hook",e)),ze(navigator.userAgent))return Ze(n,e),!1;if(Ie(e)&&(e.fatal||e.unhandled))return n.runWithContext(()=>Ve(e)),Ho(),a(e,t,r),!1}),(e,t)=>(O(),R(ie,{onResolve:L(r)},{default:w(()=>[L(!1)?(O(),I(`div`,mf)):L(i)?(O(),R(L(ff),{key:1,error:L(i)},null,8,[`error`])):L(!1)?(O(),R(L(pf),{key:2,context:L(!1)},null,8,[`context`])):L(!1)?(O(),R(D(L(!1)),{key:3})):(O(),R(L(df),{key:4}))]),_:1},8,[`onResolve`]))}},gf;{let e;gf=async function(){if(e)return e;let t=!!(window.__NUXT__?.serverRendered??document.getElementById(`__NUXT_DATA__`)?.dataset.ssr===`true`),n=t?Ce(hf):xe(hf),i=l({vueApp:n});async function a(e){await i.callHook(`app:error`,e),i.payload.error||=nt(e)}a.__nuxt_default=!0,n.config.errorHandler=a,i.hook(`app:suspense:resolve`,()=>{n.config.errorHandler===a&&(n.config.errorHandler=void 0)}),!t&&s.id&&i.hook(`app:suspense:resolve`,()=>{document.getElementById(s.id)?.remove()});try{await m(i,Vo)}catch(e){a(e)}try{await i.hooks.callHook(`app:created`,n),await i.hooks.callHook(`app:beforeMount`,n),n.mount(r),await i.hooks.callHook(`app:mounted`,n),await S()}catch(e){a(e)}return n},e=gf().catch(e=>{throw c.NUXT_E1009({cause:e}),e})}export{nr as a,Oo as i,Cd as n,rr as o,js as r,On as s,Ad as t};
5
+ `),"data-locale-toggle":e.code,onClick:t=>L(_t)(e.code),onKeydown:[we(be(t=>L(gt)(e.code,s-1),[`alt`,`prevent`]),[`left`]),we(be(t=>L(gt)(e.code,s+1),[`alt`,`prevent`]),[`right`])],onDragstart:t=>r(t,e.code),onDragover:e=>i(e,s),onDrop:be(a,[`prevent`]),onDragend:o},[L(vd)?(O(),R(Cd,{key:0,code:e.code,class:x(!L(pt)(e.code)&&`grayscale op-50`)},null,8,[`code`,`class`])):(O(),I(`span`,{key:1,class:x([L(pt)(e.code)?`i-ph-eye-duotone`:`i-ph-eye-slash-duotone`,`text-[13px] op-70`]),"aria-hidden":`true`},null,2)),le(` `+C(e.code),1)],42,Ed))),128))],32),s[4]||=F(`div`,{class:`flex-auto`},null,-1),F(`span`,Dd,C(L(H)(`localeBar.shown`,{shown:L(ft).length,total:L(ot).length})),1),L(ft).length<L(ot).length?(O(),I(`button`,{key:0,type:`button`,class:`btn-ghost h-7`,onClick:s[1]||=(...e)=>L(ut)&&L(ut)(...e)},C(L(H)(`localeBar.showAll`)),1)):pe(``,!0),L(vt)?(O(),I(`button`,{key:1,type:`button`,class:`btn-ghost h-7`,onClick:s[2]||=(...e)=>L(xt)&&L(xt)(...e)},C(L(H)(`localeBar.resetOrder`)),1)):pe(``,!0),F(`button`,{type:`button`,class:`btn-icon h-7 w-7`,"aria-pressed":L(vd),title:L(H)(`localeBar.flags`),onClick:s[3]||=e=>vd.value=!L(vd)},[F(`span`,{class:x(L(vd)?`i-ph-flag-fill`:`i-ph-flag-duotone`)},null,2)],8,Od)],8,wd))}}),Ad=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},jd={},Md={viewBox:`0 0 662 662`,fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`};function Nd(e,t){return O(),I(`svg`,Md,[...t[0]||=[F(`path`,{d:`M349.284 19C436.277 19 513.752 56.3771 569.63 113.614C572.613 116.211 575.474 118.915 578.202 121.716L579.279 122.834C601.781 146.444 616.853 178.397 616.853 211.32C616.853 252.86 594.452 289.118 561.019 314.418L557.462 317.109L553.86 314.479C537.583 302.595 520.656 293.021 505.087 286.419L493.09 281.332L504.755 275.524C537.492 259.225 553.85 232.943 553.85 211.32C553.85 201.929 550.767 191.158 544.617 180.795C538.963 173.484 532.936 166.475 526.564 159.804C514.15 149.592 499.089 143.522 483.347 143.522C441.556 143.523 410.658 172.577 410.658 211.32C410.658 211.593 410.66 211.864 410.664 212.132L410.693 213.176C410.702 213.398 410.706 213.525 410.713 213.67L410.727 213.938C410.762 214.623 410.812 215.307 410.876 215.989L410.909 216.333C410.924 216.478 410.94 216.629 410.959 216.797L410.982 217.019V217.021C411.726 223.49 413.741 229.739 416.973 235.821L417.098 236.051L417.105 236.064L417.113 236.079C417.288 236.405 417.471 236.737 417.663 237.079L417.834 237.382L417.835 237.384C418.037 237.74 418.244 238.097 418.456 238.454L418.657 238.79L418.658 238.793C418.887 239.173 419.115 239.545 419.346 239.912L419.353 239.924C419.358 239.933 419.366 239.943 419.377 239.96L419.473 240.11L419.474 240.112C421.18 242.808 423.133 245.475 425.328 248.117C425.32 248.107 425.317 248.103 425.337 248.127L425.433 248.24L425.434 248.241C427.288 250.465 429.312 252.667 431.502 254.847L432.451 255.78L432.453 255.782C432.733 256.054 432.633 255.961 432.809 256.131C432.811 256.133 432.814 256.135 432.817 256.139C432.831 256.151 432.868 256.187 432.908 256.226L433.345 256.641L433.348 256.643C433.694 256.972 434.034 257.293 434.373 257.607L434.773 257.976L434.774 257.978C435.097 258.274 435.424 258.571 435.755 258.868L436.079 259.162C436.345 259.399 435.888 258.99 436.267 259.326C436.999 259.977 437.739 260.621 438.488 261.257L439.24 261.89L439.268 261.911C439.293 261.932 439.36 261.986 439.431 262.045C439.862 262.404 440.295 262.759 440.727 263.109C440.868 263.224 441.011 263.34 441.158 263.458C441.554 263.776 441.953 264.093 442.354 264.408C442.496 264.52 442.635 264.628 442.772 264.735C443.205 265.072 443.643 265.41 444.089 265.749C444.475 266.043 444.078 265.744 444.348 265.948C444.883 266.354 445.421 266.756 445.963 267.155L447.552 268.309C447.757 268.456 447.961 268.601 448.193 268.766C448.5 268.983 448.808 269.199 449.115 269.414C449.378 269.598 449.641 269.781 449.904 269.963C450.204 270.17 450.509 270.377 450.818 270.588C451.063 270.754 451.276 270.9 451.494 271.047C451.954 271.356 452.41 271.661 452.866 271.962C453.018 272.062 453.127 272.134 453.252 272.216C453.738 272.534 454.229 272.852 454.724 273.169C454.934 273.304 455.133 273.43 455.377 273.585C455.761 273.829 456.135 274.065 456.505 274.296C456.698 274.416 456.891 274.536 457.085 274.656C457.455 274.885 457.831 275.115 458.217 275.35C458.48 275.51 458.636 275.607 458.847 275.734C459.997 276.429 461.157 277.112 462.324 277.783C462.467 277.865 462.489 277.876 462.687 277.989C463.139 278.248 463.597 278.507 464.063 278.77L464.573 279.057L465.839 279.756C466.063 279.879 466.208 279.96 466.392 280.06C467.563 280.697 468.737 281.322 469.913 281.934C470.144 282.054 470.29 282.128 470.585 282.279C470.91 282.447 471.217 282.605 471.523 282.761C471.842 282.923 472.161 283.084 472.481 283.245C472.776 283.393 473.07 283.54 473.364 283.687C473.612 283.81 473.862 283.933 474.118 284.059C474.439 284.216 474.761 284.374 475.1 284.538C475.42 284.694 475.7 284.83 475.987 284.968C476.873 285.393 477.755 285.809 478.632 286.217L479.138 286.45C484.327 288.843 489.449 290.964 494.358 292.8C509.667 298.524 526.842 307.62 543.501 319.242C548.028 322.4 552.524 325.749 556.94 329.275C558.585 330.589 560.216 331.926 561.832 333.283L563.738 334.9C568.171 338.7 572.498 342.679 576.665 346.823C601.44 371.464 624.867 406.303 624.867 447.326C624.867 486.265 606.727 523.557 578.158 550.609L578.2 550.655L573.779 554.692C518.785 604.912 430.329 643.3 349.284 643.3C177.351 643.3 38.0002 503.53 38 331.15C38 158.771 177.351 19 349.284 19ZM349.284 82.1465C212.178 82.1465 101.002 193.614 101.002 331.15C101.002 425.452 153.272 507.509 230.351 549.775V296.352L159.471 337.391L127.982 282.697L293.353 186.949V573.803C311.325 577.953 330.045 580.153 349.284 580.153C366.832 580.153 385.152 577.774 403.445 573.458C358.263 546.202 330.902 494.837 330.902 447.326C330.902 411.131 348.63 376.016 372.35 348.838C379.326 340.844 387.058 333.256 395.402 326.263L399.018 323.233L402.815 326.031C418.226 337.386 434.611 346.416 449.826 353.354L459.863 357.93L450.566 363.869C439.226 371.114 428.691 380.192 419.769 390.415C402.406 410.31 393.904 431.234 393.904 447.326C393.904 466.854 402.431 487.587 416.888 503.451C431.299 519.266 451.26 529.88 473.885 529.88C498.082 529.88 520.115 519.296 536.147 503.503C552.228 487.663 561.864 466.995 561.864 447.326C561.864 430.618 551.765 411.02 532.288 391.648C513.247 372.711 489.527 358.392 472.336 351.964C472.168 351.901 471.979 351.829 471.796 351.759L471.194 351.531C453.823 344.949 433.353 335.213 414.14 321.946C405.535 316.005 397.137 309.325 389.365 301.861L389.363 301.859C382.682 295.438 376.316 288.291 370.659 280.409L370.658 280.408C370.644 280.389 370.629 280.367 370.597 280.323C370.569 280.285 370.526 280.227 370.481 280.164C369.264 278.459 368.081 276.721 366.937 274.952L366.936 274.951C356.003 258.052 348.439 238.027 347.713 214.969C347.675 213.76 347.655 212.543 347.655 211.32C347.655 156.559 379.052 114.169 422.575 93.7686C399.423 86.2397 374.822 82.1465 349.284 82.1465Z`},null,-1)]])}var Pd=Ad(jd,[[`render`,Nd]]);function Fd(e){return e===`dark`||e===`light`||e===`high-contrast`}function Id(e){let t=document.documentElement;t.classList.toggle(`dark`,e!==`light`),t.classList.toggle(`high-contrast`,e===`high-contrast`)}function Ld(){let e=new URLSearchParams(location.search).get(`theme`);Id(Fd(e)?e:matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`),window.addEventListener(`message`,e=>{e.source===window.parent&&e.source!==window&&e.data?.type===`x18n:theme`&&Fd(e.data.theme)&&Id(e.data.theme)})}var Rd=(e=`RouteProvider`)=>N({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean,routeRecord:Object},setup(e){let t=e.renderKey,n=e.route,r={};for(let i in e.route)Object.defineProperty(r,i,{get:()=>t===e.renderKey?e.route[i]:n[i],enumerable:!0});return k(Ge,_(r)),()=>e.vnode?P(e.vnode,{ref:e.vnodeRef}):e.vnode}}),zd=Rd(),Bd=new WeakMap,Vd=N({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:n,slots:r,expose:i}){let a=t(),o=j(),s=M(Ge,null),c=new Set,l;i({pageRef:o});let u=M(Je,null),d,f=a.deferHydration(),p=!1,m=!1,h,g=0;if(a.isHydrating){let e=a.hooks.hookOnce(`app:error`,f),t=B().beforeEach(()=>{e(),t()})}e.pageKey&&y(()=>e.pageKey,(e,t)=>{e!==t&&a.callHook(`page:loading:start`)});let _=!1;{let e=B().beforeResolve(()=>{_=!1});ee(()=>{e(),f()})}return()=>P(Fa,{name:e.name,route:e.route,...n},{default:Wd(t=>{let n=Hd(s,t.route,t.Component),i=s&&s.matched.length===t.route.matched.length;if(!t.Component)return d&&!i&&!Kd(d)?d:(f(),e.transition??t.route.meta.pageTransition??!1?La(Wa([e.transition,t.route.meta.pageTransition,!1]),null).default():void 0);if(d&&u&&!Kd(d)&&!u.isCurrent(t.route))return d;if(n&&s&&(!u||u?.isCurrent(s)))return(i||d)&&!Kd(d)?d:null;let v=Pr(t,e.pageKey),y=Ud(s,t.route,t.Component);!a.isHydrating&&l===v&&!y&&S(()=>{_||(_=!0,a.callHook(`page:loading:end`))}),p&&l!==v&&m&&g++,l=v;let b=!!(e.transition??t.route.meta.pageTransition??!1),x=b&&Wa([e.transition,t.route.meta.pageTransition,!1,{onAfterLeave(){Ka(a),a.callHook(`page:transition:finish`,t.Component)}}]),C=e.keepalive??t.route.meta.keepalive??!1,w=t.Component.type,T=w.name||w.__name;t.route.meta.keepalive&&T&&c.add(T);let E;if(c.size>0&&e.keepalive==null&&(!C||typeof C==`object`&&C&&C.include)){let e=typeof C==`object`&&C?{...C}:{},t=e.include?Array.isArray(e.include)?e.include:[e.include]:[];E={...e,include:Array.from(new Set([...t,...c]))}}else E=C;return d=La(b&&x,Fr(E,P(ie,{key:g,suspensible:!0,onPending:()=>{p=!0,b&&m&&Ga(a),h=a.callHook(`page:start`,t.Component)},onResolve:async()=>{p=!1,m=!0,a.isHydrating&&a[`~restoreDeferredRoute`]?.();try{await S(),a._route.sync?.(),await h,await a.callHook(`page:finish`,t.Component),!_&&!y&&(_=!0,await a.callHook(`page:loading:end`))}finally{f()}}},{default:()=>{let e={key:v||void 0,vnode:r.default?Gd(r.default,t):t.Component,route:t.route,renderKey:v||void 0,trackRootNodes:b,vnodeRef:o,routeRecord:void 0};if(!E)return P(zd,e);let n=w,i=Bd.get(n);return i||(i=Rd(T),Bd.set(n,i)),P(i,e)}}))).default(),d})})}});function Hd(e,t,n){if(!e)return!1;let r=t.matched.findIndex(e=>e.components?.default===n?.type);if(r===-1)return!1;let i=t.matched.slice(0,r).filter(e=>e.components?.default);if(!i.length)return!1;let a=e.matched.filter(e=>e.components?.default);return i.some((e,t)=>e.components?.default!==a[t]?.components?.default)||n&&Pr({route:t,Component:n})!==Pr({route:e,Component:n})}function Ud(e,t,n){return e?t.matched.findIndex(e=>e.components?.default===n?.type)<t.matched.length-1:!1}function Wd(e){let t=(t=>{let n=e(t);return Array.isArray(n)?n:n==null||!b(n)?[pe()]:[n]});return t._n=!0,t}function Gd(e,t){let n=e(t);return n.length===1?P(n[0]):P(de,void 0,n)}function Kd(e){return!!e&&(!!e.suspense?.isUnmounted||!!e.component?.isUnmounted)}var qd={class:`h-full flex flex-col bg-base color-base font-sans text-sm`},Jd={class:`shrink-0 border-b border-base`},Yd={class:`h-12 flex items-center gap-6 border-b border-base px-4`},Xd={class:`flex items-center gap-1`},Zd=[`title`],Qd={key:1,class:`flex items-center gap-2`},$d={class:`label`},ef=[`value`],tf={class:`flex-auto min-h-0 of-auto`},nf={class:`label`},rf={class:`text-2xl font-semibold tracking-tight`},af={class:`color-muted`},of=[`aria-label`],sf={key:0,class:`color-error`},cf={class:`btn-solid self-start`,type:`submit`},lf={key:1,class:`p-4 color-error`},uf={key:2,class:`p-4 label`},df=N({__name:`app`,setup(e){let t=z(()=>[{to:`/`,label:H(`nav.overview`)},{to:`/keys`,label:H(`nav.keys`)},{to:`/usages`,label:H(`nav.usages`)},{to:`/extract`,label:H(`nav.extract`)},{to:`/project`,label:H(`nav.project`)}]),n=j(),r=j(``),i=j(!1);async function a(){i.value=!await ud.value?.(r.value.trim())}async function o(){let e=await bt.value.project();yt.value=e,e.projects.some(e=>e.name===ct.value)||(ct.value=e.projects[0]?.name)}return Ld(),wt(),ce(async()=>{try{let e=await pd();bt.value=e,await o(),e.onChange(e=>{mt.value=e.changedKeys,lt.value++,o()})}catch(e){n.value=e instanceof Error?e.message:String(e)}}),(e,o)=>(O(),I(`div`,qd,[F(`header`,Jd,[F(`div`,Yd,[oe(L(Oo),{to:`/`,class:`focus-ring flex items-center gap-2.5 font-mono text-sm font-medium`},{default:w(()=>[oe(Pd,{class:`size-6 shrink-0`}),le(` `+C(L(H)(`app.name`)),1)]),_:1}),F(`nav`,Xd,[(O(!0),I(de,null,A(t.value,e=>(O(),R(L(Oo),{key:e.to,to:e.to,class:`focus-ring whitespace-nowrap px-2 py-1 font-mono text-xs uppercase tracking-[0.12em] color-muted transition-colors hover:color-base`,"active-class":e.to===`/`?``:`!color-base`,"exact-active-class":`!color-base`},{default:w(()=>[le(C(e.label),1)]),_:2},1032,[`to`,`active-class`]))),128))]),o[2]||=F(`div`,{class:`flex-auto`},null,-1),L(bt)?.mode===`static`?(O(),I(`span`,{key:0,class:`badge`,title:L(H)(`app.staticHint`)},C(L(H)(`app.static`)),9,Zd)):pe(``,!0),(L(yt)?.projects.length??0)>1?(O(),I(`label`,Qd,[F(`span`,$d,C(L(H)(`app.project`)),1),te(F(`select`,{"onUpdate:modelValue":o[0]||=e=>E(ct)?ct.value=e:null,class:`input font-mono text-xs`},[(O(!0),I(de,null,A(L(yt)?.projects,e=>(O(),I(`option`,{key:e.name,value:e.name},C(e.name),9,ef))),128))],512),[[ye,L(ct)]])])):pe(``,!0),oe(_d)]),L(ct)&&!L(ud)?(O(),R(kd,{key:0})):pe(``,!0)]),F(`main`,tf,[L(ud)?(O(),I(`form`,{key:0,class:`max-w-sm mx-auto mt-20 flex flex-col gap-4`,onSubmit:be(a,[`prevent`])},[F(`span`,nf,C(L(H)(`auth.label`)),1),F(`h1`,rf,C(L(H)(`auth.title`)),1),F(`p`,af,C(L(H)(`auth.hint`)),1),te(F(`input`,{"onUpdate:modelValue":o[1]||=e=>r.value=e,class:`input h-11 font-mono text-lg tracking-[0.4em]`,inputmode:`numeric`,autocomplete:`one-time-code`,"aria-label":L(H)(`auth.code`),autofocus:``},null,8,of),[[Se,r.value]]),i.value?(O(),I(`p`,sf,C(L(H)(`auth.rejected`)),1)):pe(``,!0),F(`button`,cf,C(L(H)(`auth.submit`)),1)],32)):n.value?(O(),I(`p`,lf,C(L(H)(`app.error`,{message:n.value})),1)):L(ct)?(O(),R(L(Vd),{key:3})):(O(),I(`p`,uf,C(L(H)(`app.loading`)),1))])]))}}),ff={__name:`nuxt-error-page`,props:{error:Object},setup(e){let t=e.error,n=Number(t.statusCode||500),r=n===404,i=t.statusMessage??(r?`Page Not Found`:`Internal Server Error`),a=t.message||t.toString(),o=ae(()=>V(()=>import(`./DWpOVjuS.js`),__vite__mapDeps([23,1,24,4,25]),import.meta.url)),s=ae(()=>V(()=>import(`./ChIAts7W.js`),__vite__mapDeps([26,1,24,4,27]),import.meta.url)),c=r?o:s;return(e,t)=>(O(),R(L(c),he(_e({status:L(n),statusText:L(i),statusCode:L(n),statusMessage:L(i),description:L(a),stack:L(void 0)})),null,16))}},pf=()=>null,mf={key:0},hf={__name:`nuxt-root`,setup(e){let n=t(),r=n.deferHydration();if(n.isHydrating){let e=n.hooks.hookOnce(`app:error`,r),t=B().beforeEach(()=>{e(),t()})}window.location.pathname,k(Ge,Qe()),n.hooks.callHookWith(e=>e.map(e=>e()),`vue:setup`,[]);let i=Fe();function a(e,t,r){let i=n.vueApp.config.errorHandler;if(i&&!i.__nuxt_default)try{i(e,t,r)}catch(e){console.error("[nuxt] Error in `app.config.errorHandler`",e)}}return v((e,t,r)=>{if(n.hooks.callHook(`vue:error`,e,t,r)?.catch(e=>console.error("[nuxt] Error in `vue:error` hook",e)),ze(navigator.userAgent))return Ze(n,e),!1;if(Ie(e)&&(e.fatal||e.unhandled))return n.runWithContext(()=>Ve(e)),Ho(),a(e,t,r),!1}),(e,t)=>(O(),R(ie,{onResolve:L(r)},{default:w(()=>[L(!1)?(O(),I(`div`,mf)):L(i)?(O(),R(L(ff),{key:1,error:L(i)},null,8,[`error`])):L(!1)?(O(),R(L(pf),{key:2,context:L(!1)},null,8,[`context`])):L(!1)?(O(),R(D(L(!1)),{key:3})):(O(),R(L(df),{key:4}))]),_:1},8,[`onResolve`]))}},gf;{let e;gf=async function(){if(e)return e;let t=!!(window.__NUXT__?.serverRendered??document.getElementById(`__NUXT_DATA__`)?.dataset.ssr===`true`),n=t?Ce(hf):xe(hf),i=l({vueApp:n});async function a(e){await i.callHook(`app:error`,e),i.payload.error||=nt(e)}a.__nuxt_default=!0,n.config.errorHandler=a,i.hook(`app:suspense:resolve`,()=>{n.config.errorHandler===a&&(n.config.errorHandler=void 0)}),!t&&s.id&&i.hook(`app:suspense:resolve`,()=>{document.getElementById(s.id)?.remove()});try{await m(i,Vo)}catch(e){a(e)}try{await i.hooks.callHook(`app:created`,n),await i.hooks.callHook(`app:beforeMount`,n),n.mount(r),await i.hooks.callHook(`app:mounted`,n),await S()}catch(e){a(e)}return n},e=gf().catch(e=>{throw c.NUXT_E1009({cause:e}),e})}export{nr as a,Oo as i,Cd as n,rr as o,js as r,On as s,Ad as t};