import{w as h,h as m,i as g,p as y,b}from"./B6orRp05.js";import{a as n}from"./DlDklb_P.js";import"./B-XSawTn.js";import{v,q as x}from"./CGuWR5z3.js";const S=Symbol("layout-meta"),R=Symbol("route"),d=()=>n()?.$router,U=()=>v()?x(R,n()._route):n()._route;function E(e){return e}const $=(e,r,t={})=>{const u=n(),s=t.global||typeof e!="string",o=r;if(!o){console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",e);return}s?u._middleware.global.push(o):u._middleware.named[e]=o},P=()=>{try{if(n()._processingMiddleware)return!0}catch{return!1}return!1},q=(e,r)=>{e||="/";const t=typeof e=="string"?e:"path"in e?L(e):d().resolve(e).href;if(r?.open){const{target:a="_blank",windowFeatures:l={}}=r.open,i=[];for(const[w,p]of Object.entries(l))p!==void 0&&i.push(`${w.toLowerCase()}=${p}`);return open(t,a,i.join(", ")),Promise.resolve()}const u=m(t,{acceptRelative:!0}),s=r?.external||u;if(s){if(!r?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:a}=new URL(t,window.location.href);if(a&&g(a))throw new Error(`Cannot navigate to a URL with '${a}' protocol.`)}const o=P();if(!s&&o){if(r?.replace){if(typeof e=="string"){const{pathname:a,search:l,hash:i}=y(e);return{path:a,...l&&{query:b(l)},...i&&{hash:i},replace:!0}}return{...e,replace:!0}}return e}const c=d(),f=n();return s?(f._scope.stop(),r?.replace?location.replace(t):location.href=t,o?f.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):r?.replace?c.replace(e):c.push(e)},A=e=>!1;function L(e){return h(e.path||"",e.query||{})+(e.hash||"")}export{S as L,R as P,d as a,A as b,$ as c,E as d,q as n,L as r,U as u};

AltStyle によって変換されたページ (->オリジナル) /