@ghostly-solutions/ui 0.2.2 → 0.2.3

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,4 +1,4 @@
1
1
  "use client";
2
- import{cva as Rw}from"class-variance-authority";import*as je from"@radix-ui/react-accordion";import{cva as ba}from"class-variance-authority";import{ChevronDown as gu}from"lucide-react";import{createContext as bu,forwardRef as yo,useContext as zi}from"react";import{clsx as du}from"clsx";import{twMerge as pu}from"tailwind-merge";function a(...e){return pu(du(e))}import{createContext as cu,useContext as Ti}from"react";import{jsxDEV as xi}from"react/jsx-dev-runtime";var vo={default:"default",compact:"compact"},uu={[vo.default]:{},[vo.compact]:{xl:"lg",lg:"md",md:"sm",sm:"sm"}},ga=cu(vo.default),Ci=({density:e,children:t})=>{return xi(ga.Provider,{value:e,children:xi("div",{"data-density":e,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Ci.displayName="DensityProvider";var fu=()=>{return Ti(ga)};function d(e){let t=Ti(ga);if(e===void 0)return;return uu[t][e]??e}import{jsxDEV as ut}from"react/jsx-dev-runtime";var Te={sm:"sm",md:"md",lg:"lg"},va=bu(Te.md),Si=ba("border-b border-border"),wi=ba("gs-interactive flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[Te.sm]:"py-3 text-xs [&>svg]:size-3.5",[Te.md]:"py-4 text-sm [&>svg]:size-4",[Te.lg]:"py-5 text-base [&>svg]:size-5"}},defaultVariants:{size:Te.md}}),Mi=ba("gs-accordion-content overflow-hidden",{variants:{size:{[Te.sm]:"text-xs",[Te.md]:"text-sm",[Te.lg]:"text-base"}},defaultVariants:{size:Te.md}}),vu={[Te.sm]:"pt-0 pb-3",[Te.md]:"pt-0 pb-4",[Te.lg]:"pt-0 pb-5"},Ni=yo(({size:e=Te.md,...t},r)=>{let o=d(e)??Te.md;return ut(va.Provider,{value:o,children:ut(je.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ni.displayName="Accordion";var Li=yo(({className:e,...t},r)=>ut(je.Item,{ref:r,className:a(Si(),e),...t},void 0,!1,void 0,this));Li.displayName="AccordionItem";var Ri=yo(({className:e,children:t,...r},o)=>{let i=zi(va);return ut(je.Header,{className:"flex",children:ut(je.Trigger,{ref:o,className:a(wi({size:i}),e),...r,children:[t,ut(gu,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Ri.displayName="AccordionTrigger";var Hi=yo(({className:e,children:t,...r},o)=>{let i=zi(va);return ut(je.Content,{ref:o,className:a(Mi({size:i}),e),...r,children:ut("div",{className:vu[i],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Hi.displayName="AccordionContent";import{cva as ya}from"class-variance-authority";import{CircleAlert as yu,CircleCheck as Pu,Info as hu,TriangleAlert as xu}from"lucide-react";import{forwardRef as Pa}from"react";import{jsxDEV as ha}from"react/jsx-dev-runtime";var or={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Dr={sm:"sm",md:"md",lg:"lg",xl:"xl"},ki=ya("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:{[or.default]:"bg-background text-foreground",[or.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[or.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[or.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[or.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[Dr.sm]:"p-3 text-xs [&>svg]:top-3 [&>svg]:left-3 [&>svg~*]:pl-6",[Dr.md]:"p-4 text-sm",[Dr.lg]:"p-5 text-sm",[Dr.xl]:"p-6 text-base [&>svg]:top-6 [&>svg]:left-6 [&>svg~*]:pl-8"}},defaultVariants:{variant:or.default,size:Dr.md}}),Ai=ya("mb-1 font-medium leading-none tracking-tight"),Ii=ya("text-sm [&_p]:leading-relaxed"),Vi=Pa(({className:e,variant:t,size:r,...o},i)=>{let n=d(r);return ha("div",{ref:i,role:"alert",className:a(ki({variant:t,size:n}),e),...o},void 0,!1,void 0,this)});Vi.displayName="Alert";var Bi=Pa(({className:e,...t},r)=>ha("h5",{ref:r,className:a(Ai(),e),...t},void 0,!1,void 0,this));Bi.displayName="AlertTitle";var Di=Pa(({className:e,...t},r)=>ha("div",{ref:r,className:a(Ii(),e),...t},void 0,!1,void 0,this));Di.displayName="AlertDescription";import*as ue from"@radix-ui/react-alert-dialog";import{cva as Ui}from"class-variance-authority";import{forwardRef as ar}from"react";import{Slot as Fi}from"@radix-ui/react-slot";import{cva as Ta}from"class-variance-authority";import{forwardRef as ho}from"react";import{forwardRef as Tu}from"react";import{jsxDEV as xa}from"react/jsx-dev-runtime";var Vt={xs:"xs",sm:"sm",md:"md",lg:"lg",xl:"xl"},Cu={[Vt.xs]:"h-3 w-3",[Vt.sm]:"h-4 w-4",[Vt.md]:"h-5 w-5",[Vt.lg]:"h-6 w-6",[Vt.xl]:"h-8 w-8"},Po=Tu(({className:e,size:t=Vt.md,label:r="Loading",...o},i)=>{let n=d(t);return xa("span",{ref:i,className:a("inline-flex items-center justify-center",e),role:"status","aria-label":r,...o,children:[xa("span",{className:a("animate-spin rounded-full border-2 border-current border-r-transparent",Cu[n])},void 0,!1,void 0,this),xa("span",{className:"sr-only",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Po.displayName="Spinner";import{jsxDEV as lt}from"react/jsx-dev-runtime";var st={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},Pe={xs:"xs",sm:"sm",md:"md",lg:"lg",xl:"xl",icon:"icon",iconXs:"icon-xs",iconSm:"icon-sm",iconLg:"icon-lg"},ft={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Bt={xs:"xs",sm:"sm",md:"md",lg:"lg"},zu="Loading",Su="button",Fr=Ta("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:{[st.primary]:"border-primary bg-primary text-primary-foreground enabled:hover:bg-primary/90",[st.secondary]:"border-secondary bg-secondary text-secondary-foreground enabled:hover:bg-secondary/90",[st.neutral]:"border-border bg-muted text-foreground enabled:hover:bg-muted/90",[st.outline]:"border-border bg-background text-foreground enabled:hover:border-primary enabled:hover:bg-muted/50",[st.ghost]:"border-transparent bg-transparent text-foreground enabled:hover:bg-muted/70",[st.danger]:"border-destructive bg-destructive text-destructive-foreground enabled:hover:bg-destructive/90"},size:{[Pe.xs]:"h-7 px-2 text-xs",[Pe.sm]:"h-8 px-2.5 text-xs",[Pe.md]:"h-10 px-4 text-sm",[Pe.lg]:"h-11 px-5 text-sm",[Pe.xl]:"h-12 px-6 text-base",[Pe.icon]:"h-10 w-10 p-0",[Pe.iconXs]:"h-8 w-8 p-0",[Pe.iconSm]:"h-9 w-9 p-0",[Pe.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:st.primary,size:Pe.md}}),Oi=Ta("shrink-0",{variants:{size:{[Bt.xs]:"size-2.5",[Bt.sm]:"size-3",[Bt.md]:"size-4",[Bt.lg]:"size-4.5"}},defaultVariants:{size:Bt.md}}),_i=Ta("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[10px] leading-none",{variants:{tone:{[ft.default]:"border-border/70 bg-background/75 text-muted-foreground",[ft.success]:"border-success/35 bg-success/12 text-success",[ft.warning]:"border-warning/35 bg-warning/12 text-warning",[ft.error]:"border-destructive/35 bg-destructive/12 text-destructive",[ft.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:ft.default}});function wu(e){return e===Pe.icon||e===Pe.iconXs||e===Pe.iconSm||e===Pe.iconLg}function Mu(e,t,r){return e&&t?-1:r}function Nu(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function Lu(){if(typeof process>"u")return!0;return!0}var Gi=ho(({className:e,size:t=Bt.md,...r},o)=>lt(Fi,{ref:o,className:a(Oi({size:t}),e),...r},void 0,!1,void 0,this));Gi.displayName="ButtonIcon";var Wi=ho(({className:e,...t},r)=>lt("span",{ref:r,className:a("truncate",e),...t},void 0,!1,void 0,this));Wi.displayName="ButtonLabel";var $i=ho(({className:e,tone:t=ft.default,...r},o)=>lt("span",{ref:o,className:a(_i({tone:t}),e),...r},void 0,!1,void 0,this));$i.displayName="ButtonBadge";var Ki=ho(({className:e,variant:t=st.primary,size:r=Pe.md,asChild:o=!1,loading:i=!1,loadingText:n=zu,fullWidth:s=!1,leadingIcon:l,trailingIcon:m,disabled:p,children:f,type:u,tabIndex:P,onClick:c,...b},T)=>{let M=d(r),w=M??r,C=Nu(b);if(Lu()&&wu(w)&&!C)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let v=Boolean(p||i),x=a(Fr({variant:t,size:M}),s&&"w-full",e);if(o)return lt(Fi,{ref:T,className:x,"aria-disabled":v||void 0,"aria-busy":i||void 0,tabIndex:Mu(!0,v,P),onClick:v?(I)=>{I.preventDefault()}:c,...b,children:f},void 0,!1,void 0,this);return lt("button",{ref:T,className:x,disabled:v,"aria-disabled":v,"aria-busy":i,tabIndex:P,type:u??Su,onClick:i?void 0:c,...b,children:[lt("span",{className:a("absolute inset-0 flex items-center justify-center transition-opacity duration-150",i?"opacity-100":"opacity-0"),"aria-hidden":"true",children:lt(Po,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),i&&lt("span",{className:"sr-only",children:n},void 0,!1,void 0,this),lt("span",{className:a("inline-flex items-center justify-center gap-2 transition-opacity duration-150",i&&"opacity-0"),children:[l,f,m]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Ki.displayName="Button";import{jsxDEV as et}from"react/jsx-dev-runtime";var gt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Yi=Ui("gs-dialog-overlay fixed inset-0 z-50 bg-black/50"),Xi=Ui("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:{[gt.sm]:"max-w-sm",[gt.md]:"max-w-md",[gt.lg]:"max-w-lg",[gt.xl]:"max-w-xl",[gt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:gt.md}}),Ru=ue.Root,Hu=ue.Trigger,Zi=ue.Portal,Ca=ar(({className:e,...t},r)=>et(ue.Overlay,{ref:r,className:a(Yi(),e),...t},void 0,!1,void 0,this));Ca.displayName="AlertDialogOverlay";var qi=ar(({className:e,size:t=gt.md,...r},o)=>{let i=d(t);return et(Zi,{children:[et(Ca,{},void 0,!1,void 0,this),et(ue.Content,{ref:o,className:a(Xi({size:i}),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});qi.displayName="AlertDialogContent";var Ji=({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);Ji.displayName="AlertDialogHeader";var Qi=({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);Qi.displayName="AlertDialogFooter";var Ei=ar(({className:e,...t},r)=>et(ue.Title,{ref:r,className:a("text-lg font-semibold",e),...t},void 0,!1,void 0,this));Ei.displayName="AlertDialogTitle";var ji=ar(({className:e,...t},r)=>et(ue.Description,{ref:r,className:a("text-sm text-muted-foreground",e),...t},void 0,!1,void 0,this));ji.displayName="AlertDialogDescription";var en=ar(({className:e,...t},r)=>et(ue.Action,{ref:r,className:a(Fr(),e),...t},void 0,!1,void 0,this));en.displayName="AlertDialogAction";var tn=ar(({className:e,...t},r)=>et(ue.Cancel,{ref:r,className:a(Fr({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));tn.displayName="AlertDialogCancel";import*as rn from"@radix-ui/react-aspect-ratio";var ku=rn.Root;import*as nr from"@radix-ui/react-avatar";import{cva as Au}from"class-variance-authority";import{forwardRef as xo}from"react";import{jsxDEV as ir}from"react/jsx-dev-runtime";var Ie={sm:"sm",md:"md",lg:"lg",xl:"xl"},on=Au("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{[Ie.sm]:"h-6 w-6",[Ie.md]:"h-10 w-10",[Ie.lg]:"h-12 w-12",[Ie.xl]:"h-16 w-16"}},defaultVariants:{size:Ie.md}}),za=xo(({className:e,size:t=Ie.md,...r},o)=>{let i=d(t);return ir(nr.Root,{ref:o,className:a(on({size:i}),e),...r},void 0,!1,void 0,this)});za.displayName="Avatar";var an=xo(({className:e,...t},r)=>ir(nr.Image,{ref:r,className:a("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));an.displayName="AvatarImage";var Sa=xo(({className:e,...t},r)=>ir(nr.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));Sa.displayName="AvatarFallback";var Iu={[Ie.sm]:"-space-x-2",[Ie.md]:"-space-x-3",[Ie.lg]:"-space-x-4",[Ie.xl]:"-space-x-5"},nn=xo(({className:e,children:t,max:r,size:o=Ie.md,...i},n)=>{let s=d(o),l=Array.isArray(t)?t:[t],m=r?l.slice(0,r):l,p=r?Math.max(0,l.length-r):0;return ir("div",{ref:n,className:a("flex items-center",Iu[s],e),...i,children:[m,p>0&&ir(za,{size:s,className:"border-2 border-background",children:ir(Sa,{className:"text-xs",children:["+",p]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});nn.displayName="AvatarGroup";import{Slot as Vu}from"@radix-ui/react-slot";import{cva as Bu}from"class-variance-authority";import{X as Du}from"lucide-react";import{forwardRef as Fu}from"react";import{jsxDEV as Or}from"react/jsx-dev-runtime";var ge={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},bt={sm:"sm",md:"md",lg:"lg",dot:"dot"},sn=Bu("inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium",{variants:{variant:{[ge.default]:"border-border bg-muted text-muted-foreground",[ge.primary]:"border-primary/30 bg-primary/10 text-primary",[ge.success]:"border-success/30 bg-success/10 text-success",[ge.warning]:"border-warning/30 bg-warning/10 text-warning",[ge.error]:"border-destructive/30 bg-destructive/10 text-destructive",[ge.info]:"border-info/30 bg-info/10 text-info",[ge.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[bt.sm]:"h-5 px-2 text-[10px]",[bt.md]:"h-6 px-2.5 text-xs",[bt.lg]:"h-7 px-3 text-sm",[bt.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:ge.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:ge.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:ge.success,className:"border-success bg-success text-background"},{solid:!0,variant:ge.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:ge.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:ge.info,className:"border-info bg-info text-background"},{solid:!0,variant:ge.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:ge.default,solid:!1,size:bt.md}}),ln=Fu(({className:e,variant:t=ge.default,size:r=bt.md,solid:o=!1,pulse:i=!1,removable:n=!1,onRemove:s,onClick:l,children:m,asChild:p=!1,...f},u)=>{let P=d(r),c=Boolean(l),b=P===bt.dot,T=(C)=>{C.stopPropagation(),s?.(C)},M=a(sn({variant:t,solid:o,size:P}),c&&"cursor-pointer",i&&"animate-pulse",n&&!b&&"pr-1",e),w=n&&!b&&Or("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:T,"aria-label":"Remove",tabIndex:-1,children:Or(Du,{className:"size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(p)return Or(Vu,{ref:u,className:M,onClick:l,...f,children:m},void 0,!1,void 0,this);if(c)return Or("button",{ref:u,className:M,onClick:l,type:"button",...f,children:[!b&&m,w]},void 0,!0,void 0,this);return Or("span",{ref:u,className:M,...f,children:[!b&&m,w]},void 0,!0,void 0,this)});ln.displayName="Badge";import{Children as Ou,cloneElement as _u,forwardRef as Gu,isValidElement as Wu,useCallback as mn,useLayoutEffect as $u,useRef as Ku,useState as Uu}from"react";import{jsxDEV as dn}from"react/jsx-dev-runtime";function Yu(e){let t=[];return Ou.forEach(e,(r,o)=>{if(!Wu(r))return;let i=r.key??o;t.push({key:i,element:r,isLeaving:!1})}),t}function Xu(e,t){let r=new Set(t.map((n)=>n.key)),o=new Set(e.map((n)=>n.key)),i=[];for(let n of e)if(r.has(n.key)){let s=t.find((l)=>l.key===n.key);if(s)i.push({...s,isLeaving:!1})}else i.push({...n,isLeaving:!0});for(let n of t)if(!o.has(n.key))i.push(n);return i}function Zu(e,t,r){if(r.current)return r.current=!1,t;return Xu(e,t)}var pn=Gu(({children:e,className:t,onRemove:r,gap:o="sm"},i)=>{let[n,s]=Uu([]),l=Ku(!0);$u(()=>{let u=Yu(e);s((P)=>Zu(P,u,l))},[e]);let m=mn((u)=>{s((P)=>P.filter((c)=>c.key!==u))},[]),p=mn((u)=>{r?.(u)},[r]),f={sm:"gap-1",md:"gap-2",lg:"gap-3"}[o];return dn("div",{ref:i,className:a("inline-flex flex-wrap items-center",f,t),children:n.map((u)=>{let P={};if(u.element.props.removable&&r)P.onRemove=()=>{p(u.key)};let c=a("inline-flex transition-all duration-200",u.isLeaving&&"pointer-events-none scale-95 opacity-0");return dn("span",{className:c,onTransitionEnd:u.isLeaving?()=>m(u.key):void 0,children:_u(u.element,P)},u.key,!1,void 0,this)})},void 0,!1,void 0,this)});pn.displayName="BadgeGroup";import{Slot as qu}from"@radix-ui/react-slot";import{cva as sr}from"class-variance-authority";import{ChevronRight as Ju,MoreHorizontal as Qu}from"lucide-react";import{createContext as Eu,forwardRef as _r,useContext as wa}from"react";import{jsxDEV as $e}from"react/jsx-dev-runtime";var le={sm:"sm",md:"md",lg:"lg"},To=Eu(le.md),cn=sr("flex flex-wrap items-center break-words text-muted-foreground",{variants:{size:{[le.sm]:"gap-1 text-xs",[le.md]:"gap-1.5 text-sm sm:gap-2.5",[le.lg]:"gap-2 text-base sm:gap-3"}},defaultVariants:{size:le.md}}),un=sr("inline-flex items-center gap-1.5"),fn=sr("gs-interactive hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),gn=sr("font-normal text-foreground"),bn=sr("",{variants:{size:{[le.sm]:"[&>svg]:size-3",[le.md]:"[&>svg]:size-3.5",[le.lg]:"[&>svg]:size-4"}},defaultVariants:{size:le.md}}),vn=sr("flex items-center justify-center",{variants:{size:{[le.sm]:"h-7 w-7 [&>svg]:size-3.5",[le.md]:"h-9 w-9 [&>svg]:size-4",[le.lg]:"h-10 w-10 [&>svg]:size-5"}},defaultVariants:{size:le.md}}),yn=_r(({size:e=le.md,...t},r)=>{let o=d(e)??le.md;return $e(To.Provider,{value:o,children:$e("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});yn.displayName="Breadcrumb";var Pn=_r(({className:e,...t},r)=>{let o=wa(To);return $e("ol",{ref:r,className:a(cn({size:o}),e),...t},void 0,!1,void 0,this)});Pn.displayName="BreadcrumbList";var hn=_r(({className:e,...t},r)=>$e("li",{ref:r,className:a(un(),e),...t},void 0,!1,void 0,this));hn.displayName="BreadcrumbItem";var xn=_r(({asChild:e,className:t,...r},o)=>{return $e(e?qu:"a",{ref:o,className:a(fn(),t),...r},void 0,!1,void 0,this)});xn.displayName="BreadcrumbLink";var Tn=_r(({className:e,...t},r)=>$e("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:a(gn(),e),...t},void 0,!1,void 0,this));Tn.displayName="BreadcrumbPage";var Cn=({children:e,className:t,...r})=>{let o=wa(To),i={[le.sm]:"size-3",[le.md]:"size-3.5",[le.lg]:"size-4"};return $e("li",{role:"presentation","aria-hidden":"true",className:a(bn({size:o}),t),...r,children:e??$e(Ju,{className:i[o]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Cn.displayName="BreadcrumbSeparator";var zn=({className:e,...t})=>{let r=wa(To);return $e("span",{role:"presentation","aria-hidden":"true",className:a(vn({size:r}),e),...t,children:[$e(Qu,{},void 0,!1,void 0,this),$e("span",{className:"sr-only",children:"More"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};zn.displayName="BreadcrumbEllipsis";import{cva as ju}from"class-variance-authority";import{forwardRef as ef}from"react";import{jsxDEV as tf}from"react/jsx-dev-runtime";var Gr={horizontal:"horizontal",vertical:"vertical"},Sn=ju("inline-flex items-stretch",{variants:{orientation:{[Gr.horizontal]:"flex-row",[Gr.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:Gr.horizontal,attached:!1}}),wn=ef(({className:e,orientation:t=Gr.horizontal,attached:r=!1,fullWidth:o=!1,...i},n)=>tf("div",{ref:n,className:a(Sn({orientation:t,attached:r}),o&&"w-full",e),...i},void 0,!1,void 0,this));wn.displayName="ButtonGroup";import{cva as vt}from"class-variance-authority";import{forwardRef as rf,useCallback as lr,useEffect as of,useMemo as Mn,useState as Nn}from"react";import{jsxDEV as Re}from"react/jsx-dev-runtime";var B={sm:"sm",md:"md",lg:"lg",xl:"xl"},Rn=vt("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}}),Hn=vt("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}}),kn=vt("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}}),Ma=vt(["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}}),An=vt("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}}),In=vt("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}}),Vn=vt(["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"}}),af=vt("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}}),Ln=["Su","Mo","Tu","We","Th","Fr","Sa"],nf=["January","February","March","April","May","June","July","August","September","October","November","December"],mt=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),mr=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},Bn=rf(({className:e,size:t="md",cellSize:r,mode:o="single",value:i,defaultValue:n,onChange:s,rangeValue:l,onRangeChange:m,viewMonth:p,onViewMonthChange:f,minDate:u,maxDate:P,disabledDates:c=[],weekStartsOn:b=1,highlightToday:T=!0,...M},w)=>{let C=d(t)??B.md,v=d(r??C)??C,[x,I]=Nn(i??n??null),[z,H]=Nn(i??n??new Date),k=p??z,_=lr((g)=>{if(f){let y=typeof g==="function"?g(p??z):g;f(y)}else H((y)=>{return typeof g==="function"?g(y):g})},[p,z,f]),X=i!==void 0?i:x,O=u?mt(u):null,$=P?mt(P):null;of(()=>{if(i!==void 0){if(I(i??null),i&&!p)H(i)}},[i,p]);let S=lr((g,y)=>{return(new Date(g,y,1).getDay()-b+7)%7},[b]),A=Mn(()=>{let g=k.getFullYear(),y=k.getMonth(),N=S(g,y),ce=new Date(g,y+1,0).getDate(),Z=[];for(let E=0;E<N;E+=1)Z.push({key:`leading-${g}-${y}-${E}`,date:null});for(let E=1;E<=ce;E+=1)Z.push({key:`day-${g}-${y}-${E}`,date:new Date(g,y,E)});let Ae=(7-Z.length%7)%7;for(let E=0;E<Ae;E+=1)Z.push({key:`trailing-${g}-${y}-${E}`,date:null});return Z},[k,S]),h=lr((g)=>{let y=mt(g);if(O&&y<O)return!0;if($&&y>$)return!0;return c.some((N)=>mr(y,mt(N)))},[O,$,c]),V=lr((g)=>{if(h(g))return"disabled";if(o==="range"&&l){let{from:y,to:N}=l;if(y&&mr(g,y))return"rangeStart";if(N&&mr(g,N))return"rangeEnd";if(y&&N){let ce=mt(g),Z=mt(y),Ae=mt(N);if(ce>Z&&ce<Ae)return"range"}}if(o==="single"&&X&&mr(g,X))return"selected";if(T&&mr(g,new Date))return"today";return"default"},[X,T,h,o,l]),J=lr((g)=>{if(h(g))return;let y=new Date(g);if(o==="range"){if(!l?.from||l.from&&l.to)m?.({from:y,to:void 0});else{let N=mt(l.from);if(mt(y)<N)m?.({from:y,to:l.from});else m?.({from:l.from,to:y})}return}if(i===void 0)I(y);s?.(y)},[h,o,s,m,l,i]),L=lr((g)=>{_((y)=>{let N=new Date(y);return N.setMonth(N.getMonth()+g),N})},[_]),U=Mn(()=>{return[...Ln.slice(b),...Ln.slice(0,b)]},[b]);return Re("div",{ref:w,className:a(Rn({size:C}),e),...M,children:[Re("div",{className:a(Hn({size:C})),children:[Re("button",{type:"button",onClick:()=>L(-1),className:a(Ma({size:C})),"aria-label":"Previous month",children:Re("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Re("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),Re("span",{className:a(kn({size:C})),children:[nf[k.getMonth()]," ",k.getFullYear()]},void 0,!0,void 0,this),Re("button",{type:"button",onClick:()=>L(1),className:a(Ma({size:C})),"aria-label":"Next month",children:Re("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Re("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),Re("div",{className:a(An({size:C})),children:[U.map((g)=>Re("div",{className:a(In({size:v})),children:g},g,!1,void 0,this)),A.map((g)=>{if(!g.date)return Re("div",{"aria-hidden":"true",className:a(af({size:v}))},g.key,!1,void 0,this);let y=g.date,N=V(y);return Re("button",{type:"button",onClick:()=>J(y),disabled:N==="disabled",className:a(Vn({size:v,state:N})),children:y.getDate()},g.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Bn.displayName="Calendar";import{Slot as dr}from"@radix-ui/react-slot";import{cva as sf}from"class-variance-authority";import{forwardRef as pr}from"react";import{jsxDEV as cr}from"react/jsx-dev-runtime";var Co={default:"default",muted:"muted",danger:"danger"},Dn=sf("gs-interactive relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[Co.default]:"border-border",[Co.muted]:"border-border/70 bg-muted/40",[Co.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:Co.default}}),Fn=pr(({asChild:e=!1,className:t,variant:r,...o},i)=>{return cr(e?dr:"div",{ref:i,className:a(Dn({variant:r}),t),...o},void 0,!1,void 0,this)});Fn.displayName="Card";var On=pr(({asChild:e=!1,className:t,...r},o)=>{return cr(e?dr:"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)});On.displayName="CardHeader";var _n=pr(({asChild:e=!1,className:t,...r},o)=>{return cr(e?dr:"div",{ref:o,className:a("p-4",t),...r},void 0,!1,void 0,this)});_n.displayName="CardContent";var Gn=pr(({asChild:e=!1,className:t,...r},o)=>{return cr(e?dr:"div",{ref:o,className:a("flex items-center border-t border-border/50 p-4",t),...r},void 0,!1,void 0,this)});Gn.displayName="CardFooter";var Wn=pr(({asChild:e=!1,className:t,...r},o)=>{return cr(e?dr:"h3",{ref:o,className:a("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});Wn.displayName="CardTitle";var $n=pr(({asChild:e=!1,className:t,...r},o)=>{return cr(e?dr:"p",{ref:o,className:a("text-sm text-muted-foreground",t),...r},void 0,!1,void 0,this)});$n.displayName="CardDescription";import*as So from"@radix-ui/react-checkbox";import{cva as lf}from"class-variance-authority";import{Check as mf,Minus as df}from"lucide-react";import{forwardRef as pf}from"react";import{jsxDEV as zo}from"react/jsx-dev-runtime";var Ke={sm:"sm",md:"md",lg:"lg",xl:"xl"},ur={default:"default",error:"error",success:"success"},Un=lf("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:{[Ke.sm]:"h-4 w-4",[Ke.md]:"h-5 w-5",[Ke.lg]:"h-6 w-6",[Ke.xl]:"h-7 w-7"},status:{[ur.default]:"enabled:hover:border-primary/70",[ur.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",[ur.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:Ke.md,status:ur.default}}),Kn={[Ke.sm]:"size-3.5",[Ke.md]:"size-3.5",[Ke.lg]:"size-4",[Ke.xl]:"size-5"},Yn=pf(({className:e,size:t=Ke.md,status:r=ur.default,checked:o,disabled:i,...n},s)=>{let l=d(t);return zo(So.Root,{ref:s,checked:o,disabled:i,className:a(Un({size:l,status:r}),e),...n,children:zo(So.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:o==="indeterminate"?zo(df,{className:Kn[l]},void 0,!1,void 0,this):zo(mf,{className:Kn[l]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Yn.displayName="Checkbox";import{cva as yt}from"class-variance-authority";import{forwardRef as cf,useCallback as uf,useState as ff}from"react";import{jsxDEV as Ce,Fragment as Xn}from"react/jsx-dev-runtime";var K={sm:"sm",md:"md",lg:"lg"},Na={default:"default",ghost:"ghost"},Zn=yt("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[K.sm]:"text-xs",[K.md]:"text-sm",[K.lg]:"text-base"},variant:{[Na.default]:"bg-muted border border-border",[Na.ghost]:"bg-transparent"}},defaultVariants:{size:K.md,variant:Na.default}}),qn=yt("flex items-center justify-between border-b border-border bg-muted",{variants:{size:{[K.sm]:"px-2.5 py-1.5 text-xs",[K.md]:"px-4 py-2 text-sm",[K.lg]:"px-5 py-2.5 text-base"}},defaultVariants:{size:K.md}}),Jn=yt("text-muted-foreground font-medium",{variants:{size:{[K.sm]:"text-[11px]",[K.md]:"text-xs",[K.lg]:"text-sm"}},defaultVariants:{size:K.md}}),Qn=yt(["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:{[K.sm]:"px-2 py-1 text-xs",[K.md]:"px-2.5 py-1 text-xs",[K.lg]:"px-3 py-1.5 text-sm"},copied:{true:"text-success",false:""}},defaultVariants:{size:K.md,copied:!1}}),En=yt("overflow-x-auto",{variants:{size:{[K.sm]:"p-2.5",[K.md]:"p-4",[K.lg]:"p-5"}},defaultVariants:{size:K.md}}),jn=yt("text-foreground",{variants:{size:{[K.sm]:"",[K.md]:"",[K.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:K.md,showLineNumbers:!1}}),es=yt("block",{variants:{size:{[K.sm]:"min-h-[1.25rem]",[K.md]:"min-h-[1.5rem]",[K.lg]:"min-h-[1.75rem]"},highlighted:{true:"bg-primary/10 -mx-4 px-4",false:""}},defaultVariants:{size:K.md,highlighted:!1}}),ts=yt("inline-block text-right text-muted-foreground select-none",{variants:{size:{[K.sm]:"w-6 mr-2 text-[10px]",[K.md]:"w-8 mr-4 text-xs",[K.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:K.md}}),rs=cf(({className:e,code:t,language:r,showLineNumbers:o=!1,highlightedLines:i=[],showCopy:n=!0,size:s="md",variant:l="default",onCopy:m,...p},f)=>{let u=d(s),[P,c]=ff(!1),b=uf(async()=>{try{await navigator.clipboard.writeText(t),c(!0),m?.(t),setTimeout(()=>c(!1),2000)}catch(w){}},[t,m]),T=t.split(`
3
- `),M=new Set(i);return Ce("div",{ref:f,className:a(Zn({size:u,variant:l}),e),...p,children:[(r||n)&&Ce("div",{className:a(qn({size:u})),children:[Ce("span",{className:a(Jn({size:u})),children:r},void 0,!1,void 0,this),n&&Ce("button",{type:"button",onClick:b,className:a(Qn({size:u,copied:P})),children:P?Ce(Xn,{children:[Ce("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ce("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):Ce(Xn,{children:[Ce("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ce("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),Ce("div",{className:a(En({size:u})),children:Ce("pre",{className:a(jn({size:u,showLineNumbers:o})),children:Ce("code",{children:T.map((w,C)=>Ce("span",{className:a(es({size:u,highlighted:M.has(C+1)})),children:[o&&Ce("span",{className:a(ts({size:u})),children:C+1},void 0,!1,void 0,this),w,`
4
- `]},`line-${String(C)}`,!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)});rs.displayName="CodeBlock";import*as fr from"@radix-ui/react-collapsible";import{cva as gf}from"class-variance-authority";import{forwardRef as bf}from"react";import{jsxDEV as Pf}from"react/jsx-dev-runtime";var os=gf("gs-collapsible-content overflow-hidden"),vf=fr.Root,yf=fr.CollapsibleTrigger,as=bf(({className:e,...t},r)=>Pf(fr.CollapsibleContent,{ref:r,className:a(os(),e),...t},void 0,!1,void 0,this));as.displayName="CollapsibleContent";import*as Pt from"@radix-ui/react-dialog";import{cva as Ue}from"class-variance-authority";import{createContext as hf,forwardRef as tt,useContext as xf,useEffect as Tf,useState as is}from"react";import{jsxDEV as fe}from"react/jsx-dev-runtime";var ns=Ue(["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"}}),ss=Ue(["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"]),ls=Ue(["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"]),ms=Ue(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),ds=Ue(["py-6 text-center text-sm text-muted-foreground"]),ps=Ue(["overflow-hidden"]),cs=Ue(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),wo={default:"default",danger:"danger"},us=Ue(["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:{[wo.default]:"text-foreground",[wo.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive focus:text-destructive-foreground"}},defaultVariants:{selected:!1,variant:wo.default}}),fs=Ue(["-mx-1 my-1 h-px bg-border"]),gs=Ue(["ml-auto text-xs tracking-widest text-muted-foreground"]),bs=Ue(["flex items-center justify-center py-6"]),vs=hf(null),La=()=>{let e=xf(vs);if(!e)throw Error("useCommand must be used within a Command");return e},Ra=tt(({className:e,children:t,loop:r=!0,...o},i)=>{let[n,s]=is(""),[l,m]=is(0);return fe(vs.Provider,{value:{search:n,setSearch:s,selectedIndex:l,setSelectedIndex:m},children:fe("div",{ref:i,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)});Ra.displayName="Command";var ys=tt(({children:e,size:t,...r},o)=>{return fe(Pt.Root,{...r,children:fe(Pt.Portal,{children:[fe(Pt.Overlay,{className:a(ss())},void 0,!1,void 0,this),fe(Pt.Content,{ref:o,className:a(ns({size:t})),children:fe(Ra,{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)});ys.displayName="CommandDialog";var Ps=tt(({className:e,icon:t,...r},o)=>{let{search:i,setSearch:n,setSelectedIndex:s}=La();return fe("div",{className:"flex items-center border-border border-b px-3",children:[t&&fe("span",{className:"mr-2 shrink-0 text-muted-foreground",children:t},void 0,!1,void 0,this),fe("input",{ref:o,value:i,onChange:(l)=>{n(l.target.value),s(0)},className:a(ls(),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Ps.displayName="CommandInput";var hs=tt(({className:e,children:t,...r},o)=>{return fe("div",{ref:o,className:a(ms(),e),...r,children:t},void 0,!1,void 0,this)});hs.displayName="CommandList";var xs=tt(({className:e,children:t="No results found.",...r},o)=>{return fe("div",{ref:o,className:a(ds(),e),...r,children:t},void 0,!1,void 0,this)});xs.displayName="CommandEmpty";var Ts=tt(({className:e,heading:t,children:r,...o},i)=>{return fe("div",{ref:i,className:a(ps(),e),...o,children:[t&&fe("div",{className:a(cs()),children:t},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});Ts.displayName="CommandGroup";var Cs=tt(({className:e,disabled:t,onSelect:r,children:o,keywords:i,variant:n,...s},l)=>{let{search:m}=La();if(!(()=>{if(!m)return!0;let f=m.toLowerCase();if((typeof o==="string"?o.toLowerCase():"").includes(f))return!0;if(i?.some((P)=>P.toLowerCase().includes(f)))return!0;return!1})())return null;return fe("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:n}),e),...s,children:o},void 0,!1,void 0,this)});Cs.displayName="CommandItem";var zs=tt(({className:e,...t},r)=>{return fe("div",{ref:r,className:a(fs(),e),...t},void 0,!1,void 0,this)});zs.displayName="CommandSeparator";var Ss=tt(({className:e,children:t,...r},o)=>{return fe("span",{ref:o,className:a(gs(),e),...r,children:t},void 0,!1,void 0,this)});Ss.displayName="CommandShortcut";var ws=tt(({className:e,children:t,...r},o)=>{return fe("div",{ref:o,className:a(bs(),e),...r,children:t},void 0,!1,void 0,this)});ws.displayName="CommandLoading";var Cf=({key:e,modifier:t="meta",callback:r})=>{Tf(()=>{let o=(i)=>{if({ctrl:i.ctrlKey,meta:i.metaKey,alt:i.altKey,shift:i.shiftKey}[t]&&i.key.toLowerCase()===e.toLowerCase())i.preventDefault(),r()};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[e,t,r])};import*as D from"@radix-ui/react-context-menu";import{cva as Dt}from"class-variance-authority";import{Check as zf,ChevronRight as Sf,Circle as wf}from"lucide-react";import{createContext as Mf,forwardRef as ht,useContext as gr}from"react";import{jsxDEV as me}from"react/jsx-dev-runtime";var G={sm:"sm",md:"md",lg:"lg"},Mo={default:"default",danger:"danger"},Ft=Mf(G.md),Ha=Dt("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)]"),ka=Dt("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:{[G.sm]:"h-6 gap-1.5 px-1.5 text-xs [&_svg]:size-3",[G.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[G.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Mo.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Mo.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive focus:text-destructive-foreground"}},defaultVariants:{size:G.md,variant:Mo.default}}),Ms=Dt("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:{[G.sm]:"h-6 pl-6 pr-1.5 text-xs",[G.md]:"h-8 pl-8 pr-2 text-sm",[G.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:G.md}}),Ns=Dt("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:{[G.sm]:"h-6 pl-6 pr-1.5 text-xs",[G.md]:"h-8 pl-8 pr-2 text-sm",[G.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:G.md}}),Ls=Dt("font-semibold text-muted-foreground",{variants:{size:{[G.sm]:"px-1.5 py-0.5 text-[10px]",[G.md]:"px-2 py-1.5 text-xs",[G.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:G.md}}),Rs=Dt("-mx-1 my-1 h-px bg-border/50"),Hs=Dt("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[G.sm]:"text-[10px]",[G.md]:"text-xs",[G.lg]:"text-xs"}},defaultVariants:{size:G.md}}),ks={[G.sm]:"absolute left-1.5 flex size-3 items-center justify-center",[G.md]:"absolute left-2 flex size-3.5 items-center justify-center",[G.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},Nf={[G.sm]:"size-3",[G.md]:"size-3.5",[G.lg]:"size-4"},Lf={[G.sm]:"size-1.5 fill-current",[G.md]:"size-2 fill-current",[G.lg]:"size-2.5 fill-current"},Rf=D.Root,Hf=D.Trigger,kf=D.Group,Af=D.Portal,If=D.Sub,Vf=D.RadioGroup,As=ht(({className:e,inset:t,children:r,...o},i)=>{let n=gr(Ft),s=d(n);return me(D.SubTrigger,{ref:i,className:a(ka({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,me(Sf,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});As.displayName=D.SubTrigger.displayName;var Is=ht(({className:e,...t},r)=>me(D.Portal,{children:me(D.SubContent,{ref:r,className:a(Ha(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Is.displayName=D.SubContent.displayName;var Vs=ht(({className:e,size:t,...r},o)=>{let i=d(t)??G.md;return me(Ft.Provider,{value:i,children:me(D.Portal,{children:me(D.Content,{ref:o,className:a(Ha(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Vs.displayName=D.Content.displayName;var Bs=ht(({className:e,inset:t,variant:r,...o},i)=>{let n=gr(Ft),s=d(n);return me(D.Item,{ref:i,className:a(ka({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});Bs.displayName=D.Item.displayName;var Ds=ht(({className:e,children:t,checked:r,...o},i)=>{let n=gr(Ft),s=d(n)??G.md;return me(D.CheckboxItem,{ref:i,className:a(Ms({size:s}),e),checked:r,...o,children:[me("span",{className:ks[s],children:me(D.ItemIndicator,{children:me(zf,{className:Nf[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)});Ds.displayName=D.CheckboxItem.displayName;var Fs=ht(({className:e,children:t,...r},o)=>{let i=gr(Ft),n=d(i)??G.md;return me(D.RadioItem,{ref:o,className:a(Ns({size:n}),e),...r,children:[me("span",{className:ks[n],children:me(D.ItemIndicator,{children:me(wf,{className:Lf[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)});Fs.displayName=D.RadioItem.displayName;var Os=ht(({className:e,inset:t,...r},o)=>{let i=gr(Ft),n=d(i);return me(D.Label,{ref:o,className:a(Ls({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Os.displayName=D.Label.displayName;var _s=ht(({className:e,...t},r)=>me(D.Separator,{ref:r,className:a(Rs(),e),...t},void 0,!1,void 0,this));_s.displayName=D.Separator.displayName;var Gs=({className:e,...t})=>{let r=gr(Ft),o=d(r);return me("span",{className:a(Hs({size:o}),e),...t},void 0,!1,void 0,this)};Gs.displayName="ContextMenuShortcut";import*as be from"@radix-ui/react-dialog";import{cva as Bf}from"class-variance-authority";import{X as Df}from"lucide-react";import{forwardRef as No}from"react";import{jsxDEV as Ye}from"react/jsx-dev-runtime";var xt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Aa=be.Root,Ff=be.Trigger,Ws=be.Portal,Of=be.Close,Ia=No(({className:e,...t},r)=>Ye(be.Overlay,{ref:r,className:a("gs-dialog-overlay fixed inset-0 z-50 bg-black/50",e),...t},void 0,!1,void 0,this));Ia.displayName="DialogOverlay";var $s=Bf("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:{[xt.sm]:"max-w-sm",[xt.md]:"max-w-md",[xt.lg]:"max-w-lg",[xt.xl]:"max-w-xl",[xt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:xt.md}}),Lo=No(({className:e,children:t,size:r=xt.md,showClose:o=!0,...i},n)=>{let s=d(r);return Ye(Ws,{children:[Ye(Ia,{},void 0,!1,void 0,this),Ye(be.Content,{ref:n,className:a($s({size:s}),e),...i,children:[t,o&&Ye(be.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:[Ye(Df,{className:"size-4"},void 0,!1,void 0,this),Ye("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)});Lo.displayName="DialogContent";var Ks=({className:e,...t})=>Ye("div",{className:a("flex flex-col space-y-1.5 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Ks.displayName="DialogHeader";var Us=({className:e,...t})=>Ye("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);Us.displayName="DialogFooter";var Ys=No(({className:e,...t},r)=>Ye(be.Title,{ref:r,className:a("font-semibold text-lg leading-none tracking-tight",e),...t},void 0,!1,void 0,this));Ys.displayName="DialogTitle";var Xs=No(({className:e,...t},r)=>Ye(be.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Xs.displayName="DialogDescription";import{cva as Va}from"class-variance-authority";import{X as _f}from"lucide-react";import{forwardRef as Ro}from"react";import{Drawer as dt}from"vaul";import{jsxDEV as Ve}from"react/jsx-dev-runtime";var Be={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Gf={[Be.sm]:"sm:max-w-sm",[Be.md]:"sm:max-w-md",[Be.lg]:"sm:max-w-lg",[Be.xl]:"sm:max-w-xl",[Be.full]:"sm:max-w-full"},Wf={[Be.sm]:"sm:max-h-[30vh]",[Be.md]:"sm:max-h-[50vh]",[Be.lg]:"sm:max-h-[70vh]",[Be.xl]:"sm:max-h-[85vh]",[Be.full]:"sm:max-h-full"},Zs=Va(["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"]),qs=Va(["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"]),Js=Va("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"}}),$f=dt.Root,Kf=dt.Trigger,Uf=dt.Close,Qs=dt.Portal,Ba=Ro(({className:e,...t},r)=>Ve(dt.Overlay,{ref:r,className:a(Zs(),e),...t},void 0,!1,void 0,this));Ba.displayName="DrawerOverlay";var Es=Ro(({size:e=Be.md,showClose:t=!1,direction:r="bottom",className:o,children:i,...n},s)=>{let m=r==="left"||r==="right"?Gf[e]:Wf[e];return Ve(Qs,{children:[Ve(Ba,{},void 0,!1,void 0,this),Ve(dt.Content,{ref:s,className:a(qs(),m,o),...n,children:[(r==="top"||r==="bottom")&&Ve("div",{className:a(Js({direction:r}))},void 0,!1,void 0,this),i,t&&Ve(dt.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:[Ve(_f,{className:"size-4"},void 0,!1,void 0,this),Ve("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)});Es.displayName="DrawerContent";var js=({className:e,...t})=>Ve("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);js.displayName="DrawerHeader";var el=({className:e,...t})=>Ve("div",{className:a("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);el.displayName="DrawerFooter";var tl=Ro(({className:e,...t},r)=>Ve(dt.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));tl.displayName="DrawerTitle";var rl=Ro(({className:e,...t},r)=>Ve(dt.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));rl.displayName="DrawerDescription";import*as F from"@radix-ui/react-dropdown-menu";import{cva as _t}from"class-variance-authority";import{Check as Yf,ChevronRight as Xf,Circle as Zf}from"lucide-react";import{createContext as qf,forwardRef as Tt,useCallback as Jf,useContext as br,useEffect as Qf,useRef as ol,useState as Ef}from"react";import{jsxDEV as se}from"react/jsx-dev-runtime";var W={sm:"sm",md:"md",lg:"lg"},Ho={default:"default",danger:"danger"},Gt=qf(W.md),Ot=null,Wr=null,jf=0,Da=_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-dropdown-menu-content-transform-origin)]"),Fa=_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:{[W.sm]:"h-6 gap-1.5 px-1.5 text-xs [&_svg]:size-3",[W.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[W.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Ho.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Ho.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive focus:text-destructive-foreground"}},defaultVariants:{size:W.md,variant:Ho.default}}),al=_t("gs-interactive relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[W.sm]:"h-6 pl-6 pr-1.5 text-xs",[W.md]:"h-8 pl-8 pr-2 text-sm",[W.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:W.md}}),il=_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:{[W.sm]:"h-6 pl-6 pr-1.5 text-xs",[W.md]:"h-8 pl-8 pr-2 text-sm",[W.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:W.md}}),nl=_t("font-semibold text-muted-foreground",{variants:{size:{[W.sm]:"px-1.5 py-0.5 text-[10px]",[W.md]:"px-2 py-1.5 text-xs",[W.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:W.md}}),sl=_t("-mx-1 my-1 h-px bg-border/50"),ll=_t("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[W.sm]:"text-[10px]",[W.md]:"text-xs",[W.lg]:"text-xs"}},defaultVariants:{size:W.md}}),ml={[W.sm]:"absolute left-1.5 flex size-3 items-center justify-center",[W.md]:"absolute left-2 flex size-3.5 items-center justify-center",[W.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},eg={[W.sm]:"size-3",[W.md]:"size-3.5",[W.lg]:"size-4"},tg={[W.sm]:"size-1.5 fill-current",[W.md]:"size-2 fill-current",[W.lg]:"size-2.5 fill-current"},dl=({children:e,open:t,defaultOpen:r,onOpenChange:o,...i})=>{let[n,s]=Ef(r??!1),l=t!==void 0,m=l?t:n,p=ol(++jf),f=ol({onOpenChange:o,isControlled:l});f.current={onOpenChange:o,isControlled:l};let u=Jf((P)=>{let{onOpenChange:c,isControlled:b}=f.current;if(P){if(Ot!==null&&Ot!==p.current&&Wr)Wr();Ot=p.current,Wr=()=>{let{onOpenChange:T,isControlled:M}=f.current;if(!M)s(!1);T?.(!1)}}else if(Ot===p.current)Ot=null,Wr=null;if(!b)s(P);c?.(P)},[]);return Qf(()=>{return()=>{if(Ot===p.current)Ot=null,Wr=null}},[]),se(F.Root,{open:m,onOpenChange:u,...i,children:e},void 0,!1,void 0,this)};dl.displayName="DropdownMenu";var rg=F.Trigger,og=F.Group,ag=F.Portal,ig=F.Sub,ng=F.RadioGroup,pl=Tt(({className:e,inset:t,children:r,...o},i)=>{let n=br(Gt),s=d(n);return se(F.SubTrigger,{ref:i,className:a(Fa({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,se(Xf,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});pl.displayName=F.SubTrigger.displayName;var cl=Tt(({className:e,...t},r)=>se(F.Portal,{children:se(F.SubContent,{ref:r,className:a(Da(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));cl.displayName=F.SubContent.displayName;var ul=Tt(({className:e,sideOffset:t=4,size:r,...o},i)=>{let n=d(r)??W.md;return se(Gt.Provider,{value:n,children:se(F.Portal,{children:se(F.Content,{ref:i,sideOffset:t,className:a(Da(),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ul.displayName=F.Content.displayName;var fl=Tt(({className:e,inset:t,variant:r,...o},i)=>{let n=br(Gt),s=d(n);return se(F.Item,{ref:i,className:a(Fa({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});fl.displayName=F.Item.displayName;var gl=Tt(({className:e,children:t,checked:r,...o},i)=>{let n=br(Gt),s=d(n)??W.md;return se(F.CheckboxItem,{ref:i,className:a(al({size:s}),e),checked:r,...o,children:[se("span",{className:ml[s],children:se(F.ItemIndicator,{children:se(Yf,{className:eg[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)});gl.displayName=F.CheckboxItem.displayName;var bl=Tt(({className:e,children:t,...r},o)=>{let i=br(Gt),n=d(i)??W.md;return se(F.RadioItem,{ref:o,className:a(il({size:n}),e),...r,children:[se("span",{className:ml[n],children:se(F.ItemIndicator,{children:se(Zf,{className:tg[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)});bl.displayName=F.RadioItem.displayName;var vl=Tt(({className:e,inset:t,...r},o)=>{let i=br(Gt),n=d(i);return se(F.Label,{ref:o,className:a(nl({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});vl.displayName=F.Label.displayName;var yl=Tt(({className:e,...t},r)=>se(F.Separator,{ref:r,className:a(sl(),e),...t},void 0,!1,void 0,this));yl.displayName=F.Separator.displayName;var Pl=({className:e,...t})=>{let r=br(Gt),o=d(r);return se("span",{className:a(ll({size:o}),e),...t},void 0,!1,void 0,this)};Pl.displayName="DropdownMenuShortcut";import{cva as Kr}from"class-variance-authority";import{forwardRef as sg}from"react";import{jsxDEV as $r}from"react/jsx-dev-runtime";var ve={sm:"sm",md:"md",lg:"lg"},hl=Kr("flex flex-col items-center justify-center text-center rounded-[var(--radius)] border border-dashed border-border/50 bg-muted/20",{variants:{size:{[ve.sm]:"gap-2 p-4",[ve.md]:"gap-4 p-8",[ve.lg]:"gap-6 p-12"}},defaultVariants:{size:ve.md}}),xl=Kr("flex items-center justify-center rounded-full bg-muted/50 text-muted-foreground",{variants:{size:{[ve.sm]:"h-10 w-10 [&>svg]:h-4 [&>svg]:w-4",[ve.md]:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",[ve.lg]:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"}},defaultVariants:{size:ve.md}}),Tl=Kr("font-semibold text-foreground",{variants:{size:{[ve.sm]:"text-sm",[ve.md]:"text-lg",[ve.lg]:"text-xl"}},defaultVariants:{size:ve.md}}),Cl=Kr("text-muted-foreground max-w-sm",{variants:{size:{[ve.sm]:"text-xs",[ve.md]:"text-sm",[ve.lg]:"text-base"}},defaultVariants:{size:ve.md}}),zl=Kr("flex items-center gap-2 mt-2"),Sl=sg(({className:e,icon:t,title:r,description:o,actions:i,size:n=ve.md,children:s,...l},m)=>{let p=d(n);return $r("div",{ref:m,className:a(hl({size:p}),e),...l,children:[t&&$r("div",{className:xl({size:p}),children:t},void 0,!1,void 0,this),r&&$r("h3",{className:Tl({size:p}),children:r},void 0,!1,void 0,this),o&&$r("p",{className:Cl({size:p}),children:o},void 0,!1,void 0,this),i&&$r("div",{className:zl(),children:i},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});Sl.displayName="EmptyState";import{cva as vr}from"class-variance-authority";import{Component as lg,createElement as wl}from"react";import{jsxDEV as ze,Fragment as dg}from"react/jsx-dev-runtime";var Ml=vr(["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"}}),Nl=vr(["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"}}),Ll=vr("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"}}),Rl=vr("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"}}),Hl=vr("mt-2 flex flex-wrap items-center justify-center gap-2"),kl=vr("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 Al extends lg{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:i="destructive",className:n,title:s="Something went wrong",description:l="An unexpected error occurred. Please try again.",icon:m,actions:p,resetLabel:f="Try again",hideReset:u=!1,renderDetails:P}=this.props;if(this.state.hasError&&this.state.error){let c={error:this.state.error,reset:this.handleReset};if(t){if(typeof t==="function")return wl(t,c);return t}let b=null;if(p)b=typeof p==="function"?wl(p,c):p;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"};b=ze("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[i]),children:f},void 0,!1,void 0,this)}let T=P?P(this.state.error):ze(dg,{children:[ze("strong",{children:"Error:"},void 0,!1,void 0,this)," ",this.state.error.message,this.state.error.stack&&ze("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 ze("div",{className:a(Ml({size:o,variant:i}),n),children:[ze("div",{className:a(Nl({size:o,variant:i})),children:m??ze(mg,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),ze("h3",{className:a(Ll({size:o,variant:i})),children:s},void 0,!1,void 0,this),ze("p",{className:a(Rl({size:o})),children:l},void 0,!1,void 0,this),b&&ze("div",{className:a(Hl()),children:b},void 0,!1,void 0,this),r&&ze("div",{className:a(kl()),children:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function mg(){return ze("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:[ze("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,void 0,this),ze("line",{x1:"12",x2:"12",y1:"8",y2:"12"},void 0,!1,void 0,this),ze("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 Ct}from"class-variance-authority";import{forwardRef as pg,useCallback as Xe,useRef as cg,useState as Il}from"react";import{jsxDEV as he}from"react/jsx-dev-runtime";var ee={sm:"sm",md:"md",lg:"lg",xl:"xl"},Vl=Ct(["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:{[ee.sm]:"min-h-28 p-5",[ee.md]:"min-h-36 p-8",[ee.lg]:"min-h-44 p-10",[ee.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:ee.md,isDragging:!1,disabled:!1,hasError:!1}}),Bl=Ct("text-muted-foreground transition-colors duration-200",{variants:{size:{[ee.sm]:"mb-2 size-6",[ee.md]:"size-8 mb-3",[ee.lg]:"size-10 mb-4",[ee.xl]:"size-12 mb-5"},isDragging:{true:"text-primary",false:""}},defaultVariants:{size:ee.md,isDragging:!1}}),Oa=Ct("text-center",{variants:{size:{[ee.sm]:"text-sm",[ee.md]:"text-sm",[ee.lg]:"text-base",[ee.xl]:"text-lg"}},defaultVariants:{size:ee.md}}),Dl=Ct("mt-4 w-full space-y-2"),Fl=Ct(["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"]),Ol=Ct("min-w-0 flex-1 truncate font-medium text-foreground",{variants:{size:{[ee.sm]:"text-sm",[ee.md]:"text-sm",[ee.lg]:"text-base",[ee.xl]:"text-base"}},defaultVariants:{size:"md"}}),_l=Ct("text-muted-foreground",{variants:{size:{[ee.sm]:"text-xs",[ee.md]:"text-sm",[ee.lg]:"text-sm",[ee.xl]:"text-base"}},defaultVariants:{size:"md"}}),Gl=Ct(["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"]),Wl=pg(({className:e,size:t="md",disabled:r=!1,accept:o,multiple:i=!1,maxSize:n,maxFiles:s,value:l=[],onChange:m,onError:p,icon:f,title:u="Drop files here or click to upload",description:P,showFileList:c=!0,...b},T)=>{let M=d(t),[w,C]=Il(!1),[v,x]=Il(!1),I=cg(null),z=Xe((L)=>{if(L===0)return"0 Bytes";let U=1024,g=["Bytes","KB","MB","GB"],y=Math.floor(Math.log(L)/Math.log(U));return`${parseFloat((L/U**y).toFixed(2))} ${g[y]}`},[]),H=Xe((L)=>{let U=[...L];if(x(!1),o){let g=o.split(",").map((y)=>y.trim());if(U=U.filter((y)=>{return g.some((N)=>{if(N.startsWith("."))return y.name.toLowerCase().endsWith(N.toLowerCase());if(N.endsWith("/*"))return y.type.startsWith(N.slice(0,-1));return y.type===N})}),U.length<L.length)p?.("Some files were rejected due to file type"),x(!0)}if(n){let g=U.length;if(U=U.filter((y)=>y.size<=n),U.length<g)p?.(`File size must be less than ${z(n)}`),x(!0)}if(s&&U.length+l.length>s)U=U.slice(0,s-l.length),p?.(`Maximum ${s} files allowed`),x(!0);return U},[o,n,s,l.length,p,z]),k=Xe((L)=>{if(!L||L.length===0)return;let U=Array.from(L),g=H(U);if(g.length>0)if(i)m?.([...l,...g]);else m?.(g.slice(0,1))},[i,l,m,H]),_=Xe((L)=>{L.preventDefault(),L.stopPropagation(),C(!0)},[]),X=Xe((L)=>{L.preventDefault(),L.stopPropagation(),C(!1)},[]),O=Xe((L)=>{L.preventDefault(),L.stopPropagation()},[]),$=Xe((L)=>{if(L.preventDefault(),L.stopPropagation(),C(!1),r)return;k(L.dataTransfer.files)},[r,k]),S=Xe((L)=>{if(k(L.target.files),I.current)I.current.value=""},[k]),A=Xe(()=>{if(!r)I.current?.click()},[r]),h=Xe((L)=>{if(L.key==="Enter"||L.key===" ")L.preventDefault(),A()},[A]),V=Xe((L)=>{let U=l.filter((g,y)=>y!==L);m?.(U)},[l,m]),J=he("svg",{className:a(Bl({size:M,isDragging:w})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:he("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 he("div",{ref:T,className:a("w-full",e),...b,children:[he("div",{role:"button",tabIndex:r?-1:0,onClick:A,onKeyDown:h,onDragEnter:_,onDragLeave:X,onDragOver:O,onDrop:$,className:a(Vl({size:M,isDragging:w,disabled:r,hasError:v})),children:[he("input",{ref:I,type:"file",accept:o,multiple:i,disabled:r,onChange:S,className:"sr-only"},void 0,!1,void 0,this),f||J,he("p",{className:a(Oa({size:M}),"font-medium text-foreground"),children:u},void 0,!1,void 0,this),P&&he("p",{className:a(Oa({size:M}),"mt-1 text-muted-foreground"),children:P},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c&&l.length>0&&he("div",{className:a(Dl()),children:l.map((L,U)=>he("div",{className:a(Fl()),children:[he("svg",{className:"size-5 shrink-0 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:he("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),he("span",{className:a(Ol({size:M})),children:L.name},void 0,!1,void 0,this),he("span",{className:a(_l({size:M})),children:z(L.size)},void 0,!1,void 0,this),he("button",{type:"button",onClick:(g)=>{g.stopPropagation(),V(U)},className:a(Gl()),"aria-label":`Remove ${L.name}`,children:he("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:he("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}-${U}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Wl.displayName="FileUpload";import{cva as ug}from"class-variance-authority";import{createContext as fg,forwardRef as ko,useContext as gg,useId as bg}from"react";import{jsxDEV as Wt,Fragment as yg}from"react/jsx-dev-runtime";var De={sm:"sm",md:"md",lg:"lg"},$l=fg(null),Ur=()=>{let e=gg($l);if(!e)throw Error("useFormField must be used within a FormField");return e},Kl=ug("flex flex-col",{variants:{size:{[De.sm]:"gap-1",[De.md]:"gap-1.5",[De.lg]:"gap-2"}},defaultVariants:{size:De.md}}),Ul=ko(({className:e,size:t=De.md,error:r,disabled:o=!1,required:i=!1,children:n,...s},l)=>{let m=bg(),p=d(t),f={id:m,size:p,error:r,disabled:o,required:i};return Wt($l.Provider,{value:f,children:Wt("div",{ref:l,className:a(Kl({size:p}),e),...s,children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ul.displayName="FormField";var vg={[De.sm]:"text-xs",[De.md]:"text-sm",[De.lg]:"text-base"},Yl=ko(({className:e,htmlFor:t,children:r,...o},i)=>{let{id:n,size:s,disabled:l,required:m}=Ur();return Wt("label",{ref:i,htmlFor:t??n,className:a("inline-block font-medium text-foreground select-none",vg[s],l&&"cursor-not-allowed opacity-60",e),...o,children:[r,m&&Wt("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Yl.displayName="FormFieldLabel";var Xl={[De.sm]:"text-[10px]",[De.md]:"text-xs",[De.lg]:"text-sm"},Zl=ko(({className:e,...t},r)=>{let{id:o,size:i}=Ur();return Wt("p",{ref:r,id:`${o}-description`,className:a("text-muted-foreground",Xl[i],e),...t},void 0,!1,void 0,this)});Zl.displayName="FormFieldDescription";var ql=ko(({className:e,children:t,...r},o)=>{let{id:i,size:n,error:s}=Ur(),l=t??s;if(!l)return null;return Wt("p",{ref:o,id:`${i}-error`,role:"alert",className:a("text-destructive",Xl[n],e),...r,children:l},void 0,!1,void 0,this)});ql.displayName="FormFieldError";var Jl=({children:e})=>{let{id:t,disabled:r,required:o,error:i}=Ur(),n=[i?`${t}-error`:void 0,`${t}-description`].filter(Boolean).join(" ");return Wt(yg,{children:e({id:t,disabled:r,required:o,status:i?"error":"default","aria-describedby":n||void 0,"aria-invalid":i?!0:void 0})},void 0,!1,void 0,this)};Jl.displayName="FormFieldControl";import*as $t from"@radix-ui/react-hover-card";import{cva as Pg}from"class-variance-authority";import{forwardRef as hg}from"react";import{jsxDEV as Cg}from"react/jsx-dev-runtime";var yr={sm:"sm",md:"md",lg:"lg"},Ql=Pg("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:{[yr.sm]:"w-52 p-3 text-xs",[yr.md]:"w-64 p-4 text-sm",[yr.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:yr.md}}),xg=$t.Root,Tg=$t.Trigger,El=hg(({className:e,align:t="center",sideOffset:r=4,size:o=yr.md,...i},n)=>{let s=d(o);return Cg($t.Content,{ref:n,align:t,sideOffset:r,className:a(Ql({size:s}),e),...i},void 0,!1,void 0,this)});El.displayName=$t.Content.displayName;import{cva as wg}from"class-variance-authority";import{X as Mg}from"lucide-react";import{forwardRef as Ng,useRef as Lg,useState as Rg}from"react";import*as zt from"react";function jl(...e){return(t)=>{for(let r of e)if(typeof r==="function")r(t);else if(r!=null)r.current=t}}function Yr(...e){return zt.useCallback(jl(...e),e)}function zg(e,t){let r=zt.createContext(t);r.displayName=e;function o(){let i=zt.useContext(r);if(i===void 0)throw Error(`use${e} must be used within a ${e}Provider`);return i}return[r.Provider,o,r]}function Sg(e){let t=zt.createContext(void 0);t.displayName=e;function r(){return zt.useContext(t)}return[t.Provider,r,t]}import{jsxDEV as Kt}from"react/jsx-dev-runtime";var Xr={default:"default",error:"error",success:"success"},Y={sm:"sm",md:"md",lg:"lg",xl:"xl"},Hg="Clear input",tm=wg("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:{[Xr.default]:"focus-visible:ring-primary",[Xr.error]:"border-destructive focus-visible:ring-destructive",[Xr.success]:"border-success focus-visible:ring-success"},size:{[Y.sm]:"h-8 px-2 text-xs",[Y.md]:"h-10 px-3",[Y.lg]:"h-11 px-4",[Y.xl]:"h-12 px-4 text-base"}},defaultVariants:{status:Xr.default,size:Y.md}}),kg={[Y.sm]:"pl-7",[Y.md]:"pl-9",[Y.lg]:"pl-10",[Y.xl]:"pl-10"},Ag={[Y.sm]:"pr-7",[Y.md]:"pr-9",[Y.lg]:"pr-10",[Y.xl]:"pr-10"},Ig={[Y.sm]:"pr-12",[Y.md]:"pr-16",[Y.lg]:"pr-18",[Y.xl]:"pr-18"},Vg={[Y.sm]:"text-xs left-2",[Y.md]:"text-sm left-3",[Y.lg]:"text-sm left-3.5",[Y.xl]:"text-base left-3.5"},Bg={[Y.sm]:"text-xs",[Y.md]:"text-sm",[Y.lg]:"text-sm",[Y.xl]:"text-base"},Dg={[Y.sm]:"size-4",[Y.md]:"size-5",[Y.lg]:"size-5",[Y.xl]:"size-6"};function em(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var rm=Ng(({className:e,status:t=Xr.default,size:r=Y.md,fullWidth:o=!1,prefix:i,suffix:n,clearable:s=!1,clearAriaLabel:l=Hg,onClear:m,onValueChange:p,disabled:f,readOnly:u,onChange:P,value:c,defaultValue:b,...T},M)=>{let w=Boolean(i),C=Boolean(n),v=d(r),x=Lg(null),I=Yr(M,x),[z,H]=Rg(()=>em(b)),k=c!==void 0,_=k?em(c):z,X=s&&!f&&!u&&_.length>0,O=C||X,$=C&&X,S=(h)=>{let V=h.target.value;if(!k)H(V);p?.(V),P?.(h)},A=()=>{if(!k)H("");p?.("");let h=x.current;if(h)h.value="",h.dispatchEvent(new Event("input",{bubbles:!0})),h.focus();m?.()};return Kt("div",{className:a("relative flex items-center",o&&"w-full"),children:[w&&Kt("span",{className:a("absolute inset-y-0 flex items-center text-muted-foreground",Vg[v]),children:i},void 0,!1,void 0,this),Kt("input",{ref:I,className:a(tm({status:t,size:v}),w&&kg[v],$&&Ig[v],!$&&O&&Ag[v],e),disabled:f,readOnly:u,onChange:S,value:_,...T},void 0,!1,void 0,this),O&&Kt("span",{className:a("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",Bg[v]),children:[C&&Kt("span",{className:"inline-flex items-center",children:n},void 0,!1,void 0,this),X&&Kt("button",{type:"button","aria-label":l,onMouseDown:(h)=>h.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",Dg[v]),children:Kt(Mg,{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)});rm.displayName="Input";import{cva as _g}from"class-variance-authority";import{forwardRef as Gg}from"react";var Pr=null;function Ut(){if(Pr)return Pr;if(typeof navigator>"u")return Pr={os:"linux",isMac:!1,isWindows:!1,isLinux:!0,isMobile:!1},Pr;let e=navigator.userAgentData?.platform??navigator.platform??"",t=navigator.userAgent??"",r=/mac/i.test(e),o=/win/i.test(e),i=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)||"maxTouchPoints"in navigator&&navigator.maxTouchPoints>1&&r,n=/linux/i.test(e)&&!i;return Pr={os:r?"mac":o?"windows":"linux",isMac:r,isWindows:o,isLinux:n,isMobile:i},Pr}var Fg={esc:"escape",return:"enter",del:"delete",space:" ",spacebar:" ",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",plus:"+"},om={mod:"⌘",ctrl:"⌃",control:"⌃",alt:"⌥",option:"⌥",shift:"⇧",meta:"⌘",cmd:"⌘",command:"⌘",enter:"⏎",return:"⏎",backspace:"⌫",delete:"⌦",tab:"⇥",escape:"Esc",esc:"Esc",space:"␣",up:"↑",down:"↓",left:"←",right:"→",arrowup:"↑",arrowdown:"↓",arrowleft:"←",arrowright:"→"},am={mod:"Ctrl",cmd:"Ctrl",command:"Ctrl",meta:"Super",ctrl:"Ctrl",control:"Ctrl",alt:"Alt",option:"Alt",shift:"Shift",enter:"Enter",return:"Enter",backspace:"Backspace",delete:"Del",tab:"Tab",escape:"Esc",esc:"Esc",space:"Space",up:"↑",down:"↓",left:"←",right:"→",arrowup:"↑",arrowdown:"↓",arrowleft:"←",arrowright:"→"};function _a(e){let t=e.split("+").map((o)=>o.trim().toLowerCase()),r={key:"",mod:!1,ctrl:!1,alt:!1,shift:!1,meta:!1};for(let o of t)if(o==="mod")r.mod=!0;else if(o==="ctrl"||o==="control")r.ctrl=!0;else if(o==="alt"||o==="option")r.alt=!0;else if(o==="shift")r.shift=!0;else if(o==="meta"||o==="cmd"||o==="command")r.meta=!0;else r.key=Fg[o]??o;return r}function Ga(e,t){let{isMac:r}=Ut(),o=e.key.toLowerCase(),i=t.key.toLowerCase();if(i&&o!==i&&e.code.toLowerCase()!==`key${i}`)return!1;let n=t.meta||t.mod&&r,s=t.ctrl||t.mod&&!r;if(e.metaKey!==n)return!1;if(e.ctrlKey!==s)return!1;if(e.altKey!==t.alt)return!1;if(e.shiftKey!==t.shift)return!1;return!0}function Zr(e,t){let r=t??Ut().isMac,o=r?om:am,i=e.split("+").map((n)=>{let s=n.trim().toLowerCase();return o[s]??n.trim().toUpperCase()});return r?i.join(""):i.join("+")}function Og(e,t){let o=t??Ut().isMac?om:am;return e.split("+").map((i)=>{let n=i.trim().toLowerCase();return o[n]??i.trim().toUpperCase()})}function qr(){return Ut()}import{jsxDEV as Wg}from"react/jsx-dev-runtime";var hr={sm:"sm",md:"md",lg:"lg"},im=_g("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:{[hr.sm]:"min-w-5 h-5 px-1 text-[10px]",[hr.md]:"min-w-6 h-6 px-1.5 text-xs",[hr.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:hr.md}}),nm=Gg(({className:e,size:t=hr.md,keys:r,children:o,...i},n)=>{let s=d(t),{isMac:l}=qr(),m=r?Zr(r,l):o;return Wg("kbd",{ref:n,className:a(im({size:s}),e),...i,children:m},void 0,!1,void 0,this)});nm.displayName="Kbd";import{cva as $g}from"class-variance-authority";import{forwardRef as Kg}from"react";import{jsxDEV as sm}from"react/jsx-dev-runtime";var xr={sm:"sm",md:"md",lg:"lg"},lm=$g("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-60",{variants:{size:{[xr.sm]:"text-xs",[xr.md]:"text-sm",[xr.lg]:"text-base"}},defaultVariants:{size:xr.md}}),mm=Kg(({className:e,size:t=xr.md,required:r=!1,disabled:o=!1,children:i,...n},s)=>{let l=d(t);return sm("label",{ref:s,className:a(lm({size:l}),o&&"cursor-not-allowed opacity-60",e),"aria-disabled":o||void 0,...n,children:[i,r&&sm("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});mm.displayName="Label";import*as St from"@radix-ui/react-popover";import{cva as Qg}from"class-variance-authority";import{Check as Eg,ChevronDown as jg,X as eb,X as tb}from"lucide-react";import{forwardRef as rb,useCallback as Jr,useEffect as ob,useRef as ab,useState as cm}from"react";import*as Fe from"@radix-ui/react-popover";import{cva as Ug}from"class-variance-authority";import{forwardRef as Yg}from"react";import{jsxDEV as dm}from"react/jsx-dev-runtime";var Tr={sm:"sm",md:"md",lg:"lg"},Cr=Ug("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:{[Tr.sm]:"w-56 p-3 text-sm",[Tr.md]:"w-72 p-4 text-sm",[Tr.lg]:"w-96 p-5 text-sm"}},defaultVariants:{size:Tr.md}}),Xg=Fe.Root,Zg=Fe.Trigger,qg=Fe.Anchor,Jg=Fe.Close,pm=Yg(({className:e,align:t="center",sideOffset:r=4,portal:o=!0,portalContainer:i,size:n=Tr.md,...s},l)=>{let m=d(n),p=dm(Fe.Content,{ref:l,align:t,sideOffset:r,className:a(Cr({size:m}),e),...s},void 0,!1,void 0,this);if(o)return dm(Fe.Portal,{container:i??void 0,children:p},void 0,!1,void 0,this);return p});pm.displayName="PopoverContent";import{jsxDEV as re,Fragment as sb}from"react/jsx-dev-runtime";var de={sm:"sm",md:"md",lg:"lg",xl:"xl"},um=Qg(["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:{[de.sm]:"min-h-8 px-2.5 py-1 text-xs",[de.md]:"min-h-10 px-3.5 py-1.5",[de.lg]:"min-h-11 px-4.5 py-2 text-sm",[de.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:de.md,status:"default"}}),ib={[de.sm]:"h-5 px-1.5 text-[10px]",[de.md]:"h-6 px-2 text-xs",[de.lg]:"h-6.5 px-2.5 text-xs",[de.xl]:"h-7 px-2.5 text-sm"},nb={[de.sm]:"min-h-7 py-1 px-2 text-xs",[de.md]:"min-h-9 py-2 px-3 text-sm",[de.lg]:"min-h-10 py-2.5 px-3.5 text-sm",[de.xl]:"min-h-11 py-3 px-4 text-base"},Ao={[de.sm]:"size-3.5",[de.md]:"size-4",[de.lg]:"size-4",[de.xl]:"size-4.5"},fm=rb(({className:e,options:t,value:r,defaultValue:o=[],onValueChange:i,placeholder:n="Select options...",size:s=de.md,status:l="default",clearable:m=!1,maxDisplayItems:p=3,disabled:f,...u},P)=>{let c=d(s)??s,[b,T]=cm(!1),[M,w]=cm(o),C=ab(null),v=r!==void 0,x=v?r:M,I=Jr((S)=>{let A=x.includes(S)?x.filter((h)=>h!==S):[...x,S];if(!v)w(A);i?.(A)},[x,v,i]),z=Jr((S,A)=>{A.stopPropagation();let h=x.filter((V)=>V!==S);if(!v)w(h);i?.(h)},[x,v,i]),H=Jr((S)=>{if(S.stopPropagation(),S.preventDefault(),!v)w([]);i?.([])},[v,i]),k=t.filter((S)=>x.includes(S.value)),_=k.length>0,X=m&&_&&!f,O=Jr((S)=>{let A=C.current;if(!A)return;let h=Array.from(A.querySelectorAll('[role="option"]:not([data-disabled])'));if(h.length===0)return;let V=A.querySelector('[role="option"]:focus'),J=V?h.indexOf(V):-1,L;switch(S){case"first":L=h[0];break;case"last":L=h[h.length-1];break;case"next":L=h[J+1]??h[0];break;case"prev":L=h[J-1]??h[h.length-1];break}L?.focus()},[]),$=Jr((S)=>{switch(S.key){case"ArrowDown":S.preventDefault(),O("next");break;case"ArrowUp":S.preventDefault(),O("prev");break;case"Home":S.preventDefault(),O("first");break;case"End":S.preventDefault(),O("last");break;case"Escape":S.preventDefault(),T(!1);break}},[O]);return ob(()=>{if(b)requestAnimationFrame(()=>O("first"))},[b,O]),re(St.Root,{open:b,onOpenChange:T,children:[re(St.Trigger,{asChild:!0,children:re("button",{ref:P,type:"button",disabled:f,"data-state":b?"open":"closed","data-placeholder":!_?"":void 0,className:a(um({size:c,status:l}),e),...u,children:[re("span",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:_?re(sb,{children:[k.slice(0,p).map((S)=>re("span",{className:a("inline-flex items-center gap-1 rounded-[calc(var(--radius)-4px)] border border-border/60 bg-muted/50 font-medium text-foreground",ib[c]),children:[re("span",{className:"truncate",children:S.label},void 0,!1,void 0,this),re("span",{"data-slot":"multiselect-remove","aria-label":`Remove ${S.label}`,onMouseDown:(A)=>A.preventDefault(),onClick:(A)=>z(S.value,A),className:"ml-0.5 inline-flex shrink-0 items-center justify-center rounded-full opacity-60 hover:opacity-100",children:re(tb,{className:"h-3 w-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},S.value,!0,void 0,this)),k.length>p&&re("span",{className:"text-muted-foreground text-xs",children:["+",k.length-p]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):re("span",{className:"text-muted-foreground",children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this),re("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[X&&re("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(S)=>S.preventDefault(),onClick:H,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:re(eb,{className:Ao[c]},void 0,!1,void 0,this)},void 0,!1,void 0,this),re(jg,{className:a(Ao[c],"opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]",b&&"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),re(St.Portal,{children:re(St.Content,{ref:C,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:$,onOpenAutoFocus:(S)=>S.preventDefault(),className:a(Cr(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((S)=>{let A=x.includes(S.value);return re("div",{role:"option",tabIndex:S.disabled?void 0:-1,"aria-selected":A,"aria-disabled":S.disabled||void 0,"data-disabled":S.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",nb[c]),onClick:()=>!S.disabled&&I(S.value),onKeyDown:(h)=>{if(h.key==="Enter"||h.key===" "){if(h.preventDefault(),!S.disabled)I(S.value)}},children:[re("span",{className:a("flex shrink-0 items-center justify-center",Ao[c]),children:A&&re(Eg,{className:Ao[c]},void 0,!1,void 0,this)},void 0,!1,void 0,this),re("span",{className:"min-w-0 flex-1 truncate",children:S.label},void 0,!1,void 0,this)]},S.value,!0,void 0,this)}),t.length===0&&re("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)});fm.displayName="Multiselect";import*as oe from"@radix-ui/react-navigation-menu";import{cva as Yt}from"class-variance-authority";import{createContext as lb,forwardRef as zr,useContext as mb}from"react";import{jsxDEV as He}from"react/jsx-dev-runtime";var Ze={sm:"sm",md:"md",lg:"lg"},gm=lb(Ze.md),bm=Yt("relative z-10 flex max-w-max flex-1 items-center justify-center"),vm=Yt("group flex flex-1 list-none items-center justify-center space-x-1"),ym=Yt(["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:{[Ze.sm]:"h-8 px-3 py-1.5 text-xs",[Ze.md]:"h-10 px-4 py-2 text-sm",[Ze.lg]:"h-12 px-5 py-2.5 text-sm"}},defaultVariants:{size:Ze.md}}),Pm=Yt(["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"]),db=Yt(["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:{[Ze.sm]:"p-2 text-xs",[Ze.md]:"p-3 text-sm",[Ze.lg]:"p-4 text-sm"}},defaultVariants:{size:Ze.md}}),hm=Yt(["origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg","gs-float-content","transition-[width,height] duration-300 ease-[var(--motion-ease-emphasized)]","md:w-[var(--radix-navigation-menu-viewport-width)]"]),xm=Yt(["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"]),pb=()=>He("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:He("path",{d:"m6 9 6 6 6-6"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Tm=zr(({className:e,children:t,size:r,...o},i)=>{let n=d(r??Ze.md);return He(gm.Provider,{value:n,children:He(oe.Root,{ref:i,className:a(bm(),e),...o,children:[t,He(Wa,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Tm.displayName=oe.Root.displayName;var Cm=zr(({className:e,...t},r)=>He(oe.List,{ref:r,className:a(vm(),e),...t},void 0,!1,void 0,this));Cm.displayName=oe.List.displayName;var cb=oe.Item,zm=zr(({className:e,children:t,...r},o)=>{let i=mb(gm);return He(oe.Trigger,{ref:o,className:a(ym({size:i}),"group",e),...r,children:[t,He(pb,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});zm.displayName=oe.Trigger.displayName;var Sm=zr(({className:e,...t},r)=>He(oe.Content,{ref:r,className:a(Pm(),e),...t},void 0,!1,void 0,this));Sm.displayName=oe.Content.displayName;var ub=oe.Link,Wa=zr(({className:e,...t},r)=>He("div",{className:"absolute top-full left-0 flex justify-center",children:He(oe.Viewport,{className:a(hm(),e),ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Wa.displayName=oe.Viewport.displayName;var wm=zr(({className:e,...t},r)=>He(oe.Indicator,{ref:r,className:a(xm(),e),...t,children:He("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));wm.displayName=oe.Indicator.displayName;import{cva as Sr}from"class-variance-authority";import{Fragment as fb,forwardRef as gb,useCallback as Xt,useEffect as Mm,useMemo as Nm,useRef as bb,useState as Lm}from"react";import{jsxDEV as Zt}from"react/jsx-dev-runtime";var qt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Er={default:"default",error:"error",success:"success"},Qr={single:"single",first:"first",middle:"middle",last:"last"},Rm=Sr("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}}),Hm=Sr("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:Er.default}}),km=Sr(["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:Er.default,disabled:!1,position:Qr.single}}),Am=Sr(["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:Er.default,filled:!1}}),Im=Sr(["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}}),Vm=Sr("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 vb(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function $a(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var Bm=gb(({className:e,length:t=6,value:r,onChange:o,onComplete:i,size:n=qt.md,status:s=Er.default,disabled:l=!1,autoFocus:m=!1,mask:p=!1,groupSize:f,separator:u,separatorChar:P="—",placeholder:c="•",inputMode:b="numeric",pattern:T="[0-9]*",...M},w)=>{let C=d(n),v=vb(t),x=bb([]),[I,z]=Lm(null),[H,k]=Lm(()=>$a(r,v));Mm(()=>{if(r!==void 0){k($a(r,v));return}k((g)=>$a(g.join(""),v))},[r,v]),Mm(()=>{if(m)x.current[0]?.focus()},[m]);let _=Nm(()=>{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]),X=Nm(()=>{let g=[];for(let y=0;y<v;y+=_){let N=Math.min(y+_,v),ce=[];for(let Z=y;Z<N;Z+=1)ce.push(Z);g.push(ce)}return g},[_,v]),O=Xt((g)=>{let y=x.current[g];if(!y)return;y.focus(),y.select()},[]),$=Xt((g)=>{k(g);let y=g.join("");if(o?.(y),g.every((N)=>N!=="")&&y.length===v)i?.(y)},[o,i,v]),S=Xt((g,y)=>{if(l)return;let ce=(b==="numeric"?y.replace(/\D/g,""):y).slice(-1),Z=[...H];if(Z[g]=ce,$(Z),ce&&g<v-1)O(g+1)},[H,l,$,O,b,v]),A=Xt((g,y)=>{if(l)return;if(y.key==="Backspace"){if(y.preventDefault(),H[g]){let N=[...H];N[g]="",$(N);return}if(g>0){let N=[...H];N[g-1]="",$(N),O(g-1)}return}if(y.key==="Delete"){if(y.preventDefault(),H[g]){let N=[...H];N[g]="",$(N)}return}if(y.key==="ArrowLeft"){if(y.preventDefault(),g>0)O(g-1);return}if(y.key==="ArrowRight"){if(y.preventDefault(),g<v-1)O(g+1);return}if(y.key==="Home"){y.preventDefault(),O(0);return}if(y.key==="End")y.preventDefault(),O(v-1)},[H,l,$,O,v]),h=Xt((g,y)=>{if(y.preventDefault(),l)return;let N=y.clipboardData.getData("text"),Z=(b==="numeric"?N.replace(/\D/g,""):N.replace(/\s/g,"")).split("");if(Z.length===0)return;let Ae=[...H];for(let R=0;R<Z.length;R+=1){let j=g+R;if(j>=v)break;Ae[j]=Z[R]??""}$(Ae);let E=Math.min(v-1,g+Z.length-1);if(E<v-1){O(E+1);return}x.current[E]?.blur()},[H,l,$,O,b,v]),V=Xt((g,y)=>{z(g),y.target.select()},[]),J=Xt(()=>{z(null)},[]),L=u!==void 0,U=P.length>0&&u!==!1&&(L||X.length>1);return Zt("div",{ref:w,className:a(Rm({size:C}),e),role:"group","aria-label":"One-time password input",...M,children:X.map((g,y)=>Zt(fb,{children:[Zt("div",{"data-gs-otp-group":"true",className:a(Hm({size:C,status:s})),children:g.map((N,ce)=>{let Z=H[N]??"",Ae=I===N,E=Qr.middle;if(g.length===1)E=Qr.single;else if(ce===0)E=Qr.first;else if(ce===g.length-1)E=Qr.last;return Zt("div",{"data-gs-otp-slot":"true","data-disabled":l,className:a(km({size:C,filled:Boolean(Z),focused:Ae,status:s,disabled:l,position:E})),children:[Zt("input",{ref:(R)=>{x.current[N]=R},type:p?"password":"text",inputMode:b,pattern:T,maxLength:1,value:Z,placeholder:"",disabled:l,"aria-invalid":s===Er.error,"aria-label":`Digit ${N+1} of ${v}`,autoComplete:"one-time-code",onChange:(R)=>S(N,R.target.value),onKeyDown:(R)=>A(N,R),onPaste:(R)=>h(N,R),onFocus:(R)=>V(N,R),onBlur:J,className:a(Am({size:C,status:s,filled:Boolean(Z)}))},void 0,!1,void 0,this),!Z&&Zt("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:a(Im({size:C,focused:Ae})),children:c},void 0,!1,void 0,this)]},`slot-${N}`,!0,void 0,this)})},void 0,!1,void 0,this),U&&y<X.length-1&&Zt("span",{"data-gs-otp-separator":"true",className:a(Vm({size:C})),children:P},void 0,!1,void 0,this)]},`group-${g[0]}-${g[g.length-1]}`,!0,void 0,this))},void 0,!1,void 0,this)});Bm.displayName="OTPInput";import{createContext as Cb,useCallback as wr,useContext as zb,useMemo as Sb,useState as wb}from"react";import*as ne from"@radix-ui/react-dialog";import{cva as Dm}from"class-variance-authority";import{X as yb}from"lucide-react";import{forwardRef as Io}from"react";import{jsxDEV as qe}from"react/jsx-dev-runtime";var ke={top:"top",right:"right",bottom:"bottom",left:"left"},te={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Pb={[ke.top]:"gs-sheet-content gs-sheet-content-top",[ke.right]:"gs-sheet-content gs-sheet-content-right",[ke.bottom]:"gs-sheet-content gs-sheet-content-bottom",[ke.left]:"gs-sheet-content gs-sheet-content-left"},hb={[ke.right]:{[te.sm]:"sm:max-w-sm",[te.md]:"sm:max-w-md",[te.lg]:"sm:max-w-lg",[te.xl]:"sm:max-w-xl",[te.full]:"sm:max-w-full"},[ke.left]:{[te.sm]:"sm:max-w-sm",[te.md]:"sm:max-w-md",[te.lg]:"sm:max-w-lg",[te.xl]:"sm:max-w-xl",[te.full]:"sm:max-w-full"},[ke.top]:{[te.sm]:"sm:max-h-[30vh]",[te.md]:"sm:max-h-[50vh]",[te.lg]:"sm:max-h-[70vh]",[te.xl]:"sm:max-h-[85vh]",[te.full]:"sm:max-h-full"},[ke.bottom]:{[te.sm]:"sm:max-h-[30vh]",[te.md]:"sm:max-h-[50vh]",[te.lg]:"sm:max-h-[70vh]",[te.xl]:"sm:max-h-[85vh]",[te.full]:"sm:max-h-full"}},Fm=Dm("gs-sheet-overlay fixed inset-0 z-50 bg-black/50"),Om=Dm("fixed z-50 flex flex-col gap-4 border border-border bg-background p-6 shadow-[var(--shadow-xl)]",{variants:{side:{[ke.top]:"inset-x-0 top-0 border-b",[ke.bottom]:"inset-x-0 bottom-0 border-t",[ke.left]:"inset-y-0 left-0 h-full w-3/4 border-r",[ke.right]:"inset-y-0 right-0 h-full w-3/4 border-l"}},defaultVariants:{side:ke.right}}),Ka=ne.Root,xb=ne.Trigger,Tb=ne.Close,_m=ne.Portal,Ua=Io(({className:e,...t},r)=>qe(ne.Overlay,{className:a(Fm(),e),...t,ref:r},void 0,!1,void 0,this));Ua.displayName=ne.Overlay.displayName;var Vo=Io(({side:e="right",size:t=te.md,showClose:r=!0,className:o,children:i,...n},s)=>{let l=d(t)??te.md,m=Pb[e],p=hb[e][l];return qe(_m,{children:[qe(Ua,{},void 0,!1,void 0,this),qe(ne.Content,{ref:s,className:a(Om({side:e}),m,p,o),...n,children:[i,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(yb,{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)});Vo.displayName=ne.Content.displayName;var Gm=({className:e,...t})=>qe("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Gm.displayName="SheetHeader";var Wm=({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);Wm.displayName="SheetFooter";var $m=Io(({className:e,...t},r)=>qe(ne.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));$m.displayName=ne.Title.displayName;var Km=Io(({className:e,...t},r)=>qe(ne.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Km.displayName=ne.Description.displayName;import{jsxDEV as pt}from"react/jsx-dev-runtime";var Ya=0;function Mb(){return Ya=(Ya+1)%Number.MAX_SAFE_INTEGER,`overlay-${Ya}-${Date.now()}`}var Ym=Cb(null),Um=400;function Xm({children:e}){let[t,r]=wb([]),o=wr((p)=>{r((f)=>f.map((u)=>u.id===p?{...u,open:!1}:u)),setTimeout(()=>{r((f)=>f.filter((u)=>u.id!==p))},Um)},[]),i=wr(()=>{r((p)=>p.map((f)=>({...f,open:!1}))),setTimeout(()=>{r([])},Um)},[]),n=wr((p,f,u,P={})=>{let c=Mb(),b=(w)=>{return pt(f,{...u,close:w.close},void 0,!1,void 0,this)};b.displayName=`OverlayWrapper(${f.displayName??f.name??"Component"})`;let T={id:c,type:p,component:b,wrapperProps:P,open:!0};return r((w)=>[...w,T]),{id:c,close:()=>o(c)}},[o]),s=wr((p,f,u)=>{return n("dialog",p,f,u)},[n]),l=wr((p,f,u)=>{return n("sheet",p,f,u)},[n]),m=Sb(()=>({dialog:s,sheet:l,close:o,closeAll:i}),[s,l,o,i]);return pt(Ym.Provider,{value:m,children:[e,t.map((p)=>pt(Nb,{entry:p,onClose:o},p.id,!1,void 0,this))]},void 0,!0,void 0,this)}Xm.displayName="OverlayProvider";function Nb({entry:e,onClose:t}){let{id:r,type:o,component:i,wrapperProps:n,open:s}=e,l=wr(()=>t(r),[r,t]);if(o==="dialog"){let{showClose:m,size:p,...f}=n;return pt(Aa,{open:s,onOpenChange:(u)=>!u&&l(),children:pt(Lo,{showClose:m,size:p,...f,children:pt(i,{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:p,...f}=n;return pt(Ka,{open:s,onOpenChange:(u)=>!u&&l(),children:pt(Vo,{side:m,showClose:p,...f,children:pt(i,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}return null}function Lb(){let e=zb(Ym);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as jr}from"class-variance-authority";import{ChevronLeft as Rb,ChevronRight as Hb,MoreHorizontal as kb}from"lucide-react";import{createContext as Ab,forwardRef as eo,useContext as Bo}from"react";import{jsxDEV as Me}from"react/jsx-dev-runtime";var Oe={sm:"sm",md:"md",lg:"lg"},to=Ab(Oe.md),Zm=jr("mx-auto flex w-full justify-center"),qm=jr("flex flex-row items-center gap-1"),Jm=jr(""),Do=jr("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:{[Oe.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[Oe.md]:"h-9 w-9 text-sm [&_svg]:size-4",[Oe.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:Oe.md}}),Qm=jr("flex items-center justify-center",{variants:{size:{[Oe.sm]:"h-7 w-7 [&_svg]:size-3.5",[Oe.md]:"h-9 w-9 [&_svg]:size-4",[Oe.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:Oe.md}}),Em=({className:e,size:t=Oe.md,...r})=>{let o=d(t)??Oe.md;return Me(to.Provider,{value:o,children:Me("nav",{"aria-label":"pagination",className:a(Zm(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Em.displayName="Pagination";var jm=eo(({className:e,...t},r)=>Me("ul",{ref:r,className:a(qm(),e),...t},void 0,!1,void 0,this));jm.displayName="PaginationContent";var ed=eo(({className:e,...t},r)=>Me("li",{ref:r,className:a(Jm(),e),...t},void 0,!1,void 0,this));ed.displayName="PaginationItem";var td=eo(({className:e,isActive:t,...r},o)=>{let i=Bo(to);return Me("button",{ref:o,type:"button","aria-current":t?"page":void 0,className:a(Do({isActive:t,size:i}),e),...r},void 0,!1,void 0,this)});td.displayName="PaginationLink";var rd=eo(({className:e,...t},r)=>{let o=Bo(to);return Me("button",{ref:r,type:"button","aria-label":"Go to previous page",className:a(Do({size:o}),"gap-1 pl-2.5 pr-3 w-auto",e),...t,children:[Me(Rb,{},void 0,!1,void 0,this),Me("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});rd.displayName="PaginationPrevious";var od=eo(({className:e,...t},r)=>{let o=Bo(to);return Me("button",{ref:r,type:"button","aria-label":"Go to next page",className:a(Do({size:o}),"gap-1 pl-3 pr-2.5 w-auto",e),...t,children:[Me("span",{children:"Next"},void 0,!1,void 0,this),Me(Hb,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});od.displayName="PaginationNext";var ad=({className:e,...t})=>{let r=Bo(to);return Me("span",{"aria-hidden":!0,className:a(Qm({size:r}),e),...t,children:[Me(kb,{},void 0,!1,void 0,this),Me("span",{className:"sr-only",children:"More pages"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};ad.displayName="PaginationEllipsis";import*as ao from"@radix-ui/react-progress";import{cva as id}from"class-variance-authority";import{forwardRef as Ib}from"react";import{jsxDEV as Fo}from"react/jsx-dev-runtime";var ro={sm:"sm",md:"md",lg:"lg",xl:"xl"},oo={default:"default",success:"success",warning:"warning",error:"error"},nd=id("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[ro.sm]:"h-1",[ro.md]:"h-2.5",[ro.lg]:"h-4",[ro.xl]:"h-5"}},defaultVariants:{size:ro.md}}),sd=id("h-full w-full flex-1 rounded-full transition-transform duration-100 ease-out",{variants:{variant:{[oo.default]:"bg-primary",[oo.success]:"bg-success",[oo.warning]:"bg-warning",[oo.error]:"bg-destructive"}},defaultVariants:{variant:oo.default}}),ld=Ib(({className:e,value:t,size:r,variant:o,showValue:i,...n},s)=>{let l=d(r);return Fo("div",{className:"flex w-full items-center gap-2",children:[Fo(ao.Root,{ref:s,className:a(nd({size:l}),e),...n,children:Fo(ao.Indicator,{className:a(sd({variant:o})),style:{transform:`translateX(-${100-(t||0)}%)`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),i&&Fo("span",{className:"font-medium text-muted-foreground text-sm tabular-nums",children:[t,"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});ld.displayName=ao.Root.displayName;import*as Nr from"@radix-ui/react-radio-group";import{cva as md}from"class-variance-authority";import{forwardRef as dd}from"react";import{jsxDEV as Oo}from"react/jsx-dev-runtime";var Je={sm:"sm",md:"md",lg:"lg",xl:"xl"},Mr={default:"default",error:"error",success:"success"},pd=md("grid gap-2"),cd=md("gs-interactive aspect-square rounded-full border border-input bg-background ring-offset-background enabled:active:scale-[0.94] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-[state=checked]:border-primary data-[state=checked]:text-primary disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{size:{[Je.sm]:"h-4 w-4",[Je.md]:"h-5 w-5",[Je.lg]:"h-6 w-6",[Je.xl]:"h-7 w-7"},status:{[Mr.default]:"enabled:hover:border-primary/70",[Mr.error]:"border-destructive enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:text-destructive",[Mr.success]:"border-success enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:text-success"}},defaultVariants:{size:Je.md,status:Mr.default}}),Vb={[Je.sm]:"h-2 w-2",[Je.md]:"h-2.5 w-2.5",[Je.lg]:"h-3 w-3",[Je.xl]:"h-3.5 w-3.5"},ud=dd(({className:e,...t},r)=>Oo(Nr.Root,{ref:r,className:a(pd(),e),...t},void 0,!1,void 0,this));ud.displayName="RadioGroup";var fd=dd(({className:e,size:t=Je.md,status:r=Mr.default,...o},i)=>{let n=d(t);return Oo(Nr.Item,{ref:i,className:a(cd({size:n,status:r}),e),...o,children:Oo(Nr.Indicator,{className:"flex items-center justify-center",children:Oo("span",{className:a("block rounded-full bg-current transition-transform duration-150",Vb[n])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});fd.displayName="RadioGroupItem";import{cva as Wo}from"class-variance-authority";import{forwardRef as Xa,useCallback as _o,useRef as Bb,useState as Db}from"react";import{jsxDEV as Go}from"react/jsx-dev-runtime";var gd=Wo("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),bd=Wo("relative overflow-hidden"),vd=Wo("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}}),yd=Wo("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"}}),Pd=Xa(({className:e,direction:t="horizontal",children:r,...o},i)=>Go("div",{ref:i,"data-panel-group":"","data-direction":t,className:a(gd({direction:t}),e),...o,children:r},void 0,!1,void 0,this));Pd.displayName="ResizablePanelGroup";var hd=Xa(({className:e,defaultSize:t=50,children:r,style:o,...i},n)=>Go("div",{ref:n,"data-panel":"",className:a(bd(),e),style:{...o,flexGrow:0,flexShrink:0,flexBasis:`${t}%`},...i,children:r},void 0,!1,void 0,this));hd.displayName="ResizablePanel";var xd=Xa(({className:e,withHandle:t=!1,disabled:r=!1,...o},i)=>{let[n,s]=Db(!1),l=Bb(null),m=_o((c,b)=>{if(r)return;s(!0);let T=(w)=>{let C="touches"in w?w.touches[0]:null,v=C?C.clientX:w.clientX,x=C?C.clientY:w.clientY,I=l.current;if(!I)return;let z=I.closest("[data-panel-group]");if(!z)return;let H=z.dataset.direction,k=z.getBoundingClientRect(),_=Array.from(z.querySelectorAll(":scope > [data-panel]")),X=Array.from(z.children).indexOf(I),O,$;for(let S of _){let A=Array.from(z.children).indexOf(S);if(A<X)O=S;if(A>X&&!$)$=S}if(O&&$){let S=H==="horizontal"?k.width:k.height,h=(H==="horizontal"?v-k.left:x-k.top)/S*100,V=Math.max(10,Math.min(90,h)),J=100-V;O.style.flexBasis=`${V}%`,$.style.flexBasis=`${J}%`}},M=()=>{s(!1),document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",M),document.removeEventListener("touchmove",T),document.removeEventListener("touchend",M)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",M),document.addEventListener("touchmove",T),document.addEventListener("touchend",M)},[r]),p=_o((c)=>{c.preventDefault(),m(c.clientX,c.clientY)},[m]),f=_o((c)=>{let b=c.touches[0];if(b)m(b.clientX,b.clientY)},[m]),u=_o((c)=>{if(r)return;let b=l.current??c.currentTarget,T=b.closest("[data-panel-group]");if(!T)return;let M=T.dataset.direction,w=c.shiftKey?10:1,C=Array.from(T.querySelectorAll(":scope > [data-panel]")),v=Array.from(T.children).indexOf(b),x,I;for(let k of C){let _=Array.from(T.children).indexOf(k);if(_<v)x=k;if(_>v&&!I)I=k}if(!(x&&I))return;let z=Number.parseFloat(x.style.flexBasis)||50,H=0;if(M==="horizontal"){if(c.key==="ArrowLeft")H=-w;if(c.key==="ArrowRight")H=w}else{if(c.key==="ArrowUp")H=-w;if(c.key==="ArrowDown")H=w}if(H!==0){c.preventDefault();let k=Math.max(10,Math.min(90,z+H));x.style.flexBasis=`${k}%`,I.style.flexBasis=`${100-k}%`}},[r]),P="horizontal";return Go("div",{ref:(c)=>{if(l.current=c,typeof i==="function")i(c);else if(i)i.current=c},role:"separator","aria-orientation":"horizontal",tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":n,onMouseDown:p,onTouchStart:f,onKeyDown:u,className:a(vd({direction:"horizontal",withHandle:t}),n&&"bg-primary",r&&"pointer-events-none opacity-50",e),...o,children:t&&Go("div",{className:a(yd({direction:"horizontal"}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});xd.displayName="ResizableHandle";import*as rt from"@radix-ui/react-scroll-area";import{cva as Za}from"class-variance-authority";import{forwardRef as Td}from"react";import{jsxDEV as Lr}from"react/jsx-dev-runtime";var Cd=Za("relative overflow-hidden"),Fb={display:"flex",flexDirection:"column"},Ob={flex:"1 1 0%",minHeight:0},zd=Za("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"}}),Sd=Za("relative flex-1 rounded-full bg-border"),wd=Td(({className:e,children:t,style:r,...o},i)=>Lr(rt.Root,{ref:i,className:a(Cd(),e),style:{...r,...Fb},...o,children:[Lr(rt.Viewport,{className:"w-full rounded-[inherit]",style:Ob,children:t},void 0,!1,void 0,this),Lr(qa,{},void 0,!1,void 0,this),Lr(rt.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));wd.displayName="ScrollArea";var qa=Td(({className:e,orientation:t="vertical",...r},o)=>Lr(rt.ScrollAreaScrollbar,{ref:o,orientation:t,className:a(zd({orientation:t}),e),...r,children:Lr(rt.ScrollAreaThumb,{className:a(Sd())},void 0,!1,void 0,this)},void 0,!1,void 0,this));qa.displayName="ScrollBar";import*as wt from"@radix-ui/react-popover";import{cva as Nd}from"class-variance-authority";import{Check as _b,ChevronDown as Gb,X as Wb}from"lucide-react";import{Children as $b,createContext as Kb,forwardRef as so,isValidElement as Ub,useCallback as $o,useContext as Ld,useEffect as Ko,useId as Md,useMemo as Yb,useRef as Rd,useState as io}from"react";import{jsxDEV as ae,Fragment as jb}from"react/jsx-dev-runtime";var Q={sm:"sm",md:"md",lg:"lg",xl:"xl"},Rr={default:"default",error:"error",success:"success"},no={trigger:"trigger",auto:"auto"},Xb={start:"start",center:"center",end:"end"},Hd=Nd(["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:{[Q.sm]:"h-8 px-2.5 text-xs",[Q.md]:"h-10 px-3.5",[Q.lg]:"h-11 px-4.5 text-sm",[Q.xl]:"h-12 px-4 text-base"},status:{[Rr.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[Rr.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[Rr.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:Q.md,status:Rr.default}}),kd=Nd(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[no.trigger]:"w-[var(--radix-popover-trigger-width)]",[no.auto]:"w-max min-w-0"},size:{[Q.sm]:"text-xs",[Q.md]:"text-sm",[Q.lg]:"text-sm",[Q.xl]:"text-base"}},defaultVariants:{widthMode:no.auto,size:Q.md}}),Zb={[Q.sm]:"min-h-7 py-1 px-2 pr-3 text-xs",[Q.md]:"min-h-9 py-2 px-3 pr-4.5 text-sm",[Q.lg]:"min-h-10 py-2.5 px-3.5 pr-5.5 text-sm",[Q.xl]:"min-h-11 py-3 px-4 pr-6 text-base"},qb={[Q.sm]:"px-2 py-1 text-xs",[Q.md]:"px-2 py-1.5 text-sm",[Q.lg]:"px-2.5 py-1.5 text-sm",[Q.xl]:"px-3 py-2 text-base"},Uo={[Q.sm]:"size-3.5",[Q.md]:"size-4",[Q.lg]:"size-4",[Q.xl]:"size-4.5"};function Ja(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)=>Ja(t)).join("");if(Ub(e))return Ja(e.props.children);return""}var Qa=Kb(null);function Yo(){let e=Ld(Qa);if(!e)throw Error("Select components must be used within Select");return e}function Ea(e){let t=Ld(Qa);if(e)return e;return t?.triggerSize??Q.md}var Jb=({children:e,value:t,defaultValue:r="",onValueChange:o,open:i,defaultOpen:n=!1,onOpenChange:s,disabled:l=!1})=>{let[m,p]=io(Q.md),[f,u]=io(!1),[P,c]=io(r),[b,T]=io(n),[M,w]=io(0),C=Rd(new Map),v=t!==void 0,x=i!==void 0,I=v?t:P,z=x?i:b,H=$o((A)=>{if(!v)c(A);if(o?.(A),!x)T(!1);s?.(!1)},[v,x,o,s]),k=$o((A)=>{if(l)return;if(!x)T(A);s?.(A)},[l,x,s]),_=$o((A,h)=>{if(C.current.get(A)!==h)C.current.set(A,h),w((J)=>J+1)},[]),X=$o((A)=>{return C.current.get(A)},[]),O=Md(),$=Md(),S=Yb(()=>({value:I,onValueChange:H,open:z,onOpenChange:k,triggerSize:m,setTriggerSize:p,triggerFullWidth:f,setTriggerFullWidth:u,disabled:l,triggerId:O,contentId:$,registerItem:_,getLabel:X}),[I,H,z,k,m,f,l,O,$,_,X,M]);return ae(Qa.Provider,{value:S,children:ae(wt.Root,{open:z,onOpenChange:k,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},Qb=({children:e,className:t})=>ae("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),Eb=({placeholder:e})=>{let{value:t,getLabel:r}=Yo();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(jb,{children:o??t},void 0,!1,void 0,this)},Ad=so(({className:e,children:t,size:r=Q.md,status:o=Rr.default,fullWidth:i=!1,clearable:n=!1,leadingIcon:s,indicatorIcon:l,renderValue:m,placeholder:p,onKeyDown:f,...u},P)=>{let c=Yo(),b=d(r)??r,T=c.setTriggerSize,M=c.setTriggerFullWidth;Ko(()=>{T(b)},[b,T]),Ko(()=>{M(i)},[i,M]);let w=c.value.length>0,C=n&&w&&!c.disabled,v=(z)=>{z.stopPropagation(),z.preventDefault(),c.onValueChange("")},x;if(m)x=w?m(c.value):p?ae("span",{className:"text-muted-foreground",children:p},void 0,!1,void 0,this):null;else x=t;let I=(z)=>{if(f?.(z),z.defaultPrevented)return;if(z.key==="ArrowDown"||z.key==="ArrowUp"||z.key==="Enter"||z.key===" "){if(!c.open)z.preventDefault(),c.onOpenChange(!0)}};return ae(wt.Trigger,{asChild:!0,children:ae("button",{ref:P,type:"button",role:"combobox","aria-expanded":c.open,"aria-haspopup":"listbox","aria-controls":c.contentId,id:c.triggerId,disabled:c.disabled,"data-state":c.open?"open":"closed","data-placeholder":w?void 0:"",className:a(Hd({size:b,status:o}),i?"w-full":"w-auto",e),onKeyDown:I,...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:[C&&ae("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onMouseDown:(z)=>z.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(Wb,{className:Uo[b]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??ae(Gb,{className:a(Uo[b],"opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]",c.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)});Ad.displayName="SelectTrigger";var Id=so(({className:e,children:t,widthMode:r,size:o,align:i="start",side:n="bottom",sideOffset:s=4,portal:l=!0,forceMount:m=!0,onKeyDown:p,...f},u)=>{let P=Yo(),c=Ea(o),b=r??no.auto,T=Rd(null),M=Yr(u,T),w=(x)=>{let I=T.current;if(!I)return;let z=Array.from(I.querySelectorAll('[role="option"]:not([data-disabled])'));if(z.length===0)return;let H=I.querySelector('[role="option"]:focus'),k=H?z.indexOf(H):-1,_;switch(x){case"first":_=z[0];break;case"last":_=z[z.length-1];break;case"next":_=z[k+1]??z[0];break;case"prev":_=z[k-1]??z[z.length-1];break}_?.focus()},C=(x)=>{if(p?.(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(),P.onOpenChange(!1);break}};Ko(()=>{if(P.open)requestAnimationFrame(()=>w("first"))},[P.open]);let v=ae(wt.Content,{ref:M,id:P.contentId,role:"listbox","aria-labelledby":P.triggerId,side:n,align:i,sideOffset:s,forceMount:m,onKeyDown:C,onOpenAutoFocus:(x)=>x.preventDefault(),className:a(Cr(),kd({widthMode:b,size:c}),"p-1",e),...f,children:t},void 0,!1,void 0,this);if(l)return ae(wt.Portal,{children:v},void 0,!1,void 0,this);return v});Id.displayName="SelectContent";var Vd=so(({className:e,size:t,...r},o)=>{let i=Ea(t);return ae("div",{ref:o,className:a("font-semibold text-foreground",qb[i],e),...r},void 0,!1,void 0,this)});Vd.displayName="SelectLabel";var Bd=so(({className:e,children:t,value:r,label:o,size:i,disabled:n=!1,...s},l)=>{let m=Yo(),p=Ea(i),f=m.value===r,u=m.registerItem,P=Ja($b.toArray(t)).trim();Ko(()=>{let T=o??(P.length>0?P:r);u(r,T)},[P,r,o,u]);let c=()=>{if(!n)m.onValueChange(r)},b=(T)=>{if(T.key==="Enter"||T.key===" ")T.preventDefault(),c()};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: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",Zb[p],f&&"bg-accent/50",e),onClick:c,onKeyDown:b,...s,children:[ae("span",{className:a("flex shrink-0 items-center justify-center",Uo[p]),children:f&&ae(_b,{className:Uo[p]},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)});Bd.displayName="SelectItem";var Dd=so(({className:e,...t},r)=>ae("div",{ref:r,className:a("-mx-1 my-1 h-px bg-border",e),...t},void 0,!1,void 0,this));Dd.displayName="SelectSeparator";import{cva as ei}from"class-variance-authority";import{createContext as ev,forwardRef as ti,useCallback as Fd,useContext as Gd,useEffect as ja,useLayoutEffect as tv,useRef as Od,useState as _d}from"react";import{jsxDEV as Jt}from"react/jsx-dev-runtime";var Ne={sm:"sm",md:"md",lg:"lg"},Wd=ei("relative inline-flex items-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[Ne.sm]:"h-9 gap-0.5",[Ne.md]:"h-10 gap-0.5",[Ne.lg]:"h-11 gap-1"}},defaultVariants:{size:Ne.md}}),$d=ei(["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:{[Ne.sm]:"size-7",[Ne.md]:"size-8",[Ne.lg]:"size-9"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:Ne.md,active:!1}}),Kd=ei(["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:{[Ne.sm]:"h-7 px-3 text-xs",[Ne.md]:"h-8 px-3 text-sm",[Ne.lg]:"h-9 px-4 text-sm"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:Ne.md,active:!1}}),ri=ev({activeValue:"",onSelect:()=>{},size:Ne.md,disabled:!1}),rv=typeof window<"u"?tv:ja,Ud=ti(({className:e,value:t,defaultValue:r,onValueChange:o,size:i,disabled:n=!1,children:s,...l},m)=>{let p=d(i),f=Od(null),[u,P]=_d(r??""),[c,b]=_d(null),T=Od(!0),M=t!==void 0?t:u,w=Fd((v)=>{if(n)return;if(t===void 0)P(v);o?.(v)},[n,t,o]),C=Fd(()=>{let v=f.current;if(!v)return;let x=v.querySelector('[data-state="active"]');if(!x){b(null);return}let I=v.getBoundingClientRect(),z=x.getBoundingClientRect();b({left:z.left-I.left,width:z.width})},[]);return rv(()=>{C()},[C,M]),ja(()=>{if(T.current)requestAnimationFrame(()=>{T.current=!1})},[]),ja(()=>{let v=f.current;if(!v)return;let x=new MutationObserver(()=>{C()});return x.observe(v,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>x.disconnect()},[C]),Jt(ri.Provider,{value:{activeValue:M,onSelect:w,size:p,disabled:n},children:Jt("div",{ref:(v)=>{if(f.current=v,typeof m==="function")m(v);else if(m)m.current=v},role:"radiogroup",className:a(Wd({size:p}),n&&"opacity-50 pointer-events-none",e),...l,children:[c&&Jt("span",{"aria-hidden":"true",className:a("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!T.current&&"transition-[left,width] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]"),style:{left:c.left,width:c.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Ud.displayName="SegmentedControl";var Yd=ti(({className:e,value:t,icon:r,disabled:o=!1,...i},n)=>{let{activeValue:s,onSelect:l,size:m,disabled:p}=Gd(ri),f=s===t,u=o||p;return Jt("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:a($d({size:m,active:f}),e),...i,children:Jt("span",{className:"size-4 [&>svg]:size-full",children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Yd.displayName="SegmentedControlItem";var Xd=ti(({className:e,value:t,icon:r,disabled:o=!1,children:i,...n},s)=>{let{activeValue:l,onSelect:m,size:p,disabled:f}=Gd(ri),u=l===t,P=o||f;return Jt("button",{ref:s,type:"button",role:"radio","aria-checked":u,"aria-disabled":P||void 0,"data-state":u?"active":"inactive","data-value":t,disabled:P,onClick:()=>m(t),className:a(Kd({size:p,active:u}),e),...n,children:[r&&Jt("span",{className:"size-4 [&>svg]:size-full",children:r},void 0,!1,void 0,this),i]},void 0,!0,void 0,this)});Xd.displayName="SegmentedControlLabelItem";import{cva as ov}from"class-variance-authority";import{forwardRef as av}from"react";import{jsxDEV as iv}from"react/jsx-dev-runtime";var lo={horizontal:"horizontal",vertical:"vertical"},Zd=ov("shrink-0 bg-border",{variants:{orientation:{[lo.horizontal]:"h-px w-full",[lo.vertical]:"h-full w-px"}},defaultVariants:{orientation:lo.horizontal}}),qd=av(({className:e,orientation:t=lo.horizontal,decorative:r=!0,...o},i)=>{let n=r?{role:"none"}:{role:"separator","aria-orientation":t};return iv("div",{ref:i,className:a(Zd({orientation:t}),e),...n,...o},void 0,!1,void 0,this)});qd.displayName="Separator";import{cva as Xo}from"class-variance-authority";import{forwardRef as Zo}from"react";import{jsxDEV as qo}from"react/jsx-dev-runtime";var pe={sm:"sm",md:"md",lg:"lg"},Jd=Xo("animate-pulse rounded-[var(--radius)] bg-muted"),Qd=Xo("w-full",{variants:{size:{[pe.sm]:"h-3",[pe.md]:"h-4",[pe.lg]:"h-5"}},defaultVariants:{size:pe.md}}),Ed=Xo("",{variants:{size:{[pe.sm]:"h-8 w-8",[pe.md]:"h-10 w-10",[pe.lg]:"h-12 w-12"}},defaultVariants:{size:pe.md}}),jd=Xo("",{variants:{size:{[pe.sm]:"h-8 w-20",[pe.md]:"h-9 w-24",[pe.lg]:"h-10 w-28"}},defaultVariants:{size:pe.md}}),mo=Zo(({className:e,circle:t=!1,...r},o)=>qo("div",{ref:o,className:a(Jd(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));mo.displayName="Skeleton";var ep=Zo(({className:e,size:t=pe.md,...r},o)=>{let i=d(t)??pe.md;return qo(mo,{ref:o,className:a(Qd({size:i}),e),...r},void 0,!1,void 0,this)});ep.displayName="SkeletonText";var tp=Zo(({className:e,size:t=pe.md,...r},o)=>{let i=d(t)??pe.md;return qo(mo,{ref:o,circle:!0,className:a(Ed({size:i}),e),...r},void 0,!1,void 0,this)});tp.displayName="SkeletonAvatar";var rp=Zo(({className:e,size:t=pe.md,...r},o)=>{let i=d(t)??pe.md;return qo(mo,{ref:o,className:a(jd({size:i}),e),...r},void 0,!1,void 0,this)});rp.displayName="SkeletonButton";import*as Mt from"@radix-ui/react-slider";import{cva as Eo}from"class-variance-authority";import{forwardRef as nv}from"react";import{jsxDEV as Qo}from"react/jsx-dev-runtime";var Jo={sm:"sm",md:"md",lg:"lg"},op=Eo("relative flex w-full touch-none select-none items-center",{variants:{size:{[Jo.sm]:"[&_[data-slider-track]]:h-0.5 [&_[data-slider-thumb]]:h-3 [&_[data-slider-thumb]]:w-3",[Jo.md]:"[&_[data-slider-track]]:h-2 [&_[data-slider-thumb]]:h-5 [&_[data-slider-thumb]]:w-5",[Jo.lg]:"[&_[data-slider-track]]:h-3 [&_[data-slider-thumb]]:h-6 [&_[data-slider-thumb]]:w-6"}},defaultVariants:{size:Jo.md}}),ap=Eo("relative w-full grow overflow-hidden rounded-full bg-secondary"),ip=Eo("absolute h-full bg-primary"),np=Eo("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"),sp=nv(({className:e,size:t,...r},o)=>{let i=d(t);return Qo(Mt.Root,{ref:o,className:a(op({size:i}),e),...r,children:[Qo(Mt.Track,{"data-slider-track":!0,className:a(ap()),children:Qo(Mt.Range,{className:a(ip())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((n,s)=>Qo(Mt.Thumb,{"data-slider-thumb":!0,className:a(np())},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});sp.displayName="Slider";import{cva as ye}from"class-variance-authority";import{forwardRef as mv,useCallback as Hr,useEffect as ai,useMemo as jo,useRef as mp,useState as ea}from"react";import{createPortal as dv}from"react-dom";import{useCallback as sv,useEffect as lv,useRef as lp}from"react";function oi(e,t,r={}){let{enabled:o=!0,preventDefault:i=!0,stopPropagation:n=!1,target:s="global"}=r,l=lp(t);l.current=t;let m=lp([]),p=Array.isArray(e)?e:[e];m.current=p.map((u)=>({combo:u,def:_a(u)}));let f=sv((u)=>{if(!o)return;for(let{combo:P,def:c}of m.current)if(Ga(u,c)){if(i)u.preventDefault();if(n)u.stopPropagation();l.current(u,P);return}},[o,i,n]);lv(()=>{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 q}from"react/jsx-dev-runtime";var Qt={sm:"sm",md:"md",lg:"lg",xl:"xl"},kr={idle:"idle",loading:"loading",error:"error"},dp=ye("fixed inset-0 z-[120] bg-black/60 backdrop-blur-sm",{variants:{state:{open:"animate-in fade-in-0",closing:"animate-out fade-out-0"}},defaultVariants:{state:"open"}}),pp=ye(["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"],{variants:{size:{[Qt.sm]:"max-w-md",[Qt.md]:"max-w-xl",[Qt.lg]:"max-w-2xl",[Qt.xl]:"max-w-3xl"},state:{open:"animate-in fade-in-0 slide-in-from-top-4",closing:"animate-out fade-out-0 slide-out-to-top-4"}},defaultVariants:{size:Qt.md,state:"open"}}),cp=ye("flex items-center gap-3 border-b border-border px-4 py-3"),up=ye(["w-full flex-1 bg-transparent text-foreground text-base","placeholder:text-muted-foreground","outline-none border-none"]),fp=ye("size-4 text-muted-foreground shrink-0"),ta=ye(["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"]),gp=ye("overflow-y-auto max-h-80 py-1"),bp=ye("px-3 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wide"),vp=ye(["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}}),yp=ye("size-4 shrink-0",{variants:{selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{selected:!1}}),Pp=ye("flex-1 min-w-0"),hp=ye("text-sm font-medium truncate"),xp=ye("text-xs text-muted-foreground truncate"),Tp=ye("flex items-center gap-1 text-[11px] text-muted-foreground shrink-0"),ra=ye("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"}}),oa=ye("text-sm font-medium"),Cp=ye("text-xs mt-1"),pv=(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},zp=mv(({className:e,open:t,onOpenChange:r,actions:o,onActionSelect:i,value:n,defaultValue:s="",onValueChange:l,placeholder:m="Search commands, pages, or actions...",size:p=Qt.md,status:f=kr.idle,statusMessage:u,emptyText:P="No command found for this query.",hotkey:c,portal:b=!0,...T},M)=>{let w=mp(null),C=mp(null),[v,x]=ea(s),[I,z]=ea(0),[H,k]=ea(!1),[_,X]=ea(!1),{isMac:O}=qr(),$=Hr((R)=>Zr(R,O),[O]),S=jo(()=>c&&c.length>0?c.join("+"):null,[c]);oi(S??"",()=>r(!t),{enabled:!!S});let A=n!==void 0?n:v,h=jo(()=>o.filter((R)=>pv(R,A)),[o,A]),V=jo(()=>h.map((R,j)=>!R.disabled?j:-1).filter((R)=>R>=0),[h]),J=jo(()=>{let R=new Map,j=new Map,ie=0;for(let Le of h){let It=Le.group??"";if(!R.has(It))R.set(It,[]);R.get(It).push(Le),j.set(Le,ie),ie++}return{groups:R,indexMap:j}},[h]);ai(()=>{if(t){k(!0),X(!1),z(0);return}if(H)X(!0)},[t]);let L=Hr(()=>{if(_)k(!1),X(!1)},[_]);ai(()=>{if(t)document.body.style.overflow="hidden";else document.body.style.overflow="";return()=>{document.body.style.overflow=""}},[t]),ai(()=>{if(t&&H)requestAnimationFrame(()=>w.current?.focus())},[t,H]);let U=Hr((R)=>{let j=R.target.value;x(j),l?.(j),z(0)},[l]),g=Hr((R)=>{let j=C.current;if(!j)return;j.querySelectorAll('[role="option"]')[R]?.scrollIntoView({block:"nearest"})},[]),y=Hr((R)=>{if(R.key==="Escape"){R.preventDefault(),r(!1);return}if(R.key==="ArrowDown"){if(R.preventDefault(),V.length===0)return;let ie=(V.indexOf(I)+1)%V.length,Le=V[ie];z(Le),g(Le);return}if(R.key==="ArrowUp"){if(R.preventDefault(),V.length===0)return;let ie=(V.indexOf(I)-1+V.length)%V.length,Le=V[ie];z(Le),g(Le);return}if(R.key==="Enter"){R.preventDefault();let j=h[I];if(j&&!j.disabled)i(j,I)}},[I,V,h,i,r,g]),N=Hr((R,j)=>{if(R.disabled)return;i(R,j)},[i]);if(!H)return null;let ce=_?"closing":"open",Z=f===kr.idle,Ae=f!==kr.idle,E=q("div",{ref:M,role:"dialog","aria-modal":"true",onKeyDown:y,className:a(e),...T,children:[q("div",{"data-testid":"spotlight-overlay",className:a(dp({state:ce})),onClick:()=>r(!1),onKeyDown:(R)=>{if(R.key==="Escape")r(!1)}},void 0,!1,void 0,this),q("div",{className:a(pp({size:p,state:ce})),onAnimationEnd:L,children:[q("div",{className:a(cp()),children:[q("svg",{className:a(fp()),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:q("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),q("input",{ref:w,type:"text",value:A,onChange:U,placeholder:m,className:a(up())},void 0,!1,void 0,this),c?q("div",{className:"flex items-center gap-1",children:c.map((R)=>q("kbd",{className:a(ta()),children:$(R)},R,!1,void 0,this))},void 0,!1,void 0,this):q("kbd",{className:a(ta()),children:"ESC"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ae&&f===kr.loading&&q("div",{className:a(ra({state:"loading"})),children:q("div",{className:a(oa()),children:"Searching commands..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ae&&f===kr.error&&q("div",{className:a(ra({state:"error"})),children:[q("div",{className:a(oa()),children:"Search failed"},void 0,!1,void 0,this),u&&q("div",{className:a(Cp()),children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z&&h.length===0&&q("div",{className:a(ra({state:"empty"})),children:q("div",{className:a(oa()),children:P},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z&&h.length>0&&q("div",{ref:C,className:a(gp()),children:Array.from(J.groups.entries()).map(([R,j])=>q("div",{children:[R&&q("div",{className:a(bp()),children:R},void 0,!1,void 0,this),j.map((ie)=>{let Le=J.indexMap.get(ie)??0,It=Le===I;return q("div",{role:"option","aria-selected":It,"aria-disabled":ie.disabled??!1,onClick:()=>N(ie,Le),className:a(vp({selected:It,disabled:ie.disabled??!1})),children:[ie.icon&&q("span",{className:a(yp({selected:It})),children:ie.icon},void 0,!1,void 0,this),q("div",{className:a(Pp()),children:[q("div",{className:a(hp()),children:ie.title},void 0,!1,void 0,this),ie.description&&q("div",{className:a(xp()),children:ie.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ie.shortcut&&ie.shortcut.length>0&&q("div",{className:a(Tp()),children:ie.shortcut.map((hi)=>q("kbd",{className:a(ta()),children:$(hi)},hi,!1,void 0,this))},void 0,!1,void 0,this)]},ie.id,!0,void 0,this)})]},R||"__ungrouped__",!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(b)return dv(E,document.body);return E});zp.displayName="Spotlight";import{cva as cv}from"class-variance-authority";import{forwardRef as uv}from"react";import{jsxDEV as Nt}from"react/jsx-dev-runtime";var _e={sm:"sm",md:"md",lg:"lg"},Et={up:"up",down:"down",neutral:"neutral"},Sp=cv("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:{[_e.sm]:"gap-1 p-3",[_e.md]:"gap-1.5 p-4",[_e.lg]:"gap-2 p-5"}},defaultVariants:{size:_e.md}}),fv={[_e.sm]:"text-lg font-semibold",[_e.md]:"text-2xl font-bold",[_e.lg]:"text-3xl font-bold"},gv={[_e.sm]:"text-xs",[_e.md]:"text-sm",[_e.lg]:"text-base"},bv={[Et.up]:"text-success",[Et.down]:"text-destructive",[Et.neutral]:"text-muted-foreground"},vv={[Et.up]:"↑",[Et.down]:"↓",[Et.neutral]:"→"},wp=uv(({className:e,size:t=_e.md,label:r,value:o,trend:i,trendValue:n,icon:s,...l},m)=>{let p=d(t);return Nt("div",{ref:m,className:a(Sp({size:p}),e),...l,children:[Nt("div",{className:"flex items-center justify-between",children:[Nt("span",{className:a("text-muted-foreground",gv[p]),children:r},void 0,!1,void 0,this),s&&Nt("span",{className:"text-muted-foreground/70","aria-hidden":"true",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Nt("div",{className:"flex items-baseline gap-2",children:[Nt("span",{className:a("tracking-tight text-foreground",fv[p]),children:o},void 0,!1,void 0,this),i&&n&&Nt("span",{className:a("inline-flex items-center gap-0.5 text-xs font-medium",bv[i]),children:[Nt("span",{"aria-hidden":"true",children:vv[i]},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)});wp.displayName="StatCard";import{cva as jt}from"class-variance-authority";import{Check as yv}from"lucide-react";import{forwardRef as er}from"react";import{jsxDEV as Lt}from"react/jsx-dev-runtime";var Mp=jt("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),Np=jt("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),Lp=jt(["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}}),Rp=jt("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}}),Hp=jt("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),kp=jt("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"}}),Ap=jt("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 Ip=er(({className:e,orientation:t="horizontal",activeStep:r,...o},i)=>{return Lt("div",{ref:i,role:"group","aria-label":"Progress steps",className:a(Mp({orientation:t}),e),"data-orientation":t,"data-active-step":r,...o},void 0,!1,void 0,this)});Ip.displayName="Stepper";var Vp=er(({className:e,orientation:t="horizontal",isLast:r,isCurrent:o,...i},n)=>{return Lt("div",{ref:n,className:a(Np({orientation:t}),e),"data-last":r,"aria-current":o?"step":void 0,...i},void 0,!1,void 0,this)});Vp.displayName="Step";var Bp=er(({className:e,status:t="incomplete",size:r="md",icon:o,step:i,children:n,animated:s=!0,...l},m)=>{let p=d(r);return Lt("div",{ref:m,className:a(Lp({status:t,size:p,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?o||Lt(yv,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):n||i},void 0,!1,void 0,this)});Bp.displayName="StepIndicator";var Dp=er(({className:e,orientation:t="horizontal",status:r="incomplete",size:o="md",animated:i=!0,...n},s)=>{let l=d(o);return Lt("div",{ref:s,className:a(Rp({orientation:t,status:r,size:l,animated:i}),e),"data-status":r,...n},void 0,!1,void 0,this)});Dp.displayName="StepConnector";var Fp=er(({className:e,orientation:t="horizontal",...r},o)=>{return Lt("div",{ref:o,className:a(Hp({orientation:t}),e),...r},void 0,!1,void 0,this)});Fp.displayName="StepContent";var Op=er(({className:e,status:t="incomplete",size:r="md",...o},i)=>{let n=d(r);return Lt("h4",{ref:i,className:a(kp({status:t,size:n}),e),...o},void 0,!1,void 0,this)});Op.displayName="StepTitle";var _p=er(({className:e,size:t="md",...r},o)=>{let i=d(t);return Lt("p",{ref:o,className:a(Ap({size:i}),e),...r},void 0,!1,void 0,this)});_p.displayName="StepDescription";import*as aa from"@radix-ui/react-switch";import{cva as Pv}from"class-variance-authority";import{forwardRef as hv}from"react";import{jsxDEV as Gp}from"react/jsx-dev-runtime";var Se={sm:"sm",md:"md",lg:"lg",xl:"xl"},Ar={default:"default",error:"error",success:"success"},Wp=Pv("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:{[Se.sm]:"h-4.5 w-8",[Se.md]:"h-5 w-9",[Se.lg]:"h-6 w-11",[Se.xl]:"h-7 w-[3.25rem]"},status:{[Ar.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",[Ar.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",[Ar.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:Se.md,status:Ar.default}}),xv={[Se.sm]:"h-3.5 w-3.5",[Se.md]:"h-4 w-4",[Se.lg]:"h-5 w-5",[Se.xl]:"h-6 w-6"},Tv={[Se.sm]:"data-[state=checked]:translate-x-3.5",[Se.md]:"data-[state=checked]:translate-x-4",[Se.lg]:"data-[state=checked]:translate-x-5",[Se.xl]:"data-[state=checked]:translate-x-6"},$p=hv(({className:e,size:t=Se.md,status:r=Ar.default,checked:o,disabled:i,...n},s)=>{let l=d(t);return Gp(aa.Root,{ref:s,checked:o,disabled:i,className:a(Wp({size:l,status:r}),e),...n,children:Gp(aa.Thumb,{className:a("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",xv[l],Tv[l])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});$p.displayName="Switch";import{cva as ct}from"class-variance-authority";import{createContext as Cv,forwardRef as Rt,useContext as Kp}from"react";import{jsxDEV as ot}from"react/jsx-dev-runtime";var xe={sm:"sm",md:"md",lg:"lg"},ii=Cv(xe.md),Up=ct("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),Yp=ct("w-full caption-bottom",{variants:{size:{[xe.sm]:"text-xs",[xe.md]:"text-sm",[xe.lg]:"text-sm"}},defaultVariants:{size:xe.md}}),Xp=ct("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),Zp=ct("[&_tr:last-child]:border-0"),qp=ct("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),Jp=ct("gs-interactive border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),Qp=ct("text-left align-middle font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[xe.sm]:"h-8 px-2",[xe.md]:"h-10 px-3",[xe.lg]:"h-12 px-4"}},defaultVariants:{size:xe.md}}),Ep=ct("align-middle text-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[xe.sm]:"p-2",[xe.md]:"p-3",[xe.lg]:"p-4"}},defaultVariants:{size:xe.md}}),jp=ct("mt-4 text-sm text-muted-foreground"),ec=Rt(({className:e,containerClassName:t,size:r=xe.md,...o},i)=>{let n=d(r)??xe.md;return ot(ii.Provider,{value:n,children:ot("div",{className:a(Up(),t),children:ot("table",{ref:i,className:a(Yp({size:n}),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ec.displayName="Table";var tc=Rt(({className:e,...t},r)=>ot("thead",{ref:r,className:a(Xp(),e),...t},void 0,!1,void 0,this));tc.displayName="TableHeader";var rc=Rt(({className:e,...t},r)=>ot("tbody",{ref:r,className:a(Zp(),e),...t},void 0,!1,void 0,this));rc.displayName="TableBody";var oc=Rt(({className:e,...t},r)=>ot("tfoot",{ref:r,className:a(qp(),e),...t},void 0,!1,void 0,this));oc.displayName="TableFooter";var ac=Rt(({className:e,...t},r)=>ot("tr",{ref:r,className:a(Jp(),e),...t},void 0,!1,void 0,this));ac.displayName="TableRow";var ic=Rt(({className:e,size:t,...r},o)=>{let i=Kp(ii);return ot("th",{ref:o,className:a(Qp({size:t??i}),e),...r},void 0,!1,void 0,this)});ic.displayName="TableHead";var nc=Rt(({className:e,size:t,...r},o)=>{let i=Kp(ii);return ot("td",{ref:o,className:a(Ep({size:t??i}),e),...r},void 0,!1,void 0,this)});nc.displayName="TableCell";var sc=Rt(({className:e,...t},r)=>ot("caption",{ref:r,className:a(jp(),e),...t},void 0,!1,void 0,this));sc.displayName="TableCaption";import*as Qe from"@radix-ui/react-tabs";import{cva as ni}from"class-variance-authority";import{createContext as zv,forwardRef as si,useCallback as lc,useContext as Sv,useEffect as li,useLayoutEffect as wv,useRef as ia,useState as Mv}from"react";import{jsxDEV as po}from"react/jsx-dev-runtime";var at={sm:"sm",md:"md",lg:"lg",xl:"xl"},mc=ni("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[at.sm]:"h-9 gap-0.5",[at.md]:"h-11 gap-1",[at.lg]:"h-12 gap-1",[at.xl]:"h-14 gap-1.5"}},defaultVariants:{size:at.md}}),dc=ni("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:{[at.sm]:"px-2.5 py-1 text-xs",[at.md]:"px-3 py-1.5 text-sm",[at.lg]:"px-4 py-2 text-sm",[at.xl]:"px-5 py-2.5 text-base"}},defaultVariants:{size:at.md}}),pc=ni("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),cc=zv({registerTrigger:()=>{}}),Nv=typeof window<"u"?wv:li,Lv=Qe.Root,uc=si(({className:e,size:t,children:r,...o},i)=>{let n=d(t),s=ia(null),l=ia(new Map),[m,p]=Mv(null),f=ia(!0),u=lc((c,b)=>{if(b)l.current.set(c,b);else l.current.delete(c)},[]),P=lc(()=>{let c=s.current;if(!c)return;let b=c.querySelector('[data-state="active"]');if(!b){p(null);return}let T=c.getBoundingClientRect(),M=b.getBoundingClientRect();p({left:M.left-T.left,width:M.width})},[]);return Nv(()=>{P()},[P]),li(()=>{let c=s.current;if(!c)return;let b=new MutationObserver(()=>{f.current=!1,P()});return b.observe(c,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>b.disconnect()},[P]),po(cc.Provider,{value:{registerTrigger:u},children:po(Qe.List,{ref:(c)=>{if(s.current=c,typeof i==="function")i(c);else if(i)i.current=c},className:a(mc({size:n}),e),...o,children:[m&&po("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: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)});uc.displayName=Qe.List.displayName;var fc=si(({className:e,size:t,value:r,...o},i)=>{let n=d(t),{registerTrigger:s}=Sv(cc),l=ia(null);return li(()=>{return s(r,l.current),()=>s(r,null)},[r,s]),po(Qe.Trigger,{ref:(m)=>{if(l.current=m,typeof i==="function")i(m);else if(i)i.current=m},value:r,className:a(dc({size:n}),e),...o},void 0,!1,void 0,this)});fc.displayName=Qe.Trigger.displayName;var gc=si(({className:e,...t},r)=>po(Qe.Content,{ref:r,className:a(pc(),e),...t},void 0,!1,void 0,this));gc.displayName=Qe.Content.displayName;import{cva as Rv}from"class-variance-authority";import{forwardRef as Hv}from"react";import{jsxDEV as kv}from"react/jsx-dev-runtime";var co={default:"default",error:"error",success:"success"},Ir={sm:"sm",md:"md",lg:"lg",xl:"xl"},bc=Rv("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:{[co.default]:"focus-visible:ring-primary",[co.error]:"border-destructive focus-visible:ring-destructive",[co.success]:"border-success focus-visible:ring-success"},size:{[Ir.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[Ir.md]:"min-h-[96px] px-3 py-2",[Ir.lg]:"min-h-[112px] px-4 py-2.5",[Ir.xl]:"min-h-[128px] px-4 py-3 text-base"}},defaultVariants:{status:co.default,size:Ir.md}}),vc=Hv(({className:e,status:t=co.default,size:r=Ir.md,fullWidth:o=!1,noResize:i=!1,disabled:n,...s},l)=>{let m=d(r);return kv("textarea",{ref:l,className:a(bc({status:t,size:m}),n&&"bg-muted",o&&"w-full",i&&"resize-none",e),disabled:n,...s},void 0,!1,void 0,this)});vc.displayName="Textarea";import{cva as Ht}from"class-variance-authority";import{forwardRef as kt}from"react";import{jsxDEV as it}from"react/jsx-dev-runtime";var yc=Ht("relative flex flex-col"),Pc=Ht(["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}}),hc=Ht(["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}}),xc=Ht(["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}}),Tc=Ht("flex flex-col gap-1 pt-0.5 min-w-0 transition-opacity duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]"),Cc=Ht("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"}}),zc=Ht("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"}}),Sc=Ht("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 wc=kt(({className:e,...t},r)=>{return it("div",{ref:r,role:"list","aria-label":"Timeline events",className:a(yc(),e),...t},void 0,!1,void 0,this)});wc.displayName="Timeline";var Mc=kt(({className:e,align:t,isLast:r,animated:o=!0,...i},n)=>{return it("div",{ref:n,role:"listitem",className:a(Pc({align:t,animated:o}),e),"data-last":r,...i},void 0,!1,void 0,this)});Mc.displayName="TimelineItem";var Nc=kt(({className:e,variant:t,size:r,animated:o=!0,...i},n)=>{let s=d(r);return it("div",{ref:n,className:a(hc({variant:t,size:s,animated:o}),e),...i},void 0,!1,void 0,this)});Nc.displayName="TimelineConnector";var Lc=kt(({className:e,variant:t,size:r,icon:o,children:i,pulse:n=!1,animated:s=!0,...l},m)=>{let p=d(r);return it("div",{ref:m,className:a(xc({variant:t,size:p,pulse:n,animated:s}),e),"aria-hidden":"true",...l,children:o||i||it(Av,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Lc.displayName="TimelineDot";var Rc=kt(({className:e,...t},r)=>{return it("div",{ref:r,className:a(Tc(),e),...t},void 0,!1,void 0,this)});Rc.displayName="TimelineContent";var Hc=kt(({className:e,size:t,...r},o)=>{let i=d(t);return it("h4",{ref:o,className:a(Cc({size:i}),e),...r},void 0,!1,void 0,this)});Hc.displayName="TimelineTitle";var kc=kt(({className:e,size:t,...r},o)=>{let i=d(t);return it("p",{ref:o,className:a(zc({size:i}),e),...r},void 0,!1,void 0,this)});kc.displayName="TimelineDescription";var Ac=kt(({className:e,size:t,...r},o)=>{let i=d(t);return it("time",{ref:o,className:a(Sc({size:i}),e),...r},void 0,!1,void 0,this)});Ac.displayName="TimelineTime";function Av(){return it("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as Ic}from"class-variance-authority";var Vr={default:"default",success:"success",info:"info",warning:"warning",error:"error"},Ge={sm:"sm",md:"md",lg:"lg"},mi=Ic("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[Vr.default]:"border-border bg-card text-card-foreground",[Vr.success]:"border-success/30 bg-card text-card-foreground",[Vr.info]:"border-info/30 bg-card text-card-foreground",[Vr.warning]:"border-warning/30 bg-card text-card-foreground",[Vr.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[Ge.sm]:"gap-2 p-3",[Ge.md]:"gap-3 p-4",[Ge.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:Vr.default,size:Ge.md}}),di=Ic("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:{[Ge.sm]:"h-6 px-2 text-xs",[Ge.md]:"h-7 px-2.5 text-xs",[Ge.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:Ge.md}});import{AlertTriangle as Wv,CheckCircle2 as $v,Info as Oc,X as Kv,XCircle as Uv}from"lucide-react";import{forwardRef as Yv,useCallback as la,useEffect as ma,useRef as gi,useState as bi}from"react";import{useSyncExternalStore as Iv}from"react";var Vv=5,Bc=5000,Bv=500,pi=0;function Dv(){return pi=(pi+1)%Number.MAX_SAFE_INTEGER,`toast-${pi}-${Date.now()}`}var ci=new Set,We=[],rr=new Map,fo=new Map,go=!1,tr=new Map;function na(){for(let e of ci)e()}function Vc(){return We}function Fv(e){return ci.add(e),()=>{ci.delete(e)}}function ui(e,t){if(go){tr.set(e,t);return}clearTimeout(rr.get(e));let r=Date.now(),o=setTimeout(()=>{rr.delete(e),tr.delete(e),sa(e)},t);rr.set(e,o),tr.set(e,t);let i=setInterval(()=>{let n=Date.now()-r,s=t-n;if(s<=0)clearInterval(i),tr.delete(e);else tr.set(e,s)},100)}function Ov(e){clearTimeout(fo.get(e));let t=setTimeout(()=>{We=We.filter((r)=>r.id!==e),fo.delete(e),na()},Bv);fo.set(e,t)}function uo(e){let t=e.id??Dv(),r=e.duration??Bc;if(We.find((n)=>n.id===t))return We=We.map((n)=>n.id===t?{...n,...e,id:t,open:!0,createdAt:Date.now()}:n),clearTimeout(fo.get(t)),fo.delete(t),ui(t,r),na(),t;return We=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...We].slice(0,Vv),ui(t,r),na(),t}function sa(e){clearTimeout(rr.get(e)),rr.delete(e),tr.delete(e),We=We.map((t)=>t.id===e?{...t,open:!1}:t),na(),Ov(e)}function Dc(){for(let e of We)sa(e.id)}function _v(){if(go)return;go=!0;for(let[e,t]of rr)clearTimeout(t),rr.delete(e)}function Gv(){if(!go)return;go=!1;for(let e of We)if(e.open){let t=tr.get(e.id)??Bc;ui(e.id,t)}}var Fc=Object.assign((e)=>uo(e),{success:(e,t)=>uo({...t,variant:"success",title:e}),info:(e,t)=>uo({...t,variant:"info",title:e}),warning:(e,t)=>uo({...t,variant:"warning",title:e}),error:(e,t)=>uo({...t,variant:"error",title:e}),dismiss:sa,dismissAll:Dc});function fi(){return{toasts:Iv(Fv,Vc,Vc),toast:Fc,dismiss:sa,dismissAll:Dc,pauseAll:_v,resumeAll:Gv}}import{jsxDEV as we}from"react/jsx-dev-runtime";var Gc=10,_c=0.05,Xv=200,Wc="cubic-bezier(0.2, 0.8, 0.2, 1)",Zv="cubic-bezier(0.22, 1, 0.36, 1)",qv={"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"},Jv={success:(e)=>we($v,{className:a("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>we(Oc,{className:a("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>we(Wv,{className:a("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>we(Uv,{className:a("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>we(Oc,{className:a("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function Qv(e,t,r,o,i){let n=e<o,s=r?i:e*Gc,l=r?1:n?1-e*_c:1-o*_c,m=n||r?1:0,p=t-e;return{offset:s,scale:l,opacity:m,zIndex:p}}var $c=Yv(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:o=Ge.md,className:i,...n},s)=>{let{toasts:l,dismiss:m,pauseAll:p,resumeAll:f}=fi(),u=d(o)??Ge.md,[P,c]=bi(!1),[b,T]=bi({}),M=gi(null),w=gi(void 0),C=e.startsWith("bottom"),v=la((h)=>{if(M.current=h,typeof s==="function")s(h);else if(s)s.current=h},[s]),x=la(()=>{clearTimeout(w.current),c(!0),p()},[p]),I=la(()=>{clearTimeout(w.current),w.current=setTimeout(()=>{c(!1),f()},Xv)},[f]);ma(()=>{return()=>clearTimeout(w.current)},[]);let z=la((h,V)=>{T((J)=>{if(J[h]===V)return J;return{...J,[h]:V}})},[]);if(ma(()=>{let h=new Set(l.map((V)=>V.id));T((V)=>{let J=!1,L={};for(let[U,g]of Object.entries(V))if(h.has(U))L[U]=g;else J=!0;return J?L:V})},[l]),l.length===0)return null;let H=l.filter((h)=>h.open),k=new Map,_=0;for(let[h,V]of H.entries()){let J=b[V.id]??0;k.set(V.id,Qv(h,H.length,P,r,_)),_+=J+t}let X=H[0],$=(X?b[X.id]??0:0)+Math.min(H.length-1,r-1)*Gc,S=_-(H.length>0?t:0),A=P?S:$;return we("ol",{ref:v,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:x,onMouseLeave:I,className:a("pointer-events-auto fixed z-[100] w-full max-w-[400px] outline-none",qv[e],i),style:{height:Math.max(A,0),transition:`height 400ms ${Wc}`},...n,children:l.map((h)=>{let V=!h.open,J=k.get(h.id);return we(Ev,{toast:h,layout:J??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:V,isBottom:C,size:u,onDismiss:m,onMeasure:z},h.id,!1,void 0,this)})},void 0,!1,void 0,this)});$c.displayName="Toaster";function Ev({toast:e,layout:t,isClosed:r,isBottom:o,size:i,onDismiss:n,onMeasure:s}){let l=gi(null),[m,p]=bi(!1);ma(()=>{let b=requestAnimationFrame(()=>p(!0));return()=>cancelAnimationFrame(b)},[]),ma(()=>{let b=l.current;if(!b)return;let T=new ResizeObserver((M)=>{for(let w of M){let C=w.borderBoxSize?.[0];if(C)s(e.id,C.blockSize)}});return T.observe(b),()=>T.disconnect()},[e.id,s]);let f=o?{bottom:0,left:0,right:0}:{top:0,left:0,right:0},u,P,c;if(!m)u=`translateY(${o?80:-80}px) scale(0.9)`,P=0,c="none";else if(r)u=`translateY(${o?80:-80}px) scale(0.95)`,P=0,c="none";else u=`translateY(${o?-t.offset:t.offset}px) scale(${t.scale})`,P=t.opacity,c="auto";return we("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:P,pointerEvents:c,transition:[`transform 400ms ${Wc}`,`opacity 250ms ${Zv}`].join(", ")},children:we("div",{className:a(mi({variant:e.variant,size:i}),"w-full"),children:[Jv[e.variant]?.(i),we("div",{className:"flex-1 space-y-0.5",children:[e.title&&we("p",{className:a("font-semibold leading-tight",i==="sm"?"text-xs":"text-sm"),children:e.title},void 0,!1,void 0,this),e.description&&we("p",{className:a("leading-snug text-muted-foreground",i==="sm"?"text-xs":"text-sm"),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.action&&we("button",{type:"button",className:a(di({size:i}),"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&&we("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",i==="sm"?"[&>svg]:size-3.5":"[&>svg]:size-4"),onClick:()=>n(e.id),"aria-label":"Dismiss",children:we(Kv,{},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 Kc from"@radix-ui/react-toggle";import{cva as jv}from"class-variance-authority";import{forwardRef as ey}from"react";import{jsxDEV as ty}from"react/jsx-dev-runtime";var vi={default:"default",outline:"outline"},da={sm:"sm",md:"md",lg:"lg"},pa=jv("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:{[vi.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[vi.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[da.sm]:"h-7 px-1.5 min-w-7 text-xs",[da.md]:"h-10 px-3 min-w-10",[da.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:vi.default,size:da.md}}),Uc=ey(({className:e,variant:t,size:r,...o},i)=>{let n=d(r);return ty(Kc.Root,{ref:i,className:a(pa({variant:t,size:n}),e),...o},void 0,!1,void 0,this)});Uc.displayName="Toggle";import*as ca from"@radix-ui/react-toggle-group";import{cva as ry}from"class-variance-authority";import{createContext as oy,forwardRef as Yc,useContext as ay}from"react";import{jsxDEV as yi}from"react/jsx-dev-runtime";var iy={default:"default",outline:"outline"},ny={sm:"sm",md:"md",lg:"lg"},Xc=ry("flex items-center justify-center gap-1"),Zc=oy({size:ny.md,variant:iy.default}),qc=Yc(({className:e,variant:t,size:r,children:o,...i},n)=>{let s=d(r);return yi(ca.Root,{ref:n,className:a(Xc(),e),...i,children:yi(Zc.Provider,{value:{variant:t,size:s},children:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)});qc.displayName="ToggleGroup";var Jc=Yc(({className:e,children:t,variant:r,size:o,...i},n)=>{let s=ay(Zc),l=d(o);return yi(ca.Item,{ref:n,className:a(pa({variant:r??s.variant,size:l??s.size}),e),...i,children:t},void 0,!1,void 0,this)});Jc.displayName="ToggleGroupItem";import{cva as Qc}from"class-variance-authority";import{forwardRef as ua}from"react";import{jsxDEV as fa}from"react/jsx-dev-runtime";var Ee={sm:"sm",md:"md",lg:"lg"},Ec=Qc("flex items-center border-b border-border bg-background",{variants:{size:{[Ee.sm]:"gap-1.5 px-3 py-1.5",[Ee.md]:"gap-2 px-4 py-2",[Ee.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:Ee.md}}),jc=ua(({className:e,size:t=Ee.md,...r},o)=>{let i=d(t);return fa("div",{ref:o,role:"toolbar",className:a(Ec({size:i}),e),...r},void 0,!1,void 0,this)});jc.displayName="Toolbar";var eu=Qc("flex items-center",{variants:{size:{[Ee.sm]:"gap-1",[Ee.md]:"gap-1.5",[Ee.lg]:"gap-2"}},defaultVariants:{size:Ee.md}}),tu=ua(({className:e,size:t=Ee.md,...r},o)=>{let i=d(t);return fa("div",{ref:o,role:"group",className:a(eu({size:i}),e),...r},void 0,!1,void 0,this)});tu.displayName="ToolbarGroup";var ru=ua(({className:e,...t},r)=>{return fa("div",{ref:r,role:"none",className:a("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});ru.displayName="ToolbarSeparator";var ou=ua(({className:e,...t},r)=>{return fa("div",{ref:r,className:a("flex-1",e),...t},void 0,!1,void 0,this)});ou.displayName="ToolbarSpacer";import*as nt from"@radix-ui/react-tooltip";import{cva as sy}from"class-variance-authority";import{createContext as ly,forwardRef as au,useContext as iu}from"react";import{jsxDEV as bo}from"react/jsx-dev-runtime";var my=nt.Provider,Pi=ly(!1),nu=({persistOnClick:e=!1,children:t,...r})=>bo(Pi.Provider,{value:e,children:bo(nt.Root,{...r,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this);nu.displayName="Tooltip";var su=au(({onClick:e,onPointerDown:t,...r},o)=>{let i=iu(Pi);return bo(nt.Trigger,{ref:o,onClick:i?(n)=>{n.preventDefault(),e?.(n)}:e,onPointerDown:i?(n)=>{n.preventDefault(),t?.(n)}:t,...r},void 0,!1,void 0,this)});su.displayName="TooltipTrigger";var Br={sm:"sm",md:"md",lg:"lg"},lu=sy("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:{[Br.sm]:"px-2 py-1 text-[10px]",[Br.md]:"px-3 py-1.5 text-xs",[Br.lg]:"px-4 py-2 text-sm"}},defaultVariants:{size:Br.md}}),mu=au(({className:e,sideOffset:t=4,onPointerDownOutside:r,size:o=Br.md,...i},n)=>{let s=iu(Pi),l=d(o);return bo(nt.Portal,{children:bo(nt.Content,{ref:n,sideOffset:t,className:a(lu({size:l}),e),onPointerDownOutside:s?(m)=>{m.preventDefault(),r?.(m)}:r,...i},void 0,!1,void 0,this)},void 0,!1,void 0,this)});mu.displayName="TooltipContent";import*as At from"react";var dy=()=>{};function py({prop:e,defaultProp:t,onChange:r=dy}){let[o,i]=cy({defaultProp:t,onChange:r}),n=e!==void 0,s=n?e:o,l=At.useCallback((m)=>{if(n){let f=typeof m==="function"?m(e):m;if(f!==e)r(f)}else i(m)},[n,e,i,r]);return[s,l]}function cy({defaultProp:e,onChange:t}){let r=At.useState(e),[o]=r,i=At.useRef(o),n=t;return At.useEffect(()=>{if(i.current!==o)n?.(o),i.current=o},[o,n]),r}export{fi as useToast,qr as usePlatform,Lb as useOverlay,oi as useHotkey,Ur as useFormField,d as useDensitySize,fu as useDensity,py as useControllableState,Yr as useComposedRefs,Cf as useCommandShortcut,La as useCommand,lu as tooltipContentVariants,Ec as toolbarVariants,eu as toolbarGroupVariants,pa as toggleVariants,Xc as toggleGroupVariants,mi as toastVariants,di as toastActionVariants,Fc as toast,yc as timelineVariants,Cc as timelineTitleVariants,Sc as timelineTimeVariants,Pc as timelineItemVariants,xc as timelineDotVariants,zc as timelineDescriptionVariants,Tc as timelineContentVariants,hc as timelineConnectorVariants,bc as textareaVariants,dc as tabsTriggerVariants,mc as tabsListVariants,pc as tabsContentVariants,Yp as tableVariants,Jp as tableRowVariants,Xp as tableHeaderVariants,Qp as tableHeadVariants,qp as tableFooterVariants,Up as tableContainerVariants,Ep as tableCellVariants,jp as tableCaptionVariants,Zp as tableBodyVariants,Wp as switchVariants,Mp as stepperVariants,Np as stepVariants,kp as stepTitleVariants,Lp as stepIndicatorVariants,Ap as stepDescriptionVariants,Hp as stepContentVariants,Rp as stepConnectorVariants,Sp as statCardVariants,ra as spotlightStatusVariants,oa as spotlightStatusTitleVariants,Cp as spotlightStatusDescriptionVariants,Tp as spotlightShortcutVariants,gp as spotlightResultsVariants,pp as spotlightPanelVariants,dp as spotlightOverlayVariants,vp as spotlightOptionVariants,hp as spotlightOptionTitleVariants,yp as spotlightOptionIconVariants,xp as spotlightOptionDescriptionVariants,Pp as spotlightOptionContentVariants,ta as spotlightKbdVariants,up as spotlightInputVariants,fp as spotlightIconVariants,cp as spotlightHeaderVariants,bp as spotlightGroupLabelVariants,op as sliderVariants,ap as sliderTrackVariants,np as sliderThumbVariants,ip as sliderRangeVariants,Jd as skeletonVariants,Qd as skeletonTextVariants,jd as skeletonButtonVariants,Ed as skeletonAvatarVariants,Fm as sheetOverlayVariants,Om as sheetContentVariants,Zd as separatorVariants,Hd as selectTriggerVariants,kd as selectContentVariants,Wd as segmentedControlVariants,Kd as segmentedControlLabelVariants,$d as segmentedControlItemVariants,zd as scrollBarVariants,Sd as scrollBarThumbVariants,Cd as scrollAreaVariants,bd as resizablePanelVariants,gd as resizablePanelGroupVariants,vd as resizableHandleVariants,yd as resizableHandleIconVariants,cd as radioItemVariants,pd as radioGroupVariants,nd as progressVariants,sd as progressIndicatorVariants,Cr as popoverContentVariants,_a as parseHotkey,Zm as paginationVariants,Do as paginationLinkVariants,Jm as paginationItemVariants,Qm as paginationEllipsisVariants,qm as paginationContentVariants,km as otpSlotVariants,Vm as otpSeparatorVariants,Im as otpPlaceholderVariants,Am as otpInputVariants,Hm as otpGroupVariants,Rm as otpContainerVariants,hm as navigationMenuViewportVariants,bm as navigationMenuVariants,ym as navigationMenuTriggerVariants,vm as navigationMenuListVariants,db as navigationMenuLinkVariants,xm as navigationMenuIndicatorVariants,Pm as navigationMenuContentVariants,um as multiselectTriggerVariants,Ga as matchHotkey,lm as labelVariants,im as kbdVariants,mr as isSameDay,tm as inputVariants,Ql as hoverCardContentVariants,Og as formatHotkeyTokens,Zr as formatHotkey,Kl as formFieldVariants,Vl as fileUploadVariants,Oa as fileUploadTextVariants,Dl as fileUploadListVariants,Fl as fileUploadItemVariants,_l as fileUploadItemSizeVariants,Gl as fileUploadItemRemoveVariants,Ol as fileUploadItemNameVariants,Bl as fileUploadIconVariants,Ml as errorBoundaryVariants,Ll as errorBoundaryTitleVariants,Nl as errorBoundaryIconVariants,kl as errorBoundaryDetailsVariants,Rl as errorBoundaryDescriptionVariants,Hl as errorBoundaryActionsVariants,hl as emptyStateVariants,Tl as emptyStateTitleVariants,xl as emptyStateIconVariants,Cl as emptyStateDescriptionVariants,zl as emptyStateActionsVariants,ll as dropdownMenuShortcutVariants,sl as dropdownMenuSeparatorVariants,il as dropdownMenuRadioItemVariants,nl as dropdownMenuLabelVariants,Fa as dropdownMenuItemVariants,Da as dropdownMenuContentVariants,al as dropdownMenuCheckboxItemVariants,Zs as drawerOverlayVariants,Js as drawerHandleVariants,qs as drawerContentVariants,$s as dialogContentVariants,Ut as detectPlatform,Rw as cva,Sg as createOptionalContext,zg as createContext,Hs as contextMenuShortcutVariants,Rs as contextMenuSeparatorVariants,Ns as contextMenuRadioItemVariants,Ls as contextMenuLabelVariants,ka as contextMenuItemVariants,Ha as contextMenuContentVariants,Ms as contextMenuCheckboxItemVariants,jl as composeRefs,gs as commandShortcutVariants,fs as commandSeparatorVariants,ss as commandOverlayVariants,bs as commandLoadingVariants,ms as commandListVariants,us as commandItemVariants,ls as commandInputVariants,ps as commandGroupVariants,cs as commandGroupHeadingVariants,ds as commandEmptyVariants,ns as commandDialogVariants,os as collapsibleContentVariants,Zn as codeBlockVariants,jn as codeBlockPreVariants,es as codeBlockLineVariants,ts as codeBlockLineNumberVariants,Jn as codeBlockLanguageVariants,qn as codeBlockHeaderVariants,Qn as codeBlockCopyVariants,En as codeBlockContentVariants,a as cn,Un as checkboxVariants,Dn as cardVariants,In as calendarWeekdayVariants,Rn as calendarVariants,kn as calendarTitleVariants,Ma as calendarNavButtonVariants,Hn as calendarHeaderVariants,An as calendarGridVariants,Vn as calendarDayVariants,Fr as buttonVariants,Oi as buttonIconVariants,Sn as buttonGroupVariants,_i as buttonBadgeVariants,bn as breadcrumbSeparatorVariants,gn as breadcrumbPageVariants,cn as breadcrumbListVariants,fn as breadcrumbLinkVariants,un as breadcrumbItemVariants,vn as breadcrumbEllipsisVariants,sn as badgeVariants,on as avatarVariants,ki as alertVariants,Ai as alertTitleVariants,Yi as alertDialogOverlayVariants,Xi as alertDialogContentVariants,Ii as alertDescriptionVariants,wi as accordionTriggerVariants,Si as accordionItemVariants,Mi as accordionContentVariants,yu as XCircleIcon,st as Variant,su as TooltipTrigger,Br as TooltipSize,my as TooltipProvider,mu as TooltipContent,nu as Tooltip,ou as ToolbarSpacer,Ee as ToolbarSize,ru as ToolbarSeparator,tu as ToolbarGroup,jc as Toolbar,Jc as ToggleGroupItem,qc as ToggleGroup,Uc as Toggle,$c as Toaster,Ge as ToastSize,Hc as TimelineTitle,Ac as TimelineTime,Mc as TimelineItem,Lc as TimelineDot,kc as TimelineDescription,Rc as TimelineContent,Nc as TimelineConnector,wc as Timeline,vc as Textarea,fc as TabsTrigger,uc as TabsList,gc as TabsContent,Lv as Tabs,xe as TableSize,ac as TableRow,tc as TableHeader,ic as TableHead,oc as TableFooter,nc as TableCell,sc as TableCaption,rc as TableBody,ec as Table,Ar as SwitchStatus,Se as SwitchSize,$p as Switch,Ip as Stepper,Op as StepTitle,Bp as StepIndicator,_p as StepDescription,Fp as StepContent,Dp as StepConnector,Vp as Step,Et as StatCardTrend,_e as StatCardSize,wp as StatCard,kr as SpotlightStatus,Qt as SpotlightSize,zp as Spotlight,Vt as SpinnerSize,Po as Spinner,sp as Slider,ep as SkeletonText,pe as SkeletonSize,rp as SkeletonButton,tp as SkeletonAvatar,mo as Skeleton,Pe as Size,xb as SheetTrigger,$m as SheetTitle,te as SheetSize,_m as SheetPortal,Ua as SheetOverlay,Gm as SheetHeader,Wm as SheetFooter,Km as SheetDescription,Vo as SheetContent,Tb as SheetClose,Ka as Sheet,lo as SeparatorOrientation,qd as Separator,Eb as SelectValue,Ad as SelectTrigger,Rr as SelectStatus,Q as SelectSize,Dd as SelectSeparator,Vd as SelectLabel,Bd as SelectItem,Qb as SelectGroup,no as SelectContentWidthMode,Xb as SelectContentAlign,Id as SelectContent,Jb as Select,Ne as SegmentedControlSize,Xd as SegmentedControlLabelItem,Yd as SegmentedControlItem,Ud as SegmentedControl,qa as ScrollBar,wd as ScrollArea,Pd as ResizablePanelGroup,hd as ResizablePanel,xd as ResizableHandle,Mr as RadioStatus,Je as RadioSize,fd as RadioGroupItem,ud as RadioGroup,ld as Progress,Zg as PopoverTrigger,Tr as PopoverSize,pm as PopoverContent,Jg as PopoverClose,qg as PopoverAnchor,Xg as Popover,Oe as PaginationSize,rd as PaginationPrevious,od as PaginationNext,td as PaginationLink,ed as PaginationItem,ad as PaginationEllipsis,jm as PaginationContent,Em as Pagination,Xm as OverlayProvider,Bm as OTPInput,Wa as NavigationMenuViewport,zm as NavigationMenuTrigger,Ze as NavigationMenuSize,Cm as NavigationMenuList,ub as NavigationMenuLink,cb as NavigationMenuItem,wm as NavigationMenuIndicator,Sm as NavigationMenuContent,Tm as NavigationMenu,de as MultiselectSize,fm as Multiselect,xr as LabelSize,mm as Label,hr as KbdSize,nm as Kbd,rm as Input,hu as InfoIcon,Bt as IconSize,Tg as HoverCardTrigger,yr as HoverCardSize,El as HoverCardContent,xg as HoverCard,Gr as GroupOrientation,De as FormFieldSize,Yl as FormFieldLabel,ql as FormFieldError,Zl as FormFieldDescription,Jl as FormFieldControl,Ul as FormField,Wl as FileUpload,Al as ErrorBoundary,Sl as EmptyState,rg as DropdownMenuTrigger,pl as DropdownMenuSubTrigger,cl as DropdownMenuSubContent,ig as DropdownMenuSub,Pl as DropdownMenuShortcut,yl as DropdownMenuSeparator,bl as DropdownMenuRadioItem,ng as DropdownMenuRadioGroup,ag as DropdownMenuPortal,vl as DropdownMenuLabel,Ho as DropdownMenuItemVariant,fl as DropdownMenuItem,og as DropdownMenuGroup,ul as DropdownMenuContent,gl as DropdownMenuCheckboxItem,dl as DropdownMenu,Kf as DrawerTrigger,tl as DrawerTitle,Be as DrawerSize,Qs as DrawerPortal,Ba as DrawerOverlay,js as DrawerHeader,el as DrawerFooter,rl as DrawerDescription,Es as DrawerContent,Uf as DrawerClose,$f as Drawer,Ff as DialogTrigger,Ys as DialogTitle,xt as DialogSize,Ws as DialogPortal,Ia as DialogOverlay,Ks as DialogHeader,Us as DialogFooter,Xs as DialogDescription,Lo as DialogContent,Of as DialogClose,Aa as Dialog,Ci as DensityProvider,vo as Density,Hf as ContextMenuTrigger,As as ContextMenuSubTrigger,Is as ContextMenuSubContent,If as ContextMenuSub,Gs as ContextMenuShortcut,_s as ContextMenuSeparator,Fs as ContextMenuRadioItem,Vf as ContextMenuRadioGroup,Af as ContextMenuPortal,Os as ContextMenuLabel,Mo as ContextMenuItemVariant,Bs as ContextMenuItem,kf as ContextMenuGroup,Vs as ContextMenuContent,Ds as ContextMenuCheckboxItem,Rf as ContextMenu,Ss as CommandShortcut,zs as CommandSeparator,ws as CommandLoading,hs as CommandList,wo as CommandItemVariant,Cs as CommandItem,Ps as CommandInput,Ts as CommandGroup,xs as CommandEmpty,ys as CommandDialog,Ra as Command,yf as CollapsibleTrigger,as as CollapsibleContent,vf as Collapsible,rs as CodeBlock,ur as CheckboxStatus,Ke as CheckboxSize,Yn as Checkbox,Pu as CheckCircleIcon,Wn as CardTitle,On as CardHeader,Gn as CardFooter,$n as CardDescription,_n as CardContent,Fn as Card,Bn as Calendar,Wi as ButtonLabel,Gi as ButtonIcon,wn as ButtonGroup,$i as ButtonBadge,Ki as Button,le as BreadcrumbSize,Cn as BreadcrumbSeparator,Tn as BreadcrumbPage,Pn as BreadcrumbList,xn as BreadcrumbLink,hn as BreadcrumbItem,zn as BreadcrumbEllipsis,yn as Breadcrumb,ge as BadgeVariant,ft as BadgeTone,bt as BadgeSize,pn as BadgeGroup,ln as Badge,Ie as AvatarSize,an as AvatarImage,nn as AvatarGroup,Sa as AvatarFallback,za as Avatar,ku as AspectRatio,xu as AlertTriangleIcon,Bi as AlertTitle,Hu as AlertDialogTrigger,Ei as AlertDialogTitle,gt as AlertDialogSize,Zi as AlertDialogPortal,Ca as AlertDialogOverlay,Ji as AlertDialogHeader,Qi as AlertDialogFooter,ji as AlertDialogDescription,qi as AlertDialogContent,tn as AlertDialogCancel,en as AlertDialogAction,Ru as AlertDialog,Di as AlertDescription,Vi as Alert,Ri as AccordionTrigger,Te as AccordionSize,Li as AccordionItem,Hi as AccordionContent,Ni as Accordion};
2
+ import{cva as oM}from"class-variance-authority";import*as je from"@radix-ui/react-accordion";import{cva as ya}from"class-variance-authority";import{ChevronDown as Mu}from"lucide-react";import{createContext as Nu,forwardRef as Po,useContext as Li}from"react";import{clsx as xu}from"clsx";import{twMerge as Cu}from"tailwind-merge";function a(...e){return Cu(xu(e))}import{createContext as Su,useContext as Mi}from"react";import{jsxDEV as wi}from"react/jsx-dev-runtime";var yo={default:"default",compact:"compact"},zu={[yo.default]:{},[yo.compact]:{xl:"lg",lg:"md",md:"sm",sm:"sm"}},ba=Su(yo.default),Ni=({density:e,children:t})=>{return wi(ba.Provider,{value:e,children:wi("div",{"data-density":e,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Ni.displayName="DensityProvider";var wu=()=>{return Mi(ba)};function u(e){let t=Mi(ba);if(e===void 0)return;return zu[t][e]??e}import{jsxDEV as ut}from"react/jsx-dev-runtime";var xe={sm:"sm",md:"md",lg:"lg"},Pa=Nu(xe.md),Ri=ya("border-b border-border"),Hi=ya("gs-interactive flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[xe.sm]:"py-3 text-xs [&>svg]:size-3.5",[xe.md]:"py-4 text-sm [&>svg]:size-4",[xe.lg]:"py-5 text-base [&>svg]:size-5"}},defaultVariants:{size:xe.md}}),ki=ya("gs-accordion-content overflow-hidden",{variants:{size:{[xe.sm]:"text-xs",[xe.md]:"text-sm",[xe.lg]:"text-base"}},defaultVariants:{size:xe.md}}),Lu={[xe.sm]:"pt-0 pb-3",[xe.md]:"pt-0 pb-4",[xe.lg]:"pt-0 pb-5"},Ai=Po(({size:e=xe.md,...t},r)=>{let o=u(e)??xe.md;return ut(Pa.Provider,{value:o,children:ut(je.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ai.displayName="Accordion";var Ii=Po(({className:e,...t},r)=>ut(je.Item,{ref:r,className:a(Ri(),e),...t},void 0,!1,void 0,this));Ii.displayName="AccordionItem";var Vi=Po(({className:e,children:t,...r},o)=>{let i=Li(Pa);return ut(je.Header,{className:"flex",children:ut(je.Trigger,{ref:o,className:a(Hi({size:i}),e),...r,children:[t,ut(Mu,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Vi.displayName="AccordionTrigger";var Bi=Po(({className:e,children:t,...r},o)=>{let i=Li(Pa);return ut(je.Content,{ref:o,className:a(ki({size:i}),e),...r,children:ut("div",{className:Lu[i],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Bi.displayName="AccordionContent";import{cva as ha}from"class-variance-authority";import{CircleAlert as Ru,CircleCheck as Hu,Info as ku,TriangleAlert as Au}from"lucide-react";import{forwardRef as Ta}from"react";import{jsxDEV as xa}from"react/jsx-dev-runtime";var or={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Fr={sm:"sm",md:"md",lg:"lg",xl:"xl"},Di=ha("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:{[or.default]:"bg-background text-foreground",[or.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[or.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[or.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[or.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[Fr.sm]:"p-3 text-xs [&>svg]:top-3 [&>svg]:left-3 [&>svg~*]:pl-6",[Fr.md]:"p-4 text-sm",[Fr.lg]:"p-5 text-sm",[Fr.xl]:"p-6 text-base [&>svg]:top-6 [&>svg]:left-6 [&>svg~*]:pl-8"}},defaultVariants:{variant:or.default,size:Fr.md}}),Fi=ha("mb-1 font-medium leading-none tracking-tight"),Oi=ha("text-sm [&_p]:leading-relaxed"),_i=Ta(({className:e,variant:t,size:r,...o},i)=>{let n=u(r);return xa("div",{ref:i,role:"alert",className:a(Di({variant:t,size:n}),e),...o},void 0,!1,void 0,this)});_i.displayName="Alert";var Gi=Ta(({className:e,...t},r)=>xa("h5",{ref:r,className:a(Fi(),e),...t},void 0,!1,void 0,this));Gi.displayName="AlertTitle";var Wi=Ta(({className:e,...t},r)=>xa("div",{ref:r,className:a(Oi(),e),...t},void 0,!1,void 0,this));Wi.displayName="AlertDescription";import*as ue from"@radix-ui/react-alert-dialog";import{cva as Ji}from"class-variance-authority";import{forwardRef as ar}from"react";import{Slot as $i}from"@radix-ui/react-slot";import{cva as Sa}from"class-variance-authority";import{forwardRef as To}from"react";import{forwardRef as Iu}from"react";import{jsxDEV as Ca}from"react/jsx-dev-runtime";var Vt={xs:"xs",sm:"sm",md:"md",lg:"lg",xl:"xl"},Vu={[Vt.xs]:"h-3 w-3",[Vt.sm]:"h-4 w-4",[Vt.md]:"h-5 w-5",[Vt.lg]:"h-6 w-6",[Vt.xl]:"h-8 w-8"},ho=Iu(({className:e,size:t=Vt.md,label:r="Loading",...o},i)=>{let n=u(t);return Ca("span",{ref:i,className:a("inline-flex items-center justify-center",e),role:"status","aria-label":r,...o,children:[Ca("span",{className:a("animate-spin rounded-full border-2 border-current border-r-transparent",Vu[n])},void 0,!1,void 0,this),Ca("span",{className:"sr-only",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});ho.displayName="Spinner";import{jsxDEV as lt}from"react/jsx-dev-runtime";var st={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},Pe={xs:"xs",sm:"sm",md:"md",lg:"lg",xl:"xl",icon:"icon",iconXs:"icon-xs",iconSm:"icon-sm",iconLg:"icon-lg"},ft={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Bt={xs:"xs",sm:"sm",md:"md",lg:"lg"},Bu="Loading",Du="button",Or=Sa("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:{[st.primary]:"border-primary bg-primary text-primary-foreground enabled:hover:bg-primary/90",[st.secondary]:"border-secondary bg-secondary text-secondary-foreground enabled:hover:bg-secondary/90",[st.neutral]:"border-border bg-muted text-foreground enabled:hover:bg-muted/90",[st.outline]:"border-border bg-background text-foreground enabled:hover:border-primary enabled:hover:bg-muted/50",[st.ghost]:"border-transparent bg-transparent text-foreground enabled:hover:bg-muted/70",[st.danger]:"border-destructive bg-destructive text-destructive-foreground enabled:hover:bg-destructive/90"},size:{[Pe.xs]:"h-7 px-2 text-xs",[Pe.sm]:"h-8 px-2.5 text-xs",[Pe.md]:"h-10 px-4 text-sm",[Pe.lg]:"h-11 px-5 text-sm",[Pe.xl]:"h-12 px-6 text-base",[Pe.icon]:"h-10 w-10 p-0",[Pe.iconXs]:"h-8 w-8 p-0",[Pe.iconSm]:"h-9 w-9 p-0",[Pe.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:st.primary,size:Pe.md}}),Ki=Sa("shrink-0",{variants:{size:{[Bt.xs]:"size-2.5",[Bt.sm]:"size-3",[Bt.md]:"size-4",[Bt.lg]:"size-4.5"}},defaultVariants:{size:Bt.md}}),Ui=Sa("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[10px] leading-none",{variants:{tone:{[ft.default]:"border-border/70 bg-background/75 text-muted-foreground",[ft.success]:"border-success/35 bg-success/12 text-success",[ft.warning]:"border-warning/35 bg-warning/12 text-warning",[ft.error]:"border-destructive/35 bg-destructive/12 text-destructive",[ft.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:ft.default}});function Fu(e){return e===Pe.icon||e===Pe.iconXs||e===Pe.iconSm||e===Pe.iconLg}function Ou(e,t,r){return e&&t?-1:r}function _u(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function Gu(){if(typeof process>"u")return!0;return!0}var Yi=To(({className:e,size:t=Bt.md,...r},o)=>lt($i,{ref:o,className:a(Ki({size:t}),e),...r},void 0,!1,void 0,this));Yi.displayName="ButtonIcon";var Xi=To(({className:e,...t},r)=>lt("span",{ref:r,className:a("truncate",e),...t},void 0,!1,void 0,this));Xi.displayName="ButtonLabel";var qi=To(({className:e,tone:t=ft.default,...r},o)=>lt("span",{ref:o,className:a(Ui({tone:t}),e),...r},void 0,!1,void 0,this));qi.displayName="ButtonBadge";var Zi=To(({className:e,variant:t=st.primary,size:r=Pe.md,asChild:o=!1,loading:i=!1,loadingText:n=Bu,fullWidth:s=!1,leadingIcon:l,trailingIcon:m,disabled:d,children:f,type:p,tabIndex:h,onClick:c,...v},x)=>{let M=u(r),S=M??r,C=_u(v);if(Gu()&&Fu(S)&&!C)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let b=Boolean(d||i),y=a(Or({variant:t,size:M}),s&&"w-full",e);if(o)return lt($i,{ref:x,className:y,"aria-disabled":b||void 0,"aria-busy":i||void 0,tabIndex:Ou(!0,b,h),onClick:b?(k)=>{k.preventDefault()}:c,...v,children:f},void 0,!1,void 0,this);return lt("button",{ref:x,className:y,disabled:b,"aria-disabled":b,"aria-busy":i,tabIndex:h,type:p??Du,onClick:i?void 0:c,...v,children:[lt("span",{className:a("absolute inset-0 flex items-center justify-center transition-opacity duration-150",i?"opacity-100":"opacity-0"),"aria-hidden":"true",children:lt(ho,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),i&&lt("span",{className:"sr-only",children:n},void 0,!1,void 0,this),lt("span",{className:a("inline-flex items-center justify-center gap-2 transition-opacity duration-150",i&&"opacity-0"),children:[l,f,m]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Zi.displayName="Button";import{jsxDEV as et}from"react/jsx-dev-runtime";var gt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Qi=Ji("gs-dialog-overlay fixed inset-0 z-50 bg-black/50"),Ei=Ji("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:{[gt.sm]:"max-w-sm",[gt.md]:"max-w-md",[gt.lg]:"max-w-lg",[gt.xl]:"max-w-xl",[gt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:gt.md}}),Wu=ue.Root,$u=ue.Trigger,ji=ue.Portal,za=ar(({className:e,...t},r)=>et(ue.Overlay,{ref:r,className:a(Qi(),e),...t},void 0,!1,void 0,this));za.displayName="AlertDialogOverlay";var en=ar(({className:e,size:t=gt.md,...r},o)=>{let i=u(t);return et(ji,{children:[et(za,{},void 0,!1,void 0,this),et(ue.Content,{ref:o,className:a(Ei({size:i}),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});en.displayName="AlertDialogContent";var tn=({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);tn.displayName="AlertDialogHeader";var rn=({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);rn.displayName="AlertDialogFooter";var on=ar(({className:e,...t},r)=>et(ue.Title,{ref:r,className:a("text-lg font-semibold",e),...t},void 0,!1,void 0,this));on.displayName="AlertDialogTitle";var an=ar(({className:e,...t},r)=>et(ue.Description,{ref:r,className:a("text-sm text-muted-foreground",e),...t},void 0,!1,void 0,this));an.displayName="AlertDialogDescription";var nn=ar(({className:e,...t},r)=>et(ue.Action,{ref:r,className:a(Or(),e),...t},void 0,!1,void 0,this));nn.displayName="AlertDialogAction";var sn=ar(({className:e,...t},r)=>et(ue.Cancel,{ref:r,className:a(Or({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));sn.displayName="AlertDialogCancel";import*as ln from"@radix-ui/react-aspect-ratio";var Ku=ln.Root;import*as nr from"@radix-ui/react-avatar";import{cva as Uu}from"class-variance-authority";import{forwardRef as xo}from"react";import{jsxDEV as ir}from"react/jsx-dev-runtime";var Ie={sm:"sm",md:"md",lg:"lg",xl:"xl"},mn=Uu("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{[Ie.sm]:"h-6 w-6",[Ie.md]:"h-10 w-10",[Ie.lg]:"h-12 w-12",[Ie.xl]:"h-16 w-16"}},defaultVariants:{size:Ie.md}}),wa=xo(({className:e,size:t=Ie.md,...r},o)=>{let i=u(t);return ir(nr.Root,{ref:o,className:a(mn({size:i}),e),...r},void 0,!1,void 0,this)});wa.displayName="Avatar";var dn=xo(({className:e,...t},r)=>ir(nr.Image,{ref:r,className:a("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));dn.displayName="AvatarImage";var Ma=xo(({className:e,...t},r)=>ir(nr.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));Ma.displayName="AvatarFallback";var Yu={[Ie.sm]:"-space-x-2",[Ie.md]:"-space-x-3",[Ie.lg]:"-space-x-4",[Ie.xl]:"-space-x-5"},pn=xo(({className:e,children:t,max:r,size:o=Ie.md,...i},n)=>{let s=u(o),l=Array.isArray(t)?t:[t],m=r?l.slice(0,r):l,d=r?Math.max(0,l.length-r):0;return ir("div",{ref:n,className:a("flex items-center",Yu[s],e),...i,children:[m,d>0&&ir(wa,{size:s,className:"border-2 border-background",children:ir(Ma,{className:"text-xs",children:["+",d]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});pn.displayName="AvatarGroup";import{Slot as Xu}from"@radix-ui/react-slot";import{cva as qu}from"class-variance-authority";import{X as Zu}from"lucide-react";import{forwardRef as Ju}from"react";import{jsxDEV as _r}from"react/jsx-dev-runtime";var ge={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},vt={sm:"sm",md:"md",lg:"lg",dot:"dot"},cn=qu("inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium",{variants:{variant:{[ge.default]:"border-border bg-muted text-muted-foreground",[ge.primary]:"border-primary/30 bg-primary/10 text-primary",[ge.success]:"border-success/30 bg-success/10 text-success",[ge.warning]:"border-warning/30 bg-warning/10 text-warning",[ge.error]:"border-destructive/30 bg-destructive/10 text-destructive",[ge.info]:"border-info/30 bg-info/10 text-info",[ge.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[vt.sm]:"h-5 px-2 text-[10px]",[vt.md]:"h-6 px-2.5 text-xs",[vt.lg]:"h-7 px-3 text-sm",[vt.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:ge.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:ge.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:ge.success,className:"border-success bg-success text-background"},{solid:!0,variant:ge.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:ge.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:ge.info,className:"border-info bg-info text-background"},{solid:!0,variant:ge.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:ge.default,solid:!1,size:vt.md}}),un=Ju(({className:e,variant:t=ge.default,size:r=vt.md,solid:o=!1,pulse:i=!1,removable:n=!1,onRemove:s,onClick:l,children:m,asChild:d=!1,...f},p)=>{let h=u(r),c=Boolean(l),v=h===vt.dot,x=(C)=>{C.stopPropagation(),s?.(C)},M=a(cn({variant:t,solid:o,size:h}),c&&"cursor-pointer",i&&"animate-pulse",n&&!v&&"pr-1",e),S=n&&!v&&_r("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:x,"aria-label":"Remove",tabIndex:-1,children:_r(Zu,{className:"size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(d)return _r(Xu,{ref:p,className:M,onClick:l,...f,children:m},void 0,!1,void 0,this);if(c)return _r("button",{ref:p,className:M,onClick:l,type:"button",...f,children:[!v&&m,S]},void 0,!0,void 0,this);return _r("span",{ref:p,className:M,...f,children:[!v&&m,S]},void 0,!0,void 0,this)});un.displayName="Badge";import{Children as Qu,cloneElement as Eu,forwardRef as ju,isValidElement as ef,useCallback as fn,useLayoutEffect as tf,useRef as rf,useState as of}from"react";import{jsxDEV as gn}from"react/jsx-dev-runtime";function af(e){let t=[];return Qu.forEach(e,(r,o)=>{if(!ef(r))return;let i=r.key??o;t.push({key:i,element:r,isLeaving:!1})}),t}function nf(e,t){let r=new Set(t.map((n)=>n.key)),o=new Set(e.map((n)=>n.key)),i=[];for(let n of e)if(r.has(n.key)){let s=t.find((l)=>l.key===n.key);if(s)i.push({...s,isLeaving:!1})}else i.push({...n,isLeaving:!0});for(let n of t)if(!o.has(n.key))i.push(n);return i}function sf(e,t,r){if(r.current)return r.current=!1,t;return nf(e,t)}var vn=ju(({children:e,className:t,onRemove:r,gap:o="sm"},i)=>{let[n,s]=of([]),l=rf(!0);tf(()=>{let p=af(e);s((h)=>sf(h,p,l))},[e]);let m=fn((p)=>{s((h)=>h.filter((c)=>c.key!==p))},[]),d=fn((p)=>{r?.(p)},[r]),f={sm:"gap-1",md:"gap-2",lg:"gap-3"}[o];return gn("div",{ref:i,className:a("inline-flex flex-wrap items-center",f,t),children:n.map((p)=>{let h={};if(p.element.props.removable&&r)h.onRemove=()=>{d(p.key)};let c=a("inline-flex transition-all duration-200",p.isLeaving&&"pointer-events-none scale-95 opacity-0");return gn("span",{className:c,onTransitionEnd:p.isLeaving?()=>m(p.key):void 0,children:Eu(p.element,h)},p.key,!1,void 0,this)})},void 0,!1,void 0,this)});vn.displayName="BadgeGroup";import{Slot as lf}from"@radix-ui/react-slot";import{cva as sr}from"class-variance-authority";import{ChevronRight as mf,MoreHorizontal as df}from"lucide-react";import{createContext as pf,forwardRef as Gr,useContext as Na}from"react";import{jsxDEV as $e}from"react/jsx-dev-runtime";var le={sm:"sm",md:"md",lg:"lg"},Co=pf(le.md),bn=sr("flex flex-wrap items-center break-words text-muted-foreground",{variants:{size:{[le.sm]:"gap-1 text-xs",[le.md]:"gap-1.5 text-sm sm:gap-2.5",[le.lg]:"gap-2 text-base sm:gap-3"}},defaultVariants:{size:le.md}}),yn=sr("inline-flex items-center gap-1.5"),Pn=sr("gs-interactive hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),hn=sr("font-normal text-foreground"),Tn=sr("",{variants:{size:{[le.sm]:"[&>svg]:size-3",[le.md]:"[&>svg]:size-3.5",[le.lg]:"[&>svg]:size-4"}},defaultVariants:{size:le.md}}),xn=sr("flex items-center justify-center",{variants:{size:{[le.sm]:"h-7 w-7 [&>svg]:size-3.5",[le.md]:"h-9 w-9 [&>svg]:size-4",[le.lg]:"h-10 w-10 [&>svg]:size-5"}},defaultVariants:{size:le.md}}),Cn=Gr(({size:e=le.md,...t},r)=>{let o=u(e)??le.md;return $e(Co.Provider,{value:o,children:$e("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Cn.displayName="Breadcrumb";var Sn=Gr(({className:e,...t},r)=>{let o=Na(Co);return $e("ol",{ref:r,className:a(bn({size:o}),e),...t},void 0,!1,void 0,this)});Sn.displayName="BreadcrumbList";var zn=Gr(({className:e,...t},r)=>$e("li",{ref:r,className:a(yn(),e),...t},void 0,!1,void 0,this));zn.displayName="BreadcrumbItem";var wn=Gr(({asChild:e,className:t,...r},o)=>{return $e(e?lf:"a",{ref:o,className:a(Pn(),t),...r},void 0,!1,void 0,this)});wn.displayName="BreadcrumbLink";var Mn=Gr(({className:e,...t},r)=>$e("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:a(hn(),e),...t},void 0,!1,void 0,this));Mn.displayName="BreadcrumbPage";var Nn=({children:e,className:t,...r})=>{let o=Na(Co),i={[le.sm]:"size-3",[le.md]:"size-3.5",[le.lg]:"size-4"};return $e("li",{role:"presentation","aria-hidden":"true",className:a(Tn({size:o}),t),...r,children:e??$e(mf,{className:i[o]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Nn.displayName="BreadcrumbSeparator";var Ln=({className:e,...t})=>{let r=Na(Co);return $e("span",{role:"presentation","aria-hidden":"true",className:a(xn({size:r}),e),...t,children:[$e(df,{},void 0,!1,void 0,this),$e("span",{className:"sr-only",children:"More"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Ln.displayName="BreadcrumbEllipsis";import{cva as cf}from"class-variance-authority";import{forwardRef as uf}from"react";import{jsxDEV as ff}from"react/jsx-dev-runtime";var Wr={horizontal:"horizontal",vertical:"vertical"},Rn=cf("inline-flex items-stretch",{variants:{orientation:{[Wr.horizontal]:"flex-row",[Wr.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:Wr.horizontal,attached:!1}}),Hn=uf(({className:e,orientation:t=Wr.horizontal,attached:r=!1,fullWidth:o=!1,...i},n)=>ff("div",{ref:n,className:a(Rn({orientation:t,attached:r}),o&&"w-full",e),...i},void 0,!1,void 0,this));Hn.displayName="ButtonGroup";import{cva as bt}from"class-variance-authority";import{forwardRef as gf,useCallback as lr,useEffect as vf,useMemo as kn,useState as An}from"react";import{jsxDEV as Re}from"react/jsx-dev-runtime";var B={sm:"sm",md:"md",lg:"lg",xl:"xl"},Vn=bt("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}}),Bn=bt("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}}),Dn=bt("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}}),La=bt(["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}}),Fn=bt("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}}),On=bt("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}}),_n=bt(["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"}}),bf=bt("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}}),In=["Su","Mo","Tu","We","Th","Fr","Sa"],yf=["January","February","March","April","May","June","July","August","September","October","November","December"],mt=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),mr=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},Gn=gf(({className:e,size:t="md",cellSize:r,mode:o="single",value:i,defaultValue:n,onChange:s,rangeValue:l,onRangeChange:m,viewMonth:d,onViewMonthChange:f,minDate:p,maxDate:h,disabledDates:c=[],weekStartsOn:v=1,highlightToday:x=!0,...M},S)=>{let C=u(t)??B.md,b=u(r??C)??C,[y,k]=An(i??n??null),[z,L]=An(i??n??new Date),A=d??z,_=lr((g)=>{if(f){let P=typeof g==="function"?g(d??z):g;f(P)}else L((P)=>{return typeof g==="function"?g(P):g})},[d,z,f]),X=i!==void 0?i:y,O=p?mt(p):null,$=h?mt(h):null;vf(()=>{if(i!==void 0){if(k(i??null),i&&!d)L(i)}},[i,d]);let w=lr((g,P)=>{return(new Date(g,P,1).getDay()-v+7)%7},[v]),I=kn(()=>{let g=A.getFullYear(),P=A.getMonth(),N=w(g,P),ce=new Date(g,P+1,0).getDate(),q=[];for(let E=0;E<N;E+=1)q.push({key:`leading-${g}-${P}-${E}`,date:null});for(let E=1;E<=ce;E+=1)q.push({key:`day-${g}-${P}-${E}`,date:new Date(g,P,E)});let Ae=(7-q.length%7)%7;for(let E=0;E<Ae;E+=1)q.push({key:`trailing-${g}-${P}-${E}`,date:null});return q},[A,w]),T=lr((g)=>{let P=mt(g);if(O&&P<O)return!0;if($&&P>$)return!0;return c.some((N)=>mr(P,mt(N)))},[O,$,c]),V=lr((g)=>{if(T(g))return"disabled";if(o==="range"&&l){let{from:P,to:N}=l;if(P&&mr(g,P))return"rangeStart";if(N&&mr(g,N))return"rangeEnd";if(P&&N){let ce=mt(g),q=mt(P),Ae=mt(N);if(ce>q&&ce<Ae)return"range"}}if(o==="single"&&X&&mr(g,X))return"selected";if(x&&mr(g,new Date))return"today";return"default"},[X,x,T,o,l]),J=lr((g)=>{if(T(g))return;let P=new Date(g);if(o==="range"){if(!l?.from||l.from&&l.to)m?.({from:P,to:void 0});else{let N=mt(l.from);if(mt(P)<N)m?.({from:P,to:l.from});else m?.({from:l.from,to:P})}return}if(i===void 0)k(P);s?.(P)},[T,o,s,m,l,i]),R=lr((g)=>{_((P)=>{let N=new Date(P);return N.setMonth(N.getMonth()+g),N})},[_]),U=kn(()=>{return[...In.slice(v),...In.slice(0,v)]},[v]);return Re("div",{ref:S,className:a(Vn({size:C}),e),...M,children:[Re("div",{className:a(Bn({size:C})),children:[Re("button",{type:"button",onClick:()=>R(-1),className:a(La({size:C})),"aria-label":"Previous month",children:Re("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Re("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),Re("span",{className:a(Dn({size:C})),children:[yf[A.getMonth()]," ",A.getFullYear()]},void 0,!0,void 0,this),Re("button",{type:"button",onClick:()=>R(1),className:a(La({size:C})),"aria-label":"Next month",children:Re("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Re("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),Re("div",{className:a(Fn({size:C})),children:[U.map((g)=>Re("div",{className:a(On({size:b})),children:g},g,!1,void 0,this)),I.map((g)=>{if(!g.date)return Re("div",{"aria-hidden":"true",className:a(bf({size:b}))},g.key,!1,void 0,this);let P=g.date,N=V(P);return Re("button",{type:"button",onClick:()=>J(P),disabled:N==="disabled",className:a(_n({size:b,state:N})),children:P.getDate()},g.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Gn.displayName="Calendar";import{Slot as dr}from"@radix-ui/react-slot";import{cva as Pf}from"class-variance-authority";import{forwardRef as pr}from"react";import{jsxDEV as cr}from"react/jsx-dev-runtime";var So={default:"default",muted:"muted",danger:"danger"},Wn=Pf("gs-interactive relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[So.default]:"border-border",[So.muted]:"border-border/70 bg-muted/40",[So.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:So.default}}),$n=pr(({asChild:e=!1,className:t,variant:r,...o},i)=>{return cr(e?dr:"div",{ref:i,className:a(Wn({variant:r}),t),...o},void 0,!1,void 0,this)});$n.displayName="Card";var Kn=pr(({asChild:e=!1,className:t,...r},o)=>{return cr(e?dr:"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)});Kn.displayName="CardHeader";var Un=pr(({asChild:e=!1,className:t,...r},o)=>{return cr(e?dr:"div",{ref:o,className:a("p-4",t),...r},void 0,!1,void 0,this)});Un.displayName="CardContent";var Yn=pr(({asChild:e=!1,className:t,...r},o)=>{return cr(e?dr:"div",{ref:o,className:a("flex items-center border-t border-border/50 p-4",t),...r},void 0,!1,void 0,this)});Yn.displayName="CardFooter";var Xn=pr(({asChild:e=!1,className:t,...r},o)=>{return cr(e?dr:"h3",{ref:o,className:a("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});Xn.displayName="CardTitle";var qn=pr(({asChild:e=!1,className:t,...r},o)=>{return cr(e?dr:"p",{ref:o,className:a("text-sm text-muted-foreground",t),...r},void 0,!1,void 0,this)});qn.displayName="CardDescription";import*as wo from"@radix-ui/react-checkbox";import{cva as hf}from"class-variance-authority";import{Check as Tf,Minus as xf}from"lucide-react";import{forwardRef as Cf}from"react";import{jsxDEV as zo}from"react/jsx-dev-runtime";var Ke={sm:"sm",md:"md",lg:"lg",xl:"xl"},ur={default:"default",error:"error",success:"success"},Jn=hf("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:{[Ke.sm]:"h-4 w-4",[Ke.md]:"h-5 w-5",[Ke.lg]:"h-6 w-6",[Ke.xl]:"h-7 w-7"},status:{[ur.default]:"enabled:hover:border-primary/70",[ur.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",[ur.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:Ke.md,status:ur.default}}),Zn={[Ke.sm]:"size-3.5",[Ke.md]:"size-3.5",[Ke.lg]:"size-4",[Ke.xl]:"size-5"},Qn=Cf(({className:e,size:t=Ke.md,status:r=ur.default,checked:o,disabled:i,...n},s)=>{let l=u(t);return zo(wo.Root,{ref:s,checked:o,disabled:i,className:a(Jn({size:l,status:r}),e),...n,children:zo(wo.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:o==="indeterminate"?zo(xf,{className:Zn[l]},void 0,!1,void 0,this):zo(Tf,{className:Zn[l]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Qn.displayName="Checkbox";import{cva as yt}from"class-variance-authority";import{forwardRef as Sf,useCallback as zf,useState as wf}from"react";import{jsxDEV as Ce,Fragment as En}from"react/jsx-dev-runtime";var K={sm:"sm",md:"md",lg:"lg"},Ra={default:"default",ghost:"ghost"},jn=yt("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[K.sm]:"text-xs",[K.md]:"text-sm",[K.lg]:"text-base"},variant:{[Ra.default]:"bg-muted border border-border",[Ra.ghost]:"bg-transparent"}},defaultVariants:{size:K.md,variant:Ra.default}}),es=yt("flex items-center justify-between border-b border-border bg-muted",{variants:{size:{[K.sm]:"px-2.5 py-1.5 text-xs",[K.md]:"px-4 py-2 text-sm",[K.lg]:"px-5 py-2.5 text-base"}},defaultVariants:{size:K.md}}),ts=yt("text-muted-foreground font-medium",{variants:{size:{[K.sm]:"text-[11px]",[K.md]:"text-xs",[K.lg]:"text-sm"}},defaultVariants:{size:K.md}}),rs=yt(["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:{[K.sm]:"px-2 py-1 text-xs",[K.md]:"px-2.5 py-1 text-xs",[K.lg]:"px-3 py-1.5 text-sm"},copied:{true:"text-success",false:""}},defaultVariants:{size:K.md,copied:!1}}),os=yt("overflow-x-auto",{variants:{size:{[K.sm]:"p-2.5",[K.md]:"p-4",[K.lg]:"p-5"}},defaultVariants:{size:K.md}}),as=yt("text-foreground",{variants:{size:{[K.sm]:"",[K.md]:"",[K.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:K.md,showLineNumbers:!1}}),is=yt("block",{variants:{size:{[K.sm]:"min-h-[1.25rem]",[K.md]:"min-h-[1.5rem]",[K.lg]:"min-h-[1.75rem]"},highlighted:{true:"bg-primary/10 -mx-4 px-4",false:""}},defaultVariants:{size:K.md,highlighted:!1}}),ns=yt("inline-block text-right text-muted-foreground select-none",{variants:{size:{[K.sm]:"w-6 mr-2 text-[10px]",[K.md]:"w-8 mr-4 text-xs",[K.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:K.md}}),ss=Sf(({className:e,code:t,language:r,showLineNumbers:o=!1,highlightedLines:i=[],showCopy:n=!0,size:s="md",variant:l="default",onCopy:m,...d},f)=>{let p=u(s),[h,c]=wf(!1),v=zf(async()=>{try{await navigator.clipboard.writeText(t),c(!0),m?.(t),setTimeout(()=>c(!1),2000)}catch(S){}},[t,m]),x=t.split(`
3
+ `),M=new Set(i);return Ce("div",{ref:f,className:a(jn({size:p,variant:l}),e),...d,children:[(r||n)&&Ce("div",{className:a(es({size:p})),children:[Ce("span",{className:a(ts({size:p})),children:r},void 0,!1,void 0,this),n&&Ce("button",{type:"button",onClick:v,className:a(rs({size:p,copied:h})),children:h?Ce(En,{children:[Ce("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ce("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):Ce(En,{children:[Ce("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ce("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),Ce("div",{className:a(os({size:p})),children:Ce("pre",{className:a(as({size:p,showLineNumbers:o})),children:Ce("code",{children:x.map((S,C)=>Ce("span",{className:a(is({size:p,highlighted:M.has(C+1)})),children:[o&&Ce("span",{className:a(ns({size:p})),children:C+1},void 0,!1,void 0,this),S,`
4
+ `]},`line-${String(C)}`,!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)});ss.displayName="CodeBlock";import*as fr from"@radix-ui/react-collapsible";import{cva as Mf}from"class-variance-authority";import{forwardRef as Nf}from"react";import{jsxDEV as Hf}from"react/jsx-dev-runtime";var ls=Mf("gs-collapsible-content overflow-hidden"),Lf=fr.Root,Rf=fr.CollapsibleTrigger,ms=Nf(({className:e,...t},r)=>Hf(fr.CollapsibleContent,{ref:r,className:a(ls(),e),...t},void 0,!1,void 0,this));ms.displayName="CollapsibleContent";import*as Pt from"@radix-ui/react-dialog";import{cva as Ue}from"class-variance-authority";import{createContext as kf,forwardRef as tt,useContext as Af,useEffect as If,useState as ds}from"react";import{jsxDEV as fe}from"react/jsx-dev-runtime";var ps=Ue(["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"}}),cs=Ue(["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"]),us=Ue(["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"]),fs=Ue(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),gs=Ue(["py-6 text-center text-sm text-muted-foreground"]),vs=Ue(["overflow-hidden"]),bs=Ue(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),Mo={default:"default",danger:"danger"},ys=Ue(["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:{[Mo.default]:"text-foreground",[Mo.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive focus:text-destructive-foreground"}},defaultVariants:{selected:!1,variant:Mo.default}}),Ps=Ue(["-mx-1 my-1 h-px bg-border"]),hs=Ue(["ml-auto text-xs tracking-widest text-muted-foreground"]),Ts=Ue(["flex items-center justify-center py-6"]),xs=kf(null),Ha=()=>{let e=Af(xs);if(!e)throw Error("useCommand must be used within a Command");return e},ka=tt(({className:e,children:t,loop:r=!0,...o},i)=>{let[n,s]=ds(""),[l,m]=ds(0);return fe(xs.Provider,{value:{search:n,setSearch:s,selectedIndex:l,setSelectedIndex:m},children:fe("div",{ref:i,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)});ka.displayName="Command";var Cs=tt(({children:e,size:t,...r},o)=>{return fe(Pt.Root,{...r,children:fe(Pt.Portal,{children:[fe(Pt.Overlay,{className:a(cs())},void 0,!1,void 0,this),fe(Pt.Content,{ref:o,className:a(ps({size:t})),children:fe(ka,{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)});Cs.displayName="CommandDialog";var Ss=tt(({className:e,icon:t,...r},o)=>{let{search:i,setSearch:n,setSelectedIndex:s}=Ha();return fe("div",{className:"flex items-center border-border border-b px-3",children:[t&&fe("span",{className:"mr-2 shrink-0 text-muted-foreground",children:t},void 0,!1,void 0,this),fe("input",{ref:o,value:i,onChange:(l)=>{n(l.target.value),s(0)},className:a(us(),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Ss.displayName="CommandInput";var zs=tt(({className:e,children:t,...r},o)=>{return fe("div",{ref:o,className:a(fs(),e),...r,children:t},void 0,!1,void 0,this)});zs.displayName="CommandList";var ws=tt(({className:e,children:t="No results found.",...r},o)=>{return fe("div",{ref:o,className:a(gs(),e),...r,children:t},void 0,!1,void 0,this)});ws.displayName="CommandEmpty";var Ms=tt(({className:e,heading:t,children:r,...o},i)=>{return fe("div",{ref:i,className:a(vs(),e),...o,children:[t&&fe("div",{className:a(bs()),children:t},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});Ms.displayName="CommandGroup";var Ns=tt(({className:e,disabled:t,onSelect:r,children:o,keywords:i,variant:n,...s},l)=>{let{search:m}=Ha();if(!(()=>{if(!m)return!0;let f=m.toLowerCase();if((typeof o==="string"?o.toLowerCase():"").includes(f))return!0;if(i?.some((h)=>h.toLowerCase().includes(f)))return!0;return!1})())return null;return fe("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(ys({selected:!1,variant:n}),e),...s,children:o},void 0,!1,void 0,this)});Ns.displayName="CommandItem";var Ls=tt(({className:e,...t},r)=>{return fe("div",{ref:r,className:a(Ps(),e),...t},void 0,!1,void 0,this)});Ls.displayName="CommandSeparator";var Rs=tt(({className:e,children:t,...r},o)=>{return fe("span",{ref:o,className:a(hs(),e),...r,children:t},void 0,!1,void 0,this)});Rs.displayName="CommandShortcut";var Hs=tt(({className:e,children:t,...r},o)=>{return fe("div",{ref:o,className:a(Ts(),e),...r,children:t},void 0,!1,void 0,this)});Hs.displayName="CommandLoading";var Vf=({key:e,modifier:t="meta",callback:r})=>{If(()=>{let o=(i)=>{if({ctrl:i.ctrlKey,meta:i.metaKey,alt:i.altKey,shift:i.shiftKey}[t]&&i.key.toLowerCase()===e.toLowerCase())i.preventDefault(),r()};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[e,t,r])};import*as D from"@radix-ui/react-context-menu";import{cva as Dt}from"class-variance-authority";import{Check as Bf,ChevronRight as Df,Circle as Ff}from"lucide-react";import{createContext as Of,forwardRef as ht,useContext as gr}from"react";import{jsxDEV as me}from"react/jsx-dev-runtime";var G={sm:"sm",md:"md",lg:"lg"},No={default:"default",danger:"danger"},Ft=Of(G.md),Aa=Dt("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)]"),Ia=Dt("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:{[G.sm]:"h-6 gap-1.5 px-1.5 text-xs [&_svg]:size-3",[G.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[G.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[No.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[No.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive focus:text-destructive-foreground"}},defaultVariants:{size:G.md,variant:No.default}}),ks=Dt("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:{[G.sm]:"h-6 pl-6 pr-1.5 text-xs",[G.md]:"h-8 pl-8 pr-2 text-sm",[G.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:G.md}}),As=Dt("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:{[G.sm]:"h-6 pl-6 pr-1.5 text-xs",[G.md]:"h-8 pl-8 pr-2 text-sm",[G.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:G.md}}),Is=Dt("font-semibold text-muted-foreground",{variants:{size:{[G.sm]:"px-1.5 py-0.5 text-[10px]",[G.md]:"px-2 py-1.5 text-xs",[G.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:G.md}}),Vs=Dt("-mx-1 my-1 h-px bg-border/50"),Bs=Dt("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[G.sm]:"text-[10px]",[G.md]:"text-xs",[G.lg]:"text-xs"}},defaultVariants:{size:G.md}}),Ds={[G.sm]:"absolute left-1.5 flex size-3 items-center justify-center",[G.md]:"absolute left-2 flex size-3.5 items-center justify-center",[G.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},_f={[G.sm]:"size-3",[G.md]:"size-3.5",[G.lg]:"size-4"},Gf={[G.sm]:"size-1.5 fill-current",[G.md]:"size-2 fill-current",[G.lg]:"size-2.5 fill-current"},Wf=D.Root,$f=D.Trigger,Kf=D.Group,Uf=D.Portal,Yf=D.Sub,Xf=D.RadioGroup,Fs=ht(({className:e,inset:t,children:r,...o},i)=>{let n=gr(Ft),s=u(n);return me(D.SubTrigger,{ref:i,className:a(Ia({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,me(Df,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Fs.displayName=D.SubTrigger.displayName;var Os=ht(({className:e,...t},r)=>me(D.Portal,{children:me(D.SubContent,{ref:r,className:a(Aa(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Os.displayName=D.SubContent.displayName;var _s=ht(({className:e,size:t,...r},o)=>{let i=u(t)??G.md;return me(Ft.Provider,{value:i,children:me(D.Portal,{children:me(D.Content,{ref:o,className:a(Aa(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});_s.displayName=D.Content.displayName;var Gs=ht(({className:e,inset:t,variant:r,...o},i)=>{let n=gr(Ft),s=u(n);return me(D.Item,{ref:i,className:a(Ia({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});Gs.displayName=D.Item.displayName;var Ws=ht(({className:e,children:t,checked:r,...o},i)=>{let n=gr(Ft),s=u(n)??G.md;return me(D.CheckboxItem,{ref:i,className:a(ks({size:s}),e),checked:r,...o,children:[me("span",{className:Ds[s],children:me(D.ItemIndicator,{children:me(Bf,{className:_f[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)});Ws.displayName=D.CheckboxItem.displayName;var $s=ht(({className:e,children:t,...r},o)=>{let i=gr(Ft),n=u(i)??G.md;return me(D.RadioItem,{ref:o,className:a(As({size:n}),e),...r,children:[me("span",{className:Ds[n],children:me(D.ItemIndicator,{children:me(Ff,{className:Gf[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)});$s.displayName=D.RadioItem.displayName;var Ks=ht(({className:e,inset:t,...r},o)=>{let i=gr(Ft),n=u(i);return me(D.Label,{ref:o,className:a(Is({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Ks.displayName=D.Label.displayName;var Us=ht(({className:e,...t},r)=>me(D.Separator,{ref:r,className:a(Vs(),e),...t},void 0,!1,void 0,this));Us.displayName=D.Separator.displayName;var Ys=({className:e,...t})=>{let r=gr(Ft),o=u(r);return me("span",{className:a(Bs({size:o}),e),...t},void 0,!1,void 0,this)};Ys.displayName="ContextMenuShortcut";import*as ve from"@radix-ui/react-dialog";import{cva as qf}from"class-variance-authority";import{X as Zf}from"lucide-react";import{forwardRef as Lo}from"react";import{jsxDEV as Ye}from"react/jsx-dev-runtime";var Tt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Va=ve.Root,Jf=ve.Trigger,Xs=ve.Portal,Qf=ve.Close,Ba=Lo(({className:e,...t},r)=>Ye(ve.Overlay,{ref:r,className:a("gs-dialog-overlay fixed inset-0 z-50 bg-black/50",e),...t},void 0,!1,void 0,this));Ba.displayName="DialogOverlay";var qs=qf("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:{[Tt.sm]:"max-w-sm",[Tt.md]:"max-w-md",[Tt.lg]:"max-w-lg",[Tt.xl]:"max-w-xl",[Tt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:Tt.md}}),Ro=Lo(({className:e,children:t,size:r=Tt.md,showClose:o=!0,...i},n)=>{let s=u(r);return Ye(Xs,{children:[Ye(Ba,{},void 0,!1,void 0,this),Ye(ve.Content,{ref:n,className:a(qs({size:s}),e),...i,children:[t,o&&Ye(ve.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:[Ye(Zf,{className:"size-4"},void 0,!1,void 0,this),Ye("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)});Ro.displayName="DialogContent";var Zs=({className:e,...t})=>Ye("div",{className:a("flex flex-col space-y-1.5 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Zs.displayName="DialogHeader";var Js=({className:e,...t})=>Ye("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);Js.displayName="DialogFooter";var Qs=Lo(({className:e,...t},r)=>Ye(ve.Title,{ref:r,className:a("font-semibold text-lg leading-none tracking-tight",e),...t},void 0,!1,void 0,this));Qs.displayName="DialogTitle";var Es=Lo(({className:e,...t},r)=>Ye(ve.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Es.displayName="DialogDescription";import{cva as Da}from"class-variance-authority";import{X as Ef}from"lucide-react";import{forwardRef as Ho}from"react";import{Drawer as dt}from"vaul";import{jsxDEV as Ve}from"react/jsx-dev-runtime";var Be={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},jf={[Be.sm]:"sm:max-w-sm",[Be.md]:"sm:max-w-md",[Be.lg]:"sm:max-w-lg",[Be.xl]:"sm:max-w-xl",[Be.full]:"sm:max-w-full"},eg={[Be.sm]:"sm:max-h-[30vh]",[Be.md]:"sm:max-h-[50vh]",[Be.lg]:"sm:max-h-[70vh]",[Be.xl]:"sm:max-h-[85vh]",[Be.full]:"sm:max-h-full"},js=Da(["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"]),el=Da(["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"]),tl=Da("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"}}),tg=dt.Root,rg=dt.Trigger,og=dt.Close,rl=dt.Portal,Fa=Ho(({className:e,...t},r)=>Ve(dt.Overlay,{ref:r,className:a(js(),e),...t},void 0,!1,void 0,this));Fa.displayName="DrawerOverlay";var ol=Ho(({size:e=Be.md,showClose:t=!1,direction:r="bottom",className:o,children:i,...n},s)=>{let m=r==="left"||r==="right"?jf[e]:eg[e];return Ve(rl,{children:[Ve(Fa,{},void 0,!1,void 0,this),Ve(dt.Content,{ref:s,className:a(el(),m,o),...n,children:[(r==="top"||r==="bottom")&&Ve("div",{className:a(tl({direction:r}))},void 0,!1,void 0,this),i,t&&Ve(dt.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:[Ve(Ef,{className:"size-4"},void 0,!1,void 0,this),Ve("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)});ol.displayName="DrawerContent";var al=({className:e,...t})=>Ve("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);al.displayName="DrawerHeader";var il=({className:e,...t})=>Ve("div",{className:a("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);il.displayName="DrawerFooter";var nl=Ho(({className:e,...t},r)=>Ve(dt.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));nl.displayName="DrawerTitle";var sl=Ho(({className:e,...t},r)=>Ve(dt.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));sl.displayName="DrawerDescription";import*as F from"@radix-ui/react-dropdown-menu";import{cva as _t}from"class-variance-authority";import{Check as ag,ChevronRight as ig,Circle as ng}from"lucide-react";import{createContext as sg,forwardRef as xt,useCallback as lg,useContext as vr,useEffect as mg,useRef as ll,useState as dg}from"react";import{jsxDEV as se}from"react/jsx-dev-runtime";var W={sm:"sm",md:"md",lg:"lg"},ko={default:"default",danger:"danger"},Gt=sg(W.md),Ot=null,$r=null,pg=0,Oa=_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-dropdown-menu-content-transform-origin)]"),_a=_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:{[W.sm]:"h-6 gap-1.5 px-1.5 text-xs [&_svg]:size-3",[W.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[W.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[ko.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[ko.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive focus:text-destructive-foreground"}},defaultVariants:{size:W.md,variant:ko.default}}),ml=_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:{[W.sm]:"h-6 pl-6 pr-1.5 text-xs",[W.md]:"h-8 pl-8 pr-2 text-sm",[W.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:W.md}}),dl=_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:{[W.sm]:"h-6 pl-6 pr-1.5 text-xs",[W.md]:"h-8 pl-8 pr-2 text-sm",[W.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:W.md}}),pl=_t("font-semibold text-muted-foreground",{variants:{size:{[W.sm]:"px-1.5 py-0.5 text-[10px]",[W.md]:"px-2 py-1.5 text-xs",[W.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:W.md}}),cl=_t("-mx-1 my-1 h-px bg-border/50"),ul=_t("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[W.sm]:"text-[10px]",[W.md]:"text-xs",[W.lg]:"text-xs"}},defaultVariants:{size:W.md}}),fl={[W.sm]:"absolute left-1.5 flex size-3 items-center justify-center",[W.md]:"absolute left-2 flex size-3.5 items-center justify-center",[W.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},cg={[W.sm]:"size-3",[W.md]:"size-3.5",[W.lg]:"size-4"},ug={[W.sm]:"size-1.5 fill-current",[W.md]:"size-2 fill-current",[W.lg]:"size-2.5 fill-current"},gl=({children:e,open:t,defaultOpen:r,onOpenChange:o,...i})=>{let[n,s]=dg(r??!1),l=t!==void 0,m=l?t:n,d=ll(++pg),f=ll({onOpenChange:o,isControlled:l});f.current={onOpenChange:o,isControlled:l};let p=lg((h)=>{let{onOpenChange:c,isControlled:v}=f.current;if(h){if(Ot!==null&&Ot!==d.current&&$r)$r();Ot=d.current,$r=()=>{let{onOpenChange:x,isControlled:M}=f.current;if(!M)s(!1);x?.(!1)}}else if(Ot===d.current)Ot=null,$r=null;if(!v)s(h);c?.(h)},[]);return mg(()=>{return()=>{if(Ot===d.current)Ot=null,$r=null}},[]),se(F.Root,{open:m,onOpenChange:p,...i,children:e},void 0,!1,void 0,this)};gl.displayName="DropdownMenu";var fg=F.Trigger,gg=F.Group,vg=F.Portal,bg=F.Sub,yg=F.RadioGroup,vl=xt(({className:e,inset:t,children:r,...o},i)=>{let n=vr(Gt),s=u(n);return se(F.SubTrigger,{ref:i,className:a(_a({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,se(ig,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});vl.displayName=F.SubTrigger.displayName;var bl=xt(({className:e,...t},r)=>se(F.Portal,{children:se(F.SubContent,{ref:r,className:a(Oa(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));bl.displayName=F.SubContent.displayName;var yl=xt(({className:e,sideOffset:t=4,size:r,...o},i)=>{let n=u(r)??W.md;return se(Gt.Provider,{value:n,children:se(F.Portal,{children:se(F.Content,{ref:i,sideOffset:t,className:a(Oa(),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});yl.displayName=F.Content.displayName;var Pl=xt(({className:e,inset:t,variant:r,...o},i)=>{let n=vr(Gt),s=u(n);return se(F.Item,{ref:i,className:a(_a({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});Pl.displayName=F.Item.displayName;var hl=xt(({className:e,children:t,checked:r,...o},i)=>{let n=vr(Gt),s=u(n)??W.md;return se(F.CheckboxItem,{ref:i,className:a(ml({size:s}),e),checked:r,...o,children:[se("span",{className:fl[s],children:se(F.ItemIndicator,{children:se(ag,{className:cg[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)});hl.displayName=F.CheckboxItem.displayName;var Tl=xt(({className:e,children:t,...r},o)=>{let i=vr(Gt),n=u(i)??W.md;return se(F.RadioItem,{ref:o,className:a(dl({size:n}),e),...r,children:[se("span",{className:fl[n],children:se(F.ItemIndicator,{children:se(ng,{className:ug[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)});Tl.displayName=F.RadioItem.displayName;var xl=xt(({className:e,inset:t,...r},o)=>{let i=vr(Gt),n=u(i);return se(F.Label,{ref:o,className:a(pl({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});xl.displayName=F.Label.displayName;var Cl=xt(({className:e,...t},r)=>se(F.Separator,{ref:r,className:a(cl(),e),...t},void 0,!1,void 0,this));Cl.displayName=F.Separator.displayName;var Sl=({className:e,...t})=>{let r=vr(Gt),o=u(r);return se("span",{className:a(ul({size:o}),e),...t},void 0,!1,void 0,this)};Sl.displayName="DropdownMenuShortcut";import{cva as Ur}from"class-variance-authority";import{forwardRef as Pg}from"react";import{jsxDEV as Kr}from"react/jsx-dev-runtime";var be={sm:"sm",md:"md",lg:"lg"},zl=Ur("flex flex-col items-center justify-center text-center rounded-[var(--radius)] border border-dashed border-border/50 bg-muted/20",{variants:{size:{[be.sm]:"gap-2 p-4",[be.md]:"gap-4 p-8",[be.lg]:"gap-6 p-12"}},defaultVariants:{size:be.md}}),wl=Ur("flex items-center justify-center rounded-full bg-muted/50 text-muted-foreground",{variants:{size:{[be.sm]:"h-10 w-10 [&>svg]:h-4 [&>svg]:w-4",[be.md]:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",[be.lg]:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"}},defaultVariants:{size:be.md}}),Ml=Ur("font-semibold text-foreground",{variants:{size:{[be.sm]:"text-sm",[be.md]:"text-lg",[be.lg]:"text-xl"}},defaultVariants:{size:be.md}}),Nl=Ur("text-muted-foreground max-w-sm",{variants:{size:{[be.sm]:"text-xs",[be.md]:"text-sm",[be.lg]:"text-base"}},defaultVariants:{size:be.md}}),Ll=Ur("flex items-center gap-2 mt-2"),Rl=Pg(({className:e,icon:t,title:r,description:o,actions:i,size:n=be.md,children:s,...l},m)=>{let d=u(n);return Kr("div",{ref:m,className:a(zl({size:d}),e),...l,children:[t&&Kr("div",{className:wl({size:d}),children:t},void 0,!1,void 0,this),r&&Kr("h3",{className:Ml({size:d}),children:r},void 0,!1,void 0,this),o&&Kr("p",{className:Nl({size:d}),children:o},void 0,!1,void 0,this),i&&Kr("div",{className:Ll(),children:i},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});Rl.displayName="EmptyState";import{cva as br}from"class-variance-authority";import{Component as hg,createElement as Hl}from"react";import{jsxDEV as Se,Fragment as xg}from"react/jsx-dev-runtime";var kl=br(["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"}}),Al=br(["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"}}),Il=br("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"}}),Vl=br("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"}}),Bl=br("mt-2 flex flex-wrap items-center justify-center gap-2"),Dl=br("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 Fl extends hg{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:i="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:p=!1,renderDetails:h}=this.props;if(this.state.hasError&&this.state.error){let c={error:this.state.error,reset:this.handleReset};if(t){if(typeof t==="function")return Hl(t,c);return t}let v=null;if(d)v=typeof d==="function"?Hl(d,c):d;else if(!p){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"};v=Se("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[i]),children:f},void 0,!1,void 0,this)}let x=h?h(this.state.error):Se(xg,{children:[Se("strong",{children:"Error:"},void 0,!1,void 0,this)," ",this.state.error.message,this.state.error.stack&&Se("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 Se("div",{className:a(kl({size:o,variant:i}),n),children:[Se("div",{className:a(Al({size:o,variant:i})),children:m??Se(Tg,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Se("h3",{className:a(Il({size:o,variant:i})),children:s},void 0,!1,void 0,this),Se("p",{className:a(Vl({size:o})),children:l},void 0,!1,void 0,this),v&&Se("div",{className:a(Bl()),children:v},void 0,!1,void 0,this),r&&Se("div",{className:a(Dl()),children:x},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function Tg(){return Se("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:[Se("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,void 0,this),Se("line",{x1:"12",x2:"12",y1:"8",y2:"12"},void 0,!1,void 0,this),Se("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 Ct}from"class-variance-authority";import{forwardRef as Cg,useCallback as Xe,useRef as Sg,useState as Ol}from"react";import{jsxDEV as he}from"react/jsx-dev-runtime";var ee={sm:"sm",md:"md",lg:"lg",xl:"xl"},_l=Ct(["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:{[ee.sm]:"min-h-28 p-5",[ee.md]:"min-h-36 p-8",[ee.lg]:"min-h-44 p-10",[ee.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:ee.md,isDragging:!1,disabled:!1,hasError:!1}}),Gl=Ct("text-muted-foreground transition-colors duration-200",{variants:{size:{[ee.sm]:"mb-2 size-6",[ee.md]:"size-8 mb-3",[ee.lg]:"size-10 mb-4",[ee.xl]:"size-12 mb-5"},isDragging:{true:"text-primary",false:""}},defaultVariants:{size:ee.md,isDragging:!1}}),Ga=Ct("text-center",{variants:{size:{[ee.sm]:"text-sm",[ee.md]:"text-sm",[ee.lg]:"text-base",[ee.xl]:"text-lg"}},defaultVariants:{size:ee.md}}),Wl=Ct("mt-4 w-full space-y-2"),$l=Ct(["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"]),Kl=Ct("min-w-0 flex-1 truncate font-medium text-foreground",{variants:{size:{[ee.sm]:"text-sm",[ee.md]:"text-sm",[ee.lg]:"text-base",[ee.xl]:"text-base"}},defaultVariants:{size:"md"}}),Ul=Ct("text-muted-foreground",{variants:{size:{[ee.sm]:"text-xs",[ee.md]:"text-sm",[ee.lg]:"text-sm",[ee.xl]:"text-base"}},defaultVariants:{size:"md"}}),Yl=Ct(["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"]),Xl=Cg(({className:e,size:t="md",disabled:r=!1,accept:o,multiple:i=!1,maxSize:n,maxFiles:s,value:l=[],onChange:m,onError:d,icon:f,title:p="Drop files here or click to upload",description:h,showFileList:c=!0,...v},x)=>{let M=u(t),[S,C]=Ol(!1),[b,y]=Ol(!1),k=Sg(null),z=Xe((R)=>{if(R===0)return"0 Bytes";let U=1024,g=["Bytes","KB","MB","GB"],P=Math.floor(Math.log(R)/Math.log(U));return`${parseFloat((R/U**P).toFixed(2))} ${g[P]}`},[]),L=Xe((R)=>{let U=[...R];if(y(!1),o){let g=o.split(",").map((P)=>P.trim());if(U=U.filter((P)=>{return g.some((N)=>{if(N.startsWith("."))return P.name.toLowerCase().endsWith(N.toLowerCase());if(N.endsWith("/*"))return P.type.startsWith(N.slice(0,-1));return P.type===N})}),U.length<R.length)d?.("Some files were rejected due to file type"),y(!0)}if(n){let g=U.length;if(U=U.filter((P)=>P.size<=n),U.length<g)d?.(`File size must be less than ${z(n)}`),y(!0)}if(s&&U.length+l.length>s)U=U.slice(0,s-l.length),d?.(`Maximum ${s} files allowed`),y(!0);return U},[o,n,s,l.length,d,z]),A=Xe((R)=>{if(!R||R.length===0)return;let U=Array.from(R),g=L(U);if(g.length>0)if(i)m?.([...l,...g]);else m?.(g.slice(0,1))},[i,l,m,L]),_=Xe((R)=>{R.preventDefault(),R.stopPropagation(),C(!0)},[]),X=Xe((R)=>{R.preventDefault(),R.stopPropagation(),C(!1)},[]),O=Xe((R)=>{R.preventDefault(),R.stopPropagation()},[]),$=Xe((R)=>{if(R.preventDefault(),R.stopPropagation(),C(!1),r)return;A(R.dataTransfer.files)},[r,A]),w=Xe((R)=>{if(A(R.target.files),k.current)k.current.value=""},[A]),I=Xe(()=>{if(!r)k.current?.click()},[r]),T=Xe((R)=>{if(R.key==="Enter"||R.key===" ")R.preventDefault(),I()},[I]),V=Xe((R)=>{let U=l.filter((g,P)=>P!==R);m?.(U)},[l,m]),J=he("svg",{className:a(Gl({size:M,isDragging:S})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:he("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 he("div",{ref:x,className:a("w-full",e),...v,children:[he("div",{role:"button",tabIndex:r?-1:0,onClick:I,onKeyDown:T,onDragEnter:_,onDragLeave:X,onDragOver:O,onDrop:$,className:a(_l({size:M,isDragging:S,disabled:r,hasError:b})),children:[he("input",{ref:k,type:"file",accept:o,multiple:i,disabled:r,onChange:w,className:"sr-only"},void 0,!1,void 0,this),f||J,he("p",{className:a(Ga({size:M}),"font-medium text-foreground"),children:p},void 0,!1,void 0,this),h&&he("p",{className:a(Ga({size:M}),"mt-1 text-muted-foreground"),children:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c&&l.length>0&&he("div",{className:a(Wl()),children:l.map((R,U)=>he("div",{className:a($l()),children:[he("svg",{className:"size-5 shrink-0 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:he("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),he("span",{className:a(Kl({size:M})),children:R.name},void 0,!1,void 0,this),he("span",{className:a(Ul({size:M})),children:z(R.size)},void 0,!1,void 0,this),he("button",{type:"button",onClick:(g)=>{g.stopPropagation(),V(U)},className:a(Yl()),"aria-label":`Remove ${R.name}`,children:he("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:he("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)]},`${R.name}-${U}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Xl.displayName="FileUpload";import{cva as zg}from"class-variance-authority";import{createContext as wg,forwardRef as Ao,useContext as Mg,useId as Ng}from"react";import{jsxDEV as Wt,Fragment as Rg}from"react/jsx-dev-runtime";var De={sm:"sm",md:"md",lg:"lg"},ql=wg(null),Yr=()=>{let e=Mg(ql);if(!e)throw Error("useFormField must be used within a FormField");return e},Zl=zg("flex flex-col",{variants:{size:{[De.sm]:"gap-1",[De.md]:"gap-1.5",[De.lg]:"gap-2"}},defaultVariants:{size:De.md}}),Jl=Ao(({className:e,size:t=De.md,error:r,disabled:o=!1,required:i=!1,children:n,...s},l)=>{let m=Ng(),d=u(t),f={id:m,size:d,error:r,disabled:o,required:i};return Wt(ql.Provider,{value:f,children:Wt("div",{ref:l,className:a(Zl({size:d}),e),...s,children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Jl.displayName="FormField";var Lg={[De.sm]:"text-xs",[De.md]:"text-sm",[De.lg]:"text-base"},Ql=Ao(({className:e,htmlFor:t,children:r,...o},i)=>{let{id:n,size:s,disabled:l,required:m}=Yr();return Wt("label",{ref:i,htmlFor:t??n,className:a("inline-block font-medium text-foreground select-none",Lg[s],l&&"cursor-not-allowed opacity-60",e),...o,children:[r,m&&Wt("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Ql.displayName="FormFieldLabel";var El={[De.sm]:"text-[10px]",[De.md]:"text-xs",[De.lg]:"text-sm"},jl=Ao(({className:e,...t},r)=>{let{id:o,size:i}=Yr();return Wt("p",{ref:r,id:`${o}-description`,className:a("text-muted-foreground",El[i],e),...t},void 0,!1,void 0,this)});jl.displayName="FormFieldDescription";var em=Ao(({className:e,children:t,...r},o)=>{let{id:i,size:n,error:s}=Yr(),l=t??s;if(!l)return null;return Wt("p",{ref:o,id:`${i}-error`,role:"alert",className:a("text-destructive",El[n],e),...r,children:l},void 0,!1,void 0,this)});em.displayName="FormFieldError";var tm=({children:e})=>{let{id:t,disabled:r,required:o,error:i}=Yr(),n=[i?`${t}-error`:void 0,`${t}-description`].filter(Boolean).join(" ");return Wt(Rg,{children:e({id:t,disabled:r,required:o,status:i?"error":"default","aria-describedby":n||void 0,"aria-invalid":i?!0:void 0})},void 0,!1,void 0,this)};tm.displayName="FormFieldControl";import*as $t from"@radix-ui/react-hover-card";import{cva as Hg}from"class-variance-authority";import{forwardRef as kg}from"react";import{jsxDEV as Vg}from"react/jsx-dev-runtime";var yr={sm:"sm",md:"md",lg:"lg"},rm=Hg("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:{[yr.sm]:"w-52 p-3 text-xs",[yr.md]:"w-64 p-4 text-sm",[yr.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:yr.md}}),Ag=$t.Root,Ig=$t.Trigger,om=kg(({className:e,align:t="center",sideOffset:r=4,size:o=yr.md,...i},n)=>{let s=u(o);return Vg($t.Content,{ref:n,align:t,sideOffset:r,className:a(rm({size:s}),e),...i},void 0,!1,void 0,this)});om.displayName=$t.Content.displayName;import{cva as Fg}from"class-variance-authority";import{X as Og}from"lucide-react";import{forwardRef as _g,useRef as Gg,useState as Wg}from"react";import*as St from"react";function am(...e){return(t)=>{for(let r of e)if(typeof r==="function")r(t);else if(r!=null)r.current=t}}function Xr(...e){return St.useCallback(am(...e),e)}function Bg(e,t){let r=St.createContext(t);r.displayName=e;function o(){let i=St.useContext(r);if(i===void 0)throw Error(`use${e} must be used within a ${e}Provider`);return i}return[r.Provider,o,r]}function Dg(e){let t=St.createContext(void 0);t.displayName=e;function r(){return St.useContext(t)}return[t.Provider,r,t]}import{jsxDEV as Kt}from"react/jsx-dev-runtime";var qr={default:"default",error:"error",success:"success"},Y={sm:"sm",md:"md",lg:"lg",xl:"xl"},$g="Clear input",nm=Fg("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:{[qr.default]:"focus-visible:ring-primary",[qr.error]:"border-destructive focus-visible:ring-destructive",[qr.success]:"border-success focus-visible:ring-success"},size:{[Y.sm]:"h-8 px-2 text-xs",[Y.md]:"h-10 px-3",[Y.lg]:"h-11 px-4",[Y.xl]:"h-12 px-4 text-base"}},defaultVariants:{status:qr.default,size:Y.md}}),Kg={[Y.sm]:"pl-7",[Y.md]:"pl-9",[Y.lg]:"pl-10",[Y.xl]:"pl-10"},Ug={[Y.sm]:"pr-7",[Y.md]:"pr-9",[Y.lg]:"pr-10",[Y.xl]:"pr-10"},Yg={[Y.sm]:"pr-12",[Y.md]:"pr-16",[Y.lg]:"pr-18",[Y.xl]:"pr-18"},Xg={[Y.sm]:"text-xs left-2",[Y.md]:"text-sm left-3",[Y.lg]:"text-sm left-3.5",[Y.xl]:"text-base left-3.5"},qg={[Y.sm]:"text-xs",[Y.md]:"text-sm",[Y.lg]:"text-sm",[Y.xl]:"text-base"},Zg={[Y.sm]:"size-4",[Y.md]:"size-5",[Y.lg]:"size-5",[Y.xl]:"size-6"};function im(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var sm=_g(({className:e,status:t=qr.default,size:r=Y.md,fullWidth:o=!1,prefix:i,suffix:n,clearable:s=!1,clearAriaLabel:l=$g,onClear:m,onValueChange:d,disabled:f,readOnly:p,onChange:h,value:c,defaultValue:v,...x},M)=>{let S=Boolean(i),C=Boolean(n),b=u(r),y=Gg(null),k=Xr(M,y),[z,L]=Wg(()=>im(v)),A=c!==void 0,_=A?im(c):z,X=s&&!f&&!p&&_.length>0,O=C||X,$=C&&X,w=(T)=>{let V=T.target.value;if(!A)L(V);d?.(V),h?.(T)},I=()=>{if(!A)L("");d?.("");let T=y.current;if(T)T.value="",T.dispatchEvent(new Event("input",{bubbles:!0})),T.focus();m?.()};return Kt("div",{className:a("relative flex items-center",o&&"w-full"),children:[S&&Kt("span",{className:a("absolute inset-y-0 flex items-center text-muted-foreground",Xg[b]),children:i},void 0,!1,void 0,this),Kt("input",{ref:k,className:a(nm({status:t,size:b}),S&&Kg[b],$&&Yg[b],!$&&O&&Ug[b],e),disabled:f,readOnly:p,onChange:w,value:_,...x},void 0,!1,void 0,this),O&&Kt("span",{className:a("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",qg[b]),children:[C&&Kt("span",{className:"inline-flex items-center",children:n},void 0,!1,void 0,this),X&&Kt("button",{type:"button","aria-label":l,onMouseDown:(T)=>T.preventDefault(),onClick:I,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",Zg[b]),children:Kt(Og,{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 Eg}from"class-variance-authority";import{forwardRef as jg}from"react";var Pr=null;function Ut(){if(Pr)return Pr;if(typeof navigator>"u")return Pr={os:"linux",isMac:!1,isWindows:!1,isLinux:!0,isMobile:!1},Pr;let e=navigator.userAgentData?.platform??navigator.platform??"",t=navigator.userAgent??"",r=/mac/i.test(e),o=/win/i.test(e),i=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)||"maxTouchPoints"in navigator&&navigator.maxTouchPoints>1&&r,n=/linux/i.test(e)&&!i;return Pr={os:r?"mac":o?"windows":"linux",isMac:r,isWindows:o,isLinux:n,isMobile:i},Pr}var Jg={esc:"escape",return:"enter",del:"delete",space:" ",spacebar:" ",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",plus:"+"},lm={mod:"⌘",ctrl:"⌃",control:"⌃",alt:"⌥",option:"⌥",shift:"⇧",meta:"⌘",cmd:"⌘",command:"⌘",enter:"⏎",return:"⏎",backspace:"⌫",delete:"⌦",tab:"⇥",escape:"Esc",esc:"Esc",space:"␣",up:"↑",down:"↓",left:"←",right:"→",arrowup:"↑",arrowdown:"↓",arrowleft:"←",arrowright:"→"},mm={mod:"Ctrl",cmd:"Ctrl",command:"Ctrl",meta:"Super",ctrl:"Ctrl",control:"Ctrl",alt:"Alt",option:"Alt",shift:"Shift",enter:"Enter",return:"Enter",backspace:"Backspace",delete:"Del",tab:"Tab",escape:"Esc",esc:"Esc",space:"Space",up:"↑",down:"↓",left:"←",right:"→",arrowup:"↑",arrowdown:"↓",arrowleft:"←",arrowright:"→"};function Wa(e){let t=e.split("+").map((o)=>o.trim().toLowerCase()),r={key:"",mod:!1,ctrl:!1,alt:!1,shift:!1,meta:!1};for(let o of t)if(o==="mod")r.mod=!0;else if(o==="ctrl"||o==="control")r.ctrl=!0;else if(o==="alt"||o==="option")r.alt=!0;else if(o==="shift")r.shift=!0;else if(o==="meta"||o==="cmd"||o==="command")r.meta=!0;else r.key=Jg[o]??o;return r}function $a(e,t){let{isMac:r}=Ut(),o=e.key.toLowerCase(),i=t.key.toLowerCase();if(i&&o!==i&&e.code.toLowerCase()!==`key${i}`)return!1;let n=t.meta||t.mod&&r,s=t.ctrl||t.mod&&!r;if(e.metaKey!==n)return!1;if(e.ctrlKey!==s)return!1;if(e.altKey!==t.alt)return!1;if(e.shiftKey!==t.shift)return!1;return!0}function Zr(e,t){let r=t??Ut().isMac,o=r?lm:mm,i=e.split("+").map((n)=>{let s=n.trim().toLowerCase();return o[s]??n.trim().toUpperCase()});return r?i.join(""):i.join("+")}function Qg(e,t){let o=t??Ut().isMac?lm:mm;return e.split("+").map((i)=>{let n=i.trim().toLowerCase();return o[n]??i.trim().toUpperCase()})}function Jr(){return Ut()}import{jsxDEV as ev}from"react/jsx-dev-runtime";var hr={sm:"sm",md:"md",lg:"lg"},dm=Eg("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:{[hr.sm]:"min-w-5 h-5 px-1 text-[10px]",[hr.md]:"min-w-6 h-6 px-1.5 text-xs",[hr.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:hr.md}}),pm=jg(({className:e,size:t=hr.md,keys:r,children:o,...i},n)=>{let s=u(t),{isMac:l}=Jr(),m=r?Zr(r,l):o;return ev("kbd",{ref:n,className:a(dm({size:s}),e),...i,children:m},void 0,!1,void 0,this)});pm.displayName="Kbd";import{cva as tv}from"class-variance-authority";import{forwardRef as rv}from"react";import{jsxDEV as cm}from"react/jsx-dev-runtime";var Tr={sm:"sm",md:"md",lg:"lg"},um=tv("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-60",{variants:{size:{[Tr.sm]:"text-xs",[Tr.md]:"text-sm",[Tr.lg]:"text-base"}},defaultVariants:{size:Tr.md}}),fm=rv(({className:e,size:t=Tr.md,required:r=!1,disabled:o=!1,children:i,...n},s)=>{let l=u(t);return cm("label",{ref:s,className:a(um({size:l}),o&&"cursor-not-allowed opacity-60",e),"aria-disabled":o||void 0,...n,children:[i,r&&cm("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});fm.displayName="Label";import*as zt from"@radix-ui/react-popover";import{cva as mv}from"class-variance-authority";import{Check as dv,ChevronDown as pv,X as cv,X as uv}from"lucide-react";import{forwardRef as fv,useCallback as Qr,useEffect as gv,useRef as vv,useState as bm}from"react";import*as Fe from"@radix-ui/react-popover";import{cva as ov}from"class-variance-authority";import{forwardRef as av}from"react";import{jsxDEV as gm}from"react/jsx-dev-runtime";var xr={sm:"sm",md:"md",lg:"lg"},Cr=ov("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:{[xr.sm]:"w-56 p-3 text-sm",[xr.md]:"w-72 p-4 text-sm",[xr.lg]:"w-96 p-5 text-sm"}},defaultVariants:{size:xr.md}}),iv=Fe.Root,nv=Fe.Trigger,sv=Fe.Anchor,lv=Fe.Close,vm=av(({className:e,align:t="center",sideOffset:r=4,portal:o=!0,portalContainer:i,size:n=xr.md,...s},l)=>{let m=u(n),d=gm(Fe.Content,{ref:l,align:t,sideOffset:r,className:a(Cr({size:m}),e),...s},void 0,!1,void 0,this);if(o)return gm(Fe.Portal,{container:i??void 0,children:d},void 0,!1,void 0,this);return d});vm.displayName="PopoverContent";import{jsxDEV as re,Fragment as Pv}from"react/jsx-dev-runtime";var de={sm:"sm",md:"md",lg:"lg",xl:"xl"},ym=mv(["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:{[de.sm]:"min-h-8 px-2.5 py-1 text-xs",[de.md]:"min-h-10 px-3.5 py-1.5",[de.lg]:"min-h-11 px-4.5 py-2 text-sm",[de.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:de.md,status:"default"}}),bv={[de.sm]:"h-5 px-1.5 text-[10px]",[de.md]:"h-6 px-2 text-xs",[de.lg]:"h-6.5 px-2.5 text-xs",[de.xl]:"h-7 px-2.5 text-sm"},yv={[de.sm]:"min-h-7 py-1 px-2 text-xs",[de.md]:"min-h-9 py-2 px-3 text-sm",[de.lg]:"min-h-10 py-2.5 px-3.5 text-sm",[de.xl]:"min-h-11 py-3 px-4 text-base"},Io={[de.sm]:"size-3.5",[de.md]:"size-4",[de.lg]:"size-4",[de.xl]:"size-4.5"},Pm=fv(({className:e,options:t,value:r,defaultValue:o=[],onValueChange:i,placeholder:n="Select options...",size:s=de.md,status:l="default",clearable:m=!1,maxDisplayItems:d=3,disabled:f,...p},h)=>{let c=u(s)??s,[v,x]=bm(!1),[M,S]=bm(o),C=vv(null),b=r!==void 0,y=b?r:M,k=Qr((w)=>{let I=y.includes(w)?y.filter((T)=>T!==w):[...y,w];if(!b)S(I);i?.(I)},[y,b,i]),z=Qr((w,I)=>{I.stopPropagation();let T=y.filter((V)=>V!==w);if(!b)S(T);i?.(T)},[y,b,i]),L=Qr((w)=>{if(w.stopPropagation(),w.preventDefault(),!b)S([]);i?.([])},[b,i]),A=t.filter((w)=>y.includes(w.value)),_=A.length>0,X=m&&_&&!f,O=Qr((w)=>{let I=C.current;if(!I)return;let T=Array.from(I.querySelectorAll('[role="option"]:not([data-disabled])'));if(T.length===0)return;let V=I.querySelector('[role="option"]:focus'),J=V?T.indexOf(V):-1,R;switch(w){case"first":R=T[0];break;case"last":R=T[T.length-1];break;case"next":R=T[J+1]??T[0];break;case"prev":R=T[J-1]??T[T.length-1];break}R?.focus()},[]),$=Qr((w)=>{switch(w.key){case"ArrowDown":w.preventDefault(),O("next");break;case"ArrowUp":w.preventDefault(),O("prev");break;case"Home":w.preventDefault(),O("first");break;case"End":w.preventDefault(),O("last");break;case"Escape":w.preventDefault(),x(!1);break}},[O]);return gv(()=>{if(v)requestAnimationFrame(()=>O("first"))},[v,O]),re(zt.Root,{open:v,onOpenChange:x,children:[re(zt.Trigger,{asChild:!0,children:re("button",{ref:h,type:"button",disabled:f,"data-state":v?"open":"closed","data-placeholder":!_?"":void 0,className:a(ym({size:c,status:l}),e),...p,children:[re("span",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:_?re(Pv,{children:[A.slice(0,d).map((w)=>re("span",{className:a("inline-flex items-center gap-1 rounded-[calc(var(--radius)-4px)] border border-border/60 bg-muted/50 font-medium text-foreground",bv[c]),children:[re("span",{className:"truncate",children:w.label},void 0,!1,void 0,this),re("span",{"data-slot":"multiselect-remove","aria-label":`Remove ${w.label}`,onMouseDown:(I)=>I.preventDefault(),onClick:(I)=>z(w.value,I),className:"ml-0.5 inline-flex shrink-0 items-center justify-center rounded-full opacity-60 hover:opacity-100",children:re(uv,{className:"h-3 w-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},w.value,!0,void 0,this)),A.length>d&&re("span",{className:"text-muted-foreground text-xs",children:["+",A.length-d]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):re("span",{className:"text-muted-foreground",children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this),re("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[X&&re("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(w)=>w.preventDefault(),onClick:L,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:re(cv,{className:Io[c]},void 0,!1,void 0,this)},void 0,!1,void 0,this),re(pv,{className:a(Io[c],"opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]",v&&"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),re(zt.Portal,{children:re(zt.Content,{ref:C,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:$,onOpenAutoFocus:(w)=>w.preventDefault(),className:a(Cr(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((w)=>{let I=y.includes(w.value);return re("div",{role:"option",tabIndex:w.disabled?void 0:-1,"aria-selected":I,"aria-disabled":w.disabled||void 0,"data-disabled":w.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",yv[c]),onClick:()=>!w.disabled&&k(w.value),onKeyDown:(T)=>{if(T.key==="Enter"||T.key===" "){if(T.preventDefault(),!w.disabled)k(w.value)}},children:[re("span",{className:a("flex shrink-0 items-center justify-center",Io[c]),children:I&&re(dv,{className:Io[c]},void 0,!1,void 0,this)},void 0,!1,void 0,this),re("span",{className:"min-w-0 flex-1 truncate",children:w.label},void 0,!1,void 0,this)]},w.value,!0,void 0,this)}),t.length===0&&re("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)});Pm.displayName="Multiselect";import*as oe from"@radix-ui/react-navigation-menu";import{cva as Yt}from"class-variance-authority";import{createContext as hv,forwardRef as Sr,useContext as Tv}from"react";import{jsxDEV as He}from"react/jsx-dev-runtime";var qe={sm:"sm",md:"md",lg:"lg"},hm=hv(qe.md),Tm=Yt("relative z-10 flex max-w-max flex-1 items-center justify-center"),xm=Yt("group flex flex-1 list-none items-center justify-center space-x-1"),Cm=Yt(["group inline-flex w-max items-center justify-center rounded-md bg-background font-medium","gs-interactive","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground focus:outline-none","disabled:pointer-events-none disabled:opacity-50","data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"],{variants:{size:{[qe.sm]:"h-8 px-3 py-1.5 text-xs",[qe.md]:"h-10 px-4 py-2 text-sm",[qe.lg]:"h-12 px-5 py-2.5 text-sm"}},defaultVariants:{size:qe.md}}),Sm=Yt(["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"]),xv=Yt(["block select-none space-y-1 rounded-md leading-none no-underline outline-none","gs-interactive","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground"],{variants:{size:{[qe.sm]:"p-2 text-xs",[qe.md]:"p-3 text-sm",[qe.lg]:"p-4 text-sm"}},defaultVariants:{size:qe.md}}),zm=Yt(["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=Yt(["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"]),Cv=()=>He("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:He("path",{d:"m6 9 6 6 6-6"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Mm=Sr(({className:e,children:t,size:r,...o},i)=>{let n=u(r??qe.md);return He(hm.Provider,{value:n,children:He(oe.Root,{ref:i,className:a(Tm(),e),...o,children:[t,He(Ka,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Mm.displayName=oe.Root.displayName;var Nm=Sr(({className:e,...t},r)=>He(oe.List,{ref:r,className:a(xm(),e),...t},void 0,!1,void 0,this));Nm.displayName=oe.List.displayName;var Sv=oe.Item,Lm=Sr(({className:e,children:t,...r},o)=>{let i=Tv(hm);return He(oe.Trigger,{ref:o,className:a(Cm({size:i}),"group",e),...r,children:[t,He(Cv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Lm.displayName=oe.Trigger.displayName;var Rm=Sr(({className:e,...t},r)=>He(oe.Content,{ref:r,className:a(Sm(),e),...t},void 0,!1,void 0,this));Rm.displayName=oe.Content.displayName;var zv=oe.Link,Ka=Sr(({className:e,...t},r)=>He("div",{className:"absolute top-full left-0 flex justify-center",children:He(oe.Viewport,{className:a(zm(),e),ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Ka.displayName=oe.Viewport.displayName;var Hm=Sr(({className:e,...t},r)=>He(oe.Indicator,{ref:r,className:a(wm(),e),...t,children:He("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));Hm.displayName=oe.Indicator.displayName;import{cva as zr}from"class-variance-authority";import{Fragment as wv,forwardRef as Mv,useCallback as Xt,useEffect as km,useMemo as Am,useRef as Nv,useState as Im}from"react";import{jsxDEV as qt}from"react/jsx-dev-runtime";var Zt={sm:"sm",md:"md",lg:"lg",xl:"xl"},jr={default:"default",error:"error",success:"success"},Er={single:"single",first:"first",middle:"middle",last:"last"},Vm=zr("relative inline-flex items-center",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2",xl:"gap-2.5"}},defaultVariants:{size:Zt.md}}),Bm=zr("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:Zt.md,status:jr.default}}),Dm=zr(["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:Zt.md,filled:!1,focused:!1,status:jr.default,disabled:!1,position:Er.single}}),Fm=zr(["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:Zt.md,status:jr.default,filled:!1}}),Om=zr(["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:Zt.md,focused:!1}}),_m=zr("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:Zt.md}});function Lv(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function Ua(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var Gm=Mv(({className:e,length:t=6,value:r,onChange:o,onComplete:i,size:n=Zt.md,status:s=jr.default,disabled:l=!1,autoFocus:m=!1,mask:d=!1,groupSize:f,separator:p,separatorChar:h="—",placeholder:c="•",inputMode:v="numeric",pattern:x="[0-9]*",...M},S)=>{let C=u(n),b=Lv(t),y=Nv([]),[k,z]=Im(null),[L,A]=Im(()=>Ua(r,b));km(()=>{if(r!==void 0){A(Ua(r,b));return}A((g)=>Ua(g.join(""),b))},[r,b]),km(()=>{if(m)y.current[0]?.focus()},[m]);let _=Am(()=>{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 p==="number"&&Number.isFinite(p)){let g=Math.floor(p);if(g<=0)return b;return Math.min(b,Math.max(1,g))}if(p)return Math.max(1,Math.floor(b/2));return b},[f,b,p]),X=Am(()=>{let g=[];for(let P=0;P<b;P+=_){let N=Math.min(P+_,b),ce=[];for(let q=P;q<N;q+=1)ce.push(q);g.push(ce)}return g},[_,b]),O=Xt((g)=>{let P=y.current[g];if(!P)return;P.focus(),P.select()},[]),$=Xt((g)=>{A(g);let P=g.join("");if(o?.(P),g.every((N)=>N!=="")&&P.length===b)i?.(P)},[o,i,b]),w=Xt((g,P)=>{if(l)return;let ce=(v==="numeric"?P.replace(/\D/g,""):P).slice(-1),q=[...L];if(q[g]=ce,$(q),ce&&g<b-1)O(g+1)},[L,l,$,O,v,b]),I=Xt((g,P)=>{if(l)return;if(P.key==="Backspace"){if(P.preventDefault(),L[g]){let N=[...L];N[g]="",$(N);return}if(g>0){let N=[...L];N[g-1]="",$(N),O(g-1)}return}if(P.key==="Delete"){if(P.preventDefault(),L[g]){let N=[...L];N[g]="",$(N)}return}if(P.key==="ArrowLeft"){if(P.preventDefault(),g>0)O(g-1);return}if(P.key==="ArrowRight"){if(P.preventDefault(),g<b-1)O(g+1);return}if(P.key==="Home"){P.preventDefault(),O(0);return}if(P.key==="End")P.preventDefault(),O(b-1)},[L,l,$,O,b]),T=Xt((g,P)=>{if(P.preventDefault(),l)return;let N=P.clipboardData.getData("text"),q=(v==="numeric"?N.replace(/\D/g,""):N.replace(/\s/g,"")).split("");if(q.length===0)return;let Ae=[...L];for(let H=0;H<q.length;H+=1){let j=g+H;if(j>=b)break;Ae[j]=q[H]??""}$(Ae);let E=Math.min(b-1,g+q.length-1);if(E<b-1){O(E+1);return}y.current[E]?.blur()},[L,l,$,O,v,b]),V=Xt((g,P)=>{z(g),P.target.select()},[]),J=Xt(()=>{z(null)},[]),R=p!==void 0,U=h.length>0&&p!==!1&&(R||X.length>1);return qt("div",{ref:S,className:a(Vm({size:C}),e),role:"group","aria-label":"One-time password input",...M,children:X.map((g,P)=>qt(wv,{children:[qt("div",{"data-gs-otp-group":"true",className:a(Bm({size:C,status:s})),children:g.map((N,ce)=>{let q=L[N]??"",Ae=k===N,E=Er.middle;if(g.length===1)E=Er.single;else if(ce===0)E=Er.first;else if(ce===g.length-1)E=Er.last;return qt("div",{"data-gs-otp-slot":"true","data-disabled":l,className:a(Dm({size:C,filled:Boolean(q),focused:Ae,status:s,disabled:l,position:E})),children:[qt("input",{ref:(H)=>{y.current[N]=H},type:d?"password":"text",inputMode:v,pattern:x,maxLength:1,value:q,placeholder:"",disabled:l,"aria-invalid":s===jr.error,"aria-label":`Digit ${N+1} of ${b}`,autoComplete:"one-time-code",onChange:(H)=>w(N,H.target.value),onKeyDown:(H)=>I(N,H),onPaste:(H)=>T(N,H),onFocus:(H)=>V(N,H),onBlur:J,className:a(Fm({size:C,status:s,filled:Boolean(q)}))},void 0,!1,void 0,this),!q&&qt("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:a(Om({size:C,focused:Ae})),children:c},void 0,!1,void 0,this)]},`slot-${N}`,!0,void 0,this)})},void 0,!1,void 0,this),U&&P<X.length-1&&qt("span",{"data-gs-otp-separator":"true",className:a(_m({size:C})),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)});Gm.displayName="OTPInput";import{createContext as Vv,useCallback as wr,useContext as Bv,useMemo as Dv,useState as Fv}from"react";import*as ne from"@radix-ui/react-dialog";import{cva as Wm}from"class-variance-authority";import{X as Rv}from"lucide-react";import{forwardRef as Vo}from"react";import{jsxDEV as Ze}from"react/jsx-dev-runtime";var ke={top:"top",right:"right",bottom:"bottom",left:"left"},te={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Hv={[ke.top]:"gs-sheet-content gs-sheet-content-top",[ke.right]:"gs-sheet-content gs-sheet-content-right",[ke.bottom]:"gs-sheet-content gs-sheet-content-bottom",[ke.left]:"gs-sheet-content gs-sheet-content-left"},kv={[ke.right]:{[te.sm]:"sm:max-w-sm",[te.md]:"sm:max-w-md",[te.lg]:"sm:max-w-lg",[te.xl]:"sm:max-w-xl",[te.full]:"sm:max-w-full"},[ke.left]:{[te.sm]:"sm:max-w-sm",[te.md]:"sm:max-w-md",[te.lg]:"sm:max-w-lg",[te.xl]:"sm:max-w-xl",[te.full]:"sm:max-w-full"},[ke.top]:{[te.sm]:"sm:max-h-[30vh]",[te.md]:"sm:max-h-[50vh]",[te.lg]:"sm:max-h-[70vh]",[te.xl]:"sm:max-h-[85vh]",[te.full]:"sm:max-h-full"},[ke.bottom]:{[te.sm]:"sm:max-h-[30vh]",[te.md]:"sm:max-h-[50vh]",[te.lg]:"sm:max-h-[70vh]",[te.xl]:"sm:max-h-[85vh]",[te.full]:"sm:max-h-full"}},$m=Wm("gs-sheet-overlay fixed inset-0 z-50 bg-black/50"),Km=Wm("fixed z-50 flex flex-col gap-4 border border-border bg-background p-6 shadow-[var(--shadow-xl)]",{variants:{side:{[ke.top]:"inset-x-0 top-0 border-b",[ke.bottom]:"inset-x-0 bottom-0 border-t",[ke.left]:"inset-y-0 left-0 h-full w-3/4 border-r",[ke.right]:"inset-y-0 right-0 h-full w-3/4 border-l"}},defaultVariants:{side:ke.right}}),Ya=ne.Root,Av=ne.Trigger,Iv=ne.Close,Um=ne.Portal,Xa=Vo(({className:e,...t},r)=>Ze(ne.Overlay,{className:a($m(),e),...t,ref:r},void 0,!1,void 0,this));Xa.displayName=ne.Overlay.displayName;var Bo=Vo(({side:e="right",size:t=te.md,showClose:r=!0,className:o,children:i,...n},s)=>{let l=u(t)??te.md,m=Hv[e],d=kv[e][l];return Ze(Um,{children:[Ze(Xa,{},void 0,!1,void 0,this),Ze(ne.Content,{ref:s,className:a(Km({side:e}),m,d,o),...n,children:[i,r&&Ze(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:[Ze(Rv,{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=ne.Content.displayName;var Ym=({className:e,...t})=>Ze("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Ym.displayName="SheetHeader";var Xm=({className:e,...t})=>Ze("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);Xm.displayName="SheetFooter";var qm=Vo(({className:e,...t},r)=>Ze(ne.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));qm.displayName=ne.Title.displayName;var Zm=Vo(({className:e,...t},r)=>Ze(ne.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Zm.displayName=ne.Description.displayName;import{jsxDEV as pt}from"react/jsx-dev-runtime";var qa=0;function Ov(){return qa=(qa+1)%Number.MAX_SAFE_INTEGER,`overlay-${qa}-${Date.now()}`}var Qm=Vv(null),Jm=400;function Em({children:e}){let[t,r]=Fv([]),o=wr((d)=>{r((f)=>f.map((p)=>p.id===d?{...p,open:!1}:p)),setTimeout(()=>{r((f)=>f.filter((p)=>p.id!==d))},Jm)},[]),i=wr(()=>{r((d)=>d.map((f)=>({...f,open:!1}))),setTimeout(()=>{r([])},Jm)},[]),n=wr((d,f,p,h={})=>{let c=Ov(),v=(S)=>{return pt(f,{...p,close:S.close},void 0,!1,void 0,this)};v.displayName=`OverlayWrapper(${f.displayName??f.name??"Component"})`;let x={id:c,type:d,component:v,wrapperProps:h,open:!0};return r((S)=>[...S,x]),{id:c,close:()=>o(c)}},[o]),s=wr((d,f,p)=>{return n("dialog",d,f,p)},[n]),l=wr((d,f,p)=>{return n("sheet",d,f,p)},[n]),m=Dv(()=>({dialog:s,sheet:l,close:o,closeAll:i}),[s,l,o,i]);return pt(Qm.Provider,{value:m,children:[e,t.map((d)=>pt(_v,{entry:d,onClose:o},d.id,!1,void 0,this))]},void 0,!0,void 0,this)}Em.displayName="OverlayProvider";function _v({entry:e,onClose:t}){let{id:r,type:o,component:i,wrapperProps:n,open:s}=e,l=wr(()=>t(r),[r,t]);if(o==="dialog"){let{showClose:m,size:d,...f}=n;return pt(Va,{open:s,onOpenChange:(p)=>!p&&l(),children:pt(Ro,{showClose:m,size:d,...f,children:pt(i,{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 pt(Ya,{open:s,onOpenChange:(p)=>!p&&l(),children:pt(Bo,{side:m,showClose:d,...f,children:pt(i,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}return null}function Gv(){let e=Bv(Qm);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as eo}from"class-variance-authority";import{ChevronLeft as Wv,ChevronRight as $v,MoreHorizontal as Kv}from"lucide-react";import{createContext as Uv,forwardRef as to,useContext as Do}from"react";import{jsxDEV as Me}from"react/jsx-dev-runtime";var Oe={sm:"sm",md:"md",lg:"lg"},ro=Uv(Oe.md),jm=eo("mx-auto flex w-full justify-center"),ed=eo("flex flex-row items-center gap-1"),td=eo(""),Fo=eo("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:{[Oe.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[Oe.md]:"h-9 w-9 text-sm [&_svg]:size-4",[Oe.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:Oe.md}}),rd=eo("flex items-center justify-center",{variants:{size:{[Oe.sm]:"h-7 w-7 [&_svg]:size-3.5",[Oe.md]:"h-9 w-9 [&_svg]:size-4",[Oe.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:Oe.md}}),od=({className:e,size:t=Oe.md,...r})=>{let o=u(t)??Oe.md;return Me(ro.Provider,{value:o,children:Me("nav",{"aria-label":"pagination",className:a(jm(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};od.displayName="Pagination";var ad=to(({className:e,...t},r)=>Me("ul",{ref:r,className:a(ed(),e),...t},void 0,!1,void 0,this));ad.displayName="PaginationContent";var id=to(({className:e,...t},r)=>Me("li",{ref:r,className:a(td(),e),...t},void 0,!1,void 0,this));id.displayName="PaginationItem";var nd=to(({className:e,isActive:t,...r},o)=>{let i=Do(ro);return Me("button",{ref:o,type:"button","aria-current":t?"page":void 0,className:a(Fo({isActive:t,size:i}),e),...r},void 0,!1,void 0,this)});nd.displayName="PaginationLink";var sd=to(({className:e,...t},r)=>{let o=Do(ro);return Me("button",{ref:r,type:"button","aria-label":"Go to previous page",className:a(Fo({size:o}),"gap-1 pl-2.5 pr-3 w-auto",e),...t,children:[Me(Wv,{},void 0,!1,void 0,this),Me("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});sd.displayName="PaginationPrevious";var ld=to(({className:e,...t},r)=>{let o=Do(ro);return Me("button",{ref:r,type:"button","aria-label":"Go to next page",className:a(Fo({size:o}),"gap-1 pl-3 pr-2.5 w-auto",e),...t,children:[Me("span",{children:"Next"},void 0,!1,void 0,this),Me($v,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});ld.displayName="PaginationNext";var md=({className:e,...t})=>{let r=Do(ro);return Me("span",{"aria-hidden":!0,className:a(rd({size:r}),e),...t,children:[Me(Kv,{},void 0,!1,void 0,this),Me("span",{className:"sr-only",children:"More pages"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};md.displayName="PaginationEllipsis";import*as io from"@radix-ui/react-progress";import{cva as dd}from"class-variance-authority";import{forwardRef as Yv}from"react";import{jsxDEV as Oo}from"react/jsx-dev-runtime";var oo={sm:"sm",md:"md",lg:"lg",xl:"xl"},ao={default:"default",success:"success",warning:"warning",error:"error"},pd=dd("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[oo.sm]:"h-1",[oo.md]:"h-2.5",[oo.lg]:"h-4",[oo.xl]:"h-5"}},defaultVariants:{size:oo.md}}),cd=dd("h-full w-full flex-1 rounded-full transition-transform duration-100 ease-out",{variants:{variant:{[ao.default]:"bg-primary",[ao.success]:"bg-success",[ao.warning]:"bg-warning",[ao.error]:"bg-destructive"}},defaultVariants:{variant:ao.default}}),ud=Yv(({className:e,value:t,size:r,variant:o,showValue:i,...n},s)=>{let l=u(r);return Oo("div",{className:"flex w-full items-center gap-2",children:[Oo(io.Root,{ref:s,className:a(pd({size:l}),e),...n,children:Oo(io.Indicator,{className:a(cd({variant:o})),style:{transform:`translateX(-${100-(t||0)}%)`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),i&&Oo("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)});ud.displayName=io.Root.displayName;import*as Nr from"@radix-ui/react-radio-group";import{cva as fd}from"class-variance-authority";import{forwardRef as gd}from"react";import{jsxDEV as _o}from"react/jsx-dev-runtime";var Je={sm:"sm",md:"md",lg:"lg",xl:"xl"},Mr={default:"default",error:"error",success:"success"},vd=fd("grid gap-2"),bd=fd("gs-interactive aspect-square rounded-full border border-input bg-background ring-offset-background enabled:active:scale-[0.94] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-[state=checked]:border-primary data-[state=checked]:text-primary disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{size:{[Je.sm]:"h-4 w-4",[Je.md]:"h-5 w-5",[Je.lg]:"h-6 w-6",[Je.xl]:"h-7 w-7"},status:{[Mr.default]:"enabled:hover:border-primary/70",[Mr.error]:"border-destructive enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:text-destructive",[Mr.success]:"border-success enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:text-success"}},defaultVariants:{size:Je.md,status:Mr.default}}),Xv={[Je.sm]:"h-2 w-2",[Je.md]:"h-2.5 w-2.5",[Je.lg]:"h-3 w-3",[Je.xl]:"h-3.5 w-3.5"},yd=gd(({className:e,...t},r)=>_o(Nr.Root,{ref:r,className:a(vd(),e),...t},void 0,!1,void 0,this));yd.displayName="RadioGroup";var Pd=gd(({className:e,size:t=Je.md,status:r=Mr.default,...o},i)=>{let n=u(t);return _o(Nr.Item,{ref:i,className:a(bd({size:n,status:r}),e),...o,children:_o(Nr.Indicator,{className:"flex items-center justify-center",children:_o("span",{className:a("block rounded-full bg-current transition-transform duration-150",Xv[n])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Pd.displayName="RadioGroupItem";import{cva as $o}from"class-variance-authority";import{forwardRef as Za,useCallback as Go,useRef as qv,useState as Zv}from"react";import{jsxDEV as Wo}from"react/jsx-dev-runtime";var hd=$o("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),Td=$o("relative overflow-hidden"),xd=$o("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}}),Cd=$o("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"}}),Sd=Za(({className:e,direction:t="horizontal",children:r,...o},i)=>Wo("div",{ref:i,"data-panel-group":"","data-direction":t,className:a(hd({direction:t}),e),...o,children:r},void 0,!1,void 0,this));Sd.displayName="ResizablePanelGroup";var zd=Za(({className:e,defaultSize:t=50,children:r,style:o,...i},n)=>Wo("div",{ref:n,"data-panel":"",className:a(Td(),e),style:{...o,flexGrow:0,flexShrink:0,flexBasis:`${t}%`},...i,children:r},void 0,!1,void 0,this));zd.displayName="ResizablePanel";var wd=Za(({className:e,withHandle:t=!1,disabled:r=!1,...o},i)=>{let[n,s]=Zv(!1),l=qv(null),m=Go((c,v)=>{if(r)return;s(!0);let x=(S)=>{let C="touches"in S?S.touches[0]:null,b=C?C.clientX:S.clientX,y=C?C.clientY:S.clientY,k=l.current;if(!k)return;let z=k.closest("[data-panel-group]");if(!z)return;let L=z.dataset.direction,A=z.getBoundingClientRect(),_=Array.from(z.querySelectorAll(":scope > [data-panel]")),X=Array.from(z.children).indexOf(k),O,$;for(let w of _){let I=Array.from(z.children).indexOf(w);if(I<X)O=w;if(I>X&&!$)$=w}if(O&&$){let w=L==="horizontal"?A.width:A.height,T=(L==="horizontal"?b-A.left:y-A.top)/w*100,V=Math.max(10,Math.min(90,T)),J=100-V;O.style.flexBasis=`${V}%`,$.style.flexBasis=`${J}%`}},M=()=>{s(!1),document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",M),document.removeEventListener("touchmove",x),document.removeEventListener("touchend",M)};document.addEventListener("mousemove",x),document.addEventListener("mouseup",M),document.addEventListener("touchmove",x),document.addEventListener("touchend",M)},[r]),d=Go((c)=>{c.preventDefault(),m(c.clientX,c.clientY)},[m]),f=Go((c)=>{let v=c.touches[0];if(v)m(v.clientX,v.clientY)},[m]),p=Go((c)=>{if(r)return;let v=l.current??c.currentTarget,x=v.closest("[data-panel-group]");if(!x)return;let M=x.dataset.direction,S=c.shiftKey?10:1,C=Array.from(x.querySelectorAll(":scope > [data-panel]")),b=Array.from(x.children).indexOf(v),y,k;for(let A of C){let _=Array.from(x.children).indexOf(A);if(_<b)y=A;if(_>b&&!k)k=A}if(!(y&&k))return;let z=Number.parseFloat(y.style.flexBasis)||50,L=0;if(M==="horizontal"){if(c.key==="ArrowLeft")L=-S;if(c.key==="ArrowRight")L=S}else{if(c.key==="ArrowUp")L=-S;if(c.key==="ArrowDown")L=S}if(L!==0){c.preventDefault();let A=Math.max(10,Math.min(90,z+L));y.style.flexBasis=`${A}%`,k.style.flexBasis=`${100-A}%`}},[r]),h="horizontal";return Wo("div",{ref:(c)=>{if(l.current=c,typeof i==="function")i(c);else if(i)i.current=c},role:"separator","aria-orientation":"horizontal",tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":n,onMouseDown:d,onTouchStart:f,onKeyDown:p,className:a(xd({direction:"horizontal",withHandle:t}),n&&"bg-primary",r&&"pointer-events-none opacity-50",e),...o,children:t&&Wo("div",{className:a(Cd({direction:"horizontal"}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});wd.displayName="ResizableHandle";import*as rt from"@radix-ui/react-scroll-area";import{cva as Ja}from"class-variance-authority";import{forwardRef as Md}from"react";import{jsxDEV as Lr}from"react/jsx-dev-runtime";var Nd=Ja("relative overflow-hidden"),Jv={display:"flex",flexDirection:"column"},Qv={flex:"1 1 0%",minHeight:0},Ld=Ja("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"}}),Rd=Ja("relative flex-1 rounded-full bg-border"),Hd=Md(({className:e,children:t,style:r,...o},i)=>Lr(rt.Root,{ref:i,className:a(Nd(),e),style:{...r,...Jv},...o,children:[Lr(rt.Viewport,{className:"w-full rounded-[inherit]",style:Qv,children:t},void 0,!1,void 0,this),Lr(Qa,{},void 0,!1,void 0,this),Lr(rt.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));Hd.displayName="ScrollArea";var Qa=Md(({className:e,orientation:t="vertical",...r},o)=>Lr(rt.ScrollAreaScrollbar,{ref:o,orientation:t,className:a(Ld({orientation:t}),e),...r,children:Lr(rt.ScrollAreaThumb,{className:a(Rd())},void 0,!1,void 0,this)},void 0,!1,void 0,this));Qa.displayName="ScrollBar";import*as wt from"@radix-ui/react-popover";import{cva as Ad}from"class-variance-authority";import{Check as Ev,ChevronDown as jv,X as eb}from"lucide-react";import{Children as tb,createContext as rb,forwardRef as lo,isValidElement as ob,useCallback as Ko,useContext as Id,useEffect as Uo,useId as kd,useMemo as ab,useRef as Vd,useState as no}from"react";import{jsxDEV as ae,Fragment as pb}from"react/jsx-dev-runtime";var Q={sm:"sm",md:"md",lg:"lg",xl:"xl"},Rr={default:"default",error:"error",success:"success"},so={trigger:"trigger",auto:"auto"},ib={start:"start",center:"center",end:"end"},Bd=Ad(["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:{[Q.sm]:"h-8 px-2.5 text-xs",[Q.md]:"h-10 px-3.5",[Q.lg]:"h-11 px-4.5 text-sm",[Q.xl]:"h-12 px-4 text-base"},status:{[Rr.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[Rr.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[Rr.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:Q.md,status:Rr.default}}),Dd=Ad(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[so.trigger]:"w-[var(--radix-popover-trigger-width)]",[so.auto]:"w-max min-w-0"},size:{[Q.sm]:"text-xs",[Q.md]:"text-sm",[Q.lg]:"text-sm",[Q.xl]:"text-base"}},defaultVariants:{widthMode:so.auto,size:Q.md}}),nb={[Q.sm]:"min-h-7 py-1 px-2 pr-3 text-xs",[Q.md]:"min-h-9 py-2 px-3 pr-4.5 text-sm",[Q.lg]:"min-h-10 py-2.5 px-3.5 pr-5.5 text-sm",[Q.xl]:"min-h-11 py-3 px-4 pr-6 text-base"},sb={[Q.sm]:"px-2 py-1 text-xs",[Q.md]:"px-2 py-1.5 text-sm",[Q.lg]:"px-2.5 py-1.5 text-sm",[Q.xl]:"px-3 py-2 text-base"},Yo={[Q.sm]:"size-3.5",[Q.md]:"size-4",[Q.lg]:"size-4",[Q.xl]:"size-4.5"};function Ea(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)=>Ea(t)).join("");if(ob(e))return Ea(e.props.children);return""}var ja=rb(null);function Xo(){let e=Id(ja);if(!e)throw Error("Select components must be used within Select");return e}function ei(e){let t=Id(ja);if(e)return e;return t?.triggerSize??Q.md}var lb=({children:e,value:t,defaultValue:r="",onValueChange:o,open:i,defaultOpen:n=!1,onOpenChange:s,disabled:l=!1})=>{let[m,d]=no(Q.md),[f,p]=no(!1),[h,c]=no(r),[v,x]=no(n),[M,S]=no(0),C=Vd(new Map),b=t!==void 0,y=i!==void 0,k=b?t:h,z=y?i:v,L=Ko((I)=>{if(!b)c(I);if(o?.(I),!y)x(!1);s?.(!1)},[b,y,o,s]),A=Ko((I)=>{if(l)return;if(!y)x(I);s?.(I)},[l,y,s]),_=Ko((I,T)=>{if(C.current.get(I)!==T)C.current.set(I,T),S((J)=>J+1)},[]),X=Ko((I)=>{return C.current.get(I)},[]),O=kd(),$=kd(),w=ab(()=>({value:k,onValueChange:L,open:z,onOpenChange:A,triggerSize:m,setTriggerSize:d,triggerFullWidth:f,setTriggerFullWidth:p,disabled:l,triggerId:O,contentId:$,registerItem:_,getLabel:X}),[k,L,z,A,m,f,l,O,$,_,X,M]);return ae(ja.Provider,{value:w,children:ae(wt.Root,{open:z,onOpenChange:A,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},mb=({children:e,className:t})=>ae("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),db=({placeholder:e})=>{let{value:t,getLabel:r}=Xo();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(pb,{children:o??t},void 0,!1,void 0,this)},Fd=lo(({className:e,children:t,size:r=Q.md,status:o=Rr.default,fullWidth:i=!1,clearable:n=!1,leadingIcon:s,indicatorIcon:l,renderValue:m,placeholder:d,onKeyDown:f,...p},h)=>{let c=Xo(),v=u(r)??r,x=c.setTriggerSize,M=c.setTriggerFullWidth;Uo(()=>{x(v)},[v,x]),Uo(()=>{M(i)},[i,M]);let S=c.value.length>0,C=n&&S&&!c.disabled,b=(z)=>{z.stopPropagation(),z.preventDefault(),c.onValueChange("")},y;if(m)y=S?m(c.value):d?ae("span",{className:"text-muted-foreground",children:d},void 0,!1,void 0,this):null;else y=t;let k=(z)=>{if(f?.(z),z.defaultPrevented)return;if(z.key==="ArrowDown"||z.key==="ArrowUp"||z.key==="Enter"||z.key===" "){if(!c.open)z.preventDefault(),c.onOpenChange(!0)}};return ae(wt.Trigger,{asChild:!0,children:ae("button",{ref:h,type:"button",role:"combobox","aria-expanded":c.open,"aria-haspopup":"listbox","aria-controls":c.contentId,id:c.triggerId,disabled:c.disabled,"data-state":c.open?"open":"closed","data-placeholder":S?void 0:"",className:a(Bd({size:v,status:o}),i?"w-full":"w-auto",e),onKeyDown:k,...p,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:y},void 0,!1,void 0,this),ae("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[C&&ae("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onMouseDown:(z)=>z.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:ae(eb,{className:Yo[v]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??ae(jv,{className:a(Yo[v],"opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]",c.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)});Fd.displayName="SelectTrigger";var Od=lo(({className:e,children:t,widthMode:r,size:o,align:i="start",side:n="bottom",sideOffset:s=4,portal:l=!0,forceMount:m=!0,onKeyDown:d,...f},p)=>{let h=Xo(),c=ei(o),v=r??so.auto,x=Vd(null),M=Xr(p,x),S=(y)=>{let k=x.current;if(!k)return;let z=Array.from(k.querySelectorAll('[role="option"]:not([data-disabled])'));if(z.length===0)return;let L=k.querySelector('[role="option"]:focus'),A=L?z.indexOf(L):-1,_;switch(y){case"first":_=z[0];break;case"last":_=z[z.length-1];break;case"next":_=z[A+1]??z[0];break;case"prev":_=z[A-1]??z[z.length-1];break}_?.focus()},C=(y)=>{if(d?.(y),y.defaultPrevented)return;switch(y.key){case"ArrowDown":y.preventDefault(),S("next");break;case"ArrowUp":y.preventDefault(),S("prev");break;case"Home":y.preventDefault(),S("first");break;case"End":y.preventDefault(),S("last");break;case"Escape":y.preventDefault(),h.onOpenChange(!1);break}};Uo(()=>{if(h.open)requestAnimationFrame(()=>S("first"))},[h.open]);let b=ae(wt.Content,{ref:M,id:h.contentId,role:"listbox","aria-labelledby":h.triggerId,side:n,align:i,sideOffset:s,forceMount:m,onKeyDown:C,onOpenAutoFocus:(y)=>y.preventDefault(),className:a(Cr(),Dd({widthMode:v,size:c}),"p-1",e),...f,children:t},void 0,!1,void 0,this);if(l)return ae(wt.Portal,{children:b},void 0,!1,void 0,this);return b});Od.displayName="SelectContent";var _d=lo(({className:e,size:t,...r},o)=>{let i=ei(t);return ae("div",{ref:o,className:a("font-semibold text-foreground",sb[i],e),...r},void 0,!1,void 0,this)});_d.displayName="SelectLabel";var Gd=lo(({className:e,children:t,value:r,label:o,size:i,disabled:n=!1,...s},l)=>{let m=Xo(),d=ei(i),f=m.value===r,p=m.registerItem,h=Ea(tb.toArray(t)).trim();Uo(()=>{let x=o??(h.length>0?h:r);p(r,x)},[h,r,o,p]);let c=()=>{if(!n)m.onValueChange(r)},v=(x)=>{if(x.key==="Enter"||x.key===" ")x.preventDefault(),c()};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: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",nb[d],f&&"bg-accent/50",e),onClick:c,onKeyDown:v,...s,children:[ae("span",{className:a("flex shrink-0 items-center justify-center",Yo[d]),children:f&&ae(Ev,{className:Yo[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)});Gd.displayName="SelectItem";var Wd=lo(({className:e,...t},r)=>ae("div",{ref:r,className:a("-mx-1 my-1 h-px bg-border",e),...t},void 0,!1,void 0,this));Wd.displayName="SelectSeparator";import{cva as ri}from"class-variance-authority";import{createContext as cb,forwardRef as oi,useCallback as $d,useContext as Yd,useEffect as ti,useLayoutEffect as ub,useRef as Kd,useState as Ud}from"react";import{jsxDEV as Jt}from"react/jsx-dev-runtime";var Ne={sm:"sm",md:"md",lg:"lg"},Xd=ri("relative inline-flex items-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[Ne.sm]:"h-9 gap-0.5",[Ne.md]:"h-10 gap-0.5",[Ne.lg]:"h-11 gap-1"}},defaultVariants:{size:Ne.md}}),qd=ri(["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:{[Ne.sm]:"size-7",[Ne.md]:"size-8",[Ne.lg]:"size-9"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:Ne.md,active:!1}}),Zd=ri(["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:{[Ne.sm]:"h-7 px-3 text-xs",[Ne.md]:"h-8 px-3 text-sm",[Ne.lg]:"h-9 px-4 text-sm"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:Ne.md,active:!1}}),ai=cb({activeValue:"",onSelect:()=>{},size:Ne.md,disabled:!1}),fb=typeof window<"u"?ub:ti,Jd=oi(({className:e,value:t,defaultValue:r,onValueChange:o,size:i,disabled:n=!1,children:s,...l},m)=>{let d=u(i),f=Kd(null),[p,h]=Ud(r??""),[c,v]=Ud(null),x=Kd(!0),M=t!==void 0?t:p,S=$d((b)=>{if(n)return;if(t===void 0)h(b);o?.(b)},[n,t,o]),C=$d(()=>{let b=f.current;if(!b)return;let y=b.querySelector('[data-state="active"]');if(!y){v(null);return}let k=b.getBoundingClientRect(),z=y.getBoundingClientRect();v({left:z.left-k.left,width:z.width})},[]);return fb(()=>{C()},[C,M]),ti(()=>{if(x.current)requestAnimationFrame(()=>{x.current=!1})},[]),ti(()=>{let b=f.current;if(!b)return;let y=new MutationObserver(()=>{C()});return y.observe(b,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>y.disconnect()},[C]),Jt(ai.Provider,{value:{activeValue:M,onSelect:S,size:d,disabled:n},children:Jt("div",{ref:(b)=>{if(f.current=b,typeof m==="function")m(b);else if(m)m.current=b},role:"radiogroup",className:a(Xd({size:d}),n&&"opacity-50 pointer-events-none",e),...l,children:[c&&Jt("span",{"aria-hidden":"true",className:a("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!x.current&&"transition-[left,width] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]"),style:{left:c.left,width:c.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Jd.displayName="SegmentedControl";var Qd=oi(({className:e,value:t,icon:r,disabled:o=!1,...i},n)=>{let{activeValue:s,onSelect:l,size:m,disabled:d}=Yd(ai),f=s===t,p=o||d;return Jt("button",{ref:n,type:"button",role:"radio","aria-checked":f,"aria-disabled":p||void 0,"data-state":f?"active":"inactive","data-value":t,disabled:p,onClick:()=>l(t),className:a(qd({size:m,active:f}),e),...i,children:Jt("span",{className:"size-4 [&>svg]:size-full",children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Qd.displayName="SegmentedControlItem";var Ed=oi(({className:e,value:t,icon:r,disabled:o=!1,children:i,...n},s)=>{let{activeValue:l,onSelect:m,size:d,disabled:f}=Yd(ai),p=l===t,h=o||f;return Jt("button",{ref:s,type:"button",role:"radio","aria-checked":p,"aria-disabled":h||void 0,"data-state":p?"active":"inactive","data-value":t,disabled:h,onClick:()=>m(t),className:a(Zd({size:d,active:p}),e),...n,children:[r&&Jt("span",{className:"size-4 [&>svg]:size-full",children:r},void 0,!1,void 0,this),i]},void 0,!0,void 0,this)});Ed.displayName="SegmentedControlLabelItem";import{cva as gb}from"class-variance-authority";import{forwardRef as vb}from"react";import{jsxDEV as bb}from"react/jsx-dev-runtime";var mo={horizontal:"horizontal",vertical:"vertical"},jd=gb("shrink-0 bg-border",{variants:{orientation:{[mo.horizontal]:"h-px w-full",[mo.vertical]:"h-full w-px"}},defaultVariants:{orientation:mo.horizontal}}),ep=vb(({className:e,orientation:t=mo.horizontal,decorative:r=!0,...o},i)=>{let n=r?{role:"none"}:{role:"separator","aria-orientation":t};return bb("div",{ref:i,className:a(jd({orientation:t}),e),...n,...o},void 0,!1,void 0,this)});ep.displayName="Separator";import{cva as qo}from"class-variance-authority";import{forwardRef as Zo}from"react";import{jsxDEV as Jo}from"react/jsx-dev-runtime";var pe={sm:"sm",md:"md",lg:"lg"},tp=qo("animate-pulse rounded-[var(--radius)] bg-muted"),rp=qo("w-full",{variants:{size:{[pe.sm]:"h-3",[pe.md]:"h-4",[pe.lg]:"h-5"}},defaultVariants:{size:pe.md}}),op=qo("",{variants:{size:{[pe.sm]:"h-8 w-8",[pe.md]:"h-10 w-10",[pe.lg]:"h-12 w-12"}},defaultVariants:{size:pe.md}}),ap=qo("",{variants:{size:{[pe.sm]:"h-8 w-20",[pe.md]:"h-9 w-24",[pe.lg]:"h-10 w-28"}},defaultVariants:{size:pe.md}}),po=Zo(({className:e,circle:t=!1,...r},o)=>Jo("div",{ref:o,className:a(tp(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));po.displayName="Skeleton";var ip=Zo(({className:e,size:t=pe.md,...r},o)=>{let i=u(t)??pe.md;return Jo(po,{ref:o,className:a(rp({size:i}),e),...r},void 0,!1,void 0,this)});ip.displayName="SkeletonText";var np=Zo(({className:e,size:t=pe.md,...r},o)=>{let i=u(t)??pe.md;return Jo(po,{ref:o,circle:!0,className:a(op({size:i}),e),...r},void 0,!1,void 0,this)});np.displayName="SkeletonAvatar";var sp=Zo(({className:e,size:t=pe.md,...r},o)=>{let i=u(t)??pe.md;return Jo(po,{ref:o,className:a(ap({size:i}),e),...r},void 0,!1,void 0,this)});sp.displayName="SkeletonButton";import*as Mt from"@radix-ui/react-slider";import{cva as jo}from"class-variance-authority";import{forwardRef as yb}from"react";import{jsxDEV as Eo}from"react/jsx-dev-runtime";var Qo={sm:"sm",md:"md",lg:"lg"},lp=jo("relative flex w-full touch-none select-none items-center",{variants:{size:{[Qo.sm]:"[&_[data-slider-track]]:h-0.5 [&_[data-slider-thumb]]:h-3 [&_[data-slider-thumb]]:w-3",[Qo.md]:"[&_[data-slider-track]]:h-2 [&_[data-slider-thumb]]:h-5 [&_[data-slider-thumb]]:w-5",[Qo.lg]:"[&_[data-slider-track]]:h-3 [&_[data-slider-thumb]]:h-6 [&_[data-slider-thumb]]:w-6"}},defaultVariants:{size:Qo.md}}),mp=jo("relative w-full grow overflow-hidden rounded-full bg-secondary"),dp=jo("absolute h-full bg-primary"),pp=jo("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"),cp=yb(({className:e,size:t,...r},o)=>{let i=u(t);return Eo(Mt.Root,{ref:o,className:a(lp({size:i}),e),...r,children:[Eo(Mt.Track,{"data-slider-track":!0,className:a(mp()),children:Eo(Mt.Range,{className:a(dp())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((n,s)=>Eo(Mt.Thumb,{"data-slider-thumb":!0,className:a(pp())},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});cp.displayName="Slider";import{cva as ye}from"class-variance-authority";import{forwardRef as Tb,useCallback as Hr,useEffect as ni,useMemo as ea,useRef as fp,useState as ta}from"react";import{createPortal as xb}from"react-dom";import{useCallback as Pb,useEffect as hb,useRef as up}from"react";function ii(e,t,r={}){let{enabled:o=!0,preventDefault:i=!0,stopPropagation:n=!1,target:s="global"}=r,l=up(t);l.current=t;let m=up([]),d=Array.isArray(e)?e:[e];m.current=d.map((p)=>({combo:p,def:Wa(p)}));let f=Pb((p)=>{if(!o)return;for(let{combo:h,def:c}of m.current)if($a(p,c)){if(i)p.preventDefault();if(n)p.stopPropagation();l.current(p,h);return}},[o,i,n]);hb(()=>{if(!o)return;let p=s==="global"?document:s.current;if(!p)return;return p.addEventListener("keydown",f),()=>{p.removeEventListener("keydown",f)}},[o,f,s])}import{jsxDEV as Z}from"react/jsx-dev-runtime";var Qt={sm:"sm",md:"md",lg:"lg",xl:"xl"},kr={idle:"idle",loading:"loading",error:"error"},gp=ye("fixed inset-0 z-[120] bg-black/60 backdrop-blur-sm",{variants:{state:{open:"animate-in fade-in-0",closing:"animate-out fade-out-0"}},defaultVariants:{state:"open"}}),vp=ye(["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"],{variants:{size:{[Qt.sm]:"max-w-md",[Qt.md]:"max-w-xl",[Qt.lg]:"max-w-2xl",[Qt.xl]:"max-w-3xl"},state:{open:"animate-in fade-in-0 slide-in-from-top-4",closing:"animate-out fade-out-0 slide-out-to-top-4"}},defaultVariants:{size:Qt.md,state:"open"}}),bp=ye("flex items-center gap-3 border-b border-border px-4 py-3"),yp=ye(["w-full flex-1 bg-transparent text-foreground text-base","placeholder:text-muted-foreground","outline-none border-none"]),Pp=ye("size-4 text-muted-foreground shrink-0"),ra=ye(["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"]),hp=ye("overflow-y-auto max-h-80 py-1"),Tp=ye("px-3 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wide"),xp=ye(["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}}),Cp=ye("size-4 shrink-0",{variants:{selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{selected:!1}}),Sp=ye("flex-1 min-w-0"),zp=ye("text-sm font-medium truncate"),wp=ye("text-xs text-muted-foreground truncate"),Mp=ye("flex items-center gap-1 text-[11px] text-muted-foreground shrink-0"),oa=ye("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"}}),aa=ye("text-sm font-medium"),Np=ye("text-xs mt-1"),Cb=(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},Lp=Tb(({className:e,open:t,onOpenChange:r,actions:o,onActionSelect:i,value:n,defaultValue:s="",onValueChange:l,placeholder:m="Search commands, pages, or actions...",size:d=Qt.md,status:f=kr.idle,statusMessage:p,emptyText:h="No command found for this query.",hotkey:c,portal:v=!0,...x},M)=>{let S=fp(null),C=fp(null),[b,y]=ta(s),[k,z]=ta(0),[L,A]=ta(!1),[_,X]=ta(!1),{isMac:O}=Jr(),$=Hr((H)=>Zr(H,O),[O]),w=ea(()=>c&&c.length>0?c.join("+"):null,[c]);ii(w??"",()=>r(!t),{enabled:!!w});let I=n!==void 0?n:b,T=ea(()=>o.filter((H)=>Cb(H,I)),[o,I]),V=ea(()=>T.map((H,j)=>!H.disabled?j:-1).filter((H)=>H>=0),[T]),J=ea(()=>{let H=new Map,j=new Map,ie=0;for(let Le of T){let It=Le.group??"";if(!H.has(It))H.set(It,[]);H.get(It).push(Le),j.set(Le,ie),ie++}return{groups:H,indexMap:j}},[T]);ni(()=>{if(t){A(!0),X(!1),z(0);return}if(L)X(!0)},[t]);let R=Hr(()=>{if(_)A(!1),X(!1)},[_]);ni(()=>{if(t)document.body.style.overflow="hidden";else document.body.style.overflow="";return()=>{document.body.style.overflow=""}},[t]),ni(()=>{if(t&&L)requestAnimationFrame(()=>S.current?.focus())},[t,L]);let U=Hr((H)=>{let j=H.target.value;y(j),l?.(j),z(0)},[l]),g=Hr((H)=>{let j=C.current;if(!j)return;j.querySelectorAll('[role="option"]')[H]?.scrollIntoView({block:"nearest"})},[]),P=Hr((H)=>{if(H.key==="Escape"){H.preventDefault(),r(!1);return}if(H.key==="ArrowDown"){if(H.preventDefault(),V.length===0)return;let ie=(V.indexOf(k)+1)%V.length,Le=V[ie];z(Le),g(Le);return}if(H.key==="ArrowUp"){if(H.preventDefault(),V.length===0)return;let ie=(V.indexOf(k)-1+V.length)%V.length,Le=V[ie];z(Le),g(Le);return}if(H.key==="Enter"){H.preventDefault();let j=T[k];if(j&&!j.disabled)i(j,k)}},[k,V,T,i,r,g]),N=Hr((H,j)=>{if(H.disabled)return;i(H,j)},[i]);if(!L)return null;let ce=_?"closing":"open",q=f===kr.idle,Ae=f!==kr.idle,E=Z("div",{ref:M,role:"dialog","aria-modal":"true",onKeyDown:P,className:a(e),...x,children:[Z("div",{"data-testid":"spotlight-overlay",className:a(gp({state:ce})),onClick:()=>r(!1),onKeyDown:(H)=>{if(H.key==="Escape")r(!1)}},void 0,!1,void 0,this),Z("div",{className:a(vp({size:d,state:ce})),onAnimationEnd:R,children:[Z("div",{className:a(bp()),children:[Z("svg",{className:a(Pp()),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Z("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),Z("input",{ref:S,type:"text",value:I,onChange:U,placeholder:m,className:a(yp())},void 0,!1,void 0,this),c?Z("div",{className:"flex items-center gap-1",children:c.map((H)=>Z("kbd",{className:a(ra()),children:$(H)},H,!1,void 0,this))},void 0,!1,void 0,this):Z("kbd",{className:a(ra()),children:"ESC"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ae&&f===kr.loading&&Z("div",{className:a(oa({state:"loading"})),children:Z("div",{className:a(aa()),children:"Searching commands..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ae&&f===kr.error&&Z("div",{className:a(oa({state:"error"})),children:[Z("div",{className:a(aa()),children:"Search failed"},void 0,!1,void 0,this),p&&Z("div",{className:a(Np()),children:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&T.length===0&&Z("div",{className:a(oa({state:"empty"})),children:Z("div",{className:a(aa()),children:h},void 0,!1,void 0,this)},void 0,!1,void 0,this),q&&T.length>0&&Z("div",{ref:C,className:a(hp()),children:Array.from(J.groups.entries()).map(([H,j])=>Z("div",{children:[H&&Z("div",{className:a(Tp()),children:H},void 0,!1,void 0,this),j.map((ie)=>{let Le=J.indexMap.get(ie)??0,It=Le===k;return Z("div",{role:"option","aria-selected":It,"aria-disabled":ie.disabled??!1,onClick:()=>N(ie,Le),className:a(xp({selected:It,disabled:ie.disabled??!1})),children:[ie.icon&&Z("span",{className:a(Cp({selected:It})),children:ie.icon},void 0,!1,void 0,this),Z("div",{className:a(Sp()),children:[Z("div",{className:a(zp()),children:ie.title},void 0,!1,void 0,this),ie.description&&Z("div",{className:a(wp()),children:ie.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ie.shortcut&&ie.shortcut.length>0&&Z("div",{className:a(Mp()),children:ie.shortcut.map((zi)=>Z("kbd",{className:a(ra()),children:$(zi)},zi,!1,void 0,this))},void 0,!1,void 0,this)]},ie.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(v)return xb(E,document.body);return E});Lp.displayName="Spotlight";import{cva as Sb}from"class-variance-authority";import{forwardRef as zb}from"react";import{jsxDEV as Nt}from"react/jsx-dev-runtime";var _e={sm:"sm",md:"md",lg:"lg"},Et={up:"up",down:"down",neutral:"neutral"},Rp=Sb("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:{[_e.sm]:"gap-1 p-3",[_e.md]:"gap-1.5 p-4",[_e.lg]:"gap-2 p-5"}},defaultVariants:{size:_e.md}}),wb={[_e.sm]:"text-lg font-semibold",[_e.md]:"text-2xl font-bold",[_e.lg]:"text-3xl font-bold"},Mb={[_e.sm]:"text-xs",[_e.md]:"text-sm",[_e.lg]:"text-base"},Nb={[Et.up]:"text-success",[Et.down]:"text-destructive",[Et.neutral]:"text-muted-foreground"},Lb={[Et.up]:"↑",[Et.down]:"↓",[Et.neutral]:"→"},Hp=zb(({className:e,size:t=_e.md,label:r,value:o,trend:i,trendValue:n,icon:s,...l},m)=>{let d=u(t);return Nt("div",{ref:m,className:a(Rp({size:d}),e),...l,children:[Nt("div",{className:"flex items-center justify-between",children:[Nt("span",{className:a("text-muted-foreground",Mb[d]),children:r},void 0,!1,void 0,this),s&&Nt("span",{className:"text-muted-foreground/70","aria-hidden":"true",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Nt("div",{className:"flex items-baseline gap-2",children:[Nt("span",{className:a("tracking-tight text-foreground",wb[d]),children:o},void 0,!1,void 0,this),i&&n&&Nt("span",{className:a("inline-flex items-center gap-0.5 text-xs font-medium",Nb[i]),children:[Nt("span",{"aria-hidden":"true",children:Lb[i]},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)});Hp.displayName="StatCard";import{cva as jt}from"class-variance-authority";import{Check as Rb}from"lucide-react";import{forwardRef as er}from"react";import{jsxDEV as Lt}from"react/jsx-dev-runtime";var kp=jt("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),Ap=jt("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),Ip=jt(["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}}),Vp=jt("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}}),Bp=jt("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),Dp=jt("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"}}),Fp=jt("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 Op=er(({className:e,orientation:t="horizontal",activeStep:r,...o},i)=>{return Lt("div",{ref:i,role:"group","aria-label":"Progress steps",className:a(kp({orientation:t}),e),"data-orientation":t,"data-active-step":r,...o},void 0,!1,void 0,this)});Op.displayName="Stepper";var _p=er(({className:e,orientation:t="horizontal",isLast:r,isCurrent:o,...i},n)=>{return Lt("div",{ref:n,className:a(Ap({orientation:t}),e),"data-last":r,"aria-current":o?"step":void 0,...i},void 0,!1,void 0,this)});_p.displayName="Step";var Gp=er(({className:e,status:t="incomplete",size:r="md",icon:o,step:i,children:n,animated:s=!0,...l},m)=>{let d=u(r);return Lt("div",{ref:m,className:a(Ip({status:t,size:d,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?o||Lt(Rb,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):n||i},void 0,!1,void 0,this)});Gp.displayName="StepIndicator";var Wp=er(({className:e,orientation:t="horizontal",status:r="incomplete",size:o="md",animated:i=!0,...n},s)=>{let l=u(o);return Lt("div",{ref:s,className:a(Vp({orientation:t,status:r,size:l,animated:i}),e),"data-status":r,...n},void 0,!1,void 0,this)});Wp.displayName="StepConnector";var $p=er(({className:e,orientation:t="horizontal",...r},o)=>{return Lt("div",{ref:o,className:a(Bp({orientation:t}),e),...r},void 0,!1,void 0,this)});$p.displayName="StepContent";var Kp=er(({className:e,status:t="incomplete",size:r="md",...o},i)=>{let n=u(r);return Lt("h4",{ref:i,className:a(Dp({status:t,size:n}),e),...o},void 0,!1,void 0,this)});Kp.displayName="StepTitle";var Up=er(({className:e,size:t="md",...r},o)=>{let i=u(t);return Lt("p",{ref:o,className:a(Fp({size:i}),e),...r},void 0,!1,void 0,this)});Up.displayName="StepDescription";import*as ia from"@radix-ui/react-switch";import{cva as Hb}from"class-variance-authority";import{forwardRef as kb}from"react";import{jsxDEV as Yp}from"react/jsx-dev-runtime";var ze={sm:"sm",md:"md",lg:"lg",xl:"xl"},Ar={default:"default",error:"error",success:"success"},Xp=Hb("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:{[ze.sm]:"h-4.5 w-8",[ze.md]:"h-5 w-9",[ze.lg]:"h-6 w-11",[ze.xl]:"h-7 w-[3.25rem]"},status:{[Ar.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",[Ar.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",[Ar.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:ze.md,status:Ar.default}}),Ab={[ze.sm]:"h-3.5 w-3.5",[ze.md]:"h-4 w-4",[ze.lg]:"h-5 w-5",[ze.xl]:"h-6 w-6"},Ib={[ze.sm]:"data-[state=checked]:translate-x-3.5",[ze.md]:"data-[state=checked]:translate-x-4",[ze.lg]:"data-[state=checked]:translate-x-5",[ze.xl]:"data-[state=checked]:translate-x-6"},qp=kb(({className:e,size:t=ze.md,status:r=Ar.default,checked:o,disabled:i,...n},s)=>{let l=u(t);return Yp(ia.Root,{ref:s,checked:o,disabled:i,className:a(Xp({size:l,status:r}),e),...n,children:Yp(ia.Thumb,{className:a("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",Ab[l],Ib[l])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});qp.displayName="Switch";import{cva as ct}from"class-variance-authority";import{createContext as Vb,forwardRef as Rt,useContext as Zp}from"react";import{jsxDEV as ot}from"react/jsx-dev-runtime";var Te={sm:"sm",md:"md",lg:"lg"},si=Vb(Te.md),Jp=ct("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),Qp=ct("w-full caption-bottom",{variants:{size:{[Te.sm]:"text-xs",[Te.md]:"text-sm",[Te.lg]:"text-sm"}},defaultVariants:{size:Te.md}}),Ep=ct("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),jp=ct("[&_tr:last-child]:border-0"),ec=ct("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),tc=ct("gs-interactive border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),rc=ct("text-left align-middle font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[Te.sm]:"h-8 px-2",[Te.md]:"h-10 px-3",[Te.lg]:"h-12 px-4"}},defaultVariants:{size:Te.md}}),oc=ct("align-middle text-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[Te.sm]:"p-2",[Te.md]:"p-3",[Te.lg]:"p-4"}},defaultVariants:{size:Te.md}}),ac=ct("mt-4 text-sm text-muted-foreground"),ic=Rt(({className:e,containerClassName:t,size:r=Te.md,...o},i)=>{let n=u(r)??Te.md;return ot(si.Provider,{value:n,children:ot("div",{className:a(Jp(),t),children:ot("table",{ref:i,className:a(Qp({size:n}),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ic.displayName="Table";var nc=Rt(({className:e,...t},r)=>ot("thead",{ref:r,className:a(Ep(),e),...t},void 0,!1,void 0,this));nc.displayName="TableHeader";var sc=Rt(({className:e,...t},r)=>ot("tbody",{ref:r,className:a(jp(),e),...t},void 0,!1,void 0,this));sc.displayName="TableBody";var lc=Rt(({className:e,...t},r)=>ot("tfoot",{ref:r,className:a(ec(),e),...t},void 0,!1,void 0,this));lc.displayName="TableFooter";var mc=Rt(({className:e,...t},r)=>ot("tr",{ref:r,className:a(tc(),e),...t},void 0,!1,void 0,this));mc.displayName="TableRow";var dc=Rt(({className:e,size:t,...r},o)=>{let i=Zp(si);return ot("th",{ref:o,className:a(rc({size:t??i}),e),...r},void 0,!1,void 0,this)});dc.displayName="TableHead";var pc=Rt(({className:e,size:t,...r},o)=>{let i=Zp(si);return ot("td",{ref:o,className:a(oc({size:t??i}),e),...r},void 0,!1,void 0,this)});pc.displayName="TableCell";var cc=Rt(({className:e,...t},r)=>ot("caption",{ref:r,className:a(ac(),e),...t},void 0,!1,void 0,this));cc.displayName="TableCaption";import*as Qe from"@radix-ui/react-tabs";import{cva as li}from"class-variance-authority";import{createContext as Bb,forwardRef as mi,useCallback as uc,useContext as Db,useEffect as di,useLayoutEffect as Fb,useRef as na,useState as Ob}from"react";import{jsxDEV as co}from"react/jsx-dev-runtime";var at={sm:"sm",md:"md",lg:"lg",xl:"xl"},fc=li("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[at.sm]:"h-9 gap-0.5",[at.md]:"h-11 gap-1",[at.lg]:"h-12 gap-1",[at.xl]:"h-14 gap-1.5"}},defaultVariants:{size:at.md}}),gc=li("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:{[at.sm]:"px-2.5 py-1 text-xs",[at.md]:"px-3 py-1.5 text-sm",[at.lg]:"px-4 py-2 text-sm",[at.xl]:"px-5 py-2.5 text-base"}},defaultVariants:{size:at.md}}),vc=li("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),bc=Bb({registerTrigger:()=>{}}),_b=typeof window<"u"?Fb:di,Gb=Qe.Root,yc=mi(({className:e,size:t,children:r,...o},i)=>{let n=u(t),s=na(null),l=na(new Map),[m,d]=Ob(null),f=na(!0),p=uc((c,v)=>{if(v)l.current.set(c,v);else l.current.delete(c)},[]),h=uc(()=>{let c=s.current;if(!c)return;let v=c.querySelector('[data-state="active"]');if(!v){d(null);return}let x=c.getBoundingClientRect(),M=v.getBoundingClientRect();d({left:M.left-x.left,width:M.width})},[]);return _b(()=>{h()},[h]),di(()=>{let c=s.current;if(!c)return;let v=new MutationObserver(()=>{f.current=!1,h()});return v.observe(c,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>v.disconnect()},[h]),co(bc.Provider,{value:{registerTrigger:p},children:co(Qe.List,{ref:(c)=>{if(s.current=c,typeof i==="function")i(c);else if(i)i.current=c},className:a(fc({size:n}),e),...o,children:[m&&co("span",{"aria-hidden":"true",className:a("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!f.current&&"transition-[left,width] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]"),style:{left: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)});yc.displayName=Qe.List.displayName;var Pc=mi(({className:e,size:t,value:r,...o},i)=>{let n=u(t),{registerTrigger:s}=Db(bc),l=na(null);return di(()=>{return s(r,l.current),()=>s(r,null)},[r,s]),co(Qe.Trigger,{ref:(m)=>{if(l.current=m,typeof i==="function")i(m);else if(i)i.current=m},value:r,className:a(gc({size:n}),e),...o},void 0,!1,void 0,this)});Pc.displayName=Qe.Trigger.displayName;var hc=mi(({className:e,...t},r)=>co(Qe.Content,{ref:r,className:a(vc(),e),...t},void 0,!1,void 0,this));hc.displayName=Qe.Content.displayName;import{cva as Wb}from"class-variance-authority";import{forwardRef as $b}from"react";import{jsxDEV as Kb}from"react/jsx-dev-runtime";var uo={default:"default",error:"error",success:"success"},Ir={sm:"sm",md:"md",lg:"lg",xl:"xl"},Tc=Wb("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:{[uo.default]:"focus-visible:ring-primary",[uo.error]:"border-destructive focus-visible:ring-destructive",[uo.success]:"border-success focus-visible:ring-success"},size:{[Ir.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[Ir.md]:"min-h-[96px] px-3 py-2",[Ir.lg]:"min-h-[112px] px-4 py-2.5",[Ir.xl]:"min-h-[128px] px-4 py-3 text-base"}},defaultVariants:{status:uo.default,size:Ir.md}}),xc=$b(({className:e,status:t=uo.default,size:r=Ir.md,fullWidth:o=!1,noResize:i=!1,disabled:n,...s},l)=>{let m=u(r);return Kb("textarea",{ref:l,className:a(Tc({status:t,size:m}),n&&"bg-muted",o&&"w-full",i&&"resize-none",e),disabled:n,...s},void 0,!1,void 0,this)});xc.displayName="Textarea";import{cva as Ht}from"class-variance-authority";import{forwardRef as kt}from"react";import{jsxDEV as it}from"react/jsx-dev-runtime";var Cc=Ht("relative flex flex-col"),Sc=Ht(["group relative flex pb-8 last:pb-0","transition-opacity duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]"],{variants:{align:{left:"flex-row gap-4",right:"flex-row-reverse gap-4"},animated:{true:"gs-timeline-item-animated",false:""}},defaultVariants:{align:"left",animated:!0}}),zc=Ht(["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}}),wc=Ht(["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}}),Mc=Ht("flex flex-col gap-1 pt-0.5 min-w-0 transition-opacity duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]"),Nc=Ht("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"}}),Lc=Ht("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"}}),Rc=Ht("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 Hc=kt(({className:e,...t},r)=>{return it("div",{ref:r,role:"list","aria-label":"Timeline events",className:a(Cc(),e),...t},void 0,!1,void 0,this)});Hc.displayName="Timeline";var kc=kt(({className:e,align:t,isLast:r,animated:o=!0,...i},n)=>{return it("div",{ref:n,role:"listitem",className:a(Sc({align:t,animated:o}),e),"data-last":r,...i},void 0,!1,void 0,this)});kc.displayName="TimelineItem";var Ac=kt(({className:e,variant:t,size:r,animated:o=!0,...i},n)=>{let s=u(r);return it("div",{ref:n,className:a(zc({variant:t,size:s,animated:o}),e),...i},void 0,!1,void 0,this)});Ac.displayName="TimelineConnector";var Ic=kt(({className:e,variant:t,size:r,icon:o,children:i,pulse:n=!1,animated:s=!0,...l},m)=>{let d=u(r);return it("div",{ref:m,className:a(wc({variant:t,size:d,pulse:n,animated:s}),e),"aria-hidden":"true",...l,children:o||i||it(Ub,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ic.displayName="TimelineDot";var Vc=kt(({className:e,...t},r)=>{return it("div",{ref:r,className:a(Mc(),e),...t},void 0,!1,void 0,this)});Vc.displayName="TimelineContent";var Bc=kt(({className:e,size:t,...r},o)=>{let i=u(t);return it("h4",{ref:o,className:a(Nc({size:i}),e),...r},void 0,!1,void 0,this)});Bc.displayName="TimelineTitle";var Dc=kt(({className:e,size:t,...r},o)=>{let i=u(t);return it("p",{ref:o,className:a(Lc({size:i}),e),...r},void 0,!1,void 0,this)});Dc.displayName="TimelineDescription";var Fc=kt(({className:e,size:t,...r},o)=>{let i=u(t);return it("time",{ref:o,className:a(Rc({size:i}),e),...r},void 0,!1,void 0,this)});Fc.displayName="TimelineTime";function Ub(){return it("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as Oc}from"class-variance-authority";var Vr={default:"default",success:"success",info:"info",warning:"warning",error:"error"},Ge={sm:"sm",md:"md",lg:"lg"},pi=Oc("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[Vr.default]:"border-border bg-card text-card-foreground",[Vr.success]:"border-success/30 bg-card text-card-foreground",[Vr.info]:"border-info/30 bg-card text-card-foreground",[Vr.warning]:"border-warning/30 bg-card text-card-foreground",[Vr.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[Ge.sm]:"gap-2 p-3",[Ge.md]:"gap-3 p-4",[Ge.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:Vr.default,size:Ge.md}}),ci=Oc("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:{[Ge.sm]:"h-6 px-2 text-xs",[Ge.md]:"h-7 px-2.5 text-xs",[Ge.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:Ge.md}});import{AlertTriangle as ey,CheckCircle2 as ty,Info as Kc,X as ry,XCircle as oy}from"lucide-react";import{forwardRef as ay,useCallback as ma,useEffect as da,useRef as bi,useState as yi}from"react";import{useSyncExternalStore as Yb}from"react";var Xb=5,Gc=5000,qb=500,ui=0;function Zb(){return ui=(ui+1)%Number.MAX_SAFE_INTEGER,`toast-${ui}-${Date.now()}`}var fi=new Set,We=[],rr=new Map,go=new Map,vo=!1,tr=new Map;function sa(){for(let e of fi)e()}function _c(){return We}function Jb(e){return fi.add(e),()=>{fi.delete(e)}}function gi(e,t){if(vo){tr.set(e,t);return}clearTimeout(rr.get(e));let r=Date.now(),o=setTimeout(()=>{rr.delete(e),tr.delete(e),la(e)},t);rr.set(e,o),tr.set(e,t);let i=setInterval(()=>{let n=Date.now()-r,s=t-n;if(s<=0)clearInterval(i),tr.delete(e);else tr.set(e,s)},100)}function Qb(e){clearTimeout(go.get(e));let t=setTimeout(()=>{We=We.filter((r)=>r.id!==e),go.delete(e),sa()},qb);go.set(e,t)}function fo(e){let t=e.id??Zb(),r=e.duration??Gc;if(We.find((n)=>n.id===t))return We=We.map((n)=>n.id===t?{...n,...e,id:t,open:!0,createdAt:Date.now()}:n),clearTimeout(go.get(t)),go.delete(t),gi(t,r),sa(),t;return We=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...We].slice(0,Xb),gi(t,r),sa(),t}function la(e){clearTimeout(rr.get(e)),rr.delete(e),tr.delete(e),We=We.map((t)=>t.id===e?{...t,open:!1}:t),sa(),Qb(e)}function Wc(){for(let e of We)la(e.id)}function Eb(){if(vo)return;vo=!0;for(let[e,t]of rr)clearTimeout(t),rr.delete(e)}function jb(){if(!vo)return;vo=!1;for(let e of We)if(e.open){let t=tr.get(e.id)??Gc;gi(e.id,t)}}var $c=Object.assign((e)=>fo(e),{success:(e,t)=>fo({...t,variant:"success",title:e}),info:(e,t)=>fo({...t,variant:"info",title:e}),warning:(e,t)=>fo({...t,variant:"warning",title:e}),error:(e,t)=>fo({...t,variant:"error",title:e}),dismiss:la,dismissAll:Wc});function vi(){return{toasts:Yb(Jb,_c,_c),toast:$c,dismiss:la,dismissAll:Wc,pauseAll:Eb,resumeAll:jb}}import{jsxDEV as we}from"react/jsx-dev-runtime";var Yc=10,Uc=0.05,iy=200,Xc="cubic-bezier(0.2, 0.8, 0.2, 1)",ny="cubic-bezier(0.22, 1, 0.36, 1)",sy={"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"},ly={success:(e)=>we(ty,{className:a("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>we(Kc,{className:a("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>we(ey,{className:a("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>we(oy,{className:a("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>we(Kc,{className:a("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function my(e,t,r,o,i){let n=e<o,s=r?i:e*Yc,l=r?1:n?1-e*Uc:1-o*Uc,m=n||r?1:0,d=t-e;return{offset:s,scale:l,opacity:m,zIndex:d}}var qc=ay(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:o=Ge.md,className:i,...n},s)=>{let{toasts:l,dismiss:m,pauseAll:d,resumeAll:f}=vi(),p=u(o)??Ge.md,[h,c]=yi(!1),[v,x]=yi({}),M=bi(null),S=bi(void 0),C=e.startsWith("bottom"),b=ma((T)=>{if(M.current=T,typeof s==="function")s(T);else if(s)s.current=T},[s]),y=ma(()=>{clearTimeout(S.current),c(!0),d()},[d]),k=ma(()=>{clearTimeout(S.current),S.current=setTimeout(()=>{c(!1),f()},iy)},[f]);da(()=>{return()=>clearTimeout(S.current)},[]);let z=ma((T,V)=>{x((J)=>{if(J[T]===V)return J;return{...J,[T]:V}})},[]);if(da(()=>{let T=new Set(l.map((V)=>V.id));x((V)=>{let J=!1,R={};for(let[U,g]of Object.entries(V))if(T.has(U))R[U]=g;else J=!0;return J?R:V})},[l]),l.length===0)return null;let L=l.filter((T)=>T.open),A=new Map,_=0;for(let[T,V]of L.entries()){let J=v[V.id]??0;A.set(V.id,my(T,L.length,h,r,_)),_+=J+t}let X=L[0],$=(X?v[X.id]??0:0)+Math.min(L.length-1,r-1)*Yc,w=_-(L.length>0?t:0),I=h?w:$;return we("ol",{ref:b,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:y,onMouseLeave:k,className:a("pointer-events-auto fixed z-[100] w-full max-w-[400px] outline-none",sy[e],i),style:{height:Math.max(I,0),transition:`height 400ms ${Xc}`},...n,children:l.map((T)=>{let V=!T.open,J=A.get(T.id);return we(dy,{toast:T,layout:J??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:V,isBottom:C,size:p,onDismiss:m,onMeasure:z},T.id,!1,void 0,this)})},void 0,!1,void 0,this)});qc.displayName="Toaster";function dy({toast:e,layout:t,isClosed:r,isBottom:o,size:i,onDismiss:n,onMeasure:s}){let l=bi(null),[m,d]=yi(!1);da(()=>{let v=requestAnimationFrame(()=>d(!0));return()=>cancelAnimationFrame(v)},[]),da(()=>{let v=l.current;if(!v)return;let x=new ResizeObserver((M)=>{for(let S of M){let C=S.borderBoxSize?.[0];if(C)s(e.id,C.blockSize)}});return x.observe(v),()=>x.disconnect()},[e.id,s]);let f=o?{bottom:0,left:0,right:0}:{top:0,left:0,right:0},p,h,c;if(!m)p=`translateY(${o?80:-80}px) scale(0.9)`,h=0,c="none";else if(r)p=`translateY(${o?80:-80}px) scale(0.95)`,h=0,c="none";else p=`translateY(${o?-t.offset:t.offset}px) scale(${t.scale})`,h=t.opacity,c="auto";return we("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:p,opacity:h,pointerEvents:c,transition:[`transform 400ms ${Xc}`,`opacity 250ms ${ny}`].join(", ")},children:we("div",{className:a(pi({variant:e.variant,size:i}),"w-full"),children:[ly[e.variant]?.(i),we("div",{className:"flex-1 space-y-0.5",children:[e.title&&we("p",{className:a("font-semibold leading-tight",i==="sm"?"text-xs":"text-sm"),children:e.title},void 0,!1,void 0,this),e.description&&we("p",{className:a("leading-snug text-muted-foreground",i==="sm"?"text-xs":"text-sm"),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.action&&we("button",{type:"button",className:a(ci({size:i}),"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&&we("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",i==="sm"?"[&>svg]:size-3.5":"[&>svg]:size-4"),onClick:()=>n(e.id),"aria-label":"Dismiss",children:we(ry,{},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 Zc from"@radix-ui/react-toggle";import{cva as py}from"class-variance-authority";import{forwardRef as cy}from"react";import{jsxDEV as uy}from"react/jsx-dev-runtime";var Pi={default:"default",outline:"outline"},pa={sm:"sm",md:"md",lg:"lg"},ca=py("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:{[Pi.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[Pi.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[pa.sm]:"h-7 px-1.5 min-w-7 text-xs",[pa.md]:"h-10 px-3 min-w-10",[pa.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:Pi.default,size:pa.md}}),Jc=cy(({className:e,variant:t,size:r,...o},i)=>{let n=u(r);return uy(Zc.Root,{ref:i,className:a(ca({variant:t,size:n}),e),...o},void 0,!1,void 0,this)});Jc.displayName="Toggle";import*as ua from"@radix-ui/react-toggle-group";import{cva as fy}from"class-variance-authority";import{createContext as gy,forwardRef as Qc,useContext as vy}from"react";import{jsxDEV as hi}from"react/jsx-dev-runtime";var by={default:"default",outline:"outline"},yy={sm:"sm",md:"md",lg:"lg"},Ec=fy("flex items-center justify-center gap-1"),jc=gy({size:yy.md,variant:by.default}),eu=Qc(({className:e,variant:t,size:r,children:o,...i},n)=>{let s=u(r);return hi(ua.Root,{ref:n,className:a(Ec(),e),...i,children:hi(jc.Provider,{value:{variant:t,size:s},children:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)});eu.displayName="ToggleGroup";var tu=Qc(({className:e,children:t,variant:r,size:o,...i},n)=>{let s=vy(jc),l=u(o);return hi(ua.Item,{ref:n,className:a(ca({variant:r??s.variant,size:l??s.size}),e),...i,children:t},void 0,!1,void 0,this)});tu.displayName="ToggleGroupItem";import{cva as ru}from"class-variance-authority";import{forwardRef as fa}from"react";import{jsxDEV as ga}from"react/jsx-dev-runtime";var Ee={sm:"sm",md:"md",lg:"lg"},ou=ru("flex items-center border-b border-border bg-background",{variants:{size:{[Ee.sm]:"gap-1.5 px-3 py-1.5",[Ee.md]:"gap-2 px-4 py-2",[Ee.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:Ee.md}}),au=fa(({className:e,size:t=Ee.md,...r},o)=>{let i=u(t);return ga("div",{ref:o,role:"toolbar",className:a(ou({size:i}),e),...r},void 0,!1,void 0,this)});au.displayName="Toolbar";var iu=ru("flex items-center",{variants:{size:{[Ee.sm]:"gap-1",[Ee.md]:"gap-1.5",[Ee.lg]:"gap-2"}},defaultVariants:{size:Ee.md}}),nu=fa(({className:e,size:t=Ee.md,...r},o)=>{let i=u(t);return ga("div",{ref:o,role:"group",className:a(iu({size:i}),e),...r},void 0,!1,void 0,this)});nu.displayName="ToolbarGroup";var su=fa(({className:e,...t},r)=>{return ga("div",{ref:r,role:"none",className:a("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});su.displayName="ToolbarSeparator";var lu=fa(({className:e,...t},r)=>{return ga("div",{ref:r,className:a("flex-1",e),...t},void 0,!1,void 0,this)});lu.displayName="ToolbarSpacer";import*as nt from"@radix-ui/react-tooltip";import{cva as Py}from"class-variance-authority";import{createContext as hy,forwardRef as mu,useContext as du}from"react";import{jsxDEV as bo}from"react/jsx-dev-runtime";var Ty=nt.Provider,Ti=hy(!1),pu=({persistOnClick:e=!1,children:t,...r})=>bo(Ti.Provider,{value:e,children:bo(nt.Root,{...r,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this);pu.displayName="Tooltip";var cu=mu(({onClick:e,onPointerDown:t,...r},o)=>{let i=du(Ti);return bo(nt.Trigger,{ref:o,onClick:i?(n)=>{n.preventDefault(),e?.(n)}:e,onPointerDown:i?(n)=>{n.preventDefault(),t?.(n)}:t,...r},void 0,!1,void 0,this)});cu.displayName="TooltipTrigger";var Br={sm:"sm",md:"md",lg:"lg"},uu=Py("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:{[Br.sm]:"px-2 py-1 text-[10px]",[Br.md]:"px-3 py-1.5 text-xs",[Br.lg]:"px-4 py-2 text-sm"}},defaultVariants:{size:Br.md}}),fu=mu(({className:e,sideOffset:t=4,onPointerDownOutside:r,size:o=Br.md,...i},n)=>{let s=du(Ti),l=u(o);return bo(nt.Portal,{children:bo(nt.Content,{ref:n,sideOffset:t,className:a(uu({size:l}),e),onPointerDownOutside:s?(m)=>{m.preventDefault(),r?.(m)}:r,...i},void 0,!1,void 0,this)},void 0,!1,void 0,this)});fu.displayName="TooltipContent";import*as At from"react";var xy=()=>{};function Cy({prop:e,defaultProp:t,onChange:r=xy}){let[o,i]=Sy({defaultProp:t,onChange:r}),n=e!==void 0,s=n?e:o,l=At.useCallback((m)=>{if(n){let f=typeof m==="function"?m(e):m;if(f!==e)r(f)}else i(m)},[n,e,i,r]);return[s,l]}function Sy({defaultProp:e,onChange:t}){let r=At.useState(e),[o]=r,i=At.useRef(o),n=t;return At.useEffect(()=>{if(i.current!==o)n?.(o),i.current=o},[o,n]),r}import{createContext as zy,useCallback as xi,useContext as wy,useEffect as yu,useLayoutEffect as My,useMemo as Ny,useRef as Ly,useState as Ci}from"react";import{jsxDEV as By}from"react/jsx-dev-runtime";var Ry=typeof window<"u"?My:yu,Dr={light:"light",dark:"dark",system:"system"},Hy="data-gs-theme",va="dark",gu="gs-theme-transitioning",ky="gs-theme",Ay="gs-color-scheme";function Pu(){if(typeof window>"u")return"light";return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Si(e){if(e===Dr.system)return Pu();return e}function Iy(e,t,r,o,i){let n=Si(r);if(o)e.classList.add(gu);if(e.setAttribute(Hy,t),n==="dark")e.classList.add(va);else e.classList.remove(va);if(o)setTimeout(()=>e.classList.remove(gu),i)}function vu(e){try{return localStorage.getItem(e)}catch{return null}}function bu(e,t){try{localStorage.setItem(e,t)}catch{}}var hu=zy(null),Tu=({children:e,defaultTheme:t="ghostly-solutions",defaultColorScheme:r=Dr.system,enableTransition:o=!1,transitionDuration:i=300,storageKey:n})=>{let s=n!==!1,l=typeof n==="string"?n:ky,m=typeof n==="string"?`${n}-color-scheme`:Ay,[d,f]=Ci(()=>{if(s){let y=vu(l);if(y)return y}return t}),[p,h]=Ci(()=>{if(s){let y=vu(m);if(y==="light"||y==="dark"||y==="system")return y}return r}),[c,v]=Ci(()=>Si(p)),x=Ly(!0);Ry(()=>{let y=document.documentElement,k=!x.current&&o;x.current=!1,Iy(y,d,p,k,i),v(Si(p))},[d,p,o,i]),yu(()=>{if(p!==Dr.system)return;let y=window.matchMedia("(prefers-color-scheme: dark)"),k=()=>{let z=Pu();v(z);let L=document.documentElement;if(z==="dark")L.classList.add(va);else L.classList.remove(va)};return y.addEventListener("change",k),()=>y.removeEventListener("change",k)},[p]);let M=xi((y)=>{if(f(y),s)bu(l,y)},[s,l]),S=xi((y)=>{if(h(y),s)bu(m,y)},[s,m]),C=xi(()=>{let y=c==="dark"?Dr.light:Dr.dark;S(y)},[c,S]),b=Ny(()=>({theme:d,setTheme:M,colorScheme:p,setColorScheme:S,resolvedColorScheme:c,toggleColorScheme:C}),[d,M,p,S,c,C]);return By(hu.Provider,{value:b,children:e},void 0,!1,void 0,this)};Tu.displayName="ThemeProvider";var Vy=()=>{let e=wy(hu);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e};export{vi as useToast,Vy as useTheme,Jr as usePlatform,Gv as useOverlay,ii as useHotkey,Yr as useFormField,u as useDensitySize,wu as useDensity,Cy as useControllableState,Xr as useComposedRefs,Vf as useCommandShortcut,Ha as useCommand,uu as tooltipContentVariants,ou as toolbarVariants,iu as toolbarGroupVariants,ca as toggleVariants,Ec as toggleGroupVariants,pi as toastVariants,ci as toastActionVariants,$c as toast,Cc as timelineVariants,Nc as timelineTitleVariants,Rc as timelineTimeVariants,Sc as timelineItemVariants,wc as timelineDotVariants,Lc as timelineDescriptionVariants,Mc as timelineContentVariants,zc as timelineConnectorVariants,Tc as textareaVariants,gc as tabsTriggerVariants,fc as tabsListVariants,vc as tabsContentVariants,Qp as tableVariants,tc as tableRowVariants,Ep as tableHeaderVariants,rc as tableHeadVariants,ec as tableFooterVariants,Jp as tableContainerVariants,oc as tableCellVariants,ac as tableCaptionVariants,jp as tableBodyVariants,Xp as switchVariants,kp as stepperVariants,Ap as stepVariants,Dp as stepTitleVariants,Ip as stepIndicatorVariants,Fp as stepDescriptionVariants,Bp as stepContentVariants,Vp as stepConnectorVariants,Rp as statCardVariants,oa as spotlightStatusVariants,aa as spotlightStatusTitleVariants,Np as spotlightStatusDescriptionVariants,Mp as spotlightShortcutVariants,hp as spotlightResultsVariants,vp as spotlightPanelVariants,gp as spotlightOverlayVariants,xp as spotlightOptionVariants,zp as spotlightOptionTitleVariants,Cp as spotlightOptionIconVariants,wp as spotlightOptionDescriptionVariants,Sp as spotlightOptionContentVariants,ra as spotlightKbdVariants,yp as spotlightInputVariants,Pp as spotlightIconVariants,bp as spotlightHeaderVariants,Tp as spotlightGroupLabelVariants,lp as sliderVariants,mp as sliderTrackVariants,pp as sliderThumbVariants,dp as sliderRangeVariants,tp as skeletonVariants,rp as skeletonTextVariants,ap as skeletonButtonVariants,op as skeletonAvatarVariants,$m as sheetOverlayVariants,Km as sheetContentVariants,jd as separatorVariants,Bd as selectTriggerVariants,Dd as selectContentVariants,Xd as segmentedControlVariants,Zd as segmentedControlLabelVariants,qd as segmentedControlItemVariants,Ld as scrollBarVariants,Rd as scrollBarThumbVariants,Nd as scrollAreaVariants,Td as resizablePanelVariants,hd as resizablePanelGroupVariants,xd as resizableHandleVariants,Cd as resizableHandleIconVariants,bd as radioItemVariants,vd as radioGroupVariants,pd as progressVariants,cd as progressIndicatorVariants,Cr as popoverContentVariants,Wa as parseHotkey,jm as paginationVariants,Fo as paginationLinkVariants,td as paginationItemVariants,rd as paginationEllipsisVariants,ed as paginationContentVariants,Dm as otpSlotVariants,_m as otpSeparatorVariants,Om as otpPlaceholderVariants,Fm as otpInputVariants,Bm as otpGroupVariants,Vm as otpContainerVariants,zm as navigationMenuViewportVariants,Tm as navigationMenuVariants,Cm as navigationMenuTriggerVariants,xm as navigationMenuListVariants,xv as navigationMenuLinkVariants,wm as navigationMenuIndicatorVariants,Sm as navigationMenuContentVariants,ym as multiselectTriggerVariants,$a as matchHotkey,um as labelVariants,dm as kbdVariants,mr as isSameDay,nm as inputVariants,rm as hoverCardContentVariants,Qg as formatHotkeyTokens,Zr as formatHotkey,Zl as formFieldVariants,_l as fileUploadVariants,Ga as fileUploadTextVariants,Wl as fileUploadListVariants,$l as fileUploadItemVariants,Ul as fileUploadItemSizeVariants,Yl as fileUploadItemRemoveVariants,Kl as fileUploadItemNameVariants,Gl as fileUploadIconVariants,kl as errorBoundaryVariants,Il as errorBoundaryTitleVariants,Al as errorBoundaryIconVariants,Dl as errorBoundaryDetailsVariants,Vl as errorBoundaryDescriptionVariants,Bl as errorBoundaryActionsVariants,zl as emptyStateVariants,Ml as emptyStateTitleVariants,wl as emptyStateIconVariants,Nl as emptyStateDescriptionVariants,Ll as emptyStateActionsVariants,ul as dropdownMenuShortcutVariants,cl as dropdownMenuSeparatorVariants,dl as dropdownMenuRadioItemVariants,pl as dropdownMenuLabelVariants,_a as dropdownMenuItemVariants,Oa as dropdownMenuContentVariants,ml as dropdownMenuCheckboxItemVariants,js as drawerOverlayVariants,tl as drawerHandleVariants,el as drawerContentVariants,qs as dialogContentVariants,Ut as detectPlatform,oM as cva,Dg as createOptionalContext,Bg as createContext,Bs as contextMenuShortcutVariants,Vs as contextMenuSeparatorVariants,As as contextMenuRadioItemVariants,Is as contextMenuLabelVariants,Ia as contextMenuItemVariants,Aa as contextMenuContentVariants,ks as contextMenuCheckboxItemVariants,am as composeRefs,hs as commandShortcutVariants,Ps as commandSeparatorVariants,cs as commandOverlayVariants,Ts as commandLoadingVariants,fs as commandListVariants,ys as commandItemVariants,us as commandInputVariants,vs as commandGroupVariants,bs as commandGroupHeadingVariants,gs as commandEmptyVariants,ps as commandDialogVariants,ls as collapsibleContentVariants,jn as codeBlockVariants,as as codeBlockPreVariants,is as codeBlockLineVariants,ns as codeBlockLineNumberVariants,ts as codeBlockLanguageVariants,es as codeBlockHeaderVariants,rs as codeBlockCopyVariants,os as codeBlockContentVariants,a as cn,Jn as checkboxVariants,Wn as cardVariants,On as calendarWeekdayVariants,Vn as calendarVariants,Dn as calendarTitleVariants,La as calendarNavButtonVariants,Bn as calendarHeaderVariants,Fn as calendarGridVariants,_n as calendarDayVariants,Or as buttonVariants,Ki as buttonIconVariants,Rn as buttonGroupVariants,Ui as buttonBadgeVariants,Tn as breadcrumbSeparatorVariants,hn as breadcrumbPageVariants,bn as breadcrumbListVariants,Pn as breadcrumbLinkVariants,yn as breadcrumbItemVariants,xn as breadcrumbEllipsisVariants,cn as badgeVariants,mn as avatarVariants,Di as alertVariants,Fi as alertTitleVariants,Qi as alertDialogOverlayVariants,Ei as alertDialogContentVariants,Oi as alertDescriptionVariants,Hi as accordionTriggerVariants,Ri as accordionItemVariants,ki as accordionContentVariants,Ru as XCircleIcon,st as Variant,cu as TooltipTrigger,Br as TooltipSize,Ty as TooltipProvider,fu as TooltipContent,pu as Tooltip,lu as ToolbarSpacer,Ee as ToolbarSize,su as ToolbarSeparator,nu as ToolbarGroup,au as Toolbar,tu as ToggleGroupItem,eu as ToggleGroup,Jc as Toggle,qc as Toaster,Ge as ToastSize,Bc as TimelineTitle,Fc as TimelineTime,kc as TimelineItem,Ic as TimelineDot,Dc as TimelineDescription,Vc as TimelineContent,Ac as TimelineConnector,Hc as Timeline,Tu as ThemeProvider,xc as Textarea,Pc as TabsTrigger,yc as TabsList,hc as TabsContent,Gb as Tabs,Te as TableSize,mc as TableRow,nc as TableHeader,dc as TableHead,lc as TableFooter,pc as TableCell,cc as TableCaption,sc as TableBody,ic as Table,Ar as SwitchStatus,ze as SwitchSize,qp as Switch,Op as Stepper,Kp as StepTitle,Gp as StepIndicator,Up as StepDescription,$p as StepContent,Wp as StepConnector,_p as Step,Et as StatCardTrend,_e as StatCardSize,Hp as StatCard,kr as SpotlightStatus,Qt as SpotlightSize,Lp as Spotlight,Vt as SpinnerSize,ho as Spinner,cp as Slider,ip as SkeletonText,pe as SkeletonSize,sp as SkeletonButton,np as SkeletonAvatar,po as Skeleton,Pe as Size,Av as SheetTrigger,qm as SheetTitle,te as SheetSize,Um as SheetPortal,Xa as SheetOverlay,Ym as SheetHeader,Xm as SheetFooter,Zm as SheetDescription,Bo as SheetContent,Iv as SheetClose,Ya as Sheet,mo as SeparatorOrientation,ep as Separator,db as SelectValue,Fd as SelectTrigger,Rr as SelectStatus,Q as SelectSize,Wd as SelectSeparator,_d as SelectLabel,Gd as SelectItem,mb as SelectGroup,so as SelectContentWidthMode,ib as SelectContentAlign,Od as SelectContent,lb as Select,Ne as SegmentedControlSize,Ed as SegmentedControlLabelItem,Qd as SegmentedControlItem,Jd as SegmentedControl,Qa as ScrollBar,Hd as ScrollArea,Sd as ResizablePanelGroup,zd as ResizablePanel,wd as ResizableHandle,Mr as RadioStatus,Je as RadioSize,Pd as RadioGroupItem,yd as RadioGroup,ud as Progress,nv as PopoverTrigger,xr as PopoverSize,vm as PopoverContent,lv as PopoverClose,sv as PopoverAnchor,iv as Popover,Oe as PaginationSize,sd as PaginationPrevious,ld as PaginationNext,nd as PaginationLink,id as PaginationItem,md as PaginationEllipsis,ad as PaginationContent,od as Pagination,Em as OverlayProvider,Gm as OTPInput,Ka as NavigationMenuViewport,Lm as NavigationMenuTrigger,qe as NavigationMenuSize,Nm as NavigationMenuList,zv as NavigationMenuLink,Sv as NavigationMenuItem,Hm as NavigationMenuIndicator,Rm as NavigationMenuContent,Mm as NavigationMenu,de as MultiselectSize,Pm as Multiselect,Tr as LabelSize,fm as Label,hr as KbdSize,pm as Kbd,sm as Input,ku as InfoIcon,Bt as IconSize,Ig as HoverCardTrigger,yr as HoverCardSize,om as HoverCardContent,Ag as HoverCard,Wr as GroupOrientation,De as FormFieldSize,Ql as FormFieldLabel,em as FormFieldError,jl as FormFieldDescription,tm as FormFieldControl,Jl as FormField,Xl as FileUpload,Fl as ErrorBoundary,Rl as EmptyState,fg as DropdownMenuTrigger,vl as DropdownMenuSubTrigger,bl as DropdownMenuSubContent,bg as DropdownMenuSub,Sl as DropdownMenuShortcut,Cl as DropdownMenuSeparator,Tl as DropdownMenuRadioItem,yg as DropdownMenuRadioGroup,vg as DropdownMenuPortal,xl as DropdownMenuLabel,ko as DropdownMenuItemVariant,Pl as DropdownMenuItem,gg as DropdownMenuGroup,yl as DropdownMenuContent,hl as DropdownMenuCheckboxItem,gl as DropdownMenu,rg as DrawerTrigger,nl as DrawerTitle,Be as DrawerSize,rl as DrawerPortal,Fa as DrawerOverlay,al as DrawerHeader,il as DrawerFooter,sl as DrawerDescription,ol as DrawerContent,og as DrawerClose,tg as Drawer,Jf as DialogTrigger,Qs as DialogTitle,Tt as DialogSize,Xs as DialogPortal,Ba as DialogOverlay,Zs as DialogHeader,Js as DialogFooter,Es as DialogDescription,Ro as DialogContent,Qf as DialogClose,Va as Dialog,Ni as DensityProvider,yo as Density,$f as ContextMenuTrigger,Fs as ContextMenuSubTrigger,Os as ContextMenuSubContent,Yf as ContextMenuSub,Ys as ContextMenuShortcut,Us as ContextMenuSeparator,$s as ContextMenuRadioItem,Xf as ContextMenuRadioGroup,Uf as ContextMenuPortal,Ks as ContextMenuLabel,No as ContextMenuItemVariant,Gs as ContextMenuItem,Kf as ContextMenuGroup,_s as ContextMenuContent,Ws as ContextMenuCheckboxItem,Wf as ContextMenu,Rs as CommandShortcut,Ls as CommandSeparator,Hs as CommandLoading,zs as CommandList,Mo as CommandItemVariant,Ns as CommandItem,Ss as CommandInput,Ms as CommandGroup,ws as CommandEmpty,Cs as CommandDialog,ka as Command,Dr as ColorScheme,Rf as CollapsibleTrigger,ms as CollapsibleContent,Lf as Collapsible,ss as CodeBlock,ur as CheckboxStatus,Ke as CheckboxSize,Qn as Checkbox,Hu as CheckCircleIcon,Xn as CardTitle,Kn as CardHeader,Yn as CardFooter,qn as CardDescription,Un as CardContent,$n as Card,Gn as Calendar,Xi as ButtonLabel,Yi as ButtonIcon,Hn as ButtonGroup,qi as ButtonBadge,Zi as Button,le as BreadcrumbSize,Nn as BreadcrumbSeparator,Mn as BreadcrumbPage,Sn as BreadcrumbList,wn as BreadcrumbLink,zn as BreadcrumbItem,Ln as BreadcrumbEllipsis,Cn as Breadcrumb,ge as BadgeVariant,ft as BadgeTone,vt as BadgeSize,vn as BadgeGroup,un as Badge,Ie as AvatarSize,dn as AvatarImage,pn as AvatarGroup,Ma as AvatarFallback,wa as Avatar,Ku as AspectRatio,Au as AlertTriangleIcon,Gi as AlertTitle,$u as AlertDialogTrigger,on as AlertDialogTitle,gt as AlertDialogSize,ji as AlertDialogPortal,za as AlertDialogOverlay,tn as AlertDialogHeader,rn as AlertDialogFooter,an as AlertDialogDescription,en as AlertDialogContent,sn as AlertDialogCancel,nn as AlertDialogAction,Wu as AlertDialog,Wi as AlertDescription,_i as Alert,Vi as AccordionTrigger,xe as AccordionSize,Ii as AccordionItem,Bi as AccordionContent,Ai as Accordion};