1import{b as e,o as t,v as n,x as r,y as i}from"./VCwxa7ww.js";import{H as a,J as o,pn as s,wn as c}from"./CoKk4mC0.js";import{t as l}from"./rxhDcyfF.js";var u=Symbol(`layout-meta`),ee=Symbol(`layout`),d=Symbol(`route`),f=r({docsBase:i,reporters:e});function p(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function m(e,t,n=`.`,r){if(!p(t))return m(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:p(a)&&p(i[t])?i[t]=m(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function te(e,t){try{return t in e}catch{return!1}}var h=class extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,t={}){super(e,t),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){let e={message:this.message,statusCode:b(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=y(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function g(e){if(typeof e==`string`)return new h(e);if(_(e))return e;let t=new h(e.message??e.statusMessage??``,{cause:e.cause||e});if(te(e,`stack`))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=b(e.statusCode,t.statusCode):e.status&&(t.statusCode=b(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;y(t.statusMessage)!==e&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function _(e){return e?.constructor?.__h3_error__===!0}var v=/[^\u0009\u0020-\u007E]/g;function y(e=``){return e.replace(v,``)}function b(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response,String.fromCharCode;var x=/#/g,S=/&/g,ne=/\//g,re=/=/g,ie=/\?/g,C=/\+/g,ae=/%5e/gi,oe=/%60/gi,se=/%7c/gi,ce=/%20/gi,le=/%2f/gi,ue=/%252f/gi;function w(e){return encodeURI(``+e).replace(se,`|`)}function T(e){return w(typeof e==`string`?e:JSON.stringify(e)).replace(C,`%2B`).replace(ce,`+`).replace(x,`%23`).replace(S,`%26`).replace(oe,"`").replace(ae,`^`).replace(ne,`%2F`)}function E(e){return T(e).replace(re,`%3D`)}function de(e){return w(e).replace(x,`%23`).replace(ie,`%3F`).replace(ue,`%2F`).replace(S,`%26`).replace(C,`%2B`)}function D(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function fe(e){return D(e.replace(le,`%252F`))}function pe(e){return D(e.replace(C,` `))}function me(e){return D(e.replace(C,` `))}function O(e=``){let t=Object.create(null);e[0]===`?`&&(e=e.slice(1));for(let n of e.split(`&`)){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=pe(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=me(e[2]||``);t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function he(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${E(e)}=${T(t)}`).join(`&`):`${E(e)}=${T(t)}`:E(e)}function k(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>he(t,e[t])).filter(Boolean).join(`&`)}var A=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,j=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,M=/^([/\\]\s*){2,}[^/\\]/,N=/^[\s\0]*(blob|data|javascript|vbscript):$/i,P=/\/$|\/\?|\/#/,F=/^\.?\//;function I(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?A.test(e):j.test(e)||(t.acceptRelative?M.test(e):!1)}function L(e){return!!e&&N.test(e)}function R(e=``,t){return t?P.test(e):e.endsWith(`/`)}function z(e=``,t){if(!t)return(R(e)?e.slice(0,-1):e)||`/`;if(!R(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);
1i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function B(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(R(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function ge(e,t){if(ve(t))return e;let n=z(t);if(!e.startsWith(n))return e;let r=e[n.length];return r&&r!==`/`&&r!==`?`?e:`/`+e.slice(n.length).replace(/^\/+/,``)}function _e(e,t){let n=H(e);return n.search=k({...O(n.search),...t}),Se(n)}function ve(e){return!e||e===`/`}function ye(e){return e&&e!==`/`}function be(e,...t){let n=e||``;for(let e of t.filter(e=>ye(e)))if(n){let t=e.replace(F,``);n=B(n)+t}else n=e;return n}function xe(e,t){return D(z(e))===D(z(t))}var V=Symbol.for(`ufo:protocolRelative`);function H(e=``,t){let n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=``]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:``,host:``,search:``,hash:``}}if(!I(e,{acceptRelative:!0}))return t?H(t+e):U(e);let[,r=``,i,a=``]=e.replace(/\\/g,`/`).match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o=``,s=``]=a.match(/([^#/?]*)(.*)?/)||[];r===`file:`&&(s=s.replace(/\/(?=[A-Za-z]:)/,``));let{pathname:c,search:l,hash:u}=U(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[V]:!r}}function U(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Se(e){let t=e.pathname||``,n=e.search?(e.search.startsWith(`?`)?``:`?`)+e.search:``,r=e.hash||``,i=e.auth?e.auth+`@`:``,a=e.host||``;return(e.protocol||e[V]?(e.protocol||``)+`//`:``)+i+a+t+n+r}var W=()=>t()?.$router,G=(()=>a()?o(d,t()._route):t()._route);function Ce(e){return e}var we=(e,n,r={})=>{let i=t(),a=r.global||typeof e!=`string`,o=typeof e==`string`?n:e;if(!o){f.NUXT_E2006({cause:e});return}a?i._middleware.global.push(o):i._middleware.named[e]=o},K=()=>{try{if(t()._processingMiddleware)return!0}catch{return!1}return!1},Te=(e,n)=>{e||=`/`;let r=typeof e==`string`?e:`path`in e?q(e):W().resolve(e).href;if(n?.open){let{protocol:e}=new URL(r,window.location.href);if(e&&L(e))throw f.NUXT_E2002({toPath:r,protocol:e});let{target:t=`_blank`,windowFeatures:i={}}=n.open,a=[];for(let[e,t]of Object.entries(i))t!==void 0&&a.push(`${e.toLowerCase()}=${t}`);return open(r,t,a.join(`, `)),Promise.resolve()}let i=I(r,{acceptRelative:!0}),a=n?.external||i;if(a){if(!n?.external)throw f.NUXT_E2001({toPath:r});let{protocol:e}=new URL(r,window.location.href);if(e&&L(e))throw f.NUXT_E2002({toPath:r,protocol:e})}let o=K();if(!a&&o){if(n?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=H(e);return{path:t,...n&&{query:O(n)},...r&&{hash:r},replace:!0}}return{...e,replace:!0}}return e}let s=W(),c=t();if(a)return c._scope.stop(),n?.replace?location.replace(r):location.href=r,o?c.isHydrating?new Promise(()=>{}):!1:Promise.resolve();let l=typeof e==`string`?J(e):e;return n?.replace?s.replace(l):s.push(l)},Ee=(e,n)=>{let r=t(),i=K();if(i||r.isHydrating){let t=W().beforeResolve(r=>{r.meta.layout=e,r.meta.layoutProps=n,t()})}if(!i){let t=G();t.meta.layout=e,t.meta.layoutProps=n;{let t=W().beforeResolve((r,i)=>{r.path===i.path?(r.meta.layout=e,r.meta.layoutProps=n):t()});s(t,!0)}}};function q(e){return _e(e.path||``,e.query||{})+(e.hash||``)}function J(e){let t=H(e);return de(fe(t.pathname))+t.search+t.hash}var Y=`__nuxt_error`,X=()=>c(t().payload,`error`),Z=e=>{let n=$(e);try{let e=X();t().hooks.callHook(`app:error`,n),e.value||=n}catch{throw n}return n},Q=(e,t)=>{let r=e.callHook(`app:error`,$(t));return n.NUXT_E1012({userAgent:navigator.userAgent,cause:t}),r},De=async(e,t)=>{if(l(navigator.userAgent)){await Q(e,t);return}await e.runWithContext(()=>Z(t))},Oe=async(e={})=>{let n=t(),r=X();n.callHook(`app:error:cleared`,e),e.redirect&&await W().replace(e.redirect),r.value=void 0},ke=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,$=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=g(e);return Object.defineProperty(t,Y,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t};export{z as C,d as D,ee as E,ge as S,u as T,xe as _,ke as a,O as b,we as c,Te as d,q as f,I as g,W as h,$ as i,Ce as l,G as m,De as n,Z as o,Ee as p,Oe as r,X as s,Q as t,J as u,L as v,f as w,B as x,be as y};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.