@deslop/auth 0.1.1312 → 0.1.1313
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)-DJeYth6p.js +1 -0
- package/dist/client/assets/app-bar-D53OI4Pk.js +2 -0
- package/dist/client/assets/auth-BF8WBqbB.js +1 -0
- package/dist/client/assets/components-Dpma8lq_.js +3 -0
- package/dist/client/assets/dist-CoswJ3T9.js +1 -0
- package/dist/client/assets/dropdown-menu-zz6vzKw3.js +1 -0
- package/dist/client/assets/effect-D80oo8_m.js +17 -0
- package/dist/client/assets/format-BVrAjvk9.js +1 -0
- package/dist/client/assets/index-B2XVBhYz.js +2 -0
- package/dist/client/assets/index-Bs-qLMIo.css +2 -0
- package/dist/client/assets/people-BA02COPM.js +1 -0
- package/dist/client/assets/route-CFn8bCOz.js +1 -0
- package/dist/client/assets/{route-DV3vVIwn.js → route-CJm29_uL.js} +1 -1
- package/dist/client/assets/useValueChanged-BefOMXH9.js +1 -0
- package/dist/client/index.html +6 -6
- package/package.json +2 -2
- package/dist/client/assets/(home)-CjNaYZr2.js +0 -1
- package/dist/client/assets/Key.es-CciAV_uS.js +0 -1
- package/dist/client/assets/app-bar-CMqfw6-k.js +0 -2
- package/dist/client/assets/auth-BNZWl1l6.js +0 -1
- package/dist/client/assets/classes-DPMqTZNl.js +0 -1
- package/dist/client/assets/components-DFpuUZ0C.js +0 -1
- package/dist/client/assets/dropdown-menu-BJ4ICzOG.js +0 -1
- package/dist/client/assets/effect-Cp782Xa9.js +0 -17
- package/dist/client/assets/index-CDrOetKk.js +0 -2
- package/dist/client/assets/index-CZkeO0Bf.css +0 -2
- package/dist/client/assets/people-DRJK7J-M.js +0 -1
- package/dist/client/assets/route-DrBzRDDa.js +0 -1
- package/dist/client/assets/useValueChanged-KanIHJJw.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{a as t,i as n,n as r,o as i}from"./react-BPjvcVqE.js";import{B as a,C as o,D as s,E as c,F as l,G as u,H as d,I as f,K as p,L as m,N as h,P as g,R as _,S as v,T as y,U as b,V as x,a as S,b as C,c as w,d as T,g as E,i as D,k as O,p as k,r as A,s as j,v as M,w as N,x as P,y as ee,z as te}from"./auth-BF8WBqbB.js";import{$t as ne,Ar as F,Bo as re,Ct as ie,Go as ae,H as oe,Ko as se,Lo as ce,Mo as le,Ot as ue,Po as de,R as fe,Rr as pe,Rt as me,Tr as he,Uo as I,Vo as ge,W as _e,Wo as ve,_o as ye,_r as be,_t as xe,as as L,at as Se,br as Ce,co as we,cs as R,eo as z,go as B,gr as Te,hr as Ee,io as De,is as Oe,ji as ke,jo as Ae,jr as je,jt as Me,li as Ne,lo as Pe,lt as Fe,mo as Ie,ns as Le,pr as Re,pt as ze,qa as Be,qo as Ve,rs as V,sn as He,so as Ue,st as We,tt as H,ut as U,vo as Ge,wi as Ke,wr as qe,xr as Je,yn as Ye,yr as Xe,z as Ze,zo as Qe,zt as $e}from"./effect-D80oo8_m.js";import{A as et,R as W,g as tt,l as nt,p as G,r as rt,t as K}from"./dist-CoswJ3T9.js";import{a as it,r as at}from"./route-CJm29_uL.js";import{n as ot,r as st}from"./index-B2XVBhYz.js";import{B as ct,I as lt,N as ut,j as dt,k as ft,r as pt,s as mt,t as ht,v as gt}from"./format-BVrAjvk9.js";import{a as _t,i as vt,n as yt,p as bt,r as xt,s as St}from"./app-bar-D53OI4Pk.js";import{a as Ct,i as wt,n as Tt,r as Et,t as Dt}from"./components-Dpma8lq_.js";import{$ as Ot,A as kt,B as At,C as jt,D as Mt,E as Nt,F as Pt,G as Ft,H as It,I as Lt,J as Rt,K as zt,L as Bt,M as Vt,N as Ht,O as Ut,P as Wt,Q as Gt,R as Kt,S as qt,T as Jt,U as Yt,V as Xt,W as Zt,X as Qt,Y as $t,Z as en,_ as tn,a as nn,b as q,d as rn,f as an,g as on,h as sn,i as J,j as cn,k as ln,l as un,m as dn,n as fn,o as pn,p as mn,q as hn,r as gn,s as _n,t as vn,u as yn,v as bn,w as xn,x as Sn,y as Cn,z as wn}from"./dropdown-menu-zz6vzKw3.js";import{n as Tn}from"./useValueChanged-BefOMXH9.js";var Y=e(i(),1),En=new Map([[`bold`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z`}))],[`duotone`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M216,128l-72,72V56Z`,opacity:`0.2`}),Y.createElement(`path`,{d:`M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z`}))],[`fill`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z`}))],[`light`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z`}))],[`regular`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z`}))],[`thin`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z`}))]]),Dn=Y.forwardRef((e,t)=>Y.createElement(W,{ref:t,...e,weights:En}));Dn.displayName=`ArrowRightIcon`;var On=new Map([[`bold`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z`}))],[`duotone`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M216,40V168H168V88H88V40Z`,opacity:`0.2`}),Y.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`fill`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`light`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z`}))],[`regular`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`thin`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z`}))]]),kn=Y.forwardRef((e,t)=>Y.createElement(W,{ref:t,...e,weights:On}));kn.displayName=`CopyIcon`;var An=new Map([[`bold`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M204,75.64V40a20,20,0,0,0-20-20H72A20,20,0,0,0,52,40V76a20.1,20.1,0,0,0,8,16l48,36L60,164a20.1,20.1,0,0,0-8,16v36a20,20,0,0,0,20,20H184a20,20,0,0,0,20-20V180.36a20.13,20.13,0,0,0-7.94-16L147.9,128l48.16-36.4A20.13,20.13,0,0,0,204,75.64ZM180,212H76V182l52-39,52,39.33Zm0-138.35L128,113,76,74V44H180Z`}))],[`duotone`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M188.82,82,128,128,67.2,82.4A8,8,0,0,1,64,76V40a8,8,0,0,1,8-8H184a8,8,0,0,1,8,8V75.64A8,8,0,0,1,188.82,82ZM64,180v36a8,8,0,0,0,8,8H184a8,8,0,0,0,8-8V180.36a8,8,0,0,0-3.18-6.38L128,128,67.2,173.6A8,8,0,0,0,64,180Z`,opacity:`0.2`}),Y.createElement(`path`,{d:`M200,75.64V40a16,16,0,0,0-16-16H72A16,16,0,0,0,56,40V76a16.07,16.07,0,0,0,6.4,12.8L114.67,128,62.4,167.2A16.07,16.07,0,0,0,56,180v36a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V180.36a16.09,16.09,0,0,0-6.35-12.77L141.27,128l52.38-39.59A16.09,16.09,0,0,0,200,75.64ZM184,216H72V180l56-42,56,42.35Zm0-140.36L128,118,72,76V40H184Z`}))],[`fill`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M200,75.64V40a16,16,0,0,0-16-16H72A16,16,0,0,0,56,40V76a16.08,16.08,0,0,0,6.41,12.8L114.67,128,62.4,167.2A16.07,16.07,0,0,0,56,180v36a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V180.36a16,16,0,0,0-6.36-12.77L141.26,128l52.38-39.59A16.05,16.05,0,0,0,200,75.64Z`}))],[`light`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M198,75.64V40a14,14,0,0,0-14-14H72A14,14,0,0,0,58,40V76a14.06,14.06,0,0,0,5.6,11.2L118,128,63.6,168.8A14.06,14.06,0,0,0,58,180v36a14,14,0,0,0,14,14H184a14,14,0,0,0,14-14V180.36a14.08,14.08,0,0,0-5.56-11.17L138,128l54.49-41.19A14.08,14.08,0,0,0,198,75.64ZM186,180.36V216a2,2,0,0,1-2,2H72a2,2,0,0,1-2-2V180a2,2,0,0,1,.8-1.6L128,135.51l57.22,43.25A2,2,0,0,1,186,180.36Zm0-104.72a2,2,0,0,1-.79,1.6L128,120.49,70.8,77.6A2,2,0,0,1,70,76V40a2,2,0,0,1,2-2H184a2,2,0,0,1,2,2Z`}))],[`regular`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M200,75.64V40a16,16,0,0,0-16-16H72A16,16,0,0,0,56,40V76a16.07,16.07,0,0,0,6.4,12.8L114.67,128,62.4,167.2A16.07,16.07,0,0,0,56,180v36a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16V180.36a16.09,16.09,0,0,0-6.35-12.77L141.27,128l52.38-39.6A16.05,16.05,0,0,0,200,75.64ZM184,216H72V180l56-42,56,42.35Zm0-140.36L128,118,72,76V40H184Z`}))],[`thin`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M196,75.64V40a12,12,0,0,0-12-12H72A12,12,0,0,0,60,40V76a12,12,0,0,0,4.8,9.6L121.33,128,64.8,170.4A12,12,0,0,0,60,180v36a12,12,0,0,0,12,12H184a12,12,0,0,0,12-12V180.36a12.05,12.05,0,0,0-4.76-9.57L134.63,128l56.61-42.79A12.05,12.05,0,0,0,196,75.64Zm-8,104.72V216a4,4,0,0,1-4,4H72a4,4,0,0,1-4-4V180a4,4,0,0,1,1.6-3.2L128,133l58.42,44.16A4,4,0,0,1,188,180.36Zm0-104.72a4,4,0,0,1-1.59,3.19L128,123,69.6,79.2A4,4,0,0,1,68,76V40a4,4,0,0,1,4-4H184a4,4,0,0,1,4,4Z`}))]]),jn=Y.forwardRef((e,t)=>Y.createElement(W,{ref:t,...e,weights:An}));jn.displayName=`HourglassIcon`;var Mn=new Map([[`bold`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M124,216a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V40A12,12,0,0,1,48,28h64a12,12,0,0,1,0,24H60V204h52A12,12,0,0,1,124,216Zm108.49-96.49-40-40a12,12,0,0,0-17,17L195,116H112a12,12,0,0,0,0,24h83l-19.52,19.51a12,12,0,0,0,17,17l40-40A12,12,0,0,0,232.49,119.51Z`}))],[`duotone`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M224,56V200a16,16,0,0,1-16,16H48V40H208A16,16,0,0,1,224,56Z`,opacity:`0.2`}),Y.createElement(`path`,{d:`M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z`}))],[`fill`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40A8,8,0,0,0,176,88v32H112a8,8,0,0,0,0,16h64v32a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,229.66,122.34Z`}))],[`light`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M118,216a6,6,0,0,1-6,6H48a6,6,0,0,1-6-6V40a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H54V210h58A6,6,0,0,1,118,216Zm110.24-92.24-40-40a6,6,0,0,0-8.48,8.48L209.51,122H112a6,6,0,0,0,0,12h97.51l-29.75,29.76a6,6,0,1,0,8.48,8.48l40-40A6,6,0,0,0,228.24,123.76Z`}))],[`regular`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z`}))],[`thin`,Y.createElement(Y.Fragment,null,Y.createElement(`path`,{d:`M116,216a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H52V212h60A4,4,0,0,1,116,216Zm110.83-90.83-40-40a4,4,0,0,0-5.66,5.66L214.34,124H112a4,4,0,0,0,0,8H214.34l-33.17,33.17a4,4,0,0,0,5.66,5.66l40-40A4,4,0,0,0,226.83,125.17Z`}))]]),Nn=Y.forwardRef((e,t)=>Y.createElement(W,{ref:t,...e,weights:Mn}));Nn.displayName=`SignOutIcon`;var X=r(),Z=t();function Pn(e){let t=(0,X.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,orientation:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`horizontal`:i,o;t[4]===n?o=t[5]:(o=K(`shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch`,n),t[4]=n,t[5]=o);let s;return t[6]!==a||t[7]!==r||t[8]!==o?(s=(0,Z.jsx)(Ot,{"data-slot":`separator`,orientation:a,className:o,...r}),t[6]=a,t[7]=r,t[8]=o,t[9]=s):s=t[9],s}var Fn=te(`inline-block size-1.5 shrink-0 rounded-full`,{variants:{status:{error:`bg-destructive`,off:`border-muted-foreground border`,warning:`bg-warning`}}});function In(e){let t=(0,X.c)(5),n=e.label,r=e.label,i;t[0]===e.status?i=t[1]:(i=Fn({status:e.status}),t[0]=e.status,t[1]=i);let a;return t[2]!==e.label||t[3]!==i?(a=(0,Z.jsx)(`span`,{"data-slot":`status-dot`,role:`img`,"aria-label":n,title:r,className:i}),t[2]=e.label,t[3]=i,t[4]=a):a=t[4],a}var Ln=Y.createContext(void 0);function Q(e){let t=Y.useContext(Ln);if(t===void 0&&!e)throw Error(G(47));return t}var Rn=e(n(),1),zn={...q,disabled:e=>e.disabled,instantType:e=>e.instantType===`trigger-change`&&!q.open(e)?void 0:e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,isPressOpenedByTrigger:(e,t)=>e.openChangeReason===`trigger-press`&&q.isOpenedByTrigger(e,t),isTouchPressOpen:(e,t)=>t&&e.openMethod===`touch`&&e.openChangeReason===`trigger-press`,hasTriggerFocusGuards:(e,t)=>q.isOpenedByTrigger(e,t)&&!e.focusManagerModal,modal:e=>e.modal,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},Bn=class extends Ht{constructor(e,t,n){let r=new Sn;super(Vn(e,r,t,n),Hn(r),zn)}setOpen=(e,t)=>{let n=t.reason===ft,r=t.reason===`trigger-press`&&t.event.detail===0,i=!e&&(t.reason===`escape-key`||t.reason==null),a=xn(t),o=this.select(`activeTriggerId`);if(!e&&t.reason===`close-press`&&t.trigger==null&&o!=null&&(t.trigger=this.context.triggerElements.getById(o)??this.select(`activeTriggerElement`)??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let s=()=>{let n=Nt(this.state,e,t.trigger,a());n.openChangeReason=t.reason,this.update(n)};n?(this.context.stickIfOpen=!0,this.context.stickIfOpenTimeout.start(500,()=>{this.context.stickIfOpen=!1}),Rn.flushSync(s)):s();let c;r?c=`click`:i?c=`dismiss`:t.reason===`focus-out`&&(c=`focus`),this.set(`instantType`,c)}};function Vn(e,t,n,r=!1){let i={...Cn(t,n,r),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i}function Hn(e){return{popupRef:Y.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:Y.createRef(),beforeTriggerFocusGuardRef:Y.createRef(),beforeContentFocusGuardRef:Y.createRef(),stickIfOpenTimeout:new ut,stickIfOpen:!0,triggerElements:e}}var Un=hn(function({props:e}){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,modal:o=!1,handle:s,triggerId:c,defaultTriggerId:l=null}=e,u=Gn(s,{modal:o,open:r,openProp:n,activeTriggerId:l,triggerIdProp:c});u.useControlledProp(`openProp`,n),u.useControlledProp(`triggerIdProp`,c);let d=u.useState(`open`),f=u.useState(`mounted`),p=u.useState(`payload`);u.useContextCallback(`onOpenChange`,i),u.useContextCallback(`onOpenChangeComplete`,a),cn(u,d),Mt(u);let{forceUnmount:m}=Ut(d,u,()=>{u.context.stickIfOpen=!0,u.set(`openChangeReason`,null)});u.useSyncedValues({modal:o}),Y.useEffect(()=>{d||u.context.stickIfOpenTimeout.clear()},[u,d]),Y.useImperativeHandle(e.actionsRef,()=>({unmount:m,close:()=>u.setOpen(!1,dt(gt))}),[m,u]);let h=d||f||s!=null;return(0,Z.jsxs)(Ln.Provider,{value:u,children:[s&&(0,Z.jsx)(jt,{handle:s,store:u}),h&&(0,Z.jsx)(Kn,{store:u,modal:o}),typeof t==`function`?t({payload:p}):t]})});function Wn(e){return Q(!0)?(0,Z.jsx)(Un,{props:e}):(0,Z.jsx)(Xt,{children:(0,Z.jsx)(Un,{props:e})})}function Gn(e,t){let n=kt((e,n)=>new Bn(t,e,n));return Y.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n}function Kn({store:e,modal:t}){let n=e.useState(`floatingRootContext`),r=Bt(n,{outsidePressEvent:{mouse:t===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}}),i=r.reference,a=r.floating;return ln(e,{activeTriggerProps:i,inactiveTriggerProps:i,popupProps:a}),null}var qn=Rt(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,handle:s,payload:c,openOnHover:l=!1,delay:u=300,closeDelay:d=0,id:f,...p}=e,m=Q(!0),h=bn(s)??m;if(!h)throw Error(G(74));let g=lt(f),_=h.useState(`isTriggerActive`,g),v=h.useState(`floatingRootContext`),y=h.useState(`isOpenedByTrigger`,g),b=h.useState(`triggerPopupId`,g),x=Y.useRef(null),{registerTrigger:S,isMountedByThisTrigger:C}=Vt(g,x,h,{payload:c,disabled:a,openOnHover:l,closeDelay:d}),w=h.useState(`isPressOpenedByTrigger`,g),T=h.useState(`isTouchPressOpen`,l),E=h.useState(`hasTriggerFocusGuards`,g),D=Pt(v,{enabled:!a&&l&&!T,mouseOnly:!0,move:!1,handleClose:Wt(),restMs:u,delay:{close:d},triggerElementRef:x,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`}),O=tt(()=>h.context.stickIfOpen),k=Kt(v,{stickIfOpen:O}),A=on(()=>h.select(`open`),e=>{h.set(`openMethod`,e)}),j=h.useState(`triggerProps`,C),{getButtonProps:M,buttonRef:N}=nt({disabled:a,native:o}),P={open(e){return w?en.open(e):Gt.open(e)}},{handlePreFocusGuardFocus:ee,handleFocusTargetFocus:te}=tn(h,x),ne=rt(`button`,e,{state:{disabled:a,open:y},ref:[N,t,S,x],props:[k.reference,D,j,A,{[Zt]:``,id:g,"aria-haspopup":`dialog`,"aria-expanded":y,"aria-controls":b},p,M],stateAttributesMapping:P}),F=(0,Z.jsx)(Y.Fragment,{children:ne},g);return E?(0,Z.jsxs)(Y.Fragment,{children:[(0,Z.jsx)(zt,{ref:h.context.beforeTriggerFocusGuardRef,onFocus:ee}),F,(0,Z.jsx)(zt,{ref:h.context.triggerFocusTargetRef,onFocus:te})]}):F}),Jn=Y.createContext(void 0);function Yn(){let e=Y.useContext(Jn);if(e===void 0)throw Error(G(45));return e}var Xn=Y.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return Q().useState(`mounted`)||n?(0,Z.jsx)(Jn.Provider,{value:n,children:(0,Z.jsx)(Yt,{ref:t,...r})}):null}),Zn=Y.createContext(void 0);function Qn(){let e=Y.useContext(Zn);if(!e)throw Error(G(46));return e}var $n=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,anchor:a,positionMethod:o,side:s,align:c,sideOffset:l,alignOffset:u,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f,arrowPadding:p,sticky:m,disableAnchorTracking:h=!1,collisionAvoidance:g=Ft,..._}=e,v=Q(),y=Yn(),b=It(),x=v.useState(`floatingRootContext`),S=v.useState(`mounted`),C=v.useState(`open`),w=v.useState(`openChangeReason`),T=v.useState(`activeTriggerElement`),E=v.useState(`modal`),D=v.useState(`openMethod`),O=v.useState(`positionerElement`),k=v.useState(`instantType`),A=v.useState(`transitionStatus`),j=v.useState(`adaptiveOrigin`),M=sn({anchor:a,floatingRootContext:x,positionMethod:o,mounted:S,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:m,disableAnchorTracking:h,keepMounted:y,nodeId:b,collisionAvoidance:g,adaptiveOrigin:j}),N=x.useState(`domReferenceElement`);mn({store:v,domReference:N,positionerElement:O,open:C});let P=E===!0&&w!==`trigger-hover`;yn(C&&P,D===`touch`,O,T);let ee=v.useStateSetter(`positionerElement`),te={open:C,side:M.side,align:M.align,anchorHidden:M.anchorHidden,instant:k},ne=rn(e,te,{styles:M.positionerStyles,transitionStatus:A,props:_,refs:[t,ee],hidden:!S,inert:!C});return(0,Z.jsxs)(Zn.Provider,{value:M,children:[S&&P&&(0,Z.jsx)(dn,{inert:$t(!C),cutout:T}),(0,Z.jsx)(At,{id:b,children:ne})]})}),er=Y.createContext(void 0);function tr(){let[e,t]=Y.useState(0),n=tt(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:Y.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}var nr=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=Q(),l=Qn(),u=un(!0)!=null,{context:d,hasClosePart:f}=tr(),p=c.useState(`open`),m=c.useState(`openMethod`),h=c.useState(`instantType`),g=c.useState(`transitionStatus`),_=c.useState(`popupProps`),v=c.useState(`titleElementId`),y=c.useState(`descriptionElementId`),b=c.useState(`modal`),x=c.useState(`mounted`),S=c.useState(`openChangeReason`),C=c.useState(`activeTriggerElement`),w=c.useState(`floatingRootContext`),T=w.useState(`floatingId`),E=c.useState(`disabled`),D=c.useState(`openOnHover`),O=c.useState(`closeDelay`);bt({open:p,ref:c.context.popupRef,onComplete(){p&&c.context.onOpenChangeComplete?.(!0)}}),Lt(w,{enabled:D&&!E,closeDelay:O});let k=a===void 0?Jt(c.context.popupRef):a,A=b!==!1&&f;c.useSyncedValue(`focusManagerModal`,A);let j=c.useStateSetter(`popupElement`),M={open:p,side:l.side,align:l.align,instant:h,transitionStatus:g},N=rt(`div`,e,{state:M,ref:[t,c.context.popupRef,j],props:[_,{id:T,role:`dialog`,...qt,"aria-labelledby":v,"aria-describedby":y,onKeyDown(e){u&&St.has(e.key)&&e.stopPropagation()}},an(g),s],stateAttributesMapping:Qt});return(0,Z.jsx)(wn,{context:w,openInteractionType:m,modal:A,disabled:!x||S===`trigger-hover`,initialFocus:k,returnFocus:o,restoreFocus:`popup`,getInsideElements:()=>[c.context.beforeTriggerFocusGuardRef.current],previousFocusableElement:et(C)?C:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,Z.jsx)(er.Provider,{value:d,children:N})})}),rr=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Q(),s=lt(a.id);return o.useSyncedValueWithCleanup(`titleElementId`,s),rt(`h2`,e,{ref:t,props:[{id:s},a]})});function ir(e){let t=(0,X.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,Z.jsx)(Wn,{"data-slot":`popover`,...n}),t[2]=n,t[3]=r),r}function ar(e){let t=(0,X.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,Z.jsx)(qn,{"data-slot":`popover-trigger`,...n}),t[2]=n,t[3]=r),r}function or(e){let t=(0,X.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?`center`:i,l=a===void 0?0:a,u=o===void 0?`bottom`:o,d=s===void 0?4:s,f;t[7]===n?f=t[8]:(f=K(`z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-none bg-popover p-2.5 text-xs text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 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,Z.jsx)(nr,{"data-slot":`popover-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,Z.jsx)(Xn,{children:(0,Z.jsx)($n,{align:c,alignOffset:l,side:u,sideOffset:d,className:`isolate z-50`,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 sr(e){let t=(0,X.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=K(`flex flex-col gap-1 text-xs`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(`div`,{"data-slot":`popover-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function cr(e){let t=(0,X.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=K(`text-sm font-medium`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Z.jsx)(rr,{"data-slot":`popover-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var lr=fe(e=>oe(t=>We(t(e))?ae(de(t.self()),()=>se(je())):ve())),ur=fe(e=>_e(t=>R(e,Ue(e=>{let n=t(e);return!We(n)||Qe(ze(n))?[]:Ve(t(lr(e)))}),ye({onEmpty:()=>ve(),onNonEmpty:e=>se(Ge(e,Xe))})),t=>we(e,e=>t(e)))),dr=fe(e=>oe($e(Ne(F,t=>ue(me(`1 second`),()=>Ne(F,n=>ht(R(e,ge(qe),ce(()=>t)),n)))))));function fr(e){let t=(0,X.c)(29),n=(0,Y.useId)(),r=e.since??n,i;t[0]===r?i=t[1]:(i=dr(r),t[0]=r,t[1]=i);let o=p(i),[s,c]=(0,Y.useState)(!1),l=(0,Y.useRef)(null),u=(0,Y.useRef)(null),d=(0,Y.useRef)(!1),f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=(e,t)=>{!e&&t.reason===`escape-key`&&(d.current=!0),!e&&t.reason===`trigger-press`?u.current?.focus():c(e)},t[2]=f):f=t[2];let m;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,Z.jsx)(_,{variant:`ghost`}),t[3]=m):m=t[3];let h=e.label,g,v;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>{d.current?d.current=!1:e.currentTarget.matches(`:focus-visible`)&&l.current?.contains(e.relatedTarget)!==!0&&c(!0)},v=()=>{d.current=!1},t[4]=g,t[5]=v):(g=t[4],v=t[5]);let y;t[6]===e.label?y=t[7]:(y=(0,Z.jsx)(In,{status:`warning`,label:e.label}),t[6]=e.label,t[7]=y);let b;t[8]===o?b=t[9]:(b=Se(o,L(`now`)),t[8]=o,t[9]=b);let x;t[10]===b?x=t[11]:(x=(0,Z.jsx)(`span`,{"aria-hidden":!0,className:`text-muted-foreground tabular-nums`,children:b}),t[10]=b,t[11]=x);let S;t[12]!==n||t[13]!==e.label||t[14]!==y||t[15]!==x?(S=(0,Z.jsxs)(ar,{id:n,render:m,openOnHover:!0,delay:150,"aria-label":h,onFocus:g,onBlur:v,children:[y,x]}),t[12]=n,t[13]=e.label,t[14]=y,t[15]=x,t[16]=S):S=t[16];let C;t[17]===e.label?C=t[18]:(C=(0,Z.jsx)(sr,{children:(0,Z.jsx)(cr,{children:e.label})}),t[17]=e.label,t[18]=C);let w;t[19]===e.reset?w=t[20]:(w=e.reset!==void 0&&(0,Z.jsxs)(_,{ref:u,variant:`outline`,size:`sm`,onClick:e.reset,children:[(0,Z.jsx)(a,{}),`Try again`]}),t[19]=e.reset,t[20]=w);let T;t[21]!==C||t[22]!==w?(T=(0,Z.jsxs)(or,{ref:l,initialFocus:!1,align:`end`,className:`w-auto`,children:[C,w]}),t[21]=C,t[22]=w,t[23]=T):T=t[23];let E;return t[24]!==n||t[25]!==s||t[26]!==S||t[27]!==T?(E=(0,Z.jsxs)(ir,{open:s,triggerId:n,onOpenChange:f,children:[S,T]}),t[24]=n,t[25]=s,t[26]=S,t[27]=T,t[28]=E):E=t[28],E}function pr(e){let t=(0,X.c)(11),n;t[0]===e.readers?n=t[1]:(n=ur(e.readers),t[0]=e.readers,t[1]=n);let r=p(n),i;t[2]===e.readers?i=t[3]:(i=ur(e.readers),t[2]=e.readers,t[3]=i);let a=b(i),o;if(t[4]!==e.label||t[5]!==a||t[6]!==r){let n;t[8]!==e.label||t[9]!==a?(n=t=>(0,Z.jsx)(fr,{label:e.label,reset:a,since:t}),t[8]=e.label,t[9]=a,t[10]=n):n=t[10],o=I(r,{onNone:V,onSome:n}),t[4]=e.label,t[5]=a,t[6]=r,t[7]=o}else o=t[7];return o}function mr(e){let t=(0,X.c)(2),n;return t[0]===e.children?n=t[1]:(n=(0,Z.jsx)(`main`,{className:`pb-safe-bottom relative flex min-h-0 flex-1 justify-center overflow-y-auto px-4 pt-4 sm:px-6 lg:px-8 lg:pt-6`,children:(0,Z.jsx)(`div`,{className:`flex min-h-full w-full max-w-160 flex-col gap-4 self-start`,children:e.children})}),t[0]=e.children,t[1]=n),n}var hr=at(`/(home)`);function gr(e){let t=(0,X.c)(2),n;return t[0]===e.message?n=t[1]:(n=(0,Z.jsx)(J,{disabled:!0,variant:`destructive`,children:e.message}),t[0]=e.message,t[1]=n),n}function _r(e){let t=(0,X.c)(21),n=p(ee),r=Se(n,xr),[i,a]=x(S),[o,s]=x(k),c=gn,l;t[0]===n?l=t[1]:(l=I(H(n),{onNone:V,onSome:br}),t[0]=n,t[1]=l);let u=B(r,yr),d;t[2]!==i||t[3]!==o?(d=U(i)||U(o),t[2]=i,t[3]=o,t[4]=d):d=t[4];let f;t[5]!==a||t[6]!==s||t[7]!==e.via?(f=()=>z(e.via===`Code`,{onFalse:()=>a(),onTrue:()=>s()}),t[5]=a,t[6]=s,t[7]=e.via,t[8]=f):f=t[8];let m;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,Z.jsx)(Ct,{}),t[9]=m):m=t[9];let h;t[10]!==d||t[11]!==f?(h=(0,Z.jsxs)(J,{closeOnClick:!1,disabled:d,onClick:f,children:[m,`Add a passkey`]}),t[10]=d,t[11]=f,t[12]=h):h=t[12];let g;t[13]===i?g=t[14]:(g=I(H(i),{onNone:V,onSome:vr}),t[13]=i,t[14]=g);let _;return t[15]!==c||t[16]!==l||t[17]!==u||t[18]!==h||t[19]!==g?(_=(0,Z.jsxs)(c,{children:[l,u,h,g]}),t[15]=c,t[16]=l,t[17]=u,t[18]=h,t[19]=g,t[20]=_):_=t[20],_}function vr(e){return(0,Z.jsx)(gr,{message:e.message})}function yr(e){return(0,Z.jsxs)(J,{disabled:!0,children:[(0,Z.jsx)(Ct,{}),(0,Z.jsx)(`span`,{className:`truncate`,children:e.addedFrom}),(0,Z.jsx)(`span`,{className:`text-muted-foreground ml-auto pl-3 text-xs`,children:z(e.synced,{onFalse:L(`One device`),onTrue:L(`Synced`)})})]},e.id)}function br(e){return(0,Z.jsx)(gr,{message:`Passkeys unavailable · ${e.message}`})}function xr(){return[]}function Sr(e){let t=(0,X.c)(32),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={select:wr},t[0]=n):n=t[0];let r=hr.useSearch(n),[i,a]=x(E),[s,c]=x(D),l;t[1]===e.account.via?l=t[2]:(l=o(e.account.via),t[1]=e.account.via,t[2]=l),d(l);let u;t[3]===e.account?u=t[4]:(u=(0,Z.jsx)(_n,{render:(0,Z.jsx)(yt,{account:e.account})}),t[3]=e.account,t[4]=u);let f=`@${e.account.name}`,p=e.account.role===`Admin`&&` · admin`,m;t[5]!==f||t[6]!==p?(m=(0,Z.jsx)(gn,{children:(0,Z.jsxs)(nn,{children:[f,p]})}),t[5]=f,t[6]=p,t[7]=m):m=t[7];let h;t[8]!==e.account.role||t[9]!==e.account.via?(h=e.account.role!==`Waiting`&&(0,Z.jsx)(_r,{via:e.account.via}),t[8]=e.account.role,t[9]=e.account.via,t[10]=h):h=t[10];let g;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Z.jsx)(pn,{}),t[11]=g):g=t[11];let _;t[12]===i?_=t[13]:(_=U(i),t[12]=i,t[13]=_);let v;t[14]!==a||t[15]!==r?(v=()=>a(r),t[14]=a,t[15]=r,t[16]=v):v=t[16];let y;t[17]!==_||t[18]!==v?(y=(0,Z.jsx)(J,{variant:`destructive`,closeOnClick:!1,disabled:_,onClick:v,children:`Sign out`}),t[17]=_,t[18]=v,t[19]=y):y=t[19];let b;t[20]===i?b=t[21]:(b=I(H(i),{onNone:V,onSome:Cr}),t[20]=i,t[21]=b);let S;t[22]!==y||t[23]!==b||t[24]!==m||t[25]!==h?(S=(0,Z.jsxs)(fn,{align:`end`,className:`w-56`,children:[m,h,g,y,b]}),t[22]=y,t[23]=b,t[24]=m,t[25]=h,t[26]=S):S=t[26];let C;return t[27]!==s||t[28]!==c||t[29]!==S||t[30]!==u?(C=(0,Z.jsxs)(vn,{open:s,onOpenChange:c,children:[u,S]}),t[27]=s,t[28]=c,t[29]=S,t[30]=u,t[31]=C):C=t[31],C}function Cr(e){return(0,Z.jsx)(gr,{message:e.message})}function wr(e){return e.next}var Tr=e=>{let t=(0,X.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Z.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z`,transform:`scale(64)`,fill:`#ffff`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,Z.jsx)(`svg`,{...e,viewBox:`0 0 1024 1024`,fill:`none`,children:n}),t[1]=e,t[2]=r),r},Er=e=>{let t=(0,X.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,Z.jsx)(`path`,{fill:`#1b1f23`,fillRule:`evenodd`,d:`M512 0C229.12 0 0 229.12 0 512c0 226.56 146.56 417.92 350.08 485.76 25.6 4.48 35.2-10.88 35.2-24.32 0-12.16-.64-52.48-.64-95.36-128.64 23.68-161.92-31.36-172.16-60.16-5.76-14.72-30.72-60.16-52.48-72.32-17.92-9.6-43.52-33.28-.64-33.92 40.32-.64 69.12 37.12 78.72 52.48 46.08 77.44 119.68 55.68 149.12 42.24 4.48-33.28 17.92-55.68 32.64-68.48-113.92-12.8-232.96-56.96-232.96-252.8 0-55.68 19.84-101.76 52.48-137.6-5.12-12.8-23.04-65.28 5.12-135.68 0 0 42.88-13.44 140.8 52.48 40.96-11.52 84.48-17.28 128-17.28s87.04 5.76 128 17.28c97.92-66.56 140.8-52.48 140.8-52.48 28.16 70.4 10.24 122.88 5.12 135.68 32.64 35.84 52.48 81.28 52.48 137.6 0 196.48-119.68 240-233.6 252.8 18.56 16 34.56 46.72 34.56 94.72 0 68.48-.64 123.52-.64 140.8 0 13.44 9.6 29.44 35.2 24.32C877.44 929.92 1024 737.92 1024 512 1024 229.12 794.88 0 512 0`,clipRule:`evenodd`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,Z.jsx)(`svg`,{...e,viewBox:`0 0 1024 1024`,fill:`none`,children:n}),t[1]=e,t[2]=r),r},Dr=at(`/(home)`);He([`Approve here`,`Continue`]);function Or(){let e=(0,X.c)(14),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:Ar},e[0]=t):t=e[0];let n=Dr.useSearch(t),[r]=x(y),[i]=x(T),[a]=x(M),o;if(e[1]!==i||e[2]!==a||e[3]!==r){let t;e[5]===i?t=e[6]:(t=()=>H(i),e[5]=i,e[6]=t);let n;e[7]===a?n=e[8]:(n=()=>H(a),e[7]=a,e[8]=n),o=I(R(H(r),ae(t),ae(n)),{onNone:V,onSome:kr}),e[1]=i,e[2]=a,e[3]=r,e[4]=o}else o=e[4];let s;e[9]===n?s=e[10]:(s=n&&(0,Z.jsx)(ct,{children:`GitHub sign-in failed. Try again.`}),e[9]=n,e[10]=s);let c;return e[11]!==o||e[12]!==s?(c=(0,Z.jsxs)(Z.Fragment,{children:[o,s]}),e[11]=o,e[12]=s,e[13]=c):c=e[13],c}function kr(e){return(0,Z.jsx)(ct,{children:e.message})}function Ar(e){return re(e.error)}function jr(e){let t=(0,X.c)(23),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={select:Mr},t[0]=n):n=t[0];let r=Dr.useSearch(n),[i,a]=x(y),[o,s]=x(M),c;t[1]===i?c=t[2]:(c=U(i),t[1]=i,t[2]=c);let l;t[3]===a?l=t[4]:(l=()=>a(),t[3]=a,t[4]=l);let u;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Z.jsx)(wt,{light:Tr,dark:Er}),t[5]=u):u=t[5];let d;t[6]!==e.verb||t[7]!==c||t[8]!==l?(d=(0,Z.jsxs)(_,{size:`lg`,className:`w-full`,disabled:c,onClick:l,children:[u,e.verb,` with GitHub`]}),t[6]=e.verb,t[7]=c,t[8]=l,t[9]=d):d=t[9];let f;t[10]===o?f=t[11]:(f=U(o),t[10]=o,t[11]=f);let p;t[12]!==r||t[13]!==s?(p=()=>s(r),t[12]=r,t[13]=s,t[14]=p):p=t[14];let m;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,Z.jsx)(Ct,{}),t[15]=m):m=t[15];let h;t[16]!==e.verb||t[17]!==f||t[18]!==p?(h=(0,Z.jsxs)(_,{size:`lg`,variant:`outline`,className:`w-full`,disabled:f,onClick:p,children:[m,e.verb,` with a passkey`]}),t[16]=e.verb,t[17]=f,t[18]=p,t[19]=h):h=t[19];let g;return t[20]!==d||t[21]!==h?(g=(0,Z.jsxs)(Z.Fragment,{children:[d,h]}),t[20]=d,t[21]=h,t[22]=g):g=t[22],g}function Mr(e){return e.next}function Nr(){let e=(0,X.c)(14),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:Pr},e[0]=t):t=e[0];let n=Dr.useSearch(t),[r,i]=x(T),a;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,Z.jsx)(`h1`,{className:`sr-only`,children:`Sign in`}),e[1]=a):a=e[1];let o;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Z.jsx)(jr,{verb:`Continue`}),e[2]=o):o=e[2];let s;e[3]===r?s=e[4]:(s=U(r),e[3]=r,e[4]=s);let c;e[5]!==n||e[6]!==i?(c=()=>i(n),e[5]=n,e[6]=i,e[7]=c):c=e[7];let l;e[8]!==s||e[9]!==c?(l=(0,Z.jsx)(_,{size:`lg`,variant:`ghost`,className:`w-full`,disabled:s,onClick:c,children:`Use a sign-in code`}),e[8]=s,e[9]=c,e[10]=l):l=e[10];let u;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Z.jsx)(Or,{}),e[11]=u):u=e[11];let d;return e[12]===l?d=e[13]:(d=(0,Z.jsxs)(`section`,{className:`m-auto flex w-full flex-col gap-5 sm:max-w-80`,"aria-label":`Sign in`,children:[a,(0,Z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[o,l,u]})]}),e[12]=l,e[13]=d),d}function Pr(e){return e.next}var $=new Uint8Array(512),Fr=new Uint8Array(256);for(let e=0,t=1;e<255;e++)$[e]=t,Fr[t]=e,t<<=1,256&t&&(t^=285);for(let e=255;e<512;e++)$[e]=$[e-255];var Ir=(e,t)=>e>0&&t>0?$[Fr[e]+Fr[t]]:0,Lr=(e,t)=>$[t*Fr[e]%255],Rr=e=>{let t=new Uint8Array(e+2),n=new Uint8Array(e+1);n[0]=1;for(let r=0;r<e;r++){let e=Lr(2,r);t.fill(0,0,r+2);for(let i=0;i<r+1;i++)t[i]^=n[i],t[i+1]^=Ir(n[i],e);for(let e=0;e<r+2;e++)n[e]=t[e]}return n},zr=(e,t)=>{let n=Rr(t),r=new Uint8Array(e.byteLength+n.byteLength-1);r.set(e);for(let t=0;t<e.byteLength;t++){let e=r[t];if(e)for(let i=1;i<n.byteLength;i++)r[t+i]^=Ir(n[i],e)}return r.subarray(e.byteLength)},Br=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706],Vr=[[0,0,0,0],[10,7,17,13],[16,10,28,22],[26,15,44,36],[36,20,64,52],[48,26,88,72],[64,36,112,96],[72,40,130,108],[88,48,156,132],[110,60,192,160],[130,72,224,192],[150,80,264,224],[176,96,308,260],[198,104,352,288],[216,120,384,320],[240,132,432,360],[280,144,480,408],[308,168,532,448],[338,180,588,504],[364,196,650,546],[416,224,700,600],[442,224,750,644],[476,252,816,690],[504,270,900,750],[560,300,960,810],[588,312,1050,870],[644,336,1110,952],[700,360,1200,1020],[728,390,1260,1050],[784,420,1350,1140],[812,450,1440,1200],[868,480,1530,1290],[924,510,1620,1350],[980,540,1710,1440],[1036,570,1800,1530],[1064,570,1890,1590],[1120,600,1980,1680],[1204,630,2100,1770],[1260,660,2220,1860],[1316,720,2310,1950],[1372,750,2430,2040]],Hr=[[0,0,0,0],[1,1,1,1],[1,1,1,1],[1,1,2,2],[2,1,4,2],[2,1,4,4],[4,2,4,4],[4,2,5,6],[4,2,6,6],[5,2,8,8],[5,4,8,8],[5,4,11,8],[8,4,11,10],[9,4,16,12],[9,4,16,16],[10,6,18,12],[10,6,16,17],[11,6,19,16],[13,6,21,18],[14,7,25,21],[16,8,25,20],[17,8,25,23],[17,9,34,23],[18,9,30,25],[20,10,32,27],[21,12,35,29],[23,12,37,34],[25,12,40,34],[26,13,42,35],[28,14,45,38],[29,15,48,40],[31,16,51,43],[33,17,54,45],[35,18,57,48],[37,19,60,51],[38,19,63,53],[40,20,66,56],[43,21,70,59],[45,22,74,62],[47,24,77,65],[49,25,81,68]],Ur=[0,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141,145,149,153,157,161,165,169,173,177],Wr=[[],[],[4,16],[4,20],[4,24],[4,28],[4,32],[4,20,36],[4,22,40],[4,24,44],[4,26,48],[4,28,52],[4,30,56],[4,32,60],[4,24,44,64],[4,24,46,68],[4,24,48,72],[4,28,52,76],[4,28,54,80],[4,28,56,84],[4,32,60,88],[4,26,48,70,92],[4,24,48,72,96],[4,28,52,76,100],[4,26,52,78,104],[4,30,56,82,108],[4,28,56,84,112],[4,32,60,88,116],[4,24,48,72,96,120],[4,28,52,76,100,124],[4,24,50,76,102,128],[4,28,54,80,106,132],[4,32,58,84,110,136],[4,28,56,84,112,140],[4,32,60,88,116,144],[4,28,52,76,100,124,148],[4,22,48,74,100,126,152],[4,26,52,78,104,130,156],[4,30,56,82,108,134,160],[4,24,52,80,108,136,164],[4,28,56,84,112,140,168]],Gr=(e,t,n)=>{let r=Br[t]-Vr[t][n],i=new Uint8Array(r),a=0,o=0;if(t>9){let t=65535&e.byteLength;i[0]=64|t>>>12&15,i[1]=t>>>4&255,a=(15&t)<<4,o=2}else{let t=255&e.byteLength;i[0]=64|t>>>4&15,a=(15&t)<<4,o=1}let s=0;for(;s+1<e.byteLength;){let t=e[s++]<<8|e[s++];i[o++]=a|t>>>12,i[o++]=t>>>4&255,a=t<<4&240}s<e.byteLength&&(i[o++]=a|e[s]>>>4,a=e[s]<<4&240),i[o++]=a;for(let e=0;o<r;e++)i[o++]=1&e?17:236;return i},Kr=(e,t)=>{for(let n=1;n<=40;n++){let r=Br[n]-Vr[n][t];if(r-=n>9?3:2,r>=e.byteLength)return n}throw RangeError(`Bytes exceed max length`)},qr=(e,t,n)=>{let r=e.byteLength+Vr[t][n],i=Hr[t][n],a=i-r%i,o=e.byteLength/i|0,s=(r/i|0)-o,c=e.byteLength,l=new Uint8Array(r);for(let t=0,n=0;t<i;t++){let r=t<a?o:o+1,u=zr(e.subarray(n,n+r),s);for(let s=0;s<r;s++)l[s<o?s*i+t:o*i+(t-a)]=e[n+s];for(let e=0;e<s;e++)l[c+e*i+t]=u[e];n+=r}return l},Jr=(e,t,n,r,i)=>{let a=(n+i)*t;for(let o=n*t;o<a;o+=t)e.fill(1,o+r,o+r+i)},Yr=(e,t,n,r,i)=>{let a=n*t+r;for(let n=0;n<i;n++)for(let r=0;r<i;r++){let o=r<i-1-r?r:i-1-r,s=n<i-1-n?n:i-1-n;e[a+n*t+r]=(o<s?o:s)===1?0:1}},Xr=(e,t,n)=>{let r=n-7;Yr(e,n,0,0,7),Yr(e,n,r,0,7),Yr(e,n,0,r,7),Jr(t,n,0,0,8),Jr(t,n,r-1,0,8),Jr(t,n,0,r-1,8)},Zr=(e,t,n,r)=>{let i=Wr[r];for(let r=0;r<i.length;r++){let a=i[r];for(let o=0;o<i.length;o++)if((r||o%(i.length-1))&&(o||r%(i.length-1))){let r=i[o];Yr(e,n,a,r,5),Jr(t,n,a,r,5)}}},Qr=(e,t,n)=>{let r=n-7;for(let i=8;i<r;i++){let r=i*n+6;t[r]||(t[r]=1,e[r]=(i+1)%2);let a=6*n+i;t[a]||(t[a]=1,e[a]=(i+1)%2)}},$r=(e,t)=>{let n=t-7-1;e[8*t+8]=1;for(let r=0;r<8;r++)e[r*t+8]=1,e[8*t+r]=1,e[(n+r)*t+8]=1,e[8*t+n+r]=1},ei=(e,t,n)=>{if(n>=7){let n=t-7-4;for(let r=0;r<6;r++)for(let i=0;i<3;i++)e[(n+i)*t+r]=1,e[r*t+n+i]=1}},ti=(e,t,n,r)=>{let i=0,a=n-1,o=-1,s=7;for(;i<r.byteLength;){a===6&&a--;for(let c=0;c<n;c++)for(let l=0;l<2;l++){let u=a-l,d=o===-1?n-c-1:c;if(!t[d*n+u]&&(e[d*n+u]=r[i]>>>s&1,s--===0&&(s=7,++i>=r.byteLength)))return}o=-o,a-=2}},ni=(e,t,n)=>{for(let r=0,i=0;r<n;r++,i+=n)for(let a=0;a<n;a++){let n=i+a;t[n]||r+a&1||(e[n]^=1)}},ri=(e,t,n)=>{for(let r=0,i=0;r<n;r++,i+=n)for(let a=0;a<n;a++){let n=i+a;t[n]||1&r||(e[n]^=1)}},ii=(e,t,n)=>{for(let r=0,i=0;r<n;r++,i+=n)for(let r=0;r<n;r++){let n=i+r;!t[n]&&r%3==0&&(e[n]^=1)}},ai=(e,t,n)=>{for(let r=0,i=0;r<n;r++,i+=n)for(let a=0;a<n;a++){let n=i+a;!t[n]&&(r+a)%3==0&&(e[n]^=1)}},oi=(e,t,n)=>{for(let r=0,i=0;r<n;r++,i+=n){let a=r/2|0;for(let r=0;r<n;r++){let n=i+r;t[n]||a+(r/3|0)&1||(e[n]^=1)}}},si=(e,t,n)=>{for(let r=0,i=0;r<n;r++,i+=n)for(let a=0;a<n;a++){let n=i+a,o=r*a;!t[n]&&(1&o)+o%3==0&&(e[n]^=1)}},ci=(e,t,n)=>{for(let r=0,i=0;r<n;r++,i+=n)for(let a=0;a<n;a++){let n=i+a,o=r*a;!t[n]&&((1&o)+o%3)%2==0&&(e[n]^=1)}},li=(e,t,n)=>{for(let r=0,i=0;r<n;r++,i+=n)for(let a=0;a<n;a++){let n=i+a;t[n]||r*a%3+(r+a&1)&1||(e[n]^=1)}},ui=(e,t,n,r)=>{switch(r){case 0:return ni(e,t,n);case 1:return ri(e,t,n);case 2:return ii(e,t,n);case 3:return ai(e,t,n);case 4:return oi(e,t,n);case 5:return si(e,t,n);case 6:return ci(e,t,n);case 7:return li(e,t,n)}},di=(e,t)=>{let n=0,r=0;for(let i=0;i<t;i++){let a=1,o=1,s=0,c=0;for(let l=0;l<t;l++){let u=i*t+l,d=l*t+i;r+=e[u],l>0&&(e[u-1]===e[u]?a++:(a>=5&&(n+=a-5+3),a=1),e[d-t]===e[d]?o++:(o>=5&&(n+=o-5+3),o=1)),i<t-1&&l<t-1&&e[u]===e[u+1]&&e[u]===e[u+t]&&e[u]===e[u+t+1]&&(n+=3),s=s<<1&2047|e[u],c=c<<1&2047|e[d],l>=10&&((s===1488||s===93)&&(n+=40),(c===1488||c===93)&&(n+=40))}a>=5&&(n+=a-5+3),o>=5&&(n+=o-5+3)}let i=100*Math.abs(r/e.byteLength-.5);return n+=10*Math.floor(i/5),n},fi=(e,t,n)=>{let r=0,i=0,a=new Uint8Array(e.byteLength);for(let o=0;o<=7;o+=1){a.set(e),ui(a,t,n,o);let s=di(a,n);(o===0||s<r)&&(r=s,i=o)}return ui(e,t,n,i),i},pi=(e,t)=>{let n=(e<<3|t)<<10,r=n;for(let e=0;e<5;e++)r&1<<14-e&&(r^=1335<<4-e);return 21522^(r|n)},mi=(e,t,n,r)=>{let i=pi(n,r),a=14;for(let n=0;n<6;n++)e[8*t+n]=i>>a--&1;e[8*t+7]=i>>a--&1,e[8*t+8]=i>>a--&1,e[7*t+8]=i>>a--&1;for(let n=0;n<6;n++)e[(5-n)*t+8]=i>>a--&1;a=14;for(let n=0;n<7;n++)e[(t-1-n)*t+8]=i>>a--&1;e[(t-8)*t+8]=1;for(let n=0;n<8;n++)e[8*t+t-8+n]=i>>a--&1},hi=e=>{let t=e<<12,n=t;for(let e=0;e<6;e++)n&1<<17-e&&(n^=7973<<5-e);return n|t},gi=(e,t,n)=>{if(n>=7){let r=hi(n);for(let n=0;n<6;n++)for(let i=0;i<3;i++){let a=r>>>3*n+i&1;e[(t-11+i)*t+n]=a,e[n*t+t-11+i]=a}}},_i=(e,t)=>{let n=Kr(e,t),r=qr(Gr(e,n,t),n,t),i=Ur[n],a=new Uint8Array(i*i),o=new Uint8Array(i*i);return Xr(a,o,i),Zr(a,o,i,n),Qr(a,o,i),$r(o,i),ei(o,i,n),ti(a,o,i,r),mi(a,i,t,fi(a,o,i)),gi(a,i,n),a},vi=new TextEncoder,yi=(e,t=1)=>_i(typeof e==`string`?vi.encode(e):e,t),bi=class extends Ye()(`ClipboardError`,{cause:ne()}){};He([`default`,`icon-sm`]);var xi=fe(e=>Ze(()=>R(ie(pe(ke({catch:e=>bi.make({cause:e}),try:()=>navigator.clipboard.writeText(e)}),!0)),xe(ie(pe(Ke(`1500 millis`),!1))),Me([!1]))));function Si(e){let t=(0,X.c)(44),n;t[0]===e.value?n=t[1]:(n=xi(e.value),t[0]=e.value,t[1]=n);let[r,i]=x(n),a;t[2]===r?a=t[3]:(a=Fe(r)&&r.value,t[2]=r,t[3]=a);let o=a,s,c,l,u,d,f,p,m;t[4]!==e.className||t[5]!==e.failure||t[6]!==e.label||t[7]!==e.size||t[8]!==r?(l=We(r)&&!r.waiting,c=l&&e.failure!==void 0,s=_,u=z(l&&!c,{onFalse:L(`ghost`),onTrue:L(`destructive`)}),d=e.size,f=e.className,p=e.label,m=z(l&&!c,{onFalse:Oe,onTrue:L(`Cannot copy`)}),t[4]=e.className,t[5]=e.failure,t[6]=e.label,t[7]=e.size,t[8]=r,t[9]=s,t[10]=c,t[11]=l,t[12]=u,t[13]=d,t[14]=f,t[15]=p,t[16]=m):(s=t[9],c=t[10],l=t[11],u=t[12],d=t[13],f=t[14],p=t[15],m=t[16]);let h;t[17]===i?h=t[18]:(h=()=>i(),t[17]=i,t[18]=h);let g=e.children,v;if(t[19]!==o||t[20]!==e.children){let n;t[22]===e.children?n=t[23]:(n=()=>(0,Z.jsx)(kn,{className:K(e.children!==void 0&&`text-muted-foreground`)}),t[22]=e.children,t[23]=n),v=z(o,{onFalse:n,onTrue:Ci}),t[19]=o,t[20]=e.children,t[21]=v}else v=t[21];let y=o&&`Copied`,b=l&&!c&&`Cannot copy`,S;t[24]!==y||t[25]!==b?(S=(0,Z.jsxs)(`span`,{role:`status`,className:`sr-only`,children:[y,b]}),t[24]=y,t[25]=b,t[26]=S):S=t[26];let C;t[27]!==s||t[28]!==e.children||t[29]!==S||t[30]!==u||t[31]!==d||t[32]!==f||t[33]!==p||t[34]!==m||t[35]!==h||t[36]!==v?(C=(0,Z.jsxs)(s,{variant:u,size:d,className:f,"aria-label":p,title:m,onClick:h,children:[g,v,S]}),t[27]=s,t[28]=e.children,t[29]=S,t[30]=u,t[31]=d,t[32]=f,t[33]=p,t[34]=m,t[35]=h,t[36]=v,t[37]=C):C=t[37];let w;t[38]!==c||t[39]!==e.failure?(w=c&&(0,Z.jsx)(ct,{children:e.failure}),t[38]=c,t[39]=e.failure,t[40]=w):w=t[40];let T;return t[41]!==C||t[42]!==w?(T=(0,Z.jsxs)(Z.Fragment,{children:[C,w]}),t[41]=C,t[42]=w,t[43]=T):T=t[43],T}function Ci(){return(0,Z.jsx)(Tn,{})}function wi(e){let t=(0,X.c)(17),n,r,i,a,o,s;if(t[0]!==e.className||t[1]!==e.text){let c=Pe(yi(e.text)),l=Math.sqrt(c.length);r=`-2 -2 ${l+4} ${l+4}`,i=`crispEdges`,a=`currentColor`,o=e.className,s=`true`,n=R(c,B((e,t)=>({dark:e,x:t%l,y:Math.floor(t/l)})),De(Ei),B(Ti),Ie(``)),t[0]=e.className,t[1]=e.text,t[2]=n,t[3]=r,t[4]=i,t[5]=a,t[6]=o,t[7]=s}else n=t[2],r=t[3],i=t[4],a=t[5],o=t[6],s=t[7];let c;t[8]===n?c=t[9]:(c=(0,Z.jsx)(`path`,{d:n}),t[8]=n,t[9]=c);let l;return t[10]!==r||t[11]!==i||t[12]!==a||t[13]!==o||t[14]!==s||t[15]!==c?(l=(0,Z.jsx)(`svg`,{viewBox:r,shapeRendering:i,fill:a,className:o,"aria-hidden":s,children:c}),t[10]=r,t[11]=i,t[12]=a,t[13]=o,t[14]=s,t[15]=c,t[16]=l):l=t[16],l}function Ti(e){return`M${e.x} ${e.y}h1v1h-1z`}function Ei(e){return e.dark===1}function Di(e){let t=(0,X.c)(11),n=u(N).value,r;t[0]!==n||t[1]!==e.expiresAt?(r=he(e.expiresAt,Ce(n,Be(1)))&&(0,Z.jsx)(In,{status:`warning`,label:`Expires within a minute`}),t[0]=n,t[1]=e.expiresAt,t[2]=r):r=t[2];let i;t[3]!==n||t[4]!==e.expiresAt?(i=pt(Je(n,e.expiresAt)),t[3]=n,t[4]=e.expiresAt,t[5]=i):i=t[5];let a;t[6]===i?a=t[7]:(a=(0,Z.jsxs)(`span`,{children:[(0,Z.jsx)(`span`,{className:`tabular-nums`,children:i}),` left`]}),t[6]=i,t[7]=a);let o;return t[8]!==r||t[9]!==a?(o=(0,Z.jsxs)(`span`,{role:`timer`,className:`text-muted-foreground flex shrink-0 items-center gap-1.5`,children:[r,a]}),t[8]=r,t[9]=a,t[10]=o):o=t[10],o}function Oi(e){let t=(0,X.c)(35),n;t[0]===e.request.id?n=t[1]:(n=v(e.request.id),t[0]=e.request.id,t[1]=n);let r=n,i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Z.jsx)(`h1`,{className:`sr-only`,children:`Approve a sign-in`}),t[2]=i):i=t[2];let a;t[3]===e.request?a=t[4]:(a=(0,Z.jsx)(mt,{children:(0,Z.jsx)(Dt,{request:e.request})}),t[3]=e.request,t[4]=a);let o;t[5]!==e.request.clientName||t[6]!==e.request.device?(o=c(e.request.clientName,e.request.device),t[5]=e.request.clientName,t[6]=e.request.device,t[7]=o):o=t[7];let s;t[8]===o?s=t[9]:(s=(0,Z.jsx)(`p`,{className:`min-w-0 flex-1 py-0.5 wrap-break-word`,children:o}),t[8]=o,t[9]=s);let l;t[10]===e.request.expiresAt?l=t[11]:(l=(0,Z.jsx)(`span`,{className:`py-0.5`,children:(0,Z.jsx)(Di,{expiresAt:e.request.expiresAt})}),t[10]=e.request.expiresAt,t[11]=l);let u;t[12]!==a||t[13]!==s||t[14]!==l?(u=(0,Z.jsxs)(`div`,{className:`flex items-start gap-2 text-sm`,children:[a,s,l]}),t[12]=a,t[13]=s,t[14]=l,t[15]=u):u=t[15];let d;t[16]===e.request.kind?d=t[17]:(d=e.request.kind===`App`&&(0,Z.jsx)(`div`,{className:`flex flex-col gap-2`,children:(0,Z.jsx)(jr,{verb:`Approve here`})}),t[16]=e.request.kind,t[17]=d);let f,p;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Z.jsx)(Or,{}),p=(0,Z.jsx)(Pn,{}),t[18]=f,t[19]=p):(f=t[18],p=t[19]);let m;t[20]===e.request.id?m=t[21]:(m=j(e.request.id),t[20]=e.request.id,t[21]=m);let h;t[22]===m?h=t[23]:(h=(0,Z.jsx)(`span`,{className:`bg-background text-foreground shrink-0 border p-1.5`,children:(0,Z.jsx)(wi,{text:m,className:`size-24 sm:size-28`})}),t[22]=m,t[23]=h);let g;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Z.jsx)(`p`,{className:`text-muted-foreground text-xs/relaxed`,children:`On a device signed in to Auth, scan this or enter`}),t[24]=g):g=t[24];let _=`Copy the code ${r}`,y;t[25]!==r||t[26]!==_?(y=(0,Z.jsxs)(`div`,{className:`flex min-w-0 flex-col items-start gap-1`,children:[g,(0,Z.jsx)(Si,{label:_,value:r,failure:`Cannot copy the code; type it in instead`,children:r})]}),t[25]=r,t[26]=_,t[27]=y):y=t[27];let b;t[28]!==h||t[29]!==y?(b=(0,Z.jsxs)(`div`,{className:`flex items-center gap-4`,children:[h,y]}),t[28]=h,t[29]=y,t[30]=b):b=t[30];let x;return t[31]!==b||t[32]!==u||t[33]!==d?(x=(0,Z.jsxs)(`section`,{className:`m-auto flex w-full flex-col gap-5 sm:max-w-80`,"aria-label":`Sign-in request`,children:[i,u,d,f,p,b]}),t[31]=b,t[32]=u,t[33]=d,t[34]=x):x=t[34],x}function ki(e){let t=(0,X.c)(7),n;t[0]===e.id?n=t[1]:(n=P(e.id),t[0]=e.id,t[1]=n);let r=u(n),i;if(t[2]!==e.account||t[3]!==r.value){let n;t[5]===e.account?n=t[6]:(n=t=>R(e.account,le(Ai),I({onNone:()=>(0,Z.jsx)(Oi,{request:t.request}),onSome:()=>(0,Z.jsx)(Y.Suspense,{fallback:(0,Z.jsx)(Et,{pending:!0}),children:(0,Z.jsx)(Tt,{pending:se(t.request)})})})),t[5]=e.account,t[6]=n),i=R(r.value,Te,Ee({Decided:Ni,Expired:ji,Waiting:n})),t[2]=e.account,t[3]=r.value,t[4]=i}else i=t[4];return i}function Ai(e){return e.role!==`Waiting`}function ji(){return(0,Z.jsxs)(h,{role:`status`,children:[(0,Z.jsxs)(l,{children:[(0,Z.jsx)(f,{variant:`icon`,children:(0,Z.jsx)(jn,{})}),(0,Z.jsx)(m,{children:`This sign-in expired`})]}),(0,Z.jsx)(g,{children:(0,Z.jsx)(_,{variant:`outline`,onClick:Mi,children:`Back to Auth`})})]})}function Mi(){return location.assign(`/`)}function Ni(){return(0,Z.jsx)(h,{role:`status`,children:(0,Z.jsxs)(l,{children:[(0,Z.jsx)(f,{variant:`icon`,children:(0,Z.jsx)(Dn,{})}),(0,Z.jsx)(m,{children:`Continuing`})]})})}var Pi=`/assets/icon-CPvsBESP.svg`,Fi=at(`/(home)`),Ii=He([`/`,`/people`]);function Li(e){let t=(0,X.c)(13),n=ot(),r,i,a;if(t[0]!==n||t[1]!==e.admin){let o;t[5]===e.admin?o=t[6]:(o=t=>t===`/`||e.admin,t[5]=e.admin,t[6]=o);let s=R(Ii.literals,De(o),B(zi));r=_t,t[7]===n?i=t[8]:(i=z(n({to:`/people`})!==!1,{onFalse:L(`/`),onTrue:L(`/people`)}),t[7]=n,t[8]=i),a=B(s,Ri),t[0]=n,t[1]=e.admin,t[2]=r,t[3]=i,t[4]=a}else r=t[2],i=t[3],a=t[4];let o;return t[9]!==r||t[10]!==i||t[11]!==a?(o=(0,Z.jsx)(r,{value:i,children:a}),t[9]=r,t[10]=i,t[11]=a,t[12]=o):o=t[12],o}function Ri(e){return(0,Z.jsx)(vt,{value:e.to,render:(0,Z.jsx)(it,{to:e.to}),children:e.label},e.to)}function zi(e){return{label:z(e===`/`,{onFalse:L(`People`),onTrue:L(`Sign-ins`)}),to:e}}function Bi(e){return R(Te(e.account.role),be(`Waiting`,()=>(0,Z.jsx)(h,{role:`status`,children:(0,Z.jsxs)(l,{children:[(0,Z.jsx)(f,{variant:`icon`,children:(0,Z.jsx)(jn,{})}),(0,Z.jsx)(m,{children:`Waiting for an admin`})]})})),Re(()=>(0,Z.jsx)(st,{})))}function Vi(){let e=(0,X.c)(10),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:Ui},e[0]=t):t=e[0];let n=Fi.useSearch(t),r;e[1]===n?r=e[2]:(r=s(n),e[1]=n,e[2]=r);let i=p(r),a;e[3]===n?a=e[4]:(a=s(n),e[3]=n,e[4]=a);let o=b(a),c;if(e[5]!==o||e[6]!==i){let t;e[8]===o?t=e[9]:(t=()=>(0,Z.jsx)(O,{label:`Sign-out failed`,reset:o}),e[8]=o,e[9]=t),c=I(H(i),{onNone:Hi,onSome:t}),e[5]=o,e[6]=i,e[7]=c}else c=e[7];return c}function Hi(){return(0,Z.jsx)(h,{role:`status`,children:(0,Z.jsxs)(l,{children:[(0,Z.jsx)(f,{variant:`icon`,children:(0,Z.jsx)(Nn,{})}),(0,Z.jsx)(m,{children:`Signing out`})]})})}function Ui(e){return e.next}function Wi(){let e=(0,X.c)(4),t=ot(),n;e[0]===t?n=e[1]:(n=t({to:`/people`}),e[0]=t,e[1]=n);let r=z(n!==!1,{onFalse:Ki,onTrue:Gi}),i;return e[2]===r?i=e[3]:(i=(0,Z.jsx)(pr,{label:`Out of date`,readers:r}),e[2]=r,e[3]=i),i}function Gi(){return[w,C]}function Ki(){return[w]}function qi(){return I(u(A).value,{onNone:Le,onSome:Ji})}function Ji(e){return(0,Z.jsx)(Sr,{account:e})}function Yi(){let e=(0,X.c)(5),t=u(A).value,n;e[0]===t?n=e[1]:(n=Ae(t,Zi),e[0]=t,e[1]=n);let r=n,i;return e[2]!==t||e[3]!==r?(i=Ae(t,Xi)&&(0,Z.jsx)(Li,{admin:r}),e[2]=t,e[3]=r,e[4]=i):i=e[4],i}function Xi(e){return e.role!==`Waiting`}function Zi(e){return e.role===`Admin`}function Qi(){let e=(0,X.c)(22),t=Fi.useSearch(),n=t.request,r;e[0]===t?r=e[1]:(r=re(t[`sign-out`]),e[0]=t,e[1]=r);let i=r,a=u(A).value,o;e[2]===i?o=e[3]:(o=i&&(0,Z.jsx)(Vi,{}),e[2]=i,e[3]=o);let s;if(e[4]!==a||e[5]!==n){let t;e[7]===a?t=e[8]:(t=e=>(0,Z.jsx)(ki,{account:a,id:e}),e[7]=a,e[8]=t),s=I(n,{onNone:V,onSome:t}),e[4]=a,e[5]=n,e[6]=s}else s=e[6];let c;if(e[9]!==a||e[10]!==n||e[11]!==i){let t;e[13]!==n||e[14]!==i?(t=()=>Qe(n)&&!i&&(0,Z.jsx)(Nr,{}),e[13]=n,e[14]=i,e[15]=t):t=e[15];let r;e[16]===n?r=e[17]:(r=e=>z(re(n)&&e.role!==`Waiting`,{onFalse:()=>(0,Z.jsx)(Bi,{account:e}),onTrue:V}),e[16]=n,e[17]=r),c=I(a,{onNone:t,onSome:r}),e[9]=a,e[10]=n,e[11]=i,e[12]=c}else c=e[12];let l;return e[18]!==o||e[19]!==s||e[20]!==c?(l=(0,Z.jsxs)(mr,{children:[o,s,c]}),e[18]=o,e[19]=s,e[20]=c,e[21]=l):l=e[21],l}function $i(){let e=(0,X.c)(4),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(Y.Suspense,{fallback:!1,children:(0,Z.jsx)(qi,{})}),n=(0,Z.jsx)(Wi,{}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Z.jsx)(xt,{icon:Pi,name:`auth`,account:t,controls:n,tabs:(0,Z.jsx)(Y.Suspense,{fallback:null,children:(0,Z.jsx)(Yi,{})})}),e[2]=r):r=e[2];let i;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Z.jsxs)(Z.Fragment,{children:[r,(0,Z.jsx)(Y.Suspense,{fallback:null,children:(0,Z.jsx)(Qi,{})})]}),e[3]=i):i=e[3],i}export{$i as component};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{J as t,q as n}from"./auth-BNZWl1l6.js";import{a as r,o as i}from"./react-BPjvcVqE.js";import{t as a}from"./with-selector-CgT_9Dhw.js";function o(e){return e[e.length-1]}function s(e,t){return typeof e==`function`?e(t):e}var c=Object.prototype.hasOwnProperty;function l(e){for(let t in e)if(c.call(e,t))return!0;return!1}var u=()=>Object.create(null),d=(e,t)=>f(e,t,!0);function f(e,t,n,r=0){if(e===t)return e;if(r++>500)return t;let i=Array.isArray(e)&&Array.isArray(t);if(!i&&!(p(e)&&p(t)))return t;let a=Object.keys(e),s=a.length,l=Object.keys(t),d=l.length;if(i?s!==e.length||d!==t.length||s&&o(a)!==`${s-1}`||d&&o(l)!==`${d-1}`:s!==Object.getOwnPropertyNames(e).length||d!==Object.getOwnPropertyNames(t).length||Object.getOwnPropertySymbols(t).length)return t;let m=0,h,g,_;if(i){for(;m<d&&(_=m,g=e[_],h=t[_],h=g===h?g:typeof g==`object`?f(g,h,n,r):h,h===g);m++);if(m===d&&s===d)return e}else{let i=s===d,o=!0;for(;m<d;m++){_=l[m],g=e[_];let s=t[_];h=g===s?g:typeof g==`object`?f(g,s,n,r):s,i&&=h===g&&(a[m]===_||c.call(e,_)),o&&=Object.is(h,s),a[m]=h}if(i)return Object.getOwnPropertySymbols(e).length?t:e;if(o)return t}let v=i?l.fill(0):n?u():{};for(let o=0;o<d;o++)_=i?o:l[o],i?(g=e[_],o>m&&(h=t[_],h=g===h?g:typeof g==`object`?f(g,h,n,r):h),v[_]=o<m?g:h):v[_]=a[o];return v}function p(e){return!e||typeof e!=`object`?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function m(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&&!m(a,o,n,r))return!1}return!0}if(p(e)&&p(t)){if(n){for(let i in t)if((r||t[i]!==void 0)&&!m(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||!m(e[a],t[a],n,r)))return!1;return i===0}return!1}function h(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 g=/[\x00-\x1f\x7f"<>`{}]/g;function _(e){return e.replace(g,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function v(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 _(t)}var y=[`http:`,`https:`,`mailto:`,`tel:`];function b(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 x=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function S(e,t){if(!e)return!1;if(x.test(e))return!0;let n=b(e);return n?!t.has(n):!1}function C(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+=v(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=v(r?e.slice(r):e)}return t}function w(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function T(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 E(){throw Error(`Invariant failed`)}function D(e){return e.replace(/\/{2,}/g,`/`)}function O(e){return e===`/`?e:e.replace(/^\/+/,``)}function k(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function A(e){return k(O(e))}function ee(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function te(e,t,n=`never`,r){if(t.includes(`//`)&&(t=D(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 s;if(i)s=e.split(`/`);else{for(e.includes(`//`)&&(e=D(e)),s=e.split(`/`);s.length>1&&o(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&s.push(r):s=[r]:r===`..`?s.length>1?s.pop():s=[``]:r===`.`||s.push(r)}}s.length>1&&(o(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=s.join(`/`),l=(i?D(c):c)||`/`;return a&&r&&r.set(a,l),l}function j(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 ne(e){return e==null||e===``}function re(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 M(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&&ne(f)){if(c===`/`&&!d)continue;f=``}o+=c+re(s,f,r)+(d||``)}}return o+a||`/`}function ie(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function ae(e){return e?.isNotFound===!0}function oe(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 se(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function ce(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]=se(r):Array.isArray(t)?t.push(se(r)):n[e]=[t,se(r)]}return n}var le=/^(?:\s|["[{\d-]|fa|nu|tr)/,ue=fe(JSON.parse),de=pe(JSON.stringify,JSON.parse);function fe(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.slice(1));let r=ce(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!le.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function pe(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&&!le.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=oe(e,r);return t?`?${t}`:``}}var N=`__root__`;function me(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 he(e){return e instanceof Response&&!!e.options}function ge(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 P=4,_e=5;function ve(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 ye(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 F(e,t,n,r,i,a){let s=n,c=t.fullPath??t.from,l=t.options,u=c.length,d=c.endsWith(`/`)?u-1:u,f=l?.caseSensitive??e,p=l?.params?.parse??l?.parseParams,m,h=a?n-1:0;if(!r||c.includes(`$`)){m=a?.slice()??[];let e=o(m);e&&typeof e!=`string`&&e[0]===2&&(m[m.length-1]=[e[0],e[1],e[2],e[3]===void 0?void 0:e[3]+c.substring(n-(c[n-2]===`/`?2:1),d)],h=u)}for(;s<u;){let e=s,t=c.indexOf(`/`,e),n=t===-1?u:t,a=ye(c,e,n);s=n+1;let o;if(typeof a==`string`){if(!r)continue;let e=a,t;f?t=r.static??=new Map:(e=a.toLowerCase(),t=r.staticInsensitive??=new Map);let n=t.get(e);if(n)o=n;else{let n=I(r);o=n,t.set(e,n)}}else{let t=a[0],l=a[2],g=a[3]??``;if(t===2&&(n=u,s=n+1),m&&h<n&&(h<e-1&&m.push(c.slice(h,e-1)),a[2]=`/`+l,t===2&&a[3]!==void 0&&d<u&&(a[3]=g.slice(0,-1)),m.push(a),h=n),!r)continue;let _=f&&!!(l||g);f||(l=l.toLowerCase(),g=g.toLowerCase());let v=t===1?r.dynamic??=[]:t===3?r.optional??=[]:r.wildcard??=[],y=t!==2&&!p&&v.find(e=>!e.parse&&e.caseSensitive===_&&e.prefix===l&&e.suffix===g);if(y)o=y;else{let e=I(r,t,_,l,g);o=e,v.push(e),v.length===2&&i?.push(v)}}r=o}m&&h<d&&m.push(c.slice(h,d));let g=m?.slice();if(!r)return g;if(p&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf(`/`)+1)===95){let e=I(r,_e);(r.pathless??=[]).push(e),r=e}let _=(t.path||!t.children)&&!t.isRoot;if(_&&d<u){let e=I(r,P);r.index=e,r=e}return r.parse=p??null,r.priority=l?.params?.priority??0,r.route||(r.data=g,_&&(r.route=t)),[r,s,g]}function be(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 I(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 xe(e,t){let n=I(),r=[];function i(e,t,n,a){let[o,s,c]=F(!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(be);t.masksTree=n,t.flatCache=ge(1e3)}function Se(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=Ee(e,t.masksTree);return t.flatCache.set(e,r),r}function Ce(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=I(),F(t,{from:e},1,o),i.singleCache.set(a,o)),Ee(r,o,n)}function we(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=Ee(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Oe(a.route)),t.matchCache.set(r,a),a}function Te(e,t=!1){let n=I(),r=[],i={},a={},o=0;function s(e,n,c,l){if(e.init(o),e.id in i&&E(),i[e.id]=e,o!==0&&e.path){let t=k(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}o++;let[u,d,f]=F(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(be);return{processedTree:{segmentTree:n,singleCache:ge(1e3),matchCache:ge(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function Ee(e,t,n=!1){let r=e.split(`/`),i=Ae(e,r,t,n);if(!i)return null;let[a]=De(e,r,i);return{route:i.node.route,rawParams:a}}function De(e,t,n){let r=ke(n.node),i=n.node.data&&ve(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===P)break;if(u.kind===_e){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 Oe(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function ke(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Ae(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!o(t),a=i&&e!==`/`,s=t.length-+!!i,c=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],l=null,u=null;for(;c.length;){let n=c.pop(),{node:i,index:o,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!Pe(u,n))continue;if(i.parse){if(!Ne(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==P&&Pe(l,n)&&(l=n);let _=o===s;if(_&&(i.route&&(!a||i.kind===P||i.kind===2)&&Pe(u,n)&&(u=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[o],y;if(_&&i.index){let n={node:i.index,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(Ne(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&Me(f,s))return n;Pe(u,n)&&(u=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(o).join(`/`),i=e.slice(-a.length);if((n.caseSensitive?i:i.toLowerCase())!==a||e.length-a.length<r.length)continue}c.push({node:n,index:s,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];c.push({node:n,index:o,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}c.push({node:t,index:o+1,skipped:d,statics:f,dynamics:p,optionals:m+je(s,o),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}c.push({node:t,index:o+1,skipped:d,statics:f,dynamics:p+je(s,o),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&c.push({node:e,index:o+1,skipped:d,statics:f+je(s,o),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&c.push({node:e,index:o+1,skipped:d,statics:f+je(s,o),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];c.push({node:t,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(u)return u;if(r&&l){let n=l.index;for(let e=0;e<l.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return l.rawParams??=Object.create(null),l.rawParams[`**`]=decodeURIComponent(r),l}return null}function je(e,t){return 2**(e-t-1)}function Me(e,t){return e===2**(t-1)-1}function Ne(e,t,n){let r,i;try{[r,i]=De(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 Pe(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===P)>(e.node.kind===P)||t.node.kind===P==(e.node.kind===P)&&t.node.depth>e.node.depth)))}function Fe(){try{return sessionStorage}catch{return}}var Ie=`tsr-scroll-restoration-v1_3`,Le=Fe();function Re(){try{return JSON.parse(Le?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var L=Re(),ze=`data-scroll-restoration-id`,Be=e=>e.state.__TSR_key||e.href;function Ve(e){let t=e.getAttribute(ze);if(t)return`[${ze}="${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 He=!1,Ue=`window`;function We(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Ge(e){let t=new Set;for(let n of e){if(n===Ue)continue;let e=We(n);e&&t.add(e)}return t}function Ke(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||Be,a=new Set,o=e=>{let t=L[e]||={};for(let e of a)e===document?t[Ue]={scrollX,scrollY}:e.isConnected&&(t[Ve(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,He=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{He||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{Le?.setItem(Ie,JSON.stringify(L))}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=L[d];if(e){let t=L[u];for(let n in e){if(n===Ue){if(s)continue}else{let e=We(n);if(!e||s&&o&&(l??=Ge(o),l.has(e)))continue}t||=L[u]={},t[n]??=e[n]}}}He=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=Ge(o));let t=e&&i&&c,s=r.e?L[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===Ue){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=We(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{He=!1}}))}function qe(e,t,n){let r=A(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=D(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>Je(n,s.input({url:e})),output:({url:e})=>s.output({url:Ye(n,e)})}:s}function Je(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 Ye(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 Xe(e){let t=e;return{get(){return t},set(e){t=s(e,t)}}}function Ze(e){return{get(){return e()}}}function Qe(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(()=>{T(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 R=`__TSR_index`,$e=`popstate`,et=`beforeunload`,tt=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function nt(e){let t=tt.exec(e);return t?`/`+e.slice(t[0].length):e}function rt(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{Q as t,Z as n}from"./auth-BF8WBqbB.js";import{a as r,o as i}from"./react-BPjvcVqE.js";import{t as a}from"./with-selector-CgT_9Dhw.js";function o(e){return e[e.length-1]}function s(e,t){return typeof e==`function`?e(t):e}var c=Object.prototype.hasOwnProperty;function l(e){for(let t in e)if(c.call(e,t))return!0;return!1}var u=()=>Object.create(null),d=(e,t)=>f(e,t,!0);function f(e,t,n,r=0){if(e===t)return e;if(r++>500)return t;let i=Array.isArray(e)&&Array.isArray(t);if(!i&&!(p(e)&&p(t)))return t;let a=Object.keys(e),s=a.length,l=Object.keys(t),d=l.length;if(i?s!==e.length||d!==t.length||s&&o(a)!==`${s-1}`||d&&o(l)!==`${d-1}`:s!==Object.getOwnPropertyNames(e).length||d!==Object.getOwnPropertyNames(t).length||Object.getOwnPropertySymbols(t).length)return t;let m=0,h,g,_;if(i){for(;m<d&&(_=m,g=e[_],h=t[_],h=g===h?g:typeof g==`object`?f(g,h,n,r):h,h===g);m++);if(m===d&&s===d)return e}else{let i=s===d,o=!0;for(;m<d;m++){_=l[m],g=e[_];let s=t[_];h=g===s?g:typeof g==`object`?f(g,s,n,r):s,i&&=h===g&&(a[m]===_||c.call(e,_)),o&&=Object.is(h,s),a[m]=h}if(i)return Object.getOwnPropertySymbols(e).length?t:e;if(o)return t}let v=i?l.fill(0):n?u():{};for(let o=0;o<d;o++)_=i?o:l[o],i?(g=e[_],o>m&&(h=t[_],h=g===h?g:typeof g==`object`?f(g,h,n,r):h),v[_]=o<m?g:h):v[_]=a[o];return v}function p(e){return!e||typeof e!=`object`?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function m(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&&!m(a,o,n,r))return!1}return!0}if(p(e)&&p(t)){if(n){for(let i in t)if((r||t[i]!==void 0)&&!m(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||!m(e[a],t[a],n,r)))return!1;return i===0}return!1}function h(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 g=/[\x00-\x1f\x7f"<>`{}]/g;function _(e){return e.replace(g,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function v(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 _(t)}var y=[`http:`,`https:`,`mailto:`,`tel:`];function b(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 x=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function S(e,t){if(!e)return!1;if(x.test(e))return!0;let n=b(e);return n?!t.has(n):!1}function C(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+=v(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=v(r?e.slice(r):e)}return t}function w(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function T(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 E(){throw Error(`Invariant failed`)}function D(e){return e.replace(/\/{2,}/g,`/`)}function O(e){return e===`/`?e:e.replace(/^\/+/,``)}function k(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function A(e){return k(O(e))}function ee(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function te(e,t,n=`never`,r){if(t.includes(`//`)&&(t=D(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 s;if(i)s=e.split(`/`);else{for(e.includes(`//`)&&(e=D(e)),s=e.split(`/`);s.length>1&&o(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&s.push(r):s=[r]:r===`..`?s.length>1?s.pop():s=[``]:r===`.`||s.push(r)}}s.length>1&&(o(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=s.join(`/`),l=(i?D(c):c)||`/`;return a&&r&&r.set(a,l),l}function j(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 ne(e){return e==null||e===``}function re(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 M(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&&ne(f)){if(c===`/`&&!d)continue;f=``}o+=c+re(s,f,r)+(d||``)}}return o+a||`/`}function ie(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function ae(e){return e?.isNotFound===!0}function oe(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 se(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function ce(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]=se(r):Array.isArray(t)?t.push(se(r)):n[e]=[t,se(r)]}return n}var le=/^(?:\s|["[{\d-]|fa|nu|tr)/,ue=fe(JSON.parse),de=pe(JSON.stringify,JSON.parse);function fe(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.slice(1));let r=ce(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!le.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function pe(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&&!le.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=oe(e,r);return t?`?${t}`:``}}var N=`__root__`;function me(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 he(e){return e instanceof Response&&!!e.options}function ge(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 P=4,_e=5;function ve(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 ye(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 F(e,t,n,r,i,a){let s=n,c=t.fullPath??t.from,l=t.options,u=c.length,d=c.endsWith(`/`)?u-1:u,f=l?.caseSensitive??e,p=l?.params?.parse??l?.parseParams,m,h=a?n-1:0;if(!r||c.includes(`$`)){m=a?.slice()??[];let e=o(m);e&&typeof e!=`string`&&e[0]===2&&(m[m.length-1]=[e[0],e[1],e[2],e[3]===void 0?void 0:e[3]+c.substring(n-(c[n-2]===`/`?2:1),d)],h=u)}for(;s<u;){let e=s,t=c.indexOf(`/`,e),n=t===-1?u:t,a=ye(c,e,n);s=n+1;let o;if(typeof a==`string`){if(!r)continue;let e=a,t;f?t=r.static??=new Map:(e=a.toLowerCase(),t=r.staticInsensitive??=new Map);let n=t.get(e);if(n)o=n;else{let n=I(r);o=n,t.set(e,n)}}else{let t=a[0],l=a[2],g=a[3]??``;if(t===2&&(n=u,s=n+1),m&&h<n&&(h<e-1&&m.push(c.slice(h,e-1)),a[2]=`/`+l,t===2&&a[3]!==void 0&&d<u&&(a[3]=g.slice(0,-1)),m.push(a),h=n),!r)continue;let _=f&&!!(l||g);f||(l=l.toLowerCase(),g=g.toLowerCase());let v=t===1?r.dynamic??=[]:t===3?r.optional??=[]:r.wildcard??=[],y=t!==2&&!p&&v.find(e=>!e.parse&&e.caseSensitive===_&&e.prefix===l&&e.suffix===g);if(y)o=y;else{let e=I(r,t,_,l,g);o=e,v.push(e),v.length===2&&i?.push(v)}}r=o}m&&h<d&&m.push(c.slice(h,d));let g=m?.slice();if(!r)return g;if(p&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf(`/`)+1)===95){let e=I(r,_e);(r.pathless??=[]).push(e),r=e}let _=(t.path||!t.children)&&!t.isRoot;if(_&&d<u){let e=I(r,P);r.index=e,r=e}return r.parse=p??null,r.priority=l?.params?.priority??0,r.route||(r.data=g,_&&(r.route=t)),[r,s,g]}function be(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 I(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 xe(e,t){let n=I(),r=[];function i(e,t,n,a){let[o,s,c]=F(!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(be);t.masksTree=n,t.flatCache=ge(1e3)}function Se(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=Ee(e,t.masksTree);return t.flatCache.set(e,r),r}function Ce(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=I(),F(t,{from:e},1,o),i.singleCache.set(a,o)),Ee(r,o,n)}function we(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=Ee(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Oe(a.route)),t.matchCache.set(r,a),a}function Te(e,t=!1){let n=I(),r=[],i={},a={},o=0;function s(e,n,c,l){if(e.init(o),e.id in i&&E(),i[e.id]=e,o!==0&&e.path){let t=k(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}o++;let[u,d,f]=F(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(be);return{processedTree:{segmentTree:n,singleCache:ge(1e3),matchCache:ge(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function Ee(e,t,n=!1){let r=e.split(`/`),i=Ae(e,r,t,n);if(!i)return null;let[a]=De(e,r,i);return{route:i.node.route,rawParams:a}}function De(e,t,n){let r=ke(n.node),i=n.node.data&&ve(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===P)break;if(u.kind===_e){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 Oe(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function ke(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Ae(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!o(t),a=i&&e!==`/`,s=t.length-+!!i,c=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],l=null,u=null;for(;c.length;){let n=c.pop(),{node:i,index:o,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!Pe(u,n))continue;if(i.parse){if(!Ne(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==P&&Pe(l,n)&&(l=n);let _=o===s;if(_&&(i.route&&(!a||i.kind===P||i.kind===2)&&Pe(u,n)&&(u=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[o],y;if(_&&i.index){let n={node:i.index,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(Ne(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&Me(f,s))return n;Pe(u,n)&&(u=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(o).join(`/`),i=e.slice(-a.length);if((n.caseSensitive?i:i.toLowerCase())!==a||e.length-a.length<r.length)continue}c.push({node:n,index:s,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];c.push({node:n,index:o,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}c.push({node:t,index:o+1,skipped:d,statics:f,dynamics:p,optionals:m+je(s,o),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}c.push({node:t,index:o+1,skipped:d,statics:f,dynamics:p+je(s,o),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&c.push({node:e,index:o+1,skipped:d,statics:f+je(s,o),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&c.push({node:e,index:o+1,skipped:d,statics:f+je(s,o),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];c.push({node:t,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(u)return u;if(r&&l){let n=l.index;for(let e=0;e<l.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return l.rawParams??=Object.create(null),l.rawParams[`**`]=decodeURIComponent(r),l}return null}function je(e,t){return 2**(e-t-1)}function Me(e,t){return e===2**(t-1)-1}function Ne(e,t,n){let r,i;try{[r,i]=De(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 Pe(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===P)>(e.node.kind===P)||t.node.kind===P==(e.node.kind===P)&&t.node.depth>e.node.depth)))}function Fe(){try{return sessionStorage}catch{return}}var Ie=`tsr-scroll-restoration-v1_3`,Le=Fe();function Re(){try{return JSON.parse(Le?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var L=Re(),ze=`data-scroll-restoration-id`,Be=e=>e.state.__TSR_key||e.href;function Ve(e){let t=e.getAttribute(ze);if(t)return`[${ze}="${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 He=!1,Ue=`window`;function We(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Ge(e){let t=new Set;for(let n of e){if(n===Ue)continue;let e=We(n);e&&t.add(e)}return t}function Ke(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||Be,a=new Set,o=e=>{let t=L[e]||={};for(let e of a)e===document?t[Ue]={scrollX,scrollY}:e.isConnected&&(t[Ve(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,He=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{He||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{Le?.setItem(Ie,JSON.stringify(L))}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=L[d];if(e){let t=L[u];for(let n in e){if(n===Ue){if(s)continue}else{let e=We(n);if(!e||s&&o&&(l??=Ge(o),l.has(e)))continue}t||=L[u]={},t[n]??=e[n]}}}He=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=Ge(o));let t=e&&i&&c,s=r.e?L[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===Ue){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=We(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{He=!1}}))}function qe(e,t,n){let r=A(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=D(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>Je(n,s.input({url:e})),output:({url:e})=>s.output({url:Ye(n,e)})}:s}function Je(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 Ye(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 Xe(e){let t=e;return{get(){return t},set(e){t=s(e,t)}}}function Ze(e){return{get(){return e()}}}function Qe(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(()=>{T(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 R=`__TSR_index`,$e=`popstate`,et=`beforeunload`,tt=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function nt(e){let t=tt.exec(e);return t?`/`+e.slice(t[0].length):e}function rt(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`
|
|
2
2
|
\r`.includes(e)?``:encodeURIComponent(e))),nt(e)}function it(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=st(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[R];i=at(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[R];i=at(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[R]!==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 at(e,t){let n=ct();return{...t,key:n,__TSR_key:n,[R]:e}}function ot(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=>rt(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>st(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=ct();t.history.replaceState({[R]: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=st(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[R]-l.state[R],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=it({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(et,x,{capture:!0}),t.removeEventListener($e,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(et,x,{capture:!0}),t.addEventListener($e,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 st(e,t){let n=rt(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=ct();t={[R]: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 ct(){return(Math.random()+1).toString(36).slice(7)}function lt(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function ut(e){return e.pathname+e.search+e.hash}function dt(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function ft(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function pt({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function mt(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function ht(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 gt=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:ot()),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!==`/`&&A(n)?qe(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=Qe(this.latestLocation,e),Ke(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=Te(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&xe(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:ge(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:C(e),external:!1,searchStr:o,search:d(t?.search,i),hash:C(r.slice(1)),state:f(t?.state,a)}}let o=Je(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:C(nt(o.pathname)),external:!!this.rewrite&<(o,this.origin),searchStr:c,search:d(t?.search,s),hash:C(o.hash.slice(1)),state:f(t?.state,a)}},r=n(e,e.state),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i,{...i.state,__tempLocation:void 0,key:r.state.key,__TSR_key:r.state.__TSR_key});return e.maskedLocation=r,e}return r},this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>{let t=Object.create(null),n=we(k(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=st(n.href,{});n={...n,to:Je(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=te(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),d=this.routesByPath[k(c)],f=c.includes(`$`),p;if(d)p=d._branch??=Oe(d);else if(f)p=[];else{let[e,t,n]=this.getMatchedRoutes(c);p=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(p=[...p,this.options.notFoundRoute])}let m=f?d?._interpolation??F(!1,{fullPath:c},0):void 0,h;for(let e of p){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){let e=o()[3];if(h??=xt(n.params,e),!l(h))break;h===e&&(h=Object.assign(u(),h));try{Object.assign(h,t(h))}catch{}}}h??=xt(n.params,St(n.params,m)?o()[3]:Ct);let g=e.leaveParams?c:nt(C(m?M(c,m,h,this.pathParamsDecoder):c)),_=wt(p,e._includeValidateSearch),v=()=>{let t=o()[2];if(e._includeValidateSearch&&this.options.search?.strict){let e={};p.forEach(n=>{if(n.options.validateSearch)try{Object.assign(e,bt(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},y=_.length?Tt(_,v(),n):n.search===!0?v():typeof n.search==`function`?n.search(v()):n.search||Ct,b=this.options.stringifySearch(y),x=n.hash===!0?a().hash:typeof n.hash==`function`?n.hash(a().hash):n.hash||void 0,S=x?`#${x}`:``,T=n.state?n.state===!0?a().state:typeof n.state==`function`?n.state(a().state):n.state:Ct,E=`${g}${b}${S}`,D,O,A=!1;if(this.rewrite){let e=new URL(E,this.origin),t=e.origin,n=Ye(this.rewrite,e);D=ut(e),lt(n,t)?(O=n.href,A=!0):O=nt(ut(n))}else D=w(E),O=D;return{publicHref:O,href:D,pathname:g,search:y,searchStr:b,state:T,hash:x??``,external:A,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=Se(r.pathname,this.processedTree);if(t){let i=Object.assign(u(),t.rawParams),{from:a,params:o,...s}=t.route,c=xt(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 _t(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=k(this.latestLocation.href)===k(n.href)&&m(pt(n.state),pt(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?b(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 _t(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 sn(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(ft(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`)&&dt(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(x.test(n)||(r=b(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:lt(e,this.origin)||(n=ut(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=z,this.preloadRoute=e=>cn(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?te(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=Ce(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!m(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?m(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=j(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??de,parseSearch:e.parseSearch??ue,protocolAllowlist:e.protocolAllowlist??y}),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=F(!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[`**`]:k(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?Et(this.options.notFoundMode,a):void 0,c=Array(a.length),l=this._committed,p=(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},m;for(let n=0;n<a.length;n++){let i=a[n],o=c[n-1],l,h,g;{let n=o?.search??e.search,r=o?._strictSearch??void 0;try{let e=bt(i.options.validateSearch,{...n})??void 0;l={...n,...e},h={...r,...e}}catch(e){let r=e;if(e instanceof vt||(r=new vt(e.message,{cause:e})),t?.throwOnError)throw r;l=n,h={},g=r}}let _=``,v=``;try{_=i.options.loaderDeps?.({search:l})??``,v=_&&JSON.stringify(_)||``}catch(e){if(t?.throwOnError)throw e;g??=e}let y=u(),b=i._interpolation?M(i.fullPath,i._interpolation,r,this.pathParamsDecoder,y):i.fullPath,x=i.id+b+v,S=p(i,n),C=this._cache.get(x)??(S?.id===x?S:void 0);m=C?._strictParams??Object.assign(y,m);let w;if(!C)try{Dt(i,m)}catch(e){if(w=ae(e)||he(e)?e:new yt(e.message,{cause:e}),t?.throwOnError)throw w}let T=S?`stay`:`enter`,E;if(C)E={...C,cause:T,search:d(S?S.search:C.search,l),_strictSearch:h,searchError:g};else{let e=dt(i)?`pending`:`success`;E={id:x,ssr:i.options.ssr,index:n,routeId:i.id,params:S?.params??m,_strictParams:m,pathname:b,updatedAt:Date.now(),search:S?d(S.search,l):l,_strictSearch:h,searchError:g,status:e,isFetching:!1,error:void 0,paramsError:w,context:{},abortController:t?._controller??new AbortController,cause:T,loaderDeps:S?f(S.loaderDeps,_):_,invalid:!1,preload:!1,staticData:i.options.staticData||{},fullPath:i.fullPath}}let D=s===i.id;E._notFound&&!D&&(E.error=void 0),E._notFound=D,c[n]=E}for(let e=0;e<c.length;e++){let n=c[e];n.params=n.cause===`stay`?d(n.params,m):m,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=o(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,s]=this.getMatchedRoutes(e.pathname),c=o(a),l={...e.search};for(let e of a)try{Object.assign(l,bt(e.options.validateSearch,l))}catch{}let u=n&&n.routeId===c.id&&n.pathname===e.pathname,d;if(u)d=n.params;else{let e=s;for(let t of a)try{Dt(t,e)}catch{}d=e}let f=[a,c.fullPath,l,d];return this.lightweightCache.set(e,[r,f]),f}};async function _t(e,t,{replace:n,ignoreBlocker:r}){if(!S(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 vt=class extends Error{},yt=class extends Error{};function bt(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new vt(`Async validation not supported`);if(n.issues)throw new vt(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 xt(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 St(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!c.call(e,t[1]))}var Ct=Object.freeze({});function wt(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=bt(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 Tt(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=s(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 Et(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 N}function Dt(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function Ot(e,t){return e.options[t]?.preload?.()}function kt(e,t){let n=Ot(e,`component`),r=Ot(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function z(e,t,n){let r=()=>t===!1?void 0:t?Ot(e,t):kt(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 At(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function jt(e,t,n){let r=e._tx;return t&&r?.[2]===n&&!r[3].some(e=>e.routeId===t)}var B=0,V=1,Mt=2,H=3,U=[4];function W(e){return typeof e[0]==`number`}function G(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,r)=>{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).then(()=>t.removeEventListener(`abort`,i))})}function K(e,t){return e.routesById[t.routeId]}function q(e,t,n){return he(e)?[H,e]:ae(e)?(e.routeId||=n,[Mt,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[V,e]):[B,e]}function Nt(e,t){let n=q(t,!0,e.id);if(n[0]!==V)return n;try{e.options.onError?.(n[1])}catch(t){n=q(t,!0,e.id)}return n}function Pt(e,t,n,r,i){return i[0].signal.aborted?U:qt(e,t,n,Nt(n,r),i)}async function Ft(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[3];for(let i=n[6]??0;i<r;i++){let r=s[i],u=K(e,r);r.abortController=n[0];let d=s[i-1]?.context??e.options.context??{},f={params:r.params,location:o,navigate:t=>e.navigate({...t,_fromLocation:o}),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:u.id};try{let e=r._ctx||=u.options.context?u.options.context({...f,deps:r.loaderDeps,context:d})||{}:void 0;r.context={...d,...e}}catch(a){return J(e,r),[i,Pt(e,t,u,a,n)]}if(c.aborted)return[i,U];let p=r.paramsError??r.searchError;if(p!==void 0)return J(e,r),[i,Pt(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{Rt(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?G(a,c):a);if(c.aborted)return[i,U];let s=qt(e,t,u,q(o,!1,u.id),n);if(s[0]!==B)return J(e,r),[i,s];r.context={...r.context,...o}}catch(a){return J(e,r),[i,Pt(e,t,u,a,n)]}finally{r.status=h,Rt(e,r,!1,n[0])}}i()}function It(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 J(e,t){let n=t._flight;t._flight=void 0,It(e,t,n)?.abort()}function Y(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=It(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function Lt(e){for(let t of e){let e=t._flight;e&&e[2]++}}function Rt(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 zt(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 Bt(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return U;if(!i)return[B,void 0];let l=n._flight;Rt(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(zt(e,t,n,r,s,a,!!o[3]))).then(e=>q(e,!1,r.id),e=>q(e,!0,r.id)).then(t=>(t[0]!==B&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===V&&l[2]?Nt(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],qt(e,t,r,await G(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return J(e,n),U}finally{Rt(e,n,!1,s)}}function Vt(e,t,n){t[0]!==H&&(e.status=`success`,e.error=void 0,t[0]===B?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function Ht(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&&J(e,r)}function Ut(e,t){return t[0]===V||t[0]===Mt?{...e,status:t[0]===V?`error`:`notFound`,error:t[1],_flight:void 0}:e}function Wt(e,t,n,r,i,a,o){let s=t[1][n],c=K(e,s),l=!!a[3],u=e._cache.get(s.id),d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(zt(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=U)),!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,J(e,s),p=Pt(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,It(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?Bt(e,t,s,c,g,i,a).then(t=>(Vt(s,t,l),t[0]===B&&(m&&!a[0].signal.aborted&&Ht(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[B,s.loaderData]),T=(async()=>{try{let e=z(c,void 0,C);e&&await G(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,Pt(e,t,c,r,a)]}let r=await w;x&&r[0]===B&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,T]),!y)return w.then(e=>Ut(s,e));let E={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let D=Bt(e,t,E,c,g,i,a).then(e=>(s.isFetching=!1,Vt(E,e,!1),e));return(t[2]??=[]).push([n,D,T,E]),D.then(e=>Ut(E,e))}async function Gt(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=K(e,t[n]);try{let e=z(i,!1);e&&await G(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function X(e,t){t[2]&&=(Y(e,t[2].map(e=>e[3])),void 0)}async function Kt(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]>=H)throw[a,t];!i&&t[0]!==B&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===H)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function qt(e,t,n,r,i,a){for(;r[0]===H;){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]?[H,t]:[H,t,a]}return[H,o,n]}catch(e){r=a?[V,e]:Nt(n,e),a=!0}}return r}async function Jt(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]===Mt?Gt(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=H)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]!==B&&t[0]<H&&!(`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)>=H){let n=s[1];if(n[0]!==H||n[1].options.reloadDocument||n[2])return X(e,t),n;c=!0,s=[0,[V,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===V?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};p(),i||a?.();let m=K(e,u);try{await G(i?Promise.resolve().then(()=>z(m,l===V?`errorComponent`:`notFoundComponent`)):Promise.all([z(m),z(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return X(e,t),U}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),X(e,t),Y(e,o),p()):u.status=`success`}return t}async function Yt(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;t<i;t++){let r=a[t],i=K(e,r).options;if(i.head||i.scripts)try{let t={ssr:e.options.ssr,matches:a,match:r,params:r.params,loaderData:r.loaderData},[o,s]=await G(Promise.all([i.head?.(t),i.scripts?.(t)]),n);r.meta=o?.meta,r.links=o?.links,r.headScripts=o?.scripts,r.styles=o?.styles,r.scripts=s}catch(e){if(e===n&&n.aborted)break;console.error(e)}if(r.status!==`success`||r._notFound)break}return t}async function Xt(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 Gt(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=Wt(e,i,t,u,f,r,l)},m=await Ft(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===Mt){let t=await Gt(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=H&&(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=Jt(e,i,u,r[0],Kt(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=Kt(i[2],void 0,void 0,h.then(e=>W(e)?0:At(n).length,()=>0))),o=await h}catch(t){if(X(e,i),t===a&&a.aborted)return U;throw t}return W(o)?o:Yt(e,o,a,r[6]===n.length?r[6]:0)}function Zt(e,t){if(e._tx!==t)return;let n=t[3],r=e.stores.matches.get(),i=e._pending;for(let a=0;a<n.length;a++){let o=n[a],s=o.status===`success`&&!o._notFound,c=r[a]?.id===o.id&&r[a]?.status===`pending`;if(s&&!c)continue;let l=K(e,o),u=s||o.invalid?0:l.options.pendingMs??e.options.defaultPendingMs,d=l.options.pendingComponent??e.options.defaultPendingComponent;if(!d||typeof u!=`number`||u===1/0){i&&(i[0]=t,i[2]=0,i[4]=!0);return}let f=l.options.pendingMinMs??e.options.defaultPendingMinMs??0,p=!1;if(i?.[1]===o.id?(p=i[0]!==t,i[0]=t):(clearTimeout(i?.[3]),e._pending=i=void 0),i||(e._pending=i=[t,o.id,c?Date.now()+f:t[4]+u,void 0,c||void 0,d]),i[4]&&!p&&i[5]===d)return;if(i[5]=d,!i[4]){clearTimeout(i[3]);let n=i[2]-Date.now();if(n>0){i[3]=setTimeout(()=>Zt(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 Qt(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 $t(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!At(t[3]).some(e=>e.id===n[1]))return;let i;try{await G(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function en(e,t){e._committed=t,e.stores.setMatches(t)}function tn(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=At(n).length,c=new Map;{let t=Date.now(),r=new Set;for(let e=0;e<n.length;e++){let t=n[e];(e<s||t.status===`success`)&&r.add(t.id)}for(let n of[...i,...o.values()]){if(n.status!==`success`||r.has(n.id))continue;let i=K(e,n);!i.options.loader||t-n.updatedAt>=(n.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||c.set(n.id,o.get(n.id)===n?n:{...n,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c;let l=e._lifecycleEnd=mt(n);en(e,n),Y(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),ht(e,i,n,a,l,t)}async function nn(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function rn(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 an(e,t,n,r,i){let a=n.map(e=>({...e}));Lt(a);for(let t of r)J(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await Jt(e,o,r,t[0],i)}catch(t){throw Y(e,a),t}if(W(s))Y(e,a),s[0]===H&&e._tx===t&&e._committed===n&&await rn(e,t,s);else if(await Yt(e,s,t[0].signal),e._tx!==t||e._committed!==n)Y(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),J(e,n))}en(e,a),Y(e,n,a)}}async function on(e,t,n,r,i,a){let o=await Xt(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(W(o)){let n=o[0]===H&&e._tx===t;if((!n||o[1].options.reloadDocument)&&Qt(e,t),Y(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){Qt(e,t);return}await rn(e,t,o);return}let s=o[1];if(e._tx===t&&await $t(e,t),e._tx!==t){Qt(e,t),Y(e,s),X(e,o);return}let c=t[2],l=ft(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await $t(e,t),e._tx!==t){Qt(e,t),Y(e,s),X(e,o);return}let n=await e.startTransition(()=>{Qt(e,t),tn(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&&an(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)):X(e,o)})}async function sn(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=ft(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await nn(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});Lt(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){Y(e,m),await nn(e,n);return}e._preflight=void 0;let g,_=()=>on(e,y,f,()=>Zt(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(()=>nn(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&Rt(e,t,!1)}n[0].abort(),Y(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))&&Zt(e,y),g?.(_()),await y[5]):(Y(e,y[3]),y[3]=[],g?.(),await nn(e,y))}async function cn(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}),Lt(a),o=(e._preloads??=new Map).set(i,a),s=await Xt(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),Y(e,a)),i.abort()}if(!W(s))return s[1];if(!o||s.length<3)return;n=s[2]}catch(e){ae(e)||console.error(e);return}}}var ln=`Error preloading route! ☝️`,un=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=N:this.parentRoute||E();let r=n?N:t?.path;r&&r!==`/`&&(r=O(r));let i=t?.id||r,a=n?N:D((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:D(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=k(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>me({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},dn=class{constructor({id:e}){this.notFound=e=>ie({routeId:this.id,...e}),this.redirect=e=>me({from:this.id,...e}),this.id=e}},fn=class extends un{constructor(e){super(e)}},Z=e(i(),1);function pn(e,t){let n=e.stores.location,r=new Set,i,a,o=n=>{jt(e,t,n)||(i=n,r.forEach(e=>e()))};return[()=>i??n.get(),e=>(r.size||(i=n.get(),a=n.subscribe(o).unsubscribe),r.add(e),()=>{r.delete(e),r.size||(a(),i=void 0)})]}var mn=Z.createContext(void 0),hn=Z.createContext(void 0),gn=r();function _n(...e){let t=Z.useRef(e),n=t.current;return e.forEach((e,t)=>{m(n[t],e,!1,!0)||(n[t]=e)}),t.current}function vn(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(ln)})}function yn(e,t){let n=typeof e==`string`&&b(e);if(n)return t.has(n)?e:null}function bn(e,t,n,r){let i=ee(e.pathname,r),a=ee(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!m(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function xn(e,n,r){let i=t(),a=Z.useRef(null),o=Z.useCallback(e=>{if(a.current=e,typeof n==`function`)return n(e);n&&(n.current=e)},[n]),{activeOptions:s,to:c,preload:l,preloadDelay:u,disabled:d,target:f,onClick:p,onBlur:m,onFocus:h,onMouseEnter:g,onMouseLeave:_,onTouchStart:v}=e,[y,x,S]=_n(e.search,e.params,s),C=Z.useContext(mn),w=(i.stores._linkScopes??={})[C]??=pn(i,C),[T,E,D]=Z.useMemo(()=>{let t=yn(c,i.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},r,a,o,s=()=>{let e=w[0]();if(e!==r){n._fromLocation=e;let t=i.buildLocation(n),o=On(t,i,d),s=d||o&&!b(o)?bn(e,t,S,i.basepath):void 0;a&&a[0]===o&&a[1]===s||(a=[o,s]),r=e}return a};return[n,s,S?.includeHash&&(()=>{let e=s();return e[1]?o??=[e[0],!1]:e})]},[i,w,e.from,e.hash,e.href,c,y,x,e.state,e.mask,e.unsafeRelative,S,d]),[O,k]=Z.useSyncExternalStore(w[1],E,D||E),A=k===void 0&&O,ee=d||O===void 0,te=Z.useRef(!1),j=e.reloadDocument||A||ee?!1:l??i.options.defaultPreload,ne=u??i.options.defaultPreloadDelay??0,re=Z.useCallback(e=>{let t=e?.isIntersecting;t??j===`intent`?ne?a.t??=setTimeout(()=>{a.t=void 0,vn(i,T)},ne):vn(i,T):t===!1&&Dn(a)},[i,T,a,j,ne]);Z.useEffect(()=>{if(!j)return;j===`render`&&!te.current&&(te.current=!0,vn(i,T));let e=!0,t;return j===`viewport`&&a.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&re(t.pop())},{rootMargin:`100px`}),t.observe(a.current)),()=>{e=!1,t?.disconnect(),Dn(a)}},[i,T,j,re,a]);let M=Tn(e,r);if(M.ref=n?o:a,A)return M.href=A,M;let ie=t=>{let n=f??t.currentTarget.getAttribute(`target`);ee||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),Dn(a),i.navigate({...e,_fromLocation:T._fromLocation}))},ae=()=>{j===`intent`&&vn(i,T)},oe=()=>{j===`intent`&&Dn(a)};return M.onClick=Q(p,ie),M.onBlur=Q(m,oe),M.onFocus=Q(h,re),M.onMouseEnter=Q(g,re),M.onMouseLeave=Q(_,oe),M.onTouchStart=Q(v,ae),En(M,e,k,O,ee,r)}var Sn={},Cn={className:`active`},wn=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function Tn(e,t){let n={};for(let r in e)wn.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function En(e,t,n,r,i,a){let{activeProps:o,inactiveProps:c,className:l,style:u,target:d}=t,f=s(n?o:c,{})??(n?Cn:Sn);Object.assign(e,f),e.href=r,a!==`a`&&(e.disabled=i),e.target=d;let p=f.style;(u||p)&&(e.style=u&&p?{...u,...p}:u||p);let m=f.className;return(l||m)&&(e.className=l?m?`${l} ${m}`:l:m),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var Dn=e=>{clearTimeout(e.t),e.t=void 0},Q=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function On(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!S(i,t.protocolAllowlist))return i}var kn=Z.memo(Z.forwardRef((e,t)=>{let n=e._asChild||`a`,r=xn(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return Z.createElement(n,r,i)}),An);function An(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!wn.has(r)||!m(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var jn=a();function Mn(e,t){return e===t}function Nn(e,t=e=>e,n){let r=n?.compare??Mn,i=(0,Z.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,Z.useCallback)(()=>e.get(),[e]);return(0,jn.useSyncExternalStoreWithSelector)(i,a,a,t,r)}var Pn={};function Fn(e,t){let n=Z.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=f(n.current,i):i}}function $(e){let n=t(),r=Z.useContext(e.from?hn:mn),i=e.from??r,a=n.stores.getMatchStore(i),o=Fn(e,n),s=Nn(a,e=>e?o(e):Pn);if(s!==Pn)return s;(e.shouldThrow??!0)&&E()}function In(e){return $({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Ln(e){let{select:t,...n}=e;return $({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Rn(e){return $({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function zn(e){return $({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Bn(e){return $({...e,select:t=>e.select?e.select(t.context):t.context})}function Vn(e){return new Hn({id:e})}var Hn=class extends dn{constructor({id:e}){super({id:e}),this.useMatch=e=>$({...e,from:this.id}),this.useRouteContext=e=>Bn({...e,from:this.id}),this.useSearch=e=>zn({...e,from:this.id}),this.useParams=e=>Rn({...e,from:this.id}),this.useLoaderDeps=e=>Ln({...e,from:this.id,strict:!1}),this.useLoaderData=e=>In({...e,from:this.id,strict:!1}),this.useNavigate=()=>{let e=t();return n({from:e.routesById[this.id].fullPath})},this.notFound=e=>ie({routeId:this.id,...e}),this.Link=Z.forwardRef((e,n)=>{let r=t().routesById[this.id].fullPath;return(0,gn.jsx)(kn,{ref:n,from:r,...e})})}},Un=class extends un{constructor(e){super(e),this.useMatch=e=>$({...e,from:this.id}),this.useRouteContext=e=>Bn({...e,from:this.id}),this.useSearch=e=>zn({...e,from:this.id}),this.useParams=e=>Rn({...e,from:this.id}),this.useLoaderDeps=e=>Ln({...e,from:this.id}),this.useLoaderData=e=>In({...e,from:this.id}),this.useNavigate=()=>n({from:this.fullPath}),this.Link=Z.forwardRef((e,t)=>(0,gn.jsx)(kn,{ref:t,from:this.fullPath,...e}))}};function Wn(e){return new Un(e)}var Gn=class extends fn{constructor(e){super(e),this.useMatch=e=>$({...e,from:this.id}),this.useRouteContext=e=>Bn({...e,from:this.id}),this.useSearch=e=>zn({...e,from:this.id}),this.useParams=e=>Rn({...e,from:this.id}),this.useLoaderDeps=e=>Ln({...e,from:this.id}),this.useLoaderData=e=>In({...e,from:this.id}),this.useNavigate=()=>n({from:this.fullPath}),this.Link=Z.forwardRef((e,t)=>(0,gn.jsx)(kn,{ref:t,from:this.fullPath,...e}))}};function Kn(e){return new Gn(e)}export{kn as a,ft as c,N as d,de as f,h as g,l as h,Nn as i,Xe as l,k as m,Wn as n,mn as o,ae as p,Vn as r,gt as s,Kn as t,Ze as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{o as t}from"./react-BPjvcVqE.js";import{R as n,g as r,h as i}from"./dist-CoswJ3T9.js";var a=e(t(),1),o=new Map([[`bold`,a.createElement(a.Fragment,null,a.createElement(`path`,{d:`M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z`}))],[`duotone`,a.createElement(a.Fragment,null,a.createElement(`path`,{d:`M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z`,opacity:`0.2`}),a.createElement(`path`,{d:`M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z`}))],[`fill`,a.createElement(a.Fragment,null,a.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z`}))],[`light`,a.createElement(a.Fragment,null,a.createElement(`path`,{d:`M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,a.createElement(a.Fragment,null,a.createElement(`path`,{d:`M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,a.createElement(a.Fragment,null,a.createElement(`path`,{d:`M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z`}))]]),s=a.forwardRef((e,t)=>a.createElement(n,{ref:t,...e,weights:o}));s.displayName=`CheckIcon`;function c(e,t){let n=a.useRef(e),o=r(t);i(()=>{n.current!==e&&o(n.current),n.current=e},[e,o])}export{s as n,c as t};
|
package/dist/client/index.html
CHANGED
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
<link rel="manifest" href="/manifest.webmanifest" />
|
|
16
16
|
|
|
17
17
|
<title>Auth</title>
|
|
18
|
-
<script type="module" crossorigin src="/assets/index-
|
|
18
|
+
<script type="module" crossorigin src="/assets/index-B2XVBhYz.js"></script>
|
|
19
19
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-XKyaHtl9.js">
|
|
20
20
|
<link rel="modulepreload" crossorigin href="/assets/react-BPjvcVqE.js">
|
|
21
|
-
<link rel="modulepreload" crossorigin href="/assets/effect-
|
|
22
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
23
|
-
<link rel="modulepreload" crossorigin href="/assets/auth-
|
|
21
|
+
<link rel="modulepreload" crossorigin href="/assets/effect-D80oo8_m.js">
|
|
22
|
+
<link rel="modulepreload" crossorigin href="/assets/dist-CoswJ3T9.js">
|
|
23
|
+
<link rel="modulepreload" crossorigin href="/assets/auth-BF8WBqbB.js">
|
|
24
24
|
<link rel="modulepreload" crossorigin href="/assets/with-selector-CgT_9Dhw.js">
|
|
25
|
-
<link rel="modulepreload" crossorigin href="/assets/route-
|
|
26
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
25
|
+
<link rel="modulepreload" crossorigin href="/assets/route-CJm29_uL.js">
|
|
26
|
+
<link rel="stylesheet" crossorigin href="/assets/index-Bs-qLMIo.css">
|
|
27
27
|
</head>
|
|
28
28
|
<body>
|
|
29
29
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deslop/auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1313",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/MP281X/deslop.git",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": ">=26"
|
|
35
35
|
},
|
|
36
|
-
"fingerprint": "
|
|
36
|
+
"fingerprint": "e0c540e1414ff8def4e1bf2be37a48c14d29f2c6a87024c26ed4a26adbacc234"
|
|
37
37
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{a as t,n,o as r}from"./react-BPjvcVqE.js";import{B as i,E as a,F as o,H as s,O as c,R as l,f as u,h as d,l as f,m as p,t as m,u as h}from"./auth-BNZWl1l6.js";import{Fo as g,Qa as _,Ro as v,Vo as y,pt as b,rs as x,ts as S}from"./effect-Cp782Xa9.js";import{n as C,t as ee}from"./useValueChanged-KanIHJJw.js";import{t as w}from"./Key.es-CciAV_uS.js";import{_ as T,g as E,i as te,m as D,o as O,s as k,t as A,v as j,z as M}from"./classes-DPMqTZNl.js";import{r as N}from"./route-DV3vVIwn.js";import{$ as P,A as ne,L as F,Q as I,Y as L,i as R,q as re,r as ie}from"./components-DFpuUZ0C.js";var z=e(r(),1),ae=new Map([[`bold`,z.createElement(z.Fragment,null,z.createElement(`path`,{d:`M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z`}))],[`duotone`,z.createElement(z.Fragment,null,z.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),z.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`fill`,z.createElement(z.Fragment,null,z.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,z.createElement(z.Fragment,null,z.createElement(`path`,{d:`M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z`}))],[`regular`,z.createElement(z.Fragment,null,z.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`thin`,z.createElement(z.Fragment,null,z.createElement(`path`,{d:`M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z`}))]]),B=z.forwardRef((e,t)=>z.createElement(M,{ref:t,...e,weights:ae}));B.displayName=`XIcon`;var V=`data-valid`,H=`data-invalid`,U={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},W={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},G={valid(e){return e===null?null:e?{[V]:``}:{[H]:``}}},K={invalid:void 0,name:void 0,validityData:{state:U,errors:[],error:``,value:``,initialValue:null},setValidityData:k,disabled:void 0,setTouched:k,setDirty:k,setFilled:k,setFocused:k,focusOwnerRef:{current:void 0},validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:W,registerFieldControl:k,validation:{getValidationProps:(e,t=O)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:k,getInputControl:()=>null,commit:async()=>{},change:k}},q=z.createContext(K);function J(e=!0){let t=z.useContext(q);if(t.setValidityData===k&&!e)throw Error(D(28));return t}var oe=z.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:k,validationMode:`onSubmit`,submitCountRef:{current:0}});function se(){return z.useContext(oe)}var ce=z.createContext({controlId:void 0,registerControlId:k,resetControlId:k,labelId:void 0,setLabelId:k,messageIds:[],setMessageIds:k,getDescriptionProps:e=>e});function Y(){return z.useContext(ce)}function le(e,t,n){let{setFocused:r,focusOwnerRef:i}=J(),a=T(t=>{(t?!e:i.current===a)&&(i.current=t&&a,n?.(t),r(t))});return E(()=>{let e=t.current;return e?.getRootNode()?.activeElement===e&&a(!0),()=>a(!1)},[e,t,a]),a}function ue(e,t,n,r,i=!0,a){let{registerFieldControl:o}=J(),s=j(()=>Symbol());E(()=>{let c=s.current;i?o(c,{controlRef:e,getValue:r,id:t,name:a,value:n}):o(c,void 0)},[e,i,r,t,a,o,s,n]),E(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}function de(e={}){let{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=Y(),o=L(),s=j(()=>Symbol()),c=z.useRef(!1),l=z.useRef(!1),u=T(()=>{c.current&&i!==k&&(c.current=!1,i(s.current,void 0))});return E(()=>{if(!n||i===k){u();return}let e;if(t!==void 0)l.current=!0,e=t;else if(l.current)e=o;else{a();return}e===void 0?u():(c.current=!0,i(s.current,e))},[t,n,i,a,o,s,u]),E(()=>u,[u]),(n?r:void 0)??t??o}var fe=z.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:_,validityData:v,setFilled:y,validationMode:b,validation:x}=J(),{clearErrors:S,elementRef:C,submitCountRef:w}=se(),D=h||s,O=m??a,k={...p,disabled:D},{labelId:A}=Y(),j=de({id:i}),M=o!==void 0,N=o==null?void 0:String(o),P=T(()=>x.inputRef.current?.value);ue(x.inputRef,j,N,P,!D,a),E(()=>{let e=N??x.inputRef.current?.value;e!==void 0&&y(e!==``)},[N,l,x.inputRef,y]),ee(N,()=>{N!==void 0&&(S(O),_(N!==(v.initialValue??``)),x.change(N))});let I=z.useRef(null),L=le(D,I),R=re();return te(`input`,e,{ref:[t,I],state:k,props:[{id:j,disabled:D,name:O,ref:x.inputRef,"aria-labelledby":A,autoFocus:u,...M?{value:o}:{defaultValue:l},onChange(e){let t=e.currentTarget.value,n=F(ne,e.nativeEvent);c?.(t,n),M||(_(t!==(v.initialValue??``)),y(t!==``),!e.nativeEvent.defaultPrevented&&!n.isCanceled&&(S(O),x.change(t)))},onFocus(){L(!0)},onBlur(e){if(g(!0),L(!1),b===`onBlur`){let t=e.currentTarget.value;x.commit(t),M&&queueMicrotask(()=>{let e=x.inputRef.current?.value;e!==void 0&&e!==t&&e!==(v.initialValue??``)&&x.commit(e)})}},onKeyDown(e){if(e.currentTarget.tagName===`INPUT`&&e.key===`Enter`){g(!0);let t=e.currentTarget.value,n=e.currentTarget.form;if(n&&n===C.current&&!e.defaultPrevented){let t=e.currentTarget,n=w.current;R.start(0,()=>{w.current===n&&x.commit(t.value)})}else x.commit(t)}}},f,e=>x.getValidationProps(D,e)],stateAttributesMapping:G})}),X=t(),pe=z.forwardRef(function(e,t){return(0,X.jsx)(fe,{ref:t,...e})}),Z=n();function me(e){let t=(0,Z.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=A(`h-8 w-full min-w-0 rounded-none border border-input bg-transparent px-2.5 py-1 text-xs outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive/20 md:text-xs dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,X.jsx)(pe,{type:i,"data-slot":`input`,className:a,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}function he(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=A(`group/input-group relative flex h-8 w-full min-w-0 items-center rounded-none border border-input outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-1 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-1 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(`div`,{"data-slot":`input-group`,role:`group`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var ge=o(`flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-xs font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-none [&>svg:not([class*='size-'])]:size-4`,{variants:{align:{"inline-start":`order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]`,"inline-end":`order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]`,"block-start":`order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2`,"block-end":`order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2`}},defaultVariants:{align:`inline-start`}});function Q(e){let t=(0,Z.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,align:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`inline-start`:i,o;t[4]!==a||t[5]!==n?(o=A(ge({align:a}),n),t[4]=a,t[5]=n,t[6]=o):o=t[6];let s;return t[7]!==a||t[8]!==r||t[9]!==o?(s=(0,X.jsx)(`div`,{role:`group`,"data-slot":`input-group-addon`,"data-align":a,className:o,onClick:_e,...r}),t[7]=a,t[8]=r,t[9]=o,t[10]=s):s=t[10],s}function _e(e){e.target.closest(`button`)||e.currentTarget.parentElement?.querySelector(`input`)?.focus()}o(`flex items-center gap-2 text-xs shadow-none`,{variants:{size:{xs:`h-6 gap-1 rounded-none px-1.5 [&>svg:not([class*='size-'])]:size-3.5`,sm:`gap-1`,"icon-xs":`size-6 rounded-none p-0 has-[>svg]:p-0`,"icon-sm":`size-7 p-0 has-[>svg]:p-0`}},defaultVariants:{size:`xs`}});function ve(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=A(`flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(me,{"data-slot":`input-group-control`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var $=N(`/(home)/`);function ye(e){function t(){e.blur()}function n(){document.visibilityState===`hidden`&&t()}return document.addEventListener(`visibilitychange`,n),addEventListener(`pagehide`,t),()=>{document.removeEventListener(`visibilitychange`,n),removeEventListener(`pagehide`,t)}}function be(e){let t=(0,Z.c)(28),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={select:Se},t[0]=n):n=t[0];let r=$.useSearch(n),i;t[1]===e.state?i=t[2]:(i=m.isAnyOf([`Missing`,`Failed`])(e.state),t[1]=e.state,t[2]=i);let a=i,o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,X.jsx)(Q,{children:(0,X.jsx)(w,{})}),t[3]=o):o=t[3];let s=e.typed,l;t[4]===e?l=t[5]:(l=t=>e.onType(c(t.target.value)),t[4]=e,t[5]=l);let u;t[6]===e.state?u=t[7]:(u=m.isAnyOf([`Checking`])(e.state),t[6]=e.state,t[7]=u);let d;t[8]!==a||t[9]!==r||t[10]!==e.typed||t[11]!==l||t[12]!==u?(d=(0,X.jsxs)(he,{children:[o,(0,X.jsx)(ve,{id:`code`,ref:ye,"aria-label":`Code of a sign-in to approve`,placeholder:`Code`,maxLength:8,value:s,onChange:l,autoFocus:r,autoComplete:`off`,autoCapitalize:`characters`,spellCheck:!1,disabled:u,"aria-invalid":a,"aria-describedby":`code-error`})]}),t[8]=a,t[9]=r,t[10]=e.typed,t[11]=l,t[12]=u,t[13]=d):d=t[13];let f;t[14]===e.state?f=t[15]:(f=m.isAnyOf([`Missing`])(e.state)&&(0,X.jsx)(P,{id:`code-error`,children:`No waiting sign-in has this code.`}),t[14]=e.state,t[15]=f);let p;t[16]===e.state?p=t[17]:(p=m.isAnyOf([`Failed`])(e.state)&&(0,X.jsx)(P,{id:`code-error`,children:e.state.message}),t[16]=e.state,t[17]=p);let h;t[18]!==a||t[19]!==d||t[20]!==f||t[21]!==p?(h=(0,X.jsxs)(I,{"data-invalid":a,children:[d,f,p]}),t[18]=a,t[19]=d,t[20]=f,t[21]=p,t[22]=h):h=t[22];let g;t[23]===e.answered?g=t[24]:(g=y(e.answered,{onNone:S,onSome:xe}),t[23]=e.answered,t[24]=g);let _;return t[25]!==g||t[26]!==h?(_=(0,X.jsxs)(`section`,{className:`flex w-full flex-col gap-2`,children:[h,g]}),t[25]=g,t[26]=h,t[27]=_):_=t[27],_}function xe(e){return(0,X.jsx)(`p`,{className:`text-muted-foreground flex items-center gap-1.5 text-xs`,role:`status`,children:_(e.accept,{onFalse:()=>(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(B,{className:`size-3.5`}),a(e.request.clientName,e.request.device),` denied`]}),onTrue:()=>(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(C,{className:`size-3.5`}),a(e.request.clientName,e.request.device),` approved`]})})})}function Se(e){return v(e.code)}function Ce(e){let t=(0,Z.c)(22),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,X.jsx)(`h1`,{className:`sr-only`,children:`Auth`}),t[0]=n):n=t[0];let r;t[1]!==e.answered||t[2]!==e.onType||t[3]!==e.state||t[4]!==e.typed?(r=(0,X.jsx)(be,{answered:e.answered,onType:e.onType,state:e.state,typed:e.typed}),t[1]=e.answered,t[2]=e.onType,t[3]=e.state,t[4]=e.typed,t[5]=r):r=t[5];let i;t[6]!==e.pending||t[7]!==e.state?(i=m.isAnyOf([`Checking`])(e.state)||v(e.pending),t[6]=e.pending,t[7]=e.state,t[8]=i):i=t[8];let a;t[9]===i?a=t[10]:(a=(0,X.jsx)(R,{pending:i}),t[9]=i,t[10]=a);let o;t[11]===e.state?o=t[12]:(o=m.isAnyOf([`Checking`])(e.state),t[11]=e.state,t[12]=o);let s;t[13]!==e.pending||t[14]!==o?(s=(0,X.jsx)(ie,{checking:o,pending:e.pending}),t[13]=e.pending,t[14]=o,t[15]=s):s=t[15];let c;t[16]!==a||t[17]!==s?(c=(0,X.jsx)(z.Suspense,{fallback:a,children:s}),t[16]=a,t[17]=s,t[18]=c):c=t[18];let l;return t[19]!==r||t[20]!==c?(l=(0,X.jsxs)(X.Fragment,{children:[n,r,c]}),t[19]=r,t[20]=c,t[21]=l):l=t[21],l}function we(){let e=(0,Z.c)(7),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={select:Te},e[0]=t):t=e[0];let n=$.useSearch(t),r;e[1]===n?r=e[2]:(r=d(n),e[1]=n,e[2]=r),l(r),l(p);let a=i(f.send),o;e[3]===a?o=e[4]:(o=function(e){a(h.Typed({typed:e}))},e[3]=a,e[4]=o);let c=o,m;return e[5]===c?m=e[6]:(m=e=>(0,X.jsx)(Ce,{...e,onType:c}),e[5]=c,e[6]=m),y(b(s(u)),{onNone:S,onSome:m})}function Te(e){return g(e.code,x(``))}export{we as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{o as t}from"./react-BPjvcVqE.js";import{z as n}from"./classes-DPMqTZNl.js";var r=e(t(),1),i=new Map([[`bold`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M196,76a16,16,0,1,1-16-16A16,16,0,0,1,196,76Zm48,22.74A84.3,84.3,0,0,1,160.11,180H160a83.52,83.52,0,0,1-23.65-3.38l-7.86,7.87A12,12,0,0,1,120,188H108v12a12,12,0,0,1-12,12H84v12a12,12,0,0,1-12,12H40a20,20,0,0,1-20-20V187.31a19.86,19.86,0,0,1,5.86-14.14l53.52-53.52A84,84,0,1,1,244,98.74ZM202.43,53.57A59.48,59.48,0,0,0,158,36c-32,1-58,27.89-58,59.89a59.69,59.69,0,0,0,4.2,22.19,12,12,0,0,1-2.55,13.21L44,189v23H60V200a12,12,0,0,1,12-12H84V176a12,12,0,0,1,12-12h19l9.65-9.65a12,12,0,0,1,13.22-2.55A59.58,59.58,0,0,0,160,156h.08c32,0,58.87-26.07,59.89-58A59.55,59.55,0,0,0,202.43,53.57Z`}))],[`duotone`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M232,98.36C230.73,136.92,198.67,168,160.09,168a71.68,71.68,0,0,1-26.92-5.17h0L120,176H96v24H72v24H40a8,8,0,0,1-8-8V187.31a8,8,0,0,1,2.34-5.65l58.83-58.83h0A71.68,71.68,0,0,1,88,95.91c0-38.58,31.08-70.64,69.64-71.87A72,72,0,0,1,232,98.36Z`,opacity:`0.2`}),r.createElement(`path`,{d:`M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z`}))],[`fill`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM180,92a16,16,0,1,1,16-16A16,16,0,0,1,180,92Z`}))],[`light`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M215.15,40.85A78,78,0,0,0,86.2,121.31l-56.1,56.1a13.94,13.94,0,0,0-4.1,9.9V216a14,14,0,0,0,14,14H72a6,6,0,0,0,6-6V206H96a6,6,0,0,0,6-6V182h18a6,6,0,0,0,4.24-1.76l10.45-10.44A77.59,77.59,0,0,0,160,174h.1A78,78,0,0,0,215.15,40.85ZM226,98.16c-1.12,35.16-30.67,63.8-65.88,63.84a65.93,65.93,0,0,1-24.51-4.67,6,6,0,0,0-6.64,1.26L117.51,170H96a6,6,0,0,0-6,6v18H72a6,6,0,0,0-6,6v18H40a2,2,0,0,1-2-2V187.31a2,2,0,0,1,.58-1.41l58.83-58.83a6,6,0,0,0,1.26-6.64A65.61,65.61,0,0,1,94,95.92C94,60.71,122.68,31.16,157.83,30A66,66,0,0,1,226,98.16ZM190,76a10,10,0,1,1-10-10A10,10,0,0,1,190,76Z`}))],[`regular`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z`}))],[`thin`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M213.74,42.26A76,76,0,0,0,88.51,121.84l-57,57A11.93,11.93,0,0,0,28,187.31V216a12,12,0,0,0,12,12H72a4,4,0,0,0,4-4V204H96a4,4,0,0,0,4-4V180h20a4,4,0,0,0,2.83-1.17l11.33-11.34A75.72,75.72,0,0,0,160,172h.1A76,76,0,0,0,213.74,42.26Zm14.22,56c-1.15,36.22-31.6,65.72-67.87,65.77H160a67.52,67.52,0,0,1-25.21-4.83,4,4,0,0,0-4.45.83l-12,12H96a4,4,0,0,0-4,4v20H72a4,4,0,0,0-4,4v20H40a4,4,0,0,1-4-4V187.31a4.06,4.06,0,0,1,1.17-2.83L96,125.66a4,4,0,0,0,.83-4.45A67.51,67.51,0,0,1,92,95.91C92,59.64,121.55,29.19,157.77,28A68,68,0,0,1,228,98.23ZM188,76a8,8,0,1,1-8-8A8,8,0,0,1,188,76Z`}))]]),a=r.forwardRef((e,t)=>r.createElement(n,{ref:t,...e,weights:i}));a.displayName=`KeyIcon`;export{a as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dropdown-menu-BJ4ICzOG.js","assets/rolldown-runtime-XKyaHtl9.js","assets/react-BPjvcVqE.js","assets/with-selector-CgT_9Dhw.js","assets/classes-DPMqTZNl.js","assets/effect-Cp782Xa9.js","assets/components-DFpuUZ0C.js","assets/auth-BNZWl1l6.js","assets/useValueChanged-KanIHJJw.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{a as t,n,o as r}from"./react-BPjvcVqE.js";import{F as i,G as a,H as o,L as s,P as c,U as l}from"./auth-BNZWl1l6.js";import{Gn as u,Po as d,Qa as f,Qi as p,Qo as m,V as h,Vo as g,Xi as _,ea as v,fi as y,lt as b,rs as x,vn as S,z as C}from"./effect-Cp782Xa9.js";import{A as w,F as T,_ as E,a as D,b as O,f as k,g as A,i as j,j as M,l as N,m as P,o as F,p as I,t as L,u as R,v as z,z as B}from"./classes-DPMqTZNl.js";import{A as V,L as ee,T as H,Y as U,d as W,k as te,l as ne,u as re,x as ie}from"./components-DFpuUZ0C.js";import{t as ae}from"./index-CDrOetKk.js";var G=e(r(),1),oe=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M160,48V208L80,128Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z`}))]]),se=G.forwardRef((e,t)=>G.createElement(B,{ref:t,...e,weights:oe}));se.displayName=`CaretLeftIcon`;var K=t();function q(e){return e?.ownerDocument||document}function ce(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function le(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&T(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function ue(e,t){let n=e;for(;n;){if(w(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(T(n)?n.host:null)}return null}function J(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}function Y(e,t){return t<0||t>=e.length}function de(e,t){return X(e.current,{disabledIndices:t})}function fe(e,t){return X(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function pe(e,t,n){let{decrement:r,loopFocus:i,allowEscape:a,disabledIndices:o,minIndex:s,maxIndex:c}=n,l=()=>X(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:Y(e,u)?-1:u,wrapped:d}}function X(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&&Z(e,a,r));return a}function Z(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!he(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function me(e){return e.visibility===`hidden`||e.visibility===`collapse`}function he(e,t=e?O(e):null){return!e||!e.isConnected||!t||me(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}function ge({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=G.useRef(e!==void 0),[a,o]=G.useState(()=>t);return[i&&e!==void 0?e:a,G.useCallback(e=>{i||o(e)},[])]}var _e=G.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function ve(){return G.useContext(_e)}function ye(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=E(i),[,o]=G.useState(0),s=z(xe).current,c=z(be).current,l=G.useRef(0),u=G.useRef(!0),d=G.useRef(null),f=G.useRef(null),p=E(()=>{u.current||(u.current=!0,o(e=>e+1))}),m=E((e,t)=>{c.set(e,t),p()}),h=E(e=>{c.delete(e),p()}),g=E(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!we(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&Te(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=Ce(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=E(()=>{let[e,t]=Se(c),n=g(e),r=d.current,i=!r||r.length!==e.length||e.some((e,t)=>{let n=r[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});_(t),d.current=e,u.current=!1,i&&(s.forEach(e=>e(n)),a(n))});A(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),A(()=>{u.current&&v()}),A(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=E(e=>(s.add(e),()=>{s.delete(e)})),b=G.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,K.jsx)(_e.Provider,{value:b,children:t})}function be(){return new Map}function xe(){return new Set}function Se(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>Te(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function Ce(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function we(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function Te(e,t){return e.nextElementSibling===t?-1:t.nextElementSibling===e?1:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var Ee=G.createContext(void 0);function De(){let e=G.useContext(Ee);if(e===void 0)throw Error(P(64));return e}var Oe=`data-activation-direction`,ke={tabActivationDirection:e=>({[Oe]:e})},Ae=G.forwardRef(function(e,t){let{className:n,defaultValue:r=0,onValueChange:i,orientation:a=`horizontal`,render:o,value:s,style:c,...l}=e,u=e.defaultValue!==void 0,d=G.useRef([]),[f,p]=G.useState(()=>new Map),[m,h]=ge({controlled:s,default:r,name:`Tabs`,state:`value`}),g=s!==void 0,[_,v]=G.useState(()=>new Map),y=G.useRef(void 0),b=G.useCallback(e=>je(_,e),[_]),[x,S]=G.useState(()=>({previousValue:m,tabActivationDirection:`none`})),{previousValue:C,tabActivationDirection:w}=x,T=w,D=!1;C!==m&&(T=Me(C,m,a,_),D=C!=null&&m!=null&&b(m)==null);let O=D?C:m,k=C!==O||w!==T;A(()=>{k&&S({previousValue:O,tabActivationDirection:T})},[O,k,T]);let M=E((e,t)=>{t.activationDirection=Me(m,e,a,_),i?.(e,t),t.isCanceled||h(()=>e)}),N=E((e,t)=>{i?.(e,ee(t,void 0,void 0,{activationDirection:`none`}))}),P=E((e,t)=>(p(n=>{let r=new Map(n);return r.set(e,t),r}),()=>{p(n=>{if(n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})})),F=G.useCallback(e=>f.get(e),[f]),I=G.useCallback(e=>{for(let t of _.values())if(e===t.value)return t.id},[_]),L=G.useMemo(()=>({getTabElementBySelectedValue:b,getTabIdByPanelValue:I,getTabPanelIdByValue:F,onValueChange:M,orientation:a,registerMountedTabPanel:P,setTabMap:v,tabActivationDirection:T,value:m}),[b,I,F,M,a,P,v,T,m]),R=G.useMemo(()=>{for(let e of _.values())if(e.value===m)return e},[_,m]),z=G.useMemo(()=>{for(let e of _.values())if(!e.disabled)return e.value},[_]),B=G.useRef(!u),V=G.useRef(r),U=G.useRef(u),W=G.useRef(!1);A(()=>{if(g)return;function e(e,t){h(()=>e),S({previousValue:e,tabActivationDirection:`none`}),N(e,t),B.current=!1}if(_.size===0){W.current&&m!==null&&!y.current?.isConnected&&e(null,te);return}W.current=!0,y.current=_.keys().next().value;let t=R?.disabled,n=R==null&&m!==null;if(!t&&m===V.current&&(U.current=!1),U.current&&t&&m===V.current)return;let r=B.current;if(t||n){let n=z??null;if(m===n){B.current=!1;return}let i=te;r?i=H:t&&(i=ie),e(n,i)}else r&&R!=null&&(N(m,H),B.current=!1)},[z,g,N,R,h,_,m]);let ne=j(`div`,e,{state:{orientation:a,tabActivationDirection:T},ref:t,props:l,stateAttributesMapping:ke});return(0,K.jsx)(Ee.Provider,{value:L,children:(0,K.jsx)(ye,{elementsRef:d,children:ne})})});function je(e,t){for(let[n,r]of e.entries())if(t===r.value)return n;return null}function Me(e,t,n,r){if(e==null||t==null)return`none`;let[i,a,o]=n===`horizontal`?[`left`,`left`,`right`]:[`top`,`up`,`down`],s=je(r,e),c=je(r,t);if(s==null||c==null)return s!==c&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?t>e?o:a:`none`;let l=s.getBoundingClientRect()[i],u=c.getBoundingClientRect()[i];return u<l?a:u>l?o:`none`}var Ne=`data-composite-item-active`;function Pe(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=ve(),u=G.useRef(-1),[d,f]=G.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=G.useRef(null),h=G.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return A(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}function Fe(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=I(),{ref:i,index:a}=Pe(e),o=n===a,s=G.useRef(null),c=N(i,s);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}},compositeRef:c,index:a}}var Ie=G.createContext(void 0);function Le(){let e=G.useContext(Ie);if(e===void 0)throw Error(P(65));return e}var Re=G.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:i,value:a,id:o,nativeButton:s=!0,style:c,...l}=e,{value:u,getTabPanelIdByValue:d,onValueChange:f,orientation:p,tabActivationDirection:m}=De(),{activateOnFocus:h,registerTabResizeObserverElement:g,tabsListElement:_}=Le(),{highlightedIndex:v,onHighlightedIndexChange:y}=I(),b=U(o),{compositeProps:x,compositeRef:S,index:C}=Fe({metadata:G.useMemo(()=>({disabled:r,id:b,value:a}),[r,b,a])}),w=a===u,T=G.useRef(!1),D=G.useRef(null),O=E(e=>{D.current?.(),D.current=e?g(e):null});A(()=>{if(T.current){T.current=!1;return}if(!(w&&C>-1&&v!==C))return;let e=_;if(e!=null){let t=ce(q(e));if(t&&le(e,t))return}r||y(C)},[w,C,v,y,r,_]);let{getButtonProps:k,buttonRef:M}=R({disabled:r,native:s,focusableWhenDisabled:!0}),N=d(a),P=G.useRef(!1),F=G.useRef(!1);function L(e){f(a,ee(V,e.nativeEvent,void 0,{activationDirection:`none`}))}function z(e){w||r||L(e)}function B(e){w||r||h&&(!P.current||F.current)&&L(e)}function H(e){if(w||r)return;P.current=!0,F.current=e.button===0;let t=q(e.currentTarget);function n(){P.current=!1,F.current=!1,t.removeEventListener(`pointerup`,n),t.removeEventListener(`pointercancel`,n)}t.addEventListener(`pointerup`,n),t.addEventListener(`pointercancel`,n)}return j(`button`,e,{state:{disabled:r,active:w,orientation:p,tabActivationDirection:m},ref:[t,M,S,O],props:[x,{role:`tab`,"aria-controls":N,"aria-selected":w,id:b,onClick:z,onFocus:B,onPointerDown:H,[Ne]:w?``:void 0,onKeyDownCapture(){T.current=!0}},l,k],stateAttributesMapping:ke})});function ze(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var Be=`ArrowUp`,Ve=`ArrowDown`,He=`ArrowLeft`,Ue=`ArrowRight`,We=new Set([Be,Ve,He,Ue,`Home`,`End`]),Ge=[`Shift`,`Control`,`Alt`,`Meta`];function Ke(e){return M(e)&&e.tagName===`INPUT`}function qe(e){return!!(Ke(e)&&e.selectionStart!=null||M(e)&&e.tagName===`TEXTAREA`)}function Je(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(o&&r!==`vertical`){let r=Ye(e,t,`left`),a=Q(e),o=Q(t);n===`ltr`&&(r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft&&(i=r-o.scrollMarginLeft-a.scrollPaddingLeft)),n===`rtl`&&(r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft?i=r-o.scrollMarginLeft-a.scrollPaddingLeft:r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=Ye(e,t,`top`),r=Q(e),i=Q(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?a=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function Ye(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function Q(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function Xe(e){let{loopFocus:t=!0,orientation:n=`both`,grid:r,onLoop:i,direction:a,highlightedIndex:o,onHighlightedIndexChange:s,rootRef:c,enableHomeAndEndKeys:l=!1,stopEventPropagation:u,disabledIndices:d,modifierKeys:f=D}=e,[p,m]=G.useState(0),h=r!=null,g=G.useRef(null),_=N(g,c),v=G.useRef([]),y=G.useRef(!1),b=G.useRef(null),x=o??p,S=E((e,t=!1)=>{if(b.current=v.current[e]??null,(s??m)(e),t){let t=v.current[e];Je(g.current,t,a,n)}}),C=E(e=>{if(e.size===0)return;if(y.current){let e=v.current,t=e.indexOf(b.current);if(t===-1){let t=e[x];!t||Z(e,x,d)?S(Ze(e,d)):b.current=t}else t!==x&&S(t);return}y.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,i=r?e.get(r)?.index??-1:-1;if(i!==-1)S(i);else if(Z(t,x,d)){let e=X(t,{disabledIndices:d});Y(t,e)||S(e)}Je(g.current,r,a,n)});A(()=>{if(d==null||o!=null||!y.current)return;let e=v.current;if(Z(e,x,d)){let t=X(e,{disabledIndices:d});Y(e,t)||S(t)}},[d,o,x,v,S]);let w=E((e,t,n)=>i?i(e,t,n,v):n),T=E(e=>{let o=e.key===`Home`||e.key===`End`;if(!We.has(e.key)||!l&&o||Qe(e,f)||!g.current)return;let s=a===`rtl`,c=s?He:Ue,p=s?Ue:He,m=n===`vertical`?Ve:c,_=n===`vertical`?Be:p,y=J(e.nativeEvent);if(y!=null&&qe(y)&&!ze(y)){let t=y.selectionStart,n=y.selectionEnd,r=y.value;if(t==null||e.shiftKey||t!==n||e.key!==_&&t<r.length||e.key!==m&&t>0)return}let b=x,C=de(v,d),T=fe(v,d);r!=null&&(b=r({disabledIndices:d,elementsRef:v,event:e,highlightedIndex:x,loopFocus:t,maxIndex:T,minIndex:C,onLoop:w,orientation:n,rtl:s}));let E=n!==`vertical`&&e.key===c||n!==`horizontal`&&e.key===`ArrowDown`,D=n!==`vertical`&&e.key===p||n!==`horizontal`&&e.key===`ArrowUp`;l&&(e.key===`Home`?b=C:e.key===`End`&&(b=T)),b===x&&(E||D)&&(t&&b===T&&E?(b=C,i&&(b=i(e,x,b,v))):t&&b===C&&D?(b=T,i&&(b=i(e,x,b,v))):b=X(v.current,{startingIndex:b,decrement:D,disabledIndices:d})),b!==x&&!Y(v.current,b)&&(u&&e.stopPropagation(),(h||o||E||D)&&e.preventDefault(),S(b,!0),queueMicrotask(()=>{v.current[b]?.focus()}))});return{props:{ref:_,onFocus(e){let t=g.current,n=J(e.nativeEvent);t&&n!=null&&qe(n)&&n.setSelectionRange(0,n.value.length)},onKeyDown:T},highlightedIndex:x,onHighlightedIndexChange:S,elementsRef:v,onMapChange:C,relayKeyboardEvent:T}}function Ze(e,t){let n=-1;for(let r=0;r<e.length;r+=1){let i=e[r];if(i&&!Z(e,r,t)){if(i.hasAttribute(`data-composite-item-active`))return r;n===-1&&(n=r)}}return Math.max(n,0)}function Qe(e,t){for(let n of Ge)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}var $e=G.createContext(void 0);function et(){return G.useContext($e)?.direction??`ltr`}function tt(e){let{render:t,className:n,style:r,refs:i=D,props:a=D,state:o=F,stateAttributesMapping:s,highlightedIndex:c,onHighlightedIndexChange:l,orientation:u,grid:d,loopFocus:f,onLoop:p,enableHomeAndEndKeys:m,onMapChange:h,stopEventPropagation:g=!0,rootRef:_,disabledIndices:v,modifierKeys:y,highlightItemOnHover:b=!1,tag:x=`div`,...S}=e,{props:C,highlightedIndex:w,onHighlightedIndexChange:T,elementsRef:E,onMapChange:O,relayKeyboardEvent:A}=Xe({grid:d,loopFocus:f,onLoop:p,orientation:u,highlightedIndex:c,onHighlightedIndexChange:l,rootRef:_,stopEventPropagation:g,enableHomeAndEndKeys:m,direction:et(),disabledIndices:v,modifierKeys:y}),M=j(x,e,{state:o,ref:i,props:[C,...a,S],stateAttributesMapping:s}),N=G.useMemo(()=>({highlightedIndex:w,onHighlightedIndexChange:T,highlightItemOnHover:b,relayKeyboardEvent:A}),[w,T,b,A]);return(0,K.jsx)(k.Provider,{value:N,children:(0,K.jsx)(ye,{elementsRef:E,onMapChange:e=>{h?.(e),O(e)},children:M})})}var nt=G.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:r,loopFocus:i=!0,render:a,style:o,...s}=e,{orientation:c,setTabMap:l,tabActivationDirection:u}=De(),[d,f]=G.useState(0),[p,m]=G.useState(null),h=G.useRef(new Set),g=G.useRef(new Set),_=G.useRef(null);A(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{h.current.forEach(e=>{e()})});return _.current=e,p&&e.observe(p),g.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),_.current=null}},[p]);let v=E(e=>(h.current.add(e),()=>{h.current.delete(e)})),y=E(e=>(g.current.add(e),_.current?.observe(e),()=>{g.current.delete(e),_.current?.unobserve(e)})),b={orientation:c,tabActivationDirection:u},x={"aria-orientation":c===`vertical`?`vertical`:void 0,role:`tablist`},S=G.useMemo(()=>({activateOnFocus:n,registerIndicatorUpdateListener:v,registerTabResizeObserverElement:y,tabsListElement:p}),[n,v,y,p]);return(0,K.jsx)(Ie.Provider,{value:S,children:(0,K.jsx)(tt,{render:a,className:r,style:o,state:b,refs:[t,m],props:[x,s],stateAttributesMapping:ke,highlightedIndex:d,enableHomeAndEndKeys:!0,loopFocus:i,orientation:c,onHighlightedIndexChange:f,onMapChange:l,disabledIndices:D})})}),$=n();function rt(e){let t=(0,$.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,orientation:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`horizontal`:i,o;t[4]===n?o=t[5]:(o=L(`group/tabs flex gap-2 data-horizontal:flex-col`,n),t[4]=n,t[5]=o);let s;return t[6]!==a||t[7]!==r||t[8]!==o?(s=(0,K.jsx)(Ae,{"data-slot":`tabs`,"data-orientation":a,className:o,...r}),t[6]=a,t[7]=r,t[8]=o,t[9]=s):s=t[9],s}var it=i(`group/tabs-list inline-flex w-fit items-center justify-center rounded-none p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none`,{variants:{variant:{default:`bg-muted`,line:`gap-1 bg-transparent`}},defaultVariants:{variant:`default`}});function at(e){let t=(0,$.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,variant:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o;t[4]!==n||t[5]!==a?(o=L(it({variant:a}),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)(nt,{"data-slot":`tabs-list`,"data-variant":a,className:o,...r}),t[7]=r,t[8]=o,t[9]=a,t[10]=s):s=t[10],s}function ot(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=L(`relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-none border border-transparent px-1.5 py-0.5 text-xs font-medium whitespace-nowrap text-foreground/60 group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start group-data-vertical/tabs:py-[calc(--spacing(1.25))] hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent`,`data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-background dark:data-active:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,K.jsx)(Re,{"data-slot":`tabs-trigger`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var st=h(C(()=>y(()=>ae(()=>import(`./dropdown-menu-BJ4ICzOG.js`).then(e=>e.c),__vite__mapDeps([0,1,2,3,4,5,6,7,8])))));S(u(a.fields,[`id`,`name`]));function ct(e){let t=(0,$.c)(18),n;t[0]===e.small?n=t[1]:(n=f(e.small===!0,{onFalse:x(`sm`),onTrue:x(`default`)}),t[0]=e.small,t[1]=n);let r=e.small===!0&&`size-4`,i;t[2]===r?i=t[3]:(i=L(r),t[2]=r,t[3]=i);let a;t[4]===e.account.id?a=t[5]:(a=_(`github:`,``)(e.account.id),t[4]=e.account.id,t[5]=a);let o=`https://avatars.githubusercontent.com/u/${a}?s=96`,s;t[6]!==e.account.name||t[7]!==o?(s=(0,K.jsx)(W,{src:o,alt:e.account.name}),t[6]=e.account.name,t[7]=o,t[8]=s):s=t[8];let c;t[9]===e.account.name?c=t[10]:(c=v(p(0,1)(e.account.name)),t[9]=e.account.name,t[10]=c);let l;t[11]===c?l=t[12]:(l=(0,K.jsx)(re,{children:c}),t[11]=c,t[12]=l);let u;return t[13]!==n||t[14]!==i||t[15]!==s||t[16]!==l?(u=(0,K.jsxs)(ne,{size:n,variant:`plain`,className:i,children:[s,l]}),t[13]=n,t[14]=i,t[15]=s,t[16]=l,t[17]=u):u=t[17],u}function lt(){let e=(0,$.c)(45),t=o(l),[n,r]=s(st),[i,a]=(0,G.useState)(),u;e[0]===r?u=e[1]:(u=function(){r()},e[0]=r,e[1]=u);let d=u,f;e[2]===r?f=e[3]:(f=function(){a(!0),r()},e[2]=r,e[3]=f);let p=f,m;e[4]===p?m=e[5]:(m=function(e){(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(e.preventDefault(),p())},e[4]=p,e[5]=m);let h=m;if(!b(t))return null;if(!b(n)||i===void 0){let n=i??!1,r;e[6]===t.value?r=e[7]:(r=(0,K.jsx)(ct,{account:t.value}),e[6]=t.value,e[7]=r);let a;return e[8]!==p||e[9]!==h||e[10]!==d||e[11]!==n||e[12]!==r?(a=(0,K.jsx)(c,{variant:`ghost`,size:`icon-sm`,"aria-label":`Account`,"aria-haspopup":`menu`,"aria-expanded":n,onPointerEnter:d,onPointerDown:d,onFocus:d,onClick:p,onKeyDown:h,children:r}),e[8]=p,e[9]=h,e[10]=d,e[11]=n,e[12]=r,e[13]=a):a=e[13],a}let g;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,K.jsx)(c,{variant:`ghost`,size:`icon-sm`}),e[14]=g):g=e[14];let _;e[15]===t.value?_=e[16]:(_=(0,K.jsx)(ct,{account:t.value}),e[15]=t.value,e[16]=_);let v;e[17]!==n.value.DropdownMenuTrigger||e[18]!==_?(v=(0,K.jsx)(n.value.DropdownMenuTrigger,{"aria-label":`Account`,render:g,children:_}),e[17]=n.value.DropdownMenuTrigger,e[18]=_,e[19]=v):v=e[19];let y;e[20]!==t.value.name||e[21]!==n.value.DropdownMenuLabel?(y=(0,K.jsxs)(n.value.DropdownMenuLabel,{children:[`@`,t.value.name]}),e[20]=t.value.name,e[21]=n.value.DropdownMenuLabel,e[22]=y):y=e[22];let x;e[23]!==n.value.DropdownMenuGroup||e[24]!==y?(x=(0,K.jsx)(n.value.DropdownMenuGroup,{children:y}),e[23]=n.value.DropdownMenuGroup,e[24]=y,e[25]=x):x=e[25];let S;e[26]===n.value.DropdownMenuSeparator?S=e[27]:(S=(0,K.jsx)(n.value.DropdownMenuSeparator,{}),e[26]=n.value.DropdownMenuSeparator,e[27]=S);let C=!t.value.signOut,w;e[28]===Symbol.for(`react.memo_cache_sentinel`)?(w=new URLSearchParams({next:location.href}),e[28]=w):w=e[28];let T=`/auth/sign-out?${w}`,E;e[29]===T?E=e[30]:(E=(0,K.jsx)(`a`,{"aria-label":`Sign out`,href:T}),e[29]=T,e[30]=E);let D;e[31]!==n.value.DropdownMenuItem||e[32]!==E||e[33]!==C?(D=(0,K.jsx)(n.value.DropdownMenuItem,{variant:`destructive`,disabled:C,render:E,children:`Sign out`}),e[31]=n.value.DropdownMenuItem,e[32]=E,e[33]=C,e[34]=D):D=e[34];let O;e[35]!==n.value.DropdownMenuContent||e[36]!==D||e[37]!==x||e[38]!==S?(O=(0,K.jsxs)(n.value.DropdownMenuContent,{align:`end`,className:`w-auto min-w-48`,children:[x,S,D]}),e[35]=n.value.DropdownMenuContent,e[36]=D,e[37]=x,e[38]=S,e[39]=O):O=e[39];let k;return e[40]!==n.value.DropdownMenu||e[41]!==i||e[42]!==O||e[43]!==v?(k=(0,K.jsxs)(n.value.DropdownMenu,{open:i,onOpenChange:a,children:[v,O]}),e[40]=n.value.DropdownMenu,e[41]=i,e[42]=O,e[43]=v,e[44]=k):k=e[44],k}function ut(e){function t(){let t=e.querySelector(`[data-active]`);if(m(t)||m(e.parentElement))return;let n=t.getBoundingClientRect(),r=e.parentElement.getBoundingClientRect();n.left>=r.left-1&&n.right<=r.right+1||t.scrollIntoView({block:`nearest`,inline:`nearest`})}t();let n=new MutationObserver(t);return n.observe(e,{attributeFilter:[`data-active`],childList:!0,subtree:!0}),()=>{n.disconnect()}}function dt(e){let t=(0,$.c)(5),n;t[0]===e.children?n=t[1]:(n=(0,K.jsx)(at,{children:e.children}),t[0]=e.children,t[1]=n);let r;return t[2]!==e.value||t[3]!==n?(r=(0,K.jsx)(`div`,{ref:ut,children:(0,K.jsx)(rt,{value:e.value,children:n})}),t[2]=e.value,t[3]=n,t[4]=r):r=t[4],r}function ft(e){let t=(0,$.c)(4),n;return t[0]!==e.children||t[1]!==e.render||t[2]!==e.value?(n=(0,K.jsx)(ot,{value:e.value,nativeButton:!1,render:e.render,children:e.children}),t[0]=e.children,t[1]=e.render,t[2]=e.value,t[3]=n):n=t[3],n}function pt(e){let t=(0,$.c)(18),n;if(t[0]!==e.heading||t[1]!==e.icon||t[2]!==e.name){let r;t[4]!==e.icon||t[5]!==e.name?(r=()=>(0,K.jsxs)(c,{variant:`bare`,nativeButton:!1,render:(0,K.jsx)(`a`,{href:`/`,"aria-label":e.name}),className:`-mx-2.75 shrink-0`,children:[(0,K.jsx)(`img`,{src:e.icon,alt:``,className:`pixelated size-6`}),(0,K.jsx)(`span`,{className:`font-heading ml-1 text-sm font-semibold capitalize max-sm:hidden`,children:e.name})]}),t[4]=e.icon,t[5]=e.name,t[6]=r):r=t[6],n=g(d(e.heading),{onNone:r,onSome:mt}),t[0]=e.heading,t[1]=e.icon,t[2]=e.name,t[3]=n}else n=t[3];let r;t[7]===e.tabs?r=t[8]:(r=e.tabs!==void 0&&(0,K.jsx)(`nav`,{"aria-label":`Sections`,className:`flex min-w-0 flex-1 scrollbar-none items-center overflow-x-auto overscroll-x-contain`,children:e.tabs}),t[7]=e.tabs,t[8]=r);let i;t[9]===e.account?i=t[10]:(i=e.account??(0,K.jsx)(lt,{}),t[9]=e.account,t[10]=i);let a;t[11]!==e.controls||t[12]!==i?(a=(0,K.jsxs)(`div`,{className:`ml-auto flex shrink-0 items-center gap-2`,children:[e.controls,i]}),t[11]=e.controls,t[12]=i,t[13]=a):a=t[13];let o;return t[14]!==n||t[15]!==r||t[16]!==a?(o=(0,K.jsxs)(`header`,{className:`bg-background flex h-12 shrink-0 items-center gap-4 border-b px-4`,children:[n,r,a]}),t[14]=n,t[15]=r,t[16]=a,t[17]=o):o=t[17],o}function mt(e){return(0,K.jsxs)(`div`,{className:`flex min-w-0 shrink items-center gap-1`,children:[(0,K.jsx)(c,{variant:`ghost`,size:`icon-sm`,className:`-ml-2`,"aria-label":e.back.label,onClick:e.back.onClick,children:(0,K.jsx)(se,{className:`size-4`})}),(0,K.jsx)(`span`,{className:`font-heading max-w-48 min-w-0 truncate text-sm`,children:e.title})]})}export{ce as _,et as a,J as b,Pe as c,fe as d,de as f,Z as g,Y as h,dt as i,ye as l,he as m,pt as n,We as o,pe as p,ft as r,Fe as s,ct as t,ge as u,ue as v,q as x,le as y};
|