@vasf/ragnar-core 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion.d.ts +7 -0
- package/dist/components/alert-dialog.d.ts +20 -0
- package/dist/components/alert.d.ts +8 -0
- package/dist/components/aspect-ratio.d.ts +3 -0
- package/dist/components/avatar.d.ts +6 -0
- package/dist/components/badge.d.ts +9 -0
- package/dist/components/banner.d.ts +14 -0
- package/dist/components/breadcrumb.d.ts +19 -0
- package/dist/components/button.d.ts +11 -0
- package/dist/components/calendar.d.ts +8 -0
- package/dist/components/card.d.ts +8 -0
- package/dist/components/carousel.d.ts +18 -0
- package/dist/components/checkbox.d.ts +4 -0
- package/dist/components/code-block.d.ts +26 -0
- package/dist/components/collapsible.d.ts +5 -0
- package/dist/components/command.d.ts +80 -0
- package/dist/components/context-menu.d.ts +27 -0
- package/dist/components/credit-card-input.d.ts +28 -0
- package/dist/components/date-picker.d.ts +26 -0
- package/dist/components/datetime-picker.d.ts +12 -0
- package/dist/components/decimal-input.d.ts +41 -0
- package/dist/components/dialog.d.ts +19 -0
- package/dist/components/drawer.d.ts +33 -0
- package/dist/components/dropdown-menu.d.ts +27 -0
- package/dist/components/email-input.d.ts +7 -0
- package/dist/components/fieldset.d.ts +5 -0
- package/dist/components/file-input.d.ts +30 -0
- package/dist/components/form-label.d.ts +15 -0
- package/dist/components/hover-card.d.ts +6 -0
- package/dist/components/input-otp.d.ts +23 -0
- package/dist/components/input.d.ts +5 -0
- package/dist/components/kbd.d.ts +24 -0
- package/dist/components/link.d.ts +13 -0
- package/dist/components/media.d.ts +15 -0
- package/dist/components/menubar.d.ts +28 -0
- package/dist/components/multi-select.d.ts +19 -0
- package/dist/components/navigation-drawer.d.ts +29 -0
- package/dist/components/navigation-menu.d.ts +12 -0
- package/dist/components/number-input.d.ts +13 -0
- package/dist/components/pagination.d.ts +28 -0
- package/dist/components/password-input.d.ts +14 -0
- package/dist/components/phone-input.d.ts +17 -0
- package/dist/components/pill.d.ts +12 -0
- package/dist/components/popover.d.ts +6 -0
- package/dist/components/progress.d.ts +4 -0
- package/dist/components/radio-group.d.ts +5 -0
- package/dist/components/rating.d.ts +12 -0
- package/dist/components/resizable.d.ts +29 -0
- package/dist/components/rich-text.d.ts +16 -0
- package/dist/components/scroll-area.d.ts +5 -0
- package/dist/components/search-input.d.ts +44 -0
- package/dist/components/select.d.ts +13 -0
- package/dist/components/separator.d.ts +4 -0
- package/dist/components/sheet.d.ts +25 -0
- package/dist/components/sidebar.d.ts +51 -0
- package/dist/components/skeleton.d.ts +2 -0
- package/dist/components/slider.d.ts +4 -0
- package/dist/components/sonner.d.ts +4 -0
- package/dist/components/spinner.d.ts +9 -0
- package/dist/components/stepper.d.ts +21 -0
- package/dist/components/switch.d.ts +4 -0
- package/dist/components/table.d.ts +10 -0
- package/dist/components/tabs.d.ts +7 -0
- package/dist/components/textarea.d.ts +3 -0
- package/dist/components/time-picker.d.ts +18 -0
- package/dist/components/timeline.d.ts +37 -0
- package/dist/components/toggle-group.d.ts +12 -0
- package/dist/components/toggle.d.ts +12 -0
- package/dist/components/tooltip.d.ts +7 -0
- package/dist/components/tree-view.d.ts +19 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.ts +71 -0
- package/dist/index.js +7537 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/styles.css +90 -0
- package/dist/test/setup.d.ts +1 -0
- package/package.json +108 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),Rn=require("react"),Cn=require("@radix-ui/react-accordion"),f=require("lucide-react"),En=require("clsx"),Tn=require("tailwind-merge"),H=require("class-variance-authority"),kn=require("@radix-ui/react-alert-dialog"),Te=require("@radix-ui/react-slot"),In=require("@radix-ui/react-aspect-ratio"),An=require("@radix-ui/react-avatar"),Dn=require("react-day-picker"),Pn=require("embla-carousel-react"),Mn=require("@radix-ui/react-checkbox"),dt=require("prismjs"),Ln=require("@radix-ui/react-collapsible"),K=require("cmdk"),_n=require("@radix-ui/react-dialog"),On=require("@radix-ui/react-context-menu"),xe=require("date-fns"),Fn=require("@radix-ui/react-popover"),zn=require("@radix-ui/react-select"),Bn=require("@radix-ui/react-dropdown-menu"),Hn=require("@radix-ui/react-hover-card"),Un=require("@radix-ui/react-menubar"),Gn=require("@radix-ui/react-navigation-menu"),$n=require("@radix-ui/react-progress"),Vn=require("@radix-ui/react-radio-group"),ct=require("@tiptap/react"),qn=require("@tiptap/starter-kit"),Kn=require("@tiptap/extension-placeholder"),Xn=require("@radix-ui/react-toggle"),Yn=require("@radix-ui/react-separator"),Zn=require("@radix-ui/react-scroll-area"),Wn=require("@radix-ui/react-slider"),Jn=require("sonner"),Qn=require("@radix-ui/react-switch"),eo=require("@radix-ui/react-tabs"),to=require("@radix-ui/react-toggle-group"),ao=require("@radix-ui/react-tooltip");function F(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(a,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return a.default=t,Object.freeze(a)}const s=F(Rn),se=F(Cn),q=F(kn),ro=F(In),ce=F(An),Le=F(Mn),de=F(Ln),M=F(_n),_=F(On),Ne=F(Fn),B=F(zn),O=F(Bn),ke=F(Hn),D=F(Un),X=F(Gn),_e=F($n),ve=F(Vn),mt=F(Xn),pt=F(Yn),re=F(Zn),pe=F(Wn),Oe=F(Qn),oe=F(eo),Ie=F(to),we=F(ao);function o(...t){return Tn.twMerge(En.clsx(t))}const so=se.Root,ft=s.forwardRef(({className:t,...a},r)=>e.jsx(se.Item,{ref:r,className:o("border-b border-[var(--container-border-alt)]",t),...a}));ft.displayName="AccordionItem";const gt=s.forwardRef(({className:t,children:a,...r},n)=>e.jsx(se.Header,{className:"flex",children:e.jsxs(se.Trigger,{ref:n,className:o("font-[var(--font-heading)] font-weight-bold text-[var(--container-fg)] flex flex-1 items-center justify-between py-4 transition-all hover:underline [&[data-state=open]>svg]:rotate-180",t),...r,children:[a,e.jsx(f.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));gt.displayName=se.Trigger.displayName;const xt=s.forwardRef(({className:t,children:a,...r},n)=>e.jsx(se.Content,{ref:n,className:"overflow-hidden text-[var(--container-fg-alt)] text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:e.jsx("div",{className:o("pb-4 pt-0",t),children:a})}));xt.displayName=se.Content.displayName;const no=H.cva("relative w-full rounded-[var(--curves-xl)] border p-[var(--spacing-xs)] [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",success:"border-green-500/50 text-green-700 dark:text-green-400 [&>svg]:text-green-600",warning:"border-yellow-500/50 text-yellow-700 dark:text-yellow-400 [&>svg]:text-yellow-600",info:"border-blue-500/50 text-blue-700 dark:text-blue-400 [&>svg]:text-blue-600"}},defaultVariants:{variant:"default"}}),bt=s.forwardRef(({className:t,variant:a,...r},n)=>e.jsx("div",{ref:n,role:"alert",className:o(no({variant:a}),t),...r}));bt.displayName="Alert";const ht=s.forwardRef(({className:t,...a},r)=>e.jsx("h5",{ref:r,className:o("font-heading mb-1 font-medium leading-none tracking-tight",t),...a}));ht.displayName="AlertTitle";const Nt=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("text-sm [&_p]:leading-relaxed",t),...a}));Nt.displayName="AlertDescription";const ee=H.cva("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Q=s.forwardRef(({className:t,variant:a,size:r,asChild:n=!1,...i},u)=>{const c=n?Te.Slot:"button";return e.jsx(c,{className:o(ee({variant:a,size:r,className:t})),ref:u,...i})});Q.displayName="Button";const oo=q.Root,io=q.Trigger,vt=q.Portal,ze=s.forwardRef(({className:t,...a},r)=>e.jsx(q.Overlay,{className:o("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...a,ref:r}));ze.displayName=q.Overlay.displayName;const wt=s.forwardRef(({className:t,...a},r)=>e.jsxs(vt,{children:[e.jsx(ze,{}),e.jsx(q.Content,{ref:r,className:o("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...a})]}));wt.displayName=q.Content.displayName;const yt=({className:t,...a})=>e.jsx("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",t),...a});yt.displayName="AlertDialogHeader";const jt=({className:t,...a})=>e.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a});jt.displayName="AlertDialogFooter";const St=s.forwardRef(({className:t,...a},r)=>e.jsx(q.Title,{ref:r,className:o("font-heading text-lg font-semibold",t),...a}));St.displayName=q.Title.displayName;const Rt=s.forwardRef(({className:t,...a},r)=>e.jsx(q.Description,{ref:r,className:o("text-sm text-muted-foreground",t),...a}));Rt.displayName=q.Description.displayName;const Ct=s.forwardRef(({className:t,...a},r)=>e.jsx(q.Action,{ref:r,className:o(ee(),t),...a}));Ct.displayName=q.Action.displayName;const Et=s.forwardRef(({className:t,...a},r)=>e.jsx(q.Cancel,{ref:r,className:o(ee({variant:"outline"}),"mt-2 sm:mt-0",t),...a}));Et.displayName=q.Cancel.displayName;const lo=ro.Root,Tt=s.forwardRef(({className:t,...a},r)=>e.jsx(ce.Root,{ref:r,className:o("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...a}));Tt.displayName=ce.Root.displayName;const kt=s.forwardRef(({className:t,...a},r)=>e.jsx(ce.Image,{ref:r,className:o("aspect-square h-full w-full",t),...a}));kt.displayName=ce.Image.displayName;const It=s.forwardRef(({className:t,...a},r)=>e.jsx(ce.Fallback,{ref:r,className:o("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...a}));It.displayName=ce.Fallback.displayName;const At=H.cva("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Fe({className:t,variant:a,...r}){return e.jsx("div",{className:o(At({variant:a}),t),...r})}const Dt=H.cva("relative flex items-center gap-4 w-full px-4 py-3 text-sm",{variants:{variant:{default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",destructive:"bg-destructive text-destructive-foreground",warning:"bg-yellow-500 text-white",success:"bg-green-500 text-white",info:"bg-blue-500 text-white"},position:{top:"fixed top-0 left-0 right-0 z-50",bottom:"fixed bottom-0 left-0 right-0 z-50",inline:"relative"}},defaultVariants:{variant:"default",position:"inline"}}),Pt=s.forwardRef(({className:t,variant:a,position:r,icon:n,action:i,dismissible:u=!1,onDismiss:c,children:p,...m},d)=>e.jsxs("div",{ref:d,role:"banner",className:o(Dt({variant:a,position:r}),t),...m,children:[n&&e.jsx("span",{className:"shrink-0",children:n}),e.jsx("div",{className:"flex-1",children:p}),i&&e.jsx("div",{className:"shrink-0",children:i}),u&&e.jsx("button",{type:"button",onClick:c,className:"shrink-0 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2","aria-label":"Dismiss banner",children:e.jsx(f.X,{className:"h-4 w-4"})})]}));Pt.displayName="Banner";const Mt=s.forwardRef(({...t},a)=>e.jsx("nav",{ref:a,"aria-label":"breadcrumb",...t}));Mt.displayName="Breadcrumb";const Lt=s.forwardRef(({className:t,...a},r)=>e.jsx("ol",{ref:r,className:o("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",t),...a}));Lt.displayName="BreadcrumbList";const _t=s.forwardRef(({className:t,...a},r)=>e.jsx("li",{ref:r,className:o("inline-flex items-center gap-1.5",t),...a}));_t.displayName="BreadcrumbItem";const Ot=s.forwardRef(({asChild:t,className:a,...r},n)=>{const i=t?Te.Slot:"a";return e.jsx(i,{ref:n,className:o("transition-colors hover:text-foreground",a),...r})});Ot.displayName="BreadcrumbLink";const Ft=s.forwardRef(({className:t,...a},r)=>e.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:o("font-normal text-foreground",t),...a}));Ft.displayName="BreadcrumbPage";const zt=({children:t,className:a,...r})=>e.jsx("li",{role:"presentation","aria-hidden":"true",className:o("[&>svg]:h-3.5 [&>svg]:w-3.5",a),...r,children:t??e.jsx(f.ChevronRight,{})});zt.displayName="BreadcrumbSeparator";const Bt=({className:t,...a})=>e.jsxs("span",{role:"presentation","aria-hidden":"true",className:o("flex h-9 w-9 items-center justify-center",t),...a,children:[e.jsx(f.MoreHorizontal,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"More"})]});Bt.displayName="BreadcrumbEllipsis";function ye({className:t,classNames:a,showOutsideDays:r=!0,...n}){return e.jsx(Dn.DayPicker,{showOutsideDays:r,className:o("p-3",t),classNames:{months:"flex flex-col sm:flex-row gap-4",month:"flex flex-col gap-4",month_caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"flex items-center gap-1",button_previous:o(ee({variant:"outline"}),"absolute left-1 h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),button_next:o(ee({variant:"outline"}),"absolute right-1 h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),month_grid:"w-full border-collapse space-y-1",weekdays:"flex",weekday:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",week:"flex w-full mt-2",day:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day_button:o(ee({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),range_end:"day-range-end",selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",today:"bg-accent text-accent-foreground",outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",disabled:"text-muted-foreground opacity-50",range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",hidden:"invisible",...a},components:{Chevron:({orientation:i})=>i==="left"?e.jsx(f.ChevronLeft,{className:"h-4 w-4"}):e.jsx(f.ChevronRight,{className:"h-4 w-4"})},...n})}ye.displayName="Calendar";const Ht=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("rounded-lg border bg-card text-card-foreground shadow-sm",t),...a}));Ht.displayName="Card";const Ut=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("flex flex-col space-y-1.5 p-6",t),...a}));Ut.displayName="CardHeader";const Gt=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("font-heading text-2xl font-semibold leading-none tracking-tight",t),...a}));Gt.displayName="CardTitle";const $t=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("text-sm text-muted-foreground",t),...a}));$t.displayName="CardDescription";const Vt=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("p-6 pt-0",t),...a}));Vt.displayName="CardContent";const qt=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("flex items-center p-6 pt-0",t),...a}));qt.displayName="CardFooter";const Kt=s.createContext(null);function Ae(){const t=s.useContext(Kt);if(!t)throw new Error("useCarousel must be used within a <Carousel />");return t}const Xt=s.forwardRef(({orientation:t="horizontal",opts:a,setApi:r,plugins:n,className:i,children:u,...c},p)=>{const[m,d]=Pn({...a,axis:t==="horizontal"?"x":"y"},n),[l,g]=s.useState(!1),[b,N]=s.useState(!1),S=s.useCallback(h=>{h&&(g(h.canScrollPrev()),N(h.canScrollNext()))},[]),y=s.useCallback(()=>{d==null||d.scrollPrev()},[d]),R=s.useCallback(()=>{d==null||d.scrollNext()},[d]),x=s.useCallback(h=>{h.key==="ArrowLeft"?(h.preventDefault(),y()):h.key==="ArrowRight"&&(h.preventDefault(),R())},[y,R]);return s.useEffect(()=>{!d||!r||r(d)},[d,r]),s.useEffect(()=>{if(d)return S(d),d.on("reInit",S),d.on("select",S),()=>{d==null||d.off("select",S)}},[d,S]),e.jsx(Kt.Provider,{value:{carouselRef:m,api:d,opts:a,orientation:t||((a==null?void 0:a.axis)==="y"?"vertical":"horizontal"),scrollPrev:y,scrollNext:R,canScrollPrev:l,canScrollNext:b},children:e.jsx("div",{ref:p,onKeyDownCapture:x,className:o("relative",i),role:"region","aria-roledescription":"carousel",...c,children:u})})});Xt.displayName="Carousel";const Yt=s.forwardRef(({className:t,...a},r)=>{const{carouselRef:n,orientation:i}=Ae();return e.jsx("div",{ref:n,className:"overflow-hidden",children:e.jsx("div",{ref:r,className:o("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col",t),...a})})});Yt.displayName="CarouselContent";const Zt=s.forwardRef(({className:t,...a},r)=>{const{orientation:n}=Ae();return e.jsx("div",{ref:r,role:"group","aria-roledescription":"slide",className:o("min-w-0 shrink-0 grow-0 basis-full",n==="horizontal"?"pl-4":"pt-4",t),...a})});Zt.displayName="CarouselItem";const Wt=s.forwardRef(({className:t,variant:a="outline",size:r="icon",...n},i)=>{const{orientation:u,scrollPrev:c,canScrollPrev:p}=Ae();return e.jsxs(Q,{ref:i,variant:a,size:r,className:o("absolute h-8 w-8 rounded-full",u==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!p,onClick:c,...n,children:[e.jsx(f.ArrowLeft,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Wt.displayName="CarouselPrevious";const Jt=s.forwardRef(({className:t,variant:a="outline",size:r="icon",...n},i)=>{const{orientation:u,scrollNext:c,canScrollNext:p}=Ae();return e.jsxs(Q,{ref:i,variant:a,size:r,className:o("absolute h-8 w-8 rounded-full",u==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!p,onClick:c,...n,children:[e.jsx(f.ArrowRight,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Next slide"})]})});Jt.displayName="CarouselNext";const Qt=s.forwardRef(({className:t,...a},r)=>e.jsx(Le.Root,{ref:r,className:o("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",t),...a,children:e.jsx(Le.Indicator,{className:o("flex items-center justify-center text-current"),children:e.jsx(f.Check,{className:"h-4 w-4"})})}));Qt.displayName=Le.Root.displayName;Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;(function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var a=t.languages.extend("typescript",{});delete a["class-name"],t.languages.typescript["class-name"].inside=a,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:a}}}}),t.languages.ts=t.languages.typescript})(Prism);(function(t){var a=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,n=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(m,d){return m=m.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return n}).replace(/<SPREAD>/g,function(){return i}),RegExp(m,d)}i=u(i).source,t.languages.jsx=t.languages.extend("markup",a),t.languages.jsx.tag.pattern=u(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=a.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:u(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:u(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var c=function(m){return m?typeof m=="string"?m:typeof m.content=="string"?m.content:m.content.map(c).join(""):""},p=function(m){for(var d=[],l=0;l<m.length;l++){var g=m[l],b=!1;if(typeof g!="string"&&(g.type==="tag"&&g.content[0]&&g.content[0].type==="tag"?g.content[0].content[0].content==="</"?d.length>0&&d[d.length-1].tagName===c(g.content[0].content[1])&&d.pop():g.content[g.content.length-1].content==="/>"||d.push({tagName:c(g.content[0].content[1]),openedBraces:0}):d.length>0&&g.type==="punctuation"&&g.content==="{"?d[d.length-1].openedBraces++:d.length>0&&d[d.length-1].openedBraces>0&&g.type==="punctuation"&&g.content==="}"?d[d.length-1].openedBraces--:b=!0),(b||typeof g=="string")&&d.length>0&&d[d.length-1].openedBraces===0){var N=c(g);l<m.length-1&&(typeof m[l+1]=="string"||m[l+1].type==="plain-text")&&(N+=c(m[l+1]),m.splice(l+1,1)),l>0&&(typeof m[l-1]=="string"||m[l-1].type==="plain-text")&&(N=c(m[l-1])+N,m.splice(l-1,1),l--),m[l]=new t.Token("plain-text",N,null,N)}g.content&&typeof g.content!="string"&&p(g.content)}};t.hooks.add("after-tokenize",function(m){m.language!=="jsx"&&m.language!=="tsx"||p(m.tokens)})})(Prism);(function(t){var a=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",a),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0})(Prism);(function(t){var a=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+a.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+a.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+a.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+a.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:a,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(Prism);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;(function(t){var a="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,environment:{pattern:RegExp("\\$"+a),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+a),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+a),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+a),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],u=n.variable[1].inside,c=0;c<i.length;c++)u[i[c]]=t.languages.bash[i[c]];t.languages.sh=t.languages.bash,t.languages.shell=t.languages.bash})(Prism);Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;(function(t){var a=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[n,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:n.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:n.inside}],keyword:a,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":n,keyword:a,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:n.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:n.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return a.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism);Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/});Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}});delete Prism.languages.go["class-name"];(function(t){for(var a=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,r=0;r<2;r++)a=a.replace(/<self>/g,function(){return a});a=a.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+a),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(Prism);Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};(function(t){var a=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(l){return l=l.replace(/<inner>/g,function(){return a}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var n=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return n}),u=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+u+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+u+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+u+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(n),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(l){["url","bold","italic","strike","code-snippet"].forEach(function(g){l!==g&&(t.languages.markdown[l].inside.content.inside[g]=t.languages.markdown[g])})}),t.hooks.add("after-tokenize",function(l){if(l.language!=="markdown"&&l.language!=="md")return;function g(b){if(!(!b||typeof b=="string"))for(var N=0,S=b.length;N<S;N++){var y=b[N];if(y.type!=="code"){g(y.content);continue}var R=y.content[1],x=y.content[3];if(R&&x&&R.type==="code-language"&&x.type==="code-block"&&typeof R.content=="string"){var h=R.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");h=(/[a-z][\w-]*/i.exec(h)||[""])[0].toLowerCase();var j="language-"+h;x.alias?typeof x.alias=="string"?x.alias=[x.alias,j]:x.alias.push(j):x.alias=[j]}}}g(l.tokens)}),t.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var g="",b=0,N=l.classes.length;b<N;b++){var S=l.classes[b],y=/language-(.+)/.exec(S);if(y){g=y[1];break}}var R=t.languages[g];if(R)l.content=t.highlight(d(l.content),R,g);else if(g&&g!=="none"&&t.plugins.autoloader){var x="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);l.attributes.id=x,t.plugins.autoloader.loadLanguages(g,function(){var h=document.getElementById(x);h&&(h.innerHTML=t.highlight(h.textContent,t.languages[g],g))})}}});var c=RegExp(t.languages.markup.tag.pattern.source,"gi"),p={amp:"&",lt:"<",gt:">",quot:'"'},m=String.fromCodePoint||String.fromCharCode;function d(l){var g=l.replace(c,"");return g=g.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(b,N){if(N=N.toLowerCase(),N[0]==="#"){var S;return N[1]==="x"?S=parseInt(N.slice(2),16):S=Number(N.slice(1)),m(S)}else{var y=p[N];return y||b}}),g}t.languages.md=t.languages.markdown})(Prism);(function(t){var a=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,n="(?:"+r.source+"(?:[ ]+"+a.source+")?|"+a.source+"(?:[ ]+"+r.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),u=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function c(p,m){m=(m||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return n}).replace(/<<value>>/g,function(){return p});return RegExp(d,m)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return n})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return n}).replace(/<<key>>/g,function(){return"(?:"+i+"|"+u+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:c(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:c(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:c(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:c(u),lookbehind:!0,greedy:!0},number:{pattern:c(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:a,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(Prism);const ea=s.forwardRef(({className:t,code:a,language:r="text",showLineNumbers:n=!1,showCopyButton:i=!0,filename:u,highlightLines:c=[],...p},m)=>{const[d,l]=s.useState(!1),[g,b]=s.useState("");s.useEffect(()=>{if(r!=="text"){const y=dt.languages[r];b(y?dt.highlight(a,y,r):a)}else b(a)},[a,r]);const N=async()=>{await navigator.clipboard.writeText(a),l(!0),setTimeout(()=>l(!1),2e3)},S=g.split(`
|
|
2
|
+
`);return e.jsxs("div",{ref:m,className:o("relative rounded-lg border bg-muted/50 text-sm",t),...p,children:[(u||i)&&e.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-2",children:[u&&e.jsx("span",{className:"text-xs text-muted-foreground",children:u}),i&&e.jsx("button",{type:"button",onClick:N,className:"ml-auto flex items-center gap-1 rounded px-2 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground",children:d?e.jsxs(e.Fragment,{children:[e.jsx(f.Check,{className:"h-3 w-3"}),"Copied"]}):e.jsxs(e.Fragment,{children:[e.jsx(f.Copy,{className:"h-3 w-3"}),"Copy"]})})]}),e.jsx("div",{className:"overflow-x-auto p-4",children:e.jsx("pre",{className:"font-mono text-sm",children:e.jsx("code",{children:S.map((y,R)=>e.jsxs("div",{className:o("leading-6",c.includes(R+1)&&"bg-yellow-500/20 -mx-4 px-4"),children:[n&&e.jsx("span",{className:"mr-4 inline-block w-8 select-none text-right text-muted-foreground",children:R+1}),e.jsx("span",{dangerouslySetInnerHTML:{__html:y||" "}})]},R))})})})]})});ea.displayName="CodeBlock";const co=de.Root,uo=de.CollapsibleTrigger,mo=de.CollapsibleContent,ta=M.Root,po=M.Trigger,aa=M.Portal,fo=M.Close,Be=s.forwardRef(({className:t,...a},r)=>e.jsx(M.Overlay,{ref:r,className:o("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...a}));Be.displayName=M.Overlay.displayName;const He=s.forwardRef(({className:t,children:a,...r},n)=>e.jsxs(aa,{children:[e.jsx(Be,{}),e.jsxs(M.Content,{ref:n,className:o("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...r,children:[a,e.jsxs(M.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e.jsx(f.X,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));He.displayName=M.Content.displayName;const ra=({className:t,...a})=>e.jsx("div",{className:o("flex flex-col space-y-1.5 text-center sm:text-left",t),...a});ra.displayName="DialogHeader";const sa=({className:t,...a})=>e.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a});sa.displayName="DialogFooter";const na=s.forwardRef(({className:t,...a},r)=>e.jsx(M.Title,{ref:r,className:o("font-heading text-lg font-semibold leading-none tracking-tight",t),...a}));na.displayName=M.Title.displayName;const oa=s.forwardRef(({className:t,...a},r)=>e.jsx(M.Description,{ref:r,className:o("text-sm text-muted-foreground",t),...a}));oa.displayName=M.Description.displayName;const De=s.forwardRef(({className:t,...a},r)=>e.jsx(K.Command,{ref:r,className:o("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",t),...a}));De.displayName=K.Command.displayName;const go=({children:t,...a})=>e.jsx(ta,{...a,children:e.jsx(He,{className:"overflow-hidden p-0 shadow-lg",children:e.jsx(De,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t})})}),Ue=s.forwardRef(({className:t,...a},r)=>e.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[e.jsx(f.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),e.jsx(K.Command.Input,{ref:r,className:o("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),...a})]}));Ue.displayName=K.Command.Input.displayName;const Ge=s.forwardRef(({className:t,...a},r)=>e.jsx(K.Command.List,{ref:r,className:o("max-h-[300px] overflow-y-auto overflow-x-hidden",t),...a}));Ge.displayName=K.Command.List.displayName;const $e=s.forwardRef((t,a)=>e.jsx(K.Command.Empty,{ref:a,className:"py-6 text-center text-sm",...t}));$e.displayName=K.Command.Empty.displayName;const Ve=s.forwardRef(({className:t,...a},r)=>e.jsx(K.Command.Group,{ref:r,className:o("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",t),...a}));Ve.displayName=K.Command.Group.displayName;const ia=s.forwardRef(({className:t,...a},r)=>e.jsx(K.Command.Separator,{ref:r,className:o("-mx-1 h-px bg-border",t),...a}));ia.displayName=K.Command.Separator.displayName;const qe=s.forwardRef(({className:t,...a},r)=>e.jsx(K.Command.Item,{ref:r,className:o("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t),...a}));qe.displayName=K.Command.Item.displayName;const la=({className:t,...a})=>e.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",t),...a});la.displayName="CommandShortcut";const xo=_.Root,bo=_.Trigger,ho=_.Group,No=_.Portal,vo=_.Sub,wo=_.RadioGroup,da=s.forwardRef(({className:t,inset:a,children:r,...n},i)=>e.jsxs(_.SubTrigger,{ref:i,className:o("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",a&&"pl-8",t),...n,children:[r,e.jsx(f.ChevronRight,{className:"ml-auto h-4 w-4"})]}));da.displayName=_.SubTrigger.displayName;const ca=s.forwardRef(({className:t,...a},r)=>e.jsx(_.SubContent,{ref:r,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...a}));ca.displayName=_.SubContent.displayName;const ua=s.forwardRef(({className:t,...a},r)=>e.jsx(_.Portal,{children:e.jsx(_.Content,{ref:r,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...a})}));ua.displayName=_.Content.displayName;const ma=s.forwardRef(({className:t,inset:a,...r},n)=>e.jsx(_.Item,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a&&"pl-8",t),...r}));ma.displayName=_.Item.displayName;const pa=s.forwardRef(({className:t,children:a,checked:r,...n},i)=>e.jsxs(_.CheckboxItem,{ref:i,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:r,...n,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(_.ItemIndicator,{children:e.jsx(f.Check,{className:"h-4 w-4"})})}),a]}));pa.displayName=_.CheckboxItem.displayName;const fa=s.forwardRef(({className:t,children:a,...r},n)=>e.jsxs(_.RadioItem,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(_.ItemIndicator,{children:e.jsx(f.Circle,{className:"h-2 w-2 fill-current"})})}),a]}));fa.displayName=_.RadioItem.displayName;const ga=s.forwardRef(({className:t,inset:a,...r},n)=>e.jsx(_.Label,{ref:n,className:o("px-2 py-1.5 text-sm font-semibold text-foreground",a&&"pl-8",t),...r}));ga.displayName=_.Label.displayName;const xa=s.forwardRef(({className:t,...a},r)=>e.jsx(_.Separator,{ref:r,className:o("-mx-1 my-1 h-px bg-border",t),...a}));xa.displayName=_.Separator.displayName;const ba=({className:t,...a})=>e.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",t),...a});ba.displayName="ContextMenuShortcut";const yo=[{type:"visa",name:"Visa",pattern:/^4/,cvvLength:3,gaps:[4,8,12],lengths:[16,18,19]},{type:"mastercard",name:"Mastercard",pattern:/^(5[1-5]|2[2-7])/,cvvLength:3,gaps:[4,8,12],lengths:[16]},{type:"amex",name:"American Express",pattern:/^3[47]/,cvvLength:4,gaps:[4,10],lengths:[15]},{type:"discover",name:"Discover",pattern:/^(6011|65|64[4-9])/,cvvLength:3,gaps:[4,8,12],lengths:[16,19]},{type:"diners",name:"Diners Club",pattern:/^(36|38|30[0-5])/,cvvLength:3,gaps:[4,10],lengths:[14,16,19]},{type:"jcb",name:"JCB",pattern:/^35/,cvvLength:3,gaps:[4,8,12],lengths:[16,17,18,19]},{type:"unionpay",name:"UnionPay",pattern:/^62/,cvvLength:3,gaps:[4,8,12],lengths:[16,17,18,19]}];function ha(t){const a=t.replace(/\s/g,"");return yo.find(r=>r.pattern.test(a))}function jo(t,a=[4,8,12]){const r=t.replace(/\D/g,"");let n="",i=0;for(let u=0;u<r.length;u++)i<a.length&&u===a[i]&&(n+=" ",i++),n+=r[u];return n}function So(t){const a=t.replace(/\D/g,"");return a.length>=2?`${a.slice(0,2)}/${a.slice(2,4)}`:a}const Ro=({type:t})=>{const a="h-6 w-6";switch(t){case"visa":return e.jsx("span",{className:o(a,"text-blue-600 font-bold text-xs"),children:"VISA"});case"mastercard":return e.jsxs("div",{className:"flex -space-x-1",children:[e.jsx("div",{className:"h-4 w-4 rounded-full bg-red-500"}),e.jsx("div",{className:"h-4 w-4 rounded-full bg-yellow-500 opacity-80"})]});case"amex":return e.jsx("span",{className:o(a,"text-blue-500 font-bold text-xs"),children:"AMEX"});case"discover":return e.jsx("span",{className:o(a,"text-orange-500 font-bold text-xs"),children:"DISC"});default:return e.jsx(f.CreditCard,{className:o(a,"text-muted-foreground")})}},Ke=s.forwardRef(({className:t,onChange:a,...r},n)=>{const[i,u]=s.useState(""),[c,p]=s.useState("unknown"),m=d=>{const l=d.target.value.replace(/\D/g,""),g=ha(l),b=(g==null?void 0:g.lengths[g.lengths.length-1])||19;if(l.length<=b){const N=jo(l,g==null?void 0:g.gaps);u(N);const S=(g==null?void 0:g.type)||"unknown";p(S),a==null||a(l,S)}};return e.jsxs("div",{className:"relative",children:[e.jsx(f.CreditCard,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx("input",{type:"text",inputMode:"numeric",autoComplete:"cc-number",className:o("flex h-10 w-full rounded-md border border-input bg-background pl-10 pr-12 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 font-mono",t),ref:n,value:i,onChange:m,placeholder:"1234 5678 9012 3456",...r}),e.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2",children:e.jsx(Ro,{type:c})})]})});Ke.displayName="CreditCardNumberInput";const Xe=s.forwardRef(({className:t,onChange:a,...r},n)=>{const[i,u]=s.useState(""),c=p=>{const m=p.target.value.replace(/\D/g,"");if(m.length<=4){const d=So(m);u(d),a==null||a(m)}};return e.jsxs("div",{className:"relative",children:[e.jsx(f.Calendar,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx("input",{type:"text",inputMode:"numeric",autoComplete:"cc-exp",className:o("flex h-10 w-full rounded-md border border-input bg-background pl-10 pr-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 font-mono",t),ref:n,value:i,onChange:c,placeholder:"MM/YY",...r})]})});Xe.displayName="CreditCardExpiryInput";const Ye=s.forwardRef(({className:t,cardType:a="unknown",onChange:r,...n},i)=>{const[u,c]=s.useState(""),p=a==="amex"?4:3,m=d=>{const l=d.target.value.replace(/\D/g,"");l.length<=p&&(c(l),r==null||r(l))};return e.jsxs("div",{className:"relative",children:[e.jsx(f.Lock,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx("input",{type:"text",inputMode:"numeric",autoComplete:"cc-csc",className:o("flex h-10 w-full rounded-md border border-input bg-background pl-10 pr-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 font-mono",t),ref:i,value:u,onChange:m,placeholder:a==="amex"?"1234":"123",maxLength:p,...n})]})});Ye.displayName="CreditCardCVVInput";const Na=s.forwardRef(({className:t,onCardChange:a,disabled:r},n)=>{const[i,u]=s.useState(""),[c,p]=s.useState(""),[m,d]=s.useState(""),[l,g]=s.useState("unknown");return s.useEffect(()=>{const b=ha(i),N=b?b.lengths.includes(i.length):i.length>=13&&i.length<=19,S=c.length===4,y=l==="amex"?m.length===4:m.length===3;a==null||a({number:i,expiry:c,cvv:m,cardType:l,isValid:N&&S&&y})},[i,c,m,l,a]),e.jsxs("div",{ref:n,className:o("space-y-3",t),children:[e.jsx(Ke,{onChange:(b,N)=>{u(b),g(N)},disabled:r}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsx(Xe,{onChange:p,disabled:r}),e.jsx(Ye,{cardType:l,onChange:d,disabled:r})]})]})});Na.displayName="CreditCardInput";const je=Ne.Root,Se=Ne.Trigger,ue=s.forwardRef(({className:t,align:a="center",sideOffset:r=4,...n},i)=>e.jsx(Ne.Portal,{children:e.jsx(Ne.Content,{ref:i,align:a,sideOffset:r,className:o("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n})}));ue.displayName=Ne.Content.displayName;const va=s.forwardRef(({value:t,onChange:a,placeholder:r="Pick a date",disabled:n=!1,className:i,dateFormat:u="PPP"},c)=>{const[p,m]=s.useState(!1);return e.jsxs(je,{open:p,onOpenChange:m,children:[e.jsx(Se,{asChild:!0,children:e.jsxs(Q,{ref:c,variant:"outline",disabled:n,className:o("w-full justify-start text-left font-normal",!t&&"text-muted-foreground",i),children:[e.jsx(f.Calendar,{className:"mr-2 h-4 w-4"}),t?xe.format(t,u):e.jsx("span",{children:r})]})}),e.jsx(ue,{className:"w-auto p-0",align:"start",children:e.jsx(ye,{mode:"single",selected:t,onSelect:d=>{a==null||a(d),m(!1)},initialFocus:!0})})]})});va.displayName="DatePicker";const wa=s.forwardRef(({value:t,onChange:a,placeholder:r="Pick a date range",disabled:n=!1,className:i,dateFormat:u="LLL dd, y"},c)=>{const[p,m]=s.useState(!1);return e.jsxs(je,{open:p,onOpenChange:m,children:[e.jsx(Se,{asChild:!0,children:e.jsxs(Q,{ref:c,variant:"outline",disabled:n,className:o("w-full justify-start text-left font-normal",!(t!=null&&t.from)&&"text-muted-foreground",i),children:[e.jsx(f.Calendar,{className:"mr-2 h-4 w-4"}),t!=null&&t.from?t.to?e.jsxs(e.Fragment,{children:[xe.format(t.from,u)," -"," ",xe.format(t.to,u)]}):xe.format(t.from,u):e.jsx("span",{children:r})]})}),e.jsx(ue,{className:"w-auto p-0",align:"start",children:e.jsx(ye,{mode:"range",defaultMonth:t==null?void 0:t.from,selected:t,onSelect:d=>{a==null||a(d)},numberOfMonths:2,initialFocus:!0})})]})});wa.displayName="DateRangePicker";const fe=B.Root,Co=B.Group,ge=B.Value,ie=s.forwardRef(({className:t,children:a,...r},n)=>e.jsxs(B.Trigger,{ref:n,className:o("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...r,children:[a,e.jsx(B.Icon,{asChild:!0,children:e.jsx(f.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ie.displayName=B.Trigger.displayName;const Ze=s.forwardRef(({className:t,...a},r)=>e.jsx(B.ScrollUpButton,{ref:r,className:o("flex cursor-default items-center justify-center py-1",t),...a,children:e.jsx(f.ChevronUp,{className:"h-4 w-4"})}));Ze.displayName=B.ScrollUpButton.displayName;const We=s.forwardRef(({className:t,...a},r)=>e.jsx(B.ScrollDownButton,{ref:r,className:o("flex cursor-default items-center justify-center py-1",t),...a,children:e.jsx(f.ChevronDown,{className:"h-4 w-4"})}));We.displayName=B.ScrollDownButton.displayName;const le=s.forwardRef(({className:t,children:a,position:r="popper",...n},i)=>e.jsx(B.Portal,{children:e.jsxs(B.Content,{ref:i,className:o("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...n,children:[e.jsx(Ze,{}),e.jsx(B.Viewport,{className:o("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),e.jsx(We,{})]})}));le.displayName=B.Content.displayName;const ya=s.forwardRef(({className:t,...a},r)=>e.jsx(B.Label,{ref:r,className:o("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...a}));ya.displayName=B.Label.displayName;const ae=s.forwardRef(({className:t,children:a,...r},n)=>e.jsxs(B.Item,{ref:n,className:o("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(B.ItemIndicator,{children:e.jsx(f.Check,{className:"h-4 w-4"})})}),e.jsx(B.ItemText,{children:a})]}));ae.displayName=B.Item.displayName;const ja=s.forwardRef(({className:t,...a},r)=>e.jsx(B.Separator,{ref:r,className:o("-mx-1 my-1 h-px bg-muted",t),...a}));ja.displayName=B.Separator.displayName;const Sa=s.forwardRef(({value:t,onChange:a,placeholder:r="Pick date and time",disabled:n=!1,className:i,showSeconds:u=!1,use24Hour:c=!1},p)=>{const[m,d]=s.useState(!1),[l,g]=s.useState(t);s.useEffect(()=>{g(t)},[t]);const b=c?Array.from({length:24},(w,v)=>v):Array.from({length:12},(w,v)=>v+1),N=Array.from({length:60},(w,v)=>v),S=Array.from({length:60},(w,v)=>v),y=w=>{if(w){const v=new Date(w);l&&(v.setHours(l.getHours()),v.setMinutes(l.getMinutes()),v.setSeconds(l.getSeconds())),g(v),a==null||a(v)}},R=(w,v)=>{const I=l?new Date(l):new Date;if(w==="hour"){let C=parseInt(v);if(!c){const E=I.getHours()>=12;E&&C!==12&&(C+=12),!E&&C===12&&(C=0)}I.setHours(C)}else if(w==="minute")I.setMinutes(parseInt(v));else if(w==="second")I.setSeconds(parseInt(v));else if(w==="ampm"){const C=I.getHours();v==="PM"&&C<12?I.setHours(C+12):v==="AM"&&C>=12&&I.setHours(C-12)}g(I),a==null||a(I)},x=()=>{if(!l)return"";const w=l.getHours();return c?w.toString():(w%12||12).toString()},h=()=>l&&l.getHours()>=12?"PM":"AM",j=u?c?"PPP HH:mm:ss":"PPP hh:mm:ss a":c?"PPP HH:mm":"PPP hh:mm a";return e.jsxs(je,{open:m,onOpenChange:d,children:[e.jsx(Se,{asChild:!0,children:e.jsxs(Q,{ref:p,variant:"outline",disabled:n,className:o("w-full justify-start text-left font-normal",!l&&"text-muted-foreground",i),children:[e.jsx(f.Calendar,{className:"mr-2 h-4 w-4"}),l?xe.format(l,j):e.jsx("span",{children:r})]})}),e.jsxs(ue,{className:"w-auto p-0",align:"start",children:[e.jsx(ye,{mode:"single",selected:l,onSelect:y,initialFocus:!0}),e.jsx("div",{className:"border-t p-3",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(f.Clock,{className:"h-4 w-4 text-muted-foreground"}),e.jsxs(fe,{value:x(),onValueChange:w=>R("hour",w),children:[e.jsx(ie,{className:"w-[70px]",children:e.jsx(ge,{placeholder:"HH"})}),e.jsx(le,{children:b.map(w=>e.jsx(ae,{value:w.toString(),children:w.toString().padStart(2,"0")},w))})]}),e.jsx("span",{className:"text-muted-foreground",children:":"}),e.jsxs(fe,{value:(l==null?void 0:l.getMinutes().toString())??"",onValueChange:w=>R("minute",w),children:[e.jsx(ie,{className:"w-[70px]",children:e.jsx(ge,{placeholder:"MM"})}),e.jsx(le,{children:N.map(w=>e.jsx(ae,{value:w.toString(),children:w.toString().padStart(2,"0")},w))})]}),u&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-muted-foreground",children:":"}),e.jsxs(fe,{value:(l==null?void 0:l.getSeconds().toString())??"",onValueChange:w=>R("second",w),children:[e.jsx(ie,{className:"w-[70px]",children:e.jsx(ge,{placeholder:"SS"})}),e.jsx(le,{children:S.map(w=>e.jsx(ae,{value:w.toString(),children:w.toString().padStart(2,"0")},w))})]})]}),!c&&e.jsxs(fe,{value:h(),onValueChange:w=>R("ampm",w),children:[e.jsx(ie,{className:"w-[70px]",children:e.jsx(ge,{})}),e.jsxs(le,{children:[e.jsx(ae,{value:"AM",children:"AM"}),e.jsx(ae,{value:"PM",children:"PM"})]})]})]})})]})]})});Sa.displayName="DateTimePicker";const Ra={USD:{code:"USD",symbol:"$",name:"US Dollar",decimals:2},EUR:{code:"EUR",symbol:"€",name:"Euro",decimals:2},GBP:{code:"GBP",symbol:"£",name:"British Pound",decimals:2},JPY:{code:"JPY",symbol:"¥",name:"Japanese Yen",decimals:0},CNY:{code:"CNY",symbol:"¥",name:"Chinese Yuan",decimals:2},KRW:{code:"KRW",symbol:"₩",name:"South Korean Won",decimals:0},INR:{code:"INR",symbol:"₹",name:"Indian Rupee",decimals:2},BRL:{code:"BRL",symbol:"R$",name:"Brazilian Real",decimals:2},CAD:{code:"CAD",symbol:"CA$",name:"Canadian Dollar",decimals:2},AUD:{code:"AUD",symbol:"A$",name:"Australian Dollar",decimals:2},CHF:{code:"CHF",symbol:"Fr.",name:"Swiss Franc",decimals:2}};function ut(t,a,r,n){const i=t.toFixed(a).split(".");return i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,r),i.join(n)}function Eo(t,a,r){if(!t)return;const n=t.replace(new RegExp(`\\${a}`,"g"),"").replace(r,"."),i=parseFloat(n);return isNaN(i)?void 0:i}const Re=s.forwardRef(({className:t,value:a,onChange:r,decimals:n=2,min:i,max:u,prefix:c,suffix:p,currency:m,unit:d,unitPosition:l="suffix",thousandsSeparator:g=",",decimalSeparator:b=".",allowNegative:N=!1,disabled:S,...y},R)=>{const x=m?Ra[m]:void 0,h=(x==null?void 0:x.decimals)??n,j=c??((x==null?void 0:x.symbol)&&x.symbol),w=p??(d&&l==="suffix"?d:void 0),v=d&&l==="prefix"?d:void 0,[I,C]=s.useState(""),[E,A]=s.useState(!1);s.useEffect(()=>{a!==void 0&&!E&&C(ut(a,h,g,b))},[a,h,g,b,E]);const U=G=>{let z=G.target.value;const W=N?new RegExp(`[^0-9\\${b}-]`,"g"):new RegExp(`[^0-9\\${b}]`,"g");z=z.replace(W,"");const Z=z.split(b);if(Z.length>2&&(z=Z[0]+b+Z.slice(1).join("")),N){const $=z.startsWith("-");z=z.replace(/-/g,""),$&&(z="-"+z)}Z.length===2&&Z[1].length>h&&(z=Z[0]+b+Z[1].slice(0,h)),C(z);const J=Eo(z,g,b);if(J!==void 0){let $=J;i!==void 0&&$<i&&($=i),u!==void 0&&$>u&&($=u),r==null||r($)}else r==null||r(void 0)},k=()=>{A(!0),a!==void 0&&C(a.toString().replace(".",b))},L=()=>{A(!1),a!==void 0&&C(ut(a,h,g,b))};return e.jsxs("div",{className:"relative flex items-center",children:[(j||v)&&e.jsxs("span",{className:"absolute left-3 text-muted-foreground text-sm",children:[j,v]}),e.jsx("input",{type:"text",inputMode:"decimal",className:o("flex h-10 w-full rounded-md border border-input bg-background py-2 text-sm text-right ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 font-mono",(j||v)&&"pl-10",w&&"pr-12",!j&&!v&&"px-3",!w&&"pr-3",t),ref:R,value:I,onChange:U,onFocus:k,onBlur:L,disabled:S,...y}),w&&e.jsx("span",{className:"absolute right-3 text-muted-foreground text-sm",children:w})]})});Re.displayName="DecimalInput";const Ca=s.forwardRef(({currency:t,...a},r)=>e.jsx(Re,{ref:r,currency:t,...a}));Ca.displayName="CurrencyInput";const Ea=s.forwardRef(({min:t=0,max:a=100,decimals:r=1,...n},i)=>e.jsx(Re,{ref:i,suffix:"%",min:t,max:a,decimals:r,...n}));Ea.displayName="PercentageInput";const Ta=s.forwardRef(({unit:t,unitPosition:a="suffix",...r},n)=>e.jsx(Re,{ref:n,unit:t,unitPosition:a,...r}));Ta.displayName="UnitInput";const To=H.cva("fixed z-50 bg-background shadow-lg transition-transform duration-300 ease-in-out",{variants:{side:{left:"inset-y-0 left-0 h-full w-3/4 max-w-sm border-r data-[state=closed]:-translate-x-full data-[state=open]:translate-x-0",right:"inset-y-0 right-0 h-full w-3/4 max-w-sm border-l data-[state=closed]:translate-x-full data-[state=open]:translate-x-0",top:"inset-x-0 top-0 h-auto max-h-[80vh] border-b data-[state=closed]:-translate-y-full data-[state=open]:translate-y-0",bottom:"inset-x-0 bottom-0 h-auto max-h-[80vh] border-t data-[state=closed]:translate-y-full data-[state=open]:translate-y-0"}},defaultVariants:{side:"right"}}),ka=s.createContext(void 0);function Ce(){const t=s.useContext(ka);if(!t)throw new Error("Drawer components must be used within a Drawer");return t}function ko({children:t,open:a,defaultOpen:r=!1,onOpenChange:n}){const[i,u]=s.useState(r),c=a??i,p=n??u;return e.jsx(ka.Provider,{value:{open:c,onOpenChange:p},children:t})}const Ia=s.forwardRef(({onClick:t,...a},r)=>{const{onOpenChange:n}=Ce();return e.jsx("button",{ref:r,onClick:i=>{n(!0),t==null||t(i)},...a})});Ia.displayName="DrawerTrigger";const Aa=s.forwardRef(({onClick:t,...a},r)=>{const{onOpenChange:n}=Ce();return e.jsx("button",{ref:r,onClick:i=>{n(!1),t==null||t(i)},...a})});Aa.displayName="DrawerClose";const Da=({children:t})=>{const{open:a}=Ce();return a?e.jsx(e.Fragment,{children:t}):null},Je=s.forwardRef(({className:t,onClick:a,...r},n)=>{const{open:i,onOpenChange:u}=Ce();return e.jsx("div",{ref:n,className:o("fixed inset-0 z-50 bg-black/80 transition-opacity duration-300",i?"opacity-100":"pointer-events-none opacity-0",t),onClick:c=>{c.target===c.currentTarget&&u(!1),a==null||a(c)},...r})});Je.displayName="DrawerOverlay";const Pa=s.forwardRef(({className:t,side:a,children:r,...n},i)=>{const{open:u,onOpenChange:c}=Ce();return s.useEffect(()=>{const p=m=>{m.key==="Escape"&&c(!1)};return u&&(document.addEventListener("keydown",p),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",p),document.body.style.overflow=""}},[u,c]),e.jsxs(Da,{children:[e.jsx(Je,{}),e.jsx("div",{ref:i,"data-state":u?"open":"closed",className:o(To({side:a}),t),...n,children:r})]})});Pa.displayName="DrawerContent";const Ma=({className:t,...a})=>e.jsx("div",{className:o("flex flex-col space-y-2 p-4",t),...a});Ma.displayName="DrawerHeader";const La=({className:t,...a})=>e.jsx("div",{className:o("mt-auto flex flex-col gap-2 p-4",t),...a});La.displayName="DrawerFooter";const _a=s.forwardRef(({className:t,...a},r)=>e.jsx("h2",{ref:r,className:o("font-heading text-lg font-semibold text-foreground",t),...a}));_a.displayName="DrawerTitle";const Oa=s.forwardRef(({className:t,...a},r)=>e.jsx("p",{ref:r,className:o("text-sm text-muted-foreground",t),...a}));Oa.displayName="DrawerDescription";const Fa=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("mx-auto mt-4 h-1.5 w-12 rounded-full bg-muted",t),...a}));Fa.displayName="DrawerHandle";const Io=O.Root,Ao=O.Trigger,Do=O.Group,Po=O.Portal,Mo=O.Sub,Lo=O.RadioGroup,za=s.forwardRef(({className:t,inset:a,children:r,...n},i)=>e.jsxs(O.SubTrigger,{ref:i,className:o("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",a&&"pl-8",t),...n,children:[r,e.jsx(f.ChevronRight,{className:"ml-auto"})]}));za.displayName=O.SubTrigger.displayName;const Ba=s.forwardRef(({className:t,...a},r)=>e.jsx(O.SubContent,{ref:r,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...a}));Ba.displayName=O.SubContent.displayName;const Ha=s.forwardRef(({className:t,sideOffset:a=4,...r},n)=>e.jsx(O.Portal,{children:e.jsx(O.Content,{ref:n,sideOffset:a,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r})}));Ha.displayName=O.Content.displayName;const Ua=s.forwardRef(({className:t,inset:a,...r},n)=>e.jsx(O.Item,{ref:n,className:o("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",a&&"pl-8",t),...r}));Ua.displayName=O.Item.displayName;const Ga=s.forwardRef(({className:t,children:a,checked:r,...n},i)=>e.jsxs(O.CheckboxItem,{ref:i,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:r,...n,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(O.ItemIndicator,{children:e.jsx(f.Check,{className:"h-4 w-4"})})}),a]}));Ga.displayName=O.CheckboxItem.displayName;const $a=s.forwardRef(({className:t,children:a,...r},n)=>e.jsxs(O.RadioItem,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(O.ItemIndicator,{children:e.jsx(f.Circle,{className:"h-2 w-2 fill-current"})})}),a]}));$a.displayName=O.RadioItem.displayName;const Va=s.forwardRef(({className:t,inset:a,...r},n)=>e.jsx(O.Label,{ref:n,className:o("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",t),...r}));Va.displayName=O.Label.displayName;const qa=s.forwardRef(({className:t,...a},r)=>e.jsx(O.Separator,{ref:r,className:o("-mx-1 my-1 h-px bg-muted",t),...a}));qa.displayName=O.Separator.displayName;const Ka=({className:t,...a})=>e.jsx("span",{className:o("ml-auto text-xs tracking-widest opacity-60",t),...a});Ka.displayName="DropdownMenuShortcut";const _o=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,Xa=s.forwardRef(({className:t,showValidation:a=!1,onValidationChange:r,onChange:n,...i},u)=>{const[c,p]=s.useState(null),[m,d]=s.useState(!1),l=N=>{const S=N.target.value;if(S){const y=_o.test(S);p(y),r==null||r(y)}else p(null),r==null||r(!1);n==null||n(N)},g=N=>{var S;d(!0),(S=i.onBlur)==null||S.call(i,N)},b=a&&m&&c!==null;return e.jsxs("div",{className:"relative",children:[e.jsx(f.Mail,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx("input",{type:"email",className:o("flex h-10 w-full rounded-md border border-input bg-background pl-10 pr-10 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",b&&c&&"border-green-500 focus-visible:ring-green-500",b&&!c&&"border-destructive focus-visible:ring-destructive",t),ref:u,onChange:l,onBlur:g,...i}),b&&e.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2",children:c?e.jsx(f.CheckCircle2,{className:"h-4 w-4 text-green-500"}):e.jsx(f.AlertCircle,{className:"h-4 w-4 text-destructive"})})]})});Xa.displayName="EmailInput";const Ya=s.forwardRef(({className:t,...a},r)=>e.jsx("fieldset",{ref:r,className:o("space-y-4 rounded-lg border p-4",t),...a}));Ya.displayName="Fieldset";const Za=s.forwardRef(({className:t,...a},r)=>e.jsx("legend",{ref:r,className:o("px-2 text-sm font-medium leading-none",t),...a}));Za.displayName="FieldsetLegend";const Wa=s.forwardRef(({className:t,...a},r)=>e.jsx("p",{ref:r,className:o("text-sm text-muted-foreground",t),...a}));Wa.displayName="FieldsetDescription";function Oo(t,a){typeof t=="function"?t(a):t&&(t.current=a)}function Ja(t){const a=t.type.toLowerCase();return a.startsWith("image/")?"image":a.startsWith("video/")?"video":a.startsWith("audio/")?"audio":a.includes("pdf")||a.includes("document")||a.includes("text")||a.includes("spreadsheet")||a.includes("presentation")?"document":a.includes("zip")||a.includes("rar")||a.includes("tar")||a.includes("gzip")||a.includes("7z")?"archive":"other"}function Ee(t){if(t===0)return"0 B";const a=1024,r=["B","KB","MB","GB"],n=Math.floor(Math.log(t)/Math.log(a));return`${parseFloat((t/Math.pow(a,n)).toFixed(1))} ${r[n]}`}const Fo=({type:t})=>{const a="h-8 w-8";switch(t){case"image":return e.jsx(f.Image,{className:o(a,"text-green-500")});case"document":return e.jsx(f.FileText,{className:o(a,"text-blue-500")});case"video":return e.jsx(f.Film,{className:o(a,"text-purple-500")});case"audio":return e.jsx(f.Music,{className:o(a,"text-pink-500")});case"archive":return e.jsx(f.Archive,{className:o(a,"text-yellow-500")});default:return e.jsx(f.File,{className:o(a,"text-gray-500")})}},Pe=s.forwardRef(({className:t,value:a=[],onChange:r,maxFiles:n=1,maxSize:i,accept:u,showPreview:c=!0,variant:p="default",dragActiveText:m="Drop files here",dragInactiveText:d="Drag & drop files here, or click to select",disabled:l,...g},b)=>{const[N,S]=s.useState([]),[y,R]=s.useState(!1),[x,h]=s.useState(null),j=s.useRef(null);s.useEffect(()=>{const k=a.map(L=>({file:L,type:Ja(L),preview:L.type.startsWith("image/")?URL.createObjectURL(L):void 0}));return S(k),()=>{k.forEach(L=>{L.preview&&URL.revokeObjectURL(L.preview)})}},[a]);const w=k=>{if(!k)return;h(null);const L=Array.from(k),G=[];for(const W of L){if(i&&W.size>i){h(`File "${W.name}" exceeds maximum size of ${Ee(i)}`);continue}G.push(W)}const z=n===1?G.slice(0,1):[...a,...G].slice(0,n);r==null||r(z)},v=k=>{w(k.target.files),j.current&&(j.current.value="")},I=k=>{k.preventDefault(),R(!0)},C=k=>{k.preventDefault(),R(!1)},E=k=>{k.preventDefault(),R(!1),l||w(k.dataTransfer.files)},A=k=>{const L=[...a];L.splice(k,1),r==null||r(L)},U=k=>{j.current=k,Oo(b,k)};return p==="dropzone"?e.jsxs("div",{className:o("space-y-3",t),children:[e.jsxs("div",{className:o("relative flex flex-col items-center justify-center rounded-lg border-2 border-dashed p-8 transition-colors",y&&"border-primary bg-primary/5",!y&&"border-muted-foreground/25 hover:border-primary/50",l&&"cursor-not-allowed opacity-50"),onDragOver:I,onDragLeave:C,onDrop:E,onClick:()=>{var k;return!l&&((k=j.current)==null?void 0:k.click())},children:[e.jsx("input",{type:"file",ref:U,className:"sr-only",accept:u,multiple:n>1,onChange:v,disabled:l,...g}),e.jsx(f.Upload,{className:o("h-10 w-10 mb-3",y?"text-primary":"text-muted-foreground")}),e.jsx("p",{className:"text-sm text-center",children:y?m:d}),i&&e.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["Max file size: ",Ee(i)]}),n>1&&e.jsxs("p",{className:"text-xs text-muted-foreground",children:["Max ",n," files"]})]}),x&&e.jsx("p",{className:"text-sm text-destructive",children:x}),c&&N.length>0&&e.jsx("div",{className:"space-y-2",children:N.map((k,L)=>e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border bg-muted/50",children:[k.preview?e.jsx("img",{src:k.preview,alt:k.file.name,className:"h-12 w-12 rounded object-cover"}):e.jsx(Fo,{type:k.type}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-medium truncate",children:k.file.name}),e.jsx("p",{className:"text-xs text-muted-foreground",children:Ee(k.file.size)})]}),e.jsx("button",{type:"button",className:"p-1 hover:bg-background rounded",onClick:G=>{G.stopPropagation(),A(L)},children:e.jsx(f.X,{className:"h-4 w-4"})})]},L))})]}):e.jsxs("div",{className:o("space-y-2",t),children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:"file",ref:U,className:"sr-only",accept:u,multiple:n>1,onChange:v,disabled:l,...g}),e.jsxs("button",{type:"button",className:o("flex h-10 items-center gap-2 rounded-md border border-input bg-background px-4 py-2 text-sm ring-offset-background hover:bg-accent",l&&"cursor-not-allowed opacity-50"),onClick:()=>{var k;return!l&&((k=j.current)==null?void 0:k.click())},disabled:l,children:[e.jsx(f.Upload,{className:"h-4 w-4"}),"Choose ",n>1?"files":"file"]}),N.length>0&&!c&&e.jsxs("span",{className:"flex items-center text-sm text-muted-foreground",children:[N.length," file",N.length>1?"s":""," selected"]})]}),x&&e.jsx("p",{className:"text-sm text-destructive",children:x}),c&&N.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2",children:N.map((k,L)=>e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 rounded-full border bg-muted/50 text-sm",children:[k.preview?e.jsx("img",{src:k.preview,alt:k.file.name,className:"h-5 w-5 rounded object-cover"}):e.jsx(f.File,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("span",{className:"max-w-[150px] truncate",children:k.file.name}),e.jsx("button",{type:"button",className:"p-0.5 hover:bg-background rounded-full",onClick:()=>A(L),children:e.jsx(f.X,{className:"h-3 w-3"})})]},L))})]})});Pe.displayName="FileInput";const Qa=s.forwardRef(({acceptedFormats:t=["image/jpeg","image/png","image/gif","image/webp"],...a},r)=>e.jsx(Pe,{ref:r,accept:t.join(","),...a}));Qa.displayName="ImageInput";const er=s.forwardRef(({acceptedFormats:t=["application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","text/plain"],...a},r)=>e.jsx(Pe,{ref:r,accept:t.join(","),...a}));er.displayName="DocumentInput";const tr=H.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{required:{true:"after:ml-0.5 after:text-destructive after:content-['*']",false:""}},defaultVariants:{required:!1}}),ar=s.forwardRef(({className:t,required:a,optional:r,hint:n,children:i,...u},c)=>e.jsxs("div",{className:"flex items-baseline gap-2",children:[e.jsx("label",{ref:c,className:o(tr({required:a}),t),...u,children:i}),r&&e.jsx("span",{className:"text-xs text-muted-foreground",children:"(optional)"}),n&&e.jsx("span",{className:"text-xs text-muted-foreground",children:n})]}));ar.displayName="FormLabel";const rr=s.forwardRef(({className:t,...a},r)=>e.jsx("p",{ref:r,className:o("text-sm text-muted-foreground",t),...a}));rr.displayName="FormDescription";const sr=s.forwardRef(({className:t,error:a=!0,...r},n)=>e.jsx("p",{ref:n,className:o("text-sm",a?"text-destructive":"text-muted-foreground",t),...r}));sr.displayName="FormMessage";const zo=ke.Root,Bo=ke.Trigger,nr=s.forwardRef(({className:t,align:a="center",sideOffset:r=4,...n},i)=>e.jsx(ke.Content,{ref:i,align:a,sideOffset:r,className:o("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n}));nr.displayName=ke.Content.displayName;const or=s.forwardRef(({className:t,type:a,...r},n)=>e.jsx("input",{type:a,className:o("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:n,...r}));or.displayName="Input";const ir=s.forwardRef(({className:t,length:a=6,onChange:r,onComplete:n,mask:i=!1,autoFocus:u=!0,disabled:c,...p},m)=>{const[d,l]=s.useState(Array(a).fill("")),g=s.useRef([]),b=R=>{var x;R>=0&&R<a&&((x=g.current[R])==null||x.focus())},N=(R,x)=>{const h=x.slice(-1);if(h&&!/^\d$/.test(h))return;const j=[...d];j[R]=h,l(j);const w=j.join("");r==null||r(w),h&&R<a-1&&b(R+1),j.every(v=>v!=="")&&w.length===a&&(n==null||n(w))},S=(R,x)=>{if(x.key==="Backspace"){x.preventDefault();const h=[...d];d[R]?(h[R]="",l(h),r==null||r(h.join(""))):R>0&&(h[R-1]="",l(h),r==null||r(h.join("")),b(R-1))}else x.key==="ArrowLeft"?(x.preventDefault(),b(R-1)):x.key==="ArrowRight"&&(x.preventDefault(),b(R+1))},y=R=>{R.preventDefault();const h=R.clipboardData.getData("text/plain").slice(0,a).replace(/\D/g,"").split("");if(h.length===0)return;const j=[...d];h.forEach((v,I)=>{I<a&&(j[I]=v)}),l(j),r==null||r(j.join(""));const w=Math.min(h.length,a-1);b(w),j.every(v=>v!=="")&&j.join("").length===a&&(n==null||n(j.join("")))};return s.useEffect(()=>{u&&b(0)},[u]),e.jsx("div",{ref:m,className:o("flex items-center gap-2",t),...p,children:d.map((R,x)=>e.jsxs(s.Fragment,{children:[e.jsx("input",{ref:h=>{g.current[x]=h},type:i?"password":"text",inputMode:"numeric",autoComplete:"one-time-code",pattern:"\\d{1}",maxLength:1,value:R,onChange:h=>N(x,h.target.value),onKeyDown:h=>S(x,h),onPaste:y,onFocus:h=>h.target.select(),disabled:c,className:o("h-10 w-10 rounded-md border border-input bg-background text-center text-sm font-medium shadow-sm transition-all","focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",R&&"border-primary")}),x===Math.floor(a/2)-1&&a>3&&e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(f.Dot,{className:"h-4 w-4 text-muted-foreground"})})]},x))})});ir.displayName="InputOTP";const lr=s.forwardRef(({className:t,index:a,char:r,hasFakeCaret:n,isActive:i,...u},c)=>e.jsxs("div",{className:o("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",i&&"z-10 ring-2 ring-ring ring-offset-background",t),children:[e.jsx("input",{ref:c,className:"absolute inset-0 h-full w-full bg-transparent text-center outline-none",...u}),r,n&&e.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]}));lr.displayName="InputOTPSlot";const dr=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("flex items-center",t),...a}));dr.displayName="InputOTPGroup";const cr=s.forwardRef(({...t},a)=>e.jsx("div",{ref:a,role:"separator",...t,children:e.jsx(f.Dot,{className:"h-4 w-4 text-muted-foreground"})}));cr.displayName="InputOTPSeparator";const ur=H.cva("inline-flex items-center justify-center rounded border font-mono text-sm font-medium",{variants:{variant:{default:"border-border bg-muted text-muted-foreground shadow-[0_2px_0_0] shadow-border",outline:"border-border bg-background text-foreground",ghost:"border-transparent bg-transparent text-muted-foreground"},size:{sm:"h-5 min-w-5 px-1 text-xs",default:"h-6 min-w-6 px-1.5",lg:"h-7 min-w-7 px-2 text-base"}},defaultVariants:{variant:"default",size:"default"}}),mr={cmd:"⌘",command:"⌘",ctrl:"⌃",control:"⌃",alt:"⌥",option:"⌥",opt:"⌥",shift:"⇧",meta:"⌘",super:"⌘",win:"⊞",windows:"⊞",enter:"↵",return:"↵",tab:"⇥",escape:"⎋",esc:"⎋",backspace:"⌫",delete:"⌦",del:"⌦",space:"␣",spacebar:"␣",up:"↑",down:"↓",left:"←",right:"→",arrowup:"↑",arrowdown:"↓",arrowleft:"←",arrowright:"→",capslock:"⇪",caps:"⇪",pageup:"⇞",pagedown:"⇟",home:"↖",end:"↘",insert:"⎀"};function pr(t){const a=t.toLowerCase().trim();return mr[a]||t.toUpperCase()}const Qe=s.forwardRef(({className:t,variant:a,size:r,keys:n,children:i,...u},c)=>{let p=i;return n&&(p=(Array.isArray(n)?n:n.split("+")).map((d,l)=>e.jsxs(s.Fragment,{children:[l>0&&e.jsx("span",{className:"mx-0.5 text-muted-foreground/50",children:"+"}),e.jsx("span",{children:pr(d)})]},l))),e.jsx("kbd",{ref:c,className:o(ur({variant:a,size:r}),t),...u,children:p})});Qe.displayName="Kbd";const fr=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("inline-flex items-center gap-1",t),...a}));fr.displayName="KbdGroup";const Ho={copy:["cmd","c"],paste:["cmd","v"],cut:["cmd","x"],undo:["cmd","z"],redo:["cmd","shift","z"],save:["cmd","s"],selectAll:["cmd","a"],find:["cmd","f"],new:["cmd","n"],open:["cmd","o"],close:["cmd","w"],refresh:["cmd","r"],print:["cmd","p"],bold:["cmd","b"],italic:["cmd","i"],underline:["cmd","u"]},gr=s.forwardRef(({shortcut:t,forceCtrl:a,variant:r,size:n,className:i,...u},c)=>{const p=Ho[t],m=typeof navigator<"u"?navigator.platform.toLowerCase().includes("mac"):!0,d=p.map(l=>(l==="cmd"||l==="command"||l==="meta")&&!m||a&&(l==="cmd"||l==="command"||l==="meta")?"ctrl":l);return e.jsx(Qe,{ref:c,keys:d,variant:r,size:n,className:i,...u})});gr.displayName="Shortcut";const xr=H.cva("inline-flex items-center gap-1 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"text-primary underline-offset-4 hover:underline",muted:"text-muted-foreground underline-offset-4 hover:text-foreground hover:underline",nav:"text-foreground/60 hover:text-foreground",destructive:"text-destructive underline-offset-4 hover:underline",unstyled:""},size:{default:"text-sm",sm:"text-xs",lg:"text-base"}},defaultVariants:{variant:"default",size:"default"}}),br=s.forwardRef(({className:t,variant:a,size:r,asChild:n=!1,external:i=!1,showExternalIcon:u=!0,children:c,...p},m)=>{const d=n?Te.Slot:"a",l=i?{target:"_blank",rel:"noopener noreferrer"}:{};return e.jsxs(d,{ref:m,className:o(xr({variant:a,size:r}),t),...l,...p,children:[c,i&&u&&e.jsx(f.ExternalLink,{className:"h-3 w-3 shrink-0"})]})});br.displayName="Link";const be=H.cva("relative overflow-hidden",{variants:{ratio:{auto:"",square:"aspect-square",video:"aspect-video",portrait:"aspect-[3/4]",wide:"aspect-[21/9]"},rounded:{none:"",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"}},defaultVariants:{ratio:"auto",rounded:"md"}}),hr=s.forwardRef(({className:t,ratio:a,rounded:r,fallback:n,alt:i,...u},c)=>{const[p,m]=s.useState(!1),[d,l]=s.useState(!0);return p&&n?e.jsx("div",{className:o(be({ratio:a,rounded:r}),"flex items-center justify-center bg-muted",t),children:n}):e.jsxs("div",{className:o(be({ratio:a,rounded:r}),t),children:[d&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted",children:e.jsx(f.Loader2,{className:"h-6 w-6 animate-spin text-muted-foreground"})}),e.jsx("img",{ref:c,alt:i,className:o("h-full w-full object-cover",r&&be({rounded:r})),onError:()=>m(!0),onLoad:()=>l(!1),...u})]})});hr.displayName="Image";const Nr=s.forwardRef(({className:t,ratio:a="video",rounded:r,showControls:n=!0,...i},u)=>{const c=s.useRef(null),[p,m]=s.useState(!1),[d,l]=s.useState(!1),[g,b]=s.useState(0);s.useImperativeHandle(u,()=>c.current);const N=()=>{c.current&&(p?c.current.pause():c.current.play(),m(!p))},S=()=>{c.current&&(c.current.muted=!d,l(!d))},y=()=>{if(c.current){const x=c.current.currentTime/c.current.duration*100;b(x)}},R=()=>{c.current&&(document.fullscreenElement?document.exitFullscreen():c.current.requestFullscreen())};return e.jsxs("div",{className:o(be({ratio:a,rounded:r}),"group",t),children:[e.jsx("video",{ref:c,className:"h-full w-full object-cover",onTimeUpdate:y,onPlay:()=>m(!0),onPause:()=>m(!1),...i}),n&&e.jsxs("div",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/60 to-transparent p-4 opacity-0 transition-opacity group-hover:opacity-100",children:[e.jsx("div",{className:"mb-2 h-1 w-full overflow-hidden rounded-full bg-white/30",children:e.jsx("div",{className:"h-full bg-white transition-all",style:{width:`${g}%`}})}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{type:"button",onClick:N,className:"rounded-full p-1 text-white hover:bg-white/20",children:p?e.jsx(f.Pause,{className:"h-5 w-5"}):e.jsx(f.Play,{className:"h-5 w-5"})}),e.jsx("button",{type:"button",onClick:S,className:"rounded-full p-1 text-white hover:bg-white/20",children:d?e.jsx(f.VolumeX,{className:"h-5 w-5"}):e.jsx(f.Volume2,{className:"h-5 w-5"})}),e.jsx("div",{className:"flex-1"}),e.jsx("button",{type:"button",onClick:R,className:"rounded-full p-1 text-white hover:bg-white/20",children:e.jsx(f.Maximize,{className:"h-5 w-5"})})]})]})]})});Nr.displayName="Video";const Uo=D.Menu,Go=D.Group,$o=D.Portal,Vo=D.Sub,qo=D.RadioGroup,vr=s.forwardRef(({className:t,...a},r)=>e.jsx(D.Root,{ref:r,className:o("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",t),...a}));vr.displayName=D.Root.displayName;const wr=s.forwardRef(({className:t,...a},r)=>e.jsx(D.Trigger,{ref:r,className:o("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t),...a}));wr.displayName=D.Trigger.displayName;const yr=s.forwardRef(({className:t,inset:a,children:r,...n},i)=>e.jsxs(D.SubTrigger,{ref:i,className:o("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",a&&"pl-8",t),...n,children:[r,e.jsx(f.ChevronRight,{className:"ml-auto h-4 w-4"})]}));yr.displayName=D.SubTrigger.displayName;const jr=s.forwardRef(({className:t,...a},r)=>e.jsx(D.SubContent,{ref:r,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...a}));jr.displayName=D.SubContent.displayName;const Sr=s.forwardRef(({className:t,align:a="start",alignOffset:r=-4,sideOffset:n=8,...i},u)=>e.jsx(D.Portal,{children:e.jsx(D.Content,{ref:u,align:a,alignOffset:r,sideOffset:n,className:o("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...i})}));Sr.displayName=D.Content.displayName;const Rr=s.forwardRef(({className:t,inset:a,...r},n)=>e.jsx(D.Item,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a&&"pl-8",t),...r}));Rr.displayName=D.Item.displayName;const Cr=s.forwardRef(({className:t,children:a,checked:r,...n},i)=>e.jsxs(D.CheckboxItem,{ref:i,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:r,...n,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(D.ItemIndicator,{children:e.jsx(f.Check,{className:"h-4 w-4"})})}),a]}));Cr.displayName=D.CheckboxItem.displayName;const Er=s.forwardRef(({className:t,children:a,...r},n)=>e.jsxs(D.RadioItem,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(D.ItemIndicator,{children:e.jsx(f.Circle,{className:"h-2 w-2 fill-current"})})}),a]}));Er.displayName=D.RadioItem.displayName;const Tr=s.forwardRef(({className:t,inset:a,...r},n)=>e.jsx(D.Label,{ref:n,className:o("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",t),...r}));Tr.displayName=D.Label.displayName;const kr=s.forwardRef(({className:t,...a},r)=>e.jsx(D.Separator,{ref:r,className:o("-mx-1 my-1 h-px bg-muted",t),...a}));kr.displayName=D.Separator.displayName;const Ir=({className:t,...a})=>e.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",t),...a});Ir.displayName="MenubarShortcut";const Ar=s.forwardRef(({options:t,value:a=[],onChange:r,placeholder:n="Select items...",searchPlaceholder:i="Search...",emptyMessage:u="No items found.",disabled:c=!1,className:p,maxDisplayedItems:m=3},d)=>{const[l,g]=s.useState(!1),b=x=>{const h=a.includes(x)?a.filter(j=>j!==x):[...a,x];r==null||r(h)},N=(x,h)=>{h.stopPropagation(),r==null||r(a.filter(j=>j!==x))},S=t.filter(x=>a.includes(x.value)),y=S.slice(0,m),R=S.length-m;return e.jsxs(je,{open:l,onOpenChange:g,children:[e.jsx(Se,{asChild:!0,children:e.jsxs("button",{ref:d,type:"button",role:"combobox","aria-expanded":l,disabled:c,className:o("flex min-h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",p),children:[e.jsx("div",{className:"flex flex-1 flex-wrap gap-1",children:S.length===0?e.jsx("span",{className:"text-muted-foreground",children:n}):e.jsxs(e.Fragment,{children:[y.map(x=>e.jsxs(Fe,{variant:"secondary",className:"gap-1 pr-1",children:[x.label,e.jsx("button",{type:"button",className:"ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",onMouseDown:h=>h.preventDefault(),onClick:h=>N(x.value,h),children:e.jsx(f.X,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},x.value)),R>0&&e.jsxs(Fe,{variant:"secondary",children:["+",R," more"]})]})}),e.jsx(f.ChevronDown,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),e.jsx(ue,{className:"w-full min-w-[var(--radix-popover-trigger-width)] p-0",align:"start",children:e.jsxs(De,{children:[e.jsx(Ue,{placeholder:i}),e.jsxs(Ge,{children:[e.jsx($e,{children:u}),e.jsx(Ve,{children:t.map(x=>e.jsxs(qe,{value:x.value,disabled:x.disabled,onSelect:()=>b(x.value),children:[e.jsx("div",{className:o("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",a.includes(x.value)?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:e.jsx(f.Check,{className:"h-4 w-4"})}),x.label]},x.value))})]})]})})]})});Ar.displayName="MultiSelect";const Dr=M.Root,Pr=M.Trigger,Ko=M.Close,Mr=M.Portal,et=s.forwardRef(({className:t,...a},r)=>e.jsx(M.Overlay,{className:o("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...a,ref:r}));et.displayName=M.Overlay.displayName;const Xo=H.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),tt=s.forwardRef(({side:t="right",className:a,children:r,...n},i)=>e.jsxs(Mr,{children:[e.jsx(et,{}),e.jsxs(M.Content,{ref:i,className:o(Xo({side:t}),a),...n,children:[e.jsxs(M.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[e.jsx(f.X,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]}));tt.displayName=M.Content.displayName;const Lr=({className:t,...a})=>e.jsx("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",t),...a});Lr.displayName="SheetHeader";const _r=({className:t,...a})=>e.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a});_r.displayName="SheetFooter";const Or=s.forwardRef(({className:t,...a},r)=>e.jsx(M.Title,{ref:r,className:o("font-heading text-lg font-semibold text-foreground",t),...a}));Or.displayName=M.Title.displayName;const Fr=s.forwardRef(({className:t,...a},r)=>e.jsx(M.Description,{ref:r,className:o("text-sm text-muted-foreground",t),...a}));Fr.displayName=M.Description.displayName;const zr=s.createContext({collapsed:!1,setCollapsed:()=>{},isMobile:!1}),me=()=>{const t=s.useContext(zr);if(!t)throw new Error("useNavigationDrawer must be used within a NavigationDrawerProvider");return t},Yo=({children:t,defaultCollapsed:a=!1})=>{const[r,n]=s.useState(a),[i,u]=s.useState(!1);return s.useEffect(()=>{const c=()=>u(window.innerWidth<768);return c(),window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[]),e.jsx(zr.Provider,{value:{collapsed:r,setCollapsed:n,isMobile:i},children:t})},Br=s.forwardRef(({className:t,children:a,...r},n)=>{const{collapsed:i,isMobile:u}=me();return u?e.jsxs(Dr,{children:[e.jsx(Pr,{asChild:!0,children:e.jsx(Q,{variant:"ghost",size:"icon",className:"md:hidden",children:e.jsx(f.Menu,{className:"h-5 w-5"})})}),e.jsx(tt,{side:"left",className:"w-64 p-0",children:e.jsx("div",{className:"flex h-full flex-col",children:a})})]}):e.jsx("aside",{ref:n,"data-collapsed":i,className:o("flex h-screen flex-col border-r bg-background transition-all duration-300",i?"w-16":"w-64",t),...r,children:a})});Br.displayName="NavigationDrawer";const Hr=s.forwardRef(({className:t,children:a,...r},n)=>{const{collapsed:i}=me();return e.jsx("div",{ref:n,className:o("flex h-14 items-center border-b px-4",i&&"justify-center px-2",t),...r,children:a})});Hr.displayName="NavigationDrawerHeader";const Ur=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("flex-1 overflow-y-auto p-2",t),...a}));Ur.displayName="NavigationDrawerContent";const Gr=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("border-t p-2",t),...a}));Gr.displayName="NavigationDrawerFooter";const $r=s.forwardRef(({className:t,...a},r)=>{const{collapsed:n,setCollapsed:i,isMobile:u}=me();return u?null:e.jsx(Q,{ref:r,variant:"ghost",size:"icon",className:o("h-8 w-8",t),onClick:()=>i(!n),...a,children:n?e.jsx(f.ChevronRight,{className:"h-4 w-4"}):e.jsx(f.ChevronLeft,{className:"h-4 w-4"})})});$r.displayName="NavigationDrawerToggle";const Zo=H.cva("flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",{variants:{active:{true:"bg-accent text-accent-foreground",false:"text-muted-foreground"}},defaultVariants:{active:!1}}),Vr=s.forwardRef(({className:t,icon:a,active:r,asChild:n,children:i,...u},c)=>{const{collapsed:p}=me(),m=n?Te.Slot:"a";return e.jsxs(m,{ref:c,className:o(Zo({active:r}),p&&"justify-center px-2",t),...u,children:[a&&e.jsx("span",{className:"shrink-0",children:a}),!p&&e.jsx("span",{className:"truncate",children:i})]})});Vr.displayName="NavigationDrawerItem";const qr=s.forwardRef(({className:t,label:a,children:r,...n},i)=>{const{collapsed:u}=me();return e.jsxs("div",{ref:i,className:o("py-2",t),...n,children:[a&&!u&&e.jsx("h4",{className:"mb-1 px-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:a}),e.jsx("div",{className:"space-y-1",children:r})]})});qr.displayName="NavigationDrawerGroup";const Kr=s.forwardRef(({className:t,children:a,...r},n)=>e.jsxs(X.Root,{ref:n,className:o("relative z-10 flex max-w-max flex-1 items-center justify-center",t),...r,children:[a,e.jsx(at,{})]}));Kr.displayName=X.Root.displayName;const Xr=s.forwardRef(({className:t,...a},r)=>e.jsx(X.List,{ref:r,className:o("group flex flex-1 list-none items-center justify-center space-x-1",t),...a}));Xr.displayName=X.List.displayName;const Wo=X.Item,Yr=H.cva("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),Zr=s.forwardRef(({className:t,children:a,...r},n)=>e.jsxs(X.Trigger,{ref:n,className:o(Yr(),"group",t),...r,children:[a," ",e.jsx(f.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Zr.displayName=X.Trigger.displayName;const Wr=s.forwardRef(({className:t,...a},r)=>e.jsx(X.Content,{ref:r,className:o("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",t),...a}));Wr.displayName=X.Content.displayName;const Jo=X.Link,at=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{className:o("absolute left-0 top-full flex justify-center"),children:e.jsx(X.Viewport,{className:o("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",t),ref:r,...a})}));at.displayName=X.Viewport.displayName;const Jr=s.forwardRef(({className:t,...a},r)=>e.jsx(X.Indicator,{ref:r,className:o("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",t),...a,children:e.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Jr.displayName=X.Indicator.displayName;const Qr=s.forwardRef(({className:t,value:a,onChange:r,min:n,max:i,step:u=1,showControls:c=!0,allowNegative:p=!0,clampOnBlur:m=!0,disabled:d,...l},g)=>{const[b,N]=s.useState(a!==void 0?a.toString():"");s.useEffect(()=>{a!==void 0&&N(a.toString())},[a]);const S=C=>{let E=C;return n!==void 0&&E<n&&(E=n),i!==void 0&&E>i&&(E=i),E},y=C=>{if(C===""||C==="-")return;const E=parseFloat(C);return isNaN(E)?void 0:E},R=C=>{let E=C.target.value;if(p||(E=E.replace(/-/g,"")),!/^-?\d*\.?\d*$/.test(E))return;N(E);const A=y(E);r==null||r(A)},x=()=>{const C=y(b);if(C!==void 0&&m){const E=S(C);N(E.toString()),r==null||r(E)}},h=()=>{const C=y(b)??0,E=S(C+u);N(E.toString()),r==null||r(E)},j=()=>{const C=y(b)??0,E=S(C-u);N(E.toString()),r==null||r(E)},w=C=>{C.key==="ArrowUp"?(C.preventDefault(),h()):C.key==="ArrowDown"&&(C.preventDefault(),j())},v=()=>{const C=y(b)??0;return n===void 0||C>n},I=()=>{const C=y(b)??0;return i===void 0||C<i};return c?e.jsxs("div",{className:"flex",children:[e.jsx("button",{type:"button",className:o("flex h-10 w-10 items-center justify-center rounded-l-md border border-r-0 border-input bg-background hover:bg-accent",(!v()||d)&&"opacity-50 cursor-not-allowed hover:bg-background"),onClick:j,disabled:!v()||d,tabIndex:-1,children:e.jsx(f.Minus,{className:"h-4 w-4"})}),e.jsx("input",{type:"text",inputMode:"decimal",className:o("flex h-10 w-full border border-input bg-background px-3 py-2 text-sm text-center ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 font-mono",t),ref:g,value:b,onChange:R,onBlur:x,onKeyDown:w,disabled:d,...l}),e.jsx("button",{type:"button",className:o("flex h-10 w-10 items-center justify-center rounded-r-md border border-l-0 border-input bg-background hover:bg-accent",(!I()||d)&&"opacity-50 cursor-not-allowed hover:bg-background"),onClick:h,disabled:!I()||d,tabIndex:-1,children:e.jsx(f.Plus,{className:"h-4 w-4"})})]}):e.jsx("input",{type:"text",inputMode:"decimal",className:o("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 font-mono",t),ref:g,value:b,onChange:R,onBlur:x,onKeyDown:w,disabled:d,...l})});Qr.displayName="NumberInput";const es=({className:t,...a})=>e.jsx("nav",{role:"navigation","aria-label":"pagination",className:o("mx-auto flex w-full justify-center",t),...a});es.displayName="Pagination";const ts=s.forwardRef(({className:t,...a},r)=>e.jsx("ul",{ref:r,className:o("flex flex-row items-center gap-1",t),...a}));ts.displayName="PaginationContent";const as=s.forwardRef(({className:t,...a},r)=>e.jsx("li",{ref:r,className:o("",t),...a}));as.displayName="PaginationItem";const Me=({className:t,isActive:a,size:r="icon",...n})=>e.jsx("a",{"aria-current":a?"page":void 0,className:o(ee({variant:a?"outline":"ghost",size:r}),t),...n});Me.displayName="PaginationLink";const rs=({className:t,...a})=>e.jsxs(Me,{"aria-label":"Go to previous page",size:"default",className:o("gap-1 pl-2.5",t),...a,children:[e.jsx(f.ChevronLeft,{className:"h-4 w-4"}),e.jsx("span",{children:"Previous"})]});rs.displayName="PaginationPrevious";const ss=({className:t,...a})=>e.jsxs(Me,{"aria-label":"Go to next page",size:"default",className:o("gap-1 pr-2.5",t),...a,children:[e.jsx("span",{children:"Next"}),e.jsx(f.ChevronRight,{className:"h-4 w-4"})]});ss.displayName="PaginationNext";const ns=({className:t,...a})=>e.jsxs("span",{"aria-hidden":!0,className:o("flex h-9 w-9 items-center justify-center",t),...a,children:[e.jsx(f.MoreHorizontal,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"More pages"})]});ns.displayName="PaginationEllipsis";function Qo(t,a={}){const{minLength:r=8,requireUppercase:n=!0,requireLowercase:i=!0,requireNumbers:u=!0,requireSpecialChars:c=!0}=a,p={length:t.length>=r,uppercase:!n||/[A-Z]/.test(t),lowercase:!i||/[a-z]/.test(t),numbers:!u||/[0-9]/.test(t),specialChars:!c||/[!@#$%^&*(),.?":{}|<>]/.test(t)},m=Object.values(p).filter(Boolean).length,d=Object.keys(p).length;return{score:m/d,checks:p}}const os=s.forwardRef(({className:t,showStrengthIndicator:a=!1,strengthRequirements:r={},onStrengthChange:n,onChange:i,...u},c)=>{const[p,m]=s.useState(!1),[d,l]=s.useState(null),{minLength:g=8,requireUppercase:b=!0,requireLowercase:N=!0,requireNumbers:S=!0,requireSpecialChars:y=!0}=r,R=j=>{const w=j.target.value;if(a&&w){const v=Qo(w,r);l(v),v.score<.4?n==null||n("weak"):v.score<.8?n==null||n("medium"):n==null||n("strong")}else l(null);i==null||i(j)},x=()=>d?d.score<.4?"bg-red-500":d.score<.8?"bg-yellow-500":"bg-green-500":"bg-muted",h=()=>d?d.score<.4?"Weak":d.score<.8?"Medium":"Strong":"";return e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"relative",children:[e.jsx(f.Lock,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx("input",{type:p?"text":"password",className:o("flex h-10 w-full rounded-md border border-input bg-background pl-10 pr-10 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:c,onChange:R,...u}),e.jsx("button",{type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",onClick:()=>m(!p),tabIndex:-1,children:p?e.jsx(f.EyeOff,{className:"h-4 w-4"}):e.jsx(f.Eye,{className:"h-4 w-4"})})]}),a&&d&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"flex-1 h-1.5 bg-muted rounded-full overflow-hidden",children:e.jsx("div",{className:o("h-full transition-all duration-300",x()),style:{width:`${d.score*100}%`}})}),e.jsx("span",{className:"text-xs text-muted-foreground min-w-[50px]",children:h()})]}),e.jsxs("ul",{className:"grid grid-cols-2 gap-1 text-xs",children:[e.jsxs("li",{className:"flex items-center gap-1",children:[d.checks.length?e.jsx(f.Check,{className:"h-3 w-3 text-green-500"}):e.jsx(f.X,{className:"h-3 w-3 text-muted-foreground"}),e.jsxs("span",{className:d.checks.length?"text-green-600":"text-muted-foreground",children:[g,"+ characters"]})]}),b&&e.jsxs("li",{className:"flex items-center gap-1",children:[d.checks.uppercase?e.jsx(f.Check,{className:"h-3 w-3 text-green-500"}):e.jsx(f.X,{className:"h-3 w-3 text-muted-foreground"}),e.jsx("span",{className:d.checks.uppercase?"text-green-600":"text-muted-foreground",children:"Uppercase letter"})]}),N&&e.jsxs("li",{className:"flex items-center gap-1",children:[d.checks.lowercase?e.jsx(f.Check,{className:"h-3 w-3 text-green-500"}):e.jsx(f.X,{className:"h-3 w-3 text-muted-foreground"}),e.jsx("span",{className:d.checks.lowercase?"text-green-600":"text-muted-foreground",children:"Lowercase letter"})]}),S&&e.jsxs("li",{className:"flex items-center gap-1",children:[d.checks.numbers?e.jsx(f.Check,{className:"h-3 w-3 text-green-500"}):e.jsx(f.X,{className:"h-3 w-3 text-muted-foreground"}),e.jsx("span",{className:d.checks.numbers?"text-green-600":"text-muted-foreground",children:"Number"})]}),y&&e.jsxs("li",{className:"flex items-center gap-1",children:[d.checks.specialChars?e.jsx(f.Check,{className:"h-3 w-3 text-green-500"}):e.jsx(f.X,{className:"h-3 w-3 text-muted-foreground"}),e.jsx("span",{className:d.checks.specialChars?"text-green-600":"text-muted-foreground",children:"Special character"})]})]})]})]})});os.displayName="PasswordInput";function ei(t,a){typeof t=="function"?t(a):t&&(t.current=a)}const is=[{code:"US",name:"United States",dialCode:"+1",flag:"🇺🇸"},{code:"GB",name:"United Kingdom",dialCode:"+44",flag:"🇬🇧"},{code:"CA",name:"Canada",dialCode:"+1",flag:"🇨🇦"},{code:"AU",name:"Australia",dialCode:"+61",flag:"🇦🇺"},{code:"DE",name:"Germany",dialCode:"+49",flag:"🇩🇪"},{code:"FR",name:"France",dialCode:"+33",flag:"🇫🇷"},{code:"IT",name:"Italy",dialCode:"+39",flag:"🇮🇹"},{code:"ES",name:"Spain",dialCode:"+34",flag:"🇪🇸"},{code:"PT",name:"Portugal",dialCode:"+351",flag:"🇵🇹"},{code:"NL",name:"Netherlands",dialCode:"+31",flag:"🇳🇱"},{code:"BE",name:"Belgium",dialCode:"+32",flag:"🇧🇪"},{code:"CH",name:"Switzerland",dialCode:"+41",flag:"🇨🇭"},{code:"AT",name:"Austria",dialCode:"+43",flag:"🇦🇹"},{code:"SE",name:"Sweden",dialCode:"+46",flag:"🇸🇪"},{code:"NO",name:"Norway",dialCode:"+47",flag:"🇳🇴"},{code:"DK",name:"Denmark",dialCode:"+45",flag:"🇩🇰"},{code:"FI",name:"Finland",dialCode:"+358",flag:"🇫🇮"},{code:"IE",name:"Ireland",dialCode:"+353",flag:"🇮🇪"},{code:"PL",name:"Poland",dialCode:"+48",flag:"🇵🇱"},{code:"CZ",name:"Czech Republic",dialCode:"+420",flag:"🇨🇿"},{code:"JP",name:"Japan",dialCode:"+81",flag:"🇯🇵"},{code:"KR",name:"South Korea",dialCode:"+82",flag:"🇰🇷"},{code:"CN",name:"China",dialCode:"+86",flag:"🇨🇳"},{code:"IN",name:"India",dialCode:"+91",flag:"🇮🇳"},{code:"SG",name:"Singapore",dialCode:"+65",flag:"🇸🇬"},{code:"HK",name:"Hong Kong",dialCode:"+852",flag:"🇭🇰"},{code:"TW",name:"Taiwan",dialCode:"+886",flag:"🇹🇼"},{code:"MY",name:"Malaysia",dialCode:"+60",flag:"🇲🇾"},{code:"TH",name:"Thailand",dialCode:"+66",flag:"🇹🇭"},{code:"ID",name:"Indonesia",dialCode:"+62",flag:"🇮🇩"},{code:"PH",name:"Philippines",dialCode:"+63",flag:"🇵🇭"},{code:"VN",name:"Vietnam",dialCode:"+84",flag:"🇻🇳"},{code:"BR",name:"Brazil",dialCode:"+55",flag:"🇧🇷"},{code:"MX",name:"Mexico",dialCode:"+52",flag:"🇲🇽"},{code:"AR",name:"Argentina",dialCode:"+54",flag:"🇦🇷"},{code:"CL",name:"Chile",dialCode:"+56",flag:"🇨🇱"},{code:"CO",name:"Colombia",dialCode:"+57",flag:"🇨🇴"},{code:"PE",name:"Peru",dialCode:"+51",flag:"🇵🇪"},{code:"ZA",name:"South Africa",dialCode:"+27",flag:"🇿🇦"},{code:"EG",name:"Egypt",dialCode:"+20",flag:"🇪🇬"},{code:"NG",name:"Nigeria",dialCode:"+234",flag:"🇳🇬"},{code:"KE",name:"Kenya",dialCode:"+254",flag:"🇰🇪"},{code:"AE",name:"United Arab Emirates",dialCode:"+971",flag:"🇦🇪"},{code:"SA",name:"Saudi Arabia",dialCode:"+966",flag:"🇸🇦"},{code:"IL",name:"Israel",dialCode:"+972",flag:"🇮🇱"},{code:"TR",name:"Turkey",dialCode:"+90",flag:"🇹🇷"},{code:"RU",name:"Russia",dialCode:"+7",flag:"🇷🇺"},{code:"UA",name:"Ukraine",dialCode:"+380",flag:"🇺🇦"},{code:"NZ",name:"New Zealand",dialCode:"+64",flag:"🇳🇿"}],ls=s.forwardRef(({className:t,countries:a=is,defaultCountry:r="US",value:n,onChange:i,onCountryChange:u,...c},p)=>{const[m,d]=s.useState(!1),[l,g]=s.useState(a.find(v=>v.code===r)||a[0]),[b,N]=s.useState(n||""),[S,y]=s.useState(""),R=s.useRef(null),x=s.useRef(null);s.useEffect(()=>{n!==void 0&&N(n)},[n]),s.useEffect(()=>{const v=I=>{R.current&&!R.current.contains(I.target)&&(d(!1),y(""))};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[]);const h=a.filter(v=>v.name.toLowerCase().includes(S.toLowerCase())||v.dialCode.includes(S)||v.code.toLowerCase().includes(S.toLowerCase())),j=v=>{var I;g(v),d(!1),y(""),u==null||u(v),i==null||i(b,v),(I=x.current)==null||I.focus()},w=v=>{const I=v.target.value.replace(/[^\d\s\-()]/g,"");N(I),i==null||i(I,l)};return e.jsxs("div",{className:"relative",ref:R,children:[e.jsxs("div",{className:"flex",children:[e.jsxs("button",{type:"button",className:o("flex items-center gap-1 h-10 px-3 rounded-l-md border border-r-0 border-input bg-background text-sm hover:bg-accent",m&&"ring-2 ring-ring ring-offset-2"),onClick:()=>d(!m),children:[e.jsx("span",{className:"text-base",children:l.flag}),e.jsx("span",{className:"text-muted-foreground",children:l.dialCode}),e.jsx(f.ChevronDown,{className:"h-3 w-3 text-muted-foreground"})]}),e.jsxs("div",{className:"relative flex-1",children:[e.jsx(f.Phone,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx("input",{type:"tel",ref:v=>{x.current=v,ei(p,v)},className:o("flex h-10 w-full rounded-r-md border border-input bg-background pl-10 pr-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),value:b,onChange:w,...c})]})]}),m&&e.jsxs("div",{className:"absolute z-50 mt-1 w-full min-w-[280px] rounded-md border bg-popover p-1 shadow-md",children:[e.jsx("input",{type:"text",className:"w-full px-3 py-2 text-sm border-b bg-transparent outline-none placeholder:text-muted-foreground",placeholder:"Search countries...",value:S,onChange:v=>y(v.target.value),autoFocus:!0}),e.jsx("div",{className:"max-h-[200px] overflow-y-auto mt-1",children:h.length===0?e.jsx("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:"No countries found"}):h.map(v=>e.jsxs("button",{type:"button",className:o("flex w-full items-center gap-2 rounded-sm px-3 py-2 text-sm hover:bg-accent",l.code===v.code&&"bg-accent"),onClick:()=>j(v),children:[e.jsx("span",{className:"text-base",children:v.flag}),e.jsx("span",{className:"flex-1 text-left",children:v.name}),e.jsx("span",{className:"text-muted-foreground",children:v.dialCode}),l.code===v.code&&e.jsx(f.Check,{className:"h-4 w-4"})]},v.code))})]})]})});ls.displayName="PhoneInput";const ds=H.cva("inline-flex items-center gap-1 rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-green-500 text-white hover:bg-green-500/80",warning:"border-transparent bg-yellow-500 text-white hover:bg-yellow-500/80",info:"border-transparent bg-blue-500 text-white hover:bg-blue-500/80"},size:{default:"h-6 text-xs",sm:"h-5 text-[10px]",lg:"h-7 text-sm"}},defaultVariants:{variant:"default",size:"default"}}),cs=s.forwardRef(({className:t,variant:a,size:r,onDismiss:n,dismissLabel:i="Remove",children:u,...c},p)=>e.jsxs("div",{ref:p,className:o(ds({variant:a,size:r}),t),...c,children:[e.jsx("span",{className:"truncate",children:u}),n&&e.jsx("button",{type:"button",onClick:n,className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 focus:outline-none focus:ring-1 focus:ring-ring","aria-label":i,children:e.jsx(f.X,{className:o("shrink-0",r==="sm"?"h-2.5 w-2.5":"h-3 w-3")})})]}));cs.displayName="Pill";const us=s.forwardRef(({className:t,value:a,...r},n)=>e.jsx(_e.Root,{ref:n,className:o("relative h-4 w-full overflow-hidden rounded-full bg-secondary",t),...r,children:e.jsx(_e.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(a||0)}%)`}})}));us.displayName=_e.Root.displayName;const ms=s.forwardRef(({className:t,...a},r)=>e.jsx(ve.Root,{className:o("grid gap-2",t),...a,ref:r}));ms.displayName=ve.Root.displayName;const ps=s.forwardRef(({className:t,...a},r)=>e.jsx(ve.Item,{ref:r,className:o("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...a,children:e.jsx(ve.Indicator,{className:"flex items-center justify-center",children:e.jsx(f.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));ps.displayName=ve.Item.displayName;const fs=s.forwardRef(({className:t,value:a=0,max:r=5,onChange:n,readonly:i=!1,size:u="default",showValue:c=!1,precision:p=1,...m},d)=>{const[l,g]=s.useState(null),b={sm:"h-4 w-4",default:"h-5 w-5",lg:"h-6 w-6"},N=(x,h)=>{if(i)return;const j=x.currentTarget.getBoundingClientRect(),v=(x.clientX-j.left)/j.width;g(p===.5?h+(v<.5?.5:1):h+1)},S=x=>{i||!n||n(l??x+1)},y=l??a,R=x=>{const h=y>=x+1,j=y>=x+.5&&y<x+1;return e.jsxs("button",{type:"button",disabled:i,className:o("relative p-0.5 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 disabled:cursor-default",!i&&"cursor-pointer hover:scale-110"),onMouseMove:w=>N(w,x),onMouseLeave:()=>g(null),onClick:()=>S(x),"aria-label":`Rate ${x+1} out of ${r}`,children:[e.jsx(f.Star,{className:o(b[u],"text-muted-foreground/30")}),e.jsx(f.Star,{className:o(b[u],"absolute inset-0.5 text-yellow-400 fill-yellow-400 transition-all",h||j?"opacity-100":"opacity-0"),style:j?{clipPath:"polygon(0 0, 50% 0, 50% 100%, 0 100%)"}:void 0})]},x)};return e.jsxs("div",{ref:d,className:o("flex items-center gap-0.5",t),role:"radiogroup","aria-label":"Rating",...m,children:[Array.from({length:r},(x,h)=>R(h)),c&&e.jsxs("span",{className:"ml-2 text-sm text-muted-foreground",children:[y.toFixed(p===.5?1:0)," / ",r]})]})});fs.displayName="Rating";const rt=s.createContext({direction:"horizontal",registerPanel:()=>{},unregisterPanel:()=>{},getPanelSize:()=>50,startResize:()=>{},isResizing:!1}),gs=s.forwardRef(({className:t,direction:a="horizontal",autoSaveId:r,onLayout:n,children:i,...u},c)=>{const[p,m]=s.useState(new Map),[d,l]=s.useState(!1),g=s.useRef(null),b=s.useRef(-1),N=s.useRef([]),S=s.useMemo(()=>{const j=[];return s.Children.forEach(i,w=>{s.isValidElement(w)&&w.type===st&&j.push(w.props.id||`panel-${j.length}`)}),j},[i]),y=s.useCallback((j,w=10,v=100,I=50)=>{m(C=>{const E=new Map(C);return E.has(j)||E.set(j,{minSize:w,maxSize:v,size:I}),E})},[]),R=s.useCallback(j=>{m(w=>{const v=new Map(w);return v.delete(j),v})},[]),x=s.useCallback(j=>{var w;return((w=p.get(j))==null?void 0:w.size)??50},[p]),h=s.useCallback(j=>{l(!0),b.current=j,N.current=S.map(w=>x(w))},[S,x]);return s.useEffect(()=>{if(!d)return;const j=v=>{if(!g.current||b.current<0)return;const I=g.current.getBoundingClientRect(),C=a==="horizontal"?I.width:I.height,A=(a==="horizontal"?v.clientX-I.left:v.clientY-I.top)/C*100,U=b.current,k=S[U],L=S[U+1],G=p.get(k),z=p.get(L);if(!G||!z)return;let W=0;for(let te=0;te<U;te++)W+=x(S[te]);const Z=G.size+z.size;let J=A-W;J=Math.max(G.minSize,Math.min(G.maxSize,J));let $=Z-J;$=Math.max(z.minSize,Math.min(z.maxSize,$)),J=Z-$,m(te=>{const T=new Map(te);return T.set(k,{...G,size:J}),T.set(L,{...z,size:$}),T})},w=()=>{l(!1),b.current=-1,n==null||n(S.map(v=>x(v)))};return document.addEventListener("mousemove",j),document.addEventListener("mouseup",w),()=>{document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",w)}},[d,a,p,S,x,n]),s.useEffect(()=>{if(!r)return;const j=localStorage.getItem(`resizable-${r}`);if(j)try{const w=JSON.parse(j);m(v=>{const I=new Map(v);for(const[C,E]of Object.entries(w)){const A=I.get(C);A&&I.set(C,{...A,size:E})}return I})}catch{}},[r]),s.useEffect(()=>{if(!r||d)return;const j={};p.forEach((w,v)=>{j[v]=w.size}),localStorage.setItem(`resizable-${r}`,JSON.stringify(j))},[r,p,d]),e.jsx(rt.Provider,{value:{direction:a,registerPanel:y,unregisterPanel:R,getPanelSize:x,startResize:h,isResizing:d},children:e.jsx("div",{ref:j=>{g.current=j,typeof c=="function"?c(j):c&&(c.current=j)},className:o("flex h-full w-full",a==="vertical"&&"flex-col",t),...u,children:i})})});gs.displayName="ResizablePanelGroup";const st=s.forwardRef(({className:t,id:a,defaultSize:r=50,minSize:n=10,maxSize:i=100,children:u,...c},p)=>{const m=s.useId(),d=a||m,{direction:l,registerPanel:g,unregisterPanel:b,getPanelSize:N}=s.useContext(rt);s.useEffect(()=>(g(d,n,i,r),()=>b(d)),[d,n,i,r,g,b]);const S=N(d);return e.jsx("div",{ref:p,className:o("overflow-hidden",t),style:{[l==="horizontal"?"width":"height"]:`${S}%`,flexShrink:0},...c,children:u})});st.displayName="ResizablePanel";const xs=s.forwardRef(({className:t,withHandle:a=!1,...r},n)=>{const{direction:i,startResize:u,isResizing:c}=s.useContext(rt),p=s.useRef(-1);s.useEffect(()=>{const d=n==null?void 0:n.current;if(!d)return;const l=d.parentElement;if(!l)return;const g=Array.from(l.querySelectorAll("[data-resizable-handle]"));p.current=g.indexOf(d)},[n]);const m=d=>{d.preventDefault(),p.current>=0&&u(p.current)};return e.jsx("div",{ref:n,"data-resizable-handle":!0,className:o("relative flex items-center justify-center bg-border",i==="horizontal"?"w-px cursor-col-resize":"h-px cursor-row-resize","after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1",c&&"bg-primary",t),onMouseDown:m,...r,children:a&&e.jsx("div",{className:o("z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",i==="vertical"&&"h-3 w-4 rotate-90"),children:e.jsx(f.GripVertical,{className:"h-2.5 w-2.5"})})})});xs.displayName="ResizableHandle";const nt=H.cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3 min-w-10",sm:"h-9 px-2.5 min-w-9",lg:"h-11 px-5 min-w-11"}},defaultVariants:{variant:"default",size:"default"}}),ot=s.forwardRef(({className:t,variant:a,size:r,...n},i)=>e.jsx(mt.Root,{ref:i,className:o(nt({variant:a,size:r,className:t})),...n}));ot.displayName=mt.Root.displayName;const he=s.forwardRef(({className:t,orientation:a="horizontal",decorative:r=!0,...n},i)=>e.jsx(pt.Root,{ref:i,decorative:r,orientation:a,className:o("shrink-0 bg-border",a==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...n}));he.displayName=pt.Root.displayName;const Y=({pressed:t,onPressedChange:a,disabled:r,children:n,tooltip:i})=>e.jsx(ot,{size:"sm",pressed:t,onPressedChange:a,disabled:r,"aria-label":i,className:"h-8 w-8 p-0",children:n}),bs=({editor:t})=>t?e.jsxs("div",{className:"flex flex-wrap items-center gap-1 border-b p-1",children:[e.jsx(Y,{pressed:t.isActive("bold"),onPressedChange:()=>t.chain().focus().toggleBold().run(),disabled:!t.can().chain().focus().toggleBold().run(),tooltip:"Bold",children:e.jsx(f.Bold,{className:"h-4 w-4"})}),e.jsx(Y,{pressed:t.isActive("italic"),onPressedChange:()=>t.chain().focus().toggleItalic().run(),disabled:!t.can().chain().focus().toggleItalic().run(),tooltip:"Italic",children:e.jsx(f.Italic,{className:"h-4 w-4"})}),e.jsx(Y,{pressed:t.isActive("strike"),onPressedChange:()=>t.chain().focus().toggleStrike().run(),disabled:!t.can().chain().focus().toggleStrike().run(),tooltip:"Strikethrough",children:e.jsx(f.Strikethrough,{className:"h-4 w-4"})}),e.jsx(Y,{pressed:t.isActive("code"),onPressedChange:()=>t.chain().focus().toggleCode().run(),disabled:!t.can().chain().focus().toggleCode().run(),tooltip:"Code",children:e.jsx(f.Code,{className:"h-4 w-4"})}),e.jsx(he,{orientation:"vertical",className:"mx-1 h-6"}),e.jsx(Y,{pressed:t.isActive("heading",{level:1}),onPressedChange:()=>t.chain().focus().toggleHeading({level:1}).run(),tooltip:"Heading 1",children:e.jsx(f.Heading1,{className:"h-4 w-4"})}),e.jsx(Y,{pressed:t.isActive("heading",{level:2}),onPressedChange:()=>t.chain().focus().toggleHeading({level:2}).run(),tooltip:"Heading 2",children:e.jsx(f.Heading2,{className:"h-4 w-4"})}),e.jsx(Y,{pressed:t.isActive("heading",{level:3}),onPressedChange:()=>t.chain().focus().toggleHeading({level:3}).run(),tooltip:"Heading 3",children:e.jsx(f.Heading3,{className:"h-4 w-4"})}),e.jsx(he,{orientation:"vertical",className:"mx-1 h-6"}),e.jsx(Y,{pressed:t.isActive("bulletList"),onPressedChange:()=>t.chain().focus().toggleBulletList().run(),tooltip:"Bullet List",children:e.jsx(f.List,{className:"h-4 w-4"})}),e.jsx(Y,{pressed:t.isActive("orderedList"),onPressedChange:()=>t.chain().focus().toggleOrderedList().run(),tooltip:"Ordered List",children:e.jsx(f.ListOrdered,{className:"h-4 w-4"})}),e.jsx(Y,{pressed:t.isActive("blockquote"),onPressedChange:()=>t.chain().focus().toggleBlockquote().run(),tooltip:"Quote",children:e.jsx(f.Quote,{className:"h-4 w-4"})}),e.jsx(Y,{pressed:!1,onPressedChange:()=>t.chain().focus().setHorizontalRule().run(),tooltip:"Horizontal Rule",children:e.jsx(f.Minus,{className:"h-4 w-4"})}),e.jsx(he,{orientation:"vertical",className:"mx-1 h-6"}),e.jsx(Y,{pressed:!1,onPressedChange:()=>t.chain().focus().undo().run(),disabled:!t.can().chain().focus().undo().run(),tooltip:"Undo",children:e.jsx(f.Undo,{className:"h-4 w-4"})}),e.jsx(Y,{pressed:!1,onPressedChange:()=>t.chain().focus().redo().run(),disabled:!t.can().chain().focus().redo().run(),tooltip:"Redo",children:e.jsx(f.Redo,{className:"h-4 w-4"})})]}):null,hs=s.forwardRef(({value:t,onChange:a,placeholder:r="Start typing...",disabled:n=!1,className:i,minHeight:u="150px"},c)=>{const p=ct.useEditor({extensions:[qn,Kn.configure({placeholder:r})],content:t,editable:!n,onUpdate:({editor:m})=>{a==null||a(m.getHTML())}});return s.useEffect(()=>{p&&t!==p.getHTML()&&p.commands.setContent(t??"")},[t,p]),s.useEffect(()=>{p&&p.setEditable(!n)},[n,p]),e.jsxs("div",{ref:c,className:o("rounded-md border bg-background",n&&"opacity-50",i),children:[e.jsx(bs,{editor:p}),e.jsx(ct.EditorContent,{editor:p,className:o("prose prose-sm dark:prose-invert max-w-none p-3 focus-within:outline-none [&_.ProseMirror]:min-h-[var(--min-height)] [&_.ProseMirror]:outline-none [&_.ProseMirror_p.is-editor-empty:first-child::before]:text-muted-foreground [&_.ProseMirror_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)] [&_.ProseMirror_p.is-editor-empty:first-child::before]:float-left [&_.ProseMirror_p.is-editor-empty:first-child::before]:h-0 [&_.ProseMirror_p.is-editor-empty:first-child::before]:pointer-events-none"),style:{"--min-height":u}})]})});hs.displayName="RichText";const Ns=s.forwardRef(({className:t,children:a,...r},n)=>e.jsxs(re.Root,{ref:n,className:o("relative overflow-hidden",t),...r,children:[e.jsx(re.Viewport,{className:"h-full w-full rounded-[inherit]",children:a}),e.jsx(it,{}),e.jsx(re.Corner,{})]}));Ns.displayName=re.Root.displayName;const it=s.forwardRef(({className:t,orientation:a="vertical",...r},n)=>e.jsx(re.ScrollAreaScrollbar,{ref:n,orientation:a,className:o("flex touch-none select-none transition-colors",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...r,children:e.jsx(re.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));it.displayName=re.ScrollAreaScrollbar.displayName;function lt(t,a){typeof t=="function"?t(a):t&&(t.current=a)}const vs=s.forwardRef(({className:t,value:a,onChange:r,onSearch:n,onClear:i,loading:u=!1,showClearButton:c=!0,searchOnEnter:p=!0,debounceMs:m,disabled:d,...l},g)=>{const[b,N]=s.useState(a||""),S=s.useRef(null);s.useEffect(()=>{a!==void 0&&N(a)},[a]);const y=j=>{const w=j.target.value;N(w),r==null||r(w),m&&n&&(S.current&&clearTimeout(S.current),S.current=setTimeout(()=>{n(w)},m))},R=j=>{j.key==="Enter"&&p&&n&&(j.preventDefault(),S.current&&clearTimeout(S.current),n(b)),j.key==="Escape"&&b&&x()},x=()=>{N(""),r==null||r(""),i==null||i(),S.current&&clearTimeout(S.current)};s.useEffect(()=>()=>{S.current&&clearTimeout(S.current)},[]);const h=c&&b&&!u;return e.jsxs("div",{className:"relative",children:[e.jsx(f.Search,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx("input",{type:"search",className:o("flex h-10 w-full rounded-md border border-input bg-background pl-10 pr-10 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50","[&::-webkit-search-cancel-button]:hidden [&::-webkit-search-decoration]:hidden",t),ref:g,value:b,onChange:y,onKeyDown:R,disabled:d||u,...l}),e.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2",children:u?e.jsx(f.Loader2,{className:"h-4 w-4 animate-spin text-muted-foreground"}):h?e.jsx("button",{type:"button",className:"p-0.5 hover:bg-accent rounded",onClick:x,tabIndex:-1,children:e.jsx(f.X,{className:"h-4 w-4 text-muted-foreground"})}):null})]})});vs.displayName="SearchInput";const ws=s.forwardRef(({shortcutKey:t="K",showShortcut:a=!0,className:r,onChange:n,...i},u)=>{const c=s.useRef(null);s.useEffect(()=>{const m=d=>{var l;(d.metaKey||d.ctrlKey)&&d.key.toLowerCase()===t.toLowerCase()&&(d.preventDefault(),(l=c.current)==null||l.focus())};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[t]);const p=m=>{c.current=m,lt(u,m)};return e.jsxs("div",{className:"relative",children:[e.jsx(f.Search,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx("input",{type:"search",className:o("flex h-10 w-full rounded-md border border-input bg-background pl-10 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50","[&::-webkit-search-cancel-button]:hidden [&::-webkit-search-decoration]:hidden",a?"pr-16":"pr-10",r),ref:p,...i}),a&&e.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 flex items-center gap-0.5",children:e.jsxs("kbd",{className:"pointer-events-none h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium text-muted-foreground inline-flex",children:[e.jsx("span",{className:"text-xs",children:"⌘"}),t]})})]})});ws.displayName="CommandSearch";const ys=s.forwardRef(({collapsedWidth:t="40px",expandedWidth:a="250px",className:r,placeholder:n="Search...",...i},u)=>{const[c,p]=s.useState(!1),[m,d]=s.useState(i.value||""),l=s.useRef(null),{onChange:g,...b}=i,N=()=>p(!0),S=()=>{m||p(!1)},y=h=>{d(h.target.value),g==null||g(h.target.value)},R=()=>{p(!0),setTimeout(()=>{var h;return(h=l.current)==null?void 0:h.focus()},100)},x=h=>{l.current=h,lt(u,h)};return e.jsxs("div",{className:o("relative flex items-center transition-all duration-200 ease-in-out",r),style:{width:c?a:t},children:[e.jsx("button",{type:"button",className:o("absolute left-0 flex h-10 w-10 items-center justify-center rounded-md border border-input bg-background hover:bg-accent transition-colors",c&&"border-transparent hover:bg-transparent"),onClick:R,tabIndex:c?-1:0,children:e.jsx(f.Search,{className:"h-4 w-4 text-muted-foreground"})}),e.jsx("input",{type:"search",className:o("flex h-10 w-full rounded-md border border-input bg-background pl-10 pr-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition-all duration-200","[&::-webkit-search-cancel-button]:hidden [&::-webkit-search-decoration]:hidden",!c&&"opacity-0 pointer-events-none"),ref:x,value:m,onChange:y,onFocus:N,onBlur:S,placeholder:n,...b})]})});ys.displayName="ExpandableSearch";const ti=(t,a)=>{var n;const r=a.toLowerCase();return t.label.toLowerCase().includes(r)||t.value.toLowerCase().includes(r)||(((n=t.description)==null?void 0:n.toLowerCase().includes(r))??!1)},js=s.forwardRef(({className:t,value:a,onChange:r,options:n,onSelect:i,loading:u=!1,emptyMessage:c="No results found",filterFn:p=ti,minChars:m=0,maxResults:d=10,showAllOnFocus:l=!0,groupBy:g,disabled:b,placeholder:N="Search...",...S},y)=>{const[R,x]=s.useState(!1),[h,j]=s.useState(a||""),[w,v]=s.useState(-1),I=s.useRef(null),C=s.useRef(null),E=s.useRef(null);s.useEffect(()=>{a!==void 0&&j(a)},[a]),s.useEffect(()=>{const T=P=>{I.current&&!I.current.contains(P.target)&&(x(!1),v(-1))};return document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},[]);const A=s.useMemo(()=>h.length<m&&!l?[]:(h.length>=m?n.filter(P=>p(P,h)):n).slice(0,d),[n,h,p,m,d,l]),U=s.useMemo(()=>{if(!g)return null;const T={};return A.forEach(P=>{const V=g(P);T[V]||(T[V]=[]),T[V].push(P)}),T},[A,g]),k=T=>{const P=T.target.value;j(P),r==null||r(P),x(!0),v(-1)},L=()=>{(l||h.length>=m)&&x(!0)},G=T=>{var P;T.disabled||(j(T.label),r==null||r(T.label),i==null||i(T),x(!1),v(-1),(P=C.current)==null||P.focus())},z=T=>{if(!R&&(T.key==="ArrowDown"||T.key==="ArrowUp")){x(!0);return}switch(T.key){case"ArrowDown":T.preventDefault(),v(P=>{const V=P<A.length-1?P+1:0;return W(V),V});break;case"ArrowUp":T.preventDefault(),v(P=>{const V=P>0?P-1:A.length-1;return W(V),V});break;case"Enter":T.preventDefault(),w>=0&&A[w]&&G(A[w]);break;case"Escape":x(!1),v(-1);break;case"Tab":x(!1),v(-1);break}},W=T=>{if(E.current){const V=E.current.querySelectorAll("[data-option]")[T];V&&V.scrollIntoView({block:"nearest"})}},Z=()=>{var T;j(""),r==null||r(""),x(!1),(T=C.current)==null||T.focus()},J=T=>{C.current=T,lt(y,T)},$=(T,P)=>e.jsxs("button",{type:"button","data-option":!0,className:o("flex w-full items-center gap-2 rounded-sm px-3 py-2 text-sm text-left",w===P&&"bg-accent",T.disabled&&"opacity-50 cursor-not-allowed",!T.disabled&&"hover:bg-accent cursor-pointer"),onClick:()=>G(T),onMouseEnter:()=>!T.disabled&&v(P),disabled:T.disabled,children:[T.icon&&e.jsx("span",{className:"flex-shrink-0",children:T.icon}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"truncate font-medium",children:T.label}),T.description&&e.jsx("div",{className:"truncate text-xs text-muted-foreground",children:T.description})]})]},T.value),te=R&&(A.length>0||u||h.length>=m);return e.jsxs("div",{ref:I,className:o("relative",t),children:[e.jsx(f.Search,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground z-10"}),e.jsx("input",{type:"text",role:"combobox","aria-expanded":R,"aria-autocomplete":"list","aria-controls":"autocomplete-list",autoComplete:"off",className:o("flex h-10 w-full rounded-md border border-input bg-background pl-10 pr-10 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"),ref:J,value:h,onChange:k,onFocus:L,onKeyDown:z,disabled:b,placeholder:N,...S}),e.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2",children:u?e.jsx(f.Loader2,{className:"h-4 w-4 animate-spin text-muted-foreground"}):h?e.jsx("button",{type:"button",className:"p-0.5 hover:bg-accent rounded",onClick:Z,tabIndex:-1,children:e.jsx(f.X,{className:"h-4 w-4 text-muted-foreground"})}):null}),te&&e.jsx("div",{id:"autocomplete-list",ref:E,className:"absolute z-50 mt-1 w-full rounded-md border bg-popover shadow-md max-h-[300px] overflow-y-auto",children:u?e.jsx("div",{className:"flex items-center justify-center py-4",children:e.jsx(f.Loader2,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):A.length===0?e.jsx("div",{className:"px-3 py-4 text-sm text-center text-muted-foreground",children:c}):U?e.jsx("div",{className:"p-1",children:Object.entries(U).map(([T,P])=>e.jsxs("div",{children:[e.jsx("div",{className:"px-3 py-1.5 text-xs font-semibold text-muted-foreground",children:T}),P.map(V=>{const Sn=A.indexOf(V);return $(V,Sn)})]},T))}):e.jsx("div",{className:"p-1",children:A.map((T,P)=>$(T,P))})})]})});js.displayName="AutocompleteSearch";const Ss=s.createContext(void 0);function ne(){const t=s.useContext(Ss);if(!t)throw new Error("useSidebar must be used within a SidebarProvider");return t}function ai({children:t,defaultOpen:a=!0,defaultCollapsed:r=!1,onOpenChange:n,onCollapsedChange:i}){const[u,c]=s.useState(a),[p,m]=s.useState(r),[d,l]=s.useState(!1);s.useEffect(()=>{const N=()=>{l(window.innerWidth<768)};return N(),window.addEventListener("resize",N),()=>window.removeEventListener("resize",N)},[]);const g=s.useCallback(N=>{c(N),n==null||n(N)},[n]),b=s.useCallback(N=>{m(N),i==null||i(N)},[i]);return e.jsx(Ss.Provider,{value:{open:u,setOpen:g,collapsed:p,setCollapsed:b,isMobile:d},children:t})}const ri=H.cva("flex h-full flex-col border-r bg-background transition-all duration-300",{variants:{variant:{default:"",inset:"rounded-lg border shadow-sm",floating:"m-2 rounded-lg border shadow-lg"}},defaultVariants:{variant:"default"}}),Rs=s.forwardRef(({className:t,variant:a,width:r=256,collapsedWidth:n=64,children:i,...u},c)=>{const{open:p,collapsed:m,isMobile:d}=ne(),l=d?p?r:0:m?n:r;return e.jsxs(e.Fragment,{children:[d&&p&&e.jsx("div",{className:"fixed inset-0 z-40 bg-black/50",onClick:()=>ne().setOpen(!1)}),e.jsx("aside",{ref:c,"data-collapsed":m,"data-mobile":d,className:o(ri({variant:a}),d&&"fixed inset-y-0 left-0 z-50",t),style:{width:l,minWidth:l,overflow:"hidden"},...u,children:e.jsx("div",{className:"flex h-full flex-col",style:{width:r,minWidth:r},children:i})})]})});Rs.displayName="Sidebar";const Cs=s.forwardRef(({className:t,...a},r)=>{const{open:n,setOpen:i,collapsed:u,setCollapsed:c,isMobile:p}=ne(),m=()=>{p?i(!n):c(!u)};return e.jsxs(Q,{ref:r,variant:"ghost",size:"icon",className:o("h-9 w-9",t),onClick:m,...a,children:[e.jsx(f.PanelLeft,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Toggle sidebar"})]})});Cs.displayName="SidebarTrigger";const Es=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("flex h-14 items-center border-b px-4",t),...a}));Es.displayName="SidebarHeader";const Ts=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("flex-1 overflow-auto py-2",t),...a}));Ts.displayName="SidebarContent";const ks=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("mt-auto border-t p-4",t),...a}));ks.displayName="SidebarFooter";const Is=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("px-2 py-2",t),...a}));Is.displayName="SidebarGroup";const As=s.forwardRef(({className:t,...a},r)=>{const{collapsed:n}=ne();return n?null:e.jsx("div",{ref:r,className:o("px-2 py-1.5 text-xs font-medium text-muted-foreground",t),...a})});As.displayName="SidebarGroupLabel";const Ds=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("space-y-1",t),...a}));Ds.displayName="SidebarGroupContent";const Ps=s.forwardRef(({className:t,...a},r)=>e.jsx("ul",{ref:r,className:o("space-y-1",t),...a}));Ps.displayName="SidebarMenu";const Ms=s.forwardRef(({className:t,...a},r)=>e.jsx("li",{ref:r,className:o("",t),...a}));Ms.displayName="SidebarMenuItem";const Ls=s.forwardRef(({className:t,isActive:a,tooltip:r,children:n,...i},u)=>{const{collapsed:c}=ne(),p=e.jsx("button",{ref:u,className:o("flex w-full items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",a&&"bg-accent text-accent-foreground",c&&"justify-center px-2",t),...i,children:n});return c&&r?e.jsxs("div",{className:"relative group",children:[p,e.jsx("div",{className:"absolute left-full top-1/2 z-50 ml-2 -translate-y-1/2 rounded-md bg-popover px-2 py-1 text-xs text-popover-foreground opacity-0 shadow-md transition-opacity group-hover:opacity-100",children:r})]}):p});Ls.displayName="SidebarMenuButton";const _s=s.forwardRef(({className:t,...a},r)=>{const{collapsed:n}=ne();return n?null:e.jsx("ul",{ref:r,className:o("ml-4 space-y-1 border-l pl-4",t),...a})});_s.displayName="SidebarMenuSub";const Os=s.forwardRef(({className:t,...a},r)=>e.jsx("li",{ref:r,className:o("",t),...a}));Os.displayName="SidebarMenuSubItem";const Fs=s.forwardRef(({className:t,isActive:a,...r},n)=>e.jsx("button",{ref:n,className:o("flex w-full items-center rounded-md px-3 py-1.5 text-sm transition-colors","hover:bg-accent hover:text-accent-foreground",a&&"bg-accent text-accent-foreground",t),...r}));Fs.displayName="SidebarMenuSubButton";const zs=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("mx-2 my-2 h-px bg-border",t),...a}));zs.displayName="SidebarSeparator";function si({className:t,...a}){return e.jsx("div",{className:o("animate-pulse rounded-md bg-muted",t),...a})}const Bs=s.forwardRef(({className:t,...a},r)=>e.jsxs(pe.Root,{ref:r,className:o("relative flex w-full touch-none select-none items-center",t),...a,children:[e.jsx(pe.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e.jsx(pe.Range,{className:"absolute h-full bg-primary"})}),e.jsx(pe.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));Bs.displayName=pe.Root.displayName;const ni=({...t})=>e.jsx(Jn.Toaster,{theme:"system",className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t}),Hs=H.cva("animate-spin rounded-full border-2 border-current border-t-transparent",{variants:{size:{default:"h-5 w-5",sm:"h-4 w-4",lg:"h-6 w-6",xl:"h-8 w-8"}},defaultVariants:{size:"default"}}),Us=s.forwardRef(({className:t,size:a,...r},n)=>e.jsx("div",{ref:n,className:o(Hs({size:a}),t),role:"status","aria-label":"Loading",...r,children:e.jsx("span",{className:"sr-only",children:"Loading..."})}));Us.displayName="Spinner";const Gs=s.forwardRef(({className:t,steps:a,currentStep:r,orientation:n="horizontal",onStepClick:i,allowClickOnCompleted:u=!0,...c},p)=>{const m=n==="vertical";return e.jsx("div",{ref:p,className:o("flex",m?"flex-col":"flex-row items-center",t),...c,children:a.map((d,l)=>{const g=l<r,b=l===r,N=i&&(u?g:!1);return e.jsxs(s.Fragment,{children:[e.jsxs("div",{className:o("flex",m?"flex-row items-start gap-3":"flex-col items-center gap-2"),children:[e.jsx("button",{type:"button",disabled:!N,onClick:()=>N&&(i==null?void 0:i(l)),className:o("relative flex h-10 w-10 shrink-0 items-center justify-center rounded-full border-2 text-sm font-semibold transition-all",g?"border-primary bg-primary text-primary-foreground":b?"border-primary bg-background text-primary":"border-muted-foreground/30 bg-background text-muted-foreground",N&&"cursor-pointer hover:border-primary hover:text-primary"),children:g?e.jsx(f.Check,{className:"h-5 w-5"}):d.icon??l+1}),e.jsxs("div",{className:o(m?"pb-8":"text-center",m&&l===a.length-1&&"pb-0"),children:[e.jsx("p",{className:o("text-sm font-medium",b||g?"text-foreground":"text-muted-foreground"),children:d.title}),d.description&&e.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:d.description})]})]}),l<a.length-1&&e.jsx("div",{className:o("transition-colors",m?"ml-5 h-full min-h-[24px] w-0.5 -translate-x-1/2":"mx-2 h-0.5 flex-1 min-w-[24px]",l<r?"bg-primary":"bg-muted-foreground/30")})]},d.id)})})});Gs.displayName="Stepper";const $s=s.forwardRef(({className:t,step:a,currentStep:r,children:n,...i},u)=>a!==r?null:e.jsx("div",{ref:u,className:o("mt-4",t),...i,children:n}));$s.displayName="StepperContent";const Vs=s.forwardRef(({className:t,...a},r)=>e.jsx(Oe.Root,{className:o("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors 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:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",t),...a,ref:r,children:e.jsx(Oe.Thumb,{className:o("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));Vs.displayName=Oe.Root.displayName;const qs=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:r,className:o("w-full caption-bottom text-sm",t),...a})}));qs.displayName="Table";const Ks=s.forwardRef(({className:t,...a},r)=>e.jsx("thead",{ref:r,className:o("[&_tr]:border-b",t),...a}));Ks.displayName="TableHeader";const Xs=s.forwardRef(({className:t,...a},r)=>e.jsx("tbody",{ref:r,className:o("[&_tr:last-child]:border-0",t),...a}));Xs.displayName="TableBody";const Ys=s.forwardRef(({className:t,...a},r)=>e.jsx("tfoot",{ref:r,className:o("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...a}));Ys.displayName="TableFooter";const Zs=s.forwardRef(({className:t,...a},r)=>e.jsx("tr",{ref:r,className:o("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...a}));Zs.displayName="TableRow";const Ws=s.forwardRef(({className:t,...a},r)=>e.jsx("th",{ref:r,className:o("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t),...a}));Ws.displayName="TableHead";const Js=s.forwardRef(({className:t,...a},r)=>e.jsx("td",{ref:r,className:o("p-4 align-middle [&:has([role=checkbox])]:pr-0",t),...a}));Js.displayName="TableCell";const Qs=s.forwardRef(({className:t,...a},r)=>e.jsx("caption",{ref:r,className:o("mt-4 text-sm text-muted-foreground",t),...a}));Qs.displayName="TableCaption";const oi=oe.Root,en=s.forwardRef(({className:t,...a},r)=>e.jsx(oe.List,{ref:r,className:o("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",t),...a}));en.displayName=oe.List.displayName;const tn=s.forwardRef(({className:t,...a},r)=>e.jsx(oe.Trigger,{ref:r,className:o("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",t),...a}));tn.displayName=oe.Trigger.displayName;const an=s.forwardRef(({className:t,...a},r)=>e.jsx(oe.Content,{ref:r,className:o("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...a}));an.displayName=oe.Content.displayName;const rn=s.forwardRef(({className:t,...a},r)=>e.jsx("textarea",{className:o("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:r,...a}));rn.displayName="Textarea";function ii(t,a){const r=t.match(/^(\d{1,2}):(\d{2})$/),n=t.match(/^(\d{1,2}):(\d{2})\s*(AM|PM)$/i);if(r&&a==="24"){const i=parseInt(r[1],10),u=parseInt(r[2],10);if(i>=0&&i<=23&&u>=0&&u<=59)return{hours:i,minutes:u,period:i>=12?"PM":"AM"}}if(n&&a==="12"){const i=parseInt(n[1],10),u=parseInt(n[2],10),c=n[3].toUpperCase();if(i>=1&&i<=12&&u>=0&&u<=59)return{hours:i,minutes:u,period:c}}return null}function li(t,a,r,n){const i=a.toString().padStart(2,"0");if(r==="24")return`${t.toString().padStart(2,"0")}:${i}`;const u=t===0?12:t>12?t-12:t,c=n||(t>=12?"PM":"AM");return`${u}:${i} ${c}`}const sn=s.forwardRef(({className:t,value:a="",onChange:r,format:n="24",...i},u)=>{const c=p=>{r==null||r(p.target.value)};return e.jsxs("div",{className:"relative",children:[e.jsx(f.Clock,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx("input",{type:"text",className:o("flex h-10 w-full rounded-md border border-input bg-background pl-10 pr-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 font-mono",t),ref:u,value:a,onChange:c,placeholder:n==="24"?"HH:MM":"HH:MM AM",...i})]})});sn.displayName="TimePickerInput";const nn=s.forwardRef(({value:t,onChange:a,format:r="24",minuteStep:n=1,disabled:i=!1,className:u,placeholder:c},p)=>{const[m,d]=s.useState(!1),[l,g]=s.useState(r==="24"?0:12),[b,N]=s.useState(0),[S,y]=s.useState("AM"),R=s.useRef(null);s.useEffect(()=>{if(t){const C=ii(t,r);C&&(g(r==="12"?C.hours===0?12:C.hours>12?C.hours-12:C.hours:C.hours),N(C.minutes),y(C.period))}},[t,r]),s.useEffect(()=>{const C=E=>{R.current&&!R.current.contains(E.target)&&d(!1)};return document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)},[]);const x=(C,E,A)=>{let U=C;r==="12"&&(A==="PM"&&U!==12&&(U+=12),A==="AM"&&U===12&&(U=0));const k=li(U,E,r,r==="12"?A:void 0);a==null||a(k)},h=()=>{const C=r==="24"?23:12,E=r==="24"?0:1,A=l>=C?E:l+1;g(A),x(A,b,S)},j=()=>{const C=r==="24"?23:12,A=l<=(r==="24"?0:1)?C:l-1;g(A),x(A,b,S)},w=()=>{const C=(b+n)%60;N(C),x(l,C,S)},v=()=>{const C=b-n<0?60-n:b-n;N(C),x(l,C,S)},I=()=>{const C=S==="AM"?"PM":"AM";y(C),x(l,b,C)};return e.jsxs("div",{ref:R,className:o("relative",u),children:[e.jsxs("div",{className:o("flex h-10 w-full items-center rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background",i&&"cursor-not-allowed opacity-50",!i&&"cursor-pointer hover:bg-accent/50"),onClick:()=>!i&&d(!m),children:[e.jsx(f.Clock,{className:"mr-2 h-4 w-4 text-muted-foreground"}),e.jsx("span",{className:o("font-mono",!t&&"text-muted-foreground"),children:t||c||(r==="24"?"00:00":"12:00 AM")})]}),m&&!i&&e.jsxs("div",{ref:p,className:"absolute z-50 mt-1 rounded-md border bg-popover p-3 shadow-md",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("button",{type:"button",className:"p-1 hover:bg-accent rounded",onClick:h,children:e.jsx(f.ChevronUp,{className:"h-4 w-4"})}),e.jsx("span",{className:"w-10 text-center text-2xl font-mono",children:l.toString().padStart(2,"0")}),e.jsx("button",{type:"button",className:"p-1 hover:bg-accent rounded",onClick:j,children:e.jsx(f.ChevronDown,{className:"h-4 w-4"})})]}),e.jsx("span",{className:"text-2xl font-mono",children:":"}),e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("button",{type:"button",className:"p-1 hover:bg-accent rounded",onClick:w,children:e.jsx(f.ChevronUp,{className:"h-4 w-4"})}),e.jsx("span",{className:"w-10 text-center text-2xl font-mono",children:b.toString().padStart(2,"0")}),e.jsx("button",{type:"button",className:"p-1 hover:bg-accent rounded",onClick:v,children:e.jsx(f.ChevronDown,{className:"h-4 w-4"})})]}),r==="12"&&e.jsxs("div",{className:"flex flex-col items-center ml-2",children:[e.jsx("button",{type:"button",className:"p-1 hover:bg-accent rounded",onClick:I,children:e.jsx(f.ChevronUp,{className:"h-4 w-4"})}),e.jsx("span",{className:"w-10 text-center text-lg font-mono",children:S}),e.jsx("button",{type:"button",className:"p-1 hover:bg-accent rounded",onClick:I,children:e.jsx(f.ChevronDown,{className:"h-4 w-4"})})]})]}),e.jsxs("div",{className:"mt-3 flex justify-end gap-2",children:[e.jsx("button",{type:"button",className:"px-3 py-1 text-sm rounded-md hover:bg-accent",onClick:()=>{const C=new Date,E=C.getHours(),A=C.getMinutes();r==="12"?(g(E===0?12:E>12?E-12:E),y(E>=12?"PM":"AM")):g(E),N(A),x(r==="12"?E===0?12:E>12?E-12:E:E,A,E>=12?"PM":"AM")},children:"Now"}),e.jsx("button",{type:"button",className:"px-3 py-1 text-sm rounded-md bg-primary text-primary-foreground hover:bg-primary/90",onClick:()=>d(!1),children:"Done"})]})]})]})});nn.displayName="TimePicker";const di=H.cva("relative",{variants:{variant:{default:"",alternating:""}},defaultVariants:{variant:"default"}}),on=s.forwardRef(({className:t,variant:a,...r},n)=>e.jsx("div",{ref:n,className:o(di({variant:a}),t),...r}));on.displayName="Timeline";const ci=H.cva("relative pb-8 pl-8 last:pb-0",{variants:{variant:{default:"",success:"[--timeline-dot-color:theme(colors.green.500)]",warning:"[--timeline-dot-color:theme(colors.yellow.500)]",error:"[--timeline-dot-color:theme(colors.red.500)]",info:"[--timeline-dot-color:theme(colors.blue.500)]"}},defaultVariants:{variant:"default"}}),ln=s.forwardRef(({className:t,variant:a,...r},n)=>e.jsx("div",{ref:n,className:o(ci({variant:a}),t),...r}));ln.displayName="TimelineItem";const ui=H.cva("absolute left-[11px] top-[26px] h-[calc(100%-26px)] w-px",{variants:{variant:{default:"bg-border",dashed:"border-l border-dashed border-border bg-transparent",dotted:"border-l border-dotted border-border bg-transparent"}},defaultVariants:{variant:"default"}}),dn=s.forwardRef(({className:t,variant:a,...r},n)=>e.jsx("div",{ref:n,className:o(ui({variant:a}),t),...r}));dn.displayName="TimelineLine";const mi=H.cva("absolute left-0 flex h-6 w-6 items-center justify-center rounded-full border-2 border-background",{variants:{variant:{default:"bg-muted",filled:"bg-primary text-primary-foreground",outline:"border-2 border-primary bg-background",icon:"bg-primary text-primary-foreground"},size:{sm:"h-4 w-4",default:"h-6 w-6",lg:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}}),cn=s.forwardRef(({className:t,variant:a,size:r,icon:n,children:i,...u},c)=>e.jsx("div",{ref:c,className:o(mi({variant:a,size:r}),"bg-[var(--timeline-dot-color,theme(colors.muted.DEFAULT))]",t),...u,children:n||i}));cn.displayName="TimelineDot";const un=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("pt-0.5",t),...a}));un.displayName="TimelineContent";const mn=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("flex items-center gap-2",t),...a}));mn.displayName="TimelineHeader";const pn=s.forwardRef(({className:t,...a},r)=>e.jsx("h3",{ref:r,className:o("font-heading font-semibold leading-none tracking-tight",t),...a}));pn.displayName="TimelineTitle";const fn=s.forwardRef(({className:t,...a},r)=>e.jsx("time",{ref:r,className:o("text-sm text-muted-foreground",t),...a}));fn.displayName="TimelineTime";const gn=s.forwardRef(({className:t,...a},r)=>e.jsx("p",{ref:r,className:o("mt-2 text-sm text-muted-foreground",t),...a}));gn.displayName="TimelineDescription";const xn=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("relative flex items-start gap-4",t),...a}));xn.displayName="TimelineHorizontal";const bn=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("relative flex flex-col items-center",t),...a}));bn.displayName="TimelineHorizontalItem";const hn=s.forwardRef(({className:t,...a},r)=>e.jsx("div",{ref:r,className:o("absolute left-[calc(50%+12px)] top-3 h-px w-[calc(100%-24px)] bg-border",t),...a}));hn.displayName="TimelineHorizontalLine";const Nn=s.createContext({size:"default",variant:"default"}),vn=s.forwardRef(({className:t,variant:a,size:r,children:n,...i},u)=>e.jsx(Ie.Root,{ref:u,className:o("flex items-center justify-center gap-1",t),...i,children:e.jsx(Nn.Provider,{value:{variant:a,size:r},children:n})}));vn.displayName=Ie.Root.displayName;const wn=s.forwardRef(({className:t,children:a,variant:r,size:n,...i},u)=>{const c=s.useContext(Nn);return e.jsx(Ie.Item,{ref:u,className:o(nt({variant:c.variant||r,size:c.size||n}),t),...i,children:a})});wn.displayName=Ie.Item.displayName;const pi=we.Provider,fi=we.Root,gi=we.Trigger,yn=s.forwardRef(({className:t,sideOffset:a=4,...r},n)=>e.jsx(we.Content,{ref:n,sideOffset:a,className:o("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));yn.displayName=we.Content.displayName;const jn=s.forwardRef(({className:t,data:a,selectedId:r,onSelect:n,expandedIds:i,onExpandChange:u,showIcons:c=!0,indentSize:p=20,...m},d)=>{const[l,g]=s.useState([]),b=i??l,N=y=>{const R=b.includes(y)?b.filter(x=>x!==y):[...b,y];u?u(R):g(R)},S=(y,R=0)=>{var w;const x=y.children&&y.children.length>0,h=b.includes(y.id),j=r===y.id;return x?e.jsxs(de.Root,{open:h,onOpenChange:()=>N(y.id),children:[e.jsx(de.Trigger,{asChild:!0,children:e.jsxs("button",{type:"button",onClick:()=>n==null?void 0:n(y),className:o("flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-accent focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",j&&"bg-accent"),style:{paddingLeft:`${R*p+8}px`},children:[e.jsx(f.ChevronRight,{className:o("h-4 w-4 shrink-0 text-muted-foreground transition-transform",h&&"rotate-90")}),c&&e.jsx("span",{className:"shrink-0 text-muted-foreground",children:y.icon??(h?e.jsx(f.FolderOpen,{className:"h-4 w-4"}):e.jsx(f.Folder,{className:"h-4 w-4"}))}),e.jsx("span",{className:"truncate",children:y.name})]})}),e.jsx(de.Content,{className:"overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",children:(w=y.children)==null?void 0:w.map(v=>S(v,R+1))})]},y.id):e.jsxs("button",{type:"button",onClick:()=>n==null?void 0:n(y),className:o("flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-accent focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",j&&"bg-accent"),style:{paddingLeft:`${R*p+8}px`},children:[c&&e.jsx("span",{className:"shrink-0 text-muted-foreground",children:y.icon??e.jsx(f.File,{className:"h-4 w-4"})}),e.jsx("span",{className:"truncate",children:y.name})]},y.id)};return e.jsx("div",{ref:d,className:o("space-y-1",t),...m,children:a.map(y=>S(y))})});jn.displayName="TreeView";exports.Accordion=so;exports.AccordionContent=xt;exports.AccordionItem=ft;exports.AccordionTrigger=gt;exports.Alert=bt;exports.AlertDescription=Nt;exports.AlertDialog=oo;exports.AlertDialogAction=Ct;exports.AlertDialogCancel=Et;exports.AlertDialogContent=wt;exports.AlertDialogDescription=Rt;exports.AlertDialogFooter=jt;exports.AlertDialogHeader=yt;exports.AlertDialogOverlay=ze;exports.AlertDialogPortal=vt;exports.AlertDialogTitle=St;exports.AlertDialogTrigger=io;exports.AlertTitle=ht;exports.AspectRatio=lo;exports.AutocompleteSearch=js;exports.Avatar=Tt;exports.AvatarFallback=It;exports.AvatarImage=kt;exports.Badge=Fe;exports.Banner=Pt;exports.Breadcrumb=Mt;exports.BreadcrumbEllipsis=Bt;exports.BreadcrumbItem=_t;exports.BreadcrumbLink=Ot;exports.BreadcrumbList=Lt;exports.BreadcrumbPage=Ft;exports.BreadcrumbSeparator=zt;exports.Button=Q;exports.Calendar=ye;exports.Card=Ht;exports.CardContent=Vt;exports.CardDescription=$t;exports.CardFooter=qt;exports.CardHeader=Ut;exports.CardTitle=Gt;exports.Carousel=Xt;exports.CarouselContent=Yt;exports.CarouselItem=Zt;exports.CarouselNext=Jt;exports.CarouselPrevious=Wt;exports.Checkbox=Qt;exports.CodeBlock=ea;exports.Collapsible=co;exports.CollapsibleContent=mo;exports.CollapsibleTrigger=uo;exports.Command=De;exports.CommandDialog=go;exports.CommandEmpty=$e;exports.CommandGroup=Ve;exports.CommandInput=Ue;exports.CommandItem=qe;exports.CommandList=Ge;exports.CommandSearch=ws;exports.CommandSeparator=ia;exports.CommandShortcut=la;exports.ContextMenu=xo;exports.ContextMenuCheckboxItem=pa;exports.ContextMenuContent=ua;exports.ContextMenuGroup=ho;exports.ContextMenuItem=ma;exports.ContextMenuLabel=ga;exports.ContextMenuPortal=No;exports.ContextMenuRadioGroup=wo;exports.ContextMenuRadioItem=fa;exports.ContextMenuSeparator=xa;exports.ContextMenuShortcut=ba;exports.ContextMenuSub=vo;exports.ContextMenuSubContent=ca;exports.ContextMenuSubTrigger=da;exports.ContextMenuTrigger=bo;exports.CreditCardCVVInput=Ye;exports.CreditCardExpiryInput=Xe;exports.CreditCardInput=Na;exports.CreditCardNumberInput=Ke;exports.CurrencyInput=Ca;exports.DatePicker=va;exports.DateRangePicker=wa;exports.DateTimePicker=Sa;exports.DecimalInput=Re;exports.Dialog=ta;exports.DialogClose=fo;exports.DialogContent=He;exports.DialogDescription=oa;exports.DialogFooter=sa;exports.DialogHeader=ra;exports.DialogOverlay=Be;exports.DialogPortal=aa;exports.DialogTitle=na;exports.DialogTrigger=po;exports.DocumentInput=er;exports.Drawer=ko;exports.DrawerClose=Aa;exports.DrawerContent=Pa;exports.DrawerDescription=Oa;exports.DrawerFooter=La;exports.DrawerHandle=Fa;exports.DrawerHeader=Ma;exports.DrawerOverlay=Je;exports.DrawerPortal=Da;exports.DrawerTitle=_a;exports.DrawerTrigger=Ia;exports.DropdownMenu=Io;exports.DropdownMenuCheckboxItem=Ga;exports.DropdownMenuContent=Ha;exports.DropdownMenuGroup=Do;exports.DropdownMenuItem=Ua;exports.DropdownMenuLabel=Va;exports.DropdownMenuPortal=Po;exports.DropdownMenuRadioGroup=Lo;exports.DropdownMenuRadioItem=$a;exports.DropdownMenuSeparator=qa;exports.DropdownMenuShortcut=Ka;exports.DropdownMenuSub=Mo;exports.DropdownMenuSubContent=Ba;exports.DropdownMenuSubTrigger=za;exports.DropdownMenuTrigger=Ao;exports.EmailInput=Xa;exports.ExpandableSearch=ys;exports.Fieldset=Ya;exports.FieldsetDescription=Wa;exports.FieldsetLegend=Za;exports.FileInput=Pe;exports.FormDescription=rr;exports.FormLabel=ar;exports.FormMessage=sr;exports.HoverCard=zo;exports.HoverCardContent=nr;exports.HoverCardTrigger=Bo;exports.Image=hr;exports.ImageInput=Qa;exports.Input=or;exports.InputOTP=ir;exports.InputOTPGroup=dr;exports.InputOTPSeparator=cr;exports.InputOTPSlot=lr;exports.KEY_SYMBOLS=mr;exports.Kbd=Qe;exports.KbdGroup=fr;exports.Link=br;exports.Menubar=vr;exports.MenubarCheckboxItem=Cr;exports.MenubarContent=Sr;exports.MenubarGroup=Go;exports.MenubarItem=Rr;exports.MenubarLabel=Tr;exports.MenubarMenu=Uo;exports.MenubarPortal=$o;exports.MenubarRadioGroup=qo;exports.MenubarRadioItem=Er;exports.MenubarSeparator=kr;exports.MenubarShortcut=Ir;exports.MenubarSub=Vo;exports.MenubarSubContent=jr;exports.MenubarSubTrigger=yr;exports.MenubarTrigger=wr;exports.MultiSelect=Ar;exports.NavigationDrawer=Br;exports.NavigationDrawerContent=Ur;exports.NavigationDrawerFooter=Gr;exports.NavigationDrawerGroup=qr;exports.NavigationDrawerHeader=Hr;exports.NavigationDrawerItem=Vr;exports.NavigationDrawerProvider=Yo;exports.NavigationDrawerToggle=$r;exports.NavigationMenu=Kr;exports.NavigationMenuContent=Wr;exports.NavigationMenuIndicator=Jr;exports.NavigationMenuItem=Wo;exports.NavigationMenuLink=Jo;exports.NavigationMenuList=Xr;exports.NavigationMenuTrigger=Zr;exports.NavigationMenuViewport=at;exports.NumberInput=Qr;exports.Pagination=es;exports.PaginationContent=ts;exports.PaginationEllipsis=ns;exports.PaginationItem=as;exports.PaginationLink=Me;exports.PaginationNext=ss;exports.PaginationPrevious=rs;exports.PasswordInput=os;exports.PercentageInput=Ea;exports.PhoneInput=ls;exports.Pill=cs;exports.Popover=je;exports.PopoverContent=ue;exports.PopoverTrigger=Se;exports.Progress=us;exports.RadioGroup=ms;exports.RadioGroupItem=ps;exports.Rating=fs;exports.ResizableHandle=xs;exports.ResizablePanel=st;exports.ResizablePanelGroup=gs;exports.RichText=hs;exports.RichTextToolbar=bs;exports.ScrollArea=Ns;exports.ScrollBar=it;exports.SearchInput=vs;exports.Select=fe;exports.SelectContent=le;exports.SelectGroup=Co;exports.SelectItem=ae;exports.SelectLabel=ya;exports.SelectScrollDownButton=We;exports.SelectScrollUpButton=Ze;exports.SelectSeparator=ja;exports.SelectTrigger=ie;exports.SelectValue=ge;exports.Separator=he;exports.Sheet=Dr;exports.SheetClose=Ko;exports.SheetContent=tt;exports.SheetDescription=Fr;exports.SheetFooter=_r;exports.SheetHeader=Lr;exports.SheetOverlay=et;exports.SheetPortal=Mr;exports.SheetTitle=Or;exports.SheetTrigger=Pr;exports.Shortcut=gr;exports.Sidebar=Rs;exports.SidebarContent=Ts;exports.SidebarFooter=ks;exports.SidebarGroup=Is;exports.SidebarGroupContent=Ds;exports.SidebarGroupLabel=As;exports.SidebarHeader=Es;exports.SidebarMenu=Ps;exports.SidebarMenuButton=Ls;exports.SidebarMenuItem=Ms;exports.SidebarMenuSub=_s;exports.SidebarMenuSubButton=Fs;exports.SidebarMenuSubItem=Os;exports.SidebarProvider=ai;exports.SidebarSeparator=zs;exports.SidebarTrigger=Cs;exports.Skeleton=si;exports.Slider=Bs;exports.Spinner=Us;exports.Stepper=Gs;exports.StepperContent=$s;exports.Switch=Vs;exports.Table=qs;exports.TableBody=Xs;exports.TableCaption=Qs;exports.TableCell=Js;exports.TableFooter=Ys;exports.TableHead=Ws;exports.TableHeader=Ks;exports.TableRow=Zs;exports.Tabs=oi;exports.TabsContent=an;exports.TabsList=en;exports.TabsTrigger=tn;exports.Textarea=rn;exports.TimePicker=nn;exports.TimePickerInput=sn;exports.Timeline=on;exports.TimelineContent=un;exports.TimelineDescription=gn;exports.TimelineDot=cn;exports.TimelineHeader=mn;exports.TimelineHorizontal=xn;exports.TimelineHorizontalItem=bn;exports.TimelineHorizontalLine=hn;exports.TimelineItem=ln;exports.TimelineLine=dn;exports.TimelineTime=fn;exports.TimelineTitle=pn;exports.Toaster=ni;exports.Toggle=ot;exports.ToggleGroup=vn;exports.ToggleGroupItem=wn;exports.Tooltip=fi;exports.TooltipContent=yn;exports.TooltipProvider=pi;exports.TooltipTrigger=gi;exports.TreeView=jn;exports.UnitInput=Ta;exports.Video=Nr;exports.badgeVariants=At;exports.bannerVariants=Dt;exports.buttonVariants=ee;exports.cn=o;exports.currencies=Ra;exports.defaultCountries=is;exports.formLabelVariants=tr;exports.formatFileSize=Ee;exports.formatKey=pr;exports.getFileType=Ja;exports.kbdVariants=ur;exports.linkVariants=xr;exports.mediaVariants=be;exports.navigationMenuTriggerStyle=Yr;exports.pillVariants=ds;exports.spinnerVariants=Hs;exports.toggleVariants=nt;exports.useNavigationDrawer=me;exports.useSidebar=ne;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export * from "./components/accordion";
|
|
2
|
+
export * from "./components/alert";
|
|
3
|
+
export * from "./components/alert-dialog";
|
|
4
|
+
export * from "./components/aspect-ratio";
|
|
5
|
+
export * from "./components/avatar";
|
|
6
|
+
export * from "./components/badge";
|
|
7
|
+
export * from "./components/banner";
|
|
8
|
+
export * from "./components/breadcrumb";
|
|
9
|
+
export * from "./components/button";
|
|
10
|
+
export * from "./components/calendar";
|
|
11
|
+
export * from "./components/card";
|
|
12
|
+
export * from "./components/carousel";
|
|
13
|
+
export * from "./components/checkbox";
|
|
14
|
+
export * from "./components/code-block";
|
|
15
|
+
export * from "./components/collapsible";
|
|
16
|
+
export * from "./components/command";
|
|
17
|
+
export * from "./components/context-menu";
|
|
18
|
+
export * from "./components/credit-card-input";
|
|
19
|
+
export * from "./components/date-picker";
|
|
20
|
+
export * from "./components/datetime-picker";
|
|
21
|
+
export * from "./components/decimal-input";
|
|
22
|
+
export * from "./components/dialog";
|
|
23
|
+
export * from "./components/drawer";
|
|
24
|
+
export * from "./components/dropdown-menu";
|
|
25
|
+
export * from "./components/email-input";
|
|
26
|
+
export * from "./components/fieldset";
|
|
27
|
+
export * from "./components/file-input";
|
|
28
|
+
export * from "./components/form-label";
|
|
29
|
+
export * from "./components/hover-card";
|
|
30
|
+
export * from "./components/input";
|
|
31
|
+
export * from "./components/input-otp";
|
|
32
|
+
export * from "./components/kbd";
|
|
33
|
+
export * from "./components/link";
|
|
34
|
+
export * from "./components/media";
|
|
35
|
+
export * from "./components/menubar";
|
|
36
|
+
export * from "./components/multi-select";
|
|
37
|
+
export * from "./components/navigation-drawer";
|
|
38
|
+
export * from "./components/navigation-menu";
|
|
39
|
+
export * from "./components/number-input";
|
|
40
|
+
export * from "./components/pagination";
|
|
41
|
+
export * from "./components/password-input";
|
|
42
|
+
export * from "./components/phone-input";
|
|
43
|
+
export * from "./components/pill";
|
|
44
|
+
export * from "./components/popover";
|
|
45
|
+
export * from "./components/progress";
|
|
46
|
+
export * from "./components/radio-group";
|
|
47
|
+
export * from "./components/rating";
|
|
48
|
+
export * from "./components/resizable";
|
|
49
|
+
export * from "./components/rich-text";
|
|
50
|
+
export * from "./components/scroll-area";
|
|
51
|
+
export * from "./components/search-input";
|
|
52
|
+
export * from "./components/select";
|
|
53
|
+
export * from "./components/separator";
|
|
54
|
+
export * from "./components/sheet";
|
|
55
|
+
export * from "./components/sidebar";
|
|
56
|
+
export * from "./components/skeleton";
|
|
57
|
+
export * from "./components/slider";
|
|
58
|
+
export * from "./components/sonner";
|
|
59
|
+
export * from "./components/spinner";
|
|
60
|
+
export * from "./components/stepper";
|
|
61
|
+
export * from "./components/switch";
|
|
62
|
+
export * from "./components/table";
|
|
63
|
+
export * from "./components/tabs";
|
|
64
|
+
export * from "./components/textarea";
|
|
65
|
+
export * from "./components/time-picker";
|
|
66
|
+
export * from "./components/timeline";
|
|
67
|
+
export * from "./components/toggle";
|
|
68
|
+
export * from "./components/toggle-group";
|
|
69
|
+
export * from "./components/tooltip";
|
|
70
|
+
export * from "./components/tree-view";
|
|
71
|
+
export { cn } from "./lib/utils";
|