1import{o as De,s as yt}from"./DrpWKfpy.js";import{b as wt,H as le,S as Se,R as Re,t as vt}from"./D0iwhpLH.js";import{p as bt,e as kt,a as At,b as I}from"./CLLrWxnd.js";import{U as _e,bA as Et,bt as U,E as L,aw as P,A as $e}from"./D5fbGGQX.js";import{v as St}from"./DZGMxLSX.js";const q=[];function Te(e,t=_e){let n=null;const r=new Set;function a(o){if(Et(e,o)&&(e=o,n)){const l=!q.length;for(const f of r)f[1](),q.push(f,e);if(l){for(let f=0;f<q.length;f+=2)q[f][0](q[f+1]);q.length=0}}}function s(o){a(o(e))}function i(o,l=_e){const f=[o,l];return r.add(f),r.size===1&&(n=t(a,s)||_e),o(e),()=>{r.delete(f),r.size===0&&n&&(n(),n=null)}}return{set:a,update:s,subscribe:i}}new URL("sveltekit-internal://");function Rt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Tt(e){return e.split("%25").map(decodeURI).join("%25")}function It(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ye({href:e}){return e.split("#")[0]}function Ut(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return f=>(n(f),i[o](f));t();const l=Reflect.get(i,o);return typeof l=="function"?l.bind(i):l}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return t(),e[i]},enumerable:!0,configurable:!0});return a}function Lt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}const Pt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&K.delete(Ie(e)),Pt(e,t));const K=new Map;function Nt(e,t){const n=Ie(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&K.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=wt(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function Ct(e,t,n){if(K.size>0){const r=Ie(e,n),a=K.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);K.delete(r)}}return window.fetch(t,n)}function Ie(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${Lt(...a)}"]`}return r}function Ot({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[l,f,d]])=>{const{pattern:p,params:u}=bt(o),c={id:o,exec:h=>{const v=p.exec(h);if(v)return kt(v,u,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...f||[]].map(i),leaf:s(l)};return c.errors.length=c.layouts.length=Math.max(c.errors.length,c.layouts.length),c});function s(o){const l=o<0;return l&&(o=~o),[l,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function We(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function qe(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const Je="sveltekit:snapshot",Xe="sveltekit:scroll",Ze="sveltekit:states",xt="sveltekit:pageurl",V="sveltekit:history",W="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},fe=location.origin;function Qe(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function ue(){return{x:pageXOffset,y:pageYOffset}}function B(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Be={...j,"":j.hover};function et(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function tt(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=et(e)}}function be(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||de(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),i=r?.origin===fe&&e.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function te(e){let t=null,n=null,r=null,a=null,s=null,i=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=B(o,"preload-code")),a===null&&(a=B(o,"preload-data")),t===null&&(t=B(o,"keepfocus")),n===null&&(n=B(o,"noscroll")),s===null&&(s=B(o,"reload")),i===null&&(i=B(o,"replacestate")),o=et(o);function l(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Be[r??"off"],preload_data:Be[a??"off"],keepfocus:l(t),noscroll:l(n),reload:l(s),replace_state:l(i)}}function Ve(e){const t=Te(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function s(i){let o;return t.subscribe(l=>{(o===void 0||n&&l!==o)&&i(o=l)})}return{notify:r,set:a,subscribe:s}}const nt={v:()=>{}};function jt(){const{set:e,subscribe:t}=Te(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${At}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==St;return i&&(e(!0),nt.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function de(e,t,n){return e.origin!==fe||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function Tn(e){}function Dt(e){const t=qt(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let a=0;a<n.byteLength;a++)r.setUint8(a,t.charCodeAt(a));return n}const $t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/";function qt(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let a=0;a<e.length;a++)n<<=6,n|=$t.indexOf(e[a]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const Bt=-1,Vt=-2,Ft=-3,Mt=-4,Gt=-5,Ht=-6;function Kt(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(s,i=!1){if(s===Bt)return;if(s===Ft)return NaN;if(s===Mt)return 1/0;if(s===Gt)return-1/0;if(s===Ht)return-0;if(i||typeof s!="number")throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const l=o[0],f=t?.[l];if(f)return r[s]=f(a(o[1]));switch(l){case"Date":r[s]=new Date(o[1]);break;case"Set":const d=new Set;r[s]=d;for(let c=1;c<o.length;c+=1)d.add(a(o[c]));break;case"Map":const p=new Map;r[s]=p;for(let c=1;c<o.length;c+=2)p.set(a(o[c]),a(o[c+1]));break;case"RegExp":r[s]=new RegExp(o[1],o[2]);break;case"Object":r[s]=Object(o[1]);break;case"BigInt":r[s]=BigInt(o[1]);break;case"null":const u=Object.create(null);r[s]=u;for(let c=1;c<o.length;c+=2)u[o[c]]=a(o[c+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const c=globalThis[l],h=new c(a(o[1]));r[s]=o[2]!==void 0?h.subarray(o[2],o[3]):h;break}case"ArrayBuffer":{const c=o[1],h=Dt(c);r[s]=h;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const c=l.slice(9);r[s]=Temporal[c].from(o[1]);break}case"URL":{const c=new URL(o[1]);r[s]=c;break}case"URLSearchParams":{const c=new URLSearchParams(o[1]);r[s]=c;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(o.length);r[s]=l;for(let f=0;f<o.length;f+=1){const d=o[f];d!==Vt&&(l[f]=a(d))}}else{const l={};r[s]=l;for(const f in o){if(f==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const d=o[f];l[f]=a(d)}}return r[s]}return a(0)}const rt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...rt];const Yt=new Set([...rt]);[...Yt];function zt(e){return e.filter(t=>t!=null)}const Wt="x-sveltekit-invalidated",Jt="x-sveltekit-trailing-slash";function ne(e){return e instanceof le||e instanceof Se?e.status:500}function Xt(e){return e instanceof Se?e.text:"Internal Error"}let S,J,we;const Zt=De.toString().includes("$$")||/function \w+\(\) \{\}/.test(De.toString());Zt?(S={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},J={current:null},we={current:!1}):(S=new class{#e=U({});get data(){return L(this.#e)}set data(t){P(this.#e,t)}#t=U(null);get form(){return L(this.#t)}set form(t){P(this.#t,t)}#n=U(null);get error(){return L(this.#n)}set error(t){P(this.#n,t)}#r=U({});get params(){return L(this.#r)}set params(t){P(this.#r,t)}#a=U({id:null});get route(){return L(this.#a)}set route(t){P(this.#a,t)}#o=U({});get state(){return L(this.#o)}set state(t){P(this.#o,t)}#s=U(-1);get status(){return L(this.#s)}set status(t){P(this.#s,t)}#i=U(new URL("https://example.com"));get url(){return L(this.#i)}set url(t){P(this.#i,t)}},J=new class{#e=U(null);get current(){return L(this.#e)}set current(t){P(this.#e,t)}},we=new class{#e=U(!1);get current(){return L(this.#e)}set current(t){P(this.#e,t)}},nt.v=()=>we.current=!0);function Qt(e){Object.assign(S,e)}const en="/__data.json",tn=".html__data.json";function nn(e){return e.endsWith(".html")?e.replace(/\.html$/,tn):e.replace(/\/$/,"")+en}const Fe={spanContext(){return rn},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},rn={traceId:"",spanId:"",traceFlags:0},{tick:an}=yt,on=new Set(["icon","shortcut icon","apple-touch-icon"]),$=We(Xe)??{},X=We(Je)??{},x={url:Ve({}),page:Ve({}),navigating:Te(null),updated:jt()};function Ue(e){$[e]=ue()}function sn(e,t){let n=e+1;for(;$[n];)delete $[n],n+=1;for(n=t+1;X[n];)delete X[n],n+=1}function G(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}
1async function at(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(I||"/");e&&await e.update()}}function Me(){}let Le,ke,re,N,Ae,w;const ae=[],oe=[];let C=null;const ee=new Map,ot=new Set,cn=new Set,Y=new Set;let y={branch:[],error:null,url:null},Pe=!1,se=!1,Ge=!0,Z=!1,H=!1,st=!1,Ne=!1,it,E,T,D;const z=new Set,He=new Map;async function Pn(e,t,n){globalThis.__sveltekit_1n0i89v.data&&globalThis.__sveltekit_1n0i89v?.data,document.URL!==location.href&&(location.href=location.href),w=e,await e.hooks.init?.(),Le=Ot(e),N=document.documentElement,Ae=t,ke=e.nodes[0],re=e.nodes[1],ke(),re(),E=history.state?.[V],T=history.state?.[W],E||(E=T=Date.now(),history.replaceState({...history.state,[V]:E,[W]:T},""));const r=$[E];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await wn(Ae,n)):(await F({type:"enter",url:Qe(w.hash?bn(new URL(location.href)):location.href),replace_state:!0}),a()),yn()}function ln(){ae.length=0,Ne=!1}function ct(e){oe.some(t=>t?.snapshot)&&(X[e]=oe.map(t=>t?.snapshot?.capture()))}function lt(e){X[e]?.forEach((t,n)=>{oe[n]?.snapshot?.restore(t)})}function Ke(){Ue(E),qe(Xe,$),ct(T),qe(Je,X)}async function fn(e,t,n,r){let a;t.invalidateAll&&(C=null),await F({type:"goto",url:Qe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Ne=!0,a=[...He.keys()]),t.invalidate&&t.invalidate.forEach(_n)}}),t.invalidateAll&&$e().then($e).then(()=>{He.forEach(({resource:s},i)=>{a?.includes(i)&&s.refresh?.()})})}async function un(e){if(e.id!==C?.id){const t={};z.add(t),C={id:e.id,token:t,promise:dt({...e,preload:t}).then(n=>(z.delete(t),n.type==="loaded"&&n.state.error&&(C=null),n))}}return C.promise}async function ve(e){const t=(await pe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function ft(e,t,n){y=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(S,e.props.page),it=new w.root({target:t,props:{...e.props,stores:x,components:oe},hydrate:n,sync:!1}),lt(T),n){const a={from:null,to:{params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};Y.forEach(s=>s(a))}se=!0}function ie({url:e,params:t,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(I&&(e.pathname===I||e.pathname===I+"/"))o="always";else for(const c of n)c?.slash!==void 0&&(o=c.slash);e.pathname=Rt(e.pathname,o),e.search=e.search;const l={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:zt(n).map(c=>c.node.component),page:je(S)}};i!==void 0&&(l.props.form=i);let f={},d=!S,p=0;for(let c=0;c<Math.max(n.length,y.branch.length);c+=1){const h=n[c],v=y.branch[c];h?.data!==v?.data&&(d=!0),h&&(f={...f,...h.data},d&&(l.props[`data_${p}`]=f),p+=1)}return(!y.url||e.href!==y.url.href||y.error!==a||i!==void 0&&i!==S.form||d)&&(l.props.page={error:a,params:t,route:{id:s?.id??null},state:{},status:r,url:new URL(e),form:i??null,data:d?f:S.data}),l}async function Ce({loader:e,parent:t,url:n,params:r,route:a,server_data_node:s}){let i=null,o=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},f=await e();if(f.universal?.load){let d=function(...u){for(const c of u){const{href:h}=new URL(c,n);l.dependencies.add(h)}};const p={tracing:{enabled:!1,root:Fe,current:Fe}
1,route:new Proxy(a,{get:(u,c)=>(o&&(l.route=!0),u[c])}),params:new Proxy(r,{get:(u,c)=>(o&&l.params.add(c),u[c])}),data:s?.data??null,url:Ut(n,()=>{o&&(l.url=!0)},u=>{o&&l.search_params.add(u)},w.hash),async fetch(u,c){u instanceof Request&&(c={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:[...u.headers].length>0?u?.headers:void 0,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...c});const{resolved:h,promise:v}=ut(u,c,n);return o&&d(h.href),v},setHeaders:()=>{},depends:d,parent(){return o&&(l.parent=!0),t()},untrack(u){o=!1;try{return u()}finally{o=!0}}};i=await f.universal.load.call(null,p)??null}return{node:f,loader:e,server:s,universal:f.universal?.load?{type:"data",data:i,uses:l}:null,data:i??s?.data??null,slash:f.universal?.trailingSlash??s?.slash}}function ut(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=se?Ct(r,a.href,t):Nt(r,t);return{resolved:a,promise:s}}function Ye(e,t,n,r,a,s){if(Ne)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==y.params[i])return!0;for(const i of a.dependencies)if(ae.some(o=>o(new URL(i))))return!0;return!1}function Oe(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function dn(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function ze({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:je(S),constructors:[]}}}async function dt({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if(C?.id===e)return z.delete(C.token),C.promise;const{errors:i,layouts:o,leaf:l}=a,f=[...o,l];i.forEach(_=>_?.().catch(()=>{})),f.forEach(_=>_?.[1]().catch(()=>{}));let d=null;const p=y.url?e!==ce(y.url):!1,u=y.route?a.id!==y.route.id:!1,c=dn(y.url,n);let h=!1;const v=f.map((_,g)=>{const b=y.branch[g],k=!!_?.[0]&&(b?.loader!==_[1]||Ye(h,u,p,c,b.server?.uses,r));return k&&(h=!0),k});if(v.some(Boolean)){try{d=await gt(n,v)}catch(_){const g=await M(_,{url:n,params:r,route:{id:e}});return z.has(s)?ze({error:g,url:n,params:r,route:a}):he({status:ne(_),error:g,url:n,route:a})}if(d.type==="redirect")return d}const A=d?.nodes;let m=!1;const O=f.map(async(_,g)=>{if(!_)return;const b=y.branch[g],k=A?.[g];if((!k||k.type==="skip")&&_[1]===b?.loader&&!Ye(m,u,p,c,b.universal?.uses,r))return b;if(m=!0,k?.type==="error")throw k;return Ce({loader:_[1],url:n,params:r,route:a,parent:async()=>{const ge={};for(let me=0;me<g;me+=1)Object.assign(ge,(await O[me])?.data);return ge},server_data_node:Oe(k===void 0&&_[0]?{type:"skip"}:k??null,_[0]?b?.server:void 0)})});for(const _ of O)_.catch(()=>{});const R=[];for(let _=0;_<f.length;_+=1)if(f[_])try{R.push(await O[_])}catch(g){if(g instanceof Re)return{type:"redirect",location:g.location};if(z.has(s))return ze({error:await M(g,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let b=ne(g),k;if(A?.includes(g))b=g.status??b,k=g.error;else if(g instanceof le)k=g.body;else{if(await x.updated.check())return await at(),await G(n);k=await M(g,{params:r,url:n,route:{id:a.id}})}const Q=await hn(_,R,i);return Q?ie({url:n,params:r,branch:R.slice(0,Q.idx).concat(Q.node),status:b,error:k,route:a}):await pt(n,{id:a.id},k,b)}else R.push(void 0);return ie({url:n,params:r,branch:R,status:200,error:null,route:a,form:t?void 0:null})}async function hn(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function he({status:e,error:t,url:n,route:r}){const a={};let s=null;if(w.server_loads[0]===0)try{const o=await gt(n,[!0]);if(o.type!=="data"||o.nodes[0]&&o.nodes[0].type!=="data")throw 0;s=o.nodes[0]??null}catch{(n.origin!==fe||n.pathname!==location.pathname||Pe)&&await G(n)}try{const o=await Ce({loader:ke,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Oe(s)}),l={node:await re(),loader:re,universal:null,server:null,data:null};return ie({url:n,params:a,branch:[o,l],status:e,error:t,route:null})}catch(o){if(o instanceof Re)return fn(new URL(o.location,location.href),{},0);throw o}}async function pn(e){const t=e.href;if(ee.has(t))return ee.get(t);let n;try{const r=(async()=>
1{let a=await w.hooks.reroute({url:new URL(e),fetch:async(s,i)=>ut(s,i,e).promise})??e;if(typeof a=="string"){const s=new URL(e);w.hash?s.hash=a:s.pathname=a,a=s}return a})();ee.set(t,r),n=await r}catch{ee.delete(t);return}return n}async function pe(e,t){if(e&&!de(e,I,w.hash)){const n=await pn(e);if(!n)return;const r=gn(n);for(const a of Le){const s=a.exec(r);if(s)return{id:ce(e),invalidating:t,route:a,params:It(s),url:e}}}}function gn(e){return Tt(w.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(I.length))||"/"}function ce(e){return(w.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ht({url:e,type:t,intent:n,delta:r,event:a}){let s=!1;const i=xe(y,n,e,t);r!==void 0&&(i.navigation.delta=r),a!==void 0&&(i.navigation.event=a);const o={...i.navigation,cancel:()=>{s=!0,i.reject(new Error("navigation cancelled"))}};return Z||ot.forEach(l=>l(o)),s?null:i}async function F({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:l={},accept:f=Me,block:d=Me,event:p}){const u=D;D=l;const c=await pe(t,!1),h=e==="enter"?xe(y,c,t,e):ht({url:t,type:e,delta:n?.delta,intent:c,event:p});if(!h){d(),D===l&&(D=u);return}const v=E,A=T;f(),Z=!0,se&&h.navigation.type!=="enter"&&x.navigating.set(J.current=h.navigation);let m=c&&await dt(c);if(!m){if(de(t,I,w.hash))return await G(t,s);m=await pt(t,{id:null},await M(new Se(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=c?.url||t,D!==l)return h.reject(new Error("navigation aborted")),!1;if(m.type==="redirect"){if(o<20){await F({type:e,url:new URL(m.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i,redirect_count:o+1,nav_token:l}),h.fulfil(void 0);return}m=await he({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else m.props.page.status>=400&&await x.updated.check()&&(await at(),await G(t,s));if(ln(),Ue(v),ct(A),m.props.page.url.pathname!==t.pathname&&(t.pathname=m.props.page.url.pathname),i=n?n.state:i,!n){const g=s?0:1,b={[V]:E+=g,[W]:T+=g,[Ze]:i};(s?history.replaceState:history.pushState).call(history,b,"",t),s||sn(E,T)}if(C=null,m.props.page.state=i,se){const g=(await Promise.all(Array.from(cn,b=>b(h.navigation)))).filter(b=>typeof b=="function");if(g.length>0){let b=function(){g.forEach(k=>{Y.delete(k)})};g.push(b),g.forEach(k=>{Y.add(k)})}y=m.state,m.props.page&&(m.props.page.url=t),it.$set(m.props),Qt(m.props.page),st=!0}else ft(m,Ae,!1);const{activeElement:O}=document;await an();const R=n?n.scroll:a?ue():null;if(Ge){const g=t.hash&&document.getElementById(_t(t));R?scrollTo(R.x,R.y):g?g.scrollIntoView():scrollTo(0,0)}const _=document.activeElement!==O&&document.activeElement!==document.body;!r&&!_&&vn(t),Ge=!0,m.props.page&&Object.assign(S,m.props.page),Z=!1,e==="popstate"&<(T),h.fulfil(void 0),Y.forEach(g=>g(h.navigation)),x.navigating.set(J.current=null)}async function pt(e,t,n,r,a){return e.origin===fe&&e.pathname===location.pathname&&!Pe?await he({status:r,error:n,url:e,route:t}):await G(e,a)}function mn(){let e,t,n;N.addEventListener("mousemove",o=>{const l=o.target;clearTimeout(e),e=setTimeout(()=>{s(l,j.hover)},20)});function r(o){o.defaultPrevented||s(o.composedPath()[0],j.tap)}N.addEventListener("mousedown",r),N.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const l of o)l.isIntersecting&&(ve(new URL(l.target.href)),a.unobserve(l.target))},{threshold:0});async function s(o,l){const f=tt(o,N),d=f===t&&l>=n;if(!f||d)return;const{url:p,external:u,download:c}=be(f,I,w.hash);if(u||c)return;const h=te(f),v=p&&ce(y.url)===ce(p);if(!(h.reload||v))if(l<=h.preload_data){t=f,n=j.tap;const A=await pe(p,!1);if(!A)return;un(A)}else l<=h.preload_code&&(t=f,n=l,ve(p))}function i(){a.disconnect();for(const o of N.querySelectorAll("a")){const{url:l,external:f,download:d}=be(o,I,w.hash);if(f||d)continue;const p=te(o);p.reload||(p.preload_code===j.viewport&&a.observe(o),p.preload_code===j.eager&&ve(l))}}Y.add(i),i()}function M(e,t){if(e instanceof le)return e.body;const n=ne(e),r=Xt(e);return w.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}
1function _n(e){if(typeof e=="function")ae.push(e);else{const{href:t}=new URL(e,location.href);ae.push(n=>n.href===t)}}function yn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Ke(),!Z){const r=xe(y,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};ot.forEach(s=>s(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ke()}),navigator.connection?.saveData||mn(),N.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=tt(t.composedPath()[0],N);if(!n)return;const{url:r,external:a,target:s,download:i}=be(n,I,w.hash);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const o=te(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||i)return;const[f,d]=(w.hash?r.hash.replace(/^#/,""):r.href).split("#"),p=f===ye(location);if(a||o.reload&&(!p||!d)){ht({url:r,type:"link",event:t})?Z=!0:t.preventDefault();return}if(d!==void 0&&p){const[,u]=y.url.href.split("#");if(u===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const c=n.ownerDocument.getElementById(decodeURIComponent(d));c&&(c.scrollIntoView(),c.focus())}return}if(H=!0,Ue(E),e(r),!o.replace_state)return;H=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await F({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href,event:t})}),N.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const i=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(de(i,I,!1))return;const o=t.target,l=te(o);if(l.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(o),d=r?.getAttribute("name");d&&f.append(d,r?.getAttribute("value")??""),i.search=new URLSearchParams(f).toString(),F({type:"form",url:i,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??i.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ee){if(t.state?.[V]){const n=t.state[V];if(D={},n===E)return;const r=$[n],a=t.state[Ze]??{},s=new URL(t.state[xt]??location.href),i=t.state[W],o=y.url?ye(location)===ye(y.url):!1;if(i===T&&(st||o)){a!==S.state&&(S.state=a),e(s),$[E]=ue(),r&&scrollTo(r.x,r.y),E=n;return}const f=n-E;await F({type:"popstate",url:s,popped:{state:a,scroll:r,delta:f},accept:()=>{E=n,T=i},block:()=>{history.go(-f)},nav_token:D,event:t})}else if(!H){const n=new URL(location.href);e(n),w.hash&&location.reload()}}}),addEventListener("hashchange",()=>{H&&(H=!1,history.replaceState({...history.state,[V]:++E,[W]:T},"",location.href))});for(const t of document.querySelectorAll("link"))on.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&x.navigating.set(J.current=null)});function e(t){y.url=S.url=t,x.page.set(je(S)),x.page.notify()}}async function wn(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:l}){Pe=!0;const f=new URL(location.href);let d;({params:a={},route:s={id:null}}=await pe(f,!1)||{}),d=Le.find(({id:c})=>
1c===s.id);let p,u=!0;try{const c=r.map(async(v,A)=>{const m=o[A];return m?.uses&&(m.uses=mt(m.uses)),Ce({loader:w.nodes[v],url:f,params:a,route:s,parent:async()=>{const O={};for(let R=0;R<A;R+=1)Object.assign(O,(await c[R]).data);return O},server_data_node:Oe(m)})}),h=await Promise.all(c);if(d){const v=d.layouts;for(let A=0;A<v.length;A++)v[A]||h.splice(A,0,void 0)}p=ie({url:f,params:a,branch:h,status:t,error:n,form:l,route:d??null})}catch(c){if(c instanceof Re){await G(new URL(c.location,location.href));return}p=await he({status:ne(c),error:await M(c,{url:f,params:a,route:s}),url:f,route:s}),e.textContent="",u=!1}p.props.page&&(p.props.page.state={}),ft(p,e,u)}async function gt(e,t){const n=new URL(e);n.pathname=nn(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(Jt,"1"),n.searchParams.append(Wt,t.map(s=>s?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let s;throw a.headers.get("content-type")?.includes("application/json")?s=await a.json():a.status===404?s="Not Found":a.status===500&&(s="Internal Error"),new le(a.status,s)}return new Promise(async s=>{const i=new Map,o=a.body.getReader();function l(d){return Kt(d,{...w.decoders,Promise:p=>new Promise((u,c)=>{i.set(p,{fulfil:u,reject:c})})})}let f="";for(;;){const{done:d,value:p}=await o.read();if(d&&!f)break;for(f+=!p&&f?` 2`:vt.decode(p,{stream:!0});;){const u=f.indexOf(` 3`);if(u===-1)break;const c=JSON.parse(f.slice(0,u));if(f=f.slice(u+1),c.type==="redirect")return s(c);if(c.type==="data")c.nodes?.forEach(h=>{h?.type==="data"&&(h.uses=mt(h.uses),h.data=l(h.data))}),s(c);else if(c.type==="chunk"){const{id:h,data:v,error:A}=c,m=i.get(h);i.delete(h),A?m.reject(l(A)):m.fulfil(l(v))}}}})}function mt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Ee=!1;function vn(e){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const n=_t(e);if(n&&document.getElementById(n)){const{x:a,y:s}=ue();setTimeout(()=>{const i=history.state;Ee=!0,location.replace(`#${n}`),w.hash&&location.replace(e.hash),history.replaceState(i,"",e.hash),scrollTo(a,s),Ee=!1})}else{const a=document.body,s=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),s!==null?a.setAttribute("tabindex",s):a.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s<r.rangeCount;s+=1)a.push(r.getRangeAt(s));setTimeout(()=>{if(r.rangeCount===a.length){for(let s=0;s<r.rangeCount;s+=1){const i=a[s],o=r.getRangeAt(s);if(i.commonAncestorContainer!==o.commonAncestorContainer||i.startContainer!==o.startContainer||i.endContainer!==o.endContainer||i.startOffset!==o.startOffset||i.endOffset!==o.endOffset)return}r.removeAllRanges()}})}}}function xe(e,t,n,r){let a,s;const i=new Promise((l,f)=>{a=l,s=f});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:r,complete:i},fulfil:a,reject:s}}function je(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function bn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function _t(e){let t;if(w.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Pn as a,Tn as l,S as p,x as s};
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.