@ghostly-solutions/ui 0.3.11 → 1.0.1
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/chunk-dweaczp3.js +11 -0
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/navbar/navbar.d.ts +1 -1
- package/dist/contracts/component-contracts.d.ts +75 -0
- package/dist/contracts/component-contracts.d.ts.map +1 -0
- package/dist/contracts/events.d.ts +14 -0
- package/dist/contracts/events.d.ts.map +1 -0
- package/dist/contracts/hotkeys.d.ts +108 -0
- package/dist/contracts/hotkeys.d.ts.map +1 -0
- package/dist/contracts/index.d.ts +6 -0
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/contracts/primitives.d.ts +72 -0
- package/dist/contracts/primitives.d.ts.map +1 -0
- package/dist/contracts/theme.d.ts +24 -0
- package/dist/contracts/theme.d.ts.map +1 -0
- package/dist/hooks/use-media-query.d.ts.map +1 -1
- package/dist/hooks/use-platform.d.ts.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/lib/density.d.ts +3 -3
- package/dist/lib/density.d.ts.map +1 -1
- package/dist/lib/hotkey.d.ts +2 -88
- package/dist/lib/hotkey.d.ts.map +1 -1
- package/dist/lib/platform.d.ts +2 -1
- package/dist/lib/platform.d.ts.map +1 -1
- package/dist/lib/theme/constants.d.ts +3 -2
- package/dist/lib/theme/constants.d.ts.map +1 -1
- package/dist/lib/theme/system.d.ts.map +1 -1
- package/dist/lib/types.d.ts +1 -36
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/server.d.ts +4 -2
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/styles/themes/base.css +1 -1
- package/dist/styles/themes/ghost-guard.css +1 -1
- package/dist/styles/themes/ghostly-solutions.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-2ke0h0a1.js +0 -11
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{A as of,B as Va,C as Fa,D as Qn,E as Oa,F as af,G as nf,H as Ia,I as sf,J as _a,a,b as bn,c as hT,d as PT,e as nn,f as sn,g as Zo,h as Ta,i as xT,j as no,k as CT,l as zT,m as ut,n as Yu,o as Xu,p as Zu,q as qu,r as Ju,s as Qu,t as Eu,u as ju,v as Kr,w as ct,x as ef,y as tf,z as rf}from"./chunk-2ke0h0a1.js";import{cva as cR}from"class-variance-authority";import*as at from"@radix-ui/react-accordion";import{cva as Ya}from"class-variance-authority";import{ChevronDown as gf}from"lucide-react";import{createContext as yf,forwardRef as Ho,useContext as ri}from"react";import{createContext as cf,useContext as ti}from"react";import{jsxDEV as ff}from"react/jsx-dev-runtime";var Mo="md",Ka=cf(Mo),Lo=({density:e,children:t})=>{return ff(Ka.Provider,{value:e,children:t},void 0,!1,void 0,this)};Lo.displayName="DensityProvider";var uf=()=>{return ti(Ka)};function c(e){let t=ti(Ka);if(e!==void 0)return e;return t}import{jsxDEV as Pt}from"react/jsx-dev-runtime";var Re={sm:"sm",md:"md",lg:"lg"},Xa=yf(Re.md),oi=Ya("border-b border-border"),ai=Ya("gs-interactive flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[Re.sm]:"py-3 text-xs [&>svg]:size-3.5",[Re.md]:"py-4 text-sm [&>svg]:size-4",[Re.lg]:"py-5 text-base [&>svg]:size-5"}},defaultVariants:{size:Re.md}}),ni=Ya("gs-accordion-content overflow-hidden",{variants:{size:{[Re.sm]:"text-xs",[Re.md]:"text-sm",[Re.lg]:"text-base"}},defaultVariants:{size:Re.md}}),vf={[Re.sm]:"pt-0 pb-3",[Re.md]:"pt-0 pb-4",[Re.lg]:"pt-0 pb-5"},ii=Ho(({size:e=Re.md,...t},r)=>{let o=c(e)??Re.md;return Pt(Xa.Provider,{value:o,children:Pt(at.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ii.displayName="Accordion";var si=Ho(({className:e,...t},r)=>Pt(at.Item,{ref:r,className:a(oi(),e),...t},void 0,!1,void 0,this));si.displayName="AccordionItem";var li=Ho(({className:e,children:t,...r},o)=>{let n=ri(Xa);return Pt(at.Header,{className:"flex",children:Pt(at.Trigger,{ref:o,className:a(ai({size:n}),e),...r,children:[t,Pt(gf,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});li.displayName="AccordionTrigger";var mi=Ho(({className:e,children:t,...r},o)=>{let n=ri(Xa);return Pt(at.Content,{ref:o,className:a(ni({size:n}),e),...r,children:Pt("div",{className:vf[n],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});mi.displayName="AccordionContent";import{cva as Za}from"class-variance-authority";import{TriangleAlert as bf,CircleCheck as Tf,Info as hf,CircleAlert as Pf}from"lucide-react";import{forwardRef as qa}from"react";import{jsxDEV as Ja}from"react/jsx-dev-runtime";var pr={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Yr={sm:"sm",md:"md",lg:"lg",xl:"xl"},di=Za("relative w-full rounded-[var(--radius)] border [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{[pr.default]:"bg-background text-foreground",[pr.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[pr.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[pr.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[pr.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[Yr.sm]:"p-3 text-xs [&>svg]:top-3 [&>svg]:left-3 [&>svg~*]:pl-6",[Yr.md]:"p-4 text-sm",[Yr.lg]:"p-5 text-sm",[Yr.xl]:"p-6 text-base [&>svg]:top-6 [&>svg]:left-6 [&>svg~*]:pl-8"}},defaultVariants:{variant:pr.default,size:Yr.md}}),pi=Za("mb-1 font-medium leading-none tracking-tight"),ci=Za("text-sm [&_p]:leading-relaxed"),ui=qa(({className:e,variant:t,size:r,...o},n)=>{let i=c(r);return Ja("div",{ref:n,role:"alert",className:a(di({variant:t,size:i}),e),...o},void 0,!1,void 0,this)});ui.displayName="Alert";var fi=qa(({className:e,...t},r)=>Ja("h5",{ref:r,className:a(pi(),e),...t},void 0,!1,void 0,this));fi.displayName="AlertTitle";var gi=qa(({className:e,...t},r)=>Ja("div",{ref:r,className:a(ci(),e),...t},void 0,!1,void 0,this));gi.displayName="AlertDescription";import*as he from"@radix-ui/react-alert-dialog";import{cva as Ci}from"class-variance-authority";import{forwardRef as fr}from"react";import{Slot as yi}from"@radix-ui/react-slot";import{cva as Ea}from"class-variance-authority";import{forwardRef as ko}from"react";import{forwardRef as xf}from"react";import{jsxDEV as Qa}from"react/jsx-dev-runtime";var cr={sm:"sm",md:"md",lg:"lg",xl:"xl"},Cf={[cr.sm]:"h-4 w-4",[cr.md]:"h-5 w-5",[cr.lg]:"h-6 w-6",[cr.xl]:"h-8 w-8"},xt=xf(({className:e,size:t=cr.md,label:r="Loading",...o},n)=>{let i=c(t);return Qa("span",{ref:n,className:a("inline-flex items-center justify-center",e),role:"status","aria-label":r,...o,children:[Qa("span",{className:a("animate-spin rounded-full border-2 border-current border-r-transparent",Cf[i])},void 0,!1,void 0,this),Qa("span",{className:"sr-only",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});xt.displayName="Spinner";import{jsxDEV as gt}from"react/jsx-dev-runtime";var ft={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},Ve={sm:"sm",md:"md",lg:"lg",xl:"xl",icon:"icon",iconSm:"icon-sm",iconLg:"icon-lg"},Ct={default:"default",success:"success",warning:"warning",error:"error",info:"info"},ur={sm:"sm",md:"md",lg:"lg"},zf="Loading",Sf="button",Xr=Ea("gs-interactive relative inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--radius)] border border-transparent font-semibold outline-none focus-visible:border-primary disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{variant:{[ft.primary]:"border-primary bg-primary text-primary-foreground enabled:hover:bg-primary/90",[ft.secondary]:"border-secondary bg-secondary text-secondary-foreground enabled:hover:bg-secondary/90",[ft.neutral]:"border-border bg-muted text-foreground enabled:hover:bg-muted/90",[ft.outline]:"border-border bg-background text-foreground enabled:hover:border-primary enabled:hover:bg-muted/50",[ft.ghost]:"border-transparent bg-transparent text-foreground enabled:hover:bg-muted/70",[ft.danger]:"border-destructive bg-destructive text-destructive-foreground enabled:hover:bg-destructive/90"},size:{[Ve.sm]:"h-8 px-2.5 text-xs",[Ve.md]:"h-10 px-4 text-sm",[Ve.lg]:"h-11 px-5 text-sm",[Ve.xl]:"h-12 px-6 text-base",[Ve.icon]:"h-10 w-10 p-0",[Ve.iconSm]:"h-9 w-9 p-0",[Ve.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:ft.primary,size:Ve.md}}),vi=Ea("shrink-0",{variants:{size:{[ur.sm]:"size-3",[ur.md]:"size-4",[ur.lg]:"size-4.5"}},defaultVariants:{size:ur.md}}),bi=Ea("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[10px] leading-none",{variants:{tone:{[Ct.default]:"border-border/70 bg-background/75 text-muted-foreground",[Ct.success]:"border-success/35 bg-success/12 text-success",[Ct.warning]:"border-warning/35 bg-warning/12 text-warning",[Ct.error]:"border-destructive/35 bg-destructive/12 text-destructive",[Ct.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:Ct.default}});function Nf(e){return e===Ve.icon||e===Ve.iconSm||e===Ve.iconLg}function wf(e,t,r){return e&&t?-1:r}function Rf(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function Mf(){if(typeof process>"u")return!0;return!0}var Ti=ko(({className:e,size:t=ur.md,...r},o)=>gt(yi,{ref:o,className:a(vi({size:t}),e),...r},void 0,!1,void 0,this));Ti.displayName="ButtonIcon";var hi=ko(({className:e,...t},r)=>gt("span",{ref:r,className:a("truncate",e),...t},void 0,!1,void 0,this));hi.displayName="ButtonLabel";var Pi=ko(({className:e,tone:t=Ct.default,...r},o)=>gt("span",{ref:o,className:a(bi({tone:t}),e),...r},void 0,!1,void 0,this));Pi.displayName="ButtonBadge";var xi=ko(({className:e,variant:t=ft.primary,size:r=Ve.md,asChild:o=!1,loading:n=!1,loadingText:i=zf,fullWidth:s=!1,leadingIcon:l,trailingIcon:d,disabled:m,children:f,type:u,tabIndex:h,onClick:p,...y},S)=>{let M=c(r),w=M??r,T=Rf(y);if(Mf()&&Nf(w)&&!T)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let v=Boolean(m||n),C=a(Xr({variant:t,size:M}),s&&"w-full",e);if(o)return gt(yi,{ref:S,className:C,"aria-disabled":v||void 0,"aria-busy":n||void 0,tabIndex:wf(!0,v,h),onClick:v?(B)=>{B.preventDefault()}:p,...y,children:f},void 0,!1,void 0,this);return gt("button",{ref:S,className:C,disabled:v,"aria-disabled":v,"aria-busy":n,tabIndex:h,type:u??Sf,onClick:n?void 0:p,...y,children:[gt("span",{className:a("absolute inset-0 flex items-center justify-center transition-opacity duration-150",n?"opacity-100":"opacity-0"),"aria-hidden":"true",children:gt(xt,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),n&>("span",{className:"sr-only",children:i},void 0,!1,void 0,this),gt("span",{className:a("inline-flex items-center justify-center gap-2 transition-opacity duration-150",n&&"opacity-0"),children:[l,f,d]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});xi.displayName="Button";import{jsxDEV as nt}from"react/jsx-dev-runtime";var zt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},zi=Ci("gs-dialog-overlay fixed inset-0 z-50 bg-black/50"),Si=Ci("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 border border-border bg-background p-6 text-foreground shadow-[var(--shadow-xl)] rounded-[var(--radius)]",{variants:{size:{[zt.sm]:"max-w-sm",[zt.md]:"max-w-md",[zt.lg]:"max-w-lg",[zt.xl]:"max-w-xl",[zt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:zt.md}}),Lf=he.Root,Hf=he.Trigger,Ni=he.Portal,ja=fr(({className:e,...t},r)=>nt(he.Overlay,{ref:r,className:a(zi(),e),...t},void 0,!1,void 0,this));ja.displayName="AlertDialogOverlay";var wi=fr(({className:e,size:t=zt.md,...r},o)=>{let n=c(t);return nt(Ni,{children:[nt(ja,{},void 0,!1,void 0,this),nt(he.Content,{ref:o,className:a(Si({size:n}),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});wi.displayName="AlertDialogContent";var Ri=({className:e,...t})=>nt("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Ri.displayName="AlertDialogHeader";var Mi=({className:e,...t})=>nt("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);Mi.displayName="AlertDialogFooter";var Li=fr(({className:e,...t},r)=>nt(he.Title,{ref:r,className:a("text-lg font-semibold",e),...t},void 0,!1,void 0,this));Li.displayName="AlertDialogTitle";var Hi=fr(({className:e,...t},r)=>nt(he.Description,{ref:r,className:a("text-sm text-muted-foreground",e),...t},void 0,!1,void 0,this));Hi.displayName="AlertDialogDescription";var ki=fr(({className:e,...t},r)=>nt(he.Action,{ref:r,className:a(Xr(),e),...t},void 0,!1,void 0,this));ki.displayName="AlertDialogAction";var Ai=fr(({className:e,...t},r)=>nt(he.Cancel,{ref:r,className:a(Xr({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));Ai.displayName="AlertDialogCancel";import*as Ii from"@radix-ui/react-aspect-ratio";var kf=Ii.Root;import*as yr from"@radix-ui/react-avatar";import{cva as Af}from"class-variance-authority";import{forwardRef as Ao}from"react";import{jsxDEV as gr}from"react/jsx-dev-runtime";var De={sm:"sm",md:"md",lg:"lg",xl:"xl"},Vi=Af("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{[De.sm]:"h-7 w-7 text-xs",[De.md]:"h-10 w-10 text-sm",[De.lg]:"h-12 w-12 text-base",[De.xl]:"h-16 w-16 text-lg"}},defaultVariants:{size:De.md}}),en=Ao(({className:e,size:t=De.md,...r},o)=>{let n=c(t);return gr(yr.Root,{ref:o,className:a(Vi({size:n}),e),...r},void 0,!1,void 0,this)});en.displayName="Avatar";var Fi=Ao(({className:e,...t},r)=>gr(yr.Image,{ref:r,className:a("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));Fi.displayName="AvatarImage";var tn=Ao(({className:e,...t},r)=>gr(yr.Fallback,{ref:r,className:a("flex h-full w-full items-center justify-center rounded-full bg-muted font-medium text-muted-foreground",e),...t},void 0,!1,void 0,this));tn.displayName="AvatarFallback";var If={[De.sm]:"-space-x-2",[De.md]:"-space-x-3",[De.lg]:"-space-x-4",[De.xl]:"-space-x-5"},Oi=Ao(({className:e,children:t,max:r,size:o=De.md,...n},i)=>{let s=c(o),l=Array.isArray(t)?t:[t],d=r?l.slice(0,r):l,m=r?Math.max(0,l.length-r):0;return gr("div",{ref:i,className:a("flex items-center",If[s],e),...n,children:[d,m>0&&gr(en,{size:s,className:"border-2 border-background",children:gr(tn,{className:"text-xs",children:["+",m]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Oi.displayName="AvatarGroup";import{Slot as Vf}from"@radix-ui/react-slot";import{cva as Ff}from"class-variance-authority";import{X as Of}from"lucide-react";import{forwardRef as Bf}from"react";import{jsxDEV as Zr}from"react/jsx-dev-runtime";var Ce={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},St={sm:"sm",md:"md",lg:"lg",dot:"dot"},Bi=Ff("inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium",{variants:{variant:{[Ce.default]:"border-border bg-muted text-muted-foreground",[Ce.primary]:"border-primary/30 bg-primary/10 text-primary",[Ce.success]:"border-success/30 bg-success/10 text-success",[Ce.warning]:"border-warning/30 bg-warning/10 text-warning",[Ce.error]:"border-destructive/30 bg-destructive/10 text-destructive",[Ce.info]:"border-info/30 bg-info/10 text-info",[Ce.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[St.sm]:"h-5 px-2 text-[10px]",[St.md]:"h-6 px-2.5 text-xs",[St.lg]:"h-7 px-3 text-sm",[St.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:Ce.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:Ce.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:Ce.success,className:"border-success bg-success text-background"},{solid:!0,variant:Ce.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:Ce.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:Ce.info,className:"border-info bg-info text-background"},{solid:!0,variant:Ce.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:Ce.default,solid:!1,size:St.md}}),Io=Bf(({className:e,variant:t=Ce.default,size:r=St.md,solid:o=!1,pulse:n=!1,removable:i=!1,onRemove:s,onClick:l,children:d,asChild:m=!1,...f},u)=>{let h=c(r),p=Boolean(l),y=h===St.dot,S=(T)=>{T.stopPropagation(),s?.(T)},M=a(Bi({variant:t,solid:o,size:h}),p&&"cursor-pointer",n&&"animate-pulse",i&&!y&&"pr-1",e),w=i&&!y&&Zr("button",{type:"button",className:"gs-interactive ml-0.5 inline-flex size-4 items-center justify-center rounded-full text-current opacity-60 hover:opacity-100",onClick:S,"aria-label":"Remove",tabIndex:-1,children:Zr(Of,{className:"size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(m)return Zr(Vf,{ref:u,className:M,onClick:l,...f,children:d},void 0,!1,void 0,this);if(p)return Zr("button",{ref:u,className:M,onClick:l,type:"button",...f,children:[!y&&d,w]},void 0,!0,void 0,this);return Zr("span",{ref:u,className:M,...f,children:[!y&&d,w]},void 0,!0,void 0,this)});Io.displayName="Badge";import{Children as Df,cloneElement as _f,forwardRef as Gf,isValidElement as Wf,useCallback as Di,useEffect as $f,useLayoutEffect as Uf,useRef as Kf,useState as Yf}from"react";import{jsxDEV as _i}from"react/jsx-dev-runtime";function Xf(e){let t=[];return Df.forEach(e,(r,o)=>{if(!Wf(r))return;let n=r.key??o;t.push({key:n,element:r,isLeaving:!1})}),t}function Zf(e,t){let r=new Set(t.map((i)=>i.key)),o=new Set(e.map((i)=>i.key)),n=[];for(let i of e)if(r.has(i.key)){let s=t.find((l)=>l.key===i.key);if(s)n.push({...s,isLeaving:!1})}else n.push({...i,isLeaving:!0});for(let i of t)if(!o.has(i.key))n.push(i);return n}function qf(e,t,r){if(r.current)return r.current=!1,t;return Zf(e,t)}var Jf=typeof window<"u"?Uf:$f,Gi=Gf(({children:e,className:t,onRemove:r,gap:o="sm"},n)=>{let[i,s]=Yf([]),l=Kf(!0);Jf(()=>{let u=Xf(e);s((h)=>qf(h,u,l))},[e]);let d=Di((u)=>{s((h)=>h.filter((p)=>p.key!==u))},[]),m=Di((u)=>{r?.(u)},[r]),f={sm:"gap-1",md:"gap-2",lg:"gap-3"}[o];return _i("div",{ref:n,className:a("inline-flex flex-wrap items-center",f,t),children:i.map((u)=>{let h={};if(u.element.props.removable&&r)h.onRemove=()=>{m(u.key)};let p=a("inline-flex transition-all duration-200",u.isLeaving&&"pointer-events-none scale-95 opacity-0");return _i("span",{className:p,onTransitionEnd:u.isLeaving?()=>d(u.key):void 0,children:_f(u.element,h)},u.key,!1,void 0,this)})},void 0,!1,void 0,this)});Gi.displayName="BadgeGroup";import{Slot as Qf}from"@radix-ui/react-slot";import{cva as vr}from"class-variance-authority";import{ChevronRight as Ef,MoreHorizontal as jf}from"lucide-react";import{createContext as eg,forwardRef as qr,useContext as rn}from"react";import{jsxDEV as Ze}from"react/jsx-dev-runtime";var ge={sm:"sm",md:"md",lg:"lg"},Vo=eg(ge.md),Wi=vr("flex flex-wrap items-center break-words text-muted-foreground",{variants:{size:{[ge.sm]:"gap-1 text-xs",[ge.md]:"gap-1.5 text-sm sm:gap-2.5",[ge.lg]:"gap-2 text-base sm:gap-3"}},defaultVariants:{size:ge.md}}),$i=vr("inline-flex items-center gap-1.5"),Ui=vr("gs-interactive hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),Ki=vr("font-normal text-foreground"),Yi=vr("",{variants:{size:{[ge.sm]:"[&>svg]:size-3",[ge.md]:"[&>svg]:size-3.5",[ge.lg]:"[&>svg]:size-4"}},defaultVariants:{size:ge.md}}),Xi=vr("flex items-center justify-center",{variants:{size:{[ge.sm]:"h-7 w-7 [&>svg]:size-3.5",[ge.md]:"h-9 w-9 [&>svg]:size-4",[ge.lg]:"h-10 w-10 [&>svg]:size-5"}},defaultVariants:{size:ge.md}}),Zi=qr(({size:e=ge.md,...t},r)=>{let o=c(e)??ge.md;return Ze(Vo.Provider,{value:o,children:Ze("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Zi.displayName="Breadcrumb";var qi=qr(({className:e,...t},r)=>{let o=rn(Vo);return Ze("ol",{ref:r,className:a(Wi({size:o}),e),...t},void 0,!1,void 0,this)});qi.displayName="BreadcrumbList";var Ji=qr(({className:e,...t},r)=>Ze("li",{ref:r,className:a($i(),e),...t},void 0,!1,void 0,this));Ji.displayName="BreadcrumbItem";var Qi=qr(({asChild:e,className:t,...r},o)=>{return Ze(e?Qf:"a",{ref:o,className:a(Ui(),t),...r},void 0,!1,void 0,this)});Qi.displayName="BreadcrumbLink";var Ei=qr(({className:e,...t},r)=>Ze("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:a(Ki(),e),...t},void 0,!1,void 0,this));Ei.displayName="BreadcrumbPage";var ji=({children:e,className:t,...r})=>{let o=rn(Vo),n={[ge.sm]:"size-3",[ge.md]:"size-3.5",[ge.lg]:"size-4"};return Ze("li",{role:"presentation","aria-hidden":"true",className:a(Yi({size:o}),t),...r,children:e??Ze(Ef,{className:n[o]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};ji.displayName="BreadcrumbSeparator";var es=({className:e,...t})=>{let r=rn(Vo);return Ze("span",{role:"presentation","aria-hidden":"true",className:a(Xi({size:r}),e),...t,children:[Ze(jf,{},void 0,!1,void 0,this),Ze("span",{className:"sr-only",children:"More"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};es.displayName="BreadcrumbEllipsis";import{cva as tg}from"class-variance-authority";import{forwardRef as rg}from"react";import{jsxDEV as og}from"react/jsx-dev-runtime";var Jr={horizontal:"horizontal",vertical:"vertical"},ts=tg("inline-flex items-stretch",{variants:{orientation:{[Jr.horizontal]:"flex-row",[Jr.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:Jr.horizontal,attached:!1}}),rs=rg(({className:e,orientation:t=Jr.horizontal,attached:r=!1,fullWidth:o=!1,...n},i)=>og("div",{ref:i,className:a(ts({orientation:t,attached:r}),o&&"w-full",e),...n},void 0,!1,void 0,this));rs.displayName="ButtonGroup";import{cva as Nt}from"class-variance-authority";import{forwardRef as ag,useCallback as br,useEffect as ng,useMemo as os,useState as as}from"react";import{jsxDEV as Fe}from"react/jsx-dev-runtime";var D={sm:"sm",md:"md",lg:"lg",xl:"xl"},is=Nt("flex flex-col rounded-xl border border-border bg-card/95 shadow-[var(--shadow-sm)] transition-[color,background-color,border-color,box-shadow] duration-150",{variants:{size:{[D.sm]:"p-3 text-sm",[D.md]:"p-4 text-sm",[D.lg]:"p-5 text-base",[D.xl]:"p-6 text-base"}},defaultVariants:{size:D.md}}),ss=Nt("mb-3 flex items-center justify-between",{variants:{size:{[D.sm]:"gap-1",[D.md]:"gap-2",[D.lg]:"gap-3",[D.xl]:"gap-3"}},defaultVariants:{size:D.md}}),ls=Nt("font-semibold text-foreground",{variants:{size:{[D.sm]:"text-sm",[D.md]:"text-base",[D.lg]:"text-lg",[D.xl]:"text-xl"}},defaultVariants:{size:D.md}}),on=Nt(["inline-flex items-center justify-center rounded-md border border-transparent","text-muted-foreground hover:border-border/70 hover:bg-accent/60 hover:text-foreground","active:scale-[0.98]","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50"],{variants:{size:{[D.sm]:"size-7",[D.md]:"size-8",[D.lg]:"size-10",[D.xl]:"size-10"}},defaultVariants:{size:D.md}}),ms=Nt("grid grid-cols-7",{variants:{size:{[D.sm]:"gap-0.5",[D.md]:"gap-1",[D.lg]:"gap-1.5",[D.xl]:"gap-2"}},defaultVariants:{size:D.md}}),ds=Nt("text-center font-semibold uppercase tracking-wide text-muted-foreground",{variants:{size:{[D.sm]:"py-1 text-[10px]",[D.md]:"py-1.5 text-xs",[D.lg]:"py-2 text-sm",[D.xl]:"py-2 text-sm"}},defaultVariants:{size:D.md}}),ps=Nt(["inline-flex items-center justify-center rounded-md border border-transparent font-medium","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1","active:scale-[0.98]"],{variants:{size:{[D.sm]:"size-7 text-xs",[D.md]:"size-9 text-sm",[D.lg]:"size-10 text-base",[D.xl]:"size-11 text-base"},state:{default:"cursor-pointer text-foreground hover:border-border/70 hover:bg-accent/60",selected:"border-primary/35 bg-primary text-primary-foreground shadow-[var(--glow-brand-sm)] hover:bg-primary/90",today:"border-primary/30 bg-primary/10 text-primary",disabled:"cursor-not-allowed border-transparent bg-muted/40 text-muted-foreground/60",outside:"",rangeStart:"cursor-pointer rounded-r-none border-primary/35 bg-primary text-primary-foreground hover:bg-primary/90",rangeEnd:"cursor-pointer rounded-l-none border-primary/35 bg-primary text-primary-foreground hover:bg-primary/90",range:"cursor-pointer rounded-none border-transparent bg-primary/12 text-primary hover:bg-primary/20"}},defaultVariants:{size:D.md,state:"default"}}),ig=Nt("rounded-md border border-transparent",{variants:{size:{[D.sm]:"size-7",[D.md]:"size-9",[D.lg]:"size-10",[D.xl]:"size-11"}},defaultVariants:{size:D.md}}),ns=["Su","Mo","Tu","We","Th","Fr","Sa"],sg=["January","February","March","April","May","June","July","August","September","October","November","December"],yt=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Tr=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},cs=ag(({className:e,size:t="md",cellSize:r,mode:o="single",value:n,defaultValue:i,onChange:s,rangeValue:l,onRangeChange:d,viewMonth:m,onViewMonthChange:f,minDate:u,maxDate:h,disabledDates:p=[],weekStartsOn:y=1,highlightToday:S=!0,...M},w)=>{let T=c(t)??D.md,v=c(r??T)??T,[C,B]=as(n??i??null),[R,A]=as(n??i??new Date),z=m??R,I=br((g)=>{if(f){let b=typeof g==="function"?g(m??R):g;f(b)}else A((b)=>{return typeof g==="function"?g(b):g})},[m,R,f]),K=n!==void 0?n:C,O=u?yt(u):null,U=h?yt(h):null;ng(()=>{if(n!==void 0){if(B(n??null),n&&!m)A(n)}},[n,m]);let N=br((g,b)=>{return(new Date(g,b,1).getDay()-y+7)%7},[y]),V=os(()=>{let g=z.getFullYear(),b=z.getMonth(),L=N(g,b),re=new Date(g,b+1,0).getDate(),ee=[];for(let te=0;te<L;te+=1)ee.push({key:`leading-${g}-${b}-${te}`,date:null});for(let te=1;te<=re;te+=1)ee.push({key:`day-${g}-${b}-${te}`,date:new Date(g,b,te)});let oe=(7-ee.length%7)%7;for(let te=0;te<oe;te+=1)ee.push({key:`trailing-${g}-${b}-${te}`,date:null});return ee},[z,N]),P=br((g)=>{let b=yt(g);if(O&&b<O)return!0;if(U&&b>U)return!0;return p.some((L)=>Tr(b,yt(L)))},[O,U,p]),F=br((g)=>{if(P(g))return"disabled";if(o==="range"&&l){let{from:b,to:L}=l;if(b&&Tr(g,b))return"rangeStart";if(L&&Tr(g,L))return"rangeEnd";if(b&&L){let re=yt(g),ee=yt(b),oe=yt(L);if(re>ee&&re<oe)return"range"}}if(o==="single"&&K&&Tr(g,K))return"selected";if(S&&Tr(g,new Date))return"today";return"default"},[K,S,P,o,l]),j=br((g)=>{if(P(g))return;let b=new Date(g);if(o==="range"){if(!l?.from||l.from&&l.to)d?.({from:b,to:void 0});else{let L=yt(l.from);if(yt(b)<L)d?.({from:b,to:l.from});else d?.({from:l.from,to:b})}return}if(n===void 0)B(b);s?.(b)},[P,o,s,d,l,n]),H=br((g)=>{I((b)=>{let L=new Date(b);return L.setMonth(L.getMonth()+g),L})},[I]),Y=os(()=>{return[...ns.slice(y),...ns.slice(0,y)]},[y]);return Fe("div",{ref:w,className:a(is({size:T}),e),...M,children:[Fe("div",{className:a(ss({size:T})),children:[Fe("button",{type:"button",onClick:()=>H(-1),className:a(on({size:T})),"aria-label":"Previous month",children:Fe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Fe("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Fe("span",{className:a(ls({size:T})),children:[sg[z.getMonth()]," ",z.getFullYear()]},void 0,!0,void 0,this),Fe("button",{type:"button",onClick:()=>H(1),className:a(on({size:T})),"aria-label":"Next month",children:Fe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Fe("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Fe("div",{className:a(ms({size:T})),children:[Y.map((g)=>Fe("div",{className:a(ds({size:v})),children:g},g,!1,void 0,this)),V.map((g)=>{if(!g.date)return Fe("div",{"aria-hidden":"true",className:a(ig({size:v}))},g.key,!1,void 0,this);let b=g.date,L=F(b);return Fe("button",{type:"button",onClick:()=>j(b),disabled:L==="disabled",className:a(ps({size:v,state:L})),children:b.getDate()},g.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});cs.displayName="Calendar";import{Slot as hr}from"@radix-ui/react-slot";import{cva as lg}from"class-variance-authority";import{forwardRef as Pr}from"react";import{jsxDEV as xr}from"react/jsx-dev-runtime";var Fo={default:"default",muted:"muted",danger:"danger"},us=lg("gs-interactive relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[Fo.default]:"border-border",[Fo.muted]:"border-border/70 bg-muted/40",[Fo.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:Fo.default}}),fs=Pr(({asChild:e=!1,className:t,variant:r,...o},n)=>{return xr(e?hr:"div",{ref:n,className:a(us({variant:r}),t),...o},void 0,!1,void 0,this)});fs.displayName="Card";var gs=Pr(({asChild:e=!1,className:t,...r},o)=>{return xr(e?hr:"div",{ref:o,className:a("flex flex-col gap-1.5 border-b border-border/50 p-4",t),...r},void 0,!1,void 0,this)});gs.displayName="CardHeader";var ys=Pr(({asChild:e=!1,className:t,...r},o)=>{return xr(e?hr:"div",{ref:o,className:a("p-4",t),...r},void 0,!1,void 0,this)});ys.displayName="CardContent";var vs=Pr(({asChild:e=!1,className:t,...r},o)=>{return xr(e?hr:"div",{ref:o,className:a("flex items-center border-t border-border/50 p-4",t),...r},void 0,!1,void 0,this)});vs.displayName="CardFooter";var bs=Pr(({asChild:e=!1,className:t,...r},o)=>{return xr(e?hr:"h3",{ref:o,className:a("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});bs.displayName="CardTitle";var Ts=Pr(({asChild:e=!1,className:t,...r},o)=>{return xr(e?hr:"p",{ref:o,className:a("text-sm text-muted-foreground",t),...r},void 0,!1,void 0,this)});Ts.displayName="CardDescription";import*as Bo from"@radix-ui/react-checkbox";import{cva as mg}from"class-variance-authority";import{Check as dg,Minus as pg}from"lucide-react";import{forwardRef as cg}from"react";import{jsxDEV as Oo}from"react/jsx-dev-runtime";var qe={sm:"sm",md:"md",lg:"lg",xl:"xl"},Cr={default:"default",error:"error",success:"success"},Ps=mg("gs-interactive inline-flex shrink-0 items-center justify-center rounded border border-border bg-background text-foreground enabled:active:scale-[0.94] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{size:{[qe.sm]:"h-4 w-4",[qe.md]:"h-5 w-5",[qe.lg]:"h-6 w-6",[qe.xl]:"h-7 w-7"},status:{[Cr.default]:"enabled:hover:border-primary/70",[Cr.error]:"enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:bg-destructive data-[state=checked]:text-destructive-foreground data-[state=indeterminate]:border-destructive data-[state=indeterminate]:bg-destructive data-[state=indeterminate]:text-destructive-foreground",[Cr.success]:"enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:bg-success data-[state=checked]:text-success-foreground data-[state=indeterminate]:border-success data-[state=indeterminate]:bg-success data-[state=indeterminate]:text-success-foreground"}},defaultVariants:{size:qe.md,status:Cr.default}}),hs={[qe.sm]:"size-3.5",[qe.md]:"size-3.5",[qe.lg]:"size-4",[qe.xl]:"size-5"},xs=cg(({className:e,size:t=qe.md,status:r=Cr.default,checked:o,disabled:n,...i},s)=>{let l=c(t);return Oo(Bo.Root,{ref:s,checked:o,disabled:n,className:a(Ps({size:l,status:r}),e),...i,children:Oo(Bo.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:o==="indeterminate"?Oo(pg,{className:hs[l]},void 0,!1,void 0,this):Oo(dg,{className:hs[l]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});xs.displayName="Checkbox";import{cva as wt}from"class-variance-authority";import{forwardRef as ug,useCallback as fg,useState as gg}from"react";import{jsxDEV as Me,Fragment as Cs}from"react/jsx-dev-runtime";var J={sm:"sm",md:"md",lg:"lg"},an={default:"default",ghost:"ghost"},zs=wt("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[J.sm]:"text-xs",[J.md]:"text-sm",[J.lg]:"text-base"},variant:{[an.default]:"bg-muted border border-border",[an.ghost]:"bg-transparent"}},defaultVariants:{size:J.md,variant:an.default}}),Ss=wt("flex items-center justify-between border-b border-border bg-muted",{variants:{size:{[J.sm]:"px-2.5 py-1.5 text-xs",[J.md]:"px-4 py-2 text-sm",[J.lg]:"px-5 py-2.5 text-base"}},defaultVariants:{size:J.md}}),Ns=wt("text-muted-foreground font-medium",{variants:{size:{[J.sm]:"text-[11px]",[J.md]:"text-xs",[J.lg]:"text-sm"}},defaultVariants:{size:J.md}}),ws=wt(["inline-flex items-center gap-1.5 rounded-md font-medium","text-muted-foreground hover:text-foreground hover:bg-muted","transition-all duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary"],{variants:{size:{[J.sm]:"px-2 py-1 text-xs",[J.md]:"px-2.5 py-1 text-xs",[J.lg]:"px-3 py-1.5 text-sm"},copied:{true:"text-success",false:""}},defaultVariants:{size:J.md,copied:!1}}),Rs=wt("overflow-x-auto",{variants:{size:{[J.sm]:"p-2.5",[J.md]:"p-4",[J.lg]:"p-5"}},defaultVariants:{size:J.md}}),Ms=wt("text-foreground",{variants:{size:{[J.sm]:"",[J.md]:"",[J.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:J.md,showLineNumbers:!1}}),Ls=wt("block",{variants:{size:{[J.sm]:"min-h-[1.25rem]",[J.md]:"min-h-[1.5rem]",[J.lg]:"min-h-[1.75rem]"},highlighted:{true:"bg-primary/10 -mx-4 px-4",false:""}},defaultVariants:{size:J.md,highlighted:!1}}),Hs=wt("inline-block text-right text-muted-foreground select-none",{variants:{size:{[J.sm]:"w-6 mr-2 text-[10px]",[J.md]:"w-8 mr-4 text-xs",[J.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:J.md}}),ks=ug(({className:e,code:t,language:r,showLineNumbers:o=!1,highlightedLines:n=[],showCopy:i=!0,size:s="md",variant:l="default",onCopy:d,...m},f)=>{let u=c(s),[h,p]=gg(!1),y=fg(async()=>{try{await navigator.clipboard.writeText(t),p(!0),d?.(t),setTimeout(()=>p(!1),2000)}catch(w){}},[t,d]),S=t.split(`
|
|
3
|
-
`),M=new Set(n);return Me("div",{ref:f,className:a(zs({size:u,variant:l}),e),...m,children:[(r||i)&&Me("div",{className:a(Ss({size:u})),children:[Me("span",{className:a(Ns({size:u})),children:r},void 0,!1,void 0,this),i&&Me("button",{type:"button",onClick:y,className:a(ws({size:u,copied:
|
|
4
|
-
`]},`line-${String(T)}`,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});ks.displayName="CodeBlock";import*as zr from"@radix-ui/react-collapsible";import{cva as yg}from"class-variance-authority";import{forwardRef as vg}from"react";import{jsxDEV as hg}from"react/jsx-dev-runtime";var As=yg("gs-collapsible-content overflow-hidden"),bg=zr.Root,Tg=zr.CollapsibleTrigger,Is=vg(({className:e,...t},r)=>hg(zr.CollapsibleContent,{ref:r,className:a(As(),e),...t},void 0,!1,void 0,this));Is.displayName="CollapsibleContent";import*as Rt from"@radix-ui/react-dialog";import{cva as Je}from"class-variance-authority";import{createContext as Cg,forwardRef as it,useContext as zg,useState as Fs}from"react";import{useCallback as Pg,useEffect as xg,useRef as Vs}from"react";function Qr(e,t,r={}){let{enabled:o=!0,preventDefault:n=!0,stopPropagation:i=!1,target:s="global"}=r,l=Vs(t);l.current=t;let d=Vs([]),m=Array.isArray(e)?e:[e];d.current=m.map((u)=>({combo:u,def:nn(u)}));let f=Pg((u)=>{if(!o)return;for(let{combo:h,def:p}of d.current)if(sn(u,p)){if(n)u.preventDefault();if(i)u.stopPropagation();l.current(u,h);return}},[o,n,i]);xg(()=>{if(!o)return;let u=s==="global"?document:s.current;if(!u)return;return u.addEventListener("keydown",f),()=>{u.removeEventListener("keydown",f)}},[o,f,s])}import{jsxDEV as Pe}from"react/jsx-dev-runtime";var Os=Je(["fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-50","w-full max-w-lg","bg-background border border-border rounded-xl shadow-2xl","overflow-hidden","animate-in fade-in-0 zoom-in-95 duration-200","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95"],{variants:{size:{sm:"max-w-sm",md:"max-w-lg",lg:"max-w-2xl"}},defaultVariants:{size:"md"}}),Bs=Je(["fixed inset-0 z-50 bg-black/50 backdrop-blur-sm","animate-in fade-in-0 duration-200","data-[state=closed]:animate-out data-[state=closed]:fade-out-0"]),Ds=Je(["flex h-12 w-full bg-transparent px-4 py-3","text-base text-foreground placeholder:text-muted-foreground","border-b border-border","focus:outline-none","disabled:cursor-not-allowed disabled:opacity-50"]),_s=Je(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),Gs=Je(["py-6 text-center text-sm text-muted-foreground"]),Ws=Je(["overflow-hidden"]),$s=Je(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),Do={default:"default",danger:"danger"},Us=Je(["relative flex items-center gap-2 rounded-lg px-2 py-2","text-sm cursor-pointer select-none","outline-none transition-colors duration-150","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50"],{variants:{selected:{true:"bg-primary/10 text-primary",false:"hover:bg-background-subtle"},variant:{[Do.default]:"text-foreground",[Do.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{selected:!1,variant:Do.default}}),Ks=Je(["-mx-1 my-1 h-px bg-border"]),Ys=Je(["ml-auto text-xs tracking-widest text-muted-foreground"]),Xs=Je(["flex items-center justify-center py-6"]),Zs=Cg(null),ln=()=>{let e=zg(Zs);if(!e)throw Error("useCommand must be used within a Command");return e},mn=it(({className:e,children:t,loop:r=!0,...o},n)=>{let[i,s]=Fs(""),[l,d]=Fs(0);return Pe(Zs.Provider,{value:{search:i,setSearch:s,selectedIndex:l,setSelectedIndex:d},children:Pe("div",{ref:n,className:a("flex flex-col overflow-hidden rounded-xl bg-background",e),...o,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});mn.displayName="Command";var qs=it(({children:e,size:t,...r},o)=>{return Pe(Rt.Root,{...r,children:Pe(Rt.Portal,{children:[Pe(Rt.Overlay,{className:a(Bs())},void 0,!1,void 0,this),Pe(Rt.Content,{ref:o,className:a(Os({size:t})),children:Pe(mn,{children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});qs.displayName="CommandDialog";var Js=it(({className:e,icon:t,...r},o)=>{let{search:n,setSearch:i,setSelectedIndex:s}=ln();return Pe("div",{className:"flex items-center border-border border-b px-3",children:[t&&Pe("span",{className:"mr-2 shrink-0 text-muted-foreground",children:t},void 0,!1,void 0,this),Pe("input",{ref:o,value:n,onChange:(l)=>{i(l.target.value),s(0)},className:a(Ds(),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Js.displayName="CommandInput";var Qs=it(({className:e,children:t,...r},o)=>{return Pe("div",{ref:o,className:a(_s(),e),...r,children:t},void 0,!1,void 0,this)});Qs.displayName="CommandList";var Es=it(({className:e,children:t="No results found.",...r},o)=>{return Pe("div",{ref:o,className:a(Gs(),e),...r,children:t},void 0,!1,void 0,this)});Es.displayName="CommandEmpty";var js=it(({className:e,heading:t,children:r,...o},n)=>{return Pe("div",{ref:n,className:a(Ws(),e),...o,children:[t&&Pe("div",{className:a($s()),children:t},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});js.displayName="CommandGroup";var el=it(({className:e,disabled:t,onSelect:r,children:o,keywords:n,variant:i,...s},l)=>{let{search:d}=ln();if(!(()=>{if(!d)return!0;let f=d.toLowerCase();if((typeof o==="string"?o.toLowerCase():"").includes(f))return!0;if(n?.some((h)=>h.toLowerCase().includes(f)))return!0;return!1})())return null;return Pe("div",{ref:l,role:"option","aria-selected":!1,"aria-disabled":t,"data-disabled":t,onClick:()=>!t&&r?.(),onKeyDown:(f)=>{if(f.key==="Enter"&&!t)f.preventDefault(),r?.()},tabIndex:t?-1:0,className:a(Us({selected:!1,variant:i}),e),...s,children:o},void 0,!1,void 0,this)});el.displayName="CommandItem";var tl=it(({className:e,...t},r)=>{return Pe("div",{ref:r,className:a(Ks(),e),...t},void 0,!1,void 0,this)});tl.displayName="CommandSeparator";var rl=it(({className:e,children:t,...r},o)=>{return Pe("span",{ref:o,className:a(Ys(),e),...r,children:t},void 0,!1,void 0,this)});rl.displayName="CommandShortcut";var ol=it(({className:e,children:t,...r},o)=>{return Pe("div",{ref:o,className:a(Xs(),e),...r,children:t},void 0,!1,void 0,this)});ol.displayName="CommandLoading";var Sg=({key:e,modifier:t="meta",callback:r})=>{Qr(`${t}+${e}`,r)};import*as _ from"@radix-ui/react-context-menu";import{cva as $t}from"class-variance-authority";import{Check as Ng,ChevronRight as wg,Circle as Rg}from"lucide-react";import{createContext as Mg,forwardRef as Mt,useContext as Sr}from"react";import{jsxDEV as ye}from"react/jsx-dev-runtime";var Z={sm:"sm",md:"md",lg:"lg"},_o={default:"default",danger:"danger"},Ut=Mg(Z.md),dn=$t("z-50 min-w-[8rem] overflow-hidden rounded-[var(--radius)] border border-border/70 bg-popover p-1 text-popover-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-context-menu-content-transform-origin)]"),pn=$t("gs-interactive relative flex cursor-pointer select-none items-center rounded-md outline-none data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{size:{[Z.sm]:"h-6 gap-1.5 px-1.5 text-xs [&_svg]:size-3",[Z.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[Z.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[_o.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[_o.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:Z.md,variant:_o.default}}),al=$t("gs-interactive relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[Z.sm]:"h-6 pl-6 pr-1.5 text-xs",[Z.md]:"h-8 pl-8 pr-2 text-sm",[Z.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:Z.md}}),nl=$t("gs-interactive relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[Z.sm]:"h-6 pl-6 pr-1.5 text-xs",[Z.md]:"h-8 pl-8 pr-2 text-sm",[Z.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:Z.md}}),il=$t("font-semibold text-muted-foreground",{variants:{size:{[Z.sm]:"px-1.5 py-0.5 text-[10px]",[Z.md]:"px-2 py-1.5 text-xs",[Z.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:Z.md}}),sl=$t("-mx-1 my-1 h-px bg-border/50"),ll=$t("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[Z.sm]:"text-[10px]",[Z.md]:"text-xs",[Z.lg]:"text-xs"}},defaultVariants:{size:Z.md}}),ml={[Z.sm]:"absolute left-1.5 flex size-3 items-center justify-center",[Z.md]:"absolute left-2 flex size-3.5 items-center justify-center",[Z.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},Lg={[Z.sm]:"size-3",[Z.md]:"size-3.5",[Z.lg]:"size-4"},Hg={[Z.sm]:"size-1.5 fill-current",[Z.md]:"size-2 fill-current",[Z.lg]:"size-2.5 fill-current"},kg=_.Root,Ag=_.Trigger,Ig=_.Group,Vg=_.Portal,Fg=_.Sub,Og=_.RadioGroup,dl=Mt(({className:e,inset:t,children:r,...o},n)=>{let i=Sr(Ut),s=c(i);return ye(_.SubTrigger,{ref:n,className:a(pn({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,ye(wg,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});dl.displayName=_.SubTrigger.displayName;var pl=Mt(({className:e,...t},r)=>ye(_.Portal,{children:ye(_.SubContent,{ref:r,className:a(dn(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));pl.displayName=_.SubContent.displayName;var cl=Mt(({className:e,size:t,...r},o)=>{let n=c(t)??Z.md;return ye(Ut.Provider,{value:n,children:ye(_.Portal,{children:ye(_.Content,{ref:o,className:a(dn(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});cl.displayName=_.Content.displayName;var ul=Mt(({className:e,inset:t,variant:r,...o},n)=>{let i=Sr(Ut),s=c(i);return ye(_.Item,{ref:n,className:a(pn({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});ul.displayName=_.Item.displayName;var fl=Mt(({className:e,children:t,checked:r,...o},n)=>{let i=Sr(Ut),s=c(i)??Z.md;return ye(_.CheckboxItem,{ref:n,className:a(al({size:s}),e),checked:r,...o,children:[ye("span",{className:ml[s],children:ye(_.ItemIndicator,{children:ye(Ng,{className:Lg[s]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});fl.displayName=_.CheckboxItem.displayName;var gl=Mt(({className:e,children:t,...r},o)=>{let n=Sr(Ut),i=c(n)??Z.md;return ye(_.RadioItem,{ref:o,className:a(nl({size:i}),e),...r,children:[ye("span",{className:ml[i],children:ye(_.ItemIndicator,{children:ye(Rg,{className:Hg[i]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});gl.displayName=_.RadioItem.displayName;var yl=Mt(({className:e,inset:t,...r},o)=>{let n=Sr(Ut),i=c(n);return ye(_.Label,{ref:o,className:a(il({size:i}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});yl.displayName=_.Label.displayName;var vl=Mt(({className:e,...t},r)=>ye(_.Separator,{ref:r,className:a(sl(),e),...t},void 0,!1,void 0,this));vl.displayName=_.Separator.displayName;var bl=({className:e,...t})=>{let r=Sr(Ut),o=c(r);return ye("span",{className:a(ll({size:o}),e),...t},void 0,!1,void 0,this)};bl.displayName="ContextMenuShortcut";import*as xe from"@radix-ui/react-dialog";import{cva as Bg}from"class-variance-authority";import{X as Dg}from"lucide-react";import{forwardRef as Go}from"react";import{jsxDEV as Qe}from"react/jsx-dev-runtime";var Lt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Er=xe.Root,_g=xe.Trigger,Wo=xe.Portal,Gg=xe.Close,cn=xe.Content,jr=Go(({className:e,...t},r)=>Qe(xe.Overlay,{ref:r,className:a("gs-dialog-overlay fixed inset-0 z-50 bg-black/50",e),...t},void 0,!1,void 0,this));jr.displayName="DialogOverlay";var Tl=Bg("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 border border-border bg-background p-6 text-foreground shadow-[var(--shadow-xl)] rounded-[var(--radius)]",{variants:{size:{[Lt.sm]:"max-w-sm",[Lt.md]:"max-w-md",[Lt.lg]:"max-w-lg",[Lt.xl]:"max-w-xl",[Lt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:Lt.md}}),$o=Go(({className:e,children:t,size:r=Lt.md,showClose:o=!0,...n},i)=>{let s=c(r);return Qe(Wo,{children:[Qe(jr,{},void 0,!1,void 0,this),Qe(xe.Content,{ref:i,className:a(Tl({size:s}),e),...n,children:[t,o&&Qe(xe.Close,{className:"gs-interactive absolute top-4 right-4 rounded-[var(--radius)] border border-border p-1.5 text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none",children:[Qe(Dg,{className:"size-4"},void 0,!1,void 0,this),Qe("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});$o.displayName="DialogContent";var hl=({className:e,...t})=>Qe("div",{className:a("flex flex-col space-y-1.5 text-center sm:text-left",e),...t},void 0,!1,void 0,this);hl.displayName="DialogHeader";var Pl=({className:e,...t})=>Qe("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);Pl.displayName="DialogFooter";var Uo=Go(({className:e,...t},r)=>Qe(xe.Title,{ref:r,className:a("font-semibold text-lg leading-none tracking-tight",e),...t},void 0,!1,void 0,this));Uo.displayName="DialogTitle";var xl=Go(({className:e,...t},r)=>Qe(xe.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));xl.displayName="DialogDescription";import{cva as un}from"class-variance-authority";import{X as Wg}from"lucide-react";import{forwardRef as Ko}from"react";import{Drawer as vt}from"vaul";import{jsxDEV as _e}from"react/jsx-dev-runtime";var Ge={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},$g={[Ge.sm]:"sm:max-w-sm",[Ge.md]:"sm:max-w-md",[Ge.lg]:"sm:max-w-lg",[Ge.xl]:"sm:max-w-xl",[Ge.full]:"sm:max-w-full"},Ug={[Ge.sm]:"sm:max-h-[30vh]",[Ge.md]:"sm:max-h-[50vh]",[Ge.lg]:"sm:max-h-[70vh]",[Ge.xl]:"sm:max-h-[85vh]",[Ge.full]:"sm:max-h-full"},Cl=un(["fixed inset-0 z-50 bg-black/50","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:duration-200","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:duration-150"]),zl=un(["group/drawer-content fixed z-50 flex h-auto flex-col border border-border bg-background shadow-[var(--shadow-xl)]","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-t-0","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-b-0","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:h-full data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-r-0","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:h-full data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-l-0"]),Sl=un("mx-auto shrink-0 rounded-full bg-muted-foreground/25 transition-colors duration-150 hover:bg-muted-foreground/40",{variants:{direction:{top:"mb-4 mt-2 h-1.5 w-[60px]",bottom:"mb-2 mt-4 h-1.5 w-[60px]",left:"ml-auto mr-2 mt-auto mb-auto h-[60px] w-1.5",right:"ml-2 mr-auto mt-auto mb-auto h-[60px] w-1.5"}},defaultVariants:{direction:"bottom"}}),Kg=vt.Root,Yg=vt.Trigger,Xg=vt.Close,Nl=vt.Portal,fn=Ko(({className:e,...t},r)=>_e(vt.Overlay,{ref:r,className:a(Cl(),e),...t},void 0,!1,void 0,this));fn.displayName="DrawerOverlay";var wl=Ko(({size:e=Ge.md,showClose:t=!1,direction:r="bottom",className:o,children:n,...i},s)=>{let d=r==="left"||r==="right"?$g[e]:Ug[e];return _e(Nl,{children:[_e(fn,{},void 0,!1,void 0,this),_e(vt.Content,{ref:s,className:a(zl(),d,o),...i,children:[(r==="top"||r==="bottom")&&_e("div",{className:a(Sl({direction:r}))},void 0,!1,void 0,this),n,t&&_e(vt.Close,{className:"absolute top-4 right-4 rounded-[var(--radius)] border border-border p-1.5 text-muted-foreground transition-[color,background-color,border-color] duration-150 hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none",children:[_e(Wg,{className:"size-4"},void 0,!1,void 0,this),_e("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});wl.displayName="DrawerContent";var Rl=({className:e,...t})=>_e("div",{className:a("flex flex-col gap-1.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center sm:text-left",e),...t},void 0,!1,void 0,this);Rl.displayName="DrawerHeader";var Ml=({className:e,...t})=>_e("div",{className:a("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);Ml.displayName="DrawerFooter";var Ll=Ko(({className:e,...t},r)=>_e(vt.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));Ll.displayName="DrawerTitle";var Hl=Ko(({className:e,...t},r)=>_e(vt.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Hl.displayName="DrawerDescription";import*as G from"@radix-ui/react-dropdown-menu";import{cva as Yt}from"class-variance-authority";import{Check as Zg,ChevronRight as qg,Circle as Jg}from"lucide-react";import{createContext as Qg,forwardRef as Ht,useCallback as Eg,useContext as Nr,useEffect as jg,useRef as kl,useState as ey}from"react";import{jsxDEV as pe}from"react/jsx-dev-runtime";var q={sm:"sm",md:"md",lg:"lg"},Yo={default:"default",danger:"danger"},Xt=Qg(q.md),Kt=null,eo=null,ty=0,gn=Yt("z-50 min-w-[8rem] overflow-hidden rounded-[var(--radius)] border border-border/70 bg-popover p-1 text-popover-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-dropdown-menu-content-transform-origin)]"),yn=Yt("gs-interactive relative flex cursor-pointer select-none items-center rounded-md outline-none data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{size:{[q.sm]:"h-7 gap-1.5 px-2 text-xs [&_svg]:size-3.5",[q.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[q.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Yo.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Yo.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:q.md,variant:Yo.default}}),Al=Yt("gs-interactive relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[q.sm]:"h-7 pl-7 pr-2 text-xs",[q.md]:"h-8 pl-8 pr-2 text-sm",[q.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:q.md}}),Il=Yt("gs-interactive relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[q.sm]:"h-7 pl-7 pr-2 text-xs",[q.md]:"h-8 pl-8 pr-2 text-sm",[q.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:q.md}}),Vl=Yt("font-semibold text-muted-foreground",{variants:{size:{[q.sm]:"px-2 py-1 text-[11px]",[q.md]:"px-2 py-1.5 text-xs",[q.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:q.md}}),Fl=Yt("-mx-1 my-1 h-px bg-border/50"),Ol=Yt("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[q.sm]:"text-[11px]",[q.md]:"text-xs",[q.lg]:"text-xs"}},defaultVariants:{size:q.md}}),Bl={[q.sm]:"absolute left-2 flex size-3.5 items-center justify-center",[q.md]:"absolute left-2 flex size-3.5 items-center justify-center",[q.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},ry={[q.sm]:"size-3",[q.md]:"size-3.5",[q.lg]:"size-4"},oy={[q.sm]:"size-1.5 fill-current",[q.md]:"size-2 fill-current",[q.lg]:"size-2.5 fill-current"},Dl=({children:e,open:t,defaultOpen:r,onOpenChange:o,...n})=>{let[i,s]=ey(r??!1),l=t!==void 0,d=l?t:i,m=kl(++ty),f=kl({onOpenChange:o,isControlled:l});f.current={onOpenChange:o,isControlled:l};let u=Eg((h)=>{let{onOpenChange:p,isControlled:y}=f.current;if(h){if(Kt!==null&&Kt!==m.current&&eo)eo();Kt=m.current,eo=()=>{let{onOpenChange:S,isControlled:M}=f.current;if(!M)s(!1);S?.(!1)}}else if(Kt===m.current)Kt=null,eo=null;if(!y)s(h);p?.(h)},[]);return jg(()=>{return()=>{if(Kt===m.current)Kt=null,eo=null}},[]),pe(G.Root,{open:d,onOpenChange:u,...n,children:e},void 0,!1,void 0,this)};Dl.displayName="DropdownMenu";var ay=G.Trigger,ny=G.Group,iy=G.Portal,sy=G.Sub,ly=G.RadioGroup,_l=Ht(({className:e,inset:t,children:r,...o},n)=>{let i=Nr(Xt),s=c(i);return pe(G.SubTrigger,{ref:n,className:a(yn({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,pe(qg,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});_l.displayName=G.SubTrigger.displayName;var Gl=Ht(({className:e,...t},r)=>pe(G.Portal,{children:pe(G.SubContent,{ref:r,className:a(gn(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Gl.displayName=G.SubContent.displayName;var Wl=Ht(({className:e,sideOffset:t=4,size:r,...o},n)=>{let i=c(r)??q.md;return pe(Xt.Provider,{value:i,children:pe(G.Portal,{children:pe(G.Content,{ref:n,sideOffset:t,className:a(gn(),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Wl.displayName=G.Content.displayName;var $l=Ht(({className:e,inset:t,variant:r,...o},n)=>{let i=Nr(Xt),s=c(i);return pe(G.Item,{ref:n,className:a(yn({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});$l.displayName=G.Item.displayName;var Ul=Ht(({className:e,children:t,checked:r,...o},n)=>{let i=Nr(Xt),s=c(i)??q.md;return pe(G.CheckboxItem,{ref:n,className:a(Al({size:s}),e),checked:r,...o,children:[pe("span",{className:Bl[s],children:pe(G.ItemIndicator,{children:pe(Zg,{className:ry[s]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});Ul.displayName=G.CheckboxItem.displayName;var Kl=Ht(({className:e,children:t,...r},o)=>{let n=Nr(Xt),i=c(n)??q.md;return pe(G.RadioItem,{ref:o,className:a(Il({size:i}),e),...r,children:[pe("span",{className:Bl[i],children:pe(G.ItemIndicator,{children:pe(Jg,{className:oy[i]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});Kl.displayName=G.RadioItem.displayName;var Yl=Ht(({className:e,inset:t,...r},o)=>{let n=Nr(Xt),i=c(n);return pe(G.Label,{ref:o,className:a(Vl({size:i}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Yl.displayName=G.Label.displayName;var Xl=Ht(({className:e,...t},r)=>pe(G.Separator,{ref:r,className:a(Fl(),e),...t},void 0,!1,void 0,this));Xl.displayName=G.Separator.displayName;var Zl=({className:e,...t})=>{let r=Nr(Xt),o=c(r);return pe("span",{className:a(Ol({size:o}),e),...t},void 0,!1,void 0,this)};Zl.displayName="DropdownMenuShortcut";import{cva as ro}from"class-variance-authority";import{forwardRef as my}from"react";import{jsxDEV as to}from"react/jsx-dev-runtime";var ze={sm:"sm",md:"md",lg:"lg"},ql=ro("flex flex-col items-center justify-center text-center rounded-[var(--radius)] border border-dashed border-border/50 bg-muted/20",{variants:{size:{[ze.sm]:"gap-2 p-4",[ze.md]:"gap-4 p-8",[ze.lg]:"gap-6 p-12"}},defaultVariants:{size:ze.md}}),Jl=ro("flex items-center justify-center rounded-full bg-muted/50 text-muted-foreground",{variants:{size:{[ze.sm]:"h-10 w-10 [&>svg]:h-4 [&>svg]:w-4",[ze.md]:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",[ze.lg]:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"}},defaultVariants:{size:ze.md}}),Ql=ro("font-semibold text-foreground",{variants:{size:{[ze.sm]:"text-sm",[ze.md]:"text-lg",[ze.lg]:"text-xl"}},defaultVariants:{size:ze.md}}),El=ro("text-muted-foreground max-w-sm",{variants:{size:{[ze.sm]:"text-xs",[ze.md]:"text-sm",[ze.lg]:"text-base"}},defaultVariants:{size:ze.md}}),jl=ro("flex items-center gap-2 mt-2"),em=my(({className:e,icon:t,title:r,description:o,actions:n,size:i=ze.md,children:s,...l},d)=>{let m=c(i);return to("div",{ref:d,className:a(ql({size:m}),e),...l,children:[t&&to("div",{className:Jl({size:m}),children:t},void 0,!1,void 0,this),r&&to("h3",{className:Ql({size:m}),children:r},void 0,!1,void 0,this),o&&to("p",{className:El({size:m}),children:o},void 0,!1,void 0,this),n&&to("div",{className:jl(),children:n},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});em.displayName="EmptyState";import{cva as wr}from"class-variance-authority";import{Component as dy,createElement as tm}from"react";import{jsxDEV as Le,Fragment as cy}from"react/jsx-dev-runtime";var rm=wr(["flex flex-col items-center justify-center rounded-xl border text-center","transition-colors duration-200 ease-out"],{variants:{size:{sm:"gap-3 p-6",md:"gap-4 p-8",lg:"gap-6 p-12",xl:"gap-7 p-14"},variant:{destructive:"border-destructive/30 bg-destructive/8",warning:"border-warning/30 bg-warning/8",info:"border-info/30 bg-info/8"}},defaultVariants:{size:"md",variant:"destructive"}}),om=wr(["flex items-center justify-center rounded-full","transition-colors duration-200 ease-out"],{variants:{size:{sm:"h-12 w-12 [&>svg]:h-5 [&>svg]:w-5",md:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",lg:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9",xl:"h-24 w-24 [&>svg]:h-10 [&>svg]:w-10"},variant:{destructive:"bg-destructive/10 text-destructive",warning:"bg-warning/10 text-warning",info:"bg-info/10 text-info"}},defaultVariants:{size:"md",variant:"destructive"}}),am=wr("font-semibold transition-colors duration-300",{variants:{size:{sm:"text-lg",md:"text-xl",lg:"text-2xl",xl:"text-3xl"},variant:{destructive:"text-destructive",warning:"text-warning",info:"text-info"}},defaultVariants:{size:"md",variant:"destructive"}}),nm=wr("max-w-xl text-muted-foreground transition-all duration-200",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{size:"md"}}),im=wr("mt-2 flex flex-wrap items-center justify-center gap-2"),sm=wr("mt-4 max-h-48 w-full max-w-2xl overflow-auto rounded-md border border-border/70 bg-background/80 p-3 text-left font-mono text-xs text-muted-foreground");class lm extends dy{static displayName="ErrorBoundary";constructor(e){super(e);this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.props.onError?.(e,t)}handleReset=()=>{this.setState({hasError:!1,error:null}),this.props.onReset?.()};render(){let{children:e,fallback:t,showDetails:r=!1,size:o="md",variant:n="destructive",className:i,title:s="Something went wrong",description:l="An unexpected error occurred. Please try again.",icon:d,actions:m,resetLabel:f="Try again",hideReset:u=!1,renderDetails:h}=this.props;if(this.state.hasError&&this.state.error){let p={error:this.state.error,reset:this.handleReset};if(t){if(typeof t==="function")return tm(t,p);return t}let y=null;if(m)y=typeof m==="function"?tm(m,p):m;else if(!u){let M={destructive:"border-destructive/30 bg-destructive text-destructive-foreground hover:bg-destructive/90",warning:"border-warning/30 bg-warning text-warning-foreground hover:bg-warning/90",info:"border-info/30 bg-info text-info-foreground hover:bg-info/90"};y=Le("button",{type:"button",onClick:this.handleReset,className:a("inline-flex items-center justify-center rounded-md border px-4 py-2 font-medium text-sm","transition-colors duration-150 ease-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",M[n]),children:f},void 0,!1,void 0,this)}let S=h?h(this.state.error):Le(cy,{children:[Le("strong",{children:"Error:"},void 0,!1,void 0,this)," ",this.state.error.message,this.state.error.stack&&Le("pre",{className:"mt-2 whitespace-pre-wrap",children:this.state.error.stack},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return Le("div",{className:a(rm({size:o,variant:n}),i),children:[Le("div",{className:a(om({size:o,variant:n})),children:d??Le(py,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Le("h3",{className:a(am({size:o,variant:n})),children:s},void 0,!1,void 0,this),Le("p",{className:a(nm({size:o})),children:l},void 0,!1,void 0,this),y&&Le("div",{className:a(im()),children:y},void 0,!1,void 0,this),r&&Le("div",{className:a(sm()),children:S},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function py(){return Le("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[Le("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,void 0,this),Le("line",{x1:"12",x2:"12",y1:"8",y2:"12"},void 0,!1,void 0,this),Le("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}import{cva as kt}from"class-variance-authority";import{forwardRef as uy,useCallback as Ee,useRef as fy,useState as mm}from"react";import{jsxDEV as Ne}from"react/jsx-dev-runtime";var ne={sm:"sm",md:"md",lg:"lg",xl:"xl"},dm=kt(["relative flex flex-col items-center justify-center","rounded-xl border-2 border-dashed","shadow-[var(--shadow-xs)]","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","cursor-pointer","hover:border-primary/45 hover:bg-primary/8","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"],{variants:{size:{[ne.sm]:"min-h-28 p-5",[ne.md]:"min-h-36 p-8",[ne.lg]:"min-h-44 p-10",[ne.xl]:"min-h-52 p-12"},isDragging:{true:"scale-[1.01] border-primary bg-primary/12 shadow-[var(--glow-brand-sm)]",false:"border-border bg-card/75"},disabled:{true:"cursor-not-allowed border-border/70 bg-muted/35 text-muted-foreground pointer-events-none",false:""},hasError:{true:"border-destructive bg-destructive/5",false:""}},defaultVariants:{size:ne.md,isDragging:!1,disabled:!1,hasError:!1}}),pm=kt("text-muted-foreground transition-colors duration-200",{variants:{size:{[ne.sm]:"mb-2 size-6",[ne.md]:"size-8 mb-3",[ne.lg]:"size-10 mb-4",[ne.xl]:"size-12 mb-5"},isDragging:{true:"text-primary",false:""}},defaultVariants:{size:ne.md,isDragging:!1}}),vn=kt("text-center",{variants:{size:{[ne.sm]:"text-sm",[ne.md]:"text-sm",[ne.lg]:"text-base",[ne.xl]:"text-lg"}},defaultVariants:{size:ne.md}}),cm=kt("mt-4 w-full space-y-2"),um=kt(["flex items-center gap-3 rounded-lg border border-border/75 bg-card p-3.5","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","hover:border-primary/30 hover:bg-accent/45"]),fm=kt("min-w-0 flex-1 truncate font-medium text-foreground",{variants:{size:{[ne.sm]:"text-sm",[ne.md]:"text-sm",[ne.lg]:"text-base",[ne.xl]:"text-base"}},defaultVariants:{size:"md"}}),gm=kt("text-muted-foreground",{variants:{size:{[ne.sm]:"text-xs",[ne.md]:"text-sm",[ne.lg]:"text-sm",[ne.xl]:"text-base"}},defaultVariants:{size:"md"}}),ym=kt(["size-7 shrink-0 rounded-full border border-transparent","flex items-center justify-center","text-muted-foreground hover:border-destructive/25 hover:bg-destructive/10 hover:text-destructive","transition-colors duration-150","cursor-pointer"]),vm=uy(({className:e,size:t="md",disabled:r=!1,accept:o,multiple:n=!1,maxSize:i,maxFiles:s,value:l=[],onChange:d,onError:m,icon:f,title:u="Drop files here or click to upload",description:h,showFileList:p=!0,...y},S)=>{let M=c(t),[w,T]=mm(!1),[v,C]=mm(!1),B=fy(null),R=Ee((H)=>{if(H===0)return"0 Bytes";let Y=1024,g=["Bytes","KB","MB","GB"],b=Math.floor(Math.log(H)/Math.log(Y));return`${parseFloat((H/Y**b).toFixed(2))} ${g[b]}`},[]),A=Ee((H)=>{let Y=[...H];if(C(!1),o){let g=o.split(",").map((b)=>b.trim());if(Y=Y.filter((b)=>{return g.some((L)=>{if(L.startsWith("."))return b.name.toLowerCase().endsWith(L.toLowerCase());if(L.endsWith("/*"))return b.type.startsWith(L.slice(0,-1));return b.type===L})}),Y.length<H.length)m?.("Some files were rejected due to file type"),C(!0)}if(i){let g=Y.length;if(Y=Y.filter((b)=>b.size<=i),Y.length<g)m?.(`File size must be less than ${R(i)}`),C(!0)}if(s&&Y.length+l.length>s)Y=Y.slice(0,s-l.length),m?.(`Maximum ${s} files allowed`),C(!0);return Y},[o,i,s,l.length,m,R]),z=Ee((H)=>{if(!H||H.length===0)return;let Y=Array.from(H),g=A(Y);if(g.length>0)if(n)d?.([...l,...g]);else d?.(g.slice(0,1))},[n,l,d,A]),I=Ee((H)=>{H.preventDefault(),H.stopPropagation(),T(!0)},[]),K=Ee((H)=>{H.preventDefault(),H.stopPropagation(),T(!1)},[]),O=Ee((H)=>{H.preventDefault(),H.stopPropagation()},[]),U=Ee((H)=>{if(H.preventDefault(),H.stopPropagation(),T(!1),r)return;z(H.dataTransfer.files)},[r,z]),N=Ee((H)=>{if(z(H.target.files),B.current)B.current.value=""},[z]),V=Ee(()=>{if(!r)B.current?.click()},[r]),P=Ee((H)=>{if(H.key==="Enter"||H.key===" ")H.preventDefault(),V()},[V]),F=Ee((H)=>{let Y=l.filter((g,b)=>b!==H);d?.(Y)},[l,d]),j=Ne("svg",{className:a(pm({size:M,isDragging:w})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ne("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Ne("div",{ref:S,className:a("w-full",e),...y,children:[Ne("div",{role:"button",tabIndex:r?-1:0,onClick:V,onKeyDown:P,onDragEnter:I,onDragLeave:K,onDragOver:O,onDrop:U,className:a(dm({size:M,isDragging:w,disabled:r,hasError:v})),children:[Ne("input",{ref:B,type:"file",accept:o,multiple:n,disabled:r,onChange:N,className:"sr-only"},void 0,!1,void 0,this),f||j,Ne("p",{className:a(vn({size:M}),"font-medium text-foreground"),children:u},void 0,!1,void 0,this),h&&Ne("p",{className:a(vn({size:M}),"mt-1 text-muted-foreground"),children:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&l.length>0&&Ne("div",{className:a(cm()),children:l.map((H,Y)=>Ne("div",{className:a(um()),children:[Ne("svg",{className:"size-5 shrink-0 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ne("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ne("span",{className:a(fm({size:M})),children:H.name},void 0,!1,void 0,this),Ne("span",{className:a(gm({size:M})),children:R(H.size)},void 0,!1,void 0,this),Ne("button",{type:"button",onClick:(g)=>{g.stopPropagation(),F(Y)},className:a(ym()),"aria-label":`Remove ${H.name}`,children:Ne("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ne("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},`${H.name}-${Y}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});vm.displayName="FileUpload";import{cva as gy}from"class-variance-authority";import{createContext as yy,forwardRef as Xo,useContext as vy,useId as by}from"react";import{jsxDEV as Zt,Fragment as hy}from"react/jsx-dev-runtime";var We={sm:"sm",md:"md",lg:"lg"},bm=yy(null),oo=()=>{let e=vy(bm);if(!e)throw Error("useFormField must be used within a FormField");return e},Tm=gy("flex flex-col",{variants:{size:{[We.sm]:"gap-1",[We.md]:"gap-1.5",[We.lg]:"gap-2"}},defaultVariants:{size:We.md}}),hm=Xo(({className:e,size:t=We.md,error:r,disabled:o=!1,required:n=!1,children:i,...s},l)=>{let d=by(),m=c(t),f={id:d,size:m,error:r,disabled:o,required:n};return Zt(bm.Provider,{value:f,children:Zt("div",{ref:l,className:a(Tm({size:m}),e),...s,children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this)});hm.displayName="FormField";var Ty={[We.sm]:"text-xs",[We.md]:"text-sm",[We.lg]:"text-base"},Pm=Xo(({className:e,htmlFor:t,children:r,...o},n)=>{let{id:i,size:s,disabled:l,required:d}=oo();return Zt("label",{ref:n,htmlFor:t??i,className:a("inline-block font-medium text-foreground select-none",Ty[s],l&&"cursor-not-allowed opacity-60",e),...o,children:[r,d&&Zt("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Pm.displayName="FormFieldLabel";var xm={[We.sm]:"text-[10px]",[We.md]:"text-xs",[We.lg]:"text-sm"},Cm=Xo(({className:e,...t},r)=>{let{id:o,size:n}=oo();return Zt("p",{ref:r,id:`${o}-description`,className:a("text-muted-foreground",xm[n],e),...t},void 0,!1,void 0,this)});Cm.displayName="FormFieldDescription";var zm=Xo(({className:e,children:t,...r},o)=>{let{id:n,size:i,error:s}=oo(),l=t??s;if(!l)return null;return Zt("p",{ref:o,id:`${n}-error`,role:"alert",className:a("text-destructive",xm[i],e),...r,children:l},void 0,!1,void 0,this)});zm.displayName="FormFieldError";var Sm=({children:e})=>{let{id:t,disabled:r,required:o,error:n}=oo(),i=[n?`${t}-error`:void 0,`${t}-description`].filter(Boolean).join(" ");return Zt(hy,{children:e({id:t,disabled:r,required:o,status:n?"error":"default","aria-describedby":i||void 0,"aria-invalid":n?!0:void 0})},void 0,!1,void 0,this)};Sm.displayName="FormFieldControl";import*as qt from"@radix-ui/react-hover-card";import{cva as Py}from"class-variance-authority";import{forwardRef as xy}from"react";import{jsxDEV as Sy}from"react/jsx-dev-runtime";var Rr={sm:"sm",md:"md",lg:"lg"},Nm=Py("z-50 rounded-[var(--radius)] border border-border/70 bg-popover text-popover-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-hover-card-content-transform-origin)]",{variants:{size:{[Rr.sm]:"w-52 p-3 text-xs",[Rr.md]:"w-64 p-4 text-sm",[Rr.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:Rr.md}}),Cy=qt.Root,zy=qt.Trigger,wm=xy(({className:e,align:t="center",sideOffset:r=4,size:o=Rr.md,...n},i)=>{let s=c(o);return Sy(qt.Content,{ref:i,align:t,sideOffset:r,className:a(Nm({size:s}),e),...n},void 0,!1,void 0,this)});wm.displayName=qt.Content.displayName;import{cva as Ny}from"class-variance-authority";import{X as wy}from"lucide-react";import{forwardRef as Ry,useRef as My,useState as Ly}from"react";import{jsxDEV as Jt}from"react/jsx-dev-runtime";var ao={default:"default",error:"error",success:"success"},E={sm:"sm",md:"md",lg:"lg",xl:"xl"},Hy="Clear input",Mm=Ny("gs-interactive w-full rounded-[var(--radius)] border border-input bg-background text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-2 disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{status:{[ao.default]:"focus-visible:ring-primary",[ao.error]:"border-destructive focus-visible:ring-destructive",[ao.success]:"border-success focus-visible:ring-success"},size:{[E.sm]:"h-8 px-2 text-xs",[E.md]:"h-10 px-3",[E.lg]:"h-11 px-4",[E.xl]:"h-12 px-4 text-base"}},defaultVariants:{status:ao.default,size:E.md}}),ky={[E.sm]:"pl-7",[E.md]:"pl-9",[E.lg]:"pl-10",[E.xl]:"pl-10"},Ay={[E.sm]:"pr-7",[E.md]:"pr-9",[E.lg]:"pr-10",[E.xl]:"pr-10"},Iy={[E.sm]:"pr-12",[E.md]:"pr-16",[E.lg]:"pr-18",[E.xl]:"pr-18"},Vy={[E.sm]:"text-xs left-2",[E.md]:"text-sm left-3",[E.lg]:"text-sm left-3.5",[E.xl]:"text-base left-3.5"},Fy={[E.sm]:"text-xs",[E.md]:"text-sm",[E.lg]:"text-sm",[E.xl]:"text-base"},Oy={[E.sm]:"size-4",[E.md]:"size-5",[E.lg]:"size-5",[E.xl]:"size-6"};function Rm(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var Lm=Ry(({className:e,status:t=ao.default,size:r=E.md,fullWidth:o=!1,prefix:n,suffix:i,clearable:s=!1,clearAriaLabel:l=Hy,onClear:d,onValueChange:m,disabled:f,readOnly:u,onChange:h,value:p,defaultValue:y,...S},M)=>{let w=Boolean(n),T=Boolean(i),v=c(r),C=My(null),B=no(M,C),[R,A]=Ly(()=>Rm(y)),z=p!==void 0,I=z?Rm(p):R,K=s&&!f&&!u&&I.length>0,O=T||K,U=T&&K,N=(P)=>{let F=P.target.value;if(!z)A(F);m?.(F),h?.(P)},V=()=>{if(!z)A("");m?.("");let P=C.current;if(P)P.value="",P.dispatchEvent(new Event("input",{bubbles:!0})),P.focus();d?.()};return Jt("div",{className:a("relative flex items-center",o&&"w-full"),children:[w&&Jt("span",{className:a("absolute inset-y-0 flex items-center text-muted-foreground",Vy[v]),children:n},void 0,!1,void 0,this),Jt("input",{ref:B,className:a(Mm({status:t,size:v}),w&&ky[v],U&&Iy[v],!U&&O&&Ay[v],e),disabled:f,readOnly:u,onChange:N,value:I,...S},void 0,!1,void 0,this),O&&Jt("span",{className:a("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",Fy[v]),children:[T&&Jt("span",{className:"inline-flex items-center",children:i},void 0,!1,void 0,this),K&&Jt("button",{type:"button","aria-label":l,onMouseDown:(P)=>P.preventDefault(),onClick:V,className:a("gs-interactive inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",Oy[v]),children:Jt(wy,{className:"size-3.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Lm.displayName="Input";import{cva as By}from"class-variance-authority";import{forwardRef as Dy}from"react";function io(){return bn()}import{jsxDEV as _y}from"react/jsx-dev-runtime";var Mr={sm:"sm",md:"md",lg:"lg"},Lr=By("inline-flex items-center justify-center rounded border border-border bg-muted font-mono font-medium text-muted-foreground shadow-[0_1px_0_1px] shadow-border/50",{variants:{size:{[Mr.sm]:"min-w-5 h-5 px-1 text-[10px]",[Mr.md]:"min-w-6 h-6 px-1.5 text-xs",[Mr.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:Mr.md}}),Hm=Dy(({className:e,size:t=Mr.md,combo:r,keys:o,children:n,...i},s)=>{let l=c(t),{isMac:d}=io(),m=r?Zo(r,d):o?Zo(o,d):n;return _y("kbd",{ref:s,className:a(Lr({size:l}),e),...i,children:m},void 0,!1,void 0,this)});Hm.displayName="Kbd";import{cva as Gy}from"class-variance-authority";import{forwardRef as Wy}from"react";import{jsxDEV as km}from"react/jsx-dev-runtime";var Hr={sm:"sm",md:"md",lg:"lg"},Am=Gy("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-60",{variants:{size:{[Hr.sm]:"text-xs",[Hr.md]:"text-sm",[Hr.lg]:"text-base"}},defaultVariants:{size:Hr.md}}),Im=Wy(({className:e,size:t=Hr.md,required:r=!1,disabled:o=!1,children:n,...i},s)=>{let l=c(t);return km("label",{ref:s,className:a(Am({size:l}),o&&"cursor-not-allowed opacity-60",e),"aria-disabled":o||void 0,...i,children:[n,r&&km("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Im.displayName="Label";var $y=xt;import*as At from"@radix-ui/react-popover";import{cva as Jy}from"class-variance-authority";import{Check as Qy,ChevronDown as Ey,X as jy}from"lucide-react";import{forwardRef as ev,useCallback as so,useEffect as tv,useRef as rv,useState as Om}from"react";import*as $e from"@radix-ui/react-popover";import{cva as Uy}from"class-variance-authority";import{forwardRef as Ky}from"react";import{jsxDEV as Vm}from"react/jsx-dev-runtime";var kr={sm:"sm",md:"md",lg:"lg"},Ar=Uy("z-50 rounded-[var(--radius)] border border-border bg-popover text-popover-foreground outline-none shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-popover-content-transform-origin)]",{variants:{size:{[kr.sm]:"w-56 p-3 text-sm",[kr.md]:"w-72 p-4 text-sm",[kr.lg]:"w-96 p-5 text-sm"}},defaultVariants:{size:kr.md}}),Yy=$e.Root,Xy=$e.Trigger,Zy=$e.Anchor,qy=$e.Close,Fm=Ky(({className:e,align:t="center",sideOffset:r=4,portal:o=!0,portalContainer:n,size:i=kr.md,...s},l)=>{let d=c(i),m=Vm($e.Content,{ref:l,align:t,sideOffset:r,className:a(Ar({size:d}),e),...s},void 0,!1,void 0,this);if(o)return Vm($e.Portal,{container:n??void 0,children:m},void 0,!1,void 0,this);return m});Fm.displayName="PopoverContent";import{jsxDEV as ce,Fragment as nv}from"react/jsx-dev-runtime";var ve={sm:"sm",md:"md",lg:"lg",xl:"xl"},Bm=Jy(["gs-interactive group flex w-full items-center gap-2 rounded-[var(--radius)] border border-input","bg-background text-sm text-foreground outline-none","placeholder:text-muted-foreground focus-visible:ring-2","data-[state=open]:ring-2","disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground"].join(" "),{variants:{size:{[ve.sm]:"min-h-8 px-2.5 py-1 text-xs",[ve.md]:"min-h-10 px-3.5 py-1.5",[ve.lg]:"min-h-11 px-4.5 py-2 text-sm",[ve.xl]:"min-h-12 px-4 py-2 text-base"},status:{default:"focus-visible:ring-primary data-[state=open]:ring-primary",error:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",success:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:ve.md,status:"default"}}),ov={[ve.sm]:"sm",[ve.md]:"md",[ve.lg]:"lg",[ve.xl]:"lg"},av={[ve.sm]:"min-h-7.5 py-1.5 px-2.5 text-xs",[ve.md]:"min-h-9 py-2 px-3 text-sm",[ve.lg]:"min-h-10 py-2.5 px-3.5 text-sm",[ve.xl]:"min-h-11 py-3 px-4 text-base"},qo={[ve.sm]:"size-3.5",[ve.md]:"size-4",[ve.lg]:"size-4",[ve.xl]:"size-4.5"},Dm=ev(({className:e,options:t,value:r,defaultValue:o=[],onValueChange:n,placeholder:i="Select options...",size:s=ve.md,status:l="default",clearable:d=!1,maxDisplayItems:m=3,disabled:f,...u},h)=>{let p=c(s)??s,[y,S]=Om(!1),[M,w]=Om(o),T=rv(null),v=r!==void 0,C=v?r:M,B=so((N)=>{let V=C.includes(N)?C.filter((P)=>P!==N):[...C,N];if(!v)w(V);n?.(V)},[C,v,n]),R=so((N,V)=>{V.stopPropagation();let P=C.filter((F)=>F!==N);if(!v)w(P);n?.(P)},[C,v,n]),A=so((N)=>{if(N.stopPropagation(),N.preventDefault(),!v)w([]);n?.([])},[v,n]),z=t.filter((N)=>C.includes(N.value)),I=z.length>0,K=d&&I&&!f,O=so((N)=>{let V=T.current;if(!V)return;let P=Array.from(V.querySelectorAll('[role="option"]:not([data-disabled])'));if(P.length===0)return;let F=V.querySelector('[role="option"]:focus'),j=F?P.indexOf(F):-1,H;switch(N){case"first":H=P[0];break;case"last":H=P[P.length-1];break;case"next":H=P[j+1]??P[0];break;case"prev":H=P[j-1]??P[P.length-1];break}H?.focus()},[]),U=so((N)=>{switch(N.key){case"ArrowDown":N.preventDefault(),O("next");break;case"ArrowUp":N.preventDefault(),O("prev");break;case"Home":N.preventDefault(),O("first");break;case"End":N.preventDefault(),O("last");break;case"Escape":N.preventDefault(),S(!1);break}},[O]);return tv(()=>{if(y)requestAnimationFrame(()=>O("first"))},[y,O]),ce(At.Root,{open:y,onOpenChange:S,children:[ce(At.Trigger,{asChild:!0,children:ce("button",{ref:h,type:"button",disabled:f,"data-state":y?"open":"closed","data-placeholder":I?void 0:"",className:a(Bm({size:p,status:l}),e),...u,children:[ce("span",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:I?ce(nv,{children:[z.slice(0,m).map((N)=>ce(Io,{variant:"outline",size:ov[s],removable:!0,onRemove:(V)=>R(N.value,V),className:"max-w-[120px] rounded-[calc(var(--radius)-4px)]",children:ce("span",{className:"truncate",children:N.label},void 0,!1,void 0,this)},N.value,!1,void 0,this)),z.length>m&&ce("span",{className:"text-muted-foreground text-xs",children:["+",z.length-m]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):ce("span",{className:"text-muted-foreground",children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this),ce("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[K&&ce("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(N)=>N.preventDefault(),onClick:A,className:"gs-interactive inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:ce(jy,{className:qo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),ce(Ey,{className:a(qo[p],"opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]",y&&"rotate-180")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),ce(At.Portal,{children:ce(At.Content,{ref:T,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:U,onOpenAutoFocus:(N)=>N.preventDefault(),className:a(Ar(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((N)=>{let V=C.includes(N.value);return ce("div",{role:"option",tabIndex:N.disabled?void 0:-1,"aria-selected":V,"aria-disabled":N.disabled||void 0,"data-disabled":N.disabled?"":void 0,className:a("gs-interactive relative flex w-full cursor-pointer select-none items-center gap-2","rounded-[calc(var(--radius)-3px)] outline-none","hover:bg-accent focus-visible:bg-accent focus-visible:text-accent-foreground","data-disabled:cursor-not-allowed data-disabled:opacity-50",av[p]),onClick:()=>!N.disabled&&B(N.value),onKeyDown:(P)=>{if(P.key==="Enter"||P.key===" "){if(P.preventDefault(),!N.disabled)B(N.value)}},children:[ce("span",{className:a("flex shrink-0 items-center justify-center",qo[p]),children:V&&ce(Qy,{className:qo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),ce("span",{className:"min-w-0 flex-1 truncate",children:N.label},void 0,!1,void 0,this)]},N.value,!0,void 0,this)}),t.length===0&&ce("div",{className:"px-3 py-6 text-center text-muted-foreground text-sm",children:"No options available"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Dm.displayName="Multiselect";import*as se from"@radix-ui/react-navigation-menu";import{cva as Qt}from"class-variance-authority";import{createContext as iv,forwardRef as Ir,useContext as sv}from"react";import{jsxDEV as Oe}from"react/jsx-dev-runtime";var je={sm:"sm",md:"md",lg:"lg"},_m=iv(je.md),Gm=Qt("relative z-10 flex max-w-max flex-1 items-center justify-center"),Wm=Qt("group flex flex-1 list-none items-center justify-center space-x-1"),$m=Qt(["group inline-flex w-max items-center justify-center rounded-md bg-background font-medium","gs-interactive","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground focus:outline-none","disabled:pointer-events-none disabled:opacity-50","data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"],{variants:{size:{[je.sm]:"h-8 px-3 py-1.5 text-xs",[je.md]:"h-10 px-4 py-2 text-sm",[je.lg]:"h-12 px-5 py-2.5 text-sm"}},defaultVariants:{size:je.md}}),Um=Qt(["left-0 top-0 w-full","data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out","data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out","data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52","data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52","md:absolute md:w-auto"]),lv=Qt(["block select-none space-y-1 rounded-md leading-none no-underline outline-none","gs-interactive","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground"],{variants:{size:{[je.sm]:"p-2 text-xs",[je.md]:"p-3 text-sm",[je.lg]:"p-4 text-sm"}},defaultVariants:{size:je.md}}),Km=Qt(["origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg","gs-float-content","transition-[width,height] duration-300 ease-[var(--motion-ease-emphasized)]","md:w-[var(--radix-navigation-menu-viewport-width)]"]),Ym=Qt(["top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden","data-[state=visible]:animate-in data-[state=hidden]:animate-out","data-[state=hidden]:fade-out data-[state=visible]:fade-in"]),mv=()=>Oe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true",children:Oe("path",{d:"m6 9 6 6 6-6"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Xm=Ir(({className:e,children:t,size:r,...o},n)=>{let i=c(r??je.md);return Oe(_m.Provider,{value:i,children:Oe(se.Root,{ref:n,className:a(Gm(),e),...o,children:[t,Oe(Tn,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Xm.displayName=se.Root.displayName;var Zm=Ir(({className:e,...t},r)=>Oe(se.List,{ref:r,className:a(Wm(),e),...t},void 0,!1,void 0,this));Zm.displayName=se.List.displayName;var dv=se.Item,qm=Ir(({className:e,children:t,...r},o)=>{let n=sv(_m);return Oe(se.Trigger,{ref:o,className:a($m({size:n}),"group",e),...r,children:[t,Oe(mv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});qm.displayName=se.Trigger.displayName;var Jm=Ir(({className:e,...t},r)=>Oe(se.Content,{ref:r,className:a(Um(),e),...t},void 0,!1,void 0,this));Jm.displayName=se.Content.displayName;var pv=se.Link,Tn=Ir(({className:e,...t},r)=>Oe("div",{className:"absolute top-full left-0 flex justify-center",children:Oe(se.Viewport,{className:a(Km(),e),ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Tn.displayName=se.Viewport.displayName;var Qm=Ir(({className:e,...t},r)=>Oe(se.Indicator,{ref:r,className:a(Ym(),e),...t,children:Oe("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"},void 0,!1,void 0,this)},void 0,!1,void 0,this));Qm.displayName=se.Indicator.displayName;import{cva as Vr}from"class-variance-authority";import{Fragment as cv,forwardRef as uv,useCallback as Et,useEffect as Em,useMemo as jm,useRef as fv,useState as ed}from"react";import{jsxDEV as jt}from"react/jsx-dev-runtime";var er={sm:"sm",md:"md",lg:"lg",xl:"xl"},mo={default:"default",error:"error",success:"success"},lo={single:"single",first:"first",middle:"middle",last:"last"},td=Vr("relative inline-flex items-center",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2",xl:"gap-2.5"}},defaultVariants:{size:er.md}}),rd=Vr("relative inline-flex items-center",{variants:{size:{sm:"gap-0",md:"gap-0",lg:"gap-0",xl:"gap-0"},status:{default:"",error:"text-destructive",success:"text-success"}},defaultVariants:{size:er.md,status:mo.default}}),od=Vr(["relative flex items-center justify-center border bg-background","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","motion-reduce:transition-none"],{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-11 w-11",xl:"h-12 w-12"},filled:{true:"border-border bg-card",false:"border-input bg-background"},focused:{true:"scale-[1.02]",false:""},status:{default:"focus-within:border-ring",error:"border-destructive/70 focus-within:border-destructive focus-within:ring-2 focus-within:ring-destructive/20",success:"border-success/70 focus-within:border-success focus-within:ring-2 focus-within:ring-success/20"},disabled:{true:"border-border/80 bg-muted/45",false:""},position:{single:"rounded-[calc(var(--radius)-2px)]",first:"rounded-l-[calc(var(--radius)-2px)] rounded-r-none",middle:"rounded-none border-l-0",last:"rounded-r-[calc(var(--radius)-2px)] rounded-l-none border-l-0"}},defaultVariants:{size:er.md,filled:!1,focused:!1,status:mo.default,disabled:!1,position:lo.single}}),ad=Vr(["h-full w-full rounded-[inherit] bg-transparent text-center font-sans font-medium outline-none","transition-[color,opacity] duration-150 motion-reduce:transition-none","disabled:cursor-not-allowed disabled:text-muted-foreground"],{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base",xl:"text-lg"},status:{default:"caret-primary",error:"caret-destructive",success:"caret-success"},filled:{true:"text-foreground",false:"text-muted-foreground"}},defaultVariants:{size:er.md,status:mo.default,filled:!1}}),nd=Vr(["pointer-events-none absolute inset-0 flex items-center justify-center select-none","font-medium text-muted-foreground/45","transition-[opacity,transform] duration-150 motion-reduce:transition-none"],{variants:{size:{sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},focused:{true:"opacity-0 scale-95",false:"opacity-100 scale-100"}},defaultVariants:{size:er.md,focused:!1}}),id=Vr("select-none font-medium text-muted-foreground",{variants:{size:{sm:"px-0.5 text-sm",md:"px-0.5 text-base",lg:"px-1 text-lg",xl:"px-1.5 text-xl"}},defaultVariants:{size:er.md}});function gv(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function hn(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var sd=uv(({className:e,length:t=6,value:r,onChange:o,onComplete:n,size:i=er.md,status:s=mo.default,disabled:l=!1,autoFocus:d=!1,mask:m=!1,groupSize:f,separator:u,separatorChar:h="—",placeholder:p="•",inputMode:y="numeric",pattern:S="[0-9]*",...M},w)=>{let T=c(i),v=gv(t),C=fv([]),[B,R]=ed(null),[A,z]=ed(()=>hn(r,v));Em(()=>{if(r!==void 0){z(hn(r,v));return}z((g)=>hn(g.join(""),v))},[r,v]),Em(()=>{if(d)C.current[0]?.focus()},[d]);let I=jm(()=>{if(typeof f==="number"&&Number.isFinite(f)){let g=Math.floor(f);if(g<=0)return v;return Math.min(v,Math.max(1,g))}if(typeof u==="number"&&Number.isFinite(u)){let g=Math.floor(u);if(g<=0)return v;return Math.min(v,Math.max(1,g))}if(u)return Math.max(1,Math.floor(v/2));return v},[f,v,u]),K=jm(()=>{let g=[];for(let b=0;b<v;b+=I){let L=Math.min(b+I,v),re=[];for(let ee=b;ee<L;ee+=1)re.push(ee);g.push(re)}return g},[I,v]),O=Et((g)=>{let b=C.current[g];if(!b)return;b.focus(),b.select()},[]),U=Et((g)=>{z(g);let b=g.join("");if(o?.(b),g.every((L)=>L!=="")&&b.length===v)n?.(b)},[o,n,v]),N=Et((g,b)=>{if(l)return;let re=(y==="numeric"?b.replace(/\D/g,""):b).slice(-1),ee=[...A];if(ee[g]=re,U(ee),re&&g<v-1)O(g+1)},[A,l,U,O,y,v]),V=Et((g,b)=>{if(l)return;if(b.key==="Backspace"){if(b.preventDefault(),A[g]){let L=[...A];L[g]="",U(L);return}if(g>0){let L=[...A];L[g-1]="",U(L),O(g-1)}return}if(b.key==="Delete"){if(b.preventDefault(),A[g]){let L=[...A];L[g]="",U(L)}return}if(b.key==="ArrowLeft"){if(b.preventDefault(),g>0)O(g-1);return}if(b.key==="ArrowRight"){if(b.preventDefault(),g<v-1)O(g+1);return}if(b.key==="Home"){b.preventDefault(),O(0);return}if(b.key==="End")b.preventDefault(),O(v-1)},[A,l,U,O,v]),P=Et((g,b)=>{if(b.preventDefault(),l)return;let L=b.clipboardData.getData("text"),ee=(y==="numeric"?L.replace(/\D/g,""):L.replace(/\s/g,"")).split("");if(ee.length===0)return;let oe=[...A];for(let de=0;de<ee.length;de+=1){let dr=g+de;if(dr>=v)break;oe[dr]=ee[de]??""}U(oe);let te=Math.min(v-1,g+ee.length-1);if(te<v-1){O(te+1);return}C.current[te]?.blur()},[A,l,U,O,y,v]),F=Et((g,b)=>{R(g),b.target.select()},[]),j=Et(()=>{R(null)},[]),H=u!==void 0,Y=h.length>0&&u!==!1&&(H||K.length>1);return jt("div",{ref:w,className:a(td({size:T}),e),role:"group","aria-label":"One-time password input",...M,children:K.map((g,b)=>jt(cv,{children:[jt("div",{"data-gs-otp-group":"true",className:a(rd({size:T,status:s})),children:g.map((L,re)=>{let ee=A[L]??"",oe=B===L,te=lo.middle;if(g.length===1)te=lo.single;else if(re===0)te=lo.first;else if(re===g.length-1)te=lo.last;return jt("div",{"data-gs-otp-slot":"true","data-disabled":l,className:a(od({size:T,filled:Boolean(ee),focused:oe,status:s,disabled:l,position:te})),children:[jt("input",{ref:(de)=>{C.current[L]=de},type:m?"password":"text",inputMode:y,pattern:S,maxLength:1,value:ee,placeholder:"",disabled:l,"aria-invalid":s===mo.error,"aria-label":`Digit ${L+1} of ${v}`,autoComplete:"one-time-code",onChange:(de)=>N(L,de.target.value),onKeyDown:(de)=>V(L,de),onPaste:(de)=>P(L,de),onFocus:(de)=>F(L,de),onBlur:j,className:a(ad({size:T,status:s,filled:Boolean(ee)}))},void 0,!1,void 0,this),!ee&&jt("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:a(nd({size:T,focused:oe})),children:p},void 0,!1,void 0,this)]},`slot-${L}`,!0,void 0,this)})},void 0,!1,void 0,this),Y&&b<K.length-1&&jt("span",{"data-gs-otp-separator":"true",className:a(id({size:T})),children:h},void 0,!1,void 0,this)]},`group-${g[0]}-${g[g.length-1]}`,!0,void 0,this))},void 0,!1,void 0,this)});sd.displayName="OTPInput";import{createContext as Pv,useCallback as Fr,useContext as xv,useMemo as Cv,useState as zv}from"react";import*as me from"@radix-ui/react-dialog";import{cva as ld}from"class-variance-authority";import{X as yv}from"lucide-react";import{forwardRef as Jo}from"react";import{jsxDEV as et}from"react/jsx-dev-runtime";var Be={top:"top",right:"right",bottom:"bottom",left:"left"},ie={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},vv={[Be.top]:"gs-sheet-content gs-sheet-content-top",[Be.right]:"gs-sheet-content gs-sheet-content-right",[Be.bottom]:"gs-sheet-content gs-sheet-content-bottom",[Be.left]:"gs-sheet-content gs-sheet-content-left"},bv={[Be.right]:{[ie.sm]:"sm:max-w-sm",[ie.md]:"sm:max-w-md",[ie.lg]:"sm:max-w-lg",[ie.xl]:"sm:max-w-xl",[ie.full]:"sm:max-w-full"},[Be.left]:{[ie.sm]:"sm:max-w-sm",[ie.md]:"sm:max-w-md",[ie.lg]:"sm:max-w-lg",[ie.xl]:"sm:max-w-xl",[ie.full]:"sm:max-w-full"},[Be.top]:{[ie.sm]:"sm:max-h-[30vh]",[ie.md]:"sm:max-h-[50vh]",[ie.lg]:"sm:max-h-[70vh]",[ie.xl]:"sm:max-h-[85vh]",[ie.full]:"sm:max-h-full"},[Be.bottom]:{[ie.sm]:"sm:max-h-[30vh]",[ie.md]:"sm:max-h-[50vh]",[ie.lg]:"sm:max-h-[70vh]",[ie.xl]:"sm:max-h-[85vh]",[ie.full]:"sm:max-h-full"}},md=ld("gs-sheet-overlay fixed inset-0 z-50 bg-black/50"),dd=ld("fixed z-50 flex flex-col gap-4 border border-border bg-background p-6 shadow-[var(--shadow-xl)]",{variants:{side:{[Be.top]:"inset-x-0 top-0 border-b",[Be.bottom]:"inset-x-0 bottom-0 border-t",[Be.left]:"inset-y-0 left-0 h-full w-3/4 border-r",[Be.right]:"inset-y-0 right-0 h-full w-3/4 border-l"}},defaultVariants:{side:Be.right}}),Pn=me.Root,Tv=me.Trigger,hv=me.Close,pd=me.Portal,xn=Jo(({className:e,...t},r)=>et(me.Overlay,{className:a(md(),e),...t,ref:r},void 0,!1,void 0,this));xn.displayName=me.Overlay.displayName;var Qo=Jo(({side:e="right",size:t=ie.md,showClose:r=!0,className:o,children:n,...i},s)=>{let l=c(t)??ie.md,d=vv[e],m=bv[e][l];return et(pd,{children:[et(xn,{},void 0,!1,void 0,this),et(me.Content,{ref:s,className:a(dd({side:e}),d,m,o),...i,children:[n,r&&et(me.Close,{className:"gs-interactive absolute top-4 right-4 rounded-[var(--radius)] border border-border p-1.5 text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none",children:[et(yv,{className:"size-4"},void 0,!1,void 0,this),et("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Qo.displayName=me.Content.displayName;var cd=({className:e,...t})=>et("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);cd.displayName="SheetHeader";var ud=({className:e,...t})=>et("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);ud.displayName="SheetFooter";var fd=Jo(({className:e,...t},r)=>et(me.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));fd.displayName=me.Title.displayName;var gd=Jo(({className:e,...t},r)=>et(me.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));gd.displayName=me.Description.displayName;import{jsxDEV as bt}from"react/jsx-dev-runtime";var Cn=0;function Sv(){return Cn=(Cn+1)%Number.MAX_SAFE_INTEGER,`overlay-${Cn}-${Date.now()}`}var vd=Pv(null),yd=400;function bd({children:e}){let[t,r]=zv([]),o=Fr((m)=>{r((f)=>f.map((u)=>u.id===m?{...u,open:!1}:u)),setTimeout(()=>{r((f)=>f.filter((u)=>u.id!==m))},yd)},[]),n=Fr(()=>{r((m)=>m.map((f)=>({...f,open:!1}))),setTimeout(()=>{r([])},yd)},[]),i=Fr((m,f,u,h={})=>{let p=Sv(),y=(w)=>{return bt(f,{...u,close:w.close},void 0,!1,void 0,this)};y.displayName=`OverlayWrapper(${f.displayName??f.name??"Component"})`;let S={id:p,type:m,component:y,wrapperProps:h,open:!0};return r((w)=>[...w,S]),{id:p,close:()=>o(p)}},[o]),s=Fr((m,f,u)=>{return i("dialog",m,f,u)},[i]),l=Fr((m,f,u)=>{return i("sheet",m,f,u)},[i]),d=Cv(()=>({dialog:s,sheet:l,close:o,closeAll:n}),[s,l,o,n]);return bt(vd.Provider,{value:d,children:[e,t.map((m)=>bt(Nv,{entry:m,onClose:o},m.id,!1,void 0,this))]},void 0,!0,void 0,this)}bd.displayName="OverlayProvider";function Nv({entry:e,onClose:t}){let{id:r,type:o,component:n,wrapperProps:i,open:s}=e,l=Fr(()=>t(r),[r,t]);if(o==="dialog"){let{showClose:d,size:m,...f}=i;return bt(Er,{open:s,onOpenChange:(u)=>!u&&l(),children:bt($o,{showClose:d,size:m,...f,children:bt(n,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}if(o==="sheet"){let{side:d,showClose:m,...f}=i;return bt(Pn,{open:s,onOpenChange:(u)=>!u&&l(),children:bt(Qo,{side:d,showClose:m,...f,children:bt(n,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}return null}function wv(){let e=xv(vd);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as po}from"class-variance-authority";import{ChevronLeft as Rv,ChevronRight as Mv,MoreHorizontal as Lv}from"lucide-react";import{createContext as Hv,forwardRef as co,useContext as Eo}from"react";import{jsxDEV as Ae}from"react/jsx-dev-runtime";var Ue={sm:"sm",md:"md",lg:"lg"},uo=Hv(Ue.md),Td=po("mx-auto flex w-full justify-center"),hd=po("flex flex-row items-center gap-1"),Pd=po(""),jo=po("gs-interactive inline-flex items-center justify-center whitespace-nowrap rounded-[var(--radius)] font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-accent hover:text-accent-foreground",{variants:{isActive:{true:"border border-border bg-background shadow-[var(--shadow-sm)]",false:""},size:{[Ue.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[Ue.md]:"h-9 w-9 text-sm [&_svg]:size-4",[Ue.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:Ue.md}}),xd=po("flex items-center justify-center",{variants:{size:{[Ue.sm]:"h-7 w-7 [&_svg]:size-3.5",[Ue.md]:"h-9 w-9 [&_svg]:size-4",[Ue.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:Ue.md}}),Cd=({className:e,size:t=Ue.md,...r})=>{let o=c(t)??Ue.md;return Ae(uo.Provider,{value:o,children:Ae("nav",{"aria-label":"pagination",className:a(Td(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Cd.displayName="Pagination";var zd=co(({className:e,...t},r)=>Ae("ul",{ref:r,className:a(hd(),e),...t},void 0,!1,void 0,this));zd.displayName="PaginationContent";var Sd=co(({className:e,...t},r)=>Ae("li",{ref:r,className:a(Pd(),e),...t},void 0,!1,void 0,this));Sd.displayName="PaginationItem";var Nd=co(({className:e,isActive:t,...r},o)=>{let n=Eo(uo);return Ae("button",{ref:o,type:"button","aria-current":t?"page":void 0,className:a(jo({isActive:t,size:n}),e),...r},void 0,!1,void 0,this)});Nd.displayName="PaginationLink";var wd=co(({className:e,...t},r)=>{let o=Eo(uo);return Ae("button",{ref:r,type:"button","aria-label":"Go to previous page",className:a(jo({size:o}),"gap-1 pl-2.5 pr-3 w-auto",e),...t,children:[Ae(Rv,{},void 0,!1,void 0,this),Ae("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});wd.displayName="PaginationPrevious";var Rd=co(({className:e,...t},r)=>{let o=Eo(uo);return Ae("button",{ref:r,type:"button","aria-label":"Go to next page",className:a(jo({size:o}),"gap-1 pl-3 pr-2.5 w-auto",e),...t,children:[Ae("span",{children:"Next"},void 0,!1,void 0,this),Ae(Mv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Rd.displayName="PaginationNext";var Md=({className:e,...t})=>{let r=Eo(uo);return Ae("span",{"aria-hidden":!0,className:a(xd({size:r}),e),...t,children:[Ae(Lv,{},void 0,!1,void 0,this),Ae("span",{className:"sr-only",children:"More pages"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Md.displayName="PaginationEllipsis";import*as yo from"@radix-ui/react-progress";import{cva as Ld}from"class-variance-authority";import{forwardRef as kv}from"react";import{jsxDEV as ea}from"react/jsx-dev-runtime";var fo={sm:"sm",md:"md",lg:"lg",xl:"xl"},go={default:"default",success:"success",warning:"warning",error:"error"},Hd=Ld("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[fo.sm]:"h-1",[fo.md]:"h-2.5",[fo.lg]:"h-4",[fo.xl]:"h-5"}},defaultVariants:{size:fo.md}}),kd=Ld("h-full w-full flex-1 rounded-full transition-transform duration-100 ease-out",{variants:{variant:{[go.default]:"bg-primary",[go.success]:"bg-success",[go.warning]:"bg-warning",[go.error]:"bg-destructive"}},defaultVariants:{variant:go.default}}),Ad=kv(({className:e,value:t,size:r,variant:o,showValue:n,...i},s)=>{let l=c(r);return ea("div",{className:"flex w-full items-center gap-2",children:[ea(yo.Root,{ref:s,className:a(Hd({size:l}),e),...i,children:ea(yo.Indicator,{className:a(kd({variant:o})),style:{transform:`translateX(-${100-(t||0)}%)`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),n&&ea("span",{className:"font-medium text-muted-foreground text-sm tabular-nums",children:[t,"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Ad.displayName=yo.Root.displayName;import*as Br from"@radix-ui/react-radio-group";import{cva as Id}from"class-variance-authority";import{forwardRef as Vd}from"react";import{jsxDEV as ta}from"react/jsx-dev-runtime";var tt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Or={default:"default",error:"error",success:"success"},Fd=Id("grid gap-2"),Od=Id("gs-interactive aspect-square rounded-full border border-input bg-background ring-offset-background enabled:active:scale-[0.94] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-[state=checked]:border-primary data-[state=checked]:text-primary disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{size:{[tt.sm]:"h-4 w-4",[tt.md]:"h-5 w-5",[tt.lg]:"h-6 w-6",[tt.xl]:"h-7 w-7"},status:{[Or.default]:"enabled:hover:border-primary/70",[Or.error]:"border-destructive enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:text-destructive",[Or.success]:"border-success enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:text-success"}},defaultVariants:{size:tt.md,status:Or.default}}),Av={[tt.sm]:"h-2 w-2",[tt.md]:"h-2.5 w-2.5",[tt.lg]:"h-3 w-3",[tt.xl]:"h-3.5 w-3.5"},Bd=Vd(({className:e,...t},r)=>ta(Br.Root,{ref:r,className:a(Fd(),e),...t},void 0,!1,void 0,this));Bd.displayName="RadioGroup";var Dd=Vd(({className:e,size:t=tt.md,status:r=Or.default,...o},n)=>{let i=c(t);return ta(Br.Item,{ref:n,className:a(Od({size:i,status:r}),e),...o,children:ta(Br.Indicator,{className:"flex items-center justify-center",children:ta("span",{className:a("block rounded-full bg-current transition-transform duration-150",Av[i])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Dd.displayName="RadioGroupItem";import{cva as aa}from"class-variance-authority";import{forwardRef as zn,useCallback as ra,useRef as Iv,useState as Vv}from"react";import{jsxDEV as oa}from"react/jsx-dev-runtime";var _d=aa("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),Gd=aa("relative overflow-hidden"),Wd=aa("relative flex items-center justify-center bg-border transition-colors duration-150 hover:bg-primary/40 active:bg-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{direction:{horizontal:"h-full w-1 cursor-col-resize",vertical:"h-1 w-full cursor-row-resize"},withHandle:{true:"",false:""}},compoundVariants:[{direction:"horizontal",withHandle:!0,class:"w-3"},{direction:"vertical",withHandle:!0,class:"h-3"}],defaultVariants:{direction:"horizontal",withHandle:!1}}),$d=aa("z-10 flex items-center justify-center rounded-sm bg-border",{variants:{direction:{horizontal:"h-6 w-1",vertical:"h-1 w-6"}},defaultVariants:{direction:"horizontal"}}),Ud=zn(({className:e,direction:t="horizontal",children:r,...o},n)=>oa("div",{ref:n,"data-panel-group":"","data-direction":t,className:a(_d({direction:t}),e),...o,children:r},void 0,!1,void 0,this));Ud.displayName="ResizablePanelGroup";var Kd=zn(({className:e,defaultSize:t=50,children:r,style:o,...n},i)=>oa("div",{ref:i,"data-panel":"",className:a(Gd(),e),style:{...o,flexGrow:0,flexShrink:0,flexBasis:`${t}%`},...n,children:r},void 0,!1,void 0,this));Kd.displayName="ResizablePanel";var Yd=zn(({className:e,withHandle:t=!1,disabled:r=!1,...o},n)=>{let[i,s]=Vv(!1),l=Iv(null),d=ra((p,y)=>{if(r)return;s(!0);let S=(w)=>{let T="touches"in w?w.touches[0]:null,v=T?T.clientX:w.clientX,C=T?T.clientY:w.clientY,B=l.current;if(!B)return;let R=B.closest("[data-panel-group]");if(!R)return;let A=R.dataset.direction,z=R.getBoundingClientRect(),I=Array.from(R.querySelectorAll(":scope > [data-panel]")),K=Array.from(R.children).indexOf(B),O,U;for(let N of I){let V=Array.from(R.children).indexOf(N);if(V<K)O=N;if(V>K&&!U)U=N}if(O&&U){let N=A==="horizontal"?z.width:z.height,P=(A==="horizontal"?v-z.left:C-z.top)/N*100,F=Math.max(10,Math.min(90,P)),j=100-F;O.style.flexBasis=`${F}%`,U.style.flexBasis=`${j}%`}},M=()=>{s(!1),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",M),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",M)};document.addEventListener("mousemove",S),document.addEventListener("mouseup",M),document.addEventListener("touchmove",S),document.addEventListener("touchend",M)},[r]),m=ra((p)=>{p.preventDefault(),d(p.clientX,p.clientY)},[d]),f=ra((p)=>{let y=p.touches[0];if(y)d(y.clientX,y.clientY)},[d]),u=ra((p)=>{if(r)return;let y=l.current??p.currentTarget,S=y.closest("[data-panel-group]");if(!S)return;let M=S.dataset.direction,w=p.shiftKey?10:1,T=Array.from(S.querySelectorAll(":scope > [data-panel]")),v=Array.from(S.children).indexOf(y),C,B;for(let z of T){let I=Array.from(S.children).indexOf(z);if(I<v)C=z;if(I>v&&!B)B=z}if(!(C&&B))return;let R=Number.parseFloat(C.style.flexBasis)||50,A=0;if(M==="horizontal"){if(p.key==="ArrowLeft")A=-w;if(p.key==="ArrowRight")A=w}else{if(p.key==="ArrowUp")A=-w;if(p.key==="ArrowDown")A=w}if(A!==0){p.preventDefault();let z=Math.max(10,Math.min(90,R+A));C.style.flexBasis=`${z}%`,B.style.flexBasis=`${100-z}%`}},[r]),h="horizontal";return oa("div",{ref:(p)=>{if(l.current=p,typeof n==="function")n(p);else if(n)n.current=p},role:"separator","aria-orientation":"horizontal",tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":i,onMouseDown:m,onTouchStart:f,onKeyDown:u,className:a(Wd({direction:"horizontal",withHandle:t}),i&&"bg-primary",r&&"pointer-events-none opacity-50",e),...o,children:t&&oa("div",{className:a($d({direction:"horizontal"}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Yd.displayName="ResizableHandle";import*as st from"@radix-ui/react-scroll-area";import{cva as Sn}from"class-variance-authority";import{forwardRef as Xd}from"react";import{jsxDEV as Dr}from"react/jsx-dev-runtime";var Zd=Sn("relative overflow-hidden"),Fv={display:"flex",flexDirection:"column"},Ov={flex:"1 1 0%",minHeight:0},qd=Sn("flex touch-none select-none transition-colors duration-150",{variants:{orientation:{vertical:"h-full w-2.5 border-l border-l-transparent p-px",horizontal:"h-2.5 flex-col border-t border-t-transparent p-px"}},defaultVariants:{orientation:"vertical"}}),Jd=Sn("relative flex-1 rounded-full bg-border"),Qd=Xd(({className:e,children:t,style:r,...o},n)=>Dr(st.Root,{ref:n,className:a(Zd(),e),style:{...r,...Fv},...o,children:[Dr(st.Viewport,{className:"w-full rounded-[inherit]",style:Ov,children:t},void 0,!1,void 0,this),Dr(Nn,{},void 0,!1,void 0,this),Dr(st.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));Qd.displayName="ScrollArea";var Nn=Xd(({className:e,orientation:t="vertical",...r},o)=>Dr(st.ScrollAreaScrollbar,{ref:o,orientation:t,className:a(qd({orientation:t}),e),...r,children:Dr(st.ScrollAreaThumb,{className:a(Jd())},void 0,!1,void 0,this)},void 0,!1,void 0,this));Nn.displayName="ScrollBar";import{cva as Rn}from"class-variance-authority";import{createContext as Bv,forwardRef as Mn,useCallback as Ed,useContext as tp,useEffect as wn,useLayoutEffect as Dv,useRef as jd,useState as ep}from"react";import{jsxDEV as tr}from"react/jsx-dev-runtime";var be={sm:"sm",md:"md",lg:"lg"},rp=Rn("relative inline-flex items-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[be.sm]:"h-8 gap-0.5",[be.md]:"h-10 gap-0.5",[be.lg]:"h-11 gap-1"}},defaultVariants:{size:be.md}}),op=Rn(["relative z-10 inline-flex items-center justify-center rounded-[calc(var(--radius)-2px)]","cursor-pointer outline-none select-none","transition-[color] duration-150","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40"],{variants:{size:{[be.sm]:"size-6",[be.md]:"size-8",[be.lg]:"size-9"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:be.md,active:!1}}),ap=Rn(["relative z-10 inline-flex items-center justify-center gap-1.5 rounded-[calc(var(--radius)-2px)]","cursor-pointer outline-none select-none whitespace-nowrap font-medium","transition-[color] duration-150","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40"],{variants:{size:{[be.sm]:"h-6 px-2.5 text-xs",[be.md]:"h-8 px-3 text-sm",[be.lg]:"h-9 px-4 text-sm"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:be.md,active:!1}}),np={[be.sm]:"size-3",[be.md]:"size-3.5",[be.lg]:"size-4"},Ln=Bv({activeValue:"",onSelect:()=>{},size:be.md,disabled:!1}),_v=typeof window<"u"?Dv:wn,ip=Mn(({className:e,value:t,defaultValue:r,onValueChange:o,size:n,disabled:i=!1,children:s,...l},d)=>{let m=c(n),f=jd(null),[u,h]=ep(r??""),[p,y]=ep(null),S=jd(!0),M=t!==void 0?t:u,w=Ed((v)=>{if(i)return;if(t===void 0)h(v);o?.(v)},[i,t,o]),T=Ed(()=>{let v=f.current;if(!v)return;let C=v.querySelector('[data-state="active"]');if(!C){y(null);return}let B=v.getBoundingClientRect(),R=C.getBoundingClientRect();y({left:R.left-B.left,width:R.width})},[]);return _v(()=>{T()},[T,M]),wn(()=>{if(S.current)requestAnimationFrame(()=>{S.current=!1})},[]),wn(()=>{let v=f.current;if(!v)return;let C=new MutationObserver(()=>{T()});return C.observe(v,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>C.disconnect()},[T]),tr(Ln.Provider,{value:{activeValue:M,onSelect:w,size:m,disabled:i},children:tr("div",{ref:(v)=>{if(f.current=v,typeof d==="function")d(v);else if(d)d.current=v},role:"radiogroup",className:a(rp({size:m}),i&&"opacity-50 pointer-events-none",e),...l,children:[p&&tr("span",{"aria-hidden":"true",className:a("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!S.current&&"transition-[left,width] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]"),style:{left:p.left,width:p.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});ip.displayName="SegmentedControl";var sp=Mn(({className:e,value:t,icon:r,disabled:o=!1,...n},i)=>{let{activeValue:s,onSelect:l,size:d,disabled:m}=tp(Ln),f=s===t,u=o||m;return tr("button",{ref:i,type:"button",role:"radio","aria-checked":f,"aria-disabled":u||void 0,"data-state":f?"active":"inactive","data-value":t,disabled:u,onClick:()=>l(t),className:a(op({size:d,active:f}),e),...n,children:tr("span",{className:a(np[d??be.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)});sp.displayName="SegmentedControlItem";var lp=Mn(({className:e,value:t,icon:r,disabled:o=!1,children:n,...i},s)=>{let{activeValue:l,onSelect:d,size:m,disabled:f}=tp(Ln),u=l===t,h=o||f;return tr("button",{ref:s,type:"button",role:"radio","aria-checked":u,"aria-disabled":h||void 0,"data-state":u?"active":"inactive","data-value":t,disabled:h,onClick:()=>d(t),className:a(ap({size:m,active:u}),e),...i,children:[r&&tr("span",{className:a(np[m??be.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this),n]},void 0,!0,void 0,this)});lp.displayName="SegmentedControlLabelItem";import*as It from"@radix-ui/react-popover";import{cva as dp}from"class-variance-authority";import{Check as Gv,ChevronDown as Wv,X as $v}from"lucide-react";import{Children as Uv,createContext as Kv,forwardRef as To,isValidElement as Yv,useCallback as na,useContext as pp,useEffect as ia,useId as mp,useMemo as Xv,useRef as cp,useState as vo}from"react";import{jsxDEV as le,Fragment as eb}from"react/jsx-dev-runtime";var ae={sm:"sm",md:"md",lg:"lg",xl:"xl"},_r={default:"default",error:"error",success:"success"},bo={trigger:"trigger",auto:"auto"},Zv={start:"start",center:"center",end:"end"},up=dp(["gs-interactive group flex items-center gap-2 rounded-[var(--radius)] border border-input","bg-background text-sm text-foreground outline-none","placeholder:text-muted-foreground focus-visible:ring-2","data-[state=open]:ring-2","disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground","data-[placeholder]:text-muted-foreground","[&_[data-slot=select-value]]:line-clamp-1"].join(" "),{variants:{size:{[ae.sm]:"h-8 px-2.5 text-xs",[ae.md]:"h-10 px-3.5",[ae.lg]:"h-11 px-4.5 text-sm",[ae.xl]:"h-12 px-4 text-base"},status:{[_r.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[_r.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[_r.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:ae.md,status:_r.default}}),fp=dp(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[bo.trigger]:"w-[var(--radix-popover-trigger-width)]",[bo.auto]:"w-max min-w-0"},size:{[ae.sm]:"text-xs",[ae.md]:"text-sm",[ae.lg]:"text-sm",[ae.xl]:"text-base"}},defaultVariants:{widthMode:bo.auto,size:ae.md}}),qv={[ae.sm]:"min-h-7.5 py-1.5 px-2.5 pr-3 text-xs",[ae.md]:"min-h-9 py-2 px-3 pr-4.5 text-sm",[ae.lg]:"min-h-10 py-2.5 px-3.5 pr-5.5 text-sm",[ae.xl]:"min-h-11 py-3 px-4 pr-6 text-base"},Jv={[ae.sm]:"px-2 py-1 text-xs",[ae.md]:"px-2 py-1.5 text-sm",[ae.lg]:"px-2.5 py-1.5 text-sm",[ae.xl]:"px-3 py-2 text-base"},sa={[ae.sm]:"size-3.5",[ae.md]:"size-4",[ae.lg]:"size-4",[ae.xl]:"size-4.5"};function Hn(e){if(e===null||e===void 0||typeof e==="boolean")return"";if(typeof e==="string"||typeof e==="number")return String(e);if(Array.isArray(e))return e.map((t)=>Hn(t)).join("");if(Yv(e))return Hn(e.props.children);return""}var kn=Kv(null);function la(){let e=pp(kn);if(!e)throw Error("Select components must be used within Select");return e}function An(e){let t=pp(kn);if(e)return e;return t?.triggerSize??ae.md}var Qv=({children:e,value:t,defaultValue:r="",onValueChange:o,open:n,defaultOpen:i=!1,onOpenChange:s,disabled:l=!1})=>{let[d,m]=vo(ae.md),[f,u]=vo(!1),[h,p]=vo(r),[y,S]=vo(i),[M,w]=vo(0),T=cp(new Map),v=t!==void 0,C=n!==void 0,B=v?t:h,R=C?n:y,A=na((V)=>{if(!v)p(V);if(o?.(V),!C)S(!1);s?.(!1)},[v,C,o,s]),z=na((V)=>{if(l)return;if(!C)S(V);s?.(V)},[l,C,s]),I=na((V,P)=>{if(T.current.get(V)!==P)T.current.set(V,P),w((j)=>j+1)},[]),K=na((V)=>{return T.current.get(V)},[]),O=mp(),U=mp(),N=Xv(()=>({value:B,onValueChange:A,open:R,onOpenChange:z,triggerSize:d,setTriggerSize:m,triggerFullWidth:f,setTriggerFullWidth:u,disabled:l,triggerId:O,contentId:U,registerItem:I,getLabel:K}),[B,A,R,z,d,f,l,O,U,I,K,M]);return le(kn.Provider,{value:N,children:le(It.Root,{open:R,onOpenChange:z,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},Ev=({children:e,className:t})=>le("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),jv=({placeholder:e})=>{let{value:t,getLabel:r}=la();if(!t)return e?le("span",{className:"text-muted-foreground",children:e},void 0,!1,void 0,this):null;let o=r(t);return le(eb,{children:o??t},void 0,!1,void 0,this)},gp=To(({className:e,children:t,size:r=ae.md,status:o=_r.default,fullWidth:n=!1,clearable:i=!1,leadingIcon:s,indicatorIcon:l,renderValue:d,placeholder:m,onKeyDown:f,...u},h)=>{let p=la(),y=c(r)??r,S=p.setTriggerSize,M=p.setTriggerFullWidth;ia(()=>{S(y)},[y,S]),ia(()=>{M(n)},[n,M]);let w=p.value.length>0,T=i&&w&&!p.disabled,v=(R)=>{R.stopPropagation(),R.preventDefault(),p.onValueChange("")},C;if(d)C=w?d(p.value):m?le("span",{className:"text-muted-foreground",children:m},void 0,!1,void 0,this):null;else C=t;let B=(R)=>{if(f?.(R),R.defaultPrevented)return;if(R.key==="ArrowDown"||R.key==="ArrowUp"||R.key==="Enter"||R.key===" "){if(!p.open)R.preventDefault(),p.onOpenChange(!0)}};return le(It.Trigger,{asChild:!0,children:le("button",{ref:h,type:"button",role:"combobox","aria-expanded":p.open,"aria-haspopup":"listbox","aria-controls":p.contentId,id:p.triggerId,disabled:p.disabled,"data-state":p.open?"open":"closed","data-placeholder":w?void 0:"",className:a(up({size:y,status:o}),n?"w-full":"w-auto",e),onKeyDown:B,...u,children:[s&&le("i",{className:"inline-flex shrink-0 items-center text-muted-foreground not-italic",children:s},void 0,!1,void 0,this),le("span",{"data-slot":"select-value",className:"min-w-0 flex-1 text-left",children:C},void 0,!1,void 0,this),le("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[T&&le("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onMouseDown:(R)=>R.preventDefault(),onClick:v,className:"gs-interactive inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:le($v,{className:sa[y]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??le(Wv,{className:a(sa[y],"opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]",p.open&&"rotate-180")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});gp.displayName="SelectTrigger";var yp=To(({className:e,children:t,widthMode:r,size:o,align:n="start",side:i="bottom",sideOffset:s=4,portal:l=!0,forceMount:d=!0,onKeyDown:m,...f},u)=>{let h=la(),p=An(o),y=r??bo.auto,S=cp(null),M=no(u,S),w=(C)=>{let B=S.current;if(!B)return;let R=Array.from(B.querySelectorAll('[role="option"]:not([data-disabled])'));if(R.length===0)return;let A=B.querySelector('[role="option"]:focus'),z=A?R.indexOf(A):-1,I;switch(C){case"first":I=R[0];break;case"last":I=R[R.length-1];break;case"next":I=R[z+1]??R[0];break;case"prev":I=R[z-1]??R[R.length-1];break}I?.focus()},T=(C)=>{if(m?.(C),C.defaultPrevented)return;switch(C.key){case"ArrowDown":C.preventDefault(),w("next");break;case"ArrowUp":C.preventDefault(),w("prev");break;case"Home":C.preventDefault(),w("first");break;case"End":C.preventDefault(),w("last");break;case"Escape":C.preventDefault(),h.onOpenChange(!1);break}};ia(()=>{if(h.open)requestAnimationFrame(()=>w("first"))},[h.open]);let v=le(It.Content,{ref:M,id:h.contentId,role:"listbox","aria-labelledby":h.triggerId,side:i,align:n,sideOffset:s,forceMount:d,onKeyDown:T,onOpenAutoFocus:(C)=>C.preventDefault(),className:a(Ar(),fp({widthMode:y,size:p}),"p-1",e),...f,children:t},void 0,!1,void 0,this);if(l)return le(It.Portal,{children:v},void 0,!1,void 0,this);return v});yp.displayName="SelectContent";var vp=To(({className:e,size:t,...r},o)=>{let n=An(t);return le("div",{ref:o,className:a("font-semibold text-foreground",Jv[n],e),...r},void 0,!1,void 0,this)});vp.displayName="SelectLabel";var bp=To(({className:e,children:t,value:r,label:o,size:n,disabled:i=!1,...s},l)=>{let d=la(),m=An(n),f=d.value===r,u=d.registerItem,h=Hn(Uv.toArray(t)).trim();ia(()=>{let S=o??(h.length>0?h:r);u(r,S)},[h,r,o,u]);let p=()=>{if(!i)d.onValueChange(r)},y=(S)=>{if(S.key==="Enter"||S.key===" ")S.preventDefault(),p()};return le("div",{ref:l,role:"option",tabIndex:i?void 0:-1,"aria-selected":f,"aria-disabled":i||void 0,"data-selected":f?"":void 0,"data-disabled":i?"":void 0,"data-value":r,className:a("gs-interactive relative flex w-full cursor-pointer select-none items-center gap-2","rounded-[calc(var(--radius)-3px)] outline-none","hover:bg-accent focus-visible:bg-accent focus-visible:text-accent-foreground","data-disabled:cursor-not-allowed data-disabled:opacity-50",qv[m],f&&"bg-accent/50",e),onClick:p,onKeyDown:y,...s,children:[le("span",{className:a("flex shrink-0 items-center justify-center",sa[m]),children:f&&le(Gv,{className:sa[m]},void 0,!1,void 0,this)},void 0,!1,void 0,this),le("span",{className:"min-w-0 flex-1 truncate",children:t},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});bp.displayName="SelectItem";var Tp=To(({className:e,...t},r)=>le("div",{ref:r,className:a("-mx-1 my-1 h-px bg-border",e),...t},void 0,!1,void 0,this));Tp.displayName="SelectSeparator";import{cva as tb}from"class-variance-authority";import{forwardRef as rb}from"react";import{jsxDEV as ob}from"react/jsx-dev-runtime";var ho={horizontal:"horizontal",vertical:"vertical"},hp=tb("shrink-0 bg-border",{variants:{orientation:{[ho.horizontal]:"h-px w-full",[ho.vertical]:"h-full w-px"}},defaultVariants:{orientation:ho.horizontal}}),Pp=rb(({className:e,orientation:t=ho.horizontal,decorative:r=!0,...o},n)=>{let i=r?{role:"none"}:{role:"separator","aria-orientation":t};return ob("div",{ref:n,className:a(hp({orientation:t}),e),...i,...o},void 0,!1,void 0,this)});Pp.displayName="Separator";import{cva as ma}from"class-variance-authority";import{forwardRef as da}from"react";import{jsxDEV as pa}from"react/jsx-dev-runtime";var Te={sm:"sm",md:"md",lg:"lg"},xp=ma("animate-pulse rounded-[var(--radius)] bg-muted"),Cp=ma("w-full",{variants:{size:{[Te.sm]:"h-3",[Te.md]:"h-4",[Te.lg]:"h-5"}},defaultVariants:{size:Te.md}}),zp=ma("",{variants:{size:{[Te.sm]:"h-8 w-8",[Te.md]:"h-10 w-10",[Te.lg]:"h-12 w-12"}},defaultVariants:{size:Te.md}}),Sp=ma("",{variants:{size:{[Te.sm]:"h-8 w-20",[Te.md]:"h-9 w-24",[Te.lg]:"h-10 w-28"}},defaultVariants:{size:Te.md}}),Po=da(({className:e,circle:t=!1,...r},o)=>pa("div",{ref:o,className:a(xp(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));Po.displayName="Skeleton";var Np=da(({className:e,size:t=Te.md,...r},o)=>{let n=c(t)??Te.md;return pa(Po,{ref:o,className:a(Cp({size:n}),e),...r},void 0,!1,void 0,this)});Np.displayName="SkeletonText";var wp=da(({className:e,size:t=Te.md,...r},o)=>{let n=c(t)??Te.md;return pa(Po,{ref:o,circle:!0,className:a(zp({size:n}),e),...r},void 0,!1,void 0,this)});wp.displayName="SkeletonAvatar";var Rp=da(({className:e,size:t=Te.md,...r},o)=>{let n=c(t)??Te.md;return pa(Po,{ref:o,className:a(Sp({size:n}),e),...r},void 0,!1,void 0,this)});Rp.displayName="SkeletonButton";import*as Vt from"@radix-ui/react-slider";import{cva as fa}from"class-variance-authority";import{forwardRef as ab}from"react";import{jsxDEV as ua}from"react/jsx-dev-runtime";var ca={sm:"sm",md:"md",lg:"lg"},Mp=fa("relative flex w-full touch-none select-none items-center",{variants:{size:{[ca.sm]:"[&_[data-slider-track]]:h-0.5 [&_[data-slider-thumb]]:h-3 [&_[data-slider-thumb]]:w-3",[ca.md]:"[&_[data-slider-track]]:h-2 [&_[data-slider-thumb]]:h-5 [&_[data-slider-thumb]]:w-5",[ca.lg]:"[&_[data-slider-track]]:h-3 [&_[data-slider-thumb]]:h-6 [&_[data-slider-thumb]]:w-6"}},defaultVariants:{size:ca.md}}),Lp=fa("relative w-full grow overflow-hidden rounded-full bg-secondary"),Hp=fa("absolute h-full bg-primary"),kp=fa("gs-interactive block rounded-full border-2 border-primary bg-background ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"),Ap=ab(({className:e,size:t,...r},o)=>{let n=c(t);return ua(Vt.Root,{ref:o,className:a(Mp({size:n}),e),...r,children:[ua(Vt.Track,{"data-slider-track":!0,className:a(Lp()),children:ua(Vt.Range,{className:a(Hp())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((i,s)=>ua(Vt.Thumb,{"data-slider-thumb":!0,className:a(kp())},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});Ap.displayName="Slider";import{cva as Se}from"class-variance-authority";import{forwardRef as sb,useCallback as ga,useEffect as lb,useMemo as ya,useRef as xo,useState as Vp}from"react";import{useEffect as nb,useState as ib}from"react";function Ip(e){let[t,r]=ib(!1);return nb(()=>{let o=window.matchMedia(e);r(o.matches);let n=(i)=>r(i.matches);return o.addEventListener("change",n),()=>o.removeEventListener("change",n)},[e]),t}import{jsxDEV as $,Fragment as Vn}from"react/jsx-dev-runtime";var mb="(max-width: 639px)",x={sm:"sm",md:"md",lg:"lg",xl:"xl"},In={sm:"sm",md:"sm",lg:"md",xl:"md"},Gr={idle:"idle",loading:"loading",error:"error"},Fp=Se("z-[120] bg-black/40"),Op=Se(["gs-spotlight-content fixed inset-x-0 top-[15vh] z-[120] w-full mx-auto","rounded-[calc(var(--radius)+6px)] border border-border bg-popover shadow-2xl","overflow-hidden"],{variants:{size:{[x.sm]:"max-w-md",[x.md]:"max-w-xl",[x.lg]:"max-w-2xl",[x.xl]:"max-w-3xl"}},defaultVariants:{size:x.md}}),Bp=Se(["gs-sheet-content gs-sheet-content-bottom","fixed inset-x-0 bottom-0 z-[120] w-full flex flex-col","rounded-t-2xl border-t border-x border-border bg-popover shadow-2xl","overflow-hidden"]),Dp=Se("flex items-center border-b border-border",{variants:{size:{[x.sm]:"gap-2 px-3 py-2",[x.md]:"gap-3 px-4 py-3",[x.lg]:"gap-3 px-5 py-3.5",[x.xl]:"gap-4 px-6 py-4"}},defaultVariants:{size:x.md}}),_p=Se(["w-full flex-1 bg-transparent text-foreground","placeholder:text-muted-foreground","outline-none border-none"],{variants:{size:{[x.sm]:"text-sm",[x.md]:"text-base",[x.lg]:"text-lg",[x.xl]:"text-xl"}},defaultVariants:{size:x.md}}),Gp=Se("text-muted-foreground shrink-0",{variants:{size:{[x.sm]:"size-3.5",[x.md]:"size-4",[x.lg]:"size-5",[x.xl]:"size-5"}},defaultVariants:{size:x.md}}),Wp=Se("overflow-y-auto py-1",{variants:{size:{[x.sm]:"max-h-64",[x.md]:"max-h-80",[x.lg]:"max-h-96",[x.xl]:"max-h-[28rem]"}},defaultVariants:{size:x.md}}),$p=Se("font-semibold text-muted-foreground uppercase tracking-wide",{variants:{size:{[x.sm]:"px-2.5 py-1.5 text-[10px]",[x.md]:"px-3 py-2 text-xs",[x.lg]:"px-3.5 py-2 text-xs",[x.xl]:"px-4 py-2.5 text-xs"}},defaultVariants:{size:x.md}}),Up=Se(["group flex items-center cursor-pointer rounded-lg","text-foreground","transition-[color,background-color,transform,box-shadow] duration-100","active:scale-[0.98]"],{variants:{size:{[x.sm]:"gap-2 px-2.5 py-1.5 mx-1.5",[x.md]:"gap-3 px-3 py-2 mx-2",[x.lg]:"gap-3 px-3.5 py-2.5 mx-2",[x.xl]:"gap-4 px-4 py-3 mx-2.5"},selected:{true:"bg-primary/10",false:"hover:bg-muted hover:translate-x-0.5"},disabled:{true:"text-muted-foreground cursor-not-allowed pointer-events-none bg-muted/40",false:""}},defaultVariants:{size:x.md,selected:!1,disabled:!1}}),Kp=Se("shrink-0",{variants:{size:{[x.sm]:"size-3.5",[x.md]:"size-4",[x.lg]:"size-5",[x.xl]:"size-5"},selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{size:x.md,selected:!1}}),Yp=Se("flex-1 min-w-0"),Xp=Se("font-medium truncate",{variants:{size:{[x.sm]:"text-xs",[x.md]:"text-sm",[x.lg]:"text-sm",[x.xl]:"text-base"}},defaultVariants:{size:x.md}}),Zp=Se("text-muted-foreground truncate",{variants:{size:{[x.sm]:"text-[11px]",[x.md]:"text-xs",[x.lg]:"text-xs",[x.xl]:"text-sm"}},defaultVariants:{size:x.md}}),qp=Se("flex items-center gap-1 text-muted-foreground shrink-0",{variants:{size:{[x.sm]:"text-[10px]",[x.md]:"text-[11px]",[x.lg]:"text-xs",[x.xl]:"text-xs"}},defaultVariants:{size:x.md}}),va=Se("flex flex-col items-center justify-center text-muted-foreground",{variants:{size:{[x.sm]:"py-6 min-h-20",[x.md]:"py-8 min-h-24",[x.lg]:"py-10 min-h-28",[x.xl]:"py-12 min-h-32"},state:{empty:"text-muted-foreground",loading:"text-muted-foreground",error:"text-destructive"}},defaultVariants:{size:x.md,state:"empty"}}),ba=Se("font-medium",{variants:{size:{[x.sm]:"text-xs",[x.md]:"text-sm",[x.lg]:"text-sm",[x.xl]:"text-base"}},defaultVariants:{size:x.md}}),Jp=Se("mt-1",{variants:{size:{[x.sm]:"text-[11px]",[x.md]:"text-xs",[x.lg]:"text-xs",[x.xl]:"text-sm"}},defaultVariants:{size:x.md}}),Qp=(e,t)=>{if(!t)return!0;let r=t.toLowerCase();if(e.title.toLowerCase().includes(r))return!0;if(e.description?.toLowerCase().includes(r))return!0;if(e.keywords?.some((o)=>o.toLowerCase().includes(r)))return!0;return!1},Ep=sb(({className:e,open:t,onOpenChange:r,actions:o,onActionSelect:n,value:i,defaultValue:s="",onValueChange:l,placeholder:d="Search commands, pages, or actions...",size:m=x.md,status:f=Gr.idle,statusMessage:u,emptyText:h="No command found for this query.",hotkey:p,portal:y=!0,filterFn:S,renderItem:M,footer:w,...T},v)=>{let C=xo(null),B=xo(null),[R,A]=Vp(s),[z,I]=Vp(0),{isMac:K}=io(),O=Ip(mb),U=ya(()=>p&&p.length>0?p.join("+"):null,[p]);Qr(U??"",()=>r(!t),{enabled:!!U});let N=i!==void 0?i:R,V=S??Qp,P=ya(()=>o.filter((k)=>V(k,N)),[o,N,V]),F=ya(()=>P.map((k,W)=>k.disabled?-1:W).filter((k)=>k>=0),[P]),j=ya(()=>{let k=new Map,W=new Map,Q=0;for(let fe of P){let Ie=fe.group??"";if(!k.has(Ie))k.set(Ie,[]);k.get(Ie).push(fe),W.set(fe,Q),Q++}return{groups:k,indexMap:W}},[P]),H=xo(!1),Y=xo(t);if(Y.current&&!t)H.current=!0;if(!Y.current&&t)H.current=!1;Y.current=t;let g=xo({query:N,status:f,statusMessage:u??null,filtered:P,grouped:j,activeIndex:z,emptyText:h});if(!H.current)g.current={query:N,status:f,statusMessage:u??null,filtered:P,grouped:j,activeIndex:z,emptyText:h};lb(()=>{if(t)I(0)},[t]);let b=ga((k)=>{let W=k.target.value;A(W),l?.(W),I(0)},[l]),L=ga((k)=>{let W=B.current;if(!W)return;W.querySelectorAll('[role="option"]')[k]?.scrollIntoView({block:"nearest"})},[]),re=ga((k)=>{if(k.key==="ArrowDown"){if(k.preventDefault(),F.length===0)return;let Q=(F.indexOf(z)+1)%F.length,fe=F[Q];I(fe),L(fe);return}if(k.key==="ArrowUp"){if(k.preventDefault(),F.length===0)return;let Q=(F.indexOf(z)-1+F.length)%F.length,fe=F[Q];I(fe),L(fe);return}if(k.key==="Enter"){k.preventDefault();let W=P[z];if(W&&!W.disabled)n(W,z)}},[z,F,P,n,L]),ee=ga((k,W)=>{if(k.disabled)return;n(k,W)},[n]),oe=g.current,te=oe.status===Gr.idle,de=oe.status!==Gr.idle,dr=$(Vn,{children:[$("div",{className:a(Dp({size:m})),children:[$("svg",{className:a(Gp({size:m})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:$("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),$("input",{ref:C,type:"text",value:oe.query,onChange:b,placeholder:d,"aria-label":"Search",className:a(_p({size:m}))},void 0,!1,void 0,this),!O&&p?$("div",{className:"flex items-center gap-1",children:Ta(p,K).map((k,W)=>$("kbd",{className:a(Lr({size:In[m]})),children:k},W,!1,void 0,this))},void 0,!1,void 0,this):!O?$("kbd",{className:a(Lr({size:In[m]})),children:"ESC"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),de&&oe.status===Gr.loading&&$("div",{className:a(va({size:m,state:"loading"}),"animate-in fade-in-0 slide-in-from-bottom-1 duration-150"),children:[$(xt,{size:"sm",className:"mb-2 text-muted-foreground"},void 0,!1,void 0,this),$("div",{className:a(ba({size:m})),children:"Searching commands..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de&&oe.status===Gr.error&&$("div",{className:a(va({size:m,state:"error"}),"animate-in fade-in-0 slide-in-from-bottom-1 duration-150"),children:[$("div",{className:a(ba({size:m})),children:"Search failed"},void 0,!1,void 0,this),oe.statusMessage&&$("div",{className:a(Jp({size:m})),children:oe.statusMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),te&&oe.filtered.length===0&&$("div",{className:a(va({size:m,state:"empty"}),"animate-in fade-in-0 slide-in-from-bottom-1 duration-150"),children:$("div",{className:a(ba({size:m})),children:oe.emptyText},void 0,!1,void 0,this)},void 0,!1,void 0,this),te&&oe.filtered.length>0&&$("div",{ref:B,role:"listbox","aria-label":"Search results",className:a(Wp({size:m}),O&&"max-h-none flex-1 min-h-0"),children:Array.from(oe.grouped.groups.entries()).map(([k,W])=>$("div",{children:[k&&$("div",{className:a($p({size:m})),children:k},void 0,!1,void 0,this),W.map((Q)=>{let fe=oe.grouped.indexMap.get(Q)??0,Ie=fe===oe.activeIndex,Ua=Q.disabled??!1;return $("div",{role:"option","aria-selected":Ie,"aria-disabled":Ua,onClick:()=>ee(Q,fe),className:a(Up({size:m,selected:Ie,disabled:Ua})),children:M?M(Q,{active:Ie,disabled:Ua,index:fe}):$(Vn,{children:[Q.icon&&$("span",{className:a(Kp({size:m,selected:Ie})),children:Q.icon},void 0,!1,void 0,this),$("div",{className:a(Yp()),children:[$("div",{className:a(Xp({size:m})),children:Q.title},void 0,!1,void 0,this),Q.description&&$("div",{className:a(Zp({size:m})),children:Q.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q.shortcut&&Q.shortcut.length>0&&$("div",{className:a(qp({size:m})),children:Ta(Q.shortcut,K).map((df,pf)=>$("kbd",{className:a(Lr({size:In[m]})),children:df},pf,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},Q.id,!1,void 0,this)})]},k||"__ungrouped__",!0,void 0,this))},void 0,!1,void 0,this),w&&$("div",{className:"border-t border-border px-3 py-2",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X=$(jr,{"data-testid":"spotlight-overlay",className:a(Fp()),onClick:()=>r(!1)},void 0,!1,void 0,this),ue=$(cn,{...T,ref:v,className:a(O?Bp():Op({size:m}),e),"aria-label":"Spotlight search","aria-describedby":void 0,onOpenAutoFocus:(k)=>{k.preventDefault(),C.current?.focus()},onCloseAutoFocus:(k)=>k.preventDefault(),onKeyDown:re,children:[$(Uo,{className:"sr-only",children:"Spotlight search"},void 0,!1,void 0,this),O&&$("div",{className:"flex justify-center pt-2 pb-1",children:$("div",{className:"h-1 w-8 rounded-full bg-muted-foreground/30"},void 0,!1,void 0,this)},void 0,!1,void 0,this),dr]},void 0,!0,void 0,this);return $(Er,{open:t,onOpenChange:r,children:y?$(Wo,{children:[X,ue]},void 0,!0,void 0,this):$(Vn,{children:[X,ue]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Ep.displayName="Spotlight";import{cva as db}from"class-variance-authority";import{forwardRef as pb}from"react";import{jsxDEV as Ft}from"react/jsx-dev-runtime";var Ke={sm:"sm",md:"md",lg:"lg"},rr={up:"up",down:"down",neutral:"neutral"},jp=db("gs-interactive relative flex flex-col rounded-lg border border-border bg-card text-card-foreground shadow-sm transition-[color,background-color,border-color,box-shadow] duration-150 hover:shadow-md",{variants:{size:{[Ke.sm]:"gap-1 p-3",[Ke.md]:"gap-1.5 p-4",[Ke.lg]:"gap-2 p-5"}},defaultVariants:{size:Ke.md}}),cb={[Ke.sm]:"text-lg font-semibold",[Ke.md]:"text-2xl font-bold",[Ke.lg]:"text-3xl font-bold"},ub={[Ke.sm]:"text-xs",[Ke.md]:"text-sm",[Ke.lg]:"text-base"},fb={[rr.up]:"text-success",[rr.down]:"text-destructive",[rr.neutral]:"text-muted-foreground"},gb={[rr.up]:"↑",[rr.down]:"↓",[rr.neutral]:"→"},ec=pb(({className:e,size:t=Ke.md,label:r,value:o,trend:n,trendValue:i,icon:s,...l},d)=>{let m=c(t);return Ft("div",{ref:d,className:a(jp({size:m}),e),...l,children:[Ft("div",{className:"flex items-center justify-between",children:[Ft("span",{className:a("text-muted-foreground",ub[m]),children:r},void 0,!1,void 0,this),s&&Ft("span",{className:"text-muted-foreground/70","aria-hidden":"true",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ft("div",{className:"flex items-baseline gap-2",children:[Ft("span",{className:a("tracking-tight text-foreground",cb[m]),children:o},void 0,!1,void 0,this),n&&i&&Ft("span",{className:a("inline-flex items-center gap-0.5 text-xs font-medium",fb[n]),children:[Ft("span",{"aria-hidden":"true",children:gb[n]},void 0,!1,void 0,this),i]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});ec.displayName="StatCard";import{cva as or}from"class-variance-authority";import{Check as yb}from"lucide-react";import{forwardRef as ar}from"react";import{jsxDEV as Ot}from"react/jsx-dev-runtime";var tc=or("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),rc=or("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),oc=or(["relative z-10 flex shrink-0 items-center justify-center rounded-full border-2 font-semibold","transition-[color,background-color,border-color,box-shadow] duration-200 ease-out"],{variants:{status:{incomplete:["border-border/80 bg-card text-muted-foreground","shadow-[0_1px_2px_rgba(0,0,0,0.05)]"],current:["border-primary bg-primary text-primary-foreground","shadow-[0_2px_4px_rgba(99,102,241,0.2)]"],complete:["border-success/60 bg-success text-success-foreground","shadow-[0_1px_3px_rgba(0,0,0,0.1)]","[&>svg]:gs-step-check-animated"]},size:{sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base",xl:"h-14 w-14 text-lg"},animated:{true:"gs-step-indicator-animated",false:""}},defaultVariants:{status:"incomplete",size:"md",animated:!0}}),ac=or("rounded-full transition-[background-color,opacity] duration-300 ease-out",{variants:{orientation:{horizontal:"mx-2 mt-5 h-1 flex-1",vertical:"ml-5 min-h-10 w-1"},status:{incomplete:"bg-border/60",complete:"bg-gradient-to-r from-primary to-success"},size:{sm:"opacity-80",md:"",lg:"opacity-95",xl:"opacity-100"},animated:{true:"",false:""}},compoundVariants:[{status:"complete",orientation:"horizontal",animated:!0,className:"gs-connector-fill-animated"},{status:"complete",orientation:"vertical",animated:!0,className:"gs-connector-fill-vertical-animated"}],defaultVariants:{orientation:"horizontal",status:"incomplete",size:"md",animated:!0}}),nc=or("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),ic=or("font-medium transition-colors duration-200 ease-out",{variants:{status:{incomplete:"text-muted-foreground",current:"text-foreground",complete:"text-foreground"},size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{status:"incomplete",size:"md"}}),sc=or("text-muted-foreground transition-colors duration-200 ease-out",{variants:{size:{sm:"text-sm",md:"text-xs",lg:"text-sm",xl:"text-base"}},defaultVariants:{size:"md"}});var lc=ar(({className:e,orientation:t="horizontal",activeStep:r,...o},n)=>{return Ot("div",{ref:n,role:"group","aria-label":"Progress steps",className:a(tc({orientation:t}),e),"data-orientation":t,"data-active-step":r,...o},void 0,!1,void 0,this)});lc.displayName="Stepper";var mc=ar(({className:e,orientation:t="horizontal",isLast:r,isCurrent:o,...n},i)=>{return Ot("div",{ref:i,className:a(rc({orientation:t}),e),"data-last":r,"aria-current":o?"step":void 0,...n},void 0,!1,void 0,this)});mc.displayName="Step";var dc=ar(({className:e,status:t="incomplete",size:r="md",icon:o,step:n,children:i,animated:s=!0,...l},d)=>{let m=c(r);return Ot("div",{ref:d,className:a(oc({status:t,size:m,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?o||Ot(yb,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):i||n},void 0,!1,void 0,this)});dc.displayName="StepIndicator";var pc=ar(({className:e,orientation:t="horizontal",status:r="incomplete",size:o="md",animated:n=!0,...i},s)=>{let l=c(o);return Ot("div",{ref:s,className:a(ac({orientation:t,status:r,size:l,animated:n}),e),"data-status":r,...i},void 0,!1,void 0,this)});pc.displayName="StepConnector";var cc=ar(({className:e,orientation:t="horizontal",...r},o)=>{return Ot("div",{ref:o,className:a(nc({orientation:t}),e),...r},void 0,!1,void 0,this)});cc.displayName="StepContent";var uc=ar(({className:e,status:t="incomplete",size:r="md",...o},n)=>{let i=c(r);return Ot("h4",{ref:n,className:a(ic({status:t,size:i}),e),...o},void 0,!1,void 0,this)});uc.displayName="StepTitle";var fc=ar(({className:e,size:t="md",...r},o)=>{let n=c(t);return Ot("p",{ref:o,className:a(sc({size:n}),e),...r},void 0,!1,void 0,this)});fc.displayName="StepDescription";import*as ha from"@radix-ui/react-switch";import{cva as vb}from"class-variance-authority";import{forwardRef as bb}from"react";import{jsxDEV as gc}from"react/jsx-dev-runtime";var He={sm:"sm",md:"md",lg:"lg",xl:"xl"},Wr={default:"default",error:"error",success:"success"},yc=vb("gs-interactive relative inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent bg-input enabled:active:scale-[0.96] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:bg-input/70",{variants:{size:{[He.sm]:"h-4.5 w-8",[He.md]:"h-5 w-9",[He.lg]:"h-6 w-11",[He.xl]:"h-7 w-[3.25rem]"},status:{[Wr.default]:"disabled:data-[state=checked]:bg-muted-foreground/40 enabled:data-[state=unchecked]:hover:bg-input/80 data-[state=checked]:bg-primary data-[state=checked]:hover:bg-primary/90",[Wr.error]:"bg-destructive/30 disabled:bg-destructive/25 disabled:data-[state=checked]:bg-destructive/50 enabled:data-[state=unchecked]:hover:bg-destructive/45 focus-visible:ring-destructive data-[state=checked]:bg-destructive data-[state=checked]:hover:bg-destructive/90",[Wr.success]:"disabled:bg-success/20 disabled:data-[state=checked]:bg-success/45 focus-visible:ring-success enabled:data-[state=unchecked]:hover:bg-input/80 data-[state=checked]:bg-success data-[state=checked]:hover:bg-success/90"}},defaultVariants:{size:He.md,status:Wr.default}}),Tb={[He.sm]:"h-3.5 w-3.5",[He.md]:"h-4 w-4",[He.lg]:"h-5 w-5",[He.xl]:"h-6 w-6"},hb={[He.sm]:"data-[state=checked]:translate-x-3.5",[He.md]:"data-[state=checked]:translate-x-4",[He.lg]:"data-[state=checked]:translate-x-5",[He.xl]:"data-[state=checked]:translate-x-6"},vc=bb(({className:e,size:t=He.md,status:r=Wr.default,checked:o,disabled:n,...i},s)=>{let l=c(t);return gc(ha.Root,{ref:s,checked:o,disabled:n,className:a(yc({size:l,status:r}),e),...i,children:gc(ha.Thumb,{className:a("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",Tb[l],hb[l])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});vc.displayName="Switch";import{cva as Tt}from"class-variance-authority";import{createContext as Pb,forwardRef as Bt,useContext as bc}from"react";import{jsxDEV as lt}from"react/jsx-dev-runtime";var we={sm:"sm",md:"md",lg:"lg"},Fn=Pb(we.md),Tc=Tt("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),hc=Tt("w-full caption-bottom",{variants:{size:{[we.sm]:"text-xs",[we.md]:"text-sm",[we.lg]:"text-sm"}},defaultVariants:{size:we.md}}),Pc=Tt("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),xc=Tt("[&_tr:last-child]:border-0"),Cc=Tt("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),zc=Tt("gs-interactive border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),Sc=Tt("text-left align-middle font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[we.sm]:"h-8 px-2",[we.md]:"h-10 px-3",[we.lg]:"h-12 px-4"}},defaultVariants:{size:we.md}}),Nc=Tt("align-middle text-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[we.sm]:"p-2",[we.md]:"p-3",[we.lg]:"p-4"}},defaultVariants:{size:we.md}}),wc=Tt("mt-4 text-sm text-muted-foreground"),Rc=Bt(({className:e,containerClassName:t,size:r=we.md,...o},n)=>{let i=c(r)??we.md;return lt(Fn.Provider,{value:i,children:lt("div",{className:a(Tc(),t),children:lt("table",{ref:n,className:a(hc({size:i}),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Rc.displayName="Table";var Mc=Bt(({className:e,...t},r)=>lt("thead",{ref:r,className:a(Pc(),e),...t},void 0,!1,void 0,this));Mc.displayName="TableHeader";var Lc=Bt(({className:e,...t},r)=>lt("tbody",{ref:r,className:a(xc(),e),...t},void 0,!1,void 0,this));Lc.displayName="TableBody";var Hc=Bt(({className:e,...t},r)=>lt("tfoot",{ref:r,className:a(Cc(),e),...t},void 0,!1,void 0,this));Hc.displayName="TableFooter";var kc=Bt(({className:e,...t},r)=>lt("tr",{ref:r,className:a(zc(),e),...t},void 0,!1,void 0,this));kc.displayName="TableRow";var Ac=Bt(({className:e,size:t,...r},o)=>{let n=bc(Fn);return lt("th",{ref:o,className:a(Sc({size:t??n}),e),...r},void 0,!1,void 0,this)});Ac.displayName="TableHead";var Ic=Bt(({className:e,size:t,...r},o)=>{let n=bc(Fn);return lt("td",{ref:o,className:a(Nc({size:t??n}),e),...r},void 0,!1,void 0,this)});Ic.displayName="TableCell";var Vc=Bt(({className:e,...t},r)=>lt("caption",{ref:r,className:a(wc(),e),...t},void 0,!1,void 0,this));Vc.displayName="TableCaption";import*as rt from"@radix-ui/react-tabs";import{cva as On}from"class-variance-authority";import{createContext as xb,forwardRef as Bn,useCallback as Fc,useContext as Cb,useEffect as Dn,useLayoutEffect as zb,useRef as Pa,useState as Sb}from"react";import{jsxDEV as Co}from"react/jsx-dev-runtime";var mt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Oc=On("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[mt.sm]:"h-9 gap-0.5",[mt.md]:"h-11 gap-1",[mt.lg]:"h-12 gap-1",[mt.xl]:"h-14 gap-1.5"}},defaultVariants:{size:mt.md}}),Bc=On("gs-interactive relative z-10 inline-flex items-center justify-center whitespace-nowrap rounded-[calc(var(--radius)-2px)] font-semibold outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:text-muted-foreground/50 data-[state=active]:text-foreground data-[state=inactive]:hover:text-foreground/80",{variants:{size:{[mt.sm]:"px-2.5 py-1 text-xs",[mt.md]:"px-3 py-1.5 text-sm",[mt.lg]:"px-4 py-2 text-sm",[mt.xl]:"px-5 py-2.5 text-base"}},defaultVariants:{size:mt.md}}),Dc=On("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),_c=xb({registerTrigger:()=>{}}),Nb=typeof window<"u"?zb:Dn,wb=rt.Root,Gc=Bn(({className:e,size:t,children:r,...o},n)=>{let i=c(t),s=Pa(null),l=Pa(new Map),[d,m]=Sb(null),f=Pa(!0),u=Fc((p,y)=>{if(y)l.current.set(p,y);else l.current.delete(p)},[]),h=Fc(()=>{let p=s.current;if(!p)return;let y=p.querySelector('[data-state="active"]');if(!y){m(null);return}let S=p.getBoundingClientRect(),M=y.getBoundingClientRect();m({left:M.left-S.left,width:M.width})},[]);return Nb(()=>{h()},[h]),Dn(()=>{let p=s.current;if(!p)return;let y=new MutationObserver(()=>{f.current=!1,h()});return y.observe(p,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>y.disconnect()},[h]),Co(_c.Provider,{value:{registerTrigger:u},children:Co(rt.List,{ref:(p)=>{if(s.current=p,typeof n==="function")n(p);else if(n)n.current=p},className:a(Oc({size:i}),e),...o,children:[d&&Co("span",{"aria-hidden":"true",className:a("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!f.current&&"transition-[left,width] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]"),style:{left:d.left,width:d.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Gc.displayName=rt.List.displayName;var Wc=Bn(({className:e,size:t,value:r,...o},n)=>{let i=c(t),{registerTrigger:s}=Cb(_c),l=Pa(null);return Dn(()=>{return s(r,l.current),()=>s(r,null)},[r,s]),Co(rt.Trigger,{ref:(d)=>{if(l.current=d,typeof n==="function")n(d);else if(n)n.current=d},value:r,className:a(Bc({size:i}),e),...o},void 0,!1,void 0,this)});Wc.displayName=rt.Trigger.displayName;var $c=Bn(({className:e,...t},r)=>Co(rt.Content,{ref:r,className:a(Dc(),e),...t},void 0,!1,void 0,this));$c.displayName=rt.Content.displayName;import{cva as Rb}from"class-variance-authority";import{forwardRef as Mb}from"react";import{jsxDEV as Lb}from"react/jsx-dev-runtime";var zo={default:"default",error:"error",success:"success"},$r={sm:"sm",md:"md",lg:"lg",xl:"xl"},Uc=Rb("gs-interactive w-full resize-y rounded-[var(--radius)] border border-input bg-background text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-2 disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{status:{[zo.default]:"focus-visible:ring-primary",[zo.error]:"border-destructive focus-visible:ring-destructive",[zo.success]:"border-success focus-visible:ring-success"},size:{[$r.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[$r.md]:"min-h-[96px] px-3 py-2",[$r.lg]:"min-h-[112px] px-4 py-2.5",[$r.xl]:"min-h-[128px] px-4 py-3 text-base"}},defaultVariants:{status:zo.default,size:$r.md}}),Kc=Mb(({className:e,status:t=zo.default,size:r=$r.md,fullWidth:o=!1,noResize:n=!1,disabled:i,...s},l)=>{let d=c(r);return Lb("textarea",{ref:l,className:a(Uc({status:t,size:d}),i&&"bg-muted",o&&"w-full",n&&"resize-none",e),disabled:i,...s},void 0,!1,void 0,this)});Kc.displayName="Textarea";import{cva as Dt}from"class-variance-authority";import{forwardRef as _t}from"react";import{jsxDEV as dt}from"react/jsx-dev-runtime";var Yc=Dt("relative flex flex-col"),Xc=Dt(["group relative flex pb-8 last:pb-0","transition-opacity duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]"],{variants:{align:{left:"flex-row gap-4",right:"flex-row-reverse gap-4"},animated:{true:"gs-timeline-item-animated",false:""}},defaultVariants:{align:"left",animated:!0}}),Zc=Dt(["absolute bottom-0 w-0.5 rounded-full","transition-[background-color,opacity,height] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]"],{variants:{variant:{default:"bg-border",success:"bg-gradient-to-b from-success/50 to-success/30",warning:"bg-gradient-to-b from-warning/50 to-warning/30",error:"bg-gradient-to-b from-destructive/50 to-destructive/30",info:"bg-gradient-to-b from-info/50 to-info/30",primary:"bg-gradient-to-b from-primary/50 to-primary/30"},size:{sm:"left-[11px] top-7",md:"left-[15px] top-9",lg:"left-[21px] top-12",xl:"left-[25px] top-14"},animated:{true:"gs-timeline-connector-animated",false:""}},defaultVariants:{variant:"default",size:"md",animated:!0}}),qc=Dt(["relative z-10 flex shrink-0 items-center justify-center rounded-full border-2","transition-[color,background-color,border-color,box-shadow] duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]","[&>svg]:shrink-0"],{variants:{variant:{default:["border-border/80 bg-card text-muted-foreground","shadow-[0_1px_3px_rgba(0,0,0,0.12),0_0_0_2px_rgba(0,0,0,0.04)]","hover:border-border hover:shadow-[0_2px_6px_rgba(0,0,0,0.16),0_0_0_2px_rgba(0,0,0,0.06)]"],success:["border-success/60 bg-success/10 text-success","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--success-rgb,34,197,94),0.2)]","hover:bg-success/15 hover:border-success/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--success-rgb,34,197,94),0.25)]"],warning:["border-warning/60 bg-warning/10 text-warning","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--warning-rgb,234,179,8),0.2)]","hover:bg-warning/15 hover:border-warning/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--warning-rgb,234,179,8),0.25)]"],error:["border-destructive/60 bg-destructive/10 text-destructive","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--destructive-rgb,239,68,68),0.2)]","hover:bg-destructive/15 hover:border-destructive/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--destructive-rgb,239,68,68),0.25)]"],info:["border-info/60 bg-info/10 text-info","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--info-rgb,59,130,246),0.2)]","hover:bg-info/15 hover:border-info/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--info-rgb,59,130,246),0.25)]"],primary:["border-primary/60 bg-primary/10 text-primary","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--primary-rgb,99,102,241),0.2)]","hover:bg-primary/15 hover:border-primary/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--primary-rgb,99,102,241),0.25)]"]},size:{sm:"h-6 w-6 [&>svg]:size-3",md:"h-8 w-8 [&>svg]:size-4",lg:"h-11 w-11 [&>svg]:size-5",xl:"h-14 w-14 [&>svg]:size-6"},pulse:{true:"gs-timeline-dot-pulse-enabled gs-timeline-dot-pulse",false:""},animated:{true:"gs-timeline-dot-animated",false:""}},defaultVariants:{variant:"default",size:"md",pulse:!1,animated:!0}}),Jc=Dt("flex flex-col gap-1 pt-0.5 min-w-0 transition-opacity duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]"),Qc=Dt("font-semibold text-foreground leading-tight transition-colors duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]",{variants:{size:{sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"}},defaultVariants:{size:"md"}}),Ec=Dt("text-muted-foreground transition-colors duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{size:"md"}}),jc=Dt("font-medium text-muted-foreground/70 transition-colors duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-base"}},defaultVariants:{size:"md"}});var eu=_t(({className:e,...t},r)=>{return dt("div",{ref:r,role:"list","aria-label":"Timeline events",className:a(Yc(),e),...t},void 0,!1,void 0,this)});eu.displayName="Timeline";var tu=_t(({className:e,align:t,isLast:r,animated:o=!0,...n},i)=>{return dt("div",{ref:i,role:"listitem",className:a(Xc({align:t,animated:o}),e),"data-last":r,...n},void 0,!1,void 0,this)});tu.displayName="TimelineItem";var ru=_t(({className:e,variant:t,size:r,animated:o=!0,...n},i)=>{let s=c(r);return dt("div",{ref:i,className:a(Zc({variant:t,size:s,animated:o}),e),...n},void 0,!1,void 0,this)});ru.displayName="TimelineConnector";var ou=_t(({className:e,variant:t,size:r,icon:o,children:n,pulse:i=!1,animated:s=!0,...l},d)=>{let m=c(r);return dt("div",{ref:d,className:a(qc({variant:t,size:m,pulse:i,animated:s}),e),"aria-hidden":"true",...l,children:o||n||dt(Hb,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ou.displayName="TimelineDot";var au=_t(({className:e,...t},r)=>{return dt("div",{ref:r,className:a(Jc(),e),...t},void 0,!1,void 0,this)});au.displayName="TimelineContent";var nu=_t(({className:e,size:t,...r},o)=>{let n=c(t);return dt("h4",{ref:o,className:a(Qc({size:n}),e),...r},void 0,!1,void 0,this)});nu.displayName="TimelineTitle";var iu=_t(({className:e,size:t,...r},o)=>{let n=c(t);return dt("p",{ref:o,className:a(Ec({size:n}),e),...r},void 0,!1,void 0,this)});iu.displayName="TimelineDescription";var su=_t(({className:e,size:t,...r},o)=>{let n=c(t);return dt("time",{ref:o,className:a(jc({size:n}),e),...r},void 0,!1,void 0,this)});su.displayName="TimelineTime";function Hb(){return dt("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as lu}from"class-variance-authority";var Ur={default:"default",success:"success",info:"info",warning:"warning",error:"error"},Ye={sm:"sm",md:"md",lg:"lg"},_n=lu("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[Ur.default]:"border-border bg-card text-card-foreground",[Ur.success]:"border-success/30 bg-card text-card-foreground",[Ur.info]:"border-info/30 bg-card text-card-foreground",[Ur.warning]:"border-warning/30 bg-card text-card-foreground",[Ur.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[Ye.sm]:"gap-2 p-3",[Ye.md]:"gap-3 p-4",[Ye.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:Ur.default,size:Ye.md}}),Gn=lu("gs-interactive inline-flex shrink-0 items-center justify-center rounded-[var(--radius)] border border-border bg-transparent font-medium text-foreground hover:bg-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{size:{[Ye.sm]:"h-6 px-2 text-xs",[Ye.md]:"h-7 px-2.5 text-xs",[Ye.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:Ye.md}});import{AlertTriangle as _b,CheckCircle2 as Gb,Info as uu,X as Wb,XCircle as $b}from"lucide-react";import{forwardRef as Ub,useCallback as za,useEffect as Sa,useRef as Yn,useState as Xn}from"react";import{useSyncExternalStore as kb}from"react";var Ab=5,du=5000,Ib=500,Wn=0;function Vb(){return Wn=(Wn+1)%Number.MAX_SAFE_INTEGER,`toast-${Wn}-${Date.now()}`}var $n=new Set,Xe=[],ir=new Map,No=new Map,wo=!1,nr=new Map;function xa(){for(let e of $n)e()}function mu(){return Xe}function Fb(e){return $n.add(e),()=>{$n.delete(e)}}function Un(e,t){if(wo){nr.set(e,t);return}clearTimeout(ir.get(e));let r=Date.now(),o=setTimeout(()=>{ir.delete(e),nr.delete(e),Ca(e)},t);ir.set(e,o),nr.set(e,t);let n=setInterval(()=>{let i=Date.now()-r,s=t-i;if(s<=0)clearInterval(n),nr.delete(e);else nr.set(e,s)},100)}function Ob(e){clearTimeout(No.get(e));let t=setTimeout(()=>{Xe=Xe.filter((r)=>r.id!==e),No.delete(e),xa()},Ib);No.set(e,t)}function So(e){let t=e.id??Vb(),r=e.duration??du;if(Xe.find((i)=>i.id===t))return Xe=Xe.map((i)=>i.id===t?{...i,...e,id:t,open:!0,createdAt:Date.now()}:i),clearTimeout(No.get(t)),No.delete(t),Un(t,r),xa(),t;return Xe=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...Xe].slice(0,Ab),Un(t,r),xa(),t}function Ca(e){clearTimeout(ir.get(e)),ir.delete(e),nr.delete(e),Xe=Xe.map((t)=>t.id===e?{...t,open:!1}:t),xa(),Ob(e)}function pu(){for(let e of Xe)Ca(e.id)}function Bb(){if(wo)return;wo=!0;for(let[e,t]of ir)clearTimeout(t),ir.delete(e)}function Db(){if(!wo)return;wo=!1;for(let e of Xe)if(e.open){let t=nr.get(e.id)??du;Un(e.id,t)}}var cu=Object.assign((e)=>So(e),{success:(e,t)=>So({...t,variant:"success",title:e}),info:(e,t)=>So({...t,variant:"info",title:e}),warning:(e,t)=>So({...t,variant:"warning",title:e}),error:(e,t)=>So({...t,variant:"error",title:e}),dismiss:Ca,dismissAll:pu});function Kn(){return{toasts:kb(Fb,mu,mu),toast:cu,dismiss:Ca,dismissAll:pu,pauseAll:Bb,resumeAll:Db}}import{jsxDEV as ke}from"react/jsx-dev-runtime";var gu=10,fu=0.05,Kb=200,yu="cubic-bezier(0.2, 0.8, 0.2, 1)",Yb="cubic-bezier(0.22, 1, 0.36, 1)",Xb={"top-right":"top-4 right-4","top-left":"top-4 left-4","bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4","top-center":"top-4 left-1/2 -translate-x-1/2","bottom-center":"bottom-4 left-1/2 -translate-x-1/2"},Zb={success:(e)=>ke(Gb,{className:a("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>ke(uu,{className:a("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>ke(_b,{className:a("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>ke($b,{className:a("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>ke(uu,{className:a("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function qb(e,t,r,o,n){let i=e<o,s=r?n:e*gu,l=r?1:i?1-e*fu:1-o*fu,d=i||r?1:0,m=t-e;return{offset:s,scale:l,opacity:d,zIndex:m}}var vu=Ub(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:o=Ye.md,className:n,...i},s)=>{let{toasts:l,dismiss:d,pauseAll:m,resumeAll:f}=Kn(),u=c(o)??Ye.md,[h,p]=Xn(!1),[y,S]=Xn({}),M=Yn(null),w=Yn(void 0),T=e.startsWith("bottom"),v=za((P)=>{if(M.current=P,typeof s==="function")s(P);else if(s)s.current=P},[s]),C=za(()=>{clearTimeout(w.current),p(!0),m()},[m]),B=za(()=>{clearTimeout(w.current),w.current=setTimeout(()=>{p(!1),f()},Kb)},[f]);Sa(()=>{return()=>clearTimeout(w.current)},[]);let R=za((P,F)=>{S((j)=>{if(j[P]===F)return j;return{...j,[P]:F}})},[]);if(Sa(()=>{let P=new Set(l.map((F)=>F.id));S((F)=>{let j=!1,H={};for(let[Y,g]of Object.entries(F))if(P.has(Y))H[Y]=g;else j=!0;return j?H:F})},[l]),l.length===0)return null;let A=l.filter((P)=>P.open),z=new Map,I=0;for(let[P,F]of A.entries()){let j=y[F.id]??0;z.set(F.id,qb(P,A.length,h,r,I)),I+=j+t}let K=A[0],U=(K?y[K.id]??0:0)+Math.min(A.length-1,r-1)*gu,N=I-(A.length>0?t:0),V=h?N:U;return ke("ol",{ref:v,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:C,onMouseLeave:B,className:a("pointer-events-auto fixed z-[100] w-full max-w-[400px] outline-none",Xb[e],n),style:{height:Math.max(V,0),transition:`height 400ms ${yu}`},...i,children:l.map((P)=>{let F=!P.open,j=z.get(P.id);return ke(Jb,{toast:P,layout:j??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:F,isBottom:T,size:u,onDismiss:d,onMeasure:R},P.id,!1,void 0,this)})},void 0,!1,void 0,this)});vu.displayName="Toaster";function Jb({toast:e,layout:t,isClosed:r,isBottom:o,size:n,onDismiss:i,onMeasure:s}){let l=Yn(null),[d,m]=Xn(!1);Sa(()=>{let y=requestAnimationFrame(()=>m(!0));return()=>cancelAnimationFrame(y)},[]),Sa(()=>{let y=l.current;if(!y)return;let S=new ResizeObserver((M)=>{for(let w of M){let T=w.borderBoxSize?.[0];if(T)s(e.id,T.blockSize)}});return S.observe(y),()=>S.disconnect()},[e.id,s]);let f=o?{bottom:0,left:0,right:0}:{top:0,left:0,right:0},u,h,p;if(!d)u=`translateY(${o?80:-80}px) scale(0.9)`,h=0,p="none";else if(r)u=`translateY(${o?80:-80}px) scale(0.95)`,h=0,p="none";else u=`translateY(${o?-t.offset:t.offset}px) scale(${t.scale})`,h=t.opacity,p="auto";return ke("li",{ref:l,"data-state":e.open?"open":"closed","data-variant":e.variant,className:"absolute list-none",style:{...f,zIndex:t.zIndex,transformOrigin:o?"center bottom":"center top",transform:u,opacity:h,pointerEvents:p,transition:[`transform 400ms ${yu}`,`opacity 250ms ${Yb}`].join(", ")},children:ke("div",{className:a(_n({variant:e.variant,size:n}),"w-full"),children:[Zb[e.variant]?.(n),ke("div",{className:"flex-1 space-y-0.5",children:[e.title&&ke("p",{className:a("font-semibold leading-tight",n==="sm"?"text-xs":"text-sm"),children:e.title},void 0,!1,void 0,this),e.description&&ke("p",{className:a("leading-snug text-muted-foreground",n==="sm"?"text-xs":"text-sm"),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.action&&ke("button",{type:"button",className:a(Gn({size:n}),"mt-0.5"),onClick:e.action.onClick,"aria-label":e.action.altText,children:e.action.label},void 0,!1,void 0,this),e.dismissible!==!1&&ke("button",{type:"button",className:a("gs-interactive mt-0.5 shrink-0 rounded-[var(--radius)] p-1 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",n==="sm"?"[&>svg]:size-3.5":"[&>svg]:size-4"),onClick:()=>i(e.id),"aria-label":"Dismiss",children:ke(Wb,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import*as bu from"@radix-ui/react-toggle";import{cva as Qb}from"class-variance-authority";import{forwardRef as Eb}from"react";import{jsxDEV as jb}from"react/jsx-dev-runtime";var Zn={default:"default",outline:"outline"},Na={sm:"sm",md:"md",lg:"lg"},wa=Qb("gs-interactive inline-flex items-center justify-center gap-2 rounded-[var(--radius)] border border-transparent text-sm font-medium outline-none transition-[color,background-color,border-color] duration-150 hover:bg-muted hover:text-muted-foreground focus-visible:border-primary disabled:cursor-not-allowed disabled:pointer-events-none data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{[Zn.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[Zn.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[Na.sm]:"h-7 px-1.5 min-w-7 text-xs",[Na.md]:"h-10 px-3 min-w-10",[Na.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:Zn.default,size:Na.md}}),Tu=Eb(({className:e,variant:t,size:r,...o},n)=>{let i=c(r);return jb(bu.Root,{ref:n,className:a(wa({variant:t,size:i}),e),...o},void 0,!1,void 0,this)});Tu.displayName="Toggle";import*as Ra from"@radix-ui/react-toggle-group";import{cva as eT}from"class-variance-authority";import{createContext as tT,forwardRef as hu,useContext as rT}from"react";import{jsxDEV as qn}from"react/jsx-dev-runtime";var oT={default:"default",outline:"outline"},aT={sm:"sm",md:"md",lg:"lg"},Pu=eT("flex items-center justify-center gap-1"),xu=tT({size:aT.md,variant:oT.default}),Cu=hu(({className:e,variant:t,size:r,children:o,...n},i)=>{let s=c(r);return qn(Ra.Root,{ref:i,className:a(Pu(),e),...n,children:qn(xu.Provider,{value:{variant:t,size:s},children:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Cu.displayName="ToggleGroup";var zu=hu(({className:e,children:t,variant:r,size:o,...n},i)=>{let s=rT(xu),l=c(o);return qn(Ra.Item,{ref:i,className:a(wa({variant:r??s.variant,size:l??s.size}),e),...n,children:t},void 0,!1,void 0,this)});zu.displayName="ToggleGroupItem";import{cva as Su}from"class-variance-authority";import{forwardRef as Ma}from"react";import{jsxDEV as La}from"react/jsx-dev-runtime";var ot={sm:"sm",md:"md",lg:"lg"},Nu=Su("flex items-center border-b border-border bg-background",{variants:{size:{[ot.sm]:"gap-1.5 px-3 py-1.5",[ot.md]:"gap-2 px-4 py-2",[ot.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:ot.md}}),wu=Ma(({className:e,size:t=ot.md,...r},o)=>{let n=c(t);return La("div",{ref:o,role:"toolbar",className:a(Nu({size:n}),e),...r},void 0,!1,void 0,this)});wu.displayName="Toolbar";var Ru=Su("flex items-center",{variants:{size:{[ot.sm]:"gap-1",[ot.md]:"gap-1.5",[ot.lg]:"gap-2"}},defaultVariants:{size:ot.md}}),Mu=Ma(({className:e,size:t=ot.md,...r},o)=>{let n=c(t);return La("div",{ref:o,role:"group",className:a(Ru({size:n}),e),...r},void 0,!1,void 0,this)});Mu.displayName="ToolbarGroup";var Lu=Ma(({className:e,...t},r)=>{return La("div",{ref:r,role:"none",className:a("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});Lu.displayName="ToolbarSeparator";var Hu=Ma(({className:e,...t},r)=>{return La("div",{ref:r,className:a("flex-1",e),...t},void 0,!1,void 0,this)});Hu.displayName="ToolbarSpacer";import*as pt from"@radix-ui/react-tooltip";import{cva as nT}from"class-variance-authority";import{createContext as iT,forwardRef as ku,useContext as Au}from"react";import{jsxDEV as Ro}from"react/jsx-dev-runtime";var sT=pt.Provider,Jn=iT(!1),Iu=({persistOnClick:e=!1,children:t,...r})=>Ro(Jn.Provider,{value:e,children:Ro(pt.Root,{...r,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this);Iu.displayName="Tooltip";var Vu=ku(({onClick:e,onPointerDown:t,...r},o)=>{let n=Au(Jn);return Ro(pt.Trigger,{ref:o,onClick:n?(i)=>{i.preventDefault(),e?.(i)}:e,onPointerDown:n?(i)=>{i.preventDefault(),t?.(i)}:t,...r},void 0,!1,void 0,this)});Vu.displayName="TooltipTrigger";var sr={sm:"sm",md:"md",lg:"lg",xl:"xl"},Fu=nT("z-50 overflow-hidden rounded-[var(--radius)] border border-primary/20 bg-primary text-primary-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-tooltip-content-transform-origin)]",{variants:{size:{[sr.sm]:"px-2 py-1 text-xs",[sr.md]:"px-3 py-1.5 text-xs",[sr.lg]:"px-4 py-2 text-sm",[sr.xl]:"px-5 py-2.5 text-sm"}},defaultVariants:{size:sr.md}}),Ou=ku(({className:e,sideOffset:t=4,onPointerDownOutside:r,size:o=sr.md,...n},i)=>{let s=Au(Jn),l=c(o);return Ro(pt.Portal,{children:Ro(pt.Content,{ref:i,sideOffset:t,className:a(Fu({size:l}),e),onPointerDownOutside:s?(d)=>{d.preventDefault(),r?.(d)}:r,...n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ou.displayName="TooltipContent";import{createContext as lT,useCallback as lr,useContext as mT,useEffect as Aa,useLayoutEffect as dT,useMemo as Ha,useRef as Gt,useState as Bu}from"react";import{jsxDEV as pT}from"react/jsx-dev-runtime";var Du=typeof window<"u"?dT:Aa,En=lT(null);function ka(e,t){return e.theme===t.theme&&e.colorScheme===t.colorScheme}var mr=({children:e,value:t,initialState:r,onChange:o,onStateChange:n,transformState:i,readState:s,writeState:l,syncWithSystem:d=!0,enableTransition:m=!1,transitionDuration:f,defaultTheme:u,defaultColorScheme:h,themes:p,attribute:y,colorSchemeAttribute:S,darkClassName:M,storage:w})=>{let T=Ha(()=>Kr({defaultTheme:u,defaultColorScheme:h,themes:p,attribute:y,colorSchemeAttribute:S,darkClassName:M,storage:w}),[u,h,p,y,S,M,w]),[v,C]=Bu(()=>ct(r,T)),[B,R]=Bu(Oa),z=Ha(()=>t?ct(t,T):null,[t,T])??v,I=Ha(()=>({...z,resolvedColorScheme:Qn(z.colorScheme,B)}),[z,B]),K=t!==void 0,O=Gt(z);O.current=z;let U=Gt(!1),N=Gt(!1),V=Gt(!1),P=Gt(z),F=Gt(null),j=Gt(m);j.current=m;let H=Gt(f);H.current=f;let Y=lr((X)=>{return Va(X)},[]),g=lr((X,ue)=>{Fa(X,ue)},[]),b=s??Y,L=l??g;Aa(()=>{if(!d||typeof window>"u"||typeof window.matchMedia!=="function")return;let X=window.matchMedia("(prefers-color-scheme: dark)"),ue=()=>{R(X.matches?ut.dark:ut.light)};return ue(),X.addEventListener("change",ue),()=>X.removeEventListener("change",ue)},[d]),Aa(()=>{if(K)return;C((X)=>{let ue=ct(X,T);return ka(X,ue)?X:ue})},[T,K]),Du(()=>{if(K||U.current)return;U.current=!0;let X=b(T);if(!X)return;let ue=O.current,k=ct(X,T),W={reason:"hydrate",previousState:ue},Q=i?ct(i(k,W),T):k;if(ka(ue,Q))return;F.current=W,C(Q),o?.(Q,W),n?.(Q,W)},[T,K,o,n,b,i]),Du(()=>{if(typeof document>"u")return;let X=!V.current;if(V.current=!0,!X&&j.current&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){let k=H.current??200,W=document.createElement("style");W.setAttribute("data-gs-theme-transition",""),W.textContent=`*, *::before, *::after { transition: color ${k}ms ease, background-color ${k}ms ease, border-color ${k}ms ease, box-shadow ${k}ms ease, fill ${k}ms ease, stroke ${k}ms ease !important; }`,document.head.appendChild(W),Ia(document.documentElement,I,T);let Q=requestAnimationFrame(()=>{setTimeout(()=>W.remove(),k)});return()=>{cancelAnimationFrame(Q),W.remove()}}Ia(document.documentElement,I,T);return},[T,I]),Aa(()=>{if(typeof window>"u")return;if(!N.current){N.current=!0,P.current=z;return}let X=P.current;if(ka(X,z))return;let ue=F.current??{reason:"set-state",previousState:X};F.current=null,L(z,T,ue),P.current=z},[T,z,L]);let re=lr((X,ue)=>{let k=O.current,W=typeof X==="function"?X(k):X,Q=ct({theme:W.theme??k.theme,colorScheme:W.colorScheme??k.colorScheme},T),fe={reason:ue,previousState:k},Ie=i?ct(i(Q,fe),T):Q;if(ka(k,Ie))return;if(F.current=fe,!K)C(Ie);o?.(Ie,fe),n?.(Ie,fe)},[T,K,o,n,i]),ee=lr((X)=>{re(X,"set-state")},[re]),oe=lr((X)=>{re({theme:X},"set-theme")},[re]),te=lr((X)=>{re({colorScheme:X},"set-color-scheme")},[re]),de=lr(()=>{let X=I.resolvedColorScheme===ut.dark?ut.light:ut.dark;re({colorScheme:X},"toggle-color-scheme")},[I.resolvedColorScheme,re]),dr=Ha(()=>({theme:z.theme,colorScheme:z.colorScheme,resolvedColorScheme:I.resolvedColorScheme,state:z,resolvedState:I,contract:T,themes:T.themes,setTheme:oe,setColorScheme:te,setState:ee,toggleColorScheme:de}),[z,I,T,oe,te,ee,de]);return pT(En.Provider,{value:dr,children:e},void 0,!1,void 0,this)};mr.displayName="ThemeProvider";var Ba=()=>{let e=mT(En);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e};import{jsxDEV as Da}from"react/jsx-dev-runtime";function Ga(e){return typeof e==="object"&&e!==null}function ht(e){return typeof e==="string"&&e.trim().length>0}function _u(e){if(!Ga(e))return!1;return Object.values(e).every(ht)}function Wu(e){if(!Ga(e))return!1;if(!_u(e.light))return!1;if(e.dark===void 0)return!0;return _u(e.dark)}function $u(e){return Ga(e)&&ht(e.cssText)}function cT(e){return Ga(e)&&ht(e.theme)}function jn(e){return Error(`Invalid theme registry definition: ${e}`)}function Gu(e){let t=new Set,r=[];for(let o of e){if(!ht(o)||t.has(o))continue;t.add(o),r.push(o)}return r}function uT(e){return e.filter(ht).join(`
|
|
2
|
+
import{A as Zu,B as Ju,C as qu,D as Qu,E as Eu,F as ju,G as ef,H as tf,I as Kr,J as ct,K as rf,L as of,M as af,N as nf,O as Va,P as Fa,Q as Qn,R as Oa,S as sf,T as lf,U as Ia,V as mf,W as _a,a,b as cf,c as wT,d as RT,e as MT,f as LT,g as HT,h as kT,i as AT,j as IT,k as VT,l as FT,m as OT,n as BT,o as Hm,p as bn,q as DT,r as nn,s as sn,t as Zo,u as Ta,v as _T,w as no,x as GT,y as WT,z as ut}from"./chunk-dweaczp3.js";import{cva as HR}from"class-variance-authority";import*as at from"@radix-ui/react-accordion";import{cva as Ya}from"class-variance-authority";import{ChevronDown as bf}from"lucide-react";import{createContext as Tf,forwardRef as Ho,useContext as ri}from"react";import{createContext as gf,useContext as ti}from"react";import{jsxDEV as vf}from"react/jsx-dev-runtime";var Mo="md",Ka=gf(Mo),Lo=({density:e,children:t})=>{return vf(Ka.Provider,{value:e,children:t},void 0,!1,void 0,this)};Lo.displayName="DensityProvider";var yf=()=>{return ti(Ka)};function c(e){let t=ti(Ka);if(e!==void 0)return e;return t}import{jsxDEV as Pt}from"react/jsx-dev-runtime";var Re={sm:"sm",md:"md",lg:"lg"},Xa=Tf(Re.md),oi=Ya("border-b border-border"),ai=Ya("gs-interactive flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[Re.sm]:"py-3 text-xs [&>svg]:size-3.5",[Re.md]:"py-4 text-sm [&>svg]:size-4",[Re.lg]:"py-5 text-base [&>svg]:size-5"}},defaultVariants:{size:Re.md}}),ni=Ya("gs-accordion-content overflow-hidden",{variants:{size:{[Re.sm]:"text-xs",[Re.md]:"text-sm",[Re.lg]:"text-base"}},defaultVariants:{size:Re.md}}),hf={[Re.sm]:"pt-0 pb-3",[Re.md]:"pt-0 pb-4",[Re.lg]:"pt-0 pb-5"},ii=Ho(({size:e=Re.md,...t},r)=>{let o=c(e)??Re.md;return Pt(Xa.Provider,{value:o,children:Pt(at.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ii.displayName="Accordion";var si=Ho(({className:e,...t},r)=>Pt(at.Item,{ref:r,className:a(oi(),e),...t},void 0,!1,void 0,this));si.displayName="AccordionItem";var li=Ho(({className:e,children:t,...r},o)=>{let n=ri(Xa);return Pt(at.Header,{className:"flex",children:Pt(at.Trigger,{ref:o,className:a(ai({size:n}),e),...r,children:[t,Pt(bf,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});li.displayName="AccordionTrigger";var mi=Ho(({className:e,children:t,...r},o)=>{let n=ri(Xa);return Pt(at.Content,{ref:o,className:a(ni({size:n}),e),...r,children:Pt("div",{className:hf[n],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});mi.displayName="AccordionContent";import{cva as Za}from"class-variance-authority";import{TriangleAlert as Pf,CircleCheck as xf,Info as Cf,CircleAlert as zf}from"lucide-react";import{forwardRef as Ja}from"react";import{jsxDEV as qa}from"react/jsx-dev-runtime";var pr={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Yr={sm:"sm",md:"md",lg:"lg",xl:"xl"},di=Za("relative w-full rounded-[var(--radius)] border [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{[pr.default]:"bg-background text-foreground",[pr.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[pr.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[pr.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[pr.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[Yr.sm]:"p-3 text-xs [&>svg]:top-3 [&>svg]:left-3 [&>svg~*]:pl-6",[Yr.md]:"p-4 text-sm",[Yr.lg]:"p-5 text-sm",[Yr.xl]:"p-6 text-base [&>svg]:top-6 [&>svg]:left-6 [&>svg~*]:pl-8"}},defaultVariants:{variant:pr.default,size:Yr.md}}),pi=Za("mb-1 font-medium leading-none tracking-tight"),ci=Za("text-sm [&_p]:leading-relaxed"),ui=Ja(({className:e,variant:t,size:r,...o},n)=>{let i=c(r);return qa("div",{ref:n,role:"alert",className:a(di({variant:t,size:i}),e),...o},void 0,!1,void 0,this)});ui.displayName="Alert";var fi=Ja(({className:e,...t},r)=>qa("h5",{ref:r,className:a(pi(),e),...t},void 0,!1,void 0,this));fi.displayName="AlertTitle";var gi=Ja(({className:e,...t},r)=>qa("div",{ref:r,className:a(ci(),e),...t},void 0,!1,void 0,this));gi.displayName="AlertDescription";import*as he from"@radix-ui/react-alert-dialog";import{cva as Ci}from"class-variance-authority";import{forwardRef as fr}from"react";import{Slot as yi}from"@radix-ui/react-slot";import{cva as Ea}from"class-variance-authority";import{forwardRef as ko}from"react";import{forwardRef as Sf}from"react";import{jsxDEV as Qa}from"react/jsx-dev-runtime";var cr={sm:"sm",md:"md",lg:"lg",xl:"xl"},Nf={[cr.sm]:"h-4 w-4",[cr.md]:"h-5 w-5",[cr.lg]:"h-6 w-6",[cr.xl]:"h-8 w-8"},xt=Sf(({className:e,size:t=cr.md,label:r="Loading",...o},n)=>{let i=c(t);return Qa("span",{ref:n,className:a("inline-flex items-center justify-center",e),role:"status","aria-label":r,...o,children:[Qa("span",{className:a("animate-spin rounded-full border-2 border-current border-r-transparent",Nf[i])},void 0,!1,void 0,this),Qa("span",{className:"sr-only",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});xt.displayName="Spinner";import{jsxDEV as gt}from"react/jsx-dev-runtime";var ft={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},Ve={sm:"sm",md:"md",lg:"lg",xl:"xl",icon:"icon",iconSm:"icon-sm",iconLg:"icon-lg"},Ct={default:"default",success:"success",warning:"warning",error:"error",info:"info"},ur={sm:"sm",md:"md",lg:"lg"},wf="Loading",Rf="button",Xr=Ea("gs-interactive relative inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--radius)] border border-transparent font-semibold outline-none focus-visible:border-primary disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{variant:{[ft.primary]:"border-primary bg-primary text-primary-foreground enabled:hover:bg-primary/90",[ft.secondary]:"border-secondary bg-secondary text-secondary-foreground enabled:hover:bg-secondary/90",[ft.neutral]:"border-border bg-muted text-foreground enabled:hover:bg-muted/90",[ft.outline]:"border-border bg-background text-foreground enabled:hover:border-primary enabled:hover:bg-muted/50",[ft.ghost]:"border-transparent bg-transparent text-foreground enabled:hover:bg-muted/70",[ft.danger]:"border-destructive bg-destructive text-destructive-foreground enabled:hover:bg-destructive/90"},size:{[Ve.sm]:"h-8 px-2.5 text-xs",[Ve.md]:"h-10 px-4 text-sm",[Ve.lg]:"h-11 px-5 text-sm",[Ve.xl]:"h-12 px-6 text-base",[Ve.icon]:"h-10 w-10 p-0",[Ve.iconSm]:"h-9 w-9 p-0",[Ve.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:ft.primary,size:Ve.md}}),vi=Ea("shrink-0",{variants:{size:{[ur.sm]:"size-3",[ur.md]:"size-4",[ur.lg]:"size-4.5"}},defaultVariants:{size:ur.md}}),bi=Ea("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[10px] leading-none",{variants:{tone:{[Ct.default]:"border-border/70 bg-background/75 text-muted-foreground",[Ct.success]:"border-success/35 bg-success/12 text-success",[Ct.warning]:"border-warning/35 bg-warning/12 text-warning",[Ct.error]:"border-destructive/35 bg-destructive/12 text-destructive",[Ct.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:Ct.default}});function Mf(e){return e===Ve.icon||e===Ve.iconSm||e===Ve.iconLg}function Lf(e,t,r){return e&&t?-1:r}function Hf(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function kf(){if(typeof process>"u")return!0;return!0}var Ti=ko(({className:e,size:t=ur.md,...r},o)=>gt(yi,{ref:o,className:a(vi({size:t}),e),...r},void 0,!1,void 0,this));Ti.displayName="ButtonIcon";var hi=ko(({className:e,...t},r)=>gt("span",{ref:r,className:a("truncate",e),...t},void 0,!1,void 0,this));hi.displayName="ButtonLabel";var Pi=ko(({className:e,tone:t=Ct.default,...r},o)=>gt("span",{ref:o,className:a(bi({tone:t}),e),...r},void 0,!1,void 0,this));Pi.displayName="ButtonBadge";var xi=ko(({className:e,variant:t=ft.primary,size:r=Ve.md,asChild:o=!1,loading:n=!1,loadingText:i=wf,fullWidth:s=!1,leadingIcon:l,trailingIcon:d,disabled:m,children:f,type:u,tabIndex:v,onClick:p,...y},z)=>{let M=c(r),w=M??r,h=Hf(y);if(kf()&&Mf(w)&&!h)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let b=Boolean(m||n),C=a(Xr({variant:t,size:M}),s&&"w-full",e);if(o)return gt(yi,{ref:z,className:C,"aria-disabled":b||void 0,"aria-busy":n||void 0,tabIndex:Lf(!0,b,v),onClick:b?(B)=>{B.preventDefault()}:p,...y,children:f},void 0,!1,void 0,this);return gt("button",{ref:z,className:C,disabled:b,"aria-disabled":b,"aria-busy":n,tabIndex:v,type:u??Rf,onClick:n?void 0:p,...y,children:[gt("span",{className:a("absolute inset-0 flex items-center justify-center transition-opacity duration-150",n?"opacity-100":"opacity-0"),"aria-hidden":"true",children:gt(xt,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),n&>("span",{className:"sr-only",children:i},void 0,!1,void 0,this),gt("span",{className:a("inline-flex items-center justify-center gap-2 transition-opacity duration-150",n&&"opacity-0"),children:[l,f,d]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});xi.displayName="Button";import{jsxDEV as nt}from"react/jsx-dev-runtime";var zt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},zi=Ci("gs-dialog-overlay fixed inset-0 z-50 bg-black/50"),Si=Ci("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 border border-border bg-background p-6 text-foreground shadow-[var(--shadow-xl)] rounded-[var(--radius)]",{variants:{size:{[zt.sm]:"max-w-sm",[zt.md]:"max-w-md",[zt.lg]:"max-w-lg",[zt.xl]:"max-w-xl",[zt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:zt.md}}),Af=he.Root,If=he.Trigger,Ni=he.Portal,ja=fr(({className:e,...t},r)=>nt(he.Overlay,{ref:r,className:a(zi(),e),...t},void 0,!1,void 0,this));ja.displayName="AlertDialogOverlay";var wi=fr(({className:e,size:t=zt.md,...r},o)=>{let n=c(t);return nt(Ni,{children:[nt(ja,{},void 0,!1,void 0,this),nt(he.Content,{ref:o,className:a(Si({size:n}),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});wi.displayName="AlertDialogContent";var Ri=({className:e,...t})=>nt("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Ri.displayName="AlertDialogHeader";var Mi=({className:e,...t})=>nt("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);Mi.displayName="AlertDialogFooter";var Li=fr(({className:e,...t},r)=>nt(he.Title,{ref:r,className:a("text-lg font-semibold",e),...t},void 0,!1,void 0,this));Li.displayName="AlertDialogTitle";var Hi=fr(({className:e,...t},r)=>nt(he.Description,{ref:r,className:a("text-sm text-muted-foreground",e),...t},void 0,!1,void 0,this));Hi.displayName="AlertDialogDescription";var ki=fr(({className:e,...t},r)=>nt(he.Action,{ref:r,className:a(Xr(),e),...t},void 0,!1,void 0,this));ki.displayName="AlertDialogAction";var Ai=fr(({className:e,...t},r)=>nt(he.Cancel,{ref:r,className:a(Xr({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));Ai.displayName="AlertDialogCancel";import*as Ii from"@radix-ui/react-aspect-ratio";var Vf=Ii.Root;import*as yr from"@radix-ui/react-avatar";import{cva as Ff}from"class-variance-authority";import{forwardRef as Ao}from"react";import{jsxDEV as gr}from"react/jsx-dev-runtime";var De={sm:"sm",md:"md",lg:"lg",xl:"xl"},Vi=Ff("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{[De.sm]:"h-7 w-7 text-xs",[De.md]:"h-10 w-10 text-sm",[De.lg]:"h-12 w-12 text-base",[De.xl]:"h-16 w-16 text-lg"}},defaultVariants:{size:De.md}}),en=Ao(({className:e,size:t=De.md,...r},o)=>{let n=c(t);return gr(yr.Root,{ref:o,className:a(Vi({size:n}),e),...r},void 0,!1,void 0,this)});en.displayName="Avatar";var Fi=Ao(({className:e,...t},r)=>gr(yr.Image,{ref:r,className:a("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));Fi.displayName="AvatarImage";var tn=Ao(({className:e,...t},r)=>gr(yr.Fallback,{ref:r,className:a("flex h-full w-full items-center justify-center rounded-full bg-muted font-medium text-muted-foreground",e),...t},void 0,!1,void 0,this));tn.displayName="AvatarFallback";var Of={[De.sm]:"-space-x-2",[De.md]:"-space-x-3",[De.lg]:"-space-x-4",[De.xl]:"-space-x-5"},Oi=Ao(({className:e,children:t,max:r,size:o=De.md,...n},i)=>{let s=c(o),l=Array.isArray(t)?t:[t],d=r?l.slice(0,r):l,m=r?Math.max(0,l.length-r):0;return gr("div",{ref:i,className:a("flex items-center",Of[s],e),...n,children:[d,m>0&&gr(en,{size:s,className:"border-2 border-background",children:gr(tn,{className:"text-xs",children:["+",m]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Oi.displayName="AvatarGroup";import{Slot as Bf}from"@radix-ui/react-slot";import{cva as Df}from"class-variance-authority";import{X as _f}from"lucide-react";import{forwardRef as Gf}from"react";import{jsxDEV as Zr}from"react/jsx-dev-runtime";var Ce={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},St={sm:"sm",md:"md",lg:"lg",dot:"dot"},Bi=Df("inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium",{variants:{variant:{[Ce.default]:"border-border bg-muted text-muted-foreground",[Ce.primary]:"border-primary/30 bg-primary/10 text-primary",[Ce.success]:"border-success/30 bg-success/10 text-success",[Ce.warning]:"border-warning/30 bg-warning/10 text-warning",[Ce.error]:"border-destructive/30 bg-destructive/10 text-destructive",[Ce.info]:"border-info/30 bg-info/10 text-info",[Ce.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[St.sm]:"h-5 px-2 text-[10px]",[St.md]:"h-6 px-2.5 text-xs",[St.lg]:"h-7 px-3 text-sm",[St.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:Ce.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:Ce.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:Ce.success,className:"border-success bg-success text-background"},{solid:!0,variant:Ce.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:Ce.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:Ce.info,className:"border-info bg-info text-background"},{solid:!0,variant:Ce.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:Ce.default,solid:!1,size:St.md}}),Io=Gf(({className:e,variant:t=Ce.default,size:r=St.md,solid:o=!1,pulse:n=!1,removable:i=!1,onRemove:s,onClick:l,children:d,asChild:m=!1,...f},u)=>{let v=c(r),p=Boolean(l),y=v===St.dot,z=(h)=>{h.stopPropagation(),s?.(h)},M=a(Bi({variant:t,solid:o,size:v}),p&&"cursor-pointer",n&&"animate-pulse",i&&!y&&"pr-1",e),w=i&&!y&&Zr("button",{type:"button",className:"gs-interactive ml-0.5 inline-flex size-4 items-center justify-center rounded-full text-current opacity-60 hover:opacity-100",onClick:z,"aria-label":"Remove",tabIndex:-1,children:Zr(_f,{className:"size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(m)return Zr(Bf,{ref:u,className:M,onClick:l,...f,children:d},void 0,!1,void 0,this);if(p)return Zr("button",{ref:u,className:M,onClick:l,type:"button",...f,children:[!y&&d,w]},void 0,!0,void 0,this);return Zr("span",{ref:u,className:M,...f,children:[!y&&d,w]},void 0,!0,void 0,this)});Io.displayName="Badge";import{Children as Wf,cloneElement as Uf,forwardRef as $f,isValidElement as Kf,useCallback as Di,useEffect as Yf,useLayoutEffect as Xf,useRef as Zf,useState as Jf}from"react";import{jsxDEV as _i}from"react/jsx-dev-runtime";function qf(e){let t=[];return Wf.forEach(e,(r,o)=>{if(!Kf(r))return;let n=r.key??o;t.push({key:n,element:r,isLeaving:!1})}),t}function Qf(e,t){let r=new Set(t.map((i)=>i.key)),o=new Set(e.map((i)=>i.key)),n=[];for(let i of e)if(r.has(i.key)){let s=t.find((l)=>l.key===i.key);if(s)n.push({...s,isLeaving:!1})}else n.push({...i,isLeaving:!0});for(let i of t)if(!o.has(i.key))n.push(i);return n}function Ef(e,t,r){if(r.current)return r.current=!1,t;return Qf(e,t)}var jf=typeof window<"u"?Xf:Yf,Gi=$f(({children:e,className:t,onRemove:r,gap:o="sm"},n)=>{let[i,s]=Jf([]),l=Zf(!0);jf(()=>{let u=qf(e);s((v)=>Ef(v,u,l))},[e]);let d=Di((u)=>{s((v)=>v.filter((p)=>p.key!==u))},[]),m=Di((u)=>{r?.(u)},[r]),f={sm:"gap-1",md:"gap-2",lg:"gap-3"}[o];return _i("div",{ref:n,className:a("inline-flex flex-wrap items-center",f,t),children:i.map((u)=>{let v={};if(u.element.props.removable&&r)v.onRemove=()=>{m(u.key)};let p=a("inline-flex transition-all duration-200",u.isLeaving&&"pointer-events-none scale-95 opacity-0");return _i("span",{className:p,onTransitionEnd:u.isLeaving?()=>d(u.key):void 0,children:Uf(u.element,v)},u.key,!1,void 0,this)})},void 0,!1,void 0,this)});Gi.displayName="BadgeGroup";import{Slot as eg}from"@radix-ui/react-slot";import{cva as vr}from"class-variance-authority";import{ChevronRight as tg,MoreHorizontal as rg}from"lucide-react";import{createContext as og,forwardRef as Jr,useContext as rn}from"react";import{jsxDEV as Ze}from"react/jsx-dev-runtime";var ge={sm:"sm",md:"md",lg:"lg"},Vo=og(ge.md),Wi=vr("flex flex-wrap items-center break-words text-muted-foreground",{variants:{size:{[ge.sm]:"gap-1 text-xs",[ge.md]:"gap-1.5 text-sm sm:gap-2.5",[ge.lg]:"gap-2 text-base sm:gap-3"}},defaultVariants:{size:ge.md}}),Ui=vr("inline-flex items-center gap-1.5"),$i=vr("gs-interactive hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),Ki=vr("font-normal text-foreground"),Yi=vr("",{variants:{size:{[ge.sm]:"[&>svg]:size-3",[ge.md]:"[&>svg]:size-3.5",[ge.lg]:"[&>svg]:size-4"}},defaultVariants:{size:ge.md}}),Xi=vr("flex items-center justify-center",{variants:{size:{[ge.sm]:"h-7 w-7 [&>svg]:size-3.5",[ge.md]:"h-9 w-9 [&>svg]:size-4",[ge.lg]:"h-10 w-10 [&>svg]:size-5"}},defaultVariants:{size:ge.md}}),Zi=Jr(({size:e=ge.md,...t},r)=>{let o=c(e)??ge.md;return Ze(Vo.Provider,{value:o,children:Ze("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Zi.displayName="Breadcrumb";var Ji=Jr(({className:e,...t},r)=>{let o=rn(Vo);return Ze("ol",{ref:r,className:a(Wi({size:o}),e),...t},void 0,!1,void 0,this)});Ji.displayName="BreadcrumbList";var qi=Jr(({className:e,...t},r)=>Ze("li",{ref:r,className:a(Ui(),e),...t},void 0,!1,void 0,this));qi.displayName="BreadcrumbItem";var Qi=Jr(({asChild:e,className:t,...r},o)=>{return Ze(e?eg:"a",{ref:o,className:a($i(),t),...r},void 0,!1,void 0,this)});Qi.displayName="BreadcrumbLink";var Ei=Jr(({className:e,...t},r)=>Ze("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:a(Ki(),e),...t},void 0,!1,void 0,this));Ei.displayName="BreadcrumbPage";var ji=({children:e,className:t,...r})=>{let o=rn(Vo),n={[ge.sm]:"size-3",[ge.md]:"size-3.5",[ge.lg]:"size-4"};return Ze("li",{role:"presentation","aria-hidden":"true",className:a(Yi({size:o}),t),...r,children:e??Ze(tg,{className:n[o]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};ji.displayName="BreadcrumbSeparator";var es=({className:e,...t})=>{let r=rn(Vo);return Ze("span",{role:"presentation","aria-hidden":"true",className:a(Xi({size:r}),e),...t,children:[Ze(rg,{},void 0,!1,void 0,this),Ze("span",{className:"sr-only",children:"More"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};es.displayName="BreadcrumbEllipsis";import{cva as ag}from"class-variance-authority";import{forwardRef as ng}from"react";import{jsxDEV as ig}from"react/jsx-dev-runtime";var qr={horizontal:"horizontal",vertical:"vertical"},ts=ag("inline-flex items-stretch",{variants:{orientation:{[qr.horizontal]:"flex-row",[qr.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:qr.horizontal,attached:!1}}),rs=ng(({className:e,orientation:t=qr.horizontal,attached:r=!1,fullWidth:o=!1,...n},i)=>ig("div",{ref:i,className:a(ts({orientation:t,attached:r}),o&&"w-full",e),...n},void 0,!1,void 0,this));rs.displayName="ButtonGroup";import{cva as Nt}from"class-variance-authority";import{forwardRef as sg,useCallback as br,useEffect as lg,useMemo as os,useState as as}from"react";import{jsxDEV as Fe}from"react/jsx-dev-runtime";var D={sm:"sm",md:"md",lg:"lg",xl:"xl"},is=Nt("flex flex-col rounded-xl border border-border bg-card/95 shadow-[var(--shadow-sm)] transition-[color,background-color,border-color,box-shadow] duration-150",{variants:{size:{[D.sm]:"p-3 text-sm",[D.md]:"p-4 text-sm",[D.lg]:"p-5 text-base",[D.xl]:"p-6 text-base"}},defaultVariants:{size:D.md}}),ss=Nt("mb-3 flex items-center justify-between",{variants:{size:{[D.sm]:"gap-1",[D.md]:"gap-2",[D.lg]:"gap-3",[D.xl]:"gap-3"}},defaultVariants:{size:D.md}}),ls=Nt("font-semibold text-foreground",{variants:{size:{[D.sm]:"text-sm",[D.md]:"text-base",[D.lg]:"text-lg",[D.xl]:"text-xl"}},defaultVariants:{size:D.md}}),on=Nt(["inline-flex items-center justify-center rounded-md border border-transparent","text-muted-foreground hover:border-border/70 hover:bg-accent/60 hover:text-foreground","active:scale-[0.98]","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50"],{variants:{size:{[D.sm]:"size-7",[D.md]:"size-8",[D.lg]:"size-10",[D.xl]:"size-10"}},defaultVariants:{size:D.md}}),ms=Nt("grid grid-cols-7",{variants:{size:{[D.sm]:"gap-0.5",[D.md]:"gap-1",[D.lg]:"gap-1.5",[D.xl]:"gap-2"}},defaultVariants:{size:D.md}}),ds=Nt("text-center font-semibold uppercase tracking-wide text-muted-foreground",{variants:{size:{[D.sm]:"py-1 text-[10px]",[D.md]:"py-1.5 text-xs",[D.lg]:"py-2 text-sm",[D.xl]:"py-2 text-sm"}},defaultVariants:{size:D.md}}),ps=Nt(["inline-flex items-center justify-center rounded-md border border-transparent font-medium","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1","active:scale-[0.98]"],{variants:{size:{[D.sm]:"size-7 text-xs",[D.md]:"size-9 text-sm",[D.lg]:"size-10 text-base",[D.xl]:"size-11 text-base"},state:{default:"cursor-pointer text-foreground hover:border-border/70 hover:bg-accent/60",selected:"border-primary/35 bg-primary text-primary-foreground shadow-[var(--glow-brand-sm)] hover:bg-primary/90",today:"border-primary/30 bg-primary/10 text-primary",disabled:"cursor-not-allowed border-transparent bg-muted/40 text-muted-foreground/60",outside:"",rangeStart:"cursor-pointer rounded-r-none border-primary/35 bg-primary text-primary-foreground hover:bg-primary/90",rangeEnd:"cursor-pointer rounded-l-none border-primary/35 bg-primary text-primary-foreground hover:bg-primary/90",range:"cursor-pointer rounded-none border-transparent bg-primary/12 text-primary hover:bg-primary/20"}},defaultVariants:{size:D.md,state:"default"}}),mg=Nt("rounded-md border border-transparent",{variants:{size:{[D.sm]:"size-7",[D.md]:"size-9",[D.lg]:"size-10",[D.xl]:"size-11"}},defaultVariants:{size:D.md}}),ns=["Su","Mo","Tu","We","Th","Fr","Sa"],dg=["January","February","March","April","May","June","July","August","September","October","November","December"],yt=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Tr=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},cs=sg(({className:e,size:t="md",cellSize:r,mode:o="single",value:n,defaultValue:i,onChange:s,rangeValue:l,onRangeChange:d,viewMonth:m,onViewMonthChange:f,minDate:u,maxDate:v,disabledDates:p=[],weekStartsOn:y=1,highlightToday:z=!0,...M},w)=>{let h=c(t)??D.md,b=c(r??h)??h,[C,B]=as(n??i??null),[R,A]=as(n??i??new Date),S=m??R,I=br((g)=>{if(f){let T=typeof g==="function"?g(m??R):g;f(T)}else A((T)=>{return typeof g==="function"?g(T):g})},[m,R,f]),K=n!==void 0?n:C,O=u?yt(u):null,$=v?yt(v):null;lg(()=>{if(n!==void 0){if(B(n??null),n&&!m)A(n)}},[n,m]);let N=br((g,T)=>{return(new Date(g,T,1).getDay()-y+7)%7},[y]),V=os(()=>{let g=S.getFullYear(),T=S.getMonth(),L=N(g,T),re=new Date(g,T+1,0).getDate(),ee=[];for(let te=0;te<L;te+=1)ee.push({key:`leading-${g}-${T}-${te}`,date:null});for(let te=1;te<=re;te+=1)ee.push({key:`day-${g}-${T}-${te}`,date:new Date(g,T,te)});let oe=(7-ee.length%7)%7;for(let te=0;te<oe;te+=1)ee.push({key:`trailing-${g}-${T}-${te}`,date:null});return ee},[S,N]),P=br((g)=>{let T=yt(g);if(O&&T<O)return!0;if($&&T>$)return!0;return p.some((L)=>Tr(T,yt(L)))},[O,$,p]),F=br((g)=>{if(P(g))return"disabled";if(o==="range"&&l){let{from:T,to:L}=l;if(T&&Tr(g,T))return"rangeStart";if(L&&Tr(g,L))return"rangeEnd";if(T&&L){let re=yt(g),ee=yt(T),oe=yt(L);if(re>ee&&re<oe)return"range"}}if(o==="single"&&K&&Tr(g,K))return"selected";if(z&&Tr(g,new Date))return"today";return"default"},[K,z,P,o,l]),j=br((g)=>{if(P(g))return;let T=new Date(g);if(o==="range"){if(!l?.from||l.from&&l.to)d?.({from:T,to:void 0});else{let L=yt(l.from);if(yt(T)<L)d?.({from:T,to:l.from});else d?.({from:l.from,to:T})}return}if(n===void 0)B(T);s?.(T)},[P,o,s,d,l,n]),H=br((g)=>{I((T)=>{let L=new Date(T);return L.setMonth(L.getMonth()+g),L})},[I]),Y=os(()=>{return[...ns.slice(y),...ns.slice(0,y)]},[y]);return Fe("div",{ref:w,className:a(is({size:h}),e),...M,children:[Fe("div",{className:a(ss({size:h})),children:[Fe("button",{type:"button",onClick:()=>H(-1),className:a(on({size:h})),"aria-label":"Previous month",children:Fe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Fe("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Fe("span",{className:a(ls({size:h})),children:[dg[S.getMonth()]," ",S.getFullYear()]},void 0,!0,void 0,this),Fe("button",{type:"button",onClick:()=>H(1),className:a(on({size:h})),"aria-label":"Next month",children:Fe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Fe("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Fe("div",{className:a(ms({size:h})),children:[Y.map((g)=>Fe("div",{className:a(ds({size:b})),children:g},g,!1,void 0,this)),V.map((g)=>{if(!g.date)return Fe("div",{"aria-hidden":"true",className:a(mg({size:b}))},g.key,!1,void 0,this);let T=g.date,L=F(T);return Fe("button",{type:"button",onClick:()=>j(T),disabled:L==="disabled",className:a(ps({size:b,state:L})),children:T.getDate()},g.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});cs.displayName="Calendar";import{Slot as hr}from"@radix-ui/react-slot";import{cva as pg}from"class-variance-authority";import{forwardRef as Pr}from"react";import{jsxDEV as xr}from"react/jsx-dev-runtime";var Fo={default:"default",muted:"muted",danger:"danger"},us=pg("gs-interactive relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[Fo.default]:"border-border",[Fo.muted]:"border-border/70 bg-muted/40",[Fo.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:Fo.default}}),fs=Pr(({asChild:e=!1,className:t,variant:r,...o},n)=>{return xr(e?hr:"div",{ref:n,className:a(us({variant:r}),t),...o},void 0,!1,void 0,this)});fs.displayName="Card";var gs=Pr(({asChild:e=!1,className:t,...r},o)=>{return xr(e?hr:"div",{ref:o,className:a("flex flex-col gap-1.5 border-b border-border/50 p-4",t),...r},void 0,!1,void 0,this)});gs.displayName="CardHeader";var ys=Pr(({asChild:e=!1,className:t,...r},o)=>{return xr(e?hr:"div",{ref:o,className:a("p-4",t),...r},void 0,!1,void 0,this)});ys.displayName="CardContent";var vs=Pr(({asChild:e=!1,className:t,...r},o)=>{return xr(e?hr:"div",{ref:o,className:a("flex items-center border-t border-border/50 p-4",t),...r},void 0,!1,void 0,this)});vs.displayName="CardFooter";var bs=Pr(({asChild:e=!1,className:t,...r},o)=>{return xr(e?hr:"h3",{ref:o,className:a("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});bs.displayName="CardTitle";var Ts=Pr(({asChild:e=!1,className:t,...r},o)=>{return xr(e?hr:"p",{ref:o,className:a("text-sm text-muted-foreground",t),...r},void 0,!1,void 0,this)});Ts.displayName="CardDescription";import*as Bo from"@radix-ui/react-checkbox";import{cva as cg}from"class-variance-authority";import{Check as ug,Minus as fg}from"lucide-react";import{forwardRef as gg}from"react";import{jsxDEV as Oo}from"react/jsx-dev-runtime";var Je={sm:"sm",md:"md",lg:"lg",xl:"xl"},Cr={default:"default",error:"error",success:"success"},Ps=cg("gs-interactive inline-flex shrink-0 items-center justify-center rounded border border-border bg-background text-foreground enabled:active:scale-[0.94] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{size:{[Je.sm]:"h-4 w-4",[Je.md]:"h-5 w-5",[Je.lg]:"h-6 w-6",[Je.xl]:"h-7 w-7"},status:{[Cr.default]:"enabled:hover:border-primary/70",[Cr.error]:"enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:bg-destructive data-[state=checked]:text-destructive-foreground data-[state=indeterminate]:border-destructive data-[state=indeterminate]:bg-destructive data-[state=indeterminate]:text-destructive-foreground",[Cr.success]:"enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:bg-success data-[state=checked]:text-success-foreground data-[state=indeterminate]:border-success data-[state=indeterminate]:bg-success data-[state=indeterminate]:text-success-foreground"}},defaultVariants:{size:Je.md,status:Cr.default}}),hs={[Je.sm]:"size-3.5",[Je.md]:"size-3.5",[Je.lg]:"size-4",[Je.xl]:"size-5"},xs=gg(({className:e,size:t=Je.md,status:r=Cr.default,checked:o,disabled:n,...i},s)=>{let l=c(t);return Oo(Bo.Root,{ref:s,checked:o,disabled:n,className:a(Ps({size:l,status:r}),e),...i,children:Oo(Bo.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:o==="indeterminate"?Oo(fg,{className:hs[l]},void 0,!1,void 0,this):Oo(ug,{className:hs[l]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});xs.displayName="Checkbox";import{cva as wt}from"class-variance-authority";import{forwardRef as yg,useCallback as vg,useState as bg}from"react";import{jsxDEV as Me,Fragment as Cs}from"react/jsx-dev-runtime";var q={sm:"sm",md:"md",lg:"lg"},an={default:"default",ghost:"ghost"},zs=wt("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[q.sm]:"text-xs",[q.md]:"text-sm",[q.lg]:"text-base"},variant:{[an.default]:"bg-muted border border-border",[an.ghost]:"bg-transparent"}},defaultVariants:{size:q.md,variant:an.default}}),Ss=wt("flex items-center justify-between border-b border-border bg-muted",{variants:{size:{[q.sm]:"px-2.5 py-1.5 text-xs",[q.md]:"px-4 py-2 text-sm",[q.lg]:"px-5 py-2.5 text-base"}},defaultVariants:{size:q.md}}),Ns=wt("text-muted-foreground font-medium",{variants:{size:{[q.sm]:"text-[11px]",[q.md]:"text-xs",[q.lg]:"text-sm"}},defaultVariants:{size:q.md}}),ws=wt(["inline-flex items-center gap-1.5 rounded-md font-medium","text-muted-foreground hover:text-foreground hover:bg-muted","transition-all duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary"],{variants:{size:{[q.sm]:"px-2 py-1 text-xs",[q.md]:"px-2.5 py-1 text-xs",[q.lg]:"px-3 py-1.5 text-sm"},copied:{true:"text-success",false:""}},defaultVariants:{size:q.md,copied:!1}}),Rs=wt("overflow-x-auto",{variants:{size:{[q.sm]:"p-2.5",[q.md]:"p-4",[q.lg]:"p-5"}},defaultVariants:{size:q.md}}),Ms=wt("text-foreground",{variants:{size:{[q.sm]:"",[q.md]:"",[q.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:q.md,showLineNumbers:!1}}),Ls=wt("block",{variants:{size:{[q.sm]:"min-h-[1.25rem]",[q.md]:"min-h-[1.5rem]",[q.lg]:"min-h-[1.75rem]"},highlighted:{true:"bg-primary/10 -mx-4 px-4",false:""}},defaultVariants:{size:q.md,highlighted:!1}}),Hs=wt("inline-block text-right text-muted-foreground select-none",{variants:{size:{[q.sm]:"w-6 mr-2 text-[10px]",[q.md]:"w-8 mr-4 text-xs",[q.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:q.md}}),ks=yg(({className:e,code:t,language:r,showLineNumbers:o=!1,highlightedLines:n=[],showCopy:i=!0,size:s="md",variant:l="default",onCopy:d,...m},f)=>{let u=c(s),[v,p]=bg(!1),y=vg(async()=>{try{await navigator.clipboard.writeText(t),p(!0),d?.(t),setTimeout(()=>p(!1),2000)}catch(w){}},[t,d]),z=t.split(`
|
|
3
|
+
`),M=new Set(n);return Me("div",{ref:f,className:a(zs({size:u,variant:l}),e),...m,children:[(r||i)&&Me("div",{className:a(Ss({size:u})),children:[Me("span",{className:a(Ns({size:u})),children:r},void 0,!1,void 0,this),i&&Me("button",{type:"button",onClick:y,className:a(ws({size:u,copied:v})),children:v?Me(Cs,{children:[Me("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Me("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"},void 0,!1,void 0,this)},void 0,!1,void 0,this),"Copied!"]},void 0,!0,void 0,this):Me(Cs,{children:[Me("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Me("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),"Copy"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Me("div",{className:a(Rs({size:u})),children:Me("pre",{className:a(Ms({size:u,showLineNumbers:o})),children:Me("code",{children:z.map((w,h)=>Me("span",{className:a(Ls({size:u,highlighted:M.has(h+1)})),children:[o&&Me("span",{className:a(Hs({size:u})),children:h+1},void 0,!1,void 0,this),w,`
|
|
4
|
+
`]},`line-${String(h)}`,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});ks.displayName="CodeBlock";import*as zr from"@radix-ui/react-collapsible";import{cva as Tg}from"class-variance-authority";import{forwardRef as hg}from"react";import{jsxDEV as Cg}from"react/jsx-dev-runtime";var As=Tg("gs-collapsible-content overflow-hidden"),Pg=zr.Root,xg=zr.CollapsibleTrigger,Is=hg(({className:e,...t},r)=>Cg(zr.CollapsibleContent,{ref:r,className:a(As(),e),...t},void 0,!1,void 0,this));Is.displayName="CollapsibleContent";import*as Rt from"@radix-ui/react-dialog";import{cva as qe}from"class-variance-authority";import{createContext as Ng,forwardRef as it,useContext as wg,useState as Fs}from"react";import{useCallback as zg,useEffect as Sg,useRef as Vs}from"react";function Qr(e,t,r={}){let{enabled:o=!0,preventDefault:n=!0,stopPropagation:i=!1,target:s="global"}=r,l=Vs(t);l.current=t;let d=Vs([]),m=Array.isArray(e)?e:[e];d.current=m.map((u)=>({combo:u,def:nn(u)}));let f=zg((u)=>{if(!o)return;for(let{combo:v,def:p}of d.current)if(sn(u,p)){if(n)u.preventDefault();if(i)u.stopPropagation();l.current(u,v);return}},[o,n,i]);Sg(()=>{if(!o)return;let u=s==="global"?document:s.current;if(!u)return;return u.addEventListener("keydown",f),()=>{u.removeEventListener("keydown",f)}},[o,f,s])}import{jsxDEV as Pe}from"react/jsx-dev-runtime";var Os=qe(["fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-50","w-full max-w-lg","bg-background border border-border rounded-xl shadow-2xl","overflow-hidden","animate-in fade-in-0 zoom-in-95 duration-200","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95"],{variants:{size:{sm:"max-w-sm",md:"max-w-lg",lg:"max-w-2xl"}},defaultVariants:{size:"md"}}),Bs=qe(["fixed inset-0 z-50 bg-black/50 backdrop-blur-sm","animate-in fade-in-0 duration-200","data-[state=closed]:animate-out data-[state=closed]:fade-out-0"]),Ds=qe(["flex h-12 w-full bg-transparent px-4 py-3","text-base text-foreground placeholder:text-muted-foreground","border-b border-border","focus:outline-none","disabled:cursor-not-allowed disabled:opacity-50"]),_s=qe(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),Gs=qe(["py-6 text-center text-sm text-muted-foreground"]),Ws=qe(["overflow-hidden"]),Us=qe(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),Do={default:"default",danger:"danger"},$s=qe(["relative flex items-center gap-2 rounded-lg px-2 py-2","text-sm cursor-pointer select-none","outline-none transition-colors duration-150","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50"],{variants:{selected:{true:"bg-primary/10 text-primary",false:"hover:bg-background-subtle"},variant:{[Do.default]:"text-foreground",[Do.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{selected:!1,variant:Do.default}}),Ks=qe(["-mx-1 my-1 h-px bg-border"]),Ys=qe(["ml-auto text-xs tracking-widest text-muted-foreground"]),Xs=qe(["flex items-center justify-center py-6"]),Zs=Ng(null),ln=()=>{let e=wg(Zs);if(!e)throw Error("useCommand must be used within a Command");return e},mn=it(({className:e,children:t,loop:r=!0,...o},n)=>{let[i,s]=Fs(""),[l,d]=Fs(0);return Pe(Zs.Provider,{value:{search:i,setSearch:s,selectedIndex:l,setSelectedIndex:d},children:Pe("div",{ref:n,className:a("flex flex-col overflow-hidden rounded-xl bg-background",e),...o,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});mn.displayName="Command";var Js=it(({children:e,size:t,...r},o)=>{return Pe(Rt.Root,{...r,children:Pe(Rt.Portal,{children:[Pe(Rt.Overlay,{className:a(Bs())},void 0,!1,void 0,this),Pe(Rt.Content,{ref:o,className:a(Os({size:t})),children:Pe(mn,{children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Js.displayName="CommandDialog";var qs=it(({className:e,icon:t,...r},o)=>{let{search:n,setSearch:i,setSelectedIndex:s}=ln();return Pe("div",{className:"flex items-center border-border border-b px-3",children:[t&&Pe("span",{className:"mr-2 shrink-0 text-muted-foreground",children:t},void 0,!1,void 0,this),Pe("input",{ref:o,value:n,onChange:(l)=>{i(l.target.value),s(0)},className:a(Ds(),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});qs.displayName="CommandInput";var Qs=it(({className:e,children:t,...r},o)=>{return Pe("div",{ref:o,className:a(_s(),e),...r,children:t},void 0,!1,void 0,this)});Qs.displayName="CommandList";var Es=it(({className:e,children:t="No results found.",...r},o)=>{return Pe("div",{ref:o,className:a(Gs(),e),...r,children:t},void 0,!1,void 0,this)});Es.displayName="CommandEmpty";var js=it(({className:e,heading:t,children:r,...o},n)=>{return Pe("div",{ref:n,className:a(Ws(),e),...o,children:[t&&Pe("div",{className:a(Us()),children:t},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});js.displayName="CommandGroup";var el=it(({className:e,disabled:t,onSelect:r,children:o,keywords:n,variant:i,...s},l)=>{let{search:d}=ln();if(!(()=>{if(!d)return!0;let f=d.toLowerCase();if((typeof o==="string"?o.toLowerCase():"").includes(f))return!0;if(n?.some((v)=>v.toLowerCase().includes(f)))return!0;return!1})())return null;return Pe("div",{ref:l,role:"option","aria-selected":!1,"aria-disabled":t,"data-disabled":t,onClick:()=>!t&&r?.(),onKeyDown:(f)=>{if(f.key==="Enter"&&!t)f.preventDefault(),r?.()},tabIndex:t?-1:0,className:a($s({selected:!1,variant:i}),e),...s,children:o},void 0,!1,void 0,this)});el.displayName="CommandItem";var tl=it(({className:e,...t},r)=>{return Pe("div",{ref:r,className:a(Ks(),e),...t},void 0,!1,void 0,this)});tl.displayName="CommandSeparator";var rl=it(({className:e,children:t,...r},o)=>{return Pe("span",{ref:o,className:a(Ys(),e),...r,children:t},void 0,!1,void 0,this)});rl.displayName="CommandShortcut";var ol=it(({className:e,children:t,...r},o)=>{return Pe("div",{ref:o,className:a(Xs(),e),...r,children:t},void 0,!1,void 0,this)});ol.displayName="CommandLoading";var Rg=({key:e,modifier:t="meta",callback:r})=>{Qr(`${t}+${e}`,r)};import*as _ from"@radix-ui/react-context-menu";import{cva as Ut}from"class-variance-authority";import{Check as Mg,ChevronRight as Lg,Circle as Hg}from"lucide-react";import{createContext as kg,forwardRef as Mt,useContext as Sr}from"react";import{jsxDEV as ye}from"react/jsx-dev-runtime";var Z={sm:"sm",md:"md",lg:"lg"},_o={default:"default",danger:"danger"},$t=kg(Z.md),dn=Ut("z-50 min-w-[8rem] overflow-hidden rounded-[var(--radius)] border border-border/70 bg-popover p-1 text-popover-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-context-menu-content-transform-origin)]"),pn=Ut("gs-interactive relative flex cursor-pointer select-none items-center rounded-md outline-none data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{size:{[Z.sm]:"h-6 gap-1.5 px-1.5 text-xs [&_svg]:size-3",[Z.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[Z.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[_o.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[_o.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:Z.md,variant:_o.default}}),al=Ut("gs-interactive relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[Z.sm]:"h-6 pl-6 pr-1.5 text-xs",[Z.md]:"h-8 pl-8 pr-2 text-sm",[Z.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:Z.md}}),nl=Ut("gs-interactive relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[Z.sm]:"h-6 pl-6 pr-1.5 text-xs",[Z.md]:"h-8 pl-8 pr-2 text-sm",[Z.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:Z.md}}),il=Ut("font-semibold text-muted-foreground",{variants:{size:{[Z.sm]:"px-1.5 py-0.5 text-[10px]",[Z.md]:"px-2 py-1.5 text-xs",[Z.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:Z.md}}),sl=Ut("-mx-1 my-1 h-px bg-border/50"),ll=Ut("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[Z.sm]:"text-[10px]",[Z.md]:"text-xs",[Z.lg]:"text-xs"}},defaultVariants:{size:Z.md}}),ml={[Z.sm]:"absolute left-1.5 flex size-3 items-center justify-center",[Z.md]:"absolute left-2 flex size-3.5 items-center justify-center",[Z.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},Ag={[Z.sm]:"size-3",[Z.md]:"size-3.5",[Z.lg]:"size-4"},Ig={[Z.sm]:"size-1.5 fill-current",[Z.md]:"size-2 fill-current",[Z.lg]:"size-2.5 fill-current"},Vg=_.Root,Fg=_.Trigger,Og=_.Group,Bg=_.Portal,Dg=_.Sub,_g=_.RadioGroup,dl=Mt(({className:e,inset:t,children:r,...o},n)=>{let i=Sr($t),s=c(i);return ye(_.SubTrigger,{ref:n,className:a(pn({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,ye(Lg,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});dl.displayName=_.SubTrigger.displayName;var pl=Mt(({className:e,...t},r)=>ye(_.Portal,{children:ye(_.SubContent,{ref:r,className:a(dn(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));pl.displayName=_.SubContent.displayName;var cl=Mt(({className:e,size:t,...r},o)=>{let n=c(t)??Z.md;return ye($t.Provider,{value:n,children:ye(_.Portal,{children:ye(_.Content,{ref:o,className:a(dn(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});cl.displayName=_.Content.displayName;var ul=Mt(({className:e,inset:t,variant:r,...o},n)=>{let i=Sr($t),s=c(i);return ye(_.Item,{ref:n,className:a(pn({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});ul.displayName=_.Item.displayName;var fl=Mt(({className:e,children:t,checked:r,...o},n)=>{let i=Sr($t),s=c(i)??Z.md;return ye(_.CheckboxItem,{ref:n,className:a(al({size:s}),e),checked:r,...o,children:[ye("span",{className:ml[s],children:ye(_.ItemIndicator,{children:ye(Mg,{className:Ag[s]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});fl.displayName=_.CheckboxItem.displayName;var gl=Mt(({className:e,children:t,...r},o)=>{let n=Sr($t),i=c(n)??Z.md;return ye(_.RadioItem,{ref:o,className:a(nl({size:i}),e),...r,children:[ye("span",{className:ml[i],children:ye(_.ItemIndicator,{children:ye(Hg,{className:Ig[i]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});gl.displayName=_.RadioItem.displayName;var yl=Mt(({className:e,inset:t,...r},o)=>{let n=Sr($t),i=c(n);return ye(_.Label,{ref:o,className:a(il({size:i}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});yl.displayName=_.Label.displayName;var vl=Mt(({className:e,...t},r)=>ye(_.Separator,{ref:r,className:a(sl(),e),...t},void 0,!1,void 0,this));vl.displayName=_.Separator.displayName;var bl=({className:e,...t})=>{let r=Sr($t),o=c(r);return ye("span",{className:a(ll({size:o}),e),...t},void 0,!1,void 0,this)};bl.displayName="ContextMenuShortcut";import*as xe from"@radix-ui/react-dialog";import{cva as Gg}from"class-variance-authority";import{X as Wg}from"lucide-react";import{forwardRef as Go}from"react";import{jsxDEV as Qe}from"react/jsx-dev-runtime";var Lt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Er=xe.Root,Ug=xe.Trigger,Wo=xe.Portal,$g=xe.Close,cn=xe.Content,jr=Go(({className:e,...t},r)=>Qe(xe.Overlay,{ref:r,className:a("gs-dialog-overlay fixed inset-0 z-50 bg-black/50",e),...t},void 0,!1,void 0,this));jr.displayName="DialogOverlay";var Tl=Gg("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 border border-border bg-background p-6 text-foreground shadow-[var(--shadow-xl)] rounded-[var(--radius)]",{variants:{size:{[Lt.sm]:"max-w-sm",[Lt.md]:"max-w-md",[Lt.lg]:"max-w-lg",[Lt.xl]:"max-w-xl",[Lt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:Lt.md}}),Uo=Go(({className:e,children:t,size:r=Lt.md,showClose:o=!0,...n},i)=>{let s=c(r);return Qe(Wo,{children:[Qe(jr,{},void 0,!1,void 0,this),Qe(xe.Content,{ref:i,className:a(Tl({size:s}),e),...n,children:[t,o&&Qe(xe.Close,{className:"gs-interactive absolute top-4 right-4 rounded-[var(--radius)] border border-border p-1.5 text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none",children:[Qe(Wg,{className:"size-4"},void 0,!1,void 0,this),Qe("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Uo.displayName="DialogContent";var hl=({className:e,...t})=>Qe("div",{className:a("flex flex-col space-y-1.5 text-center sm:text-left",e),...t},void 0,!1,void 0,this);hl.displayName="DialogHeader";var Pl=({className:e,...t})=>Qe("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);Pl.displayName="DialogFooter";var $o=Go(({className:e,...t},r)=>Qe(xe.Title,{ref:r,className:a("font-semibold text-lg leading-none tracking-tight",e),...t},void 0,!1,void 0,this));$o.displayName="DialogTitle";var xl=Go(({className:e,...t},r)=>Qe(xe.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));xl.displayName="DialogDescription";import{cva as un}from"class-variance-authority";import{X as Kg}from"lucide-react";import{forwardRef as Ko}from"react";import{Drawer as vt}from"vaul";import{jsxDEV as _e}from"react/jsx-dev-runtime";var Ge={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Yg={[Ge.sm]:"sm:max-w-sm",[Ge.md]:"sm:max-w-md",[Ge.lg]:"sm:max-w-lg",[Ge.xl]:"sm:max-w-xl",[Ge.full]:"sm:max-w-full"},Xg={[Ge.sm]:"sm:max-h-[30vh]",[Ge.md]:"sm:max-h-[50vh]",[Ge.lg]:"sm:max-h-[70vh]",[Ge.xl]:"sm:max-h-[85vh]",[Ge.full]:"sm:max-h-full"},Cl=un(["fixed inset-0 z-50 bg-black/50","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:duration-200","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:duration-150"]),zl=un(["group/drawer-content fixed z-50 flex h-auto flex-col border border-border bg-background shadow-[var(--shadow-xl)]","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-t-0","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-b-0","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:h-full data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-r-0","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:h-full data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-l-0"]),Sl=un("mx-auto shrink-0 rounded-full bg-muted-foreground/25 transition-colors duration-150 hover:bg-muted-foreground/40",{variants:{direction:{top:"mb-4 mt-2 h-1.5 w-[60px]",bottom:"mb-2 mt-4 h-1.5 w-[60px]",left:"ml-auto mr-2 mt-auto mb-auto h-[60px] w-1.5",right:"ml-2 mr-auto mt-auto mb-auto h-[60px] w-1.5"}},defaultVariants:{direction:"bottom"}}),Zg=vt.Root,Jg=vt.Trigger,qg=vt.Close,Nl=vt.Portal,fn=Ko(({className:e,...t},r)=>_e(vt.Overlay,{ref:r,className:a(Cl(),e),...t},void 0,!1,void 0,this));fn.displayName="DrawerOverlay";var wl=Ko(({size:e=Ge.md,showClose:t=!1,direction:r="bottom",className:o,children:n,...i},s)=>{let d=r==="left"||r==="right"?Yg[e]:Xg[e];return _e(Nl,{children:[_e(fn,{},void 0,!1,void 0,this),_e(vt.Content,{ref:s,className:a(zl(),d,o),...i,children:[(r==="top"||r==="bottom")&&_e("div",{className:a(Sl({direction:r}))},void 0,!1,void 0,this),n,t&&_e(vt.Close,{className:"absolute top-4 right-4 rounded-[var(--radius)] border border-border p-1.5 text-muted-foreground transition-[color,background-color,border-color] duration-150 hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none",children:[_e(Kg,{className:"size-4"},void 0,!1,void 0,this),_e("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});wl.displayName="DrawerContent";var Rl=({className:e,...t})=>_e("div",{className:a("flex flex-col gap-1.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center sm:text-left",e),...t},void 0,!1,void 0,this);Rl.displayName="DrawerHeader";var Ml=({className:e,...t})=>_e("div",{className:a("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);Ml.displayName="DrawerFooter";var Ll=Ko(({className:e,...t},r)=>_e(vt.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));Ll.displayName="DrawerTitle";var Hl=Ko(({className:e,...t},r)=>_e(vt.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Hl.displayName="DrawerDescription";import*as G from"@radix-ui/react-dropdown-menu";import{cva as Yt}from"class-variance-authority";import{Check as Qg,ChevronRight as Eg,Circle as jg}from"lucide-react";import{createContext as ey,forwardRef as Ht,useCallback as ty,useContext as Nr,useEffect as ry,useRef as kl,useState as oy}from"react";import{jsxDEV as pe}from"react/jsx-dev-runtime";var J={sm:"sm",md:"md",lg:"lg"},Yo={default:"default",danger:"danger"},Xt=ey(J.md),Kt=null,eo=null,ay=0,gn=Yt("z-50 min-w-[8rem] overflow-hidden rounded-[var(--radius)] border border-border/70 bg-popover p-1 text-popover-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-dropdown-menu-content-transform-origin)]"),yn=Yt("gs-interactive relative flex cursor-pointer select-none items-center rounded-md outline-none data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{size:{[J.sm]:"h-7 gap-1.5 px-2 text-xs [&_svg]:size-3.5",[J.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[J.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Yo.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Yo.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:J.md,variant:Yo.default}}),Al=Yt("gs-interactive relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[J.sm]:"h-7 pl-7 pr-2 text-xs",[J.md]:"h-8 pl-8 pr-2 text-sm",[J.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:J.md}}),Il=Yt("gs-interactive relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[J.sm]:"h-7 pl-7 pr-2 text-xs",[J.md]:"h-8 pl-8 pr-2 text-sm",[J.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:J.md}}),Vl=Yt("font-semibold text-muted-foreground",{variants:{size:{[J.sm]:"px-2 py-1 text-[11px]",[J.md]:"px-2 py-1.5 text-xs",[J.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:J.md}}),Fl=Yt("-mx-1 my-1 h-px bg-border/50"),Ol=Yt("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[J.sm]:"text-[11px]",[J.md]:"text-xs",[J.lg]:"text-xs"}},defaultVariants:{size:J.md}}),Bl={[J.sm]:"absolute left-2 flex size-3.5 items-center justify-center",[J.md]:"absolute left-2 flex size-3.5 items-center justify-center",[J.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},ny={[J.sm]:"size-3",[J.md]:"size-3.5",[J.lg]:"size-4"},iy={[J.sm]:"size-1.5 fill-current",[J.md]:"size-2 fill-current",[J.lg]:"size-2.5 fill-current"},Dl=({children:e,open:t,defaultOpen:r,onOpenChange:o,...n})=>{let[i,s]=oy(r??!1),l=t!==void 0,d=l?t:i,m=kl(++ay),f=kl({onOpenChange:o,isControlled:l});f.current={onOpenChange:o,isControlled:l};let u=ty((v)=>{let{onOpenChange:p,isControlled:y}=f.current;if(v){if(Kt!==null&&Kt!==m.current&&eo)eo();Kt=m.current,eo=()=>{let{onOpenChange:z,isControlled:M}=f.current;if(!M)s(!1);z?.(!1)}}else if(Kt===m.current)Kt=null,eo=null;if(!y)s(v);p?.(v)},[]);return ry(()=>{return()=>{if(Kt===m.current)Kt=null,eo=null}},[]),pe(G.Root,{open:d,onOpenChange:u,...n,children:e},void 0,!1,void 0,this)};Dl.displayName="DropdownMenu";var sy=G.Trigger,ly=G.Group,my=G.Portal,dy=G.Sub,py=G.RadioGroup,_l=Ht(({className:e,inset:t,children:r,...o},n)=>{let i=Nr(Xt),s=c(i);return pe(G.SubTrigger,{ref:n,className:a(yn({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,pe(Eg,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});_l.displayName=G.SubTrigger.displayName;var Gl=Ht(({className:e,...t},r)=>pe(G.Portal,{children:pe(G.SubContent,{ref:r,className:a(gn(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Gl.displayName=G.SubContent.displayName;var Wl=Ht(({className:e,sideOffset:t=4,size:r,...o},n)=>{let i=c(r)??J.md;return pe(Xt.Provider,{value:i,children:pe(G.Portal,{children:pe(G.Content,{ref:n,sideOffset:t,className:a(gn(),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Wl.displayName=G.Content.displayName;var Ul=Ht(({className:e,inset:t,variant:r,...o},n)=>{let i=Nr(Xt),s=c(i);return pe(G.Item,{ref:n,className:a(yn({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});Ul.displayName=G.Item.displayName;var $l=Ht(({className:e,children:t,checked:r,...o},n)=>{let i=Nr(Xt),s=c(i)??J.md;return pe(G.CheckboxItem,{ref:n,className:a(Al({size:s}),e),checked:r,...o,children:[pe("span",{className:Bl[s],children:pe(G.ItemIndicator,{children:pe(Qg,{className:ny[s]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});$l.displayName=G.CheckboxItem.displayName;var Kl=Ht(({className:e,children:t,...r},o)=>{let n=Nr(Xt),i=c(n)??J.md;return pe(G.RadioItem,{ref:o,className:a(Il({size:i}),e),...r,children:[pe("span",{className:Bl[i],children:pe(G.ItemIndicator,{children:pe(jg,{className:iy[i]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});Kl.displayName=G.RadioItem.displayName;var Yl=Ht(({className:e,inset:t,...r},o)=>{let n=Nr(Xt),i=c(n);return pe(G.Label,{ref:o,className:a(Vl({size:i}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Yl.displayName=G.Label.displayName;var Xl=Ht(({className:e,...t},r)=>pe(G.Separator,{ref:r,className:a(Fl(),e),...t},void 0,!1,void 0,this));Xl.displayName=G.Separator.displayName;var Zl=({className:e,...t})=>{let r=Nr(Xt),o=c(r);return pe("span",{className:a(Ol({size:o}),e),...t},void 0,!1,void 0,this)};Zl.displayName="DropdownMenuShortcut";import{cva as ro}from"class-variance-authority";import{forwardRef as cy}from"react";import{jsxDEV as to}from"react/jsx-dev-runtime";var ze={sm:"sm",md:"md",lg:"lg"},Jl=ro("flex flex-col items-center justify-center text-center rounded-[var(--radius)] border border-dashed border-border/50 bg-muted/20",{variants:{size:{[ze.sm]:"gap-2 p-4",[ze.md]:"gap-4 p-8",[ze.lg]:"gap-6 p-12"}},defaultVariants:{size:ze.md}}),ql=ro("flex items-center justify-center rounded-full bg-muted/50 text-muted-foreground",{variants:{size:{[ze.sm]:"h-10 w-10 [&>svg]:h-4 [&>svg]:w-4",[ze.md]:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",[ze.lg]:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"}},defaultVariants:{size:ze.md}}),Ql=ro("font-semibold text-foreground",{variants:{size:{[ze.sm]:"text-sm",[ze.md]:"text-lg",[ze.lg]:"text-xl"}},defaultVariants:{size:ze.md}}),El=ro("text-muted-foreground max-w-sm",{variants:{size:{[ze.sm]:"text-xs",[ze.md]:"text-sm",[ze.lg]:"text-base"}},defaultVariants:{size:ze.md}}),jl=ro("flex items-center gap-2 mt-2"),em=cy(({className:e,icon:t,title:r,description:o,actions:n,size:i=ze.md,children:s,...l},d)=>{let m=c(i);return to("div",{ref:d,className:a(Jl({size:m}),e),...l,children:[t&&to("div",{className:ql({size:m}),children:t},void 0,!1,void 0,this),r&&to("h3",{className:Ql({size:m}),children:r},void 0,!1,void 0,this),o&&to("p",{className:El({size:m}),children:o},void 0,!1,void 0,this),n&&to("div",{className:jl(),children:n},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});em.displayName="EmptyState";import{cva as wr}from"class-variance-authority";import{Component as uy,createElement as tm}from"react";import{jsxDEV as Le,Fragment as gy}from"react/jsx-dev-runtime";var rm=wr(["flex flex-col items-center justify-center rounded-xl border text-center","transition-colors duration-200 ease-out"],{variants:{size:{sm:"gap-3 p-6",md:"gap-4 p-8",lg:"gap-6 p-12",xl:"gap-7 p-14"},variant:{destructive:"border-destructive/30 bg-destructive/8",warning:"border-warning/30 bg-warning/8",info:"border-info/30 bg-info/8"}},defaultVariants:{size:"md",variant:"destructive"}}),om=wr(["flex items-center justify-center rounded-full","transition-colors duration-200 ease-out"],{variants:{size:{sm:"h-12 w-12 [&>svg]:h-5 [&>svg]:w-5",md:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",lg:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9",xl:"h-24 w-24 [&>svg]:h-10 [&>svg]:w-10"},variant:{destructive:"bg-destructive/10 text-destructive",warning:"bg-warning/10 text-warning",info:"bg-info/10 text-info"}},defaultVariants:{size:"md",variant:"destructive"}}),am=wr("font-semibold transition-colors duration-300",{variants:{size:{sm:"text-lg",md:"text-xl",lg:"text-2xl",xl:"text-3xl"},variant:{destructive:"text-destructive",warning:"text-warning",info:"text-info"}},defaultVariants:{size:"md",variant:"destructive"}}),nm=wr("max-w-xl text-muted-foreground transition-all duration-200",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{size:"md"}}),im=wr("mt-2 flex flex-wrap items-center justify-center gap-2"),sm=wr("mt-4 max-h-48 w-full max-w-2xl overflow-auto rounded-md border border-border/70 bg-background/80 p-3 text-left font-mono text-xs text-muted-foreground");class lm extends uy{static displayName="ErrorBoundary";constructor(e){super(e);this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.props.onError?.(e,t)}handleReset=()=>{this.setState({hasError:!1,error:null}),this.props.onReset?.()};render(){let{children:e,fallback:t,showDetails:r=!1,size:o="md",variant:n="destructive",className:i,title:s="Something went wrong",description:l="An unexpected error occurred. Please try again.",icon:d,actions:m,resetLabel:f="Try again",hideReset:u=!1,renderDetails:v}=this.props;if(this.state.hasError&&this.state.error){let p={error:this.state.error,reset:this.handleReset};if(t){if(typeof t==="function")return tm(t,p);return t}let y=null;if(m)y=typeof m==="function"?tm(m,p):m;else if(!u){let M={destructive:"border-destructive/30 bg-destructive text-destructive-foreground hover:bg-destructive/90",warning:"border-warning/30 bg-warning text-warning-foreground hover:bg-warning/90",info:"border-info/30 bg-info text-info-foreground hover:bg-info/90"};y=Le("button",{type:"button",onClick:this.handleReset,className:a("inline-flex items-center justify-center rounded-md border px-4 py-2 font-medium text-sm","transition-colors duration-150 ease-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",M[n]),children:f},void 0,!1,void 0,this)}let z=v?v(this.state.error):Le(gy,{children:[Le("strong",{children:"Error:"},void 0,!1,void 0,this)," ",this.state.error.message,this.state.error.stack&&Le("pre",{className:"mt-2 whitespace-pre-wrap",children:this.state.error.stack},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return Le("div",{className:a(rm({size:o,variant:n}),i),children:[Le("div",{className:a(om({size:o,variant:n})),children:d??Le(fy,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Le("h3",{className:a(am({size:o,variant:n})),children:s},void 0,!1,void 0,this),Le("p",{className:a(nm({size:o})),children:l},void 0,!1,void 0,this),y&&Le("div",{className:a(im()),children:y},void 0,!1,void 0,this),r&&Le("div",{className:a(sm()),children:z},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function fy(){return Le("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[Le("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,void 0,this),Le("line",{x1:"12",x2:"12",y1:"8",y2:"12"},void 0,!1,void 0,this),Le("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}import{cva as kt}from"class-variance-authority";import{forwardRef as yy,useCallback as Ee,useRef as vy,useState as mm}from"react";import{jsxDEV as Ne}from"react/jsx-dev-runtime";var ne={sm:"sm",md:"md",lg:"lg",xl:"xl"},dm=kt(["relative flex flex-col items-center justify-center","rounded-xl border-2 border-dashed","shadow-[var(--shadow-xs)]","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","cursor-pointer","hover:border-primary/45 hover:bg-primary/8","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"],{variants:{size:{[ne.sm]:"min-h-28 p-5",[ne.md]:"min-h-36 p-8",[ne.lg]:"min-h-44 p-10",[ne.xl]:"min-h-52 p-12"},isDragging:{true:"scale-[1.01] border-primary bg-primary/12 shadow-[var(--glow-brand-sm)]",false:"border-border bg-card/75"},disabled:{true:"cursor-not-allowed border-border/70 bg-muted/35 text-muted-foreground pointer-events-none",false:""},hasError:{true:"border-destructive bg-destructive/5",false:""}},defaultVariants:{size:ne.md,isDragging:!1,disabled:!1,hasError:!1}}),pm=kt("text-muted-foreground transition-colors duration-200",{variants:{size:{[ne.sm]:"mb-2 size-6",[ne.md]:"size-8 mb-3",[ne.lg]:"size-10 mb-4",[ne.xl]:"size-12 mb-5"},isDragging:{true:"text-primary",false:""}},defaultVariants:{size:ne.md,isDragging:!1}}),vn=kt("text-center",{variants:{size:{[ne.sm]:"text-sm",[ne.md]:"text-sm",[ne.lg]:"text-base",[ne.xl]:"text-lg"}},defaultVariants:{size:ne.md}}),cm=kt("mt-4 w-full space-y-2"),um=kt(["flex items-center gap-3 rounded-lg border border-border/75 bg-card p-3.5","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","hover:border-primary/30 hover:bg-accent/45"]),fm=kt("min-w-0 flex-1 truncate font-medium text-foreground",{variants:{size:{[ne.sm]:"text-sm",[ne.md]:"text-sm",[ne.lg]:"text-base",[ne.xl]:"text-base"}},defaultVariants:{size:"md"}}),gm=kt("text-muted-foreground",{variants:{size:{[ne.sm]:"text-xs",[ne.md]:"text-sm",[ne.lg]:"text-sm",[ne.xl]:"text-base"}},defaultVariants:{size:"md"}}),ym=kt(["size-7 shrink-0 rounded-full border border-transparent","flex items-center justify-center","text-muted-foreground hover:border-destructive/25 hover:bg-destructive/10 hover:text-destructive","transition-colors duration-150","cursor-pointer"]),vm=yy(({className:e,size:t="md",disabled:r=!1,accept:o,multiple:n=!1,maxSize:i,maxFiles:s,value:l=[],onChange:d,onError:m,icon:f,title:u="Drop files here or click to upload",description:v,showFileList:p=!0,...y},z)=>{let M=c(t),[w,h]=mm(!1),[b,C]=mm(!1),B=vy(null),R=Ee((H)=>{if(H===0)return"0 Bytes";let Y=1024,g=["Bytes","KB","MB","GB"],T=Math.floor(Math.log(H)/Math.log(Y));return`${parseFloat((H/Y**T).toFixed(2))} ${g[T]}`},[]),A=Ee((H)=>{let Y=[...H];if(C(!1),o){let g=o.split(",").map((T)=>T.trim());if(Y=Y.filter((T)=>{return g.some((L)=>{if(L.startsWith("."))return T.name.toLowerCase().endsWith(L.toLowerCase());if(L.endsWith("/*"))return T.type.startsWith(L.slice(0,-1));return T.type===L})}),Y.length<H.length)m?.("Some files were rejected due to file type"),C(!0)}if(i){let g=Y.length;if(Y=Y.filter((T)=>T.size<=i),Y.length<g)m?.(`File size must be less than ${R(i)}`),C(!0)}if(s&&Y.length+l.length>s)Y=Y.slice(0,s-l.length),m?.(`Maximum ${s} files allowed`),C(!0);return Y},[o,i,s,l.length,m,R]),S=Ee((H)=>{if(!H||H.length===0)return;let Y=Array.from(H),g=A(Y);if(g.length>0)if(n)d?.([...l,...g]);else d?.(g.slice(0,1))},[n,l,d,A]),I=Ee((H)=>{H.preventDefault(),H.stopPropagation(),h(!0)},[]),K=Ee((H)=>{H.preventDefault(),H.stopPropagation(),h(!1)},[]),O=Ee((H)=>{H.preventDefault(),H.stopPropagation()},[]),$=Ee((H)=>{if(H.preventDefault(),H.stopPropagation(),h(!1),r)return;S(H.dataTransfer.files)},[r,S]),N=Ee((H)=>{if(S(H.target.files),B.current)B.current.value=""},[S]),V=Ee(()=>{if(!r)B.current?.click()},[r]),P=Ee((H)=>{if(H.key==="Enter"||H.key===" ")H.preventDefault(),V()},[V]),F=Ee((H)=>{let Y=l.filter((g,T)=>T!==H);d?.(Y)},[l,d]),j=Ne("svg",{className:a(pm({size:M,isDragging:w})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ne("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Ne("div",{ref:z,className:a("w-full",e),...y,children:[Ne("div",{role:"button",tabIndex:r?-1:0,onClick:V,onKeyDown:P,onDragEnter:I,onDragLeave:K,onDragOver:O,onDrop:$,className:a(dm({size:M,isDragging:w,disabled:r,hasError:b})),children:[Ne("input",{ref:B,type:"file",accept:o,multiple:n,disabled:r,onChange:N,className:"sr-only"},void 0,!1,void 0,this),f||j,Ne("p",{className:a(vn({size:M}),"font-medium text-foreground"),children:u},void 0,!1,void 0,this),v&&Ne("p",{className:a(vn({size:M}),"mt-1 text-muted-foreground"),children:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&l.length>0&&Ne("div",{className:a(cm()),children:l.map((H,Y)=>Ne("div",{className:a(um()),children:[Ne("svg",{className:"size-5 shrink-0 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ne("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ne("span",{className:a(fm({size:M})),children:H.name},void 0,!1,void 0,this),Ne("span",{className:a(gm({size:M})),children:R(H.size)},void 0,!1,void 0,this),Ne("button",{type:"button",onClick:(g)=>{g.stopPropagation(),F(Y)},className:a(ym()),"aria-label":`Remove ${H.name}`,children:Ne("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ne("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},`${H.name}-${Y}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});vm.displayName="FileUpload";import{cva as by}from"class-variance-authority";import{createContext as Ty,forwardRef as Xo,useContext as hy,useId as Py}from"react";import{jsxDEV as Zt,Fragment as Cy}from"react/jsx-dev-runtime";var We={sm:"sm",md:"md",lg:"lg"},bm=Ty(null),oo=()=>{let e=hy(bm);if(!e)throw Error("useFormField must be used within a FormField");return e},Tm=by("flex flex-col",{variants:{size:{[We.sm]:"gap-1",[We.md]:"gap-1.5",[We.lg]:"gap-2"}},defaultVariants:{size:We.md}}),hm=Xo(({className:e,size:t=We.md,error:r,disabled:o=!1,required:n=!1,children:i,...s},l)=>{let d=Py(),m=c(t),f={id:d,size:m,error:r,disabled:o,required:n};return Zt(bm.Provider,{value:f,children:Zt("div",{ref:l,className:a(Tm({size:m}),e),...s,children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this)});hm.displayName="FormField";var xy={[We.sm]:"text-xs",[We.md]:"text-sm",[We.lg]:"text-base"},Pm=Xo(({className:e,htmlFor:t,children:r,...o},n)=>{let{id:i,size:s,disabled:l,required:d}=oo();return Zt("label",{ref:n,htmlFor:t??i,className:a("inline-block font-medium text-foreground select-none",xy[s],l&&"cursor-not-allowed opacity-60",e),...o,children:[r,d&&Zt("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Pm.displayName="FormFieldLabel";var xm={[We.sm]:"text-[10px]",[We.md]:"text-xs",[We.lg]:"text-sm"},Cm=Xo(({className:e,...t},r)=>{let{id:o,size:n}=oo();return Zt("p",{ref:r,id:`${o}-description`,className:a("text-muted-foreground",xm[n],e),...t},void 0,!1,void 0,this)});Cm.displayName="FormFieldDescription";var zm=Xo(({className:e,children:t,...r},o)=>{let{id:n,size:i,error:s}=oo(),l=t??s;if(!l)return null;return Zt("p",{ref:o,id:`${n}-error`,role:"alert",className:a("text-destructive",xm[i],e),...r,children:l},void 0,!1,void 0,this)});zm.displayName="FormFieldError";var Sm=({children:e})=>{let{id:t,disabled:r,required:o,error:n}=oo(),i=[n?`${t}-error`:void 0,`${t}-description`].filter(Boolean).join(" ");return Zt(Cy,{children:e({id:t,disabled:r,required:o,status:n?"error":"default","aria-describedby":i||void 0,"aria-invalid":n?!0:void 0})},void 0,!1,void 0,this)};Sm.displayName="FormFieldControl";import*as Jt from"@radix-ui/react-hover-card";import{cva as zy}from"class-variance-authority";import{forwardRef as Sy}from"react";import{jsxDEV as Ry}from"react/jsx-dev-runtime";var Rr={sm:"sm",md:"md",lg:"lg"},Nm=zy("z-50 rounded-[var(--radius)] border border-border/70 bg-popover text-popover-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-hover-card-content-transform-origin)]",{variants:{size:{[Rr.sm]:"w-52 p-3 text-xs",[Rr.md]:"w-64 p-4 text-sm",[Rr.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:Rr.md}}),Ny=Jt.Root,wy=Jt.Trigger,wm=Sy(({className:e,align:t="center",sideOffset:r=4,size:o=Rr.md,...n},i)=>{let s=c(o);return Ry(Jt.Content,{ref:i,align:t,sideOffset:r,className:a(Nm({size:s}),e),...n},void 0,!1,void 0,this)});wm.displayName=Jt.Content.displayName;import{cva as My}from"class-variance-authority";import{X as Ly}from"lucide-react";import{forwardRef as Hy,useRef as ky,useState as Ay}from"react";import{jsxDEV as qt}from"react/jsx-dev-runtime";var ao={default:"default",error:"error",success:"success"},E={sm:"sm",md:"md",lg:"lg",xl:"xl"},Iy="Clear input",Mm=My("gs-interactive w-full rounded-[var(--radius)] border border-input bg-background text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-2 disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{status:{[ao.default]:"focus-visible:ring-primary",[ao.error]:"border-destructive focus-visible:ring-destructive",[ao.success]:"border-success focus-visible:ring-success"},size:{[E.sm]:"h-8 px-2 text-xs",[E.md]:"h-10 px-3",[E.lg]:"h-11 px-4",[E.xl]:"h-12 px-4 text-base"}},defaultVariants:{status:ao.default,size:E.md}}),Vy={[E.sm]:"pl-7",[E.md]:"pl-9",[E.lg]:"pl-10",[E.xl]:"pl-10"},Fy={[E.sm]:"pr-7",[E.md]:"pr-9",[E.lg]:"pr-10",[E.xl]:"pr-10"},Oy={[E.sm]:"pr-12",[E.md]:"pr-16",[E.lg]:"pr-18",[E.xl]:"pr-18"},By={[E.sm]:"text-xs left-2",[E.md]:"text-sm left-3",[E.lg]:"text-sm left-3.5",[E.xl]:"text-base left-3.5"},Dy={[E.sm]:"text-xs",[E.md]:"text-sm",[E.lg]:"text-sm",[E.xl]:"text-base"},_y={[E.sm]:"size-4",[E.md]:"size-5",[E.lg]:"size-5",[E.xl]:"size-6"};function Rm(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var Lm=Hy(({className:e,status:t=ao.default,size:r=E.md,fullWidth:o=!1,prefix:n,suffix:i,clearable:s=!1,clearAriaLabel:l=Iy,onClear:d,onValueChange:m,disabled:f,readOnly:u,onChange:v,value:p,defaultValue:y,...z},M)=>{let w=Boolean(n),h=Boolean(i),b=c(r),C=ky(null),B=no(M,C),[R,A]=Ay(()=>Rm(y)),S=p!==void 0,I=S?Rm(p):R,K=s&&!f&&!u&&I.length>0,O=h||K,$=h&&K,N=(P)=>{let F=P.target.value;if(!S)A(F);m?.(F),v?.(P)},V=()=>{if(!S)A("");m?.("");let P=C.current;if(P)P.value="",P.dispatchEvent(new Event("input",{bubbles:!0})),P.focus();d?.()};return qt("div",{className:a("relative flex items-center",o&&"w-full"),children:[w&&qt("span",{className:a("absolute inset-y-0 flex items-center text-muted-foreground",By[b]),children:n},void 0,!1,void 0,this),qt("input",{ref:B,className:a(Mm({status:t,size:b}),w&&Vy[b],$&&Oy[b],!$&&O&&Fy[b],e),disabled:f,readOnly:u,onChange:N,value:I,...z},void 0,!1,void 0,this),O&&qt("span",{className:a("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",Dy[b]),children:[h&&qt("span",{className:"inline-flex items-center",children:i},void 0,!1,void 0,this),K&&qt("button",{type:"button","aria-label":l,onMouseDown:(P)=>P.preventDefault(),onClick:V,className:a("gs-interactive inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",_y[b]),children:qt(Ly,{className:"size-3.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Lm.displayName="Input";import{cva as Ky}from"class-variance-authority";import{forwardRef as Yy}from"react";import{useSyncExternalStore as Gy}from"react";var Wy=()=>()=>{},Uy=()=>bn(),$y=()=>Hm;function io(){return Gy(Wy,Uy,$y)}import{jsxDEV as Xy}from"react/jsx-dev-runtime";var Mr={sm:"sm",md:"md",lg:"lg"},Lr=Ky("inline-flex items-center justify-center rounded border border-border bg-muted font-mono font-medium text-muted-foreground shadow-[0_1px_0_1px] shadow-border/50",{variants:{size:{[Mr.sm]:"min-w-5 h-5 px-1 text-[10px]",[Mr.md]:"min-w-6 h-6 px-1.5 text-xs",[Mr.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:Mr.md}}),km=Yy(({className:e,size:t=Mr.md,combo:r,keys:o,children:n,...i},s)=>{let l=c(t),{isMac:d}=io(),m=r?Zo(r,d):o?Zo(o,d):n;return Xy("kbd",{ref:s,className:a(Lr({size:l}),e),...i,children:m},void 0,!1,void 0,this)});km.displayName="Kbd";import{cva as Zy}from"class-variance-authority";import{forwardRef as Jy}from"react";import{jsxDEV as Am}from"react/jsx-dev-runtime";var Hr={sm:"sm",md:"md",lg:"lg"},Im=Zy("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-60",{variants:{size:{[Hr.sm]:"text-xs",[Hr.md]:"text-sm",[Hr.lg]:"text-base"}},defaultVariants:{size:Hr.md}}),Vm=Jy(({className:e,size:t=Hr.md,required:r=!1,disabled:o=!1,children:n,...i},s)=>{let l=c(t);return Am("label",{ref:s,className:a(Im({size:l}),o&&"cursor-not-allowed opacity-60",e),"aria-disabled":o||void 0,...i,children:[n,r&&Am("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Vm.displayName="Label";var qy=xt;import*as At from"@radix-ui/react-popover";import{cva as ov}from"class-variance-authority";import{Check as av,ChevronDown as nv,X as iv}from"lucide-react";import{forwardRef as sv,useCallback as so,useEffect as lv,useRef as mv,useState as Bm}from"react";import*as Ue from"@radix-ui/react-popover";import{cva as Qy}from"class-variance-authority";import{forwardRef as Ey}from"react";import{jsxDEV as Fm}from"react/jsx-dev-runtime";var kr={sm:"sm",md:"md",lg:"lg"},Ar=Qy("z-50 rounded-[var(--radius)] border border-border bg-popover text-popover-foreground outline-none shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-popover-content-transform-origin)]",{variants:{size:{[kr.sm]:"w-56 p-3 text-sm",[kr.md]:"w-72 p-4 text-sm",[kr.lg]:"w-96 p-5 text-sm"}},defaultVariants:{size:kr.md}}),jy=Ue.Root,ev=Ue.Trigger,tv=Ue.Anchor,rv=Ue.Close,Om=Ey(({className:e,align:t="center",sideOffset:r=4,portal:o=!0,portalContainer:n,size:i=kr.md,...s},l)=>{let d=c(i),m=Fm(Ue.Content,{ref:l,align:t,sideOffset:r,className:a(Ar({size:d}),e),...s},void 0,!1,void 0,this);if(o)return Fm(Ue.Portal,{container:n??void 0,children:m},void 0,!1,void 0,this);return m});Om.displayName="PopoverContent";import{jsxDEV as ce,Fragment as cv}from"react/jsx-dev-runtime";var ve={sm:"sm",md:"md",lg:"lg",xl:"xl"},Dm=ov(["gs-interactive group flex w-full items-center gap-2 rounded-[var(--radius)] border border-input","bg-background text-sm text-foreground outline-none","placeholder:text-muted-foreground focus-visible:ring-2","data-[state=open]:ring-2","disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground"].join(" "),{variants:{size:{[ve.sm]:"min-h-8 px-2.5 py-1 text-xs",[ve.md]:"min-h-10 px-3.5 py-1.5",[ve.lg]:"min-h-11 px-4.5 py-2 text-sm",[ve.xl]:"min-h-12 px-4 py-2 text-base"},status:{default:"focus-visible:ring-primary data-[state=open]:ring-primary",error:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",success:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:ve.md,status:"default"}}),dv={[ve.sm]:"sm",[ve.md]:"md",[ve.lg]:"lg",[ve.xl]:"lg"},pv={[ve.sm]:"min-h-7.5 py-1.5 px-2.5 text-xs",[ve.md]:"min-h-9 py-2 px-3 text-sm",[ve.lg]:"min-h-10 py-2.5 px-3.5 text-sm",[ve.xl]:"min-h-11 py-3 px-4 text-base"},Jo={[ve.sm]:"size-3.5",[ve.md]:"size-4",[ve.lg]:"size-4",[ve.xl]:"size-4.5"},_m=sv(({className:e,options:t,value:r,defaultValue:o=[],onValueChange:n,placeholder:i="Select options...",size:s=ve.md,status:l="default",clearable:d=!1,maxDisplayItems:m=3,disabled:f,...u},v)=>{let p=c(s)??s,[y,z]=Bm(!1),[M,w]=Bm(o),h=mv(null),b=r!==void 0,C=b?r:M,B=so((N)=>{let V=C.includes(N)?C.filter((P)=>P!==N):[...C,N];if(!b)w(V);n?.(V)},[C,b,n]),R=so((N,V)=>{V.stopPropagation();let P=C.filter((F)=>F!==N);if(!b)w(P);n?.(P)},[C,b,n]),A=so((N)=>{if(N.stopPropagation(),N.preventDefault(),!b)w([]);n?.([])},[b,n]),S=t.filter((N)=>C.includes(N.value)),I=S.length>0,K=d&&I&&!f,O=so((N)=>{let V=h.current;if(!V)return;let P=Array.from(V.querySelectorAll('[role="option"]:not([data-disabled])'));if(P.length===0)return;let F=V.querySelector('[role="option"]:focus'),j=F?P.indexOf(F):-1,H;switch(N){case"first":H=P[0];break;case"last":H=P[P.length-1];break;case"next":H=P[j+1]??P[0];break;case"prev":H=P[j-1]??P[P.length-1];break}H?.focus()},[]),$=so((N)=>{switch(N.key){case"ArrowDown":N.preventDefault(),O("next");break;case"ArrowUp":N.preventDefault(),O("prev");break;case"Home":N.preventDefault(),O("first");break;case"End":N.preventDefault(),O("last");break;case"Escape":N.preventDefault(),z(!1);break}},[O]);return lv(()=>{if(y)requestAnimationFrame(()=>O("first"))},[y,O]),ce(At.Root,{open:y,onOpenChange:z,children:[ce(At.Trigger,{asChild:!0,children:ce("button",{ref:v,type:"button",disabled:f,"data-state":y?"open":"closed","data-placeholder":I?void 0:"",className:a(Dm({size:p,status:l}),e),...u,children:[ce("span",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:I?ce(cv,{children:[S.slice(0,m).map((N)=>ce(Io,{variant:"outline",size:dv[s],removable:!0,onRemove:(V)=>R(N.value,V),className:"max-w-[120px] rounded-[calc(var(--radius)-4px)]",children:ce("span",{className:"truncate",children:N.label},void 0,!1,void 0,this)},N.value,!1,void 0,this)),S.length>m&&ce("span",{className:"text-muted-foreground text-xs",children:["+",S.length-m]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):ce("span",{className:"text-muted-foreground",children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this),ce("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[K&&ce("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(N)=>N.preventDefault(),onClick:A,className:"gs-interactive inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:ce(iv,{className:Jo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),ce(nv,{className:a(Jo[p],"opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]",y&&"rotate-180")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),ce(At.Portal,{children:ce(At.Content,{ref:h,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:$,onOpenAutoFocus:(N)=>N.preventDefault(),className:a(Ar(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((N)=>{let V=C.includes(N.value);return ce("div",{role:"option",tabIndex:N.disabled?void 0:-1,"aria-selected":V,"aria-disabled":N.disabled||void 0,"data-disabled":N.disabled?"":void 0,className:a("gs-interactive relative flex w-full cursor-pointer select-none items-center gap-2","rounded-[calc(var(--radius)-3px)] outline-none","hover:bg-accent focus-visible:bg-accent focus-visible:text-accent-foreground","data-disabled:cursor-not-allowed data-disabled:opacity-50",pv[p]),onClick:()=>!N.disabled&&B(N.value),onKeyDown:(P)=>{if(P.key==="Enter"||P.key===" "){if(P.preventDefault(),!N.disabled)B(N.value)}},children:[ce("span",{className:a("flex shrink-0 items-center justify-center",Jo[p]),children:V&&ce(av,{className:Jo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),ce("span",{className:"min-w-0 flex-1 truncate",children:N.label},void 0,!1,void 0,this)]},N.value,!0,void 0,this)}),t.length===0&&ce("div",{className:"px-3 py-6 text-center text-muted-foreground text-sm",children:"No options available"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});_m.displayName="Multiselect";import*as se from"@radix-ui/react-navigation-menu";import{cva as Qt}from"class-variance-authority";import{createContext as uv,forwardRef as Ir,useContext as fv}from"react";import{jsxDEV as Oe}from"react/jsx-dev-runtime";var je={sm:"sm",md:"md",lg:"lg"},Gm=uv(je.md),Wm=Qt("relative z-10 flex max-w-max flex-1 items-center justify-center"),Um=Qt("group flex flex-1 list-none items-center justify-center space-x-1"),$m=Qt(["group inline-flex w-max items-center justify-center rounded-md bg-background font-medium","gs-interactive","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground focus:outline-none","disabled:pointer-events-none disabled:opacity-50","data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"],{variants:{size:{[je.sm]:"h-8 px-3 py-1.5 text-xs",[je.md]:"h-10 px-4 py-2 text-sm",[je.lg]:"h-12 px-5 py-2.5 text-sm"}},defaultVariants:{size:je.md}}),Km=Qt(["left-0 top-0 w-full","data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out","data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out","data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52","data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52","md:absolute md:w-auto"]),gv=Qt(["block select-none space-y-1 rounded-md leading-none no-underline outline-none","gs-interactive","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground"],{variants:{size:{[je.sm]:"p-2 text-xs",[je.md]:"p-3 text-sm",[je.lg]:"p-4 text-sm"}},defaultVariants:{size:je.md}}),Ym=Qt(["origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg","gs-float-content","transition-[width,height] duration-300 ease-[var(--motion-ease-emphasized)]","md:w-[var(--radix-navigation-menu-viewport-width)]"]),Xm=Qt(["top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden","data-[state=visible]:animate-in data-[state=hidden]:animate-out","data-[state=hidden]:fade-out data-[state=visible]:fade-in"]),yv=()=>Oe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true",children:Oe("path",{d:"m6 9 6 6 6-6"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Zm=Ir(({className:e,children:t,size:r,...o},n)=>{let i=c(r??je.md);return Oe(Gm.Provider,{value:i,children:Oe(se.Root,{ref:n,className:a(Wm(),e),...o,children:[t,Oe(Tn,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Zm.displayName=se.Root.displayName;var Jm=Ir(({className:e,...t},r)=>Oe(se.List,{ref:r,className:a(Um(),e),...t},void 0,!1,void 0,this));Jm.displayName=se.List.displayName;var vv=se.Item,qm=Ir(({className:e,children:t,...r},o)=>{let n=fv(Gm);return Oe(se.Trigger,{ref:o,className:a($m({size:n}),"group",e),...r,children:[t,Oe(yv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});qm.displayName=se.Trigger.displayName;var Qm=Ir(({className:e,...t},r)=>Oe(se.Content,{ref:r,className:a(Km(),e),...t},void 0,!1,void 0,this));Qm.displayName=se.Content.displayName;var bv=se.Link,Tn=Ir(({className:e,...t},r)=>Oe("div",{className:"absolute top-full left-0 flex justify-center",children:Oe(se.Viewport,{className:a(Ym(),e),ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Tn.displayName=se.Viewport.displayName;var Em=Ir(({className:e,...t},r)=>Oe(se.Indicator,{ref:r,className:a(Xm(),e),...t,children:Oe("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"},void 0,!1,void 0,this)},void 0,!1,void 0,this));Em.displayName=se.Indicator.displayName;import{cva as Vr}from"class-variance-authority";import{Fragment as Tv,forwardRef as hv,useCallback as Et,useEffect as jm,useMemo as ed,useRef as Pv,useState as td}from"react";import{jsxDEV as jt}from"react/jsx-dev-runtime";var er={sm:"sm",md:"md",lg:"lg",xl:"xl"},mo={default:"default",error:"error",success:"success"},lo={single:"single",first:"first",middle:"middle",last:"last"},rd=Vr("relative inline-flex items-center",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2",xl:"gap-2.5"}},defaultVariants:{size:er.md}}),od=Vr("relative inline-flex items-center",{variants:{size:{sm:"gap-0",md:"gap-0",lg:"gap-0",xl:"gap-0"},status:{default:"",error:"text-destructive",success:"text-success"}},defaultVariants:{size:er.md,status:mo.default}}),ad=Vr(["relative flex items-center justify-center border bg-background","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","motion-reduce:transition-none"],{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-11 w-11",xl:"h-12 w-12"},filled:{true:"border-border bg-card",false:"border-input bg-background"},focused:{true:"scale-[1.02]",false:""},status:{default:"focus-within:border-ring",error:"border-destructive/70 focus-within:border-destructive focus-within:ring-2 focus-within:ring-destructive/20",success:"border-success/70 focus-within:border-success focus-within:ring-2 focus-within:ring-success/20"},disabled:{true:"border-border/80 bg-muted/45",false:""},position:{single:"rounded-[calc(var(--radius)-2px)]",first:"rounded-l-[calc(var(--radius)-2px)] rounded-r-none",middle:"rounded-none border-l-0",last:"rounded-r-[calc(var(--radius)-2px)] rounded-l-none border-l-0"}},defaultVariants:{size:er.md,filled:!1,focused:!1,status:mo.default,disabled:!1,position:lo.single}}),nd=Vr(["h-full w-full rounded-[inherit] bg-transparent text-center font-sans font-medium outline-none","transition-[color,opacity] duration-150 motion-reduce:transition-none","disabled:cursor-not-allowed disabled:text-muted-foreground"],{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base",xl:"text-lg"},status:{default:"caret-primary",error:"caret-destructive",success:"caret-success"},filled:{true:"text-foreground",false:"text-muted-foreground"}},defaultVariants:{size:er.md,status:mo.default,filled:!1}}),id=Vr(["pointer-events-none absolute inset-0 flex items-center justify-center select-none","font-medium text-muted-foreground/45","transition-[opacity,transform] duration-150 motion-reduce:transition-none"],{variants:{size:{sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},focused:{true:"opacity-0 scale-95",false:"opacity-100 scale-100"}},defaultVariants:{size:er.md,focused:!1}}),sd=Vr("select-none font-medium text-muted-foreground",{variants:{size:{sm:"px-0.5 text-sm",md:"px-0.5 text-base",lg:"px-1 text-lg",xl:"px-1.5 text-xl"}},defaultVariants:{size:er.md}});function xv(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function hn(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var ld=hv(({className:e,length:t=6,value:r,onChange:o,onComplete:n,size:i=er.md,status:s=mo.default,disabled:l=!1,autoFocus:d=!1,mask:m=!1,groupSize:f,separator:u,separatorChar:v="—",placeholder:p="•",inputMode:y="numeric",pattern:z="[0-9]*",...M},w)=>{let h=c(i),b=xv(t),C=Pv([]),[B,R]=td(null),[A,S]=td(()=>hn(r,b));jm(()=>{if(r!==void 0){S(hn(r,b));return}S((g)=>hn(g.join(""),b))},[r,b]),jm(()=>{if(d)C.current[0]?.focus()},[d]);let I=ed(()=>{if(typeof f==="number"&&Number.isFinite(f)){let g=Math.floor(f);if(g<=0)return b;return Math.min(b,Math.max(1,g))}if(typeof u==="number"&&Number.isFinite(u)){let g=Math.floor(u);if(g<=0)return b;return Math.min(b,Math.max(1,g))}if(u)return Math.max(1,Math.floor(b/2));return b},[f,b,u]),K=ed(()=>{let g=[];for(let T=0;T<b;T+=I){let L=Math.min(T+I,b),re=[];for(let ee=T;ee<L;ee+=1)re.push(ee);g.push(re)}return g},[I,b]),O=Et((g)=>{let T=C.current[g];if(!T)return;T.focus(),T.select()},[]),$=Et((g)=>{S(g);let T=g.join("");if(o?.(T),g.every((L)=>L!=="")&&T.length===b)n?.(T)},[o,n,b]),N=Et((g,T)=>{if(l)return;let re=(y==="numeric"?T.replace(/\D/g,""):T).slice(-1),ee=[...A];if(ee[g]=re,$(ee),re&&g<b-1)O(g+1)},[A,l,$,O,y,b]),V=Et((g,T)=>{if(l)return;if(T.key==="Backspace"){if(T.preventDefault(),A[g]){let L=[...A];L[g]="",$(L);return}if(g>0){let L=[...A];L[g-1]="",$(L),O(g-1)}return}if(T.key==="Delete"){if(T.preventDefault(),A[g]){let L=[...A];L[g]="",$(L)}return}if(T.key==="ArrowLeft"){if(T.preventDefault(),g>0)O(g-1);return}if(T.key==="ArrowRight"){if(T.preventDefault(),g<b-1)O(g+1);return}if(T.key==="Home"){T.preventDefault(),O(0);return}if(T.key==="End")T.preventDefault(),O(b-1)},[A,l,$,O,b]),P=Et((g,T)=>{if(T.preventDefault(),l)return;let L=T.clipboardData.getData("text"),ee=(y==="numeric"?L.replace(/\D/g,""):L.replace(/\s/g,"")).split("");if(ee.length===0)return;let oe=[...A];for(let de=0;de<ee.length;de+=1){let dr=g+de;if(dr>=b)break;oe[dr]=ee[de]??""}$(oe);let te=Math.min(b-1,g+ee.length-1);if(te<b-1){O(te+1);return}C.current[te]?.blur()},[A,l,$,O,y,b]),F=Et((g,T)=>{R(g),T.target.select()},[]),j=Et(()=>{R(null)},[]),H=u!==void 0,Y=v.length>0&&u!==!1&&(H||K.length>1);return jt("div",{ref:w,className:a(rd({size:h}),e),role:"group","aria-label":"One-time password input",...M,children:K.map((g,T)=>jt(Tv,{children:[jt("div",{"data-gs-otp-group":"true",className:a(od({size:h,status:s})),children:g.map((L,re)=>{let ee=A[L]??"",oe=B===L,te=lo.middle;if(g.length===1)te=lo.single;else if(re===0)te=lo.first;else if(re===g.length-1)te=lo.last;return jt("div",{"data-gs-otp-slot":"true","data-disabled":l,className:a(ad({size:h,filled:Boolean(ee),focused:oe,status:s,disabled:l,position:te})),children:[jt("input",{ref:(de)=>{C.current[L]=de},type:m?"password":"text",inputMode:y,pattern:z,maxLength:1,value:ee,placeholder:"",disabled:l,"aria-invalid":s===mo.error,"aria-label":`Digit ${L+1} of ${b}`,autoComplete:"one-time-code",onChange:(de)=>N(L,de.target.value),onKeyDown:(de)=>V(L,de),onPaste:(de)=>P(L,de),onFocus:(de)=>F(L,de),onBlur:j,className:a(nd({size:h,status:s,filled:Boolean(ee)}))},void 0,!1,void 0,this),!ee&&jt("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:a(id({size:h,focused:oe})),children:p},void 0,!1,void 0,this)]},`slot-${L}`,!0,void 0,this)})},void 0,!1,void 0,this),Y&&T<K.length-1&&jt("span",{"data-gs-otp-separator":"true",className:a(sd({size:h})),children:v},void 0,!1,void 0,this)]},`group-${g[0]}-${g[g.length-1]}`,!0,void 0,this))},void 0,!1,void 0,this)});ld.displayName="OTPInput";import{createContext as Rv,useCallback as Fr,useContext as Mv,useMemo as Lv,useState as Hv}from"react";import*as me from"@radix-ui/react-dialog";import{cva as md}from"class-variance-authority";import{X as Cv}from"lucide-react";import{forwardRef as qo}from"react";import{jsxDEV as et}from"react/jsx-dev-runtime";var Be={top:"top",right:"right",bottom:"bottom",left:"left"},ie={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},zv={[Be.top]:"gs-sheet-content gs-sheet-content-top",[Be.right]:"gs-sheet-content gs-sheet-content-right",[Be.bottom]:"gs-sheet-content gs-sheet-content-bottom",[Be.left]:"gs-sheet-content gs-sheet-content-left"},Sv={[Be.right]:{[ie.sm]:"sm:max-w-sm",[ie.md]:"sm:max-w-md",[ie.lg]:"sm:max-w-lg",[ie.xl]:"sm:max-w-xl",[ie.full]:"sm:max-w-full"},[Be.left]:{[ie.sm]:"sm:max-w-sm",[ie.md]:"sm:max-w-md",[ie.lg]:"sm:max-w-lg",[ie.xl]:"sm:max-w-xl",[ie.full]:"sm:max-w-full"},[Be.top]:{[ie.sm]:"sm:max-h-[30vh]",[ie.md]:"sm:max-h-[50vh]",[ie.lg]:"sm:max-h-[70vh]",[ie.xl]:"sm:max-h-[85vh]",[ie.full]:"sm:max-h-full"},[Be.bottom]:{[ie.sm]:"sm:max-h-[30vh]",[ie.md]:"sm:max-h-[50vh]",[ie.lg]:"sm:max-h-[70vh]",[ie.xl]:"sm:max-h-[85vh]",[ie.full]:"sm:max-h-full"}},dd=md("gs-sheet-overlay fixed inset-0 z-50 bg-black/50"),pd=md("fixed z-50 flex flex-col gap-4 border border-border bg-background p-6 shadow-[var(--shadow-xl)]",{variants:{side:{[Be.top]:"inset-x-0 top-0 border-b",[Be.bottom]:"inset-x-0 bottom-0 border-t",[Be.left]:"inset-y-0 left-0 h-full w-3/4 border-r",[Be.right]:"inset-y-0 right-0 h-full w-3/4 border-l"}},defaultVariants:{side:Be.right}}),Pn=me.Root,Nv=me.Trigger,wv=me.Close,cd=me.Portal,xn=qo(({className:e,...t},r)=>et(me.Overlay,{className:a(dd(),e),...t,ref:r},void 0,!1,void 0,this));xn.displayName=me.Overlay.displayName;var Qo=qo(({side:e="right",size:t=ie.md,showClose:r=!0,className:o,children:n,...i},s)=>{let l=c(t)??ie.md,d=zv[e],m=Sv[e][l];return et(cd,{children:[et(xn,{},void 0,!1,void 0,this),et(me.Content,{ref:s,className:a(pd({side:e}),d,m,o),...i,children:[n,r&&et(me.Close,{className:"gs-interactive absolute top-4 right-4 rounded-[var(--radius)] border border-border p-1.5 text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none",children:[et(Cv,{className:"size-4"},void 0,!1,void 0,this),et("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Qo.displayName=me.Content.displayName;var ud=({className:e,...t})=>et("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);ud.displayName="SheetHeader";var fd=({className:e,...t})=>et("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);fd.displayName="SheetFooter";var gd=qo(({className:e,...t},r)=>et(me.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));gd.displayName=me.Title.displayName;var yd=qo(({className:e,...t},r)=>et(me.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));yd.displayName=me.Description.displayName;import{jsxDEV as bt}from"react/jsx-dev-runtime";var Cn=0;function kv(){return Cn=(Cn+1)%Number.MAX_SAFE_INTEGER,`overlay-${Cn}-${Date.now()}`}var bd=Rv(null),vd=400;function Td({children:e}){let[t,r]=Hv([]),o=Fr((m)=>{r((f)=>f.map((u)=>u.id===m?{...u,open:!1}:u)),setTimeout(()=>{r((f)=>f.filter((u)=>u.id!==m))},vd)},[]),n=Fr(()=>{r((m)=>m.map((f)=>({...f,open:!1}))),setTimeout(()=>{r([])},vd)},[]),i=Fr((m,f,u,v={})=>{let p=kv(),y=(w)=>{return bt(f,{...u,close:w.close},void 0,!1,void 0,this)};y.displayName=`OverlayWrapper(${f.displayName??f.name??"Component"})`;let z={id:p,type:m,component:y,wrapperProps:v,open:!0};return r((w)=>[...w,z]),{id:p,close:()=>o(p)}},[o]),s=Fr((m,f,u)=>{return i("dialog",m,f,u)},[i]),l=Fr((m,f,u)=>{return i("sheet",m,f,u)},[i]),d=Lv(()=>({dialog:s,sheet:l,close:o,closeAll:n}),[s,l,o,n]);return bt(bd.Provider,{value:d,children:[e,t.map((m)=>bt(Av,{entry:m,onClose:o},m.id,!1,void 0,this))]},void 0,!0,void 0,this)}Td.displayName="OverlayProvider";function Av({entry:e,onClose:t}){let{id:r,type:o,component:n,wrapperProps:i,open:s}=e,l=Fr(()=>t(r),[r,t]);if(o==="dialog"){let{showClose:d,size:m,...f}=i;return bt(Er,{open:s,onOpenChange:(u)=>!u&&l(),children:bt(Uo,{showClose:d,size:m,...f,children:bt(n,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}if(o==="sheet"){let{side:d,showClose:m,...f}=i;return bt(Pn,{open:s,onOpenChange:(u)=>!u&&l(),children:bt(Qo,{side:d,showClose:m,...f,children:bt(n,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}return null}function Iv(){let e=Mv(bd);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as po}from"class-variance-authority";import{ChevronLeft as Vv,ChevronRight as Fv,MoreHorizontal as Ov}from"lucide-react";import{createContext as Bv,forwardRef as co,useContext as Eo}from"react";import{jsxDEV as Ae}from"react/jsx-dev-runtime";var $e={sm:"sm",md:"md",lg:"lg"},uo=Bv($e.md),hd=po("mx-auto flex w-full justify-center"),Pd=po("flex flex-row items-center gap-1"),xd=po(""),jo=po("gs-interactive inline-flex items-center justify-center whitespace-nowrap rounded-[var(--radius)] font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-accent hover:text-accent-foreground",{variants:{isActive:{true:"border border-border bg-background shadow-[var(--shadow-sm)]",false:""},size:{[$e.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[$e.md]:"h-9 w-9 text-sm [&_svg]:size-4",[$e.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:$e.md}}),Cd=po("flex items-center justify-center",{variants:{size:{[$e.sm]:"h-7 w-7 [&_svg]:size-3.5",[$e.md]:"h-9 w-9 [&_svg]:size-4",[$e.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:$e.md}}),zd=({className:e,size:t=$e.md,...r})=>{let o=c(t)??$e.md;return Ae(uo.Provider,{value:o,children:Ae("nav",{"aria-label":"pagination",className:a(hd(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};zd.displayName="Pagination";var Sd=co(({className:e,...t},r)=>Ae("ul",{ref:r,className:a(Pd(),e),...t},void 0,!1,void 0,this));Sd.displayName="PaginationContent";var Nd=co(({className:e,...t},r)=>Ae("li",{ref:r,className:a(xd(),e),...t},void 0,!1,void 0,this));Nd.displayName="PaginationItem";var wd=co(({className:e,isActive:t,...r},o)=>{let n=Eo(uo);return Ae("button",{ref:o,type:"button","aria-current":t?"page":void 0,className:a(jo({isActive:t,size:n}),e),...r},void 0,!1,void 0,this)});wd.displayName="PaginationLink";var Rd=co(({className:e,...t},r)=>{let o=Eo(uo);return Ae("button",{ref:r,type:"button","aria-label":"Go to previous page",className:a(jo({size:o}),"gap-1 pl-2.5 pr-3 w-auto",e),...t,children:[Ae(Vv,{},void 0,!1,void 0,this),Ae("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Rd.displayName="PaginationPrevious";var Md=co(({className:e,...t},r)=>{let o=Eo(uo);return Ae("button",{ref:r,type:"button","aria-label":"Go to next page",className:a(jo({size:o}),"gap-1 pl-3 pr-2.5 w-auto",e),...t,children:[Ae("span",{children:"Next"},void 0,!1,void 0,this),Ae(Fv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Md.displayName="PaginationNext";var Ld=({className:e,...t})=>{let r=Eo(uo);return Ae("span",{"aria-hidden":!0,className:a(Cd({size:r}),e),...t,children:[Ae(Ov,{},void 0,!1,void 0,this),Ae("span",{className:"sr-only",children:"More pages"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Ld.displayName="PaginationEllipsis";import*as yo from"@radix-ui/react-progress";import{cva as Hd}from"class-variance-authority";import{forwardRef as Dv}from"react";import{jsxDEV as ea}from"react/jsx-dev-runtime";var fo={sm:"sm",md:"md",lg:"lg",xl:"xl"},go={default:"default",success:"success",warning:"warning",error:"error"},kd=Hd("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[fo.sm]:"h-1",[fo.md]:"h-2.5",[fo.lg]:"h-4",[fo.xl]:"h-5"}},defaultVariants:{size:fo.md}}),Ad=Hd("h-full w-full flex-1 rounded-full transition-transform duration-100 ease-out",{variants:{variant:{[go.default]:"bg-primary",[go.success]:"bg-success",[go.warning]:"bg-warning",[go.error]:"bg-destructive"}},defaultVariants:{variant:go.default}}),Id=Dv(({className:e,value:t,size:r,variant:o,showValue:n,...i},s)=>{let l=c(r);return ea("div",{className:"flex w-full items-center gap-2",children:[ea(yo.Root,{ref:s,className:a(kd({size:l}),e),...i,children:ea(yo.Indicator,{className:a(Ad({variant:o})),style:{transform:`translateX(-${100-(t||0)}%)`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),n&&ea("span",{className:"font-medium text-muted-foreground text-sm tabular-nums",children:[t,"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Id.displayName=yo.Root.displayName;import*as Br from"@radix-ui/react-radio-group";import{cva as Vd}from"class-variance-authority";import{forwardRef as Fd}from"react";import{jsxDEV as ta}from"react/jsx-dev-runtime";var tt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Or={default:"default",error:"error",success:"success"},Od=Vd("grid gap-2"),Bd=Vd("gs-interactive aspect-square rounded-full border border-input bg-background ring-offset-background enabled:active:scale-[0.94] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-[state=checked]:border-primary data-[state=checked]:text-primary disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{size:{[tt.sm]:"h-4 w-4",[tt.md]:"h-5 w-5",[tt.lg]:"h-6 w-6",[tt.xl]:"h-7 w-7"},status:{[Or.default]:"enabled:hover:border-primary/70",[Or.error]:"border-destructive enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:text-destructive",[Or.success]:"border-success enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:text-success"}},defaultVariants:{size:tt.md,status:Or.default}}),_v={[tt.sm]:"h-2 w-2",[tt.md]:"h-2.5 w-2.5",[tt.lg]:"h-3 w-3",[tt.xl]:"h-3.5 w-3.5"},Dd=Fd(({className:e,...t},r)=>ta(Br.Root,{ref:r,className:a(Od(),e),...t},void 0,!1,void 0,this));Dd.displayName="RadioGroup";var _d=Fd(({className:e,size:t=tt.md,status:r=Or.default,...o},n)=>{let i=c(t);return ta(Br.Item,{ref:n,className:a(Bd({size:i,status:r}),e),...o,children:ta(Br.Indicator,{className:"flex items-center justify-center",children:ta("span",{className:a("block rounded-full bg-current transition-transform duration-150",_v[i])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});_d.displayName="RadioGroupItem";import{cva as aa}from"class-variance-authority";import{forwardRef as zn,useCallback as ra,useRef as Gv,useState as Wv}from"react";import{jsxDEV as oa}from"react/jsx-dev-runtime";var Gd=aa("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),Wd=aa("relative overflow-hidden"),Ud=aa("relative flex items-center justify-center bg-border transition-colors duration-150 hover:bg-primary/40 active:bg-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{direction:{horizontal:"h-full w-1 cursor-col-resize",vertical:"h-1 w-full cursor-row-resize"},withHandle:{true:"",false:""}},compoundVariants:[{direction:"horizontal",withHandle:!0,class:"w-3"},{direction:"vertical",withHandle:!0,class:"h-3"}],defaultVariants:{direction:"horizontal",withHandle:!1}}),$d=aa("z-10 flex items-center justify-center rounded-sm bg-border",{variants:{direction:{horizontal:"h-6 w-1",vertical:"h-1 w-6"}},defaultVariants:{direction:"horizontal"}}),Kd=zn(({className:e,direction:t="horizontal",children:r,...o},n)=>oa("div",{ref:n,"data-panel-group":"","data-direction":t,className:a(Gd({direction:t}),e),...o,children:r},void 0,!1,void 0,this));Kd.displayName="ResizablePanelGroup";var Yd=zn(({className:e,defaultSize:t=50,children:r,style:o,...n},i)=>oa("div",{ref:i,"data-panel":"",className:a(Wd(),e),style:{...o,flexGrow:0,flexShrink:0,flexBasis:`${t}%`},...n,children:r},void 0,!1,void 0,this));Yd.displayName="ResizablePanel";var Xd=zn(({className:e,withHandle:t=!1,disabled:r=!1,...o},n)=>{let[i,s]=Wv(!1),l=Gv(null),d=ra((p,y)=>{if(r)return;s(!0);let z=(w)=>{let h="touches"in w?w.touches[0]:null,b=h?h.clientX:w.clientX,C=h?h.clientY:w.clientY,B=l.current;if(!B)return;let R=B.closest("[data-panel-group]");if(!R)return;let A=R.dataset.direction,S=R.getBoundingClientRect(),I=Array.from(R.querySelectorAll(":scope > [data-panel]")),K=Array.from(R.children).indexOf(B),O,$;for(let N of I){let V=Array.from(R.children).indexOf(N);if(V<K)O=N;if(V>K&&!$)$=N}if(O&&$){let N=A==="horizontal"?S.width:S.height,P=(A==="horizontal"?b-S.left:C-S.top)/N*100,F=Math.max(10,Math.min(90,P)),j=100-F;O.style.flexBasis=`${F}%`,$.style.flexBasis=`${j}%`}},M=()=>{s(!1),document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",M),document.removeEventListener("touchmove",z),document.removeEventListener("touchend",M)};document.addEventListener("mousemove",z),document.addEventListener("mouseup",M),document.addEventListener("touchmove",z),document.addEventListener("touchend",M)},[r]),m=ra((p)=>{p.preventDefault(),d(p.clientX,p.clientY)},[d]),f=ra((p)=>{let y=p.touches[0];if(y)d(y.clientX,y.clientY)},[d]),u=ra((p)=>{if(r)return;let y=l.current??p.currentTarget,z=y.closest("[data-panel-group]");if(!z)return;let M=z.dataset.direction,w=p.shiftKey?10:1,h=Array.from(z.querySelectorAll(":scope > [data-panel]")),b=Array.from(z.children).indexOf(y),C,B;for(let S of h){let I=Array.from(z.children).indexOf(S);if(I<b)C=S;if(I>b&&!B)B=S}if(!(C&&B))return;let R=Number.parseFloat(C.style.flexBasis)||50,A=0;if(M==="horizontal"){if(p.key==="ArrowLeft")A=-w;if(p.key==="ArrowRight")A=w}else{if(p.key==="ArrowUp")A=-w;if(p.key==="ArrowDown")A=w}if(A!==0){p.preventDefault();let S=Math.max(10,Math.min(90,R+A));C.style.flexBasis=`${S}%`,B.style.flexBasis=`${100-S}%`}},[r]),v="horizontal";return oa("div",{ref:(p)=>{if(l.current=p,typeof n==="function")n(p);else if(n)n.current=p},role:"separator","aria-orientation":"horizontal",tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":i,onMouseDown:m,onTouchStart:f,onKeyDown:u,className:a(Ud({direction:"horizontal",withHandle:t}),i&&"bg-primary",r&&"pointer-events-none opacity-50",e),...o,children:t&&oa("div",{className:a($d({direction:"horizontal"}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Xd.displayName="ResizableHandle";import*as st from"@radix-ui/react-scroll-area";import{cva as Sn}from"class-variance-authority";import{forwardRef as Zd}from"react";import{jsxDEV as Dr}from"react/jsx-dev-runtime";var Jd=Sn("relative overflow-hidden"),Uv={display:"flex",flexDirection:"column"},$v={flex:"1 1 0%",minHeight:0},qd=Sn("flex touch-none select-none transition-colors duration-150",{variants:{orientation:{vertical:"h-full w-2.5 border-l border-l-transparent p-px",horizontal:"h-2.5 flex-col border-t border-t-transparent p-px"}},defaultVariants:{orientation:"vertical"}}),Qd=Sn("relative flex-1 rounded-full bg-border"),Ed=Zd(({className:e,children:t,style:r,...o},n)=>Dr(st.Root,{ref:n,className:a(Jd(),e),style:{...r,...Uv},...o,children:[Dr(st.Viewport,{className:"w-full rounded-[inherit]",style:$v,children:t},void 0,!1,void 0,this),Dr(Nn,{},void 0,!1,void 0,this),Dr(st.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));Ed.displayName="ScrollArea";var Nn=Zd(({className:e,orientation:t="vertical",...r},o)=>Dr(st.ScrollAreaScrollbar,{ref:o,orientation:t,className:a(qd({orientation:t}),e),...r,children:Dr(st.ScrollAreaThumb,{className:a(Qd())},void 0,!1,void 0,this)},void 0,!1,void 0,this));Nn.displayName="ScrollBar";import{cva as Rn}from"class-variance-authority";import{createContext as Kv,forwardRef as Mn,useCallback as jd,useContext as rp,useEffect as wn,useLayoutEffect as Yv,useRef as ep,useState as tp}from"react";import{jsxDEV as tr}from"react/jsx-dev-runtime";var be={sm:"sm",md:"md",lg:"lg"},op=Rn("relative inline-flex items-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[be.sm]:"h-8 gap-0.5",[be.md]:"h-10 gap-0.5",[be.lg]:"h-11 gap-1"}},defaultVariants:{size:be.md}}),ap=Rn(["relative z-10 inline-flex items-center justify-center rounded-[calc(var(--radius)-2px)]","cursor-pointer outline-none select-none","transition-[color] duration-150","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40"],{variants:{size:{[be.sm]:"size-6",[be.md]:"size-8",[be.lg]:"size-9"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:be.md,active:!1}}),np=Rn(["relative z-10 inline-flex items-center justify-center gap-1.5 rounded-[calc(var(--radius)-2px)]","cursor-pointer outline-none select-none whitespace-nowrap font-medium","transition-[color] duration-150","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40"],{variants:{size:{[be.sm]:"h-6 px-2.5 text-xs",[be.md]:"h-8 px-3 text-sm",[be.lg]:"h-9 px-4 text-sm"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:be.md,active:!1}}),ip={[be.sm]:"size-3",[be.md]:"size-3.5",[be.lg]:"size-4"},Ln=Kv({activeValue:"",onSelect:()=>{},size:be.md,disabled:!1}),Xv=typeof window<"u"?Yv:wn,sp=Mn(({className:e,value:t,defaultValue:r,onValueChange:o,size:n,disabled:i=!1,children:s,...l},d)=>{let m=c(n),f=ep(null),[u,v]=tp(r??""),[p,y]=tp(null),z=ep(!0),M=t!==void 0?t:u,w=jd((b)=>{if(i)return;if(t===void 0)v(b);o?.(b)},[i,t,o]),h=jd(()=>{let b=f.current;if(!b)return;let C=b.querySelector('[data-state="active"]');if(!C){y(null);return}let B=b.getBoundingClientRect(),R=C.getBoundingClientRect();y({left:R.left-B.left,width:R.width})},[]);return Xv(()=>{h()},[h,M]),wn(()=>{if(z.current)requestAnimationFrame(()=>{z.current=!1})},[]),wn(()=>{let b=f.current;if(!b)return;let C=new MutationObserver(()=>{h()});return C.observe(b,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>C.disconnect()},[h]),tr(Ln.Provider,{value:{activeValue:M,onSelect:w,size:m,disabled:i},children:tr("div",{ref:(b)=>{if(f.current=b,typeof d==="function")d(b);else if(d)d.current=b},role:"radiogroup",className:a(op({size:m}),i&&"opacity-50 pointer-events-none",e),...l,children:[p&&tr("span",{"aria-hidden":"true",className:a("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!z.current&&"transition-[left,width] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]"),style:{left:p.left,width:p.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});sp.displayName="SegmentedControl";var lp=Mn(({className:e,value:t,icon:r,disabled:o=!1,...n},i)=>{let{activeValue:s,onSelect:l,size:d,disabled:m}=rp(Ln),f=s===t,u=o||m;return tr("button",{ref:i,type:"button",role:"radio","aria-checked":f,"aria-disabled":u||void 0,"data-state":f?"active":"inactive","data-value":t,disabled:u,onClick:()=>l(t),className:a(ap({size:d,active:f}),e),...n,children:tr("span",{className:a(ip[d??be.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)});lp.displayName="SegmentedControlItem";var mp=Mn(({className:e,value:t,icon:r,disabled:o=!1,children:n,...i},s)=>{let{activeValue:l,onSelect:d,size:m,disabled:f}=rp(Ln),u=l===t,v=o||f;return tr("button",{ref:s,type:"button",role:"radio","aria-checked":u,"aria-disabled":v||void 0,"data-state":u?"active":"inactive","data-value":t,disabled:v,onClick:()=>d(t),className:a(np({size:m,active:u}),e),...i,children:[r&&tr("span",{className:a(ip[m??be.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this),n]},void 0,!0,void 0,this)});mp.displayName="SegmentedControlLabelItem";import*as It from"@radix-ui/react-popover";import{cva as pp}from"class-variance-authority";import{Check as Zv,ChevronDown as Jv,X as qv}from"lucide-react";import{Children as Qv,createContext as Ev,forwardRef as To,isValidElement as jv,useCallback as na,useContext as cp,useEffect as ia,useId as dp,useMemo as eb,useRef as up,useState as vo}from"react";import{jsxDEV as le,Fragment as sb}from"react/jsx-dev-runtime";var ae={sm:"sm",md:"md",lg:"lg",xl:"xl"},_r={default:"default",error:"error",success:"success"},bo={trigger:"trigger",auto:"auto"},tb={start:"start",center:"center",end:"end"},fp=pp(["gs-interactive group flex items-center gap-2 rounded-[var(--radius)] border border-input","bg-background text-sm text-foreground outline-none","placeholder:text-muted-foreground focus-visible:ring-2","data-[state=open]:ring-2","disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground","data-[placeholder]:text-muted-foreground","[&_[data-slot=select-value]]:line-clamp-1"].join(" "),{variants:{size:{[ae.sm]:"h-8 px-2.5 text-xs",[ae.md]:"h-10 px-3.5",[ae.lg]:"h-11 px-4.5 text-sm",[ae.xl]:"h-12 px-4 text-base"},status:{[_r.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[_r.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[_r.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:ae.md,status:_r.default}}),gp=pp(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[bo.trigger]:"w-[var(--radix-popover-trigger-width)]",[bo.auto]:"w-max min-w-0"},size:{[ae.sm]:"text-xs",[ae.md]:"text-sm",[ae.lg]:"text-sm",[ae.xl]:"text-base"}},defaultVariants:{widthMode:bo.auto,size:ae.md}}),rb={[ae.sm]:"min-h-7.5 py-1.5 px-2.5 pr-3 text-xs",[ae.md]:"min-h-9 py-2 px-3 pr-4.5 text-sm",[ae.lg]:"min-h-10 py-2.5 px-3.5 pr-5.5 text-sm",[ae.xl]:"min-h-11 py-3 px-4 pr-6 text-base"},ob={[ae.sm]:"px-2 py-1 text-xs",[ae.md]:"px-2 py-1.5 text-sm",[ae.lg]:"px-2.5 py-1.5 text-sm",[ae.xl]:"px-3 py-2 text-base"},sa={[ae.sm]:"size-3.5",[ae.md]:"size-4",[ae.lg]:"size-4",[ae.xl]:"size-4.5"};function Hn(e){if(e===null||e===void 0||typeof e==="boolean")return"";if(typeof e==="string"||typeof e==="number")return String(e);if(Array.isArray(e))return e.map((t)=>Hn(t)).join("");if(jv(e))return Hn(e.props.children);return""}var kn=Ev(null);function la(){let e=cp(kn);if(!e)throw Error("Select components must be used within Select");return e}function An(e){let t=cp(kn);if(e)return e;return t?.triggerSize??ae.md}var ab=({children:e,value:t,defaultValue:r="",onValueChange:o,open:n,defaultOpen:i=!1,onOpenChange:s,disabled:l=!1})=>{let[d,m]=vo(ae.md),[f,u]=vo(!1),[v,p]=vo(r),[y,z]=vo(i),[M,w]=vo(0),h=up(new Map),b=t!==void 0,C=n!==void 0,B=b?t:v,R=C?n:y,A=na((V)=>{if(!b)p(V);if(o?.(V),!C)z(!1);s?.(!1)},[b,C,o,s]),S=na((V)=>{if(l)return;if(!C)z(V);s?.(V)},[l,C,s]),I=na((V,P)=>{if(h.current.get(V)!==P)h.current.set(V,P),w((j)=>j+1)},[]),K=na((V)=>{return h.current.get(V)},[]),O=dp(),$=dp(),N=eb(()=>({value:B,onValueChange:A,open:R,onOpenChange:S,triggerSize:d,setTriggerSize:m,triggerFullWidth:f,setTriggerFullWidth:u,disabled:l,triggerId:O,contentId:$,registerItem:I,getLabel:K}),[B,A,R,S,d,f,l,O,$,I,K,M]);return le(kn.Provider,{value:N,children:le(It.Root,{open:R,onOpenChange:S,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},nb=({children:e,className:t})=>le("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),ib=({placeholder:e})=>{let{value:t,getLabel:r}=la();if(!t)return e?le("span",{className:"text-muted-foreground",children:e},void 0,!1,void 0,this):null;let o=r(t);return le(sb,{children:o??t},void 0,!1,void 0,this)},yp=To(({className:e,children:t,size:r=ae.md,status:o=_r.default,fullWidth:n=!1,clearable:i=!1,leadingIcon:s,indicatorIcon:l,renderValue:d,placeholder:m,onKeyDown:f,...u},v)=>{let p=la(),y=c(r)??r,z=p.setTriggerSize,M=p.setTriggerFullWidth;ia(()=>{z(y)},[y,z]),ia(()=>{M(n)},[n,M]);let w=p.value.length>0,h=i&&w&&!p.disabled,b=(R)=>{R.stopPropagation(),R.preventDefault(),p.onValueChange("")},C;if(d)C=w?d(p.value):m?le("span",{className:"text-muted-foreground",children:m},void 0,!1,void 0,this):null;else C=t;let B=(R)=>{if(f?.(R),R.defaultPrevented)return;if(R.key==="ArrowDown"||R.key==="ArrowUp"||R.key==="Enter"||R.key===" "){if(!p.open)R.preventDefault(),p.onOpenChange(!0)}};return le(It.Trigger,{asChild:!0,children:le("button",{ref:v,type:"button",role:"combobox","aria-expanded":p.open,"aria-haspopup":"listbox","aria-controls":p.contentId,id:p.triggerId,disabled:p.disabled,"data-state":p.open?"open":"closed","data-placeholder":w?void 0:"",className:a(fp({size:y,status:o}),n?"w-full":"w-auto",e),onKeyDown:B,...u,children:[s&&le("i",{className:"inline-flex shrink-0 items-center text-muted-foreground not-italic",children:s},void 0,!1,void 0,this),le("span",{"data-slot":"select-value",className:"min-w-0 flex-1 text-left",children:C},void 0,!1,void 0,this),le("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[h&&le("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onMouseDown:(R)=>R.preventDefault(),onClick:b,className:"gs-interactive inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:le(qv,{className:sa[y]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??le(Jv,{className:a(sa[y],"opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]",p.open&&"rotate-180")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});yp.displayName="SelectTrigger";var vp=To(({className:e,children:t,widthMode:r,size:o,align:n="start",side:i="bottom",sideOffset:s=4,portal:l=!0,forceMount:d=!0,onKeyDown:m,...f},u)=>{let v=la(),p=An(o),y=r??bo.auto,z=up(null),M=no(u,z),w=(C)=>{let B=z.current;if(!B)return;let R=Array.from(B.querySelectorAll('[role="option"]:not([data-disabled])'));if(R.length===0)return;let A=B.querySelector('[role="option"]:focus'),S=A?R.indexOf(A):-1,I;switch(C){case"first":I=R[0];break;case"last":I=R[R.length-1];break;case"next":I=R[S+1]??R[0];break;case"prev":I=R[S-1]??R[R.length-1];break}I?.focus()},h=(C)=>{if(m?.(C),C.defaultPrevented)return;switch(C.key){case"ArrowDown":C.preventDefault(),w("next");break;case"ArrowUp":C.preventDefault(),w("prev");break;case"Home":C.preventDefault(),w("first");break;case"End":C.preventDefault(),w("last");break;case"Escape":C.preventDefault(),v.onOpenChange(!1);break}};ia(()=>{if(v.open)requestAnimationFrame(()=>w("first"))},[v.open]);let b=le(It.Content,{ref:M,id:v.contentId,role:"listbox","aria-labelledby":v.triggerId,side:i,align:n,sideOffset:s,forceMount:d,onKeyDown:h,onOpenAutoFocus:(C)=>C.preventDefault(),className:a(Ar(),gp({widthMode:y,size:p}),"p-1",e),...f,children:t},void 0,!1,void 0,this);if(l)return le(It.Portal,{children:b},void 0,!1,void 0,this);return b});vp.displayName="SelectContent";var bp=To(({className:e,size:t,...r},o)=>{let n=An(t);return le("div",{ref:o,className:a("font-semibold text-foreground",ob[n],e),...r},void 0,!1,void 0,this)});bp.displayName="SelectLabel";var Tp=To(({className:e,children:t,value:r,label:o,size:n,disabled:i=!1,...s},l)=>{let d=la(),m=An(n),f=d.value===r,u=d.registerItem,v=Hn(Qv.toArray(t)).trim();ia(()=>{let z=o??(v.length>0?v:r);u(r,z)},[v,r,o,u]);let p=()=>{if(!i)d.onValueChange(r)},y=(z)=>{if(z.key==="Enter"||z.key===" ")z.preventDefault(),p()};return le("div",{ref:l,role:"option",tabIndex:i?void 0:-1,"aria-selected":f,"aria-disabled":i||void 0,"data-selected":f?"":void 0,"data-disabled":i?"":void 0,"data-value":r,className:a("gs-interactive relative flex w-full cursor-pointer select-none items-center gap-2","rounded-[calc(var(--radius)-3px)] outline-none","hover:bg-accent focus-visible:bg-accent focus-visible:text-accent-foreground","data-disabled:cursor-not-allowed data-disabled:opacity-50",rb[m],f&&"bg-accent/50",e),onClick:p,onKeyDown:y,...s,children:[le("span",{className:a("flex shrink-0 items-center justify-center",sa[m]),children:f&&le(Zv,{className:sa[m]},void 0,!1,void 0,this)},void 0,!1,void 0,this),le("span",{className:"min-w-0 flex-1 truncate",children:t},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Tp.displayName="SelectItem";var hp=To(({className:e,...t},r)=>le("div",{ref:r,className:a("-mx-1 my-1 h-px bg-border",e),...t},void 0,!1,void 0,this));hp.displayName="SelectSeparator";import{cva as lb}from"class-variance-authority";import{forwardRef as mb}from"react";import{jsxDEV as db}from"react/jsx-dev-runtime";var ho={horizontal:"horizontal",vertical:"vertical"},Pp=lb("shrink-0 bg-border",{variants:{orientation:{[ho.horizontal]:"h-px w-full",[ho.vertical]:"h-full w-px"}},defaultVariants:{orientation:ho.horizontal}}),xp=mb(({className:e,orientation:t=ho.horizontal,decorative:r=!0,...o},n)=>{let i=r?{role:"none"}:{role:"separator","aria-orientation":t};return db("div",{ref:n,className:a(Pp({orientation:t}),e),...i,...o},void 0,!1,void 0,this)});xp.displayName="Separator";import{cva as ma}from"class-variance-authority";import{forwardRef as da}from"react";import{jsxDEV as pa}from"react/jsx-dev-runtime";var Te={sm:"sm",md:"md",lg:"lg"},Cp=ma("animate-pulse rounded-[var(--radius)] bg-muted"),zp=ma("w-full",{variants:{size:{[Te.sm]:"h-3",[Te.md]:"h-4",[Te.lg]:"h-5"}},defaultVariants:{size:Te.md}}),Sp=ma("",{variants:{size:{[Te.sm]:"h-8 w-8",[Te.md]:"h-10 w-10",[Te.lg]:"h-12 w-12"}},defaultVariants:{size:Te.md}}),Np=ma("",{variants:{size:{[Te.sm]:"h-8 w-20",[Te.md]:"h-9 w-24",[Te.lg]:"h-10 w-28"}},defaultVariants:{size:Te.md}}),Po=da(({className:e,circle:t=!1,...r},o)=>pa("div",{ref:o,className:a(Cp(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));Po.displayName="Skeleton";var wp=da(({className:e,size:t=Te.md,...r},o)=>{let n=c(t)??Te.md;return pa(Po,{ref:o,className:a(zp({size:n}),e),...r},void 0,!1,void 0,this)});wp.displayName="SkeletonText";var Rp=da(({className:e,size:t=Te.md,...r},o)=>{let n=c(t)??Te.md;return pa(Po,{ref:o,circle:!0,className:a(Sp({size:n}),e),...r},void 0,!1,void 0,this)});Rp.displayName="SkeletonAvatar";var Mp=da(({className:e,size:t=Te.md,...r},o)=>{let n=c(t)??Te.md;return pa(Po,{ref:o,className:a(Np({size:n}),e),...r},void 0,!1,void 0,this)});Mp.displayName="SkeletonButton";import*as Vt from"@radix-ui/react-slider";import{cva as fa}from"class-variance-authority";import{forwardRef as pb}from"react";import{jsxDEV as ua}from"react/jsx-dev-runtime";var ca={sm:"sm",md:"md",lg:"lg"},Lp=fa("relative flex w-full touch-none select-none items-center",{variants:{size:{[ca.sm]:"[&_[data-slider-track]]:h-0.5 [&_[data-slider-thumb]]:h-3 [&_[data-slider-thumb]]:w-3",[ca.md]:"[&_[data-slider-track]]:h-2 [&_[data-slider-thumb]]:h-5 [&_[data-slider-thumb]]:w-5",[ca.lg]:"[&_[data-slider-track]]:h-3 [&_[data-slider-thumb]]:h-6 [&_[data-slider-thumb]]:w-6"}},defaultVariants:{size:ca.md}}),Hp=fa("relative w-full grow overflow-hidden rounded-full bg-secondary"),kp=fa("absolute h-full bg-primary"),Ap=fa("gs-interactive block rounded-full border-2 border-primary bg-background ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"),Ip=pb(({className:e,size:t,...r},o)=>{let n=c(t);return ua(Vt.Root,{ref:o,className:a(Lp({size:n}),e),...r,children:[ua(Vt.Track,{"data-slider-track":!0,className:a(Hp()),children:ua(Vt.Range,{className:a(kp())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((i,s)=>ua(Vt.Thumb,{"data-slider-thumb":!0,className:a(Ap())},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});Ip.displayName="Slider";import{cva as Se}from"class-variance-authority";import{forwardRef as fb,useCallback as ga,useEffect as gb,useMemo as ya,useRef as xo,useState as Op}from"react";import{useCallback as Vp,useSyncExternalStore as cb}from"react";var ub=()=>!1;function Fp(e){let t=Vp((o)=>{if(typeof window>"u")return()=>{};let n=window.matchMedia(e);return n.addEventListener("change",o),()=>n.removeEventListener("change",o)},[e]),r=Vp(()=>{if(typeof window>"u")return!1;return window.matchMedia(e).matches},[e]);return cb(t,r,ub)}import{jsxDEV as U,Fragment as Vn}from"react/jsx-dev-runtime";var yb="(max-width: 639px)",x={sm:"sm",md:"md",lg:"lg",xl:"xl"},In={sm:"sm",md:"sm",lg:"md",xl:"md"},Gr={idle:"idle",loading:"loading",error:"error"},Bp=Se("z-[120] bg-black/40"),Dp=Se(["gs-spotlight-content fixed inset-x-0 top-[15vh] z-[120] w-full mx-auto","rounded-[calc(var(--radius)+6px)] border border-border bg-popover shadow-2xl","overflow-hidden"],{variants:{size:{[x.sm]:"max-w-md",[x.md]:"max-w-xl",[x.lg]:"max-w-2xl",[x.xl]:"max-w-3xl"}},defaultVariants:{size:x.md}}),_p=Se(["gs-sheet-content gs-sheet-content-bottom","fixed inset-x-0 bottom-0 z-[120] w-full flex flex-col","rounded-t-2xl border-t border-x border-border bg-popover shadow-2xl","overflow-hidden"]),Gp=Se("flex items-center border-b border-border",{variants:{size:{[x.sm]:"gap-2 px-3 py-2",[x.md]:"gap-3 px-4 py-3",[x.lg]:"gap-3 px-5 py-3.5",[x.xl]:"gap-4 px-6 py-4"}},defaultVariants:{size:x.md}}),Wp=Se(["w-full flex-1 bg-transparent text-foreground","placeholder:text-muted-foreground","outline-none border-none"],{variants:{size:{[x.sm]:"text-sm",[x.md]:"text-base",[x.lg]:"text-lg",[x.xl]:"text-xl"}},defaultVariants:{size:x.md}}),Up=Se("text-muted-foreground shrink-0",{variants:{size:{[x.sm]:"size-3.5",[x.md]:"size-4",[x.lg]:"size-5",[x.xl]:"size-5"}},defaultVariants:{size:x.md}}),$p=Se("overflow-y-auto py-1",{variants:{size:{[x.sm]:"max-h-64",[x.md]:"max-h-80",[x.lg]:"max-h-96",[x.xl]:"max-h-[28rem]"}},defaultVariants:{size:x.md}}),Kp=Se("font-semibold text-muted-foreground uppercase tracking-wide",{variants:{size:{[x.sm]:"px-2.5 py-1.5 text-[10px]",[x.md]:"px-3 py-2 text-xs",[x.lg]:"px-3.5 py-2 text-xs",[x.xl]:"px-4 py-2.5 text-xs"}},defaultVariants:{size:x.md}}),Yp=Se(["group flex items-center cursor-pointer rounded-lg","text-foreground","transition-[color,background-color,transform,box-shadow] duration-100","active:scale-[0.98]"],{variants:{size:{[x.sm]:"gap-2 px-2.5 py-1.5 mx-1.5",[x.md]:"gap-3 px-3 py-2 mx-2",[x.lg]:"gap-3 px-3.5 py-2.5 mx-2",[x.xl]:"gap-4 px-4 py-3 mx-2.5"},selected:{true:"bg-primary/10",false:"hover:bg-muted hover:translate-x-0.5"},disabled:{true:"text-muted-foreground cursor-not-allowed pointer-events-none bg-muted/40",false:""}},defaultVariants:{size:x.md,selected:!1,disabled:!1}}),Xp=Se("shrink-0",{variants:{size:{[x.sm]:"size-3.5",[x.md]:"size-4",[x.lg]:"size-5",[x.xl]:"size-5"},selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{size:x.md,selected:!1}}),Zp=Se("flex-1 min-w-0"),Jp=Se("font-medium truncate",{variants:{size:{[x.sm]:"text-xs",[x.md]:"text-sm",[x.lg]:"text-sm",[x.xl]:"text-base"}},defaultVariants:{size:x.md}}),qp=Se("text-muted-foreground truncate",{variants:{size:{[x.sm]:"text-[11px]",[x.md]:"text-xs",[x.lg]:"text-xs",[x.xl]:"text-sm"}},defaultVariants:{size:x.md}}),Qp=Se("flex items-center gap-1 text-muted-foreground shrink-0",{variants:{size:{[x.sm]:"text-[10px]",[x.md]:"text-[11px]",[x.lg]:"text-xs",[x.xl]:"text-xs"}},defaultVariants:{size:x.md}}),va=Se("flex flex-col items-center justify-center text-muted-foreground",{variants:{size:{[x.sm]:"py-6 min-h-20",[x.md]:"py-8 min-h-24",[x.lg]:"py-10 min-h-28",[x.xl]:"py-12 min-h-32"},state:{empty:"text-muted-foreground",loading:"text-muted-foreground",error:"text-destructive"}},defaultVariants:{size:x.md,state:"empty"}}),ba=Se("font-medium",{variants:{size:{[x.sm]:"text-xs",[x.md]:"text-sm",[x.lg]:"text-sm",[x.xl]:"text-base"}},defaultVariants:{size:x.md}}),Ep=Se("mt-1",{variants:{size:{[x.sm]:"text-[11px]",[x.md]:"text-xs",[x.lg]:"text-xs",[x.xl]:"text-sm"}},defaultVariants:{size:x.md}}),jp=(e,t)=>{if(!t)return!0;let r=t.toLowerCase();if(e.title.toLowerCase().includes(r))return!0;if(e.description?.toLowerCase().includes(r))return!0;if(e.keywords?.some((o)=>o.toLowerCase().includes(r)))return!0;return!1},ec=fb(({className:e,open:t,onOpenChange:r,actions:o,onActionSelect:n,value:i,defaultValue:s="",onValueChange:l,placeholder:d="Search commands, pages, or actions...",size:m=x.md,status:f=Gr.idle,statusMessage:u,emptyText:v="No command found for this query.",hotkey:p,portal:y=!0,filterFn:z,renderItem:M,footer:w,...h},b)=>{let C=xo(null),B=xo(null),[R,A]=Op(s),[S,I]=Op(0),{isMac:K}=io(),O=Fp(yb),$=ya(()=>p&&p.length>0?p.join("+"):null,[p]);Qr($??"",()=>r(!t),{enabled:!!$});let N=i!==void 0?i:R,V=z??jp,P=ya(()=>o.filter((k)=>V(k,N)),[o,N,V]),F=ya(()=>P.map((k,W)=>k.disabled?-1:W).filter((k)=>k>=0),[P]),j=ya(()=>{let k=new Map,W=new Map,Q=0;for(let fe of P){let Ie=fe.group??"";if(!k.has(Ie))k.set(Ie,[]);k.get(Ie).push(fe),W.set(fe,Q),Q++}return{groups:k,indexMap:W}},[P]),H=xo(!1),Y=xo(t);if(Y.current&&!t)H.current=!0;if(!Y.current&&t)H.current=!1;Y.current=t;let g=xo({query:N,status:f,statusMessage:u??null,filtered:P,grouped:j,activeIndex:S,emptyText:v});if(!H.current)g.current={query:N,status:f,statusMessage:u??null,filtered:P,grouped:j,activeIndex:S,emptyText:v};gb(()=>{if(t)I(0)},[t]);let T=ga((k)=>{let W=k.target.value;A(W),l?.(W),I(0)},[l]),L=ga((k)=>{let W=B.current;if(!W)return;W.querySelectorAll('[role="option"]')[k]?.scrollIntoView({block:"nearest"})},[]),re=ga((k)=>{if(k.key==="ArrowDown"){if(k.preventDefault(),F.length===0)return;let Q=(F.indexOf(S)+1)%F.length,fe=F[Q];I(fe),L(fe);return}if(k.key==="ArrowUp"){if(k.preventDefault(),F.length===0)return;let Q=(F.indexOf(S)-1+F.length)%F.length,fe=F[Q];I(fe),L(fe);return}if(k.key==="Enter"){k.preventDefault();let W=P[S];if(W&&!W.disabled)n(W,S)}},[S,F,P,n,L]),ee=ga((k,W)=>{if(k.disabled)return;n(k,W)},[n]),oe=g.current,te=oe.status===Gr.idle,de=oe.status!==Gr.idle,dr=U(Vn,{children:[U("div",{className:a(Gp({size:m})),children:[U("svg",{className:a(Up({size:m})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:U("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),U("input",{ref:C,type:"text",value:oe.query,onChange:T,placeholder:d,"aria-label":"Search",className:a(Wp({size:m}))},void 0,!1,void 0,this),!O&&p?U("div",{className:"flex items-center gap-1",children:Ta(p,K).map((k,W)=>U("kbd",{className:a(Lr({size:In[m]})),children:k},W,!1,void 0,this))},void 0,!1,void 0,this):!O?U("kbd",{className:a(Lr({size:In[m]})),children:"ESC"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),de&&oe.status===Gr.loading&&U("div",{className:a(va({size:m,state:"loading"}),"animate-in fade-in-0 slide-in-from-bottom-1 duration-150"),children:[U(xt,{size:"sm",className:"mb-2 text-muted-foreground"},void 0,!1,void 0,this),U("div",{className:a(ba({size:m})),children:"Searching commands..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),de&&oe.status===Gr.error&&U("div",{className:a(va({size:m,state:"error"}),"animate-in fade-in-0 slide-in-from-bottom-1 duration-150"),children:[U("div",{className:a(ba({size:m})),children:"Search failed"},void 0,!1,void 0,this),oe.statusMessage&&U("div",{className:a(Ep({size:m})),children:oe.statusMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),te&&oe.filtered.length===0&&U("div",{className:a(va({size:m,state:"empty"}),"animate-in fade-in-0 slide-in-from-bottom-1 duration-150"),children:U("div",{className:a(ba({size:m})),children:oe.emptyText},void 0,!1,void 0,this)},void 0,!1,void 0,this),te&&oe.filtered.length>0&&U("div",{ref:B,role:"listbox","aria-label":"Search results",className:a($p({size:m}),O&&"max-h-none flex-1 min-h-0"),children:Array.from(oe.grouped.groups.entries()).map(([k,W])=>U("div",{children:[k&&U("div",{className:a(Kp({size:m})),children:k},void 0,!1,void 0,this),W.map((Q)=>{let fe=oe.grouped.indexMap.get(Q)??0,Ie=fe===oe.activeIndex,$a=Q.disabled??!1;return U("div",{role:"option","aria-selected":Ie,"aria-disabled":$a,onClick:()=>ee(Q,fe),className:a(Yp({size:m,selected:Ie,disabled:$a})),children:M?M(Q,{active:Ie,disabled:$a,index:fe}):U(Vn,{children:[Q.icon&&U("span",{className:a(Xp({size:m,selected:Ie})),children:Q.icon},void 0,!1,void 0,this),U("div",{className:a(Zp()),children:[U("div",{className:a(Jp({size:m})),children:Q.title},void 0,!1,void 0,this),Q.description&&U("div",{className:a(qp({size:m})),children:Q.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q.shortcut&&Q.shortcut.length>0&&U("div",{className:a(Qp({size:m})),children:Ta(Q.shortcut,K).map((uf,ff)=>U("kbd",{className:a(Lr({size:In[m]})),children:uf},ff,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},Q.id,!1,void 0,this)})]},k||"__ungrouped__",!0,void 0,this))},void 0,!1,void 0,this),w&&U("div",{className:"border-t border-border px-3 py-2",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X=U(jr,{"data-testid":"spotlight-overlay",className:a(Bp()),onClick:()=>r(!1)},void 0,!1,void 0,this),ue=U(cn,{...h,ref:b,className:a(O?_p():Dp({size:m}),e),"aria-label":"Spotlight search","aria-describedby":void 0,onOpenAutoFocus:(k)=>{k.preventDefault(),C.current?.focus()},onCloseAutoFocus:(k)=>k.preventDefault(),onKeyDown:re,children:[U($o,{className:"sr-only",children:"Spotlight search"},void 0,!1,void 0,this),O&&U("div",{className:"flex justify-center pt-2 pb-1",children:U("div",{className:"h-1 w-8 rounded-full bg-muted-foreground/30"},void 0,!1,void 0,this)},void 0,!1,void 0,this),dr]},void 0,!0,void 0,this);return U(Er,{open:t,onOpenChange:r,children:y?U(Wo,{children:[X,ue]},void 0,!0,void 0,this):U(Vn,{children:[X,ue]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});ec.displayName="Spotlight";import{cva as vb}from"class-variance-authority";import{forwardRef as bb}from"react";import{jsxDEV as Ft}from"react/jsx-dev-runtime";var Ke={sm:"sm",md:"md",lg:"lg"},rr={up:"up",down:"down",neutral:"neutral"},tc=vb("gs-interactive relative flex flex-col rounded-lg border border-border bg-card text-card-foreground shadow-sm transition-[color,background-color,border-color,box-shadow] duration-150 hover:shadow-md",{variants:{size:{[Ke.sm]:"gap-1 p-3",[Ke.md]:"gap-1.5 p-4",[Ke.lg]:"gap-2 p-5"}},defaultVariants:{size:Ke.md}}),Tb={[Ke.sm]:"text-lg font-semibold",[Ke.md]:"text-2xl font-bold",[Ke.lg]:"text-3xl font-bold"},hb={[Ke.sm]:"text-xs",[Ke.md]:"text-sm",[Ke.lg]:"text-base"},Pb={[rr.up]:"text-success",[rr.down]:"text-destructive",[rr.neutral]:"text-muted-foreground"},xb={[rr.up]:"↑",[rr.down]:"↓",[rr.neutral]:"→"},rc=bb(({className:e,size:t=Ke.md,label:r,value:o,trend:n,trendValue:i,icon:s,...l},d)=>{let m=c(t);return Ft("div",{ref:d,className:a(tc({size:m}),e),...l,children:[Ft("div",{className:"flex items-center justify-between",children:[Ft("span",{className:a("text-muted-foreground",hb[m]),children:r},void 0,!1,void 0,this),s&&Ft("span",{className:"text-muted-foreground/70","aria-hidden":"true",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ft("div",{className:"flex items-baseline gap-2",children:[Ft("span",{className:a("tracking-tight text-foreground",Tb[m]),children:o},void 0,!1,void 0,this),n&&i&&Ft("span",{className:a("inline-flex items-center gap-0.5 text-xs font-medium",Pb[n]),children:[Ft("span",{"aria-hidden":"true",children:xb[n]},void 0,!1,void 0,this),i]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});rc.displayName="StatCard";import{cva as or}from"class-variance-authority";import{Check as Cb}from"lucide-react";import{forwardRef as ar}from"react";import{jsxDEV as Ot}from"react/jsx-dev-runtime";var oc=or("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),ac=or("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),nc=or(["relative z-10 flex shrink-0 items-center justify-center rounded-full border-2 font-semibold","transition-[color,background-color,border-color,box-shadow] duration-200 ease-out"],{variants:{status:{incomplete:["border-border/80 bg-card text-muted-foreground","shadow-[0_1px_2px_rgba(0,0,0,0.05)]"],current:["border-primary bg-primary text-primary-foreground","shadow-[0_2px_4px_rgba(99,102,241,0.2)]"],complete:["border-success/60 bg-success text-success-foreground","shadow-[0_1px_3px_rgba(0,0,0,0.1)]","[&>svg]:gs-step-check-animated"]},size:{sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base",xl:"h-14 w-14 text-lg"},animated:{true:"gs-step-indicator-animated",false:""}},defaultVariants:{status:"incomplete",size:"md",animated:!0}}),ic=or("rounded-full transition-[background-color,opacity] duration-300 ease-out",{variants:{orientation:{horizontal:"mx-2 mt-5 h-1 flex-1",vertical:"ml-5 min-h-10 w-1"},status:{incomplete:"bg-border/60",complete:"bg-gradient-to-r from-primary to-success"},size:{sm:"opacity-80",md:"",lg:"opacity-95",xl:"opacity-100"},animated:{true:"",false:""}},compoundVariants:[{status:"complete",orientation:"horizontal",animated:!0,className:"gs-connector-fill-animated"},{status:"complete",orientation:"vertical",animated:!0,className:"gs-connector-fill-vertical-animated"}],defaultVariants:{orientation:"horizontal",status:"incomplete",size:"md",animated:!0}}),sc=or("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),lc=or("font-medium transition-colors duration-200 ease-out",{variants:{status:{incomplete:"text-muted-foreground",current:"text-foreground",complete:"text-foreground"},size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{status:"incomplete",size:"md"}}),mc=or("text-muted-foreground transition-colors duration-200 ease-out",{variants:{size:{sm:"text-sm",md:"text-xs",lg:"text-sm",xl:"text-base"}},defaultVariants:{size:"md"}});var dc=ar(({className:e,orientation:t="horizontal",activeStep:r,...o},n)=>{return Ot("div",{ref:n,role:"group","aria-label":"Progress steps",className:a(oc({orientation:t}),e),"data-orientation":t,"data-active-step":r,...o},void 0,!1,void 0,this)});dc.displayName="Stepper";var pc=ar(({className:e,orientation:t="horizontal",isLast:r,isCurrent:o,...n},i)=>{return Ot("div",{ref:i,className:a(ac({orientation:t}),e),"data-last":r,"aria-current":o?"step":void 0,...n},void 0,!1,void 0,this)});pc.displayName="Step";var cc=ar(({className:e,status:t="incomplete",size:r="md",icon:o,step:n,children:i,animated:s=!0,...l},d)=>{let m=c(r);return Ot("div",{ref:d,className:a(nc({status:t,size:m,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?o||Ot(Cb,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):i||n},void 0,!1,void 0,this)});cc.displayName="StepIndicator";var uc=ar(({className:e,orientation:t="horizontal",status:r="incomplete",size:o="md",animated:n=!0,...i},s)=>{let l=c(o);return Ot("div",{ref:s,className:a(ic({orientation:t,status:r,size:l,animated:n}),e),"data-status":r,...i},void 0,!1,void 0,this)});uc.displayName="StepConnector";var fc=ar(({className:e,orientation:t="horizontal",...r},o)=>{return Ot("div",{ref:o,className:a(sc({orientation:t}),e),...r},void 0,!1,void 0,this)});fc.displayName="StepContent";var gc=ar(({className:e,status:t="incomplete",size:r="md",...o},n)=>{let i=c(r);return Ot("h4",{ref:n,className:a(lc({status:t,size:i}),e),...o},void 0,!1,void 0,this)});gc.displayName="StepTitle";var yc=ar(({className:e,size:t="md",...r},o)=>{let n=c(t);return Ot("p",{ref:o,className:a(mc({size:n}),e),...r},void 0,!1,void 0,this)});yc.displayName="StepDescription";import*as ha from"@radix-ui/react-switch";import{cva as zb}from"class-variance-authority";import{forwardRef as Sb}from"react";import{jsxDEV as vc}from"react/jsx-dev-runtime";var He={sm:"sm",md:"md",lg:"lg",xl:"xl"},Wr={default:"default",error:"error",success:"success"},bc=zb("gs-interactive relative inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent bg-input enabled:active:scale-[0.96] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:bg-input/70",{variants:{size:{[He.sm]:"h-4.5 w-8",[He.md]:"h-5 w-9",[He.lg]:"h-6 w-11",[He.xl]:"h-7 w-[3.25rem]"},status:{[Wr.default]:"disabled:data-[state=checked]:bg-muted-foreground/40 enabled:data-[state=unchecked]:hover:bg-input/80 data-[state=checked]:bg-primary data-[state=checked]:hover:bg-primary/90",[Wr.error]:"bg-destructive/30 disabled:bg-destructive/25 disabled:data-[state=checked]:bg-destructive/50 enabled:data-[state=unchecked]:hover:bg-destructive/45 focus-visible:ring-destructive data-[state=checked]:bg-destructive data-[state=checked]:hover:bg-destructive/90",[Wr.success]:"disabled:bg-success/20 disabled:data-[state=checked]:bg-success/45 focus-visible:ring-success enabled:data-[state=unchecked]:hover:bg-input/80 data-[state=checked]:bg-success data-[state=checked]:hover:bg-success/90"}},defaultVariants:{size:He.md,status:Wr.default}}),Nb={[He.sm]:"h-3.5 w-3.5",[He.md]:"h-4 w-4",[He.lg]:"h-5 w-5",[He.xl]:"h-6 w-6"},wb={[He.sm]:"data-[state=checked]:translate-x-3.5",[He.md]:"data-[state=checked]:translate-x-4",[He.lg]:"data-[state=checked]:translate-x-5",[He.xl]:"data-[state=checked]:translate-x-6"},Tc=Sb(({className:e,size:t=He.md,status:r=Wr.default,checked:o,disabled:n,...i},s)=>{let l=c(t);return vc(ha.Root,{ref:s,checked:o,disabled:n,className:a(bc({size:l,status:r}),e),...i,children:vc(ha.Thumb,{className:a("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",Nb[l],wb[l])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Tc.displayName="Switch";import{cva as Tt}from"class-variance-authority";import{createContext as Rb,forwardRef as Bt,useContext as hc}from"react";import{jsxDEV as lt}from"react/jsx-dev-runtime";var we={sm:"sm",md:"md",lg:"lg"},Fn=Rb(we.md),Pc=Tt("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),xc=Tt("w-full caption-bottom",{variants:{size:{[we.sm]:"text-xs",[we.md]:"text-sm",[we.lg]:"text-sm"}},defaultVariants:{size:we.md}}),Cc=Tt("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),zc=Tt("[&_tr:last-child]:border-0"),Sc=Tt("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),Nc=Tt("gs-interactive border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),wc=Tt("text-left align-middle font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[we.sm]:"h-8 px-2",[we.md]:"h-10 px-3",[we.lg]:"h-12 px-4"}},defaultVariants:{size:we.md}}),Rc=Tt("align-middle text-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[we.sm]:"p-2",[we.md]:"p-3",[we.lg]:"p-4"}},defaultVariants:{size:we.md}}),Mc=Tt("mt-4 text-sm text-muted-foreground"),Lc=Bt(({className:e,containerClassName:t,size:r=we.md,...o},n)=>{let i=c(r)??we.md;return lt(Fn.Provider,{value:i,children:lt("div",{className:a(Pc(),t),children:lt("table",{ref:n,className:a(xc({size:i}),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Lc.displayName="Table";var Hc=Bt(({className:e,...t},r)=>lt("thead",{ref:r,className:a(Cc(),e),...t},void 0,!1,void 0,this));Hc.displayName="TableHeader";var kc=Bt(({className:e,...t},r)=>lt("tbody",{ref:r,className:a(zc(),e),...t},void 0,!1,void 0,this));kc.displayName="TableBody";var Ac=Bt(({className:e,...t},r)=>lt("tfoot",{ref:r,className:a(Sc(),e),...t},void 0,!1,void 0,this));Ac.displayName="TableFooter";var Ic=Bt(({className:e,...t},r)=>lt("tr",{ref:r,className:a(Nc(),e),...t},void 0,!1,void 0,this));Ic.displayName="TableRow";var Vc=Bt(({className:e,size:t,...r},o)=>{let n=hc(Fn);return lt("th",{ref:o,className:a(wc({size:t??n}),e),...r},void 0,!1,void 0,this)});Vc.displayName="TableHead";var Fc=Bt(({className:e,size:t,...r},o)=>{let n=hc(Fn);return lt("td",{ref:o,className:a(Rc({size:t??n}),e),...r},void 0,!1,void 0,this)});Fc.displayName="TableCell";var Oc=Bt(({className:e,...t},r)=>lt("caption",{ref:r,className:a(Mc(),e),...t},void 0,!1,void 0,this));Oc.displayName="TableCaption";import*as rt from"@radix-ui/react-tabs";import{cva as On}from"class-variance-authority";import{createContext as Mb,forwardRef as Bn,useCallback as Bc,useContext as Lb,useEffect as Dn,useLayoutEffect as Hb,useRef as Pa,useState as kb}from"react";import{jsxDEV as Co}from"react/jsx-dev-runtime";var mt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Dc=On("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[mt.sm]:"h-9 gap-0.5",[mt.md]:"h-11 gap-1",[mt.lg]:"h-12 gap-1",[mt.xl]:"h-14 gap-1.5"}},defaultVariants:{size:mt.md}}),_c=On("gs-interactive relative z-10 inline-flex items-center justify-center whitespace-nowrap rounded-[calc(var(--radius)-2px)] font-semibold outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:text-muted-foreground/50 data-[state=active]:text-foreground data-[state=inactive]:hover:text-foreground/80",{variants:{size:{[mt.sm]:"px-2.5 py-1 text-xs",[mt.md]:"px-3 py-1.5 text-sm",[mt.lg]:"px-4 py-2 text-sm",[mt.xl]:"px-5 py-2.5 text-base"}},defaultVariants:{size:mt.md}}),Gc=On("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),Wc=Mb({registerTrigger:()=>{}}),Ab=typeof window<"u"?Hb:Dn,Ib=rt.Root,Uc=Bn(({className:e,size:t,children:r,...o},n)=>{let i=c(t),s=Pa(null),l=Pa(new Map),[d,m]=kb(null),f=Pa(!0),u=Bc((p,y)=>{if(y)l.current.set(p,y);else l.current.delete(p)},[]),v=Bc(()=>{let p=s.current;if(!p)return;let y=p.querySelector('[data-state="active"]');if(!y){m(null);return}let z=p.getBoundingClientRect(),M=y.getBoundingClientRect();m({left:M.left-z.left,width:M.width})},[]);return Ab(()=>{v()},[v]),Dn(()=>{let p=s.current;if(!p)return;let y=new MutationObserver(()=>{f.current=!1,v()});return y.observe(p,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>y.disconnect()},[v]),Co(Wc.Provider,{value:{registerTrigger:u},children:Co(rt.List,{ref:(p)=>{if(s.current=p,typeof n==="function")n(p);else if(n)n.current=p},className:a(Dc({size:i}),e),...o,children:[d&&Co("span",{"aria-hidden":"true",className:a("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!f.current&&"transition-[left,width] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]"),style:{left:d.left,width:d.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Uc.displayName=rt.List.displayName;var $c=Bn(({className:e,size:t,value:r,...o},n)=>{let i=c(t),{registerTrigger:s}=Lb(Wc),l=Pa(null);return Dn(()=>{return s(r,l.current),()=>s(r,null)},[r,s]),Co(rt.Trigger,{ref:(d)=>{if(l.current=d,typeof n==="function")n(d);else if(n)n.current=d},value:r,className:a(_c({size:i}),e),...o},void 0,!1,void 0,this)});$c.displayName=rt.Trigger.displayName;var Kc=Bn(({className:e,...t},r)=>Co(rt.Content,{ref:r,className:a(Gc(),e),...t},void 0,!1,void 0,this));Kc.displayName=rt.Content.displayName;import{cva as Vb}from"class-variance-authority";import{forwardRef as Fb}from"react";import{jsxDEV as Ob}from"react/jsx-dev-runtime";var zo={default:"default",error:"error",success:"success"},Ur={sm:"sm",md:"md",lg:"lg",xl:"xl"},Yc=Vb("gs-interactive w-full resize-y rounded-[var(--radius)] border border-input bg-background text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-2 disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{status:{[zo.default]:"focus-visible:ring-primary",[zo.error]:"border-destructive focus-visible:ring-destructive",[zo.success]:"border-success focus-visible:ring-success"},size:{[Ur.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[Ur.md]:"min-h-[96px] px-3 py-2",[Ur.lg]:"min-h-[112px] px-4 py-2.5",[Ur.xl]:"min-h-[128px] px-4 py-3 text-base"}},defaultVariants:{status:zo.default,size:Ur.md}}),Xc=Fb(({className:e,status:t=zo.default,size:r=Ur.md,fullWidth:o=!1,noResize:n=!1,disabled:i,...s},l)=>{let d=c(r);return Ob("textarea",{ref:l,className:a(Yc({status:t,size:d}),i&&"bg-muted",o&&"w-full",n&&"resize-none",e),disabled:i,...s},void 0,!1,void 0,this)});Xc.displayName="Textarea";import{cva as Dt}from"class-variance-authority";import{forwardRef as _t}from"react";import{jsxDEV as dt}from"react/jsx-dev-runtime";var Zc=Dt("relative flex flex-col"),Jc=Dt(["group relative flex pb-8 last:pb-0","transition-opacity duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]"],{variants:{align:{left:"flex-row gap-4",right:"flex-row-reverse gap-4"},animated:{true:"gs-timeline-item-animated",false:""}},defaultVariants:{align:"left",animated:!0}}),qc=Dt(["absolute bottom-0 w-0.5 rounded-full","transition-[background-color,opacity,height] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]"],{variants:{variant:{default:"bg-border",success:"bg-gradient-to-b from-success/50 to-success/30",warning:"bg-gradient-to-b from-warning/50 to-warning/30",error:"bg-gradient-to-b from-destructive/50 to-destructive/30",info:"bg-gradient-to-b from-info/50 to-info/30",primary:"bg-gradient-to-b from-primary/50 to-primary/30"},size:{sm:"left-[11px] top-7",md:"left-[15px] top-9",lg:"left-[21px] top-12",xl:"left-[25px] top-14"},animated:{true:"gs-timeline-connector-animated",false:""}},defaultVariants:{variant:"default",size:"md",animated:!0}}),Qc=Dt(["relative z-10 flex shrink-0 items-center justify-center rounded-full border-2","transition-[color,background-color,border-color,box-shadow] duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]","[&>svg]:shrink-0"],{variants:{variant:{default:["border-border/80 bg-card text-muted-foreground","shadow-[0_1px_3px_rgba(0,0,0,0.12),0_0_0_2px_rgba(0,0,0,0.04)]","hover:border-border hover:shadow-[0_2px_6px_rgba(0,0,0,0.16),0_0_0_2px_rgba(0,0,0,0.06)]"],success:["border-success/60 bg-success/10 text-success","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--success-rgb,34,197,94),0.2)]","hover:bg-success/15 hover:border-success/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--success-rgb,34,197,94),0.25)]"],warning:["border-warning/60 bg-warning/10 text-warning","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--warning-rgb,234,179,8),0.2)]","hover:bg-warning/15 hover:border-warning/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--warning-rgb,234,179,8),0.25)]"],error:["border-destructive/60 bg-destructive/10 text-destructive","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--destructive-rgb,239,68,68),0.2)]","hover:bg-destructive/15 hover:border-destructive/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--destructive-rgb,239,68,68),0.25)]"],info:["border-info/60 bg-info/10 text-info","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--info-rgb,59,130,246),0.2)]","hover:bg-info/15 hover:border-info/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--info-rgb,59,130,246),0.25)]"],primary:["border-primary/60 bg-primary/10 text-primary","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--primary-rgb,99,102,241),0.2)]","hover:bg-primary/15 hover:border-primary/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--primary-rgb,99,102,241),0.25)]"]},size:{sm:"h-6 w-6 [&>svg]:size-3",md:"h-8 w-8 [&>svg]:size-4",lg:"h-11 w-11 [&>svg]:size-5",xl:"h-14 w-14 [&>svg]:size-6"},pulse:{true:"gs-timeline-dot-pulse-enabled gs-timeline-dot-pulse",false:""},animated:{true:"gs-timeline-dot-animated",false:""}},defaultVariants:{variant:"default",size:"md",pulse:!1,animated:!0}}),Ec=Dt("flex flex-col gap-1 pt-0.5 min-w-0 transition-opacity duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]"),jc=Dt("font-semibold text-foreground leading-tight transition-colors duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]",{variants:{size:{sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"}},defaultVariants:{size:"md"}}),eu=Dt("text-muted-foreground transition-colors duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{size:"md"}}),tu=Dt("font-medium text-muted-foreground/70 transition-colors duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-base"}},defaultVariants:{size:"md"}});var ru=_t(({className:e,...t},r)=>{return dt("div",{ref:r,role:"list","aria-label":"Timeline events",className:a(Zc(),e),...t},void 0,!1,void 0,this)});ru.displayName="Timeline";var ou=_t(({className:e,align:t,isLast:r,animated:o=!0,...n},i)=>{return dt("div",{ref:i,role:"listitem",className:a(Jc({align:t,animated:o}),e),"data-last":r,...n},void 0,!1,void 0,this)});ou.displayName="TimelineItem";var au=_t(({className:e,variant:t,size:r,animated:o=!0,...n},i)=>{let s=c(r);return dt("div",{ref:i,className:a(qc({variant:t,size:s,animated:o}),e),...n},void 0,!1,void 0,this)});au.displayName="TimelineConnector";var nu=_t(({className:e,variant:t,size:r,icon:o,children:n,pulse:i=!1,animated:s=!0,...l},d)=>{let m=c(r);return dt("div",{ref:d,className:a(Qc({variant:t,size:m,pulse:i,animated:s}),e),"aria-hidden":"true",...l,children:o||n||dt(Bb,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});nu.displayName="TimelineDot";var iu=_t(({className:e,...t},r)=>{return dt("div",{ref:r,className:a(Ec(),e),...t},void 0,!1,void 0,this)});iu.displayName="TimelineContent";var su=_t(({className:e,size:t,...r},o)=>{let n=c(t);return dt("h4",{ref:o,className:a(jc({size:n}),e),...r},void 0,!1,void 0,this)});su.displayName="TimelineTitle";var lu=_t(({className:e,size:t,...r},o)=>{let n=c(t);return dt("p",{ref:o,className:a(eu({size:n}),e),...r},void 0,!1,void 0,this)});lu.displayName="TimelineDescription";var mu=_t(({className:e,size:t,...r},o)=>{let n=c(t);return dt("time",{ref:o,className:a(tu({size:n}),e),...r},void 0,!1,void 0,this)});mu.displayName="TimelineTime";function Bb(){return dt("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as du}from"class-variance-authority";var $r={default:"default",success:"success",info:"info",warning:"warning",error:"error"},Ye={sm:"sm",md:"md",lg:"lg"},_n=du("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[$r.default]:"border-border bg-card text-card-foreground",[$r.success]:"border-success/30 bg-card text-card-foreground",[$r.info]:"border-info/30 bg-card text-card-foreground",[$r.warning]:"border-warning/30 bg-card text-card-foreground",[$r.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[Ye.sm]:"gap-2 p-3",[Ye.md]:"gap-3 p-4",[Ye.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:$r.default,size:Ye.md}}),Gn=du("gs-interactive inline-flex shrink-0 items-center justify-center rounded-[var(--radius)] border border-border bg-transparent font-medium text-foreground hover:bg-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{size:{[Ye.sm]:"h-6 px-2 text-xs",[Ye.md]:"h-7 px-2.5 text-xs",[Ye.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:Ye.md}});import{AlertTriangle as Xb,CheckCircle2 as Zb,Info as gu,X as Jb,XCircle as qb}from"lucide-react";import{forwardRef as Qb,useCallback as za,useEffect as Sa,useRef as Yn,useState as Xn}from"react";import{useSyncExternalStore as Db}from"react";var _b=5,cu=5000,Gb=500,Wn=0;function Wb(){return Wn=(Wn+1)%Number.MAX_SAFE_INTEGER,`toast-${Wn}-${Date.now()}`}var Un=new Set,Xe=[],ir=new Map,No=new Map,wo=!1,nr=new Map;function xa(){for(let e of Un)e()}function pu(){return Xe}function Ub(e){return Un.add(e),()=>{Un.delete(e)}}function $n(e,t){if(wo){nr.set(e,t);return}clearTimeout(ir.get(e));let r=Date.now(),o=setTimeout(()=>{ir.delete(e),nr.delete(e),Ca(e)},t);ir.set(e,o),nr.set(e,t);let n=setInterval(()=>{let i=Date.now()-r,s=t-i;if(s<=0)clearInterval(n),nr.delete(e);else nr.set(e,s)},100)}function $b(e){clearTimeout(No.get(e));let t=setTimeout(()=>{Xe=Xe.filter((r)=>r.id!==e),No.delete(e),xa()},Gb);No.set(e,t)}function So(e){let t=e.id??Wb(),r=e.duration??cu;if(Xe.find((i)=>i.id===t))return Xe=Xe.map((i)=>i.id===t?{...i,...e,id:t,open:!0,createdAt:Date.now()}:i),clearTimeout(No.get(t)),No.delete(t),$n(t,r),xa(),t;return Xe=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...Xe].slice(0,_b),$n(t,r),xa(),t}function Ca(e){clearTimeout(ir.get(e)),ir.delete(e),nr.delete(e),Xe=Xe.map((t)=>t.id===e?{...t,open:!1}:t),xa(),$b(e)}function uu(){for(let e of Xe)Ca(e.id)}function Kb(){if(wo)return;wo=!0;for(let[e,t]of ir)clearTimeout(t),ir.delete(e)}function Yb(){if(!wo)return;wo=!1;for(let e of Xe)if(e.open){let t=nr.get(e.id)??cu;$n(e.id,t)}}var fu=Object.assign((e)=>So(e),{success:(e,t)=>So({...t,variant:"success",title:e}),info:(e,t)=>So({...t,variant:"info",title:e}),warning:(e,t)=>So({...t,variant:"warning",title:e}),error:(e,t)=>So({...t,variant:"error",title:e}),dismiss:Ca,dismissAll:uu});function Kn(){return{toasts:Db(Ub,pu,pu),toast:fu,dismiss:Ca,dismissAll:uu,pauseAll:Kb,resumeAll:Yb}}import{jsxDEV as ke}from"react/jsx-dev-runtime";var vu=10,yu=0.05,Eb=200,bu="cubic-bezier(0.2, 0.8, 0.2, 1)",jb="cubic-bezier(0.22, 1, 0.36, 1)",eT={"top-right":"top-4 right-4","top-left":"top-4 left-4","bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4","top-center":"top-4 left-1/2 -translate-x-1/2","bottom-center":"bottom-4 left-1/2 -translate-x-1/2"},tT={success:(e)=>ke(Zb,{className:a("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>ke(gu,{className:a("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>ke(Xb,{className:a("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>ke(qb,{className:a("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>ke(gu,{className:a("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function rT(e,t,r,o,n){let i=e<o,s=r?n:e*vu,l=r?1:i?1-e*yu:1-o*yu,d=i||r?1:0,m=t-e;return{offset:s,scale:l,opacity:d,zIndex:m}}var Tu=Qb(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:o=Ye.md,className:n,...i},s)=>{let{toasts:l,dismiss:d,pauseAll:m,resumeAll:f}=Kn(),u=c(o)??Ye.md,[v,p]=Xn(!1),[y,z]=Xn({}),M=Yn(null),w=Yn(void 0),h=e.startsWith("bottom"),b=za((P)=>{if(M.current=P,typeof s==="function")s(P);else if(s)s.current=P},[s]),C=za(()=>{clearTimeout(w.current),p(!0),m()},[m]),B=za(()=>{clearTimeout(w.current),w.current=setTimeout(()=>{p(!1),f()},Eb)},[f]);Sa(()=>{return()=>clearTimeout(w.current)},[]);let R=za((P,F)=>{z((j)=>{if(j[P]===F)return j;return{...j,[P]:F}})},[]);if(Sa(()=>{let P=new Set(l.map((F)=>F.id));z((F)=>{let j=!1,H={};for(let[Y,g]of Object.entries(F))if(P.has(Y))H[Y]=g;else j=!0;return j?H:F})},[l]),l.length===0)return null;let A=l.filter((P)=>P.open),S=new Map,I=0;for(let[P,F]of A.entries()){let j=y[F.id]??0;S.set(F.id,rT(P,A.length,v,r,I)),I+=j+t}let K=A[0],$=(K?y[K.id]??0:0)+Math.min(A.length-1,r-1)*vu,N=I-(A.length>0?t:0),V=v?N:$;return ke("ol",{ref:b,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:C,onMouseLeave:B,className:a("pointer-events-auto fixed z-[100] w-full max-w-[400px] outline-none",eT[e],n),style:{height:Math.max(V,0),transition:`height 400ms ${bu}`},...i,children:l.map((P)=>{let F=!P.open,j=S.get(P.id);return ke(oT,{toast:P,layout:j??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:F,isBottom:h,size:u,onDismiss:d,onMeasure:R},P.id,!1,void 0,this)})},void 0,!1,void 0,this)});Tu.displayName="Toaster";function oT({toast:e,layout:t,isClosed:r,isBottom:o,size:n,onDismiss:i,onMeasure:s}){let l=Yn(null),[d,m]=Xn(!1);Sa(()=>{let y=requestAnimationFrame(()=>m(!0));return()=>cancelAnimationFrame(y)},[]),Sa(()=>{let y=l.current;if(!y)return;let z=new ResizeObserver((M)=>{for(let w of M){let h=w.borderBoxSize?.[0];if(h)s(e.id,h.blockSize)}});return z.observe(y),()=>z.disconnect()},[e.id,s]);let f=o?{bottom:0,left:0,right:0}:{top:0,left:0,right:0},u,v,p;if(!d)u=`translateY(${o?80:-80}px) scale(0.9)`,v=0,p="none";else if(r)u=`translateY(${o?80:-80}px) scale(0.95)`,v=0,p="none";else u=`translateY(${o?-t.offset:t.offset}px) scale(${t.scale})`,v=t.opacity,p="auto";return ke("li",{ref:l,"data-state":e.open?"open":"closed","data-variant":e.variant,className:"absolute list-none",style:{...f,zIndex:t.zIndex,transformOrigin:o?"center bottom":"center top",transform:u,opacity:v,pointerEvents:p,transition:[`transform 400ms ${bu}`,`opacity 250ms ${jb}`].join(", ")},children:ke("div",{className:a(_n({variant:e.variant,size:n}),"w-full"),children:[tT[e.variant]?.(n),ke("div",{className:"flex-1 space-y-0.5",children:[e.title&&ke("p",{className:a("font-semibold leading-tight",n==="sm"?"text-xs":"text-sm"),children:e.title},void 0,!1,void 0,this),e.description&&ke("p",{className:a("leading-snug text-muted-foreground",n==="sm"?"text-xs":"text-sm"),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.action&&ke("button",{type:"button",className:a(Gn({size:n}),"mt-0.5"),onClick:e.action.onClick,"aria-label":e.action.altText,children:e.action.label},void 0,!1,void 0,this),e.dismissible!==!1&&ke("button",{type:"button",className:a("gs-interactive mt-0.5 shrink-0 rounded-[var(--radius)] p-1 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",n==="sm"?"[&>svg]:size-3.5":"[&>svg]:size-4"),onClick:()=>i(e.id),"aria-label":"Dismiss",children:ke(Jb,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import*as hu from"@radix-ui/react-toggle";import{cva as aT}from"class-variance-authority";import{forwardRef as nT}from"react";import{jsxDEV as iT}from"react/jsx-dev-runtime";var Zn={default:"default",outline:"outline"},Na={sm:"sm",md:"md",lg:"lg"},wa=aT("gs-interactive inline-flex items-center justify-center gap-2 rounded-[var(--radius)] border border-transparent text-sm font-medium outline-none transition-[color,background-color,border-color] duration-150 hover:bg-muted hover:text-muted-foreground focus-visible:border-primary disabled:cursor-not-allowed disabled:pointer-events-none data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{[Zn.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[Zn.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[Na.sm]:"h-7 px-1.5 min-w-7 text-xs",[Na.md]:"h-10 px-3 min-w-10",[Na.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:Zn.default,size:Na.md}}),Pu=nT(({className:e,variant:t,size:r,...o},n)=>{let i=c(r);return iT(hu.Root,{ref:n,className:a(wa({variant:t,size:i}),e),...o},void 0,!1,void 0,this)});Pu.displayName="Toggle";import*as Ra from"@radix-ui/react-toggle-group";import{cva as sT}from"class-variance-authority";import{createContext as lT,forwardRef as xu,useContext as mT}from"react";import{jsxDEV as Jn}from"react/jsx-dev-runtime";var dT={default:"default",outline:"outline"},pT={sm:"sm",md:"md",lg:"lg"},Cu=sT("flex items-center justify-center gap-1"),zu=lT({size:pT.md,variant:dT.default}),Su=xu(({className:e,variant:t,size:r,children:o,...n},i)=>{let s=c(r);return Jn(Ra.Root,{ref:i,className:a(Cu(),e),...n,children:Jn(zu.Provider,{value:{variant:t,size:s},children:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Su.displayName="ToggleGroup";var Nu=xu(({className:e,children:t,variant:r,size:o,...n},i)=>{let s=mT(zu),l=c(o);return Jn(Ra.Item,{ref:i,className:a(wa({variant:r??s.variant,size:l??s.size}),e),...n,children:t},void 0,!1,void 0,this)});Nu.displayName="ToggleGroupItem";import{cva as wu}from"class-variance-authority";import{forwardRef as Ma}from"react";import{jsxDEV as La}from"react/jsx-dev-runtime";var ot={sm:"sm",md:"md",lg:"lg"},Ru=wu("flex items-center border-b border-border bg-background",{variants:{size:{[ot.sm]:"gap-1.5 px-3 py-1.5",[ot.md]:"gap-2 px-4 py-2",[ot.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:ot.md}}),Mu=Ma(({className:e,size:t=ot.md,...r},o)=>{let n=c(t);return La("div",{ref:o,role:"toolbar",className:a(Ru({size:n}),e),...r},void 0,!1,void 0,this)});Mu.displayName="Toolbar";var Lu=wu("flex items-center",{variants:{size:{[ot.sm]:"gap-1",[ot.md]:"gap-1.5",[ot.lg]:"gap-2"}},defaultVariants:{size:ot.md}}),Hu=Ma(({className:e,size:t=ot.md,...r},o)=>{let n=c(t);return La("div",{ref:o,role:"group",className:a(Lu({size:n}),e),...r},void 0,!1,void 0,this)});Hu.displayName="ToolbarGroup";var ku=Ma(({className:e,...t},r)=>{return La("div",{ref:r,role:"none",className:a("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});ku.displayName="ToolbarSeparator";var Au=Ma(({className:e,...t},r)=>{return La("div",{ref:r,className:a("flex-1",e),...t},void 0,!1,void 0,this)});Au.displayName="ToolbarSpacer";import*as pt from"@radix-ui/react-tooltip";import{cva as cT}from"class-variance-authority";import{createContext as uT,forwardRef as Iu,useContext as Vu}from"react";import{jsxDEV as Ro}from"react/jsx-dev-runtime";var fT=pt.Provider,qn=uT(!1),Fu=({persistOnClick:e=!1,children:t,...r})=>Ro(qn.Provider,{value:e,children:Ro(pt.Root,{...r,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this);Fu.displayName="Tooltip";var Ou=Iu(({onClick:e,onPointerDown:t,...r},o)=>{let n=Vu(qn);return Ro(pt.Trigger,{ref:o,onClick:n?(i)=>{i.preventDefault(),e?.(i)}:e,onPointerDown:n?(i)=>{i.preventDefault(),t?.(i)}:t,...r},void 0,!1,void 0,this)});Ou.displayName="TooltipTrigger";var sr={sm:"sm",md:"md",lg:"lg",xl:"xl"},Bu=cT("z-50 overflow-hidden rounded-[var(--radius)] border border-primary/20 bg-primary text-primary-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-tooltip-content-transform-origin)]",{variants:{size:{[sr.sm]:"px-2 py-1 text-xs",[sr.md]:"px-3 py-1.5 text-xs",[sr.lg]:"px-4 py-2 text-sm",[sr.xl]:"px-5 py-2.5 text-sm"}},defaultVariants:{size:sr.md}}),Du=Iu(({className:e,sideOffset:t=4,onPointerDownOutside:r,size:o=sr.md,...n},i)=>{let s=Vu(qn),l=c(o);return Ro(pt.Portal,{children:Ro(pt.Content,{ref:i,sideOffset:t,className:a(Bu({size:l}),e),onPointerDownOutside:s?(d)=>{d.preventDefault(),r?.(d)}:r,...n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Du.displayName="TooltipContent";import{createContext as gT,useCallback as lr,useContext as yT,useEffect as Aa,useLayoutEffect as vT,useMemo as Ha,useRef as Gt,useState as _u}from"react";import{jsxDEV as bT}from"react/jsx-dev-runtime";var Gu=typeof window<"u"?vT:Aa,En=gT(null);function ka(e,t){return e.theme===t.theme&&e.colorScheme===t.colorScheme}var mr=({children:e,value:t,initialState:r,onChange:o,onStateChange:n,transformState:i,readState:s,writeState:l,syncWithSystem:d=!0,enableTransition:m=!1,transitionDuration:f,defaultTheme:u,defaultColorScheme:v,themes:p,attribute:y,colorSchemeAttribute:z,darkClassName:M,storage:w})=>{let h=Ha(()=>Kr({defaultTheme:u,defaultColorScheme:v,themes:p,attribute:y,colorSchemeAttribute:z,darkClassName:M,storage:w}),[u,v,p,y,z,M,w]),[b,C]=_u(()=>ct(r,h)),[B,R]=_u(Oa),S=Ha(()=>t?ct(t,h):null,[t,h])??b,I=Ha(()=>({...S,resolvedColorScheme:Qn(S.colorScheme,B)}),[S,B]),K=t!==void 0,O=Gt(S);O.current=S;let $=Gt(!1),N=Gt(!1),V=Gt(!1),P=Gt(S),F=Gt(null),j=Gt(m);j.current=m;let H=Gt(f);H.current=f;let Y=lr((X)=>{return Va(X)},[]),g=lr((X,ue)=>{Fa(X,ue)},[]),T=s??Y,L=l??g;Aa(()=>{if(!d||typeof window>"u"||typeof window.matchMedia!=="function")return;let X=window.matchMedia("(prefers-color-scheme: dark)"),ue=()=>{R(X.matches?ut.dark:ut.light)};return ue(),X.addEventListener("change",ue),()=>X.removeEventListener("change",ue)},[d]),Aa(()=>{if(K)return;C((X)=>{let ue=ct(X,h);return ka(X,ue)?X:ue})},[h,K]),Gu(()=>{if(K||$.current)return;$.current=!0;let X=T(h);if(!X)return;let ue=O.current,k=ct(X,h),W={reason:"hydrate",previousState:ue},Q=i?ct(i(k,W),h):k;if(ka(ue,Q))return;F.current=W,C(Q),o?.(Q,W),n?.(Q,W)},[h,K,o,n,T,i]),Gu(()=>{if(typeof document>"u")return;let X=!V.current;if(V.current=!0,!X&&j.current&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){let k=H.current??200,W=document.createElement("style");W.setAttribute("data-gs-theme-transition",""),W.textContent=`*, *::before, *::after { transition: color ${k}ms ease, background-color ${k}ms ease, border-color ${k}ms ease, box-shadow ${k}ms ease, fill ${k}ms ease, stroke ${k}ms ease !important; }`,document.head.appendChild(W),Ia(document.documentElement,I,h);let Q=requestAnimationFrame(()=>{setTimeout(()=>W.remove(),k)});return()=>{cancelAnimationFrame(Q),W.remove()}}Ia(document.documentElement,I,h);return},[h,I]),Aa(()=>{if(typeof window>"u")return;if(!N.current){N.current=!0,P.current=S;return}let X=P.current;if(ka(X,S))return;let ue=F.current??{reason:"set-state",previousState:X};F.current=null,L(S,h,ue),P.current=S},[h,S,L]);let re=lr((X,ue)=>{let k=O.current,W=typeof X==="function"?X(k):X,Q=ct({theme:W.theme??k.theme,colorScheme:W.colorScheme??k.colorScheme},h),fe={reason:ue,previousState:k},Ie=i?ct(i(Q,fe),h):Q;if(ka(k,Ie))return;if(F.current=fe,!K)C(Ie);o?.(Ie,fe),n?.(Ie,fe)},[h,K,o,n,i]),ee=lr((X)=>{re(X,"set-state")},[re]),oe=lr((X)=>{re({theme:X},"set-theme")},[re]),te=lr((X)=>{re({colorScheme:X},"set-color-scheme")},[re]),de=lr(()=>{let X=I.resolvedColorScheme===ut.dark?ut.light:ut.dark;re({colorScheme:X},"toggle-color-scheme")},[I.resolvedColorScheme,re]),dr=Ha(()=>({theme:S.theme,colorScheme:S.colorScheme,resolvedColorScheme:I.resolvedColorScheme,state:S,resolvedState:I,contract:h,themes:h.themes,setTheme:oe,setColorScheme:te,setState:ee,toggleColorScheme:de}),[S,I,h,oe,te,ee,de]);return bT(En.Provider,{value:dr,children:e},void 0,!1,void 0,this)};mr.displayName="ThemeProvider";var Ba=()=>{let e=yT(En);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e};import{jsxDEV as Da}from"react/jsx-dev-runtime";function Ga(e){return typeof e==="object"&&e!==null}function ht(e){return typeof e==="string"&&e.trim().length>0}function Wu(e){if(!Ga(e))return!1;return Object.values(e).every(ht)}function $u(e){if(!Ga(e))return!1;if(!Wu(e.light))return!1;if(e.dark===void 0)return!0;return Wu(e.dark)}function Ku(e){return Ga(e)&&ht(e.cssText)}function TT(e){return Ga(e)&&ht(e.theme)}function jn(e){return Error(`Invalid theme registry definition: ${e}`)}function Uu(e){let t=new Set,r=[];for(let o of e){if(!ht(o)||t.has(o))continue;t.add(o),r.push(o)}return r}function hT(e){return e.filter(ht).join(`
|
|
5
5
|
|
|
6
|
-
`)}function fT(e){let t=[],r=[],o=[];for(let[n,i]of Object.entries(e)){if(!ht(n))continue;if(t.push(n),ht(i)){o.push(i);continue}if($u(i)){o.push(i.cssText);continue}if(Wu(i)){r.push({theme:n,light:i.light,dark:i.dark});continue}throw jn(`record key "${n}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function gT(e){let t=[],r=[],o=[];for(let n of e){if(ht(n)){t.push(n);continue}if(!cT(n))throw jn("array entry must be a theme name or an object with `theme`");let i=n.theme;if(t.push(i),$u(n)){o.push(n.cssText);continue}if(Wu(n)){r.push({theme:i,light:n.light,dark:n.dark});continue}throw jn(`array entry "${i}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function yT(e){if(Array.isArray(e))return gT(e);return fT(e)}function Uu(e){return e}function ei(e){let{themes:t,cssText:r,...o}=e,n=yT(t),i=Gu(n.themeNames),s=Kr({...o,themes:i}),l=_a({themes:n.tokenDefinitions,attribute:s.attribute,darkClassName:s.darkClassName}),d=uT([l,...n.cssBlocks,r??""]),m=Gu(s.themes);if(m.length===0)m.push(s.defaultTheme);return{defaultTheme:s.defaultTheme,themes:m,cssText:d,contract:s}}function Wa({registry:e,children:t,...r}){return Da(mr,{defaultTheme:e.defaultTheme,themes:e.themes,attribute:e.contract.attribute,colorSchemeAttribute:e.contract.colorSchemeAttribute,darkClassName:e.contract.darkClassName,storage:e.contract.storage,...r,children:t},void 0,!1,void 0,this)}Wa.displayName="ThemeRegistryProvider";function $a({registry:e,id:t,nonce:r,media:o}){if(!ht(e.cssText))return null;return Da("style",{id:t,nonce:r,media:o,children:e.cssText},void 0,!1,void 0,this)}$a.displayName="ThemeStyles";function Ku(e){let t=ei(e),{themes:r,cssText:o,...n}=e;return{registry:t,provider:({children:d,...m})=>{return Da(Wa,{registry:t,...n,...m,children:d},void 0,!1,void 0,this)},styles:(d={})=>{return Da($a,{registry:t,...d},void 0,!1,void 0,this)},useTheme:()=>{return Ba()}}}import{jsxDEV as lf}from"react/jsx-dev-runtime";function mf({children:e,density:t=Mo,defaultTheme:r="ghostly-solutions",defaultColorScheme:o=ut.system,...n}){return lf(mr,{defaultTheme:r,defaultColorScheme:o,...n,children:lf(Lo,{density:t,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)}mf.displayName="UIProvider";import*as Wt from"react";var vT=()=>{};function bT({prop:e,defaultProp:t,onChange:r=vT}){let[o,n]=TT({defaultProp:t,onChange:r}),i=e!==void 0,s=i?e:o,l=Wt.useCallback((d)=>{if(i){let f=typeof d==="function"?d(e):d;if(f!==e)r(f)}else n(d)},[i,e,n,r]);return[s,l]}function TT({defaultProp:e,onChange:t}){let r=Wt.useState(e),[o]=r,n=Wt.useRef(o),i=t;return Wt.useEffect(()=>{if(n.current!==o)i?.(o),n.current=o},[o,i]),r}export{Fa as writeThemeStateToBrowserStorage,Kn as useToast,Ba as useTheme,io as usePlatform,wv as useOverlay,Qr as useHotkey,oo as useFormField,c as useDensitySize,uf as useDensity,bT as useControllableState,no as useComposedRefs,Sg as useCommandShortcut,ln as useCommand,Fu as tooltipContentVariants,Nu as toolbarVariants,Ru as toolbarGroupVariants,wa as toggleVariants,Pu as toggleGroupVariants,_n as toastVariants,Gn as toastActionVariants,cu as toast,Yc as timelineVariants,Qc as timelineTitleVariants,jc as timelineTimeVariants,Xc as timelineItemVariants,qc as timelineDotVariants,Ec as timelineDescriptionVariants,Jc as timelineContentVariants,Zc as timelineConnectorVariants,Uc as textareaVariants,Bc as tabsTriggerVariants,Oc as tabsListVariants,Dc as tabsContentVariants,hc as tableVariants,zc as tableRowVariants,Pc as tableHeaderVariants,Sc as tableHeadVariants,Cc as tableFooterVariants,Tc as tableContainerVariants,Nc as tableCellVariants,wc as tableCaptionVariants,xc as tableBodyVariants,yc as switchVariants,tc as stepperVariants,rc as stepVariants,ic as stepTitleVariants,oc as stepIndicatorVariants,sc as stepDescriptionVariants,nc as stepContentVariants,ac as stepConnectorVariants,jp as statCardVariants,va as spotlightStatusVariants,ba as spotlightStatusTitleVariants,Jp as spotlightStatusDescriptionVariants,qp as spotlightShortcutVariants,Wp as spotlightResultsVariants,Op as spotlightPanelVariants,Fp as spotlightOverlayVariants,Up as spotlightOptionVariants,Xp as spotlightOptionTitleVariants,Kp as spotlightOptionIconVariants,Zp as spotlightOptionDescriptionVariants,Yp as spotlightOptionContentVariants,_p as spotlightInputVariants,Gp as spotlightIconVariants,Dp as spotlightHeaderVariants,$p as spotlightGroupLabelVariants,Bp as spotlightDrawerPanelVariants,Mp as sliderVariants,Lp as sliderTrackVariants,kp as sliderThumbVariants,Hp as sliderRangeVariants,xp as skeletonVariants,Cp as skeletonTextVariants,Sp as skeletonButtonVariants,zp as skeletonAvatarVariants,md as sheetOverlayVariants,dd as sheetContentVariants,ef as serializeThemeState,hp as separatorVariants,up as selectTriggerVariants,fp as selectContentVariants,rp as segmentedControlVariants,ap as segmentedControlLabelVariants,op as segmentedControlItemVariants,qd as scrollBarVariants,Jd as scrollBarThumbVariants,Zd as scrollAreaVariants,af as resolveThemeState,Gd as resizablePanelVariants,_d as resizablePanelGroupVariants,Wd as resizableHandleVariants,$d as resizableHandleIconVariants,rf as readThemeStateFromCookieHeader,Va as readThemeStateFromBrowserStorage,Od as radioItemVariants,Fd as radioGroupVariants,Hd as progressVariants,kd as progressIndicatorVariants,Ar as popoverContentVariants,tf as parseThemeState,nn as parseHotkey,Td as paginationVariants,jo as paginationLinkVariants,Pd as paginationItemVariants,xd as paginationEllipsisVariants,hd as paginationContentVariants,od as otpSlotVariants,id as otpSeparatorVariants,nd as otpPlaceholderVariants,ad as otpInputVariants,rd as otpGroupVariants,td as otpContainerVariants,ct as normalizeThemeState,Km as navigationMenuViewportVariants,Gm as navigationMenuVariants,$m as navigationMenuTriggerVariants,Wm as navigationMenuListVariants,lv as navigationMenuLinkVariants,Ym as navigationMenuIndicatorVariants,Um as navigationMenuContentVariants,Bm as multiselectTriggerVariants,Qp as matchesQuery,sn as matchHotkey,Am as labelVariants,Lr as kbdVariants,Tr as isSameDay,Mm as inputVariants,Nm as hoverCardContentVariants,PT as hotkey,nf as getThemeRootProps,Oa as getSystemColorScheme,Ta as formatHotkeyTokens,Zo as formatHotkey,Tm as formFieldVariants,dm as fileUploadVariants,vn as fileUploadTextVariants,cm as fileUploadListVariants,um as fileUploadItemVariants,gm as fileUploadItemSizeVariants,ym as fileUploadItemRemoveVariants,fm as fileUploadItemNameVariants,pm as fileUploadIconVariants,rm as errorBoundaryVariants,am as errorBoundaryTitleVariants,om as errorBoundaryIconVariants,sm as errorBoundaryDetailsVariants,nm as errorBoundaryDescriptionVariants,im as errorBoundaryActionsVariants,ql as emptyStateVariants,Ql as emptyStateTitleVariants,Jl as emptyStateIconVariants,El as emptyStateDescriptionVariants,jl as emptyStateActionsVariants,Ol as dropdownMenuShortcutVariants,Fl as dropdownMenuSeparatorVariants,Il as dropdownMenuRadioItemVariants,Vl as dropdownMenuLabelVariants,yn as dropdownMenuItemVariants,gn as dropdownMenuContentVariants,Al as dropdownMenuCheckboxItemVariants,Cl as drawerOverlayVariants,Sl as drawerHandleVariants,zl as drawerContentVariants,Tl as dialogContentVariants,bn as detectPlatform,Uu as defineThemes,cR as cva,_a as createThemesCss,Ku as createThemeSystem,of as createThemeSetCookieHeader,ei as createThemeRegistry,sf as createThemeCss,Kr as createThemeContract,zT as createOptionalContext,CT as createContext,ll as contextMenuShortcutVariants,sl as contextMenuSeparatorVariants,nl as contextMenuRadioItemVariants,il as contextMenuLabelVariants,pn as contextMenuItemVariants,dn as contextMenuContentVariants,al as contextMenuCheckboxItemVariants,xT as composeRefs,Ys as commandShortcutVariants,Ks as commandSeparatorVariants,Bs as commandOverlayVariants,Xs as commandLoadingVariants,_s as commandListVariants,Us as commandItemVariants,Ds as commandInputVariants,Ws as commandGroupVariants,$s as commandGroupHeadingVariants,Gs as commandEmptyVariants,Os as commandDialogVariants,As as collapsibleContentVariants,zs as codeBlockVariants,Ms as codeBlockPreVariants,Ls as codeBlockLineVariants,Hs as codeBlockLineNumberVariants,Ns as codeBlockLanguageVariants,Ss as codeBlockHeaderVariants,ws as codeBlockCopyVariants,Rs as codeBlockContentVariants,a as cn,Ps as checkboxVariants,us as cardVariants,ds as calendarWeekdayVariants,is as calendarVariants,ls as calendarTitleVariants,on as calendarNavButtonVariants,ss as calendarHeaderVariants,ms as calendarGridVariants,ps as calendarDayVariants,Xr as buttonVariants,vi as buttonIconVariants,ts as buttonGroupVariants,bi as buttonBadgeVariants,Yi as breadcrumbSeparatorVariants,Ki as breadcrumbPageVariants,Wi as breadcrumbListVariants,Ui as breadcrumbLinkVariants,$i as breadcrumbItemVariants,Xi as breadcrumbEllipsisVariants,Bi as badgeVariants,Vi as avatarVariants,di as alertVariants,pi as alertTitleVariants,zi as alertDialogOverlayVariants,Si as alertDialogContentVariants,ci as alertDescriptionVariants,ai as accordionTriggerVariants,oi as accordionItemVariants,ni as accordionContentVariants,Pf as XCircleIcon,ft as Variant,mf as UIProvider,Vu as TooltipTrigger,sr as TooltipSize,sT as TooltipProvider,Ou as TooltipContent,Iu as Tooltip,Hu as ToolbarSpacer,ot as ToolbarSize,Lu as ToolbarSeparator,Mu as ToolbarGroup,wu as Toolbar,zu as ToggleGroupItem,Cu as ToggleGroup,Tu as Toggle,vu as Toaster,Ye as ToastSize,nu as TimelineTitle,su as TimelineTime,tu as TimelineItem,ou as TimelineDot,iu as TimelineDescription,au as TimelineContent,ru as TimelineConnector,eu as Timeline,$a as ThemeStyles,Wa as ThemeRegistryProvider,mr as ThemeProvider,Kc as Textarea,Wc as TabsTrigger,Gc as TabsList,$c as TabsContent,wb as Tabs,we as TableSize,kc as TableRow,Mc as TableHeader,Ac as TableHead,Hc as TableFooter,Ic as TableCell,Vc as TableCaption,Lc as TableBody,Rc as Table,ju as THEME_COOKIE_NAME,Xu as THEME_COLOR_SCHEME_ATTR,Yu as THEME_ATTR,Wr as SwitchStatus,He as SwitchSize,vc as Switch,lc as Stepper,uc as StepTitle,dc as StepIndicator,fc as StepDescription,cc as StepContent,pc as StepConnector,mc as Step,rr as StatCardTrend,Ke as StatCardSize,ec as StatCard,Gr as SpotlightStatus,x as SpotlightSize,Ep as Spotlight,cr as SpinnerSize,xt as Spinner,Ap as Slider,Np as SkeletonText,Te as SkeletonSize,Rp as SkeletonButton,wp as SkeletonAvatar,Po as Skeleton,Ve as Size,Tv as SheetTrigger,fd as SheetTitle,ie as SheetSize,pd as SheetPortal,xn as SheetOverlay,cd as SheetHeader,ud as SheetFooter,gd as SheetDescription,Qo as SheetContent,hv as SheetClose,Pn as Sheet,ho as SeparatorOrientation,Pp as Separator,jv as SelectValue,gp as SelectTrigger,_r as SelectStatus,ae as SelectSize,Tp as SelectSeparator,vp as SelectLabel,bp as SelectItem,Ev as SelectGroup,bo as SelectContentWidthMode,Zv as SelectContentAlign,yp as SelectContent,Qv as Select,be as SegmentedControlSize,lp as SegmentedControlLabelItem,sp as SegmentedControlItem,ip as SegmentedControl,Nn as ScrollBar,Qd as ScrollArea,qu as STORAGE_VERSION,Qu as STORAGE_THEME_STATE_KEY,Ju as STORAGE_PREFIX,Eu as STORAGE_DENSITY_KEY,Ud as ResizablePanelGroup,Kd as ResizablePanel,Yd as ResizableHandle,Or as RadioStatus,tt as RadioSize,Dd as RadioGroupItem,Bd as RadioGroup,Ad as Progress,Xy as PopoverTrigger,kr as PopoverSize,Fm as PopoverContent,qy as PopoverClose,Zy as PopoverAnchor,Yy as Popover,Ue as PaginationSize,wd as PaginationPrevious,Rd as PaginationNext,Nd as PaginationLink,Sd as PaginationItem,Md as PaginationEllipsis,zd as PaginationContent,Cd as Pagination,bd as OverlayProvider,sd as OTPInput,Tn as NavigationMenuViewport,qm as NavigationMenuTrigger,je as NavigationMenuSize,Zm as NavigationMenuList,pv as NavigationMenuLink,dv as NavigationMenuItem,Qm as NavigationMenuIndicator,Jm as NavigationMenuContent,Xm as NavigationMenu,ve as MultiselectSize,Dm as Multiselect,$y as Loader,Hr as LabelSize,Im as Label,hT as Key,Mr as KbdSize,Hm as Kbd,Lm as Input,hf as InfoIcon,ur as IconSize,zy as HoverCardTrigger,Rr as HoverCardSize,wm as HoverCardContent,Cy as HoverCard,Jr as GroupOrientation,We as FormFieldSize,Pm as FormFieldLabel,zm as FormFieldError,Cm as FormFieldDescription,Sm as FormFieldControl,hm as FormField,vm as FileUpload,lm as ErrorBoundary,em as EmptyState,ay as DropdownMenuTrigger,_l as DropdownMenuSubTrigger,Gl as DropdownMenuSubContent,sy as DropdownMenuSub,Zl as DropdownMenuShortcut,Xl as DropdownMenuSeparator,Kl as DropdownMenuRadioItem,ly as DropdownMenuRadioGroup,iy as DropdownMenuPortal,Yl as DropdownMenuLabel,Yo as DropdownMenuItemVariant,$l as DropdownMenuItem,ny as DropdownMenuGroup,Wl as DropdownMenuContent,Ul as DropdownMenuCheckboxItem,Dl as DropdownMenu,Yg as DrawerTrigger,Ll as DrawerTitle,Ge as DrawerSize,Nl as DrawerPortal,fn as DrawerOverlay,Rl as DrawerHeader,Ml as DrawerFooter,Hl as DrawerDescription,wl as DrawerContent,Xg as DrawerClose,Kg as Drawer,_g as DialogTrigger,Uo as DialogTitle,Lt as DialogSize,Wo as DialogPortal,jr as DialogOverlay,hl as DialogHeader,Pl as DialogFooter,xl as DialogDescription,cn as DialogContentPrimitive,$o as DialogContent,Gg as DialogClose,Er as Dialog,Lo as DensityProvider,Mo as DENSITY_DEFAULT,Zu as DARK_CLASS,Ag as ContextMenuTrigger,dl as ContextMenuSubTrigger,pl as ContextMenuSubContent,Fg as ContextMenuSub,bl as ContextMenuShortcut,vl as ContextMenuSeparator,gl as ContextMenuRadioItem,Og as ContextMenuRadioGroup,Vg as ContextMenuPortal,yl as ContextMenuLabel,_o as ContextMenuItemVariant,ul as ContextMenuItem,Ig as ContextMenuGroup,cl as ContextMenuContent,fl as ContextMenuCheckboxItem,kg as ContextMenu,rl as CommandShortcut,tl as CommandSeparator,ol as CommandLoading,Qs as CommandList,Do as CommandItemVariant,el as CommandItem,Js as CommandInput,js as CommandGroup,Es as CommandEmpty,qs as CommandDialog,mn as Command,ut as ColorScheme,Tg as CollapsibleTrigger,Is as CollapsibleContent,bg as Collapsible,ks as CodeBlock,Cr as CheckboxStatus,qe as CheckboxSize,xs as Checkbox,Tf as CheckCircleIcon,bs as CardTitle,gs as CardHeader,vs as CardFooter,Ts as CardDescription,ys as CardContent,fs as Card,cs as Calendar,hi as ButtonLabel,Ti as ButtonIcon,rs as ButtonGroup,Pi as ButtonBadge,xi as Button,ge as BreadcrumbSize,ji as BreadcrumbSeparator,Ei as BreadcrumbPage,qi as BreadcrumbList,Qi as BreadcrumbLink,Ji as BreadcrumbItem,es as BreadcrumbEllipsis,Zi as Breadcrumb,Ce as BadgeVariant,Ct as BadgeTone,St as BadgeSize,Gi as BadgeGroup,Io as Badge,De as AvatarSize,Fi as AvatarImage,Oi as AvatarGroup,tn as AvatarFallback,en as Avatar,kf as AspectRatio,bf as AlertTriangleIcon,fi as AlertTitle,Hf as AlertDialogTrigger,Li as AlertDialogTitle,zt as AlertDialogSize,Ni as AlertDialogPortal,ja as AlertDialogOverlay,Ri as AlertDialogHeader,Mi as AlertDialogFooter,Hi as AlertDialogDescription,wi as AlertDialogContent,Ai as AlertDialogCancel,ki as AlertDialogAction,Lf as AlertDialog,gi as AlertDescription,ui as Alert,li as AccordionTrigger,Re as AccordionSize,si as AccordionItem,mi as AccordionContent,ii as Accordion};
|
|
6
|
+
`)}function PT(e){let t=[],r=[],o=[];for(let[n,i]of Object.entries(e)){if(!ht(n))continue;if(t.push(n),ht(i)){o.push(i);continue}if(Ku(i)){o.push(i.cssText);continue}if($u(i)){r.push({theme:n,light:i.light,dark:i.dark});continue}throw jn(`record key "${n}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function xT(e){let t=[],r=[],o=[];for(let n of e){if(ht(n)){t.push(n);continue}if(!TT(n))throw jn("array entry must be a theme name or an object with `theme`");let i=n.theme;if(t.push(i),Ku(n)){o.push(n.cssText);continue}if($u(n)){r.push({theme:i,light:n.light,dark:n.dark});continue}throw jn(`array entry "${i}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function CT(e){if(Array.isArray(e))return xT(e);return PT(e)}function Yu(e){return e}function ei(e){let{themes:t,cssText:r,...o}=e,n=CT(t),i=Uu(n.themeNames),s=Kr({...o,themes:i}),l=_a({themes:n.tokenDefinitions,attribute:s.attribute,darkClassName:s.darkClassName}),d=hT([l,...n.cssBlocks,r??""]),m=Uu(s.themes);if(m.length===0)m.push(s.defaultTheme);return{defaultTheme:s.defaultTheme,themes:m,cssText:d,contract:s}}function Wa({registry:e,children:t,...r}){return Da(mr,{defaultTheme:e.defaultTheme,themes:e.themes,attribute:e.contract.attribute,colorSchemeAttribute:e.contract.colorSchemeAttribute,darkClassName:e.contract.darkClassName,storage:e.contract.storage,...r,children:t},void 0,!1,void 0,this)}Wa.displayName="ThemeRegistryProvider";function Ua({registry:e,id:t,nonce:r,media:o}){if(!ht(e.cssText))return null;return Da("style",{id:t,nonce:r,media:o,children:e.cssText},void 0,!1,void 0,this)}Ua.displayName="ThemeStyles";function Xu(e){let t=ei(e),{themes:r,cssText:o,...n}=e;return{registry:t,provider:({children:d,...m})=>{return Da(Wa,{registry:t,...n,...m,children:d},void 0,!1,void 0,this)},styles:(d={})=>{return Da(Ua,{registry:t,...d},void 0,!1,void 0,this)},useTheme:()=>{let d=Ba(),m=(v)=>{return t.themes.some((p)=>p===v)},f=(v)=>{return m(v)?v:t.defaultTheme},u=(v)=>{if(typeof v==="function"){d.setState((p)=>{let y={...p,theme:f(p.theme)},z=v(y);return{theme:f(z.theme??y.theme),colorScheme:z.colorScheme??y.colorScheme}});return}d.setState({theme:f(v.theme??d.state.theme),colorScheme:v.colorScheme??d.state.colorScheme})};return{...d,theme:f(d.theme),state:{...d.state,theme:f(d.state.theme)},resolvedState:{...d.resolvedState,theme:f(d.resolvedState.theme)},themes:t.themes,setTheme:(v)=>{d.setTheme(v)},setState:u}}}}import{jsxDEV as df}from"react/jsx-dev-runtime";function pf({children:e,density:t=Mo,defaultTheme:r="ghostly-solutions",defaultColorScheme:o=ut.system,...n}){return df(mr,{defaultTheme:r,defaultColorScheme:o,...n,children:df(Lo,{density:t,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)}pf.displayName="UIProvider";import*as Wt from"react";var zT=()=>{};function ST({prop:e,defaultProp:t,onChange:r=zT}){let[o,n]=NT({defaultProp:t,onChange:r}),i=e!==void 0,s=i?e:o,l=Wt.useCallback((d)=>{if(i){let f=typeof d==="function"?d(e):d;if(f!==e)r(f)}else n(d)},[i,e,n,r]);return[s,l]}function NT({defaultProp:e,onChange:t}){let r=Wt.useState(e),[o]=r,n=Wt.useRef(o),i=t;return Wt.useEffect(()=>{if(n.current!==o)i?.(o),n.current=o},[o,i]),r}export{Fa as writeThemeStateToBrowserStorage,Kn as useToast,Ba as useTheme,io as usePlatform,Iv as useOverlay,Qr as useHotkey,oo as useFormField,c as useDensitySize,yf as useDensity,ST as useControllableState,no as useComposedRefs,Rg as useCommandShortcut,ln as useCommand,Bu as tooltipContentVariants,Ru as toolbarVariants,Lu as toolbarGroupVariants,wa as toggleVariants,Cu as toggleGroupVariants,_n as toastVariants,Gn as toastActionVariants,fu as toast,Zc as timelineVariants,jc as timelineTitleVariants,tu as timelineTimeVariants,Jc as timelineItemVariants,Qc as timelineDotVariants,eu as timelineDescriptionVariants,Ec as timelineContentVariants,qc as timelineConnectorVariants,Yc as textareaVariants,_c as tabsTriggerVariants,Dc as tabsListVariants,Gc as tabsContentVariants,xc as tableVariants,Nc as tableRowVariants,Cc as tableHeaderVariants,wc as tableHeadVariants,Sc as tableFooterVariants,Pc as tableContainerVariants,Rc as tableCellVariants,Mc as tableCaptionVariants,zc as tableBodyVariants,bc as switchVariants,oc as stepperVariants,ac as stepVariants,lc as stepTitleVariants,nc as stepIndicatorVariants,mc as stepDescriptionVariants,sc as stepContentVariants,ic as stepConnectorVariants,tc as statCardVariants,va as spotlightStatusVariants,ba as spotlightStatusTitleVariants,Ep as spotlightStatusDescriptionVariants,Qp as spotlightShortcutVariants,$p as spotlightResultsVariants,Dp as spotlightPanelVariants,Bp as spotlightOverlayVariants,Yp as spotlightOptionVariants,Jp as spotlightOptionTitleVariants,Xp as spotlightOptionIconVariants,qp as spotlightOptionDescriptionVariants,Zp as spotlightOptionContentVariants,Wp as spotlightInputVariants,Up as spotlightIconVariants,Gp as spotlightHeaderVariants,Kp as spotlightGroupLabelVariants,_p as spotlightDrawerPanelVariants,Lp as sliderVariants,Hp as sliderTrackVariants,Ap as sliderThumbVariants,kp as sliderRangeVariants,Cp as skeletonVariants,zp as skeletonTextVariants,Np as skeletonButtonVariants,Sp as skeletonAvatarVariants,dd as sheetOverlayVariants,pd as sheetContentVariants,rf as serializeThemeState,Pp as separatorVariants,fp as selectTriggerVariants,gp as selectContentVariants,op as segmentedControlVariants,np as segmentedControlLabelVariants,ap as segmentedControlItemVariants,qd as scrollBarVariants,Qd as scrollBarThumbVariants,Jd as scrollAreaVariants,sf as resolveThemeState,Wd as resizablePanelVariants,Gd as resizablePanelGroupVariants,Ud as resizableHandleVariants,$d as resizableHandleIconVariants,af as readThemeStateFromCookieHeader,Va as readThemeStateFromBrowserStorage,Bd as radioItemVariants,Od as radioGroupVariants,kd as progressVariants,Ad as progressIndicatorVariants,Ar as popoverContentVariants,of as parseThemeState,nn as parseHotkey,hd as paginationVariants,jo as paginationLinkVariants,xd as paginationItemVariants,Cd as paginationEllipsisVariants,Pd as paginationContentVariants,ad as otpSlotVariants,sd as otpSeparatorVariants,id as otpPlaceholderVariants,nd as otpInputVariants,od as otpGroupVariants,rd as otpContainerVariants,ct as normalizeThemeState,Ym as navigationMenuViewportVariants,Wm as navigationMenuVariants,$m as navigationMenuTriggerVariants,Um as navigationMenuListVariants,gv as navigationMenuLinkVariants,Xm as navigationMenuIndicatorVariants,Km as navigationMenuContentVariants,Dm as multiselectTriggerVariants,jp as matchesQuery,sn as matchHotkey,Im as labelVariants,Lr as kbdVariants,Tr as isSameDay,Mm as inputVariants,Nm as hoverCardContentVariants,DT as hotkey,lf as getThemeRootProps,Oa as getSystemColorScheme,Ta as formatHotkeyTokens,Zo as formatHotkey,Tm as formFieldVariants,dm as fileUploadVariants,vn as fileUploadTextVariants,cm as fileUploadListVariants,um as fileUploadItemVariants,gm as fileUploadItemSizeVariants,ym as fileUploadItemRemoveVariants,fm as fileUploadItemNameVariants,pm as fileUploadIconVariants,rm as errorBoundaryVariants,am as errorBoundaryTitleVariants,om as errorBoundaryIconVariants,sm as errorBoundaryDetailsVariants,nm as errorBoundaryDescriptionVariants,im as errorBoundaryActionsVariants,Jl as emptyStateVariants,Ql as emptyStateTitleVariants,ql as emptyStateIconVariants,El as emptyStateDescriptionVariants,jl as emptyStateActionsVariants,Ol as dropdownMenuShortcutVariants,Fl as dropdownMenuSeparatorVariants,Il as dropdownMenuRadioItemVariants,Vl as dropdownMenuLabelVariants,yn as dropdownMenuItemVariants,gn as dropdownMenuContentVariants,Al as dropdownMenuCheckboxItemVariants,Cl as drawerOverlayVariants,Sl as drawerHandleVariants,zl as drawerContentVariants,Tl as dialogContentVariants,bn as detectPlatform,Yu as defineThemes,HR as cva,_a as createThemesCss,Xu as createThemeSystem,nf as createThemeSetCookieHeader,ei as createThemeRegistry,mf as createThemeCss,Kr as createThemeContract,WT as createOptionalContext,GT as createContext,ll as contextMenuShortcutVariants,sl as contextMenuSeparatorVariants,nl as contextMenuRadioItemVariants,il as contextMenuLabelVariants,pn as contextMenuItemVariants,dn as contextMenuContentVariants,al as contextMenuCheckboxItemVariants,_T as composeRefs,Ys as commandShortcutVariants,Ks as commandSeparatorVariants,Bs as commandOverlayVariants,Xs as commandLoadingVariants,_s as commandListVariants,$s as commandItemVariants,Ds as commandInputVariants,Ws as commandGroupVariants,Us as commandGroupHeadingVariants,Gs as commandEmptyVariants,Os as commandDialogVariants,As as collapsibleContentVariants,zs as codeBlockVariants,Ms as codeBlockPreVariants,Ls as codeBlockLineVariants,Hs as codeBlockLineNumberVariants,Ns as codeBlockLanguageVariants,Ss as codeBlockHeaderVariants,ws as codeBlockCopyVariants,Rs as codeBlockContentVariants,a as cn,Ps as checkboxVariants,us as cardVariants,ds as calendarWeekdayVariants,is as calendarVariants,ls as calendarTitleVariants,on as calendarNavButtonVariants,ss as calendarHeaderVariants,ms as calendarGridVariants,ps as calendarDayVariants,Xr as buttonVariants,vi as buttonIconVariants,ts as buttonGroupVariants,bi as buttonBadgeVariants,Yi as breadcrumbSeparatorVariants,Ki as breadcrumbPageVariants,Wi as breadcrumbListVariants,$i as breadcrumbLinkVariants,Ui as breadcrumbItemVariants,Xi as breadcrumbEllipsisVariants,Bi as badgeVariants,Vi as avatarVariants,di as alertVariants,pi as alertTitleVariants,zi as alertDialogOverlayVariants,Si as alertDialogContentVariants,ci as alertDescriptionVariants,ai as accordionTriggerVariants,oi as accordionItemVariants,ni as accordionContentVariants,zf as XCircleIcon,MT as Variant,pf as UIProvider,Ou as TooltipTrigger,sr as TooltipSize,fT as TooltipProvider,Du as TooltipContent,Fu as Tooltip,Au as ToolbarSpacer,ot as ToolbarSize,ku as ToolbarSeparator,Hu as ToolbarGroup,Mu as Toolbar,Nu as ToggleGroupItem,Su as ToggleGroup,Pu as Toggle,Tu as Toaster,Ye as ToastSize,su as TimelineTitle,mu as TimelineTime,ou as TimelineItem,nu as TimelineDot,lu as TimelineDescription,iu as TimelineContent,au as TimelineConnector,ru as Timeline,Ua as ThemeStyles,Wa as ThemeRegistryProvider,mr as ThemeProvider,BT as ThemeColorScheme,Xc as Textarea,$c as TabsTrigger,Uc as TabsList,Kc as TabsContent,Ib as Tabs,we as TableSize,Ic as TableRow,Hc as TableHeader,Vc as TableHead,Ac as TableFooter,Fc as TableCell,Oc as TableCaption,kc as TableBody,Lc as Table,tf as THEME_COOKIE_NAME,Ju as THEME_COLOR_SCHEME_ATTR,Zu as THEME_ATTR,Wr as SwitchStatus,He as SwitchSize,Tc as Switch,AT as SurfaceStyle,dc as Stepper,gc as StepTitle,cc as StepIndicator,yc as StepDescription,fc as StepContent,uc as StepConnector,pc as Step,LT as Status,rr as StatCardTrend,Ke as StatCardSize,rc as StatCard,Gr as SpotlightStatus,x as SpotlightSize,ec as Spotlight,cr as SpinnerSize,xt as Spinner,Ip as Slider,wp as SkeletonText,Te as SkeletonSize,Mp as SkeletonButton,Rp as SkeletonAvatar,Po as Skeleton,RT as Size,FT as Side,Nv as SheetTrigger,gd as SheetTitle,ie as SheetSize,cd as SheetPortal,xn as SheetOverlay,ud as SheetHeader,fd as SheetFooter,yd as SheetDescription,Qo as SheetContent,wv as SheetClose,Pn as Sheet,ho as SeparatorOrientation,xp as Separator,ib as SelectValue,yp as SelectTrigger,_r as SelectStatus,ae as SelectSize,hp as SelectSeparator,bp as SelectLabel,Tp as SelectItem,nb as SelectGroup,bo as SelectContentWidthMode,tb as SelectContentAlign,vp as SelectContent,ab as Select,be as SegmentedControlSize,mp as SegmentedControlLabelItem,lp as SegmentedControlItem,sp as SegmentedControl,Nn as ScrollBar,Ed as ScrollArea,Qu as STORAGE_VERSION,ju as STORAGE_THEME_STATE_KEY,Eu as STORAGE_PREFIX,ef as STORAGE_DENSITY_KEY,Kd as ResizablePanelGroup,Yd as ResizablePanel,Xd as ResizableHandle,Or as RadioStatus,tt as RadioSize,_d as RadioGroupItem,Dd as RadioGroup,Id as Progress,ev as PopoverTrigger,kr as PopoverSize,Om as PopoverContent,rv as PopoverClose,tv as PopoverAnchor,jy as Popover,$e as PaginationSize,Rd as PaginationPrevious,Md as PaginationNext,wd as PaginationLink,Nd as PaginationItem,Ld as PaginationEllipsis,Sd as PaginationContent,zd as Pagination,Td as OverlayProvider,VT as Orientation,ld as OTPInput,Tn as NavigationMenuViewport,qm as NavigationMenuTrigger,je as NavigationMenuSize,Jm as NavigationMenuList,bv as NavigationMenuLink,vv as NavigationMenuItem,Em as NavigationMenuIndicator,Qm as NavigationMenuContent,Zm as NavigationMenu,ve as MultiselectSize,_m as Multiselect,kT as MotionLevel,qy as Loader,Hr as LabelSize,Vm as Label,cf as Key,Mr as KbdSize,km as Kbd,Lm as Input,Cf as InfoIcon,ur as IconSize,wy as HoverCardTrigger,Rr as HoverCardSize,wm as HoverCardContent,Ny as HoverCard,wT as HotkeyModifierKey,cf as HotkeyKey,qr as GroupOrientation,We as FormFieldSize,Pm as FormFieldLabel,zm as FormFieldError,Cm as FormFieldDescription,Sm as FormFieldControl,hm as FormField,vm as FileUpload,lm as ErrorBoundary,em as EmptyState,IT as EmphasisLevel,sy as DropdownMenuTrigger,_l as DropdownMenuSubTrigger,Gl as DropdownMenuSubContent,dy as DropdownMenuSub,Zl as DropdownMenuShortcut,Xl as DropdownMenuSeparator,Kl as DropdownMenuRadioItem,py as DropdownMenuRadioGroup,my as DropdownMenuPortal,Yl as DropdownMenuLabel,Yo as DropdownMenuItemVariant,Ul as DropdownMenuItem,ly as DropdownMenuGroup,Wl as DropdownMenuContent,$l as DropdownMenuCheckboxItem,Dl as DropdownMenu,Jg as DrawerTrigger,Ll as DrawerTitle,Ge as DrawerSize,Nl as DrawerPortal,fn as DrawerOverlay,Rl as DrawerHeader,Ml as DrawerFooter,Hl as DrawerDescription,wl as DrawerContent,qg as DrawerClose,Zg as Drawer,Ug as DialogTrigger,$o as DialogTitle,Lt as DialogSize,Wo as DialogPortal,jr as DialogOverlay,hl as DialogHeader,Pl as DialogFooter,xl as DialogDescription,cn as DialogContentPrimitive,Uo as DialogContent,$g as DialogClose,Er as Dialog,Lo as DensityProvider,HT as Density,Mo as DENSITY_DEFAULT,qu as DARK_CLASS,Fg as ContextMenuTrigger,dl as ContextMenuSubTrigger,pl as ContextMenuSubContent,Dg as ContextMenuSub,bl as ContextMenuShortcut,vl as ContextMenuSeparator,gl as ContextMenuRadioItem,_g as ContextMenuRadioGroup,Bg as ContextMenuPortal,yl as ContextMenuLabel,_o as ContextMenuItemVariant,ul as ContextMenuItem,Og as ContextMenuGroup,cl as ContextMenuContent,fl as ContextMenuCheckboxItem,Vg as ContextMenu,rl as CommandShortcut,tl as CommandSeparator,ol as CommandLoading,Qs as CommandList,Do as CommandItemVariant,el as CommandItem,qs as CommandInput,js as CommandGroup,Es as CommandEmpty,Js as CommandDialog,mn as Command,ut as ColorScheme,xg as CollapsibleTrigger,Is as CollapsibleContent,Pg as Collapsible,ks as CodeBlock,Cr as CheckboxStatus,Je as CheckboxSize,xs as Checkbox,xf as CheckCircleIcon,bs as CardTitle,gs as CardHeader,vs as CardFooter,Ts as CardDescription,ys as CardContent,fs as Card,cs as Calendar,hi as ButtonLabel,Ti as ButtonIcon,rs as ButtonGroup,Pi as ButtonBadge,xi as Button,ge as BreadcrumbSize,ji as BreadcrumbSeparator,Ei as BreadcrumbPage,Ji as BreadcrumbList,Qi as BreadcrumbLink,qi as BreadcrumbItem,es as BreadcrumbEllipsis,Zi as Breadcrumb,Ce as BadgeVariant,Ct as BadgeTone,St as BadgeSize,Gi as BadgeGroup,Io as Badge,De as AvatarSize,Fi as AvatarImage,Oi as AvatarGroup,tn as AvatarFallback,en as Avatar,Vf as AspectRatio,OT as Align,Pf as AlertTriangleIcon,fi as AlertTitle,If as AlertDialogTrigger,Li as AlertDialogTitle,zt as AlertDialogSize,Ni as AlertDialogPortal,ja as AlertDialogOverlay,Ri as AlertDialogHeader,Mi as AlertDialogFooter,Hi as AlertDialogDescription,wi as AlertDialogContent,Ai as AlertDialogCancel,ki as AlertDialogAction,Af as AlertDialog,gi as AlertDescription,ui as Alert,li as AccordionTrigger,Re as AccordionSize,si as AccordionItem,mi as AccordionContent,ii as Accordion};
|