@ghostly-solutions/ui 0.3.9 → 0.3.11

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/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import{A as Hi,B as Ka,C as ki,D as Eu,E as ju,F as Mi,G as ef,H as Vi,a as i,b as cT,c as jr,d as uT,e as fT,f as da,g as Na,h as wa,i as to,j as gT,k as pt,l as _u,m as Gu,n as Wu,o as Uu,p as $u,q as Ku,r as Yu,s as Xu,t as Wr,u as dt,v as Zu,w as qu,x as Ju,y as Qu,z as Li}from"./chunk-gv8xjarq.js";import{cva as Qw}from"class-variance-authority";import*as rt from"@radix-ui/react-accordion";import{cva as _i}from"class-variance-authority";import{ChevronDown as sf}from"lucide-react";import{createContext as lf,forwardRef as Ro,useContext as Ja}from"react";import{createContext as of,useContext as qa}from"react";import{jsxDEV as nf}from"react/jsx-dev-runtime";var No="md",Bi=of(No),wo=({density:e,children:t})=>{return nf(Bi.Provider,{value:e,children:t},void 0,!1,void 0,this)};wo.displayName="DensityProvider";var af=()=>{return qa(Bi)};function c(e){let t=qa(Bi);if(e!==void 0)return e;return t}import{jsxDEV as Tt}from"react/jsx-dev-runtime";var Ne={sm:"sm",md:"md",lg:"lg"},Gi=lf(Ne.md),Qa=_i("border-b border-border"),Ea=_i("gs-interactive flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[Ne.sm]:"py-3 text-xs [&>svg]:size-3.5",[Ne.md]:"py-4 text-sm [&>svg]:size-4",[Ne.lg]:"py-5 text-base [&>svg]:size-5"}},defaultVariants:{size:Ne.md}}),ja=_i("gs-accordion-content overflow-hidden",{variants:{size:{[Ne.sm]:"text-xs",[Ne.md]:"text-sm",[Ne.lg]:"text-base"}},defaultVariants:{size:Ne.md}}),mf={[Ne.sm]:"pt-0 pb-3",[Ne.md]:"pt-0 pb-4",[Ne.lg]:"pt-0 pb-5"},en=Ro(({size:e=Ne.md,...t},r)=>{let o=c(e)??Ne.md;return Tt(Gi.Provider,{value:o,children:Tt(rt.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});en.displayName="Accordion";var tn=Ro(({className:e,...t},r)=>Tt(rt.Item,{ref:r,className:i(Qa(),e),...t},void 0,!1,void 0,this));tn.displayName="AccordionItem";var rn=Ro(({className:e,children:t,...r},o)=>{let a=Ja(Gi);return Tt(rt.Header,{className:"flex",children:Tt(rt.Trigger,{ref:o,className:i(Ea({size:a}),e),...r,children:[t,Tt(sf,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});rn.displayName="AccordionTrigger";var on=Ro(({className:e,children:t,...r},o)=>{let a=Ja(Gi);return Tt(rt.Content,{ref:o,className:i(ja({size:a}),e),...r,children:Tt("div",{className:mf[a],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});on.displayName="AccordionContent";import{cva as Wi}from"class-variance-authority";import{TriangleAlert as df,CircleCheck as pf,Info as cf,CircleAlert as uf}from"lucide-react";import{forwardRef as Ui}from"react";import{jsxDEV as $i}from"react/jsx-dev-runtime";var lr={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Ur={sm:"sm",md:"md",lg:"lg",xl:"xl"},an=Wi("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:{[lr.default]:"bg-background text-foreground",[lr.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[lr.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[lr.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[lr.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[Ur.sm]:"p-3 text-xs [&>svg]:top-3 [&>svg]:left-3 [&>svg~*]:pl-6",[Ur.md]:"p-4 text-sm",[Ur.lg]:"p-5 text-sm",[Ur.xl]:"p-6 text-base [&>svg]:top-6 [&>svg]:left-6 [&>svg~*]:pl-8"}},defaultVariants:{variant:lr.default,size:Ur.md}}),nn=Wi("mb-1 font-medium leading-none tracking-tight"),sn=Wi("text-sm [&_p]:leading-relaxed"),ln=Ui(({className:e,variant:t,size:r,...o},a)=>{let n=c(r);return $i("div",{ref:a,role:"alert",className:i(an({variant:t,size:n}),e),...o},void 0,!1,void 0,this)});ln.displayName="Alert";var mn=Ui(({className:e,...t},r)=>$i("h5",{ref:r,className:i(nn(),e),...t},void 0,!1,void 0,this));mn.displayName="AlertTitle";var dn=Ui(({className:e,...t},r)=>$i("div",{ref:r,className:i(sn(),e),...t},void 0,!1,void 0,this));dn.displayName="AlertDescription";import*as ve from"@radix-ui/react-alert-dialog";import{cva as bn}from"class-variance-authority";import{forwardRef as cr}from"react";import{Slot as pn}from"@radix-ui/react-slot";import{cva as Yi}from"class-variance-authority";import{forwardRef as Mo}from"react";import{forwardRef as ff}from"react";import{jsxDEV as Ki}from"react/jsx-dev-runtime";var mr={sm:"sm",md:"md",lg:"lg",xl:"xl"},gf={[mr.sm]:"h-4 w-4",[mr.md]:"h-5 w-5",[mr.lg]:"h-6 w-6",[mr.xl]:"h-8 w-8"},dr=ff(({className:e,size:t=mr.md,label:r="Loading",...o},a)=>{let n=c(t);return Ki("span",{ref:a,className:i("inline-flex items-center justify-center",e),role:"status","aria-label":r,...o,children:[Ki("span",{className:i("animate-spin rounded-full border-2 border-current border-r-transparent",gf[n])},void 0,!1,void 0,this),Ki("span",{className:"sr-only",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});dr.displayName="Spinner";import{jsxDEV as ut}from"react/jsx-dev-runtime";var ct={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},ke={sm:"sm",md:"md",lg:"lg",xl:"xl",icon:"icon",iconSm:"icon-sm",iconLg:"icon-lg"},ht={default:"default",success:"success",warning:"warning",error:"error",info:"info"},pr={sm:"sm",md:"md",lg:"lg"},yf="Loading",vf="button",$r=Yi("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:{[ct.primary]:"border-primary bg-primary text-primary-foreground enabled:hover:bg-primary/90",[ct.secondary]:"border-secondary bg-secondary text-secondary-foreground enabled:hover:bg-secondary/90",[ct.neutral]:"border-border bg-muted text-foreground enabled:hover:bg-muted/90",[ct.outline]:"border-border bg-background text-foreground enabled:hover:border-primary enabled:hover:bg-muted/50",[ct.ghost]:"border-transparent bg-transparent text-foreground enabled:hover:bg-muted/70",[ct.danger]:"border-destructive bg-destructive text-destructive-foreground enabled:hover:bg-destructive/90"},size:{[ke.sm]:"h-8 px-2.5 text-xs",[ke.md]:"h-10 px-4 text-sm",[ke.lg]:"h-11 px-5 text-sm",[ke.xl]:"h-12 px-6 text-base",[ke.icon]:"h-10 w-10 p-0",[ke.iconSm]:"h-9 w-9 p-0",[ke.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:ct.primary,size:ke.md}}),cn=Yi("shrink-0",{variants:{size:{[pr.sm]:"size-3",[pr.md]:"size-4",[pr.lg]:"size-4.5"}},defaultVariants:{size:pr.md}}),un=Yi("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[10px] leading-none",{variants:{tone:{[ht.default]:"border-border/70 bg-background/75 text-muted-foreground",[ht.success]:"border-success/35 bg-success/12 text-success",[ht.warning]:"border-warning/35 bg-warning/12 text-warning",[ht.error]:"border-destructive/35 bg-destructive/12 text-destructive",[ht.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:ht.default}});function bf(e){return e===ke.icon||e===ke.iconSm||e===ke.iconLg}function Tf(e,t,r){return e&&t?-1:r}function hf(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function Pf(){if(typeof process>"u")return!0;return!0}var fn=Mo(({className:e,size:t=pr.md,...r},o)=>ut(pn,{ref:o,className:i(cn({size:t}),e),...r},void 0,!1,void 0,this));fn.displayName="ButtonIcon";var gn=Mo(({className:e,...t},r)=>ut("span",{ref:r,className:i("truncate",e),...t},void 0,!1,void 0,this));gn.displayName="ButtonLabel";var yn=Mo(({className:e,tone:t=ht.default,...r},o)=>ut("span",{ref:o,className:i(un({tone:t}),e),...r},void 0,!1,void 0,this));yn.displayName="ButtonBadge";var vn=Mo(({className:e,variant:t=ct.primary,size:r=ke.md,asChild:o=!1,loading:a=!1,loadingText:n=yf,fullWidth:s=!1,leadingIcon:l,trailingIcon:m,disabled:d,children:f,type:u,tabIndex:h,onClick:p,...y},C)=>{let R=c(r),w=R??r,T=hf(y);if(Pf()&&bf(w)&&!T)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let b=Boolean(d||a),x=i($r({variant:t,size:R}),s&&"w-full",e);if(o)return ut(pn,{ref:C,className:x,"aria-disabled":b||void 0,"aria-busy":a||void 0,tabIndex:Tf(!0,b,h),onClick:b?(A)=>{A.preventDefault()}:p,...y,children:f},void 0,!1,void 0,this);return ut("button",{ref:C,className:x,disabled:b,"aria-disabled":b,"aria-busy":a,tabIndex:h,type:u??vf,onClick:a?void 0:p,...y,children:[ut("span",{className:i("absolute inset-0 flex items-center justify-center transition-opacity duration-150",a?"opacity-100":"opacity-0"),"aria-hidden":"true",children:ut(dr,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),a&&ut("span",{className:"sr-only",children:n},void 0,!1,void 0,this),ut("span",{className:i("inline-flex items-center justify-center gap-2 transition-opacity duration-150",a&&"opacity-0"),children:[l,f,m]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});vn.displayName="Button";import{jsxDEV as ot}from"react/jsx-dev-runtime";var Pt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Tn=bn("gs-dialog-overlay fixed inset-0 z-50 bg-black/50"),hn=bn("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:{[Pt.sm]:"max-w-sm",[Pt.md]:"max-w-md",[Pt.lg]:"max-w-lg",[Pt.xl]:"max-w-xl",[Pt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:Pt.md}}),xf=ve.Root,Cf=ve.Trigger,Pn=ve.Portal,Xi=cr(({className:e,...t},r)=>ot(ve.Overlay,{ref:r,className:i(Tn(),e),...t},void 0,!1,void 0,this));Xi.displayName="AlertDialogOverlay";var xn=cr(({className:e,size:t=Pt.md,...r},o)=>{let a=c(t);return ot(Pn,{children:[ot(Xi,{},void 0,!1,void 0,this),ot(ve.Content,{ref:o,className:i(hn({size:a}),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});xn.displayName="AlertDialogContent";var Cn=({className:e,...t})=>ot("div",{className:i("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Cn.displayName="AlertDialogHeader";var zn=({className:e,...t})=>ot("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);zn.displayName="AlertDialogFooter";var Sn=cr(({className:e,...t},r)=>ot(ve.Title,{ref:r,className:i("text-lg font-semibold",e),...t},void 0,!1,void 0,this));Sn.displayName="AlertDialogTitle";var Nn=cr(({className:e,...t},r)=>ot(ve.Description,{ref:r,className:i("text-sm text-muted-foreground",e),...t},void 0,!1,void 0,this));Nn.displayName="AlertDialogDescription";var wn=cr(({className:e,...t},r)=>ot(ve.Action,{ref:r,className:i($r(),e),...t},void 0,!1,void 0,this));wn.displayName="AlertDialogAction";var Rn=cr(({className:e,...t},r)=>ot(ve.Cancel,{ref:r,className:i($r({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));Rn.displayName="AlertDialogCancel";import*as Mn from"@radix-ui/react-aspect-ratio";var zf=Mn.Root;import*as fr from"@radix-ui/react-avatar";import{cva as Sf}from"class-variance-authority";import{forwardRef as Lo}from"react";import{jsxDEV as ur}from"react/jsx-dev-runtime";var Fe={sm:"sm",md:"md",lg:"lg",xl:"xl"},Ln=Sf("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{[Fe.sm]:"h-7 w-7 text-xs",[Fe.md]:"h-10 w-10 text-sm",[Fe.lg]:"h-12 w-12 text-base",[Fe.xl]:"h-16 w-16 text-lg"}},defaultVariants:{size:Fe.md}}),Zi=Lo(({className:e,size:t=Fe.md,...r},o)=>{let a=c(t);return ur(fr.Root,{ref:o,className:i(Ln({size:a}),e),...r},void 0,!1,void 0,this)});Zi.displayName="Avatar";var Hn=Lo(({className:e,...t},r)=>ur(fr.Image,{ref:r,className:i("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));Hn.displayName="AvatarImage";var qi=Lo(({className:e,...t},r)=>ur(fr.Fallback,{ref:r,className:i("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));qi.displayName="AvatarFallback";var Nf={[Fe.sm]:"-space-x-2",[Fe.md]:"-space-x-3",[Fe.lg]:"-space-x-4",[Fe.xl]:"-space-x-5"},kn=Lo(({className:e,children:t,max:r,size:o=Fe.md,...a},n)=>{let s=c(o),l=Array.isArray(t)?t:[t],m=r?l.slice(0,r):l,d=r?Math.max(0,l.length-r):0;return ur("div",{ref:n,className:i("flex items-center",Nf[s],e),...a,children:[m,d>0&&ur(Zi,{size:s,className:"border-2 border-background",children:ur(qi,{className:"text-xs",children:["+",d]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});kn.displayName="AvatarGroup";import{Slot as wf}from"@radix-ui/react-slot";import{cva as Rf}from"class-variance-authority";import{X as Mf}from"lucide-react";import{forwardRef as Lf}from"react";import{jsxDEV as Kr}from"react/jsx-dev-runtime";var Te={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},xt={sm:"sm",md:"md",lg:"lg",dot:"dot"},An=Rf("inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium",{variants:{variant:{[Te.default]:"border-border bg-muted text-muted-foreground",[Te.primary]:"border-primary/30 bg-primary/10 text-primary",[Te.success]:"border-success/30 bg-success/10 text-success",[Te.warning]:"border-warning/30 bg-warning/10 text-warning",[Te.error]:"border-destructive/30 bg-destructive/10 text-destructive",[Te.info]:"border-info/30 bg-info/10 text-info",[Te.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[xt.sm]:"h-5 px-2 text-[10px]",[xt.md]:"h-6 px-2.5 text-xs",[xt.lg]:"h-7 px-3 text-sm",[xt.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:Te.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:Te.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:Te.success,className:"border-success bg-success text-background"},{solid:!0,variant:Te.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:Te.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:Te.info,className:"border-info bg-info text-background"},{solid:!0,variant:Te.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:Te.default,solid:!1,size:xt.md}}),Ho=Lf(({className:e,variant:t=Te.default,size:r=xt.md,solid:o=!1,pulse:a=!1,removable:n=!1,onRemove:s,onClick:l,children:m,asChild:d=!1,...f},u)=>{let h=c(r),p=Boolean(l),y=h===xt.dot,C=(T)=>{T.stopPropagation(),s?.(T)},R=i(An({variant:t,solid:o,size:h}),p&&"cursor-pointer",a&&"animate-pulse",n&&!y&&"pr-1",e),w=n&&!y&&Kr("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:C,"aria-label":"Remove",tabIndex:-1,children:Kr(Mf,{className:"size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(d)return Kr(wf,{ref:u,className:R,onClick:l,...f,children:m},void 0,!1,void 0,this);if(p)return Kr("button",{ref:u,className:R,onClick:l,type:"button",...f,children:[!y&&m,w]},void 0,!0,void 0,this);return Kr("span",{ref:u,className:R,...f,children:[!y&&m,w]},void 0,!0,void 0,this)});Ho.displayName="Badge";import{Children as Hf,cloneElement as kf,forwardRef as Af,isValidElement as If,useCallback as In,useEffect as Vf,useLayoutEffect as Df,useRef as Ff,useState as Of}from"react";import{jsxDEV as Vn}from"react/jsx-dev-runtime";function Bf(e){let t=[];return Hf.forEach(e,(r,o)=>{if(!If(r))return;let a=r.key??o;t.push({key:a,element:r,isLeaving:!1})}),t}function _f(e,t){let r=new Set(t.map((n)=>n.key)),o=new Set(e.map((n)=>n.key)),a=[];for(let n of e)if(r.has(n.key)){let s=t.find((l)=>l.key===n.key);if(s)a.push({...s,isLeaving:!1})}else a.push({...n,isLeaving:!0});for(let n of t)if(!o.has(n.key))a.push(n);return a}function Gf(e,t,r){if(r.current)return r.current=!1,t;return _f(e,t)}var Wf=typeof window<"u"?Df:Vf,Dn=Af(({children:e,className:t,onRemove:r,gap:o="sm"},a)=>{let[n,s]=Of([]),l=Ff(!0);Wf(()=>{let u=Bf(e);s((h)=>Gf(h,u,l))},[e]);let m=In((u)=>{s((h)=>h.filter((p)=>p.key!==u))},[]),d=In((u)=>{r?.(u)},[r]),f={sm:"gap-1",md:"gap-2",lg:"gap-3"}[o];return Vn("div",{ref:a,className:i("inline-flex flex-wrap items-center",f,t),children:n.map((u)=>{let h={};if(u.element.props.removable&&r)h.onRemove=()=>{d(u.key)};let p=i("inline-flex transition-all duration-200",u.isLeaving&&"pointer-events-none scale-95 opacity-0");return Vn("span",{className:p,onTransitionEnd:u.isLeaving?()=>m(u.key):void 0,children:kf(u.element,h)},u.key,!1,void 0,this)})},void 0,!1,void 0,this)});Dn.displayName="BadgeGroup";import{Slot as Uf}from"@radix-ui/react-slot";import{cva as gr}from"class-variance-authority";import{ChevronRight as $f,MoreHorizontal as Kf}from"lucide-react";import{createContext as Yf,forwardRef as Yr,useContext as Ji}from"react";import{jsxDEV as Ye}from"react/jsx-dev-runtime";var ce={sm:"sm",md:"md",lg:"lg"},ko=Yf(ce.md),Fn=gr("flex flex-wrap items-center break-words text-muted-foreground",{variants:{size:{[ce.sm]:"gap-1 text-xs",[ce.md]:"gap-1.5 text-sm sm:gap-2.5",[ce.lg]:"gap-2 text-base sm:gap-3"}},defaultVariants:{size:ce.md}}),On=gr("inline-flex items-center gap-1.5"),Bn=gr("gs-interactive hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),_n=gr("font-normal text-foreground"),Gn=gr("",{variants:{size:{[ce.sm]:"[&>svg]:size-3",[ce.md]:"[&>svg]:size-3.5",[ce.lg]:"[&>svg]:size-4"}},defaultVariants:{size:ce.md}}),Wn=gr("flex items-center justify-center",{variants:{size:{[ce.sm]:"h-7 w-7 [&>svg]:size-3.5",[ce.md]:"h-9 w-9 [&>svg]:size-4",[ce.lg]:"h-10 w-10 [&>svg]:size-5"}},defaultVariants:{size:ce.md}}),Un=Yr(({size:e=ce.md,...t},r)=>{let o=c(e)??ce.md;return Ye(ko.Provider,{value:o,children:Ye("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Un.displayName="Breadcrumb";var $n=Yr(({className:e,...t},r)=>{let o=Ji(ko);return Ye("ol",{ref:r,className:i(Fn({size:o}),e),...t},void 0,!1,void 0,this)});$n.displayName="BreadcrumbList";var Kn=Yr(({className:e,...t},r)=>Ye("li",{ref:r,className:i(On(),e),...t},void 0,!1,void 0,this));Kn.displayName="BreadcrumbItem";var Yn=Yr(({asChild:e,className:t,...r},o)=>{return Ye(e?Uf:"a",{ref:o,className:i(Bn(),t),...r},void 0,!1,void 0,this)});Yn.displayName="BreadcrumbLink";var Xn=Yr(({className:e,...t},r)=>Ye("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:i(_n(),e),...t},void 0,!1,void 0,this));Xn.displayName="BreadcrumbPage";var Zn=({children:e,className:t,...r})=>{let o=Ji(ko),a={[ce.sm]:"size-3",[ce.md]:"size-3.5",[ce.lg]:"size-4"};return Ye("li",{role:"presentation","aria-hidden":"true",className:i(Gn({size:o}),t),...r,children:e??Ye($f,{className:a[o]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Zn.displayName="BreadcrumbSeparator";var qn=({className:e,...t})=>{let r=Ji(ko);return Ye("span",{role:"presentation","aria-hidden":"true",className:i(Wn({size:r}),e),...t,children:[Ye(Kf,{},void 0,!1,void 0,this),Ye("span",{className:"sr-only",children:"More"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};qn.displayName="BreadcrumbEllipsis";import{cva as Xf}from"class-variance-authority";import{forwardRef as Zf}from"react";import{jsxDEV as qf}from"react/jsx-dev-runtime";var Xr={horizontal:"horizontal",vertical:"vertical"},Jn=Xf("inline-flex items-stretch",{variants:{orientation:{[Xr.horizontal]:"flex-row",[Xr.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:Xr.horizontal,attached:!1}}),Qn=Zf(({className:e,orientation:t=Xr.horizontal,attached:r=!1,fullWidth:o=!1,...a},n)=>qf("div",{ref:n,className:i(Jn({orientation:t,attached:r}),o&&"w-full",e),...a},void 0,!1,void 0,this));Qn.displayName="ButtonGroup";import{cva as Ct}from"class-variance-authority";import{forwardRef as Jf,useCallback as yr,useEffect as Qf,useMemo as En,useState as jn}from"react";import{jsxDEV as Ae}from"react/jsx-dev-runtime";var _={sm:"sm",md:"md",lg:"lg",xl:"xl"},ts=Ct("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:{[_.sm]:"p-3 text-sm",[_.md]:"p-4 text-sm",[_.lg]:"p-5 text-base",[_.xl]:"p-6 text-base"}},defaultVariants:{size:_.md}}),rs=Ct("mb-3 flex items-center justify-between",{variants:{size:{[_.sm]:"gap-1",[_.md]:"gap-2",[_.lg]:"gap-3",[_.xl]:"gap-3"}},defaultVariants:{size:_.md}}),os=Ct("font-semibold text-foreground",{variants:{size:{[_.sm]:"text-sm",[_.md]:"text-base",[_.lg]:"text-lg",[_.xl]:"text-xl"}},defaultVariants:{size:_.md}}),Qi=Ct(["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:{[_.sm]:"size-7",[_.md]:"size-8",[_.lg]:"size-10",[_.xl]:"size-10"}},defaultVariants:{size:_.md}}),is=Ct("grid grid-cols-7",{variants:{size:{[_.sm]:"gap-0.5",[_.md]:"gap-1",[_.lg]:"gap-1.5",[_.xl]:"gap-2"}},defaultVariants:{size:_.md}}),as=Ct("text-center font-semibold uppercase tracking-wide text-muted-foreground",{variants:{size:{[_.sm]:"py-1 text-[10px]",[_.md]:"py-1.5 text-xs",[_.lg]:"py-2 text-sm",[_.xl]:"py-2 text-sm"}},defaultVariants:{size:_.md}}),ns=Ct(["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:{[_.sm]:"size-7 text-xs",[_.md]:"size-9 text-sm",[_.lg]:"size-10 text-base",[_.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:_.md,state:"default"}}),Ef=Ct("rounded-md border border-transparent",{variants:{size:{[_.sm]:"size-7",[_.md]:"size-9",[_.lg]:"size-10",[_.xl]:"size-11"}},defaultVariants:{size:_.md}}),es=["Su","Mo","Tu","We","Th","Fr","Sa"],jf=["January","February","March","April","May","June","July","August","September","October","November","December"],ft=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),vr=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},ss=Jf(({className:e,size:t="md",cellSize:r,mode:o="single",value:a,defaultValue:n,onChange:s,rangeValue:l,onRangeChange:m,viewMonth:d,onViewMonthChange:f,minDate:u,maxDate:h,disabledDates:p=[],weekStartsOn:y=1,highlightToday:C=!0,...R},w)=>{let T=c(t)??_.md,b=c(r??T)??T,[x,A]=jn(a??n??null),[S,k]=jn(a??n??new Date),z=d??S,V=yr((g)=>{if(f){let v=typeof g==="function"?g(d??S):g;f(v)}else k((v)=>{return typeof g==="function"?g(v):g})},[d,S,f]),K=a!==void 0?a:x,O=u?ft(u):null,$=h?ft(h):null;Qf(()=>{if(a!==void 0){if(A(a??null),a&&!d)k(a)}},[a,d]);let N=yr((g,v)=>{return(new Date(g,v,1).getDay()-y+7)%7},[y]),I=En(()=>{let g=z.getFullYear(),v=z.getMonth(),L=N(g,v),te=new Date(g,v+1,0).getDate(),B=[];for(let j=0;j<L;j+=1)B.push({key:`leading-${g}-${v}-${j}`,date:null});for(let j=1;j<=te;j+=1)B.push({key:`day-${g}-${v}-${j}`,date:new Date(g,v,j)});let Se=(7-B.length%7)%7;for(let j=0;j<Se;j+=1)B.push({key:`trailing-${g}-${v}-${j}`,date:null});return B},[z,N]),P=yr((g)=>{let v=ft(g);if(O&&v<O)return!0;if($&&v>$)return!0;return p.some((L)=>vr(v,ft(L)))},[O,$,p]),D=yr((g)=>{if(P(g))return"disabled";if(o==="range"&&l){let{from:v,to:L}=l;if(v&&vr(g,v))return"rangeStart";if(L&&vr(g,L))return"rangeEnd";if(v&&L){let te=ft(g),B=ft(v),Se=ft(L);if(te>B&&te<Se)return"range"}}if(o==="single"&&K&&vr(g,K))return"selected";if(C&&vr(g,new Date))return"today";return"default"},[K,C,P,o,l]),E=yr((g)=>{if(P(g))return;let v=new Date(g);if(o==="range"){if(!l?.from||l.from&&l.to)m?.({from:v,to:void 0});else{let L=ft(l.from);if(ft(v)<L)m?.({from:v,to:l.from});else m?.({from:l.from,to:v})}return}if(a===void 0)A(v);s?.(v)},[P,o,s,m,l,a]),M=yr((g)=>{V((v)=>{let L=new Date(v);return L.setMonth(L.getMonth()+g),L})},[V]),Y=En(()=>{return[...es.slice(y),...es.slice(0,y)]},[y]);return Ae("div",{ref:w,className:i(ts({size:T}),e),...R,children:[Ae("div",{className:i(rs({size:T})),children:[Ae("button",{type:"button",onClick:()=>M(-1),className:i(Qi({size:T})),"aria-label":"Previous month",children:Ae("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ae("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),Ae("span",{className:i(os({size:T})),children:[jf[z.getMonth()]," ",z.getFullYear()]},void 0,!0,void 0,this),Ae("button",{type:"button",onClick:()=>M(1),className:i(Qi({size:T})),"aria-label":"Next month",children:Ae("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ae("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),Ae("div",{className:i(is({size:T})),children:[Y.map((g)=>Ae("div",{className:i(as({size:b})),children:g},g,!1,void 0,this)),I.map((g)=>{if(!g.date)return Ae("div",{"aria-hidden":"true",className:i(Ef({size:b}))},g.key,!1,void 0,this);let v=g.date,L=D(v);return Ae("button",{type:"button",onClick:()=>E(v),disabled:L==="disabled",className:i(ns({size:b,state:L})),children:v.getDate()},g.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});ss.displayName="Calendar";import{Slot as br}from"@radix-ui/react-slot";import{cva as eg}from"class-variance-authority";import{forwardRef as Tr}from"react";import{jsxDEV as hr}from"react/jsx-dev-runtime";var Ao={default:"default",muted:"muted",danger:"danger"},ls=eg("gs-interactive relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[Ao.default]:"border-border",[Ao.muted]:"border-border/70 bg-muted/40",[Ao.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:Ao.default}}),ms=Tr(({asChild:e=!1,className:t,variant:r,...o},a)=>{return hr(e?br:"div",{ref:a,className:i(ls({variant:r}),t),...o},void 0,!1,void 0,this)});ms.displayName="Card";var ds=Tr(({asChild:e=!1,className:t,...r},o)=>{return hr(e?br:"div",{ref:o,className:i("flex flex-col gap-1.5 border-b border-border/50 p-4",t),...r},void 0,!1,void 0,this)});ds.displayName="CardHeader";var ps=Tr(({asChild:e=!1,className:t,...r},o)=>{return hr(e?br:"div",{ref:o,className:i("p-4",t),...r},void 0,!1,void 0,this)});ps.displayName="CardContent";var cs=Tr(({asChild:e=!1,className:t,...r},o)=>{return hr(e?br:"div",{ref:o,className:i("flex items-center border-t border-border/50 p-4",t),...r},void 0,!1,void 0,this)});cs.displayName="CardFooter";var us=Tr(({asChild:e=!1,className:t,...r},o)=>{return hr(e?br:"h3",{ref:o,className:i("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});us.displayName="CardTitle";var fs=Tr(({asChild:e=!1,className:t,...r},o)=>{return hr(e?br:"p",{ref:o,className:i("text-sm text-muted-foreground",t),...r},void 0,!1,void 0,this)});fs.displayName="CardDescription";import*as Vo from"@radix-ui/react-checkbox";import{cva as tg}from"class-variance-authority";import{Check as rg,Minus as og}from"lucide-react";import{forwardRef as ig}from"react";import{jsxDEV as Io}from"react/jsx-dev-runtime";var Xe={sm:"sm",md:"md",lg:"lg",xl:"xl"},Pr={default:"default",error:"error",success:"success"},ys=tg("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:{[Xe.sm]:"h-4 w-4",[Xe.md]:"h-5 w-5",[Xe.lg]:"h-6 w-6",[Xe.xl]:"h-7 w-7"},status:{[Pr.default]:"enabled:hover:border-primary/70",[Pr.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",[Pr.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:Xe.md,status:Pr.default}}),gs={[Xe.sm]:"size-3.5",[Xe.md]:"size-3.5",[Xe.lg]:"size-4",[Xe.xl]:"size-5"},vs=ig(({className:e,size:t=Xe.md,status:r=Pr.default,checked:o,disabled:a,...n},s)=>{let l=c(t);return Io(Vo.Root,{ref:s,checked:o,disabled:a,className:i(ys({size:l,status:r}),e),...n,children:Io(Vo.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:o==="indeterminate"?Io(og,{className:gs[l]},void 0,!1,void 0,this):Io(rg,{className:gs[l]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});vs.displayName="Checkbox";import{cva as zt}from"class-variance-authority";import{forwardRef as ag,useCallback as ng,useState as sg}from"react";import{jsxDEV as we,Fragment as bs}from"react/jsx-dev-runtime";var q={sm:"sm",md:"md",lg:"lg"},Ei={default:"default",ghost:"ghost"},Ts=zt("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[q.sm]:"text-xs",[q.md]:"text-sm",[q.lg]:"text-base"},variant:{[Ei.default]:"bg-muted border border-border",[Ei.ghost]:"bg-transparent"}},defaultVariants:{size:q.md,variant:Ei.default}}),hs=zt("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}}),Ps=zt("text-muted-foreground font-medium",{variants:{size:{[q.sm]:"text-[11px]",[q.md]:"text-xs",[q.lg]:"text-sm"}},defaultVariants:{size:q.md}}),xs=zt(["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}}),Cs=zt("overflow-x-auto",{variants:{size:{[q.sm]:"p-2.5",[q.md]:"p-4",[q.lg]:"p-5"}},defaultVariants:{size:q.md}}),zs=zt("text-foreground",{variants:{size:{[q.sm]:"",[q.md]:"",[q.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:q.md,showLineNumbers:!1}}),Ss=zt("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}}),Ns=zt("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}}),ws=ag(({className:e,code:t,language:r,showLineNumbers:o=!1,highlightedLines:a=[],showCopy:n=!0,size:s="md",variant:l="default",onCopy:m,...d},f)=>{let u=c(s),[h,p]=sg(!1),y=ng(async()=>{try{await navigator.clipboard.writeText(t),p(!0),m?.(t),setTimeout(()=>p(!1),2000)}catch(w){}},[t,m]),C=t.split(`
3
- `),R=new Set(a);return we("div",{ref:f,className:i(Ts({size:u,variant:l}),e),...d,children:[(r||n)&&we("div",{className:i(hs({size:u})),children:[we("span",{className:i(Ps({size:u})),children:r},void 0,!1,void 0,this),n&&we("button",{type:"button",onClick:y,className:i(xs({size:u,copied:h})),children:h?we(bs,{children:[we("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:we("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):we(bs,{children:[we("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:we("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),we("div",{className:i(Cs({size:u})),children:we("pre",{className:i(zs({size:u,showLineNumbers:o})),children:we("code",{children:C.map((w,T)=>we("span",{className:i(Ss({size:u,highlighted:R.has(T+1)})),children:[o&&we("span",{className:i(Ns({size:u})),children:T+1},void 0,!1,void 0,this),w,`
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)});ws.displayName="CodeBlock";import*as xr from"@radix-ui/react-collapsible";import{cva as lg}from"class-variance-authority";import{forwardRef as mg}from"react";import{jsxDEV as cg}from"react/jsx-dev-runtime";var Rs=lg("gs-collapsible-content overflow-hidden"),dg=xr.Root,pg=xr.CollapsibleTrigger,Ms=mg(({className:e,...t},r)=>cg(xr.CollapsibleContent,{ref:r,className:i(Rs(),e),...t},void 0,!1,void 0,this));Ms.displayName="CollapsibleContent";import*as St from"@radix-ui/react-dialog";import{cva as Ze}from"class-variance-authority";import{createContext as ug,forwardRef as it,useContext as fg,useEffect as gg,useState as Ls}from"react";import{jsxDEV as be}from"react/jsx-dev-runtime";var Hs=Ze(["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"}}),ks=Ze(["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"]),As=Ze(["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"]),Is=Ze(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),Vs=Ze(["py-6 text-center text-sm text-muted-foreground"]),Ds=Ze(["overflow-hidden"]),Fs=Ze(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),Do={default:"default",danger:"danger"},Os=Ze(["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}}),Bs=Ze(["-mx-1 my-1 h-px bg-border"]),_s=Ze(["ml-auto text-xs tracking-widest text-muted-foreground"]),Gs=Ze(["flex items-center justify-center py-6"]),Ws=ug(null),ji=()=>{let e=fg(Ws);if(!e)throw Error("useCommand must be used within a Command");return e},ea=it(({className:e,children:t,loop:r=!0,...o},a)=>{let[n,s]=Ls(""),[l,m]=Ls(0);return be(Ws.Provider,{value:{search:n,setSearch:s,selectedIndex:l,setSelectedIndex:m},children:be("div",{ref:a,className:i("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)});ea.displayName="Command";var Us=it(({children:e,size:t,...r},o)=>{return be(St.Root,{...r,children:be(St.Portal,{children:[be(St.Overlay,{className:i(ks())},void 0,!1,void 0,this),be(St.Content,{ref:o,className:i(Hs({size:t})),children:be(ea,{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)});Us.displayName="CommandDialog";var $s=it(({className:e,icon:t,...r},o)=>{let{search:a,setSearch:n,setSelectedIndex:s}=ji();return be("div",{className:"flex items-center border-border border-b px-3",children:[t&&be("span",{className:"mr-2 shrink-0 text-muted-foreground",children:t},void 0,!1,void 0,this),be("input",{ref:o,value:a,onChange:(l)=>{n(l.target.value),s(0)},className:i(As(),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});$s.displayName="CommandInput";var Ks=it(({className:e,children:t,...r},o)=>{return be("div",{ref:o,className:i(Is(),e),...r,children:t},void 0,!1,void 0,this)});Ks.displayName="CommandList";var Ys=it(({className:e,children:t="No results found.",...r},o)=>{return be("div",{ref:o,className:i(Vs(),e),...r,children:t},void 0,!1,void 0,this)});Ys.displayName="CommandEmpty";var Xs=it(({className:e,heading:t,children:r,...o},a)=>{return be("div",{ref:a,className:i(Ds(),e),...o,children:[t&&be("div",{className:i(Fs()),children:t},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});Xs.displayName="CommandGroup";var Zs=it(({className:e,disabled:t,onSelect:r,children:o,keywords:a,variant:n,...s},l)=>{let{search:m}=ji();if(!(()=>{if(!m)return!0;let f=m.toLowerCase();if((typeof o==="string"?o.toLowerCase():"").includes(f))return!0;if(a?.some((h)=>h.toLowerCase().includes(f)))return!0;return!1})())return null;return be("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:i(Os({selected:!1,variant:n}),e),...s,children:o},void 0,!1,void 0,this)});Zs.displayName="CommandItem";var qs=it(({className:e,...t},r)=>{return be("div",{ref:r,className:i(Bs(),e),...t},void 0,!1,void 0,this)});qs.displayName="CommandSeparator";var Js=it(({className:e,children:t,...r},o)=>{return be("span",{ref:o,className:i(_s(),e),...r,children:t},void 0,!1,void 0,this)});Js.displayName="CommandShortcut";var Qs=it(({className:e,children:t,...r},o)=>{return be("div",{ref:o,className:i(Gs(),e),...r,children:t},void 0,!1,void 0,this)});Qs.displayName="CommandLoading";var yg=({key:e,modifier:t="meta",callback:r})=>{gg(()=>{let o=(a)=>{if({ctrl:a.ctrlKey,meta:a.metaKey,alt:a.altKey,shift:a.shiftKey}[t]&&a.key.toLowerCase()===e.toLowerCase())a.preventDefault(),r()};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[e,t,r])};import*as G from"@radix-ui/react-context-menu";import{cva as _t}from"class-variance-authority";import{Check as vg,ChevronRight as bg,Circle as Tg}from"lucide-react";import{createContext as hg,forwardRef as Nt,useContext as Cr}from"react";import{jsxDEV as ue}from"react/jsx-dev-runtime";var X={sm:"sm",md:"md",lg:"lg"},Fo={default:"default",danger:"danger"},Gt=hg(X.md),ta=_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)]"),ra=_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:{[X.sm]:"h-6 gap-1.5 px-1.5 text-xs [&_svg]:size-3",[X.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[X.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Fo.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Fo.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:X.md,variant:Fo.default}}),Es=_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:{[X.sm]:"h-6 pl-6 pr-1.5 text-xs",[X.md]:"h-8 pl-8 pr-2 text-sm",[X.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:X.md}}),js=_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:{[X.sm]:"h-6 pl-6 pr-1.5 text-xs",[X.md]:"h-8 pl-8 pr-2 text-sm",[X.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:X.md}}),el=_t("font-semibold text-muted-foreground",{variants:{size:{[X.sm]:"px-1.5 py-0.5 text-[10px]",[X.md]:"px-2 py-1.5 text-xs",[X.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:X.md}}),tl=_t("-mx-1 my-1 h-px bg-border/50"),rl=_t("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[X.sm]:"text-[10px]",[X.md]:"text-xs",[X.lg]:"text-xs"}},defaultVariants:{size:X.md}}),ol={[X.sm]:"absolute left-1.5 flex size-3 items-center justify-center",[X.md]:"absolute left-2 flex size-3.5 items-center justify-center",[X.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},Pg={[X.sm]:"size-3",[X.md]:"size-3.5",[X.lg]:"size-4"},xg={[X.sm]:"size-1.5 fill-current",[X.md]:"size-2 fill-current",[X.lg]:"size-2.5 fill-current"},Cg=G.Root,zg=G.Trigger,Sg=G.Group,Ng=G.Portal,wg=G.Sub,Rg=G.RadioGroup,il=Nt(({className:e,inset:t,children:r,...o},a)=>{let n=Cr(Gt),s=c(n);return ue(G.SubTrigger,{ref:a,className:i(ra({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,ue(bg,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});il.displayName=G.SubTrigger.displayName;var al=Nt(({className:e,...t},r)=>ue(G.Portal,{children:ue(G.SubContent,{ref:r,className:i(ta(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));al.displayName=G.SubContent.displayName;var nl=Nt(({className:e,size:t,...r},o)=>{let a=c(t)??X.md;return ue(Gt.Provider,{value:a,children:ue(G.Portal,{children:ue(G.Content,{ref:o,className:i(ta(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});nl.displayName=G.Content.displayName;var sl=Nt(({className:e,inset:t,variant:r,...o},a)=>{let n=Cr(Gt),s=c(n);return ue(G.Item,{ref:a,className:i(ra({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});sl.displayName=G.Item.displayName;var ll=Nt(({className:e,children:t,checked:r,...o},a)=>{let n=Cr(Gt),s=c(n)??X.md;return ue(G.CheckboxItem,{ref:a,className:i(Es({size:s}),e),checked:r,...o,children:[ue("span",{className:ol[s],children:ue(G.ItemIndicator,{children:ue(vg,{className:Pg[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)});ll.displayName=G.CheckboxItem.displayName;var ml=Nt(({className:e,children:t,...r},o)=>{let a=Cr(Gt),n=c(a)??X.md;return ue(G.RadioItem,{ref:o,className:i(js({size:n}),e),...r,children:[ue("span",{className:ol[n],children:ue(G.ItemIndicator,{children:ue(Tg,{className:xg[n]},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)});ml.displayName=G.RadioItem.displayName;var dl=Nt(({className:e,inset:t,...r},o)=>{let a=Cr(Gt),n=c(a);return ue(G.Label,{ref:o,className:i(el({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});dl.displayName=G.Label.displayName;var pl=Nt(({className:e,...t},r)=>ue(G.Separator,{ref:r,className:i(tl(),e),...t},void 0,!1,void 0,this));pl.displayName=G.Separator.displayName;var cl=({className:e,...t})=>{let r=Cr(Gt),o=c(r);return ue("span",{className:i(rl({size:o}),e),...t},void 0,!1,void 0,this)};cl.displayName="ContextMenuShortcut";import*as he from"@radix-ui/react-dialog";import{cva as Mg}from"class-variance-authority";import{X as Lg}from"lucide-react";import{forwardRef as Oo}from"react";import{jsxDEV as qe}from"react/jsx-dev-runtime";var wt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},oa=he.Root,Hg=he.Trigger,ul=he.Portal,kg=he.Close,ia=Oo(({className:e,...t},r)=>qe(he.Overlay,{ref:r,className:i("gs-dialog-overlay fixed inset-0 z-50 bg-black/50",e),...t},void 0,!1,void 0,this));ia.displayName="DialogOverlay";var fl=Mg("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:{[wt.sm]:"max-w-sm",[wt.md]:"max-w-md",[wt.lg]:"max-w-lg",[wt.xl]:"max-w-xl",[wt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:wt.md}}),Bo=Oo(({className:e,children:t,size:r=wt.md,showClose:o=!0,...a},n)=>{let s=c(r);return qe(ul,{children:[qe(ia,{},void 0,!1,void 0,this),qe(he.Content,{ref:n,className:i(fl({size:s}),e),...a,children:[t,o&&qe(he.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(Lg,{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)});Bo.displayName="DialogContent";var gl=({className:e,...t})=>qe("div",{className:i("flex flex-col space-y-1.5 text-center sm:text-left",e),...t},void 0,!1,void 0,this);gl.displayName="DialogHeader";var yl=({className:e,...t})=>qe("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);yl.displayName="DialogFooter";var vl=Oo(({className:e,...t},r)=>qe(he.Title,{ref:r,className:i("font-semibold text-lg leading-none tracking-tight",e),...t},void 0,!1,void 0,this));vl.displayName="DialogTitle";var bl=Oo(({className:e,...t},r)=>qe(he.Description,{ref:r,className:i("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));bl.displayName="DialogDescription";import{cva as aa}from"class-variance-authority";import{X as Ag}from"lucide-react";import{forwardRef as _o}from"react";import{Drawer as gt}from"vaul";import{jsxDEV as Oe}from"react/jsx-dev-runtime";var Be={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Ig={[Be.sm]:"sm:max-w-sm",[Be.md]:"sm:max-w-md",[Be.lg]:"sm:max-w-lg",[Be.xl]:"sm:max-w-xl",[Be.full]:"sm:max-w-full"},Vg={[Be.sm]:"sm:max-h-[30vh]",[Be.md]:"sm:max-h-[50vh]",[Be.lg]:"sm:max-h-[70vh]",[Be.xl]:"sm:max-h-[85vh]",[Be.full]:"sm:max-h-full"},Tl=aa(["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"]),hl=aa(["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"]),Pl=aa("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"}}),Dg=gt.Root,Fg=gt.Trigger,Og=gt.Close,xl=gt.Portal,na=_o(({className:e,...t},r)=>Oe(gt.Overlay,{ref:r,className:i(Tl(),e),...t},void 0,!1,void 0,this));na.displayName="DrawerOverlay";var Cl=_o(({size:e=Be.md,showClose:t=!1,direction:r="bottom",className:o,children:a,...n},s)=>{let m=r==="left"||r==="right"?Ig[e]:Vg[e];return Oe(xl,{children:[Oe(na,{},void 0,!1,void 0,this),Oe(gt.Content,{ref:s,className:i(hl(),m,o),...n,children:[(r==="top"||r==="bottom")&&Oe("div",{className:i(Pl({direction:r}))},void 0,!1,void 0,this),a,t&&Oe(gt.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:[Oe(Ag,{className:"size-4"},void 0,!1,void 0,this),Oe("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)});Cl.displayName="DrawerContent";var zl=({className:e,...t})=>Oe("div",{className:i("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);zl.displayName="DrawerHeader";var Sl=({className:e,...t})=>Oe("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);Sl.displayName="DrawerFooter";var Nl=_o(({className:e,...t},r)=>Oe(gt.Title,{ref:r,className:i("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));Nl.displayName="DrawerTitle";var wl=_o(({className:e,...t},r)=>Oe(gt.Description,{ref:r,className:i("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));wl.displayName="DrawerDescription";import*as W from"@radix-ui/react-dropdown-menu";import{cva as Ut}from"class-variance-authority";import{Check as Bg,ChevronRight as _g,Circle as Gg}from"lucide-react";import{createContext as Wg,forwardRef as Rt,useCallback as Ug,useContext as zr,useEffect as $g,useRef as Rl,useState as Kg}from"react";import{jsxDEV as de}from"react/jsx-dev-runtime";var Z={sm:"sm",md:"md",lg:"lg"},Go={default:"default",danger:"danger"},$t=Wg(Z.md),Wt=null,Zr=null,Yg=0,sa=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-dropdown-menu-content-transform-origin)]"),la=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-7 gap-1.5 px-2 text-xs [&_svg]:size-3.5",[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:{[Go.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Go.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:Z.md,variant:Go.default}}),Ml=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-7 pl-7 pr-2 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}}),Ll=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-7 pl-7 pr-2 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}}),Hl=Ut("font-semibold text-muted-foreground",{variants:{size:{[Z.sm]:"px-2 py-1 text-[11px]",[Z.md]:"px-2 py-1.5 text-xs",[Z.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:Z.md}}),kl=Ut("-mx-1 my-1 h-px bg-border/50"),Al=Ut("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[Z.sm]:"text-[11px]",[Z.md]:"text-xs",[Z.lg]:"text-xs"}},defaultVariants:{size:Z.md}}),Il={[Z.sm]:"absolute left-2 flex size-3.5 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"},Xg={[Z.sm]:"size-3",[Z.md]:"size-3.5",[Z.lg]:"size-4"},Zg={[Z.sm]:"size-1.5 fill-current",[Z.md]:"size-2 fill-current",[Z.lg]:"size-2.5 fill-current"},Vl=({children:e,open:t,defaultOpen:r,onOpenChange:o,...a})=>{let[n,s]=Kg(r??!1),l=t!==void 0,m=l?t:n,d=Rl(++Yg),f=Rl({onOpenChange:o,isControlled:l});f.current={onOpenChange:o,isControlled:l};let u=Ug((h)=>{let{onOpenChange:p,isControlled:y}=f.current;if(h){if(Wt!==null&&Wt!==d.current&&Zr)Zr();Wt=d.current,Zr=()=>{let{onOpenChange:C,isControlled:R}=f.current;if(!R)s(!1);C?.(!1)}}else if(Wt===d.current)Wt=null,Zr=null;if(!y)s(h);p?.(h)},[]);return $g(()=>{return()=>{if(Wt===d.current)Wt=null,Zr=null}},[]),de(W.Root,{open:m,onOpenChange:u,...a,children:e},void 0,!1,void 0,this)};Vl.displayName="DropdownMenu";var qg=W.Trigger,Jg=W.Group,Qg=W.Portal,Eg=W.Sub,jg=W.RadioGroup,Dl=Rt(({className:e,inset:t,children:r,...o},a)=>{let n=zr($t),s=c(n);return de(W.SubTrigger,{ref:a,className:i(la({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,de(_g,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Dl.displayName=W.SubTrigger.displayName;var Fl=Rt(({className:e,...t},r)=>de(W.Portal,{children:de(W.SubContent,{ref:r,className:i(sa(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Fl.displayName=W.SubContent.displayName;var Ol=Rt(({className:e,sideOffset:t=4,size:r,...o},a)=>{let n=c(r)??Z.md;return de($t.Provider,{value:n,children:de(W.Portal,{children:de(W.Content,{ref:a,sideOffset:t,className:i(sa(),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ol.displayName=W.Content.displayName;var Bl=Rt(({className:e,inset:t,variant:r,...o},a)=>{let n=zr($t),s=c(n);return de(W.Item,{ref:a,className:i(la({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});Bl.displayName=W.Item.displayName;var _l=Rt(({className:e,children:t,checked:r,...o},a)=>{let n=zr($t),s=c(n)??Z.md;return de(W.CheckboxItem,{ref:a,className:i(Ml({size:s}),e),checked:r,...o,children:[de("span",{className:Il[s],children:de(W.ItemIndicator,{children:de(Bg,{className:Xg[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=W.CheckboxItem.displayName;var Gl=Rt(({className:e,children:t,...r},o)=>{let a=zr($t),n=c(a)??Z.md;return de(W.RadioItem,{ref:o,className:i(Ll({size:n}),e),...r,children:[de("span",{className:Il[n],children:de(W.ItemIndicator,{children:de(Gg,{className:Zg[n]},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=W.RadioItem.displayName;var Wl=Rt(({className:e,inset:t,...r},o)=>{let a=zr($t),n=c(a);return de(W.Label,{ref:o,className:i(Hl({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Wl.displayName=W.Label.displayName;var Ul=Rt(({className:e,...t},r)=>de(W.Separator,{ref:r,className:i(kl(),e),...t},void 0,!1,void 0,this));Ul.displayName=W.Separator.displayName;var $l=({className:e,...t})=>{let r=zr($t),o=c(r);return de("span",{className:i(Al({size:o}),e),...t},void 0,!1,void 0,this)};$l.displayName="DropdownMenuShortcut";import{cva as Jr}from"class-variance-authority";import{forwardRef as ey}from"react";import{jsxDEV as qr}from"react/jsx-dev-runtime";var Pe={sm:"sm",md:"md",lg:"lg"},Kl=Jr("flex flex-col items-center justify-center text-center rounded-[var(--radius)] border border-dashed border-border/50 bg-muted/20",{variants:{size:{[Pe.sm]:"gap-2 p-4",[Pe.md]:"gap-4 p-8",[Pe.lg]:"gap-6 p-12"}},defaultVariants:{size:Pe.md}}),Yl=Jr("flex items-center justify-center rounded-full bg-muted/50 text-muted-foreground",{variants:{size:{[Pe.sm]:"h-10 w-10 [&>svg]:h-4 [&>svg]:w-4",[Pe.md]:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",[Pe.lg]:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"}},defaultVariants:{size:Pe.md}}),Xl=Jr("font-semibold text-foreground",{variants:{size:{[Pe.sm]:"text-sm",[Pe.md]:"text-lg",[Pe.lg]:"text-xl"}},defaultVariants:{size:Pe.md}}),Zl=Jr("text-muted-foreground max-w-sm",{variants:{size:{[Pe.sm]:"text-xs",[Pe.md]:"text-sm",[Pe.lg]:"text-base"}},defaultVariants:{size:Pe.md}}),ql=Jr("flex items-center gap-2 mt-2"),Jl=ey(({className:e,icon:t,title:r,description:o,actions:a,size:n=Pe.md,children:s,...l},m)=>{let d=c(n);return qr("div",{ref:m,className:i(Kl({size:d}),e),...l,children:[t&&qr("div",{className:Yl({size:d}),children:t},void 0,!1,void 0,this),r&&qr("h3",{className:Xl({size:d}),children:r},void 0,!1,void 0,this),o&&qr("p",{className:Zl({size:d}),children:o},void 0,!1,void 0,this),a&&qr("div",{className:ql(),children:a},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});Jl.displayName="EmptyState";import{cva as Sr}from"class-variance-authority";import{Component as ty,createElement as Ql}from"react";import{jsxDEV as Re,Fragment as oy}from"react/jsx-dev-runtime";var El=Sr(["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"}}),jl=Sr(["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"}}),em=Sr("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"}}),tm=Sr("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"}}),rm=Sr("mt-2 flex flex-wrap items-center justify-center gap-2"),om=Sr("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 im extends ty{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:a="destructive",className:n,title:s="Something went wrong",description:l="An unexpected error occurred. Please try again.",icon:m,actions:d,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 Ql(t,p);return t}let y=null;if(d)y=typeof d==="function"?Ql(d,p):d;else if(!u){let R={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=Re("button",{type:"button",onClick:this.handleReset,className:i("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",R[a]),children:f},void 0,!1,void 0,this)}let C=h?h(this.state.error):Re(oy,{children:[Re("strong",{children:"Error:"},void 0,!1,void 0,this)," ",this.state.error.message,this.state.error.stack&&Re("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 Re("div",{className:i(El({size:o,variant:a}),n),children:[Re("div",{className:i(jl({size:o,variant:a})),children:m??Re(ry,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Re("h3",{className:i(em({size:o,variant:a})),children:s},void 0,!1,void 0,this),Re("p",{className:i(tm({size:o})),children:l},void 0,!1,void 0,this),y&&Re("div",{className:i(rm()),children:y},void 0,!1,void 0,this),r&&Re("div",{className:i(om()),children:C},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function ry(){return Re("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:[Re("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,void 0,this),Re("line",{x1:"12",x2:"12",y1:"8",y2:"12"},void 0,!1,void 0,this),Re("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 Mt}from"class-variance-authority";import{forwardRef as iy,useCallback as Je,useRef as ay,useState as am}from"react";import{jsxDEV as Ce}from"react/jsx-dev-runtime";var oe={sm:"sm",md:"md",lg:"lg",xl:"xl"},nm=Mt(["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:{[oe.sm]:"min-h-28 p-5",[oe.md]:"min-h-36 p-8",[oe.lg]:"min-h-44 p-10",[oe.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:oe.md,isDragging:!1,disabled:!1,hasError:!1}}),sm=Mt("text-muted-foreground transition-colors duration-200",{variants:{size:{[oe.sm]:"mb-2 size-6",[oe.md]:"size-8 mb-3",[oe.lg]:"size-10 mb-4",[oe.xl]:"size-12 mb-5"},isDragging:{true:"text-primary",false:""}},defaultVariants:{size:oe.md,isDragging:!1}}),ma=Mt("text-center",{variants:{size:{[oe.sm]:"text-sm",[oe.md]:"text-sm",[oe.lg]:"text-base",[oe.xl]:"text-lg"}},defaultVariants:{size:oe.md}}),lm=Mt("mt-4 w-full space-y-2"),mm=Mt(["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"]),dm=Mt("min-w-0 flex-1 truncate font-medium text-foreground",{variants:{size:{[oe.sm]:"text-sm",[oe.md]:"text-sm",[oe.lg]:"text-base",[oe.xl]:"text-base"}},defaultVariants:{size:"md"}}),pm=Mt("text-muted-foreground",{variants:{size:{[oe.sm]:"text-xs",[oe.md]:"text-sm",[oe.lg]:"text-sm",[oe.xl]:"text-base"}},defaultVariants:{size:"md"}}),cm=Mt(["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"]),um=iy(({className:e,size:t="md",disabled:r=!1,accept:o,multiple:a=!1,maxSize:n,maxFiles:s,value:l=[],onChange:m,onError:d,icon:f,title:u="Drop files here or click to upload",description:h,showFileList:p=!0,...y},C)=>{let R=c(t),[w,T]=am(!1),[b,x]=am(!1),A=ay(null),S=Je((M)=>{if(M===0)return"0 Bytes";let Y=1024,g=["Bytes","KB","MB","GB"],v=Math.floor(Math.log(M)/Math.log(Y));return`${parseFloat((M/Y**v).toFixed(2))} ${g[v]}`},[]),k=Je((M)=>{let Y=[...M];if(x(!1),o){let g=o.split(",").map((v)=>v.trim());if(Y=Y.filter((v)=>{return g.some((L)=>{if(L.startsWith("."))return v.name.toLowerCase().endsWith(L.toLowerCase());if(L.endsWith("/*"))return v.type.startsWith(L.slice(0,-1));return v.type===L})}),Y.length<M.length)d?.("Some files were rejected due to file type"),x(!0)}if(n){let g=Y.length;if(Y=Y.filter((v)=>v.size<=n),Y.length<g)d?.(`File size must be less than ${S(n)}`),x(!0)}if(s&&Y.length+l.length>s)Y=Y.slice(0,s-l.length),d?.(`Maximum ${s} files allowed`),x(!0);return Y},[o,n,s,l.length,d,S]),z=Je((M)=>{if(!M||M.length===0)return;let Y=Array.from(M),g=k(Y);if(g.length>0)if(a)m?.([...l,...g]);else m?.(g.slice(0,1))},[a,l,m,k]),V=Je((M)=>{M.preventDefault(),M.stopPropagation(),T(!0)},[]),K=Je((M)=>{M.preventDefault(),M.stopPropagation(),T(!1)},[]),O=Je((M)=>{M.preventDefault(),M.stopPropagation()},[]),$=Je((M)=>{if(M.preventDefault(),M.stopPropagation(),T(!1),r)return;z(M.dataTransfer.files)},[r,z]),N=Je((M)=>{if(z(M.target.files),A.current)A.current.value=""},[z]),I=Je(()=>{if(!r)A.current?.click()},[r]),P=Je((M)=>{if(M.key==="Enter"||M.key===" ")M.preventDefault(),I()},[I]),D=Je((M)=>{let Y=l.filter((g,v)=>v!==M);m?.(Y)},[l,m]),E=Ce("svg",{className:i(sm({size:R,isDragging:w})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ce("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 Ce("div",{ref:C,className:i("w-full",e),...y,children:[Ce("div",{role:"button",tabIndex:r?-1:0,onClick:I,onKeyDown:P,onDragEnter:V,onDragLeave:K,onDragOver:O,onDrop:$,className:i(nm({size:R,isDragging:w,disabled:r,hasError:b})),children:[Ce("input",{ref:A,type:"file",accept:o,multiple:a,disabled:r,onChange:N,className:"sr-only"},void 0,!1,void 0,this),f||E,Ce("p",{className:i(ma({size:R}),"font-medium text-foreground"),children:u},void 0,!1,void 0,this),h&&Ce("p",{className:i(ma({size:R}),"mt-1 text-muted-foreground"),children:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&l.length>0&&Ce("div",{className:i(lm()),children:l.map((M,Y)=>Ce("div",{className:i(mm()),children:[Ce("svg",{className:"size-5 shrink-0 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ce("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),Ce("span",{className:i(dm({size:R})),children:M.name},void 0,!1,void 0,this),Ce("span",{className:i(pm({size:R})),children:S(M.size)},void 0,!1,void 0,this),Ce("button",{type:"button",onClick:(g)=>{g.stopPropagation(),D(Y)},className:i(cm()),"aria-label":`Remove ${M.name}`,children:Ce("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ce("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)]},`${M.name}-${Y}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});um.displayName="FileUpload";import{cva as ny}from"class-variance-authority";import{createContext as sy,forwardRef as Wo,useContext as ly,useId as my}from"react";import{jsxDEV as Kt,Fragment as py}from"react/jsx-dev-runtime";var _e={sm:"sm",md:"md",lg:"lg"},fm=sy(null),Qr=()=>{let e=ly(fm);if(!e)throw Error("useFormField must be used within a FormField");return e},gm=ny("flex flex-col",{variants:{size:{[_e.sm]:"gap-1",[_e.md]:"gap-1.5",[_e.lg]:"gap-2"}},defaultVariants:{size:_e.md}}),ym=Wo(({className:e,size:t=_e.md,error:r,disabled:o=!1,required:a=!1,children:n,...s},l)=>{let m=my(),d=c(t),f={id:m,size:d,error:r,disabled:o,required:a};return Kt(fm.Provider,{value:f,children:Kt("div",{ref:l,className:i(gm({size:d}),e),...s,children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ym.displayName="FormField";var dy={[_e.sm]:"text-xs",[_e.md]:"text-sm",[_e.lg]:"text-base"},vm=Wo(({className:e,htmlFor:t,children:r,...o},a)=>{let{id:n,size:s,disabled:l,required:m}=Qr();return Kt("label",{ref:a,htmlFor:t??n,className:i("inline-block font-medium text-foreground select-none",dy[s],l&&"cursor-not-allowed opacity-60",e),...o,children:[r,m&&Kt("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="FormFieldLabel";var bm={[_e.sm]:"text-[10px]",[_e.md]:"text-xs",[_e.lg]:"text-sm"},Tm=Wo(({className:e,...t},r)=>{let{id:o,size:a}=Qr();return Kt("p",{ref:r,id:`${o}-description`,className:i("text-muted-foreground",bm[a],e),...t},void 0,!1,void 0,this)});Tm.displayName="FormFieldDescription";var hm=Wo(({className:e,children:t,...r},o)=>{let{id:a,size:n,error:s}=Qr(),l=t??s;if(!l)return null;return Kt("p",{ref:o,id:`${a}-error`,role:"alert",className:i("text-destructive",bm[n],e),...r,children:l},void 0,!1,void 0,this)});hm.displayName="FormFieldError";var Pm=({children:e})=>{let{id:t,disabled:r,required:o,error:a}=Qr(),n=[a?`${t}-error`:void 0,`${t}-description`].filter(Boolean).join(" ");return Kt(py,{children:e({id:t,disabled:r,required:o,status:a?"error":"default","aria-describedby":n||void 0,"aria-invalid":a?!0:void 0})},void 0,!1,void 0,this)};Pm.displayName="FormFieldControl";import*as Yt from"@radix-ui/react-hover-card";import{cva as cy}from"class-variance-authority";import{forwardRef as uy}from"react";import{jsxDEV as yy}from"react/jsx-dev-runtime";var Nr={sm:"sm",md:"md",lg:"lg"},xm=cy("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:{[Nr.sm]:"w-52 p-3 text-xs",[Nr.md]:"w-64 p-4 text-sm",[Nr.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:Nr.md}}),fy=Yt.Root,gy=Yt.Trigger,Cm=uy(({className:e,align:t="center",sideOffset:r=4,size:o=Nr.md,...a},n)=>{let s=c(o);return yy(Yt.Content,{ref:n,align:t,sideOffset:r,className:i(xm({size:s}),e),...a},void 0,!1,void 0,this)});Cm.displayName=Yt.Content.displayName;import{cva as vy}from"class-variance-authority";import{X as by}from"lucide-react";import{forwardRef as Ty,useRef as hy,useState as Py}from"react";import{jsxDEV as Xt}from"react/jsx-dev-runtime";var Er={default:"default",error:"error",success:"success"},Q={sm:"sm",md:"md",lg:"lg",xl:"xl"},xy="Clear input",Sm=vy("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:{[Er.default]:"focus-visible:ring-primary",[Er.error]:"border-destructive focus-visible:ring-destructive",[Er.success]:"border-success focus-visible:ring-success"},size:{[Q.sm]:"h-8 px-2 text-xs",[Q.md]:"h-10 px-3",[Q.lg]:"h-11 px-4",[Q.xl]:"h-12 px-4 text-base"}},defaultVariants:{status:Er.default,size:Q.md}}),Cy={[Q.sm]:"pl-7",[Q.md]:"pl-9",[Q.lg]:"pl-10",[Q.xl]:"pl-10"},zy={[Q.sm]:"pr-7",[Q.md]:"pr-9",[Q.lg]:"pr-10",[Q.xl]:"pr-10"},Sy={[Q.sm]:"pr-12",[Q.md]:"pr-16",[Q.lg]:"pr-18",[Q.xl]:"pr-18"},Ny={[Q.sm]:"text-xs left-2",[Q.md]:"text-sm left-3",[Q.lg]:"text-sm left-3.5",[Q.xl]:"text-base left-3.5"},wy={[Q.sm]:"text-xs",[Q.md]:"text-sm",[Q.lg]:"text-sm",[Q.xl]:"text-base"},Ry={[Q.sm]:"size-4",[Q.md]:"size-5",[Q.lg]:"size-5",[Q.xl]:"size-6"};function zm(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var Nm=Ty(({className:e,status:t=Er.default,size:r=Q.md,fullWidth:o=!1,prefix:a,suffix:n,clearable:s=!1,clearAriaLabel:l=xy,onClear:m,onValueChange:d,disabled:f,readOnly:u,onChange:h,value:p,defaultValue:y,...C},R)=>{let w=Boolean(a),T=Boolean(n),b=c(r),x=hy(null),A=jr(R,x),[S,k]=Py(()=>zm(y)),z=p!==void 0,V=z?zm(p):S,K=s&&!f&&!u&&V.length>0,O=T||K,$=T&&K,N=(P)=>{let D=P.target.value;if(!z)k(D);d?.(D),h?.(P)},I=()=>{if(!z)k("");d?.("");let P=x.current;if(P)P.value="",P.dispatchEvent(new Event("input",{bubbles:!0})),P.focus();m?.()};return Xt("div",{className:i("relative flex items-center",o&&"w-full"),children:[w&&Xt("span",{className:i("absolute inset-y-0 flex items-center text-muted-foreground",Ny[b]),children:a},void 0,!1,void 0,this),Xt("input",{ref:A,className:i(Sm({status:t,size:b}),w&&Cy[b],$&&Sy[b],!$&&O&&zy[b],e),disabled:f,readOnly:u,onChange:N,value:V,...C},void 0,!1,void 0,this),O&&Xt("span",{className:i("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",wy[b]),children:[T&&Xt("span",{className:"inline-flex items-center",children:n},void 0,!1,void 0,this),K&&Xt("button",{type:"button","aria-label":l,onMouseDown:(P)=>P.preventDefault(),onClick:I,className:i("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",Ry[b]),children:Xt(by,{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)});Nm.displayName="Input";import{cva as My}from"class-variance-authority";import{forwardRef as Ly}from"react";function eo(){return da()}import{jsxDEV as Hy}from"react/jsx-dev-runtime";var wr={sm:"sm",md:"md",lg:"lg"},wm=My("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:{[wr.sm]:"min-w-5 h-5 px-1 text-[10px]",[wr.md]:"min-w-6 h-6 px-1.5 text-xs",[wr.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:wr.md}}),Rm=Ly(({className:e,size:t=wr.md,keys:r,children:o,...a},n)=>{let s=c(t),{isMac:l}=eo(),m=r?to(r,l):o;return Hy("kbd",{ref:n,className:i(wm({size:s}),e),...a,children:m},void 0,!1,void 0,this)});Rm.displayName="Kbd";import{cva as ky}from"class-variance-authority";import{forwardRef as Ay}from"react";import{jsxDEV as Mm}from"react/jsx-dev-runtime";var Rr={sm:"sm",md:"md",lg:"lg"},Lm=ky("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-60",{variants:{size:{[Rr.sm]:"text-xs",[Rr.md]:"text-sm",[Rr.lg]:"text-base"}},defaultVariants:{size:Rr.md}}),Hm=Ay(({className:e,size:t=Rr.md,required:r=!1,disabled:o=!1,children:a,...n},s)=>{let l=c(t);return Mm("label",{ref:s,className:i(Lm({size:l}),o&&"cursor-not-allowed opacity-60",e),"aria-disabled":o||void 0,...n,children:[a,r&&Mm("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Hm.displayName="Label";var Iy=dr;import*as Lt from"@radix-ui/react-popover";import{cva as Gy}from"class-variance-authority";import{Check as Wy,ChevronDown as Uy,X as $y}from"lucide-react";import{forwardRef as Ky,useCallback as ro,useEffect as Yy,useRef as Xy,useState as Im}from"react";import*as Ge from"@radix-ui/react-popover";import{cva as Vy}from"class-variance-authority";import{forwardRef as Dy}from"react";import{jsxDEV as km}from"react/jsx-dev-runtime";var Mr={sm:"sm",md:"md",lg:"lg"},Lr=Vy("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:{[Mr.sm]:"w-56 p-3 text-sm",[Mr.md]:"w-72 p-4 text-sm",[Mr.lg]:"w-96 p-5 text-sm"}},defaultVariants:{size:Mr.md}}),Fy=Ge.Root,Oy=Ge.Trigger,By=Ge.Anchor,_y=Ge.Close,Am=Dy(({className:e,align:t="center",sideOffset:r=4,portal:o=!0,portalContainer:a,size:n=Mr.md,...s},l)=>{let m=c(n),d=km(Ge.Content,{ref:l,align:t,sideOffset:r,className:i(Lr({size:m}),e),...s},void 0,!1,void 0,this);if(o)return km(Ge.Portal,{container:a??void 0,children:d},void 0,!1,void 0,this);return d});Am.displayName="PopoverContent";import{jsxDEV as pe,Fragment as Jy}from"react/jsx-dev-runtime";var fe={sm:"sm",md:"md",lg:"lg",xl:"xl"},Vm=Gy(["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:{[fe.sm]:"min-h-8 px-2.5 py-1 text-xs",[fe.md]:"min-h-10 px-3.5 py-1.5",[fe.lg]:"min-h-11 px-4.5 py-2 text-sm",[fe.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:fe.md,status:"default"}}),Zy={[fe.sm]:"sm",[fe.md]:"md",[fe.lg]:"lg",[fe.xl]:"lg"},qy={[fe.sm]:"min-h-7.5 py-1.5 px-2.5 text-xs",[fe.md]:"min-h-9 py-2 px-3 text-sm",[fe.lg]:"min-h-10 py-2.5 px-3.5 text-sm",[fe.xl]:"min-h-11 py-3 px-4 text-base"},Uo={[fe.sm]:"size-3.5",[fe.md]:"size-4",[fe.lg]:"size-4",[fe.xl]:"size-4.5"},Dm=Ky(({className:e,options:t,value:r,defaultValue:o=[],onValueChange:a,placeholder:n="Select options...",size:s=fe.md,status:l="default",clearable:m=!1,maxDisplayItems:d=3,disabled:f,...u},h)=>{let p=c(s)??s,[y,C]=Im(!1),[R,w]=Im(o),T=Xy(null),b=r!==void 0,x=b?r:R,A=ro((N)=>{let I=x.includes(N)?x.filter((P)=>P!==N):[...x,N];if(!b)w(I);a?.(I)},[x,b,a]),S=ro((N,I)=>{I.stopPropagation();let P=x.filter((D)=>D!==N);if(!b)w(P);a?.(P)},[x,b,a]),k=ro((N)=>{if(N.stopPropagation(),N.preventDefault(),!b)w([]);a?.([])},[b,a]),z=t.filter((N)=>x.includes(N.value)),V=z.length>0,K=m&&V&&!f,O=ro((N)=>{let I=T.current;if(!I)return;let P=Array.from(I.querySelectorAll('[role="option"]:not([data-disabled])'));if(P.length===0)return;let D=I.querySelector('[role="option"]:focus'),E=D?P.indexOf(D):-1,M;switch(N){case"first":M=P[0];break;case"last":M=P[P.length-1];break;case"next":M=P[E+1]??P[0];break;case"prev":M=P[E-1]??P[P.length-1];break}M?.focus()},[]),$=ro((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(),C(!1);break}},[O]);return Yy(()=>{if(y)requestAnimationFrame(()=>O("first"))},[y,O]),pe(Lt.Root,{open:y,onOpenChange:C,children:[pe(Lt.Trigger,{asChild:!0,children:pe("button",{ref:h,type:"button",disabled:f,"data-state":y?"open":"closed","data-placeholder":V?void 0:"",className:i(Vm({size:p,status:l}),e),...u,children:[pe("span",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:V?pe(Jy,{children:[z.slice(0,d).map((N)=>pe(Ho,{variant:"outline",size:Zy[s],removable:!0,onRemove:(I)=>S(N.value,I),className:"max-w-[120px] rounded-[calc(var(--radius)-4px)]",children:pe("span",{className:"truncate",children:N.label},void 0,!1,void 0,this)},N.value,!1,void 0,this)),z.length>d&&pe("span",{className:"text-muted-foreground text-xs",children:["+",z.length-d]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):pe("span",{className:"text-muted-foreground",children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this),pe("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[K&&pe("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(N)=>N.preventDefault(),onClick:k,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:pe($y,{className:Uo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),pe(Uy,{className:i(Uo[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),pe(Lt.Portal,{children:pe(Lt.Content,{ref:T,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:$,onOpenAutoFocus:(N)=>N.preventDefault(),className:i(Lr(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((N)=>{let I=x.includes(N.value);return pe("div",{role:"option",tabIndex:N.disabled?void 0:-1,"aria-selected":I,"aria-disabled":N.disabled||void 0,"data-disabled":N.disabled?"":void 0,className:i("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",qy[p]),onClick:()=>!N.disabled&&A(N.value),onKeyDown:(P)=>{if(P.key==="Enter"||P.key===" "){if(P.preventDefault(),!N.disabled)A(N.value)}},children:[pe("span",{className:i("flex shrink-0 items-center justify-center",Uo[p]),children:I&&pe(Wy,{className:Uo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),pe("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&&pe("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 ae from"@radix-ui/react-navigation-menu";import{cva as Zt}from"class-variance-authority";import{createContext as Qy,forwardRef as Hr,useContext as Ey}from"react";import{jsxDEV as Ie}from"react/jsx-dev-runtime";var Qe={sm:"sm",md:"md",lg:"lg"},Fm=Qy(Qe.md),Om=Zt("relative z-10 flex max-w-max flex-1 items-center justify-center"),Bm=Zt("group flex flex-1 list-none items-center justify-center space-x-1"),_m=Zt(["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:{[Qe.sm]:"h-8 px-3 py-1.5 text-xs",[Qe.md]:"h-10 px-4 py-2 text-sm",[Qe.lg]:"h-12 px-5 py-2.5 text-sm"}},defaultVariants:{size:Qe.md}}),Gm=Zt(["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"]),jy=Zt(["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:{[Qe.sm]:"p-2 text-xs",[Qe.md]:"p-3 text-sm",[Qe.lg]:"p-4 text-sm"}},defaultVariants:{size:Qe.md}}),Wm=Zt(["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)]"]),Um=Zt(["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"]),ev=()=>Ie("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:Ie("path",{d:"m6 9 6 6 6-6"},void 0,!1,void 0,this)},void 0,!1,void 0,this),$m=Hr(({className:e,children:t,size:r,...o},a)=>{let n=c(r??Qe.md);return Ie(Fm.Provider,{value:n,children:Ie(ae.Root,{ref:a,className:i(Om(),e),...o,children:[t,Ie(pa,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});$m.displayName=ae.Root.displayName;var Km=Hr(({className:e,...t},r)=>Ie(ae.List,{ref:r,className:i(Bm(),e),...t},void 0,!1,void 0,this));Km.displayName=ae.List.displayName;var tv=ae.Item,Ym=Hr(({className:e,children:t,...r},o)=>{let a=Ey(Fm);return Ie(ae.Trigger,{ref:o,className:i(_m({size:a}),"group",e),...r,children:[t,Ie(ev,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Ym.displayName=ae.Trigger.displayName;var Xm=Hr(({className:e,...t},r)=>Ie(ae.Content,{ref:r,className:i(Gm(),e),...t},void 0,!1,void 0,this));Xm.displayName=ae.Content.displayName;var rv=ae.Link,pa=Hr(({className:e,...t},r)=>Ie("div",{className:"absolute top-full left-0 flex justify-center",children:Ie(ae.Viewport,{className:i(Wm(),e),ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));pa.displayName=ae.Viewport.displayName;var Zm=Hr(({className:e,...t},r)=>Ie(ae.Indicator,{ref:r,className:i(Um(),e),...t,children:Ie("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));Zm.displayName=ae.Indicator.displayName;import{cva as kr}from"class-variance-authority";import{Fragment as ov,forwardRef as iv,useCallback as qt,useEffect as qm,useMemo as Jm,useRef as av,useState as Qm}from"react";import{jsxDEV as Jt}from"react/jsx-dev-runtime";var Qt={sm:"sm",md:"md",lg:"lg",xl:"xl"},io={default:"default",error:"error",success:"success"},oo={single:"single",first:"first",middle:"middle",last:"last"},Em=kr("relative inline-flex items-center",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2",xl:"gap-2.5"}},defaultVariants:{size:Qt.md}}),jm=kr("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:Qt.md,status:io.default}}),ed=kr(["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:Qt.md,filled:!1,focused:!1,status:io.default,disabled:!1,position:oo.single}}),td=kr(["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:Qt.md,status:io.default,filled:!1}}),rd=kr(["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:Qt.md,focused:!1}}),od=kr("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:Qt.md}});function nv(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function ca(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var id=iv(({className:e,length:t=6,value:r,onChange:o,onComplete:a,size:n=Qt.md,status:s=io.default,disabled:l=!1,autoFocus:m=!1,mask:d=!1,groupSize:f,separator:u,separatorChar:h="—",placeholder:p="•",inputMode:y="numeric",pattern:C="[0-9]*",...R},w)=>{let T=c(n),b=nv(t),x=av([]),[A,S]=Qm(null),[k,z]=Qm(()=>ca(r,b));qm(()=>{if(r!==void 0){z(ca(r,b));return}z((g)=>ca(g.join(""),b))},[r,b]),qm(()=>{if(m)x.current[0]?.focus()},[m]);let V=Jm(()=>{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=Jm(()=>{let g=[];for(let v=0;v<b;v+=V){let L=Math.min(v+V,b),te=[];for(let B=v;B<L;B+=1)te.push(B);g.push(te)}return g},[V,b]),O=qt((g)=>{let v=x.current[g];if(!v)return;v.focus(),v.select()},[]),$=qt((g)=>{z(g);let v=g.join("");if(o?.(v),g.every((L)=>L!=="")&&v.length===b)a?.(v)},[o,a,b]),N=qt((g,v)=>{if(l)return;let te=(y==="numeric"?v.replace(/\D/g,""):v).slice(-1),B=[...k];if(B[g]=te,$(B),te&&g<b-1)O(g+1)},[k,l,$,O,y,b]),I=qt((g,v)=>{if(l)return;if(v.key==="Backspace"){if(v.preventDefault(),k[g]){let L=[...k];L[g]="",$(L);return}if(g>0){let L=[...k];L[g-1]="",$(L),O(g-1)}return}if(v.key==="Delete"){if(v.preventDefault(),k[g]){let L=[...k];L[g]="",$(L)}return}if(v.key==="ArrowLeft"){if(v.preventDefault(),g>0)O(g-1);return}if(v.key==="ArrowRight"){if(v.preventDefault(),g<b-1)O(g+1);return}if(v.key==="Home"){v.preventDefault(),O(0);return}if(v.key==="End")v.preventDefault(),O(b-1)},[k,l,$,O,b]),P=qt((g,v)=>{if(v.preventDefault(),l)return;let L=v.clipboardData.getData("text"),B=(y==="numeric"?L.replace(/\D/g,""):L.replace(/\s/g,"")).split("");if(B.length===0)return;let Se=[...k];for(let me=0;me<B.length;me+=1){let F=g+me;if(F>=b)break;Se[F]=B[me]??""}$(Se);let j=Math.min(b-1,g+B.length-1);if(j<b-1){O(j+1);return}x.current[j]?.blur()},[k,l,$,O,y,b]),D=qt((g,v)=>{S(g),v.target.select()},[]),E=qt(()=>{S(null)},[]),M=u!==void 0,Y=h.length>0&&u!==!1&&(M||K.length>1);return Jt("div",{ref:w,className:i(Em({size:T}),e),role:"group","aria-label":"One-time password input",...R,children:K.map((g,v)=>Jt(ov,{children:[Jt("div",{"data-gs-otp-group":"true",className:i(jm({size:T,status:s})),children:g.map((L,te)=>{let B=k[L]??"",Se=A===L,j=oo.middle;if(g.length===1)j=oo.single;else if(te===0)j=oo.first;else if(te===g.length-1)j=oo.last;return Jt("div",{"data-gs-otp-slot":"true","data-disabled":l,className:i(ed({size:T,filled:Boolean(B),focused:Se,status:s,disabled:l,position:j})),children:[Jt("input",{ref:(me)=>{x.current[L]=me},type:d?"password":"text",inputMode:y,pattern:C,maxLength:1,value:B,placeholder:"",disabled:l,"aria-invalid":s===io.error,"aria-label":`Digit ${L+1} of ${b}`,autoComplete:"one-time-code",onChange:(me)=>N(L,me.target.value),onKeyDown:(me)=>I(L,me),onPaste:(me)=>P(L,me),onFocus:(me)=>D(L,me),onBlur:E,className:i(td({size:T,status:s,filled:Boolean(B)}))},void 0,!1,void 0,this),!B&&Jt("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:i(rd({size:T,focused:Se})),children:p},void 0,!1,void 0,this)]},`slot-${L}`,!0,void 0,this)})},void 0,!1,void 0,this),Y&&v<K.length-1&&Jt("span",{"data-gs-otp-separator":"true",className:i(od({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)});id.displayName="OTPInput";import{createContext as cv,useCallback as Ar,useContext as uv,useMemo as fv,useState as gv}from"react";import*as le from"@radix-ui/react-dialog";import{cva as ad}from"class-variance-authority";import{X as sv}from"lucide-react";import{forwardRef as $o}from"react";import{jsxDEV as Ee}from"react/jsx-dev-runtime";var Ve={top:"top",right:"right",bottom:"bottom",left:"left"},ie={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},lv={[Ve.top]:"gs-sheet-content gs-sheet-content-top",[Ve.right]:"gs-sheet-content gs-sheet-content-right",[Ve.bottom]:"gs-sheet-content gs-sheet-content-bottom",[Ve.left]:"gs-sheet-content gs-sheet-content-left"},mv={[Ve.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"},[Ve.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"},[Ve.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"},[Ve.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"}},nd=ad("gs-sheet-overlay fixed inset-0 z-50 bg-black/50"),sd=ad("fixed z-50 flex flex-col gap-4 border border-border bg-background p-6 shadow-[var(--shadow-xl)]",{variants:{side:{[Ve.top]:"inset-x-0 top-0 border-b",[Ve.bottom]:"inset-x-0 bottom-0 border-t",[Ve.left]:"inset-y-0 left-0 h-full w-3/4 border-r",[Ve.right]:"inset-y-0 right-0 h-full w-3/4 border-l"}},defaultVariants:{side:Ve.right}}),ua=le.Root,dv=le.Trigger,pv=le.Close,ld=le.Portal,fa=$o(({className:e,...t},r)=>Ee(le.Overlay,{className:i(nd(),e),...t,ref:r},void 0,!1,void 0,this));fa.displayName=le.Overlay.displayName;var Ko=$o(({side:e="right",size:t=ie.md,showClose:r=!0,className:o,children:a,...n},s)=>{let l=c(t)??ie.md,m=lv[e],d=mv[e][l];return Ee(ld,{children:[Ee(fa,{},void 0,!1,void 0,this),Ee(le.Content,{ref:s,className:i(sd({side:e}),m,d,o),...n,children:[a,r&&Ee(le.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:[Ee(sv,{className:"size-4"},void 0,!1,void 0,this),Ee("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)});Ko.displayName=le.Content.displayName;var md=({className:e,...t})=>Ee("div",{className:i("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);md.displayName="SheetHeader";var dd=({className:e,...t})=>Ee("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);dd.displayName="SheetFooter";var pd=$o(({className:e,...t},r)=>Ee(le.Title,{ref:r,className:i("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));pd.displayName=le.Title.displayName;var cd=$o(({className:e,...t},r)=>Ee(le.Description,{ref:r,className:i("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));cd.displayName=le.Description.displayName;import{jsxDEV as yt}from"react/jsx-dev-runtime";var ga=0;function yv(){return ga=(ga+1)%Number.MAX_SAFE_INTEGER,`overlay-${ga}-${Date.now()}`}var fd=cv(null),ud=400;function gd({children:e}){let[t,r]=gv([]),o=Ar((d)=>{r((f)=>f.map((u)=>u.id===d?{...u,open:!1}:u)),setTimeout(()=>{r((f)=>f.filter((u)=>u.id!==d))},ud)},[]),a=Ar(()=>{r((d)=>d.map((f)=>({...f,open:!1}))),setTimeout(()=>{r([])},ud)},[]),n=Ar((d,f,u,h={})=>{let p=yv(),y=(w)=>{return yt(f,{...u,close:w.close},void 0,!1,void 0,this)};y.displayName=`OverlayWrapper(${f.displayName??f.name??"Component"})`;let C={id:p,type:d,component:y,wrapperProps:h,open:!0};return r((w)=>[...w,C]),{id:p,close:()=>o(p)}},[o]),s=Ar((d,f,u)=>{return n("dialog",d,f,u)},[n]),l=Ar((d,f,u)=>{return n("sheet",d,f,u)},[n]),m=fv(()=>({dialog:s,sheet:l,close:o,closeAll:a}),[s,l,o,a]);return yt(fd.Provider,{value:m,children:[e,t.map((d)=>yt(vv,{entry:d,onClose:o},d.id,!1,void 0,this))]},void 0,!0,void 0,this)}gd.displayName="OverlayProvider";function vv({entry:e,onClose:t}){let{id:r,type:o,component:a,wrapperProps:n,open:s}=e,l=Ar(()=>t(r),[r,t]);if(o==="dialog"){let{showClose:m,size:d,...f}=n;return yt(oa,{open:s,onOpenChange:(u)=>!u&&l(),children:yt(Bo,{showClose:m,size:d,...f,children:yt(a,{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:m,showClose:d,...f}=n;return yt(ua,{open:s,onOpenChange:(u)=>!u&&l(),children:yt(Ko,{side:m,showClose:d,...f,children:yt(a,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}return null}function bv(){let e=uv(fd);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as ao}from"class-variance-authority";import{ChevronLeft as Tv,ChevronRight as hv,MoreHorizontal as Pv}from"lucide-react";import{createContext as xv,forwardRef as no,useContext as Yo}from"react";import{jsxDEV as He}from"react/jsx-dev-runtime";var We={sm:"sm",md:"md",lg:"lg"},so=xv(We.md),yd=ao("mx-auto flex w-full justify-center"),vd=ao("flex flex-row items-center gap-1"),bd=ao(""),Xo=ao("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:{[We.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[We.md]:"h-9 w-9 text-sm [&_svg]:size-4",[We.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:We.md}}),Td=ao("flex items-center justify-center",{variants:{size:{[We.sm]:"h-7 w-7 [&_svg]:size-3.5",[We.md]:"h-9 w-9 [&_svg]:size-4",[We.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:We.md}}),hd=({className:e,size:t=We.md,...r})=>{let o=c(t)??We.md;return He(so.Provider,{value:o,children:He("nav",{"aria-label":"pagination",className:i(yd(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};hd.displayName="Pagination";var Pd=no(({className:e,...t},r)=>He("ul",{ref:r,className:i(vd(),e),...t},void 0,!1,void 0,this));Pd.displayName="PaginationContent";var xd=no(({className:e,...t},r)=>He("li",{ref:r,className:i(bd(),e),...t},void 0,!1,void 0,this));xd.displayName="PaginationItem";var Cd=no(({className:e,isActive:t,...r},o)=>{let a=Yo(so);return He("button",{ref:o,type:"button","aria-current":t?"page":void 0,className:i(Xo({isActive:t,size:a}),e),...r},void 0,!1,void 0,this)});Cd.displayName="PaginationLink";var zd=no(({className:e,...t},r)=>{let o=Yo(so);return He("button",{ref:r,type:"button","aria-label":"Go to previous page",className:i(Xo({size:o}),"gap-1 pl-2.5 pr-3 w-auto",e),...t,children:[He(Tv,{},void 0,!1,void 0,this),He("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});zd.displayName="PaginationPrevious";var Sd=no(({className:e,...t},r)=>{let o=Yo(so);return He("button",{ref:r,type:"button","aria-label":"Go to next page",className:i(Xo({size:o}),"gap-1 pl-3 pr-2.5 w-auto",e),...t,children:[He("span",{children:"Next"},void 0,!1,void 0,this),He(hv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Sd.displayName="PaginationNext";var Nd=({className:e,...t})=>{let r=Yo(so);return He("span",{"aria-hidden":!0,className:i(Td({size:r}),e),...t,children:[He(Pv,{},void 0,!1,void 0,this),He("span",{className:"sr-only",children:"More pages"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Nd.displayName="PaginationEllipsis";import*as po from"@radix-ui/react-progress";import{cva as wd}from"class-variance-authority";import{forwardRef as Cv}from"react";import{jsxDEV as Zo}from"react/jsx-dev-runtime";var lo={sm:"sm",md:"md",lg:"lg",xl:"xl"},mo={default:"default",success:"success",warning:"warning",error:"error"},Rd=wd("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[lo.sm]:"h-1",[lo.md]:"h-2.5",[lo.lg]:"h-4",[lo.xl]:"h-5"}},defaultVariants:{size:lo.md}}),Md=wd("h-full w-full flex-1 rounded-full transition-transform duration-100 ease-out",{variants:{variant:{[mo.default]:"bg-primary",[mo.success]:"bg-success",[mo.warning]:"bg-warning",[mo.error]:"bg-destructive"}},defaultVariants:{variant:mo.default}}),Ld=Cv(({className:e,value:t,size:r,variant:o,showValue:a,...n},s)=>{let l=c(r);return Zo("div",{className:"flex w-full items-center gap-2",children:[Zo(po.Root,{ref:s,className:i(Rd({size:l}),e),...n,children:Zo(po.Indicator,{className:i(Md({variant:o})),style:{transform:`translateX(-${100-(t||0)}%)`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),a&&Zo("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)});Ld.displayName=po.Root.displayName;import*as Vr from"@radix-ui/react-radio-group";import{cva as Hd}from"class-variance-authority";import{forwardRef as kd}from"react";import{jsxDEV as qo}from"react/jsx-dev-runtime";var je={sm:"sm",md:"md",lg:"lg",xl:"xl"},Ir={default:"default",error:"error",success:"success"},Ad=Hd("grid gap-2"),Id=Hd("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:{[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:{[Ir.default]:"enabled:hover:border-primary/70",[Ir.error]:"border-destructive enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:text-destructive",[Ir.success]:"border-success enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:text-success"}},defaultVariants:{size:je.md,status:Ir.default}}),zv={[je.sm]:"h-2 w-2",[je.md]:"h-2.5 w-2.5",[je.lg]:"h-3 w-3",[je.xl]:"h-3.5 w-3.5"},Vd=kd(({className:e,...t},r)=>qo(Vr.Root,{ref:r,className:i(Ad(),e),...t},void 0,!1,void 0,this));Vd.displayName="RadioGroup";var Dd=kd(({className:e,size:t=je.md,status:r=Ir.default,...o},a)=>{let n=c(t);return qo(Vr.Item,{ref:a,className:i(Id({size:n,status:r}),e),...o,children:qo(Vr.Indicator,{className:"flex items-center justify-center",children:qo("span",{className:i("block rounded-full bg-current transition-transform duration-150",zv[n])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Dd.displayName="RadioGroupItem";import{cva as Eo}from"class-variance-authority";import{forwardRef as ya,useCallback as Jo,useRef as Sv,useState as Nv}from"react";import{jsxDEV as Qo}from"react/jsx-dev-runtime";var Fd=Eo("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),Od=Eo("relative overflow-hidden"),Bd=Eo("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=Eo("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"}}),Gd=ya(({className:e,direction:t="horizontal",children:r,...o},a)=>Qo("div",{ref:a,"data-panel-group":"","data-direction":t,className:i(Fd({direction:t}),e),...o,children:r},void 0,!1,void 0,this));Gd.displayName="ResizablePanelGroup";var Wd=ya(({className:e,defaultSize:t=50,children:r,style:o,...a},n)=>Qo("div",{ref:n,"data-panel":"",className:i(Od(),e),style:{...o,flexGrow:0,flexShrink:0,flexBasis:`${t}%`},...a,children:r},void 0,!1,void 0,this));Wd.displayName="ResizablePanel";var Ud=ya(({className:e,withHandle:t=!1,disabled:r=!1,...o},a)=>{let[n,s]=Nv(!1),l=Sv(null),m=Jo((p,y)=>{if(r)return;s(!0);let C=(w)=>{let T="touches"in w?w.touches[0]:null,b=T?T.clientX:w.clientX,x=T?T.clientY:w.clientY,A=l.current;if(!A)return;let S=A.closest("[data-panel-group]");if(!S)return;let k=S.dataset.direction,z=S.getBoundingClientRect(),V=Array.from(S.querySelectorAll(":scope > [data-panel]")),K=Array.from(S.children).indexOf(A),O,$;for(let N of V){let I=Array.from(S.children).indexOf(N);if(I<K)O=N;if(I>K&&!$)$=N}if(O&&$){let N=k==="horizontal"?z.width:z.height,P=(k==="horizontal"?b-z.left:x-z.top)/N*100,D=Math.max(10,Math.min(90,P)),E=100-D;O.style.flexBasis=`${D}%`,$.style.flexBasis=`${E}%`}},R=()=>{s(!1),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",R),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",R)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",R),document.addEventListener("touchmove",C),document.addEventListener("touchend",R)},[r]),d=Jo((p)=>{p.preventDefault(),m(p.clientX,p.clientY)},[m]),f=Jo((p)=>{let y=p.touches[0];if(y)m(y.clientX,y.clientY)},[m]),u=Jo((p)=>{if(r)return;let y=l.current??p.currentTarget,C=y.closest("[data-panel-group]");if(!C)return;let R=C.dataset.direction,w=p.shiftKey?10:1,T=Array.from(C.querySelectorAll(":scope > [data-panel]")),b=Array.from(C.children).indexOf(y),x,A;for(let z of T){let V=Array.from(C.children).indexOf(z);if(V<b)x=z;if(V>b&&!A)A=z}if(!(x&&A))return;let S=Number.parseFloat(x.style.flexBasis)||50,k=0;if(R==="horizontal"){if(p.key==="ArrowLeft")k=-w;if(p.key==="ArrowRight")k=w}else{if(p.key==="ArrowUp")k=-w;if(p.key==="ArrowDown")k=w}if(k!==0){p.preventDefault();let z=Math.max(10,Math.min(90,S+k));x.style.flexBasis=`${z}%`,A.style.flexBasis=`${100-z}%`}},[r]),h="horizontal";return Qo("div",{ref:(p)=>{if(l.current=p,typeof a==="function")a(p);else if(a)a.current=p},role:"separator","aria-orientation":"horizontal",tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":n,onMouseDown:d,onTouchStart:f,onKeyDown:u,className:i(Bd({direction:"horizontal",withHandle:t}),n&&"bg-primary",r&&"pointer-events-none opacity-50",e),...o,children:t&&Qo("div",{className:i(_d({direction:"horizontal"}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ud.displayName="ResizableHandle";import*as at from"@radix-ui/react-scroll-area";import{cva as va}from"class-variance-authority";import{forwardRef as $d}from"react";import{jsxDEV as Dr}from"react/jsx-dev-runtime";var Kd=va("relative overflow-hidden"),wv={display:"flex",flexDirection:"column"},Rv={flex:"1 1 0%",minHeight:0},Yd=va("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"}}),Xd=va("relative flex-1 rounded-full bg-border"),Zd=$d(({className:e,children:t,style:r,...o},a)=>Dr(at.Root,{ref:a,className:i(Kd(),e),style:{...r,...wv},...o,children:[Dr(at.Viewport,{className:"w-full rounded-[inherit]",style:Rv,children:t},void 0,!1,void 0,this),Dr(ba,{},void 0,!1,void 0,this),Dr(at.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));Zd.displayName="ScrollArea";var ba=$d(({className:e,orientation:t="vertical",...r},o)=>Dr(at.ScrollAreaScrollbar,{ref:o,orientation:t,className:i(Yd({orientation:t}),e),...r,children:Dr(at.ScrollAreaThumb,{className:i(Xd())},void 0,!1,void 0,this)},void 0,!1,void 0,this));ba.displayName="ScrollBar";import{cva as ha}from"class-variance-authority";import{createContext as Mv,forwardRef as Pa,useCallback as qd,useContext as Ed,useEffect as Ta,useLayoutEffect as Lv,useRef as Jd,useState as Qd}from"react";import{jsxDEV as Et}from"react/jsx-dev-runtime";var ge={sm:"sm",md:"md",lg:"lg"},jd=ha("relative inline-flex items-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[ge.sm]:"h-8 gap-0.5",[ge.md]:"h-10 gap-0.5",[ge.lg]:"h-11 gap-1"}},defaultVariants:{size:ge.md}}),ep=ha(["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:{[ge.sm]:"size-6",[ge.md]:"size-8",[ge.lg]:"size-9"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:ge.md,active:!1}}),tp=ha(["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:{[ge.sm]:"h-6 px-2.5 text-xs",[ge.md]:"h-8 px-3 text-sm",[ge.lg]:"h-9 px-4 text-sm"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:ge.md,active:!1}}),rp={[ge.sm]:"size-3",[ge.md]:"size-3.5",[ge.lg]:"size-4"},xa=Mv({activeValue:"",onSelect:()=>{},size:ge.md,disabled:!1}),Hv=typeof window<"u"?Lv:Ta,op=Pa(({className:e,value:t,defaultValue:r,onValueChange:o,size:a,disabled:n=!1,children:s,...l},m)=>{let d=c(a),f=Jd(null),[u,h]=Qd(r??""),[p,y]=Qd(null),C=Jd(!0),R=t!==void 0?t:u,w=qd((b)=>{if(n)return;if(t===void 0)h(b);o?.(b)},[n,t,o]),T=qd(()=>{let b=f.current;if(!b)return;let x=b.querySelector('[data-state="active"]');if(!x){y(null);return}let A=b.getBoundingClientRect(),S=x.getBoundingClientRect();y({left:S.left-A.left,width:S.width})},[]);return Hv(()=>{T()},[T,R]),Ta(()=>{if(C.current)requestAnimationFrame(()=>{C.current=!1})},[]),Ta(()=>{let b=f.current;if(!b)return;let x=new MutationObserver(()=>{T()});return x.observe(b,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>x.disconnect()},[T]),Et(xa.Provider,{value:{activeValue:R,onSelect:w,size:d,disabled:n},children:Et("div",{ref:(b)=>{if(f.current=b,typeof m==="function")m(b);else if(m)m.current=b},role:"radiogroup",className:i(jd({size:d}),n&&"opacity-50 pointer-events-none",e),...l,children:[p&&Et("span",{"aria-hidden":"true",className:i("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!C.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)});op.displayName="SegmentedControl";var ip=Pa(({className:e,value:t,icon:r,disabled:o=!1,...a},n)=>{let{activeValue:s,onSelect:l,size:m,disabled:d}=Ed(xa),f=s===t,u=o||d;return Et("button",{ref:n,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:i(ep({size:m,active:f}),e),...a,children:Et("span",{className:i(rp[m??ge.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ip.displayName="SegmentedControlItem";var ap=Pa(({className:e,value:t,icon:r,disabled:o=!1,children:a,...n},s)=>{let{activeValue:l,onSelect:m,size:d,disabled:f}=Ed(xa),u=l===t,h=o||f;return Et("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:()=>m(t),className:i(tp({size:d,active:u}),e),...n,children:[r&&Et("span",{className:i(rp[d??ge.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this),a]},void 0,!0,void 0,this)});ap.displayName="SegmentedControlLabelItem";import*as Ht from"@radix-ui/react-popover";import{cva as sp}from"class-variance-authority";import{Check as kv,ChevronDown as Av,X as Iv}from"lucide-react";import{Children as Vv,createContext as Dv,forwardRef as fo,isValidElement as Fv,useCallback as jo,useContext as lp,useEffect as ei,useId as np,useMemo as Ov,useRef as mp,useState as co}from"react";import{jsxDEV as ne,Fragment as Kv}from"react/jsx-dev-runtime";var re={sm:"sm",md:"md",lg:"lg",xl:"xl"},Fr={default:"default",error:"error",success:"success"},uo={trigger:"trigger",auto:"auto"},Bv={start:"start",center:"center",end:"end"},dp=sp(["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:{[re.sm]:"h-8 px-2.5 text-xs",[re.md]:"h-10 px-3.5",[re.lg]:"h-11 px-4.5 text-sm",[re.xl]:"h-12 px-4 text-base"},status:{[Fr.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[Fr.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[Fr.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:re.md,status:Fr.default}}),pp=sp(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[uo.trigger]:"w-[var(--radix-popover-trigger-width)]",[uo.auto]:"w-max min-w-0"},size:{[re.sm]:"text-xs",[re.md]:"text-sm",[re.lg]:"text-sm",[re.xl]:"text-base"}},defaultVariants:{widthMode:uo.auto,size:re.md}}),_v={[re.sm]:"min-h-7.5 py-1.5 px-2.5 pr-3 text-xs",[re.md]:"min-h-9 py-2 px-3 pr-4.5 text-sm",[re.lg]:"min-h-10 py-2.5 px-3.5 pr-5.5 text-sm",[re.xl]:"min-h-11 py-3 px-4 pr-6 text-base"},Gv={[re.sm]:"px-2 py-1 text-xs",[re.md]:"px-2 py-1.5 text-sm",[re.lg]:"px-2.5 py-1.5 text-sm",[re.xl]:"px-3 py-2 text-base"},ti={[re.sm]:"size-3.5",[re.md]:"size-4",[re.lg]:"size-4",[re.xl]:"size-4.5"};function Ca(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)=>Ca(t)).join("");if(Fv(e))return Ca(e.props.children);return""}var za=Dv(null);function ri(){let e=lp(za);if(!e)throw Error("Select components must be used within Select");return e}function Sa(e){let t=lp(za);if(e)return e;return t?.triggerSize??re.md}var Wv=({children:e,value:t,defaultValue:r="",onValueChange:o,open:a,defaultOpen:n=!1,onOpenChange:s,disabled:l=!1})=>{let[m,d]=co(re.md),[f,u]=co(!1),[h,p]=co(r),[y,C]=co(n),[R,w]=co(0),T=mp(new Map),b=t!==void 0,x=a!==void 0,A=b?t:h,S=x?a:y,k=jo((I)=>{if(!b)p(I);if(o?.(I),!x)C(!1);s?.(!1)},[b,x,o,s]),z=jo((I)=>{if(l)return;if(!x)C(I);s?.(I)},[l,x,s]),V=jo((I,P)=>{if(T.current.get(I)!==P)T.current.set(I,P),w((E)=>E+1)},[]),K=jo((I)=>{return T.current.get(I)},[]),O=np(),$=np(),N=Ov(()=>({value:A,onValueChange:k,open:S,onOpenChange:z,triggerSize:m,setTriggerSize:d,triggerFullWidth:f,setTriggerFullWidth:u,disabled:l,triggerId:O,contentId:$,registerItem:V,getLabel:K}),[A,k,S,z,m,f,l,O,$,V,K,R]);return ne(za.Provider,{value:N,children:ne(Ht.Root,{open:S,onOpenChange:z,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},Uv=({children:e,className:t})=>ne("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),$v=({placeholder:e})=>{let{value:t,getLabel:r}=ri();if(!t)return e?ne("span",{className:"text-muted-foreground",children:e},void 0,!1,void 0,this):null;let o=r(t);return ne(Kv,{children:o??t},void 0,!1,void 0,this)},cp=fo(({className:e,children:t,size:r=re.md,status:o=Fr.default,fullWidth:a=!1,clearable:n=!1,leadingIcon:s,indicatorIcon:l,renderValue:m,placeholder:d,onKeyDown:f,...u},h)=>{let p=ri(),y=c(r)??r,C=p.setTriggerSize,R=p.setTriggerFullWidth;ei(()=>{C(y)},[y,C]),ei(()=>{R(a)},[a,R]);let w=p.value.length>0,T=n&&w&&!p.disabled,b=(S)=>{S.stopPropagation(),S.preventDefault(),p.onValueChange("")},x;if(m)x=w?m(p.value):d?ne("span",{className:"text-muted-foreground",children:d},void 0,!1,void 0,this):null;else x=t;let A=(S)=>{if(f?.(S),S.defaultPrevented)return;if(S.key==="ArrowDown"||S.key==="ArrowUp"||S.key==="Enter"||S.key===" "){if(!p.open)S.preventDefault(),p.onOpenChange(!0)}};return ne(Ht.Trigger,{asChild:!0,children:ne("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:i(dp({size:y,status:o}),a?"w-full":"w-auto",e),onKeyDown:A,...u,children:[s&&ne("i",{className:"inline-flex shrink-0 items-center text-muted-foreground not-italic",children:s},void 0,!1,void 0,this),ne("span",{"data-slot":"select-value",className:"min-w-0 flex-1 text-left",children:x},void 0,!1,void 0,this),ne("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[T&&ne("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onMouseDown:(S)=>S.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:ne(Iv,{className:ti[y]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??ne(Av,{className:i(ti[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)});cp.displayName="SelectTrigger";var up=fo(({className:e,children:t,widthMode:r,size:o,align:a="start",side:n="bottom",sideOffset:s=4,portal:l=!0,forceMount:m=!0,onKeyDown:d,...f},u)=>{let h=ri(),p=Sa(o),y=r??uo.auto,C=mp(null),R=jr(u,C),w=(x)=>{let A=C.current;if(!A)return;let S=Array.from(A.querySelectorAll('[role="option"]:not([data-disabled])'));if(S.length===0)return;let k=A.querySelector('[role="option"]:focus'),z=k?S.indexOf(k):-1,V;switch(x){case"first":V=S[0];break;case"last":V=S[S.length-1];break;case"next":V=S[z+1]??S[0];break;case"prev":V=S[z-1]??S[S.length-1];break}V?.focus()},T=(x)=>{if(d?.(x),x.defaultPrevented)return;switch(x.key){case"ArrowDown":x.preventDefault(),w("next");break;case"ArrowUp":x.preventDefault(),w("prev");break;case"Home":x.preventDefault(),w("first");break;case"End":x.preventDefault(),w("last");break;case"Escape":x.preventDefault(),h.onOpenChange(!1);break}};ei(()=>{if(h.open)requestAnimationFrame(()=>w("first"))},[h.open]);let b=ne(Ht.Content,{ref:R,id:h.contentId,role:"listbox","aria-labelledby":h.triggerId,side:n,align:a,sideOffset:s,forceMount:m,onKeyDown:T,onOpenAutoFocus:(x)=>x.preventDefault(),className:i(Lr(),pp({widthMode:y,size:p}),"p-1",e),...f,children:t},void 0,!1,void 0,this);if(l)return ne(Ht.Portal,{children:b},void 0,!1,void 0,this);return b});up.displayName="SelectContent";var fp=fo(({className:e,size:t,...r},o)=>{let a=Sa(t);return ne("div",{ref:o,className:i("font-semibold text-foreground",Gv[a],e),...r},void 0,!1,void 0,this)});fp.displayName="SelectLabel";var gp=fo(({className:e,children:t,value:r,label:o,size:a,disabled:n=!1,...s},l)=>{let m=ri(),d=Sa(a),f=m.value===r,u=m.registerItem,h=Ca(Vv.toArray(t)).trim();ei(()=>{let C=o??(h.length>0?h:r);u(r,C)},[h,r,o,u]);let p=()=>{if(!n)m.onValueChange(r)},y=(C)=>{if(C.key==="Enter"||C.key===" ")C.preventDefault(),p()};return ne("div",{ref:l,role:"option",tabIndex:n?void 0:-1,"aria-selected":f,"aria-disabled":n||void 0,"data-selected":f?"":void 0,"data-disabled":n?"":void 0,"data-value":r,className:i("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",_v[d],f&&"bg-accent/50",e),onClick:p,onKeyDown:y,...s,children:[ne("span",{className:i("flex shrink-0 items-center justify-center",ti[d]),children:f&&ne(kv,{className:ti[d]},void 0,!1,void 0,this)},void 0,!1,void 0,this),ne("span",{className:"min-w-0 flex-1 truncate",children:t},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});gp.displayName="SelectItem";var yp=fo(({className:e,...t},r)=>ne("div",{ref:r,className:i("-mx-1 my-1 h-px bg-border",e),...t},void 0,!1,void 0,this));yp.displayName="SelectSeparator";import{cva as Yv}from"class-variance-authority";import{forwardRef as Xv}from"react";import{jsxDEV as Zv}from"react/jsx-dev-runtime";var go={horizontal:"horizontal",vertical:"vertical"},vp=Yv("shrink-0 bg-border",{variants:{orientation:{[go.horizontal]:"h-px w-full",[go.vertical]:"h-full w-px"}},defaultVariants:{orientation:go.horizontal}}),bp=Xv(({className:e,orientation:t=go.horizontal,decorative:r=!0,...o},a)=>{let n=r?{role:"none"}:{role:"separator","aria-orientation":t};return Zv("div",{ref:a,className:i(vp({orientation:t}),e),...n,...o},void 0,!1,void 0,this)});bp.displayName="Separator";import{cva as oi}from"class-variance-authority";import{forwardRef as ii}from"react";import{jsxDEV as ai}from"react/jsx-dev-runtime";var ye={sm:"sm",md:"md",lg:"lg"},Tp=oi("animate-pulse rounded-[var(--radius)] bg-muted"),hp=oi("w-full",{variants:{size:{[ye.sm]:"h-3",[ye.md]:"h-4",[ye.lg]:"h-5"}},defaultVariants:{size:ye.md}}),Pp=oi("",{variants:{size:{[ye.sm]:"h-8 w-8",[ye.md]:"h-10 w-10",[ye.lg]:"h-12 w-12"}},defaultVariants:{size:ye.md}}),xp=oi("",{variants:{size:{[ye.sm]:"h-8 w-20",[ye.md]:"h-9 w-24",[ye.lg]:"h-10 w-28"}},defaultVariants:{size:ye.md}}),yo=ii(({className:e,circle:t=!1,...r},o)=>ai("div",{ref:o,className:i(Tp(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));yo.displayName="Skeleton";var Cp=ii(({className:e,size:t=ye.md,...r},o)=>{let a=c(t)??ye.md;return ai(yo,{ref:o,className:i(hp({size:a}),e),...r},void 0,!1,void 0,this)});Cp.displayName="SkeletonText";var zp=ii(({className:e,size:t=ye.md,...r},o)=>{let a=c(t)??ye.md;return ai(yo,{ref:o,circle:!0,className:i(Pp({size:a}),e),...r},void 0,!1,void 0,this)});zp.displayName="SkeletonAvatar";var Sp=ii(({className:e,size:t=ye.md,...r},o)=>{let a=c(t)??ye.md;return ai(yo,{ref:o,className:i(xp({size:a}),e),...r},void 0,!1,void 0,this)});Sp.displayName="SkeletonButton";import*as kt from"@radix-ui/react-slider";import{cva as li}from"class-variance-authority";import{forwardRef as qv}from"react";import{jsxDEV as si}from"react/jsx-dev-runtime";var ni={sm:"sm",md:"md",lg:"lg"},Np=li("relative flex w-full touch-none select-none items-center",{variants:{size:{[ni.sm]:"[&_[data-slider-track]]:h-0.5 [&_[data-slider-thumb]]:h-3 [&_[data-slider-thumb]]:w-3",[ni.md]:"[&_[data-slider-track]]:h-2 [&_[data-slider-thumb]]:h-5 [&_[data-slider-thumb]]:w-5",[ni.lg]:"[&_[data-slider-track]]:h-3 [&_[data-slider-thumb]]:h-6 [&_[data-slider-thumb]]:w-6"}},defaultVariants:{size:ni.md}}),wp=li("relative w-full grow overflow-hidden rounded-full bg-secondary"),Rp=li("absolute h-full bg-primary"),Mp=li("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"),Lp=qv(({className:e,size:t,...r},o)=>{let a=c(t);return si(kt.Root,{ref:o,className:i(Np({size:a}),e),...r,children:[si(kt.Track,{"data-slider-track":!0,className:i(wp()),children:si(kt.Range,{className:i(Rp())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((n,s)=>si(kt.Thumb,{"data-slider-thumb":!0,className:i(Mp())},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});Lp.displayName="Slider";import{cva as xe}from"class-variance-authority";import{forwardRef as Ev,useCallback as vo,useEffect as Ma,useMemo as mi,useRef as di,useState as pi}from"react";import{createPortal as jv}from"react-dom";import{useCallback as Jv,useEffect as Qv,useRef as Hp}from"react";function Ra(e,t,r={}){let{enabled:o=!0,preventDefault:a=!0,stopPropagation:n=!1,target:s="global"}=r,l=Hp(t);l.current=t;let m=Hp([]),d=Array.isArray(e)?e:[e];m.current=d.map((u)=>({combo:u,def:Na(u)}));let f=Jv((u)=>{if(!o)return;for(let{combo:h,def:p}of m.current)if(wa(u,p)){if(a)u.preventDefault();if(n)u.stopPropagation();l.current(u,h);return}},[o,a,n]);Qv(()=>{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 ee}from"react/jsx-dev-runtime";var eb=200,jt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Or={idle:"idle",loading:"loading",error:"error"},kp=xe("fixed inset-0 z-[120] bg-black/40 transition-opacity duration-200 ease-out",{variants:{visible:{true:"opacity-100",false:"opacity-0"}},defaultVariants:{visible:!1}}),Ap=xe(["fixed left-1/2 top-[15vh] z-[120] w-full -translate-x-1/2","rounded-[calc(var(--radius)+6px)] border border-border bg-popover shadow-2xl","overflow-hidden","transition-[opacity,transform] duration-200 ease-out"],{variants:{size:{[jt.sm]:"max-w-md",[jt.md]:"max-w-xl",[jt.lg]:"max-w-2xl",[jt.xl]:"max-w-3xl"},visible:{true:"opacity-100 translate-y-0",false:"opacity-0 -translate-y-3"}},defaultVariants:{size:jt.md,visible:!1}}),Ip=xe("flex items-center gap-3 border-b border-border px-4 py-3"),Vp=xe(["w-full flex-1 bg-transparent text-foreground text-base","placeholder:text-muted-foreground","outline-none border-none"]),Dp=xe("size-4 text-muted-foreground shrink-0"),ci=xe(["inline-flex items-center justify-center px-1.5 py-0.5 rounded","font-mono text-[10px] font-medium","bg-muted border border-border text-muted-foreground"]),Fp=xe("overflow-y-auto max-h-80 py-1"),Op=xe("px-3 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wide"),Bp=xe(["group flex items-center gap-3 px-3 py-2 mx-2 rounded-lg cursor-pointer","text-foreground transition-colors duration-100"],{variants:{selected:{true:"bg-primary/10",false:"hover:bg-muted"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none",false:""}},defaultVariants:{selected:!1,disabled:!1}}),_p=xe("size-4 shrink-0",{variants:{selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{selected:!1}}),Gp=xe("flex-1 min-w-0"),Wp=xe("text-sm font-medium truncate"),Up=xe("text-xs text-muted-foreground truncate"),$p=xe("flex items-center gap-1 text-[11px] text-muted-foreground shrink-0"),ui=xe("flex flex-col items-center justify-center py-8 text-muted-foreground min-h-24",{variants:{state:{empty:"text-muted-foreground",loading:"text-muted-foreground",error:"text-destructive"}},defaultVariants:{state:"empty"}}),fi=xe("text-sm font-medium"),Kp=xe("text-xs mt-1"),tb=(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},Yp=Ev(({className:e,open:t,onOpenChange:r,actions:o,onActionSelect:a,value:n,defaultValue:s="",onValueChange:l,placeholder:m="Search commands, pages, or actions...",size:d=jt.md,status:f=Or.idle,statusMessage:u,emptyText:h="No command found for this query.",hotkey:p,portal:y=!0,...C},R)=>{let w=di(null),T=di(null),[b,x]=pi(s),[A,S]=pi(0),[k,z]=pi(!1),[V,K]=pi(!1),{isMac:O}=eo(),$=vo((F)=>to(F,O),[O]),N=mi(()=>p&&p.length>0?p.join("+"):null,[p]);Ra(N??"",()=>r(!t),{enabled:!!N});let I=n!==void 0?n:b,P=mi(()=>o.filter((F)=>tb(F,I)),[o,I]),D=mi(()=>P.map((F,H)=>F.disabled?-1:H).filter((F)=>F>=0),[P]),E=mi(()=>{let F=new Map,H=new Map,U=0;for(let J of P){let se=J.group??"";if(!F.has(se))F.set(se,[]);F.get(se).push(J),H.set(J,U),U++}return{groups:F,indexMap:H}},[P]),M=di(!1),Y=di({query:I,status:f,statusMessage:u??null,filtered:P,grouped:E,activeIndex:A,emptyText:h});if(!M.current)Y.current={query:I,status:f,statusMessage:u??null,filtered:P,grouped:E,activeIndex:A,emptyText:h};Ma(()=>{if(t){M.current=!1,z(!0),S(0),requestAnimationFrame(()=>{requestAnimationFrame(()=>K(!0))});return}if(k){M.current=!0,K(!1);let F=setTimeout(()=>z(!1),eb);return()=>clearTimeout(F)}return},[t]),Ma(()=>{if(t)document.body.style.overflow="hidden";else document.body.style.overflow="";return()=>{document.body.style.overflow=""}},[t]),Ma(()=>{if(t&&k)requestAnimationFrame(()=>w.current?.focus())},[t,k]);let g=vo((F)=>{let H=F.target.value;x(H),l?.(H),S(0)},[l]),v=vo((F)=>{let H=T.current;if(!H)return;H.querySelectorAll('[role="option"]')[F]?.scrollIntoView({block:"nearest"})},[]),L=vo((F)=>{if(F.key==="Escape"){F.preventDefault(),r(!1);return}if(F.key==="ArrowDown"){if(F.preventDefault(),D.length===0)return;let U=(D.indexOf(A)+1)%D.length,J=D[U];S(J),v(J);return}if(F.key==="ArrowUp"){if(F.preventDefault(),D.length===0)return;let U=(D.indexOf(A)-1+D.length)%D.length,J=D[U];S(J),v(J);return}if(F.key==="Enter"){F.preventDefault();let H=P[A];if(H&&!H.disabled)a(H,A)}},[A,D,P,a,r,v]),te=vo((F,H)=>{if(F.disabled)return;a(F,H)},[a]);if(!k)return null;let B=Y.current,Se=B.status===Or.idle,j=B.status!==Or.idle,me=ee("div",{ref:R,role:"dialog","aria-modal":"true",onKeyDown:L,className:i(!V&&"pointer-events-none",e),...C,children:[ee("div",{"data-testid":"spotlight-overlay",className:i(kp({visible:V})),onClick:()=>r(!1),onKeyDown:(F)=>{if(F.key==="Escape")r(!1)}},void 0,!1,void 0,this),ee("div",{className:i(Ap({size:d,visible:V})),children:[ee("div",{className:i(Ip()),children:[ee("svg",{className:i(Dp()),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:ee("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),ee("input",{ref:w,type:"text",value:B.query,onChange:g,placeholder:m,className:i(Vp())},void 0,!1,void 0,this),p?ee("div",{className:"flex items-center gap-1",children:p.map((F)=>ee("kbd",{className:i(ci()),children:$(F)},F,!1,void 0,this))},void 0,!1,void 0,this):ee("kbd",{className:i(ci()),children:"ESC"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j&&B.status===Or.loading&&ee("div",{className:i(ui({state:"loading"}),"animate-in fade-in-0 slide-in-from-bottom-1 duration-150"),children:ee("div",{className:i(fi()),children:"Searching commands..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),j&&B.status===Or.error&&ee("div",{className:i(ui({state:"error"}),"animate-in fade-in-0 slide-in-from-bottom-1 duration-150"),children:[ee("div",{className:i(fi()),children:"Search failed"},void 0,!1,void 0,this),B.statusMessage&&ee("div",{className:i(Kp()),children:B.statusMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Se&&B.filtered.length===0&&ee("div",{className:i(ui({state:"empty"}),"animate-in fade-in-0 slide-in-from-bottom-1 duration-150"),children:ee("div",{className:i(fi()),children:B.emptyText},void 0,!1,void 0,this)},void 0,!1,void 0,this),Se&&B.filtered.length>0&&ee("div",{ref:T,className:i(Fp()),children:Array.from(B.grouped.groups.entries()).map(([F,H])=>ee("div",{children:[F&&ee("div",{className:i(Op()),children:F},void 0,!1,void 0,this),H.map((U)=>{let J=B.grouped.indexMap.get(U)??0,se=J===B.activeIndex;return ee("div",{role:"option","aria-selected":se,"aria-disabled":U.disabled??!1,onClick:()=>te(U,J),className:i(Bp({selected:se,disabled:U.disabled??!1})),children:[U.icon&&ee("span",{className:i(_p({selected:se})),children:U.icon},void 0,!1,void 0,this),ee("div",{className:i(Gp()),children:[ee("div",{className:i(Wp()),children:U.title},void 0,!1,void 0,this),U.description&&ee("div",{className:i(Up()),children:U.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U.shortcut&&U.shortcut.length>0&&ee("div",{className:i($p()),children:U.shortcut.map((De)=>ee("kbd",{className:i(ci()),children:$(De)},De,!1,void 0,this))},void 0,!1,void 0,this)]},U.id,!0,void 0,this)})]},F||"__ungrouped__",!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(y)return jv(me,document.body);return me});Yp.displayName="Spotlight";import{cva as rb}from"class-variance-authority";import{forwardRef as ob}from"react";import{jsxDEV as At}from"react/jsx-dev-runtime";var Ue={sm:"sm",md:"md",lg:"lg"},er={up:"up",down:"down",neutral:"neutral"},Xp=rb("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:{[Ue.sm]:"gap-1 p-3",[Ue.md]:"gap-1.5 p-4",[Ue.lg]:"gap-2 p-5"}},defaultVariants:{size:Ue.md}}),ib={[Ue.sm]:"text-lg font-semibold",[Ue.md]:"text-2xl font-bold",[Ue.lg]:"text-3xl font-bold"},ab={[Ue.sm]:"text-xs",[Ue.md]:"text-sm",[Ue.lg]:"text-base"},nb={[er.up]:"text-success",[er.down]:"text-destructive",[er.neutral]:"text-muted-foreground"},sb={[er.up]:"↑",[er.down]:"↓",[er.neutral]:"→"},Zp=ob(({className:e,size:t=Ue.md,label:r,value:o,trend:a,trendValue:n,icon:s,...l},m)=>{let d=c(t);return At("div",{ref:m,className:i(Xp({size:d}),e),...l,children:[At("div",{className:"flex items-center justify-between",children:[At("span",{className:i("text-muted-foreground",ab[d]),children:r},void 0,!1,void 0,this),s&&At("span",{className:"text-muted-foreground/70","aria-hidden":"true",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),At("div",{className:"flex items-baseline gap-2",children:[At("span",{className:i("tracking-tight text-foreground",ib[d]),children:o},void 0,!1,void 0,this),a&&n&&At("span",{className:i("inline-flex items-center gap-0.5 text-xs font-medium",nb[a]),children:[At("span",{"aria-hidden":"true",children:sb[a]},void 0,!1,void 0,this),n]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Zp.displayName="StatCard";import{cva as tr}from"class-variance-authority";import{Check as lb}from"lucide-react";import{forwardRef as rr}from"react";import{jsxDEV as It}from"react/jsx-dev-runtime";var qp=tr("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),Jp=tr("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),Qp=tr(["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}}),Ep=tr("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}}),jp=tr("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),ec=tr("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"}}),tc=tr("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 rc=rr(({className:e,orientation:t="horizontal",activeStep:r,...o},a)=>{return It("div",{ref:a,role:"group","aria-label":"Progress steps",className:i(qp({orientation:t}),e),"data-orientation":t,"data-active-step":r,...o},void 0,!1,void 0,this)});rc.displayName="Stepper";var oc=rr(({className:e,orientation:t="horizontal",isLast:r,isCurrent:o,...a},n)=>{return It("div",{ref:n,className:i(Jp({orientation:t}),e),"data-last":r,"aria-current":o?"step":void 0,...a},void 0,!1,void 0,this)});oc.displayName="Step";var ic=rr(({className:e,status:t="incomplete",size:r="md",icon:o,step:a,children:n,animated:s=!0,...l},m)=>{let d=c(r);return It("div",{ref:m,className:i(Qp({status:t,size:d,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?o||It(lb,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):n||a},void 0,!1,void 0,this)});ic.displayName="StepIndicator";var ac=rr(({className:e,orientation:t="horizontal",status:r="incomplete",size:o="md",animated:a=!0,...n},s)=>{let l=c(o);return It("div",{ref:s,className:i(Ep({orientation:t,status:r,size:l,animated:a}),e),"data-status":r,...n},void 0,!1,void 0,this)});ac.displayName="StepConnector";var nc=rr(({className:e,orientation:t="horizontal",...r},o)=>{return It("div",{ref:o,className:i(jp({orientation:t}),e),...r},void 0,!1,void 0,this)});nc.displayName="StepContent";var sc=rr(({className:e,status:t="incomplete",size:r="md",...o},a)=>{let n=c(r);return It("h4",{ref:a,className:i(ec({status:t,size:n}),e),...o},void 0,!1,void 0,this)});sc.displayName="StepTitle";var lc=rr(({className:e,size:t="md",...r},o)=>{let a=c(t);return It("p",{ref:o,className:i(tc({size:a}),e),...r},void 0,!1,void 0,this)});lc.displayName="StepDescription";import*as gi from"@radix-ui/react-switch";import{cva as mb}from"class-variance-authority";import{forwardRef as db}from"react";import{jsxDEV as mc}from"react/jsx-dev-runtime";var Me={sm:"sm",md:"md",lg:"lg",xl:"xl"},Br={default:"default",error:"error",success:"success"},dc=mb("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:{[Me.sm]:"h-4.5 w-8",[Me.md]:"h-5 w-9",[Me.lg]:"h-6 w-11",[Me.xl]:"h-7 w-[3.25rem]"},status:{[Br.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",[Br.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",[Br.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:Me.md,status:Br.default}}),pb={[Me.sm]:"h-3.5 w-3.5",[Me.md]:"h-4 w-4",[Me.lg]:"h-5 w-5",[Me.xl]:"h-6 w-6"},cb={[Me.sm]:"data-[state=checked]:translate-x-3.5",[Me.md]:"data-[state=checked]:translate-x-4",[Me.lg]:"data-[state=checked]:translate-x-5",[Me.xl]:"data-[state=checked]:translate-x-6"},pc=db(({className:e,size:t=Me.md,status:r=Br.default,checked:o,disabled:a,...n},s)=>{let l=c(t);return mc(gi.Root,{ref:s,checked:o,disabled:a,className:i(dc({size:l,status:r}),e),...n,children:mc(gi.Thumb,{className:i("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",pb[l],cb[l])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});pc.displayName="Switch";import{cva as vt}from"class-variance-authority";import{createContext as ub,forwardRef as Vt,useContext as cc}from"react";import{jsxDEV as nt}from"react/jsx-dev-runtime";var ze={sm:"sm",md:"md",lg:"lg"},La=ub(ze.md),uc=vt("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),fc=vt("w-full caption-bottom",{variants:{size:{[ze.sm]:"text-xs",[ze.md]:"text-sm",[ze.lg]:"text-sm"}},defaultVariants:{size:ze.md}}),gc=vt("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),yc=vt("[&_tr:last-child]:border-0"),vc=vt("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),bc=vt("gs-interactive border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),Tc=vt("text-left align-middle font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[ze.sm]:"h-8 px-2",[ze.md]:"h-10 px-3",[ze.lg]:"h-12 px-4"}},defaultVariants:{size:ze.md}}),hc=vt("align-middle text-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[ze.sm]:"p-2",[ze.md]:"p-3",[ze.lg]:"p-4"}},defaultVariants:{size:ze.md}}),Pc=vt("mt-4 text-sm text-muted-foreground"),xc=Vt(({className:e,containerClassName:t,size:r=ze.md,...o},a)=>{let n=c(r)??ze.md;return nt(La.Provider,{value:n,children:nt("div",{className:i(uc(),t),children:nt("table",{ref:a,className:i(fc({size:n}),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});xc.displayName="Table";var Cc=Vt(({className:e,...t},r)=>nt("thead",{ref:r,className:i(gc(),e),...t},void 0,!1,void 0,this));Cc.displayName="TableHeader";var zc=Vt(({className:e,...t},r)=>nt("tbody",{ref:r,className:i(yc(),e),...t},void 0,!1,void 0,this));zc.displayName="TableBody";var Sc=Vt(({className:e,...t},r)=>nt("tfoot",{ref:r,className:i(vc(),e),...t},void 0,!1,void 0,this));Sc.displayName="TableFooter";var Nc=Vt(({className:e,...t},r)=>nt("tr",{ref:r,className:i(bc(),e),...t},void 0,!1,void 0,this));Nc.displayName="TableRow";var wc=Vt(({className:e,size:t,...r},o)=>{let a=cc(La);return nt("th",{ref:o,className:i(Tc({size:t??a}),e),...r},void 0,!1,void 0,this)});wc.displayName="TableHead";var Rc=Vt(({className:e,size:t,...r},o)=>{let a=cc(La);return nt("td",{ref:o,className:i(hc({size:t??a}),e),...r},void 0,!1,void 0,this)});Rc.displayName="TableCell";var Mc=Vt(({className:e,...t},r)=>nt("caption",{ref:r,className:i(Pc(),e),...t},void 0,!1,void 0,this));Mc.displayName="TableCaption";import*as et from"@radix-ui/react-tabs";import{cva as Ha}from"class-variance-authority";import{createContext as fb,forwardRef as ka,useCallback as Lc,useContext as gb,useEffect as Aa,useLayoutEffect as yb,useRef as yi,useState as vb}from"react";import{jsxDEV as bo}from"react/jsx-dev-runtime";var st={sm:"sm",md:"md",lg:"lg",xl:"xl"},Hc=Ha("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[st.sm]:"h-9 gap-0.5",[st.md]:"h-11 gap-1",[st.lg]:"h-12 gap-1",[st.xl]:"h-14 gap-1.5"}},defaultVariants:{size:st.md}}),kc=Ha("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:{[st.sm]:"px-2.5 py-1 text-xs",[st.md]:"px-3 py-1.5 text-sm",[st.lg]:"px-4 py-2 text-sm",[st.xl]:"px-5 py-2.5 text-base"}},defaultVariants:{size:st.md}}),Ac=Ha("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),Ic=fb({registerTrigger:()=>{}}),bb=typeof window<"u"?yb:Aa,Tb=et.Root,Vc=ka(({className:e,size:t,children:r,...o},a)=>{let n=c(t),s=yi(null),l=yi(new Map),[m,d]=vb(null),f=yi(!0),u=Lc((p,y)=>{if(y)l.current.set(p,y);else l.current.delete(p)},[]),h=Lc(()=>{let p=s.current;if(!p)return;let y=p.querySelector('[data-state="active"]');if(!y){d(null);return}let C=p.getBoundingClientRect(),R=y.getBoundingClientRect();d({left:R.left-C.left,width:R.width})},[]);return bb(()=>{h()},[h]),Aa(()=>{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]),bo(Ic.Provider,{value:{registerTrigger:u},children:bo(et.List,{ref:(p)=>{if(s.current=p,typeof a==="function")a(p);else if(a)a.current=p},className:i(Hc({size:n}),e),...o,children:[m&&bo("span",{"aria-hidden":"true",className:i("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:m.left,width:m.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Vc.displayName=et.List.displayName;var Dc=ka(({className:e,size:t,value:r,...o},a)=>{let n=c(t),{registerTrigger:s}=gb(Ic),l=yi(null);return Aa(()=>{return s(r,l.current),()=>s(r,null)},[r,s]),bo(et.Trigger,{ref:(m)=>{if(l.current=m,typeof a==="function")a(m);else if(a)a.current=m},value:r,className:i(kc({size:n}),e),...o},void 0,!1,void 0,this)});Dc.displayName=et.Trigger.displayName;var Fc=ka(({className:e,...t},r)=>bo(et.Content,{ref:r,className:i(Ac(),e),...t},void 0,!1,void 0,this));Fc.displayName=et.Content.displayName;import{cva as hb}from"class-variance-authority";import{forwardRef as Pb}from"react";import{jsxDEV as xb}from"react/jsx-dev-runtime";var To={default:"default",error:"error",success:"success"},_r={sm:"sm",md:"md",lg:"lg",xl:"xl"},Oc=hb("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:{[To.default]:"focus-visible:ring-primary",[To.error]:"border-destructive focus-visible:ring-destructive",[To.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:To.default,size:_r.md}}),Bc=Pb(({className:e,status:t=To.default,size:r=_r.md,fullWidth:o=!1,noResize:a=!1,disabled:n,...s},l)=>{let m=c(r);return xb("textarea",{ref:l,className:i(Oc({status:t,size:m}),n&&"bg-muted",o&&"w-full",a&&"resize-none",e),disabled:n,...s},void 0,!1,void 0,this)});Bc.displayName="Textarea";import{cva as Dt}from"class-variance-authority";import{forwardRef as Ft}from"react";import{jsxDEV as lt}from"react/jsx-dev-runtime";var _c=Dt("relative flex flex-col"),Gc=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}}),Wc=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}}),Uc=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}}),$c=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)]"),Kc=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"}}),Yc=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"}}),Xc=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 Zc=Ft(({className:e,...t},r)=>{return lt("div",{ref:r,role:"list","aria-label":"Timeline events",className:i(_c(),e),...t},void 0,!1,void 0,this)});Zc.displayName="Timeline";var qc=Ft(({className:e,align:t,isLast:r,animated:o=!0,...a},n)=>{return lt("div",{ref:n,role:"listitem",className:i(Gc({align:t,animated:o}),e),"data-last":r,...a},void 0,!1,void 0,this)});qc.displayName="TimelineItem";var Jc=Ft(({className:e,variant:t,size:r,animated:o=!0,...a},n)=>{let s=c(r);return lt("div",{ref:n,className:i(Wc({variant:t,size:s,animated:o}),e),...a},void 0,!1,void 0,this)});Jc.displayName="TimelineConnector";var Qc=Ft(({className:e,variant:t,size:r,icon:o,children:a,pulse:n=!1,animated:s=!0,...l},m)=>{let d=c(r);return lt("div",{ref:m,className:i(Uc({variant:t,size:d,pulse:n,animated:s}),e),"aria-hidden":"true",...l,children:o||a||lt(Cb,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Qc.displayName="TimelineDot";var Ec=Ft(({className:e,...t},r)=>{return lt("div",{ref:r,className:i($c(),e),...t},void 0,!1,void 0,this)});Ec.displayName="TimelineContent";var jc=Ft(({className:e,size:t,...r},o)=>{let a=c(t);return lt("h4",{ref:o,className:i(Kc({size:a}),e),...r},void 0,!1,void 0,this)});jc.displayName="TimelineTitle";var eu=Ft(({className:e,size:t,...r},o)=>{let a=c(t);return lt("p",{ref:o,className:i(Yc({size:a}),e),...r},void 0,!1,void 0,this)});eu.displayName="TimelineDescription";var tu=Ft(({className:e,size:t,...r},o)=>{let a=c(t);return lt("time",{ref:o,className:i(Xc({size:a}),e),...r},void 0,!1,void 0,this)});tu.displayName="TimelineTime";function Cb(){return lt("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as ru}from"class-variance-authority";var Gr={default:"default",success:"success",info:"info",warning:"warning",error:"error"},$e={sm:"sm",md:"md",lg:"lg"},Ia=ru("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[Gr.default]:"border-border bg-card text-card-foreground",[Gr.success]:"border-success/30 bg-card text-card-foreground",[Gr.info]:"border-info/30 bg-card text-card-foreground",[Gr.warning]:"border-warning/30 bg-card text-card-foreground",[Gr.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[$e.sm]:"gap-2 p-3",[$e.md]:"gap-3 p-4",[$e.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:Gr.default,size:$e.md}}),Va=ru("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:{[$e.sm]:"h-6 px-2 text-xs",[$e.md]:"h-7 px-2.5 text-xs",[$e.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:$e.md}});import{AlertTriangle as kb,CheckCircle2 as Ab,Info as su,X as Ib,XCircle as Vb}from"lucide-react";import{forwardRef as Db,useCallback as Ti,useEffect as hi,useRef as _a,useState as Ga}from"react";import{useSyncExternalStore as zb}from"react";var Sb=5,iu=5000,Nb=500,Da=0;function wb(){return Da=(Da+1)%Number.MAX_SAFE_INTEGER,`toast-${Da}-${Date.now()}`}var Fa=new Set,Ke=[],ir=new Map,Po=new Map,xo=!1,or=new Map;function vi(){for(let e of Fa)e()}function ou(){return Ke}function Rb(e){return Fa.add(e),()=>{Fa.delete(e)}}function Oa(e,t){if(xo){or.set(e,t);return}clearTimeout(ir.get(e));let r=Date.now(),o=setTimeout(()=>{ir.delete(e),or.delete(e),bi(e)},t);ir.set(e,o),or.set(e,t);let a=setInterval(()=>{let n=Date.now()-r,s=t-n;if(s<=0)clearInterval(a),or.delete(e);else or.set(e,s)},100)}function Mb(e){clearTimeout(Po.get(e));let t=setTimeout(()=>{Ke=Ke.filter((r)=>r.id!==e),Po.delete(e),vi()},Nb);Po.set(e,t)}function ho(e){let t=e.id??wb(),r=e.duration??iu;if(Ke.find((n)=>n.id===t))return Ke=Ke.map((n)=>n.id===t?{...n,...e,id:t,open:!0,createdAt:Date.now()}:n),clearTimeout(Po.get(t)),Po.delete(t),Oa(t,r),vi(),t;return Ke=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...Ke].slice(0,Sb),Oa(t,r),vi(),t}function bi(e){clearTimeout(ir.get(e)),ir.delete(e),or.delete(e),Ke=Ke.map((t)=>t.id===e?{...t,open:!1}:t),vi(),Mb(e)}function au(){for(let e of Ke)bi(e.id)}function Lb(){if(xo)return;xo=!0;for(let[e,t]of ir)clearTimeout(t),ir.delete(e)}function Hb(){if(!xo)return;xo=!1;for(let e of Ke)if(e.open){let t=or.get(e.id)??iu;Oa(e.id,t)}}var nu=Object.assign((e)=>ho(e),{success:(e,t)=>ho({...t,variant:"success",title:e}),info:(e,t)=>ho({...t,variant:"info",title:e}),warning:(e,t)=>ho({...t,variant:"warning",title:e}),error:(e,t)=>ho({...t,variant:"error",title:e}),dismiss:bi,dismissAll:au});function Ba(){return{toasts:zb(Rb,ou,ou),toast:nu,dismiss:bi,dismissAll:au,pauseAll:Lb,resumeAll:Hb}}import{jsxDEV as Le}from"react/jsx-dev-runtime";var mu=10,lu=0.05,Fb=200,du="cubic-bezier(0.2, 0.8, 0.2, 1)",Ob="cubic-bezier(0.22, 1, 0.36, 1)",Bb={"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"},_b={success:(e)=>Le(Ab,{className:i("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>Le(su,{className:i("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>Le(kb,{className:i("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>Le(Vb,{className:i("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>Le(su,{className:i("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function Gb(e,t,r,o,a){let n=e<o,s=r?a:e*mu,l=r?1:n?1-e*lu:1-o*lu,m=n||r?1:0,d=t-e;return{offset:s,scale:l,opacity:m,zIndex:d}}var pu=Db(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:o=$e.md,className:a,...n},s)=>{let{toasts:l,dismiss:m,pauseAll:d,resumeAll:f}=Ba(),u=c(o)??$e.md,[h,p]=Ga(!1),[y,C]=Ga({}),R=_a(null),w=_a(void 0),T=e.startsWith("bottom"),b=Ti((P)=>{if(R.current=P,typeof s==="function")s(P);else if(s)s.current=P},[s]),x=Ti(()=>{clearTimeout(w.current),p(!0),d()},[d]),A=Ti(()=>{clearTimeout(w.current),w.current=setTimeout(()=>{p(!1),f()},Fb)},[f]);hi(()=>{return()=>clearTimeout(w.current)},[]);let S=Ti((P,D)=>{C((E)=>{if(E[P]===D)return E;return{...E,[P]:D}})},[]);if(hi(()=>{let P=new Set(l.map((D)=>D.id));C((D)=>{let E=!1,M={};for(let[Y,g]of Object.entries(D))if(P.has(Y))M[Y]=g;else E=!0;return E?M:D})},[l]),l.length===0)return null;let k=l.filter((P)=>P.open),z=new Map,V=0;for(let[P,D]of k.entries()){let E=y[D.id]??0;z.set(D.id,Gb(P,k.length,h,r,V)),V+=E+t}let K=k[0],$=(K?y[K.id]??0:0)+Math.min(k.length-1,r-1)*mu,N=V-(k.length>0?t:0),I=h?N:$;return Le("ol",{ref:b,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:x,onMouseLeave:A,className:i("pointer-events-auto fixed z-[100] w-full max-w-[400px] outline-none",Bb[e],a),style:{height:Math.max(I,0),transition:`height 400ms ${du}`},...n,children:l.map((P)=>{let D=!P.open,E=z.get(P.id);return Le(Wb,{toast:P,layout:E??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:D,isBottom:T,size:u,onDismiss:m,onMeasure:S},P.id,!1,void 0,this)})},void 0,!1,void 0,this)});pu.displayName="Toaster";function Wb({toast:e,layout:t,isClosed:r,isBottom:o,size:a,onDismiss:n,onMeasure:s}){let l=_a(null),[m,d]=Ga(!1);hi(()=>{let y=requestAnimationFrame(()=>d(!0));return()=>cancelAnimationFrame(y)},[]),hi(()=>{let y=l.current;if(!y)return;let C=new ResizeObserver((R)=>{for(let w of R){let T=w.borderBoxSize?.[0];if(T)s(e.id,T.blockSize)}});return C.observe(y),()=>C.disconnect()},[e.id,s]);let f=o?{bottom:0,left:0,right:0}:{top:0,left:0,right:0},u,h,p;if(!m)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 Le("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 ${du}`,`opacity 250ms ${Ob}`].join(", ")},children:Le("div",{className:i(Ia({variant:e.variant,size:a}),"w-full"),children:[_b[e.variant]?.(a),Le("div",{className:"flex-1 space-y-0.5",children:[e.title&&Le("p",{className:i("font-semibold leading-tight",a==="sm"?"text-xs":"text-sm"),children:e.title},void 0,!1,void 0,this),e.description&&Le("p",{className:i("leading-snug text-muted-foreground",a==="sm"?"text-xs":"text-sm"),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.action&&Le("button",{type:"button",className:i(Va({size:a}),"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&&Le("button",{type:"button",className:i("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",a==="sm"?"[&>svg]:size-3.5":"[&>svg]:size-4"),onClick:()=>n(e.id),"aria-label":"Dismiss",children:Le(Ib,{},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 cu from"@radix-ui/react-toggle";import{cva as Ub}from"class-variance-authority";import{forwardRef as $b}from"react";import{jsxDEV as Kb}from"react/jsx-dev-runtime";var Wa={default:"default",outline:"outline"},Pi={sm:"sm",md:"md",lg:"lg"},xi=Ub("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:{[Wa.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[Wa.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[Pi.sm]:"h-7 px-1.5 min-w-7 text-xs",[Pi.md]:"h-10 px-3 min-w-10",[Pi.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:Wa.default,size:Pi.md}}),uu=$b(({className:e,variant:t,size:r,...o},a)=>{let n=c(r);return Kb(cu.Root,{ref:a,className:i(xi({variant:t,size:n}),e),...o},void 0,!1,void 0,this)});uu.displayName="Toggle";import*as Ci from"@radix-ui/react-toggle-group";import{cva as Yb}from"class-variance-authority";import{createContext as Xb,forwardRef as fu,useContext as Zb}from"react";import{jsxDEV as Ua}from"react/jsx-dev-runtime";var qb={default:"default",outline:"outline"},Jb={sm:"sm",md:"md",lg:"lg"},gu=Yb("flex items-center justify-center gap-1"),yu=Xb({size:Jb.md,variant:qb.default}),vu=fu(({className:e,variant:t,size:r,children:o,...a},n)=>{let s=c(r);return Ua(Ci.Root,{ref:n,className:i(gu(),e),...a,children:Ua(yu.Provider,{value:{variant:t,size:s},children:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)});vu.displayName="ToggleGroup";var bu=fu(({className:e,children:t,variant:r,size:o,...a},n)=>{let s=Zb(yu),l=c(o);return Ua(Ci.Item,{ref:n,className:i(xi({variant:r??s.variant,size:l??s.size}),e),...a,children:t},void 0,!1,void 0,this)});bu.displayName="ToggleGroupItem";import{cva as Tu}from"class-variance-authority";import{forwardRef as zi}from"react";import{jsxDEV as Si}from"react/jsx-dev-runtime";var tt={sm:"sm",md:"md",lg:"lg"},hu=Tu("flex items-center border-b border-border bg-background",{variants:{size:{[tt.sm]:"gap-1.5 px-3 py-1.5",[tt.md]:"gap-2 px-4 py-2",[tt.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:tt.md}}),Pu=zi(({className:e,size:t=tt.md,...r},o)=>{let a=c(t);return Si("div",{ref:o,role:"toolbar",className:i(hu({size:a}),e),...r},void 0,!1,void 0,this)});Pu.displayName="Toolbar";var xu=Tu("flex items-center",{variants:{size:{[tt.sm]:"gap-1",[tt.md]:"gap-1.5",[tt.lg]:"gap-2"}},defaultVariants:{size:tt.md}}),Cu=zi(({className:e,size:t=tt.md,...r},o)=>{let a=c(t);return Si("div",{ref:o,role:"group",className:i(xu({size:a}),e),...r},void 0,!1,void 0,this)});Cu.displayName="ToolbarGroup";var zu=zi(({className:e,...t},r)=>{return Si("div",{ref:r,role:"none",className:i("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});zu.displayName="ToolbarSeparator";var Su=zi(({className:e,...t},r)=>{return Si("div",{ref:r,className:i("flex-1",e),...t},void 0,!1,void 0,this)});Su.displayName="ToolbarSpacer";import*as mt from"@radix-ui/react-tooltip";import{cva as Qb}from"class-variance-authority";import{createContext as Eb,forwardRef as Nu,useContext as wu}from"react";import{jsxDEV as Co}from"react/jsx-dev-runtime";var jb=mt.Provider,$a=Eb(!1),Ru=({persistOnClick:e=!1,children:t,...r})=>Co($a.Provider,{value:e,children:Co(mt.Root,{...r,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this);Ru.displayName="Tooltip";var Mu=Nu(({onClick:e,onPointerDown:t,...r},o)=>{let a=wu($a);return Co(mt.Trigger,{ref:o,onClick:a?(n)=>{n.preventDefault(),e?.(n)}:e,onPointerDown:a?(n)=>{n.preventDefault(),t?.(n)}:t,...r},void 0,!1,void 0,this)});Mu.displayName="TooltipTrigger";var ar={sm:"sm",md:"md",lg:"lg",xl:"xl"},Lu=Qb("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:{[ar.sm]:"px-2 py-1 text-xs",[ar.md]:"px-3 py-1.5 text-xs",[ar.lg]:"px-4 py-2 text-sm",[ar.xl]:"px-5 py-2.5 text-sm"}},defaultVariants:{size:ar.md}}),Hu=Nu(({className:e,sideOffset:t=4,onPointerDownOutside:r,size:o=ar.md,...a},n)=>{let s=wu($a),l=c(o);return Co(mt.Portal,{children:Co(mt.Content,{ref:n,sideOffset:t,className:i(Lu({size:l}),e),onPointerDownOutside:s?(m)=>{m.preventDefault(),r?.(m)}:r,...a},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Hu.displayName="TooltipContent";import{createContext as eT,useCallback as nr,useContext as tT,useEffect as Ri,useLayoutEffect as rT,useMemo as Ni,useRef as Ot,useState as ku}from"react";import{jsxDEV as oT}from"react/jsx-dev-runtime";var Au=typeof window<"u"?rT:Ri,Ya=eT(null);function wi(e,t){return e.theme===t.theme&&e.colorScheme===t.colorScheme}var sr=({children:e,value:t,initialState:r,onChange:o,onStateChange:a,transformState:n,readState:s,writeState:l,syncWithSystem:m=!0,enableTransition:d=!1,transitionDuration:f,defaultTheme:u,defaultColorScheme:h,themes:p,attribute:y,colorSchemeAttribute:C,darkClassName:R,storage:w})=>{let T=Ni(()=>Wr({defaultTheme:u,defaultColorScheme:h,themes:p,attribute:y,colorSchemeAttribute:C,darkClassName:R,storage:w}),[u,h,p,y,C,R,w]),[b,x]=ku(()=>dt(r,T)),[A,S]=ku(ki),z=Ni(()=>t?dt(t,T):null,[t,T])??b,V=Ni(()=>({...z,resolvedColorScheme:Ka(z.colorScheme,A)}),[z,A]),K=t!==void 0,O=Ot(z);O.current=z;let $=Ot(!1),N=Ot(!1),I=Ot(!1),P=Ot(z),D=Ot(null),E=Ot(d);E.current=d;let M=Ot(f);M.current=f;let Y=nr((H)=>{return Li(H)},[]),g=nr((H,U)=>{Hi(H,U)},[]),v=s??Y,L=l??g;Ri(()=>{if(!m||typeof window>"u"||typeof window.matchMedia!=="function")return;let H=window.matchMedia("(prefers-color-scheme: dark)"),U=()=>{S(H.matches?pt.dark:pt.light)};return U(),H.addEventListener("change",U),()=>H.removeEventListener("change",U)},[m]),Ri(()=>{if(K)return;x((H)=>{let U=dt(H,T);return wi(H,U)?H:U})},[T,K]),Au(()=>{if(K||$.current)return;$.current=!0;let H=v(T);if(!H)return;let U=O.current,J=dt(H,T),se={reason:"hydrate",previousState:U},De=n?dt(n(J,se),T):J;if(wi(U,De))return;D.current=se,x(De),o?.(De,se),a?.(De,se)},[T,K,o,a,v,n]),Au(()=>{if(typeof document>"u")return;let H=!I.current;if(I.current=!0,!H&&E.current&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){let J=M.current??200,se=document.createElement("style");se.setAttribute("data-gs-theme-transition",""),se.textContent=`*, *::before, *::after { transition: color ${J}ms ease, background-color ${J}ms ease, border-color ${J}ms ease, box-shadow ${J}ms ease, fill ${J}ms ease, stroke ${J}ms ease !important; }`,document.head.appendChild(se),Mi(document.documentElement,V,T);let De=requestAnimationFrame(()=>{setTimeout(()=>se.remove(),J)});return()=>{cancelAnimationFrame(De),se.remove()}}Mi(document.documentElement,V,T);return},[T,V]),Ri(()=>{if(typeof window>"u")return;if(!N.current){N.current=!0,P.current=z;return}let H=P.current;if(wi(H,z))return;let U=D.current??{reason:"set-state",previousState:H};D.current=null,L(z,T,U),P.current=z},[T,z,L]);let te=nr((H,U)=>{let J=O.current,se=typeof H==="function"?H(J):H,De=dt({theme:se.theme??J.theme,colorScheme:se.colorScheme??J.colorScheme},T),zo={reason:U,previousState:J},So=n?dt(n(De,zo),T):De;if(wi(J,So))return;if(D.current=zo,!K)x(So);o?.(So,zo),a?.(So,zo)},[T,K,o,a,n]),B=nr((H)=>{te(H,"set-state")},[te]),Se=nr((H)=>{te({theme:H},"set-theme")},[te]),j=nr((H)=>{te({colorScheme:H},"set-color-scheme")},[te]),me=nr(()=>{let H=V.resolvedColorScheme===pt.dark?pt.light:pt.dark;te({colorScheme:H},"toggle-color-scheme")},[V.resolvedColorScheme,te]),F=Ni(()=>({theme:z.theme,colorScheme:z.colorScheme,resolvedColorScheme:V.resolvedColorScheme,state:z,resolvedState:V,contract:T,themes:T.themes,setTheme:Se,setColorScheme:j,setState:B,toggleColorScheme:me}),[z,V,T,Se,j,B,me]);return oT(Ya.Provider,{value:F,children:e},void 0,!1,void 0,this)};sr.displayName="ThemeProvider";var Ai=()=>{let e=tT(Ya);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e};import{jsxDEV as Ii}from"react/jsx-dev-runtime";function Di(e){return typeof e==="object"&&e!==null}function bt(e){return typeof e==="string"&&e.trim().length>0}function Iu(e){if(!Di(e))return!1;return Object.values(e).every(bt)}function Du(e){if(!Di(e))return!1;if(!Iu(e.light))return!1;if(e.dark===void 0)return!0;return Iu(e.dark)}function Fu(e){return Di(e)&&bt(e.cssText)}function iT(e){return Di(e)&&bt(e.theme)}function Xa(e){return Error(`Invalid theme registry definition: ${e}`)}function Vu(e){let t=new Set,r=[];for(let o of e){if(!bt(o)||t.has(o))continue;t.add(o),r.push(o)}return r}function aT(e){return e.filter(bt).join(`
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&&gt("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:h})),children:h?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:S.map((w,T)=>Me("span",{className:a(Ls({size:u,highlighted:M.has(T+1)})),children:[o&&Me("span",{className:a(Hs({size:u})),children:T+1},void 0,!1,void 0,this),w,`
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(`
5
5
 
6
- `)}function nT(e){let t=[],r=[],o=[];for(let[a,n]of Object.entries(e)){if(!bt(a))continue;if(t.push(a),bt(n)){o.push(n);continue}if(Fu(n)){o.push(n.cssText);continue}if(Du(n)){r.push({theme:a,light:n.light,dark:n.dark});continue}throw Xa(`record key "${a}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function sT(e){let t=[],r=[],o=[];for(let a of e){if(bt(a)){t.push(a);continue}if(!iT(a))throw Xa("array entry must be a theme name or an object with `theme`");let n=a.theme;if(t.push(n),Fu(a)){o.push(a.cssText);continue}if(Du(a)){r.push({theme:n,light:a.light,dark:a.dark});continue}throw Xa(`array entry "${n}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function lT(e){if(Array.isArray(e))return sT(e);return nT(e)}function Ou(e){return e}function Za(e){let{themes:t,cssText:r,...o}=e,a=lT(t),n=Vu(a.themeNames),s=Wr({...o,themes:n}),l=Vi({themes:a.tokenDefinitions,attribute:s.attribute,darkClassName:s.darkClassName}),m=aT([l,...a.cssBlocks,r??""]),d=Vu(s.themes);if(d.length===0)d.push(s.defaultTheme);return{defaultTheme:s.defaultTheme,themes:d,cssText:m,contract:s}}function Fi({registry:e,children:t,...r}){return Ii(sr,{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)}Fi.displayName="ThemeRegistryProvider";function Oi({registry:e,id:t,nonce:r,media:o}){if(!bt(e.cssText))return null;return Ii("style",{id:t,nonce:r,media:o,children:e.cssText},void 0,!1,void 0,this)}Oi.displayName="ThemeStyles";function Bu(e){let t=Za(e),{themes:r,cssText:o,...a}=e;return{registry:t,provider:({children:m,...d})=>{return Ii(Fi,{registry:t,...a,...d,children:m},void 0,!1,void 0,this)},styles:(m={})=>{return Ii(Oi,{registry:t,...m},void 0,!1,void 0,this)},useTheme:()=>{return Ai()}}}import{jsxDEV as tf}from"react/jsx-dev-runtime";function rf({children:e,density:t=No,defaultTheme:r="ghostly-solutions",defaultColorScheme:o=pt.system,...a}){return tf(sr,{defaultTheme:r,defaultColorScheme:o,...a,children:tf(wo,{density:t,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)}rf.displayName="UIProvider";import*as Bt from"react";var mT=()=>{};function dT({prop:e,defaultProp:t,onChange:r=mT}){let[o,a]=pT({defaultProp:t,onChange:r}),n=e!==void 0,s=n?e:o,l=Bt.useCallback((m)=>{if(n){let f=typeof m==="function"?m(e):m;if(f!==e)r(f)}else a(m)},[n,e,a,r]);return[s,l]}function pT({defaultProp:e,onChange:t}){let r=Bt.useState(e),[o]=r,a=Bt.useRef(o),n=t;return Bt.useEffect(()=>{if(a.current!==o)n?.(o),a.current=o},[o,n]),r}export{Hi as writeThemeStateToBrowserStorage,Ba as useToast,Ai as useTheme,eo as usePlatform,bv as useOverlay,Ra as useHotkey,Qr as useFormField,c as useDensitySize,af as useDensity,dT as useControllableState,jr as useComposedRefs,yg as useCommandShortcut,ji as useCommand,Lu as tooltipContentVariants,hu as toolbarVariants,xu as toolbarGroupVariants,xi as toggleVariants,gu as toggleGroupVariants,Ia as toastVariants,Va as toastActionVariants,nu as toast,_c as timelineVariants,Kc as timelineTitleVariants,Xc as timelineTimeVariants,Gc as timelineItemVariants,Uc as timelineDotVariants,Yc as timelineDescriptionVariants,$c as timelineContentVariants,Wc as timelineConnectorVariants,Oc as textareaVariants,kc as tabsTriggerVariants,Hc as tabsListVariants,Ac as tabsContentVariants,fc as tableVariants,bc as tableRowVariants,gc as tableHeaderVariants,Tc as tableHeadVariants,vc as tableFooterVariants,uc as tableContainerVariants,hc as tableCellVariants,Pc as tableCaptionVariants,yc as tableBodyVariants,dc as switchVariants,qp as stepperVariants,Jp as stepVariants,ec as stepTitleVariants,Qp as stepIndicatorVariants,tc as stepDescriptionVariants,jp as stepContentVariants,Ep as stepConnectorVariants,Xp as statCardVariants,ui as spotlightStatusVariants,fi as spotlightStatusTitleVariants,Kp as spotlightStatusDescriptionVariants,$p as spotlightShortcutVariants,Fp as spotlightResultsVariants,Ap as spotlightPanelVariants,kp as spotlightOverlayVariants,Bp as spotlightOptionVariants,Wp as spotlightOptionTitleVariants,_p as spotlightOptionIconVariants,Up as spotlightOptionDescriptionVariants,Gp as spotlightOptionContentVariants,ci as spotlightKbdVariants,Vp as spotlightInputVariants,Dp as spotlightIconVariants,Ip as spotlightHeaderVariants,Op as spotlightGroupLabelVariants,Np as sliderVariants,wp as sliderTrackVariants,Mp as sliderThumbVariants,Rp as sliderRangeVariants,Tp as skeletonVariants,hp as skeletonTextVariants,xp as skeletonButtonVariants,Pp as skeletonAvatarVariants,nd as sheetOverlayVariants,sd as sheetContentVariants,Zu as serializeThemeState,vp as separatorVariants,dp as selectTriggerVariants,pp as selectContentVariants,jd as segmentedControlVariants,tp as segmentedControlLabelVariants,ep as segmentedControlItemVariants,Yd as scrollBarVariants,Xd as scrollBarThumbVariants,Kd as scrollAreaVariants,Eu as resolveThemeState,Od as resizablePanelVariants,Fd as resizablePanelGroupVariants,Bd as resizableHandleVariants,_d as resizableHandleIconVariants,Ju as readThemeStateFromCookieHeader,Li as readThemeStateFromBrowserStorage,Id as radioItemVariants,Ad as radioGroupVariants,Rd as progressVariants,Md as progressIndicatorVariants,Lr as popoverContentVariants,qu as parseThemeState,Na as parseHotkey,yd as paginationVariants,Xo as paginationLinkVariants,bd as paginationItemVariants,Td as paginationEllipsisVariants,vd as paginationContentVariants,ed as otpSlotVariants,od as otpSeparatorVariants,rd as otpPlaceholderVariants,td as otpInputVariants,jm as otpGroupVariants,Em as otpContainerVariants,dt as normalizeThemeState,Wm as navigationMenuViewportVariants,Om as navigationMenuVariants,_m as navigationMenuTriggerVariants,Bm as navigationMenuListVariants,jy as navigationMenuLinkVariants,Um as navigationMenuIndicatorVariants,Gm as navigationMenuContentVariants,Vm as multiselectTriggerVariants,wa as matchHotkey,Lm as labelVariants,wm as kbdVariants,vr as isSameDay,Sm as inputVariants,xm as hoverCardContentVariants,ju as getThemeRootProps,ki as getSystemColorScheme,gT as formatHotkeyTokens,to as formatHotkey,gm as formFieldVariants,nm as fileUploadVariants,ma as fileUploadTextVariants,lm as fileUploadListVariants,mm as fileUploadItemVariants,pm as fileUploadItemSizeVariants,cm as fileUploadItemRemoveVariants,dm as fileUploadItemNameVariants,sm as fileUploadIconVariants,El as errorBoundaryVariants,em as errorBoundaryTitleVariants,jl as errorBoundaryIconVariants,om as errorBoundaryDetailsVariants,tm as errorBoundaryDescriptionVariants,rm as errorBoundaryActionsVariants,Kl as emptyStateVariants,Xl as emptyStateTitleVariants,Yl as emptyStateIconVariants,Zl as emptyStateDescriptionVariants,ql as emptyStateActionsVariants,Al as dropdownMenuShortcutVariants,kl as dropdownMenuSeparatorVariants,Ll as dropdownMenuRadioItemVariants,Hl as dropdownMenuLabelVariants,la as dropdownMenuItemVariants,sa as dropdownMenuContentVariants,Ml as dropdownMenuCheckboxItemVariants,Tl as drawerOverlayVariants,Pl as drawerHandleVariants,hl as drawerContentVariants,fl as dialogContentVariants,da as detectPlatform,Ou as defineThemes,Qw as cva,Vi as createThemesCss,Bu as createThemeSystem,Qu as createThemeSetCookieHeader,Za as createThemeRegistry,ef as createThemeCss,Wr as createThemeContract,fT as createOptionalContext,uT as createContext,rl as contextMenuShortcutVariants,tl as contextMenuSeparatorVariants,js as contextMenuRadioItemVariants,el as contextMenuLabelVariants,ra as contextMenuItemVariants,ta as contextMenuContentVariants,Es as contextMenuCheckboxItemVariants,cT as composeRefs,_s as commandShortcutVariants,Bs as commandSeparatorVariants,ks as commandOverlayVariants,Gs as commandLoadingVariants,Is as commandListVariants,Os as commandItemVariants,As as commandInputVariants,Ds as commandGroupVariants,Fs as commandGroupHeadingVariants,Vs as commandEmptyVariants,Hs as commandDialogVariants,Rs as collapsibleContentVariants,Ts as codeBlockVariants,zs as codeBlockPreVariants,Ss as codeBlockLineVariants,Ns as codeBlockLineNumberVariants,Ps as codeBlockLanguageVariants,hs as codeBlockHeaderVariants,xs as codeBlockCopyVariants,Cs as codeBlockContentVariants,i as cn,ys as checkboxVariants,ls as cardVariants,as as calendarWeekdayVariants,ts as calendarVariants,os as calendarTitleVariants,Qi as calendarNavButtonVariants,rs as calendarHeaderVariants,is as calendarGridVariants,ns as calendarDayVariants,$r as buttonVariants,cn as buttonIconVariants,Jn as buttonGroupVariants,un as buttonBadgeVariants,Gn as breadcrumbSeparatorVariants,_n as breadcrumbPageVariants,Fn as breadcrumbListVariants,Bn as breadcrumbLinkVariants,On as breadcrumbItemVariants,Wn as breadcrumbEllipsisVariants,An as badgeVariants,Ln as avatarVariants,an as alertVariants,nn as alertTitleVariants,Tn as alertDialogOverlayVariants,hn as alertDialogContentVariants,sn as alertDescriptionVariants,Ea as accordionTriggerVariants,Qa as accordionItemVariants,ja as accordionContentVariants,uf as XCircleIcon,ct as Variant,rf as UIProvider,Mu as TooltipTrigger,ar as TooltipSize,jb as TooltipProvider,Hu as TooltipContent,Ru as Tooltip,Su as ToolbarSpacer,tt as ToolbarSize,zu as ToolbarSeparator,Cu as ToolbarGroup,Pu as Toolbar,bu as ToggleGroupItem,vu as ToggleGroup,uu as Toggle,pu as Toaster,$e as ToastSize,jc as TimelineTitle,tu as TimelineTime,qc as TimelineItem,Qc as TimelineDot,eu as TimelineDescription,Ec as TimelineContent,Jc as TimelineConnector,Zc as Timeline,Oi as ThemeStyles,Fi as ThemeRegistryProvider,sr as ThemeProvider,Bc as Textarea,Dc as TabsTrigger,Vc as TabsList,Fc as TabsContent,Tb as Tabs,ze as TableSize,Nc as TableRow,Cc as TableHeader,wc as TableHead,Sc as TableFooter,Rc as TableCell,Mc as TableCaption,zc as TableBody,xc as Table,Xu as THEME_COOKIE_NAME,Gu as THEME_COLOR_SCHEME_ATTR,_u as THEME_ATTR,Br as SwitchStatus,Me as SwitchSize,pc as Switch,rc as Stepper,sc as StepTitle,ic as StepIndicator,lc as StepDescription,nc as StepContent,ac as StepConnector,oc as Step,er as StatCardTrend,Ue as StatCardSize,Zp as StatCard,Or as SpotlightStatus,jt as SpotlightSize,Yp as Spotlight,mr as SpinnerSize,dr as Spinner,Lp as Slider,Cp as SkeletonText,ye as SkeletonSize,Sp as SkeletonButton,zp as SkeletonAvatar,yo as Skeleton,ke as Size,dv as SheetTrigger,pd as SheetTitle,ie as SheetSize,ld as SheetPortal,fa as SheetOverlay,md as SheetHeader,dd as SheetFooter,cd as SheetDescription,Ko as SheetContent,pv as SheetClose,ua as Sheet,go as SeparatorOrientation,bp as Separator,$v as SelectValue,cp as SelectTrigger,Fr as SelectStatus,re as SelectSize,yp as SelectSeparator,fp as SelectLabel,gp as SelectItem,Uv as SelectGroup,uo as SelectContentWidthMode,Bv as SelectContentAlign,up as SelectContent,Wv as Select,ge as SegmentedControlSize,ap as SegmentedControlLabelItem,ip as SegmentedControlItem,op as SegmentedControl,ba as ScrollBar,Zd as ScrollArea,Uu as STORAGE_VERSION,Ku as STORAGE_THEME_STATE_KEY,$u as STORAGE_PREFIX,Yu as STORAGE_DENSITY_KEY,Gd as ResizablePanelGroup,Wd as ResizablePanel,Ud as ResizableHandle,Ir as RadioStatus,je as RadioSize,Dd as RadioGroupItem,Vd as RadioGroup,Ld as Progress,Oy as PopoverTrigger,Mr as PopoverSize,Am as PopoverContent,_y as PopoverClose,By as PopoverAnchor,Fy as Popover,We as PaginationSize,zd as PaginationPrevious,Sd as PaginationNext,Cd as PaginationLink,xd as PaginationItem,Nd as PaginationEllipsis,Pd as PaginationContent,hd as Pagination,gd as OverlayProvider,id as OTPInput,pa as NavigationMenuViewport,Ym as NavigationMenuTrigger,Qe as NavigationMenuSize,Km as NavigationMenuList,rv as NavigationMenuLink,tv as NavigationMenuItem,Zm as NavigationMenuIndicator,Xm as NavigationMenuContent,$m as NavigationMenu,fe as MultiselectSize,Dm as Multiselect,Iy as Loader,Rr as LabelSize,Hm as Label,wr as KbdSize,Rm as Kbd,Nm as Input,cf as InfoIcon,pr as IconSize,gy as HoverCardTrigger,Nr as HoverCardSize,Cm as HoverCardContent,fy as HoverCard,Xr as GroupOrientation,_e as FormFieldSize,vm as FormFieldLabel,hm as FormFieldError,Tm as FormFieldDescription,Pm as FormFieldControl,ym as FormField,um as FileUpload,im as ErrorBoundary,Jl as EmptyState,qg as DropdownMenuTrigger,Dl as DropdownMenuSubTrigger,Fl as DropdownMenuSubContent,Eg as DropdownMenuSub,$l as DropdownMenuShortcut,Ul as DropdownMenuSeparator,Gl as DropdownMenuRadioItem,jg as DropdownMenuRadioGroup,Qg as DropdownMenuPortal,Wl as DropdownMenuLabel,Go as DropdownMenuItemVariant,Bl as DropdownMenuItem,Jg as DropdownMenuGroup,Ol as DropdownMenuContent,_l as DropdownMenuCheckboxItem,Vl as DropdownMenu,Fg as DrawerTrigger,Nl as DrawerTitle,Be as DrawerSize,xl as DrawerPortal,na as DrawerOverlay,zl as DrawerHeader,Sl as DrawerFooter,wl as DrawerDescription,Cl as DrawerContent,Og as DrawerClose,Dg as Drawer,Hg as DialogTrigger,vl as DialogTitle,wt as DialogSize,ul as DialogPortal,ia as DialogOverlay,gl as DialogHeader,yl as DialogFooter,bl as DialogDescription,Bo as DialogContent,kg as DialogClose,oa as Dialog,wo as DensityProvider,No as DENSITY_DEFAULT,Wu as DARK_CLASS,zg as ContextMenuTrigger,il as ContextMenuSubTrigger,al as ContextMenuSubContent,wg as ContextMenuSub,cl as ContextMenuShortcut,pl as ContextMenuSeparator,ml as ContextMenuRadioItem,Rg as ContextMenuRadioGroup,Ng as ContextMenuPortal,dl as ContextMenuLabel,Fo as ContextMenuItemVariant,sl as ContextMenuItem,Sg as ContextMenuGroup,nl as ContextMenuContent,ll as ContextMenuCheckboxItem,Cg as ContextMenu,Js as CommandShortcut,qs as CommandSeparator,Qs as CommandLoading,Ks as CommandList,Do as CommandItemVariant,Zs as CommandItem,$s as CommandInput,Xs as CommandGroup,Ys as CommandEmpty,Us as CommandDialog,ea as Command,pt as ColorScheme,pg as CollapsibleTrigger,Ms as CollapsibleContent,dg as Collapsible,ws as CodeBlock,Pr as CheckboxStatus,Xe as CheckboxSize,vs as Checkbox,pf as CheckCircleIcon,us as CardTitle,ds as CardHeader,cs as CardFooter,fs as CardDescription,ps as CardContent,ms as Card,ss as Calendar,gn as ButtonLabel,fn as ButtonIcon,Qn as ButtonGroup,yn as ButtonBadge,vn as Button,ce as BreadcrumbSize,Zn as BreadcrumbSeparator,Xn as BreadcrumbPage,$n as BreadcrumbList,Yn as BreadcrumbLink,Kn as BreadcrumbItem,qn as BreadcrumbEllipsis,Un as Breadcrumb,Te as BadgeVariant,ht as BadgeTone,xt as BadgeSize,Dn as BadgeGroup,Ho as Badge,Fe as AvatarSize,Hn as AvatarImage,kn as AvatarGroup,qi as AvatarFallback,Zi as Avatar,zf as AspectRatio,df as AlertTriangleIcon,mn as AlertTitle,Cf as AlertDialogTrigger,Sn as AlertDialogTitle,Pt as AlertDialogSize,Pn as AlertDialogPortal,Xi as AlertDialogOverlay,Cn as AlertDialogHeader,zn as AlertDialogFooter,Nn as AlertDialogDescription,xn as AlertDialogContent,Rn as AlertDialogCancel,wn as AlertDialogAction,xf as AlertDialog,dn as AlertDescription,ln as Alert,rn as AccordionTrigger,Ne as AccordionSize,tn as AccordionItem,on as AccordionContent,en as Accordion};
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};