1import{a as e,b as t,v as n,x as r,y as i}from"./ANLCaoUj.js";import{M as a,N as o,O as s,Tt as c,ft as l,j as u,pt as d,vt as f}from"./uRKtOFy3.js";import{i as p,l as m,m as h,o as g,r as _,t as v,u as y}from"./DMxBbqNJ.js";import"./BW3xJdEx.js";function b(e){return Array.isArray(e)?e:[e]}var x=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;function S(e){return x.test(e)}import.meta.url.replace(/\/app\/.*$/,`/`);var C=Symbol(`layout-meta`),w=Symbol(`layout`),T=Symbol(`route`),E=r({docsBase:i,reporters:t});function D(e,t){try{return t in e}catch{return!1}}var O=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:N(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=M(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function k(e){if(typeof e==`string`)return new O(e);if(A(e))return e;let t=new O(e.message??e.statusMessage??``,{cause:e.cause||e});if(D(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=N(e.statusCode,t.statusCode):e.status&&(t.statusCode=N(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;M(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 A(e){return e?.constructor?.__h3_error__===!0}var j=/[^\u0009\u0020-\u007E]/g;function M(e=``){return e.replace(j,``)}function N(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response,a(),d();var P=()=>e()?.$router;function F(e){let t=e.scope,n=l();for(;n;){if(n===t)return!0;n=n.parent}return!1}var I=(()=>{if(u()){let t=s();if(!t||F(t))return o(T,e()._route)}return e()._route});function L(e){return e}var R=()=>{try{if(e()._processingMiddleware)return!0}catch{return!1}return!1},z=(t,n)=>{t||=`/`;let r=typeof t==`string`?t:`path`in t?V(t):P().resolve(t).href;if(n?.open){let{protocol:e}=new URL(r,window.location.href);if(e&&g(e))throw E.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=p(r,{acceptRelative:!0}),a=n?.external||i;if(a){if(!n?.external)throw E.NUXT_E2001({toPath:r});let{protocol:e}=new URL(r,window.location.href);if(e&&g(e))throw E.NUXT_E2002({toPath:r,protocol:e})}let o=R();if(!a&&o){if(n?.replace){if(typeof t==`string`){let{pathname:e,search:n,hash:r}=y(t);return{path:e,...n&&{query:m(n)},...r&&{hash:r},replace:!0}}return{...t,replace:!0}}return t}let s=P(),c=e();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 t==`string`?H(t):t;return n?.replace?s.replace(l):s.push(l)},B=(t,n)=>{let r=e(),i=R();if(i||r.isHydrating){let e=P().beforeResolve(r=>{r.meta.layout=t,r.meta.layoutProps=n,e()})}if(!i){let e=I();e.meta.layout=t,e.meta.layoutProps=n;{let e=P().beforeResolve((r,i)=>{r.path===i.path?(r.meta.layout=t,r.meta.layoutProps=n):e()});f(e,!0)}}};function V(e){return h(e.path||``,e.query||{})+(e.hash||``)}function H(e){let t=y(e);return _(v(t.pathname))+t.search+t.hash}d();var U=`__nuxt_error`,W=()=>c(e().payload,`error`),G=t=>{let n=X(t);try{let t=W();e().hooks.callHook(`app:error`,n),t.value||=n}catch{throw n}return n},K=(e,t)=>{let r=e.callHook(`app:error`,X(t));return n.NUXT_E1012({userAgent:navigator.userAgent,cause:t}),r},q=async(e,t)=>{if(S(navigator.userAgent)){await K(e,t);return}await e.runWithContext(()=>G(t))},J=async(t={})=>{let n=e(),r=W();n.callHook(`app:error:cleared`,t),t.redirect&&await P().replace(t.redirect),r.value=void 0},Y=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,X=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=k(e);return Object.defineProperty(t,U,{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{w as _,Y as a,b,L as c,V as d,B as f,C as g,E as h,X as i,H as l,P as m,q as n,G as o,I as p,J as r,W as s,K as t,z as u,T as v,S 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.