@reeverdev/ui 0.2.30 → 0.2.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import*as K from'react';import {createContext,useContext}from'react';import {cva}from'class-variance-authority';import {AlertCircle,AlertTriangle,CheckCircle2,Info,Loader2,Minus,Check,X as X$1,ChevronDown,ChevronUp,ChevronRight,Circle,ChevronsUpDown,Search,EyeOff,Eye,Plus,Calendar,Heart,Star,PanelLeft,PanelLeftOpen,PanelLeftClose,TrendingUp,TrendingDown,Upload,Clock,Menu,ExternalLink,ArrowUp,File,Folder,FolderOpen,Copy,RefreshCw,CheckCircle,XCircle,HelpCircle,ZoomOut,ZoomIn,RotateCw,Download,Minimize2,Maximize2,ChevronLeft,GripVertical,Undo,Redo,Heading1,Heading2,Heading3,Bold,Italic,Underline,Strikethrough,List,ListOrdered,AlignLeft,AlignCenter,AlignRight,Quote,Code,Link,Unlink,Moon,Sun,Monitor,MoreHorizontal,MoreVertical,ArrowRight,Hash,User,Settings,Bell,CheckCheck,Trash2,Image,FileVideo,FileAudio,FileText,FileArchive,ArrowDown}from'lucide-react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {Slot}from'@radix-ui/react-slot';import*as yo from'@radix-ui/react-checkbox';import*as ne from'@radix-ui/react-dialog';import*as os from'@radix-ui/react-label';import*as No from'@radix-ui/react-separator';import*as Po from'@radix-ui/react-switch';import*as ea from'@radix-ui/react-avatar';import*as ht from'@radix-ui/react-tooltip';import*as Bd from'react-dom';import {createPortal}from'react-dom';import*as J from'@radix-ui/react-select';import*as X from'@radix-ui/react-dropdown-menu';import*as xt from'@radix-ui/react-popover';import*as yt from'@radix-ui/react-tabs';import*as mg from'@radix-ui/react-visually-hidden';import {VisuallyHidden}from'@radix-ui/react-visually-hidden';import {Toaster}from'sonner';export{toast}from'sonner';import*as nt from'@radix-ui/react-scroll-area';import*as q from'@radix-ui/react-context-menu';import*as Va from'@radix-ui/react-radio-group';import*as ys from'@radix-ui/react-toggle';import*as zr from'@radix-ui/react-toggle-group';import*as ra from'@radix-ui/react-slider';import*as Et from'@radix-ui/react-accordion';import*as cr from'@radix-ui/react-collapsible';import*as ko from'@radix-ui/react-progress';import*as mr from'@radix-ui/react-hover-card';import*as Yc from'@radix-ui/react-aspect-ratio';import*as we from'@radix-ui/react-navigation-menu';import {Drawer}from'vaul';import {DayPicker,useDayPicker}from'react-day-picker';import {format,getMonth,getYear,setMonth,setYear}from'date-fns';import {Command}from'cmdk';import {Panel,Group,Separator}from'react-resizable-panels';import {HexColorPicker,HexColorInput}from'react-colorful';import*as Y from'@radix-ui/react-menubar';import*as De from'@radix-ui/react-alert-dialog';import {ResponsiveContainer,LineChart,CartesianGrid,XAxis,YAxis,Tooltip,Legend,Line,BarChart,Bar,PieChart,Pie,Cell,AreaChart,Area}from'recharts';import {useSensors,useSensor,PointerSensor,KeyboardSensor,DndContext,closestCorners,DragOverlay}from'@dnd-kit/core';import {sortableKeyboardCoordinates,SortableContext,verticalListSortingStrategy,useSortable}from'@dnd-kit/sortable';import {CSS}from'@dnd-kit/utilities';import cC from'embla-carousel-react';import {useEditor,EditorContent}from'@tiptap/react';import xC from'@tiptap/starter-kit';import yC from'@tiptap/extension-link';import RC from'@tiptap/extension-underline';import wC from'@tiptap/extension-text-align';import NC from'@tiptap/extension-placeholder';import _C,{centerCrop,makeAspectCrop}from'react-image-crop';import'react-image-crop/dist/ReactCrop.css';import JC from'react-qr-code';import {useTheme,ThemeProvider}from'next-themes';export{useTheme}from'next-themes';import {motion,AnimatePresence,useInView,useSpring,useTransform,useScroll}from'framer-motion';import vo from'canvas-confetti';function o(...e){return twMerge(clsx(e))}var Qx=cva("relative w-full p-4",{variants:{variant:{solid:"border",bordered:"border bg-transparent",flat:""},type:{default:"",success:"",warning:"",error:""},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},compoundVariants:[{variant:"solid",type:"default",className:"!border-primary bg-primary text-primary-foreground [&>svg]:text-primary-foreground"},{variant:"bordered",type:"default",className:"!border-primary text-primary [&>svg]:text-primary"},{variant:"flat",type:"default",className:"bg-primary/10 text-primary [&>svg]:text-primary"},{variant:"solid",type:"success",className:"!border-green-600 bg-green-600 text-white dark:!border-green-500 dark:bg-green-500 [&>svg]:text-white"},{variant:"bordered",type:"success",className:"!border-green-600 text-green-600 dark:!border-green-500 dark:text-green-500 [&>svg]:text-green-600 dark:[&>svg]:text-green-500"},{variant:"flat",type:"success",className:"bg-green-600/10 text-green-600 dark:bg-green-500/10 dark:text-green-500 [&>svg]:text-green-600 dark:[&>svg]:text-green-500"},{variant:"solid",type:"warning",className:"!border-amber-600 bg-amber-600 text-white dark:!border-amber-500 dark:bg-amber-500 [&>svg]:text-white"},{variant:"bordered",type:"warning",className:"!border-amber-600 text-amber-600 dark:!border-amber-500 dark:text-amber-500 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-500"},{variant:"flat",type:"warning",className:"bg-amber-600/10 text-amber-600 dark:bg-amber-500/10 dark:text-amber-500 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-500"},{variant:"solid",type:"error",className:"!border-red-600 bg-red-600 text-white dark:!border-red-500 dark:bg-red-500 [&>svg]:text-white"},{variant:"bordered",type:"error",className:"!border-red-600 text-red-600 dark:!border-red-500 dark:text-red-500 [&>svg]:text-red-600 dark:[&>svg]:text-red-500"},{variant:"flat",type:"error",className:"bg-red-600/10 text-red-600 dark:bg-red-500/10 dark:text-red-500 [&>svg]:text-red-600 dark:[&>svg]:text-red-500"}],defaultVariants:{variant:"solid",type:"default",radius:"md"}}),ey={default:Info,success:CheckCircle2,warning:AlertTriangle,error:AlertCircle},ty=K.forwardRef(({className:e,variant:t="solid",type:a="default",radius:r="md",icon:n,hideIcon:i=false,endContent:s,children:l,...d},m)=>{let u=ey[a],c=!i,f=n!==void 0?n:u?jsx(u,{className:"h-4 w-4"}):null;return jsxs("div",{ref:m,role:"alert",className:o(Qx({variant:t,type:a,radius:r}),s&&"flex items-center justify-between",e),...d,children:[jsxs("div",{className:"flex items-start gap-3",children:[c&&f&&jsx("span",{className:"mt-0.5 shrink-0",children:f}),jsx("div",{children:l})]}),s&&jsx("div",{className:"shrink-0 ml-4",children:s})]})});ty.displayName="Alert";var ay=K.forwardRef(({className:e,...t},a)=>jsx("h5",{ref:a,className:o("mb-1 font-medium leading-none tracking-tight",e),...t}));ay.displayName="AlertTitle";var ry=K.forwardRef(({className:e,...t},a)=>jsx("div",{ref:a,className:o("text-sm [&_p]:leading-relaxed",e),...t}));ry.displayName="AlertDescription";var oy=cva("absolute rounded-full flex items-center justify-center font-semibold",{variants:{variant:{solid:"",bordered:"border-2"},color:{default:"",success:"",warning:"",danger:"",info:""},size:{sm:"",md:"",lg:""},placement:{"top-right":"-top-1 -right-1","top-left":"-top-1 -left-1","bottom-right":"-bottom-1 -right-1","bottom-left":"-bottom-1 -left-1"}},compoundVariants:[{variant:"solid",color:"default",className:"bg-zinc-800 text-white dark:bg-zinc-200 dark:text-zinc-900"},{variant:"solid",color:"success",className:"bg-green-600 text-white dark:bg-green-500"},{variant:"solid",color:"warning",className:"bg-amber-600 text-white dark:bg-amber-500"},{variant:"solid",color:"danger",className:"bg-red-600 text-white dark:bg-red-500"},{variant:"solid",color:"info",className:"bg-blue-600 text-white dark:bg-blue-500"},{variant:"bordered",color:"default",className:"bg-white border-zinc-800 text-zinc-800 dark:bg-zinc-900 dark:border-zinc-200 dark:text-zinc-200"},{variant:"bordered",color:"success",className:"bg-white border-green-600 text-green-600 dark:bg-zinc-900 dark:border-green-500 dark:text-green-500"},{variant:"bordered",color:"warning",className:"bg-white border-amber-600 text-amber-600 dark:bg-zinc-900 dark:border-amber-500 dark:text-amber-500"},{variant:"bordered",color:"danger",className:"bg-white border-red-600 text-red-600 dark:bg-zinc-900 dark:border-red-500 dark:text-red-500"},{variant:"bordered",color:"info",className:"bg-white border-blue-600 text-blue-600 dark:bg-zinc-900 dark:border-blue-500 dark:text-blue-500"},{size:"sm",className:"min-w-4 h-4 text-[10px] px-1"},{size:"md",className:"min-w-5 h-5 text-xs px-1"},{size:"lg",className:"min-w-6 h-6 text-sm px-1.5"}],defaultVariants:{variant:"solid",color:"default",size:"md",placement:"top-right"}}),ny={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"},iy=K.forwardRef(({className:e,children:t,content:a,variant:r="solid",color:n="default",size:i="md",placement:s="top-right",isDot:l=false,...d},m)=>jsxs("div",{ref:m,className:o("relative inline-flex",e),...d,children:[t,jsx("span",{className:o(oy({variant:r,color:n,size:l?void 0:i,placement:s}),l&&ny[i||"md"],l&&"min-w-0 p-0"),children:!l&&a})]}));iy.displayName="Badge";var sy=cva("inline-flex items-center gap-1 font-medium rounded-full",{variants:{color:{default:"bg-zinc-100 text-zinc-900 dark:bg-zinc-800 dark:text-white",success:"bg-green-600/20 text-green-700 dark:bg-green-500/20 dark:text-green-500",warning:"bg-amber-600/20 text-amber-700 dark:bg-amber-500/20 dark:text-amber-500",danger:"bg-red-600/20 text-red-700 dark:bg-red-500/20 dark:text-red-500",info:"bg-blue-600/20 text-blue-700 dark:bg-blue-500/20 dark:text-blue-500"},size:{sm:"px-2 py-0.5 text-[10px]",md:"px-2.5 py-0.5 text-xs",lg:"px-3 py-1 text-sm"}},defaultVariants:{color:"default",size:"md"}}),es=K.forwardRef(({className:e,color:t,size:a,...r},n)=>jsx("span",{ref:n,className:o(sy({color:t,size:a}),e),...r}));es.displayName="TextBadge";var Qt=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background transition-all duration-200 ease-out cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed active:scale-[0.97] [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{solid:"",bordered:"border-2 border-current bg-transparent hover:opacity-70",light:"bg-transparent hover:bg-zinc-100 dark:hover:bg-zinc-800",flat:"bg-zinc-100 dark:bg-zinc-800 hover:opacity-70",ghost:"border-2 bg-transparent"},color:{default:"",success:"",warning:"",danger:"",info:""},size:{sm:"h-9 px-3 text-xs",md:"h-10 px-4",lg:"h-11 px-5 text-base",icon:"h-10 w-10"},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},compoundVariants:[{variant:"solid",color:"default",className:"bg-zinc-800 text-white hover:bg-zinc-700 dark:bg-zinc-200 dark:text-zinc-900 dark:hover:bg-zinc-300"},{variant:"bordered",color:"default",className:"text-zinc-900 dark:text-white"},{variant:"light",color:"default",className:"text-zinc-900 hover:bg-zinc-100 dark:text-white dark:hover:bg-zinc-800"},{variant:"flat",color:"default",className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-800 dark:text-white"},{variant:"ghost",color:"default",className:"text-zinc-900 border-zinc-900 hover:bg-zinc-900 hover:text-white dark:text-white dark:border-white dark:hover:bg-white dark:hover:text-zinc-900"},{variant:"solid",color:"success",className:"bg-green-600 text-white hover:bg-green-700 dark:bg-green-700 dark:text-white dark:hover:bg-green-600"},{variant:"bordered",color:"success",className:"text-green-600 dark:text-green-500"},{variant:"light",color:"success",className:"text-green-600 hover:bg-green-600/10 dark:text-green-500 dark:hover:bg-green-500/10"},{variant:"flat",color:"success",className:"bg-green-600/20 text-green-700 dark:bg-green-500/20 dark:text-green-500"},{variant:"ghost",color:"success",className:"text-green-600 border-green-600 hover:bg-green-600 hover:text-white dark:text-green-500 dark:border-green-500 dark:hover:bg-green-500 dark:hover:text-white"},{variant:"solid",color:"warning",className:"bg-amber-600 text-white hover:bg-amber-700 dark:bg-amber-700 dark:text-white dark:hover:bg-amber-600"},{variant:"bordered",color:"warning",className:"text-amber-600 dark:text-amber-500"},{variant:"light",color:"warning",className:"text-amber-600 hover:bg-amber-600/10 dark:text-amber-500 dark:hover:bg-amber-500/10"},{variant:"flat",color:"warning",className:"bg-amber-600/20 text-amber-700 dark:bg-amber-500/20 dark:text-amber-500"},{variant:"ghost",color:"warning",className:"text-amber-600 border-amber-600 hover:bg-amber-600 hover:text-white dark:text-amber-500 dark:border-amber-500 dark:hover:bg-amber-500 dark:hover:text-white"},{variant:"solid",color:"danger",className:"bg-red-600 text-white hover:bg-red-700 dark:bg-red-700 dark:text-white dark:hover:bg-red-600"},{variant:"bordered",color:"danger",className:"text-red-600 dark:text-red-500"},{variant:"light",color:"danger",className:"text-red-600 hover:bg-red-600/10 dark:text-red-500 dark:hover:bg-red-500/10"},{variant:"flat",color:"danger",className:"bg-red-600/20 text-red-700 dark:bg-red-500/20 dark:text-red-500"},{variant:"ghost",color:"danger",className:"text-red-600 border-red-600 hover:bg-red-600 hover:text-white dark:text-red-500 dark:border-red-500 dark:hover:bg-red-500 dark:hover:text-white"},{variant:"solid",color:"info",className:"bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-700 dark:text-white dark:hover:bg-blue-600"},{variant:"bordered",color:"info",className:"text-blue-600 dark:text-blue-500"},{variant:"light",color:"info",className:"text-blue-600 hover:bg-blue-600/10 dark:text-blue-500 dark:hover:bg-blue-500/10"},{variant:"flat",color:"info",className:"bg-blue-600/20 text-blue-700 dark:bg-blue-500/20 dark:text-blue-500"},{variant:"ghost",color:"info",className:"text-blue-600 border-blue-600 hover:bg-blue-600 hover:text-white dark:text-blue-500 dark:border-blue-500 dark:hover:bg-blue-500 dark:hover:text-white"}],defaultVariants:{variant:"solid",color:"default",size:"md",radius:"md"}}),G=K.forwardRef(({className:e,variant:t,color:a,size:r,radius:n,asChild:i=false,href:s,loading:l=false,startContent:d,endContent:m,children:u,disabled:c,style:f,...p},v)=>{let y=c||l,x=t==="bordered"?{borderColor:"currentColor",...f}:f,N=l?jsxs(Fragment,{children:[jsx(Loader2,{className:"animate-spin"}),u]}):jsxs(Fragment,{children:[d,u,m]});return i?jsx(Slot,{className:o(Qt({variant:t,color:a,size:r,radius:n,className:e})),ref:v,style:x,...p,children:N}):s?jsx("a",{href:s,className:o(Qt({variant:t,color:a,size:r,radius:n,className:e}),y&&"pointer-events-none opacity-50"),style:x,...p,children:N}):jsx("button",{className:o(Qt({variant:t,color:a,size:r,radius:n,className:e})),ref:v,disabled:y,style:x,...p,children:N})});G.displayName="Button";var vd=cva("border bg-card text-card-foreground shadow-sm",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"}},defaultVariants:{radius:"lg"}}),hd=K.forwardRef(({className:e,radius:t,...a},r)=>jsx("div",{ref:r,className:o(vd({radius:t,className:e})),...a}));hd.displayName="Card";var xd=K.forwardRef(({className:e,...t},a)=>jsx("div",{ref:a,className:o("p-6 text-2xl font-semibold leading-none tracking-tight",e),...t}));xd.displayName="CardHeader";var yd=K.forwardRef(({className:e,...t},a)=>jsx("div",{ref:a,className:o("p-6 pt-0",e),...t}));yd.displayName="CardContent";var Rd=K.forwardRef(({className:e,...t},a)=>jsx("div",{ref:a,className:o("flex items-center p-6 pt-0",e),...t}));Rd.displayName="CardFooter";var Ro=K.forwardRef(({className:e,checked:t,onFocus:a,onBlur:r,style:n,...i},s)=>{let[l,d]=K.useState(false);return jsx(yo.Root,{ref:s,checked:t,className:o("peer h-4 w-4 shrink-0 rounded-sm border border-primary focus-visible:outline-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:bg-background data-[state=indeterminate]:text-foreground transition-colors",e),style:{...n,borderColor:l?"var(--color-foreground)":void 0},onFocus:m=>{d(true),a?.(m);},onBlur:m=>{d(false),r?.(m);},...i,children:jsx(yo.Indicator,{className:o("flex items-center justify-center text-current"),children:t==="indeterminate"?jsx(Minus,{className:"h-4 w-4"}):jsx(Check,{className:"h-4 w-4"})})})});Ro.displayName=yo.Root.displayName;var as=ne.Root,by=ne.Trigger,wd=ne.Portal,vy=ne.Close,rs=K.forwardRef(({className:e,...t},a)=>jsx(ne.Overlay,{ref:a,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",e),...t}));rs.displayName=ne.Overlay.displayName;var gn=K.forwardRef(({className:e,children:t,...a},r)=>jsxs(wd,{children:[jsx(rs,{}),jsxs(ne.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",e),...a,children:[t,jsxs(ne.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:[jsx(X$1,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]})]}));gn.displayName=ne.Content.displayName;var Nd=({className:e,...t})=>jsx("div",{className:o("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Nd.displayName="DialogHeader";var Pd=({className:e,...t})=>jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Pd.displayName="DialogFooter";var Cd=K.forwardRef(({className:e,...t},a)=>jsx(ne.Title,{ref:a,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));Cd.displayName=ne.Title.displayName;var Sd=K.forwardRef(({className:e,...t},a)=>jsx(ne.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));Sd.displayName=ne.Description.displayName;var xy=cva("flex h-10 w-full border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),vn=K.forwardRef(({className:e,type:t,radius:a,onFocus:r,onBlur:n,style:i,...s},l)=>{let[d,m]=K.useState(false);return jsx("input",{type:t,className:o(xy({radius:a,className:e})),ref:l,style:{...i,borderColor:d?"var(--color-foreground)":void 0},onFocus:u=>{m(true),r?.(u);},onBlur:u=>{m(false),n?.(u);},...s})});vn.displayName="Input";var wy=cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),er=K.forwardRef(({className:e,...t},a)=>jsx(os.Root,{ref:a,className:o(wy(),e),...t}));er.displayName=os.Root.displayName;var ka=K.forwardRef(({className:e,orientation:t="horizontal",decorative:a=true,text:r,...n},i)=>r&&t==="horizontal"?jsxs("div",{className:o("flex items-center gap-4",e),children:[jsx(No.Root,{decorative:a,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n}),jsx("span",{className:"text-sm text-muted-foreground",children:r}),jsx(No.Root,{decorative:a,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n})]}):jsx(No.Root,{ref:i,decorative:a,orientation:t,className:o("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));ka.displayName=No.Root.displayName;var Ld=K.forwardRef(({className:e,...t},a)=>jsx(Po.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",e),...t,ref:a,children:jsx(Po.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")})}));Ld.displayName=Po.Root.displayName;var Sy=cva("flex min-h-[80px] w-full border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"}},defaultVariants:{radius:"md"}}),Vd=K.forwardRef(({className:e,radius:t,onFocus:a,onBlur:r,style:n,...i},s)=>{let[l,d]=K.useState(false);return jsx("textarea",{className:o(Sy({radius:t,className:e})),ref:s,style:{...n,borderColor:l?"var(--color-foreground)":void 0},onFocus:m=>{d(true),a?.(m);},onBlur:m=>{d(false),r?.(m);},...i})});Vd.displayName="Textarea";var Ed=cva("rounded-md bg-muted",{variants:{variant:{pulse:"animate-pulse",shimmer:"skeleton-shimmer",static:""}},defaultVariants:{variant:"pulse"}}),yn=K.forwardRef(({className:e,variant:t,...a},r)=>jsx("div",{ref:r,className:o(Ed({variant:t,className:e})),...a}));yn.displayName="Skeleton";var Ly=cva("relative flex shrink-0 overflow-hidden cursor-pointer",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{size:"md",radius:"full"}}),tr=K.forwardRef(({className:e,size:t,radius:a,...r},n)=>jsx(ea.Root,{ref:n,className:o(Ly({size:t,radius:a,className:e})),...r}));tr.displayName=ea.Root.displayName;var Hr=K.forwardRef(({className:e,...t},a)=>jsx(ea.Image,{ref:a,className:o("aspect-square h-full w-full",e),...t}));Hr.displayName=ea.Image.displayName;var ar=K.forwardRef(({className:e,...t},a)=>jsx(ea.Fallback,{ref:a,className:o("flex h-full w-full items-center justify-center bg-muted",e),...t}));ar.displayName=ea.Fallback.displayName;var rr=ht.Provider,or=ht.Root,nr=ht.Trigger,Da=K.forwardRef(({className:e,sideOffset:t=4,...a},r)=>jsx(ht.Portal,{children:jsx(ht.Content,{ref:r,sideOffset:t,className:o("z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100 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",e),...a})}));Da.displayName=ht.Content.displayName;var ss=J.Root,Iy=J.Group,ls=J.Value,wn=K.forwardRef(({className:e,children:t,...a},r)=>jsxs(J.Trigger,{ref:r,className:o("flex h-10 w-full cursor-pointer items-center justify-between rounded-md border border-zinc-300 dark:border-zinc-700 bg-background px-3 py-2 text-sm placeholder:text-muted-foreground outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...a,children:[t,jsx(J.Icon,{asChild:true,children:jsx(ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));wn.displayName=J.Trigger.displayName;var ds=K.forwardRef(({className:e,...t},a)=>jsx(J.ScrollUpButton,{ref:a,className:o("flex cursor-default items-center justify-center py-1",e),...t,children:jsx(ChevronUp,{className:"h-4 w-4"})}));ds.displayName=J.ScrollUpButton.displayName;var cs=K.forwardRef(({className:e,...t},a)=>jsx(J.ScrollDownButton,{ref:a,className:o("flex cursor-default items-center justify-center py-1",e),...t,children:jsx(ChevronDown,{className:"h-4 w-4"})}));cs.displayName=J.ScrollDownButton.displayName;var Nn=K.forwardRef(({className:e,children:t,position:a="popper",...r},n)=>jsx(J.Portal,{children:jsxs(J.Content,{ref:n,className:o("relative z-[9999] max-h-60 min-w-[8rem] overflow-auto rounded-md border border-zinc-300 dark:border-zinc-700 bg-background 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",a==="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",e),position:a,...r,children:[jsx(ds,{}),jsx(J.Viewport,{className:o("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),jsx(cs,{})]})}));Nn.displayName=J.Content.displayName;var Od=K.forwardRef(({className:e,...t},a)=>jsx(J.Label,{ref:a,className:o("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Od.displayName=J.Label.displayName;var Pn=K.forwardRef(({className:e,children:t,...a},r)=>jsxs(J.Item,{ref:r,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",e),...a,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(J.ItemIndicator,{children:jsx(Check,{className:"h-4 w-4"})})}),jsx(J.ItemText,{children:t})]}));Pn.displayName=J.Item.displayName;var Gd=K.forwardRef(({className:e,...t},a)=>jsx(J.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));Gd.displayName=J.Separator.displayName;var Wd=K.forwardRef(({options:e,value:t,defaultValue:a=[],onChange:r,placeholder:n="Select items...",disabled:i,maxDisplayItems:s=3,className:l,...d},m)=>{let[u,c]=K.useState(false),[f,p]=K.useState(a),[v,y]=K.useState({top:0,left:0,width:0}),g=K.useRef(null),x=K.useRef(null),N=K.useRef(null),b=t??f;K.useEffect(()=>{if(u&&x.current){let w=x.current.getBoundingClientRect();y({top:w.bottom+4,left:w.left,width:w.width});}},[u]);let h=K.useCallback(w=>{let S=b.includes(w)?b.filter(T=>T!==w):[...b,w];t===void 0&&p(S),r?.(S);},[b,t,r]),P=K.useCallback((w,S)=>{S.stopPropagation();let T=b.filter(D=>D!==w);t===void 0&&p(T),r?.(T);},[b,t,r]),R=K.useCallback(w=>{w.stopPropagation(),t===void 0&&p([]),r?.([]);},[t,r]);K.useEffect(()=>{let w=S=>{let T=S.target,D=g.current&&!g.current.contains(T),I=N.current&&!N.current.contains(T);D&&I&&c(false);};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]);let C=e.filter(w=>b.includes(w.value)),k=C.slice(0,s),M=C.length-s;return jsxs("div",{ref:g,className:o("relative",l),...d,children:[jsxs("div",{ref:w=>{x.current=w,typeof m=="function"?m(w):m&&(m.current=w);},role:"combobox","aria-expanded":u,"aria-haspopup":"listbox","aria-disabled":i,onClick:()=>!i&&c(!u),className:o("flex min-h-10 w-full flex-wrap items-center gap-1 rounded-md border border-zinc-300 dark:border-zinc-700 bg-background px-3 py-2 text-sm",i&&"cursor-not-allowed opacity-50",!i&&"cursor-pointer"),children:[C.length===0?jsx("span",{className:"text-muted-foreground",children:n}):jsxs(Fragment,{children:[k.map(w=>jsxs("span",{className:"inline-flex items-center gap-1 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground",children:[w.label,jsx("span",{role:"button",tabIndex:0,onClick:S=>P(w.value,S),onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&P(w.value,S);},className:"rounded-full hover:bg-secondary-foreground/20 cursor-pointer",children:jsx(X$1,{className:"h-3 w-3"})})]},w.value)),M>0&&jsxs("span",{className:"text-xs text-muted-foreground",children:["+",M," more"]})]}),jsxs("div",{className:"ml-auto flex items-center gap-1",children:[C.length>0&&jsx("span",{role:"button",tabIndex:0,onClick:R,onKeyDown:w=>{(w.key==="Enter"||w.key===" ")&&R(w);},className:"rounded-full p-0.5 hover:bg-muted cursor-pointer",children:jsx(X$1,{className:"h-4 w-4 opacity-50"})}),jsx(ChevronDown,{className:o("h-4 w-4 opacity-50 transition-transform",u&&"rotate-180")})]})]}),u&&!i&&typeof document<"u"&&Bd.createPortal(jsx("div",{ref:N,className:"fixed z-[9999] max-h-60 overflow-auto rounded-md border border-zinc-300 dark:border-zinc-700 bg-background p-1 shadow-md",style:{top:v.top,left:v.left,width:v.width},children:e.map(w=>{let S=b.includes(w.value);return jsxs("div",{role:"option","aria-selected":S,onClick:()=>!w.disabled&&h(w.value),className:o("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-accent hover:text-accent-foreground",w.disabled&&"pointer-events-none opacity-50"),children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:S&&jsx(Check,{className:"h-4 w-4"})}),w.label]},w.value)})}),document.body)]})});Wd.displayName="MultiSelect";var ir=X.Root,sr=X.Trigger,By=X.Group,Fy=X.Portal,Oy=X.Sub,Gy=X.RadioGroup,$d=K.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxs(X.SubTrigger,{ref:n,className:o("flex cursor-default select-none items-center gap-2 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",t&&"pl-8",e),...r,children:[a,jsx(ChevronRight,{className:"ml-auto"})]}));$d.displayName=X.SubTrigger.displayName;var _d=K.forwardRef(({className:e,...t},a)=>jsx(X.SubContent,{ref:a,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",e),...t}));_d.displayName=X.SubContent.displayName;var La=K.forwardRef(({className:e,sideOffset:t=4,...a},r)=>jsx(X.Portal,{children:jsx(X.Content,{ref:r,sideOffset:t,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",e),...a})}));La.displayName=X.Content.displayName;var Vt=K.forwardRef(({className:e,inset:t,...a},r)=>jsx(X.Item,{ref:r,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]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));Vt.displayName=X.Item.displayName;var Kd=K.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxs(X.CheckboxItem,{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",e),checked:a,...r,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(X.ItemIndicator,{children:jsx(Check,{className:"h-4 w-4"})})}),t]}));Kd.displayName=X.CheckboxItem.displayName;var Ud=K.forwardRef(({className:e,children:t,...a},r)=>jsxs(X.RadioItem,{ref:r,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",e),...a,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(X.ItemIndicator,{children:jsx(Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Ud.displayName=X.RadioItem.displayName;var Yd=K.forwardRef(({className:e,inset:t,...a},r)=>jsx(X.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Yd.displayName=X.Label.displayName;var Cn=K.forwardRef(({className:e,...t},a)=>jsx(X.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));Cn.displayName=X.Separator.displayName;var jd=({className:e,...t})=>jsx("span",{className:o("ml-auto text-xs tracking-widest opacity-60",e),...t});jd.displayName="DropdownMenuShortcut";var Me=xt.Root,He=xt.Trigger,us=xt.Anchor,Pe=K.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},n)=>jsx(xt.Portal,{children:jsx(xt.Content,{ref:n,align:t,sideOffset:a,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 origin-[--radix-popover-content-transform-origin]",e),...r})}));Pe.displayName=xt.Content.displayName;var Zd=K.createContext({variant:"solid",radius:"md"}),Jd=()=>K.useContext(Zd),Qd=K.forwardRef(({variant:e="solid",radius:t="md",...a},r)=>jsx(Zd.Provider,{value:{variant:e,radius:t},children:jsx(yt.Root,{ref:r,...a})}));Qd.displayName="Tabs";var ps={none:{list:"rounded-none",trigger:"rounded-none",indicator:"rounded-none"},sm:{list:"rounded-md",trigger:"rounded-sm",indicator:"rounded-sm"},md:{list:"rounded-lg",trigger:"rounded-md",indicator:"rounded-md"},lg:{list:"rounded-xl",trigger:"rounded-lg",indicator:"rounded-lg"},full:{list:"rounded-full",trigger:"rounded-full",indicator:"rounded-full"}},ec=K.forwardRef(({className:e,...t},a)=>{let{variant:r,radius:n}=Jd(),i=K.useRef(null),[s,l]=K.useState({opacity:0});K.useEffect(()=>{let p=i.current;if(!p)return;let v=()=>{let x=p.querySelector('[data-state="active"]');if(x){let N=p.getBoundingClientRect(),b=x.getBoundingClientRect(),h=p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column";r==="underline"?l(h?{width:2,height:b.height,transform:`translateY(${b.top-N.top}px)`,opacity:1}:{width:b.width,height:2,transform:`translateX(${b.left-N.left}px)`,opacity:1}):r==="solid"&&l(h?{width:b.width,height:b.height,transform:`translateY(${b.top-N.top}px)`,opacity:1}:{width:b.width,height:b.height,transform:`translateX(${b.left-N.left}px)`,opacity:1});}};v();let y=new MutationObserver(v);y.observe(p,{attributes:true,subtree:true,attributeFilter:["data-state"]});let g=new ResizeObserver(v);return g.observe(p),()=>{y.disconnect(),g.disconnect();}},[r]);let d={solid:"bg-muted p-1",underline:"border-b border-border bg-transparent p-0 !rounded-none",outline:"bg-transparent p-0 gap-1 !rounded-none"},m=()=>{let p=i.current;return p?p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column":false},[u,c]=K.useState(false);K.useEffect(()=>{c(m());},[]);let f=()=>r==="solid"?u?"top-0 left-1 bg-background shadow":"top-1 left-1 bg-background shadow":r==="underline"?u?"top-0 left-0 bg-primary !rounded-full":"bottom-0 left-0 bg-primary !rounded-full":"";return jsxs(yt.List,{ref:p=>{if(i.current=p,typeof a=="function"?a(p):a&&(a.current=p),p){let v=p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column";c(v);}},className:o("relative inline-flex h-9 items-center justify-center text-muted-foreground",ps[n].list,d[r],e),...t,children:[(r==="solid"||r==="underline")&&jsx("span",{className:o("absolute transition-all duration-200 ease-out",ps[n].indicator,f()),style:s,"aria-hidden":"true"}),t.children]})});ec.displayName=yt.List.displayName;var tc=K.forwardRef(({className:e,...t},a)=>{let{variant:r,radius:n}=Jd(),i={solid:"data-[state=active]:text-foreground",underline:"!rounded-none border-b-2 border-transparent pb-2 data-[state=active]:text-foreground",outline:"border border-transparent data-[state=active]:border-border data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm"};return jsx(yt.Trigger,{ref:a,className:o("relative z-10 inline-flex items-center justify-center whitespace-nowrap px-3 py-1 text-sm font-medium ring-offset-background transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed",ps[n].trigger,i[r],e),...t})});tc.displayName=yt.Trigger.displayName;var ac=K.forwardRef(({className:e,...t},a)=>jsx(yt.Content,{ref:a,className:o("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 animate-in animate-out",e),...t}));ac.displayName=yt.Content.displayName;var Mo=ne.Root,Uy=ne.Trigger,Yy=ne.Close,rc=ne.Portal,gs=K.forwardRef(({className:e,...t},a)=>jsx(ne.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",e),...t,ref:a}));gs.displayName=ne.Overlay.displayName;var oc=cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{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"}}),Ar=K.forwardRef(({side:e="right",className:t,children:a,hideCloseButton:r,...n},i)=>jsxs(rc,{children:[jsx(gs,{}),jsxs(ne.Content,{ref:i,className:o(oc({side:e}),t),"aria-describedby":void 0,...n,children:[jsx(VisuallyHidden,{asChild:true,children:jsx(ne.Title,{children:"Sheet"})}),!r&&jsxs(ne.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:[jsx(X$1,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]}),a]})]}));Ar.displayName=ne.Content.displayName;var nc=({className:e,...t})=>jsx("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",e),...t});nc.displayName="SheetHeader";var ic=({className:e,...t})=>jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ic.displayName="SheetFooter";var sc=K.forwardRef(({className:e,...t},a)=>jsx(ne.Title,{ref:a,className:o("text-lg font-semibold text-foreground",e),...t}));sc.displayName=ne.Title.displayName;var lc=K.forwardRef(({className:e,...t},a)=>jsx(ne.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));lc.displayName=ne.Description.displayName;var qy=({theme:e="system",...t})=>jsx(Toaster,{theme:e,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});var Be=K.forwardRef(({className:e,children:t,...a},r)=>jsxs(nt.Root,{ref:r,className:o("relative overflow-hidden group/scroll",e),...a,children:[jsx(nt.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),jsx(vs,{}),jsx(nt.Corner,{})]}));Be.displayName=nt.Root.displayName;var vs=K.forwardRef(({className:e,orientation:t="vertical",...a},r)=>jsx(nt.ScrollAreaScrollbar,{ref:r,orientation:t,className:o("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2 flex-col border-t border-t-transparent p-[1px]",e),...a,children:jsx(nt.ScrollAreaThumb,{className:o("relative flex-1 rounded-full transition-colors","bg-transparent group-hover/scroll:bg-border hover:!bg-muted-foreground")})}));vs.displayName=nt.ScrollAreaScrollbar.displayName;var a0=q.Root,r0=q.Trigger,o0=q.Group,n0=q.Portal,i0=q.Sub,s0=q.RadioGroup,dc=K.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxs(q.SubTrigger,{ref:n,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",t&&"pl-8",e),...r,children:[a,jsx(ChevronRight,{className:"ml-auto h-4 w-4"})]}));dc.displayName=q.SubTrigger.displayName;var cc=K.forwardRef(({className:e,...t},a)=>jsx(q.SubContent,{ref:a,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 origin-[--radix-context-menu-content-transform-origin]",e),...t}));cc.displayName=q.SubContent.displayName;var mc=K.forwardRef(({className:e,...t},a)=>jsx(q.Portal,{children:jsx(q.Content,{ref:a,className:o("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-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 origin-[--radix-context-menu-content-transform-origin]",e),...t})}));mc.displayName=q.Content.displayName;var uc=K.forwardRef(({className:e,inset:t,...a},r)=>jsx(q.Item,{ref:r,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",t&&"pl-8",e),...a}));uc.displayName=q.Item.displayName;var pc=K.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxs(q.CheckboxItem,{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",e),checked:a,...r,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(q.ItemIndicator,{children:jsx(Check,{className:"h-4 w-4"})})}),t]}));pc.displayName=q.CheckboxItem.displayName;var fc=K.forwardRef(({className:e,children:t,...a},r)=>jsxs(q.RadioItem,{ref:r,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",e),...a,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(q.ItemIndicator,{children:jsx(Circle,{className:"h-4 w-4 fill-current"})})}),t]}));fc.displayName=q.RadioItem.displayName;var gc=K.forwardRef(({className:e,inset:t,...a},r)=>jsx(q.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...a}));gc.displayName=q.Label.displayName;var bc=K.forwardRef(({className:e,...t},a)=>jsx(q.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-border",e),...t}));bc.displayName=q.Separator.displayName;var vc=({className:e,...t})=>jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});vc.displayName="ContextMenuShortcut";var hc=K.forwardRef(({className:e,...t},a)=>jsx(Va.Root,{className:o("grid gap-2",e),...t,ref:a}));hc.displayName=Va.Root.displayName;var xc=K.forwardRef(({className:e,...t},a)=>jsx(Va.Item,{ref:a,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",e),...t,children:jsx(Va.Indicator,{className:"flex items-center justify-center",children:jsx(Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));xc.displayName=Va.Item.displayName;var Mn=cva("inline-flex items-center justify-center 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2",{variants:{variant:{solid:"bg-transparent hover:bg-muted data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",outline:"border border-input bg-transparent hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",ghost:"bg-transparent hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",soft:"bg-transparent hover:bg-primary/10 data-[state=on]:bg-primary/15 data-[state=on]:text-primary",surface:"bg-muted/50 hover:bg-muted data-[state=on]:bg-muted data-[state=on]:text-foreground"},size:{sm:"h-9 px-2.5 min-w-9",md:"h-10 px-3 min-w-10",lg:"h-11 px-5 min-w-11"}},defaultVariants:{variant:"solid",size:"md"}}),Rc=K.forwardRef(({className:e,variant:t,size:a,...r},n)=>jsx(ys.Root,{ref:n,className:o(Mn({variant:t,size:a,className:e})),...r}));Rc.displayName=ys.Root.displayName;var wc=K.createContext({size:"md",variant:"solid"}),Nc=K.forwardRef(({className:e,variant:t,size:a,children:r,...n},i)=>jsx(zr.Root,{ref:i,className:o("flex items-center justify-center gap-1",e),...n,children:jsx(wc.Provider,{value:{variant:t,size:a},children:r})}));Nc.displayName=zr.Root.displayName;var Pc=K.forwardRef(({className:e,children:t,variant:a,size:r,...n},i)=>{let s=K.useContext(wc);return jsx(zr.Item,{ref:i,className:o(Mn({variant:s.variant||a,size:s.size||r}),e),...n,children:t})});Pc.displayName=zr.Item.displayName;var Tn=K.forwardRef(({className:e,...t},a)=>jsxs(ra.Root,{ref:a,className:o("relative flex w-full touch-none select-none items-center",e),...t,children:[jsx(ra.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:jsx(ra.Range,{className:"absolute h-full bg-primary"})}),jsx(ra.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"})]}));Tn.displayName=ra.Root.displayName;var p0=`
1
+ import*as K from'react';import {createContext,useContext}from'react';import {cva}from'class-variance-authority';import {AlertCircle,AlertTriangle,CheckCircle2,Info,Loader2,Minus,Check,X as X$1,ChevronDown,ChevronUp,ChevronRight,Circle,ChevronsUpDown,Search,EyeOff,Eye,Plus,Calendar,Heart,Star,PanelLeft,PanelLeftOpen,PanelLeftClose,TrendingUp,TrendingDown,Upload,Clock,Menu,ExternalLink,ArrowUp,File,Folder,FolderOpen,Copy,RefreshCw,CheckCircle,XCircle,HelpCircle,ZoomOut,ZoomIn,RotateCw,Download,Minimize2,Maximize2,ChevronLeft,GripVertical,Undo,Redo,Heading1,Heading2,Heading3,Bold,Italic,Underline,Strikethrough,List,ListOrdered,AlignLeft,AlignCenter,AlignRight,Quote,Code,Link,Unlink,Moon,Sun,Monitor,MoreHorizontal,MoreVertical,ArrowRight,Hash,User,Settings,Bell,CheckCheck,Trash2,Image,FileVideo,FileAudio,FileText,FileArchive,ArrowDown}from'lucide-react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {Slot}from'@radix-ui/react-slot';import*as yo from'@radix-ui/react-checkbox';import*as ne from'@radix-ui/react-dialog';import*as os from'@radix-ui/react-label';import*as No from'@radix-ui/react-separator';import*as Po from'@radix-ui/react-switch';import*as ea from'@radix-ui/react-avatar';import*as ht from'@radix-ui/react-tooltip';import*as Bd from'react-dom';import {createPortal}from'react-dom';import*as J from'@radix-ui/react-select';import*as X from'@radix-ui/react-dropdown-menu';import*as xt from'@radix-ui/react-popover';import*as yt from'@radix-ui/react-tabs';import*as mg from'@radix-ui/react-visually-hidden';import {VisuallyHidden}from'@radix-ui/react-visually-hidden';import {Toaster}from'sonner';export{toast}from'sonner';import*as nt from'@radix-ui/react-scroll-area';import*as q from'@radix-ui/react-context-menu';import*as Va from'@radix-ui/react-radio-group';import*as ys from'@radix-ui/react-toggle';import*as zr from'@radix-ui/react-toggle-group';import*as ra from'@radix-ui/react-slider';import*as Et from'@radix-ui/react-accordion';import*as cr from'@radix-ui/react-collapsible';import*as ko from'@radix-ui/react-progress';import*as mr from'@radix-ui/react-hover-card';import*as Yc from'@radix-ui/react-aspect-ratio';import*as we from'@radix-ui/react-navigation-menu';import {Drawer}from'vaul';import {DayPicker,useDayPicker}from'react-day-picker';import {format,getMonth,getYear,setMonth,setYear}from'date-fns';import {Command}from'cmdk';import {Panel,Group,Separator}from'react-resizable-panels';import {HexColorPicker,HexColorInput}from'react-colorful';import*as Y from'@radix-ui/react-menubar';import*as De from'@radix-ui/react-alert-dialog';import {ResponsiveContainer,LineChart,CartesianGrid,XAxis,YAxis,Tooltip,Legend,Line,BarChart,Bar,PieChart,Pie,Cell,AreaChart,Area}from'recharts';import {useSensors,useSensor,PointerSensor,KeyboardSensor,DndContext,closestCorners,DragOverlay}from'@dnd-kit/core';import {sortableKeyboardCoordinates,SortableContext,verticalListSortingStrategy,useSortable}from'@dnd-kit/sortable';import {CSS}from'@dnd-kit/utilities';import cC from'embla-carousel-react';import {useEditor,EditorContent}from'@tiptap/react';import xC from'@tiptap/starter-kit';import yC from'@tiptap/extension-link';import RC from'@tiptap/extension-underline';import wC from'@tiptap/extension-text-align';import NC from'@tiptap/extension-placeholder';import _C,{centerCrop,makeAspectCrop}from'react-image-crop';import'react-image-crop/dist/ReactCrop.css';import JC from'react-qr-code';import {useTheme,ThemeProvider}from'next-themes';export{useTheme}from'next-themes';import {motion,AnimatePresence,useInView,useSpring,useTransform,useScroll}from'framer-motion';import vo from'canvas-confetti';function o(...e){return twMerge(clsx(e))}var Qx=cva("relative w-full p-4",{variants:{variant:{solid:"border",bordered:"border bg-transparent",flat:""},type:{default:"",success:"",warning:"",error:""},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},compoundVariants:[{variant:"solid",type:"default",className:"!border-primary bg-primary text-primary-foreground [&>svg]:text-primary-foreground"},{variant:"bordered",type:"default",className:"!border-primary text-primary [&>svg]:text-primary"},{variant:"flat",type:"default",className:"bg-primary/10 text-primary [&>svg]:text-primary"},{variant:"solid",type:"success",className:"!border-green-600 bg-green-600 text-white dark:!border-green-500 dark:bg-green-500 [&>svg]:text-white"},{variant:"bordered",type:"success",className:"!border-green-600 text-green-600 dark:!border-green-500 dark:text-green-500 [&>svg]:text-green-600 dark:[&>svg]:text-green-500"},{variant:"flat",type:"success",className:"bg-green-600/10 text-green-600 dark:bg-green-500/10 dark:text-green-500 [&>svg]:text-green-600 dark:[&>svg]:text-green-500"},{variant:"solid",type:"warning",className:"!border-amber-600 bg-amber-600 text-white dark:!border-amber-500 dark:bg-amber-500 [&>svg]:text-white"},{variant:"bordered",type:"warning",className:"!border-amber-600 text-amber-600 dark:!border-amber-500 dark:text-amber-500 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-500"},{variant:"flat",type:"warning",className:"bg-amber-600/10 text-amber-600 dark:bg-amber-500/10 dark:text-amber-500 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-500"},{variant:"solid",type:"error",className:"!border-red-600 bg-red-600 text-white dark:!border-red-500 dark:bg-red-500 [&>svg]:text-white"},{variant:"bordered",type:"error",className:"!border-red-600 text-red-600 dark:!border-red-500 dark:text-red-500 [&>svg]:text-red-600 dark:[&>svg]:text-red-500"},{variant:"flat",type:"error",className:"bg-red-600/10 text-red-600 dark:bg-red-500/10 dark:text-red-500 [&>svg]:text-red-600 dark:[&>svg]:text-red-500"}],defaultVariants:{variant:"solid",type:"default",radius:"md"}}),ey={default:Info,success:CheckCircle2,warning:AlertTriangle,error:AlertCircle},ty=K.forwardRef(({className:e,variant:t="solid",type:a="default",radius:r="md",icon:n,hideIcon:i=false,endContent:s,children:l,...d},m)=>{let u=ey[a],c=!i,f=n!==void 0?n:u?jsx(u,{className:"h-4 w-4"}):null;return jsxs("div",{ref:m,role:"alert",className:o(Qx({variant:t,type:a,radius:r}),s&&"flex items-center justify-between",e),...d,children:[jsxs("div",{className:"flex items-start gap-3",children:[c&&f&&jsx("span",{className:"mt-0.5 shrink-0",children:f}),jsx("div",{children:l})]}),s&&jsx("div",{className:"shrink-0 ml-4",children:s})]})});ty.displayName="Alert";var ay=K.forwardRef(({className:e,...t},a)=>jsx("h5",{ref:a,className:o("mb-1 font-medium leading-none tracking-tight",e),...t}));ay.displayName="AlertTitle";var ry=K.forwardRef(({className:e,...t},a)=>jsx("div",{ref:a,className:o("text-sm [&_p]:leading-relaxed",e),...t}));ry.displayName="AlertDescription";var oy=cva("absolute rounded-full flex items-center justify-center font-semibold",{variants:{variant:{solid:"",bordered:"border-2"},color:{default:"",success:"",warning:"",danger:"",info:""},size:{sm:"",md:"",lg:""},placement:{"top-right":"-top-1 -right-1","top-left":"-top-1 -left-1","bottom-right":"-bottom-1 -right-1","bottom-left":"-bottom-1 -left-1"}},compoundVariants:[{variant:"solid",color:"default",className:"bg-zinc-800 text-white dark:bg-zinc-200 dark:text-zinc-900"},{variant:"solid",color:"success",className:"bg-green-600 text-white dark:bg-green-500"},{variant:"solid",color:"warning",className:"bg-amber-600 text-white dark:bg-amber-500"},{variant:"solid",color:"danger",className:"bg-red-600 text-white dark:bg-red-500"},{variant:"solid",color:"info",className:"bg-blue-600 text-white dark:bg-blue-500"},{variant:"bordered",color:"default",className:"bg-white border-zinc-800 text-zinc-800 dark:bg-zinc-900 dark:border-zinc-200 dark:text-zinc-200"},{variant:"bordered",color:"success",className:"bg-white border-green-600 text-green-600 dark:bg-zinc-900 dark:border-green-500 dark:text-green-500"},{variant:"bordered",color:"warning",className:"bg-white border-amber-600 text-amber-600 dark:bg-zinc-900 dark:border-amber-500 dark:text-amber-500"},{variant:"bordered",color:"danger",className:"bg-white border-red-600 text-red-600 dark:bg-zinc-900 dark:border-red-500 dark:text-red-500"},{variant:"bordered",color:"info",className:"bg-white border-blue-600 text-blue-600 dark:bg-zinc-900 dark:border-blue-500 dark:text-blue-500"},{size:"sm",className:"min-w-4 h-4 text-[10px] px-1"},{size:"md",className:"min-w-5 h-5 text-xs px-1"},{size:"lg",className:"min-w-6 h-6 text-sm px-1.5"}],defaultVariants:{variant:"solid",color:"default",size:"md",placement:"top-right"}}),ny={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"},iy=K.forwardRef(({className:e,children:t,content:a,variant:r="solid",color:n="default",size:i="md",placement:s="top-right",isDot:l=false,...d},m)=>jsxs("div",{ref:m,className:o("relative inline-flex",e),...d,children:[t,jsx("span",{className:o(oy({variant:r,color:n,size:l?void 0:i,placement:s}),l&&ny[i||"md"],l&&"min-w-0 p-0"),children:!l&&a})]}));iy.displayName="Badge";var sy=cva("inline-flex items-center gap-1 font-medium rounded-full",{variants:{color:{default:"bg-zinc-100 text-zinc-900 dark:bg-zinc-800 dark:text-white",success:"bg-green-600/20 text-green-700 dark:bg-green-500/20 dark:text-green-500",warning:"bg-amber-600/20 text-amber-700 dark:bg-amber-500/20 dark:text-amber-500",danger:"bg-red-600/20 text-red-700 dark:bg-red-500/20 dark:text-red-500",info:"bg-blue-600/20 text-blue-700 dark:bg-blue-500/20 dark:text-blue-500"},size:{sm:"px-2 py-0.5 text-[10px]",md:"px-2.5 py-0.5 text-xs",lg:"px-3 py-1 text-sm"}},defaultVariants:{color:"default",size:"md"}}),es=K.forwardRef(({className:e,color:t,size:a,...r},n)=>jsx("span",{ref:n,className:o(sy({color:t,size:a}),e),...r}));es.displayName="TextBadge";var Qt=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background transition-all duration-200 ease-out cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed active:scale-[0.97] [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{solid:"",bordered:"border-2 border-current bg-transparent hover:opacity-70",light:"bg-transparent hover:bg-zinc-100 dark:hover:bg-zinc-800",flat:"bg-zinc-100 dark:bg-zinc-800 hover:opacity-70",ghost:"border-2 bg-transparent"},color:{default:"",success:"",warning:"",danger:"",info:""},size:{sm:"h-9 px-3 text-xs",md:"h-10 px-4",lg:"h-11 px-5 text-base",icon:"h-10 w-10"},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},compoundVariants:[{variant:"solid",color:"default",className:"bg-zinc-800 text-white hover:bg-zinc-700 dark:bg-zinc-200 dark:text-zinc-900 dark:hover:bg-zinc-300"},{variant:"bordered",color:"default",className:"text-zinc-900 dark:text-white"},{variant:"light",color:"default",className:"text-zinc-900 hover:bg-zinc-100 dark:text-white dark:hover:bg-zinc-800"},{variant:"flat",color:"default",className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-800 dark:text-white"},{variant:"ghost",color:"default",className:"text-zinc-900 border-zinc-900 hover:bg-zinc-900 hover:text-white dark:text-white dark:border-white dark:hover:bg-white dark:hover:text-zinc-900"},{variant:"solid",color:"success",className:"bg-green-600 text-white hover:bg-green-700 dark:bg-green-700 dark:text-white dark:hover:bg-green-600"},{variant:"bordered",color:"success",className:"text-green-600 dark:text-green-500"},{variant:"light",color:"success",className:"text-green-600 hover:bg-green-600/10 dark:text-green-500 dark:hover:bg-green-500/10"},{variant:"flat",color:"success",className:"bg-green-600/20 text-green-700 dark:bg-green-500/20 dark:text-green-500"},{variant:"ghost",color:"success",className:"text-green-600 border-green-600 hover:bg-green-600 hover:text-white dark:text-green-500 dark:border-green-500 dark:hover:bg-green-500 dark:hover:text-white"},{variant:"solid",color:"warning",className:"bg-amber-600 text-white hover:bg-amber-700 dark:bg-amber-700 dark:text-white dark:hover:bg-amber-600"},{variant:"bordered",color:"warning",className:"text-amber-600 dark:text-amber-500"},{variant:"light",color:"warning",className:"text-amber-600 hover:bg-amber-600/10 dark:text-amber-500 dark:hover:bg-amber-500/10"},{variant:"flat",color:"warning",className:"bg-amber-600/20 text-amber-700 dark:bg-amber-500/20 dark:text-amber-500"},{variant:"ghost",color:"warning",className:"text-amber-600 border-amber-600 hover:bg-amber-600 hover:text-white dark:text-amber-500 dark:border-amber-500 dark:hover:bg-amber-500 dark:hover:text-white"},{variant:"solid",color:"danger",className:"bg-red-600 text-white hover:bg-red-700 dark:bg-red-700 dark:text-white dark:hover:bg-red-600"},{variant:"bordered",color:"danger",className:"text-red-600 dark:text-red-500"},{variant:"light",color:"danger",className:"text-red-600 hover:bg-red-600/10 dark:text-red-500 dark:hover:bg-red-500/10"},{variant:"flat",color:"danger",className:"bg-red-600/20 text-red-700 dark:bg-red-500/20 dark:text-red-500"},{variant:"ghost",color:"danger",className:"text-red-600 border-red-600 hover:bg-red-600 hover:text-white dark:text-red-500 dark:border-red-500 dark:hover:bg-red-500 dark:hover:text-white"},{variant:"solid",color:"info",className:"bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-700 dark:text-white dark:hover:bg-blue-600"},{variant:"bordered",color:"info",className:"text-blue-600 dark:text-blue-500"},{variant:"light",color:"info",className:"text-blue-600 hover:bg-blue-600/10 dark:text-blue-500 dark:hover:bg-blue-500/10"},{variant:"flat",color:"info",className:"bg-blue-600/20 text-blue-700 dark:bg-blue-500/20 dark:text-blue-500"},{variant:"ghost",color:"info",className:"text-blue-600 border-blue-600 hover:bg-blue-600 hover:text-white dark:text-blue-500 dark:border-blue-500 dark:hover:bg-blue-500 dark:hover:text-white"}],defaultVariants:{variant:"solid",color:"default",size:"md",radius:"md"}}),G=K.forwardRef(({className:e,variant:t,color:a,size:r,radius:n,asChild:i=false,href:s,loading:l=false,startContent:d,endContent:m,children:u,disabled:c,style:f,...p},v)=>{let y=c||l,x=t==="bordered"?{borderColor:"currentColor",...f}:f,N=l?jsxs(Fragment,{children:[jsx(Loader2,{className:"animate-spin"}),u]}):jsxs(Fragment,{children:[d,u,m]});return i?jsx(Slot,{className:o(Qt({variant:t,color:a,size:r,radius:n,className:e})),ref:v,style:x,...p,children:N}):s?jsx("a",{href:s,className:o(Qt({variant:t,color:a,size:r,radius:n,className:e}),y&&"pointer-events-none opacity-50"),style:x,...p,children:N}):jsx("button",{className:o(Qt({variant:t,color:a,size:r,radius:n,className:e})),ref:v,disabled:y,style:x,...p,children:N})});G.displayName="Button";var vd=cva("border bg-card text-card-foreground shadow-sm",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"}},defaultVariants:{radius:"lg"}}),hd=K.forwardRef(({className:e,radius:t,...a},r)=>jsx("div",{ref:r,className:o(vd({radius:t,className:e})),...a}));hd.displayName="Card";var xd=K.forwardRef(({className:e,...t},a)=>jsx("div",{ref:a,className:o("p-6 text-2xl font-semibold leading-none tracking-tight",e),...t}));xd.displayName="CardHeader";var yd=K.forwardRef(({className:e,...t},a)=>jsx("div",{ref:a,className:o("p-6 pt-0",e),...t}));yd.displayName="CardContent";var Rd=K.forwardRef(({className:e,...t},a)=>jsx("div",{ref:a,className:o("flex items-center p-6 pt-0",e),...t}));Rd.displayName="CardFooter";var Ro=K.forwardRef(({className:e,checked:t,onFocus:a,onBlur:r,style:n,...i},s)=>{let[l,d]=K.useState(false);return jsx(yo.Root,{ref:s,checked:t,className:o("peer h-4 w-4 shrink-0 rounded-sm border border-primary focus-visible:outline-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:bg-background data-[state=indeterminate]:text-foreground transition-colors",e),style:{...n,borderColor:l?"var(--color-foreground)":void 0},onFocus:m=>{d(true),a?.(m);},onBlur:m=>{d(false),r?.(m);},...i,children:jsx(yo.Indicator,{className:o("flex items-center justify-center text-current"),children:t==="indeterminate"?jsx(Minus,{className:"h-4 w-4"}):jsx(Check,{className:"h-4 w-4"})})})});Ro.displayName=yo.Root.displayName;var as=ne.Root,by=ne.Trigger,wd=ne.Portal,vy=ne.Close,rs=K.forwardRef(({className:e,...t},a)=>jsx(ne.Overlay,{ref:a,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",e),...t}));rs.displayName=ne.Overlay.displayName;var gn=K.forwardRef(({className:e,children:t,...a},r)=>jsxs(wd,{children:[jsx(rs,{}),jsxs(ne.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",e),...a,children:[t,jsxs(ne.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:[jsx(X$1,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]})]}));gn.displayName=ne.Content.displayName;var Nd=({className:e,...t})=>jsx("div",{className:o("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Nd.displayName="DialogHeader";var Pd=({className:e,...t})=>jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Pd.displayName="DialogFooter";var Cd=K.forwardRef(({className:e,...t},a)=>jsx(ne.Title,{ref:a,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));Cd.displayName=ne.Title.displayName;var Sd=K.forwardRef(({className:e,...t},a)=>jsx(ne.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));Sd.displayName=ne.Description.displayName;var xy=cva("flex h-10 w-full border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),vn=K.forwardRef(({className:e,type:t,radius:a,onFocus:r,onBlur:n,style:i,...s},l)=>{let[d,m]=K.useState(false);return jsx("input",{type:t,className:o(xy({radius:a,className:e})),ref:l,style:{...i,borderColor:d?"var(--color-foreground)":void 0},onFocus:u=>{m(true),r?.(u);},onBlur:u=>{m(false),n?.(u);},...s})});vn.displayName="Input";var wy=cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),er=K.forwardRef(({className:e,...t},a)=>jsx(os.Root,{ref:a,className:o(wy(),e),...t}));er.displayName=os.Root.displayName;var ka=K.forwardRef(({className:e,orientation:t="horizontal",decorative:a=true,text:r,...n},i)=>r&&t==="horizontal"?jsxs("div",{className:o("flex items-center gap-4",e),children:[jsx(No.Root,{decorative:a,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n}),jsx("span",{className:"text-sm text-muted-foreground",children:r}),jsx(No.Root,{decorative:a,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n})]}):jsx(No.Root,{ref:i,decorative:a,orientation:t,className:o("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));ka.displayName=No.Root.displayName;var Ld=K.forwardRef(({className:e,...t},a)=>jsx(Po.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",e),...t,ref:a,children:jsx(Po.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")})}));Ld.displayName=Po.Root.displayName;var Sy=cva("flex min-h-[80px] w-full border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"}},defaultVariants:{radius:"md"}}),Vd=K.forwardRef(({className:e,radius:t,onFocus:a,onBlur:r,style:n,...i},s)=>{let[l,d]=K.useState(false);return jsx("textarea",{className:o(Sy({radius:t,className:e})),ref:s,style:{...n,borderColor:l?"var(--color-foreground)":void 0},onFocus:m=>{d(true),a?.(m);},onBlur:m=>{d(false),r?.(m);},...i})});Vd.displayName="Textarea";var Ed=cva("rounded-md bg-muted",{variants:{variant:{pulse:"animate-pulse",shimmer:"skeleton-shimmer",static:""}},defaultVariants:{variant:"pulse"}}),yn=K.forwardRef(({className:e,variant:t,...a},r)=>jsx("div",{ref:r,className:o(Ed({variant:t,className:e})),...a}));yn.displayName="Skeleton";var Ly=cva("relative flex shrink-0 overflow-hidden cursor-pointer",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{size:"md",radius:"full"}}),tr=K.forwardRef(({className:e,size:t,radius:a,...r},n)=>jsx(ea.Root,{ref:n,className:o(Ly({size:t,radius:a,className:e})),...r}));tr.displayName=ea.Root.displayName;var Hr=K.forwardRef(({className:e,...t},a)=>jsx(ea.Image,{ref:a,className:o("aspect-square h-full w-full",e),...t}));Hr.displayName=ea.Image.displayName;var ar=K.forwardRef(({className:e,...t},a)=>jsx(ea.Fallback,{ref:a,className:o("flex h-full w-full items-center justify-center bg-muted",e),...t}));ar.displayName=ea.Fallback.displayName;var rr=ht.Provider,or=ht.Root,nr=ht.Trigger,Da=K.forwardRef(({className:e,sideOffset:t=4,...a},r)=>jsx(ht.Portal,{children:jsx(ht.Content,{ref:r,sideOffset:t,className:o("z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100 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",e),...a})}));Da.displayName=ht.Content.displayName;var ss=J.Root,Iy=J.Group,ls=J.Value,wn=K.forwardRef(({className:e,children:t,...a},r)=>jsxs(J.Trigger,{ref:r,className:o("flex h-10 w-full cursor-pointer items-center justify-between rounded-md border border-zinc-300 dark:border-zinc-700 bg-background px-3 py-2 text-sm placeholder:text-muted-foreground outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...a,children:[t,jsx(J.Icon,{asChild:true,children:jsx(ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));wn.displayName=J.Trigger.displayName;var ds=K.forwardRef(({className:e,...t},a)=>jsx(J.ScrollUpButton,{ref:a,className:o("flex cursor-default items-center justify-center py-1",e),...t,children:jsx(ChevronUp,{className:"h-4 w-4"})}));ds.displayName=J.ScrollUpButton.displayName;var cs=K.forwardRef(({className:e,...t},a)=>jsx(J.ScrollDownButton,{ref:a,className:o("flex cursor-default items-center justify-center py-1",e),...t,children:jsx(ChevronDown,{className:"h-4 w-4"})}));cs.displayName=J.ScrollDownButton.displayName;var Nn=K.forwardRef(({className:e,children:t,position:a="popper",...r},n)=>jsx(J.Portal,{children:jsxs(J.Content,{ref:n,className:o("relative z-[9999] max-h-60 min-w-[8rem] overflow-auto rounded-md border border-zinc-300 dark:border-zinc-700 bg-background 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",a==="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",e),position:a,...r,children:[jsx(ds,{}),jsx(J.Viewport,{className:o("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),jsx(cs,{})]})}));Nn.displayName=J.Content.displayName;var Od=K.forwardRef(({className:e,...t},a)=>jsx(J.Label,{ref:a,className:o("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Od.displayName=J.Label.displayName;var Pn=K.forwardRef(({className:e,children:t,...a},r)=>jsxs(J.Item,{ref:r,className:o("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(J.ItemIndicator,{children:jsx(Check,{className:"h-4 w-4"})})}),jsx(J.ItemText,{children:t})]}));Pn.displayName=J.Item.displayName;var Gd=K.forwardRef(({className:e,...t},a)=>jsx(J.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));Gd.displayName=J.Separator.displayName;var Wd=K.forwardRef(({options:e,value:t,defaultValue:a=[],onChange:r,placeholder:n="Select items...",disabled:i,maxDisplayItems:s=3,className:l,...d},m)=>{let[u,c]=K.useState(false),[f,p]=K.useState(a),[v,y]=K.useState({top:0,left:0,width:0}),g=K.useRef(null),x=K.useRef(null),N=K.useRef(null),b=t??f;K.useEffect(()=>{if(u&&x.current){let w=x.current.getBoundingClientRect();y({top:w.bottom+4,left:w.left,width:w.width});}},[u]);let h=K.useCallback(w=>{let S=b.includes(w)?b.filter(T=>T!==w):[...b,w];t===void 0&&p(S),r?.(S);},[b,t,r]),P=K.useCallback((w,S)=>{S.stopPropagation();let T=b.filter(D=>D!==w);t===void 0&&p(T),r?.(T);},[b,t,r]),R=K.useCallback(w=>{w.stopPropagation(),t===void 0&&p([]),r?.([]);},[t,r]);K.useEffect(()=>{let w=S=>{let T=S.target,D=g.current&&!g.current.contains(T),I=N.current&&!N.current.contains(T);D&&I&&c(false);};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]);let C=e.filter(w=>b.includes(w.value)),k=C.slice(0,s),M=C.length-s;return jsxs("div",{ref:g,className:o("relative",l),...d,children:[jsxs("div",{ref:w=>{x.current=w,typeof m=="function"?m(w):m&&(m.current=w);},role:"combobox","aria-expanded":u,"aria-haspopup":"listbox","aria-disabled":i,onClick:()=>!i&&c(!u),className:o("flex min-h-10 w-full flex-wrap items-center gap-1 rounded-md border border-zinc-300 dark:border-zinc-700 bg-background px-3 py-2 text-sm",i&&"cursor-not-allowed opacity-50",!i&&"cursor-pointer"),children:[C.length===0?jsx("span",{className:"text-muted-foreground",children:n}):jsxs(Fragment,{children:[k.map(w=>jsxs("span",{className:"inline-flex items-center gap-1 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground",children:[w.label,jsx("span",{role:"button",tabIndex:0,onClick:S=>P(w.value,S),onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&P(w.value,S);},className:"rounded-full hover:bg-secondary-foreground/20 cursor-pointer",children:jsx(X$1,{className:"h-3 w-3"})})]},w.value)),M>0&&jsxs("span",{className:"text-xs text-muted-foreground",children:["+",M," more"]})]}),jsxs("div",{className:"ml-auto flex items-center gap-1",children:[C.length>0&&jsx("span",{role:"button",tabIndex:0,onClick:R,onKeyDown:w=>{(w.key==="Enter"||w.key===" ")&&R(w);},className:"rounded-full p-0.5 hover:bg-muted cursor-pointer",children:jsx(X$1,{className:"h-4 w-4 opacity-50"})}),jsx(ChevronDown,{className:o("h-4 w-4 opacity-50 transition-transform",u&&"rotate-180")})]})]}),u&&!i&&typeof document<"u"&&Bd.createPortal(jsx("div",{ref:N,className:"fixed z-[9999] max-h-60 overflow-auto rounded-md border border-zinc-300 dark:border-zinc-700 bg-background p-1 shadow-md",style:{top:v.top,left:v.left,width:v.width},children:e.map(w=>{let S=b.includes(w.value);return jsxs("div",{role:"option","aria-selected":S,onClick:()=>!w.disabled&&h(w.value),className:o("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800",w.disabled&&"pointer-events-none opacity-50"),children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:S&&jsx(Check,{className:"h-4 w-4"})}),w.label]},w.value)})}),document.body)]})});Wd.displayName="MultiSelect";var ir=X.Root,sr=X.Trigger,By=X.Group,Fy=X.Portal,Oy=X.Sub,Gy=X.RadioGroup,$d=K.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxs(X.SubTrigger,{ref:n,className:o("flex cursor-default select-none items-center gap-2 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",t&&"pl-8",e),...r,children:[a,jsx(ChevronRight,{className:"ml-auto"})]}));$d.displayName=X.SubTrigger.displayName;var _d=K.forwardRef(({className:e,...t},a)=>jsx(X.SubContent,{ref:a,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",e),...t}));_d.displayName=X.SubContent.displayName;var La=K.forwardRef(({className:e,sideOffset:t=4,...a},r)=>jsx(X.Portal,{children:jsx(X.Content,{ref:r,sideOffset:t,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",e),...a})}));La.displayName=X.Content.displayName;var Vt=K.forwardRef(({className:e,inset:t,...a},r)=>jsx(X.Item,{ref:r,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]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));Vt.displayName=X.Item.displayName;var Kd=K.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxs(X.CheckboxItem,{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",e),checked:a,...r,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(X.ItemIndicator,{children:jsx(Check,{className:"h-4 w-4"})})}),t]}));Kd.displayName=X.CheckboxItem.displayName;var Ud=K.forwardRef(({className:e,children:t,...a},r)=>jsxs(X.RadioItem,{ref:r,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",e),...a,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(X.ItemIndicator,{children:jsx(Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Ud.displayName=X.RadioItem.displayName;var Yd=K.forwardRef(({className:e,inset:t,...a},r)=>jsx(X.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Yd.displayName=X.Label.displayName;var Cn=K.forwardRef(({className:e,...t},a)=>jsx(X.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));Cn.displayName=X.Separator.displayName;var jd=({className:e,...t})=>jsx("span",{className:o("ml-auto text-xs tracking-widest opacity-60",e),...t});jd.displayName="DropdownMenuShortcut";var Me=xt.Root,He=xt.Trigger,us=xt.Anchor,Pe=K.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},n)=>jsx(xt.Portal,{children:jsx(xt.Content,{ref:n,align:t,sideOffset:a,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 origin-[--radix-popover-content-transform-origin]",e),...r})}));Pe.displayName=xt.Content.displayName;var Zd=K.createContext({variant:"solid",radius:"md"}),Jd=()=>K.useContext(Zd),Qd=K.forwardRef(({variant:e="solid",radius:t="md",...a},r)=>jsx(Zd.Provider,{value:{variant:e,radius:t},children:jsx(yt.Root,{ref:r,...a})}));Qd.displayName="Tabs";var ps={none:{list:"rounded-none",trigger:"rounded-none",indicator:"rounded-none"},sm:{list:"rounded-md",trigger:"rounded-sm",indicator:"rounded-sm"},md:{list:"rounded-lg",trigger:"rounded-md",indicator:"rounded-md"},lg:{list:"rounded-xl",trigger:"rounded-lg",indicator:"rounded-lg"},full:{list:"rounded-full",trigger:"rounded-full",indicator:"rounded-full"}},ec=K.forwardRef(({className:e,...t},a)=>{let{variant:r,radius:n}=Jd(),i=K.useRef(null),[s,l]=K.useState({opacity:0});K.useEffect(()=>{let p=i.current;if(!p)return;let v=()=>{let x=p.querySelector('[data-state="active"]');if(x){let N=p.getBoundingClientRect(),b=x.getBoundingClientRect(),h=p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column";r==="underline"?l(h?{width:2,height:b.height,transform:`translateY(${b.top-N.top}px)`,opacity:1}:{width:b.width,height:2,transform:`translateX(${b.left-N.left}px)`,opacity:1}):r==="solid"&&l(h?{width:b.width,height:b.height,transform:`translateY(${b.top-N.top}px)`,opacity:1}:{width:b.width,height:b.height,transform:`translateX(${b.left-N.left}px)`,opacity:1});}};v();let y=new MutationObserver(v);y.observe(p,{attributes:true,subtree:true,attributeFilter:["data-state"]});let g=new ResizeObserver(v);return g.observe(p),()=>{y.disconnect(),g.disconnect();}},[r]);let d={solid:"bg-muted p-1",underline:"border-b border-border bg-transparent p-0 !rounded-none",outline:"bg-transparent p-0 gap-1 !rounded-none"},m=()=>{let p=i.current;return p?p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column":false},[u,c]=K.useState(false);K.useEffect(()=>{c(m());},[]);let f=()=>r==="solid"?u?"top-0 left-1 bg-background shadow":"top-1 left-1 bg-background shadow":r==="underline"?u?"top-0 left-0 bg-primary !rounded-full":"bottom-0 left-0 bg-primary !rounded-full":"";return jsxs(yt.List,{ref:p=>{if(i.current=p,typeof a=="function"?a(p):a&&(a.current=p),p){let v=p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column";c(v);}},className:o("relative inline-flex h-9 items-center justify-center text-muted-foreground",ps[n].list,d[r],e),...t,children:[(r==="solid"||r==="underline")&&jsx("span",{className:o("absolute transition-all duration-200 ease-out",ps[n].indicator,f()),style:s,"aria-hidden":"true"}),t.children]})});ec.displayName=yt.List.displayName;var tc=K.forwardRef(({className:e,...t},a)=>{let{variant:r,radius:n}=Jd(),i={solid:"data-[state=active]:text-foreground",underline:"!rounded-none border-b-2 border-transparent pb-2 data-[state=active]:text-foreground",outline:"border border-transparent data-[state=active]:border-border data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm"};return jsx(yt.Trigger,{ref:a,className:o("relative z-10 inline-flex items-center justify-center whitespace-nowrap px-3 py-1 text-sm font-medium ring-offset-background transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed",ps[n].trigger,i[r],e),...t})});tc.displayName=yt.Trigger.displayName;var ac=K.forwardRef(({className:e,...t},a)=>jsx(yt.Content,{ref:a,className:o("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 animate-in animate-out",e),...t}));ac.displayName=yt.Content.displayName;var Mo=ne.Root,Uy=ne.Trigger,Yy=ne.Close,rc=ne.Portal,gs=K.forwardRef(({className:e,...t},a)=>jsx(ne.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",e),...t,ref:a}));gs.displayName=ne.Overlay.displayName;var oc=cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{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"}}),Ar=K.forwardRef(({side:e="right",className:t,children:a,hideCloseButton:r,...n},i)=>jsxs(rc,{children:[jsx(gs,{}),jsxs(ne.Content,{ref:i,className:o(oc({side:e}),t),"aria-describedby":void 0,...n,children:[jsx(VisuallyHidden,{asChild:true,children:jsx(ne.Title,{children:"Sheet"})}),!r&&jsxs(ne.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:[jsx(X$1,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]}),a]})]}));Ar.displayName=ne.Content.displayName;var nc=({className:e,...t})=>jsx("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",e),...t});nc.displayName="SheetHeader";var ic=({className:e,...t})=>jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ic.displayName="SheetFooter";var sc=K.forwardRef(({className:e,...t},a)=>jsx(ne.Title,{ref:a,className:o("text-lg font-semibold text-foreground",e),...t}));sc.displayName=ne.Title.displayName;var lc=K.forwardRef(({className:e,...t},a)=>jsx(ne.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));lc.displayName=ne.Description.displayName;var qy=({theme:e="system",...t})=>jsx(Toaster,{theme:e,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});var Be=K.forwardRef(({className:e,children:t,...a},r)=>jsxs(nt.Root,{ref:r,className:o("relative overflow-hidden group/scroll",e),...a,children:[jsx(nt.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),jsx(vs,{}),jsx(nt.Corner,{})]}));Be.displayName=nt.Root.displayName;var vs=K.forwardRef(({className:e,orientation:t="vertical",...a},r)=>jsx(nt.ScrollAreaScrollbar,{ref:r,orientation:t,className:o("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2 flex-col border-t border-t-transparent p-[1px]",e),...a,children:jsx(nt.ScrollAreaThumb,{className:o("relative flex-1 rounded-full transition-colors","bg-transparent group-hover/scroll:bg-border hover:!bg-muted-foreground")})}));vs.displayName=nt.ScrollAreaScrollbar.displayName;var a0=q.Root,r0=q.Trigger,o0=q.Group,n0=q.Portal,i0=q.Sub,s0=q.RadioGroup,dc=K.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxs(q.SubTrigger,{ref:n,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",t&&"pl-8",e),...r,children:[a,jsx(ChevronRight,{className:"ml-auto h-4 w-4"})]}));dc.displayName=q.SubTrigger.displayName;var cc=K.forwardRef(({className:e,...t},a)=>jsx(q.SubContent,{ref:a,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 origin-[--radix-context-menu-content-transform-origin]",e),...t}));cc.displayName=q.SubContent.displayName;var mc=K.forwardRef(({className:e,...t},a)=>jsx(q.Portal,{children:jsx(q.Content,{ref:a,className:o("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-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 origin-[--radix-context-menu-content-transform-origin]",e),...t})}));mc.displayName=q.Content.displayName;var uc=K.forwardRef(({className:e,inset:t,...a},r)=>jsx(q.Item,{ref:r,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",t&&"pl-8",e),...a}));uc.displayName=q.Item.displayName;var pc=K.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxs(q.CheckboxItem,{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",e),checked:a,...r,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(q.ItemIndicator,{children:jsx(Check,{className:"h-4 w-4"})})}),t]}));pc.displayName=q.CheckboxItem.displayName;var fc=K.forwardRef(({className:e,children:t,...a},r)=>jsxs(q.RadioItem,{ref:r,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",e),...a,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(q.ItemIndicator,{children:jsx(Circle,{className:"h-4 w-4 fill-current"})})}),t]}));fc.displayName=q.RadioItem.displayName;var gc=K.forwardRef(({className:e,inset:t,...a},r)=>jsx(q.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...a}));gc.displayName=q.Label.displayName;var bc=K.forwardRef(({className:e,...t},a)=>jsx(q.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-border",e),...t}));bc.displayName=q.Separator.displayName;var vc=({className:e,...t})=>jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});vc.displayName="ContextMenuShortcut";var hc=K.forwardRef(({className:e,...t},a)=>jsx(Va.Root,{className:o("grid gap-2",e),...t,ref:a}));hc.displayName=Va.Root.displayName;var xc=K.forwardRef(({className:e,...t},a)=>jsx(Va.Item,{ref:a,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",e),...t,children:jsx(Va.Indicator,{className:"flex items-center justify-center",children:jsx(Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));xc.displayName=Va.Item.displayName;var Mn=cva("inline-flex items-center justify-center 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2",{variants:{variant:{solid:"bg-transparent hover:bg-muted data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",outline:"border border-input bg-transparent hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",ghost:"bg-transparent hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",soft:"bg-transparent hover:bg-primary/10 data-[state=on]:bg-primary/15 data-[state=on]:text-primary",surface:"bg-muted/50 hover:bg-muted data-[state=on]:bg-muted data-[state=on]:text-foreground"},size:{sm:"h-9 px-2.5 min-w-9",md:"h-10 px-3 min-w-10",lg:"h-11 px-5 min-w-11"}},defaultVariants:{variant:"solid",size:"md"}}),Rc=K.forwardRef(({className:e,variant:t,size:a,...r},n)=>jsx(ys.Root,{ref:n,className:o(Mn({variant:t,size:a,className:e})),...r}));Rc.displayName=ys.Root.displayName;var wc=K.createContext({size:"md",variant:"solid"}),Nc=K.forwardRef(({className:e,variant:t,size:a,children:r,...n},i)=>jsx(zr.Root,{ref:i,className:o("flex items-center justify-center gap-1",e),...n,children:jsx(wc.Provider,{value:{variant:t,size:a},children:r})}));Nc.displayName=zr.Root.displayName;var Pc=K.forwardRef(({className:e,children:t,variant:a,size:r,...n},i)=>{let s=K.useContext(wc);return jsx(zr.Item,{ref:i,className:o(Mn({variant:s.variant||a,size:s.size||r}),e),...n,children:t})});Pc.displayName=zr.Item.displayName;var Tn=K.forwardRef(({className:e,...t},a)=>jsxs(ra.Root,{ref:a,className:o("relative flex w-full touch-none select-none items-center",e),...t,children:[jsx(ra.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:jsx(ra.Range,{className:"absolute h-full bg-primary"})}),jsx(ra.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"})]}));Tn.displayName=ra.Root.displayName;var p0=`
2
2
  @keyframes accordion-down {
3
3
  from { height: 0; opacity: 0; }
4
4
  to { height: var(--radix-accordion-content-height); opacity: 1; }