@deslop/scope 0.1.1254 → 0.1.1258

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.
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" shape-rendering="crispEdges"><path fill="#000" fill-opacity=".18" d="M8 35h1v1h-1zM6 36h3v1h-3zM4 37h4v1h-4zM6 38h4v1h-4zM8 39h4v1h-4zM10 40h4v1h-4zM12 41h4v1h-4zM55 41h1v1h-1zM14 42h4v1h-4zM55 42h3v1h-3zM16 43h4v1h-4zM56 43h4v1h-4zM18 44h4v1h-4zM54 44h4v1h-4zM20 45h4v1h-4zM52 45h4v1h-4zM22 46h4v1h-4zM50 46h4v1h-4zM24 47h4v1h-4zM48 47h4v1h-4zM26 48h4v1h-4zM46 48h4v1h-4zM28 49h4v1h-4zM44 49h4v1h-4zM30 50h4v1h-4zM42 50h4v1h-4zM32 51h4v1h-4zM40 51h4v1h-4zM34 52h8v1h-8zM36 53h4v1h-4z"/><path fill="#000" fill-opacity=".38" d="M8 37h2v1h-2zM10 38h1v1h-1zM12 39h1v1h-1zM14 40h1v1h-1zM16 41h1v1h-1zM18 42h1v1h-1zM20 43h1v1h-1zM54 43h2v1h-2zM22 44h1v1h-1zM53 44h1v1h-1zM24 45h1v1h-1zM51 45h1v1h-1zM26 46h1v1h-1zM49 46h1v1h-1zM28 47h1v1h-1zM47 47h1v1h-1zM30 48h1v1h-1zM45 48h1v1h-1zM32 49h1v1h-1zM43 49h1v1h-1zM34 50h1v1h-1zM41 50h1v1h-1zM36 51h1v1h-1zM39 51h1v1h-1z"/><path fill="#352b50" d="M31 12h3v1h-3zM29 13h2v1h-2zM34 13h1v1h-1zM27 14h2v1h-2zM34 14h1v1h-1zM25 15h2v1h-2zM34 15h1v1h-1zM23 16h2v1h-2zM34 16h1v1h-1zM39 16h3v1h-3zM21 17h2v1h-2zM34 17h1v1h-1zM37 17h2v1h-2zM19 18h2v1h-2zM34 18h3v1h-3zM17 19h2v1h-2zM34 19h1v1h-1zM15 20h2v1h-2zM13 21h2v1h-2zM11 22h2v1h-2zM10 23h1v1h-1zM9 24h1v1h-1zM9 25h1v1h-1zM9 26h1v1h-1zM9 27h1v1h-1zM9 28h1v1h-1zM50 28h1v1h-1zM9 29h1v1h-1zM51 29h2v1h-2zM9 30h1v1h-1zM53 30h1v1h-1zM9 31h1v1h-1zM54 31h1v1h-1zM9 32h1v1h-1zM54 32h1v1h-1zM9 33h1v1h-1zM54 33h1v1h-1zM9 34h1v1h-1zM54 34h1v1h-1zM9 35h1v1h-1zM54 35h1v1h-1zM9 36h1v1h-1zM54 36h1v1h-1zM10 37h1v1h-1zM54 37h1v1h-1zM11 38h2v1h-2zM54 38h1v1h-1zM13 39h2v1h-2zM54 39h1v1h-1zM15 40h2v1h-2zM54 40h1v1h-1zM17 41h2v1h-2zM54 41h1v1h-1zM19 42h2v1h-2zM53 42h2v1h-2zM21 43h2v1h-2zM51 43h3v1h-3zM23 44h2v1h-2zM49 44h4v1h-4zM25 45h2v1h-2zM47 45h4v1h-4zM27 46h2v1h-2zM45 46h4v1h-4zM29 47h2v1h-2zM43 47h4v1h-4zM31 48h2v1h-2zM41 48h4v1h-4zM33 49h2v1h-2zM39 49h4v1h-4zM35 50h2v1h-2zM38 50h3v1h-3zM37 51h2v1h-2z"/><path fill="#a893c4" d="M31 13h2v1h-2zM29 14h2v1h-2zM27 15h2v1h-2zM25 16h2v1h-2zM23 17h2v1h-2zM39 17h2v1h-2zM21 18h2v1h-2zM37 18h2v1h-2zM19 19h2v1h-2zM35 19h2v1h-2zM17 20h2v1h-2zM33 20h2v1h-2zM15 21h1v1h-1zM31 21h2v1h-2zM13 22h1v1h-1zM29 22h2v1h-2zM11 23h1v1h-1zM27 23h2v1h-2zM25 24h2v1h-2zM41 24h2v1h-2zM23 25h1v1h-1zM39 25h2v1h-2zM21 26h1v1h-1zM37 26h2v1h-2zM19 27h1v1h-1zM35 27h2v1h-2zM33 28h2v1h-2zM31 29h1v1h-1zM50 29h1v1h-1zM29 30h1v1h-1zM50 30h3v1h-3zM27 31h1v1h-1zM49 31h2v1h-2zM43 32h2v1h-2zM47 32h2v1h-2zM41 33h6v1h-6zM39 34h6v1h-6zM37 35h6v1h-6zM35 36h6v1h-6zM37 37h2v1h-2zM37 39h1v1h-1zM37 40h1v1h-1zM37 45h1v1h-1zM37 46h1v1h-1zM37 47h1v1h-1zM37 48h1v1h-1zM37 49h1v1h-1z"/><path fill="#16161D" d="M33 13h1v1h-1zM31 14h3v1h-3zM29 15h5v1h-5zM45 15h2v1h-2zM27 16h7v1h-7zM43 16h6v1h-6zM25 17h9v1h-9zM43 17h6v1h-6zM23 18h11v1h-11zM45 18h2v1h-2zM21 19h13v1h-13zM19 20h14v1h-14zM18 21h13v1h-13zM18 22h11v1h-11zM18 23h9v1h-9zM18 24h7v1h-7zM43 24h1v1h-1zM18 25h5v1h-5zM41 25h3v1h-3zM18 26h3v1h-3zM39 26h5v1h-5zM18 27h1v1h-1zM37 27h7v1h-7zM12 28h1v1h-1zM35 28h9v1h-9zM12 29h3v1h-3zM34 29h10v1h-10zM12 30h2v1h-2zM15 30h2v1h-2zM34 30h10v1h-10zM12 31h2v1h-2zM17 31h2v1h-2zM34 31h10v1h-10zM13 32h2v1h-2zM18 32h3v1h-3zM34 32h9v1h-9zM15 33h2v1h-2zM18 33h2v1h-2zM21 33h2v1h-2zM34 33h7v1h-7zM53 33h1v1h-1zM17 34h3v1h-3zM23 34h2v1h-2zM34 34h5v1h-5zM51 34h3v1h-3zM19 35h2v1h-2zM24 35h3v1h-3zM34 35h3v1h-3zM49 35h2v1h-2zM52 35h2v1h-2zM21 36h2v1h-2zM24 36h2v1h-2zM27 36h2v1h-2zM34 36h1v1h-1zM47 36h2v1h-2zM52 36h2v1h-2zM23 37h3v1h-3zM29 37h2v1h-2zM45 37h3v1h-3zM51 37h2v1h-2zM25 38h2v1h-2zM30 38h3v1h-3zM43 38h2v1h-2zM46 38h2v1h-2zM49 38h2v1h-2zM27 39h2v1h-2zM30 39h2v1h-2zM33 39h2v1h-2zM41 39h2v1h-2zM46 39h3v1h-3zM29 40h3v1h-3zM35 40h2v1h-2zM40 40h2v1h-2zM45 40h2v1h-2zM31 41h2v1h-2zM36 41h2v1h-2zM40 41h2v1h-2zM43 41h2v1h-2zM33 42h2v1h-2zM36 42h2v1h-2zM40 42h3v1h-3zM35 43h3v1h-3zM40 43h1v1h-1zM37 44h1v1h-1z"/><path fill="#565961" d="M45 14h2v1h-2zM43 15h2v1h-2zM47 15h2v1h-2zM42 16h1v1h-1zM49 16h1v1h-1zM50 17h1v1h-1zM50 18h1v1h-1zM50 19h1v1h-1zM50 20h1v1h-1zM50 21h1v1h-1zM50 22h1v1h-1zM50 23h1v1h-1zM50 24h1v1h-1zM50 25h1v1h-1zM50 26h1v1h-1zM50 27h1v1h-1z"/><path fill="#F2D98C" d="M41 17h1v1h-1zM39 18h3v1h-3zM37 19h5v1h-5zM35 20h7v1h-7zM33 21h9v1h-9zM31 22h11v1h-11zM29 23h13v1h-13zM27 24h14v1h-14zM26 25h13v1h-13zM26 26h11v1h-11zM26 27h9v1h-9zM26 28h7v1h-7zM26 29h5v1h-5zM14 30h1v1h-1zM26 30h3v1h-3zM14 31h3v1h-3zM26 31h1v1h-1zM15 32h3v1h-3zM17 33h1v1h-1zM20 33h1v1h-1zM20 34h3v1h-3zM21 35h3v1h-3zM51 35h1v1h-1zM23 36h1v1h-1zM26 36h1v1h-1zM49 36h3v1h-3zM26 37h3v1h-3zM48 37h3v1h-3zM27 38h3v1h-3zM45 38h1v1h-1zM48 38h1v1h-1zM29 39h1v1h-1zM32 39h1v1h-1zM43 39h3v1h-3zM32 40h3v1h-3zM42 40h3v1h-3zM33 41h3v1h-3zM42 41h1v1h-1zM35 42h1v1h-1z"/><path fill="#B4B8C4" d="M42 17h1v1h-1zM42 18h3v1h-3zM42 19h3v1h-3zM42 20h3v1h-3zM42 21h3v1h-3zM42 22h3v1h-3zM42 23h3v1h-3zM44 24h1v1h-1zM44 25h1v1h-1zM44 26h1v1h-1zM44 27h1v1h-1zM44 28h1v1h-1zM44 29h1v1h-1zM44 30h1v1h-1zM44 31h1v1h-1z"/><path fill="#868a95" d="M49 17h1v1h-1zM47 18h3v1h-3zM46 19h4v1h-4zM46 20h4v1h-4zM46 21h4v1h-4zM46 22h4v1h-4zM46 23h4v1h-4zM46 24h4v1h-4zM46 25h4v1h-4zM46 26h4v1h-4zM46 27h4v1h-4zM46 28h4v1h-4zM46 29h4v1h-4zM46 30h4v1h-4zM46 31h3v1h-3zM46 32h1v1h-1z"/><path fill="#c8cbd6" d="M45 19h1v1h-1zM45 20h1v1h-1zM45 21h1v1h-1zM45 22h1v1h-1zM45 23h1v1h-1zM45 24h1v1h-1zM45 25h1v1h-1zM45 26h1v1h-1zM45 27h1v1h-1zM45 28h1v1h-1zM45 29h1v1h-1zM45 30h1v1h-1zM45 31h1v1h-1zM45 32h1v1h-1z"/><path fill="#957FB8" d="M16 21h2v1h-2zM14 22h4v1h-4zM12 23h6v1h-6zM10 24h8v1h-8zM10 25h8v1h-8zM24 25h2v1h-2zM10 26h8v1h-8zM22 26h4v1h-4zM10 27h8v1h-8zM20 27h6v1h-6zM10 28h2v1h-2zM13 28h13v1h-13zM10 29h2v1h-2zM15 29h11v1h-11zM32 29h2v1h-2zM10 30h2v1h-2zM17 30h9v1h-9zM30 30h4v1h-4zM10 31h2v1h-2zM19 31h7v1h-7zM28 31h6v1h-6zM10 32h3v1h-3zM21 32h13v1h-13zM10 33h5v1h-5zM23 33h11v1h-11zM10 34h7v1h-7zM25 34h9v1h-9zM10 35h9v1h-9zM27 35h7v1h-7zM11 36h10v1h-10zM29 36h5v1h-5zM13 37h10v1h-10zM31 37h4v1h-4zM15 38h10v1h-10zM33 38h4v1h-4zM17 39h10v1h-10zM35 39h2v1h-2zM19 40h10v1h-10zM21 41h10v1h-10zM23 42h10v1h-10zM25 43h10v1h-10zM27 44h10v1h-10zM29 45h8v1h-8zM31 46h6v1h-6zM33 47h4v1h-4zM35 48h2v1h-2z"/><path fill="#b9a8cb" d="M51 31h2v1h-2zM49 32h2v1h-2zM47 33h2v1h-2zM45 34h2v1h-2zM43 35h2v1h-2zM41 36h2v1h-2zM35 37h2v1h-2zM39 37h2v1h-2zM37 38h2v1h-2z"/><path fill="#665589" d="M53 31h1v1h-1zM51 32h3v1h-3zM49 33h4v1h-4zM47 34h4v1h-4zM45 35h4v1h-4zM43 36h4v1h-4zM41 37h4v1h-4zM53 37h1v1h-1zM39 38h4v1h-4zM51 38h3v1h-3zM38 39h3v1h-3zM49 39h5v1h-5zM38 40h2v1h-2zM47 40h7v1h-7zM38 41h2v1h-2zM45 41h9v1h-9zM38 42h2v1h-2zM43 42h10v1h-10zM38 43h2v1h-2zM41 43h10v1h-10zM38 44h11v1h-11zM38 45h9v1h-9zM38 46h7v1h-7zM38 47h5v1h-5zM38 48h3v1h-3zM38 49h1v1h-1z"/><path fill="#7e6ca1" d="M10 36h1v1h-1zM11 37h2v1h-2zM13 38h2v1h-2zM15 39h2v1h-2zM17 40h2v1h-2zM19 41h2v1h-2zM21 42h2v1h-2zM23 43h2v1h-2zM25 44h2v1h-2zM27 45h2v1h-2zM29 46h2v1h-2zM31 47h2v1h-2zM33 48h2v1h-2zM35 49h2v1h-2zM37 50h1v1h-1z"/></svg>
@@ -1,3 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/(home)-CCR5ETLK.js","assets/rolldown-runtime-WkwZ5CU-.js","assets/react-COyt-gOi.js","assets/effect-DGdI2y-R.js"])))=>i.map(i=>d[i]);
2
- import{n as e,t}from"./rolldown-runtime-WkwZ5CU-.js";import{$ as n,$n as r,An as i,At as a,B as o,Bt as s,Ct as c,Dt as l,Et as u,F as d,Fn as f,Ft as p,G as m,Gn as h,Gt as g,H as _,Hn as v,Ht as y,I as b,In as x,It as S,J as C,Jn as w,K as T,Kn as E,L as D,Ln as ee,Lt as te,M as ne,Mt as O,N as k,Nt as A,O as j,On as re,Ot as M,P as ie,Pt as ae,Q as N,Qn as oe,Qt as P,R as F,Rt as se,Sn as ce,St as I,Tn as le,Tt as ue,U as de,Un as fe,Ut as pe,V as L,Vn as me,Vt as he,W as R,Wt as ge,X as z,Xn as _e,Y as ve,Yn as ye,Z as B,Zn as be,Zt as xe,_n as Se,_t as Ce,a as we,an as Te,bn as Ee,bt as De,c as Oe,cn as ke,ct as Ae,dn as je,dt as V,er as Me,et as Ne,f as Pe,ft as Fe,gr as H,gt as Ie,h as Le,hn as Re,hr as ze,i as Be,in as Ve,it as He,jt as Ue,kt as We,l as Ge,ln as Ke,lt as qe,mn as Je,n as Ye,nn as Xe,nr as Ze,nt as Qe,o as $e,on as et,ot as tt,p as nt,pn as rt,pr as it,pt as at,q as ot,qn as st,qt as ct,r as lt,rr as ut,rt as dt,s as ft,sn as pt,st as mt,t as ht,tr as gt,tt as _t,u as vt,un as yt,ur as bt,ut as xt,v as St,vt as Ct,wt,x as Tt,xt as Et,y as Dt,yt as Ot,z as kt,zn as At,zt as jt}from"./effect-DGdI2y-R.js";import{a as Mt,n as Nt,o as Pt,r as Ft}from"./react-COyt-gOi.js";var U=e(Pt(),1),It=U.createContext(null);function W(e){return U.useContext(It)}function Lt(e){return e[e.length-1]}function Rt(e,t){return typeof e==`function`?e(t):e}var zt=Object.prototype.hasOwnProperty;function Bt(e){for(let t in e)if(zt.call(e,t))return!0;return!1}var Vt=()=>Object.create(null),Ht=(e,t)=>Ut(e,t,!0);function Ut(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&&!(Wt(e)&&Wt(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&&Lt(a)!==`${o-1}`||c&&Lt(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`?Ut(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`?Ut(d,o,n,r):o,i&&=u===d&&(a[l]===f||zt.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?Vt():{};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`?Ut(d,u,n,r):u),p[f]=o<l?d:u):p[f]=a[o];return p}function Wt(e){return!e||typeof e!=`object`?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function Gt(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&&!Gt(a,o,n,r))return!1}return!0}if(Wt(e)&&Wt(t)){if(n){for(let i in t)if((r||t[i]!==void 0)&&!Gt(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||!Gt(e[a],t[a],n,r)))return!1;return i===0}return!1}function Kt(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 qt=/[\x00-\x1f\x7f"<>`{}]/g;function Jt(e){return e.replace(qt,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function Yt(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 Jt(t)}var Xt=[`http:`,`https:`,`mailto:`,`tel:`];function Zt(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 Qt=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function $t(e,t){if(!e)return!1;if(Qt.test(e))return!0;let n=Zt(e);return n?!t.has(n):!1}var en={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},tn=/[&><\u2028\u2029]/g;function nn(e){return e.replace(tn,e=>en[e])}function rn(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+=Yt(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=Yt(r?e.slice(r):e)}return t}function an(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function on(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 sn(){throw Error(`Invariant failed`)}function cn(e){return e.replace(/\/{2,}/g,`/`)}function ln(e){return e===`/`?e:e.replace(/^\/+/,``)}function un(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function dn(e){return un(ln(e))}function fn(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function pn(e,t,n=`never`,r){if(t.includes(`//`)&&(t=cn(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=cn(e)),o=e.split(`/`);o.length>1&&Lt(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&&(Lt(o)===``?n===`never`&&o.pop():n===`always`&&o.push(``));let s=o.join(`/`),c=(i?cn(s):s)||`/`;return a&&r&&r.set(a,c),c}function mn(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 hn(e){return e==null||e===``}function gn(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 _n(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&&hn(f)){if(c===`/`&&!d)continue;f=``}o+=c+gn(s,f,r)+(d||``)}}return o+a||`/`}function vn(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function yn(e){return e?.isNotFound===!0}var bn=`__root__`;function xn(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 Sn(e){return e instanceof Response&&!!e.options}function Cn(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 wn=4,Tn=5;function En(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 Dn(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 On(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=Lt(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=Dn(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=An(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=An(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=An(r,Tn);(r.pathless??=[]).push(e),r=e}let g=(t.path||!t.children)&&!t.isRoot;if(g&&u<l){let e=An(r,wn);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 kn(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 An(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 jn(e,t){let n=An(),r=[];function i(e,t,n,a){let[o,s,c]=On(!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(kn);t.masksTree=n,t.flatCache=Cn(1e3)}function Mn(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=In(e,t.masksTree);return t.flatCache.set(e,r),r}function Nn(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=An(),On(t,{from:e},1,o),i.singleCache.set(a,o)),In(r,o,n)}function Pn(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=In(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Rn(a.route)),t.matchCache.set(r,a),a}function Fn(e,t=!1){let n=An(),r=[],i={},a={},o=0;function s(e,n,c,l){if(e.init(o),e.id in i&&sn(),i[e.id]=e,o!==0&&e.path){let t=un(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}o++;let[u,d,f]=On(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(kn);return{processedTree:{segmentTree:n,singleCache:Cn(1e3),matchCache:Cn(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function In(e,t,n=!1){let r=e.split(`/`),i=Bn(e,r,t,n);if(!i)return null;let[a]=Ln(e,r,i);return{route:i.node.route,rawParams:a}}function Ln(e,t,n){let r=zn(n.node),i=n.node.data&&En(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===wn)break;if(u.kind===Tn){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 Rn(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function zn(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Bn(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!Lt(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&&!Wn(l,n))continue;if(i.parse){if(!Un(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==wn&&Wn(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===wn||i.kind===2)&&Wn(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&&(Un(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&Hn(f,o))return n;Wn(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+Vn(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+Vn(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+Vn(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+Vn(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 Vn(e,t){return 2**(e-t-1)}function Hn(e,t){return e===2**(t-1)-1}function Un(e,t,n){let r,i;try{[r,i]=Ln(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 Wn(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===wn)>(e.node.kind===wn)||t.node.kind===wn==(e.node.kind===wn)&&t.node.depth>e.node.depth)))}function Gn(){try{return sessionStorage}catch{return}}var Kn=`tsr-scroll-restoration-v1_3`,qn=Gn();function Jn(){try{return JSON.parse(qn?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var Yn=Jn(),Xn=`data-scroll-restoration-id`,Zn=e=>e.state.__TSR_key||e.href;function Qn(e){let t=e.getAttribute(Xn);if(t)return`[${Xn}="${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 $n=!1,er=`window`;function tr(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function nr(e){let t=new Set;for(let n of e){if(n===er)continue;let e=tr(n);e&&t.add(e)}return t}function rr(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||Zn,a=new Set,o=e=>{let t=Yn[e]||={};for(let e of a)e===document?t[er]={scrollX,scrollY}:e.isConnected&&(t[Qn(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,$n=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{$n||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{qn?.setItem(Kn,JSON.stringify(Yn))}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=Yn[d];if(e){let t=Yn[u];for(let n in e){if(n===er){if(s)continue}else{let e=tr(n);if(!e||s&&o&&(l??=nr(o),l.has(e)))continue}t||=Yn[u]={},t[n]??=e[n]}}}$n=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=nr(o));let t=e&&i&&c,s=r.e?Yn[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===er){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=tr(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{$n=!1}}))}function ir(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 ar(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function or(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]=ar(r):Array.isArray(t)?t.push(ar(r)):n[e]=[t,ar(r)]}return n}var sr=/^(?:\s|["[{\d-]|fa|nu|tr)/,cr=ur(JSON.parse),lr=dr(JSON.stringify,JSON.parse);function ur(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.slice(1));let r=or(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!sr.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function dr(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&&!sr.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=ir(e,r);return t?`?${t}`:``}}function fr(e,t,n){let r=dn(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=cn(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>pr(n,s.input({url:e})),output:({url:e})=>s.output({url:mr(n,e)})}:s}function pr(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 mr(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 hr(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(()=>{on(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 gr=`__TSR_index`,_r=`popstate`,vr=`beforeunload`,yr=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function br(e){let t=yr.exec(e);return t?`/`+e.slice(t[0].length):e}function xr(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`
3
- \r`.includes(e)?``:encodeURIComponent(e))),br(e)}function Sr(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=Tr(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[gr];i=Cr(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[gr];i=Cr(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[gr]!==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 Cr(e,t){let n=Er();return{...t,key:n,__TSR_key:n,[gr]:e}}function wr(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=>xr(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>Tr(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Er();t.history.replaceState({[gr]: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=Tr(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[gr]-l.state[gr],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=Sr({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(vr,x,{capture:!0}),t.removeEventListener(_r,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(vr,x,{capture:!0}),t.addEventListener(_r,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 Tr(e,t){let n=xr(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=Er();t={[gr]: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 Er(){return(Math.random()+1).toString(36).slice(7)}function Dr(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function Or(e){return e.pathname+e.search+e.hash}function kr(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function Ar(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function jr({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function Mr(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function Nr(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 Pr=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:wr()),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!==`/`&&dn(n)?fr(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=hr(this.latestLocation,e),rr(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=Fn(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&jn(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:Cn(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:rn(e),external:!1,searchStr:o,search:Ht(t?.search,i),hash:rn(r.slice(1)),state:Ut(t?.state,a)}}let o=pr(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:rn(br(o.pathname)),external:!!this.rewrite&&Dr(o,this.origin),searchStr:c,search:Ht(t?.search,s),hash:rn(o.hash.slice(1)),state:Ut(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=Pn(un(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=Tr(n.href,{});n={...n,to:pr(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=pn(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),l=this.routesByPath[un(c)],u=c.includes(`$`),d;if(l)d=l._branch??=Rn(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??On(!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??=zr(n.params,e),!Bt(p))break;p===e&&(p=Object.assign(Vt(),p));try{Object.assign(p,t(p))}catch{}}}p??=zr(n.params,Br(n.params,f)?o()[3]:Vr);let m=e.leaveParams?c:br(rn(f?_n(c,f,p,this.pathParamsDecoder):c)),h=Hr(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,Rr(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},_=h.length?Ur(h,g(),n):n.search===!0?g():typeof n.search==`function`?n.search(g()):n.search||Vr,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:Vr,S=`${m}${v}${b}`,C,w,T=!1;if(this.rewrite){let e=new URL(S,this.origin),t=e.origin,n=mr(this.rewrite,e);C=Or(e),Dr(n,t)?(w=n.href,T=!0):w=br(Or(n))}else C=an(S),w=C;return{publicHref:w,href:C,pathname:m,search:_,searchStr:v,state:x,hash:y??``,external:T,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=Mn(r.pathname,this.processedTree);if(t){let i=Object.assign(Vt(),t.rawParams),{from:a,params:o,...s}=t.route,c=zr(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 Fr(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=un(this.latestLocation.href)===un(n.href)&&Gt(jr(n.state),jr(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?Zt(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 Fr(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 Fi(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(Ar(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`)&&kr(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(Qt.test(n)||(r=Zt(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:Dr(e,this.origin)||(n=Or(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=Jr,this.preloadRoute=e=>Ii(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?pn(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=Nn(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!Gt(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?Gt(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=mn(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??lr,parseSearch:e.parseSearch??cr,protocolAllowlist:e.protocolAllowlist??Xt}),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=On(!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[`**`]:un(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?Wr(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=Rr(i.options.validateSearch,{...n})??void 0;l={...n,...e},f={...r,...e}}catch(e){let r=e;if(e instanceof Ir||(r=new Ir(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=Vt(),_=i._interpolation?_n(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{Gr(i,d)}catch(e){if(x=yn(e)||Sn(e)?e:new Lr(e.message,{cause:e}),t?.throwOnError)throw x}let S=y?`stay`:`enter`,C;if(b)C={...b,cause:S,search:Ht(y?y.search:b.search,l),_strictSearch:f,searchError:p};else{let e=kr(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?Ht(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?Ut(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`?Ht(n.params,d):d,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=Lt(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=Lt(a),c={...e.search};for(let e of a)try{Object.assign(c,Rr(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{Gr(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}};async function Fr(e,t,{replace:n,ignoreBlocker:r}){if(!$t(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 Ir=class extends Error{},Lr=class extends Error{};function Rr(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Ir(`Async validation not supported`);if(n.issues)throw new Ir(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 zr(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 Br(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!zt.call(e,t[1]))}var Vr=Object.freeze({});function Hr(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=Rr(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 Ur(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=Rt(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 Wr(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 bn}function Gr(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function Kr(e,t){return e.options[t]?.preload?.()}function qr(e,t){let n=Kr(e,`component`),r=Kr(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function Jr(e,t,n){let r=()=>t===!1?void 0:t?Kr(e,t):qr(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 Yr(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function Xr(e,t,n){let r=e._tx;return t&&r?.[2]===n&&!r[3].some(e=>e.routeId===t)}function Zr(e){let t=e.length;for(let n=0;n<t;n++){let r=e[n];if(r._assetEnd!==void 0)t=Math.min(t,Math.max(n+1,r._assetEnd));else if(r.status!==`success`||r._notFound){t=n+1;break}}return t<e.length?e.slice(0,t):e}var Qr=0,$r=1,ei=2,G=3,ti=[4];function ni(e){return typeof e[0]==`number`}function ri(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 ii(e,t){return e.routesById[t.routeId]}function ai(e,t,n){return Sn(e)?[G,e]:yn(e)?(e.routeId||=n,[ei,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[$r,e]):[Qr,e]}function oi(e,t){let n=ai(t,!0,e.id);if(n[0]!==$r)return n;try{e.options.onError?.(n[1])}catch(t){n=ai(t,!0,e.id)}return n}function si(e,t,n,r,i){return i[0].signal.aborted?ti:Si(e,t,n,oi(n,r),i)}async function ci(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=ii(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 ui(e,r),[i,si(e,t,u,a,n)]}if(c.aborted)return[i,ti];let p=r.paramsError??r.searchError;if(p!==void 0)return ui(e,r),[i,si(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{fi(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?ri(a,c):a);if(c.aborted)return[i,ti];let s=Si(e,t,u,ai(o,!1,u.id),n);if(s[0]!==Qr)return ui(e,r),[i,s];r.context={...r.context,...o}}catch(a){return ui(e,r),[i,si(e,t,u,a,n)]}finally{r.status=h,fi(e,r,!1,n[0])}}i()}function li(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 ui(e,t){let n=t._flight;t._flight=void 0,li(e,t,n)?.abort()}function K(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=li(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function di(e){for(let t of e){let e=t._flight;e&&e[2]++}}function fi(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 pi(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 mi(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return ti;if(!i)return[Qr,void 0];let l=n._flight;fi(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(pi(e,t,n,r,s,a,!!o[3]))).then(e=>ai(e,!1,r.id),e=>ai(e,!0,r.id)).then(t=>(t[0]!==Qr&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===$r&&l[2]?oi(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],Si(e,t,r,await ri(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return ui(e,n),ti}finally{fi(e,n,!1,s)}}function hi(e,t,n){t[0]!==G&&(e.status=`success`,e.error=void 0,t[0]===Qr?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function gi(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&&ui(e,r)}function _i(e,t){return t[0]===$r||t[0]===ei?{...e,status:t[0]===$r?`error`:`notFound`,error:t[1],_flight:void 0}:e}function vi(e,t,n,r,i,a,o){let s=t[1][n],c=ii(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(pi(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=ti)),!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,ui(e,s),p=si(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,li(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?mi(e,t,s,c,g,i,a).then(t=>(hi(s,t,l),t[0]===Qr&&(m&&!a[0].signal.aborted&&gi(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[Qr,s.loaderData]),T=(async()=>{try{let e=Jr(c,void 0,C);e&&await ri(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,si(e,t,c,r,a)]}let r=await w;x&&r[0]===Qr&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,T]),!y)return w.then(e=>_i(s,e));let E={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let D=mi(e,t,E,c,g,i,a).then(e=>(s.isFetching=!1,hi(E,e,!1),e));return(t[2]??=[]).push([n,D,T,E]),D.then(e=>_i(E,e))}async function yi(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=ii(e,t[n]);try{let e=Jr(i,!1);e&&await ri(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function bi(e,t){t[2]&&=(K(e,t[2].map(e=>e[3])),void 0)}async function xi(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]>=G)throw[a,t];!i&&t[0]!==Qr&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===G)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function Si(e,t,n,r,i,a){for(;r[0]===G;){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]?[G,t]:[G,t,a]}return[G,o,n]}catch(e){r=a?[$r,e]:oi(n,e),a=!0}}return r}async function Ci(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]===ei?yi(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=G)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]!==Qr&&t[0]<G&&!(`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)>=G){let n=s[1];if(n[0]!==G||n[1].options.reloadDocument||n[2])return bi(e,t),n;c=!0,s=[0,[$r,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===$r?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=ii(e,u);try{await ri(i?Promise.resolve().then(()=>Jr(m,l===$r?`errorComponent`:`notFoundComponent`)):Promise.all([Jr(m),Jr(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return bi(e,t),ti}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),bi(e,t),K(e,o),p()):u.status=`success`}return t}async function wi(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=ii(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 ri(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 Ti(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 yi(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=vi(e,i,t,u,f,r,l)},m=await ci(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===ei){let t=await yi(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=G&&(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=Ci(e,i,u,r[0],xi(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=xi(i[2],void 0,void 0,h.then(e=>ni(e)?0:Yr(n).length,()=>0))),o=await h}catch(t){if(bi(e,i),t===a&&a.aborted)return ti;throw t}return ni(o)?o:wi(e,o,a,r[6]===n.length?r[6]:0)}function Ei(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=ii(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(()=>Ei(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 Di(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 Oi(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!Yr(t[3]).some(e=>e.id===n[1]))return;let i;try{await ri(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function ki(e,t){e._committed=t,e.stores.setMatches(t)}function Ai(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=Yr(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=ii(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=Mr(n);ki(e,n),K(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),Nr(e,i,n,a,l,t)}async function ji(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function Mi(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 Ni(e,t,n,r,i){let a=n.map(e=>({...e}));di(a);for(let t of r)ui(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await Ci(e,o,r,t[0],i)}catch(t){throw K(e,a),t}if(ni(s))K(e,a),s[0]===G&&e._tx===t&&e._committed===n&&await Mi(e,t,s);else if(await wi(e,s,t[0].signal),e._tx!==t||e._committed!==n)K(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),ui(e,n))}ki(e,a),K(e,n,a)}}async function Pi(e,t,n,r,i,a){let o=await Ti(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(ni(o)){let n=o[0]===G&&e._tx===t;if((!n||o[1].options.reloadDocument)&&Di(e,t),K(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){Di(e,t);return}await Mi(e,t,o);return}let s=o[1];if(e._tx===t&&await Oi(e,t),e._tx!==t){Di(e,t),K(e,s),bi(e,o);return}let c=t[2],l=Ar(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await Oi(e,t),e._tx!==t){Di(e,t),K(e,s),bi(e,o);return}let n=await e.startTransition(()=>{Di(e,t),Ai(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&&Ni(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)):bi(e,o)})}async function Fi(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=Ar(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await ji(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});di(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){K(e,m),await ji(e,n);return}e._preflight=void 0;let g,_=()=>Pi(e,y,f,()=>Ei(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(()=>ji(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&fi(e,t,!1)}n[0].abort(),K(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))&&Ei(e,y),g?.(_()),await y[5]):(K(e,y[3]),y[3]=[],g?.(),await ji(e,y))}async function Ii(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}),di(a),o=(e._preloads??=new Map).set(i,a),s=await Ti(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),K(e,a)),i.abort()}if(!ni(s))return s[1];if(!o||s.length<3)return;n=s[2]}catch(e){yn(e)||console.error(e);return}}}var Li=`Error preloading route! ☝️`;function Ri(e,t){if(e)return typeof e==`string`?e:e[t]}function zi(e){return e?.scriptFormat??`module`}function Bi(e,t,n){let r=Vi(t),i=Ri(n,`script`)??r.crossOrigin;return{...zi(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,fetchPriority:`low`,...i?{crossOrigin:i}:{}}}function Vi(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function Hi(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function Ui(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function Wi(e,t,n,r){let i=Zr(e),a=[],o=[];for(let e of i)for(let t of Array.isArray(e.scripts)?e.scripts:[]){if(!t)continue;let{children:e,...i}=t;a.push({tag:`script`,attrs:{...i,...r,nonce:n},children:e})}if(t)for(let e of i)for(let r of t.routes[e.routeId]?.scripts??[])o.push({tag:`script`,attrs:{...r.attrs,nonce:n},children:r.children});return[a,o]}function Gi([e,t],n){return n?[...n.before,...e,...t,n.boundary]:[...e,...t]}var Ki=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=bn:this.parentRoute||sn();let r=n?bn:t?.path;r&&r!==`/`&&(r=ln(r));let i=t?.id||r,a=n?bn:cn((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:cn(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=un(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=>xn({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.`)}},qi=class{constructor({id:e}){this.notFound=e=>vn({routeId:this.id,...e}),this.redirect=e=>xn({from:this.id,...e}),this.id=e}},Ji=class extends Ki{constructor(e){super(e)}};function Yi(e,t){let n=e.stores.location,r=new Set,i,a,o=n=>{Xr(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 Xi=U.createContext(void 0),Zi=U.createContext(void 0),Qi=t((e=>{var t=Pt();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),$i=t(((e,t)=>{t.exports=Qi()})),ea=t((e=>{var t=Pt(),n=$i();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),ta=t(((e,t)=>{t.exports=ea()})),na=ta();function ra(e,t){return e===t}function ia(e,t=e=>e,n){let r=n?.compare??ra,i=(0,U.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,U.useCallback)(()=>e.get(),[e]);return(0,na.useSyncExternalStoreWithSelector)(i,a,a,t,r)}function aa({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 oa(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 sa=[],ca=0,{link:la,unlink:ua,propagate:da,checkDirty:fa,shallowPropagate:pa}=aa({update(e){return e._update()},notify(e){sa[ha++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,ya(e))}}),ma=0,ha=0,ga,_a=0;function va(e){try{++_a,e()}finally{--_a||ba()}}function ya(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=ua(n,e)}function ba(){if(!(_a>0)){for(;ma<ha;){let e=sa[ma];sa[ma++]=void 0,e.notify()}ma=0,ha=0}}function xa(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 ga!==void 0&&la(i,ga,ca),i._snapshot},subscribe(e){let t=oa(e),n={current:!1},r=Sa(()=>{i.get(),n.current?(ga=void 0,t.next?.(i._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=ga,o=t?.compare??Object.is;if(n)ga=i,++ca,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{ga=a,n&&(i.flags&=-5),ya(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&fa(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&pa(e)}}else e&32&&(i.flags=e&-33);return ga!==void 0&&la(i,ga,ca),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(da(e),pa(e),ba())}},i}function Sa(e){let t=()=>{let t=ga;ga=n,++ca,n.depsTail=void 0,n.flags=6;try{return e()}finally{ga=t,n.flags&=-5,ya(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&&fa(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,ya(this)}};return t(),n}var Ca={};function wa(e,t){let n=U.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=Ut(n.current,i):i}}function Ta(e){let t=W(),n=U.useContext(e.from?Zi:Xi),r=e.from??n,i=t.stores.getMatchStore(r),a=wa(e,t),o=ia(i,e=>e?a(e):Ca);if(o!==Ca)return o;(e.shouldThrow??!0)&&sn()}function Ea(e){return Ta({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Da(e){let{select:t,...n}=e;return Ta({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Oa(e){return Ta({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 ka(e){return Ta({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}var Aa=U.use,ja=U.useLayoutEffect;function Ma(e){let t=W();return U.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Na(e){return Ta({...e,select:t=>e.select?e.select(t.context):t.context})}var q=Mt();function Pa(...e){let t=U.useRef(e),n=t.current;return e.forEach((e,t)=>{Gt(n[t],e,!1,!0)||(n[t]=e)}),t.current}function Fa(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(Li)})}function Ia(e,t){let n=typeof e==`string`&&Zt(e);if(n)return t.has(n)?e:null}function La(e,t,n,r){let i=fn(e.pathname,r),a=fn(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!Gt(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function Ra(e,t,n){let r=W(),i=U.useRef(null),a=U.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]=Pa(e.search,e.params,o),x=U.useContext(Xi),S=(r.stores._linkScopes??={})[x]??=Yi(r,x),[C,w,T]=U.useMemo(()=>{let t=Ia(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=Ka(t,r,u),s=u||o&&!Zt(o)?La(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]),[E,D]=U.useSyncExternalStore(S[1],w,T||w),ee=D===void 0&&E,te=u||E===void 0,ne=U.useRef(!1),O=e.reloadDocument||ee||te?!1:c??r.options.defaultPreload,k=l??r.options.defaultPreloadDelay??0,A=U.useCallback(e=>{let t=e?.isIntersecting;t??O===`intent`?k?i.t??=setTimeout(()=>{i.t=void 0,Fa(r,C)},k):Fa(r,C):t===!1&&Wa(i)},[r,C,i,O,k]);U.useEffect(()=>{if(!O)return;O===`render`&&!ne.current&&(ne.current=!0,Fa(r,C));let e=!0,t;return O===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&A(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),Wa(i)}},[r,C,O,A,i]);let j=Ha(e,n);if(j.ref=t?a:i,ee)return j.href=ee,j;let re=t=>{let n=d??t.currentTarget.getAttribute(`target`);te||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),Wa(i),r.navigate({...e,_fromLocation:C._fromLocation}))},M=()=>{O===`intent`&&Fa(r,C)},ie=()=>{O===`intent`&&Wa(i)};return j.onClick=Ga(f,re),j.onBlur=Ga(p,ie),j.onFocus=Ga(m,A),j.onMouseEnter=Ga(h,A),j.onMouseLeave=Ga(g,ie),j.onTouchStart=Ga(_,M),Ua(j,e,D,E,te,n)}var za={},Ba={className:`active`},Va=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 Ha(e,t){let n={};for(let r in e)Va.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function Ua(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=Rt(n?o:s,{})??(n?Ba:za);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 Wa=e=>{clearTimeout(e.t),e.t=void 0},Ga=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function Ka(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||!$t(i,t.protocolAllowlist))return i}var qa=U.memo(U.forwardRef((e,t)=>{let n=e._asChild||`a`,r=Ra(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return U.createElement(n,r,i)}),Ja);function Ja(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!Va.has(r)||!Gt(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}function Ya(e){return new Xa({id:e})}var Xa=class extends qi{constructor({id:e}){super({id:e}),this.useMatch=e=>Ta({...e,from:this.id}),this.useRouteContext=e=>Na({...e,from:this.id}),this.useSearch=e=>ka({...e,from:this.id}),this.useParams=e=>Oa({...e,from:this.id}),this.useLoaderDeps=e=>Da({...e,from:this.id,strict:!1}),this.useLoaderData=e=>Ea({...e,from:this.id,strict:!1}),this.useNavigate=()=>Ma({from:W().routesById[this.id].fullPath}),this.notFound=e=>vn({routeId:this.id,...e}),this.Link=U.forwardRef((e,t)=>{let n=W().routesById[this.id].fullPath;return(0,q.jsx)(qa,{ref:t,from:n,...e})})}},Za=class extends Ki{constructor(e){super(e),this.useMatch=e=>Ta({...e,from:this.id}),this.useRouteContext=e=>Na({...e,from:this.id}),this.useSearch=e=>ka({...e,from:this.id}),this.useParams=e=>Oa({...e,from:this.id}),this.useLoaderDeps=e=>Da({...e,from:this.id}),this.useLoaderData=e=>Ea({...e,from:this.id}),this.useNavigate=()=>Ma({from:this.fullPath}),this.Link=U.forwardRef((e,t)=>(0,q.jsx)(qa,{ref:t,from:this.fullPath,...e}))}};function Qa(e){return new Za(e)}var $a=class extends Ji{constructor(e){super(e),this.useMatch=e=>Ta({...e,from:this.id}),this.useRouteContext=e=>Na({...e,from:this.id}),this.useSearch=e=>ka({...e,from:this.id}),this.useParams=e=>Oa({...e,from:this.id}),this.useLoaderDeps=e=>Da({...e,from:this.id}),this.useLoaderData=e=>Ea({...e,from:this.id}),this.useNavigate=()=>Ma({from:this.fullPath}),this.Link=U.forwardRef((e,t)=>(0,q.jsx)(qa,{ref:t,from:this.fullPath,...e}))}};function eo(e){return new $a(e)}function to(e){return e=>{let t=Qa(e);return t.isRoot=!1,t}}function no(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(Kt(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(Aa)Aa(a());else throw a()}return U.createElement(r,e)};return o.preload=a,o}var ro=e=>({createMutableStore:xa,createReadonlyStore:xa,batch:va}),io=e=>new ao(e),ao=class extends Pr{constructor(e){super(e,ro)}},oo=class extends U.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?U.createElement(this.props.errorComponent??so,{error:e[0],reset:this.reset}):this.props.children}};function so({error:e}){let[t,n]=U.useState(!1);return(0,q.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,q.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,q.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,q.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,q.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,q.jsx)(`div`,{children:(0,q.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e?.message?(0,q.jsx)(`code`,{children:e.message}):null})}):null]})}function co(e,t){let n=e[1];e.length=0,n?.(t)}function lo({t:e}){let t=W(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{co(n,!1),n.push(i,a),e(t),U.startTransition(r)}),ja(()=>{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(un(r.publicHref)!==un(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`,...Ar(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}var uo=()=>!0,fo=()=>!1;function po({children:e,fallback:t=null}){return(0,q.jsx)(U.Fragment,{children:mo()?e:t})}function mo(e=!0){return U.useSyncExternalStore(ho,uo,e?fo:uo)}function ho(){return()=>{}}function go(e){let t=W(),n=`not-found-${ia(t.stores.location,e=>e.pathname)}-${ia(t.stores.status)}`;return(0,q.jsx)(oo,{getResetKey:()=>n,onCatch:(t,n)=>{if(yn(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(yn(t))return e.fallback?.(t);throw t},children:e.children})}function _o(){return(0,q.jsx)(`p`,{children:`Not Found`})}function vo(e,t,n){return t.options.notFoundComponent?(0,q.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,q.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,q.jsx)(_o,{})}function yo(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,q.jsx)(n,{}):null}var bo=(e,t)=>e[0]===t[0]&&e[1]===t[1],xo=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,So=U.memo(function({routeId:e}){let t=W();return Co(t,ia(t.stores.getMatchStore(e)))});function Co(e,t){let n=e.routesById[t.routeId],r=yo(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=xo(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s)),l=(0,q.jsx)(wo,{match:t});s&&(l=(0,q.jsx)(po,{fallback:r,children:l})),o&&(l=(0,q.jsx)(go,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return U.createElement(o,e)},children:l})),i&&(l=(0,q.jsx)(oo,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(yn(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:l})),c&&(l=(0,q.jsx)(U.Suspense,{fallback:r,children:l}));let u=n.isRoot&&n.options.shellComponent;return u?(0,q.jsx)(Xi.Provider,{value:t.routeId,children:(0,q.jsxs)(u,{children:[l,null]})}):(0,q.jsxs)(Xi.Provider,{value:t.routeId,children:[l,null]})}var wo=U.memo(function({match:e}){let t=W(),n=e.routeId,r=t.routesById[n],i=U.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=U.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,q.jsx)(e,{},i):(0,q.jsx)(To,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!xo(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return yo(t,r)}if(e.status===`notFound`)return vo(t,r,e.error);if(e.status===`error`)throw e.error;return a}),To=U.memo(function(){let e=W(),t=U.useContext(Xi),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=ia(a,e=>[!!e._notFound,e.error],{compare:bo}),i=ia(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return vo(e,e.routesById[t],r);if(!i)return null;let a=(0,q.jsx)(So,{routeId:i});return t===`__root__`?(0,q.jsx)(U.Suspense,{fallback:yo(e),children:a}):a});function Eo(){let e=W(),t=e.routesById[bn],n=yo(e,t),r=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(lo,{t:U.useState()[1]}),e.ssr?(0,q.jsx)(Do,{}):(0,q.jsx)(U.Suspense,{fallback:n,children:(0,q.jsx)(Do,{})})]});return e.options.InnerWrap?(0,q.jsx)(e.options.InnerWrap,{children:r}):r}function Do(){let e=W(),t=e._rendered,n=ia(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;ja(()=>{t[0]===n&&co(t,!0)},[t,n]);let a=i?(0,q.jsx)(So,{routeId:i}):null;return e.options.disableGlobalCatchBoundary?a:(0,q.jsx)(oo,{getResetKey:()=>r,onCatch:void 0,children:a})}function Oo({router:e,children:t,...n}){Bt(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,q.jsx)(It.Provider,{value:e,children:t});return e.options.Wrap?(0,q.jsx)(e.options.Wrap,{children:r}):r}function ko({router:e,...t}){return(0,q.jsx)(Oo,{router:e,...t,children:(0,q.jsx)(Eo,{})})}function Ao(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function jo(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e,a=U.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(e.tag){case`title`:return(0,q.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,q.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,q.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,q.jsx)(`style`,{...t,dangerouslySetInnerHTML:a,nonce:r});case`script`:return(0,q.jsx)(Mo,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function Mo({attrs:e,children:t,preventScriptHoist:n}){W();let r=mo(),i=U.useMemo(()=>t===void 0?void 0:{__html:t},[t]),a=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(U.useEffect(()=>{if(!a){if(e?.src){let t=document.createElement(`a`);t.href=e.src;let n=t.href;for(let e of document.scripts)if(e.src===n)return;let r=document.createElement(`script`);return Ao(r,e),document.head.appendChild(r),()=>r.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.scripts){if(e.hasAttribute(`src`))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,Ao(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,a]),a&&typeof t==`string`)return(0,q.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:i});if(!r){if(e?.src)return(0,q.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,q.jsx)(`script`,{...e,dangerouslySetInnerHTML:i,suppressHydrationWarning:!0})}return null}function No(e,t,n,r){n=Zr(n);let i=n.map(e=>e.meta).filter(e=>e!==void 0),a=[],o={},s;for(let e=i.length-1;e>=0;e--){let n=i[e];for(let e=n.length-1;e>=0;e--){let r=n[e];if(r){if(r.title)s||={tag:`title`,children:r.title};else if(`script:ld+json`in r)try{let e=JSON.stringify(r[`script:ld+json`]);a.push({tag:`script`,attrs:{type:`application/ld+json`},children:nn(e)})}catch{}else{let e=r.name??r.property;if(e){if(o[e])continue;o[e]=!0}a.push({tag:`meta`,attrs:{...r,nonce:t}})}}}}s&&a.push(s),t&&a.push({tag:`meta`,attrs:{property:`csp-nonce`,content:t}}),a.reverse();let c=n.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:t}})),l=e.ssr?.manifest,u=[];l&&(n.forEach(e=>{(l.routes[e.routeId]?.css)?.forEach(e=>{let n=Ui(e);u.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:Ri(r,`stylesheet`)??n.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),l.inlineStyle&&u.push({tag:`style`,attrs:{...l.inlineStyle.attrs,nonce:t},children:l.inlineStyle.children,inlineCss:!0}));let d=[];l&&n.forEach(e=>{l.routes[e.routeId]?.preloads?.forEach(e=>{d.push({tag:`link`,attrs:{...Bi(l,e,r),nonce:t}})})});let f=n.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`style`,attrs:{...n,nonce:t},children:e})),p=n.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`script`,attrs:{...n,nonce:t},children:e})),m=[];return Hi(m,a),m.push(...d),Hi(m,c),m.push(...u),Hi(m,f),Hi(m,p),m}var Po=e=>{let t=W(),n=t.options.ssr?.nonce,r=U.useCallback(r=>No(t,n,r,e),[e,n,t]);return ia(t.stores.matches,r,{compare:Gt})};function Fo(e){let t=Po(e.assetCrossOrigin),n=W().options.ssr?.nonce;return(0,q.jsx)(q.Fragment,{children:t.map(e=>(0,U.createElement)(jo,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Io={suppressHydrationWarning:!0},Lo=()=>{let e=W(),t=e.options.ssr?.nonce,n=n=>{let r=Wi(n,e.ssr?.manifest,t,Io);for(let e of r[1])if(typeof e.attrs?.src==`string`){let t=e;t.preventScriptHoist=!0}return r};return Ro(ia(e.stores.matches,e=>Gi(n(e)),{compare:Gt}))};function Ro(e){return(0,q.jsx)(q.Fragment,{children:e.map((e,t)=>(0,U.createElement)(jo,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var zo=(0,U.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),Bo=U.forwardRef((e,t)=>{let{alt:n,color:r,size:i,weight:a,mirrored:o,children:s,weights:c,...l}=e,{color:u=`currentColor`,size:d,weight:f=`regular`,mirrored:p=!1,...m}=U.useContext(zo);return U.createElement(`svg`,{ref:t,xmlns:`http://www.w3.org/2000/svg`,width:i??d,height:i??d,fill:r??u,viewBox:`0 0 256 256`,transform:o||p?`scale(-1, 1)`:void 0,...m,...l},!!n&&U.createElement(`title`,null,n),s,c.get(a??f))});Bo.displayName=`IconBase`;var Vo=new Map([[`bold`,U.createElement(U.Fragment,null,U.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`,U.createElement(U.Fragment,null,U.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`}),U.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`,U.createElement(U.Fragment,null,U.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`,U.createElement(U.Fragment,null,U.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`,U.createElement(U.Fragment,null,U.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`,U.createElement(U.Fragment,null,U.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`}))]]),Ho=U.forwardRef((e,t)=>U.createElement(Bo,{ref:t,...e,weights:Vo}));Ho.displayName=`HouseIcon`;var Uo=new Map([[`bold`,U.createElement(U.Fragment,null,U.createElement(`path`,{d:`M144,180a16,16,0,1,1-16-16A16,16,0,0,1,144,180Zm92-52A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128ZM128,64c-24.26,0-44,17.94-44,40v4a12,12,0,0,0,24,0v-4c0-8.82,9-16,20-16s20,7.18,20,16-9,16-20,16a12,12,0,0,0-12,12v8a12,12,0,0,0,23.73,2.56C158.31,137.88,172,122.37,172,104,172,81.94,152.26,64,128,64Z`}))],[`duotone`,U.createElement(U.Fragment,null,U.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),U.createElement(`path`,{d:`M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`fill`,U.createElement(U.Fragment,null,U.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z`}))],[`light`,U.createElement(U.Fragment,null,U.createElement(`path`,{d:`M138,180a10,10,0,1,1-10-10A10,10,0,0,1,138,180ZM128,74c-21,0-38,15.25-38,34v4a6,6,0,0,0,12,0v-4c0-12.13,11.66-22,26-22s26,9.87,26,22-11.66,22-26,22a6,6,0,0,0-6,6v8a6,6,0,0,0,12,0v-2.42c18.11-2.58,32-16.66,32-33.58C166,89.25,149,74,128,74Zm102,54A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,U.createElement(U.Fragment,null,U.createElement(`path`,{d:`M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`thin`,U.createElement(U.Fragment,null,U.createElement(`path`,{d:`M136,180a8,8,0,1,1-8-8A8,8,0,0,1,136,180ZM128,76c-19.85,0-36,14.36-36,32v4a4,4,0,0,0,8,0v-4c0-13.23,12.56-24,28-24s28,10.77,28,24-12.56,24-28,24a4,4,0,0,0-4,4v8a4,4,0,0,0,8,0v-4.2c18-1.77,32-15.36,32-31.8C164,90.36,147.85,76,128,76Zm100,52A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),Wo=U.forwardRef((e,t)=>U.createElement(Bo,{ref:t,...e,weights:Uo}));Wo.displayName=`QuestionIcon`;var Go=new Map([[`bold`,U.createElement(U.Fragment,null,U.createElement(`path`,{d:`M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z`}))],[`duotone`,U.createElement(U.Fragment,null,U.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),U.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`fill`,U.createElement(U.Fragment,null,U.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z`}))],[`light`,U.createElement(U.Fragment,null,U.createElement(`path`,{d:`M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z`}))],[`regular`,U.createElement(U.Fragment,null,U.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`thin`,U.createElement(U.Fragment,null,U.createElement(`path`,{d:`M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z`}))]]),Ko=U.forwardRef((e,t)=>U.createElement(Bo,{ref:t,...e,weights:Go}));Ko.displayName=`WarningCircleIcon`;var qo=Ft(),J=Nt();function Jo(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Jo(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Yo(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Jo(e))&&(r&&(r+=` `),r+=t);return r}var Xo=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Zo=Yo,Qo=(e,t)=>n=>{if(t?.variants==null)return Zo(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Xo(t)||Xo(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Zo(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},$o=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},es=(e,t)=>({classGroupId:e,validator:t}),ts=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ns=`-`,rs=[],is=`arbitrary..`,as=e=>{let t=cs(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return ss(e);let n=e.split(ns);return os(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?$o(i,t):t:i||rs}return n[e]||rs}}},os=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=os(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(ns):e.slice(t).join(ns),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},ss=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?is+r:void 0})(),cs=e=>{let{theme:t,classGroups:n}=e;return ls(n,t)},ls=(e,t)=>{let n=ts();for(let r in e){let i=e[r];us(i,n,r,t)}return n},us=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];ds(i,t,n,r)}},ds=(e,t,n,r)=>{typeof e==`string`?fs(e,t,n):typeof e==`function`?ps(e,t,n,r):ms(e,t,n,r)},fs=(e,t,n)=>{let r=e===``?t:hs(t,e);r.classGroupId=n},ps=(e,t,n,r)=>{gs(e)?us(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(es(n,e)))},ms=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];us(o,hs(t,a),n,r)}},hs=(e,t)=>{let n=e,r=t.split(ns),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=ts(),n.nextPart.set(t,i)),n=i}return n},gs=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,_s=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},vs=`!`,ys=`:`,bs=[],xs=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Ss=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===ys){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(vs)?(c=s.slice(0,-1),l=!0):s.startsWith(vs)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return xs(t,l,c,u)};if(t){let e=t+ys,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):xs(bs,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Cs=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},ws=e=>({cache:_s(e.cacheSize),parseClassName:Ss(e),sortModifiers:Cs(e),postfixLookupClassGroupIds:Ts(e),...as(e)}),Ts=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Es=/\s+/,Ds=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Es),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h||(g=r(p),!g)){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+vs:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Os=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=ks(n))&&(i&&(i+=` `),i+=r);return i},ks=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=ks(e[r]))&&(n&&(n+=` `),n+=t);return n},As=(e,...t)=>{let n,r,i,a,o=o=>(n=ws(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Ds(e,n);return i(e,a),a};return a=o,(...e)=>a(Os(...e))},js=[],Y=e=>{let t=t=>t[e]||js;return t.isThemeGetter=!0,t.themeKey=e,t},Ms=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ns=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ps=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Fs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Is=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ls=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,Rs=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Bs=e=>Ps.test(e),X=e=>!!e&&!Number.isNaN(Number(e)),Vs=e=>!!e&&Number.isInteger(Number(e)),Hs=e=>e.endsWith(`%`)&&X(e.slice(0,-1)),Us=e=>Fs.test(e),Ws=()=>!0,Gs=e=>Is.test(e)&&!Ls.test(e),Ks=()=>!1,qs=e=>Rs.test(e),Js=e=>zs.test(e),Ys=e=>!Z(e)&&!Q(e),Xs=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Zs=e=>fc(e,gc,Ks),Z=e=>Ms.test(e),Qs=e=>fc(e,_c,Gs),$s=e=>fc(e,vc,X),ec=e=>fc(e,bc,Ws),tc=e=>fc(e,yc,Ks),nc=e=>fc(e,mc,Ks),rc=e=>fc(e,hc,Js),ic=e=>fc(e,xc,qs),Q=e=>Ns.test(e),ac=e=>pc(e,_c),oc=e=>pc(e,yc),sc=e=>pc(e,mc),cc=e=>pc(e,gc),lc=e=>pc(e,hc),uc=e=>pc(e,xc,!0),dc=e=>pc(e,bc,!0),fc=(e,t,n)=>{let r=Ms.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},pc=(e,t,n=!1)=>{let r=Ns.exec(e);return r?r[1]?t(r[1]):n:!1},mc=e=>e===`position`||e===`percentage`,hc=e=>e===`image`||e===`url`,gc=e=>e===`length`||e===`size`||e===`bg-size`,_c=e=>e===`length`,vc=e=>e===`number`,yc=e=>e===`family-name`,bc=e=>e===`number`||e===`weight`,xc=e=>e===`shadow`,Sc=As(()=>{let e=Y(`color`),t=Y(`font`),n=Y(`text`),r=Y(`font-weight`),i=Y(`tracking`),a=Y(`leading`),o=Y(`breakpoint`),s=Y(`container`),c=Y(`spacing`),l=Y(`radius`),u=Y(`shadow`),d=Y(`inset-shadow`),f=Y(`text-shadow`),p=Y(`drop-shadow`),m=Y(`blur`),h=Y(`perspective`),g=Y(`aspect`),_=Y(`ease`),v=Y(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),Q,Z],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[Q,Z,c],T=()=>[Bs,`full`,`auto`,...w()],E=()=>[Vs,`none`,`subgrid`,Q,Z],D=()=>[`auto`,{span:[`full`,Vs,Q,Z]},Vs,Q,Z],ee=()=>[Vs,`auto`,Q,Z],te=()=>[`auto`,`min`,`max`,`fr`,Q,Z],ne=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],O=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],k=()=>[`auto`,...w()],A=()=>[Bs,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],j=()=>[s,Bs,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],re=()=>[Bs,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],M=()=>[e,Q,Z],ie=()=>[...b(),sc,nc,{position:[Q,Z]}],ae=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],N=()=>[`auto`,`cover`,`contain`,cc,Zs,{size:[Q,Z]}],oe=()=>[Hs,ac,Qs],P=()=>[``,`none`,`full`,l,Q,Z],F=()=>[``,X,ac,Qs],se=()=>[`solid`,`dashed`,`dotted`,`double`],ce=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],I=()=>[X,Hs,sc,nc],le=()=>[``,`none`,m,Q,Z],ue=()=>[`none`,X,Q,Z],de=()=>[`none`,X,Q,Z],fe=()=>[X,Q,Z],pe=()=>[Bs,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Us],breakpoint:[Us],color:[Ws],container:[Us],"drop-shadow":[Us],ease:[`in`,`out`,`in-out`],font:[Ys],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Us],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Us],shadow:[Us],spacing:[`px`,X],text:[Us],"text-shadow":[Us],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Bs,Z,Q,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,Q,Z]}],"container-named":[Xs],columns:[{columns:[X,`auto`,Z,Q,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Vs,`auto`,Q,Z]}],basis:[{basis:[Bs,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[X,Bs,`auto`,`initial`,`none`,Z]}],grow:[{grow:[``,X,Q,Z]}],shrink:[{shrink:[``,X,Q,Z]}],order:[{order:[Vs,`first`,`last`,`none`,Q,Z]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ne(),`normal`]}],"justify-items":[{"justify-items":[...O(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...O()]}],"align-content":[{content:[`normal`,...ne()]}],"align-items":[{items:[...O(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...O(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...O(),`baseline`]}],"place-self":[{"place-self":[`auto`,...O()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:A()}],"inline-size":[{inline:[`auto`,...j()]}],"min-inline-size":[{"min-inline":[`auto`,...j()]}],"max-inline-size":[{"max-inline":[`none`,...j()]}],"block-size":[{block:[`auto`,...re()]}],"min-block-size":[{"min-block":[`auto`,...re()]}],"max-block-size":[{"max-block":[`none`,...re()]}],w:[{w:[s,`screen`,...A()]}],"min-w":[{"min-w":[s,`screen`,`none`,...A()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...A()]}],h:[{h:[`screen`,`lh`,...A()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...A()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...A()]}],"font-size":[{text:[`base`,n,ac,Qs]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,dc,ec]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Hs,Z]}],"font-family":[{font:[oc,tc,t]}],"font-features":[{"font-features":[Z]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,Q,Z]}],"line-clamp":[{"line-clamp":[X,`none`,Q,$s]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,Q,Z]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Q,Z]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...se(),`wavy`]}],"text-decoration-thickness":[{decoration:[X,`from-font`,`auto`,Q,Qs]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[X,`auto`,Q,Z]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[Vs,Q,Z]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Q,Z]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Q,Z]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:N()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Vs,Q,Z],radial:[``,Q,Z],conic:[``,Vs,Q,Z]},lc,rc]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-bs":[{"border-bs":F()}],"border-w-be":[{"border-be":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":F()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...se(),`hidden`,`none`]}],"divide-style":[{divide:[...se(),`hidden`,`none`]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...se(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[X,Q,Z]}],"outline-w":[{outline:[``,X,ac,Qs]}],"outline-color":[{outline:M()}],shadow:[{shadow:[``,`inner`,`none`,u,uc,ic]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":[`none`,d,uc,ic]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:F()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[X,Qs]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":[`none`,f,uc,ic]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[X,Q,Z]}],"mix-blend":[{"mix-blend":[...ce(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ce()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[X]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[Q,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[X]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Q,Z]}],filter:[{filter:[``,`none`,Q,Z]}],blur:[{blur:le()}],brightness:[{brightness:[X,Q,Z]}],contrast:[{contrast:[X,Q,Z]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,uc,ic]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:[``,X,Q,Z]}],"hue-rotate":[{"hue-rotate":[X,Q,Z]}],invert:[{invert:[``,X,Q,Z]}],saturate:[{saturate:[X,Q,Z]}],sepia:[{sepia:[``,X,Q,Z]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Q,Z]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[X,Q,Z]}],"backdrop-contrast":[{"backdrop-contrast":[X,Q,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,X,Q,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[X,Q,Z]}],"backdrop-invert":[{"backdrop-invert":[``,X,Q,Z]}],"backdrop-opacity":[{"backdrop-opacity":[X,Q,Z]}],"backdrop-saturate":[{"backdrop-saturate":[X,Q,Z]}],"backdrop-sepia":[{"backdrop-sepia":[``,X,Q,Z]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Q,Z]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[X,`initial`,Q,Z]}],ease:[{ease:[`linear`,`initial`,_,Q,Z]}],delay:[{delay:[X,Q,Z]}],animate:[{animate:[`none`,v,Q,Z]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Q,Z]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":[`scale-3d`],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[Q,Z,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":[`translate-none`],zoom:[{zoom:[Vs,Q,Z]}],accent:[{accent:M()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,Q,Z]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":M()}],"scrollbar-track-color":[{"scrollbar-track":M()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,Q,Z]}],fill:[{fill:[`none`,...M()]}],"stroke-w":[{stroke:[X,ac,Qs,$s]}],stroke:[{stroke:[`none`,...M()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function $(...e){return Sc(Yo(e))}function Cc(e){let t=(0,J.c)(3),n,r;return t[0]===e?(n=t[1],r=t[2]):(n=t=>{let n=window.matchMedia(e);return n.addEventListener(`change`,t),()=>n.removeEventListener(`change`,t)},r=()=>window.matchMedia(e).matches,t[0]=e,t[1]=n,t[2]=r),(0,U.useSyncExternalStore)(n,r,wc)}function wc(){return!1}var Tc=Qo(`group/alert relative grid w-full gap-1 border bg-background px-4 py-3 text-left text-sm after:absolute after:-inset-y-px after:-left-px after:w-0.5 has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-card text-card-foreground after:bg-foreground`,destructive:`bg-card text-destructive after:bg-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}});function Ec(e){let t=(0,J.c)(10),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;t[4]!==n||t[5]!==i?(a=$(Tc({variant:i}),n),t[4]=n,t[5]=i,t[6]=a):a=t[6];let o;return t[7]!==r||t[8]!==a?(o=(0,q.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:a,...r}),t[7]=r,t[8]=a,t[9]=o):o=t[9],o}function Dc(e){let t=(0,J.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=$(`text-sm font-semibold group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,q.jsx)(`div`,{"data-slot":`alert-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Oc(e){let t=(0,J.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=$(`text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,q.jsx)(`div`,{"data-slot":`alert-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function kc(e){let t=(0,J.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=$(`absolute top-2.5 right-3`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,q.jsx)(`div`,{"data-slot":`alert-action`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ac(){return typeof window<`u`}function jc(e){return Pc(e)?(e.nodeName||``).toLowerCase():`#document`}function Mc(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Nc(e){return((Pc(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Pc(e){return Ac()?e instanceof Node||e instanceof Mc(e).Node:!1}function Fc(e){return Ac()?e instanceof Element||e instanceof Mc(e).Element:!1}function Ic(e){return Ac()?e instanceof HTMLElement||e instanceof Mc(e).HTMLElement:!1}function Lc(e){return!Ac()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Mc(e).ShadowRoot}function Rc(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Yc(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function zc(e){return/^(table|td|th)$/.test(jc(e))}function Bc(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Vc=/transform|translate|scale|rotate|perspective|filter/,Hc=/paint|layout|strict|content/,Uc=e=>!!e&&e!==`none`,Wc;function Gc(e){let t=Fc(e)?Yc(e):e;return Uc(t.transform)||Uc(t.translate)||Uc(t.scale)||Uc(t.rotate)||Uc(t.perspective)||!qc()&&(Uc(t.backdropFilter)||Uc(t.filter))||Vc.test(t.willChange||``)||Hc.test(t.contain||``)}function Kc(e){let t=Zc(e);for(;Ic(t)&&!Jc(t);){if(Gc(t))return t;if(Bc(t))return null;t=Zc(t)}return null}function qc(){return Wc??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Wc}function Jc(e){return/^(html|body|#document)$/.test(jc(e))}function Yc(e){return Mc(e).getComputedStyle(e)}function Xc(e){return Fc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zc(e){if(jc(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Lc(e)&&e.host||Nc(e);return Lc(t)?t.host:t}function Qc(e){let t=Zc(e);return Jc(t)?(e.ownerDocument||e).body:Ic(t)&&Rc(t)?t:Qc(t)}function $c(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Qc(e),i=r===e.ownerDocument?.body,a=Mc(r);if(i){let e=el(a);return t.concat(a,a.visualViewport||[],Rc(r)?r:[],e&&n?$c(e):[])}return t.concat(r,$c(r,[],n))}function el(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var tl={...U},nl={};function rl(e,t){let n=U.useRef(nl);return n.current===nl&&(n.current=e(t)),n}var il=tl.useInsertionEffect,al=il&&il!==tl.useLayoutEffect?il:e=>e();function ol(e){let t=rl(sl).current;return t.next=e,al(t.effect),t.trampoline}function sl(){let e={next:void 0,callback:cl,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function cl(){}var ll=typeof document<`u`?U.useLayoutEffect:()=>{};function ul(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var dl={};function fl(e,t,n,r,i){if(!n&&!r&&!i&&!e)return ml(t);let a=ml(e);return t&&(a=hl(a,t)),n&&(a=hl(a,n)),r&&(a=hl(a,r)),i&&(a=hl(a,i)),a}function pl(e){if(e.length===0)return dl;if(e.length===1)return ml(e[0]);let t=ml(e[0]);for(let n=1;n<e.length;n+=1)t=hl(t,e[n]);return t}function ml(e){return yl(e)?{...e(dl)}:gl(e)}function hl(e,t){return yl(t)?t(e):_l(e,t)}function gl(e){let t={...e};for(let e in t){let n=t[e];vl(e,n)&&(t[e]=xl(n))}return t}function _l(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=ul(e.style,r);break;case`className`:e[n]=Cl(e.className,r);break;default:e[n]=vl(n,r)?bl(e[n],r):r}}return e}function vl(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function yl(e){return typeof e==`function`}function bl(e,t){return t?e?(...n)=>{let r=n[0];if(wl(r)){let i=r;Sl(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:xl(t):e}function xl(e){return e&&((...t)=>{let n=t[0];return wl(n)&&Sl(n),e(...t)})}function Sl(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Cl(e,t){return t?e?t+` `+e:t:e}function wl(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function Tl(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var El=Tl(`https://base-ui.com/production-error`,`Base UI`),Dl=U.createContext(void 0);function Ol(e=!1){let t=U.useContext(Dl);if(t===void 0&&!e)throw Error(El(16));return t}function kl(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:U.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function Al(e,t,{detail:n=0,pointerType:r=``}={}){e.dispatchEvent(new(Mc(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,pointerType:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function jl(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=U.useRef(null),s=Ol(!0),c=a??s!==void 0,{props:l}=kl({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=U.useCallback(()=>{let e=o.current;Ml(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return ll(u,[u]),{getButtonProps:U.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return fl({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(Sl(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=Ml(r),s=!i&&Nl(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),Al(r,e))}else!l||i||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),Al(r,e)))},onKeyUp(e){t||(Sl(e),a?.(e),e.target===e.currentTarget&&i&&c&&Ml(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||i||c||e.defaultPrevented||e.key!==` `||(e.preventBaseUIHandler(),Al(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:ol(e=>{o.current=e,u()})}}function Ml(e){return Ic(e)&&e.tagName===`BUTTON`}function Nl(e){return Ic(e)&&e.tagName===`A`&&!!e.href}function Pl(e,t,n,r){let i=rl(Il).current;return Ll(i,e,t,n,r)&&zl(i,[e,t,n,r]),i.callback}function Fl(e){let t=rl(Il).current;return Rl(t,e)&&zl(t,e),t.callback}function Il(){return{callback:null,cleanup:null,refs:[]}}function Ll(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function Rl(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function zl(e,t){e.refs=t,e.callback=t.every(e=>e==null)?null:n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}var Bl=19;function Vl(e){return Bl>=e}function Hl(e){if(!U.isValidElement(e))return null;let t=e,n=t.props;return(Vl(19)?n?.ref:t.ref)??null}function Ul(){}var Wl=Object.freeze([]),Gl=Object.freeze({});function Kl(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e)}else i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function ql(e,t){return typeof e==`function`?e(t):e}function Jl(e,t){return typeof e==`function`?e(t):e}function Yl(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=$l(r));let i=Xl(t,n,r);if(n.enabled===!1)return null;let a=n.state??Gl;return eu(e,r,i,a)}function Xl(e,t,n){let{className:r,style:i}=e,{state:a=Gl,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?ql(r,a):void 0,d=l?Jl(i,a):void 0,f=l?Kl(a,c):Gl,p=l&&s?Zl(s):void 0,m=l?ul(f,p)??{}:Gl;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?Fl([m.ref,Hl(n),...o]):Pl(m.ref,Hl(n),o):Pl(null,null)),l?(u!==void 0&&(m.className=Cl(m.className,u)),d!==void 0&&(m.style=ul(m.style,d)),m):Gl}function Zl(e){return Array.isArray(e)?pl(e):fl(void 0,e)}var Ql=Symbol.for(`react.lazy`);function $l(e){if(e?.$$typeof!==Ql)return e;let t=U.Children.toArray(e)[0];return U.isValidElement(t)?t:e}function eu(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=fl(n,t.props);return e.ref=n.ref,U.cloneElement(t,e)}return tu(e,n)}function tu(e,t){return e===`button`?(0,U.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,U.createElement)(`img`,{alt:``,...t,key:t.key}):U.createElement(e,t)}var nu=U.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=jl({disabled:i,focusableWhenDisabled:a,native:o});return Yl(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),ru=Qo(`group/button inline-flex shrink-0 items-center justify-center rounded-none border border-transparent bg-clip-padding text-xs font-semibold tracking-widest whitespace-nowrap uppercase transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-transparent hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-input/30`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline underline-offset-4 hover:underline`,search:`border-0 border-b border-input bg-transparent px-0 text-muted-foreground normal-case tracking-normal hover:bg-transparent hover:text-foreground dark:hover:bg-transparent`},size:{default:`h-10 gap-1.5 px-6 has-data-[icon=inline-end]:pr-4 has-data-[icon=inline-start]:pl-4`,xs:`h-7 gap-1 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-3`,sm:`h-9 gap-1 px-4 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3`,lg:`h-11 gap-1.5 px-8 has-data-[icon=inline-end]:pr-5 has-data-[icon=inline-start]:pl-5`,icon:`size-10`,"icon-xs":`size-7 [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-9`,"icon-lg":`size-11`,search:`h-9 w-full justify-start gap-2.5 px-0 text-sm`}},defaultVariants:{variant:`default`,size:`default`}});function iu(e){let t=(0,J.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,variant:i,size:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`default`:i,s=a===void 0?`default`:a,c;t[5]!==n||t[6]!==s||t[7]!==o?(c=$(ru({variant:o,size:s,className:n})),t[5]=n,t[6]=s,t[7]=o,t[8]=c):c=t[8];let l;return t[9]!==r||t[10]!==c?(l=(0,q.jsx)(nu,{"data-slot":`button`,className:c,...r}),t[9]=r,t[10]=c,t[11]=l):l=t[11],l}function au(e){let t=(0,J.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=$(`flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 border-dashed p-12 text-center text-balance`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,q.jsx)(`div`,{"data-slot":`empty`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ou(e){let t=(0,J.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=$(`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,q.jsx)(`div`,{"data-slot":`empty-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var su=Qo(`mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`flex size-10 shrink-0 items-center justify-center rounded-none bg-muted text-foreground [&_svg:not([class*='size-'])]:size-5`}},defaultVariants:{variant:`default`}});function cu(e){let t=(0,J.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=$(su({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,q.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 lu(e){let t=(0,J.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=$(`mt-0.5 text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,q.jsx)(`div`,{"data-slot":`empty-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function uu(e){let t=(0,J.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=$(`flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,q.jsx)(`div`,{"data-slot":`empty-content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function du(e){let t=(0,J.c)(21);if(e.action===void 0&&e.description===void 0){let n;t[0]===e.icon?n=t[1]:(n=(0,q.jsx)(cu,{variant:`icon`,children:e.icon}),t[0]=e.icon,t[1]=n);let r;return t[2]!==e.label||t[3]!==n?(r=(0,q.jsx)(au,{role:`status`,"aria-label":e.label,children:n}),t[2]=e.label,t[3]=n,t[4]=r):r=t[4],r}let n;t[5]===e.icon?n=t[6]:(n=(0,q.jsx)(cu,{variant:`icon`,className:`mb-3`,children:e.icon}),t[5]=e.icon,t[6]=n);let r;t[7]===e.label?r=t[8]:(r=(0,q.jsx)(`h2`,{className:`font-heading text-2xl leading-none tracking-tight`,children:e.label}),t[7]=e.label,t[8]=r);let i;t[9]===e.description?i=t[10]:(i=e.description!==void 0&&(0,q.jsx)(lu,{children:e.description}),t[9]=e.description,t[10]=i);let a;t[11]!==n||t[12]!==r||t[13]!==i?(a=(0,q.jsxs)(ou,{children:[n,r,i]}),t[11]=n,t[12]=r,t[13]=i,t[14]=a):a=t[14];let o;t[15]===e.action?o=t[16]:(o=e.action!==void 0&&(0,q.jsx)(uu,{children:e.action}),t[15]=e.action,t[16]=o);let s;return t[17]!==e.label||t[18]!==a||t[19]!==o?(s=(0,q.jsxs)(au,{role:`status`,"aria-label":e.label,children:[a,o]}),t[17]=e.label,t[18]=a,t[19]=o,t[20]=s):s=t[20],s}function fu(){let e=(0,J.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,q.jsxs)(ou,{children:[(0,q.jsx)(cu,{variant:`icon`,children:(0,q.jsx)(Wo,{className:`size-5`})}),(0,q.jsx)(`h2`,{className:`font-heading text-2xl leading-none tracking-tight`,children:`Page not found`}),(0,q.jsx)(lu,{children:`The link is old, or it never existed.`})]}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,q.jsxs)(au,{"aria-label":`Page not found`,children:[t,(0,q.jsx)(uu,{children:(0,q.jsxs)(iu,{variant:`outline`,render:(0,q.jsx)(`a`,{href:`/`,"aria-label":`Go home`}),children:[(0,q.jsx)(Ho,{}),`Go home`]})})]}),e[1]=n):n=e[1],n}function pu(e){let t=(0,J.c)(3),n,r;return t[0]===e.href?(n=t[1],r=t[2]):(n=()=>{location.replace(e.href)},r=[e.href],t[0]=e.href,t[1]=n,t[2]=r),(0,U.useEffect)(n,r),null}function mu(e){let t=(0,J.c)(10),n=e.label??`Unavailable`,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,q.jsx)(Ko,{}),t[0]=r):r=t[0];let i=e.label??`Can’t load this view`,a;t[1]===i?a=t[2]:(a=(0,q.jsx)(Dc,{children:i}),t[1]=i,t[2]=a);let o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,q.jsx)(Oc,{children:`The server did not answer. Nothing was lost; try the same view again.`}),t[3]=o):o=t[3];let s;t[4]===e.reset?s=t[5]:(s=(0,q.jsx)(kc,{children:(0,q.jsx)(iu,{variant:`destructive`,size:`sm`,className:`max-sm:h-11`,onClick:e.reset,children:`Retry`})}),t[4]=e.reset,t[5]=s);let c;return t[6]!==n||t[7]!==a||t[8]!==s?(c=(0,q.jsx)(`div`,{className:`flex min-h-0 flex-1 items-center justify-center p-6`,children:(0,q.jsxs)(Ec,{variant:`destructive`,role:`alert`,"aria-label":n,className:`max-w-md`,children:[r,a,o,s]})}),t[6]=n,t[7]=a,t[8]=s,t[9]=c):c=t[9],c}var hu=class extends n()(`AuthError`,{cause:xt(kt()),error:V(T([`invalid_request`,`invalid_client`,`invalid_client_metadata`,`invalid_redirect_uri`,`invalid_grant`,`invalid_target`,`invalid_scope`,`unsupported_grant_type`,`unsupported_response_type`,`access_denied`,`temporarily_unavailable`])),message:z}){},gu=B({id:C,name:C});z.check(Ae(/^https:\/\/[a-z\d-]+\.mp281x\.xyz(?:\/mcp)?$/u)),B({accessToken:C,clientId:C,expiresAt:L,refreshToken:C}),B({client_id:C}),B({access_token:C,expires_in:L,refresh_token:C});var _u=z.check(qe(e=>me(At(j(e)),e=>Se([`http:`,`https:`],e.protocol)&&e.username===``&&e.password===``&&e.hash===``),{expected:`an HTTP(S) URL without credentials or a fragment`})).check(qe(e=>me(At(j(e)),e=>e.pathname===`/`&&e.search===``),{expected:`an HTTP(S) origin without a path or query`}));_u.check(qe(e=>me(At(j(e)),e=>e.protocol===`https:`||Se([`localhost`,`127.0.0.1`,`[::1]`],e.hostname)),{expected:`HTTPS outside loopback`})),z.check(Ae(/^\d{1,5}$/u),qe(e=>me(Ve(e),e=>e>=1&&e<=65535),{expected:`a port between 1 and 65535`}));var vu=z.check(Ae(/^0\.1\.\d+$/u));B({auth:V(_u),name:z,traces:z,version:vu});var yu=`/api/rpc`;B({...gu.fields,signOut:F}),B({config:B({port:_}),name:z,version:vu});var bu=a(Me()),xu=new WeakSet,Su=vt(e=>{let t=se(`Web error`,Ke(e.error),...ut(h(e.stack)));return r(M(bu),{onNone:()=>t,onSome:n=>s(H(t,A(ae(e.error)),pe(`Web.error`,{attributes:{"web.error.source":e.source,"web.route.id":e.route},root:!0}),p),n)})});function Cu(e,t){let n=document.querySelector(`#root`);if(bt(n))throw TypeError(`Missing application mount element with id "root"`);return{root:n,router:io({context:{},defaultErrorComponent:mu,defaultNotFoundComponent:fu,defaultPreload:`intent`,getScrollRestorationKey:t,routeTree:e,scrollRestoration:!0})}}function wu(e){return t=>st(dt(e)(t),()=>He(e)({}))}function Tu(e){let t=Le();function n(n,r,i){if(it(n)){if(xu.has(n))return;xu.add(n)}t.set(Su,{error:n,route:H(ce(e.router.state.matches,e=>e.error===n),gt(()=>re(e.router.state.matches)),fe(e=>be(e.routeId,ct)),st(()=>`__root__`)),source:r,stack:i})}e.router.update({defaultOnCatch:(e,t)=>n(e,`route`,t.componentStack)}),(0,qo.createRoot)(e.root,{onCaughtError:(e,t)=>n(e,`caught`,t.componentStack),onUncaughtError:(e,t)=>n(e,`uncaught`,t.componentStack)}).render((0,q.jsx)(U.StrictMode,{children:(0,q.jsx)(ko,{router:e.router})}))}function Eu(e){return f(i(ee(e),e=>[P(e[0],`/`)[4]??``,e[1]]))}function Du(e){return H(e,I(e=>H(e(ge(`1 second`)),g(e=>e.input._tag===`RpcClientError`||tt(hu)(e.input)&&e.input.error===`temporarily_unavailable`))))}var Ou=H(Be({pingTimeout:`15 seconds`,retryTransientErrors:!0}),et(H(ft(y(()=>`${location.origin}${yu}`)),et(Oe))),pt(we())),ku=eo({shellComponent:e=>(0,q.jsxs)(`div`,{className:`bg-background text-foreground pt-safe-top pr-safe-right pl-safe-left flex h-dvh w-dvw flex-col`,children:[(0,q.jsx)(Fo,{}),(0,q.jsx)(Lo,{}),e.children]})}),Au=ie(d(k(`AUTH_URL`)),ye);te(function*(){let e=ne(z,`GITHUB_ADMINS`);return(yield*Au)?yield*b(e,[`0`]):yield*e});function ju(e){return`${new URL(e).origin}/auth/sign-in?${new URLSearchParams({next:e})}`}function Mu(e){return tt(hu)(e)&&e.error!==`temporarily_unavailable`&&e.error!==`access_denied`}function Nu(e){return tt(hu)(e)&&e.error!==`temporarily_unavailable`}Re()(`@deslop/runtime/auth/lib/utils/CurrentUser`);var Pu=class extends ht()(`@deslop/runtime/auth/lib/utils/RpcAuth`,{error:hu}){};function Fu(e,t,n=ze){function i(e){let t=Ee(e.reasons,e=>je(e)&&Nu(e.error));return le(t)?Me():Ze(yt(t))}let o=a(H(e.self(),v(Tt),fe(e=>i(e.cause))));function s(e){return r(M(o),{onNone:()=>e,onSome:t=>yt([...t.reasons,...Ee(e.reasons,e=>!je(e)||!Nu(e.error))])})}let l=a(0),u=H(t,ue(t=>y(()=>{O(o,e=>gt(i(t),()=>e));let n=s(t);_e(M(o))?e.setSelf(St(n)):We(l)<2||e.setSelf(Dt(n,{previous:e.self()}))})));return H(n(u),wt(()=>y(()=>{Ue(o,Me()),Ue(l,0)})),Ie(e=>Ot(s(e))),Ce(c(()=>r(M(o),{onNone:()=>Ct,onSome:Ot}))))}var Iu=class extends n()(`TelemetryError`,{cause:xt(kt()),message:z}){},Lu=H(z,Qe(Ae(/^[a-fA-F0-9]{32}$/u))),Ru=H(z,Qe(Ae(/^[a-fA-F0-9]{16}$/u))),zu=H(z,Qe(Ae(/^\d{1,20}$/u))),Bu=B({key:z,value:R}),Vu=N(B({attributes:V(D(Bu))}),[R]),Hu=B({attributes:V(D(Bu)),events:V(D(N(B({attributes:V(D(Bu)),name:z,timeUnixNano:zu}),[R]))),links:V(D(N(B({attributes:V(D(Bu)),spanId:Ru,traceId:Lu}),[R])))}),Uu=N(B({...Hu.fields,endTimeUnixNano:V(zu),name:V(z),parentSpanId:V(Ne([Ru,m(``)])),spanId:Ru,startTimeUnixNano:zu,status:V(N(B({code:V(_)}),[R])),traceId:Lu}),[R]),Wu=N(B({attributes:V(D(Bu)),body:V(R),observedTimeUnixNano:V(zu),severityNumber:V(_),severityText:V(z),spanId:V(Ne([Ru,m(``)])),timeUnixNano:V(zu),traceId:V(Ne([Lu,m(``)]))}),[R]);B({resourceSpans:V(D(N(B({resource:V(Vu),schemaUrl:V(z),scopeSpans:V(D(N(B({schemaUrl:V(z),scope:V(Vu),spans:V(D(Uu))}),[R])))}),[R])))}),B({resourceLogs:V(D(N(B({resource:V(Vu),schemaUrl:V(z),scopeLogs:V(D(N(B({logRecords:V(D(Wu)),schemaUrl:V(z),scope:V(Vu)}),[R])))}),[R])))});var Gu=B({durationMs:L,id:C,name:z,payload:R,receivedAt:V(ot),resource:Vu,resourceSchemaUrl:z,scope:Vu,scopeSchemaUrl:z,service:z,signal:T([`trace`,`log`]),spanId:z,status:_,time:zu,traceId:z}).mapFields(at([`resource`,`resourceSchemaUrl`,`scope`,`scopeSchemaUrl`])),Ku=B({errors:F,from:L,limit:H(_,Qe(mt({maximum:1e3,minimum:1}))),offset:H(_,Qe(mt({maximum:1e5,minimum:0}))),operation:z,runs:T([`current`,`all`]),service:z,sort:T([`recent`,`slowest`]),text:z,to:L,traceId:z});B({entries:D(Gu),total:_});var qu=T([`web`,`mobile`,`server`,`ci`,`unknown`]),Ju=B({name:z,runtime:qu}),Yu=B({...Ju.fields,entries:ot,lastEventAt:zu,runStartedAt:zu,version:z}),Xu=B({count:ot,credential:T([`authorization`,`cookie`,`none`]),lastAt:L,route:T([`/v1/traces`,`/v1/logs`]),status:_});B({rejections:D(Xu),services:D(Yu),since:L});var Zu=B({durationMs:L,errors:_,id:Lu,logs:_,operation:z,service:z,services:D(Ju),spans:_,time:zu});B({entries:D(Zu),total:_});var Qu=B({durationMs:L,failure:V(B({message:z,span:z})),id:Lu,time:zu}),$u=B({count:_,failures:_,name:z,p50Ms:L,runtime:qu,traces:D(Qu)}),ed=B({apps:D(B({name:z,operations:D($u)}))});B({count:_,errors:_,from:L,maxMs:L,p50Ms:L,p95Ms:L,to:L});var td=B({...Gu.fields,depth:ot,logs:D(Gu),offsetMs:L,parentSpanId:z,runtime:qu}),nd=B({durationMs:L,id:Lu,logs:D(Gu),services:D(Ju),spans:D(td)}),rd=B({errors:H(Ku.fields.errors,Fe(he(!1)),_t({description:`Only failed spans and error logs.`})),operation:H(Ku.fields.operation,Fe(he(``)),_t({description:`Exact span name.`})),runs:H(Ku.fields.runs,Fe(he(`current`)),_t({description:`"current" searches the latest process/page load/app launch per service. "all" includes retained earlier runs in the lookback.`})),service:H(Ku.fields.service,Fe(he(``)),_t({description:`Exact service name, from list_services.`})),since:H(o,Qe(qe(rt,{expected:`a finite duration`})),Fe(he(Je(10))),_t({description:`Lookback, such as "10 minutes" or "1 hour".`})),text:H(Ku.fields.text,Fe(he(``)),_t({description:`Case-insensitive text in the span name, log message or attributes.`})),traceId:H(Ku.fields.traceId,Fe(he(``)),_t({description:`Only entries of this trace.`}))}),id=B({...rd.fields,limit:H(Ku.fields.limit,Fe(he(20)),_t({description:`Page size, 1 to 1000.`})),offset:H(Ku.fields.offset,Fe(he(0)),_t({description:`Entries to skip, for the next page.`}))});B({...id.fields,sort:H(Ku.fields.sort,Fe(he(`recent`)),_t({description:`"recent" puts the newest first, "slowest" the longest first.`}))});var ad=class extends Ye($e(`scope.overview`,{error:Ne([hu,Iu]),stream:!0,success:ed}),$e(`scope.trace`,{error:Ne([hu,Iu]),payload:B({id:Lu}),success:nd})).middleware(Pu){},od={Span:`Trace`,Trace:`Traces`},sd=T([`Traces`,`Trace`,`Span`]),cd=class extends lt()(`@deslop/scope/lib/utils/RpcClient`,{group:ad,protocol:Ou}){},ld=B({app:z,name:$u.fields.name,runtime:$u.fields.runtime});B({operation:ld,spanId:V(z),traceId:V(z)});var ud=B({app:V(z),operation:V(z),pane:V(sd),side:V($u.fields.runtime),span:V(z),trace:V(z)});function dd(e){return{path:e.pane??`Operations`,selection:w(oe(E(e.side),t=>({operation:{app:e.app??``,name:e.operation??``,runtime:t},...r(E(e.trace),{onNone:()=>({}),onSome:e=>({traceId:e})}),...r(E(e.span),{onNone:()=>({}),onSome:e=>({spanId:e})})})))}}function fd(e,t){function n(e,t){return{app:e.operation.app,operation:e.operation.name,pane:t,side:e.operation.runtime,...r(E(e.traceId),{onNone:()=>({}),onSome:e=>({trace:e})}),...r(E(e.spanId),{onNone:()=>({}),onSome:e=>({span:e})})}}return t._tag===`Operation`?n({operation:t.operation},`Traces`):t._tag===`Trace`?n(t.selection,`Trace`):t._tag===`Span`?n(t.selection,`Span`):r(fe(E(e.pane),e=>x(od,e)),{onNone:()=>at(e,[`pane`]),onSome:t=>({...e,pane:t})})}var pd=Pe(cd.runtime.atom(e=>Fu(e,H(cd,jt(e=>e(`scope.overview`,void 0)),l),Du))),md=Ge(e=>cd.runtime.atom(t=>(t(pd),Fu(t,De(S(cd,t=>t(`scope.trace`,{id:e}))))))),hd=nt(Et(u(`30 seconds`),()=>ke));function gd(e,t){let n=Xe(0,(t-st(Ve(H(e,xe(0,-6))),()=>t))/1e3);return n<10?`now`:n<60?`${Te(n,0)}s`:n<3600?`${Te(n/60,0)}m`:n<86400?`${Te(n/3600,0)}h`:`${Te(n/86400,0)}d`}function _d(e){return e<999.5?`${Te(e,0)} ms`:e<9950?`${Te(e/1e3,1)} s`:e<59500?`${Te(e/1e3,0)} s`:e<357e4?`${Te(e/6e4,0)} min`:`${Te(e/36e5,1)} h`}var vd=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),yd=function(e){return`/`+e},bd={},xd=function(e){return e.pathname.endsWith(`.css`)},Sd=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Cd=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=yd(t,n);let r=s(t),i=xd(r);return Sd(bd,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:vd,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},wd=()=>Cd(()=>import(`./(home)-CCR5ETLK.js`),__vite__mapDeps([0,1,2,3]));D(B({key:z,value:de})),ve(z,de);var Td={homeIndexRoute:to(`/(home)/`)({component:no(wd,`component`),validateSearch:wu(ud)}).update({id:`/(home)/`,path:`/`,getParentRoute:()=>ku})};Tu(Cu(ku._addFileChildren(Td)._addFileTypes()));export{Cc as $,ol as A,Zc as B,jl as C,El as D,Ol as E,Nc as F,Jc as G,Gc as H,el as I,Lc as J,Pc as K,jc as L,tl as M,Yc as N,fl as O,Kc as P,$ as Q,Xc as R,Pl as S,Dl as T,Fc as U,Mc as V,Ic as W,Bc as X,zc as Y,qc as Z,Yl as _,hd as a,Ul as b,Nu as c,Eu as d,Qo as et,du as f,$l as g,iu as h,fd as i,$i as it,rl as j,ll as k,Mu as l,pu as m,_d as n,Ya as nt,pd as o,mu as p,Rc as q,dd as r,ta as rt,md as s,gd as t,Bo as tt,ju as u,Wl as v,Al as w,Vl as x,Gl as y,$c as z};