@deslop/gateway 0.1.1235 → 0.1.1237

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,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/(home)-B30r1vMZ.js","assets/rolldown-runtime-WkwZ5CU-.js","assets/react-BUjtWCUj.js","assets/effect-DJFrJOhz.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/(home)-B4AqQVYP.js","assets/rolldown-runtime-WkwZ5CU-.js","assets/react-BUjtWCUj.js","assets/effect-DJFrJOhz.js"])))=>i.map(i=>d[i]);
2
2
  import{n as e,t}from"./rolldown-runtime-WkwZ5CU-.js";import{i as n,n as r,o as i,r as a,s as o}from"./react-BUjtWCUj.js";import{$ as s,$i as c,Ai as l,Ar as u,Br as d,Ci as f,Ct as p,Dr as m,Dt as h,E as g,Ft as _,Gn as v,Ii as y,Ir as b,It as x,J as S,Lr as C,Lt as w,Mt as T,Ot as E,Q as D,Qi as O,Rr as ee,Vr as k,Y as A,_ as j,_t as M,aa as N,c as P,ci as F,ct as te,dr as ne,ea as re,et as ie,g as I,ji as L,kr as ae,lt as oe,m as R,mt as z,na as se,nt as B,o as ce,p as le,pi as ue,pt as de,ra as fe,s as pe,st as me,ta as he,ut as ge,vi as _e,vt as ve,wi as ye,yt as be,zr as xe}from"./effect-DJFrJOhz.js";var V=e(o(),1),Se=V.createContext(null);function H(e){return V.useContext(Se)}function Ce(e){return e[e.length-1]}function we(e,t){return typeof e==`function`?e(t):e}var Te=Object.prototype.hasOwnProperty;function Ee(e){for(let t in e)if(Te.call(e,t))return!0;return!1}var De=()=>Object.create(null),Oe=(e,t)=>ke(e,t,!0);function ke(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&&!(Ae(e)&&Ae(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&&Ce(a)!==`${o-1}`||c&&Ce(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`?ke(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`?ke(d,o,n,r):o,i&&=u===d&&(a[l]===f||Te.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?De():{};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`?ke(d,u,n,r):u),p[f]=o<l?d:u):p[f]=a[o];return p}function Ae(e){return!e||typeof e!=`object`?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function je(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&&!je(a,o,n,r))return!1}return!0}if(Ae(e)&&Ae(t)){if(n){for(let i in t)if((r||t[i]!==void 0)&&!je(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||!je(e[a],t[a],n,r)))return!1;return i===0}return!1}function Me(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 Ne=/[\x00-\x1f\x7f"<>`{}]/g;function Pe(e){return e.replace(Ne,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function Fe(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 Pe(t)}var Ie=[`http:`,`https:`,`mailto:`,`tel:`];function Le(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 Re=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function ze(e,t){if(!e)return!1;if(Re.test(e))return!0;let n=Le(e);return n?!t.has(n):!1}var Be={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},Ve=/[&><\u2028\u2029]/g;function He(e){return e.replace(Ve,e=>Be[e])}function Ue(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+=Fe(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=Fe(r?e.slice(r):e)}return t}function We(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function Ge(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 Ke(){throw Error(`Invariant failed`)}function qe(e){return e.replace(/\/{2,}/g,`/`)}function Je(e){return e===`/`?e:e.replace(/^\/+/,``)}function Ye(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function Xe(e){return Ye(Je(e))}function Ze(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function Qe(e,t,n=`never`,r){if(t.includes(`//`)&&(t=qe(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=qe(e)),o=e.split(`/`);o.length>1&&Ce(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&&(Ce(o)===``?n===`never`&&o.pop():n===`always`&&o.push(``));let s=o.join(`/`),c=(i?qe(s):s)||`/`;return a&&r&&r.set(a,c),c}function $e(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 et(e){return e==null||e===``}function tt(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 nt(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&&et(f)){if(c===`/`&&!d)continue;f=``}o+=c+tt(s,f,r)+(d||``)}}return o+a||`/`}function rt(e){return e?.isNotFound===!0}var it=`__root__`;function at(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 ot(e){return e instanceof Response&&!!e.options}function st(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 ct=4,lt=5;function ut(e){let t=e.names;if(t)return t;let n=[];for(let t of e)typeof t!=`string`&&n.push(t[1]);return e.names=n}function dt(e,t,n){let r=e.slice(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.slice(1),``,``];let i=r.indexOf(`{`);if(i>=0){let a=r.indexOf(`}`,i),o=r.charCodeAt(i+1)===45,s=i+(o?3:2);if(a>=0&&r.charCodeAt(s-1)===36&&(!o||s<a)){let c=r.slice(s,a);return[o?3:c?1:2,c||`_splat`,r.slice(0,i),e.slice(t+a+1,c?n:e.length)]}}return r}function ft(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=Ce(p);e&&typeof e!=`string`&&e[0]===2&&(p[p.length-1]=[e[0],e[1],e[2],e[3]===void 0?void 0:e[3]+s.substring(n-(s[n-2]===`/`?2:1),u)],m=l)}for(;o<l;){let e=o,t=s.indexOf(`/`,e),n=t===-1?l:t,a=dt(s,e,n);o=n+1;let c;if(typeof a==`string`){if(!r)continue;let e=a,t;d?t=r.static??=new Map:(e=a.toLowerCase(),t=r.staticInsensitive??=new Map);let n=t.get(e);if(n)c=n;else{let n=mt(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=mt(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=mt(r,lt);(r.pathless??=[]).push(e),r=e}let g=(t.path||!t.children)&&!t.isRoot;if(g&&u<l){let e=mt(r,ct);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 pt(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 mt(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 ht(e,t){let n=mt(),r=[];function i(e,t,n,a){let[o,s,c]=ft(!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(pt);t.masksTree=n,t.flatCache=st(1e3)}function gt(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=bt(e,t.masksTree);return t.flatCache.set(e,r),r}function _t(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=mt(),ft(t,{from:e},1,o),i.singleCache.set(a,o)),bt(r,o,n)}function vt(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=bt(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=St(a.route)),t.matchCache.set(r,a),a}function yt(e,t=!1){let n=mt(),r=[],i={},a={},o=0;function s(e,n,c,l){if(e.init(o),e.id in i&&Ke(),i[e.id]=e,o!==0&&e.path){let t=Ye(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}o++;let[u,d,f]=ft(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(pt);return{processedTree:{segmentTree:n,singleCache:st(1e3),matchCache:st(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function bt(e,t,n=!1){let r=e.split(`/`),i=wt(e,r,t,n);if(!i)return null;let[a]=xt(e,r,i);return{route:i.node.route,rawParams:a}}function xt(e,t,n){let r=Ct(n.node),i=n.node.data&&ut(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===ct)break;if(u.kind===lt){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 St(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Ct(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function wt(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!Ce(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&&!Ot(l,n))continue;if(i.parse){if(!Dt(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==ct&&Ot(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===ct||i.kind===2)&&Ot(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&&(Dt(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&Et(f,o))return n;Ot(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+Tt(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+Tt(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+Tt(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+Tt(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 Tt(e,t){return 2**(e-t-1)}function Et(e,t){return e===2**(t-1)-1}function Dt(e,t,n){let r,i;try{[r,i]=xt(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 Ot(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===ct)>(e.node.kind===ct)||t.node.kind===ct==(e.node.kind===ct)&&t.node.depth>e.node.depth)))}function kt(){try{return sessionStorage}catch{return}}var At=`tsr-scroll-restoration-v1_3`,jt=kt();function Mt(){try{return JSON.parse(jt?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var Nt=Mt(),Pt=`data-scroll-restoration-id`,Ft=e=>e.state.__TSR_key||e.href;function It(e){let t=e.getAttribute(Pt);if(t)return`[${Pt}="${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 Lt=!1,Rt=`window`;function zt(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Bt(e){let t=new Set;for(let n of e){if(n===Rt)continue;let e=zt(n);e&&t.add(e)}return t}function Vt(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||Ft,a=new Set,o=e=>{let t=Nt[e]||={};for(let e of a)e===document?t[Rt]={scrollX,scrollY}:e.isConnected&&(t[It(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,Lt=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{Lt||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{jt?.setItem(At,JSON.stringify(Nt))}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=Nt[d];if(e){let t=Nt[u];for(let n in e){if(n===Rt){if(s)continue}else{let e=zt(n);if(!e||s&&o&&(l??=Bt(o),l.has(e)))continue}t||=Nt[u]={},t[n]??=e[n]}}}Lt=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=Bt(o));let t=e&&i&&c,s=r.e?Nt[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===Rt){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=zt(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{Lt=!1}}))}function Ht(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 Ut(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function Wt(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]=Ut(r):Array.isArray(t)?t.push(Ut(r)):n[e]=[t,Ut(r)]}return n}var Gt=/^(?:\s|["[{\d-]|fa|nu|tr)/,Kt=Jt(JSON.parse),qt=Yt(JSON.stringify,JSON.parse);function Jt(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.slice(1));let r=Wt(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!Gt.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function Yt(e,t){let n=t===JSON.parse;function r(r){if(r&&typeof r==`object`)try{return e(r)}catch{}else if(t&&typeof r==`string`){if(n&&!Gt.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=Ht(e,r);return t?`?${t}`:``}}function Xt(e,t,n){let r=Xe(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=qe(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>Zt(n,s.input({url:e})),output:({url:e})=>s.output({url:Qt(n,e)})}:s}function Zt(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 Qt(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 $t(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(()=>{Ge(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 en=`__TSR_index`,tn=`popstate`,nn=`beforeunload`,rn=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function an(e){let t=rn.exec(e);return t?`/`+e.slice(t[0].length):e}function on(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`
3
- \r`.includes(e)?``:encodeURIComponent(e))),an(e)}function sn(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=un(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[en];i=cn(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[en];i=cn(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[en]!==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 cn(e,t){let n=dn();return{...t,key:n,__TSR_key:n,[en]:e}}function ln(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=>on(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>un(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=dn();t.history.replaceState({[en]: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=un(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[en]-l.state[en],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=sn({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(nn,x,{capture:!0}),t.removeEventListener(tn,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(nn,x,{capture:!0}),t.addEventListener(tn,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 un(e,t){let n=on(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=dn();t={[en]: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 dn(){return(Math.random()+1).toString(36).slice(7)}function fn(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function pn(e){return e.pathname+e.search+e.hash}function mn(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function hn(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function gn({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function _n(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function vn(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 yn=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:ln()),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!==`/`&&Xe(n)?Xt(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=$t(this.latestLocation,e),Vt(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=yt(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&ht(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:st(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:Ue(e),external:!1,searchStr:o,search:Oe(t?.search,i),hash:Ue(r.slice(1)),state:ke(t?.state,a)}}let o=Zt(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:Ue(an(o.pathname)),external:!!this.rewrite&&fn(o,this.origin),searchStr:c,search:Oe(t?.search,s),hash:Ue(o.hash.slice(1)),state:ke(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=vt(Ye(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=un(n.href,{});n={...n,to:Zt(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=Qe(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),l=this.routesByPath[Ye(c)],u=c.includes(`$`),d;if(l)d=l._branch??=St(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??ft(!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??=wn(n.params,e),!Ee(p))break;p===e&&(p=Object.assign(De(),p));try{Object.assign(p,t(p))}catch{}}}p??=wn(n.params,Tn(n.params,f)?o()[3]:En);let m=e.leaveParams?c:an(Ue(f?nt(c,f,p,this.pathParamsDecoder):c)),h=Dn(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,Cn(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},_=h.length?On(h,g(),n):n.search===!0?g():typeof n.search==`function`?n.search(g()):n.search||En,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:En,S=`${m}${v}${b}`,C,w,T=!1;if(this.rewrite){let e=new URL(S,this.origin),t=e.origin,n=Qt(this.rewrite,e);C=pn(e),fn(n,t)?(w=n.href,T=!0):w=an(pn(n))}else C=We(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=gt(r.pathname,this.processedTree);if(t){let i=Object.assign(De(),t.rawParams),{from:a,params:o,...s}=t.route,c=wn(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 bn(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=Ye(this.latestLocation.href)===Ye(n.href)&&je(gn(n.state),gn(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?Le(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 bn(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 br(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(hn(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`)&&mn(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(Re.test(n)||(r=Le(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:fn(e,this.origin)||(n=pn(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=Nn,this.preloadRoute=e=>xr(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?Qe(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=_t(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!je(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?je(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=$e(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??qt,parseSearch:e.parseSearch??Kt,protocolAllowlist:e.protocolAllowlist??Ie}),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=ft(!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[`**`]:Ye(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?kn(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=Cn(i.options.validateSearch,{...n})??void 0;l={...n,...e},f={...r,...e}}catch(e){let r=e;if(e instanceof xn||(r=new xn(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=De(),_=i._interpolation?nt(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{An(i,d)}catch(e){if(x=rt(e)||ot(e)?e:new Sn(e.message,{cause:e}),t?.throwOnError)throw x}let S=y?`stay`:`enter`,C;if(b)C={...b,cause:S,search:Oe(y?y.search:b.search,l),_strictSearch:f,searchError:p};else{let e=mn(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?Oe(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?ke(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`?Oe(n.params,d):d,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=Ce(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=Ce(a),c={...e.search};for(let e of a)try{Object.assign(c,Cn(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{An(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}};async function bn(e,t,{replace:n,ignoreBlocker:r}){if(!ze(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 xn=class extends Error{},Sn=class extends Error{};function Cn(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new xn(`Async validation not supported`);if(n.issues)throw new xn(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 wn(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 Tn(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!Te.call(e,t[1]))}var En=Object.freeze({});function Dn(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=Cn(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 On(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=we(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 kn(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 it}function An(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function jn(e,t){return e.options[t]?.preload?.()}function Mn(e,t){let n=jn(e,`component`),r=jn(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function Nn(e,t,n){let r=()=>t===!1?void 0:t?jn(e,t):Mn(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 Pn(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function Fn(e,t,n){let r=e._tx;return t&&r?.[2]===n&&!r[3].some(e=>e.routeId===t)}function In(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 Ln=0,Rn=1,zn=2,U=3,Bn=[4];function Vn(e){return typeof e[0]==`number`}function Hn(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 Un(e,t){return e.routesById[t.routeId]}function Wn(e,t,n){return ot(e)?[U,e]:rt(e)?(e.routeId||=n,[zn,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[Rn,e]):[Ln,e]}function Gn(e,t){let n=Wn(t,!0,e.id);if(n[0]!==Rn)return n;try{e.options.onError?.(n[1])}catch(t){n=Wn(t,!0,e.id)}return n}function Kn(e,t,n,r,i){return i[0].signal.aborted?Bn:sr(e,t,n,Gn(n,r),i)}async function qn(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=Un(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 Yn(e,r),[i,Kn(e,t,u,a,n)]}if(c.aborted)return[i,Bn];let p=r.paramsError??r.searchError;if(p!==void 0)return Yn(e,r),[i,Kn(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{Zn(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?Hn(a,c):a);if(c.aborted)return[i,Bn];let s=sr(e,t,u,Wn(o,!1,u.id),n);if(s[0]!==Ln)return Yn(e,r),[i,s];r.context={...r.context,...o}}catch(a){return Yn(e,r),[i,Kn(e,t,u,a,n)]}finally{r.status=h,Zn(e,r,!1,n[0])}}i()}function Jn(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 Yn(e,t){let n=t._flight;t._flight=void 0,Jn(e,t,n)?.abort()}function W(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=Jn(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function Xn(e){for(let t of e){let e=t._flight;e&&e[2]++}}function Zn(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 Qn(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 $n(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return Bn;if(!i)return[Ln,void 0];let l=n._flight;Zn(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(Qn(e,t,n,r,s,a,!!o[3]))).then(e=>Wn(e,!1,r.id),e=>Wn(e,!0,r.id)).then(t=>(t[0]!==Ln&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===Rn&&l[2]?Gn(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],sr(e,t,r,await Hn(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return Yn(e,n),Bn}finally{Zn(e,n,!1,s)}}function er(e,t,n){t[0]!==U&&(e.status=`success`,e.error=void 0,t[0]===Ln?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function tr(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&&Yn(e,r)}function nr(e,t){return t[0]===Rn||t[0]===zn?{...e,status:t[0]===Rn?`error`:`notFound`,error:t[1],_flight:void 0}:e}function rr(e,t,n,r,i,a,o){let s=t[1][n],c=Un(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(Qn(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=Bn)),!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,Yn(e,s),p=Kn(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,Jn(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?$n(e,t,s,c,g,i,a).then(t=>(er(s,t,l),t[0]===Ln&&(m&&!a[0].signal.aborted&&tr(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[Ln,s.loaderData]),T=(async()=>{try{let e=Nn(c,void 0,C);e&&await Hn(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,Kn(e,t,c,r,a)]}let r=await w;x&&r[0]===Ln&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,T]),!y)return w.then(e=>nr(s,e));let E={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let D=$n(e,t,E,c,g,i,a).then(e=>(s.isFetching=!1,er(E,e,!1),e));return(t[2]??=[]).push([n,D,T,E]),D.then(e=>nr(E,e))}async function ir(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=Un(e,t[n]);try{let e=Nn(i,!1);e&&await Hn(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function ar(e,t){t[2]&&=(W(e,t[2].map(e=>e[3])),void 0)}async function or(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]>=U)throw[a,t];!i&&t[0]!==Ln&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===U)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function sr(e,t,n,r,i,a){for(;r[0]===U;){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]?[U,t]:[U,t,a]}return[U,o,n]}catch(e){r=a?[Rn,e]:Gn(n,e),a=!0}}return r}async function cr(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]===zn?ir(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=U)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]!==Ln&&t[0]<U&&!(`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)>=U){let n=s[1];if(n[0]!==U||n[1].options.reloadDocument||n[2])return ar(e,t),n;c=!0,s=[0,[Rn,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===Rn?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=Un(e,u);try{await Hn(i?Promise.resolve().then(()=>Nn(m,l===Rn?`errorComponent`:`notFoundComponent`)):Promise.all([Nn(m),Nn(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return ar(e,t),Bn}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),ar(e,t),W(e,o),p()):u.status=`success`}return t}async function lr(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=Un(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 Hn(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 ur(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 ir(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=rr(e,i,t,u,f,r,l)},m=await qn(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===zn){let t=await ir(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=U&&(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=cr(e,i,u,r[0],or(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=or(i[2],void 0,void 0,h.then(e=>Vn(e)?0:Pn(n).length,()=>0))),o=await h}catch(t){if(ar(e,i),t===a&&a.aborted)return Bn;throw t}return Vn(o)?o:lr(e,o,a,r[6]===n.length?r[6]:0)}function dr(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=Un(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(()=>dr(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 fr(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 pr(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!Pn(t[3]).some(e=>e.id===n[1]))return;let i;try{await Hn(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function mr(e,t){e._committed=t,e.stores.setMatches(t)}function hr(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=Pn(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=Un(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=_n(n);mr(e,n),W(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),vn(e,i,n,a,l,t)}async function gr(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function _r(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 vr(e,t,n,r,i){let a=n.map(e=>({...e}));Xn(a);for(let t of r)Yn(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await cr(e,o,r,t[0],i)}catch(t){throw W(e,a),t}if(Vn(s))W(e,a),s[0]===U&&e._tx===t&&e._committed===n&&await _r(e,t,s);else if(await lr(e,s,t[0].signal),e._tx!==t||e._committed!==n)W(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),Yn(e,n))}mr(e,a),W(e,n,a)}}async function yr(e,t,n,r,i,a){let o=await ur(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(Vn(o)){let n=o[0]===U&&e._tx===t;if((!n||o[1].options.reloadDocument)&&fr(e,t),W(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){fr(e,t);return}await _r(e,t,o);return}let s=o[1];if(e._tx===t&&await pr(e,t),e._tx!==t){fr(e,t),W(e,s),ar(e,o);return}let c=t[2],l=hn(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await pr(e,t),e._tx!==t){fr(e,t),W(e,s),ar(e,o);return}let n=await e.startTransition(()=>{fr(e,t),hr(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&&vr(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)):ar(e,o)})}async function br(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=hn(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await gr(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});Xn(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){W(e,m),await gr(e,n);return}e._preflight=void 0;let g,_=()=>yr(e,y,f,()=>dr(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(()=>gr(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&Zn(e,t,!1)}n[0].abort(),W(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))&&dr(e,y),g?.(_()),await y[5]):(W(e,y[3]),y[3]=[],g?.(),await gr(e,y))}async function xr(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}),Xn(a),o=(e._preloads??=new Map).set(i,a),s=await ur(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),W(e,a)),i.abort()}if(!Vn(s))return s[1];if(!o||s.length<3)return;n=s[2]}catch(e){rt(e)||console.error(e);return}}}var Sr=`Error preloading route! ☝️`;function Cr(e,t){if(e)return typeof e==`string`?e:e[t]}function wr(e){return e?.scriptFormat??`module`}function Tr(e,t,n){let r=Er(t),i=Cr(n,`script`)??r.crossOrigin;return{...wr(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,fetchPriority:`low`,...i?{crossOrigin:i}:{}}}function Er(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function Dr(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 Or(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function kr(e,t,n,r){let i=In(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 Ar([e,t],n){return n?[...n.before,...e,...t,n.boundary]:[...e,...t]}var jr=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=it:this.parentRoute||Ke();let r=n?it:t?.path;r&&r!==`/`&&(r=Je(r));let i=t?.id||r,a=n?it:qe((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:qe(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=Ye(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=>at({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.`)}},Mr=class extends jr{constructor(e){super(e)}};function Nr(e,t){let n=e.stores.location,r=new Set,i,a,o=n=>{Fn(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 Pr=V.createContext(void 0),Fr=V.createContext(void 0),Ir=t((e=>{var t=o();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,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,l=r[1];return s(function(){o.value=n,o.getSnapshot=t,u(o)&&l({inst:o})},[e,n,t]),a(function(){return u(o)&&l({inst:o}),e(function(){u(o)&&l({inst:o})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Lr=t(((e,t)=>{t.exports=Ir()})),Rr=t((e=>{var t=o(),n=Lr();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,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!a){if(a=!0,s=e,e=r(e),o!==void 0&&f.hasValue){var t=f.value;if(o(t,e))return c=t}return c=e}if(t=c,i(s,e))return t;var n=r(e);return o!==void 0&&o(t,n)?(s=e,t):(s=e,c=n)}var a=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,o]);var p=a(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),zr=t(((e,t)=>{t.exports=Rr()}))();function Br(e,t){return e===t}function Vr(e,t=e=>e,n){let r=n?.compare??Br,i=(0,V.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,V.useCallback)(()=>e.get(),[e]);return(0,zr.useSyncExternalStoreWithSelector)(i,a,a,t,r)}function Hr({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 Ur(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 Wr=[],Gr=0,{link:Kr,unlink:qr,propagate:Jr,checkDirty:Yr,shallowPropagate:Xr}=Hr({update(e){return e._update()},notify(e){Wr[Qr++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,ni(e))}}),Zr=0,Qr=0,$r,ei=0;function ti(e){try{++ei,e()}finally{--ei||ri()}}function ni(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=qr(n,e)}function ri(){if(!(ei>0)){for(;Zr<Qr;){let e=Wr[Zr];Wr[Zr++]=void 0,e.notify()}Zr=0,Qr=0}}function ii(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 $r!==void 0&&Kr(i,$r,Gr),i._snapshot},subscribe(e){let t=Ur(e),n={current:!1},r=ai(()=>{i.get(),n.current?($r=void 0,t.next?.(i._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=$r,o=t?.compare??Object.is;if(n)$r=i,++Gr,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{$r=a,n&&(i.flags&=-5),ni(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&Yr(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Xr(e)}}else e&32&&(i.flags=e&-33);return $r!==void 0&&Kr(i,$r,Gr),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Jr(e),Xr(e),ri())}},i}function ai(e){let t=()=>{let t=$r;$r=n,++Gr,n.depsTail=void 0,n.flags=6;try{return e()}finally{$r=t,n.flags&=-5,ni(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&&Yr(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,ni(this)}};return t(),n}var oi={};function si(e,t){let n=V.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=ke(n.current,i):i}}function ci(e){let t=H(),n=V.useContext(e.from?Fr:Pr),r=e.from??n,i=t.stores.getMatchStore(r),a=si(e,t),o=Vr(i,e=>e?a(e):oi);if(o!==oi)return o;(e.shouldThrow??!0)&&Ke()}function li(e){return ci({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function ui(e){let{select:t,...n}=e;return ci({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function di(e){return ci({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 fi(e){return ci({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}var pi=V.use,mi=V.useLayoutEffect;function hi(e){let t=H();return V.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function gi(e){return ci({...e,select:t=>e.select?e.select(t.context):t.context})}var G=i();function _i(...e){let t=V.useRef(e),n=t.current;return e.forEach((e,t)=>{je(n[t],e,!1,!0)||(n[t]=e)}),t.current}function vi(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(Sr)})}function yi(e,t){let n=typeof e==`string`&&Le(e);if(n)return t.has(n)?e:null}function bi(e,t,n,r){let i=Ze(e.pathname,r),a=Ze(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!je(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function xi(e,t,n){let r=H(),i=V.useRef(null),a=V.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]=_i(e.search,e.params,o),x=V.useContext(Pr),S=(r.stores._linkScopes??={})[x]??=Nr(r,x),[C,w,T]=V.useMemo(()=>{let t=yi(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=ki(t,r,u),s=u||o&&!Le(o)?bi(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]=V.useSyncExternalStore(S[1],w,T||w),O=D===void 0&&E,ee=u||E===void 0,k=V.useRef(!1),A=e.reloadDocument||O||ee?!1:c??r.options.defaultPreload,j=l??r.options.defaultPreloadDelay??0,M=V.useCallback(e=>{let t=e?.isIntersecting;t??A===`intent`?j?i.t??=setTimeout(()=>{i.t=void 0,vi(r,C)},j):vi(r,C):t===!1&&Di(i)},[r,C,i,A,j]);V.useEffect(()=>{if(!A)return;A===`render`&&!k.current&&(k.current=!0,vi(r,C));let e=!0,t;return A===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&M(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),Di(i)}},[r,C,A,M,i]);let N=Ti(e,n);if(N.ref=t?a:i,O)return N.href=O,N;let P=t=>{let n=d??t.currentTarget.getAttribute(`target`);ee||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),Di(i),r.navigate({...e,_fromLocation:C._fromLocation}))},F=()=>{A===`intent`&&vi(r,C)},te=()=>{A===`intent`&&Di(i)};return N.onClick=Oi(f,P),N.onBlur=Oi(p,te),N.onFocus=Oi(m,M),N.onMouseEnter=Oi(h,M),N.onMouseLeave=Oi(g,te),N.onTouchStart=Oi(_,F),Ei(N,e,D,E,ee,n)}var Si={},Ci={className:`active`},wi=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 Ti(e,t){let n={};for(let r in e)wi.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function Ei(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=we(n?o:s,{})??(n?Ci:Si);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 Di=e=>{clearTimeout(e.t),e.t=void 0},Oi=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function ki(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||!ze(i,t.protocolAllowlist))return i}var Ai=V.memo(V.forwardRef((e,t)=>{let n=e._asChild||`a`,r=xi(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return V.createElement(n,r,i)}),ji);function ji(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!wi.has(r)||!je(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var Mi=class extends jr{constructor(e){super(e),this.useMatch=e=>ci({...e,from:this.id}),this.useRouteContext=e=>gi({...e,from:this.id}),this.useSearch=e=>fi({...e,from:this.id}),this.useParams=e=>di({...e,from:this.id}),this.useLoaderDeps=e=>ui({...e,from:this.id}),this.useLoaderData=e=>li({...e,from:this.id}),this.useNavigate=()=>hi({from:this.fullPath}),this.Link=V.forwardRef((e,t)=>(0,G.jsx)(Ai,{ref:t,from:this.fullPath,...e}))}};function Ni(e){return new Mi(e)}var Pi=class extends Mr{constructor(e){super(e),this.useMatch=e=>ci({...e,from:this.id}),this.useRouteContext=e=>gi({...e,from:this.id}),this.useSearch=e=>fi({...e,from:this.id}),this.useParams=e=>di({...e,from:this.id}),this.useLoaderDeps=e=>ui({...e,from:this.id}),this.useLoaderData=e=>li({...e,from:this.id}),this.useNavigate=()=>hi({from:this.fullPath}),this.Link=V.forwardRef((e,t)=>(0,G.jsx)(Ai,{ref:t,from:this.fullPath,...e}))}};function Fi(e){return new Pi(e)}function Ii(e){return e=>{let t=Ni(e);return t.isRoot=!1,t}}function Li(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(Me(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(pi)pi(a());else throw a()}return V.createElement(r,e)};return o.preload=a,o}var Ri=e=>({createMutableStore:ii,createReadonlyStore:ii,batch:ti}),zi=e=>new Bi(e),Bi=class extends yn{constructor(e){super(e,Ri)}},Vi=class extends V.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?V.createElement(this.props.errorComponent??Hi,{error:e[0],reset:this.reset}):this.props.children}};function Hi({error:e}){let[t,n]=V.useState(!1);return(0,G.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,G.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,G.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,G.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,G.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,G.jsx)(`div`,{children:(0,G.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e?.message?(0,G.jsx)(`code`,{children:e.message}):null})}):null]})}function Ui(e,t){let n=e[1];e.length=0,n?.(t)}function Wi({t:e}){let t=H(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{Ui(n,!1),n.push(i,a),e(t),V.startTransition(r)}),mi(()=>{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(Ye(r.publicHref)!==Ye(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`,...hn(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}var Gi=()=>!0,Ki=()=>!1;function qi({children:e,fallback:t=null}){return(0,G.jsx)(V.Fragment,{children:Ji()?e:t})}function Ji(e=!0){return V.useSyncExternalStore(Yi,Gi,e?Ki:Gi)}function Yi(){return()=>{}}function Xi(e){let t=H(),n=`not-found-${Vr(t.stores.location,e=>e.pathname)}-${Vr(t.stores.status)}`;return(0,G.jsx)(Vi,{getResetKey:()=>n,onCatch:(t,n)=>{if(rt(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(rt(t))return e.fallback?.(t);throw t},children:e.children})}function Zi(){return(0,G.jsx)(`p`,{children:`Not Found`})}function Qi(e,t,n){return t.options.notFoundComponent?(0,G.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,G.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,G.jsx)(Zi,{})}function $i(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,G.jsx)(n,{}):null}var ea=(e,t)=>e[0]===t[0]&&e[1]===t[1],ta=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,na=V.memo(function({routeId:e}){let t=H();return ra(t,Vr(t.stores.getMatchStore(e)))});function ra(e,t){let n=e.routesById[t.routeId],r=$i(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=ta(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s)),l=(0,G.jsx)(ia,{match:t});s&&(l=(0,G.jsx)(qi,{fallback:r,children:l})),o&&(l=(0,G.jsx)(Xi,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return V.createElement(o,e)},children:l})),i&&(l=(0,G.jsx)(Vi,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(rt(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:l})),c&&(l=(0,G.jsx)(V.Suspense,{fallback:r,children:l}));let u=n.isRoot&&n.options.shellComponent;return u?(0,G.jsx)(Pr.Provider,{value:t.routeId,children:(0,G.jsxs)(u,{children:[l,null]})}):(0,G.jsxs)(Pr.Provider,{value:t.routeId,children:[l,null]})}var ia=V.memo(function({match:e}){let t=H(),n=e.routeId,r=t.routesById[n],i=V.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=V.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,G.jsx)(e,{},i):(0,G.jsx)(aa,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!ta(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return $i(t,r)}if(e.status===`notFound`)return Qi(t,r,e.error);if(e.status===`error`)throw e.error;return a}),aa=V.memo(function(){let e=H(),t=V.useContext(Pr),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=Vr(a,e=>[!!e._notFound,e.error],{compare:ea}),i=Vr(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return Qi(e,e.routesById[t],r);if(!i)return null;let a=(0,G.jsx)(na,{routeId:i});return t===`__root__`?(0,G.jsx)(V.Suspense,{fallback:$i(e),children:a}):a});function oa(){let e=H(),t=e.routesById[it],n=$i(e,t),r=(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Wi,{t:V.useState()[1]}),e.ssr?(0,G.jsx)(sa,{}):(0,G.jsx)(V.Suspense,{fallback:n,children:(0,G.jsx)(sa,{})})]});return e.options.InnerWrap?(0,G.jsx)(e.options.InnerWrap,{children:r}):r}function sa(){let e=H(),t=e._rendered,n=Vr(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;mi(()=>{t[0]===n&&Ui(t,!0)},[t,n]);let a=i?(0,G.jsx)(na,{routeId:i}):null;return e.options.disableGlobalCatchBoundary?a:(0,G.jsx)(Vi,{getResetKey:()=>r,onCatch:void 0,children:a})}function ca({router:e,children:t,...n}){Ee(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,G.jsx)(Se.Provider,{value:e,children:t});return e.options.Wrap?(0,G.jsx)(e.options.Wrap,{children:r}):r}function la({router:e,...t}){return(0,G.jsx)(ca,{router:e,...t,children:(0,G.jsx)(oa,{})})}function ua(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 da(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e,a=V.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(e.tag){case`title`:return(0,G.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,G.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,G.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,G.jsx)(`style`,{...t,dangerouslySetInnerHTML:a,nonce:r});case`script`:return(0,G.jsx)(fa,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function fa({attrs:e,children:t,preventScriptHoist:n}){H();let r=Ji(),i=V.useMemo(()=>t===void 0?void 0:{__html:t},[t]),a=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(V.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 ua(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,ua(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,a]),a&&typeof t==`string`)return(0,G.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:i});if(!r){if(e?.src)return(0,G.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,G.jsx)(`script`,{...e,dangerouslySetInnerHTML:i,suppressHydrationWarning:!0})}return null}function pa(e,t,n,r){n=In(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:He(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=Or(e);u.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:Cr(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:{...Tr(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 Dr(m,a),m.push(...d),Dr(m,c),m.push(...u),Dr(m,f),Dr(m,p),m}var ma=e=>{let t=H(),n=t.options.ssr?.nonce,r=V.useCallback(r=>pa(t,n,r,e),[e,n,t]);return Vr(t.stores.matches,r,{compare:je})};function ha(e){let t=ma(e.assetCrossOrigin),n=H().options.ssr?.nonce;return(0,G.jsx)(G.Fragment,{children:t.map(e=>(0,V.createElement)(da,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var ga={suppressHydrationWarning:!0},_a=()=>{let e=H(),t=e.options.ssr?.nonce,n=n=>{let r=kr(n,e.ssr?.manifest,t,ga);for(let e of r[1])if(typeof e.attrs?.src==`string`){let t=e;t.preventScriptHoist=!0}return r};return va(Vr(e.stores.matches,e=>Ar(n(e)),{compare:je}))};function va(e){return(0,G.jsx)(G.Fragment,{children:e.map((e,t)=>(0,V.createElement)(da,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var ya=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function ba(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:ya(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var xa=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},Sa=e=>{let t=xa(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ca=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),wa={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function Ta(e){return e!=null}function Ea(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??wa.width,a=e.size??e.height??wa.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Ca(...c):Ca(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??wa[`stroke-width`])*Number(e.size??e.width??wa.width)/Number(t.size??t.width??wa.width):t.strokeWidth??wa[`stroke-width`];return[`svg`,{...Object.entries(wa).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Ta(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Ta(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Ta(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function Da(e,t={}){return Ea(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var Oa=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},ka=(0,V.createContext)({}),Aa=()=>(0,V.useContext)(ka),ja=(0,V.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=Aa()??{},y=!!c||Oa(d),[b,x,S=[]]=Da(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:Ca(v,s),hasA11yProp:y,attributes:d});return(0,V.createElement)(b,{ref:f,...x},[...S.map(([e,t])=>(0,V.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function Ma(e,t=[],n=[]){let r=typeof e==`string`?ba(e,t,n):e,i=(0,V.forwardRef)(({className:e,...t},n)=>(0,V.createElement)(ja,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Sa(r.name)),i}var Na={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};Na.node;var Pa=Ma(Na),Fa={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};Fa.node;var Ia=Ma(Fa),La={name:`octagon-alert`,size:24,node:[[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z`,key:`1fd625`}]],aliases:[`alert-octagon`]};La.node;var Ra=Ma(La),za={name:`octagon-x`,size:24,node:[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-octagon`]};za.node;var Ba=Ma(za),Va={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};Va.node;var Ha=Ma(Va),Ua={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};Ua.node;var Wa=Ma(Ua),Ga={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Ga.node;var Ka=Ma(Ga),qa=a(),K=r();function Ja(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=Ja(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Ya(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ja(e))&&(r&&(r+=` `),r+=t);return r}var Xa=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Za=Ya,Qa=(e,t)=>n=>{if(t?.variants==null)return Za(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=Xa(t)||Xa(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 Za(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)},$a=(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},eo=(e,t)=>({classGroupId:e,validator:t}),to=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),no=`-`,ro=[],io=`arbitrary..`,ao=e=>{let t=co(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return so(e);let n=e.split(no);return oo(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?$a(i,t):t:i||ro}return n[e]||ro}}},oo=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=oo(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(no):e.slice(t).join(no),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},so=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?io+r:void 0})(),co=e=>{let{theme:t,classGroups:n}=e;return lo(n,t)},lo=(e,t)=>{let n=to();for(let r in e){let i=e[r];uo(i,n,r,t)}return n},uo=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];fo(i,t,n,r)}},fo=(e,t,n,r)=>{typeof e==`string`?po(e,t,n):typeof e==`function`?mo(e,t,n,r):ho(e,t,n,r)},po=(e,t,n)=>{let r=e===``?t:go(t,e);r.classGroupId=n},mo=(e,t,n,r)=>{_o(e)?uo(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(eo(n,e)))},ho=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];uo(o,go(t,a),n,r)}},go=(e,t)=>{let n=e,r=t.split(no),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=to(),n.nextPart.set(t,i)),n=i}return n},_o=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,vo=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)}}},yo=`!`,bo=`:`,xo=[],So=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Co=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===bo){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(yo)?(c=s.slice(0,-1),l=!0):s.startsWith(yo)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return So(t,l,c,u)};if(t){let e=t+bo,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):So(xo,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},wo=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}},To=e=>({cache:vo(e.cacheSize),parseClassName:Co(e),sortModifiers:wo(e),postfixLookupClassGroupIds:Eo(e),...ao(e)}),Eo=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},Do=/\s+/,Oo=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Do),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?_+yo:_,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},ko=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Ao(n))&&(i&&(i+=` `),i+=r);return i},Ao=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Ao(e[r]))&&(n&&(n+=` `),n+=t);return n},jo=(e,...t)=>{let n,r,i,a,o=o=>(n=To(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=Oo(e,n);return i(e,a),a};return a=o,(...e)=>a(ko(...e))},Mo=[],q=e=>{let t=t=>t[e]||Mo;return t.isThemeGetter=!0,t.themeKey=e,t},No=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Po=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fo=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Io=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Lo=/\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$/,Ro=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,zo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vo=e=>Fo.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),Ho=e=>!!e&&Number.isInteger(Number(e)),Uo=e=>e.endsWith(`%`)&&J(e.slice(0,-1)),Wo=e=>Io.test(e),Go=()=>!0,Ko=e=>Lo.test(e)&&!Ro.test(e),qo=()=>!1,Jo=e=>zo.test(e),Yo=e=>Bo.test(e),Xo=e=>!Y(e)&&!X(e),Zo=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)),Qo=e=>ps(e,_s,qo),Y=e=>No.test(e),$o=e=>ps(e,vs,Ko),es=e=>ps(e,ys,J),ts=e=>ps(e,xs,Go),ns=e=>ps(e,bs,qo),rs=e=>ps(e,hs,qo),is=e=>ps(e,gs,Yo),as=e=>ps(e,Ss,Jo),X=e=>Po.test(e),os=e=>ms(e,vs),ss=e=>ms(e,bs),cs=e=>ms(e,hs),ls=e=>ms(e,_s),us=e=>ms(e,gs),ds=e=>ms(e,Ss,!0),fs=e=>ms(e,xs,!0),ps=(e,t,n)=>{let r=No.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ms=(e,t,n=!1)=>{let r=Po.exec(e);return r?r[1]?t(r[1]):n:!1},hs=e=>e===`position`||e===`percentage`,gs=e=>e===`image`||e===`url`,_s=e=>e===`length`||e===`size`||e===`bg-size`,vs=e=>e===`length`,ys=e=>e===`number`,bs=e=>e===`family-name`,xs=e=>e===`number`||e===`weight`,Ss=e=>e===`shadow`,Cs=jo(()=>{let e=q(`color`),t=q(`font`),n=q(`text`),r=q(`font-weight`),i=q(`tracking`),a=q(`leading`),o=q(`breakpoint`),s=q(`container`),c=q(`spacing`),l=q(`radius`),u=q(`shadow`),d=q(`inset-shadow`),f=q(`text-shadow`),p=q(`drop-shadow`),m=q(`blur`),h=q(`perspective`),g=q(`aspect`),_=q(`ease`),v=q(`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(),X,Y],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[X,Y,c],T=()=>[Vo,`full`,`auto`,...w()],E=()=>[Ho,`none`,`subgrid`,X,Y],D=()=>[`auto`,{span:[`full`,Ho,X,Y]},Ho,X,Y],O=()=>[Ho,`auto`,X,Y],ee=()=>[`auto`,`min`,`max`,`fr`,X,Y],k=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],A=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],j=()=>[`auto`,...w()],M=()=>[Vo,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],N=()=>[s,Vo,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],P=()=>[Vo,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],F=()=>[e,X,Y],te=()=>[...b(),cs,rs,{position:[X,Y]}],ne=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],re=()=>[`auto`,`cover`,`contain`,ls,Qo,{size:[X,Y]}],ie=()=>[Uo,os,$o],I=()=>[``,`none`,`full`,l,X,Y],L=()=>[``,J,os,$o],ae=()=>[`solid`,`dashed`,`dotted`,`double`],oe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],R=()=>[J,Uo,cs,rs],z=()=>[``,`none`,m,X,Y],se=()=>[`none`,J,X,Y],B=()=>[`none`,J,X,Y],ce=()=>[J,X,Y],le=()=>[Vo,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Wo],breakpoint:[Wo],color:[Go],container:[Wo],"drop-shadow":[Wo],ease:[`in`,`out`,`in-out`],font:[Xo],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Wo],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Wo],shadow:[Wo],spacing:[`px`,J],text:[Wo],"text-shadow":[Wo],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Vo,Y,X,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,X,Y]}],"container-named":[Zo],columns:[{columns:[J,`auto`,Y,X,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:[Ho,`auto`,X,Y]}],basis:[{basis:[Vo,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[J,Vo,`auto`,`initial`,`none`,Y]}],grow:[{grow:[``,J,X,Y]}],shrink:[{shrink:[``,J,X,Y]}],order:[{order:[Ho,`first`,`last`,`none`,X,Y]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...k(),`normal`]}],"justify-items":[{"justify-items":[...A(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...A()]}],"align-content":[{content:[`normal`,...k()]}],"align-items":[{items:[...A(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...A(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...A(),`baseline`]}],"place-self":[{"place-self":[`auto`,...A()]}],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:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:M()}],"inline-size":[{inline:[`auto`,...N()]}],"min-inline-size":[{"min-inline":[`auto`,...N()]}],"max-inline-size":[{"max-inline":[`none`,...N()]}],"block-size":[{block:[`auto`,...P()]}],"min-block-size":[{"min-block":[`auto`,...P()]}],"max-block-size":[{"max-block":[`none`,...P()]}],w:[{w:[s,`screen`,...M()]}],"min-w":[{"min-w":[s,`screen`,`none`,...M()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...M()]}],h:[{h:[`screen`,`lh`,...M()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...M()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...M()]}],"font-size":[{text:[`base`,n,os,$o]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,fs,ts]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Uo,Y]}],"font-family":[{font:[ss,ns,t]}],"font-features":[{"font-features":[Y]}],"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,X,Y]}],"line-clamp":[{"line-clamp":[J,`none`,X,es]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,X,Y]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,X,Y]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ae(),`wavy`]}],"text-decoration-thickness":[{decoration:[J,`from-font`,`auto`,X,$o]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[J,`auto`,X,Y]}],"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:[Ho,X,Y]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,X,Y]}],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`,X,Y]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:re()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Ho,X,Y],radial:[``,X,Y],conic:[``,Ho,X,Y]},us,is]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-bs":[{"border-bs":L()}],"border-w-be":[{"border-be":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":L()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ae(),`hidden`,`none`]}],"divide-style":[{divide:[...ae(),`hidden`,`none`]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...ae(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[J,X,Y]}],"outline-w":[{outline:[``,J,os,$o]}],"outline-color":[{outline:F()}],shadow:[{shadow:[``,`inner`,`none`,u,ds,as]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":[`none`,d,ds,as]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:L()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[J,$o]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":[`none`,f,ds,as]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[J,X,Y]}],"mix-blend":[{"mix-blend":[...oe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":oe()}],"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":[J]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[X,Y]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":[J]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,X,Y]}],filter:[{filter:[``,`none`,X,Y]}],blur:[{blur:z()}],brightness:[{brightness:[J,X,Y]}],contrast:[{contrast:[J,X,Y]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,ds,as]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:[``,J,X,Y]}],"hue-rotate":[{"hue-rotate":[J,X,Y]}],invert:[{invert:[``,J,X,Y]}],saturate:[{saturate:[J,X,Y]}],sepia:[{sepia:[``,J,X,Y]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,X,Y]}],"backdrop-blur":[{"backdrop-blur":z()}],"backdrop-brightness":[{"backdrop-brightness":[J,X,Y]}],"backdrop-contrast":[{"backdrop-contrast":[J,X,Y]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,J,X,Y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,X,Y]}],"backdrop-invert":[{"backdrop-invert":[``,J,X,Y]}],"backdrop-opacity":[{"backdrop-opacity":[J,X,Y]}],"backdrop-saturate":[{"backdrop-saturate":[J,X,Y]}],"backdrop-sepia":[{"backdrop-sepia":[``,J,X,Y]}],"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`,X,Y]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[J,`initial`,X,Y]}],ease:[{ease:[`linear`,`initial`,_,X,Y]}],delay:[{delay:[J,X,Y]}],animate:[{animate:[`none`,v,X,Y]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,X,Y]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:B()}],"scale-x":[{"scale-x":B()}],"scale-y":[{"scale-y":B()}],"scale-z":[{"scale-z":B()}],"scale-3d":[`scale-3d`],skew:[{skew:ce()}],"skew-x":[{"skew-x":ce()}],"skew-y":[{"skew-y":ce()}],transform:[{transform:[X,Y,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":[`translate-none`],zoom:[{zoom:[Ho,X,Y]}],accent:[{accent:F()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:F()}],"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`,X,Y]}],"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":F()}],"scrollbar-track-color":[{"scrollbar-track":F()}],"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`,X,Y]}],fill:[{fill:[`none`,...F()]}],"stroke-w":[{stroke:[J,os,$o,es]}],stroke:[{stroke:[`none`,...F()]}],"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 Z(...e){return Cs(Ya(e))}var ws=N(ie(),B(c,e=>ae(e.message)||e.message===`Error`?e.name:e.message),B(ue,e=>N(e,_e,L(e=>f(u(e.message),{onFalse:()=>e.name,onTrue:()=>e.message})),l(`
4
- `))),B(O(`message`),e=>m(e.message)),B(fe,e=>m(e)),B(he,()=>`Error`),B(se,e=>h(E(p))(e)),s(()=>`Unknown Error`)),Ts=Qa(`group/alert relative grid w-full gap-0.5 rounded-lg border px-2 py-1.5 text-left text-xs/relaxed has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-1.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-3.5`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}});function Es(e){let t=(0,K.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=Z(Ts({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,G.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:a,...r}),t[7]=r,t[8]=a,t[9]=o):o=t[9],o}function Ds(e){let t=(0,K.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=Z(`font-medium 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,G.jsx)(`div`,{"data-slot":`alert-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Os(e){let t=(0,K.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=Z(`text-xs/relaxed 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,G.jsx)(`div`,{"data-slot":`alert-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ks(){return typeof window<`u`}function Q(e){return Ms(e)?(e.nodeName||``).toLowerCase():`#document`}function As(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function js(e){return((Ms(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ms(e){return ks()?e instanceof Node||e instanceof As(e).Node:!1}function Ns(e){return ks()?e instanceof Element||e instanceof As(e).Element:!1}function Ps(e){return ks()?e instanceof HTMLElement||e instanceof As(e).HTMLElement:!1}function Fs(e){return!ks()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof As(e).ShadowRoot}function Is(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=qs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Ls(e){return/^(table|td|th)$/.test(Q(e))}function Rs(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var zs=/transform|translate|scale|rotate|perspective|filter/,Bs=/paint|layout|strict|content/,Vs=e=>!!e&&e!==`none`,Hs;function Us(e){let t=Ns(e)?qs(e):e;return Vs(t.transform)||Vs(t.translate)||Vs(t.scale)||Vs(t.rotate)||Vs(t.perspective)||!Gs()&&(Vs(t.backdropFilter)||Vs(t.filter))||zs.test(t.willChange||``)||Bs.test(t.contain||``)}function Ws(e){let t=Ys(e);for(;Ps(t)&&!Ks(t);){if(Us(t))return t;if(Rs(t))return null;t=Ys(t)}return null}function Gs(){return Hs??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Hs}function Ks(e){return/^(html|body|#document)$/.test(Q(e))}function qs(e){return As(e).getComputedStyle(e)}function Js(e){return Ns(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ys(e){if(Q(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Fs(e)&&e.host||js(e);return Fs(t)?t.host:t}function Xs(e){let t=Ys(e);return Ks(t)?(e.ownerDocument||e).body:Ps(t)&&Is(t)?t:Xs(t)}function Zs(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Xs(e),i=r===e.ownerDocument?.body,a=As(r);if(i){let e=Qs(a);return t.concat(a,a.visualViewport||[],Is(r)?r:[],e&&n?Zs(e):[])}return t.concat(r,Zs(r,[],n))}function Qs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var $s={...V},ec={};function tc(e,t){let n=V.useRef(ec);return n.current===ec&&(n.current=e(t)),n}var nc=$s.useInsertionEffect,rc=nc&&nc!==$s.useLayoutEffect?nc:e=>e();function ic(e){let t=tc(ac).current;return t.next=e,rc(t.effect),t.trampoline}function ac(){let e={next:void 0,callback:oc,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function oc(){}var $=typeof document<`u`?V.useLayoutEffect:()=>{};function sc(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var cc={};function lc(e,t,n,r,i){if(!n&&!r&&!i&&!e)return dc(t);let a=dc(e);return t&&(a=fc(a,t)),n&&(a=fc(a,n)),r&&(a=fc(a,r)),i&&(a=fc(a,i)),a}function uc(e){if(e.length===0)return cc;if(e.length===1)return dc(e[0]);let t=dc(e[0]);for(let n=1;n<e.length;n+=1)t=fc(t,e[n]);return t}function dc(e){return gc(e)?{...e(cc)}:pc(e)}function fc(e,t){return gc(t)?t(e):mc(e,t)}function pc(e){let t={...e};for(let e in t){let n=t[e];hc(e,n)&&(t[e]=vc(n))}return t}function mc(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=sc(e.style,r);break;case`className`:e[n]=bc(e.className,r);break;default:e[n]=hc(n,r)?_c(e[n],r):r}}return e}function hc(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 gc(e){return typeof e==`function`}function _c(e,t){return t?e?(...n)=>{let r=n[0];if(xc(r)){let i=r;yc(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:vc(t):e}function vc(e){return e&&((...t)=>{let n=t[0];return xc(n)&&yc(n),e(...t)})}function yc(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function bc(e,t){return t?e?t+` `+e:t:e}function xc(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function Sc(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 Cc=Sc(`https://base-ui.com/production-error`,`Base UI`),wc=V.createContext(void 0);function Tc(e=!1){let t=V.useContext(wc);if(t===void 0&&!e)throw Error(Cc(16));return t}function Ec(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:V.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 Dc(e){return e?.ownerDocument||document}function Oc(e,t,{detail:n=0,pointerType:r=``}={}){e.dispatchEvent(new(As(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 kc(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=V.useRef(null),s=Tc(!0),c=a??s!==void 0,{props:l}=Ec({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=V.useCallback(()=>{let e=o.current;Ac(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return $(u,[u]),{getButtonProps:V.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return lc({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(yc(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=Ac(r),s=!i&&jc(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(),Oc(r,e))}else!l||i||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),Oc(r,e)))},onKeyUp(e){t||(yc(e),a?.(e),e.target===e.currentTarget&&i&&c&&Ac(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||i||c||e.defaultPrevented||e.key!==` `||(e.preventBaseUIHandler(),Oc(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:ic(e=>{o.current=e,u()})}}function Ac(e){return Ps(e)&&e.tagName===`BUTTON`}function jc(e){return Ps(e)&&e.tagName===`A`&&!!e.href}function Mc(e,t,n,r){let i=tc(Pc).current;return Fc(i,e,t,n,r)&&Lc(i,[e,t,n,r]),i.callback}function Nc(e){let t=tc(Pc).current;return Ic(t,e)&&Lc(t,e),t.callback}function Pc(){return{callback:null,cleanup:null,refs:[]}}function Fc(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function Ic(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function Lc(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 Rc=19;function zc(e){return Rc>=e}function Bc(e){if(!V.isValidElement(e))return null;let t=e,n=t.props;return(zc(19)?n?.ref:t.ref)??null}function Vc(){}var Hc=Object.freeze([]),Uc=Object.freeze({});function Wc(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 Gc(e,t){return typeof e==`function`?e(t):e}function Kc(e,t){return typeof e==`function`?e(t):e}function qc(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=Zc(r));let i=Jc(t,n,r);if(n.enabled===!1)return null;let a=n.state??Uc;return Qc(e,r,i,a)}function Jc(e,t,n){let{className:r,style:i}=e,{state:a=Uc,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?Gc(r,a):void 0,d=l?Kc(i,a):void 0,f=l?Wc(a,c):Uc,p=l&&s?Yc(s):void 0,m=l?sc(f,p)??{}:Uc;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?Nc([m.ref,Bc(n),...o]):Mc(m.ref,Bc(n),o):Mc(null,null)),l?(u!==void 0&&(m.className=bc(m.className,u)),d!==void 0&&(m.style=sc(m.style,d)),m):Uc}function Yc(e){return Array.isArray(e)?uc(e):lc(void 0,e)}var Xc=Symbol.for(`react.lazy`);function Zc(e){if(e?.$$typeof!==Xc)return e;let t=V.Children.toArray(e)[0];return V.isValidElement(t)?t:e}function Qc(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=lc(n,t.props);return e.ref=n.ref,V.cloneElement(t,e)}return $c(e,n)}function $c(e,t){return e===`button`?(0,V.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,V.createElement)(`img`,{alt:``,...t,key:t.key}):V.createElement(e,t)}var el=V.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}=kc({disabled:i,focusableWhenDisabled:a,native:o});return qc(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),tl=Qa(`group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium whitespace-nowrap 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-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark: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-offset-4 hover:underline`},size:{default:`h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,xs:`h-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5`,sm:`h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,lg:`h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4`,icon:`size-7 [&_svg:not([class*='size-'])]:size-3.5`,"icon-xs":`size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5`,"icon-sm":`size-6 [&_svg:not([class*='size-'])]:size-3`,"icon-lg":`size-8 [&_svg:not([class*='size-'])]:size-4`}},defaultVariants:{variant:`default`,size:`default`}});function nl(e){let t=(0,K.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=Z(tl({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,G.jsx)(el,{"data-slot":`button`,className:c,...r}),t[9]=r,t[10]=c,t[11]=l):l=t[11],l}function rl(e){let t=(0,K.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=Z(`flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`empty`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function il(e){let t=(0,K.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=Z(`flex max-w-sm flex-col items-center gap-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`empty-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function al(e){let t=(0,K.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=Z(`text-sm font-medium tracking-tight`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`empty-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ol(e){let t=(0,K.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=Z(`text-xs/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,G.jsx)(`div`,{"data-slot":`empty-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function sl(e){let t=(0,K.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=Z(`flex w-full max-w-sm min-w-0 flex-col items-center gap-2 text-xs/relaxed text-balance`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`empty-content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function cl(){let e=(0,K.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,G.jsx)(il,{children:(0,G.jsx)(al,{children:`Page not found`})}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,G.jsxs)(rl,{children:[t,(0,G.jsx)(sl,{children:(0,G.jsx)(`a`,{className:tl({variant:`outline`}),href:`/`,children:`Go home`})})]}),e[1]=n):n=e[1],n}function ll(e){let t=(0,K.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,V.useEffect)(n,r),null}function ul(e){let t=(0,K.c)(16),n;t[0]===e.error?n=t[1]:(n=ws(e.error),t[0]=e.error,t[1]=n);let r=n,i,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,G.jsx)(Ra,{}),a=(0,G.jsx)(Ds,{children:`Something went wrong`}),t[2]=i,t[3]=a):(i=t[2],a=t[3]);let o;t[4]===r?o=t[5]:(o=(0,G.jsxs)(Es,{variant:`destructive`,className:`w-full max-w-lg select-text`,children:[i,a,(0,G.jsx)(Os,{className:`wrap-break-word whitespace-pre-wrap`,children:r})]}),t[4]=r,t[5]=o);let s;t[6]===r?s=t[7]:(s=(0,G.jsx)(nl,{variant:`ghost`,onClick:async()=>{await navigator.clipboard.writeText(r)},children:`Copy error`}),t[6]=r,t[7]=s);let c;t[8]===e.reset?c=t[9]:(c=(0,G.jsx)(nl,{onClick:e.reset,children:`Try again`}),t[8]=e.reset,t[9]=c);let l;t[10]!==s||t[11]!==c?(l=(0,G.jsxs)(`div`,{className:`flex gap-2`,children:[s,c]}),t[10]=s,t[11]=c,t[12]=l):l=t[12];let u;return t[13]!==o||t[14]!==l?(u=(0,G.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4 p-4`,children:[o,l]}),t[13]=o,t[14]=l,t[15]=u):u=t[15],u}var dl=class extends be()(`AuthError`,{cause:x(te()),error:w(de([`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:M}){},fl=ve({id:z,name:z});M.check(T(/^https:\/\/[a-z\d-]+\.mp281x\.xyz(?:\/mcp)?$/u)),ve({accessToken:z,clientId:z,expiresAt:oe,refreshToken:z}),ve({client_id:z}),ve({access_token:z,expires_in:oe,refresh_token:z}),M.check(_(e=>{if(!URL.canParse(e))return!1;let t=new URL(e);return ye([`http:`,`https:`],t.protocol)&&t.username===``&&t.password===``&&t.hash===``},{expected:`an HTTP(S) URL without credentials or a fragment`})).check(_(e=>{if(!URL.canParse(e))return!1;let t=new URL(e);return t.pathname===`/`&&t.search===``},{expected:`an HTTP(S) origin without a path or query`})).check(_(e=>{if(!URL.canParse(e))return!1;let t=new URL(e);return t.protocol===`https:`||ye([`localhost`,`127.0.0.1`,`[::1]`],t.hostname)},{expected:`HTTPS outside loopback`})),M.check(T(/^\d{1,5}$/u),_(e=>y(b(e),e=>e>=1&&e<=65535),{expected:`a port between 1 and 65535`}));var pl=M.check(T(/^0\.1\.\d+$/u)),ml=ve({auth:w(M),name:M,traces:M,version:pl});ve({...fl.fields,signOut:me}),ve({config:ve({port:ge}),name:M,version:pl});function hl(e,t,n){return k(v(function*(){let r=`${yield*F}`,i={attributes:{"scope.run.started_unix_nano":r,"scope.runtime":n,"service.instance.id":r},serviceName:e};return N(ee(ce({exportInterval:`250 millis`,resource:i,url:new URL(`/v1/traces`,t).href}),pe({exportInterval:`250 millis`,resource:i,url:new URL(`/v1/logs`,t).href})),xe([P,S]))}))}function gl(e,t){let n=document.querySelector(`#root`);if(re(n))throw TypeError(`Missing application mount element with id "root"`);return{root:n,router:zi({context:{},defaultErrorComponent:ul,defaultNotFoundComponent:cl,defaultPreload:`intent`,getScrollRestorationKey:t,routeTree:e,scrollRestoration:!0})}}var _l=N(le({pingTimeout:`15 seconds`,retryTransientErrors:!0}),xe(N(I(ne(()=>`${location.origin}/api/rpc`)),xe(j))),d(R()));function vl(e){return g.addGlobalLayer(N(k(v(function*(){let t=yield*(yield*A).get(`/api/runtime`),n=yield*D(ml)(t);return n.traces===``?C:hl(`${e}-client`,n.traces,`web`)})),xe(S))),_l}function yl(e){V.useEffect(e,Hc)}var bl=V.createContext(void 0);function xl(){let e=V.useContext(bl);if(!e)throw Error(Cc(73));return e}var Sl=[],Cl=void 0;function wl(){return Cl}function Tl(e){Sl.push(e)}function El(e){let t=(t,n)=>{let r=tc(Ol).current,i;try{Cl=r;for(let e of Sl)e.before(r);i=e(t,n);for(let e of Sl)e.after(r);r.didInitialize=!0}finally{Cl=void 0}return i};return t.displayName=e.displayName||e.name,t}function Dl(e){return V.forwardRef(El(e))}function Ol(){return{didInitialize:!1}}var kl=Lr(),Al=zc(19)?Nl:Pl;function jl(e,t,n,r,i){return Al(e,t,n,r,i)}function Ml(e,t,n,r,i){let a=V.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,kl.useSyncExternalStore)(e.subscribe,a,a)}Tl({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,kl.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Nl(e,t,n,r,i){let a=wl();if(!a)return Ml(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],s.store===e&&s.selector===t&&Object.is(s.a1,n)&&Object.is(s.a2,r)&&Object.is(s.a3,i)||(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function Pl(e,t,n,r,i){return(0,zr.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Fl=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return jl(this,e,t,n,r)}},Il=class extends Fl{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){V.useDebugValue(e);let n=this;$(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;$(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;$(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){V.useDebugValue(e);let n=this,r=t!==void 0;$(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return V.useDebugValue(e),jl(this,this.selectors[e],t,n,r)}useContextCallback(e,t){V.useDebugValue(e);let n=ic(t??Vc);this.context[e]=n}useStateSetter(e){let t=V.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},Ll=0;function Rl(e){return Ll+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${Ll}`}var zl=0,Bl=class e{static create(){return new e}currentId=zl;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=zl,t()},e)}isStarted(){return this.currentId!==zl}clear=()=>{this.currentId!==zl&&(clearTimeout(this.currentId),this.currentId=zl)};disposeEffect=()=>this.clear};function Vl(){let e=tc(Bl.create).current;return yl(e.disposeEffect),e}function Hl(e,t){if(typeof e==`string`)return{description:e};if(typeof e==`function`){let n=e(t);return typeof n==`string`?{description:n}:n}return e}function Ul(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Wl,platform:Gl,maxTouchPoints:Kl}=Ul(),ql=Wl.toLowerCase(),Jl=Gl.toLowerCase(),Yl=/^i(os$|p)/.test(Jl)||Jl===`macintel`&&Kl>1,Xl=`android`,Zl=Jl===Xl||ql.includes(Xl),Ql=!Yl&&Jl.startsWith(`mac`);Jl.startsWith(`win`),!Zl&&/^(linux|chrome os)/.test(Jl);var $l=Ql||Yl,eu=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`),tu=!eu&&ql.includes(`firefox`);!eu&&ql.includes(`chrom`);var nu=$l,ru=/jsdom|happydom/.test(ql);function iu(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function au(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Fs(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function ou(e,t){let n=e;for(;n;){if(Ns(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(Fs(n)?n.host:null)}return null}function su(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var cu=`data-base-ui-focusable`,lu=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,uu=`ArrowLeft`,du=`ArrowRight`,fu=`ArrowUp`,pu=`ArrowDown`,mu=`data-starting-style`,hu=`data-ending-style`,gu={[mu]:``},_u={[hu]:``},vu={transitionStatus(e){return e===`starting`?gu:e===`ending`?_u:null}},yu=`data-popup-open`,bu=`data-pressed`,xu=`data-trigger-disabled`;function Su(e,t){if(!Ns(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(xu);for(let[,e]of t.entries())if(au(e,n))return!e.hasAttribute(xu);return!1}function Cu(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function wu(e){return e.matches(`html,body`)}function Tu(e){return Ps(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Eu(e){return ou(e,`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${lu}`)!=null}function Du(e){return e?e.getAttribute(`role`)===`combobox`&&Tu(e):!1}function Ou(e){if(!e||ru)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function ku(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Au(e){e.preventDefault(),e.stopPropagation()}function ju(e){return`nativeEvent`in e}function Mu(e){return e.pointerType===``&&e.isTrusted?!0:Zl&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Nu(e){return ru?!1:!Zl&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(Zl||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Pu(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Fu(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var Iu=Math.min,Lu=Math.max,Ru=Math.round,zu=Math.floor,Bu=e=>({x:e,y:e}),Vu={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Hu(e,t,n){return Lu(e,Iu(t,n))}function Uu(e,t){return typeof e==`function`?e(t):e}function Wu(e){return e.split(`-`)[0]}function Gu(e){return e.split(`-`)[1]}function Ku(e){return e===`x`?`y`:`x`}function qu(e){return e===`y`?`height`:`width`}function Ju(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Yu(e){return Ku(Ju(e))}function Xu(e,t,n){n===void 0&&(n=!1);let r=Gu(e),i=Yu(e),a=qu(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ad(o)),[o,ad(o)]}function Zu(e){let t=ad(e);return[Qu(e),t,Qu(t)]}function Qu(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var $u=[`left`,`right`],ed=[`right`,`left`],td=[`top`,`bottom`],nd=[`bottom`,`top`];function rd(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ed:$u:t?$u:ed;case`left`:case`right`:return t?td:nd;default:return[]}}function id(e,t,n,r){let i=Gu(e),a=rd(Wu(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Qu)))),a}function ad(e){let t=Wu(e);return Vu[t]+e.slice(t.length)}function od(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function sd(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:od(e)}function cd(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ld(e,t,n){return Math.floor(e/t)!==n}function ud(e,t){return t<0||t>=e.length}function dd(e,t){return md(e.current,{disabledIndices:t})}function fd(e,t){return md(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function pd(e,t,n){let{decrement:r,loopFocus:i,allowEscape:a,disabledIndices:o,minIndex:s,maxIndex:c}=n,l=()=>md(e,{startingIndex:t,decrement:r,disabledIndices:o}),u,d=!1;if(!i)u=r?Math.max(s,l()):Math.min(c,l());else if(r?t<=s:t>=c){let n=r?-1:e.length;a&&t!==n?u=-1:(u=r?c:s,d=!0)}else u=l();return{index:ud(e,u)?-1:u,wrapped:d}}function md(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&gd(e,a,r));return a}function hd(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=ou(e,`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h<e.length,y=_||o,b=o=>{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f<n.length;f+=1,o+=d){if(o<0||o>=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1),r=i(t,u,n[o][e]??n[o][0]);o=a[r]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!gd(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=zu(l/y)+1;for(let t=u-n+i,c=0;c<o;c+=1,t+=i){if(t<0||t>l){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!gd(e,r,s))return r}};d&&Au(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=md(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-y<c||f<0)){let e=u%y,n=l%y,r=l-(n-e);f=n===e?l:n>e?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=md(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}ud(e,f)&&(f=u)}if(n===`both`){let n=zu(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&Au(t),u%o===o-1?r&&(f=md(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=md(e,{startingIndex:u,disabledIndices:s}),r&&ld(f,o,n)&&(f=md(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),ld(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&Au(t),u%o===0?r&&(f=md(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=md(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&ld(f,o,n)&&(f=md(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),ld(f,o,n)&&(f=u));let c=zu(l/o)===n;ud(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:md(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function gd(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!vd(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function _d(e){return e.visibility===`hidden`||e.visibility===`collapse`}function vd(e,t=e?qs(e):null){return!e||!e.isConnected||!t||_d(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var yd=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function bd(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Fs(n)?n.host:null}function xd(e){for(let t of Array.from(e.children))if(Q(t)===`summary`)return t;return null}function Sd(e,t){let n=xd(t);return!!n&&(e===n||au(n,e))}function Cd(e){let t=e?Q(e):``;return e!=null&&e.matches(yd)&&(t!==`summary`||e.parentElement!=null&&Q(e.parentElement)===`details`&&xd(e.parentElement)===e)&&(t!==`details`||xd(e)==null)&&(t!==`input`||e.type!==`hidden`)}function wd(e){if(!Cd(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=bd(t)){let n=t!==e,r=Q(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Q(t)===`details`&&!t.open&&!Sd(e,t)||t.hasAttribute(`hidden`)||!r&&!Td(t,n))return!1}return!0}function Td(e,t){let n=qs(e);return t?n.display!==`none`:vd(e,n)}function Ed(e){let t=e.tabIndex;if(t<0){let t=Q(e);if(t===`details`||t===`audio`||t===`video`||Ps(e)&&e.isContentEditable)return 0}return t}function Dd(e){if(Q(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Od(e,t){let n=Dd(e);if(!n)return!0;let r=t.find(e=>{let t=Dd(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Dd(e);return t?.name===n.name&&t.form===n.form})===n}function kd(e){if(Ps(e)&&Q(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Ps(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Ad(e,t){kd(e).forEach(e=>{Cd(e)&&t.push(e),Ad(e,t)})}function jd(e,t,n){kd(e).forEach(e=>{Ps(e)&&e.matches(t)&&n.push(e),jd(e,t,n)})}function Md(e){return wd(e)&&Ed(e)>=0}function Nd(e){let t=[];return Ad(e,t),t.filter(wd)}function Pd(e){let t=Nd(e);return t.filter(e=>Ed(e)>=0&&Od(e,t))}function Fd(e,t){let n=Pd(e),r=n.length;if(r===0)return;let i=iu(Dc(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function Id(e){return Fd(Dc(e).body,1)||e}function Ld(e){return Fd(Dc(e).body,-1)||e}function Rd(e,t,n){if(!e)return null;let r=[];Ad(Dc(e).body,r);let i=r.indexOf(e);if(i===-1)return null;let a=r.filter(wd);for(let e=1;e<r.length;e+=1){let o=r[(i+t*e+r.length)%r.length];if(!au(n,o)&&Md(o)&&Od(o,a))return o}return r[i]}function zd(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!au(n,r)}function Bd(e){Pd(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Vd(e){let t=[];jd(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function Hd(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let a=e.transitionStatus===`ending`;t.set(e.id,{value:e,domIndex:i,visibleIndex:a?-1:n,offsetY:r}),r+=e.height||0,a||(n+=1)}),t}function Ud(e,t){let n=0;return e.map(e=>{if(e.transitionStatus===`ending`)return e;let r=n>=t;return n+=1,e.limited===r?e:{...e,limited:r}})}var Wd={toasts:e=>e.toasts,isEmpty:e=>e.toasts.length===0,toast:(e,t)=>e.toastMetadata.get(t)?.value,toastIndex:(e,t)=>e.toastMetadata.get(t)?.domIndex??-1,toastOffsetY:(e,t)=>e.toastMetadata.get(t)?.offsetY??0,toastVisibleIndex:(e,t)=>e.toastMetadata.get(t)?.visibleIndex??-1,focused:e=>e.focused,expanded:e=>e.hovering||e.focused,expandedOrOutOfFocus:e=>e.hovering||e.focused||!e.isWindowFocused,prevFocusElement:e=>e.prevFocusElement},Gd=class extends Il{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:Hd(e.toasts)},{},Wd)}setViewport=e=>{this.set(`viewport`,e)};syncProviderProps(e,t){let n=this.state.limit!==t;if(this.state.timeout===e&&!n)return;let r={timeout:e,limit:t};if(n){let e=Ud(this.state.toasts,t);r.toasts=e,r.toastMetadata=Hd(e)}this.update(r)}disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t=!1){let n=Wd.toastIndex(this.state,e);if(n===-1)return;let r=this.state.toasts[n];t||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||Rl(`toast`);if(e.id){let t=Wd.toast(this.state,e.id);if(t){if(t.transitionStatus===`ending`)this.removeToast(e.id,!0);else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,!0,!0),e.id}}}let i={...e,id:r,updateKey:0,transitionStatus:`starting`},a=[i,...this.state.toasts];this.setToasts(Ud(a,n));let o=i.timeout??t;return i.type!==`loading`&&o>0&&this.scheduleTimer(r,o,()=>this.closeToast(r)),Wd.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{let n=Wd.toast(this.state,e);n&&n.transitionStatus!==`ending`&&this.updateToastInternal(e,typeof t==`function`?t(n):t,!1,!0)};updateToastInternal=(e,t,n=!1,r=!1)=>{let{timeout:i,toasts:a}=this.state,o=Wd.toast(this.state,e);if(!o||o.transitionStatus===`ending`)return;let s={...o,...t,...r&&{updateKey:o.updateKey+1}};this.setToasts(a.map(t=>t.id===e?s:t));let c=s.timeout??i,l=o.timeout??i,u=Object.hasOwn(t,`timeout`),d=s.transitionStatus!==`ending`&&s.type!==`loading`&&c>0,f=this.timers.has(e),p=l!==c,m=o.type===`loading`;!d&&f?this.clearTimer(e):d&&(!f||p||u||m||n)&&(this.clearTimer(e),this.scheduleTimer(e,c,()=>this.closeToast(e)),Wd.expandedOrOutOfFocus(this.state)&&this.pauseTimers())};closeToast=e=>{let t=e===void 0,{limit:n,toasts:r}=this.state,i;if(t)i=r,this.clearTimers();else{let t=Wd.toast(this.state,e);if(!t)return;i=[t],this.clearTimer(e)}let a=Ud(r.map(n=>t||n.id===e?{...n,transitionStatus:`ending`,height:0}:n),n);this.setToasts(a,!a.some(e=>e.transitionStatus!==`ending`)),i.forEach(e=>{e.transitionStatus!==`ending`&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=Hl(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=Hl(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=Hl(t.error,e);return this.updateToast(r,{...n,type:`error`,timeout:n.timeout}),Promise.reject(e)});return{}.hasOwnProperty.call(t,`setPromise`)&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{e.timeout&&(e.timeout.clear(),e.remaining=Math.max(e.remaining-(Date.now()-e.start),0))}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=Bl.create(),e.timeout.start(e.remaining,()=>{this.handleTimerFired(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if(e.pointerType!==`touch`)return;let t=su(e);au(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=Wd.expandedOrOutOfFocus(this.state)?void 0:Bl.create();i?.start(t,()=>{this.handleTimerFired(e),n()}),this.timers.set(e,{timeout:i,start:r,delay:t,remaining:t,callback:n})}clearTimers(){this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(e){this.timers.get(e)?.timeout?.clear(),this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(e){this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){this.timers.size===0&&(this.areTimersPaused=!1)}setToasts(e,t=e.length===0){let n={toasts:e,toastMetadata:Hd(e)};t&&(n.hovering=!1,n.focused=!1),this.update(n)}handleFocusManagement(e){let t=iu(Dc(this.state.viewport));if(!this.state.viewport||!au(this.state.viewport,t)||!Ou(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let n=Wd.toasts(this.state),r=Wd.toastIndex(this.state,e),i=(e,t)=>{for(let r=e;r>=0&&r<n.length;r+=t)if(n[r].transitionStatus!==`ending`)return n[r];return null},a=i(r+1,1)??i(r-1,-1);a?a.ref?.current?.focus():this.restoreFocusToPrevElement()}},Kd=function(e){let{children:t,timeout:n=5e3,limit:r=3,toastManager:i}=e,a=tc(()=>new Gd({timeout:n,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return yl(a.disposeEffect),V.useEffect(function(){if(i)return i[` subscribe`](({action:e,options:t})=>{let n=t.id;e===`promise`&&t.promise?a.promiseToast(t.promise,t):e===`update`&&n?a.updateToast(n,t.updates):e===`close`?a.closeToast(n):a.addToast(t)})},[a,i]),(0,G.jsxs)(bl.Provider,{value:a,children:[(0,G.jsx)(qd,{store:a,timeout:n,limit:r}),t]})};function qd(e){let{store:t,timeout:n,limit:r}=e;return $(()=>{t.syncProviderProps(n,r)},[t,n,r]),null}function Jd(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Yd(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}var Xd={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Zd={...Xd,position:`fixed`,margin:0,top:0,left:0},Qd={...Xd,position:`absolute`},$d=V.forwardRef(function(e,t){let[n,r]=V.useState();$(()=>{nu&&eu&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,G.jsx)(`span`,{...e,ref:t,style:Zd,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})}),ef=`--toast-frontmost-height`,tf=V.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=xl(),c=Vl(),l=V.useRef(!1),u=V.useRef(!1),d=V.useRef(!1),f=s.useState(`isEmpty`),p=s.useState(`toasts`),m=s.useState(`focused`),h=s.useState(`expanded`),g=s.useState(`prevFocusElement`),_=p[0]?.height,v=p.some(e=>e.transitionStatus===`ending`),y=p.filter(e=>e.priority===`high`);V.useEffect(()=>{let e=s.state.viewport;if(!e||f)return;let t=As(e),n=Dc(e);function r(t){t.key===`F6`&&su(t)!==e&&(t.preventDefault(),s.set(`prevFocusElement`,iu(n)),e?.focus({preventScroll:!0}),s.pauseTimers(),s.set(`focused`,!0))}function i(e){su(e)===t&&(s.set(`isWindowFocused`,!1),s.pauseTimers())}function a(n){if(n.relatedTarget)return;let r=su(n),i=iu(Dc(e));r!==t&&au(e,r)&&Ou(i)||s.resumeTimers(),c.start(0,()=>s.set(`isWindowFocused`,!0))}return Yd(Jd(t,`keydown`,r),Jd(t,`blur`,i,!0),Jd(t,`focus`,a,!0),Jd(n,`pointerdown`,s.handleDocumentPointerDown,!0))},[s,c,f]);function b(e){l.current=!0;let t=e.relatedTarget===s.state.viewport?p.find(e=>e.transitionStatus!==`ending`&&!e.limited):void 0;t?t.ref?.current?.focus():s.restoreFocusToPrevElement()}function x(e){e.key===`Tab`&&e.shiftKey&&su(e.nativeEvent)===s.state.viewport&&(e.preventDefault(),s.restoreFocusToPrevElement())}function S(){s.state.toasts.some(e=>e.transitionStatus===`ending`)||d.current||!u.current||(s.set(`hovering`,!1),s.select(`expandedOrOutOfFocus`)||s.resumeTimers(),u.current=!1)}V.useEffect(S,[v,s]);function C(){s.pauseTimers(),s.set(`hovering`,!0),u.current=!1}function w(){u.current=!0,S()}function T(e){e.pointerType===`touch`&&(d.current=!0)}function E(e){e.pointerType===`touch`&&(d.current=!1,S())}function D(){l.current?l.current=!1:m||Ou(iu(Dc(s.state.viewport)))&&(s.set(`focused`,!0),s.pauseTimers())}function O(e){m&&!au(s.state.viewport,e.relatedTarget)&&(s.set(`focused`,!1),s.select(`expandedOrOutOfFocus`)||s.resumeTimers())}let ee={tabIndex:-1,role:`region`,"aria-live":`polite`,"aria-atomic":!1,"aria-relevant":`additions text`,"aria-label":`Notifications`,onMouseEnter:C,onMouseMove:C,onMouseLeave:w,onFocus:D,onBlur:O,onKeyDown:x,onClick:D,onPointerDown:T,onPointerUp:E,onPointerCancel:E,style:{[ef]:_?`${_}px`:void 0}},k={expanded:h},A=!f&&g&&(0,G.jsx)($d,{onFocus:b}),j=qc(`div`,e,{ref:[t,s.setViewport],state:k,props:[ee,o,{children:(0,G.jsxs)(V.Fragment,{children:[A,a,A]})}]});return(0,G.jsxs)(V.Fragment,{children:[A,j,!m&&y.length>0&&(0,G.jsx)(`div`,{style:Zd,children:y.map(e=>(0,G.jsxs)(`div`,{role:`alert`,"aria-atomic":!0,children:[(0,G.jsx)(`div`,{children:e.title}),(0,G.jsx)(`div`,{children:e.description})]},e.id))})]})});function nf(e){return zc(19)?e:e?`true`:void 0}var rf=V.createContext(void 0);function af(){let e=V.useContext(rf);if(!e)throw Error(Cc(66));return e}var of=null;globalThis.requestAnimationFrame;var sf=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||this.callbacks[t]!==null&&(this.callbacks[t]=null,--this.callbacksCount)}},cf=class e{static create(){return new e}static request(e){return sf.request(e)}static cancel(e){return sf.cancel(e)}currentId=of;request(e){this.cancel(),this.currentId=sf.request(()=>{this.currentId=of,e()})}cancel=()=>{this.currentId!==of&&(sf.cancel(this.currentId),this.currentId=of)};disposeEffect=()=>this.cancel};function lf(){let e=tc(cf.create).current;return yl(e.disposeEffect),e}function uf(e){return e==null?e:`current`in e?e.current:e}function df(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}var ff=e(n(),1),pf=null;function mf(e){if(!pf){let e=[];pf=e,queueMicrotask(()=>{pf=null,ff.flushSync(()=>{for(let t of e)t()})})}pf.push(e)}function hf(e,t=!1,n=!1){let r=lf();return ic((i,a=null)=>{r.cancel();let o=uf(e);if(o==null)return;let s=o,c=()=>{n?mf(()=>{a?.aborted||i()}):ff.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(df(s).map(e=>e.finished.then(Vc))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(df(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=mu;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}else r.request(l)})}function gf(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=ic(a),s=hf(r,n,i);V.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}var _f={style:{transition:`none`}},vf=`data-base-ui-click-trigger`,yf=`data-base-ui-swipe-ignore`,bf=`data-swipe-ignore`,xf=`[${yf}]`,Sf=`[${bf}]`,Cf={fallbackAxisSide:`none`},wf={fallbackAxisSide:`end`},Tf={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0};function Ef(e,t){let n=(t??As(e).getComputedStyle(e)).transform,r=0,i=0,a=1;if(n&&n!==`none`){let e=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(r=t[4],i=t[5],a=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(r=t[12],i=t[13],a=t[0])}}return{x:r,y:i,scale:a}}function Df(e,t,n){switch(e){case`up`:return-n;case`down`:return n;case`left`:return-t;case`right`:return t;default:return 0}}var Of=`--toast-index`,kf=`--toast-offset-y`,Af=`--toast-height`,jf=`--toast-swipe-movement-x`,Mf=`--toast-swipe-movement-y`,Nf=`data-swipe-direction`,Pf={...vu,swipeDirection(e){return e?{[Nf]:e}:null}},Ff=40,If=10,Lf=.5,Rf=1,zf=`${xf},${Sf}`,Bf=V.forwardRef(function(e,t){let{toast:n,render:r,className:i,swipeDirection:a=[`down`,`right`],style:o,...s}=e,c=n.positionerProps?.anchor!==void 0,l=[];c||(l=Array.isArray(a)?a:[a]);let u=l.length>0,d=xl(),[f,p]=V.useState(void 0),[m,h]=V.useState(!1),[g,_]=V.useState(!1),[v,y]=V.useState({x:0,y:0}),[b,x]=V.useState({x:0,y:0,scale:1}),[S,C]=V.useState(),[w,T]=V.useState(),[E,D]=V.useState(null),O=V.useRef(null),ee=V.useRef(void 0),k=V.useRef({x:0,y:0}),A=V.useRef({x:0,y:0,scale:1}),j=V.useRef(void 0),M=V.useRef(0),N=V.useRef(!1),P=V.useRef({x:0,y:0}),F=V.useRef(!1),te=V.useRef({x:0,y:0}),ne=V.useRef(null),re=V.useRef(null),ie=d.useState(`toastIndex`,n.id),I=d.useState(`toastVisibleIndex`,n.id),L=d.useState(`toastOffsetY`,n.id),ae=d.useState(`focused`),oe=d.useState(`expanded`);gf({open:n.transitionStatus!==`ending`,ref:O,onComplete(){n.transitionStatus===`ending`&&d.removeToast(n.id)}});let R=ic((e=!1)=>{let t=O.current;if(!t)return;let r=t.style.height;t.style.height=`auto`;let i=t.offsetHeight;t.style.height=r;function a(){d.updateToastInternal(n.id,{ref:O,height:i,transitionStatus:void 0})}e?ff.flushSync(a):a()});$(()=>{let e=ee.current;(n.transitionStatus===`starting`||e!==n.id)&&(e!==void 0&&(p(void 0),x({x:0,y:0,scale:1}),z({x:0,y:0})),ee.current=n.id,R())},[R,n.id,n.transitionStatus]);function z(e){te.current=e,y(e)}$(()=>()=>{re.current?.abort()},[]);function se(e,t){let n=e=>e>0?e**Lf:-(Math.abs(e)**Lf),r=e>0&&!l.includes(`right`)||e<0&&!l.includes(`left`),i=t>0&&!l.includes(`down`)||t<0&&!l.includes(`up`);return{x:r?n(e):e,y:i?n(t):t}}let B=ic(e=>{if(e.pointerId!==ne.current)return;ne.current=null,re.current?.abort(),re.current=null,h(!1),_(!1),D(null);let t=A.current;if(e.type===`pointercancel`||N.current){z({x:t.x,y:t.y}),p(void 0);return}let r=te.current,i=r.x-t.x,a=r.y-t.y,o;for(let e of l)if(Df(e,i,a)>Ff){o=e;break}o?(p(o),d.closeToast(n.id)):(z({x:t.x,y:t.y}),p(void 0))});function ce(e){if(e.button!==0||(e.pointerType===`touch`&&d.pauseTimers(),ou(su(e.nativeEvent),`button,a,input,textarea,[role="button"],${zf}`)))return;N.current=!1,j.current=void 0,M.current=0,ne.current=e.pointerId,k.current={x:e.clientX,y:e.clientY},P.current=k.current;let t=e.currentTarget,n=Ef(t);A.current=n,x(n),z({x:n.x,y:n.y}),d.set(`hovering`,!0),h(!0),_(!1),D(null),F.current=!0,re.current?.abort();let r=new AbortController;re.current=r;let i=Dc(t);i.addEventListener(`pointerup`,B,{signal:r.signal}),i.addEventListener(`pointercancel`,B,{signal:r.signal}),t.setPointerCapture?.(e.pointerId)}function le(e){if(e.pointerId!==ne.current)return;e.preventDefault(),F.current&&=(k.current={x:e.clientX,y:e.clientY},!1);let{clientY:t,clientX:n,movementX:r,movementY:i}=e;(i<0&&t>P.current.y||i>0&&t<P.current.y)&&(P.current={x:P.current.x,y:t}),(r<0&&n>P.current.x||r>0&&n<P.current.x)&&(P.current={x:n,y:P.current.y});let a=n-k.current.x,o=t-k.current.y,s=t-P.current.y,c=n-P.current.x,u=E;if(!g&&Math.sqrt(a*a+o*o)>=Rf){_(!0);let e=l.includes(`left`)||l.includes(`right`),t=l.includes(`up`)||l.includes(`down`);e&&t&&(u=Math.abs(a)>Math.abs(o)?`horizontal`:`vertical`,D(u))}let d;if(!j.current)u===`vertical`?o>0?d=`down`:o<0&&(d=`up`):u===`horizontal`?a>0?d=`right`:a<0&&(d=`left`):d=Math.abs(a)>=Math.abs(o)?a>0?`right`:`left`:o>0?`down`:`up`,d&&l.includes(d)&&(j.current=d,M.current=Df(d,a,o),p(d));else{let e=j.current,t=Df(e,c,s);t>Ff?(N.current=!1,p(e)):!(l.includes(`left`)&&l.includes(`right`))&&!(l.includes(`up`)&&l.includes(`down`))&&M.current-t>=If&&(N.current=!0)}let f=se(a,o),m=A.current.x,h=A.current.y,v=l.includes(`left`)||l.includes(`right`),y=l.includes(`up`)||l.includes(`down`);u!==`vertical`&&v&&(m+=f.x),u!==`horizontal`&&y&&(h+=f.y),z({x:m,y:h})}function ue(e){if(e.key===`Escape`){if(!O.current||!au(O.current,iu(Dc(O.current))))return;d.closeToast(n.id)}}V.useEffect(()=>{let e=O.current;if(!u||!e)return;function t(t){ne.current!==null&&au(e,su(t))&&t.preventDefault()}return Jd(e,`touchmove`,t,{passive:!1})},[u]);function de(){let e=v.x-b.x,t=v.y-b.y;return{transition:m?`none`:void 0,transform:m?`translateX(${v.x}px) translateY(${v.y}px) scale(${b.scale})`:void 0,[jf]:`${e}px`,[Mf]:`${t}px`}}let fe=n.priority===`high`,pe={role:fe?`alertdialog`:`dialog`,tabIndex:0,"aria-modal":!1,"aria-labelledby":S,"aria-describedby":w,"aria-hidden":fe&&!ae?!0:void 0,onPointerDown:u?ce:void 0,onPointerMove:u?le:void 0,onPointerUp:u?B:void 0,onPointerCancel:u?B:void 0,onKeyDown:ue,inert:nf(n.limited),style:{...de(),[Of]:n.transitionStatus===`ending`?ie:I,[kf]:`${L}px`,[Af]:n.height?`${n.height}px`:void 0}},me=V.useMemo(()=>({toast:n,setTitleId:C,setDescriptionId:T,recalculateHeight:R,visibleIndex:I,expanded:oe}),[n,C,T,R,I,oe]),he={transitionStatus:n.transitionStatus,expanded:oe,limited:n.limited||!1,type:n.type,swiping:m,swipeDirection:f},ge=qc(`div`,e,{ref:[t,O],state:he,stateAttributesMapping:Pf,props:[pe,s]});return(0,G.jsx)(rf.Provider,{value:me,children:ge})}),Vf=V.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{visibleIndex:o,expanded:s,recalculateHeight:c}=af(),l=V.useRef(null);return $(()=>{c();let e=l.current;if(!e||typeof ResizeObserver!=`function`||typeof MutationObserver!=`function`)return;let t=new ResizeObserver(()=>c(!0)),n=new MutationObserver(()=>c(!0));return t.observe(e),n.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>{t.disconnect(),n.disconnect()}},[c]),qc(`div`,e,{ref:[t,l],state:{expanded:s,behind:o>0},props:a})});function Hf(){let[,e]=V.useState({});return V.useCallback(()=>{e({})},[])}var Uf=0;function Wf(e,t=`mui`){let n=V.useRef(void 0),r=Hf(),i=e??n.current;return V.useEffect(()=>{n.current??(Uf+=1,n.current=`${t}-${Uf}`,e??r())},[e,t,r]),i}var Gf=$s.useId;function Kf(e,t){if(Gf!==void 0){let n=Gf();return e??(t?`${t}-${n}`:n)}return Wf(e,t)}function qf(e){return e==null||typeof e==`boolean`||e===``?!1:!Array.isArray(e)||e.some(qf)}function Jf(e){return V.isValidElement(e)&&qf(e.props.children)}function Yf(e,t,n){let{toast:r,setTitleId:i,setDescriptionId:a}=af(),o=n===`title`?i:a,s=t??(n===`title`?r.title:r.description);return{id:Kf(e),children:s,type:r.type,setId:o}}function Xf(e,t,n){let r=Jf(e);return $(()=>{if(r)return n(t),()=>{n(e=>e===t?void 0:e)}},[r,t,n]),r?e:null}var Zf=V.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{id:c,children:l,type:u,setId:d}=Yf(a,o,`description`);return Xf(qc(`p`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)}),Qf=V.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{id:c,children:l,type:u,setId:d}=Yf(a,o,`title`);return Xf(qc(`h2`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)}),$f=V.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,c=xl(),{toast:l,expanded:u}=af(),[d,f]=V.useState(!1),{getButtonProps:p,buttonRef:m}=kc({disabled:a,native:o}),h={type:l.type};return qc(`button`,e,{ref:[t,m],state:h,props:[{"aria-hidden":!u&&!d,onClick(){c.closeToast(l.id)},onFocus(){f(!0)},onBlur(){f(!1)}},s,p]})}),ep=V.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,{toast:c}=af(),l=c.actionProps?.children??s.children,{getButtonProps:u,buttonRef:d}=kc({disabled:a,native:o}),f={type:c.type},p=qc(`button`,e,{ref:[t,d],state:f,props:[s,c.actionProps,u,{children:l}]});return Jf(p)?p:null});function tp(e,t,n,r){let i=!1,a=!1,o=r??Uc;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function np(e,t,n){let r=n??Uc;return{reason:e,event:t??new Event(`base-ui`),...r}}var rp=`none`,ip=`trigger-press`,ap=`trigger-hover`,op=`trigger-focus`,sp=`outside-press`,cp=`item-press`,lp=`close-press`,up=`clear-press`,dp=`input-change`,fp=`input-clear`,pp=`input-press`,mp=`focus-out`,hp=`escape-key`,gp=`list-navigation`,_p=`keyboard`,vp=`pointer`,yp=`cancel-open`,bp=`sibling-open`,xp=`imperative-action`;function Sp(e){return`data-base-ui-${e}`}var Cp=V.createContext(null),wp=()=>V.useContext(Cp),Tp=Sp(`portal`);function Ep(e={}){let{ref:t,container:n,componentProps:r=Uc,elementProps:i}=e,a=Kf(),o=wp()?.portalNode,[s,c]=V.useState(null),[l,u]=V.useState(null),d=ic(e=>{e!==null&&u(e)}),f=V.useRef(null);$(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(Ms(n)?n:n.current))??o??document.body;e==null?f.current&&(f.current=null,u(null),c(null)):f.current!==e&&(f.current=e,u(null),c(e))},[n,o]);let p=qc(`div`,r,{ref:[t,d],props:[{id:a,[Tp]:``},i]}),m=s&&p?ff.createPortal(p,s):null;return{node:l,nodeId:V.isValidElement(p)?p.props.id:void 0,subtree:m}}var Dp=V.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,portalOwnerRole:s,...c}=e,{node:l,nodeId:u,subtree:d}=Ep({container:o,ref:t,componentProps:e,elementProps:c}),f=V.useRef(null),p=V.useRef(null),m=V.useRef(null),h=V.useRef(null),[g,_]=V.useState(null),v=V.useRef(!1),y=g?.modal,b=g?.open,x=!!g&&!g.modal&&g.open&&!!l;V.useEffect(()=>{if(!l||y)return;function e(e){l&&e.relatedTarget&&zd(e)&&(e.type===`focusin`?v.current&&=(Vd(l),!1):(Bd(l),v.current=!0))}return Yd(Jd(l,`focusin`,e,!0),Jd(l,`focusout`,e,!0))},[l,y]),$(()=>{l&&b===!0&&v.current&&(Vd(l),v.current=!1)},[b,l]);let S=V.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,G.jsxs)(V.Fragment,{children:[d,(0,G.jsxs)(Cp.Provider,{value:S,children:[x&&l&&(0,G.jsx)($d,{"data-type":`outside`,ref:f,onFocus:e=>{zd(e,l)?m.current?.focus():Ld(g?g.domReference:null)?.focus()}}),x&&l&&(0,G.jsx)(`span`,{role:s,"aria-owns":u,style:Tf}),l&&ff.createPortal(a,l),x&&l&&(0,G.jsx)($d,{"data-type":`outside`,ref:p,onFocus:e=>{zd(e,l)?h.current?.focus():(Id(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,tp(`focus-out`,e.nativeEvent)))}})]})]})}),Op=V.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=Ep({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,G.jsxs)(V.Fragment,{children:[l,c&&ff.createPortal(n,c)]})}),kp=V.forwardRef(function(e,t){return(0,G.jsx)(Op,{ref:t,...e})});function Ap(){let e=xl(),t=e.useState(`toasts`);return V.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function jp(){let e=new Set;function t(t){e.forEach(e=>e(t))}return{" subscribe":function(t){return e.add(t),()=>{e.delete(t)}},add(e){let n=e.id||Rl(`toast`);return t({action:`add`,options:{...e,id:n,transitionStatus:`starting`}}),n},close(e){t({action:`close`,options:{id:e}})},update(e,n){t({action:`update`,options:{id:e,updates:n}})},promise(e,n){let r=e;return t({action:`promise`,options:{...n,promise:e,setPromise(e){r=e}}}),r}}}var Mp=jp();function Np(e){let t=(0,K.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(Kd,{...n}),t[2]=n,t[3]=r),r}function Pp(e){let t=(0,K.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(kp,{"data-slot":`toast-portal`,...n}),t[2]=n,t[3]=r),r}function Fp(e){let t=(0,K.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=Z(`pointer-events-none fixed inset-x-4 bottom-4 z-50 mx-auto w-auto max-w-sm outline-none sm:right-4 sm:left-auto sm:mx-0 sm:w-full`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(tf,{"data-slot":`toast-viewport`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ip(e){let t=(0,K.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=Z(`group/toast pointer-events-auto absolute right-0 bottom-0 z-[calc(1000-var(--toast-index))] w-full origin-bottom rounded-md border bg-popover text-popover-foreground shadow-lg will-change-transform outline-none select-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50`,`[--gap:0.75rem] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)*-1+calc(var(--toast-index)*var(--gap)*-1)+var(--toast-swipe-movement-y))] [--peek:0.75rem] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))]`,`h-(--height) [transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--peek))-(var(--shrink)*var(--height))))_scale(var(--scale))] [transition:transform_500ms_cubic-bezier(0.22,1,0.36,1),opacity_500ms,height_150ms]`,`after:absolute after:top-full after:left-0 after:h-[calc(var(--gap)+1px)] after:w-full after:content-['']`,`data-expanded:h-(--toast-height) data-expanded:[transform:translateX(var(--toast-swipe-movement-x))_translateY(var(--offset-y))]`,`data-limited:opacity-0 data-starting-style:[transform:translateY(150%)]`,`[&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(150%)]`,`data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]`,`data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]`,`data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]`,`data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]`,`data-expanded:data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]`,`data-expanded:data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]`,`data-expanded:data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]`,`data-expanded:data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(Bf,{"data-slot":`toast`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Lp(e){let t=(0,K.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=Z(`flex h-full items-center gap-3 overflow-hidden p-4 transition-opacity duration-250 ease-[cubic-bezier(0.22,1,0.36,1)] data-behind:opacity-0 data-expanded:opacity-100`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(Vf,{"data-slot":`toast-content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Rp(e){let t=(0,K.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=Z(`text-sm font-medium`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(Qf,{"data-slot":`toast-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function zp(e){let t=(0,K.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=Z(`text-sm text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(Zf,{"data-slot":`toast-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Bp({className:e,render:t=(0,G.jsx)(nl,{variant:`outline`,size:`sm`}),...n}){return(0,G.jsx)(ep,{"data-slot":`toast-action`,render:t,className:Z(`shrink-0`,e),...n})}function Vp({className:e,children:t,render:n=(0,G.jsx)(nl,{variant:`ghost`,size:`icon-sm`}),...r}){return(0,G.jsx)($f,{"data-slot":`toast-close`,"aria-label":`Close toast`,render:n,className:Z(`relative shrink-0 text-muted-foreground after:absolute after:-inset-2 after:content-[''] hover:text-foreground`,e),...r,children:t??(0,G.jsx)(Ka,{"aria-hidden":`true`})})}function Hp(e){let t=(0,K.c)(7),{type:n}=e,r=null;if(n===`success`){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(Pa,{"aria-hidden":`true`}),t[0]=e):e=t[0],r=e}if(n===`info`){let e;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(Wa,{"aria-hidden":`true`}),t[1]=e):e=t[1],r=e}if(n===`warning`){let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(Ha,{"aria-hidden":`true`}),t[2]=e):e=t[2],r=e}if(n===`error`){let e;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(Ba,{className:`text-destructive`,"aria-hidden":`true`}),t[3]=e):e=t[3],r=e}if(n===`loading`){let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(Ia,{className:`animate-spin`,"aria-hidden":`true`}),t[4]=e):e=t[4],r=e}if(!r)return null;let i;return t[5]===r?i=t[6]:(i=(0,G.jsx)(`span`,{"data-slot":`toast-icon`,className:`shrink-0 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4`,children:r}),t[5]=r,t[6]=i),i}function Up(){let e=(0,K.c)(2),{toasts:t}=Ap(),n;return e[0]===t?n=e[1]:(n=t.map(Wp),e[0]=t,e[1]=n),n}function Wp(e){return(0,G.jsx)(Ip,{toast:e,children:(0,G.jsxs)(Lp,{children:[(0,G.jsx)(Hp,{type:e.type}),(0,G.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,G.jsx)(Rp,{}),(0,G.jsx)(zp,{})]}),(0,G.jsx)(Bp,{}),(0,G.jsx)(Vp,{})]})},e.id)}function Gp(e){let t=(0,K.c)(9),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({children:n,toastManager:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?Mp:i,o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,G.jsx)(Pp,{children:(0,G.jsx)(Fp,{children:(0,G.jsx)(Up,{})})}),t[4]=o):o=t[4];let s;return t[5]!==n||t[6]!==r||t[7]!==a?(s=(0,G.jsxs)(Np,{toastManager:a,...r,children:[n,o]}),t[5]=n,t[6]=r,t[7]=a,t[8]=s):s=t[8],s}var Kp=Fi({shellComponent:e=>(0,G.jsxs)(`div`,{className:`bg-background text-foreground safe-area flex h-dvh w-dvw flex-col`,children:[(0,G.jsx)(ha,{}),(0,G.jsx)(_a,{}),(0,G.jsx)(Gp,{children:e.children})]})}),qp=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),Jp=function(e){return`/`+e},Yp={},Xp=function(e){return e.pathname.endsWith(`.css`)},Zp=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},Qp=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=Jp(t,n);let r=s(t),i=Xp(r);return Zp(Yp,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`:qp,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)})},$p={homeIndexRoute:Ii(`/(home)/`)({component:Li(()=>Qp(()=>import(`./(home)-B30r1vMZ.js`),__vite__mapDeps([0,1,2,3])),`component`)}).update({id:`/(home)/`,path:`/`,getParentRoute:()=>Kp})},em=gl(Kp._addFileChildren($p)._addFileTypes());(0,qa.createRoot)(em.root).render((0,G.jsx)(V.StrictMode,{children:(0,G.jsx)(la,{router:em.router})}));export{pd as $,Ka as $n,Zl as $t,Cf as A,$ as An,Eu as At,Qd as B,Ys as Bn,mu as Bt,ip as C,Mc as Cn,Pu as Ct,Hf as D,Tc as Dn,Au as Dt,Kf as E,Dc as En,Nu as Et,cf as F,js as Fn,Ou as Ft,Ld as G,Ks as Gn,cu as Gt,Jd as H,Us as Hn,uu as Ht,lf as I,Qs as In,yu as It,Md as J,Ls as Jn,au as Jt,Rd as K,Is as Kn,iu as Kt,nf as L,Q as Ln,bu as Lt,gf as M,tc as Mn,Su as Mt,hf as N,qs as Nn,Du as Nt,vf as O,Cc as On,ku as Ot,uf as P,Ws as Pn,Tu as Pt,dd as Q,Qa as Qn,eu as Qt,$d as R,Js as Rn,vu as Rt,ap as S,Vc as Sn,Fu as St,np as T,Oc as Tn,Mu as Tt,Nd as U,Ns as Un,du as Ut,Yd as V,As as Vn,pu as Vt,Id as W,Ps as Wn,fu as Wt,hd as X,Gs as Xn,ru as Xt,Pd as Y,Rs as Yn,su as Yt,fd as Z,Z as Zn,tu as Zt,rp as _,Zc as _n,Ju as _t,yp as a,El as an,Uu as at,bp as b,Hc as bn,cd as bt,hp as c,vl as cn,Yu as ct,dp as d,ll as dn,Zu as dt,Yl as en,Ma as er,vd as et,fp as f,rl as fn,Ku as ft,gp as g,nl as gn,Wu as gt,_p as h,al as hn,sd as ht,Sp as i,Il as in,Bu as it,wf as j,ic as jn,wu as jt,_f as k,lc as kn,Cu as kt,mp as l,dl as ln,Xu as lt,cp as m,il as mn,ad as mt,Dp as n,Bl as nn,gd as nt,up as o,Dl as on,zu as ot,pp as p,ol as pn,id as pt,zd as q,Fs as qn,ou as qt,wp as r,Vl as rn,Hu as rt,lp as s,yl as sn,Gu as st,Mp as t,Ql as tn,Lr as tr,ud as tt,xp as u,ul as un,qu as ut,sp as v,qc as vn,Lu as vt,tp as w,kc as wn,ju as wt,op as x,Uc as xn,Ru as xt,vp as y,Kc as yn,Iu as yt,Zd as z,Zs as zn,hu as zt};
3
+ \r`.includes(e)?``:encodeURIComponent(e))),an(e)}function sn(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=un(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[en];i=cn(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[en];i=cn(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[en]!==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 cn(e,t){let n=dn();return{...t,key:n,__TSR_key:n,[en]:e}}function ln(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=>on(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>un(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=dn();t.history.replaceState({[en]: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=un(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[en]-l.state[en],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=sn({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(nn,x,{capture:!0}),t.removeEventListener(tn,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(nn,x,{capture:!0}),t.addEventListener(tn,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 un(e,t){let n=on(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=dn();t={[en]: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 dn(){return(Math.random()+1).toString(36).slice(7)}function fn(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function pn(e){return e.pathname+e.search+e.hash}function mn(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function hn(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function gn({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function _n(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function vn(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 yn=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:ln()),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!==`/`&&Xe(n)?Xt(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=$t(this.latestLocation,e),Vt(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=yt(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&ht(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:st(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:Ue(e),external:!1,searchStr:o,search:Oe(t?.search,i),hash:Ue(r.slice(1)),state:ke(t?.state,a)}}let o=Zt(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:Ue(an(o.pathname)),external:!!this.rewrite&&fn(o,this.origin),searchStr:c,search:Oe(t?.search,s),hash:Ue(o.hash.slice(1)),state:ke(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=vt(Ye(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=un(n.href,{});n={...n,to:Zt(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=Qe(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),l=this.routesByPath[Ye(c)],u=c.includes(`$`),d;if(l)d=l._branch??=St(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??ft(!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??=wn(n.params,e),!Ee(p))break;p===e&&(p=Object.assign(De(),p));try{Object.assign(p,t(p))}catch{}}}p??=wn(n.params,Tn(n.params,f)?o()[3]:En);let m=e.leaveParams?c:an(Ue(f?nt(c,f,p,this.pathParamsDecoder):c)),h=Dn(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,Cn(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},_=h.length?On(h,g(),n):n.search===!0?g():typeof n.search==`function`?n.search(g()):n.search||En,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:En,S=`${m}${v}${b}`,C,w,T=!1;if(this.rewrite){let e=new URL(S,this.origin),t=e.origin,n=Qt(this.rewrite,e);C=pn(e),fn(n,t)?(w=n.href,T=!0):w=an(pn(n))}else C=We(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=gt(r.pathname,this.processedTree);if(t){let i=Object.assign(De(),t.rawParams),{from:a,params:o,...s}=t.route,c=wn(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 bn(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=Ye(this.latestLocation.href)===Ye(n.href)&&je(gn(n.state),gn(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?Le(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 bn(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 br(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(hn(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`)&&mn(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(Re.test(n)||(r=Le(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:fn(e,this.origin)||(n=pn(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=Nn,this.preloadRoute=e=>xr(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?Qe(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=_t(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!je(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?je(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=$e(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??qt,parseSearch:e.parseSearch??Kt,protocolAllowlist:e.protocolAllowlist??Ie}),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=ft(!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[`**`]:Ye(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?kn(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=Cn(i.options.validateSearch,{...n})??void 0;l={...n,...e},f={...r,...e}}catch(e){let r=e;if(e instanceof xn||(r=new xn(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=De(),_=i._interpolation?nt(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{An(i,d)}catch(e){if(x=rt(e)||ot(e)?e:new Sn(e.message,{cause:e}),t?.throwOnError)throw x}let S=y?`stay`:`enter`,C;if(b)C={...b,cause:S,search:Oe(y?y.search:b.search,l),_strictSearch:f,searchError:p};else{let e=mn(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?Oe(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?ke(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`?Oe(n.params,d):d,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=Ce(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=Ce(a),c={...e.search};for(let e of a)try{Object.assign(c,Cn(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{An(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}};async function bn(e,t,{replace:n,ignoreBlocker:r}){if(!ze(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 xn=class extends Error{},Sn=class extends Error{};function Cn(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new xn(`Async validation not supported`);if(n.issues)throw new xn(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 wn(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 Tn(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!Te.call(e,t[1]))}var En=Object.freeze({});function Dn(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=Cn(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 On(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=we(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 kn(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 it}function An(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function jn(e,t){return e.options[t]?.preload?.()}function Mn(e,t){let n=jn(e,`component`),r=jn(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function Nn(e,t,n){let r=()=>t===!1?void 0:t?jn(e,t):Mn(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 Pn(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function Fn(e,t,n){let r=e._tx;return t&&r?.[2]===n&&!r[3].some(e=>e.routeId===t)}function In(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 Ln=0,Rn=1,zn=2,U=3,Bn=[4];function Vn(e){return typeof e[0]==`number`}function Hn(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 Un(e,t){return e.routesById[t.routeId]}function Wn(e,t,n){return ot(e)?[U,e]:rt(e)?(e.routeId||=n,[zn,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[Rn,e]):[Ln,e]}function Gn(e,t){let n=Wn(t,!0,e.id);if(n[0]!==Rn)return n;try{e.options.onError?.(n[1])}catch(t){n=Wn(t,!0,e.id)}return n}function Kn(e,t,n,r,i){return i[0].signal.aborted?Bn:sr(e,t,n,Gn(n,r),i)}async function qn(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=Un(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 Yn(e,r),[i,Kn(e,t,u,a,n)]}if(c.aborted)return[i,Bn];let p=r.paramsError??r.searchError;if(p!==void 0)return Yn(e,r),[i,Kn(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{Zn(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?Hn(a,c):a);if(c.aborted)return[i,Bn];let s=sr(e,t,u,Wn(o,!1,u.id),n);if(s[0]!==Ln)return Yn(e,r),[i,s];r.context={...r.context,...o}}catch(a){return Yn(e,r),[i,Kn(e,t,u,a,n)]}finally{r.status=h,Zn(e,r,!1,n[0])}}i()}function Jn(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 Yn(e,t){let n=t._flight;t._flight=void 0,Jn(e,t,n)?.abort()}function W(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=Jn(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function Xn(e){for(let t of e){let e=t._flight;e&&e[2]++}}function Zn(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 Qn(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 $n(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return Bn;if(!i)return[Ln,void 0];let l=n._flight;Zn(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(Qn(e,t,n,r,s,a,!!o[3]))).then(e=>Wn(e,!1,r.id),e=>Wn(e,!0,r.id)).then(t=>(t[0]!==Ln&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===Rn&&l[2]?Gn(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],sr(e,t,r,await Hn(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return Yn(e,n),Bn}finally{Zn(e,n,!1,s)}}function er(e,t,n){t[0]!==U&&(e.status=`success`,e.error=void 0,t[0]===Ln?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function tr(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&&Yn(e,r)}function nr(e,t){return t[0]===Rn||t[0]===zn?{...e,status:t[0]===Rn?`error`:`notFound`,error:t[1],_flight:void 0}:e}function rr(e,t,n,r,i,a,o){let s=t[1][n],c=Un(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(Qn(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=Bn)),!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,Yn(e,s),p=Kn(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,Jn(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?$n(e,t,s,c,g,i,a).then(t=>(er(s,t,l),t[0]===Ln&&(m&&!a[0].signal.aborted&&tr(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[Ln,s.loaderData]),T=(async()=>{try{let e=Nn(c,void 0,C);e&&await Hn(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,Kn(e,t,c,r,a)]}let r=await w;x&&r[0]===Ln&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,T]),!y)return w.then(e=>nr(s,e));let E={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let D=$n(e,t,E,c,g,i,a).then(e=>(s.isFetching=!1,er(E,e,!1),e));return(t[2]??=[]).push([n,D,T,E]),D.then(e=>nr(E,e))}async function ir(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=Un(e,t[n]);try{let e=Nn(i,!1);e&&await Hn(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function ar(e,t){t[2]&&=(W(e,t[2].map(e=>e[3])),void 0)}async function or(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]>=U)throw[a,t];!i&&t[0]!==Ln&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===U)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function sr(e,t,n,r,i,a){for(;r[0]===U;){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]?[U,t]:[U,t,a]}return[U,o,n]}catch(e){r=a?[Rn,e]:Gn(n,e),a=!0}}return r}async function cr(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]===zn?ir(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=U)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]!==Ln&&t[0]<U&&!(`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)>=U){let n=s[1];if(n[0]!==U||n[1].options.reloadDocument||n[2])return ar(e,t),n;c=!0,s=[0,[Rn,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===Rn?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=Un(e,u);try{await Hn(i?Promise.resolve().then(()=>Nn(m,l===Rn?`errorComponent`:`notFoundComponent`)):Promise.all([Nn(m),Nn(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return ar(e,t),Bn}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),ar(e,t),W(e,o),p()):u.status=`success`}return t}async function lr(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=Un(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 Hn(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 ur(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 ir(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=rr(e,i,t,u,f,r,l)},m=await qn(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===zn){let t=await ir(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=U&&(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=cr(e,i,u,r[0],or(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=or(i[2],void 0,void 0,h.then(e=>Vn(e)?0:Pn(n).length,()=>0))),o=await h}catch(t){if(ar(e,i),t===a&&a.aborted)return Bn;throw t}return Vn(o)?o:lr(e,o,a,r[6]===n.length?r[6]:0)}function dr(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=Un(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(()=>dr(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 fr(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 pr(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!Pn(t[3]).some(e=>e.id===n[1]))return;let i;try{await Hn(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function mr(e,t){e._committed=t,e.stores.setMatches(t)}function hr(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=Pn(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=Un(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=_n(n);mr(e,n),W(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),vn(e,i,n,a,l,t)}async function gr(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function _r(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 vr(e,t,n,r,i){let a=n.map(e=>({...e}));Xn(a);for(let t of r)Yn(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await cr(e,o,r,t[0],i)}catch(t){throw W(e,a),t}if(Vn(s))W(e,a),s[0]===U&&e._tx===t&&e._committed===n&&await _r(e,t,s);else if(await lr(e,s,t[0].signal),e._tx!==t||e._committed!==n)W(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),Yn(e,n))}mr(e,a),W(e,n,a)}}async function yr(e,t,n,r,i,a){let o=await ur(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(Vn(o)){let n=o[0]===U&&e._tx===t;if((!n||o[1].options.reloadDocument)&&fr(e,t),W(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){fr(e,t);return}await _r(e,t,o);return}let s=o[1];if(e._tx===t&&await pr(e,t),e._tx!==t){fr(e,t),W(e,s),ar(e,o);return}let c=t[2],l=hn(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await pr(e,t),e._tx!==t){fr(e,t),W(e,s),ar(e,o);return}let n=await e.startTransition(()=>{fr(e,t),hr(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&&vr(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)):ar(e,o)})}async function br(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=hn(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await gr(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});Xn(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){W(e,m),await gr(e,n);return}e._preflight=void 0;let g,_=()=>yr(e,y,f,()=>dr(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(()=>gr(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&Zn(e,t,!1)}n[0].abort(),W(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))&&dr(e,y),g?.(_()),await y[5]):(W(e,y[3]),y[3]=[],g?.(),await gr(e,y))}async function xr(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}),Xn(a),o=(e._preloads??=new Map).set(i,a),s=await ur(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),W(e,a)),i.abort()}if(!Vn(s))return s[1];if(!o||s.length<3)return;n=s[2]}catch(e){rt(e)||console.error(e);return}}}var Sr=`Error preloading route! ☝️`;function Cr(e,t){if(e)return typeof e==`string`?e:e[t]}function wr(e){return e?.scriptFormat??`module`}function Tr(e,t,n){let r=Er(t),i=Cr(n,`script`)??r.crossOrigin;return{...wr(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,fetchPriority:`low`,...i?{crossOrigin:i}:{}}}function Er(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function Dr(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 Or(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function kr(e,t,n,r){let i=In(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 Ar([e,t],n){return n?[...n.before,...e,...t,n.boundary]:[...e,...t]}var jr=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=it:this.parentRoute||Ke();let r=n?it:t?.path;r&&r!==`/`&&(r=Je(r));let i=t?.id||r,a=n?it:qe((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:qe(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=Ye(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=>at({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.`)}},Mr=class extends jr{constructor(e){super(e)}};function Nr(e,t){let n=e.stores.location,r=new Set,i,a,o=n=>{Fn(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 Pr=V.createContext(void 0),Fr=V.createContext(void 0),Ir=t((e=>{var t=o();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,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,l=r[1];return s(function(){o.value=n,o.getSnapshot=t,u(o)&&l({inst:o})},[e,n,t]),a(function(){return u(o)&&l({inst:o}),e(function(){u(o)&&l({inst:o})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Lr=t(((e,t)=>{t.exports=Ir()})),Rr=t((e=>{var t=o(),n=Lr();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,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!a){if(a=!0,s=e,e=r(e),o!==void 0&&f.hasValue){var t=f.value;if(o(t,e))return c=t}return c=e}if(t=c,i(s,e))return t;var n=r(e);return o!==void 0&&o(t,n)?(s=e,t):(s=e,c=n)}var a=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,o]);var p=a(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),zr=t(((e,t)=>{t.exports=Rr()}))();function Br(e,t){return e===t}function Vr(e,t=e=>e,n){let r=n?.compare??Br,i=(0,V.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,V.useCallback)(()=>e.get(),[e]);return(0,zr.useSyncExternalStoreWithSelector)(i,a,a,t,r)}function Hr({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 Ur(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 Wr=[],Gr=0,{link:Kr,unlink:qr,propagate:Jr,checkDirty:Yr,shallowPropagate:Xr}=Hr({update(e){return e._update()},notify(e){Wr[Qr++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,ni(e))}}),Zr=0,Qr=0,$r,ei=0;function ti(e){try{++ei,e()}finally{--ei||ri()}}function ni(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=qr(n,e)}function ri(){if(!(ei>0)){for(;Zr<Qr;){let e=Wr[Zr];Wr[Zr++]=void 0,e.notify()}Zr=0,Qr=0}}function ii(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 $r!==void 0&&Kr(i,$r,Gr),i._snapshot},subscribe(e){let t=Ur(e),n={current:!1},r=ai(()=>{i.get(),n.current?($r=void 0,t.next?.(i._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=$r,o=t?.compare??Object.is;if(n)$r=i,++Gr,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{$r=a,n&&(i.flags&=-5),ni(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&Yr(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Xr(e)}}else e&32&&(i.flags=e&-33);return $r!==void 0&&Kr(i,$r,Gr),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Jr(e),Xr(e),ri())}},i}function ai(e){let t=()=>{let t=$r;$r=n,++Gr,n.depsTail=void 0,n.flags=6;try{return e()}finally{$r=t,n.flags&=-5,ni(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&&Yr(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,ni(this)}};return t(),n}var oi={};function si(e,t){let n=V.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=ke(n.current,i):i}}function ci(e){let t=H(),n=V.useContext(e.from?Fr:Pr),r=e.from??n,i=t.stores.getMatchStore(r),a=si(e,t),o=Vr(i,e=>e?a(e):oi);if(o!==oi)return o;(e.shouldThrow??!0)&&Ke()}function li(e){return ci({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function ui(e){let{select:t,...n}=e;return ci({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function di(e){return ci({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 fi(e){return ci({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}var pi=V.use,mi=V.useLayoutEffect;function hi(e){let t=H();return V.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function gi(e){return ci({...e,select:t=>e.select?e.select(t.context):t.context})}var G=i();function _i(...e){let t=V.useRef(e),n=t.current;return e.forEach((e,t)=>{je(n[t],e,!1,!0)||(n[t]=e)}),t.current}function vi(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(Sr)})}function yi(e,t){let n=typeof e==`string`&&Le(e);if(n)return t.has(n)?e:null}function bi(e,t,n,r){let i=Ze(e.pathname,r),a=Ze(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!je(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function xi(e,t,n){let r=H(),i=V.useRef(null),a=V.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]=_i(e.search,e.params,o),x=V.useContext(Pr),S=(r.stores._linkScopes??={})[x]??=Nr(r,x),[C,w,T]=V.useMemo(()=>{let t=yi(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=ki(t,r,u),s=u||o&&!Le(o)?bi(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]=V.useSyncExternalStore(S[1],w,T||w),O=D===void 0&&E,ee=u||E===void 0,k=V.useRef(!1),A=e.reloadDocument||O||ee?!1:c??r.options.defaultPreload,j=l??r.options.defaultPreloadDelay??0,M=V.useCallback(e=>{let t=e?.isIntersecting;t??A===`intent`?j?i.t??=setTimeout(()=>{i.t=void 0,vi(r,C)},j):vi(r,C):t===!1&&Di(i)},[r,C,i,A,j]);V.useEffect(()=>{if(!A)return;A===`render`&&!k.current&&(k.current=!0,vi(r,C));let e=!0,t;return A===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&M(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),Di(i)}},[r,C,A,M,i]);let N=Ti(e,n);if(N.ref=t?a:i,O)return N.href=O,N;let P=t=>{let n=d??t.currentTarget.getAttribute(`target`);ee||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),Di(i),r.navigate({...e,_fromLocation:C._fromLocation}))},F=()=>{A===`intent`&&vi(r,C)},te=()=>{A===`intent`&&Di(i)};return N.onClick=Oi(f,P),N.onBlur=Oi(p,te),N.onFocus=Oi(m,M),N.onMouseEnter=Oi(h,M),N.onMouseLeave=Oi(g,te),N.onTouchStart=Oi(_,F),Ei(N,e,D,E,ee,n)}var Si={},Ci={className:`active`},wi=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 Ti(e,t){let n={};for(let r in e)wi.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function Ei(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=we(n?o:s,{})??(n?Ci:Si);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 Di=e=>{clearTimeout(e.t),e.t=void 0},Oi=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function ki(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||!ze(i,t.protocolAllowlist))return i}var Ai=V.memo(V.forwardRef((e,t)=>{let n=e._asChild||`a`,r=xi(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return V.createElement(n,r,i)}),ji);function ji(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!wi.has(r)||!je(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var Mi=class extends jr{constructor(e){super(e),this.useMatch=e=>ci({...e,from:this.id}),this.useRouteContext=e=>gi({...e,from:this.id}),this.useSearch=e=>fi({...e,from:this.id}),this.useParams=e=>di({...e,from:this.id}),this.useLoaderDeps=e=>ui({...e,from:this.id}),this.useLoaderData=e=>li({...e,from:this.id}),this.useNavigate=()=>hi({from:this.fullPath}),this.Link=V.forwardRef((e,t)=>(0,G.jsx)(Ai,{ref:t,from:this.fullPath,...e}))}};function Ni(e){return new Mi(e)}var Pi=class extends Mr{constructor(e){super(e),this.useMatch=e=>ci({...e,from:this.id}),this.useRouteContext=e=>gi({...e,from:this.id}),this.useSearch=e=>fi({...e,from:this.id}),this.useParams=e=>di({...e,from:this.id}),this.useLoaderDeps=e=>ui({...e,from:this.id}),this.useLoaderData=e=>li({...e,from:this.id}),this.useNavigate=()=>hi({from:this.fullPath}),this.Link=V.forwardRef((e,t)=>(0,G.jsx)(Ai,{ref:t,from:this.fullPath,...e}))}};function Fi(e){return new Pi(e)}function Ii(e){return e=>{let t=Ni(e);return t.isRoot=!1,t}}function Li(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(Me(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(pi)pi(a());else throw a()}return V.createElement(r,e)};return o.preload=a,o}var Ri=e=>({createMutableStore:ii,createReadonlyStore:ii,batch:ti}),zi=e=>new Bi(e),Bi=class extends yn{constructor(e){super(e,Ri)}},Vi=class extends V.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?V.createElement(this.props.errorComponent??Hi,{error:e[0],reset:this.reset}):this.props.children}};function Hi({error:e}){let[t,n]=V.useState(!1);return(0,G.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,G.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,G.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,G.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,G.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,G.jsx)(`div`,{children:(0,G.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e?.message?(0,G.jsx)(`code`,{children:e.message}):null})}):null]})}function Ui(e,t){let n=e[1];e.length=0,n?.(t)}function Wi({t:e}){let t=H(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{Ui(n,!1),n.push(i,a),e(t),V.startTransition(r)}),mi(()=>{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(Ye(r.publicHref)!==Ye(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`,...hn(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}var Gi=()=>!0,Ki=()=>!1;function qi({children:e,fallback:t=null}){return(0,G.jsx)(V.Fragment,{children:Ji()?e:t})}function Ji(e=!0){return V.useSyncExternalStore(Yi,Gi,e?Ki:Gi)}function Yi(){return()=>{}}function Xi(e){let t=H(),n=`not-found-${Vr(t.stores.location,e=>e.pathname)}-${Vr(t.stores.status)}`;return(0,G.jsx)(Vi,{getResetKey:()=>n,onCatch:(t,n)=>{if(rt(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(rt(t))return e.fallback?.(t);throw t},children:e.children})}function Zi(){return(0,G.jsx)(`p`,{children:`Not Found`})}function Qi(e,t,n){return t.options.notFoundComponent?(0,G.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,G.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,G.jsx)(Zi,{})}function $i(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,G.jsx)(n,{}):null}var ea=(e,t)=>e[0]===t[0]&&e[1]===t[1],ta=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,na=V.memo(function({routeId:e}){let t=H();return ra(t,Vr(t.stores.getMatchStore(e)))});function ra(e,t){let n=e.routesById[t.routeId],r=$i(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=ta(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s)),l=(0,G.jsx)(ia,{match:t});s&&(l=(0,G.jsx)(qi,{fallback:r,children:l})),o&&(l=(0,G.jsx)(Xi,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return V.createElement(o,e)},children:l})),i&&(l=(0,G.jsx)(Vi,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(rt(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:l})),c&&(l=(0,G.jsx)(V.Suspense,{fallback:r,children:l}));let u=n.isRoot&&n.options.shellComponent;return u?(0,G.jsx)(Pr.Provider,{value:t.routeId,children:(0,G.jsxs)(u,{children:[l,null]})}):(0,G.jsxs)(Pr.Provider,{value:t.routeId,children:[l,null]})}var ia=V.memo(function({match:e}){let t=H(),n=e.routeId,r=t.routesById[n],i=V.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=V.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,G.jsx)(e,{},i):(0,G.jsx)(aa,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!ta(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return $i(t,r)}if(e.status===`notFound`)return Qi(t,r,e.error);if(e.status===`error`)throw e.error;return a}),aa=V.memo(function(){let e=H(),t=V.useContext(Pr),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=Vr(a,e=>[!!e._notFound,e.error],{compare:ea}),i=Vr(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return Qi(e,e.routesById[t],r);if(!i)return null;let a=(0,G.jsx)(na,{routeId:i});return t===`__root__`?(0,G.jsx)(V.Suspense,{fallback:$i(e),children:a}):a});function oa(){let e=H(),t=e.routesById[it],n=$i(e,t),r=(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Wi,{t:V.useState()[1]}),e.ssr?(0,G.jsx)(sa,{}):(0,G.jsx)(V.Suspense,{fallback:n,children:(0,G.jsx)(sa,{})})]});return e.options.InnerWrap?(0,G.jsx)(e.options.InnerWrap,{children:r}):r}function sa(){let e=H(),t=e._rendered,n=Vr(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;mi(()=>{t[0]===n&&Ui(t,!0)},[t,n]);let a=i?(0,G.jsx)(na,{routeId:i}):null;return e.options.disableGlobalCatchBoundary?a:(0,G.jsx)(Vi,{getResetKey:()=>r,onCatch:void 0,children:a})}function ca({router:e,children:t,...n}){Ee(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,G.jsx)(Se.Provider,{value:e,children:t});return e.options.Wrap?(0,G.jsx)(e.options.Wrap,{children:r}):r}function la({router:e,...t}){return(0,G.jsx)(ca,{router:e,...t,children:(0,G.jsx)(oa,{})})}function ua(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 da(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e,a=V.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(e.tag){case`title`:return(0,G.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,G.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,G.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,G.jsx)(`style`,{...t,dangerouslySetInnerHTML:a,nonce:r});case`script`:return(0,G.jsx)(fa,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function fa({attrs:e,children:t,preventScriptHoist:n}){H();let r=Ji(),i=V.useMemo(()=>t===void 0?void 0:{__html:t},[t]),a=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(V.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 ua(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,ua(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,a]),a&&typeof t==`string`)return(0,G.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:i});if(!r){if(e?.src)return(0,G.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,G.jsx)(`script`,{...e,dangerouslySetInnerHTML:i,suppressHydrationWarning:!0})}return null}function pa(e,t,n,r){n=In(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:He(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=Or(e);u.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:Cr(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:{...Tr(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 Dr(m,a),m.push(...d),Dr(m,c),m.push(...u),Dr(m,f),Dr(m,p),m}var ma=e=>{let t=H(),n=t.options.ssr?.nonce,r=V.useCallback(r=>pa(t,n,r,e),[e,n,t]);return Vr(t.stores.matches,r,{compare:je})};function ha(e){let t=ma(e.assetCrossOrigin),n=H().options.ssr?.nonce;return(0,G.jsx)(G.Fragment,{children:t.map(e=>(0,V.createElement)(da,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var ga={suppressHydrationWarning:!0},_a=()=>{let e=H(),t=e.options.ssr?.nonce,n=n=>{let r=kr(n,e.ssr?.manifest,t,ga);for(let e of r[1])if(typeof e.attrs?.src==`string`){let t=e;t.preventScriptHoist=!0}return r};return va(Vr(e.stores.matches,e=>Ar(n(e)),{compare:je}))};function va(e){return(0,G.jsx)(G.Fragment,{children:e.map((e,t)=>(0,V.createElement)(da,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var ya=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function ba(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:ya(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var xa=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},Sa=e=>{let t=xa(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ca=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),wa={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function Ta(e){return e!=null}function Ea(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??wa.width,a=e.size??e.height??wa.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Ca(...c):Ca(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??wa[`stroke-width`])*Number(e.size??e.width??wa.width)/Number(t.size??t.width??wa.width):t.strokeWidth??wa[`stroke-width`];return[`svg`,{...Object.entries(wa).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Ta(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Ta(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Ta(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function Da(e,t={}){return Ea(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var Oa=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},ka=(0,V.createContext)({}),Aa=()=>(0,V.useContext)(ka),ja=(0,V.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=Aa()??{},y=!!c||Oa(d),[b,x,S=[]]=Da(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:Ca(v,s),hasA11yProp:y,attributes:d});return(0,V.createElement)(b,{ref:f,...x},[...S.map(([e,t])=>(0,V.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function Ma(e,t=[],n=[]){let r=typeof e==`string`?ba(e,t,n):e,i=(0,V.forwardRef)(({className:e,...t},n)=>(0,V.createElement)(ja,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Sa(r.name)),i}var Na={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};Na.node;var Pa=Ma(Na),Fa={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};Fa.node;var Ia=Ma(Fa),La={name:`octagon-x`,size:24,node:[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-octagon`]};La.node;var Ra=Ma(La),za={name:`octagon-alert`,size:24,node:[[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z`,key:`1fd625`}]],aliases:[`alert-octagon`]};za.node;var Ba=Ma(za),Va={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};Va.node;var Ha=Ma(Va),Ua={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};Ua.node;var Wa=Ma(Ua),Ga={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Ga.node;var Ka=Ma(Ga),qa=a(),K=r();function Ja(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=Ja(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Ya(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ja(e))&&(r&&(r+=` `),r+=t);return r}var Xa=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Za=Ya,Qa=(e,t)=>n=>{if(t?.variants==null)return Za(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=Xa(t)||Xa(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 Za(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)},$a=(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},eo=(e,t)=>({classGroupId:e,validator:t}),to=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),no=`-`,ro=[],io=`arbitrary..`,ao=e=>{let t=co(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return so(e);let n=e.split(no);return oo(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?$a(i,t):t:i||ro}return n[e]||ro}}},oo=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=oo(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(no):e.slice(t).join(no),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},so=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?io+r:void 0})(),co=e=>{let{theme:t,classGroups:n}=e;return lo(n,t)},lo=(e,t)=>{let n=to();for(let r in e){let i=e[r];uo(i,n,r,t)}return n},uo=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];fo(i,t,n,r)}},fo=(e,t,n,r)=>{typeof e==`string`?po(e,t,n):typeof e==`function`?mo(e,t,n,r):ho(e,t,n,r)},po=(e,t,n)=>{let r=e===``?t:go(t,e);r.classGroupId=n},mo=(e,t,n,r)=>{_o(e)?uo(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(eo(n,e)))},ho=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];uo(o,go(t,a),n,r)}},go=(e,t)=>{let n=e,r=t.split(no),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=to(),n.nextPart.set(t,i)),n=i}return n},_o=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,vo=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)}}},yo=`!`,bo=`:`,xo=[],So=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Co=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===bo){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(yo)?(c=s.slice(0,-1),l=!0):s.startsWith(yo)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return So(t,l,c,u)};if(t){let e=t+bo,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):So(xo,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},wo=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}},To=e=>({cache:vo(e.cacheSize),parseClassName:Co(e),sortModifiers:wo(e),postfixLookupClassGroupIds:Eo(e),...ao(e)}),Eo=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},Do=/\s+/,Oo=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Do),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?_+yo:_,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},ko=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Ao(n))&&(i&&(i+=` `),i+=r);return i},Ao=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Ao(e[r]))&&(n&&(n+=` `),n+=t);return n},jo=(e,...t)=>{let n,r,i,a,o=o=>(n=To(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=Oo(e,n);return i(e,a),a};return a=o,(...e)=>a(ko(...e))},Mo=[],q=e=>{let t=t=>t[e]||Mo;return t.isThemeGetter=!0,t.themeKey=e,t},No=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Po=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fo=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Io=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Lo=/\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$/,Ro=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,zo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vo=e=>Fo.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),Ho=e=>!!e&&Number.isInteger(Number(e)),Uo=e=>e.endsWith(`%`)&&J(e.slice(0,-1)),Wo=e=>Io.test(e),Go=()=>!0,Ko=e=>Lo.test(e)&&!Ro.test(e),qo=()=>!1,Jo=e=>zo.test(e),Yo=e=>Bo.test(e),Xo=e=>!Y(e)&&!X(e),Zo=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)),Qo=e=>ps(e,_s,qo),Y=e=>No.test(e),$o=e=>ps(e,vs,Ko),es=e=>ps(e,ys,J),ts=e=>ps(e,xs,Go),ns=e=>ps(e,bs,qo),rs=e=>ps(e,hs,qo),is=e=>ps(e,gs,Yo),as=e=>ps(e,Ss,Jo),X=e=>Po.test(e),os=e=>ms(e,vs),ss=e=>ms(e,bs),cs=e=>ms(e,hs),ls=e=>ms(e,_s),us=e=>ms(e,gs),ds=e=>ms(e,Ss,!0),fs=e=>ms(e,xs,!0),ps=(e,t,n)=>{let r=No.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ms=(e,t,n=!1)=>{let r=Po.exec(e);return r?r[1]?t(r[1]):n:!1},hs=e=>e===`position`||e===`percentage`,gs=e=>e===`image`||e===`url`,_s=e=>e===`length`||e===`size`||e===`bg-size`,vs=e=>e===`length`,ys=e=>e===`number`,bs=e=>e===`family-name`,xs=e=>e===`number`||e===`weight`,Ss=e=>e===`shadow`,Cs=jo(()=>{let e=q(`color`),t=q(`font`),n=q(`text`),r=q(`font-weight`),i=q(`tracking`),a=q(`leading`),o=q(`breakpoint`),s=q(`container`),c=q(`spacing`),l=q(`radius`),u=q(`shadow`),d=q(`inset-shadow`),f=q(`text-shadow`),p=q(`drop-shadow`),m=q(`blur`),h=q(`perspective`),g=q(`aspect`),_=q(`ease`),v=q(`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(),X,Y],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[X,Y,c],T=()=>[Vo,`full`,`auto`,...w()],E=()=>[Ho,`none`,`subgrid`,X,Y],D=()=>[`auto`,{span:[`full`,Ho,X,Y]},Ho,X,Y],O=()=>[Ho,`auto`,X,Y],ee=()=>[`auto`,`min`,`max`,`fr`,X,Y],k=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],A=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],j=()=>[`auto`,...w()],M=()=>[Vo,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],N=()=>[s,Vo,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],P=()=>[Vo,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],F=()=>[e,X,Y],te=()=>[...b(),cs,rs,{position:[X,Y]}],ne=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],re=()=>[`auto`,`cover`,`contain`,ls,Qo,{size:[X,Y]}],ie=()=>[Uo,os,$o],I=()=>[``,`none`,`full`,l,X,Y],L=()=>[``,J,os,$o],ae=()=>[`solid`,`dashed`,`dotted`,`double`],oe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],R=()=>[J,Uo,cs,rs],z=()=>[``,`none`,m,X,Y],se=()=>[`none`,J,X,Y],B=()=>[`none`,J,X,Y],ce=()=>[J,X,Y],le=()=>[Vo,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Wo],breakpoint:[Wo],color:[Go],container:[Wo],"drop-shadow":[Wo],ease:[`in`,`out`,`in-out`],font:[Xo],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Wo],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Wo],shadow:[Wo],spacing:[`px`,J],text:[Wo],"text-shadow":[Wo],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Vo,Y,X,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,X,Y]}],"container-named":[Zo],columns:[{columns:[J,`auto`,Y,X,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:[Ho,`auto`,X,Y]}],basis:[{basis:[Vo,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[J,Vo,`auto`,`initial`,`none`,Y]}],grow:[{grow:[``,J,X,Y]}],shrink:[{shrink:[``,J,X,Y]}],order:[{order:[Ho,`first`,`last`,`none`,X,Y]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...k(),`normal`]}],"justify-items":[{"justify-items":[...A(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...A()]}],"align-content":[{content:[`normal`,...k()]}],"align-items":[{items:[...A(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...A(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...A(),`baseline`]}],"place-self":[{"place-self":[`auto`,...A()]}],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:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:M()}],"inline-size":[{inline:[`auto`,...N()]}],"min-inline-size":[{"min-inline":[`auto`,...N()]}],"max-inline-size":[{"max-inline":[`none`,...N()]}],"block-size":[{block:[`auto`,...P()]}],"min-block-size":[{"min-block":[`auto`,...P()]}],"max-block-size":[{"max-block":[`none`,...P()]}],w:[{w:[s,`screen`,...M()]}],"min-w":[{"min-w":[s,`screen`,`none`,...M()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...M()]}],h:[{h:[`screen`,`lh`,...M()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...M()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...M()]}],"font-size":[{text:[`base`,n,os,$o]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,fs,ts]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Uo,Y]}],"font-family":[{font:[ss,ns,t]}],"font-features":[{"font-features":[Y]}],"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,X,Y]}],"line-clamp":[{"line-clamp":[J,`none`,X,es]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,X,Y]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,X,Y]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ae(),`wavy`]}],"text-decoration-thickness":[{decoration:[J,`from-font`,`auto`,X,$o]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[J,`auto`,X,Y]}],"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:[Ho,X,Y]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,X,Y]}],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`,X,Y]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:re()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Ho,X,Y],radial:[``,X,Y],conic:[``,Ho,X,Y]},us,is]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-bs":[{"border-bs":L()}],"border-w-be":[{"border-be":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":L()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ae(),`hidden`,`none`]}],"divide-style":[{divide:[...ae(),`hidden`,`none`]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...ae(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[J,X,Y]}],"outline-w":[{outline:[``,J,os,$o]}],"outline-color":[{outline:F()}],shadow:[{shadow:[``,`inner`,`none`,u,ds,as]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":[`none`,d,ds,as]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:L()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[J,$o]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":[`none`,f,ds,as]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[J,X,Y]}],"mix-blend":[{"mix-blend":[...oe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":oe()}],"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":[J]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[X,Y]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":[J]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,X,Y]}],filter:[{filter:[``,`none`,X,Y]}],blur:[{blur:z()}],brightness:[{brightness:[J,X,Y]}],contrast:[{contrast:[J,X,Y]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,ds,as]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:[``,J,X,Y]}],"hue-rotate":[{"hue-rotate":[J,X,Y]}],invert:[{invert:[``,J,X,Y]}],saturate:[{saturate:[J,X,Y]}],sepia:[{sepia:[``,J,X,Y]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,X,Y]}],"backdrop-blur":[{"backdrop-blur":z()}],"backdrop-brightness":[{"backdrop-brightness":[J,X,Y]}],"backdrop-contrast":[{"backdrop-contrast":[J,X,Y]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,J,X,Y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,X,Y]}],"backdrop-invert":[{"backdrop-invert":[``,J,X,Y]}],"backdrop-opacity":[{"backdrop-opacity":[J,X,Y]}],"backdrop-saturate":[{"backdrop-saturate":[J,X,Y]}],"backdrop-sepia":[{"backdrop-sepia":[``,J,X,Y]}],"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`,X,Y]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[J,`initial`,X,Y]}],ease:[{ease:[`linear`,`initial`,_,X,Y]}],delay:[{delay:[J,X,Y]}],animate:[{animate:[`none`,v,X,Y]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,X,Y]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:B()}],"scale-x":[{"scale-x":B()}],"scale-y":[{"scale-y":B()}],"scale-z":[{"scale-z":B()}],"scale-3d":[`scale-3d`],skew:[{skew:ce()}],"skew-x":[{"skew-x":ce()}],"skew-y":[{"skew-y":ce()}],transform:[{transform:[X,Y,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":[`translate-none`],zoom:[{zoom:[Ho,X,Y]}],accent:[{accent:F()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:F()}],"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`,X,Y]}],"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":F()}],"scrollbar-track-color":[{"scrollbar-track":F()}],"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`,X,Y]}],fill:[{fill:[`none`,...F()]}],"stroke-w":[{stroke:[J,os,$o,es]}],stroke:[{stroke:[`none`,...F()]}],"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 Z(...e){return Cs(Ya(e))}var ws=N(ie(),B(c,e=>ae(e.message)||e.message===`Error`?e.name:e.message),B(ue,e=>N(e,_e,L(e=>f(u(e.message),{onFalse:()=>e.name,onTrue:()=>e.message})),l(`
4
+ `))),B(O(`message`),e=>m(e.message)),B(fe,e=>m(e)),B(he,()=>`Error`),B(se,e=>h(E(p))(e)),s(()=>`Unknown Error`)),Ts=Qa(`group/alert relative grid w-full gap-0.5 rounded-lg border px-2 py-1.5 text-left text-xs/relaxed has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-1.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-3.5`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}});function Es(e){let t=(0,K.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=Z(Ts({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,G.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:a,...r}),t[7]=r,t[8]=a,t[9]=o):o=t[9],o}function Ds(e){let t=(0,K.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=Z(`font-medium 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,G.jsx)(`div`,{"data-slot":`alert-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Os(e){let t=(0,K.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=Z(`text-xs/relaxed 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,G.jsx)(`div`,{"data-slot":`alert-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ks(){return typeof window<`u`}function Q(e){return Ms(e)?(e.nodeName||``).toLowerCase():`#document`}function As(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function js(e){return((Ms(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ms(e){return ks()?e instanceof Node||e instanceof As(e).Node:!1}function Ns(e){return ks()?e instanceof Element||e instanceof As(e).Element:!1}function Ps(e){return ks()?e instanceof HTMLElement||e instanceof As(e).HTMLElement:!1}function Fs(e){return!ks()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof As(e).ShadowRoot}function Is(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=qs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Ls(e){return/^(table|td|th)$/.test(Q(e))}function Rs(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var zs=/transform|translate|scale|rotate|perspective|filter/,Bs=/paint|layout|strict|content/,Vs=e=>!!e&&e!==`none`,Hs;function Us(e){let t=Ns(e)?qs(e):e;return Vs(t.transform)||Vs(t.translate)||Vs(t.scale)||Vs(t.rotate)||Vs(t.perspective)||!Gs()&&(Vs(t.backdropFilter)||Vs(t.filter))||zs.test(t.willChange||``)||Bs.test(t.contain||``)}function Ws(e){let t=Ys(e);for(;Ps(t)&&!Ks(t);){if(Us(t))return t;if(Rs(t))return null;t=Ys(t)}return null}function Gs(){return Hs??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Hs}function Ks(e){return/^(html|body|#document)$/.test(Q(e))}function qs(e){return As(e).getComputedStyle(e)}function Js(e){return Ns(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ys(e){if(Q(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Fs(e)&&e.host||js(e);return Fs(t)?t.host:t}function Xs(e){let t=Ys(e);return Ks(t)?(e.ownerDocument||e).body:Ps(t)&&Is(t)?t:Xs(t)}function Zs(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Xs(e),i=r===e.ownerDocument?.body,a=As(r);if(i){let e=Qs(a);return t.concat(a,a.visualViewport||[],Is(r)?r:[],e&&n?Zs(e):[])}return t.concat(r,Zs(r,[],n))}function Qs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var $s={...V},ec={};function tc(e,t){let n=V.useRef(ec);return n.current===ec&&(n.current=e(t)),n}var nc=$s.useInsertionEffect,rc=nc&&nc!==$s.useLayoutEffect?nc:e=>e();function ic(e){let t=tc(ac).current;return t.next=e,rc(t.effect),t.trampoline}function ac(){let e={next:void 0,callback:oc,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function oc(){}var $=typeof document<`u`?V.useLayoutEffect:()=>{};function sc(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var cc={};function lc(e,t,n,r,i){if(!n&&!r&&!i&&!e)return dc(t);let a=dc(e);return t&&(a=fc(a,t)),n&&(a=fc(a,n)),r&&(a=fc(a,r)),i&&(a=fc(a,i)),a}function uc(e){if(e.length===0)return cc;if(e.length===1)return dc(e[0]);let t=dc(e[0]);for(let n=1;n<e.length;n+=1)t=fc(t,e[n]);return t}function dc(e){return gc(e)?{...e(cc)}:pc(e)}function fc(e,t){return gc(t)?t(e):mc(e,t)}function pc(e){let t={...e};for(let e in t){let n=t[e];hc(e,n)&&(t[e]=vc(n))}return t}function mc(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=sc(e.style,r);break;case`className`:e[n]=bc(e.className,r);break;default:e[n]=hc(n,r)?_c(e[n],r):r}}return e}function hc(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 gc(e){return typeof e==`function`}function _c(e,t){return t?e?(...n)=>{let r=n[0];if(xc(r)){let i=r;yc(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:vc(t):e}function vc(e){return e&&((...t)=>{let n=t[0];return xc(n)&&yc(n),e(...t)})}function yc(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function bc(e,t){return t?e?t+` `+e:t:e}function xc(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function Sc(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 Cc=Sc(`https://base-ui.com/production-error`,`Base UI`),wc=V.createContext(void 0);function Tc(e=!1){let t=V.useContext(wc);if(t===void 0&&!e)throw Error(Cc(16));return t}function Ec(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:V.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 Dc(e){return e?.ownerDocument||document}function Oc(e,t,{detail:n=0,pointerType:r=``}={}){e.dispatchEvent(new(As(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 kc(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=V.useRef(null),s=Tc(!0),c=a??s!==void 0,{props:l}=Ec({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=V.useCallback(()=>{let e=o.current;Ac(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return $(u,[u]),{getButtonProps:V.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return lc({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(yc(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=Ac(r),s=!i&&jc(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(),Oc(r,e))}else!l||i||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),Oc(r,e)))},onKeyUp(e){t||(yc(e),a?.(e),e.target===e.currentTarget&&i&&c&&Ac(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||i||c||e.defaultPrevented||e.key!==` `||(e.preventBaseUIHandler(),Oc(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:ic(e=>{o.current=e,u()})}}function Ac(e){return Ps(e)&&e.tagName===`BUTTON`}function jc(e){return Ps(e)&&e.tagName===`A`&&!!e.href}function Mc(e,t,n,r){let i=tc(Pc).current;return Fc(i,e,t,n,r)&&Lc(i,[e,t,n,r]),i.callback}function Nc(e){let t=tc(Pc).current;return Ic(t,e)&&Lc(t,e),t.callback}function Pc(){return{callback:null,cleanup:null,refs:[]}}function Fc(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function Ic(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function Lc(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 Rc=19;function zc(e){return Rc>=e}function Bc(e){if(!V.isValidElement(e))return null;let t=e,n=t.props;return(zc(19)?n?.ref:t.ref)??null}function Vc(){}var Hc=Object.freeze([]),Uc=Object.freeze({});function Wc(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 Gc(e,t){return typeof e==`function`?e(t):e}function Kc(e,t){return typeof e==`function`?e(t):e}function qc(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=Zc(r));let i=Jc(t,n,r);if(n.enabled===!1)return null;let a=n.state??Uc;return Qc(e,r,i,a)}function Jc(e,t,n){let{className:r,style:i}=e,{state:a=Uc,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?Gc(r,a):void 0,d=l?Kc(i,a):void 0,f=l?Wc(a,c):Uc,p=l&&s?Yc(s):void 0,m=l?sc(f,p)??{}:Uc;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?Nc([m.ref,Bc(n),...o]):Mc(m.ref,Bc(n),o):Mc(null,null)),l?(u!==void 0&&(m.className=bc(m.className,u)),d!==void 0&&(m.style=sc(m.style,d)),m):Uc}function Yc(e){return Array.isArray(e)?uc(e):lc(void 0,e)}var Xc=Symbol.for(`react.lazy`);function Zc(e){if(e?.$$typeof!==Xc)return e;let t=V.Children.toArray(e)[0];return V.isValidElement(t)?t:e}function Qc(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=lc(n,t.props);return e.ref=n.ref,V.cloneElement(t,e)}return $c(e,n)}function $c(e,t){return e===`button`?(0,V.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,V.createElement)(`img`,{alt:``,...t,key:t.key}):V.createElement(e,t)}var el=V.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}=kc({disabled:i,focusableWhenDisabled:a,native:o});return qc(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),tl=Qa(`group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium whitespace-nowrap 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-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark: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-offset-4 hover:underline`},size:{default:`h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,xs:`h-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5`,sm:`h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,lg:`h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4`,icon:`size-7 [&_svg:not([class*='size-'])]:size-3.5`,"icon-xs":`size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5`,"icon-sm":`size-6 [&_svg:not([class*='size-'])]:size-3`,"icon-lg":`size-8 [&_svg:not([class*='size-'])]:size-4`}},defaultVariants:{variant:`default`,size:`default`}});function nl(e){let t=(0,K.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=Z(tl({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,G.jsx)(el,{"data-slot":`button`,className:c,...r}),t[9]=r,t[10]=c,t[11]=l):l=t[11],l}function rl(e){let t=(0,K.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=Z(`flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`empty`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function il(e){let t=(0,K.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=Z(`flex max-w-sm flex-col items-center gap-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`empty-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function al(e){let t=(0,K.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=Z(`text-sm font-medium tracking-tight`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`empty-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ol(e){let t=(0,K.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=Z(`text-xs/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,G.jsx)(`div`,{"data-slot":`empty-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function sl(e){let t=(0,K.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=Z(`flex w-full max-w-sm min-w-0 flex-col items-center gap-2 text-xs/relaxed text-balance`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`empty-content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function cl(){let e=(0,K.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,G.jsx)(il,{children:(0,G.jsx)(al,{children:`Page not found`})}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,G.jsxs)(rl,{children:[t,(0,G.jsx)(sl,{children:(0,G.jsx)(`a`,{className:tl({variant:`outline`}),href:`/`,children:`Go home`})})]}),e[1]=n):n=e[1],n}function ll(e){let t=(0,K.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,V.useEffect)(n,r),null}function ul(e){let t=(0,K.c)(16),n;t[0]===e.error?n=t[1]:(n=ws(e.error),t[0]=e.error,t[1]=n);let r=n,i,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,G.jsx)(Ba,{}),a=(0,G.jsx)(Ds,{children:`Something went wrong`}),t[2]=i,t[3]=a):(i=t[2],a=t[3]);let o;t[4]===r?o=t[5]:(o=(0,G.jsxs)(Es,{variant:`destructive`,className:`w-full max-w-lg select-text`,children:[i,a,(0,G.jsx)(Os,{className:`wrap-break-word whitespace-pre-wrap`,children:r})]}),t[4]=r,t[5]=o);let s;t[6]===r?s=t[7]:(s=(0,G.jsx)(nl,{variant:`ghost`,onClick:async()=>{await navigator.clipboard.writeText(r)},children:`Copy error`}),t[6]=r,t[7]=s);let c;t[8]===e.reset?c=t[9]:(c=(0,G.jsx)(nl,{onClick:e.reset,children:`Try again`}),t[8]=e.reset,t[9]=c);let l;t[10]!==s||t[11]!==c?(l=(0,G.jsxs)(`div`,{className:`flex gap-2`,children:[s,c]}),t[10]=s,t[11]=c,t[12]=l):l=t[12];let u;return t[13]!==o||t[14]!==l?(u=(0,G.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4 p-4`,children:[o,l]}),t[13]=o,t[14]=l,t[15]=u):u=t[15],u}var dl=class extends be()(`AuthError`,{cause:x(te()),error:w(de([`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:M}){},fl=ve({id:z,name:z});M.check(T(/^https:\/\/[a-z\d-]+\.mp281x\.xyz(?:\/mcp)?$/u)),ve({accessToken:z,clientId:z,expiresAt:oe,refreshToken:z}),ve({client_id:z}),ve({access_token:z,expires_in:oe,refresh_token:z}),M.check(_(e=>{if(!URL.canParse(e))return!1;let t=new URL(e);return ye([`http:`,`https:`],t.protocol)&&t.username===``&&t.password===``&&t.hash===``},{expected:`an HTTP(S) URL without credentials or a fragment`})).check(_(e=>{if(!URL.canParse(e))return!1;let t=new URL(e);return t.pathname===`/`&&t.search===``},{expected:`an HTTP(S) origin without a path or query`})).check(_(e=>{if(!URL.canParse(e))return!1;let t=new URL(e);return t.protocol===`https:`||ye([`localhost`,`127.0.0.1`,`[::1]`],t.hostname)},{expected:`HTTPS outside loopback`})),M.check(T(/^\d{1,5}$/u),_(e=>y(b(e),e=>e>=1&&e<=65535),{expected:`a port between 1 and 65535`}));var pl=M.check(T(/^0\.1\.\d+$/u)),ml=ve({auth:w(M),name:M,traces:M,version:pl});ve({...fl.fields,signOut:me}),ve({config:ve({port:ge}),name:M,version:pl});function hl(e,t,n){return k(v(function*(){let r=`${yield*F}`,i={attributes:{"scope.run.started_unix_nano":r,"scope.runtime":n,"service.instance.id":r},serviceName:e};return N(ee(ce({exportInterval:`250 millis`,resource:i,url:new URL(`/v1/traces`,t).href}),pe({exportInterval:`250 millis`,resource:i,url:new URL(`/v1/logs`,t).href})),xe([P,S]))}))}function gl(e,t){let n=document.querySelector(`#root`);if(re(n))throw TypeError(`Missing application mount element with id "root"`);return{root:n,router:zi({context:{},defaultErrorComponent:ul,defaultNotFoundComponent:cl,defaultPreload:`intent`,getScrollRestorationKey:t,routeTree:e,scrollRestoration:!0})}}var _l=N(le({pingTimeout:`15 seconds`,retryTransientErrors:!0}),xe(N(I(ne(()=>`${location.origin}/api/rpc`)),xe(j))),d(R()));function vl(e){return g.addGlobalLayer(N(k(v(function*(){let t=yield*(yield*A).get(`/api/runtime`),n=yield*D(ml)(t);return n.traces===``?C:hl(`${e}-client`,n.traces,`web`)})),xe(S))),_l}function yl(e){V.useEffect(e,Hc)}var bl=V.createContext(void 0);function xl(){let e=V.useContext(bl);if(!e)throw Error(Cc(73));return e}var Sl=[],Cl=void 0;function wl(){return Cl}function Tl(e){Sl.push(e)}function El(e){let t=(t,n)=>{let r=tc(Ol).current,i;try{Cl=r;for(let e of Sl)e.before(r);i=e(t,n);for(let e of Sl)e.after(r);r.didInitialize=!0}finally{Cl=void 0}return i};return t.displayName=e.displayName||e.name,t}function Dl(e){return V.forwardRef(El(e))}function Ol(){return{didInitialize:!1}}var kl=Lr(),Al=zc(19)?Nl:Pl;function jl(e,t,n,r,i){return Al(e,t,n,r,i)}function Ml(e,t,n,r,i){let a=V.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,kl.useSyncExternalStore)(e.subscribe,a,a)}Tl({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,kl.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Nl(e,t,n,r,i){let a=wl();if(!a)return Ml(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],s.store===e&&s.selector===t&&Object.is(s.a1,n)&&Object.is(s.a2,r)&&Object.is(s.a3,i)||(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function Pl(e,t,n,r,i){return(0,zr.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Fl=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return jl(this,e,t,n,r)}},Il=class extends Fl{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){V.useDebugValue(e);let n=this;$(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;$(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;$(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){V.useDebugValue(e);let n=this,r=t!==void 0;$(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return V.useDebugValue(e),jl(this,this.selectors[e],t,n,r)}useContextCallback(e,t){V.useDebugValue(e);let n=ic(t??Vc);this.context[e]=n}useStateSetter(e){let t=V.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},Ll=0;function Rl(e){return Ll+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${Ll}`}var zl=0,Bl=class e{static create(){return new e}currentId=zl;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=zl,t()},e)}isStarted(){return this.currentId!==zl}clear=()=>{this.currentId!==zl&&(clearTimeout(this.currentId),this.currentId=zl)};disposeEffect=()=>this.clear};function Vl(){let e=tc(Bl.create).current;return yl(e.disposeEffect),e}function Hl(e,t){if(typeof e==`string`)return{description:e};if(typeof e==`function`){let n=e(t);return typeof n==`string`?{description:n}:n}return e}function Ul(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Wl,platform:Gl,maxTouchPoints:Kl}=Ul(),ql=Wl.toLowerCase(),Jl=Gl.toLowerCase(),Yl=/^i(os$|p)/.test(Jl)||Jl===`macintel`&&Kl>1,Xl=`android`,Zl=Jl===Xl||ql.includes(Xl),Ql=!Yl&&Jl.startsWith(`mac`);Jl.startsWith(`win`),!Zl&&/^(linux|chrome os)/.test(Jl);var $l=Ql||Yl,eu=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`),tu=!eu&&ql.includes(`firefox`);!eu&&ql.includes(`chrom`);var nu=$l,ru=/jsdom|happydom/.test(ql);function iu(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function au(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Fs(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function ou(e,t){let n=e;for(;n;){if(Ns(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(Fs(n)?n.host:null)}return null}function su(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var cu=`data-base-ui-focusable`,lu=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,uu=`ArrowLeft`,du=`ArrowRight`,fu=`ArrowUp`,pu=`ArrowDown`,mu=`data-starting-style`,hu=`data-ending-style`,gu={[mu]:``},_u={[hu]:``},vu={transitionStatus(e){return e===`starting`?gu:e===`ending`?_u:null}},yu=`data-popup-open`,bu=`data-pressed`,xu=`data-trigger-disabled`;function Su(e,t){if(!Ns(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(xu);for(let[,e]of t.entries())if(au(e,n))return!e.hasAttribute(xu);return!1}function Cu(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function wu(e){return e.matches(`html,body`)}function Tu(e){return Ps(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Eu(e){return ou(e,`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${lu}`)!=null}function Du(e){return e?e.getAttribute(`role`)===`combobox`&&Tu(e):!1}function Ou(e){if(!e||ru)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function ku(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Au(e){e.preventDefault(),e.stopPropagation()}function ju(e){return`nativeEvent`in e}function Mu(e){return e.pointerType===``&&e.isTrusted?!0:Zl&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Nu(e){return ru?!1:!Zl&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(Zl||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Pu(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Fu(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var Iu=Math.min,Lu=Math.max,Ru=Math.round,zu=Math.floor,Bu=e=>({x:e,y:e}),Vu={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Hu(e,t,n){return Lu(e,Iu(t,n))}function Uu(e,t){return typeof e==`function`?e(t):e}function Wu(e){return e.split(`-`)[0]}function Gu(e){return e.split(`-`)[1]}function Ku(e){return e===`x`?`y`:`x`}function qu(e){return e===`y`?`height`:`width`}function Ju(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Yu(e){return Ku(Ju(e))}function Xu(e,t,n){n===void 0&&(n=!1);let r=Gu(e),i=Yu(e),a=qu(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ad(o)),[o,ad(o)]}function Zu(e){let t=ad(e);return[Qu(e),t,Qu(t)]}function Qu(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var $u=[`left`,`right`],ed=[`right`,`left`],td=[`top`,`bottom`],nd=[`bottom`,`top`];function rd(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ed:$u:t?$u:ed;case`left`:case`right`:return t?td:nd;default:return[]}}function id(e,t,n,r){let i=Gu(e),a=rd(Wu(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Qu)))),a}function ad(e){let t=Wu(e);return Vu[t]+e.slice(t.length)}function od(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function sd(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:od(e)}function cd(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ld(e,t,n){return Math.floor(e/t)!==n}function ud(e,t){return t<0||t>=e.length}function dd(e,t){return md(e.current,{disabledIndices:t})}function fd(e,t){return md(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function pd(e,t,n){let{decrement:r,loopFocus:i,allowEscape:a,disabledIndices:o,minIndex:s,maxIndex:c}=n,l=()=>md(e,{startingIndex:t,decrement:r,disabledIndices:o}),u,d=!1;if(!i)u=r?Math.max(s,l()):Math.min(c,l());else if(r?t<=s:t>=c){let n=r?-1:e.length;a&&t!==n?u=-1:(u=r?c:s,d=!0)}else u=l();return{index:ud(e,u)?-1:u,wrapped:d}}function md(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&gd(e,a,r));return a}function hd(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=ou(e,`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h<e.length,y=_||o,b=o=>{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f<n.length;f+=1,o+=d){if(o<0||o>=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1),r=i(t,u,n[o][e]??n[o][0]);o=a[r]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!gd(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=zu(l/y)+1;for(let t=u-n+i,c=0;c<o;c+=1,t+=i){if(t<0||t>l){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!gd(e,r,s))return r}};d&&Au(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=md(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-y<c||f<0)){let e=u%y,n=l%y,r=l-(n-e);f=n===e?l:n>e?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=md(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}ud(e,f)&&(f=u)}if(n===`both`){let n=zu(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&Au(t),u%o===o-1?r&&(f=md(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=md(e,{startingIndex:u,disabledIndices:s}),r&&ld(f,o,n)&&(f=md(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),ld(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&Au(t),u%o===0?r&&(f=md(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=md(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&ld(f,o,n)&&(f=md(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),ld(f,o,n)&&(f=u));let c=zu(l/o)===n;ud(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:md(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function gd(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!vd(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function _d(e){return e.visibility===`hidden`||e.visibility===`collapse`}function vd(e,t=e?qs(e):null){return!e||!e.isConnected||!t||_d(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var yd=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function bd(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Fs(n)?n.host:null}function xd(e){for(let t of Array.from(e.children))if(Q(t)===`summary`)return t;return null}function Sd(e,t){let n=xd(t);return!!n&&(e===n||au(n,e))}function Cd(e){let t=e?Q(e):``;return e!=null&&e.matches(yd)&&(t!==`summary`||e.parentElement!=null&&Q(e.parentElement)===`details`&&xd(e.parentElement)===e)&&(t!==`details`||xd(e)==null)&&(t!==`input`||e.type!==`hidden`)}function wd(e){if(!Cd(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=bd(t)){let n=t!==e,r=Q(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Q(t)===`details`&&!t.open&&!Sd(e,t)||t.hasAttribute(`hidden`)||!r&&!Td(t,n))return!1}return!0}function Td(e,t){let n=qs(e);return t?n.display!==`none`:vd(e,n)}function Ed(e){let t=e.tabIndex;if(t<0){let t=Q(e);if(t===`details`||t===`audio`||t===`video`||Ps(e)&&e.isContentEditable)return 0}return t}function Dd(e){if(Q(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Od(e,t){let n=Dd(e);if(!n)return!0;let r=t.find(e=>{let t=Dd(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Dd(e);return t?.name===n.name&&t.form===n.form})===n}function kd(e){if(Ps(e)&&Q(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Ps(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Ad(e,t){kd(e).forEach(e=>{Cd(e)&&t.push(e),Ad(e,t)})}function jd(e,t,n){kd(e).forEach(e=>{Ps(e)&&e.matches(t)&&n.push(e),jd(e,t,n)})}function Md(e){return wd(e)&&Ed(e)>=0}function Nd(e){let t=[];return Ad(e,t),t.filter(wd)}function Pd(e){let t=Nd(e);return t.filter(e=>Ed(e)>=0&&Od(e,t))}function Fd(e,t){let n=Pd(e),r=n.length;if(r===0)return;let i=iu(Dc(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function Id(e){return Fd(Dc(e).body,1)||e}function Ld(e){return Fd(Dc(e).body,-1)||e}function Rd(e,t,n){if(!e)return null;let r=[];Ad(Dc(e).body,r);let i=r.indexOf(e);if(i===-1)return null;let a=r.filter(wd);for(let e=1;e<r.length;e+=1){let o=r[(i+t*e+r.length)%r.length];if(!au(n,o)&&Md(o)&&Od(o,a))return o}return r[i]}function zd(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!au(n,r)}function Bd(e){Pd(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Vd(e){let t=[];jd(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function Hd(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let a=e.transitionStatus===`ending`;t.set(e.id,{value:e,domIndex:i,visibleIndex:a?-1:n,offsetY:r}),r+=e.height||0,a||(n+=1)}),t}function Ud(e,t){let n=0;return e.map(e=>{if(e.transitionStatus===`ending`)return e;let r=n>=t;return n+=1,e.limited===r?e:{...e,limited:r}})}var Wd={toasts:e=>e.toasts,isEmpty:e=>e.toasts.length===0,toast:(e,t)=>e.toastMetadata.get(t)?.value,toastIndex:(e,t)=>e.toastMetadata.get(t)?.domIndex??-1,toastOffsetY:(e,t)=>e.toastMetadata.get(t)?.offsetY??0,toastVisibleIndex:(e,t)=>e.toastMetadata.get(t)?.visibleIndex??-1,focused:e=>e.focused,expanded:e=>e.hovering||e.focused,expandedOrOutOfFocus:e=>e.hovering||e.focused||!e.isWindowFocused,prevFocusElement:e=>e.prevFocusElement},Gd=class extends Il{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:Hd(e.toasts)},{},Wd)}setViewport=e=>{this.set(`viewport`,e)};syncProviderProps(e,t){let n=this.state.limit!==t;if(this.state.timeout===e&&!n)return;let r={timeout:e,limit:t};if(n){let e=Ud(this.state.toasts,t);r.toasts=e,r.toastMetadata=Hd(e)}this.update(r)}disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t=!1){let n=Wd.toastIndex(this.state,e);if(n===-1)return;let r=this.state.toasts[n];t||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||Rl(`toast`);if(e.id){let t=Wd.toast(this.state,e.id);if(t){if(t.transitionStatus===`ending`)this.removeToast(e.id,!0);else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,!0,!0),e.id}}}let i={...e,id:r,updateKey:0,transitionStatus:`starting`},a=[i,...this.state.toasts];this.setToasts(Ud(a,n));let o=i.timeout??t;return i.type!==`loading`&&o>0&&this.scheduleTimer(r,o,()=>this.closeToast(r)),Wd.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{let n=Wd.toast(this.state,e);n&&n.transitionStatus!==`ending`&&this.updateToastInternal(e,typeof t==`function`?t(n):t,!1,!0)};updateToastInternal=(e,t,n=!1,r=!1)=>{let{timeout:i,toasts:a}=this.state,o=Wd.toast(this.state,e);if(!o||o.transitionStatus===`ending`)return;let s={...o,...t,...r&&{updateKey:o.updateKey+1}};this.setToasts(a.map(t=>t.id===e?s:t));let c=s.timeout??i,l=o.timeout??i,u=Object.hasOwn(t,`timeout`),d=s.transitionStatus!==`ending`&&s.type!==`loading`&&c>0,f=this.timers.has(e),p=l!==c,m=o.type===`loading`;!d&&f?this.clearTimer(e):d&&(!f||p||u||m||n)&&(this.clearTimer(e),this.scheduleTimer(e,c,()=>this.closeToast(e)),Wd.expandedOrOutOfFocus(this.state)&&this.pauseTimers())};closeToast=e=>{let t=e===void 0,{limit:n,toasts:r}=this.state,i;if(t)i=r,this.clearTimers();else{let t=Wd.toast(this.state,e);if(!t)return;i=[t],this.clearTimer(e)}let a=Ud(r.map(n=>t||n.id===e?{...n,transitionStatus:`ending`,height:0}:n),n);this.setToasts(a,!a.some(e=>e.transitionStatus!==`ending`)),i.forEach(e=>{e.transitionStatus!==`ending`&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=Hl(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=Hl(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=Hl(t.error,e);return this.updateToast(r,{...n,type:`error`,timeout:n.timeout}),Promise.reject(e)});return{}.hasOwnProperty.call(t,`setPromise`)&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{e.timeout&&(e.timeout.clear(),e.remaining=Math.max(e.remaining-(Date.now()-e.start),0))}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=Bl.create(),e.timeout.start(e.remaining,()=>{this.handleTimerFired(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if(e.pointerType!==`touch`)return;let t=su(e);au(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=Wd.expandedOrOutOfFocus(this.state)?void 0:Bl.create();i?.start(t,()=>{this.handleTimerFired(e),n()}),this.timers.set(e,{timeout:i,start:r,delay:t,remaining:t,callback:n})}clearTimers(){this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(e){this.timers.get(e)?.timeout?.clear(),this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(e){this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){this.timers.size===0&&(this.areTimersPaused=!1)}setToasts(e,t=e.length===0){let n={toasts:e,toastMetadata:Hd(e)};t&&(n.hovering=!1,n.focused=!1),this.update(n)}handleFocusManagement(e){let t=iu(Dc(this.state.viewport));if(!this.state.viewport||!au(this.state.viewport,t)||!Ou(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let n=Wd.toasts(this.state),r=Wd.toastIndex(this.state,e),i=(e,t)=>{for(let r=e;r>=0&&r<n.length;r+=t)if(n[r].transitionStatus!==`ending`)return n[r];return null},a=i(r+1,1)??i(r-1,-1);a?a.ref?.current?.focus():this.restoreFocusToPrevElement()}},Kd=function(e){let{children:t,timeout:n=5e3,limit:r=3,toastManager:i}=e,a=tc(()=>new Gd({timeout:n,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return yl(a.disposeEffect),V.useEffect(function(){if(i)return i[` subscribe`](({action:e,options:t})=>{let n=t.id;e===`promise`&&t.promise?a.promiseToast(t.promise,t):e===`update`&&n?a.updateToast(n,t.updates):e===`close`?a.closeToast(n):a.addToast(t)})},[a,i]),(0,G.jsxs)(bl.Provider,{value:a,children:[(0,G.jsx)(qd,{store:a,timeout:n,limit:r}),t]})};function qd(e){let{store:t,timeout:n,limit:r}=e;return $(()=>{t.syncProviderProps(n,r)},[t,n,r]),null}function Jd(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Yd(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}var Xd={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Zd={...Xd,position:`fixed`,margin:0,top:0,left:0},Qd={...Xd,position:`absolute`},$d=V.forwardRef(function(e,t){let[n,r]=V.useState();$(()=>{nu&&eu&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,G.jsx)(`span`,{...e,ref:t,style:Zd,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})}),ef=`--toast-frontmost-height`,tf=V.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=xl(),c=Vl(),l=V.useRef(!1),u=V.useRef(!1),d=V.useRef(!1),f=s.useState(`isEmpty`),p=s.useState(`toasts`),m=s.useState(`focused`),h=s.useState(`expanded`),g=s.useState(`prevFocusElement`),_=p[0]?.height,v=p.some(e=>e.transitionStatus===`ending`),y=p.filter(e=>e.priority===`high`);V.useEffect(()=>{let e=s.state.viewport;if(!e||f)return;let t=As(e),n=Dc(e);function r(t){t.key===`F6`&&su(t)!==e&&(t.preventDefault(),s.set(`prevFocusElement`,iu(n)),e?.focus({preventScroll:!0}),s.pauseTimers(),s.set(`focused`,!0))}function i(e){su(e)===t&&(s.set(`isWindowFocused`,!1),s.pauseTimers())}function a(n){if(n.relatedTarget)return;let r=su(n),i=iu(Dc(e));r!==t&&au(e,r)&&Ou(i)||s.resumeTimers(),c.start(0,()=>s.set(`isWindowFocused`,!0))}return Yd(Jd(t,`keydown`,r),Jd(t,`blur`,i,!0),Jd(t,`focus`,a,!0),Jd(n,`pointerdown`,s.handleDocumentPointerDown,!0))},[s,c,f]);function b(e){l.current=!0;let t=e.relatedTarget===s.state.viewport?p.find(e=>e.transitionStatus!==`ending`&&!e.limited):void 0;t?t.ref?.current?.focus():s.restoreFocusToPrevElement()}function x(e){e.key===`Tab`&&e.shiftKey&&su(e.nativeEvent)===s.state.viewport&&(e.preventDefault(),s.restoreFocusToPrevElement())}function S(){s.state.toasts.some(e=>e.transitionStatus===`ending`)||d.current||!u.current||(s.set(`hovering`,!1),s.select(`expandedOrOutOfFocus`)||s.resumeTimers(),u.current=!1)}V.useEffect(S,[v,s]);function C(){s.pauseTimers(),s.set(`hovering`,!0),u.current=!1}function w(){u.current=!0,S()}function T(e){e.pointerType===`touch`&&(d.current=!0)}function E(e){e.pointerType===`touch`&&(d.current=!1,S())}function D(){l.current?l.current=!1:m||Ou(iu(Dc(s.state.viewport)))&&(s.set(`focused`,!0),s.pauseTimers())}function O(e){m&&!au(s.state.viewport,e.relatedTarget)&&(s.set(`focused`,!1),s.select(`expandedOrOutOfFocus`)||s.resumeTimers())}let ee={tabIndex:-1,role:`region`,"aria-live":`polite`,"aria-atomic":!1,"aria-relevant":`additions text`,"aria-label":`Notifications`,onMouseEnter:C,onMouseMove:C,onMouseLeave:w,onFocus:D,onBlur:O,onKeyDown:x,onClick:D,onPointerDown:T,onPointerUp:E,onPointerCancel:E,style:{[ef]:_?`${_}px`:void 0}},k={expanded:h},A=!f&&g&&(0,G.jsx)($d,{onFocus:b}),j=qc(`div`,e,{ref:[t,s.setViewport],state:k,props:[ee,o,{children:(0,G.jsxs)(V.Fragment,{children:[A,a,A]})}]});return(0,G.jsxs)(V.Fragment,{children:[A,j,!m&&y.length>0&&(0,G.jsx)(`div`,{style:Zd,children:y.map(e=>(0,G.jsxs)(`div`,{role:`alert`,"aria-atomic":!0,children:[(0,G.jsx)(`div`,{children:e.title}),(0,G.jsx)(`div`,{children:e.description})]},e.id))})]})});function nf(e){return zc(19)?e:e?`true`:void 0}var rf=V.createContext(void 0);function af(){let e=V.useContext(rf);if(!e)throw Error(Cc(66));return e}var of=null;globalThis.requestAnimationFrame;var sf=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||this.callbacks[t]!==null&&(this.callbacks[t]=null,--this.callbacksCount)}},cf=class e{static create(){return new e}static request(e){return sf.request(e)}static cancel(e){return sf.cancel(e)}currentId=of;request(e){this.cancel(),this.currentId=sf.request(()=>{this.currentId=of,e()})}cancel=()=>{this.currentId!==of&&(sf.cancel(this.currentId),this.currentId=of)};disposeEffect=()=>this.cancel};function lf(){let e=tc(cf.create).current;return yl(e.disposeEffect),e}function uf(e){return e==null?e:`current`in e?e.current:e}function df(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}var ff=e(n(),1),pf=null;function mf(e){if(!pf){let e=[];pf=e,queueMicrotask(()=>{pf=null,ff.flushSync(()=>{for(let t of e)t()})})}pf.push(e)}function hf(e,t=!1,n=!1){let r=lf();return ic((i,a=null)=>{r.cancel();let o=uf(e);if(o==null)return;let s=o,c=()=>{n?mf(()=>{a?.aborted||i()}):ff.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(df(s).map(e=>e.finished.then(Vc))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(df(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=mu;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}else r.request(l)})}function gf(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=ic(a),s=hf(r,n,i);V.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}var _f={style:{transition:`none`}},vf=`data-base-ui-click-trigger`,yf=`data-base-ui-swipe-ignore`,bf=`data-swipe-ignore`,xf=`[${yf}]`,Sf=`[${bf}]`,Cf={fallbackAxisSide:`none`},wf={fallbackAxisSide:`end`},Tf={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0};function Ef(e,t){let n=(t??As(e).getComputedStyle(e)).transform,r=0,i=0,a=1;if(n&&n!==`none`){let e=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(r=t[4],i=t[5],a=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(r=t[12],i=t[13],a=t[0])}}return{x:r,y:i,scale:a}}function Df(e,t,n){switch(e){case`up`:return-n;case`down`:return n;case`left`:return-t;case`right`:return t;default:return 0}}var Of=`--toast-index`,kf=`--toast-offset-y`,Af=`--toast-height`,jf=`--toast-swipe-movement-x`,Mf=`--toast-swipe-movement-y`,Nf=`data-swipe-direction`,Pf={...vu,swipeDirection(e){return e?{[Nf]:e}:null}},Ff=40,If=10,Lf=.5,Rf=1,zf=`${xf},${Sf}`,Bf=V.forwardRef(function(e,t){let{toast:n,render:r,className:i,swipeDirection:a=[`down`,`right`],style:o,...s}=e,c=n.positionerProps?.anchor!==void 0,l=[];c||(l=Array.isArray(a)?a:[a]);let u=l.length>0,d=xl(),[f,p]=V.useState(void 0),[m,h]=V.useState(!1),[g,_]=V.useState(!1),[v,y]=V.useState({x:0,y:0}),[b,x]=V.useState({x:0,y:0,scale:1}),[S,C]=V.useState(),[w,T]=V.useState(),[E,D]=V.useState(null),O=V.useRef(null),ee=V.useRef(void 0),k=V.useRef({x:0,y:0}),A=V.useRef({x:0,y:0,scale:1}),j=V.useRef(void 0),M=V.useRef(0),N=V.useRef(!1),P=V.useRef({x:0,y:0}),F=V.useRef(!1),te=V.useRef({x:0,y:0}),ne=V.useRef(null),re=V.useRef(null),ie=d.useState(`toastIndex`,n.id),I=d.useState(`toastVisibleIndex`,n.id),L=d.useState(`toastOffsetY`,n.id),ae=d.useState(`focused`),oe=d.useState(`expanded`);gf({open:n.transitionStatus!==`ending`,ref:O,onComplete(){n.transitionStatus===`ending`&&d.removeToast(n.id)}});let R=ic((e=!1)=>{let t=O.current;if(!t)return;let r=t.style.height;t.style.height=`auto`;let i=t.offsetHeight;t.style.height=r;function a(){d.updateToastInternal(n.id,{ref:O,height:i,transitionStatus:void 0})}e?ff.flushSync(a):a()});$(()=>{let e=ee.current;(n.transitionStatus===`starting`||e!==n.id)&&(e!==void 0&&(p(void 0),x({x:0,y:0,scale:1}),z({x:0,y:0})),ee.current=n.id,R())},[R,n.id,n.transitionStatus]);function z(e){te.current=e,y(e)}$(()=>()=>{re.current?.abort()},[]);function se(e,t){let n=e=>e>0?e**Lf:-(Math.abs(e)**Lf),r=e>0&&!l.includes(`right`)||e<0&&!l.includes(`left`),i=t>0&&!l.includes(`down`)||t<0&&!l.includes(`up`);return{x:r?n(e):e,y:i?n(t):t}}let B=ic(e=>{if(e.pointerId!==ne.current)return;ne.current=null,re.current?.abort(),re.current=null,h(!1),_(!1),D(null);let t=A.current;if(e.type===`pointercancel`||N.current){z({x:t.x,y:t.y}),p(void 0);return}let r=te.current,i=r.x-t.x,a=r.y-t.y,o;for(let e of l)if(Df(e,i,a)>Ff){o=e;break}o?(p(o),d.closeToast(n.id)):(z({x:t.x,y:t.y}),p(void 0))});function ce(e){if(e.button!==0||(e.pointerType===`touch`&&d.pauseTimers(),ou(su(e.nativeEvent),`button,a,input,textarea,[role="button"],${zf}`)))return;N.current=!1,j.current=void 0,M.current=0,ne.current=e.pointerId,k.current={x:e.clientX,y:e.clientY},P.current=k.current;let t=e.currentTarget,n=Ef(t);A.current=n,x(n),z({x:n.x,y:n.y}),d.set(`hovering`,!0),h(!0),_(!1),D(null),F.current=!0,re.current?.abort();let r=new AbortController;re.current=r;let i=Dc(t);i.addEventListener(`pointerup`,B,{signal:r.signal}),i.addEventListener(`pointercancel`,B,{signal:r.signal}),t.setPointerCapture?.(e.pointerId)}function le(e){if(e.pointerId!==ne.current)return;e.preventDefault(),F.current&&=(k.current={x:e.clientX,y:e.clientY},!1);let{clientY:t,clientX:n,movementX:r,movementY:i}=e;(i<0&&t>P.current.y||i>0&&t<P.current.y)&&(P.current={x:P.current.x,y:t}),(r<0&&n>P.current.x||r>0&&n<P.current.x)&&(P.current={x:n,y:P.current.y});let a=n-k.current.x,o=t-k.current.y,s=t-P.current.y,c=n-P.current.x,u=E;if(!g&&Math.sqrt(a*a+o*o)>=Rf){_(!0);let e=l.includes(`left`)||l.includes(`right`),t=l.includes(`up`)||l.includes(`down`);e&&t&&(u=Math.abs(a)>Math.abs(o)?`horizontal`:`vertical`,D(u))}let d;if(!j.current)u===`vertical`?o>0?d=`down`:o<0&&(d=`up`):u===`horizontal`?a>0?d=`right`:a<0&&(d=`left`):d=Math.abs(a)>=Math.abs(o)?a>0?`right`:`left`:o>0?`down`:`up`,d&&l.includes(d)&&(j.current=d,M.current=Df(d,a,o),p(d));else{let e=j.current,t=Df(e,c,s);t>Ff?(N.current=!1,p(e)):!(l.includes(`left`)&&l.includes(`right`))&&!(l.includes(`up`)&&l.includes(`down`))&&M.current-t>=If&&(N.current=!0)}let f=se(a,o),m=A.current.x,h=A.current.y,v=l.includes(`left`)||l.includes(`right`),y=l.includes(`up`)||l.includes(`down`);u!==`vertical`&&v&&(m+=f.x),u!==`horizontal`&&y&&(h+=f.y),z({x:m,y:h})}function ue(e){if(e.key===`Escape`){if(!O.current||!au(O.current,iu(Dc(O.current))))return;d.closeToast(n.id)}}V.useEffect(()=>{let e=O.current;if(!u||!e)return;function t(t){ne.current!==null&&au(e,su(t))&&t.preventDefault()}return Jd(e,`touchmove`,t,{passive:!1})},[u]);function de(){let e=v.x-b.x,t=v.y-b.y;return{transition:m?`none`:void 0,transform:m?`translateX(${v.x}px) translateY(${v.y}px) scale(${b.scale})`:void 0,[jf]:`${e}px`,[Mf]:`${t}px`}}let fe=n.priority===`high`,pe={role:fe?`alertdialog`:`dialog`,tabIndex:0,"aria-modal":!1,"aria-labelledby":S,"aria-describedby":w,"aria-hidden":fe&&!ae?!0:void 0,onPointerDown:u?ce:void 0,onPointerMove:u?le:void 0,onPointerUp:u?B:void 0,onPointerCancel:u?B:void 0,onKeyDown:ue,inert:nf(n.limited),style:{...de(),[Of]:n.transitionStatus===`ending`?ie:I,[kf]:`${L}px`,[Af]:n.height?`${n.height}px`:void 0}},me=V.useMemo(()=>({toast:n,setTitleId:C,setDescriptionId:T,recalculateHeight:R,visibleIndex:I,expanded:oe}),[n,C,T,R,I,oe]),he={transitionStatus:n.transitionStatus,expanded:oe,limited:n.limited||!1,type:n.type,swiping:m,swipeDirection:f},ge=qc(`div`,e,{ref:[t,O],state:he,stateAttributesMapping:Pf,props:[pe,s]});return(0,G.jsx)(rf.Provider,{value:me,children:ge})}),Vf=V.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{visibleIndex:o,expanded:s,recalculateHeight:c}=af(),l=V.useRef(null);return $(()=>{c();let e=l.current;if(!e||typeof ResizeObserver!=`function`||typeof MutationObserver!=`function`)return;let t=new ResizeObserver(()=>c(!0)),n=new MutationObserver(()=>c(!0));return t.observe(e),n.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>{t.disconnect(),n.disconnect()}},[c]),qc(`div`,e,{ref:[t,l],state:{expanded:s,behind:o>0},props:a})});function Hf(){let[,e]=V.useState({});return V.useCallback(()=>{e({})},[])}var Uf=0;function Wf(e,t=`mui`){let n=V.useRef(void 0),r=Hf(),i=e??n.current;return V.useEffect(()=>{n.current??(Uf+=1,n.current=`${t}-${Uf}`,e??r())},[e,t,r]),i}var Gf=$s.useId;function Kf(e,t){if(Gf!==void 0){let n=Gf();return e??(t?`${t}-${n}`:n)}return Wf(e,t)}function qf(e){return e==null||typeof e==`boolean`||e===``?!1:!Array.isArray(e)||e.some(qf)}function Jf(e){return V.isValidElement(e)&&qf(e.props.children)}function Yf(e,t,n){let{toast:r,setTitleId:i,setDescriptionId:a}=af(),o=n===`title`?i:a,s=t??(n===`title`?r.title:r.description);return{id:Kf(e),children:s,type:r.type,setId:o}}function Xf(e,t,n){let r=Jf(e);return $(()=>{if(r)return n(t),()=>{n(e=>e===t?void 0:e)}},[r,t,n]),r?e:null}var Zf=V.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{id:c,children:l,type:u,setId:d}=Yf(a,o,`description`);return Xf(qc(`p`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)}),Qf=V.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{id:c,children:l,type:u,setId:d}=Yf(a,o,`title`);return Xf(qc(`h2`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)}),$f=V.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,c=xl(),{toast:l,expanded:u}=af(),[d,f]=V.useState(!1),{getButtonProps:p,buttonRef:m}=kc({disabled:a,native:o}),h={type:l.type};return qc(`button`,e,{ref:[t,m],state:h,props:[{"aria-hidden":!u&&!d,onClick(){c.closeToast(l.id)},onFocus(){f(!0)},onBlur(){f(!1)}},s,p]})}),ep=V.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,{toast:c}=af(),l=c.actionProps?.children??s.children,{getButtonProps:u,buttonRef:d}=kc({disabled:a,native:o}),f={type:c.type},p=qc(`button`,e,{ref:[t,d],state:f,props:[s,c.actionProps,u,{children:l}]});return Jf(p)?p:null});function tp(e,t,n,r){let i=!1,a=!1,o=r??Uc;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function np(e,t,n){let r=n??Uc;return{reason:e,event:t??new Event(`base-ui`),...r}}var rp=`none`,ip=`trigger-press`,ap=`trigger-hover`,op=`trigger-focus`,sp=`outside-press`,cp=`item-press`,lp=`close-press`,up=`clear-press`,dp=`input-change`,fp=`input-clear`,pp=`input-press`,mp=`focus-out`,hp=`escape-key`,gp=`list-navigation`,_p=`keyboard`,vp=`pointer`,yp=`cancel-open`,bp=`sibling-open`,xp=`imperative-action`;function Sp(e){return`data-base-ui-${e}`}var Cp=V.createContext(null),wp=()=>V.useContext(Cp),Tp=Sp(`portal`);function Ep(e={}){let{ref:t,container:n,componentProps:r=Uc,elementProps:i}=e,a=Kf(),o=wp()?.portalNode,[s,c]=V.useState(null),[l,u]=V.useState(null),d=ic(e=>{e!==null&&u(e)}),f=V.useRef(null);$(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(Ms(n)?n:n.current))??o??document.body;e==null?f.current&&(f.current=null,u(null),c(null)):f.current!==e&&(f.current=e,u(null),c(e))},[n,o]);let p=qc(`div`,r,{ref:[t,d],props:[{id:a,[Tp]:``},i]}),m=s&&p?ff.createPortal(p,s):null;return{node:l,nodeId:V.isValidElement(p)?p.props.id:void 0,subtree:m}}var Dp=V.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,portalOwnerRole:s,...c}=e,{node:l,nodeId:u,subtree:d}=Ep({container:o,ref:t,componentProps:e,elementProps:c}),f=V.useRef(null),p=V.useRef(null),m=V.useRef(null),h=V.useRef(null),[g,_]=V.useState(null),v=V.useRef(!1),y=g?.modal,b=g?.open,x=!!g&&!g.modal&&g.open&&!!l;V.useEffect(()=>{if(!l||y)return;function e(e){l&&e.relatedTarget&&zd(e)&&(e.type===`focusin`?v.current&&=(Vd(l),!1):(Bd(l),v.current=!0))}return Yd(Jd(l,`focusin`,e,!0),Jd(l,`focusout`,e,!0))},[l,y]),$(()=>{l&&b===!0&&v.current&&(Vd(l),v.current=!1)},[b,l]);let S=V.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,G.jsxs)(V.Fragment,{children:[d,(0,G.jsxs)(Cp.Provider,{value:S,children:[x&&l&&(0,G.jsx)($d,{"data-type":`outside`,ref:f,onFocus:e=>{zd(e,l)?m.current?.focus():Ld(g?g.domReference:null)?.focus()}}),x&&l&&(0,G.jsx)(`span`,{role:s,"aria-owns":u,style:Tf}),l&&ff.createPortal(a,l),x&&l&&(0,G.jsx)($d,{"data-type":`outside`,ref:p,onFocus:e=>{zd(e,l)?h.current?.focus():(Id(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,tp(`focus-out`,e.nativeEvent)))}})]})]})}),Op=V.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=Ep({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,G.jsxs)(V.Fragment,{children:[l,c&&ff.createPortal(n,c)]})}),kp=V.forwardRef(function(e,t){return(0,G.jsx)(Op,{ref:t,...e})});function Ap(){let e=xl(),t=e.useState(`toasts`);return V.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function jp(){let e=new Set;function t(t){e.forEach(e=>e(t))}return{" subscribe":function(t){return e.add(t),()=>{e.delete(t)}},add(e){let n=e.id||Rl(`toast`);return t({action:`add`,options:{...e,id:n,transitionStatus:`starting`}}),n},close(e){t({action:`close`,options:{id:e}})},update(e,n){t({action:`update`,options:{id:e,updates:n}})},promise(e,n){let r=e;return t({action:`promise`,options:{...n,promise:e,setPromise(e){r=e}}}),r}}}var Mp=jp();function Np(e){let t=(0,K.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(Kd,{...n}),t[2]=n,t[3]=r),r}function Pp(e){let t=(0,K.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(kp,{"data-slot":`toast-portal`,...n}),t[2]=n,t[3]=r),r}function Fp(e){let t=(0,K.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=Z(`pointer-events-none fixed inset-x-4 bottom-4 z-50 mx-auto w-auto max-w-sm outline-none sm:right-4 sm:left-auto sm:mx-0 sm:w-full`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(tf,{"data-slot":`toast-viewport`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ip(e){let t=(0,K.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=Z(`group/toast pointer-events-auto absolute right-0 bottom-0 z-[calc(1000-var(--toast-index))] w-full origin-bottom rounded-md border bg-popover text-popover-foreground shadow-lg will-change-transform outline-none select-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50`,`[--gap:0.75rem] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)*-1+calc(var(--toast-index)*var(--gap)*-1)+var(--toast-swipe-movement-y))] [--peek:0.75rem] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))]`,`h-(--height) [transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--peek))-(var(--shrink)*var(--height))))_scale(var(--scale))] [transition:transform_500ms_cubic-bezier(0.22,1,0.36,1),opacity_500ms,height_150ms]`,`after:absolute after:top-full after:left-0 after:h-[calc(var(--gap)+1px)] after:w-full after:content-['']`,`data-expanded:h-(--toast-height) data-expanded:[transform:translateX(var(--toast-swipe-movement-x))_translateY(var(--offset-y))]`,`data-limited:opacity-0 data-starting-style:[transform:translateY(150%)]`,`[&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(150%)]`,`data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]`,`data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]`,`data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]`,`data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]`,`data-expanded:data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]`,`data-expanded:data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]`,`data-expanded:data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]`,`data-expanded:data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(Bf,{"data-slot":`toast`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Lp(e){let t=(0,K.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=Z(`flex h-full items-center gap-3 overflow-hidden p-4 transition-opacity duration-250 ease-[cubic-bezier(0.22,1,0.36,1)] data-behind:opacity-0 data-expanded:opacity-100`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(Vf,{"data-slot":`toast-content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Rp(e){let t=(0,K.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=Z(`text-sm font-medium`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(Qf,{"data-slot":`toast-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function zp(e){let t=(0,K.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=Z(`text-sm text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(Zf,{"data-slot":`toast-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Bp({className:e,render:t=(0,G.jsx)(nl,{variant:`outline`,size:`sm`}),...n}){return(0,G.jsx)(ep,{"data-slot":`toast-action`,render:t,className:Z(`shrink-0`,e),...n})}function Vp({className:e,children:t,render:n=(0,G.jsx)(nl,{variant:`ghost`,size:`icon-sm`}),...r}){return(0,G.jsx)($f,{"data-slot":`toast-close`,"aria-label":`Close toast`,render:n,className:Z(`relative shrink-0 text-muted-foreground after:absolute after:-inset-2 after:content-[''] hover:text-foreground`,e),...r,children:t??(0,G.jsx)(Ka,{"aria-hidden":`true`})})}function Hp(e){let t=(0,K.c)(7),{type:n}=e,r=null;if(n===`success`){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(Pa,{"aria-hidden":`true`}),t[0]=e):e=t[0],r=e}if(n===`info`){let e;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(Wa,{"aria-hidden":`true`}),t[1]=e):e=t[1],r=e}if(n===`warning`){let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(Ha,{"aria-hidden":`true`}),t[2]=e):e=t[2],r=e}if(n===`error`){let e;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(Ra,{className:`text-destructive`,"aria-hidden":`true`}),t[3]=e):e=t[3],r=e}if(n===`loading`){let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(Ia,{className:`animate-spin`,"aria-hidden":`true`}),t[4]=e):e=t[4],r=e}if(!r)return null;let i;return t[5]===r?i=t[6]:(i=(0,G.jsx)(`span`,{"data-slot":`toast-icon`,className:`shrink-0 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4`,children:r}),t[5]=r,t[6]=i),i}function Up(){let e=(0,K.c)(2),{toasts:t}=Ap(),n;return e[0]===t?n=e[1]:(n=t.map(Wp),e[0]=t,e[1]=n),n}function Wp(e){return(0,G.jsx)(Ip,{toast:e,children:(0,G.jsxs)(Lp,{children:[(0,G.jsx)(Hp,{type:e.type}),(0,G.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,G.jsx)(Rp,{}),(0,G.jsx)(zp,{})]}),(0,G.jsx)(Bp,{}),(0,G.jsx)(Vp,{})]})},e.id)}function Gp(e){let t=(0,K.c)(9),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({children:n,toastManager:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?Mp:i,o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,G.jsx)(Pp,{children:(0,G.jsx)(Fp,{children:(0,G.jsx)(Up,{})})}),t[4]=o):o=t[4];let s;return t[5]!==n||t[6]!==r||t[7]!==a?(s=(0,G.jsxs)(Np,{toastManager:a,...r,children:[n,o]}),t[5]=n,t[6]=r,t[7]=a,t[8]=s):s=t[8],s}var Kp=Fi({shellComponent:e=>(0,G.jsxs)(`div`,{className:`bg-background text-foreground safe-area flex h-dvh w-dvw flex-col`,children:[(0,G.jsx)(ha,{}),(0,G.jsx)(_a,{}),(0,G.jsx)(Gp,{children:e.children})]})}),qp=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),Jp=function(e){return`/`+e},Yp={},Xp=function(e){return e.pathname.endsWith(`.css`)},Zp=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},Qp=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=Jp(t,n);let r=s(t),i=Xp(r);return Zp(Yp,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`:qp,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)})},$p={homeIndexRoute:Ii(`/(home)/`)({component:Li(()=>Qp(()=>import(`./(home)-B4AqQVYP.js`),__vite__mapDeps([0,1,2,3])),`component`)}).update({id:`/(home)/`,path:`/`,getParentRoute:()=>Kp})},em=gl(Kp._addFileChildren($p)._addFileTypes());(0,qa.createRoot)(em.root).render((0,G.jsx)(V.StrictMode,{children:(0,G.jsx)(la,{router:em.router})}));export{pd as $,Ka as $n,Zl as $t,Cf as A,$ as An,Eu as At,Qd as B,Ys as Bn,mu as Bt,ip as C,Mc as Cn,Pu as Ct,Hf as D,Tc as Dn,Au as Dt,Kf as E,Dc as En,Nu as Et,cf as F,js as Fn,Ou as Ft,Ld as G,Ks as Gn,cu as Gt,Jd as H,Us as Hn,uu as Ht,lf as I,Qs as In,yu as It,Md as J,Ls as Jn,au as Jt,Rd as K,Is as Kn,iu as Kt,nf as L,Q as Ln,bu as Lt,gf as M,tc as Mn,Su as Mt,hf as N,qs as Nn,Du as Nt,vf as O,Cc as On,ku as Ot,uf as P,Ws as Pn,Tu as Pt,dd as Q,Qa as Qn,eu as Qt,$d as R,Js as Rn,vu as Rt,ap as S,Vc as Sn,Fu as St,np as T,Oc as Tn,Mu as Tt,Nd as U,Ns as Un,du as Ut,Yd as V,As as Vn,pu as Vt,Id as W,Ps as Wn,fu as Wt,hd as X,Gs as Xn,ru as Xt,Pd as Y,Rs as Yn,su as Yt,fd as Z,Z as Zn,tu as Zt,rp as _,Zc as _n,Ju as _t,yp as a,El as an,Uu as at,bp as b,Hc as bn,cd as bt,hp as c,vl as cn,Yu as ct,dp as d,ll as dn,Zu as dt,Yl as en,Ma as er,vd as et,fp as f,rl as fn,Ku as ft,gp as g,nl as gn,Wu as gt,_p as h,al as hn,sd as ht,Sp as i,Il as in,Bu as it,wf as j,ic as jn,wu as jt,_f as k,lc as kn,Cu as kt,mp as l,dl as ln,Xu as lt,cp as m,il as mn,ad as mt,Dp as n,Bl as nn,gd as nt,up as o,Dl as on,zu as ot,pp as p,ol as pn,id as pt,zd as q,Fs as qn,ou as qt,wp as r,Vl as rn,Hu as rt,lp as s,yl as sn,Gu as st,Mp as t,Ql as tn,Lr as tr,ud as tt,xp as u,ul as un,qu as ut,sp as v,qc as vn,Lu as vt,tp as w,kc as wn,ju as wt,op as x,Uc as xn,Ru as xt,vp as y,Kc as yn,Iu as yt,Zd as z,Zs as zn,hu as zt};