@ghostly-solutions/ui 0.3.8 → 0.3.10

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