@qredence/fleet 0.7.1 → 0.7.2
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/CHANGELOG.md +6 -0
- package/dist/web/client/assets/{action-swap-roll-BfVrBOVd.js → action-swap-roll-Bek47h-E.js} +1 -1
- package/dist/web/client/assets/{alert-dialog-FCppNafx.js → alert-dialog-OoasP5iO.js} +1 -1
- package/dist/web/client/assets/{artifacts-panel-C69vz-oo.js → artifacts-panel-DVY0-7X0.js} +1 -1
- package/dist/web/client/assets/{badge-DOGhnsYk.js → badge-9wr3qUp1.js} +2 -2
- package/dist/web/client/assets/{button-BJyg7l5W.js → button-Bqms7ZKX.js} +1 -1
- package/dist/web/client/assets/{card-BScRdZNS.js → card-DPCbcrMK.js} +1 -1
- package/dist/web/client/assets/{chat-command-palette-wyZjTNa8.js → chat-command-palette-CXS5eTiy.js} +1 -1
- package/dist/web/client/assets/{citations-BhyqbxcZ.js → citations-C7USoVdz.js} +1 -1
- package/dist/web/client/assets/{command-Bo31U-UD.js → command-s2yLD3tA.js} +1 -1
- package/dist/web/client/assets/{create-project-dialog-SDyXTpl-.js → create-project-dialog-C99_Lyjg.js} +1 -1
- package/dist/web/client/assets/{dialog-DLIPvl1s.js → dialog-DuCD5hRq.js} +1 -1
- package/dist/web/client/assets/{ease-DKi-MOH5.js → ease-2gsl7ABx.js} +1 -1
- package/dist/web/client/assets/{fork-picker-dialog-BDleMADF.js → fork-picker-dialog--dV6TE-9.js} +1 -1
- package/dist/web/client/assets/globals-BXtzVIWE.css +2 -0
- package/dist/web/client/assets/{index-BARp0bjW.js → index-C2EkVtv5.js} +3 -3
- package/dist/web/client/assets/{input-Ce8yLnXY.js → input-DECT4vz2.js} +1 -1
- package/dist/web/client/assets/{input-group-BZLQiZOA.js → input-group-CZlz1ygA.js} +1 -1
- package/dist/web/client/assets/{ipython-tool-CuSGRhXl.js → ipython-tool-Bs6ESZe1.js} +1 -1
- package/dist/web/client/assets/{layout-constants-Bl6XCvhY.js → layout-constants-C4hoW3YP.js} +1 -1
- package/dist/web/client/assets/{markdown-yn-nhRzB.js → markdown-B2tpfUKu.js} +2 -2
- package/dist/web/client/assets/{markdown-code-DfJbKhL9.js → markdown-code-B5YUmtLX.js} +1 -1
- package/dist/web/client/assets/{message-queue-CiptKSb6.js → message-queue-BD2sIUTH.js} +1 -1
- package/dist/web/client/assets/{model-selector-list-BHQ-Q8b9.js → model-selector-list-zPZRE3JY.js} +1 -1
- package/dist/web/client/assets/{notify-BC0a76VJ.js → notify-mVA6z9Ly.js} +1 -1
- package/dist/web/client/assets/{openui-renderer-DrfHxs1t.js → openui-renderer-ByP8yQph.js} +1 -1
- package/dist/web/client/assets/{prompt-input-IwZOepG7.js → prompt-input-Bnl0HyL6.js} +1 -1
- package/dist/web/client/assets/{prompt-suggestions-BRFWFm5y.js → prompt-suggestions-DcgETXtw.js} +1 -1
- package/dist/web/client/assets/{provider-label-DNZOLldn.js → provider-label-COVNyoZo.js} +1 -1
- package/dist/web/client/assets/{repl-panel-UQN9UFG7.js → repl-panel-BoDNpJOe.js} +1 -1
- package/dist/web/client/assets/{resources-panel-kp_UjnpX.js → resources-panel-DD6iWOF3.js} +1 -1
- package/dist/web/client/assets/{right-panel-registry-CF7GLJrk.js → right-panel-registry-CIfLdAfS.js} +2 -2
- package/dist/web/client/assets/{routes-DCP1DP1g.js → routes-DO93P3Xm.js} +5 -5
- package/dist/web/client/assets/{select-COK0Kaq2.js → select-Dp15z1lf.js} +1 -1
- package/dist/web/client/assets/{session-reasoning-panel-DrTWp8d4.js → session-reasoning-panel-WMedZp__.js} +1 -1
- package/dist/web/client/assets/session-tool-renderer-BFC3-Md4.js +170 -0
- package/dist/web/client/assets/{session-tree-panel-deGRKAhX.js → session-tree-panel-CnHOsPzz.js} +1 -1
- package/dist/web/client/assets/{settings-dialog-BU1Tw0CQ.js → settings-dialog-BN138nzK.js} +1 -1
- package/dist/web/client/assets/{skeleton-D5Y9nBfp.js → skeleton-DNAr5ULI.js} +1 -1
- package/dist/web/client/assets/{skeleton-loaders-DOKGa7CW.js → skeleton-loaders-B28mF4tJ.js} +1 -1
- package/dist/web/client/assets/{spinner-C3sPnLdu.js → spinner-CSBXk3Lo.js} +1 -1
- package/dist/web/client/assets/{subagent-chat-panel-bVnkDkgs.js → subagent-chat-panel-DYKOKRPp.js} +1 -1
- package/dist/web/client/assets/subagent-transcript-BCUhqVvi.js +1 -0
- package/dist/web/client/assets/{subagent-utils-D7sXbLsS.js → subagent-utils-CM2qX9BG.js} +2 -2
- package/dist/web/client/assets/{subagents-panel-i5-12E1U.js → subagents-panel-CTvtU0Sh.js} +1 -1
- package/dist/web/client/assets/{surface-context-DWplCCcO.js → surface-context-VvasJf_6.js} +1 -1
- package/dist/web/client/assets/{surfaces-BULKVm-B.js → surfaces-m1vs5aMP.js} +1 -1
- package/dist/web/client/assets/{switch-DQETDDJT.js → switch-eqXIzePo.js} +1 -1
- package/dist/web/client/assets/{toast-BFeqSeaR.js → toast-DRDVljMF.js} +1 -1
- package/dist/web/client/assets/{tool-result-D7HtJ_yg.js → tool-result-DWUV8hEz.js} +1 -1
- package/dist/web/client/assets/{tool-timeline-B4ci1oJg.js → tool-timeline-4k2iSEky.js} +1 -1
- package/dist/web/client/assets/{use-reduced-motion-BgG7f9xw.js → use-reduced-motion-BzGFRmoG.js} +1 -1
- package/dist/web/client/assets/utils-CFDGLzf6.js +1 -0
- package/dist/web/client/assets/{workspace-panel-Clbmrdza.js → workspace-panel-BNeGABPi.js} +1 -1
- package/dist/web/client/assets/{workspace-path-nav-eVT0rYvv.js → workspace-path-nav-umvkE4ut.js} +2 -2
- package/dist/web/client/bundle-budget.json +5 -5
- package/dist/web/server/{_tanstack-start-manifest_v-CaT-3S-N-VAOGUHEJ.js → _tanstack-start-manifest_v-DTCFS0PG-ARV2V4FW.js} +26 -26
- package/dist/web/server/{artifacts-panel-BuAqeJzj-6DYYLKUW.js → artifacts-panel-Ct2R_4wM-DAPQMI57.js} +13 -13
- package/dist/web/server/{chat-command-palette-Ca8gXVi2-P6EOQ43G.js → chat-command-palette-ETZzg35Q-TAV74IAW.js} +8 -8
- package/dist/web/server/{chunk-5AYK2KDO.js → chunk-777VIBCH.js} +176 -176
- package/dist/web/server/{chunk-7VFULIHV.js → chunk-AAPVQJAD.js} +2 -2
- package/dist/web/server/{chunk-K4KN3QBT.js → chunk-BNB7T7P6.js} +2 -2
- package/dist/web/server/{chunk-E4YWFQX5.js → chunk-FFGFTGLQ.js} +415 -383
- package/dist/web/server/{chunk-GCDOYNXR.js → chunk-FL3FOWSC.js} +30 -30
- package/dist/web/server/{chunk-ITKXE2Q5.js → chunk-GS5F6X7H.js} +497 -234
- package/dist/web/server/{chunk-B7YWDA2F.js → chunk-INRE3X52.js} +2 -2
- package/dist/web/server/{chunk-35AFSKDX.js → chunk-JOCVZVZ3.js} +5 -5
- package/dist/web/server/{chunk-J4Y2Z3XM.js → chunk-JU7PCOE7.js} +4 -4
- package/dist/web/server/{chunk-UTV66W5H.js → chunk-KVW6XTN3.js} +14 -9
- package/dist/web/server/{chunk-NB3TVOGB.js → chunk-LECHJX4M.js} +483 -481
- package/dist/web/server/{chunk-JFAUSHBI.js → chunk-M6K66QBV.js} +6 -6
- package/dist/web/server/{chunk-COWE2EJ6.js → chunk-R7KUUFDW.js} +4 -4
- package/dist/web/server/chunk-SHNODG3C.js +18343 -0
- package/dist/web/server/{chunk-PXSOI3XF.js → chunk-SQXJ5TUB.js} +2 -2
- package/dist/web/server/{chunk-B5Y7XOIJ.js → chunk-TMQ3MT3D.js} +78 -17
- package/dist/web/server/{chunk-M7BTY55G.js → chunk-UWZYLMEH.js} +2 -2
- package/dist/web/server/{chunk-YIJ7D7G5.js → chunk-VTEYQNJE.js} +7 -7
- package/dist/web/server/{chunk-ABYOWAMD.js → chunk-X76RBZ37.js} +2 -2
- package/dist/web/server/{chunk-FPPKECLB.js → chunk-XMAAYUOT.js} +14 -14
- package/dist/web/server/{create-project-dialog-DCvdysey-IZUGGDAN.js → create-project-dialog-CqBmLTlA-X6HI6AYR.js} +9 -9
- package/dist/web/server/{dist-DVCLWOYT.js → dist-3UIQ7SZN.js} +2 -2
- package/dist/web/server/{dist-4A22NBTB.js → dist-ZPEDRNZ4.js} +2 -2
- package/dist/web/server/{fork-picker-dialog-QH00XmqX-6YLU5REF.js → fork-picker-dialog-PYNd9ozc-EA7BRLRR.js} +6 -6
- package/dist/web/server/{markdown-CShfYRVO-OKGCYPQK.js → markdown-CShfYRVO-22N5LNAN.js} +2 -2
- package/dist/web/server/{markdown-code-BDV_2b2T-VZGAECQB.js → markdown-code-BDV_2b2T-KUPHX52W.js} +2 -2
- package/dist/web/server/{message-queue-BzEFQR8k-2W53EW32.js → message-queue-DmSFAI5Y-XDZHJ2Z6.js} +6 -6
- package/dist/web/server/{model-selector-list-BjoXmw92-TEKBPB3E.js → model-selector-list-C-Y3p5UM-HTSWVVHP.js} +8 -8
- package/dist/web/server/{openui-renderer-CJ7Q2zZ_-FPXKZPSO.js → openui-renderer-C4B1EJxC-QDYQF5LD.js} +10 -10
- package/dist/web/server/{prompt-suggestions-EqAaAx6L-723M64XJ.js → prompt-suggestions-EqAaAx6L-B4KCWNZX.js} +1 -1
- package/dist/web/server/{repl-panel-DOyUyuQR-IMYO4FKX.js → repl-panel-DOyUyuQR-LRBDRMHW.js} +3 -3
- package/dist/web/server/{resources-panel-yVB4xF_K-OHFHXVU4.js → resources-panel-Bo-TmRON-O47AKGEQ.js} +7 -7
- package/dist/web/server/{router-UgU5vJxm-R33FGTXY.js → router-DtS2wXhd-I2SZV7YF.js} +5 -5
- package/dist/web/server/{routes-Cbbo-jh9-ZUPH4SJD.js → routes-DuSYlASY-U7C32ONE.js} +5 -5
- package/dist/web/server/server.js +3 -3
- package/dist/web/server/{session-reasoning-panel-C50VbaQ8-4YLMVVY6.js → session-reasoning-panel-BFcZs1pZ-KNHSU5GX.js} +7 -7
- package/dist/web/server/{session-tool-renderer-QcAkYD-V-6RXRKDH6.js → session-tool-renderer-TiFeeJEc-YUZPEEZ4.js} +9 -9
- package/dist/web/server/{session-tree-panel-CL49XSTK-4ZPK6AIV.js → session-tree-panel-CjsqVYLY-DGZBGY2E.js} +6 -6
- package/dist/web/server/{settings-dialog-DG9HEZeP-TWDRDGMN.js → settings-dialog-Bj5LrAE8-6BQRLUJT.js} +10 -10
- package/dist/web/server/{start-DEejK9Uj-FODAOTAO.js → start-cCC--AXu-BBMIT6OU.js} +1 -1
- package/dist/web/server/{subagent-chat-panel-Cg2CxshI-WWGFHTIF.js → subagent-chat-panel-DAS4Ne-1-TWIUXSQC.js} +12 -12
- package/dist/web/server/{subagents-panel-aC3Eo-MR-RNIPLCZQ.js → subagents-panel-C3CdUcqw-DFTJTPHA.js} +12 -12
- package/dist/web/server/{tool-timeline-C4dgQITK-CFWANSDL.js → tool-timeline-C4dgQITK-IWCLQLWG.js} +3 -3
- package/dist/web/server/{workspace-panel-DfdFkgHU-6HIOXRBX.js → workspace-panel-DNs0Ye2U-VFB6X5PK.js} +7 -7
- package/package.json +4 -4
- package/dist/web/client/assets/globals-DZbMyHfg.css +0 -2
- package/dist/web/client/assets/session-tool-renderer-Yu4G1165.js +0 -1389
- package/dist/web/client/assets/subagent-transcript-D_L-8PQi.js +0 -1
- package/dist/web/client/assets/utils-Dpy9ZFOr.js +0 -1
- package/dist/web/server/chunk-PHHC52CO.js +0 -38412
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/routes-
|
|
2
|
-
import{r as e,t}from"./rolldown-runtime-hePW80VL.js";import{t as n}from"./react-Cvdyeg_0.js";import{t as r}from"./react-dom-B7th3XGm.js";import{t as i}from"./jsx-runtime-NZYk81nU.js";import{C as a,F as o,N as s,O as c,P as l,S as u,T as d,_ as f,b as p,c as m,d as h,f as g,g as _,h as v,i as y,j as b,o as x,p as S,u as C,v as ee,x as te}from"./analytics-stub-BY-GADyA.js";import{ot as w}from"./button-BJyg7l5W.js";import{a as ne,i as re,n as ie,r as ae,t as oe}from"./card-BScRdZNS.js";import{$ as se,A as ce,At as le,B as ue,Bt as de,C as fe,Ct as pe,D as me,Dt as he,E as ge,Et as _e,F as ve,Ft as ye,G as be,H as xe,I as Se,It as Ce,J as we,K as T,L as E,Lt as Te,M as Ee,Mt as De,N as Oe,Nt as ke,O as D,Ot as Ae,P as je,Pt as Me,Q as Ne,R as Pe,Rt as Fe,S as Ie,St as Le,T as Re,Tt as ze,U as Be,V as Ve,Vt as He,W as Ue,X as We,Y as Ge,Z as Ke,_t as qe,at as Je,b as Ye,bt as Xe,c as Ze,ct as Qe,d as $e,dt as et,et as tt,ft as nt,gt as rt,ht as it,i as at,it as ot,j as st,jt as ct,k as lt,kt as ut,l as dt,lt as ft,m as pt,mt,n as ht,nt as gt,o as _t,ot as vt,p as yt,pt as bt,q as xt,r as St,rt as Ct,s as wt,st as Tt,t as Et,tt as O,u as Dt,ut as Ot,vt as kt,w as k,wt as At,x as jt,xt as A,yt as Mt,z as Nt}from"./is-ref-object-BD8OGh9C.js";import{n as Pt,r as Ft,t as It}from"./use-presence-rcUnm8Z7.js";import{t as Lt}from"./toast-BFeqSeaR.js";import{n as Rt,r as zt,t as Bt}from"./ui-preferences-1YaENqef.js";import{t as Vt}from"./preload-helper-BZ1Pz5am.js";var Ht=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,re());else{var t=n(l);t!==null&&oe(x,t.startTime-e)}}}var S=!1,C=-1,ee=5,te=-1;function w(){return g?!0:!(e.unstable_now()-te<ee)}function ne(){if(g=!1,S){var t=e.unstable_now();te=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&w());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&oe(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}}}finally{i?re():S=!1}}}var re;if(typeof y==`function`)re=function(){y(ne)};else if(typeof MessageChannel<`u`){var ie=new MessageChannel,ae=ie.port2;ie.port1.onmessage=ne,re=function(){ae.postMessage(null)}}else re=function(){_(ne,0)};function oe(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):ee=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,oe(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,re()))),r},e.unstable_shouldYield=w,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Ut=t(((e,t)=>{t.exports=Ht()})),Wt=t((e=>{var t=Ut(),i=n(),a=r();function o(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function l(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(c(e)!==e)throw Error(o(188))}function f(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(o(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return d(i),e;if(a===r)return d(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}function m(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&m(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function h(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function g(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function _(e){var t=[null,null],n=h(e);return n===null||v(t,e,n.child,{foundSelf:!1}),t}function v(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&v(e,t,n.child,r))return!0;n=n.sibling}return!1}function y(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(o(559))}}var b=null,x=null;function S(e,t,n){return e===n||e===t&&(b=e,!0)}function C(e,t,n){return e===n?(x=e,!1):e===t&&(x!==null&&(b=e),!0)}function ee(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function te(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var w=Object.assign,ne=Symbol.for(`react.element`),re=Symbol.for(`react.transitional.element`),ie=Symbol.for(`react.portal`),ae=Symbol.for(`react.fragment`),oe=Symbol.for(`react.strict_mode`),se=Symbol.for(`react.profiler`),ce=Symbol.for(`react.consumer`),le=Symbol.for(`react.context`),ue=Symbol.for(`react.forward_ref`),de=Symbol.for(`react.suspense`),fe=Symbol.for(`react.suspense_list`),pe=Symbol.for(`react.memo`),me=Symbol.for(`react.lazy`),he=Symbol.for(`react.activity`),ge=Symbol.for(`react.legacy_hidden`),_e=Symbol.for(`react.memo_cache_sentinel`),ve=Symbol.for(`react.view_transition`),ye=Symbol.for(`react.recoverable`),be=Symbol.iterator;function xe(e){return typeof e!=`object`||!e?null:(e=be&&e[be]||e[`@@iterator`],typeof e==`function`?e:null)}var Se=Symbol.for(`react.client.reference`);function Ce(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Se?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ae:return`Fragment`;case se:return`Profiler`;case oe:return`StrictMode`;case de:return`Suspense`;case fe:return`SuspenseList`;case he:return`Activity`;case ve:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case ie:return`Portal`;case le:return e.displayName||`Context`;case ce:return(e._context.displayName||`Context`)+`.Consumer`;case ue:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case pe:return t=e.displayName||null,t===null?Ce(e.type)||`Memo`:t;case me:t=e._payload,e=e._init;try{return Ce(e(t))}catch{}}return null}var we=Array.isArray,T=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Te={pending:!1,data:null,method:null,action:null},Ee=[],De=-1;function Oe(e){return{current:e}}function ke(e){0>De||(e.current=Ee[De],Ee[De]=null,De--)}function D(e,t){De++,Ee[De]=e.current,e.current=t}var Ae=Oe(null),je=Oe(null),Me=Oe(null),Ne=Oe(null);function Pe(e,t){switch(D(Me,t),D(je,e),D(Ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ke(Ae),D(Ae,e)}function Fe(){ke(Ae),ke(je),ke(Me)}function Ie(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,D(Ne,e)),t=Ae.current;var n=dp(t,e.type);t!==n&&(D(je,e),D(Ae,n))}function Le(e){je.current===e&&(ke(Ae),ke(je)),Ne.current===e&&(ke(Ne),sh._currentValue=Te)}var Re,ze;function Be(e){if(Re===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Re=t&&t[1]||``,ze=-1<e.stack.indexOf(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/routes-DO93P3Xm.js","assets/rolldown-runtime-hePW80VL.js","assets/react-Cvdyeg_0.js","assets/react-dom-B7th3XGm.js","assets/jsx-runtime-NZYk81nU.js","assets/analytics-stub-BY-GADyA.js","assets/button-Bqms7ZKX.js","assets/utils-CFDGLzf6.js","assets/createBaseUIEventDetails-DklXWq23.js","assets/dist-BogNzeK9.js","assets/clsx-DB0hHKMi.js","assets/is-ref-object-BD8OGh9C.js","assets/ease-2gsl7ABx.js","assets/use-reduced-motion-BzGFRmoG.js","assets/use-presence-rcUnm8Z7.js","assets/surface-context-VvasJf_6.js","assets/useBaseUiId-BlzQUkVG.js","assets/select-Dp15z1lf.js","assets/check-BTwIaCtI.js","assets/createLucideIcon-CQY2ECfR.js","assets/chevron-down-Bse1ggZM.js","assets/input-DECT4vz2.js","assets/useControlled-CkQSkSv1.js","assets/right-panel-registry-CIfLdAfS.js","assets/bot-DETalD3q.js","assets/folder-COBtkKZa.js","assets/git-branch-DZEh2mM2.js","assets/package-BkC-HSi-.js","assets/right-panel-context-DHKWoetk.js","assets/square-terminal-BLq2bQVF.js","assets/preload-helper-BZ1Pz5am.js","assets/skeleton-DNAr5ULI.js","assets/provider-label-COVNyoZo.js","assets/sparkles-C4VQyMox.js","assets/plug-wCz-036u.js","assets/resource-helpers-CKbSmzpw.js","assets/file-text-cqOanUYv.js","assets/citations-C7USoVdz.js","assets/safe-external-url-BnEhm9A0.js","assets/action-swap-roll-Bek47h-E.js","assets/subagent-utils-CM2qX9BG.js","assets/chevron-right-BPCB1mOg.js","assets/circle-check-DBhaebaM.js","assets/loader-circle-BmKYM_C4.js","assets/x-DEU6H3M-.js","assets/openui-utils-DawGoQNp.js","assets/tokens-CtP2s1Y3.js","assets/workspace-path-nav-umvkE4ut.js","assets/notify-mVA6z9Ly.js","assets/toast-DRDVljMF.js","assets/triangle-alert-BuzmrrqI.js","assets/layout-constants-C4hoW3YP.js","assets/safe-storage-s25GrfpH.js","assets/chat-helpers-Bj7_hES7.js","assets/types-D5hZ8IyV.js","assets/gauge-0Nn96wfZ.js","assets/pencil-Cbgq3ybX.js","assets/refresh-cw-CqPE3kNY.js","assets/rotate-ccw-DLkfsmG9.js","assets/search-Cb6fFWew.js","assets/ui-preferences-1YaENqef.js","assets/prime-agent-artifacts-C-g1VPiW.js","assets/badge-9wr3qUp1.js","assets/dialog-DuCD5hRq.js","assets/prompt-input-Bnl0HyL6.js","assets/arrow-up-DCwrqIrK.js","assets/square-BbTF3gLc.js","assets/surfaces-m1vs5aMP.js","assets/alert-dialog-OoasP5iO.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as e,t}from"./rolldown-runtime-hePW80VL.js";import{t as n}from"./react-Cvdyeg_0.js";import{t as r}from"./react-dom-B7th3XGm.js";import{t as i}from"./jsx-runtime-NZYk81nU.js";import{C as a,F as o,N as s,O as c,P as l,S as u,T as d,_ as f,b as p,c as m,d as h,f as g,g as _,h as v,i as y,j as b,o as x,p as S,u as C,v as ee,x as te}from"./analytics-stub-BY-GADyA.js";import{ot as w}from"./button-Bqms7ZKX.js";import{a as ne,i as re,n as ie,r as ae,t as oe}from"./card-DPCbcrMK.js";import{$ as se,A as ce,At as le,B as ue,Bt as de,C as fe,Ct as pe,D as me,Dt as he,E as ge,Et as _e,F as ve,Ft as ye,G as be,H as xe,I as Se,It as Ce,J as we,K as T,L as E,Lt as Te,M as Ee,Mt as De,N as Oe,Nt as ke,O as D,Ot as Ae,P as je,Pt as Me,Q as Ne,R as Pe,Rt as Fe,S as Ie,St as Le,T as Re,Tt as ze,U as Be,V as Ve,Vt as He,W as Ue,X as We,Y as Ge,Z as Ke,_t as qe,at as Je,b as Ye,bt as Xe,c as Ze,ct as Qe,d as $e,dt as et,et as tt,ft as nt,gt as rt,ht as it,i as at,it as ot,j as st,jt as ct,k as lt,kt as ut,l as dt,lt as ft,m as pt,mt,n as ht,nt as gt,o as _t,ot as vt,p as yt,pt as bt,q as xt,r as St,rt as Ct,s as wt,st as Tt,t as Et,tt as O,u as Dt,ut as Ot,vt as kt,w as k,wt as At,x as jt,xt as A,yt as Mt,z as Nt}from"./is-ref-object-BD8OGh9C.js";import{n as Pt,r as Ft,t as It}from"./use-presence-rcUnm8Z7.js";import{t as Lt}from"./toast-DRDVljMF.js";import{n as Rt,r as zt,t as Bt}from"./ui-preferences-1YaENqef.js";import{t as Vt}from"./preload-helper-BZ1Pz5am.js";var Ht=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,re());else{var t=n(l);t!==null&&oe(x,t.startTime-e)}}}var S=!1,C=-1,ee=5,te=-1;function w(){return g?!0:!(e.unstable_now()-te<ee)}function ne(){if(g=!1,S){var t=e.unstable_now();te=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&w());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&oe(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}}}finally{i?re():S=!1}}}var re;if(typeof y==`function`)re=function(){y(ne)};else if(typeof MessageChannel<`u`){var ie=new MessageChannel,ae=ie.port2;ie.port1.onmessage=ne,re=function(){ae.postMessage(null)}}else re=function(){_(ne,0)};function oe(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):ee=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,oe(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,re()))),r},e.unstable_shouldYield=w,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Ut=t(((e,t)=>{t.exports=Ht()})),Wt=t((e=>{var t=Ut(),i=n(),a=r();function o(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function l(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(c(e)!==e)throw Error(o(188))}function f(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(o(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return d(i),e;if(a===r)return d(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}function m(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&m(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function h(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function g(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function _(e){var t=[null,null],n=h(e);return n===null||v(t,e,n.child,{foundSelf:!1}),t}function v(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&v(e,t,n.child,r))return!0;n=n.sibling}return!1}function y(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(o(559))}}var b=null,x=null;function S(e,t,n){return e===n||e===t&&(b=e,!0)}function C(e,t,n){return e===n?(x=e,!1):e===t&&(x!==null&&(b=e),!0)}function ee(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function te(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var w=Object.assign,ne=Symbol.for(`react.element`),re=Symbol.for(`react.transitional.element`),ie=Symbol.for(`react.portal`),ae=Symbol.for(`react.fragment`),oe=Symbol.for(`react.strict_mode`),se=Symbol.for(`react.profiler`),ce=Symbol.for(`react.consumer`),le=Symbol.for(`react.context`),ue=Symbol.for(`react.forward_ref`),de=Symbol.for(`react.suspense`),fe=Symbol.for(`react.suspense_list`),pe=Symbol.for(`react.memo`),me=Symbol.for(`react.lazy`),he=Symbol.for(`react.activity`),ge=Symbol.for(`react.legacy_hidden`),_e=Symbol.for(`react.memo_cache_sentinel`),ve=Symbol.for(`react.view_transition`),ye=Symbol.for(`react.recoverable`),be=Symbol.iterator;function xe(e){return typeof e!=`object`||!e?null:(e=be&&e[be]||e[`@@iterator`],typeof e==`function`?e:null)}var Se=Symbol.for(`react.client.reference`);function Ce(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Se?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ae:return`Fragment`;case se:return`Profiler`;case oe:return`StrictMode`;case de:return`Suspense`;case fe:return`SuspenseList`;case he:return`Activity`;case ve:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case ie:return`Portal`;case le:return e.displayName||`Context`;case ce:return(e._context.displayName||`Context`)+`.Consumer`;case ue:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case pe:return t=e.displayName||null,t===null?Ce(e.type)||`Memo`:t;case me:t=e._payload,e=e._init;try{return Ce(e(t))}catch{}}return null}var we=Array.isArray,T=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Te={pending:!1,data:null,method:null,action:null},Ee=[],De=-1;function Oe(e){return{current:e}}function ke(e){0>De||(e.current=Ee[De],Ee[De]=null,De--)}function D(e,t){De++,Ee[De]=e.current,e.current=t}var Ae=Oe(null),je=Oe(null),Me=Oe(null),Ne=Oe(null);function Pe(e,t){switch(D(Me,t),D(je,e),D(Ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ke(Ae),D(Ae,e)}function Fe(){ke(Ae),ke(je),ke(Me)}function Ie(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,D(Ne,e)),t=Ae.current;var n=dp(t,e.type);t!==n&&(D(je,e),D(Ae,n))}function Le(e){je.current===e&&(ke(Ae),ke(je)),Ne.current===e&&(ke(Ne),sh._currentValue=Te)}var Re,ze;function Be(e){if(Re===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Re=t&&t[1]||``,ze=-1<e.stack.indexOf(`
|
|
3
3
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
4
|
`+Re+e+ze}var Ve=!1;function He(e,t){if(!e||Ve)return``;Ve=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
5
|
`),l=s.split(`
|
|
@@ -10,4 +10,4 @@ Error generating stack: `+e.message+`
|
|
|
10
10
|
`).replace(Qf,``)}function ep(e,t){return t=$f(t),$f(e)===t}function $(e,t,n,r,i,a){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||vn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&vn(e,``+r);else return;break;case`className`:nn(e,`class`,r);break;case`tabIndex`:nn(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:nn(e,n,r);break;case`style`:xn(e,r,a);return;case`data`:if(t!==`object`){nn(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Tn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof a==`function`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,i.name,i,null),$(e,t,`formEncType`,i.formEncType,i,null),$(e,t,`formMethod`,i.formMethod,i,null),$(e,t,`formTarget`,i.formTarget,i,null)):($(e,t,`encType`,i.encType,i,null),$(e,t,`method`,i.method,i,null),$(e,t,`target`,i.target,i,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Tn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=En);return;case`onScroll`:r!=null&&Q(`scroll`,e);return;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(o(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(o(60));a?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Tn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),tn(e,`popover`,r);break;case`xlinkActuate`:rn(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:rn(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:rn(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:rn(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:rn(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:rn(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:rn(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:rn(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:rn(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:tn(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=Cn.get(n)||n,tn(e,n,r);else return}j=!0}function tp(e,t,n,r,i,a){switch(n){case`style`:xn(e,r,a);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(o(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(o(60));a?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)vn(e,r);else if(typeof r==`number`||typeof r==`bigint`)vn(e,``+r);else return;break;case`onScroll`:r!=null&&Q(`scroll`,e);return;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=En);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!qt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),a=n.slice(2,i?n.length-7:void 0),t=e[jt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(a,t,i),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(a,r,i);break a}j=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):tn(e,n,r)}return}j=!0}function np(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Q(`error`,e),Q(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var s=n[a];if(s!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(o(137,t));default:$(e,t,a,s,n,null)}}i&&$(e,t,`srcSet`,n.srcSet,n,null),r&&$(e,t,`src`,n.src,n,null);return;case`input`:Q(`invalid`,e);var c=a=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:a=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(o(137,t));break;default:$(e,t,r,d,n,null)}}pn(e,a,c,l,u,s,i,!1);return;case`select`:for(i in Q(`invalid`,e),r=s=a=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:a=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:$(e,t,i,c,n,null)}t=a,n=s,e.multiple=!!r,t==null?n!=null&&hn(e,!!r,n,!0):hn(e,!!r,t,!1);return;case`textarea`:for(s in Q(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:a=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(o(91));break;default:$(e,t,s,c,n,null)}_n(e,r,i,a);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:$(e,t,l,r,n,null)}return;case`dialog`:Q(`beforetoggle`,e),Q(`toggle`,e),Q(`cancel`,e),Q(`close`,e);break;case`iframe`:case`object`:Q(`load`,e);break;case`video`:case`audio`:for(r=0;r<zf.length;r++)Q(zf[r],e);break;case`image`:Q(`error`,e),Q(`load`,e);break;case`details`:Q(`toggle`,e);break;case`embed`:case`source`:case`link`:Q(`error`,e),Q(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(o(137,t));default:$(e,t,u,r,n,null)}return;default:if(Sn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&tp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&$(e,t,c,r,n,null))}var rp={};function ip(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||$(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(j=!0),a=m;break;case`name`:m!==f&&(j=!0),i=m;break;case`checked`:m!==f&&(j=!0),u=m;break;case`defaultChecked`:m!==f&&(j=!0),d=m;break;case`value`:m!==f&&(j=!0),s=m;break;case`defaultValue`:m!==f&&(j=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(o(137,t));break;default:m!==f&&$(e,t,p,m,r,f)}}fn(e,s,c,l,u,d,a,i);return;case`select`:for(a in m=s=c=p=null,n)if(l=n[a],n.hasOwnProperty(a)&&l!=null)switch(a){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(a)||$(e,t,a,null,r,l)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case`value`:a!==l&&(j=!0),p=a;break;case`defaultValue`:a!==l&&(j=!0),c=a;break;case`multiple`:a!==l&&(j=!0),s=a;default:a!==l&&$(e,t,i,a,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?hn(e,!!n,n?[]:``,!1):hn(e,!!n,t,!0)):hn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:$(e,t,c,null,r,i)}for(s in r)if(i=r[s],a=n[s],r.hasOwnProperty(s)&&(i!=null||a!=null))switch(s){case`value`:i!==a&&(j=!0),p=i;break;case`defaultValue`:i!==a&&(j=!0),m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(o(91));break;default:i!==a&&$(e,t,s,i,r,a)}gn(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:$(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(j=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:$(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&$(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(o(137,t));break;default:$(e,t,u,p,r,m)}return;default:if(Sn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&tp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||tp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&$(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||$(e,t,f,p,r,m)}function ap(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function op(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&ap(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&ap(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var sp=null,cp=null;function lp(e){return e.nodeType===9?e:e.ownerDocument}function up(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function dp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function fp(e,t,n,r){return n=lp(n).createElement(e),n[At]=r,n[jt]=t,np(n,e,t),Wt(n),n}function pp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var mp=null;function hp(){var e=window.event;return e&&e.type===`popstate`?e!==mp&&(mp=e,!0):(mp=null,!1)}var gp=typeof setTimeout==`function`?setTimeout:void 0,_p=typeof clearTimeout==`function`?clearTimeout:void 0,vp=typeof Promise==`function`?Promise:void 0,yp=typeof requestAnimationFrame==`function`?requestAnimationFrame:gp,bp=typeof queueMicrotask==`function`?queueMicrotask:vp===void 0?gp:function(e){return vp.resolve(null).then(e).catch(xp)};function xp(e){setTimeout(function(){throw e})}function Sp(e){return e===`head`}function Cp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Hh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)_m(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,_m(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[It]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&_m(e.ownerDocument.body)}n=i}while(n);Hh(t)}function wp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Tp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Ep(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Dp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Op(e){return Dp(e.getBoundingClientRect(),getComputedStyle(e),e)}function kp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Dp(t,n,e)}function Ap(e){return e.documentElement.clientHeight}function jp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Mp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Ap(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=Xm(f),u>$m){s.length=o;break}f=new Promise(jp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Np(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Np.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:w({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Np.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Np.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Pp(e){return{name:e,group:new Np(`group`,e),imagePair:new Np(`image-pair`,e),old:new Np(`old`,e),new:new Np(`new`,e)}}function Fp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Fp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Bp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Rp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),m(this._fragmentFiber.child,!1,Ip,e,s,r)}this._eventListeners=a}};function Ip(e,t,n,r){return y(e).addEventListener(t,n,r),!1}Fp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Bp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Rp(i.optionsOrUseCapture),m(this._fragmentFiber.child,!1,Lp,e,n,i),r.splice(t,1),a!==null&&a()}};function Lp(e,t,n,r){return y(e).removeEventListener(t,n,r),!1}function Rp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function zp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Bp(e,t,n,r){if(e.length===0)return-1;r=zp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&zp(a.optionsOrUseCapture)===r)return i}return-1}Fp.prototype.dispatchEvent=function(e){var t=h(this._fragmentFiber);if(t===null)return!0;t=y(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Rp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Rp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Fp.prototype.focus=function(e){m(this._fragmentFiber.child,!0,Vp,e,void 0,void 0)};function Vp(e,t){return e.tag!==6&&(e=y(e),pm(e,t))}Fp.prototype.focusLast=function(e){var t=[];m(this._fragmentFiber.child,!0,Hp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Vp(t[n],e);n--);};function Hp(e,t){return t.push(e),!1}Fp.prototype.blur=function(){var e=h(this._fragmentFiber);e!==null&&(e=y(e),e=lp(e).activeElement,e!==null&&m(this._fragmentFiber.child,!1,Up,e,void 0,void 0))};function Up(e,t){return e.tag!==6&&(e=y(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Fp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),m(this._fragmentFiber.child,!1,Wp,e,void 0,void 0)};function Wp(e,t){return e.tag!==6&&(e=y(e),t.observe(e),!1)}Fp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),m(this._fragmentFiber.child,!1,Gp,e,void 0,void 0);for(var n=t=0;n<Kp.length;n++){var r=Kp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Kp[t++]=r}Kp.length=t}};function Gp(e,t){return e.tag!==6&&(e=y(e),t.unobserve(e),!1)}var Kp=[],qp=!1;function Jp(e,t,n){Kp.push({fragmentInstance:e,observer:t,instance:n}),qp||(qp=!0,mm(function(){qp=!1;var e=Kp;Kp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Fp.prototype.getClientRects=function(){var e=[];return m(this._fragmentFiber.child,!1,Yp,e,void 0,void 0),e};function Yp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=y(e),t.push.apply(t,e.getClientRects());return!1}Fp.prototype.getRootNode=function(e){var t=h(this._fragmentFiber);return t===null?this:y(t).getRootNode(e)},Fp.prototype.compareDocumentPosition=function(e){var t=h(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];m(this._fragmentFiber.child,!1,Hp,n,void 0,void 0);var r=y(t);if(n.length===0){if(n=r,g(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=_(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=y(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=y(n[0]),i=y(n[n.length-1]);var a=g(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Xp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Xp(e,t,n,r,i){var a=zt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=h(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=te(n,a,ee),t===null?t=!1:(m(t,!0,S,a,n),a=b,b=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=te(r,a,ee),t===null?t=!1:(m(t,!0,C,a,r),a=b,x=b=null,t=a!==null)),t):!1}function Zp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Fp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(o(566));var t=[];m(this._fragmentFiber.child,!1,Hp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=_(this._fragmentFiber);if(r=n?r[1]||r[0]||h(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=y(r),Zp(e,n);return}if(r=y(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var i=t[r];i.tag===6?(i=y(i),Zp(i,n)):y(i).scrollIntoView(e),r+=n?-1:1}};function Qp(e,t){return e=y(e),$p(e,t),!1}function $p(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function em(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Kp.length;i++){var a=Kp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Kp[r++]=a)}Kp.length=r,n.observe(e)}),$p(e,t))}function tm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Jp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function nm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:nm(n),Rt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function rm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[It])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=lm(e.nextSibling),e===null)break}return null}function im(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lm(e.nextSibling),e===null))return null;return e}function am(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lm(e.nextSibling),e===null))return null;return e}function om(e){return e.data===`$?`||e.data===`$~`}function sm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function lm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var um=null;function dm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function fm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function pm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function mm(e){yp(function(){yp(function(t){return e(t)})})}function hm(e,t,n){switch(t=lp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(o(452));return e;case`head`:if(e=t.head,!e)throw Error(o(453));return e;case`body`:if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function gm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&$(e,t,r,null,rp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===En&&(e.onclick=null),Rt(e)}function _m(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Rt(e)}var vm=new Map,ym=new Set;function bm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var xm=E.d;E.d={f:Sm,r:Cm,D:Em,C:Dm,L:Om,m:km,X:jm,S:Am,M:Mm};function Sm(){var e=xm.f(),t=Bd();return e||t}function Cm(e){var t=Bt(e);t!==null&&t.tag===5&&t.type===`form`?sc(t):xm.r(e)}var wm=typeof document>`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=dn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),Wt(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+dn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+dn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+dn(n.imageSizes)+`"]`)):i+=`[href="`+dn(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=w({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[Lt]=!0,o.onload=o.onerror=function(){Gt(o)}),Wt(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+dn(r)+`"][href="`+dn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=w({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),Wt(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=Ht(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=w({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Wt(c),np(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=Ht(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=w({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Wt(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=Ht(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=w({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Wt(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var i=(i=Me.current)?bm(i):null;if(!i)throw Error(o(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=Ht(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pm(n.href);var a=Ht(i).hoistableStyles,s=a.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,s),(a=i.querySelector(Fm(e)))?a._p||(s.instance=a,s.state.loading=5):(a=vm.get(e),a||(a={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,a)),Lm(i,e,a,s.state))),t&&r===null)throw Error(o(528,``));return s}if(t&&r!==null)throw Error(o(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=Ht(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Pm(e){return`href="`+dn(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Lt]){r.loading=1;return}}else t=e.createElement(`link`),t[Lt]=!0,t.onload=t.onerror=Gt.bind(null,t),np(t,`link`,n),Wt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Rm(e){return`[src="`+dn(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+dn(n.href)+`"]`);if(r)return t.instance=r,Wt(r),r;var i=w({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Wt(r),np(r,`style`,i),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Pm(n.href);var a=e.querySelector(Fm(i));if(a)return t.state.loading|=4,t.instance=a,Wt(a),a;r=Im(n),(i=vm.get(i))&&Hm(r,i),a=(e.ownerDocument||e).createElement(`link`),Wt(a);var s=a;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),np(a,`link`,r),t.state.loading|=4,Vm(a,n.precedence,e),t.instance=a;case`script`:return a=Rm(n.src),(i=e.querySelector(zm(a)))?(t.instance=i,Wt(i),i):(r=n,(i=vm.get(a))&&(r=w({},n),Um(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Wt(i),np(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(o(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Hm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Um(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Wm=null;function Gm(e,t,n){if(Wm===null){var r=new Map,i=Wm=new Map;i.set(n,r)}else i=Wm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[It]||a[At]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Km(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function qm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Wt(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Wt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&$m===0&&($m=62500*op());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=nh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var sh={$$typeof:le,Provider:null,Consumer:null,_currentValue:Te,_currentValue2:Te,_threadCount:0};function ch(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=xt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xt(0),this.hiddenUpdates=xt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function lh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ch(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=zi(3,null,null,t),e.current=a,a.stateNode=e,t=Ia(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},yo(a),e}function uh(e){return e?(e=Li,e):Li}function dh(e,t,n,r,i,a){i=uh(i),r.context===null?r.context=i:r.pendingContext=i,r=xo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=So(e,r,t),n!==null&&(Fd(n,e,t),Co(n,e,t))}function fh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ph(e,t){fh(e,t),(e=e.alternate)&&fh(e,t)}function mh(e){if(e.tag===13||e.tag===31){var t=Pi(e,67108864);t!==null&&Fd(t,e,67108864),ph(e,67108864)}}function hh(e){if(e.tag===13||e.tag===31){var t=Md();t=O(t);var n=Pi(e,t);n!==null&&Fd(n,e,t),ph(e,t)}}var gh=!0;function _h(e,t,n,r){var i=T.T;T.T=null;var a=E.p;try{E.p=2,yh(e,t,n,r)}finally{E.p=a,T.T=i}}function vh(e,t,n,r){var i=T.T;T.T=null;var a=E.p;try{E.p=8,yh(e,t,n,r)}finally{E.p=a,T.T=i}}function yh(e,t,n,r){if(gh){var i=bh(r);if(i===null)Kf(e,t,r,xh,n),Mh(e,r);else if(Ph(i,e,t,n,r))r.stopPropagation();else if(Mh(e,r),t&4&&-1<jh.indexOf(e)){for(;i!==null;){var a=Bt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=ht(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-ct(o);s.entanglements[1]|=c,o&=~c}Ef(a),!(G&6)&&(_d=Xe()+500,Df(0,!1))}}break;case 31:case 13:s=Pi(a,2),s!==null&&Fd(s,a,2),Bd(),ph(a,2)}if(a=bh(r),a===null&&Kf(e,t,r,xh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Kf(e,t,r,null,n)}}function bh(e){return e=On(e),Sh(e)}var xh=null;function Sh(e){if(xh=null,e=zt(e),e!==null){var t=c(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=l(t),e!==null)return e;e=null}else if(n===31){if(e=u(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return xh=e,null}function Ch(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ze()){case Qe:return 2;case $e:return 8;case et:case tt:return 32;case nt:return 268435456;default:return 32}default:return 32}}var wh=!1,Th=null,Eh=null,Dh=null,Oh=new Map,kh=new Map,Ah=[],jh=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Mh(e,t){switch(e){case`focusin`:case`focusout`:Th=null;break;case`dragenter`:case`dragleave`:Eh=null;break;case`mouseover`:case`mouseout`:Dh=null;break;case`pointerover`:case`pointerout`:Oh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:kh.delete(t.pointerId)}}function Nh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Bt(t),t!==null&&mh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ph(e,t,n,r,i){switch(t){case`focusin`:return Th=Nh(Th,e,t,n,r,i),!0;case`dragenter`:return Eh=Nh(Eh,e,t,n,r,i),!0;case`mouseover`:return Dh=Nh(Dh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Oh.set(a,Nh(Oh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,kh.set(a,Nh(kh.get(a)||null,e,t,n,r,i)),!0}return!1}function Fh(e){var t=zt(e.target);if(t!==null){var n=c(t);if(n!==null){if(t=n.tag,t===13){if(t=l(n),t!==null){e.blockedOn=t,kt(e.priority,function(){hh(n)});return}}else if(t===31){if(t=u(n),t!==null){e.blockedOn=t,kt(e.priority,function(){hh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ih(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Dn=r,n.target.dispatchEvent(r),Dn=null}else return t=Bt(n),t!==null&&mh(t),e.blockedOn=n,!1;t.shift()}return!0}function Lh(e,t,n){Ih(e)&&n.delete(t)}function Rh(){wh=!1,Th!==null&&Ih(Th)&&(Th=null),Eh!==null&&Ih(Eh)&&(Eh=null),Dh!==null&&Ih(Dh)&&(Dh=null),Oh.forEach(Lh),kh.forEach(Lh)}function zh(e,n){e.blockedOn===n&&(e.blockedOn=null,wh||(wh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Rh)))}var Bh=null;function Vh(e){Bh!==e&&(Bh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Bh===e&&(Bh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Sh(r||n)===null)continue;break}var a=Bt(n);a!==null&&(e.splice(t,3),t-=3,ac(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Hh(e){function t(t){return zh(t,e)}Th!==null&&zh(Th,e),Eh!==null&&zh(Eh,e),Dh!==null&&zh(Dh,e),Oh.forEach(t),kh.forEach(t);for(var n=0;n<Ah.length;n++){var r=Ah[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ah.length&&(n=Ah[0],n.blockedOn===null);)Fh(n),n.blockedOn===null&&Ah.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[jt]||null;if(typeof a==`function`)o||Vh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[jt]||null)s=o.formAction;else if(Sh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Vh(n)}}}function Uh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Wh(e){this._internalRoot=e}Gh.prototype.render=Wh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current;dh(n,Md(),e,t,null,null)},Gh.prototype.unmount=Wh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dh(e.current,2,null,e,null,null),Bd(),t[A]=null}};function Gh(e){this._internalRoot=e}Gh.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ot();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ah.length&&t!==0&&t<Ah[n].priority;n++);Ah.splice(n,0,e),n===0&&Fh(e)}};var Kh=i.version;if(Kh!==`19.3.0`)throw Error(o(527,Kh,`19.3.0`));E.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(o(188)):(e=Object.keys(e).join(`,`),Error(o(268,e)));return e=f(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var qh={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:T,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Jh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jh.isDisabled&&Jh.supportsFiber)try{at=Jh.inject(qh),ot=Jh}catch{}}e.hydrateRoot=function(e,t,n){if(!s(e))throw Error(o(299));var r=!1,i=``,a=Oc,c=kc,l=z,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=lh(e,1,!0,t,n??null,r,i,u,a,c,l,Uh),t.context=uh(null),n=t.current,r=Md(),r=O(r),i=xo(r),i.callback=null,So(n,i,r),n=r,t.current.lanes=n,St(t,n),Ef(t),e[A]=t.current,Wf(e),new Gh(t)}})),Gt=t(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Wt()})),Kt=`__TSS_CONTEXT`,qt=Symbol.for(`TSS_SERVER_FUNCTION`),Jt=`application/x-tss-framed`;`${Jt}`;var Yt=()=>window.__TSS_START_OPTIONS__;function Xt(e){return e?.isNotFound===!0}function Zt(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 $t(e){if(typeof e==`object`&&e&&e.isSerializedRedirect)return Zt(e)}function j(e){return e.replaceAll(`\0`,`/`).replaceAll(`�`,`/`).replace(/~([~0r])/g,(e,t)=>t===`0`?`\0`:t===`r`?`�`:t)}function en(e){return e[e.length-1]}function tn(e,t){return typeof e==`function`?e(t):e}var nn=Object.prototype.hasOwnProperty;function rn(e){for(let t in e)if(nn.call(e,t))return!0;return!1}var an=()=>Object.create(null),on=(e,t)=>sn(e,t,!0);function sn(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&&!(cn(e)&&cn(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&&en(a)!==`${o-1}`||c&&en(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`?sn(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`?sn(d,o,n,r):o,i&&=u===d&&(a[l]===f||nn.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?an():{};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`?sn(d,u,n,r):u),p[f]=o<l?d:u):p[f]=a[o];return p}function cn(e){return!e||typeof e!=`object`?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function ln(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&&!ln(a,o,n,r))return!1}return!0}if(cn(e)&&cn(t)){if(n){for(let i in t)if((r||t[i]!==void 0)&&!ln(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||!ln(e[a],t[a],n,r)))return!1;return i===0}return!1}function un(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 dn=/[\x00-\x1f\x7f"<>`{}]/g;function fn(e){return e.replace(dn,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function pn(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 fn(t)}var mn=[`http:`,`https:`,`mailto:`,`tel:`];function hn(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 gn=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function _n(e,t){if(!e)return!1;if(gn.test(e))return!0;let n=hn(e);return n?!t.has(n):!1}var vn={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},yn=/[&><\u2028\u2029]/g;function bn(e){return e.replace(yn,e=>vn[e])}function xn(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+=pn(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=pn(r?e.slice(r):e)}return t}function Sn(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function Cn(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 wn(e){return e.replace(/\/{2,}/g,`/`)}function Tn(e){return e===`/`?e:e.replace(/^\/+/,``)}function En(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function Dn(e){return En(Tn(e))}function On(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function kn(e,t,n=`never`,r){if(t.includes(`//`)&&(t=wn(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=wn(e)),o=e.split(`/`);o.length>1&&en(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&&(en(o)===``?n===`never`&&o.pop():n===`always`&&o.push(``));let s=o.join(`/`),c=(i?wn(s):s)||`/`;return a&&r&&r.set(a,c),c}function An(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 jn(e){return e==null||e===``}function Mn(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 Nn(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&&jn(f)){if(c===`/`&&!d)continue;f=``}o+=c+Mn(s,f,r)+(d||``)}}return o+a||`/`}function Pn(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}}}function Fn(){throw Error(`Invariant failed`)}var In=4,Ln=5;function Rn(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 zn(e,t,n){let r=e.substring(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.substring(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.substring(s,a);return[o?3:c?1:2,c||`_splat`,r.substring(0,i),e.substring(t+a+1,c?n:e.length)]}}return r}function Bn(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=en(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=zn(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=Hn(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.substring(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=Hn(r,t,_,h,g);c=e,v.push(e),v.length===2&&i?.push(v)}}r=c}p&&m<u&&p.push(s.substring(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=Hn(r,Ln);(r.pathless??=[]).push(e),r=e}let g=(t.path||!t.children)&&!t.isRoot;if(g&&u<l){let e=Hn(r,In);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 Vn(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 Hn(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 Un(e,t){let n=Hn(),r=[];function i(e,t,n,a){let[o,s,c]=Bn(!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(Vn);t.masksTree=n,t.flatCache=Pn(1e3)}function Wn(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=Jn(e,t.masksTree);return t.flatCache.set(e,r),r}function Gn(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=Hn(),Bn(t,{from:e},1,o),i.singleCache.set(a,o)),Jn(r,o,n)}function Kn(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=Jn(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Xn(a.route)),t.matchCache.set(r,a),a}function qn(e,t=!1){let n=Hn(),r=[],i={},a={},o=0;function s(e,n,c,l){if(e.init(o),e.id in i&&Fn(),i[e.id]=e,o!==0&&e.path){let t=En(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}o++;let[u,d,f]=Bn(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(Vn);return{processedTree:{segmentTree:n,singleCache:Pn(1e3),matchCache:Pn(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function Jn(e,t,n=!1){let r=e.split(`/`),i=Qn(e,r,t,n);if(!i)return null;let[a]=Yn(e,r,i);return{route:i.node.route,rawParams:a}}function Yn(e,t,n){let r=Zn(n.node),i=n.node.data&&Rn(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===In)break;if(u.kind===Ln){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 Xn(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Zn(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Qn(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!en(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&&!nr(l,n))continue;if(i.parse){if(!tr(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==In&&nr(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===In||i.kind===2)&&nr(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&&(tr(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&er(f,o))return n;nr(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+$n(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+$n(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+$n(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+$n(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 $n(e,t){return 2**(e-t-1)}function er(e,t){return e===2**(t-1)-1}function tr(e,t,n){let r,i;try{[r,i]=Yn(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 nr(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===In)>(e.node.kind===In)||t.node.kind===In==(e.node.kind===In)&&t.node.depth>e.node.depth)))}function rr(){try{return sessionStorage}catch{return}}var ir=`tsr-scroll-restoration-v1_3`,ar=rr();function or(){try{return JSON.parse(ar?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var sr=or(),cr=`data-scroll-restoration-id`,lr=e=>e.state.__TSR_key||e.href;function ur(e){let t=e.getAttribute(cr);if(t)return`[${cr}="${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 dr=!1,fr=`window`;function pr(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function mr(e){let t=new Set;for(let n of e){if(n===fr)continue;let e=pr(n);e&&t.add(e)}return t}function hr(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||lr,a=new Set,o=e=>{let t=sr[e]||={};for(let e of a)e===document?t[fr]={scrollX,scrollY}:e.isConnected&&(t[ur(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,dr=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{dr||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{ar?.setItem(ir,JSON.stringify(sr))}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=sr[d];if(e){let t=sr[u];for(let n in e){if(n===fr){if(s)continue}else{let e=pr(n);if(!e||s&&o&&(l??=mr(o),l.has(e)))continue}t||=sr[u]={},t[n]??=e[n]}}}dr=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=mr(o));let t=e&&i&&c,s=r.e?sr[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===fr){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=pr(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{dr=!1}}))}function gr(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 _r(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function vr(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]=_r(r):Array.isArray(t)?t.push(_r(r)):n[e]=[t,_r(r)]}return n}var yr=/^(?:\s|["[{\d-]|fa|nu|tr)/,br=Sr(JSON.parse),xr=Cr(JSON.stringify,JSON.parse);function Sr(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.substring(1));let r=vr(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!yr.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function Cr(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&&!yr.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=gr(e,r);return t?`?${t}`:``}}var wr=`__root__`;function Tr(e,t,n){let r=Dn(e),i=`/${r}`,a=t?i:i.toLowerCase(),o=`${a}/`,s={input:({url:e})=>{let n=t?e.pathname:e.pathname.toLowerCase();return n===a?e.pathname=`/`:n.startsWith(o)&&(e.pathname=e.pathname.slice(i.length)),e},output:({url:e})=>(e.pathname=wn(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>Er(n,s.input({url:e})),output:({url:e})=>s.output({url:Dr(n,e)})}:s}function Er(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 Dr(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 Or(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(()=>{Cn(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 kr=`__TSR_index`,Ar=`popstate`,jr=`beforeunload`,Mr=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function Nr(e){let t=Mr.exec(e);return t?`/`+e.slice(t[0].length):e}function Pr(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`
|
|
11
11
|
\r`.includes(e)?``:encodeURIComponent(e))),Nr(e)}function Fr(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({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=Rr(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};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[kr];i=Ir(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[kr];i=Ir(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[kr]!==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 Ir(e,t){let n=zr();return{...t,key:n,__TSR_key:n,[kr]:e}}function Lr(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=>Pr(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>Rr(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=zr();t.history.replaceState({[kr]: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=Rr(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[kr]-l.state[kr],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){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=Fr({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:e=>s(e),flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(jr,x,{capture:!0}),t.removeEventListener(Ar,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(jr,x,{capture:!0}),t.addEventListener(Ar,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 Rr(e,t){let n=Pr(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=zr();t={[kr]:0,key:e,__TSR_key:e}}return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t}}function zr(){return(Math.random()+1).toString(36).substring(7)}function Br(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function Vr(e){return e.pathname+e.search+e.hash}function Hr(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function Ur(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function Wr(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function Gr({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function Kr(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function qr(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 Jr=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:Lr()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`;let n=this.options.basepath??`/`,r=this.options.rewrite,i=this.basepath!==n||t?.rewrite!==r||t?.caseSensitive!==this.options.caseSensitive;if(i&&(this.basepath=n,this.rewrite=n!==`/`&&Dn(n)?Tr(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=Or(this.latestLocation,e),hr(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=qn(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&Un(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:Pn(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:xn(e),external:!1,searchStr:o,search:on(t?.search,i),hash:xn(r.slice(1)),state:sn(t?.state,a)}}let o=Er(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:xn(Nr(o.pathname)),external:!!this.rewrite&&Br(o,this.origin),searchStr:c,search:on(t?.search,s),hash:xn(o.hash.slice(1)),state:sn(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=Kn(En(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=Rr(n.href,{});n={...n,to:Er(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let r=n._fromLocation||this._pendingLocation||this.latestLocation,i,a=()=>(t=!0,r),o=()=>(t=!0,i??=this.matchRoutesLightweight(r)),s=n.to?`${n.to}`:`.`,c=kn(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),l=this.routesByPath[En(c)],u=c.includes(`$`),d;if(l)d=l._branch??=Xn(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??Bn(!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??=$r(n.params,e),!rn(p))break;p===e&&(p=Object.assign(an(),p));try{Object.assign(p,t(p))}catch{}}}p??=$r(n.params,ei(n.params,f)?o()[3]:ti);let m=e.leaveParams?c:Nr(xn(f?Nn(c,f,p,this.pathParamsDecoder):c)),h=ni(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,Qr(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},_=h.length?ri(h,g(),n):n.search===!0?g():typeof n.search==`function`?n.search(g()):n.search||ti,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:ti,S=`${m}${v}${b}`,C,ee,te=!1;if(this.rewrite){let e=new URL(S,this.origin),t=e.origin,n=Dr(this.rewrite,e);C=Vr(e),Br(n,t)?(ee=n.href,te=!0):ee=Nr(Vr(n))}else C=Sn(S),ee=C;return{publicHref:ee,href:C,pathname:m,search:_,searchStr:v,state:x,hash:y??``,external:te,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=Wn(r.pathname,this.processedTree);if(t){let i=Object.assign(an(),t.rawParams),{from:a,params:o,...s}=t.route,c=$r(o,i);r.maskedLocation=n({from:e.from,...s,params:c})}}return!t&&e._fromLocation&&!r.maskedLocation&&this.staticLocations.set(e,r),r},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=n.maskedLocation??n;if(r.external)return Yr(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=En(this.latestLocation.href)===En(n.href)&&ln(Gr(n.state),Gr(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?hn(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 Yr(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 Yi(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(Wr(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`)&&Hr(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(gn.test(n)||(r=hn(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:Br(e,this.origin)||(n=Vr(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=ci,this.preloadRoute=e=>Xi(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?kn(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=Gn(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!ln(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?ln(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=An(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??xr,parseSearch:e.parseSearch??br,protocolAllowlist:e.protocolAllowlist??mn}),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=Bn(!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[`**`]:En(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?ii(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=Qr(i.options.validateSearch,{...n})??void 0;l={...n,...e},f={...r,...e}}catch(e){let r=e;if(e instanceof Xr||(r=new Xr(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=an(),_=i._interpolation?Nn(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{ai(i,d)}catch(e){if(x=Xt(e)||Qt(e)?e:new Zr(e.message,{cause:e}),t?.throwOnError)throw x}let S=y?`stay`:`enter`,C;if(b)C={...b,cause:S,search:on(y?y.search:b.search,l),_strictSearch:f,searchError:p};else{let e=Hr(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?on(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?sn(y.loaderDeps,m):m,invalid:!1,preload:!1,staticData:i.options.staticData||{},fullPath:i.fullPath}}let ee=s===i.id;C._notFound&&!ee&&(C.error=void 0),C._notFound=ee,c[n]=C}for(let e=0;e<c.length;e++){let n=c[e];n.params=n.cause===`stay`?on(n.params,d):d,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=en(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=en(a),c={...e.search};for(let e of a)try{Object.assign(c,Qr(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{ai(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}};async function Yr(e,t,{replace:n,ignoreBlocker:r}){if(!_n(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 Xr=class extends Error{},Zr=class extends Error{};function Qr(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Xr(`Async validation not supported`);if(n.issues)throw new Xr(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 $r(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 ei(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!nn.call(e,t[1]))}var ti=Object.freeze({});function ni(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=Qr(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 ri(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=tn(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 ii(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 wr}function ai(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function oi(e,t){return e.options[t]?.preload?.()}function si(e,t){let n=oi(e,`component`),r=oi(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function ci(e,t,n){let r=()=>t===!1?void 0:t?oi(e,t):si(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 li(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function ui(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));continue}if(r.status!==`success`||r._notFound){t=n+1;break}}return t<e.length?e.slice(0,t):e}var di=0,fi=1,pi=2,mi=3,hi=[4];function gi(e){return typeof e[0]==`number`}function _i(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 vi(e,t){return e.routesById[t.routeId]}function yi(e,t,n){return Qt(e)?[mi,e]:Xt(e)?(e.routeId||=n,[pi,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[fi,e]):[di,e]}function bi(e,t){let n=yi(t,!0,e.id);if(n[0]!==fi)return n;try{e.options.onError?.(n[1])}catch(t){n=yi(t,!0,e.id)}return n}function xi(e,t,n,r,i){return i[0].signal.aborted?hi:Ii(e,t,n,bi(n,r),i)}async function Si(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=vi(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 wi(e,r),[i,xi(e,t,u,a,n)]}if(c.aborted)return[i,hi];let p=r.paramsError??r.searchError;if(p!==void 0)return wi(e,r),[i,xi(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{Ei(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?_i(a,c):a);if(c.aborted)return[i,hi];let s=Ii(e,t,u,yi(o,!1,u.id),n);if(s[0]!==di)return wi(e,r),[i,s];r.context={...r.context,...o}}catch(a){return wi(e,r),[i,xi(e,t,u,a,n)]}finally{r.status=h,Ei(e,r,!1,n[0])}}i()}function Ci(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 wi(e,t){let n=t._flight;t._flight=void 0,Ci(e,t,n)?.abort()}function M(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=Ci(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function Ti(e){for(let t of e){let e=t._flight;e&&e[2]++}}function Ei(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 Di(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 Oi(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return hi;if(!i)return[di,void 0];let l=n._flight;Ei(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(Di(e,t,n,r,s,a,!!o[3]))).then(e=>yi(e,!1,r.id),e=>yi(e,!0,r.id)).then(t=>(t[0]!==di&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===fi&&l[2]?bi(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],Ii(e,t,r,await _i(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return wi(e,n),hi}finally{Ei(e,n,!1,s)}}function ki(e,t,n){t[0]!==mi&&(e.status=`success`,e.error=void 0,t[0]===di?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function Ai(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&&wi(e,r)}function ji(e,t){return t[0]===fi||t[0]===pi?{...e,status:t[0]===fi?`error`:`notFound`,error:t[1],_flight:void 0}:e}function Mi(e,t,n,r,i,a,o){let s=t[1][n],c=vi(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(Di(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=hi)),!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,wi(e,s),p=xi(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,Ci(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let ee=!p&&x?Oi(e,t,s,c,g,i,a).then(t=>(ki(s,t,l),t[0]===di&&(m&&!a[0].signal.aborted&&Ai(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[di,s.loaderData]),te=(async()=>{try{let e=ci(c,void 0,C);e&&await _i(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,xi(e,t,c,r,a)]}let r=await ee;x&&r[0]===di&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,ee,te]),!y)return ee.then(e=>ji(s,e));let w={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let ne=Oi(e,t,w,c,g,i,a).then(e=>(s.isFetching=!1,ki(w,e,!1),e));return(t[2]??=[]).push([n,ne,te,w]),ne.then(e=>ji(w,e))}async function Ni(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=vi(e,t[n]);try{let e=ci(i,!1);e&&await _i(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function Pi(e,t){t[2]&&=(M(e,t[2].map(e=>e[3])),void 0)}async function Fi(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]>=mi)throw[a,t];!i&&t[0]!==di&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===mi)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function Ii(e,t,n,r,i,a){for(;r[0]===mi;){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]?[mi,t]:[mi,t,a]}return[mi,o,n]}catch(e){r=a?[fi,e]:bi(n,e),a=!0}}return r}async function Li(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]===pi?Ni(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=mi)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]!==di&&t[0]<mi&&!(`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)>=mi){let n=s[1];if(n[0]!==mi||n[1].options.reloadDocument||n[2])return Pi(e,t),n;c=!0,s=[0,[fi,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===fi?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=vi(e,u);try{await _i(i?Promise.resolve().then(()=>ci(m,l===fi?`errorComponent`:`notFoundComponent`)):Promise.all([ci(m),ci(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return Pi(e,t),hi}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),Pi(e,t),M(e,o),p()):u.status=`success`}return t}async function Ri(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=vi(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 _i(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 zi(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 Ni(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=Mi(e,i,t,u,f,r,l)},m=await Si(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===pi){let t=await Ni(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=mi&&(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=Li(e,i,u,r[0],Fi(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=Fi(i[2],void 0,void 0,h.then(e=>gi(e)?0:li(n).length,()=>0))),o=await h}catch(t){if(Pi(e,i),t===a&&a.aborted)return hi;throw t}return gi(o)?o:Ri(e,o,a,r[6]===n.length?r[6]:0)}function Bi(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=vi(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(()=>Bi(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 Vi(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 Hi(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!li(t[3]).some(e=>e.id===n[1]))return;let i;try{await _i(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function Ui(e,t){e._committed=t,e.stores.setMatches(t)}function Wi(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=li(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=vi(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=Kr(n);Ui(e,n),M(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),qr(e,i,n,a,l,t)}async function Gi(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function Ki(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 qi(e,t,n,r,i){let a=n.map(e=>({...e}));Ti(a);for(let t of r)wi(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await Li(e,o,r,t[0],i)}catch(t){throw M(e,a),t}if(gi(s)){M(e,a),s[0]===mi&&e._tx===t&&e._committed===n&&await Ki(e,t,s);return}if(await Ri(e,s,t[0].signal),e._tx!==t||e._committed!==n){M(e,a);return}for(let t of a){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),wi(e,n))}Ui(e,a),M(e,n,a)}async function Ji(e,t,n,r,i,a){let o=await zi(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(gi(o)){let n=o[0]===mi&&e._tx===t;if((!n||o[1].options.reloadDocument)&&Vi(e,t),M(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){Vi(e,t);return}await Ki(e,t,o);return}let s=o[1];if(e._tx===t&&await Hi(e,t),e._tx!==t){Vi(e,t),M(e,s),Pi(e,o);return}let c=t[2],l=Wr(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await Hi(e,t),e._tx!==t){Vi(e,t),M(e,s),Pi(e,o);return}let n=await e.startTransition(()=>{Vi(e,t),Wi(e,t,s,a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s);if(e._tx!==t){Pi(e,o);return}u?.length&&qi(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)})}async function Yi(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=Wr(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await Gi(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});Ti(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){M(e,m),await Gi(e,n);return}e._preflight=void 0;let g,_=()=>Ji(e,y,f,()=>Bi(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(()=>Gi(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&Ei(e,t,!1)}n[0].abort(),M(e,n[3],y[3],!0)}if(e._tx!==y){M(e,y[3]),y[3]=[],g?.(),await Gi(e,y);return}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))&&Bi(e,y),g?.(_()),await y[5]}async function Xi(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}),Ti(a),o=(e._preloads??=new Map).set(i,a),s=await zi(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),M(e,a)),i.abort()}if(!gi(s))return s[1];if(!o||s.length<3)return;n=s[2]}catch(e){Xt(e)||console.error(e);return}}}async function Zi(e){let t=window.$_TSR,n=e.options.serializationAdapters;n?.length&&(t.t=new Map(n.map(e=>[e.key,e.fromSerializable])),t.buffer.forEach(e=>e())),t.initialized=!0;let r=t.router;e.ssr={manifest:r.manifest},e.options.ssr={nonce:document.querySelector(`meta[property="csp-nonce"]`)?.content};let i=r.matches,a=new AbortController,o=e._preflight;e._preflight=a,o?.abort();let s=()=>e._preflight===a,c,l,u,d;try{if(await _i(e.options.hydrate?.(r.dehydratedData),a.signal),!s())return;let t=e.history.location;u=t.href,d=t.state,e.updateLatestLocation(),c=e.latestLocation,e.stores.location.set(c),l=e.matchRoutes(c,{_controller:a})}catch(t){if(s()&&(e._preflight=void 0),a.abort(t),t!==a.signal)throw t}if(!s())return;let f=[],p,m=0,h=t=>{m=Math.min(m,t+1);let n=f.splice(t);for(let t of n)vi(e,t).options.loader&&(t.status===`success`||!t.invalid&&`loaderData`in t)&&Ai(e,{...t,status:`success`,error:void 0,preload:!0},e._cache.get(t.id));M(e,n)},g=i.length>l.length?l.findIndex(e=>e._notFound)+1:i.length,_=!1;for(let t=0;t<g;t++){let n=l[t],r=i[t];if(typeof r.i!=`string`||j(r.i)!==n.id){p??=t;break}m=t+1;let a=vi(e,n);if((`l`in r||r.s===`success`&&r.e===void 0&&a.options.loader)&&(n.loaderData=r.l),n.status=r.s,n.ssr=r.ssr,a.options.ssr=n.ssr,n.updatedAt=r.u,n.error=r.e,n._notFound||=r.g,n.status===`error`||n.status===`notFound`||n._notFound){_=!0,f.push(n),(n.ssr===!1||n.ssr===`data-only`)&&(p??=t);break}if(n.status===`pending`){p??=t;break}f.push(n),n.ssr===`data-only`&&(p??=t)}!_&&f.length===g&&g<l.length&&(p=g);let v=f.map(async t=>{try{let n=vi(e,t);return await(t._notFound?Promise.all([ci(n),ci(n,`notFoundComponent`)]):ci(n,t.status===`error`?`errorComponent`:t.status===`notFound`?`notFoundComponent`:void 0)),!0}catch{return!1}}),y=0;try{for(;y<v.length&&await _i(v[y],a.signal);)y++}catch{return}if(!s())return;y<f.length&&h(y);let b=Math.max(p===f.length?f.length+1:f.length,y<v.length?y:m);for(let t=0;t<b;t++){let n=l[t],r=vi(e,n),o=l[t-1]?.context??e.options.context??{},u;if(r.options.context){try{u=n._ctx=r.options.context({deps:n.loaderDeps,params:n.params,context:o,location:c,navigate:t=>e.navigate({...t,_fromLocation:c}),buildLocation:e.buildLocation,cause:n.cause,abortController:a,preload:!1,matches:l,routeId:r.id})||{}}catch{if(!s())return;if(n.status!==`error`&&n.status!==`notFound`&&!n._notFound){p=Math.min(p??t,t),h(t);break}}if(!s())return}n.context={...o,...u,...f[t]&&i[t].b}}if(await Ri(e,[c,l],a.signal,0,m),!s())return;let x=p!==void 0||f.length<g,S=_&&f.length===g?l:f,C=x?l:S,ee;if(x&&p!==void 0){let e=C[p];ee=e.ssr===`data-only`&&m>p+1?m:void 0,C=C.slice(),C[p]={...e,status:`pending`,ssr:e.ssr===`data-only`&&`data-only`,_assetEnd:ee}}let te=()=>{let t=e.history.location;return x&&!e._tx&&t.href===u&&t.state===d&&e._committed===S&&S.length&&!a.signal.aborted?a:void 0},w=[te,t=>{if(e._handoff!==w)return;e._handoff=void 0;let n=S.length;if(!t||!te()||S.some((e,n)=>e.id!==t[n]?.id)){a.abort();return}let r=ee;if(r!==void 0){for(let e=n;e<r;e++)if(l[e]?.id!==t[e]?.id){r=e>p+1?e:void 0;break}}let i=S.map(e=>({...e}));r!==void 0&&(i[p]._assetEnd=r),M(e,t.splice(0,n,...i));for(let e=n;e<t.length;e++){let n=t[e],r=l[e];r?.id===n.id&&r._ctx&&(n._ctx=r._ctx),n.abortController=a}return n}];e._committed=S,e._lifecycleEnd=Kr(S),e._handoff=w,e._preflight=void 0,e.batch(()=>{e.stores.setMatches(C),e.stores.status.set(`idle`),x||e.stores.resolvedLocation.set(e.stores.location.get())})}var Qi=Symbol.asyncIterator,$i=Symbol.hasInstance,ea=Symbol.isConcatSpreadable,ta=Symbol.iterator,na=Symbol.match,ra=Symbol.matchAll,ia=Symbol.replace,aa=Symbol.search,oa=Symbol.species,sa=Symbol.split,ca=Symbol.toPrimitive,la=Symbol.toStringTag,ua=Symbol.unscopables,N={[Qi]:0,[$i]:1,[ea]:2,[ta]:3,[na]:4,[ra]:5,[ia]:6,[aa]:7,[oa]:8,[sa]:9,[ca]:10,[la]:11,[ua]:12},P={0:Qi,1:$i,2:ea,3:ta,4:na,5:ra,6:ia,7:aa,8:oa,9:sa,10:ca,11:la,12:ua},da={2:!0,3:!1,1:void 0,0:null,4:-0,5:1/0,6:-1/0,7:NaN},fa={0:`Error`,1:`EvalError`,2:`RangeError`,3:`ReferenceError`,4:`SyntaxError`,5:`TypeError`,6:`URIError`},pa={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function F(e,t,n,r,i,a,o,s,c,l,u,d){return{t:e,i:t,s:n,c:r,m:i,p:a,e:o,a:s,f:c,b:l,o:u,l:d}}function ma(e){return F(2,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}var ha=ma(2),ga=ma(3),_a=ma(1),va=ma(0),ya=ma(4),ba=ma(5),xa=ma(6),Sa=ma(7),Ca=64,wa=/[\x00-\x07\x0b\x0e-\x1f<\u2028\u2029\ud800-\udfff]/;function Ta(e){switch(e){case`"`:return`\\"`;case`\\`:return`\\\\`;case`
|
|
12
12
|
`:return`\\n`;case`\r`:return`\\r`;case`\b`:return`\\b`;case` `:return`\\t`;case`\f`:return`\\f`;case`<`:return`\\x3C`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:return}}function Ea(e){if(e.length>=Ca&&!wa.test(e))return JSON.stringify(e).slice(1,-1);let t=``,n=0,r;for(let i=0,a=e.length;i<a;i++)r=Ta(e[i]),r&&(t+=e.slice(n,i)+r,n=i+1);return n===0?t=e:t+=e.slice(n),t}function Da(e){switch(e){case`\\\\`:return`\\`;case`\\"`:return`"`;case`\\n`:return`
|
|
13
|
-
`;case`\\r`:return`\r`;case`\\b`:return`\b`;case`\\t`:return` `;case`\\f`:return`\f`;case`\\x3C`:return`<`;case`\\u2028`:return`\u2028`;case`\\u2029`:return`\u2029`;default:return e}}function Oa(e){return typeof e==`string`&&!e.includes(`\\`)?e:e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,Da)}var{toString:ka}=Object.prototype,Aa={parsing:1,serialization:2,deserialization:3};function ja(e){return`Seroval Error (step: ${Aa[e]})`}var Ma=(e,t)=>ja(e),Na=class extends Error{constructor(e,t){super(Ma(e,t)),this.cause=t}},Pa=class extends Na{constructor(e){super(`parsing`,e)}},Fa=class extends Na{constructor(e){super(`deserialization`,e)}};function I(e){return`Seroval Error (specific: ${e})`}var Ia=class extends Error{constructor(e){super(I(1)),this.value=e}},La=class extends Error{constructor(e){super(I(2))}},Ra=class extends Error{constructor(e){super(I(3))}},za=class extends Error{constructor(e){super(I(4))}},Ba=class extends Error{constructor(e){super(I(5)),this.value=e}},Va=class extends Error{constructor(e){super(I(6))}},Ha=class extends Error{constructor(e){super(I(7))}},Ua=class extends Error{constructor(e){super(I(8))}},Wa=class extends Error{constructor(e){super(I(9))}},Ga=`__SEROVAL_REFS__`,Ka=new Map,qa=new Map;function Ja(e){return Ka.has(e)}function Ya(e){return qa.has(e)}function Xa(e){if(Ja(e))return Ka.get(e);throw new Ba(e)}function Za(e){if(Ya(e))return qa.get(e);throw new Va(e)}typeof globalThis<`u`?Object.defineProperty(globalThis,Ga,{value:qa,configurable:!0,writable:!1,enumerable:!1}):typeof window<`u`?Object.defineProperty(window,Ga,{value:qa,configurable:!0,writable:!1,enumerable:!1}):typeof self<`u`?Object.defineProperty(self,Ga,{value:qa,configurable:!0,writable:!1,enumerable:!1}):typeof global<`u`&&Object.defineProperty(global,Ga,{value:qa,configurable:!0,writable:!1,enumerable:!1});function Qa(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function $a(e){let t=fa[Qa(e)];return e.name===t?e.constructor.name===t?{}:{name:e.constructor.name}:{name:e.name}}function eo(e,t){let n=$a(e),r=Object.getOwnPropertyNames(e);for(let i=0,a=r.length,o;i<a;i++)o=r[i],o!==`name`&&o!==`message`&&(o===`stack`?t&4&&(n||={},n[o]=e[o]):(n||={},n[o]=e[o]));return n}function to(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:+!Object.isExtensible(e)}function no(e){switch(e){case 1/0:return ba;case-1/0:return xa}return e===e?Object.is(e,-0)?ya:F(0,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0):Sa}function ro(e){return F(1,void 0,Ea(e),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function io(e){return F(3,void 0,``+e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function ao(e){return F(4,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function oo(e,t){let n=t.valueOf();return F(5,e,n===n?t.toISOString():``,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function so(e,t,n){return F(36,e,n.toString(),t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function co(e,t){return F(6,e,void 0,Ea(t.source),t.flags,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function lo(e,t){return F(17,e,N[t],void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function uo(e,t){return F(18,e,Ea(Xa(t)),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function fo(e,t,n){return F(25,e,n,Ea(t),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function po(e,t,n){return F(9,e,void 0,void 0,void 0,void 0,void 0,n,void 0,void 0,to(t),void 0)}function mo(e,t){return F(21,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}var ho=1e6;function go(e,t,n){if(t.length>ho)throw new Ia(t);return F(15,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.length)}function _o(e,t,n){if(t.length>ho)throw new Ia(t);return F(16,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.length)}function vo(e,t,n){if(t.byteLength>ho)throw new Ia(t);return F(20,e,void 0,void 0,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.byteLength)}function yo(e,t,n){return F(13,e,Qa(t),void 0,Ea(t.message),n,void 0,void 0,void 0,void 0,void 0,void 0)}function bo(e,t,n){return F(14,e,Qa(t),void 0,Ea(t.message),n,void 0,void 0,void 0,void 0,void 0,void 0)}function xo(e,t){return F(7,e,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,void 0)}function So(e,t){return F(28,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function Co(e,t){return F(30,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function wo(e,t,n){return F(31,e,void 0,void 0,void 0,void 0,void 0,n,t,void 0,void 0,void 0)}function To(e,t){return F(32,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function Eo(e,t){return F(33,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function Do(e,t){return F(34,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function Oo(e,t,n,r){return F(35,e,n,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,r)}var ko=class{constructor(e,t){this.value=e,this.replacement=t}},Ao=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e},jo=()=>{let e=[],t=[],n=!0,r=!1,i=0,a={flush(e,n,r){for(r=0;r<i;r++){let i=t[r];i&&i[n](e)}},up(t,i,a,o){for(i=0,a=e.length;i<a;i++)o=e[i],!n&&i===a-1?t[r?`return`:`throw`](o):t.next(o)},on(e,r=0){let o=n;if(n){for(r=0;r<i&&t[r];r++);r===i&&i++,t[r]=e}return a.up(e),()=>{if(n&&o){for(o=!1,t[r]=void 0;i>0&&!t[i-1];)i--;t.length=i}}}};return{__SEROVAL_STREAM__:!0,on(e){return a.on(e)},next(t){n&&(e.push(t),a.flush(t,`next`))},throw(i){n&&(e.push(i),a.flush(i,`throw`),n=!1,r=!1,t.length=0)},return(i){n&&(e.push(i),a.flush(i,`return`),n=!1,r=!0,t.length=0)}}},Mo=e=>t=>()=>{let n=0,r={[e](){return r},next(){if(n>t.d)return{done:!0,value:void 0};let e=n++,r=t.v[e];if(e===t.t)throw r;return{done:e===t.d,value:r}}};return r},No=(e,t)=>n=>()=>{let r=0,i=-1,a=!1,o=[],s=[],c={finalize(e=0,t=s.length){for(;e<t;e++)s[e].s({done:!0,value:void 0})}};n.on({next(e){let t=s.shift();t&&t.s({done:!1,value:e}),o.push(e)},throw(e){let t=s.shift();t&&t.f(e),c.finalize(),i=o.length,a=!0,o.push(e)},return(e){let t=s.shift();t&&t.s({done:!0,value:e}),c.finalize(),i=o.length,o.push(e)}});let l={[e](){return l},next(){if(i===-1){let e=r++;if(e>=o.length){let e=t();return s.push(e),e.p}return{done:!1,value:o[e]}}if(r>i)return{done:!0,value:void 0};let e=r++,n=o[e];if(e!==i)return{done:!1,value:n};if(a)throw n;return{done:!0,value:n}}};return l},Po=e=>{let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer};function Fo(e){return`__SEROVAL_SEQUENCE__`in e}function Io(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function Lo(e){let t=[],n=-1,r=-1,i=e[ta]();for(;;)try{let e=i.next();if(t.push(e.value),e.done){r=t.length-1;break}}catch(e){n=t.length,t.push(e)}return Io(t,n,r)}var Ro=Mo(ta);function zo(e){return Ro(e)}var Bo={},Vo={},Ho={0:{},1:{},2:{},3:{},4:{},5:{}};function Uo(e){return`__SEROVAL_STREAM__`in e}function Wo(){return jo()}function Go(e,t){let n=Wo(),r=e[Qi](),i=!1,a=!1;t?.push(()=>{a||i||(i=!0,Promise.resolve().then(()=>r.return?.call(r)).catch(()=>{}))});async function o(){try{for(;!i;){let e=await r.next();if(i)return;if(e.done){a=!0,n.return(e.value);break}n.next(e.value)}}catch(e){a=!0,i||n.throw(e)}}return o().catch(()=>{}),n}var Ko=No(Qi,Ao);function L(e){return Ko(e)}async function R(e){try{return[1,await e]}catch(e){return[0,e]}}function qo(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:127^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3,compactArrayBufferViews:t.compactArrayBufferViews??!1}}function Jo(e,t){e.marked.add(t)}function Yo(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function Xo(e,t){let n=e.refs.get(t);return n==null?{type:0,value:Yo(e,t)}:(Jo(e,n),{type:1,value:ao(n)})}function Zo(e,t){let n=Xo(e,t);return n.type===1?n:Ja(t)?{type:2,value:uo(n.value,t)}:n}function Qo(e,t){let n=Zo(e,t);if(n.type!==0)return n.value;if(t in N)return lo(n.value,t);throw new Ia(t)}function $o(e,t){let n=Xo(e,Ho[t]);return n.type===1?n.value:F(26,n.value,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function es(e){let t=Xo(e,Bo);return t.type===1?t.value:F(27,t.value,void 0,void 0,void 0,void 0,void 0,void 0,Qo(e,ta),void 0,void 0,void 0)}function ts(e){let t=Xo(e,Vo);return t.type===1?t.value:F(29,t.value,void 0,void 0,void 0,void 0,void 0,[$o(e,1),Qo(e,Qi)],void 0,void 0,void 0,void 0)}function ns(e,t,n,r){return F(n?11:10,e,void 0,void 0,void 0,r,void 0,void 0,void 0,void 0,to(t),void 0)}function rs(e,t,n,r){return F(8,t,void 0,void 0,void 0,void 0,{k:n,v:r},void 0,$o(e,0),void 0,void 0,void 0)}function is(e,t){if(!e.compactArrayBufferViews)return t;let n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength).slice().buffer,r=t.constructor;return new r(n)}function as(e){if(typeof Buffer<`u`)return Buffer.from(e).toString(`base64`);let t=new Uint8Array(e);if(typeof t.toBase64==`function`)return t.toBase64();let n=``;for(let e=0,r=t.length;e<r;e++)n+=String.fromCharCode(t[e]);return btoa(n)}function os(e,t,n){return F(19,t,as(n),void 0,void 0,void 0,void 0,void 0,$o(e,5),void 0,void 0,void 0)}function ss(e,t){return{base:qo(e,t),child:void 0}}var cs=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return Os(this._p,this.depth,e)}};async function ls(e,t,n){let r=[];for(let i=0,a=n.length;i<a;i++)i in n?r[i]=await Os(e,t,n[i]):r[i]=0;return r}async function us(e,t,n,r){return po(n,r,await ls(e,t,r))}async function ds(e,t,n){let r=Object.entries(n),i=[],a=[];for(let n=0,o=r.length;n<o;n++)i.push(Ea(r[n][0])),a.push(await Os(e,t,r[n][1]));return ta in n&&(i.push(Qo(e.base,ta)),a.push(So(es(e.base),await Os(e,t,Lo(n))))),Qi in n&&(i.push(Qo(e.base,Qi)),a.push(Co(ts(e.base),await Os(e,t,Go(n))))),la in n&&(i.push(Qo(e.base,la)),a.push(ro(n[la]))),ea in n&&(i.push(Qo(e.base,ea)),a.push(n[ea]?ha:ga)),{k:i,v:a}}async function fs(e,t,n,r,i){return ns(n,r,i,await ds(e,t,r))}async function ps(e,t,n,r){return mo(n,await Os(e,t,r.valueOf()))}async function ms(e,t,n,r){return r=is(e.base,r),go(n,r,await Os(e,t,r.buffer))}async function hs(e,t,n,r){return r=is(e.base,r),_o(n,r,await Os(e,t,r.buffer))}async function gs(e,t,n,r){return r=is(e.base,r),vo(n,r,await Os(e,t,r.buffer))}async function _s(e,t,n,r){let i=eo(r,e.base.features);return yo(n,r,i?await ds(e,t,i):void 0)}async function vs(e,t,n,r){let i=eo(r,e.base.features);return bo(n,r,i?await ds(e,t,i):void 0)}async function ys(e,t,n,r){let i=[],a=[];for(let[n,o]of r.entries())i.push(await Os(e,t,n)),a.push(await Os(e,t,o));return rs(e.base,n,i,a)}async function bs(e,t,n,r){let i=[];for(let n of r.keys())i.push(await Os(e,t,n));return xo(n,i)}async function xs(e,t,n,r){let i=e.base.plugins;if(i)for(let a=0,o=i.length;a<o;a++){let o=i[a];if(o.parse.async&&o.test(r))return fo(n,o.tag,await o.parse.async(r,new cs(e,t),{id:n}))}}async function Ss(e,t,n,r){let[i,a]=await R(r);return F(12,n,i,void 0,void 0,void 0,void 0,void 0,await Os(e,t,a),void 0,void 0,void 0)}function Cs(e,t,n,r,i){let a=[],o=n.on({next:n=>{Jo(this.base,t),Os(this,e,n).then(e=>{a.push(To(t,e))},e=>{i(e),o()})},throw:n=>{Jo(this.base,t),Os(this,e,n).then(e=>{a.push(Eo(t,e)),r(a),o()},e=>{i(e),o()})},return:n=>{Jo(this.base,t),Os(this,e,n).then(e=>{a.push(Do(t,e)),r(a),o()},e=>{i(e),o()})}})}async function ws(e,t,n,r){return wo(n,$o(e.base,4),await new Promise(Cs.bind(e,t,n,r)))}async function Ts(e,t,n,r){let i=[];for(let n=0,a=r.v.length;n<a;n++)i[n]=await Os(e,t,r.v[n]);return Oo(n,i,r.t,r.d)}async function Es(e,t,n,r){if(Array.isArray(r))return us(e,t,n,r);if(Uo(r))return ws(e,t,n,r);if(Fo(r))return Ts(e,t,n,r);let i=r.constructor;if(i!==void 0&&typeof i!=`function`){let e=Object.getPrototypeOf(r);i=e===null?void 0:e.constructor}if(i===ko)return Os(e,t,r.replacement);let a=await xs(e,t,n,r);if(a)return a;switch(i){case Object:return fs(e,t,n,r,!1);case void 0:return fs(e,t,n,r,!0);case Date:return oo(n,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return _s(e,t,n,r);case Number:case Boolean:case String:case BigInt:return ps(e,t,n,r);case ArrayBuffer:return os(e.base,n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return ms(e,t,n,r);case DataView:return gs(e,t,n,r);case Map:return ys(e,t,n,r);case Set:return bs(e,t,n,r)}if(i===Promise||r instanceof Promise)return Ss(e,t,n,r);let o=e.base.features;if(o&32&&i===RegExp)return co(n,r);if(o&16)switch(i){case BigInt64Array:case BigUint64Array:return hs(e,t,n,r)}if(o&1&&typeof AggregateError<`u`&&(i===AggregateError||r instanceof AggregateError))return vs(e,t,n,r);if(o&64&&typeof Temporal<`u`)switch(i){case Temporal.Instant:return so(n,0,r);case Temporal.Duration:return so(n,1,r);case Temporal.PlainDate:return so(n,2,r);case Temporal.PlainDateTime:return so(n,3,r);case Temporal.PlainMonthDay:return so(n,4,r);case Temporal.PlainTime:return so(n,5,r);case Temporal.PlainYearMonth:return so(n,6,r);case Temporal.ZonedDateTime:return so(n,7,r)}if(r instanceof Error)return _s(e,t,n,r);if(ta in r||Qi in r)return fs(e,t,n,r,!!i);throw new Ia(r)}async function Ds(e,t,n){let r=Zo(e.base,n);if(r.type!==0)return r.value;let i=await xs(e,t,r.value,n);if(i)return i;throw new Ia(n)}async function Os(e,t,n){if(t>=e.base.depthLimit)throw new Wa(e.base.depthLimit);switch(typeof n){case`boolean`:return n?ha:ga;case`undefined`:return _a;case`string`:return ro(n);case`number`:return no(n);case`bigint`:return io(n);case`object`:if(n){let r=Zo(e.base,n);return r.type===0?await Es(e,t+1,r.value,n):r.value}return va;case`symbol`:return Qo(e.base,n);case`function`:return Ds(e,t,n);default:throw new Ia(n)}}async function ks(e,t){try{return await Os(e,0,t)}catch(e){throw e instanceof Pa?e:new Pa(e)}}function As(e){return e}function js(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&js(e,r.extends))}}function Ms(e){if(e){let t=new Set;return js(t,e),[...t]}}function Ns(e){switch(e){case`Int8Array`:return Int8Array;case`Int16Array`:return Int16Array;case`Int32Array`:return Int32Array;case`Uint8Array`:return Uint8Array;case`Uint16Array`:return Uint16Array;case`Uint32Array`:return Uint32Array;case`Uint8ClampedArray`:return Uint8ClampedArray;case`Float32Array`:return Float32Array;case`Float64Array`:return Float64Array;case`BigInt64Array`:return BigInt64Array;case`BigUint64Array`:return BigUint64Array;default:throw new Ha(e)}}function Ps(e){switch(e){case`constructor`:case`__proto__`:case`prototype`:case`__defineGetter__`:case`__defineSetter__`:case`__lookupGetter__`:case`__lookupSetter__`:return!1;default:return!0}}function Fs(e){switch(e){case Qi:case ea:case la:case ta:return!0;default:return!1}}var Is=1e6,Ls=512,Rs=1e4,zs=2e4;function Bs(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}var Vs=1e3;function Hs(e,t){let n=t.maxBase64Length??Is;if(!Number.isSafeInteger(n)||n<0)throw RangeError(`maxBase64Length must be a non-negative safe integer`);let r=t.refs||new Map;return`types`in r||Object.assign(r,{types:new Map}),{mode:e,plugins:t.plugins,refs:r,features:t.features??127^(t.disabledFeatures||0),depthLimit:t.depthLimit||Vs,maxBase64Length:n}}function Us(e){return{mode:2,base:Hs(2,e),child:void 0}}var Ws=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return z(this._p,this.depth,e)}};function Gs(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new Ua({t:4,i:t});if(e.refs.has(t))throw Error(`Conflicted ref id: `+t)}function Ks(e){return!!e&&typeof e==`object`&&`then`in e&&typeof e.then==`function`}function qs(e,t,n){return Gs(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function Js(e,t,n){return Gs(e.base,t),e.base.refs.set(t,n),n}function Ys(e,t,n){return e.mode===1?qs(e,t,n):Js(e,t,n)}function Xs(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new Ua(e)}function Zs(e,t){return Ys(e,t.i,Za(Oa(t.s)))}function Qs(e,t,n){let r=n.a,i=r.length,a=Ys(e,n.i,Array(i));for(let n=0,o;n<i;n++)o=r[n],o&&(a[n]=z(e,t,o));return Bs(a,n.o),a}function $s(e,t,n){Ps(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function ec(e,t,n,r,i){if(typeof r==`string`)$s(n,Oa(r),z(e,t,i));else{let a=z(e,t,r);switch(typeof a){case`string`:$s(n,a,z(e,t,i));break;case`symbol`:Fs(a)&&(n[a]=z(e,t,i));break;default:throw new Ua(r)}}}function tc(e,t,n){e.base.refs.types.set(t,n)}function nc(e,t,n,r){if(e.base.refs.types.get(n)!==r)throw new Ua(t)}function rc(e,t,n,r){let i=n.k;if(i.length>0)for(let a=0,o=n.v,s=i.length;a<s;a++)ec(e,t,r,i[a],o[a]);return r}function ic(e,t,n){let r=Ys(e,n.i,n.t===10?{}:Object.create(null));return rc(e,t,n.p,r),Bs(r,n.o),r}function ac(e,t){return Ys(e,t.i,new Date(t.s))}function oc(e,t){if(!(e.base.features&64))throw new La(t);let n;switch(t.c){case 0:n=Temporal.Instant.from(t.s);break;case 1:n=Temporal.Duration.from(t.s);break;case 2:n=Temporal.PlainDate.from(t.s);break;case 3:n=Temporal.PlainDateTime.from(t.s);break;case 4:n=Temporal.PlainMonthDay.from(t.s);break;case 5:n=Temporal.PlainTime.from(t.s);break;case 6:n=Temporal.PlainYearMonth.from(t.s);break;case 7:n=Temporal.ZonedDateTime.from(t.s);break;default:throw new Ua(t)}return Ys(e,t.i,n)}function sc(e,t){if(e.base.features&32){let n=Oa(t.c);if(n.length>zs)throw new Ua(t);return Ys(e,t.i,new RegExp(n,t.m))}throw new La(t)}function cc(e,t,n){let r=Ys(e,n.i,new Set);for(let i=0,a=n.a,o=a.length;i<o;i++)r.add(z(e,t,a[i]));return r}function lc(e,t,n){let r=Ys(e,n.i,new Map);for(let i=0,a=n.e.k,o=n.e.v,s=a.length;i<s;i++)r.set(z(e,t,a[i]),z(e,t,o[i]));return r}function uc(e,t){if(typeof t.s!=`string`)throw new Ua(t);if(t.s.length>e.base.maxBase64Length)throw RangeError(`ArrayBuffer exceeds maxBase64Length (`+e.base.maxBase64Length+`)`);let n=Oa(t.s),r;if(n.length<Ls||typeof Buffer>`u`)r=Po(n);else{let e=atob(n);r=new ArrayBuffer(e.length),Buffer.from(r).write(e,`latin1`)}return Ys(e,t.i,r)}function dc(e,t,n){let r=Ns(n.c),i=z(e,t,n.f);if(!(i instanceof ArrayBuffer))throw new Ua(n);let a=n.b??0;if(a<0||a>i.byteLength)throw new Ua(n);return Ys(e,n.i,new r(i,a,n.l))}function fc(e,t,n){let r=z(e,t,n.f);if(!(r instanceof ArrayBuffer))throw new Ua(n);let i=n.b??0;if(i<0||i>r.byteLength)throw new Ua(n);return Ys(e,n.i,new DataView(r,i,n.l))}function pc(e,t,n,r){if(n.p){let i=rc(e,t,n.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(i))}return r}function mc(e,t,n){return pc(e,t,n,Ys(e,n.i,AggregateError([],Oa(n.m))))}function hc(e,t,n){let r=Xs(n,pa,n.s);return pc(e,t,n,Ys(e,n.i,new r(Oa(n.m))))}function gc(e,t,n){let r=Ao(),i=Ys(e,n.i,r.p),a=z(e,t,n.f);if(Ks(a))throw new Ua(n.f);return n.s?r.s(a):r.f(a),i}function _c(e,t,n){return Ys(e,n.i,Object(z(e,t,n.f)))}function vc(e,t,n){let r=e.base.plugins;if(r){let i=Oa(n.c);for(let a=0,o=r.length;a<o;a++){let o=r[a];if(o.tag===i)return Ys(e,n.i,o.deserialize(n.s,new Ws(e,t),{id:n.i}))}}throw new Ra(n.c)}function yc(e,t){let n=Ys(e,t.i,Ys(e,t.s,Ao()).p);return tc(e,t.s,22),n}function bc(e,t,n){let r=e.base.refs.get(n.i);if(r){nc(e,n,n.i,22);let i=z(e,t,n.a[1]);if(Ks(i))throw new Ua(n.a[1]);n.t===23?r.s(i):r.f(i);return}throw new za(`Promise`)}function xc(e,t,n){z(e,t,n.a[0]);let r=z(e,t,n.a[1]);if(nc(e,n,n.a[1].i,35),!r)throw new Ua(n.a[1]);return zo(r)}function Sc(e,t,n){z(e,t,n.a[0]);let r=z(e,t,n.a[1]);if(nc(e,n,n.a[1].i,31),!r)throw new Ua(n.a[1]);return L(r)}function Cc(e,t,n){let r=Ys(e,n.i,Wo());tc(e,n.i,31);let i=n.a,a=i.length;if(a)for(let n=0;n<a;n++)z(e,t,i[n]);return r}function wc(e,t,n){let r=e.base.refs.get(n.i);if(r){nc(e,n,n.i,31),r.next(z(e,t,n.f));return}throw new za(`Stream`)}function Tc(e,t,n){let r=e.base.refs.get(n.i);if(r){nc(e,n,n.i,31),r.throw(z(e,t,n.f));return}throw new za(`Stream`)}function Ec(e,t,n){let r=e.base.refs.get(n.i);if(r){nc(e,n,n.i,31),r.return(z(e,t,n.f));return}throw new za(`Stream`)}function Dc(e,t,n){z(e,t,n.f)}function Oc(e,t,n){z(e,t,n.a[1])}function kc(e,t,n){let r=Ys(e,n.i,Io([],n.s,n.l));tc(e,n.i,35);for(let i=0,a=n.a.length;i<a;i++)r.v[i]=z(e,t,n.a[i]);return r}function z(e,t,n){if(t>e.base.depthLimit)throw new Wa(e.base.depthLimit);switch(t+=1,n.t){case 2:return Xs(n,da,n.s);case 0:return Number(n.s);case 1:return Oa(String(n.s));case 3:if(String(n.s).length>Rs)throw new Ua(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return Zs(e,n);case 9:return Qs(e,t,n);case 10:case 11:return ic(e,t,n);case 5:return ac(e,n);case 6:return sc(e,n);case 7:return cc(e,t,n);case 8:return lc(e,t,n);case 19:return uc(e,n);case 16:case 15:return dc(e,t,n);case 20:return fc(e,t,n);case 14:return mc(e,t,n);case 13:return hc(e,t,n);case 12:return gc(e,t,n);case 17:return Xs(n,P,n.s);case 21:return _c(e,t,n);case 25:return vc(e,t,n);case 22:return yc(e,n);case 23:case 24:return bc(e,t,n);case 28:return xc(e,t,n);case 30:return Sc(e,t,n);case 31:return Cc(e,t,n);case 32:return wc(e,t,n);case 33:return Tc(e,t,n);case 34:return Ec(e,t,n);case 27:return Dc(e,t,n);case 29:return Oc(e,t,n);case 35:return kc(e,t,n);case 36:return oc(e,n);default:throw new La(n)}}function Ac(e,t){try{return z(e,0,t)}catch(e){throw new Fa(e)}}function jc(e,t){let n=Ms(t.plugins);return Ac(Us({maxBase64Length:t.maxBase64Length,plugins:n,refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function Mc(e,t={}){let n=Ms(t.plugins),r=ss(1,{compactArrayBufferViews:t.compactArrayBufferViews,plugins:n,disabledFeatures:t.disabledFeatures});return{t:await ks(r,e),f:r.base.features,m:Array.from(r.base.marked)}}function Nc(e){return As({tag:`$TSR/t/`+e.key,test:e.test,parse:{sync(t,n){return{v:n.parse(e.toSerializable(t))}},async async(t,n){return{v:await n.parse(e.toSerializable(t))}},stream(t,n){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n){return e.fromSerializable(n.deserialize(t.v))}})}var Pc=As({tag:`$TSR/Error`,test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return`new Error(`+t.serialize(e.message)+`)`},deserialize(e,t){return Error(t.deserialize(e.message))}}),Fc=class{constructor(e,t){this.stream=e,this.hint=t?.hint??`binary`}};function Ic(e){let t=[];for(let n=0;n<e.length;n+=32768)t.push(String.fromCharCode.apply(null,e.subarray(n,n+32768)));return btoa(t.join(``))}var Lc=new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0});function Rc(e){try{return`t`+Lc.decode(e)}catch{return`b`+Ic(e)}}function zc(e,t,n){n?.throwIfAborted();let r=Wo(),i=e.getReader(),a=!0,o=()=>{a=!1,n?.removeEventListener(`abort`,c),i.releaseLock()},s=e=>a?(i.cancel(e).catch(()=>{}),o(),!0):!1,c=()=>{s(n.reason)&&r.throw(n.reason)};return n?.addEventListener(`abort`,c),(async()=>{try{for(;a;){let{done:e,value:n}=await i.read();if(!a)return;if(e){o(),r.return(void 0);return}r.next(t(n))}}catch(e){s(e)&&r.throw(e)}})(),[r,s]}function Bc(e){return As({tag:`tss/RawStream`,test:e=>e instanceof Fc,parse:{async:async(t,n)=>{let r=await n.parse(t.hint===`text`),[i]=zc(t.stream,t.hint===`text`?Rc:Ic,e);return{text:r,stream:await n.parse(i)}}},serialize:void 0,deserialize:void 0})}var Vc=Bc(),Hc={},Uc=e=>new ReadableStream({start(t){e.on({next(e){try{t.enqueue(e)}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),Wc=As({tag:`seroval-plugins/web/ReadableStreamFactory`,test(e){return e===Hc},parse:{sync(){return Hc},async async(){return await Promise.resolve(Hc)},stream(){return Hc}},serialize(){return Uc.toString()},deserialize(){return Hc}});async function Gc(e,t){try{for(;;){let n=await t.read();if(n.done){e.return(n.value),t.releaseLock();break}e.next(n.value)}}catch(n){t.releaseLock(),e.throw(n)}}function Kc(e){e.cancel().catch(()=>{}),e.releaseLock()}function qc(e){let t=Wo(),n=e.getReader(),r=Kc.bind(null,n);return Gc(t,n).catch(r),[t,r]}var Jc=As({tag:`seroval/plugins/web/ReadableStream`,extends:[Wc],test(e){return typeof ReadableStream>`u`?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(Hc),stream:t.parse(Wo())}},async async(e,t){return{factory:await t.parse(Hc),stream:await t.parse(qc(e)[0])}},stream(e,t){let[n,r]=qc(e);return t.addCleanup(r),{factory:t.parse(Hc),stream:t.parse(n)}}},serialize(e,t){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t){let n=t.deserialize(e.stream);if(!n||typeof n!=`object`||!Uo(n))throw Error(`Expected a stream source.`);return Uc(n)}});function Yc(e){return[Pc,e?Bc(e):Vc,Jc]}[...Yc()];function Xc(e){return As({tag:`tss/RawStream`,test:()=>!1,parse:{},serialize:void 0,deserialize(t,n){return e(n.deserialize(t.streamId))}})}function Zc(e){return[...(Yt()?.serializationAdapters)?.map(Nc)??[],...e]}function Qc(e){return Zc(Yc(e))}var $c=new TextDecoder,el=new Uint8Array,tl=new ByteLengthQueuingStrategy({highWaterMark:0});function nl(e){let t=e.getReader(),n=new Map,r=0,i,a,o=()=>{i?.(),i=void 0},s=(e,t)=>{let n=e[1];e[1]=!1,n&&(t===1?n.close():n.error(t[0]))},c=new ReadableStream({start(e){a=e},pull:o,cancel(e){let i=[e===void 0?Error(`Framed response cancelled`):e];r=i,o(),t.cancel(e).catch(()=>{});for(let e of n.values())s(e,i)}});function l(e){let t=n.get(e);if(t)return t;if(n.size>=1024)throw Error(`Too many raw streams`);let i,a=[new ReadableStream({start(e){i=e},cancel(){a[1]!==!1&&(a[1]=null)}},tl),i];return n.set(e,a),r!==0&&s(a,r),a}function u(e){if(e===0||e>>>0!==e)throw RangeError(`Invalid raw stream ID`);return l(e)[0]}return(async()=>{let e=el,o=0;async function c(){for(;o===e.byteLength;){e=el,o=0;let n=await t.read();if(r!==0||n.done)return!1;e=n.value}return!0}async function u(t,n){if(t===0)return el;if(!await c()){if(n)return;throw Error(`Incomplete frame`)}if(e.byteLength-o>=t){let n=e.subarray(o,o+t);return o+=t,o===e.byteLength&&(e=el,o=0),n}let r=new Uint8Array(t),i=0;for(;i<t;){if(!await c())throw Error(`Incomplete frame`);let n=Math.min(t-i,e.byteLength-o);r.set(e.subarray(o,o+n),i),o+=n,i+=n}return o===e.byteLength&&(e=el,o=0),r}try{for(;r===0;){let e=await u(9,!0);if(r!==0)return;if(!e){for(let e of n.values())if(e[1])throw Error(`Incomplete raw stream`);r=1,a.close();return}let t=e[0],o=(e[1]<<24|e[2]<<16|e[3]<<8|e[4])>>>0,c=(e[5]<<24|e[6]<<16|e[7]<<8|e[8])>>>0;if(e=el,t>3||t===0!=(o===0)||c>16777216||t===2&&c!==0)throw Error(`Invalid frame`);let d=t===0?void 0:l(o);if(d?.[1]===!1)throw Error(`Raw stream already ended`);let f=await u(c);if(r!==0)return;if(!d){let e=$c.decode(f);for(f=el,a.enqueue(e);r===0&&a.desiredSize<=0;)await new Promise(e=>{i=e});continue}if(t===1){let e=d[1];if(e){if(-e.desiredSize>134217728){e.error(Error(`Raw stream ${o} has too many unread bytes`)),d[1]=null,f=el;continue}let t=f.byteLength*4<f.buffer.byteLength?f.slice():f;f=el,e.enqueue(t)}}else s(d,t===2?1:[Error($c.decode(f))])}}catch(e){if(r===0){let i=[e];r=i,t.cancel(e).catch(()=>{}),a.error(e);for(let e of n.values())s(e,i)}}finally{e=el,t.releaseLock()}})(),[c,u]}var rl=Symbol.for(`TSR_DEFERRED_PROMISE`);function il(e,t){let n=e;return n[rl]?n:(n[rl]={status:`pending`},n.then(e=>{n[rl].status=`success`,n[rl].data=e}).catch(e=>{n[rl].status=`error`,n[rl].error={data:(t?.serializeError??Ur)(e),__isServerError:!0}}),n)}var al=`Error preloading route! ☝️`;function ol(e,t){if(e)return typeof e==`string`?e:e[t]}function sl(e){return e?.scriptFormat??`module`}function cl(e,t,n){let r=ll(t),i=ol(n,`script`)??r.crossOrigin;return{...sl(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function ll(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function ul(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 dl(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function fl(e,t,n,r){let i=ui(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 pl([e,t],n){return n?[...n.before,...e,...t,n.boundary]:[...e,...t]}var ml=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=wr:this.parentRoute||Fn();let r=n?wr:t?.path;r&&r!==`/`&&(r=Tn(r));let i=t?.id||r,a=n?wr:wn((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:wn(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=En(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=>Zt({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.`)}},hl=class extends ml{constructor(e){super(e)}};function gl(e){return e}var _l;function vl(e,t,n){try{return jc(e,t)}catch(e){throw bl(n),e}}async function yl(e){e.length>0&&(await Promise.allSettled(e),e.length=0)}function bl(e){for(let t of e)t.catch(()=>{});e.length=0}var xl=Object.prototype.hasOwnProperty;function B(e){for(let t in e)if(xl.call(e,t))return!0;return!1}async function Sl(e,t,n){_l||=Qc();let r=t[0],i=r.fetch??n,a=r.data instanceof FormData,o=new Headers(r.headers);if(o.set(`x-tsr-serverFn`,`true`),a||o.set(`accept`,`${Jt}, application/x-ndjson, application/json`),r.method===`GET`){if(a)throw Error(`FormData is not supported with GET requests`);let t=await Cl(r);if(t!==void 0){let n=gr({payload:t});e.includes(`?`)?e+=`&${n}`:e+=`?${n}`}}let s;return r.method===`POST`&&(s=await Tl(r),typeof s==`string`&&o.set(`content-type`,`application/json`)),El(()=>i(e,{method:r.method,headers:o,signal:r.signal,body:s}))}async function Cl(e){let t;return e.data!==void 0&&(t={data:e.data}),e.context&&B(e.context)&&((t??={}).context=e.context),t?wl(t,e.signal):void 0}async function wl(e,t){t?.throwIfAborted();let n;try{n=await Mc(e,{plugins:t?Qc(t):_l})}finally{t?.throwIfAborted()}return JSON.stringify(n)}async function Tl(e){if(e.data instanceof FormData){let t;return e.context&&B(e.context)&&(t=await wl(e.context,e.signal)),t!==void 0&&e.data.set(Kt,t),e.data}return Cl(e)}async function El(e){let t;try{t=await e()}catch(e){if(e instanceof Response)t=e;else throw e}if(t.headers.get(`x-tss-raw`)===`true`)return t;let n=t.headers.get(`content-type`);if(n||Fn(),t.headers.get(`x-tss-serialized`)){let e;if(n.includes(`application/x-tss-framed`)){let r=/;\s*v=(\d+)/.exec(n)?.[1];if(r&&+r!=1)throw Error(`Unsupported framed protocol version ${r}`);if(!t.body)throw Error(`No response body for framed response`);let[i,a]=nl(t.body);e=await Dl(i,[Xc(a),..._l])}else if(n.includes(`application/json`)){let n=await t.json(),r=[];e=vl(n,{plugins:_l},r),await yl(r)}if(e||Fn(),e instanceof Error)throw e;return e}if(n.includes(`application/json`)){let e=await t.json(),n=$t(e);if(n)throw n;if(Xt(e))throw e;return e}if(!t.ok)throw Error(await t.text());return t}async function Dl(e,t){let n=e.getReader(),r={refs:new Map,plugins:t},i=e=>{n.cancel(e).catch(()=>{})},a,o=[];try{let e=await n.read();if(e.done)throw Error(`Stream ended before first object`);a=vl(JSON.parse(e.value),r,o)}catch(e){throw i(e),n.releaseLock(),e}return(async()=>{let e=[];try{for(;;){let t=await n.read();if(t.done)return;vl(JSON.parse(t.value),r,e),bl(e)}}catch(e){i(e),console.error(`Stream processing error:`,e)}finally{n.releaseLock()}})(),await yl(o),a}function Ol(e){let t=`/_serverFn/`+e;return Object.assign((...e)=>{let n=Yt()?.serverFns?.fetch;return Sl(t,e,n??fetch)},{url:t,serverFnMeta:{id:e},[qt]:!0})}var kl=gl({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(qt in e)?!1:!!e[qt],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>Ol(e)}),V=e(n(),1),Al=V.use,jl=V.useLayoutEffect,H=i();function Ml({promise:e}){if(Al)return Al(e);let t=il(e);if(t[rl].status===`pending`)throw t;if(t[rl].status===`error`)throw t[rl].error;return t[rl].data}function Nl(e){let t=(0,H.jsx)(Pl,{...e});return e.fallback?(0,H.jsx)(V.Suspense,{fallback:e.fallback,children:t}):t}function Pl(e){let t=Ml(e);return e.children(t)}var Fl=class extends V.Component{constructor(...e){super(...e),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:0}:{resetKey:n}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;return e?V.createElement(this.props.errorComponent??Il,{error:e[0],reset:this.reset}):this.props.children}};function Il({error:e}){let[t,n]=V.useState(!1);return(0,H.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,H.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,H.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,H.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,H.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,H.jsx)(`div`,{children:(0,H.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e?.message?(0,H.jsx)(`code`,{children:e.message}):null})}):null]})}var Ll=()=>!0,Rl=()=>!1;function zl({children:e,fallback:t=null}){return(0,H.jsx)(V.Fragment,{children:Bl()?e:t})}function Bl(e=!0){return V.useSyncExternalStore(Vl,Ll,e?Rl:Ll)}function Vl(){return()=>{}}var Hl=V.createContext(void 0),Ul=V.createContext(void 0);function Wl({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;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}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(!0)}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 Gl(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 Kl=[],ql=0,{link:Jl,unlink:Yl,propagate:Xl,checkDirty:Zl,shallowPropagate:Ql}=Wl({update(e){return e._update()},notify(e){Kl[eu++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,iu(e))}}),$l=0,eu=0,tu,nu=0;function ru(e){try{++nu,e()}finally{--nu||au()}}function iu(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Yl(n,e)}function au(){if(!(nu>0)){for(;$l<eu;){let e=Kl[$l];Kl[$l++]=void 0,e.notify()}$l=0,eu=0}}function ou(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 tu!==void 0&&Jl(i,tu,ql),i._snapshot},subscribe(e){let t=Gl(e),n={current:!1},r=U(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=tu,o=t?.compare??Object.is;if(n)tu=i,++ql,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{tu=a,n&&(i.flags&=-5),iu(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&Zl(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Ql(e)}}else e&32&&(i.flags=e&-33);return tu!==void 0&&Jl(i,tu,ql),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Xl(e),Ql(e),au())}},i}function U(e){let t=()=>{let t=tu;tu=n,++ql,n.depsTail=void 0,n.flags=6;try{return e()}finally{tu=t,n.flags&=-5,iu(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&&Zl(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,iu(this)}};return t(),n}var su=e(w(),1);function cu(e,t){return e===t}function lu(e,t=e=>e,n){let r=n?.compare??cu,i=(0,V.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,V.useCallback)(()=>e.get(),[e]);return(0,su.useSyncExternalStoreWithSelector)(i,a,a,t,r)}var uu={};function du(e,t){let n=V.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=sn(n.current,i):i}}function fu(e){let t=l(),n=V.useContext(e.from?Ul:Hl),r=e.from??n,i=t.stores.getMatchStore(r),a=du(e,t),o=lu(i,e=>e?a(e):uu);if(o!==uu)return o;(e.shouldThrow??!0)&&Fn()}function pu(e){return fu({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function mu(e){let{select:t,...n}=e;return fu({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function hu(e){return fu({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 gu(e){return fu({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function _u(e){return fu({...e,select:t=>e.select?e.select(t.context):t.context})}function vu(...e){let t=V.useRef(e),n=t.current;return e.forEach((e,t)=>{ln(n[t],e,!1,!0)||(n[t]=e)}),t.current}function yu(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(al)})}var bu={compare:(e,t)=>e[0]===t[0]&&e[1]===t[1]};function xu(e,t){let n=typeof e==`string`&&hn(e);if(n)return t.has(n)?e:null}function W(e,t,n,r,i){let a=On(e.pathname,r),o=On(t.pathname,r);return(n?.exact?a!==o:!(a.startsWith(o)&&(a.length===o.length||a[o.length]===`/`)))||(n?.includeSearch??!0)&&!ln(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||i&&e.hash===t.hash}function Su(e,t,n){let r=l(),i=V.useRef(null),a=V.useCallback(e=>{if(i.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:o,to:s,preload:c,preloadDelay:u,hashScrollIntoView:d,replace:f,startTransition:p,resetScroll:m,viewTransition:h,ignoreBlocker:g,disabled:_,target:v,onClick:y,onBlur:b,onFocus:x,onMouseEnter:S,onMouseLeave:C,onTouchStart:ee}=e,te=Bl(!!o?.includeHash),[w,ne,re]=vu(e.search,e.params,o),[ie,ae]=V.useMemo(()=>[e,{...e}],[r,e.from,e._fromLocation,e.hash,e.to,w,ne,e.state,e.mask,e.unsafeRelative]),oe=V.useCallback(e=>{let t=xu(s,r.protocolAllowlist);if(t!==void 0)return[t??void 0];ie._fromLocation||(ae._fromLocation=e);let n=r.buildLocation(ae),i=ju(n,r,_);return[i,!_&&(!i||hn(i))?void 0:W(e,n,re,r.basepath,te)]},[re,_,te,ie,ae,r,s]),[se,ce]=lu(r.stores.location,oe,bu),le=ce===void 0?se:void 0,ue=_||se===void 0,de=V.useRef(!1),fe=e.reloadDocument||le||ue?!1:c??r.options.defaultPreload,pe=u??r.options.defaultPreloadDelay??0,me=V.useCallback(e=>{let t=e?.isIntersecting;if(!(t??fe===`intent`)){t===!1&&ku(i);return}if(!pe){yu(r,ie);return}Ou.has(i)||Ou.set(i,setTimeout(()=>{Ou.delete(i),yu(r,ie)},pe))},[r,ie,i,fe,pe]);V.useEffect(()=>{if(!fe)return;fe===`render`&&!de.current&&(de.current=!0,yu(r,ie));let e=!0,t;return fe===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&me(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),ku(i)}},[r,ie,fe,me,i]);let he=Eu(e,n);if(he.ref=t?a:i,le)return he.href=le,he;let ge=e=>{let t=v??e.currentTarget.getAttribute(`target`);!ue&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(!t||t===`_self`)&&e.button===0&&(e.preventDefault(),r.navigate({...ie,replace:f,resetScroll:m,hashScrollIntoView:d,startTransition:p,viewTransition:h,ignoreBlocker:g}))},_e=()=>{fe===`intent`&&yu(r,ie)},ve=()=>{fe===`intent`&&ku(i)};return he.onClick=Au(y,ge),he.onBlur=Au(b,ve),he.onFocus=Au(x,me),he.onMouseEnter=Au(S,me),he.onMouseLeave=Au(C,ve),he.onTouchStart=Au(ee,_e),Du(he,e,ce,se,ue,n)}var Cu={},wu={className:`active`},Tu=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`_fromLocation`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function Eu(e,t){let n={};for(let r in e)Tu.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function Du(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=tn(n?o:s,{})??(n?wu:Cu);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 Ou=new WeakMap,ku=e=>{clearTimeout(Ou.get(e)),Ou.delete(e)},Au=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function ju(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)&&_n(i,t.protocolAllowlist)))return i}var Mu=V.memo(V.forwardRef((e,t)=>{let n=e._asChild||`a`,r=Su(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return V.createElement(n,r,i)}),Nu);function Nu(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!Tu.has(r)||!ln(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var Pu=class extends ml{constructor(e){super(e),this.useMatch=e=>fu({...e,from:this.id}),this.useRouteContext=e=>_u({...e,from:this.id}),this.useSearch=e=>gu({...e,from:this.id}),this.useParams=e=>hu({...e,from:this.id}),this.useLoaderDeps=e=>mu({...e,from:this.id}),this.useLoaderData=e=>pu({...e,from:this.id}),this.useNavigate=()=>s({from:this.fullPath}),this.Link=V.forwardRef((e,t)=>(0,H.jsx)(Mu,{ref:t,from:this.fullPath,...e}))}};function Fu(e){return new Pu(e)}var Iu=class extends hl{constructor(e){super(e),this.useMatch=e=>fu({...e,from:this.id}),this.useRouteContext=e=>_u({...e,from:this.id}),this.useSearch=e=>gu({...e,from:this.id}),this.useParams=e=>hu({...e,from:this.id}),this.useLoaderDeps=e=>mu({...e,from:this.id}),this.useLoaderData=e=>pu({...e,from:this.id}),this.useNavigate=()=>s({from:this.fullPath}),this.Link=V.forwardRef((e,t)=>(0,H.jsx)(Mu,{ref:t,from:this.fullPath,...e}))}};function Lu(e){return new Iu(e)}function Ru(e){return e=>{let t=Fu(e);return t.isRoot=!1,t}}function zu(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(un(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(Al)Al(a());else throw a()}return V.createElement(r,e)};return o.preload=a,o}function Bu(e){let t=l(),n=`not-found-${lu(t.stores.location,e=>e.pathname)}-${lu(t.stores.status)}`;return(0,H.jsx)(Fl,{getResetKey:()=>n,onCatch:(t,n)=>{if(Xt(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(Xt(t))return e.fallback?.(t);throw t},children:e.children})}function Vu(){return(0,H.jsx)(`p`,{children:`Not Found`})}function Hu(e){return(0,H.jsx)(H.Fragment,{children:e.children})}function Uu(e,t,n){return t.options.notFoundComponent?(0,H.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,H.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,H.jsx)(Vu,{})}function Wu(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,H.jsx)(n,{}):null}var Gu=(e,t)=>e[0]===t[0]&&e[1]===t[1],Ku=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,qu=V.memo(function({routeId:e}){let t=l();return(0,H.jsx)(Ju,{router:t,match:lu(t.stores.getMatchStore(e))})});function Ju({router:e,match:t}){let n=e.routesById[t.routeId],r=Wu(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=Ku(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s))?V.Suspense:Hu,l=i?Fl:Hu,u=o?Bu:Hu;return(0,H.jsxs)(n.isRoot?n.options.shellComponent??Hu:Hu,{children:[(0,H.jsx)(Hl.Provider,{value:t.routeId,children:(0,H.jsx)(c,{fallback:r,children:(0,H.jsx)(l,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(Xt(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:(0,H.jsx)(u,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return V.createElement(o,e)},children:s?(0,H.jsx)(zl,{fallback:r,children:(0,H.jsx)(Yu,{match:t})}):(0,H.jsx)(Yu,{match:t})})})})}),null]})}var Yu=V.memo(function({match:e}){let t=l(),n=e.routeId,r=t.routesById[n],i=V.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),a=V.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,H.jsx)(e,{},i):(0,H.jsx)(Xu,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!Ku(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return Wu(t,r)}if(e.status===`notFound`)return Uu(t,r,e.error);if(e.status===`error`)throw e.error;return a}),Xu=V.memo(function(){let e=l(),t=V.useContext(Hl),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=lu(a,e=>[!!e._notFound,e.error],{compare:Gu}),i=lu(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return Uu(e,e.routesById[t],r);if(!i)return null;let a=(0,H.jsx)(qu,{routeId:i});return t===`__root__`?(0,H.jsx)(V.Suspense,{fallback:Wu(e),children:a}):a});function Zu(e,t){let n=e[1];e.length=0,n?.(t)}function Qu({t:e}){let t=l(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{Zu(n,!1),n.push(i,a),e(t),V.startTransition(r)}),jl(()=>{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(En(r.publicHref)!==En(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`,...Wr(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}function $u(){let e=l(),t=e.routesById[wr],n=Wu(e,t),r=e.ssr?Hu:V.Suspense,i=(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Qu,{t:V.useState()[1]}),(0,H.jsx)(r,{fallback:n,children:(0,H.jsx)(ed,{})})]});return e.options.InnerWrap?(0,H.jsx)(e.options.InnerWrap,{children:i}):i}function ed(){let e=l(),t=e._rendered,n=lu(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;jl(()=>{t[0]===n&&Zu(t,!0)},[t,n]);let a=i?(0,H.jsx)(qu,{routeId:i}):null;return(0,H.jsx)(Hl.Provider,{value:i,children:e.options.disableGlobalCatchBoundary?a:(0,H.jsx)(Fl,{getResetKey:()=>r,onCatch:void 0,children:a})})}var G=e=>({createMutableStore:ou,createReadonlyStore:ou,batch:ru}),K=e=>new q(e),q=class extends Jr{constructor(e){super(e,G)}};function J({router:e,children:t,...n}){rn(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,H.jsx)(o.Provider,{value:e,children:t});return e.options.Wrap?(0,H.jsx)(e.options.Wrap,{children:r}):r}function Y({router:e,...t}){return(0,H.jsx)(J,{router:e,...t,children:(0,H.jsx)($u,{})})}function td(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 nd(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e,a=V.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(e.tag){case`title`:return(0,H.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,H.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,H.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,H.jsx)(`style`,{...t,dangerouslySetInnerHTML:a,nonce:r});case`script`:return(0,H.jsx)(rd,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function rd({attrs:e,children:t,preventScriptHoist:n}){l();let r=Bl(),i=V.useMemo(()=>t===void 0?void 0:{__html:t},[t]),a=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(V.useEffect(()=>{if(!a){if(e?.src){let t=document.createElement(`a`);t.href=e.src;let n=t.href;for(let e of document.scripts)if(e.src===n)return;let r=document.createElement(`script`);return td(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,td(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,a]),a&&typeof t==`string`)return(0,H.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:i});if(!r){if(e?.src)return(0,H.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,H.jsx)(`script`,{...e,dangerouslySetInnerHTML:i,suppressHydrationWarning:!0})}return null}function id(e,t,n,r){n=ui(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:bn(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=dl(e);u.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:ol(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:{...cl(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 ul(m,a),m.push(...d),ul(m,c),m.push(...u),ul(m,f),ul(m,p),m}var ad=e=>{let t=l(),n=t.options.ssr?.nonce,r=V.useCallback(r=>id(t,n,r,e),[e,n,t]);return lu(t.stores.matches,r,{compare:ln})};function od(e){let t=ad(e.assetCrossOrigin),n=l().options.ssr?.nonce;return(0,H.jsx)(H.Fragment,{children:t.map(e=>(0,V.createElement)(nd,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var sd={suppressHydrationWarning:!0},cd=()=>{let e=l(),t=e.options.ssr?.nonce,n=n=>{let r=fl(n,e.ssr?.manifest,t,sd);for(let e of r[1])if(typeof e.attrs?.src==`string`){let t=e;t.preventScriptHoist=!0}return r};return ld(lu(e.stores.matches,e=>pl(n(e)),{compare:ln}))};function ld(e){return(0,H.jsx)(H.Fragment,{children:e.map((e,t)=>(0,V.createElement)(nd,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var ud=`/assets/inter-latin-wght-normal-Dx4kXJAl.woff2`,dd=class extends S{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new x({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=fd(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=fd(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=fd(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=fd(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){h.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>p(t,e))}findAll(e={}){return this.getAll().filter(t=>p(e,t))}notify(e){h.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return h.batch(()=>Promise.all(e.map(e=>e.continue().catch(u))))}};function fd(e){return e.options.scope?.id}var pd=class extends S{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??f(r,t),a=this.get(i);return a||(a=new m({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){h.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>te(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>te(e,t)):t}notify(e){h.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){h.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){h.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},md=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new pd,this.#t=e.mutationCache||new dd,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=g.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=C.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(d(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=v(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return h.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;h.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return h.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=h.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(u).catch(u)}invalidateQueries(e,t={}){return h.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=h.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(u)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(u)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(d(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(d(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(u).catch(u)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(u).catch(u)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return C.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(_(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{a(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(_(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{a(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=f(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===c&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};function hd({title:e=`404`,description:t=`The requested page could not be found.`}){return(0,H.jsx)(`main`,{className:`container mx-auto flex min-h-svh items-center justify-center p-4`,children:(0,H.jsxs)(oe,{className:`w-full max-w-md`,children:[(0,H.jsxs)(re,{children:[(0,H.jsx)(ne,{children:e}),(0,H.jsx)(ae,{children:t})]}),(0,H.jsx)(ie,{children:(0,H.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Check the URL or return to the home page.`})})]})})}var gd=(...e)=>e.reduce((e,t)=>n=>t(e(n))),_d=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},vd=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,yd=1e-7,bd=12;function xd(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=vd(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>yd&&++s<bd);return o}function Sd(e,t,n,r){if(e===t&&n===r)return ut;let i=t=>xd(t,0,1,e,n);return e=>e===0||e===1?e:vd(i(e),t,r)}var Cd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,wd=e=>t=>1-e(1-t),Td=Sd(.33,1.53,.69,.99),Ed=wd(Td),Dd=Cd(Ed),Od=e=>e>=1?1:(e*=2)<1?.5*Ed(e):.5*(2-2**(-10*(e-1))),kd=e=>1-Math.sin(Math.acos(e)),Ad=wd(kd),jd=Cd(kd),Md=Sd(.42,0,1,1),Nd=Sd(0,0,.58,1),Pd=Sd(.42,0,.58,1),Fd=e=>Array.isArray(e)&&typeof e[0]!=`number`,Id={linear:ut,easeIn:Md,easeInOut:Pd,easeOut:Nd,circIn:kd,circInOut:jd,circOut:Ad,backIn:Ed,backInOut:Dd,backOut:Td,anticipate:Od},Ld=e=>typeof e==`string`,Rd=e=>{if(At(e)){Me(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return Sd(t,n,r,i)}return Ld(e)?(Me(Id[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),Id[e]):e};function zd(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Bd({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=zd(s,r,e+1/3),a=zd(s,r,e),o=zd(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Vd(e,t){return n=>n>0?t:e}var Hd=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ud=[nt,bt,vt],Wd=e=>Ud.find(t=>t.test(e));function Gd(e){let t=Wd(e);if(!t)return ye(!1,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!1;let n=t.parse(e);return t===vt&&(n=Bd(n)),n}var Kd=(e,t)=>{let n=Gd(e),r=Gd(t);if(!n||!r)return Vd(e,t);let i={...n};return e=>(i.red=Hd(n.red,r.red,e),i.green=Hd(n.green,r.green,e),i.blue=Hd(n.blue,r.blue,e),i.alpha=O(n.alpha,r.alpha,e),bt.transform(i))},qd=new Set([`none`,`hidden`]);function Jd(e,t){return qd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Yd(e,t){return n=>O(e,t,n)}function Xd(e){return typeof e==`number`?Yd:typeof e==`string`?qe(e)?Vd:Je.test(e)?Kd:ef:Array.isArray(e)?Zd:typeof e==`object`?Je.test(e)?Kd:Qd:Vd}function Zd(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Xd(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Qd(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Xd(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function $d(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var ef=(e,t)=>{let n=Ct.createTransformer(t),r=gt(e),i=gt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?qd.has(e)&&!i.values.length||qd.has(t)&&!r.values.length?Jd(e,t):gd(Zd($d(r,i),i.values),n):(ye(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,`complex-values-different`),Vd(e,t))},tf=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function nf(e,t){let n=tf.exec(e);if(!n)return;let r=tf.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>kt(O(a,o,e))+i}function rf(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return O(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=nf(e,t);if(n)return n}return Xd(e)(e,t)}var af=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>A.update(t,e),stop:()=>Xe(t),now:()=>Le.isProcessing?Le.timestamp:Mt.now()}},of=2e4;function sf(e,t=50,n=of,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function cf(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(sf(r),of);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:_e(i)}}var X={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function lf(e,t){return e*Math.sqrt(1-t*t)}var uf=12;function df(e,t,n){let r=n;for(let n=1;n<uf;n++)r-=e(r)/t(r);return r}var ff=.001;function pf({duration:e=X.duration,bounce:t=X.bounce,velocity:n=X.velocity,mass:r=X.mass}){let i,a;ye(e<=he(X.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let o=1-t;o=Ce(X.minDamping,X.maxDamping,o),e=Ce(X.minDuration,X.maxDuration,_e(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=lf(t,o),c=Math.exp(-i);return ff-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o*o*t*t*e,c=Math.exp(-r),l=lf(t*t,o);return(-i(t)+ff>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=df(i,a,s);if(e=he(e),isNaN(c))return{stiffness:X.stiffness,damping:X.damping,duration:e};{let t=c*c*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Z=[`duration`,`bounce`],mf=[`stiffness`,`damping`,`mass`];function hf(e,t){return t.some(t=>e[t]!==void 0)}function gf(e){let t={velocity:X.velocity,stiffness:X.stiffness,damping:X.damping,mass:X.mass,isResolvedFromDuration:!1,...e};if(!hf(e,mf)&&hf(e,Z)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Ce(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:X.mass,stiffness:i,damping:a}}else{let n=pf({...e,velocity:0});t={...t,...n,mass:X.mass},t.isResolvedFromDuration=!0}}return t}function _f(e=X.visualDuration,t=X.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,velocity:u,isResolvedFromDuration:d}=gf({...n,velocity:-_e(n.velocity||0)}),f=s/(2*Math.sqrt(o*c)),p=_e(Math.sqrt(o/c)),m=f*p,h={target:i,delta:i-r,velocity:u||0,restSpeed:0,restDelta:0},g=()=>{let e=Math.abs(h.delta)<5;h.restSpeed=n.restSpeed||(e?X.restSpeed.granular:X.restSpeed.default),h.restDelta=n.restDelta||(e?X.restDelta.granular:X.restDelta.default)};g();let _,v,y;if(f<1){let e=lf(p,f),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};y=()=>{t.A=(h.velocity+m*h.delta)/e,t.sinC=m*t.A+h.delta*e,t.cosC=m*h.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-m*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};_=e=>(n(e),h.target-t.env*(t.A*t.sin+h.delta*t.cos)),v=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(f===1){_=e=>h.target-Math.exp(-p*e)*(h.delta+(h.velocity+p*h.delta)*e);let e={C:0};y=()=>{e.C=h.velocity+p*h.delta},v=t=>Math.exp(-p*t)*(p*e.C*t-h.velocity)}else{let e=p*Math.sqrt(f*f-1);_=t=>{let n=Math.exp(-m*t),r=Math.min(e*t,300);return h.target-n*((h.velocity+m*h.delta)*Math.sinh(r)+e*h.delta*Math.cosh(r))/e};let t={P:0,sinh:0,cosh:0};y=()=>{t.P=(h.velocity+m*h.delta)/e,t.sinh=m*t.P-h.delta*e,t.cosh=m*h.delta-t.P*e},v=n=>{let r=Math.exp(-m*n),i=Math.min(e*n,300);return r*(t.sinh*Math.sinh(i)+t.cosh*Math.cosh(i))}}y();let b=!hf(n,mf)&&hf(n,Z),x=d&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{h.target=e[e.length-1],h.delta=h.target-e[0],h.velocity=b?0:-_e(t),n.restSpeed&&n.restDelta||g(),S.calculatedDuration=x,a.done=!1,y()},velocity:e=>he(v(e)),next:e=>{let t=_(e);if(d)a.done=e>=l;else{let n=he(v(e));a.done=Math.abs(n)<=h.restSpeed&&Math.abs(h.target-t)<=h.restDelta}return a.value=a.done?h.target:t,a},toString:()=>{let e=Math.min(sf(S),of),t=tt(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}_f.applyToOptions=e=>{let t=cf(e,100,_f);return e.ease=t.ease,e.duration=he(t.duration),e.type=`keyframes`,e};function vf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=_f({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function yf(e,t,n){let r=[],i=n||ke.mix||rf,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=gd(Array.isArray(t)?t[n]||ut:t,a)),r.push(a)}return r}function bf(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(Me(a===t.length,`Both input and output ranges must be the same length`,`range-length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=yf(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=_d(e[r],e[r+1],n);return s[r](i)};return n?t=>l(Ce(e[0],e[a-1],t)):l}function xf(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=_d(0,t,r);e.push(O(n,1,i))}}function Sf(e){let t=[0];return xf(t,e.length-1),t}function Cf(e,t){return e.map(e=>e*t)}function wf(e,t){return e.map(()=>t||Pd).splice(0,e.length-1)}function Tf({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Fd(r)?r.map(Rd):Rd(r),a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(ke.mix||rf)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?Ce(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=bf(Cf(n&&n.length===t.length?n:Sf(t),e),t,{ease:Array.isArray(i)?i:wf(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Ef=5;function Df(e,t,n){let r=Math.max(t-Ef,0);return ze(n-e(r),t-r)}function Of(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):Df(t=>e.next(t).value,t,e.next(t).value)}var kf={decay:vf,inertia:vf,tween:Tf,keyframes:Tf,spring:_f};function Af(e){typeof e.type==`string`&&(e.type=kf[e.type])}var jf=e=>e/100,Mf=class extends We{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==Mt.now()&&this.tick(Mt.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),Ke(this,this.options)}initAnimation(){let{options:e}=this;Af(e);let{type:t=Tf,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Tf;s!==Tf&&typeof o[0]!=`number`&&(this.mixKeyframes=gd(jf,rf(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=sf(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=Ce(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==vf&&(b.value=se(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return _e(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+_e(e)}get time(){return _e(this.currentTime)}set time(e){e=he(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return Of(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(Mt.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=_e(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=af,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(Mt.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}},Nf={anticipate:Od,backInOut:Dd,circInOut:jd};function Pf(e){return e in Nf}function Ff(e){typeof e.ease==`string`&&Pf(e.ease)&&(e.ease=Nf[e.ease])}var If=10,Lf=class extends E{constructor(e){Ff(e),Af(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Mf({...a,autoplay:!1}),s=Math.max(If,Mt.now()-this.startTime),c=Ce(0,If,s-If),l=o.sample(s).value,{name:u}=this.options;i&&u&&Nt(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Rf=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Ct.test(e)||e===`0`)&&!e.startsWith(`url(`));function zf(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Bf(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Rf(i,t),s=Rf(a,t);return!o||!s?(o!==s&&ye(!1,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,`value-not-animatable`),!1):zf(e)||(n===`spring`||Pe(n))&&r}function Vf(e){e.duration=0,e.type=`keyframes`}var Q=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Hf(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Q.test(e[t]))return!0;return!1}var Uf=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Wf=le(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Gf(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(Se.has(n)||Uf.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Wf()&&(Se.has(n)||Uf.has(n)&&Hf(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Kf=40,qf=class extends We{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Mt.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||ue;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=Mt.now();let u=!0;Bf(e,i,a,o)||(u=!1,(ke.instantAnimations||!s)&&l?.(se(e,n,t)),e[0]=e[e.length-1],Vf(n),n.repeat=0);let d=r?this.resolvedAt&&this.resolvedAt-this.createdAt>Kf?this.resolvedAt:this.createdAt:void 0,{onComplete:f}=n;n.startTime??=d,n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{f?.(),this.notifyFinished()};let p=u&&!c&&Gf(n),m;if(p){n.element=n.motionValue?.owner?.current;try{m=new Lf(n)}catch{m=new Mf(n)}}else m=new Mf(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ve()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Jf(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}function Yf(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Xf(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Yf(n,e)}var Zf={type:`spring`,stiffness:500,damping:25,restSpeed:10},Qf=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$f={type:`keyframes`,duration:.8},ep={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},$=(e,{keyframes:t})=>t.length>2?$f:be.has(e)?e.startsWith(`scale`)?Qf(t[1]):Zf:ep,tp=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function np(e){for(let t in e)if(!tp.has(t))return!0;return!1}var rp=(e,t,n,r={},i,a)=>o=>{let s=Xf(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=he(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};np(s)||Object.assign(u,$(e,u)),u.duration&&=he(u.duration),u.repeatDelay&&=he(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Vf(u),u.delay===0&&(d=!0)),(ke.instantAnimations||ke.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Vf(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=se(u.keyframes,s);if(e!==void 0){A.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Mf(u):new qf(u)},ip=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ap(e){let t=ip.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var op=4;function sp(e,t,n=1){Me(n<=op,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,`max-css-var-depth`);let[r,i]=ap(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return De(e)?parseFloat(e):e}return qe(i)?sp(i,t,n+1):i}function cp(e,t,n){let r=e.getProps();return je(r,t,n===void 0?r.custom:n,e)}var lp=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Ue]),up=e=>Array.isArray(e);function dp(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ve(n))}function fp(e){return up(e)?e[e.length-1]||0:e}function pp(e,t){let{transitionEnd:n={},transition:r={},...i}=cp(e,t)||{};i={...i,...n};for(let t in i)dp(e,t,fp(i[t]))}function mp(e){return!!(Oe(e)&&e.add)}function hp(e,t){let n=e.getValue(`willChange`);if(mp(n))return n.add(t);if(!n&&ke.WillChange){let n=new ke.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function gp(e){return e.props[st]}var _p=typeof window<`u`;function vp({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function yp(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Yf(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&vp(f,t))continue;let o={delay:n,...Xf(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){A.update(()=>r.set(i));continue}let p=!1;if(_p&&window.MotionHandoffAnimation){let n=gp(e);if(n){let e=window.MotionHandoffAnimation(n,t,A);e!==null&&(o.startTime=e,p=!0)}}hp(e,t);let m=l??e.shouldReduceMotion;r.start(rp(t,r,i,m&&lp.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>A.update(()=>{o&&pp(e,o)});d.length?Promise.all(d).then(t):t()}return d}function bp(e,t,n={}){let r=cp(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(yp(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return xp(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function xp(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(bp(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Jf(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Sp(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>bp(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=bp(e,t,n);else{let i=typeof t==`function`?cp(e,t,n.custom):t;r=Promise.all(yp(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Cp={test:e=>e===`auto`,parse:e=>e},wp=e=>t=>t.test(e),Tp=[mt,ft,Qe,Tt,et,Ot,Cp],Ep=e=>Tp.find(wp(e));function Dp(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||ct(e)}var Op=new Set([`auto`,`none`,`0`]);function kp(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Op.has(t)&&ot(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=we(n,i))}var Ap=class extends ue{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),qe(r))){let i=sp(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!lp.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=Ep(r),o=Ep(i);if(it(r)!==it(i)&&Be[n]){this.needsMeasurement=!0;return}if(a!==o){if(xe(a)&&xe(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Be[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Dp(e[t]))&&n.push(t);n.length&&kp(e,n,t)}measure(){let{element:e,name:t}=this;return Be[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function jp(e){return Ft(e)&&`ownerSVGElement`in e}function Mp(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function Np({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Pp({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Fp(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ip(e){return e===void 0||e===1}function Lp({scale:e,scaleX:t,scaleY:n}){return!Ip(e)||!Ip(t)||!Ip(n)}function Rp(e){return Lp(e)||zp(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function zp(e){return Bp(e.x)||Bp(e.y)}function Bp(e){return e&&e!==`0%`}function Vp(e,t,n){return n+t*(e-n)}function Hp(e,t,n,r,i){return i!==void 0&&(e=Vp(e,i,r)),Vp(e,n,r)+t}function Up(e,t=0,n=1,r,i){e.min=Hp(e.min,t,n,r,i),e.max=Hp(e.max,t,n,r,i)}function Wp(e,{x:t,y:n}){Up(e.x,t.translate,t.scale,t.originPoint),Up(e.y,n.translate,n.scale,n.originPoint)}var Gp=.999999999999,Kp=1.0000000000001;function qp(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Jp(e.x,-a.scroll.offset.x),Jp(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Wp(e,o)),r&&Rp(a.latestValues)&&Zp(e,a.latestValues,a.layout?.layoutBox))}t.x<Kp&&t.x>Gp&&(t.x=1),t.y<Kp&&t.y>Gp&&(t.y=1)}function Jp(e,t){e.min+=t,e.max+=t}function Yp(e,t,n,r,i=.5){Up(e,t,n,O(e.min,e.max,i),r)}function Xp(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Zp(e,t,n){let r=n??e;Yp(e.x,Xp(t.x,r.x),t.scaleX,t.scale,t.originX),Yp(e.y,Xp(t.y,r.y),t.scaleY,t.scale,t.originY)}function Qp(e,t){return Np(Fp(e.getBoundingClientRect(),t))}function $p(e,t,n){let r=Qp(e,n),{scroll:i}=t;return i&&(Jp(r.x,i.offset.x),Jp(r.y,i.offset.y)),r}var em={x:!1,y:!1};function tm(){return em.x||em.y}function nm(e){return e===`x`||e===`y`?em[e]?null:(em[e]=!0,()=>{em[e]=!1}):em.x||em.y?null:(em.x=em.y=!0,()=>{em.x=em.y=!1})}function rm(e,t){let n=Mp(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function im(e){return!(e.pointerType===`touch`||tm())}function am(e,t,n={}){let[r,i,a]=rm(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!im(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var om=(e,t)=>t?e===t||om(e,t.parentElement):!1,sm=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,cm=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function lm(e){return cm.has(e.tagName)||e.isContentEditable===!0}var um=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function dm(e){return um.has(e.tagName)||e.isContentEditable===!0}var fm=new WeakSet;function pm(e){return t=>{t.key===`Enter`&&e(t)}}function mm(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var hm=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=pm(()=>{if(fm.has(n))return;mm(n,`down`);let e=pm(()=>{mm(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>mm(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function gm(e){return sm(e)&&!tm()}var _m=new WeakSet;function vm(e,t,n={}){let[r,i,a]=rm(e,n),o=e=>{let r=e.currentTarget;if(!gm(e)||_m.has(e))return;fm.add(r),n.stopPropagation&&_m.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),fm.has(r)&&fm.delete(r),gm(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||om(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Pt(e)&&(e.addEventListener(`focus`,e=>hm(e,i)),!lm(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}var ym=new WeakMap,bm,xm=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:jp(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Sm=xm(`inline`,`width`,`offsetWidth`),Cm=xm(`block`,`height`,`offsetHeight`);function wm({target:e,borderBoxSize:t}){ym.get(e)?.forEach(n=>{n(e,{get width(){return Sm(e,t)},get height(){return Cm(e,t)}})})}function Tm(e){e.forEach(wm)}function Em(){typeof ResizeObserver>`u`||(bm=new ResizeObserver(Tm))}function Dm(e,t){bm||Em();let n=Mp(e);return n.forEach(e=>{let n=ym.get(e);n||(n=new Set,ym.set(e,n)),n.add(t),bm?.observe(e)}),()=>{n.forEach(e=>{let n=ym.get(e);n?.delete(t),n?.size||bm?.unobserve(e)})}}var Om=new Set,km;function Am(){km=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Om.forEach(t=>t(e))},window.addEventListener(`resize`,km)}function jm(e){return Om.add(e),km||Am(),()=>{Om.delete(e),!Om.size&&typeof km==`function`&&(window.removeEventListener(`resize`,km),km=void 0)}}function Mm(e,t){return typeof e==`function`?jm(e):Dm(e,t)}var Nm={value:null,addProjectionMetrics:null};function Pm(e){return jp(e)&&e.tagName===`svg`}var Fm=class extends pt{constructor(){super(...arguments),this.KeyframeResolver=Ap}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Oe(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Im=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Lm(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Rm(e){return window.getComputedStyle(e)}var zm=class extends Fm{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Lm}mount(e){Me(!!e.style,`motion.create() components must forward their ref to a HTML or SVG element`,`custom-component-ref`),super.mount(e)}readValueFromInstance(e,t){if(be.has(t))return this.projection?.isProjecting?T(t):xt(e,t);{let n=Rm(e),r=(rt(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Qp(e,t)}build(e,t,n){lt(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return $e(e,t,n)}},Bm=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]);function Vm(e,t,n,r){Lm(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Bm.has(n)?n:Ee(n),t.attrs[n])}var Hm=class extends Fm{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=k}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(be.has(t)){let e=Ge(t);return e&&e.default||0}if(D.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Bm.has(t)?t:Ee(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return dt(e,t,n)}build(e,t,n){me(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Vm(e,t,n,r)}mount(e){this.isSVGTag=Dt(e.tagName),super.mount(e)}},Um=jt.length;function Wm(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Wm(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Um;n++){let r=jt[n],i=e.props[r];(Ie(i)||i===!1)&&(t[r]=i)}return t}function Gm(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Km=[...Ye].reverse(),qm=Ye.length;function Jm(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Sp(e,t,n)))}function Ym(e){let t=Jm(e),n=Qm(),r=!0,i=!1,a=t=>(n,r)=>{let i=cp(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Wm(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<qm;t++){let p=Km[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Ie(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||fe(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Xm(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:ee={}}=m,te={...ee,...C},w=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in te){let t=C[e],n=ee[e];if(d.hasOwnProperty(e))continue;let r=!1;r=up(t)&&up(n)?!Gm(t,n)||y:t!==n,r?t==null?u.add(e):w(e):t!==void 0&&u.has(e)?w(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let ne=v&&y;b&&(!ne||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!ne&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=cp(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Jf(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=cp(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Qm(),i=!0}}}function Xm(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Gm(t,e):!1}function Zm(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Qm(){return{animate:Zm(!0),whileInView:Zm(),whileHover:Zm(),whileTap:Zm(),whileDrag:Zm(),whileFocus:Zm(),exit:Zm()}}function $m(e,t){e.min=t.min,e.max=t.max}function eh(e,t){$m(e.x,t.x),$m(e.y,t.y)}function th(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var nh=.9999,rh=1.0001,ih=-.01,ah=.01;function oh(e){return e.max-e.min}function sh(e,t,n){return Math.abs(e-t)<=n}function ch(e,t,n,r=.5){e.origin=r,e.originPoint=O(t.min,t.max,e.origin),e.scale=oh(n)/oh(t),e.translate=O(n.min,n.max,e.origin)-e.originPoint,(e.scale>=nh&&e.scale<=rh||isNaN(e.scale))&&(e.scale=1),(e.translate>=ih&&e.translate<=ah||isNaN(e.translate))&&(e.translate=0)}function lh(e,t,n,r){ch(e.x,t.x,n.x,r?r.originX:void 0),ch(e.y,t.y,n.y,r?r.originY:void 0)}function uh(e,t,n,r=0){e.min=(r?O(n.min,n.max,r):n.min)+t.min,e.max=e.min+oh(t)}function dh(e,t,n,r){uh(e.x,t.x,n.x,r?.x),uh(e.y,t.y,n.y,r?.y)}function fh(e,t,n,r=0){let i=r?O(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+oh(t)}function ph(e,t,n,r){fh(e.x,t.x,n.x,r?.x),fh(e.y,t.y,n.y,r?.y)}function mh(e,t,n,r,i){return e-=t,e=Vp(e,1/n,r),i!==void 0&&(e=Vp(e,1/i,r)),e}function hh(e,t=0,n=1,r=.5,i,a=e,o=e){if(Qe.test(t)&&(t=parseFloat(t),t=O(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=O(a.min,a.max,r);e===a&&(s-=t),e.min=mh(e.min,t,n,s,i),e.max=mh(e.max,t,n,s,i)}function gh(e,t,[n,r,i],a,o){hh(e,t[n],t[r],t[i],t.scale,a,o)}var _h=[`x`,`scaleX`,`originX`],vh=[`y`,`scaleY`,`originY`];function yh(e,t,n,r){gh(e.x,t,_h,n?n.x:void 0,r?r.x:void 0),gh(e.y,t,vh,n?n.y:void 0,r?r.y:void 0)}function bh(e){return e.translate===0&&e.scale===1}function xh(e){return bh(e.x)&&bh(e.y)}function Sh(e,t){return e.min===t.min&&e.max===t.max}function Ch(e,t){return Sh(e.x,t.x)&&Sh(e.y,t.y)}function wh(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Th(e,t){return wh(e.x,t.x)&&wh(e.y,t.y)}function Eh(e){return oh(e.x)/oh(e.y)}function Dh(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Oh(e){return[e(`x`),e(`y`)]}function kh(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Ah=ce.length,jh=e=>typeof e==`string`?parseFloat(e):e,Mh=e=>typeof e==`number`||ft.test(e);function Nh(e,t,n,r,i,a){i?(e.opacity=O(0,n.opacity??1,Fh(r)),e.opacityExit=O(t.opacity??1,0,Ih(r))):a&&(e.opacity=O(t.opacity??1,n.opacity??1,r));for(let i=0;i<Ah;i++){let a=ce[i],o=Ph(t,a),s=Ph(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Mh(o)===Mh(s)?(e[a]=Math.max(O(jh(o),jh(s),r),0),(Qe.test(s)||Qe.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=O(t.rotate||0,n.rotate||0,r))}function Ph(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Fh=Lh(0,.5,Ad),Ih=Lh(.5,.95,ut);function Lh(e,t,n){return r=>r<e?0:r>t?1:n(_d(e,t,r))}function Rh(e,t,n){let r=Oe(e)?e:ve(e);return r.start(rp(``,r,t,n)),r.animation}function zh(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Bh=(e,t)=>e.depth-t.depth,Vh=class{constructor(){this.children=[],this.isDirty=!1}add(e){Te(this.children,e),this.isDirty=!0}remove(e){Fe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Bh),this.isDirty=!1,this.children.forEach(e)}};function Hh(e,t){let n=Mt.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Xe(r),e(a-t))};return A.setup(r,!0),()=>Xe(r)}var Uh=class{constructor(){this.members=[]}add(e){Te(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(Fe(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Fe(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Wh={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Gh={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Kh=[``,`X`,`Y`,`Z`],qh=1e3,Jh=0;function Yh(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Xh(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=gp(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,A,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Xh(r)}function Zh({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Jh++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Nm.value&&(Gh.nodes=Gh.calculatedTargetDeltas=Gh.calculatedProjections=0),this.nodes.forEach(eg),this.nodes.forEach(lg),this.nodes.forEach(ug),this.nodes.forEach(tg),Nm.addProjectionMetrics&&Nm.addProjectionMetrics(Gh)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vh)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ae),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=jp(t)&&!Pm(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;A.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Hh(i,250),Wh.hasAnimatedSinceResize&&(Wh.hasAnimatedSinceResize=!1,this.nodes.forEach(cg)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||_g,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Th(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Xf(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||cg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Xe(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(dg),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Xh(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(ig),this.nodes.forEach(rg);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ag);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(og),this.nodes.forEach(sg),this.nodes.forEach(Qh),this.nodes.forEach($h)):this.nodes.forEach(ag),this.clearAllSnapshots();let e=Mt.now();Le.delta=Ce(0,1e3/60,e-Le.timestamp),Le.timestamp=e,Le.isProcessing=!0,pe.update.process(Le),pe.preRender.process(Le),pe.render.process(Le),Le.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ge.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ng),this.sharedNodes.forEach(fg)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,A.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){A.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!oh(this.snapshot.measuredBox.x)&&!oh(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=k(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!xh(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Rp(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),xg(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return k();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Cg))){let{scroll:e}=this.root;e&&(Jp(t.x,e.offset.x),Jp(t.y,e.offset.y))}return t}removeElementScroll(e){let t=k();if(eh(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&eh(t,e),Jp(t.x,i.offset.x),Jp(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||k();eh(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Jp(r.x,-n.scroll.offset.x),Jp(r.y,-n.scroll.offset.y)),Rp(n.latestValues)&&Zp(r,n.latestValues,n.layout?.layoutBox)}return Rp(this.latestValues)&&Zp(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=k();eh(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Rp(n.latestValues))continue;let r;n.instance&&(Lp(n.latestValues)&&n.updateSnapshot(),r=k(),eh(r,n.measurePageBox())),yh(t,n.latestValues,n.snapshot?.layoutBox,r)}return Rp(this.latestValues)&&yh(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Le.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=Le.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=k(),this.targetWithTransforms=k()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),dh(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):eh(this.target,this.layout.layoutBox),Wp(this.target,this.targetDelta)):eh(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Nm.value&&Gh.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Lp(this.parent.latestValues)||zp(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=k(),this.relativeTargetOrigin=k(),ph(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),eh(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Le.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;eh(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;qp(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=k());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(th(this.prevProjectionDelta.x,this.projectionDelta.x),th(this.prevProjectionDelta.y,this.projectionDelta.y)),lh(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Dh(this.projectionDelta.x,this.prevProjectionDelta.x)||!Dh(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Nm.value&&Gh.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Re(),this.projectionDelta=Re(),this.projectionDeltaWithTransform=Re()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Re();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=k(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(gg));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=O(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=O(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(pg(o.x,e.x,n),pg(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ph(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),hg(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Ch(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=k(),eh(f,this.relativeTarget)),c&&(this.animationValues=a,Nh(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Xe(this.pendingAnimation),void 0),this.pendingAnimation=A.update(()=>{Wh.hasAnimatedSinceResize=!0,this.motionValue||=ve(0),this.motionValue.jump(0,!1),this.currentAnimation=Rh(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),Ne(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(qh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(!(!t||!i||!n)){if(this!==e&&this.layout&&n&&Sg(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||k();let t=oh(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=oh(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}eh(t,i),Zp(t,r),lh(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Uh),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Yh(`z`,e,r,this.animationValues);for(let t=0;t<Kh.length;t++)Yh(`rotate${Kh[t]}`,e,r,this.animationValues),Yh(`skew${Kh[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Ze(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Ze(t?.pointerEvents)||``),this.hasProjected&&!Rp(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=kh(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in yt){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=yt[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Ze(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(rg),this.root.sharedNodes.clear()}}}function Qh(e){e.updateLayout()}function $h(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Oh(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=oh(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;$m(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Sg(i,t.layoutBox,n)&&Oh(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=oh(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Re();lh(o,n,t.layoutBox);let s=Re();a?lh(s,e.applyTransform(r,!0),t.measuredBox):lh(s,n,t.layoutBox);let c=!xh(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=k();ph(s,t.layoutBox,i.layoutBox,o);let c=k();ph(c,n,a.layoutBox,o),Th(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function eg(e){Nm.value&&Gh.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function tg(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ng(e){e.clearSnapshot()}function rg(e){e.clearMeasurements()}function ig(e){e.isLayoutDirty=!0,e.updateLayout()}function ag(e){e.isLayoutDirty=!1}function og(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function sg(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function cg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function lg(e){e.resolveTargetDelta()}function ug(e){e.calcProjection()}function dg(e){e.resetSkewAndRotation()}function fg(e){e.removeLeadSnapshot()}function pg(e,t,n){e.translate=O(t.translate,0,n),e.scale=O(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function mg(e,t,n,r){e.min=O(t.min,n.min,r),e.max=O(t.max,n.max,r)}function hg(e,t,n,r){mg(e.x,t.x,n.x,r),mg(e.y,t.y,n.y,r)}function gg(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var _g={duration:.45,ease:[.4,0,.1,1]},vg=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),yg=vg(`applewebkit/`)&&!vg(`chrome/`)?Math.round:ut;function bg(e){e.min=yg(e.min),e.max=yg(e.max)}function xg(e){bg(e.x),bg(e.y)}function Sg(e,t,n){return e===`position`||e===`preserve-aspect`&&!sh(Eh(t),Eh(n),.2)}function Cg(e){return e!==e.root&&e.scroll?.wasRoot}var wg=Zh({attachResizeListener:(e,t)=>zh(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Tg={current:void 0},Eg=Zh({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Tg.current){let e=new wg({});e.mount(window),e.setOptions({layoutScroll:!0}),Tg.current=e}return Tg.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`});function Dg({children:e,features:t,strict:n=!1}){let[,r]=(0,V.useState)(!Og(t)),i=(0,V.useRef)(void 0);if(!Og(t)){let{renderer:e,...n}=t;i.current=e,at(n)}return(0,V.useEffect)(()=>{Og(t)&&t().then(({renderer:e,...t})=>{at(t),i.current=e,r(!0)})},[]),(0,H.jsx)(_t.Provider,{value:{renderer:i.current,strict:n},children:e})}function Og(e){return typeof e==`function`}function kg({children:e,...t}){let n=(0,V.useContext)(wt);t={...n,...t},t.transition=Yf(t.transition,n.transition),t.isStatic=de(()=>t.isStatic);let r=(0,V.useMemo)(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return(0,H.jsx)(wt.Provider,{value:r,children:e})}var Ag=(e,t)=>t.isSVG??St(e)?new Hm(t):new zm(t,{allowProjection:e!==V.Fragment}),jg=class extends Im{constructor(e){super(e),e.animationState||=Ym(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();fe(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Mg=0,Ng={animation:{Feature:jg},exit:{Feature:class extends Im{constructor(){super(...arguments),this.id=Mg++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=cp(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Pg(e){return{point:{x:e.pageX,y:e.pageY}}}var Fg=e=>t=>sm(t)&&e(t,Pg(t));function Ig(e,t,n,r){return zh(e,t,Fg(n),r)}var Lg=({current:e})=>e?e.ownerDocument.defaultView:null,Rg=(e,t)=>Math.abs(e-t);function zg(e,t){let n=Rg(e.x,t.x),r=Rg(e.y,t.y);return Math.sqrt(n**2+r**2)}var Bg=new Set([`auto`,`scroll`]),Vg=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Hg(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Wg(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=zg(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Le;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Hg(t,this.transformPagePoint),A.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Wg(e.type===`pointercancel`?this.lastMoveEventInfo:Hg(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!sm(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Hg(Pg(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=Le;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Wg(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=gd(Ig(this.contextWindow,`pointermove`,this.handlePointerMove,d),Ig(this.contextWindow,`pointerup`,this.handlePointerUp,d),Ig(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Bg.has(e.overflowX)||Bg.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),A.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Xe(this.updatePoint)}};function Hg(e,t){return t?{point:t(e.point)}:e}function Ug(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Wg({point:e},t){return{point:e,delta:Ug(e,Kg(t)),offset:Ug(e,Gg(t)),velocity:qg(t,.1)}}function Gg(e){return e[0]}function Kg(e){return e[e.length-1]}function qg(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Kg(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>he(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>he(t)*2&&(r=e[1]);let a=_e(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Jg(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?O(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?O(n,e,r.max):Math.min(e,n)),e}function Yg(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Xg(e,{top:t,left:n,bottom:r,right:i}){return{x:Yg(e.x,n,i),y:Yg(e.y,t,r)}}function Zg(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Qg(e,t){return{x:Zg(e.x,t.x),y:Zg(e.y,t.y)}}function $g(e,t){let n=.5,r=oh(e),i=oh(t);return i>r?n=_d(t.min,t.max-r,e.min):r>i&&(n=_d(e.min,e.max-i,t.min)),Ce(0,1,n)}function e_(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var t_=.35;function n_(e=t_){return e===!1?e=0:e===!0&&(e=t_),{x:r_(e,`left`,`right`),y:r_(e,`top`,`bottom`)}}function r_(e,t,n){return{min:i_(e,t),max:i_(e,n)}}function i_(e,t){return typeof e==`number`?e:e[t]||0}var a_=new WeakMap,o_=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=k(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(Pg(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=nm(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Oh(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Qe.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=oh(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&A.update(()=>i(e,t),!1,!0),hp(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=u_(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&A.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Vg(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Lg(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&A.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!l_(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Jg(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Et(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?Xg(n.layoutBox,e):!1,this.elastic=n_(t),r!==this.constraints&&!Et(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Oh(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=e_(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Et(e))return!1;let n=e.current;Me(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.",`drag-constraints-ref`);let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=$p(n,r.root,this.visualElement.getTransformPagePoint()),a=Qg(r.layout.layoutBox,i);if(t){let e=t(Pp(a));this.hasMutatedConstraints=!!e,e&&(a=Np(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Oh(o=>{if(!l_(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return hp(this.visualElement,e),n.start(rp(e,n,0,t,this.visualElement,!1))}stopAnimation(){Oh(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Oh(t=>{let{drag:n}=this.getProps();if(!l_(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-O(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Et(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Oh(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=$g({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Oh(t=>{if(!l_(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(O(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;a_.set(this.visualElement,this);let e=this.visualElement.current,t=Ig(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&dm(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Et(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=c_(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),A.read(r);let o=zh(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Oh(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=t_,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function s_(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function c_(e,t,n){let r=Mm(e,s_(n)),i=Mm(t,s_(n));return()=>{r(),i()}}function l_(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function u_(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var d_=class extends Im{constructor(e){super(e),this.removeGroupControls=ut,this.removeListeners=ut,this.controls=new o_(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ut}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},f_=e=>(t,n)=>{e&&A.update(()=>e(t,n),!1,!0)},p_=class extends Im{constructor(){super(...arguments),this.removePointerDownListener=ut}onPointerDown(e){this.session=new Vg(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Lg(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:f_(e),onStart:f_(t),onMove:f_(n),onEnd:(e,t)=>{delete this.session,r&&A.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Ig(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},m_=!1,h_=class extends V.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),m_&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Wh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),m_=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||A.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),ge.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;m_=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function g_(e){let[t,n]=It(),r=(0,V.useContext)(He);return(0,H.jsx)(h_,{...e,layoutGroup:r,switchLayoutGroup:(0,V.useContext)(ht),isPresent:t,safeToRemove:n})}var __={pan:{Feature:p_},drag:{Feature:d_,ProjectionNode:Eg,MeasureLayout:g_}};function v_(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&A.postRender(()=>i(t,Pg(t)))}var y_=class extends Im{mount(){let{current:e}=this.node;e&&(this.unmount=am(e,(e,t)=>(v_(this.node,t,`Start`),e=>v_(this.node,e,`End`))))}unmount(){}},b_=class extends Im{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=gd(zh(this.node.current,`focus`,()=>this.onFocus()),zh(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function x_(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&A.postRender(()=>i(t,Pg(t)))}var S_=class extends Im{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=vm(e,(e,t)=>(x_(this.node,t,`Start`),(e,{success:t})=>x_(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},C_=new WeakMap,w_=new WeakMap,T_=e=>{let t=C_.get(e.target);t&&t(e)},E_=e=>{e.forEach(T_)};function D_({root:e,...t}){let n=e||document;w_.has(n)||w_.set(n,{});let r=w_.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(E_,{root:e,...t})),r[i]}function O_(e,t,n){let r=D_(t);return C_.set(e,n),r.observe(e),()=>{C_.delete(e),r.unobserve(e)}}var k_={some:0,all:1},A_=class extends Im{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:k_[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=O_(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(j_(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function j_({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var M_={inView:{Feature:A_},tap:{Feature:S_},focus:{Feature:b_},hover:{Feature:y_}},N_={layout:{ProjectionNode:Eg,MeasureLayout:g_}},P_={renderer:Ag,...Ng,...M_,...__,...N_};function F_(){let[e,t]=(0,V.useState)(!1);return(0,V.useLayoutEffect)(()=>{let e=document.documentElement,n=()=>t(e.classList.contains(`reduce-motion`));n();let r=new MutationObserver(n);return r.observe(e,{attributes:!0,attributeFilter:[`class`]}),()=>r.disconnect()},[]),e}function I_({children:e}){let t=F_();return(0,H.jsx)(Dg,{features:P_,strict:!0,children:(0,H.jsx)(kg,{reducedMotion:t?`always`:`user`,children:e})})}function L_(){return new md({defaultOptions:{queries:{staleTime:6e4,retry:1,refetchOnWindowFocus:!1}}})}var R_;function z_(){return ee?L_():(R_||=L_(),R_)}var B_=`/assets/globals-DZbMyHfg.css`,V_=Lu({head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1`},{title:`Fleet Prime`}],links:[{rel:`stylesheet`,href:B_},{rel:`preload`,href:ud,as:`font`,type:`font/woff2`,crossOrigin:`anonymous`},{rel:`icon`,href:`/favicon-dark.svg`,type:`image/svg+xml`,media:`(prefers-color-scheme: dark)`},{rel:`icon`,href:`/favicon-light.svg`,type:`image/svg+xml`,media:`(prefers-color-scheme: light)`},{rel:`icon`,href:`/favicon.ico`,sizes:`any`}]}),component:H_,notFoundComponent:()=>(0,H.jsx)(hd,{}),shellComponent:U_});function H_(){return(0,V.useLayoutEffect)(()=>{Rt(zt())},[]),(0,V.useEffect)(()=>{y()},[]),(0,H.jsx)(I_,{children:(0,H.jsxs)(b,{client:z_(),children:[(0,H.jsx)(Xu,{}),null]})})}function U_({children:e}){return(0,H.jsxs)(`html`,{lang:`en`,"data-density":Bt.density,children:[(0,H.jsx)(`head`,{children:(0,H.jsx)(od,{})}),(0,H.jsxs)(`body`,{children:[e,(0,H.jsx)(Lt,{}),(0,H.jsx)(cd,{})]})]})}var W_={IndexRoute:Ru(`/`)({component:zu(()=>Vt(()=>import(`./routes-DCP1DP1g.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68])),`component`)}).update({id:`/`,path:`/`,getParentRoute:()=>V_})},G_=V_._addFileChildren(W_);function K_(){return K({routeTree:G_,scrollRestoration:!0,defaultPreload:`intent`,defaultPreloadStaleTime:0})}async function q_(){let e=await K_(),t=[];return window.__TSS_START_OPTIONS__={serializationAdapters:t},t.push(kl),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.ids.get().length||await Zi(e),e}var J_=q_;function Y_(){return J_().finally(()=>window.$_TSR?.h())}var X_;function Z_(){return X_||=Y_(),(0,H.jsx)(Nl,{promise:X_,children:e=>(0,H.jsx)(Y,{router:e})})}var Q_=Gt();(0,V.startTransition)(()=>{(0,Q_.hydrateRoot)(document,(0,H.jsx)(V.StrictMode,{children:(0,H.jsx)(Z_,{})}))});
|
|
13
|
+
`;case`\\r`:return`\r`;case`\\b`:return`\b`;case`\\t`:return` `;case`\\f`:return`\f`;case`\\x3C`:return`<`;case`\\u2028`:return`\u2028`;case`\\u2029`:return`\u2029`;default:return e}}function Oa(e){return typeof e==`string`&&!e.includes(`\\`)?e:e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,Da)}var{toString:ka}=Object.prototype,Aa={parsing:1,serialization:2,deserialization:3};function ja(e){return`Seroval Error (step: ${Aa[e]})`}var Ma=(e,t)=>ja(e),Na=class extends Error{constructor(e,t){super(Ma(e,t)),this.cause=t}},Pa=class extends Na{constructor(e){super(`parsing`,e)}},Fa=class extends Na{constructor(e){super(`deserialization`,e)}};function I(e){return`Seroval Error (specific: ${e})`}var Ia=class extends Error{constructor(e){super(I(1)),this.value=e}},La=class extends Error{constructor(e){super(I(2))}},Ra=class extends Error{constructor(e){super(I(3))}},za=class extends Error{constructor(e){super(I(4))}},Ba=class extends Error{constructor(e){super(I(5)),this.value=e}},Va=class extends Error{constructor(e){super(I(6))}},Ha=class extends Error{constructor(e){super(I(7))}},Ua=class extends Error{constructor(e){super(I(8))}},Wa=class extends Error{constructor(e){super(I(9))}},Ga=`__SEROVAL_REFS__`,Ka=new Map,qa=new Map;function Ja(e){return Ka.has(e)}function Ya(e){return qa.has(e)}function Xa(e){if(Ja(e))return Ka.get(e);throw new Ba(e)}function Za(e){if(Ya(e))return qa.get(e);throw new Va(e)}typeof globalThis<`u`?Object.defineProperty(globalThis,Ga,{value:qa,configurable:!0,writable:!1,enumerable:!1}):typeof window<`u`?Object.defineProperty(window,Ga,{value:qa,configurable:!0,writable:!1,enumerable:!1}):typeof self<`u`?Object.defineProperty(self,Ga,{value:qa,configurable:!0,writable:!1,enumerable:!1}):typeof global<`u`&&Object.defineProperty(global,Ga,{value:qa,configurable:!0,writable:!1,enumerable:!1});function Qa(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function $a(e){let t=fa[Qa(e)];return e.name===t?e.constructor.name===t?{}:{name:e.constructor.name}:{name:e.name}}function eo(e,t){let n=$a(e),r=Object.getOwnPropertyNames(e);for(let i=0,a=r.length,o;i<a;i++)o=r[i],o!==`name`&&o!==`message`&&(o===`stack`?t&4&&(n||={},n[o]=e[o]):(n||={},n[o]=e[o]));return n}function to(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:+!Object.isExtensible(e)}function no(e){switch(e){case 1/0:return ba;case-1/0:return xa}return e===e?Object.is(e,-0)?ya:F(0,void 0,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0):Sa}function ro(e){return F(1,void 0,Ea(e),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function io(e){return F(3,void 0,``+e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function ao(e){return F(4,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function oo(e,t){let n=t.valueOf();return F(5,e,n===n?t.toISOString():``,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function so(e,t,n){return F(36,e,n.toString(),t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function co(e,t){return F(6,e,void 0,Ea(t.source),t.flags,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function lo(e,t){return F(17,e,N[t],void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function uo(e,t){return F(18,e,Ea(Xa(t)),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function fo(e,t,n){return F(25,e,n,Ea(t),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function po(e,t,n){return F(9,e,void 0,void 0,void 0,void 0,void 0,n,void 0,void 0,to(t),void 0)}function mo(e,t){return F(21,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}var ho=1e6;function go(e,t,n){if(t.length>ho)throw new Ia(t);return F(15,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.length)}function _o(e,t,n){if(t.length>ho)throw new Ia(t);return F(16,e,void 0,t.constructor.name,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.length)}function vo(e,t,n){if(t.byteLength>ho)throw new Ia(t);return F(20,e,void 0,void 0,void 0,void 0,void 0,void 0,n,t.byteOffset,void 0,t.byteLength)}function yo(e,t,n){return F(13,e,Qa(t),void 0,Ea(t.message),n,void 0,void 0,void 0,void 0,void 0,void 0)}function bo(e,t,n){return F(14,e,Qa(t),void 0,Ea(t.message),n,void 0,void 0,void 0,void 0,void 0,void 0)}function xo(e,t){return F(7,e,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,void 0)}function So(e,t){return F(28,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function Co(e,t){return F(30,void 0,void 0,void 0,void 0,void 0,void 0,[e,t],void 0,void 0,void 0,void 0)}function wo(e,t,n){return F(31,e,void 0,void 0,void 0,void 0,void 0,n,t,void 0,void 0,void 0)}function To(e,t){return F(32,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function Eo(e,t){return F(33,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function Do(e,t){return F(34,e,void 0,void 0,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0)}function Oo(e,t,n,r){return F(35,e,n,void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,r)}var ko=class{constructor(e,t){this.value=e,this.replacement=t}},Ao=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e},jo=()=>{let e=[],t=[],n=!0,r=!1,i=0,a={flush(e,n,r){for(r=0;r<i;r++){let i=t[r];i&&i[n](e)}},up(t,i,a,o){for(i=0,a=e.length;i<a;i++)o=e[i],!n&&i===a-1?t[r?`return`:`throw`](o):t.next(o)},on(e,r=0){let o=n;if(n){for(r=0;r<i&&t[r];r++);r===i&&i++,t[r]=e}return a.up(e),()=>{if(n&&o){for(o=!1,t[r]=void 0;i>0&&!t[i-1];)i--;t.length=i}}}};return{__SEROVAL_STREAM__:!0,on(e){return a.on(e)},next(t){n&&(e.push(t),a.flush(t,`next`))},throw(i){n&&(e.push(i),a.flush(i,`throw`),n=!1,r=!1,t.length=0)},return(i){n&&(e.push(i),a.flush(i,`return`),n=!1,r=!0,t.length=0)}}},Mo=e=>t=>()=>{let n=0,r={[e](){return r},next(){if(n>t.d)return{done:!0,value:void 0};let e=n++,r=t.v[e];if(e===t.t)throw r;return{done:e===t.d,value:r}}};return r},No=(e,t)=>n=>()=>{let r=0,i=-1,a=!1,o=[],s=[],c={finalize(e=0,t=s.length){for(;e<t;e++)s[e].s({done:!0,value:void 0})}};n.on({next(e){let t=s.shift();t&&t.s({done:!1,value:e}),o.push(e)},throw(e){let t=s.shift();t&&t.f(e),c.finalize(),i=o.length,a=!0,o.push(e)},return(e){let t=s.shift();t&&t.s({done:!0,value:e}),c.finalize(),i=o.length,o.push(e)}});let l={[e](){return l},next(){if(i===-1){let e=r++;if(e>=o.length){let e=t();return s.push(e),e.p}return{done:!1,value:o[e]}}if(r>i)return{done:!0,value:void 0};let e=r++,n=o[e];if(e!==i)return{done:!1,value:n};if(a)throw n;return{done:!0,value:n}}};return l},Po=e=>{let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer};function Fo(e){return`__SEROVAL_SEQUENCE__`in e}function Io(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function Lo(e){let t=[],n=-1,r=-1,i=e[ta]();for(;;)try{let e=i.next();if(t.push(e.value),e.done){r=t.length-1;break}}catch(e){n=t.length,t.push(e)}return Io(t,n,r)}var Ro=Mo(ta);function zo(e){return Ro(e)}var Bo={},Vo={},Ho={0:{},1:{},2:{},3:{},4:{},5:{}};function Uo(e){return`__SEROVAL_STREAM__`in e}function Wo(){return jo()}function Go(e,t){let n=Wo(),r=e[Qi](),i=!1,a=!1;t?.push(()=>{a||i||(i=!0,Promise.resolve().then(()=>r.return?.call(r)).catch(()=>{}))});async function o(){try{for(;!i;){let e=await r.next();if(i)return;if(e.done){a=!0,n.return(e.value);break}n.next(e.value)}}catch(e){a=!0,i||n.throw(e)}}return o().catch(()=>{}),n}var Ko=No(Qi,Ao);function L(e){return Ko(e)}async function R(e){try{return[1,await e]}catch(e){return[0,e]}}function qo(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:127^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3,compactArrayBufferViews:t.compactArrayBufferViews??!1}}function Jo(e,t){e.marked.add(t)}function Yo(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function Xo(e,t){let n=e.refs.get(t);return n==null?{type:0,value:Yo(e,t)}:(Jo(e,n),{type:1,value:ao(n)})}function Zo(e,t){let n=Xo(e,t);return n.type===1?n:Ja(t)?{type:2,value:uo(n.value,t)}:n}function Qo(e,t){let n=Zo(e,t);if(n.type!==0)return n.value;if(t in N)return lo(n.value,t);throw new Ia(t)}function $o(e,t){let n=Xo(e,Ho[t]);return n.type===1?n.value:F(26,n.value,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)}function es(e){let t=Xo(e,Bo);return t.type===1?t.value:F(27,t.value,void 0,void 0,void 0,void 0,void 0,void 0,Qo(e,ta),void 0,void 0,void 0)}function ts(e){let t=Xo(e,Vo);return t.type===1?t.value:F(29,t.value,void 0,void 0,void 0,void 0,void 0,[$o(e,1),Qo(e,Qi)],void 0,void 0,void 0,void 0)}function ns(e,t,n,r){return F(n?11:10,e,void 0,void 0,void 0,r,void 0,void 0,void 0,void 0,to(t),void 0)}function rs(e,t,n,r){return F(8,t,void 0,void 0,void 0,void 0,{k:n,v:r},void 0,$o(e,0),void 0,void 0,void 0)}function is(e,t){if(!e.compactArrayBufferViews)return t;let n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength).slice().buffer,r=t.constructor;return new r(n)}function as(e){if(typeof Buffer<`u`)return Buffer.from(e).toString(`base64`);let t=new Uint8Array(e);if(typeof t.toBase64==`function`)return t.toBase64();let n=``;for(let e=0,r=t.length;e<r;e++)n+=String.fromCharCode(t[e]);return btoa(n)}function os(e,t,n){return F(19,t,as(n),void 0,void 0,void 0,void 0,void 0,$o(e,5),void 0,void 0,void 0)}function ss(e,t){return{base:qo(e,t),child:void 0}}var cs=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return Os(this._p,this.depth,e)}};async function ls(e,t,n){let r=[];for(let i=0,a=n.length;i<a;i++)i in n?r[i]=await Os(e,t,n[i]):r[i]=0;return r}async function us(e,t,n,r){return po(n,r,await ls(e,t,r))}async function ds(e,t,n){let r=Object.entries(n),i=[],a=[];for(let n=0,o=r.length;n<o;n++)i.push(Ea(r[n][0])),a.push(await Os(e,t,r[n][1]));return ta in n&&(i.push(Qo(e.base,ta)),a.push(So(es(e.base),await Os(e,t,Lo(n))))),Qi in n&&(i.push(Qo(e.base,Qi)),a.push(Co(ts(e.base),await Os(e,t,Go(n))))),la in n&&(i.push(Qo(e.base,la)),a.push(ro(n[la]))),ea in n&&(i.push(Qo(e.base,ea)),a.push(n[ea]?ha:ga)),{k:i,v:a}}async function fs(e,t,n,r,i){return ns(n,r,i,await ds(e,t,r))}async function ps(e,t,n,r){return mo(n,await Os(e,t,r.valueOf()))}async function ms(e,t,n,r){return r=is(e.base,r),go(n,r,await Os(e,t,r.buffer))}async function hs(e,t,n,r){return r=is(e.base,r),_o(n,r,await Os(e,t,r.buffer))}async function gs(e,t,n,r){return r=is(e.base,r),vo(n,r,await Os(e,t,r.buffer))}async function _s(e,t,n,r){let i=eo(r,e.base.features);return yo(n,r,i?await ds(e,t,i):void 0)}async function vs(e,t,n,r){let i=eo(r,e.base.features);return bo(n,r,i?await ds(e,t,i):void 0)}async function ys(e,t,n,r){let i=[],a=[];for(let[n,o]of r.entries())i.push(await Os(e,t,n)),a.push(await Os(e,t,o));return rs(e.base,n,i,a)}async function bs(e,t,n,r){let i=[];for(let n of r.keys())i.push(await Os(e,t,n));return xo(n,i)}async function xs(e,t,n,r){let i=e.base.plugins;if(i)for(let a=0,o=i.length;a<o;a++){let o=i[a];if(o.parse.async&&o.test(r))return fo(n,o.tag,await o.parse.async(r,new cs(e,t),{id:n}))}}async function Ss(e,t,n,r){let[i,a]=await R(r);return F(12,n,i,void 0,void 0,void 0,void 0,void 0,await Os(e,t,a),void 0,void 0,void 0)}function Cs(e,t,n,r,i){let a=[],o=n.on({next:n=>{Jo(this.base,t),Os(this,e,n).then(e=>{a.push(To(t,e))},e=>{i(e),o()})},throw:n=>{Jo(this.base,t),Os(this,e,n).then(e=>{a.push(Eo(t,e)),r(a),o()},e=>{i(e),o()})},return:n=>{Jo(this.base,t),Os(this,e,n).then(e=>{a.push(Do(t,e)),r(a),o()},e=>{i(e),o()})}})}async function ws(e,t,n,r){return wo(n,$o(e.base,4),await new Promise(Cs.bind(e,t,n,r)))}async function Ts(e,t,n,r){let i=[];for(let n=0,a=r.v.length;n<a;n++)i[n]=await Os(e,t,r.v[n]);return Oo(n,i,r.t,r.d)}async function Es(e,t,n,r){if(Array.isArray(r))return us(e,t,n,r);if(Uo(r))return ws(e,t,n,r);if(Fo(r))return Ts(e,t,n,r);let i=r.constructor;if(i!==void 0&&typeof i!=`function`){let e=Object.getPrototypeOf(r);i=e===null?void 0:e.constructor}if(i===ko)return Os(e,t,r.replacement);let a=await xs(e,t,n,r);if(a)return a;switch(i){case Object:return fs(e,t,n,r,!1);case void 0:return fs(e,t,n,r,!0);case Date:return oo(n,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return _s(e,t,n,r);case Number:case Boolean:case String:case BigInt:return ps(e,t,n,r);case ArrayBuffer:return os(e.base,n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return ms(e,t,n,r);case DataView:return gs(e,t,n,r);case Map:return ys(e,t,n,r);case Set:return bs(e,t,n,r)}if(i===Promise||r instanceof Promise)return Ss(e,t,n,r);let o=e.base.features;if(o&32&&i===RegExp)return co(n,r);if(o&16)switch(i){case BigInt64Array:case BigUint64Array:return hs(e,t,n,r)}if(o&1&&typeof AggregateError<`u`&&(i===AggregateError||r instanceof AggregateError))return vs(e,t,n,r);if(o&64&&typeof Temporal<`u`)switch(i){case Temporal.Instant:return so(n,0,r);case Temporal.Duration:return so(n,1,r);case Temporal.PlainDate:return so(n,2,r);case Temporal.PlainDateTime:return so(n,3,r);case Temporal.PlainMonthDay:return so(n,4,r);case Temporal.PlainTime:return so(n,5,r);case Temporal.PlainYearMonth:return so(n,6,r);case Temporal.ZonedDateTime:return so(n,7,r)}if(r instanceof Error)return _s(e,t,n,r);if(ta in r||Qi in r)return fs(e,t,n,r,!!i);throw new Ia(r)}async function Ds(e,t,n){let r=Zo(e.base,n);if(r.type!==0)return r.value;let i=await xs(e,t,r.value,n);if(i)return i;throw new Ia(n)}async function Os(e,t,n){if(t>=e.base.depthLimit)throw new Wa(e.base.depthLimit);switch(typeof n){case`boolean`:return n?ha:ga;case`undefined`:return _a;case`string`:return ro(n);case`number`:return no(n);case`bigint`:return io(n);case`object`:if(n){let r=Zo(e.base,n);return r.type===0?await Es(e,t+1,r.value,n):r.value}return va;case`symbol`:return Qo(e.base,n);case`function`:return Ds(e,t,n);default:throw new Ia(n)}}async function ks(e,t){try{return await Os(e,0,t)}catch(e){throw e instanceof Pa?e:new Pa(e)}}function As(e){return e}function js(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&js(e,r.extends))}}function Ms(e){if(e){let t=new Set;return js(t,e),[...t]}}function Ns(e){switch(e){case`Int8Array`:return Int8Array;case`Int16Array`:return Int16Array;case`Int32Array`:return Int32Array;case`Uint8Array`:return Uint8Array;case`Uint16Array`:return Uint16Array;case`Uint32Array`:return Uint32Array;case`Uint8ClampedArray`:return Uint8ClampedArray;case`Float32Array`:return Float32Array;case`Float64Array`:return Float64Array;case`BigInt64Array`:return BigInt64Array;case`BigUint64Array`:return BigUint64Array;default:throw new Ha(e)}}function Ps(e){switch(e){case`constructor`:case`__proto__`:case`prototype`:case`__defineGetter__`:case`__defineSetter__`:case`__lookupGetter__`:case`__lookupSetter__`:return!1;default:return!0}}function Fs(e){switch(e){case Qi:case ea:case la:case ta:return!0;default:return!1}}var Is=1e6,Ls=512,Rs=1e4,zs=2e4;function Bs(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}var Vs=1e3;function Hs(e,t){let n=t.maxBase64Length??Is;if(!Number.isSafeInteger(n)||n<0)throw RangeError(`maxBase64Length must be a non-negative safe integer`);let r=t.refs||new Map;return`types`in r||Object.assign(r,{types:new Map}),{mode:e,plugins:t.plugins,refs:r,features:t.features??127^(t.disabledFeatures||0),depthLimit:t.depthLimit||Vs,maxBase64Length:n}}function Us(e){return{mode:2,base:Hs(2,e),child:void 0}}var Ws=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return z(this._p,this.depth,e)}};function Gs(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new Ua({t:4,i:t});if(e.refs.has(t))throw Error(`Conflicted ref id: `+t)}function Ks(e){return!!e&&typeof e==`object`&&`then`in e&&typeof e.then==`function`}function qs(e,t,n){return Gs(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function Js(e,t,n){return Gs(e.base,t),e.base.refs.set(t,n),n}function Ys(e,t,n){return e.mode===1?qs(e,t,n):Js(e,t,n)}function Xs(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new Ua(e)}function Zs(e,t){return Ys(e,t.i,Za(Oa(t.s)))}function Qs(e,t,n){let r=n.a,i=r.length,a=Ys(e,n.i,Array(i));for(let n=0,o;n<i;n++)o=r[n],o&&(a[n]=z(e,t,o));return Bs(a,n.o),a}function $s(e,t,n){Ps(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function ec(e,t,n,r,i){if(typeof r==`string`)$s(n,Oa(r),z(e,t,i));else{let a=z(e,t,r);switch(typeof a){case`string`:$s(n,a,z(e,t,i));break;case`symbol`:Fs(a)&&(n[a]=z(e,t,i));break;default:throw new Ua(r)}}}function tc(e,t,n){e.base.refs.types.set(t,n)}function nc(e,t,n,r){if(e.base.refs.types.get(n)!==r)throw new Ua(t)}function rc(e,t,n,r){let i=n.k;if(i.length>0)for(let a=0,o=n.v,s=i.length;a<s;a++)ec(e,t,r,i[a],o[a]);return r}function ic(e,t,n){let r=Ys(e,n.i,n.t===10?{}:Object.create(null));return rc(e,t,n.p,r),Bs(r,n.o),r}function ac(e,t){return Ys(e,t.i,new Date(t.s))}function oc(e,t){if(!(e.base.features&64))throw new La(t);let n;switch(t.c){case 0:n=Temporal.Instant.from(t.s);break;case 1:n=Temporal.Duration.from(t.s);break;case 2:n=Temporal.PlainDate.from(t.s);break;case 3:n=Temporal.PlainDateTime.from(t.s);break;case 4:n=Temporal.PlainMonthDay.from(t.s);break;case 5:n=Temporal.PlainTime.from(t.s);break;case 6:n=Temporal.PlainYearMonth.from(t.s);break;case 7:n=Temporal.ZonedDateTime.from(t.s);break;default:throw new Ua(t)}return Ys(e,t.i,n)}function sc(e,t){if(e.base.features&32){let n=Oa(t.c);if(n.length>zs)throw new Ua(t);return Ys(e,t.i,new RegExp(n,t.m))}throw new La(t)}function cc(e,t,n){let r=Ys(e,n.i,new Set);for(let i=0,a=n.a,o=a.length;i<o;i++)r.add(z(e,t,a[i]));return r}function lc(e,t,n){let r=Ys(e,n.i,new Map);for(let i=0,a=n.e.k,o=n.e.v,s=a.length;i<s;i++)r.set(z(e,t,a[i]),z(e,t,o[i]));return r}function uc(e,t){if(typeof t.s!=`string`)throw new Ua(t);if(t.s.length>e.base.maxBase64Length)throw RangeError(`ArrayBuffer exceeds maxBase64Length (`+e.base.maxBase64Length+`)`);let n=Oa(t.s),r;if(n.length<Ls||typeof Buffer>`u`)r=Po(n);else{let e=atob(n);r=new ArrayBuffer(e.length),Buffer.from(r).write(e,`latin1`)}return Ys(e,t.i,r)}function dc(e,t,n){let r=Ns(n.c),i=z(e,t,n.f);if(!(i instanceof ArrayBuffer))throw new Ua(n);let a=n.b??0;if(a<0||a>i.byteLength)throw new Ua(n);return Ys(e,n.i,new r(i,a,n.l))}function fc(e,t,n){let r=z(e,t,n.f);if(!(r instanceof ArrayBuffer))throw new Ua(n);let i=n.b??0;if(i<0||i>r.byteLength)throw new Ua(n);return Ys(e,n.i,new DataView(r,i,n.l))}function pc(e,t,n,r){if(n.p){let i=rc(e,t,n.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(i))}return r}function mc(e,t,n){return pc(e,t,n,Ys(e,n.i,AggregateError([],Oa(n.m))))}function hc(e,t,n){let r=Xs(n,pa,n.s);return pc(e,t,n,Ys(e,n.i,new r(Oa(n.m))))}function gc(e,t,n){let r=Ao(),i=Ys(e,n.i,r.p),a=z(e,t,n.f);if(Ks(a))throw new Ua(n.f);return n.s?r.s(a):r.f(a),i}function _c(e,t,n){return Ys(e,n.i,Object(z(e,t,n.f)))}function vc(e,t,n){let r=e.base.plugins;if(r){let i=Oa(n.c);for(let a=0,o=r.length;a<o;a++){let o=r[a];if(o.tag===i)return Ys(e,n.i,o.deserialize(n.s,new Ws(e,t),{id:n.i}))}}throw new Ra(n.c)}function yc(e,t){let n=Ys(e,t.i,Ys(e,t.s,Ao()).p);return tc(e,t.s,22),n}function bc(e,t,n){let r=e.base.refs.get(n.i);if(r){nc(e,n,n.i,22);let i=z(e,t,n.a[1]);if(Ks(i))throw new Ua(n.a[1]);n.t===23?r.s(i):r.f(i);return}throw new za(`Promise`)}function xc(e,t,n){z(e,t,n.a[0]);let r=z(e,t,n.a[1]);if(nc(e,n,n.a[1].i,35),!r)throw new Ua(n.a[1]);return zo(r)}function Sc(e,t,n){z(e,t,n.a[0]);let r=z(e,t,n.a[1]);if(nc(e,n,n.a[1].i,31),!r)throw new Ua(n.a[1]);return L(r)}function Cc(e,t,n){let r=Ys(e,n.i,Wo());tc(e,n.i,31);let i=n.a,a=i.length;if(a)for(let n=0;n<a;n++)z(e,t,i[n]);return r}function wc(e,t,n){let r=e.base.refs.get(n.i);if(r){nc(e,n,n.i,31),r.next(z(e,t,n.f));return}throw new za(`Stream`)}function Tc(e,t,n){let r=e.base.refs.get(n.i);if(r){nc(e,n,n.i,31),r.throw(z(e,t,n.f));return}throw new za(`Stream`)}function Ec(e,t,n){let r=e.base.refs.get(n.i);if(r){nc(e,n,n.i,31),r.return(z(e,t,n.f));return}throw new za(`Stream`)}function Dc(e,t,n){z(e,t,n.f)}function Oc(e,t,n){z(e,t,n.a[1])}function kc(e,t,n){let r=Ys(e,n.i,Io([],n.s,n.l));tc(e,n.i,35);for(let i=0,a=n.a.length;i<a;i++)r.v[i]=z(e,t,n.a[i]);return r}function z(e,t,n){if(t>e.base.depthLimit)throw new Wa(e.base.depthLimit);switch(t+=1,n.t){case 2:return Xs(n,da,n.s);case 0:return Number(n.s);case 1:return Oa(String(n.s));case 3:if(String(n.s).length>Rs)throw new Ua(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return Zs(e,n);case 9:return Qs(e,t,n);case 10:case 11:return ic(e,t,n);case 5:return ac(e,n);case 6:return sc(e,n);case 7:return cc(e,t,n);case 8:return lc(e,t,n);case 19:return uc(e,n);case 16:case 15:return dc(e,t,n);case 20:return fc(e,t,n);case 14:return mc(e,t,n);case 13:return hc(e,t,n);case 12:return gc(e,t,n);case 17:return Xs(n,P,n.s);case 21:return _c(e,t,n);case 25:return vc(e,t,n);case 22:return yc(e,n);case 23:case 24:return bc(e,t,n);case 28:return xc(e,t,n);case 30:return Sc(e,t,n);case 31:return Cc(e,t,n);case 32:return wc(e,t,n);case 33:return Tc(e,t,n);case 34:return Ec(e,t,n);case 27:return Dc(e,t,n);case 29:return Oc(e,t,n);case 35:return kc(e,t,n);case 36:return oc(e,n);default:throw new La(n)}}function Ac(e,t){try{return z(e,0,t)}catch(e){throw new Fa(e)}}function jc(e,t){let n=Ms(t.plugins);return Ac(Us({maxBase64Length:t.maxBase64Length,plugins:n,refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function Mc(e,t={}){let n=Ms(t.plugins),r=ss(1,{compactArrayBufferViews:t.compactArrayBufferViews,plugins:n,disabledFeatures:t.disabledFeatures});return{t:await ks(r,e),f:r.base.features,m:Array.from(r.base.marked)}}function Nc(e){return As({tag:`$TSR/t/`+e.key,test:e.test,parse:{sync(t,n){return{v:n.parse(e.toSerializable(t))}},async async(t,n){return{v:await n.parse(e.toSerializable(t))}},stream(t,n){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n){return e.fromSerializable(n.deserialize(t.v))}})}var Pc=As({tag:`$TSR/Error`,test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return`new Error(`+t.serialize(e.message)+`)`},deserialize(e,t){return Error(t.deserialize(e.message))}}),Fc=class{constructor(e,t){this.stream=e,this.hint=t?.hint??`binary`}};function Ic(e){let t=[];for(let n=0;n<e.length;n+=32768)t.push(String.fromCharCode.apply(null,e.subarray(n,n+32768)));return btoa(t.join(``))}var Lc=new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0});function Rc(e){try{return`t`+Lc.decode(e)}catch{return`b`+Ic(e)}}function zc(e,t,n){n?.throwIfAborted();let r=Wo(),i=e.getReader(),a=!0,o=()=>{a=!1,n?.removeEventListener(`abort`,c),i.releaseLock()},s=e=>a?(i.cancel(e).catch(()=>{}),o(),!0):!1,c=()=>{s(n.reason)&&r.throw(n.reason)};return n?.addEventListener(`abort`,c),(async()=>{try{for(;a;){let{done:e,value:n}=await i.read();if(!a)return;if(e){o(),r.return(void 0);return}r.next(t(n))}}catch(e){s(e)&&r.throw(e)}})(),[r,s]}function Bc(e){return As({tag:`tss/RawStream`,test:e=>e instanceof Fc,parse:{async:async(t,n)=>{let r=await n.parse(t.hint===`text`),[i]=zc(t.stream,t.hint===`text`?Rc:Ic,e);return{text:r,stream:await n.parse(i)}}},serialize:void 0,deserialize:void 0})}var Vc=Bc(),Hc={},Uc=e=>new ReadableStream({start(t){e.on({next(e){try{t.enqueue(e)}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),Wc=As({tag:`seroval-plugins/web/ReadableStreamFactory`,test(e){return e===Hc},parse:{sync(){return Hc},async async(){return await Promise.resolve(Hc)},stream(){return Hc}},serialize(){return Uc.toString()},deserialize(){return Hc}});async function Gc(e,t){try{for(;;){let n=await t.read();if(n.done){e.return(n.value),t.releaseLock();break}e.next(n.value)}}catch(n){t.releaseLock(),e.throw(n)}}function Kc(e){e.cancel().catch(()=>{}),e.releaseLock()}function qc(e){let t=Wo(),n=e.getReader(),r=Kc.bind(null,n);return Gc(t,n).catch(r),[t,r]}var Jc=As({tag:`seroval/plugins/web/ReadableStream`,extends:[Wc],test(e){return typeof ReadableStream>`u`?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(Hc),stream:t.parse(Wo())}},async async(e,t){return{factory:await t.parse(Hc),stream:await t.parse(qc(e)[0])}},stream(e,t){let[n,r]=qc(e);return t.addCleanup(r),{factory:t.parse(Hc),stream:t.parse(n)}}},serialize(e,t){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t){let n=t.deserialize(e.stream);if(!n||typeof n!=`object`||!Uo(n))throw Error(`Expected a stream source.`);return Uc(n)}});function Yc(e){return[Pc,e?Bc(e):Vc,Jc]}[...Yc()];function Xc(e){return As({tag:`tss/RawStream`,test:()=>!1,parse:{},serialize:void 0,deserialize(t,n){return e(n.deserialize(t.streamId))}})}function Zc(e){return[...(Yt()?.serializationAdapters)?.map(Nc)??[],...e]}function Qc(e){return Zc(Yc(e))}var $c=new TextDecoder,el=new Uint8Array,tl=new ByteLengthQueuingStrategy({highWaterMark:0});function nl(e){let t=e.getReader(),n=new Map,r=0,i,a,o=()=>{i?.(),i=void 0},s=(e,t)=>{let n=e[1];e[1]=!1,n&&(t===1?n.close():n.error(t[0]))},c=new ReadableStream({start(e){a=e},pull:o,cancel(e){let i=[e===void 0?Error(`Framed response cancelled`):e];r=i,o(),t.cancel(e).catch(()=>{});for(let e of n.values())s(e,i)}});function l(e){let t=n.get(e);if(t)return t;if(n.size>=1024)throw Error(`Too many raw streams`);let i,a=[new ReadableStream({start(e){i=e},cancel(){a[1]!==!1&&(a[1]=null)}},tl),i];return n.set(e,a),r!==0&&s(a,r),a}function u(e){if(e===0||e>>>0!==e)throw RangeError(`Invalid raw stream ID`);return l(e)[0]}return(async()=>{let e=el,o=0;async function c(){for(;o===e.byteLength;){e=el,o=0;let n=await t.read();if(r!==0||n.done)return!1;e=n.value}return!0}async function u(t,n){if(t===0)return el;if(!await c()){if(n)return;throw Error(`Incomplete frame`)}if(e.byteLength-o>=t){let n=e.subarray(o,o+t);return o+=t,o===e.byteLength&&(e=el,o=0),n}let r=new Uint8Array(t),i=0;for(;i<t;){if(!await c())throw Error(`Incomplete frame`);let n=Math.min(t-i,e.byteLength-o);r.set(e.subarray(o,o+n),i),o+=n,i+=n}return o===e.byteLength&&(e=el,o=0),r}try{for(;r===0;){let e=await u(9,!0);if(r!==0)return;if(!e){for(let e of n.values())if(e[1])throw Error(`Incomplete raw stream`);r=1,a.close();return}let t=e[0],o=(e[1]<<24|e[2]<<16|e[3]<<8|e[4])>>>0,c=(e[5]<<24|e[6]<<16|e[7]<<8|e[8])>>>0;if(e=el,t>3||t===0!=(o===0)||c>16777216||t===2&&c!==0)throw Error(`Invalid frame`);let d=t===0?void 0:l(o);if(d?.[1]===!1)throw Error(`Raw stream already ended`);let f=await u(c);if(r!==0)return;if(!d){let e=$c.decode(f);for(f=el,a.enqueue(e);r===0&&a.desiredSize<=0;)await new Promise(e=>{i=e});continue}if(t===1){let e=d[1];if(e){if(-e.desiredSize>134217728){e.error(Error(`Raw stream ${o} has too many unread bytes`)),d[1]=null,f=el;continue}let t=f.byteLength*4<f.buffer.byteLength?f.slice():f;f=el,e.enqueue(t)}}else s(d,t===2?1:[Error($c.decode(f))])}}catch(e){if(r===0){let i=[e];r=i,t.cancel(e).catch(()=>{}),a.error(e);for(let e of n.values())s(e,i)}}finally{e=el,t.releaseLock()}})(),[c,u]}var rl=Symbol.for(`TSR_DEFERRED_PROMISE`);function il(e,t){let n=e;return n[rl]?n:(n[rl]={status:`pending`},n.then(e=>{n[rl].status=`success`,n[rl].data=e}).catch(e=>{n[rl].status=`error`,n[rl].error={data:(t?.serializeError??Ur)(e),__isServerError:!0}}),n)}var al=`Error preloading route! ☝️`;function ol(e,t){if(e)return typeof e==`string`?e:e[t]}function sl(e){return e?.scriptFormat??`module`}function cl(e,t,n){let r=ll(t),i=ol(n,`script`)??r.crossOrigin;return{...sl(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function ll(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function ul(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 dl(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function fl(e,t,n,r){let i=ui(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 pl([e,t],n){return n?[...n.before,...e,...t,n.boundary]:[...e,...t]}var ml=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=wr:this.parentRoute||Fn();let r=n?wr:t?.path;r&&r!==`/`&&(r=Tn(r));let i=t?.id||r,a=n?wr:wn((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:wn(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=En(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=>Zt({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.`)}},hl=class extends ml{constructor(e){super(e)}};function gl(e){return e}var _l;function vl(e,t,n){try{return jc(e,t)}catch(e){throw bl(n),e}}async function yl(e){e.length>0&&(await Promise.allSettled(e),e.length=0)}function bl(e){for(let t of e)t.catch(()=>{});e.length=0}var xl=Object.prototype.hasOwnProperty;function B(e){for(let t in e)if(xl.call(e,t))return!0;return!1}async function Sl(e,t,n){_l||=Qc();let r=t[0],i=r.fetch??n,a=r.data instanceof FormData,o=new Headers(r.headers);if(o.set(`x-tsr-serverFn`,`true`),a||o.set(`accept`,`${Jt}, application/x-ndjson, application/json`),r.method===`GET`){if(a)throw Error(`FormData is not supported with GET requests`);let t=await Cl(r);if(t!==void 0){let n=gr({payload:t});e.includes(`?`)?e+=`&${n}`:e+=`?${n}`}}let s;return r.method===`POST`&&(s=await Tl(r),typeof s==`string`&&o.set(`content-type`,`application/json`)),El(()=>i(e,{method:r.method,headers:o,signal:r.signal,body:s}))}async function Cl(e){let t;return e.data!==void 0&&(t={data:e.data}),e.context&&B(e.context)&&((t??={}).context=e.context),t?wl(t,e.signal):void 0}async function wl(e,t){t?.throwIfAborted();let n;try{n=await Mc(e,{plugins:t?Qc(t):_l})}finally{t?.throwIfAborted()}return JSON.stringify(n)}async function Tl(e){if(e.data instanceof FormData){let t;return e.context&&B(e.context)&&(t=await wl(e.context,e.signal)),t!==void 0&&e.data.set(Kt,t),e.data}return Cl(e)}async function El(e){let t;try{t=await e()}catch(e){if(e instanceof Response)t=e;else throw e}if(t.headers.get(`x-tss-raw`)===`true`)return t;let n=t.headers.get(`content-type`);if(n||Fn(),t.headers.get(`x-tss-serialized`)){let e;if(n.includes(`application/x-tss-framed`)){let r=/;\s*v=(\d+)/.exec(n)?.[1];if(r&&+r!=1)throw Error(`Unsupported framed protocol version ${r}`);if(!t.body)throw Error(`No response body for framed response`);let[i,a]=nl(t.body);e=await Dl(i,[Xc(a),..._l])}else if(n.includes(`application/json`)){let n=await t.json(),r=[];e=vl(n,{plugins:_l},r),await yl(r)}if(e||Fn(),e instanceof Error)throw e;return e}if(n.includes(`application/json`)){let e=await t.json(),n=$t(e);if(n)throw n;if(Xt(e))throw e;return e}if(!t.ok)throw Error(await t.text());return t}async function Dl(e,t){let n=e.getReader(),r={refs:new Map,plugins:t},i=e=>{n.cancel(e).catch(()=>{})},a,o=[];try{let e=await n.read();if(e.done)throw Error(`Stream ended before first object`);a=vl(JSON.parse(e.value),r,o)}catch(e){throw i(e),n.releaseLock(),e}return(async()=>{let e=[];try{for(;;){let t=await n.read();if(t.done)return;vl(JSON.parse(t.value),r,e),bl(e)}}catch(e){i(e),console.error(`Stream processing error:`,e)}finally{n.releaseLock()}})(),await yl(o),a}function Ol(e){let t=`/_serverFn/`+e;return Object.assign((...e)=>{let n=Yt()?.serverFns?.fetch;return Sl(t,e,n??fetch)},{url:t,serverFnMeta:{id:e},[qt]:!0})}var kl=gl({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(qt in e)?!1:!!e[qt],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>Ol(e)}),V=e(n(),1),Al=V.use,jl=V.useLayoutEffect,H=i();function Ml({promise:e}){if(Al)return Al(e);let t=il(e);if(t[rl].status===`pending`)throw t;if(t[rl].status===`error`)throw t[rl].error;return t[rl].data}function Nl(e){let t=(0,H.jsx)(Pl,{...e});return e.fallback?(0,H.jsx)(V.Suspense,{fallback:e.fallback,children:t}):t}function Pl(e){let t=Ml(e);return e.children(t)}var Fl=class extends V.Component{constructor(...e){super(...e),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:0}:{resetKey:n}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;return e?V.createElement(this.props.errorComponent??Il,{error:e[0],reset:this.reset}):this.props.children}};function Il({error:e}){let[t,n]=V.useState(!1);return(0,H.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,H.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,H.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,H.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,H.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,H.jsx)(`div`,{children:(0,H.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e?.message?(0,H.jsx)(`code`,{children:e.message}):null})}):null]})}var Ll=()=>!0,Rl=()=>!1;function zl({children:e,fallback:t=null}){return(0,H.jsx)(V.Fragment,{children:Bl()?e:t})}function Bl(e=!0){return V.useSyncExternalStore(Vl,Ll,e?Rl:Ll)}function Vl(){return()=>{}}var Hl=V.createContext(void 0),Ul=V.createContext(void 0);function Wl({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;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}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(!0)}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 Gl(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 Kl=[],ql=0,{link:Jl,unlink:Yl,propagate:Xl,checkDirty:Zl,shallowPropagate:Ql}=Wl({update(e){return e._update()},notify(e){Kl[eu++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,iu(e))}}),$l=0,eu=0,tu,nu=0;function ru(e){try{++nu,e()}finally{--nu||au()}}function iu(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Yl(n,e)}function au(){if(!(nu>0)){for(;$l<eu;){let e=Kl[$l];Kl[$l++]=void 0,e.notify()}$l=0,eu=0}}function ou(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 tu!==void 0&&Jl(i,tu,ql),i._snapshot},subscribe(e){let t=Gl(e),n={current:!1},r=U(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=tu,o=t?.compare??Object.is;if(n)tu=i,++ql,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{tu=a,n&&(i.flags&=-5),iu(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&Zl(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Ql(e)}}else e&32&&(i.flags=e&-33);return tu!==void 0&&Jl(i,tu,ql),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Xl(e),Ql(e),au())}},i}function U(e){let t=()=>{let t=tu;tu=n,++ql,n.depsTail=void 0,n.flags=6;try{return e()}finally{tu=t,n.flags&=-5,iu(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&&Zl(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,iu(this)}};return t(),n}var su=e(w(),1);function cu(e,t){return e===t}function lu(e,t=e=>e,n){let r=n?.compare??cu,i=(0,V.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,V.useCallback)(()=>e.get(),[e]);return(0,su.useSyncExternalStoreWithSelector)(i,a,a,t,r)}var uu={};function du(e,t){let n=V.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=sn(n.current,i):i}}function fu(e){let t=l(),n=V.useContext(e.from?Ul:Hl),r=e.from??n,i=t.stores.getMatchStore(r),a=du(e,t),o=lu(i,e=>e?a(e):uu);if(o!==uu)return o;(e.shouldThrow??!0)&&Fn()}function pu(e){return fu({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function mu(e){let{select:t,...n}=e;return fu({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function hu(e){return fu({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 gu(e){return fu({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function _u(e){return fu({...e,select:t=>e.select?e.select(t.context):t.context})}function vu(...e){let t=V.useRef(e),n=t.current;return e.forEach((e,t)=>{ln(n[t],e,!1,!0)||(n[t]=e)}),t.current}function yu(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(al)})}var bu={compare:(e,t)=>e[0]===t[0]&&e[1]===t[1]};function xu(e,t){let n=typeof e==`string`&&hn(e);if(n)return t.has(n)?e:null}function W(e,t,n,r,i){let a=On(e.pathname,r),o=On(t.pathname,r);return(n?.exact?a!==o:!(a.startsWith(o)&&(a.length===o.length||a[o.length]===`/`)))||(n?.includeSearch??!0)&&!ln(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||i&&e.hash===t.hash}function Su(e,t,n){let r=l(),i=V.useRef(null),a=V.useCallback(e=>{if(i.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:o,to:s,preload:c,preloadDelay:u,hashScrollIntoView:d,replace:f,startTransition:p,resetScroll:m,viewTransition:h,ignoreBlocker:g,disabled:_,target:v,onClick:y,onBlur:b,onFocus:x,onMouseEnter:S,onMouseLeave:C,onTouchStart:ee}=e,te=Bl(!!o?.includeHash),[w,ne,re]=vu(e.search,e.params,o),[ie,ae]=V.useMemo(()=>[e,{...e}],[r,e.from,e._fromLocation,e.hash,e.to,w,ne,e.state,e.mask,e.unsafeRelative]),oe=V.useCallback(e=>{let t=xu(s,r.protocolAllowlist);if(t!==void 0)return[t??void 0];ie._fromLocation||(ae._fromLocation=e);let n=r.buildLocation(ae),i=ju(n,r,_);return[i,!_&&(!i||hn(i))?void 0:W(e,n,re,r.basepath,te)]},[re,_,te,ie,ae,r,s]),[se,ce]=lu(r.stores.location,oe,bu),le=ce===void 0?se:void 0,ue=_||se===void 0,de=V.useRef(!1),fe=e.reloadDocument||le||ue?!1:c??r.options.defaultPreload,pe=u??r.options.defaultPreloadDelay??0,me=V.useCallback(e=>{let t=e?.isIntersecting;if(!(t??fe===`intent`)){t===!1&&ku(i);return}if(!pe){yu(r,ie);return}Ou.has(i)||Ou.set(i,setTimeout(()=>{Ou.delete(i),yu(r,ie)},pe))},[r,ie,i,fe,pe]);V.useEffect(()=>{if(!fe)return;fe===`render`&&!de.current&&(de.current=!0,yu(r,ie));let e=!0,t;return fe===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&me(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),ku(i)}},[r,ie,fe,me,i]);let he=Eu(e,n);if(he.ref=t?a:i,le)return he.href=le,he;let ge=e=>{let t=v??e.currentTarget.getAttribute(`target`);!ue&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(!t||t===`_self`)&&e.button===0&&(e.preventDefault(),r.navigate({...ie,replace:f,resetScroll:m,hashScrollIntoView:d,startTransition:p,viewTransition:h,ignoreBlocker:g}))},_e=()=>{fe===`intent`&&yu(r,ie)},ve=()=>{fe===`intent`&&ku(i)};return he.onClick=Au(y,ge),he.onBlur=Au(b,ve),he.onFocus=Au(x,me),he.onMouseEnter=Au(S,me),he.onMouseLeave=Au(C,ve),he.onTouchStart=Au(ee,_e),Du(he,e,ce,se,ue,n)}var Cu={},wu={className:`active`},Tu=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`_fromLocation`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function Eu(e,t){let n={};for(let r in e)Tu.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function Du(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=tn(n?o:s,{})??(n?wu:Cu);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 Ou=new WeakMap,ku=e=>{clearTimeout(Ou.get(e)),Ou.delete(e)},Au=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function ju(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)&&_n(i,t.protocolAllowlist)))return i}var Mu=V.memo(V.forwardRef((e,t)=>{let n=e._asChild||`a`,r=Su(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return V.createElement(n,r,i)}),Nu);function Nu(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!Tu.has(r)||!ln(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var Pu=class extends ml{constructor(e){super(e),this.useMatch=e=>fu({...e,from:this.id}),this.useRouteContext=e=>_u({...e,from:this.id}),this.useSearch=e=>gu({...e,from:this.id}),this.useParams=e=>hu({...e,from:this.id}),this.useLoaderDeps=e=>mu({...e,from:this.id}),this.useLoaderData=e=>pu({...e,from:this.id}),this.useNavigate=()=>s({from:this.fullPath}),this.Link=V.forwardRef((e,t)=>(0,H.jsx)(Mu,{ref:t,from:this.fullPath,...e}))}};function Fu(e){return new Pu(e)}var Iu=class extends hl{constructor(e){super(e),this.useMatch=e=>fu({...e,from:this.id}),this.useRouteContext=e=>_u({...e,from:this.id}),this.useSearch=e=>gu({...e,from:this.id}),this.useParams=e=>hu({...e,from:this.id}),this.useLoaderDeps=e=>mu({...e,from:this.id}),this.useLoaderData=e=>pu({...e,from:this.id}),this.useNavigate=()=>s({from:this.fullPath}),this.Link=V.forwardRef((e,t)=>(0,H.jsx)(Mu,{ref:t,from:this.fullPath,...e}))}};function Lu(e){return new Iu(e)}function Ru(e){return e=>{let t=Fu(e);return t.isRoot=!1,t}}function zu(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(un(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(Al)Al(a());else throw a()}return V.createElement(r,e)};return o.preload=a,o}function Bu(e){let t=l(),n=`not-found-${lu(t.stores.location,e=>e.pathname)}-${lu(t.stores.status)}`;return(0,H.jsx)(Fl,{getResetKey:()=>n,onCatch:(t,n)=>{if(Xt(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(Xt(t))return e.fallback?.(t);throw t},children:e.children})}function Vu(){return(0,H.jsx)(`p`,{children:`Not Found`})}function Hu(e){return(0,H.jsx)(H.Fragment,{children:e.children})}function Uu(e,t,n){return t.options.notFoundComponent?(0,H.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,H.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,H.jsx)(Vu,{})}function Wu(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,H.jsx)(n,{}):null}var Gu=(e,t)=>e[0]===t[0]&&e[1]===t[1],Ku=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,qu=V.memo(function({routeId:e}){let t=l();return(0,H.jsx)(Ju,{router:t,match:lu(t.stores.getMatchStore(e))})});function Ju({router:e,match:t}){let n=e.routesById[t.routeId],r=Wu(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=Ku(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s))?V.Suspense:Hu,l=i?Fl:Hu,u=o?Bu:Hu;return(0,H.jsxs)(n.isRoot?n.options.shellComponent??Hu:Hu,{children:[(0,H.jsx)(Hl.Provider,{value:t.routeId,children:(0,H.jsx)(c,{fallback:r,children:(0,H.jsx)(l,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(Xt(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:(0,H.jsx)(u,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return V.createElement(o,e)},children:s?(0,H.jsx)(zl,{fallback:r,children:(0,H.jsx)(Yu,{match:t})}):(0,H.jsx)(Yu,{match:t})})})})}),null]})}var Yu=V.memo(function({match:e}){let t=l(),n=e.routeId,r=t.routesById[n],i=V.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),a=V.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,H.jsx)(e,{},i):(0,H.jsx)(Xu,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!Ku(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return Wu(t,r)}if(e.status===`notFound`)return Uu(t,r,e.error);if(e.status===`error`)throw e.error;return a}),Xu=V.memo(function(){let e=l(),t=V.useContext(Hl),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=lu(a,e=>[!!e._notFound,e.error],{compare:Gu}),i=lu(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return Uu(e,e.routesById[t],r);if(!i)return null;let a=(0,H.jsx)(qu,{routeId:i});return t===`__root__`?(0,H.jsx)(V.Suspense,{fallback:Wu(e),children:a}):a});function Zu(e,t){let n=e[1];e.length=0,n?.(t)}function Qu({t:e}){let t=l(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{Zu(n,!1),n.push(i,a),e(t),V.startTransition(r)}),jl(()=>{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(En(r.publicHref)!==En(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`,...Wr(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}function $u(){let e=l(),t=e.routesById[wr],n=Wu(e,t),r=e.ssr?Hu:V.Suspense,i=(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Qu,{t:V.useState()[1]}),(0,H.jsx)(r,{fallback:n,children:(0,H.jsx)(ed,{})})]});return e.options.InnerWrap?(0,H.jsx)(e.options.InnerWrap,{children:i}):i}function ed(){let e=l(),t=e._rendered,n=lu(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;jl(()=>{t[0]===n&&Zu(t,!0)},[t,n]);let a=i?(0,H.jsx)(qu,{routeId:i}):null;return(0,H.jsx)(Hl.Provider,{value:i,children:e.options.disableGlobalCatchBoundary?a:(0,H.jsx)(Fl,{getResetKey:()=>r,onCatch:void 0,children:a})})}var G=e=>({createMutableStore:ou,createReadonlyStore:ou,batch:ru}),K=e=>new q(e),q=class extends Jr{constructor(e){super(e,G)}};function J({router:e,children:t,...n}){rn(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,H.jsx)(o.Provider,{value:e,children:t});return e.options.Wrap?(0,H.jsx)(e.options.Wrap,{children:r}):r}function Y({router:e,...t}){return(0,H.jsx)(J,{router:e,...t,children:(0,H.jsx)($u,{})})}function td(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 nd(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e,a=V.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(e.tag){case`title`:return(0,H.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,H.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,H.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,H.jsx)(`style`,{...t,dangerouslySetInnerHTML:a,nonce:r});case`script`:return(0,H.jsx)(rd,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function rd({attrs:e,children:t,preventScriptHoist:n}){l();let r=Bl(),i=V.useMemo(()=>t===void 0?void 0:{__html:t},[t]),a=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(V.useEffect(()=>{if(!a){if(e?.src){let t=document.createElement(`a`);t.href=e.src;let n=t.href;for(let e of document.scripts)if(e.src===n)return;let r=document.createElement(`script`);return td(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,td(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,a]),a&&typeof t==`string`)return(0,H.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:i});if(!r){if(e?.src)return(0,H.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,H.jsx)(`script`,{...e,dangerouslySetInnerHTML:i,suppressHydrationWarning:!0})}return null}function id(e,t,n,r){n=ui(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:bn(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=dl(e);u.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:ol(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:{...cl(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 ul(m,a),m.push(...d),ul(m,c),m.push(...u),ul(m,f),ul(m,p),m}var ad=e=>{let t=l(),n=t.options.ssr?.nonce,r=V.useCallback(r=>id(t,n,r,e),[e,n,t]);return lu(t.stores.matches,r,{compare:ln})};function od(e){let t=ad(e.assetCrossOrigin),n=l().options.ssr?.nonce;return(0,H.jsx)(H.Fragment,{children:t.map(e=>(0,V.createElement)(nd,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var sd={suppressHydrationWarning:!0},cd=()=>{let e=l(),t=e.options.ssr?.nonce,n=n=>{let r=fl(n,e.ssr?.manifest,t,sd);for(let e of r[1])if(typeof e.attrs?.src==`string`){let t=e;t.preventScriptHoist=!0}return r};return ld(lu(e.stores.matches,e=>pl(n(e)),{compare:ln}))};function ld(e){return(0,H.jsx)(H.Fragment,{children:e.map((e,t)=>(0,V.createElement)(nd,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var ud=`/assets/inter-latin-wght-normal-Dx4kXJAl.woff2`,dd=class extends S{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new x({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=fd(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=fd(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=fd(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=fd(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){h.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>p(t,e))}findAll(e={}){return this.getAll().filter(t=>p(e,t))}notify(e){h.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return h.batch(()=>Promise.all(e.map(e=>e.continue().catch(u))))}};function fd(e){return e.options.scope?.id}var pd=class extends S{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??f(r,t),a=this.get(i);return a||(a=new m({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){h.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>te(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>te(e,t)):t}notify(e){h.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){h.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){h.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},md=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new pd,this.#t=e.mutationCache||new dd,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=g.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=C.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(d(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=v(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return h.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;h.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return h.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=h.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(u).catch(u)}invalidateQueries(e,t={}){return h.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=h.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(u)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(u)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(d(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(d(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(u).catch(u)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(u).catch(u)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return C.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(_(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{a(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(_(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{a(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=f(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===c&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};function hd({title:e=`404`,description:t=`The requested page could not be found.`}){return(0,H.jsx)(`main`,{className:`container mx-auto flex min-h-svh items-center justify-center p-4`,children:(0,H.jsxs)(oe,{className:`w-full max-w-md`,children:[(0,H.jsxs)(re,{children:[(0,H.jsx)(ne,{children:e}),(0,H.jsx)(ae,{children:t})]}),(0,H.jsx)(ie,{children:(0,H.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Check the URL or return to the home page.`})})]})})}var gd=(...e)=>e.reduce((e,t)=>n=>t(e(n))),_d=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},vd=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,yd=1e-7,bd=12;function xd(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=vd(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>yd&&++s<bd);return o}function Sd(e,t,n,r){if(e===t&&n===r)return ut;let i=t=>xd(t,0,1,e,n);return e=>e===0||e===1?e:vd(i(e),t,r)}var Cd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,wd=e=>t=>1-e(1-t),Td=Sd(.33,1.53,.69,.99),Ed=wd(Td),Dd=Cd(Ed),Od=e=>e>=1?1:(e*=2)<1?.5*Ed(e):.5*(2-2**(-10*(e-1))),kd=e=>1-Math.sin(Math.acos(e)),Ad=wd(kd),jd=Cd(kd),Md=Sd(.42,0,1,1),Nd=Sd(0,0,.58,1),Pd=Sd(.42,0,.58,1),Fd=e=>Array.isArray(e)&&typeof e[0]!=`number`,Id={linear:ut,easeIn:Md,easeInOut:Pd,easeOut:Nd,circIn:kd,circInOut:jd,circOut:Ad,backIn:Ed,backInOut:Dd,backOut:Td,anticipate:Od},Ld=e=>typeof e==`string`,Rd=e=>{if(At(e)){Me(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return Sd(t,n,r,i)}return Ld(e)?(Me(Id[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),Id[e]):e};function zd(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Bd({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=zd(s,r,e+1/3),a=zd(s,r,e),o=zd(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Vd(e,t){return n=>n>0?t:e}var Hd=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ud=[nt,bt,vt],Wd=e=>Ud.find(t=>t.test(e));function Gd(e){let t=Wd(e);if(!t)return ye(!1,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!1;let n=t.parse(e);return t===vt&&(n=Bd(n)),n}var Kd=(e,t)=>{let n=Gd(e),r=Gd(t);if(!n||!r)return Vd(e,t);let i={...n};return e=>(i.red=Hd(n.red,r.red,e),i.green=Hd(n.green,r.green,e),i.blue=Hd(n.blue,r.blue,e),i.alpha=O(n.alpha,r.alpha,e),bt.transform(i))},qd=new Set([`none`,`hidden`]);function Jd(e,t){return qd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Yd(e,t){return n=>O(e,t,n)}function Xd(e){return typeof e==`number`?Yd:typeof e==`string`?qe(e)?Vd:Je.test(e)?Kd:ef:Array.isArray(e)?Zd:typeof e==`object`?Je.test(e)?Kd:Qd:Vd}function Zd(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Xd(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Qd(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Xd(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function $d(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var ef=(e,t)=>{let n=Ct.createTransformer(t),r=gt(e),i=gt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?qd.has(e)&&!i.values.length||qd.has(t)&&!r.values.length?Jd(e,t):gd(Zd($d(r,i),i.values),n):(ye(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,`complex-values-different`),Vd(e,t))},tf=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function nf(e,t){let n=tf.exec(e);if(!n)return;let r=tf.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>kt(O(a,o,e))+i}function rf(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return O(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=nf(e,t);if(n)return n}return Xd(e)(e,t)}var af=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>A.update(t,e),stop:()=>Xe(t),now:()=>Le.isProcessing?Le.timestamp:Mt.now()}},of=2e4;function sf(e,t=50,n=of,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function cf(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(sf(r),of);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:_e(i)}}var X={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function lf(e,t){return e*Math.sqrt(1-t*t)}var uf=12;function df(e,t,n){let r=n;for(let n=1;n<uf;n++)r-=e(r)/t(r);return r}var ff=.001;function pf({duration:e=X.duration,bounce:t=X.bounce,velocity:n=X.velocity,mass:r=X.mass}){let i,a;ye(e<=he(X.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let o=1-t;o=Ce(X.minDamping,X.maxDamping,o),e=Ce(X.minDuration,X.maxDuration,_e(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=lf(t,o),c=Math.exp(-i);return ff-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o*o*t*t*e,c=Math.exp(-r),l=lf(t*t,o);return(-i(t)+ff>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=df(i,a,s);if(e=he(e),isNaN(c))return{stiffness:X.stiffness,damping:X.damping,duration:e};{let t=c*c*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Z=[`duration`,`bounce`];function mf(e,t){return t.some(t=>e[t]!==void 0)}var hf=(e,t)=>(t?e>=0:e>0)&&e<1/0;function gf(e,t){if(hf(e,t))return e}function _f(e){let t=gf(e.stiffness),n=gf(e.damping,!0),r=gf(e.mass),i={...e,stiffness:t??X.stiffness,damping:n??X.damping,mass:r??X.mass,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&mf(e,Z)};if(i.isTimeDefined){if(i.velocity=0,e.visualDuration){let t=e.visualDuration,n=2*Math.PI/(t*1.2),r=n*n,a=2*Ce(.05,1,1-(e.bounce||0))*Math.sqrt(r);i={...i,mass:X.mass,stiffness:r,damping:a}}else{let e=pf(i);i={...i,...e,mass:X.mass},i.isResolvedFromDuration=!0}(!hf(i.stiffness)||!hf(i.damping,!0))&&(i.stiffness=X.stiffness,i.damping=X.damping)}return i}function vf(e=X.visualDuration,t=X.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,velocity:u,isResolvedFromDuration:d,isTimeDefined:f}=_f({...n,velocity:-_e(n.velocity||0)}),p=s/(2*Math.sqrt(o*c)),m=_e(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:u||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?X.restSpeed.granular:X.restSpeed.default),g.restDelta=n.restDelta||(e?X.restDelta.granular:X.restDelta.default)};_();let v,y,b;if(p<1){let e=lf(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1);v=t=>{let n=Math.exp(-h*t),r=Math.min(e*t,300);return g.target-n*((g.velocity+h*g.delta)*Math.sinh(r)+e*g.delta*Math.cosh(r))/e};let t={P:0,sinh:0,cosh:0};b=()=>{t.P=(g.velocity+h*g.delta)/e,t.sinh=h*t.P-g.delta*e,t.cosh=h*g.delta-t.P*e},y=n=>{let r=Math.exp(-h*n),i=Math.min(e*n,300);return r*(t.sinh*Math.sinh(i)+t.cosh*Math.cosh(i))}}b();let x=d&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f?0:-_e(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>he(y(e)),next:e=>{let t=v(e);if(d)a.done=e>=l;else{let n=he(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(sf(S),of),t=tt(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}vf.applyToOptions=e=>{let t=cf(e,100,vf);return e.ease=t.ease,e.duration=he(t.duration),e.type=`keyframes`,e};function yf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=vf({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function bf(e,t,n){let r=[],i=n||ke.mix||rf,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=gd(Array.isArray(t)?t[n]||ut:t,a)),r.push(a)}return r}function xf(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(Me(a===t.length,`Both input and output ranges must be the same length`,`range-length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=bf(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=_d(e[r],e[r+1],n);return s[r](i)};return n?t=>l(Ce(e[0],e[a-1],t)):l}function Sf(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=_d(0,t,r);e.push(O(n,1,i))}}function Cf(e){let t=[0];return Sf(t,e.length-1),t}function wf(e,t){return e.map(e=>e*t)}function Tf(e,t){return e.map(()=>t||Pd).splice(0,e.length-1)}function Ef({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Fd(r)?r.map(Rd):Rd(r)||Pd,a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(ke.mix||rf)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?Ce(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=xf(wf(n&&n.length===t.length?n:Cf(t),e),t,{ease:Array.isArray(i)?i:Tf(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Df=5;function Of(e,t,n){let r=Math.max(t-Df,0);return ze(n-e(r),t-r)}function kf(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):Of(t=>e.next(t).value,t,e.next(t).value)}var Af={decay:yf,inertia:yf,tween:Ef,keyframes:Ef,spring:vf};function jf(e){typeof e.type==`string`&&(e.type=Af[e.type])}var Mf=e=>e/100,Nf=class extends We{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==Mt.now()&&this.tick(Mt.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),Ke(this,this.options)}initAnimation(){let{options:e}=this;jf(e);let{type:t=Ef,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Ef;s!==Ef&&typeof o[0]!=`number`&&(this.mixKeyframes=gd(Mf,rf(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=sf(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=Ce(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==yf&&(b.value=se(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return _e(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+_e(e)}get time(){return _e(this.currentTime)}set time(e){e=he(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return kf(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(Mt.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=_e(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=af,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(Mt.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}},Pf={anticipate:Od,backInOut:Dd,circInOut:jd};function Ff(e){return e in Pf}function If(e){typeof e.ease==`string`&&Ff(e.ease)&&(e.ease=Pf[e.ease])}var Lf=10,Rf=class extends E{constructor(e){If(e),jf(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Nf({...a,autoplay:!1}),s=Math.max(Lf,Mt.now()-this.startTime),c=Ce(0,Lf,s-Lf),l=o.sample(s).value,{name:u}=this.options;i&&u&&Nt(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},zf=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Ct.test(e)||e===`0`)&&!e.startsWith(`url(`));function Bf(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Vf(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=zf(i,t),s=zf(a,t);return!o||!s?(o!==s&&ye(!1,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,`value-not-animatable`),!1):Bf(e)||(n===`spring`||Pe(n))&&r}function Q(e){e.duration=0,e.type=`keyframes`}var Hf=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Uf(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Hf.test(e[t]))return!0;return!1}var Wf=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Gf=le(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Kf(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(Se.has(n)||Wf.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Gf()&&(Se.has(n)||Wf.has(n)&&Uf(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var qf=40,Jf=class extends We{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Mt.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||ue;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=Mt.now();let u=!0;Vf(e,i,a,o)||(u=!1,(ke.instantAnimations||!s)&&l?.(se(e,n,t)),e[0]=e[e.length-1],Q(n),n.repeat=0);let d=r?this.resolvedAt&&this.resolvedAt-this.createdAt>qf?this.resolvedAt:this.createdAt:void 0,{onComplete:f}=n;n.startTime??=d,n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{f?.(),this.notifyFinished()};let p=u&&!c&&Kf(n),m;if(p){n.element=n.motionValue?.owner?.current;try{m=new Rf(n)}catch{m=new Nf(n)}}else m=new Nf(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ve()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Yf(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}function Xf(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Zf(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Xf(n,e)}var Qf={type:`spring`,stiffness:500,damping:25,restSpeed:10},$f=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ep={type:`keyframes`,duration:.8},$={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},tp=(e,{keyframes:t})=>t.length>2?ep:be.has(e)?e.startsWith(`scale`)?$f(t[1]):Qf:$,np=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function rp(e){for(let t in e)if(!np.has(t))return!0;return!1}var ip=(e,t,n,r={},i,a)=>o=>{let s=Zf(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=he(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};rp(s)||Object.assign(u,tp(e,u)),u.duration&&=he(u.duration),u.repeatDelay&&=he(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Q(u),u.delay===0&&(d=!0)),(ke.instantAnimations||ke.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Q(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=se(u.keyframes,s);if(e!==void 0){A.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Nf(u):new Jf(u)},ap=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function op(e){let t=ap.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var sp=4;function cp(e,t,n=1){Me(n<=sp,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,`max-css-var-depth`);let[r,i]=op(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return De(e)?parseFloat(e):e}return qe(i)?cp(i,t,n+1):i}function lp(e,t,n){let r=e.getProps();return je(r,t,n===void 0?r.custom:n,e)}var up=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Ue]),dp=e=>Array.isArray(e);function fp(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ve(n))}function pp(e){return dp(e)?e[e.length-1]||0:e}function mp(e,t){let{transitionEnd:n={},transition:r={},...i}=lp(e,t)||{};i={...i,...n};for(let t in i)fp(e,t,pp(i[t]))}function hp(e){return!!(Oe(e)&&e.add)}function gp(e,t){let n=e.getValue(`willChange`);if(hp(n))return n.add(t);if(!n&&ke.WillChange){let n=new ke.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function _p(e){return e.props[st]}var vp=typeof window<`u`;function yp({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function bp(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Xf(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&yp(f,t))continue;let o={delay:n,...Zf(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){A.update(()=>r.set(i));continue}let p=!1;if(vp&&window.MotionHandoffAnimation){let n=_p(e);if(n){let e=window.MotionHandoffAnimation(n,t,A);e!==null&&(o.startTime=e,p=!0)}}gp(e,t);let m=l??e.shouldReduceMotion;r.start(ip(t,r,i,m&&up.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>A.update(()=>{o&&mp(e,o)});d.length?Promise.all(d).then(t):t()}return d}function xp(e,t,n={}){let r=lp(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(bp(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Sp(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function Sp(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(xp(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Yf(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Cp(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>xp(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=xp(e,t,n);else{let i=typeof t==`function`?lp(e,t,n.custom):t;r=Promise.all(bp(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var wp={test:e=>e===`auto`,parse:e=>e},Tp=e=>t=>t.test(e),Ep=[mt,ft,Qe,Tt,et,Ot,wp],Dp=e=>Ep.find(Tp(e));function Op(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||ct(e)}var kp=new Set([`auto`,`none`,`0`]);function Ap(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!kp.has(t)&&ot(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=we(n,i))}var jp=class extends ue{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),qe(r))){let i=cp(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!up.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=Dp(r),o=Dp(i);if(it(r)!==it(i)&&Be[n]){this.needsMeasurement=!0;return}if(a!==o){if(xe(a)&&xe(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Be[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Op(e[t]))&&n.push(t);n.length&&Ap(e,n,t)}measure(){let{element:e,name:t}=this;return Be[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function Mp(e){return Ft(e)&&`ownerSVGElement`in e}function Np(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function Pp({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Fp({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ip(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Lp(e){return e===void 0||e===1}function Rp({scale:e,scaleX:t,scaleY:n}){return!Lp(e)||!Lp(t)||!Lp(n)}function zp(e){return Rp(e)||Bp(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Bp(e){return Vp(e.x)||Vp(e.y)}function Vp(e){return e&&e!==`0%`}function Hp(e,t,n){return n+t*(e-n)}function Up(e,t,n,r,i){return i!==void 0&&(e=Hp(e,i,r)),Hp(e,n,r)+t}function Wp(e,t=0,n=1,r,i){e.min=Up(e.min,t,n,r,i),e.max=Up(e.max,t,n,r,i)}function Gp(e,{x:t,y:n}){Wp(e.x,t.translate,t.scale,t.originPoint),Wp(e.y,n.translate,n.scale,n.originPoint)}var Kp=.999999999999,qp=1.0000000000001;function Jp(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Yp(e.x,-a.scroll.offset.x),Yp(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Gp(e,o)),r&&zp(a.latestValues)&&Qp(e,a.latestValues,a.layout?.layoutBox))}t.x<qp&&t.x>Kp&&(t.x=1),t.y<qp&&t.y>Kp&&(t.y=1)}function Yp(e,t){e.min+=t,e.max+=t}function Xp(e,t,n,r,i=.5){Wp(e,t,n,O(e.min,e.max,i),r)}function Zp(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Qp(e,t,n){let r=n??e;Xp(e.x,Zp(t.x,r.x),t.scaleX,t.scale,t.originX),Xp(e.y,Zp(t.y,r.y),t.scaleY,t.scale,t.originY)}function $p(e,t){return Pp(Ip(e.getBoundingClientRect(),t))}function em(e,t,n){let r=$p(e,n),{scroll:i}=t;return i&&(Yp(r.x,i.offset.x),Yp(r.y,i.offset.y)),r}var tm={x:!1,y:!1};function nm(){return tm.x||tm.y}function rm(e){return e===`x`||e===`y`?tm[e]?null:(tm[e]=!0,()=>{tm[e]=!1}):tm.x||tm.y?null:(tm.x=tm.y=!0,()=>{tm.x=tm.y=!1})}function im(e,t){let n=Np(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function am(e){return!(e.pointerType===`touch`||nm())}function om(e,t,n={}){let[r,i,a]=im(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!am(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var sm=(e,t)=>t?e===t||sm(e,t.parentElement):!1,cm=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,lm=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function um(e){return lm.has(e.tagName)||e.isContentEditable===!0}var dm=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function fm(e){return dm.has(e.tagName)||e.isContentEditable===!0}var pm=new WeakSet;function mm(e){return t=>{t.key===`Enter`&&e(t)}}function hm(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var gm=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=mm(()=>{if(pm.has(n))return;hm(n,`down`);let e=mm(()=>{hm(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>hm(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function _m(e){return cm(e)&&!nm()}var vm=new WeakSet;function ym(e,t,n={}){let[r,i,a]=im(e,n),o=e=>{let r=e.currentTarget;if(!_m(e)||vm.has(e))return;pm.add(r),n.stopPropagation&&vm.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),pm.has(r)&&pm.delete(r),_m(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||sm(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Pt(e)&&(e.addEventListener(`focus`,e=>gm(e,i)),!um(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}var bm=new WeakMap,xm,Sm=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Mp(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Cm=Sm(`inline`,`width`,`offsetWidth`),wm=Sm(`block`,`height`,`offsetHeight`);function Tm({target:e,borderBoxSize:t}){bm.get(e)?.forEach(n=>{n(e,{get width(){return Cm(e,t)},get height(){return wm(e,t)}})})}function Em(e){e.forEach(Tm)}function Dm(){typeof ResizeObserver>`u`||(xm=new ResizeObserver(Em))}function Om(e,t){xm||Dm();let n=Np(e);return n.forEach(e=>{let n=bm.get(e);n||(n=new Set,bm.set(e,n)),n.add(t),xm?.observe(e)}),()=>{n.forEach(e=>{let n=bm.get(e);n?.delete(t),n?.size||xm?.unobserve(e)})}}var km=new Set,Am;function jm(){Am=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};km.forEach(t=>t(e))},window.addEventListener(`resize`,Am)}function Mm(e){return km.add(e),Am||jm(),()=>{km.delete(e),!km.size&&typeof Am==`function`&&(window.removeEventListener(`resize`,Am),Am=void 0)}}function Nm(e,t){return typeof e==`function`?Mm(e):Om(e,t)}var Pm={value:null,addProjectionMetrics:null};function Fm(e){return Mp(e)&&e.tagName===`svg`}var Im=class extends pt{constructor(){super(...arguments),this.KeyframeResolver=jp}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Oe(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Lm=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Rm(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function zm(e){return window.getComputedStyle(e)}var Bm=class extends Im{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Rm}mount(e){Me(!!e.style,`motion.create() components must forward their ref to a HTML or SVG element`,`custom-component-ref`),super.mount(e)}readValueFromInstance(e,t){if(be.has(t))return this.projection?.isProjecting?T(t):xt(e,t);{let n=zm(e),r=(rt(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return $p(e,t)}build(e,t,n){lt(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return $e(e,t,n)}},Vm=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]);function Hm(e,t,n,r){Rm(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Vm.has(n)?n:Ee(n),t.attrs[n])}var Um=class extends Im{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=k}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(be.has(t)){let e=Ge(t);return e&&e.default||0}if(D.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Vm.has(t)?t:Ee(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return dt(e,t,n)}build(e,t,n){me(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Hm(e,t,n,r)}mount(e){this.isSVGTag=Dt(e.tagName),super.mount(e)}},Wm=jt.length;function Gm(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Gm(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Wm;n++){let r=jt[n],i=e.props[r];(Ie(i)||i===!1)&&(t[r]=i)}return t}function Km(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var qm=[...Ye].reverse(),Jm=Ye.length;function Ym(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Cp(e,t,n)))}function Xm(e){let t=Ym(e),n=$m(),r=!0,i=!1,a=t=>(n,r)=>{let i=lp(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Gm(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Jm;t++){let p=qm[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Ie(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||fe(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Zm(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:ee={}}=m,te={...ee,...C},w=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in te){let t=C[e],n=ee[e];if(d.hasOwnProperty(e))continue;let r=!1;r=dp(t)&&dp(n)?!Km(t,n)||y:t!==n,r?t==null?u.add(e):w(e):t!==void 0&&u.has(e)?w(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let ne=v&&y;b&&(!ne||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!ne&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=lp(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Yf(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=lp(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=$m(),i=!0}}}function Zm(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Km(t,e):!1}function Qm(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $m(){return{animate:Qm(!0),whileInView:Qm(),whileHover:Qm(),whileTap:Qm(),whileDrag:Qm(),whileFocus:Qm(),exit:Qm()}}function eh(e,t){e.min=t.min,e.max=t.max}function th(e,t){eh(e.x,t.x),eh(e.y,t.y)}function nh(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var rh=.9999,ih=1.0001,ah=-.01,oh=.01;function sh(e){return e.max-e.min}function ch(e,t,n){return Math.abs(e-t)<=n}function lh(e,t,n,r=.5){e.origin=r,e.originPoint=O(t.min,t.max,e.origin),e.scale=sh(n)/sh(t),e.translate=O(n.min,n.max,e.origin)-e.originPoint,(e.scale>=rh&&e.scale<=ih||isNaN(e.scale))&&(e.scale=1),(e.translate>=ah&&e.translate<=oh||isNaN(e.translate))&&(e.translate=0)}function uh(e,t,n,r){lh(e.x,t.x,n.x,r?r.originX:void 0),lh(e.y,t.y,n.y,r?r.originY:void 0)}function dh(e,t,n,r=0){e.min=(r?O(n.min,n.max,r):n.min)+t.min,e.max=e.min+sh(t)}function fh(e,t,n,r){dh(e.x,t.x,n.x,r?.x),dh(e.y,t.y,n.y,r?.y)}function ph(e,t,n,r=0){let i=r?O(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+sh(t)}function mh(e,t,n,r){ph(e.x,t.x,n.x,r?.x),ph(e.y,t.y,n.y,r?.y)}function hh(e,t,n,r,i){return e-=t,e=Hp(e,1/n,r),i!==void 0&&(e=Hp(e,1/i,r)),e}function gh(e,t=0,n=1,r=.5,i,a=e,o=e){if(Qe.test(t)&&(t=parseFloat(t),t=O(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=O(a.min,a.max,r);e===a&&(s-=t),e.min=hh(e.min,t,n,s,i),e.max=hh(e.max,t,n,s,i)}function _h(e,t,[n,r,i],a,o){gh(e,t[n],t[r],t[i],t.scale,a,o)}var vh=[`x`,`scaleX`,`originX`],yh=[`y`,`scaleY`,`originY`];function bh(e,t,n,r){_h(e.x,t,vh,n?n.x:void 0,r?r.x:void 0),_h(e.y,t,yh,n?n.y:void 0,r?r.y:void 0)}function xh(e){return e.translate===0&&e.scale===1}function Sh(e){return xh(e.x)&&xh(e.y)}function Ch(e,t){return e.min===t.min&&e.max===t.max}function wh(e,t){return Ch(e.x,t.x)&&Ch(e.y,t.y)}function Th(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Eh(e,t){return Th(e.x,t.x)&&Th(e.y,t.y)}function Dh(e){return sh(e.x)/sh(e.y)}function Oh(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function kh(e){return[e(`x`),e(`y`)]}function Ah(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var jh=ce.length,Mh=e=>typeof e==`string`?parseFloat(e):e,Nh=e=>typeof e==`number`||ft.test(e);function Ph(e,t,n,r,i,a){i?(e.opacity=O(0,n.opacity??1,Ih(r)),e.opacityExit=O(t.opacity??1,0,Lh(r))):a&&(e.opacity=O(t.opacity??1,n.opacity??1,r));for(let i=0;i<jh;i++){let a=ce[i],o=Fh(t,a),s=Fh(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Nh(o)===Nh(s)?(e[a]=Math.max(O(Mh(o),Mh(s),r),0),(Qe.test(s)||Qe.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=O(t.rotate||0,n.rotate||0,r))}function Fh(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Ih=Rh(0,.5,Ad),Lh=Rh(.5,.95,ut);function Rh(e,t,n){return r=>r<e?0:r>t?1:n(_d(e,t,r))}function zh(e,t,n){let r=Oe(e)?e:ve(e);return r.start(ip(``,r,t,n)),r.animation}function Bh(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Vh=(e,t)=>e.depth-t.depth,Hh=class{constructor(){this.children=[],this.isDirty=!1}add(e){Te(this.children,e),this.isDirty=!0}remove(e){Fe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Vh),this.isDirty=!1,this.children.forEach(e)}};function Uh(e,t){let n=Mt.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Xe(r),e(a-t))};return A.setup(r,!0),()=>Xe(r)}var Wh=class{constructor(){this.members=[]}add(e){Te(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(Fe(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Fe(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Gh={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Kh={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},qh=[``,`X`,`Y`,`Z`],Jh=1e3,Yh=0;function Xh(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Zh(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=_p(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,A,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Zh(r)}function Qh({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Yh++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Pm.value&&(Kh.nodes=Kh.calculatedTargetDeltas=Kh.calculatedProjections=0),this.nodes.forEach(tg),this.nodes.forEach(ug),this.nodes.forEach(dg),this.nodes.forEach(ng),Pm.addProjectionMetrics&&Pm.addProjectionMetrics(Kh)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Hh)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ae),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Mp(t)&&!Fm(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;A.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Uh(i,250),Gh.hasAnimatedSinceResize&&(Gh.hasAnimatedSinceResize=!1,this.nodes.forEach(lg)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||vg,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Eh(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Zf(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||lg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Xe(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(fg),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Zh(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(ag),this.nodes.forEach(ig);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(og);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sg),this.nodes.forEach(cg),this.nodes.forEach($h),this.nodes.forEach(eg)):this.nodes.forEach(og),this.clearAllSnapshots();let e=Mt.now();Le.delta=Ce(0,1e3/60,e-Le.timestamp),Le.timestamp=e,Le.isProcessing=!0,pe.update.process(Le),pe.preRender.process(Le),pe.render.process(Le),Le.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ge.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rg),this.sharedNodes.forEach(pg)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,A.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){A.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!sh(this.snapshot.measuredBox.x)&&!sh(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=k(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Sh(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||zp(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Sg(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return k();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(wg))){let{scroll:e}=this.root;e&&(Yp(t.x,e.offset.x),Yp(t.y,e.offset.y))}return t}removeElementScroll(e){let t=k();if(th(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&th(t,e),Yp(t.x,i.offset.x),Yp(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||k();th(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Yp(r.x,-n.scroll.offset.x),Yp(r.y,-n.scroll.offset.y)),zp(n.latestValues)&&Qp(r,n.latestValues,n.layout?.layoutBox)}return zp(this.latestValues)&&Qp(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=k();th(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!zp(n.latestValues))continue;let r;n.instance&&(Rp(n.latestValues)&&n.updateSnapshot(),r=k(),th(r,n.measurePageBox())),bh(t,n.latestValues,n.snapshot?.layoutBox,r)}return zp(this.latestValues)&&bh(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Le.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=Le.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=k(),this.targetWithTransforms=k()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),fh(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):th(this.target,this.layout.layoutBox),Gp(this.target,this.targetDelta)):th(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Pm.value&&Kh.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Rp(this.parent.latestValues)||Bp(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=k(),this.relativeTargetOrigin=k(),mh(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),th(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Le.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;th(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Jp(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=k());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(nh(this.prevProjectionDelta.x,this.projectionDelta.x),nh(this.prevProjectionDelta.y,this.projectionDelta.y)),uh(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Oh(this.projectionDelta.x,this.prevProjectionDelta.x)||!Oh(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Pm.value&&Kh.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Re(),this.projectionDelta=Re(),this.projectionDeltaWithTransform=Re()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Re();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=k(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(_g));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=O(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=O(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(mg(o.x,e.x,n),mg(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(mh(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),gg(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&wh(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=k(),th(f,this.relativeTarget)),c&&(this.animationValues=a,Ph(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Xe(this.pendingAnimation),void 0),this.pendingAnimation=A.update(()=>{Gh.hasAnimatedSinceResize=!0,this.motionValue||=ve(0),this.motionValue.jump(0,!1),this.currentAnimation=zh(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),Ne(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Jh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(!(!t||!i||!n)){if(this!==e&&this.layout&&n&&Cg(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||k();let t=sh(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=sh(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}th(t,i),Qp(t,r),uh(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Wh),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Xh(`z`,e,r,this.animationValues);for(let t=0;t<qh.length;t++)Xh(`rotate${qh[t]}`,e,r,this.animationValues),Xh(`skew${qh[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Ze(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Ze(t?.pointerEvents)||``),this.hasProjected&&!zp(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Ah(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in yt){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=yt[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Ze(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(ig),this.root.sharedNodes.clear()}}}function $h(e){e.updateLayout()}function eg(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)kh(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=sh(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;eh(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Cg(i,t.layoutBox,n)&&kh(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=sh(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Re();uh(o,n,t.layoutBox);let s=Re();a?uh(s,e.applyTransform(r,!0),t.measuredBox):uh(s,n,t.layoutBox);let c=!Sh(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=k();mh(s,t.layoutBox,i.layoutBox,o);let c=k();mh(c,n,a.layoutBox,o),Eh(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function tg(e){Pm.value&&Kh.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function ng(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rg(e){e.clearSnapshot()}function ig(e){e.clearMeasurements()}function ag(e){e.isLayoutDirty=!0,e.updateLayout()}function og(e){e.isLayoutDirty=!1}function sg(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function cg(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function lg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ug(e){e.resolveTargetDelta()}function dg(e){e.calcProjection()}function fg(e){e.resetSkewAndRotation()}function pg(e){e.removeLeadSnapshot()}function mg(e,t,n){e.translate=O(t.translate,0,n),e.scale=O(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function hg(e,t,n,r){e.min=O(t.min,n.min,r),e.max=O(t.max,n.max,r)}function gg(e,t,n,r){hg(e.x,t.x,n.x,r),hg(e.y,t.y,n.y,r)}function _g(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var vg={duration:.45,ease:[.4,0,.1,1]},yg=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),bg=yg(`applewebkit/`)&&!yg(`chrome/`)?Math.round:ut;function xg(e){e.min=bg(e.min),e.max=bg(e.max)}function Sg(e){xg(e.x),xg(e.y)}function Cg(e,t,n){return e===`position`||e===`preserve-aspect`&&!ch(Dh(t),Dh(n),.2)}function wg(e){return e!==e.root&&e.scroll?.wasRoot}var Tg=Qh({attachResizeListener:(e,t)=>Bh(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Eg={current:void 0},Dg=Qh({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Eg.current){let e=new Tg({});e.mount(window),e.setOptions({layoutScroll:!0}),Eg.current=e}return Eg.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`});function Og({children:e,features:t,strict:n=!1}){let[,r]=(0,V.useState)(!kg(t)),i=(0,V.useRef)(void 0);if(!kg(t)){let{renderer:e,...n}=t;i.current=e,at(n)}return(0,V.useEffect)(()=>{kg(t)&&t().then(({renderer:e,...t})=>{at(t),i.current=e,r(!0)})},[]),(0,H.jsx)(_t.Provider,{value:{renderer:i.current,strict:n},children:e})}function kg(e){return typeof e==`function`}function Ag({children:e,...t}){let n=(0,V.useContext)(wt);t={...n,...t},t.transition=Xf(t.transition,n.transition),t.isStatic=de(()=>t.isStatic);let r=(0,V.useMemo)(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return(0,H.jsx)(wt.Provider,{value:r,children:e})}var jg=(e,t)=>t.isSVG??St(e)?new Um(t):new Bm(t,{allowProjection:e!==V.Fragment}),Mg=class extends Lm{constructor(e){super(e),e.animationState||=Xm(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();fe(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Ng=0,Pg={animation:{Feature:Mg},exit:{Feature:class extends Lm{constructor(){super(...arguments),this.id=Ng++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=lp(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.blockInitialAnimation=!1,this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1,this.exitAnimation=void 0;return}let r=this.exitAnimation=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.exitAnimation===r&&(this.isExitComplete=!0,t(this.id))})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Fg(e){return{point:{x:e.pageX,y:e.pageY}}}var Ig=e=>t=>cm(t)&&e(t,Fg(t));function Lg(e,t,n,r){return Bh(e,t,Ig(n),r)}var Rg=({current:e})=>e?e.ownerDocument.defaultView:null,zg=(e,t)=>Math.abs(e-t);function Bg(e,t){let n=zg(e.x,t.x),r=zg(e.y,t.y);return Math.sqrt(n**2+r**2)}var Vg=new Set([`auto`,`scroll`]),Hg=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Ug(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Gg(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Bg(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:Mt.now()});let{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Ug(t,this.transformPagePoint),this.hasPendingMove=!0,A.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Gg(e.type===`pointercancel`?this.lastMoveEventInfo:Ug(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!cm(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Ug(Fg(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=Le;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Gg(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=gd(Lg(this.contextWindow,`pointermove`,this.handlePointerMove,d),Lg(this.contextWindow,`pointerup`,this.handlePointerUp,d),Lg(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Vg.has(e.overflowX)||Vg.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),A.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Xe(this.updatePoint)}};function Ug(e,t){return t?{point:t(e.point)}:e}function Wg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Gg({point:e},t){return{point:e,delta:Wg(e,qg(t)),offset:Wg(e,Kg(t)),velocity:Jg(t,.1)}}function Kg(e){return e[0]}function qg(e){return e[e.length-1]}function Jg(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=qg(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>he(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>he(t)*2&&(r=e[1]);let a=_e(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Yg(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?O(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?O(n,e,r.max):Math.min(e,n)),e}function Xg(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Zg(e,{top:t,left:n,bottom:r,right:i}){return{x:Xg(e.x,n,i),y:Xg(e.y,t,r)}}function Qg(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function $g(e,t){return{x:Qg(e.x,t.x),y:Qg(e.y,t.y)}}function e_(e,t){let n=.5,r=sh(e),i=sh(t);return i>r?n=_d(t.min,t.max-r,e.min):r>i&&(n=_d(e.min,e.max-i,t.min)),Ce(0,1,n)}function t_(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var n_=.35;function r_(e=n_){return e===!1?e=0:e===!0&&(e=n_),{x:i_(e,`left`,`right`),y:i_(e,`top`,`bottom`)}}function i_(e,t,n){return{min:a_(e,t),max:a_(e,n)}}function a_(e,t){return typeof e==`number`?e:e[t]||0}var o_=new WeakMap,s_=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=k(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(e),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=rm(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),kh(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Qe.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=sh(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&A.update(()=>i(e,t),!1,!0),gp(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=d_(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&A.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Hg(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Rg(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&A.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!u_(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Yg(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Et(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?Zg(n.layoutBox,e):!1,this.elastic=r_(t),r!==this.constraints&&!Et(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&kh(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=t_(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Et(e))return!1;let n=e.current;Me(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.",`drag-constraints-ref`);let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=em(n,r.root,this.visualElement.getTransformPagePoint()),a=$g(r.layout.layoutBox,i);if(t){let e=t(Fp(a));this.hasMutatedConstraints=!!e,e&&(a=Pp(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=kh(o=>{if(!u_(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return gp(this.visualElement,e),n.start(ip(e,n,0,t,this.visualElement,!1))}stopAnimation(){kh(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:t}){let{drag:n}=this.getProps(),r={x:e,y:t},i=this.visualElement.getTransformPagePoint()?.(r)||r,a=this.visualElement.measureViewportBox();kh(e=>{if(!u_(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-O(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Et(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};kh(e=>{let t=this.getAxisMotionValue(e).get();i[e]=e_({min:t,max:t},r[e])});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),kh(t=>{let n=this.getAxisMotionValue(t);if(!u_(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(O(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;o_.set(this.visualElement,this);let e=this.visualElement.current,t=Lg(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&fm(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Et(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=l_(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),A.read(r);let o=Bh(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(kh(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=n_,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function c_(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function l_(e,t,n){let r=Nm(e,c_(n)),i=Nm(t,c_(n));return()=>{r(),i()}}function u_(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function d_(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var f_=class extends Lm{constructor(e){super(e),this.removeGroupControls=ut,this.removeListeners=ut,this.controls=new s_(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ut}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},p_=e=>(t,n)=>{e&&A.update(()=>e(t,n),!1,!0)},m_=class extends Lm{constructor(){super(...arguments),this.removePointerDownListener=ut}onPointerDown(e){this.session=new Hg(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Rg(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:p_(e),onStart:p_(t),onMove:p_(n),onEnd:(e,t)=>{delete this.session,r&&A.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Lg(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},h_=!1,g_=class extends V.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),h_&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Gh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),h_=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||A.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),ge.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;h_=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function __(e){let[t,n]=It(),r=(0,V.useContext)(He);return(0,H.jsx)(g_,{...e,layoutGroup:r,switchLayoutGroup:(0,V.useContext)(ht),isPresent:t,safeToRemove:n})}var v_={pan:{Feature:m_},drag:{Feature:f_,ProjectionNode:Dg,MeasureLayout:__}};function y_(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&A.postRender(()=>i(t,Fg(t)))}var b_=class extends Lm{mount(){let{current:e}=this.node;e&&(this.unmount=om(e,(e,t)=>(y_(this.node,t,`Start`),e=>y_(this.node,e,`End`))))}unmount(){}},x_=class extends Lm{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=gd(Bh(this.node.current,`focus`,()=>this.onFocus()),Bh(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function S_(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&A.postRender(()=>i(t,Fg(t)))}var C_=class extends Lm{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=ym(e,(e,t)=>(S_(this.node,t,`Start`),(e,{success:t})=>S_(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},w_=new WeakMap,T_=new WeakMap,E_=e=>{let t=w_.get(e.target);t&&t(e)},D_=e=>{e.forEach(E_)};function O_({root:e,...t}){let n=e||document;T_.has(n)||T_.set(n,{});let r=T_.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(D_,{root:e,...t})),r[i]}function k_(e,t,n){let r=O_(t);return w_.set(e,n),r.observe(e),()=>{w_.delete(e),r.unobserve(e)}}var A_={some:0,all:1},j_=class extends Lm{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:A_[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=k_(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(M_(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function M_({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var N_={inView:{Feature:j_},tap:{Feature:C_},focus:{Feature:x_},hover:{Feature:b_}},P_={layout:{ProjectionNode:Dg,MeasureLayout:__}},F_={renderer:jg,...Pg,...N_,...v_,...P_};function I_(){let[e,t]=(0,V.useState)(!1);return(0,V.useLayoutEffect)(()=>{let e=document.documentElement,n=()=>t(e.classList.contains(`reduce-motion`));n();let r=new MutationObserver(n);return r.observe(e,{attributes:!0,attributeFilter:[`class`]}),()=>r.disconnect()},[]),e}function L_({children:e}){let t=I_();return(0,H.jsx)(Og,{features:F_,strict:!0,children:(0,H.jsx)(Ag,{reducedMotion:t?`always`:`user`,children:e})})}function R_(){return new md({defaultOptions:{queries:{staleTime:6e4,retry:1,refetchOnWindowFocus:!1}}})}var z_;function B_(){return ee?R_():(z_||=R_(),z_)}var V_=`/assets/globals-BXtzVIWE.css`,H_=Lu({head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1`},{title:`Fleet Prime`}],links:[{rel:`stylesheet`,href:V_},{rel:`preload`,href:ud,as:`font`,type:`font/woff2`,crossOrigin:`anonymous`},{rel:`icon`,href:`/favicon-dark.svg`,type:`image/svg+xml`,media:`(prefers-color-scheme: dark)`},{rel:`icon`,href:`/favicon-light.svg`,type:`image/svg+xml`,media:`(prefers-color-scheme: light)`},{rel:`icon`,href:`/favicon.ico`,sizes:`any`}]}),component:U_,notFoundComponent:()=>(0,H.jsx)(hd,{}),shellComponent:W_});function U_(){return(0,V.useLayoutEffect)(()=>{Rt(zt())},[]),(0,V.useEffect)(()=>{y()},[]),(0,H.jsx)(L_,{children:(0,H.jsxs)(b,{client:B_(),children:[(0,H.jsx)(Xu,{}),null]})})}function W_({children:e}){return(0,H.jsxs)(`html`,{lang:`en`,"data-density":Bt.density,children:[(0,H.jsx)(`head`,{children:(0,H.jsx)(od,{})}),(0,H.jsxs)(`body`,{children:[e,(0,H.jsx)(Lt,{}),(0,H.jsx)(cd,{})]})]})}var G_={IndexRoute:Ru(`/`)({component:zu(()=>Vt(()=>import(`./routes-DO93P3Xm.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68])),`component`)}).update({id:`/`,path:`/`,getParentRoute:()=>H_})},K_=H_._addFileChildren(G_);function q_(){return K({routeTree:K_,scrollRestoration:!0,defaultPreload:`intent`,defaultPreloadStaleTime:0})}async function J_(){let e=await q_(),t=[];return window.__TSS_START_OPTIONS__={serializationAdapters:t},t.push(kl),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.ids.get().length||await Zi(e),e}var Y_=J_;function X_(){return Y_().finally(()=>window.$_TSR?.h())}var Z_;function Q_(){return Z_||=X_(),(0,H.jsx)(Nl,{promise:Z_,children:e=>(0,H.jsx)(Y,{router:e})})}var $_=Gt();(0,V.startTransition)(()=>{(0,$_.hydrateRoot)(document,(0,H.jsx)(V.StrictMode,{children:(0,H.jsx)(Q_,{})}))});
|