diff --git a/404.html b/404.html index 8b58673..d2b7c2a 100644 --- a/404.html +++ b/404.html @@ -5,7 +5,7 @@ HSK Chart - + diff --git a/assets/index-CnRJl3Hi.js b/assets/index-BYETHLv1.js similarity index 51% rename from assets/index-CnRJl3Hi.js rename to assets/index-BYETHLv1.js index 41be145..5795444 100644 --- a/assets/index-CnRJl3Hi.js +++ b/assets/index-BYETHLv1.js @@ -1,31 +1,31 @@ -(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))a(c);new MutationObserver(c=>{for(const h of c)if(h.type==="childList")for(const d of h.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&a(d)}).observe(document,{childList:!0,subtree:!0});function r(c){const h={};return c.integrity&&(h.integrity=c.integrity),c.referrerPolicy&&(h.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?h.credentials="include":c.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function a(c){if(c.ep)return;c.ep=!0;const h=r(c);fetch(c.href,h)}})();const G1=(u,s)=>u===s,Qr=Symbol("solid-proxy"),Nf=typeof Proxy=="function",z1=Symbol("solid-track"),Vr={equals:G1};let Bf=zf;const Rt=1,kr=2,Ff={owned:null,cleanups:null,context:null,owner:null},Su={};var oe=null;let Eu=null,Z1=null,he=null,Ie=null,Lt=null,ni=0;function zn(u,s){const r=he,a=oe,c=u.length===0,h=s===void 0?a:s,d=c?Ff:{owned:null,cleanups:null,context:h?h.context:null,owner:h},p=c?u:()=>u(()=>Xe(()=>Yn(d)));oe=d,he=null;try{return pt(p,!0)}finally{he=r,oe=a}}function Se(u,s){s=s?Object.assign({},Vr,s):Vr;const r={value:u,observers:null,observerSlots:null,comparator:s.equals||void 0},a=c=>(typeof c=="function"&&(c=c(r.value)),Gf(r,c));return[Kf.bind(r),a]}function Lf(u,s,r){const a=ri(u,s,!0,Rt);wn(a)}function Ue(u,s,r){const a=ri(u,s,!1,Rt);wn(a)}function Y1(u,s,r){Bf=j1;const a=ri(u,s,!1,Rt);a.user=!0,Lt?Lt.push(a):wn(a)}function fe(u,s,r){r=r?Object.assign({},Vr,r):Vr;const a=ri(u,s,!0,0);return a.observers=null,a.observerSlots=null,a.comparator=r.equals||void 0,wn(a),Kf.bind(a)}function X1(u){return u&&typeof u=="object"&&"then"in u}function Zn(u,s,r){let a,c,h;arguments.length===2&&typeof s=="object"||arguments.length===1?(a=!0,c=u,h=s||{}):(a=u,c=s,h=r||{});let d=null,p=Su,m=!1,b="initialValue"in h,T=typeof a=="function"&&fe(a);const S=new Set,[M,D]=(h.storage||Se)(h.initialValue),[v,y]=Se(void 0),[E,Z]=Se(void 0,{equals:!1}),[I,P]=Se(b?"ready":"unresolved");function O(N,Y,ce,$e){return d===N&&(d=null,$e!==void 0&&(b=!0),(N===p||Y===p)&&h.onHydrated&&queueMicrotask(()=>h.onHydrated($e,{value:Y})),p=Su,W(Y,ce)),Y}function W(N,Y){pt(()=>{Y===void 0&&D(()=>N),P(Y!==void 0?"errored":b?"ready":"unresolved"),y(Y);for(const ce of S.keys())ce.decrement();S.clear()},!1)}function H(){const N=Q1,Y=M(),ce=v();if(ce!==void 0&&!d)throw ce;return he&&!he.user&&N&&Lf(()=>{E(),d&&(N.resolved||S.has(N)||(N.increment(),S.add(N)))}),Y}function X(N=!0){if(N!==!1&&m)return;m=!1;const Y=T?T():a;if(Y==null||Y===!1){O(d,Xe(M));return}const ce=p!==Su?p:Xe(()=>c(Y,{value:M(),refetching:N}));return X1(ce)?(d=ce,"value"in ce?(ce.status==="success"?O(d,ce.value,void 0,Y):O(d,void 0,$u(ce.value),Y),ce):(m=!0,queueMicrotask(()=>m=!1),pt(()=>{P(b?"refreshing":"pending"),Z()},!1),ce.then($e=>O(ce,$e,void 0,Y),$e=>O(ce,void 0,$u($e),Y)))):(O(d,ce,void 0,Y),ce)}return Object.defineProperties(H,{state:{get:()=>I()},error:{get:()=>v()},loading:{get(){const N=I();return N==="pending"||N==="refreshing"}},latest:{get(){if(!b)return H();const N=v();if(N&&!d)throw N;return M()}}}),T?Lf(()=>X(!1)):X(!1),[H,{refetch:X,mutate:D}]}function Df(u){return pt(u,!1)}function Xe(u){if(he===null)return u();const s=he;he=null;try{return u()}finally{he=s}}function Uu(u,s,r){const a=Array.isArray(u);let c,h=r&&r.defer;return d=>{let p;if(a){p=Array(u.length);for(let b=0;bs(p,c,d));return c=p,m}}function qu(u){return oe===null||(oe.cleanups===null?oe.cleanups=[u]:oe.cleanups.push(u)),u}function Uf(){return oe}function qf(u,s){const r=oe,a=he;oe=u,he=null;try{return pt(s,!0)}catch(c){Gu(c)}finally{oe=r,he=a}}function J1(u){const s=he,r=oe;return Promise.resolve().then(()=>{he=s,oe=r;let a;return pt(u,!1),he=oe=null,a?a.done:void 0})}function Hf(u,s){const r=Symbol("context");return{id:r,Provider:ep(r),defaultValue:u}}function Hu(u){let s;return oe&&oe.context&&(s=oe.context[u.id])!==void 0?s:u.defaultValue}function Ku(u){const s=fe(u),r=fe(()=>Tu(s()));return r.toArray=()=>{const a=r();return Array.isArray(a)?a:a!=null?[a]:[]},r}let Q1;function Kf(){if(this.sources&&this.state)if(this.state===Rt)wn(this);else{const u=Ie;Ie=null,pt(()=>ei(this),!1),Ie=u}if(he){const u=this.observers?this.observers.length:0;he.sources?(he.sources.push(this),he.sourceSlots.push(u)):(he.sources=[this],he.sourceSlots=[u]),this.observers?(this.observers.push(he),this.observerSlots.push(he.sources.length-1)):(this.observers=[he],this.observerSlots=[he.sources.length-1])}return this.value}function Gf(u,s,r){let a=u.value;return(!u.comparator||!u.comparator(a,s))&&(u.value=s,u.observers&&u.observers.length&&pt(()=>{for(let c=0;c1e6)throw Ie=[],new Error},!1)),s}function wn(u){if(!u.fn)return;Yn(u);const s=ni;V1(u,u.value,s)}function V1(u,s,r){let a;const c=oe,h=he;he=oe=u;try{a=u.fn(s)}catch(d){return u.pure&&(u.state=Rt,u.owned&&u.owned.forEach(Yn),u.owned=null),u.updatedAt=r+1,Gu(d)}finally{he=h,oe=c}(!u.updatedAt||u.updatedAt<=r)&&(u.updatedAt!=null&&"observers"in u?Gf(u,a):u.value=a,u.updatedAt=r)}function ri(u,s,r,a=Rt,c){const h={fn:u,state:a,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:s,owner:oe,context:oe?oe.context:null,pure:r};return oe===null||oe!==Ff&&(oe.owned?oe.owned.push(h):oe.owned=[h]),h}function jr(u){if(u.state===0)return;if(u.state===kr)return ei(u);if(u.suspense&&Xe(u.suspense.inFallback))return u.suspense.effects.push(u);const s=[u];for(;(u=u.owner)&&(!u.updatedAt||u.updatedAt=0;r--)if(u=s[r],u.state===Rt)wn(u);else if(u.state===kr){const a=Ie;Ie=null,pt(()=>ei(u,s[0]),!1),Ie=a}}function pt(u,s){if(Ie)return u();let r=!1;s||(Ie=[]),Lt?r=!0:Lt=[],ni++;try{const a=u();return k1(r),a}catch(a){r||(Lt=null),Ie=null,Gu(a)}}function k1(u){if(Ie&&(zf(Ie),Ie=null),u)return;const s=Lt;Lt=null,s.length&&pt(()=>Bf(s),!1)}function zf(u){for(let s=0;s=0;s--)Yn(u.tOwned[s]);delete u.tOwned}if(u.owned){for(s=u.owned.length-1;s>=0;s--)Yn(u.owned[s]);u.owned=null}if(u.cleanups){for(s=u.cleanups.length-1;s>=0;s--)u.cleanups[s]();u.cleanups=null}u.state=0}function $u(u){return u instanceof Error?u:new Error(typeof u=="string"?u:"Unknown error",{cause:u})}function Gu(u,s=oe){throw $u(u)}function Tu(u){if(typeof u=="function"&&!u.length)return Tu(u());if(Array.isArray(u)){const s=[];for(let r=0;rc=Xe(()=>(oe.context={...oe.context,[u]:a.value},Ku(()=>a.children))),void 0),c}}const tp=Symbol("fallback");function Rf(u){for(let s=0;s1?[]:null;return qu(()=>Rf(h)),()=>{let m=u()||[],b=m.length,T,S;return m[z1],Xe(()=>{let D,v,y,E,Z,I,P,O,W;if(b===0)d!==0&&(Rf(h),h=[],a=[],c=[],d=0,p&&(p=[])),r.fallback&&(a=[tp],c[0]=zn(H=>(h[0]=H,r.fallback())),d=1);else if(d===0){for(c=new Array(b),S=0;S=I&&O>=I&&a[P]===m[O];P--,O--)y[O]=c[P],E[O]=h[P],p&&(Z[O]=p[P]);for(D=new Map,v=new Array(O+1),S=O;S>=I;S--)W=m[S],T=D.get(W),v[S]=T===void 0?-1:T,D.set(W,S);for(T=I;T<=P;T++)W=a[T],S=D.get(W),S!==void 0&&S!==-1?(y[S]=c[T],E[S]=h[T],p&&(Z[S]=p[T]),S=v[S],D.set(W,S)):h[T]();for(S=I;Su(s||{}))}function zr(){return!0}const Pu={get(u,s,r){return s===Qr?r:u.get(s)},has(u,s){return s===Qr?!0:u.has(s)},set:zr,deleteProperty:zr,getOwnPropertyDescriptor(u,s){return{configurable:!0,enumerable:!0,get(){return u.get(s)},set:zr,deleteProperty:zr}},ownKeys(u){return u.keys()}};function Lu(u){return(u=typeof u=="function"?u():u)?u:{}}function rp(){for(let u=0,s=this.length;u=0;p--){const m=Lu(u[p])[d];if(m!==void 0)return m}},has(d){for(let p=u.length-1;p>=0;p--)if(d in Lu(u[p]))return!0;return!1},keys(){const d=[];for(let p=0;p=0;d--){const p=u[d];if(!p)continue;const m=Object.getOwnPropertyNames(p);for(let b=m.length-1;b>=0;b--){const T=m[b];if(T==="__proto__"||T==="constructor")continue;const S=Object.getOwnPropertyDescriptor(p,T);if(!a[T])a[T]=S.get?{enumerable:!0,configurable:!0,get:rp.bind(r[T]=[S.get.bind(p)])}:S.value!==void 0?S:void 0;else{const M=r[T];M&&(S.get?M.push(S.get.bind(p)):S.value!==void 0&&M.push(()=>S.value))}}}const c={},h=Object.keys(a);for(let d=h.length-1;d>=0;d--){const p=h[d],m=a[p];m&&m.get?Object.defineProperty(c,p,m):c[p]=m?m.value:void 0}return c}function ip(u,...s){if(Nf&&Qr in u){const c=new Set(s.length>1?s.flat():s[0]),h=s.map(d=>new Proxy({get(p){return d.includes(p)?u[p]:void 0},has(p){return d.includes(p)&&p in u},keys(){return d.filter(p=>p in u)}},Pu));return h.push(new Proxy({get(d){return c.has(d)?void 0:u[d]},has(d){return c.has(d)?!1:d in u},keys(){return Object.keys(u).filter(d=>!c.has(d))}},Pu)),h}const r={},a=s.map(()=>({}));for(const c of Object.getOwnPropertyNames(u)){const h=Object.getOwnPropertyDescriptor(u,c),d=!h.get&&!h.set&&h.enumerable&&h.writable&&h.configurable;let p=!1,m=0;for(const b of s)b.includes(c)&&(p=!0,d?a[m][c]=h.value:Object.defineProperty(a[m],c,h)),++m;p||(d?r[c]=h.value:Object.defineProperty(r,c,h))}return[...a,r]}const up=u=>`Stale read from <${u}>.`;function Et(u){const s="fallback"in u&&{fallback:()=>u.fallback};return fe(np(()=>u.each,u.children,s||void 0))}function _n(u){const s=u.keyed,r=fe(()=>u.when,void 0,{equals:(a,c)=>s?a===c:!a==!c});return fe(()=>{const a=r();if(a){const c=u.children;return typeof c=="function"&&c.length>0?Xe(()=>c(s?a:()=>{if(!Xe(r))throw up("Show");return u.when})):c}return u.fallback},void 0,void 0)}const sp=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],op=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...sp]),fp=new Set(["innerHTML","textContent","innerText","children"]),lp=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),ap=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function cp(u,s){const r=ap[u];return typeof r=="object"?r[s]?r.$:void 0:r}const hp=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]);function dp(u,s,r){let a=r.length,c=s.length,h=a,d=0,p=0,m=s[c-1].nextSibling,b=null;for(;dT-p){const v=s[d];for(;p{c=h,s===document?u():ue(s,u(),s.firstChild?null:void 0,r)},a.owner),()=>{c(),s.textContent=""}}function be(u,s,r){let a;const c=()=>{const d=document.createElement("template");return d.innerHTML=u,d.content.firstChild},h=()=>(a||(a=c())).cloneNode(!0);return h.cloneNode=h,h}function Qt(u,s=window.document){const r=s[Of]||(s[Of]=new Set);for(let a=0,c=u.length;ac.call(u,r[1],h))}else u.addEventListener(s,r,typeof r!="function"&&r)}function Yf(u,s,r={}){const a=Object.keys(s||{}),c=Object.keys(r);let h,d;for(h=0,d=c.length;hc.children=Jn(u,s.children,c.children)),Ue(()=>typeof s.ref=="function"&&mp(s.ref,u)),Ue(()=>bp(u,s,r,!0,c,!0)),c}function mp(u,s,r){return Xe(()=>u(s,r))}function ue(u,s,r,a){if(r!==void 0&&!a&&(a=[]),typeof s!="function")return Jn(u,s,a,r);Ue(c=>Jn(u,s(),c,r),a)}function bp(u,s,r,a,c={},h=!1){s||(s={});for(const d in c)if(!(d in s)){if(d==="children")continue;c[d]=$f(u,d,null,c[d],r,h,s)}for(const d in s){if(d==="children")continue;const p=s[d];c[d]=$f(u,d,p,c[d],r,h,s)}}function Ap(u){return u.toLowerCase().replace(/-([a-z])/g,(s,r)=>r.toUpperCase())}function If(u,s,r){const a=s.trim().split(/\s+/);for(let c=0,h=a.length;cObject.defineProperty(u,"target",{configurable:!0,value:m}),d=()=>{const m=s[r];if(m&&!s.disabled){const b=s[`${r}Data`];if(b!==void 0?m.call(s,b,u):m.call(s,u),u.cancelBubble)return}return s.host&&typeof s.host!="string"&&!s.host._$host&&s.contains(u.target)&&h(s.host),!0},p=()=>{for(;d()&&(s=s._$host||s.parentNode||s.host););};if(Object.defineProperty(u,"currentTarget",{configurable:!0,get(){return s||document}}),u.composedPath){const m=u.composedPath();h(m[0]);for(let b=0;b{let p=s();for(;typeof p=="function";)p=p();r=Jn(u,p,r,a)}),()=>r;if(Array.isArray(s)){const p=[],m=r&&Array.isArray(r);if(Mu(p,s,r,c))return Ue(()=>r=Jn(u,p,r,a,!0)),()=>r;if(p.length===0){if(r=vn(u,r,a),d)return r}else m?r.length===0?Tf(u,p,a):dp(u,r,p):(r&&vn(u),Tf(u,p));r=p}else if(s.nodeType){if(Array.isArray(r)){if(d)return r=vn(u,r,a,s);vn(u,r,null,s)}else r==null||r===""||!u.firstChild?u.appendChild(s):u.replaceChild(s,u.firstChild);r=s}}return r}function Mu(u,s,r,a){let c=!1;for(let h=0,d=s.length;h=0;d--){const p=s[d];if(c!==p){const m=p.parentNode===u;!h&&!d?m?u.replaceChild(c,p):u.insertBefore(c,r):m&&p.remove()}else h=!0}}else u.insertBefore(c,r);return[c]}const Cp=!1;function Xf(){let u=new Set;function s(c){return u.add(c),()=>u.delete(c)}let r=!1;function a(c,h){if(r)return!(r=!1);const d={to:c,options:h,defaultPrevented:!1,preventDefault:()=>d.defaultPrevented=!0};for(const p of u)p.listener({...d,from:p.location,retry:m=>{m&&(r=!0),p.navigate(c,{...h,resolve:!1})}});return!d.defaultPrevented}return{subscribe:s,confirm:a}}let Nu;function zu(){(!window.history.state||window.history.state._depth==null)&&window.history.replaceState({...window.history.state,_depth:window.history.length-1},""),Nu=window.history.state._depth}zu();function Sp(u){return{...u,_depth:window.history.state&&window.history.state._depth}}function Ep(u,s){let r=!1;return()=>{const a=Nu;zu();const c=a==null?null:Nu-a;if(r){r=!1;return}c&&s(c)?(r=!0,window.history.go(-c)):u()}}const Lp=/^(?:[a-z0-9]+:)?\/\//i,Rp=/^\/+|(\/)\/+$/g,Jf="http://sr";function Jt(u,s=!1){const r=u.replace(Rp,"$1");return r?s||/^[?#]/.test(r)?r:"/"+r:""}function Zr(u,s,r){if(Lp.test(s))return;const a=Jt(u),c=r&&Jt(r);let h="";return!c||s.startsWith("/")?h=a:c.toLowerCase().indexOf(a.toLowerCase())!==0?h=a+c:h=c,(h||"/")+Jt(s,!h)}function Op(u,s){if(u==null)throw new Error(s);return u}function Ip(u,s){return Jt(u).replace(/\/*(\*.*)?$/g,"")+Jt(s)}function Qf(u){const s={};return u.searchParams.forEach((r,a)=>{s[a]=r}),s}function $p(u,s,r){const[a,c]=u.split("/*",2),h=a.split("/").filter(Boolean),d=h.length;return p=>{const m=p.split("/").filter(Boolean),b=m.length-d;if(b<0||b>0&&c===void 0&&!s)return null;const T={path:d?"":"/",params:{}},S=M=>r===void 0?void 0:r[M];for(let M=0;Ma===u;return s===void 0?!0:typeof s=="string"?r(s):typeof s=="function"?s(u):Array.isArray(s)?s.some(r):s instanceof RegExp?s.test(u):!1}function Tp(u){const[s,r]=u.pattern.split("/*",2),a=s.split("/").filter(Boolean);return a.reduce((c,h)=>c+(h.startsWith(":")?2:3),a.length-(r===void 0?0:1))}function Vf(u){const s=new Map,r=Uf();return new Proxy({},{get(a,c){return s.has(c)||qf(r,()=>s.set(c,fe(()=>u()[c]))),s.get(c)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(u())}})}function kf(u){let s=/(\/?\:[^\/]+)\?/.exec(u);if(!s)return[u];let r=u.slice(0,s.index),a=u.slice(s.index+s[0].length);const c=[r,r+=s[1]];for(;s=/^(\/\:[^\/]+)\?/.exec(a);)c.push(r+=s[1]),a=a.slice(s[0].length);return kf(a).reduce((h,d)=>[...h,...c.map(p=>p+d)],[])}const Pp=100,jf=Hf(),Zu=Hf(),Vn=()=>Op(Hu(jf)," and 'use' router primitives can be only used inside a Route."),Wp=()=>Hu(Zu)||Vn().base,Mp=u=>{const s=Wp();return fe(()=>s.resolvePath(u()))},Np=u=>{const s=Vn();return fe(()=>{const r=u();return r!==void 0?s.renderPath(r):r})},Bp=()=>Vn().navigatorFactory(),Yu=()=>Vn().location,Fp=()=>Vn().params;function Dp(u,s=""){const{component:r,preload:a,load:c,children:h,info:d}=u,p=!h||Array.isArray(h)&&!h.length,m={key:u,component:r,preload:a||c,info:d};return el(u.path).reduce((b,T)=>{for(const S of kf(T)){const M=Ip(s,S);let D=p?M:M.split("/*",1)[0];D=D.split("/").map(v=>v.startsWith(":")||v.startsWith("*")?v:encodeURIComponent(v)).join("/"),b.push({...m,originalPath:T,pattern:D,matcher:$p(D,!p,u.matchFilters)})}return b},[])}function Up(u,s=0){return{routes:u,score:Tp(u[u.length-1])*1e4-s,matcher(r){const a=[];for(let c=u.length-1;c>=0;c--){const h=u[c],d=h.matcher(r);if(!d)return null;a.unshift({...d,route:h})}return a}}}function el(u){return Array.isArray(u)?u:[u]}function tl(u,s="",r=[],a=[]){const c=el(u);for(let h=0,d=c.length;hd.score-h.score)}function Ou(u,s){for(let r=0,a=u.length;r{const b=u();try{return new URL(b,r)}catch{return console.error(`Invalid path ${b}`),m}},r,{equals:(m,b)=>m.href===b.href}),c=fe(()=>a().pathname),h=fe(()=>a().search,!0),d=fe(()=>a().hash),p=()=>"";return{get pathname(){return c()},get search(){return h()},get hash(){return d()},get state(){return s()},get key(){return p()},query:Vf(Uu(h,()=>Qf(a())))}}let Xt;function Hp(){return Xt}function Kp(u,s,r,a={}){const{signal:[c,h],utils:d={}}=u,p=d.parsePath||(ie=>ie),m=d.renderPath||(ie=>ie),b=d.beforeLeave||Xf(),T=Zr("",a.base||"");if(T===void 0)throw new Error(`${T} is not a valid base path`);T&&!c().value&&h({value:T,replace:!0,scroll:!1});const[S,M]=Se(!1);let D;const v=(ie,U)=>{U.value===y()&&U.state===Z()||(D===void 0&&M(!0),Xt=ie,D=U,J1(()=>{D===U&&(E(D.value),I(D.state),W[1]([]))}).finally(()=>{D===U&&Df(()=>{Xt=void 0,ie==="navigate"&&$e(D),M(!1),D=void 0})}))},[y,E]=Se(c().value),[Z,I]=Se(c().state),P=qp(y,Z),O=[],W=Se([]),H=fe(()=>typeof a.transformUrl=="function"?Ou(s(),a.transformUrl(P.pathname)):Ou(s(),P.pathname)),X=Vf(()=>{const ie=H(),U={};for(let qe=0;qeT,outlet:()=>null,resolvePath(ie){return Zr(T,ie)}};return Ue(Uu(c,ie=>v("native",ie),{defer:!0})),{base:N,location:P,params:X,isRouting:S,renderPath:m,parsePath:p,navigatorFactory:ce,matches:H,beforeLeave:b,preloadRoute:Ot,singleFlight:a.singleFlight===void 0?!0:a.singleFlight,submissions:W};function Y(ie,U,qe){Xe(()=>{if(typeof U=="number"){U&&(d.go?d.go(U):console.warn("Router integration does not support relative routing"));return}const Vt=!U||U[0]==="?",{replace:rt,resolve:Te,scroll:xn,state:ct}={replace:!1,resolve:!Vt,scroll:!0,...qe};let it;const kt=Te?ie.resolvePath(U):Zr(Vt&&P.pathname||"",U);if(kt===void 0)throw new Error(`Path '${U}' is not a routable path`);if(O.length>=Pp)throw new Error("Too many redirects");const kn=y();(kt!==kn||ct!==Z())&&(Cp||b.confirm(kt,qe)&&(O.push({value:kn,replace:rt,scroll:xn,state:Z()}),v("navigate",{value:kt,state:ct})))})}function ce(ie){return ie=ie||Hu(Zu)||N,(U,qe)=>Y(ie,U,qe)}function $e(ie){const U=O[0];U&&(h({...ie,replace:U.replace,scroll:U.scroll}),O.length=0)}function Ot(ie,U={}){const qe=Ou(s(),ie.pathname),Vt=Xt;Xt="preload";for(let rt in qe){const{route:Te,params:xn}=qe[rt];Te.component&&Te.component.preload&&Te.component.preload();const{preload:ct}=Te;U.preloadData&&ct&&qf(r(),()=>ct({params:xn,location:{pathname:ie.pathname,search:ie.search,hash:ie.hash,query:Qf(ie),state:null,key:""},intent:"preload"}))}Xt=Vt}}function Gp(u,s,r,a){const{base:c,location:h,params:d}=u,{pattern:p,component:m,preload:b}=a().route,T=fe(()=>a().path);m&&m.preload&&m.preload();const S=b?b({params:d,location:h,intent:Xt||"initial"}):void 0;return{parent:s,pattern:p,path:T,outlet:()=>m?te(m,{params:d,location:h,data:S,get children(){return r()}}):r(),resolvePath(D){return Zr(c.path(),D,T())}}}const zp=u=>s=>{const{base:r}=s,a=Ku(()=>s.children),c=fe(()=>tl(a(),s.base||""));let h;const d=Kp(u,c,()=>h,{base:r,singleFlight:s.singleFlight,transformUrl:s.transformUrl});return u.create&&u.create(d),te(jf.Provider,{value:d,get children(){return te(Zp,{routerState:d,get root(){return s.root},get preload(){return s.rootPreload||s.rootLoad},get children(){return[fe(()=>(h=Uf())&&null),te(Yp,{routerState:d,get branches(){return c()}})]}})}})};function Zp(u){const s=u.routerState.location,r=u.routerState.params,a=fe(()=>u.preload&&Xe(()=>{u.preload({params:r,location:s,intent:Hp()||"initial"})}));return te(_n,{get when(){return u.root},keyed:!0,get fallback(){return u.children},children:c=>te(c,{params:r,location:s,get data(){return a()},get children(){return u.children}})})}function Yp(u){const s=[];let r;const a=fe(Uu(u.routerState.matches,(c,h,d)=>{let p=h&&c.length===h.length;const m=[];for(let b=0,T=c.length;b{s[b]=D,m[b]=Gp(u.routerState,m[b-1]||u.routerState.base,Pf(()=>a()[b+1]),()=>u.routerState.matches()[b])}))}return s.splice(c.length).forEach(b=>b()),d&&p?d:(r=m[0],m)}));return Pf(()=>a()&&r)()}const Pf=u=>()=>te(_n,{get when(){return u()},keyed:!0,children:s=>te(Zu.Provider,{value:s,get children(){return s.outlet()}})}),Hn=u=>{const s=Ku(()=>u.children);return Wu(u,{get children(){return s()}})};function Xp([u,s],r,a){return[u,a?c=>s(a(c)):s]}function Jp(u){let s=!1;const r=c=>typeof c=="string"?{value:c}:c,a=Xp(Se(r(u.get()),{equals:(c,h)=>c.value===h.value&&c.state===h.state}),void 0,c=>(!s&&u.set(c),c));return u.init&&qu(u.init((c=u.get())=>{s=!0,a[1](r(c)),s=!1})),zp({signal:a,create:u.create,utils:u.utils})}function Qp(u,s,r){return u.addEventListener(s,r),()=>u.removeEventListener(s,r)}function Vp(u,s){const r=u&&document.getElementById(u);r?r.scrollIntoView():s&&window.scrollTo(0,0)}const kp=new Map;function jp(u=!0,s=!1,r="/_server",a){return c=>{const h=c.base.path(),d=c.navigatorFactory(c.base);let p={};function m(y){return y.namespaceURI==="http://www.w3.org/2000/svg"}function b(y){if(y.defaultPrevented||y.button!==0||y.metaKey||y.altKey||y.ctrlKey||y.shiftKey)return;const E=y.composedPath().find(H=>H instanceof Node&&H.nodeName.toUpperCase()==="A");if(!E||s&&!E.hasAttribute("link"))return;const Z=m(E),I=Z?E.href.baseVal:E.href;if((Z?E.target.baseVal:E.target)||!I&&!E.hasAttribute("state"))return;const O=(E.getAttribute("rel")||"").split(/\s+/);if(E.hasAttribute("download")||O&&O.includes("external"))return;const W=Z?new URL(I,document.baseURI):new URL(I);if(!(W.origin!==window.location.origin||h&&W.pathname&&!W.pathname.toLowerCase().startsWith(h.toLowerCase())))return[E,W]}function T(y){const E=b(y);if(!E)return;const[Z,I]=E,P=c.parsePath(I.pathname+I.search+I.hash),O=Z.getAttribute("state");y.preventDefault(),d(P,{resolve:!1,replace:Z.hasAttribute("replace"),scroll:!Z.hasAttribute("noscroll"),state:O?JSON.parse(O):void 0})}function S(y){const E=b(y);if(!E)return;const[Z,I]=E;typeof a=="function"&&(I.pathname=a(I.pathname)),p[I.pathname]||c.preloadRoute(I,{preloadData:Z.getAttribute("preload")!=="false"})}function M(y){const E=b(y);if(!E)return;const[Z,I]=E;typeof a=="function"&&(I.pathname=a(I.pathname)),!p[I.pathname]&&(p[I.pathname]=setTimeout(()=>{c.preloadRoute(I,{preloadData:Z.getAttribute("preload")!=="false"}),delete p[I.pathname]},200))}function D(y){const E=b(y);if(!E)return;const[,Z]=E;typeof a=="function"&&(Z.pathname=a(Z.pathname)),p[Z.pathname]&&(clearTimeout(p[Z.pathname]),delete p[Z.pathname])}function v(y){if(y.defaultPrevented)return;let E=y.submitter&&y.submitter.hasAttribute("formaction")?y.submitter.getAttribute("formaction"):y.target.getAttribute("action");if(!E)return;if(!E.startsWith("https://action/")){const I=new URL(E,Jf);if(E=c.parsePath(I.pathname+I.search),!E.startsWith(r))return}if(y.target.method.toUpperCase()!=="POST")throw new Error("Only POST forms are supported for Actions");const Z=kp.get(E);if(Z){y.preventDefault();const I=new FormData(y.target,y.submitter);Z.call({r:c,f:y.target},y.target.enctype==="multipart/form-data"?I:new URLSearchParams(I))}}Qt(["click","submit"]),document.addEventListener("click",T),u&&(document.addEventListener("mouseover",M),document.addEventListener("mouseout",D),document.addEventListener("focusin",S),document.addEventListener("touchstart",S)),document.addEventListener("submit",v),qu(()=>{document.removeEventListener("click",T),u&&(document.removeEventListener("mouseover",M),document.removeEventListener("mouseout",D),document.removeEventListener("focusin",S),document.removeEventListener("touchstart",S)),document.removeEventListener("submit",v)})}}function ev(u){const s=()=>{const a=window.location.pathname.replace(/^\/+/,"/")+window.location.search,c=window.history.state&&window.history.state._depth&&Object.keys(window.history.state).length===1?void 0:window.history.state;return{value:a+window.location.hash,state:c}},r=Xf();return Jp({get:s,set({value:a,replace:c,scroll:h,state:d}){c?window.history.replaceState(Sp(d),"",a):window.history.pushState(d,"",a),Vp(decodeURIComponent(window.location.hash.slice(1)),h),zu()},init:a=>Qp(window,"popstate",Ep(a,c=>{if(c&&c<0)return!r.confirm(c);{const h=s();return!r.confirm(h.value,{state:h.state})}})),create:jp(u.preload,u.explicitLinks,u.actionBase,u.transformUrl),utils:{go:a=>window.history.go(a),beforeLeave:r}})(u)}const tv=be("");function Yr(u){u=Wu({inactiveClass:"inactive",activeClass:"active"},u);const[,s]=ip(u,["href","state","class","activeClass","inactiveClass","end"]),r=Mp(()=>u.href),a=Np(r),c=Yu(),h=fe(()=>{const d=r();if(d===void 0)return[!1,!1];const p=Jt(d.split(/[?#]/,1)[0]).toLowerCase(),m=Jt(c.pathname).toLowerCase();return[u.end?p===m:m.startsWith(p+"/")||m===p,p===m]});return(()=>{const d=tv();return xp(d,Wu(s,{get href(){return a()||u.href},get state(){return JSON.stringify(u.state)},get classList(){return{...u.class&&{[u.class]:!0},[u.inactiveClass]:!h()[0],[u.activeClass]:h()[0],...s.classList}},link:"",get"aria-current"(){return h()[1]?"page":void 0}}),!1),d})()}function nv(u){const s=Bp(),r=Yu(),{href:a,state:c}=u,h=typeof a=="function"?a({navigate:s,location:r}):a;return s(h,{replace:!0,state:c}),null}const rv=be('