@ghostly-solutions/ui 2.0.0 → 2.0.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/components/alert-dialog/alert-dialog.d.ts.map +1 -1
- package/dist/components/dialog/dialog.d.ts.map +1 -1
- package/dist/components/input/input.d.ts.map +1 -1
- package/dist/components/radio/radio.d.ts +1 -0
- package/dist/components/radio/radio.d.ts.map +1 -1
- package/dist/components/sheet/sheet.d.ts.map +1 -1
- package/dist/components/switch/switch.d.ts +1 -0
- package/dist/components/switch/switch.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{A as ZP,B as kt,C as EP,D as DP,E as Nt,F as yg,G as vg,H as Tg,I as hg,J as Pg,K as zg,L as Mg,M as go,N as Mt,O as Ng,P as Lg,Q as ca,R as fa,S as ga,T as Wi,U as ba,V as xg,W as Rg,X as pa,Y as Cg,Z as Ta,a,b as Sg,c as WP,d as F,e as _P,f as UP,g as KP,h as $P,i as VP,j as YP,k as XP,l as eo,m as JP,n as qP,o as Vb,p as Fa,q as Ga,r as Oa,s as Ld,t as ri,u as xd,v as QP,w as Ka,x as $a,y as Rn,z as jn}from"./chunk-e8n8m48r.js";import{cva as U1}from"class-variance-authority";import*as pt from"@radix-ui/react-accordion";import{cva as Ma}from"class-variance-authority";import{ChevronDown as Ig}from"lucide-react";import{createContext as Fg,forwardRef as tn,useContext as $i}from"react";var Ag="md",Bg=()=>{return"md"};function f(e){if(e!==void 0)return e;return"md"}import{jsxDEV as Ft}from"react/jsx-dev-runtime";var Fe={sm:"sm",md:"md",lg:"lg"},Na=Fg(Fe.md),Vi=Ma("border-b border-border"),Yi=Ma("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[Fe.sm]:"py-3 text-xs [&>svg]:size-3.5",[Fe.md]:"py-4 text-sm [&>svg]:size-4",[Fe.lg]:"py-5 text-base [&>svg]:size-5"}},defaultVariants:{size:Fe.md}}),Xi=Ma("gs-accordion-content overflow-hidden",{variants:{size:{[Fe.sm]:"text-xs",[Fe.md]:"text-sm",[Fe.lg]:"text-base"}},defaultVariants:{size:Fe.md}}),Gg={[Fe.sm]:"pt-0 pb-3",[Fe.md]:"pt-0 pb-4",[Fe.lg]:"pt-0 pb-5"},Ji=tn(({size:e=Fe.md,...t},r)=>{let o=f(e)??Fe.md;return Ft(Na.Provider,{value:o,children:Ft(pt.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ji.displayName="Accordion";var qi=tn(({className:e,...t},r)=>Ft(pt.Item,{ref:r,className:a(Vi(),e),...t},void 0,!1,void 0,this));qi.displayName="AccordionItem";var Qi=tn(({className:e,children:t,...r},o)=>{let n=$i(Na);return Ft(pt.Header,{className:"flex",children:Ft(pt.Trigger,{ref:o,className:a(Yi({size:n}),e),...r,children:[t,Ft(Ig,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Qi.displayName="AccordionTrigger";var Zi=tn(({className:e,children:t,...r},o)=>{let n=$i(Na);return Ft(pt.Content,{ref:o,className:a(Xi({size:n}),e),...r,children:Ft("div",{className:Gg[n],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Zi.displayName="AccordionContent";import{cva as La}from"class-variance-authority";import{TriangleAlert as Og,CircleCheck as Wg,Info as _g,CircleAlert as Ug}from"lucide-react";import{forwardRef as xa}from"react";import{jsxDEV as Ra}from"react/jsx-dev-runtime";var wr={default:"default",success:"success",warning:"warning",error:"error",info:"info"},rn={sm:"sm",md:"md",lg:"lg"},Ei=La("gs-alert relative w-full rounded-[var(--radius)] border [&>svg~*]:pl-8 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:size-4 [&>svg]:text-foreground h-min",{variants:{variant:{[wr.default]:"border-border bg-secondary text-foreground",[wr.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[wr.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[wr.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[wr.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[rn.sm]:"p-3 text-sm [&>svg]:left-3 [&>svg]:top-3 [&>svg]:size-3.5 [&>svg~*]:pl-7",[rn.md]:"p-4 text-sm",[rn.lg]:"p-5 text-sm [&>svg]:left-5 [&>svg]:top-5"}},defaultVariants:{variant:wr.default,size:rn.md}}),Di=La("mb-1 font-medium leading-none tracking-tight [.gs-alert[data-size=sm]_&]:text-sm [.gs-alert[data-size=md]_&]:text-sm [.gs-alert[data-size=lg]_&]:text-base h-min"),ji=La("[&_p]:leading-relaxed [.gs-alert[data-size=sm]_&]:text-[13px] [.gs-alert[data-size=md]_&]:text-sm [.gs-alert[data-size=lg]_&]:text-sm"),es=xa(({className:e,variant:t,size:r,...o},n)=>{let i=f(r);return Ra("div",{ref:n,role:"alert","data-size":i,className:a(Ei({variant:t,size:i}),e),...o},void 0,!1,void 0,this)});es.displayName="Alert";var ts=xa(({className:e,...t},r)=>Ra("h5",{ref:r,className:a(Di(),e),...t},void 0,!1,void 0,this));ts.displayName="AlertTitle";var rs=xa(({className:e,...t},r)=>Ra("div",{ref:r,className:a(ji(),e),...t},void 0,!1,void 0,this));rs.displayName="AlertDescription";import*as Le from"@radix-ui/react-alert-dialog";import{cva as ds}from"class-variance-authority";import{createContext as ob,forwardRef as kr,useCallback as nb,useContext as ab,useEffect as ib,useState as us}from"react";import{Slot as os}from"@radix-ui/react-slot";import{cva as wa}from"class-variance-authority";import{forwardRef as on}from"react";import{forwardRef as Kg}from"react";import{jsxDEV as Ca}from"react/jsx-dev-runtime";var yo={sm:"sm",md:"md",lg:"lg"},$g={[yo.sm]:"h-4 w-4",[yo.md]:"h-5 w-5",[yo.lg]:"h-6 w-6"},Gt=Kg(({className:e,size:t=yo.md,label:r="Loading",...o},n)=>{let i=f(t);return Ca("span",{ref:n,className:a("inline-flex items-center justify-center",e),role:"status","aria-label":r,...o,children:[Ca("span",{"data-gs-motion":"essential",className:a("gs-loading-motion animate-spin rounded-full border-2 border-current border-r-transparent",$g[i])},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)});Gt.displayName="Spinner";import{jsxDEV as Rt}from"react/jsx-dev-runtime";var xt={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},Qe={sm:"sm",md:"md",lg:"lg",icon:"icon",iconSm:"icon-sm",iconLg:"icon-lg"},Ot={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Hr={sm:"sm",md:"md",lg:"lg"},Vg="Loading",Yg="button",vo=wa("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] 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:pointer-events-none disabled:cursor-not-allowed disabled:opacity-55",{variants:{variant:{[xt.primary]:"border-primary bg-primary text-primary-foreground enabled:hover:bg-primary/90",[xt.secondary]:"border-secondary bg-secondary text-secondary-foreground enabled:hover:bg-secondary/90",[xt.neutral]:"border-border bg-muted text-foreground enabled:hover:bg-muted/90",[xt.outline]:"border-border bg-background text-foreground enabled:hover:border-primary enabled:hover:bg-muted/50",[xt.ghost]:"border-transparent bg-transparent text-foreground enabled:hover:bg-muted/70",[xt.danger]:"border-destructive bg-destructive text-destructive-foreground enabled:hover:bg-destructive/90"},size:{[Qe.sm]:"h-8 px-2.5 text-xs",[Qe.md]:"h-10 px-4 text-sm",[Qe.lg]:"h-11 px-5 text-sm",[Qe.icon]:"h-10 w-10 p-0",[Qe.iconSm]:"h-9 w-9 p-0",[Qe.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:xt.primary,size:Qe.md}}),ns=wa("shrink-0",{variants:{size:{[Hr.sm]:"size-3",[Hr.md]:"size-4",[Hr.lg]:"size-4.5"}},defaultVariants:{size:Hr.md}}),as=wa("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[11px] leading-none",{variants:{tone:{[Ot.default]:"border-border/70 bg-background/75 text-muted-foreground",[Ot.success]:"border-success/35 bg-success/12 text-success",[Ot.warning]:"border-warning/35 bg-warning/12 text-warning",[Ot.error]:"border-destructive/35 bg-destructive/12 text-destructive",[Ot.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:Ot.default}});function Xg(e){return e===Qe.icon||e===Qe.iconSm||e===Qe.iconLg}function Jg(e,t,r){return e&&t?-1:r}function qg(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function Qg(){if(typeof process>"u")return!0;return!0}var is=on(({className:e,size:t=Hr.md,...r},o)=>Rt(os,{ref:o,className:a(ns({size:t}),e),...r},void 0,!1,void 0,this));is.displayName="ButtonIcon";var ss=on(({className:e,...t},r)=>Rt("span",{ref:r,className:a("truncate",e),...t},void 0,!1,void 0,this));ss.displayName="ButtonLabel";var ls=on(({className:e,tone:t=Ot.default,...r},o)=>Rt("span",{ref:o,className:a(as({tone:t}),e),...r},void 0,!1,void 0,this));ls.displayName="ButtonBadge";var ms=on(({className:e,variant:t=xt.primary,size:r=Qe.md,asChild:o=!1,loading:n=!1,loadingText:i=Vg,fullWidth:s=!1,leadingIcon:l,trailingIcon:d,disabled:m,children:c,type:u,tabIndex:g,onClick:v,...b},T)=>{let M=f(r),z=M??r,p=qg(b);if(Qg()&&Xg(z)&&!p)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let h=Boolean(m||n),x=a(vo({variant:t,size:M}),h&&"pointer-events-none cursor-not-allowed opacity-55",s&&"w-full",e);if(o)return Rt(os,{ref:T,className:x,"aria-disabled":h||void 0,"aria-busy":n||void 0,tabIndex:Jg(!0,h,g),onClick:h?(H)=>{H.preventDefault()}:v,...b,children:c},void 0,!1,void 0,this);return Rt("button",{ref:T,className:x,disabled:h,"aria-disabled":h,"aria-busy":n,tabIndex:g,type:u??Yg,onClick:n?void 0:v,...b,children:[Rt("span",{className:a("absolute inset-0 flex items-center justify-center transition-opacity duration-150",n?"opacity-100":"opacity-0"),"aria-hidden":"true",children:Rt(Gt,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),n&&Rt("span",{className:"sr-only",children:i},void 0,!1,void 0,this),Rt("span",{className:a("inline-flex items-center justify-center gap-2 transition-opacity duration-150",n&&"opacity-0"),children:[l,c,d]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});ms.displayName="Button";var ie=!0,nt=4,Wt="fixed inset-0 z-50 bg-black/50",nn="transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] 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";import{useSyncExternalStore as Zg}from"react";var Ha="(prefers-reduced-motion: reduce)",sr="data-gs-reduced-motion",Eg=sr;function Dg(){if(typeof document>"u")return!1;return document.documentElement.getAttribute(sr)==="true"}function jg(){if(typeof window>"u"||typeof window.matchMedia!=="function")return!1;return window.matchMedia(Ha).matches}function To(){return Dg()||jg()}function eb(e){if(typeof document>"u")return;if(e)document.documentElement.setAttribute(sr,"true");else document.documentElement.removeAttribute(sr)}var tb=()=>!1;function rb(e){if(typeof window>"u")return()=>{return};let t=window.matchMedia(Ha);t.addEventListener("change",e);let r=typeof MutationObserver<"u"?new MutationObserver((o)=>{for(let n of o)if(n.type==="attributes"&&n.attributeName===sr){e();break}}):null;return r?.observe(document.documentElement,{attributes:!0,attributeFilter:[sr]}),()=>{t.removeEventListener("change",e),r?.disconnect()}}function be(){return Zg(rb,To,tb)}import{jsxDEV as Je,Fragment as db}from"react/jsx-dev-runtime";var lr={sm:F.sm,md:F.md,lg:F.lg,full:"full"},sb=160,cs=ds(a("gs-dialog-overlay",Wt)),ps=ds("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 border border-border bg-card p-6 text-foreground shadow-[var(--shadow-xl)] rounded-[var(--radius)]",{variants:{size:{[lr.sm]:"max-w-sm",[lr.md]:"max-w-md",[lr.lg]:"max-w-lg",[lr.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:lr.md}}),fs=ob(!1),lb=({children:e,open:t,defaultOpen:r=!1,onOpenChange:o,...n})=>{let[i,s]=us(r),l=t!==void 0,d=l?t:i,m=nb((c)=>{if(!l)s(c);o?.(c)},[l,o]);return Je(fs.Provider,{value:d,children:Je(Le.Root,{open:d,onOpenChange:m,...n,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},mb=Le.Trigger,gs=Le.Portal,ka=kr(({className:e,...t},r)=>Je(Le.Overlay,{ref:r,className:a(cs(),e),...t},void 0,!1,void 0,this));ka.displayName="AlertDialogOverlay";var bs=kr(({className:e,size:t=lr.md,showOverlay:r=!0,portal:o=ie,portalContainer:n,forceMount:i=!1,...s},l)=>{let d=ab(fs),[m,c]=us(i||d),u=f(t),g=be();if(ib(()=>{if(i||d){c(!0);return}let T=setTimeout(()=>{c(!1)},g?0:sb);return()=>{clearTimeout(T)}},[i,d,g]),!(i||d||m))return null;let b=Je(db,{children:[r?Je(ka,{forceMount:!0},void 0,!1,void 0,this):null,Je(Le.Content,{ref:l,forceMount:!0,className:a(ps({size:u}),e),...s},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(!o)return b;return Je(gs,{forceMount:!0,container:n??void 0,children:b},void 0,!1,void 0,this)});bs.displayName="AlertDialogContent";var ys=({className:e,...t})=>Je("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);ys.displayName="AlertDialogHeader";var vs=({className:e,...t})=>Je("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);vs.displayName="AlertDialogFooter";var Ts=kr(({className:e,...t},r)=>Je(Le.Title,{ref:r,className:a("font-semibold text-lg",e),...t},void 0,!1,void 0,this));Ts.displayName="AlertDialogTitle";var hs=kr(({className:e,...t},r)=>Je(Le.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));hs.displayName="AlertDialogDescription";var Ps=kr(({className:e,...t},r)=>Je(Le.Action,{ref:r,className:a(vo(),e),...t},void 0,!1,void 0,this));Ps.displayName="AlertDialogAction";var zs=kr(({className:e,...t},r)=>Je(Le.Cancel,{ref:r,className:a(vo({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));zs.displayName="AlertDialogCancel";import*as Sa from"@radix-ui/react-aspect-ratio";import{cva as ub}from"class-variance-authority";import{forwardRef as cb}from"react";import{jsxDEV as pb}from"react/jsx-dev-runtime";var Ms=ub("relative overflow-hidden rounded-[calc(var(--radius)-2px)] border border-border/40"),Ns=cb(({className:e,...t},r)=>pb(Sa.Root,{ref:r,className:a(Ms(),e),...t},void 0,!1,void 0,this));Ns.displayName=Sa.Root.displayName;import*as Ar from"@radix-ui/react-avatar";import{cva as fb}from"class-variance-authority";import{forwardRef as an}from"react";import{jsxDEV as Sr}from"react/jsx-dev-runtime";var ft={sm:"sm",md:"md",lg:"lg"},Ls=fb("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{[ft.sm]:"h-7 w-7 text-xs",[ft.md]:"h-10 w-10 text-sm",[ft.lg]:"h-12 w-12 text-base"}},defaultVariants:{size:ft.md}}),Aa=an(({className:e,size:t=ft.md,...r},o)=>{let n=f(t);return Sr(Ar.Root,{ref:o,className:a(Ls({size:n}),e),...r},void 0,!1,void 0,this)});Aa.displayName="Avatar";var xs=an(({className:e,...t},r)=>Sr(Ar.Image,{ref:r,className:a("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));xs.displayName="AvatarImage";var Ba=an(({className:e,...t},r)=>Sr(Ar.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));Ba.displayName="AvatarFallback";var gb={[ft.sm]:"-space-x-2",[ft.md]:"-space-x-3",[ft.lg]:"-space-x-4"},Rs=an(({className:e,children:t,max:r,size:o=ft.md,...n},i)=>{let s=f(o),l=Array.isArray(t)?t:[t],d=r?l.slice(0,r):l,m=r?Math.max(0,l.length-r):0;return Sr("div",{ref:i,className:a("flex items-center",gb[s],e),...n,children:[d,m>0&&Sr(Aa,{size:s,className:"border-2 border-background",children:Sr(Ba,{className:"text-xs",children:["+",m]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Rs.displayName="AvatarGroup";import{Slot as bb}from"@radix-ui/react-slot";import{cva as yb}from"class-variance-authority";import{X as Cs}from"lucide-react";import{forwardRef as vb}from"react";import{jsxDEV as mr}from"react/jsx-dev-runtime";var we={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},_t={sm:"sm",md:"md",lg:"lg",dot:"dot"},ws=yb("group/badge inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium leading-none",{variants:{variant:{[we.default]:"border-border bg-muted text-muted-foreground",[we.primary]:"border-primary/30 bg-primary/10 text-primary",[we.success]:"border-success/30 bg-success/10 text-success",[we.warning]:"border-warning/30 bg-warning/10 text-warning",[we.error]:"border-destructive/30 bg-destructive/10 text-destructive",[we.info]:"border-info/30 bg-info/10 text-info",[we.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[_t.sm]:"h-5 px-1.5 text-[11px]",[_t.md]:"h-5 px-2 text-[11px]",[_t.lg]:"h-6 px-2.5 text-xs",[_t.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:we.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:we.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:we.success,className:"border-success bg-success text-background"},{solid:!0,variant:we.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:we.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:we.info,className:"border-info bg-info text-background"},{solid:!0,variant:we.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:we.default,solid:!1,size:_t.md}}),ho=vb(({className:e,variant:t=we.default,size:r=_t.md,solid:o=!1,pulse:n=!1,removable:i=!1,removeControl:s="button",removeLabel:l="Remove",onRemove:d,onClick:m,children:c,asChild:u=!1,...g},v)=>{let b=f(r),T=Boolean(m),M=b===_t.dot,z=T&&s==="button"?"span":s,p=(R)=>{R.preventDefault(),R.stopPropagation(),d?.(R)},h=(R)=>{if(R.key!=="Enter"&&R.key!==" ")return;R.preventDefault(),R.stopPropagation()},x=a(ws({variant:t,solid:o,size:b}),T&&"cursor-pointer",n&&"animate-pulse",i&&!M&&"pr-1",e),H=a("ml-0.5 inline-flex items-center justify-center rounded-full text-current opacity-60","transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:opacity-100","size-3.5 group-data-[size=lg]/badge:size-4"),k="size-2.5 group-data-[size=lg]/badge:size-3",B=i&&!M&&z==="button"?mr("button",{type:"button",className:H,onClick:p,"aria-label":l,tabIndex:-1,children:mr(Cs,{className:"size-2.5 group-data-[size=lg]/badge:size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this):i&&!M?mr("span",{role:"button",className:H,onClick:p,onKeyDown:h,"aria-label":l,tabIndex:-1,children:mr(Cs,{className:"size-2.5 group-data-[size=lg]/badge:size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null;if(u)return mr(bb,{ref:v,className:x,onClick:m,"data-size":b,...g,children:c},void 0,!1,void 0,this);if(T)return mr("button",{ref:v,className:x,onClick:m,type:"button","data-size":b,...g,children:[!M&&c,B]},void 0,!0,void 0,this);return mr("span",{ref:v,className:x,"data-size":b,...g,children:[!M&&c,B]},void 0,!0,void 0,this)});ho.displayName="Badge";import{Children as Tb,cloneElement as hb,forwardRef as Pb,isValidElement as zb,useCallback as Hs,useEffect as Mb,useLayoutEffect as Nb,useRef as Lb,useState as xb}from"react";import{jsxDEV as ks}from"react/jsx-dev-runtime";function Rb(e){let t=[];return Tb.forEach(e,(r,o)=>{if(!zb(r))return;let n=r.key??o;t.push({key:n,element:r,isLeaving:!1})}),t}function Cb(e,t){let r=new Set(t.map((i)=>i.key)),o=new Set(e.map((i)=>i.key)),n=[];for(let i of e)if(r.has(i.key)){let s=t.find((l)=>l.key===i.key);if(s)n.push({...s,isLeaving:!1})}else n.push({...i,isLeaving:!0});for(let i of t)if(!o.has(i.key))n.push(i);return n}function wb(e,t,r){if(r.current)return r.current=!1,t;return Cb(e,t)}var Hb=typeof window<"u"?Nb:Mb,Ss=Pb(({children:e,className:t,onRemove:r,gap:o="sm"},n)=>{let[i,s]=xb([]),l=Lb(!0);Hb(()=>{let u=Rb(e);s((g)=>wb(g,u,l))},[e]);let d=Hs((u)=>{s((g)=>g.filter((v)=>v.key!==u))},[]),m=Hs((u)=>{r?.(u)},[r]),c={sm:"gap-1",md:"gap-2",lg:"gap-3"}[o];return ks("div",{ref:n,className:a("inline-flex flex-wrap items-center",c,t),children:i.map((u)=>{let g={};if(u.element.props.removable&&r)g.onRemove=()=>{m(u.key)};let v=a("inline-flex transition-all duration-200",u.isLeaving&&"pointer-events-none scale-95 opacity-0");return ks("span",{className:v,onTransitionEnd:u.isLeaving?()=>d(u.key):void 0,children:hb(u.element,g)},u.key,!1,void 0,this)})},void 0,!1,void 0,this)});Ss.displayName="BadgeGroup";import{Slot as kb}from"@radix-ui/react-slot";import{cva as Br}from"class-variance-authority";import{ChevronRight as Sb,MoreHorizontal as Ab}from"lucide-react";import{createContext as Bb,forwardRef as Po,useContext as Ia}from"react";import{jsxDEV as at}from"react/jsx-dev-runtime";var ye={sm:"sm",md:"md",lg:"lg"},sn=Bb(ye.md),As=Br("flex flex-wrap items-center break-words text-muted-foreground",{variants:{size:{[ye.sm]:"gap-1 text-xs",[ye.md]:"gap-1.5 text-sm sm:gap-2.5",[ye.lg]:"gap-2 text-base sm:gap-3"}},defaultVariants:{size:ye.md}}),Bs=Br("inline-flex items-center gap-1.5"),Is=Br("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),Fs=Br("font-normal text-foreground"),Gs=Br("",{variants:{size:{[ye.sm]:"[&>svg]:size-3",[ye.md]:"[&>svg]:size-3.5",[ye.lg]:"[&>svg]:size-4"}},defaultVariants:{size:ye.md}}),Os=Br("flex items-center justify-center",{variants:{size:{[ye.sm]:"h-7 w-7 [&>svg]:size-3.5",[ye.md]:"h-9 w-9 [&>svg]:size-4",[ye.lg]:"h-10 w-10 [&>svg]:size-5"}},defaultVariants:{size:ye.md}}),ln=Po(({size:e=ye.md,...t},r)=>{let o=f(e)??ye.md;return at(sn.Provider,{value:o,children:at("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ln.displayName="Breadcrumb";var mn=Po(({className:e,...t},r)=>{let o=Ia(sn);return at("ol",{ref:r,className:a(As({size:o}),e),...t},void 0,!1,void 0,this)});mn.displayName="BreadcrumbList";var zo=Po(({className:e,...t},r)=>at("li",{ref:r,className:a(Bs(),e),...t},void 0,!1,void 0,this));zo.displayName="BreadcrumbItem";var Mo=Po(({asChild:e,className:t,...r},o)=>{return at(e?kb:"a",{ref:o,className:a(Is(),t),...r},void 0,!1,void 0,this)});Mo.displayName="BreadcrumbLink";var dn=Po(({className:e,...t},r)=>at("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:a(Fs(),e),...t},void 0,!1,void 0,this));dn.displayName="BreadcrumbPage";var No=({children:e,className:t,...r})=>{let o=Ia(sn),n={[ye.sm]:"size-3",[ye.md]:"size-3.5",[ye.lg]:"size-4"};return at("li",{role:"presentation","aria-hidden":"true",className:a(Gs({size:o}),t),...r,children:e??at(Sb,{className:n[o]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};No.displayName="BreadcrumbSeparator";var un=({className:e,...t})=>{let r=Ia(sn);return at("span",{role:"presentation","aria-hidden":"true",className:a(Os({size:r}),e),...t,children:[at(Ab,{},void 0,!1,void 0,this),at("span",{className:"sr-only",children:"More"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};un.displayName="BreadcrumbEllipsis";import{createContext as Ib,Fragment as Ws,useCallback as Fb,useContext as Wa,useEffect as Gb,useMemo as _s,useRef as Ob,useState as Wb}from"react";import{jsxDEV as Ke}from"react/jsx-dev-runtime";var cn=Ib(null),_b=({children:e})=>{let[t,r]=Wb([]),o=_s(()=>({items:t,setItems:r}),[t]);return Ke(cn.Provider,{value:o,children:e},void 0,!1,void 0,this)},Ub=()=>{let e=Wa(cn);if(!e)throw Error("useBreadcrumbStore must be used within BreadcrumbStoreProvider");return{items:e.items}},Kb=({items:e})=>{let t=Wa(cn);if(!t)throw Error("SetBreadcrumbs must be used within BreadcrumbStoreProvider");let r=Ob("");return Gb(()=>{let o=Fa(e),n=Ga(o);if(n===r.current)return;r.current=n,t.setItems(o)}),null},$b=({size:e,className:t,collapse:r,renderLink:o})=>{let n=Wa(cn);if(!n)throw Error("BreadcrumbDisplay must be used within BreadcrumbStoreProvider");let{items:i}=n,s=_s(()=>Oa(i,r),[i,r]),l=Fb((m)=>{if(m.current)return Ke(dn,{children:m.label},void 0,!1,void 0,this);if(m.href){if(o)return Ke(Mo,{asChild:!0,children:o({href:m.href,children:m.label,className:a(m.disabled&&"pointer-events-none opacity-50")})},void 0,!1,void 0,this);return Ke(Mo,{href:m.href,"aria-disabled":m.disabled||void 0,className:a(m.disabled&&"pointer-events-none opacity-50"),children:m.label},void 0,!1,void 0,this)}return Ke("span",{className:"text-muted-foreground",children:m.label},void 0,!1,void 0,this)},[o]);if(i.length===0)return null;let{visibleItems:d}=s;return Ke(ln,{size:e,className:t,children:Ke(mn,{children:d.map((m,c)=>{let u=c===d.length-1;if(m.type==="ellipsis")return Ke(Ws,{children:[Ke(zo,{children:Ke(un,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),!u&&Ke(No,{},void 0,!1,void 0,this)]},m.id,!0,void 0,this);return Ke(Ws,{children:[Ke(zo,{children:l(m.item)},void 0,!1,void 0,this),!u&&Ke(No,{},void 0,!1,void 0,this)]},m.item.id,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this)};import{cva as Yb}from"class-variance-authority";import{forwardRef as Xb}from"react";import{jsxDEV as Jb}from"react/jsx-dev-runtime";var Lo={horizontal:"horizontal",vertical:"vertical"},Us=Yb("inline-flex items-stretch",{variants:{orientation:{[Lo.horizontal]:"flex-row",[Lo.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:Lo.horizontal,attached:!1}}),Ks=Xb(({className:e,orientation:t=Lo.horizontal,attached:r=!1,fullWidth:o=!1,...n},i)=>Jb("div",{ref:i,className:a(Us({orientation:t,attached:r}),o&&"w-full",e),...n},void 0,!1,void 0,this));Ks.displayName="ButtonGroup";import{cva as Ut}from"class-variance-authority";import{forwardRef as qb,useCallback as Ir,useEffect as Qb,useMemo as $s,useState as Vs}from"react";import{jsxDEV as qe}from"react/jsx-dev-runtime";var Q={sm:"sm",md:"md",lg:"lg"},Xs=Ut("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:{[Q.sm]:"p-3 text-sm",[Q.md]:"p-4 text-sm",[Q.lg]:"p-5 text-base"}},defaultVariants:{size:Q.md}}),Js=Ut("mb-3 flex items-center justify-between",{variants:{size:{[Q.sm]:"gap-1",[Q.md]:"gap-2",[Q.lg]:"gap-3"}},defaultVariants:{size:Q.md}}),qs=Ut("font-semibold text-foreground",{variants:{size:{[Q.sm]:"text-sm",[Q.md]:"text-base",[Q.lg]:"text-lg"}},defaultVariants:{size:Q.md}}),_a=Ut(["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:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70"],{variants:{size:{[Q.sm]:"size-7",[Q.md]:"size-8",[Q.lg]:"size-10"}},defaultVariants:{size:Q.md}}),Qs=Ut("grid grid-cols-7",{variants:{size:{[Q.sm]:"gap-0",[Q.md]:"gap-0",[Q.lg]:"gap-0"}},defaultVariants:{size:Q.md}}),Zs=Ut("text-center font-semibold uppercase tracking-wide text-muted-foreground",{variants:{size:{[Q.sm]:"py-1 text-[11px]",[Q.md]:"py-1.5 text-xs",[Q.lg]:"py-2 text-sm"}},defaultVariants:{size:Q.md}}),Es=Ut(["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:{[Q.sm]:"size-7 text-xs",[Q.md]:"size-9 text-sm",[Q.lg]:"size-10 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:Q.md,state:"default"}}),Zb=Ut("rounded-md border border-transparent",{variants:{size:{[Q.sm]:"size-7",[Q.md]:"size-9",[Q.lg]:"size-10"}},defaultVariants:{size:Q.md}}),Ys=["Su","Mo","Tu","We","Th","Fr","Sa"],Eb=["January","February","March","April","May","June","July","August","September","October","November","December"],Ct=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Fr=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},Ds=qb(({className:e,size:t="md",cellSize:r,mode:o="single",value:n,defaultValue:i,onChange:s,rangeValue:l,onRangeChange:d,viewMonth:m,onViewMonthChange:c,minDate:u,maxDate:g,disabledDates:v=[],weekStartsOn:b=1,highlightToday:T=!0,...M},z)=>{let p=f(t)??Q.md,h=f(r??p)??p,[x,H]=Vs(n??i??null),[k,B]=Vs(n??i??new Date),R=m??k,Y=Ir((y)=>{if(c){let P=typeof y==="function"?y(m??k):y;c(P)}else B((P)=>{return typeof y==="function"?y(P):y})},[m,k,c]),K=n!==void 0?n:x,X=u?Ct(u):null,j=g?Ct(g):null;Qb(()=>{if(n!==void 0){if(H(n??null),n&&!m)B(n)}},[n,m]);let se=Ir((y,P)=>{return(new Date(y,P,1).getDay()-b+7)%7},[b]),V=$s(()=>{let y=R.getFullYear(),P=R.getMonth(),C=se(y,P),oe=new Date(y,P+1,0).getDate(),_=[];for(let O=0;O<C;O+=1)_.push({key:`leading-${y}-${P}-${O}`,date:null});for(let O=1;O<=oe;O+=1)_.push({key:`day-${y}-${P}-${O}`,date:new Date(y,P,O)});let Ce=(7-_.length%7)%7;for(let O=0;O<Ce;O+=1)_.push({key:`trailing-${y}-${P}-${O}`,date:null});return _},[R,se]),J=Ir((y)=>{let P=Ct(y);if(X&&P<X)return!0;if(j&&P>j)return!0;return v.some((C)=>Fr(P,Ct(C)))},[X,j,v]),S=Ir((y)=>{if(J(y))return"disabled";if(o==="range"&&l){let{from:P,to:C}=l;if(P&&Fr(y,P))return"rangeStart";if(C&&Fr(y,C))return"rangeEnd";if(P&&C){let oe=Ct(y),_=Ct(P),Ce=Ct(C);if(oe>_&&oe<Ce)return"range"}}if(o==="single"&&K&&Fr(y,K))return"selected";if(T&&Fr(y,new Date))return"today";return"default"},[K,T,J,o,l]),re=Ir((y)=>{if(J(y))return;let P=new Date(y);if(o==="range"){if(!l?.from||l.from&&l.to)d?.({from:P,to:void 0});else{let C=Ct(l.from);if(Ct(P)<C)d?.({from:P,to:l.from});else d?.({from:l.from,to:P})}return}if(n===void 0)H(P);s?.(P)},[J,o,s,d,l,n]),L=Ir((y)=>{Y((P)=>{let C=new Date(P);return C.setMonth(C.getMonth()+y),C})},[Y]),W=$s(()=>{return[...Ys.slice(b),...Ys.slice(0,b)]},[b]);return qe("div",{ref:z,className:a(Xs({size:p}),e),...M,children:[qe("div",{className:a(Js({size:p})),children:[qe("button",{type:"button",onClick:()=>L(-1),className:a(_a({size:p})),"aria-label":"Previous month",children:qe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:qe("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),qe("span",{className:a(qs({size:p})),children:[Eb[R.getMonth()]," ",R.getFullYear()]},void 0,!0,void 0,this),qe("button",{type:"button",onClick:()=>L(1),className:a(_a({size:p})),"aria-label":"Next month",children:qe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:qe("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),qe("div",{className:a(Qs({size:p})),children:[W.map((y)=>qe("div",{className:a(Zs({size:h})),children:y},y,!1,void 0,this)),V.map((y)=>{if(!y.date)return qe("div",{"aria-hidden":"true",className:a(Zb({size:h}))},y.key,!1,void 0,this);let P=y.date,C=S(P);return qe("button",{type:"button",onClick:()=>re(P),disabled:C==="disabled",className:a(Es({size:h,state:C})),children:P.getDate()},y.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Ds.displayName="Calendar";import{Slot as Gr}from"@radix-ui/react-slot";import{cva as Db}from"class-variance-authority";import{forwardRef as Or}from"react";import{jsxDEV as Wr}from"react/jsx-dev-runtime";var pn={default:"default",muted:"muted",danger:"danger"},js=Db("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[pn.default]:"border-border",[pn.muted]:"border-border bg-muted/70",[pn.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:pn.default}}),el=Or(({asChild:e=!1,className:t,variant:r,...o},n)=>{return Wr(e?Gr:"div",{ref:n,className:a(js({variant:r}),t),...o},void 0,!1,void 0,this)});el.displayName="Card";var tl=Or(({asChild:e=!1,className:t,...r},o)=>{return Wr(e?Gr:"div",{ref:o,className:a("flex flex-col gap-1.5 border-border border-b p-4",t),...r},void 0,!1,void 0,this)});tl.displayName="CardHeader";var rl=Or(({asChild:e=!1,className:t,...r},o)=>{return Wr(e?Gr:"div",{ref:o,className:a("p-4",t),...r},void 0,!1,void 0,this)});rl.displayName="CardContent";var ol=Or(({asChild:e=!1,className:t,...r},o)=>{return Wr(e?Gr:"div",{ref:o,className:a("flex items-center border-border border-t p-4",t),...r},void 0,!1,void 0,this)});ol.displayName="CardFooter";var nl=Or(({asChild:e=!1,className:t,...r},o)=>{return Wr(e?Gr:"h3",{ref:o,className:a("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});nl.displayName="CardTitle";var al=Or(({asChild:e=!1,className:t,...r},o)=>{return Wr(e?Gr:"p",{ref:o,className:a("text-muted-foreground text-sm",t),...r},void 0,!1,void 0,this)});al.displayName="CardDescription";import*as gn from"@radix-ui/react-checkbox";import{cva as jb}from"class-variance-authority";import{Check as ey,Minus as ty}from"lucide-react";import{forwardRef as ry}from"react";import{jsxDEV as fn}from"react/jsx-dev-runtime";var wt={sm:"sm",md:"md",lg:"lg"},_r={default:"default",error:"error",success:"success"},sl=jb("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] 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:{[wt.sm]:"h-4 w-4",[wt.md]:"h-5 w-5",[wt.lg]:"h-6 w-6"},status:{[_r.default]:"enabled:hover:border-primary/70",[_r.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",[_r.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:wt.md,status:_r.default}}),il={[wt.sm]:"size-3.5",[wt.md]:"size-3.5",[wt.lg]:"size-4"},ll=ry(({className:e,size:t=wt.md,status:r=_r.default,checked:o,disabled:n,...i},s)=>{let l=f(t);return fn(gn.Root,{ref:s,checked:o,disabled:n,className:a(sl({size:l,status:r}),e),...i,children:fn(gn.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:o==="indeterminate"?fn(ty,{className:il[l]},void 0,!1,void 0,this):fn(ey,{className:il[l]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ll.displayName="Checkbox";import{cva as Kt}from"class-variance-authority";import{forwardRef as oy,useCallback as ny,useState as ay}from"react";import{jsxDEV as Ge,Fragment as ml}from"react/jsx-dev-runtime";var D={sm:"sm",md:"md",lg:"lg"},Ua={default:"default",ghost:"ghost"},dl=Kt("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[D.sm]:"text-xs",[D.md]:"text-sm",[D.lg]:"text-base"},variant:{[Ua.default]:"bg-muted border border-border",[Ua.ghost]:"bg-transparent"}},defaultVariants:{size:D.md,variant:Ua.default}}),ul=Kt("flex items-center justify-between border-b border-border bg-muted",{variants:{size:{[D.sm]:"px-2.5 py-1.5 text-xs",[D.md]:"px-4 py-2 text-sm",[D.lg]:"px-5 py-2.5 text-base"}},defaultVariants:{size:D.md}}),cl=Kt("text-muted-foreground font-medium",{variants:{size:{[D.sm]:"text-[11px]",[D.md]:"text-xs",[D.lg]:"text-sm"}},defaultVariants:{size:D.md}}),pl=Kt(["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:{[D.sm]:"px-2 py-1 text-xs",[D.md]:"px-2.5 py-1 text-xs",[D.lg]:"px-3 py-1.5 text-sm"},copied:{true:"text-success",false:""}},defaultVariants:{size:D.md,copied:!1}}),fl=Kt("overflow-x-auto",{variants:{size:{[D.sm]:"p-2.5",[D.md]:"p-4",[D.lg]:"p-5"}},defaultVariants:{size:D.md}}),gl=Kt("text-foreground",{variants:{size:{[D.sm]:"",[D.md]:"",[D.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:D.md,showLineNumbers:!1}}),bl=Kt("block",{variants:{size:{[D.sm]:"min-h-[1.25rem]",[D.md]:"min-h-[1.5rem]",[D.lg]:"min-h-[1.75rem]"},highlighted:{true:"bg-primary/10 -mx-4 px-4",false:""}},defaultVariants:{size:D.md,highlighted:!1}}),yl=Kt("inline-block text-right text-muted-foreground select-none",{variants:{size:{[D.sm]:"w-6 mr-2 text-[11px]",[D.md]:"w-8 mr-4 text-xs",[D.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:D.md}}),vl=oy(({className:e,code:t,language:r,showLineNumbers:o=!1,highlightedLines:n=[],showCopy:i=!0,size:s="md",variant:l="default",onCopy:d,...m},c)=>{let u=f(s),[g,v]=ay(!1),b=ny(async()=>{try{await navigator.clipboard.writeText(t),v(!0),d?.(t),setTimeout(()=>v(!1),2000)}catch(z){}},[t,d]),T=t.split(`
|
|
3
|
-
`),M=new Set(n);return Ge("div",{ref:c,className:a(dl({size:u,variant:l}),e),...m,children:[(r||i)&&Ge("div",{className:a(ul({size:u})),children:[Ge("span",{className:a(cl({size:u})),children:r},void 0,!1,void 0,this),i&&Ge("button",{type:"button",onClick:
|
|
4
|
-
`]},`line-${String(p)}`,!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)});vl.displayName="CodeBlock";import*as Ur from"@radix-ui/react-collapsible";import{cva as iy}from"class-variance-authority";import{forwardRef as sy}from"react";import{jsxDEV as dy}from"react/jsx-dev-runtime";var Tl=iy("gs-collapsible-content overflow-hidden"),ly=Ur.Root,my=Ur.CollapsibleTrigger,hl=sy(({className:e,...t},r)=>dy(Ur.CollapsibleContent,{ref:r,className:a(Tl(),e),...t},void 0,!1,void 0,this));hl.displayName="CollapsibleContent";import*as $t from"@radix-ui/react-dialog";import{cva as it}from"class-variance-authority";import{createContext as py,forwardRef as gt,useCallback as zl,useContext as fy,useId as gy,useLayoutEffect as by,useMemo as yy,useState as Va}from"react";import{useCallback as uy,useEffect as cy,useRef as Pl}from"react";function xo(e,t,r={}){let{enabled:o=!0,preventDefault:n=!0,stopPropagation:i=!1,target:s="global"}=r,l=Pl(t);l.current=t;let d=Pl([]),m=Array.isArray(e)?e:[e];d.current=m.map((u)=>({combo:u,def:Ka(u)}));let c=uy((u)=>{if(!o)return;for(let{combo:g,def:v}of d.current)if($a(u,v)){if(n)u.preventDefault();if(i)u.stopPropagation();l.current(u,g);return}},[o,n,i]);cy(()=>{if(!o)return;let u=s==="global"?document:s.current;if(!u)return;return u.addEventListener("keydown",c),()=>{u.removeEventListener("keydown",c)}},[o,c,s])}import{jsxDEV as ve,Fragment as Ty}from"react/jsx-dev-runtime";var bn={sm:F.sm,md:F.md,lg:F.lg},Ml=it(["gs-dialog-content fixed left-1/2 top-1/2 z-50","w-full border border-border rounded-xl bg-background","overflow-hidden shadow-[var(--shadow-xl)]"],{variants:{size:{[bn.sm]:"max-w-sm",[bn.md]:"max-w-lg",[bn.lg]:"max-w-2xl"}},defaultVariants:{size:bn.md}}),Nl=it(["gs-dialog-overlay fixed inset-0 z-50 bg-black/50 backdrop-blur-sm"]),Ll=it(["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:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70"]),xl=it(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),Rl=it(["py-6 text-center text-sm text-muted-foreground"]),Cl=it(["overflow-hidden"]),wl=it(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),yn={default:"default",danger:"danger"},Hl=it(["relative flex items-center gap-2 rounded-lg px-2 py-2","text-sm cursor-pointer select-none","outline-none transition-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:border-transparent data-[disabled=true]:bg-muted/40 data-[disabled=true]:text-muted-foreground/70"],{variants:{selected:{true:"bg-primary/10 text-primary",false:"hover:bg-accent hover:text-accent-foreground"},variant:{[yn.default]:"text-foreground",[yn.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{selected:!1,variant:yn.default}}),kl=it(["-mx-1 my-1 h-px bg-border"]),Sl=it(["ml-auto text-xs tracking-widest text-muted-foreground"]),Al=it(["flex items-center justify-center py-6"]),Bl=py(null),vn=()=>{let e=fy(Bl);if(!e)throw Error("useCommand must be used within a Command");return e},Ya=gt(({className:e,children:t,loop:r=!0,...o},n)=>{let[i,s]=Va(""),[l,d]=Va(0),[m,c]=Va({}),u=zl((b,T)=>{c((M)=>{if(M[b]===T)return M;return{...M,[b]:T}})},[]),g=zl((b)=>{c((T)=>{if(!(b in T))return T;let M={...T};return delete M[b],M})},[]),v=yy(()=>{return Object.values(m).filter(Boolean).length},[m]);return ve(Bl.Provider,{value:{search:i,setSearch:s,selectedIndex:l,setSelectedIndex:d,visibleItemsCount:v,setItemVisible:u,removeItem:g},children:ve("div",{ref:n,className:a("flex flex-col overflow-hidden rounded-xl bg-card",e),...o,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ya.displayName="Command";var Il=gt(({children:e,size:t,showOverlay:r=!0,portal:o=ie,portalContainer:n,forceMount:i=!1,...s},l)=>{let d=ve(Ty,{children:[r?ve($t.Overlay,{forceMount:i?!0:void 0,className:a(Nl())},void 0,!1,void 0,this):null,ve($t.Content,{ref:l,forceMount:i?!0:void 0,className:a(Ml({size:t})),children:ve(Ya,{children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return ve($t.Root,{...s,children:o?ve($t.Portal,{forceMount:i?!0:void 0,container:n??void 0,children:d},void 0,!1,void 0,this):d},void 0,!1,void 0,this)});Il.displayName="CommandDialog";var Fl=gt(({className:e,icon:t,...r},o)=>{let{search:n,setSearch:i,setSelectedIndex:s}=vn();return ve("div",{className:"flex items-center border-border border-b px-3",children:[t&&ve("span",{className:"mr-2 shrink-0 text-muted-foreground",children:t},void 0,!1,void 0,this),ve("input",{ref:o,value:n,onChange:(l)=>{i(l.target.value),s(0)},className:a(Ll(),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Fl.displayName="CommandInput";var Gl=gt(({className:e,children:t,...r},o)=>{return ve("div",{ref:o,className:a(xl(),e),...r,children:t},void 0,!1,void 0,this)});Gl.displayName="CommandList";var Ol=gt(({className:e,children:t="No results found.",...r},o)=>{let{visibleItemsCount:n}=vn();if(n>0)return null;return ve("div",{ref:o,className:a(Rl(),e),...r,children:t},void 0,!1,void 0,this)});Ol.displayName="CommandEmpty";var Wl=gt(({className:e,heading:t,children:r,...o},n)=>{return ve("div",{ref:n,className:a(Cl(),e),...o,children:[t&&ve("div",{className:a(wl()),children:t},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});Wl.displayName="CommandGroup";var _l=gt(({className:e,disabled:t,selected:r=!1,onSelect:o,children:n,keywords:i,variant:s,...l},d)=>{let{search:m,removeItem:c,setItemVisible:u}=vn(),g=gy(),b=(()=>{if(!m)return!0;let T=m.toLowerCase();if((typeof n==="string"?n.toLowerCase():"").includes(T))return!0;if(i?.some((z)=>z.toLowerCase().includes(T)))return!0;return!1})();if(by(()=>{return u(g,b),()=>{c(g)}},[b,g,c,u]),!b)return null;return ve("div",{ref:d,role:"option","aria-selected":r,"aria-disabled":t,"data-disabled":t,"data-selected":r,onClick:()=>!t&&o?.(),onKeyDown:(T)=>{if(T.key==="Enter"&&!t)T.preventDefault(),o?.()},tabIndex:t?-1:0,className:a(Hl({selected:r,variant:s}),e),...l,children:n},void 0,!1,void 0,this)});_l.displayName="CommandItem";var Ul=gt(({className:e,...t},r)=>{return ve("div",{ref:r,className:a(kl(),e),...t},void 0,!1,void 0,this)});Ul.displayName="CommandSeparator";var Kl=gt(({className:e,children:t,...r},o)=>{return ve("span",{ref:o,className:a(Sl(),e),...r,children:t},void 0,!1,void 0,this)});Kl.displayName="CommandShortcut";var $l=gt(({className:e,children:t,...r},o)=>{return ve("div",{ref:o,className:a(Al(),e),...r,children:t},void 0,!1,void 0,this)});$l.displayName="CommandLoading";var vy=({key:e,modifier:t="meta",callback:r})=>{xo(`${t}+${e}`,r)};import*as I from"@radix-ui/react-context-menu";import{cva as dr}from"class-variance-authority";import{Check as hy,ChevronRight as Py,Circle as zy}from"lucide-react";import{createContext as Vl,forwardRef as Vt,useContext as ur}from"react";import{jsxDEV as pe}from"react/jsx-dev-runtime";var q={sm:F.sm,md:F.md,lg:F.lg},Tn={default:"default",danger:"danger"},cr=Vl(q.md),Yl=Vl(void 0),Xa=dr("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)]"),Ja=dr("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-none data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{size:{[q.sm]:"h-7 gap-1.5 px-2 text-xs [&_svg]:size-3.5",[q.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[q.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Tn.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Tn.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:q.md,variant:Tn.default}}),Xl=dr("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[q.sm]:"h-7 pl-7 pr-2 text-xs",[q.md]:"h-8 pl-8 pr-2 text-sm",[q.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:q.md}}),Jl=dr("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[q.sm]:"h-7 pl-7 pr-2 text-xs",[q.md]:"h-8 pl-8 pr-2 text-sm",[q.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:q.md}}),ql=dr("font-semibold text-muted-foreground",{variants:{size:{[q.sm]:"px-2 py-1 text-[11px]",[q.md]:"px-2 py-1.5 text-xs",[q.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:q.md}}),Ql=dr("-mx-1 my-1 h-px bg-border/50"),Zl=dr("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[q.sm]:"text-[11px]",[q.md]:"text-xs",[q.lg]:"text-xs"}},defaultVariants:{size:q.md}}),El={[q.sm]:"absolute left-2 flex size-3.5 items-center justify-center",[q.md]:"absolute left-2 flex size-3.5 items-center justify-center",[q.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},My={[q.sm]:"size-3",[q.md]:"size-3.5",[q.lg]:"size-4"},Ny={[q.sm]:"size-1.5 fill-current",[q.md]:"size-2 fill-current",[q.lg]:"size-2.5 fill-current"},Dl=({size:e,...t})=>{let r=f(e??q.md),o=e===void 0?void 0:r;return pe(Yl.Provider,{value:o,children:pe(I.Root,{...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Dl.displayName=I.Root.displayName;var Ly=I.Trigger,xy=I.Group,Ry=I.Portal,Cy=I.Sub,wy=I.RadioGroup,jl=Vt(({className:e,inset:t,children:r,...o},n)=>{let i=ur(cr),s=f(i);return pe(I.SubTrigger,{ref:n,className:a(Ja({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,pe(Py,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});jl.displayName=I.SubTrigger.displayName;var em=Vt(({className:e,sideOffset:t=nt,portal:r=ie,portalContainer:o,...n},i)=>{let s=pe(I.SubContent,{ref:i,sideOffset:t,className:a(Xa(),e),...n},void 0,!1,void 0,this);if(!r)return s;return pe(I.Portal,{container:o??void 0,children:s},void 0,!1,void 0,this)});em.displayName=I.SubContent.displayName;var tm=Vt(({className:e,size:t,portal:r=ie,portalContainer:o,...n},i)=>{let s=ur(Yl),l=f(t??s??q.md),d=pe(I.Content,{ref:i,className:a(Xa(),e),...n},void 0,!1,void 0,this);return pe(cr.Provider,{value:l,children:r?pe(I.Portal,{container:o??void 0,children:d},void 0,!1,void 0,this):d},void 0,!1,void 0,this)});tm.displayName=I.Content.displayName;var rm=Vt(({className:e,inset:t,variant:r,...o},n)=>{let i=ur(cr),s=f(i);return pe(I.Item,{ref:n,className:a(Ja({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});rm.displayName=I.Item.displayName;var om=Vt(({className:e,children:t,checked:r,...o},n)=>{let i=ur(cr),s=f(i)??q.md;return pe(I.CheckboxItem,{ref:n,className:a(Xl({size:s}),e),checked:r,...o,children:[pe("span",{className:El[s],children:pe(I.ItemIndicator,{children:pe(hy,{className:My[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)});om.displayName=I.CheckboxItem.displayName;var nm=Vt(({className:e,children:t,...r},o)=>{let n=ur(cr),i=f(n)??q.md;return pe(I.RadioItem,{ref:o,className:a(Jl({size:i}),e),...r,children:[pe("span",{className:El[i],children:pe(I.ItemIndicator,{children:pe(zy,{className:Ny[i]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});nm.displayName=I.RadioItem.displayName;var am=Vt(({className:e,inset:t,...r},o)=>{let n=ur(cr),i=f(n);return pe(I.Label,{ref:o,className:a(ql({size:i}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});am.displayName=I.Label.displayName;var im=Vt(({className:e,...t},r)=>pe(I.Separator,{ref:r,className:a(Ql(),e),...t},void 0,!1,void 0,this));im.displayName=I.Separator.displayName;var sm=({className:e,...t})=>{let r=ur(cr),o=f(r);return pe("span",{className:a(Zl({size:o}),e),...t},void 0,!1,void 0,this)};sm.displayName="ContextMenuShortcut";import*as xe from"@radix-ui/react-dialog";import{cva as Hy}from"class-variance-authority";import{X as ky}from"lucide-react";import{createContext as Sy,forwardRef as hn,useCallback as Ay,useContext as By,useEffect as Iy,useState as lm}from"react";import{jsxDEV as $e,Fragment as Wy}from"react/jsx-dev-runtime";var pr={sm:F.sm,md:F.md,lg:F.lg,full:"full"},Fy=160,mm=Sy(!1),Ro=({children:e,open:t,defaultOpen:r=!1,onOpenChange:o,...n})=>{let[i,s]=lm(r),l=t!==void 0,d=l?t:i,m=Ay((c)=>{if(!l)s(c);o?.(c)},[l,o]);return $e(mm.Provider,{value:d,children:$e(xe.Root,{open:d,onOpenChange:m,...n,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},Gy=xe.Trigger,Pn=xe.Portal,Oy=xe.Close,qa=xe.Content,Co=hn(({className:e,...t},r)=>$e(xe.Overlay,{ref:r,className:a("gs-dialog-overlay",Wt,e),...t},void 0,!1,void 0,this));Co.displayName="DialogOverlay";var dm=Hy("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 rounded-[var(--radius)] border border-border bg-card p-6 text-foreground shadow-[var(--shadow-xl)]",{variants:{size:{[pr.sm]:"max-w-sm",[pr.md]:"max-w-md",[pr.lg]:"max-w-lg",[pr.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:pr.md}}),zn=hn(({className:e,children:t,size:r=pr.md,showClose:o=!0,showOverlay:n=!0,portal:i=ie,portalContainer:s,forceMount:l=!1,...d},m)=>{let c=By(mm),[u,g]=lm(l||c),v=f(r),b=be();if(Iy(()=>{if(l||c){g(!0);return}let z=setTimeout(()=>{g(!1)},b?0:Fy);return()=>{clearTimeout(z)}},[l,c,b]),!(l||c||u))return null;let M=$e(Wy,{children:[n?$e(Co,{forceMount:!0},void 0,!1,void 0,this):null,$e(xe.Content,{ref:m,forceMount:!0,className:a(dm({size:v}),e),...d,children:[t,o&&$e(xe.Close,{className:nn,children:[$e(ky,{className:"size-4"},void 0,!1,void 0,this),$e("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(!i)return M;return $e(Pn,{forceMount:!0,container:s??void 0,children:M},void 0,!1,void 0,this)});zn.displayName="DialogContent";var um=({className:e,...t})=>$e("div",{className:a("flex flex-col space-y-1.5 text-center sm:text-left",e),...t},void 0,!1,void 0,this);um.displayName="DialogHeader";var cm=({className:e,...t})=>$e("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);cm.displayName="DialogFooter";var Mn=hn(({className:e,...t},r)=>$e(xe.Title,{ref:r,className:a("font-semibold text-lg leading-none tracking-tight",e),...t},void 0,!1,void 0,this));Mn.displayName="DialogTitle";var pm=hn(({className:e,...t},r)=>$e(xe.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));pm.displayName="DialogDescription";import{cva as Za}from"class-variance-authority";import{X as _y}from"lucide-react";import{forwardRef as Nn}from"react";import{Drawer as yt}from"vaul";import{jsxDEV as He}from"react/jsx-dev-runtime";var bt={sm:"sm",md:"md",lg:"lg",full:"full"},Uy={[bt.sm]:"sm:max-w-sm",[bt.md]:"sm:max-w-md",[bt.lg]:"sm:max-w-lg",[bt.full]:"sm:max-w-full"},Ky={[bt.sm]:"sm:max-h-[30vh]",[bt.md]:"sm:max-h-[50vh]",[bt.lg]:"sm:max-h-[70vh]",[bt.full]:"sm:max-h-full"},bm=Za(a("gs-sheet-overlay",Wt)),ym=Za(["group/drawer-content fixed z-50 flex h-auto flex-col border border-border bg-card 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"]),Qa=Za("shrink-0 rounded-full bg-muted-foreground/25 transition-colors duration-150 hover:bg-muted-foreground/40",{variants:{direction:{top:"h-1.5 w-[60px]",bottom:"h-1.5 w-[60px]",left:"h-[60px] w-1.5",right:"h-[60px] w-1.5"}},defaultVariants:{direction:"bottom"}}),fm={top:"flex justify-center pb-2 pt-4",bottom:"flex justify-center pt-4 pb-2",left:"absolute right-0 top-0 flex h-full items-center pr-2 pl-0",right:"absolute left-0 top-0 flex h-full items-center pl-2 pr-0"},$y=yt.Root,Vy=yt.Trigger,Yy=yt.Close,vm=yt.Portal,gm=yt.Handle,Ea=Nn(({className:e,...t},r)=>He(yt.Overlay,{ref:r,className:a(bm(),e),...t},void 0,!1,void 0,this));Ea.displayName="DrawerOverlay";var Tm=Nn(({size:e=bt.md,showClose:t=!1,direction:r="bottom",className:o,children:n,...i},s)=>{let d=r==="left"||r==="right"?Uy[e]:Ky[e];return He(vm,{children:[He(Ea,{},void 0,!1,void 0,this),He(yt.Content,{ref:s,className:a(ym(),d,o),...i,children:[r!=="top"&&He("div",{className:a(fm[r]),children:He(gm,{className:"!m-0 !h-auto !w-auto !rounded-none !bg-transparent !opacity-100",children:He("div",{className:a(Qa({direction:r}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),n,r==="top"&&He("div",{className:a(fm[r]),children:He(gm,{className:"!m-0 !h-auto !w-auto !rounded-none !bg-transparent !opacity-100",children:He("div",{className:a(Qa({direction:r}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t&&He(yt.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:[He(_y,{className:"size-4"},void 0,!1,void 0,this),He("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)});Tm.displayName="DrawerContent";var hm=({className:e,...t})=>He("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);hm.displayName="DrawerHeader";var Pm=({className:e,...t})=>He("div",{className:a("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);Pm.displayName="DrawerFooter";var zm=Nn(({className:e,...t},r)=>He(yt.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));zm.displayName="DrawerTitle";var Mm=Nn(({className:e,...t},r)=>He(yt.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Mm.displayName="DrawerDescription";import*as G from"@radix-ui/react-dropdown-menu";import{cva as fr}from"class-variance-authority";import{Check as Xy,ChevronRight as Jy,Circle as qy}from"lucide-react";import{createContext as Qy,forwardRef as Yt,useContext as Kr}from"react";import{jsxDEV as Te}from"react/jsx-dev-runtime";var Z={sm:F.sm,md:F.md,lg:F.lg},Ln={default:"default",danger:"danger"},gr=Qy(Z.md),Da=fr("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)]"),ja=fr("relative flex cursor-pointer select-none items-center rounded-md outline-none data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{size:{[Z.sm]:"h-7 gap-1.5 px-2 text-xs [&_svg]:size-3.5",[Z.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[Z.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Ln.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Ln.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:Z.md,variant:Ln.default}}),Nm=fr("relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[Z.sm]:"h-7 pl-7 pr-2 text-xs",[Z.md]:"h-8 pl-8 pr-2 text-sm",[Z.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:Z.md}}),Lm=fr("relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[Z.sm]:"h-7 pl-7 pr-2 text-xs",[Z.md]:"h-8 pl-8 pr-2 text-sm",[Z.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:Z.md}}),xm=fr("font-semibold text-muted-foreground",{variants:{size:{[Z.sm]:"px-2 py-1 text-[11px]",[Z.md]:"px-2 py-1.5 text-xs",[Z.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:Z.md}}),Rm=fr("-mx-1 my-1 h-px bg-border/50"),Cm=fr("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[Z.sm]:"text-[11px]",[Z.md]:"text-xs",[Z.lg]:"text-xs"}},defaultVariants:{size:Z.md}}),wm={[Z.sm]:"absolute left-2 flex size-3.5 items-center justify-center",[Z.md]:"absolute left-2 flex size-3.5 items-center justify-center",[Z.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},Zy={[Z.sm]:"size-3",[Z.md]:"size-3.5",[Z.lg]:"size-4"},Ey={[Z.sm]:"size-1.5 fill-current",[Z.md]:"size-2 fill-current",[Z.lg]:"size-2.5 fill-current"},Dy=G.Root,jy=G.Trigger,ev=G.Group,tv=G.Portal,rv=G.Sub,ov=G.RadioGroup,Hm=Yt(({className:e,inset:t,children:r,...o},n)=>{let i=Kr(gr),s=f(i);return Te(G.SubTrigger,{ref:n,className:a(ja({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,Te(Jy,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Hm.displayName=G.SubTrigger.displayName;var km=Yt(({className:e,sideOffset:t=nt,portal:r=ie,portalContainer:o,...n},i)=>{let s=Te(G.SubContent,{ref:i,sideOffset:t,className:a(Da(),e),...n},void 0,!1,void 0,this);if(!r)return s;return Te(G.Portal,{container:o??void 0,children:s},void 0,!1,void 0,this)});km.displayName=G.SubContent.displayName;var Sm=Yt(({className:e,sideOffset:t=nt,size:r,portal:o=ie,portalContainer:n,...i},s)=>{let l=f(r)??Z.md,d=Te(G.Content,{ref:s,sideOffset:t,className:a(Da(),e),...i},void 0,!1,void 0,this);return Te(gr.Provider,{value:l,children:o?Te(G.Portal,{container:n??void 0,children:d},void 0,!1,void 0,this):d},void 0,!1,void 0,this)});Sm.displayName=G.Content.displayName;var Am=Yt(({className:e,inset:t,variant:r,...o},n)=>{let i=Kr(gr),s=f(i);return Te(G.Item,{ref:n,className:a(ja({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});Am.displayName=G.Item.displayName;var Bm=Yt(({className:e,children:t,checked:r,...o},n)=>{let i=Kr(gr),s=f(i)??Z.md;return Te(G.CheckboxItem,{ref:n,className:a(Nm({size:s}),e),checked:r,...o,children:[Te("span",{className:wm[s],children:Te(G.ItemIndicator,{children:Te(Xy,{className:Zy[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)});Bm.displayName=G.CheckboxItem.displayName;var Im=Yt(({className:e,children:t,...r},o)=>{let n=Kr(gr),i=f(n)??Z.md;return Te(G.RadioItem,{ref:o,className:a(Lm({size:i}),e),...r,children:[Te("span",{className:wm[i],children:Te(G.ItemIndicator,{children:Te(qy,{className:Ey[i]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});Im.displayName=G.RadioItem.displayName;var Fm=Yt(({className:e,inset:t,...r},o)=>{let n=Kr(gr),i=f(n);return Te(G.Label,{ref:o,className:a(xm({size:i}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Fm.displayName=G.Label.displayName;var Gm=Yt(({className:e,...t},r)=>Te(G.Separator,{ref:r,className:a(Rm(),e),...t},void 0,!1,void 0,this));Gm.displayName=G.Separator.displayName;var Om=({className:e,...t})=>{let r=Kr(gr),o=f(r);return Te("span",{className:a(Cm({size:o}),e),...t},void 0,!1,void 0,this)};Om.displayName="DropdownMenuShortcut";import{cva as Ho}from"class-variance-authority";import{forwardRef as nv}from"react";import{jsxDEV as wo}from"react/jsx-dev-runtime";var ke={sm:"sm",md:"md",lg:"lg"},Wm=Ho("flex flex-col items-center justify-center text-center rounded-[var(--radius)] border border-dashed border-border/70 bg-muted/35",{variants:{size:{[ke.sm]:"gap-2 p-4",[ke.md]:"gap-4 p-8",[ke.lg]:"gap-6 p-12"}},defaultVariants:{size:ke.md}}),_m=Ho("flex items-center justify-center rounded-full border border-border/60 bg-muted/70 text-muted-foreground",{variants:{size:{[ke.sm]:"h-10 w-10 [&>svg]:h-4 [&>svg]:w-4",[ke.md]:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",[ke.lg]:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"}},defaultVariants:{size:ke.md}}),Um=Ho("font-semibold text-foreground",{variants:{size:{[ke.sm]:"text-sm",[ke.md]:"text-lg",[ke.lg]:"text-xl"}},defaultVariants:{size:ke.md}}),Km=Ho("text-muted-foreground max-w-sm",{variants:{size:{[ke.sm]:"text-xs",[ke.md]:"text-sm",[ke.lg]:"text-base"}},defaultVariants:{size:ke.md}}),$m=Ho("flex items-center gap-2 mt-2"),Vm=nv(({className:e,icon:t,title:r,description:o,actions:n,size:i=ke.md,children:s,...l},d)=>{let m=f(i);return wo("div",{ref:d,className:a(Wm({size:m}),e),...l,children:[t&&wo("div",{className:_m({size:m}),children:t},void 0,!1,void 0,this),r&&wo("h3",{className:Um({size:m}),children:r},void 0,!1,void 0,this),o&&wo("p",{className:Km({size:m}),children:o},void 0,!1,void 0,this),n&&wo("div",{className:$m(),children:n},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});Vm.displayName="EmptyState";import{cva as $r}from"class-variance-authority";import{Component as av,createElement as Ym}from"react";import{jsxDEV as Oe,Fragment as sv}from"react/jsx-dev-runtime";var Xm=$r(["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"},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"}}),Jm=$r(["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"},variant:{destructive:"bg-destructive/10 text-destructive",warning:"bg-warning/10 text-warning",info:"bg-info/10 text-info"}},defaultVariants:{size:"md",variant:"destructive"}}),qm=$r("font-semibold transition-colors duration-300",{variants:{size:{sm:"text-lg",md:"text-xl",lg:"text-2xl"},variant:{destructive:"text-destructive",warning:"text-warning",info:"text-info"}},defaultVariants:{size:"md",variant:"destructive"}}),Qm=$r("max-w-xl text-muted-foreground transition-all duration-200",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Zm=$r("mt-2 flex flex-wrap items-center justify-center gap-2"),Em=$r("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 Dm extends av{static displayName="ErrorBoundary";constructor(e){super(e);this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.props.onError?.(e,t)}handleReset=()=>{this.setState({hasError:!1,error:null}),this.props.onReset?.()};render(){let{children:e,fallback:t,showDetails:r=!1,size:o="md",variant:n="destructive",className:i,title:s="Something went wrong",description:l="An unexpected error occurred. Please try again.",icon:d,actions:m,resetLabel:c="Try again",hideReset:u=!1,renderDetails:g}=this.props;if(this.state.hasError&&this.state.error){let v={error:this.state.error,reset:this.handleReset};if(t){if(typeof t==="function")return Ym(t,v);return t}let b=null;if(m)b=typeof m==="function"?Ym(m,v):m;else if(!u){let M={destructive:"border-destructive/30 bg-destructive text-destructive-foreground hover:bg-destructive/90",warning:"border-warning/30 bg-warning text-warning-foreground hover:bg-warning/90",info:"border-info/30 bg-info text-info-foreground hover:bg-info/90"};b=Oe("button",{type:"button",onClick:this.handleReset,className:a("inline-flex items-center justify-center rounded-md border px-4 py-2 font-medium text-sm","transition-colors duration-150 ease-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",M[n]),children:c},void 0,!1,void 0,this)}let T=g?g(this.state.error):Oe(sv,{children:[Oe("strong",{children:"Error:"},void 0,!1,void 0,this)," ",this.state.error.message,this.state.error.stack&&Oe("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 Oe("div",{className:a(Xm({size:o,variant:n}),i),children:[Oe("div",{className:a(Jm({size:o,variant:n})),children:d??Oe(iv,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Oe("h3",{className:a(qm({size:o,variant:n})),children:s},void 0,!1,void 0,this),Oe("p",{className:a(Qm({size:o})),children:l},void 0,!1,void 0,this),b&&Oe("div",{className:a(Zm()),children:b},void 0,!1,void 0,this),r&&Oe("div",{className:a(Em()),children:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function iv(){return Oe("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:[Oe("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,void 0,this),Oe("line",{x1:"12",x2:"12",y1:"8",y2:"12"},void 0,!1,void 0,this),Oe("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 Xt}from"class-variance-authority";import{forwardRef as lv,useCallback as st,useRef as mv,useState as jm}from"react";import{jsxDEV as Ae}from"react/jsx-dev-runtime";var Re={sm:"sm",md:"md",lg:"lg"},ed=Xt(["relative flex flex-col items-center justify-center","rounded-xl border-2 border-dashed","shadow-[var(--shadow-xs)]","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","cursor-pointer","hover:border-primary/45 hover:bg-primary/8","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"],{variants:{size:{[Re.sm]:"min-h-28 p-5",[Re.md]:"min-h-36 p-8",[Re.lg]:"min-h-44 p-10"},isDragging:{true:"scale-[1.01] border-primary bg-primary/12 shadow-[var(--glow-brand-sm)]",false:"border-border bg-card/75"},disabled:{true:"cursor-not-allowed border-border/70 bg-muted/35 text-muted-foreground pointer-events-none",false:""},hasError:{true:"border-destructive bg-destructive/5",false:""}},defaultVariants:{size:Re.md,isDragging:!1,disabled:!1,hasError:!1}}),td=Xt("text-muted-foreground transition-colors duration-200",{variants:{size:{[Re.sm]:"mb-2 size-6",[Re.md]:"size-8 mb-3",[Re.lg]:"size-10 mb-4"},isDragging:{true:"text-primary",false:""}},defaultVariants:{size:Re.md,isDragging:!1}}),ei=Xt("text-center",{variants:{size:{[Re.sm]:"text-sm",[Re.md]:"text-sm",[Re.lg]:"text-base"}},defaultVariants:{size:Re.md}}),rd=Xt("mt-4 w-full space-y-2"),od=Xt(["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"]),nd=Xt("min-w-0 flex-1 truncate font-medium text-foreground",{variants:{size:{[Re.sm]:"text-sm",[Re.md]:"text-sm",[Re.lg]:"text-base"}},defaultVariants:{size:"md"}}),ad=Xt("text-muted-foreground",{variants:{size:{[Re.sm]:"text-xs",[Re.md]:"text-sm",[Re.lg]:"text-sm"}},defaultVariants:{size:"md"}}),id=Xt(["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"]),sd=lv(({className:e,size:t="md",disabled:r=!1,accept:o,multiple:n=!1,maxSize:i,maxFiles:s,value:l=[],onChange:d,onError:m,icon:c,title:u="Drop files here or click to upload",description:g,showFileList:v=!0,...b},T)=>{let M=f(t),[z,p]=jm(!1),[h,x]=jm(!1),H=mv(null),k=st((L)=>{if(L===0)return"0 Bytes";let W=1024,y=["Bytes","KB","MB","GB"],P=Math.floor(Math.log(L)/Math.log(W));return`${parseFloat((L/W**P).toFixed(2))} ${y[P]}`},[]),B=st((L)=>{let W=[...L];if(x(!1),o){let y=o.split(",").map((P)=>P.trim());if(W=W.filter((P)=>{return y.some((C)=>{if(C.startsWith("."))return P.name.toLowerCase().endsWith(C.toLowerCase());if(C.endsWith("/*"))return P.type.startsWith(C.slice(0,-1));return P.type===C})}),W.length<L.length)m?.("Some files were rejected due to file type"),x(!0)}if(i){let y=W.length;if(W=W.filter((P)=>P.size<=i),W.length<y)m?.(`File size must be less than ${k(i)}`),x(!0)}if(s&&W.length+l.length>s)W=W.slice(0,s-l.length),m?.(`Maximum ${s} files allowed`),x(!0);return W},[o,i,s,l.length,m,k]),R=st((L)=>{if(!L||L.length===0)return;let W=Array.from(L),y=B(W);if(y.length>0)if(n)d?.([...l,...y]);else d?.(y.slice(0,1))},[n,l,d,B]),Y=st((L)=>{L.preventDefault(),L.stopPropagation(),p(!0)},[]),K=st((L)=>{L.preventDefault(),L.stopPropagation(),p(!1)},[]),X=st((L)=>{L.preventDefault(),L.stopPropagation()},[]),j=st((L)=>{if(L.preventDefault(),L.stopPropagation(),p(!1),r)return;R(L.dataTransfer.files)},[r,R]),se=st((L)=>{if(R(L.target.files),H.current)H.current.value=""},[R]),V=st(()=>{if(!r)H.current?.click()},[r]),J=st((L)=>{if(L.key==="Enter"||L.key===" ")L.preventDefault(),V()},[V]),S=st((L)=>{let W=l.filter((y,P)=>P!==L);d?.(W)},[l,d]),re=Ae("svg",{className:a(td({size:M,isDragging:z})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ae("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 Ae("div",{ref:T,className:a("w-full",e),...b,children:[Ae("div",{role:"button",tabIndex:r?-1:0,onClick:V,onKeyDown:J,onDragEnter:Y,onDragLeave:K,onDragOver:X,onDrop:j,className:a(ed({size:M,isDragging:z,disabled:r,hasError:h})),children:[Ae("input",{ref:H,type:"file",accept:o,multiple:n,disabled:r,onChange:se,className:"sr-only"},void 0,!1,void 0,this),c||re,Ae("p",{className:a(ei({size:M}),"font-medium text-foreground"),children:u},void 0,!1,void 0,this),g&&Ae("p",{className:a(ei({size:M}),"mt-1 text-muted-foreground"),children:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v&&l.length>0&&Ae("div",{className:a(rd()),children:l.map((L,W)=>Ae("div",{className:a(od()),children:[Ae("svg",{className:"size-5 shrink-0 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ae("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),Ae("span",{className:a(nd({size:M})),children:L.name},void 0,!1,void 0,this),Ae("span",{className:a(ad({size:M})),children:k(L.size)},void 0,!1,void 0,this),Ae("button",{type:"button",onClick:(y)=>{y.stopPropagation(),S(W)},className:a(id()),"aria-label":`Remove ${L.name}`,children:Ae("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ae("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"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}-${W}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});sd.displayName="FileUpload";import{cva as dv}from"class-variance-authority";import{createContext as uv,forwardRef as xn,useCallback as ld,useContext as cv,useEffect as dd,useId as pv,useMemo as fv,useState as md}from"react";import{jsxDEV as br,Fragment as bv}from"react/jsx-dev-runtime";var Ze={sm:"sm",md:"md",lg:"lg"},ud=uv(null),ko=()=>{let e=cv(ud);if(!e)throw Error("useFormField must be used within a FormField");return e},cd=dv("flex flex-col",{variants:{size:{[Ze.sm]:"gap-1",[Ze.md]:"gap-1.5",[Ze.lg]:"gap-2"}},defaultVariants:{size:Ze.md}}),pd=xn(({className:e,size:t=Ze.md,error:r,disabled:o=!1,required:n=!1,children:i,...s},l)=>{let d=pv(),m=f(t),[c,u]=md([]),[g,v]=md([]),b=ld((z)=>{return u((p)=>p.includes(z)?p:[...p,z]),()=>{u((p)=>p.filter((h)=>h!==z))}},[]),T=ld((z)=>{return v((p)=>p.includes(z)?p:[...p,z]),()=>{v((p)=>p.filter((h)=>h!==z))}},[]),M=fv(()=>({id:d,size:m,error:r,disabled:o,required:n,descriptionIds:c,errorIds:g,registerDescriptionId:b,registerErrorId:T}),[c,o,m,r,g,d,b,T,n]);return br(ud.Provider,{value:M,children:br("div",{ref:l,className:a(cd({size:m}),e),...s,children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this)});pd.displayName="FormField";var gv={[Ze.sm]:"text-xs",[Ze.md]:"text-sm",[Ze.lg]:"text-base"},fd=xn(({className:e,htmlFor:t,children:r,...o},n)=>{let{id:i,size:s,disabled:l,required:d}=ko();return br("label",{ref:n,htmlFor:t??i,className:a("inline-block select-none font-medium text-foreground",gv[s],l&&"cursor-not-allowed opacity-60",e),...o,children:[r,d&&br("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});fd.displayName="FormFieldLabel";var gd={[Ze.sm]:"text-[11px]",[Ze.md]:"text-xs",[Ze.lg]:"text-sm"},bd=xn(({className:e,id:t,...r},o)=>{let{id:n,size:i,registerDescriptionId:s}=ko(),l=t??`${n}-description`;return dd(()=>{return s(l)},[l,s]),br("p",{ref:o,id:l,className:a("text-muted-foreground",gd[i],e),...r},void 0,!1,void 0,this)});bd.displayName="FormFieldDescription";var yd=xn(({className:e,children:t,id:r,...o},n)=>{let{id:i,size:s,error:l,registerErrorId:d}=ko(),m=t??l,c=r??`${i}-error`;if(dd(()=>{if(!m)return;return d(c)},[c,m,d]),!m)return null;return br("p",{ref:n,id:c,role:"alert",className:a("text-destructive",gd[s],e),...o,children:m},void 0,!1,void 0,this)});yd.displayName="FormFieldError";var vd=({children:e})=>{let{id:t,disabled:r,required:o,error:n,descriptionIds:i,errorIds:s}=ko(),l=[...i,...s].join(" ");return br(bv,{children:e({id:t,disabled:r,required:o,status:n||s.length>0?"error":"default","aria-describedby":l||void 0,"aria-invalid":n||s.length>0?!0:void 0})},void 0,!1,void 0,this)};vd.displayName="FormFieldControl";import*as Ht from"@radix-ui/react-hover-card";import{cva as yv}from"class-variance-authority";import{forwardRef as vv}from"react";import{jsxDEV as ti}from"react/jsx-dev-runtime";var Vr={sm:F.sm,md:F.md,lg:F.lg},Td=yv("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:{[Vr.sm]:"w-52 p-3 text-xs",[Vr.md]:"w-64 p-4 text-sm",[Vr.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:Vr.md}}),hd=({openDelay:e,closeDelay:t,...r})=>{let o=be();return ti(Ht.Root,{openDelay:o?0:e,closeDelay:o?0:t,...r},void 0,!1,void 0,this)};hd.displayName="HoverCard";var Tv=Ht.Trigger,Pd=vv(({className:e,align:t="center",sideOffset:r=nt,portal:o=ie,portalContainer:n,size:i=Vr.md,...s},l)=>{let d=f(i),m=ti(Ht.Content,{ref:l,align:t,sideOffset:r,className:a(Td({size:d}),e),...s},void 0,!1,void 0,this);if(!o)return m;return ti(Ht.Portal,{container:n??void 0,children:m},void 0,!1,void 0,this)});Pd.displayName=Ht.Content.displayName;import{cva as hv}from"class-variance-authority";import{X as Pv}from"lucide-react";import{forwardRef as zv,useRef as Mv,useState as Nv}from"react";import{jsxDEV as yr}from"react/jsx-dev-runtime";var So={default:"default",error:"error",success:"success"},le={sm:"sm",md:"md",lg:"lg"},Lv="Clear input",Md=hv("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] 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:{[So.default]:"focus-visible:ring-primary",[So.error]:"border-destructive focus-visible:ring-destructive",[So.success]:"border-success focus-visible:ring-success"},size:{[le.sm]:"h-8 px-2 text-xs",[le.md]:"h-10 px-3",[le.lg]:"h-11 px-4"}},defaultVariants:{status:So.default,size:le.md}}),xv={[le.sm]:"pl-7",[le.md]:"pl-9",[le.lg]:"pl-10"},Rv={[le.sm]:"pr-7",[le.md]:"pr-9",[le.lg]:"pr-10"},Cv={[le.sm]:"pr-12",[le.md]:"pr-16",[le.lg]:"pr-18"},wv={[le.sm]:"text-xs left-2",[le.md]:"text-sm left-3",[le.lg]:"text-sm left-3.5"},Hv={[le.sm]:"text-xs",[le.md]:"text-sm",[le.lg]:"text-sm"},kv={[le.sm]:"size-4",[le.md]:"size-5",[le.lg]:"size-5"};function zd(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var Nd=zv(({className:e,status:t=So.default,size:r=le.md,fullWidth:o=!1,prefix:n,suffix:i,clearable:s=!1,clearAriaLabel:l=Lv,onClear:d,onValueChange:m,disabled:c,readOnly:u,onChange:g,value:v,defaultValue:b,...T},M)=>{let z=Boolean(n),p=Boolean(i),h=f(r),x=Mv(null),H=kt(M,x),[k,B]=Nv(()=>zd(b)),R=v!==void 0,Y=R?zd(v):k,K=s&&!c&&!u&&Y.length>0,X=p||K,j=p&&K,se=(J)=>{let S=J.target.value;if(!R)B(S);m?.(S),g?.(J)},V=()=>{if(!R)B("");m?.("");let J=x.current;if(J)J.value="",J.dispatchEvent(new Event("input",{bubbles:!0})),J.focus();d?.()};return yr("div",{className:a("relative flex items-center",o&&"w-full"),children:[z&&yr("span",{className:a("absolute inset-y-0 flex items-center text-muted-foreground",wv[h]),children:n},void 0,!1,void 0,this),yr("input",{ref:H,className:a(Md({status:t,size:h}),z&&xv[h],j&&Cv[h],!j&&X&&Rv[h],e),disabled:c,readOnly:u,onChange:se,value:Y,...T},void 0,!1,void 0,this),X&&yr("span",{className:a("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",Hv[h]),children:[p&&yr("span",{className:"inline-flex items-center",children:i},void 0,!1,void 0,this),K&&yr("button",{type:"button","aria-label":l,onMouseDown:(J)=>J.preventDefault(),onClick:V,className:a("inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",kv[h]),children:yr(Pv,{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)});Nd.displayName="Input";import{cva as Iv}from"class-variance-authority";import{forwardRef as Fv}from"react";import{useSyncExternalStore as Sv}from"react";var Av=()=>ri(),Bv=()=>Ld;function Ao(){return Sv(xd,Av,Bv)}import{jsxDEV as Gv}from"react/jsx-dev-runtime";var Yr={sm:"sm",md:"md",lg:"lg"},Xr=Iv("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:{[Yr.sm]:"min-w-5 h-5 px-1 text-[11px]",[Yr.md]:"min-w-6 h-6 px-1.5 text-xs",[Yr.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:Yr.md}}),Rd=Fv(({className:e,size:t=Yr.md,combo:r,keys:o,children:n,...i},s)=>{let l=f(t),{isMac:d}=Ao(),m=r?Rn(r,d):o?Rn(o,d):n;return Gv("kbd",{ref:s,className:a(Xr({size:l}),e),...i,children:m},void 0,!1,void 0,this)});Rd.displayName="Kbd";import{cva as Ov}from"class-variance-authority";import{forwardRef as Wv}from"react";import{jsxDEV as Cd}from"react/jsx-dev-runtime";var Jr={sm:"sm",md:"md",lg:"lg"},wd=Ov("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:text-muted-foreground/70",{variants:{size:{[Jr.sm]:"text-xs",[Jr.md]:"text-sm",[Jr.lg]:"text-base"}},defaultVariants:{size:Jr.md}}),Hd=Wv(({className:e,size:t=Jr.md,required:r=!1,disabled:o=!1,children:n,htmlFor:i,...s},l)=>{let d=f(t);return Cd("label",{ref:l,htmlFor:i,className:a(wd({size:d}),o&&"cursor-not-allowed text-muted-foreground/70",e),"aria-disabled":o||void 0,...s,children:[n,r&&Cd("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Hd.displayName="Label";import{forwardRef as _v}from"react";import{jsxDEV as Uv}from"react/jsx-dev-runtime";var kd=_v((e,t)=>{return Uv(Gt,{ref:t,...e},void 0,!1,void 0,this)});kd.displayName="Loader";import*as Jt from"@radix-ui/react-popover";import{cva as qv}from"class-variance-authority";import{Check as Qv,ChevronDown as Zv,X as Ev}from"lucide-react";import{forwardRef as Dv,useCallback as St,useEffect as oi,useLayoutEffect as Bd,useMemo as Zr,useRef as Er,useState as Cn}from"react";import*as Ee from"@radix-ui/react-popover";import{cva as Kv}from"class-variance-authority";import{forwardRef as $v}from"react";import{jsxDEV as Sd}from"react/jsx-dev-runtime";var qr={sm:F.sm,md:F.md,lg:F.lg},Qr=Kv("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:{[qr.sm]:"w-56 p-3 text-sm",[qr.md]:"w-72 p-4 text-sm",[qr.lg]:"w-96 p-5 text-sm"}},defaultVariants:{size:qr.md}}),Vv=Ee.Root,Yv=Ee.Trigger,Xv=Ee.Anchor,Jv=Ee.Close,Ad=$v(({className:e,align:t="center",sideOffset:r=nt,portal:o=ie,portalContainer:n,size:i=qr.md,...s},l)=>{let d=f(i),m=Sd(Ee.Content,{ref:l,align:t,sideOffset:r,className:a(Qr({size:d}),e),...s},void 0,!1,void 0,this);if(o)return Sd(Ee.Portal,{container:n??void 0,children:m},void 0,!1,void 0,this);return m});Ad.displayName="PopoverContent";import{jsxDEV as me,Fragment as dT}from"react/jsx-dev-runtime";var te={sm:"sm",md:"md",lg:"lg"},Id=qv(["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:{[te.sm]:"min-h-8 px-2.5 py-1 text-xs",[te.md]:"min-h-10 px-3.5 py-1.5",[te.lg]:"min-h-11 px-4.5 py-2 text-sm"},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:te.md,status:"default"}}),jv={[te.sm]:"sm",[te.md]:"md",[te.lg]:"lg"},eT={[te.sm]:"min-h-7.5 py-1.5 px-2.5 text-xs",[te.md]:"min-h-9 py-2 px-3 text-sm",[te.lg]:"min-h-10 py-2.5 px-3.5 text-sm"},wn={[te.sm]:"size-3.5",[te.md]:"size-4",[te.lg]:"size-4"},tT={[te.sm]:"text-[11px]",[te.md]:"text-xs",[te.lg]:"text-xs"},rT=4,oT={[te.sm]:34,[te.md]:36,[te.lg]:40},nT={[te.sm]:5.8,[te.md]:6,[te.lg]:6.2},aT={[te.sm]:14,[te.md]:16,[te.lg]:18},iT={[te.sm]:5.6,[te.md]:5.8,[te.lg]:6},sT=(e,t)=>{return Math.ceil(oT[t]+Math.max(1,e.trim().length)*nT[t])},lT=(e,t)=>{let r=`+${e}`;return Math.ceil(aT[t]+r.length*iT[t])},mT=({containerWidth:e,badgeWidths:t,getSummaryWidth:r,gapPx:o=rT})=>{if(t.length===0)return{visibleCount:0,hiddenCount:0};if(e<=0)return{visibleCount:0,hiddenCount:t.length};let n=0,i=0;for(let s=0;s<t.length;s+=1){let l=t[s]??0,d=i>0,m=n+(d?o:0)+l,c=t.length-(s+1);if(c>0){let u=r(c),g=m>0?o:0;if(m+g+u<=e){n=m,i+=1;continue}break}if(m<=e)n=m,i+=1}return{visibleCount:i,hiddenCount:t.length-i}},Fd=Dv(({className:e,options:t,value:r,defaultValue:o=[],onValueChange:n,placeholder:i="Select options...",size:s=te.md,status:l="default",clearable:d=!1,open:m,defaultOpen:c=!1,onOpenChange:u,portal:g=ie,portalContainer:v,disabled:b,...T},M)=>{let z=f(s)??s,[p,h]=Cn(c),[x,H]=Cn(o),[k,B]=Cn(null),[R,Y]=Cn(null),K=Er(null),X=Er(null),j=Er(null),se=Er(o),V=Er(new Map),J=Er(new Map),S=r!==void 0,re=m!==void 0,L=S?r:x,W=re?m:p,y=St((N)=>{if(!re)h(N);u?.(N)},[re,u]),P=Zr(()=>{return new Map(t.map((N)=>[N.value,N]))},[t]),C=Zr(()=>{return L.flatMap((N)=>{let E=P.get(N);return E?[E]:[]})},[P,L]),oe=Zr(()=>{if(!k)return;return P.get(k)},[P,k]),_=St((N)=>{let E=L.includes(N)?L.filter((ee)=>ee!==N):[...L,N];if(!S)H(E);n?.(E)},[S,n,L]),Ce=St((N)=>{let E=L.filter((ee)=>ee!==N);if(!S)H(E);n?.(E)},[S,n,L]),O=St(()=>{if(!S)H([]);n?.([])},[S,n]),ne=St((N)=>{N.stopPropagation(),N.preventDefault(),O()},[O]),Lt=St((N)=>{if(N.key==="Enter"||N.key===" ")N.stopPropagation(),N.preventDefault(),O()},[O]),ot=St((N)=>{let E=K.current;if(!E)return;let ee=Array.from(E.querySelectorAll('[role="option"]:not([data-disabled])'));if(ee.length===0)return;let ir=E.querySelector('[role="option"]:focus'),en=ir?ee.indexOf(ir):-1,bo;switch(N){case"first":bo=ee[0];break;case"last":bo=ee[ee.length-1];break;case"next":bo=ee[en+1]??ee[0];break;case"prev":bo=ee[en-1]??ee[ee.length-1];break}bo?.focus()},[]),$=St((N)=>{switch(N.key){case"ArrowDown":N.preventDefault(),ot("next");break;case"ArrowUp":N.preventDefault(),ot("prev");break;case"Home":N.preventDefault(),ot("first");break;case"End":N.preventDefault(),ot("last");break;case"Escape":N.preventDefault(),y(!1);break}},[ot,y]);oi(()=>{if(W)requestAnimationFrame(()=>ot("first"))},[ot,W]),oi(()=>{if(k&&!oe)B(null)},[oe,k]),oi(()=>{let N=se.current,E=L.filter((ee)=>!N.includes(ee));if(E.length>0){let ee=E[E.length-1];if(ee&&!V.current.has(`${z}:${ee}`))B(ee)}se.current=L},[z,L]),Bd(()=>{let N=X.current;if(!N)return;if((()=>{Y(Math.ceil(N.getBoundingClientRect().width))})(),typeof ResizeObserver>"u")return;let ee=new ResizeObserver((ir)=>{let en=Math.ceil(ir[0]?.contentRect.width??N.getBoundingClientRect().width);Y(en)});return ee.observe(N),()=>{ee.disconnect()}},[]),Bd(()=>{if(!k)return;let N=j.current;if(!N)return;let E=Math.ceil(N.getBoundingClientRect().width);if(E>0)V.current.set(`${z}:${k}`,E);B(null)},[z,k]);let ue=jv[z],ae=C.length>0,Me=d&&ae&&!b,Ue=St((N)=>{let E=`${z}:${N}`,ee=J.current.get(E);if(ee!==void 0)return ee;let ir=lT(N,z);return J.current.set(E,ir),ir},[z]),ct=Zr(()=>{return C.map((N)=>{let E=`${z}:${N.value}`;return V.current.get(E)??sT(N.label,z)})},[z,C]),A=Zr(()=>{if(!ae)return{visibleCount:0,hiddenCount:0};if(R===null||R<=0)return{visibleCount:C.length,hiddenCount:0};return mT({containerWidth:R,badgeWidths:ct,getSummaryWidth:Ue})},[R,Ue,ae,ct,C.length]),ce=Zr(()=>{return C.slice(0,A.visibleCount)},[A.visibleCount,C]),Ne=me(Jt.Content,{ref:K,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:$,onOpenAutoFocus:(N)=>N.preventDefault(),className:a(Qr(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((N)=>{let E=L.includes(N.value);return me("div",{role:"option",tabIndex:N.disabled?void 0:-1,"aria-selected":E,"aria-disabled":N.disabled||void 0,"data-disabled":N.disabled?"":void 0,className:a("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:border-transparent data-disabled:bg-muted/40 data-disabled:text-muted-foreground/70",eT[z]),onClick:()=>!N.disabled&&_(N.value),onKeyDown:(ee)=>{if(ee.key==="Enter"||ee.key===" "){if(ee.preventDefault(),!N.disabled)_(N.value)}},children:[me("span",{className:a("flex shrink-0 items-center justify-center",wn[z]),children:E?me(Qv,{className:wn[z]},void 0,!1,void 0,this):null},void 0,!1,void 0,this),me("span",{className:"min-w-0 flex-1 truncate",children:N.label},void 0,!1,void 0,this)]},N.value,!0,void 0,this)}),t.length===0?me("div",{className:"px-3 py-6 text-center text-muted-foreground text-sm",children:"No options available"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this);return me(Jt.Root,{open:W,onOpenChange:y,children:[me(Jt.Trigger,{asChild:!0,children:me("button",{ref:M,type:"button",disabled:b,"data-state":W?"open":"closed","data-placeholder":ae?void 0:"",className:a(Id({size:z,status:l}),e),...T,children:[me("span",{ref:X,className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:ae?me(dT,{children:[ce.map((N)=>me(ho,{variant:"outline",size:ue,removable:!0,removeControl:"span",removeLabel:`Remove ${N.label}`,onRemove:()=>Ce(N.value),className:"max-w-[180px]",children:me("span",{className:"truncate",children:N.label},void 0,!1,void 0,this)},N.value,!1,void 0,this)),A.hiddenCount>0?me("span",{className:a("text-muted-foreground",tT[z]),children:["+",A.hiddenCount]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):me("span",{className:"text-muted-foreground",children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this),me("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[Me?me("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(N)=>N.preventDefault(),onKeyDown:Lt,onClick:ne,className:"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:me(Ev,{className:wn[z]},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,me(Zv,{className:a(wn[z],"opacity-60 transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",W&&"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),g?me(Jt.Portal,{container:v??void 0,children:Ne},void 0,!1,void 0,this):Ne,oe?me("span",{className:"pointer-events-none invisible absolute top-0 left-0 -z-10","aria-hidden":!0,children:me(ho,{ref:j,variant:"outline",size:ue,removable:!0,removeControl:"span",className:"max-w-[180px]",children:me("span",{className:"truncate",children:oe.label},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)});Fd.displayName="Multiselect";import{cva as qt}from"class-variance-authority";import{createContext as uT,forwardRef as vr,useContext as cT}from"react";import{jsxDEV as De}from"react/jsx-dev-runtime";var Gd=qt(["transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] flex w-full items-center justify-between border-b","transition-colors duration-200 ease-out"],{variants:{variant:{default:["border-border bg-background/95 backdrop-blur-xl","shadow-[var(--shadow-sm)]"],transparent:"bg-transparent border-transparent",blur:["bg-[var(--surface-glass)] dark:bg-[var(--surface-glass-dark)] border-[color:color-mix(in_srgb,var(--primary)_18%,var(--border))] backdrop-blur-[14px] shadow-[var(--shadow-glass)]","shadow-[var(--shadow-md)]"],solid:["border-border bg-background","shadow-[var(--shadow-xs)]"]},size:{sm:"h-12 px-3",md:"h-14 px-5",lg:"h-16 px-8"},sticky:{true:"sticky top-0 z-50",false:""}},defaultVariants:{variant:"default",size:"md",sticky:!1}}),Od=qt("flex items-center gap-2 font-semibold text-foreground",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),pT=qt("truncate text-muted-foreground",{variants:{size:{sm:"text-xs",md:"text-xs",lg:"text-sm"}},defaultVariants:{size:"md"}}),Wd=qt("flex items-center",{variants:{align:{start:"justify-start",center:"justify-center",end:"justify-end"},gap:{sm:"gap-2",md:"gap-4",lg:"gap-6"},size:{sm:"text-sm",md:"text-sm",lg:"text-base"}},defaultVariants:{align:"center",gap:"md",size:"md"}}),_d=qt(["relative inline-flex items-center rounded-lg font-medium text-muted-foreground","transition-colors duration-150 ease-out","hover:bg-accent/60 hover:text-foreground"],{variants:{active:{true:"bg-accent text-foreground",false:""},size:{sm:"h-8 px-2.5 text-sm",md:"h-9 px-3 text-sm",lg:"h-10 px-3.5 text-base"}},defaultVariants:{active:!1,size:"md"}}),Ud=qt(["relative inline-flex items-center rounded-lg font-medium text-muted-foreground","transition-colors duration-150 ease-out","hover:bg-accent/60 hover:text-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1"],{variants:{active:{true:["bg-accent text-foreground"],false:""},size:{sm:"h-8 px-2.5 text-sm",md:"h-9 px-3 text-sm",lg:"h-10 px-3.5 text-base"}},defaultVariants:{active:!1,size:"md"}}),Kd=qt("flex items-center",{variants:{size:{sm:"gap-1.5",md:"gap-2",lg:"gap-2.5"}},defaultVariants:{size:"md"}}),$d=qt("w-px rounded-full bg-gradient-to-b from-transparent via-border to-transparent transition-opacity duration-300",{variants:{size:{sm:"mx-1.5 h-5",md:"mx-2 h-6",lg:"mx-2.5 h-7"}},defaultVariants:{size:"md"}});var Vd={sm:"sm",md:"md",lg:"lg"};var Yd=uT(null),Dr=()=>{return cT(Yd)?.size??Vd.md},Xd=vr(({className:e,variant:t,size:r,sticky:o,...n},i)=>{let s=f(r)??Vd.md;return De(Yd.Provider,{value:{size:s},children:De("nav",{ref:i,className:a(Gd({variant:t,size:s,sticky:o}),e),...n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Xd.displayName="Navbar";var Jd=vr(({className:e,logo:t,tagline:r,size:o,children:n,...i},s)=>{let l=Dr(),d=f(o??l)??l;return De("div",{ref:s,className:a(Od({size:d}),e),...i,children:[t&&De("span",{className:"inline-flex shrink-0 items-center",children:t},void 0,!1,void 0,this),De("div",{className:"flex min-w-0 flex-col",children:[De("span",{className:"truncate",children:n},void 0,!1,void 0,this),r&&De("span",{className:a(pT({size:d})),children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Jd.displayName="NavbarBrand";var qd=vr(({className:e,align:t,gap:r,size:o,...n},i)=>{let s=Dr(),l=f(o??s)??s;return De("div",{ref:i,className:a(Wd({align:t,gap:r??l,size:l}),e),...n},void 0,!1,void 0,this)});qd.displayName="NavbarContent";var Qd=vr(({className:e,active:t,size:r,...o},n)=>{let i=Dr(),s=f(r??i)??i;return De("div",{ref:n,className:a(_d({active:t,size:s}),e),"data-active":t,...o},void 0,!1,void 0,this)});Qd.displayName="NavbarItem";var Zd=vr(({className:e,active:t,href:r="#",size:o,...n},i)=>{let s=Dr(),l=f(o??s)??s;return De("a",{ref:i,href:r,className:a(Ud({active:t,size:l}),e),"data-active":t,...n},void 0,!1,void 0,this)});Zd.displayName="NavbarLink";var Ed=vr(({className:e,size:t,...r},o)=>{let n=Dr(),i=f(t??n)??n;return De("div",{ref:o,className:a(Kd({size:i}),e),...r},void 0,!1,void 0,this)});Ed.displayName="NavbarActions";var Dd=vr(({className:e,size:t,...r},o)=>{let n=Dr(),i=f(t??n)??n;return De("div",{ref:o,className:a($d({size:i}),e),...r},void 0,!1,void 0,this)});Dd.displayName="NavbarDivider";import*as Be from"@radix-ui/react-navigation-menu";import{cva as Tr}from"class-variance-authority";import{createContext as fT,forwardRef as Qt,useContext as jd}from"react";import{jsxDEV as We}from"react/jsx-dev-runtime";var lt={sm:F.sm,md:F.md,lg:F.lg},ni=fT(lt.md),eu=Tr("group/navigation-menu relative z-10 flex max-w-max flex-1 items-center justify-center"),tu=Tr("group relative flex flex-1 list-none items-center justify-center gap-0.5"),ru=Tr(["group/trigger inline-flex w-max items-center justify-center gap-1 rounded-[var(--radius)] border border-transparent bg-transparent font-medium outline-none","transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]","hover:bg-accent hover:text-accent-foreground","focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:ring-offset-1 focus-visible:ring-offset-background","disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-muted/40 disabled:text-muted-foreground/70","data-[state=open]:border-border data-[state=open]:bg-accent data-[state=open]:text-accent-foreground"],{variants:{size:{[lt.sm]:"h-8 px-3 py-1.5 text-xs",[lt.md]:"h-9 px-3 py-2 text-sm",[lt.lg]:"h-11 px-4 py-2.5 text-sm"}},defaultVariants:{size:lt.md}}),ou=Tr(["left-0 top-0 w-full p-1 md:absolute md:w-auto","gs-nav-content"]),nu=Tr(["flex select-none items-center gap-2 rounded-[var(--radius-md)] leading-none no-underline outline-none","transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]","hover:bg-accent/80 hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground","focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:outline-none"],{variants:{size:{[lt.sm]:"p-2 text-xs [&_svg:not([class*='size-'])]:size-3.5",[lt.md]:"p-2.5 text-sm [&_svg:not([class*='size-'])]:size-4",[lt.lg]:"p-3 text-sm [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{size:lt.md}}),au=Tr(["gs-nav-viewport origin-[top_center] relative mt-1.5 w-full overflow-hidden rounded-[var(--radius)] border border-border bg-popover text-popover-foreground shadow-[var(--shadow-lg)]","h-[var(--radix-navigation-menu-viewport-height)] md:w-[var(--radix-navigation-menu-viewport-width)]"]),iu=Tr(["gs-nav-indicator top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden"]),gT=()=>We("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-px ml-0.5 size-3 transition-transform duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)] group-data-[state=open]/trigger:rotate-180","aria-hidden":"true",children:We("path",{d:"m6 9 6 6 6-6"},void 0,!1,void 0,this)},void 0,!1,void 0,this),su=Qt(({className:e,children:t,size:r,viewport:o=!0,...n},i)=>{let s=f(r??lt.md);return We(ni.Provider,{value:s,children:We(Be.Root,{ref:i,"data-viewport":o,className:a(eu(),e),...n,children:[t,o&&We(ai,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});su.displayName="NavigationMenu";var lu=Qt(({className:e,...t},r)=>We(Be.List,{ref:r,className:a(tu(),e),...t},void 0,!1,void 0,this));lu.displayName="NavigationMenuList";var mu=Qt(({className:e,...t},r)=>We(Be.Item,{ref:r,className:a("relative",e),...t},void 0,!1,void 0,this));mu.displayName="NavigationMenuItem";var du=Qt(({className:e,children:t,...r},o)=>{let n=jd(ni);return We(Be.Trigger,{ref:o,className:a(ru({size:n}),e),...r,children:[t,We(gT,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});du.displayName="NavigationMenuTrigger";var uu=Qt(({className:e,...t},r)=>We(Be.Content,{ref:r,className:a(ou(),e),...t},void 0,!1,void 0,this));uu.displayName="NavigationMenuContent";var cu=Qt(({className:e,...t},r)=>{let o=jd(ni);return We(Be.Link,{ref:r,className:a(nu({size:o}),e),...t},void 0,!1,void 0,this)});cu.displayName="NavigationMenuLink";var ai=Qt(({className:e,...t},r)=>We("div",{className:"absolute top-full left-0 isolate z-50 flex justify-center",children:We(Be.Viewport,{ref:r,className:a(au(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));ai.displayName="NavigationMenuViewport";var pu=Qt(({className:e,...t},r)=>We(Be.Indicator,{ref:r,className:a(iu(),e),...t,children:We("div",{className:"relative top-[60%] size-2 rotate-45 rounded-tl-sm bg-border shadow-sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this));pu.displayName="NavigationMenuIndicator";import{cva as jr}from"class-variance-authority";import{Fragment as bT,forwardRef as yT,useCallback as hr,useEffect as fu,useMemo as gu,useRef as vT,useState as bu}from"react";import{jsxDEV as Pr}from"react/jsx-dev-runtime";var zr={sm:"sm",md:"md",lg:"lg"},Io={default:"default",error:"error",success:"success"},Bo={single:"single",first:"first",middle:"middle",last:"last"},yu=jr("relative inline-flex items-center",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2"}},defaultVariants:{size:zr.md}}),vu=jr("relative inline-flex items-center",{variants:{size:{sm:"gap-0",md:"gap-0",lg:"gap-0"},status:{default:"",error:"text-destructive",success:"text-success"}},defaultVariants:{size:zr.md,status:Io.default}}),Tu=jr(["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"},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:zr.md,filled:!1,focused:!1,status:Io.default,disabled:!1,position:Bo.single}}),hu=jr(["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"},status:{default:"caret-primary",error:"caret-destructive",success:"caret-success"},filled:{true:"text-foreground",false:"text-muted-foreground"}},defaultVariants:{size:zr.md,status:Io.default,filled:!1}}),Pu=jr(["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"},focused:{true:"opacity-0 scale-95",false:"opacity-100 scale-100"}},defaultVariants:{size:zr.md,focused:!1}}),zu=jr("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"}},defaultVariants:{size:zr.md}});function TT(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function ii(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var Mu=yT(({className:e,length:t=6,value:r,onChange:o,onComplete:n,size:i=zr.md,status:s=Io.default,disabled:l=!1,autoFocus:d=!1,mask:m=!1,groupSize:c,separator:u,separatorChar:g="—",placeholder:v="•",inputMode:b="numeric",pattern:T="[0-9]*",...M},z)=>{let p=f(i),h=TT(t),x=vT([]),[H,k]=bu(null),[B,R]=bu(()=>ii(r,h));fu(()=>{if(r!==void 0){R(ii(r,h));return}R((y)=>ii(y.join(""),h))},[r,h]),fu(()=>{if(d)x.current[0]?.focus()},[d]);let Y=gu(()=>{if(typeof c==="number"&&Number.isFinite(c)){let y=Math.floor(c);if(y<=0)return h;return Math.min(h,Math.max(1,y))}if(typeof u==="number"&&Number.isFinite(u)){let y=Math.floor(u);if(y<=0)return h;return Math.min(h,Math.max(1,y))}if(u)return Math.max(1,Math.floor(h/2));return h},[c,h,u]),K=gu(()=>{let y=[];for(let P=0;P<h;P+=Y){let C=Math.min(P+Y,h),oe=[];for(let _=P;_<C;_+=1)oe.push(_);y.push(oe)}return y},[Y,h]),X=hr((y)=>{let P=x.current[y];if(!P)return;P.focus(),P.select()},[]),j=hr((y)=>{R(y);let P=y.join("");if(o?.(P),y.every((C)=>C!=="")&&P.length===h)n?.(P)},[o,n,h]),se=hr((y,P)=>{if(l)return;let oe=(b==="numeric"?P.replace(/\D/g,""):P).slice(-1),_=[...B];if(_[y]=oe,j(_),oe&&y<h-1)X(y+1)},[B,l,j,X,b,h]),V=hr((y,P)=>{if(l)return;if(P.key==="Backspace"){if(P.preventDefault(),B[y]){let C=[...B];C[y]="",j(C);return}if(y>0){let C=[...B];C[y-1]="",j(C),X(y-1)}return}if(P.key==="Delete"){if(P.preventDefault(),B[y]){let C=[...B];C[y]="",j(C)}return}if(P.key==="ArrowLeft"){if(P.preventDefault(),y>0)X(y-1);return}if(P.key==="ArrowRight"){if(P.preventDefault(),y<h-1)X(y+1);return}if(P.key==="Home"){P.preventDefault(),X(0);return}if(P.key==="End")P.preventDefault(),X(h-1)},[B,l,j,X,h]),J=hr((y,P)=>{if(P.preventDefault(),l)return;let C=P.clipboardData.getData("text"),_=(b==="numeric"?C.replace(/\D/g,""):C.replace(/\s/g,"")).split("");if(_.length===0)return;let Ce=[...B];for(let ne=0;ne<_.length;ne+=1){let Lt=y+ne;if(Lt>=h)break;Ce[Lt]=_[ne]??""}j(Ce);let O=Math.min(h-1,y+_.length-1);if(O<h-1){X(O+1);return}x.current[O]?.blur()},[B,l,j,X,b,h]),S=hr((y,P)=>{k(y),P.target.select()},[]),re=hr(()=>{k(null)},[]),L=u!==void 0,W=g.length>0&&u!==!1&&(L||K.length>1);return Pr("div",{ref:z,className:a(yu({size:p}),e),role:"group","aria-label":"One-time password input",...M,children:K.map((y,P)=>Pr(bT,{children:[Pr("div",{"data-gs-otp-group":"true",className:a(vu({size:p,status:s})),children:y.map((C,oe)=>{let _=B[C]??"",Ce=H===C,O=Bo.middle;if(y.length===1)O=Bo.single;else if(oe===0)O=Bo.first;else if(oe===y.length-1)O=Bo.last;return Pr("div",{"data-gs-otp-slot":"true","data-disabled":l,className:a(Tu({size:p,filled:Boolean(_),focused:Ce,status:s,disabled:l,position:O})),children:[Pr("input",{ref:(ne)=>{x.current[C]=ne},type:m?"password":"text",inputMode:b,pattern:T,maxLength:1,value:_,placeholder:"",disabled:l,"aria-invalid":s===Io.error,"aria-label":`Digit ${C+1} of ${h}`,autoComplete:"one-time-code",onChange:(ne)=>se(C,ne.target.value),onKeyDown:(ne)=>V(C,ne),onPaste:(ne)=>J(C,ne),onFocus:(ne)=>S(C,ne),onBlur:re,className:a(hu({size:p,status:s,filled:Boolean(_)}))},void 0,!1,void 0,this),!_&&Pr("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:a(Pu({size:p,focused:Ce})),children:v},void 0,!1,void 0,this)]},`slot-${C}`,!0,void 0,this)})},void 0,!1,void 0,this),W&&P<K.length-1&&Pr("span",{"data-gs-otp-separator":"true",className:a(zu({size:p})),children:g},void 0,!1,void 0,this)]},`group-${y[0]}-${y[y.length-1]}`,!0,void 0,this))},void 0,!1,void 0,this)});Mu.displayName="OTPInput";import{createContext as kT,createElement as Bu,useCallback as mt,useContext as ST,useEffect as AT,useMemo as BT,useRef as Iu,useState as IT}from"react";import*as fe from"@radix-ui/react-dialog";import{cva as Nu}from"class-variance-authority";import{X as hT}from"lucide-react";import{createContext as PT,forwardRef as Hn,useCallback as zT,useContext as MT,useEffect as NT,useState as Lu}from"react";import{jsxDEV as Ve,Fragment as HT}from"react/jsx-dev-runtime";var Ye={top:eo.top,right:eo.right,bottom:eo.bottom,left:eo.left},he={sm:F.sm,md:F.md,lg:F.lg,full:"full"},LT=160,xT={[Ye.top]:"gs-sheet-content gs-sheet-content-top",[Ye.right]:"gs-sheet-content gs-sheet-content-right",[Ye.bottom]:"gs-sheet-content gs-sheet-content-bottom",[Ye.left]:"gs-sheet-content gs-sheet-content-left"},RT={[Ye.right]:{[he.sm]:"sm:max-w-sm",[he.md]:"sm:max-w-md",[he.lg]:"sm:max-w-lg",[he.full]:"sm:max-w-full"},[Ye.left]:{[he.sm]:"sm:max-w-sm",[he.md]:"sm:max-w-md",[he.lg]:"sm:max-w-lg",[he.full]:"sm:max-w-full"},[Ye.top]:{[he.sm]:"sm:max-h-[30vh]",[he.md]:"sm:max-h-[50vh]",[he.lg]:"sm:max-h-[70vh]",[he.full]:"sm:max-h-full"},[Ye.bottom]:{[he.sm]:"sm:max-h-[30vh]",[he.md]:"sm:max-h-[50vh]",[he.lg]:"sm:max-h-[70vh]",[he.full]:"sm:max-h-full"}},xu=Nu(a("gs-sheet-overlay",Wt)),Ru=Nu("fixed z-50 flex flex-col gap-4 border border-border bg-card p-6 shadow-[var(--shadow-xl)]",{variants:{side:{[Ye.top]:"inset-x-0 top-0 border-b",[Ye.bottom]:"inset-x-0 bottom-0 border-t",[Ye.left]:"inset-y-0 left-0 h-full w-3/4 border-r",[Ye.right]:"inset-y-0 right-0 h-full w-3/4 border-l"}},defaultVariants:{side:Ye.right}}),Cu=PT(!1),si=({children:e,open:t,defaultOpen:r=!1,onOpenChange:o,...n})=>{let[i,s]=Lu(r),l=t!==void 0,d=l?t:i,m=zT((c)=>{if(!l)s(c);o?.(c)},[l,o]);return Ve(Cu.Provider,{value:d,children:Ve(fe.Root,{open:d,onOpenChange:m,...n,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},CT=fe.Trigger,wT=fe.Close,wu=fe.Portal,li=Hn(({className:e,...t},r)=>Ve(fe.Overlay,{className:a(xu(),e),...t,ref:r},void 0,!1,void 0,this));li.displayName=fe.Overlay.displayName;var kn=Hn(({side:e=Ye.right,size:t=he.md,showClose:r=!0,showOverlay:o=!0,portal:n=ie,portalContainer:i,forceMount:s=!1,className:l,children:d,...m},c)=>{let u=MT(Cu),[g,v]=Lu(s||u),b=f(t)??he.md,T=be(),M=xT[e],z=RT[e][b];if(NT(()=>{if(s||u){v(!0);return}let x=setTimeout(()=>{v(!1)},T?0:LT);return()=>{clearTimeout(x)}},[s,u,T]),!(s||u||g))return null;let h=Ve(HT,{children:[o?Ve(li,{forceMount:!0},void 0,!1,void 0,this):null,Ve(fe.Content,{ref:c,forceMount:!0,className:a(Ru({side:e}),M,z,l),...m,children:[d,r&&Ve(fe.Close,{className:nn,children:[Ve(hT,{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);if(!n)return h;return Ve(wu,{forceMount:!0,container:i??void 0,children:h},void 0,!1,void 0,this)});kn.displayName=fe.Content.displayName;var Hu=({className:e,...t})=>Ve("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Hu.displayName="SheetHeader";var ku=({className:e,...t})=>Ve("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);ku.displayName="SheetFooter";var Su=Hn(({className:e,...t},r)=>Ve(fe.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));Su.displayName=fe.Title.displayName;var Au=Hn(({className:e,...t},r)=>Ve(fe.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Au.displayName=fe.Description.displayName;import{jsxDEV as to}from"react/jsx-dev-runtime";var Fu=kT(null),Gu=250;function Ou({children:e,removeDelay:t=Gu}){let r=be(),[o,n]=IT([]),i=Iu(0),s=Iu(new Map),l=mt((p)=>{let h=s.current.get(p);if(h===void 0)return;window.clearTimeout(h),s.current.delete(p)},[]),d=mt((p)=>{l(p),n((h)=>h.filter((x)=>x.id!==p))},[l]),m=mt((p)=>{l(p);let h=r?0:t;if(h<=0){d(p);return}let x=window.setTimeout(()=>{d(p)},h);s.current.set(p,x)},[l,r,t,d]),c=mt((p)=>{n((h)=>h.map((x)=>x.id===p?{...x,open:!1}:x)),m(p)},[m]),u=mt(()=>{n((p)=>{for(let h of p)m(h.id);return p.map((h)=>({...h,open:!1}))})},[m]),g=mt(()=>{return i.current+=1,`overlay-${i.current}`},[]),v=mt((p,h)=>{let x=g();l(x);let H={id:x,kind:"dialog",render:p,open:!0,options:h};return n((k)=>[...k,H]),{id:x,close:()=>c(x)}},[l,c,g]),b=mt((p,h)=>{let x=g();l(x);let H={id:x,kind:"sheet",render:p,open:!0,options:h};return n((k)=>[...k,H]),{id:x,close:()=>c(x)}},[l,c,g]),T=mt((p,h,x)=>{return v((H)=>Bu(p,{...h,close:H}),x)},[v]),M=mt((p,h,x)=>{return b((H)=>Bu(p,{...h,close:H}),x)},[b]);AT(()=>{return()=>{for(let p of s.current.values())window.clearTimeout(p);s.current.clear()}},[]);let z=BT(()=>({dialog:T,sheet:M,close:c,closeAll:u}),[u,c,T,M]);return to(Fu.Provider,{value:z,children:[e,o.map((p)=>to(FT,{entry:p,onClose:c},p.id,!1,void 0,this))]},void 0,!0,void 0,this)}Ou.displayName="OverlayProvider";function FT({entry:e,onClose:t}){let r=mt(()=>t(e.id),[e.id,t]);if(e.kind==="dialog")return to(Ro,{open:e.open,onOpenChange:(o)=>!o&&r(),children:to(zn,{...e.options,children:e.render(r)},void 0,!1,void 0,this)},void 0,!1,void 0,this);return to(si,{open:e.open,onOpenChange:(o)=>!o&&r(),children:to(kn,{...e.options,children:e.render(r)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function GT(){let e=ST(Fu);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as Fo}from"class-variance-authority";import{ChevronLeft as OT,ChevronRight as WT,MoreHorizontal as _T}from"lucide-react";import{createContext as UT,forwardRef as Go,useContext as Sn}from"react";import{jsxDEV as Xe}from"react/jsx-dev-runtime";var je={sm:"sm",md:"md",lg:"lg"},Oo=UT(je.md),Wu=Fo("mx-auto flex w-full justify-center"),_u=Fo("flex flex-row items-center gap-1"),Uu=Fo(""),An=Fo("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] 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:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70 hover:bg-accent hover:text-accent-foreground",{variants:{isActive:{true:"border border-border bg-background shadow-[var(--shadow-sm)]",false:""},size:{[je.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[je.md]:"h-9 w-9 text-sm [&_svg]:size-4",[je.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:je.md}}),Ku=Fo("flex items-center justify-center",{variants:{size:{[je.sm]:"h-7 w-7 [&_svg]:size-3.5",[je.md]:"h-9 w-9 [&_svg]:size-4",[je.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:je.md}}),$u=({className:e,size:t=je.md,...r})=>{let o=f(t)??je.md;return Xe(Oo.Provider,{value:o,children:Xe("nav",{"aria-label":"pagination",className:a(Wu(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};$u.displayName="Pagination";var Vu=Go(({className:e,...t},r)=>Xe("ul",{ref:r,className:a(_u(),e),...t},void 0,!1,void 0,this));Vu.displayName="PaginationContent";var Yu=Go(({className:e,...t},r)=>Xe("li",{ref:r,className:a(Uu(),e),...t},void 0,!1,void 0,this));Yu.displayName="PaginationItem";var Xu=Go(({className:e,isActive:t,...r},o)=>{let n=Sn(Oo);return Xe("button",{ref:o,type:"button","aria-current":t?"page":void 0,className:a(An({isActive:t,size:n}),e),...r},void 0,!1,void 0,this)});Xu.displayName="PaginationLink";var Ju=Go(({className:e,...t},r)=>{let o=Sn(Oo);return Xe("button",{ref:r,type:"button","aria-label":"Go to previous page",className:a(An({size:o}),"w-auto gap-1 pr-3 pl-2.5",e),...t,children:[Xe(OT,{},void 0,!1,void 0,this),Xe("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Ju.displayName="PaginationPrevious";var qu=Go(({className:e,...t},r)=>{let o=Sn(Oo);return Xe("button",{ref:r,type:"button","aria-label":"Go to next page",className:a(An({size:o}),"w-auto gap-1 pr-2.5 pl-3",e),...t,children:[Xe("span",{children:"Next"},void 0,!1,void 0,this),Xe(WT,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});qu.displayName="PaginationNext";var Qu=({className:e,...t})=>{let r=Sn(Oo);return Xe("span",{"aria-hidden":!0,className:a(Ku({size:r}),e),...t,children:[Xe(_T,{},void 0,!1,void 0,this),Xe("span",{className:"sr-only",children:"More pages"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Qu.displayName="PaginationEllipsis";import*as _o from"@radix-ui/react-progress";import{cva as Zu}from"class-variance-authority";import{forwardRef as KT,useEffect as $T,useRef as VT}from"react";import{jsxDEV as In}from"react/jsx-dev-runtime";var Bn={sm:"sm",md:"md",lg:"lg"},Wo={default:"default",success:"success",warning:"warning",error:"error"},Eu=Zu("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[Bn.sm]:"h-2",[Bn.md]:"h-2.5",[Bn.lg]:"h-3"}},defaultVariants:{size:Bn.md}}),Du=Zu("h-full w-full flex-1 rounded-full transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",{variants:{variant:{[Wo.default]:"bg-primary",[Wo.success]:"bg-success",[Wo.warning]:"bg-warning",[Wo.error]:"bg-destructive"}},defaultVariants:{variant:Wo.default}});function YT(e){if(typeof e!=="number"||Number.isNaN(e))return 0;return Math.max(0,Math.min(100,e))}var ju=KT(({className:e,value:t,size:r,variant:o,showValue:n,...i},s)=>{let l=f(r),d=VT(null),m=YT(t);return $T(()=>{let c=d.current;if(!c)return;c.style.setProperty("--gs-progress-value",`${m}%`)},[m]),In("div",{className:"flex w-full items-center gap-2",children:[In(_o.Root,{ref:s,className:a(Eu({size:l}),e),...i,children:In(_o.Indicator,{ref:d,className:a(Du({variant:o}),"[transform:translateX(calc(-100%+var(--gs-progress-value,0%)))]")},void 0,!1,void 0,this)},void 0,!1,void 0,this),n&&In("span",{className:"font-medium text-muted-foreground text-sm tabular-nums",children:[m,"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});ju.displayName=_o.Root.displayName;import*as oo from"@radix-ui/react-radio-group";import{cva as ec}from"class-variance-authority";import{forwardRef as tc}from"react";import{jsxDEV as Fn}from"react/jsx-dev-runtime";var At={sm:"sm",md:"md",lg:"lg"},ro={default:"default",error:"error",success:"success"},rc=ec("grid gap-2"),oc=ec("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] 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:{[At.sm]:"h-4 w-4",[At.md]:"h-5 w-5",[At.lg]:"h-6 w-6"},status:{[ro.default]:"enabled:hover:border-primary/70",[ro.error]:"border-destructive enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:text-destructive",[ro.success]:"border-success enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:text-success"}},defaultVariants:{size:At.md,status:ro.default}}),XT={[At.sm]:"h-2 w-2",[At.md]:"h-2.5 w-2.5",[At.lg]:"h-3 w-3"},nc=tc(({className:e,...t},r)=>Fn(oo.Root,{ref:r,className:a(rc(),e),...t},void 0,!1,void 0,this));nc.displayName="RadioGroup";var ac=tc(({className:e,size:t=At.md,status:r=ro.default,...o},n)=>{let i=f(t);return Fn(oo.Item,{ref:n,className:a(oc({size:i,status:r}),e),...o,children:Fn(oo.Indicator,{className:"flex items-center justify-center",children:Fn("span",{className:a("block rounded-full bg-current transition-transform duration-150",XT[i])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ac.displayName="RadioGroupItem";import{cva as On}from"class-variance-authority";import{forwardRef as di,useCallback as Uo,useEffect as mc,useRef as dc,useState as ic}from"react";import{jsxDEV as Gn}from"react/jsx-dev-runtime";var JT=10,qT=90,mi=50,uc=On("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),cc=On("relative basis-[var(--gs-panel-basis,50%)] overflow-hidden grow-0 shrink-0"),pc=On("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}}),fc=On("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"}});function gc(e){return Math.max(JT,Math.min(qT,e))}function bc(e){return e.dataset.direction==="vertical"?"vertical":"horizontal"}function QT(e,t){let r=Array.from(e.children),o=r.indexOf(t),n;for(let s=o-1;s>=0;s-=1){let l=r[s];if(l instanceof HTMLElement&&l.matches("[data-panel]")){n=l;break}}let i;for(let s=o+1;s<r.length;s+=1){let l=r[s];if(l instanceof HTMLElement&&l.matches("[data-panel]")){i=l;break}}return{prevPanel:n,nextPanel:i}}function sc(e){if(!e)return null;let t=e.closest("[data-panel-group]");if(!(t instanceof HTMLElement))return null;let{prevPanel:r,nextPanel:o}=QT(t,e);if(!(r&&o))return null;return{group:t,direction:bc(t),prevPanel:r,nextPanel:o}}function ZT(e){if("touches"in e){let t=e.touches[0];if(!t)return null;return{x:t.clientX,y:t.clientY}}return{x:e.clientX,y:e.clientY}}function lc(e,t,r){let o=gc(r);e.style.setProperty("--gs-panel-basis",`${o}%`),t.style.setProperty("--gs-panel-basis",`${100-o}%`)}function ET(e){let t=e.style.getPropertyValue("--gs-panel-basis").trim();if(t.endsWith("%"))return Number.parseFloat(t)||mi;let r=e.dataset.defaultSize;if(r)return Number.parseFloat(r)||mi;return mi}function DT(e,t,r){if(t==="horizontal"){if(e==="ArrowLeft")return-r;if(e==="ArrowRight")return r;return 0}if(e==="ArrowUp")return-r;if(e==="ArrowDown")return r;return 0}var yc=di(({className:e,direction:t="horizontal",children:r,...o},n)=>Gn("div",{ref:n,"data-panel-group":"","data-direction":t,className:a(uc({direction:t}),e),...o,children:r},void 0,!1,void 0,this));yc.displayName="ResizablePanelGroup";var vc=di(({className:e,defaultSize:t=50,children:r,...o},n)=>{let i=dc(null),s=gc(t);mc(()=>{let d=i.current;if(!d)return;d.style.setProperty("--gs-panel-basis",`${s}%`)},[s]);let l=Uo((d)=>{if(i.current=d,typeof n==="function")n(d);else if(n)n.current=d},[n]);return Gn("div",{ref:l,"data-panel":"","data-default-size":s,className:a(cc(),e),...o,children:r},void 0,!1,void 0,this)});vc.displayName="ResizablePanel";var Tc=di(({className:e,withHandle:t=!1,disabled:r=!1,...o},n)=>{let[i,s]=ic(!1),[l,d]=ic("horizontal"),m=dc(null);mc(()=>{let b=m.current;if(!b)return;let T=b.closest("[data-panel-group]");if(!(T instanceof HTMLElement))return;let M=()=>d(bc(T));M();let z=new MutationObserver(M);return z.observe(T,{attributes:!0,attributeFilter:["data-direction"]}),()=>z.disconnect()},[]);let c=Uo(()=>{if(r)return;s(!0);let b=(M)=>{let z=ZT(M);if(!z)return;let p=sc(m.current);if(!p)return;let h=p.group.getBoundingClientRect(),x=p.direction==="horizontal"?h.width:h.height;if(x<=0)return;let k=(p.direction==="horizontal"?z.x-h.left:z.y-h.top)/x*100;lc(p.prevPanel,p.nextPanel,k)},T=()=>{s(!1),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",T),document.removeEventListener("touchmove",b),document.removeEventListener("touchend",T)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",T),document.addEventListener("touchmove",b),document.addEventListener("touchend",T)},[r]),u=Uo((b)=>{b.preventDefault(),c()},[c]),g=Uo((b)=>{if(b.touches.length===0)return;c()},[c]),v=Uo((b)=>{if(r)return;let T=sc(m.current??b.currentTarget);if(!T)return;let M=b.shiftKey?10:1,z=DT(b.key,T.direction,M);if(z===0)return;b.preventDefault();let p=ET(T.prevPanel);lc(T.prevPanel,T.nextPanel,p+z)},[r]);return Gn("div",{ref:(b)=>{if(m.current=b,typeof n==="function")n(b);else if(n)n.current=b},role:"separator","aria-orientation":l,"aria-valuemin":10,"aria-valuemax":90,"aria-valuenow":50,tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":i,onMouseDown:u,onTouchStart:g,onKeyDown:v,className:a(pc({direction:l,withHandle:t}),i&&"bg-primary",r&&"pointer-events-none cursor-not-allowed bg-muted/40 text-muted-foreground/70",e),...o,children:t&&Gn("div",{className:a(fc({direction:l}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Tc.displayName="ResizableHandle";import*as vt from"@radix-ui/react-scroll-area";import{cva as ui}from"class-variance-authority";import{forwardRef as hc}from"react";import{jsxDEV as no}from"react/jsx-dev-runtime";var Pc=ui("relative flex flex-col overflow-hidden"),zc=ui("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"}}),Mc=ui("relative flex-1 rounded-full bg-border"),Nc=hc(({className:e,children:t,...r},o)=>no(vt.Root,{ref:o,className:a(Pc(),e),...r,children:[no(vt.Viewport,{className:"min-h-0 w-full flex-1 rounded-[inherit]",children:t},void 0,!1,void 0,this),no(ci,{},void 0,!1,void 0,this),no(vt.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));Nc.displayName="ScrollArea";var ci=hc(({className:e,orientation:t="vertical",...r},o)=>no(vt.ScrollAreaScrollbar,{ref:o,orientation:t,className:a(zc({orientation:t}),e),...r,children:no(vt.ScrollAreaThumb,{className:a(Mc())},void 0,!1,void 0,this)},void 0,!1,void 0,this));ci.displayName="ScrollBar";import{cva as fi}from"class-variance-authority";import{createContext as oh,forwardRef as gi,useCallback as nh,useContext as Rc,useRef as xc,useState as ah}from"react";import{useLayoutEffect as Lc,useRef as ao}from"react";var jT={x:0,y:0,width:0,height:0};function eh(e,t){let r=e.querySelector(t);if(!r)return null;return{x:r.offsetLeft,y:r.offsetTop,width:r.offsetWidth,height:r.offsetHeight}}function th(e,t){let r=e.getBoundingClientRect(),o=t.getBoundingClientRect();return{x:r.left-o.left-t.clientLeft,y:r.top-o.top-t.clientTop,width:r.width,height:r.height}}function pi(e,t){let r=e.style;r.transform=`translate3d(${t.x}px,${t.y}px,0)`,r.width=`${t.width}px`,r.height=`${t.height}px`}function rh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Wn(e,t,r){let o=be(),n=ao(!1),i=ao(jT),s=ao(r.activeSelector);s.current=r.activeSelector;let l=ao(r.observeAttributes);l.current=r.observeAttributes;let d=ao(o);d.current=o;let m=ao(null);m.current=(c,u)=>{let g=eh(c,s.current);if(!g){u.style.opacity="0";return}if(rh(i.current,g)&&n.current)return;if(!n.current||d.current){u.style.transition="none",pi(u,g),u.style.opacity="1",u.offsetHeight,u.style.transition="",n.current=!0,i.current=g;return}let v=th(u,c);u.style.transition="none",pi(u,v),u.style.opacity="1",u.offsetHeight,u.style.transition="",pi(u,g),i.current=g},Lc(()=>{r.activeKey;let c=e.current,u=t.current;if(!(c&&u))return;m.current?.(c,u)},[r.activeKey,o,e.current,t.current]),Lc(()=>{let c=e.current,u=t.current;if(!(c&&u))return;let g=0;function v(){if(!(c&&u))return;m.current?.(c,u)}function b(){cancelAnimationFrame(g),g=requestAnimationFrame(v)}let T=typeof ResizeObserver<"u"?new ResizeObserver(b):null;T?.observe(c);let M=l.current,z=null;if(M&&M.length>0)z=typeof MutationObserver<"u"?new MutationObserver(b):null,z?.observe(c,{subtree:!0,attributes:!0,attributeFilter:M});return()=>{cancelAnimationFrame(g),T?.disconnect(),z?.disconnect()}},[e.current,t.current])}var _n="pointer-events-none absolute top-0 left-0 z-0 rounded-[calc(var(--radius)-2px)] border border-border bg-accent shadow-[var(--shadow-xs)] transition-[transform,width,height,opacity] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-emphasized)]";import{jsxDEV as Mr}from"react/jsx-dev-runtime";var Pe={sm:"sm",md:"md",lg:"lg"},Cc=fi("relative inline-flex items-center rounded-[var(--radius)] border border-border bg-secondary p-1 text-muted-foreground",{variants:{size:{[Pe.sm]:"h-8 gap-0.5",[Pe.md]:"h-10 gap-0.5",[Pe.lg]:"h-11 gap-1"}},defaultVariants:{size:Pe.md}}),wc=fi(["relative z-10 inline-flex items-center justify-center rounded-[calc(var(--radius)-2px)]","cursor-pointer select-none outline-none","transition-[color,background-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40","leading-none"],{variants:{size:{[Pe.sm]:"size-6",[Pe.md]:"size-8",[Pe.lg]:"size-9"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:Pe.md,active:!1}}),Hc=fi(["relative z-10 inline-flex items-center justify-center gap-1.5 rounded-[calc(var(--radius)-2px)]","cursor-pointer select-none whitespace-nowrap font-medium leading-none outline-none","transition-[color,background-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40"],{variants:{size:{[Pe.sm]:"h-6 px-2.5 text-xs",[Pe.md]:"h-8 px-3 text-sm",[Pe.lg]:"h-9 px-4 text-sm"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:Pe.md,active:!1}}),kc={[Pe.sm]:"size-3",[Pe.md]:"size-3.5",[Pe.lg]:"size-4"},ih=(e)=>{return},bi=oh({activeValue:"",onSelect:ih,size:Pe.md,disabled:!1}),Sc=gi(({className:e,value:t,defaultValue:r,onValueChange:o,size:n,disabled:i=!1,children:s,...l},d)=>{let m=f(n),[c,u]=ah(r??""),g=xc(null),v=kt(d,g),b=xc(null),T=t!==void 0?t:c,M=nh((z)=>{if(i)return;if(t===void 0)u(z);o?.(z)},[i,o,t]);return Wn(g,b,{activeSelector:"button[data-state='active']",activeKey:T}),Mr(bi.Provider,{value:{activeValue:T,onSelect:M,size:m,disabled:i},children:Mr("div",{ref:v,role:"radiogroup",className:a(Cc({size:m}),i&&"pointer-events-none cursor-not-allowed border-transparent bg-muted/40 text-muted-foreground/70",e),...l,children:[Mr("span",{ref:b,"aria-hidden":!0,"data-slot":"indicator",className:_n,style:{opacity:0}},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Sc.displayName="SegmentedControl";var Ac=gi(({className:e,value:t,icon:r,disabled:o=!1,...n},i)=>{let{activeValue:s,onSelect:l,size:d,disabled:m}=Rc(bi),c=s===t,u=o||m;return Mr("button",{ref:i,type:"button",role:"radio","aria-checked":c,"aria-disabled":u||void 0,"data-state":c?"active":"inactive","data-value":t,disabled:u,onClick:()=>l(t),className:a(wc({size:d,active:c}),e),...n,children:Mr("span",{className:a(kc[d??Pe.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ac.displayName="SegmentedControlItem";var Bc=gi(({className:e,value:t,icon:r,disabled:o=!1,children:n,...i},s)=>{let{activeValue:l,onSelect:d,size:m,disabled:c}=Rc(bi),u=l===t,g=o||c;return Mr("button",{ref:s,type:"button",role:"radio","aria-checked":u,"aria-disabled":g||void 0,"data-state":u?"active":"inactive","data-value":t,disabled:g,onClick:()=>d(t),className:a(Hc({size:m,active:u}),e),...i,children:[r&&Mr("span",{className:a(kc[m??Pe.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this),n]},void 0,!0,void 0,this)});Bc.displayName="SegmentedControlLabelItem";var sh=Pe;import*as Zt from"@radix-ui/react-popover";import{cva as Fc}from"class-variance-authority";import{Check as lh,ChevronDown as mh,X as dh}from"lucide-react";import{Children as uh,createContext as ch,forwardRef as Yo,isValidElement as vi,useCallback as $o,useContext as Gc,useEffect as Un,useId as Ic,useMemo as ph,useRef as Oc,useState as Ko}from"react";import{jsxDEV as de,Fragment as Ph}from"react/jsx-dev-runtime";var ge={sm:"sm",md:"md",lg:"lg"},io={default:"default",error:"error",success:"success"},Vo={trigger:"trigger",auto:"auto"},fh={start:"start",center:"center",end:"end"},Wc=Fc(["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:{[ge.sm]:"h-8 px-2.5 text-xs",[ge.md]:"h-10 px-3.5",[ge.lg]:"h-11 px-4.5 text-sm"},status:{[io.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[io.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[io.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:ge.md,status:io.default}}),_c=Fc(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[Vo.trigger]:"w-[var(--radix-popover-trigger-width)]",[Vo.auto]:"w-max min-w-0"},size:{[ge.sm]:"text-xs",[ge.md]:"text-sm",[ge.lg]:"text-sm"}},defaultVariants:{widthMode:Vo.auto,size:ge.md}}),gh={[ge.sm]:"min-h-7.5 py-1.5 px-2.5 pr-3 text-xs",[ge.md]:"min-h-9 py-2 px-3 pr-4.5 text-sm",[ge.lg]:"min-h-10 py-2.5 px-3.5 pr-5.5 text-sm"},bh={[ge.sm]:"px-2 py-1 text-xs",[ge.md]:"px-2 py-1.5 text-sm",[ge.lg]:"px-2.5 py-1.5 text-sm"},Kn={[ge.sm]:"size-3.5",[ge.md]:"size-4",[ge.lg]:"size-4"};function yh(e){if(!vi(e))return!1;let t=e.type;if(typeof t==="string"||typeof t!=="function"&&typeof t!=="object"||t===null)return!1;return Reflect.get(t,"displayName")==="SelectItem"}function yi(e,t){if(e===null||e===void 0||typeof e==="boolean")return;if(Array.isArray(e)){for(let o of e)yi(o,t);return}if(!vi(e))return;if(yh(e)){let o=typeof e.props.value==="string"?e.props.value:"";if(o.length>0){let n=typeof e.props.label==="string"?e.props.label:$n(e.props.children).trim();if(n.length>0)t.set(o,n)}}let r=e.props.children;if(r!==void 0)yi(r,t)}function $n(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)=>$n(t)).join("");if(vi(e))return $n(e.props.children);return""}var Ti=ch(null);function Vn(){let e=Gc(Ti);if(!e)throw Error("Select components must be used within Select");return e}function hi(e){let t=Gc(Ti);if(e)return e;return t?.triggerSize??ge.md}var vh=({children:e,value:t,defaultValue:r="",onValueChange:o,open:n,defaultOpen:i=!1,onOpenChange:s,disabled:l=!1})=>{let[d,m]=Ko(ge.md),[c,u]=Ko(!1),[g,v]=Ko(r),[b,T]=Ko(i),[,M]=Ko(0),z=Oc(new Map),p=ph(()=>{let V=new Map;return yi(e,V),V},[e]),h=t!==void 0,x=n!==void 0,H=h?t:g,k=x?n:b,B=$o((V)=>{if(!h)v(V);if(o?.(V),!x)T(!1);s?.(!1)},[h,x,o,s]),R=$o((V)=>{if(l)return;if(!x)T(V);s?.(V)},[l,x,s]),Y=$o((V,J)=>{if(z.current.get(V)!==J)z.current.set(V,J),M((re)=>re+1)},[]),K=$o((V)=>{return z.current.get(V)??p.get(V)},[p]),X=Ic(),j=Ic(),se={value:H,onValueChange:B,open:k,onOpenChange:R,triggerSize:d,setTriggerSize:m,triggerFullWidth:c,setTriggerFullWidth:u,disabled:l,triggerId:X,contentId:j,registerItem:Y,getLabel:K};return de(Ti.Provider,{value:se,children:de(Zt.Root,{open:k,onOpenChange:R,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},Th=({children:e,className:t})=>de("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),hh=({placeholder:e})=>{let{value:t,getLabel:r}=Vn();if(!t)return e?de("span",{className:"text-muted-foreground",children:e},void 0,!1,void 0,this):null;let o=r(t);return de(Ph,{children:o??t},void 0,!1,void 0,this)},Uc=Yo(({className:e,children:t,size:r=ge.md,status:o=io.default,fullWidth:n=!1,clearable:i=!1,leadingIcon:s,indicatorIcon:l,renderValue:d,placeholder:m,onKeyDown:c,...u},g)=>{let v=Vn(),b=f(r)??r,T=v.setTriggerSize,M=v.setTriggerFullWidth;Un(()=>{T(b)},[b,T]),Un(()=>{M(n)},[n,M]);let z=v.value.length>0,p=i&&z&&!v.disabled,h=()=>{v.onValueChange("")},x;if(d)x=z?d(v.value):m?de("span",{className:"text-muted-foreground",children:m},void 0,!1,void 0,this):null;else x=t;let H=(k)=>{if(c?.(k),k.defaultPrevented)return;if(k.key==="ArrowDown"||k.key==="ArrowUp"||k.key==="Enter"||k.key===" "){if(!v.open)k.preventDefault(),v.onOpenChange(!0)}};return de(Zt.Trigger,{asChild:!0,children:de("button",{ref:g,type:"button",role:"combobox","aria-expanded":v.open,"aria-haspopup":"listbox","aria-controls":v.contentId,id:v.triggerId,disabled:v.disabled,"data-state":v.open?"open":"closed","data-placeholder":z?void 0:"",className:a(Wc({size:b,status:o}),n?"w-full":"w-auto",e),onKeyDown:H,...u,children:[s&&de("i",{className:"inline-flex shrink-0 items-center text-muted-foreground not-italic",children:s},void 0,!1,void 0,this),de("span",{"data-slot":"select-value",className:"min-w-0 flex-1 text-left",children:x},void 0,!1,void 0,this),de("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[p&&de("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onPointerDown:(k)=>{k.stopPropagation(),k.preventDefault(),h()},className:"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:de(dh,{className:Kn[b]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??de(mh,{className:a(Kn[b],"opacity-60 transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",v.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)});Uc.displayName="SelectTrigger";var Kc=Yo(({className:e,children:t,widthMode:r,size:o,align:n="start",side:i="bottom",sideOffset:s=4,portal:l=ie,portalContainer:d,forceMount:m=!1,onKeyDown:c,...u},g)=>{let v=Vn(),b=hi(o),T=r??Vo.auto,M=Oc(null),z=kt(g,M),p=$o((H)=>{let k=M.current;if(!k)return;let B=Array.from(k.querySelectorAll('[role="option"]:not([data-disabled])'));if(B.length===0)return;let R=k.querySelector('[role="option"]:focus'),Y=R?B.indexOf(R):-1,K;switch(H){case"first":K=B[0];break;case"last":K=B[B.length-1];break;case"next":K=B[Y+1]??B[0];break;case"prev":K=B[Y-1]??B[B.length-1];break}K?.focus()},[]),h=(H)=>{if(c?.(H),H.defaultPrevented)return;switch(H.key){case"ArrowDown":H.preventDefault(),p("next");break;case"ArrowUp":H.preventDefault(),p("prev");break;case"Home":H.preventDefault(),p("first");break;case"End":H.preventDefault(),p("last");break;case"Escape":H.preventDefault(),v.onOpenChange(!1);break}};Un(()=>{if(v.open)requestAnimationFrame(()=>p("first"))},[v.open,p]);let x=de(Zt.Content,{ref:z,id:v.contentId,role:"listbox","aria-labelledby":v.triggerId,side:i,align:n,sideOffset:s,forceMount:m?!0:void 0,onKeyDown:h,onOpenAutoFocus:(H)=>H.preventDefault(),className:a(Qr(),_c({widthMode:T,size:b}),"p-1",e),...u,children:t},void 0,!1,void 0,this);if(l)return de(Zt.Portal,{container:d??void 0,children:x},void 0,!1,void 0,this);return x});Kc.displayName="SelectContent";var $c=Yo(({className:e,size:t,...r},o)=>{let n=hi(t);return de("div",{ref:o,className:a("font-semibold text-foreground",bh[n],e),...r},void 0,!1,void 0,this)});$c.displayName="SelectLabel";var Vc=Yo(({className:e,children:t,value:r,label:o,size:n,disabled:i=!1,...s},l)=>{let d=Vn(),m=hi(n),c=d.value===r,u=d.registerItem,g=$n(uh.toArray(t)).trim();Un(()=>{let T=o??(g.length>0?g:r);u(r,T)},[g,r,o,u]);let v=()=>{if(!i)d.onValueChange(r)},b=(T)=>{if(T.key==="Enter"||T.key===" ")T.preventDefault(),v()};return de("div",{ref:l,role:"option",tabIndex:i?void 0:-1,"aria-selected":c,"aria-disabled":i||void 0,"data-selected":c?"":void 0,"data-disabled":i?"":void 0,"data-value":r,className:a("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:border-transparent data-disabled:bg-muted/40 data-disabled:text-muted-foreground/70",gh[m],c&&"bg-accent/50",e),onClick:v,onKeyDown:b,...s,children:[de("span",{className:a("flex shrink-0 items-center justify-center",Kn[m]),children:c&&de(lh,{className:Kn[m]},void 0,!1,void 0,this)},void 0,!1,void 0,this),de("span",{className:"min-w-0 flex-1 truncate",children:t},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Vc.displayName="SelectItem";var Yc=Yo(({className:e,...t},r)=>de("div",{ref:r,className:a("-mx-1 my-1 h-px bg-border",e),...t},void 0,!1,void 0,this));Yc.displayName="SelectSeparator";import{cva as zh}from"class-variance-authority";import{forwardRef as Mh}from"react";import{jsxDEV as Nh}from"react/jsx-dev-runtime";var Xo={horizontal:"horizontal",vertical:"vertical"},Xc=zh("shrink-0 bg-border",{variants:{orientation:{[Xo.horizontal]:"h-px w-full",[Xo.vertical]:"h-full w-px"}},defaultVariants:{orientation:Xo.horizontal}}),Jc=Mh(({className:e,orientation:t=Xo.horizontal,decorative:r=!0,...o},n)=>{let i=r?{role:"none"}:{role:"separator","aria-orientation":t};return Nh("div",{ref:n,className:a(Xc({orientation:t}),e),...i,...o},void 0,!1,void 0,this)});Jc.displayName="Separator";import{cva as Yn}from"class-variance-authority";import{forwardRef as Xn}from"react";import{jsxDEV as Jn}from"react/jsx-dev-runtime";var ze={sm:"sm",md:"md",lg:"lg"},qc=Yn("animate-pulse rounded-[var(--radius)] bg-muted"),Qc=Yn("w-full",{variants:{size:{[ze.sm]:"h-3",[ze.md]:"h-4",[ze.lg]:"h-5"}},defaultVariants:{size:ze.md}}),Zc=Yn("",{variants:{size:{[ze.sm]:"h-8 w-8",[ze.md]:"h-10 w-10",[ze.lg]:"h-12 w-12"}},defaultVariants:{size:ze.md}}),Ec=Yn("",{variants:{size:{[ze.sm]:"h-8 w-20",[ze.md]:"h-9 w-24",[ze.lg]:"h-10 w-28"}},defaultVariants:{size:ze.md}}),Jo=Xn(({className:e,circle:t=!1,...r},o)=>Jn("div",{ref:o,className:a(qc(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));Jo.displayName="Skeleton";var Dc=Xn(({className:e,size:t=ze.md,...r},o)=>{let n=f(t)??ze.md;return Jn(Jo,{ref:o,className:a(Qc({size:n}),e),...r},void 0,!1,void 0,this)});Dc.displayName="SkeletonText";var jc=Xn(({className:e,size:t=ze.md,...r},o)=>{let n=f(t)??ze.md;return Jn(Jo,{ref:o,circle:!0,className:a(Zc({size:n}),e),...r},void 0,!1,void 0,this)});jc.displayName="SkeletonAvatar";var ep=Xn(({className:e,size:t=ze.md,...r},o)=>{let n=f(t)??ze.md;return Jn(Jo,{ref:o,className:a(Ec({size:n}),e),...r},void 0,!1,void 0,this)});ep.displayName="SkeletonButton";import*as Et from"@radix-ui/react-slider";import{cva as Qn}from"class-variance-authority";import{forwardRef as Lh}from"react";import{jsxDEV as qn}from"react/jsx-dev-runtime";var so={sm:"sm",md:"md",lg:"lg"},tp=Qn("relative flex w-full touch-none select-none items-center"),rp=Qn("relative w-full grow overflow-hidden rounded-full bg-secondary"),op=Qn("absolute h-full bg-primary"),np=Qn("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] block cursor-grab rounded-full border-2 border-primary bg-background ring-offset-background active:cursor-grabbing focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/40 disabled:text-muted-foreground/70"),xh={[so.sm]:"h-2",[so.md]:"h-2.5",[so.lg]:"h-3"},Rh={[so.sm]:"h-4 w-4",[so.md]:"h-5 w-5",[so.lg]:"h-6 w-6"},ap=Lh(({className:e,size:t,...r},o)=>{let n=f(t);return qn(Et.Root,{ref:o,className:a(tp(),e),...r,children:[qn(Et.Track,{"data-slider-track":!0,className:a(rp(),xh[n]),children:qn(Et.Range,{className:a(op())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((i,s)=>qn(Et.Thumb,{"data-slider-thumb":!0,className:a(np(),Rh[n])},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});ap.displayName="Slider";import{cva as Se}from"class-variance-authority";import{forwardRef as kh,useCallback as Pi,useEffect as Mi,useLayoutEffect as Sh,useMemo as lo,useRef as Tt,useState as zi}from"react";import{useCallback as ip,useSyncExternalStore as Ch}from"react";var wh=()=>!1,Hh=()=>{return};function sp(e){let t=ip((o)=>{if(typeof window>"u")return Hh;let n=window.matchMedia(e);return n.addEventListener("change",o),()=>n.removeEventListener("change",o)},[e]),r=ip(()=>{if(typeof window>"u")return!1;return window.matchMedia(e).matches},[e]);return Ch(t,r,wh)}import{jsxDEV as U,Fragment as Lp}from"react/jsx-dev-runtime";var Ah="(max-width: 639px)",w={sm:"sm",md:"md",lg:"lg"},Ni={sm:"sm",md:"sm",lg:"md"},Zn={idle:"idle",loading:"loading",error:"error"},Bh=160,lp=Se("z-[120] bg-black/40"),mp=Se(["gs-spotlight-content fixed inset-x-0 top-[15vh] z-[120] w-full mx-auto","rounded-[calc(var(--radius)+6px)] border border-border bg-popover shadow-2xl","overflow-hidden"],{variants:{size:{[w.sm]:"max-w-md",[w.md]:"max-w-xl",[w.lg]:"max-w-2xl"}},defaultVariants:{size:w.md}}),dp=Se(["gs-sheet-content gs-sheet-content-bottom","fixed inset-x-0 bottom-0 z-[120] w-full flex flex-col","rounded-t-2xl border-t border-x border-border bg-popover shadow-2xl","overflow-hidden"]),up=Se("flex items-center border-b border-border",{variants:{size:{[w.sm]:"gap-2 px-3 py-2",[w.md]:"gap-3 px-4 py-3",[w.lg]:"gap-3 px-5 py-3.5"}},defaultVariants:{size:w.md}}),cp=Se(["w-full flex-1 bg-transparent text-foreground","placeholder:text-muted-foreground","outline-none border-none"],{variants:{size:{[w.sm]:"text-sm",[w.md]:"text-base",[w.lg]:"text-lg"}},defaultVariants:{size:w.md}}),pp=Se("text-muted-foreground shrink-0",{variants:{size:{[w.sm]:"size-3.5",[w.md]:"size-4",[w.lg]:"size-5"}},defaultVariants:{size:w.md}}),fp=Se("overflow-y-auto py-1",{variants:{size:{[w.sm]:"max-h-64",[w.md]:"max-h-80",[w.lg]:"max-h-96"}},defaultVariants:{size:w.md}}),gp=Se("font-semibold text-muted-foreground uppercase tracking-wide",{variants:{size:{[w.sm]:"px-2.5 py-1.5 text-[11px]",[w.md]:"px-3 py-2 text-xs",[w.lg]:"px-3.5 py-2 text-xs"}},defaultVariants:{size:w.md}}),bp=Se(["group flex items-center cursor-pointer rounded-lg","text-foreground","transition-[color,background-color,box-shadow] duration-100","active:scale-[0.98]"],{variants:{size:{[w.sm]:"gap-2 px-2.5 py-1.5 mx-1.5",[w.md]:"gap-3 px-3 py-2 mx-2",[w.lg]:"gap-3 px-3.5 py-2.5 mx-2"},selected:{true:"bg-primary/10",false:"hover:bg-muted"},disabled:{true:"text-muted-foreground cursor-not-allowed pointer-events-none bg-muted/40",false:""}},defaultVariants:{size:w.md,selected:!1,disabled:!1}}),yp=Se("shrink-0",{variants:{size:{[w.sm]:"size-3.5",[w.md]:"size-4",[w.lg]:"size-5"},selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{size:w.md,selected:!1}}),vp=Se("flex-1 min-w-0"),Tp=Se("font-medium truncate",{variants:{size:{[w.sm]:"text-xs",[w.md]:"text-sm",[w.lg]:"text-sm"}},defaultVariants:{size:w.md}}),hp=Se("text-muted-foreground truncate",{variants:{size:{[w.sm]:"text-[11px]",[w.md]:"text-xs",[w.lg]:"text-xs"}},defaultVariants:{size:w.md}}),Pp=Se("flex items-center gap-1 text-muted-foreground shrink-0",{variants:{size:{[w.sm]:"text-[11px]",[w.md]:"text-[11px]",[w.lg]:"text-xs"}},defaultVariants:{size:w.md}}),En=Se("flex flex-col items-center justify-center text-muted-foreground",{variants:{size:{[w.sm]:"py-6 min-h-20",[w.md]:"py-8 min-h-24",[w.lg]:"py-10 min-h-28"},state:{empty:"text-muted-foreground",loading:"text-muted-foreground",error:"text-destructive"}},defaultVariants:{size:w.md,state:"empty"}}),Dn=Se("font-medium",{variants:{size:{[w.sm]:"text-xs",[w.md]:"text-sm",[w.lg]:"text-sm"}},defaultVariants:{size:w.md}}),zp=Se("mt-1",{variants:{size:{[w.sm]:"text-[11px]",[w.md]:"text-xs",[w.lg]:"text-xs"}},defaultVariants:{size:w.md}}),Mp=(e,t)=>{if(!t)return!0;let r=t.toLowerCase();return e.title.toLowerCase().includes(r)||(e.description?.toLowerCase().includes(r)??!1)||(e.keywords?.some((o)=>o.toLowerCase().includes(r))??!1)};function Ih(e,t){let r=Tt(null),o=Tt(null),n=Tt(null),i=Tt(!0),s=Tt(t);return Mi(()=>{if(e)i.current=!0},[e]),Sh(()=>{let l=r.current,d=o.current,m=n.current;if(!(l&&d&&m))return;let c=d.scrollHeight,u=s.current!==t;if(s.current=t,i.current)l.style.transition="none",l.style.height=`${c}px`,m.style.transition="none",m.style.opacity="1",requestAnimationFrame(()=>{l.style.transition="",m.style.transition="",i.current=!1});else if(u)m.style.transition="none",m.style.opacity="0",l.style.height=`${c}px`,requestAnimationFrame(()=>{m.style.transition="opacity 200ms var(--motion-ease-emphasized)",m.style.opacity="1"});else l.style.height=`${c}px`}),{wrapperRef:r,contentRef:o,viewRef:n}}function Fh({action:e,size:t,isActive:r,isDisabled:o,isMac:n,onClick:i,renderItem:s,index:l}){let d=e.shortcut?jn(e.shortcut,n):[],m=new Map,c=d.map((u)=>{let g=(m.get(u)??0)+1;return m.set(u,g),{token:u,key:`${u}-${g}`}});return U("div",{role:"option","aria-selected":r,"aria-disabled":o,tabIndex:o?-1:0,onClick:i,onKeyDown:(u)=>{if(u.key==="Enter"||u.key===" ")u.preventDefault(),i()},className:a(bp({size:t,selected:r,disabled:o})),children:s?s(e,{active:r,disabled:o,index:l}):U(Lp,{children:[e.icon&&U("span",{className:a(yp({size:t,selected:r})),children:e.icon},void 0,!1,void 0,this),U("div",{className:a(vp()),children:[U("div",{className:a(Tp({size:t})),children:e.title},void 0,!1,void 0,this),e.description&&U("div",{className:a(hp({size:t})),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.length>0&&U("div",{className:a(Pp({size:t})),children:c.map((u)=>U("kbd",{className:a(Xr({size:Ni[t]})),children:u.token},u.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Np=kh(({className:e,open:t,onOpenChange:r,actions:o,onActionSelect:n,value:i,defaultValue:s="",onValueChange:l,placeholder:d="Search commands, pages, or actions...",size:m=w.md,status:c=Zn.idle,statusMessage:u,emptyText:g="No command found for this query.",hotkey:v,portal:b=!0,filterFn:T,renderItem:M,footer:z,...p},h)=>{let x=Tt(null),H=Tt(null),[k,B]=zi(s),[R,Y]=zi(0),[K,X]=zi(t),{isMac:j}=Ao(),se=sp(Ah),V=be(),J=lo(()=>v&&v.length>0?v.join("+"):null,[v]),S=lo(()=>v?jn(v,j):[],[v,j]),re=lo(()=>{let A=new Map;return S.map((ce)=>{let Ne=(A.get(ce)??0)+1;return A.set(ce,Ne),{token:ce,key:`${ce}-${Ne}`}})},[S]);xo(J??"",()=>r(!t),{enabled:!!J});let L=i!==void 0?i:k,W=T??Mp,y=lo(()=>o.filter((A)=>W(A,L)),[o,L,W]),P=lo(()=>y.flatMap((A,ce)=>A.disabled?[]:[ce]),[y]),C=lo(()=>{let A=new Map,ce=new Map,Ne=0;for(let N of y){let E=N.group??"";if(!A.has(E))A.set(E,[]);A.get(E)?.push(N),ce.set(N,Ne++)}return{groups:A,indexMap:ce}},[y]),oe=Tt(!1),_=Tt(t);if(_.current!==t)oe.current=!t,_.current=t;let Ce=Tt({query:L,status:c,statusMessage:u??null,filtered:y,grouped:C,activeIndex:R,emptyText:g});if(!oe.current)Ce.current={query:L,status:c,statusMessage:u??null,filtered:y,grouped:C,activeIndex:R,emptyText:g};let O=Ce.current,ne=O.status===Zn.loading?"loading":O.status===Zn.error?"error":O.filtered.length===0?"empty":"results",{wrapperRef:Lt,contentRef:ot,viewRef:$}=Ih(t,ne);Mi(()=>{if(t)Y(0)},[t]),Mi(()=>{if(t){X(!0);return}let A=setTimeout(()=>{X(!1)},V?0:Bh);return()=>{clearTimeout(A)}},[t,V]);let ue=t||K,ae=Pi((A)=>{B(A.target.value),l?.(A.target.value),Y(0)},[l]),Me=Pi((A)=>{H.current?.querySelectorAll('[role="option"]')[A]?.scrollIntoView({block:"nearest"})},[]),Ue=Pi((A)=>{if(A.key==="ArrowDown"||A.key==="ArrowUp"){if(A.preventDefault(),P.length===0)return;let ce=P.indexOf(R),Ne=A.key==="ArrowDown"?P[(ce+1)%P.length]:P[(ce-1+P.length)%P.length];if(Ne!==void 0)Y(Ne),Me(Ne);return}if(A.key==="Enter"){A.preventDefault();let ce=y[R];if(ce&&!ce.disabled)n(ce,R)}},[R,P,y,n,Me]),ct=U(Lp,{children:[U(Co,{forceMount:!0,"data-testid":"spotlight-overlay",className:a(lp()),onClick:()=>r(!1)},void 0,!1,void 0,this),U(qa,{...p,ref:h,forceMount:!0,className:a(se?dp():mp({size:m}),e),"aria-label":"Spotlight search","aria-describedby":void 0,onOpenAutoFocus:(A)=>{A.preventDefault(),x.current?.focus()},onCloseAutoFocus:(A)=>A.preventDefault(),onKeyDown:Ue,children:[U(Mn,{className:"sr-only",children:"Spotlight search"},void 0,!1,void 0,this),se&&U("div",{className:"flex justify-center pt-2 pb-1",children:U("div",{className:"h-1 w-8 rounded-full bg-muted-foreground/30"},void 0,!1,void 0,this)},void 0,!1,void 0,this),U("div",{className:a(up({size:m})),children:[U("svg",{className:a(pp({size:m})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:U("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),U("input",{ref:x,type:"text",value:O.query,onChange:ae,placeholder:d,"aria-label":"Search",className:a(cp({size:m}))},void 0,!1,void 0,this),!se&&(v?U("div",{className:"flex items-center gap-1",children:re.map((A)=>U("kbd",{className:a(Xr({size:Ni[m]})),children:A.token},A.key,!1,void 0,this))},void 0,!1,void 0,this):U("kbd",{className:a(Xr({size:Ni[m]})),children:"ESC"},void 0,!1,void 0,this))]},void 0,!0,void 0,this),U("div",{ref:Lt,className:"overflow-hidden transition-[height] duration-200 ease-[var(--motion-ease-emphasized)] motion-reduce:transition-none",children:U("div",{ref:ot,children:U("div",{ref:$,children:[ne==="loading"&&U("div",{className:a(En({size:m,state:"loading"})),children:[U(Gt,{size:"sm",className:"mb-2 text-muted-foreground"},void 0,!1,void 0,this),U("div",{className:a(Dn({size:m})),children:"Searching commands..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ne==="error"&&U("div",{className:a(En({size:m,state:"error"})),children:[U("div",{className:a(Dn({size:m})),children:"Search failed"},void 0,!1,void 0,this),O.statusMessage&&U("div",{className:a(zp({size:m})),children:O.statusMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ne==="empty"&&U("div",{className:a(En({size:m,state:"empty"})),children:U("div",{className:a(Dn({size:m})),children:O.emptyText},void 0,!1,void 0,this)},void 0,!1,void 0,this),ne==="results"&&U("div",{ref:H,role:"listbox","aria-label":"Search results",className:a(fp({size:m}),se&&"max-h-none min-h-0 flex-1"),children:Array.from(O.grouped.groups.entries()).map(([A,ce])=>U("div",{children:[A&&U("div",{className:a(gp({size:m})),children:A},void 0,!1,void 0,this),ce.map((Ne)=>{let N=O.grouped.indexMap.get(Ne)??0;return U(Fh,{action:Ne,size:m,isActive:N===O.activeIndex,isDisabled:Ne.disabled??!1,isMac:j,index:N,onClick:()=>{if(!Ne.disabled)n(Ne,N)},renderItem:M},Ne.id,!1,void 0,this)})]},A||"__ungrouped__",!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),z&&U("div",{className:"border-border border-t px-3 py-2",children:z},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return U(Ro,{open:t,onOpenChange:r,children:ue?b?U(Pn,{forceMount:!0,children:ct},void 0,!1,void 0,this):ct:null},void 0,!1,void 0,this)});Np.displayName="Spotlight";import{cva as Nr}from"class-variance-authority";import{Check as Gh}from"lucide-react";import{forwardRef as Lr}from"react";import{jsxDEV as Dt}from"react/jsx-dev-runtime";var xp=Nr("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),Rp=Nr("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),Cp=Nr(["relative z-10 flex shrink-0 items-center justify-center rounded-full border-2 font-semibold","transition-[color,background-color,border-color,box-shadow] duration-200 ease-out"],{variants:{status:{incomplete:["border-border bg-card text-muted-foreground","shadow-[var(--shadow-xs)]"],current:["border-primary bg-primary text-primary-foreground","shadow-[var(--glow-brand-sm)]"],complete:["border-success/60 bg-success text-success-foreground","shadow-[var(--shadow-sm)]","[&>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"},animated:{true:"gs-step-indicator-animated",false:""}},defaultVariants:{status:"incomplete",size:"md",animated:!0}}),wp=Nr("rounded-full transition-[background-color,opacity] duration-300 ease-out",{variants:{orientation:{horizontal:"mx-2 mt-5 h-1 flex-1",vertical:"ml-5 min-h-10 w-1"},status:{incomplete:"bg-border/60",complete:"bg-gradient-to-r from-primary to-success"},size:{sm:"opacity-80",md:"",lg:"opacity-95"},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=Nr("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),kp=Nr("font-medium transition-colors duration-200 ease-out",{variants:{status:{incomplete:"text-muted-foreground",current:"text-foreground",complete:"text-foreground"},size:{sm:"text-sm",md:"text-sm",lg:"text-base"}},defaultVariants:{status:"incomplete",size:"md"}}),Sp=Nr("text-muted-foreground transition-colors duration-200 ease-out",{variants:{size:{sm:"text-sm",md:"text-xs",lg:"text-sm"}},defaultVariants:{size:"md"}});var Ap=Lr(({className:e,orientation:t="horizontal",activeStep:r,...o},n)=>{return Dt("div",{ref:n,role:"group","aria-label":"Progress steps",className:a(xp({orientation:t}),e),"data-orientation":t,"data-active-step":r,...o},void 0,!1,void 0,this)});Ap.displayName="Stepper";var Bp=Lr(({className:e,orientation:t="horizontal",isLast:r,isCurrent:o,...n},i)=>{return Dt("div",{ref:i,className:a(Rp({orientation:t}),e),"data-last":r,"aria-current":o?"step":void 0,...n},void 0,!1,void 0,this)});Bp.displayName="Step";var Ip=Lr(({className:e,status:t="incomplete",size:r="md",icon:o,step:n,children:i,animated:s=!0,...l},d)=>{let m=f(r);return Dt("div",{ref:d,className:a(Cp({status:t,size:m,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?o||Dt(Gh,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):i||n},void 0,!1,void 0,this)});Ip.displayName="StepIndicator";var Fp=Lr(({className:e,orientation:t="horizontal",status:r="incomplete",size:o="md",animated:n=!0,...i},s)=>{let l=f(o);return Dt("div",{ref:s,className:a(wp({orientation:t,status:r,size:l,animated:n}),e),"data-status":r,...i},void 0,!1,void 0,this)});Fp.displayName="StepConnector";var Gp=Lr(({className:e,orientation:t="horizontal",...r},o)=>{return Dt("div",{ref:o,className:a(Hp({orientation:t}),e),...r},void 0,!1,void 0,this)});Gp.displayName="StepContent";var Op=Lr(({className:e,status:t="incomplete",size:r="md",...o},n)=>{let i=f(r);return Dt("h4",{ref:n,className:a(kp({status:t,size:i}),e),...o},void 0,!1,void 0,this)});Op.displayName="StepTitle";var Wp=Lr(({className:e,size:t="md",...r},o)=>{let n=f(t);return Dt("p",{ref:o,className:a(Sp({size:n}),e),...r},void 0,!1,void 0,this)});Wp.displayName="StepDescription";import*as ea from"@radix-ui/react-switch";import{cva as Oh}from"class-variance-authority";import{forwardRef as Wh}from"react";import{jsxDEV as _p}from"react/jsx-dev-runtime";var et={sm:"sm",md:"md",lg:"lg"},mo={default:"default",error:"error",success:"success"},Up=Oh("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] 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:{[et.sm]:"h-4.5 w-8",[et.md]:"h-5 w-9",[et.lg]:"h-6 w-11"},status:{[mo.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",[mo.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",[mo.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:et.md,status:mo.default}}),_h={[et.sm]:"h-3.5 w-3.5",[et.md]:"h-4 w-4",[et.lg]:"h-5 w-5"},Uh={[et.sm]:"data-[state=checked]:translate-x-3.5",[et.md]:"data-[state=checked]:translate-x-4",[et.lg]:"data-[state=checked]:translate-x-5"},Kp=Wh(({className:e,size:t=et.md,status:r=mo.default,checked:o,disabled:n,...i},s)=>{let l=f(t);return _p(ea.Root,{ref:s,checked:o,disabled:n,className:a(Up({size:l,status:r}),e),...i,children:_p(ea.Thumb,{className:a("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",_h[l],Uh[l])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Kp.displayName="Switch";import{cva as Bt}from"class-variance-authority";import{createContext as Kh,forwardRef as jt,useContext as $p}from"react";import{jsxDEV as ht}from"react/jsx-dev-runtime";var Ie={sm:"sm",md:"md",lg:"lg"},Li=Kh(Ie.md),Vp=Bt("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),Yp=Bt("w-full caption-bottom",{variants:{size:{[Ie.sm]:"text-xs",[Ie.md]:"text-sm",[Ie.lg]:"text-sm"}},defaultVariants:{size:Ie.md}}),Xp=Bt("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),Jp=Bt("[&_tr:last-child]:border-0"),qp=Bt("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),Qp=Bt("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),Zp=Bt("text-left align-middle font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[Ie.sm]:"h-8 px-2",[Ie.md]:"h-10 px-3",[Ie.lg]:"h-12 px-4"}},defaultVariants:{size:Ie.md}}),Ep=Bt("align-middle text-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[Ie.sm]:"p-2",[Ie.md]:"p-3",[Ie.lg]:"p-4"}},defaultVariants:{size:Ie.md}}),Dp=Bt("mt-4 text-sm text-muted-foreground"),jp=jt(({className:e,containerClassName:t,size:r=Ie.md,...o},n)=>{let i=f(r)??Ie.md;return ht(Li.Provider,{value:i,children:ht("div",{className:a(Vp(),t),children:ht("table",{ref:n,className:a(Yp({size:i}),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});jp.displayName="Table";var ef=jt(({className:e,...t},r)=>ht("thead",{ref:r,className:a(Xp(),e),...t},void 0,!1,void 0,this));ef.displayName="TableHeader";var tf=jt(({className:e,...t},r)=>ht("tbody",{ref:r,className:a(Jp(),e),...t},void 0,!1,void 0,this));tf.displayName="TableBody";var rf=jt(({className:e,...t},r)=>ht("tfoot",{ref:r,className:a(qp(),e),...t},void 0,!1,void 0,this));rf.displayName="TableFooter";var of=jt(({className:e,...t},r)=>ht("tr",{ref:r,className:a(Qp(),e),...t},void 0,!1,void 0,this));of.displayName="TableRow";var nf=jt(({className:e,size:t,...r},o)=>{let n=$p(Li);return ht("th",{ref:o,className:a(Zp({size:t??n}),e),...r},void 0,!1,void 0,this)});nf.displayName="TableHead";var af=jt(({className:e,size:t,...r},o)=>{let n=$p(Li);return ht("td",{ref:o,className:a(Ep({size:t??n}),e),...r},void 0,!1,void 0,this)});af.displayName="TableCell";var sf=jt(({className:e,...t},r)=>ht("caption",{ref:r,className:a(Dp(),e),...t},void 0,!1,void 0,this));sf.displayName="TableCaption";import*as dt from"@radix-ui/react-tabs";import{cva as xi}from"class-variance-authority";import{forwardRef as Ri,useRef as lf}from"react";import{jsxDEV as ta}from"react/jsx-dev-runtime";var er={sm:"sm",md:"md",lg:"lg"},mf=xi("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-secondary p-1 text-muted-foreground",{variants:{size:{[er.sm]:"h-9 gap-0.5",[er.md]:"h-11 gap-1",[er.lg]:"h-12 gap-1"}},defaultVariants:{size:er.md}}),df=xi("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative z-10 inline-flex items-center justify-center whitespace-nowrap rounded-[calc(var(--radius)-2px)] font-semibold leading-none text-muted-foreground 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:{[er.sm]:"h-7 px-2.5 text-xs",[er.md]:"h-9 px-3 text-sm",[er.lg]:"h-10 px-4 text-sm"}},defaultVariants:{size:er.md}}),uf=xi("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),$h=dt.Root,Vh=["data-state","aria-selected"],cf=Ri(({className:e,size:t,children:r,...o},n)=>{let i=f(t),s=lf(null),l=kt(n,s),d=lf(null);return Wn(s,d,{activeSelector:"button[role='tab'][data-state='active']",observeAttributes:Vh}),ta(dt.List,{ref:l,className:a(mf({size:i}),e),...o,children:[ta("span",{ref:d,"aria-hidden":!0,"data-slot":"indicator",className:_n,style:{opacity:0}},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});cf.displayName=dt.List.displayName;var pf=Ri(({className:e,size:t,...r},o)=>{let n=f(t);return ta(dt.Trigger,{ref:o,className:a(df({size:n}),e),...r},void 0,!1,void 0,this)});pf.displayName=dt.Trigger.displayName;var ff=Ri(({className:e,...t},r)=>ta(dt.Content,{ref:r,className:a(uf(),e),...t},void 0,!1,void 0,this));ff.displayName=dt.Content.displayName;import{cva as Yh}from"class-variance-authority";import{forwardRef as Xh}from"react";import{jsxDEV as Jh}from"react/jsx-dev-runtime";var qo={default:"default",error:"error",success:"success"},Qo={sm:"sm",md:"md",lg:"lg"},gf=Yh("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] 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:{[qo.default]:"focus-visible:ring-primary",[qo.error]:"border-destructive focus-visible:ring-destructive",[qo.success]:"border-success focus-visible:ring-success"},size:{[Qo.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[Qo.md]:"min-h-[96px] px-3 py-2",[Qo.lg]:"min-h-[112px] px-4 py-2.5"}},defaultVariants:{status:qo.default,size:Qo.md}}),bf=Xh(({className:e,status:t=qo.default,size:r=Qo.md,fullWidth:o=!1,noResize:n=!1,disabled:i,...s},l)=>{let d=f(r);return Jh("textarea",{ref:l,className:a(gf({status:t,size:d}),i&&"bg-muted",o&&"w-full",n&&"resize-none",e),disabled:i,...s},void 0,!1,void 0,this)});bf.displayName="Textarea";import{cva as tr}from"class-variance-authority";import{forwardRef as rr}from"react";import{jsxDEV as Pt}from"react/jsx-dev-runtime";var yf=tr("relative flex flex-col"),vf=tr(["group relative flex pb-8 last:pb-0","transition-opacity duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]"],{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}}),Tf=tr(["absolute bottom-0 w-0.5 rounded-full","transition-[background-color,opacity,height] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]"],{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-[7px] top-5",md:"left-[15px] top-9",lg:"left-[21px] top-12"},animated:{true:"gs-timeline-connector-animated",false:""}},defaultVariants:{variant:"default",size:"md",animated:!0}}),hf=tr(["relative z-10 flex shrink-0 items-center justify-center rounded-full border-2","transition-[color,background-color,border-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","[&>svg]:shrink-0"],{variants:{variant:{default:["border-border bg-card text-muted-foreground","shadow-[var(--shadow-sm)]","hover:border-border hover:shadow-[var(--shadow-md)]"],success:["border-success/60 bg-success/10 text-success","shadow-[var(--shadow-success-sm)]","hover:bg-success/15 hover:border-success/70 hover:shadow-[var(--shadow-success-md)]"],warning:["border-warning/60 bg-warning/10 text-warning","shadow-[var(--shadow-warning-sm)]","hover:bg-warning/15 hover:border-warning/70 hover:shadow-[var(--shadow-warning-md)]"],error:["border-destructive/60 bg-destructive/10 text-destructive","shadow-[var(--shadow-destructive-sm)]","hover:bg-destructive/15 hover:border-destructive/70 hover:shadow-[var(--shadow-destructive-md)]"],info:["border-info/60 bg-info/10 text-info","shadow-[var(--shadow-info-sm)]","hover:bg-info/15 hover:border-info/70 hover:shadow-[var(--shadow-info-md)]"],primary:["border-primary/60 bg-primary/10 text-primary","shadow-[var(--shadow-primary-sm)]","hover:bg-primary/15 hover:border-primary/70 hover:shadow-[var(--shadow-primary-md)]"]},size:{sm:"h-4 w-4 [&>svg]:size-2",md:"h-8 w-8 [&>svg]:size-4",lg:"h-11 w-11 [&>svg]:size-5"},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}}),Pf=tr("flex min-w-0 flex-col gap-1 pt-0.5 transition-opacity duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]"),zf=tr("font-semibold leading-tight text-foreground transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[11px]",md:"text-base",lg:"text-lg"}},defaultVariants:{size:"md"}}),Mf=tr("text-muted-foreground transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[11px]",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Nf=tr("font-medium text-muted-foreground/70 transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[11px]",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}});var Lf=rr(({className:e,...t},r)=>{return Pt("div",{ref:r,role:"list","aria-label":"Timeline events",className:a(yf(),e),...t},void 0,!1,void 0,this)});Lf.displayName="Timeline";var xf=rr(({className:e,align:t,isLast:r,animated:o=!0,...n},i)=>{return Pt("div",{ref:i,role:"listitem",className:a(vf({align:t,animated:o}),e),"data-last":r,...n},void 0,!1,void 0,this)});xf.displayName="TimelineItem";var Rf=rr(({className:e,variant:t,size:r,animated:o=!0,...n},i)=>{let s=f(r);return Pt("div",{ref:i,className:a(Tf({variant:t,size:s,animated:o}),e),...n},void 0,!1,void 0,this)});Rf.displayName="TimelineConnector";var Cf=rr(({className:e,variant:t,size:r,icon:o,children:n,pulse:i=!1,animated:s=!0,...l},d)=>{let m=f(r);return Pt("div",{ref:d,className:a(hf({variant:t,size:m,pulse:i,animated:s}),e),"aria-hidden":"true",...l,children:o||n||Pt(qh,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Cf.displayName="TimelineDot";var wf=rr(({className:e,...t},r)=>{return Pt("div",{ref:r,className:a(Pf(),e),...t},void 0,!1,void 0,this)});wf.displayName="TimelineContent";var Hf=rr(({className:e,size:t,...r},o)=>{let n=f(t);return Pt("h4",{ref:o,className:a(zf({size:n}),e),...r},void 0,!1,void 0,this)});Hf.displayName="TimelineTitle";var kf=rr(({className:e,size:t,...r},o)=>{let n=f(t);return Pt("p",{ref:o,className:a(Mf({size:n}),e),...r},void 0,!1,void 0,this)});kf.displayName="TimelineDescription";var Sf=rr(({className:e,size:t,...r},o)=>{let n=f(t);return Pt("time",{ref:o,className:a(Nf({size:n}),e),...r},void 0,!1,void 0,this)});Sf.displayName="TimelineTime";function qh(){return Pt("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as Af}from"class-variance-authority";var uo={default:"default",success:"success",info:"info",warning:"warning",error:"error"},tt={sm:"sm",md:"md",lg:"lg"},Ci=Af("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[uo.default]:"border-border bg-card text-card-foreground",[uo.success]:"border-success/30 bg-card text-card-foreground",[uo.info]:"border-info/30 bg-card text-card-foreground",[uo.warning]:"border-warning/30 bg-card text-card-foreground",[uo.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[tt.sm]:"gap-2 p-3",[tt.md]:"gap-3 p-4",[tt.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:uo.default,size:tt.md}}),wi=Af("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] 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:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70",{variants:{size:{[tt.sm]:"h-6 px-2 text-xs",[tt.md]:"h-7 px-2.5 text-xs",[tt.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:tt.md}});import{AlertTriangle as oP,CheckCircle2 as nP,Info as Wf,X as aP,XCircle as iP}from"lucide-react";import{forwardRef as sP,useCallback as na,useEffect as co,useRef as Bi,useState as Ii}from"react";import{useSyncExternalStore as Qh}from"react";var Zh=5,If=5000,Eh=500,Hi=0;function Dh(){return Hi=(Hi+1)%Number.MAX_SAFE_INTEGER,`toast-${Hi}-${Date.now()}`}var ki=new Set,rt=[],Rr=new Map,Eo=new Map,Do=!1,xr=new Map;function ra(){for(let e of ki)e()}function Bf(){return rt}function jh(e){return ki.add(e),()=>{ki.delete(e)}}function Si(e,t){if(Do){xr.set(e,t);return}clearTimeout(Rr.get(e));let r=Date.now(),o=setTimeout(()=>{Rr.delete(e),xr.delete(e),oa(e)},t);Rr.set(e,o),xr.set(e,t);let n=setInterval(()=>{let i=Date.now()-r,s=t-i;if(s<=0)clearInterval(n),xr.delete(e);else xr.set(e,s)},100)}function eP(e){clearTimeout(Eo.get(e));let t=To()?0:Eh,r=setTimeout(()=>{rt=rt.filter((o)=>o.id!==e),Eo.delete(e),ra()},t);Eo.set(e,r)}function Ff(e){clearTimeout(Rr.get(e)),Rr.delete(e),xr.delete(e)}function Zo(e){let t=e.id??Dh(),r=e.duration===void 0?If:e.duration;if(rt.find((i)=>i.id===t)){if(rt=rt.map((i)=>i.id===t?{...i,...e,id:t,open:!0,createdAt:Date.now()}:i),clearTimeout(Eo.get(t)),Eo.delete(t),Ff(t),typeof r==="number")Si(t,r);return ra(),t}if(rt=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...rt].slice(0,Zh),typeof r==="number")Si(t,r);return ra(),t}function oa(e){Ff(e),rt=rt.map((t)=>t.id===e?{...t,open:!1}:t),ra(),eP(e)}function Gf(){for(let e of rt)oa(e.id)}function tP(){if(Do)return;Do=!0;for(let[e,t]of Rr)clearTimeout(t),Rr.delete(e)}function rP(){if(!Do)return;Do=!1;for(let e of rt)if(e.open){if(e.duration===null)continue;let t=e.duration??If,r=xr.get(e.id)??t;Si(e.id,r)}}var Of=Object.assign((e)=>Zo(e),{success:(e,t)=>Zo({...t,variant:"success",title:e}),info:(e,t)=>Zo({...t,variant:"info",title:e}),warning:(e,t)=>Zo({...t,variant:"warning",title:e}),error:(e,t)=>Zo({...t,variant:"error",title:e}),dismiss:oa,dismissAll:Gf});function Ai(){return{toasts:Qh(jh,Bf,Bf),toast:Of,dismiss:oa,dismissAll:Gf,pauseAll:tP,resumeAll:rP}}import{jsxDEV as _e}from"react/jsx-dev-runtime";var Uf=10,_f=0.05,lP=200,mP={"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"},dP={success:(e)=>_e(nP,{className:a("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>_e(Wf,{className:a("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>_e(oP,{className:a("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>_e(iP,{className:a("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>_e(Wf,{className:a("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function uP(e,t,r,o,n){let i=e<o,s=r?n:e*Uf,l=r?1:i?1-e*_f:1-o*_f,d=i||r?1:0,m=t-e;return{offset:s,scale:l,opacity:d,zIndex:m}}var Kf=sP(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:o=tt.md,className:n,...i},s)=>{let{toasts:l,dismiss:d,pauseAll:m,resumeAll:c}=Ai(),u=be(),g=f(o)??tt.md,[v,b]=Ii(!1),[T,M]=Ii({}),z=Bi(null),p=Bi(void 0),h=e.startsWith("bottom"),x=na((S)=>{if(z.current=S,typeof s==="function")s(S);else if(s)s.current=S},[s]),H=na(()=>{clearTimeout(p.current),b(!0),m()},[m]),k=na(()=>{clearTimeout(p.current),p.current=setTimeout(()=>{b(!1),c()},u?0:lP)},[u,c]);co(()=>{return()=>clearTimeout(p.current)},[]);let B=na((S,re)=>{M((L)=>{if(L[S]===re)return L;return{...L,[S]:re}})},[]);co(()=>{let S=new Set(l.map((re)=>re.id));M((re)=>{let L=!1,W={};for(let[y,P]of Object.entries(re))if(S.has(y))W[y]=P;else L=!0;return L?W:re})},[l]);let R=l.filter((S)=>S.open),Y=new Map,K=0;for(let[S,re]of R.entries()){let L=T[re.id]??0;Y.set(re.id,uP(S,R.length,v,r,K)),K+=L+t}let X=R[0],se=(X?T[X.id]??0:0)+Math.min(R.length-1,r-1)*Uf,V=K-(R.length>0?t:0),J=v?V:se;if(co(()=>{let S=z.current;if(!S)return;S.style.setProperty("--gs-toast-stack-height",`${Math.max(J,0)}px`)},[J]),l.length===0)return null;return _e("ol",{ref:x,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:H,onMouseLeave:k,className:a("pointer-events-auto fixed z-[100] h-[var(--gs-toast-stack-height,0px)] w-full max-w-[400px] outline-none transition-[height] duration-[var(--motion-duration-spring)] ease-[var(--motion-ease-emphasized)]",mP[e],n),...i,children:l.map((S)=>{let re=!S.open,L=Y.get(S.id);return _e(cP,{toast:S,layout:L??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:re,isBottom:h,size:g,onDismiss:d,onMeasure:B,reducedMotion:u},S.id,!1,void 0,this)})},void 0,!1,void 0,this)});Kf.displayName="Toaster";function cP({toast:e,layout:t,isClosed:r,isBottom:o,size:n,onDismiss:i,onMeasure:s,reducedMotion:l}){let d=Bi(null),[m,c]=Ii(!1);co(()=>{if(l){c(!0);return}let T=requestAnimationFrame(()=>c(!0));return()=>cancelAnimationFrame(T)},[l]),co(()=>{let T=d.current;if(!T)return;let M=new ResizeObserver((z)=>{for(let p of z){let h=p.borderBoxSize?.[0];if(h)s(e.id,h.blockSize)}});return M.observe(T),()=>M.disconnect()},[e.id,s]);let u=o?"bottom-0 left-0 right-0 origin-bottom":"top-0 left-0 right-0 origin-top",g,v,b;if(!m)g=`translateY(${o?80:-80}px) scale(0.9)`,v=0,b="false";else if(r)g=`translateY(${o?80:-80}px) scale(0.95)`,v=0,b="false";else g=`translateY(${o?-t.offset:t.offset}px) scale(${t.scale})`,v=t.opacity,b="true";return co(()=>{let T=d.current;if(!T)return;T.style.setProperty("--gs-toast-transform",g),T.style.setProperty("--gs-toast-opacity",`${v}`),T.style.setProperty("--gs-toast-z-index",`${t.zIndex}`)},[t.zIndex,v,g]),_e("li",{ref:d,"data-state":e.open?"open":"closed","data-variant":e.variant,"data-interactive":b,className:a("absolute list-none transition-[transform,opacity] duration-[var(--motion-duration-spring)] ease-[var(--motion-ease-emphasized)] [opacity:var(--gs-toast-opacity,0)] [transform:var(--gs-toast-transform)] [z-index:var(--gs-toast-z-index,0)]","data-[interactive=false]:pointer-events-none data-[interactive=true]:pointer-events-auto",u),children:_e("div",{className:a(Ci({variant:e.variant,size:n}),"w-full"),children:[dP[e.variant]?.(n),_e("div",{className:"flex-1 space-y-0.5",children:[e.title&&_e("p",{className:a("font-semibold leading-tight",n==="sm"?"text-xs":"text-sm"),children:e.title},void 0,!1,void 0,this),e.description&&_e("p",{className:a("text-muted-foreground leading-snug",n==="sm"?"text-xs":"text-sm"),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.action&&_e("button",{type:"button",className:a(wi({size:n}),"mt-0.5"),onClick:e.action.onClick,"aria-label":e.action.altText,children:e.action.label},void 0,!1,void 0,this),e.dismissible!==!1&&_e("button",{type:"button",className:a("mt-0.5 shrink-0 rounded-[var(--radius)] p-1 text-muted-foreground transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",n==="sm"?"[&>svg]:size-3.5":"[&>svg]:size-4"),onClick:()=>i(e.id),"aria-label":"Dismiss",children:_e(aP,{},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 $f from"@radix-ui/react-toggle";import{cva as pP}from"class-variance-authority";import{forwardRef as fP}from"react";import{jsxDEV as gP}from"react/jsx-dev-runtime";var Fi={default:"default",outline:"outline"},aa={sm:"sm",md:"md",lg:"lg"},ia=pP("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] 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:{[Fi.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[Fi.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[aa.sm]:"h-7 px-1.5 min-w-7 text-xs",[aa.md]:"h-10 px-3 min-w-10",[aa.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:Fi.default,size:aa.md}}),Vf=fP(({className:e,variant:t,size:r,...o},n)=>{let i=f(r);return gP($f.Root,{ref:n,className:a(ia({variant:t,size:i}),e),...o},void 0,!1,void 0,this)});Vf.displayName="Toggle";import*as sa from"@radix-ui/react-toggle-group";import{cva as bP}from"class-variance-authority";import{createContext as yP,forwardRef as Yf,useContext as vP}from"react";import{jsxDEV as Gi}from"react/jsx-dev-runtime";var TP={default:"default",outline:"outline"},hP={sm:"sm",md:"md",lg:"lg"},Xf=bP("flex items-center justify-center gap-1"),Jf=yP({size:hP.md,variant:TP.default}),qf=Yf(({className:e,variant:t,size:r,children:o,...n},i)=>{let s=f(r);return Gi(sa.Root,{ref:i,className:a(Xf(),e),...n,children:Gi(Jf.Provider,{value:{variant:t,size:s},children:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)});qf.displayName="ToggleGroup";var Qf=Yf(({className:e,children:t,variant:r,size:o,...n},i)=>{let s=vP(Jf),l=f(o);return Gi(sa.Item,{ref:i,className:a(ia({variant:r??s.variant,size:l??s.size}),e),...n,children:t},void 0,!1,void 0,this)});Qf.displayName="ToggleGroupItem";import{cva as Zf}from"class-variance-authority";import{forwardRef as la}from"react";import{jsxDEV as ma}from"react/jsx-dev-runtime";var ut={sm:"sm",md:"md",lg:"lg"},Ef=Zf("flex items-center border-b border-border bg-secondary",{variants:{size:{[ut.sm]:"gap-1.5 px-3 py-1.5",[ut.md]:"gap-2 px-4 py-2",[ut.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:ut.md}}),Df=la(({className:e,size:t=ut.md,...r},o)=>{let n=f(t);return ma("div",{ref:o,role:"toolbar",className:a(Ef({size:n}),e),...r},void 0,!1,void 0,this)});Df.displayName="Toolbar";var jf=Zf("flex items-center",{variants:{size:{[ut.sm]:"gap-1",[ut.md]:"gap-1.5",[ut.lg]:"gap-2"}},defaultVariants:{size:ut.md}}),eg=la(({className:e,size:t=ut.md,...r},o)=>{let n=f(t);return ma("div",{ref:o,role:"group",className:a(jf({size:n}),e),...r},void 0,!1,void 0,this)});eg.displayName="ToolbarGroup";var tg=la(({className:e,...t},r)=>{return ma("div",{ref:r,role:"none",className:a("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});tg.displayName="ToolbarSeparator";var rg=la(({className:e,...t},r)=>{return ma("div",{ref:r,className:a("flex-1",e),...t},void 0,!1,void 0,this)});rg.displayName="ToolbarSpacer";import*as zt from"@radix-ui/react-tooltip";import{cva as PP}from"class-variance-authority";import{createContext as zP,forwardRef as og,useContext as ng}from"react";import{jsxDEV as fo}from"react/jsx-dev-runtime";var ag=({delayDuration:e,skipDelayDuration:t,...r})=>{let o=be();return fo(zt.Provider,{delayDuration:o?0:e,skipDelayDuration:o?0:t,...r},void 0,!1,void 0,this)};ag.displayName="TooltipProvider";var Oi=zP(!1),ig=({persistOnClick:e=!1,children:t,delayDuration:r,...o})=>{let n=be();return fo(Oi.Provider,{value:e,children:fo(zt.Root,{delayDuration:n?0:r,...o,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)};ig.displayName="Tooltip";var sg=og(({onClick:e,onPointerDown:t,...r},o)=>{let n=ng(Oi);return fo(zt.Trigger,{ref:o,onClick:n?(i)=>{i.preventDefault(),e?.(i)}:e,onPointerDown:n?(i)=>{i.preventDefault(),t?.(i)}:t,...r},void 0,!1,void 0,this)});sg.displayName="TooltipTrigger";var po={sm:F.sm,md:F.md,lg:F.lg},lg=PP("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:{[po.sm]:"px-2 py-1 text-xs",[po.md]:"px-3 py-1.5 text-xs",[po.lg]:"px-4 py-2 text-sm"}},defaultVariants:{size:po.md}}),mg=og(({className:e,sideOffset:t=nt,onPointerDownOutside:r,size:o=po.md,portal:n=ie,portalContainer:i,...s},l)=>{let d=ng(Oi),m=f(o),c=fo(zt.Content,{ref:l,sideOffset:t,className:a(lg({size:m}),e),onPointerDownOutside:d?(u)=>{u.preventDefault(),r?.(u)}:r,...s},void 0,!1,void 0,this);if(!n)return c;return fo(zt.Portal,{container:i??void 0,children:c},void 0,!1,void 0,this)});mg.displayName="TooltipContent";import{createContext as MP,useCallback as or,useContext as NP,useEffect as jo,useInsertionEffect as LP,useLayoutEffect as xP,useMemo as da,useRef as nr,useState as dg}from"react";import{jsxDEV as wP}from"react/jsx-dev-runtime";var RP=typeof window<"u"?xP:jo,CP=typeof window<"u"?LP:jo,_i=MP(null);function ua(e,t){return e.theme===t.theme&&e.colorScheme===t.colorScheme}var Cr=({children:e,value:t,initialState:r,onChange:o,onStateChange:n,transformState:i,readState:s,writeState:l,syncWithSystem:d=!0,enableTransition:m=!1,transitionDuration:c,defaultTheme:u,defaultColorScheme:g,themes:v,attribute:b,colorSchemeAttribute:T,darkClassName:M,storage:z})=>{let p=da(()=>go({defaultTheme:u,defaultColorScheme:g,themes:v,attribute:b,colorSchemeAttribute:T,darkClassName:M,storage:z}),[u,g,v,b,T,M,z]),[h,x]=dg(()=>Mt(typeof window<"u"?ca(p)??r:r,p)),[H,k]=dg(ba),R=da(()=>t?Mt(t,p):null,[t,p])??h,Y=da(()=>({...R,resolvedColorScheme:Wi(R.colorScheme,H)}),[R,H]),K=t!==void 0,X=nr(R);X.current=R;let j=nr(!1),se=nr(!1),V=nr(!1),J=nr(R),S=nr(null),re=nr(m);re.current=m;let L=nr(c);L.current=c;let W=or(($)=>{return fa($)},[]),y=or(($)=>{return ca($)},[]),P=or(($,ue)=>{ga($,ue)},[]),C=s??W,oe=l??P;jo(()=>{if(!d||typeof window>"u"||typeof window.matchMedia!=="function")return;let $=window.matchMedia("(prefers-color-scheme: dark)"),ue=()=>{k($.matches?Nt.dark:Nt.light)};return ue(),$.addEventListener("change",ue),()=>$.removeEventListener("change",ue)},[d]),jo(()=>{if(K)return;x(($)=>{let ue=Mt($,p);return ua($,ue)?$:ue})},[p,K]),RP(()=>{if(K||j.current)return;j.current=!0;let $=C(p)??y(p);if(!$)return;let ue=X.current,ae=Mt($,p),Me={reason:"hydrate",previousState:ue},Ue=i?Mt(i(ae,Me),p):ae;if(ua(ue,Ue))return;S.current=Me,x(Ue),o?.(Ue,Me),n?.(Ue,Me)},[p,K,o,n,y,C,i]),CP(()=>{if(typeof document>"u")return;let $=!V.current;if(V.current=!0,!$&&re.current&&!To()){let ae=L.current??200,Me=document.createElement("style");Me.setAttribute("data-gs-theme-transition",""),Me.textContent=`*, *::before, *::after { transition: color ${ae}ms ease, background-color ${ae}ms ease, border-color ${ae}ms ease, box-shadow ${ae}ms ease, fill ${ae}ms ease, stroke ${ae}ms ease !important; }`,document.head.appendChild(Me),pa(document.documentElement,Y,p);let Ue=requestAnimationFrame(()=>{setTimeout(()=>Me.remove(),ae)});return()=>{cancelAnimationFrame(Ue),Me.remove()}}pa(document.documentElement,Y,p);return},[p,Y]),jo(()=>{if(typeof window>"u")return;if(!se.current){se.current=!0,J.current=R;return}let $=J.current;if(ua($,R))return;let ue=S.current??{reason:"set-state",previousState:$};S.current=null,oe(R,p,ue),J.current=R},[p,R,oe]);let _=or(($,ue)=>{let ae=X.current,Me=typeof $==="function"?$(ae):$,Ue=Mt({theme:Me.theme??ae.theme,colorScheme:Me.colorScheme??ae.colorScheme},p),ct={reason:ue,previousState:ae},A=i?Mt(i(Ue,ct),p):Ue;if(ua(ae,A))return;if(S.current=ct,!K)x(A);o?.(A,ct),n?.(A,ct)},[p,K,o,n,i]),Ce=or(($)=>{_($,"set-state")},[_]),O=or(($)=>{_({theme:$},"set-theme")},[_]),ne=or(($)=>{_({colorScheme:$},"set-color-scheme")},[_]),Lt=or(()=>{let $=Y.resolvedColorScheme===Nt.dark?Nt.light:Nt.dark;_({colorScheme:$},"toggle-color-scheme")},[Y.resolvedColorScheme,_]),ot=da(()=>({theme:R.theme,colorScheme:R.colorScheme,resolvedColorScheme:Y.resolvedColorScheme,state:R,resolvedState:Y,contract:p,themes:p.themes,setTheme:O,setColorScheme:ne,setState:Ce,toggleColorScheme:Lt}),[R,Y,p,O,ne,Ce,Lt]);return wP(_i.Provider,{value:ot,children:e},void 0,!1,void 0,this)};Cr.displayName="ThemeProvider";var ya=()=>{let e=NP(_i);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e};import{jsxDEV as va}from"react/jsx-dev-runtime";function ha(e){return typeof e==="object"&&e!==null}function It(e){return typeof e==="string"&&e.trim().length>0}function ug(e){if(!ha(e))return!1;return Object.values(e).every(It)}function pg(e){if(!ha(e))return!1;if(!ug(e.light))return!1;if(e.dark===void 0)return!0;return ug(e.dark)}function fg(e){return ha(e)&&It(e.cssText)}function HP(e){return ha(e)&&It(e.theme)}function Ui(e){return Error(`Invalid theme registry definition: ${e}`)}function cg(e){let t=new Set,r=[];for(let o of e){if(!It(o)||t.has(o))continue;t.add(o),r.push(o)}return r}function kP(e){return e.filter(It).join(`
|
|
2
|
+
import{A as EP,B as kt,C as DP,D as jP,E as Nt,F as yg,G as vg,H as Tg,I as hg,J as Pg,K as zg,L as Mg,M as go,N as Mt,O as Ng,P as Lg,Q as ca,R as fa,S as ga,T as Wi,U as ba,V as xg,W as Rg,X as pa,Y as Cg,Z as Ta,a,b as Sg,c as _P,d as F,e as UP,f as KP,g as $P,h as VP,i as YP,j as XP,k as JP,l as ro,m as qP,n as QP,o as Vb,p as Fa,q as Ga,r as Oa,s as Ld,t as ri,u as xd,v as ZP,w as Ka,x as $a,y as Rn,z as jn}from"./chunk-e8n8m48r.js";import{cva as K1}from"class-variance-authority";import*as pt from"@radix-ui/react-accordion";import{cva as Ma}from"class-variance-authority";import{ChevronDown as Ig}from"lucide-react";import{createContext as Fg,forwardRef as tn,useContext as $i}from"react";var Ag="sm",Bg=()=>{return"sm"};function f(e){if(e!==void 0)return e;return"sm"}import{jsxDEV as Ft}from"react/jsx-dev-runtime";var Fe={sm:"sm",md:"md",lg:"lg"},Na=Fg(Fe.md),Vi=Ma("border-b border-border"),Yi=Ma("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[Fe.sm]:"py-3 text-xs [&>svg]:size-3.5",[Fe.md]:"py-4 text-sm [&>svg]:size-4",[Fe.lg]:"py-5 text-base [&>svg]:size-5"}},defaultVariants:{size:Fe.md}}),Xi=Ma("gs-accordion-content overflow-hidden",{variants:{size:{[Fe.sm]:"text-xs",[Fe.md]:"text-sm",[Fe.lg]:"text-base"}},defaultVariants:{size:Fe.md}}),Gg={[Fe.sm]:"pt-0 pb-3",[Fe.md]:"pt-0 pb-4",[Fe.lg]:"pt-0 pb-5"},Ji=tn(({size:e=Fe.sm,...t},r)=>{let o=f(e)??Fe.md;return Ft(Na.Provider,{value:o,children:Ft(pt.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ji.displayName="Accordion";var qi=tn(({className:e,...t},r)=>Ft(pt.Item,{ref:r,className:a(Vi(),e),...t},void 0,!1,void 0,this));qi.displayName="AccordionItem";var Qi=tn(({className:e,children:t,...r},o)=>{let n=$i(Na);return Ft(pt.Header,{className:"flex",children:Ft(pt.Trigger,{ref:o,className:a(Yi({size:n}),e),...r,children:[t,Ft(Ig,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Qi.displayName="AccordionTrigger";var Zi=tn(({className:e,children:t,...r},o)=>{let n=$i(Na);return Ft(pt.Content,{ref:o,className:a(Xi({size:n}),e),...r,children:Ft("div",{className:Gg[n],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Zi.displayName="AccordionContent";import{cva as La}from"class-variance-authority";import{TriangleAlert as Og,CircleCheck as Wg,Info as _g,CircleAlert as Ug}from"lucide-react";import{forwardRef as xa}from"react";import{jsxDEV as Ra}from"react/jsx-dev-runtime";var kr={default:"default",success:"success",warning:"warning",error:"error",info:"info"},rn={sm:"sm",md:"md",lg:"lg"},Ei=La("gs-alert relative w-full rounded-[var(--radius)] border [&>svg~*]:pl-8 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:size-4 [&>svg]:text-foreground h-min",{variants:{variant:{[kr.default]:"border-border bg-secondary text-foreground",[kr.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[kr.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[kr.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[kr.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[rn.sm]:"p-3 text-sm [&>svg]:left-3 [&>svg]:top-3 [&>svg]:size-3.5 [&>svg~*]:pl-7",[rn.md]:"p-4 text-sm",[rn.lg]:"p-5 text-sm [&>svg]:left-5 [&>svg]:top-5"}},defaultVariants:{variant:kr.default,size:rn.sm}}),Di=La("mb-1 font-medium leading-none tracking-tight [.gs-alert[data-size=sm]_&]:text-sm [.gs-alert[data-size=md]_&]:text-sm [.gs-alert[data-size=lg]_&]:text-base h-min"),ji=La("[&_p]:leading-relaxed [.gs-alert[data-size=sm]_&]:text-[13px] [.gs-alert[data-size=md]_&]:text-sm [.gs-alert[data-size=lg]_&]:text-sm"),es=xa(({className:e,variant:t,size:r,...o},n)=>{let i=f(r);return Ra("div",{ref:n,role:"alert","data-size":i,className:a(Ei({variant:t,size:i}),e),...o},void 0,!1,void 0,this)});es.displayName="Alert";var ts=xa(({className:e,...t},r)=>Ra("h5",{ref:r,className:a(Di(),e),...t},void 0,!1,void 0,this));ts.displayName="AlertTitle";var rs=xa(({className:e,...t},r)=>Ra("div",{ref:r,className:a(ji(),e),...t},void 0,!1,void 0,this));rs.displayName="AlertDescription";import*as Le from"@radix-ui/react-alert-dialog";import{cva as ds}from"class-variance-authority";import{createContext as ob,forwardRef as Ar,useCallback as nb,useContext as ab,useEffect as ib,useState as us}from"react";import{Slot as os}from"@radix-ui/react-slot";import{cva as wa}from"class-variance-authority";import{forwardRef as on}from"react";import{forwardRef as Kg}from"react";import{jsxDEV as Ca}from"react/jsx-dev-runtime";var yo={sm:"sm",md:"md",lg:"lg"},$g={[yo.sm]:"h-4 w-4",[yo.md]:"h-5 w-5",[yo.lg]:"h-6 w-6"},Gt=Kg(({className:e,size:t=yo.sm,label:r="Loading",...o},n)=>{let i=f(t);return Ca("span",{ref:n,className:a("inline-flex items-center justify-center",e),role:"status","aria-label":r,...o,children:[Ca("span",{"data-gs-motion":"essential",className:a("gs-loading-motion animate-spin rounded-full border-2 border-current border-r-transparent",$g[i])},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)});Gt.displayName="Spinner";import{jsxDEV as Rt}from"react/jsx-dev-runtime";var xt={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},Qe={sm:"sm",md:"md",lg:"lg",icon:"icon",iconSm:"icon-sm",iconLg:"icon-lg"},Ot={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Sr={sm:"sm",md:"md",lg:"lg"},Vg="Loading",Yg="button",vo=wa("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] 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:pointer-events-none disabled:cursor-not-allowed disabled:opacity-55",{variants:{variant:{[xt.primary]:"border-primary bg-primary text-primary-foreground enabled:hover:bg-primary/90",[xt.secondary]:"border-secondary bg-secondary text-secondary-foreground enabled:hover:bg-secondary/90",[xt.neutral]:"border-border bg-muted text-foreground enabled:hover:bg-muted/90",[xt.outline]:"border-border bg-background text-foreground enabled:hover:border-primary enabled:hover:bg-muted/50",[xt.ghost]:"border-transparent bg-transparent text-foreground enabled:hover:bg-muted/70",[xt.danger]:"border-destructive bg-destructive text-destructive-foreground enabled:hover:bg-destructive/90"},size:{[Qe.sm]:"h-8 px-2.5 text-xs",[Qe.md]:"h-10 px-4 text-sm",[Qe.lg]:"h-11 px-5 text-sm",[Qe.icon]:"h-10 w-10 p-0",[Qe.iconSm]:"h-9 w-9 p-0",[Qe.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:xt.primary,size:Qe.sm}}),ns=wa("shrink-0",{variants:{size:{[Sr.sm]:"size-3",[Sr.md]:"size-4",[Sr.lg]:"size-4.5"}},defaultVariants:{size:Sr.sm}}),as=wa("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[11px] leading-none",{variants:{tone:{[Ot.default]:"border-border/70 bg-background/75 text-muted-foreground",[Ot.success]:"border-success/35 bg-success/12 text-success",[Ot.warning]:"border-warning/35 bg-warning/12 text-warning",[Ot.error]:"border-destructive/35 bg-destructive/12 text-destructive",[Ot.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:Ot.default}});function Xg(e){return e===Qe.icon||e===Qe.iconSm||e===Qe.iconLg}function Jg(e,t,r){return e&&t?-1:r}function qg(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function Qg(){if(typeof process>"u")return!0;return!0}var is=on(({className:e,size:t=Sr.sm,...r},o)=>Rt(os,{ref:o,className:a(ns({size:t}),e),...r},void 0,!1,void 0,this));is.displayName="ButtonIcon";var ss=on(({className:e,...t},r)=>Rt("span",{ref:r,className:a("truncate",e),...t},void 0,!1,void 0,this));ss.displayName="ButtonLabel";var ls=on(({className:e,tone:t=Ot.default,...r},o)=>Rt("span",{ref:o,className:a(as({tone:t}),e),...r},void 0,!1,void 0,this));ls.displayName="ButtonBadge";var ms=on(({className:e,variant:t=xt.primary,size:r=Qe.sm,asChild:o=!1,loading:n=!1,loadingText:i=Vg,fullWidth:s=!1,leadingIcon:l,trailingIcon:d,disabled:m,children:c,type:u,tabIndex:g,onClick:v,...y},T)=>{let M=f(r),z=M??r,p=qg(y);if(Qg()&&Xg(z)&&!p)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let h=Boolean(m||n),L=a(vo({variant:t,size:M}),h&&"pointer-events-none cursor-not-allowed opacity-55",s&&"w-full",e);if(o)return Rt(os,{ref:T,className:L,"aria-disabled":h||void 0,"aria-busy":n||void 0,tabIndex:Jg(!0,h,g),onClick:h?(H)=>{H.preventDefault()}:v,...y,children:c},void 0,!1,void 0,this);return Rt("button",{ref:T,className:L,disabled:h,"aria-disabled":h,"aria-busy":n,tabIndex:g,type:u??Yg,onClick:n?void 0:v,...y,children:[Rt("span",{className:a("absolute inset-0 flex items-center justify-center transition-opacity duration-150",n?"opacity-100":"opacity-0"),"aria-hidden":"true",children:Rt(Gt,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),n&&Rt("span",{className:"sr-only",children:i},void 0,!1,void 0,this),Rt("span",{className:a("inline-flex items-center justify-center gap-2 transition-opacity duration-150",n&&"opacity-0"),children:[l,c,d]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});ms.displayName="Button";var le=!0,nt=4,Wt="fixed inset-0 z-50 bg-black/50",nn="transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] 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";import{useSyncExternalStore as Zg}from"react";var Ha="(prefers-reduced-motion: reduce)",sr="data-gs-reduced-motion",Eg=sr;function Dg(){if(typeof document>"u")return!1;return document.documentElement.getAttribute(sr)==="true"}function jg(){if(typeof window>"u"||typeof window.matchMedia!=="function")return!1;return window.matchMedia(Ha).matches}function To(){return Dg()||jg()}function eb(e){if(typeof document>"u")return;if(e)document.documentElement.setAttribute(sr,"true");else document.documentElement.removeAttribute(sr)}var tb=()=>!1;function rb(e){if(typeof window>"u")return()=>{return};let t=window.matchMedia(Ha);t.addEventListener("change",e);let r=typeof MutationObserver<"u"?new MutationObserver((o)=>{for(let n of o)if(n.type==="attributes"&&n.attributeName===sr){e();break}}):null;return r?.observe(document.documentElement,{attributes:!0,attributeFilter:[sr]}),()=>{t.removeEventListener("change",e),r?.disconnect()}}function be(){return Zg(rb,To,tb)}import{jsxDEV as Je,Fragment as db}from"react/jsx-dev-runtime";var lr={sm:F.sm,md:F.md,lg:F.lg,full:"full"},sb=160,cs=ds(a("gs-dialog-overlay",Wt)),ps=ds("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 border border-border bg-card p-6 text-foreground shadow-[var(--shadow-xl)] rounded-[var(--radius)]",{variants:{size:{[lr.sm]:"max-w-sm",[lr.md]:"max-w-md",[lr.lg]:"max-w-lg",[lr.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:lr.md}}),fs=ob(!1),lb=({children:e,open:t,defaultOpen:r=!1,onOpenChange:o,...n})=>{let[i,s]=us(r),l=t!==void 0,d=l?t:i,m=nb((c)=>{if(!l)s(c);o?.(c)},[l,o]);return Je(fs.Provider,{value:d,children:Je(Le.Root,{open:d,onOpenChange:m,...n,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},mb=Le.Trigger,gs=Le.Portal,ka=Ar(({className:e,...t},r)=>Je(Le.Overlay,{ref:r,className:a(cs(),e),...t},void 0,!1,void 0,this));ka.displayName="AlertDialogOverlay";var bs=Ar(({className:e,size:t=lr.sm,showOverlay:r=!0,portal:o=le,portalContainer:n,forceMount:i=!1,"aria-describedby":s,...l},d)=>{let m=ab(fs),[c,u]=us(i||m),g=f(t),v=be();if(ib(()=>{if(i||m){u(!0);return}let M=setTimeout(()=>{u(!1)},v?0:sb);return()=>{clearTimeout(M)}},[i,m,v]),!(i||m||c))return null;let T=Je(db,{children:[r?Je(ka,{forceMount:!0},void 0,!1,void 0,this):null,Je(Le.Content,{ref:d,forceMount:!0,"aria-describedby":s,className:a(ps({size:g}),e),...l},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(!o)return T;return Je(gs,{forceMount:!0,container:n??void 0,children:T},void 0,!1,void 0,this)});bs.displayName="AlertDialogContent";var ys=({className:e,...t})=>Je("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);ys.displayName="AlertDialogHeader";var vs=({className:e,...t})=>Je("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);vs.displayName="AlertDialogFooter";var Ts=Ar(({className:e,...t},r)=>Je(Le.Title,{ref:r,className:a("font-semibold text-lg",e),...t},void 0,!1,void 0,this));Ts.displayName="AlertDialogTitle";var hs=Ar(({className:e,...t},r)=>Je(Le.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));hs.displayName="AlertDialogDescription";var Ps=Ar(({className:e,...t},r)=>Je(Le.Action,{ref:r,className:a(vo(),e),...t},void 0,!1,void 0,this));Ps.displayName="AlertDialogAction";var zs=Ar(({className:e,...t},r)=>Je(Le.Cancel,{ref:r,className:a(vo({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));zs.displayName="AlertDialogCancel";import*as Sa from"@radix-ui/react-aspect-ratio";import{cva as ub}from"class-variance-authority";import{forwardRef as cb}from"react";import{jsxDEV as pb}from"react/jsx-dev-runtime";var Ms=ub("relative overflow-hidden rounded-[calc(var(--radius)-2px)] border border-border/40"),Ns=cb(({className:e,...t},r)=>pb(Sa.Root,{ref:r,className:a(Ms(),e),...t},void 0,!1,void 0,this));Ns.displayName=Sa.Root.displayName;import*as Ir from"@radix-ui/react-avatar";import{cva as fb}from"class-variance-authority";import{forwardRef as an}from"react";import{jsxDEV as Br}from"react/jsx-dev-runtime";var ft={sm:"sm",md:"md",lg:"lg"},Ls=fb("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{[ft.sm]:"h-7 w-7 text-xs",[ft.md]:"h-10 w-10 text-sm",[ft.lg]:"h-12 w-12 text-base"}},defaultVariants:{size:ft.md}}),Aa=an(({className:e,size:t=ft.sm,...r},o)=>{let n=f(t);return Br(Ir.Root,{ref:o,className:a(Ls({size:n}),e),...r},void 0,!1,void 0,this)});Aa.displayName="Avatar";var xs=an(({className:e,...t},r)=>Br(Ir.Image,{ref:r,className:a("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));xs.displayName="AvatarImage";var Ba=an(({className:e,...t},r)=>Br(Ir.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));Ba.displayName="AvatarFallback";var gb={[ft.sm]:"-space-x-2",[ft.md]:"-space-x-3",[ft.lg]:"-space-x-4"},Rs=an(({className:e,children:t,max:r,size:o=ft.sm,...n},i)=>{let s=f(o),l=Array.isArray(t)?t:[t],d=r?l.slice(0,r):l,m=r?Math.max(0,l.length-r):0;return Br("div",{ref:i,className:a("flex items-center",gb[s],e),...n,children:[d,m>0&&Br(Aa,{size:s,className:"border-2 border-background",children:Br(Ba,{className:"text-xs",children:["+",m]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Rs.displayName="AvatarGroup";import{Slot as bb}from"@radix-ui/react-slot";import{cva as yb}from"class-variance-authority";import{X as Cs}from"lucide-react";import{forwardRef as vb}from"react";import{jsxDEV as mr}from"react/jsx-dev-runtime";var we={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},_t={sm:"sm",md:"md",lg:"lg",dot:"dot"},ws=yb("group/badge inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium leading-none",{variants:{variant:{[we.default]:"border-border bg-muted text-muted-foreground",[we.primary]:"border-primary/30 bg-primary/10 text-primary",[we.success]:"border-success/30 bg-success/10 text-success",[we.warning]:"border-warning/30 bg-warning/10 text-warning",[we.error]:"border-destructive/30 bg-destructive/10 text-destructive",[we.info]:"border-info/30 bg-info/10 text-info",[we.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[_t.sm]:"h-5 px-1.5 text-[11px]",[_t.md]:"h-5 px-2 text-[11px]",[_t.lg]:"h-6 px-2.5 text-xs",[_t.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:we.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:we.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:we.success,className:"border-success bg-success text-background"},{solid:!0,variant:we.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:we.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:we.info,className:"border-info bg-info text-background"},{solid:!0,variant:we.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:we.default,solid:!1,size:_t.sm}}),ho=vb(({className:e,variant:t=we.default,size:r=_t.sm,solid:o=!1,pulse:n=!1,removable:i=!1,removeControl:s="button",removeLabel:l="Remove",onRemove:d,onClick:m,children:c,asChild:u=!1,...g},v)=>{let y=f(r),T=Boolean(m),M=y===_t.dot,z=T&&s==="button"?"span":s,p=(R)=>{R.preventDefault(),R.stopPropagation(),d?.(R)},h=(R)=>{if(R.key!=="Enter"&&R.key!==" ")return;R.preventDefault(),R.stopPropagation()},L=a(ws({variant:t,solid:o,size:y}),T&&"cursor-pointer",n&&"animate-pulse",i&&!M&&"pr-1",e),H=a("ml-0.5 inline-flex items-center justify-center rounded-full text-current opacity-60","transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:opacity-100","size-3.5 group-data-[size=lg]/badge:size-4"),S="size-2.5 group-data-[size=lg]/badge:size-3",B=i&&!M&&z==="button"?mr("button",{type:"button",className:H,onClick:p,"aria-label":l,tabIndex:-1,children:mr(Cs,{className:"size-2.5 group-data-[size=lg]/badge:size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this):i&&!M?mr("span",{role:"button",className:H,onClick:p,onKeyDown:h,"aria-label":l,tabIndex:-1,children:mr(Cs,{className:"size-2.5 group-data-[size=lg]/badge:size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null;if(u)return mr(bb,{ref:v,className:L,onClick:m,"data-size":y,...g,children:c},void 0,!1,void 0,this);if(T)return mr("button",{ref:v,className:L,onClick:m,type:"button","data-size":y,...g,children:[!M&&c,B]},void 0,!0,void 0,this);return mr("span",{ref:v,className:L,"data-size":y,...g,children:[!M&&c,B]},void 0,!0,void 0,this)});ho.displayName="Badge";import{Children as Tb,cloneElement as hb,forwardRef as Pb,isValidElement as zb,useCallback as Hs,useEffect as Mb,useLayoutEffect as Nb,useRef as Lb,useState as xb}from"react";import{jsxDEV as ks}from"react/jsx-dev-runtime";function Rb(e){let t=[];return Tb.forEach(e,(r,o)=>{if(!zb(r))return;let n=r.key??o;t.push({key:n,element:r,isLeaving:!1})}),t}function Cb(e,t){let r=new Set(t.map((i)=>i.key)),o=new Set(e.map((i)=>i.key)),n=[];for(let i of e)if(r.has(i.key)){let s=t.find((l)=>l.key===i.key);if(s)n.push({...s,isLeaving:!1})}else n.push({...i,isLeaving:!0});for(let i of t)if(!o.has(i.key))n.push(i);return n}function wb(e,t,r){if(r.current)return r.current=!1,t;return Cb(e,t)}var Hb=typeof window<"u"?Nb:Mb,Ss=Pb(({children:e,className:t,onRemove:r,gap:o="sm"},n)=>{let[i,s]=xb([]),l=Lb(!0);Hb(()=>{let u=Rb(e);s((g)=>wb(g,u,l))},[e]);let d=Hs((u)=>{s((g)=>g.filter((v)=>v.key!==u))},[]),m=Hs((u)=>{r?.(u)},[r]),c={sm:"gap-1",md:"gap-2",lg:"gap-3"}[o];return ks("div",{ref:n,className:a("inline-flex flex-wrap items-center",c,t),children:i.map((u)=>{let g={};if(u.element.props.removable&&r)g.onRemove=()=>{m(u.key)};let v=a("inline-flex transition-all duration-200",u.isLeaving&&"pointer-events-none scale-95 opacity-0");return ks("span",{className:v,onTransitionEnd:u.isLeaving?()=>d(u.key):void 0,children:hb(u.element,g)},u.key,!1,void 0,this)})},void 0,!1,void 0,this)});Ss.displayName="BadgeGroup";import{Slot as kb}from"@radix-ui/react-slot";import{cva as Fr}from"class-variance-authority";import{ChevronRight as Sb,MoreHorizontal as Ab}from"lucide-react";import{createContext as Bb,forwardRef as Po,useContext as Ia}from"react";import{jsxDEV as at}from"react/jsx-dev-runtime";var ye={sm:"sm",md:"md",lg:"lg"},sn=Bb(ye.md),As=Fr("flex flex-wrap items-center break-words text-muted-foreground",{variants:{size:{[ye.sm]:"gap-1 text-xs",[ye.md]:"gap-1.5 text-sm sm:gap-2.5",[ye.lg]:"gap-2 text-base sm:gap-3"}},defaultVariants:{size:ye.md}}),Bs=Fr("inline-flex items-center gap-1.5"),Is=Fr("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),Fs=Fr("font-normal text-foreground"),Gs=Fr("",{variants:{size:{[ye.sm]:"[&>svg]:size-3",[ye.md]:"[&>svg]:size-3.5",[ye.lg]:"[&>svg]:size-4"}},defaultVariants:{size:ye.md}}),Os=Fr("flex items-center justify-center",{variants:{size:{[ye.sm]:"h-7 w-7 [&>svg]:size-3.5",[ye.md]:"h-9 w-9 [&>svg]:size-4",[ye.lg]:"h-10 w-10 [&>svg]:size-5"}},defaultVariants:{size:ye.md}}),ln=Po(({size:e=ye.sm,...t},r)=>{let o=f(e)??ye.md;return at(sn.Provider,{value:o,children:at("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ln.displayName="Breadcrumb";var mn=Po(({className:e,...t},r)=>{let o=Ia(sn);return at("ol",{ref:r,className:a(As({size:o}),e),...t},void 0,!1,void 0,this)});mn.displayName="BreadcrumbList";var zo=Po(({className:e,...t},r)=>at("li",{ref:r,className:a(Bs(),e),...t},void 0,!1,void 0,this));zo.displayName="BreadcrumbItem";var Mo=Po(({asChild:e,className:t,...r},o)=>{return at(e?kb:"a",{ref:o,className:a(Is(),t),...r},void 0,!1,void 0,this)});Mo.displayName="BreadcrumbLink";var dn=Po(({className:e,...t},r)=>at("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:a(Fs(),e),...t},void 0,!1,void 0,this));dn.displayName="BreadcrumbPage";var No=({children:e,className:t,...r})=>{let o=Ia(sn),n={[ye.sm]:"size-3",[ye.md]:"size-3.5",[ye.lg]:"size-4"};return at("li",{role:"presentation","aria-hidden":"true",className:a(Gs({size:o}),t),...r,children:e??at(Sb,{className:n[o]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};No.displayName="BreadcrumbSeparator";var un=({className:e,...t})=>{let r=Ia(sn);return at("span",{role:"presentation","aria-hidden":"true",className:a(Os({size:r}),e),...t,children:[at(Ab,{},void 0,!1,void 0,this),at("span",{className:"sr-only",children:"More"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};un.displayName="BreadcrumbEllipsis";import{createContext as Ib,Fragment as Ws,useCallback as Fb,useContext as Wa,useEffect as Gb,useMemo as _s,useRef as Ob,useState as Wb}from"react";import{jsxDEV as Ke}from"react/jsx-dev-runtime";var cn=Ib(null),_b=({children:e})=>{let[t,r]=Wb([]),o=_s(()=>({items:t,setItems:r}),[t]);return Ke(cn.Provider,{value:o,children:e},void 0,!1,void 0,this)},Ub=()=>{let e=Wa(cn);if(!e)throw Error("useBreadcrumbStore must be used within BreadcrumbStoreProvider");return{items:e.items}},Kb=({items:e})=>{let t=Wa(cn);if(!t)throw Error("SetBreadcrumbs must be used within BreadcrumbStoreProvider");let r=Ob("");return Gb(()=>{let o=Fa(e),n=Ga(o);if(n===r.current)return;r.current=n,t.setItems(o)}),null},$b=({size:e,className:t,collapse:r,renderLink:o})=>{let n=Wa(cn);if(!n)throw Error("BreadcrumbDisplay must be used within BreadcrumbStoreProvider");let{items:i}=n,s=_s(()=>Oa(i,r),[i,r]),l=Fb((m)=>{if(m.current)return Ke(dn,{children:m.label},void 0,!1,void 0,this);if(m.href){if(o)return Ke(Mo,{asChild:!0,children:o({href:m.href,children:m.label,className:a(m.disabled&&"pointer-events-none opacity-50")})},void 0,!1,void 0,this);return Ke(Mo,{href:m.href,"aria-disabled":m.disabled||void 0,className:a(m.disabled&&"pointer-events-none opacity-50"),children:m.label},void 0,!1,void 0,this)}return Ke("span",{className:"text-muted-foreground",children:m.label},void 0,!1,void 0,this)},[o]);if(i.length===0)return null;let{visibleItems:d}=s;return Ke(ln,{size:e,className:t,children:Ke(mn,{children:d.map((m,c)=>{let u=c===d.length-1;if(m.type==="ellipsis")return Ke(Ws,{children:[Ke(zo,{children:Ke(un,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),!u&&Ke(No,{},void 0,!1,void 0,this)]},m.id,!0,void 0,this);return Ke(Ws,{children:[Ke(zo,{children:l(m.item)},void 0,!1,void 0,this),!u&&Ke(No,{},void 0,!1,void 0,this)]},m.item.id,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this)};import{cva as Yb}from"class-variance-authority";import{forwardRef as Xb}from"react";import{jsxDEV as Jb}from"react/jsx-dev-runtime";var Lo={horizontal:"horizontal",vertical:"vertical"},Us=Yb("inline-flex items-stretch",{variants:{orientation:{[Lo.horizontal]:"flex-row",[Lo.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:Lo.horizontal,attached:!1}}),Ks=Xb(({className:e,orientation:t=Lo.horizontal,attached:r=!1,fullWidth:o=!1,...n},i)=>Jb("div",{ref:i,className:a(Us({orientation:t,attached:r}),o&&"w-full",e),...n},void 0,!1,void 0,this));Ks.displayName="ButtonGroup";import{cva as Ut}from"class-variance-authority";import{forwardRef as qb,useCallback as Gr,useEffect as Qb,useMemo as $s,useState as Vs}from"react";import{jsxDEV as qe}from"react/jsx-dev-runtime";var q={sm:"sm",md:"md",lg:"lg"},Xs=Ut("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:{[q.sm]:"p-3 text-sm",[q.md]:"p-4 text-sm",[q.lg]:"p-5 text-base"}},defaultVariants:{size:q.sm}}),Js=Ut("mb-3 flex items-center justify-between",{variants:{size:{[q.sm]:"gap-1",[q.md]:"gap-2",[q.lg]:"gap-3"}},defaultVariants:{size:q.sm}}),qs=Ut("font-semibold text-foreground",{variants:{size:{[q.sm]:"text-sm",[q.md]:"text-base",[q.lg]:"text-lg"}},defaultVariants:{size:q.sm}}),_a=Ut(["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:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70"],{variants:{size:{[q.sm]:"size-7",[q.md]:"size-8",[q.lg]:"size-10"}},defaultVariants:{size:q.sm}}),Qs=Ut("grid grid-cols-7",{variants:{size:{[q.sm]:"gap-0",[q.md]:"gap-0",[q.lg]:"gap-0"}},defaultVariants:{size:q.sm}}),Zs=Ut("text-center font-semibold uppercase tracking-wide text-muted-foreground",{variants:{size:{[q.sm]:"py-1 text-[11px]",[q.md]:"py-1.5 text-xs",[q.lg]:"py-2 text-sm"}},defaultVariants:{size:q.sm}}),Es=Ut(["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:{[q.sm]:"size-7 text-xs",[q.md]:"size-9 text-sm",[q.lg]:"size-10 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:q.sm,state:"default"}}),Zb=Ut("rounded-md border border-transparent",{variants:{size:{[q.sm]:"size-7",[q.md]:"size-9",[q.lg]:"size-10"}},defaultVariants:{size:q.sm}}),Ys=["Su","Mo","Tu","We","Th","Fr","Sa"],Eb=["January","February","March","April","May","June","July","August","September","October","November","December"],Ct=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Or=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},Ds=qb(({className:e,size:t="sm",cellSize:r,mode:o="single",value:n,defaultValue:i,onChange:s,rangeValue:l,onRangeChange:d,viewMonth:m,onViewMonthChange:c,minDate:u,maxDate:g,disabledDates:v=[],weekStartsOn:y=1,highlightToday:T=!0,...M},z)=>{let p=f(t)??q.md,h=f(r??p)??p,[L,H]=Vs(n??i??null),[S,B]=Vs(n??i??new Date),R=m??S,Y=Gr((b)=>{if(c){let P=typeof b==="function"?b(m??S):b;c(P)}else B((P)=>{return typeof b==="function"?b(P):b})},[m,S,c]),K=n!==void 0?n:L,X=u?Ct(u):null,j=g?Ct(g):null;Qb(()=>{if(n!==void 0){if(H(n??null),n&&!m)B(n)}},[n,m]);let ie=Gr((b,P)=>{return(new Date(b,P,1).getDay()-y+7)%7},[y]),V=$s(()=>{let b=R.getFullYear(),P=R.getMonth(),C=ie(b,P),oe=new Date(b,P+1,0).getDate(),_=[];for(let O=0;O<C;O+=1)_.push({key:`leading-${b}-${P}-${O}`,date:null});for(let O=1;O<=oe;O+=1)_.push({key:`day-${b}-${P}-${O}`,date:new Date(b,P,O)});let Ce=(7-_.length%7)%7;for(let O=0;O<Ce;O+=1)_.push({key:`trailing-${b}-${P}-${O}`,date:null});return _},[R,ie]),re=Gr((b)=>{let P=Ct(b);if(X&&P<X)return!0;if(j&&P>j)return!0;return v.some((C)=>Or(P,Ct(C)))},[X,j,v]),k=Gr((b)=>{if(re(b))return"disabled";if(o==="range"&&l){let{from:P,to:C}=l;if(P&&Or(b,P))return"rangeStart";if(C&&Or(b,C))return"rangeEnd";if(P&&C){let oe=Ct(b),_=Ct(P),Ce=Ct(C);if(oe>_&&oe<Ce)return"range"}}if(o==="single"&&K&&Or(b,K))return"selected";if(T&&Or(b,new Date))return"today";return"default"},[K,T,re,o,l]),Z=Gr((b)=>{if(re(b))return;let P=new Date(b);if(o==="range"){if(!l?.from||l.from&&l.to)d?.({from:P,to:void 0});else{let C=Ct(l.from);if(Ct(P)<C)d?.({from:P,to:l.from});else d?.({from:l.from,to:P})}return}if(n===void 0)H(P);s?.(P)},[re,o,s,d,l,n]),x=Gr((b)=>{Y((P)=>{let C=new Date(P);return C.setMonth(C.getMonth()+b),C})},[Y]),W=$s(()=>{return[...Ys.slice(y),...Ys.slice(0,y)]},[y]);return qe("div",{ref:z,className:a(Xs({size:p}),e),...M,children:[qe("div",{className:a(Js({size:p})),children:[qe("button",{type:"button",onClick:()=>x(-1),className:a(_a({size:p})),"aria-label":"Previous month",children:qe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:qe("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),qe("span",{className:a(qs({size:p})),children:[Eb[R.getMonth()]," ",R.getFullYear()]},void 0,!0,void 0,this),qe("button",{type:"button",onClick:()=>x(1),className:a(_a({size:p})),"aria-label":"Next month",children:qe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:qe("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),qe("div",{className:a(Qs({size:p})),children:[W.map((b)=>qe("div",{className:a(Zs({size:h})),children:b},b,!1,void 0,this)),V.map((b)=>{if(!b.date)return qe("div",{"aria-hidden":"true",className:a(Zb({size:h}))},b.key,!1,void 0,this);let P=b.date,C=k(P);return qe("button",{type:"button",onClick:()=>Z(P),disabled:C==="disabled",className:a(Es({size:h,state:C})),children:P.getDate()},b.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Ds.displayName="Calendar";import{Slot as Wr}from"@radix-ui/react-slot";import{cva as Db}from"class-variance-authority";import{forwardRef as _r}from"react";import{jsxDEV as Ur}from"react/jsx-dev-runtime";var pn={default:"default",muted:"muted",danger:"danger"},js=Db("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[pn.default]:"border-border",[pn.muted]:"border-border bg-muted/70",[pn.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:pn.default}}),el=_r(({asChild:e=!1,className:t,variant:r,...o},n)=>{return Ur(e?Wr:"div",{ref:n,className:a(js({variant:r}),t),...o},void 0,!1,void 0,this)});el.displayName="Card";var tl=_r(({asChild:e=!1,className:t,...r},o)=>{return Ur(e?Wr:"div",{ref:o,className:a("flex flex-col gap-1.5 border-border border-b p-4",t),...r},void 0,!1,void 0,this)});tl.displayName="CardHeader";var rl=_r(({asChild:e=!1,className:t,...r},o)=>{return Ur(e?Wr:"div",{ref:o,className:a("p-4",t),...r},void 0,!1,void 0,this)});rl.displayName="CardContent";var ol=_r(({asChild:e=!1,className:t,...r},o)=>{return Ur(e?Wr:"div",{ref:o,className:a("flex items-center border-border border-t p-4",t),...r},void 0,!1,void 0,this)});ol.displayName="CardFooter";var nl=_r(({asChild:e=!1,className:t,...r},o)=>{return Ur(e?Wr:"h3",{ref:o,className:a("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});nl.displayName="CardTitle";var al=_r(({asChild:e=!1,className:t,...r},o)=>{return Ur(e?Wr:"p",{ref:o,className:a("text-muted-foreground text-sm",t),...r},void 0,!1,void 0,this)});al.displayName="CardDescription";import*as gn from"@radix-ui/react-checkbox";import{cva as jb}from"class-variance-authority";import{Check as ey,Minus as ty}from"lucide-react";import{forwardRef as ry}from"react";import{jsxDEV as fn}from"react/jsx-dev-runtime";var wt={sm:"sm",md:"md",lg:"lg"},Kr={default:"default",error:"error",success:"success"},sl=jb("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] 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:{[wt.sm]:"h-4 w-4",[wt.md]:"h-5 w-5",[wt.lg]:"h-6 w-6"},status:{[Kr.default]:"enabled:hover:border-primary/70",[Kr.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",[Kr.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:wt.md,status:Kr.default}}),il={[wt.sm]:"size-3.5",[wt.md]:"size-3.5",[wt.lg]:"size-4"},ll=ry(({className:e,size:t=wt.sm,status:r=Kr.default,checked:o,disabled:n,...i},s)=>{let l=f(t);return fn(gn.Root,{ref:s,checked:o,disabled:n,className:a(sl({size:l,status:r}),e),...i,children:fn(gn.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:o==="indeterminate"?fn(ty,{className:il[l]},void 0,!1,void 0,this):fn(ey,{className:il[l]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ll.displayName="Checkbox";import{cva as Kt}from"class-variance-authority";import{forwardRef as oy,useCallback as ny,useState as ay}from"react";import{jsxDEV as Ge,Fragment as ml}from"react/jsx-dev-runtime";var D={sm:"sm",md:"md",lg:"lg"},Ua={default:"default",ghost:"ghost"},dl=Kt("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[D.sm]:"text-xs",[D.md]:"text-sm",[D.lg]:"text-base"},variant:{[Ua.default]:"bg-muted border border-border",[Ua.ghost]:"bg-transparent"}},defaultVariants:{size:D.sm,variant:Ua.default}}),ul=Kt("flex items-center justify-between border-b border-border bg-muted",{variants:{size:{[D.sm]:"px-2.5 py-1.5 text-xs",[D.md]:"px-4 py-2 text-sm",[D.lg]:"px-5 py-2.5 text-base"}},defaultVariants:{size:D.sm}}),cl=Kt("text-muted-foreground font-medium",{variants:{size:{[D.sm]:"text-[11px]",[D.md]:"text-xs",[D.lg]:"text-sm"}},defaultVariants:{size:D.sm}}),pl=Kt(["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:{[D.sm]:"px-2 py-1 text-xs",[D.md]:"px-2.5 py-1 text-xs",[D.lg]:"px-3 py-1.5 text-sm"},copied:{true:"text-success",false:""}},defaultVariants:{size:D.sm,copied:!1}}),fl=Kt("overflow-x-auto",{variants:{size:{[D.sm]:"p-2.5",[D.md]:"p-4",[D.lg]:"p-5"}},defaultVariants:{size:D.sm}}),gl=Kt("text-foreground",{variants:{size:{[D.sm]:"",[D.md]:"",[D.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:D.sm,showLineNumbers:!1}}),bl=Kt("block",{variants:{size:{[D.sm]:"min-h-[1.25rem]",[D.md]:"min-h-[1.5rem]",[D.lg]:"min-h-[1.75rem]"},highlighted:{true:"bg-primary/10 -mx-4 px-4",false:""}},defaultVariants:{size:D.sm,highlighted:!1}}),yl=Kt("inline-block text-right text-muted-foreground select-none",{variants:{size:{[D.sm]:"w-6 mr-2 text-[11px]",[D.md]:"w-8 mr-4 text-xs",[D.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:D.sm}}),vl=oy(({className:e,code:t,language:r,showLineNumbers:o=!1,highlightedLines:n=[],showCopy:i=!0,size:s="sm",variant:l="default",onCopy:d,...m},c)=>{let u=f(s),[g,v]=ay(!1),y=ny(async()=>{try{await navigator.clipboard.writeText(t),v(!0),d?.(t),setTimeout(()=>v(!1),2000)}catch(z){}},[t,d]),T=t.split(`
|
|
3
|
+
`),M=new Set(n);return Ge("div",{ref:c,className:a(dl({size:u,variant:l}),e),...m,children:[(r||i)&&Ge("div",{className:a(ul({size:u})),children:[Ge("span",{className:a(cl({size:u})),children:r},void 0,!1,void 0,this),i&&Ge("button",{type:"button",onClick:y,className:a(pl({size:u,copied:g})),children:g?Ge(ml,{children:[Ge("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ge("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):Ge(ml,{children:[Ge("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ge("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),Ge("div",{className:a(fl({size:u})),children:Ge("pre",{className:a(gl({size:u,showLineNumbers:o})),children:Ge("code",{children:T.map((z,p)=>Ge("span",{className:a(bl({size:u,highlighted:M.has(p+1)})),children:[o&&Ge("span",{className:a(yl({size:u})),children:p+1},void 0,!1,void 0,this),z,`
|
|
4
|
+
`]},`line-${String(p)}`,!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)});vl.displayName="CodeBlock";import*as $r from"@radix-ui/react-collapsible";import{cva as iy}from"class-variance-authority";import{forwardRef as sy}from"react";import{jsxDEV as dy}from"react/jsx-dev-runtime";var Tl=iy("gs-collapsible-content overflow-hidden"),ly=$r.Root,my=$r.CollapsibleTrigger,hl=sy(({className:e,...t},r)=>dy($r.CollapsibleContent,{ref:r,className:a(Tl(),e),...t},void 0,!1,void 0,this));hl.displayName="CollapsibleContent";import*as $t from"@radix-ui/react-dialog";import{cva as it}from"class-variance-authority";import{createContext as py,forwardRef as gt,useCallback as zl,useContext as fy,useId as gy,useLayoutEffect as by,useMemo as yy,useState as Va}from"react";import{useCallback as uy,useEffect as cy,useRef as Pl}from"react";function xo(e,t,r={}){let{enabled:o=!0,preventDefault:n=!0,stopPropagation:i=!1,target:s="global"}=r,l=Pl(t);l.current=t;let d=Pl([]),m=Array.isArray(e)?e:[e];d.current=m.map((u)=>({combo:u,def:Ka(u)}));let c=uy((u)=>{if(!o)return;for(let{combo:g,def:v}of d.current)if($a(u,v)){if(n)u.preventDefault();if(i)u.stopPropagation();l.current(u,g);return}},[o,n,i]);cy(()=>{if(!o)return;let u=s==="global"?document:s.current;if(!u)return;return u.addEventListener("keydown",c),()=>{u.removeEventListener("keydown",c)}},[o,c,s])}import{jsxDEV as ve,Fragment as Ty}from"react/jsx-dev-runtime";var bn={sm:F.sm,md:F.md,lg:F.lg},Ml=it(["gs-dialog-content fixed left-1/2 top-1/2 z-50","w-full border border-border rounded-xl bg-background","overflow-hidden shadow-[var(--shadow-xl)]"],{variants:{size:{[bn.sm]:"max-w-sm",[bn.md]:"max-w-lg",[bn.lg]:"max-w-2xl"}},defaultVariants:{size:bn.md}}),Nl=it(["gs-dialog-overlay fixed inset-0 z-50 bg-black/50 backdrop-blur-sm"]),Ll=it(["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:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70"]),xl=it(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),Rl=it(["py-6 text-center text-sm text-muted-foreground"]),Cl=it(["overflow-hidden"]),wl=it(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),yn={default:"default",danger:"danger"},Hl=it(["relative flex items-center gap-2 rounded-lg px-2 py-2","text-sm cursor-pointer select-none","outline-none transition-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:border-transparent data-[disabled=true]:bg-muted/40 data-[disabled=true]:text-muted-foreground/70"],{variants:{selected:{true:"bg-primary/10 text-primary",false:"hover:bg-accent hover:text-accent-foreground"},variant:{[yn.default]:"text-foreground",[yn.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{selected:!1,variant:yn.default}}),kl=it(["-mx-1 my-1 h-px bg-border"]),Sl=it(["ml-auto text-xs tracking-widest text-muted-foreground"]),Al=it(["flex items-center justify-center py-6"]),Bl=py(null),vn=()=>{let e=fy(Bl);if(!e)throw Error("useCommand must be used within a Command");return e},Ya=gt(({className:e,children:t,loop:r=!0,...o},n)=>{let[i,s]=Va(""),[l,d]=Va(0),[m,c]=Va({}),u=zl((y,T)=>{c((M)=>{if(M[y]===T)return M;return{...M,[y]:T}})},[]),g=zl((y)=>{c((T)=>{if(!(y in T))return T;let M={...T};return delete M[y],M})},[]),v=yy(()=>{return Object.values(m).filter(Boolean).length},[m]);return ve(Bl.Provider,{value:{search:i,setSearch:s,selectedIndex:l,setSelectedIndex:d,visibleItemsCount:v,setItemVisible:u,removeItem:g},children:ve("div",{ref:n,className:a("flex flex-col overflow-hidden rounded-xl bg-card",e),...o,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ya.displayName="Command";var Il=gt(({children:e,size:t,showOverlay:r=!0,portal:o=le,portalContainer:n,forceMount:i=!1,...s},l)=>{let d=ve(Ty,{children:[r?ve($t.Overlay,{forceMount:i?!0:void 0,className:a(Nl())},void 0,!1,void 0,this):null,ve($t.Content,{ref:l,forceMount:i?!0:void 0,className:a(Ml({size:t})),children:ve(Ya,{children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return ve($t.Root,{...s,children:o?ve($t.Portal,{forceMount:i?!0:void 0,container:n??void 0,children:d},void 0,!1,void 0,this):d},void 0,!1,void 0,this)});Il.displayName="CommandDialog";var Fl=gt(({className:e,icon:t,...r},o)=>{let{search:n,setSearch:i,setSelectedIndex:s}=vn();return ve("div",{className:"flex items-center border-border border-b px-3",children:[t&&ve("span",{className:"mr-2 shrink-0 text-muted-foreground",children:t},void 0,!1,void 0,this),ve("input",{ref:o,value:n,onChange:(l)=>{i(l.target.value),s(0)},className:a(Ll(),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Fl.displayName="CommandInput";var Gl=gt(({className:e,children:t,...r},o)=>{return ve("div",{ref:o,className:a(xl(),e),...r,children:t},void 0,!1,void 0,this)});Gl.displayName="CommandList";var Ol=gt(({className:e,children:t="No results found.",...r},o)=>{let{visibleItemsCount:n}=vn();if(n>0)return null;return ve("div",{ref:o,className:a(Rl(),e),...r,children:t},void 0,!1,void 0,this)});Ol.displayName="CommandEmpty";var Wl=gt(({className:e,heading:t,children:r,...o},n)=>{return ve("div",{ref:n,className:a(Cl(),e),...o,children:[t&&ve("div",{className:a(wl()),children:t},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});Wl.displayName="CommandGroup";var _l=gt(({className:e,disabled:t,selected:r=!1,onSelect:o,children:n,keywords:i,variant:s,...l},d)=>{let{search:m,removeItem:c,setItemVisible:u}=vn(),g=gy(),y=(()=>{if(!m)return!0;let T=m.toLowerCase();if((typeof n==="string"?n.toLowerCase():"").includes(T))return!0;if(i?.some((z)=>z.toLowerCase().includes(T)))return!0;return!1})();if(by(()=>{return u(g,y),()=>{c(g)}},[y,g,c,u]),!y)return null;return ve("div",{ref:d,role:"option","aria-selected":r,"aria-disabled":t,"data-disabled":t,"data-selected":r,onClick:()=>!t&&o?.(),onKeyDown:(T)=>{if(T.key==="Enter"&&!t)T.preventDefault(),o?.()},tabIndex:t?-1:0,className:a(Hl({selected:r,variant:s}),e),...l,children:n},void 0,!1,void 0,this)});_l.displayName="CommandItem";var Ul=gt(({className:e,...t},r)=>{return ve("div",{ref:r,className:a(kl(),e),...t},void 0,!1,void 0,this)});Ul.displayName="CommandSeparator";var Kl=gt(({className:e,children:t,...r},o)=>{return ve("span",{ref:o,className:a(Sl(),e),...r,children:t},void 0,!1,void 0,this)});Kl.displayName="CommandShortcut";var $l=gt(({className:e,children:t,...r},o)=>{return ve("div",{ref:o,className:a(Al(),e),...r,children:t},void 0,!1,void 0,this)});$l.displayName="CommandLoading";var vy=({key:e,modifier:t="meta",callback:r})=>{xo(`${t}+${e}`,r)};import*as I from"@radix-ui/react-context-menu";import{cva as dr}from"class-variance-authority";import{Check as hy,ChevronRight as Py,Circle as zy}from"lucide-react";import{createContext as Vl,forwardRef as Vt,useContext as ur}from"react";import{jsxDEV as pe}from"react/jsx-dev-runtime";var J={sm:F.sm,md:F.md,lg:F.lg},Tn={default:"default",danger:"danger"},cr=Vl(J.md),Yl=Vl(void 0),Xa=dr("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)]"),Ja=dr("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-none data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{size:{[J.sm]:"h-7 gap-1.5 px-2 text-xs [&_svg]:size-3.5",[J.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[J.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Tn.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Tn.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:J.sm,variant:Tn.default}}),Xl=dr("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[J.sm]:"h-7 pl-7 pr-2 text-xs",[J.md]:"h-8 pl-8 pr-2 text-sm",[J.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:J.sm}}),Jl=dr("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[J.sm]:"h-7 pl-7 pr-2 text-xs",[J.md]:"h-8 pl-8 pr-2 text-sm",[J.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:J.sm}}),ql=dr("font-semibold text-muted-foreground",{variants:{size:{[J.sm]:"px-2 py-1 text-[11px]",[J.md]:"px-2 py-1.5 text-xs",[J.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:J.sm}}),Ql=dr("-mx-1 my-1 h-px bg-border/50"),Zl=dr("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[J.sm]:"text-[11px]",[J.md]:"text-xs",[J.lg]:"text-xs"}},defaultVariants:{size:J.sm}}),El={[J.sm]:"absolute left-2 flex size-3.5 items-center justify-center",[J.md]:"absolute left-2 flex size-3.5 items-center justify-center",[J.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},My={[J.sm]:"size-3",[J.md]:"size-3.5",[J.lg]:"size-4"},Ny={[J.sm]:"size-1.5 fill-current",[J.md]:"size-2 fill-current",[J.lg]:"size-2.5 fill-current"},Dl=({size:e,...t})=>{let r=f(e??J.sm),o=e===void 0?void 0:r;return pe(Yl.Provider,{value:o,children:pe(I.Root,{...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Dl.displayName=I.Root.displayName;var Ly=I.Trigger,xy=I.Group,Ry=I.Portal,Cy=I.Sub,wy=I.RadioGroup,jl=Vt(({className:e,inset:t,children:r,...o},n)=>{let i=ur(cr),s=f(i);return pe(I.SubTrigger,{ref:n,className:a(Ja({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,pe(Py,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});jl.displayName=I.SubTrigger.displayName;var em=Vt(({className:e,sideOffset:t=nt,portal:r=le,portalContainer:o,...n},i)=>{let s=pe(I.SubContent,{ref:i,sideOffset:t,className:a(Xa(),e),...n},void 0,!1,void 0,this);if(!r)return s;return pe(I.Portal,{container:o??void 0,children:s},void 0,!1,void 0,this)});em.displayName=I.SubContent.displayName;var tm=Vt(({className:e,size:t,portal:r=le,portalContainer:o,...n},i)=>{let s=ur(Yl),l=f(t??s??J.md),d=pe(I.Content,{ref:i,className:a(Xa(),e),...n},void 0,!1,void 0,this);return pe(cr.Provider,{value:l,children:r?pe(I.Portal,{container:o??void 0,children:d},void 0,!1,void 0,this):d},void 0,!1,void 0,this)});tm.displayName=I.Content.displayName;var rm=Vt(({className:e,inset:t,variant:r,...o},n)=>{let i=ur(cr),s=f(i);return pe(I.Item,{ref:n,className:a(Ja({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});rm.displayName=I.Item.displayName;var om=Vt(({className:e,children:t,checked:r,...o},n)=>{let i=ur(cr),s=f(i)??J.md;return pe(I.CheckboxItem,{ref:n,className:a(Xl({size:s}),e),checked:r,...o,children:[pe("span",{className:El[s],children:pe(I.ItemIndicator,{children:pe(hy,{className:My[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)});om.displayName=I.CheckboxItem.displayName;var nm=Vt(({className:e,children:t,...r},o)=>{let n=ur(cr),i=f(n)??J.md;return pe(I.RadioItem,{ref:o,className:a(Jl({size:i}),e),...r,children:[pe("span",{className:El[i],children:pe(I.ItemIndicator,{children:pe(zy,{className:Ny[i]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});nm.displayName=I.RadioItem.displayName;var am=Vt(({className:e,inset:t,...r},o)=>{let n=ur(cr),i=f(n);return pe(I.Label,{ref:o,className:a(ql({size:i}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});am.displayName=I.Label.displayName;var im=Vt(({className:e,...t},r)=>pe(I.Separator,{ref:r,className:a(Ql(),e),...t},void 0,!1,void 0,this));im.displayName=I.Separator.displayName;var sm=({className:e,...t})=>{let r=ur(cr),o=f(r);return pe("span",{className:a(Zl({size:o}),e),...t},void 0,!1,void 0,this)};sm.displayName="ContextMenuShortcut";import*as xe from"@radix-ui/react-dialog";import{cva as Hy}from"class-variance-authority";import{X as ky}from"lucide-react";import{createContext as Sy,forwardRef as hn,useCallback as Ay,useContext as By,useEffect as Iy,useState as lm}from"react";import{jsxDEV as $e,Fragment as Wy}from"react/jsx-dev-runtime";var pr={sm:F.sm,md:F.md,lg:F.lg,full:"full"},Fy=160,mm=Sy(!1),Ro=({children:e,open:t,defaultOpen:r=!1,onOpenChange:o,...n})=>{let[i,s]=lm(r),l=t!==void 0,d=l?t:i,m=Ay((c)=>{if(!l)s(c);o?.(c)},[l,o]);return $e(mm.Provider,{value:d,children:$e(xe.Root,{open:d,onOpenChange:m,...n,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},Gy=xe.Trigger,Pn=xe.Portal,Oy=xe.Close,qa=xe.Content,Co=hn(({className:e,...t},r)=>$e(xe.Overlay,{ref:r,className:a("gs-dialog-overlay",Wt,e),...t},void 0,!1,void 0,this));Co.displayName="DialogOverlay";var dm=Hy("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 rounded-[var(--radius)] border border-border bg-card p-6 text-foreground shadow-[var(--shadow-xl)]",{variants:{size:{[pr.sm]:"max-w-sm",[pr.md]:"max-w-md",[pr.lg]:"max-w-lg",[pr.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:pr.md}}),zn=hn(({className:e,children:t,size:r=pr.sm,showClose:o=!0,showOverlay:n=!0,portal:i=le,portalContainer:s,forceMount:l=!1,"aria-describedby":d,...m},c)=>{let u=By(mm),[g,v]=lm(l||u),y=f(r),T=be();if(Iy(()=>{if(l||u){v(!0);return}let p=setTimeout(()=>{v(!1)},T?0:Fy);return()=>{clearTimeout(p)}},[l,u,T]),!(l||u||g))return null;let z=$e(Wy,{children:[n?$e(Co,{forceMount:!0},void 0,!1,void 0,this):null,$e(xe.Content,{ref:c,forceMount:!0,"aria-describedby":d,className:a(dm({size:y}),e),...m,children:[t,o&&$e(xe.Close,{className:nn,children:[$e(ky,{className:"size-4"},void 0,!1,void 0,this),$e("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(!i)return z;return $e(Pn,{forceMount:!0,container:s??void 0,children:z},void 0,!1,void 0,this)});zn.displayName="DialogContent";var um=({className:e,...t})=>$e("div",{className:a("flex flex-col space-y-1.5 text-center sm:text-left",e),...t},void 0,!1,void 0,this);um.displayName="DialogHeader";var cm=({className:e,...t})=>$e("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);cm.displayName="DialogFooter";var Mn=hn(({className:e,...t},r)=>$e(xe.Title,{ref:r,className:a("font-semibold text-lg leading-none tracking-tight",e),...t},void 0,!1,void 0,this));Mn.displayName="DialogTitle";var pm=hn(({className:e,...t},r)=>$e(xe.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));pm.displayName="DialogDescription";import{cva as Za}from"class-variance-authority";import{X as _y}from"lucide-react";import{forwardRef as Nn}from"react";import{Drawer as yt}from"vaul";import{jsxDEV as He}from"react/jsx-dev-runtime";var bt={sm:"sm",md:"md",lg:"lg",full:"full"},Uy={[bt.sm]:"sm:max-w-sm",[bt.md]:"sm:max-w-md",[bt.lg]:"sm:max-w-lg",[bt.full]:"sm:max-w-full"},Ky={[bt.sm]:"sm:max-h-[30vh]",[bt.md]:"sm:max-h-[50vh]",[bt.lg]:"sm:max-h-[70vh]",[bt.full]:"sm:max-h-full"},bm=Za(a("gs-sheet-overlay",Wt)),ym=Za(["group/drawer-content fixed z-50 flex h-auto flex-col border border-border bg-card 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"]),Qa=Za("shrink-0 rounded-full bg-muted-foreground/25 transition-colors duration-150 hover:bg-muted-foreground/40",{variants:{direction:{top:"h-1.5 w-[60px]",bottom:"h-1.5 w-[60px]",left:"h-[60px] w-1.5",right:"h-[60px] w-1.5"}},defaultVariants:{direction:"bottom"}}),fm={top:"flex justify-center pb-2 pt-4",bottom:"flex justify-center pt-4 pb-2",left:"absolute right-0 top-0 flex h-full items-center pr-2 pl-0",right:"absolute left-0 top-0 flex h-full items-center pl-2 pr-0"},$y=yt.Root,Vy=yt.Trigger,Yy=yt.Close,vm=yt.Portal,gm=yt.Handle,Ea=Nn(({className:e,...t},r)=>He(yt.Overlay,{ref:r,className:a(bm(),e),...t},void 0,!1,void 0,this));Ea.displayName="DrawerOverlay";var Tm=Nn(({size:e=bt.sm,showClose:t=!1,direction:r="bottom",className:o,children:n,...i},s)=>{let d=r==="left"||r==="right"?Uy[e]:Ky[e];return He(vm,{children:[He(Ea,{},void 0,!1,void 0,this),He(yt.Content,{ref:s,className:a(ym(),d,o),...i,children:[r!=="top"&&He("div",{className:a(fm[r]),children:He(gm,{className:"!m-0 !h-auto !w-auto !rounded-none !bg-transparent !opacity-100",children:He("div",{className:a(Qa({direction:r}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),n,r==="top"&&He("div",{className:a(fm[r]),children:He(gm,{className:"!m-0 !h-auto !w-auto !rounded-none !bg-transparent !opacity-100",children:He("div",{className:a(Qa({direction:r}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t&&He(yt.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:[He(_y,{className:"size-4"},void 0,!1,void 0,this),He("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)});Tm.displayName="DrawerContent";var hm=({className:e,...t})=>He("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);hm.displayName="DrawerHeader";var Pm=({className:e,...t})=>He("div",{className:a("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);Pm.displayName="DrawerFooter";var zm=Nn(({className:e,...t},r)=>He(yt.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));zm.displayName="DrawerTitle";var Mm=Nn(({className:e,...t},r)=>He(yt.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Mm.displayName="DrawerDescription";import*as G from"@radix-ui/react-dropdown-menu";import{cva as fr}from"class-variance-authority";import{Check as Xy,ChevronRight as Jy,Circle as qy}from"lucide-react";import{createContext as Qy,forwardRef as Yt,useContext as Vr}from"react";import{jsxDEV as Te}from"react/jsx-dev-runtime";var Q={sm:F.sm,md:F.md,lg:F.lg},Ln={default:"default",danger:"danger"},gr=Qy(Q.md),Da=fr("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)]"),ja=fr("relative flex cursor-pointer select-none items-center rounded-md outline-none data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{size:{[Q.sm]:"h-7 gap-1.5 px-2 text-xs [&_svg]:size-3.5",[Q.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[Q.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Ln.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Ln.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:Q.sm,variant:Ln.default}}),Nm=fr("relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[Q.sm]:"h-7 pl-7 pr-2 text-xs",[Q.md]:"h-8 pl-8 pr-2 text-sm",[Q.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:Q.sm}}),Lm=fr("relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[Q.sm]:"h-7 pl-7 pr-2 text-xs",[Q.md]:"h-8 pl-8 pr-2 text-sm",[Q.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:Q.sm}}),xm=fr("font-semibold text-muted-foreground",{variants:{size:{[Q.sm]:"px-2 py-1 text-[11px]",[Q.md]:"px-2 py-1.5 text-xs",[Q.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:Q.sm}}),Rm=fr("-mx-1 my-1 h-px bg-border/50"),Cm=fr("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[Q.sm]:"text-[11px]",[Q.md]:"text-xs",[Q.lg]:"text-xs"}},defaultVariants:{size:Q.sm}}),wm={[Q.sm]:"absolute left-2 flex size-3.5 items-center justify-center",[Q.md]:"absolute left-2 flex size-3.5 items-center justify-center",[Q.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},Zy={[Q.sm]:"size-3",[Q.md]:"size-3.5",[Q.lg]:"size-4"},Ey={[Q.sm]:"size-1.5 fill-current",[Q.md]:"size-2 fill-current",[Q.lg]:"size-2.5 fill-current"},Dy=G.Root,jy=G.Trigger,ev=G.Group,tv=G.Portal,rv=G.Sub,ov=G.RadioGroup,Hm=Yt(({className:e,inset:t,children:r,...o},n)=>{let i=Vr(gr),s=f(i);return Te(G.SubTrigger,{ref:n,className:a(ja({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,Te(Jy,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Hm.displayName=G.SubTrigger.displayName;var km=Yt(({className:e,sideOffset:t=nt,portal:r=le,portalContainer:o,...n},i)=>{let s=Te(G.SubContent,{ref:i,sideOffset:t,className:a(Da(),e),...n},void 0,!1,void 0,this);if(!r)return s;return Te(G.Portal,{container:o??void 0,children:s},void 0,!1,void 0,this)});km.displayName=G.SubContent.displayName;var Sm=Yt(({className:e,sideOffset:t=nt,size:r,portal:o=le,portalContainer:n,...i},s)=>{let l=f(r)??Q.md,d=Te(G.Content,{ref:s,sideOffset:t,className:a(Da(),e),...i},void 0,!1,void 0,this);return Te(gr.Provider,{value:l,children:o?Te(G.Portal,{container:n??void 0,children:d},void 0,!1,void 0,this):d},void 0,!1,void 0,this)});Sm.displayName=G.Content.displayName;var Am=Yt(({className:e,inset:t,variant:r,...o},n)=>{let i=Vr(gr),s=f(i);return Te(G.Item,{ref:n,className:a(ja({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});Am.displayName=G.Item.displayName;var Bm=Yt(({className:e,children:t,checked:r,...o},n)=>{let i=Vr(gr),s=f(i)??Q.md;return Te(G.CheckboxItem,{ref:n,className:a(Nm({size:s}),e),checked:r,...o,children:[Te("span",{className:wm[s],children:Te(G.ItemIndicator,{children:Te(Xy,{className:Zy[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)});Bm.displayName=G.CheckboxItem.displayName;var Im=Yt(({className:e,children:t,...r},o)=>{let n=Vr(gr),i=f(n)??Q.md;return Te(G.RadioItem,{ref:o,className:a(Lm({size:i}),e),...r,children:[Te("span",{className:wm[i],children:Te(G.ItemIndicator,{children:Te(qy,{className:Ey[i]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});Im.displayName=G.RadioItem.displayName;var Fm=Yt(({className:e,inset:t,...r},o)=>{let n=Vr(gr),i=f(n);return Te(G.Label,{ref:o,className:a(xm({size:i}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Fm.displayName=G.Label.displayName;var Gm=Yt(({className:e,...t},r)=>Te(G.Separator,{ref:r,className:a(Rm(),e),...t},void 0,!1,void 0,this));Gm.displayName=G.Separator.displayName;var Om=({className:e,...t})=>{let r=Vr(gr),o=f(r);return Te("span",{className:a(Cm({size:o}),e),...t},void 0,!1,void 0,this)};Om.displayName="DropdownMenuShortcut";import{cva as Ho}from"class-variance-authority";import{forwardRef as nv}from"react";import{jsxDEV as wo}from"react/jsx-dev-runtime";var ke={sm:"sm",md:"md",lg:"lg"},Wm=Ho("flex flex-col items-center justify-center text-center rounded-[var(--radius)] border border-dashed border-border/70 bg-muted/35",{variants:{size:{[ke.sm]:"gap-2 p-4",[ke.md]:"gap-4 p-8",[ke.lg]:"gap-6 p-12"}},defaultVariants:{size:ke.sm}}),_m=Ho("flex items-center justify-center rounded-full border border-border/60 bg-muted/70 text-muted-foreground",{variants:{size:{[ke.sm]:"h-10 w-10 [&>svg]:h-4 [&>svg]:w-4",[ke.md]:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",[ke.lg]:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"}},defaultVariants:{size:ke.sm}}),Um=Ho("font-semibold text-foreground",{variants:{size:{[ke.sm]:"text-sm",[ke.md]:"text-lg",[ke.lg]:"text-xl"}},defaultVariants:{size:ke.sm}}),Km=Ho("text-muted-foreground max-w-sm",{variants:{size:{[ke.sm]:"text-xs",[ke.md]:"text-sm",[ke.lg]:"text-base"}},defaultVariants:{size:ke.sm}}),$m=Ho("flex items-center gap-2 mt-2"),Vm=nv(({className:e,icon:t,title:r,description:o,actions:n,size:i=ke.sm,children:s,...l},d)=>{let m=f(i);return wo("div",{ref:d,className:a(Wm({size:m}),e),...l,children:[t&&wo("div",{className:_m({size:m}),children:t},void 0,!1,void 0,this),r&&wo("h3",{className:Um({size:m}),children:r},void 0,!1,void 0,this),o&&wo("p",{className:Km({size:m}),children:o},void 0,!1,void 0,this),n&&wo("div",{className:$m(),children:n},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});Vm.displayName="EmptyState";import{cva as Yr}from"class-variance-authority";import{Component as av,createElement as Ym}from"react";import{jsxDEV as Oe,Fragment as sv}from"react/jsx-dev-runtime";var Xm=Yr(["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"},variant:{destructive:"border-destructive/30 bg-destructive/8",warning:"border-warning/30 bg-warning/8",info:"border-info/30 bg-info/8"}},defaultVariants:{size:"sm",variant:"destructive"}}),Jm=Yr(["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"},variant:{destructive:"bg-destructive/10 text-destructive",warning:"bg-warning/10 text-warning",info:"bg-info/10 text-info"}},defaultVariants:{size:"sm",variant:"destructive"}}),qm=Yr("font-semibold transition-colors duration-300",{variants:{size:{sm:"text-lg",md:"text-xl",lg:"text-2xl"},variant:{destructive:"text-destructive",warning:"text-warning",info:"text-info"}},defaultVariants:{size:"sm",variant:"destructive"}}),Qm=Yr("max-w-xl text-muted-foreground transition-all duration-200",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"sm"}}),Zm=Yr("mt-2 flex flex-wrap items-center justify-center gap-2"),Em=Yr("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 Dm extends av{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="sm",variant:n="destructive",className:i,title:s="Something went wrong",description:l="An unexpected error occurred. Please try again.",icon:d,actions:m,resetLabel:c="Try again",hideReset:u=!1,renderDetails:g}=this.props;if(this.state.hasError&&this.state.error){let v={error:this.state.error,reset:this.handleReset};if(t){if(typeof t==="function")return Ym(t,v);return t}let y=null;if(m)y=typeof m==="function"?Ym(m,v):m;else if(!u){let M={destructive:"border-destructive/30 bg-destructive text-destructive-foreground hover:bg-destructive/90",warning:"border-warning/30 bg-warning text-warning-foreground hover:bg-warning/90",info:"border-info/30 bg-info text-info-foreground hover:bg-info/90"};y=Oe("button",{type:"button",onClick:this.handleReset,className:a("inline-flex items-center justify-center rounded-md border px-4 py-2 font-medium text-sm","transition-colors duration-150 ease-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",M[n]),children:c},void 0,!1,void 0,this)}let T=g?g(this.state.error):Oe(sv,{children:[Oe("strong",{children:"Error:"},void 0,!1,void 0,this)," ",this.state.error.message,this.state.error.stack&&Oe("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 Oe("div",{className:a(Xm({size:o,variant:n}),i),children:[Oe("div",{className:a(Jm({size:o,variant:n})),children:d??Oe(iv,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Oe("h3",{className:a(qm({size:o,variant:n})),children:s},void 0,!1,void 0,this),Oe("p",{className:a(Qm({size:o})),children:l},void 0,!1,void 0,this),y&&Oe("div",{className:a(Zm()),children:y},void 0,!1,void 0,this),r&&Oe("div",{className:a(Em()),children:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function iv(){return Oe("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:[Oe("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,void 0,this),Oe("line",{x1:"12",x2:"12",y1:"8",y2:"12"},void 0,!1,void 0,this),Oe("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 Xt}from"class-variance-authority";import{forwardRef as lv,useCallback as st,useRef as mv,useState as jm}from"react";import{jsxDEV as Ae}from"react/jsx-dev-runtime";var Re={sm:"sm",md:"md",lg:"lg"},ed=Xt(["relative flex flex-col items-center justify-center","rounded-xl border-2 border-dashed","shadow-[var(--shadow-xs)]","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","cursor-pointer","hover:border-primary/45 hover:bg-primary/8","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"],{variants:{size:{[Re.sm]:"min-h-28 p-5",[Re.md]:"min-h-36 p-8",[Re.lg]:"min-h-44 p-10"},isDragging:{true:"scale-[1.01] border-primary bg-primary/12 shadow-[var(--glow-brand-sm)]",false:"border-border bg-card/75"},disabled:{true:"cursor-not-allowed border-border/70 bg-muted/35 text-muted-foreground pointer-events-none",false:""},hasError:{true:"border-destructive bg-destructive/5",false:""}},defaultVariants:{size:Re.sm,isDragging:!1,disabled:!1,hasError:!1}}),td=Xt("text-muted-foreground transition-colors duration-200",{variants:{size:{[Re.sm]:"mb-2 size-6",[Re.md]:"size-8 mb-3",[Re.lg]:"size-10 mb-4"},isDragging:{true:"text-primary",false:""}},defaultVariants:{size:Re.sm,isDragging:!1}}),ei=Xt("text-center",{variants:{size:{[Re.sm]:"text-sm",[Re.md]:"text-sm",[Re.lg]:"text-base"}},defaultVariants:{size:Re.sm}}),rd=Xt("mt-4 w-full space-y-2"),od=Xt(["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"]),nd=Xt("min-w-0 flex-1 truncate font-medium text-foreground",{variants:{size:{[Re.sm]:"text-sm",[Re.md]:"text-sm",[Re.lg]:"text-base"}},defaultVariants:{size:"sm"}}),ad=Xt("text-muted-foreground",{variants:{size:{[Re.sm]:"text-xs",[Re.md]:"text-sm",[Re.lg]:"text-sm"}},defaultVariants:{size:"sm"}}),id=Xt(["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"]),sd=lv(({className:e,size:t="sm",disabled:r=!1,accept:o,multiple:n=!1,maxSize:i,maxFiles:s,value:l=[],onChange:d,onError:m,icon:c,title:u="Drop files here or click to upload",description:g,showFileList:v=!0,...y},T)=>{let M=f(t),[z,p]=jm(!1),[h,L]=jm(!1),H=mv(null),S=st((x)=>{if(x===0)return"0 Bytes";let W=1024,b=["Bytes","KB","MB","GB"],P=Math.floor(Math.log(x)/Math.log(W));return`${parseFloat((x/W**P).toFixed(2))} ${b[P]}`},[]),B=st((x)=>{let W=[...x];if(L(!1),o){let b=o.split(",").map((P)=>P.trim());if(W=W.filter((P)=>{return b.some((C)=>{if(C.startsWith("."))return P.name.toLowerCase().endsWith(C.toLowerCase());if(C.endsWith("/*"))return P.type.startsWith(C.slice(0,-1));return P.type===C})}),W.length<x.length)m?.("Some files were rejected due to file type"),L(!0)}if(i){let b=W.length;if(W=W.filter((P)=>P.size<=i),W.length<b)m?.(`File size must be less than ${S(i)}`),L(!0)}if(s&&W.length+l.length>s)W=W.slice(0,s-l.length),m?.(`Maximum ${s} files allowed`),L(!0);return W},[o,i,s,l.length,m,S]),R=st((x)=>{if(!x||x.length===0)return;let W=Array.from(x),b=B(W);if(b.length>0)if(n)d?.([...l,...b]);else d?.(b.slice(0,1))},[n,l,d,B]),Y=st((x)=>{x.preventDefault(),x.stopPropagation(),p(!0)},[]),K=st((x)=>{x.preventDefault(),x.stopPropagation(),p(!1)},[]),X=st((x)=>{x.preventDefault(),x.stopPropagation()},[]),j=st((x)=>{if(x.preventDefault(),x.stopPropagation(),p(!1),r)return;R(x.dataTransfer.files)},[r,R]),ie=st((x)=>{if(R(x.target.files),H.current)H.current.value=""},[R]),V=st(()=>{if(!r)H.current?.click()},[r]),re=st((x)=>{if(x.key==="Enter"||x.key===" ")x.preventDefault(),V()},[V]),k=st((x)=>{let W=l.filter((b,P)=>P!==x);d?.(W)},[l,d]),Z=Ae("svg",{className:a(td({size:M,isDragging:z})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ae("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 Ae("div",{ref:T,className:a("w-full",e),...y,children:[Ae("div",{role:"button",tabIndex:r?-1:0,onClick:V,onKeyDown:re,onDragEnter:Y,onDragLeave:K,onDragOver:X,onDrop:j,className:a(ed({size:M,isDragging:z,disabled:r,hasError:h})),children:[Ae("input",{ref:H,type:"file",accept:o,multiple:n,disabled:r,onChange:ie,className:"sr-only"},void 0,!1,void 0,this),c||Z,Ae("p",{className:a(ei({size:M}),"font-medium text-foreground"),children:u},void 0,!1,void 0,this),g&&Ae("p",{className:a(ei({size:M}),"mt-1 text-muted-foreground"),children:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v&&l.length>0&&Ae("div",{className:a(rd()),children:l.map((x,W)=>Ae("div",{className:a(od()),children:[Ae("svg",{className:"size-5 shrink-0 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ae("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),Ae("span",{className:a(nd({size:M})),children:x.name},void 0,!1,void 0,this),Ae("span",{className:a(ad({size:M})),children:S(x.size)},void 0,!1,void 0,this),Ae("button",{type:"button",onClick:(b)=>{b.stopPropagation(),k(W)},className:a(id()),"aria-label":`Remove ${x.name}`,children:Ae("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ae("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},`${x.name}-${W}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});sd.displayName="FileUpload";import{cva as dv}from"class-variance-authority";import{createContext as uv,forwardRef as xn,useCallback as ld,useContext as cv,useEffect as dd,useId as pv,useMemo as fv,useState as md}from"react";import{jsxDEV as br,Fragment as bv}from"react/jsx-dev-runtime";var Ze={sm:"sm",md:"md",lg:"lg"},ud=uv(null),ko=()=>{let e=cv(ud);if(!e)throw Error("useFormField must be used within a FormField");return e},cd=dv("flex flex-col",{variants:{size:{[Ze.sm]:"gap-1",[Ze.md]:"gap-1.5",[Ze.lg]:"gap-2"}},defaultVariants:{size:Ze.sm}}),pd=xn(({className:e,size:t=Ze.sm,error:r,disabled:o=!1,required:n=!1,children:i,...s},l)=>{let d=pv(),m=f(t),[c,u]=md([]),[g,v]=md([]),y=ld((z)=>{return u((p)=>p.includes(z)?p:[...p,z]),()=>{u((p)=>p.filter((h)=>h!==z))}},[]),T=ld((z)=>{return v((p)=>p.includes(z)?p:[...p,z]),()=>{v((p)=>p.filter((h)=>h!==z))}},[]),M=fv(()=>({id:d,size:m,error:r,disabled:o,required:n,descriptionIds:c,errorIds:g,registerDescriptionId:y,registerErrorId:T}),[c,o,m,r,g,d,y,T,n]);return br(ud.Provider,{value:M,children:br("div",{ref:l,className:a(cd({size:m}),e),...s,children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this)});pd.displayName="FormField";var gv={[Ze.sm]:"text-xs",[Ze.md]:"text-sm",[Ze.lg]:"text-base"},fd=xn(({className:e,htmlFor:t,children:r,...o},n)=>{let{id:i,size:s,disabled:l,required:d}=ko();return br("label",{ref:n,htmlFor:t??i,className:a("inline-block select-none font-medium text-foreground",gv[s],l&&"cursor-not-allowed opacity-60",e),...o,children:[r,d&&br("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});fd.displayName="FormFieldLabel";var gd={[Ze.sm]:"text-[11px]",[Ze.md]:"text-xs",[Ze.lg]:"text-sm"},bd=xn(({className:e,id:t,...r},o)=>{let{id:n,size:i,registerDescriptionId:s}=ko(),l=t??`${n}-description`;return dd(()=>{return s(l)},[l,s]),br("p",{ref:o,id:l,className:a("text-muted-foreground",gd[i],e),...r},void 0,!1,void 0,this)});bd.displayName="FormFieldDescription";var yd=xn(({className:e,children:t,id:r,...o},n)=>{let{id:i,size:s,error:l,registerErrorId:d}=ko(),m=t??l,c=r??`${i}-error`;if(dd(()=>{if(!m)return;return d(c)},[c,m,d]),!m)return null;return br("p",{ref:n,id:c,role:"alert",className:a("text-destructive",gd[s],e),...o,children:m},void 0,!1,void 0,this)});yd.displayName="FormFieldError";var vd=({children:e})=>{let{id:t,disabled:r,required:o,error:n,descriptionIds:i,errorIds:s}=ko(),l=[...i,...s].join(" ");return br(bv,{children:e({id:t,disabled:r,required:o,status:n||s.length>0?"error":"default","aria-describedby":l||void 0,"aria-invalid":n||s.length>0?!0:void 0})},void 0,!1,void 0,this)};vd.displayName="FormFieldControl";import*as Ht from"@radix-ui/react-hover-card";import{cva as yv}from"class-variance-authority";import{forwardRef as vv}from"react";import{jsxDEV as ti}from"react/jsx-dev-runtime";var Xr={sm:F.sm,md:F.md,lg:F.lg},Td=yv("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:{[Xr.sm]:"w-52 p-3 text-xs",[Xr.md]:"w-64 p-4 text-sm",[Xr.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:Xr.md}}),hd=({openDelay:e,closeDelay:t,...r})=>{let o=be();return ti(Ht.Root,{openDelay:o?0:e,closeDelay:o?0:t,...r},void 0,!1,void 0,this)};hd.displayName="HoverCard";var Tv=Ht.Trigger,Pd=vv(({className:e,align:t="center",sideOffset:r=nt,portal:o=le,portalContainer:n,size:i=Xr.sm,...s},l)=>{let d=f(i),m=ti(Ht.Content,{ref:l,align:t,sideOffset:r,className:a(Td({size:d}),e),...s},void 0,!1,void 0,this);if(!o)return m;return ti(Ht.Portal,{container:n??void 0,children:m},void 0,!1,void 0,this)});Pd.displayName=Ht.Content.displayName;import{cva as hv}from"class-variance-authority";import{X as Pv}from"lucide-react";import{forwardRef as zv,useRef as Mv,useState as Nv}from"react";import{jsxDEV as yr}from"react/jsx-dev-runtime";var So={default:"default",error:"error",success:"success"},ne={sm:"sm",md:"md",lg:"lg"},Lv="Clear input",Md=hv("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] 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:{[So.default]:"focus-visible:ring-primary",[So.error]:"border-destructive focus-visible:ring-destructive",[So.success]:"border-success focus-visible:ring-success"},size:{[ne.sm]:"h-8 px-2 text-xs",[ne.md]:"h-10 px-3",[ne.lg]:"h-11 px-4"}},defaultVariants:{status:So.default,size:ne.sm}}),xv={[ne.sm]:"pl-7",[ne.md]:"pl-9",[ne.lg]:"pl-10"},Rv={[ne.sm]:"pr-7",[ne.md]:"pr-9",[ne.lg]:"pr-10"},Cv={[ne.sm]:"pr-12",[ne.md]:"pr-16",[ne.lg]:"pr-18"},wv={[ne.sm]:"text-xs left-2",[ne.md]:"text-sm left-3",[ne.lg]:"text-sm left-3.5"},Hv={[ne.sm]:"text-xs",[ne.md]:"text-sm",[ne.lg]:"text-sm"},kv={[ne.sm]:"size-4",[ne.md]:"size-5",[ne.lg]:"size-5"},Sv={[ne.sm]:"size-3",[ne.md]:"size-3.5",[ne.lg]:"size-3.5"};function zd(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var Nd=zv(({className:e,status:t=So.default,size:r=ne.sm,fullWidth:o=!1,prefix:n,suffix:i,clearable:s=!1,clearAriaLabel:l=Lv,onClear:d,onValueChange:m,disabled:c,readOnly:u,onChange:g,value:v,defaultValue:y,...T},M)=>{let z=Boolean(n),p=Boolean(i),h=f(r),L=Mv(null),H=kt(M,L),[S,B]=Nv(()=>zd(y)),R=v!==void 0,Y=R?zd(v):S,K=s&&!c&&!u,X=s&&!c&&!u&&Y.length>0,j=p||K,ie=p&&K,V=(k)=>{let Z=k.target.value;if(!R)B(Z);m?.(Z),g?.(k)},re=()=>{if(!R)B("");m?.("");let k=L.current;if(k)k.value="",k.dispatchEvent(new Event("input",{bubbles:!0})),k.focus();d?.()};return yr("div",{className:a("relative flex items-center",o&&"w-full"),children:[z&&yr("span",{className:a("absolute inset-y-0 flex items-center text-muted-foreground",wv[h]),children:n},void 0,!1,void 0,this),yr("input",{ref:H,className:a(Md({status:t,size:h}),z&&xv[h],ie&&Cv[h],!ie&&j&&Rv[h],e),disabled:c,readOnly:u,onChange:V,value:Y,...T},void 0,!1,void 0,this),j&&yr("span",{className:a("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",Hv[h]),children:[p&&yr("span",{className:"inline-flex items-center",children:i},void 0,!1,void 0,this),K&&yr("button",{type:"button","aria-label":l,onMouseDown:(k)=>k.preventDefault(),onClick:re,tabIndex:X?0:-1,disabled:!X,className:a("inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",X?"cursor-pointer hover:text-foreground":"pointer-events-none opacity-0",kv[h]),children:yr(Pv,{className:Sv[h]},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Nd.displayName="Input";import{cva as Fv}from"class-variance-authority";import{forwardRef as Gv}from"react";import{useSyncExternalStore as Av}from"react";var Bv=()=>ri(),Iv=()=>Ld;function Ao(){return Av(xd,Bv,Iv)}import{jsxDEV as Ov}from"react/jsx-dev-runtime";var Jr={sm:"sm",md:"md",lg:"lg"},qr=Fv("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:{[Jr.sm]:"min-w-5 h-5 px-1 text-[11px]",[Jr.md]:"min-w-6 h-6 px-1.5 text-xs",[Jr.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:Jr.sm}}),Rd=Gv(({className:e,size:t=Jr.sm,combo:r,keys:o,children:n,...i},s)=>{let l=f(t),{isMac:d}=Ao(),m=r?Rn(r,d):o?Rn(o,d):n;return Ov("kbd",{ref:s,className:a(qr({size:l}),e),...i,children:m},void 0,!1,void 0,this)});Rd.displayName="Kbd";import{cva as Wv}from"class-variance-authority";import{forwardRef as _v}from"react";import{jsxDEV as Cd}from"react/jsx-dev-runtime";var Qr={sm:"sm",md:"md",lg:"lg"},wd=Wv("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:text-muted-foreground/70",{variants:{size:{[Qr.sm]:"text-xs",[Qr.md]:"text-sm",[Qr.lg]:"text-base"}},defaultVariants:{size:Qr.sm}}),Hd=_v(({className:e,size:t=Qr.sm,required:r=!1,disabled:o=!1,children:n,htmlFor:i,...s},l)=>{let d=f(t);return Cd("label",{ref:l,htmlFor:i,className:a(wd({size:d}),o&&"cursor-not-allowed text-muted-foreground/70",e),"aria-disabled":o||void 0,...s,children:[n,r&&Cd("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Hd.displayName="Label";import{forwardRef as Uv}from"react";import{jsxDEV as Kv}from"react/jsx-dev-runtime";var kd=Uv((e,t)=>{return Kv(Gt,{ref:t,...e},void 0,!1,void 0,this)});kd.displayName="Loader";import*as Jt from"@radix-ui/react-popover";import{cva as Qv}from"class-variance-authority";import{Check as Zv,ChevronDown as Ev,X as Dv}from"lucide-react";import{forwardRef as jv,useCallback as St,useEffect as oi,useLayoutEffect as Bd,useMemo as Dr,useRef as jr,useState as Cn}from"react";import*as Ee from"@radix-ui/react-popover";import{cva as $v}from"class-variance-authority";import{forwardRef as Vv}from"react";import{jsxDEV as Sd}from"react/jsx-dev-runtime";var Zr={sm:F.sm,md:F.md,lg:F.lg},Er=$v("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:{[Zr.sm]:"w-56 p-3 text-sm",[Zr.md]:"w-72 p-4 text-sm",[Zr.lg]:"w-96 p-5 text-sm"}},defaultVariants:{size:Zr.md}}),Yv=Ee.Root,Xv=Ee.Trigger,Jv=Ee.Anchor,qv=Ee.Close,Ad=Vv(({className:e,align:t="center",sideOffset:r=nt,portal:o=le,portalContainer:n,size:i=Zr.sm,...s},l)=>{let d=f(i),m=Sd(Ee.Content,{ref:l,align:t,sideOffset:r,className:a(Er({size:d}),e),...s},void 0,!1,void 0,this);if(o)return Sd(Ee.Portal,{container:n??void 0,children:m},void 0,!1,void 0,this);return m});Ad.displayName="PopoverContent";import{jsxDEV as me,Fragment as uT}from"react/jsx-dev-runtime";var te={sm:"sm",md:"md",lg:"lg"},Id=Qv(["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:{[te.sm]:"min-h-8 px-2.5 py-1 text-xs",[te.md]:"min-h-10 px-3.5 py-1.5",[te.lg]:"min-h-11 px-4.5 py-2 text-sm"},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:te.md,status:"default"}}),eT={[te.sm]:"sm",[te.md]:"md",[te.lg]:"lg"},tT={[te.sm]:"min-h-7.5 py-1.5 px-2.5 text-xs",[te.md]:"min-h-9 py-2 px-3 text-sm",[te.lg]:"min-h-10 py-2.5 px-3.5 text-sm"},wn={[te.sm]:"size-3.5",[te.md]:"size-4",[te.lg]:"size-4"},rT={[te.sm]:"text-[11px]",[te.md]:"text-xs",[te.lg]:"text-xs"},oT=4,nT={[te.sm]:34,[te.md]:36,[te.lg]:40},aT={[te.sm]:5.8,[te.md]:6,[te.lg]:6.2},iT={[te.sm]:14,[te.md]:16,[te.lg]:18},sT={[te.sm]:5.6,[te.md]:5.8,[te.lg]:6},lT=(e,t)=>{return Math.ceil(nT[t]+Math.max(1,e.trim().length)*aT[t])},mT=(e,t)=>{let r=`+${e}`;return Math.ceil(iT[t]+r.length*sT[t])},dT=({containerWidth:e,badgeWidths:t,getSummaryWidth:r,gapPx:o=oT})=>{if(t.length===0)return{visibleCount:0,hiddenCount:0};if(e<=0)return{visibleCount:0,hiddenCount:t.length};let n=0,i=0;for(let s=0;s<t.length;s+=1){let l=t[s]??0,d=i>0,m=n+(d?o:0)+l,c=t.length-(s+1);if(c>0){let u=r(c),g=m>0?o:0;if(m+g+u<=e){n=m,i+=1;continue}break}if(m<=e)n=m,i+=1}return{visibleCount:i,hiddenCount:t.length-i}},Fd=jv(({className:e,options:t,value:r,defaultValue:o=[],onValueChange:n,placeholder:i="Select options...",size:s=te.sm,status:l="default",clearable:d=!1,open:m,defaultOpen:c=!1,onOpenChange:u,portal:g=le,portalContainer:v,disabled:y,...T},M)=>{let z=f(s)??s,[p,h]=Cn(c),[L,H]=Cn(o),[S,B]=Cn(null),[R,Y]=Cn(null),K=jr(null),X=jr(null),j=jr(null),ie=jr(o),V=jr(new Map),re=jr(new Map),k=r!==void 0,Z=m!==void 0,x=k?r:L,W=Z?m:p,b=St((N)=>{if(!Z)h(N);u?.(N)},[Z,u]),P=Dr(()=>{return new Map(t.map((N)=>[N.value,N]))},[t]),C=Dr(()=>{return x.flatMap((N)=>{let E=P.get(N);return E?[E]:[]})},[P,x]),oe=Dr(()=>{if(!S)return;return P.get(S)},[P,S]),_=St((N)=>{let E=x.includes(N)?x.filter((ee)=>ee!==N):[...x,N];if(!k)H(E);n?.(E)},[k,n,x]),Ce=St((N)=>{let E=x.filter((ee)=>ee!==N);if(!k)H(E);n?.(E)},[k,n,x]),O=St(()=>{if(!k)H([]);n?.([])},[k,n]),ae=St((N)=>{N.stopPropagation(),N.preventDefault(),O()},[O]),Lt=St((N)=>{if(N.key==="Enter"||N.key===" ")N.stopPropagation(),N.preventDefault(),O()},[O]),ot=St((N)=>{let E=K.current;if(!E)return;let ee=Array.from(E.querySelectorAll('[role="option"]:not([data-disabled])'));if(ee.length===0)return;let ir=E.querySelector('[role="option"]:focus'),en=ir?ee.indexOf(ir):-1,bo;switch(N){case"first":bo=ee[0];break;case"last":bo=ee[ee.length-1];break;case"next":bo=ee[en+1]??ee[0];break;case"prev":bo=ee[en-1]??ee[ee.length-1];break}bo?.focus()},[]),$=St((N)=>{switch(N.key){case"ArrowDown":N.preventDefault(),ot("next");break;case"ArrowUp":N.preventDefault(),ot("prev");break;case"Home":N.preventDefault(),ot("first");break;case"End":N.preventDefault(),ot("last");break;case"Escape":N.preventDefault(),b(!1);break}},[ot,b]);oi(()=>{if(W)requestAnimationFrame(()=>ot("first"))},[ot,W]),oi(()=>{if(S&&!oe)B(null)},[oe,S]),oi(()=>{let N=ie.current,E=x.filter((ee)=>!N.includes(ee));if(E.length>0){let ee=E[E.length-1];if(ee&&!V.current.has(`${z}:${ee}`))B(ee)}ie.current=x},[z,x]),Bd(()=>{let N=X.current;if(!N)return;if((()=>{Y(Math.ceil(N.getBoundingClientRect().width))})(),typeof ResizeObserver>"u")return;let ee=new ResizeObserver((ir)=>{let en=Math.ceil(ir[0]?.contentRect.width??N.getBoundingClientRect().width);Y(en)});return ee.observe(N),()=>{ee.disconnect()}},[]),Bd(()=>{if(!S)return;let N=j.current;if(!N)return;let E=Math.ceil(N.getBoundingClientRect().width);if(E>0)V.current.set(`${z}:${S}`,E);B(null)},[z,S]);let ue=eT[z],se=C.length>0,Me=d&&se&&!y,Ue=St((N)=>{let E=`${z}:${N}`,ee=re.current.get(E);if(ee!==void 0)return ee;let ir=mT(N,z);return re.current.set(E,ir),ir},[z]),ct=Dr(()=>{return C.map((N)=>{let E=`${z}:${N.value}`;return V.current.get(E)??lT(N.label,z)})},[z,C]),A=Dr(()=>{if(!se)return{visibleCount:0,hiddenCount:0};if(R===null||R<=0)return{visibleCount:C.length,hiddenCount:0};return dT({containerWidth:R,badgeWidths:ct,getSummaryWidth:Ue})},[R,Ue,se,ct,C.length]),ce=Dr(()=>{return C.slice(0,A.visibleCount)},[A.visibleCount,C]),Ne=me(Jt.Content,{ref:K,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:$,onOpenAutoFocus:(N)=>N.preventDefault(),className:a(Er(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((N)=>{let E=x.includes(N.value);return me("div",{role:"option",tabIndex:N.disabled?void 0:-1,"aria-selected":E,"aria-disabled":N.disabled||void 0,"data-disabled":N.disabled?"":void 0,className:a("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:border-transparent data-disabled:bg-muted/40 data-disabled:text-muted-foreground/70",tT[z]),onClick:()=>!N.disabled&&_(N.value),onKeyDown:(ee)=>{if(ee.key==="Enter"||ee.key===" "){if(ee.preventDefault(),!N.disabled)_(N.value)}},children:[me("span",{className:a("flex shrink-0 items-center justify-center",wn[z]),children:E?me(Zv,{className:wn[z]},void 0,!1,void 0,this):null},void 0,!1,void 0,this),me("span",{className:"min-w-0 flex-1 truncate",children:N.label},void 0,!1,void 0,this)]},N.value,!0,void 0,this)}),t.length===0?me("div",{className:"px-3 py-6 text-center text-muted-foreground text-sm",children:"No options available"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this);return me(Jt.Root,{open:W,onOpenChange:b,children:[me(Jt.Trigger,{asChild:!0,children:me("button",{ref:M,type:"button",disabled:y,"data-state":W?"open":"closed","data-placeholder":se?void 0:"",className:a(Id({size:z,status:l}),e),...T,children:[me("span",{ref:X,className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:se?me(uT,{children:[ce.map((N)=>me(ho,{variant:"outline",size:ue,removable:!0,removeControl:"span",removeLabel:`Remove ${N.label}`,onRemove:()=>Ce(N.value),className:"max-w-[180px]",children:me("span",{className:"truncate",children:N.label},void 0,!1,void 0,this)},N.value,!1,void 0,this)),A.hiddenCount>0?me("span",{className:a("text-muted-foreground",rT[z]),children:["+",A.hiddenCount]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):me("span",{className:"text-muted-foreground",children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this),me("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[Me?me("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(N)=>N.preventDefault(),onKeyDown:Lt,onClick:ae,className:"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:me(Dv,{className:wn[z]},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,me(Ev,{className:a(wn[z],"opacity-60 transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",W&&"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),g?me(Jt.Portal,{container:v??void 0,children:Ne},void 0,!1,void 0,this):Ne,oe?me("span",{className:"pointer-events-none invisible absolute top-0 left-0 -z-10","aria-hidden":!0,children:me(ho,{ref:j,variant:"outline",size:ue,removable:!0,removeControl:"span",className:"max-w-[180px]",children:me("span",{className:"truncate",children:oe.label},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)});Fd.displayName="Multiselect";import{cva as qt}from"class-variance-authority";import{createContext as cT,forwardRef as vr,useContext as pT}from"react";import{jsxDEV as De}from"react/jsx-dev-runtime";var Gd=qt(["transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] flex w-full items-center justify-between border-b","transition-colors duration-200 ease-out"],{variants:{variant:{default:["border-border bg-background/95 backdrop-blur-xl","shadow-[var(--shadow-sm)]"],transparent:"bg-transparent border-transparent",blur:["bg-[var(--surface-glass)] dark:bg-[var(--surface-glass-dark)] border-[color:color-mix(in_srgb,var(--primary)_18%,var(--border))] backdrop-blur-[14px] shadow-[var(--shadow-glass)]","shadow-[var(--shadow-md)]"],solid:["border-border bg-background","shadow-[var(--shadow-xs)]"]},size:{sm:"h-12 px-3",md:"h-14 px-5",lg:"h-16 px-8"},sticky:{true:"sticky top-0 z-50",false:""}},defaultVariants:{variant:"default",size:"sm",sticky:!1}}),Od=qt("flex items-center gap-2 font-semibold text-foreground",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"sm"}}),fT=qt("truncate text-muted-foreground",{variants:{size:{sm:"text-xs",md:"text-xs",lg:"text-sm"}},defaultVariants:{size:"sm"}}),Wd=qt("flex items-center",{variants:{align:{start:"justify-start",center:"justify-center",end:"justify-end"},gap:{sm:"gap-2",md:"gap-4",lg:"gap-6"},size:{sm:"text-sm",md:"text-sm",lg:"text-base"}},defaultVariants:{align:"center",gap:"md",size:"sm"}}),_d=qt(["relative inline-flex items-center rounded-lg font-medium text-muted-foreground","transition-colors duration-150 ease-out","hover:bg-accent/60 hover:text-foreground"],{variants:{active:{true:"bg-accent text-foreground",false:""},size:{sm:"h-8 px-2.5 text-sm",md:"h-9 px-3 text-sm",lg:"h-10 px-3.5 text-base"}},defaultVariants:{active:!1,size:"sm"}}),Ud=qt(["relative inline-flex items-center rounded-lg font-medium text-muted-foreground","transition-colors duration-150 ease-out","hover:bg-accent/60 hover:text-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1"],{variants:{active:{true:["bg-accent text-foreground"],false:""},size:{sm:"h-8 px-2.5 text-sm",md:"h-9 px-3 text-sm",lg:"h-10 px-3.5 text-base"}},defaultVariants:{active:!1,size:"sm"}}),Kd=qt("flex items-center",{variants:{size:{sm:"gap-1.5",md:"gap-2",lg:"gap-2.5"}},defaultVariants:{size:"sm"}}),$d=qt("w-px rounded-full bg-gradient-to-b from-transparent via-border to-transparent transition-opacity duration-300",{variants:{size:{sm:"mx-1.5 h-5",md:"mx-2 h-6",lg:"mx-2.5 h-7"}},defaultVariants:{size:"sm"}});var Vd={sm:"sm",md:"md",lg:"lg"};var Yd=cT(null),eo=()=>{return pT(Yd)?.size??Vd.sm},Xd=vr(({className:e,variant:t,size:r,sticky:o,...n},i)=>{let s=f(r)??Vd.md;return De(Yd.Provider,{value:{size:s},children:De("nav",{ref:i,className:a(Gd({variant:t,size:s,sticky:o}),e),...n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Xd.displayName="Navbar";var Jd=vr(({className:e,logo:t,tagline:r,size:o,children:n,...i},s)=>{let l=eo(),d=f(o??l)??l;return De("div",{ref:s,className:a(Od({size:d}),e),...i,children:[t&&De("span",{className:"inline-flex shrink-0 items-center",children:t},void 0,!1,void 0,this),De("div",{className:"flex min-w-0 flex-col",children:[De("span",{className:"truncate",children:n},void 0,!1,void 0,this),r&&De("span",{className:a(fT({size:d})),children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Jd.displayName="NavbarBrand";var qd=vr(({className:e,align:t,gap:r,size:o,...n},i)=>{let s=eo(),l=f(o??s)??s;return De("div",{ref:i,className:a(Wd({align:t,gap:r??l,size:l}),e),...n},void 0,!1,void 0,this)});qd.displayName="NavbarContent";var Qd=vr(({className:e,active:t,size:r,...o},n)=>{let i=eo(),s=f(r??i)??i;return De("div",{ref:n,className:a(_d({active:t,size:s}),e),"data-active":t,...o},void 0,!1,void 0,this)});Qd.displayName="NavbarItem";var Zd=vr(({className:e,active:t,href:r="#",size:o,...n},i)=>{let s=eo(),l=f(o??s)??s;return De("a",{ref:i,href:r,className:a(Ud({active:t,size:l}),e),"data-active":t,...n},void 0,!1,void 0,this)});Zd.displayName="NavbarLink";var Ed=vr(({className:e,size:t,...r},o)=>{let n=eo(),i=f(t??n)??n;return De("div",{ref:o,className:a(Kd({size:i}),e),...r},void 0,!1,void 0,this)});Ed.displayName="NavbarActions";var Dd=vr(({className:e,size:t,...r},o)=>{let n=eo(),i=f(t??n)??n;return De("div",{ref:o,className:a($d({size:i}),e),...r},void 0,!1,void 0,this)});Dd.displayName="NavbarDivider";import*as Be from"@radix-ui/react-navigation-menu";import{cva as Tr}from"class-variance-authority";import{createContext as gT,forwardRef as Qt,useContext as jd}from"react";import{jsxDEV as We}from"react/jsx-dev-runtime";var lt={sm:F.sm,md:F.md,lg:F.lg},ni=gT(lt.md),eu=Tr("group/navigation-menu relative z-10 flex max-w-max flex-1 items-center justify-center"),tu=Tr("group relative flex flex-1 list-none items-center justify-center gap-0.5"),ru=Tr(["group/trigger inline-flex w-max items-center justify-center gap-1 rounded-[var(--radius)] border border-transparent bg-transparent font-medium outline-none","transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]","hover:bg-accent hover:text-accent-foreground","focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:ring-offset-1 focus-visible:ring-offset-background","disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-muted/40 disabled:text-muted-foreground/70","data-[state=open]:border-border data-[state=open]:bg-accent data-[state=open]:text-accent-foreground"],{variants:{size:{[lt.sm]:"h-8 px-3 py-1.5 text-xs",[lt.md]:"h-9 px-3 py-2 text-sm",[lt.lg]:"h-11 px-4 py-2.5 text-sm"}},defaultVariants:{size:lt.sm}}),ou=Tr(["left-0 top-0 w-full p-1 md:absolute md:w-auto","gs-nav-content"]),nu=Tr(["flex select-none items-center gap-2 rounded-[var(--radius-md)] leading-none no-underline outline-none","transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]","hover:bg-accent/80 hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground","focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:outline-none"],{variants:{size:{[lt.sm]:"p-2 text-xs [&_svg:not([class*='size-'])]:size-3.5",[lt.md]:"p-2.5 text-sm [&_svg:not([class*='size-'])]:size-4",[lt.lg]:"p-3 text-sm [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{size:lt.sm}}),au=Tr(["gs-nav-viewport origin-[top_center] relative mt-1.5 w-full overflow-hidden rounded-[var(--radius)] border border-border bg-popover text-popover-foreground shadow-[var(--shadow-lg)]","h-[var(--radix-navigation-menu-viewport-height)] md:w-[var(--radix-navigation-menu-viewport-width)]"]),iu=Tr(["gs-nav-indicator top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden"]),bT=()=>We("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-px ml-0.5 size-3 transition-transform duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)] group-data-[state=open]/trigger:rotate-180","aria-hidden":"true",children:We("path",{d:"m6 9 6 6 6-6"},void 0,!1,void 0,this)},void 0,!1,void 0,this),su=Qt(({className:e,children:t,size:r,viewport:o=!0,...n},i)=>{let s=f(r??lt.sm);return We(ni.Provider,{value:s,children:We(Be.Root,{ref:i,"data-viewport":o,className:a(eu(),e),...n,children:[t,o&&We(ai,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});su.displayName="NavigationMenu";var lu=Qt(({className:e,...t},r)=>We(Be.List,{ref:r,className:a(tu(),e),...t},void 0,!1,void 0,this));lu.displayName="NavigationMenuList";var mu=Qt(({className:e,...t},r)=>We(Be.Item,{ref:r,className:a("relative",e),...t},void 0,!1,void 0,this));mu.displayName="NavigationMenuItem";var du=Qt(({className:e,children:t,...r},o)=>{let n=jd(ni);return We(Be.Trigger,{ref:o,className:a(ru({size:n}),e),...r,children:[t,We(bT,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});du.displayName="NavigationMenuTrigger";var uu=Qt(({className:e,...t},r)=>We(Be.Content,{ref:r,className:a(ou(),e),...t},void 0,!1,void 0,this));uu.displayName="NavigationMenuContent";var cu=Qt(({className:e,...t},r)=>{let o=jd(ni);return We(Be.Link,{ref:r,className:a(nu({size:o}),e),...t},void 0,!1,void 0,this)});cu.displayName="NavigationMenuLink";var ai=Qt(({className:e,...t},r)=>We("div",{className:"absolute top-full left-0 isolate z-50 flex justify-center",children:We(Be.Viewport,{ref:r,className:a(au(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));ai.displayName="NavigationMenuViewport";var pu=Qt(({className:e,...t},r)=>We(Be.Indicator,{ref:r,className:a(iu(),e),...t,children:We("div",{className:"relative top-[60%] size-2 rotate-45 rounded-tl-sm bg-border shadow-sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this));pu.displayName="NavigationMenuIndicator";import{cva as to}from"class-variance-authority";import{Fragment as yT,forwardRef as vT,useCallback as hr,useEffect as fu,useMemo as gu,useRef as TT,useState as bu}from"react";import{jsxDEV as Pr}from"react/jsx-dev-runtime";var zr={sm:"sm",md:"md",lg:"lg"},Io={default:"default",error:"error",success:"success"},Bo={single:"single",first:"first",middle:"middle",last:"last"},yu=to("relative inline-flex items-center",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2"}},defaultVariants:{size:zr.sm}}),vu=to("relative inline-flex items-center",{variants:{size:{sm:"gap-0",md:"gap-0",lg:"gap-0"},status:{default:"",error:"text-destructive",success:"text-success"}},defaultVariants:{size:zr.sm,status:Io.default}}),Tu=to(["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"},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:zr.sm,filled:!1,focused:!1,status:Io.default,disabled:!1,position:Bo.single}}),hu=to(["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"},status:{default:"caret-primary",error:"caret-destructive",success:"caret-success"},filled:{true:"text-foreground",false:"text-muted-foreground"}},defaultVariants:{size:zr.sm,status:Io.default,filled:!1}}),Pu=to(["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"},focused:{true:"opacity-0 scale-95",false:"opacity-100 scale-100"}},defaultVariants:{size:zr.sm,focused:!1}}),zu=to("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"}},defaultVariants:{size:zr.sm}});function hT(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function ii(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var Mu=vT(({className:e,length:t=6,value:r,onChange:o,onComplete:n,size:i=zr.sm,status:s=Io.default,disabled:l=!1,autoFocus:d=!1,mask:m=!1,groupSize:c,separator:u,separatorChar:g="—",placeholder:v="•",inputMode:y="numeric",pattern:T="[0-9]*",...M},z)=>{let p=f(i),h=hT(t),L=TT([]),[H,S]=bu(null),[B,R]=bu(()=>ii(r,h));fu(()=>{if(r!==void 0){R(ii(r,h));return}R((b)=>ii(b.join(""),h))},[r,h]),fu(()=>{if(d)L.current[0]?.focus()},[d]);let Y=gu(()=>{if(typeof c==="number"&&Number.isFinite(c)){let b=Math.floor(c);if(b<=0)return h;return Math.min(h,Math.max(1,b))}if(typeof u==="number"&&Number.isFinite(u)){let b=Math.floor(u);if(b<=0)return h;return Math.min(h,Math.max(1,b))}if(u)return Math.max(1,Math.floor(h/2));return h},[c,h,u]),K=gu(()=>{let b=[];for(let P=0;P<h;P+=Y){let C=Math.min(P+Y,h),oe=[];for(let _=P;_<C;_+=1)oe.push(_);b.push(oe)}return b},[Y,h]),X=hr((b)=>{let P=L.current[b];if(!P)return;P.focus(),P.select()},[]),j=hr((b)=>{R(b);let P=b.join("");if(o?.(P),b.every((C)=>C!=="")&&P.length===h)n?.(P)},[o,n,h]),ie=hr((b,P)=>{if(l)return;let oe=(y==="numeric"?P.replace(/\D/g,""):P).slice(-1),_=[...B];if(_[b]=oe,j(_),oe&&b<h-1)X(b+1)},[B,l,j,X,y,h]),V=hr((b,P)=>{if(l)return;if(P.key==="Backspace"){if(P.preventDefault(),B[b]){let C=[...B];C[b]="",j(C);return}if(b>0){let C=[...B];C[b-1]="",j(C),X(b-1)}return}if(P.key==="Delete"){if(P.preventDefault(),B[b]){let C=[...B];C[b]="",j(C)}return}if(P.key==="ArrowLeft"){if(P.preventDefault(),b>0)X(b-1);return}if(P.key==="ArrowRight"){if(P.preventDefault(),b<h-1)X(b+1);return}if(P.key==="Home"){P.preventDefault(),X(0);return}if(P.key==="End")P.preventDefault(),X(h-1)},[B,l,j,X,h]),re=hr((b,P)=>{if(P.preventDefault(),l)return;let C=P.clipboardData.getData("text"),_=(y==="numeric"?C.replace(/\D/g,""):C.replace(/\s/g,"")).split("");if(_.length===0)return;let Ce=[...B];for(let ae=0;ae<_.length;ae+=1){let Lt=b+ae;if(Lt>=h)break;Ce[Lt]=_[ae]??""}j(Ce);let O=Math.min(h-1,b+_.length-1);if(O<h-1){X(O+1);return}L.current[O]?.blur()},[B,l,j,X,y,h]),k=hr((b,P)=>{S(b),P.target.select()},[]),Z=hr(()=>{S(null)},[]),x=u!==void 0,W=g.length>0&&u!==!1&&(x||K.length>1);return Pr("div",{ref:z,className:a(yu({size:p}),e),role:"group","aria-label":"One-time password input",...M,children:K.map((b,P)=>Pr(yT,{children:[Pr("div",{"data-gs-otp-group":"true",className:a(vu({size:p,status:s})),children:b.map((C,oe)=>{let _=B[C]??"",Ce=H===C,O=Bo.middle;if(b.length===1)O=Bo.single;else if(oe===0)O=Bo.first;else if(oe===b.length-1)O=Bo.last;return Pr("div",{"data-gs-otp-slot":"true","data-disabled":l,className:a(Tu({size:p,filled:Boolean(_),focused:Ce,status:s,disabled:l,position:O})),children:[Pr("input",{ref:(ae)=>{L.current[C]=ae},type:m?"password":"text",inputMode:y,pattern:T,maxLength:1,value:_,placeholder:"",disabled:l,"aria-invalid":s===Io.error,"aria-label":`Digit ${C+1} of ${h}`,autoComplete:"one-time-code",onChange:(ae)=>ie(C,ae.target.value),onKeyDown:(ae)=>V(C,ae),onPaste:(ae)=>re(C,ae),onFocus:(ae)=>k(C,ae),onBlur:Z,className:a(hu({size:p,status:s,filled:Boolean(_)}))},void 0,!1,void 0,this),!_&&Pr("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:a(Pu({size:p,focused:Ce})),children:v},void 0,!1,void 0,this)]},`slot-${C}`,!0,void 0,this)})},void 0,!1,void 0,this),W&&P<K.length-1&&Pr("span",{"data-gs-otp-separator":"true",className:a(zu({size:p})),children:g},void 0,!1,void 0,this)]},`group-${b[0]}-${b[b.length-1]}`,!0,void 0,this))},void 0,!1,void 0,this)});Mu.displayName="OTPInput";import{createContext as ST,createElement as Bu,useCallback as mt,useContext as AT,useEffect as BT,useMemo as IT,useRef as Iu,useState as FT}from"react";import*as fe from"@radix-ui/react-dialog";import{cva as Nu}from"class-variance-authority";import{X as PT}from"lucide-react";import{createContext as zT,forwardRef as Hn,useCallback as MT,useContext as NT,useEffect as LT,useState as Lu}from"react";import{jsxDEV as Ve,Fragment as kT}from"react/jsx-dev-runtime";var Ye={top:ro.top,right:ro.right,bottom:ro.bottom,left:ro.left},he={sm:F.sm,md:F.md,lg:F.lg,full:"full"},xT=160,RT={[Ye.top]:"gs-sheet-content gs-sheet-content-top",[Ye.right]:"gs-sheet-content gs-sheet-content-right",[Ye.bottom]:"gs-sheet-content gs-sheet-content-bottom",[Ye.left]:"gs-sheet-content gs-sheet-content-left"},CT={[Ye.right]:{[he.sm]:"sm:max-w-sm",[he.md]:"sm:max-w-md",[he.lg]:"sm:max-w-lg",[he.full]:"sm:max-w-full"},[Ye.left]:{[he.sm]:"sm:max-w-sm",[he.md]:"sm:max-w-md",[he.lg]:"sm:max-w-lg",[he.full]:"sm:max-w-full"},[Ye.top]:{[he.sm]:"sm:max-h-[30vh]",[he.md]:"sm:max-h-[50vh]",[he.lg]:"sm:max-h-[70vh]",[he.full]:"sm:max-h-full"},[Ye.bottom]:{[he.sm]:"sm:max-h-[30vh]",[he.md]:"sm:max-h-[50vh]",[he.lg]:"sm:max-h-[70vh]",[he.full]:"sm:max-h-full"}},xu=Nu(a("gs-sheet-overlay",Wt)),Ru=Nu("fixed z-50 flex flex-col gap-4 border border-border bg-card p-6 shadow-[var(--shadow-xl)]",{variants:{side:{[Ye.top]:"inset-x-0 top-0 border-b",[Ye.bottom]:"inset-x-0 bottom-0 border-t",[Ye.left]:"inset-y-0 left-0 h-full w-3/4 border-r",[Ye.right]:"inset-y-0 right-0 h-full w-3/4 border-l"}},defaultVariants:{side:Ye.right}}),Cu=zT(!1),si=({children:e,open:t,defaultOpen:r=!1,onOpenChange:o,...n})=>{let[i,s]=Lu(r),l=t!==void 0,d=l?t:i,m=MT((c)=>{if(!l)s(c);o?.(c)},[l,o]);return Ve(Cu.Provider,{value:d,children:Ve(fe.Root,{open:d,onOpenChange:m,...n,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},wT=fe.Trigger,HT=fe.Close,wu=fe.Portal,li=Hn(({className:e,...t},r)=>Ve(fe.Overlay,{className:a(xu(),e),...t,ref:r},void 0,!1,void 0,this));li.displayName=fe.Overlay.displayName;var kn=Hn(({side:e=Ye.right,size:t=he.sm,showClose:r=!0,showOverlay:o=!0,portal:n=le,portalContainer:i,forceMount:s=!1,className:l,children:d,"aria-describedby":m,...c},u)=>{let g=NT(Cu),[v,y]=Lu(s||g),T=f(t)??he.md,M=be(),z=RT[e],p=CT[e][T];if(LT(()=>{if(s||g){y(!0);return}let H=setTimeout(()=>{y(!1)},M?0:xT);return()=>{clearTimeout(H)}},[s,g,M]),!(s||g||v))return null;let L=Ve(kT,{children:[o?Ve(li,{forceMount:!0},void 0,!1,void 0,this):null,Ve(fe.Content,{ref:u,forceMount:!0,"aria-describedby":m,className:a(Ru({side:e}),z,p,l),...c,children:[d,r&&Ve(fe.Close,{className:nn,children:[Ve(PT,{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);if(!n)return L;return Ve(wu,{forceMount:!0,container:i??void 0,children:L},void 0,!1,void 0,this)});kn.displayName=fe.Content.displayName;var Hu=({className:e,...t})=>Ve("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Hu.displayName="SheetHeader";var ku=({className:e,...t})=>Ve("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);ku.displayName="SheetFooter";var Su=Hn(({className:e,...t},r)=>Ve(fe.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));Su.displayName=fe.Title.displayName;var Au=Hn(({className:e,...t},r)=>Ve(fe.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Au.displayName=fe.Description.displayName;import{jsxDEV as oo}from"react/jsx-dev-runtime";var Fu=ST(null),Gu=250;function Ou({children:e,removeDelay:t=Gu}){let r=be(),[o,n]=FT([]),i=Iu(0),s=Iu(new Map),l=mt((p)=>{let h=s.current.get(p);if(h===void 0)return;window.clearTimeout(h),s.current.delete(p)},[]),d=mt((p)=>{l(p),n((h)=>h.filter((L)=>L.id!==p))},[l]),m=mt((p)=>{l(p);let h=r?0:t;if(h<=0){d(p);return}let L=window.setTimeout(()=>{d(p)},h);s.current.set(p,L)},[l,r,t,d]),c=mt((p)=>{n((h)=>h.map((L)=>L.id===p?{...L,open:!1}:L)),m(p)},[m]),u=mt(()=>{n((p)=>{for(let h of p)m(h.id);return p.map((h)=>({...h,open:!1}))})},[m]),g=mt(()=>{return i.current+=1,`overlay-${i.current}`},[]),v=mt((p,h)=>{let L=g();l(L);let H={id:L,kind:"dialog",render:p,open:!0,options:h};return n((S)=>[...S,H]),{id:L,close:()=>c(L)}},[l,c,g]),y=mt((p,h)=>{let L=g();l(L);let H={id:L,kind:"sheet",render:p,open:!0,options:h};return n((S)=>[...S,H]),{id:L,close:()=>c(L)}},[l,c,g]),T=mt((p,h,L)=>{return v((H)=>Bu(p,{...h,close:H}),L)},[v]),M=mt((p,h,L)=>{return y((H)=>Bu(p,{...h,close:H}),L)},[y]);BT(()=>{return()=>{for(let p of s.current.values())window.clearTimeout(p);s.current.clear()}},[]);let z=IT(()=>({dialog:T,sheet:M,close:c,closeAll:u}),[u,c,T,M]);return oo(Fu.Provider,{value:z,children:[e,o.map((p)=>oo(GT,{entry:p,onClose:c},p.id,!1,void 0,this))]},void 0,!0,void 0,this)}Ou.displayName="OverlayProvider";function GT({entry:e,onClose:t}){let r=mt(()=>t(e.id),[e.id,t]);if(e.kind==="dialog")return oo(Ro,{open:e.open,onOpenChange:(o)=>!o&&r(),children:oo(zn,{...e.options,children:e.render(r)},void 0,!1,void 0,this)},void 0,!1,void 0,this);return oo(si,{open:e.open,onOpenChange:(o)=>!o&&r(),children:oo(kn,{...e.options,children:e.render(r)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function OT(){let e=AT(Fu);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as Fo}from"class-variance-authority";import{ChevronLeft as WT,ChevronRight as _T,MoreHorizontal as UT}from"lucide-react";import{createContext as KT,forwardRef as Go,useContext as Sn}from"react";import{jsxDEV as Xe}from"react/jsx-dev-runtime";var je={sm:"sm",md:"md",lg:"lg"},Oo=KT(je.md),Wu=Fo("mx-auto flex w-full justify-center"),_u=Fo("flex flex-row items-center gap-1"),Uu=Fo(""),An=Fo("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] 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:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70 hover:bg-accent hover:text-accent-foreground",{variants:{isActive:{true:"border border-border bg-background shadow-[var(--shadow-sm)]",false:""},size:{[je.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[je.md]:"h-9 w-9 text-sm [&_svg]:size-4",[je.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:je.md}}),Ku=Fo("flex items-center justify-center",{variants:{size:{[je.sm]:"h-7 w-7 [&_svg]:size-3.5",[je.md]:"h-9 w-9 [&_svg]:size-4",[je.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:je.md}}),$u=({className:e,size:t=je.sm,...r})=>{let o=f(t)??je.md;return Xe(Oo.Provider,{value:o,children:Xe("nav",{"aria-label":"pagination",className:a(Wu(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};$u.displayName="Pagination";var Vu=Go(({className:e,...t},r)=>Xe("ul",{ref:r,className:a(_u(),e),...t},void 0,!1,void 0,this));Vu.displayName="PaginationContent";var Yu=Go(({className:e,...t},r)=>Xe("li",{ref:r,className:a(Uu(),e),...t},void 0,!1,void 0,this));Yu.displayName="PaginationItem";var Xu=Go(({className:e,isActive:t,...r},o)=>{let n=Sn(Oo);return Xe("button",{ref:o,type:"button","aria-current":t?"page":void 0,className:a(An({isActive:t,size:n}),e),...r},void 0,!1,void 0,this)});Xu.displayName="PaginationLink";var Ju=Go(({className:e,...t},r)=>{let o=Sn(Oo);return Xe("button",{ref:r,type:"button","aria-label":"Go to previous page",className:a(An({size:o}),"w-auto gap-1 pr-3 pl-2.5",e),...t,children:[Xe(WT,{},void 0,!1,void 0,this),Xe("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Ju.displayName="PaginationPrevious";var qu=Go(({className:e,...t},r)=>{let o=Sn(Oo);return Xe("button",{ref:r,type:"button","aria-label":"Go to next page",className:a(An({size:o}),"w-auto gap-1 pr-2.5 pl-3",e),...t,children:[Xe("span",{children:"Next"},void 0,!1,void 0,this),Xe(_T,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});qu.displayName="PaginationNext";var Qu=({className:e,...t})=>{let r=Sn(Oo);return Xe("span",{"aria-hidden":!0,className:a(Ku({size:r}),e),...t,children:[Xe(UT,{},void 0,!1,void 0,this),Xe("span",{className:"sr-only",children:"More pages"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Qu.displayName="PaginationEllipsis";import*as _o from"@radix-ui/react-progress";import{cva as Zu}from"class-variance-authority";import{forwardRef as $T,useEffect as VT,useRef as YT}from"react";import{jsxDEV as In}from"react/jsx-dev-runtime";var Bn={sm:"sm",md:"md",lg:"lg"},Wo={default:"default",success:"success",warning:"warning",error:"error"},Eu=Zu("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[Bn.sm]:"h-2",[Bn.md]:"h-2.5",[Bn.lg]:"h-3"}},defaultVariants:{size:Bn.sm}}),Du=Zu("h-full w-full flex-1 rounded-full transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",{variants:{variant:{[Wo.default]:"bg-primary",[Wo.success]:"bg-success",[Wo.warning]:"bg-warning",[Wo.error]:"bg-destructive"}},defaultVariants:{variant:Wo.default}});function XT(e){if(typeof e!=="number"||Number.isNaN(e))return 0;return Math.max(0,Math.min(100,e))}var ju=$T(({className:e,value:t,size:r,variant:o,showValue:n,...i},s)=>{let l=f(r),d=YT(null),m=XT(t);return VT(()=>{let c=d.current;if(!c)return;c.style.setProperty("--gs-progress-value",`${m}%`)},[m]),In("div",{className:"flex w-full items-center gap-2",children:[In(_o.Root,{ref:s,className:a(Eu({size:l}),e),...i,children:In(_o.Indicator,{ref:d,className:a(Du({variant:o}),"[transform:translateX(calc(-100%+var(--gs-progress-value,0%)))]")},void 0,!1,void 0,this)},void 0,!1,void 0,this),n&&In("span",{className:"font-medium text-muted-foreground text-sm tabular-nums",children:[m,"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});ju.displayName=_o.Root.displayName;import*as no from"@radix-ui/react-radio-group";import{cva as ec}from"class-variance-authority";import{forwardRef as tc}from"react";import{jsxDEV as Fn}from"react/jsx-dev-runtime";var At={sm:"sm",md:"md",lg:"lg"},Mr={default:"default",error:"error",success:"success"},rc=ec("grid gap-2"),oc=ec("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] 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:{[At.sm]:"h-4 w-4",[At.md]:"h-5 w-5",[At.lg]:"h-6 w-6"},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:At.md,status:Mr.default}}),JT={[At.sm]:"h-2 w-2",[At.md]:"h-2.5 w-2.5",[At.lg]:"h-3 w-3"},nc=tc(({className:e,...t},r)=>Fn(no.Root,{ref:r,className:a(rc(),e),...t},void 0,!1,void 0,this));nc.displayName="RadioGroup";var ac=tc(({className:e,size:t=At.sm,status:r=Mr.default,error:o=!1,...n},i)=>{let s=f(t),l=o?Mr.error:r;return Fn(no.Item,{ref:i,className:a(oc({size:s,status:l}),e),...n,children:Fn(no.Indicator,{className:"flex items-center justify-center",children:Fn("span",{className:a("block rounded-full bg-current transition-transform duration-150",JT[s])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ac.displayName="RadioGroupItem";import{cva as On}from"class-variance-authority";import{forwardRef as di,useCallback as Uo,useEffect as mc,useRef as dc,useState as ic}from"react";import{jsxDEV as Gn}from"react/jsx-dev-runtime";var qT=10,QT=90,mi=50,uc=On("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),cc=On("relative basis-[var(--gs-panel-basis,50%)] overflow-hidden grow-0 shrink-0"),pc=On("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}}),fc=On("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"}});function gc(e){return Math.max(qT,Math.min(QT,e))}function bc(e){return e.dataset.direction==="vertical"?"vertical":"horizontal"}function ZT(e,t){let r=Array.from(e.children),o=r.indexOf(t),n;for(let s=o-1;s>=0;s-=1){let l=r[s];if(l instanceof HTMLElement&&l.matches("[data-panel]")){n=l;break}}let i;for(let s=o+1;s<r.length;s+=1){let l=r[s];if(l instanceof HTMLElement&&l.matches("[data-panel]")){i=l;break}}return{prevPanel:n,nextPanel:i}}function sc(e){if(!e)return null;let t=e.closest("[data-panel-group]");if(!(t instanceof HTMLElement))return null;let{prevPanel:r,nextPanel:o}=ZT(t,e);if(!(r&&o))return null;return{group:t,direction:bc(t),prevPanel:r,nextPanel:o}}function ET(e){if("touches"in e){let t=e.touches[0];if(!t)return null;return{x:t.clientX,y:t.clientY}}return{x:e.clientX,y:e.clientY}}function lc(e,t,r){let o=gc(r);e.style.setProperty("--gs-panel-basis",`${o}%`),t.style.setProperty("--gs-panel-basis",`${100-o}%`)}function DT(e){let t=e.style.getPropertyValue("--gs-panel-basis").trim();if(t.endsWith("%"))return Number.parseFloat(t)||mi;let r=e.dataset.defaultSize;if(r)return Number.parseFloat(r)||mi;return mi}function jT(e,t,r){if(t==="horizontal"){if(e==="ArrowLeft")return-r;if(e==="ArrowRight")return r;return 0}if(e==="ArrowUp")return-r;if(e==="ArrowDown")return r;return 0}var yc=di(({className:e,direction:t="horizontal",children:r,...o},n)=>Gn("div",{ref:n,"data-panel-group":"","data-direction":t,className:a(uc({direction:t}),e),...o,children:r},void 0,!1,void 0,this));yc.displayName="ResizablePanelGroup";var vc=di(({className:e,defaultSize:t=50,children:r,...o},n)=>{let i=dc(null),s=gc(t);mc(()=>{let d=i.current;if(!d)return;d.style.setProperty("--gs-panel-basis",`${s}%`)},[s]);let l=Uo((d)=>{if(i.current=d,typeof n==="function")n(d);else if(n)n.current=d},[n]);return Gn("div",{ref:l,"data-panel":"","data-default-size":s,className:a(cc(),e),...o,children:r},void 0,!1,void 0,this)});vc.displayName="ResizablePanel";var Tc=di(({className:e,withHandle:t=!1,disabled:r=!1,...o},n)=>{let[i,s]=ic(!1),[l,d]=ic("horizontal"),m=dc(null);mc(()=>{let y=m.current;if(!y)return;let T=y.closest("[data-panel-group]");if(!(T instanceof HTMLElement))return;let M=()=>d(bc(T));M();let z=new MutationObserver(M);return z.observe(T,{attributes:!0,attributeFilter:["data-direction"]}),()=>z.disconnect()},[]);let c=Uo(()=>{if(r)return;s(!0);let y=(M)=>{let z=ET(M);if(!z)return;let p=sc(m.current);if(!p)return;let h=p.group.getBoundingClientRect(),L=p.direction==="horizontal"?h.width:h.height;if(L<=0)return;let S=(p.direction==="horizontal"?z.x-h.left:z.y-h.top)/L*100;lc(p.prevPanel,p.nextPanel,S)},T=()=>{s(!1),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",T),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",T)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",T),document.addEventListener("touchmove",y),document.addEventListener("touchend",T)},[r]),u=Uo((y)=>{y.preventDefault(),c()},[c]),g=Uo((y)=>{if(y.touches.length===0)return;c()},[c]),v=Uo((y)=>{if(r)return;let T=sc(m.current??y.currentTarget);if(!T)return;let M=y.shiftKey?10:1,z=jT(y.key,T.direction,M);if(z===0)return;y.preventDefault();let p=DT(T.prevPanel);lc(T.prevPanel,T.nextPanel,p+z)},[r]);return Gn("div",{ref:(y)=>{if(m.current=y,typeof n==="function")n(y);else if(n)n.current=y},role:"separator","aria-orientation":l,"aria-valuemin":10,"aria-valuemax":90,"aria-valuenow":50,tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":i,onMouseDown:u,onTouchStart:g,onKeyDown:v,className:a(pc({direction:l,withHandle:t}),i&&"bg-primary",r&&"pointer-events-none cursor-not-allowed bg-muted/40 text-muted-foreground/70",e),...o,children:t&&Gn("div",{className:a(fc({direction:l}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Tc.displayName="ResizableHandle";import*as vt from"@radix-ui/react-scroll-area";import{cva as ui}from"class-variance-authority";import{forwardRef as hc}from"react";import{jsxDEV as ao}from"react/jsx-dev-runtime";var Pc=ui("relative flex flex-col overflow-hidden"),zc=ui("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"}}),Mc=ui("relative flex-1 rounded-full bg-border"),Nc=hc(({className:e,children:t,...r},o)=>ao(vt.Root,{ref:o,className:a(Pc(),e),...r,children:[ao(vt.Viewport,{className:"min-h-0 w-full flex-1 rounded-[inherit]",children:t},void 0,!1,void 0,this),ao(ci,{},void 0,!1,void 0,this),ao(vt.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));Nc.displayName="ScrollArea";var ci=hc(({className:e,orientation:t="vertical",...r},o)=>ao(vt.ScrollAreaScrollbar,{ref:o,orientation:t,className:a(zc({orientation:t}),e),...r,children:ao(vt.ScrollAreaThumb,{className:a(Mc())},void 0,!1,void 0,this)},void 0,!1,void 0,this));ci.displayName="ScrollBar";import{cva as fi}from"class-variance-authority";import{createContext as nh,forwardRef as gi,useCallback as ah,useContext as Rc,useRef as xc,useState as ih}from"react";import{useLayoutEffect as Lc,useRef as io}from"react";var eh={x:0,y:0,width:0,height:0};function th(e,t){let r=e.querySelector(t);if(!r)return null;return{x:r.offsetLeft,y:r.offsetTop,width:r.offsetWidth,height:r.offsetHeight}}function rh(e,t){let r=e.getBoundingClientRect(),o=t.getBoundingClientRect();return{x:r.left-o.left-t.clientLeft,y:r.top-o.top-t.clientTop,width:r.width,height:r.height}}function pi(e,t){let r=e.style;r.transform=`translate3d(${t.x}px,${t.y}px,0)`,r.width=`${t.width}px`,r.height=`${t.height}px`}function oh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Wn(e,t,r){let o=be(),n=io(!1),i=io(eh),s=io(r.activeSelector);s.current=r.activeSelector;let l=io(r.observeAttributes);l.current=r.observeAttributes;let d=io(o);d.current=o;let m=io(null);m.current=(c,u)=>{let g=th(c,s.current);if(!g){u.style.opacity="0";return}if(oh(i.current,g)&&n.current)return;if(!n.current||d.current){u.style.transition="none",pi(u,g),u.style.opacity="1",u.offsetHeight,u.style.transition="",n.current=!0,i.current=g;return}let v=rh(u,c);u.style.transition="none",pi(u,v),u.style.opacity="1",u.offsetHeight,u.style.transition="",pi(u,g),i.current=g},Lc(()=>{r.activeKey;let c=e.current,u=t.current;if(!(c&&u))return;m.current?.(c,u)},[r.activeKey,o,e.current,t.current]),Lc(()=>{let c=e.current,u=t.current;if(!(c&&u))return;let g=0;function v(){if(!(c&&u))return;m.current?.(c,u)}function y(){cancelAnimationFrame(g),g=requestAnimationFrame(v)}let T=typeof ResizeObserver<"u"?new ResizeObserver(y):null;T?.observe(c);let M=l.current,z=null;if(M&&M.length>0)z=typeof MutationObserver<"u"?new MutationObserver(y):null,z?.observe(c,{subtree:!0,attributes:!0,attributeFilter:M});return()=>{cancelAnimationFrame(g),T?.disconnect(),z?.disconnect()}},[e.current,t.current])}var _n="pointer-events-none absolute top-0 left-0 z-0 rounded-[calc(var(--radius)-2px)] border border-border bg-accent shadow-[var(--shadow-xs)] transition-[transform,width,height,opacity] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-emphasized)]";import{jsxDEV as Nr}from"react/jsx-dev-runtime";var Pe={sm:"sm",md:"md",lg:"lg"},Cc=fi("relative inline-flex items-center rounded-[var(--radius)] border border-border bg-secondary p-1 text-muted-foreground",{variants:{size:{[Pe.sm]:"h-8 gap-0.5",[Pe.md]:"h-10 gap-0.5",[Pe.lg]:"h-11 gap-1"}},defaultVariants:{size:Pe.sm}}),wc=fi(["relative z-10 inline-flex items-center justify-center rounded-[calc(var(--radius)-2px)]","cursor-pointer select-none outline-none","transition-[color,background-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40","leading-none"],{variants:{size:{[Pe.sm]:"size-6",[Pe.md]:"size-8",[Pe.lg]:"size-9"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:Pe.sm,active:!1}}),Hc=fi(["relative z-10 inline-flex items-center justify-center gap-1.5 rounded-[calc(var(--radius)-2px)]","cursor-pointer select-none whitespace-nowrap font-medium leading-none outline-none","transition-[color,background-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40"],{variants:{size:{[Pe.sm]:"h-6 px-2.5 text-xs",[Pe.md]:"h-8 px-3 text-sm",[Pe.lg]:"h-9 px-4 text-sm"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:Pe.sm,active:!1}}),kc={[Pe.sm]:"size-3",[Pe.md]:"size-3.5",[Pe.lg]:"size-4"},sh=(e)=>{return},bi=nh({activeValue:"",onSelect:sh,size:Pe.sm,disabled:!1}),Sc=gi(({className:e,value:t,defaultValue:r,onValueChange:o,size:n,disabled:i=!1,children:s,...l},d)=>{let m=f(n),[c,u]=ih(r??""),g=xc(null),v=kt(d,g),y=xc(null),T=t!==void 0?t:c,M=ah((z)=>{if(i)return;if(t===void 0)u(z);o?.(z)},[i,o,t]);return Wn(g,y,{activeSelector:"button[data-state='active']",activeKey:T}),Nr(bi.Provider,{value:{activeValue:T,onSelect:M,size:m,disabled:i},children:Nr("div",{ref:v,role:"radiogroup",className:a(Cc({size:m}),i&&"pointer-events-none cursor-not-allowed border-transparent bg-muted/40 text-muted-foreground/70",e),...l,children:[Nr("span",{ref:y,"aria-hidden":!0,"data-slot":"indicator",className:_n,style:{opacity:0}},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Sc.displayName="SegmentedControl";var Ac=gi(({className:e,value:t,icon:r,disabled:o=!1,...n},i)=>{let{activeValue:s,onSelect:l,size:d,disabled:m}=Rc(bi),c=s===t,u=o||m;return Nr("button",{ref:i,type:"button",role:"radio","aria-checked":c,"aria-disabled":u||void 0,"data-state":c?"active":"inactive","data-value":t,disabled:u,onClick:()=>l(t),className:a(wc({size:d,active:c}),e),...n,children:Nr("span",{className:a(kc[d??Pe.sm],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ac.displayName="SegmentedControlItem";var Bc=gi(({className:e,value:t,icon:r,disabled:o=!1,children:n,...i},s)=>{let{activeValue:l,onSelect:d,size:m,disabled:c}=Rc(bi),u=l===t,g=o||c;return Nr("button",{ref:s,type:"button",role:"radio","aria-checked":u,"aria-disabled":g||void 0,"data-state":u?"active":"inactive","data-value":t,disabled:g,onClick:()=>d(t),className:a(Hc({size:m,active:u}),e),...i,children:[r&&Nr("span",{className:a(kc[m??Pe.sm],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this),n]},void 0,!0,void 0,this)});Bc.displayName="SegmentedControlLabelItem";var lh=Pe;import*as Zt from"@radix-ui/react-popover";import{cva as Fc}from"class-variance-authority";import{Check as mh,ChevronDown as dh,X as uh}from"lucide-react";import{Children as ch,createContext as ph,forwardRef as Yo,isValidElement as vi,useCallback as $o,useContext as Gc,useEffect as Un,useId as Ic,useMemo as fh,useRef as Oc,useState as Ko}from"react";import{jsxDEV as de,Fragment as zh}from"react/jsx-dev-runtime";var ge={sm:"sm",md:"md",lg:"lg"},so={default:"default",error:"error",success:"success"},Vo={trigger:"trigger",auto:"auto"},gh={start:"start",center:"center",end:"end"},Wc=Fc(["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:{[ge.sm]:"h-8 px-2.5 text-xs",[ge.md]:"h-10 px-3.5",[ge.lg]:"h-11 px-4.5 text-sm"},status:{[so.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[so.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[so.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:ge.md,status:so.default}}),_c=Fc(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[Vo.trigger]:"w-[var(--radix-popover-trigger-width)]",[Vo.auto]:"w-max min-w-0"},size:{[ge.sm]:"text-xs",[ge.md]:"text-sm",[ge.lg]:"text-sm"}},defaultVariants:{widthMode:Vo.auto,size:ge.md}}),bh={[ge.sm]:"min-h-7.5 py-1.5 px-2.5 pr-3 text-xs",[ge.md]:"min-h-9 py-2 px-3 pr-4.5 text-sm",[ge.lg]:"min-h-10 py-2.5 px-3.5 pr-5.5 text-sm"},yh={[ge.sm]:"px-2 py-1 text-xs",[ge.md]:"px-2 py-1.5 text-sm",[ge.lg]:"px-2.5 py-1.5 text-sm"},Kn={[ge.sm]:"size-3.5",[ge.md]:"size-4",[ge.lg]:"size-4"};function vh(e){if(!vi(e))return!1;let t=e.type;if(typeof t==="string"||typeof t!=="function"&&typeof t!=="object"||t===null)return!1;return Reflect.get(t,"displayName")==="SelectItem"}function yi(e,t){if(e===null||e===void 0||typeof e==="boolean")return;if(Array.isArray(e)){for(let o of e)yi(o,t);return}if(!vi(e))return;if(vh(e)){let o=typeof e.props.value==="string"?e.props.value:"";if(o.length>0){let n=typeof e.props.label==="string"?e.props.label:$n(e.props.children).trim();if(n.length>0)t.set(o,n)}}let r=e.props.children;if(r!==void 0)yi(r,t)}function $n(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)=>$n(t)).join("");if(vi(e))return $n(e.props.children);return""}var Ti=ph(null);function Vn(){let e=Gc(Ti);if(!e)throw Error("Select components must be used within Select");return e}function hi(e){let t=Gc(Ti);if(e)return e;return t?.triggerSize??ge.md}var Th=({children:e,value:t,defaultValue:r="",onValueChange:o,open:n,defaultOpen:i=!1,onOpenChange:s,disabled:l=!1})=>{let[d,m]=Ko(ge.md),[c,u]=Ko(!1),[g,v]=Ko(r),[y,T]=Ko(i),[,M]=Ko(0),z=Oc(new Map),p=fh(()=>{let V=new Map;return yi(e,V),V},[e]),h=t!==void 0,L=n!==void 0,H=h?t:g,S=L?n:y,B=$o((V)=>{if(!h)v(V);if(o?.(V),!L)T(!1);s?.(!1)},[h,L,o,s]),R=$o((V)=>{if(l)return;if(!L)T(V);s?.(V)},[l,L,s]),Y=$o((V,re)=>{if(z.current.get(V)!==re)z.current.set(V,re),M((Z)=>Z+1)},[]),K=$o((V)=>{return z.current.get(V)??p.get(V)},[p]),X=Ic(),j=Ic(),ie={value:H,onValueChange:B,open:S,onOpenChange:R,triggerSize:d,setTriggerSize:m,triggerFullWidth:c,setTriggerFullWidth:u,disabled:l,triggerId:X,contentId:j,registerItem:Y,getLabel:K};return de(Ti.Provider,{value:ie,children:de(Zt.Root,{open:S,onOpenChange:R,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},hh=({children:e,className:t})=>de("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),Ph=({placeholder:e})=>{let{value:t,getLabel:r}=Vn();if(!t)return e?de("span",{className:"text-muted-foreground",children:e},void 0,!1,void 0,this):null;let o=r(t);return de(zh,{children:o??t},void 0,!1,void 0,this)},Uc=Yo(({className:e,children:t,size:r=ge.sm,status:o=so.default,fullWidth:n=!1,clearable:i=!1,leadingIcon:s,indicatorIcon:l,renderValue:d,placeholder:m,onKeyDown:c,...u},g)=>{let v=Vn(),y=f(r)??r,T=v.setTriggerSize,M=v.setTriggerFullWidth;Un(()=>{T(y)},[y,T]),Un(()=>{M(n)},[n,M]);let z=v.value.length>0,p=i&&z&&!v.disabled,h=()=>{v.onValueChange("")},L;if(d)L=z?d(v.value):m?de("span",{className:"text-muted-foreground",children:m},void 0,!1,void 0,this):null;else L=t;let H=(S)=>{if(c?.(S),S.defaultPrevented)return;if(S.key==="ArrowDown"||S.key==="ArrowUp"||S.key==="Enter"||S.key===" "){if(!v.open)S.preventDefault(),v.onOpenChange(!0)}};return de(Zt.Trigger,{asChild:!0,children:de("button",{ref:g,type:"button",role:"combobox","aria-expanded":v.open,"aria-haspopup":"listbox","aria-controls":v.contentId,id:v.triggerId,disabled:v.disabled,"data-state":v.open?"open":"closed","data-placeholder":z?void 0:"",className:a(Wc({size:y,status:o}),n?"w-full":"w-auto",e),onKeyDown:H,...u,children:[s&&de("i",{className:"inline-flex shrink-0 items-center text-muted-foreground not-italic",children:s},void 0,!1,void 0,this),de("span",{"data-slot":"select-value",className:"min-w-0 flex-1 text-left",children:L},void 0,!1,void 0,this),de("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[p&&de("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onPointerDown:(S)=>{S.stopPropagation(),S.preventDefault(),h()},className:"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:de(uh,{className:Kn[y]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??de(dh,{className:a(Kn[y],"opacity-60 transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",v.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)});Uc.displayName="SelectTrigger";var Kc=Yo(({className:e,children:t,widthMode:r,size:o,align:n="start",side:i="bottom",sideOffset:s=4,portal:l=le,portalContainer:d,forceMount:m=!1,onKeyDown:c,...u},g)=>{let v=Vn(),y=hi(o),T=r??Vo.auto,M=Oc(null),z=kt(g,M),p=$o((H)=>{let S=M.current;if(!S)return;let B=Array.from(S.querySelectorAll('[role="option"]:not([data-disabled])'));if(B.length===0)return;let R=S.querySelector('[role="option"]:focus'),Y=R?B.indexOf(R):-1,K;switch(H){case"first":K=B[0];break;case"last":K=B[B.length-1];break;case"next":K=B[Y+1]??B[0];break;case"prev":K=B[Y-1]??B[B.length-1];break}K?.focus()},[]),h=(H)=>{if(c?.(H),H.defaultPrevented)return;switch(H.key){case"ArrowDown":H.preventDefault(),p("next");break;case"ArrowUp":H.preventDefault(),p("prev");break;case"Home":H.preventDefault(),p("first");break;case"End":H.preventDefault(),p("last");break;case"Escape":H.preventDefault(),v.onOpenChange(!1);break}};Un(()=>{if(v.open)requestAnimationFrame(()=>p("first"))},[v.open,p]);let L=de(Zt.Content,{ref:z,id:v.contentId,role:"listbox","aria-labelledby":v.triggerId,side:i,align:n,sideOffset:s,forceMount:m?!0:void 0,onKeyDown:h,onOpenAutoFocus:(H)=>H.preventDefault(),className:a(Er(),_c({widthMode:T,size:y}),"p-1",e),...u,children:t},void 0,!1,void 0,this);if(l)return de(Zt.Portal,{container:d??void 0,children:L},void 0,!1,void 0,this);return L});Kc.displayName="SelectContent";var $c=Yo(({className:e,size:t,...r},o)=>{let n=hi(t);return de("div",{ref:o,className:a("font-semibold text-foreground",yh[n],e),...r},void 0,!1,void 0,this)});$c.displayName="SelectLabel";var Vc=Yo(({className:e,children:t,value:r,label:o,size:n,disabled:i=!1,...s},l)=>{let d=Vn(),m=hi(n),c=d.value===r,u=d.registerItem,g=$n(ch.toArray(t)).trim();Un(()=>{let T=o??(g.length>0?g:r);u(r,T)},[g,r,o,u]);let v=()=>{if(!i)d.onValueChange(r)},y=(T)=>{if(T.key==="Enter"||T.key===" ")T.preventDefault(),v()};return de("div",{ref:l,role:"option",tabIndex:i?void 0:-1,"aria-selected":c,"aria-disabled":i||void 0,"data-selected":c?"":void 0,"data-disabled":i?"":void 0,"data-value":r,className:a("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:border-transparent data-disabled:bg-muted/40 data-disabled:text-muted-foreground/70",bh[m],c&&"bg-accent/50",e),onClick:v,onKeyDown:y,...s,children:[de("span",{className:a("flex shrink-0 items-center justify-center",Kn[m]),children:c&&de(mh,{className:Kn[m]},void 0,!1,void 0,this)},void 0,!1,void 0,this),de("span",{className:"min-w-0 flex-1 truncate",children:t},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Vc.displayName="SelectItem";var Yc=Yo(({className:e,...t},r)=>de("div",{ref:r,className:a("-mx-1 my-1 h-px bg-border",e),...t},void 0,!1,void 0,this));Yc.displayName="SelectSeparator";import{cva as Mh}from"class-variance-authority";import{forwardRef as Nh}from"react";import{jsxDEV as Lh}from"react/jsx-dev-runtime";var Xo={horizontal:"horizontal",vertical:"vertical"},Xc=Mh("shrink-0 bg-border",{variants:{orientation:{[Xo.horizontal]:"h-px w-full",[Xo.vertical]:"h-full w-px"}},defaultVariants:{orientation:Xo.horizontal}}),Jc=Nh(({className:e,orientation:t=Xo.horizontal,decorative:r=!0,...o},n)=>{let i=r?{role:"none"}:{role:"separator","aria-orientation":t};return Lh("div",{ref:n,className:a(Xc({orientation:t}),e),...i,...o},void 0,!1,void 0,this)});Jc.displayName="Separator";import{cva as Yn}from"class-variance-authority";import{forwardRef as Xn}from"react";import{jsxDEV as Jn}from"react/jsx-dev-runtime";var ze={sm:"sm",md:"md",lg:"lg"},qc=Yn("animate-pulse rounded-[var(--radius)] bg-muted"),Qc=Yn("w-full",{variants:{size:{[ze.sm]:"h-3",[ze.md]:"h-4",[ze.lg]:"h-5"}},defaultVariants:{size:ze.md}}),Zc=Yn("",{variants:{size:{[ze.sm]:"h-8 w-8",[ze.md]:"h-10 w-10",[ze.lg]:"h-12 w-12"}},defaultVariants:{size:ze.md}}),Ec=Yn("",{variants:{size:{[ze.sm]:"h-8 w-20",[ze.md]:"h-9 w-24",[ze.lg]:"h-10 w-28"}},defaultVariants:{size:ze.md}}),Jo=Xn(({className:e,circle:t=!1,...r},o)=>Jn("div",{ref:o,className:a(qc(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));Jo.displayName="Skeleton";var Dc=Xn(({className:e,size:t=ze.sm,...r},o)=>{let n=f(t)??ze.md;return Jn(Jo,{ref:o,className:a(Qc({size:n}),e),...r},void 0,!1,void 0,this)});Dc.displayName="SkeletonText";var jc=Xn(({className:e,size:t=ze.sm,...r},o)=>{let n=f(t)??ze.md;return Jn(Jo,{ref:o,circle:!0,className:a(Zc({size:n}),e),...r},void 0,!1,void 0,this)});jc.displayName="SkeletonAvatar";var ep=Xn(({className:e,size:t=ze.sm,...r},o)=>{let n=f(t)??ze.md;return Jn(Jo,{ref:o,className:a(Ec({size:n}),e),...r},void 0,!1,void 0,this)});ep.displayName="SkeletonButton";import*as Et from"@radix-ui/react-slider";import{cva as Qn}from"class-variance-authority";import{forwardRef as xh}from"react";import{jsxDEV as qn}from"react/jsx-dev-runtime";var lo={sm:"sm",md:"md",lg:"lg"},tp=Qn("relative flex w-full touch-none select-none items-center"),rp=Qn("relative w-full grow overflow-hidden rounded-full bg-secondary"),op=Qn("absolute h-full bg-primary"),np=Qn("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] block cursor-grab rounded-full border-2 border-primary bg-background ring-offset-background active:cursor-grabbing focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/40 disabled:text-muted-foreground/70"),Rh={[lo.sm]:"h-2",[lo.md]:"h-2.5",[lo.lg]:"h-3"},Ch={[lo.sm]:"h-4 w-4",[lo.md]:"h-5 w-5",[lo.lg]:"h-6 w-6"},ap=xh(({className:e,size:t,...r},o)=>{let n=f(t);return qn(Et.Root,{ref:o,className:a(tp(),e),...r,children:[qn(Et.Track,{"data-slider-track":!0,className:a(rp(),Rh[n]),children:qn(Et.Range,{className:a(op())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((i,s)=>qn(Et.Thumb,{"data-slider-thumb":!0,className:a(np(),Ch[n])},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});ap.displayName="Slider";import{cva as Se}from"class-variance-authority";import{forwardRef as Sh,useCallback as Pi,useEffect as Mi,useLayoutEffect as Ah,useMemo as mo,useRef as Tt,useState as zi}from"react";import{useCallback as ip,useSyncExternalStore as wh}from"react";var Hh=()=>!1,kh=()=>{return};function sp(e){let t=ip((o)=>{if(typeof window>"u")return kh;let n=window.matchMedia(e);return n.addEventListener("change",o),()=>n.removeEventListener("change",o)},[e]),r=ip(()=>{if(typeof window>"u")return!1;return window.matchMedia(e).matches},[e]);return wh(t,r,Hh)}import{jsxDEV as U,Fragment as Lp}from"react/jsx-dev-runtime";var Bh="(max-width: 639px)",w={sm:"sm",md:"md",lg:"lg"},Ni={sm:"sm",md:"sm",lg:"md"},Zn={idle:"idle",loading:"loading",error:"error"},Ih=160,lp=Se("z-[120] bg-black/40"),mp=Se(["gs-spotlight-content fixed inset-x-0 top-[15vh] z-[120] w-full mx-auto","rounded-[calc(var(--radius)+6px)] border border-border bg-popover shadow-2xl","overflow-hidden"],{variants:{size:{[w.sm]:"max-w-md",[w.md]:"max-w-xl",[w.lg]:"max-w-2xl"}},defaultVariants:{size:w.md}}),dp=Se(["gs-sheet-content gs-sheet-content-bottom","fixed inset-x-0 bottom-0 z-[120] w-full flex flex-col","rounded-t-2xl border-t border-x border-border bg-popover shadow-2xl","overflow-hidden"]),up=Se("flex items-center border-b border-border",{variants:{size:{[w.sm]:"gap-2 px-3 py-2",[w.md]:"gap-3 px-4 py-3",[w.lg]:"gap-3 px-5 py-3.5"}},defaultVariants:{size:w.md}}),cp=Se(["w-full flex-1 bg-transparent text-foreground","placeholder:text-muted-foreground","outline-none border-none"],{variants:{size:{[w.sm]:"text-sm",[w.md]:"text-base",[w.lg]:"text-lg"}},defaultVariants:{size:w.md}}),pp=Se("text-muted-foreground shrink-0",{variants:{size:{[w.sm]:"size-3.5",[w.md]:"size-4",[w.lg]:"size-5"}},defaultVariants:{size:w.md}}),fp=Se("overflow-y-auto py-1",{variants:{size:{[w.sm]:"max-h-64",[w.md]:"max-h-80",[w.lg]:"max-h-96"}},defaultVariants:{size:w.md}}),gp=Se("font-semibold text-muted-foreground uppercase tracking-wide",{variants:{size:{[w.sm]:"px-2.5 py-1.5 text-[11px]",[w.md]:"px-3 py-2 text-xs",[w.lg]:"px-3.5 py-2 text-xs"}},defaultVariants:{size:w.md}}),bp=Se(["group flex items-center cursor-pointer rounded-lg","text-foreground","transition-[color,background-color,box-shadow] duration-100","active:scale-[0.98]"],{variants:{size:{[w.sm]:"gap-2 px-2.5 py-1.5 mx-1.5",[w.md]:"gap-3 px-3 py-2 mx-2",[w.lg]:"gap-3 px-3.5 py-2.5 mx-2"},selected:{true:"bg-primary/10",false:"hover:bg-muted"},disabled:{true:"text-muted-foreground cursor-not-allowed pointer-events-none bg-muted/40",false:""}},defaultVariants:{size:w.md,selected:!1,disabled:!1}}),yp=Se("shrink-0",{variants:{size:{[w.sm]:"size-3.5",[w.md]:"size-4",[w.lg]:"size-5"},selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{size:w.md,selected:!1}}),vp=Se("flex-1 min-w-0"),Tp=Se("font-medium truncate",{variants:{size:{[w.sm]:"text-xs",[w.md]:"text-sm",[w.lg]:"text-sm"}},defaultVariants:{size:w.md}}),hp=Se("text-muted-foreground truncate",{variants:{size:{[w.sm]:"text-[11px]",[w.md]:"text-xs",[w.lg]:"text-xs"}},defaultVariants:{size:w.md}}),Pp=Se("flex items-center gap-1 text-muted-foreground shrink-0",{variants:{size:{[w.sm]:"text-[11px]",[w.md]:"text-[11px]",[w.lg]:"text-xs"}},defaultVariants:{size:w.md}}),En=Se("flex flex-col items-center justify-center text-muted-foreground",{variants:{size:{[w.sm]:"py-6 min-h-20",[w.md]:"py-8 min-h-24",[w.lg]:"py-10 min-h-28"},state:{empty:"text-muted-foreground",loading:"text-muted-foreground",error:"text-destructive"}},defaultVariants:{size:w.md,state:"empty"}}),Dn=Se("font-medium",{variants:{size:{[w.sm]:"text-xs",[w.md]:"text-sm",[w.lg]:"text-sm"}},defaultVariants:{size:w.md}}),zp=Se("mt-1",{variants:{size:{[w.sm]:"text-[11px]",[w.md]:"text-xs",[w.lg]:"text-xs"}},defaultVariants:{size:w.md}}),Mp=(e,t)=>{if(!t)return!0;let r=t.toLowerCase();return e.title.toLowerCase().includes(r)||(e.description?.toLowerCase().includes(r)??!1)||(e.keywords?.some((o)=>o.toLowerCase().includes(r))??!1)};function Fh(e,t){let r=Tt(null),o=Tt(null),n=Tt(null),i=Tt(!0),s=Tt(t);return Mi(()=>{if(e)i.current=!0},[e]),Ah(()=>{let l=r.current,d=o.current,m=n.current;if(!(l&&d&&m))return;let c=d.scrollHeight,u=s.current!==t;if(s.current=t,i.current)l.style.transition="none",l.style.height=`${c}px`,m.style.transition="none",m.style.opacity="1",requestAnimationFrame(()=>{l.style.transition="",m.style.transition="",i.current=!1});else if(u)m.style.transition="none",m.style.opacity="0",l.style.height=`${c}px`,requestAnimationFrame(()=>{m.style.transition="opacity 200ms var(--motion-ease-emphasized)",m.style.opacity="1"});else l.style.height=`${c}px`}),{wrapperRef:r,contentRef:o,viewRef:n}}function Gh({action:e,size:t,isActive:r,isDisabled:o,isMac:n,onClick:i,renderItem:s,index:l}){let d=e.shortcut?jn(e.shortcut,n):[],m=new Map,c=d.map((u)=>{let g=(m.get(u)??0)+1;return m.set(u,g),{token:u,key:`${u}-${g}`}});return U("div",{role:"option","aria-selected":r,"aria-disabled":o,tabIndex:o?-1:0,onClick:i,onKeyDown:(u)=>{if(u.key==="Enter"||u.key===" ")u.preventDefault(),i()},className:a(bp({size:t,selected:r,disabled:o})),children:s?s(e,{active:r,disabled:o,index:l}):U(Lp,{children:[e.icon&&U("span",{className:a(yp({size:t,selected:r})),children:e.icon},void 0,!1,void 0,this),U("div",{className:a(vp()),children:[U("div",{className:a(Tp({size:t})),children:e.title},void 0,!1,void 0,this),e.description&&U("div",{className:a(hp({size:t})),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.length>0&&U("div",{className:a(Pp({size:t})),children:c.map((u)=>U("kbd",{className:a(qr({size:Ni[t]})),children:u.token},u.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Np=Sh(({className:e,open:t,onOpenChange:r,actions:o,onActionSelect:n,value:i,defaultValue:s="",onValueChange:l,placeholder:d="Search commands, pages, or actions...",size:m=w.sm,status:c=Zn.idle,statusMessage:u,emptyText:g="No command found for this query.",hotkey:v,portal:y=!0,filterFn:T,renderItem:M,footer:z,...p},h)=>{let L=Tt(null),H=Tt(null),[S,B]=zi(s),[R,Y]=zi(0),[K,X]=zi(t),{isMac:j}=Ao(),ie=sp(Bh),V=be(),re=mo(()=>v&&v.length>0?v.join("+"):null,[v]),k=mo(()=>v?jn(v,j):[],[v,j]),Z=mo(()=>{let A=new Map;return k.map((ce)=>{let Ne=(A.get(ce)??0)+1;return A.set(ce,Ne),{token:ce,key:`${ce}-${Ne}`}})},[k]);xo(re??"",()=>r(!t),{enabled:!!re});let x=i!==void 0?i:S,W=T??Mp,b=mo(()=>o.filter((A)=>W(A,x)),[o,x,W]),P=mo(()=>b.flatMap((A,ce)=>A.disabled?[]:[ce]),[b]),C=mo(()=>{let A=new Map,ce=new Map,Ne=0;for(let N of b){let E=N.group??"";if(!A.has(E))A.set(E,[]);A.get(E)?.push(N),ce.set(N,Ne++)}return{groups:A,indexMap:ce}},[b]),oe=Tt(!1),_=Tt(t);if(_.current!==t)oe.current=!t,_.current=t;let Ce=Tt({query:x,status:c,statusMessage:u??null,filtered:b,grouped:C,activeIndex:R,emptyText:g});if(!oe.current)Ce.current={query:x,status:c,statusMessage:u??null,filtered:b,grouped:C,activeIndex:R,emptyText:g};let O=Ce.current,ae=O.status===Zn.loading?"loading":O.status===Zn.error?"error":O.filtered.length===0?"empty":"results",{wrapperRef:Lt,contentRef:ot,viewRef:$}=Fh(t,ae);Mi(()=>{if(t)Y(0)},[t]),Mi(()=>{if(t){X(!0);return}let A=setTimeout(()=>{X(!1)},V?0:Ih);return()=>{clearTimeout(A)}},[t,V]);let ue=t||K,se=Pi((A)=>{B(A.target.value),l?.(A.target.value),Y(0)},[l]),Me=Pi((A)=>{H.current?.querySelectorAll('[role="option"]')[A]?.scrollIntoView({block:"nearest"})},[]),Ue=Pi((A)=>{if(A.key==="ArrowDown"||A.key==="ArrowUp"){if(A.preventDefault(),P.length===0)return;let ce=P.indexOf(R),Ne=A.key==="ArrowDown"?P[(ce+1)%P.length]:P[(ce-1+P.length)%P.length];if(Ne!==void 0)Y(Ne),Me(Ne);return}if(A.key==="Enter"){A.preventDefault();let ce=b[R];if(ce&&!ce.disabled)n(ce,R)}},[R,P,b,n,Me]),ct=U(Lp,{children:[U(Co,{forceMount:!0,"data-testid":"spotlight-overlay",className:a(lp()),onClick:()=>r(!1)},void 0,!1,void 0,this),U(qa,{...p,ref:h,forceMount:!0,className:a(ie?dp():mp({size:m}),e),"aria-label":"Spotlight search","aria-describedby":void 0,onOpenAutoFocus:(A)=>{A.preventDefault(),L.current?.focus()},onCloseAutoFocus:(A)=>A.preventDefault(),onKeyDown:Ue,children:[U(Mn,{className:"sr-only",children:"Spotlight search"},void 0,!1,void 0,this),ie&&U("div",{className:"flex justify-center pt-2 pb-1",children:U("div",{className:"h-1 w-8 rounded-full bg-muted-foreground/30"},void 0,!1,void 0,this)},void 0,!1,void 0,this),U("div",{className:a(up({size:m})),children:[U("svg",{className:a(pp({size:m})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:U("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),U("input",{ref:L,type:"text",value:O.query,onChange:se,placeholder:d,"aria-label":"Search",className:a(cp({size:m}))},void 0,!1,void 0,this),!ie&&(v?U("div",{className:"flex items-center gap-1",children:Z.map((A)=>U("kbd",{className:a(qr({size:Ni[m]})),children:A.token},A.key,!1,void 0,this))},void 0,!1,void 0,this):U("kbd",{className:a(qr({size:Ni[m]})),children:"ESC"},void 0,!1,void 0,this))]},void 0,!0,void 0,this),U("div",{ref:Lt,className:"overflow-hidden transition-[height] duration-200 ease-[var(--motion-ease-emphasized)] motion-reduce:transition-none",children:U("div",{ref:ot,children:U("div",{ref:$,children:[ae==="loading"&&U("div",{className:a(En({size:m,state:"loading"})),children:[U(Gt,{size:"sm",className:"mb-2 text-muted-foreground"},void 0,!1,void 0,this),U("div",{className:a(Dn({size:m})),children:"Searching commands..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae==="error"&&U("div",{className:a(En({size:m,state:"error"})),children:[U("div",{className:a(Dn({size:m})),children:"Search failed"},void 0,!1,void 0,this),O.statusMessage&&U("div",{className:a(zp({size:m})),children:O.statusMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae==="empty"&&U("div",{className:a(En({size:m,state:"empty"})),children:U("div",{className:a(Dn({size:m})),children:O.emptyText},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae==="results"&&U("div",{ref:H,role:"listbox","aria-label":"Search results",className:a(fp({size:m}),ie&&"max-h-none min-h-0 flex-1"),children:Array.from(O.grouped.groups.entries()).map(([A,ce])=>U("div",{children:[A&&U("div",{className:a(gp({size:m})),children:A},void 0,!1,void 0,this),ce.map((Ne)=>{let N=O.grouped.indexMap.get(Ne)??0;return U(Gh,{action:Ne,size:m,isActive:N===O.activeIndex,isDisabled:Ne.disabled??!1,isMac:j,index:N,onClick:()=>{if(!Ne.disabled)n(Ne,N)},renderItem:M},Ne.id,!1,void 0,this)})]},A||"__ungrouped__",!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),z&&U("div",{className:"border-border border-t px-3 py-2",children:z},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return U(Ro,{open:t,onOpenChange:r,children:ue?y?U(Pn,{forceMount:!0,children:ct},void 0,!1,void 0,this):ct:null},void 0,!1,void 0,this)});Np.displayName="Spotlight";import{cva as Lr}from"class-variance-authority";import{Check as Oh}from"lucide-react";import{forwardRef as xr}from"react";import{jsxDEV as Dt}from"react/jsx-dev-runtime";var xp=Lr("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),Rp=Lr("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),Cp=Lr(["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 bg-card text-muted-foreground","shadow-[var(--shadow-xs)]"],current:["border-primary bg-primary text-primary-foreground","shadow-[var(--glow-brand-sm)]"],complete:["border-success/60 bg-success text-success-foreground","shadow-[var(--shadow-sm)]","[&>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"},animated:{true:"gs-step-indicator-animated",false:""}},defaultVariants:{status:"incomplete",size:"sm",animated:!0}}),wp=Lr("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"},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:"sm",animated:!0}}),Hp=Lr("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),kp=Lr("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"}},defaultVariants:{status:"incomplete",size:"sm"}}),Sp=Lr("text-muted-foreground transition-colors duration-200 ease-out",{variants:{size:{sm:"text-sm",md:"text-xs",lg:"text-sm"}},defaultVariants:{size:"sm"}});var Ap=xr(({className:e,orientation:t="horizontal",activeStep:r,...o},n)=>{return Dt("div",{ref:n,role:"group","aria-label":"Progress steps",className:a(xp({orientation:t}),e),"data-orientation":t,"data-active-step":r,...o},void 0,!1,void 0,this)});Ap.displayName="Stepper";var Bp=xr(({className:e,orientation:t="horizontal",isLast:r,isCurrent:o,...n},i)=>{return Dt("div",{ref:i,className:a(Rp({orientation:t}),e),"data-last":r,"aria-current":o?"step":void 0,...n},void 0,!1,void 0,this)});Bp.displayName="Step";var Ip=xr(({className:e,status:t="incomplete",size:r="sm",icon:o,step:n,children:i,animated:s=!0,...l},d)=>{let m=f(r);return Dt("div",{ref:d,className:a(Cp({status:t,size:m,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?o||Dt(Oh,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):i||n},void 0,!1,void 0,this)});Ip.displayName="StepIndicator";var Fp=xr(({className:e,orientation:t="horizontal",status:r="incomplete",size:o="sm",animated:n=!0,...i},s)=>{let l=f(o);return Dt("div",{ref:s,className:a(wp({orientation:t,status:r,size:l,animated:n}),e),"data-status":r,...i},void 0,!1,void 0,this)});Fp.displayName="StepConnector";var Gp=xr(({className:e,orientation:t="horizontal",...r},o)=>{return Dt("div",{ref:o,className:a(Hp({orientation:t}),e),...r},void 0,!1,void 0,this)});Gp.displayName="StepContent";var Op=xr(({className:e,status:t="incomplete",size:r="sm",...o},n)=>{let i=f(r);return Dt("h4",{ref:n,className:a(kp({status:t,size:i}),e),...o},void 0,!1,void 0,this)});Op.displayName="StepTitle";var Wp=xr(({className:e,size:t="sm",...r},o)=>{let n=f(t);return Dt("p",{ref:o,className:a(Sp({size:n}),e),...r},void 0,!1,void 0,this)});Wp.displayName="StepDescription";import*as ea from"@radix-ui/react-switch";import{cva as Wh}from"class-variance-authority";import{forwardRef as _h}from"react";import{jsxDEV as _p}from"react/jsx-dev-runtime";var et={sm:"sm",md:"md",lg:"lg"},Rr={default:"default",error:"error",success:"success"},Up=Wh("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] 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:{[et.sm]:"h-4.5 w-8",[et.md]:"h-5 w-9",[et.lg]:"h-6 w-11"},status:{[Rr.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",[Rr.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",[Rr.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:et.md,status:Rr.default}}),Uh={[et.sm]:"h-3.5 w-3.5",[et.md]:"h-4 w-4",[et.lg]:"h-5 w-5"},Kh={[et.sm]:"data-[state=checked]:translate-x-3.5",[et.md]:"data-[state=checked]:translate-x-4",[et.lg]:"data-[state=checked]:translate-x-5"},Kp=_h(({className:e,size:t=et.sm,status:r=Rr.default,error:o=!1,checked:n,disabled:i,...s},l)=>{let d=f(t),m=o?Rr.error:r;return _p(ea.Root,{ref:l,checked:n,disabled:i,className:a(Up({size:d,status:m}),e),...s,children:_p(ea.Thumb,{className:a("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",Uh[d],Kh[d])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Kp.displayName="Switch";import{cva as Bt}from"class-variance-authority";import{createContext as $h,forwardRef as jt,useContext as $p}from"react";import{jsxDEV as ht}from"react/jsx-dev-runtime";var Ie={sm:"sm",md:"md",lg:"lg"},Li=$h(Ie.md),Vp=Bt("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),Yp=Bt("w-full caption-bottom",{variants:{size:{[Ie.sm]:"text-xs",[Ie.md]:"text-sm",[Ie.lg]:"text-sm"}},defaultVariants:{size:Ie.md}}),Xp=Bt("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),Jp=Bt("[&_tr:last-child]:border-0"),qp=Bt("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),Qp=Bt("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),Zp=Bt("text-left align-middle font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[Ie.sm]:"h-8 px-2",[Ie.md]:"h-10 px-3",[Ie.lg]:"h-12 px-4"}},defaultVariants:{size:Ie.md}}),Ep=Bt("align-middle text-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[Ie.sm]:"p-2",[Ie.md]:"p-3",[Ie.lg]:"p-4"}},defaultVariants:{size:Ie.md}}),Dp=Bt("mt-4 text-sm text-muted-foreground"),jp=jt(({className:e,containerClassName:t,size:r=Ie.sm,...o},n)=>{let i=f(r)??Ie.md;return ht(Li.Provider,{value:i,children:ht("div",{className:a(Vp(),t),children:ht("table",{ref:n,className:a(Yp({size:i}),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});jp.displayName="Table";var ef=jt(({className:e,...t},r)=>ht("thead",{ref:r,className:a(Xp(),e),...t},void 0,!1,void 0,this));ef.displayName="TableHeader";var tf=jt(({className:e,...t},r)=>ht("tbody",{ref:r,className:a(Jp(),e),...t},void 0,!1,void 0,this));tf.displayName="TableBody";var rf=jt(({className:e,...t},r)=>ht("tfoot",{ref:r,className:a(qp(),e),...t},void 0,!1,void 0,this));rf.displayName="TableFooter";var of=jt(({className:e,...t},r)=>ht("tr",{ref:r,className:a(Qp(),e),...t},void 0,!1,void 0,this));of.displayName="TableRow";var nf=jt(({className:e,size:t,...r},o)=>{let n=$p(Li);return ht("th",{ref:o,className:a(Zp({size:t??n}),e),...r},void 0,!1,void 0,this)});nf.displayName="TableHead";var af=jt(({className:e,size:t,...r},o)=>{let n=$p(Li);return ht("td",{ref:o,className:a(Ep({size:t??n}),e),...r},void 0,!1,void 0,this)});af.displayName="TableCell";var sf=jt(({className:e,...t},r)=>ht("caption",{ref:r,className:a(Dp(),e),...t},void 0,!1,void 0,this));sf.displayName="TableCaption";import*as dt from"@radix-ui/react-tabs";import{cva as xi}from"class-variance-authority";import{forwardRef as Ri,useRef as lf}from"react";import{jsxDEV as ta}from"react/jsx-dev-runtime";var er={sm:"sm",md:"md",lg:"lg"},mf=xi("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-secondary p-1 text-muted-foreground",{variants:{size:{[er.sm]:"gap-0.5",[er.md]:"gap-1",[er.lg]:"gap-1.5"}},defaultVariants:{size:er.sm}}),df=xi("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative z-10 inline-flex items-center justify-center whitespace-nowrap rounded-[calc(var(--radius)-2px)] font-semibold leading-none text-muted-foreground 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:{[er.sm]:"h-7 px-2.5 text-xs",[er.md]:"h-9 px-3 text-sm",[er.lg]:"h-10 px-4 text-sm"}},defaultVariants:{size:er.sm}}),uf=xi("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),Vh=dt.Root,Yh=["data-state","aria-selected"],cf=Ri(({className:e,size:t,children:r,...o},n)=>{let i=f(t),s=lf(null),l=kt(n,s),d=lf(null);return Wn(s,d,{activeSelector:"button[role='tab'][data-state='active']",observeAttributes:Yh}),ta(dt.List,{ref:l,className:a(mf({size:i}),e),...o,children:[ta("span",{ref:d,"aria-hidden":!0,"data-slot":"indicator",className:_n,style:{opacity:0}},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});cf.displayName=dt.List.displayName;var pf=Ri(({className:e,size:t,...r},o)=>{let n=f(t);return ta(dt.Trigger,{ref:o,className:a(df({size:n}),e),...r},void 0,!1,void 0,this)});pf.displayName=dt.Trigger.displayName;var ff=Ri(({className:e,...t},r)=>ta(dt.Content,{ref:r,className:a(uf(),e),...t},void 0,!1,void 0,this));ff.displayName=dt.Content.displayName;import{cva as Xh}from"class-variance-authority";import{forwardRef as Jh}from"react";import{jsxDEV as qh}from"react/jsx-dev-runtime";var qo={default:"default",error:"error",success:"success"},Qo={sm:"sm",md:"md",lg:"lg"},gf=Xh("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] 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:{[qo.default]:"focus-visible:ring-primary",[qo.error]:"border-destructive focus-visible:ring-destructive",[qo.success]:"border-success focus-visible:ring-success"},size:{[Qo.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[Qo.md]:"min-h-[96px] px-3 py-2",[Qo.lg]:"min-h-[112px] px-4 py-2.5"}},defaultVariants:{status:qo.default,size:Qo.md}}),bf=Jh(({className:e,status:t=qo.default,size:r=Qo.sm,fullWidth:o=!1,noResize:n=!1,disabled:i,...s},l)=>{let d=f(r);return qh("textarea",{ref:l,className:a(gf({status:t,size:d}),i&&"bg-muted",o&&"w-full",n&&"resize-none",e),disabled:i,...s},void 0,!1,void 0,this)});bf.displayName="Textarea";import{cva as tr}from"class-variance-authority";import{forwardRef as rr}from"react";import{jsxDEV as Pt}from"react/jsx-dev-runtime";var yf=tr("relative flex flex-col"),vf=tr(["group relative flex pb-8 last:pb-0","transition-opacity duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]"],{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}}),Tf=tr(["absolute bottom-0 w-0.5 rounded-full","transition-[background-color,opacity,height] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]"],{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-[7px] top-5",md:"left-[15px] top-9",lg:"left-[21px] top-12"},animated:{true:"gs-timeline-connector-animated",false:""}},defaultVariants:{variant:"default",size:"sm",animated:!0}}),hf=tr(["relative z-10 flex shrink-0 items-center justify-center rounded-full border-2","transition-[color,background-color,border-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","[&>svg]:shrink-0"],{variants:{variant:{default:["border-border bg-card text-muted-foreground","shadow-[var(--shadow-sm)]","hover:border-border hover:shadow-[var(--shadow-md)]"],success:["border-success/60 bg-success/10 text-success","shadow-[var(--shadow-success-sm)]","hover:bg-success/15 hover:border-success/70 hover:shadow-[var(--shadow-success-md)]"],warning:["border-warning/60 bg-warning/10 text-warning","shadow-[var(--shadow-warning-sm)]","hover:bg-warning/15 hover:border-warning/70 hover:shadow-[var(--shadow-warning-md)]"],error:["border-destructive/60 bg-destructive/10 text-destructive","shadow-[var(--shadow-destructive-sm)]","hover:bg-destructive/15 hover:border-destructive/70 hover:shadow-[var(--shadow-destructive-md)]"],info:["border-info/60 bg-info/10 text-info","shadow-[var(--shadow-info-sm)]","hover:bg-info/15 hover:border-info/70 hover:shadow-[var(--shadow-info-md)]"],primary:["border-primary/60 bg-primary/10 text-primary","shadow-[var(--shadow-primary-sm)]","hover:bg-primary/15 hover:border-primary/70 hover:shadow-[var(--shadow-primary-md)]"]},size:{sm:"h-4 w-4 [&>svg]:size-2",md:"h-8 w-8 [&>svg]:size-4",lg:"h-11 w-11 [&>svg]:size-5"},pulse:{true:"gs-timeline-dot-pulse-enabled gs-timeline-dot-pulse",false:""},animated:{true:"gs-timeline-dot-animated",false:""}},defaultVariants:{variant:"default",size:"sm",pulse:!1,animated:!0}}),Pf=tr("flex min-w-0 flex-col gap-1 pt-0.5 transition-opacity duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]"),zf=tr("font-semibold leading-tight text-foreground transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[11px]",md:"text-base",lg:"text-lg"}},defaultVariants:{size:"sm"}}),Mf=tr("text-muted-foreground transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[11px]",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"sm"}}),Nf=tr("font-medium text-muted-foreground/70 transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[11px]",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"sm"}});var Lf=rr(({className:e,...t},r)=>{return Pt("div",{ref:r,role:"list","aria-label":"Timeline events",className:a(yf(),e),...t},void 0,!1,void 0,this)});Lf.displayName="Timeline";var xf=rr(({className:e,align:t,isLast:r,animated:o=!0,...n},i)=>{return Pt("div",{ref:i,role:"listitem",className:a(vf({align:t,animated:o}),e),"data-last":r,...n},void 0,!1,void 0,this)});xf.displayName="TimelineItem";var Rf=rr(({className:e,variant:t,size:r,animated:o=!0,...n},i)=>{let s=f(r);return Pt("div",{ref:i,className:a(Tf({variant:t,size:s,animated:o}),e),...n},void 0,!1,void 0,this)});Rf.displayName="TimelineConnector";var Cf=rr(({className:e,variant:t,size:r,icon:o,children:n,pulse:i=!1,animated:s=!0,...l},d)=>{let m=f(r);return Pt("div",{ref:d,className:a(hf({variant:t,size:m,pulse:i,animated:s}),e),"aria-hidden":"true",...l,children:o||n||Pt(Qh,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Cf.displayName="TimelineDot";var wf=rr(({className:e,...t},r)=>{return Pt("div",{ref:r,className:a(Pf(),e),...t},void 0,!1,void 0,this)});wf.displayName="TimelineContent";var Hf=rr(({className:e,size:t,...r},o)=>{let n=f(t);return Pt("h4",{ref:o,className:a(zf({size:n}),e),...r},void 0,!1,void 0,this)});Hf.displayName="TimelineTitle";var kf=rr(({className:e,size:t,...r},o)=>{let n=f(t);return Pt("p",{ref:o,className:a(Mf({size:n}),e),...r},void 0,!1,void 0,this)});kf.displayName="TimelineDescription";var Sf=rr(({className:e,size:t,...r},o)=>{let n=f(t);return Pt("time",{ref:o,className:a(Nf({size:n}),e),...r},void 0,!1,void 0,this)});Sf.displayName="TimelineTime";function Qh(){return Pt("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as Af}from"class-variance-authority";var uo={default:"default",success:"success",info:"info",warning:"warning",error:"error"},tt={sm:"sm",md:"md",lg:"lg"},Ci=Af("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[uo.default]:"border-border bg-card text-card-foreground",[uo.success]:"border-success/30 bg-card text-card-foreground",[uo.info]:"border-info/30 bg-card text-card-foreground",[uo.warning]:"border-warning/30 bg-card text-card-foreground",[uo.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[tt.sm]:"gap-2 p-3",[tt.md]:"gap-3 p-4",[tt.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:uo.default,size:tt.md}}),wi=Af("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] 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:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70",{variants:{size:{[tt.sm]:"h-6 px-2 text-xs",[tt.md]:"h-7 px-2.5 text-xs",[tt.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:tt.md}});import{AlertTriangle as nP,CheckCircle2 as aP,Info as Wf,X as iP,XCircle as sP}from"lucide-react";import{forwardRef as lP,useCallback as na,useEffect as co,useRef as Bi,useState as Ii}from"react";import{useSyncExternalStore as Zh}from"react";var Eh=5,If=5000,Dh=500,Hi=0;function jh(){return Hi=(Hi+1)%Number.MAX_SAFE_INTEGER,`toast-${Hi}-${Date.now()}`}var ki=new Set,rt=[],wr=new Map,Eo=new Map,Do=!1,Cr=new Map;function ra(){for(let e of ki)e()}function Bf(){return rt}function eP(e){return ki.add(e),()=>{ki.delete(e)}}function Si(e,t){if(Do){Cr.set(e,t);return}clearTimeout(wr.get(e));let r=Date.now(),o=setTimeout(()=>{wr.delete(e),Cr.delete(e),oa(e)},t);wr.set(e,o),Cr.set(e,t);let n=setInterval(()=>{let i=Date.now()-r,s=t-i;if(s<=0)clearInterval(n),Cr.delete(e);else Cr.set(e,s)},100)}function tP(e){clearTimeout(Eo.get(e));let t=To()?0:Dh,r=setTimeout(()=>{rt=rt.filter((o)=>o.id!==e),Eo.delete(e),ra()},t);Eo.set(e,r)}function Ff(e){clearTimeout(wr.get(e)),wr.delete(e),Cr.delete(e)}function Zo(e){let t=e.id??jh(),r=e.duration===void 0?If:e.duration;if(rt.find((i)=>i.id===t)){if(rt=rt.map((i)=>i.id===t?{...i,...e,id:t,open:!0,createdAt:Date.now()}:i),clearTimeout(Eo.get(t)),Eo.delete(t),Ff(t),typeof r==="number")Si(t,r);return ra(),t}if(rt=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...rt].slice(0,Eh),typeof r==="number")Si(t,r);return ra(),t}function oa(e){Ff(e),rt=rt.map((t)=>t.id===e?{...t,open:!1}:t),ra(),tP(e)}function Gf(){for(let e of rt)oa(e.id)}function rP(){if(Do)return;Do=!0;for(let[e,t]of wr)clearTimeout(t),wr.delete(e)}function oP(){if(!Do)return;Do=!1;for(let e of rt)if(e.open){if(e.duration===null)continue;let t=e.duration??If,r=Cr.get(e.id)??t;Si(e.id,r)}}var Of=Object.assign((e)=>Zo(e),{success:(e,t)=>Zo({...t,variant:"success",title:e}),info:(e,t)=>Zo({...t,variant:"info",title:e}),warning:(e,t)=>Zo({...t,variant:"warning",title:e}),error:(e,t)=>Zo({...t,variant:"error",title:e}),dismiss:oa,dismissAll:Gf});function Ai(){return{toasts:Zh(eP,Bf,Bf),toast:Of,dismiss:oa,dismissAll:Gf,pauseAll:rP,resumeAll:oP}}import{jsxDEV as _e}from"react/jsx-dev-runtime";var Uf=10,_f=0.05,mP=200,dP={"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"},uP={success:(e)=>_e(aP,{className:a("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>_e(Wf,{className:a("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>_e(nP,{className:a("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>_e(sP,{className:a("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>_e(Wf,{className:a("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function cP(e,t,r,o,n){let i=e<o,s=r?n:e*Uf,l=r?1:i?1-e*_f:1-o*_f,d=i||r?1:0,m=t-e;return{offset:s,scale:l,opacity:d,zIndex:m}}var Kf=lP(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:o=tt.sm,className:n,...i},s)=>{let{toasts:l,dismiss:d,pauseAll:m,resumeAll:c}=Ai(),u=be(),g=f(o)??tt.md,[v,y]=Ii(!1),[T,M]=Ii({}),z=Bi(null),p=Bi(void 0),h=e.startsWith("bottom"),L=na((k)=>{if(z.current=k,typeof s==="function")s(k);else if(s)s.current=k},[s]),H=na(()=>{clearTimeout(p.current),y(!0),m()},[m]),S=na(()=>{clearTimeout(p.current),p.current=setTimeout(()=>{y(!1),c()},u?0:mP)},[u,c]);co(()=>{return()=>clearTimeout(p.current)},[]);let B=na((k,Z)=>{M((x)=>{if(x[k]===Z)return x;return{...x,[k]:Z}})},[]);co(()=>{let k=new Set(l.map((Z)=>Z.id));M((Z)=>{let x=!1,W={};for(let[b,P]of Object.entries(Z))if(k.has(b))W[b]=P;else x=!0;return x?W:Z})},[l]);let R=l.filter((k)=>k.open),Y=new Map,K=0;for(let[k,Z]of R.entries()){let x=T[Z.id]??0;Y.set(Z.id,cP(k,R.length,v,r,K)),K+=x+t}let X=R[0],ie=(X?T[X.id]??0:0)+Math.min(R.length-1,r-1)*Uf,V=K-(R.length>0?t:0),re=v?V:ie;if(co(()=>{let k=z.current;if(!k)return;k.style.setProperty("--gs-toast-stack-height",`${Math.max(re,0)}px`)},[re]),l.length===0)return null;return _e("ol",{ref:L,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:H,onMouseLeave:S,className:a("pointer-events-auto fixed z-[100] h-[var(--gs-toast-stack-height,0px)] w-full max-w-[400px] outline-none transition-[height] duration-[var(--motion-duration-spring)] ease-[var(--motion-ease-emphasized)]",dP[e],n),...i,children:l.map((k)=>{let Z=!k.open,x=Y.get(k.id);return _e(pP,{toast:k,layout:x??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:Z,isBottom:h,size:g,onDismiss:d,onMeasure:B,reducedMotion:u},k.id,!1,void 0,this)})},void 0,!1,void 0,this)});Kf.displayName="Toaster";function pP({toast:e,layout:t,isClosed:r,isBottom:o,size:n,onDismiss:i,onMeasure:s,reducedMotion:l}){let d=Bi(null),[m,c]=Ii(!1);co(()=>{if(l){c(!0);return}let T=requestAnimationFrame(()=>c(!0));return()=>cancelAnimationFrame(T)},[l]),co(()=>{let T=d.current;if(!T)return;let M=new ResizeObserver((z)=>{for(let p of z){let h=p.borderBoxSize?.[0];if(h)s(e.id,h.blockSize)}});return M.observe(T),()=>M.disconnect()},[e.id,s]);let u=o?"bottom-0 left-0 right-0 origin-bottom":"top-0 left-0 right-0 origin-top",g,v,y;if(!m)g=`translateY(${o?80:-80}px) scale(0.9)`,v=0,y="false";else if(r)g=`translateY(${o?80:-80}px) scale(0.95)`,v=0,y="false";else g=`translateY(${o?-t.offset:t.offset}px) scale(${t.scale})`,v=t.opacity,y="true";return co(()=>{let T=d.current;if(!T)return;T.style.setProperty("--gs-toast-transform",g),T.style.setProperty("--gs-toast-opacity",`${v}`),T.style.setProperty("--gs-toast-z-index",`${t.zIndex}`)},[t.zIndex,v,g]),_e("li",{ref:d,"data-state":e.open?"open":"closed","data-variant":e.variant,"data-interactive":y,className:a("absolute list-none transition-[transform,opacity] duration-[var(--motion-duration-spring)] ease-[var(--motion-ease-emphasized)] [opacity:var(--gs-toast-opacity,0)] [transform:var(--gs-toast-transform)] [z-index:var(--gs-toast-z-index,0)]","data-[interactive=false]:pointer-events-none data-[interactive=true]:pointer-events-auto",u),children:_e("div",{className:a(Ci({variant:e.variant,size:n}),"w-full"),children:[uP[e.variant]?.(n),_e("div",{className:"flex-1 space-y-0.5",children:[e.title&&_e("p",{className:a("font-semibold leading-tight",n==="sm"?"text-xs":"text-sm"),children:e.title},void 0,!1,void 0,this),e.description&&_e("p",{className:a("text-muted-foreground leading-snug",n==="sm"?"text-xs":"text-sm"),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.action&&_e("button",{type:"button",className:a(wi({size:n}),"mt-0.5"),onClick:e.action.onClick,"aria-label":e.action.altText,children:e.action.label},void 0,!1,void 0,this),e.dismissible!==!1&&_e("button",{type:"button",className:a("mt-0.5 shrink-0 rounded-[var(--radius)] p-1 text-muted-foreground transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",n==="sm"?"[&>svg]:size-3.5":"[&>svg]:size-4"),onClick:()=>i(e.id),"aria-label":"Dismiss",children:_e(iP,{},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 $f from"@radix-ui/react-toggle";import{cva as fP}from"class-variance-authority";import{forwardRef as gP}from"react";import{jsxDEV as bP}from"react/jsx-dev-runtime";var Fi={default:"default",outline:"outline"},aa={sm:"sm",md:"md",lg:"lg"},ia=fP("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] 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:{[Fi.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[Fi.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[aa.sm]:"h-7 px-1.5 min-w-7 text-xs",[aa.md]:"h-10 px-3 min-w-10",[aa.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:Fi.default,size:aa.sm}}),Vf=gP(({className:e,variant:t,size:r,...o},n)=>{let i=f(r);return bP($f.Root,{ref:n,className:a(ia({variant:t,size:i}),e),...o},void 0,!1,void 0,this)});Vf.displayName="Toggle";import*as sa from"@radix-ui/react-toggle-group";import{cva as yP}from"class-variance-authority";import{createContext as vP,forwardRef as Yf,useContext as TP}from"react";import{jsxDEV as Gi}from"react/jsx-dev-runtime";var hP={default:"default",outline:"outline"},PP={sm:"sm",md:"md",lg:"lg"},Xf=yP("flex items-center justify-center gap-1"),Jf=vP({size:PP.sm,variant:hP.default}),qf=Yf(({className:e,variant:t,size:r,children:o,...n},i)=>{let s=f(r);return Gi(sa.Root,{ref:i,className:a(Xf(),e),...n,children:Gi(Jf.Provider,{value:{variant:t,size:s},children:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)});qf.displayName="ToggleGroup";var Qf=Yf(({className:e,children:t,variant:r,size:o,...n},i)=>{let s=TP(Jf),l=f(o);return Gi(sa.Item,{ref:i,className:a(ia({variant:r??s.variant,size:l??s.size}),e),...n,children:t},void 0,!1,void 0,this)});Qf.displayName="ToggleGroupItem";import{cva as Zf}from"class-variance-authority";import{forwardRef as la}from"react";import{jsxDEV as ma}from"react/jsx-dev-runtime";var ut={sm:"sm",md:"md",lg:"lg"},Ef=Zf("flex items-center border-b border-border bg-secondary",{variants:{size:{[ut.sm]:"gap-1.5 px-3 py-1.5",[ut.md]:"gap-2 px-4 py-2",[ut.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:ut.sm}}),Df=la(({className:e,size:t=ut.sm,...r},o)=>{let n=f(t);return ma("div",{ref:o,role:"toolbar",className:a(Ef({size:n}),e),...r},void 0,!1,void 0,this)});Df.displayName="Toolbar";var jf=Zf("flex items-center",{variants:{size:{[ut.sm]:"gap-1",[ut.md]:"gap-1.5",[ut.lg]:"gap-2"}},defaultVariants:{size:ut.sm}}),eg=la(({className:e,size:t=ut.sm,...r},o)=>{let n=f(t);return ma("div",{ref:o,role:"group",className:a(jf({size:n}),e),...r},void 0,!1,void 0,this)});eg.displayName="ToolbarGroup";var tg=la(({className:e,...t},r)=>{return ma("div",{ref:r,role:"none",className:a("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});tg.displayName="ToolbarSeparator";var rg=la(({className:e,...t},r)=>{return ma("div",{ref:r,className:a("flex-1",e),...t},void 0,!1,void 0,this)});rg.displayName="ToolbarSpacer";import*as zt from"@radix-ui/react-tooltip";import{cva as zP}from"class-variance-authority";import{createContext as MP,forwardRef as og,useContext as ng}from"react";import{jsxDEV as fo}from"react/jsx-dev-runtime";var ag=({delayDuration:e,skipDelayDuration:t,...r})=>{let o=be();return fo(zt.Provider,{delayDuration:o?0:e,skipDelayDuration:o?0:t,...r},void 0,!1,void 0,this)};ag.displayName="TooltipProvider";var Oi=MP(!1),ig=({persistOnClick:e=!1,children:t,delayDuration:r,...o})=>{let n=be();return fo(Oi.Provider,{value:e,children:fo(zt.Root,{delayDuration:n?0:r,...o,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)};ig.displayName="Tooltip";var sg=og(({onClick:e,onPointerDown:t,...r},o)=>{let n=ng(Oi);return fo(zt.Trigger,{ref:o,onClick:n?(i)=>{i.preventDefault(),e?.(i)}:e,onPointerDown:n?(i)=>{i.preventDefault(),t?.(i)}:t,...r},void 0,!1,void 0,this)});sg.displayName="TooltipTrigger";var po={sm:F.sm,md:F.md,lg:F.lg},lg=zP("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:{[po.sm]:"px-2 py-1 text-xs",[po.md]:"px-3 py-1.5 text-xs",[po.lg]:"px-4 py-2 text-sm"}},defaultVariants:{size:po.md}}),mg=og(({className:e,sideOffset:t=nt,onPointerDownOutside:r,size:o=po.sm,portal:n=le,portalContainer:i,...s},l)=>{let d=ng(Oi),m=f(o),c=fo(zt.Content,{ref:l,sideOffset:t,className:a(lg({size:m}),e),onPointerDownOutside:d?(u)=>{u.preventDefault(),r?.(u)}:r,...s},void 0,!1,void 0,this);if(!n)return c;return fo(zt.Portal,{container:i??void 0,children:c},void 0,!1,void 0,this)});mg.displayName="TooltipContent";import{createContext as NP,useCallback as or,useContext as LP,useEffect as jo,useInsertionEffect as xP,useLayoutEffect as RP,useMemo as da,useRef as nr,useState as dg}from"react";import{jsxDEV as HP}from"react/jsx-dev-runtime";var CP=typeof window<"u"?RP:jo,wP=typeof window<"u"?xP:jo,_i=NP(null);function ua(e,t){return e.theme===t.theme&&e.colorScheme===t.colorScheme}var Hr=({children:e,value:t,initialState:r,onChange:o,onStateChange:n,transformState:i,readState:s,writeState:l,syncWithSystem:d=!0,enableTransition:m=!1,transitionDuration:c,defaultTheme:u,defaultColorScheme:g,themes:v,attribute:y,colorSchemeAttribute:T,darkClassName:M,storage:z})=>{let p=da(()=>go({defaultTheme:u,defaultColorScheme:g,themes:v,attribute:y,colorSchemeAttribute:T,darkClassName:M,storage:z}),[u,g,v,y,T,M,z]),[h,L]=dg(()=>Mt(typeof window<"u"?ca(p)??r:r,p)),[H,S]=dg(ba),R=da(()=>t?Mt(t,p):null,[t,p])??h,Y=da(()=>({...R,resolvedColorScheme:Wi(R.colorScheme,H)}),[R,H]),K=t!==void 0,X=nr(R);X.current=R;let j=nr(!1),ie=nr(!1),V=nr(!1),re=nr(R),k=nr(null),Z=nr(m);Z.current=m;let x=nr(c);x.current=c;let W=or(($)=>{return fa($)},[]),b=or(($)=>{return ca($)},[]),P=or(($,ue)=>{ga($,ue)},[]),C=s??W,oe=l??P;jo(()=>{if(!d||typeof window>"u"||typeof window.matchMedia!=="function")return;let $=window.matchMedia("(prefers-color-scheme: dark)"),ue=()=>{S($.matches?Nt.dark:Nt.light)};return ue(),$.addEventListener("change",ue),()=>$.removeEventListener("change",ue)},[d]),jo(()=>{if(K)return;L(($)=>{let ue=Mt($,p);return ua($,ue)?$:ue})},[p,K]),CP(()=>{if(K||j.current)return;j.current=!0;let $=C(p)??b(p);if(!$)return;let ue=X.current,se=Mt($,p),Me={reason:"hydrate",previousState:ue},Ue=i?Mt(i(se,Me),p):se;if(ua(ue,Ue))return;k.current=Me,L(Ue),o?.(Ue,Me),n?.(Ue,Me)},[p,K,o,n,b,C,i]),wP(()=>{if(typeof document>"u")return;let $=!V.current;if(V.current=!0,!$&&Z.current&&!To()){let se=x.current??200,Me=document.createElement("style");Me.setAttribute("data-gs-theme-transition",""),Me.textContent=`*, *::before, *::after { transition: color ${se}ms ease, background-color ${se}ms ease, border-color ${se}ms ease, box-shadow ${se}ms ease, fill ${se}ms ease, stroke ${se}ms ease !important; }`,document.head.appendChild(Me),pa(document.documentElement,Y,p);let Ue=requestAnimationFrame(()=>{setTimeout(()=>Me.remove(),se)});return()=>{cancelAnimationFrame(Ue),Me.remove()}}pa(document.documentElement,Y,p);return},[p,Y]),jo(()=>{if(typeof window>"u")return;if(!ie.current){ie.current=!0,re.current=R;return}let $=re.current;if(ua($,R))return;let ue=k.current??{reason:"set-state",previousState:$};k.current=null,oe(R,p,ue),re.current=R},[p,R,oe]);let _=or(($,ue)=>{let se=X.current,Me=typeof $==="function"?$(se):$,Ue=Mt({theme:Me.theme??se.theme,colorScheme:Me.colorScheme??se.colorScheme},p),ct={reason:ue,previousState:se},A=i?Mt(i(Ue,ct),p):Ue;if(ua(se,A))return;if(k.current=ct,!K)L(A);o?.(A,ct),n?.(A,ct)},[p,K,o,n,i]),Ce=or(($)=>{_($,"set-state")},[_]),O=or(($)=>{_({theme:$},"set-theme")},[_]),ae=or(($)=>{_({colorScheme:$},"set-color-scheme")},[_]),Lt=or(()=>{let $=Y.resolvedColorScheme===Nt.dark?Nt.light:Nt.dark;_({colorScheme:$},"toggle-color-scheme")},[Y.resolvedColorScheme,_]),ot=da(()=>({theme:R.theme,colorScheme:R.colorScheme,resolvedColorScheme:Y.resolvedColorScheme,state:R,resolvedState:Y,contract:p,themes:p.themes,setTheme:O,setColorScheme:ae,setState:Ce,toggleColorScheme:Lt}),[R,Y,p,O,ae,Ce,Lt]);return HP(_i.Provider,{value:ot,children:e},void 0,!1,void 0,this)};Hr.displayName="ThemeProvider";var ya=()=>{let e=LP(_i);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e};import{jsxDEV as va}from"react/jsx-dev-runtime";function ha(e){return typeof e==="object"&&e!==null}function It(e){return typeof e==="string"&&e.trim().length>0}function ug(e){if(!ha(e))return!1;return Object.values(e).every(It)}function pg(e){if(!ha(e))return!1;if(!ug(e.light))return!1;if(e.dark===void 0)return!0;return ug(e.dark)}function fg(e){return ha(e)&&It(e.cssText)}function kP(e){return ha(e)&&It(e.theme)}function Ui(e){return Error(`Invalid theme registry definition: ${e}`)}function cg(e){let t=new Set,r=[];for(let o of e){if(!It(o)||t.has(o))continue;t.add(o),r.push(o)}return r}function SP(e){return e.filter(It).join(`
|
|
5
5
|
|
|
6
|
-
`)}function SP(e){let t=[],r=[],o=[];for(let[n,i]of Object.entries(e)){if(!It(n))continue;if(t.push(n),It(i)){o.push(i);continue}if(fg(i)){o.push(i.cssText);continue}if(pg(i)){r.push({theme:n,light:i.light,dark:i.dark});continue}throw Ui(`record key "${n}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function AP(e){let t=[],r=[],o=[];for(let n of e){if(It(n)){t.push(n);continue}if(!HP(n))throw Ui("array entry must be a theme name or an object with `theme`");let i=n.theme;if(t.push(i),fg(n)){o.push(n.cssText);continue}if(pg(n)){r.push({theme:i,light:n.light,dark:n.dark});continue}throw Ui(`array entry "${i}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function BP(e){if(Array.isArray(e))return AP(e);return SP(e)}function gg(e){return e}function Ki(e){let{themes:t,cssText:r,...o}=e,n=BP(t),i=cg(n.themeNames),s=go({...o,themes:i}),l=Ta({themes:n.tokenDefinitions,attribute:s.attribute,darkClassName:s.darkClassName}),d=kP([l,...n.cssBlocks,r??""]),m=cg(s.themes);if(m.length===0)m.push(s.defaultTheme);return{defaultTheme:s.defaultTheme,themes:m,cssText:d,contract:s}}function Pa({registry:e,children:t,...r}){return va(Cr,{defaultTheme:e.defaultTheme,themes:e.themes,attribute:e.contract.attribute,colorSchemeAttribute:e.contract.colorSchemeAttribute,darkClassName:e.contract.darkClassName,storage:e.contract.storage,...r,children:t},void 0,!1,void 0,this)}Pa.displayName="ThemeRegistryProvider";function za({registry:e,id:t,nonce:r,media:o}){if(!It(e.cssText))return null;return va("style",{id:t,nonce:r,media:o,children:e.cssText},void 0,!1,void 0,this)}za.displayName="ThemeStyles";function bg(e){let t=Ki(e),{themes:r,cssText:o,...n}=e;return{registry:t,provider:({children:d,...m})=>{return va(Pa,{registry:t,...n,...m,children:d},void 0,!1,void 0,this)},styles:(d={})=>{return va(za,{registry:t,...d},void 0,!1,void 0,this)},useTheme:()=>{let d=ya(),m=(g)=>{return t.themes.some((v)=>v===g)},c=(g)=>{return m(g)?g:t.defaultTheme},u=(g)=>{if(typeof g==="function"){d.setState((v)=>{let b={...v,theme:c(v.theme)},T=g(b);return{theme:c(T.theme??b.theme),colorScheme:T.colorScheme??b.colorScheme}});return}d.setState({theme:c(g.theme??d.state.theme),colorScheme:g.colorScheme??d.state.colorScheme})};return{...d,theme:c(d.theme),state:{...d.state,theme:c(d.state.theme)},resolvedState:{...d.resolvedState,theme:c(d.resolvedState.theme)},themes:t.themes,setTheme:(g)=>{d.setTheme(g)},setState:u}}}}import{jsxDEV as IP}from"react/jsx-dev-runtime";var wg="ghostly-solutions",Hg=Nt.system;function kg({children:e,defaultTheme:t=wg,defaultColorScheme:r=Hg,...o}){return IP(Cr,{defaultTheme:t,defaultColorScheme:r,...o,children:e},void 0,!1,void 0,this)}kg.displayName="UIProvider";import*as ar from"react";var FP=()=>{};function GP({prop:e,defaultProp:t,onChange:r=FP}){let[o,n]=OP({defaultProp:t,onChange:r}),i=e!==void 0,s=i?e:o,l=ar.useCallback((d)=>{if(i){let c=typeof d==="function"?d(e):d;if(c!==e)r(c)}else n(d)},[i,e,n,r]);return[s,l]}function OP({defaultProp:e,onChange:t}){let r=ar.useState(e),[o]=r,n=ar.useRef(o),i=t;return ar.useEffect(()=>{if(n.current!==o)i?.(o),n.current=o},[o,i]),r}export{ga as writeThemeStateToBrowserStorage,Ai as useToast,ya as useTheme,be as useReducedMotion,Ao as usePlatform,GT as useOverlay,xo as useHotkey,ko as useFormField,f as useDensitySize,Bg as useDensity,GP as useControllableState,kt as useComposedRefs,vy as useCommandShortcut,vn as useCommand,Ub as useBreadcrumbStore,lg as tooltipContentVariants,Ef as toolbarVariants,jf as toolbarGroupVariants,ia as toggleVariants,Xf as toggleGroupVariants,Ci as toastVariants,wi as toastActionVariants,Of as toast,yf as timelineVariants,zf as timelineTitleVariants,Nf as timelineTimeVariants,vf as timelineItemVariants,hf as timelineDotVariants,Mf as timelineDescriptionVariants,Pf as timelineContentVariants,Tf as timelineConnectorVariants,gf as textareaVariants,df as tabsTriggerVariants,mf as tabsListVariants,uf as tabsContentVariants,Yp as tableVariants,Qp as tableRowVariants,Xp as tableHeaderVariants,Zp as tableHeadVariants,qp as tableFooterVariants,Vp as tableContainerVariants,Ep as tableCellVariants,Dp as tableCaptionVariants,Jp as tableBodyVariants,Up as switchVariants,xp as stepperVariants,Rp as stepVariants,kp as stepTitleVariants,Cp as stepIndicatorVariants,Sp as stepDescriptionVariants,Hp as stepContentVariants,wp as stepConnectorVariants,En as spotlightStatusVariants,Dn as spotlightStatusTitleVariants,zp as spotlightStatusDescriptionVariants,Pp as spotlightShortcutVariants,fp as spotlightResultsVariants,mp as spotlightPanelVariants,lp as spotlightOverlayVariants,bp as spotlightOptionVariants,Tp as spotlightOptionTitleVariants,yp as spotlightOptionIconVariants,hp as spotlightOptionDescriptionVariants,vp as spotlightOptionContentVariants,cp as spotlightInputVariants,pp as spotlightIconVariants,up as spotlightHeaderVariants,gp as spotlightGroupLabelVariants,dp as spotlightDrawerPanelVariants,tp as sliderVariants,rp as sliderTrackVariants,np as sliderThumbVariants,op as sliderRangeVariants,qc as skeletonVariants,Qc as skeletonTextVariants,Ec as skeletonButtonVariants,Zc as skeletonAvatarVariants,xu as sheetOverlayVariants,Ru as sheetContentVariants,eb as setReducedMotion,Ng as serializeThemeState,Ga as serializeBreadcrumbItems,Xc as separatorVariants,Wc as selectTriggerVariants,_c as selectContentVariants,Cc as segmentedControlVariants,Hc as segmentedControlLabelVariants,wc as segmentedControlItemVariants,zc as scrollBarVariants,Mc as scrollBarThumbVariants,Pc as scrollAreaVariants,xg as resolveThemeState,cc as resizablePanelVariants,uc as resizablePanelGroupVariants,pc as resizableHandleVariants,fc as resizableHandleIconVariants,fa as readThemeStateFromBrowserStorage,oc as radioItemVariants,rc as radioGroupVariants,Eu as progressVariants,Du as progressIndicatorVariants,Qr as popoverContentVariants,Lg as parseThemeState,Ka as parseHotkey,Wu as paginationVariants,An as paginationLinkVariants,Uu as paginationItemVariants,Ku as paginationEllipsisVariants,_u as paginationContentVariants,Tu as otpSlotVariants,zu as otpSeparatorVariants,Pu as otpPlaceholderVariants,hu as otpInputVariants,vu as otpGroupVariants,yu as otpContainerVariants,Mt as normalizeThemeState,Fa as normalizeBreadcrumbItems,au as navigationMenuViewportVariants,eu as navigationMenuVariants,ru as navigationMenuTriggerVariants,tu as navigationMenuListVariants,nu as navigationMenuLinkVariants,iu as navigationMenuIndicatorVariants,ou as navigationMenuContentVariants,Gd as navbarVariants,Ud as navbarLinkVariants,_d as navbarItemVariants,$d as navbarDividerVariants,Wd as navbarContentVariants,Od as navbarBrandVariants,Kd as navbarActionsVariants,Id as multiselectTriggerVariants,Mp as matchesQuery,$a as matchHotkey,wd as labelVariants,Xr as kbdVariants,Fr as isSameDay,Md as inputVariants,Td as hoverCardContentVariants,QP as hotkey,Rg as getThemeRootProps,ba as getSystemColorScheme,jn as formatHotkeyTokens,Rn as formatHotkey,cd as formFieldVariants,ed as fileUploadVariants,ei as fileUploadTextVariants,rd as fileUploadListVariants,od as fileUploadItemVariants,ad as fileUploadItemSizeVariants,id as fileUploadItemRemoveVariants,nd as fileUploadItemNameVariants,td as fileUploadIconVariants,Xm as errorBoundaryVariants,qm as errorBoundaryTitleVariants,Jm as errorBoundaryIconVariants,Em as errorBoundaryDetailsVariants,Qm as errorBoundaryDescriptionVariants,Zm as errorBoundaryActionsVariants,Wm as emptyStateVariants,Um as emptyStateTitleVariants,_m as emptyStateIconVariants,Km as emptyStateDescriptionVariants,$m as emptyStateActionsVariants,Cm as dropdownMenuShortcutVariants,Rm as dropdownMenuSeparatorVariants,Lm as dropdownMenuRadioItemVariants,xm as dropdownMenuLabelVariants,ja as dropdownMenuItemVariants,Da as dropdownMenuContentVariants,Nm as dropdownMenuCheckboxItemVariants,bm as drawerOverlayVariants,Qa as drawerHandleVariants,ym as drawerContentVariants,dm as dialogContentVariants,ri as detectPlatform,gg as defineThemes,U1 as cva,Ta as createThemesCss,bg as createThemeSystem,Ki as createThemeRegistry,Cg as createThemeCss,go as createThemeContract,DP as createOptionalContext,EP as createContext,Zl as contextMenuShortcutVariants,Ql as contextMenuSeparatorVariants,Jl as contextMenuRadioItemVariants,ql as contextMenuLabelVariants,Ja as contextMenuItemVariants,Xa as contextMenuContentVariants,Xl as contextMenuCheckboxItemVariants,ZP as composeRefs,Sl as commandShortcutVariants,kl as commandSeparatorVariants,Nl as commandOverlayVariants,Al as commandLoadingVariants,xl as commandListVariants,Hl as commandItemVariants,Ll as commandInputVariants,Cl as commandGroupVariants,wl as commandGroupHeadingVariants,Rl as commandEmptyVariants,Ml as commandDialogVariants,Tl as collapsibleContentVariants,Oa as collapseBreadcrumbItems,dl as codeBlockVariants,gl as codeBlockPreVariants,bl as codeBlockLineVariants,yl as codeBlockLineNumberVariants,cl as codeBlockLanguageVariants,ul as codeBlockHeaderVariants,pl as codeBlockCopyVariants,fl as codeBlockContentVariants,a as cn,sl as checkboxVariants,js as cardVariants,Zs as calendarWeekdayVariants,Xs as calendarVariants,qs as calendarTitleVariants,_a as calendarNavButtonVariants,Js as calendarHeaderVariants,Qs as calendarGridVariants,Es as calendarDayVariants,vo as buttonVariants,ns as buttonIconVariants,Us as buttonGroupVariants,as as buttonBadgeVariants,Gs as breadcrumbSeparatorVariants,Fs as breadcrumbPageVariants,As as breadcrumbListVariants,Is as breadcrumbLinkVariants,Bs as breadcrumbItemVariants,Os as breadcrumbEllipsisVariants,ws as badgeVariants,Ls as avatarVariants,Ms as aspectRatioVariants,Ei as alertVariants,Di as alertTitleVariants,cs as alertDialogOverlayVariants,ps as alertDialogContentVariants,ji as alertDescriptionVariants,Yi as accordionTriggerVariants,Vi as accordionItemVariants,Xi as accordionContentVariants,Ug as XCircleIcon,_P as Variant,wg as UI_DEFAULT_THEME,Hg as UI_DEFAULT_COLOR_SCHEME,kg as UIProvider,sg as TooltipTrigger,po as TooltipSize,ag as TooltipProvider,mg as TooltipContent,ig as Tooltip,rg as ToolbarSpacer,ut as ToolbarSize,tg as ToolbarSeparator,eg as ToolbarGroup,Df as Toolbar,Qf as ToggleGroupItem,qf as ToggleGroup,Vf as Toggle,Kf as Toaster,tt as ToastSize,Hf as TimelineTitle,Sf as TimelineTime,xf as TimelineItem,Cf as TimelineDot,kf as TimelineDescription,wf as TimelineContent,Rf as TimelineConnector,Lf as Timeline,za as ThemeStyles,Pa as ThemeRegistryProvider,Cr as ThemeProvider,qP as ThemeColorScheme,bf as Textarea,pf as TabsTrigger,cf as TabsList,ff as TabsContent,$h as Tabs,Ie as TableSize,of as TableRow,ef as TableHeader,nf as TableHead,rf as TableFooter,af as TableCell,sf as TableCaption,tf as TableBody,jp as Table,vg as THEME_COLOR_SCHEME_ATTR,yg as THEME_ATTR,mo as SwitchStatus,et as SwitchSize,Kp as Switch,VP as SurfaceStyle,Ap as Stepper,Op as StepTitle,Ip as StepIndicator,Wp as StepDescription,Gp as StepContent,Fp as StepConnector,Bp as Step,UP as Status,Zn as SpotlightStatus,w as SpotlightSize,Np as Spotlight,yo as SpinnerSize,Gt as Spinner,ap as Slider,Dc as SkeletonText,ze as SkeletonSize,ep as SkeletonButton,jc as SkeletonAvatar,Jo as Skeleton,F as Size,eo as Side,CT as SheetTrigger,Su as SheetTitle,he as SheetSize,wu as SheetPortal,li as SheetOverlay,Hu as SheetHeader,ku as SheetFooter,Au as SheetDescription,kn as SheetContent,wT as SheetClose,si as Sheet,Kb as SetBreadcrumbs,Xo as SeparatorOrientation,Jc as Separator,hh as SelectValue,Uc as SelectTrigger,io as SelectStatus,ge as SelectSize,Yc as SelectSeparator,$c as SelectLabel,Vc as SelectItem,Th as SelectGroup,Vo as SelectContentWidthMode,fh as SelectContentAlign,Kc as SelectContent,vh as Select,sh as SegmentedControlSize,Bc as SegmentedControlLabelItem,Ac as SegmentedControlItem,Sc as SegmentedControl,ci as ScrollBar,Nc as ScrollArea,hg as STORAGE_VERSION,zg as STORAGE_THEME_STATE_KEY,Pg as STORAGE_PREFIX,Mg as STORAGE_DENSITY_KEY,yc as ResizablePanelGroup,vc as ResizablePanel,Tc as ResizableHandle,ro as RadioStatus,At as RadioSize,ac as RadioGroupItem,nc as RadioGroup,Ha as REDUCED_MOTION_QUERY,sr as REDUCED_MOTION_ATTRIBUTE,ju as Progress,Yv as PopoverTrigger,qr as PopoverSize,Ad as PopoverContent,Jv as PopoverClose,Xv as PopoverAnchor,Vv as Popover,je as PaginationSize,Ju as PaginationPrevious,qu as PaginationNext,Xu as PaginationLink,Yu as PaginationItem,Qu as PaginationEllipsis,Vu as PaginationContent,$u as Pagination,Ou as OverlayProvider,XP as Orientation,Gu as OVERLAY_REMOVE_DELAY_DEFAULT,Mu as OTPInput,ai as NavigationMenuViewport,du as NavigationMenuTrigger,lt as NavigationMenuSize,lu as NavigationMenuList,cu as NavigationMenuLink,mu as NavigationMenuItem,pu as NavigationMenuIndicator,uu as NavigationMenuContent,su as NavigationMenu,Zd as NavbarLink,Qd as NavbarItem,Dd as NavbarDivider,qd as NavbarContent,Jd as NavbarBrand,Ed as NavbarActions,Xd as Navbar,te as MultiselectSize,Fd as Multiselect,$P as MotionLevel,kd as Loader,Jr as LabelSize,Hd as Label,Sg as Key,Yr as KbdSize,Rd as Kbd,Nd as Input,_g as InfoIcon,Hr as IconSize,Tv as HoverCardTrigger,Vr as HoverCardSize,Pd as HoverCardContent,hd as HoverCard,WP as HotkeyModifierKey,Sg as HotkeyKey,Lo as GroupOrientation,Ze as FormFieldSize,fd as FormFieldLabel,yd as FormFieldError,bd as FormFieldDescription,vd as FormFieldControl,pd as FormField,sd as FileUpload,Dm as ErrorBoundary,Vm as EmptyState,YP as EmphasisLevel,jy as DropdownMenuTrigger,Hm as DropdownMenuSubTrigger,km as DropdownMenuSubContent,rv as DropdownMenuSub,Om as DropdownMenuShortcut,Gm as DropdownMenuSeparator,Im as DropdownMenuRadioItem,ov as DropdownMenuRadioGroup,tv as DropdownMenuPortal,Fm as DropdownMenuLabel,Ln as DropdownMenuItemVariant,Am as DropdownMenuItem,ev as DropdownMenuGroup,Sm as DropdownMenuContent,Bm as DropdownMenuCheckboxItem,Dy as DropdownMenu,Vy as DrawerTrigger,zm as DrawerTitle,bt as DrawerSize,vm as DrawerPortal,Ea as DrawerOverlay,hm as DrawerHeader,Pm as DrawerFooter,Mm as DrawerDescription,Tm as DrawerContent,Yy as DrawerClose,$y as Drawer,Gy as DialogTrigger,Mn as DialogTitle,pr as DialogSize,Pn as DialogPortal,Co as DialogOverlay,um as DialogHeader,cm as DialogFooter,pm as DialogDescription,qa as DialogContentPrimitive,zn as DialogContent,Oy as DialogClose,Ro as Dialog,KP as Density,Ag as DENSITY_DEFAULT,Eg as DEMO_REDUCED_MOTION_ATTRIBUTE,Tg as DARK_CLASS,Ly as ContextMenuTrigger,jl as ContextMenuSubTrigger,em as ContextMenuSubContent,Cy as ContextMenuSub,sm as ContextMenuShortcut,im as ContextMenuSeparator,nm as ContextMenuRadioItem,wy as ContextMenuRadioGroup,Ry as ContextMenuPortal,am as ContextMenuLabel,Tn as ContextMenuItemVariant,rm as ContextMenuItem,xy as ContextMenuGroup,tm as ContextMenuContent,om as ContextMenuCheckboxItem,Dl as ContextMenu,Kl as CommandShortcut,Ul as CommandSeparator,$l as CommandLoading,Gl as CommandList,yn as CommandItemVariant,_l as CommandItem,Fl as CommandInput,Wl as CommandGroup,Ol as CommandEmpty,Il as CommandDialog,Ya as Command,Nt as ColorScheme,my as CollapsibleTrigger,hl as CollapsibleContent,ly as Collapsible,vl as CodeBlock,_r as CheckboxStatus,wt as CheckboxSize,ll as Checkbox,Wg as CheckCircleIcon,nl as CardTitle,tl as CardHeader,ol as CardFooter,al as CardDescription,rl as CardContent,el as Card,Ds as Calendar,ss as ButtonLabel,is as ButtonIcon,Ks as ButtonGroup,ls as ButtonBadge,ms as Button,_b as BreadcrumbStoreProvider,ye as BreadcrumbSize,No as BreadcrumbSeparator,dn as BreadcrumbPage,mn as BreadcrumbList,Mo as BreadcrumbLink,zo as BreadcrumbItem,un as BreadcrumbEllipsis,$b as BreadcrumbDisplay,ln as Breadcrumb,we as BadgeVariant,Ot as BadgeTone,_t as BadgeSize,Ss as BadgeGroup,ho as Badge,Vb as BREADCRUMB_DEFAULT_COLLAPSE_CONFIG,ft as AvatarSize,xs as AvatarImage,Rs as AvatarGroup,Ba as AvatarFallback,Aa as Avatar,Ns as AspectRatio,JP as Align,Og as AlertTriangleIcon,ts as AlertTitle,mb as AlertDialogTrigger,Ts as AlertDialogTitle,lr as AlertDialogSize,gs as AlertDialogPortal,ka as AlertDialogOverlay,ys as AlertDialogHeader,vs as AlertDialogFooter,hs as AlertDialogDescription,bs as AlertDialogContent,zs as AlertDialogCancel,Ps as AlertDialogAction,lb as AlertDialog,rs as AlertDescription,es as Alert,Qi as AccordionTrigger,Fe as AccordionSize,qi as AccordionItem,Zi as AccordionContent,Ji as Accordion};
|
|
6
|
+
`)}function AP(e){let t=[],r=[],o=[];for(let[n,i]of Object.entries(e)){if(!It(n))continue;if(t.push(n),It(i)){o.push(i);continue}if(fg(i)){o.push(i.cssText);continue}if(pg(i)){r.push({theme:n,light:i.light,dark:i.dark});continue}throw Ui(`record key "${n}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function BP(e){let t=[],r=[],o=[];for(let n of e){if(It(n)){t.push(n);continue}if(!kP(n))throw Ui("array entry must be a theme name or an object with `theme`");let i=n.theme;if(t.push(i),fg(n)){o.push(n.cssText);continue}if(pg(n)){r.push({theme:i,light:n.light,dark:n.dark});continue}throw Ui(`array entry "${i}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function IP(e){if(Array.isArray(e))return BP(e);return AP(e)}function gg(e){return e}function Ki(e){let{themes:t,cssText:r,...o}=e,n=IP(t),i=cg(n.themeNames),s=go({...o,themes:i}),l=Ta({themes:n.tokenDefinitions,attribute:s.attribute,darkClassName:s.darkClassName}),d=SP([l,...n.cssBlocks,r??""]),m=cg(s.themes);if(m.length===0)m.push(s.defaultTheme);return{defaultTheme:s.defaultTheme,themes:m,cssText:d,contract:s}}function Pa({registry:e,children:t,...r}){return va(Hr,{defaultTheme:e.defaultTheme,themes:e.themes,attribute:e.contract.attribute,colorSchemeAttribute:e.contract.colorSchemeAttribute,darkClassName:e.contract.darkClassName,storage:e.contract.storage,...r,children:t},void 0,!1,void 0,this)}Pa.displayName="ThemeRegistryProvider";function za({registry:e,id:t,nonce:r,media:o}){if(!It(e.cssText))return null;return va("style",{id:t,nonce:r,media:o,children:e.cssText},void 0,!1,void 0,this)}za.displayName="ThemeStyles";function bg(e){let t=Ki(e),{themes:r,cssText:o,...n}=e;return{registry:t,provider:({children:d,...m})=>{return va(Pa,{registry:t,...n,...m,children:d},void 0,!1,void 0,this)},styles:(d={})=>{return va(za,{registry:t,...d},void 0,!1,void 0,this)},useTheme:()=>{let d=ya(),m=(g)=>{return t.themes.some((v)=>v===g)},c=(g)=>{return m(g)?g:t.defaultTheme},u=(g)=>{if(typeof g==="function"){d.setState((v)=>{let y={...v,theme:c(v.theme)},T=g(y);return{theme:c(T.theme??y.theme),colorScheme:T.colorScheme??y.colorScheme}});return}d.setState({theme:c(g.theme??d.state.theme),colorScheme:g.colorScheme??d.state.colorScheme})};return{...d,theme:c(d.theme),state:{...d.state,theme:c(d.state.theme)},resolvedState:{...d.resolvedState,theme:c(d.resolvedState.theme)},themes:t.themes,setTheme:(g)=>{d.setTheme(g)},setState:u}}}}import{jsxDEV as FP}from"react/jsx-dev-runtime";var wg="ghostly-solutions",Hg=Nt.system;function kg({children:e,defaultTheme:t=wg,defaultColorScheme:r=Hg,...o}){return FP(Hr,{defaultTheme:t,defaultColorScheme:r,...o,children:e},void 0,!1,void 0,this)}kg.displayName="UIProvider";import*as ar from"react";var GP=()=>{};function OP({prop:e,defaultProp:t,onChange:r=GP}){let[o,n]=WP({defaultProp:t,onChange:r}),i=e!==void 0,s=i?e:o,l=ar.useCallback((d)=>{if(i){let c=typeof d==="function"?d(e):d;if(c!==e)r(c)}else n(d)},[i,e,n,r]);return[s,l]}function WP({defaultProp:e,onChange:t}){let r=ar.useState(e),[o]=r,n=ar.useRef(o),i=t;return ar.useEffect(()=>{if(n.current!==o)i?.(o),n.current=o},[o,i]),r}export{ga as writeThemeStateToBrowserStorage,Ai as useToast,ya as useTheme,be as useReducedMotion,Ao as usePlatform,OT as useOverlay,xo as useHotkey,ko as useFormField,f as useDensitySize,Bg as useDensity,OP as useControllableState,kt as useComposedRefs,vy as useCommandShortcut,vn as useCommand,Ub as useBreadcrumbStore,lg as tooltipContentVariants,Ef as toolbarVariants,jf as toolbarGroupVariants,ia as toggleVariants,Xf as toggleGroupVariants,Ci as toastVariants,wi as toastActionVariants,Of as toast,yf as timelineVariants,zf as timelineTitleVariants,Nf as timelineTimeVariants,vf as timelineItemVariants,hf as timelineDotVariants,Mf as timelineDescriptionVariants,Pf as timelineContentVariants,Tf as timelineConnectorVariants,gf as textareaVariants,df as tabsTriggerVariants,mf as tabsListVariants,uf as tabsContentVariants,Yp as tableVariants,Qp as tableRowVariants,Xp as tableHeaderVariants,Zp as tableHeadVariants,qp as tableFooterVariants,Vp as tableContainerVariants,Ep as tableCellVariants,Dp as tableCaptionVariants,Jp as tableBodyVariants,Up as switchVariants,xp as stepperVariants,Rp as stepVariants,kp as stepTitleVariants,Cp as stepIndicatorVariants,Sp as stepDescriptionVariants,Hp as stepContentVariants,wp as stepConnectorVariants,En as spotlightStatusVariants,Dn as spotlightStatusTitleVariants,zp as spotlightStatusDescriptionVariants,Pp as spotlightShortcutVariants,fp as spotlightResultsVariants,mp as spotlightPanelVariants,lp as spotlightOverlayVariants,bp as spotlightOptionVariants,Tp as spotlightOptionTitleVariants,yp as spotlightOptionIconVariants,hp as spotlightOptionDescriptionVariants,vp as spotlightOptionContentVariants,cp as spotlightInputVariants,pp as spotlightIconVariants,up as spotlightHeaderVariants,gp as spotlightGroupLabelVariants,dp as spotlightDrawerPanelVariants,tp as sliderVariants,rp as sliderTrackVariants,np as sliderThumbVariants,op as sliderRangeVariants,qc as skeletonVariants,Qc as skeletonTextVariants,Ec as skeletonButtonVariants,Zc as skeletonAvatarVariants,xu as sheetOverlayVariants,Ru as sheetContentVariants,eb as setReducedMotion,Ng as serializeThemeState,Ga as serializeBreadcrumbItems,Xc as separatorVariants,Wc as selectTriggerVariants,_c as selectContentVariants,Cc as segmentedControlVariants,Hc as segmentedControlLabelVariants,wc as segmentedControlItemVariants,zc as scrollBarVariants,Mc as scrollBarThumbVariants,Pc as scrollAreaVariants,xg as resolveThemeState,cc as resizablePanelVariants,uc as resizablePanelGroupVariants,pc as resizableHandleVariants,fc as resizableHandleIconVariants,fa as readThemeStateFromBrowserStorage,oc as radioItemVariants,rc as radioGroupVariants,Eu as progressVariants,Du as progressIndicatorVariants,Er as popoverContentVariants,Lg as parseThemeState,Ka as parseHotkey,Wu as paginationVariants,An as paginationLinkVariants,Uu as paginationItemVariants,Ku as paginationEllipsisVariants,_u as paginationContentVariants,Tu as otpSlotVariants,zu as otpSeparatorVariants,Pu as otpPlaceholderVariants,hu as otpInputVariants,vu as otpGroupVariants,yu as otpContainerVariants,Mt as normalizeThemeState,Fa as normalizeBreadcrumbItems,au as navigationMenuViewportVariants,eu as navigationMenuVariants,ru as navigationMenuTriggerVariants,tu as navigationMenuListVariants,nu as navigationMenuLinkVariants,iu as navigationMenuIndicatorVariants,ou as navigationMenuContentVariants,Gd as navbarVariants,Ud as navbarLinkVariants,_d as navbarItemVariants,$d as navbarDividerVariants,Wd as navbarContentVariants,Od as navbarBrandVariants,Kd as navbarActionsVariants,Id as multiselectTriggerVariants,Mp as matchesQuery,$a as matchHotkey,wd as labelVariants,qr as kbdVariants,Or as isSameDay,Md as inputVariants,Td as hoverCardContentVariants,ZP as hotkey,Rg as getThemeRootProps,ba as getSystemColorScheme,jn as formatHotkeyTokens,Rn as formatHotkey,cd as formFieldVariants,ed as fileUploadVariants,ei as fileUploadTextVariants,rd as fileUploadListVariants,od as fileUploadItemVariants,ad as fileUploadItemSizeVariants,id as fileUploadItemRemoveVariants,nd as fileUploadItemNameVariants,td as fileUploadIconVariants,Xm as errorBoundaryVariants,qm as errorBoundaryTitleVariants,Jm as errorBoundaryIconVariants,Em as errorBoundaryDetailsVariants,Qm as errorBoundaryDescriptionVariants,Zm as errorBoundaryActionsVariants,Wm as emptyStateVariants,Um as emptyStateTitleVariants,_m as emptyStateIconVariants,Km as emptyStateDescriptionVariants,$m as emptyStateActionsVariants,Cm as dropdownMenuShortcutVariants,Rm as dropdownMenuSeparatorVariants,Lm as dropdownMenuRadioItemVariants,xm as dropdownMenuLabelVariants,ja as dropdownMenuItemVariants,Da as dropdownMenuContentVariants,Nm as dropdownMenuCheckboxItemVariants,bm as drawerOverlayVariants,Qa as drawerHandleVariants,ym as drawerContentVariants,dm as dialogContentVariants,ri as detectPlatform,gg as defineThemes,K1 as cva,Ta as createThemesCss,bg as createThemeSystem,Ki as createThemeRegistry,Cg as createThemeCss,go as createThemeContract,jP as createOptionalContext,DP as createContext,Zl as contextMenuShortcutVariants,Ql as contextMenuSeparatorVariants,Jl as contextMenuRadioItemVariants,ql as contextMenuLabelVariants,Ja as contextMenuItemVariants,Xa as contextMenuContentVariants,Xl as contextMenuCheckboxItemVariants,EP as composeRefs,Sl as commandShortcutVariants,kl as commandSeparatorVariants,Nl as commandOverlayVariants,Al as commandLoadingVariants,xl as commandListVariants,Hl as commandItemVariants,Ll as commandInputVariants,Cl as commandGroupVariants,wl as commandGroupHeadingVariants,Rl as commandEmptyVariants,Ml as commandDialogVariants,Tl as collapsibleContentVariants,Oa as collapseBreadcrumbItems,dl as codeBlockVariants,gl as codeBlockPreVariants,bl as codeBlockLineVariants,yl as codeBlockLineNumberVariants,cl as codeBlockLanguageVariants,ul as codeBlockHeaderVariants,pl as codeBlockCopyVariants,fl as codeBlockContentVariants,a as cn,sl as checkboxVariants,js as cardVariants,Zs as calendarWeekdayVariants,Xs as calendarVariants,qs as calendarTitleVariants,_a as calendarNavButtonVariants,Js as calendarHeaderVariants,Qs as calendarGridVariants,Es as calendarDayVariants,vo as buttonVariants,ns as buttonIconVariants,Us as buttonGroupVariants,as as buttonBadgeVariants,Gs as breadcrumbSeparatorVariants,Fs as breadcrumbPageVariants,As as breadcrumbListVariants,Is as breadcrumbLinkVariants,Bs as breadcrumbItemVariants,Os as breadcrumbEllipsisVariants,ws as badgeVariants,Ls as avatarVariants,Ms as aspectRatioVariants,Ei as alertVariants,Di as alertTitleVariants,cs as alertDialogOverlayVariants,ps as alertDialogContentVariants,ji as alertDescriptionVariants,Yi as accordionTriggerVariants,Vi as accordionItemVariants,Xi as accordionContentVariants,Ug as XCircleIcon,UP as Variant,wg as UI_DEFAULT_THEME,Hg as UI_DEFAULT_COLOR_SCHEME,kg as UIProvider,sg as TooltipTrigger,po as TooltipSize,ag as TooltipProvider,mg as TooltipContent,ig as Tooltip,rg as ToolbarSpacer,ut as ToolbarSize,tg as ToolbarSeparator,eg as ToolbarGroup,Df as Toolbar,Qf as ToggleGroupItem,qf as ToggleGroup,Vf as Toggle,Kf as Toaster,tt as ToastSize,Hf as TimelineTitle,Sf as TimelineTime,xf as TimelineItem,Cf as TimelineDot,kf as TimelineDescription,wf as TimelineContent,Rf as TimelineConnector,Lf as Timeline,za as ThemeStyles,Pa as ThemeRegistryProvider,Hr as ThemeProvider,QP as ThemeColorScheme,bf as Textarea,pf as TabsTrigger,cf as TabsList,ff as TabsContent,Vh as Tabs,Ie as TableSize,of as TableRow,ef as TableHeader,nf as TableHead,rf as TableFooter,af as TableCell,sf as TableCaption,tf as TableBody,jp as Table,vg as THEME_COLOR_SCHEME_ATTR,yg as THEME_ATTR,Rr as SwitchStatus,et as SwitchSize,Kp as Switch,YP as SurfaceStyle,Ap as Stepper,Op as StepTitle,Ip as StepIndicator,Wp as StepDescription,Gp as StepContent,Fp as StepConnector,Bp as Step,KP as Status,Zn as SpotlightStatus,w as SpotlightSize,Np as Spotlight,yo as SpinnerSize,Gt as Spinner,ap as Slider,Dc as SkeletonText,ze as SkeletonSize,ep as SkeletonButton,jc as SkeletonAvatar,Jo as Skeleton,F as Size,ro as Side,wT as SheetTrigger,Su as SheetTitle,he as SheetSize,wu as SheetPortal,li as SheetOverlay,Hu as SheetHeader,ku as SheetFooter,Au as SheetDescription,kn as SheetContent,HT as SheetClose,si as Sheet,Kb as SetBreadcrumbs,Xo as SeparatorOrientation,Jc as Separator,Ph as SelectValue,Uc as SelectTrigger,so as SelectStatus,ge as SelectSize,Yc as SelectSeparator,$c as SelectLabel,Vc as SelectItem,hh as SelectGroup,Vo as SelectContentWidthMode,gh as SelectContentAlign,Kc as SelectContent,Th as Select,lh as SegmentedControlSize,Bc as SegmentedControlLabelItem,Ac as SegmentedControlItem,Sc as SegmentedControl,ci as ScrollBar,Nc as ScrollArea,hg as STORAGE_VERSION,zg as STORAGE_THEME_STATE_KEY,Pg as STORAGE_PREFIX,Mg as STORAGE_DENSITY_KEY,yc as ResizablePanelGroup,vc as ResizablePanel,Tc as ResizableHandle,Mr as RadioStatus,At as RadioSize,ac as RadioGroupItem,nc as RadioGroup,Ha as REDUCED_MOTION_QUERY,sr as REDUCED_MOTION_ATTRIBUTE,ju as Progress,Xv as PopoverTrigger,Zr as PopoverSize,Ad as PopoverContent,qv as PopoverClose,Jv as PopoverAnchor,Yv as Popover,je as PaginationSize,Ju as PaginationPrevious,qu as PaginationNext,Xu as PaginationLink,Yu as PaginationItem,Qu as PaginationEllipsis,Vu as PaginationContent,$u as Pagination,Ou as OverlayProvider,JP as Orientation,Gu as OVERLAY_REMOVE_DELAY_DEFAULT,Mu as OTPInput,ai as NavigationMenuViewport,du as NavigationMenuTrigger,lt as NavigationMenuSize,lu as NavigationMenuList,cu as NavigationMenuLink,mu as NavigationMenuItem,pu as NavigationMenuIndicator,uu as NavigationMenuContent,su as NavigationMenu,Zd as NavbarLink,Qd as NavbarItem,Dd as NavbarDivider,qd as NavbarContent,Jd as NavbarBrand,Ed as NavbarActions,Xd as Navbar,te as MultiselectSize,Fd as Multiselect,VP as MotionLevel,kd as Loader,Qr as LabelSize,Hd as Label,Sg as Key,Jr as KbdSize,Rd as Kbd,Nd as Input,_g as InfoIcon,Sr as IconSize,Tv as HoverCardTrigger,Xr as HoverCardSize,Pd as HoverCardContent,hd as HoverCard,_P as HotkeyModifierKey,Sg as HotkeyKey,Lo as GroupOrientation,Ze as FormFieldSize,fd as FormFieldLabel,yd as FormFieldError,bd as FormFieldDescription,vd as FormFieldControl,pd as FormField,sd as FileUpload,Dm as ErrorBoundary,Vm as EmptyState,XP as EmphasisLevel,jy as DropdownMenuTrigger,Hm as DropdownMenuSubTrigger,km as DropdownMenuSubContent,rv as DropdownMenuSub,Om as DropdownMenuShortcut,Gm as DropdownMenuSeparator,Im as DropdownMenuRadioItem,ov as DropdownMenuRadioGroup,tv as DropdownMenuPortal,Fm as DropdownMenuLabel,Ln as DropdownMenuItemVariant,Am as DropdownMenuItem,ev as DropdownMenuGroup,Sm as DropdownMenuContent,Bm as DropdownMenuCheckboxItem,Dy as DropdownMenu,Vy as DrawerTrigger,zm as DrawerTitle,bt as DrawerSize,vm as DrawerPortal,Ea as DrawerOverlay,hm as DrawerHeader,Pm as DrawerFooter,Mm as DrawerDescription,Tm as DrawerContent,Yy as DrawerClose,$y as Drawer,Gy as DialogTrigger,Mn as DialogTitle,pr as DialogSize,Pn as DialogPortal,Co as DialogOverlay,um as DialogHeader,cm as DialogFooter,pm as DialogDescription,qa as DialogContentPrimitive,zn as DialogContent,Oy as DialogClose,Ro as Dialog,$P as Density,Ag as DENSITY_DEFAULT,Eg as DEMO_REDUCED_MOTION_ATTRIBUTE,Tg as DARK_CLASS,Ly as ContextMenuTrigger,jl as ContextMenuSubTrigger,em as ContextMenuSubContent,Cy as ContextMenuSub,sm as ContextMenuShortcut,im as ContextMenuSeparator,nm as ContextMenuRadioItem,wy as ContextMenuRadioGroup,Ry as ContextMenuPortal,am as ContextMenuLabel,Tn as ContextMenuItemVariant,rm as ContextMenuItem,xy as ContextMenuGroup,tm as ContextMenuContent,om as ContextMenuCheckboxItem,Dl as ContextMenu,Kl as CommandShortcut,Ul as CommandSeparator,$l as CommandLoading,Gl as CommandList,yn as CommandItemVariant,_l as CommandItem,Fl as CommandInput,Wl as CommandGroup,Ol as CommandEmpty,Il as CommandDialog,Ya as Command,Nt as ColorScheme,my as CollapsibleTrigger,hl as CollapsibleContent,ly as Collapsible,vl as CodeBlock,Kr as CheckboxStatus,wt as CheckboxSize,ll as Checkbox,Wg as CheckCircleIcon,nl as CardTitle,tl as CardHeader,ol as CardFooter,al as CardDescription,rl as CardContent,el as Card,Ds as Calendar,ss as ButtonLabel,is as ButtonIcon,Ks as ButtonGroup,ls as ButtonBadge,ms as Button,_b as BreadcrumbStoreProvider,ye as BreadcrumbSize,No as BreadcrumbSeparator,dn as BreadcrumbPage,mn as BreadcrumbList,Mo as BreadcrumbLink,zo as BreadcrumbItem,un as BreadcrumbEllipsis,$b as BreadcrumbDisplay,ln as Breadcrumb,we as BadgeVariant,Ot as BadgeTone,_t as BadgeSize,Ss as BadgeGroup,ho as Badge,Vb as BREADCRUMB_DEFAULT_COLLAPSE_CONFIG,ft as AvatarSize,xs as AvatarImage,Rs as AvatarGroup,Ba as AvatarFallback,Aa as Avatar,Ns as AspectRatio,qP as Align,Og as AlertTriangleIcon,ts as AlertTitle,mb as AlertDialogTrigger,Ts as AlertDialogTitle,lr as AlertDialogSize,gs as AlertDialogPortal,ka as AlertDialogOverlay,ys as AlertDialogHeader,vs as AlertDialogFooter,hs as AlertDialogDescription,bs as AlertDialogContent,zs as AlertDialogCancel,Ps as AlertDialogAction,lb as AlertDialog,rs as AlertDescription,es as Alert,Qi as AccordionTrigger,Fe as AccordionSize,qi as AccordionItem,Zi as AccordionContent,Ji as Accordion};
|