@deslop/auth 0.1.1357 → 0.1.1364
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{(home)-lrbFN1uI.js → (home)-pFFHaca4.js} +1 -1
- package/dist/client/assets/{app-bar-DDdCfooN.js → app-bar-DsHRTR2c.js} +2 -2
- package/dist/client/assets/{auth-tE-9OJTi.js → auth-CiBso9-1.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DXOlKPMH.js → dropdown-menu-CEOlArzC.js} +1 -1
- package/dist/client/assets/effect-CfZLtXM0.js +17 -0
- package/dist/client/assets/{format-C1NNiZNt.js → format-DhqC219q.js} +1 -1
- package/dist/client/assets/{index-Bq98Mq6W.js → index-ChVaNlz0.js} +3 -3
- package/dist/client/assets/{marks-Bt--ETSD.js → marks-DVv3lWZ2.js} +1 -1
- package/dist/client/assets/{people-sXIMHuMW.js → people-DVpTTprn.js} +1 -1
- package/dist/client/assets/{route-DgC9Q8hG.js → route-DVe67awL.js} +1 -1
- package/dist/client/index.html +3 -3
- package/dist/server.js +9264 -11655
- package/package.json +2 -2
- package/dist/client/assets/effect-DGbTO7QP.js +0 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./rolldown-runtime-XKyaHtl9.js";import{a as e,o as t,r as n}from"./react-DLGSahv8.js";import{Br as r,Cn as i,Dr as a,Lr as o,Nn as s,Rr as c,Sn as l,St as u,Tr as d,Y as f,Zn as p,_t as m,br as h,bt as g,cr as _,gt as v,or as y,rt as b,xn as x,xr as S,xt as C}from"./effect-
|
|
1
|
+
import"./rolldown-runtime-XKyaHtl9.js";import{a as e,o as t,r as n}from"./react-DLGSahv8.js";import{Br as r,Cn as i,Dr as a,Lr as o,Nn as s,Rr as c,Sn as l,St as u,Tr as d,Y as f,Zn as p,_t as m,br as h,bt as g,cr as _,gt as v,or as y,rt as b,xn as x,xr as S,xt as C}from"./effect-CfZLtXM0.js";import{t as w}from"./dist-BPRUA1hI.js";var T=e(),E=n();function D(e){let t=(0,T.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=w(`animate-pulse rounded-none bg-muted`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,E.jsx)(`div`,{"data-slot":`skeleton`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}t();function O(e){let t=(0,T.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=w(`w-full caption-bottom text-xs`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,E.jsx)(`div`,{"data-slot":`table-container`,className:`relative w-full overflow-x-auto`,children:(0,E.jsx)(`table`,{"data-slot":`table`,className:i,...r})}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function k(e){let t=(0,T.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=w(`[&_tr:last-child]:border-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,E.jsx)(`tbody`,{"data-slot":`table-body`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function A(e){let t=(0,T.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=w(`border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,E.jsx)(`tr`,{"data-slot":`table-row`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function j(e){let t=(0,T.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=w(`p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,E.jsx)(`td`,{"data-slot":`table-cell`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function M(e){let t=(0,T.c)(6),n;t[0]===e.label?n=t[1]:(n=a(h(e.label),{onNone:o,onSome:c(`img`)}),t[0]=e.label,t[1]=n);let r;return t[2]!==e.children||t[3]!==e.label||t[4]!==n?(r=(0,E.jsx)(`span`,{role:n,"aria-label":e.label,title:e.label,className:`flex size-6 shrink-0 items-center justify-center`,children:e.children}),t[2]=e.children,t[3]=e.label,t[4]=n,t[5]=r):r=t[5],r}function N(e){let t=(0,T.c)(16),n=`${(e.depth??0)*.75}rem`,r;t[0]===n?r=t[1]:(r={"--indent":n},t[0]=n,t[1]=r);let i;t[2]!==e.mark||t[3]!==e.markLabel?(i=e.mark!==void 0&&(0,E.jsx)(M,{...a(h(e.markLabel),{onNone:F,onSome:P}),children:e.mark}),t[2]=e.mark,t[3]=e.markLabel,t[4]=i):i=t[4];let o;t[5]===e.children?o=t[6]:(o=(0,E.jsx)(`span`,{className:`truncate`,children:e.children}),t[5]=e.children,t[6]=o);let s;t[7]===e.detail?s=t[8]:(s=e.detail!==void 0&&(0,E.jsx)(`span`,{className:`text-muted-foreground grow basis-0 truncate`,children:e.detail}),t[7]=e.detail,t[8]=s);let c;return t[9]!==e.after||t[10]!==e.title||t[11]!==r||t[12]!==i||t[13]!==o||t[14]!==s?(c=(0,E.jsx)(j,{className:`w-full`,children:(0,E.jsxs)(`span`,{className:`flex h-6 w-0 min-w-full items-center gap-2 ps-(--indent)`,style:r,title:e.title,children:[i,o,e.after,s]})}),t[9]=e.after,t[10]=e.title,t[11]=r,t[12]=i,t[13]=o,t[14]=s,t[15]=c):c=t[15],c}function P(e){return{label:e}}function F(){return{}}function I(e){let t=(0,T.c)(6),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,E.jsxs)(`span`,{className:`flex w-full items-center gap-2`,children:[(0,E.jsx)(D,{className:`size-6`}),(0,E.jsx)(D,{className:`h-4 w-1/3`})]}),t[0]=n):n=t[0];let r;t[1]===e.columns?r=t[2]:(r=(0,E.jsx)(j,{colSpan:e.columns,children:n}),t[1]=e.columns,t[2]=r);let i;return t[3]!==e.label||t[4]!==r?(i=(0,E.jsx)(A,{"aria-busy":`true`,"aria-label":e.label,children:r}),t[3]=e.label,t[4]=r,t[5]=i):i=t[5],i}function L(e){let t=(0,T.c)(10),n=e.label,r;if(t[0]!==e.label||t[1]!==e.rows){let n;t[3]===e.label?n=t[4]:(n=t=>(0,E.jsx)(I,{label:e.label},t),t[3]=e.label,t[4]=n),r=y(_(1,e.rows),n),t[0]=e.label,t[1]=e.rows,t[2]=r}else r=t[2];let i;t[5]===r?i=t[6]:(i=(0,E.jsx)(k,{children:r}),t[5]=r,t[6]=i);let a;return t[7]!==e.label||t[8]!==i?(a=(0,E.jsx)(O,{"aria-busy":`true`,"aria-label":n,children:i}),t[7]=e.label,t[8]=i,t[9]=a):a=t[9],a}var R=`en`,z={millisecond:{fractionalSecondDigits:3,hour:`2-digit`,hourCycle:`h23`,minute:`2-digit`,second:`2-digit`},minute:{hour:`2-digit`,hourCycle:`h23`,minute:`2-digit`},second:{hour:`2-digit`,hourCycle:`h23`,minute:`2-digit`,second:`2-digit`},day:{day:`numeric`,month:`short`},dayWithYear:{day:`numeric`,month:`short`,year:`numeric`},month:{month:`short`,year:`numeric`},weekday:{day:`numeric`,month:`short`,weekday:`short`},year:{year:`numeric`}},B=x(),V=f([`millisecond`,`minute`,`second`]);b([V,f([`day`,`dayWithYear`,`month`,`weekday`,`year`])]),new Intl.NumberFormat(R,{maximumFractionDigits:0}),new Intl.NumberFormat(R,{maximumFractionDigits:1,notation:`compact`}),new Intl.NumberFormat(R,{maximumFractionDigits:1}),new Intl.NumberFormat(R,{currency:`USD`,maximumFractionDigits:2,minimumFractionDigits:2,style:`currency`});function H(e,t){let n=r(e,d(m),a({onNone:C,onSome:e=>e.zone}),u),o=`${n}/${t}`;return r(B,l(o),S(()=>{let e=new Intl.DateTimeFormat(`en-GB`,{...z[t],timeZone:n});return i(B,o,e),e}))}function U(e,t){return H(e,t).format(g(e))}function W(e,t){let n=s(0,Math.floor(p(v(e,t))));return n<1?`now`:n<60?`${n}m`:n<1440?`${Math.floor(n/60)}h`:`${Math.floor(n/1440)}d`}function G(e){return U(e,`month`)}export{O as a,A as c,N as i,G as n,k as o,L as r,j as s,W as t};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/route-
|
|
2
|
-
import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{a as n,o as r,r as i,t as a}from"./react-DLGSahv8.js";import{S as o,T as s,_ as c,a as l,b as u,c as d,d as f,g as p,i as m,l as h,n as g,p as _,t as v,u as y,v as b,w as x,x as S}from"./auth-tE-9OJTi.js";import{$t as C,Br as w,D as ee,Dr as T,F as te,Gt as ne,H as re,Ir as ie,Jt as E,Mr as ae,N as oe,On as D,P as se,Pr as ce,Rr as le,Tr as ue,Ut as de,Xn as fe,ar as pe,br as me,dr as he,en as ge,fn as _e,ft as ve,hn as ye,j as be,kr as xe,nr as Se,ot as Ce,pn as we,st as Te,un as Ee,ur as De,vn as Oe,vr as ke,xr as Ae,zr as je}from"./effect-DGbTO7QP.js";import{a as Me,i as O,o as Ne,r as Pe,s as Fe,t as Ie}from"./preload-helper-Cp12E29U.js";import{R as Le,t as Re}from"./dist-BPRUA1hI.js";function k(e){return e[e.length-1]}function ze(e,t){return typeof e==`function`?e(t):e}var Be=Object.prototype.hasOwnProperty;function Ve(e){for(let t in e)if(Be.call(e,t))return!0;return!1}var He=()=>Object.create(null),Ue=(e,t)=>A(e,t,!0);function A(e,t,n,r=0){if(e===t)return e;if(r++>500)return t;let i=Array.isArray(e)&&Array.isArray(t);if(!i&&!(We(e)&&We(t)))return t;let a=Object.keys(e),o=a.length,s=Object.keys(t),c=s.length;if(i?o!==e.length||c!==t.length||o&&k(a)!==`${o-1}`||c&&k(s)!==`${c-1}`:o!==Object.getOwnPropertyNames(e).length||c!==Object.getOwnPropertyNames(t).length||Object.getOwnPropertySymbols(t).length)return t;let l=0,u,d,f;if(i){for(;l<c&&(f=l,d=e[f],u=t[f],u=d===u?d:typeof d==`object`?A(d,u,n,r):u,u===d);l++);if(l===c&&o===c)return e}else{let i=o===c,p=!0;for(;l<c;l++){f=s[l],d=e[f];let o=t[f];u=d===o?d:typeof d==`object`?A(d,o,n,r):o,i&&=u===d&&(a[l]===f||Be.call(e,f)),p&&=Object.is(u,o),a[l]=u}if(i)return Object.getOwnPropertySymbols(e).length?t:e;if(p)return t}let p=i?s.fill(0):n?He():{};for(let o=0;o<c;o++)f=i?o:s[o],i?(d=e[f],o>l&&(u=t[f],u=d===u?d:typeof d==`object`?A(d,u,n,r):u),p[f]=o<l?d:u):p[f]=a[o];return p}function We(e){return!e||typeof e!=`object`?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function j(e,t,n,r){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,a=e.length;i<a;i++){let a=e[i],o=t[i];if(a!==o&&!j(a,o,n,r))return!1}return!0}if(We(e)&&We(t)){if(n){for(let i in t)if((r||t[i]!==void 0)&&!j(e[i],t[i],n,r))return!1;return!0}let i=0;if(r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;for(let a in t)if((r||t[a]!==void 0)&&(i--===0||!j(e[a],t[a],n,r)))return!1;return i===0}return!1}function Ge(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}var Ke=/[\x00-\x1f\x7f"<>`{}]/g;function qe(e){return e.replace(Ke,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function Je(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return qe(t)}var Ye=[`http:`,`https:`,`mailto:`,`tel:`];function Xe(e){if(e[0]!==`/`&&e.includes(`:`))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(e)?.[1]?.replace(/[\t\n\r]/g,``).toLowerCase()}var Ze=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function Qe(e,t){if(!e)return!1;if(Ze.test(e))return!0;let n=Xe(e);return n?!t.has(n):!1}function $e(e){if(!e)return e;let t=e;if(/[%\\\x00-\x1f\x7f]/.test(e)){let n=/%25|%5C/gi,r=0,i;for(t=``;(i=n.exec(e))!==null;)t+=Je(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=Je(r?e.slice(r):e)}return t}function et(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function tt(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function nt(){throw Error(`Invariant failed`)}function rt(e){return e.replace(/\/{2,}/g,`/`)}function it(e){return e===`/`?e:e.replace(/^\/+/,``)}function M(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function at(e){return M(it(e))}function ot(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function st(e,t,n=`never`,r){if(t.includes(`//`)&&(t=rt(t)),t.startsWith(`/`))return t.length===1||n===`preserve`?t:n===`always`?t.endsWith(`/`)?t:`${t}/`:t.endsWith(`/`)?t.slice(0,-1):t;let i=t===`.`,a;if(r){a=i?e:e+`\0`+t;let n=r.get(a);if(n)return n}let o;if(i)o=e.split(`/`);else{for(e.includes(`//`)&&(e=rt(e)),o=e.split(`/`);o.length>1&&k(o)===``;)o.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&o.push(r):o=[r]:r===`..`?o.length>1?o.pop():o=[``]:r===`.`||o.push(r)}}o.length>1&&(k(o)===``?n===`never`&&o.pop():n===`always`&&o.push(``));let s=o.join(`/`),c=(i?rt(s):s)||`/`;return a&&r&&r.set(a,c),c}function ct(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=new RegExp([...t.keys()].join(`|`).replace(/[.*()]/g,`\\$&`),`g`);return e=>e.replace(n,e=>t.get(e)??e)}function lt(e){return e==null||e===``}function ut(e,t,n){if(typeof t!=`string`)return``+(t??void 0);let r=e===`_splat`;if(r&&(!t||/^[a-zA-Z0-9\-._~!/]*$/.test(t)))return t;let i=encodeURIComponent(t);return r&&(i=i.replaceAll(`%2F`,`/`)),n?n(i):i}function dt(e,t,n,r,i){let a=e.endsWith(`/`)?`/`:``,o=``;for(let e of t){if(typeof e==`string`){o+=e;continue}let[t,s,c,l]=e,u=t===2,d=u&&l!==void 0?l+a:l,f=n[s];if(t!==3||f!=null){if(i&&(i[s]=f,u&&(i[`*`]=f)),u&<(f)){if(c===`/`&&!d)continue;f=``}o+=c+ut(s,f,r)+(d||``)}}return o+a||`/`}function ft(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function N(e){return e?.isNotFound===!0}function pt(e,t=String){let n;for(let r in e){let i=e[r];i!==void 0&&(n||=new URLSearchParams).set(r,t(i))}return n?n.toString():``}function mt(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function ht(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=mt(r):Array.isArray(t)?t.push(mt(r)):n[e]=[t,mt(r)]}return n}var gt=/^(?:\s|["[{\d-]|fa|nu|tr)/,_t=yt(JSON.parse),vt=bt(JSON.stringify,JSON.parse);function yt(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.slice(1));let r=ht(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!gt.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function bt(e,t){let n=t===JSON.parse;function r(r){if(r&&typeof r==`object`)try{return e(r)}catch{}else if(t&&typeof r==`string`){if(n&&!gt.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=pt(e,r);return t?`?${t}`:``}}var xt=`__root__`;function St(e){e.statusCode=e.statusCode||e.code||307;let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Ct(e){return e instanceof Response&&!!e.options}function wt(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var P=4,Tt=5;function Et(e){let t=e.names;if(t)return t;let n=[];for(let t of e)typeof t!=`string`&&n.push(t[1]);return e.names=n}function Dt(e,t,n){let r=e.slice(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.slice(1),``,``];let i=r.indexOf(`{`);if(i>=0){let a=r.indexOf(`}`,i),o=r.charCodeAt(i+1)===45,s=i+(o?3:2);if(a>=0&&r.charCodeAt(s-1)===36&&(!o||s<a)){let c=r.slice(s,a);return[o?3:c?1:2,c||`_splat`,r.slice(0,i),e.slice(t+a+1,c?n:e.length)]}}return r}function Ot(e,t,n,r,i,a){let o=n,s=t.fullPath??t.from,c=t.options,l=s.length,u=s.endsWith(`/`)?l-1:l,d=c?.caseSensitive??e,f=c?.params?.parse??c?.parseParams,p,m=a?n-1:0;if(!r||s.includes(`$`)){p=a?.slice()??[];let e=k(p);e&&typeof e!=`string`&&e[0]===2&&(p[p.length-1]=[e[0],e[1],e[2],e[3]===void 0?void 0:e[3]+s.substring(n-(s[n-2]===`/`?2:1),u)],m=l)}for(;o<l;){let e=o,t=s.indexOf(`/`,e),n=t===-1?l:t,a=Dt(s,e,n);o=n+1;let c;if(typeof a==`string`){if(!r)continue;let e=a,t;d?t=r.static??=new Map:(e=a.toLowerCase(),t=r.staticInsensitive??=new Map);let n=t.get(e);if(n)c=n;else{let n=F(r);c=n,t.set(e,n)}}else{let t=a[0],h=a[2],g=a[3]??``;if(t===2&&(n=l,o=n+1),p&&m<n&&(m<e-1&&p.push(s.slice(m,e-1)),a[2]=`/`+h,t===2&&a[3]!==void 0&&u<l&&(a[3]=g.slice(0,-1)),p.push(a),m=n),!r)continue;let _=d&&!!(h||g);d||(h=h.toLowerCase(),g=g.toLowerCase());let v=t===1?r.dynamic??=[]:t===3?r.optional??=[]:r.wildcard??=[],y=t!==2&&!f&&v.find(e=>!e.parse&&e.caseSensitive===_&&e.prefix===h&&e.suffix===g);if(y)c=y;else{let e=F(r,t,_,h,g);c=e,v.push(e),v.length===2&&i?.push(v)}}r=c}p&&m<u&&p.push(s.slice(m,u));let h=p?.slice();if(!r)return h;if(f&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf(`/`)+1)===95){let e=F(r,Tt);(r.pathless??=[]).push(e),r=e}let g=(t.path||!t.children)&&!t.isRoot;if(g&&u<l){let e=F(r,P);r.index=e,r=e}return r.parse=f??null,r.priority=c?.params?.priority??0,r.route||(r.data=h,g&&(r.route=t)),[r,o,h]}function kt(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function F(e,t=0,n,r,i){return{kind:t,depth:e?e.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:e,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function At(e,t){let n=F(),r=[];function i(e,t,n,a){let[o,s,c]=Ot(!1,e,t,n,r,a);if(e.children)for(let t of e.children)i(t,s,o,c)}for(let t of e)i(t,1,n);for(let e of r)e.sort(kt);t.masksTree=n,t.flatCache=wt(1e3)}function jt(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=Ft(e,t.masksTree);return t.flatCache.set(e,r),r}function Mt(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=F(),Ot(t,{from:e},1,o),i.singleCache.set(a,o)),Ft(r,o,n)}function Nt(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=Ft(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Lt(a.route)),t.matchCache.set(r,a),a}function Pt(e,t=!1){let n=F(),r=[],i={},a={},o=0;function s(e,n,c,l){if(e.init(o),e.id in i&&nt(),i[e.id]=e,o!==0&&e.path){let t=M(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}o++;let[u,d,f]=Ot(t,e,n,c,r,l);if(e._interpolation=f,e.children)for(let t of e.children)s(t,d,u,f)}s(e,1,n);for(let e of r)e.sort(kt);return{processedTree:{segmentTree:n,singleCache:wt(1e3),matchCache:wt(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function Ft(e,t,n=!1){let r=e.split(`/`),i=zt(e,r,t,n);if(!i)return null;let[a]=It(e,r,i);return{route:i.node.route,rawParams:a}}function It(e,t,n){let r=Rt(n.node),i=n.node.data&&Et(n.node.data),a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.param??0;for(;s<r.length;o++,s++,c++){let u=r[s];if(u.kind===P)break;if(u.kind===Tt){o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1||u.kind===3){let e=i[l++];if(u.kind===3&&n.skipped&1<<s){o--,c=f-1;continue}let t=u.suffix||u.prefix?d.substring(u.prefix.length,d.length-u.suffix.length):d;(t||u.kind===1)&&(a[e]=decodeURIComponent(t))}else if(u.kind===2){let t=u,n=e.substring(f+t.prefix.length,e.length-t.suffix.length),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,param:l}]}function Lt(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Rt(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function zt(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!k(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!Ut(l,n))continue;if(i.parse){if(!Ht(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==P&&Ut(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===P||i.kind===2)&&Ut(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[u],y;if(_&&i.index){let n={node:i.index,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(Ht(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&Vt(f,o))return n;Ut(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!r||!_&&(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)){if(a){if(_)continue;let e=t.slice(u).join(`/`),i=e.slice(-a.length);if((n.caseSensitive?i:i.toLowerCase())!==a||e.length-a.length<r.length)continue}s.push({node:n,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(i.optional){let e=d|1<<i.depth+1;for(let t=i.optional.length-1;t>=0;t--){let n=i.optional[t];s.push({node:n,index:u,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p,optionals:m+Bt(o,u),extract:h,rawParams:g})}}if(!_&&i.dynamic&&v)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p+Bt(o,u),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,statics:f+Bt(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&s.push({node:e,index:u+1,skipped:d,statics:f+Bt(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(i.pathless)for(let e=i.pathless.length-1;e>=0;e--){let t=i.pathless[e];s.push({node:t,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function Bt(e,t){return 2**(e-t-1)}function Vt(e,t){return e===2**(t-1)-1}function Ht(e,t,n){let r,i;try{[r,i]=It(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Ut(e,t){return!e||t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===P)>(e.node.kind===P)||t.node.kind===P==(e.node.kind===P)&&t.node.depth>e.node.depth)))}function Wt(){try{return sessionStorage}catch{return}}var Gt=`tsr-scroll-restoration-v1_3`,Kt=Wt();function qt(){try{return JSON.parse(Kt?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var Jt=qt(),Yt=`data-scroll-restoration-id`,Xt=e=>e.state.__TSR_key||e.href;function Zt(e){let t=e.getAttribute(Yt);if(t)return`[${Yt}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var Qt=!1,$t=`window`;function en(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function tn(e){let t=new Set;for(let n of e){if(n===$t)continue;let e=en(n);e&&t.add(e)}return t}function nn(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||Xt,a=new Set,o=e=>{let t=Jt[e]||={};for(let e of a)e===document?t[$t]={scrollX,scrollY}:e.isConnected&&(t[Zt(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,Qt=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{Qt||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{history.scrollRestoration=`auto`,o(i(e.stores.resolvedLocation.get()??e.stores.location.get()));try{Kt?.setItem(Gt,JSON.stringify(Jt))}catch{}}),addEventListener(`pageshow`,e=>{e.persisted&&(history.scrollRestoration=`manual`)})),r.r||(r.r=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.n,c=r.h,l;if(a.clear(),r.n=!0,r.h=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.e&&d&&d!==u){let e=Jt[d];if(e){let t=Jt[u];for(let n in e){if(n===$t){if(s)continue}else{let e=en(n);if(!e||s&&o&&(l??=tn(o),l.has(e)))continue}t||=Jt[u]={},t[n]??=e[n]}}}Qt=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=tn(o));let t=e&&i&&c,s=r.e?Jt[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===$t){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=en(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{Qt=!1}}))}function rn(e,t,n){let r=at(e),i=`/${r}`,a=t?i:i.toLowerCase(),o=`${a}/`,s={input:({url:e})=>{let n=t?e.pathname:e.pathname.toLowerCase();return n===a?e.pathname=`/`:n.startsWith(o)&&(e.pathname=e.pathname.slice(i.length)),e},output:({url:e})=>(e.pathname=rt(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>an(n,s.input({url:e})),output:({url:e})=>s.output({url:on(n,e)})}:s}function an(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function on(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function sn(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{tt(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var I=`__TSR_index`,cn=`popstate`,ln=`beforeunload`,un=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function dn(e){let t=un.exec(e);return t?`/`+e.slice(t[0].length):e}function fn(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`
|
|
3
|
-
\r`.includes(e)?``:encodeURIComponent(e))),dn(e)}function pn(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async n=>{let r=n.navigateOpts?.ignoreBlocker?void 0:e.getBlockers?.();if(typeof document<`u`&&r?.length&&(n.type===`PUSH`||n.type===`REPLACE`))for(let i of r){let r=gn(n.path,n.state);if(await i.blockerFn({currentLocation:t,nextLocation:r,action:n.type})){e.onBlocked?.();return}}n.task()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[I];i=mn(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[I];i=mn(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t,n?.ignoreBlocker??!1),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[I]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r,_getBlockers:()=>e.getBlockers?.()??[]}}function mn(e,t){let n=_n();return{...t,key:n,__TSR_key:n,[I]:e}}function hn(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=t=>fn(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>gn(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=_n();t.history.replaceState({[I]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(t,n,r)=>{let i=e?.createHref?s(n):void 0,a=!!g;a||(u=l),l=gn(n,r),g=[i??l.href,r,g?.[2]||t],a||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(m=!1,f){f=!1;return}let e=c(),n=e.state[I]-l.state[I],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let r=a();if(typeof document<`u`&&r.length){for(let i of r)if(await i.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(-n),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0||typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=pn({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0,m=!0),t.history.back()),forward:e=>{e&&(p=!0,m=!0),t.history.forward()},go:(e,n)=>{d=!0,n&&(p=!0,m=!0),t.history.go(e)},createHref:s,flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(ln,x,{capture:!0}),t.removeEventListener(cn,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return S._ignoreNextBeforeUnload=e=>{m=!1;try{e=new URL(e,t.document.baseURI).href,m=/^https?:/.test(e)&&(!e.includes(`#`)||e.split(`#`)[0]!==t.location.href.split(`#`)[0])}catch{}},t.addEventListener(ln,x,{capture:!0}),t.addEventListener(cn,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function gn(e,t){let n=fn(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=_n();t={[I]:0,key:e,__TSR_key:e}}return{href:n,pathname:n.slice(0,r>-1?i>-1?Math.min(r,i):r:i>-1?i:n.length),hash:r>-1?n.slice(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t}}function _n(){return(Math.random()+1).toString(36).slice(7)}function vn(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function yn(e){return e.pathname+e.search+e.hash}function bn(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function xn(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function Sn({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function Cn(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function wn(e,t,n,r,i,a){r&&(t=t.slice(0,r)),i&&(n=n.slice(0,i));for(let r of t){if(a&&e._tx!==a)return;n.some(e=>e.routeId===r.routeId)||e.routesById[r.routeId].options.onLeave?.(r)}for(let r of n){if(a&&e._tx!==a)return;e.routesById[r.routeId].options[t.some(e=>e.routeId===r.routeId)?`onStay`:`onEnter`]?.(r)}}var Tn=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async e=>(e(),!1),this.update=e=>{let t=this.options;this.options={...t,...e},this.isServer=this.options.isServer??!1??typeof document>`u`,this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:hn()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`;let n=this.options.basepath??`/`,r=this.options.rewrite,i=this.basepath!==n||t?.rewrite!==r||t?.caseSensitive!==this.options.caseSensitive;if(i&&(this.basepath=n,this.rewrite=n!==`/`&&at(n)?rn(n,this.options.caseSensitive,r):r),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;e=this.buildRouteTree(),this.setRoutes(e)}if(this.stores)i&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=sn(this.latestLocation,e),nn(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=Pt(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&At(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:wt(1e3)}},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i},a)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:$e(e),external:!1,searchStr:o,search:Ue(t?.search,i),hash:$e(r.slice(1)),state:A(t?.state,a)}}let o=an(this.rewrite,new URL(i,this.origin)),s=this.options.parseSearch(o.search),c=this.options.stringifySearch(s);return o.search=c,{href:o.href.replace(o.origin,``),publicHref:i,pathname:$e(dn(o.pathname)),external:!!this.rewrite&&vn(o,this.origin),searchStr:c,search:Ue(t?.search,s),hash:$e(o.hash.slice(1)),state:A(t?.state,a)}},r=n(e,e.state),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i,{...i.state,__tempLocation:void 0,key:r.state.key,__TSR_key:r.state.__TSR_key});return e.maskedLocation=r,e}return r},this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>{let t=Object.create(null),n=Nt(M(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{{let t=this.staticLocations.get(e);if(t)return t}let t=!1,n=(n={})=>{if(n.href){let e=gn(n.href,{});n={...n,to:an(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let r=e._fromLocation||this._pendingLocation||this.latestLocation,i,a=()=>(t=!0,r),o=()=>i??=this.matchRoutesLightweight(a()),s=n.to?`${n.to}`:`.`,c=st(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),l=this.routesByPath[M(c)],u=c.includes(`$`),d;if(l)d=l._branch??=Lt(l);else if(u)d=[];else{let[e,t,n]=this.getMatchedRoutes(c);d=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(d=[...d,this.options.notFoundRoute])}let f=u?l?._interpolation??Ot(!1,{fullPath:c},0):void 0,p;for(let e of d){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){let e=o()[3];if(p??=An(n.params,e),!Ve(p))break;p===e&&(p=Object.assign(He(),p));try{Object.assign(p,t(p))}catch{}}}p??=An(n.params,jn(n.params,f)?o()[3]:Mn);let m=e.leaveParams?c:dn($e(f?dt(c,f,p,this.pathParamsDecoder):c)),h=Nn(d,e._includeValidateSearch),g=()=>{let t=o()[2];if(e._includeValidateSearch&&this.options.search?.strict){let e={};d.forEach(n=>{if(n.options.validateSearch)try{Object.assign(e,kn(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},_=h.length?Pn(h,g(),n):n.search===!0?g():typeof n.search==`function`?n.search(g()):n.search||Mn,v=this.options.stringifySearch(_),y=n.hash===!0?a().hash:typeof n.hash==`function`?n.hash(a().hash):n.hash||void 0,b=y?`#${y}`:``,x=n.state?n.state===!0?a().state:typeof n.state==`function`?n.state(a().state):n.state:Mn,S=`${m}${v}${b}`,C,w,ee=!1;if(this.rewrite){let e=new URL(S,this.origin),t=e.origin,n=on(this.rewrite,e);C=yn(e),vn(n,t)?(w=n.href,ee=!0):w=dn(yn(n))}else C=et(S),w=C;return{publicHref:w,href:C,pathname:m,search:_,searchStr:v,state:x,hash:y??``,external:ee,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=jt(r.pathname,this.processedTree);if(t){let i=Object.assign(He(),t.rawParams),{from:a,params:o,...s}=t.route,c=An(o,i);r.maskedLocation=n({from:e.from,...s,params:c})}}return!t&&e._fromLocation&&this.staticLocations.set(e,r),r},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=n.maskedLocation??n;if(r.external)return En(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=M(this.latestLocation.href)===M(n.href)&&j(Sn(n.state),Sn(this.latestLocation.state)),o=this._commitPromise,s,c=new Promise(e=>{s=e});if(c.resolve=()=>{s(),o?.resolve()},this._commitPromise=c,a)this.load();else{let{maskedLocation:r,hashScrollIntoView:a,...o}=n;r&&(o={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state={...o.state,__hashScrollIntoViewOptions:a??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=e,i=n.replace?`REPLACE`:`PUSH`,this.history[i===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:i}})}return this._scroll.n=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,...a}={})=>{let o=this.buildLocation({...a,_includeValidateSearch:!0});this._pendingLocation=o;let s=this.commitLocation({...o,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this._pendingLocation===o&&(this._pendingLocation=void 0)}),s},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=n?Xe(n):void 0;if(a||t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i}),a=t.maskedLocation??t;n??=a.publicHref,r??=a.publicHref}let t=!a&&r?r:n;return En(this,t,i)}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.h=e.action.type===`PUSH`||e.action.type===`REPLACE`),await _r(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(xn(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set,a=e=>{(!n||n(e))&&i.add(e.id)};t.forEach(a),this._cache.forEach(a),r?.forEach(e=>e.forEach(a)),this._tx?.[3].forEach(a);let o=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),o.push(e));let s=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&bn(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(s);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i){let t=this._flights?.get(e);this._flights?.delete(e),t&&!t[2]&&o.push(t[1])}for(let e of o)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.options,n=e.headers.get(`Location`)||t.href;if(!n){let e=this.buildLocation(t);n=(e.maskedLocation??e).publicHref||`/`}let r;if(Ze.test(n)||(r=Xe(n))&&!this.protocolAllowlist.has(r))throw Error(`Redirect blocked: unsafe protocol`);if(r===`http:`||r===`https:`){let e=new URL(n);e.pathname.startsWith(`//`)?n=e.href:vn(e,this.origin)||(n=yn(e),r=void 0)}return r&&(t.reloadDocument=!0),t.href=n,e.headers.set(`Location`,n),e},this.clearCache=e=>{let t=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=L,this.preloadRoute=e=>vr(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?st(e.from||``,e.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=Mt(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!j(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?j(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=ct(e.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??vt,parseSearch:e.parseSearch??_t,protocolAllowlist:e.protocolAllowlist??Ye}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){Object.assign(this,e),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;let t=this.options.notFoundRoute;t&&(t.init(99999999999),this.routesById[t.id]!==t&&(t._interpolation=Ot(!1,t,0)),this.routesById[t.id]=t)}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),a=n,o=!1;(i?i.path!==`/`&&r[`**`]:M(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?Fn(this.options.notFoundMode,a):void 0,c=Array(a.length),l=this._committed,u=(e,t)=>{let n=l[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?l.find(t=>t.routeId===e.id):void 0},d;for(let n=0;n<a.length;n++){let i=a[n],o=c[n-1],l,f,p;{let n=o?.search??e.search,r=o?._strictSearch??void 0;try{let e=kn(i.options.validateSearch,{...n})??void 0;l={...n,...e},f={...r,...e}}catch(e){let r=e;if(e instanceof Dn||(r=new Dn(e.message,{cause:e})),t?.throwOnError)throw r;l=n,f={},p=r}}let m=``,h=``;try{m=i.options.loaderDeps?.({search:l})??``,h=m&&JSON.stringify(m)||``}catch(e){if(t?.throwOnError)throw e;p??=e}let g=He(),_=i._interpolation?dt(i.fullPath,i._interpolation,r,this.pathParamsDecoder,g):i.fullPath,v=i.id+_+h,y=u(i,n),b=this._cache.get(v)??(y?.id===v?y:void 0);d=b?._strictParams??Object.assign(g,d);let x;if(!b)try{In(i,d)}catch(e){if(x=N(e)||Ct(e)?e:new On(e.message,{cause:e}),t?.throwOnError)throw x}let S=y?`stay`:`enter`,C;if(b)C={...b,cause:S,search:Ue(y?y.search:b.search,l),_strictSearch:f,searchError:p};else{let e=bn(i)?`pending`:`success`;C={id:v,ssr:i.options.ssr,index:n,routeId:i.id,params:y?.params??d,_strictParams:d,pathname:_,updatedAt:Date.now(),search:y?Ue(y.search,l):l,_strictSearch:f,searchError:p,status:e,isFetching:!1,error:void 0,paramsError:x,context:{},abortController:t?._controller??new AbortController,cause:S,loaderDeps:y?A(y.loaderDeps,m):m,invalid:!1,preload:!1,staticData:i.options.staticData||{},fullPath:i.fullPath}}let w=s===i.id;C._notFound&&!w&&(C.error=void 0),C._notFound=w,c[n]=C}for(let e=0;e<c.length;e++){let n=c[e];n.params=n.cause===`stay`?Ue(n.params,d):d,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=k(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,r=n?.id,i=this.lightweightCache.get(e);if(i&&i[0]===r)return i[1];let[a,o]=this.getMatchedRoutes(e.pathname),s=k(a),c={...e.search};for(let e of a)try{Object.assign(c,kn(e.options.validateSearch,c))}catch{}let l=n&&n.routeId===s.id&&n.pathname===e.pathname,u;if(l)u=n.params;else{let e=o;for(let t of a)try{In(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}};async function En(e,t,{replace:n,ignoreBlocker:r}){if(!Qe(t,e.protocolAllowlist)){if(!r){let t=e.history._getBlockers();for(let r of t)if(r?.blockerFn&&await r.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:n?`REPLACE`:`PUSH`}))return}e.history._ignoreNextBeforeUnload?.(t),n?window.location.replace(t):window.location.href=t}}var Dn=class extends Error{},On=class extends Error{};function kn(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Dn(`Async validation not supported`);if(n.issues)throw new Dn(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function An(e,t){if(e===void 0||e===!0)return t;let n=Object.create(null);return e===!1||e===null?n:typeof e==`function`?(Object.assign(n,t),Object.assign(n,e(n))):Object.assign(n,t,e)}function jn(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!Be.call(e,t[1]))}var Mn=Object.freeze({});function Nn(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r].options;`search`in i?i.search?.middlewares&&n.push(...i.search.middlewares):(i.preSearchFilters||i.postSearchFilters)&&n.push(({search:e,next:t})=>{let n=t(i.preSearchFilters?i.preSearchFilters.reduce((e,t)=>t(e),e):e);return i.postSearchFilters?i.postSearchFilters.reduce((e,t)=>t(e),n):n});let a=i.validateSearch;t&&a&&n.push(({search:e,next:t,meta:n})=>{let r=t(e);try{let e=kn(a,r);if(n&&e)for(let t in e)t in r||(n.defaulted||=new Map).set(t,e[t]);return{...r,...e}}catch{}return r})}return n}function Pn(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=ze(n.search,i);return a&&(a.explicit=e),e}return e[t]({search:i,next:(e,n)=>{if(n){let n=a||{};return{search:r(t+1,e,n),meta:n}}return r(t+1,e,a)},meta:a})};return r(0,t)}function Fn(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return xt}function In(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function Ln(e,t){return e.options[t]?.preload?.()}function Rn(e,t){let n=Ln(e,`component`),r=Ln(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function L(e,t,n){let r=()=>t===!1?void 0:t?Ln(e,t):Rn(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy=void 0,t});return e._lazy=a,a.then(r)}function zn(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function Bn(e,t,n){let r=e._tx;return t&&r?.[2]===n&&!r[3].some(e=>e.routeId===t)}var R=0,z=1,Vn=2,B=3,V=[4];function Hn(e){return typeof e[0]==`number`}function H(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,r)=>{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).then(()=>t.removeEventListener(`abort`,i))})}function U(e,t){return e.routesById[t.routeId]}function Un(e,t,n){return Ct(e)?[B,e]:N(e)?(e.routeId||=n,[Vn,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[z,e]):[R,e]}function Wn(e,t){let n=Un(t,!0,e.id);if(n[0]!==z)return n;try{e.options.onError?.(n[1])}catch(t){n=Un(t,!0,e.id)}return n}function Gn(e,t,n,r,i){return i[0].signal.aborted?V:ir(e,t,n,Wn(n,r),i)}async function Kn(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[3];for(let i=n[6]??0;i<r;i++){let r=s[i],u=U(e,r);r.abortController=n[0];let d=s[i-1]?.context??e.options.context??{},f={params:r.params,location:o,navigate:t=>e.navigate({...t,_fromLocation:o}),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:u.id};try{let e=r._ctx||=u.options.context?u.options.context({...f,deps:r.loaderDeps,context:d})||{}:void 0;r.context={...d,...e}}catch(a){return W(e,r),[i,Gn(e,t,u,a,n)]}if(c.aborted)return[i,V];let p=r.paramsError??r.searchError;if(p!==void 0)return W(e,r),[i,Gn(e,t,u,p,n)];let m=u.options.beforeLoad;if(!m)continue;let h=r.status;i>=a&&(r.status=`pending`,n[7]?.());try{Yn(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?H(a,c):a);if(c.aborted)return[i,V];let s=ir(e,t,u,Un(o,!1,u.id),n);if(s[0]!==R)return W(e,r),[i,s];r.context={...r.context,...o}}catch(a){return W(e,r),[i,Gn(e,t,u,a,n)]}finally{r.status=h,Yn(e,r,!1,n[0])}}i()}function qn(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){let n=e._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(t)&&n[3].some(e=>e.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function W(e,t){let n=t._flight;t._flight=void 0,qn(e,t,n)?.abort()}function G(e,t,n,r){let i=[];for(let a of t)if(!n?.includes(a)){let t=a._flight;if(a._flight=void 0,r&&t?.[2]===1&&e._flights?.get(a.id)===t&&n?.some(e=>e.id===a.id))t[2]=0;else{let n=qn(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function Jn(e){for(let t of e){let e=t._flight;e&&e[2]++}}function Yn(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function Xn(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:t=>e.navigate({...t,_fromLocation:s}),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function Zn(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return V;if(!i)return[R,void 0];let l=n._flight;Yn(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(Xn(e,t,n,r,s,a,!!o[3]))).then(e=>Un(e,!1,r.id),e=>Un(e,!0,r.id)).then(t=>(t[0]!==R&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===z&&l[2]?Wn(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],ir(e,t,r,await H(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return W(e,n),V}finally{Yn(e,n,!1,s)}}function Qn(e,t,n){t[0]!==B&&(e.status=`success`,e.error=void 0,t[0]===R?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function $n(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&W(e,r)}function er(e,t){return t[0]===z||t[0]===Vn?{...e,status:t[0]===z?`error`:`notFound`,error:t[1],_flight:void 0}:e}function tr(e,t,n,r,i,a,o){let s=t[1][n],c=U(e,s),l=!!a[3],u=e._cache.get(s.id),d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(Xn(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=V)),!p){if(s.status!==`success`)f=!0;else{let t=l||s.preload?c.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.options.defaultStaleTime??0;f=!!(s.invalid||d||d===void 0&&Date.now()-s.updatedAt>=t&&(a[5]||s.cause===`enter`||a[2].some(e=>e.routeId===s.routeId&&e.id!==s.id)))}}}catch(n){s.invalid=!0,W(e,s),p=Gn(e,t,c,n,a)}let m=c.options.loader,h=typeof m==`function`,g=h?m:m?.handler,_=!l||c.options.preload!==!1,v=_&&m?e._flights?.get(s.id):void 0;v===s._flight||p?v=void 0:v&&!f&&!l&&d===void 0?f=!0:f||(v=void 0);let y=!(!m||!f||s.status!==`success`||l||a[4]||((h?void 0:m.staleReloadMode)??e.options.defaultStaleReloadMode)===`blocking`),b=f&&_,x=b&&!y&&(s.status!==`success`||!!m),S=n>=o?a[7]:void 0,C=c.lazyFn&&c._lazy!==!0?S:void 0;if(b&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),v&&v[2]++,x){let t=s._flight;s._flight=v,qn(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?Zn(e,t,s,c,g,i,a).then(t=>(Qn(s,t,l),t[0]===R&&(m&&!a[0].signal.aborted&&$n(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[R,s.loaderData]),ee=(async()=>{try{let e=L(c,void 0,C);e&&await H(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,Gn(e,t,c,r,a)]}let r=await w;x&&r[0]===R&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,ee]),!y)return w.then(e=>er(s,e));let T={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let te=Zn(e,t,T,c,g,i,a).then(e=>(s.isFetching=!1,Qn(T,e,!1),e));return(t[2]??=[]).push([n,te,ee,T]),te.then(e=>er(T,e))}async function nr(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=U(e,t[n]);try{let e=L(i,!1);e&&await H(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function K(e,t){t[2]&&=(G(e,t[2].map(e=>e[3])),void 0)}async function rr(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=B)throw[a,t];!i&&t[0]!==R&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===B)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function ir(e,t,n,r,i,a){for(;r[0]===B;){let o=r[1],s=o.options;try{if((s.href||o.headers.has(`Location`))&&(e.resolveRedirect(o),s.reloadDocument)||(s.reloadDocument?i[3]:i[1]>=20))return r;let n=e.buildLocation({...s,_fromLocation:t[0],_includeValidateSearch:!0}),a=n.maskedLocation??n;if(a.external){let t=o.clone();return t.options={...s},t.headers.set(`Location`,a.publicHref),e.resolveRedirect(t),i[3]?[B,t]:[B,t,a]}return[B,o,n]}catch(e){r=a?[z,e]:Wn(n,e),a=!0}}return r}async function ar(e,t,n,r,i,a){let o=t[1],s=await i,c=!1,l=o.findIndex(e=>e._notFound),u=t=>t[1][0]===Vn?nr(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=B)d=0;else if(s){d=s[2]??=await u(s);for(let e of n){if(e[0]>=d)break;let t=await e[1];if(t[0]!==R&&t[0]<B&&!(`loaderData`in o[e[0]])){s=[e[0],t],d=s[2]=await u(s);break}}}for(let e of n){if(e[0]>=d)break;let t=await e[2];if(t){s=t;break}}if((s?.[1][0]??0)>=B){let n=s[1];if(n[0]!==B||n[1].options.reloadDocument||n[2])return K(e,t),n;c=!0,s=[0,[z,Error(`Too many redirects`)]]}let f=s?s[2]??await u(s):l;if(f>=0){let i=s?.[1],l=i?.[0],u=o[f],d=i?.[1],p=()=>{i&&(u._notFound=void 0,l===z?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};p(),i||a?.();let m=U(e,u);try{await H(i?Promise.resolve().then(()=>L(m,l===z?`errorComponent`:`notFoundComponent`)):Promise.all([L(m),L(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return K(e,t),V}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),K(e,t),G(e,o),p()):u.status=`success`}return t}async function or(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;t<i;t++){let r=a[t],i=U(e,r).options;if(i.head||i.scripts)try{let t={ssr:e.options.ssr,matches:a,match:r,params:r.params,loaderData:r.loaderData},[o,s]=await H(Promise.all([i.head?.(t),i.scripts?.(t)]),n);r.meta=o?.meta,r.links=o?.links,r.headScripts=o?.scripts,r.styles=o?.styles,r.scripts=s}catch(e){if(e===n&&n.aborted)break;console.error(e)}if(r.status!==`success`||r._notFound)break}return t}async function sr(e,t,n,r){let i=[t,n],a=r[0].signal,o;try{let t=e.stores.matches.get(),s=n.findIndex(e=>e._notFound);if(e.options.notFoundMode!==`root`&&s>=0){let t=await nr(e,n,void 0,a,s);n[s]._notFound=void 0,n[t]._notFound=!0,s=t}let c=s<0?n.length:s+1,l=0;for(;l<c&&l!==s;){let e=n[l],i=r[2][l],a=t[l];if(i?.id!==e.id||i.status!==`success`||e.preload||a?.id!==e.id||a.status!==`success`||(l++,i._notFound||a._notFound))break}let u=[],d=r[6]??0,f=d?Promise.resolve(n[d-1]):void 0,p=()=>{for(let t=d;t<c&&!a.aborted;t++)f=tr(e,i,t,u,f,r,l)},m=await Kn(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===Vn){let t=await nr(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=B&&(c=0);p()}if(!a.aborted&&!r[3]){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}let h=ar(e,i,u,r[0],rr(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=rr(i[2],void 0,void 0,h.then(e=>Hn(e)?0:zn(n).length,()=>0))),o=await h}catch(t){if(K(e,i),t===a&&a.aborted)return V;throw t}return Hn(o)?o:or(e,o,a,r[6]===n.length?r[6]:0)}function cr(e,t){if(e._tx!==t)return;let n=t[3],r=e.stores.matches.get(),i=e._pending;for(let a=0;a<n.length;a++){let o=n[a],s=o.status===`success`&&!o._notFound,c=r[a]?.id===o.id&&r[a]?.status===`pending`;if(s&&!c)continue;let l=U(e,o),u=s||o.invalid?0:l.options.pendingMs??e.options.defaultPendingMs,d=l.options.pendingComponent??e.options.defaultPendingComponent;if(!d||typeof u!=`number`||u===1/0){i&&(i[0]=t,i[2]=0,i[4]=!0);return}let f=l.options.pendingMinMs??e.options.defaultPendingMinMs??0,p=!1;if(i?.[1]===o.id?(p=i[0]!==t,i[0]=t):(clearTimeout(i?.[3]),e._pending=i=void 0),i||(e._pending=i=[t,o.id,c?Date.now()+f:t[4]+u,void 0,c||void 0,d]),i[4]&&!p&&i[5]===d)return;if(i[5]=d,!i[4]){clearTimeout(i[3]);let n=i[2]-Date.now();if(n>0){i[3]=setTimeout(()=>cr(e,t),n);return}i[2]=0}let m=n.map(e=>({...e,_flight:void 0}));m[a].status=`pending`;let h=i[4]=e.startTransition(()=>e.stores.setMatches(m),m).then(t=>(t&&e._pending===i&&i[4]===h&&!i[2]&&(i[2]=Date.now()+f),t));return}}function lr(e,t){let n=e._pending;e._tx!==t&&e._tx?.[3].some(e=>e.id===n?.[1])||(clearTimeout(n?.[3]),e._pending=void 0)}async function ur(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!zn(t[3]).some(e=>e.id===n[1]))return;let i;try{await H(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function dr(e,t){e._committed=t,e.stores.setMatches(t)}function fr(e,t,n,r){let i=e._committed,a=e._lifecycleEnd,o=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let s=zn(n).length,c=new Map;{let t=Date.now(),r=new Set;for(let e=0;e<n.length;e++){let t=n[e];(e<s||t.status===`success`)&&r.add(t.id)}for(let n of[...i,...o.values()]){if(n.status!==`success`||r.has(n.id))continue;let i=U(e,n);!i.options.loader||t-n.updatedAt>=(n.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||c.set(n.id,o.get(n.id)===n?n:{...n,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c;let l=e._lifecycleEnd=Cn(n);dr(e,n),G(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),wn(e,i,n,a,l,t)}async function pr(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function mr(e,t,n){let r=n[1].options,i=n[2];if(!i)return e.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return e.navigate({href:(i.maskedLocation??i).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});i._redirects=t[1]+1,e._pendingLocation=i;let a=e.commitLocation({...i,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===i&&(e._pendingLocation=void 0)}),a}async function hr(e,t,n,r,i){let a=n.map(e=>({...e}));Jn(a);for(let t of r)W(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await ar(e,o,r,t[0],i)}catch(t){throw G(e,a),t}if(Hn(s))G(e,a),s[0]===B&&e._tx===t&&e._committed===n&&await mr(e,t,s);else if(await or(e,s,t[0].signal),e._tx!==t||e._committed!==n)G(e,a);else{for(let t of a){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),W(e,n))}dr(e,a),G(e,n,a)}}async function gr(e,t,n,r,i,a){let o=await sr(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(Hn(o)){let n=o[0]===B&&e._tx===t;if((!n||o[1].options.reloadDocument)&&lr(e,t),G(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){lr(e,t);return}await mr(e,t,o);return}let s=o[1];if(e._tx===t&&await ur(e,t),e._tx!==t){lr(e,t),G(e,s),K(e,o);return}let c=t[2],l=xn(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await ur(e,t),e._tx!==t){lr(e,t),G(e,s),K(e,o);return}let n=await e.startTransition(()=>{lr(e,t),fr(e,t,s,a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s);e._tx===t?(u?.length&&hr(e,t,s,u,o[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(c),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...l}),n&&e._tx===t&&e.emit({type:`onRendered`,...l})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)):K(e,o)})}async function _r(e,t){let n=e._tx,r=e.stores.resolvedLocation.get(),i=r??e.stores.location.get(),a=e.latestLocation,o=e._pendingLocation,s=o?.href===a.href?o._redirects??0:0,c=e._handoff,l=c?.[0](),u=new AbortController,d=e._preflight;if(e._preflight=u,l||c?.[1](),d?.abort(),!u.signal.aborted){let t=xn(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await pr(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});Jn(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){G(e,m),await pr(e,n);return}e._preflight=void 0;let g,_=()=>gr(e,y,f,()=>cr(e,y),t?.sync,h),v=t?.sync?new Promise(e=>g=e):Promise.resolve().then(_),y=[p,s,a,m,Date.now(),v.then(()=>pr(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&Yn(e,t,!1)}n[0].abort(),G(e,n[3],y[3],!0)}e._tx===y?(e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),(h||!e._committed.length&&m[0]?.status!==`success`&&!m.some(e=>e._notFound))&&cr(e,y),g?.(_()),await y[5]):(G(e,y[3]),y[3]=[],g?.(),await pr(e,y))}async function vr(e,t){let n=e.buildLocation(t);for(let t=0;;t++){let r=e._committed,i=new AbortController,a,o,s;try{try{a=e.matchRoutes(n,{_controller:i}),Jn(a),o=(e._preloads??=new Map).set(i,a),s=await sr(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),G(e,a)),i.abort()}if(!Hn(s))return s[1];if(!o||s.length<3)return;n=s[2]}catch(e){N(e)||console.error(e);return}}}var yr=`Error preloading route! ☝️`,br=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=xt:this.parentRoute||nt();let r=n?xt:t?.path;r&&r!==`/`&&(r=it(r));let i=t?.id||r,a=n?xt:rt((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:rt(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=M(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>St({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},xr=class{constructor({id:e}){this.notFound=e=>ft({routeId:this.id,...e}),this.redirect=e=>St({from:this.id,...e}),this.id=e}},Sr=class extends br{constructor(e){super(e)}},q=e(r(),1);function Cr(e,t){let n=e.stores.location,r=new Set,i,a,o=n=>{Bn(e,t,n)||(i=n,r.forEach(e=>e()))};return[()=>i??n.get(),e=>(r.size||(i=n.get(),a=n.subscribe(o).unsubscribe),r.add(e),()=>{r.delete(e),r.size||(a(),i=void 0)})]}var wr=q.createContext(void 0),Tr=q.createContext(void 0),J=i();function Er(...e){let t=q.useRef(e),n=t.current;return e.forEach((e,t)=>{j(n[t],e,!1,!0)||(n[t]=e)}),t.current}function Dr(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(yr)})}function Or(e,t){let n=typeof e==`string`&&Xe(e);if(n)return t.has(n)?e:null}function kr(e,t,n,r){let i=ot(e.pathname,r),a=ot(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!j(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function Ar(e,t,n){let r=O(),i=q.useRef(null),a=q.useCallback(e=>{if(i.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:o,to:s,preload:c,preloadDelay:l,disabled:u,target:d,onClick:f,onBlur:p,onFocus:m,onMouseEnter:h,onMouseLeave:g,onTouchStart:_}=e,[v,y,b]=Er(e.search,e.params,o),x=q.useContext(wr),S=(r.stores._linkScopes??={})[x]??=Cr(r,x),[C,w,ee]=q.useMemo(()=>{let t=Or(s,r.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},i,a,o,c=()=>{let e=S[0]();if(e!==i){n._fromLocation=e;let t=r.buildLocation(n),o=Lr(t,r,u),s=u||o&&!Xe(o)?kr(e,t,b,r.basepath):void 0;a&&a[0]===o&&a[1]===s||(a=[o,s]),i=e}return a};return[n,c,b?.includeHash&&(()=>{let e=c();return e[1]?o??=[e[0],!1]:e})]},[r,S,e.from,e.hash,e.href,s,v,y,e.state,e.mask,e.unsafeRelative,b,u]),[T,te]=q.useSyncExternalStore(S[1],w,ee||w),ne=te===void 0&&T,re=u||T===void 0,ie=q.useRef(!1),E=e.reloadDocument||ne||re?!1:c??r.options.defaultPreload,ae=l??r.options.defaultPreloadDelay??0,oe=q.useCallback(e=>{let t=e?.isIntersecting;t??E===`intent`?ae?i.t??=setTimeout(()=>{i.t=void 0,Dr(r,C)},ae):Dr(r,C):t===!1&&Ir(i)},[r,C,i,E,ae]);q.useEffect(()=>{if(!E)return;E===`render`&&!ie.current&&(ie.current=!0,Dr(r,C));let e=!0,t;return E===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&oe(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),Ir(i)}},[r,C,E,oe,i]);let D=Pr(e,n);if(D.ref=t?a:i,ne)return D.href=ne,D;let se=t=>{let n=d??t.currentTarget.getAttribute(`target`);re||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),Ir(i),r.navigate({...e,_fromLocation:C._fromLocation}))},ce=()=>{E===`intent`&&Dr(r,C)},le=()=>{E===`intent`&&Ir(i)};return D.onClick=Y(f,se),D.onBlur=Y(p,le),D.onFocus=Y(m,oe),D.onMouseEnter=Y(h,oe),D.onMouseLeave=Y(g,le),D.onTouchStart=Y(_,ce),Fr(D,e,te,T,re,n)}var jr={},Mr={className:`active`},Nr=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function Pr(e,t){let n={};for(let r in e)Nr.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function Fr(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=ze(n?o:s,{})??(n?Mr:jr);Object.assign(e,d),e.href=r,a!==`a`&&(e.disabled=i),e.target=u;let f=d.style;(l||f)&&(e.style=l&&f?{...l,...f}:l||f);let p=d.className;return(c||p)&&(e.className=c?p?`${c} ${p}`:c:p),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var Ir=e=>{clearTimeout(e.t),e.t=void 0},Y=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function Lr(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!Qe(i,t.protocolAllowlist))return i}var Rr=q.memo(q.forwardRef((e,t)=>{let n=e._asChild||`a`,r=Ar(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return q.createElement(n,r,i)}),zr);function zr(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!Nr.has(r)||!j(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var Br=t((e=>{var t=r();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:n,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Vr=t(((e,t)=>{t.exports=Br()})),Hr=t((e=>{var t=r(),n=Vr();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=n.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),Ur=t(((e,t)=>{t.exports=Hr()})),Wr=Ur();function Gr(e,t){return e===t}function X(e,t=e=>e,n){let r=n?.compare??Gr,i=(0,q.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,q.useCallback)(()=>e.get(),[e]);return(0,Wr.useSyncExternalStoreWithSelector)(i,a,a,t,r)}function Kr({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0)n=e.nextSub;else{for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}}while(1)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(1)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function qr(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var Jr=[],Yr=0,{link:Xr,unlink:Zr,propagate:Qr,checkDirty:$r,shallowPropagate:ei}=Kr({update(e){return e._update()},notify(e){Jr[ni++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,ai(e))}}),ti=0,ni=0,Z,ri=0;function ii(e){try{++ri,e()}finally{--ri||oi()}}function ai(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Zr(n,e)}function oi(){if(!(ri>0)){for(;ti<ni;){let e=Jr[ti];Jr[ti++]=void 0,e.notify()}ti=0,ni=0}}function si(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:+!n,get(){return Z!==void 0&&Xr(i,Z,Yr),i._snapshot},subscribe(e){let t=qr(e),n={current:!1},r=ci(()=>{i.get(),n.current?(Z=void 0,t.next?.(i._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Z,o=t?.compare??Object.is;if(n)Z=i,++Yr,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Z=a,n&&(i.flags&=-5),ai(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&$r(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&ei(e)}}else e&32&&(i.flags=e&-33);return Z!==void 0&&Xr(i,Z,Yr),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Qr(e),ei(e),oi())}},i}function ci(e){let t=()=>{let t=Z;Z=n,++Yr,n.depsTail=void 0,n.flags=6;try{return e()}finally{Z=t,n.flags&=-5,ai(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&$r(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,ai(this)}};return t(),n}var li={};function ui(e,t){let n=q.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=A(n.current,i):i}}function Q(e){let t=O(),n=q.useContext(e.from?Tr:wr),r=e.from??n,i=t.stores.getMatchStore(r),a=ui(e,t),o=X(i,e=>e?a(e):li);if(o!==li)return o;(e.shouldThrow??!0)&&nt()}function di(e){return Q({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function fi(e){let{select:t,...n}=e;return Q({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function pi(e){return Q({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function mi(e){return Q({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function hi(e){return Q({...e,select:t=>e.select?e.select(t.context):t.context})}function gi(e){return new _i({id:e})}var _i=class extends xr{constructor({id:e}){super({id:e}),this.useMatch=e=>Q({...e,from:this.id}),this.useRouteContext=e=>hi({...e,from:this.id}),this.useSearch=e=>mi({...e,from:this.id}),this.useParams=e=>pi({...e,from:this.id}),this.useLoaderDeps=e=>fi({...e,from:this.id,strict:!1}),this.useLoaderData=e=>di({...e,from:this.id,strict:!1}),this.useNavigate=()=>{let e=O();return Pe({from:e.routesById[this.id].fullPath})},this.notFound=e=>ft({routeId:this.id,...e}),this.Link=q.forwardRef((e,t)=>{let n=O().routesById[this.id].fullPath;return(0,J.jsx)(Rr,{ref:t,from:n,...e})})}},vi=class extends br{constructor(e){super(e),this.useMatch=e=>Q({...e,from:this.id}),this.useRouteContext=e=>hi({...e,from:this.id}),this.useSearch=e=>mi({...e,from:this.id}),this.useParams=e=>pi({...e,from:this.id}),this.useLoaderDeps=e=>fi({...e,from:this.id}),this.useLoaderData=e=>di({...e,from:this.id}),this.useNavigate=()=>Pe({from:this.fullPath}),this.Link=q.forwardRef((e,t)=>(0,J.jsx)(Rr,{ref:t,from:this.fullPath,...e}))}};function yi(e){return new vi(e)}function bi(){return e=>Si(e)}var xi=class extends Sr{constructor(e){super(e),this.useMatch=e=>Q({...e,from:this.id}),this.useRouteContext=e=>hi({...e,from:this.id}),this.useSearch=e=>mi({...e,from:this.id}),this.useParams=e=>pi({...e,from:this.id}),this.useLoaderDeps=e=>fi({...e,from:this.id}),this.useLoaderData=e=>di({...e,from:this.id}),this.useNavigate=()=>Pe({from:this.fullPath}),this.Link=q.forwardRef((e,t)=>(0,J.jsx)(Rr,{ref:t,from:this.fullPath,...e}))}};function Si(e){return new xi(e)}function Ci(e){return e=>{let t=yi(e);return t.isRoot=!1,t}}function wi(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(Ge(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if(Ne)Ne(a());else throw a()}return q.createElement(r,e)};return o.preload=a,o}var Ti=class extends q.Component{constructor(...e){super(...e),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:0}:{resetKey:n}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;return e?q.createElement(this.props.errorComponent??Ei,{error:e[0],reset:this.reset}):this.props.children}};function Ei({error:e}){let[t,n]=q.useState(!1);return(0,J.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,J.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,J.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,J.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,J.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,J.jsx)(`div`,{children:(0,J.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e?.message?(0,J.jsx)(`code`,{children:e.message}):null})}):null]})}var Di=()=>!0,Oi=()=>!1;function ki({children:e,fallback:t=null}){return(0,J.jsx)(q.Fragment,{children:Ai()?e:t})}function Ai(e=!0){return q.useSyncExternalStore(ji,Di,e?Oi:Di)}function ji(){return()=>{}}function Mi(e){let t=O(),n=`not-found-${X(t.stores.location,e=>e.pathname)}-${X(t.stores.status)}`;return(0,J.jsx)(Ti,{getResetKey:()=>n,onCatch:(t,n)=>{if(N(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(N(t))return e.fallback?.(t);throw t},children:e.children})}function Ni(){return(0,J.jsx)(`p`,{children:`Not Found`})}function Pi(e,t,n){return t.options.notFoundComponent?(0,J.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,J.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,J.jsx)(Ni,{})}function Fi(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,J.jsx)(n,{}):null}var Ii=(e,t)=>e[0]===t[0]&&e[1]===t[1],Li=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,Ri=q.memo(function({routeId:e}){let t=O();return zi(t,X(t.stores.getMatchStore(e)))});function zi(e,t){let n=e.routesById[t.routeId],r=Fi(e,n),i=n.options.errorComponent??e.options.defaultErrorComponent,a=n.options.onCatch??e.options.defaultOnCatch,o=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,s=t.ssr===!1||t.ssr===`data-only`,c=Li(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s)),l=(0,J.jsx)(Bi,{match:t});s&&(l=(0,J.jsx)(ki,{fallback:r,children:l})),o&&(l=(0,J.jsx)(Mi,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return q.createElement(o,e)},children:l})),i&&(l=(0,J.jsx)(Ti,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(N(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:l})),c&&(l=(0,J.jsx)(q.Suspense,{fallback:r,children:l}));let u=n.isRoot&&n.options.shellComponent;return u?(0,J.jsx)(wr.Provider,{value:t.routeId,children:(0,J.jsxs)(u,{children:[l,null]})}):(0,J.jsxs)(wr.Provider,{value:t.routeId,children:[l,null]})}var Bi=q.memo(function({match:e}){let t=O(),n=e.routeId,r=t.routesById[n],i=q.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),a=q.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,J.jsx)(e,{},i):(0,J.jsx)(Vi,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!Li(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return Fi(t,r)}if(e.status===`notFound`)return Pi(t,r,e.error);if(e.status===`error`)throw e.error;return a}),Vi=q.memo(function(){let e=O(),t=q.useContext(wr),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=X(a,e=>[!!e._notFound,e.error],{compare:Ii}),i=X(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return Pi(e,e.routesById[t],r);if(!i)return null;let a=(0,J.jsx)(Ri,{routeId:i});return t===`__root__`?(0,J.jsx)(q.Suspense,{fallback:Fi(e),children:a}):a});function Hi(e,t){let n=e[1];e.length=0,n?.(t)}function Ui({t:e}){let t=O(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{Hi(n,!1),n.push(i,a),e(t),q.startTransition(r)}),Fe(()=>{let e=t.history.subscribe(t.load);t.updateLatestLocation();let r=t.latestLocation,i=t.buildLocation({to:r.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(M(r.publicHref)!==M(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),e;let a=t.stores.resolvedLocation.get();return a?.href===r.href&&a.state.__TSR_key===r.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...xn(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}function Wi(){let e=O(),t=e.routesById[xt],n=Fi(e,t),r=(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Ui,{t:q.useState()[1]}),e.ssr?(0,J.jsx)(Gi,{}):(0,J.jsx)(q.Suspense,{fallback:n,children:(0,J.jsx)(Gi,{})})]});return e.options.InnerWrap?(0,J.jsx)(e.options.InnerWrap,{children:r}):r}function Gi(){let e=O(),t=e._rendered,n=X(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;Fe(()=>{t[0]===n&&Hi(t,!0)},[t,n]);let a=i?(0,J.jsx)(Ri,{routeId:i}):null;return e.options.disableGlobalCatchBoundary?a:(0,J.jsx)(Ti,{getResetKey:()=>r,onCatch:void 0,children:a})}function Ki(){let e=O();return q.useCallback(t=>{let{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a,...o}=t;return e.matchRoute(o,{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a})},[e,X(e.stores.location,e=>e.href),X(e.stores.resolvedLocation,e=>e?.href),X(e.stores.status)])}var qi=e=>({createMutableStore:si,createReadonlyStore:si,batch:ii}),Ji=e=>new Yi(e),Yi=class extends Tn{constructor(e){super(e,qi)}};function Xi({router:e,children:t,...n}){Ve(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,J.jsx)(Me.Provider,{value:e,children:t});return e.options.Wrap?(0,J.jsx)(e.options.Wrap,{children:r}):r}function Zi({router:e,...t}){return(0,J.jsx)(Xi,{router:e,...t,children:(0,J.jsx)(Wi,{})})}var $=n(),Qi=a();function $i(e,t){return n=>{if(!Te(e)(n))return t(n);let r=Ce(e)(n);return t({...De(n,(t,n)=>!he(e.fields,n)||he(r,n)),...r})}}var ea=new Map([[`bold`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z`}))],[`duotone`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z`,opacity:`0.2`}),q.createElement(`path`,{d:`M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z`}))],[`fill`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z`}))],[`light`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z`}))],[`regular`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z`}))],[`thin`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z`}))]]),ta=q.forwardRef((e,t)=>q.createElement(Le,{ref:t,...e,weights:ea}));ta.displayName=`HouseIcon`;var na=new Map([[`bold`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Zm-60-52a16,16,0,1,1-16-16A16,16,0,0,1,144,152Z`}))],[`duotone`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z`,opacity:`0.2`}),q.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z`}))],[`fill`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80Zm-80,84a12,12,0,1,1,12-12A12,12,0,0,1,128,164Zm32-84H96V56a32,32,0,0,1,64,0Z`}))],[`light`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Zm-72-56a10,10,0,1,1-10-10A10,10,0,0,1,138,152Z`}))],[`regular`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z`}))],[`thin`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-76-56a8,8,0,1,1-8-8A8,8,0,0,1,136,152Z`}))]]),ra=q.forwardRef((e,t)=>q.createElement(Le,{ref:t,...e,weights:na}));ra.displayName=`LockIcon`;function ia(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Re(`flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-none border-dashed p-6 text-center text-balance`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,J.jsx)(`div`,{"data-slot":`empty`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function aa(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Re(`flex max-w-sm flex-col items-center gap-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,J.jsx)(`div`,{"data-slot":`empty-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var oa=h(`mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`flex size-8 shrink-0 items-center justify-center rounded-none bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4`}},defaultVariants:{variant:`default`}});function sa(e){let t=(0,$.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,variant:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o;t[4]!==n||t[5]!==a?(o=Re(oa({variant:a,className:n})),t[4]=n,t[5]=a,t[6]=o):o=t[6];let s;return t[7]!==r||t[8]!==o||t[9]!==a?(s=(0,J.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":a,className:o,...r}),t[7]=r,t[8]=o,t[9]=a,t[10]=s):s=t[10],s}function ca(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Re(`font-heading text-sm font-medium`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,J.jsx)(`div`,{"data-slot":`empty-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function la(){let e=(0,$.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,J.jsx)(`a`,{href:`/`,"aria-label":`Home`}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,J.jsx)(ia,{"aria-label":`Page not found`,children:(0,J.jsxs)(d,{variant:`outline`,size:`sm`,render:t,nativeButton:!1,children:[(0,J.jsx)(ta,{}),`Home`]})}),e[1]=n):n=e[1],n}var ua=ee(e=>be(ye(()=>location.replace(e))));function da(e){let t=(0,$.c)(2),n;return t[0]===e.href?n=t[1]:(n=ua(e.href),t[0]=e.href,t[1]=n),u(n),null}function fa(){let e=(0,$.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,J.jsx)(ia,{role:`status`,children:(0,J.jsxs)(aa,{children:[(0,J.jsx)(sa,{variant:`icon`,children:(0,J.jsx)(ra,{})}),(0,J.jsx)(ca,{children:`Access denied`})]})}),e[0]=t):t=e[0],t}function pa(e){let t=(0,$.c)(4),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,J.jsx)(f,{}),t[0]=n):n=t[0];let r=e.label??`Can’t load this view`,i;return t[1]!==e.reset||t[2]!==r?(i=(0,J.jsx)(ia,{role:`alert`,children:(0,J.jsxs)(d,{variant:`destructive`,size:`sm`,onClick:e.reset,children:[n,r]})}),t[1]=e.reset,t[2]=r,t[3]=i):i=t[3],i}function ma(e){let t=(0,$.c)(4);if(c(e.error)){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,J.jsx)(da,{href:b(location.href)}),t[0]=e):e=t[0],e}if(p(e.error)){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,J.jsx)(fa,{}),t[1]=e):e=t[1],e}let n;return t[2]===e.reset?n=t[3]:(n=(0,J.jsx)(pa,{reset:e.reset}),t[2]=e.reset,t[3]=n),n}function ha(e){let t=(0,$.c)(12),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={includeFailure:!0},t[0]=n):n=t[0];let r=o(e.atom,n),i=S(e.atom),a=e.frame??je,s;if(t[1]!==a||t[2]!==e.children||t[3]!==i||t[4]!==r){let n;t[6]!==e.children||t[7]!==r?(n=()=>T(re(r),{onNone:ie,onSome:e.children}),t[6]=e.children,t[7]=r,t[8]=n):n=t[8];let o;t[9]!==a||t[10]!==i?(o=e=>a((0,J.jsx)(ma,{error:fe(e),reset:i})),t[9]=a,t[10]=i,t[11]=o):o=t[11],s=T(y(r),{onNone:n,onSome:o}),t[1]=a,t[2]=e.children,t[3]=i,t[4]=r,t[5]=s}else s=t[5];return s}var ga=new WeakSet;function _a(e,t){return Ee(w(C(t,t=>te(e.registry,t),{concurrency:`unbounded`,discard:!0}),de(we(`30 seconds`)),_e,ge,de(C(t,t=>w(e.registry,oe(t),E),{concurrency:`unbounded`,discard:!0})),Oe(`200 millis`),ne))}function va(e){let t=(0,$.c)(2);(0,q.use)(e.loaded);let n;return t[0]===e.router?n=t[1]:(n=(0,J.jsx)(Zi,{router:e.router}),t[0]=e.router,t[1]=n),n}function ya(e,t){let n=document.querySelector(`#root`);if(ae(n))throw TypeError(`Missing application mount element with id "root"`);let r=se({defaultIdleTTL:400,scheduleTask:s}),i=Ji({context:{registry:r},defaultErrorComponent:ma,defaultNotFoundComponent:la,defaultPreload:`intent`,routeTree:e,scrollRestoration:!0,stringifySearch:T(me(t),{onNone:()=>vt,onSome:e=>$i(e,vt)})});function a(e,t,n){if(ce(e)){if(ga.has(e))return;ga.add(e)}r.set(_,{error:e,route:w(Se(i.state.matches,t=>t.error===e),xe(()=>pe(i.state.matches)),ke(e=>ue(e.routeId,D)),Ae(le(`__root__`))),source:t,...T(me(n),{onNone:()=>({}),onSome:e=>({stack:e})})})}return i.update({defaultOnCatch:(e,t)=>a(e,`route`,t.componentStack)}),(0,Qi.createRoot)(n,{onCaughtError:(e,t)=>a(e,`caught`,t.componentStack),onUncaughtError:(e,t)=>a(e,`uncaught`,t.componentStack)}).render((0,J.jsx)(q.StrictMode,{children:(0,J.jsx)(x.Provider,{value:r,children:(0,J.jsx)(va,{loaded:i.load(),router:i})})})),i}var ba=bi()({shellComponent:e=>(0,J.jsx)(`div`,{className:`bg-background text-foreground pt-safe-top pr-safe-right pl-safe-left flex h-dvh w-dvw flex-col`,children:e.children})}),xa=Ci(`/(home)`)({component:wi(()=>Ie(()=>import(`./route-DgC9Q8hG.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])),`component`),loader:e=>_a(e.context,[g]),validateSearch:ve(v)}),Sa=Ci(`/(home)/`)({component:wi(()=>Ie(()=>import(`./(home)-lrbFN1uI.js`),__vite__mapDeps([10,1,2,3,4,5,9,11])),`component`),loader:e=>_a(e.context,[l])}),Ca=Ci(`/(home)/people`)({component:wi(()=>Ie(()=>import(`./people-sXIMHuMW.js`),__vite__mapDeps([12,1,2,3,4,5,7,11,6])),`component`),loader:e=>_a(e.context,[m])}),wa=xa.update({id:`/(home)`,getParentRoute:()=>ba}),Ta=Sa.update({id:`/`,path:`/`,getParentRoute:()=>wa}),Ea={homePeopleRoute:Ca.update({id:`/people`,path:`/people`,getParentRoute:()=>wa}),homeIndexRoute:Ta},Da={homeRouteRoute:wa._addFileChildren(Ea)};ya(ba._addFileChildren(Da)._addFileTypes(),v);export{ca as a,gi as c,Rr as d,sa as i,Ur as l,ia as n,Ki as o,aa as r,Vi as s,ha as t,Vr as u};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/route-DVe67awL.js","assets/rolldown-runtime-XKyaHtl9.js","assets/react-DLGSahv8.js","assets/auth-CiBso9-1.js","assets/effect-CfZLtXM0.js","assets/dist-BPRUA1hI.js","assets/app-bar-DsHRTR2c.js","assets/preload-helper-Cp12E29U.js","assets/dropdown-menu-CEOlArzC.js","assets/marks-DVv3lWZ2.js","assets/(home)-pFFHaca4.js","assets/format-DhqC219q.js","assets/people-DVpTTprn.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{a as n,o as r,r as i,t as a}from"./react-DLGSahv8.js";import{S as o,T as s,_ as c,a as l,b as u,c as d,d as f,g as p,i as m,l as h,n as g,p as _,t as v,u as y,v as b,w as x,x as S}from"./auth-CiBso9-1.js";import{$t as C,Br as w,D as ee,Dr as T,F as te,Gt as ne,H as re,Ir as ie,Jt as E,Mr as ae,N as oe,On as D,P as se,Pr as ce,Rr as le,Tr as ue,Ut as de,Xn as fe,ar as pe,br as me,dr as he,en as ge,fn as _e,ft as ve,hn as ye,j as be,kr as xe,nr as Se,ot as Ce,pn as we,st as Te,un as Ee,ur as De,vn as Oe,vr as ke,xr as Ae,zr as je}from"./effect-CfZLtXM0.js";import{a as Me,i as O,o as Ne,r as Pe,s as Fe,t as Ie}from"./preload-helper-Cp12E29U.js";import{R as Le,t as Re}from"./dist-BPRUA1hI.js";function k(e){return e[e.length-1]}function ze(e,t){return typeof e==`function`?e(t):e}var Be=Object.prototype.hasOwnProperty;function Ve(e){for(let t in e)if(Be.call(e,t))return!0;return!1}var He=()=>Object.create(null),Ue=(e,t)=>A(e,t,!0);function A(e,t,n,r=0){if(e===t)return e;if(r++>500)return t;let i=Array.isArray(e)&&Array.isArray(t);if(!i&&!(We(e)&&We(t)))return t;let a=Object.keys(e),o=a.length,s=Object.keys(t),c=s.length;if(i?o!==e.length||c!==t.length||o&&k(a)!==`${o-1}`||c&&k(s)!==`${c-1}`:o!==Object.getOwnPropertyNames(e).length||c!==Object.getOwnPropertyNames(t).length||Object.getOwnPropertySymbols(t).length)return t;let l=0,u,d,f;if(i){for(;l<c&&(f=l,d=e[f],u=t[f],u=d===u?d:typeof d==`object`?A(d,u,n,r):u,u===d);l++);if(l===c&&o===c)return e}else{let i=o===c,p=!0;for(;l<c;l++){f=s[l],d=e[f];let o=t[f];u=d===o?d:typeof d==`object`?A(d,o,n,r):o,i&&=u===d&&(a[l]===f||Be.call(e,f)),p&&=Object.is(u,o),a[l]=u}if(i)return Object.getOwnPropertySymbols(e).length?t:e;if(p)return t}let p=i?s.fill(0):n?He():{};for(let o=0;o<c;o++)f=i?o:s[o],i?(d=e[f],o>l&&(u=t[f],u=d===u?d:typeof d==`object`?A(d,u,n,r):u),p[f]=o<l?d:u):p[f]=a[o];return p}function We(e){return!e||typeof e!=`object`?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function j(e,t,n,r){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,a=e.length;i<a;i++){let a=e[i],o=t[i];if(a!==o&&!j(a,o,n,r))return!1}return!0}if(We(e)&&We(t)){if(n){for(let i in t)if((r||t[i]!==void 0)&&!j(e[i],t[i],n,r))return!1;return!0}let i=0;if(r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;for(let a in t)if((r||t[a]!==void 0)&&(i--===0||!j(e[a],t[a],n,r)))return!1;return i===0}return!1}function Ge(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}var Ke=/[\x00-\x1f\x7f"<>`{}]/g;function qe(e){return e.replace(Ke,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function Je(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return qe(t)}var Ye=[`http:`,`https:`,`mailto:`,`tel:`];function Xe(e){if(e[0]!==`/`&&e.includes(`:`))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(e)?.[1]?.replace(/[\t\n\r]/g,``).toLowerCase()}var Ze=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function Qe(e,t){if(!e)return!1;if(Ze.test(e))return!0;let n=Xe(e);return n?!t.has(n):!1}function $e(e){if(!e)return e;let t=e;if(/[%\\\x00-\x1f\x7f]/.test(e)){let n=/%25|%5C/gi,r=0,i;for(t=``;(i=n.exec(e))!==null;)t+=Je(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=Je(r?e.slice(r):e)}return t}function et(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function tt(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function nt(){throw Error(`Invariant failed`)}function rt(e){return e.replace(/\/{2,}/g,`/`)}function it(e){return e===`/`?e:e.replace(/^\/+/,``)}function M(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function at(e){return M(it(e))}function ot(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function st(e,t,n=`never`,r){if(t.includes(`//`)&&(t=rt(t)),t.startsWith(`/`))return t.length===1||n===`preserve`?t:n===`always`?t.endsWith(`/`)?t:`${t}/`:t.endsWith(`/`)?t.slice(0,-1):t;let i=t===`.`,a;if(r){a=i?e:e+`\0`+t;let n=r.get(a);if(n)return n}let o;if(i)o=e.split(`/`);else{for(e.includes(`//`)&&(e=rt(e)),o=e.split(`/`);o.length>1&&k(o)===``;)o.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&o.push(r):o=[r]:r===`..`?o.length>1?o.pop():o=[``]:r===`.`||o.push(r)}}o.length>1&&(k(o)===``?n===`never`&&o.pop():n===`always`&&o.push(``));let s=o.join(`/`),c=(i?rt(s):s)||`/`;return a&&r&&r.set(a,c),c}function ct(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=new RegExp([...t.keys()].join(`|`).replace(/[.*()]/g,`\\$&`),`g`);return e=>e.replace(n,e=>t.get(e)??e)}function lt(e){return e==null||e===``}function ut(e,t,n){if(typeof t!=`string`)return``+(t??void 0);let r=e===`_splat`;if(r&&(!t||/^[a-zA-Z0-9\-._~!/]*$/.test(t)))return t;let i=encodeURIComponent(t);return r&&(i=i.replaceAll(`%2F`,`/`)),n?n(i):i}function dt(e,t,n,r,i){let a=e.endsWith(`/`)?`/`:``,o=``;for(let e of t){if(typeof e==`string`){o+=e;continue}let[t,s,c,l]=e,u=t===2,d=u&&l!==void 0?l+a:l,f=n[s];if(t!==3||f!=null){if(i&&(i[s]=f,u&&(i[`*`]=f)),u&<(f)){if(c===`/`&&!d)continue;f=``}o+=c+ut(s,f,r)+(d||``)}}return o+a||`/`}function ft(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function N(e){return e?.isNotFound===!0}function pt(e,t=String){let n;for(let r in e){let i=e[r];i!==void 0&&(n||=new URLSearchParams).set(r,t(i))}return n?n.toString():``}function mt(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function ht(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=mt(r):Array.isArray(t)?t.push(mt(r)):n[e]=[t,mt(r)]}return n}var gt=/^(?:\s|["[{\d-]|fa|nu|tr)/,_t=yt(JSON.parse),vt=bt(JSON.stringify,JSON.parse);function yt(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.slice(1));let r=ht(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!gt.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function bt(e,t){let n=t===JSON.parse;function r(r){if(r&&typeof r==`object`)try{return e(r)}catch{}else if(t&&typeof r==`string`){if(n&&!gt.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=pt(e,r);return t?`?${t}`:``}}var xt=`__root__`;function St(e){e.statusCode=e.statusCode||e.code||307;let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Ct(e){return e instanceof Response&&!!e.options}function wt(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var P=4,Tt=5;function Et(e){let t=e.names;if(t)return t;let n=[];for(let t of e)typeof t!=`string`&&n.push(t[1]);return e.names=n}function Dt(e,t,n){let r=e.slice(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.slice(1),``,``];let i=r.indexOf(`{`);if(i>=0){let a=r.indexOf(`}`,i),o=r.charCodeAt(i+1)===45,s=i+(o?3:2);if(a>=0&&r.charCodeAt(s-1)===36&&(!o||s<a)){let c=r.slice(s,a);return[o?3:c?1:2,c||`_splat`,r.slice(0,i),e.slice(t+a+1,c?n:e.length)]}}return r}function Ot(e,t,n,r,i,a){let o=n,s=t.fullPath??t.from,c=t.options,l=s.length,u=s.endsWith(`/`)?l-1:l,d=c?.caseSensitive??e,f=c?.params?.parse??c?.parseParams,p,m=a?n-1:0;if(!r||s.includes(`$`)){p=a?.slice()??[];let e=k(p);e&&typeof e!=`string`&&e[0]===2&&(p[p.length-1]=[e[0],e[1],e[2],e[3]===void 0?void 0:e[3]+s.substring(n-(s[n-2]===`/`?2:1),u)],m=l)}for(;o<l;){let e=o,t=s.indexOf(`/`,e),n=t===-1?l:t,a=Dt(s,e,n);o=n+1;let c;if(typeof a==`string`){if(!r)continue;let e=a,t;d?t=r.static??=new Map:(e=a.toLowerCase(),t=r.staticInsensitive??=new Map);let n=t.get(e);if(n)c=n;else{let n=F(r);c=n,t.set(e,n)}}else{let t=a[0],h=a[2],g=a[3]??``;if(t===2&&(n=l,o=n+1),p&&m<n&&(m<e-1&&p.push(s.slice(m,e-1)),a[2]=`/`+h,t===2&&a[3]!==void 0&&u<l&&(a[3]=g.slice(0,-1)),p.push(a),m=n),!r)continue;let _=d&&!!(h||g);d||(h=h.toLowerCase(),g=g.toLowerCase());let v=t===1?r.dynamic??=[]:t===3?r.optional??=[]:r.wildcard??=[],y=t!==2&&!f&&v.find(e=>!e.parse&&e.caseSensitive===_&&e.prefix===h&&e.suffix===g);if(y)c=y;else{let e=F(r,t,_,h,g);c=e,v.push(e),v.length===2&&i?.push(v)}}r=c}p&&m<u&&p.push(s.slice(m,u));let h=p?.slice();if(!r)return h;if(f&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf(`/`)+1)===95){let e=F(r,Tt);(r.pathless??=[]).push(e),r=e}let g=(t.path||!t.children)&&!t.isRoot;if(g&&u<l){let e=F(r,P);r.index=e,r=e}return r.parse=f??null,r.priority=c?.params?.priority??0,r.route||(r.data=h,g&&(r.route=t)),[r,o,h]}function kt(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function F(e,t=0,n,r,i){return{kind:t,depth:e?e.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:e,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function At(e,t){let n=F(),r=[];function i(e,t,n,a){let[o,s,c]=Ot(!1,e,t,n,r,a);if(e.children)for(let t of e.children)i(t,s,o,c)}for(let t of e)i(t,1,n);for(let e of r)e.sort(kt);t.masksTree=n,t.flatCache=wt(1e3)}function jt(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=Ft(e,t.masksTree);return t.flatCache.set(e,r),r}function Mt(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=F(),Ot(t,{from:e},1,o),i.singleCache.set(a,o)),Ft(r,o,n)}function Nt(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=Ft(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Lt(a.route)),t.matchCache.set(r,a),a}function Pt(e,t=!1){let n=F(),r=[],i={},a={},o=0;function s(e,n,c,l){if(e.init(o),e.id in i&&nt(),i[e.id]=e,o!==0&&e.path){let t=M(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}o++;let[u,d,f]=Ot(t,e,n,c,r,l);if(e._interpolation=f,e.children)for(let t of e.children)s(t,d,u,f)}s(e,1,n);for(let e of r)e.sort(kt);return{processedTree:{segmentTree:n,singleCache:wt(1e3),matchCache:wt(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function Ft(e,t,n=!1){let r=e.split(`/`),i=zt(e,r,t,n);if(!i)return null;let[a]=It(e,r,i);return{route:i.node.route,rawParams:a}}function It(e,t,n){let r=Rt(n.node),i=n.node.data&&Et(n.node.data),a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.param??0;for(;s<r.length;o++,s++,c++){let u=r[s];if(u.kind===P)break;if(u.kind===Tt){o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1||u.kind===3){let e=i[l++];if(u.kind===3&&n.skipped&1<<s){o--,c=f-1;continue}let t=u.suffix||u.prefix?d.substring(u.prefix.length,d.length-u.suffix.length):d;(t||u.kind===1)&&(a[e]=decodeURIComponent(t))}else if(u.kind===2){let t=u,n=e.substring(f+t.prefix.length,e.length-t.suffix.length),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,param:l}]}function Lt(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Rt(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function zt(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!k(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!Ut(l,n))continue;if(i.parse){if(!Ht(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==P&&Ut(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===P||i.kind===2)&&Ut(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[u],y;if(_&&i.index){let n={node:i.index,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(Ht(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&Vt(f,o))return n;Ut(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!r||!_&&(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)){if(a){if(_)continue;let e=t.slice(u).join(`/`),i=e.slice(-a.length);if((n.caseSensitive?i:i.toLowerCase())!==a||e.length-a.length<r.length)continue}s.push({node:n,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(i.optional){let e=d|1<<i.depth+1;for(let t=i.optional.length-1;t>=0;t--){let n=i.optional[t];s.push({node:n,index:u,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p,optionals:m+Bt(o,u),extract:h,rawParams:g})}}if(!_&&i.dynamic&&v)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p+Bt(o,u),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,statics:f+Bt(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&s.push({node:e,index:u+1,skipped:d,statics:f+Bt(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(i.pathless)for(let e=i.pathless.length-1;e>=0;e--){let t=i.pathless[e];s.push({node:t,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function Bt(e,t){return 2**(e-t-1)}function Vt(e,t){return e===2**(t-1)-1}function Ht(e,t,n){let r,i;try{[r,i]=It(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Ut(e,t){return!e||t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===P)>(e.node.kind===P)||t.node.kind===P==(e.node.kind===P)&&t.node.depth>e.node.depth)))}function Wt(){try{return sessionStorage}catch{return}}var Gt=`tsr-scroll-restoration-v1_3`,Kt=Wt();function qt(){try{return JSON.parse(Kt?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var Jt=qt(),Yt=`data-scroll-restoration-id`,Xt=e=>e.state.__TSR_key||e.href;function Zt(e){let t=e.getAttribute(Yt);if(t)return`[${Yt}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var Qt=!1,$t=`window`;function en(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function tn(e){let t=new Set;for(let n of e){if(n===$t)continue;let e=en(n);e&&t.add(e)}return t}function nn(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||Xt,a=new Set,o=e=>{let t=Jt[e]||={};for(let e of a)e===document?t[$t]={scrollX,scrollY}:e.isConnected&&(t[Zt(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,Qt=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{Qt||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{history.scrollRestoration=`auto`,o(i(e.stores.resolvedLocation.get()??e.stores.location.get()));try{Kt?.setItem(Gt,JSON.stringify(Jt))}catch{}}),addEventListener(`pageshow`,e=>{e.persisted&&(history.scrollRestoration=`manual`)})),r.r||(r.r=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.n,c=r.h,l;if(a.clear(),r.n=!0,r.h=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.e&&d&&d!==u){let e=Jt[d];if(e){let t=Jt[u];for(let n in e){if(n===$t){if(s)continue}else{let e=en(n);if(!e||s&&o&&(l??=tn(o),l.has(e)))continue}t||=Jt[u]={},t[n]??=e[n]}}}Qt=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=tn(o));let t=e&&i&&c,s=r.e?Jt[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===$t){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=en(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{Qt=!1}}))}function rn(e,t,n){let r=at(e),i=`/${r}`,a=t?i:i.toLowerCase(),o=`${a}/`,s={input:({url:e})=>{let n=t?e.pathname:e.pathname.toLowerCase();return n===a?e.pathname=`/`:n.startsWith(o)&&(e.pathname=e.pathname.slice(i.length)),e},output:({url:e})=>(e.pathname=rt(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>an(n,s.input({url:e})),output:({url:e})=>s.output({url:on(n,e)})}:s}function an(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function on(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function sn(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{tt(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var I=`__TSR_index`,cn=`popstate`,ln=`beforeunload`,un=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function dn(e){let t=un.exec(e);return t?`/`+e.slice(t[0].length):e}function fn(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`
|
|
3
|
+
\r`.includes(e)?``:encodeURIComponent(e))),dn(e)}function pn(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async n=>{let r=n.navigateOpts?.ignoreBlocker?void 0:e.getBlockers?.();if(typeof document<`u`&&r?.length&&(n.type===`PUSH`||n.type===`REPLACE`))for(let i of r){let r=gn(n.path,n.state);if(await i.blockerFn({currentLocation:t,nextLocation:r,action:n.type})){e.onBlocked?.();return}}n.task()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[I];i=mn(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[I];i=mn(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t,n?.ignoreBlocker??!1),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[I]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r,_getBlockers:()=>e.getBlockers?.()??[]}}function mn(e,t){let n=_n();return{...t,key:n,__TSR_key:n,[I]:e}}function hn(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=t=>fn(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>gn(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=_n();t.history.replaceState({[I]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(t,n,r)=>{let i=e?.createHref?s(n):void 0,a=!!g;a||(u=l),l=gn(n,r),g=[i??l.href,r,g?.[2]||t],a||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(m=!1,f){f=!1;return}let e=c(),n=e.state[I]-l.state[I],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let r=a();if(typeof document<`u`&&r.length){for(let i of r)if(await i.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(-n),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0||typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=pn({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0,m=!0),t.history.back()),forward:e=>{e&&(p=!0,m=!0),t.history.forward()},go:(e,n)=>{d=!0,n&&(p=!0,m=!0),t.history.go(e)},createHref:s,flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(ln,x,{capture:!0}),t.removeEventListener(cn,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return S._ignoreNextBeforeUnload=e=>{m=!1;try{e=new URL(e,t.document.baseURI).href,m=/^https?:/.test(e)&&(!e.includes(`#`)||e.split(`#`)[0]!==t.location.href.split(`#`)[0])}catch{}},t.addEventListener(ln,x,{capture:!0}),t.addEventListener(cn,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function gn(e,t){let n=fn(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=_n();t={[I]:0,key:e,__TSR_key:e}}return{href:n,pathname:n.slice(0,r>-1?i>-1?Math.min(r,i):r:i>-1?i:n.length),hash:r>-1?n.slice(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t}}function _n(){return(Math.random()+1).toString(36).slice(7)}function vn(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function yn(e){return e.pathname+e.search+e.hash}function bn(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function xn(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function Sn({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function Cn(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function wn(e,t,n,r,i,a){r&&(t=t.slice(0,r)),i&&(n=n.slice(0,i));for(let r of t){if(a&&e._tx!==a)return;n.some(e=>e.routeId===r.routeId)||e.routesById[r.routeId].options.onLeave?.(r)}for(let r of n){if(a&&e._tx!==a)return;e.routesById[r.routeId].options[t.some(e=>e.routeId===r.routeId)?`onStay`:`onEnter`]?.(r)}}var Tn=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async e=>(e(),!1),this.update=e=>{let t=this.options;this.options={...t,...e},this.isServer=this.options.isServer??!1??typeof document>`u`,this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:hn()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`;let n=this.options.basepath??`/`,r=this.options.rewrite,i=this.basepath!==n||t?.rewrite!==r||t?.caseSensitive!==this.options.caseSensitive;if(i&&(this.basepath=n,this.rewrite=n!==`/`&&at(n)?rn(n,this.options.caseSensitive,r):r),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;e=this.buildRouteTree(),this.setRoutes(e)}if(this.stores)i&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=sn(this.latestLocation,e),nn(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=Pt(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&At(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:wt(1e3)}},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i},a)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:$e(e),external:!1,searchStr:o,search:Ue(t?.search,i),hash:$e(r.slice(1)),state:A(t?.state,a)}}let o=an(this.rewrite,new URL(i,this.origin)),s=this.options.parseSearch(o.search),c=this.options.stringifySearch(s);return o.search=c,{href:o.href.replace(o.origin,``),publicHref:i,pathname:$e(dn(o.pathname)),external:!!this.rewrite&&vn(o,this.origin),searchStr:c,search:Ue(t?.search,s),hash:$e(o.hash.slice(1)),state:A(t?.state,a)}},r=n(e,e.state),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i,{...i.state,__tempLocation:void 0,key:r.state.key,__TSR_key:r.state.__TSR_key});return e.maskedLocation=r,e}return r},this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>{let t=Object.create(null),n=Nt(M(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{{let t=this.staticLocations.get(e);if(t)return t}let t=!1,n=(n={})=>{if(n.href){let e=gn(n.href,{});n={...n,to:an(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let r=e._fromLocation||this._pendingLocation||this.latestLocation,i,a=()=>(t=!0,r),o=()=>i??=this.matchRoutesLightweight(a()),s=n.to?`${n.to}`:`.`,c=st(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),l=this.routesByPath[M(c)],u=c.includes(`$`),d;if(l)d=l._branch??=Lt(l);else if(u)d=[];else{let[e,t,n]=this.getMatchedRoutes(c);d=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(d=[...d,this.options.notFoundRoute])}let f=u?l?._interpolation??Ot(!1,{fullPath:c},0):void 0,p;for(let e of d){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){let e=o()[3];if(p??=An(n.params,e),!Ve(p))break;p===e&&(p=Object.assign(He(),p));try{Object.assign(p,t(p))}catch{}}}p??=An(n.params,jn(n.params,f)?o()[3]:Mn);let m=e.leaveParams?c:dn($e(f?dt(c,f,p,this.pathParamsDecoder):c)),h=Nn(d,e._includeValidateSearch),g=()=>{let t=o()[2];if(e._includeValidateSearch&&this.options.search?.strict){let e={};d.forEach(n=>{if(n.options.validateSearch)try{Object.assign(e,kn(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},_=h.length?Pn(h,g(),n):n.search===!0?g():typeof n.search==`function`?n.search(g()):n.search||Mn,v=this.options.stringifySearch(_),y=n.hash===!0?a().hash:typeof n.hash==`function`?n.hash(a().hash):n.hash||void 0,b=y?`#${y}`:``,x=n.state?n.state===!0?a().state:typeof n.state==`function`?n.state(a().state):n.state:Mn,S=`${m}${v}${b}`,C,w,ee=!1;if(this.rewrite){let e=new URL(S,this.origin),t=e.origin,n=on(this.rewrite,e);C=yn(e),vn(n,t)?(w=n.href,ee=!0):w=dn(yn(n))}else C=et(S),w=C;return{publicHref:w,href:C,pathname:m,search:_,searchStr:v,state:x,hash:y??``,external:ee,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=jt(r.pathname,this.processedTree);if(t){let i=Object.assign(He(),t.rawParams),{from:a,params:o,...s}=t.route,c=An(o,i);r.maskedLocation=n({from:e.from,...s,params:c})}}return!t&&e._fromLocation&&this.staticLocations.set(e,r),r},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=n.maskedLocation??n;if(r.external)return En(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=M(this.latestLocation.href)===M(n.href)&&j(Sn(n.state),Sn(this.latestLocation.state)),o=this._commitPromise,s,c=new Promise(e=>{s=e});if(c.resolve=()=>{s(),o?.resolve()},this._commitPromise=c,a)this.load();else{let{maskedLocation:r,hashScrollIntoView:a,...o}=n;r&&(o={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state={...o.state,__hashScrollIntoViewOptions:a??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=e,i=n.replace?`REPLACE`:`PUSH`,this.history[i===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:i}})}return this._scroll.n=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,...a}={})=>{let o=this.buildLocation({...a,_includeValidateSearch:!0});this._pendingLocation=o;let s=this.commitLocation({...o,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this._pendingLocation===o&&(this._pendingLocation=void 0)}),s},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=n?Xe(n):void 0;if(a||t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i}),a=t.maskedLocation??t;n??=a.publicHref,r??=a.publicHref}let t=!a&&r?r:n;return En(this,t,i)}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.h=e.action.type===`PUSH`||e.action.type===`REPLACE`),await _r(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(xn(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set,a=e=>{(!n||n(e))&&i.add(e.id)};t.forEach(a),this._cache.forEach(a),r?.forEach(e=>e.forEach(a)),this._tx?.[3].forEach(a);let o=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),o.push(e));let s=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&bn(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(s);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i){let t=this._flights?.get(e);this._flights?.delete(e),t&&!t[2]&&o.push(t[1])}for(let e of o)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.options,n=e.headers.get(`Location`)||t.href;if(!n){let e=this.buildLocation(t);n=(e.maskedLocation??e).publicHref||`/`}let r;if(Ze.test(n)||(r=Xe(n))&&!this.protocolAllowlist.has(r))throw Error(`Redirect blocked: unsafe protocol`);if(r===`http:`||r===`https:`){let e=new URL(n);e.pathname.startsWith(`//`)?n=e.href:vn(e,this.origin)||(n=yn(e),r=void 0)}return r&&(t.reloadDocument=!0),t.href=n,e.headers.set(`Location`,n),e},this.clearCache=e=>{let t=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=L,this.preloadRoute=e=>vr(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?st(e.from||``,e.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=Mt(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!j(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?j(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=ct(e.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??vt,parseSearch:e.parseSearch??_t,protocolAllowlist:e.protocolAllowlist??Ye}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){Object.assign(this,e),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;let t=this.options.notFoundRoute;t&&(t.init(99999999999),this.routesById[t.id]!==t&&(t._interpolation=Ot(!1,t,0)),this.routesById[t.id]=t)}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),a=n,o=!1;(i?i.path!==`/`&&r[`**`]:M(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?Fn(this.options.notFoundMode,a):void 0,c=Array(a.length),l=this._committed,u=(e,t)=>{let n=l[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?l.find(t=>t.routeId===e.id):void 0},d;for(let n=0;n<a.length;n++){let i=a[n],o=c[n-1],l,f,p;{let n=o?.search??e.search,r=o?._strictSearch??void 0;try{let e=kn(i.options.validateSearch,{...n})??void 0;l={...n,...e},f={...r,...e}}catch(e){let r=e;if(e instanceof Dn||(r=new Dn(e.message,{cause:e})),t?.throwOnError)throw r;l=n,f={},p=r}}let m=``,h=``;try{m=i.options.loaderDeps?.({search:l})??``,h=m&&JSON.stringify(m)||``}catch(e){if(t?.throwOnError)throw e;p??=e}let g=He(),_=i._interpolation?dt(i.fullPath,i._interpolation,r,this.pathParamsDecoder,g):i.fullPath,v=i.id+_+h,y=u(i,n),b=this._cache.get(v)??(y?.id===v?y:void 0);d=b?._strictParams??Object.assign(g,d);let x;if(!b)try{In(i,d)}catch(e){if(x=N(e)||Ct(e)?e:new On(e.message,{cause:e}),t?.throwOnError)throw x}let S=y?`stay`:`enter`,C;if(b)C={...b,cause:S,search:Ue(y?y.search:b.search,l),_strictSearch:f,searchError:p};else{let e=bn(i)?`pending`:`success`;C={id:v,ssr:i.options.ssr,index:n,routeId:i.id,params:y?.params??d,_strictParams:d,pathname:_,updatedAt:Date.now(),search:y?Ue(y.search,l):l,_strictSearch:f,searchError:p,status:e,isFetching:!1,error:void 0,paramsError:x,context:{},abortController:t?._controller??new AbortController,cause:S,loaderDeps:y?A(y.loaderDeps,m):m,invalid:!1,preload:!1,staticData:i.options.staticData||{},fullPath:i.fullPath}}let w=s===i.id;C._notFound&&!w&&(C.error=void 0),C._notFound=w,c[n]=C}for(let e=0;e<c.length;e++){let n=c[e];n.params=n.cause===`stay`?Ue(n.params,d):d,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=k(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,r=n?.id,i=this.lightweightCache.get(e);if(i&&i[0]===r)return i[1];let[a,o]=this.getMatchedRoutes(e.pathname),s=k(a),c={...e.search};for(let e of a)try{Object.assign(c,kn(e.options.validateSearch,c))}catch{}let l=n&&n.routeId===s.id&&n.pathname===e.pathname,u;if(l)u=n.params;else{let e=o;for(let t of a)try{In(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}};async function En(e,t,{replace:n,ignoreBlocker:r}){if(!Qe(t,e.protocolAllowlist)){if(!r){let t=e.history._getBlockers();for(let r of t)if(r?.blockerFn&&await r.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:n?`REPLACE`:`PUSH`}))return}e.history._ignoreNextBeforeUnload?.(t),n?window.location.replace(t):window.location.href=t}}var Dn=class extends Error{},On=class extends Error{};function kn(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Dn(`Async validation not supported`);if(n.issues)throw new Dn(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function An(e,t){if(e===void 0||e===!0)return t;let n=Object.create(null);return e===!1||e===null?n:typeof e==`function`?(Object.assign(n,t),Object.assign(n,e(n))):Object.assign(n,t,e)}function jn(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!Be.call(e,t[1]))}var Mn=Object.freeze({});function Nn(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r].options;`search`in i?i.search?.middlewares&&n.push(...i.search.middlewares):(i.preSearchFilters||i.postSearchFilters)&&n.push(({search:e,next:t})=>{let n=t(i.preSearchFilters?i.preSearchFilters.reduce((e,t)=>t(e),e):e);return i.postSearchFilters?i.postSearchFilters.reduce((e,t)=>t(e),n):n});let a=i.validateSearch;t&&a&&n.push(({search:e,next:t,meta:n})=>{let r=t(e);try{let e=kn(a,r);if(n&&e)for(let t in e)t in r||(n.defaulted||=new Map).set(t,e[t]);return{...r,...e}}catch{}return r})}return n}function Pn(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=ze(n.search,i);return a&&(a.explicit=e),e}return e[t]({search:i,next:(e,n)=>{if(n){let n=a||{};return{search:r(t+1,e,n),meta:n}}return r(t+1,e,a)},meta:a})};return r(0,t)}function Fn(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return xt}function In(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function Ln(e,t){return e.options[t]?.preload?.()}function Rn(e,t){let n=Ln(e,`component`),r=Ln(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function L(e,t,n){let r=()=>t===!1?void 0:t?Ln(e,t):Rn(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy=void 0,t});return e._lazy=a,a.then(r)}function zn(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function Bn(e,t,n){let r=e._tx;return t&&r?.[2]===n&&!r[3].some(e=>e.routeId===t)}var R=0,z=1,Vn=2,B=3,V=[4];function Hn(e){return typeof e[0]==`number`}function H(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,r)=>{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).then(()=>t.removeEventListener(`abort`,i))})}function U(e,t){return e.routesById[t.routeId]}function Un(e,t,n){return Ct(e)?[B,e]:N(e)?(e.routeId||=n,[Vn,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[z,e]):[R,e]}function Wn(e,t){let n=Un(t,!0,e.id);if(n[0]!==z)return n;try{e.options.onError?.(n[1])}catch(t){n=Un(t,!0,e.id)}return n}function Gn(e,t,n,r,i){return i[0].signal.aborted?V:ir(e,t,n,Wn(n,r),i)}async function Kn(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[3];for(let i=n[6]??0;i<r;i++){let r=s[i],u=U(e,r);r.abortController=n[0];let d=s[i-1]?.context??e.options.context??{},f={params:r.params,location:o,navigate:t=>e.navigate({...t,_fromLocation:o}),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:u.id};try{let e=r._ctx||=u.options.context?u.options.context({...f,deps:r.loaderDeps,context:d})||{}:void 0;r.context={...d,...e}}catch(a){return W(e,r),[i,Gn(e,t,u,a,n)]}if(c.aborted)return[i,V];let p=r.paramsError??r.searchError;if(p!==void 0)return W(e,r),[i,Gn(e,t,u,p,n)];let m=u.options.beforeLoad;if(!m)continue;let h=r.status;i>=a&&(r.status=`pending`,n[7]?.());try{Yn(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?H(a,c):a);if(c.aborted)return[i,V];let s=ir(e,t,u,Un(o,!1,u.id),n);if(s[0]!==R)return W(e,r),[i,s];r.context={...r.context,...o}}catch(a){return W(e,r),[i,Gn(e,t,u,a,n)]}finally{r.status=h,Yn(e,r,!1,n[0])}}i()}function qn(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){let n=e._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(t)&&n[3].some(e=>e.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function W(e,t){let n=t._flight;t._flight=void 0,qn(e,t,n)?.abort()}function G(e,t,n,r){let i=[];for(let a of t)if(!n?.includes(a)){let t=a._flight;if(a._flight=void 0,r&&t?.[2]===1&&e._flights?.get(a.id)===t&&n?.some(e=>e.id===a.id))t[2]=0;else{let n=qn(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function Jn(e){for(let t of e){let e=t._flight;e&&e[2]++}}function Yn(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function Xn(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:t=>e.navigate({...t,_fromLocation:s}),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function Zn(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return V;if(!i)return[R,void 0];let l=n._flight;Yn(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(Xn(e,t,n,r,s,a,!!o[3]))).then(e=>Un(e,!1,r.id),e=>Un(e,!0,r.id)).then(t=>(t[0]!==R&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===z&&l[2]?Wn(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],ir(e,t,r,await H(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return W(e,n),V}finally{Yn(e,n,!1,s)}}function Qn(e,t,n){t[0]!==B&&(e.status=`success`,e.error=void 0,t[0]===R?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function $n(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&W(e,r)}function er(e,t){return t[0]===z||t[0]===Vn?{...e,status:t[0]===z?`error`:`notFound`,error:t[1],_flight:void 0}:e}function tr(e,t,n,r,i,a,o){let s=t[1][n],c=U(e,s),l=!!a[3],u=e._cache.get(s.id),d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(Xn(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=V)),!p){if(s.status!==`success`)f=!0;else{let t=l||s.preload?c.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.options.defaultStaleTime??0;f=!!(s.invalid||d||d===void 0&&Date.now()-s.updatedAt>=t&&(a[5]||s.cause===`enter`||a[2].some(e=>e.routeId===s.routeId&&e.id!==s.id)))}}}catch(n){s.invalid=!0,W(e,s),p=Gn(e,t,c,n,a)}let m=c.options.loader,h=typeof m==`function`,g=h?m:m?.handler,_=!l||c.options.preload!==!1,v=_&&m?e._flights?.get(s.id):void 0;v===s._flight||p?v=void 0:v&&!f&&!l&&d===void 0?f=!0:f||(v=void 0);let y=!(!m||!f||s.status!==`success`||l||a[4]||((h?void 0:m.staleReloadMode)??e.options.defaultStaleReloadMode)===`blocking`),b=f&&_,x=b&&!y&&(s.status!==`success`||!!m),S=n>=o?a[7]:void 0,C=c.lazyFn&&c._lazy!==!0?S:void 0;if(b&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),v&&v[2]++,x){let t=s._flight;s._flight=v,qn(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?Zn(e,t,s,c,g,i,a).then(t=>(Qn(s,t,l),t[0]===R&&(m&&!a[0].signal.aborted&&$n(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[R,s.loaderData]),ee=(async()=>{try{let e=L(c,void 0,C);e&&await H(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,Gn(e,t,c,r,a)]}let r=await w;x&&r[0]===R&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,ee]),!y)return w.then(e=>er(s,e));let T={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let te=Zn(e,t,T,c,g,i,a).then(e=>(s.isFetching=!1,Qn(T,e,!1),e));return(t[2]??=[]).push([n,te,ee,T]),te.then(e=>er(T,e))}async function nr(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=U(e,t[n]);try{let e=L(i,!1);e&&await H(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function K(e,t){t[2]&&=(G(e,t[2].map(e=>e[3])),void 0)}async function rr(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=B)throw[a,t];!i&&t[0]!==R&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===B)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function ir(e,t,n,r,i,a){for(;r[0]===B;){let o=r[1],s=o.options;try{if((s.href||o.headers.has(`Location`))&&(e.resolveRedirect(o),s.reloadDocument)||(s.reloadDocument?i[3]:i[1]>=20))return r;let n=e.buildLocation({...s,_fromLocation:t[0],_includeValidateSearch:!0}),a=n.maskedLocation??n;if(a.external){let t=o.clone();return t.options={...s},t.headers.set(`Location`,a.publicHref),e.resolveRedirect(t),i[3]?[B,t]:[B,t,a]}return[B,o,n]}catch(e){r=a?[z,e]:Wn(n,e),a=!0}}return r}async function ar(e,t,n,r,i,a){let o=t[1],s=await i,c=!1,l=o.findIndex(e=>e._notFound),u=t=>t[1][0]===Vn?nr(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=B)d=0;else if(s){d=s[2]??=await u(s);for(let e of n){if(e[0]>=d)break;let t=await e[1];if(t[0]!==R&&t[0]<B&&!(`loaderData`in o[e[0]])){s=[e[0],t],d=s[2]=await u(s);break}}}for(let e of n){if(e[0]>=d)break;let t=await e[2];if(t){s=t;break}}if((s?.[1][0]??0)>=B){let n=s[1];if(n[0]!==B||n[1].options.reloadDocument||n[2])return K(e,t),n;c=!0,s=[0,[z,Error(`Too many redirects`)]]}let f=s?s[2]??await u(s):l;if(f>=0){let i=s?.[1],l=i?.[0],u=o[f],d=i?.[1],p=()=>{i&&(u._notFound=void 0,l===z?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};p(),i||a?.();let m=U(e,u);try{await H(i?Promise.resolve().then(()=>L(m,l===z?`errorComponent`:`notFoundComponent`)):Promise.all([L(m),L(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return K(e,t),V}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),K(e,t),G(e,o),p()):u.status=`success`}return t}async function or(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;t<i;t++){let r=a[t],i=U(e,r).options;if(i.head||i.scripts)try{let t={ssr:e.options.ssr,matches:a,match:r,params:r.params,loaderData:r.loaderData},[o,s]=await H(Promise.all([i.head?.(t),i.scripts?.(t)]),n);r.meta=o?.meta,r.links=o?.links,r.headScripts=o?.scripts,r.styles=o?.styles,r.scripts=s}catch(e){if(e===n&&n.aborted)break;console.error(e)}if(r.status!==`success`||r._notFound)break}return t}async function sr(e,t,n,r){let i=[t,n],a=r[0].signal,o;try{let t=e.stores.matches.get(),s=n.findIndex(e=>e._notFound);if(e.options.notFoundMode!==`root`&&s>=0){let t=await nr(e,n,void 0,a,s);n[s]._notFound=void 0,n[t]._notFound=!0,s=t}let c=s<0?n.length:s+1,l=0;for(;l<c&&l!==s;){let e=n[l],i=r[2][l],a=t[l];if(i?.id!==e.id||i.status!==`success`||e.preload||a?.id!==e.id||a.status!==`success`||(l++,i._notFound||a._notFound))break}let u=[],d=r[6]??0,f=d?Promise.resolve(n[d-1]):void 0,p=()=>{for(let t=d;t<c&&!a.aborted;t++)f=tr(e,i,t,u,f,r,l)},m=await Kn(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===Vn){let t=await nr(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=B&&(c=0);p()}if(!a.aborted&&!r[3]){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}let h=ar(e,i,u,r[0],rr(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=rr(i[2],void 0,void 0,h.then(e=>Hn(e)?0:zn(n).length,()=>0))),o=await h}catch(t){if(K(e,i),t===a&&a.aborted)return V;throw t}return Hn(o)?o:or(e,o,a,r[6]===n.length?r[6]:0)}function cr(e,t){if(e._tx!==t)return;let n=t[3],r=e.stores.matches.get(),i=e._pending;for(let a=0;a<n.length;a++){let o=n[a],s=o.status===`success`&&!o._notFound,c=r[a]?.id===o.id&&r[a]?.status===`pending`;if(s&&!c)continue;let l=U(e,o),u=s||o.invalid?0:l.options.pendingMs??e.options.defaultPendingMs,d=l.options.pendingComponent??e.options.defaultPendingComponent;if(!d||typeof u!=`number`||u===1/0){i&&(i[0]=t,i[2]=0,i[4]=!0);return}let f=l.options.pendingMinMs??e.options.defaultPendingMinMs??0,p=!1;if(i?.[1]===o.id?(p=i[0]!==t,i[0]=t):(clearTimeout(i?.[3]),e._pending=i=void 0),i||(e._pending=i=[t,o.id,c?Date.now()+f:t[4]+u,void 0,c||void 0,d]),i[4]&&!p&&i[5]===d)return;if(i[5]=d,!i[4]){clearTimeout(i[3]);let n=i[2]-Date.now();if(n>0){i[3]=setTimeout(()=>cr(e,t),n);return}i[2]=0}let m=n.map(e=>({...e,_flight:void 0}));m[a].status=`pending`;let h=i[4]=e.startTransition(()=>e.stores.setMatches(m),m).then(t=>(t&&e._pending===i&&i[4]===h&&!i[2]&&(i[2]=Date.now()+f),t));return}}function lr(e,t){let n=e._pending;e._tx!==t&&e._tx?.[3].some(e=>e.id===n?.[1])||(clearTimeout(n?.[3]),e._pending=void 0)}async function ur(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!zn(t[3]).some(e=>e.id===n[1]))return;let i;try{await H(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function dr(e,t){e._committed=t,e.stores.setMatches(t)}function fr(e,t,n,r){let i=e._committed,a=e._lifecycleEnd,o=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let s=zn(n).length,c=new Map;{let t=Date.now(),r=new Set;for(let e=0;e<n.length;e++){let t=n[e];(e<s||t.status===`success`)&&r.add(t.id)}for(let n of[...i,...o.values()]){if(n.status!==`success`||r.has(n.id))continue;let i=U(e,n);!i.options.loader||t-n.updatedAt>=(n.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||c.set(n.id,o.get(n.id)===n?n:{...n,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c;let l=e._lifecycleEnd=Cn(n);dr(e,n),G(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),wn(e,i,n,a,l,t)}async function pr(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function mr(e,t,n){let r=n[1].options,i=n[2];if(!i)return e.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return e.navigate({href:(i.maskedLocation??i).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});i._redirects=t[1]+1,e._pendingLocation=i;let a=e.commitLocation({...i,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===i&&(e._pendingLocation=void 0)}),a}async function hr(e,t,n,r,i){let a=n.map(e=>({...e}));Jn(a);for(let t of r)W(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await ar(e,o,r,t[0],i)}catch(t){throw G(e,a),t}if(Hn(s))G(e,a),s[0]===B&&e._tx===t&&e._committed===n&&await mr(e,t,s);else if(await or(e,s,t[0].signal),e._tx!==t||e._committed!==n)G(e,a);else{for(let t of a){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),W(e,n))}dr(e,a),G(e,n,a)}}async function gr(e,t,n,r,i,a){let o=await sr(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(Hn(o)){let n=o[0]===B&&e._tx===t;if((!n||o[1].options.reloadDocument)&&lr(e,t),G(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){lr(e,t);return}await mr(e,t,o);return}let s=o[1];if(e._tx===t&&await ur(e,t),e._tx!==t){lr(e,t),G(e,s),K(e,o);return}let c=t[2],l=xn(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await ur(e,t),e._tx!==t){lr(e,t),G(e,s),K(e,o);return}let n=await e.startTransition(()=>{lr(e,t),fr(e,t,s,a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s);e._tx===t?(u?.length&&hr(e,t,s,u,o[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(c),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...l}),n&&e._tx===t&&e.emit({type:`onRendered`,...l})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)):K(e,o)})}async function _r(e,t){let n=e._tx,r=e.stores.resolvedLocation.get(),i=r??e.stores.location.get(),a=e.latestLocation,o=e._pendingLocation,s=o?.href===a.href?o._redirects??0:0,c=e._handoff,l=c?.[0](),u=new AbortController,d=e._preflight;if(e._preflight=u,l||c?.[1](),d?.abort(),!u.signal.aborted){let t=xn(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await pr(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});Jn(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){G(e,m),await pr(e,n);return}e._preflight=void 0;let g,_=()=>gr(e,y,f,()=>cr(e,y),t?.sync,h),v=t?.sync?new Promise(e=>g=e):Promise.resolve().then(_),y=[p,s,a,m,Date.now(),v.then(()=>pr(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&Yn(e,t,!1)}n[0].abort(),G(e,n[3],y[3],!0)}e._tx===y?(e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),(h||!e._committed.length&&m[0]?.status!==`success`&&!m.some(e=>e._notFound))&&cr(e,y),g?.(_()),await y[5]):(G(e,y[3]),y[3]=[],g?.(),await pr(e,y))}async function vr(e,t){let n=e.buildLocation(t);for(let t=0;;t++){let r=e._committed,i=new AbortController,a,o,s;try{try{a=e.matchRoutes(n,{_controller:i}),Jn(a),o=(e._preloads??=new Map).set(i,a),s=await sr(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),G(e,a)),i.abort()}if(!Hn(s))return s[1];if(!o||s.length<3)return;n=s[2]}catch(e){N(e)||console.error(e);return}}}var yr=`Error preloading route! ☝️`,br=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=xt:this.parentRoute||nt();let r=n?xt:t?.path;r&&r!==`/`&&(r=it(r));let i=t?.id||r,a=n?xt:rt((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:rt(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=M(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>St({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},xr=class{constructor({id:e}){this.notFound=e=>ft({routeId:this.id,...e}),this.redirect=e=>St({from:this.id,...e}),this.id=e}},Sr=class extends br{constructor(e){super(e)}},q=e(r(),1);function Cr(e,t){let n=e.stores.location,r=new Set,i,a,o=n=>{Bn(e,t,n)||(i=n,r.forEach(e=>e()))};return[()=>i??n.get(),e=>(r.size||(i=n.get(),a=n.subscribe(o).unsubscribe),r.add(e),()=>{r.delete(e),r.size||(a(),i=void 0)})]}var wr=q.createContext(void 0),Tr=q.createContext(void 0),J=i();function Er(...e){let t=q.useRef(e),n=t.current;return e.forEach((e,t)=>{j(n[t],e,!1,!0)||(n[t]=e)}),t.current}function Dr(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(yr)})}function Or(e,t){let n=typeof e==`string`&&Xe(e);if(n)return t.has(n)?e:null}function kr(e,t,n,r){let i=ot(e.pathname,r),a=ot(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!j(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function Ar(e,t,n){let r=O(),i=q.useRef(null),a=q.useCallback(e=>{if(i.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:o,to:s,preload:c,preloadDelay:l,disabled:u,target:d,onClick:f,onBlur:p,onFocus:m,onMouseEnter:h,onMouseLeave:g,onTouchStart:_}=e,[v,y,b]=Er(e.search,e.params,o),x=q.useContext(wr),S=(r.stores._linkScopes??={})[x]??=Cr(r,x),[C,w,ee]=q.useMemo(()=>{let t=Or(s,r.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},i,a,o,c=()=>{let e=S[0]();if(e!==i){n._fromLocation=e;let t=r.buildLocation(n),o=Lr(t,r,u),s=u||o&&!Xe(o)?kr(e,t,b,r.basepath):void 0;a&&a[0]===o&&a[1]===s||(a=[o,s]),i=e}return a};return[n,c,b?.includeHash&&(()=>{let e=c();return e[1]?o??=[e[0],!1]:e})]},[r,S,e.from,e.hash,e.href,s,v,y,e.state,e.mask,e.unsafeRelative,b,u]),[T,te]=q.useSyncExternalStore(S[1],w,ee||w),ne=te===void 0&&T,re=u||T===void 0,ie=q.useRef(!1),E=e.reloadDocument||ne||re?!1:c??r.options.defaultPreload,ae=l??r.options.defaultPreloadDelay??0,oe=q.useCallback(e=>{let t=e?.isIntersecting;t??E===`intent`?ae?i.t??=setTimeout(()=>{i.t=void 0,Dr(r,C)},ae):Dr(r,C):t===!1&&Ir(i)},[r,C,i,E,ae]);q.useEffect(()=>{if(!E)return;E===`render`&&!ie.current&&(ie.current=!0,Dr(r,C));let e=!0,t;return E===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&oe(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),Ir(i)}},[r,C,E,oe,i]);let D=Pr(e,n);if(D.ref=t?a:i,ne)return D.href=ne,D;let se=t=>{let n=d??t.currentTarget.getAttribute(`target`);re||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),Ir(i),r.navigate({...e,_fromLocation:C._fromLocation}))},ce=()=>{E===`intent`&&Dr(r,C)},le=()=>{E===`intent`&&Ir(i)};return D.onClick=Y(f,se),D.onBlur=Y(p,le),D.onFocus=Y(m,oe),D.onMouseEnter=Y(h,oe),D.onMouseLeave=Y(g,le),D.onTouchStart=Y(_,ce),Fr(D,e,te,T,re,n)}var jr={},Mr={className:`active`},Nr=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function Pr(e,t){let n={};for(let r in e)Nr.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function Fr(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=ze(n?o:s,{})??(n?Mr:jr);Object.assign(e,d),e.href=r,a!==`a`&&(e.disabled=i),e.target=u;let f=d.style;(l||f)&&(e.style=l&&f?{...l,...f}:l||f);let p=d.className;return(c||p)&&(e.className=c?p?`${c} ${p}`:c:p),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var Ir=e=>{clearTimeout(e.t),e.t=void 0},Y=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function Lr(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!Qe(i,t.protocolAllowlist))return i}var Rr=q.memo(q.forwardRef((e,t)=>{let n=e._asChild||`a`,r=Ar(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return q.createElement(n,r,i)}),zr);function zr(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!Nr.has(r)||!j(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var Br=t((e=>{var t=r();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:n,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Vr=t(((e,t)=>{t.exports=Br()})),Hr=t((e=>{var t=r(),n=Vr();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=n.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),Ur=t(((e,t)=>{t.exports=Hr()})),Wr=Ur();function Gr(e,t){return e===t}function X(e,t=e=>e,n){let r=n?.compare??Gr,i=(0,q.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,q.useCallback)(()=>e.get(),[e]);return(0,Wr.useSyncExternalStoreWithSelector)(i,a,a,t,r)}function Kr({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0)n=e.nextSub;else{for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}}while(1)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(1)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function qr(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var Jr=[],Yr=0,{link:Xr,unlink:Zr,propagate:Qr,checkDirty:$r,shallowPropagate:ei}=Kr({update(e){return e._update()},notify(e){Jr[ni++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,ai(e))}}),ti=0,ni=0,Z,ri=0;function ii(e){try{++ri,e()}finally{--ri||oi()}}function ai(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Zr(n,e)}function oi(){if(!(ri>0)){for(;ti<ni;){let e=Jr[ti];Jr[ti++]=void 0,e.notify()}ti=0,ni=0}}function si(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:+!n,get(){return Z!==void 0&&Xr(i,Z,Yr),i._snapshot},subscribe(e){let t=qr(e),n={current:!1},r=ci(()=>{i.get(),n.current?(Z=void 0,t.next?.(i._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Z,o=t?.compare??Object.is;if(n)Z=i,++Yr,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Z=a,n&&(i.flags&=-5),ai(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&$r(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&ei(e)}}else e&32&&(i.flags=e&-33);return Z!==void 0&&Xr(i,Z,Yr),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Qr(e),ei(e),oi())}},i}function ci(e){let t=()=>{let t=Z;Z=n,++Yr,n.depsTail=void 0,n.flags=6;try{return e()}finally{Z=t,n.flags&=-5,ai(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&$r(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,ai(this)}};return t(),n}var li={};function ui(e,t){let n=q.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=A(n.current,i):i}}function Q(e){let t=O(),n=q.useContext(e.from?Tr:wr),r=e.from??n,i=t.stores.getMatchStore(r),a=ui(e,t),o=X(i,e=>e?a(e):li);if(o!==li)return o;(e.shouldThrow??!0)&&nt()}function di(e){return Q({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function fi(e){let{select:t,...n}=e;return Q({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function pi(e){return Q({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function mi(e){return Q({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function hi(e){return Q({...e,select:t=>e.select?e.select(t.context):t.context})}function gi(e){return new _i({id:e})}var _i=class extends xr{constructor({id:e}){super({id:e}),this.useMatch=e=>Q({...e,from:this.id}),this.useRouteContext=e=>hi({...e,from:this.id}),this.useSearch=e=>mi({...e,from:this.id}),this.useParams=e=>pi({...e,from:this.id}),this.useLoaderDeps=e=>fi({...e,from:this.id,strict:!1}),this.useLoaderData=e=>di({...e,from:this.id,strict:!1}),this.useNavigate=()=>{let e=O();return Pe({from:e.routesById[this.id].fullPath})},this.notFound=e=>ft({routeId:this.id,...e}),this.Link=q.forwardRef((e,t)=>{let n=O().routesById[this.id].fullPath;return(0,J.jsx)(Rr,{ref:t,from:n,...e})})}},vi=class extends br{constructor(e){super(e),this.useMatch=e=>Q({...e,from:this.id}),this.useRouteContext=e=>hi({...e,from:this.id}),this.useSearch=e=>mi({...e,from:this.id}),this.useParams=e=>pi({...e,from:this.id}),this.useLoaderDeps=e=>fi({...e,from:this.id}),this.useLoaderData=e=>di({...e,from:this.id}),this.useNavigate=()=>Pe({from:this.fullPath}),this.Link=q.forwardRef((e,t)=>(0,J.jsx)(Rr,{ref:t,from:this.fullPath,...e}))}};function yi(e){return new vi(e)}function bi(){return e=>Si(e)}var xi=class extends Sr{constructor(e){super(e),this.useMatch=e=>Q({...e,from:this.id}),this.useRouteContext=e=>hi({...e,from:this.id}),this.useSearch=e=>mi({...e,from:this.id}),this.useParams=e=>pi({...e,from:this.id}),this.useLoaderDeps=e=>fi({...e,from:this.id}),this.useLoaderData=e=>di({...e,from:this.id}),this.useNavigate=()=>Pe({from:this.fullPath}),this.Link=q.forwardRef((e,t)=>(0,J.jsx)(Rr,{ref:t,from:this.fullPath,...e}))}};function Si(e){return new xi(e)}function Ci(e){return e=>{let t=yi(e);return t.isRoot=!1,t}}function wi(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(Ge(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if(Ne)Ne(a());else throw a()}return q.createElement(r,e)};return o.preload=a,o}var Ti=class extends q.Component{constructor(...e){super(...e),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:0}:{resetKey:n}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;return e?q.createElement(this.props.errorComponent??Ei,{error:e[0],reset:this.reset}):this.props.children}};function Ei({error:e}){let[t,n]=q.useState(!1);return(0,J.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,J.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,J.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,J.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,J.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,J.jsx)(`div`,{children:(0,J.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e?.message?(0,J.jsx)(`code`,{children:e.message}):null})}):null]})}var Di=()=>!0,Oi=()=>!1;function ki({children:e,fallback:t=null}){return(0,J.jsx)(q.Fragment,{children:Ai()?e:t})}function Ai(e=!0){return q.useSyncExternalStore(ji,Di,e?Oi:Di)}function ji(){return()=>{}}function Mi(e){let t=O(),n=`not-found-${X(t.stores.location,e=>e.pathname)}-${X(t.stores.status)}`;return(0,J.jsx)(Ti,{getResetKey:()=>n,onCatch:(t,n)=>{if(N(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(N(t))return e.fallback?.(t);throw t},children:e.children})}function Ni(){return(0,J.jsx)(`p`,{children:`Not Found`})}function Pi(e,t,n){return t.options.notFoundComponent?(0,J.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,J.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,J.jsx)(Ni,{})}function Fi(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,J.jsx)(n,{}):null}var Ii=(e,t)=>e[0]===t[0]&&e[1]===t[1],Li=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,Ri=q.memo(function({routeId:e}){let t=O();return zi(t,X(t.stores.getMatchStore(e)))});function zi(e,t){let n=e.routesById[t.routeId],r=Fi(e,n),i=n.options.errorComponent??e.options.defaultErrorComponent,a=n.options.onCatch??e.options.defaultOnCatch,o=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,s=t.ssr===!1||t.ssr===`data-only`,c=Li(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s)),l=(0,J.jsx)(Bi,{match:t});s&&(l=(0,J.jsx)(ki,{fallback:r,children:l})),o&&(l=(0,J.jsx)(Mi,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return q.createElement(o,e)},children:l})),i&&(l=(0,J.jsx)(Ti,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(N(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:l})),c&&(l=(0,J.jsx)(q.Suspense,{fallback:r,children:l}));let u=n.isRoot&&n.options.shellComponent;return u?(0,J.jsx)(wr.Provider,{value:t.routeId,children:(0,J.jsxs)(u,{children:[l,null]})}):(0,J.jsxs)(wr.Provider,{value:t.routeId,children:[l,null]})}var Bi=q.memo(function({match:e}){let t=O(),n=e.routeId,r=t.routesById[n],i=q.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),a=q.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,J.jsx)(e,{},i):(0,J.jsx)(Vi,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!Li(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return Fi(t,r)}if(e.status===`notFound`)return Pi(t,r,e.error);if(e.status===`error`)throw e.error;return a}),Vi=q.memo(function(){let e=O(),t=q.useContext(wr),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=X(a,e=>[!!e._notFound,e.error],{compare:Ii}),i=X(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return Pi(e,e.routesById[t],r);if(!i)return null;let a=(0,J.jsx)(Ri,{routeId:i});return t===`__root__`?(0,J.jsx)(q.Suspense,{fallback:Fi(e),children:a}):a});function Hi(e,t){let n=e[1];e.length=0,n?.(t)}function Ui({t:e}){let t=O(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{Hi(n,!1),n.push(i,a),e(t),q.startTransition(r)}),Fe(()=>{let e=t.history.subscribe(t.load);t.updateLatestLocation();let r=t.latestLocation,i=t.buildLocation({to:r.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(M(r.publicHref)!==M(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),e;let a=t.stores.resolvedLocation.get();return a?.href===r.href&&a.state.__TSR_key===r.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...xn(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}function Wi(){let e=O(),t=e.routesById[xt],n=Fi(e,t),r=(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Ui,{t:q.useState()[1]}),e.ssr?(0,J.jsx)(Gi,{}):(0,J.jsx)(q.Suspense,{fallback:n,children:(0,J.jsx)(Gi,{})})]});return e.options.InnerWrap?(0,J.jsx)(e.options.InnerWrap,{children:r}):r}function Gi(){let e=O(),t=e._rendered,n=X(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;Fe(()=>{t[0]===n&&Hi(t,!0)},[t,n]);let a=i?(0,J.jsx)(Ri,{routeId:i}):null;return e.options.disableGlobalCatchBoundary?a:(0,J.jsx)(Ti,{getResetKey:()=>r,onCatch:void 0,children:a})}function Ki(){let e=O();return q.useCallback(t=>{let{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a,...o}=t;return e.matchRoute(o,{pending:n,caseSensitive:r,fuzzy:i,includeSearch:a})},[e,X(e.stores.location,e=>e.href),X(e.stores.resolvedLocation,e=>e?.href),X(e.stores.status)])}var qi=e=>({createMutableStore:si,createReadonlyStore:si,batch:ii}),Ji=e=>new Yi(e),Yi=class extends Tn{constructor(e){super(e,qi)}};function Xi({router:e,children:t,...n}){Ve(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,J.jsx)(Me.Provider,{value:e,children:t});return e.options.Wrap?(0,J.jsx)(e.options.Wrap,{children:r}):r}function Zi({router:e,...t}){return(0,J.jsx)(Xi,{router:e,...t,children:(0,J.jsx)(Wi,{})})}var $=n(),Qi=a();function $i(e,t){return n=>{if(!Te(e)(n))return t(n);let r=Ce(e)(n);return t({...De(n,(t,n)=>!he(e.fields,n)||he(r,n)),...r})}}var ea=new Map([[`bold`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z`}))],[`duotone`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z`,opacity:`0.2`}),q.createElement(`path`,{d:`M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z`}))],[`fill`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z`}))],[`light`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z`}))],[`regular`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z`}))],[`thin`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z`}))]]),ta=q.forwardRef((e,t)=>q.createElement(Le,{ref:t,...e,weights:ea}));ta.displayName=`HouseIcon`;var na=new Map([[`bold`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Zm-60-52a16,16,0,1,1-16-16A16,16,0,0,1,144,152Z`}))],[`duotone`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z`,opacity:`0.2`}),q.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z`}))],[`fill`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80Zm-80,84a12,12,0,1,1,12-12A12,12,0,0,1,128,164Zm32-84H96V56a32,32,0,0,1,64,0Z`}))],[`light`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Zm-72-56a10,10,0,1,1-10-10A10,10,0,0,1,138,152Z`}))],[`regular`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z`}))],[`thin`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-76-56a8,8,0,1,1-8-8A8,8,0,0,1,136,152Z`}))]]),ra=q.forwardRef((e,t)=>q.createElement(Le,{ref:t,...e,weights:na}));ra.displayName=`LockIcon`;function ia(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Re(`flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-none border-dashed p-6 text-center text-balance`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,J.jsx)(`div`,{"data-slot":`empty`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function aa(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Re(`flex max-w-sm flex-col items-center gap-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,J.jsx)(`div`,{"data-slot":`empty-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var oa=h(`mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`flex size-8 shrink-0 items-center justify-center rounded-none bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4`}},defaultVariants:{variant:`default`}});function sa(e){let t=(0,$.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,variant:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o;t[4]!==n||t[5]!==a?(o=Re(oa({variant:a,className:n})),t[4]=n,t[5]=a,t[6]=o):o=t[6];let s;return t[7]!==r||t[8]!==o||t[9]!==a?(s=(0,J.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":a,className:o,...r}),t[7]=r,t[8]=o,t[9]=a,t[10]=s):s=t[10],s}function ca(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Re(`font-heading text-sm font-medium`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,J.jsx)(`div`,{"data-slot":`empty-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function la(){let e=(0,$.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,J.jsx)(`a`,{href:`/`,"aria-label":`Home`}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,J.jsx)(ia,{"aria-label":`Page not found`,children:(0,J.jsxs)(d,{variant:`outline`,size:`sm`,render:t,nativeButton:!1,children:[(0,J.jsx)(ta,{}),`Home`]})}),e[1]=n):n=e[1],n}var ua=ee(e=>be(ye(()=>location.replace(e))));function da(e){let t=(0,$.c)(2),n;return t[0]===e.href?n=t[1]:(n=ua(e.href),t[0]=e.href,t[1]=n),u(n),null}function fa(){let e=(0,$.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,J.jsx)(ia,{role:`status`,children:(0,J.jsxs)(aa,{children:[(0,J.jsx)(sa,{variant:`icon`,children:(0,J.jsx)(ra,{})}),(0,J.jsx)(ca,{children:`Access denied`})]})}),e[0]=t):t=e[0],t}function pa(e){let t=(0,$.c)(4),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,J.jsx)(f,{}),t[0]=n):n=t[0];let r=e.label??`Can’t load this view`,i;return t[1]!==e.reset||t[2]!==r?(i=(0,J.jsx)(ia,{role:`alert`,children:(0,J.jsxs)(d,{variant:`destructive`,size:`sm`,onClick:e.reset,children:[n,r]})}),t[1]=e.reset,t[2]=r,t[3]=i):i=t[3],i}function ma(e){let t=(0,$.c)(4);if(c(e.error)){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,J.jsx)(da,{href:b(location.href)}),t[0]=e):e=t[0],e}if(p(e.error)){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,J.jsx)(fa,{}),t[1]=e):e=t[1],e}let n;return t[2]===e.reset?n=t[3]:(n=(0,J.jsx)(pa,{reset:e.reset}),t[2]=e.reset,t[3]=n),n}function ha(e){let t=(0,$.c)(12),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={includeFailure:!0},t[0]=n):n=t[0];let r=o(e.atom,n),i=S(e.atom),a=e.frame??je,s;if(t[1]!==a||t[2]!==e.children||t[3]!==i||t[4]!==r){let n;t[6]!==e.children||t[7]!==r?(n=()=>T(re(r),{onNone:ie,onSome:e.children}),t[6]=e.children,t[7]=r,t[8]=n):n=t[8];let o;t[9]!==a||t[10]!==i?(o=e=>a((0,J.jsx)(ma,{error:fe(e),reset:i})),t[9]=a,t[10]=i,t[11]=o):o=t[11],s=T(y(r),{onNone:n,onSome:o}),t[1]=a,t[2]=e.children,t[3]=i,t[4]=r,t[5]=s}else s=t[5];return s}var ga=new WeakSet;function _a(e,t){return Ee(w(C(t,t=>te(e.registry,t),{concurrency:`unbounded`,discard:!0}),de(we(`30 seconds`)),_e,ge,de(C(t,t=>w(e.registry,oe(t),E),{concurrency:`unbounded`,discard:!0})),Oe(`200 millis`),ne))}function va(e){let t=(0,$.c)(2);(0,q.use)(e.loaded);let n;return t[0]===e.router?n=t[1]:(n=(0,J.jsx)(Zi,{router:e.router}),t[0]=e.router,t[1]=n),n}function ya(e,t){let n=document.querySelector(`#root`);if(ae(n))throw TypeError(`Missing application mount element with id "root"`);let r=se({defaultIdleTTL:400,scheduleTask:s}),i=Ji({context:{registry:r},defaultErrorComponent:ma,defaultNotFoundComponent:la,defaultPreload:`intent`,routeTree:e,scrollRestoration:!0,stringifySearch:T(me(t),{onNone:()=>vt,onSome:e=>$i(e,vt)})});function a(e,t,n){if(ce(e)){if(ga.has(e))return;ga.add(e)}r.set(_,{error:e,route:w(Se(i.state.matches,t=>t.error===e),xe(()=>pe(i.state.matches)),ke(e=>ue(e.routeId,D)),Ae(le(`__root__`))),source:t,...T(me(n),{onNone:()=>({}),onSome:e=>({stack:e})})})}return i.update({defaultOnCatch:(e,t)=>a(e,`route`,t.componentStack)}),(0,Qi.createRoot)(n,{onCaughtError:(e,t)=>a(e,`caught`,t.componentStack),onUncaughtError:(e,t)=>a(e,`uncaught`,t.componentStack)}).render((0,J.jsx)(q.StrictMode,{children:(0,J.jsx)(x.Provider,{value:r,children:(0,J.jsx)(va,{loaded:i.load(),router:i})})})),i}var ba=bi()({shellComponent:e=>(0,J.jsx)(`div`,{className:`bg-background text-foreground pt-safe-top pr-safe-right pl-safe-left flex h-dvh w-dvw flex-col`,children:e.children})}),xa=Ci(`/(home)`)({component:wi(()=>Ie(()=>import(`./route-DVe67awL.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])),`component`),loader:e=>_a(e.context,[g]),validateSearch:ve(v)}),Sa=Ci(`/(home)/`)({component:wi(()=>Ie(()=>import(`./(home)-pFFHaca4.js`),__vite__mapDeps([10,1,2,3,4,5,9,11])),`component`),loader:e=>_a(e.context,[l])}),Ca=Ci(`/(home)/people`)({component:wi(()=>Ie(()=>import(`./people-DVpTTprn.js`),__vite__mapDeps([12,1,2,3,4,5,7,11,6])),`component`),loader:e=>_a(e.context,[m])}),wa=xa.update({id:`/(home)`,getParentRoute:()=>ba}),Ta=Sa.update({id:`/`,path:`/`,getParentRoute:()=>wa}),Ea={homePeopleRoute:Ca.update({id:`/people`,path:`/people`,getParentRoute:()=>wa}),homeIndexRoute:Ta},Da={homeRouteRoute:wa._addFileChildren(Ea)};ya(ba._addFileChildren(Da)._addFileTypes(),v);export{ca as a,gi as c,Rr as d,sa as i,Ur as l,ia as n,Ki as o,aa as r,Vi as s,ha as t,Vr as u};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e,r as t}from"./react-DLGSahv8.js";import{Br as n,D as r,Kt as i,Xt as a,Yt as o,j as s,jn as c,mn as l,or as u}from"./effect-
|
|
1
|
+
import{a as e,r as t}from"./react-DLGSahv8.js";import{Br as n,D as r,Kt as i,Xt as a,Yt as o,j as s,jn as c,mn as l,or as u}from"./effect-CfZLtXM0.js";import{t as d}from"./dist-BPRUA1hI.js";var f=e(),p=t();r(e=>s(a(n(e,c(`
|
|
2
2
|
`),u(e=>i(t=>{let n=new Image;n.addEventListener(`load`,()=>{t(l(e))}),n.addEventListener(`error`,()=>{t(o(e))}),n.src=e}))))));function m(e){let t=(0,f.c)(13),n=e.light,r;t[0]===e.className?r=t[1]:(r=d(e.className,`dark:hidden`),t[0]=e.className,t[1]=r);let i;t[2]!==e.light||t[3]!==r?(i=(0,p.jsx)(n,{"aria-hidden":!0,className:r}),t[2]=e.light,t[3]=r,t[4]=i):i=t[4];let a=e.dark,o;t[5]===e.className?o=t[6]:(o=d(e.className,`hidden dark:block`),t[5]=e.className,t[6]=o);let s;t[7]!==e.dark||t[8]!==o?(s=(0,p.jsx)(a,{"aria-hidden":!0,className:o}),t[7]=e.dark,t[8]=o,t[9]=s):s=t[9];let c;return t[10]!==i||t[11]!==s?(c=(0,p.jsxs)(p.Fragment,{children:[i,s]}),t[10]=i,t[11]=s,t[12]=c):c=t[12],c}export{m as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{a as t,o as n,r}from"./react-DLGSahv8.js";import{S as i,c as a,i as o,l as s,n as c,r as l,y as u}from"./auth-tE-9OJTi.js";import{Dr as d,E as f,Er as p,I as m,Ir as h,Lr as g,Sr as _,V as v,gr as y,or as b,sr as x,xr as S}from"./effect-DGbTO7QP.js";import{R as C,t as ee}from"./dist-BPRUA1hI.js";import{n as w}from"./preload-helper-Cp12E29U.js";import{a as T,c as E,i as D,n as O,o as k,r as A,s as j}from"./format-C1NNiZNt.js";import{a as M,i as N,n as P,r as F,t as I}from"./index-Bq98Mq6W.js";import{t as L}from"./app-bar-DDdCfooN.js";var R=e(n(),1),z=new Map([[`bold`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M208,36H48A20,20,0,0,0,28,56v56c0,54.29,26.32,87.22,48.4,105.29,23.71,19.39,47.44,26,48.44,26.29a12.1,12.1,0,0,0,6.32,0c1-.28,24.73-6.9,48.44-26.29,22.08-18.07,48.4-51,48.4-105.29V56A20,20,0,0,0,208,36Zm-4,76c0,35.71-13.09,64.69-38.91,86.15A126.28,126.28,0,0,1,128,219.38a126.14,126.14,0,0,1-37.09-21.23C65.09,176.69,52,147.71,52,112V60H204Z`}))],[`duotone`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M216,56v56c0,96-88,120-88,120S40,208,40,112V56a8,8,0,0,1,8-8H208A8,8,0,0,1,216,56Z`,opacity:`0.2`}),R.createElement(`path`,{d:`M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.27,47,25.53a8,8,0,0,0,4.2,0c1-.26,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0Z`}))],[`fill`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M224,56v56c0,52.72-25.52,84.67-46.93,102.19-23.06,18.86-46,25.27-47,25.53a8,8,0,0,1-4.2,0c-1-.26-23.91-6.67-47-25.53C57.52,196.67,32,164.72,32,112V56A16,16,0,0,1,48,40H208A16,16,0,0,1,224,56Z`}))],[`light`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M208,42H48A14,14,0,0,0,34,56v56c0,51.94,25.12,83.4,46.2,100.64,22.73,18.6,45.27,24.89,46.22,25.15a6,6,0,0,0,3.16,0c.95-.26,23.49-6.55,46.22-25.15C196.88,195.4,222,163.94,222,112V56A14,14,0,0,0,208,42Zm2,70c0,37.76-13.94,68.39-41.44,91.06A131.17,131.17,0,0,1,128,225.72a130.94,130.94,0,0,1-40.56-22.66C59.94,180.39,46,149.76,46,112V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z`}))],[`regular`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.27,47,25.53a8,8,0,0,0,4.2,0c1-.26,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0Z`}))],[`thin`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M208,44H48A12,12,0,0,0,36,56v56c0,51.16,24.73,82.12,45.47,99.1,22.4,18.32,44.55,24.5,45.48,24.76a4,4,0,0,0,2.1,0c.93-.26,23.08-6.44,45.48-24.76,20.74-17,45.47-47.94,45.47-99.1V56A12,12,0,0,0,208,44Zm4,68c0,38.44-14.23,69.63-42.29,92.71A132.45,132.45,0,0,1,128,227.82a132.23,132.23,0,0,1-41.71-23.11C58.23,181.63,44,150.44,44,112V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z`}))]]),B=R.forwardRef((e,t)=>R.createElement(C,{ref:t,...e,weights:z}));B.displayName=`ShieldIcon`;var V=new Map([[`bold`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M125.18,156.94a64,64,0,1,0-82.36,0,100.23,100.23,0,0,0-39.49,32,12,12,0,0,0,19.35,14.2,76,76,0,0,1,122.64,0,12,12,0,0,0,19.36-14.2A100.33,100.33,0,0,0,125.18,156.94ZM44,108a40,40,0,1,1,40,40A40,40,0,0,1,44,108Zm206.1,97.67a12,12,0,0,1-16.78-2.57A76.31,76.31,0,0,0,172,172a12,12,0,0,1,0-24,40,40,0,1,0-10.3-78.67,12,12,0,1,1-6.16-23.19,64,64,0,0,1,57.64,110.8,100.23,100.23,0,0,1,39.49,32A12,12,0,0,1,250.1,205.67Z`}))],[`duotone`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M136,108A52,52,0,1,1,84,56,52,52,0,0,1,136,108Z`,opacity:`0.2`}),R.createElement(`path`,{d:`M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z`}))],[`fill`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M164.47,195.63a8,8,0,0,1-6.7,12.37H10.23a8,8,0,0,1-6.7-12.37,95.83,95.83,0,0,1,47.22-37.71,60,60,0,1,1,66.5,0A95.83,95.83,0,0,1,164.47,195.63Zm87.91-.15a95.87,95.87,0,0,0-47.13-37.56A60,60,0,0,0,144.7,54.59a4,4,0,0,0-1.33,6A75.83,75.83,0,0,1,147,150.53a4,4,0,0,0,1.07,5.53,112.32,112.32,0,0,1,29.85,30.83,23.92,23.92,0,0,1,3.65,16.47,4,4,0,0,0,3.95,4.64h60.3a8,8,0,0,0,7.73-5.93A8.22,8.22,0,0,0,252.38,195.48Z`}))],[`light`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M112.6,158.43a58,58,0,1,0-57.2,0A93.83,93.83,0,0,0,5.21,196.72a6,6,0,0,0,10.05,6.56,82,82,0,0,1,137.48,0,6,6,0,0,0,10-6.56A93.83,93.83,0,0,0,112.6,158.43ZM38,108a46,46,0,1,1,46,46A46.06,46.06,0,0,1,38,108Zm211,97a6,6,0,0,1-8.3-1.74A81.8,81.8,0,0,0,172,166a6,6,0,0,1,0-12,46,46,0,1,0-17.08-88.73,6,6,0,1,1-4.46-11.14,58,58,0,0,1,50.14,104.3,93.83,93.83,0,0,1,50.19,38.29A6,6,0,0,1,249,205Z`}))],[`regular`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z`}))],[`thin`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M107.19,159a56,56,0,1,0-46.38,0A91.83,91.83,0,0,0,6.88,197.81a4,4,0,1,0,6.7,4.37,84,84,0,0,1,140.84,0,4,4,0,1,0,6.7-4.37A91.83,91.83,0,0,0,107.19,159ZM36,108a48,48,0,1,1,48,48A48.05,48.05,0,0,1,36,108Zm212,95.35a4,4,0,0,1-5.53-1.17A83.81,83.81,0,0,0,172,164a4,4,0,0,1,0-8,48,48,0,1,0-17.82-92.58,4,4,0,1,1-3-7.43,56,56,0,0,1,44,103,91.83,91.83,0,0,1,53.93,38.86A4,4,0,0,1,248,203.35Z`}))]]),H=R.forwardRef((e,t)=>R.createElement(C,{ref:t,...e,weights:V}));H.displayName=`UsersIcon`;var U=t(),W=r();s(`group/field flex w-full gap-2 data-[invalid=true]:text-destructive`,{variants:{orientation:{vertical:`flex-col *:w-full [&>.sr-only]:w-auto`,horizontal:`flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`,responsive:`flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`}},defaultVariants:{orientation:`vertical`}});function G(e){let t=(0,U.c)(15),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,children:n,errors:i,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o;bb0:{if(n){o=n;break bb0}if(!i?.length){o=null;break bb0}let e;t[5]===i?e=t[6]:(e=[...new Map(i.map(q)).values()],t[5]=i,t[6]=e);let r=e;if(r?.length==1){o=r[0]?.message;break bb0}let a;t[7]===r?a=t[8]:(a=(0,W.jsx)(`ul`,{className:`ml-4 flex list-disc flex-col gap-1`,children:r.map(K)}),t[7]=r,t[8]=a),o=a}let s=o;if(!s)return null;let c;t[9]===r?c=t[10]:(c=ee(`text-xs font-normal text-destructive`,r),t[9]=r,t[10]=c);let l;return t[11]!==s||t[12]!==a||t[13]!==c?(l=(0,W.jsx)(`div`,{role:`alert`,"data-slot":`field-error`,className:c,...a,children:s}),t[11]=s,t[12]=a,t[13]=c,t[14]=l):l=t[14],l}function K(e,t){return e?.message&&(0,W.jsx)(`li`,{children:e.message},t)}function q(e){return[e?.message,e]}function J(e){let t=(0,U.c)(4),n;t[0]===e.result?n=t[1]:(n=_(p(m(e.result),Y)),t[0]=e.result,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,W.jsx)(G,{children:n}),t[2]=n,t[3]=r),r}function Y(e){return e.message}function X(e){let t=(0,U.c)(27),n;t[0]===e.person?n=t[1]:(n=(0,W.jsx)(L,{account:e.person,size:`sm`}),t[0]=e.person,t[1]=n);let r;t[2]===e.person.role?r=t[3]:(r=e.person.role===`Admin`&&(0,W.jsx)(B,{role:`img`,"aria-label":`Admin`,className:`text-primary`}),t[2]=e.person.role,t[3]=r);let i;t[4]!==e.error||t[5]!==r?(i=(0,W.jsxs)(W.Fragment,{children:[r,e.error]}),t[4]=e.error,t[5]=r,t[6]=i):i=t[6];let a;if(t[7]!==e.person.fullName||t[8]!==e.person.name){let n;t[10]===e.person.name?n=t[11]:(n=()=>`@${e.person.name}`,t[10]=e.person.name,t[11]=n),a=d(e.person.fullName,{onNone:g,onSome:n}),t[7]=e.person.fullName,t[8]=e.person.name,t[9]=a}else a=t[9];let o;if(t[12]!==e.person.fullName||t[13]!==e.person.name){let n;t[15]===e.person.name?n=t[16]:(n=()=>e.person.name,t[15]=e.person.name,t[16]=n),o=S(e.person.fullName,n),t[12]=e.person.fullName,t[13]=e.person.name,t[14]=o}else o=t[14];let s;t[17]!==n||t[18]!==i||t[19]!==a||t[20]!==o?(s=(0,W.jsx)(D,{mark:n,after:i,detail:a,children:o}),t[17]=n,t[18]=i,t[19]=a,t[20]=o,t[21]=s):s=t[21];let c;t[22]===e.children?c=t[23]:(c=(0,W.jsx)(j,{className:`text-right`,children:e.children}),t[22]=e.children,t[23]=c);let l;return t[24]!==s||t[25]!==c?(l=(0,W.jsxs)(E,{children:[s,c]}),t[24]=s,t[25]=c,t[26]=l):l=t[26],l}function Z(e){let t=(0,U.c)(27),n;t[0]===e.person.id?n=t[1]:(n=l(e.person.id),t[0]=e.person.id,t[1]=n);let[r,i]=u(n),o=e.person,s;t[2]===r?s=t[3]:(s=(0,W.jsx)(J,{result:r}),t[2]=r,t[3]=s);let c;t[4]===r?c=t[5]:(c=v(r),t[4]=r,t[5]=c);let d=`Deny @${e.person.name}`,f;t[6]===i?f=t[7]:(f=()=>i(!1),t[6]=i,t[7]=f);let p;t[8]!==c||t[9]!==d||t[10]!==f?(p=(0,W.jsx)(a,{size:`xs`,variant:`outline`,disabled:c,"aria-label":d,onClick:f,children:`Deny`}),t[8]=c,t[9]=d,t[10]=f,t[11]=p):p=t[11];let m;t[12]===r?m=t[13]:(m=v(r),t[12]=r,t[13]=m);let h=`Approve @${e.person.name}`,g;t[14]===i?g=t[15]:(g=()=>i(!0),t[14]=i,t[15]=g);let _;t[16]!==m||t[17]!==h||t[18]!==g?(_=(0,W.jsx)(a,{size:`xs`,disabled:m,"aria-label":h,onClick:g,children:`Approve`}),t[16]=m,t[17]=h,t[18]=g,t[19]=_):_=t[19];let y;t[20]!==_||t[21]!==p?(y=(0,W.jsxs)(`span`,{className:`flex gap-2`,children:[p,_]}),t[20]=_,t[21]=p,t[22]=y):y=t[22];let b;return t[23]!==e.person||t[24]!==y||t[25]!==s?(b=(0,W.jsx)(X,{person:o,error:s,children:y}),t[23]=e.person,t[24]=y,t[25]=s,t[26]=b):b=t[26],b}function Q(e){let t=(0,U.c)(7),n=e.person,r;t[0]===e.person.since?r=t[1]:(r=d(e.person.since,{onNone:h,onSome:O}),t[0]=e.person.since,t[1]=r);let i;t[2]===r?i=t[3]:(i=(0,W.jsx)(`span`,{className:`text-muted-foreground tabular-nums`,children:r}),t[2]=r,t[3]=i);let a;return t[4]!==e.person||t[5]!==i?(a=(0,W.jsx)(X,{person:n,children:i}),t[4]=e.person,t[5]=i,t[6]=a):a=t[6],a}function $(){let e=(0,U.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,W.jsx)(I,{atom:o,children:te}),e[0]=t):t=e[0],t}function te(e){return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`h1`,{className:`sr-only`,children:`People`}),x(e,{onEmpty:ie,onNonEmpty:ne})]})}function ne(e){return(0,W.jsx)(T,{"aria-label":`People`,children:(0,W.jsx)(k,{children:b(e,re)})})}function re(e){return f(e.role===`Waiting`,{onFalse:()=>(0,W.jsx)(Q,{person:e},e.id),onTrue:()=>(0,W.jsx)(Z,{person:e},e.id)})}function ie(){return(0,W.jsx)(P,{role:`status`,children:(0,W.jsxs)(F,{children:[(0,W.jsx)(N,{variant:`icon`,children:(0,W.jsx)(H,{})}),(0,W.jsx)(M,{children:`No people`})]})})}function ae(){let e=(0,U.c)(2);if(!y(i(c).value,oe)){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,W.jsx)(w,{to:`/`,search:{}}),e[0]=t):t=e[0],t}let t;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,W.jsx)(R.Suspense,{fallback:(0,W.jsx)(A,{label:`People`,rows:3}),children:(0,W.jsx)($,{})}),e[1]=t):t=e[1],t}function oe(e){return e.role===`Admin`}export{ae as component};
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{a as t,o as n,r}from"./react-DLGSahv8.js";import{S as i,c as a,i as o,l as s,n as c,r as l,y as u}from"./auth-CiBso9-1.js";import{Dr as d,E as f,Er as p,I as m,Ir as h,Lr as g,Sr as _,V as v,gr as y,or as b,sr as x,xr as S}from"./effect-CfZLtXM0.js";import{R as C,t as ee}from"./dist-BPRUA1hI.js";import{n as w}from"./preload-helper-Cp12E29U.js";import{a as T,c as E,i as D,n as O,o as k,r as A,s as j}from"./format-DhqC219q.js";import{a as M,i as N,n as P,r as F,t as I}from"./index-ChVaNlz0.js";import{t as L}from"./app-bar-DsHRTR2c.js";var R=e(n(),1),z=new Map([[`bold`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M208,36H48A20,20,0,0,0,28,56v56c0,54.29,26.32,87.22,48.4,105.29,23.71,19.39,47.44,26,48.44,26.29a12.1,12.1,0,0,0,6.32,0c1-.28,24.73-6.9,48.44-26.29,22.08-18.07,48.4-51,48.4-105.29V56A20,20,0,0,0,208,36Zm-4,76c0,35.71-13.09,64.69-38.91,86.15A126.28,126.28,0,0,1,128,219.38a126.14,126.14,0,0,1-37.09-21.23C65.09,176.69,52,147.71,52,112V60H204Z`}))],[`duotone`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M216,56v56c0,96-88,120-88,120S40,208,40,112V56a8,8,0,0,1,8-8H208A8,8,0,0,1,216,56Z`,opacity:`0.2`}),R.createElement(`path`,{d:`M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.27,47,25.53a8,8,0,0,0,4.2,0c1-.26,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0Z`}))],[`fill`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M224,56v56c0,52.72-25.52,84.67-46.93,102.19-23.06,18.86-46,25.27-47,25.53a8,8,0,0,1-4.2,0c-1-.26-23.91-6.67-47-25.53C57.52,196.67,32,164.72,32,112V56A16,16,0,0,1,48,40H208A16,16,0,0,1,224,56Z`}))],[`light`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M208,42H48A14,14,0,0,0,34,56v56c0,51.94,25.12,83.4,46.2,100.64,22.73,18.6,45.27,24.89,46.22,25.15a6,6,0,0,0,3.16,0c.95-.26,23.49-6.55,46.22-25.15C196.88,195.4,222,163.94,222,112V56A14,14,0,0,0,208,42Zm2,70c0,37.76-13.94,68.39-41.44,91.06A131.17,131.17,0,0,1,128,225.72a130.94,130.94,0,0,1-40.56-22.66C59.94,180.39,46,149.76,46,112V56a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z`}))],[`regular`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.27,47,25.53a8,8,0,0,0,4.2,0c1-.26,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0Z`}))],[`thin`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M208,44H48A12,12,0,0,0,36,56v56c0,51.16,24.73,82.12,45.47,99.1,22.4,18.32,44.55,24.5,45.48,24.76a4,4,0,0,0,2.1,0c.93-.26,23.08-6.44,45.48-24.76,20.74-17,45.47-47.94,45.47-99.1V56A12,12,0,0,0,208,44Zm4,68c0,38.44-14.23,69.63-42.29,92.71A132.45,132.45,0,0,1,128,227.82a132.23,132.23,0,0,1-41.71-23.11C58.23,181.63,44,150.44,44,112V56a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z`}))]]),B=R.forwardRef((e,t)=>R.createElement(C,{ref:t,...e,weights:z}));B.displayName=`ShieldIcon`;var V=new Map([[`bold`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M125.18,156.94a64,64,0,1,0-82.36,0,100.23,100.23,0,0,0-39.49,32,12,12,0,0,0,19.35,14.2,76,76,0,0,1,122.64,0,12,12,0,0,0,19.36-14.2A100.33,100.33,0,0,0,125.18,156.94ZM44,108a40,40,0,1,1,40,40A40,40,0,0,1,44,108Zm206.1,97.67a12,12,0,0,1-16.78-2.57A76.31,76.31,0,0,0,172,172a12,12,0,0,1,0-24,40,40,0,1,0-10.3-78.67,12,12,0,1,1-6.16-23.19,64,64,0,0,1,57.64,110.8,100.23,100.23,0,0,1,39.49,32A12,12,0,0,1,250.1,205.67Z`}))],[`duotone`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M136,108A52,52,0,1,1,84,56,52,52,0,0,1,136,108Z`,opacity:`0.2`}),R.createElement(`path`,{d:`M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z`}))],[`fill`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M164.47,195.63a8,8,0,0,1-6.7,12.37H10.23a8,8,0,0,1-6.7-12.37,95.83,95.83,0,0,1,47.22-37.71,60,60,0,1,1,66.5,0A95.83,95.83,0,0,1,164.47,195.63Zm87.91-.15a95.87,95.87,0,0,0-47.13-37.56A60,60,0,0,0,144.7,54.59a4,4,0,0,0-1.33,6A75.83,75.83,0,0,1,147,150.53a4,4,0,0,0,1.07,5.53,112.32,112.32,0,0,1,29.85,30.83,23.92,23.92,0,0,1,3.65,16.47,4,4,0,0,0,3.95,4.64h60.3a8,8,0,0,0,7.73-5.93A8.22,8.22,0,0,0,252.38,195.48Z`}))],[`light`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M112.6,158.43a58,58,0,1,0-57.2,0A93.83,93.83,0,0,0,5.21,196.72a6,6,0,0,0,10.05,6.56,82,82,0,0,1,137.48,0,6,6,0,0,0,10-6.56A93.83,93.83,0,0,0,112.6,158.43ZM38,108a46,46,0,1,1,46,46A46.06,46.06,0,0,1,38,108Zm211,97a6,6,0,0,1-8.3-1.74A81.8,81.8,0,0,0,172,166a6,6,0,0,1,0-12,46,46,0,1,0-17.08-88.73,6,6,0,1,1-4.46-11.14,58,58,0,0,1,50.14,104.3,93.83,93.83,0,0,1,50.19,38.29A6,6,0,0,1,249,205Z`}))],[`regular`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z`}))],[`thin`,R.createElement(R.Fragment,null,R.createElement(`path`,{d:`M107.19,159a56,56,0,1,0-46.38,0A91.83,91.83,0,0,0,6.88,197.81a4,4,0,1,0,6.7,4.37,84,84,0,0,1,140.84,0,4,4,0,1,0,6.7-4.37A91.83,91.83,0,0,0,107.19,159ZM36,108a48,48,0,1,1,48,48A48.05,48.05,0,0,1,36,108Zm212,95.35a4,4,0,0,1-5.53-1.17A83.81,83.81,0,0,0,172,164a4,4,0,0,1,0-8,48,48,0,1,0-17.82-92.58,4,4,0,1,1-3-7.43,56,56,0,0,1,44,103,91.83,91.83,0,0,1,53.93,38.86A4,4,0,0,1,248,203.35Z`}))]]),H=R.forwardRef((e,t)=>R.createElement(C,{ref:t,...e,weights:V}));H.displayName=`UsersIcon`;var U=t(),W=r();s(`group/field flex w-full gap-2 data-[invalid=true]:text-destructive`,{variants:{orientation:{vertical:`flex-col *:w-full [&>.sr-only]:w-auto`,horizontal:`flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`,responsive:`flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`}},defaultVariants:{orientation:`vertical`}});function G(e){let t=(0,U.c)(15),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,children:n,errors:i,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o;bb0:{if(n){o=n;break bb0}if(!i?.length){o=null;break bb0}let e;t[5]===i?e=t[6]:(e=[...new Map(i.map(q)).values()],t[5]=i,t[6]=e);let r=e;if(r?.length==1){o=r[0]?.message;break bb0}let a;t[7]===r?a=t[8]:(a=(0,W.jsx)(`ul`,{className:`ml-4 flex list-disc flex-col gap-1`,children:r.map(K)}),t[7]=r,t[8]=a),o=a}let s=o;if(!s)return null;let c;t[9]===r?c=t[10]:(c=ee(`text-xs font-normal text-destructive`,r),t[9]=r,t[10]=c);let l;return t[11]!==s||t[12]!==a||t[13]!==c?(l=(0,W.jsx)(`div`,{role:`alert`,"data-slot":`field-error`,className:c,...a,children:s}),t[11]=s,t[12]=a,t[13]=c,t[14]=l):l=t[14],l}function K(e,t){return e?.message&&(0,W.jsx)(`li`,{children:e.message},t)}function q(e){return[e?.message,e]}function J(e){let t=(0,U.c)(4),n;t[0]===e.result?n=t[1]:(n=_(p(m(e.result),Y)),t[0]=e.result,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,W.jsx)(G,{children:n}),t[2]=n,t[3]=r),r}function Y(e){return e.message}function X(e){let t=(0,U.c)(27),n;t[0]===e.person?n=t[1]:(n=(0,W.jsx)(L,{account:e.person,size:`sm`}),t[0]=e.person,t[1]=n);let r;t[2]===e.person.role?r=t[3]:(r=e.person.role===`Admin`&&(0,W.jsx)(B,{role:`img`,"aria-label":`Admin`,className:`text-primary`}),t[2]=e.person.role,t[3]=r);let i;t[4]!==e.error||t[5]!==r?(i=(0,W.jsxs)(W.Fragment,{children:[r,e.error]}),t[4]=e.error,t[5]=r,t[6]=i):i=t[6];let a;if(t[7]!==e.person.fullName||t[8]!==e.person.name){let n;t[10]===e.person.name?n=t[11]:(n=()=>`@${e.person.name}`,t[10]=e.person.name,t[11]=n),a=d(e.person.fullName,{onNone:g,onSome:n}),t[7]=e.person.fullName,t[8]=e.person.name,t[9]=a}else a=t[9];let o;if(t[12]!==e.person.fullName||t[13]!==e.person.name){let n;t[15]===e.person.name?n=t[16]:(n=()=>e.person.name,t[15]=e.person.name,t[16]=n),o=S(e.person.fullName,n),t[12]=e.person.fullName,t[13]=e.person.name,t[14]=o}else o=t[14];let s;t[17]!==n||t[18]!==i||t[19]!==a||t[20]!==o?(s=(0,W.jsx)(D,{mark:n,after:i,detail:a,children:o}),t[17]=n,t[18]=i,t[19]=a,t[20]=o,t[21]=s):s=t[21];let c;t[22]===e.children?c=t[23]:(c=(0,W.jsx)(j,{className:`text-right`,children:e.children}),t[22]=e.children,t[23]=c);let l;return t[24]!==s||t[25]!==c?(l=(0,W.jsxs)(E,{children:[s,c]}),t[24]=s,t[25]=c,t[26]=l):l=t[26],l}function Z(e){let t=(0,U.c)(27),n;t[0]===e.person.id?n=t[1]:(n=l(e.person.id),t[0]=e.person.id,t[1]=n);let[r,i]=u(n),o=e.person,s;t[2]===r?s=t[3]:(s=(0,W.jsx)(J,{result:r}),t[2]=r,t[3]=s);let c;t[4]===r?c=t[5]:(c=v(r),t[4]=r,t[5]=c);let d=`Deny @${e.person.name}`,f;t[6]===i?f=t[7]:(f=()=>i(!1),t[6]=i,t[7]=f);let p;t[8]!==c||t[9]!==d||t[10]!==f?(p=(0,W.jsx)(a,{size:`xs`,variant:`outline`,disabled:c,"aria-label":d,onClick:f,children:`Deny`}),t[8]=c,t[9]=d,t[10]=f,t[11]=p):p=t[11];let m;t[12]===r?m=t[13]:(m=v(r),t[12]=r,t[13]=m);let h=`Approve @${e.person.name}`,g;t[14]===i?g=t[15]:(g=()=>i(!0),t[14]=i,t[15]=g);let _;t[16]!==m||t[17]!==h||t[18]!==g?(_=(0,W.jsx)(a,{size:`xs`,disabled:m,"aria-label":h,onClick:g,children:`Approve`}),t[16]=m,t[17]=h,t[18]=g,t[19]=_):_=t[19];let y;t[20]!==_||t[21]!==p?(y=(0,W.jsxs)(`span`,{className:`flex gap-2`,children:[p,_]}),t[20]=_,t[21]=p,t[22]=y):y=t[22];let b;return t[23]!==e.person||t[24]!==y||t[25]!==s?(b=(0,W.jsx)(X,{person:o,error:s,children:y}),t[23]=e.person,t[24]=y,t[25]=s,t[26]=b):b=t[26],b}function Q(e){let t=(0,U.c)(7),n=e.person,r;t[0]===e.person.since?r=t[1]:(r=d(e.person.since,{onNone:h,onSome:O}),t[0]=e.person.since,t[1]=r);let i;t[2]===r?i=t[3]:(i=(0,W.jsx)(`span`,{className:`text-muted-foreground tabular-nums`,children:r}),t[2]=r,t[3]=i);let a;return t[4]!==e.person||t[5]!==i?(a=(0,W.jsx)(X,{person:n,children:i}),t[4]=e.person,t[5]=i,t[6]=a):a=t[6],a}function $(){let e=(0,U.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,W.jsx)(I,{atom:o,children:te}),e[0]=t):t=e[0],t}function te(e){return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(`h1`,{className:`sr-only`,children:`People`}),x(e,{onEmpty:ie,onNonEmpty:ne})]})}function ne(e){return(0,W.jsx)(T,{"aria-label":`People`,children:(0,W.jsx)(k,{children:b(e,re)})})}function re(e){return f(e.role===`Waiting`,{onFalse:()=>(0,W.jsx)(Q,{person:e},e.id),onTrue:()=>(0,W.jsx)(Z,{person:e},e.id)})}function ie(){return(0,W.jsx)(P,{role:`status`,children:(0,W.jsxs)(F,{children:[(0,W.jsx)(N,{variant:`icon`,children:(0,W.jsx)(H,{})}),(0,W.jsx)(M,{children:`No people`})]})})}function ae(){let e=(0,U.c)(2);if(!y(i(c).value,oe)){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,W.jsx)(w,{to:`/`,search:{}}),e[0]=t):t=e[0],t}let t;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,W.jsx)(R.Suspense,{fallback:(0,W.jsx)(A,{label:`People`,rows:3}),children:(0,W.jsx)($,{})}),e[1]=t):t=e[1],t}function oe(e){return e.role===`Admin`}export{ae as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{a as t,o as n,r}from"./react-DLGSahv8.js";import{S as i,c as a,n as o}from"./auth-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{a as t,o as n,r}from"./react-DLGSahv8.js";import{S as i,c as a,n as o}from"./auth-CiBso9-1.js";import{Dr as s,E as c,Ir as l,Rr as u,gr as d,xr as f}from"./effect-CfZLtXM0.js";import{c as p,d as m,o as h,s as g}from"./index-ChVaNlz0.js";import{a as _,i as v,n as y,r as b}from"./app-bar-DsHRTR2c.js";import{a as x,i as S,n as C,r as w,t as T}from"./dropdown-menu-CEOlArzC.js";import{t as E}from"./marks-DVv3lWZ2.js";var D=e(n()),O=t(),k=r();function A(e){let t=(0,O.c)(2),n;return t[0]===e.children?n=t[1]:(n=(0,k.jsx)(`main`,{className:`pb-safe-bottom relative flex min-h-0 flex-1 justify-center overflow-y-auto px-4 pt-4 sm:px-6 lg:px-8 lg:pt-6`,children:(0,k.jsx)(`div`,{className:`flex min-h-full w-full max-w-160 flex-col gap-4 self-start`,children:e.children})}),t[0]=e.children,t[1]=n),n}function j(e){let t=(0,O.c)(12),n;t[0]===e.account?n=t[1]:(n=(0,k.jsx)(x,{render:(0,k.jsx)(y,{account:e.account})}),t[0]=e.account,t[1]=n);let r;t[2]===e.account.name?r=t[3]:(r=(0,k.jsx)(S,{disabled:!0,children:e.account.name}),t[2]=e.account.name,t[3]=r);let i;t[4]===e.account.signOut?i=t[5]:(i=e.account.signOut&&(0,k.jsx)(k.Fragment,{children:(0,k.jsx)(`form`,{action:`/sign-out`,method:`post`,children:(0,k.jsx)(S,{render:(0,k.jsx)(`button`,{"aria-label":`Sign out`,type:`submit`}),children:`Sign out`})})}),t[4]=e.account.signOut,t[5]=i);let a;t[6]!==r||t[7]!==i?(a=(0,k.jsx)(C,{align:`end`,children:(0,k.jsxs)(w,{children:[r,i]})}),t[6]=r,t[7]=i,t[8]=a):a=t[8];let o;return t[9]!==n||t[10]!==a?(o=(0,k.jsxs)(T,{children:[n,a]}),t[9]=n,t[10]=a,t[11]=o):o=t[11],o}var M=e=>{let t=(0,O.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,k.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z`,transform:`scale(64)`,fill:`#ffff`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,k.jsx)(`svg`,{...e,viewBox:`0 0 1024 1024`,fill:`none`,children:n}),t[1]=e,t[2]=r),r},N=e=>{let t=(0,O.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,k.jsx)(`path`,{fill:`#1b1f23`,fillRule:`evenodd`,d:`M512 0C229.12 0 0 229.12 0 512c0 226.56 146.56 417.92 350.08 485.76 25.6 4.48 35.2-10.88 35.2-24.32 0-12.16-.64-52.48-.64-95.36-128.64 23.68-161.92-31.36-172.16-60.16-5.76-14.72-30.72-60.16-52.48-72.32-17.92-9.6-43.52-33.28-.64-33.92 40.32-.64 69.12 37.12 78.72 52.48 46.08 77.44 119.68 55.68 149.12 42.24 4.48-33.28 17.92-55.68 32.64-68.48-113.92-12.8-232.96-56.96-232.96-252.8 0-55.68 19.84-101.76 52.48-137.6-5.12-12.8-23.04-65.28 5.12-135.68 0 0 42.88-13.44 140.8 52.48 40.96-11.52 84.48-17.28 128-17.28s87.04 5.76 128 17.28c97.92-66.56 140.8-52.48 140.8-52.48 28.16 70.4 10.24 122.88 5.12 135.68 32.64 35.84 52.48 81.28 52.48 137.6 0 196.48-119.68 240-233.6 252.8 18.56 16 34.56 46.72 34.56 94.72 0 68.48-.64 123.52-.64 140.8 0 13.44 9.6 29.44 35.2 24.32C877.44 929.92 1024 737.92 1024 512 1024 229.12 794.88 0 512 0`,clipRule:`evenodd`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,k.jsx)(`svg`,{...e,viewBox:`0 0 1024 1024`,fill:`none`,children:n}),t[1]=e,t[2]=r),r},P=p(`/(home)`);function F(){let e=(0,O.c)(6),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:L},e[0]=t):t=e[0];let n=P.useSearch(t),r;e[1]===n?r=e[2]:(r=()=>location.assign(`/sign-in?${new URLSearchParams({next:f(n,I)})}`),e[1]=n,e[2]=r);let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,k.jsx)(E,{light:M,dark:N}),e[3]=i):i=e[3];let o;return e[4]===r?o=e[5]:(o=(0,k.jsx)(`section`,{className:`m-auto flex w-full flex-col gap-5 sm:max-w-80`,"aria-label":`Sign in`,children:(0,k.jsxs)(a,{size:`lg`,onClick:r,children:[i,`Continue with GitHub`]})}),e[4]=r,e[5]=o),o}function I(){return location.origin}function L(e){return e.next}var R=`/assets/icon-CPvsBESP.svg`;function z(){let e=(0,O.c)(15),t=i(o).value,n=h(),r;e[0]===t?r=e[1]:(r=s(t,{onNone:l,onSome:G}),e[0]=t,e[1]=r);let a;e[2]!==t||e[3]!==n?(a=d(t,W)&&(0,k.jsxs)(_,{value:c(n({to:`/people`})!==!1,{onFalse:u(`/`),onTrue:u(`/people`)}),children:[(0,k.jsx)(v,{value:`/`,render:(0,k.jsx)(m,{to:`/`,search:{}}),children:`Sessions`}),(0,k.jsx)(v,{value:`/people`,render:(0,k.jsx)(m,{to:`/people`,search:{}}),children:`People`})]}),e[2]=t,e[3]=n,e[4]=a):a=e[4];let f;e[5]!==r||e[6]!==a?(f=(0,k.jsx)(b,{name:`auth`,icon:R,account:r,tabs:a}),e[5]=r,e[6]=a,e[7]=f):f=e[7];let p;e[8]===t?p=e[9]:(p=s(t,{onNone:U,onSome:B}),e[8]=t,e[9]=p);let g;e[10]===p?g=e[11]:(g=(0,k.jsx)(A,{children:p}),e[10]=p,e[11]=g);let y;return e[12]!==f||e[13]!==g?(y=(0,k.jsxs)(k.Fragment,{children:[f,g]}),e[12]=f,e[13]=g,e[14]=y):y=e[14],y}function B(e){return c(e.role===`Waiting`,{onFalse:H,onTrue:V})}function V(){return(0,k.jsx)(`p`,{className:`text-muted-foreground m-auto`,children:`Waiting for an admin`})}function H(){return(0,k.jsx)(g,{})}function U(){return(0,k.jsx)(F,{})}function W(e){return e.role===`Admin`}function G(e){return(0,k.jsx)(j,{account:e})}function K(){let e=(0,O.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,k.jsx)(D.Suspense,{fallback:null,children:(0,k.jsx)(z,{})}),e[0]=t):t=e[0],t}export{K as component};
|
package/dist/client/index.html
CHANGED
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
<link rel="preload" href="/api/runtime" as="fetch" crossorigin />
|
|
18
18
|
|
|
19
19
|
<title>Auth</title>
|
|
20
|
-
<script type="module" crossorigin src="/assets/index-
|
|
20
|
+
<script type="module" crossorigin src="/assets/index-ChVaNlz0.js"></script>
|
|
21
21
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-XKyaHtl9.js">
|
|
22
22
|
<link rel="modulepreload" crossorigin href="/assets/react-DLGSahv8.js">
|
|
23
|
-
<link rel="modulepreload" crossorigin href="/assets/effect-
|
|
23
|
+
<link rel="modulepreload" crossorigin href="/assets/effect-CfZLtXM0.js">
|
|
24
24
|
<link rel="modulepreload" crossorigin href="/assets/dist-BPRUA1hI.js">
|
|
25
|
-
<link rel="modulepreload" crossorigin href="/assets/auth-
|
|
25
|
+
<link rel="modulepreload" crossorigin href="/assets/auth-CiBso9-1.js">
|
|
26
26
|
<link rel="modulepreload" crossorigin href="/assets/preload-helper-Cp12E29U.js">
|
|
27
27
|
<link rel="stylesheet" crossorigin href="/assets/index-B1VOSd9T.css">
|
|
28
28
|
</head>
|