@deslop/auth 0.1.1235 → 0.1.1238
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/(home)-CXtD82GI.js +20 -0
- package/dist/client/assets/badge-Orwp1LuN.js +1 -0
- package/dist/client/assets/components-CY-PK17G.js +1 -0
- package/dist/client/assets/effect-DksNtAHN.js +17 -0
- package/dist/client/assets/index-DIpS8BKV.js +2 -0
- package/dist/client/assets/{index-XhCXj376.css → index-tRps0ChV.css} +1 -1
- package/dist/client/assets/people-BRGu8hJj.js +1 -0
- package/dist/client/assets/route-nzdKd_UO.js +1 -0
- package/dist/client/assets/toast-D2hAfPD-.js +3 -0
- package/dist/client/index.html +4 -4
- package/dist/server.js +21866 -406
- package/package.json +2 -2
- package/dist/client/assets/(home)-DPkBdCAR.js +0 -20
- package/dist/client/assets/badge-BZyO-IMU.js +0 -1
- package/dist/client/assets/client-sCUiygGT.js +0 -3
- package/dist/client/assets/components-DfiHr7mH.js +0 -1
- package/dist/client/assets/effect-BhsQyU3F.js +0 -17
- package/dist/client/assets/index-D-TNR7SG.js +0 -2
- package/dist/client/assets/people-DUtEEkN5.js +0 -1
- package/dist/client/assets/route-rs7KiAU0.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{n as t,o as n,s as r}from"./react-BUjtWCUj.js";import{An as i,Cn as a,D as o,Jt as s,Ot as c,T as l,U as u,_n as d,bn as f,mn as p,o as m,qt as h,rn as g,tr as _,w as ee,yn as v}from"./toast-D2hAfPD-.js";import{Ca as y,Ra as b,U as x,Va as S,Zi as C,ii as w,ma as T,pa as E,qr as D,ra as O,va as k}from"./effect-DksNtAHN.js";import{$ as A,I as j,J as M,N,Q as P,X as F,Y as I,Z as te,a as L,at as ne,b as re,et as ie,ft as R,ht as ae,lt as z,m as B,nt as oe,q as V,s as H,t as U,tt as W,x as G}from"./components-CY-PK17G.js";import{i as K}from"./index-DIpS8BKV.js";import{t as q}from"./badge-Orwp1LuN.js";var J=e(r(),1),Y=n();function se(e){let[t,n]=J.useState({getBoundingClientRect(){return DOMRect.fromRect({width:0,height:0,x:0,y:0})}}),r=J.useRef(null),i=J.useRef(null),a=J.useRef(null),s=J.useRef(null),c=J.useRef(!0),l=J.useRef(null),u=o(),d=J.useMemo(()=>({anchor:t,setAnchor:n,actionsRef:a,backdropRef:r,internalBackdropRef:i,positionerRef:s,allowMouseUpTriggerRef:c,initialCursorPointRef:l,rootId:u}),[t,u]);return(0,Y.jsx)(W.Provider,{value:d,children:(0,Y.jsx)(A.Provider,{value:void 0,children:(0,Y.jsx)(M,{...e})})})}var X=500,ce=J.forwardRef(function(e,t){let{render:n,className:r,style:o,...d}=e,{setAnchor:f,actionsRef:p,internalBackdropRef:_,backdropRef:v,positionerRef:y,allowMouseUpTriggerRef:b,initialCursorPointRef:x,rootId:S}=oe(!1),{store:C}=ie(!1),w=C.useState(`open`),T=C.useState(`disabled`),E=J.useRef(null),D=J.useRef(null),O=g(),k=g(),A=J.useRef(!1),j=J.useRef(null);function M(e,t,n){let r=n.type.startsWith(`touch`);x.current={x:e,y:t},f({getBoundingClientRect(){return DOMRect.fromRect({width:r?10:0,height:r?10:0,x:e,y:t})}}),A.current=!1,p.current?.setOpen(!0,l(ee,n)),k.start(X,()=>{A.current=!0})}function N(e){if(T)return;b.current=!0,c(e),M(e.clientX,e.clientY,e.nativeEvent);let t=i(E.current);j.current?.abort();let n=new AbortController;j.current=n,t.addEventListener(`mouseup`,e=>{if(b.current=!1,!A.current)return;k.clear(),A.current=!1;let t=s(e);h(y.current,t)||S&&t&&V(t)===S||p.current?.setOpen(!1,l(m,e))},{once:!0,signal:n.signal})}function P(){O.clear(),D.current=null}function F(e){if(T||(b.current=!1,e.touches.length!==1)){P();return}e.stopPropagation();let t=e.touches[0],n={x:t.clientX,y:t.clientY};D.current=n,O.start(X,()=>{M(n.x,n.y,e.nativeEvent)})}function I(e){if(e.touches.length!==1)P();else if(O.isStarted()&&D.current){let t=e.touches[0],n=Math.abs(t.clientX-D.current.x),r=Math.abs(t.clientY-D.current.y);(n>10||r>10)&&P()}}return J.useEffect(()=>()=>{j.current?.abort()},[]),J.useEffect(()=>{function e(e){if(T)return;let t=s(e);(h(E.current,t)||h(_.current,t)||h(v.current,t))&&e.preventDefault()}let t=i(E.current);return u(t,`contextmenu`,e)},[v,T,_]),a(`div`,e,{state:{open:w},ref:[E,t],props:[{onContextMenu:N,onTouchStart:F,onTouchMove:I,onTouchEnd:P,onTouchCancel:P,style:{WebkitTouchCallout:`none`}},d],stateAttributesMapping:ae})}),le=I,Z=t();function ue(e){let t=(0,Z.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Y.jsx)(se,{"data-slot":`context-menu`,...n}),t[2]=n,t[3]=r),r}function de(e){let t=(0,Z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=_(`select-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Y.jsx)(ce,{"data-slot":`context-menu-trigger`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function fe(e){let t=(0,Z.c)(18),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({className:n,align:i,alignOffset:a,side:o,sideOffset:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let c=i===void 0?`start`:i,l=a===void 0?4:a,u=o===void 0?`right`:o,d=s===void 0?0:s,f;t[7]===n?f=t[8]:(f=_(`z-50 max-h-(--available-height) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,n),t[7]=n,t[8]=f);let p;t[9]!==r||t[10]!==f?(p=(0,Y.jsx)(te,{"data-slot":`context-menu-content`,className:f,...r}),t[9]=r,t[10]=f,t[11]=p):p=t[11];let m;return t[12]!==c||t[13]!==l||t[14]!==u||t[15]!==d||t[16]!==p?(m=(0,Y.jsx)(F,{children:(0,Y.jsx)(le,{className:`isolate z-50 outline-none`,align:c,alignOffset:l,side:u,sideOffset:d,children:p})}),t[12]=c,t[13]=l,t[14]=u,t[15]=d,t[16]=p,t[17]=m):m=t[17],m}function pe(e){let t=(0,Z.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,inset:r,variant:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?`default`:a,s;t[5]===n?s=t[6]:(s=_(`group/context-menu-item relative flex min-h-7 cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7.5 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 data-[variant=destructive]:*:[svg]:text-destructive`,n),t[5]=n,t[6]=s);let c;return t[7]!==r||t[8]!==i||t[9]!==s||t[10]!==o?(c=(0,Y.jsx)(P,{"data-slot":`context-menu-item`,"data-inset":r,"data-variant":o,className:s,...i}),t[7]=r,t[8]=i,t[9]=s,t[10]=o,t[11]=c):c=t[11],c}function Q(e){let t=(0,Z.c)(11),n;t[0]!==e.person.id||t[1]!==e.person.name?(n=(0,Y.jsx)(U,{id:e.person.id,name:e.person.name}),t[0]=e.person.id,t[1]=e.person.name,t[2]=n):n=t[2];let r=e.person.fullName??e.person.name,i;t[3]===r?i=t[4]:(i=(0,Y.jsx)(`span`,{className:`min-w-0 truncate font-medium`,children:r}),t[3]=r,t[4]=i);let a=e.person.fullName!==void 0&&`@${e.person.name}`,o;t[5]===a?o=t[6]:(o=(0,Y.jsx)(`span`,{className:`text-muted-foreground min-w-0 flex-1 truncate font-mono text-xs`,children:a}),t[5]=a,t[6]=o);let s;return t[7]!==n||t[8]!==i||t[9]!==o?(s=(0,Y.jsxs)(Y.Fragment,{children:[n,i,o]}),t[7]=n,t[8]=i,t[9]=o,t[10]=s):s=t[10],s}function $(e){let t=(0,Z.c)(8),n;t[0]===e.person?n=t[1]:(n=(0,Y.jsx)(Q,{person:e.person}),t[0]=e.person,t[1]=n);let r;t[2]!==e.children||t[3]!==n?(r=(0,Y.jsxs)(`div`,{className:`flex h-10 min-w-0 items-center gap-3 px-1 text-sm`,children:[n,e.children]}),t[2]=e.children,t[3]=n,t[4]=r):r=t[4];let i;return t[5]!==e.failure||t[6]!==r?(i=(0,Y.jsxs)(`div`,{role:`listitem`,className:`border-b`,children:[r,e.failure]}),t[5]=e.failure,t[6]=r,t[7]=i):i=t[7],i}function me(e){let t=(0,Z.c)(28),n;t[0]===e.person.id?n=t[1]:(n=H(e.person.id),t[0]=e.person.id,t[1]=n);let[r,i]=z(n),a=e.person,o;t[2]===r?o=t[3]:(o=(0,Y.jsx)(N,{result:r,className:`mr-1 mb-2 ml-10 wrap-anywhere`}),t[2]=r,t[3]=o);let s;t[4]===e.person.since?s=t[5]:(s=B(e.person.since),t[4]=e.person.since,t[5]=s);let c;t[6]===s?c=t[7]:(c=(0,Y.jsx)(`span`,{className:`text-muted-foreground shrink-0 font-mono text-xs max-sm:hidden`,children:s}),t[6]=s,t[7]=c);let l;t[8]===r?l=t[9]:(l=x(r),t[8]=r,t[9]=l);let u;t[10]===i?u=t[11]:(u=()=>i(!0),t[10]=i,t[11]=u);let d;t[12]!==l||t[13]!==u?(d=(0,Y.jsx)(f,{size:`sm`,className:`shrink-0`,disabled:l,onClick:u,children:`Allow`}),t[12]=l,t[13]=u,t[14]=d):d=t[14];let p;t[15]===r?p=t[16]:(p=x(r),t[15]=r,t[16]=p);let m;t[17]===i?m=t[18]:(m=()=>i(!1),t[17]=i,t[18]=m);let h;t[19]!==p||t[20]!==m?(h=(0,Y.jsx)(f,{size:`sm`,variant:`outline`,className:`shrink-0`,disabled:p,onClick:m,children:`Decline`}),t[19]=p,t[20]=m,t[21]=h):h=t[21];let g;return t[22]!==e.person||t[23]!==h||t[24]!==o||t[25]!==c||t[26]!==d?(g=(0,Y.jsxs)($,{person:a,failure:o,children:[c,d,h]}),t[22]=e.person,t[23]=h,t[24]=o,t[25]=c,t[26]=d,t[27]=g):g=t[27],g}function he(e){let t=(0,Z.c)(34),n;t[0]===e.person.id?n=t[1]:(n=G(e.person.id),t[0]=e.person.id,t[1]=n);let[r,i]=z(n);if(e.person.role===`Admin`){let n;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Y.jsx)(q,{variant:`outline`,className:`shrink-0`,children:`admin`}),t[2]=n):n=t[2];let r;return t[3]===e.person?r=t[4]:(r=(0,Y.jsx)($,{person:e.person,children:n}),t[3]=e.person,t[4]=r),r}let a;t[5]===e.person.since?a=t[6]:(a=B(e.person.since),t[5]=e.person.since,t[6]=a);let o=`${e.person.fullName??e.person.name}, member since ${a}`,s;t[7]===o?s=t[8]:(s=(0,Y.jsx)(`div`,{role:`button`,tabIndex:0,"aria-haspopup":`menu`,"aria-label":o,className:`hover:bg-muted/50 flex h-10 min-w-0 items-center gap-3 px-1 text-sm`}),t[7]=o,t[8]=s);let c;t[9]===e.person?c=t[10]:(c=(0,Y.jsx)(Q,{person:e.person}),t[9]=e.person,t[10]=c);let l;t[11]===e.person.since?l=t[12]:(l=B(e.person.since),t[11]=e.person.since,t[12]=l);let u;t[13]===l?u=t[14]:(u=(0,Y.jsx)(`span`,{className:`text-muted-foreground shrink-0 font-mono text-xs`,children:l}),t[13]=l,t[14]=u);let d;t[15]!==s||t[16]!==c||t[17]!==u?(d=(0,Y.jsxs)(de,{render:s,children:[c,u]}),t[15]=s,t[16]=c,t[17]=u,t[18]=d):d=t[18];let f;t[19]===r?f=t[20]:(f=(0,Y.jsx)(N,{result:r,className:`mr-1 mb-2 ml-10 wrap-anywhere`}),t[19]=r,t[20]=f);let p;t[21]!==d||t[22]!==f?(p=(0,Y.jsxs)(`div`,{role:`listitem`,className:`border-b`,children:[d,f]}),t[21]=d,t[22]=f,t[23]=p):p=t[23];let m;t[24]===r?m=t[25]:(m=x(r),t[24]=r,t[25]=m);let h;t[26]===i?h=t[27]:(h=()=>i(),t[26]=i,t[27]=h);let g;t[28]!==m||t[29]!==h?(g=(0,Y.jsx)(fe,{className:`w-auto min-w-36`,children:(0,Y.jsx)(pe,{variant:`destructive`,disabled:m,onClick:h,children:`Remove`})}),t[28]=m,t[29]=h,t[30]=g):g=t[30];let _;return t[31]!==g||t[32]!==p?(_=(0,Y.jsxs)(ue,{children:[p,g]}),t[31]=g,t[32]=p,t[33]=_):_=t[33],_}function ge(){let e=(0,Z.c)(2),t=j(),n;return e[0]===t?n=e[1]:(n=e=>D(t)(w(`${e.fullName??``} ${e.name}`)),e[0]=t,e[1]=n),T(O(k(R(re).value,S(b,be)),n),{onEmpty:ye,onNonEmpty:_e})}function _e(e){return(0,Y.jsx)(`div`,{role:`list`,"aria-label":`People`,children:E(e,ve)})}function ve(e){return C(e.role===`Waiting`,{onFalse:()=>(0,Y.jsx)(he,{person:e},e.id),onTrue:()=>(0,Y.jsx)(me,{person:e},e.id)})}function ye(){return(0,Y.jsx)(p,{children:(0,Y.jsx)(d,{children:(0,Y.jsx)(v,{children:`No one matches`})})})}function be(e){return e.role!==`Waiting`}function xe(){let e=(0,Z.c)(2);if(!y(R(L).value,Se)){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Y.jsx)(K,{to:`/`}),e[0]=t):t=e[0],t}let t;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Y.jsx)(J.Suspense,{fallback:(0,Y.jsx)(ne,{label:`People`,media:!0,rows:3}),children:(0,Y.jsx)(ge,{})}),e[1]=t):t=e[1],t}function Se(e){return e.role===`Admin`}export{xe as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{n as t,o as n,s as r}from"./react-BUjtWCUj.js";import{_n as i,ar as a,bn as o,gn as s,hn as c,ir as l,mn as u,tr as d,vn as f,yn as p}from"./toast-D2hAfPD-.js";import{$i as m,Aa as h,Ca as g,F as _,Fa as v,Ia as y,Na as b,Qa as x,R as ee,U as S,Zi as C,ii as te,it as ne,ja as re,nt as ie,ot as w,pa as T,st as ae,wa as E}from"./effect-DksNtAHN.js";import{A as D,B as O,C as oe,D as k,E as se,F as ce,G as le,H as A,K as ue,L as de,M as j,N as fe,P as M,R as pe,S as me,T as N,U as he,V as P,W as ge,_ as _e,a as ve,at as F,b as ye,c as be,d as xe,dt as Se,ft as I,gt as Ce,h as we,i as Te,it as L,k as Ee,lt as R,n as De,o as z,p as Oe,pt as ke,r as Ae,t as je,u as B,v as V,w as H,y as Me,z as U}from"./components-CY-PK17G.js";import{n as Ne,r as Pe,t as Fe}from"./index-DIpS8BKV.js";import{t as Ie}from"./badge-Orwp1LuN.js";var W={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};W.node;var Le=a(W),G={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};G.node;var K=a(G),q={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};q.node;var Re=a(q),J=e(r()),Y=t(),X=n();function Z(e){let t=(0,Y.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(`path`,{d:`M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z`}),t[0]=n):n=t[0];let r;return t[1]===e.className?r=t[2]:(r=(0,X.jsx)(`svg`,{viewBox:`0 0 16 16`,fill:`currentColor`,className:e.className,"aria-hidden":`true`,children:n}),t[1]=e.className,t[2]=r),r}function Q(e){let t=(0,Y.c)(5),n;t[0]===e.className?n=t[1]:(n=d(`flex min-h-full w-full max-w-3xl flex-col gap-4 self-start`,e.className),t[0]=e.className,t[1]=n);let r;return t[2]!==e.children||t[3]!==n?(r=(0,X.jsx)(`main`,{className:`pb-safe flex min-h-0 flex-1 justify-center overflow-y-auto px-4 pt-3`,children:(0,X.jsx)(`div`,{className:n,children:e.children})}),t[2]=e.children,t[3]=n,t[4]=r):r=t[4],r}function $(e){let t=(0,Y.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`size-4 animate-spin`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(l,{"data-slot":`spinner`,role:`status`,"aria-label":`Loading`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var ze=`/assets/icon-3Ql0zGr9.svg`;function Be(){let e=(0,Y.c)(11),[t]=R(k),[n]=R(B),[r]=R(V),i;if(e[0]!==n||e[1]!==r||e[2]!==t){let a;e[4]===n?a=e[5]:(a=()=>_(n),e[4]=n,e[5]=a);let o;e[6]===r?o=e[7]:(o=()=>_(r),e[6]=r,e[7]=o),i=b(x(_(t),v(a),v(o)),{onNone:He,onSome:Ve}),e[0]=n,e[1]=r,e[2]=t,e[3]=i}else i=e[3];let a;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(a=new URLSearchParams(location.search).has(`error`)&&(0,X.jsx)(L,{children:`GitHub sign-in failed. Try again.`}),e[8]=a):a=e[8];let o;return e[9]===i?o=e[10]:(o=(0,X.jsxs)(X.Fragment,{children:[i,a]}),e[9]=i,e[10]=o),o}function Ve(e){return(0,X.jsx)(L,{children:e.message})}function He(){return null}function Ue(e){let t=(0,Y.c)(34),[n,r]=R(Oe),i,a,s,c,l,u,d,f;if(t[0]!==n||t[1]!==r||t[2]!==e.id){a=S(n),i=o,s=`ghost`;let p;t[11]===e.id?p=t[12]:(p=H(e.id),t[11]=e.id,t[12]=p),c=`Copy the code ${p}`,l=`font-mono text-base font-semibold`,t[13]!==r||t[14]!==e.id?(u=()=>r(H(e.id)),t[13]=r,t[14]=e.id,t[15]=u):u=t[15],t[16]===e.id?d=t[17]:(d=H(e.id),t[16]=e.id,t[17]=d),f=C(a,{onFalse:Ge,onTrue:We}),t[0]=n,t[1]=r,t[2]=e.id,t[3]=i,t[4]=a,t[5]=s,t[6]=c,t[7]=l,t[8]=u,t[9]=d,t[10]=f}else i=t[3],a=t[4],s=t[5],c=t[6],l=t[7],u=t[8],d=t[9],f=t[10];let p=a&&`Copied`,m;t[18]===p?m=t[19]:(m=(0,X.jsx)(`span`,{role:`status`,className:`sr-only`,children:p}),t[18]=p,t[19]=m);let h;t[20]!==i||t[21]!==s||t[22]!==c||t[23]!==l||t[24]!==u||t[25]!==d||t[26]!==f||t[27]!==m?(h=(0,X.jsxs)(i,{variant:s,"aria-label":c,className:l,onClick:u,children:[d,f,m]}),t[20]=i,t[21]=s,t[22]=c,t[23]=l,t[24]=u,t[25]=d,t[26]=f,t[27]=m,t[28]=h):h=t[28];let g;t[29]===n?g=t[30]:(g=(0,X.jsx)(fe,{result:n}),t[29]=n,t[30]=g);let _;return t[31]!==h||t[32]!==g?(_=(0,X.jsxs)(X.Fragment,{children:[h,g]}),t[31]=h,t[32]=g,t[33]=_):_=t[33],_}function We(){return(0,X.jsx)(Ce,{className:`text-primary`})}function Ge(){return(0,X.jsx)(Le,{className:`text-muted-foreground`})}function Ke(e){let t=(0,Y.c)(13),n=I(se).value,r;t[0]!==n||t[1]!==e.expiresAt?(r=C(e.expiresAt-n<6e4,{onFalse:Je,onTrue:qe}),t[0]=n,t[1]=e.expiresAt,t[2]=r):r=t[2];let i;t[3]===r?i=t[4]:(i=(0,X.jsx)(j,{waiting:!0,status:r}),t[3]=r,t[4]=i);let a;t[5]!==n||t[6]!==e.expiresAt?(a=we(e.expiresAt,n),t[5]=n,t[6]=e.expiresAt,t[7]=a):a=t[7];let o;t[8]===a?o=t[9]:(o=(0,X.jsxs)(`span`,{children:[(0,X.jsx)(`span`,{className:`font-mono tabular-nums`,children:a}),` left`]}),t[8]=a,t[9]=o);let s;return t[10]!==i||t[11]!==o?(s=(0,X.jsxs)(`span`,{role:`timer`,className:`text-muted-foreground flex items-center gap-1.5 text-xs`,children:[i,o]}),t[10]=i,t[11]=o,t[12]=s):s=t[12],s}function qe(){return`warning`}function Je(){return`live`}function Ye(e){let t=(0,Y.c)(23),[n,r]=R(k),[i,a]=R(V),s=`Sign in ${e.request.clientName} on ${e.request.device}`,c;t[0]===s?c=t[1]:(c=(0,X.jsx)(`p`,{id:`waiting-title`,title:s,className:`max-w-full truncate text-base font-semibold`,children:s}),t[0]=s,t[1]=c);let l;t[2]===e.request.id?l=t[3]:(l=be(e.request.id),t[2]=e.request.id,t[3]=l);let u;t[4]===l?u=t[5]:(u=(0,X.jsx)(`span`,{className:`bg-card text-foreground rounded-md border p-1.5`,children:(0,X.jsx)(Ae,{text:l,className:`size-40`})}),t[4]=l,t[5]=u);let d;t[6]===e.request.id?d=t[7]:(d=(0,X.jsx)(Ue,{id:e.request.id}),t[6]=e.request.id,t[7]=d);let f;t[8]===e.request.expiresAt?f=t[9]:(f=(0,X.jsx)(Ke,{expiresAt:e.request.expiresAt}),t[8]=e.request.expiresAt,t[9]=f);let p;t[10]!==i||t[11]!==e.request.kind||t[12]!==n||t[13]!==a||t[14]!==r?(p=e.request.kind===`App`&&(0,X.jsxs)(`span`,{className:`flex flex-wrap justify-center gap-1`,children:[(0,X.jsxs)(o,{variant:`ghost`,size:`sm`,disabled:S(i),onClick:()=>a(),children:[(0,X.jsx)(K,{}),`Approve here with a passkey`]}),(0,X.jsxs)(o,{variant:`ghost`,size:`sm`,disabled:S(n),onClick:()=>r(),children:[(0,X.jsx)(Z,{}),`Approve here with GitHub`]})]}),t[10]=i,t[11]=e.request.kind,t[12]=n,t[13]=a,t[14]=r,t[15]=p):p=t[15];let m;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,X.jsx)(Be,{}),t[16]=m):m=t[16];let h;return t[17]!==c||t[18]!==u||t[19]!==d||t[20]!==f||t[21]!==p?(h=(0,X.jsxs)(`section`,{className:`flex flex-1 flex-col items-center justify-center gap-3 pb-12 text-center`,"aria-labelledby":`waiting-title`,children:[c,u,d,f,p,m]}),t[17]=c,t[18]=u,t[19]=d,t[20]=f,t[21]=p,t[22]=h):h=t[22],h}function Xe(e){let t=(0,Y.c)(7),n;t[0]===e.id?n=t[1]:(n=oe(e.id),t[0]=e.id,t[1]=n);let r=I(n),i;if(t[2]!==e.account||t[3]!==r.value){let n;t[5]===e.account?n=t[6]:(n=t=>b(E(e.account,Ze),{onNone:()=>(0,X.jsx)(Ye,{request:t.request}),onSome:()=>(0,X.jsx)(J.Suspense,{fallback:(0,X.jsx)(F,{label:`Apps`,media:!0,rows:9}),children:(0,X.jsx)(De,{pending:y(t.request)})})}),t[5]=e.account,t[6]=n),i=x(r.value,w,ne({Decided:et,Expired:Qe,Waiting:n})),t[2]=e.account,t[3]=r.value,t[4]=i}else i=t[4];return i}function Ze(e){return e.role!==`Waiting`}function Qe(){return(0,X.jsxs)(u,{role:`status`,children:[(0,X.jsxs)(i,{children:[(0,X.jsx)(p,{children:`This sign-in expired`}),(0,X.jsx)(s,{children:`Start it again in the app or agent that asked.`})]}),(0,X.jsx)(c,{children:(0,X.jsx)(o,{variant:`outline`,onClick:$e,children:`Back to Auth`})})]})}function $e(){return location.assign(`/`)}function et(){return(0,X.jsx)(u,{role:`status`,children:(0,X.jsx)(i,{children:(0,X.jsx)(p,{children:`Continuing…`})})})}function tt(){let e=(0,Y.c)(2),t=Fe(),n;return e[0]===t?n=e[1]:(n=e=>(0,X.jsxs)(ce,{active:t({to:e.to})!==!1,render:(0,X.jsx)(Pe,{to:e.to}),children:[e.label,e.count>0&&(0,X.jsx)(Ie,{children:e.count})]},e.to),e[0]=t,e[1]=n),T([{count:0,label:`Sign-ins`,to:`/`},{count:m(I(ye).value,nt),label:`People`,to:`/people`}],n)}function nt(e){return e.role===`Waiting`}function rt(e){return x(w(e.account.role),ae(`Waiting`,()=>(0,X.jsx)(u,{role:`status`,children:(0,X.jsxs)(i,{children:[(0,X.jsx)(f,{children:(0,X.jsx)(j,{waiting:!0})}),(0,X.jsx)(p,{children:`Waiting for an admin`})]})})),ie(()=>(0,X.jsx)(Ne,{})))}function it(e){let t=(0,Y.c)(23),n=ke(Me),r=ee(n,lt),[i,a]=R(z),[o,s]=R(me),[c,l]=R(xe),u=U,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,X.jsx)(P,{children:`Passkeys`}),t[0]=d):d=t[0];let f;t[1]===n?f=t[2]:(f=b(_(n),{onNone:ct,onSome:st}),t[1]=n,t[2]=f);let p;t[3]!==s||t[4]!==o?(p=e=>(0,X.jsxs)(he,{children:[(0,X.jsxs)(le,{children:[(0,X.jsx)(K,{}),(0,X.jsx)(`span`,{className:`truncate`,children:e.addedFrom}),(0,X.jsx)(`span`,{className:`text-muted-foreground ml-auto pl-3 text-xs`,children:C(e.synced,{onFalse:ot,onTrue:at})})]}),(0,X.jsx)(ge,{children:(0,X.jsx)(O,{variant:`destructive`,disabled:S(o),onClick:()=>s(e.id),children:`Remove`})})]},e.id),t[3]=s,t[4]=o,t[5]=p):p=t[5];let m=T(r,p),h;t[6]!==i||t[7]!==c?(h=S(i)||S(c),t[6]=i,t[7]=c,t[8]=h):h=t[8];let g;t[9]!==a||t[10]!==l||t[11]!==e.via?(g=()=>C(e.via===`Code`,{onFalse:()=>a(),onTrue:()=>l()}),t[9]=a,t[10]=l,t[11]=e.via,t[12]=g):g=t[12];let v;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,X.jsx)(Re,{}),t[13]=v):v=t[13];let y;t[14]!==h||t[15]!==g?(y=(0,X.jsxs)(O,{disabled:h,onClick:g,children:[v,`Add a passkey`]}),t[14]=h,t[15]=g,t[16]=y):y=t[16];let x;return t[17]!==u||t[18]!==d||t[19]!==f||t[20]!==m||t[21]!==y?(x=(0,X.jsxs)(u,{children:[d,f,m,y]}),t[17]=u,t[18]=d,t[19]=f,t[20]=m,t[21]=y,t[22]=x):x=t[22],x}function at(){return`Synced`}function ot(){return`One device`}function st(e){return(0,X.jsx)(O,{disabled:!0,children:(0,X.jsxs)(`span`,{className:`text-destructive text-xs`,children:[`Passkeys unavailable · `,e.message]})})}function ct(){return null}function lt(){return[]}function ut(e){let t=(0,Y.c)(32),[n,r]=R(_e),i=Se(z),a,o;t[0]!==i||t[1]!==e.account.via?(a=()=>{sessionStorage.getItem(`adding-passkey`)!==null&&(sessionStorage.removeItem(Te),e.account.via!==`Code`&&i())},o=[i,e.account.via],t[0]=i,t[1]=e.account.via,t[2]=a,t[3]=o):(a=t[2],o=t[3]),(0,J.useEffect)(a,o);let s;t[4]!==e.account.id||t[5]!==e.account.name?(s=(0,X.jsx)(ue,{"aria-label":`Account`,className:`focus-visible:ring-ring rounded-full outline-none focus-visible:ring-2`,children:(0,X.jsx)(je,{id:e.account.id,name:e.account.name})}),t[4]=e.account.id,t[5]=e.account.name,t[6]=s):s=t[6];let c=e.account.fullName??e.account.name,l;t[7]===c?l=t[8]:(l=(0,X.jsx)(`span`,{className:`text-foreground block text-sm`,children:c}),t[7]=c,t[8]=l);let u=e.account.name,d;t[9]===e.account.role?d=t[10]:(d=te(e.account.role),t[9]=e.account.role,t[10]=d);let f=`@${u} · ${d}`,p;t[11]!==l||t[12]!==f?(p=(0,X.jsx)(U,{children:(0,X.jsxs)(P,{children:[l,f]})}),t[11]=l,t[12]=f,t[13]=p):p=t[13];let m;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,X.jsx)(A,{}),t[14]=m):m=t[14];let h;t[15]!==e.account.role||t[16]!==e.account.via?(h=e.account.role!==`Waiting`&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(it,{via:e.account.via}),(0,X.jsx)(A,{})]}),t[15]=e.account.role,t[16]=e.account.via,t[17]=h):h=t[17];let g;t[18]===n?g=t[19]:(g=S(n),t[18]=n,t[19]=g);let _;t[20]===r?_=t[21]:(_=()=>r(),t[20]=r,t[21]=_);let v;t[22]!==g||t[23]!==_?(v=(0,X.jsx)(O,{variant:`destructive`,disabled:g,onClick:_,children:`Sign out`}),t[22]=g,t[23]=_,t[24]=v):v=t[24];let y;t[25]!==h||t[26]!==v||t[27]!==p?(y=(0,X.jsxs)(pe,{align:`end`,className:`w-auto min-w-48`,children:[p,m,h,v]}),t[25]=h,t[26]=v,t[27]=p,t[28]=y):y=t[28];let b;return t[29]!==y||t[30]!==s?(b=(0,X.jsxs)(de,{children:[s,y]}),t[29]=y,t[30]=s,t[31]=b):b=t[31],b}function dt(){let e=(0,Y.c)(32),[t,n]=R(k),[r,i]=R(B),[a,s]=R(V),c;e[0]===t?c=e[1]:(c=S(t),e[0]=t,e[1]=c);let l;e[2]===n?l=e[3]:(l=()=>n(),e[2]=n,e[3]=l);let u;e[4]===t?u=e[5]:(u=C(S(t),{onFalse:ht,onTrue:mt}),e[4]=t,e[5]=u);let d;e[6]!==c||e[7]!==l||e[8]!==u?(d=(0,X.jsxs)(o,{size:`lg`,disabled:c,onClick:l,children:[u,`Sign in with GitHub`]}),e[6]=c,e[7]=l,e[8]=u,e[9]=d):d=e[9];let f;e[10]===a?f=e[11]:(f=S(a),e[10]=a,e[11]=f);let p;e[12]===s?p=e[13]:(p=()=>s(),e[12]=s,e[13]=p);let m;e[14]===a?m=e[15]:(m=C(S(a),{onFalse:pt,onTrue:ft}),e[14]=a,e[15]=m);let h;e[16]!==f||e[17]!==p||e[18]!==m?(h=(0,X.jsxs)(o,{size:`lg`,variant:`outline`,disabled:f,onClick:p,children:[m,`Sign in with a passkey`]}),e[16]=f,e[17]=p,e[18]=m,e[19]=h):h=e[19];let g;e[20]===r?g=e[21]:(g=S(r),e[20]=r,e[21]=g);let _;e[22]===i?_=e[23]:(_=()=>i(),e[22]=i,e[23]=_);let v;e[24]!==g||e[25]!==_?(v=(0,X.jsx)(o,{size:`lg`,variant:`outline`,disabled:g,onClick:_,children:`Sign in with a code`}),e[24]=g,e[25]=_,e[26]=v):v=e[26];let y;e[27]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,X.jsx)(Be,{}),e[27]=y):y=e[27];let b;return e[28]!==v||e[29]!==d||e[30]!==h?(b=(0,X.jsxs)(`section`,{className:`flex flex-1 flex-col justify-center gap-2 pb-12`,"aria-label":`Sign in`,children:[d,h,v,y]}),e[28]=v,e[29]=d,e[30]=h,e[31]=b):b=e[31],b}function ft(){return(0,X.jsx)($,{})}function pt(){return(0,X.jsx)(K,{})}function mt(){return(0,X.jsx)($,{})}function ht(){return(0,X.jsx)(Z,{})}function gt(){let e=(0,Y.c)(8),[t,n]=R(Ee),r,a;e[0]===n?(r=e[1],a=e[2]):(r=()=>n(),a=[n],e[0]=n,e[1]=r,e[2]=a),(0,J.useEffect)(r,a);let l;if(e[3]!==n||e[4]!==t){let r;e[6]===n?r=e[7]:(r=e=>(0,X.jsxs)(u,{role:`alert`,children:[(0,X.jsxs)(i,{children:[(0,X.jsx)(p,{children:`Sign-out failed`}),(0,X.jsx)(s,{children:e.message})]}),(0,X.jsx)(c,{children:(0,X.jsx)(o,{variant:`outline`,onClick:()=>n(),children:`Try again`})})]}),e[6]=n,e[7]=r),l=b(_(t),{onNone:_t,onSome:r}),e[3]=n,e[4]=t,e[5]=l}else l=e[5];return l}function _t(){return(0,X.jsx)(u,{role:`status`,children:(0,X.jsx)(i,{children:(0,X.jsx)(p,{children:`Signing out…`})})})}function vt(){let e=(0,Y.c)(21),t=I(ve).value,n;e[0]===t?n=e[1]:(n=b(t,{onNone:Ot,onSome:Dt}),e[0]=t,e[1]=n);let r;e[2]===t?r=e[3]:(r=g(t,Et)&&(0,X.jsx)(J.Suspense,{fallback:null,children:(0,X.jsx)(tt,{})}),e[2]=t,e[3]=r);let i;e[4]===t?i=e[5]:(i=b(E(t,Tt),{onNone:wt,onSome:Ct}),e[4]=t,e[5]=i);let a;e[6]!==n||e[7]!==r||e[8]!==i?(a=(0,X.jsx)(M,{icon:ze,name:`auth`,account:n,tabs:r,commands:i}),e[6]=n,e[7]=r,e[8]=i,e[9]=a):a=e[9];let o;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(o=D&&(0,X.jsx)(gt,{}),e[10]=o):o=e[10];let s;e[11]===t?s=e[12]:(s=b(N,{onNone:St,onSome:e=>(0,X.jsx)(Xe,{account:t,id:e})}),e[11]=t,e[12]=s);let c;e[13]===t?c=e[14]:(c=b(t,{onNone:xt,onSome:yt}),e[13]=t,e[14]=c);let l;e[15]!==s||e[16]!==c?(l=(0,X.jsxs)(Q,{className:`max-w-xl`,children:[o,s,c]}),e[15]=s,e[16]=c,e[17]=l):l=e[17];let u;return e[18]!==a||e[19]!==l?(u=(0,X.jsxs)(X.Fragment,{children:[a,l]}),e[18]=a,e[19]=l,e[20]=u):u=e[20],u}function yt(e){return C(re(N)&&e.role!==`Waiting`,{onFalse:()=>(0,X.jsx)(rt,{account:e}),onTrue:bt})}function bt(){return null}function xt(){return h(N)&&!D&&(0,X.jsx)(dt,{})}function St(){return null}function Ct(){return[]}function wt(){}function Tt(e){return e.role!==`Waiting`}function Et(e){return e.role===`Admin`}function Dt(e){return(0,X.jsx)(ut,{account:e})}function Ot(){return!1}function kt(){let e=(0,Y.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,X.jsx)(M,{icon:ze,name:`auth`,account:!1}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(J.Suspense,{fallback:(0,X.jsxs)(X.Fragment,{children:[t,(0,X.jsx)(Q,{className:`max-w-xl`,children:(0,X.jsx)(F,{label:`Apps`,media:!0,rows:9})})]}),children:(0,X.jsx)(vt,{})}),e[1]=n):n=e[1],n}export{kt as component};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{n as e,t}from"./rolldown-runtime-WkwZ5CU-.js";import{i as n,n as r,o as i,s as a}from"./react-BUjtWCUj.js";import{Bi as o,Bt as s,Ca as c,Dr as l,Dt as u,E as d,Et as f,Fi as p,Ft as m,Ga as h,Gi as g,Gr as _,Gt as v,It as y,J as b,Jr as x,Ka as S,Kt as C,Mt as w,Ot as T,Q as ee,Qa as E,Qi as D,Ut as te,Wa as ne,Xa as O,Ya as k,Yr as A,Zi as re,_ as j,at as M,c as ie,ci as ae,cr as oe,di as se,fa as N,fi as P,g as ce,gt as le,ht as F,li as ue,m as de,mt as fe,nt as pe,o as me,p as he,pa as ge,pi as _e,pt as ve,q as ye,qa as be,s as xe,st as Se,ui as Ce,xt as we,yt as Te}from"./effect-DksNtAHN.js";function Ee(e){return e[e.length-1]}function De(e,t){return typeof e==`function`?e(t):e}var Oe=Object.prototype.hasOwnProperty;function ke(e){for(let t in e)if(Oe.call(e,t))return!0;return!1}var Ae=()=>Object.create(null),je=(e,t)=>Me(e,t,!0);function Me(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&&!(Ne(e)&&Ne(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&&Ee(a)!==`${o-1}`||c&&Ee(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`?Me(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`?Me(d,o,n,r):o,i&&=u===d&&(a[l]===f||Oe.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?Ae():{};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`?Me(d,u,n,r):u),p[f]=o<l?d:u):p[f]=a[o];return p}function Ne(e){return!e||typeof e!=`object`?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function Pe(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&&!Pe(a,o,n,r))return!1}return!0}if(Ne(e)&&Ne(t)){if(n){for(let i in t)if((r||t[i]!==void 0)&&!Pe(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||!Pe(e[a],t[a],n,r)))return!1;return i===0}return!1}function Fe(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 Ie=/[\x00-\x1f\x7f"<>`{}]/g;function Le(e){return e.replace(Ie,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function Re(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 Le(t)}var ze=[`http:`,`https:`,`mailto:`,`tel:`];function Be(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 Ve=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function He(e,t){if(!e)return!1;if(Ve.test(e))return!0;let n=Be(e);return n?!t.has(n):!1}var Ue={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},We=/[&><\u2028\u2029]/g;function Ge(e){return e.replace(We,e=>Ue[e])}function Ke(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+=Re(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=Re(r?e.slice(r):e)}return t}function qe(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function Je(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 Ye(){throw Error(`Invariant failed`)}function Xe(e){return e.replace(/\/{2,}/g,`/`)}function Ze(e){return e===`/`?e:e.replace(/^\/+/,``)}function Qe(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function $e(e){return Qe(Ze(e))}function et(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function tt(e,t,n=`never`,r){if(t.includes(`//`)&&(t=Xe(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=Xe(e)),o=e.split(`/`);o.length>1&&Ee(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&&(Ee(o)===``?n===`never`&&o.pop():n===`always`&&o.push(``));let s=o.join(`/`),c=(i?Xe(s):s)||`/`;return a&&r&&r.set(a,c),c}function nt(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 rt(e){return e==null||e===``}function it(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 at(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&&rt(f)){if(c===`/`&&!d)continue;f=``}o+=c+it(s,f,r)+(d||``)}}return o+a||`/`}function ot(e){return e?.isNotFound===!0}var st=`__root__`;function ct(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 lt(e){return e instanceof Response&&!!e.options}function ut(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var dt=4,ft=5;function pt(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 mt(e,t,n){let r=e.slice(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.slice(1),``,``];let i=r.indexOf(`{`);if(i>=0){let a=r.indexOf(`}`,i),o=r.charCodeAt(i+1)===45,s=i+(o?3:2);if(a>=0&&r.charCodeAt(s-1)===36&&(!o||s<a)){let c=r.slice(s,a);return[o?3:c?1:2,c||`_splat`,r.slice(0,i),e.slice(t+a+1,c?n:e.length)]}}return r}function ht(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=Ee(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=mt(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=_t(r);c=n,t.set(e,n)}}else{let t=a[0],h=a[2],g=a[3]??``;if(t===2&&(n=l,o=n+1),p&&m<n&&(m<e-1&&p.push(s.slice(m,e-1)),a[2]=`/`+h,t===2&&a[3]!==void 0&&u<l&&(a[3]=g.slice(0,-1)),p.push(a),m=n),!r)continue;let _=d&&!!(h||g);d||(h=h.toLowerCase(),g=g.toLowerCase());let v=t===1?r.dynamic??=[]:t===3?r.optional??=[]:r.wildcard??=[],y=t!==2&&!f&&v.find(e=>!e.parse&&e.caseSensitive===_&&e.prefix===h&&e.suffix===g);if(y)c=y;else{let e=_t(r,t,_,h,g);c=e,v.push(e),v.length===2&&i?.push(v)}}r=c}p&&m<u&&p.push(s.slice(m,u));let h=p?.slice();if(!r)return h;if(f&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf(`/`)+1)===95){let e=_t(r,ft);(r.pathless??=[]).push(e),r=e}let g=(t.path||!t.children)&&!t.isRoot;if(g&&u<l){let e=_t(r,dt);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 gt(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 _t(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 vt(e,t){let n=_t(),r=[];function i(e,t,n,a){let[o,s,c]=ht(!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(gt);t.masksTree=n,t.flatCache=ut(1e3)}function yt(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=Ct(e,t.masksTree);return t.flatCache.set(e,r),r}function bt(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=_t(),ht(t,{from:e},1,o),i.singleCache.set(a,o)),Ct(r,o,n)}function xt(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=Ct(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Tt(a.route)),t.matchCache.set(r,a),a}function St(e,t=!1){let n=_t(),r=[],i={},a={},o=0;function s(e,n,c,l){if(e.init(o),e.id in i&&Ye(),i[e.id]=e,o!==0&&e.path){let t=Qe(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}o++;let[u,d,f]=ht(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(gt);return{processedTree:{segmentTree:n,singleCache:ut(1e3),matchCache:ut(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function Ct(e,t,n=!1){let r=e.split(`/`),i=Dt(e,r,t,n);if(!i)return null;let[a]=wt(e,r,i);return{route:i.node.route,rawParams:a}}function wt(e,t,n){let r=Et(n.node),i=n.node.data&&pt(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===dt)break;if(u.kind===ft){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 Tt(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Et(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Dt(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!Ee(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&&!jt(l,n))continue;if(i.parse){if(!At(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==dt&&jt(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===dt||i.kind===2)&&jt(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&&(At(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&kt(f,o))return n;jt(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+Ot(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+Ot(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+Ot(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+Ot(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 Ot(e,t){return 2**(e-t-1)}function kt(e,t){return e===2**(t-1)-1}function At(e,t,n){let r,i;try{[r,i]=wt(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 jt(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===dt)>(e.node.kind===dt)||t.node.kind===dt==(e.node.kind===dt)&&t.node.depth>e.node.depth)))}function Mt(){try{return sessionStorage}catch{return}}var Nt=`tsr-scroll-restoration-v1_3`,Pt=Mt();function Ft(){try{return JSON.parse(Pt?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var It=Ft(),Lt=`data-scroll-restoration-id`,Rt=e=>e.state.__TSR_key||e.href;function zt(e){let t=e.getAttribute(Lt);if(t)return`[${Lt}="${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 Bt=!1,Vt=`window`;function Ht(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Ut(e){let t=new Set;for(let n of e){if(n===Vt)continue;let e=Ht(n);e&&t.add(e)}return t}function Wt(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||Rt,a=new Set,o=e=>{let t=It[e]||={};for(let e of a)e===document?t[Vt]={scrollX,scrollY}:e.isConnected&&(t[zt(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,Bt=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{Bt||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{Pt?.setItem(Nt,JSON.stringify(It))}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=It[d];if(e){let t=It[u];for(let n in e){if(n===Vt){if(s)continue}else{let e=Ht(n);if(!e||s&&o&&(l??=Ut(o),l.has(e)))continue}t||=It[u]={},t[n]??=e[n]}}}Bt=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=Ut(o));let t=e&&i&&c,s=r.e?It[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===Vt){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=Ht(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{Bt=!1}}))}function Gt(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 Kt(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function qt(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]=Kt(r):Array.isArray(t)?t.push(Kt(r)):n[e]=[t,Kt(r)]}return n}var Jt=/^(?:\s|["[{\d-]|fa|nu|tr)/,Yt=Zt(JSON.parse),Xt=Qt(JSON.stringify,JSON.parse);function Zt(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.slice(1));let r=qt(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!Jt.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function Qt(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&&!Jt.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=Gt(e,r);return t?`?${t}`:``}}function $t(e,t,n){let r=$e(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=Xe(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>en(n,s.input({url:e})),output:({url:e})=>s.output({url:tn(n,e)})}:s}function en(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 tn(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 nn(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(()=>{Je(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 rn=`__TSR_index`,an=`popstate`,on=`beforeunload`,sn=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function cn(e){let t=sn.exec(e);return t?`/`+e.slice(t[0].length):e}function ln(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`
|
|
2
|
+
\r`.includes(e)?``:encodeURIComponent(e))),cn(e)}function un(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async n=>{let r=n.navigateOpts?.ignoreBlocker?void 0:e.getBlockers?.();if(typeof document<`u`&&r?.length&&(n.type===`PUSH`||n.type===`REPLACE`))for(let i of r){let r=pn(n.path,n.state);if(await i.blockerFn({currentLocation:t,nextLocation:r,action:n.type})){e.onBlocked?.();return}}n.task()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[rn];i=dn(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[rn];i=dn(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[rn]!==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 dn(e,t){let n=mn();return{...t,key:n,__TSR_key:n,[rn]:e}}function fn(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=>ln(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>pn(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=mn();t.history.replaceState({[rn]: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=pn(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[rn]-l.state[rn],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let r=a();if(typeof document<`u`&&r.length){for(let i of r)if(await i.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(-n),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0||typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=un({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0,m=!0),t.history.back()),forward:e=>{e&&(p=!0,m=!0),t.history.forward()},go:(e,n)=>{d=!0,n&&(p=!0,m=!0),t.history.go(e)},createHref:s,flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(on,x,{capture:!0}),t.removeEventListener(an,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(on,x,{capture:!0}),t.addEventListener(an,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 pn(e,t){let n=ln(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=mn();t={[rn]:0,key:e,__TSR_key:e}}return{href:n,pathname:n.slice(0,r>-1?i>-1?Math.min(r,i):r:i>-1?i:n.length),hash:r>-1?n.slice(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t}}function mn(){return(Math.random()+1).toString(36).slice(7)}function hn(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function gn(e){return e.pathname+e.search+e.hash}function _n(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function vn(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function yn({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function bn(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function xn(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 Sn=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:fn()),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!==`/`&&$e(n)?$t(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=nn(this.latestLocation,e),Wt(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=St(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&vt(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:ut(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:Ke(e),external:!1,searchStr:o,search:je(t?.search,i),hash:Ke(r.slice(1)),state:Me(t?.state,a)}}let o=en(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:Ke(cn(o.pathname)),external:!!this.rewrite&&hn(o,this.origin),searchStr:c,search:je(t?.search,s),hash:Ke(o.hash.slice(1)),state:Me(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=xt(Qe(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=pn(n.href,{});n={...n,to:en(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let r=e._fromLocation||this._pendingLocation||this.latestLocation,i,a=()=>(t=!0,r),o=()=>i??=this.matchRoutesLightweight(a()),s=n.to?`${n.to}`:`.`,c=tt(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),l=this.routesByPath[Qe(c)],u=c.includes(`$`),d;if(l)d=l._branch??=Tt(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??ht(!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??=Dn(n.params,e),!ke(p))break;p===e&&(p=Object.assign(Ae(),p));try{Object.assign(p,t(p))}catch{}}}p??=Dn(n.params,On(n.params,f)?o()[3]:kn);let m=e.leaveParams?c:cn(Ke(f?at(c,f,p,this.pathParamsDecoder):c)),h=An(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,En(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},_=h.length?jn(h,g(),n):n.search===!0?g():typeof n.search==`function`?n.search(g()):n.search||kn,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:kn,S=`${m}${v}${b}`,C,w,T=!1;if(this.rewrite){let e=new URL(S,this.origin),t=e.origin,n=tn(this.rewrite,e);C=gn(e),hn(n,t)?(w=n.href,T=!0):w=cn(gn(n))}else C=qe(S),w=C;return{publicHref:w,href:C,pathname:m,search:_,searchStr:v,state:x,hash:y??``,external:T,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=yt(r.pathname,this.processedTree);if(t){let i=Object.assign(Ae(),t.rawParams),{from:a,params:o,...s}=t.route,c=Dn(o,i);r.maskedLocation=n({from:e.from,...s,params:c})}}return!t&&e._fromLocation&&this.staticLocations.set(e,r),r},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=n.maskedLocation??n;if(r.external)return Cn(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=Qe(this.latestLocation.href)===Qe(n.href)&&Pe(yn(n.state),yn(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?Be(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 Cn(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 Cr(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(vn(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`)&&_n(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(Ve.test(n)||(r=Be(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:hn(e,this.origin)||(n=gn(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=In,this.preloadRoute=e=>wr(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?tt(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=bt(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!Pe(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?Pe(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=nt(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??Xt,parseSearch:e.parseSearch??Yt,protocolAllowlist:e.protocolAllowlist??ze}),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=ht(!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[`**`]:Qe(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?Mn(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=En(i.options.validateSearch,{...n})??void 0;l={...n,...e},f={...r,...e}}catch(e){let r=e;if(e instanceof wn||(r=new wn(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=Ae(),_=i._interpolation?at(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{Nn(i,d)}catch(e){if(x=ot(e)||lt(e)?e:new Tn(e.message,{cause:e}),t?.throwOnError)throw x}let S=y?`stay`:`enter`,C;if(b)C={...b,cause:S,search:je(y?y.search:b.search,l),_strictSearch:f,searchError:p};else{let e=_n(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?je(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?Me(y.loaderDeps,m):m,invalid:!1,preload:!1,staticData:i.options.staticData||{},fullPath:i.fullPath}}let w=s===i.id;C._notFound&&!w&&(C.error=void 0),C._notFound=w,c[n]=C}for(let e=0;e<c.length;e++){let n=c[e];n.params=n.cause===`stay`?je(n.params,d):d,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=Ee(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=Ee(a),c={...e.search};for(let e of a)try{Object.assign(c,En(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{Nn(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}};async function Cn(e,t,{replace:n,ignoreBlocker:r}){if(!He(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 wn=class extends Error{},Tn=class extends Error{};function En(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new wn(`Async validation not supported`);if(n.issues)throw new wn(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 Dn(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 On(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!Oe.call(e,t[1]))}var kn=Object.freeze({});function An(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=En(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 jn(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=De(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 Mn(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 st}function Nn(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function Pn(e,t){return e.options[t]?.preload?.()}function Fn(e,t){let n=Pn(e,`component`),r=Pn(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function In(e,t,n){let r=()=>t===!1?void 0:t?Pn(e,t):Fn(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 Ln(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function Rn(e,t,n){let r=e._tx;return t&&r?.[2]===n&&!r[3].some(e=>e.routeId===t)}function zn(e){let t=e.length;for(let n=0;n<t;n++){let r=e[n];if(r._assetEnd!==void 0)t=Math.min(t,Math.max(n+1,r._assetEnd));else if(r.status!==`success`||r._notFound){t=n+1;break}}return t<e.length?e.slice(0,t):e}var Bn=0,Vn=1,Hn=2,I=3,Un=[4];function Wn(e){return typeof e[0]==`number`}function Gn(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 Kn(e,t){return e.routesById[t.routeId]}function qn(e,t,n){return lt(e)?[I,e]:ot(e)?(e.routeId||=n,[Hn,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[Vn,e]):[Bn,e]}function Jn(e,t){let n=qn(t,!0,e.id);if(n[0]!==Vn)return n;try{e.options.onError?.(n[1])}catch(t){n=qn(t,!0,e.id)}return n}function Yn(e,t,n,r,i){return i[0].signal.aborted?Un:ur(e,t,n,Jn(n,r),i)}async function Xn(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=Kn(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 Qn(e,r),[i,Yn(e,t,u,a,n)]}if(c.aborted)return[i,Un];let p=r.paramsError??r.searchError;if(p!==void 0)return Qn(e,r),[i,Yn(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{er(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?Gn(a,c):a);if(c.aborted)return[i,Un];let s=ur(e,t,u,qn(o,!1,u.id),n);if(s[0]!==Bn)return Qn(e,r),[i,s];r.context={...r.context,...o}}catch(a){return Qn(e,r),[i,Yn(e,t,u,a,n)]}finally{r.status=h,er(e,r,!1,n[0])}}i()}function Zn(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 Qn(e,t){let n=t._flight;t._flight=void 0,Zn(e,t,n)?.abort()}function L(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=Zn(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function $n(e){for(let t of e){let e=t._flight;e&&e[2]++}}function er(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 tr(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 nr(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return Un;if(!i)return[Bn,void 0];let l=n._flight;er(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(tr(e,t,n,r,s,a,!!o[3]))).then(e=>qn(e,!1,r.id),e=>qn(e,!0,r.id)).then(t=>(t[0]!==Bn&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===Vn&&l[2]?Jn(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],ur(e,t,r,await Gn(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return Qn(e,n),Un}finally{er(e,n,!1,s)}}function rr(e,t,n){t[0]!==I&&(e.status=`success`,e.error=void 0,t[0]===Bn?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function ir(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&&Qn(e,r)}function ar(e,t){return t[0]===Vn||t[0]===Hn?{...e,status:t[0]===Vn?`error`:`notFound`,error:t[1],_flight:void 0}:e}function or(e,t,n,r,i,a,o){let s=t[1][n],c=Kn(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(tr(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=Un)),!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,Qn(e,s),p=Yn(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,Zn(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?nr(e,t,s,c,g,i,a).then(t=>(rr(s,t,l),t[0]===Bn&&(m&&!a[0].signal.aborted&&ir(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[Bn,s.loaderData]),T=(async()=>{try{let e=In(c,void 0,C);e&&await Gn(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,Yn(e,t,c,r,a)]}let r=await w;x&&r[0]===Bn&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,T]),!y)return w.then(e=>ar(s,e));let ee={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let E=nr(e,t,ee,c,g,i,a).then(e=>(s.isFetching=!1,rr(ee,e,!1),e));return(t[2]??=[]).push([n,E,T,ee]),E.then(e=>ar(ee,e))}async function sr(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=Kn(e,t[n]);try{let e=In(i,!1);e&&await Gn(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function cr(e,t){t[2]&&=(L(e,t[2].map(e=>e[3])),void 0)}async function lr(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=I)throw[a,t];!i&&t[0]!==Bn&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===I)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function ur(e,t,n,r,i,a){for(;r[0]===I;){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]?[I,t]:[I,t,a]}return[I,o,n]}catch(e){r=a?[Vn,e]:Jn(n,e),a=!0}}return r}async function dr(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]===Hn?sr(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=I)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]!==Bn&&t[0]<I&&!(`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)>=I){let n=s[1];if(n[0]!==I||n[1].options.reloadDocument||n[2])return cr(e,t),n;c=!0,s=[0,[Vn,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===Vn?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=Kn(e,u);try{await Gn(i?Promise.resolve().then(()=>In(m,l===Vn?`errorComponent`:`notFoundComponent`)):Promise.all([In(m),In(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return cr(e,t),Un}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),cr(e,t),L(e,o),p()):u.status=`success`}return t}async function fr(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=Kn(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 Gn(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 pr(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 sr(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=or(e,i,t,u,f,r,l)},m=await Xn(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===Hn){let t=await sr(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=I&&(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=dr(e,i,u,r[0],lr(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=lr(i[2],void 0,void 0,h.then(e=>Wn(e)?0:Ln(n).length,()=>0))),o=await h}catch(t){if(cr(e,i),t===a&&a.aborted)return Un;throw t}return Wn(o)?o:fr(e,o,a,r[6]===n.length?r[6]:0)}function mr(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=Kn(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(()=>mr(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 hr(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 gr(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!Ln(t[3]).some(e=>e.id===n[1]))return;let i;try{await Gn(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function _r(e,t){e._committed=t,e.stores.setMatches(t)}function vr(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=Ln(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=Kn(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=bn(n);_r(e,n),L(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),xn(e,i,n,a,l,t)}async function yr(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function br(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 xr(e,t,n,r,i){let a=n.map(e=>({...e}));$n(a);for(let t of r)Qn(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await dr(e,o,r,t[0],i)}catch(t){throw L(e,a),t}if(Wn(s))L(e,a),s[0]===I&&e._tx===t&&e._committed===n&&await br(e,t,s);else if(await fr(e,s,t[0].signal),e._tx!==t||e._committed!==n)L(e,a);else{for(let t of a){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),Qn(e,n))}_r(e,a),L(e,n,a)}}async function Sr(e,t,n,r,i,a){let o=await pr(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(Wn(o)){let n=o[0]===I&&e._tx===t;if((!n||o[1].options.reloadDocument)&&hr(e,t),L(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){hr(e,t);return}await br(e,t,o);return}let s=o[1];if(e._tx===t&&await gr(e,t),e._tx!==t){hr(e,t),L(e,s),cr(e,o);return}let c=t[2],l=vn(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await gr(e,t),e._tx!==t){hr(e,t),L(e,s),cr(e,o);return}let n=await e.startTransition(()=>{hr(e,t),vr(e,t,s,a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s);e._tx===t?(u?.length&&xr(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)):cr(e,o)})}async function Cr(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=vn(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await yr(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});$n(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){L(e,m),await yr(e,n);return}e._preflight=void 0;let g,_=()=>Sr(e,y,f,()=>mr(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(()=>yr(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&er(e,t,!1)}n[0].abort(),L(e,n[3],y[3],!0)}e._tx===y?(e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),(h||!e._committed.length&&m[0]?.status!==`success`&&!m.some(e=>e._notFound))&&mr(e,y),g?.(_()),await y[5]):(L(e,y[3]),y[3]=[],g?.(),await yr(e,y))}async function wr(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}),$n(a),o=(e._preloads??=new Map).set(i,a),s=await pr(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),L(e,a)),i.abort()}if(!Wn(s))return s[1];if(!o||s.length<3)return;n=s[2]}catch(e){ot(e)||console.error(e);return}}}var Tr=t((e=>{var t=a();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),a=r[0].inst,l=r[1];return s(function(){a.value=n,a.getSnapshot=t,u(a)&&l({inst:a})},[e,n,t]),o(function(){return u(a)&&l({inst:a}),e(function(){u(a)&&l({inst:a})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Er=t(((e,t)=>{t.exports=Tr()})),Dr=t((e=>{var t=a(),n=Er();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,o=n.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,a){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),a!==void 0&&f.hasValue){var t=f.value;if(a(t,e))return c=t}return c=e}if(t=c,i(s,e))return t;var n=r(e);return a!==void 0&&a(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,a]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),Or=t(((e,t)=>{t.exports=Dr()}));function kr({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0)n=e.nextSub;else{for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}}while(1)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(1)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Ar(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var jr=[],Mr=0,{link:Nr,unlink:Pr,propagate:Fr,checkDirty:Ir,shallowPropagate:Lr}=kr({update(e){return e._update()},notify(e){jr[zr++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,Hr(e))}}),Rr=0,zr=0,R,Br=0;function Vr(e){try{++Br,e()}finally{--Br||Ur()}}function Hr(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Pr(n,e)}function Ur(){if(!(Br>0)){for(;Rr<zr;){let e=jr[Rr];jr[Rr++]=void 0,e.notify()}Rr=0,zr=0}}function Wr(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:+!n,get(){return R!==void 0&&Nr(i,R,Mr),i._snapshot},subscribe(e){let t=Ar(e),n={current:!1},r=Gr(()=>{i.get(),n.current?(R=void 0,t.next?.(i._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=R,o=t?.compare??Object.is;if(n)R=i,++Mr,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{R=a,n&&(i.flags&=-5),Hr(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&Ir(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Lr(e)}}else e&32&&(i.flags=e&-33);return R!==void 0&&Nr(i,R,Mr),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Fr(e),Lr(e),Ur())}},i}function Gr(e){let t=()=>{let t=R;R=n,++Mr,n.depsTail=void 0,n.flags=6;try{return e()}finally{R=t,n.flags&=-5,Hr(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&&Ir(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,Hr(this)}};return t(),n}var Kr=e=>({createMutableStore:Wr,createReadonlyStore:Wr,batch:Vr}),qr=e=>new Jr(e),Jr=class extends Sn{constructor(e){super(e,Kr)}},z=e(a(),1),Yr=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Xr(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Yr(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Zr=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},Qr=e=>{let t=Zr(e);return t.charAt(0).toUpperCase()+t.slice(1)},$r=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),ei={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function ti(e){return e!=null}function ni(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??ei.width,a=e.size??e.height??ei.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?$r(...c):$r(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??ei[`stroke-width`])*Number(e.size??e.width??ei.width)/Number(t.size??t.width??ei.width):t.strokeWidth??ei[`stroke-width`];return[`svg`,{...Object.entries(ei).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&ti(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&ti(t.width)&&{[r(`width`)]:t.width},...`height`in t&&ti(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function ri(e,t={}){return ni(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var ii=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},ai=(0,z.createContext)({}),oi=()=>(0,z.useContext)(ai),si=(0,z.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=oi()??{},y=!!c||ii(d),[b,x,S=[]]=ri(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:$r(v,s),hasA11yProp:y,attributes:d});return(0,z.createElement)(b,{ref:f,...x},[...S.map(([e,t])=>(0,z.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function ci(e,t=[],n=[]){let r=typeof e==`string`?Xr(e,t,n):e,i=(0,z.forwardRef)(({className:e,...t},n)=>(0,z.createElement)(si,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Qr(r.name)),i}var li={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};li.node;var ui=ci(li),di={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};di.node;var fi=ci(di),pi={name:`octagon-x`,size:24,node:[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-octagon`]};pi.node;var mi=ci(pi),hi={name:`octagon-alert`,size:24,node:[[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z`,key:`1fd625`}]],aliases:[`alert-octagon`]};hi.node;var gi=ci(hi),_i={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};_i.node;var vi=ci(_i),yi={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};yi.node;var bi=ci(yi),xi={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};xi.node;var Si=ci(xi),B=r();function Ci(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ci(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function wi(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ci(e))&&(r&&(r+=` `),r+=t);return r}var Ti=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Ei=wi,Di=(e,t)=>n=>{if(t?.variants==null)return Ei(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Ti(t)||Ti(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Ei(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Oi=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},ki=(e,t)=>({classGroupId:e,validator:t}),Ai=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ji=`-`,Mi=[],Ni=`arbitrary..`,Pi=e=>{let t=Li(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Ii(e);let n=e.split(ji);return Fi(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Oi(i,t):t:i||Mi}return n[e]||Mi}}},Fi=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Fi(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(ji):e.slice(t).join(ji),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Ii=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Ni+r:void 0})(),Li=e=>{let{theme:t,classGroups:n}=e;return Ri(n,t)},Ri=(e,t)=>{let n=Ai();for(let r in e){let i=e[r];zi(i,n,r,t)}return n},zi=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Bi(i,t,n,r)}},Bi=(e,t,n,r)=>{typeof e==`string`?Vi(e,t,n):typeof e==`function`?Hi(e,t,n,r):Ui(e,t,n,r)},Vi=(e,t,n)=>{let r=e===``?t:Wi(t,e);r.classGroupId=n},Hi=(e,t,n,r)=>{Gi(e)?zi(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(ki(n,e)))},Ui=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];zi(o,Wi(t,a),n,r)}},Wi=(e,t)=>{let n=e,r=t.split(ji),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Ai(),n.nextPart.set(t,i)),n=i}return n},Gi=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Ki=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},qi=`!`,Ji=`:`,Yi=[],Xi=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Zi=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Ji){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(qi)?(c=s.slice(0,-1),l=!0):s.startsWith(qi)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Xi(t,l,c,u)};if(t){let e=t+Ji,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Xi(Yi,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Qi=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},$i=e=>({cache:Ki(e.cacheSize),parseClassName:Zi(e),sortModifiers:Qi(e),postfixLookupClassGroupIds:ea(e),...Pi(e)}),ea=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},ta=/\s+/,na=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(ta),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h||(g=r(p),!g)){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+qi:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},ra=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=ia(n))&&(i&&(i+=` `),i+=r);return i},ia=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=ia(e[r]))&&(n&&(n+=` `),n+=t);return n},aa=(e,...t)=>{let n,r,i,a,o=o=>(n=$i(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=na(e,n);return i(e,a),a};return a=o,(...e)=>a(ra(...e))},oa=[],V=e=>{let t=t=>t[e]||oa;return t.isThemeGetter=!0,t.themeKey=e,t},sa=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ca=/^\((?:(\w[\w-]*):)?(.+)\)$/i,la=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ua=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,da=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,fa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,pa=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ma=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ha=e=>la.test(e),H=e=>!!e&&!Number.isNaN(Number(e)),ga=e=>!!e&&Number.isInteger(Number(e)),_a=e=>e.endsWith(`%`)&&H(e.slice(0,-1)),va=e=>ua.test(e),ya=()=>!0,ba=e=>da.test(e)&&!fa.test(e),xa=()=>!1,Sa=e=>pa.test(e),Ca=e=>ma.test(e),wa=e=>!U(e)&&!W(e),Ta=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Ea=e=>Va(e,Ga,xa),U=e=>sa.test(e),Da=e=>Va(e,Ka,ba),Oa=e=>Va(e,qa,H),ka=e=>Va(e,Ya,ya),Aa=e=>Va(e,Ja,xa),ja=e=>Va(e,Ua,xa),Ma=e=>Va(e,Wa,Ca),Na=e=>Va(e,Xa,Sa),W=e=>ca.test(e),Pa=e=>Ha(e,Ka),Fa=e=>Ha(e,Ja),Ia=e=>Ha(e,Ua),La=e=>Ha(e,Ga),Ra=e=>Ha(e,Wa),za=e=>Ha(e,Xa,!0),Ba=e=>Ha(e,Ya,!0),Va=(e,t,n)=>{let r=sa.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ha=(e,t,n=!1)=>{let r=ca.exec(e);return r?r[1]?t(r[1]):n:!1},Ua=e=>e===`position`||e===`percentage`,Wa=e=>e===`image`||e===`url`,Ga=e=>e===`length`||e===`size`||e===`bg-size`,Ka=e=>e===`length`,qa=e=>e===`number`,Ja=e=>e===`family-name`,Ya=e=>e===`number`||e===`weight`,Xa=e=>e===`shadow`,Za=aa(()=>{let e=V(`color`),t=V(`font`),n=V(`text`),r=V(`font-weight`),i=V(`tracking`),a=V(`leading`),o=V(`breakpoint`),s=V(`container`),c=V(`spacing`),l=V(`radius`),u=V(`shadow`),d=V(`inset-shadow`),f=V(`text-shadow`),p=V(`drop-shadow`),m=V(`blur`),h=V(`perspective`),g=V(`aspect`),_=V(`ease`),v=V(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),W,U],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[W,U,c],T=()=>[ha,`full`,`auto`,...w()],ee=()=>[ga,`none`,`subgrid`,W,U],E=()=>[`auto`,{span:[`full`,ga,W,U]},ga,W,U],D=()=>[ga,`auto`,W,U],te=()=>[`auto`,`min`,`max`,`fr`,W,U],ne=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],O=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],k=()=>[`auto`,...w()],A=()=>[ha,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],re=()=>[s,ha,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],j=()=>[ha,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],M=()=>[e,W,U],ie=()=>[...b(),Ia,ja,{position:[W,U]}],ae=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],oe=()=>[`auto`,`cover`,`contain`,La,Ea,{size:[W,U]}],se=()=>[_a,Pa,Da],N=()=>[``,`none`,`full`,l,W,U],P=()=>[``,H,Pa,Da],ce=()=>[`solid`,`dashed`,`dotted`,`double`],le=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],F=()=>[H,_a,Ia,ja],ue=()=>[``,`none`,m,W,U],de=()=>[`none`,H,W,U],fe=()=>[`none`,H,W,U],pe=()=>[H,W,U],me=()=>[ha,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[va],breakpoint:[va],color:[ya],container:[va],"drop-shadow":[va],ease:[`in`,`out`,`in-out`],font:[wa],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[va],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[va],shadow:[va],spacing:[`px`,H],text:[va],"text-shadow":[va],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,ha,U,W,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,W,U]}],"container-named":[Ta],columns:[{columns:[H,`auto`,U,W,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[ga,`auto`,W,U]}],basis:[{basis:[ha,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[H,ha,`auto`,`initial`,`none`,U]}],grow:[{grow:[``,H,W,U]}],shrink:[{shrink:[``,H,W,U]}],order:[{order:[ga,`first`,`last`,`none`,W,U]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ne(),`normal`]}],"justify-items":[{"justify-items":[...O(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...O()]}],"align-content":[{content:[`normal`,...ne()]}],"align-items":[{items:[...O(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...O(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...O(),`baseline`]}],"place-self":[{"place-self":[`auto`,...O()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:A()}],"inline-size":[{inline:[`auto`,...re()]}],"min-inline-size":[{"min-inline":[`auto`,...re()]}],"max-inline-size":[{"max-inline":[`none`,...re()]}],"block-size":[{block:[`auto`,...j()]}],"min-block-size":[{"min-block":[`auto`,...j()]}],"max-block-size":[{"max-block":[`none`,...j()]}],w:[{w:[s,`screen`,...A()]}],"min-w":[{"min-w":[s,`screen`,`none`,...A()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...A()]}],h:[{h:[`screen`,`lh`,...A()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...A()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...A()]}],"font-size":[{text:[`base`,n,Pa,Da]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Ba,ka]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,_a,U]}],"font-family":[{font:[Fa,Aa,t]}],"font-features":[{"font-features":[U]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,W,U]}],"line-clamp":[{"line-clamp":[H,`none`,W,Oa]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,W,U]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,W,U]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ce(),`wavy`]}],"text-decoration-thickness":[{decoration:[H,`from-font`,`auto`,W,Da]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[H,`auto`,W,U]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[ga,W,U]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,W,U]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,W,U]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},ga,W,U],radial:[``,W,U],conic:[``,ga,W,U]},Ra,Ma]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":P()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ce(),`hidden`,`none`]}],"divide-style":[{divide:[...ce(),`hidden`,`none`]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...ce(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[H,W,U]}],"outline-w":[{outline:[``,H,Pa,Da]}],"outline-color":[{outline:M()}],shadow:[{shadow:[``,`inner`,`none`,u,za,Na]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":[`none`,d,za,Na]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:P()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[H,Da]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":[`none`,f,za,Na]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[H,W,U]}],"mix-blend":[{"mix-blend":[...le(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":le()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[H]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[W,U]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[H]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,W,U]}],filter:[{filter:[``,`none`,W,U]}],blur:[{blur:ue()}],brightness:[{brightness:[H,W,U]}],contrast:[{contrast:[H,W,U]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,za,Na]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:[``,H,W,U]}],"hue-rotate":[{"hue-rotate":[H,W,U]}],invert:[{invert:[``,H,W,U]}],saturate:[{saturate:[H,W,U]}],sepia:[{sepia:[``,H,W,U]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,W,U]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[H,W,U]}],"backdrop-contrast":[{"backdrop-contrast":[H,W,U]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,H,W,U]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[H,W,U]}],"backdrop-invert":[{"backdrop-invert":[``,H,W,U]}],"backdrop-opacity":[{"backdrop-opacity":[H,W,U]}],"backdrop-saturate":[{"backdrop-saturate":[H,W,U]}],"backdrop-sepia":[{"backdrop-sepia":[``,H,W,U]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,W,U]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[H,`initial`,W,U]}],ease:[{ease:[`linear`,`initial`,_,W,U]}],delay:[{delay:[H,W,U]}],animate:[{animate:[`none`,v,W,U]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,W,U]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":[`scale-3d`],skew:[{skew:pe()}],"skew-x":[{"skew-x":pe()}],"skew-y":[{"skew-y":pe()}],transform:[{transform:[W,U,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:me()}],"translate-x":[{"translate-x":me()}],"translate-y":[{"translate-y":me()}],"translate-z":[{"translate-z":me()}],"translate-none":[`translate-none`],zoom:[{zoom:[ga,W,U]}],accent:[{accent:M()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,W,U]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":M()}],"scrollbar-track-color":[{"scrollbar-track":M()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,W,U]}],fill:[{fill:[`none`,...M()]}],"stroke-w":[{stroke:[H,Pa,Da,Oa]}],stroke:[{stroke:[`none`,...M()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function G(...e){return Za(wi(e))}var Qa=E(M(),Se(h,e=>x(e.message)||e.message===`Error`?e.name:e.message),Se(o,e=>E(e,g,ge(e=>re(A(e.message),{onFalse:()=>e.name,onTrue:()=>e.message})),N(`
|
|
3
|
+
`))),Se(ne(`message`),e=>_(e.message)),Se(O,e=>_(e)),Se(be,()=>`Error`),Se(k,e=>m(y(w))(e)),pe(()=>`Unknown Error`)),K=i(),$a=Di(`group/alert relative grid w-full gap-0.5 rounded-lg border px-2 py-1.5 text-left text-xs/relaxed has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-1.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-3.5`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}});function eo(e){let t=(0,B.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,variant:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]!==n||t[5]!==i?(a=G($a({variant:i}),n),t[4]=n,t[5]=i,t[6]=a):a=t[6];let o;return t[7]!==r||t[8]!==a?(o=(0,K.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:a,...r}),t[7]=r,t[8]=a,t[9]=o):o=t[9],o}function to(e){let t=(0,B.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=G(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,K.jsx)(`div`,{"data-slot":`alert-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function no(e){let t=(0,B.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=G(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,K.jsx)(`div`,{"data-slot":`alert-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ro(){return typeof window<`u`}function q(e){return oo(e)?(e.nodeName||``).toLowerCase():`#document`}function io(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ao(e){return((oo(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function oo(e){return ro()?e instanceof Node||e instanceof io(e).Node:!1}function so(e){return ro()?e instanceof Element||e instanceof io(e).Element:!1}function co(e){return ro()?e instanceof HTMLElement||e instanceof io(e).HTMLElement:!1}function lo(e){return!ro()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof io(e).ShadowRoot}function uo(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=So(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function fo(e){return/^(table|td|th)$/.test(q(e))}function po(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var mo=/transform|translate|scale|rotate|perspective|filter/,ho=/paint|layout|strict|content/,go=e=>!!e&&e!==`none`,_o;function vo(e){let t=so(e)?So(e):e;return go(t.transform)||go(t.translate)||go(t.scale)||go(t.rotate)||go(t.perspective)||!bo()&&(go(t.backdropFilter)||go(t.filter))||mo.test(t.willChange||``)||ho.test(t.contain||``)}function yo(e){let t=wo(e);for(;co(t)&&!xo(t);){if(vo(t))return t;if(po(t))return null;t=wo(t)}return null}function bo(){return _o??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),_o}function xo(e){return/^(html|body|#document)$/.test(q(e))}function So(e){return io(e).getComputedStyle(e)}function Co(e){return so(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function wo(e){if(q(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||lo(e)&&e.host||ao(e);return lo(t)?t.host:t}function To(e){let t=wo(e);return xo(t)?(e.ownerDocument||e).body:co(t)&&uo(t)?t:To(t)}function Eo(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=To(e),i=r===e.ownerDocument?.body,a=io(r);if(i){let e=Do(a);return t.concat(a,a.visualViewport||[],uo(r)?r:[],e&&n?Eo(e):[])}return t.concat(r,Eo(r,[],n))}function Do(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Oo={...z},ko={};function Ao(e,t){let n=z.useRef(ko);return n.current===ko&&(n.current=e(t)),n}var jo=Oo.useInsertionEffect,Mo=jo&&jo!==Oo.useLayoutEffect?jo:e=>e();function No(e){let t=Ao(Po).current;return t.next=e,Mo(t.effect),t.trampoline}function Po(){let e={next:void 0,callback:Fo,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Fo(){}var J=typeof document<`u`?z.useLayoutEffect:()=>{};function Io(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var Lo={};function Ro(e,t,n,r,i){if(!n&&!r&&!i&&!e)return Bo(t);let a=Bo(e);return t&&(a=Vo(a,t)),n&&(a=Vo(a,n)),r&&(a=Vo(a,r)),i&&(a=Vo(a,i)),a}function zo(e){if(e.length===0)return Lo;if(e.length===1)return Bo(e[0]);let t=Bo(e[0]);for(let n=1;n<e.length;n+=1)t=Vo(t,e[n]);return t}function Bo(e){return Go(e)?{...e(Lo)}:Ho(e)}function Vo(e,t){return Go(t)?t(e):Uo(e,t)}function Ho(e){let t={...e};for(let e in t){let n=t[e];Wo(e,n)&&(t[e]=qo(n))}return t}function Uo(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=Io(e.style,r);break;case`className`:e[n]=Yo(e.className,r);break;default:e[n]=Wo(n,r)?Ko(e[n],r):r}}return e}function Wo(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function Go(e){return typeof e==`function`}function Ko(e,t){return t?e?(...n)=>{let r=n[0];if(Xo(r)){let i=r;Jo(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:qo(t):e}function qo(e){return e&&((...t)=>{let n=t[0];return Xo(n)&&Jo(n),e(...t)})}function Jo(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Yo(e,t){return t?e?t+` `+e:t:e}function Xo(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function Zo(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var Qo=Zo(`https://base-ui.com/production-error`,`Base UI`),$o=z.createContext(void 0);function es(e=!1){let t=z.useContext($o);if(t===void 0&&!e)throw Error(Qo(16));return t}function ts(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:z.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function Y(e){return e?.ownerDocument||document}function ns(e,t,{detail:n=0,pointerType:r=``}={}){e.dispatchEvent(new(io(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,pointerType:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function rs(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=z.useRef(null),s=es(!0),c=a??s!==void 0,{props:l}=ts({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=z.useCallback(()=>{let e=o.current;is(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return J(u,[u]),{getButtonProps:z.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return Ro({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(Jo(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=is(r),s=!i&&as(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),ns(r,e))}else!l||i||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),ns(r,e)))},onKeyUp(e){t||(Jo(e),a?.(e),e.target===e.currentTarget&&i&&c&&is(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||i||c||e.defaultPrevented||e.key!==` `||(e.preventBaseUIHandler(),ns(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:No(e=>{o.current=e,u()})}}function is(e){return co(e)&&e.tagName===`BUTTON`}function as(e){return co(e)&&e.tagName===`A`&&!!e.href}function os(e,t,n,r){let i=Ao(cs).current;return ls(i,e,t,n,r)&&ds(i,[e,t,n,r]),i.callback}function ss(e){let t=Ao(cs).current;return us(t,e)&&ds(t,e),t.callback}function cs(){return{callback:null,cleanup:null,refs:[]}}function ls(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function us(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function ds(e,t){e.refs=t,e.callback=t.every(e=>e==null)?null:n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}var fs=19;function ps(e){return fs>=e}function ms(e){if(!z.isValidElement(e))return null;let t=e,n=t.props;return(ps(19)?n?.ref:t.ref)??null}function hs(){}var gs=Object.freeze([]),_s=Object.freeze({});function vs(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e)}else i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function ys(e,t){return typeof e==`function`?e(t):e}function bs(e,t){return typeof e==`function`?e(t):e}function X(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=ws(r));let i=xs(t,n,r);if(n.enabled===!1)return null;let a=n.state??_s;return Ts(e,r,i,a)}function xs(e,t,n){let{className:r,style:i}=e,{state:a=_s,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?ys(r,a):void 0,d=l?bs(i,a):void 0,f=l?vs(a,c):_s,p=l&&s?Ss(s):void 0,m=l?Io(f,p)??{}:_s;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?ss([m.ref,ms(n),...o]):os(m.ref,ms(n),o):os(null,null)),l?(u!==void 0&&(m.className=Yo(m.className,u)),d!==void 0&&(m.style=Io(m.style,d)),m):_s}function Ss(e){return Array.isArray(e)?zo(e):Ro(void 0,e)}var Cs=Symbol.for(`react.lazy`);function ws(e){if(e?.$$typeof!==Cs)return e;let t=z.Children.toArray(e)[0];return z.isValidElement(t)?t:e}function Ts(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=Ro(n,t.props);return e.ref=n.ref,z.cloneElement(t,e)}return Es(e,n)}function Es(e,t){return e===`button`?(0,z.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,z.createElement)(`img`,{alt:``,...t,key:t.key}):z.createElement(e,t)}var Ds=z.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=rs({disabled:i,focusableWhenDisabled:a,native:o});return X(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),Os=Di(`group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:bg-input/30`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,xs:`h-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5`,sm:`h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,lg:`h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4`,icon:`size-7 [&_svg:not([class*='size-'])]:size-3.5`,"icon-xs":`size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5`,"icon-sm":`size-6 [&_svg:not([class*='size-'])]:size-3`,"icon-lg":`size-8 [&_svg:not([class*='size-'])]:size-4`}},defaultVariants:{variant:`default`,size:`default`}});function ks(e){let t=(0,B.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,variant:i,size:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`default`:i,s=a===void 0?`default`:a,c;t[5]!==n||t[6]!==s||t[7]!==o?(c=G(Os({variant:o,size:s,className:n})),t[5]=n,t[6]=s,t[7]=o,t[8]=c):c=t[8];let l;return t[9]!==r||t[10]!==c?(l=(0,K.jsx)(Ds,{"data-slot":`button`,className:c,...r}),t[9]=r,t[10]=c,t[11]=l):l=t[11],l}function As(e){let t=(0,B.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=G(`flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,K.jsx)(`div`,{"data-slot":`empty`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function js(e){let t=(0,B.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=G(`flex max-w-sm flex-col items-center gap-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,K.jsx)(`div`,{"data-slot":`empty-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Ms=Di(`mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`flex size-8 shrink-0 items-center justify-center rounded-md bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4`}},defaultVariants:{variant:`default`}});function Ns(e){let t=(0,B.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,variant:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o;t[4]!==n||t[5]!==a?(o=G(Ms({variant:a,className:n})),t[4]=n,t[5]=a,t[6]=o):o=t[6];let s;return t[7]!==r||t[8]!==o||t[9]!==a?(s=(0,K.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":a,className:o,...r}),t[7]=r,t[8]=o,t[9]=a,t[10]=s):s=t[10],s}function Ps(e){let t=(0,B.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=G(`text-sm font-medium tracking-tight`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,K.jsx)(`div`,{"data-slot":`empty-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Fs(e){let t=(0,B.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=G(`text-xs/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,K.jsx)(`div`,{"data-slot":`empty-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Is(e){let t=(0,B.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=G(`flex w-full max-w-sm min-w-0 flex-col items-center gap-2 text-xs/relaxed text-balance`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,K.jsx)(`div`,{"data-slot":`empty-content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ls(){let e=(0,B.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,K.jsx)(js,{children:(0,K.jsx)(Ps,{children:`Page not found`})}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,K.jsxs)(As,{children:[t,(0,K.jsx)(Is,{children:(0,K.jsx)(`a`,{className:Os({variant:`outline`}),href:`/`,children:`Go home`})})]}),e[1]=n):n=e[1],n}function Rs(e){let t=(0,B.c)(16),n;t[0]===e.error?n=t[1]:(n=Qa(e.error),t[0]=e.error,t[1]=n);let r=n,i,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,K.jsx)(gi,{}),a=(0,K.jsx)(to,{children:`Something went wrong`}),t[2]=i,t[3]=a):(i=t[2],a=t[3]);let o;t[4]===r?o=t[5]:(o=(0,K.jsxs)(eo,{variant:`destructive`,className:`w-full max-w-lg select-text`,children:[i,a,(0,K.jsx)(no,{className:`wrap-break-word whitespace-pre-wrap`,children:r})]}),t[4]=r,t[5]=o);let s;t[6]===r?s=t[7]:(s=(0,K.jsx)(ks,{variant:`ghost`,onClick:async()=>{await navigator.clipboard.writeText(r)},children:`Copy error`}),t[6]=r,t[7]=s);let c;t[8]===e.reset?c=t[9]:(c=(0,K.jsx)(ks,{onClick:e.reset,children:`Try again`}),t[8]=e.reset,t[9]=c);let l;t[10]!==s||t[11]!==c?(l=(0,K.jsxs)(`div`,{className:`flex gap-2`,children:[s,c]}),t[10]=s,t[11]=c,t[12]=l):l=t[12];let u;return t[13]!==o||t[14]!==l?(u=(0,K.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-4 p-4`,children:[o,l]}),t[13]=o,t[14]=l,t[15]=u):u=t[15],u}var zs=class extends T()(`AuthError`,{cause:v(fe()),error:C(Te([`invalid_request`,`invalid_client`,`invalid_client_metadata`,`invalid_redirect_uri`,`invalid_grant`,`invalid_target`,`invalid_scope`,`unsupported_grant_type`,`unsupported_response_type`,`access_denied`,`temporarily_unavailable`])),message:f}){},Bs=u({id:we,name:we}),Vs=f.check(s(/^https:\/\/[a-z\d-]+\.mp281x\.xyz(?:\/mcp)?$/u));u({accessToken:we,clientId:we,expiresAt:F,refreshToken:we}),u({client_id:we}),u({access_token:we,expires_in:F,refresh_token:we});var Hs=f.check(te(e=>{if(!URL.canParse(e))return!1;let t=new URL(e);return D([`http:`,`https:`],t.protocol)&&t.username===``&&t.password===``&&t.hash===``},{expected:`an HTTP(S) URL without credentials or a fragment`})).check(te(e=>{if(!URL.canParse(e))return!1;let t=new URL(e);return t.pathname===`/`&&t.search===``},{expected:`an HTTP(S) origin without a path or query`})).check(te(e=>{if(!URL.canParse(e))return!1;let t=new URL(e);return t.protocol===`https:`||D([`localhost`,`127.0.0.1`,`[::1]`],t.hostname)},{expected:`HTTPS outside loopback`}));f.check(s(/^\d{1,5}$/u),te(e=>c(ae(e),e=>e>=1&&e<=65535),{expected:`a port between 1 and 65535`}));var Us=f.check(s(/^0\.1\.\d+$/u)),Ws=u({auth:C(f),name:f,traces:f,version:Us});u({...Bs.fields,signOut:ve}),u({config:u({port:le}),name:f,version:Us});function Gs(e,t,n){return _e(oe(function*(){let r=`${yield*p}`,i={attributes:{"scope.run.started_unix_nano":r,"scope.runtime":n,"service.instance.id":r},serviceName:e};return E(Ce(me({exportInterval:`250 millis`,resource:i,url:new URL(`/v1/traces`,t).href}),xe({exportInterval:`250 millis`,resource:i,url:new URL(`/v1/logs`,t).href})),se([ie,ye]))}))}function Ks(e,t){let n=document.querySelector(`#root`);if(S(n))throw TypeError(`Missing application mount element with id "root"`);return{root:n,router:qr({context:{},defaultErrorComponent:Rs,defaultNotFoundComponent:Ls,defaultPreload:`intent`,getScrollRestorationKey:t,routeTree:e,scrollRestoration:!0})}}var qs=E(he({pingTimeout:`15 seconds`,retryTransientErrors:!0}),se(E(ce(l(()=>`${location.origin}/api/rpc`)),se(j))),P(de()));function Js(e){return d.addGlobalLayer(E(_e(oe(function*(){let t=yield*(yield*b).get(`/api/runtime`),n=yield*ee(Ws)(t);return n.traces===``?ue:Gs(`${e}-client`,n.traces,`web`)})),se(ye))),qs}var Ys=Er(),Xs=Or();function Zs(e){z.useEffect(e,gs)}var Qs=z.createContext(void 0);function $s(){let e=z.useContext(Qs);if(!e)throw Error(Qo(73));return e}var ec=[],tc=void 0;function nc(){return tc}function rc(e){ec.push(e)}function ic(e){let t=(t,n)=>{let r=Ao(oc).current,i;try{tc=r;for(let e of ec)e.before(r);i=e(t,n);for(let e of ec)e.after(r);r.didInitialize=!0}finally{tc=void 0}return i};return t.displayName=e.displayName||e.name,t}function ac(e){return z.forwardRef(ic(e))}function oc(){return{didInitialize:!1}}var sc=ps(19)?uc:dc;function cc(e,t,n,r,i){return sc(e,t,n,r,i)}function lc(e,t,n,r,i){let a=z.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Ys.useSyncExternalStore)(e.subscribe,a,a)}rc({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Ys.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function uc(e,t,n,r,i){let a=nc();if(!a)return lc(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],s.store===e&&s.selector===t&&Object.is(s.a1,n)&&Object.is(s.a2,r)&&Object.is(s.a3,i)||(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function dc(e,t,n,r,i){return(0,Xs.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var fc=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return cc(this,e,t,n,r)}},pc=class extends fc{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){z.useDebugValue(e);let n=this;J(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;J(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;J(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){z.useDebugValue(e);let n=this,r=t!==void 0;J(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return z.useDebugValue(e),cc(this,this.selectors[e],t,n,r)}useContextCallback(e,t){z.useDebugValue(e);let n=No(t??hs);this.context[e]=n}useStateSetter(e){let t=z.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},mc=0;function hc(e){return mc+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${mc}`}var gc=0,_c=class e{static create(){return new e}currentId=gc;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=gc,t()},e)}isStarted(){return this.currentId!==gc}clear=()=>{this.currentId!==gc&&(clearTimeout(this.currentId),this.currentId=gc)};disposeEffect=()=>this.clear};function vc(){let e=Ao(_c.create).current;return Zs(e.disposeEffect),e}function yc(e,t){if(typeof e==`string`)return{description:e};if(typeof e==`function`){let n=e(t);return typeof n==`string`?{description:n}:n}return e}function bc(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:xc,platform:Sc,maxTouchPoints:Cc}=bc(),wc=xc.toLowerCase(),Tc=Sc.toLowerCase(),Ec=/^i(os$|p)/.test(Tc)||Tc===`macintel`&&Cc>1,Dc=`android`,Oc=Tc===Dc||wc.includes(Dc),kc=!Ec&&Tc.startsWith(`mac`);Tc.startsWith(`win`),!Oc&&/^(linux|chrome os)/.test(Tc);var Ac=kc||Ec,jc=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`),Mc=!jc&&wc.includes(`firefox`);!jc&&wc.includes(`chrom`);var Nc=Ac,Pc=/jsdom|happydom/.test(wc),Fc=e(n(),1);function Ic(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Z(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&lo(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Lc(e,t){let n=e;for(;n;){if(so(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(lo(n)?n.host:null)}return null}function Rc(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var zc=`data-base-ui-focusable`,Bc=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,Vc=`ArrowLeft`,Hc=`ArrowRight`,Uc=`ArrowUp`,Wc=`ArrowDown`,Gc=`data-starting-style`,Kc=`data-ending-style`,qc={[Gc]:``},Jc={[Kc]:``},Yc={transitionStatus(e){return e===`starting`?qc:e===`ending`?Jc:null}},Xc=`data-popup-open`,Zc=`data-pressed`,Qc=`data-trigger-disabled`;function $c(e,t){if(!so(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(Qc);for(let[,e]of t.entries())if(Z(e,n))return!e.hasAttribute(Qc);return!1}function el(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function tl(e){return e.matches(`html,body`)}function nl(e){return co(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function rl(e){return Lc(e,`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Bc}`)!=null}function il(e){return e?e.getAttribute(`role`)===`combobox`&&nl(e):!1}function al(e){if(!e||Pc)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function ol(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function sl(e){e.preventDefault(),e.stopPropagation()}function cl(e){return`nativeEvent`in e}function ll(e){return e.pointerType===``&&e.isTrusted?!0:Oc&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function ul(e){return Pc?!1:!Oc&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(Oc||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function dl(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function fl(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var pl=Math.min,ml=Math.max,hl=Math.round,gl=Math.floor,_l=e=>({x:e,y:e}),vl={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function yl(e,t,n){return ml(e,pl(t,n))}function bl(e,t){return typeof e==`function`?e(t):e}function xl(e){return e.split(`-`)[0]}function Sl(e){return e.split(`-`)[1]}function Cl(e){return e===`x`?`y`:`x`}function wl(e){return e===`y`?`height`:`width`}function Tl(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function El(e){return Cl(Tl(e))}function Dl(e,t,n){n===void 0&&(n=!1);let r=Sl(e),i=El(e),a=wl(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Il(o)),[o,Il(o)]}function Ol(e){let t=Il(e);return[kl(e),t,kl(t)]}function kl(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Al=[`left`,`right`],jl=[`right`,`left`],Ml=[`top`,`bottom`],Nl=[`bottom`,`top`];function Pl(e,t,n){switch(e){case`top`:case`bottom`:return n?t?jl:Al:t?Al:jl;case`left`:case`right`:return t?Ml:Nl;default:return[]}}function Fl(e,t,n,r){let i=Sl(e),a=Pl(xl(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(kl)))),a}function Il(e){let t=xl(e);return vl[t]+e.slice(t.length)}function Ll(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Rl(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ll(e)}function zl(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Bl(e,t,n){return Math.floor(e/t)!==n}function Vl(e,t){return t<0||t>=e.length}function Hl(e,t){return Q(e.current,{disabledIndices:t})}function Ul(e,t){return Q(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Wl(e,t,n){let{decrement:r,loopFocus:i,allowEscape:a,disabledIndices:o,minIndex:s,maxIndex:c}=n,l=()=>Q(e,{startingIndex:t,decrement:r,disabledIndices:o}),u,d=!1;if(!i)u=r?Math.max(s,l()):Math.min(c,l());else if(r?t<=s:t>=c){let n=r?-1:e.length;a&&t!==n?u=-1:(u=r?c:s,d=!0)}else u=l();return{index:Vl(e,u)?-1:u,wrapped:d}}function Q(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Kl(e,a,r));return a}function Gl(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=Lc(e,`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h<e.length,y=_||o,b=o=>{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f<n.length;f+=1,o+=d){if(o<0||o>=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1),r=i(t,u,n[o][e]??n[o][0]);o=a[r]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!Kl(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=gl(l/y)+1;for(let t=u-n+i,c=0;c<o;c+=1,t+=i){if(t<0||t>l){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!Kl(e,r,s))return r}};d&&sl(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=Q(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-y<c||f<0)){let e=u%y,n=l%y,r=l-(n-e);f=n===e?l:n>e?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=Q(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}Vl(e,f)&&(f=u)}if(n===`both`){let n=gl(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&sl(t),u%o===o-1?r&&(f=Q(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=Q(e,{startingIndex:u,disabledIndices:s}),r&&Bl(f,o,n)&&(f=Q(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),Bl(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&sl(t),u%o===0?r&&(f=Q(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=Q(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&Bl(f,o,n)&&(f=Q(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),Bl(f,o,n)&&(f=u));let c=gl(l/o)===n;Vl(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:Q(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function Kl(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!Jl(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function ql(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Jl(e,t=e?So(e):null){return!e||!e.isConnected||!t||ql(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var Yl=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Xl(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return lo(n)?n.host:null}function Zl(e){for(let t of Array.from(e.children))if(q(t)===`summary`)return t;return null}function Ql(e,t){let n=Zl(t);return!!n&&(e===n||Z(n,e))}function $l(e){let t=e?q(e):``;return e!=null&&e.matches(Yl)&&(t!==`summary`||e.parentElement!=null&&q(e.parentElement)===`details`&&Zl(e.parentElement)===e)&&(t!==`details`||Zl(e)==null)&&(t!==`input`||e.type!==`hidden`)}function eu(e){if(!$l(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Xl(t)){let n=t!==e,r=q(t)===`slot`;if(t.hasAttribute(`inert`)||n&&q(t)===`details`&&!t.open&&!Ql(e,t)||t.hasAttribute(`hidden`)||!r&&!tu(t,n))return!1}return!0}function tu(e,t){let n=So(e);return t?n.display!==`none`:Jl(e,n)}function nu(e){let t=e.tabIndex;if(t<0){let t=q(e);if(t===`details`||t===`audio`||t===`video`||co(e)&&e.isContentEditable)return 0}return t}function ru(e){if(q(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function iu(e,t){let n=ru(e);if(!n)return!0;let r=t.find(e=>{let t=ru(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=ru(e);return t?.name===n.name&&t.form===n.form})===n}function au(e){if(co(e)&&q(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return co(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function ou(e,t){au(e).forEach(e=>{$l(e)&&t.push(e),ou(e,t)})}function su(e,t,n){au(e).forEach(e=>{co(e)&&e.matches(t)&&n.push(e),su(e,t,n)})}function cu(e){return eu(e)&&nu(e)>=0}function lu(e){let t=[];return ou(e,t),t.filter(eu)}function uu(e){let t=lu(e);return t.filter(e=>nu(e)>=0&&iu(e,t))}function du(e,t){let n=uu(e),r=n.length;if(r===0)return;let i=Ic(Y(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function fu(e){return du(Y(e).body,1)||e}function pu(e){return du(Y(e).body,-1)||e}function mu(e,t,n){if(!e)return null;let r=[];ou(Y(e).body,r);let i=r.indexOf(e);if(i===-1)return null;let a=r.filter(eu);for(let e=1;e<r.length;e+=1){let o=r[(i+t*e+r.length)%r.length];if(!Z(n,o)&&cu(o)&&iu(o,a))return o}return r[i]}function hu(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Z(n,r)}function gu(e){uu(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function _u(e){let t=[];su(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function vu(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let a=e.transitionStatus===`ending`;t.set(e.id,{value:e,domIndex:i,visibleIndex:a?-1:n,offsetY:r}),r+=e.height||0,a||(n+=1)}),t}function yu(e,t){let n=0;return e.map(e=>{if(e.transitionStatus===`ending`)return e;let r=n>=t;return n+=1,e.limited===r?e:{...e,limited:r}})}var $={toasts:e=>e.toasts,isEmpty:e=>e.toasts.length===0,toast:(e,t)=>e.toastMetadata.get(t)?.value,toastIndex:(e,t)=>e.toastMetadata.get(t)?.domIndex??-1,toastOffsetY:(e,t)=>e.toastMetadata.get(t)?.offsetY??0,toastVisibleIndex:(e,t)=>e.toastMetadata.get(t)?.visibleIndex??-1,focused:e=>e.focused,expanded:e=>e.hovering||e.focused,expandedOrOutOfFocus:e=>e.hovering||e.focused||!e.isWindowFocused,prevFocusElement:e=>e.prevFocusElement},bu=class extends pc{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:vu(e.toasts)},{},$)}setViewport=e=>{this.set(`viewport`,e)};syncProviderProps(e,t){let n=this.state.limit!==t;if(this.state.timeout===e&&!n)return;let r={timeout:e,limit:t};if(n){let e=yu(this.state.toasts,t);r.toasts=e,r.toastMetadata=vu(e)}this.update(r)}disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t=!1){let n=$.toastIndex(this.state,e);if(n===-1)return;let r=this.state.toasts[n];t||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||hc(`toast`);if(e.id){let t=$.toast(this.state,e.id);if(t){if(t.transitionStatus===`ending`)this.removeToast(e.id,!0);else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,!0,!0),e.id}}}let i={...e,id:r,updateKey:0,transitionStatus:`starting`},a=[i,...this.state.toasts];this.setToasts(yu(a,n));let o=i.timeout??t;return i.type!==`loading`&&o>0&&this.scheduleTimer(r,o,()=>this.closeToast(r)),$.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{let n=$.toast(this.state,e);n&&n.transitionStatus!==`ending`&&this.updateToastInternal(e,typeof t==`function`?t(n):t,!1,!0)};updateToastInternal=(e,t,n=!1,r=!1)=>{let{timeout:i,toasts:a}=this.state,o=$.toast(this.state,e);if(!o||o.transitionStatus===`ending`)return;let s={...o,...t,...r&&{updateKey:o.updateKey+1}};this.setToasts(a.map(t=>t.id===e?s:t));let c=s.timeout??i,l=o.timeout??i,u=Object.hasOwn(t,`timeout`),d=s.transitionStatus!==`ending`&&s.type!==`loading`&&c>0,f=this.timers.has(e),p=l!==c,m=o.type===`loading`;!d&&f?this.clearTimer(e):d&&(!f||p||u||m||n)&&(this.clearTimer(e),this.scheduleTimer(e,c,()=>this.closeToast(e)),$.expandedOrOutOfFocus(this.state)&&this.pauseTimers())};closeToast=e=>{let t=e===void 0,{limit:n,toasts:r}=this.state,i;if(t)i=r,this.clearTimers();else{let t=$.toast(this.state,e);if(!t)return;i=[t],this.clearTimer(e)}let a=yu(r.map(n=>t||n.id===e?{...n,transitionStatus:`ending`,height:0}:n),n);this.setToasts(a,!a.some(e=>e.transitionStatus!==`ending`)),i.forEach(e=>{e.transitionStatus!==`ending`&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=yc(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=yc(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=yc(t.error,e);return this.updateToast(r,{...n,type:`error`,timeout:n.timeout}),Promise.reject(e)});return{}.hasOwnProperty.call(t,`setPromise`)&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{e.timeout&&(e.timeout.clear(),e.remaining=Math.max(e.remaining-(Date.now()-e.start),0))}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=_c.create(),e.timeout.start(e.remaining,()=>{this.handleTimerFired(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if(e.pointerType!==`touch`)return;let t=Rc(e);Z(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=$.expandedOrOutOfFocus(this.state)?void 0:_c.create();i?.start(t,()=>{this.handleTimerFired(e),n()}),this.timers.set(e,{timeout:i,start:r,delay:t,remaining:t,callback:n})}clearTimers(){this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(e){this.timers.get(e)?.timeout?.clear(),this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(e){this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){this.timers.size===0&&(this.areTimersPaused=!1)}setToasts(e,t=e.length===0){let n={toasts:e,toastMetadata:vu(e)};t&&(n.hovering=!1,n.focused=!1),this.update(n)}handleFocusManagement(e){let t=Ic(Y(this.state.viewport));if(!this.state.viewport||!Z(this.state.viewport,t)||!al(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let n=$.toasts(this.state),r=$.toastIndex(this.state,e),i=(e,t)=>{for(let r=e;r>=0&&r<n.length;r+=t)if(n[r].transitionStatus!==`ending`)return n[r];return null},a=i(r+1,1)??i(r-1,-1);a?a.ref?.current?.focus():this.restoreFocusToPrevElement()}},xu=function(e){let{children:t,timeout:n=5e3,limit:r=3,toastManager:i}=e,a=Ao(()=>new bu({timeout:n,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return Zs(a.disposeEffect),z.useEffect(function(){if(i)return i[` subscribe`](({action:e,options:t})=>{let n=t.id;e===`promise`&&t.promise?a.promiseToast(t.promise,t):e===`update`&&n?a.updateToast(n,t.updates):e===`close`?a.closeToast(n):a.addToast(t)})},[a,i]),(0,K.jsxs)(Qs.Provider,{value:a,children:[(0,K.jsx)(Su,{store:a,timeout:n,limit:r}),t]})};function Su(e){let{store:t,timeout:n,limit:r}=e;return J(()=>{t.syncProviderProps(n,r)},[t,n,r]),null}function Cu(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function wu(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}var Tu={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Eu={...Tu,position:`fixed`,margin:0,top:0,left:0},Du={...Tu,position:`absolute`},Ou=z.forwardRef(function(e,t){let[n,r]=z.useState();J(()=>{Nc&&jc&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,K.jsx)(`span`,{...e,ref:t,style:Eu,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})}),ku=`--toast-frontmost-height`,Au=z.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=$s(),c=vc(),l=z.useRef(!1),u=z.useRef(!1),d=z.useRef(!1),f=s.useState(`isEmpty`),p=s.useState(`toasts`),m=s.useState(`focused`),h=s.useState(`expanded`),g=s.useState(`prevFocusElement`),_=p[0]?.height,v=p.some(e=>e.transitionStatus===`ending`),y=p.filter(e=>e.priority===`high`);z.useEffect(()=>{let e=s.state.viewport;if(!e||f)return;let t=io(e),n=Y(e);function r(t){t.key===`F6`&&Rc(t)!==e&&(t.preventDefault(),s.set(`prevFocusElement`,Ic(n)),e?.focus({preventScroll:!0}),s.pauseTimers(),s.set(`focused`,!0))}function i(e){Rc(e)===t&&(s.set(`isWindowFocused`,!1),s.pauseTimers())}function a(n){if(n.relatedTarget)return;let r=Rc(n),i=Ic(Y(e));r!==t&&Z(e,r)&&al(i)||s.resumeTimers(),c.start(0,()=>s.set(`isWindowFocused`,!0))}return wu(Cu(t,`keydown`,r),Cu(t,`blur`,i,!0),Cu(t,`focus`,a,!0),Cu(n,`pointerdown`,s.handleDocumentPointerDown,!0))},[s,c,f]);function b(e){l.current=!0;let t=e.relatedTarget===s.state.viewport?p.find(e=>e.transitionStatus!==`ending`&&!e.limited):void 0;t?t.ref?.current?.focus():s.restoreFocusToPrevElement()}function x(e){e.key===`Tab`&&e.shiftKey&&Rc(e.nativeEvent)===s.state.viewport&&(e.preventDefault(),s.restoreFocusToPrevElement())}function S(){s.state.toasts.some(e=>e.transitionStatus===`ending`)||d.current||!u.current||(s.set(`hovering`,!1),s.select(`expandedOrOutOfFocus`)||s.resumeTimers(),u.current=!1)}z.useEffect(S,[v,s]);function C(){s.pauseTimers(),s.set(`hovering`,!0),u.current=!1}function w(){u.current=!0,S()}function T(e){e.pointerType===`touch`&&(d.current=!0)}function ee(e){e.pointerType===`touch`&&(d.current=!1,S())}function E(){l.current?l.current=!1:m||al(Ic(Y(s.state.viewport)))&&(s.set(`focused`,!0),s.pauseTimers())}function D(e){m&&!Z(s.state.viewport,e.relatedTarget)&&(s.set(`focused`,!1),s.select(`expandedOrOutOfFocus`)||s.resumeTimers())}let te={tabIndex:-1,role:`region`,"aria-live":`polite`,"aria-atomic":!1,"aria-relevant":`additions text`,"aria-label":`Notifications`,onMouseEnter:C,onMouseMove:C,onMouseLeave:w,onFocus:E,onBlur:D,onKeyDown:x,onClick:E,onPointerDown:T,onPointerUp:ee,onPointerCancel:ee,style:{[ku]:_?`${_}px`:void 0}},ne={expanded:h},O=!f&&g&&(0,K.jsx)(Ou,{onFocus:b}),k=X(`div`,e,{ref:[t,s.setViewport],state:ne,props:[te,o,{children:(0,K.jsxs)(z.Fragment,{children:[O,a,O]})}]});return(0,K.jsxs)(z.Fragment,{children:[O,k,!m&&y.length>0&&(0,K.jsx)(`div`,{style:Eu,children:y.map(e=>(0,K.jsxs)(`div`,{role:`alert`,"aria-atomic":!0,children:[(0,K.jsx)(`div`,{children:e.title}),(0,K.jsx)(`div`,{children:e.description})]},e.id))})]})});function ju(e){return ps(19)?e:e?`true`:void 0}var Mu=z.createContext(void 0);function Nu(){let e=z.useContext(Mu);if(!e)throw Error(Qo(66));return e}var Pu=null;globalThis.requestAnimationFrame;var Fu=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||this.callbacks[t]!==null&&(this.callbacks[t]=null,--this.callbacksCount)}},Iu=class e{static create(){return new e}static request(e){return Fu.request(e)}static cancel(e){return Fu.cancel(e)}currentId=Pu;request(e){this.cancel(),this.currentId=Fu.request(()=>{this.currentId=Pu,e()})}cancel=()=>{this.currentId!==Pu&&(Fu.cancel(this.currentId),this.currentId=Pu)};disposeEffect=()=>this.cancel};function Lu(){let e=Ao(Iu.create).current;return Zs(e.disposeEffect),e}function Ru(e){return e==null?e:`current`in e?e.current:e}function zu(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}var Bu=null;function Vu(e){if(!Bu){let e=[];Bu=e,queueMicrotask(()=>{Bu=null,Fc.flushSync(()=>{for(let t of e)t()})})}Bu.push(e)}function Hu(e,t=!1,n=!1){let r=Lu();return No((i,a=null)=>{r.cancel();let o=Ru(e);if(o==null)return;let s=o,c=()=>{n?Vu(()=>{a?.aborted||i()}):Fc.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(zu(s).map(e=>e.finished.then(hs))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(zu(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=Gc;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}else r.request(l)})}function Uu(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=No(a),s=Hu(r,n,i);z.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}var Wu={style:{transition:`none`}},Gu=`data-base-ui-click-trigger`,Ku=`data-base-ui-swipe-ignore`,qu=`data-swipe-ignore`,Ju=`[${Ku}]`,Yu=`[${qu}]`,Xu={fallbackAxisSide:`none`},Zu={fallbackAxisSide:`end`},Qu={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0};function $u(e,t){let n=(t??io(e).getComputedStyle(e)).transform,r=0,i=0,a=1;if(n&&n!==`none`){let e=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(r=t[4],i=t[5],a=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(r=t[12],i=t[13],a=t[0])}}return{x:r,y:i,scale:a}}function ed(e,t,n){switch(e){case`up`:return-n;case`down`:return n;case`left`:return-t;case`right`:return t;default:return 0}}var td=`--toast-index`,nd=`--toast-offset-y`,rd=`--toast-height`,id=`--toast-swipe-movement-x`,ad=`--toast-swipe-movement-y`,od=`data-swipe-direction`,sd={...Yc,swipeDirection(e){return e?{[od]:e}:null}},cd=40,ld=10,ud=.5,dd=1,fd=`${Ju},${Yu}`,pd=z.forwardRef(function(e,t){let{toast:n,render:r,className:i,swipeDirection:a=[`down`,`right`],style:o,...s}=e,c=n.positionerProps?.anchor!==void 0,l=[];c||(l=Array.isArray(a)?a:[a]);let u=l.length>0,d=$s(),[f,p]=z.useState(void 0),[m,h]=z.useState(!1),[g,_]=z.useState(!1),[v,y]=z.useState({x:0,y:0}),[b,x]=z.useState({x:0,y:0,scale:1}),[S,C]=z.useState(),[w,T]=z.useState(),[ee,E]=z.useState(null),D=z.useRef(null),te=z.useRef(void 0),ne=z.useRef({x:0,y:0}),O=z.useRef({x:0,y:0,scale:1}),k=z.useRef(void 0),A=z.useRef(0),re=z.useRef(!1),j=z.useRef({x:0,y:0}),M=z.useRef(!1),ie=z.useRef({x:0,y:0}),ae=z.useRef(null),oe=z.useRef(null),se=d.useState(`toastIndex`,n.id),N=d.useState(`toastVisibleIndex`,n.id),P=d.useState(`toastOffsetY`,n.id),ce=d.useState(`focused`),le=d.useState(`expanded`);Uu({open:n.transitionStatus!==`ending`,ref:D,onComplete(){n.transitionStatus===`ending`&&d.removeToast(n.id)}});let F=No((e=!1)=>{let t=D.current;if(!t)return;let r=t.style.height;t.style.height=`auto`;let i=t.offsetHeight;t.style.height=r;function a(){d.updateToastInternal(n.id,{ref:D,height:i,transitionStatus:void 0})}e?Fc.flushSync(a):a()});J(()=>{let e=te.current;(n.transitionStatus===`starting`||e!==n.id)&&(e!==void 0&&(p(void 0),x({x:0,y:0,scale:1}),ue({x:0,y:0})),te.current=n.id,F())},[F,n.id,n.transitionStatus]);function ue(e){ie.current=e,y(e)}J(()=>()=>{oe.current?.abort()},[]);function de(e,t){let n=e=>e>0?e**ud:-(Math.abs(e)**ud),r=e>0&&!l.includes(`right`)||e<0&&!l.includes(`left`),i=t>0&&!l.includes(`down`)||t<0&&!l.includes(`up`);return{x:r?n(e):e,y:i?n(t):t}}let fe=No(e=>{if(e.pointerId!==ae.current)return;ae.current=null,oe.current?.abort(),oe.current=null,h(!1),_(!1),E(null);let t=O.current;if(e.type===`pointercancel`||re.current){ue({x:t.x,y:t.y}),p(void 0);return}let r=ie.current,i=r.x-t.x,a=r.y-t.y,o;for(let e of l)if(ed(e,i,a)>cd){o=e;break}o?(p(o),d.closeToast(n.id)):(ue({x:t.x,y:t.y}),p(void 0))});function pe(e){if(e.button!==0||(e.pointerType===`touch`&&d.pauseTimers(),Lc(Rc(e.nativeEvent),`button,a,input,textarea,[role="button"],${fd}`)))return;re.current=!1,k.current=void 0,A.current=0,ae.current=e.pointerId,ne.current={x:e.clientX,y:e.clientY},j.current=ne.current;let t=e.currentTarget,n=$u(t);O.current=n,x(n),ue({x:n.x,y:n.y}),d.set(`hovering`,!0),h(!0),_(!1),E(null),M.current=!0,oe.current?.abort();let r=new AbortController;oe.current=r;let i=Y(t);i.addEventListener(`pointerup`,fe,{signal:r.signal}),i.addEventListener(`pointercancel`,fe,{signal:r.signal}),t.setPointerCapture?.(e.pointerId)}function me(e){if(e.pointerId!==ae.current)return;e.preventDefault(),M.current&&=(ne.current={x:e.clientX,y:e.clientY},!1);let{clientY:t,clientX:n,movementX:r,movementY:i}=e;(i<0&&t>j.current.y||i>0&&t<j.current.y)&&(j.current={x:j.current.x,y:t}),(r<0&&n>j.current.x||r>0&&n<j.current.x)&&(j.current={x:n,y:j.current.y});let a=n-ne.current.x,o=t-ne.current.y,s=t-j.current.y,c=n-j.current.x,u=ee;if(!g&&Math.sqrt(a*a+o*o)>=dd){_(!0);let e=l.includes(`left`)||l.includes(`right`),t=l.includes(`up`)||l.includes(`down`);e&&t&&(u=Math.abs(a)>Math.abs(o)?`horizontal`:`vertical`,E(u))}let d;if(!k.current)u===`vertical`?o>0?d=`down`:o<0&&(d=`up`):u===`horizontal`?a>0?d=`right`:a<0&&(d=`left`):d=Math.abs(a)>=Math.abs(o)?a>0?`right`:`left`:o>0?`down`:`up`,d&&l.includes(d)&&(k.current=d,A.current=ed(d,a,o),p(d));else{let e=k.current,t=ed(e,c,s);t>cd?(re.current=!1,p(e)):!(l.includes(`left`)&&l.includes(`right`))&&!(l.includes(`up`)&&l.includes(`down`))&&A.current-t>=ld&&(re.current=!0)}let f=de(a,o),m=O.current.x,h=O.current.y,v=l.includes(`left`)||l.includes(`right`),y=l.includes(`up`)||l.includes(`down`);u!==`vertical`&&v&&(m+=f.x),u!==`horizontal`&&y&&(h+=f.y),ue({x:m,y:h})}function he(e){if(e.key===`Escape`){if(!D.current||!Z(D.current,Ic(Y(D.current))))return;d.closeToast(n.id)}}z.useEffect(()=>{let e=D.current;if(!u||!e)return;function t(t){ae.current!==null&&Z(e,Rc(t))&&t.preventDefault()}return Cu(e,`touchmove`,t,{passive:!1})},[u]);function ge(){let e=v.x-b.x,t=v.y-b.y;return{transition:m?`none`:void 0,transform:m?`translateX(${v.x}px) translateY(${v.y}px) scale(${b.scale})`:void 0,[id]:`${e}px`,[ad]:`${t}px`}}let _e=n.priority===`high`,ve={role:_e?`alertdialog`:`dialog`,tabIndex:0,"aria-modal":!1,"aria-labelledby":S,"aria-describedby":w,"aria-hidden":_e&&!ce?!0:void 0,onPointerDown:u?pe:void 0,onPointerMove:u?me:void 0,onPointerUp:u?fe:void 0,onPointerCancel:u?fe:void 0,onKeyDown:he,inert:ju(n.limited),style:{...ge(),[td]:n.transitionStatus===`ending`?se:N,[nd]:`${P}px`,[rd]:n.height?`${n.height}px`:void 0}},ye=z.useMemo(()=>({toast:n,setTitleId:C,setDescriptionId:T,recalculateHeight:F,visibleIndex:N,expanded:le}),[n,C,T,F,N,le]),be={transitionStatus:n.transitionStatus,expanded:le,limited:n.limited||!1,type:n.type,swiping:m,swipeDirection:f},xe=X(`div`,e,{ref:[t,D],state:be,stateAttributesMapping:sd,props:[ve,s]});return(0,K.jsx)(Mu.Provider,{value:ye,children:xe})}),md=z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{visibleIndex:o,expanded:s,recalculateHeight:c}=Nu(),l=z.useRef(null);return J(()=>{c();let e=l.current;if(!e||typeof ResizeObserver!=`function`||typeof MutationObserver!=`function`)return;let t=new ResizeObserver(()=>c(!0)),n=new MutationObserver(()=>c(!0));return t.observe(e),n.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>{t.disconnect(),n.disconnect()}},[c]),X(`div`,e,{ref:[t,l],state:{expanded:s,behind:o>0},props:a})});function hd(){let[,e]=z.useState({});return z.useCallback(()=>{e({})},[])}var gd=0;function _d(e,t=`mui`){let n=z.useRef(void 0),r=hd(),i=e??n.current;return z.useEffect(()=>{n.current??(gd+=1,n.current=`${t}-${gd}`,e??r())},[e,t,r]),i}var vd=Oo.useId;function yd(e,t){if(vd!==void 0){let n=vd();return e??(t?`${t}-${n}`:n)}return _d(e,t)}function bd(e){return e==null||typeof e==`boolean`||e===``?!1:!Array.isArray(e)||e.some(bd)}function xd(e){return z.isValidElement(e)&&bd(e.props.children)}function Sd(e,t,n){let{toast:r,setTitleId:i,setDescriptionId:a}=Nu(),o=n===`title`?i:a,s=t??(n===`title`?r.title:r.description);return{id:yd(e),children:s,type:r.type,setId:o}}function Cd(e,t,n){let r=xd(e);return J(()=>{if(r)return n(t),()=>{n(e=>e===t?void 0:e)}},[r,t,n]),r?e:null}var wd=z.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{id:c,children:l,type:u,setId:d}=Sd(a,o,`description`);return Cd(X(`p`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)}),Td=z.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{id:c,children:l,type:u,setId:d}=Sd(a,o,`title`);return Cd(X(`h2`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)}),Ed=z.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,c=$s(),{toast:l,expanded:u}=Nu(),[d,f]=z.useState(!1),{getButtonProps:p,buttonRef:m}=rs({disabled:a,native:o}),h={type:l.type};return X(`button`,e,{ref:[t,m],state:h,props:[{"aria-hidden":!u&&!d,onClick(){c.closeToast(l.id)},onFocus(){f(!0)},onBlur(){f(!1)}},s,p]})}),Dd=z.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,{toast:c}=Nu(),l=c.actionProps?.children??s.children,{getButtonProps:u,buttonRef:d}=rs({disabled:a,native:o}),f={type:c.type},p=X(`button`,e,{ref:[t,d],state:f,props:[s,c.actionProps,u,{children:l}]});return xd(p)?p:null});function Od(e,t,n,r){let i=!1,a=!1,o=r??_s;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function kd(e,t,n){let r=n??_s;return{reason:e,event:t??new Event(`base-ui`),...r}}var Ad=`none`,jd=`trigger-press`,Md=`trigger-hover`,Nd=`trigger-focus`,Pd=`outside-press`,Fd=`item-press`,Id=`close-press`,Ld=`clear-press`,Rd=`input-change`,zd=`input-clear`,Bd=`input-press`,Vd=`focus-out`,Hd=`escape-key`,Ud=`list-navigation`,Wd=`keyboard`,Gd=`pointer`,Kd=`cancel-open`,qd=`sibling-open`,Jd=`imperative-action`;function Yd(e){return`data-base-ui-${e}`}var Xd=z.createContext(null),Zd=()=>z.useContext(Xd),Qd=Yd(`portal`);function $d(e={}){let{ref:t,container:n,componentProps:r=_s,elementProps:i}=e,a=yd(),o=Zd()?.portalNode,[s,c]=z.useState(null),[l,u]=z.useState(null),d=No(e=>{e!==null&&u(e)}),f=z.useRef(null);J(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(oo(n)?n:n.current))??o??document.body;e==null?f.current&&(f.current=null,u(null),c(null)):f.current!==e&&(f.current=e,u(null),c(e))},[n,o]);let p=X(`div`,r,{ref:[t,d],props:[{id:a,[Qd]:``},i]}),m=s&&p?Fc.createPortal(p,s):null;return{node:l,nodeId:z.isValidElement(p)?p.props.id:void 0,subtree:m}}var ef=z.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,portalOwnerRole:s,...c}=e,{node:l,nodeId:u,subtree:d}=$d({container:o,ref:t,componentProps:e,elementProps:c}),f=z.useRef(null),p=z.useRef(null),m=z.useRef(null),h=z.useRef(null),[g,_]=z.useState(null),v=z.useRef(!1),y=g?.modal,b=g?.open,x=!!g&&!g.modal&&g.open&&!!l;z.useEffect(()=>{if(!l||y)return;function e(e){l&&e.relatedTarget&&hu(e)&&(e.type===`focusin`?v.current&&=(_u(l),!1):(gu(l),v.current=!0))}return wu(Cu(l,`focusin`,e,!0),Cu(l,`focusout`,e,!0))},[l,y]),J(()=>{l&&b===!0&&v.current&&(_u(l),v.current=!1)},[b,l]);let S=z.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,K.jsxs)(z.Fragment,{children:[d,(0,K.jsxs)(Xd.Provider,{value:S,children:[x&&l&&(0,K.jsx)(Ou,{"data-type":`outside`,ref:f,onFocus:e=>{hu(e,l)?m.current?.focus():pu(g?g.domReference:null)?.focus()}}),x&&l&&(0,K.jsx)(`span`,{role:s,"aria-owns":u,style:Qu}),l&&Fc.createPortal(a,l),x&&l&&(0,K.jsx)(Ou,{"data-type":`outside`,ref:p,onFocus:e=>{hu(e,l)?h.current?.focus():(fu(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,Od(`focus-out`,e.nativeEvent)))}})]})]})}),tf=z.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=$d({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,K.jsxs)(z.Fragment,{children:[l,c&&Fc.createPortal(n,c)]})}),nf=z.forwardRef(function(e,t){return(0,K.jsx)(tf,{ref:t,...e})});function rf(){let e=$s(),t=e.useState(`toasts`);return z.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function af(){let e=new Set;function t(t){e.forEach(e=>e(t))}return{" subscribe":function(t){return e.add(t),()=>{e.delete(t)}},add(e){let n=e.id||hc(`toast`);return t({action:`add`,options:{...e,id:n,transitionStatus:`starting`}}),n},close(e){t({action:`close`,options:{id:e}})},update(e,n){t({action:`update`,options:{id:e,updates:n}})},promise(e,n){let r=e;return t({action:`promise`,options:{...n,promise:e,setPromise(e){r=e}}}),r}}}var of=af();function sf(e){let t=(0,B.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,K.jsx)(xu,{...n}),t[2]=n,t[3]=r),r}function cf(e){let t=(0,B.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,K.jsx)(nf,{"data-slot":`toast-portal`,...n}),t[2]=n,t[3]=r),r}function lf(e){let t=(0,B.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=G(`pointer-events-none fixed inset-x-4 bottom-4 z-50 mx-auto w-auto max-w-sm outline-none sm:right-4 sm:left-auto sm:mx-0 sm:w-full`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,K.jsx)(Au,{"data-slot":`toast-viewport`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function uf(e){let t=(0,B.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=G(`group/toast pointer-events-auto absolute right-0 bottom-0 z-[calc(1000-var(--toast-index))] w-full origin-bottom rounded-md border bg-popover text-popover-foreground shadow-lg will-change-transform outline-none select-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50`,`[--gap:0.75rem] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)*-1+calc(var(--toast-index)*var(--gap)*-1)+var(--toast-swipe-movement-y))] [--peek:0.75rem] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))]`,`h-(--height) [transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--peek))-(var(--shrink)*var(--height))))_scale(var(--scale))] [transition:transform_500ms_cubic-bezier(0.22,1,0.36,1),opacity_500ms,height_150ms]`,`after:absolute after:top-full after:left-0 after:h-[calc(var(--gap)+1px)] after:w-full after:content-['']`,`data-expanded:h-(--toast-height) data-expanded:[transform:translateX(var(--toast-swipe-movement-x))_translateY(var(--offset-y))]`,`data-limited:opacity-0 data-starting-style:[transform:translateY(150%)]`,`[&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:[transform:translateY(150%)]`,`data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]`,`data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]`,`data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]`,`data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]`,`data-expanded:data-ending-style:data-[swipe-direction=down]:[transform:translateY(calc(var(--toast-swipe-movement-y)+150%))]`,`data-expanded:data-ending-style:data-[swipe-direction=left]:[transform:translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))]`,`data-expanded:data-ending-style:data-[swipe-direction=right]:[transform:translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))]`,`data-expanded:data-ending-style:data-[swipe-direction=up]:[transform:translateY(calc(var(--toast-swipe-movement-y)-150%))]`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,K.jsx)(pd,{"data-slot":`toast`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function df(e){let t=(0,B.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=G(`flex h-full items-center gap-3 overflow-hidden p-4 transition-opacity duration-250 ease-[cubic-bezier(0.22,1,0.36,1)] data-behind:opacity-0 data-expanded:opacity-100`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,K.jsx)(md,{"data-slot":`toast-content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ff(e){let t=(0,B.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=G(`text-sm font-medium`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,K.jsx)(Td,{"data-slot":`toast-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function pf(e){let t=(0,B.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=G(`text-sm text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,K.jsx)(wd,{"data-slot":`toast-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function mf({className:e,render:t=(0,K.jsx)(ks,{variant:`outline`,size:`sm`}),...n}){return(0,K.jsx)(Dd,{"data-slot":`toast-action`,render:t,className:G(`shrink-0`,e),...n})}function hf({className:e,children:t,render:n=(0,K.jsx)(ks,{variant:`ghost`,size:`icon-sm`}),...r}){return(0,K.jsx)(Ed,{"data-slot":`toast-close`,"aria-label":`Close toast`,render:n,className:G(`relative shrink-0 text-muted-foreground after:absolute after:-inset-2 after:content-[''] hover:text-foreground`,e),...r,children:t??(0,K.jsx)(Si,{"aria-hidden":`true`})})}function gf(e){let t=(0,B.c)(7),{type:n}=e,r=null;if(n===`success`){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,K.jsx)(ui,{"aria-hidden":`true`}),t[0]=e):e=t[0],r=e}if(n===`info`){let e;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,K.jsx)(bi,{"aria-hidden":`true`}),t[1]=e):e=t[1],r=e}if(n===`warning`){let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,K.jsx)(vi,{"aria-hidden":`true`}),t[2]=e):e=t[2],r=e}if(n===`error`){let e;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,K.jsx)(mi,{className:`text-destructive`,"aria-hidden":`true`}),t[3]=e):e=t[3],r=e}if(n===`loading`){let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,K.jsx)(fi,{className:`animate-spin`,"aria-hidden":`true`}),t[4]=e):e=t[4],r=e}if(!r)return null;let i;return t[5]===r?i=t[6]:(i=(0,K.jsx)(`span`,{"data-slot":`toast-icon`,className:`shrink-0 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4`,children:r}),t[5]=r,t[6]=i),i}function _f(){let e=(0,B.c)(2),{toasts:t}=rf(),n;return e[0]===t?n=e[1]:(n=t.map(vf),e[0]=t,e[1]=n),n}function vf(e){return(0,K.jsx)(uf,{toast:e,children:(0,K.jsxs)(df,{children:[(0,K.jsx)(gf,{type:e.type}),(0,K.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,K.jsx)(ff,{}),(0,K.jsx)(pf,{})]}),(0,K.jsx)(mf,{}),(0,K.jsx)(hf,{})]})},e.id)}function yf(e){let t=(0,B.c)(9),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({children:n,toastManager:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?of:i,o;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,K.jsx)(cf,{children:(0,K.jsx)(lf,{children:(0,K.jsx)(_f,{})})}),t[4]=o):o=t[4];let s;return t[5]!==n||t[6]!==r||t[7]!==a?(s=(0,K.jsxs)(sf,{toastManager:a,...r,children:[n,o]}),t[5]=n,t[6]=r,t[7]=a,t[8]=s):s=t[8],s}export{Hl as $,po as $n,Oc as $t,Wu as A,Y as An,el as At,Eu as B,Do as Bn,Wc as Bt,Md as C,X as Cn,ke as Cr,fl as Ct,yd as D,os as Dn,ul as Dt,kd as E,hs as En,Me as Er,ll as Et,Ru as F,No as Fn,nl as Ft,fu as G,io as Gn,Ic as Gt,wu as H,Co as Hn,Hc as Ht,Iu as I,Ao as In,al as It,hu as J,co as Jn,Rc as Jt,pu as K,vo as Kn,Lc as Kt,Lu as L,So as Ln,Xc as Lt,Zu as M,Qo as Mn,tl as Mt,Uu as N,Ro as Nn,$c as Nt,hd as O,rs as On,sl as Ot,Hu as P,J as Pn,il as Pt,Ul as Q,fo as Qn,jc as Qt,ju as R,yo as Rn,Zc as Rt,Nd as S,ws as Sn,Be as Sr,hl as St,Od as T,_s as Tn,Fe as Tr,cl as Tt,Cu as U,Eo as Un,Uc as Ut,Du as V,q as Vn,Vc as Vt,lu as W,wo as Wn,zc as Wt,uu as X,uo as Xn,Nc as Xt,cu as Y,xo as Yn,Pc as Yt,Gl as Z,lo as Zn,Mc as Zt,Ud as _,js as _n,Qe as _r,xl as _t,Yd as a,ic as an,ci as ar,_l as at,Gd as b,ks as bn,Ge as br,pl as bt,Id as c,Js as cn,zn as cr,Sl as ct,Jd as d,zs as dn,ct as dr,wl as dt,Ec as en,bo as er,Wl as et,Rd as f,Vs as fn,st as fr,Ol as ft,Wd as g,Fs as gn,Ze as gr,Rl as gt,Fd as h,Is as hn,et as hr,Il as ht,Zd as i,pc as in,fi as ir,yl as it,Xu as j,es as jn,rl as jt,Gu as k,ns as kn,ol as kt,Hd as l,Ks as ln,Rn as lr,El as lt,Bd as m,As as mn,Xe as mr,Fl as mt,of as n,_c as nn,Di as nr,Vl as nt,Kd as o,ac as on,Or as or,bl as ot,zd as p,Bs as pn,ot as pr,Cl as pt,mu as q,so as qn,Z as qt,ef as r,vc as rn,Si as rr,Kl as rt,Ld as s,Zs as sn,Er as sr,gl as st,yf as t,kc as tn,G as tr,Jl as tt,Vd as u,Hs as un,vn as ur,Dl as ut,Ad as v,Ns as vn,Ye as vr,Tl as vt,jd as w,gs as wn,He as wr,dl as wt,qd as x,Os as xn,De as xr,zl as xt,Pd as y,Ps as yn,Pe as yr,ml as yt,Ou as z,ao as zn,Yc as zt};
|
package/dist/client/index.html
CHANGED
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
<link rel="manifest" href="/manifest.webmanifest" />
|
|
15
15
|
|
|
16
16
|
<title>Auth</title>
|
|
17
|
-
<script type="module" crossorigin src="/assets/index-
|
|
17
|
+
<script type="module" crossorigin src="/assets/index-DIpS8BKV.js"></script>
|
|
18
18
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-WkwZ5CU-.js">
|
|
19
19
|
<link rel="modulepreload" crossorigin href="/assets/react-BUjtWCUj.js">
|
|
20
|
-
<link rel="modulepreload" crossorigin href="/assets/effect-
|
|
21
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
22
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
20
|
+
<link rel="modulepreload" crossorigin href="/assets/effect-DksNtAHN.js">
|
|
21
|
+
<link rel="modulepreload" crossorigin href="/assets/toast-D2hAfPD-.js">
|
|
22
|
+
<link rel="stylesheet" crossorigin href="/assets/index-tRps0ChV.css">
|
|
23
23
|
</head>
|
|
24
24
|
<body>
|
|
25
25
|
<div id="root"></div>
|