@deslop/portfolio 0.1.1249 → 0.1.1254
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/(home)-CKhZzCp3.js +1 -0
- package/dist/client/assets/{cv-QNOzfqtN.js → cv-DkK0-RlT.js} +1 -1
- package/dist/client/assets/index-CSJIie1X.js +3 -0
- package/dist/client/assets/index-ixzZqEfy.css +2 -0
- package/dist/client/assets/profile-CAmdNQBr.js +1 -0
- package/dist/client/index.html +6 -5
- package/package.json +3 -2
- package/dist/client/assets/(home)-C78bCX2X.js +0 -1
- package/dist/client/assets/index-B6SVX2wE.js +0 -3
- package/dist/client/assets/index-CxFSPmwu.css +0 -2
- package/dist/client/assets/profile-9fIWkC_A.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{a as t,i as n,n as r,o as i,t as a}from"./react-COyt-gOi.js";import{$ as o,$t as s,C as c,Cn as l,Ct as u,Dn as d,Dt as f,E as p,En as m,Et as h,G as g,Gt as _,I as v,Jt as y,Kt as b,L as x,M as S,On as C,P as w,Q as T,Qt as E,R as D,Sn as O,T as k,Tt as A,U as j,Ut as M,X as N,Yt as P,Z as F,Zt as ee,_n as I,a as L,an as R,dt as te,et as ne,f as re,in as ie,j as ae,k as z,kt as B,l as V,mn as oe,mt as se,n as ce,nn as le,on as ue,p as de,pn as fe,rn as H,sn as pe,t as me,tn as he,tt as ge,u as _e,w as ve,wt as ye,xt as be,yt as xe,z as Se,zt as Ce}from"./effect-DM4IaHtK.js";import{A as we,C as U,D as W,E as Te,M as Ee,O as De,P as Oe,S as ke,T as Ae,_ as je,a as Me,b as Ne,c as Pe,d as Fe,f as Ie,g as Le,h as Re,i as ze,j as Be,k as Ve,l as He,m as Ue,n as We,o as Ge,p as Ke,r as qe,s as Je,t as Ye,u as Xe,v as G,w as Ze,x as Qe,y as K}from"./profile-CAmdNQBr.js";import{i as $e,n as et,r as tt,t as nt}from"./index-CSJIie1X.js";var q=e(i(),1),rt=new Map([[`bold`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M204,64V168a12,12,0,0,1-24,0V93L72.49,200.49a12,12,0,0,1-17-17L163,76H88a12,12,0,0,1,0-24H192A12,12,0,0,1,204,64Z`}))],[`duotone`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M192,64V168L88,64Z`,opacity:`0.2`}),q.createElement(`path`,{d:`M192,56H88a8,8,0,0,0-5.66,13.66L128.69,116,58.34,186.34a8,8,0,0,0,11.32,11.32L140,127.31l46.34,46.35A8,8,0,0,0,200,168V64A8,8,0,0,0,192,56Zm-8,92.69-38.34-38.34h0L107.31,72H184Z`}))],[`fill`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M200,64V168a8,8,0,0,1-13.66,5.66L140,127.31,69.66,197.66a8,8,0,0,1-11.32-11.32L128.69,116,82.34,69.66A8,8,0,0,1,88,56H192A8,8,0,0,1,200,64Z`}))],[`light`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M198,64V168a6,6,0,0,1-12,0V78.48L68.24,196.24a6,6,0,0,1-8.48-8.48L177.52,70H88a6,6,0,0,1,0-12H192A6,6,0,0,1,198,64Z`}))],[`regular`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z`}))],[`thin`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M196,64V168a4,4,0,0,1-8,0V73.66L66.83,194.83a4,4,0,0,1-5.66-5.66L182.34,68H88a4,4,0,0,1,0-8H192A4,4,0,0,1,196,64Z`}))]]),it=q.forwardRef((e,t)=>q.createElement(Oe,{ref:t,...e,weights:rt}));it.displayName=`ArrowUpRightIcon`;var at=new Map([[`bold`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M224.15,179.17l-46.83-46.82,37.93-13.51.76-.3a20,20,0,0,0-1.76-37.27L54.16,29A20,20,0,0,0,29,54.16L81.27,214.24A20,20,0,0,0,118.54,216c.11-.25.21-.5.3-.76l13.51-37.92,46.83,46.82a20,20,0,0,0,28.28,0l16.69-16.68A20,20,0,0,0,224.15,179.17Zm-30.83,25.17-48.48-48.48A20,20,0,0,0,130.7,150a20.66,20.66,0,0,0-3.74.35A20,20,0,0,0,112.35,162c-.11.25-.21.5-.3.76L100.4,195.5,54.29,54.29l141.21,46.1-32.71,11.66c-.26.09-.51.19-.76.3a20,20,0,0,0-6.17,32.48h0l48.49,48.48Z`}))],[`duotone`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M213.66,201,201,213.66a8,8,0,0,1-11.31,0l-51.31-51.31a8,8,0,0,0-13,2.46l-17.82,46.41a8,8,0,0,1-14.85-.71L40.41,50.44a8,8,0,0,1,10-10L210.51,92.68a8,8,0,0,1,.71,14.85l-46.41,17.82a8,8,0,0,0-2.46,13l51.31,51.31A8,8,0,0,1,213.66,201Z`,opacity:`0.2`}),q.createElement(`path`,{d:`M168,132.69,214.08,115l.33-.13A16,16,0,0,0,213,85.07L52.92,32.8A15.95,15.95,0,0,0,32.8,52.92L85.07,213a15.82,15.82,0,0,0,14.41,11l.78,0a15.84,15.84,0,0,0,14.61-9.59l.13-.33L132.69,168,184,219.31a16,16,0,0,0,22.63,0l12.68-12.68a16,16,0,0,0,0-22.63ZM195.31,208,144,156.69a16,16,0,0,0-26,4.93c0,.11-.09.22-.13.32l-17.65,46L48,48l159.85,52.2-45.95,17.64-.32.13a16,16,0,0,0-4.93,26h0L208,195.31Z`}))],[`fill`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M220.49,207.8,207.8,220.49a12,12,0,0,1-17,0l-56.57-56.57L115,214.08l-.13.33A15.84,15.84,0,0,1,100.26,224l-.78,0a15.82,15.82,0,0,1-14.41-11L32.8,52.92A15.95,15.95,0,0,1,52.92,32.8L213,85.07a16,16,0,0,1,1.41,29.8l-.33.13-50.16,19.27,56.57,56.56A12,12,0,0,1,220.49,207.8Z`}))],[`light`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M166.59,134.1a1.91,1.91,0,0,1-.55-1.79,2,2,0,0,1,1.08-1.42l46.25-17.76.24-.1A14,14,0,0,0,212.38,87L52.29,34.7A13.95,13.95,0,0,0,34.7,52.29L87,212.38a13.82,13.82,0,0,0,12.6,9.6c.23,0,.46,0,.69,0A13.84,13.84,0,0,0,113,213.61a2.44,2.44,0,0,0,.1-.24l17.76-46.25a2,2,0,0,1,3.21-.53l51.31,51.31a14,14,0,0,0,19.8,0l12.69-12.69a14,14,0,0,0,0-19.8Zm42.82,62.63-12.68,12.68a2,2,0,0,1-2.83,0L142.59,158.1a14,14,0,0,0-22.74,4.32,2.44,2.44,0,0,0-.1.24L102,208.91a2,2,0,0,1-3.61-.26L46.11,48.57a1.87,1.87,0,0,1,.47-2A1.92,1.92,0,0,1,47.93,46a2.22,2.22,0,0,1,.64.1L208.65,98.38a2,2,0,0,1,.26,3.61l-46.25,17.76-.24.1a14,14,0,0,0-4.32,22.74h0l51.31,51.31A2,2,0,0,1,209.41,196.73Z`}))],[`regular`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M168,132.69,214.08,115l.33-.13A16,16,0,0,0,213,85.07L52.92,32.8A15.95,15.95,0,0,0,32.8,52.92L85.07,213a15.82,15.82,0,0,0,14.41,11l.78,0a15.84,15.84,0,0,0,14.61-9.59l.13-.33L132.69,168,184,219.31a16,16,0,0,0,22.63,0l12.68-12.68a16,16,0,0,0,0-22.63ZM195.31,208,144,156.69a16,16,0,0,0-26,4.93c0,.11-.09.22-.13.32l-17.65,46L48,48l159.85,52.2-45.95,17.64-.32.13a16,16,0,0,0-4.93,26h0L208,195.31Z`}))],[`thin`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M165.17,135.51a4,4,0,0,1,1.17-6.46l46.31-17.79.16-.06a12,12,0,0,0-1.05-22.33L51.67,36.6A12,12,0,0,0,36.6,51.67L88.87,211.76A11.86,11.86,0,0,0,99.67,220h.58a11.86,11.86,0,0,0,11-7.19l.06-.16,17.79-46.31a4,4,0,0,1,6.47-1.17l51.31,51.32a12,12,0,0,0,17,0l12.69-12.69a12,12,0,0,0,0-17Zm45.66,62.63-12.69,12.69a4,4,0,0,1-5.66,0l-51.31-51.31a12,12,0,0,0-8.48-3.52,12.13,12.13,0,0,0-2.24.21,12,12,0,0,0-8.77,7l-.06.16-17.79,46.31a4,4,0,0,1-7.36-.42L44.2,49.19a4,4,0,0,1,5-5L209.27,96.47a4,4,0,0,1,.42,7.36l-46.31,17.78-.16.07a12,12,0,0,0-3.71,19.49l51.32,51.31A4,4,0,0,1,210.83,198.14Z`}))]]),ot=q.forwardRef((e,t)=>q.createElement(Oe,{ref:t,...e,weights:at}));ot.displayName=`CursorIcon`;var st=new Map([[`bold`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z`}))],[`duotone`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),q.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`fill`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z`}))],[`regular`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`thin`,q.createElement(q.Fragment,null,q.createElement(`path`,{d:`M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z`}))]]),ct=q.forwardRef((e,t)=>q.createElement(Oe,{ref:t,...e,weights:st}));ct.displayName=`XIcon`;function J(e){return e?.ownerDocument||document}var lt=e(a(),1);function ut(e){let t=lt.unstable_scheduleCallback(4,e);return()=>lt.unstable_cancelCallback(t)}var dt=q.createContext(de({scheduleTask:ut,defaultIdleTTL:400})),ft=new WeakMap,pt=0,mt=new Set;function ht(e){pt++;try{return e()}finally{pt--}}function gt(e){if(pt===0)return e();mt.size===0&&queueMicrotask(_t),mt.add(e)}function _t(){for(let e of mt)mt.delete(e),e()}function vt(e,t){let n=ft.get(e);n===void 0&&(n=new WeakMap,ft.set(e,n));let r=n.get(t);if(r!==void 0)return r;let i=0,a,o={subscribe(n){i++;let r=e.subscribe(t,()=>gt(n));return()=>{i--,mt.delete(n),r()}},snapshot(){return ht(()=>e.get(t))},getServerSnapshot(){return(i===0||a===void 0)&&(a={value:ht(()=>V(t,e))}),a.value}};return n.set(t,o),o}function yt(e,t){let n=vt(e,t);return q.useEffect(_t),q.useSyncExternalStore(n.subscribe,n.snapshot,n.getServerSnapshot)}function bt(e,t){q.useEffect(()=>e.mount(t),[t,e])}function xt(e,t,n){return n?.mode===`promise`||n?.mode===`promiseExit`?q.useCallback(r=>{e.set(t,r);let i=se(re(e,t,{suspendOnWaiting:!0}));return n.mode===`promise`?i.then(St):i},[e,t,n.mode]):q.useCallback(n=>{e.set(t,typeof n==`function`?n(e.get(t)):n)},[e,t])}var St=e=>{if(Ce(e))return e.value;throw M(e.cause)},Ct=(e,t)=>{let n=q.useContext(dt);return bt(n,e),xt(n,e,t)},wt={suspendOnWaiting:new WeakMap,default:new WeakMap};function Tt(e,t,n){let r=n?wt.suspendOnWaiting:wt.default,i=r.get(e);i===void 0&&(i=new WeakMap,r.set(e,i));let a=i.get(t);return a===void 0&&(a=new Promise(r=>{let a=e.subscribe(t,e=>{e._tag===`Initial`||n&&e.waiting||(setTimeout(a,1e3),r(),i.delete(t))})}),i.set(t,a)),a}function Et(e,t,n){let r=yt(e,t);if(r._tag===`Initial`||n&&r.waiting)throw Tt(e,t,n);return r}var Dt=(e,t)=>{let n=Et(q.useContext(dt),e,t?.suspendOnWaiting??!1);if(n._tag===`Failure`&&!t?.includeFailure)throw M(n.cause);return n},Ot=/^(?:Node\.js\/|Deno\/|Bun\/|Cloudflare-Workers)/;function kt(){return typeof navigator>`u`||Ot.test(String(navigator.userAgent))}function At(e){let t=``,n=e;if(n==null){if(kt())return`linux`;t=navigator.platform?.toLowerCase()??``,n=navigator.userAgent??``}return n=n.toLowerCase(),t.includes(`mac`)||n.includes(`mac`)?`mac`:t.includes(`win`)||n.includes(`win`)?`windows`:`linux`}function jt(e,t=At()){return e===`Mod`?t===`mac`?`Meta`:`Control`:e}var Mt=[`Control`,`Alt`,`Shift`,`Meta`],Nt={Control:`Control`,Ctrl:`Control`,control:`Control`,ctrl:`Control`,Shift:`Shift`,shift:`Shift`,Alt:`Alt`,Option:`Alt`,alt:`Alt`,option:`Alt`,Command:`Meta`,Cmd:`Meta`,Meta:`Meta`,command:`Meta`,cmd:`Meta`,meta:`Meta`,OS:`Meta`,os:`Meta`,Win:`Meta`,win:`Meta`,CommandOrControl:`Mod`,Mod:`Mod`,commandorcontrol:`Mod`,mod:`Mod`};Array.from({length:24},(e,t)=>`F${t+1}`);var Pt={Backquote:"`",Backslash:`\\`,BracketLeft:`[`,BracketRight:`]`,Comma:`,`,Equal:`=`,Minus:`-`,Period:`.`,Quote:`'`,Semicolon:`;`,Slash:`/`};function Ft(e){return/^\p{Letter}$/u.test(e)}function It(e){if(!e)return``;if(Ft(e)){let t=e.toUpperCase();return t.length===1?t:e}return e===` `?`Space`:e}function Lt(e,t){let n=!1;try{n=t!==`mac`&&typeof e.getModifierState==`function`&&e.getModifierState(`AltGraph`)}catch{}let r=(e.key||``).normalize(`NFC`),i=It(r),a=t===`windows`&&n&&!zt({key:i,altGraph:n});return{key:i,code:e.code||``,ctrl:a||!!e.ctrlKey,shift:!!e.shiftKey,alt:a||!!e.altKey,meta:!!e.metaKey,altGraph:n&&!a,location:e.location,isComposing:!!e.isComposing||e.keyCode===229||r===`Process`||r===`Unidentified`&&(!e.code||e.code===`Unidentified`||Wt(e.code))}}function Rt(e){if(/^Key[A-Z]$/i.test(e))return e.slice(3).toUpperCase();if(/^Digit[0-9]$/i.test(e))return e.slice(5);if(/^Numpad[0-9]$/i.test(e))return e.slice(6);if(Object.hasOwn(Pt,e))return Pt[e];let t={NumpadAdd:`+`,NumpadSubtract:`-`,NumpadMultiply:`*`,NumpadDivide:`/`,NumpadDecimal:`.`,NumpadEnter:`Enter`,Space:`Space`};return Object.hasOwn(t,e)?t[e]:void 0}function zt(e){return e.altGraph?e.key===`Dead`||Bt(e.key)&&!/^[A-Za-z0-9]$/.test(e.key):!1}function Bt(e){return e!==``&&Array.from(e).length===1}function Vt(e){let t=e.toLowerCase();return Object.hasOwn(Nt,t)?Nt[t]:void 0}function Ht(e){return/^[A-Za-z][A-Za-z0-9]*$/.test(e)}function Ut(e){return e.startsWith(`[`)&&e.endsWith(`]`)&&Ht(e.slice(1,-1))?e.slice(1,-1):void 0}function Wt(e){return/^(Control|Shift|Alt|Meta)(Left|Right)$/.test(e)}function Gt(e){if(!e.endsWith(`+`))return e.split(`+`);let t=e.slice(0,-1).split(`+`);return t.at(-1)===``&&t.pop(),t.push(`+`),t}function Kt(e){return/^[A-Za-z]$/.test(e)}function qt(e){return/^\p{Script_Extensions=Latin}$/u.test(e)}var Jt;function Yt(e,t){return e===t?!0:/^\p{Letter}$/u.test(e)&&/^\p{Letter}$/u.test(t)?(Jt??=new Intl.Collator(void 0,{sensitivity:`accent`}),Jt.compare(e,t)===0):!1}function Xt(e){if(/^\[.*\]$/s.test(e.trim()))throw Error(`[hotkeys] Put '${e}' in the code field, not key`)}var Zt=`global`,Qt={capture:!1,preventDefault:!0,stopPropagation:!0,eventType:`keydown`,enabled:!0,ignoreInputs:`auto`,conflictBehavior:`warn`,scope:Zt};function $t(...e){let t={};for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];r!==void 0&&(t[e]=r)}return t}function en(e){return e.code===void 0?!!e.key&&!Vt(e.key):!!e.code&&!Wt(e.code)}function tn(e){return!(e.ctrl||e.meta||e.key===`Escape`||e.code===`Escape`)}function nn(e,t,n,r){if(n!==`allow`&&n!==`warn`){if(n===`error`)throw Error(`[hotkeys] '${t}' is already registered`);r(e)}}function rn(e,t){let n=e,r=t,i=Object.keys(n);return i.length===Object.keys(r).length&&i.every(e=>e===`meta`&&n[e]&&r[e]?rn(n[e],r[e]):Object.is(n[e],r[e]))}function an(e,t,n,r,i){let a={Control:t,Alt:r,Shift:n,Meta:i};return{...e,ctrl:t,shift:n,alt:r,meta:i,modifiers:Mt.filter(e=>a[e])}}function on(e){return Array.isArray(e)}function sn(e){return on(e)&&e.length===1?e[0]:e}function cn(e,t){let n=Gt(e).map(e=>e.trim()),r=It(n.pop()),i=new Set;for(let e of n){let n=Vt(e);if(!n)return an({key:``},!1,!1,!1,!1);i.add(jt(n,t))}let a=Ut(r);return an(a===void 0?{key:r}:{code:a},i.has(`Control`),i.has(`Shift`),i.has(`Alt`),i.has(`Meta`))}function ln(e,t){e.code===void 0&&Xt(e.key);let n=e.ctrl??!1,r=e.shift??!1,i=e.alt??!1,a=e.meta??!1;return e.mod&&(jt(`Mod`,t)===`Control`?n=!0:a=!0),an(e.code===void 0?{key:It(e.key)}:{code:e.code},n,r,i,a)}function un(e,t){return typeof e==`string`?cn(e,t):ln(e,t)}function dn(e,t){e.code===void 0&&Xt(e.key);let n=t===`mac`?e.meta&&!e.ctrl:e.ctrl&&!e.meta,r=[];if(n)r.push(`Mod`),e.alt&&r.push(`Alt`),e.shift&&r.push(`Shift`);else for(let t of Mt)e.modifiers.includes(t)&&r.push(t);return r.push(e.code===void 0?It(e.key):`[${e.code}]`),r.join(`+`)}function fn(e,t=At()){return Array.isArray(e)?e.map(e=>un(e,t)):un(e,t)}function pn(e,t=At()){if(Array.isArray(e)){let n=e.map(e=>dn(un(e,t),t));return n.length===1?n[0]:n}return dn(un(e,t),t)}function mn(e){return Vt(e)!==void 0}function hn(e){return e?.nodeType===1}function gn(e){return`document`in e||e.nodeType===9}function _n(e){return`document`in e?e.document:e.ownerDocument??e}function vn(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}function yn(e){return e.assignedSlot??e.parentNode??(e.host||null)}function bn(e){if(gn(e))return!0;for(let t=vn(e.ownerDocument);t;t=yn(t))if(t===e)return!0;return!1}var xn=[`ArrowUp`,`ArrowDown`],Sn=[`ArrowLeft`,`ArrowRight`],Cn=[`Enter`],wn=[`Space`],Tn=[`Enter`,`Space`],En=`typeahead`,Dn=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`,`Enter`,`Space`,En],On=[`ArrowUp`,`ArrowDown`,`Home`,`End`,`Enter`,`Space`,En],kn=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`,`PageUp`,`PageDown`,`Enter`,`Space`],An=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Space`],jn=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`,`PageUp`,`PageDown`],Mn=[`ArrowUp`,`ArrowDown`,`Home`,`End`,`PageUp`,`PageDown`],Nn=[`ArrowLeft`,`ArrowRight`,`Home`,`End`],Pn={button:Tn,submit:Tn,reset:Tn,image:Tn,color:Tn,file:Tn,checkbox:wn,radio:An,range:jn};function Fn(e){return e.getAttribute(`role`)?.trim().split(/\s+/)[0]}function In(e){if(!hn(e))return!1;switch(e.localName){case`input`:{let t=e;return!Pn[t.type]&&!t.readOnly}case`textarea`:return!e.readOnly;case`select`:return!0}let t=Fn(e);return t===`textbox`||t===`searchbox`||e.isContentEditable}function Ln(e){return e.localName.includes(`-`)?e.constructor.formAssociated===!0?!e.hasAttribute(`role`):!e.hasAttribute(`tabindex`):!1}function Rn(e){let t=e.getAttribute(`aria-orientation`);switch(Fn(e)){case`button`:case`tab`:case`option`:case`treeitem`:case`menuitem`:case`menuitemcheckbox`:case`menuitemradio`:return Tn;case`link`:return Cn;case`checkbox`:case`switch`:case`radio`:return wn;case`menu`:case`menubar`:case`tree`:return Dn;case`listbox`:return[...t===`horizontal`?Sn:xn,`Home`,`End`,`Enter`,`Space`,En];case`combobox`:return On;case`tablist`:return[...t===`vertical`?xn:Sn,`Home`,`End`,`Enter`,`Space`];case`toolbar`:return[...t===`vertical`?xn:Sn,`Home`,`End`];case`grid`:case`treegrid`:return kn;case`radiogroup`:return An;case`slider`:return jn;case`spinbutton`:return Mn}switch(e.localName){case`button`:case`summary`:return Tn;case`input`:return Pn[e.type]??Nn;case`textarea`:return jn;case`a`:case`area`:return e.hasAttribute(`href`)?Cn:[]}return[]}function zn(e,t,n,r){if(t.ctrlKey||t.metaKey||t.altKey)return!1;let i=Rn(e);return n===`Enter`||n===`Space`?!t.shiftKey&&i.includes(n):i.includes(n)||i.includes(En)&&/^.$/u.test(r)}function Bn(e,t,n){let r=vn(t),i=[];for(let e=r;e;e=yn(e))hn(e)&&i.push(e);let a=e.composedPath()[0];hn(a)&&!i.includes(a)&&(i=e.composedPath().filter(hn));let o=i.findIndex(e=>n(e)||e===r&&Ln(e));return{elements:i,index:o}}function Vn({elements:e,index:t},n){return t>=0&&(gn(n)||t<e.indexOf(n))}var Hn=new WeakMap;function Un(e,t){for(;e;e=yn(e))if(e===t)return!0;return!1}function Wn(e,t){if(e.type!==`keydown`||e.key!==`Escape`)return!1;let n=Hn.get(e);if(!n){let r=_n(t),i=vn(r),a=e=>{try{return[...r.querySelectorAll(e)]}catch{return[]}},o=a(`dialog:modal`),s=o.filter(e=>Un(i,e));n=[...s.length?s:o,...a(`:popover-open`).filter(e=>e.popover!==`manual`)],Hn.set(e,n)}return n.some(e=>gn(t)||!Un(t,e))}var Gn=new WeakMap;function Kn(e,t){let n=Gn.get(e);if(!n){let r=e.key===`Unidentified`?Rt(e.code)??e.code:e.key,i=It(r);n=Bn(e,_n(t),t=>In(t)||zn(t,e,i,r)),Gn.set(e,n)}return Vn(n,t)}var qn={current:null};function Jn(e,t,n=At()){let r=typeof t==`string`?fn(t,n):t,i=Lt(e,n),a={matched:!1,score:0};if(i.isComposing||i.altGraph&&(r.ctrl||r.alt)||i.altGraph&&!zt(i))return a;if(r.code!==void 0)return i.altGraph||!Xn(i,r,!1)?a:i.code===r.code?l(`code`,3):a;let o=Yt(i.key,r.key),s=o&&Bt(i.key)&&!/^\p{Letter}$/u.test(i.key)&&!r.shift;if(o&&Xn(i,r,s))return l(`key`,s?2:3);if(!Yn(i)||i.altGraph||!Xn(i,r,!1))return a;let c=Rt(i.code);return c!==void 0&&Yt(c,r.key)?l(`fallback`,1):a;function l(e,t){return{matched:!0,score:t,source:e,identity:{key:i.key,code:i.code}}}}function Yn({key:e,code:t,ctrl:n,meta:r,shift:i,alt:a}){return e===`Unidentified`?!t.startsWith(`Key`):e!==`Dead`&&!Bt(e)?!1:t.startsWith(`Digit`)?!0:Kt(e)?!1:/^[!-~]$/.test(e)?i:!qt(e)||a?!0:(n||r)&&!t.startsWith(`Key`)}function Xn(e,t,n){let r=!e.altGraph&&e.ctrl,i=!e.altGraph&&e.alt;return r!==t.ctrl||i!==t.alt||e.meta!==t.meta?!1:e.shift===t.shift||n&&e.shift}function Zn(e,t){return e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift&&e.meta===t.meta&&(e.code!==void 0||t.code!==void 0?e.code===t.code:Yt(e.key,t.key))}var Qn=new Set,$n=new WeakSet,er=new Map,tr=e=>e.code||`key:${e.key}`;function nr(e){return Qn.size>0||$n.has(e)||er.has(tr(e))}var rr=new Set;function ir(e){for(let t of e)rr.add(t);for(let e of rr)rr.delete(e),e()}function ar(e){let t=e,n=new Set;return{get state(){return t},get:()=>t,setState(e){let r=e(t);Object.is(t,r)||(t=r,ir(n))},subscribe(e){let r=()=>{typeof e==`function`?e(t):e.next?.(t)};return n.add(r),{unsubscribe(){n.delete(r),rr.delete(r)}}}}}var or=class{dispatch;#e=new Map;#t=new WeakMap;constructor(e){this.dispatch=e}add(e,t,n,r=!1){if(typeof document>`u`)return;let i=this.#e.get(e)??new Map,a=i.get(t);if(a&&r)for(let n of[`keydown`,`keyup`])e.removeEventListener(n,a[n],t),e.addEventListener(n,a[n],t);if(!a){let n=new Set,r=r=>i=>{let a=i,o=this.#t.get(a),s=!o||o.groups.has(n);(!o||s)&&(o={ids:new Set,groups:new Set},this.#t.set(a,o)),o.groups.add(n);let c=new Set;for(let e of n)o.ids.has(e)||(o.ids.add(e),c.add(e));this.dispatch(a,e,r,t,c,s)};a={ids:n,keydown:r(`keydown`),keyup:r(`keyup`)},e.addEventListener(`keydown`,a.keydown,t),e.addEventListener(`keyup`,a.keyup,t),i.set(t,a),this.#e.set(e,i)}a.ids.add(n)}remove(e,t,n){let r=this.#e.get(e),i=r?.get(t);i&&(i.ids.delete(n),i.ids.size===0&&(e.removeEventListener(`keydown`,i.keydown,t),e.removeEventListener(`keyup`,i.keyup,t),r.delete(t),r.size===0&&this.#e.delete(e)))}destroy(){for(let[e,t]of this.#e)for(let[n,r]of t)e.removeEventListener(`keydown`,r.keydown,n),e.removeEventListener(`keyup`,r.keyup,n);this.#e.clear(),this.#t=new WeakMap}};function sr(e){return Array.isArray(e)?e.map(e=>cr(e)):cr(e)}function cr(e){e.code===void 0&&Xt(e.key);let t=[];for(let n of Mt)e.modifiers.includes(n)&&t.push(n);return t.push(e.code===void 0?e.key:`[${e.code}]`),t.join(`+`)}function lr(e,t,n=At()){let r=on(e)?e:[e],i=on(t)?t:[t];return r.length===i.length&&r.every((e,t)=>Zn(fn(e,n),fn(i[t],n)))}var ur=1e3;function dr(e,t){return e.enabled===!1?`disabled`:t?.isScopeActive(e.scope)===!1?`suspended`:`active`}var fr=0;function pr(e,t){return typeof e==`string`?e:sr(t)}function mr(){return`hotkey_${++fr}`}function hr(e){let t=e;return{id:mr(),unregister:()=>{},get callback(){return t},set callback(e){t=e},setOptions:()=>{},get isActive(){return!1}}}function gr(e){return{...Qt,...e===`sequence`?{timeout:ur}:{requireReset:!1}}}function _r(e,t){if(e===`chord`){let{timeout:e,...n}=t;return n}let{requireReset:n,...r}=t;return r}function vr({target:e,options:t}){if(!t.afterDelegatedHandlers||t.capture||gn(e))return e;let n=e.getRootNode();for(;`host`in n&&n.mode===`open`;)n=n.host.getRootNode();return n}function yr(e){return!!e.afterDelegatedHandlers&&!e.capture}function br(e){return e.kind===`chord`?[e.parsedChord]:e.parsedSequence}function xr(e){let{ignoreInputs:t=`auto`}=e.options;return t===`auto`?tn(br(e)[0]):t}function Sr(e,t){return e.length===t.length&&e.every((e,n)=>Zn(e,t[n]))}function Cr(e){return on(e)?e.join(` `):e}var wr=class e{registrations=ar(new Map);appHotkeys=ar(null);scopes=ar({active:[],exclusive:null,allowed:[],suspended:[]});#e;#t=new Set;#n=0;#r=[];#i=null;#a=new or((...e)=>this.#S(...e));#o=new Map;#s=new WeakMap;#c=new Map;#l=new WeakSet;#u=new Set;#d=new Map;constructor(){this.#e=At()}static getInstance(){return qn.current??=new e}static resetInstance(){qn.current?.destroy(),qn.current=null}activateScope(e,t={}){if(e===`global`)return()=>{};let{exclusive:n}=t,r=n?n===!0?[]:n.allow:null,i={scope:e,parent:t.parent??`global`,allow:r,order:++this.#n};return this.#t.add(i),this.#p(),()=>{this.#t.delete(i)&&this.#p()}}isScopeActive(e=Zt){return this.#i?this.#i.has(e):e===`global`||this.#r.includes(e)}#f(e=Zt){return this.#r.indexOf(e)+1}#p(){let e=new Map,t=new Map;for(let n of this.#t)n.parent!==n.scope&&e.set(n.scope,n.parent),t.set(n.scope,Math.max(t.get(n.scope)??0,n.order));let n=t=>{let n=0,r=new Set;for(let i=e.get(t);i!==void 0&&!r.has(i);i=e.get(i))r.add(i),n++;return n},r=new Map;for(let[n,i]of t){let a=new Set;for(let o=n;o!==void 0&&!a.has(o);o=e.get(o)){a.add(o);let e=t.get(o);e!==void 0&&r.set(o,Math.min(r.get(o)??e,i))}}let i=(e,i)=>r.get(e)-r.get(i)||n(e)-n(i)||t.get(e)-t.get(i);this.#r=[...t.keys()].sort(i);let a=[...this.#t].filter(e=>e.allow).sort((e,t)=>i(e.scope,t.scope)||e.order-t.order).pop(),o=[Zt,...this.#r],s=[];if(this.#i=null,a?.allow){let{allow:t}=a,n=t=>{let n=new Set;for(let r=t;r!==void 0&&!n.has(r);r=e.get(r)){if(r===a.scope)return!0;n.add(r)}return!1};s=o.filter(e=>!n(e)&&t.includes(e)),this.#i=new Set([...o.filter(n),...s])}let c=this.#i;this.scopes.setState(()=>({active:this.#r,exclusive:a?.scope??null,allowed:s,suspended:c?o.filter(e=>!c.has(e)):[]})),this.#g()}#m(e){return dr(e.options,this)===`active`}#h(e,t){let n=e.composedPath();for(let r of this.registrations.state.values())if(!(!this.#m(r)||r.options.eventType!==t||this.#k(r,e)||!n.includes(r.target)||xr(r)&&Kn(e,r.target))&&(r.kind===`chord`?[r.parsedChord]:[r.parsedSequence[r.currentIndex],r.parsedSequence[0]]).some(t=>Jn(e,t,r.options.platform).matched))return!0;return!1}#g(){this.registrations.setState(e=>new Map(e))}register(e,t,n={}){let r=sn(e);if(r==null||on(r)&&r.length===0||typeof document>`u`&&!n.target)return hr(t);let i=mr(),a=n.platform??this.#e,o=n.target??document,s=on(r),c=s?`sequence`:`chord`,l={id:i,callback:t,options:{...gr(c),..._r(c,$t(n)),platform:a},target:o,triggerCount:0,hasFired:!1},u;if(s){let e=fn(r,a);u={...l,kind:`sequence`,hotkey:r.map((t,n)=>pr(t,e[n])),parsedSequence:e,currentIndex:0,lastKeyTime:0}}else{let e=fn(r,a);u={...l,kind:`chord`,hotkey:pr(r,e),parsedChord:e}}if(!(u.kind===`sequence`?u.parsedSequence:[u.parsedChord]).every(en))return hr(t);let d=this.#N(u);d&&nn(d.id,Cr(u.hotkey),n.conflictBehavior??`warn`,e=>this.#_(e));let f=vr(u);this.#a.add(f,!!u.options.capture,i,yr(u.options)),this.#o.set(i,f),this.registrations.setState(e=>new Map(e).set(i,u));let p=this;return{get id(){return i},unregister:()=>{p.#_(i)},get callback(){return p.registrations.state.get(i)?.callback??t},set callback(e){let t=p.registrations.state.get(i);t&&(t.callback=e)},setOptions:e=>{p.registrations.setState(t=>{let n=t.get(i);if(!n)return t;let r={...gr(n.kind),platform:n.options.platform},a={...n.options},o=Object.entries(_r(n.kind,e));for(let[e,t]of o)t===void 0?e in r?a[e]=r[e]:delete a[e]:a[e]=t;if(rn(n.options,a))return t;let s=!!n.options.capture,c=p.#o.get(i)??n.target,l=vr({target:n.target,options:a});return s!==!!a.capture||c!==l?(p.#a.remove(c,s,i),p.#a.add(l,!!a.capture,i,yr(a)),p.#o.set(i,l)):yr(a)&&!yr(n.options)&&p.#a.add(l,s,i,!0),new Map(t).set(i,{...n,options:a})})},get isActive(){return p.registrations.state.has(i)}}}#_(e){let t=this.registrations.state.get(e);t&&(this.registrations.setState(t=>{let n=new Map(t);return n.delete(e),n}),this.#a.remove(this.#o.get(e)??t.target,!!t.options.capture,e),this.#o.delete(e),this.#c.delete(e),this.#y(e))}#v(e,t){this.#y(e),this.#d.set(e,setTimeout(()=>{this.#d.delete(e);let t=this.registrations.state.get(e);if(t?.kind!==`sequence`||t.currentIndex===0)return;let n=t.options.timeout??1e3,r=t.lastKeyTime+n-Date.now();r>=0?this.#v(e,r+1):(t.currentIndex=0,t.lastKeyTime=0,this.#g())},t))}#y(e){let t=this.#d.get(e);t!==void 0&&(clearTimeout(t),this.#d.delete(e))}#b(e,t,n){let r=[];for(let i of e){let e=this.registrations.state.get(i);e?.kind===n&&!!e.options.capture===t&&r.push(e)}return r}#x(e,t){let n=this.registrations.state.get(e.id);return n&&!!n.options.capture===t?n:void 0}#S(e,t,n,r,i,a){if(a&&this.#s.set(e,this.#T(e,n)),r){this.#C(e,t,n,r,i);return}let o=new Map;for(let e of i){let t=this.registrations.state.get(e);if(!t)continue;let n=o.get(t.target)??new Set;o.set(t.target,n.add(e))}let s=o.size>1||!o.has(t)?e.composedPath():[],c=[...o.keys()].filter(e=>e===t||s.includes(e)).sort((e,n)=>e===t?1:n===t?-1:s.indexOf(e)-s.indexOf(n)),l=e.cancelBubble;for(let t of c){let i=new Set;for(let n of o.get(t)){let t=this.registrations.state.get(n)?.options.afterDelegatedHandlers;(!e.cancelBubble||!t&&l)&&i.add(n)}this.#C(e,t,n,r,i)}}#C(e,t,n,r,i){this.#w(e,t,n,r,this.#b(i,r,`chord`)),this.#D(e,t,n,r,this.#b(i,r,`sequence`))}#w(e,t,n,r,i){if(n===`keyup`)for(let t of i)t.hasFired&&this.#P(t,e)&&(t.hasFired=!1,t.activeMatch=void 0);if(n===`keydown`&&!e.repeat)for(let{id:e}of i)this.#c.get(e)&&this.#c.set(e,null);if(nr(e)||this.#s.get(e))return;let a=new Map,o=0,s=!1,c=It(e.key);for(let r of i){let i=this.#m(r),{eventType:l,preventDefault:u}=r.options,d=n===`keydown`&&l===`keyup`,f=this.#k(r,e),{parsedChord:p,id:m}=r,{platform:h}=r.options,g,_;if(n===`keyup`&&l===`keyup`&&this.#c.has(m)&&(g=Jn(e,p,h),(g.matched||p.modifiers.includes(c)&&!e.getModifierState(c))&&(_=this.#c.get(m),this.#c.delete(m))),!(!i&&u!==`always`||l!==n&&!d||xr(r)&&Kn(e,t))){if(g??=Jn(e,p,h),d)g.matched&&(f?this.#c.set(m,null):(u&&this.#O(e),i&&this.#c.set(m,g)));else{if(_!==void 0){if(!_||f)continue;g.matched||(g=_)}!f&&g.matched&&(i?(a.set(r.id,g),o=Math.max(o,g.score)):s=!0)}}}s&&a.size===0&&!this.#h(e,n)&&this.#O(e);let l=-1;for(let e of i)a.get(e.id)?.score===o&&(l=Math.max(l,this.#f(e.options.scope)));for(let t of i){let i=a.get(t.id);if(!i?.matched||i.score!==o||this.#f(t.options.scope)!==l)continue;let s=this.#x(t,r);s&&(this.#A(s,e),n===`keyup`?this.#j(s,e):s.options.requireReset&&s.hasFired&&e.repeat||(s.options.requireReset&&(s.hasFired=!0,s.activeMatch=i.identity),this.#j(s,e)))}}#T(e,t){let n=e.code||It(e.key);if(t===`keyup`){let r=this.#u.delete(n);return this.#E(e,t)||r}if(e.repeat)return this.#u.has(n);let r=this.#E(e,t);return r?this.#u.add(n):this.#u.delete(n),r}#E(e,t){if(nr(e)||Lt(e).isComposing||mn(It(e.key)))return!1;let n=e.composedPath(),r=Date.now();for(let i of this.registrations.state.values()){if(i.kind!==`sequence`||i.currentIndex===0||!this.#m(i)||i.options.eventType!==t||this.#k(i,e)||r-i.lastKeyTime>(i.options.timeout??1e3))continue;let a=i.target;if(n.includes(gn(a)?_n(a):a)&&!(xr(i)&&Kn(e,a))&&Jn(e,i.parsedSequence[i.currentIndex],i.options.platform).matched)return!0}return!1}#D(e,t,n,r,i){if(i.length===0)return;if(nr(e)){let e=!1;for(let t of i)t.currentIndex>0&&(t.currentIndex=0,this.#y(t.id),e=!0);e&&this.#g();return}if(e.type===`keydown`&&e.repeat||Lt(e).isComposing||mn(It(e.key)))return;let a=Date.now(),o=!1,s=new Map,c=0;for(let r of i){if(!this.#m(r)||xr(r)&&Kn(e,t)||r.options.eventType!==n||this.#k(r,e))continue;let i=r.options.timeout??1e3;r.currentIndex>0&&a-r.lastKeyTime>i&&(r.currentIndex=0,o=!0);let l=r.parsedSequence[r.currentIndex];if(!l)continue;let u=Jn(e,l,r.options.platform),d=r.currentIndex+1;!u.matched&&r.currentIndex>0&&(u=Jn(e,r.parsedSequence[0],r.options.platform),d=1),s.set(r.id,{score:u.score,nextIndex:d}),c=Math.max(c,u.score)}let l=[];for(let t of i){let n=s.get(t.id);n&&(n.score>0&&n.score===c?(t.lastKeyTime=a,t.currentIndex=n.nextIndex,o=!0,t.currentIndex>=t.parsedSequence.length?(this.#A(t,e),t.currentIndex=0,l.push(t)):t.options.preventDefault&&this.#O(e)):t.currentIndex>0&&(t.currentIndex=0,o=!0))}for(let e of i)if(s.has(e.id)){if(e.currentIndex>0){let t=e.options.timeout??1e3;this.#v(e.id,t+1)}else this.#y(e.id)}o&&l.length===0&&this.#g();for(let t of l){let n=this.#x(t,r);n&&this.#j(n,e)}}#O(e){e.defaultPrevented||this.#l.add(e),e.preventDefault()}#k(e,t){return Wn(t,e.target)||!!e.options.ignoreDefaultPrevented&&t.defaultPrevented&&!this.#l.has(t)}#A(e,t){e.options.preventDefault&&this.#O(t),e.options.stopPropagation&&t.stopPropagation()}#j(e,t,n=this.#M(e)){e.triggerCount++,e.kind===`sequence`&&(e.hasFired=!0),this.#g();let r=t.defaultPrevented;e.callback(t,n),!r&&t.defaultPrevented&&this.#l.add(t)}#M(e){return e.kind===`chord`?{kind:`chord`,hotkey:e.hotkey,parsedChord:e.parsedChord}:{kind:`sequence`,hotkey:e.hotkey,parsedSequence:e.parsedSequence}}#N(e){let t=br(e);for(let n of this.registrations.state.values())if(n.target===e.target&&n.options.scope===e.options.scope&&n.options.eventType===e.options.eventType&&Sr(br(n),t))return n;return null}#P(e,t){let n=e.parsedChord,r=It(t.key);return e.activeMatch?.code&&t.code===e.activeMatch.code?!0:(n.code===void 0?Yt(r,n.key):t.code===n.code)||n.modifiers.includes(r)}resetSequenceProgress(){for(let e of this.registrations.state.values())e.kind===`sequence`&&(e.currentIndex=0,e.lastKeyTime=0);for(let e of this.#d.values())clearTimeout(e);this.#d.clear(),this.#g()}getRegistrationCount(){return this.registrations.state.size}isRegistered(e,t){for(let n of this.registrations.state.values())if(lr(n.hotkey,e,n.options.platform)&&(t===void 0||n.target===t))return!0;return!1}hasActiveRegistration(e){if(!e)return!1;let t=typeof e==`object`&&`~appHotkey`in e?e.id:void 0;for(let n of this.registrations.state.values())if(this.#m(n)&&bn(n.target)&&(t===void 0?lr(n.hotkey,e,n.options.platform):n.options.appHotkeyId===t))return!0;return!1}destroy(){for(let e of this.#d.values())clearTimeout(e);this.#d.clear(),this.#a.destroy(),this.#o.clear(),this.registrations.setState(()=>new Map),this.appHotkeys.setState(()=>null)}};function Tr(){return wr.getInstance()}function Er(e){return typeof e==`object`&&!!e&&e[`~appHotkey`]===!0}function Dr(e,t){return t?.get(e.id)??e}function Or(e){return{...e.options,...e.scope!==void 0&&{scope:e.scope},meta:e.meta,appHotkeyId:e.id}}function kr(e={}){let t=new Map;return{update(n,r={}){let i=[];n.forEach((t,n)=>{let a=$t(r,t.options),o={...Qt,...a,...e,target:`target`in a?a.target??null:typeof document>`u`?null:document,platform:a.platform??At()};if(!o.target||!t.hotkey||on(t.hotkey)&&t.hotkey.length===0)return;let s=fn(t.hotkey,o.platform);if(!(Array.isArray(s)?s:[s]).every(en))return;let c=pn(s,o.platform);on(c)?delete o.requireReset:delete o.timeout,i.push({key:`${n}:${on(c)?c.join(` `):c}`,callback:t.callback,options:o,register:()=>Tr().register(c,t.callback,o)})});let a=new Set(i.map(e=>e.key));for(let[e,n]of t)a.has(e)||(n.handle.unregister(),t.delete(e));for(let e of i){let n=t.get(e.key),{target:r,platform:i}=e.options;if(n?.handle.isActive&&n.target===r&&n.platform===i){n.handle.callback=e.callback;let t=Object.fromEntries(Object.keys(n.options).map(e=>[e,void 0]));n.handle.setOptions({...t,...e.options}),n.options=e.options}else n?.handle.unregister(),t.set(e.key,{handle:e.register(),target:r,platform:i,options:e.options})}},destroy(){for(let{handle:e}of t.values())e.unregister();t.clear()}}}function Ar(e,t={}){return e.map(e=>{let n=e.hotkey,r={};if(Er(n)){let e=Dr(n,t.appHotkeysStore);r=Or(e),n=e.hotkey??[]}let{target:i,...a}=$t(t.defaults,r,t.commonOptions,e.options),o=i===void 0?void 0:t.resolveTarget?t.resolveTarget(i):i;return{hotkey:n,callback:e.callback,options:o===void 0?a:{...a,target:o}}})}var jr=(0,q.createContext)(null);function Mr(){return(0,q.useContext)(jr)}function Nr(e,t){let n=(0,q.useCallback)(t=>e.subscribe(t).unsubscribe,[e]),r=(0,q.useRef)(null),i=()=>{let n=e.get(),i=r.current;return i&&i.selector===t&&Object.is(i.state,n)?i.selected:(r.current={state:n,selector:t,selected:t(n)},r.current.selected)};return(0,q.useSyncExternalStore)(n,i,i)}var Pr=ar(null);function Fr(){let e=Mr()?.appHotkeysStore??null;return Nr(e?.store??Pr,e=>e),e}function Ir(e){return typeof e==`object`&&!!e&&`current`in e}function Lr(e){return Ir(e)?e.current:e}function Rr(e,t={}){let n=Mr()?.defaultOptions.hotkey,r=Fr(),i=(0,q.useRef)({hotkeys:e,commonOptions:t,defaults:n,appHotkeysStore:r});i.current={hotkeys:e,commonOptions:t,defaults:n,appHotkeysStore:r};let a=(0,q.useRef)(null);(0,q.useEffect)(()=>{a.current??=kr({afterDelegatedHandlers:!0});let{hotkeys:e,...t}=i.current;a.current.update(Ar(e,{...t,resolveTarget:Lr}))}),(0,q.useEffect)(()=>()=>{a.current?.destroy(),a.current=null},[])}var zr=q.createContext(void 0);function Br(e){let t=q.useContext(zr);if(!e&&t===void 0)throw Error(je(27));return t}var Vr=`data-starting-style`,Hr=`data-ending-style`,Ur={[Vr]:``},Wr={[Hr]:``},Gr={transitionStatus(e){return e===`starting`?Ur:e===`ending`?Wr:null}},Kr=`data-open`,qr=`data-closed`,Jr=`data-anchor-hidden`,Yr={[Kr]:``},Xr={[qr]:``},Zr={[Jr]:``},Qr={open(e){return e?Yr:Xr},anchorHidden(e){return e?Zr:null}},$r={...Qr,...Gr},ei=q.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=Br(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`),d={open:c,transitionStatus:s.useState(`transitionStatus`)};return Xe(`div`,e,{state:d,ref:[s.context.backdropRef,t],stateAttributesMapping:$r,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})});function ti(e,t,n,r){let i=!1,a=!1,o=r??Ie;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}}var ni=`none`,ri=`trigger-press`,ii=`outside-press`,ai=`close-press`,oi=`focus-out`,si=`escape-key`,ci=`imperative-action`,li=q.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=Br(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=Le({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,ti(ai,e.nativeEvent))}return Xe(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})});function ui(){let[,e]=q.useState({});return q.useCallback(()=>{e({})},[])}var di=0;function fi(e,t=`mui`){let n=q.useRef(void 0),r=ui(),i=e??n.current;return q.useEffect(()=>{n.current??(di+=1,n.current=`${t}-${di}`,e??r())},[e,t,r]),i}var pi=Qe.useId;function mi(e,t){if(pi!==void 0){let n=pi();return e??(t?`${t}-${n}`:n)}return fi(e,t)}function hi(e){return mi(e,`base-ui`)}var gi=q.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Br(),c=hi(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),Xe(`p`,e,{ref:t,props:[{id:c},o]})});function Y(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function _i(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function vi(e){let t=Ne(yi,e).current;return t.next=e,G(t.effect),t}function yi(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function bi(e){q.useEffect(e,Fe)}var xi=0,Si=class e{static create(){return new e}currentId=xi;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=xi,t()},e)}isStarted(){return this.currentId!==xi}clear=()=>{this.currentId!==xi&&(clearTimeout(this.currentId),this.currentId=xi)};disposeEffect=()=>this.clear};function Ci(){let e=Ne(Si.create).current;return bi(e.disposeEffect),e}function wi(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Ti,platform:Ei,maxTouchPoints:Di}=wi(),Oi=Ti.toLowerCase(),ki=Ei.toLowerCase(),Ai=/^i(os$|p)/.test(ki)||ki===`macintel`&&Di>1,ji=`android`,Mi=ki===ji||Oi.includes(ji),Ni=!Ai&&ki.startsWith(`mac`);ki.startsWith(`win`),!Mi&&/^(linux|chrome os)/.test(ki);var Pi=Ni||Ai,Fi=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!Fi&&Oi.includes(`firefox`),!Fi&&Oi.includes(`chrom`);var Ii=Pi,Li=/jsdom|happydom/.test(Oi),Ri=null;globalThis.requestAnimationFrame;var zi=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)}},Bi=class e{static create(){return new e}static request(e){return zi.request(e)}static cancel(e){return zi.cancel(e)}currentId=Ri;request(e){this.cancel(),this.currentId=zi.request(()=>{this.currentId=Ri,e()})}cancel=()=>{this.currentId!==Ri&&(zi.cancel(this.currentId),this.currentId=Ri)};disposeEffect=()=>this.cancel};function Vi(){let e=Ne(Bi.create).current;return bi(e.disposeEffect),e}var Hi={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Ui={...Hi,position:`fixed`,margin:0,top:0,left:0};({...Hi});var X=t(),Wi=q.forwardRef(function(e,t){let[n,r]=q.useState();G(()=>{Ii&&Fi&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,X.jsx)(`span`,{...e,ref:t,style:Ui,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function Gi(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Z(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Be(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ki(e,t){let n=e;for(;n;){if(Te(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(Be(n)?n.host:null)}return null}function qi(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var Ji=`data-base-ui-focusable`;function Yi(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 Xi(e){return e.matches(`html,body`)}function Zi(e){return W(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Qi(e){return e?e.getAttribute(`role`)===`combobox`&&Zi(e):!1}function $i(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function ea(e){e.preventDefault(),e.stopPropagation()}function ta(e){return`nativeEvent`in e}function na(e){return e.pointerType===``&&e.isTrusted?!0:Mi&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function ra(e){return Li?!1:!Mi&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(Mi||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function ia(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function aa(e){return e.visibility===`hidden`||e.visibility===`collapse`}function oa(e,t=e?ke(e):null){return!e||!e.isConnected||!t||aa(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var sa=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function ca(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Be(n)?n.host:null}function la(e){for(let t of Array.from(e.children))if(U(t)===`summary`)return t;return null}function ua(e,t){let n=la(t);return!!n&&(e===n||Z(n,e))}function da(e){let t=e?U(e):``;return e!=null&&e.matches(sa)&&(t!==`summary`||e.parentElement!=null&&U(e.parentElement)===`details`&&la(e.parentElement)===e)&&(t!==`details`||la(e)==null)&&(t!==`input`||e.type!==`hidden`)}function fa(e){if(!da(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=ca(t)){let n=t!==e,r=U(t)===`slot`;if(t.hasAttribute(`inert`)||n&&U(t)===`details`&&!t.open&&!ua(e,t)||t.hasAttribute(`hidden`)||!r&&!pa(t,n))return!1}return!0}function pa(e,t){let n=ke(e);return t?n.display!==`none`:oa(e,n)}function ma(e){let t=e.tabIndex;if(t<0){let t=U(e);if(t===`details`||t===`audio`||t===`video`||W(e)&&e.isContentEditable)return 0}return t}function ha(e){if(U(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function ga(e,t){let n=ha(e);if(!n)return!0;let r=t.find(e=>{let t=ha(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=ha(e);return t?.name===n.name&&t.form===n.form})===n}function _a(e){if(W(e)&&U(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return W(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function va(e,t){_a(e).forEach(e=>{da(e)&&t.push(e),va(e,t)})}function ya(e,t,n){_a(e).forEach(e=>{W(e)&&e.matches(t)&&n.push(e),ya(e,t,n)})}function ba(e){return fa(e)&&ma(e)>=0}function xa(e){let t=[];return va(e,t),t.filter(fa)}function Sa(e){let t=xa(e);return t.filter(e=>ma(e)>=0&&ga(e,t))}function Ca(e,t){let n=Sa(e),r=n.length;if(r===0)return;let i=Gi(J(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function wa(e){return Ca(J(e).body,1)||e}function Ta(e){return Ca(J(e).body,-1)||e}function Ea(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Z(n,r)}function Da(e){Sa(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Oa(e){let t=[];ya(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 ka(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...ka(e,t.id,n)])}function Aa(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function ja(e){return`data-base-ui-${e}`}var Ma=0;function Na(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(Ma);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),Ke;let o=requestAnimationFrame(a);return Ma=o,()=>{Ma===o&&(cancelAnimationFrame(o),Ma=0)}}var Pa=`data-base-ui-inert`,Fa=new WeakMap,Ia=new WeakSet,La=new WeakMap,Ra=0;function za(e){return e?Be(e)?e.host:za(e.parentNode):null}var Ba=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=za(t);return e.contains(n)?n:null}).filter(e=>e!=null),Va=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Ha=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{U(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Ua(e,t,n,{mark:r=!0}){let i=Ba(t,e),a=r?Ha(t,Va(i),new Set(i)):[],o=[],s=[];if(n){let e=Ba(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);Ha(t,Va(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(Fa.get(e)||0)+1;Fa.set(e,r),o.push(e),r===1&&n&&Ia.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(La.get(e)||0)+1;La.set(e,t),s.push(e),t===1&&e.setAttribute(Pa,``)}),Ra+=1,()=>{o.forEach(e=>{let t=(Fa.get(e)||0)-1;Fa.set(e,t),t||(Ia.has(e)||e.removeAttribute(`aria-hidden`),Ia.delete(e))}),r&&s.forEach(e=>{let t=(La.get(e)||0)-1;La.set(e,t),t||e.removeAttribute(Pa)}),--Ra,Ra||(Fa=new WeakMap,Ia=new WeakSet,La=new WeakMap)}}function Wa(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=J(e[0]).body;return Ua(e,i,n,{mark:r})}var Ga={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},Ka=e(n(),1),qa=q.createContext(null),Ja=()=>q.useContext(qa),Ya=ja(`portal`);function Xa(e={}){let{ref:t,container:n,componentProps:r=Ie,elementProps:i}=e,a=mi(),o=Ja()?.portalNode,[s,c]=q.useState(null),[l,u]=q.useState(null),d=K(e=>{e!==null&&u(e)}),f=q.useRef(null);G(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(Ve(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=Xe(`div`,r,{ref:[t,d],props:[{id:a,[Ya]:``},i]}),m=s&&p?Ka.createPortal(p,s):null;return{node:l,nodeId:q.isValidElement(p)?p.props.id:void 0,subtree:m}}var Za=q.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}=Xa({container:o,ref:t,componentProps:e,elementProps:c}),f=q.useRef(null),p=q.useRef(null),m=q.useRef(null),h=q.useRef(null),[g,_]=q.useState(null),v=q.useRef(!1),y=g?.modal,b=g?.open,x=!!g&&!g.modal&&g.open&&!!l;q.useEffect(()=>{if(!l||y)return;function e(e){l&&e.relatedTarget&&Ea(e)&&(e.type===`focusin`?v.current&&=(Oa(l),!1):(Da(l),v.current=!0))}return _i(Y(l,`focusin`,e,!0),Y(l,`focusout`,e,!0))},[l,y]),G(()=>{l&&b===!0&&v.current&&(Oa(l),v.current=!1)},[b,l]);let S=q.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,X.jsxs)(q.Fragment,{children:[d,(0,X.jsxs)(qa.Provider,{value:S,children:[x&&l&&(0,X.jsx)(Wi,{"data-type":`outside`,ref:f,onFocus:e=>{Ea(e,l)?m.current?.focus():Ta(g?g.domReference:null)?.focus()}}),x&&l&&(0,X.jsx)(`span`,{role:s,"aria-owns":u,style:Ga}),l&&Ka.createPortal(a,l),x&&l&&(0,X.jsx)(Wi,{"data-type":`outside`,ref:p,onFocus:e=>{Ea(e,l)?h.current?.focus():(wa(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,ti(`focus-out`,e.nativeEvent)))}})]})]})});function Qa(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var $a=q.createContext(null),eo=q.createContext(null),to=()=>q.useContext($a)?.id||null,no=e=>{let t=q.useContext(eo);return e??t};function ro(e){return e==null?e:`current`in e?e.current:e}function io(e,t){let n=Ae(qi(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(na(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var ao=20,oo=[];function so(){oo=oo.filter(e=>e.deref()?.isConnected)}function co(e){so(),e&&U(e)!==`body`&&(oo.push(new WeakRef(e)),oo.length>ao&&(oo=oo.slice(-20)))}function lo(){return so(),oo[oo.length-1]?.deref()}function uo(e){return e?ba(e)?e:Sa(e)[0]||e:null}function fo(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=xa(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return ba(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function po(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,explicitReturnFocus:o,restoreFocus:s=!1,modal:c=!0,closeOnFocusOut:l=!0,openInteractionType:u=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:h}=e,g=t.useState(`open`),_=t.useState(`domReferenceElement`),v=t.useState(`floatingElement`),{events:y,dataRef:b}=t.context,x=K(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Qi(_)&&S,w=vi(i),T=vi(a),E=vi(o),D=vi(u),O=vi(g),k=no(m),A=Ja(),j=q.useRef(!1),M=q.useRef(!1),N=q.useRef(!1),P=q.useRef(null),F=q.useRef(``),ee=q.useRef(``),I=q.useRef(null),L=q.useRef(null),R=Re(I,p,A?.beforeInsideRef),te=Re(L,A?.afterInsideRef),ne=Ci(),re=Ci(),ie=Vi(),ae=A!=null,z=$i(v),B=K((e=z)=>e?Sa(e):[]),V=K(()=>h?.().filter(e=>e!=null)??[]);q.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&Z(z,Gi(J(z)))&&B().length===0&&!C&&ea(e)}return Y(J(z),`keydown`,e)},[r,z,c,C,B]),q.useEffect(()=>{if(r||!g)return;let e=J(z);function t(){N.current=!1}function n(e){let t=qi(e),n=V(),r=Z(v,t)||Z(_,t)||Z(A?.portalNode,t)||n.some(e=>e===t||Z(e,t));N.current=!r,ee.current=e.pointerType||`keyboard`,Ki(t,`[data-base-ui-click-trigger]`)&&(M.current=!0,re.start(0,()=>{M.current=!1}))}function i(){ee.current=`keyboard`}return _i(Y(e,`pointerdown`,n,!0),Y(e,`pointerup`,t,!0),Y(e,`pointercancel`,t,!0),Y(e,`keydown`,i,!0),t)},[r,v,_,z,g,A,re,V]),q.useEffect(()=>{if(r||!l)return;let e=J(z);function n(){M.current=!0,re.start(0,()=>{M.current=!1})}function i(e){let t=qi(e);ba(t)&&(P.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=qi(n);c&&r==null&&a!=null&&Z(v,a)&&co(a),queueMicrotask(()=>{let o=x(),l=t.context.triggerElements,u=V(),p=r?.hasAttribute(ja(`focus-guard`))&&[I.current,L.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,ro(f),ro(d)].includes(r),m=!(Z(_,r)||Z(v,r)||Z(r,v)||Z(A?.portalNode,r)||u.some(e=>e===r||Z(e,r))||l.hasMatchingElement(e=>Z(e,r))||p||k&&(ka(k.nodesRef.current,o).find(e=>Z(e.context?.elements.floating,r)||Z(e.context?.elements.domReference,r))||Aa(k.nodesRef.current,o).find(e=>[e.context?.elements.floating,$i(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===_&&z&&fo(z),s&&i!==_&&!oa(a)&&Gi(e)===e.body){if(W(z)&&(z.focus(),s===`popup`)){ie.request(()=>{z.focus()});return}let e=B(),t=P.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||z;W(n)&&n.focus()}b.current.insideReactTree?b.current.insideReactTree=!1:(C||!c)&&r&&m&&!M.current&&(C||r!==lo())&&(j.current=!0,t.setOpen(!1,ti(oi,n)))})}function o(){N.current||(b.current.insideReactTree=!0,ne.start(0,()=>{b.current.insideReactTree=!1}))}let u=W(_)?_:null;if(v||u)return _i(u&&Y(u,`focusout`,a),u&&Y(u,`pointerdown`,n),v&&Y(v,`focusin`,i),v&&Y(v,`focusout`,a),v&&A&&Y(v,`focusout`,o,!0))},[r,_,v,z,c,k,A,t,l,s,B,C,x,b,ne,re,ie,d,f,V]),q.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(A?.portalNode?.querySelectorAll(`[${ja(`portal`)}]`)||[]),t=(k?Aa(k.nodesRef.current,x()):[]).find(e=>Qi(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Wa([v,...e,I.current,L.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...V(),t,ro(f),ro(d),C?_:null].filter(e=>e!=null),{ariaHidden:c||C,mark:!1}),i=Wa([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,c,A,C,k,x,d,f,V]),G(()=>{if(!g||r||!W(z))return;F.current=``,ee.current=``;let e=J(z),t=Gi(e);queueMicrotask(()=>{let n=w.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||Z(z,t))return;let i=null,a=()=>(i??=B(z),i[0]||z),o;o=r===!0||r===null?a():ro(r),o||=a();let s=Z(z,Gi(e)),c=b.current.openEvent,l=c?.type===`mousedown`&&na(c);Na(o,{sync:l,preventScroll:o===z,shouldFocus(){if(!O.current)return!1;if(s)return!0;let t=Gi(e);return!(t!==o&&Z(z,t))}})})},[r,g,z,B,w,D,O,b]);let oe=q.useRef(null);G(()=>{if(r||!z){oe.current=null;return}oe.current&&=(oe.current.cancelled=!0,null);let e=J(z),t=Gi(e),n=D.current==null;co(t);function i(e){if(e.open||(F.current=io(e.nativeEvent,ee.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(ja(`focus-guard`))||e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`)&&(j.current=!0),e.reason===`outside-press`){if(e.nested)j.current=!1;else if(na(e.nativeEvent)||ra(e.nativeEvent))j.current=!1;else{let e=!1;J(z).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?j.current=!1:j.current=!0}}}y.on(`openchange`,i);function a(e){let r=T.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=_?.isConnected?_:null,o=t?.isConnected&&U(t)!==`body`?t:null,s=n?o||a:a||o;return s||=lo()||null,typeof i==`boolean`?s:ro(i)||s||null}return()=>{y.off(`openchange`,i);let t=Gi(e),n=V(),r=Z(v,t)||n.some(e=>e===t||Z(e,t))||k&&ka(k.nodesRef.current,x(),!1).some(e=>Z(e.context?.elements.floating,t)),o=T.current,s=F.current,c=a(s),l={cancelled:!1};oe.current=l,queueMicrotask(()=>{oe.current===l&&(oe.current=null);let n=uo(c),i=E.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!j.current&&W(n)&&(i||n===t||t===e.body||r)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}j.current=!1})}},[r,v,z,T,E,D,y,k,_,x,V]),G(()=>{if(!Fi||g||!v)return;let e=Gi(J(v));W(e)&&Zi(e)&&Z(v,e)&&e.blur()},[g,v]),G(()=>{if(!r&&A)return A.setFocusManagerState({modal:c,closeOnFocusOut:l,open:g,onOpenChange:t.setOpen,domReference:_}),()=>{A.setFocusManagerState(null)}},[r,A,c,g,t,l,_]),G(()=>{if(!r&&z)return fo(z),()=>{queueMicrotask(so)}},[r,z]);let se=!r&&(!c||!C)&&(ae||c);return(0,X.jsxs)(q.Fragment,{children:[se&&(0,X.jsx)(Wi,{"data-type":`inside`,ref:R,onFocus:e=>{if(c){let e=B();Na(e[e.length-1])}else A?.portalNode&&(j.current=!1,Ea(e,A.portalNode)?wa(_)?.focus():ro(f??A.beforeOutsideRef)?.focus())}}),n,se&&(0,X.jsx)(Wi,{"data-type":`inside`,ref:te,onFocus:e=>{c?Na(B()[0]):A?.portalNode&&(l&&(j.current=!0),Ea(e,A.portalNode)?Ta(_)?.focus():ro(d??A.afterOutsideRef)?.focus())}})]})}function mo(){return!1}function ho(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function go(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=mo,bubbles:s,externalTree:c}=t,l=e.useState(`open`),u=e.useState(`floatingElement`),{dataRef:d,events:f}=e.context,p=no(c),m=K(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=K(()=>a),{escapeKey:v,outsidePress:y}=ho(s),b=q.useRef(!1),x=q.useRef(!1),S=q.useRef(!1),C=q.useRef(!1),w=q.useRef(!1),T=q.useRef(``),E=q.useRef(null),D=Ci(),O=Ci(),k=Ci(),A=K(()=>{O.clear(),d.current.insideReactTree=!1}),j=K(e=>{let t=d.current.floatingContext?.nodeId;return(p?ka(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),M=K(t=>Yi(t,e.select(`floatingElement`))||Yi(t,e.select(`domReferenceElement`))),N=K(t=>{o()&&e.setOpen(!1,ti(ri,t.nativeEvent))}),P=K(t=>{if(!l||!n||!r||t.key!==`Escape`)return;let i=ta(t)?t.nativeEvent:t;if(w.current||i.isComposing||!v&&j(`__escapeKeyBubbles`))return;let a=ti(si,i);e.setOpen(!1,a),a.isCanceled||t.preventDefault(),!v&&!a.isPropagationAllowed&&t.stopPropagation()}),F=K(()=>{d.current.insideReactTree=!0,O.start(0,A)}),ee=K(t=>{if(!l||!n||t.button!==0)return;let r=qi(t.nativeEvent);Z(e.select(`floatingElement`),r)&&(b.current||(b.current=!0,x.current=!1))}),I=K(e=>{l&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(x.current=!0)});q.useEffect(()=>{function e(e){e.open||(C.current=!1)}return f.on(`openchange`,e),()=>{f.off(`openchange`,e)}},[f]),q.useEffect(()=>A,[A]),q.useEffect(()=>{if(!l||!n)return l||(C.current=!1,w.current=!1,T.current=``,E.current=null),A;d.current.__escapeKeyBubbles=v,d.current.__outsidePressBubbles=y;let t=new Si,i=J(u);function a(){k.clear(),w.current=!0}function o(){w.current=!0,k.start(Fi?5:0,()=>{w.current=!1})}function s(){S.current=!0,t.start(0,()=>{S.current=!1})}function c(){b.current=!1,x.current=!1}function f(){let e=T.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function O(e){let t=d.current.floatingContext?.nodeId,n=p&&ka(p.nodesRef.current,t).some(t=>Yi(e,t.context?.elements.floating));return M(e)||n}function N(n){if(m(n)){n.type!==`click`&&!M(n)&&(t.clear(),S.current=!1),A();return}if(d.current.insideReactTree){A();return}let r=qi(n),i=`[${ja(`inert`)}]`,a=Te(r)?r.getRootNode():null,o=Array.from((Be(a)?a:J(e.select(`floatingElement`))).querySelectorAll(i)),s=e.context.triggerElements;if(r&&(s.hasElement(r)||s.hasMatchingElement(e=>Z(e,r))))return;let c=Te(r)?r:null;for(;c&&!De(c);){let e=Ze(c);if(De(e)||!Te(e))break;c=e}if(!(o.length&&Te(r)&&!Xi(r)&&!Z(r,e.select(`floatingElement`))&&o.every(e=>!Z(c,e)))){if(W(r)&&!(`touches`in n)){let e=De(r),t=ke(r),i=/auto|scroll/,a=e||i.test(t.overflowX),o=e||i.test(t.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=t.direction===`rtl`,u=c&&(l?n.offsetX<=r.offsetWidth-r.clientWidth:n.offsetX>r.clientWidth),d=s&&n.offsetY>r.clientHeight;if(u||d)return}if(!O(n)){if(f()===`intentional`){if(n.detail!==0&&!na(n)&&!C.current)return;if(S.current){t.clear(),S.current=!1;return}}typeof h==`function`&&!h(n)||j(`__outsidePressBubbles`)||(e.setOpen(!1,ti(ii,n)),A())}}}function F(t){f()===`sloppy`&&t.pointerType!==`touch`&&e.select(`open`)&&n&&!M(t)&&N(t)}function ee(t){if(f()!==`sloppy`||!e.select(`open`)||!n||M(t))return;let r=t.touches[0];r&&(E.current={startTime:Date.now(),startX:r.clientX,startY:r.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},D.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}function I(e,t){let n=qi(e);if(!n)return;let r=Y(n,e.type,()=>{t(e),r()})}function L(e){T.current=`touch`,I(e,ee)}function R(e){D.clear(),e.type===`pointerdown`&&(e.button===0&&(C.current=!0),T.current=e.pointerType),(e.type!==`mousedown`||!E.current||E.current.dismissOnMouseDown)&&I(e,e=>{e.type===`pointerdown`?F(e):N(e)})}function te(e){if(e.type===`pointercancel`&&(C.current=!1),!b.current)return;let n=x.current;c(),f()===`intentional`&&(e.type===`pointercancel`?n&&s():O(e)||(n?s():(typeof h!=`function`||h(e))&&(t.clear(),S.current=!0,A())))}function ne(e){if(f()!==`sloppy`||!E.current||M(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-E.current.startX),r=Math.abs(t.clientY-E.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(E.current.dismissOnTouchEnd=!0),i>10&&(N(e),D.clear(),E.current=null)}function re(e){I(e,ne)}function ie(e){f()===`sloppy`&&E.current&&!M(e)&&(E.current.dismissOnTouchEnd&&N(e),D.clear(),E.current=null)}function ae(e){I(e,ie)}let z=_i(r&&_i(Y(i,`keydown`,P),Y(i,`compositionstart`,a),Y(i,`compositionend`,o)),g&&_i(Y(i,`click`,R,!0),Y(i,`pointerdown`,R,!0),Y(i,`pointerup`,te,!0),Y(i,`pointercancel`,te,!0),Y(i,`mousedown`,R,!0),Y(i,`mouseup`,te,!0),Y(i,`touchstart`,L,{capture:!0,passive:!0}),Y(i,`touchmove`,re,{capture:!0,passive:!0}),Y(i,`touchend`,ae,{capture:!0,passive:!0})));return()=>{z(),t.clear(),c(),S.current=!1}},[d,u,r,g,h,l,n,v,y,P,A,_,j,M,p,e,D,k]);let L=q.useMemo(()=>({onKeyDown:P,onPointerDown:N,onClick:N}),[P,N]),R=q.useMemo(()=>({onKeyDown:P,onPointerDown:I,onMouseDown:I,onClickCapture:F,onMouseDownCapture(e){F(),ee(e)},onPointerDownCapture(e){F(),ee(e)},onMouseUpCapture:F,onTouchEndCapture:F,onTouchMoveCapture:F}),[P,F,ee,I]);return q.useMemo(()=>n?{reference:L,floating:R,trigger:L}:{},[n,L,R])}var _o=q.createContext(void 0);function vo(){let e=q.useContext(_o);if(e===void 0)throw Error(je(26));return e}function yo(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}var bo=null;function xo(e){if(!bo){let e=[];bo=e,queueMicrotask(()=>{bo=null,Ka.flushSync(()=>{for(let t of e)t()})})}bo.push(e)}function So(e,t=!1,n=!1){let r=Vi();return K((i,a=null)=>{r.cancel();let o=ro(e);if(o==null)return;let s=o,c=()=>{n?xo(()=>{a?.aborted||i()}):Ka.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(yo(s).map(e=>e.finished.then(Ke))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(yo(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=Vr;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 Co(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=K(a),s=So(r,n,i);q.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}var wo=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`]);function To(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=o;return t.useSyncedValue(`floatingId`,i),G(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};Te(c)&&(e.domReferenceElement=c),r.state.positionReference===r.state.referenceElement&&(e.positionReference=c),r.update(e)},[s,i,c,l,r]),r.context.onOpenChange=u,r.context.nested=a,r}function Eo(e,t=!1,n=!1,r=!1){let[i,a]=q.useState(e&&t?`idle`:void 0),[o,s]=q.useState(e&&!r);return e&&!o&&(s(!0),a(`starting`)),!e&&o&&i!==`ending`&&!n&&a(`ending`),!e&&!o&&i===`ending`&&a(void 0),G(()=>{if(!e&&o&&i!==`ending`&&n){let e=Bi.request(()=>{a(`ending`)});return()=>{Bi.cancel(e)}}},[e,o,i,n]),G(()=>{if(!e||t||i===void 0)return;let n=Bi.request(()=>{a(void 0)});return()=>{Bi.cancel(n)}},[t,e,i]),G(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=Bi.request(()=>{a(`idle`)});return()=>{Bi.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}function Do(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:o}=e,s=K(i),{mounted:c,setMounted:l,transitionStatus:u}=Eo(t,!1,!1,o),d=!t&&r;G(()=>{t&&s(!1)},[t,s]);let f=q.useRef(c),p=q.useRef(!1),m=ui(),h=()=>{f.current=!1,l(!1),a()};G(()=>{f.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=K(()=>{f.current&&(t?(p.current=!0,m()):h())});return Co({enabled:c&&!t&&!d,open:t,ref:n,onComplete(){t||g()}}),{mounted:c,transitionStatus:u,preventUnmountingOnClose:d,forceUnmount:g}}var Oo={tabIndex:-1,[Ji]:``};function ko(e){return t=>t!==`touch`||e.current}function Ao(e,t=!1){let n=mi(),r=to()!=null,i=Ne(()=>e(n,r)).current;return To({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function jo({handle:e,store:t}){return G(()=>e.attachStore(t),[e,t]),null}function Mo(e,t,n,r=!1){let i=e.preventUnmountingOnClose;t?i=!1:r&&(i=!0);let a=n?.id??null,o=e.activeTriggerId,s=e.activeTriggerElement;return(a||t)&&(o=a,s=n??null),{open:t,preventUnmountingOnClose:i,activeTriggerId:o,activeTriggerElement:s,openedWithoutTrigger:t?n==null:e.openedWithoutTrigger}}function No(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=q.useRef(null),i=e.useState(`open`),a=e.useState(`triggerCount`),o=e.useState(`activeTriggerId`),s=e.useState(`activeTriggerElement`);G(()=>{if(!i){r.current=null,e.state.triggerCount!==0&&e.set(`triggerCount`,0),e.state.openedWithoutTrigger&&e.set(`openedWithoutTrigger`,!1);return}let t=e.context.triggerElements.size,a={};e.state.triggerCount!==t&&(a.triggerCount=t);let o=e.select(`activeTriggerId`),s=null;if(o){let t=e.context.triggerElements.getById(o);if(t)r.current=o,t!==e.state.activeTriggerElement&&(a.activeTriggerElement=t);else{for(let[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){a.activeTriggerId=t,a.activeTriggerElement=n,r.current=t;break}a.activeTriggerId===void 0&&(r.current===o?s=o:r.current=null)}}else r.current=null;if(!s&&!o&&!e.state.openedWithoutTrigger&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;a.activeTriggerId=e,a.activeTriggerElement=n,r.current=e}}(a.triggerCount!==void 0||a.activeTriggerId!==void 0||a.activeTriggerElement!==void 0)&&e.update(a),s&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===s&&!e.context.triggerElements.getById(s)){let t=ti(ni);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,a,o,s,n])}function Po(e,t,n,r){let{mounted:i,transitionStatus:a,forceUnmount:o}=Do({open:e,ref:t.context.popupRef,preventUnmountOnClose:t.useState(`preventUnmountingOnClose`),setPreventUnmountOnClose:e=>t.set(`preventUnmountingOnClose`,e),animateInitialOpen:r,onUnmount(){t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}});return Ne(()=>(t.set(`mounted`,i),null)),t.useSyncedValues({mounted:i,transitionStatus:a}),{forceUnmount:o,transitionStatus:a}}function Fo(e,t){e.useSyncedValues(t),G(()=>()=>{e.update({activeTriggerProps:Ie,inactiveTriggerProps:Ie,popupProps:Ie})},[e])}function Io(e,t){G(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),G(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var Lo=class{idMap=new Map;add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}},Ro=[],zo=void 0;function Bo(){return zo}function Vo(e){Ro.push(e)}function Ho(e){let t=(t,n)=>{let r=Ne(Uo).current,i;try{zo=r;for(let e of Ro)e.before(r);i=e(t,n);for(let e of Ro)e.after(r);r.didInitialize=!0}finally{zo=void 0}return i};return t.displayName=e.displayName||e.name,t}function Uo(){return{didInitialize:!1}}var Wo=tt(),Go=et(),Ko=Ue(19)?Yo:Xo;function qo(e,t,n,r,i){return Ko(e,t,n,r,i)}function Jo(e,t,n,r,i){let a=q.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Wo.useSyncExternalStore)(e.subscribe,a,a)}Vo({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,Wo.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Yo(e,t,n,r,i){let a=Bo();if(!a)return Jo(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 Xo(e,t,n,r,i){return(0,Go.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Zo=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 qo(this,e,t,n,r)}},Qo=class extends Zo{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){q.useDebugValue(e);let n=this;G(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;G(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);G(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){q.useDebugValue(e);let n=this,r=t!==void 0;G(()=>{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 q.useDebugValue(e),qo(this,this.selectors[e],t,n,r)}useContextCallback(e,t){q.useDebugValue(e);let n=K(t??Ke);this.context[e]=n}useStateSetter(e){let t=q.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)}})}},$o={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},es=class extends Qo{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Qa(),nested:n,triggerElements:i},$o),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&ia(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function ts(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new es({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Ie,inactiveTriggerProps:Ie,popupProps:Ie}}var ns=e=>e.triggerIdProp??e.activeTriggerId,rs=e=>e.openProp??e.open,is=e=>(e.popupElement?.id??e.floatingId)||void 0;function as(e,t){return t!==void 0&&rs(e)&&ns(e)===t}function os(e,t){return as(e,t)?!0:t!==void 0&&rs(e)&&ns(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}var ss={open:rs,mounted:e=>e.mounted,transitionStatus:e=>rs(e)&&!e.mounted?`starting`:e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:ns,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:is,isTriggerActive:(e,t)=>t!==void 0&&ns(e)===t,isOpenedByTrigger:(e,t)=>as(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&ns(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>os(e,t)?is(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement},cs=`--nested-dialogs`,ls=`data-nested-dialog-open`,us={...Qr,...Gr,nestedDialogOpen(e){return e?{[ls]:``}:null}},ds=q.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=Br(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`);vo(),Co({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let C=o===void 0?ko(c.context.popupRef):o,w=g>0,T=c.useStateSetter(`popupElement`),E=Xe(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:w},props:[f,{id:S,"aria-labelledby":y,"aria-describedby":l,role:x,...Oo,hidden:!m,onKeyDown(e){wo.has(e.key)&&e.stopPropagation()},style:{[cs]:g}},s],ref:[t,c.context.popupRef,T],stateAttributesMapping:us});return(0,X.jsx)(po,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:E})});function fs(e){return Ue(19)?e:e?`true`:void 0}var ps=q.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,X.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),ms=q.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Br(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,X.jsx)(_o.Provider,{value:n,children:(0,X.jsxs)(Za,{ref:t,...r,children:[a&&o===!0&&(0,X.jsx)(ps,{ref:i.context.internalBackdropRef,inert:fs(!s)}),e.children]})}):null}),hs={},gs={},_s=``;function vs(e,t){return we(e)?e:t}function ys(e,t,n){return/hidden|clip/.test(e.getComputedStyle(vs(t,n)).overflowY)}function bs(e){if(typeof document>`u`)return!1;let t=J(e);return Ae(t).innerWidth-t.documentElement.clientWidth>0}function xs(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=J(e),n=t.documentElement,r=t.body,i=vs(n,r),a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Ss(e){let t=J(e),n=t.documentElement,r=t.body,i=vs(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Cs(e){let t=J(e),n=t.documentElement,r=t.body,i=Ae(n),a=0,o=0,s=!1,c=Bi.create();if(Fi&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,hs={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},_s=n.style.scrollBehavior,gs={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=vs(n,r);s=xs(e),s?(n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`):(Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`)}function u(){Object.assign(n.style,hs),Object.assign(r.style,gs),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=_s)}function d(){u(),c.request(l)}l();let f=Y(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var ws=new class{lockCount=0;restore=null;timeoutLock=Si.create();timeoutUnlock=Si.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=J(e),n=t.documentElement,r=t.body,i=Ae(n);if(ys(i,n,r)){let t=new i.MutationObserver(()=>{ys(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),a={attributes:!0};t.observe(n,a),t.observe(r,a),this.restore=()=>t.disconnect();return}let a=Ai||!bs(e);this.restore=a?Ss(e):Cs(e)}};function Ts(e=!0,t=null){G(()=>{if(e)return ws.acquire(t)},[e,t])}function Es({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`mounted`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=q.useState(0),[d,f]=q.useState(0),p=l===0,m=go(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0)return!1;if(`touches`in t){if(t.type===`touchend`){if(t.changedTouches.length!==1||t.touches.length!==0)return!1}else if(t.touches.length!==1)return!1}let n=qi(t);if(p&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||Z(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:p});return Ts(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(u(t),f(n))}),G(()=>{!r&&!i&&(u(0),f(0))},[r,i]),G(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(l+1,d+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,l,d,t]),Fo(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var Ds={...ss,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},Os=class extends Qo{constructor(e,t,n){let r=new Lo,i=ks(e,r,t,n);super(i,As(r),Ds)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(Mo(this.state,e,t.trigger)))}};function ks(e,t,n,r=!1){return{...ts(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function As(e){return{popupRef:q.createRef(),backdropRef:q.createRef(),internalBackdropRef:q.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function js(e,t){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=t,p=e===`drawer`,m=e===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=Br(!0),y={modal:h,disablePointerDismissal:g,nested:v!=null,role:_},b=Ao((e,t)=>new Os({open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y},e,t),!0);b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`);Io(b,x),No(b);let{forceUnmount:w}=Po(x,b);q.useImperativeHandle(l,()=>({unmount:w,close:()=>b.setOpen(!1,ti(ci))}),[w,b]);let T=x||S||u!=null;return(0,X.jsxs)(zr.Provider,{value:b,children:[u&&(0,X.jsx)(jo,{handle:u,store:b}),T&&(0,X.jsx)(Es,{store:b,parentContext:v?.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})}var Ms=Ho(function(e){return js(`dialog`,e)}),Ns=q.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Br(),c=hi(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),Xe(`h2`,e,{ref:t,props:[{id:c},o]})}),Q=r();function Ps(e){let t=(0,Q.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,X.jsx)(Ms,{"data-slot":`dialog`,...n}),t[2]=n,t[3]=r),r}function Fs(e){let t=(0,Q.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,X.jsx)(ms,{"data-slot":`dialog-portal`,...n}),t[2]=n,t[3]=r),r}function Is(e){let t=(0,Q.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=Ee(`fixed inset-0 isolate z-50 bg-black/20 duration-100 supports-backdrop-filter:backdrop-blur-sm data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(ei,{"data-slot":`dialog-overlay`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ls(e){let t=(0,Q.c)(15),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,children:n,showCloseButton:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0||a,s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,X.jsx)(Is,{}),t[5]=s):s=t[5];let c;t[6]===r?c=t[7]:(c=Ee(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-none bg-popover p-6 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,r),t[6]=r,t[7]=c);let l;t[8]===o?l=t[9]:(l=o&&(0,X.jsxs)(li,{"data-slot":`dialog-close`,render:(0,X.jsx)(He,{variant:`ghost`,className:`absolute top-5 right-5 bg-secondary`,size:`icon-sm`}),children:[(0,X.jsx)(ct,{}),(0,X.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[8]=o,t[9]=l);let u;return t[10]!==n||t[11]!==i||t[12]!==c||t[13]!==l?(u=(0,X.jsxs)(Fs,{children:[s,(0,X.jsxs)(ds,{"data-slot":`dialog-content`,className:c,...i,children:[n,l]})]}),t[10]=n,t[11]=i,t[12]=c,t[13]=l,t[14]=u):u=t[14],u}function Rs(e){let t=(0,Q.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=Ee(`flex flex-col gap-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(`div`,{"data-slot":`dialog-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function zs(e){let t=(0,Q.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=Ee(`text-lg leading-none font-semibold tracking-wider uppercase`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(Ns,{"data-slot":`dialog-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Bs(e){let t=(0,Q.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=Ee(`mt-0.5 text-sm leading-relaxed text-muted-foreground *:[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,X.jsx)(gi,{"data-slot":`dialog-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Vs(e){let t=(0,Q.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=Ee(`pointer-events-none inline-flex h-5.5 w-fit min-w-5.5 items-center justify-center gap-1 rounded-none bg-muted px-1.5 font-sans text-xs font-medium text-muted-foreground select-none in-data-[slot=input-group]:bg-input in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(`kbd`,{"data-slot":`kbd`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Hs(e){let t=(0,Q.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=Ee(`inline-flex items-center gap-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(`kbd`,{"data-slot":`kbd-group`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Us(e,t){let n=t.x-e.x,r=t.y-e.y;return n*n+r*r>=625e-8}var Ws=ae([`#da702c`,`#d0a215`,`#3aa99f`,`#4385be`,`#8b7ec8`,`#ce5d97`]),Gs=w({color:Ws,id:C(S,v(D(32))),name:C(S,v(D(32))),x:C(z,v(x({maximum:1,minimum:0}))),y:C(z,v(x({maximum:1,minimum:0})))}),Ks=p(Gs),qs=Gs.mapFields(e=>({...e,id:e.id.check(Se(/^(?!server-)/u))})),Js=class extends me(L(`portfolio.join`,{payload:w(C(qs.fields,j([`color`,`id`,`name`]))),stream:!0,success:Ks}),L(`portfolio.move`,{payload:w(C(qs.fields,j([`color`,`id`,`x`,`y`])))})){},Ys=class extends ce()(`@deslop/portfolio/lib/utils/RpcClient`,{group:Js,protocol:nt(`@deslop/portfolio`)}){},Xs=`/assets/icon-yosI2-iT.svg`,Zs=[`1`,`2`,`3`,`4`,`5`,`6`],Qs=[`profile`,`expertise`,`experience`,`projects`,`education`,`contact`],$s={lastFrameAt:0,targetX:0,targetY:0,viewportHeight:0,viewportWidth:0,x:0,y:0};function ec(e){return Math.floor(g.defaultValue().nextDoubleUnsafe()*e)}function tc(){let e=`0123456789abcdef`;return C(le(6,()=>e[ec(be(e))]??`0`),s(``))}function nc(e){let t=y(Ws.literals,t=>t!==e);return t[ec(he(t))]??Ws.literals[0]}function rc(){let e=sessionStorage.getItem(`portfolio.id`),t=sessionStorage.getItem(`portfolio.name`),n=Ws.literals[ec(he(Ws.literals))]??Ws.literals[0];if(O(e)&&O(t))return{color:n,id:e,name:t};let r=tc(),i={color:n,id:`v-${r}`,name:`Guest-${C(r,u(0,3))}`};return sessionStorage.setItem(`portfolio.id`,i.id),sessionStorage.setItem(`portfolio.name`,i.name),i}var $=rc(),ic=_e(Ys.runtime.atom(C(Ys,te(e=>e(`portfolio.join`,$)),k,ve(xe(`2 seconds`)),c(()=>({trails:[],visitors:[]}),(e,t)=>{let n={trails:ue(b(e.trails,y(t,t=>!R(e.visitors,e=>e.id===t.id&&e.color===t.color&&e.x===t.x&&e.y===t.y))),180),visitors:t};return pe(n,[n])}))));function ac(e,t,n){e.style.setProperty(`--cursor-transform`,`translate3d(${t}px, ${n}px, 0)`)}function oc(e,t){return{lastFrameAt:0,targetX:e.x,targetY:e.y,viewportHeight:t.height,viewportWidth:t.width,x:e.x,y:e.y}}function sc(e){return Math.abs(e.target-e.position)<.3?e.target:A({maximum:e.maximum,minimum:0})(e.position+(e.target-e.position)*e.catchUp)}function cc(e,t){let n=_(e.lastFrameAt>0,{onFalse:()=>16,onTrue:()=>A({maximum:64,minimum:8})(t-e.lastFrameAt)}),r=e.targetX-e.x,i=e.targetY-e.y,a=f(1,(1-Math.exp(-n/130))*(1+Math.hypot(r,i)/220)),o=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;return{...e,lastFrameAt:t,x:_(o,{onFalse:()=>sc({catchUp:a,maximum:e.viewportWidth,position:e.x,target:e.targetX}),onTrue:()=>e.targetX}),y:_(o,{onFalse:()=>sc({catchUp:a,maximum:e.viewportHeight,position:e.y,target:e.targetY}),onTrue:()=>e.targetY})}}function lc(e,t,n){let r={x:t.x*n.width,y:t.y*n.height};return e.viewportWidth!==n.width||e.viewportHeight!==n.height?oc(r,n):e.targetX===r.x&&e.targetY===r.y?e:{...e,targetX:r.x,targetY:r.y}}function uc(e,t){t(requestAnimationFrame(()=>{e()?uc(e,t):t(0)}))}function dc(e){return addEventListener(`resize`,e),()=>{removeEventListener(`resize`,e)}}function fc(e){let t=(0,Q.c)(13),n;t[0]===e.number?n=t[1]:(n=(0,X.jsx)(`span`,{"aria-hidden":!0,className:`text-muted-foreground font-mono text-xs tabular-nums`,children:e.number}),t[0]=e.number,t[1]=n);let r;t[2]!==e.id||t[3]!==e.label?(r=(0,X.jsx)(`h2`,{id:e.id,className:`tracking-label text-xs font-semibold uppercase`,children:e.label}),t[2]=e.id,t[3]=e.label,t[4]=r):r=t[4];let i;t[5]!==n||t[6]!==r?(i=(0,X.jsxs)(`div`,{className:`flex items-baseline gap-3`,children:[n,r]}),t[5]=n,t[6]=r,t[7]=i):i=t[7];let a;t[8]===e.meta?a=t[9]:(a=l(e.meta)&&(0,X.jsx)(`span`,{className:`text-muted-foreground text-right font-mono text-xs tabular-nums`,children:e.meta}),t[8]=e.meta,t[9]=a);let o;return t[10]!==i||t[11]!==a?(o=(0,X.jsxs)(`div`,{className:`border-border flex items-center justify-between gap-4 border-t pt-3 pb-5`,children:[i,a]}),t[10]=i,t[11]=a,t[12]=o):o=t[12],o}function pc(e){let t=(0,Q.c)(14),n=e.id,r;t[0]===e.className?r=t[1]:(r=Ee(`relative z-10 mx-auto w-full max-w-3xl px-6 select-text sm:px-8`,e.className),t[0]=e.className,t[1]=r);let i;t[2]!==e.id||t[3]!==e.label||t[4]!==e.meta||t[5]!==e.number?(i=(0,X.jsx)(fc,{id:e.id,label:e.label,meta:e.meta,number:e.number}),t[2]=e.id,t[3]=e.label,t[4]=e.meta,t[5]=e.number,t[6]=i):i=t[6];let a;t[7]!==e.children||t[8]!==i?(a=(0,X.jsxs)(`div`,{className:`bg-background`,children:[i,e.children]}),t[7]=e.children,t[8]=i,t[9]=a):a=t[9];let o;return t[10]!==e.id||t[11]!==r||t[12]!==a?(o=(0,X.jsx)(`section`,{"aria-labelledby":n,className:r,children:a}),t[10]=e.id,t[11]=r,t[12]=a,t[13]=o):o=t[13],o}function mc(e){let t=(0,Q.c)(11),n,r,i,a;if(t[0]!==e.trails||t[1]!==e.viewport){let s=F();ie(e.trails,o(),(t,n)=>{let r={col:Math.floor(n.x*e.viewport.width/26),row:Math.floor(n.y*e.viewport.height/26),trail:n},i=C(t,ne(n.id),oe);if(m(i))return N(s,{color:r.trail.color,x:r.col*26+1,y:r.row*26+1}),ge(t,n.id,r);let a=h(Math.abs(r.col-i.col),Math.abs(r.row-i.row));for(let e of le(a+1,d)){let t=_(a===0,{onFalse:()=>e/a,onTrue:gc}),n=B(i.col+(r.col-i.col)*t,0),o=B(i.row+(r.row-i.row)*t,0),c=_(t<1,{onFalse:()=>r.trail.color,onTrue:()=>i.trail.color});N(s,{color:c,x:n*26+1,y:o*26+1})}return ge(t,n.id,r)}),n=!0,r=`pointer-events-none fixed inset-0 z-1 size-full print:hidden`,i=`crispEdges`,a=H(T(s),hc),t[0]=e.trails,t[1]=e.viewport,t[2]=n,t[3]=r,t[4]=i,t[5]=a}else n=t[2],r=t[3],i=t[4],a=t[5];let s;return t[6]!==n||t[7]!==r||t[8]!==i||t[9]!==a?(s=(0,X.jsx)(`svg`,{"aria-hidden":n,className:r,shapeRendering:i,children:a}),t[6]=n,t[7]=r,t[8]=i,t[9]=a,t[10]=s):s=t[10],s}function hc(e,t){return(0,X.jsx)(`rect`,{x:e.x,y:e.y,width:24,height:24,fill:e.color,fillOpacity:.22},t)}function gc(){return 1}function _c(e){let t=(0,Q.c)(11),n=e.flip===!0&&`-translate-x-full flex-row-reverse`,r;t[0]===n?r=t[1]:(r=Ee(`flex items-center gap-1`,n),t[0]=n,t[1]=r);let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,X.jsx)(ot,{className:`size-4 text-(--cursor-color)`}),t[2]=i):i=t[2];let a;if(t[3]!==e.label||t[4]!==e.show){let n;t[6]===e.label?n=t[7]:(n=()=>(0,X.jsx)(`span`,{className:`bg-background text-foreground rounded-none border border-(--cursor-color) px-1.5 py-0.5 font-mono text-xs leading-none whitespace-nowrap`,children:e.label}),t[6]=e.label,t[7]=n),a=_(e.show===!1,{onFalse:n,onTrue:vc}),t[3]=e.label,t[4]=e.show,t[5]=a}else a=t[5];let o;return t[8]!==r||t[9]!==a?(o=(0,X.jsxs)(`div`,{className:r,children:[i,a]}),t[8]=r,t[9]=a,t[10]=o):o=t[10],o}function vc(){return null}function yc(e){return e.length*8+28}function bc(e,t,n){let r=e*t.width,i=yc(n),a=(t.width-768)/2,o=(t.width+768)/2;return r<a?r+i>a:r<=o||r-i<o}function xc(e){let t=(0,Q.c)(17),n=(0,q.useRef)(null),r=(0,q.useRef)($s),i=(0,q.useRef)(0),a,o;t[0]!==e.cursor||t[1]!==e.viewport?(a=()=>{r.current=lc(r.current,e.cursor,e.viewport),n.current!==null&&ac(n.current,r.current.x,r.current.y);function t(e){n.current!==null&&(r.current=cc(r.current,e),ac(n.current,r.current.x,r.current.y),(r.current.x!==r.current.targetX||r.current.y!==r.current.targetY)&&(i.current=requestAnimationFrame(t)))}return i.current=requestAnimationFrame(t),()=>{cancelAnimationFrame(i.current)}},o=[e.cursor,e.viewport],t[0]=e.cursor,t[1]=e.viewport,t[2]=a,t[3]=o):(a=t[2],o=t[3]),(0,q.useLayoutEffect)(a,o);let s;t[4]===e.cursor.color?s=t[5]:(s={"--cursor-color":e.cursor.color},t[4]=e.cursor.color,t[5]=s);let c=e.cursor.x*e.viewport.width+yc(e.cursor.name)>e.viewport.width-8,l=e.cursor.name,u;t[6]!==e.cursor.name||t[7]!==e.cursor.x||t[8]!==e.viewport?(u=bc(e.cursor.x,e.viewport,e.cursor.name),t[6]=e.cursor.name,t[7]=e.cursor.x,t[8]=e.viewport,t[9]=u):u=t[9];let d=!u,f;t[10]!==e.cursor.name||t[11]!==c||t[12]!==d?(f=(0,X.jsx)(_c,{flip:c,label:l,show:d}),t[10]=e.cursor.name,t[11]=c,t[12]=d,t[13]=f):f=t[13];let p;return t[14]!==s||t[15]!==f?(p=(0,X.jsx)(`div`,{ref:n,"aria-hidden":!0,className:`pointer-events-none fixed top-0 left-0 z-5 transform-(--cursor-transform) will-change-transform`,style:s,children:f}),t[14]=s,t[15]=f,t[16]=p):p=t[16],p}function Sc(e){let t=(0,Q.c)(12),n=`translate3d(var(--pointer-x, ${e.cursor.x*e.viewport.width}px), var(--pointer-y, ${e.cursor.y*e.viewport.height}px), 0)`,r;t[0]!==e.cursor.color||t[1]!==n?(r={"--cursor-color":e.cursor.color,"--cursor-transform":n},t[0]=e.cursor.color,t[1]=n,t[2]=r):r=t[2];let i=e.cursor.x*e.viewport.width+yc(`You`)>e.viewport.width-8,a;t[3]!==e.cursor.x||t[4]!==e.viewport?(a=bc(e.cursor.x,e.viewport,`You`),t[3]=e.cursor.x,t[4]=e.viewport,t[5]=a):a=t[5];let o=!a,s;t[6]!==i||t[7]!==o?(s=(0,X.jsx)(_c,{flip:i,label:`You`,show:o}),t[6]=i,t[7]=o,t[8]=s):s=t[8];let c;return t[9]!==r||t[10]!==s?(c=(0,X.jsx)(`div`,{"aria-hidden":!0,className:`pointer-events-none fixed top-0 left-0 z-20 transform-(--cursor-transform)`,style:r,children:s}),t[9]=r,t[10]=s,t[11]=c):c=t[11],c}function Cc(e){let t=(0,Q.c)(12),n=e.external===!0,r=e.href,i;t[0]===n?i=t[1]:(i=_(n,{onFalse:Dc,onTrue:Ec}),t[0]=n,t[1]=i);let a;t[2]===n?a=t[3]:(a=_(n,{onFalse:Tc,onTrue:wc}),t[2]=n,t[3]=a);let o;t[4]===n?o=t[5]:(o=n&&(0,X.jsx)(it,{className:`size-3.5`}),t[4]=n,t[5]=o);let s;return t[6]!==e.children||t[7]!==e.href||t[8]!==i||t[9]!==a||t[10]!==o?(s=(0,X.jsxs)(`a`,{href:r,target:i,rel:a,className:`text-foreground decoration-border hover:text-primary hover:decoration-primary inline-flex h-11 min-w-11 items-center gap-1.5 text-sm underline underline-offset-4 transition-colors sm:h-auto sm:pb-0.5`,children:[e.children,o]}),t[6]=e.children,t[7]=e.href,t[8]=i,t[9]=a,t[10]=o,t[11]=s):s=t[11],s}function wc(){return`noopener noreferrer`}function Tc(){}function Ec(){return`_blank`}function Dc(){}function Oc(){let e=(0,Q.c)(5),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsxs)(`div`,{className:`border-border flex items-center justify-between gap-4 border-t pt-3 pb-10 sm:pb-14`,children:[(0,X.jsxs)(`div`,{className:`flex items-baseline gap-3`,children:[(0,X.jsx)(`span`,{"aria-hidden":!0,className:`text-muted-foreground font-mono text-xs tabular-nums`,children:`01`}),(0,X.jsx)(`p`,{className:`tracking-label text-xs font-semibold uppercase`,children:`Profile`})]}),(0,X.jsx)(`img`,{alt:``,className:`pixelated size-6 shrink-0 opacity-90 sm:size-7`,src:Xs})]}),e[0]=t):t=e[0];let n,r,i;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-4 gap-y-1`,children:[(0,X.jsx)(`p`,{className:`text-sm font-medium`,children:Me.title}),(0,X.jsx)(`p`,{className:`text-muted-foreground font-mono text-xs`,children:Me.location})]}),r=(0,X.jsxs)(`h1`,{id:`profile-title`,className:`font-heading mt-4 text-5xl leading-none tracking-tight text-balance sm:text-7xl`,children:[Me.firstName,` `,Me.lastName]}),i=(0,X.jsx)(`p`,{className:`text-muted-foreground mt-6 max-w-xl text-base leading-relaxed text-pretty sm:text-lg`,children:Pe}),e[1]=n,e[2]=r,e[3]=i):(n=e[1],r=e[2],i=e[3]);let a;return e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,X.jsx)(`section`,{"aria-labelledby":`profile-title`,className:`relative z-10 mx-auto w-full max-w-3xl px-6 pt-10 pb-12 select-text sm:px-8 sm:pt-16 sm:pb-16`,children:(0,X.jsxs)(`div`,{className:`bg-background`,children:[t,n,r,i,(0,X.jsxs)(`div`,{className:`mt-8 flex flex-col items-start sm:flex-row sm:flex-wrap sm:items-center sm:gap-x-7`,children:[(0,X.jsx)(Cc,{href:`#section-projects`,children:`Selected work`}),(0,X.jsx)(Cc,{href:Ye.email.href,children:Ye.email.value}),(0,X.jsx)(Cc,{external:!0,href:Ye.github.href,children:Ye.github.value}),(0,X.jsx)(Cc,{href:`/cv`,children:`CV`})]})]})}),e[4]=a):a=e[4],a}function kc(){let e=(0,Q.c)(4),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=he(Je),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=H(Je,jc),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,X.jsx)(`dt`,{className:`tracking-label text-muted-foreground w-36 shrink-0 text-xs font-semibold uppercase`,children:`Languages`}),e[2]=r):r=e[2];let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,X.jsx)(pc,{className:`pb-12 sm:pb-14`,id:`section-skills`,label:`Expertise`,meta:`${t} disciplines`,number:`04`,children:(0,X.jsxs)(`dl`,{className:`divide-border flex flex-col divide-y`,children:[n,(0,X.jsxs)(`div`,{className:`flex flex-col gap-1 py-3.5 sm:flex-row sm:gap-8`,children:[r,(0,X.jsx)(`dd`,{className:`text-foreground/90 text-sm leading-relaxed`,children:C(ze,H(Ac),s(` · `))})]})]})}),e[3]=i):i=e[3],i}function Ac(e){return`${e.language} (${e.level})`}function jc(e){return(0,X.jsxs)(`div`,{className:`flex flex-col gap-1 py-3.5 sm:flex-row sm:gap-8`,children:[(0,X.jsx)(`dt`,{className:`tracking-label text-muted-foreground w-36 shrink-0 text-xs font-semibold uppercase`,children:e.area}),(0,X.jsx)(`dd`,{className:`text-foreground/90 text-sm leading-relaxed`,children:e.items})]},e.area)}function Mc(){let e=(0,Q.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=he(Ge),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(pc,{className:`pb-12 sm:pb-14`,id:`section-projects`,label:`Selected work`,meta:`${t} selected`,number:`02`,children:(0,X.jsx)(`ol`,{className:`divide-border flex flex-col divide-y`,children:H(Ge,Nc)})}),e[1]=n):n=e[1],n}function Nc(e){return(0,X.jsxs)(`li`,{className:`py-5`,children:[(0,X.jsxs)(`div`,{className:`flex items-baseline justify-between gap-4`,children:[(0,X.jsx)(`h3`,{className:`text-base font-semibold tracking-tight`,children:e.name}),(0,X.jsxs)(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`View ${e.name} on GitHub`,className:`text-muted-foreground hover:text-primary tracking-label -mr-2 inline-flex h-11 items-center gap-1 px-2 text-xs font-semibold uppercase transition-colors sm:h-auto sm:py-0`,children:[`GitHub`,(0,X.jsx)(it,{className:`size-3.5`})]})]}),(0,X.jsx)(`p`,{className:`text-muted-foreground mt-0.5 text-sm`,children:e.role}),(0,X.jsx)(`p`,{className:`text-foreground/90 mt-2 text-sm leading-relaxed`,children:e.description}),(0,X.jsx)(`p`,{className:`text-muted-foreground mt-2 font-mono text-xs`,children:e.stack})]},e.name)}function Pc(){let e=(0,Q.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=he(qe),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(pc,{className:`pb-12 sm:pb-14`,id:`section-experience`,label:`Experience`,meta:`${t} roles`,number:`03`,children:(0,X.jsx)(`ol`,{className:`divide-border flex flex-col divide-y`,children:H(qe,Fc)})}),e[1]=n):n=e[1],n}function Fc(e){return(0,X.jsxs)(`li`,{className:`flex flex-col gap-2 py-5 sm:flex-row sm:gap-8`,children:[(0,X.jsxs)(`div`,{className:`text-muted-foreground flex flex-row flex-wrap items-baseline gap-x-2 font-mono text-xs sm:w-40 sm:shrink-0 sm:flex-col sm:items-start sm:gap-1`,children:[(0,X.jsx)(`p`,{className:`whitespace-nowrap tabular-nums`,children:e.period}),l(e.location)&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{"aria-hidden":!0,className:`sm:hidden`,children:`·`}),(0,X.jsx)(`p`,{className:`whitespace-nowrap`,children:e.location})]})]}),(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-2`,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`h3`,{className:`text-sm font-semibold tracking-tight`,children:e.company}),(0,X.jsxs)(`p`,{className:`text-muted-foreground text-sm`,children:[e.role,l(e.note)&&(0,X.jsxs)(`span`,{className:`italic`,children:[` · `,e.note]})]})]}),(0,X.jsx)(`ul`,{className:`flex flex-col gap-1.5`,children:H(e.highlights,Ic)})]})]},e.company)}function Ic(e){return(0,X.jsxs)(`li`,{className:`text-foreground/90 flex gap-3 text-sm leading-relaxed`,children:[(0,X.jsx)(`span`,{"aria-hidden":!0,className:`bg-muted-foreground/60 mt-2.5 h-px w-3 shrink-0`}),(0,X.jsx)(`span`,{children:e})]},e)}function Lc(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsx)(pc,{className:`pb-12 sm:pb-14`,id:`section-education`,label:`Education`,number:`05`,children:(0,X.jsx)(`ol`,{className:`divide-border flex flex-col divide-y`,children:H(We,Rc)})}),e[0]=t):t=e[0],t}function Rc(e){return(0,X.jsxs)(`li`,{className:`flex flex-col gap-1.5 py-5 sm:flex-row sm:gap-8`,children:[(0,X.jsx)(`p`,{className:`text-muted-foreground font-mono text-xs whitespace-nowrap tabular-nums sm:w-40 sm:shrink-0`,children:e.period}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`h3`,{className:`text-sm font-semibold tracking-tight`,children:e.degree}),(0,X.jsxs)(`p`,{className:`text-muted-foreground mt-0.5 text-sm`,children:[e.school,l(e.grade)&&(0,X.jsxs)(X.Fragment,{children:[` · `,(0,X.jsx)(`span`,{className:`font-mono text-xs tabular-nums`,children:e.grade})]})]})]})]},e.school)}function zc(){let e=(0,Q.c)(1),t;if(e[0]===Symbol.for(`react.memo_cache_sentinel`)){let n=[Ye.email,Ye.pec,Ye.phone,Ye.github,{href:`/cv`,label:`CV`,value:`${Me.portfolio}/cv`}];t=(0,X.jsxs)(pc,{className:`pb-24 sm:pb-28`,id:`section-contact`,label:`Contact`,meta:`${he(n)} ways`,number:`06`,children:[(0,X.jsx)(`div`,{className:`flex flex-col`,children:H(n,Bc)}),(0,X.jsxs)(`p`,{className:`text-muted-foreground mt-10 font-mono text-xs`,children:[`© 2026 `,Me.firstName,` `,Me.lastName,` · VAT `,Me.vat]})]}),e[0]=t}else t=e[0];return t}function Bc(e){let t=ye(`http`)(e.href);return(0,X.jsxs)(`a`,{href:e.href,className:`group border-border hover:text-primary flex min-h-11 items-center justify-between gap-6 border-b py-2.5 text-sm transition-colors last:border-b-0`,target:_(t,{onFalse:Wc,onTrue:Uc}),rel:_(t,{onFalse:Hc,onTrue:Vc}),children:[(0,X.jsx)(`span`,{className:`tracking-label text-muted-foreground group-hover:text-primary text-xs font-semibold uppercase`,children:e.label}),(0,X.jsx)(`span`,{className:`group-hover:text-primary text-right font-mono text-xs break-all`,children:e.value})]},e.label)}function Vc(){return`noopener noreferrer`}function Hc(){}function Uc(){return`_blank`}function Wc(){}function Gc(e){let t=(0,Q.c)(5),n;t[0]===e.label?n=t[1]:(n=(0,X.jsx)(`span`,{className:`text-sm`,children:e.label}),t[0]=e.label,t[1]=n);let r;return t[2]!==e.keys||t[3]!==n?(r=(0,X.jsxs)(`div`,{className:`flex items-center justify-between gap-6 py-3`,children:[n,e.keys]}),t[2]=e.keys,t[3]=n,t[4]=r):r=t[4],r}function Kc(e){let t=(0,Q.c)(11),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsxs)(Rs,{children:[(0,X.jsx)(zs,{children:`Keyboard`}),(0,X.jsx)(Bs,{children:`The page moves without a mouse.`})]}),t[0]=n):n=t[0];let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,X.jsx)(Gc,{keys:(0,X.jsxs)(Hs,{children:[(0,X.jsx)(Vs,{children:`j`}),(0,X.jsx)(Vs,{children:`k`})]}),label:`Next / previous section`}),t[1]=r):r=t[1];let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,X.jsx)(Vs,{children:`1`}),t[2]=i):i=t[2];let a;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,X.jsxs)(Hs,{children:[i,`–`,(0,X.jsx)(Vs,{children:`6`})]}),t[3]=a):a=t[3];let o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,X.jsx)(Gc,{keys:a,label:(0,X.jsxs)(`span`,{className:`flex flex-col gap-1`,children:[`Jump to a section`,(0,X.jsx)(`span`,{className:`text-muted-foreground font-mono text-xs`,children:C(H(Qs,qc),s(` · `))})]})}),t[4]=o):o=t[4];let c;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,X.jsx)(Gc,{keys:(0,X.jsx)(Vs,{children:`r`}),label:`Change cursor color`}),t[5]=c):c=t[5];let l;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,X.jsx)(Gc,{keys:(0,X.jsx)(Vs,{children:`?`}),label:`Toggle this panel`}),t[6]=l):l=t[6];let u;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,X.jsxs)(Ls,{className:`sm:max-w-sm`,children:[n,(0,X.jsxs)(`div`,{className:`divide-border flex flex-col divide-y`,children:[r,o,c,l,(0,X.jsx)(Gc,{keys:(0,X.jsx)(Vs,{children:`Esc`}),label:`Close this panel`})]})]}),t[7]=u):u=t[7];let d;return t[8]!==e.onOpenChange||t[9]!==e.open?(d=(0,X.jsx)(Ps,{open:e.open,onOpenChange:e.onOpenChange,children:u}),t[8]=e.onOpenChange,t[9]=e.open,t[10]=d):d=t[10],d}function qc(e,t){return`${t+1} ${e}`}function Jc(e){let t=(0,Q.c)(16),n;t[0]===e.visitors?n=t[1]:(n=C(P(e.visitors,$c),I({onNone:Qc,onSome:Zc})),t[0]=e.visitors,t[1]=n);let r;t[2]===n?r=t[3]:(r=(0,X.jsx)(`span`,{className:`size-1.5 rounded-full bg-(--identity-color)`,style:{"--identity-color":n}}),t[2]=n,t[3]=r);let i;t[4]===e.visitors?i=t[5]:(i=he(e.visitors),t[4]=e.visitors,t[5]=i);let a;t[6]===i?a=t[7]:(a=(0,X.jsx)(`span`,{className:`text-foreground tabular-nums`,children:i}),t[6]=i,t[7]=a);let o;t[8]===e.visitors?o=t[9]:(o=_(he(e.visitors)===1,{onFalse:Xc,onTrue:Yc}),t[8]=e.visitors,t[9]=o);let s;t[10]===o?s=t[11]:(s=(0,X.jsx)(`span`,{className:`text-muted-foreground`,children:o}),t[10]=o,t[11]=s);let c;return t[12]!==r||t[13]!==a||t[14]!==s?(c=(0,X.jsxs)(X.Fragment,{children:[r,a,s]}),t[12]=r,t[13]=a,t[14]=s,t[15]=c):c=t[15],c}function Yc(){return`visitor`}function Xc(){return`visitors`}function Zc(e){return e.color}function Qc(){return $.color}function $c(e){return e.id===$.id}function el(e){let t=(0,Q.c)(12),n;if(t[0]!==e.state||t[1]!==e.visitors){let r;t[3]===e.state?r=t[4]:(r=()=>(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{className:`bg-muted-foreground/50 size-1.5 rounded-full`}),(0,X.jsx)(`span`,{className:`text-muted-foreground`,children:_(e.state===`offline`,{onFalse:nl,onTrue:tl})})]}),t[3]=e.state,t[4]=r);let i;t[5]===e.visitors?i=t[6]:(i=()=>(0,X.jsx)(Jc,{visitors:e.visitors??[]}),t[5]=e.visitors,t[6]=i),n=_(e.state===`live`&&l(e.visitors),{onFalse:r,onTrue:i}),t[0]=e.state,t[1]=e.visitors,t[2]=n}else n=t[2];let r;t[7]===n?r=t[8]:(r=(0,X.jsx)(`span`,{className:`flex items-center gap-2`,children:n}),t[7]=n,t[8]=r);let i;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,X.jsx)(`span`,{className:`text-muted-foreground max-sm:hidden`,children:`j/k · ?`}),t[9]=i):i=t[9];let a;return t[10]===r?a=t[11]:(a=(0,X.jsxs)(`div`,{className:`border-border bg-background/95 pb-safe-bottom pointer-events-none fixed inset-x-0 bottom-0 z-50 flex min-h-10 items-center justify-between border-t px-3 font-mono text-xs backdrop-blur sm:px-4 print:hidden`,children:[r,i]}),t[10]=r,t[11]=a),a}function tl(){return`presence unavailable`}function nl(){return`presence connecting`}function rl(e){let t=(0,Q.c)(23),n=Dt(ic),r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,X.jsx)(`div`,{className:`trail-grid pointer-events-none fixed inset-0 z-1 print:hidden`}),t[0]=r):r=t[0];let i;t[1]!==e.viewport||t[2]!==n.value.trails?(i=(0,X.jsx)(mc,{trails:n.value.trails,viewport:e.viewport}),t[1]=e.viewport,t[2]=n.value.trails,t[3]=i):i=t[3];let a;t[4]===n.value.visitors?a=t[5]:(a=fe(P(n.value.visitors,ol),al),t[4]=n.value.visitors,t[5]=a);let o;t[6]!==e.viewport||t[7]!==a?(o=(0,X.jsx)(`div`,{className:`hidden print:hidden [@media(hover:hover)_and_(pointer:fine)]:contents`,children:(0,X.jsx)(Sc,{cursor:a,viewport:e.viewport})}),t[6]=e.viewport,t[7]=a,t[8]=o):o=t[8];let s;if(t[9]!==e.viewport||t[10]!==n.value.visitors){let r;t[12]===e.viewport?r=t[13]:(r=t=>_(t.id===$.id,{onFalse:()=>(0,X.jsx)(xc,{cursor:t,viewport:e.viewport},t.id),onTrue:il}),t[12]=e.viewport,t[13]=r),s=H(n.value.visitors,r),t[9]=e.viewport,t[10]=n.value.visitors,t[11]=s}else s=t[11];let c;t[14]===s?c=t[15]:(c=(0,X.jsx)(`div`,{className:`max-sm:hidden print:hidden`,children:(0,X.jsx)(`div`,{className:`hidden [@media(hover:hover)_and_(pointer:fine)]:contents`,children:s})}),t[14]=s,t[15]=c);let l;t[16]===n.value.visitors?l=t[17]:(l=(0,X.jsx)(el,{state:`live`,visitors:n.value.visitors}),t[16]=n.value.visitors,t[17]=l);let u;return t[18]!==i||t[19]!==o||t[20]!==c||t[21]!==l?(u=(0,X.jsxs)(X.Fragment,{children:[r,i,o,c,l]}),t[18]=i,t[19]=o,t[20]=c,t[21]=l,t[22]=u):u=t[22],u}function il(){return null}function al(){return{color:$.color,id:$.id,name:$.name,x:.5,y:.5}}function ol(e){return e.id===$.id}function sl(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsx)(el,{state:`offline`}),e[0]=t):t=e[0],t}function cl(){let e=(0,Q.c)(57),t=(0,q.useSyncExternalStore)(dc,_l,gl),n=(0,q.useSyncExternalStore)(dc,hl,ml),r;e[0]!==t||e[1]!==n?(r={height:t,width:n},e[0]=t,e[1]=n,e[2]=r):r=e[2];let i=r,a=(0,q.useRef)(null),o=(0,q.useRef)(0),s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=Ys.mutation(`portfolio.move`),e[3]=s):s=e[3];let c=Ct(s),l=(0,q.useRef)(0),u=(0,q.useRef)(null),d=(0,q.useRef)(null),p=(0,q.useRef)($.color),[g,v]=(0,q.useState)(!1),y,b;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(y=()=>()=>{cancelAnimationFrame(l.current)},b=[],e[4]=y,e[5]=b):(y=e[4],b=e[5]),(0,q.useEffect)(y,b);let x=function(){return E(a.current?.querySelectorAll(`:scope > section`)??[])},S=function(e){let t=x()[e];m(t)||(t.scrollIntoView({behavior:`auto`,block:`start`}),o.current=e)},w;e[6]===c?w=e[7]:(w=function(e){d.current={sentAt:performance.now(),x:e.x,y:e.y},c({payload:{color:p.current,id:$.id,x:e.x,y:e.y}})},e[6]=c,e[7]=w);let T=w,D;e[8]===T?D=e[9]:(D=function(){p.current=nc(p.current),T(u.current??d.current??{x:.5,y:.5})},e[8]=T,e[9]=D);let O=D,k;e[10]===T?k=e[11]:(k=function(){if(u.current!==null&&d.current!==null){if(!Us(d.current,u.current))return!1;if(performance.now()-d.current.sentAt<50)return!0}return u.current!==null&&T(u.current),!1},e[10]=T,e[11]=k);let j=k,M;e[12]!==j||e[13]!==i?(M=function(e){e.pointerType!==`touch`&&(e.currentTarget.style.setProperty(`--pointer-x`,`${e.clientX}px`),e.currentTarget.style.setProperty(`--pointer-y`,`${e.clientY}px`),i.width!==0&&i.height!==0&&(u.current={x:A({maximum:.999999,minimum:0})(e.clientX/i.width),y:A({maximum:.999999,minimum:0})(e.clientY/i.height)},l.current===0&&uc(j,e=>{l.current=e})))},e[12]=j,e[13]=i,e[14]=M):M=e[14];let N=M,P;e[15]===O?P=e[16]:(P={callback:O,hotkey:`R`},e[15]=O,e[16]=P);let F;e[17]===v?F=e[18]:(F=()=>{v(pl)},e[17]=v,e[18]=F);let I;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(I={key:`?`,shift:!0},e[19]=I):I=e[19];let L;e[20]===F?L=e[21]:(L={callback:F,hotkey:I},e[20]=F,e[21]=L),Rr([{callback:()=>{S(f(o.current+1,Zs.length-1))},hotkey:`J`},{callback:()=>{S(h(o.current-1,0))},hotkey:`K`},...H(Zs,(e,t)=>({callback:()=>{S(t)},hotkey:e})),P,L]);let R;e[22]!==o||e[23]!==x?(R=e=>{o.current=_(e.currentTarget.scrollTop+e.currentTarget.clientHeight>=e.currentTarget.scrollHeight-2,{onFalse:()=>C(x(),ee(t=>t.offsetTop<=e.currentTarget.scrollTop+2),fe(dl)),onTrue:()=>h(0,x().length-1)})},e[22]=o,e[23]=x,e[24]=R):R=e[24];let te,ne,re,ie,ae,z;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,X.jsx)(Oc,{}),ne=(0,X.jsx)(Mc,{}),re=(0,X.jsx)(Pc,{}),ie=(0,X.jsx)(kc,{}),ae=(0,X.jsx)(Lc,{}),z=(0,X.jsx)(zc,{}),e[25]=te,e[26]=ne,e[27]=re,e[28]=ie,e[29]=ae,e[30]=z):(te=e[25],ne=e[26],re=e[27],ie=e[28],ae=e[29],z=e[30]);let B;e[31]===Symbol.for(`react.memo_cache_sentinel`)?(B={color:$.color,id:$.id,name:$.name,x:.5,y:.5},e[31]=B):B=e[31];let V;e[32]===i?V=e[33]:(V=(0,X.jsx)(`div`,{className:`hidden print:hidden [@media(hover:hover)_and_(pointer:fine)]:contents`,children:(0,X.jsx)(Sc,{cursor:B,viewport:i})}),e[32]=i,e[33]=V);let oe;e[34]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,X.jsx)(el,{state:`connecting`}),e[34]=oe):oe=e[34];let se;e[35]===V?se=e[36]:(se=(0,X.jsxs)(X.Fragment,{children:[V,oe]}),e[35]=V,e[36]=se);let ce;e[37]===i?ce=e[38]:(ce=(0,X.jsx)(rl,{viewport:i}),e[37]=i,e[38]=ce);let le;e[39]!==se||e[40]!==ce?(le=(0,X.jsx)($e,{getResetKey:ul,errorComponent:sl,children:(0,X.jsx)(q.Suspense,{fallback:se,children:ce})}),e[39]=se,e[40]=ce,e[41]=le):le=e[41];let ue;e[42]===v?ue=e[43]:(ue=()=>{v(ll)},e[42]=v,e[43]=ue);let de;e[44]!==g||e[45]!==ue?(de=(0,X.jsx)(He,{variant:`outline`,size:`icon`,"aria-expanded":g,"aria-haspopup":`dialog`,"aria-label":`Toggle keyboard shortcuts`,onClick:ue,className:`mb-safe-bottom mr-safe-right fixed right-3 bottom-14 z-50 max-sm:hidden sm:right-4 print:hidden`,children:`?`}),e[44]=g,e[45]=ue,e[46]=de):de=e[46];let pe;e[47]!==v||e[48]!==g?(pe=(0,X.jsx)(Kc,{open:g,onOpenChange:v}),e[47]=v,e[48]=g,e[49]=pe):pe=e[49];let me;return e[50]!==a||e[51]!==R||e[52]!==le||e[53]!==de||e[54]!==pe||e[55]!==N?(me=(0,X.jsxs)(`div`,{ref:a,"aria-label":`Portfolio`,role:`region`,className:`focus-visible:ring-border relative min-h-0 flex-1 overflow-x-hidden overflow-y-scroll focus-visible:ring-1 focus-visible:ring-inset print:h-auto print:overflow-visible [@media(hover:hover)_and_(pointer:fine)]:cursor-none`,onKeyDown:fl,onPointerMove:N,onScroll:R,tabIndex:0,children:[te,ne,re,ie,ae,z,le,de,pe]}),e[50]=a,e[51]=R,e[52]=le,e[53]=de,e[54]=pe,e[55]=N,e[56]=me):me=e[56],me}function ll(e){return!e}function ul(){return`presence`}function dl(){return 0}function fl(e){if(e.target!==e.currentTarget)return;let t=e.currentTarget.clientHeight*.9;if(e.key===`Home`){e.preventDefault(),e.currentTarget.scrollTo({top:0});return}if(e.key===`End`){e.preventDefault(),e.currentTarget.scrollTo({top:e.currentTarget.scrollHeight});return}if(e.key===` `){e.preventDefault(),e.currentTarget.scrollBy({top:_(e.shiftKey,{onFalse:()=>t,onTrue:()=>-t})});return}let n={ArrowDown:80,ArrowUp:-80,PageDown:t,PageUp:-t}[e.key];n!==void 0&&(e.preventDefault(),e.currentTarget.scrollBy({top:n}))}function pl(e){return!e}function ml(){return 0}function hl(){return window.innerWidth}function gl(){return 0}function _l(){return window.innerHeight}export{cl as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{a as t,n,o as r}from"./react-COyt-gOi.js";import{$t as i,Cn as a,Jt as o,On as s,St as c,nn as l,rn as u}from"./effect-DM4IaHtK.js";import{F as d,a as f,c as p,i as m,l as h,n as g,o as _,r as v,s as y,t as b}from"./profile-9fIWkC_A.js";var x=e(r(),1),S=new Map([[`bold`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M214.67,68H204V40a12,12,0,0,0-12-12H64A12,12,0,0,0,52,40V68H41.33C25.16,68,12,80.56,12,96v80a12,12,0,0,0,12,12H52v28a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V188h28a12,12,0,0,0,12-12V96C244,80.56,230.84,68,214.67,68ZM76,52H180V68H76ZM180,204H76V172H180Zm40-40H204v-4a12,12,0,0,0-12-12H64a12,12,0,0,0-12,12v4H36V96c0-2.17,2.44-4,5.33-4H214.67c2.89,0,5.33,1.83,5.33,4Zm-16-44a16,16,0,1,1-16-16A16,16,0,0,1,204,120Z`}))],[`duotone`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M232,96v80H192V152H64v24H24V96c0-8.84,7.76-16,17.33-16H214.67C224.24,80,232,87.16,232,96Z`,opacity:`0.2`}),x.createElement(`path`,{d:`M214.67,72H200V40a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8V72H41.33C27.36,72,16,82.77,16,96v80a8,8,0,0,0,8,8H56v32a8,8,0,0,0,8,8H192a8,8,0,0,0,8-8V184h32a8,8,0,0,0,8-8V96C240,82.77,228.64,72,214.67,72ZM72,48H184V72H72ZM184,208H72V160H184Zm40-40H200V152a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8v16H32V96c0-4.41,4.19-8,9.33-8H214.67c5.14,0,9.33,3.59,9.33,8Zm-24-52a12,12,0,1,1-12-12A12,12,0,0,1,200,116Z`}))],[`fill`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M240,96v80a8,8,0,0,1-8,8H200v32a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V184H24a8,8,0,0,1-8-8V96c0-13.23,11.36-24,25.33-24H56V40a8,8,0,0,1,8-8H192a8,8,0,0,1,8,8V72h14.67C228.64,72,240,82.77,240,96ZM72,72H184V48H72Zm112,88H72v48H184Zm16-44a12,12,0,1,0-12,12A12,12,0,0,0,200,116Z`}))],[`light`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M214.67,74H198V40a6,6,0,0,0-6-6H64a6,6,0,0,0-6,6V74H41.33C28.47,74,18,83.87,18,96v80a6,6,0,0,0,6,6H58v34a6,6,0,0,0,6,6H192a6,6,0,0,0,6-6V182h34a6,6,0,0,0,6-6V96C238,83.87,227.53,74,214.67,74ZM70,46H186V74H70ZM186,210H70V158H186Zm40-40H198V152a6,6,0,0,0-6-6H64a6,6,0,0,0-6,6v18H30V96c0-5.51,5.08-10,11.33-10H214.67C220.92,86,226,90.49,226,96Zm-28-54a10,10,0,1,1-10-10A10,10,0,0,1,198,116Z`}))],[`regular`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M214.67,72H200V40a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8V72H41.33C27.36,72,16,82.77,16,96v80a8,8,0,0,0,8,8H56v32a8,8,0,0,0,8,8H192a8,8,0,0,0,8-8V184h32a8,8,0,0,0,8-8V96C240,82.77,228.64,72,214.67,72ZM72,48H184V72H72ZM184,208H72V160H184Zm40-40H200V152a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8v16H32V96c0-4.41,4.19-8,9.33-8H214.67c5.14,0,9.33,3.59,9.33,8Zm-24-52a12,12,0,1,1-12-12A12,12,0,0,1,200,116Z`}))],[`thin`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M214.67,76H196V40a4,4,0,0,0-4-4H64a4,4,0,0,0-4,4V76H41.33C29.57,76,20,85,20,96v80a4,4,0,0,0,4,4H60v36a4,4,0,0,0,4,4H192a4,4,0,0,0,4-4V180h36a4,4,0,0,0,4-4V96C236,85,226.43,76,214.67,76ZM68,44H188V76H68ZM188,212H68V156H188Zm40-40H196V152a4,4,0,0,0-4-4H64a4,4,0,0,0-4,4v20H28V96c0-6.62,6-12,13.33-12H214.67C222,84,228,89.38,228,96Zm-32-56a8,8,0,1,1-8-8A8,8,0,0,1,196,116Z`}))]]),C=x.forwardRef((e,t)=>x.createElement(d,{ref:t,...e,weights:S}));C.displayName=`PrinterIcon`;var w=n(),T=t();function E(e){let t=(0,w.c)(3),n;return t[0]!==e.contact.href||t[1]!==e.contact.value?(n=(0,T.jsx)(`a`,{href:e.contact.href,className:`hover:underline`,children:e.contact.value}),t[0]=e.contact.href,t[1]=e.contact.value,t[2]=n):n=t[2],n}function D(e){let t=(0,w.c)(5),n;t[0]===e.title?n=t[1]:(n=(0,T.jsx)(`h2`,{className:`text-foreground text-label tracking-label font-mono font-bold uppercase`,children:e.title}),t[0]=e.title,t[1]=n);let r;return t[2]!==e.children||t[3]!==n?(r=(0,T.jsxs)(`section`,{className:`flex flex-col gap-1`,children:[n,e.children]}),t[2]=e.children,t[3]=n,t[4]=r):r=t[4],r}function O(e){let t=(0,w.c)(15),n;t[0]===e.title?n=t[1]:(n=(0,T.jsx)(`strong`,{className:`font-semibold`,children:e.title}),t[0]=e.title,t[1]=n);let r;t[2]===e.details?r=t[3]:(r=u(e.details,k),t[2]=e.details,t[3]=r);let i;t[4]!==n||t[5]!==r?(i=(0,T.jsxs)(`h3`,{children:[n,r]}),t[4]=n,t[5]=r,t[6]=i):i=t[6];let a;t[7]===e.aside?a=t[8]:(a=(0,T.jsx)(`span`,{className:`text-foreground/70 text-label font-mono whitespace-nowrap`,children:e.aside}),t[7]=e.aside,t[8]=a);let o;t[9]!==i||t[10]!==a?(o=(0,T.jsxs)(`div`,{className:`flex flex-wrap items-baseline justify-between gap-x-4`,children:[i,a]}),t[9]=i,t[10]=a,t[11]=o):o=t[11];let s;return t[12]!==e.children||t[13]!==o?(s=(0,T.jsxs)(`div`,{className:`flex break-inside-avoid flex-col gap-0.5`,children:[o,e.children]}),t[12]=e.children,t[13]=o,t[14]=s):s=t[14],s}function k(e){return(0,T.jsxs)(`span`,{className:`text-foreground/70`,children:[` · `,e]},e)}function A(e){let t=(0,w.c)(4),n;t[0]===e.items?n=t[1]:(n=u(e.items,j),t[0]=e.items,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,T.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:n}),t[2]=n,t[3]=r),r}function j(e){return(0,T.jsxs)(`li`,{className:`flex gap-2.5`,children:[(0,T.jsx)(`span`,{"aria-hidden":!0,className:`border-foreground/75 mt-1.75 size-1 shrink-0 border-2`}),(0,T.jsx)(`span`,{children:e})]},e)}function M(){let e=(0,w.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,T.jsxs)(`svg`,{"aria-hidden":!0,className:`text-foreground pointer-events-none absolute inset-0 -z-1 size-full border-r border-current opacity-7`,children:[l(31,P),l(11,N)]}),e[0]=t):t=e[0],t}function N(e){return(0,T.jsx)(`line`,{x1:0,x2:`100%`,y1:e*26+.5,y2:e*26+.5,stroke:`currentColor`},`row-${e}`)}function P(e){return(0,T.jsx)(`line`,{x1:e*26+.5,x2:e*26+.5,y1:0,y2:`100%`,stroke:`currentColor`},`column-${e}`)}function F(){let e=(0,w.c)(18),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,T.jsx)(h,{variant:`outline`,size:`icon`,"aria-label":`Print or save as PDF`,onClick:V,className:`fixed top-3 right-3 print:hidden`,children:(0,T.jsx)(C,{})}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,T.jsx)(M,{}),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,T.jsxs)(`h1`,{className:`tracking-name text-2xl leading-none font-extrabold uppercase`,children:[f.firstName,` `,(0,T.jsx)(`span`,{className:`text-foreground/55 tracking-label mt-0.5 block text-xl font-medium`,children:f.lastName})]}),e[2]=r):r=e[2];let a;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,T.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,T.jsxs)(`p`,{className:`text-label tracking-label flex items-center gap-2 whitespace-nowrap uppercase`,children:[(0,T.jsx)(`span`,{"aria-hidden":!0,className:`border-foreground size-2 border-4`}),f.title]}),(0,T.jsx)(`p`,{className:`font-document text-document`,children:p})]}),e[3]=a):a=e[3];let o,c,l;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,T.jsx)(E,{contact:b.phone}),c=(0,T.jsx)(`br`,{}),l=(0,T.jsx)(E,{contact:b.email}),e[4]=o,e[5]=c,e[6]=l):(o=e[4],c=e[5],l=e[6]);let d,x;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,T.jsx)(E,{contact:b.github}),x=(0,T.jsx)(`br`,{}),e[7]=d,e[8]=x):(d=e[7],x=e[8]);let S,O;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,T.jsx)(E,{contact:b.pec}),S=(0,T.jsx)(`br`,{}),e[9]=S,e[10]=O):(S=e[9],O=e[10]);let k;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,T.jsxs)(`header`,{className:`border-foreground relative isolate flex h-65.5 flex-col justify-between border-b-2 pt-4 pb-3 font-mono sm:h-46`,children:[n,r,(0,T.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6`,children:[a,(0,T.jsxs)(`address`,{className:`text-foreground/70 text-label whitespace-nowrap not-italic sm:text-right`,children:[f.location,` · `,o,c,l,` · `,d,x,`PEC `,O,S,(0,T.jsx)(E,{contact:{href:`https://${f.portfolio}`,value:f.portfolio}}),` · VAT `,f.vat]})]})]}),e[11]=k):k=e[11];let A;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,T.jsx)(D,{title:`Technical Skills`,children:(0,T.jsx)(`dl`,{className:`flex flex-col gap-0.5`,children:u(y,B)})}),e[12]=A):A=e[12];let j;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,T.jsx)(D,{title:`Work Experience`,children:(0,T.jsx)(`div`,{className:`flex flex-col gap-1.5`,children:u(v,z)})}),e[13]=j):j=e[13];let N;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,T.jsx)(D,{title:`Projects`,children:(0,T.jsx)(`div`,{className:`flex flex-col gap-1.5`,children:u(_,R)})}),e[14]=N):N=e[14];let P,F;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(P=u(g,L),F=(0,T.jsx)(`strong`,{className:`font-semibold`,children:`Languages:`}),e[15]=P,e[16]=F):(P=e[15],F=e[16]);let H;return e[17]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,T.jsxs)(`div`,{className:`pb-safe-bottom min-h-0 flex-1 overflow-y-auto px-6 pt-12 select-text print:overflow-visible print:p-0`,children:[t,(0,T.jsxs)(`article`,{lang:`en`,className:`font-document text-document print:min-h-printed-page trail-grid-width mx-auto flex flex-col gap-3 print:justify-between`,children:[k,A,j,N,(0,T.jsxs)(D,{title:`Education & Languages`,children:[P,(0,T.jsxs)(`p`,{children:[F,` `,s(m,u(I),i(` · `))]})]})]})]}),e[17]=H):H=e[17],H}function I(e){return`${e.language} (${e.level})`}function L(e){return(0,T.jsx)(O,{title:e.degree,details:o([e.school,e.grade],a),aside:e.period},e.school)}function R(e){return(0,T.jsx)(O,{title:e.name,details:[e.role],aside:s(e.href,c(`https://`,``)),children:(0,T.jsx)(`p`,{children:e.description})},e.name)}function z(e){return(0,T.jsx)(O,{title:e.company,details:o([e.role,e.note,e.location],a),aside:e.period,children:(0,T.jsx)(A,{items:e.highlights})},e.company)}function B(e){return(0,T.jsxs)(`div`,{className:`flex`,children:[(0,T.jsxs)(`dt`,{className:`w-32 shrink-0 font-semibold`,children:[e.area,`:`]}),(0,T.jsx)(`dd`,{children:e.items})]},e.area)}function V(){print()}export{F as component};
|
|
1
|
+
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{a as t,n,o as r}from"./react-COyt-gOi.js";import{$t as i,Cn as a,Jt as o,On as s,St as c,nn as l,rn as u}from"./effect-DM4IaHtK.js";import{P as d,a as f,c as p,i as m,l as h,n as g,o as _,r as v,s as y,t as b}from"./profile-CAmdNQBr.js";var x=e(r(),1),S=new Map([[`bold`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M214.67,68H204V40a12,12,0,0,0-12-12H64A12,12,0,0,0,52,40V68H41.33C25.16,68,12,80.56,12,96v80a12,12,0,0,0,12,12H52v28a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V188h28a12,12,0,0,0,12-12V96C244,80.56,230.84,68,214.67,68ZM76,52H180V68H76ZM180,204H76V172H180Zm40-40H204v-4a12,12,0,0,0-12-12H64a12,12,0,0,0-12,12v4H36V96c0-2.17,2.44-4,5.33-4H214.67c2.89,0,5.33,1.83,5.33,4Zm-16-44a16,16,0,1,1-16-16A16,16,0,0,1,204,120Z`}))],[`duotone`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M232,96v80H192V152H64v24H24V96c0-8.84,7.76-16,17.33-16H214.67C224.24,80,232,87.16,232,96Z`,opacity:`0.2`}),x.createElement(`path`,{d:`M214.67,72H200V40a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8V72H41.33C27.36,72,16,82.77,16,96v80a8,8,0,0,0,8,8H56v32a8,8,0,0,0,8,8H192a8,8,0,0,0,8-8V184h32a8,8,0,0,0,8-8V96C240,82.77,228.64,72,214.67,72ZM72,48H184V72H72ZM184,208H72V160H184Zm40-40H200V152a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8v16H32V96c0-4.41,4.19-8,9.33-8H214.67c5.14,0,9.33,3.59,9.33,8Zm-24-52a12,12,0,1,1-12-12A12,12,0,0,1,200,116Z`}))],[`fill`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M240,96v80a8,8,0,0,1-8,8H200v32a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V184H24a8,8,0,0,1-8-8V96c0-13.23,11.36-24,25.33-24H56V40a8,8,0,0,1,8-8H192a8,8,0,0,1,8,8V72h14.67C228.64,72,240,82.77,240,96ZM72,72H184V48H72Zm112,88H72v48H184Zm16-44a12,12,0,1,0-12,12A12,12,0,0,0,200,116Z`}))],[`light`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M214.67,74H198V40a6,6,0,0,0-6-6H64a6,6,0,0,0-6,6V74H41.33C28.47,74,18,83.87,18,96v80a6,6,0,0,0,6,6H58v34a6,6,0,0,0,6,6H192a6,6,0,0,0,6-6V182h34a6,6,0,0,0,6-6V96C238,83.87,227.53,74,214.67,74ZM70,46H186V74H70ZM186,210H70V158H186Zm40-40H198V152a6,6,0,0,0-6-6H64a6,6,0,0,0-6,6v18H30V96c0-5.51,5.08-10,11.33-10H214.67C220.92,86,226,90.49,226,96Zm-28-54a10,10,0,1,1-10-10A10,10,0,0,1,198,116Z`}))],[`regular`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M214.67,72H200V40a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8V72H41.33C27.36,72,16,82.77,16,96v80a8,8,0,0,0,8,8H56v32a8,8,0,0,0,8,8H192a8,8,0,0,0,8-8V184h32a8,8,0,0,0,8-8V96C240,82.77,228.64,72,214.67,72ZM72,48H184V72H72ZM184,208H72V160H184Zm40-40H200V152a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8v16H32V96c0-4.41,4.19-8,9.33-8H214.67c5.14,0,9.33,3.59,9.33,8Zm-24-52a12,12,0,1,1-12-12A12,12,0,0,1,200,116Z`}))],[`thin`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M214.67,76H196V40a4,4,0,0,0-4-4H64a4,4,0,0,0-4,4V76H41.33C29.57,76,20,85,20,96v80a4,4,0,0,0,4,4H60v36a4,4,0,0,0,4,4H192a4,4,0,0,0,4-4V180h36a4,4,0,0,0,4-4V96C236,85,226.43,76,214.67,76ZM68,44H188V76H68ZM188,212H68V156H188Zm40-40H196V152a4,4,0,0,0-4-4H64a4,4,0,0,0-4,4v20H28V96c0-6.62,6-12,13.33-12H214.67C222,84,228,89.38,228,96Zm-32-56a8,8,0,1,1-8-8A8,8,0,0,1,196,116Z`}))]]),C=x.forwardRef((e,t)=>x.createElement(d,{ref:t,...e,weights:S}));C.displayName=`PrinterIcon`;var w=n(),T=t();function E(e){let t=(0,w.c)(3),n;return t[0]!==e.contact.href||t[1]!==e.contact.value?(n=(0,T.jsx)(`a`,{href:e.contact.href,className:`hover:underline`,children:e.contact.value}),t[0]=e.contact.href,t[1]=e.contact.value,t[2]=n):n=t[2],n}function D(e){let t=(0,w.c)(5),n;t[0]===e.title?n=t[1]:(n=(0,T.jsx)(`h2`,{className:`text-foreground text-label tracking-label font-mono font-bold uppercase`,children:e.title}),t[0]=e.title,t[1]=n);let r;return t[2]!==e.children||t[3]!==n?(r=(0,T.jsxs)(`section`,{className:`flex flex-col gap-1`,children:[n,e.children]}),t[2]=e.children,t[3]=n,t[4]=r):r=t[4],r}function O(e){let t=(0,w.c)(15),n;t[0]===e.title?n=t[1]:(n=(0,T.jsx)(`strong`,{className:`font-semibold`,children:e.title}),t[0]=e.title,t[1]=n);let r;t[2]===e.details?r=t[3]:(r=u(e.details,k),t[2]=e.details,t[3]=r);let i;t[4]!==n||t[5]!==r?(i=(0,T.jsxs)(`h3`,{children:[n,r]}),t[4]=n,t[5]=r,t[6]=i):i=t[6];let a;t[7]===e.aside?a=t[8]:(a=(0,T.jsx)(`span`,{className:`text-foreground/70 text-label font-mono whitespace-nowrap`,children:e.aside}),t[7]=e.aside,t[8]=a);let o;t[9]!==i||t[10]!==a?(o=(0,T.jsxs)(`div`,{className:`flex flex-wrap items-baseline justify-between gap-x-4`,children:[i,a]}),t[9]=i,t[10]=a,t[11]=o):o=t[11];let s;return t[12]!==e.children||t[13]!==o?(s=(0,T.jsxs)(`div`,{className:`flex break-inside-avoid flex-col gap-0.5`,children:[o,e.children]}),t[12]=e.children,t[13]=o,t[14]=s):s=t[14],s}function k(e){return(0,T.jsxs)(`span`,{className:`text-foreground/70`,children:[` · `,e]},e)}function A(e){let t=(0,w.c)(4),n;t[0]===e.items?n=t[1]:(n=u(e.items,j),t[0]=e.items,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,T.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:n}),t[2]=n,t[3]=r),r}function j(e){return(0,T.jsxs)(`li`,{className:`flex gap-2.5`,children:[(0,T.jsx)(`span`,{"aria-hidden":!0,className:`border-foreground/75 mt-1.75 size-1 shrink-0 border-2`}),(0,T.jsx)(`span`,{children:e})]},e)}function M(){let e=(0,w.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,T.jsxs)(`svg`,{"aria-hidden":!0,className:`text-foreground pointer-events-none absolute inset-0 -z-1 size-full border-r border-current opacity-7`,children:[l(31,P),l(11,N)]}),e[0]=t):t=e[0],t}function N(e){return(0,T.jsx)(`line`,{x1:0,x2:`100%`,y1:e*26+.5,y2:e*26+.5,stroke:`currentColor`},`row-${e}`)}function P(e){return(0,T.jsx)(`line`,{x1:e*26+.5,x2:e*26+.5,y1:0,y2:`100%`,stroke:`currentColor`},`column-${e}`)}function F(){let e=(0,w.c)(19),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,T.jsxs)(`a`,{href:`/`,className:`text-muted-foreground hover:text-foreground mt-safe-top ml-safe-left fixed top-3 left-3 z-20 inline-flex h-11 items-center gap-1.5 font-mono text-xs transition-colors sm:h-9 print:hidden`,children:[(0,T.jsx)(`span`,{"aria-hidden":!0,children:`←`}),`Portfolio`]}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,T.jsx)(h,{variant:`outline`,size:`icon-lg`,"aria-label":`Print or save as PDF`,onClick:V,className:`mt-safe-top mr-safe-right fixed top-3 right-3 print:hidden`,children:(0,T.jsx)(C,{className:`size-4`})}),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,T.jsx)(M,{}),e[2]=r):r=e[2];let a;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,T.jsxs)(`h1`,{className:`tracking-name text-2xl leading-none font-extrabold uppercase`,children:[f.firstName,` `,(0,T.jsx)(`span`,{className:`text-foreground/55 tracking-label mt-0.5 block text-xl font-medium`,children:f.lastName})]}),e[3]=a):a=e[3];let o;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,T.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,T.jsxs)(`p`,{className:`text-label tracking-label flex items-center gap-2 whitespace-nowrap uppercase`,children:[(0,T.jsx)(`span`,{"aria-hidden":!0,className:`border-foreground size-2 border-4`}),f.title]}),(0,T.jsx)(`p`,{className:`font-document text-document`,children:p})]}),e[4]=o):o=e[4];let c,l,d;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,T.jsx)(E,{contact:b.phone}),l=(0,T.jsx)(`br`,{}),d=(0,T.jsx)(E,{contact:b.email}),e[5]=c,e[6]=l,e[7]=d):(c=e[5],l=e[6],d=e[7]);let x,S;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,T.jsx)(E,{contact:b.github}),S=(0,T.jsx)(`br`,{}),e[8]=x,e[9]=S):(x=e[8],S=e[9]);let O,k;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,T.jsx)(E,{contact:b.pec}),k=(0,T.jsx)(`br`,{}),e[10]=O,e[11]=k):(O=e[10],k=e[11]);let A;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,T.jsxs)(`header`,{className:`border-foreground relative isolate flex h-65.5 flex-col justify-between border-b-2 pt-4 pb-3 font-mono sm:h-46`,children:[r,a,(0,T.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between sm:gap-6`,children:[o,(0,T.jsxs)(`address`,{className:`text-foreground/70 text-label whitespace-nowrap not-italic sm:text-right`,children:[f.location,` · `,c,l,d,` · `,x,S,`PEC `,O,k,(0,T.jsx)(E,{contact:{href:`https://${f.portfolio}`,value:f.portfolio}}),` · VAT `,f.vat]})]})]}),e[12]=A):A=e[12];let j;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,T.jsx)(D,{title:`Technical Skills`,children:(0,T.jsx)(`dl`,{className:`flex flex-col gap-0.5`,children:u(y,B)})}),e[13]=j):j=e[13];let N;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,T.jsx)(D,{title:`Work Experience`,children:(0,T.jsx)(`div`,{className:`flex flex-col gap-1.5`,children:u(v,z)})}),e[14]=N):N=e[14];let P;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,T.jsx)(D,{title:`Projects`,children:(0,T.jsx)(`div`,{className:`flex flex-col gap-1.5`,children:u(_,R)})}),e[15]=P):P=e[15];let F,H;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(F=u(g,L),H=(0,T.jsx)(`strong`,{className:`font-semibold`,children:`Languages:`}),e[16]=F,e[17]=H):(F=e[16],H=e[17]);let U;return e[18]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,T.jsxs)(`div`,{className:`pb-safe-bottom min-h-0 flex-1 overflow-y-auto px-6 pt-20 select-text sm:pt-16 print:overflow-visible print:p-0`,children:[t,n,(0,T.jsxs)(`article`,{lang:`en`,className:`font-document text-document print:min-h-printed-page trail-grid-width mx-auto flex flex-col gap-3 print:justify-between`,children:[A,j,N,P,(0,T.jsxs)(D,{title:`Education & Languages`,children:[F,(0,T.jsxs)(`p`,{children:[H,` `,s(m,u(I),i(` · `))]})]})]})]}),e[18]=U):U=e[18],U}function I(e){return`${e.language} (${e.level})`}function L(e){return(0,T.jsx)(O,{title:e.degree,details:o([e.school,e.grade],a),aside:e.period},e.school)}function R(e){return(0,T.jsx)(O,{title:e.name,details:[e.role],aside:s(e.href,c(`https://`,``)),children:(0,T.jsx)(`p`,{children:e.description})},e.name)}function z(e){return(0,T.jsx)(O,{title:e.company,details:o([e.role,e.note,e.location],a),aside:e.period,children:(0,T.jsx)(A,{items:e.highlights})},e.company)}function B(e){return(0,T.jsxs)(`div`,{className:`flex`,children:[(0,T.jsxs)(`dt`,{className:`w-32 shrink-0 font-semibold`,children:[e.area,`:`]}),(0,T.jsx)(`dd`,{children:e.items})]},e.area)}function V(){print()}export{F as component};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/cv-DkK0-RlT.js","assets/rolldown-runtime-WkwZ5CU-.js","assets/react-COyt-gOi.js","assets/effect-DM4IaHtK.js","assets/profile-CAmdNQBr.js","assets/(home)-CKhZzCp3.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{n as e,t}from"./rolldown-runtime-WkwZ5CU-.js";import{A as n,At as r,B as i,Bt as a,D as o,F as s,Ft as c,H as l,Ht as u,It as d,J as f,K as p,Lt as m,M as h,Mt as g,N as _,Nt as v,O as y,On as b,Ot as x,P as S,Pt as C,Rt as w,S as T,Tn as E,V as ee,Vt as te,W as ne,Wt as re,Xt as D,Y as ie,_ as ae,_n as O,_t as oe,at as se,b as ce,bn as le,bt as ue,c as de,cn as fe,ct as pe,d as me,dn as he,en as ge,fn as _e,ft as ve,g as ye,gn as be,gt as xe,h as Se,hn as Ce,ht as we,i as Te,it as Ee,j as De,jt as Oe,k as ke,ln as Ae,lt as je,m as Me,mn as Ne,nt as Pe,o as Fe,ot as Ie,p as Le,pn as Re,pt as ze,q as Be,qt as Ve,r as He,rt as Ue,s as We,st as Ge,un as Ke,ut as qe,v as Je,vn as Ye,vt as Xe,wn as Ze,x as Qe,xn as $e,y as et,yn as tt,z as nt}from"./effect-DM4IaHtK.js";import{a as rt,n as it,o as at,r as ot}from"./react-COyt-gOi.js";import{M as k,N as st,P as ct,a as A,c as lt,l as ut}from"./profile-CAmdNQBr.js";var j=e(at(),1),M=rt(),dt=class extends j.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?j.createElement(this.props.errorComponent??ft,{error:e[0],reset:this.reset}):this.props.children}};function ft({error:e}){let[t,n]=j.useState(!1);return(0,M.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,M.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,M.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,M.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,M.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,M.jsx)(`div`,{children:(0,M.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e?.message?(0,M.jsx)(`code`,{children:e.message}):null})}):null]})}var pt=j.createContext(null);function N(e){return j.useContext(pt)}function P(e){return e[e.length-1]}function mt(e,t){return typeof e==`function`?e(t):e}var ht=Object.prototype.hasOwnProperty;function gt(e){for(let t in e)if(ht.call(e,t))return!0;return!1}var _t=()=>Object.create(null),vt=(e,t)=>F(e,t,!0);function F(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&&!(yt(e)&&yt(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&&P(a)!==`${o-1}`||c&&P(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`?F(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`?F(d,o,n,r):o,i&&=u===d&&(a[l]===f||ht.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?_t():{};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`?F(d,u,n,r):u),p[f]=o<l?d:u):p[f]=a[o];return p}function yt(e){return!e||typeof e!=`object`?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function I(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&&!I(a,o,n,r))return!1}return!0}if(yt(e)&&yt(t)){if(n){for(let i in t)if((r||t[i]!==void 0)&&!I(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||!I(e[a],t[a],n,r)))return!1;return i===0}return!1}function bt(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 xt=/[\x00-\x1f\x7f"<>`{}]/g;function St(e){return e.replace(xt,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function Ct(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 St(t)}var wt=[`http:`,`https:`,`mailto:`,`tel:`];function Tt(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 Et=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function Dt(e,t){if(!e)return!1;if(Et.test(e))return!0;let n=Tt(e);return n?!t.has(n):!1}var Ot={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},kt=/[&><\u2028\u2029]/g;function At(e){return e.replace(kt,e=>Ot[e])}function jt(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+=Ct(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=Ct(r?e.slice(r):e)}return t}function Mt(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function Nt(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 Pt(){throw Error(`Invariant failed`)}function Ft(e){return e.replace(/\/{2,}/g,`/`)}function It(e){return e===`/`?e:e.replace(/^\/+/,``)}function L(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function Lt(e){return L(It(e))}function Rt(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function zt(e,t,n=`never`,r){if(t.includes(`//`)&&(t=Ft(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=Ft(e)),o=e.split(`/`);o.length>1&&P(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&&(P(o)===``?n===`never`&&o.pop():n===`always`&&o.push(``));let s=o.join(`/`),c=(i?Ft(s):s)||`/`;return a&&r&&r.set(a,c),c}function Bt(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 Vt(e){return e==null||e===``}function Ht(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 Ut(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&&Vt(f)){if(c===`/`&&!d)continue;f=``}o+=c+Ht(s,f,r)+(d||``)}}return o+a||`/`}function Wt(e){return e?.isNotFound===!0}var Gt=`__root__`;function Kt(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 qt(e){return e instanceof Response&&!!e.options}function Jt(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 R=4,Yt=5;function Xt(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 Zt(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 Qt(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=P(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=Zt(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=z(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=z(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=z(r,Yt);(r.pathless??=[]).push(e),r=e}let g=(t.path||!t.children)&&!t.isRoot;if(g&&u<l){let e=z(r,R);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 $t(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 z(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 en(e,t){let n=z(),r=[];function i(e,t,n,a){let[o,s,c]=Qt(!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($t);t.masksTree=n,t.flatCache=Jt(1e3)}function tn(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=on(e,t.masksTree);return t.flatCache.set(e,r),r}function nn(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=z(),Qt(t,{from:e},1,o),i.singleCache.set(a,o)),on(r,o,n)}function rn(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=on(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=cn(a.route)),t.matchCache.set(r,a),a}function an(e,t=!1){let n=z(),r=[],i={},a={},o=0;function s(e,n,c,l){if(e.init(o),e.id in i&&Pt(),i[e.id]=e,o!==0&&e.path){let t=L(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}o++;let[u,d,f]=Qt(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($t);return{processedTree:{segmentTree:n,singleCache:Jt(1e3),matchCache:Jt(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function on(e,t,n=!1){let r=e.split(`/`),i=un(e,r,t,n);if(!i)return null;let[a]=sn(e,r,i);return{route:i.node.route,rawParams:a}}function sn(e,t,n){let r=ln(n.node),i=n.node.data&&Xt(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===R)break;if(u.kind===Yt){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 cn(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function ln(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function un(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!P(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&&!mn(l,n))continue;if(i.parse){if(!pn(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==R&&mn(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===R||i.kind===2)&&mn(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&&(pn(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&fn(f,o))return n;mn(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+dn(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+dn(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+dn(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+dn(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 dn(e,t){return 2**(e-t-1)}function fn(e,t){return e===2**(t-1)-1}function pn(e,t,n){let r,i;try{[r,i]=sn(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 mn(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===R)>(e.node.kind===R)||t.node.kind===R==(e.node.kind===R)&&t.node.depth>e.node.depth)))}function hn(){try{return sessionStorage}catch{return}}var gn=`tsr-scroll-restoration-v1_3`,_n=hn();function vn(){try{return JSON.parse(_n?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var yn=vn(),bn=`data-scroll-restoration-id`,xn=e=>e.state.__TSR_key||e.href;function Sn(e){let t=e.getAttribute(bn);if(t)return`[${bn}="${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 Cn=!1,wn=`window`;function Tn(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function En(e){let t=new Set;for(let n of e){if(n===wn)continue;let e=Tn(n);e&&t.add(e)}return t}function Dn(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||xn,a=new Set,o=e=>{let t=yn[e]||={};for(let e of a)e===document?t[wn]={scrollX,scrollY}:e.isConnected&&(t[Sn(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,Cn=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{Cn||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{_n?.setItem(gn,JSON.stringify(yn))}catch{}}),addEventListener(`pageshow`,e=>{e.persisted&&(history.scrollRestoration=`manual`)})),r.r||(r.r=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.n,c=r.h,l;if(a.clear(),r.n=!0,r.h=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.e&&d&&d!==u){let e=yn[d];if(e){let t=yn[u];for(let n in e){if(n===wn){if(s)continue}else{let e=Tn(n);if(!e||s&&o&&(l??=En(o),l.has(e)))continue}t||=yn[u]={},t[n]??=e[n]}}}Cn=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=En(o));let t=e&&i&&c,s=r.e?yn[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===wn){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=Tn(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{Cn=!1}}))}function On(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 kn(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function An(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]=kn(r):Array.isArray(t)?t.push(kn(r)):n[e]=[t,kn(r)]}return n}var jn=/^(?:\s|["[{\d-]|fa|nu|tr)/,Mn=Pn(JSON.parse),Nn=Fn(JSON.stringify,JSON.parse);function Pn(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.slice(1));let r=An(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!jn.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function Fn(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&&!jn.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=On(e,r);return t?`?${t}`:``}}function In(e,t,n){let r=Lt(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=Ft(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>Ln(n,s.input({url:e})),output:({url:e})=>s.output({url:Rn(n,e)})}:s}function Ln(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 Rn(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 zn(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(()=>{Nt(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 B=`__TSR_index`,Bn=`popstate`,Vn=`beforeunload`,Hn=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function Un(e){let t=Hn.exec(e);return t?`/`+e.slice(t[0].length):e}function Wn(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`
|
|
3
|
+
\r`.includes(e)?``:encodeURIComponent(e))),Un(e)}function Gn(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=Jn(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[B];i=Kn(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[B];i=Kn(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[B]!==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 Kn(e,t){let n=Yn();return{...t,key:n,__TSR_key:n,[B]:e}}function qn(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=>Wn(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>Jn(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Yn();t.history.replaceState({[B]: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=Jn(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[B]-l.state[B],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=Gn({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(Vn,x,{capture:!0}),t.removeEventListener(Bn,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(Vn,x,{capture:!0}),t.addEventListener(Bn,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 Jn(e,t){let n=Wn(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=Yn();t={[B]: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 Yn(){return(Math.random()+1).toString(36).slice(7)}function Xn(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function Zn(e){return e.pathname+e.search+e.hash}function Qn(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function $n(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function er({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function tr(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function nr(e,t,n,r,i,a){r&&(t=t.slice(0,r)),i&&(n=n.slice(0,i));for(let r of t){if(a&&e._tx!==a)return;n.some(e=>e.routeId===r.routeId)||e.routesById[r.routeId].options.onLeave?.(r)}for(let r of n){if(a&&e._tx!==a)return;e.routesById[r.routeId].options[t.some(e=>e.routeId===r.routeId)?`onStay`:`onEnter`]?.(r)}}var rr=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:qn()),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!==`/`&&Lt(n)?In(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=zn(this.latestLocation,e),Dn(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=an(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&en(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:Jt(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:jt(e),external:!1,searchStr:o,search:vt(t?.search,i),hash:jt(r.slice(1)),state:F(t?.state,a)}}let o=Ln(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:jt(Un(o.pathname)),external:!!this.rewrite&&Xn(o,this.origin),searchStr:c,search:vt(t?.search,s),hash:jt(o.hash.slice(1)),state:F(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=rn(L(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=Jn(n.href,{});n={...n,to:Ln(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=zt(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),l=this.routesByPath[L(c)],u=c.includes(`$`),d;if(l)d=l._branch??=cn(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??Qt(!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??=cr(n.params,e),!gt(p))break;p===e&&(p=Object.assign(_t(),p));try{Object.assign(p,t(p))}catch{}}}p??=cr(n.params,lr(n.params,f)?o()[3]:ur);let m=e.leaveParams?c:Un(jt(f?Ut(c,f,p,this.pathParamsDecoder):c)),h=dr(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,sr(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},_=h.length?fr(h,g(),n):n.search===!0?g():typeof n.search==`function`?n.search(g()):n.search||ur,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:ur,S=`${m}${v}${b}`,C,w,T=!1;if(this.rewrite){let e=new URL(S,this.origin),t=e.origin,n=Rn(this.rewrite,e);C=Zn(e),Xn(n,t)?(w=n.href,T=!0):w=Un(Zn(n))}else C=Mt(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=tn(r.pathname,this.processedTree);if(t){let i=Object.assign(_t(),t.rawParams),{from:a,params:o,...s}=t.route,c=cr(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 ir(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=L(this.latestLocation.href)===L(n.href)&&I(er(n.state),er(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?Tt(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 ir(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 Zr(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($n(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`)&&Qn(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(Et.test(n)||(r=Tt(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:Xn(e,this.origin)||(n=Zn(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=_r,this.preloadRoute=e=>Qr(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?zt(e.from||``,e.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=nn(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!I(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?I(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=Bt(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??Nn,parseSearch:e.parseSearch??Mn,protocolAllowlist:e.protocolAllowlist??wt}),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=Qt(!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[`**`]:L(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?pr(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=sr(i.options.validateSearch,{...n})??void 0;l={...n,...e},f={...r,...e}}catch(e){let r=e;if(e instanceof ar||(r=new ar(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=_t(),_=i._interpolation?Ut(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{mr(i,d)}catch(e){if(x=Wt(e)||qt(e)?e:new or(e.message,{cause:e}),t?.throwOnError)throw x}let S=y?`stay`:`enter`,C;if(b)C={...b,cause:S,search:vt(y?y.search:b.search,l),_strictSearch:f,searchError:p};else{let e=Qn(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?vt(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?F(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`?vt(n.params,d):d,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=P(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=P(a),c={...e.search};for(let e of a)try{Object.assign(c,sr(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{mr(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}};async function ir(e,t,{replace:n,ignoreBlocker:r}){if(!Dt(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 ar=class extends Error{},or=class extends Error{};function sr(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new ar(`Async validation not supported`);if(n.issues)throw new ar(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 cr(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 lr(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!ht.call(e,t[1]))}var ur=Object.freeze({});function dr(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=sr(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 fr(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=mt(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 pr(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 Gt}function mr(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function hr(e,t){return e.options[t]?.preload?.()}function gr(e,t){let n=hr(e,`component`),r=hr(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function _r(e,t,n){let r=()=>t===!1?void 0:t?hr(e,t):gr(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 vr(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function yr(e,t,n){let r=e._tx;return t&&r?.[2]===n&&!r[3].some(e=>e.routeId===t)}function br(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 V=0,H=1,xr=2,U=3,W=[4];function Sr(e){return typeof e[0]==`number`}function G(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 K(e,t){return e.routesById[t.routeId]}function Cr(e,t,n){return qt(e)?[U,e]:Wt(e)?(e.routeId||=n,[xr,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[H,e]):[V,e]}function wr(e,t){let n=Cr(t,!0,e.id);if(n[0]!==H)return n;try{e.options.onError?.(n[1])}catch(t){n=Cr(t,!0,e.id)}return n}function Tr(e,t,n,r,i){return i[0].signal.aborted?W:Rr(e,t,n,wr(n,r),i)}async function Er(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=K(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 q(e,r),[i,Tr(e,t,u,a,n)]}if(c.aborted)return[i,W];let p=r.paramsError??r.searchError;if(p!==void 0)return q(e,r),[i,Tr(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{kr(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?G(a,c):a);if(c.aborted)return[i,W];let s=Rr(e,t,u,Cr(o,!1,u.id),n);if(s[0]!==V)return q(e,r),[i,s];r.context={...r.context,...o}}catch(a){return q(e,r),[i,Tr(e,t,u,a,n)]}finally{r.status=h,kr(e,r,!1,n[0])}}i()}function Dr(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 q(e,t){let n=t._flight;t._flight=void 0,Dr(e,t,n)?.abort()}function J(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=Dr(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function Or(e){for(let t of e){let e=t._flight;e&&e[2]++}}function kr(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 Ar(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 jr(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return W;if(!i)return[V,void 0];let l=n._flight;kr(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(Ar(e,t,n,r,s,a,!!o[3]))).then(e=>Cr(e,!1,r.id),e=>Cr(e,!0,r.id)).then(t=>(t[0]!==V&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===H&&l[2]?wr(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],Rr(e,t,r,await G(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return q(e,n),W}finally{kr(e,n,!1,s)}}function Mr(e,t,n){t[0]!==U&&(e.status=`success`,e.error=void 0,t[0]===V?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function Nr(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&&q(e,r)}function Pr(e,t){return t[0]===H||t[0]===xr?{...e,status:t[0]===H?`error`:`notFound`,error:t[1],_flight:void 0}:e}function Fr(e,t,n,r,i,a,o){let s=t[1][n],c=K(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(Ar(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=W)),!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,q(e,s),p=Tr(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,Dr(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?jr(e,t,s,c,g,i,a).then(t=>(Mr(s,t,l),t[0]===V&&(m&&!a[0].signal.aborted&&Nr(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[V,s.loaderData]),T=(async()=>{try{let e=_r(c,void 0,C);e&&await G(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,Tr(e,t,c,r,a)]}let r=await w;x&&r[0]===V&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,T]),!y)return w.then(e=>Pr(s,e));let E={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let ee=jr(e,t,E,c,g,i,a).then(e=>(s.isFetching=!1,Mr(E,e,!1),e));return(t[2]??=[]).push([n,ee,T,E]),ee.then(e=>Pr(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=K(e,t[n]);try{let e=_r(i,!1);e&&await G(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function Y(e,t){t[2]&&=(J(e,t[2].map(e=>e[3])),void 0)}async function Lr(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]!==V&&(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 Rr(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?[H,e]:wr(n,e),a=!0}}return r}async function zr(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]===xr?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]!==V&&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 Y(e,t),n;c=!0,s=[0,[H,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===H?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=K(e,u);try{await G(i?Promise.resolve().then(()=>_r(m,l===H?`errorComponent`:`notFoundComponent`)):Promise.all([_r(m),_r(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return Y(e,t),W}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),Y(e,t),J(e,o),p()):u.status=`success`}return t}async function Br(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=K(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 G(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 Vr(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=Fr(e,i,t,u,f,r,l)},m=await Er(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===xr){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=zr(e,i,u,r[0],Lr(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=Lr(i[2],void 0,void 0,h.then(e=>Sr(e)?0:vr(n).length,()=>0))),o=await h}catch(t){if(Y(e,i),t===a&&a.aborted)return W;throw t}return Sr(o)?o:Br(e,o,a,r[6]===n.length?r[6]:0)}function Hr(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=K(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(()=>Hr(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 Ur(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 Wr(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!vr(t[3]).some(e=>e.id===n[1]))return;let i;try{await G(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function Gr(e,t){e._committed=t,e.stores.setMatches(t)}function Kr(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=vr(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=K(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=tr(n);Gr(e,n),J(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),nr(e,i,n,a,l,t)}async function qr(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function Jr(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 Yr(e,t,n,r,i){let a=n.map(e=>({...e}));Or(a);for(let t of r)q(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await zr(e,o,r,t[0],i)}catch(t){throw J(e,a),t}if(Sr(s))J(e,a),s[0]===U&&e._tx===t&&e._committed===n&&await Jr(e,t,s);else if(await Br(e,s,t[0].signal),e._tx!==t||e._committed!==n)J(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),q(e,n))}Gr(e,a),J(e,n,a)}}async function Xr(e,t,n,r,i,a){let o=await Vr(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(Sr(o)){let n=o[0]===U&&e._tx===t;if((!n||o[1].options.reloadDocument)&&Ur(e,t),J(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){Ur(e,t);return}await Jr(e,t,o);return}let s=o[1];if(e._tx===t&&await Wr(e,t),e._tx!==t){Ur(e,t),J(e,s),Y(e,o);return}let c=t[2],l=$n(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await Wr(e,t),e._tx!==t){Ur(e,t),J(e,s),Y(e,o);return}let n=await e.startTransition(()=>{Ur(e,t),Kr(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&&Yr(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)):Y(e,o)})}async function Zr(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=$n(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await qr(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});Or(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){J(e,m),await qr(e,n);return}e._preflight=void 0;let g,_=()=>Xr(e,y,f,()=>Hr(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(()=>qr(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&kr(e,t,!1)}n[0].abort(),J(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))&&Hr(e,y),g?.(_()),await y[5]):(J(e,y[3]),y[3]=[],g?.(),await qr(e,y))}async function Qr(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}),Or(a),o=(e._preloads??=new Map).set(i,a),s=await Vr(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),J(e,a)),i.abort()}if(!Sr(s))return s[1];if(!o||s.length<3)return;n=s[2]}catch(e){Wt(e)||console.error(e);return}}}var $r=`Error preloading route! ☝️`;function ei(e,t){if(e)return typeof e==`string`?e:e[t]}function ti(e){return e?.scriptFormat??`module`}function ni(e,t,n){let r=ri(t),i=ei(n,`script`)??r.crossOrigin;return{...ti(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,fetchPriority:`low`,...i?{crossOrigin:i}:{}}}function ri(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function ii(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 ai(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function oi(e,t,n,r){let i=br(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 si([e,t],n){return n?[...n.before,...e,...t,n.boundary]:[...e,...t]}var ci=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=Gt:this.parentRoute||Pt();let r=n?Gt:t?.path;r&&r!==`/`&&(r=It(r));let i=t?.id||r,a=n?Gt:Ft((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:Ft(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=L(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=>Kt({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.`)}},li=class extends ci{constructor(e){super(e)}};function ui(e,t){let n=e.stores.location,r=new Set,i,a,o=n=>{yr(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 di=j.createContext(void 0),fi=j.createContext(void 0),pi=t((e=>{var t=at();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),mi=t(((e,t)=>{t.exports=pi()})),hi=t((e=>{var t=at(),n=mi();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),gi=t(((e,t)=>{t.exports=hi()})),_i=gi();function vi(e,t){return e===t}function X(e,t=e=>e,n){let r=n?.compare??vi,i=(0,j.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,j.useCallback)(()=>e.get(),[e]);return(0,_i.useSyncExternalStoreWithSelector)(i,a,a,t,r)}function yi({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 bi(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 xi=[],Si=0,{link:Ci,unlink:wi,propagate:Ti,checkDirty:Ei,shallowPropagate:Di}=yi({update(e){return e._update()},notify(e){xi[ki++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,Mi(e))}}),Oi=0,ki=0,Z,Ai=0;function ji(e){try{++Ai,e()}finally{--Ai||Ni()}}function Mi(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=wi(n,e)}function Ni(){if(!(Ai>0)){for(;Oi<ki;){let e=xi[Oi];xi[Oi++]=void 0,e.notify()}Oi=0,ki=0}}function Pi(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:+!n,get(){return Z!==void 0&&Ci(i,Z,Si),i._snapshot},subscribe(e){let t=bi(e),n={current:!1},r=Fi(()=>{i.get(),n.current?(Z=void 0,t.next?.(i._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Z,o=t?.compare??Object.is;if(n)Z=i,++Si,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Z=a,n&&(i.flags&=-5),Mi(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&Ei(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Di(e)}}else e&32&&(i.flags=e&-33);return Z!==void 0&&Ci(i,Z,Si),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Ti(e),Di(e),Ni())}},i}function Fi(e){let t=()=>{let t=Z;Z=n,++Si,n.depsTail=void 0,n.flags=6;try{return e()}finally{Z=t,n.flags&=-5,Mi(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&&Ei(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,Mi(this)}};return t(),n}var Ii={};function Li(e,t){let n=j.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=F(n.current,i):i}}function Q(e){let t=N(),n=j.useContext(e.from?fi:di),r=e.from??n,i=t.stores.getMatchStore(r),a=Li(e,t),o=X(i,e=>e?a(e):Ii);if(o!==Ii)return o;(e.shouldThrow??!0)&&Pt()}function Ri(e){return Q({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function zi(e){let{select:t,...n}=e;return Q({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Bi(e){return Q({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Vi(e){return Q({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}var Hi=j.use,Ui=j.useLayoutEffect;function Wi(e){let t=N();return j.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Gi(e){return Q({...e,select:t=>e.select?e.select(t.context):t.context})}function Ki(...e){let t=j.useRef(e),n=t.current;return e.forEach((e,t)=>{I(n[t],e,!1,!0)||(n[t]=e)}),t.current}function qi(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn($r)})}function Ji(e,t){let n=typeof e==`string`&&Tt(e);if(n)return t.has(n)?e:null}function Yi(e,t,n,r){let i=Rt(e.pathname,r),a=Rt(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!I(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function Xi(e,t,n){let r=N(),i=j.useRef(null),a=j.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]=Ki(e.search,e.params,o),x=j.useContext(di),S=(r.stores._linkScopes??={})[x]??=ui(r,x),[C,w,T]=j.useMemo(()=>{let t=Ji(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=ia(t,r,u),s=u||o&&!Tt(o)?Yi(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,ee]=j.useSyncExternalStore(S[1],w,T||w),te=ee===void 0&&E,ne=u||E===void 0,re=j.useRef(!1),D=e.reloadDocument||te||ne?!1:c??r.options.defaultPreload,ie=l??r.options.defaultPreloadDelay??0,ae=j.useCallback(e=>{let t=e?.isIntersecting;t??D===`intent`?ie?i.t??=setTimeout(()=>{i.t=void 0,qi(r,C)},ie):qi(r,C):t===!1&&na(i)},[r,C,i,D,ie]);j.useEffect(()=>{if(!D)return;D===`render`&&!re.current&&(re.current=!0,qi(r,C));let e=!0,t;return D===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&ae(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),na(i)}},[r,C,D,ae,i]);let O=ea(e,n);if(O.ref=t?a:i,te)return O.href=te,O;let oe=t=>{let n=d??t.currentTarget.getAttribute(`target`);ne||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),na(i),r.navigate({...e,_fromLocation:C._fromLocation}))},se=()=>{D===`intent`&&qi(r,C)},ce=()=>{D===`intent`&&na(i)};return O.onClick=ra(f,oe),O.onBlur=ra(p,ce),O.onFocus=ra(m,ae),O.onMouseEnter=ra(h,ae),O.onMouseLeave=ra(g,ce),O.onTouchStart=ra(_,se),ta(O,e,ee,E,ne,n)}var Zi={},Qi={className:`active`},$i=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 ea(e,t){let n={};for(let r in e)$i.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function ta(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=mt(n?o:s,{})??(n?Qi:Zi);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 na=e=>{clearTimeout(e.t),e.t=void 0},ra=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function ia(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||!Dt(i,t.protocolAllowlist))return i}var aa=j.memo(j.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 j.createElement(n,r,i)}),oa);function oa(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!$i.has(r)||!I(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var sa=class extends ci{constructor(e){super(e),this.useMatch=e=>Q({...e,from:this.id}),this.useRouteContext=e=>Gi({...e,from:this.id}),this.useSearch=e=>Vi({...e,from:this.id}),this.useParams=e=>Bi({...e,from:this.id}),this.useLoaderDeps=e=>zi({...e,from:this.id}),this.useLoaderData=e=>Ri({...e,from:this.id}),this.useNavigate=()=>Wi({from:this.fullPath}),this.Link=j.forwardRef((e,t)=>(0,M.jsx)(aa,{ref:t,from:this.fullPath,...e}))}};function ca(e){return new sa(e)}var la=class extends li{constructor(e){super(e),this.useMatch=e=>Q({...e,from:this.id}),this.useRouteContext=e=>Gi({...e,from:this.id}),this.useSearch=e=>Vi({...e,from:this.id}),this.useParams=e=>Bi({...e,from:this.id}),this.useLoaderDeps=e=>zi({...e,from:this.id}),this.useLoaderData=e=>Ri({...e,from:this.id}),this.useNavigate=()=>Wi({from:this.fullPath}),this.Link=j.forwardRef((e,t)=>(0,M.jsx)(aa,{ref:t,from:this.fullPath,...e}))}};function ua(e){return new la(e)}function da(e){return e=>{let t=ca(e);return t.isRoot=!1,t}}function fa(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(bt(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(Hi)Hi(a());else throw a()}return j.createElement(r,e)};return o.preload=a,o}var pa=e=>({createMutableStore:Pi,createReadonlyStore:Pi,batch:ji}),ma=e=>new ha(e),ha=class extends rr{constructor(e){super(e,pa)}};function ga(e,t){let n=e[1];e.length=0,n?.(t)}function _a({t:e}){let t=N(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{ga(n,!1),n.push(i,a),e(t),j.startTransition(r)}),Ui(()=>{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(L(r.publicHref)!==L(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`,...$n(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}var va=()=>!0,ya=()=>!1;function ba({children:e,fallback:t=null}){return(0,M.jsx)(j.Fragment,{children:xa()?e:t})}function xa(e=!0){return j.useSyncExternalStore(Sa,va,e?ya:va)}function Sa(){return()=>{}}function Ca(e){let t=N(),n=`not-found-${X(t.stores.location,e=>e.pathname)}-${X(t.stores.status)}`;return(0,M.jsx)(dt,{getResetKey:()=>n,onCatch:(t,n)=>{if(Wt(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(Wt(t))return e.fallback?.(t);throw t},children:e.children})}function wa(){return(0,M.jsx)(`p`,{children:`Not Found`})}function Ta(e,t,n){return t.options.notFoundComponent?(0,M.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,M.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,M.jsx)(wa,{})}function Ea(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,M.jsx)(n,{}):null}var Da=(e,t)=>e[0]===t[0]&&e[1]===t[1],Oa=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,ka=j.memo(function({routeId:e}){let t=N();return Aa(t,X(t.stores.getMatchStore(e)))});function Aa(e,t){let n=e.routesById[t.routeId],r=Ea(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=Oa(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s)),l=(0,M.jsx)(ja,{match:t});s&&(l=(0,M.jsx)(ba,{fallback:r,children:l})),o&&(l=(0,M.jsx)(Ca,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return j.createElement(o,e)},children:l})),i&&(l=(0,M.jsx)(dt,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(Wt(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:l})),c&&(l=(0,M.jsx)(j.Suspense,{fallback:r,children:l}));let u=n.isRoot&&n.options.shellComponent;return u?(0,M.jsx)(di.Provider,{value:t.routeId,children:(0,M.jsxs)(u,{children:[l,null]})}):(0,M.jsxs)(di.Provider,{value:t.routeId,children:[l,null]})}var ja=j.memo(function({match:e}){let t=N(),n=e.routeId,r=t.routesById[n],i=j.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=j.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,M.jsx)(e,{},i):(0,M.jsx)(Ma,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!Oa(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return Ea(t,r)}if(e.status===`notFound`)return Ta(t,r,e.error);if(e.status===`error`)throw e.error;return a}),Ma=j.memo(function(){let e=N(),t=j.useContext(di),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=X(a,e=>[!!e._notFound,e.error],{compare:Da}),i=X(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return Ta(e,e.routesById[t],r);if(!i)return null;let a=(0,M.jsx)(ka,{routeId:i});return t===`__root__`?(0,M.jsx)(j.Suspense,{fallback:Ea(e),children:a}):a});function Na(){let e=N(),t=e.routesById[Gt],n=Ea(e,t),r=(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(_a,{t:j.useState()[1]}),e.ssr?(0,M.jsx)(Pa,{}):(0,M.jsx)(j.Suspense,{fallback:n,children:(0,M.jsx)(Pa,{})})]});return e.options.InnerWrap?(0,M.jsx)(e.options.InnerWrap,{children:r}):r}function Pa(){let e=N(),t=e._rendered,n=X(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;Ui(()=>{t[0]===n&&ga(t,!0)},[t,n]);let a=i?(0,M.jsx)(ka,{routeId:i}):null;return e.options.disableGlobalCatchBoundary?a:(0,M.jsx)(dt,{getResetKey:()=>r,onCatch:void 0,children:a})}function Fa({router:e,children:t,...n}){gt(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,M.jsx)(pt.Provider,{value:e,children:t});return e.options.Wrap?(0,M.jsx)(e.options.Wrap,{children:r}):r}function Ia({router:e,...t}){return(0,M.jsx)(Fa,{router:e,...t,children:(0,M.jsx)(Na,{})})}function La(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 Ra(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e,a=j.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(e.tag){case`title`:return(0,M.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,M.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,M.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,M.jsx)(`style`,{...t,dangerouslySetInnerHTML:a,nonce:r});case`script`:return(0,M.jsx)(za,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function za({attrs:e,children:t,preventScriptHoist:n}){N();let r=xa(),i=j.useMemo(()=>t===void 0?void 0:{__html:t},[t]),a=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(j.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 La(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,La(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,a]),a&&typeof t==`string`)return(0,M.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:i});if(!r){if(e?.src)return(0,M.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,M.jsx)(`script`,{...e,dangerouslySetInnerHTML:i,suppressHydrationWarning:!0})}return null}function Ba(e,t,n,r){n=br(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:At(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=ai(e);u.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:ei(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:{...ni(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 ii(m,a),m.push(...d),ii(m,c),m.push(...u),ii(m,f),ii(m,p),m}var Va=e=>{let t=N(),n=t.options.ssr?.nonce,r=j.useCallback(r=>Ba(t,n,r,e),[e,n,t]);return X(t.stores.matches,r,{compare:I})};function Ha(e){let t=Va(e.assetCrossOrigin),n=N().options.ssr?.nonce;return(0,M.jsx)(M.Fragment,{children:t.map(e=>(0,j.createElement)(Ra,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Ua={suppressHydrationWarning:!0},Wa=()=>{let e=N(),t=e.options.ssr?.nonce,n=n=>{let r=oi(n,e.ssr?.manifest,t,Ua);for(let e of r[1])if(typeof e.attrs?.src==`string`){let t=e;t.preventScriptHoist=!0}return r};return Ga(X(e.stores.matches,e=>si(n(e)),{compare:I}))};function Ga(e){return(0,M.jsx)(M.Fragment,{children:e.map((e,t)=>(0,j.createElement)(Ra,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var Ka=new Map([[`bold`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z`}))],[`duotone`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z`,opacity:`0.2`}),j.createElement(`path`,{d:`M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z`}))],[`fill`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z`}))],[`light`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z`}))],[`regular`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z`}))],[`thin`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z`}))]]),qa=j.forwardRef((e,t)=>j.createElement(ct,{ref:t,...e,weights:Ka}));qa.displayName=`HouseIcon`;var Ja=new Map([[`bold`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M144,180a16,16,0,1,1-16-16A16,16,0,0,1,144,180Zm92-52A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128ZM128,64c-24.26,0-44,17.94-44,40v4a12,12,0,0,0,24,0v-4c0-8.82,9-16,20-16s20,7.18,20,16-9,16-20,16a12,12,0,0,0-12,12v8a12,12,0,0,0,23.73,2.56C158.31,137.88,172,122.37,172,104,172,81.94,152.26,64,128,64Z`}))],[`duotone`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),j.createElement(`path`,{d:`M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`fill`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z`}))],[`light`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M138,180a10,10,0,1,1-10-10A10,10,0,0,1,138,180ZM128,74c-21,0-38,15.25-38,34v4a6,6,0,0,0,12,0v-4c0-12.13,11.66-22,26-22s26,9.87,26,22-11.66,22-26,22a6,6,0,0,0-6,6v8a6,6,0,0,0,12,0v-2.42c18.11-2.58,32-16.66,32-33.58C166,89.25,149,74,128,74Zm102,54A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`thin`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M136,180a8,8,0,1,1-8-8A8,8,0,0,1,136,180ZM128,76c-19.85,0-36,14.36-36,32v4a4,4,0,0,0,8,0v-4c0-13.23,12.56-24,28-24s28,10.77,28,24-12.56,24-28,24a4,4,0,0,0-4,4v8a4,4,0,0,0,8,0v-4.2c18-1.77,32-15.36,32-31.8C164,90.36,147.85,76,128,76Zm100,52A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),Ya=j.forwardRef((e,t)=>j.createElement(ct,{ref:t,...e,weights:Ja}));Ya.displayName=`QuestionIcon`;var Xa=new Map([[`bold`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z`}))],[`duotone`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),j.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`fill`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z`}))],[`light`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z`}))],[`regular`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`thin`,j.createElement(j.Fragment,null,j.createElement(`path`,{d:`M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z`}))]]),Za=j.forwardRef((e,t)=>j.createElement(ct,{ref:t,...e,weights:Xa}));Za.displayName=`WarningCircleIcon`;var Qa=ot(),$=it(),$a=st(`group/alert relative grid w-full gap-1 border bg-background px-4 py-3 text-left text-sm after:absolute after:-inset-y-px after:-left-px after:w-0.5 has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-card text-card-foreground after:bg-foreground`,destructive:`bg-card text-destructive after:bg-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}});function eo(e){let t=(0,$.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=k($a({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,M.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:a,...r}),t[7]=r,t[8]=a,t[9]=o):o=t[9],o}function to(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=k(`text-sm font-semibold group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,M.jsx)(`div`,{"data-slot":`alert-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function no(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=k(`text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,M.jsx)(`div`,{"data-slot":`alert-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ro(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=k(`absolute top-2.5 right-3`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,M.jsx)(`div`,{"data-slot":`alert-action`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function io(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=k(`flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 border-dashed p-12 text-center text-balance`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,M.jsx)(`div`,{"data-slot":`empty`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ao(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=k(`flex max-w-sm flex-col items-center gap-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,M.jsx)(`div`,{"data-slot":`empty-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var oo=st(`mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`flex size-10 shrink-0 items-center justify-center rounded-none bg-muted text-foreground [&_svg:not([class*='size-'])]:size-5`}},defaultVariants:{variant:`default`}});function so(e){let t=(0,$.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,variant:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o;t[4]!==n||t[5]!==a?(o=k(oo({variant:a,className:n})),t[4]=n,t[5]=a,t[6]=o):o=t[6];let s;return t[7]!==r||t[8]!==o||t[9]!==a?(s=(0,M.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":a,className:o,...r}),t[7]=r,t[8]=o,t[9]=a,t[10]=s):s=t[10],s}function co(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=k(`mt-0.5 text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,M.jsx)(`div`,{"data-slot":`empty-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function lo(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=k(`flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,M.jsx)(`div`,{"data-slot":`empty-content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function uo(){let e=(0,$.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,M.jsxs)(ao,{children:[(0,M.jsx)(so,{variant:`icon`,children:(0,M.jsx)(Ya,{className:`size-5`})}),(0,M.jsx)(`h2`,{className:`font-heading text-2xl leading-none tracking-tight`,children:`Page not found`}),(0,M.jsx)(co,{children:`The link is old, or it never existed.`})]}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,M.jsxs)(io,{"aria-label":`Page not found`,children:[t,(0,M.jsx)(lo,{children:(0,M.jsxs)(ut,{variant:`outline`,render:(0,M.jsx)(`a`,{href:`/`,"aria-label":`Go home`}),children:[(0,M.jsx)(qa,{}),`Go home`]})})]}),e[1]=n):n=e[1],n}function fo(e){let t=(0,$.c)(10),n=e.label??`Unavailable`,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,M.jsx)(Za,{}),t[0]=r):r=t[0];let i=e.label??`Can’t load this view`,a;t[1]===i?a=t[2]:(a=(0,M.jsx)(to,{children:i}),t[1]=i,t[2]=a);let o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,M.jsx)(no,{children:`The server did not answer. Nothing was lost; try the same view again.`}),t[3]=o):o=t[3];let s;t[4]===e.reset?s=t[5]:(s=(0,M.jsx)(ro,{children:(0,M.jsx)(ut,{variant:`destructive`,size:`sm`,className:`max-sm:h-11`,onClick:e.reset,children:`Retry`})}),t[4]=e.reset,t[5]=s);let c;return t[6]!==n||t[7]!==a||t[8]!==s?(c=(0,M.jsx)(`div`,{className:`flex min-h-0 flex-1 items-center justify-center p-6`,children:(0,M.jsxs)(eo,{variant:`destructive`,role:`alert`,"aria-label":n,className:`max-w-md`,children:[r,a,o,s]})}),t[6]=n,t[7]=a,t[8]=s,t[9]=c):c=t[9],c}s()(`AuthError`,{cause:ee(y()),error:l(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:_});var po=S({id:h,name:h});_.check(nt(/^https:\/\/[a-z\d-]+\.mp281x\.xyz(?:\/mcp)?$/u)),S({accessToken:h,clientId:h,expiresAt:ke,refreshToken:h}),S({client_id:h}),S({access_token:h,expires_in:ke,refresh_token:h});var mo=_.check(i(e=>Ae(fe(T(e)),e=>Ve([`http:`,`https:`],e.protocol)&&e.username===``&&e.password===``&&e.hash===``),{expected:`an HTTP(S) URL without credentials or a fragment`})).check(i(e=>Ae(fe(T(e)),e=>e.pathname===`/`&&e.search===``),{expected:`an HTTP(S) origin without a path or query`}));mo.check(i(e=>Ae(fe(T(e)),e=>e.protocol===`https:`||Ve([`localhost`,`127.0.0.1`,`[::1]`],e.hostname)),{expected:`HTTPS outside loopback`})),_.check(nt(/^\d{1,5}$/u),i(e=>Ae(x(e),e=>e>=1&&e<=65535),{expected:`a port between 1 and 65535`}));var ho=_.check(nt(/^0\.1\.\d+$/u)),go=`/api/runtime`,_o=S({auth:l(mo),name:_,traces:_,version:ho}),vo=`/api/rpc`;S({...po.fields,signOut:o}),S({config:S({port:n}),name:_,version:ho});function yo(e,t,n,i){return b(w(Ge(function*(){let r=`${yield*a}`,o=yield*ne,s={attributes:{"scope.run.started_unix_nano":r,"scope.runtime":n,"service.instance.id":r},serviceName:e,serviceVersion:Ne(be(i,e=>e!==`0.1.0`))};return b(v(Me({resource:s,url:new URL(`/v1/traces`,t).href}),Se({resource:s,url:new URL(`/v1/logs`,t).href}),d(ne)([...o,`code`,`state`,`request`,`access_token`,`refresh_token`,`id_token`,`client_secret`,`client_assertion`,`code_verifier`,`session`,`token`])),C([ye,Je]))})),r(e=>u(e)?Oe(pe):Oe(qe(`Telemetry is unavailable`))))}function bo(e){return w(Ge(function*(){let t=yield*b((yield*et).get(go),Ie(ce),Ie(Qe(_o)),xe(`3 seconds`),ve);return O(t,{onNone:()=>g,onSome:t=>t.traces===``?g:yo(`${e}-client`,t.traces,`web`,t.version)})}))}var xo=Be(Ye()),So=new WeakSet,Co=de(e=>{let t=je(`Web error`,te(e.error),...$e(_e(e.stack)));return O(p(xo),{onNone:()=>t,onSome:n=>ze(b(t,Ue(Ee(e.error)),Xe(`Web.error`,{attributes:{"web.error.source":e.source,"web.route.id":e.route},root:!0}),se),n)})});function wo(e,t){let n=document.querySelector(`#root`);if(Ze(n))throw TypeError(`Missing application mount element with id "root"`);return{root:n,router:ma({context:{},defaultErrorComponent:fo,defaultNotFoundComponent:uo,defaultPreload:`intent`,getScrollRestorationKey:t,routeTree:e,scrollRestoration:!0})}}function To(e){let t=Le();function n(n,r,i){if(E(n)){if(So.has(n))return;So.add(n)}t.set(Co,{error:n,route:b(D(e.router.state.matches,e=>e.error===n),tt(()=>ge(e.router.state.matches)),he(e=>be(e.routeId,ue)),Re(()=>`__root__`)),source:r,stack:i})}e.router.update({defaultOnCatch:(e,t)=>n(e,`route`,t.componentStack)}),(0,Qa.createRoot)(e.root,{onCaughtError:(e,t)=>n(e,`caught`,t.componentStack),onUncaughtError:(e,t)=>n(e,`uncaught`,t.componentStack)}).render((0,M.jsx)(j.StrictMode,{children:(0,M.jsx)(Ia,{router:e.router})}))}var Eo=b(He({pingTimeout:`15 seconds`,retryTransientErrors:!0}),C(b(Fe(we(()=>`${location.origin}${vo}`)),C(We))),c(Te()));function Do(e){return me.addGlobalLayer(b(bo(e),C(Je),m(e=>Ce(re(e,ae))?oe:Pe(we(()=>f(xo,le(e))),()=>we(()=>ie(xo,Ke(t=>t!==e))))))),Eo}var Oo=ua({shellComponent:e=>(0,M.jsxs)(`div`,{className:`bg-background text-foreground pt-safe-top pr-safe-right pl-safe-left flex h-dvh w-dvw flex-col print:h-auto print:w-auto`,children:[(0,M.jsx)(Ha,{}),(0,M.jsx)(Wa,{}),e.children]})}),ko=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),Ao=function(e){return`/`+e},jo={},Mo=function(e){return e.pathname.endsWith(`.css`)},No=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},Po=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=Ao(t,n);let r=s(t),i=Mo(r);return No(jo,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`:ko,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)})},Fo=da(`/cv`)({component:fa(()=>Po(()=>import(`./cv-DkK0-RlT.js`),__vite__mapDeps([0,1,2,3,4])),`component`),head:()=>({meta:[{title:`${A.firstName} ${A.lastName} CV`},{content:`${A.firstName} ${A.lastName}`,name:`author`},{content:`${A.title}. ${lt}`,name:`description`}]})}),Io=da(`/(home)/`)({component:fa(()=>Po(()=>import(`./(home)-CKhZzCp3.js`),__vite__mapDeps([5,1,2,3,4])),`component`),head:()=>({meta:[{title:`${A.firstName} ${A.lastName} – ${A.title}`},{content:`${A.firstName} ${A.lastName}`,name:`author`},{content:lt,name:`description`}]})}),Lo={CvRoute:Fo.update({id:`/cv`,path:`/cv`,getParentRoute:()=>Oo}),homeIndexRoute:Io.update({id:`/(home)/`,path:`/`,getParentRoute:()=>Oo})};To(wo(Oo._addFileChildren(Lo)._addFileTypes()));export{dt as i,gi as n,mi as r,Do as t};
|