import{Sasot,iasit,sasst,aaslt,easU,casct,basG,gasZ,tasD,dasQ,fasj,hasB,jasft,oasAe,kasut,lasdt,maspt,naske,pasW,qasht,ras_t,uasmt,vasH,wasK,xasse,yasz,zasJ,Aashe}from"./chunks/index-bc2baea7.js";import{Sastt,IasM,gasze,fasJe,aasRe,bas_e,sasY,iasWe,casoe,PasYe,dasgt,easwt,hasyt}from"./chunks/singletons-be286767.js";import{RasXe,HasPe}from"./chunks/control-e7f5239e.js";functionvt(r,e){returnr==="/"||e==="ignore"?r:e==="never"?r.endsWith("/")?r.slice(0,-1):r:e==="always"&&!r.endsWith("/")?r+"/":r}functionbt(r){returnr.split("%25").map(decodeURI).join("%25")}functionEt(r){for(consteinr)r[e]=decodeURIComponent(r[e]);returnr}constkt=["href","pathname","search","searchParams","toString","toJSON"];functionRt(r,e){constn=newURL(r);for(constoofkt){leta=n[o];Object.defineProperty(n,o,{get(){returne(),a},enumerable:!0,configurable:!0})}return$t(n),n}function$t(r){Object.defineProperty(r,"hash",{get(){thrownewError("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}constSt="/__data.json";functionLt(r){returnr.replace(/\/$/,"")+St}functionIt(r){lete=5381;if(typeofr=="string"){letn=r.length;for(;n;)e=e*33^r.charCodeAt(--n)}elseif(ArrayBuffer.isView(r)){constn=newUint8Array(r.buffer,r.byteOffset,r.byteLength);leto=n.length;for(;o;)e=e*33^n[--o]}elsethrownewTypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}constme=window.fetch;window.fetch=(r,e)=>((rinstanceofRequest?r.method:(e==null?void0:e.method)||"GET")!=="GET"&&ie.delete(Ne(r)),me(r,e));constie=newMap;functionAt(r,e){constn=Ne(r,e),o=document.querySelector(n);if(o!=null&&o.textContent){const{body:a,...d}=JSON.parse(o.textContent),t=o.getAttribute("data-ttl");returnt&&ie.set(n,{body:a,init:d,ttl:1e3*Number(t)}),Promise.resolve(newResponse(a,d))}returnme(r,e)}functionPt(r,e,n){if(ie.size>0){consto=Ne(r,n),a=ie.get(o);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void0].includes(n==null?void0:n.cache))returnnewResponse(a.body,a.init);ie.delete(o)}}returnme(e,n)}functionNe(r,e){leto=`script[data-sveltekit-fetched][data-url=${JSON.stringify(rinstanceofRequest?r.url:r)}]`;returne!=null&&e.body&&(typeofe.body=="string"||ArrayBuffer.isView(e.body))&&(o+=`[data-hash="${It(e.body)}"]`),o}constOt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;functionNt(r){conste=[];return{pattern:r==="/"?/^\/$/:newRegExp(`^${Ut(r).map(o=>{consta=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(o);if(a)returne.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const d=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(o);if(d)return e.push({name:d[1],matcher:d[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!o)return;const t=o.split(/\[(.+?)\](?!\])/);return"/"+t.map((u,p)=>{if(p%2){if(u.startsWith("x+"))return $e(String.fromCharCode(parseInt(u.slice(2),16)));if(u.startsWith("u+"))return $e(String.fromCharCode(...u.slice(2).split("-").map(L=>parseInt(L,16))));const g=Ot.exec(u);if(!g)throw new Error(`Invalidparam:${u}.Paramsandmatchernamescanonlyhaveunderscoresandalphanumericcharacters.`);const[,y,N,k,F]=g;return e.push({name:k,matcher:F,optional:!!y,rest:!!N,chained:N?p===1&&t[0]==="":!1}),N?"(.*?)":y?"([^/]*)?":"([^/]+?)"}return $e(u)}).join("")}).join("")}/?$`),params:e}}functionTt(r){return!/^\([^)]+\)$/.test(r)}functionUt(r){returnr.slice(1).split("/").filter(Tt)}functionDt(r,e,n){consto={},a=r.slice(1);letd="";for(lett=0;t<e.length;t+=1){constf=e[t];letu=a[t];if(f.chained&&f.rest&&d&&(u=u?d+"/"+u:d),d="",u===void0)f.rest&&(o[f.name]="");else{if(f.matcher&&!n[f.matcher](u)){if(f.optional&&f.chained){letp=a.indexOf(void0,t);if(p===-1){constg=e[t+1];if(g!=null&&g.rest&&g.chained)d=u;elsereturn}for(;p>=t;)a[p]=a[p-1],p-=1;continue}return}o[f.name]=u}}if(!d)returno}function$e(r){returnr.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/