@reeverdev/ui 0.2.35 → 0.2.36
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.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -33
- package/dist/index.d.ts +7 -33
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var K=require('react'),classVarianceAuthority=require('class-variance-authority'),lucideReact=require('lucide-react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),reactSlot=require('@radix-ui/react-slot'),wo=require('@radix-ui/react-checkbox'),ne=require('@radix-ui/react-dialog'),as=require('@radix-ui/react-label'),Co=require('@radix-ui/react-separator'),So=require('@radix-ui/react-switch'),rr=require('@radix-ui/react-avatar'),xt=require('@radix-ui/react-tooltip'),zd=require('react-dom'),J=require('@radix-ui/react-select'),X=require('@radix-ui/react-dropdown-menu'),yt=require('@radix-ui/react-popover'),Rt=require('@radix-ui/react-tabs'),ug=require('@radix-ui/react-visually-hidden'),sonner=require('sonner'),it=require('@radix-ui/react-scroll-area'),q=require('@radix-ui/react-context-menu'),Er=require('@radix-ui/react-radio-group'),xs=require('@radix-ui/react-toggle'),Ba=require('@radix-ui/react-toggle-group'),nr=require('@radix-ui/react-slider'),Ht=require('@radix-ui/react-accordion'),ua=require('@radix-ui/react-collapsible'),Vo=require('@radix-ui/react-progress'),pa=require('@radix-ui/react-hover-card'),Uc=require('@radix-ui/react-aspect-ratio'),we=require('@radix-ui/react-navigation-menu'),vaul=require('vaul'),reactDayPicker=require('react-day-picker'),dateFns=require('date-fns'),cmdk=require('cmdk'),reactResizablePanels=require('react-resizable-panels'),reactColorful=require('react-colorful'),U=require('@radix-ui/react-menubar'),ke=require('@radix-ui/react-alert-dialog'),recharts=require('recharts'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),vC=require('embla-carousel-react'),react=require('@tiptap/react'),SC=require('@tiptap/starter-kit'),MC=require('@tiptap/extension-link'),TC=require('@tiptap/extension-underline'),kC=require('@tiptap/extension-text-align'),DC=require('@tiptap/extension-placeholder'),ZC=require('react-image-crop');require('react-image-crop/dist/ReactCrop.css');var nS=require('react-qr-code'),nextThemes=require('next-themes'),framerMotion=require('framer-motion'),xo=require('canvas-confetti');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var K__namespace=/*#__PURE__*/_interopNamespace(K);var wo__namespace=/*#__PURE__*/_interopNamespace(wo);var ne__namespace=/*#__PURE__*/_interopNamespace(ne);var as__namespace=/*#__PURE__*/_interopNamespace(as);var Co__namespace=/*#__PURE__*/_interopNamespace(Co);var So__namespace=/*#__PURE__*/_interopNamespace(So);var rr__namespace=/*#__PURE__*/_interopNamespace(rr);var xt__namespace=/*#__PURE__*/_interopNamespace(xt);var zd__namespace=/*#__PURE__*/_interopNamespace(zd);var J__namespace=/*#__PURE__*/_interopNamespace(J);var X__namespace=/*#__PURE__*/_interopNamespace(X);var yt__namespace=/*#__PURE__*/_interopNamespace(yt);var Rt__namespace=/*#__PURE__*/_interopNamespace(Rt);var ug__namespace=/*#__PURE__*/_interopNamespace(ug);var it__namespace=/*#__PURE__*/_interopNamespace(it);var q__namespace=/*#__PURE__*/_interopNamespace(q);var Er__namespace=/*#__PURE__*/_interopNamespace(Er);var xs__namespace=/*#__PURE__*/_interopNamespace(xs);var Ba__namespace=/*#__PURE__*/_interopNamespace(Ba);var nr__namespace=/*#__PURE__*/_interopNamespace(nr);var Ht__namespace=/*#__PURE__*/_interopNamespace(Ht);var ua__namespace=/*#__PURE__*/_interopNamespace(ua);var Vo__namespace=/*#__PURE__*/_interopNamespace(Vo);var pa__namespace=/*#__PURE__*/_interopNamespace(pa);var Uc__namespace=/*#__PURE__*/_interopNamespace(Uc);var we__namespace=/*#__PURE__*/_interopNamespace(we);var U__namespace=/*#__PURE__*/_interopNamespace(U);var ke__namespace=/*#__PURE__*/_interopNamespace(ke);var vC__default=/*#__PURE__*/_interopDefault(vC);var SC__default=/*#__PURE__*/_interopDefault(SC);var MC__default=/*#__PURE__*/_interopDefault(MC);var TC__default=/*#__PURE__*/_interopDefault(TC);var kC__default=/*#__PURE__*/_interopDefault(kC);var DC__default=/*#__PURE__*/_interopDefault(DC);var ZC__default=/*#__PURE__*/_interopDefault(ZC);var nS__default=/*#__PURE__*/_interopDefault(nS);var xo__default=/*#__PURE__*/_interopDefault(xo);function o(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var ey=classVarianceAuthority.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"}}),ty={default:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle},ry=K__namespace.forwardRef(({className:e,variant:t="solid",type:r="default",radius:a="md",icon:n,hideIcon:i=false,endContent:s,children:l,...d},m)=>{let u=ty[r],c=!i,f=n!==void 0?n:u?jsxRuntime.jsx(u,{className:"h-4 w-4"}):null;return jsxRuntime.jsxs("div",{ref:m,role:"alert",className:o(ey({variant:t,type:r,radius:a}),s&&"flex items-center justify-between",e),...d,children:[jsxRuntime.jsxs("div",{className:"flex items-start gap-3",children:[c&&f&&jsxRuntime.jsx("span",{className:"mt-0.5 shrink-0",children:f}),jsxRuntime.jsx("div",{children:l})]}),s&&jsxRuntime.jsx("div",{className:"shrink-0 ml-4",children:s})]})});ry.displayName="Alert";var ay=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("h5",{ref:r,className:o("mb-1 font-medium leading-none tracking-tight",e),...t}));ay.displayName="AlertTitle";var oy=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("text-sm [&_p]:leading-relaxed",e),...t}));oy.displayName="AlertDescription";var ny=classVarianceAuthority.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"}}),iy={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"},sy=K__namespace.forwardRef(({className:e,children:t,content:r,variant:a="solid",color:n="default",size:i="md",placement:s="top-right",isDot:l=false,...d},m)=>jsxRuntime.jsxs("div",{ref:m,className:o("relative inline-flex",e),...d,children:[t,jsxRuntime.jsx("span",{className:o(ny({variant:a,color:n,size:l?void 0:i,placement:s}),l&&iy[i||"md"],l&&"min-w-0 p-0"),children:!l&&r})]}));sy.displayName="Badge";var ly=classVarianceAuthority.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"}}),Qi=K__namespace.forwardRef(({className:e,color:t,size:r,...a},n)=>jsxRuntime.jsx("span",{ref:n,className:o(ly({color:t,size:r}),e),...a}));Qi.displayName="TextBadge";var tr=classVarianceAuthority.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"}}),$=K__namespace.forwardRef(({className:e,variant:t,color:r,size:a,radius:n,asChild:i=false,href:s,loading:l=false,startContent:d,endContent:m,children:u,disabled:c,style:f,...p},h)=>{let y=c||l,x=t==="bordered"?{borderColor:"currentColor",...f}:f,R=l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(lucideReact.Loader2,{className:"animate-spin"}),u]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d,u,m]});return i?jsxRuntime.jsx(reactSlot.Slot,{className:o(tr({variant:t,color:r,size:a,radius:n,className:e})),ref:h,style:x,...p,children:R}):s?jsxRuntime.jsx("a",{href:s,className:o(tr({variant:t,color:r,size:a,radius:n,className:e}),y&&"pointer-events-none opacity-50"),style:x,...p,children:R}):jsxRuntime.jsx("button",{className:o(tr({variant:t,color:r,size:a,radius:n,className:e})),ref:h,disabled:y,style:x,...p,children:R})});$.displayName="Button";var bd=classVarianceAuthority.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"}}),vd=K__namespace.forwardRef(({className:e,radius:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:o(bd({radius:t,className:e})),...r}));vd.displayName="Card";var hd=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("p-6 text-2xl font-semibold leading-none tracking-tight",e),...t}));hd.displayName="CardHeader";var xd=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("p-6 pt-0",e),...t}));xd.displayName="CardContent";var yd=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex items-center p-6 pt-0",e),...t}));yd.displayName="CardFooter";var No=K__namespace.forwardRef(({className:e,checked:t,onFocus:r,onBlur:a,style:n,...i},s)=>{let[l,d]=K__namespace.useState(false);return jsxRuntime.jsx(wo__namespace.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),r?.(m);},onBlur:m=>{d(false),a?.(m);},...i,children:jsxRuntime.jsx(wo__namespace.Indicator,{className:o("flex items-center justify-center text-current"),children:t==="indeterminate"?jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})})});No.displayName=wo__namespace.Root.displayName;var ts=ne__namespace.Root,vy=ne__namespace.Trigger,Rd=ne__namespace.Portal,hy=ne__namespace.Close,rs=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ne__namespace.Overlay,{ref:r,className:o("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));rs.displayName=ne__namespace.Overlay.displayName;var bn=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsxs(Rd,{children:[jsxRuntime.jsx(rs,{}),jsxRuntime.jsxs(ne__namespace.Content,{ref:a,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),...r,children:[t,jsxRuntime.jsxs(ne__namespace.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:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));bn.displayName=ne__namespace.Content.displayName;var wd=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});wd.displayName="DialogHeader";var Nd=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Nd.displayName="DialogFooter";var Pd=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ne__namespace.Title,{ref:r,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));Pd.displayName=ne__namespace.Title.displayName;var Cd=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ne__namespace.Description,{ref:r,className:o("text-sm text-muted-foreground",e),...t}));Cd.displayName=ne__namespace.Description.displayName;var yy=classVarianceAuthority.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"}}),hn=K__namespace.forwardRef(({className:e,type:t,radius:r,onFocus:a,onBlur:n,style:i,...s},l)=>{let[d,m]=K__namespace.useState(false);return jsxRuntime.jsx("input",{type:t,className:o(yy({radius:r,className:e})),ref:l,style:{...i,borderColor:d?"var(--color-foreground)":void 0},onFocus:u=>{m(true),a?.(u);},onBlur:u=>{m(false),n?.(u);},...s})});hn.displayName="Input";var Ny=classVarianceAuthority.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ra=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(as__namespace.Root,{ref:r,className:o(Ny(),e),...t}));ra.displayName=as__namespace.Root.displayName;var Vr=K__namespace.forwardRef(({className:e,orientation:t="horizontal",decorative:r=true,text:a,...n},i)=>a&&t==="horizontal"?jsxRuntime.jsxs("div",{className:o("flex items-center gap-4",e),children:[jsxRuntime.jsx(Co__namespace.Root,{decorative:r,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n}),jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:a}),jsxRuntime.jsx(Co__namespace.Root,{decorative:r,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n})]}):jsxRuntime.jsx(Co__namespace.Root,{ref:i,decorative:r,orientation:t,className:o("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Vr.displayName=Co__namespace.Root.displayName;var Dd=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(So__namespace.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:r,children:jsxRuntime.jsx(So__namespace.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")})}));Dd.displayName=So__namespace.Root.displayName;var My=classVarianceAuthority.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__namespace.forwardRef(({className:e,radius:t,onFocus:r,onBlur:a,style:n,...i},s)=>{let[l,d]=K__namespace.useState(false);return jsxRuntime.jsx("textarea",{className:o(My({radius:t,className:e})),ref:s,style:{...n,borderColor:l?"var(--color-foreground)":void 0},onFocus:m=>{d(true),r?.(m);},onBlur:m=>{d(false),a?.(m);},...i})});Vd.displayName="Textarea";var Id=classVarianceAuthority.cva("rounded-md bg-muted",{variants:{variant:{pulse:"animate-pulse",shimmer:"skeleton-shimmer",static:""}},defaultVariants:{variant:"pulse"}}),Rn=K__namespace.forwardRef(({className:e,variant:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:o(Id({variant:t,className:e})),...r}));Rn.displayName="Skeleton";var Ly=classVarianceAuthority.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"}}),aa=K__namespace.forwardRef(({className:e,size:t,radius:r,...a},n)=>jsxRuntime.jsx(rr__namespace.Root,{ref:n,className:o(Ly({size:t,radius:r,className:e})),...a}));aa.displayName=rr__namespace.Root.displayName;var Aa=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(rr__namespace.Image,{ref:r,className:o("aspect-square h-full w-full",e),...t}));Aa.displayName=rr__namespace.Image.displayName;var oa=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(rr__namespace.Fallback,{ref:r,className:o("flex h-full w-full items-center justify-center bg-muted",e),...t}));oa.displayName=rr__namespace.Fallback.displayName;var na=xt__namespace.Provider,ia=xt__namespace.Root,sa=xt__namespace.Trigger,Lr=K__namespace.forwardRef(({className:e,sideOffset:t=4,...r},a)=>jsxRuntime.jsx(xt__namespace.Portal,{children:jsxRuntime.jsx(xt__namespace.Content,{ref:a,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),...r})}));Lr.displayName=xt__namespace.Content.displayName;var Ey=classVarianceAuthority.cva("flex h-10 w-full cursor-pointer items-center justify-between 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",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),is=J__namespace.Root,Hy=J__namespace.Group,ss=J__namespace.Value,Nn=K__namespace.forwardRef(({className:e,children:t,radius:r,...a},n)=>jsxRuntime.jsxs(J__namespace.Trigger,{ref:n,className:o(Ey({radius:r,className:e})),...a,children:[t,jsxRuntime.jsx(J__namespace.Icon,{asChild:true,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Nn.displayName=J__namespace.Trigger.displayName;var ls=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(J__namespace.ScrollUpButton,{ref:r,className:o("flex cursor-default items-center justify-center py-1",e),...t,children:jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"})}));ls.displayName=J__namespace.ScrollUpButton.displayName;var ds=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(J__namespace.ScrollDownButton,{ref:r,className:o("flex cursor-default items-center justify-center py-1",e),...t,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"})}));ds.displayName=J__namespace.ScrollDownButton.displayName;var Pn=K__namespace.forwardRef(({className:e,children:t,position:r="popper",...a},n)=>jsxRuntime.jsx(J__namespace.Portal,{children:jsxRuntime.jsxs(J__namespace.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",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...a,children:[jsxRuntime.jsx(ls,{}),jsxRuntime.jsx(J__namespace.Viewport,{className:o("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),jsxRuntime.jsx(ds,{})]})}));Pn.displayName=J__namespace.Content.displayName;var Od=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(J__namespace.Label,{ref:r,className:o("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Od.displayName=J__namespace.Label.displayName;var Cn=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsxs(J__namespace.Item,{ref:a,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),...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(J__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),jsxRuntime.jsx(J__namespace.ItemText,{children:t})]}));Cn.displayName=J__namespace.Item.displayName;var Gd=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(J__namespace.Separator,{ref:r,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));Gd.displayName=J__namespace.Separator.displayName;var Ay=classVarianceAuthority.cva("flex min-h-10 w-full flex-wrap items-center gap-1 border border-zinc-300 dark:border-zinc-700 bg-background px-3 py-2 text-sm",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),Wd=K__namespace.forwardRef(({options:e,value:t,defaultValue:r=[],onChange:a,placeholder:n="Select items...",disabled:i,maxDisplayItems:s=3,radius:l,className:d,...m},u)=>{let[c,f]=K__namespace.useState(false),[p,h]=K__namespace.useState(r),[y,g]=K__namespace.useState({top:0,left:0,width:0}),x=K__namespace.useRef(null),R=K__namespace.useRef(null),b=K__namespace.useRef(null),v=t??p;K__namespace.useEffect(()=>{if(c&&R.current){let P=R.current.getBoundingClientRect();g({top:P.bottom+4,left:P.left,width:P.width});}},[c]);let C=K__namespace.useCallback(P=>{let M=v.includes(P)?v.filter(D=>D!==P):[...v,P];t===void 0&&h(M),a?.(M);},[v,t,a]),w=K__namespace.useCallback((P,M)=>{M.stopPropagation();let D=v.filter(E=>E!==P);t===void 0&&h(D),a?.(D);},[v,t,a]),k=K__namespace.useCallback(P=>{P.stopPropagation(),t===void 0&&h([]),a?.([]);},[t,a]);K__namespace.useEffect(()=>{let P=M=>{let D=M.target,E=x.current&&!x.current.contains(D),L=b.current&&!b.current.contains(D);E&&L&&f(false);};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[]);let S=e.filter(P=>v.includes(P.value)),T=S.slice(0,s),N=S.length-s;return jsxRuntime.jsxs("div",{ref:x,className:o("relative",d),...m,children:[jsxRuntime.jsxs("div",{ref:P=>{R.current=P,typeof u=="function"?u(P):u&&(u.current=P);},role:"combobox","aria-expanded":c,"aria-haspopup":"listbox","aria-disabled":i,onClick:()=>!i&&f(!c),className:o(Ay({radius:l}),i&&"cursor-not-allowed opacity-50",!i&&"cursor-pointer"),children:[S.length===0?jsxRuntime.jsx("span",{className:"text-muted-foreground",children:n}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[T.map(P=>jsxRuntime.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:[P.label,jsxRuntime.jsx("span",{role:"button",tabIndex:0,onClick:M=>w(P.value,M),onKeyDown:M=>{(M.key==="Enter"||M.key===" ")&&w(P.value,M);},className:"rounded-full hover:bg-secondary-foreground/20 cursor-pointer",children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},P.value)),N>0&&jsxRuntime.jsxs("span",{className:"text-xs text-muted-foreground",children:["+",N," more"]})]}),jsxRuntime.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[S.length>0&&jsxRuntime.jsx("span",{role:"button",tabIndex:0,onClick:k,onKeyDown:P=>{(P.key==="Enter"||P.key===" ")&&k(P);},className:"rounded-full p-0.5 hover:bg-muted cursor-pointer",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4 opacity-50"})}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:o("h-4 w-4 opacity-50 transition-transform",c&&"rotate-180")})]})]}),c&&!i&&typeof document<"u"&&zd__namespace.createPortal(jsxRuntime.jsx("div",{ref:b,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:y.top,left:y.left,width:y.width},children:e.map(P=>{let M=v.includes(P.value);return jsxRuntime.jsxs("div",{role:"option","aria-selected":M,onClick:()=>!P.disabled&&C(P.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",P.disabled&&"pointer-events-none opacity-50"),children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:M&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),P.label]},P.value)})}),document.body)]})});Wd.displayName="MultiSelect";var la=X__namespace.Root,da=X__namespace.Trigger,Gy=X__namespace.Group,Wy=X__namespace.Portal,$y=X__namespace.Sub,_y=X__namespace.RadioGroup,$d=K__namespace.forwardRef(({className:e,inset:t,children:r,...a},n)=>jsxRuntime.jsxs(X__namespace.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),...a,children:[r,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto"})]}));$d.displayName=X__namespace.SubTrigger.displayName;var _d=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(X__namespace.SubContent,{ref:r,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));_d.displayName=X__namespace.SubContent.displayName;var Ir=K__namespace.forwardRef(({className:e,sideOffset:t=4,...r},a)=>jsxRuntime.jsx(X__namespace.Portal,{children:jsxRuntime.jsx(X__namespace.Content,{ref:a,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),...r})}));Ir.displayName=X__namespace.Content.displayName;var It=K__namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx(X__namespace.Item,{ref:a,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),...r}));It.displayName=X__namespace.Item.displayName;var Kd=K__namespace.forwardRef(({className:e,children:t,checked:r,...a},n)=>jsxRuntime.jsxs(X__namespace.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:r,...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(X__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));Kd.displayName=X__namespace.CheckboxItem.displayName;var Yd=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsxs(X__namespace.RadioItem,{ref:a,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),...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(X__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Yd.displayName=X__namespace.RadioItem.displayName;var Ud=K__namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx(X__namespace.Label,{ref:a,className:o("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));Ud.displayName=X__namespace.Label.displayName;var Sn=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(X__namespace.Separator,{ref:r,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));Sn.displayName=X__namespace.Separator.displayName;var jd=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest opacity-60",e),...t});jd.displayName="DropdownMenuShortcut";var Ee=yt__namespace.Root,$e=yt__namespace.Trigger,ms=yt__namespace.Anchor,Me=K__namespace.forwardRef(({className:e,align:t="center",sideOffset:r=4,...a},n)=>jsxRuntime.jsx(yt__namespace.Portal,{children:jsxRuntime.jsx(yt__namespace.Content,{ref:n,align:t,sideOffset:r,className:o("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",e),...a})}));Me.displayName=yt__namespace.Content.displayName;var Zd=K__namespace.createContext({variant:"solid",radius:"md"}),Jd=()=>K__namespace.useContext(Zd),Qd=K__namespace.forwardRef(({variant:e="solid",radius:t="md",...r},a)=>jsxRuntime.jsx(Zd.Provider,{value:{variant:e,radius:t},children:jsxRuntime.jsx(Rt__namespace.Root,{ref:a,...r})}));Qd.displayName="Tabs";var us={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__namespace.forwardRef(({className:e,...t},r)=>{let{variant:a,radius:n}=Jd(),i=K__namespace.useRef(null),[s,l]=K__namespace.useState({opacity:0});K__namespace.useEffect(()=>{let p=i.current;if(!p)return;let h=()=>{let x=p.querySelector('[data-state="active"]');if(x){let R=p.getBoundingClientRect(),b=x.getBoundingClientRect(),v=p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column";a==="underline"?l(v?{width:2,height:b.height,transform:`translateY(${b.top-R.top}px)`,opacity:1}:{width:b.width,height:2,transform:`translateX(${b.left-R.left}px)`,opacity:1}):a==="solid"&&l(v?{width:b.width,height:b.height,transform:`translateY(${b.top-R.top}px)`,opacity:1}:{width:b.width,height:b.height,transform:`translateX(${b.left-R.left}px)`,opacity:1});}};h();let y=new MutationObserver(h);y.observe(p,{attributes:true,subtree:true,attributeFilter:["data-state"]});let g=new ResizeObserver(h);return g.observe(p),()=>{y.disconnect(),g.disconnect();}},[a]);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__namespace.useState(false);K__namespace.useEffect(()=>{c(m());},[]);let f=()=>a==="solid"?u?"top-0 left-1 bg-background shadow":"top-1 left-1 bg-background shadow":a==="underline"?u?"top-0 left-0 bg-primary !rounded-full":"bottom-0 left-0 bg-primary !rounded-full":"";return jsxRuntime.jsxs(Rt__namespace.List,{ref:p=>{if(i.current=p,typeof r=="function"?r(p):r&&(r.current=p),p){let h=p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column";c(h);}},className:o("relative inline-flex h-9 items-center justify-center text-muted-foreground",us[n].list,d[a],e),...t,children:[(a==="solid"||a==="underline")&&jsxRuntime.jsx("span",{className:o("absolute transition-all duration-200 ease-out",us[n].indicator,f()),style:s,"aria-hidden":"true"}),t.children]})});ec.displayName=Rt__namespace.List.displayName;var tc=K__namespace.forwardRef(({className:e,...t},r)=>{let{variant:a,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 jsxRuntime.jsx(Rt__namespace.Trigger,{ref:r,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",us[n].trigger,i[a],e),...t})});tc.displayName=Rt__namespace.Trigger.displayName;var rc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(Rt__namespace.Content,{ref:r,className:o("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 animate-in animate-out",e),...t}));rc.displayName=Rt__namespace.Content.displayName;var ko=ne__namespace.Root,Xy=ne__namespace.Trigger,qy=ne__namespace.Close,ac=ne__namespace.Portal,fs=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ne__namespace.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:r}));fs.displayName=ne__namespace.Overlay.displayName;var oc=classVarianceAuthority.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"}}),za=K__namespace.forwardRef(({side:e="right",className:t,children:r,hideCloseButton:a,...n},i)=>jsxRuntime.jsxs(ac,{children:[jsxRuntime.jsx(fs,{}),jsxRuntime.jsxs(ne__namespace.Content,{ref:i,className:o(oc({side:e}),t),"aria-describedby":void 0,...n,children:[jsxRuntime.jsx(ug.VisuallyHidden,{asChild:true,children:jsxRuntime.jsx(ne__namespace.Title,{children:"Sheet"})}),!a&&jsxRuntime.jsxs(ne__namespace.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:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]}));za.displayName=ne__namespace.Content.displayName;var nc=({className:e,...t})=>jsxRuntime.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})=>jsxRuntime.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__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ne__namespace.Title,{ref:r,className:o("text-lg font-semibold text-foreground",e),...t}));sc.displayName=ne__namespace.Title.displayName;var lc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ne__namespace.Description,{ref:r,className:o("text-sm text-muted-foreground",e),...t}));lc.displayName=ne__namespace.Description.displayName;var Qy=({theme:e="system",...t})=>jsxRuntime.jsx(sonner.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 ze=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsxs(it__namespace.Root,{ref:a,className:o("relative overflow-hidden group/scroll",e),...r,children:[jsxRuntime.jsx(it__namespace.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),jsxRuntime.jsx(bs,{}),jsxRuntime.jsx(it__namespace.Corner,{})]}));ze.displayName=it__namespace.Root.displayName;var bs=K__namespace.forwardRef(({className:e,orientation:t="vertical",...r},a)=>jsxRuntime.jsx(it__namespace.ScrollAreaScrollbar,{ref:a,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),...r,children:jsxRuntime.jsx(it__namespace.ScrollAreaThumb,{className:o("relative flex-1 rounded-full transition-colors","bg-transparent group-hover/scroll:bg-border hover:!bg-muted-foreground")})}));bs.displayName=it__namespace.ScrollAreaScrollbar.displayName;var n0=q__namespace.Root,i0=q__namespace.Trigger,s0=q__namespace.Group,l0=q__namespace.Portal,d0=q__namespace.Sub,c0=q__namespace.RadioGroup,dc=K__namespace.forwardRef(({className:e,inset:t,children:r,...a},n)=>jsxRuntime.jsxs(q__namespace.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),...a,children:[r,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}));dc.displayName=q__namespace.SubTrigger.displayName;var cc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(q__namespace.SubContent,{ref:r,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",e),...t}));cc.displayName=q__namespace.SubContent.displayName;var mc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(q__namespace.Portal,{children:jsxRuntime.jsx(q__namespace.Content,{ref:r,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__namespace.Content.displayName;var uc=K__namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx(q__namespace.Item,{ref:a,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),...r}));uc.displayName=q__namespace.Item.displayName;var pc=K__namespace.forwardRef(({className:e,children:t,checked:r,...a},n)=>jsxRuntime.jsxs(q__namespace.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:r,...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(q__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));pc.displayName=q__namespace.CheckboxItem.displayName;var fc=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsxs(q__namespace.RadioItem,{ref:a,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),...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(q__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-4 w-4 fill-current"})})}),t]}));fc.displayName=q__namespace.RadioItem.displayName;var gc=K__namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx(q__namespace.Label,{ref:a,className:o("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...r}));gc.displayName=q__namespace.Label.displayName;var bc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(q__namespace.Separator,{ref:r,className:o("-mx-1 my-1 h-px bg-border",e),...t}));bc.displayName=q__namespace.Separator.displayName;var vc=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});vc.displayName="ContextMenuShortcut";var hc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(Er__namespace.Root,{className:o("grid gap-2",e),...t,ref:r}));hc.displayName=Er__namespace.Root.displayName;var xc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(Er__namespace.Item,{ref:r,className:o("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:jsxRuntime.jsx(Er__namespace.Indicator,{className:"flex items-center justify-center",children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));xc.displayName=Er__namespace.Item.displayName;var Tn=classVarianceAuthority.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__namespace.forwardRef(({className:e,variant:t,size:r,...a},n)=>jsxRuntime.jsx(xs__namespace.Root,{ref:n,className:o(Tn({variant:t,size:r,className:e})),...a}));Rc.displayName=xs__namespace.Root.displayName;var wc=K__namespace.createContext({size:"md",variant:"solid"}),Nc=K__namespace.forwardRef(({className:e,variant:t,size:r,children:a,...n},i)=>jsxRuntime.jsx(Ba__namespace.Root,{ref:i,className:o("flex items-center justify-center gap-1",e),...n,children:jsxRuntime.jsx(wc.Provider,{value:{variant:t,size:r},children:a})}));Nc.displayName=Ba__namespace.Root.displayName;var Pc=K__namespace.forwardRef(({className:e,children:t,variant:r,size:a,...n},i)=>{let s=K__namespace.useContext(wc);return jsxRuntime.jsx(Ba__namespace.Item,{ref:i,className:o(Tn({variant:s.variant||r,size:s.size||a}),e),...n,children:t})});Pc.displayName=Ba__namespace.Item.displayName;var kn=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsxs(nr__namespace.Root,{ref:r,className:o("relative flex w-full touch-none select-none items-center",e),...t,children:[jsxRuntime.jsx(nr__namespace.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:jsxRuntime.jsx(nr__namespace.Range,{className:"absolute h-full bg-primary"})}),jsxRuntime.jsx(nr__namespace.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"})]}));kn.displayName=nr__namespace.Root.displayName;var b0=`
|
|
1
|
+
'use strict';var K=require('react'),classVarianceAuthority=require('class-variance-authority'),lucideReact=require('lucide-react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),reactSlot=require('@radix-ui/react-slot'),xo=require('@radix-ui/react-checkbox'),ie=require('@radix-ui/react-dialog'),es=require('@radix-ui/react-label'),wo=require('@radix-ui/react-separator'),No=require('@radix-ui/react-switch'),er=require('@radix-ui/react-avatar'),xt=require('@radix-ui/react-tooltip'),Ed=require('react-dom'),J=require('@radix-ui/react-select'),X=require('@radix-ui/react-dropdown-menu'),yt=require('@radix-ui/react-popover'),Rt=require('@radix-ui/react-tabs'),sg=require('@radix-ui/react-visually-hidden'),sonner=require('sonner'),it=require('@radix-ui/react-scroll-area'),q=require('@radix-ui/react-context-menu'),Lr=require('@radix-ui/react-radio-group'),bs=require('@radix-ui/react-toggle'),Aa=require('@radix-ui/react-toggle-group'),ar=require('@radix-ui/react-slider'),Et=require('@radix-ui/react-accordion'),ca=require('@radix-ui/react-collapsible'),To=require('@radix-ui/react-progress'),ma=require('@radix-ui/react-hover-card'),_c=require('@radix-ui/react-aspect-ratio'),we=require('@radix-ui/react-navigation-menu'),vaul=require('vaul'),reactDayPicker=require('react-day-picker'),dateFns=require('date-fns'),cmdk=require('cmdk'),reactResizablePanels=require('react-resizable-panels'),reactColorful=require('react-colorful'),U=require('@radix-ui/react-menubar'),ke=require('@radix-ui/react-alert-dialog'),recharts=require('recharts'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),sC=require('embla-carousel-react'),react=require('@tiptap/react'),bC=require('@tiptap/starter-kit'),vC=require('@tiptap/extension-link'),hC=require('@tiptap/extension-underline'),xC=require('@tiptap/extension-text-align'),yC=require('@tiptap/extension-placeholder'),GC=require('react-image-crop');require('react-image-crop/dist/ReactCrop.css');var XC=require('react-qr-code'),nextThemes=require('next-themes'),framerMotion=require('framer-motion'),bo=require('canvas-confetti');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var K__namespace=/*#__PURE__*/_interopNamespace(K);var xo__namespace=/*#__PURE__*/_interopNamespace(xo);var ie__namespace=/*#__PURE__*/_interopNamespace(ie);var es__namespace=/*#__PURE__*/_interopNamespace(es);var wo__namespace=/*#__PURE__*/_interopNamespace(wo);var No__namespace=/*#__PURE__*/_interopNamespace(No);var er__namespace=/*#__PURE__*/_interopNamespace(er);var xt__namespace=/*#__PURE__*/_interopNamespace(xt);var Ed__namespace=/*#__PURE__*/_interopNamespace(Ed);var J__namespace=/*#__PURE__*/_interopNamespace(J);var X__namespace=/*#__PURE__*/_interopNamespace(X);var yt__namespace=/*#__PURE__*/_interopNamespace(yt);var Rt__namespace=/*#__PURE__*/_interopNamespace(Rt);var sg__namespace=/*#__PURE__*/_interopNamespace(sg);var it__namespace=/*#__PURE__*/_interopNamespace(it);var q__namespace=/*#__PURE__*/_interopNamespace(q);var Lr__namespace=/*#__PURE__*/_interopNamespace(Lr);var bs__namespace=/*#__PURE__*/_interopNamespace(bs);var Aa__namespace=/*#__PURE__*/_interopNamespace(Aa);var ar__namespace=/*#__PURE__*/_interopNamespace(ar);var Et__namespace=/*#__PURE__*/_interopNamespace(Et);var ca__namespace=/*#__PURE__*/_interopNamespace(ca);var To__namespace=/*#__PURE__*/_interopNamespace(To);var ma__namespace=/*#__PURE__*/_interopNamespace(ma);var _c__namespace=/*#__PURE__*/_interopNamespace(_c);var we__namespace=/*#__PURE__*/_interopNamespace(we);var U__namespace=/*#__PURE__*/_interopNamespace(U);var ke__namespace=/*#__PURE__*/_interopNamespace(ke);var sC__default=/*#__PURE__*/_interopDefault(sC);var bC__default=/*#__PURE__*/_interopDefault(bC);var vC__default=/*#__PURE__*/_interopDefault(vC);var hC__default=/*#__PURE__*/_interopDefault(hC);var xC__default=/*#__PURE__*/_interopDefault(xC);var yC__default=/*#__PURE__*/_interopDefault(yC);var GC__default=/*#__PURE__*/_interopDefault(GC);var XC__default=/*#__PURE__*/_interopDefault(XC);var bo__default=/*#__PURE__*/_interopDefault(bo);function o(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var Xx=classVarianceAuthority.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"}}),qx={default:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle},Zx=K__namespace.forwardRef(({className:e,variant:t="solid",type:r="default",radius:a="md",icon:n,hideIcon:i=false,endContent:s,children:l,...d},m)=>{let u=qx[r],c=!i,f=n!==void 0?n:u?jsxRuntime.jsx(u,{className:"h-4 w-4"}):null;return jsxRuntime.jsxs("div",{ref:m,role:"alert",className:o(Xx({variant:t,type:r,radius:a}),s&&"flex items-center justify-between",e),...d,children:[jsxRuntime.jsxs("div",{className:"flex items-start gap-3",children:[c&&f&&jsxRuntime.jsx("span",{className:"mt-0.5 shrink-0",children:f}),jsxRuntime.jsx("div",{children:l})]}),s&&jsxRuntime.jsx("div",{className:"shrink-0 ml-4",children:s})]})});Zx.displayName="Alert";var Jx=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("h5",{ref:r,className:o("mb-1 font-medium leading-none tracking-tight",e),...t}));Jx.displayName="AlertTitle";var Qx=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("text-sm [&_p]:leading-relaxed",e),...t}));Qx.displayName="AlertDescription";var ey=classVarianceAuthority.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"}}),ty={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"},ry=K__namespace.forwardRef(({className:e,children:t,content:r,variant:a="solid",color:n="default",size:i="md",placement:s="top-right",isDot:l=false,...d},m)=>jsxRuntime.jsxs("div",{ref:m,className:o("relative inline-flex",e),...d,children:[t,jsxRuntime.jsx("span",{className:o(ey({variant:a,color:n,size:l?void 0:i,placement:s}),l&&ty[i||"md"],l&&"min-w-0 p-0"),children:!l&&r})]}));ry.displayName="Badge";var ay=classVarianceAuthority.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"}}),qi=K__namespace.forwardRef(({className:e,color:t,size:r,...a},n)=>jsxRuntime.jsx("span",{ref:n,className:o(ay({color:t,size:r}),e),...a}));qi.displayName="TextBadge";var Qt=classVarianceAuthority.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"}}),$=K__namespace.forwardRef(({className:e,variant:t,color:r,size:a,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,R=l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(lucideReact.Loader2,{className:"animate-spin"}),u]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d,u,m]});return i?jsxRuntime.jsx(reactSlot.Slot,{className:o(Qt({variant:t,color:r,size:a,radius:n,className:e})),ref:v,style:x,...p,children:R}):s?jsxRuntime.jsx("a",{href:s,className:o(Qt({variant:t,color:r,size:a,radius:n,className:e}),y&&"pointer-events-none opacity-50"),style:x,...p,children:R}):jsxRuntime.jsx("button",{className:o(Qt({variant:t,color:r,size:a,radius:n,className:e})),ref:v,disabled:y,style:x,...p,children:R})});$.displayName="Button";var pd=classVarianceAuthority.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"}}),fd=K__namespace.forwardRef(({className:e,radius:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:o(pd({radius:t,className:e})),...r}));fd.displayName="Card";var gd=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("p-6 text-2xl font-semibold leading-none tracking-tight",e),...t}));gd.displayName="CardHeader";var bd=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("p-6 pt-0",e),...t}));bd.displayName="CardContent";var vd=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex items-center p-6 pt-0",e),...t}));vd.displayName="CardFooter";var yo=K__namespace.forwardRef(({className:e,checked:t,onFocus:r,onBlur:a,style:n,...i},s)=>{let[l,d]=K__namespace.useState(false);return jsxRuntime.jsx(xo__namespace.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),r?.(m);},onBlur:m=>{d(false),a?.(m);},...i,children:jsxRuntime.jsx(xo__namespace.Indicator,{className:o("flex items-center justify-center text-current"),children:t==="indeterminate"?jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})})});yo.displayName=xo__namespace.Root.displayName;var Ji=ie__namespace.Root,uy=ie__namespace.Trigger,hd=ie__namespace.Portal,py=ie__namespace.Close,Qi=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ie__namespace.Overlay,{ref:r,className:o("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Qi.displayName=ie__namespace.Overlay.displayName;var pn=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsxs(hd,{children:[jsxRuntime.jsx(Qi,{}),jsxRuntime.jsxs(ie__namespace.Content,{ref:a,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),...r,children:[t,jsxRuntime.jsxs(ie__namespace.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:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));pn.displayName=ie__namespace.Content.displayName;var xd=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});xd.displayName="DialogHeader";var yd=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});yd.displayName="DialogFooter";var Rd=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ie__namespace.Title,{ref:r,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));Rd.displayName=ie__namespace.Title.displayName;var wd=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ie__namespace.Description,{ref:r,className:o("text-sm text-muted-foreground",e),...t}));wd.displayName=ie__namespace.Description.displayName;var gy=classVarianceAuthority.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"}}),gn=K__namespace.forwardRef(({className:e,type:t,radius:r,onFocus:a,onBlur:n,style:i,...s},l)=>{let[d,m]=K__namespace.useState(false);return jsxRuntime.jsx("input",{type:t,className:o(gy({radius:r,className:e})),ref:l,style:{...i,borderColor:d?"var(--color-foreground)":void 0},onFocus:u=>{m(true),a?.(u);},onBlur:u=>{m(false),n?.(u);},...s})});gn.displayName="Input";var hy=classVarianceAuthority.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ea=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(es__namespace.Root,{ref:r,className:o(hy(),e),...t}));ea.displayName=es__namespace.Root.displayName;var kr=K__namespace.forwardRef(({className:e,orientation:t="horizontal",decorative:r=true,text:a,...n},i)=>a&&t==="horizontal"?jsxRuntime.jsxs("div",{className:o("flex items-center gap-4",e),children:[jsxRuntime.jsx(wo__namespace.Root,{decorative:r,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n}),jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:a}),jsxRuntime.jsx(wo__namespace.Root,{decorative:r,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n})]}):jsxRuntime.jsx(wo__namespace.Root,{ref:i,decorative:r,orientation:t,className:o("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));kr.displayName=wo__namespace.Root.displayName;var Md=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(No__namespace.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:r,children:jsxRuntime.jsx(No__namespace.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")})}));Md.displayName=No__namespace.Root.displayName;var wy=classVarianceAuthority.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"}}),Td=K__namespace.forwardRef(({className:e,radius:t,onFocus:r,onBlur:a,style:n,...i},s)=>{let[l,d]=K__namespace.useState(false);return jsxRuntime.jsx("textarea",{className:o(wy({radius:t,className:e})),ref:s,style:{...n,borderColor:l?"var(--color-foreground)":void 0},onFocus:m=>{d(true),r?.(m);},onBlur:m=>{d(false),a?.(m);},...i})});Td.displayName="Textarea";var Dd=classVarianceAuthority.cva("rounded-md bg-muted",{variants:{variant:{pulse:"animate-pulse",shimmer:"skeleton-shimmer",static:""}},defaultVariants:{variant:"pulse"}}),hn=K__namespace.forwardRef(({className:e,variant:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:o(Dd({variant:t,className:e})),...r}));hn.displayName="Skeleton";var My=classVarianceAuthority.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"}}),ta=K__namespace.forwardRef(({className:e,size:t,radius:r,...a},n)=>jsxRuntime.jsx(er__namespace.Root,{ref:n,className:o(My({size:t,radius:r,className:e})),...a}));ta.displayName=er__namespace.Root.displayName;var Ea=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(er__namespace.Image,{ref:r,className:o("aspect-square h-full w-full",e),...t}));Ea.displayName=er__namespace.Image.displayName;var ra=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(er__namespace.Fallback,{ref:r,className:o("flex h-full w-full items-center justify-center bg-muted",e),...t}));ra.displayName=er__namespace.Fallback.displayName;var aa=xt__namespace.Provider,oa=xt__namespace.Root,na=xt__namespace.Trigger,Dr=K__namespace.forwardRef(({className:e,sideOffset:t=4,...r},a)=>jsxRuntime.jsx(xt__namespace.Portal,{children:jsxRuntime.jsx(xt__namespace.Content,{ref:a,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),...r})}));Dr.displayName=xt__namespace.Content.displayName;var Dy=classVarianceAuthority.cva("flex h-10 w-full cursor-pointer items-center justify-between 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",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),as=J__namespace.Root,Vy=J__namespace.Group,os=J__namespace.Value,yn=K__namespace.forwardRef(({className:e,children:t,radius:r,...a},n)=>jsxRuntime.jsxs(J__namespace.Trigger,{ref:n,className:o(Dy({radius:r,className:e})),...a,children:[t,jsxRuntime.jsx(J__namespace.Icon,{asChild:true,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));yn.displayName=J__namespace.Trigger.displayName;var ns=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(J__namespace.ScrollUpButton,{ref:r,className:o("flex cursor-default items-center justify-center py-1",e),...t,children:jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"})}));ns.displayName=J__namespace.ScrollUpButton.displayName;var is=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(J__namespace.ScrollDownButton,{ref:r,className:o("flex cursor-default items-center justify-center py-1",e),...t,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"})}));is.displayName=J__namespace.ScrollDownButton.displayName;var Rn=K__namespace.forwardRef(({className:e,children:t,position:r="popper",...a},n)=>jsxRuntime.jsx(J__namespace.Portal,{children:jsxRuntime.jsxs(J__namespace.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",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...a,children:[jsxRuntime.jsx(ns,{}),jsxRuntime.jsx(J__namespace.Viewport,{className:o("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),jsxRuntime.jsx(is,{})]})}));Rn.displayName=J__namespace.Content.displayName;var zd=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(J__namespace.Label,{ref:r,className:o("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));zd.displayName=J__namespace.Label.displayName;var wn=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsxs(J__namespace.Item,{ref:a,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),...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(J__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),jsxRuntime.jsx(J__namespace.ItemText,{children:t})]}));wn.displayName=J__namespace.Item.displayName;var Bd=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(J__namespace.Separator,{ref:r,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));Bd.displayName=J__namespace.Separator.displayName;var Ly=classVarianceAuthority.cva("flex min-h-10 w-full flex-wrap items-center gap-1 border border-zinc-300 dark:border-zinc-700 bg-background px-3 py-2 text-sm",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),Fd=K__namespace.forwardRef(({options:e,value:t,defaultValue:r=[],onChange:a,placeholder:n="Select items...",disabled:i,maxDisplayItems:s=3,searchable:l=false,searchPlaceholder:d="Search...",emptyText:m="No results found.",radius:u,className:c,...f},p)=>{let[v,y]=K__namespace.useState(false),[g,x]=K__namespace.useState(""),[R,b]=K__namespace.useState(r),[h,P]=K__namespace.useState({top:0,left:0,width:0}),w=K__namespace.useRef(null),M=K__namespace.useRef(null),C=K__namespace.useRef(null),S=K__namespace.useRef(null),N=t??R;K__namespace.useEffect(()=>{if(v&&M.current){let L=M.current.getBoundingClientRect();P({top:L.bottom+4,left:L.left,width:L.width}),l&&setTimeout(()=>S.current?.focus(),0);}v||x("");},[v,l]);let T=K__namespace.useCallback(L=>{let A=N.includes(L)?N.filter(B=>B!==L):[...N,L];t===void 0&&b(A),a?.(A);},[N,t,a]),k=K__namespace.useCallback((L,A)=>{A.stopPropagation();let B=N.filter(H=>H!==L);t===void 0&&b(B),a?.(B);},[N,t,a]),V=K__namespace.useCallback(L=>{L.stopPropagation(),t===void 0&&b([]),a?.([]);},[t,a]);K__namespace.useEffect(()=>{let L=A=>{let B=A.target,H=w.current&&!w.current.contains(B),j=C.current&&!C.current.contains(B);H&&j&&y(false);};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[]);let E=e.filter(L=>N.includes(L.value)),I=E.slice(0,s),D=E.length-s;return jsxRuntime.jsxs("div",{ref:w,className:o("relative",c),...f,children:[jsxRuntime.jsxs("div",{ref:L=>{M.current=L,typeof p=="function"?p(L):p&&(p.current=L);},role:"combobox","aria-expanded":v,"aria-haspopup":"listbox","aria-disabled":i,onClick:()=>!i&&y(!v),className:o(Ly({radius:u}),i&&"cursor-not-allowed opacity-50",!i&&"cursor-pointer"),children:[E.length===0?jsxRuntime.jsx("span",{className:"text-muted-foreground",children:n}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[I.map(L=>jsxRuntime.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:[L.label,jsxRuntime.jsx("span",{role:"button",tabIndex:0,onClick:A=>k(L.value,A),onKeyDown:A=>{(A.key==="Enter"||A.key===" ")&&k(L.value,A);},className:"rounded-full hover:bg-secondary-foreground/20 cursor-pointer",children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},L.value)),D>0&&jsxRuntime.jsxs("span",{className:"text-xs text-muted-foreground",children:["+",D," more"]})]}),jsxRuntime.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[E.length>0&&jsxRuntime.jsx("span",{role:"button",tabIndex:0,onClick:V,onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&V(L);},className:"rounded-full p-0.5 hover:bg-muted cursor-pointer",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4 opacity-50"})}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:o("h-4 w-4 opacity-50 transition-transform",v&&"rotate-180")})]})]}),v&&!i&&typeof document<"u"&&Ed__namespace.createPortal(jsxRuntime.jsxs("div",{ref:C,className:"fixed z-[9999] overflow-hidden rounded-md border border-zinc-300 dark:border-zinc-700 bg-background shadow-md",style:{top:h.top,left:h.left,width:h.width},children:[l&&jsxRuntime.jsxs("div",{className:"flex items-center border-b border-zinc-300 dark:border-zinc-700 px-3",children:[jsxRuntime.jsx(lucideReact.Search,{className:"h-4 w-4 opacity-50 mr-2"}),jsxRuntime.jsx("input",{ref:S,type:"text",value:g,onChange:L=>x(L.target.value),placeholder:d,className:"flex h-10 w-full bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground"})]}),jsxRuntime.jsx("div",{className:"max-h-60 overflow-y-auto p-1",children:(()=>{let L=l?e.filter(A=>A.label.toLowerCase().includes(g.toLowerCase())):e;return L.length===0?jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:m}):L.map(A=>{let B=N.includes(A.value);return jsxRuntime.jsxs("div",{role:"option","aria-selected":B,onClick:()=>!A.disabled&&T(A.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",A.disabled&&"pointer-events-none opacity-50"),children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:B&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),A.label]},A.value)})})()})]}),document.body)]})});Fd.displayName="MultiSelect";var ia=X__namespace.Root,sa=X__namespace.Trigger,zy=X__namespace.Group,By=X__namespace.Portal,Fy=X__namespace.Sub,Oy=X__namespace.RadioGroup,Od=K__namespace.forwardRef(({className:e,inset:t,children:r,...a},n)=>jsxRuntime.jsxs(X__namespace.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),...a,children:[r,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto"})]}));Od.displayName=X__namespace.SubTrigger.displayName;var Gd=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(X__namespace.SubContent,{ref:r,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Gd.displayName=X__namespace.SubContent.displayName;var Vr=K__namespace.forwardRef(({className:e,sideOffset:t=4,...r},a)=>jsxRuntime.jsx(X__namespace.Portal,{children:jsxRuntime.jsx(X__namespace.Content,{ref:a,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),...r})}));Vr.displayName=X__namespace.Content.displayName;var Lt=K__namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx(X__namespace.Item,{ref:a,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),...r}));Lt.displayName=X__namespace.Item.displayName;var Wd=K__namespace.forwardRef(({className:e,children:t,checked:r,...a},n)=>jsxRuntime.jsxs(X__namespace.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:r,...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(X__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));Wd.displayName=X__namespace.CheckboxItem.displayName;var $d=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsxs(X__namespace.RadioItem,{ref:a,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),...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(X__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));$d.displayName=X__namespace.RadioItem.displayName;var _d=K__namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx(X__namespace.Label,{ref:a,className:o("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));_d.displayName=X__namespace.Label.displayName;var Nn=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(X__namespace.Separator,{ref:r,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));Nn.displayName=X__namespace.Separator.displayName;var Kd=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest opacity-60",e),...t});Kd.displayName="DropdownMenuShortcut";var Ee=yt__namespace.Root,$e=yt__namespace.Trigger,ls=yt__namespace.Anchor,Me=K__namespace.forwardRef(({className:e,align:t="center",sideOffset:r=4,...a},n)=>jsxRuntime.jsx(yt__namespace.Portal,{children:jsxRuntime.jsx(yt__namespace.Content,{ref:n,align:t,sideOffset:r,className:o("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",e),...a})}));Me.displayName=yt__namespace.Content.displayName;var jd=K__namespace.createContext({variant:"solid",radius:"md"}),Xd=()=>K__namespace.useContext(jd),qd=K__namespace.forwardRef(({variant:e="solid",radius:t="md",...r},a)=>jsxRuntime.jsx(jd.Provider,{value:{variant:e,radius:t},children:jsxRuntime.jsx(Rt__namespace.Root,{ref:a,...r})}));qd.displayName="Tabs";var ds={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"}},Zd=K__namespace.forwardRef(({className:e,...t},r)=>{let{variant:a,radius:n}=Xd(),i=K__namespace.useRef(null),[s,l]=K__namespace.useState({opacity:0});K__namespace.useEffect(()=>{let p=i.current;if(!p)return;let v=()=>{let x=p.querySelector('[data-state="active"]');if(x){let R=p.getBoundingClientRect(),b=x.getBoundingClientRect(),h=p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column";a==="underline"?l(h?{width:2,height:b.height,transform:`translateY(${b.top-R.top}px)`,opacity:1}:{width:b.width,height:2,transform:`translateX(${b.left-R.left}px)`,opacity:1}):a==="solid"&&l(h?{width:b.width,height:b.height,transform:`translateY(${b.top-R.top}px)`,opacity:1}:{width:b.width,height:b.height,transform:`translateX(${b.left-R.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();}},[a]);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__namespace.useState(false);K__namespace.useEffect(()=>{c(m());},[]);let f=()=>a==="solid"?u?"top-0 left-1 bg-background shadow":"top-1 left-1 bg-background shadow":a==="underline"?u?"top-0 left-0 bg-primary !rounded-full":"bottom-0 left-0 bg-primary !rounded-full":"";return jsxRuntime.jsxs(Rt__namespace.List,{ref:p=>{if(i.current=p,typeof r=="function"?r(p):r&&(r.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",ds[n].list,d[a],e),...t,children:[(a==="solid"||a==="underline")&&jsxRuntime.jsx("span",{className:o("absolute transition-all duration-200 ease-out",ds[n].indicator,f()),style:s,"aria-hidden":"true"}),t.children]})});Zd.displayName=Rt__namespace.List.displayName;var Jd=K__namespace.forwardRef(({className:e,...t},r)=>{let{variant:a,radius:n}=Xd(),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 jsxRuntime.jsx(Rt__namespace.Trigger,{ref:r,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",ds[n].trigger,i[a],e),...t})});Jd.displayName=Rt__namespace.Trigger.displayName;var Qd=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(Rt__namespace.Content,{ref:r,className:o("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 animate-in animate-out",e),...t}));Qd.displayName=Rt__namespace.Content.displayName;var So=ie__namespace.Root,Ky=ie__namespace.Trigger,Yy=ie__namespace.Close,ec=ie__namespace.Portal,ms=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ie__namespace.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:r}));ms.displayName=ie__namespace.Overlay.displayName;var tc=classVarianceAuthority.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"}}),Ha=K__namespace.forwardRef(({side:e="right",className:t,children:r,hideCloseButton:a,...n},i)=>jsxRuntime.jsxs(ec,{children:[jsxRuntime.jsx(ms,{}),jsxRuntime.jsxs(ie__namespace.Content,{ref:i,className:o(tc({side:e}),t),"aria-describedby":void 0,...n,children:[jsxRuntime.jsx(sg.VisuallyHidden,{asChild:true,children:jsxRuntime.jsx(ie__namespace.Title,{children:"Sheet"})}),!a&&jsxRuntime.jsxs(ie__namespace.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:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]}));Ha.displayName=ie__namespace.Content.displayName;var rc=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",e),...t});rc.displayName="SheetHeader";var ac=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ac.displayName="SheetFooter";var oc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ie__namespace.Title,{ref:r,className:o("text-lg font-semibold text-foreground",e),...t}));oc.displayName=ie__namespace.Title.displayName;var nc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ie__namespace.Description,{ref:r,className:o("text-sm text-muted-foreground",e),...t}));nc.displayName=ie__namespace.Description.displayName;var Xy=({theme:e="system",...t})=>jsxRuntime.jsx(sonner.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 ze=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsxs(it__namespace.Root,{ref:a,className:o("relative overflow-hidden group/scroll",e),...r,children:[jsxRuntime.jsx(it__namespace.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),jsxRuntime.jsx(ps,{}),jsxRuntime.jsx(it__namespace.Corner,{})]}));ze.displayName=it__namespace.Root.displayName;var ps=K__namespace.forwardRef(({className:e,orientation:t="vertical",...r},a)=>jsxRuntime.jsx(it__namespace.ScrollAreaScrollbar,{ref:a,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),...r,children:jsxRuntime.jsx(it__namespace.ScrollAreaThumb,{className:o("relative flex-1 rounded-full transition-colors","bg-transparent group-hover/scroll:bg-border hover:!bg-muted-foreground")})}));ps.displayName=it__namespace.ScrollAreaScrollbar.displayName;var t0=q__namespace.Root,r0=q__namespace.Trigger,a0=q__namespace.Group,o0=q__namespace.Portal,n0=q__namespace.Sub,i0=q__namespace.RadioGroup,ic=K__namespace.forwardRef(({className:e,inset:t,children:r,...a},n)=>jsxRuntime.jsxs(q__namespace.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),...a,children:[r,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}));ic.displayName=q__namespace.SubTrigger.displayName;var sc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(q__namespace.SubContent,{ref:r,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",e),...t}));sc.displayName=q__namespace.SubContent.displayName;var lc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(q__namespace.Portal,{children:jsxRuntime.jsx(q__namespace.Content,{ref:r,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})}));lc.displayName=q__namespace.Content.displayName;var dc=K__namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx(q__namespace.Item,{ref:a,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),...r}));dc.displayName=q__namespace.Item.displayName;var cc=K__namespace.forwardRef(({className:e,children:t,checked:r,...a},n)=>jsxRuntime.jsxs(q__namespace.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:r,...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(q__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));cc.displayName=q__namespace.CheckboxItem.displayName;var mc=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsxs(q__namespace.RadioItem,{ref:a,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),...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(q__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-4 w-4 fill-current"})})}),t]}));mc.displayName=q__namespace.RadioItem.displayName;var uc=K__namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx(q__namespace.Label,{ref:a,className:o("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...r}));uc.displayName=q__namespace.Label.displayName;var pc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(q__namespace.Separator,{ref:r,className:o("-mx-1 my-1 h-px bg-border",e),...t}));pc.displayName=q__namespace.Separator.displayName;var fc=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});fc.displayName="ContextMenuShortcut";var gc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(Lr__namespace.Root,{className:o("grid gap-2",e),...t,ref:r}));gc.displayName=Lr__namespace.Root.displayName;var bc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(Lr__namespace.Item,{ref:r,className:o("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:jsxRuntime.jsx(Lr__namespace.Indicator,{className:"flex items-center justify-center",children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));bc.displayName=Lr__namespace.Item.displayName;var Cn=classVarianceAuthority.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"}}),hc=K__namespace.forwardRef(({className:e,variant:t,size:r,...a},n)=>jsxRuntime.jsx(bs__namespace.Root,{ref:n,className:o(Cn({variant:t,size:r,className:e})),...a}));hc.displayName=bs__namespace.Root.displayName;var xc=K__namespace.createContext({size:"md",variant:"solid"}),yc=K__namespace.forwardRef(({className:e,variant:t,size:r,children:a,...n},i)=>jsxRuntime.jsx(Aa__namespace.Root,{ref:i,className:o("flex items-center justify-center gap-1",e),...n,children:jsxRuntime.jsx(xc.Provider,{value:{variant:t,size:r},children:a})}));yc.displayName=Aa__namespace.Root.displayName;var Rc=K__namespace.forwardRef(({className:e,children:t,variant:r,size:a,...n},i)=>{let s=K__namespace.useContext(xc);return jsxRuntime.jsx(Aa__namespace.Item,{ref:i,className:o(Cn({variant:s.variant||r,size:s.size||a}),e),...n,children:t})});Rc.displayName=Aa__namespace.Item.displayName;var Sn=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsxs(ar__namespace.Root,{ref:r,className:o("relative flex w-full touch-none select-none items-center",e),...t,children:[jsxRuntime.jsx(ar__namespace.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:jsxRuntime.jsx(ar__namespace.Range,{className:"absolute h-full bg-primary"})}),jsxRuntime.jsx(ar__namespace.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"})]}));Sn.displayName=ar__namespace.Root.displayName;var u0=`
|
|
2
2
|
@keyframes accordion-down {
|
|
3
3
|
from { height: 0; opacity: 0; }
|
|
4
4
|
to { height: var(--radix-accordion-content-height); opacity: 1; }
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
.accordion-content[data-state="closed"] {
|
|
14
14
|
animation: accordion-up 0.2s ease-out;
|
|
15
15
|
}
|
|
16
|
-
`,
|
|
16
|
+
`,Nc=false,p0=()=>{if(Nc||typeof document>"u")return;let e=document.createElement("style");e.textContent=u0,document.head.appendChild(e),Nc=true;},Pc=({className:e,...t})=>(K__namespace.useEffect(()=>{p0();},[]),jsxRuntime.jsx(Et__namespace.Root,{className:o("w-full",e),...t}));Pc.displayName="Accordion";var f0=Pc,Cc=K__namespace.forwardRef(({className:e,title:t,subtitle:r,startContent:a,children:n,...i},s)=>jsxRuntime.jsxs(Et__namespace.Item,{ref:s,className:o("border-b data-[disabled]:opacity-50",e),...i,children:[jsxRuntime.jsx(Et__namespace.Header,{className:"flex",children:jsxRuntime.jsxs(Et__namespace.Trigger,{className:"flex flex-1 items-center justify-between py-4 font-medium transition-all text-left cursor-pointer [&[data-state=open]>svg]:rotate-180 disabled:pointer-events-none disabled:opacity-50",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[a,jsxRuntime.jsxs("div",{className:"flex flex-col items-start",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:t}),r&&jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:r})]})]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}),jsxRuntime.jsx(Et__namespace.Content,{className:"accordion-content overflow-hidden text-sm",children:jsxRuntime.jsx("div",{className:"pb-4 pt-0",children:n})})]}));Cc.displayName="AccordionItem";var g0=`
|
|
17
17
|
@keyframes collapsible-down {
|
|
18
18
|
from { height: 0; opacity: 0; }
|
|
19
19
|
to { height: var(--radix-collapsible-content-height); opacity: 1; }
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
.collapsible-content[data-state="closed"] {
|
|
29
29
|
animation: collapsible-up 0.2s ease-out;
|
|
30
30
|
}
|
|
31
|
-
`,kc=false,y0=()=>{if(kc||typeof document>"u")return;let e=document.createElement("style");e.textContent=x0,document.head.appendChild(e),kc=true;},Lc=K__namespace.forwardRef(({className:e,title:t,children:r,...a},n)=>(K__namespace.useEffect(()=>{y0();},[]),jsxRuntime.jsxs(ua__namespace.Root,{ref:n,className:o("space-y-2",e),...a,children:[t&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between space-x-4 px-4",children:[jsxRuntime.jsx("h4",{className:"text-sm font-semibold",children:t}),jsxRuntime.jsx(ua__namespace.CollapsibleTrigger,{className:"flex items-center justify-center h-9 w-9 rounded-lg bg-transparent hover:bg-zinc-100 dark:hover:bg-zinc-800 transition-colors cursor-pointer",children:jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4"})})]}),r]})));Lc.displayName="Collapsible";var Ic=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx(ua__namespace.CollapsibleTrigger,{ref:a,className:o("flex items-center justify-center h-9 w-9 rounded-lg bg-transparent hover:bg-zinc-100 dark:hover:bg-zinc-800 transition-colors cursor-pointer",e),...r,children:t??jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4"})}));Ic.displayName="CollapsibleTrigger";var Ec=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ua__namespace.CollapsibleContent,{ref:r,className:o("collapsible-content overflow-hidden",e),...t}));Ec.displayName="CollapsibleContent";var Ln=K__namespace.forwardRef(({className:e,value:t,...r},a)=>jsxRuntime.jsx(Vo__namespace.Root,{ref:a,className:o("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...r,children:jsxRuntime.jsx(Vo__namespace.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Ln.displayName=Vo__namespace.Root.displayName;var R0=pa__namespace.Root,w0=pa__namespace.Trigger,Bc=K__namespace.forwardRef(({className:e,align:t="center",sideOffset:r=4,...a},n)=>jsxRuntime.jsx(pa__namespace.Content,{ref:n,align:t,sideOffset:r,className:o("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a}));Bc.displayName=pa__namespace.Content.displayName;var Fc=K__namespace.createContext({size:"md",variant:"default",radius:"md"}),En=()=>K__namespace.useContext(Fc);classVarianceAuthority.cva("",{variants:{size:{sm:"",md:"",lg:""},variant:{default:"",bordered:"",filled:""},radius:{none:"",sm:"",md:"",lg:"",full:""}},defaultVariants:{size:"md",variant:"default",radius:"md"}});var M0=classVarianceAuthority.cva("flex flex-wrap items-center break-words",{variants:{size:{sm:"gap-1 text-xs",md:"gap-1.5 text-sm sm:gap-2",lg:"gap-2 text-base sm:gap-3"},variant:{default:"text-muted-foreground",bordered:"text-muted-foreground px-3 py-1.5 border",filled:"text-muted-foreground bg-muted px-3 py-1.5"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{size:"md",variant:"default",radius:"md"}}),T0=classVarianceAuthority.cva("",{variants:{size:{sm:"[&>svg]:h-3 [&>svg]:w-3",md:"[&>svg]:h-3.5 [&>svg]:w-3.5",lg:"[&>svg]:h-4 [&>svg]:w-4"}},defaultVariants:{size:"md"}}),k0=classVarianceAuthority.cva("flex items-center justify-center",{variants:{size:{sm:"h-6 w-6 [&>svg]:h-3 [&>svg]:w-3",md:"h-8 w-8 [&>svg]:h-4 [&>svg]:w-4",lg:"h-10 w-10 [&>svg]:h-5 [&>svg]:w-5"}},defaultVariants:{size:"md"}}),Oc=K__namespace.forwardRef(({size:e="md",variant:t="default",radius:r="md",children:a,...n},i)=>jsxRuntime.jsx(Fc.Provider,{value:{size:e,variant:t,radius:r},children:jsxRuntime.jsx("nav",{ref:i,"aria-label":"breadcrumb",...n,children:a})}));Oc.displayName="Breadcrumb";var Gc=K__namespace.forwardRef(({className:e,...t},r)=>{let{size:a,variant:n,radius:i}=En();return jsxRuntime.jsx("ol",{ref:r,className:o(M0({size:a,variant:n,radius:n==="default"?void 0:i}),e),...t})});Gc.displayName="BreadcrumbList";var Wc=K__namespace.forwardRef(({className:e,...t},r)=>{let{size:a}=En();return jsxRuntime.jsx("li",{ref:r,className:o("inline-flex items-center",a==="sm"&&"gap-1",a==="md"&&"gap-1.5",a==="lg"&&"gap-2",e),...t})});Wc.displayName="BreadcrumbItem";var $c=K__namespace.forwardRef(({asChild:e,className:t,...r},a)=>jsxRuntime.jsx(e?reactSlot.Slot:"a",{ref:a,className:o("transition-colors hover:text-foreground cursor-pointer",t),...r}));$c.displayName="BreadcrumbLink";var _c=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:o("font-medium text-foreground",e),...t}));_c.displayName="BreadcrumbPage";var Kc=({children:e,className:t,...r})=>{let{size:a}=En();return jsxRuntime.jsx("li",{role:"presentation","aria-hidden":"true",className:o(T0({size:a}),"text-muted-foreground/60",t),...r,children:e??jsxRuntime.jsx(lucideReact.ChevronRight,{})})};Kc.displayName="BreadcrumbSeparator";var Yc=({className:e,...t})=>{let{size:r}=En();return jsxRuntime.jsxs("span",{role:"presentation","aria-hidden":"true",className:o(k0({size:r}),e),...t,children:[jsxRuntime.jsx(lucideReact.MoreHorizontal,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"More"})]})};Yc.displayName="BreadcrumbEllipsis";var V0=Uc__namespace.Root;var jc=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsxs(we__namespace.Root,{ref:a,className:o("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...r,children:[t,jsxRuntime.jsx(ws,{})]}));jc.displayName=we__namespace.Root.displayName;var Xc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(we__namespace.List,{ref:r,className:o("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));Xc.displayName=we__namespace.List.displayName;var E0=we__namespace.Item,qc=classVarianceAuthority.cva("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),Zc=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsxs(we__namespace.Trigger,{ref:a,className:o(qc(),"group",e),...r,children:[t," ",jsxRuntime.jsx(lucideReact.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Zc.displayName=we__namespace.Trigger.displayName;var Jc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(we__namespace.Content,{ref:r,className:o("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",e),...t}));Jc.displayName=we__namespace.Content.displayName;var H0=we__namespace.Link,ws=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{className:o("absolute left-0 top-full flex justify-center"),children:jsxRuntime.jsx(we__namespace.Viewport,{className:o("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:r,...t})}));ws.displayName=we__namespace.Viewport.displayName;var Qc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(we__namespace.Indicator,{ref:r,className:o("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:jsxRuntime.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Qc.displayName=we__namespace.Indicator.displayName;var rm=({shouldScaleBackground:e=true,...t})=>jsxRuntime.jsx(vaul.Drawer.Root,{shouldScaleBackground:e,...t});rm.displayName="Drawer";var A0=vaul.Drawer.Trigger,am=vaul.Drawer.Portal,z0=vaul.Drawer.Close,Ns=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(vaul.Drawer.Overlay,{ref:r,className:o("fixed inset-0 z-50 bg-black/80",e),...t}));Ns.displayName=vaul.Drawer.Overlay.displayName;var om=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsxs(am,{children:[jsxRuntime.jsx(Ns,{}),jsxRuntime.jsxs(vaul.Drawer.Content,{ref:a,className:o("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...r,children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));om.displayName="DrawerContent";var nm=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("grid gap-1.5 p-4 text-center sm:text-left",e),...t});nm.displayName="DrawerHeader";var im=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("mt-auto flex flex-col gap-2 p-4",e),...t});im.displayName="DrawerFooter";var sm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(vaul.Drawer.Title,{ref:r,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));sm.displayName=vaul.Drawer.Title.displayName;var lm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(vaul.Drawer.Description,{ref:r,className:o("text-sm text-muted-foreground",e),...t}));lm.displayName=vaul.Drawer.Description.displayName;var dm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{className:"relative w-full overflow-auto",children:jsxRuntime.jsx("table",{ref:r,className:o("w-full caption-bottom text-sm",e),...t})}));dm.displayName="Table";var cm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("thead",{ref:r,className:o("[&_tr]:border-b",e),...t}));cm.displayName="TableHeader";var mm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("tbody",{ref:r,className:o("[&_tr:last-child]:border-0",e),...t}));mm.displayName="TableBody";var um=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("tfoot",{ref:r,className:o("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));um.displayName="TableFooter";var pm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("tr",{ref:r,className:o("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));pm.displayName="TableRow";var fm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("th",{ref:r,className:o("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));fm.displayName="TableHead";var gm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("td",{ref:r,className:o("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));gm.displayName="TableCell";var bm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("caption",{ref:r,className:o("mt-4 text-sm text-muted-foreground",e),...t}));bm.displayName="TableCaption";var hm=classVarianceAuthority.cva("animate-spin text-muted-foreground",{variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"}},defaultVariants:{size:"md"}}),xm=K__namespace.forwardRef(({className:e,size:t,...r},a)=>jsxRuntime.jsx(lucideReact.Loader2,{ref:a,className:o(hm({size:t,className:e})),...r}));xm.displayName="Spinner";var Ps=["January","February","March","April","May","June","July","August","September","October","November","December"];function U0({currentMonth:e,onMonthChange:t,startYear:r,endYear:a}){let[n,i]=K__namespace.useState(false),[s,l]=K__namespace.useState(false),d=K__namespace.useRef(null),m=K__namespace.useRef(null),u=dateFns.getMonth(e),c=dateFns.getYear(e);K__namespace.useEffect(()=>{function y(g){d.current&&!d.current.contains(g.target)&&i(false),m.current&&!m.current.contains(g.target)&&l(false);}return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[]);let f=y=>{let g=dateFns.setMonth(e,y);t(g),i(false);},p=y=>{let g=dateFns.setYear(e,y);t(g),l(false);},h=K__namespace.useMemo(()=>{let y=[];for(let g=a;g>=r;g--)y.push(g);return y},[r,a]);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("div",{ref:d,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>{i(!n),l(false);},className:o("inline-flex items-center justify-between gap-2 px-3 py-1.5 rounded-md","text-sm font-medium w-[120px]","border border-border bg-background","hover:bg-muted transition-colors cursor-pointer",n&&"ring-2 ring-primary ring-offset-2 ring-offset-background"),children:[jsxRuntime.jsx("span",{children:Ps[u]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:o("h-4 w-4 text-muted-foreground transition-transform",n&&"rotate-180")})]}),n&&jsxRuntime.jsx("div",{className:"absolute top-full left-0 mt-1 z-50 min-w-[140px] rounded-md border border-border bg-background shadow-lg",children:jsxRuntime.jsx(ze,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"p-1",children:Ps.map((y,g)=>jsxRuntime.jsx("button",{type:"button",onClick:()=>f(g),className:o("w-full text-left px-3 py-2 text-sm rounded-md","hover:bg-muted transition-colors cursor-pointer",u===g&&"bg-primary/10 text-primary font-medium"),children:y},y))})})})]}),jsxRuntime.jsxs("div",{ref:m,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>{l(!s),i(false);},className:o("inline-flex items-center justify-between gap-2 px-3 py-1.5 rounded-md","text-sm font-medium w-[85px]","border border-border bg-background","hover:bg-muted transition-colors cursor-pointer",s&&"ring-2 ring-primary ring-offset-2 ring-offset-background"),children:[jsxRuntime.jsx("span",{children:c}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:o("h-4 w-4 text-muted-foreground transition-transform",s&&"rotate-180")})]}),s&&jsxRuntime.jsx("div",{className:"absolute top-full left-0 mt-1 z-50 min-w-[100px] rounded-md border border-border bg-background shadow-lg",children:jsxRuntime.jsx(ze,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"p-1",children:h.map(y=>jsxRuntime.jsx("button",{type:"button",onClick:()=>p(y),className:o("w-full text-left px-3 py-2 text-sm rounded-md","hover:bg-muted transition-colors cursor-pointer",c===y&&"bg-primary/10 text-primary font-medium"),children:y},y))})})})]})]})}function j0(e,t,r){return function({calendarMonth:n}){let{goToMonth:i,nextMonth:s,previousMonth:l}=reactDayPicker.useDayPicker();if(e)return jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2 h-10 mb-2",children:[jsxRuntime.jsx(U0,{currentMonth:n.date,onMonthChange:i,startYear:t,endYear:r}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&i(l),className:o("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Previous month",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{type:"button",disabled:!s,onClick:()=>s&&i(s),className:o("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Next month",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]});let d=Ps[n.date.getMonth()],m=n.date.getFullYear();return jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2 h-10 mb-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium w-[90px]",children:d}),jsxRuntime.jsx("span",{className:"text-sm font-medium w-[50px]",children:m})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&i(l),className:o("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Previous month",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{type:"button",disabled:!s,onClick:()=>s&&i(s),className:o("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Next month",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]})}}function Ga({className:e,classNames:t,showOutsideDays:r=true,showMonthAndYearPickers:a=false,startYear:n=1900,endYear:i=new Date().getFullYear()+50,components:s,...l}){let d=K__namespace.useMemo(()=>j0(a,n,i),[a,n,i]);return jsxRuntime.jsx(reactDayPicker.DayPicker,{showOutsideDays:r,className:o("p-4",e),classNames:{months:"flex flex-col sm:flex-row gap-4",month:"flex flex-col gap-2",month_caption:"sr-only",nav:"hidden",month_grid:"w-full border-collapse",weekdays:"flex",weekday:"text-muted-foreground w-10 font-normal text-xs text-center",week:"flex w-full mt-1",day:o("relative h-10 w-10 p-0 text-center text-sm","flex items-center justify-center","focus-within:relative focus-within:z-20","[&:has([aria-selected]:not(.outside-day))]:bg-accent","first:[&:has([aria-selected]:not(.outside-day))]:rounded-l-md","last:[&:has([aria-selected]:not(.outside-day))]:rounded-r-md"),day_button:o("size-10 p-0 font-normal rounded-md text-sm","inline-flex items-center justify-center","hover:bg-primary/10 hover:text-primary","focus:outline-none","transition-colors cursor-pointer"),range_start:"rounded-l-md",range_end:"rounded-r-md",selected:o("bg-primary text-primary-foreground rounded-md","hover:bg-primary/90 hover:!text-primary-foreground","focus:bg-primary focus:text-primary-foreground","[&.outside-day]:bg-transparent [&.outside-day]:text-muted-foreground/50"),today:"bg-accent text-accent-foreground rounded-md",outside:"outside-day text-muted-foreground/50",disabled:"text-muted-foreground/30 cursor-not-allowed",range_middle:"rounded-none",hidden:"invisible",...t},modifiersStyles:{range_middle:{backgroundColor:"var(--color-muted)",color:"var(--color-foreground)",borderRadius:0},outside:{backgroundColor:"transparent"}},components:{...s,MonthCaption:d},...l})}Ga.displayName="Calendar";var Nm=({className:e,...t})=>jsxRuntime.jsx("nav",{role:"navigation","aria-label":"pagination",className:o("mx-auto flex w-full justify-center",e),...t});Nm.displayName="Pagination";var Pm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("ul",{ref:r,className:o("flex flex-row items-center gap-1",e),...t}));Pm.displayName="PaginationContent";var Cm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("li",{ref:r,className:o("",e),...t}));Cm.displayName="PaginationItem";var Hn=({className:e,isActive:t,size:r="icon",...a})=>jsxRuntime.jsx("a",{"aria-current":t?"page":void 0,className:o(tr({variant:t?"bordered":"ghost",size:r}),e),...a});Hn.displayName="PaginationLink";var Sm=({className:e,...t})=>jsxRuntime.jsxs(Hn,{"aria-label":"Go to previous page",size:"md",className:o("gap-1 pl-2.5",e),...t,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{children:"Previous"})]});Sm.displayName="PaginationPrevious";var Mm=({className:e,...t})=>jsxRuntime.jsxs(Hn,{"aria-label":"Go to next page",size:"md",className:o("gap-1 pr-2.5",e),...t,children:[jsxRuntime.jsx("span",{children:"Next"}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})]});Mm.displayName="PaginationNext";var Tm=({className:e,...t})=>jsxRuntime.jsxs("span",{"aria-hidden":true,className:o("flex h-9 w-9 items-center justify-center",e),...t,children:[jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"More pages"})]});Tm.displayName="PaginationEllipsis";var Ms=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command,{ref:r,className:o("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Ms.displayName=cmdk.Command.displayName;var Q0=({children:e,...t})=>jsxRuntime.jsx(ts,{...t,children:jsxRuntime.jsx(bn,{className:"overflow-hidden p-0 shadow-lg",children:jsxRuntime.jsx(Ms,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),km=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[jsxRuntime.jsx(lucideReact.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),jsxRuntime.jsx(cmdk.Command.Input,{ref:r,className:o("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));km.displayName=cmdk.Command.Input.displayName;var Dm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.List,{ref:r,className:o("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Dm.displayName=cmdk.Command.List.displayName;var Vm=K__namespace.forwardRef((e,t)=>jsxRuntime.jsx(cmdk.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Vm.displayName=cmdk.Command.Empty.displayName;var Lm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.Group,{ref:r,className:o("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Lm.displayName=cmdk.Command.Group.displayName;var Im=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.Separator,{ref:r,className:o("-mx-1 h-px bg-border",e),...t}));Im.displayName=cmdk.Command.Separator.displayName;var Em=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.Item,{ref:r,className:o("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));Em.displayName=cmdk.Command.Item.displayName;var Hm=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Hm.displayName="CommandShortcut";var Am=K__namespace.forwardRef(({className:e,showToggle:t=true,disabled:r,onFocus:a,onBlur:n,style:i,...s},l)=>{let[d,m]=K__namespace.useState(false),[u,c]=K__namespace.useState(false);return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{type:d?"text":"password",className:o("flex h-10 w-full rounded-md 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",t&&"pr-10",e),ref:l,disabled:r,style:{...i,borderColor:u?"var(--color-foreground)":void 0},onFocus:f=>{c(true),a?.(f);},onBlur:f=>{c(false),n?.(f);},...s}),t&&jsxRuntime.jsx("button",{type:"button",className:"absolute right-0 top-0 h-10 w-10 px-3 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>m(!d),disabled:r,tabIndex:-1,"aria-label":d?"Hide password":"Show password",children:d?jsxRuntime.jsx(lucideReact.EyeOff,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Eye,{className:"h-4 w-4"})})]})});Am.displayName="PasswordInput";var zm=K__namespace.forwardRef(({className:e,showButtons:t=true,step:r=1,min:a,max:n,value:i,defaultValue:s,onChange:l,disabled:d,...m},u)=>{let[c,f]=K__namespace.useState(s),[p,h]=K__namespace.useState(false),y=i!==void 0,g=y?i:c,x=S=>{S!==void 0&&(a!==void 0&&S<a&&(S=a),n!==void 0&&S>n&&(S=n)),y||f(S),l?.(S);},R=()=>{x((g??0)+r);},b=()=>{x((g??0)-r);},v=S=>{let T=S.target.value;if(T==="")x(void 0);else {let N=parseFloat(T);isNaN(N)||x(N);}},C=S=>{S.key==="ArrowUp"?(S.preventDefault(),R()):S.key==="ArrowDown"&&(S.preventDefault(),b());},w=a===void 0||(g??0)>a,k=n===void 0||(g??0)<n;return t?jsxRuntime.jsxs("div",{className:o("relative flex items-center rounded-md border transition-colors",d&&"opacity-50",e),style:{borderColor:p?"var(--color-foreground)":"var(--color-input)"},children:[jsxRuntime.jsx("button",{type:"button",className:"h-10 w-10 shrink-0 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:b,disabled:d||!w,tabIndex:-1,"aria-label":"Decrease value",children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}),jsxRuntime.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",className:"min-w-0 flex-1 h-10 bg-background text-sm text-center focus:outline-none disabled:cursor-not-allowed",ref:u,value:g??"",onChange:v,onKeyDown:C,disabled:d,onFocus:()=>h(true),onBlur:()=>h(false),...m}),jsxRuntime.jsx("button",{type:"button",className:"h-10 w-10 shrink-0 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:R,disabled:d||!k,tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"})})]}):jsxRuntime.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",className:o("flex h-10 w-full bg-background px-3 py-2 text-sm text-center border border-input rounded-md placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",e),ref:u,value:g??"",onChange:v,onKeyDown:C,disabled:d,style:{borderColor:p?"var(--color-foreground)":void 0},onFocus:()=>h(true),onBlur:()=>h(false),...m})});zm.displayName="NumberInput";var uR=classVarianceAuthority.cva("flex h-10 w-full cursor-pointer items-center justify-between border border-zinc-300 dark:border-zinc-700 bg-background px-3 py-2 text-sm outline-none 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"}}),Fm=K__namespace.forwardRef(({options:e,value:t,defaultValue:r="",onValueChange:a,placeholder:n="Select...",searchable:i=false,searchPlaceholder:s="Search...",emptyText:l="No results found.",disabled:d=false,clearable:m=false,radius:u,className:c,...f},p)=>{let[h,y]=K__namespace.useState(false),[g,x]=K__namespace.useState(""),[R,b]=K__namespace.useState(r),[v,C]=K__namespace.useState({top:0,left:0,width:0}),w=K__namespace.useRef(null),k=K__namespace.useRef(null),S=K__namespace.useRef(null),T=K__namespace.useRef(null),N=t!==void 0,P=N?t:R,M=I=>{N||b(I),a?.(I);},D=I=>{M(m&&P===I?"":I),y(false),x("");},E=I=>{I.stopPropagation(),M("");},L=e.find(I=>I.value===P),V=i?e.filter(I=>I.label.toLowerCase().includes(g.toLowerCase())):e;return K__namespace.useEffect(()=>{if(h&&k.current){let I=k.current.getBoundingClientRect();C({top:I.bottom+4,left:I.left,width:I.width}),i&&setTimeout(()=>T.current?.focus(),0);}},[h,i]),K__namespace.useEffect(()=>{let I=A=>{let G=A.target,H=w.current&&!w.current.contains(G),j=S.current&&!S.current.contains(G);H&&j&&(y(false),x(""));};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[]),jsxRuntime.jsxs("div",{ref:w,className:o("relative",c),...f,children:[jsxRuntime.jsxs("div",{ref:I=>{k.current=I,typeof p=="function"?p(I):p&&(p.current=I);},role:"combobox","aria-expanded":h,"aria-haspopup":"listbox","aria-disabled":d,onClick:()=>!d&&y(!h),className:o(uR({radius:u})),children:[jsxRuntime.jsx("span",{className:o(!L&&"text-muted-foreground"),children:L?L.label:n}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[m&&L&&jsxRuntime.jsx("span",{role:"button",tabIndex:0,onClick:E,onKeyDown:I=>{(I.key==="Enter"||I.key===" ")&&E(I);},className:"rounded-full p-0.5 hover:bg-muted cursor-pointer",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4 opacity-50"})}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:o("h-4 w-4 opacity-50 transition-transform",h&&"rotate-180")})]})]}),h&&!d&&typeof document<"u"&&zd__namespace.createPortal(jsxRuntime.jsxs("div",{ref:S,className:"fixed z-[9999] overflow-hidden rounded-md border border-zinc-300 dark:border-zinc-700 bg-background shadow-lg",style:{top:v.top,left:v.left,width:v.width},children:[i&&jsxRuntime.jsxs("div",{className:"flex items-center border-b border-zinc-300 dark:border-zinc-700 px-3",children:[jsxRuntime.jsx(lucideReact.Search,{className:"h-4 w-4 opacity-50 mr-2"}),jsxRuntime.jsx("input",{ref:T,type:"text",value:g,onChange:I=>x(I.target.value),placeholder:s,className:"flex h-10 w-full bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground"})]}),jsxRuntime.jsx("div",{className:"max-h-60 overflow-y-auto p-1",children:V.length===0?jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:l}):V.map(I=>{let A=P===I.value;return jsxRuntime.jsxs("div",{role:"option","aria-selected":A,onClick:()=>!I.disabled&&D(I.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",I.disabled&&"pointer-events-none opacity-50"),children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:A&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),I.label]},I.value)})})]}),document.body)]})});Fm.displayName="Combobox";var Gm=K__namespace.forwardRef(({value:e,defaultValue:t,onValueChange:r,placeholder:a="Pick a date",dateFormat:n="PPP",disabled:i=false,minDate:s,maxDate:l,className:d},m)=>{let[u,c]=K__namespace.useState(false),[f,p]=K__namespace.useState(t),h=e!==void 0,y=h?e:f,g=x=>{h||p(x),r?.(x),c(false);};return jsxRuntime.jsxs(Ee,{open:u,onOpenChange:c,children:[jsxRuntime.jsx($e,{asChild:true,children:jsxRuntime.jsxs($,{ref:m,variant:"bordered",disabled:i,className:o("w-full justify-start text-left font-normal",!y&&"text-muted-foreground",d),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),y?dateFns.format(y,n):a]})}),jsxRuntime.jsx(Me,{className:"w-auto p-0",align:"start",children:jsxRuntime.jsx(Ga,{mode:"single",selected:y,onSelect:g,disabled:x=>!!(s&&x<s||l&&x>l),initialFocus:true})})]})});Gm.displayName="DatePicker";var Km=classVarianceAuthority.cva("flex -space-x-2",{variants:{size:{sm:"-space-x-2",md:"-space-x-2.5",lg:"-space-x-3"}},defaultVariants:{size:"md"}}),Wm=classVarianceAuthority.cva("border-2 border-background ring-0 cursor-pointer transition-transform duration-200 hover:-translate-y-1",{variants:{size:{sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{size:"md"}}),Ym=K__namespace.forwardRef(({className:e,items:t,max:r=5,size:a,showTooltips:n=false,...i},s)=>{let l=t.slice(0,r),d=t.length-r,m=(c,f)=>{let p=jsxRuntime.jsxs(aa,{className:o(Wm({size:a})),children:[c.src&&jsxRuntime.jsx(Aa,{src:c.src,alt:c.alt||""}),jsxRuntime.jsx(oa,{className:"text-xs",children:c.fallback||c.alt?.charAt(0)?.toUpperCase()||"?"})]},f);return n&&c.alt?jsxRuntime.jsxs(ia,{children:[jsxRuntime.jsx(sa,{asChild:true,children:p}),jsxRuntime.jsx(Lr,{className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",children:c.alt})]},f):p},u=jsxRuntime.jsxs("div",{ref:s,className:o(Km({size:a,className:e})),...i,children:[l.map((c,f)=>m(c,f)),d>0&&jsxRuntime.jsx(aa,{className:o(Wm({size:a})),children:jsxRuntime.jsxs(oa,{className:"bg-muted text-muted-foreground",children:["+",d]})})]});return n?jsxRuntime.jsx(na,{delayDuration:300,children:u}):u});Ym.displayName="AvatarGroup";var Um=classVarianceAuthority.cva("flex gap-0.5",{variants:{size:{sm:"[&_svg]:h-4 [&_svg]:w-4",md:"[&_svg]:h-5 [&_svg]:w-5",lg:"[&_svg]:h-6 [&_svg]:w-6"}},defaultVariants:{size:"md"}}),jm=K__namespace.forwardRef(({className:e,value:t,defaultValue:r=0,onValueChange:a,max:n=5,size:i,icon:s="star",allowHalf:l=false,readOnly:d=false,disabled:m=false,filledColor:u,emptyColor:c,...f},p)=>{let[h,y]=K__namespace.useState(r),[g,x]=K__namespace.useState(null),R=t!==void 0,b=R?t:h,v=g!==null?g:b,C=D=>{d||m||(R||y(D),a?.(D));},w=(D,E=false)=>{let L=l&&E?D+.5:D+1;C(L);},k=(D,E)=>{if(d||m)return;let L=D.currentTarget.getBoundingClientRect(),V=l&&D.clientX<L.left+L.width/2;x(V?E+.5:E+1);},S=()=>{x(null);},T=s==="heart"?lucideReact.Heart:lucideReact.Star,N=D=>v>=D+1?"full":v>=D+.5?"half":"empty",P=u?{color:u,fill:u}:{},M=c?{color:c}:{};return jsxRuntime.jsx("div",{ref:p,className:o(Um({size:i,className:e}),m&&"opacity-50 cursor-not-allowed"),onMouseLeave:S,role:"radiogroup","aria-label":"Rating",...f,children:Array.from({length:n},(D,E)=>{let L=N(E);return jsxRuntime.jsxs("button",{type:"button",className:o("relative focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-sm",!d&&!m&&"cursor-pointer hover:scale-110 transition-transform"),onClick:V=>{let I=V.currentTarget.getBoundingClientRect(),A=l&&V.clientX<I.left+I.width/2;w(E,A);},onMouseMove:V=>k(V,E),disabled:m||d,"aria-label":`Rate ${E+1} out of ${n}`,role:"radio","aria-checked":b===E+1,children:[jsxRuntime.jsx(T,{className:o("text-muted-foreground/30",L!=="empty"&&"absolute inset-0"),style:L==="empty"?M:void 0}),L!=="empty"&&jsxRuntime.jsx(T,{className:o("text-yellow-500 fill-yellow-500",s==="heart"&&"text-red-500 fill-red-500",L==="half"&&"clip-path-half"),style:{...P,clipPath:L==="half"?"inset(0 50% 0 0)":void 0}})]},E)})})});jm.displayName="Rating";var RR="16rem",wR="18rem",NR="3rem",PR="b",Ds=K__namespace.createContext(null);function Fn(){let e=K__namespace.useContext(Ds);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Vs(){return K__namespace.useContext(Ds)}var qm=K__namespace.forwardRef(({defaultOpen:e=true,open:t,onOpenChange:r,className:a,style:n,children:i,...s},l)=>{let[d,m]=K__namespace.useState(false),[u,c]=K__namespace.useState(false),[f,p]=K__namespace.useState(e),h=t??f,y=K__namespace.useCallback(b=>{let v=typeof b=="function"?b(h):b;r?r(v):p(v);},[r,h]);K__namespace.useEffect(()=>{let b=()=>{m(window.innerWidth<768);};return b(),window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)},[]);let g=K__namespace.useCallback(()=>d?c(b=>!b):y(b=>!b),[d,y,c]);K__namespace.useEffect(()=>{let b=v=>{v.key===PR&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),g());};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[g]);let x=h?"expanded":"collapsed",R=K__namespace.useMemo(()=>({state:x,open:h,setOpen:y,isMobile:d,openMobile:u,setOpenMobile:c,toggleSidebar:g}),[x,h,y,d,u,c,g]);return jsxRuntime.jsx(Ds.Provider,{value:R,children:jsxRuntime.jsx(na,{delayDuration:0,children:jsxRuntime.jsx("div",{ref:l,style:{"--sidebar-width":RR,"--sidebar-width-icon":NR,...n},className:o("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",a),...s,children:i})})})});qm.displayName="SidebarProvider";var Zm=K__namespace.forwardRef(({side:e="left",variant:t="sidebar",collapsible:r="offcanvas",embedded:a=false,resizable:n=false,minWidth:i=200,maxWidth:s=480,defaultWidth:l=256,onWidthChange:d,className:m,children:u,...c},f)=>{let[p,h]=K__namespace.useState(l),[y,g]=K__namespace.useState(false),x=K__namespace.useRef(null),R=K__namespace.useCallback(k=>{k.preventDefault(),g(true);},[]);if(K__namespace.useEffect(()=>{if(!y)return;let k=T=>{if(!x.current)return;let N=x.current.getBoundingClientRect(),P;e==="left"?P=T.clientX-N.left:P=N.right-T.clientX,P=Math.max(i,Math.min(s,P)),h(P),d?.(P);},S=()=>{g(false);};return document.addEventListener("mousemove",k),document.addEventListener("mouseup",S),()=>{document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",S);}},[y,e,i,s,d]),r==="none"){if(n){let k={width:`${p}px`,minWidth:`${i}px`,maxWidth:`${s}px`};return jsxRuntime.jsxs("div",{ref:S=>{typeof f=="function"?f(S):f&&(f.current=S),x.current=S;},className:o("relative text-sidebar-foreground h-full min-h-0",y&&"select-none"),"data-sidebar":"sidebar-wrapper","data-resizing":y,children:[jsxRuntime.jsx("div",{className:o("flex h-full min-h-0 flex-col bg-sidebar overflow-hidden",!y&&"transition-all duration-200 ease-in-out",e==="left"&&"border-r-0",e==="right"&&"border-l-0",m),style:k,...c,children:u}),jsxRuntime.jsx("div",{onMouseDown:R,className:o("absolute top-0 bottom-0 z-20 w-1 cursor-ew-resize",e==="left"?"right-0":"left-0"),"data-sidebar":"resize-handle",children:jsxRuntime.jsx("div",{className:o("absolute top-0 bottom-0 w-px transition-colors",e==="left"?"right-0":"left-0","bg-sidebar-border")})})]})}return jsxRuntime.jsx("div",{ref:f,className:o("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",m),style:{"--sidebar-width":"16rem"},...c,children:u})}let{isMobile:b,state:v,openMobile:C,setOpenMobile:w}=Fn();if(b&&!a)return jsxRuntime.jsx(ko,{open:C,onOpenChange:w,children:jsxRuntime.jsx(za,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":wR},side:e,children:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:u})})});if(a){let k=v==="collapsed",S=r==="offcanvas",T=r==="icon",N=n&&!k&&!T?{width:`${p}px`,minWidth:`${i}px`,maxWidth:`${s}px`}:void 0;return jsxRuntime.jsxs("div",{ref:P=>{typeof f=="function"?f(P):f&&(f.current=P),x.current=P;},className:o("group peer text-sidebar-foreground relative",y&&"select-none"),"data-state":v,"data-collapsible":k?r:"","data-variant":t,"data-side":e,"data-embedded":"true","data-resizing":y,children:[jsxRuntime.jsx("div",{className:o("flex h-full flex-col overflow-hidden",!y&&"transition-[width,opacity] duration-200 ease-out",!n&&(S?k?"w-0 opacity-0":"w-[--sidebar-width] opacity-100":T&&k?"w-[--sidebar-width-icon]":"w-[--sidebar-width]"),n&&S&&k&&"w-0 opacity-0",n&&T&&k&&"w-[--sidebar-width-icon]",m),style:N,...c,children:jsxRuntime.jsx("div",{"data-sidebar":"sidebar",className:o("flex h-full w-full flex-col bg-sidebar transition-opacity duration-200",t==="floating"&&"overflow-hidden rounded-lg border border-sidebar-border shadow-sm",t==="inset"&&"overflow-hidden rounded-lg border border-sidebar-border",t==="sidebar"&&e==="left"&&!n&&"border-r",t==="sidebar"&&e==="right"&&!n&&"border-l"),children:u})}),n&&!k&&jsxRuntime.jsx("div",{onMouseDown:R,className:o("absolute top-0 bottom-0 z-20 w-1 cursor-ew-resize",e==="left"?"right-0":"left-0"),"data-sidebar":"resize-handle",children:jsxRuntime.jsx("div",{className:o("absolute top-0 bottom-0 w-px transition-colors",e==="left"?"right-0":"left-0","bg-sidebar-border")})})]})}return jsxRuntime.jsxs("div",{ref:f,className:"group peer hidden md:block text-sidebar-foreground","data-state":v,"data-collapsible":v==="collapsed"?r:"","data-variant":t,"data-side":e,children:[jsxRuntime.jsx("div",{className:o("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),jsxRuntime.jsx("div",{className:o("duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",m),...c,children:jsxRuntime.jsx("div",{"data-sidebar":"sidebar",className:o("flex h-full w-full flex-col bg-sidebar",t==="floating"&&"overflow-hidden rounded-lg border border-sidebar-border shadow-sm",t==="inset"&&"overflow-hidden rounded-lg border border-sidebar-border"),children:u})})]})});Zm.displayName="Sidebar";var Jm=K__namespace.forwardRef(({className:e,onClick:t,...r},a)=>{let{toggleSidebar:n}=Fn();return jsxRuntime.jsxs("button",{ref:a,type:"button","data-sidebar":"trigger",className:o("flex items-center justify-center h-9 w-9 rounded-lg bg-transparent hover:bg-zinc-100 dark:hover:bg-zinc-800 transition-colors cursor-pointer",e),onClick:i=>{t?.(i),n();},...r,children:[jsxRuntime.jsx(lucideReact.PanelLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Jm.displayName="SidebarTrigger";var Qm=K__namespace.forwardRef(({className:e,onClick:t,showLabel:r=true,...a},n)=>{let i=Vs();if(!i)return null;let{toggleSidebar:s,state:l}=i,d=l==="collapsed";return jsxRuntime.jsxs("button",{ref:n,type:"button","data-sidebar":"toggle","data-state":l,className:o("flex items-center gap-2 w-full px-2 py-2 rounded-md text-sm text-sidebar-foreground/70","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","transition-colors cursor-pointer","group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0",e),onClick:m=>{t?.(m),s();},...a,children:[d?jsxRuntime.jsx(lucideReact.PanelLeftOpen,{className:"h-4 w-4 shrink-0"}):jsxRuntime.jsx(lucideReact.PanelLeftClose,{className:"h-4 w-4 shrink-0"}),r&&jsxRuntime.jsx("span",{className:"group-data-[collapsible=icon]:hidden truncate",children:d?"Expand":"Collapse"})]})});Qm.displayName="SidebarToggle";var eu=K__namespace.forwardRef(({className:e,onClick:t,expandedLabel:r="Collapse",collapsedLabel:a="Expand",...n},i)=>{let s=Vs();if(!s)return null;let{toggleSidebar:l,state:d}=s,m=d==="collapsed";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("button",{ref:i,type:"button","data-sidebar":"toggle","data-state":d,className:o("flex items-center gap-2 w-full px-2 py-2 rounded-md text-sm text-sidebar-foreground/70","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","transition-colors cursor-pointer","group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:hidden",e),onClick:u=>{t?.(u),l();},...n,children:[m?jsxRuntime.jsx(lucideReact.PanelLeftOpen,{className:"h-4 w-4 shrink-0"}):jsxRuntime.jsx(lucideReact.PanelLeftClose,{className:"h-4 w-4 shrink-0"}),jsxRuntime.jsx("span",{className:"group-data-[collapsible=icon]:hidden truncate",children:m?a:r})]}),jsxRuntime.jsxs("button",{type:"button","data-sidebar":"floating-toggle","data-state":d,className:o("fixed left-3 bottom-4 z-50 flex items-center justify-center h-10 w-10 rounded-lg","bg-sidebar border border-sidebar-border shadow-md","text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","transition-all duration-200 cursor-pointer","opacity-0 pointer-events-none scale-90","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:opacity-100","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:pointer-events-auto","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:scale-100"),onClick:u=>{t?.(u),l();},children:[jsxRuntime.jsx(lucideReact.PanelLeftOpen,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:a})]})]})});eu.displayName="SidebarPersistentToggle";var tu=K__namespace.forwardRef(({className:e,...t},r)=>{let{toggleSidebar:a}=Fn();return jsxRuntime.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:a,title:"Toggle Sidebar",className:o("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});tu.displayName="SidebarRail";var ru=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("main",{ref:r,className:o("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));ru.displayName="SidebarInset";var au=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-sidebar":"header",className:o("flex flex-col gap-2 p-2",e),...t}));au.displayName="SidebarHeader";var ou=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-sidebar":"footer",className:o("flex flex-col gap-2 p-2",e),...t}));ou.displayName="SidebarFooter";var nu=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-sidebar":"separator",className:o("mx-2 h-px w-auto bg-sidebar-border",e),...t}));nu.displayName="SidebarSeparator";var iu=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-sidebar":"content",className:o("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));iu.displayName="SidebarContent";var su=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-sidebar":"group",className:o("relative flex w-full min-w-0 flex-col p-2",e),...t}));su.displayName="SidebarGroup";var lu=K__namespace.forwardRef(({className:e,asChild:t=false,...r},a)=>jsxRuntime.jsx(t?reactSlot.Slot:"div",{ref:a,"data-sidebar":"group-label",className:o("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r}));lu.displayName="SidebarGroupLabel";var du=K__namespace.forwardRef(({className:e,asChild:t=false,...r},a)=>jsxRuntime.jsx(t?reactSlot.Slot:"button",{ref:a,"data-sidebar":"group-action",className:o("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...r}));du.displayName="SidebarGroupAction";var cu=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-sidebar":"group-content",className:o("w-full text-sm",e),...t}));cu.displayName="SidebarGroupContent";var mu=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("ul",{ref:r,"data-sidebar":"menu",className:o("flex w-full min-w-0 flex-col gap-1",e),...t}));mu.displayName="SidebarMenu";var uu=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("li",{ref:r,"data-sidebar":"menu-item",className:o("group/menu-item relative",e),...t}));uu.displayName="SidebarMenuItem";var pu=classVarianceAuthority.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{solid:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",ghost:"hover:bg-sidebar-accent/50 hover:text-sidebar-accent-foreground",soft:"hover:bg-primary/10 hover:text-primary",surface:"bg-sidebar-accent/30 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"},size:{sm:"h-7 text-xs",md:"h-8 text-sm",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"solid",size:"md"}}),fu=K__namespace.forwardRef(({asChild:e=false,isActive:t=false,variant:r="solid",size:a="md",tooltip:n,className:i,...s},l)=>{let d=e?reactSlot.Slot:"button",m=Vs(),u=m?.isMobile??false,c=m?.state??"expanded",f=jsxRuntime.jsx(d,{ref:l,"data-sidebar":"menu-button","data-size":a,"data-active":t,className:o(pu({variant:r,size:a}),i),...s});return n?(typeof n=="string"&&(n={children:n}),jsxRuntime.jsxs(ia,{children:[jsxRuntime.jsx(sa,{asChild:true,children:f}),jsxRuntime.jsx(Lr,{side:"right",align:"center",hidden:c!=="collapsed"||u,...n})]})):f});fu.displayName="SidebarMenuButton";var gu=K__namespace.forwardRef(({className:e,asChild:t=false,showOnHover:r=false,...a},n)=>jsxRuntime.jsx(t?reactSlot.Slot:"button",{ref:n,"data-sidebar":"menu-action",className:o("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...a}));gu.displayName="SidebarMenuAction";var bu=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:o("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));bu.displayName="SidebarMenuBadge";var vu=K__namespace.forwardRef(({className:e,showIcon:t=false,...r},a)=>{let n=K__namespace.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxRuntime.jsxs("div",{ref:a,"data-sidebar":"menu-skeleton",className:o("rounded-md h-8 flex gap-2 px-2 items-center",e),...r,children:[t&&jsxRuntime.jsx("div",{className:"size-4 rounded-md bg-sidebar-accent animate-pulse"}),jsxRuntime.jsx("div",{className:"h-4 flex-1 max-w-[--skeleton-width] bg-sidebar-accent animate-pulse rounded-md",style:{"--skeleton-width":n}})]})});vu.displayName="SidebarMenuSkeleton";var hu=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:o("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));hu.displayName="SidebarMenuSub";var xu=K__namespace.forwardRef(({...e},t)=>jsxRuntime.jsx("li",{ref:t,...e}));xu.displayName="SidebarMenuSubItem";var yu=K__namespace.forwardRef(({asChild:e=false,size:t="md",isActive:r,className:a,...n},i)=>jsxRuntime.jsx(e?reactSlot.Slot:"a",{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":r,className:o("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",a),...n}));yu.displayName="SidebarMenuSubButton";var Nu=classVarianceAuthority.cva("inline-flex items-center justify-center gap-1.5 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"border-transparent text-primary-foreground",outline:"border bg-transparent",ghost:"border-transparent bg-transparent",soft:"border-transparent",surface:"border-transparent bg-muted text-muted-foreground"},color:{primary:"",secondary:"",success:"",warning:"",danger:"",info:""},size:{sm:"h-6 px-2 text-xs",md:"h-7 px-2.5 text-sm",lg:"h-8 px-3 text-sm"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},clickable:{true:"cursor-pointer",false:""}},compoundVariants:[{variant:"solid",color:"primary",className:"bg-primary hover:bg-primary/90"},{variant:"solid",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/80"},{variant:"solid",color:"success",className:"bg-success hover:bg-success/90"},{variant:"solid",color:"warning",className:"bg-warning text-warning-foreground hover:bg-warning/90"},{variant:"solid",color:"danger",className:"bg-danger hover:bg-danger/90"},{variant:"solid",color:"info",className:"bg-info hover:bg-info/90"},{variant:"outline",color:"primary",className:"border-primary text-primary hover:bg-primary/10"},{variant:"outline",color:"secondary",className:"border-secondary text-secondary-foreground hover:bg-secondary/10"},{variant:"outline",color:"success",className:"border-success text-success hover:bg-success/10"},{variant:"outline",color:"warning",className:"border-warning text-warning hover:bg-warning/10"},{variant:"outline",color:"danger",className:"border-danger text-danger hover:bg-danger/10"},{variant:"outline",color:"info",className:"border-info text-info hover:bg-info/10"},{variant:"ghost",color:"primary",className:"text-primary hover:bg-primary/10"},{variant:"ghost",color:"secondary",className:"text-secondary-foreground hover:bg-secondary"},{variant:"ghost",color:"success",className:"text-success hover:bg-success/10"},{variant:"ghost",color:"warning",className:"text-warning hover:bg-warning/10"},{variant:"ghost",color:"danger",className:"text-danger hover:bg-danger/10"},{variant:"ghost",color:"info",className:"text-info hover:bg-info/10"},{variant:"soft",color:"primary",className:"bg-primary/15 text-primary hover:bg-primary/20"},{variant:"soft",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/80"},{variant:"soft",color:"success",className:"bg-success/15 text-success hover:bg-success/20"},{variant:"soft",color:"warning",className:"bg-warning/15 text-warning hover:bg-warning/20"},{variant:"soft",color:"danger",className:"bg-danger/15 text-danger hover:bg-danger/20"},{variant:"soft",color:"info",className:"bg-info/15 text-info hover:bg-info/20"}],defaultVariants:{variant:"solid",color:"primary",size:"md",radius:"full",clickable:false}}),MR=classVarianceAuthority.cva("ml-1 rounded-full p-0.5 transition-colors hover:bg-black/10 dark:hover:bg-white/10",{variants:{size:{sm:"[&_svg]:size-3",md:"[&_svg]:size-3.5",lg:"[&_svg]:size-4"}},defaultVariants:{size:"md"}}),Pu=K__namespace.forwardRef(({className:e,variant:t,color:r,size:a,radius:n,clickable:i,startContent:s,endContent:l,closable:d,onClose:m,disabled:u,avatar:c,children:f,onClick:p,...h},y)=>{let g=i||!!p,x=R=>{R.stopPropagation(),m?.();};return jsxRuntime.jsxs("div",{ref:y,role:g?"button":void 0,tabIndex:g&&!u?0:void 0,"aria-disabled":u,onClick:u?void 0:p,onKeyDown:g&&!u?R=>{(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),p?.(R));}:void 0,className:o(Nu({variant:t,color:r,size:a,radius:n,clickable:g}),u&&"opacity-50 cursor-not-allowed",e),...h,children:[c&&jsxRuntime.jsx("span",{className:"-ml-1 [&>*]:size-5 [&>*]:rounded-full",children:c}),s&&jsxRuntime.jsx("span",{className:"shrink-0",children:s}),jsxRuntime.jsx("span",{className:"truncate",children:f}),l&&jsxRuntime.jsx("span",{className:"shrink-0",children:l}),d&&jsxRuntime.jsx("button",{type:"button","aria-label":"Remove",onClick:x,disabled:u,className:o(MR({size:a})),children:jsxRuntime.jsx(lucideReact.X,{})})]})});Pu.displayName="Chip";var Cu=K.createContext({direction:"horizontal"}),HR=({className:e,direction:t="horizontal",children:r,...a})=>jsxRuntime.jsx(Cu.Provider,{value:{direction:t},children:jsxRuntime.jsx(reactResizablePanels.Group,{orientation:t,className:o("flex h-full w-full data-[orientation=vertical]:flex-col",e),...a,children:r})}),AR=reactResizablePanels.Panel,zR=({withHandle:e,className:t,...r})=>{let{direction:a}=K.useContext(Cu),n=a==="vertical";return jsxRuntime.jsx(reactResizablePanels.Separator,{className:o("relative flex shrink-0 items-center justify-center bg-border outline-none",n?"h-px w-full after:absolute after:inset-x-0 after:top-1/2 after:h-1 after:-translate-y-1/2":"w-px after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2",t),...r,children:e&&jsxRuntime.jsx("div",{className:o("z-10 flex items-center justify-center rounded-sm border bg-border",n?"h-3 w-4 rotate-90":"h-4 w-3"),children:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-2.5 w-2.5"})})})};var Tu=classVarianceAuthority.cva("inline-flex items-center gap-1",{variants:{size:{sm:"[&>span]:h-1 [&>span]:w-1",md:"[&>span]:h-1.5 [&>span]:w-1.5",lg:"[&>span]:h-2 [&>span]:w-2",xl:"[&>span]:h-3 [&>span]:w-3"}},defaultVariants:{size:"md"}}),ku=K__namespace.forwardRef(({className:e,size:t,count:r=3,...a},n)=>jsxRuntime.jsx("span",{ref:n,role:"status","aria-label":"Loading",className:o(Tu({size:t,className:e})),...a,children:Array.from({length:r}).map((i,s)=>jsxRuntime.jsx("span",{className:"rounded-full bg-current animate-dots-bounce",style:{animationDelay:`${s*.16}s`}},s))}));ku.displayName="Dots";var Lu=classVarianceAuthority.cva("relative inline-flex items-center justify-center",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-14 w-14"},color:{default:"",success:"",warning:"",danger:""}},defaultVariants:{size:"md",color:"default"}}),OR={sm:{size:32,strokeWidth:3,fontSize:"text-[10px]"},md:{size:40,strokeWidth:4,fontSize:"text-xs"},lg:{size:56,strokeWidth:5,fontSize:"text-sm"}},Du={default:"#18181b",success:"#16a34a",warning:"#d97706",danger:"#dc2626"},Iu=K__namespace.forwardRef(({className:e,size:t="md",color:r="default",value:a,showValue:n=false,trackClassName:i,...s},l)=>{let d=a===void 0,m=Math.min(100,Math.max(0,a??0)),u=OR[t],c=(u.size-u.strokeWidth)/2,f=2*Math.PI*c,p=f-m/100*f,h=f*.3;return jsxRuntime.jsxs("div",{ref:l,className:o(Lu({size:t,color:r}),e),role:"progressbar","aria-valuenow":d?void 0:m,"aria-valuemin":0,"aria-valuemax":100,...s,children:[jsxRuntime.jsxs("svg",{width:u.size,height:u.size,viewBox:`0 0 ${u.size} ${u.size}`,fill:"none",style:d?{animation:"circular-spin 0.8s linear infinite"}:void 0,children:[jsxRuntime.jsx("style",{children:`
|
|
31
|
+
`,Sc=false,b0=()=>{if(Sc||typeof document>"u")return;let e=document.createElement("style");e.textContent=g0,document.head.appendChild(e),Sc=true;},kc=K__namespace.forwardRef(({className:e,title:t,children:r,...a},n)=>(K__namespace.useEffect(()=>{b0();},[]),jsxRuntime.jsxs(ca__namespace.Root,{ref:n,className:o("space-y-2",e),...a,children:[t&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between space-x-4 px-4",children:[jsxRuntime.jsx("h4",{className:"text-sm font-semibold",children:t}),jsxRuntime.jsx(ca__namespace.CollapsibleTrigger,{className:"flex items-center justify-center h-9 w-9 rounded-lg bg-transparent hover:bg-zinc-100 dark:hover:bg-zinc-800 transition-colors cursor-pointer",children:jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4"})})]}),r]})));kc.displayName="Collapsible";var Dc=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx(ca__namespace.CollapsibleTrigger,{ref:a,className:o("flex items-center justify-center h-9 w-9 rounded-lg bg-transparent hover:bg-zinc-100 dark:hover:bg-zinc-800 transition-colors cursor-pointer",e),...r,children:t??jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4"})}));Dc.displayName="CollapsibleTrigger";var Vc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ca__namespace.CollapsibleContent,{ref:r,className:o("collapsible-content overflow-hidden",e),...t}));Vc.displayName="CollapsibleContent";var kn=K__namespace.forwardRef(({className:e,value:t,...r},a)=>jsxRuntime.jsx(To__namespace.Root,{ref:a,className:o("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...r,children:jsxRuntime.jsx(To__namespace.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));kn.displayName=To__namespace.Root.displayName;var v0=ma__namespace.Root,h0=ma__namespace.Trigger,Hc=K__namespace.forwardRef(({className:e,align:t="center",sideOffset:r=4,...a},n)=>jsxRuntime.jsx(ma__namespace.Content,{ref:n,align:t,sideOffset:r,className:o("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a}));Hc.displayName=ma__namespace.Content.displayName;var Ac=K__namespace.createContext({size:"md",variant:"default",radius:"md"}),Vn=()=>K__namespace.useContext(Ac);classVarianceAuthority.cva("",{variants:{size:{sm:"",md:"",lg:""},variant:{default:"",bordered:"",filled:""},radius:{none:"",sm:"",md:"",lg:"",full:""}},defaultVariants:{size:"md",variant:"default",radius:"md"}});var N0=classVarianceAuthority.cva("flex flex-wrap items-center break-words",{variants:{size:{sm:"gap-1 text-xs",md:"gap-1.5 text-sm sm:gap-2",lg:"gap-2 text-base sm:gap-3"},variant:{default:"text-muted-foreground",bordered:"text-muted-foreground px-3 py-1.5 border",filled:"text-muted-foreground bg-muted px-3 py-1.5"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{size:"md",variant:"default",radius:"md"}}),P0=classVarianceAuthority.cva("",{variants:{size:{sm:"[&>svg]:h-3 [&>svg]:w-3",md:"[&>svg]:h-3.5 [&>svg]:w-3.5",lg:"[&>svg]:h-4 [&>svg]:w-4"}},defaultVariants:{size:"md"}}),C0=classVarianceAuthority.cva("flex items-center justify-center",{variants:{size:{sm:"h-6 w-6 [&>svg]:h-3 [&>svg]:w-3",md:"h-8 w-8 [&>svg]:h-4 [&>svg]:w-4",lg:"h-10 w-10 [&>svg]:h-5 [&>svg]:w-5"}},defaultVariants:{size:"md"}}),zc=K__namespace.forwardRef(({size:e="md",variant:t="default",radius:r="md",children:a,...n},i)=>jsxRuntime.jsx(Ac.Provider,{value:{size:e,variant:t,radius:r},children:jsxRuntime.jsx("nav",{ref:i,"aria-label":"breadcrumb",...n,children:a})}));zc.displayName="Breadcrumb";var Bc=K__namespace.forwardRef(({className:e,...t},r)=>{let{size:a,variant:n,radius:i}=Vn();return jsxRuntime.jsx("ol",{ref:r,className:o(N0({size:a,variant:n,radius:n==="default"?void 0:i}),e),...t})});Bc.displayName="BreadcrumbList";var Fc=K__namespace.forwardRef(({className:e,...t},r)=>{let{size:a}=Vn();return jsxRuntime.jsx("li",{ref:r,className:o("inline-flex items-center",a==="sm"&&"gap-1",a==="md"&&"gap-1.5",a==="lg"&&"gap-2",e),...t})});Fc.displayName="BreadcrumbItem";var Oc=K__namespace.forwardRef(({asChild:e,className:t,...r},a)=>jsxRuntime.jsx(e?reactSlot.Slot:"a",{ref:a,className:o("transition-colors hover:text-foreground cursor-pointer",t),...r}));Oc.displayName="BreadcrumbLink";var Gc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:o("font-medium text-foreground",e),...t}));Gc.displayName="BreadcrumbPage";var Wc=({children:e,className:t,...r})=>{let{size:a}=Vn();return jsxRuntime.jsx("li",{role:"presentation","aria-hidden":"true",className:o(P0({size:a}),"text-muted-foreground/60",t),...r,children:e??jsxRuntime.jsx(lucideReact.ChevronRight,{})})};Wc.displayName="BreadcrumbSeparator";var $c=({className:e,...t})=>{let{size:r}=Vn();return jsxRuntime.jsxs("span",{role:"presentation","aria-hidden":"true",className:o(C0({size:r}),e),...t,children:[jsxRuntime.jsx(lucideReact.MoreHorizontal,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"More"})]})};$c.displayName="BreadcrumbEllipsis";var M0=_c__namespace.Root;var Kc=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsxs(we__namespace.Root,{ref:a,className:o("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...r,children:[t,jsxRuntime.jsx(xs,{})]}));Kc.displayName=we__namespace.Root.displayName;var Yc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(we__namespace.List,{ref:r,className:o("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));Yc.displayName=we__namespace.List.displayName;var D0=we__namespace.Item,Uc=classVarianceAuthority.cva("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),jc=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsxs(we__namespace.Trigger,{ref:a,className:o(Uc(),"group",e),...r,children:[t," ",jsxRuntime.jsx(lucideReact.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));jc.displayName=we__namespace.Trigger.displayName;var Xc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(we__namespace.Content,{ref:r,className:o("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",e),...t}));Xc.displayName=we__namespace.Content.displayName;var V0=we__namespace.Link,xs=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{className:o("absolute left-0 top-full flex justify-center"),children:jsxRuntime.jsx(we__namespace.Viewport,{className:o("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:r,...t})}));xs.displayName=we__namespace.Viewport.displayName;var qc=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(we__namespace.Indicator,{ref:r,className:o("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:jsxRuntime.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));qc.displayName=we__namespace.Indicator.displayName;var Qc=({shouldScaleBackground:e=true,...t})=>jsxRuntime.jsx(vaul.Drawer.Root,{shouldScaleBackground:e,...t});Qc.displayName="Drawer";var L0=vaul.Drawer.Trigger,em=vaul.Drawer.Portal,I0=vaul.Drawer.Close,ys=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(vaul.Drawer.Overlay,{ref:r,className:o("fixed inset-0 z-50 bg-black/80",e),...t}));ys.displayName=vaul.Drawer.Overlay.displayName;var tm=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsxs(em,{children:[jsxRuntime.jsx(ys,{}),jsxRuntime.jsxs(vaul.Drawer.Content,{ref:a,className:o("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...r,children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));tm.displayName="DrawerContent";var rm=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("grid gap-1.5 p-4 text-center sm:text-left",e),...t});rm.displayName="DrawerHeader";var am=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("mt-auto flex flex-col gap-2 p-4",e),...t});am.displayName="DrawerFooter";var om=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(vaul.Drawer.Title,{ref:r,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));om.displayName=vaul.Drawer.Title.displayName;var nm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(vaul.Drawer.Description,{ref:r,className:o("text-sm text-muted-foreground",e),...t}));nm.displayName=vaul.Drawer.Description.displayName;var im=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{className:"relative w-full overflow-auto",children:jsxRuntime.jsx("table",{ref:r,className:o("w-full caption-bottom text-sm",e),...t})}));im.displayName="Table";var sm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("thead",{ref:r,className:o("[&_tr]:border-b",e),...t}));sm.displayName="TableHeader";var lm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("tbody",{ref:r,className:o("[&_tr:last-child]:border-0",e),...t}));lm.displayName="TableBody";var dm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("tfoot",{ref:r,className:o("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));dm.displayName="TableFooter";var cm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("tr",{ref:r,className:o("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));cm.displayName="TableRow";var mm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("th",{ref:r,className:o("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));mm.displayName="TableHead";var um=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("td",{ref:r,className:o("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));um.displayName="TableCell";var pm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("caption",{ref:r,className:o("mt-4 text-sm text-muted-foreground",e),...t}));pm.displayName="TableCaption";var gm=classVarianceAuthority.cva("animate-spin text-muted-foreground",{variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"}},defaultVariants:{size:"md"}}),bm=K__namespace.forwardRef(({className:e,size:t,...r},a)=>jsxRuntime.jsx(lucideReact.Loader2,{ref:a,className:o(gm({size:t,className:e})),...r}));bm.displayName="Spinner";var Rs=["January","February","March","April","May","June","July","August","September","October","November","December"];function $0({currentMonth:e,onMonthChange:t,startYear:r,endYear:a}){let[n,i]=K__namespace.useState(false),[s,l]=K__namespace.useState(false),d=K__namespace.useRef(null),m=K__namespace.useRef(null),u=dateFns.getMonth(e),c=dateFns.getYear(e);K__namespace.useEffect(()=>{function y(g){d.current&&!d.current.contains(g.target)&&i(false),m.current&&!m.current.contains(g.target)&&l(false);}return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[]);let f=y=>{let g=dateFns.setMonth(e,y);t(g),i(false);},p=y=>{let g=dateFns.setYear(e,y);t(g),l(false);},v=K__namespace.useMemo(()=>{let y=[];for(let g=a;g>=r;g--)y.push(g);return y},[r,a]);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("div",{ref:d,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>{i(!n),l(false);},className:o("inline-flex items-center justify-between gap-2 px-3 py-1.5 rounded-md","text-sm font-medium w-[120px]","border border-border bg-background","hover:bg-muted transition-colors cursor-pointer",n&&"ring-2 ring-primary ring-offset-2 ring-offset-background"),children:[jsxRuntime.jsx("span",{children:Rs[u]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:o("h-4 w-4 text-muted-foreground transition-transform",n&&"rotate-180")})]}),n&&jsxRuntime.jsx("div",{className:"absolute top-full left-0 mt-1 z-50 min-w-[140px] rounded-md border border-border bg-background shadow-lg",children:jsxRuntime.jsx(ze,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"p-1",children:Rs.map((y,g)=>jsxRuntime.jsx("button",{type:"button",onClick:()=>f(g),className:o("w-full text-left px-3 py-2 text-sm rounded-md","hover:bg-muted transition-colors cursor-pointer",u===g&&"bg-primary/10 text-primary font-medium"),children:y},y))})})})]}),jsxRuntime.jsxs("div",{ref:m,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>{l(!s),i(false);},className:o("inline-flex items-center justify-between gap-2 px-3 py-1.5 rounded-md","text-sm font-medium w-[85px]","border border-border bg-background","hover:bg-muted transition-colors cursor-pointer",s&&"ring-2 ring-primary ring-offset-2 ring-offset-background"),children:[jsxRuntime.jsx("span",{children:c}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:o("h-4 w-4 text-muted-foreground transition-transform",s&&"rotate-180")})]}),s&&jsxRuntime.jsx("div",{className:"absolute top-full left-0 mt-1 z-50 min-w-[100px] rounded-md border border-border bg-background shadow-lg",children:jsxRuntime.jsx(ze,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"p-1",children:v.map(y=>jsxRuntime.jsx("button",{type:"button",onClick:()=>p(y),className:o("w-full text-left px-3 py-2 text-sm rounded-md","hover:bg-muted transition-colors cursor-pointer",c===y&&"bg-primary/10 text-primary font-medium"),children:y},y))})})})]})]})}function _0(e,t,r){return function({calendarMonth:n}){let{goToMonth:i,nextMonth:s,previousMonth:l}=reactDayPicker.useDayPicker();if(e)return jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2 h-10 mb-2",children:[jsxRuntime.jsx($0,{currentMonth:n.date,onMonthChange:i,startYear:t,endYear:r}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&i(l),className:o("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Previous month",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{type:"button",disabled:!s,onClick:()=>s&&i(s),className:o("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Next month",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]});let d=Rs[n.date.getMonth()],m=n.date.getFullYear();return jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2 h-10 mb-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium w-[90px]",children:d}),jsxRuntime.jsx("span",{className:"text-sm font-medium w-[50px]",children:m})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&i(l),className:o("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Previous month",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{type:"button",disabled:!s,onClick:()=>s&&i(s),className:o("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Next month",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]})}}function Fa({className:e,classNames:t,showOutsideDays:r=true,showMonthAndYearPickers:a=false,startYear:n=1900,endYear:i=new Date().getFullYear()+50,components:s,...l}){let d=K__namespace.useMemo(()=>_0(a,n,i),[a,n,i]);return jsxRuntime.jsx(reactDayPicker.DayPicker,{showOutsideDays:r,className:o("p-4",e),classNames:{months:"flex flex-col sm:flex-row gap-4",month:"flex flex-col gap-2",month_caption:"sr-only",nav:"hidden",month_grid:"w-full border-collapse",weekdays:"flex",weekday:"text-muted-foreground w-10 font-normal text-xs text-center",week:"flex w-full mt-1",day:o("relative h-10 w-10 p-0 text-center text-sm","flex items-center justify-center","focus-within:relative focus-within:z-20","[&:has([aria-selected]:not(.outside-day))]:bg-accent","first:[&:has([aria-selected]:not(.outside-day))]:rounded-l-md","last:[&:has([aria-selected]:not(.outside-day))]:rounded-r-md"),day_button:o("size-10 p-0 font-normal rounded-md text-sm","inline-flex items-center justify-center","hover:bg-primary/10 hover:text-primary","focus:outline-none","transition-colors cursor-pointer"),range_start:"rounded-l-md",range_end:"rounded-r-md",selected:o("bg-primary text-primary-foreground rounded-md","hover:bg-primary/90 hover:!text-primary-foreground","focus:bg-primary focus:text-primary-foreground","[&.outside-day]:bg-transparent [&.outside-day]:text-muted-foreground/50"),today:"bg-accent text-accent-foreground rounded-md",outside:"outside-day text-muted-foreground/50",disabled:"text-muted-foreground/30 cursor-not-allowed",range_middle:"rounded-none",hidden:"invisible",...t},modifiersStyles:{range_middle:{backgroundColor:"var(--color-muted)",color:"var(--color-foreground)",borderRadius:0},outside:{backgroundColor:"transparent"}},components:{...s,MonthCaption:d},...l})}Fa.displayName="Calendar";var ym=({className:e,...t})=>jsxRuntime.jsx("nav",{role:"navigation","aria-label":"pagination",className:o("mx-auto flex w-full justify-center",e),...t});ym.displayName="Pagination";var Rm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("ul",{ref:r,className:o("flex flex-row items-center gap-1",e),...t}));Rm.displayName="PaginationContent";var wm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("li",{ref:r,className:o("",e),...t}));wm.displayName="PaginationItem";var Ln=({className:e,isActive:t,size:r="icon",...a})=>jsxRuntime.jsx("a",{"aria-current":t?"page":void 0,className:o(Qt({variant:t?"bordered":"ghost",size:r}),e),...a});Ln.displayName="PaginationLink";var Nm=({className:e,...t})=>jsxRuntime.jsxs(Ln,{"aria-label":"Go to previous page",size:"md",className:o("gap-1 pl-2.5",e),...t,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{children:"Previous"})]});Nm.displayName="PaginationPrevious";var Pm=({className:e,...t})=>jsxRuntime.jsxs(Ln,{"aria-label":"Go to next page",size:"md",className:o("gap-1 pr-2.5",e),...t,children:[jsxRuntime.jsx("span",{children:"Next"}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})]});Pm.displayName="PaginationNext";var Cm=({className:e,...t})=>jsxRuntime.jsxs("span",{"aria-hidden":true,className:o("flex h-9 w-9 items-center justify-center",e),...t,children:[jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"More pages"})]});Cm.displayName="PaginationEllipsis";var Ps=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command,{ref:r,className:o("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Ps.displayName=cmdk.Command.displayName;var X0=({children:e,...t})=>jsxRuntime.jsx(Ji,{...t,children:jsxRuntime.jsx(pn,{className:"overflow-hidden p-0 shadow-lg",children:jsxRuntime.jsx(Ps,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Sm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[jsxRuntime.jsx(lucideReact.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),jsxRuntime.jsx(cmdk.Command.Input,{ref:r,className:o("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Sm.displayName=cmdk.Command.Input.displayName;var Mm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.List,{ref:r,className:o("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Mm.displayName=cmdk.Command.List.displayName;var Tm=K__namespace.forwardRef((e,t)=>jsxRuntime.jsx(cmdk.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Tm.displayName=cmdk.Command.Empty.displayName;var km=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.Group,{ref:r,className:o("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));km.displayName=cmdk.Command.Group.displayName;var Dm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.Separator,{ref:r,className:o("-mx-1 h-px bg-border",e),...t}));Dm.displayName=cmdk.Command.Separator.displayName;var Vm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.Item,{ref:r,className:o("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));Vm.displayName=cmdk.Command.Item.displayName;var Lm=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Lm.displayName="CommandShortcut";var Im=K__namespace.forwardRef(({className:e,showToggle:t=true,disabled:r,onFocus:a,onBlur:n,style:i,...s},l)=>{let[d,m]=K__namespace.useState(false),[u,c]=K__namespace.useState(false);return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{type:d?"text":"password",className:o("flex h-10 w-full rounded-md 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",t&&"pr-10",e),ref:l,disabled:r,style:{...i,borderColor:u?"var(--color-foreground)":void 0},onFocus:f=>{c(true),a?.(f);},onBlur:f=>{c(false),n?.(f);},...s}),t&&jsxRuntime.jsx("button",{type:"button",className:"absolute right-0 top-0 h-10 w-10 px-3 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>m(!d),disabled:r,tabIndex:-1,"aria-label":d?"Hide password":"Show password",children:d?jsxRuntime.jsx(lucideReact.EyeOff,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Eye,{className:"h-4 w-4"})})]})});Im.displayName="PasswordInput";var Em=K__namespace.forwardRef(({className:e,showButtons:t=true,step:r=1,min:a,max:n,value:i,defaultValue:s,onChange:l,disabled:d,...m},u)=>{let[c,f]=K__namespace.useState(s),[p,v]=K__namespace.useState(false),y=i!==void 0,g=y?i:c,x=C=>{C!==void 0&&(a!==void 0&&C<a&&(C=a),n!==void 0&&C>n&&(C=n)),y||f(C),l?.(C);},R=()=>{x((g??0)+r);},b=()=>{x((g??0)-r);},h=C=>{let S=C.target.value;if(S==="")x(void 0);else {let N=parseFloat(S);isNaN(N)||x(N);}},P=C=>{C.key==="ArrowUp"?(C.preventDefault(),R()):C.key==="ArrowDown"&&(C.preventDefault(),b());},w=a===void 0||(g??0)>a,M=n===void 0||(g??0)<n;return t?jsxRuntime.jsxs("div",{className:o("relative flex items-center rounded-md border transition-colors",p?"border-foreground":"border-input",d&&"opacity-50",e),children:[jsxRuntime.jsx("button",{type:"button",className:"h-10 w-10 shrink-0 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:b,disabled:d||!w,tabIndex:-1,"aria-label":"Decrease value",children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}),jsxRuntime.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",className:"min-w-0 flex-1 h-10 bg-background text-sm text-center focus:outline-none disabled:cursor-not-allowed",ref:u,value:g??"",onChange:h,onKeyDown:P,disabled:d,onFocus:()=>v(true),onBlur:()=>v(false),...m}),jsxRuntime.jsx("button",{type:"button",className:"h-10 w-10 shrink-0 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:R,disabled:d||!M,tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"})})]}):jsxRuntime.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",className:o("flex h-10 w-full bg-background px-3 py-2 text-sm text-center border rounded-md placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",p?"border-foreground":"border-input",e),ref:u,value:g??"",onChange:h,onKeyDown:P,disabled:d,onFocus:()=>v(true),onBlur:()=>v(false),...m})});Em.displayName="NumberInput";var Am=K__namespace.forwardRef(({value:e,defaultValue:t,onValueChange:r,placeholder:a="Pick a date",dateFormat:n="PPP",disabled:i=false,minDate:s,maxDate:l,className:d},m)=>{let[u,c]=K__namespace.useState(false),[f,p]=K__namespace.useState(t),v=e!==void 0,y=v?e:f,g=x=>{v||p(x),r?.(x),c(false);};return jsxRuntime.jsxs(Ee,{open:u,onOpenChange:c,children:[jsxRuntime.jsx($e,{asChild:true,children:jsxRuntime.jsxs($,{ref:m,variant:"bordered",disabled:i,className:o("w-full justify-start text-left font-normal",!y&&"text-muted-foreground",d),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),y?dateFns.format(y,n):a]})}),jsxRuntime.jsx(Me,{className:"w-auto p-0",align:"start",children:jsxRuntime.jsx(Fa,{mode:"single",selected:y,onSelect:g,disabled:x=>!!(s&&x<s||l&&x>l),initialFocus:true})})]})});Am.displayName="DatePicker";var Om=classVarianceAuthority.cva("flex -space-x-2",{variants:{size:{sm:"-space-x-2",md:"-space-x-2.5",lg:"-space-x-3"}},defaultVariants:{size:"md"}}),zm=classVarianceAuthority.cva("border-2 border-background ring-0 cursor-pointer transition-transform duration-200 hover:-translate-y-1",{variants:{size:{sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{size:"md"}}),Gm=K__namespace.forwardRef(({className:e,items:t,max:r=5,size:a,showTooltips:n=false,...i},s)=>{let l=t.slice(0,r),d=t.length-r,m=(c,f)=>{let p=jsxRuntime.jsxs(ta,{className:o(zm({size:a})),children:[c.src&&jsxRuntime.jsx(Ea,{src:c.src,alt:c.alt||""}),jsxRuntime.jsx(ra,{className:"text-xs",children:c.fallback||c.alt?.charAt(0)?.toUpperCase()||"?"})]},f);return n&&c.alt?jsxRuntime.jsxs(oa,{children:[jsxRuntime.jsx(na,{asChild:true,children:p}),jsxRuntime.jsx(Dr,{className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",children:c.alt})]},f):p},u=jsxRuntime.jsxs("div",{ref:s,className:o(Om({size:a,className:e})),...i,children:[l.map((c,f)=>m(c,f)),d>0&&jsxRuntime.jsx(ta,{className:o(zm({size:a})),children:jsxRuntime.jsxs(ra,{className:"bg-muted text-muted-foreground",children:["+",d]})})]});return n?jsxRuntime.jsx(aa,{delayDuration:300,children:u}):u});Gm.displayName="AvatarGroup";var Wm=classVarianceAuthority.cva("flex gap-0.5",{variants:{size:{sm:"[&_svg]:h-4 [&_svg]:w-4",md:"[&_svg]:h-5 [&_svg]:w-5",lg:"[&_svg]:h-6 [&_svg]:w-6"}},defaultVariants:{size:"md"}}),$m=K__namespace.forwardRef(({className:e,value:t,defaultValue:r=0,onValueChange:a,max:n=5,size:i,icon:s="star",allowHalf:l=false,readOnly:d=false,disabled:m=false,filledColor:u,emptyColor:c,...f},p)=>{let[v,y]=K__namespace.useState(r),[g,x]=K__namespace.useState(null),R=t!==void 0,b=R?t:v,h=g!==null?g:b,P=V=>{d||m||(R||y(V),a?.(V));},w=(V,E=false)=>{let I=l&&E?V+.5:V+1;P(I);},M=(V,E)=>{if(d||m)return;let I=V.currentTarget.getBoundingClientRect(),D=l&&V.clientX<I.left+I.width/2;x(D?E+.5:E+1);},C=()=>{x(null);},S=s==="heart"?lucideReact.Heart:lucideReact.Star,N=V=>h>=V+1?"full":h>=V+.5?"half":"empty",T=u?{color:u,fill:u}:{},k=c?{color:c}:{};return jsxRuntime.jsx("div",{ref:p,className:o(Wm({size:i,className:e}),m&&"opacity-50 cursor-not-allowed"),onMouseLeave:C,role:"radiogroup","aria-label":"Rating",...f,children:Array.from({length:n},(V,E)=>{let I=N(E);return jsxRuntime.jsxs("button",{type:"button",className:o("relative focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-sm",!d&&!m&&"cursor-pointer hover:scale-110 transition-transform"),onClick:D=>{let L=D.currentTarget.getBoundingClientRect(),A=l&&D.clientX<L.left+L.width/2;w(E,A);},onMouseMove:D=>M(D,E),disabled:m||d,"aria-label":`Rate ${E+1} out of ${n}`,role:"radio","aria-checked":b===E+1,children:[jsxRuntime.jsx(S,{className:o("text-muted-foreground/30",I!=="empty"&&"absolute inset-0"),style:I==="empty"?k:void 0}),I!=="empty"&&jsxRuntime.jsx(S,{className:o("text-yellow-500 fill-yellow-500",s==="heart"&&"text-red-500 fill-red-500",I==="half"&&"clip-path-half"),style:{...T,clipPath:I==="half"?"inset(0 50% 0 0)":void 0}})]},E)})})});$m.displayName="Rating";var mR="16rem",uR="18rem",pR="3rem",fR="b",Ms=K__namespace.createContext(null);function An(){let e=K__namespace.useContext(Ms);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Ts(){return K__namespace.useContext(Ms)}var Km=K__namespace.forwardRef(({defaultOpen:e=true,open:t,onOpenChange:r,className:a,style:n,children:i,...s},l)=>{let[d,m]=K__namespace.useState(false),[u,c]=K__namespace.useState(false),[f,p]=K__namespace.useState(e),v=t??f,y=K__namespace.useCallback(b=>{let h=typeof b=="function"?b(v):b;r?r(h):p(h);},[r,v]);K__namespace.useEffect(()=>{let b=()=>{m(window.innerWidth<768);};return b(),window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)},[]);let g=K__namespace.useCallback(()=>d?c(b=>!b):y(b=>!b),[d,y,c]);K__namespace.useEffect(()=>{let b=h=>{h.key===fR&&(h.metaKey||h.ctrlKey)&&(h.preventDefault(),g());};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[g]);let x=v?"expanded":"collapsed",R=K__namespace.useMemo(()=>({state:x,open:v,setOpen:y,isMobile:d,openMobile:u,setOpenMobile:c,toggleSidebar:g}),[x,v,y,d,u,c,g]);return jsxRuntime.jsx(Ms.Provider,{value:R,children:jsxRuntime.jsx(aa,{delayDuration:0,children:jsxRuntime.jsx("div",{ref:l,style:{"--sidebar-width":mR,"--sidebar-width-icon":pR,...n},className:o("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",a),...s,children:i})})})});Km.displayName="SidebarProvider";var Ym=K__namespace.forwardRef(({side:e="left",variant:t="sidebar",collapsible:r="offcanvas",embedded:a=false,resizable:n=false,minWidth:i=200,maxWidth:s=480,defaultWidth:l=256,onWidthChange:d,className:m,children:u,...c},f)=>{let[p,v]=K__namespace.useState(l),[y,g]=K__namespace.useState(false),x=K__namespace.useRef(null),R=K__namespace.useCallback(M=>{M.preventDefault(),g(true);},[]);if(K__namespace.useEffect(()=>{if(!y)return;let M=S=>{if(!x.current)return;let N=x.current.getBoundingClientRect(),T;e==="left"?T=S.clientX-N.left:T=N.right-S.clientX,T=Math.max(i,Math.min(s,T)),v(T),d?.(T);},C=()=>{g(false);};return document.addEventListener("mousemove",M),document.addEventListener("mouseup",C),()=>{document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",C);}},[y,e,i,s,d]),r==="none"){if(n){let M={width:`${p}px`,minWidth:`${i}px`,maxWidth:`${s}px`};return jsxRuntime.jsxs("div",{ref:C=>{typeof f=="function"?f(C):f&&(f.current=C),x.current=C;},className:o("relative text-sidebar-foreground h-full min-h-0",y&&"select-none"),"data-sidebar":"sidebar-wrapper","data-resizing":y,children:[jsxRuntime.jsx("div",{className:o("flex h-full min-h-0 flex-col bg-sidebar overflow-hidden",!y&&"transition-all duration-200 ease-in-out",e==="left"&&"border-r-0",e==="right"&&"border-l-0",m),style:M,...c,children:u}),jsxRuntime.jsx("div",{onMouseDown:R,className:o("absolute top-0 bottom-0 z-20 w-1 cursor-ew-resize",e==="left"?"right-0":"left-0"),"data-sidebar":"resize-handle",children:jsxRuntime.jsx("div",{className:o("absolute top-0 bottom-0 w-px transition-colors",e==="left"?"right-0":"left-0","bg-sidebar-border")})})]})}return jsxRuntime.jsx("div",{ref:f,className:o("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",m),style:{"--sidebar-width":"16rem"},...c,children:u})}let{isMobile:b,state:h,openMobile:P,setOpenMobile:w}=An();if(b&&!a)return jsxRuntime.jsx(So,{open:P,onOpenChange:w,children:jsxRuntime.jsx(Ha,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":uR},side:e,children:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:u})})});if(a){let M=h==="collapsed",C=r==="offcanvas",S=r==="icon",N=n&&!M&&!S?{width:`${p}px`,minWidth:`${i}px`,maxWidth:`${s}px`}:void 0;return jsxRuntime.jsxs("div",{ref:T=>{typeof f=="function"?f(T):f&&(f.current=T),x.current=T;},className:o("group peer text-sidebar-foreground relative",y&&"select-none"),"data-state":h,"data-collapsible":M?r:"","data-variant":t,"data-side":e,"data-embedded":"true","data-resizing":y,children:[jsxRuntime.jsx("div",{className:o("flex h-full flex-col overflow-hidden",!y&&"transition-[width,opacity] duration-200 ease-out",!n&&(C?M?"w-0 opacity-0":"w-[--sidebar-width] opacity-100":S&&M?"w-[--sidebar-width-icon]":"w-[--sidebar-width]"),n&&C&&M&&"w-0 opacity-0",n&&S&&M&&"w-[--sidebar-width-icon]",m),style:N,...c,children:jsxRuntime.jsx("div",{"data-sidebar":"sidebar",className:o("flex h-full w-full flex-col bg-sidebar transition-opacity duration-200",t==="floating"&&"overflow-hidden rounded-lg border border-sidebar-border shadow-sm",t==="inset"&&"overflow-hidden rounded-lg border border-sidebar-border",t==="sidebar"&&e==="left"&&!n&&"border-r",t==="sidebar"&&e==="right"&&!n&&"border-l"),children:u})}),n&&!M&&jsxRuntime.jsx("div",{onMouseDown:R,className:o("absolute top-0 bottom-0 z-20 w-1 cursor-ew-resize",e==="left"?"right-0":"left-0"),"data-sidebar":"resize-handle",children:jsxRuntime.jsx("div",{className:o("absolute top-0 bottom-0 w-px transition-colors",e==="left"?"right-0":"left-0","bg-sidebar-border")})})]})}return jsxRuntime.jsxs("div",{ref:f,className:"group peer hidden md:block text-sidebar-foreground","data-state":h,"data-collapsible":h==="collapsed"?r:"","data-variant":t,"data-side":e,children:[jsxRuntime.jsx("div",{className:o("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),jsxRuntime.jsx("div",{className:o("duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",m),...c,children:jsxRuntime.jsx("div",{"data-sidebar":"sidebar",className:o("flex h-full w-full flex-col bg-sidebar",t==="floating"&&"overflow-hidden rounded-lg border border-sidebar-border shadow-sm",t==="inset"&&"overflow-hidden rounded-lg border border-sidebar-border"),children:u})})]})});Ym.displayName="Sidebar";var Um=K__namespace.forwardRef(({className:e,onClick:t,...r},a)=>{let{toggleSidebar:n}=An();return jsxRuntime.jsxs("button",{ref:a,type:"button","data-sidebar":"trigger",className:o("flex items-center justify-center h-9 w-9 rounded-lg bg-transparent hover:bg-zinc-100 dark:hover:bg-zinc-800 transition-colors cursor-pointer",e),onClick:i=>{t?.(i),n();},...r,children:[jsxRuntime.jsx(lucideReact.PanelLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Um.displayName="SidebarTrigger";var jm=K__namespace.forwardRef(({className:e,onClick:t,showLabel:r=true,...a},n)=>{let i=Ts();if(!i)return null;let{toggleSidebar:s,state:l}=i,d=l==="collapsed";return jsxRuntime.jsxs("button",{ref:n,type:"button","data-sidebar":"toggle","data-state":l,className:o("flex items-center gap-2 w-full px-2 py-2 rounded-md text-sm text-sidebar-foreground/70","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","transition-colors cursor-pointer","group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0",e),onClick:m=>{t?.(m),s();},...a,children:[d?jsxRuntime.jsx(lucideReact.PanelLeftOpen,{className:"h-4 w-4 shrink-0"}):jsxRuntime.jsx(lucideReact.PanelLeftClose,{className:"h-4 w-4 shrink-0"}),r&&jsxRuntime.jsx("span",{className:"group-data-[collapsible=icon]:hidden truncate",children:d?"Expand":"Collapse"})]})});jm.displayName="SidebarToggle";var Xm=K__namespace.forwardRef(({className:e,onClick:t,expandedLabel:r="Collapse",collapsedLabel:a="Expand",...n},i)=>{let s=Ts();if(!s)return null;let{toggleSidebar:l,state:d}=s,m=d==="collapsed";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("button",{ref:i,type:"button","data-sidebar":"toggle","data-state":d,className:o("flex items-center gap-2 w-full px-2 py-2 rounded-md text-sm text-sidebar-foreground/70","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","transition-colors cursor-pointer","group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:hidden",e),onClick:u=>{t?.(u),l();},...n,children:[m?jsxRuntime.jsx(lucideReact.PanelLeftOpen,{className:"h-4 w-4 shrink-0"}):jsxRuntime.jsx(lucideReact.PanelLeftClose,{className:"h-4 w-4 shrink-0"}),jsxRuntime.jsx("span",{className:"group-data-[collapsible=icon]:hidden truncate",children:m?a:r})]}),jsxRuntime.jsxs("button",{type:"button","data-sidebar":"floating-toggle","data-state":d,className:o("fixed left-3 bottom-4 z-50 flex items-center justify-center h-10 w-10 rounded-lg","bg-sidebar border border-sidebar-border shadow-md","text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","transition-all duration-200 cursor-pointer","opacity-0 pointer-events-none scale-90","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:opacity-100","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:pointer-events-auto","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:scale-100"),onClick:u=>{t?.(u),l();},children:[jsxRuntime.jsx(lucideReact.PanelLeftOpen,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:a})]})]})});Xm.displayName="SidebarPersistentToggle";var qm=K__namespace.forwardRef(({className:e,...t},r)=>{let{toggleSidebar:a}=An();return jsxRuntime.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:a,title:"Toggle Sidebar",className:o("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});qm.displayName="SidebarRail";var Zm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("main",{ref:r,className:o("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));Zm.displayName="SidebarInset";var Jm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-sidebar":"header",className:o("flex flex-col gap-2 p-2",e),...t}));Jm.displayName="SidebarHeader";var Qm=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-sidebar":"footer",className:o("flex flex-col gap-2 p-2",e),...t}));Qm.displayName="SidebarFooter";var eu=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-sidebar":"separator",className:o("mx-2 h-px w-auto bg-sidebar-border",e),...t}));eu.displayName="SidebarSeparator";var tu=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-sidebar":"content",className:o("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));tu.displayName="SidebarContent";var ru=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-sidebar":"group",className:o("relative flex w-full min-w-0 flex-col p-2",e),...t}));ru.displayName="SidebarGroup";var au=K__namespace.forwardRef(({className:e,asChild:t=false,...r},a)=>jsxRuntime.jsx(t?reactSlot.Slot:"div",{ref:a,"data-sidebar":"group-label",className:o("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r}));au.displayName="SidebarGroupLabel";var ou=K__namespace.forwardRef(({className:e,asChild:t=false,...r},a)=>jsxRuntime.jsx(t?reactSlot.Slot:"button",{ref:a,"data-sidebar":"group-action",className:o("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...r}));ou.displayName="SidebarGroupAction";var nu=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-sidebar":"group-content",className:o("w-full text-sm",e),...t}));nu.displayName="SidebarGroupContent";var iu=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("ul",{ref:r,"data-sidebar":"menu",className:o("flex w-full min-w-0 flex-col gap-1",e),...t}));iu.displayName="SidebarMenu";var su=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("li",{ref:r,"data-sidebar":"menu-item",className:o("group/menu-item relative",e),...t}));su.displayName="SidebarMenuItem";var lu=classVarianceAuthority.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{solid:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",ghost:"hover:bg-sidebar-accent/50 hover:text-sidebar-accent-foreground",soft:"hover:bg-primary/10 hover:text-primary",surface:"bg-sidebar-accent/30 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"},size:{sm:"h-7 text-xs",md:"h-8 text-sm",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"solid",size:"md"}}),du=K__namespace.forwardRef(({asChild:e=false,isActive:t=false,variant:r="solid",size:a="md",tooltip:n,className:i,...s},l)=>{let d=e?reactSlot.Slot:"button",m=Ts(),u=m?.isMobile??false,c=m?.state??"expanded",f=jsxRuntime.jsx(d,{ref:l,"data-sidebar":"menu-button","data-size":a,"data-active":t,className:o(lu({variant:r,size:a}),i),...s});return n?(typeof n=="string"&&(n={children:n}),jsxRuntime.jsxs(oa,{children:[jsxRuntime.jsx(na,{asChild:true,children:f}),jsxRuntime.jsx(Dr,{side:"right",align:"center",hidden:c!=="collapsed"||u,...n})]})):f});du.displayName="SidebarMenuButton";var cu=K__namespace.forwardRef(({className:e,asChild:t=false,showOnHover:r=false,...a},n)=>jsxRuntime.jsx(t?reactSlot.Slot:"button",{ref:n,"data-sidebar":"menu-action",className:o("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...a}));cu.displayName="SidebarMenuAction";var mu=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:o("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));mu.displayName="SidebarMenuBadge";var uu=K__namespace.forwardRef(({className:e,showIcon:t=false,...r},a)=>{let n=K__namespace.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxRuntime.jsxs("div",{ref:a,"data-sidebar":"menu-skeleton",className:o("rounded-md h-8 flex gap-2 px-2 items-center",e),...r,children:[t&&jsxRuntime.jsx("div",{className:"size-4 rounded-md bg-sidebar-accent animate-pulse"}),jsxRuntime.jsx("div",{className:"h-4 flex-1 max-w-[--skeleton-width] bg-sidebar-accent animate-pulse rounded-md",style:{"--skeleton-width":n}})]})});uu.displayName="SidebarMenuSkeleton";var pu=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:o("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));pu.displayName="SidebarMenuSub";var fu=K__namespace.forwardRef(({...e},t)=>jsxRuntime.jsx("li",{ref:t,...e}));fu.displayName="SidebarMenuSubItem";var gu=K__namespace.forwardRef(({asChild:e=false,size:t="md",isActive:r,className:a,...n},i)=>jsxRuntime.jsx(e?reactSlot.Slot:"a",{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":r,className:o("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",a),...n}));gu.displayName="SidebarMenuSubButton";var hu=classVarianceAuthority.cva("inline-flex items-center justify-center gap-1.5 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"border-transparent text-primary-foreground",outline:"border bg-transparent",ghost:"border-transparent bg-transparent",soft:"border-transparent",surface:"border-transparent bg-muted text-muted-foreground"},color:{primary:"",secondary:"",success:"",warning:"",danger:"",info:""},size:{sm:"h-6 px-2 text-xs",md:"h-7 px-2.5 text-sm",lg:"h-8 px-3 text-sm"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},clickable:{true:"cursor-pointer",false:""}},compoundVariants:[{variant:"solid",color:"primary",className:"bg-primary hover:bg-primary/90"},{variant:"solid",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/80"},{variant:"solid",color:"success",className:"bg-success hover:bg-success/90"},{variant:"solid",color:"warning",className:"bg-warning text-warning-foreground hover:bg-warning/90"},{variant:"solid",color:"danger",className:"bg-danger hover:bg-danger/90"},{variant:"solid",color:"info",className:"bg-info hover:bg-info/90"},{variant:"outline",color:"primary",className:"border-primary text-primary hover:bg-primary/10"},{variant:"outline",color:"secondary",className:"border-secondary text-secondary-foreground hover:bg-secondary/10"},{variant:"outline",color:"success",className:"border-success text-success hover:bg-success/10"},{variant:"outline",color:"warning",className:"border-warning text-warning hover:bg-warning/10"},{variant:"outline",color:"danger",className:"border-danger text-danger hover:bg-danger/10"},{variant:"outline",color:"info",className:"border-info text-info hover:bg-info/10"},{variant:"ghost",color:"primary",className:"text-primary hover:bg-primary/10"},{variant:"ghost",color:"secondary",className:"text-secondary-foreground hover:bg-secondary"},{variant:"ghost",color:"success",className:"text-success hover:bg-success/10"},{variant:"ghost",color:"warning",className:"text-warning hover:bg-warning/10"},{variant:"ghost",color:"danger",className:"text-danger hover:bg-danger/10"},{variant:"ghost",color:"info",className:"text-info hover:bg-info/10"},{variant:"soft",color:"primary",className:"bg-primary/15 text-primary hover:bg-primary/20"},{variant:"soft",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/80"},{variant:"soft",color:"success",className:"bg-success/15 text-success hover:bg-success/20"},{variant:"soft",color:"warning",className:"bg-warning/15 text-warning hover:bg-warning/20"},{variant:"soft",color:"danger",className:"bg-danger/15 text-danger hover:bg-danger/20"},{variant:"soft",color:"info",className:"bg-info/15 text-info hover:bg-info/20"}],defaultVariants:{variant:"solid",color:"primary",size:"md",radius:"full",clickable:false}}),vR=classVarianceAuthority.cva("ml-1 rounded-full p-0.5 transition-colors hover:bg-black/10 dark:hover:bg-white/10",{variants:{size:{sm:"[&_svg]:size-3",md:"[&_svg]:size-3.5",lg:"[&_svg]:size-4"}},defaultVariants:{size:"md"}}),xu=K__namespace.forwardRef(({className:e,variant:t,color:r,size:a,radius:n,clickable:i,startContent:s,endContent:l,closable:d,onClose:m,disabled:u,avatar:c,children:f,onClick:p,...v},y)=>{let g=i||!!p,x=R=>{R.stopPropagation(),m?.();};return jsxRuntime.jsxs("div",{ref:y,role:g?"button":void 0,tabIndex:g&&!u?0:void 0,"aria-disabled":u,onClick:u?void 0:p,onKeyDown:g&&!u?R=>{(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),p?.(R));}:void 0,className:o(hu({variant:t,color:r,size:a,radius:n,clickable:g}),u&&"opacity-50 cursor-not-allowed",e),...v,children:[c&&jsxRuntime.jsx("span",{className:"-ml-1 [&>*]:size-5 [&>*]:rounded-full",children:c}),s&&jsxRuntime.jsx("span",{className:"shrink-0",children:s}),jsxRuntime.jsx("span",{className:"truncate",children:f}),l&&jsxRuntime.jsx("span",{className:"shrink-0",children:l}),d&&jsxRuntime.jsx("button",{type:"button","aria-label":"Remove",onClick:x,disabled:u,className:o(vR({size:a})),children:jsxRuntime.jsx(lucideReact.X,{})})]})});xu.displayName="Chip";var yu=K.createContext({direction:"horizontal"}),CR=({className:e,direction:t="horizontal",children:r,...a})=>jsxRuntime.jsx(yu.Provider,{value:{direction:t},children:jsxRuntime.jsx(reactResizablePanels.Group,{orientation:t,className:o("flex h-full w-full data-[orientation=vertical]:flex-col",e),...a,children:r})}),SR=reactResizablePanels.Panel,MR=({withHandle:e,className:t,...r})=>{let{direction:a}=K.useContext(yu),n=a==="vertical";return jsxRuntime.jsx(reactResizablePanels.Separator,{className:o("relative flex shrink-0 items-center justify-center bg-border outline-none",n?"h-px w-full after:absolute after:inset-x-0 after:top-1/2 after:h-1 after:-translate-y-1/2":"w-px after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2",t),...r,children:e&&jsxRuntime.jsx("div",{className:o("z-10 flex items-center justify-center rounded-sm border bg-border",n?"h-3 w-4 rotate-90":"h-4 w-3"),children:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-2.5 w-2.5"})})})};var Nu=classVarianceAuthority.cva("inline-flex items-center gap-1",{variants:{size:{sm:"[&>span]:h-1 [&>span]:w-1",md:"[&>span]:h-1.5 [&>span]:w-1.5",lg:"[&>span]:h-2 [&>span]:w-2",xl:"[&>span]:h-3 [&>span]:w-3"}},defaultVariants:{size:"md"}}),Pu=K__namespace.forwardRef(({className:e,size:t,count:r=3,...a},n)=>jsxRuntime.jsx("span",{ref:n,role:"status","aria-label":"Loading",className:o(Nu({size:t,className:e})),...a,children:Array.from({length:r}).map((i,s)=>jsxRuntime.jsx("span",{className:"rounded-full bg-current animate-dots-bounce",style:{animationDelay:`${s*.16}s`}},s))}));Pu.displayName="Dots";var Mu=classVarianceAuthority.cva("relative inline-flex items-center justify-center",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-14 w-14"},color:{default:"",success:"",warning:"",danger:""}},defaultVariants:{size:"md",color:"default"}}),DR={sm:{size:32,strokeWidth:3,fontSize:"text-[10px]"},md:{size:40,strokeWidth:4,fontSize:"text-xs"},lg:{size:56,strokeWidth:5,fontSize:"text-sm"}},Cu={default:"#18181b",success:"#16a34a",warning:"#d97706",danger:"#dc2626"},Tu=K__namespace.forwardRef(({className:e,size:t="md",color:r="default",value:a,showValue:n=false,trackClassName:i,...s},l)=>{let d=a===void 0,m=Math.min(100,Math.max(0,a??0)),u=DR[t],c=(u.size-u.strokeWidth)/2,f=2*Math.PI*c,p=f-m/100*f,v=f*.3;return jsxRuntime.jsxs("div",{ref:l,className:o(Mu({size:t,color:r}),e),role:"progressbar","aria-valuenow":d?void 0:m,"aria-valuemin":0,"aria-valuemax":100,...s,children:[jsxRuntime.jsxs("svg",{width:u.size,height:u.size,viewBox:`0 0 ${u.size} ${u.size}`,fill:"none",style:d?{animation:"circular-spin 0.8s linear infinite"}:void 0,children:[jsxRuntime.jsx("style",{children:`
|
|
32
32
|
@keyframes circular-spin {
|
|
33
33
|
0% { transform: rotate(0deg); }
|
|
34
34
|
100% { transform: rotate(360deg); }
|
|
35
35
|
}
|
|
36
|
-
`}),jsxRuntime.jsx("circle",{className:o("stroke-muted",i),cx:u.size/2,cy:u.size/2,r:c,strokeWidth:u.strokeWidth,fill:"none"}),jsxRuntime.jsx("circle",{cx:u.size/2,cy:u.size/2,r:c,strokeWidth:u.strokeWidth,fill:"none",strokeLinecap:"round",stroke:Du[r]||Du.default,strokeDasharray:d?`${h} ${f-h}`:`${f} ${f}`,strokeDashoffset:d?0:p,style:{transformOrigin:"center",transform:"rotate(-90deg)",transition:d?void 0:"stroke-dashoffset 0.3s ease-in-out"}})]}),n&&!d&&jsxRuntime.jsxs("span",{className:o("absolute font-medium text-foreground",u.fontSize),children:[Math.round(m),"%"]})]})});Iu.displayName="CircularProgress";var Eu=K__namespace.createContext(null),$R=()=>{let e=K__namespace.useContext(Eu);if(!e)throw new Error("OTP components must be used within InputOTP");return e},Hu=classVarianceAuthority.cva("flex items-center gap-2 has-[:disabled]:opacity-50",{variants:{size:{sm:"[&_[data-otp-slot]]:h-8 [&_[data-otp-slot]]:w-8 [&_[data-otp-slot]]:text-xs",md:"[&_[data-otp-slot]]:h-10 [&_[data-otp-slot]]:w-10 [&_[data-otp-slot]]:text-sm",lg:"[&_[data-otp-slot]]:h-12 [&_[data-otp-slot]]:w-12 [&_[data-otp-slot]]:text-base"}},defaultVariants:{size:"md"}}),Au=K__namespace.forwardRef(({className:e,containerClassName:t,maxLength:r,value:a,defaultValue:n="",onChange:i,onComplete:s,pattern:l,disabled:d=false,size:m,children:u,...c},f)=>{let[p,h]=K__namespace.useState(n),[y,g]=K__namespace.useState(0),[x,R]=K__namespace.useState(false),b=K__namespace.useRef(null),v=a!==void 0?a:p;K__namespace.useImperativeHandle(f,()=>b.current),K__namespace.useEffect(()=>{g(Math.min(v.length,r-1));},[v,r]),K__namespace.useEffect(()=>{v.length===r&&s&&s(v);},[v,r,s]);let C=P=>{let M=P.target.value;if(l&&M){let D=new RegExp(l.replace("^","").replace("$","").replace("+",""));M=M.split("").filter(E=>D.test(E)).join("");}M=M.slice(0,r),a===void 0&&h(M),i?.(M);},w=P=>{P.key==="ArrowLeft"?g(M=>Math.max(0,M-1)):P.key==="ArrowRight"&&g(M=>Math.min(v.length,r-1,M+1));},k=()=>{b.current?.focus();},S=()=>{R(true),g(Math.min(v.length,r-1));},T=()=>{R(false);},N={value:v,activeIndex:x?y:-1,maxLength:r,disabled:d};return jsxRuntime.jsx(Eu.Provider,{value:N,children:jsxRuntime.jsxs("div",{className:o(Hu({size:m}),t),onClick:k,"data-otp-container":true,children:[jsxRuntime.jsx("input",{ref:b,type:"text",inputMode:"numeric",autoComplete:"one-time-code",value:v,onChange:C,onKeyDown:w,onFocus:S,onBlur:T,disabled:d,maxLength:r,className:o("absolute opacity-0 pointer-events-none w-0 h-0",e),...c}),u]})})});Au.displayName="InputOTP";var zu=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex items-center",e),...t}));zu.displayName="InputOTPGroup";var Bu=K__namespace.forwardRef(({index:e,className:t,...r},a)=>{let{value:n,activeIndex:i,disabled:s}=$R(),l=n[e]||"",d=i===e,m=d&&n.length===e;return jsxRuntime.jsxs("div",{ref:a,"data-otp-slot":true,"data-active":d,"data-filled":!!l,className:o("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm font-medium transition-all first:rounded-l-md first:border-l last:rounded-r-md",d&&"z-10 border-foreground",s&&"cursor-not-allowed opacity-50",t),...r,children:[l,m&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:jsxRuntime.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});Bu.displayName="InputOTPSlot";var Fu=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"separator",className:o("text-muted-foreground",e),...t,children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}));Fu.displayName="InputOTPSeparator";var Wu=classVarianceAuthority.cva("inline-flex items-center gap-1 rounded-full text-xs font-medium transition-colors",{variants:{variant:{solid:"bg-primary text-primary-foreground",outline:"border border-input bg-transparent",ghost:"bg-transparent text-foreground",soft:"bg-primary/15 text-primary",surface:"bg-muted text-muted-foreground"},size:{sm:"h-5 px-2 text-xs",md:"h-6 px-2.5 text-xs",lg:"h-7 px-3 text-sm"}},defaultVariants:{variant:"soft",size:"md"}}),$u=K__namespace.forwardRef(({className:e,variant:t,size:r,value:a=[],onChange:n,placeholder:i="Add tag...",maxTags:s,minTagLength:l=1,maxTagLength:d=50,triggerKeys:m=["Enter",",","Tab"],allowDuplicates:u=false,disabled:c,readOnly:f,renderTag:p,...h},y)=>{let[g,x]=K__namespace.useState(""),R=K__namespace.useRef(null);K__namespace.useImperativeHandle(y,()=>R.current);let b=N=>{let P=N.trim();if(P.length<l||P.length>d||s&&a.length>=s||!u&&a.some(D=>D.text.toLowerCase()===P.toLowerCase()))return;let M={id:crypto.randomUUID(),text:P};n?.([...a,M]),x("");},v=N=>{c||f||n?.(a.filter(P=>P.id!==N));},C=N=>{if(m.includes(N.key)){if(N.key==="Tab"&&!g)return;N.preventDefault(),b(g);}N.key==="Backspace"&&!g&&a.length>0&&v(a[a.length-1].id);},w=N=>{let P=N.target.value;if(P.includes(",")){P.split(",").forEach(D=>{D.trim()&&b(D);});return}x(P);},k=N=>{N.preventDefault(),N.clipboardData.getData("text").split(/[,\n\t]/).filter(Boolean).forEach(D=>{b(D);});},S=()=>{R.current?.focus();},T=s?a.length>=s:false;return jsxRuntime.jsxs("div",{className:o("flex min-h-10 w-full flex-wrap gap-1.5 rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",c&&"cursor-not-allowed opacity-50",e),onClick:S,children:[a.map(N=>p?p(N,()=>v(N.id)):jsxRuntime.jsxs("span",{className:o(Wu({variant:t,size:r})),children:[N.text,!c&&!f&&jsxRuntime.jsx("button",{type:"button",onClick:P=>{P.stopPropagation(),v(N.id);},className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${N.text}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},N.id)),!T&&!f&&jsxRuntime.jsx("input",{ref:R,type:"text",value:g,onChange:w,onKeyDown:C,onPaste:k,placeholder:a.length===0?i:"",disabled:c,className:o("flex-1 bg-transparent outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed","min-w-[80px]"),...h})]})});$u.displayName="TagInput";var Ku=classVarianceAuthority.cva("flex flex-col items-center justify-center text-center",{variants:{size:{sm:"gap-2 py-6",md:"gap-3 py-10",lg:"gap-4 py-16"}},defaultVariants:{size:"md"}}),Yu=K__namespace.forwardRef(({className:e,size:t,icon:r,title:a,description:n,action:i,children:s,...l},d)=>jsxRuntime.jsxs("div",{ref:d,className:o(Ku({size:t,className:e})),...l,children:[r&&jsxRuntime.jsx("div",{className:"text-muted-foreground [&>svg]:h-10 [&>svg]:w-10",children:r}),a&&jsxRuntime.jsx("h3",{className:"text-lg font-semibold text-foreground",children:a}),n&&jsxRuntime.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:n}),i&&jsxRuntime.jsx("div",{className:"mt-2",children:i}),s]}));Yu.displayName="EmptyState";var ju=classVarianceAuthority.cva("rounded-lg border bg-card p-6 text-card-foreground shadow-sm",{variants:{variant:{solid:"bg-primary text-primary-foreground border-primary",outline:"bg-transparent",ghost:"border-transparent shadow-none",soft:"bg-primary/10 border-primary/20",surface:"bg-muted border-muted"}},defaultVariants:{variant:"outline"}}),Xu=K__namespace.forwardRef(({className:e,variant:t,label:r,value:a,icon:n,trend:i,trendValue:s,description:l,...d},m)=>{let u=i==="up"?lucideReact.TrendingUp:i==="down"?lucideReact.TrendingDown:lucideReact.Minus,c=i==="up"?"text-green-500":i==="down"?"text-red-500":"text-muted-foreground";return jsxRuntime.jsxs("div",{ref:m,className:o(ju({variant:t,className:e})),...d,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:r}),n&&jsxRuntime.jsx("div",{className:"text-muted-foreground [&>svg]:h-4 [&>svg]:w-4",children:n})]}),jsxRuntime.jsxs("div",{className:"mt-2 flex items-baseline gap-2",children:[jsxRuntime.jsx("p",{className:"text-2xl font-bold",children:a}),i&&s&&jsxRuntime.jsxs("span",{className:o("flex items-center gap-0.5 text-sm",c),children:[jsxRuntime.jsx(u,{className:"h-3 w-3"}),s]})]}),l&&jsxRuntime.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:l})]})});Xu.displayName="StatCard";var Zu=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"",bordered:"divide-y divide-border rounded-lg border",striped:"[&>*:nth-child(odd)]:bg-muted/50"},size:{sm:"gap-1 [&>*]:py-2 [&>*]:px-3",md:"gap-2 [&>*]:py-3 [&>*]:px-4",lg:"gap-3 [&>*]:py-4 [&>*]:px-5"}},defaultVariants:{variant:"default",size:"md"}}),Ju=K__namespace.forwardRef(({className:e,variant:t,size:r,...a},n)=>jsxRuntime.jsx("div",{ref:n,role:"list",className:o(Zu({variant:t,size:r,className:e})),...a}));Ju.displayName="List";var Qu=classVarianceAuthority.cva("flex items-center gap-3 transition-colors",{variants:{interactive:{true:"cursor-pointer hover:bg-muted/50",false:""}},defaultVariants:{interactive:false}}),ep=K__namespace.forwardRef(({className:e,interactive:t,leading:r,trailing:a,children:n,...i},s)=>jsxRuntime.jsxs("div",{ref:s,role:"listitem",className:o(Qu({interactive:t,className:e})),...i,children:[r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground",children:r}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:n}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]}));ep.displayName="ListItem";var tp=K__namespace.forwardRef(({className:e,primary:t,secondary:r,children:a,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("min-w-0",e),...n,children:[t&&jsxRuntime.jsx("p",{className:"text-sm font-medium leading-none truncate",children:t}),r&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground truncate",children:r}),a]}));tp.displayName="ListItemText";var op=classVarianceAuthority.cva("flex flex-col",{variants:{position:{left:"",right:"",alternate:""}},defaultVariants:{position:"left"}}),np=K__namespace.forwardRef(({className:e,position:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,"data-position":t,className:o(op({position:t,className:e})),...r}));np.displayName="Timeline";var ip=classVarianceAuthority.cva("relative flex gap-4 pb-8 last:pb-0",{variants:{variant:{default:"",success:"[&_[data-timeline-dot]]:bg-green-500 [&_[data-timeline-dot]]:border-green-500",warning:"[&_[data-timeline-dot]]:bg-yellow-500 [&_[data-timeline-dot]]:border-yellow-500",error:"[&_[data-timeline-dot]]:bg-red-500 [&_[data-timeline-dot]]:border-red-500",info:"[&_[data-timeline-dot]]:bg-blue-500 [&_[data-timeline-dot]]:border-blue-500"}},defaultVariants:{variant:"default"}}),sp=K__namespace.forwardRef(({className:e,variant:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:o(ip({variant:t,className:e})),...r}));sp.displayName="TimelineItem";var lp=K__namespace.forwardRef(({className:e,dot:t,showConnector:r=true,...a},n)=>jsxRuntime.jsxs("div",{ref:n,className:o("flex flex-col items-center",e),...a,children:[jsxRuntime.jsx("div",{"data-timeline-dot":true,className:"flex h-3 w-3 items-center justify-center rounded-full border-2 border-primary bg-primary",children:t}),r&&jsxRuntime.jsx("div",{className:"w-0.5 flex-1 bg-border"})]}));lp.displayName="TimelineSeparator";var dp=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex-1 pt-0.5",e),...t}));dp.displayName="TimelineContent";var cp=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex-1 text-sm text-muted-foreground pt-0.5",e),...t}));cp.displayName="TimelineOpposite";var up=classVarianceAuthority.cva("inline-flex items-center rounded-lg bg-muted p-1 text-muted-foreground",{variants:{size:{sm:"h-8",md:"h-10",lg:"h-12"},fullWidth:{true:"w-full",false:""}},defaultVariants:{size:"md",fullWidth:false}}),pp=classVarianceAuthority.cva("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-sm",{variants:{size:{sm:"h-6 text-xs px-2.5",md:"h-8 text-sm px-3",lg:"h-10 text-base px-4"}},defaultVariants:{size:"md"}}),fp=K__namespace.createContext({}),gp=K__namespace.forwardRef(({className:e,size:t,fullWidth:r,children:a,...n},i)=>jsxRuntime.jsx(Ba__namespace.Root,{ref:i,type:"single",rovingFocus:false,className:o(up({size:t,fullWidth:r,className:e})),...n,children:jsxRuntime.jsx(fp.Provider,{value:{size:t??"md"},children:a})}));gp.displayName="SegmentedControl";var bp=K__namespace.forwardRef(({className:e,children:t,...r},a)=>{let{size:n}=K__namespace.useContext(fp);return jsxRuntime.jsx(Ba__namespace.Item,{ref:a,className:o(pp({size:n}),"flex-1",e),...r,children:t})});bp.displayName="SegmentedControlItem";var vp=classVarianceAuthority.cva("relative flex flex-col items-center justify-center rounded-lg border-2 border-dashed transition-colors",{variants:{variant:{default:"border-input bg-background hover:bg-accent/50",active:"border-primary bg-primary/5",error:"border-danger bg-danger/5"},size:{sm:"p-4 min-h-[120px]",md:"p-6 min-h-[160px]",lg:"p-8 min-h-[200px]"}},defaultVariants:{variant:"default",size:"md"}}),hp=e=>{let t=e.type;return t.startsWith("image/")?lucideReact.Image:t.startsWith("video/")?lucideReact.FileVideo:t.startsWith("audio/")?lucideReact.FileAudio:t.includes("pdf")||t.includes("document")?lucideReact.FileText:t.includes("zip")||t.includes("rar")||t.includes("archive")?lucideReact.FileArchive:lucideReact.File},_n=e=>{if(e===0)return "0 Bytes";let t=1024,r=["Bytes","KB","MB","GB"],a=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,a)).toFixed(2))+" "+r[a]},xp=(e,t,r)=>{let a=[];return t&&e.size>t&&a.push({code:"file-too-large",message:`File is larger than ${_n(t)}`}),r&&r.length>0&&(r.some(i=>{if(i.startsWith("."))return e.name.toLowerCase().endsWith(i.toLowerCase());if(i.endsWith("/*")){let s=i.slice(0,-2);return e.type.startsWith(s)}return e.type===i})||a.push({code:"file-invalid-type",message:`File type not accepted. Accepted: ${r.join(", ")}`})),a},yp=K__namespace.forwardRef(({className:e,variant:t,size:r,onFilesChange:a,onFilesRejected:n,onFileRemove:i,files:s=[],showFileList:l=true,children:d,maxSize:m=10*1024*1024,accept:u,multiple:c=true,disabled:f,...p},h)=>{let[y,g]=K__namespace.useState(false),[x,R]=K__namespace.useState(false),[b,v]=K__namespace.useState([]),C=K__namespace.useRef(null),w=K__namespace.useCallback(V=>{if(!V||V.length===0)return;let I=Array.from(V),A=[],G=[];(c?I:[I[0]]).forEach(j=>{let W=xp(j,m,u);W.length>0?G.push({file:j,errors:W}):A.push(j);}),v(G),A.length>0&&a?.(A),G.length>0&&n?.(G);},[m,u,c,a,n]),k=K__namespace.useCallback(V=>{if(V.preventDefault(),V.stopPropagation(),!f&&(g(true),V.dataTransfer.items)){let A=Array.from(V.dataTransfer.items).some(G=>{if(G.kind!=="file")return true;if(u&&u.length>0){let H=G.type;return !u.some(j=>j.endsWith("/*")?H.startsWith(j.slice(0,-2)):H===j)}return false});R(A);}},[f,u]),S=K__namespace.useCallback(V=>{V.preventDefault(),V.stopPropagation(),!f&&(V.dataTransfer.dropEffect="copy");},[f]),T=K__namespace.useCallback(V=>{V.preventDefault(),V.stopPropagation();let I=V.currentTarget.getBoundingClientRect(),A=V.clientX,G=V.clientY;(A<I.left||A>I.right||G<I.top||G>I.bottom)&&(g(false),R(false));},[]),N=K__namespace.useCallback(V=>{V.preventDefault(),V.stopPropagation(),g(false),R(false),!f&&w(V.dataTransfer.files);},[f,w]),P=K__namespace.useCallback(()=>{f||C.current?.click();},[f]),M=K__namespace.useCallback(V=>{w(V.target.files),V.target.value="";},[w]),D=K__namespace.useCallback(V=>{f||(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),C.current?.click());},[f]),E=x?"error":y?"active":t,L=u?.join(",");return jsxRuntime.jsxs("div",{ref:h,className:o("space-y-4",e),...p,children:[jsxRuntime.jsxs("div",{role:"button",tabIndex:f?-1:0,onDragEnter:k,onDragOver:S,onDragLeave:T,onDrop:N,onClick:P,onKeyDown:D,className:o(vp({variant:E,size:r}),f&&"opacity-50 cursor-not-allowed",!f&&"cursor-pointer focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"),"aria-disabled":f,children:[jsxRuntime.jsx("input",{ref:C,type:"file",accept:L,multiple:c,disabled:f,onChange:M,className:"sr-only",tabIndex:-1}),d||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[jsxRuntime.jsx("div",{className:"rounded-full bg-muted p-3",children:jsxRuntime.jsx(lucideReact.Upload,{className:"h-6 w-6 text-muted-foreground"})}),jsxRuntime.jsxs("div",{className:"space-y-1",children:[jsxRuntime.jsx("p",{className:"text-sm font-medium",children:y?"Drop files here":"Drop files or click to upload"}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[m&&`Max ${_n(m)}`,u&&u.length>0&&` \u2022 ${u.join(", ")}`]})]})]})]}),b.length>0&&jsxRuntime.jsx("div",{className:"rounded-md bg-danger/10 p-3 text-sm text-danger",children:b.map(({file:V,errors:I})=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"font-medium",children:V.name}),":"," ",I.map(A=>A.message).join(", ")]},V.name))}),l&&s.length>0&&jsxRuntime.jsx("div",{className:"space-y-2",children:s.map(V=>{let I=hp(V.file);return jsxRuntime.jsxs("div",{className:o("flex items-center gap-3 rounded-lg border p-3",V.error&&"border-danger bg-danger/5"),children:[jsxRuntime.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-muted",children:jsxRuntime.jsx(I,{className:"h-5 w-5 text-muted-foreground"})}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"truncate text-sm font-medium",children:V.file.name}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[_n(V.file.size),V.error&&jsxRuntime.jsx("span",{className:"ml-2 text-danger",children:V.error})]}),V.progress!==void 0&&V.progress<100&&jsxRuntime.jsx(Ln,{value:V.progress,className:"mt-2 h-1"})]}),jsxRuntime.jsxs($,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",onClick:A=>{A.stopPropagation(),i?.(V.file);},children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Remove"})]})]},V.id)})})]})});yp.displayName="FileUpload";var lw=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23ccc'%3E%3Crect width='4' height='4'/%3E%3Crect x='4' y='4' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E")`,wp=classVarianceAuthority.cva("relative rounded-md border border-input shadow-sm transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{xs:"h-4 w-4",sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10",xl:"h-12 w-12"},shape:{square:"rounded-md",circle:"rounded-full"},interactive:{true:"cursor-pointer hover:scale-110 active:scale-105",false:"cursor-default"}},defaultVariants:{size:"md",shape:"square",interactive:false}}),Oo=K__namespace.forwardRef(({color:e,isSelected:t,showTransparency:r=true,onSelect:a,size:n,shape:i,interactive:s,className:l,onClick:d,disabled:m,...u},c)=>jsxRuntime.jsx("button",{ref:c,type:"button",disabled:m,onClick:h=>{d?.(h),a?.(e);},className:o(wp({size:n,shape:i,interactive:s??(!!a||!!d)}),t&&"ring-2 ring-ring ring-offset-2",l),style:{backgroundImage:r?lw:void 0,backgroundSize:r?"8px 8px":void 0},"aria-label":`Color ${e}`,"aria-pressed":t,...u,children:jsxRuntime.jsx("span",{className:"absolute inset-0 rounded-[inherit]",style:{backgroundColor:e}})}));Oo.displayName="ColorSwatch";var Np=classVarianceAuthority.cva("",{variants:{layout:{grid:"grid gap-2",stack:"flex flex-wrap gap-2"}},defaultVariants:{layout:"stack"}}),Pp=K__namespace.forwardRef(({value:e,defaultValue:t,onChange:r,layout:a,columns:n=6,colors:i,swatchSize:s="md",swatchShape:l="square",disabled:d,className:m,style:u,...c},f)=>{let[p,h]=K__namespace.useState(t),y=e??p,g=K__namespace.useCallback(R=>{d||(e===void 0&&h(R),r?.(R));},[e,r,d]),x=R=>R.toLowerCase();return jsxRuntime.jsx("div",{ref:f,role:"listbox","aria-label":"Color options",className:o(Np({layout:a}),m),style:{...a==="grid"?{gridTemplateColumns:`repeat(${n}, 1fr)`}:{},...u},...c,children:i.map(R=>{let b=y?x(y)===x(R):false;return jsxRuntime.jsx(Oo,{role:"option",color:R,size:s,shape:l,isSelected:b,onSelect:g,disabled:d,"aria-selected":b},R)})})});Pp.displayName="ColorSwatchPicker";var mw=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"],Cp={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"},Sp=K__namespace.forwardRef(({value:e,defaultValue:t="#3b82f6",onChange:r,disabled:a,presets:n=mw,showInput:i=true,size:s="md",className:l,variant:d="full"},m)=>{let[u,c]=K__namespace.useState(e??t),f=K__namespace.useId();K__namespace.useEffect(()=>{e!==void 0&&c(e);},[e]);let p=g=>{c(g),r?.(g);},h=g=>{c(g),r?.(g);},y=g=>{let x=g.target.value.toUpperCase();c(x),r?.(x);};return d==="simple"?jsxRuntime.jsxs("label",{className:o("relative rounded-md border border-input shadow-sm transition-colors cursor-pointer hover:border-foreground focus-within:border-foreground overflow-hidden",a&&"opacity-50 cursor-not-allowed",Cp[s],l),children:[jsxRuntime.jsx("input",{type:"color",value:u,onChange:y,disabled:a,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0 disabled:cursor-not-allowed",id:f}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:u}})]}):jsxRuntime.jsxs(Ee,{children:[jsxRuntime.jsx($e,{asChild:true,children:jsxRuntime.jsx("button",{ref:m,disabled:a,className:o("rounded-md border border-input shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",Cp[s],l),style:{backgroundColor:u},"aria-label":`Color picker, current color: ${u}`})}),jsxRuntime.jsx(Me,{className:"w-auto p-3",align:"start",children:jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:u,onChange:p,className:"!w-[200px]"}),i&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(ra,{htmlFor:"color-input",className:"text-xs",children:"Hex Color"}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx("div",{className:"h-9 w-9 shrink-0 rounded-md border",style:{backgroundColor:u}}),jsxRuntime.jsx(reactColorful.HexColorInput,{id:"color-input",color:u,onChange:p,prefixed:true,className:"flex h-9 w-full rounded-md border border-input bg-background px-3 py-2 font-mono text-sm uppercase ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"})]})]}),n.length>0&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(ra,{className:"text-xs",children:"Presets"}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1.5",children:n.map(g=>jsxRuntime.jsx(Oo,{color:g,size:"sm",isSelected:u.toLowerCase()===g.toLowerCase(),onSelect:h},g))})]})]})})]})});Sp.displayName="ColorPicker";var Mp=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),As=e=>String(e).padStart(2,"0"),bw=e=>{let[t,r]=e.split(":").map(Number);return {hours:t||0,minutes:r||0}},vw=(e,t)=>`${As(e)}:${As(t)}`,Tp=K__namespace.forwardRef(({className:e,size:t,value:r,onChange:a,use24Hour:n=true,minuteStep:i=1,showPicker:s=true,minTime:l,maxTime:d,disabled:m,...u},c)=>{let[f,p]=K__namespace.useState(r??""),[h,y]=K__namespace.useState(false);K__namespace.useEffect(()=>{r!==void 0&&p(r);},[r]);let{hours:g,minutes:x}=bw(f||"00:00"),R=T=>{let N=T.target.value;p(N),/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/.test(N)&&a?.(N);},b=(T,N)=>{let P=Math.max(0,Math.min(23,T)),M=Math.max(0,Math.min(59,N)),D=vw(P,M);p(D),a?.(D);},v=()=>b(g+1,x),C=()=>b(g-1,x),w=()=>b(g,x+i),k=()=>b(g,x-i),S=({value:T,onIncrement:N,onDecrement:P})=>jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx($,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:N,disabled:m,children:jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"flex h-10 w-12 items-center justify-center rounded-md bg-muted text-lg font-semibold",children:As(T)}),jsxRuntime.jsx($,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:P,disabled:m,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"})})]});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[jsxRuntime.jsx("input",{ref:c,type:"time",value:f,onChange:R,disabled:m,className:o(Mp({size:t}),s&&"pr-10","[&::-webkit-calendar-picker-indicator]:hidden",e),...u}),s&&jsxRuntime.jsxs(Ee,{open:h,onOpenChange:y,children:[jsxRuntime.jsx($e,{asChild:true,children:jsxRuntime.jsxs($,{type:"button",variant:"ghost",size:"sm",className:"absolute right-1 h-7 w-7 p-0",disabled:m,children:[jsxRuntime.jsx(lucideReact.Clock,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Pick time"})]})}),jsxRuntime.jsxs(Me,{className:"w-auto p-4",align:"end",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(S,{value:g,onIncrement:v,onDecrement:C,max:23}),jsxRuntime.jsx("div",{className:"text-2xl font-bold text-muted-foreground",children:":"}),jsxRuntime.jsx(S,{value:x,onIncrement:w,onDecrement:k,max:59})]}),jsxRuntime.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[jsxRuntime.jsx($,{variant:"bordered",size:"sm",onClick:()=>{let T=new Date;b(T.getHours(),T.getMinutes());},children:"Now"}),jsxRuntime.jsx($,{size:"sm",onClick:()=>y(false),children:"Done"})]})]})]})]})});Tp.displayName="TimeInput";var kp=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),xw=(e,t)=>{try{return new Intl.NumberFormat(t,{style:"currency",currency:e,currencyDisplay:"narrowSymbol"}).formatToParts(0).find(i=>i.type==="currency")?.value??e}catch{return e}},zs=(e,t,r,a)=>{let n=e.toFixed(t),[i,s]=n.split("."),l=i.replace(/\B(?=(\d{3})+(?!\d))/g,r);return s?`${l}${a}${s}`:l},Dp=(e,t,r)=>{if(!e)return;let a=e.replace(new RegExp(`\\${t}`,"g"),"");a=a.replace(r,"."),a=a.replace(/[^0-9.-]/g,"");let n=parseFloat(a);return isNaN(n)?void 0:n},Vp=K__namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a,onChange:n,currency:i="USD",locale:s="en-US",decimals:l=2,min:d,max:m,showCurrency:u=true,currencyPosition:c="prefix",currencySymbol:f,thousandSeparator:p=",",decimalSeparator:h=".",disabled:y,placeholder:g,...x},R)=>{let[b,v]=K__namespace.useState(a),[C,w]=K__namespace.useState(""),[k,S]=K__namespace.useState(false),T=r!==void 0?r:b,N=f??xw(i,s);K__namespace.useEffect(()=>{!k&&T!==void 0&&w(zs(T,l,p,h));},[T,l,p,h,k]);let P=V=>{let I=V.target.value;if(!I){w(""),r===void 0&&v(void 0),n?.(void 0);return}if(!new RegExp(`^[0-9${p}${h}.-]*$`).test(I))return;w(I);let G=Dp(I,p,h);if(G!==void 0){let H=G;d!==void 0&&G<d&&(H=d),m!==void 0&&G>m&&(H=m),r===void 0&&v(H),n?.(H);}},M=()=>{S(true),T!==void 0&&w(T.toString().replace(".",h));},D=()=>{S(false),w(T!==void 0?zs(T,l,p,h):"");},E=u&&c==="prefix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pr-1",children:N}),L=u&&c==="suffix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pl-1",children:N});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[E&&jsxRuntime.jsx("div",{className:"absolute left-3 pointer-events-none",children:E}),jsxRuntime.jsx("input",{ref:R,type:"text",inputMode:"decimal",value:C,onChange:P,onFocus:M,onBlur:D,disabled:y,placeholder:g??`0${h}${"0".repeat(l)}`,className:o(kp({size:t}),E&&"pl-8",L&&"pr-8","text-right",e),style:{borderColor:k?"var(--color-foreground)":void 0},...x}),L&&jsxRuntime.jsx("div",{className:"absolute right-3 pointer-events-none",children:L})]})});Vp.displayName="CurrencyInput";var Lp=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 font-mono",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),Bs={creditCard:{mask:"#### #### #### ####"},creditCardAmex:{mask:"#### ###### #####"},cvv:{mask:"###"},expiry:{mask:"##/##"},date:{mask:"##/##/####"},dateISO:{mask:"####-##-##"},time:{mask:"##:##"},ip:{mask:"###.###.###.###"},mac:{mask:"AA:AA:AA:AA:AA:AA"},id11:{mask:"###########"},id9:{mask:"#########"},id10:{mask:"##########"},postal5:{mask:"#####"},postal9:{mask:"#####-####"}},ww=(e,t)=>{switch(t){case "#":return /\d/.test(e);case "A":return /[a-zA-Z]/.test(e);case "*":return /[a-zA-Z0-9]/.test(e);default:return e===t}},Gr=e=>["#","A","*"].includes(e),Yn=(e,t,r)=>{let a="",n=0;for(let i=0;i<t.length&&n<=e.length;i++){let s=t[i];if(Gr(s)){if(n<e.length){let l=e[n];ww(l,s)?(a+=l,n++):(n++,i--);}}else (n<e.length||r)&&(a+=s);}return a},Fs=(e,t)=>{let r="";for(let a=0;a<e.length&&a<t.length;a++){let n=t[a];Gr(n)&&(r+=e[a]);}return r},Ip=(e,t)=>e.split("").map(r=>Gr(r)?t:r).join(""),Nw=(e,t,r)=>{let a=0;for(let l=0;l<r&&l<e.length&&l<t.length;l++)Gr(t[l])&&a++;let i=0,s=0;for(let l=0;l<t.length&&s<a;l++)i++,Gr(t[l])&&s++;for(;i<t.length&&!Gr(t[i]);)i++;return Math.min(i,e.length)},Ep=K__namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a="",onChange:n,mask:i,maskPlaceholder:s="_",showMaskPlaceholder:l=false,includeMaskChars:d=false,disabled:m,placeholder:u,...c},f)=>{let p=typeof i=="string"&&i in Bs?Bs[i].mask:i,[h,y]=K__namespace.useState(a),[g,x]=K__namespace.useState(""),[R,b]=K__namespace.useState(false),v=K__namespace.useRef(null),C=r!==void 0?r:h;K__namespace.useImperativeHandle(f,()=>v.current),K__namespace.useEffect(()=>{let T=Yn(C,p,true);x(T);},[C,p]);let w=T=>{let N=T.target.value,P=T.target.selectionStart??0,M=N.replace(/[^\w]/g,""),D=Yn(M,p,true),E=Fs(D,p);x(D),r===void 0&&y(d?D:E),n?.(E,D),requestAnimationFrame(()=>{if(v.current){let L=Nw(D,p,P);v.current.setSelectionRange(L,L);}});},k=T=>{if(["ArrowLeft","ArrowRight","Home","End","Tab"].includes(T.key)||T.ctrlKey||T.metaKey)return;let N=v.current;if(!N)return;let P=N.selectionStart??0;if(T.key==="Backspace"&&P>0){let M=P-1;for(;M>0&&!Gr(p[M]);)M--;let D=Fs(g,p),E=0;for(let I=0;I<M&&I<p.length;I++)Gr(p[I])&&E++;let L=D.slice(0,Math.max(0,E-1))+D.slice(E),V=Yn(L,p,true);x(V),r===void 0&&y(d?V:L),n?.(L,V),T.preventDefault(),requestAnimationFrame(()=>{v.current&&v.current.setSelectionRange(M,M);});}},S=l?Ip(p,s):u;return jsxRuntime.jsx("input",{ref:v,type:"text",value:g,onChange:w,onKeyDown:k,onFocus:()=>b(true),onBlur:()=>b(false),disabled:m,placeholder:S,className:o(Lp({size:t}),e),style:{borderColor:R?"var(--color-foreground)":void 0},...c})});Ep.displayName="MaskedInput";var Hp=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),Xn={"DD/MM/YYYY":"/","MM/DD/YYYY":"/","YYYY-MM-DD":"-","DD.MM.YYYY":"."},Gs={"DD/MM/YYYY":["day","month","year"],"MM/DD/YYYY":["month","day","year"],"YYYY-MM-DD":["year","month","day"],"DD.MM.YYYY":["day","month","year"]},Os=(e,t)=>String(e).padStart(t,"0"),jn=(e,t)=>{let r=Os(e.getDate(),2),a=Os(e.getMonth()+1,2),n=Os(e.getFullYear(),4),i=Xn[t],s=Gs[t],l={day:r,month:a,year:n};return s.map(d=>l[d]).join(i)},Ap=(e,t)=>{let r=Xn[t],a=e.split(r);if(a.length!==3)return null;let n=Gs[t],i={};if(n.forEach((l,d)=>{i[l]=parseInt(a[d],10);}),isNaN(i.day)||isNaN(i.month)||isNaN(i.year)||i.month<1||i.month>12||i.day<1||i.day>31||i.year<1e3||i.year>9999)return null;let s=new Date(i.year,i.month-1,i.day);return s.getFullYear()!==i.year||s.getMonth()!==i.month-1||s.getDate()!==i.day?null:s},Mw=e=>e.toLowerCase(),Tw=e=>{let t=Xn[e];return Gs[e].map(a=>a==="year"?"####":"##").join(t)},zp=K__namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a,onChange:n,format:i="DD/MM/YYYY",minDate:s,maxDate:l,showIcon:d=true,disabled:m,placeholder:u,...c},f)=>{let[p,h]=K__namespace.useState(a??null),[y,g]=K__namespace.useState(""),[x,R]=K__namespace.useState(null),b=K__namespace.useRef(null),v=r!==void 0?r:p;K__namespace.useImperativeHandle(f,()=>b.current),K__namespace.useEffect(()=>{v?(g(jn(v,i)),R(null)):g("");},[v,i]);let C=Xn[i],w=Tw(i),k=N=>{let P=N.target.value;P=P.replace(new RegExp(`[^0-9\\${C}]`,"g"),"");let M=P.replace(new RegExp(`\\${C}`,"g"),""),D="",E=0;for(let L=0;L<w.length&&E<M.length;L++)w[L]==="#"?(D+=M[E],E++):D+=w[L];if(g(D),D.length===w.length){let L=Ap(D,i);if(L){if(s&&L<s){R(`Date must be after ${jn(s,i)}`);return}if(l&&L>l){R(`Date must be before ${jn(l,i)}`);return}R(null),r===void 0&&h(L),n?.(L);}else R("Invalid date");}else r===void 0&&h(null),n?.(null),R(null);},S=()=>{y&&y.length!==w.length&&(g(""),R(null),r===void 0&&h(null),n?.(null));},T=t==="sm"?"h-3 w-3":t==="lg"?"h-5 w-5":"h-4 w-4";return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{ref:b,type:"text",inputMode:"numeric",value:y,onChange:k,onBlur:S,disabled:m,placeholder:u??Mw(i),className:o(Hp({size:t}),d&&"pr-10",x&&"border-danger focus-visible:ring-danger",e),"aria-invalid":!!x,"aria-describedby":x?"date-error":void 0,...c}),d&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2",children:jsxRuntime.jsx(lucideReact.Calendar,{className:o(T,"text-muted-foreground")})}),x&&jsxRuntime.jsx("p",{id:"date-error",className:"mt-1 text-xs text-danger",children:x})]})});zp.displayName="DateInput";var Bp=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),Fp=[{code:"TR",name:"Turkey",dialCode:"+90",flag:"\u{1F1F9}\u{1F1F7}",format:"(###) ### ## ##"},{code:"US",name:"United States",dialCode:"+1",flag:"\u{1F1FA}\u{1F1F8}",format:"(###) ###-####"},{code:"GB",name:"United Kingdom",dialCode:"+44",flag:"\u{1F1EC}\u{1F1E7}",format:"#### ### ####"},{code:"DE",name:"Germany",dialCode:"+49",flag:"\u{1F1E9}\u{1F1EA}",format:"#### #######"},{code:"FR",name:"France",dialCode:"+33",flag:"\u{1F1EB}\u{1F1F7}",format:"# ## ## ## ##"},{code:"IT",name:"Italy",dialCode:"+39",flag:"\u{1F1EE}\u{1F1F9}",format:"### ### ####"},{code:"ES",name:"Spain",dialCode:"+34",flag:"\u{1F1EA}\u{1F1F8}",format:"### ### ###"},{code:"NL",name:"Netherlands",dialCode:"+31",flag:"\u{1F1F3}\u{1F1F1}",format:"## ########"},{code:"BE",name:"Belgium",dialCode:"+32",flag:"\u{1F1E7}\u{1F1EA}",format:"### ## ## ##"},{code:"AT",name:"Austria",dialCode:"+43",flag:"\u{1F1E6}\u{1F1F9}",format:"### #######"},{code:"CH",name:"Switzerland",dialCode:"+41",flag:"\u{1F1E8}\u{1F1ED}",format:"## ### ## ##"},{code:"SE",name:"Sweden",dialCode:"+46",flag:"\u{1F1F8}\u{1F1EA}",format:"##-### ## ##"},{code:"NO",name:"Norway",dialCode:"+47",flag:"\u{1F1F3}\u{1F1F4}",format:"### ## ###"},{code:"DK",name:"Denmark",dialCode:"+45",flag:"\u{1F1E9}\u{1F1F0}",format:"## ## ## ##"},{code:"FI",name:"Finland",dialCode:"+358",flag:"\u{1F1EB}\u{1F1EE}",format:"## ### ####"},{code:"PL",name:"Poland",dialCode:"+48",flag:"\u{1F1F5}\u{1F1F1}",format:"### ### ###"},{code:"CZ",name:"Czech Republic",dialCode:"+420",flag:"\u{1F1E8}\u{1F1FF}",format:"### ### ###"},{code:"GR",name:"Greece",dialCode:"+30",flag:"\u{1F1EC}\u{1F1F7}",format:"### ### ####"},{code:"PT",name:"Portugal",dialCode:"+351",flag:"\u{1F1F5}\u{1F1F9}",format:"### ### ###"},{code:"RU",name:"Russia",dialCode:"+7",flag:"\u{1F1F7}\u{1F1FA}",format:"(###) ###-##-##"},{code:"UA",name:"Ukraine",dialCode:"+380",flag:"\u{1F1FA}\u{1F1E6}",format:"## ### ## ##"},{code:"RO",name:"Romania",dialCode:"+40",flag:"\u{1F1F7}\u{1F1F4}",format:"### ### ###"},{code:"HU",name:"Hungary",dialCode:"+36",flag:"\u{1F1ED}\u{1F1FA}",format:"## ### ####"},{code:"BG",name:"Bulgaria",dialCode:"+359",flag:"\u{1F1E7}\u{1F1EC}",format:"### ### ###"},{code:"HR",name:"Croatia",dialCode:"+385",flag:"\u{1F1ED}\u{1F1F7}",format:"## ### ####"},{code:"RS",name:"Serbia",dialCode:"+381",flag:"\u{1F1F7}\u{1F1F8}",format:"## ### ####"},{code:"SI",name:"Slovenia",dialCode:"+386",flag:"\u{1F1F8}\u{1F1EE}",format:"## ### ###"},{code:"SK",name:"Slovakia",dialCode:"+421",flag:"\u{1F1F8}\u{1F1F0}",format:"### ### ###"},{code:"CA",name:"Canada",dialCode:"+1",flag:"\u{1F1E8}\u{1F1E6}",format:"(###) ###-####"},{code:"MX",name:"Mexico",dialCode:"+52",flag:"\u{1F1F2}\u{1F1FD}",format:"### ### ####"},{code:"BR",name:"Brazil",dialCode:"+55",flag:"\u{1F1E7}\u{1F1F7}",format:"(##) #####-####"},{code:"AR",name:"Argentina",dialCode:"+54",flag:"\u{1F1E6}\u{1F1F7}",format:"## ####-####"},{code:"AU",name:"Australia",dialCode:"+61",flag:"\u{1F1E6}\u{1F1FA}",format:"### ### ###"},{code:"NZ",name:"New Zealand",dialCode:"+64",flag:"\u{1F1F3}\u{1F1FF}",format:"## ### ####"},{code:"JP",name:"Japan",dialCode:"+81",flag:"\u{1F1EF}\u{1F1F5}",format:"##-####-####"},{code:"KR",name:"South Korea",dialCode:"+82",flag:"\u{1F1F0}\u{1F1F7}",format:"##-####-####"},{code:"CN",name:"China",dialCode:"+86",flag:"\u{1F1E8}\u{1F1F3}",format:"### #### ####"},{code:"HK",name:"Hong Kong",dialCode:"+852",flag:"\u{1F1ED}\u{1F1F0}",format:"#### ####"},{code:"TW",name:"Taiwan",dialCode:"+886",flag:"\u{1F1F9}\u{1F1FC}",format:"### ### ###"},{code:"SG",name:"Singapore",dialCode:"+65",flag:"\u{1F1F8}\u{1F1EC}",format:"#### ####"},{code:"IN",name:"India",dialCode:"+91",flag:"\u{1F1EE}\u{1F1F3}",format:"##### #####"},{code:"PK",name:"Pakistan",dialCode:"+92",flag:"\u{1F1F5}\u{1F1F0}",format:"### #######"},{code:"AE",name:"United Arab Emirates",dialCode:"+971",flag:"\u{1F1E6}\u{1F1EA}",format:"## ### ####"},{code:"SA",name:"Saudi Arabia",dialCode:"+966",flag:"\u{1F1F8}\u{1F1E6}",format:"## ### ####"},{code:"EG",name:"Egypt",dialCode:"+20",flag:"\u{1F1EA}\u{1F1EC}",format:"### ### ####"},{code:"ZA",name:"South Africa",dialCode:"+27",flag:"\u{1F1FF}\u{1F1E6}",format:"## ### ####"},{code:"NG",name:"Nigeria",dialCode:"+234",flag:"\u{1F1F3}\u{1F1EC}",format:"### ### ####"},{code:"IL",name:"Israel",dialCode:"+972",flag:"\u{1F1EE}\u{1F1F1}",format:"##-###-####"}],qn=(e,t)=>{let r=e.replace(/\D/g,""),a="",n=0;for(let i=0;i<t.length&&n<r.length;i++)t[i]==="#"?(a+=r[n],n++):a+=t[i];return a},Vw=e=>e.replace(/#/g,"_"),Op=K__namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a="",onChange:n,country:i,defaultCountry:s="TR",onCountryChange:l,countries:d=Fp,showCountrySelect:m=true,showDialCode:u=false,disabled:c,placeholder:f,...p},h)=>{let[y,g]=K__namespace.useState(a),[x,R]=K__namespace.useState(i??s),[b,v]=K__namespace.useState(false),C=r!==void 0?r:y,w=i??x,k=d.find(M=>M.code===w)??d[0],S=qn(C,k.format),T=M=>{let E=M.target.value.replace(/\D/g,"");r===void 0&&g(E);let L=qn(E,k.format),V=`${k.dialCode} ${L}`;n?.(E,V,k);};return jsxRuntime.jsxs("div",{className:"flex",children:[m&&jsxRuntime.jsxs(is,{value:w,onValueChange:M=>{let D=d.find(V=>V.code===M);if(!D)return;i===void 0&&R(M),l?.(D);let E=qn(C,D.format),L=`${D.dialCode} ${E}`;n?.(C,L,D);},disabled:c,children:[jsxRuntime.jsx(Nn,{className:o("w-[100px] rounded-r-none border-r-0 shrink-0",t==="sm"?"h-8":t==="lg"?"h-12":"h-10"),children:jsxRuntime.jsx(ss,{children:jsxRuntime.jsxs("span",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{children:k.flag}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:k.dialCode})]})})}),jsxRuntime.jsx(Pn,{className:"max-h-[300px]",children:d.map(M=>jsxRuntime.jsx(Cn,{value:M.code,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:M.flag}),jsxRuntime.jsx("span",{className:"flex-1",children:M.name}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:M.dialCode})]})},M.code))})]}),jsxRuntime.jsxs("div",{className:"relative flex-1",children:[u&&!m&&jsxRuntime.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:k.dialCode}),jsxRuntime.jsx("input",{ref:h,type:"tel",inputMode:"tel",value:S,onChange:T,onFocus:()=>v(true),onBlur:()=>v(false),disabled:c,placeholder:f??Vw(k.format),className:o(Bp({size:t}),m&&"rounded-l-none",u&&!m&&"pl-12",e),style:{borderColor:b?"var(--color-foreground)":void 0},...p})]})]})});Op.displayName="PhoneInput";var Wp=classVarianceAuthority.cva("flex items-center justify-between w-full px-4 py-3 border-b bg-background",{variants:{variant:{solid:"bg-primary text-primary-foreground border-primary",outline:"bg-background border-border",ghost:"bg-transparent border-transparent",soft:"bg-primary/10 border-primary/20",surface:"bg-muted border-border"},size:{sm:"h-12 px-3 py-2",md:"h-14 px-4 py-3",lg:"h-16 px-6 py-4"},sticky:{true:"sticky top-0 z-50",false:""}},defaultVariants:{variant:"outline",size:"md",sticky:false}}),$p=K__namespace.forwardRef(({className:e,variant:t,size:r,sticky:a,brand:n,children:i,mobileBreakpoint:s="md",...l},d)=>{let[m,u]=K__namespace.useState(false),c={sm:"hidden sm:flex",md:"hidden md:flex",lg:"hidden lg:flex"}[s],f={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden"}[s];return jsxRuntime.jsxs("nav",{ref:d,className:o(Wp({variant:t,size:r,sticky:a,className:e})),...l,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between w-full",children:[n&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:n}),jsxRuntime.jsx("div",{className:o("items-center gap-4 flex-1 justify-end",c),children:i}),jsxRuntime.jsx("button",{type:"button",className:o("p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors",f),onClick:()=>u(!m),"aria-label":m?"Close menu":"Open menu","aria-expanded":m,children:m?jsxRuntime.jsx(lucideReact.X,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"})})]}),m&&jsxRuntime.jsx("div",{className:o("absolute top-full left-0 right-0 flex flex-col gap-2 p-4 bg-background border-b border-border shadow-lg",f),children:i})]})});$p.displayName="Navbar";var _p=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex items-center gap-2 font-semibold text-lg",e),...t}));_p.displayName="NavbarBrand";var Kp=K__namespace.forwardRef(({className:e,justify:t="start",...r},a)=>{let n={start:"justify-start",center:"justify-center",end:"justify-end"}[t];return jsxRuntime.jsx("div",{ref:a,className:o("flex items-center gap-4",n,e),...r})});Kp.displayName="NavbarContent";var Yp=K__namespace.forwardRef(({className:e,isActive:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex items-center",t&&"text-primary font-medium",e),...r}));Yp.displayName="NavbarItem";var Up=K__namespace.forwardRef(({className:e,isActive:t,...r},a)=>jsxRuntime.jsx("a",{ref:a,className:o("text-sm font-medium transition-colors hover:text-primary",t?"text-primary":"text-muted-foreground",e),...r}));Up.displayName="NavbarLink";var Xp=classVarianceAuthority.cva("inline-flex items-center gap-1 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"text-primary-foreground bg-primary px-2 py-0.5 rounded hover:bg-primary/90",outline:"text-primary underline-offset-4 hover:underline",ghost:"text-foreground hover:text-primary",soft:"text-primary bg-primary/10 px-2 py-0.5 rounded hover:bg-primary/20",surface:"text-foreground bg-muted px-2 py-0.5 rounded hover:bg-muted/80"},size:{sm:"text-xs",md:"text-sm",lg:"text-base"},underline:{none:"",hover:"hover:underline underline-offset-4",always:"underline underline-offset-4"}},defaultVariants:{variant:"outline",size:"md",underline:"hover"}}),qp=K__namespace.forwardRef(({className:e,variant:t,size:r,underline:a,isExternal:n,showExternalIcon:i=true,isDisabled:s,children:l,...d},m)=>{let u=n?{target:"_blank",rel:"noopener noreferrer"}:{};return jsxRuntime.jsxs("a",{ref:m,className:o(Xp({variant:t,size:r,underline:a,className:e}),s&&"pointer-events-none opacity-50"),"aria-disabled":s,...u,...d,children:[l,n&&i&&jsxRuntime.jsx(lucideReact.ExternalLink,{className:"h-3 w-3 ml-0.5","aria-hidden":"true"})]})});qp.displayName="Link";var Zp=classVarianceAuthority.cva("fixed z-50 transition-all duration-300",{variants:{position:{"bottom-right":"bottom-6 right-6","bottom-left":"bottom-6 left-6","bottom-center":"bottom-6 left-1/2 -translate-x-1/2"}},defaultVariants:{position:"bottom-right"}}),Jp=K__namespace.forwardRef(({className:e,position:t,threshold:r=400,icon:a,behavior:n="smooth",variant:i="solid",color:s="default",size:l="md",radius:d="full",target:m,onVisibilityChange:u,onClick:c,...f},p)=>{let[h,y]=K__namespace.useState(false);K__namespace.useEffect(()=>{let R=m?.current||window,b=()=>{let C=(m?.current?m.current.scrollTop:window.scrollY||document.documentElement.scrollTop)>r;C!==h&&(y(C),u?.(C));};return R.addEventListener("scroll",b,{passive:true}),b(),()=>{R.removeEventListener("scroll",b);}},[r,m,h,u]);let g=R=>{m?.current?m.current.scrollTo({top:0,behavior:n}):window.scrollTo({top:0,behavior:n}),c?.(R);},x=l==="sm"?"h-4 w-4":l==="lg"?"h-6 w-6":"h-5 w-5";return jsxRuntime.jsx("div",{className:o(Zp({position:t}),h?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 translate-y-4 pointer-events-none",e),children:jsxRuntime.jsx($,{ref:p,type:"button",variant:i,color:s,size:"icon",radius:d,onClick:g,"aria-label":"Back to top",className:o("shadow-lg",l==="sm"&&"h-9 w-9",l==="md"&&"h-10 w-10",l==="lg"&&"h-12 w-12"),...f,children:a||jsxRuntime.jsx(lucideReact.ArrowUp,{className:x})})})});Jp.displayName="BackTop";var _w=U__namespace.Menu,Kw=U__namespace.Group,Yw=U__namespace.Portal,Uw=U__namespace.Sub,jw=U__namespace.RadioGroup,Qp=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(U__namespace.Root,{ref:r,className:o("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",e),...t}));Qp.displayName=U__namespace.Root.displayName;var ef=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(U__namespace.Trigger,{ref:r,className:o("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e),...t}));ef.displayName=U__namespace.Trigger.displayName;var tf=K__namespace.forwardRef(({className:e,inset:t,children:r,...a},n)=>jsxRuntime.jsxs(U__namespace.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),...a,children:[r,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}));tf.displayName=U__namespace.SubTrigger.displayName;var rf=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(U__namespace.SubContent,{ref:r,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));rf.displayName=U__namespace.SubContent.displayName;var af=K__namespace.forwardRef(({className:e,align:t="start",alignOffset:r=-4,sideOffset:a=8,...n},i)=>jsxRuntime.jsx(U__namespace.Portal,{children:jsxRuntime.jsx(U__namespace.Content,{ref:i,align:t,alignOffset:r,sideOffset:a,className:o("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));af.displayName=U__namespace.Content.displayName;var of=K__namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx(U__namespace.Item,{ref:a,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),...r}));of.displayName=U__namespace.Item.displayName;var nf=K__namespace.forwardRef(({className:e,children:t,checked:r,...a},n)=>jsxRuntime.jsxs(U__namespace.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:r,...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(U__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));nf.displayName=U__namespace.CheckboxItem.displayName;var sf=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsxs(U__namespace.RadioItem,{ref:a,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),...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(U__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));sf.displayName=U__namespace.RadioItem.displayName;var lf=K__namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx(U__namespace.Label,{ref:a,className:o("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));lf.displayName=U__namespace.Label.displayName;var df=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(U__namespace.Separator,{ref:r,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));df.displayName=U__namespace.Separator.displayName;var cf=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});cf.displayName="MenubarShortcut";var mf=classVarianceAuthority.cva("flex",{variants:{orientation:{horizontal:"flex-row items-center",vertical:"flex-col"},size:{sm:"gap-2",md:"gap-4",lg:"gap-6"}},defaultVariants:{orientation:"horizontal",size:"md"}}),uf=K__namespace.forwardRef(({className:e,orientation:t,size:r,currentStep:a=0,children:n,...i},s)=>{let l=K__namespace.Children.toArray(n);return jsxRuntime.jsx("div",{ref:s,className:o(mf({orientation:t,size:r,className:e})),...i,children:l.map((d,m)=>K__namespace.isValidElement(d)?K__namespace.cloneElement(d,{...d.props,stepNumber:m+1,status:d.props.status||(m<a?"completed":m===a?"current":"upcoming"),isLast:m===l.length-1,orientation:t,size:r}):d)})});uf.displayName="Steps";var pf=classVarianceAuthority.cva("flex items-center",{variants:{orientation:{horizontal:"flex-row",vertical:"flex-col items-start"},size:{sm:"gap-2",md:"gap-3",lg:"gap-4"}},defaultVariants:{orientation:"horizontal",size:"md"}}),qw=classVarianceAuthority.cva("flex items-center justify-center rounded-full font-medium transition-colors",{variants:{status:{completed:"bg-primary text-primary-foreground",current:"bg-primary text-primary-foreground ring-2 ring-primary ring-offset-2 ring-offset-background",upcoming:"bg-muted text-muted-foreground border-2 border-muted-foreground/30"},size:{sm:"h-6 w-6 text-xs",md:"h-8 w-8 text-sm",lg:"h-10 w-10 text-base"}},defaultVariants:{status:"upcoming",size:"md"}}),Zw=classVarianceAuthority.cva("bg-muted transition-colors",{variants:{orientation:{horizontal:"h-0.5 flex-1 min-w-8",vertical:"w-0.5 min-h-8 ml-4"},status:{completed:"bg-primary",current:"bg-muted",upcoming:"bg-muted"}},defaultVariants:{orientation:"horizontal",status:"upcoming"}}),ff=K__namespace.forwardRef(({className:e,orientation:t="horizontal",size:r="md",title:a,description:n,icon:i,status:s="upcoming",stepNumber:l,isLast:d,...m},u)=>jsxRuntime.jsxs("div",{ref:u,className:o(pf({orientation:t,size:r,className:e}),!d&&t==="horizontal"&&"flex-1"),...m,children:[jsxRuntime.jsx("div",{className:o("flex items-center",t==="vertical"&&"flex-col items-start"),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx("div",{className:o(qw({status:s,size:r})),children:s==="completed"?jsxRuntime.jsx(lucideReact.Check,{className:r==="sm"?"h-3 w-3":r==="lg"?"h-5 w-5":"h-4 w-4"}):i||l}),(a||n)&&jsxRuntime.jsxs("div",{className:"flex flex-col",children:[a&&jsxRuntime.jsx("span",{className:o("font-medium",r==="sm"&&"text-sm",r==="lg"&&"text-lg",s==="upcoming"&&"text-muted-foreground"),children:a}),n&&jsxRuntime.jsx("span",{className:o("text-muted-foreground",r==="sm"&&"text-xs",r==="md"&&"text-sm",r==="lg"&&"text-base"),children:n})]})]})}),!d&&jsxRuntime.jsx("div",{className:o(Zw({orientation:t,status:s==="completed"?"completed":"upcoming"}),t==="vertical"&&"my-2")})]}));ff.displayName="Step";function aN({className:e,data:t,columns:r,selectable:a=false,selectedKeys:n,onSelectionChange:i,getRowKey:s=(v,C)=>String(C),sortable:l=false,sortState:d,onSortChange:m,paginated:u=false,pageSizeOptions:c=[10,20,50],paginationState:f,onPaginationChange:p,emptyContent:h="No data",loading:y=false,striped:g=false,hoverable:x=true,...R},b){let[v,C]=K__namespace.useState(new Set),[w,k]=K__namespace.useState({columnId:null,direction:null}),[S,T]=K__namespace.useState({pageIndex:0,pageSize:c[0]||10}),N=n??v,P=d??w,M=f??S,D=z=>{i?i(z):C(z);},E=z=>{m?m(z):k(z);},L=z=>{p?p(z):T(z);},V=K__namespace.useMemo(()=>{if(!P.columnId||!P.direction)return t;let z=r.find(B=>B.id===P.columnId);return z?[...t].sort((B,te)=>{let F=z.accessor(B),oe=z.accessor(te);if(F===oe)return 0;if(F==null)return 1;if(oe==null)return -1;let ee=String(F).localeCompare(String(oe),void 0,{numeric:true});return P.direction==="asc"?ee:-ee}):t},[t,P,r]),I=K__namespace.useMemo(()=>{if(!u)return V;let z=M.pageIndex*M.pageSize;return V.slice(z,z+M.pageSize)},[V,u,M]),A=Math.ceil(V.length/M.pageSize),G=z=>{if(z){let B=new Set(I.map((te,F)=>s(te,F)));D(B);}else D(new Set);},H=(z,B)=>{let te=new Set(N);B?te.add(z):te.delete(z),D(te);},j=I.length>0&&I.every((z,B)=>N.has(s(z,B))),W=I.some((z,B)=>N.has(s(z,B))),Le=z=>{if(!r.find(F=>F.id===z)?.sortable&&!l)return;let te="asc";P.columnId===z&&(P.direction==="asc"?te="desc":P.direction==="desc"&&(te=null)),E({columnId:te?z:null,direction:te});},xe=z=>P.columnId!==z?jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4 text-muted-foreground/50"}):P.direction==="asc"?jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"});return jsxRuntime.jsxs("div",{ref:b,className:o("w-full",e),...R,children:[jsxRuntime.jsx("div",{className:"relative w-full overflow-auto rounded-md border",children:jsxRuntime.jsxs("table",{className:"w-full caption-bottom text-sm",children:[jsxRuntime.jsx("thead",{className:"[&_tr]:border-b bg-muted/50",children:jsxRuntime.jsxs("tr",{children:[a&&jsxRuntime.jsx("th",{className:"h-12 w-12 px-4",children:jsxRuntime.jsx(No,{checked:j?true:W?"indeterminate":false,onCheckedChange:G,"aria-label":"Select all"})}),r.map(z=>{let B=z.sortable??l;return jsxRuntime.jsx("th",{className:o("h-12 px-4 text-left align-middle font-medium text-muted-foreground",B&&"cursor-pointer select-none hover:text-foreground"),style:{width:z.width},onClick:()=>B&&Le(z.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[z.header,B&&xe(z.id)]})},z.id)})]})}),jsxRuntime.jsx("tbody",{className:"[&_tr:last-child]:border-0",children:y?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:r.length+(a?1:0),className:"h-24 text-center text-muted-foreground",children:"Loading..."})}):I.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:r.length+(a?1:0),className:"h-24 text-center text-muted-foreground",children:h})}):I.map((z,B)=>{let te=s(z,B),F=N.has(te);return jsxRuntime.jsxs("tr",{className:o("border-b transition-colors",x&&"hover:bg-muted/50",g&&B%2===1&&"bg-muted/30",F&&"bg-muted"),"data-state":F?"selected":void 0,children:[a&&jsxRuntime.jsx("td",{className:"w-12 px-4",children:jsxRuntime.jsx(No,{checked:F,onCheckedChange:oe=>H(te,!!oe),"aria-label":`Select row ${B+1}`})}),r.map(oe=>jsxRuntime.jsx("td",{className:"p-4 align-middle",children:oe.cell?oe.cell(z,B):oe.accessor(z)},oe.id))]},te)})})]})}),u&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between px-2 py-4",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx("span",{children:"Rows per page:"}),jsxRuntime.jsx("select",{value:M.pageSize,onChange:z=>L({pageIndex:0,pageSize:Number(z.target.value)}),className:"h-8 rounded-md border bg-transparent px-2",children:c.map(z=>jsxRuntime.jsx("option",{value:z,children:z},z))})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground",children:["Page ",M.pageIndex+1," of ",A||1]}),jsxRuntime.jsxs("div",{className:"flex gap-1",children:[jsxRuntime.jsx("button",{onClick:()=>L({...M,pageIndex:M.pageIndex-1}),disabled:M.pageIndex===0,className:"inline-flex h-8 w-8 items-center justify-center rounded-md border bg-transparent hover:bg-muted disabled:opacity-50 disabled:pointer-events-none","aria-label":"Previous page",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{onClick:()=>L({...M,pageIndex:M.pageIndex+1}),disabled:M.pageIndex>=A-1,className:"inline-flex h-8 w-8 items-center justify-center rounded-md border bg-transparent hover:bg-muted disabled:opacity-50 disabled:pointer-events-none","aria-label":"Next page",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]})]})]})}var oN=K__namespace.forwardRef(aN);var bf=classVarianceAuthority.cva("",{variants:{size:{sm:"[--tree-indent:12px] [--tree-item-height:28px] text-xs",md:"[--tree-indent:16px] [--tree-item-height:32px] text-sm",lg:"[--tree-indent:20px] [--tree-item-height:40px] text-base"}},defaultVariants:{size:"md"}}),vf=K__namespace.forwardRef(({className:e,size:t,data:r,defaultExpandedIds:a=[],expandedIds:n,onExpandedChange:i,selectedId:s,onSelect:l,showIcons:d=true,leafIcon:m=jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"}),folderIcon:u=jsxRuntime.jsx(lucideReact.Folder,{className:"h-4 w-4"}),folderOpenIcon:c=jsxRuntime.jsx(lucideReact.FolderOpen,{className:"h-4 w-4"}),defaultExpandAll:f=false,...p},h)=>{let y=K__namespace.useCallback(w=>w.reduce((k,S)=>S.children?.length?[...k,S.id,...y(S.children)]:k,[]),[]),[g,x]=K__namespace.useState(()=>f?y(r):a),R=n??g,b=w=>{i?i(w):x(w);},v=w=>{R.includes(w)?b(R.filter(k=>k!==w)):b([...R,w]);},C=(w,k=0)=>{let S=w.children&&w.children.length>0,T=R.includes(w.id),N=s===w.id,P=()=>{w.disabled||l?.(w);},M=E=>{E.stopPropagation(),S&&v(w.id);},D=()=>w.icon?w.icon:S?T?c:u:m;return jsxRuntime.jsxs("div",{role:"treeitem","aria-expanded":S?T:void 0,children:[jsxRuntime.jsxs("div",{className:o("flex items-center gap-1 rounded-md px-2 cursor-pointer transition-colors","h-[var(--tree-item-height)]","hover:bg-muted/50",N&&"bg-primary/10 text-primary",w.disabled&&"opacity-50 cursor-not-allowed"),style:{paddingLeft:`calc(${k} * var(--tree-indent) + 8px)`},onClick:P,children:[jsxRuntime.jsx("button",{type:"button",className:o("flex h-5 w-5 items-center justify-center rounded hover:bg-muted",!S&&"invisible"),onClick:M,tabIndex:-1,"aria-label":T?"Collapse":"Expand",children:T?jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})}),d&&jsxRuntime.jsx("span",{className:"flex-shrink-0 text-muted-foreground",children:D()}),jsxRuntime.jsx("span",{className:"truncate",children:w.name})]}),S&&T&&jsxRuntime.jsx("div",{role:"group",children:w.children.map(E=>C(E,k+1))})]},w.id)};return jsxRuntime.jsx("div",{ref:h,role:"tree",className:o(bf({size:t,className:e})),...p,children:r.map(w=>C(w))})});vf.displayName="TreeView";var xf=classVarianceAuthority.cva("flex rounded-md border border-input bg-background text-sm placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"},fullWidth:{true:"w-full",false:"w-fit min-w-48"}},defaultVariants:{size:"md",fullWidth:false}}),gN=({text:e,query:t})=>{if(!t)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let r=new RegExp(`(${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi"),a=e.split(r);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:a.map((n,i)=>r.test(n)?jsxRuntime.jsx("mark",{className:"bg-primary/20 text-foreground rounded-sm",children:n},i):jsxRuntime.jsx("span",{children:n},i))})},bN=(e,t)=>{let[r,a]=K__namespace.useState(e);return K__namespace.useEffect(()=>{let n=setTimeout(()=>{a(e);},t);return ()=>{clearTimeout(n);}},[e,t]),r},yf=K__namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a="",onChange:n,onSelect:i,options:s=[],loadOptions:l,debounceMs:d=300,minChars:m=0,placeholder:u="Type to search...",emptyText:c="No results found.",loadingText:f="Loading...",clearable:p=false,freeSolo:h=true,maxHeight:y=200,highlightMatch:g=true,fullWidth:x=false,disabled:R,...b},v)=>{let[C,w]=K__namespace.useState(false),[k,S]=K__namespace.useState(a),[T,N]=K__namespace.useState([]),[P,M]=K__namespace.useState(false),[D,E]=K__namespace.useState(false),L=K__namespace.useRef(null),V=r!==void 0?r:k,I=bN(V,d);K__namespace.useImperativeHandle(v,()=>L.current);let A=l?T:s,G=K__namespace.useMemo(()=>l?A:A.filter(ee=>ee.label.toLowerCase().includes(V.toLowerCase())),[A,V,l]);K__namespace.useEffect(()=>{if(!l)return;if(I.length<m){N([]);return}let ee=false;return (async()=>{M(true);try{let nt=await l(I);ee||N(nt);}catch{ee||N([]);}finally{ee||M(false);}})(),()=>{ee=true;}},[I,l,m]);let H=ee=>{r===void 0&&S(ee),n?.(ee);},j=ee=>{let ot=ee.target.value;H(ot),ot.length>=m&&w(true);},W=ee=>{H(ee.label),i?.(ee),w(false);},Le=()=>{H(""),L.current?.focus();},xe=()=>{E(true),V.length>=m&&(G.length>0||P)&&w(true);},z=()=>{E(false);},B=ee=>{ee.key==="Escape"&&w(false),ee.key==="ArrowDown"&&!C&&G.length>0&&w(true);},te=C&&V.length>=m,F=t==="sm"?"h-3 w-3":t==="lg"?"h-5 w-5":"h-4 w-4",oe=p&&V?"pr-8":"pr-3";return jsxRuntime.jsxs(Ee,{open:te,onOpenChange:w,children:[jsxRuntime.jsx(ms,{asChild:true,children:jsxRuntime.jsxs("div",{className:o("relative",x?"w-full":"w-fit"),children:[jsxRuntime.jsx("input",{ref:L,type:"text",value:V,onChange:j,onFocus:xe,onBlur:z,onKeyDown:B,disabled:R,placeholder:u,className:o(xf({size:t,fullWidth:x}),oe,e),style:{borderColor:D?"var(--color-foreground)":void 0},role:"combobox","aria-expanded":te,"aria-autocomplete":"list","aria-controls":"autocomplete-list",...b}),p&&V&&!R&&jsxRuntime.jsx("button",{type:"button",onClick:Le,className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground","aria-label":"Clear",children:jsxRuntime.jsx(lucideReact.X,{className:F})})]})}),jsxRuntime.jsx(Me,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",onOpenAutoFocus:ee=>ee.preventDefault(),children:jsxRuntime.jsx(cmdk.Command,{className:"overflow-hidden rounded-md",shouldFilter:false,children:jsxRuntime.jsx(cmdk.Command.List,{id:"autocomplete-list",className:"overflow-y-auto p-1",style:{maxHeight:y},children:P?jsxRuntime.jsxs("div",{className:"flex items-center justify-center gap-2 py-6 text-sm text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:o(F,"animate-spin")}),f]}):G.length===0?jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:c}):G.map(ee=>jsxRuntime.jsxs(cmdk.Command.Item,{value:ee.value,disabled:ee.disabled,onSelect:()=>W(ee),className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground"),children:[jsxRuntime.jsx(lucideReact.Check,{className:o("mr-2 h-4 w-4 shrink-0",V===ee.label?"opacity-100":"opacity-0")}),jsxRuntime.jsx("span",{className:"flex-1",children:g?jsxRuntime.jsx(gN,{text:ee.label,query:V}):ee.label})]},ee.value))})})})]})});yf.displayName="Autocomplete";var Ys=K__namespace.createContext(null),Us=K__namespace.createContext(null),js=()=>{let e=K__namespace.useContext(Ys);if(!e)throw new Error("useFormContext must be used within a Form");return e},Qn=()=>{let e=K__namespace.useContext(Us);if(!e)throw new Error("useFieldContext must be used within a FormField");return e},vN={required:(e="This field is required")=>({validate:t=>typeof t=="string"?t.trim().length>0:Array.isArray(t)?t.length>0:t!=null,message:e}),minLength:(e,t)=>({validate:r=>typeof r=="string"&&r.length>=e,message:t??`Must be at least ${e} characters`}),maxLength:(e,t)=>({validate:r=>typeof r=="string"&&r.length<=e,message:t??`Must be at most ${e} characters`}),min:(e,t)=>({validate:r=>typeof r=="number"&&r>=e,message:t??`Must be at least ${e}`}),max:(e,t)=>({validate:r=>typeof r=="number"&&r<=e,message:t??`Must be at most ${e}`}),email:(e="Invalid email address")=>({validate:t=>typeof t=="string"&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t),message:e}),pattern:(e,t="Invalid format")=>({validate:r=>typeof r=="string"&&e.test(r),message:t}),custom:(e,t)=>({validate:e,message:t})},Rf=K__namespace.forwardRef(({defaultValues:e={},onSubmit:t,onError:r,validateOnBlur:a=true,validateOnChange:n=false,children:i,className:s,...l},d)=>{let[m,u]=K__namespace.useState(e),[c,f]=K__namespace.useState({}),[p,h]=K__namespace.useState({}),[y,g]=K__namespace.useState({}),[x,R]=K__namespace.useState(false),b=K__namespace.useRef(new Map),v=K__namespace.useCallback((L,V)=>{b.current.set(L,V);},[]),C=K__namespace.useCallback(L=>{b.current.delete(L);},[]),w=K__namespace.useCallback(L=>{let V=b.current.get(L)||[],I=m[L];for(let A of V)if(!A.validate(I))return f(G=>({...G,[L]:A.message})),false;return f(A=>({...A,[L]:null})),true},[m]),k=K__namespace.useCallback(()=>{let L=true,V={};return b.current.forEach((I,A)=>{let G=m[A];for(let H of I)if(!H.validate(G)){V[A]=H.message,L=false;break}V[A]||(V[A]=null);}),f(V),L},[m]),S=K__namespace.useCallback((L,V)=>{u(I=>({...I,[L]:V})),g(I=>({...I,[L]:true})),n&&setTimeout(()=>{w(L);},0);},[n,w]),T=K__namespace.useCallback((L,V)=>{f(I=>({...I,[L]:V}));},[]),N=K__namespace.useCallback((L,V)=>{h(I=>({...I,[L]:V})),V&&a&&w(L);},[a,w]),P=K__namespace.useCallback(L=>({value:m[L],error:c[L]??null,touched:p[L]??false,dirty:y[L]??false}),[m,c,p,y]),M=K__namespace.useCallback(()=>{u(e),f({}),h({}),g({});},[e]),D=async L=>{L.preventDefault();let V={};if(b.current.forEach((A,G)=>{V[G]=true;}),h(V),!k()){r?.(c);return}if(t){R(true);try{await t(m);}finally{R(false);}}},E={values:m,errors:c,touched:p,dirty:y,isSubmitting:x,setValue:S,setError:T,setTouched:N,validateField:w,validateAll:k,registerField:v,unregisterField:C,getFieldState:P,reset:M};return jsxRuntime.jsx(Ys.Provider,{value:E,children:jsxRuntime.jsx("form",{ref:d,onSubmit:D,className:o("space-y-4",s),...l,children:i})})});Rf.displayName="Form";var wf=({name:e,rules:t=[],defaultValue:r,children:a})=>{let n=js(),i=K__namespace.useId();K__namespace.useEffect(()=>(n.registerField(e,t),r!==void 0&&n.values[e]===void 0&&n.setValue(e,r),()=>{n.unregisterField(e);}),[e,t,r,n]);let s=n.getFieldState(e),l={name:e,id:`${i}-${e}`,value:s.value,error:s.error,touched:s.touched,dirty:s.dirty};return jsxRuntime.jsx(Us.Provider,{value:l,children:a})};wf.displayName="FormField";var Nf=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("space-y-1.5",e),...t}));Nf.displayName="FormItem";var Pf=K__namespace.forwardRef(({className:e,required:t,children:r,...a},n)=>{let{id:i,error:s,touched:l}=Qn();return jsxRuntime.jsxs(ra,{ref:n,htmlFor:i,className:o(s&&l&&"text-danger",e),...a,children:[r,t&&jsxRuntime.jsx("span",{className:"ml-1 text-danger",children:"*"})]})});Pf.displayName="FormLabel";var Cf=({children:e})=>{let{name:t,id:r,error:a,touched:n}=Qn(),i=js(),s=i.getFieldState(t),l=m=>{let u=m.target,c=u.type==="checkbox"?u.checked:u.value;i.setValue(t,c);},d=()=>{i.setTouched(t,true);};return K__namespace.cloneElement(e,{id:r,name:t,value:s.value??"",onChange:l,onBlur:d,"aria-invalid":a&&n?"true":void 0,"aria-describedby":a&&n?`${r}-error`:void 0})};Cf.displayName="FormControl";var Sf=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("p",{ref:r,className:o("text-xs text-muted-foreground",e),...t}));Sf.displayName="FormDescription";var Mf=K__namespace.forwardRef(({className:e,message:t,...r},a)=>{let{id:n,error:i,touched:s}=Qn(),l=t??(s?i:null);return l?jsxRuntime.jsx("p",{ref:a,id:`${n}-error`,className:o("text-xs text-danger",e),role:"alert",...r,children:l}):null});Mf.displayName="FormMessage";var kf=classVarianceAuthority.cva("inline-flex items-center gap-3",{variants:{size:{sm:"[&_[data-user-avatar]]:h-8 [&_[data-user-avatar]]:w-8",md:"[&_[data-user-avatar]]:h-10 [&_[data-user-avatar]]:w-10",lg:"[&_[data-user-avatar]]:h-12 [&_[data-user-avatar]]:w-12"}},defaultVariants:{size:"md"}}),Df=K__namespace.forwardRef(({className:e,size:t,name:r,description:a,avatarUrl:n,avatarFallback:i,trailing:s,...l},d)=>{let m=i||r.split(" ").map(u=>u[0]).join("").toUpperCase().slice(0,2);return jsxRuntime.jsxs("div",{ref:d,className:o(kf({size:t,className:e})),...l,children:[jsxRuntime.jsxs(aa,{"data-user-avatar":true,children:[n&&jsxRuntime.jsx(Aa,{src:n,alt:r}),jsxRuntime.jsx(oa,{children:m})]}),jsxRuntime.jsxs("div",{className:"flex flex-col min-w-0",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium leading-none truncate",children:r}),a&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground truncate",children:a})]}),s&&jsxRuntime.jsx("div",{className:"ml-auto flex-shrink-0",children:s})]})});Df.displayName="User";var Lf=classVarianceAuthority.cva("font-mono rounded",{variants:{variant:{solid:"bg-primary text-primary-foreground",outline:"border border-input bg-transparent",ghost:"bg-transparent",soft:"bg-muted text-foreground",surface:"bg-muted/50 text-foreground border border-border"},size:{sm:"px-1 py-0.5 text-xs",md:"px-1.5 py-0.5 text-sm",lg:"px-2 py-1 text-base"}},defaultVariants:{variant:"soft",size:"md"}}),If=K__namespace.forwardRef(({className:e,variant:t,size:r,...a},n)=>jsxRuntime.jsx("code",{ref:n,className:o(Lf({variant:t,size:r,className:e})),...a}));If.displayName="Code";var Ef=classVarianceAuthority.cva("relative flex items-center gap-2 font-mono rounded-lg border",{variants:{variant:{solid:"bg-primary text-primary-foreground border-primary",outline:"bg-transparent border-input",ghost:"bg-transparent border-transparent",soft:"bg-muted border-muted",surface:"bg-muted/50 border-border"},size:{sm:"px-3 py-1.5 text-xs",md:"px-4 py-2 text-sm",lg:"px-5 py-3 text-base"}},defaultVariants:{variant:"surface",size:"md"}}),Hf=K__namespace.forwardRef(({className:e,variant:t,size:r,code:a,copyable:n=true,copyLabel:i="Copy",onCopy:s,symbol:l="$",hideSymbol:d=false,...m},u)=>{let[c,f]=K__namespace.useState(false),p=async()=>{try{await navigator.clipboard.writeText(a),f(!0),s?.(),setTimeout(()=>f(!1),2e3);}catch(h){console.error("Failed to copy:",h);}};return jsxRuntime.jsxs("div",{ref:u,className:o(Ef({variant:t,size:r,className:e})),...m,children:[!d&&jsxRuntime.jsx("span",{className:"text-muted-foreground select-none",children:l}),jsxRuntime.jsx("code",{className:"flex-1 truncate",children:a}),n&&jsxRuntime.jsx("button",{type:"button",onClick:p,className:o("flex-shrink-0 rounded p-1 transition-colors","hover:bg-black/10 dark:hover:bg-white/10","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),"aria-label":c?"Copied":i,children:c?jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4 text-green-500"}):jsxRuntime.jsx(lucideReact.Copy,{className:"h-4 w-4 text-muted-foreground"})})]})});Hf.displayName="Snippet";var Zs=classVarianceAuthority.cva("overflow-hidden",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),Af=K__namespace.forwardRef(({className:e,radius:t,src:r,alt:a,fallback:n,showSkeleton:i=true,onLoad:s,onError:l,fit:d="cover",aspectRatio:m,style:u,...c},f)=>{let[p,h]=K__namespace.useState("loading");K__namespace.useEffect(()=>{r&&h("loading");},[r]);let y=()=>{h("loaded"),s?.();},g=()=>{h("error"),l?.();},x={contain:"object-contain",cover:"object-cover",fill:"object-fill",none:"object-none","scale-down":"object-scale-down"}[d];return p==="error"&&n?jsxRuntime.jsx("div",{className:o(Zs({radius:t}),"flex items-center justify-center bg-muted",e),style:{aspectRatio:m,...u},children:n}):jsxRuntime.jsxs("div",{className:o(Zs({radius:t}),"relative",e),style:{aspectRatio:m,...u},children:[p==="loading"&&i&&jsxRuntime.jsx(Rn,{className:"absolute inset-0 h-full w-full"}),jsxRuntime.jsx("img",{ref:f,src:r,alt:a,onLoad:y,onError:g,className:o("h-full w-full transition-opacity duration-300",x,p==="loading"?"opacity-0":"opacity-100"),...c})]})});Af.displayName="Image";var Ff=classVarianceAuthority.cva("flex flex-col rounded-lg border bg-background",{variants:{size:{sm:"p-1 gap-0.5",md:"p-1.5 gap-1",lg:"p-2 gap-1.5"}},defaultVariants:{size:"md"}}),Of=classVarianceAuthority.cva("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",{variants:{size:{sm:"px-2 py-1 text-xs",md:"px-3 py-1.5 text-sm",lg:"px-4 py-2 text-base"}},defaultVariants:{size:"md"}}),Gf=K__namespace.createContext({value:"",onValueChange:()=>{},multiple:false,size:"md"}),Wf=K__namespace.forwardRef(({className:e,size:t="md",value:r,defaultValue:a="",onValueChange:n,multiple:i=false,children:s,...l},d)=>{let[m,u]=K__namespace.useState(a),c=r??m,f=p=>{let h;if(i){let y=Array.isArray(c)?c:[c].filter(Boolean);y.includes(p)?h=y.filter(g=>g!==p):h=[...y,p];}else h=p;n?n(h):u(h);};return jsxRuntime.jsx(Gf.Provider,{value:{value:c,onValueChange:f,multiple:i,size:t??"md"},children:jsxRuntime.jsx("div",{ref:d,role:"listbox","aria-multiselectable":i,className:o(Ff({size:t,className:e})),...l,children:s})})});Wf.displayName="Listbox";var $f=K__namespace.forwardRef(({className:e,value:t,disabled:r,icon:a,description:n,children:i,...s},l)=>{let{value:d,onValueChange:m,multiple:u,size:c}=K__namespace.useContext(Gf),f=u?Array.isArray(d)&&d.includes(t):d===t,p=()=>{r||m(t);},h=y=>{(y.key==="Enter"||y.key===" ")&&!r&&(y.preventDefault(),m(t));};return jsxRuntime.jsxs("div",{ref:l,role:"option","aria-selected":f,"data-disabled":r?"":void 0,tabIndex:r?-1:0,className:o(Of({size:c}),f&&"bg-accent text-accent-foreground",e),onClick:p,onKeyDown:h,...s,children:[a&&jsxRuntime.jsx("span",{className:"mr-2 flex-shrink-0",children:a}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:i}),n&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:n})]}),f&&jsxRuntime.jsx(lucideReact.Check,{className:"ml-2 h-4 w-4 flex-shrink-0"})]})});$f.displayName="ListboxItem";var Kf=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"gap-2",bordered:"divide-y divide-border rounded-lg border",cards:"gap-2"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),Yf=classVarianceAuthority.cva("flex items-center gap-3 bg-background transition-all",{variants:{variant:{default:"rounded-lg border p-3",bordered:"p-3",cards:"rounded-lg border p-3 shadow-sm"},size:{sm:"p-2 text-sm",md:"p-3 text-sm",lg:"p-4 text-base"},isDragging:{true:"opacity-50 scale-[1.02] shadow-lg z-10",false:""},isDragOver:{true:"border-primary border-dashed",false:""}},defaultVariants:{variant:"default",size:"md",isDragging:false,isDragOver:false}});function DN({className:e,variant:t,size:r,items:a,onReorder:n,renderItem:i,showHandle:s=true,disabled:l=false,...d},m){let[u,c]=K__namespace.useState(null),[f,p]=K__namespace.useState(null),h=(b,v)=>{l||(c(v),b.dataTransfer.effectAllowed="move",b.dataTransfer.setData("text/plain",String(v)));},y=(b,v)=>{b.preventDefault(),!(l||u===null||u===v)&&p(v);},g=()=>{p(null);},x=(b,v)=>{if(b.preventDefault(),l||u===null||u===v){c(null),p(null);return}let C=[...a],[w]=C.splice(u,1);C.splice(v,0,w),n?.(C),c(null),p(null);},R=()=>{c(null),p(null);};return jsxRuntime.jsx("div",{ref:m,className:o(Kf({variant:t,size:r,className:e})),...d,children:a.map((b,v)=>jsxRuntime.jsxs("div",{draggable:!l,onDragStart:C=>h(C,v),onDragOver:C=>y(C,v),onDragLeave:g,onDrop:C=>x(C,v),onDragEnd:R,className:o(Yf({variant:t,size:r,isDragging:u===v,isDragOver:f===v}),!l&&"cursor-move"),children:[s&&jsxRuntime.jsx("div",{className:o("flex-shrink-0 text-muted-foreground",l?"opacity-30":"cursor-grab active:cursor-grabbing"),children:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-5 w-5"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:i(b,v)})]},b.id))})}var VN=K__namespace.forwardRef(DN);var Xf=classVarianceAuthority.cva("absolute inset-0 z-50 flex items-center justify-center transition-opacity",{variants:{variant:{solid:"bg-background",soft:"bg-background/80 backdrop-blur-sm",ghost:"bg-background/50"},visible:{true:"opacity-100 pointer-events-auto",false:"opacity-0 pointer-events-none"}},defaultVariants:{variant:"soft",visible:true}}),HN={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},qf=K__namespace.forwardRef(({className:e,variant:t,loading:r=true,size:a="md",spinner:n,text:i,children:s,...l},d)=>jsxRuntime.jsxs("div",{ref:d,className:o("relative",e),...l,children:[s,jsxRuntime.jsx("div",{className:o(Xf({variant:t,visible:r})),"aria-hidden":!r,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[n||jsxRuntime.jsx(lucideReact.Loader2,{className:o(HN[a],"animate-spin text-primary")}),i&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:i})]})})]}));qf.displayName="LoadingOverlay";var Zf=classVarianceAuthority.cva("fixed top-0 left-0 z-[9999] h-0.5 transition-all duration-200 ease-out",{variants:{color:{primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",warning:"bg-warning",danger:"bg-danger",info:"bg-info"}},defaultVariants:{color:"primary"}}),Jf=K__namespace.forwardRef(({className:e,color:t,isLoading:r=false,progress:a,showSpinner:n=false,...i},s)=>{let[l,d]=K__namespace.useState(0),[m,u]=K__namespace.useState(false),c=K__namespace.useRef(null);return K__namespace.useEffect(()=>{if(a!==void 0){d(a),u(a>0&&a<100);return}return r?(u(true),d(10),c.current=setInterval(()=>{d(f=>{if(f>=90)return f;let p=Math.random()*10;return Math.min(f+p,90)});},500)):l>0&&(d(100),setTimeout(()=>{u(false),d(0);},200)),()=>{c.current&&clearInterval(c.current);}},[r,a]),!m&&a===void 0||a!==void 0&&(a<=0||a>=100)?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{ref:s,className:o(Zf({color:t,className:e})),style:{width:`${l}%`},role:"progressbar","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100,...i,children:jsxRuntime.jsx("div",{className:"absolute right-0 h-full w-24 -translate-y-1 rotate-3 bg-inherit opacity-50 blur-sm"})}),n&&m&&jsxRuntime.jsx("div",{className:"fixed top-4 right-4 z-[9999]",children:jsxRuntime.jsx("div",{className:o("h-4 w-4 animate-spin rounded-full border-2 border-transparent",t==="primary"&&"border-t-primary",t==="secondary"&&"border-t-secondary",t==="success"&&"border-t-success",t==="warning"&&"border-t-warning",t==="danger"&&"border-t-danger",t==="info"&&"border-t-info")})})]})});Jf.displayName="NProgress";var rg=classVarianceAuthority.cva("flex items-center justify-center",{variants:{variant:{spinner:"",dots:"",pulse:"",skeleton:""},size:{sm:"gap-1",md:"gap-2",lg:"gap-3"},fullScreen:{true:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm",false:""}},defaultVariants:{variant:"spinner",size:"md",fullScreen:false}}),Qf={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},GN={sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-3 w-3"},ag=K__namespace.forwardRef(({className:e,variant:t="spinner",size:r="md",fullScreen:a,text:n,color:i="primary",...s},l)=>{let d={primary:"text-primary",secondary:"text-secondary",muted:"text-muted-foreground"}[i],m=()=>{switch(t){case "dots":return jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:[0,1,2].map(u=>jsxRuntime.jsx("div",{className:o(GN[r||"md"],"animate-bounce rounded-full bg-current",d),style:{animationDelay:`${u*.15}s`}},u))});case "pulse":return jsxRuntime.jsx("div",{className:o(Qf[r||"md"],"animate-pulse rounded-full bg-current",d)});case "skeleton":return jsxRuntime.jsxs("div",{className:"w-full space-y-2",children:[jsxRuntime.jsx("div",{className:"h-4 w-3/4 animate-pulse rounded bg-muted"}),jsxRuntime.jsx("div",{className:"h-4 w-1/2 animate-pulse rounded bg-muted"}),jsxRuntime.jsx("div",{className:"h-4 w-5/6 animate-pulse rounded bg-muted"})]});default:return jsxRuntime.jsx(lucideReact.Loader2,{className:o(Qf[r||"md"],"animate-spin",d)})}};return jsxRuntime.jsx("div",{ref:l,className:o(rg({variant:t,size:r,fullScreen:a,className:e})),role:"status","aria-label":n||"Loading",...s,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[m(),n&&jsxRuntime.jsx("span",{className:o("text-sm",d),children:n})]})})});ag.displayName="Loading";var el=class extends K__namespace.Component{constructor(t){super(t),this.state={hasError:false,error:null};}static getDerivedStateFromError(t){return {hasError:true,error:t}}componentDidCatch(t,r){this.props.onError?.(t,r);}componentDidUpdate(t){this.state.hasError&&this.props.resetKeys&&this.props.resetKeys.some((a,n)=>a!==t.resetKeys?.[n])&&this.reset();}reset=()=>{this.props.onReset?.(),this.setState({hasError:false,error:null});};render(){return this.state.hasError?this.props.fallback?this.props.fallback:jsxRuntime.jsx(tl,{error:this.state.error,onReset:this.reset}):this.props.children}},tl=K__namespace.forwardRef(({error:e,onReset:t,className:r},a)=>jsxRuntime.jsxs("div",{ref:a,className:o("flex min-h-[200px] flex-col items-center justify-center gap-4 rounded-lg border border-danger/20 bg-danger/5 p-6 text-center",r),role:"alert",children:[jsxRuntime.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-danger/10",children:jsxRuntime.jsx(lucideReact.AlertTriangle,{className:"h-6 w-6 text-danger"})}),jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"Something went wrong"}),e&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground max-w-md",children:e.message||"An unexpected error occurred"})]}),t&&jsxRuntime.jsxs("button",{onClick:t,className:"inline-flex items-center gap-2 rounded-md bg-danger px-4 py-2 text-sm font-medium text-danger-foreground hover:bg-danger/90 transition-colors",children:[jsxRuntime.jsx(lucideReact.RefreshCw,{className:"h-4 w-4"}),"Try again"]})]}));tl.displayName="DefaultErrorFallback";var _N=el;var ng=K__namespace.forwardRef(({value:e,defaultValue:t,onValueChange:r,placeholder:a="Pick a date range",dateFormat:n="LLL dd, y",disabled:i=false,minDate:s,maxDate:l,numberOfMonths:d=2,className:m,align:u="start"},c)=>{let[f,p]=K__namespace.useState(false),[h,y]=K__namespace.useState(t),g=e!==void 0,x=g?e:h,R=v=>{g||y(v),r?.(v);},b=v=>{if(!v)return a;let{from:C,to:w}=v;return C&&w?`${dateFns.format(C,n)} - ${dateFns.format(w,n)}`:C?dateFns.format(C,n):a};return jsxRuntime.jsxs(Ee,{open:f,onOpenChange:p,children:[jsxRuntime.jsx($e,{asChild:true,children:jsxRuntime.jsxs($,{ref:c,variant:"bordered",disabled:i,className:o("w-full justify-start text-left font-normal",!x?.from&&"text-muted-foreground",m),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),b(x)]})}),jsxRuntime.jsx(Me,{className:"w-auto p-0",align:u,children:jsxRuntime.jsx(Ga,{mode:"range",defaultMonth:x?.from,selected:x,onSelect:R,numberOfMonths:d,disabled:v=>!!(s&&v<s||l&&v>l),initialFocus:true})})]})});ng.displayName="DateRangePicker";var ro=e=>String(e).padStart(2,"0"),ig=K__namespace.forwardRef(({value:e,onValueChange:t,placeholder:r="Pick a time",use24Hour:a=true,minuteStep:n=1,disabled:i=false,className:s},l)=>{let[d,m]=K__namespace.useState(false),u=a?Array.from({length:24},(b,v)=>v):Array.from({length:12},(b,v)=>v+1),c=Array.from({length:Math.floor(60/n)},(b,v)=>v*n),f=b=>{if(!b)return r;if(a)return `${ro(b.hours)}:${ro(b.minutes)}`;let v=b.hours%12||12,C=b.hours>=12?"PM":"AM";return `${ro(v)}:${ro(b.minutes)} ${C}`},p=b=>{let v=e?.minutes??0,C=b;if(!a&&e){let w=e.hours>=12;w&&b!==12?C=b+12:!w&&b===12&&(C=0);}t?.({hours:C,minutes:v});},h=b=>{let v=e?.hours??0;t?.({hours:v,minutes:b});},y=b=>{if(!e)return;let v=e.hours;b==="AM"&&e.hours>=12?v=e.hours-12:b==="PM"&&e.hours<12&&(v=e.hours+12),t?.({hours:v,minutes:e.minutes});},g=()=>{let b=new Date;t?.({hours:b.getHours(),minutes:b.getMinutes()});},x=e?e.hours>=12?"PM":"AM":void 0,R=e?a?e.hours:e.hours%12||12:void 0;return jsxRuntime.jsxs(Ee,{open:d,onOpenChange:m,children:[jsxRuntime.jsx($e,{asChild:true,children:jsxRuntime.jsxs($,{ref:l,variant:"bordered",disabled:i,className:o("w-full justify-start text-left font-normal",!e&&"text-muted-foreground",s),children:[jsxRuntime.jsx(lucideReact.Clock,{className:"mr-2 h-4 w-4"}),f(e)]})}),jsxRuntime.jsxs(Me,{className:"w-auto p-0",align:"start",children:[jsxRuntime.jsxs("div",{className:"flex",children:[jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsx("div",{className:"border-b px-3 py-2 text-center text-xs font-medium text-muted-foreground",children:"Hour"}),jsxRuntime.jsx(ze,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:u.map(b=>jsxRuntime.jsx($,{variant:R===b?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>p(b),children:ro(b)},b))})})]}),jsxRuntime.jsxs("div",{className:"flex flex-col border-l",children:[jsxRuntime.jsx("div",{className:"border-b px-3 py-2 text-center text-xs font-medium text-muted-foreground",children:"Min"}),jsxRuntime.jsx(ze,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:c.map(b=>jsxRuntime.jsx($,{variant:e?.minutes===b?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>h(b),children:ro(b)},b))})})]}),!a&&jsxRuntime.jsxs("div",{className:"flex flex-col border-l",children:[jsxRuntime.jsx("div",{className:"border-b px-3 py-2 text-center text-xs font-medium text-muted-foreground",children:"\xA0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 p-1",children:[jsxRuntime.jsx($,{variant:x==="AM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>y("AM"),children:"AM"}),jsxRuntime.jsx($,{variant:x==="PM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>y("PM"),children:"PM"})]})]})]}),jsxRuntime.jsxs("div",{className:"flex justify-between border-t p-2",children:[jsxRuntime.jsx($,{variant:"ghost",size:"sm",onClick:g,children:"Now"}),jsxRuntime.jsx($,{size:"sm",onClick:()=>m(false),children:"Done"})]})]})]})});ig.displayName="TimePicker";var sg=classVarianceAuthority.cva("overflow-auto",{variants:{variant:{default:"",bordered:"border rounded-lg",cards:""}},defaultVariants:{variant:"default"}});function jN({className:e,variant:t,items:r,itemHeight:a,height:n,overscan:i=3,renderItem:s,getItemKey:l,gap:d=0,onScrollChange:m,...u},c){let f=K__namespace.useRef(null),[p,h]=K__namespace.useState(0);K__namespace.useImperativeHandle(c,()=>f.current);let y=r.length*(a+d)-d,g=a+d,x=Math.max(0,Math.floor(p/g)-i),R=Math.ceil(n/g)+2*i,b=Math.min(r.length-1,x+R),v=w=>{let k=w.currentTarget.scrollTop;h(k),m?.(k);},C=K__namespace.useMemo(()=>{let w=[];for(let k=x;k<=b;k++)r[k]!==void 0&&w.push({item:r[k],index:k,style:{position:"absolute",top:k*g,left:0,right:0,height:a}});return w},[r,x,b,g,a]);return jsxRuntime.jsx("div",{ref:f,className:o(sg({variant:t,className:e})),style:{height:n,position:"relative"},onScroll:v,...u,children:jsxRuntime.jsx("div",{style:{height:y,position:"relative"},children:C.map(({item:w,index:k,style:S})=>jsxRuntime.jsx("div",{style:S,children:s(w,k)},l?l(w,k):k))})})}var XN=K__namespace.forwardRef(jN);var dg=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"border rounded-lg overflow-hidden"}},defaultVariants:{variant:"default"}}),ol=classVarianceAuthority.cva("flex items-center justify-center py-4",{variants:{size:{sm:"py-2",md:"py-4",lg:"py-6"}},defaultVariants:{size:"md"}}),cg=K__namespace.forwardRef(({className:e,variant:t,size:r,children:a,onLoadMore:n,hasMore:i,isLoading:s=false,loader:l,threshold:d=100,rootMargin:m,useWindow:u=false,endMessage:c,...f},p)=>{let h=K__namespace.useRef(null),y=K__namespace.useRef(null),g=K__namespace.useRef(false);K__namespace.useImperativeHandle(p,()=>h.current),K__namespace.useEffect(()=>{let R=y.current;if(!R)return;let b=new IntersectionObserver(v=>{let[C]=v;C.isIntersecting&&i&&!s&&!g.current&&(g.current=true,Promise.resolve(n()).finally(()=>{g.current=false;}));},{root:u?null:h.current,rootMargin:m||`${d}px`,threshold:0});return b.observe(R),()=>{b.disconnect();}},[i,s,n,d,m,u]);let x=jsxRuntime.jsx("div",{className:o(ol({size:r})),children:jsxRuntime.jsx(lucideReact.Loader2,{className:"h-6 w-6 animate-spin text-muted-foreground"})});return jsxRuntime.jsxs("div",{ref:h,className:o(dg({variant:t,className:e})),...f,children:[a,jsxRuntime.jsx("div",{ref:y,className:"h-px w-full"}),s&&(l||x),!i&&!s&&c&&jsxRuntime.jsx("div",{className:o(ol({size:r}),"text-muted-foreground text-sm"),children:c})]})});cg.displayName="InfiniteScroll";var Uo=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ug__namespace.Root,{ref:r,className:o(e),...t}));Uo.displayName="VisuallyHidden";var QN={opaque:"bg-black/80",blur:"bg-black/50 backdrop-blur-sm",transparent:"bg-transparent"},eP={auto:"top-[50%] translate-y-[-50%]",center:"top-[50%] translate-y-[-50%]",top:"top-4 translate-y-0",bottom:"top-auto bottom-4 translate-y-0","top-center":"top-[20%] translate-y-0","bottom-center":"top-auto bottom-[20%] translate-y-0"},fg=classVarianceAuthority.cva("fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"),il=classVarianceAuthority.cva("fixed left-[50%] z-50 grid translate-x-[-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 sm:rounded-lg",{variants:{size:{xs:"w-full max-w-xs",sm:"w-full max-w-sm",md:"w-full max-w-md",lg:"w-full max-w-lg",xl:"w-full max-w-xl","2xl":"w-full max-w-2xl","3xl":"w-full max-w-3xl","4xl":"w-full max-w-4xl","5xl":"w-full max-w-5xl",full:"w-[calc(100vw-2rem)] h-[calc(100vh-2rem)] max-w-none"}},defaultVariants:{size:"md"}}),gg=K__namespace.createContext({scrollBehavior:"inside"}),tP=()=>K__namespace.useContext(gg),bg=K__namespace.forwardRef(({open:e,onOpenChange:t,trigger:r,title:a="Modal",children:n,hideCloseButton:i=false,isDismissable:s=true,isKeyboardDismissDisabled:l=false,backdrop:d="opaque",placement:m="center",scrollBehavior:u="inside",size:c,className:f},p)=>jsxRuntime.jsx(gg.Provider,{value:{scrollBehavior:u},children:jsxRuntime.jsxs(ne__namespace.Root,{open:e,onOpenChange:t,children:[r&&jsxRuntime.jsx(ne__namespace.Trigger,{asChild:true,children:r}),jsxRuntime.jsxs(ne__namespace.Portal,{children:[jsxRuntime.jsx(ne__namespace.Overlay,{className:o(fg(),QN[d],u==="outside"&&"overflow-y-auto flex items-start justify-center py-4"),children:u==="outside"?jsxRuntime.jsxs(ne__namespace.Content,{ref:p,className:o("relative z-50 grid gap-4 border bg-background p-6 shadow-lg sm:rounded-lg dark:border-0",c==="xs"&&"w-full max-w-xs",c==="sm"&&"w-full max-w-sm",c==="md"&&"w-full max-w-md",c==="lg"&&"w-full max-w-lg",c==="xl"&&"w-full max-w-xl",c==="2xl"&&"w-full max-w-2xl",c==="3xl"&&"w-full max-w-3xl",c==="4xl"&&"w-full max-w-4xl",c==="5xl"&&"w-full max-w-5xl",c==="full"&&"w-[calc(100vw-2rem)] min-h-[calc(100vh-2rem)]",!c&&"w-full max-w-md",f),onEscapeKeyDown:l?h=>h.preventDefault():void 0,onPointerDownOutside:s?void 0:h=>h.preventDefault(),children:[jsxRuntime.jsx(Uo,{children:jsxRuntime.jsx(ne__namespace.Title,{children:a})}),n,!i&&jsxRuntime.jsx(ne__namespace.Close,{asChild:true,children:jsxRuntime.jsxs($,{variant:"light",size:"icon",radius:"full",className:"absolute right-2 top-2 h-8 w-8",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})})]}):null}),u==="inside"&&jsxRuntime.jsxs(ne__namespace.Content,{ref:p,className:o(il({size:c}),eP[m],"dark:border-0 max-h-[calc(100vh-2rem)] !flex !flex-col overflow-hidden gap-4",f),onEscapeKeyDown:l?h=>h.preventDefault():void 0,onPointerDownOutside:s?void 0:h=>h.preventDefault(),children:[jsxRuntime.jsx(Uo,{children:jsxRuntime.jsx(ne__namespace.Title,{children:a})}),n,!i&&jsxRuntime.jsx(ne__namespace.Close,{asChild:true,children:jsxRuntime.jsxs($,{variant:"light",size:"icon",radius:"full",className:"absolute right-2 top-2 h-8 w-8",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})]})}));bg.displayName="Modal";var rP=ne__namespace.Root,aP=ne__namespace.Trigger,vg=ne__namespace.Portal,oP=ne__namespace.Close,sl=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ne__namespace.Overlay,{ref:r,className:o(fg(),e),...t}));sl.displayName="ModalOverlay";var hg=K__namespace.forwardRef(({className:e,children:t,size:r,showCloseButton:a=true,...n},i)=>jsxRuntime.jsxs(vg,{children:[jsxRuntime.jsx(sl,{}),jsxRuntime.jsxs(ne__namespace.Content,{ref:i,className:o(il({size:r}),e),...n,children:[t,a&&jsxRuntime.jsx(ne__namespace.Close,{asChild:true,children:jsxRuntime.jsxs($,{variant:"light",size:"icon",radius:"full",className:"absolute right-2 top-2 h-8 w-8",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})})]})]}));hg.displayName="ModalContent";var xg=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex-shrink-0 flex flex-col space-y-1.5 text-center sm:text-left",e),...t});xg.displayName="ModalHeader";var yg=({className:e,children:t})=>{let{scrollBehavior:r}=tP();return r==="inside"?jsxRuntime.jsx(ze,{className:o("flex-1 min-h-0 -mx-6 px-6",e),children:t}):jsxRuntime.jsx("div",{className:o(e),children:t})};yg.displayName="ModalBody";var Rg=({className:e,children:t,...r})=>jsxRuntime.jsx("div",{className:o("flex-shrink-0 flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r,children:K__namespace.Children.map(t,a=>K__namespace.isValidElement(a)?jsxRuntime.jsx(ne__namespace.Close,{asChild:true,children:a}):a)});Rg.displayName="ModalFooter";var wg=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ne__namespace.Title,{ref:r,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));wg.displayName="ModalTitle";var Ng=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ne__namespace.Description,{ref:r,className:o("text-sm text-muted-foreground",e),...t}));Ng.displayName="ModalDescription";var Cg=classVarianceAuthority.cva("h-10 w-10 rounded-full p-2",{variants:{variant:{default:"bg-muted text-foreground",danger:"bg-danger/10 text-danger",warning:"bg-warning/10 text-warning",success:"bg-success/10 text-success",info:"bg-info/10 text-info"}},defaultVariants:{variant:"default"}}),cP=classVarianceAuthority.cva("",{variants:{variant:{default:"",danger:"bg-danger text-danger-foreground hover:bg-danger/90",warning:"bg-warning text-warning-foreground hover:bg-warning/90",success:"bg-success text-success-foreground hover:bg-success/90",info:"bg-info text-info-foreground hover:bg-info/90"}},defaultVariants:{variant:"default"}}),mP={default:lucideReact.HelpCircle,danger:lucideReact.XCircle,warning:lucideReact.AlertTriangle,success:lucideReact.CheckCircle,info:lucideReact.Info},ll=K__namespace.forwardRef(({open:e,onOpenChange:t,trigger:r,title:a,description:n,confirmText:i="Confirm",cancelText:s="Cancel",onConfirm:l,onCancel:d,showIcon:m=true,icon:u,variant:c="default",loading:f=false,disabled:p=false,className:h},y)=>{let[g,x]=K__namespace.useState(false),R=mP[c||"default"],b=async()=>{if(l){let w=l();if(w instanceof Promise){x(true);try{await w;}finally{x(false);}}}},v=()=>{d?.();},C=f||g;return jsxRuntime.jsxs(ke__namespace.Root,{open:e,onOpenChange:t,children:[r&&jsxRuntime.jsx(ke__namespace.Trigger,{asChild:true,children:r}),jsxRuntime.jsxs(ke__namespace.Portal,{children:[jsxRuntime.jsx(ke__namespace.Overlay,{className:"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"}),jsxRuntime.jsxs(ke__namespace.Content,{ref:y,className:o("fixed left-[50%] top-[50%] z-50 grid w-full max-w-md 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",h),children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 sm:flex-row sm:items-start",children:[m&&jsxRuntime.jsx("div",{className:o(Cg({variant:c})),children:u||jsxRuntime.jsx(R,{className:"h-6 w-6"})}),jsxRuntime.jsxs("div",{className:"flex flex-col space-y-2 text-center sm:text-left",children:[jsxRuntime.jsx(ke__namespace.Title,{className:"text-lg font-semibold",children:a}),n&&jsxRuntime.jsx(ke__namespace.Description,{className:"text-sm text-muted-foreground",children:n})]})]}),jsxRuntime.jsxs("div",{className:"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",children:[jsxRuntime.jsx(ke__namespace.Cancel,{className:o(tr({variant:"bordered"})),onClick:v,disabled:C,children:s}),jsxRuntime.jsx(ke__namespace.Action,{className:o(tr(),cP({variant:c}),C&&"opacity-50 cursor-not-allowed"),onClick:b,disabled:p||C,children:C?jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("svg",{className:"h-4 w-4 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Loading..."]}):i})]})]})]})]})});ll.displayName="ConfirmDialog";function uP(){let[e,t]=K__namespace.useState({open:false,options:null,resolve:null}),r=K__namespace.useCallback(l=>new Promise(d=>{t({open:true,options:l,resolve:d});}),[]),a=K__namespace.useCallback(()=>{e.resolve?.(true),t({open:false,options:null,resolve:null});},[e.resolve]),n=K__namespace.useCallback(()=>{e.resolve?.(false),t({open:false,options:null,resolve:null});},[e.resolve]),i=K__namespace.useCallback(l=>{l||(e.resolve?.(false),t({open:false,options:null,resolve:null}));},[e.resolve]),s=K__namespace.useMemo(()=>e.options?jsxRuntime.jsx(ll,{open:e.open,onOpenChange:i,title:e.options.title,description:e.options.description,confirmText:e.options.confirmText,cancelText:e.options.cancelText,variant:e.options.variant,onConfirm:a,onCancel:n}):null,[e,a,n,i]);return {confirm:r,ConfirmDialog:s}}var wP=e=>e.map(t=>typeof t=="string"?{src:t}:t),cl=K__namespace.forwardRef(({images:e,open:t,onOpenChange:r,initialIndex:a=0,onIndexChange:n,trigger:i,showThumbnails:s=true,showZoom:l=true,showRotate:d=true,showDownload:m=true,showFullscreen:u=true,showNavigation:c=true,showCounter:f=true,closeOnBackdropClick:p=true,className:h},y)=>{let g=K__namespace.useMemo(()=>wP(e),[e]),[x,R]=K__namespace.useState(a),[b,v]=K__namespace.useState(1),[C,w]=K__namespace.useState(0),[k,S]=K__namespace.useState(false),[T,N]=K__namespace.useState(false),[P,M]=K__namespace.useState({x:0,y:0}),[D,E]=K__namespace.useState({x:0,y:0}),L=K__namespace.useRef(null),V=g[x];K__namespace.useEffect(()=>{R(a);},[a]),K__namespace.useEffect(()=>{n?.(x);},[x,n]),K__namespace.useEffect(()=>{v(1),w(0),M({x:0,y:0});},[x]);let I=K__namespace.useCallback(()=>{R(F=>F>0?F-1:g.length-1);},[g.length]),A=K__namespace.useCallback(()=>{R(F=>F<g.length-1?F+1:0);},[g.length]),G=()=>{v(F=>Math.min(F+.5,4));},H=()=>{v(F=>{let oe=Math.max(F-.5,.5);return oe===1&&M({x:0,y:0}),oe});},j=()=>{w(F=>(F+90)%360);},W=async()=>{if(V)try{let oe=await(await fetch(V.src)).blob(),ee=URL.createObjectURL(oe),ot=document.createElement("a");ot.href=ee,ot.download=V.alt||`image-${x+1}`,document.body.appendChild(ot),ot.click(),document.body.removeChild(ot),URL.revokeObjectURL(ee);}catch{window.open(V.src,"_blank");}},Le=async()=>{if(L.current)if(k)try{await document.exitFullscreen(),S(!1);}catch{}else try{await L.current.requestFullscreen(),S(!0);}catch{}},xe=F=>{b>1&&(N(true),E({x:F.clientX-P.x,y:F.clientY-P.y}));},z=F=>{T&&b>1&&M({x:F.clientX-D.x,y:F.clientY-D.y});},B=()=>{N(false);},te=K__namespace.useCallback(F=>{switch(F.key){case "ArrowLeft":I();break;case "ArrowRight":A();break;case "Escape":r?.(false);break;case "+":case "=":G();break;case "-":H();break}},[I,A,r]);return K__namespace.useEffect(()=>{if(t)return window.addEventListener("keydown",te),()=>window.removeEventListener("keydown",te)},[t,te]),K__namespace.useEffect(()=>{let F=()=>{S(!!document.fullscreenElement);};return document.addEventListener("fullscreenchange",F),()=>document.removeEventListener("fullscreenchange",F)},[]),g.length===0?null:jsxRuntime.jsxs(ne__namespace.Root,{open:t,onOpenChange:r,children:[i&&jsxRuntime.jsx(ne__namespace.Trigger,{asChild:true,children:i}),jsxRuntime.jsxs(ne__namespace.Portal,{children:[jsxRuntime.jsx(ne__namespace.Overlay,{className:"fixed inset-0 z-50 bg-black/90 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",onClick:p?void 0:F=>F.stopPropagation()}),jsxRuntime.jsxs(ne__namespace.Content,{ref:y,className:o("fixed inset-0 z-50 flex flex-col outline-none",h),onPointerDownOutside:p?void 0:F=>F.preventDefault(),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-4 text-white",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[f&&g.length>1&&jsxRuntime.jsxs("span",{className:"text-sm",children:[x+1," / ",g.length]}),V?.title&&jsxRuntime.jsx("span",{className:"ml-4 text-sm font-medium",children:V.title})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[l&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:H,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Zoom out",children:jsxRuntime.jsx(lucideReact.ZoomOut,{className:"h-5 w-5"})}),jsxRuntime.jsxs("span",{className:"min-w-[3rem] text-center text-sm",children:[Math.round(b*100),"%"]}),jsxRuntime.jsx("button",{onClick:G,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Zoom in",children:jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-5 w-5"})})]}),d&&jsxRuntime.jsx("button",{onClick:j,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Rotate",children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-5 w-5"})}),m&&jsxRuntime.jsx("button",{onClick:W,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Download",children:jsxRuntime.jsx(lucideReact.Download,{className:"h-5 w-5"})}),u&&jsxRuntime.jsx("button",{onClick:Le,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:k?"Exit fullscreen":"Fullscreen",children:k?jsxRuntime.jsx(lucideReact.Minimize2,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Maximize2,{className:"h-5 w-5"})}),jsxRuntime.jsxs(ne__namespace.Close,{className:"rounded-full p-2 hover:bg-white/10 transition-colors ml-2",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]}),jsxRuntime.jsxs("div",{ref:L,className:"relative flex-1 flex items-center justify-center overflow-hidden",onMouseDown:xe,onMouseMove:z,onMouseUp:B,onMouseLeave:B,children:[c&&g.length>1&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:I,className:"absolute left-4 z-10 rounded-full bg-black/50 p-3 text-white hover:bg-black/70 transition-colors",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-6 w-6"})}),jsxRuntime.jsx("button",{onClick:A,className:"absolute right-4 z-10 rounded-full bg-black/50 p-3 text-white hover:bg-black/70 transition-colors",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-6 w-6"})})]}),jsxRuntime.jsx("img",{src:V?.src,alt:V?.alt||"",className:o("max-h-full max-w-full object-contain transition-transform duration-200",T?"cursor-grabbing":b>1?"cursor-grab":""),style:{transform:`translate(${P.x}px, ${P.y}px) scale(${b}) rotate(${C}deg)`},draggable:false})]}),V?.description&&jsxRuntime.jsx("div",{className:"p-4 text-center text-white text-sm",children:V.description}),s&&g.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-2 p-4 overflow-x-auto",children:g.map((F,oe)=>jsxRuntime.jsx("button",{onClick:()=>R(oe),className:o("h-16 w-16 flex-shrink-0 overflow-hidden rounded border-2 transition-all",x===oe?"border-white opacity-100":"border-transparent opacity-50 hover:opacity-75"),children:jsxRuntime.jsx("img",{src:F.src,alt:F.alt||`Thumbnail ${oe+1}`,className:"h-full w-full object-cover"})},oe))})]})]})]})});cl.displayName="ImageViewer";var Sg=({children:e,images:t,index:r=0,className:a})=>{let[n,i]=K__namespace.useState(false);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>i(true),className:o("cursor-zoom-in",a),children:e}),jsxRuntime.jsx(cl,{images:t,open:n,onOpenChange:i,initialIndex:r})]})};Sg.displayName="ImageViewerTrigger";var kg=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"hover:bg-muted",solid:"bg-muted hover:bg-muted/80",ghost:"hover:bg-accent hover:text-accent-foreground",outline:"border border-input hover:bg-accent hover:text-accent-foreground"},size:{sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{variant:"default",size:"md"}}),Dg=K__namespace.forwardRef(({className:e,variant:t,size:r,iconSize:a,...n},i)=>{let l=a??{sm:14,md:16,lg:20}[r??"md"];return jsxRuntime.jsx("button",{ref:i,type:"button",className:o(kg({variant:t,size:r}),e),"aria-label":"Close",...n,children:jsxRuntime.jsx(lucideReact.X,{style:{width:l,height:l}})})});Dg.displayName="CloseButton";var Lg=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",soft:"bg-primary/10 text-primary hover:bg-primary/20",surface:"bg-muted hover:bg-muted/80"},size:{sm:"h-7 w-7",md:"h-9 w-9",lg:"h-11 w-11"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},compoundVariants:[{variant:"solid",color:"primary",className:"bg-primary text-primary-foreground hover:bg-primary/90"},{variant:"solid",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/90"},{variant:"solid",color:"success",className:"bg-success text-success-foreground hover:bg-success/90"},{variant:"solid",color:"warning",className:"bg-warning text-warning-foreground hover:bg-warning/90"},{variant:"solid",color:"danger",className:"bg-danger text-danger-foreground hover:bg-danger/90"},{variant:"soft",color:"primary",className:"bg-primary/10 text-primary hover:bg-primary/20"},{variant:"soft",color:"secondary",className:"bg-secondary/10 text-secondary-foreground hover:bg-secondary/20"},{variant:"soft",color:"success",className:"bg-success/10 text-success hover:bg-success/20"},{variant:"soft",color:"warning",className:"bg-warning/10 text-warning hover:bg-warning/20"},{variant:"soft",color:"danger",className:"bg-danger/10 text-danger hover:bg-danger/20"},{variant:"outline",color:"primary",className:"border-primary text-primary hover:bg-primary/10"},{variant:"outline",color:"success",className:"border-success text-success hover:bg-success/10"},{variant:"outline",color:"warning",className:"border-warning text-warning hover:bg-warning/10"},{variant:"outline",color:"danger",className:"border-danger text-danger hover:bg-danger/10"}],defaultVariants:{variant:"ghost",size:"md",color:"default",radius:"md"}}),Ig=K__namespace.forwardRef(({className:e,variant:t,size:r,color:a,radius:n,loading:i,disabled:s,children:l,...d},m)=>jsxRuntime.jsx("button",{ref:m,type:"button",className:o(Lg({variant:t,size:r,color:a,radius:n}),e),disabled:s||i,...d,children:i?jsxRuntime.jsxs("svg",{className:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",style:{width:"1em",height:"1em"},children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):l}));Ig.displayName="ActionIcon";var Ag=({children:e,container:t,disabled:r=false})=>{let[a,n]=K__namespace.useState(false);if(K__namespace.useEffect(()=>{n(true);},[]),r||!a)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let i=null;return typeof t=="string"?i=document.querySelector(t):t instanceof Element?i=t:i=document.body,i?zd.createPortal(e,i):jsxRuntime.jsx(jsxRuntime.Fragment,{children:e})};Ag.displayName="Portal";var zg=classVarianceAuthority.cva("absolute rounded-full border-2 border-background",{variants:{color:{default:"bg-muted-foreground",primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",warning:"bg-warning",danger:"bg-danger"},size:{sm:"h-2 w-2",md:"h-2.5 w-2.5",lg:"h-3 w-3"},position:{"top-right":"top-0 right-0 -translate-y-1/3 translate-x-1/3","top-left":"top-0 left-0 -translate-y-1/3 -translate-x-1/3","bottom-right":"bottom-0 right-0 translate-y-1/3 translate-x-1/3","bottom-left":"bottom-0 left-0 translate-y-1/3 -translate-x-1/3"},ping:{true:"",false:""}},defaultVariants:{color:"primary",size:"md",position:"top-right",ping:false}}),Bg=K__namespace.forwardRef(({className:e,color:t,size:r,position:a,ping:n,content:i,show:s=true,offset:l,style:d,...m},u)=>{if(!s)return null;let c=i!=null;return jsxRuntime.jsxs("span",{ref:u,className:o(zg({color:t,size:c?void 0:r,position:a,ping:n}),c&&"flex h-auto w-auto min-w-[1.25rem] items-center justify-center px-1 py-0.5 text-[10px] font-medium text-white",e),style:{...d,...l!==void 0&&{transform:`translate(${a?.includes("right")?l:-l}px, ${a?.includes("top")?-l:l}px)`}},...m,children:[n&&jsxRuntime.jsx("span",{className:o("absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",t==="default"&&"bg-muted-foreground",t==="primary"&&"bg-primary",t==="secondary"&&"bg-secondary",t==="success"&&"bg-success",t==="warning"&&"bg-warning",t==="danger"&&"bg-danger")}),i]})});Bg.displayName="Indicator";var Fg=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:o("relative inline-flex",e),...r,children:t}));Fg.displayName="IndicatorWrapper";var Gg=classVarianceAuthority.cva("relative overflow-auto",{variants:{orientation:{vertical:"",horizontal:"",both:""},size:{sm:"",md:"",lg:""}},defaultVariants:{orientation:"vertical",size:"md"}}),Wg=K__namespace.forwardRef(({className:e,orientation:t,size:r,hideScrollbar:a=false,shadowColor:n="rgba(0, 0, 0, 0.1)",children:i,...s},l)=>{let d=K__namespace.useRef(null),[m,u]=K__namespace.useState({top:false,bottom:false,left:false,right:false});K__namespace.useImperativeHandle(l,()=>d.current);let c=K__namespace.useCallback(()=>{let x=d.current;if(!x)return;let{scrollTop:R,scrollLeft:b,scrollHeight:v,scrollWidth:C,clientHeight:w,clientWidth:k}=x;u({top:R>0,bottom:R<v-w-1,left:b>0,right:b<C-k-1});},[]);K__namespace.useEffect(()=>{let x=d.current;if(x)return c(),x.addEventListener("scroll",c),window.addEventListener("resize",c),()=>{x.removeEventListener("scroll",c),window.removeEventListener("resize",c);}},[c]);let p={sm:"20px",md:"40px",lg:"60px"}[r??"md"],h=t==="vertical"||t==="both",y=t==="horizontal"||t==="both",g={maskImage:[h&&m.top&&`linear-gradient(to bottom, transparent, black ${p})`,h&&m.bottom&&`linear-gradient(to top, transparent, black ${p})`,y&&m.left&&`linear-gradient(to right, transparent, black ${p})`,y&&m.right&&`linear-gradient(to left, transparent, black ${p})`].filter(Boolean).join(", ")||void 0,maskComposite:"intersect",WebkitMaskComposite:"source-in"};return jsxRuntime.jsx("div",{ref:d,className:o(Gg({orientation:t,size:r}),a&&"scrollbar-hide [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",e),style:g,...s,children:i})});Wg.displayName="ScrollShadow";var $g=classVarianceAuthority.cva("inline-flex items-center justify-center font-mono font-medium",{variants:{variant:{default:"rounded border border-border bg-muted text-muted-foreground shadow-sm",outline:"rounded border border-border text-foreground",ghost:"text-muted-foreground"},size:{sm:"min-w-[1.25rem] px-1 py-0.5 text-[10px]",md:"min-w-[1.5rem] px-1.5 py-0.5 text-xs",lg:"min-w-[2rem] px-2 py-1 text-sm"}},defaultVariants:{variant:"default",size:"md"}}),IP={cmd:"\u2318",command:"\u2318",ctrl:"\u2303",control:"\u2303",alt:"\u2325",option:"\u2325",shift:"\u21E7",enter:"\u21B5",return:"\u21B5",backspace:"\u232B",delete:"\u2326",escape:"\u238B",esc:"\u238B",tab:"\u21E5",space:"\u2423",up:"\u2191",down:"\u2193",left:"\u2190",right:"\u2192",pageup:"\u21DE",pagedown:"\u21DF",home:"\u2912",end:"\u2913",capslock:"\u21EA"},EP=e=>{let t=e.toLowerCase();return IP[t]||e.toUpperCase()},_g=K__namespace.forwardRef(({className:e,variant:t,size:r,keys:a,children:n,...i},s)=>{let l=()=>a?(Array.isArray(a)?a:[a]).map((m,u)=>jsxRuntime.jsxs(K__namespace.Fragment,{children:[u>0&&jsxRuntime.jsx("span",{className:"mx-0.5 text-muted-foreground",children:"+"}),jsxRuntime.jsx("span",{children:EP(m)})]},u)):n;return jsxRuntime.jsx("kbd",{ref:s,className:o($g({variant:t,size:r}),e),...i,children:l()})});_g.displayName="Kbd";var Yg=K__namespace.forwardRef(({className:e,size:t,axis:r="both",style:a,...n},i)=>{let s=typeof t=="number"?`${t}px`:t,l={...a,...t?{width:r==="vertical"?void 0:s,height:r==="horizontal"?void 0:s,minWidth:r==="vertical"?void 0:s,minHeight:r==="horizontal"?void 0:s,flexShrink:0}:{flex:"1 1 auto"}};return jsxRuntime.jsx("div",{ref:i,"aria-hidden":"true",className:o(e),style:l,...n})});Yg.displayName="Spacer";var Ug=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"hover:bg-muted",solid:"bg-muted hover:bg-muted/80",ghost:"hover:bg-accent hover:text-accent-foreground",outline:"border border-input hover:bg-accent hover:text-accent-foreground"},size:{sm:"h-7 w-7",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{variant:"default",size:"md"}}),jg=K__namespace.forwardRef(({className:e,variant:t,size:r,value:a,successDuration:n=2e3,onCopySuccess:i,onCopyError:s,copyIcon:l,successIcon:d,...m},u)=>{let[c,f]=K__namespace.useState(false),p={sm:14,md:16,lg:20}[r??"md"],h=async()=>{try{await navigator.clipboard.writeText(a),f(!0),i?.(),setTimeout(()=>{f(!1);},n);}catch(y){s?.(y);}};return jsxRuntime.jsx("button",{ref:u,type:"button",className:o(Ug({variant:t,size:r}),e),onClick:h,"aria-label":c?"Copied":"Copy to clipboard",...m,children:c?d??jsxRuntime.jsx(lucideReact.Check,{className:"text-success",style:{width:p,height:p}}):l??jsxRuntime.jsx(lucideReact.Copy,{style:{width:p,height:p}})})});jg.displayName="CopyButton";var qg=classVarianceAuthority.cva("flex flex-col bg-background",{variants:{variant:{default:"border rounded-lg",bordered:"border-2 rounded-lg",ghost:""},size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",size:"md"}}),$P=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],_P=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function KP(e,t,r){let a=new Date(e,t,1),n=new Date(e,t+1,0),i=[],s=a.getDay()-r;s<0&&(s+=7);for(let d=s-1;d>=0;d--)i.push(new Date(e,t,-d));for(let d=1;d<=n.getDate();d++)i.push(new Date(e,t,d));let l=42-i.length;for(let d=1;d<=l;d++)i.push(new Date(e,t+1,d));return i}function YP(e,t){let r=[],n=e.getDay()-t;n<0&&(n+=7);let i=new Date(e);i.setDate(e.getDate()-n);for(let s=0;s<7;s++){let l=new Date(i);l.setDate(i.getDate()+s),r.push(l);}return r}function mi(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function ci(e){return mi(e,new Date)}function Xg(e,t){return e.filter(r=>{let a=new Date(r.start),n=new Date(r.end);return mi(a,t)||mi(n,t)||a<t&&n>t})}var Zg=K__namespace.forwardRef(({className:e,variant:t,size:r,events:a=[],view:n="month",onViewChange:i,date:s,onDateChange:l,onEventClick:d,onSlotClick:m,weekStartsOn:u=0,locale:c="en-US",...f},p)=>{let[h,y]=K__namespace.useState(new Date),g=s??h,x=N=>{l?l(N):y(N);},R=u===1?_P:$P,b=()=>{let N=new Date(g);n==="month"?N.setMonth(N.getMonth()-1):n==="week"?N.setDate(N.getDate()-7):N.setDate(N.getDate()-1),x(N);},v=()=>{let N=new Date(g);n==="month"?N.setMonth(N.getMonth()+1):n==="week"?N.setDate(N.getDate()+7):N.setDate(N.getDate()+1),x(N);},C=()=>{x(new Date);},w=()=>n==="day"?g.toLocaleDateString(c,{weekday:"long",year:"numeric",month:"long",day:"numeric"}):g.toLocaleDateString(c,{year:"numeric",month:"long"}),k=()=>{let N=KP(g.getFullYear(),g.getMonth(),u);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col",children:[jsxRuntime.jsx("div",{className:"grid grid-cols-7 border-b",children:R.map(P=>jsxRuntime.jsx("div",{className:"p-2 text-center font-medium text-muted-foreground",children:P},P))}),jsxRuntime.jsx("div",{className:"flex-1 grid grid-cols-7 grid-rows-6",children:N.map((P,M)=>{let D=Xg(a,P),E=P.getMonth()===g.getMonth();return jsxRuntime.jsxs("div",{className:o("min-h-[80px] border-b border-r p-1 cursor-pointer hover:bg-accent/50 transition-colors",!E&&"bg-muted/30"),onClick:()=>m?.(P),children:[jsxRuntime.jsx("div",{className:o("flex items-center justify-center w-7 h-7 rounded-full text-sm mb-1",ci(P)&&"bg-primary text-primary-foreground",!E&&"text-muted-foreground"),children:P.getDate()}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[D.slice(0,3).map(L=>jsxRuntime.jsx("div",{className:"text-xs px-1 py-0.5 rounded truncate cursor-pointer hover:opacity-80",style:{backgroundColor:L.color||"hsl(var(--primary))",color:"white"},onClick:V=>{V.stopPropagation(),d?.(L);},children:L.title},L.id)),D.length>3&&jsxRuntime.jsxs("div",{className:"text-xs text-muted-foreground px-1",children:["+",D.length-3," more"]})]})]},M)})})]})},S=()=>{let N=YP(g,u),P=Array.from({length:24},(M,D)=>D);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[jsxRuntime.jsxs("div",{className:"grid grid-cols-[60px_repeat(7,1fr)] border-b",children:[jsxRuntime.jsx("div",{className:"p-2"}),N.map((M,D)=>jsxRuntime.jsxs("div",{className:o("p-2 text-center border-l",ci(M)&&"bg-primary/10"),children:[jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground",children:R[D]}),jsxRuntime.jsx("div",{className:o("text-lg font-semibold",ci(M)&&"text-primary"),children:M.getDate()})]},D))]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_repeat(7,1fr)]",children:P.map(M=>jsxRuntime.jsxs(K__namespace.Fragment,{children:[jsxRuntime.jsxs("div",{className:"h-12 text-xs text-muted-foreground text-right pr-2 pt-0 border-b",children:[M.toString().padStart(2,"0"),":00"]}),N.map((D,E)=>{let L=new Date(D);L.setHours(M,0,0,0);let V=a.filter(I=>{let A=new Date(I.start);return mi(A,D)&&A.getHours()===M});return jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>m?.(L),children:V.map(I=>jsxRuntime.jsx("div",{className:"absolute inset-x-0.5 top-0.5 text-xs px-1 py-0.5 rounded truncate cursor-pointer",style:{backgroundColor:I.color||"hsl(var(--primary))",color:"white"},onClick:A=>{A.stopPropagation(),d?.(I);},children:I.title},I.id))},E)})]},M))})})]})},T=()=>{let N=Array.from({length:24},(M,D)=>D),P=Xg(a,g);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[jsxRuntime.jsx("div",{className:"p-4 border-b text-center",children:jsxRuntime.jsx("div",{className:o("inline-flex items-center justify-center w-12 h-12 rounded-full text-2xl font-semibold",ci(g)&&"bg-primary text-primary-foreground"),children:g.getDate()})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_1fr]",children:N.map(M=>{let D=new Date(g);D.setHours(M,0,0,0);let E=P.filter(L=>new Date(L.start).getHours()===M);return jsxRuntime.jsxs(K__namespace.Fragment,{children:[jsxRuntime.jsxs("div",{className:"h-12 text-xs text-muted-foreground text-right pr-2 pt-0 border-b",children:[M.toString().padStart(2,"0"),":00"]}),jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>m?.(D),children:E.map(L=>jsxRuntime.jsx("div",{className:"absolute inset-x-1 top-0.5 text-xs px-2 py-1 rounded truncate cursor-pointer",style:{backgroundColor:L.color||"hsl(var(--primary))",color:"white"},onClick:V=>{V.stopPropagation(),d?.(L);},children:L.title},L.id))})]},M)})})})]})};return jsxRuntime.jsxs("div",{ref:p,className:o(qg({variant:t,size:r,className:e})),...f,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx($,{variant:"bordered",size:"sm",onClick:C,children:"Today"}),jsxRuntime.jsx($,{variant:"ghost",size:"icon",onClick:b,children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx($,{variant:"ghost",size:"icon",onClick:v,children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})}),jsxRuntime.jsx("h2",{className:"text-lg font-semibold ml-2",children:w()})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-1 border rounded-lg p-1",children:["month","week","day"].map(N=>jsxRuntime.jsx($,{variant:n===N?"solid":"ghost",size:"sm",onClick:()=>i?.(N),children:N.charAt(0).toUpperCase()+N.slice(1)},N))})]}),n==="month"&&k(),n==="week"&&S(),n==="day"&&T()]})});Zg.displayName="FullCalendar";var Xo=classVarianceAuthority.cva("w-full",{variants:{size:{sm:"h-48",md:"h-64",lg:"h-96"}},defaultVariants:{size:"md"}}),qo=["hsl(var(--primary))","hsl(var(--chart-1, 220 70% 50%))","hsl(var(--chart-2, 160 60% 45%))","hsl(var(--chart-3, 30 80% 55%))","hsl(var(--chart-4, 280 65% 60%))"],Jg=K__namespace.forwardRef(({className:e,size:t,data:r,dataKeys:a,colors:n=qo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",curveType:m="monotone",...u},c)=>jsxRuntime.jsx("div",{ref:c,className:o(Xo({size:t,className:e})),...u,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.LineChart,{data:r,children:[i&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:d,className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),l&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"},labelStyle:{color:"hsl(var(--popover-foreground))"}}),s&&jsxRuntime.jsx(recharts.Legend,{}),a.map((f,p)=>jsxRuntime.jsx(recharts.Line,{type:m,dataKey:f,stroke:n[p%n.length],strokeWidth:2,dot:{fill:n[p%n.length],strokeWidth:0},activeDot:{r:6}},f))]})})}));Jg.displayName="LineChart";var Qg=K__namespace.forwardRef(({className:e,size:t,data:r,dataKeys:a,colors:n=qo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",stacked:m=false,layout:u="horizontal",...c},f)=>jsxRuntime.jsx("div",{ref:f,className:o(Xo({size:t,className:e})),...c,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.BarChart,{data:r,layout:u,children:[i&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:u==="horizontal"?d:void 0,type:u==="horizontal"?"category":"number",className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{dataKey:u==="vertical"?d:void 0,type:u==="vertical"?"category":"number",className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),l&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"},labelStyle:{color:"hsl(var(--popover-foreground))"}}),s&&jsxRuntime.jsx(recharts.Legend,{}),a.map((p,h)=>jsxRuntime.jsx(recharts.Bar,{dataKey:p,fill:n[h%n.length],stackId:m?"stack":void 0,radius:[4,4,0,0]},p))]})})}));Qg.displayName="BarChart";var eb=K__namespace.forwardRef(({className:e,size:t,data:r,dataKey:a="value",nameKey:n="name",colors:i=qo,innerRadius:s=0,outerRadius:l=80,showLegend:d=true,showTooltip:m=true,showLabels:u=false,...c},f)=>jsxRuntime.jsx("div",{ref:f,className:o(Xo({size:t,className:e})),...c,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.PieChart,{children:[m&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"}}),d&&jsxRuntime.jsx(recharts.Legend,{}),jsxRuntime.jsx(recharts.Pie,{data:r,dataKey:a,nameKey:n,cx:"50%",cy:"50%",innerRadius:s,outerRadius:l,label:u,labelLine:u,children:r.map((p,h)=>jsxRuntime.jsx(recharts.Cell,{fill:i[h%i.length]},`cell-${h}`))})]})})}));eb.displayName="PieChart";var tb=K__namespace.forwardRef(({className:e,size:t,data:r,dataKeys:a,colors:n=qo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",stacked:m=false,curveType:u="monotone",...c},f)=>jsxRuntime.jsx("div",{ref:f,className:o(Xo({size:t,className:e})),...c,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.AreaChart,{data:r,children:[i&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:d,className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),l&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"},labelStyle:{color:"hsl(var(--popover-foreground))"}}),s&&jsxRuntime.jsx(recharts.Legend,{}),a.map((p,h)=>jsxRuntime.jsx(recharts.Area,{type:u,dataKey:p,stroke:n[h%n.length],fill:n[h%n.length],fillOpacity:.3,stackId:m?"stack":void 0},p))]})})}));tb.displayName="AreaChart";var ob=classVarianceAuthority.cva("flex gap-4 overflow-x-auto p-4",{variants:{variant:{default:"bg-muted/30",bordered:"border rounded-lg bg-background",ghost:""}},defaultVariants:{variant:"default"}}),nb=classVarianceAuthority.cva("flex flex-col min-w-[280px] w-[280px] rounded-lg",{variants:{variant:{default:"bg-muted/50",bordered:"border bg-background",ghost:"bg-transparent"}},defaultVariants:{variant:"default"}}),xl=classVarianceAuthority.cva("rounded-lg p-3 cursor-grab active:cursor-grabbing transition-all",{variants:{variant:{default:"bg-background border shadow-sm hover:shadow-md",bordered:"border-2 bg-background hover:border-primary/50",ghost:"bg-muted/50 hover:bg-muted"},isDragging:{true:"opacity-50 scale-[1.02] shadow-lg",false:""}},defaultVariants:{variant:"default",isDragging:false}});function gC({card:e,columnId:t,variant:r,renderCard:a,onCardClick:n}){let{attributes:i,listeners:s,setNodeRef:l,transform:d,transition:m,isDragging:u}=sortable.useSortable({id:e.id,data:{columnId:t}}),c={transform:utilities.CSS.Transform.toString(d),transition:m};return jsxRuntime.jsx("div",{ref:l,style:c,className:o(xl({variant:r,isDragging:u})),onClick:()=>n?.(e,t),...i,...s,children:a?a(e,t):jsxRuntime.jsxs("div",{className:"flex items-start gap-2",children:[jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-muted-foreground flex-shrink-0 mt-0.5"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"font-medium text-sm truncate",children:e.title}),e.description&&jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:e.description})]})]})})}function bC({column:e,variant:t,renderCard:r,onCardClick:a,onAddCard:n,showAddCard:i,columnHeight:s}){return jsxRuntime.jsxs("div",{className:o(nb({variant:t})),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-3 border-b",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[e.color&&jsxRuntime.jsx("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:e.color}}),jsxRuntime.jsx("h3",{className:"font-semibold text-sm",children:e.title}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground bg-muted px-2 py-0.5 rounded-full",children:e.cards.length})]}),i&&jsxRuntime.jsx($,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>n?.(e.id),children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"})})]}),jsxRuntime.jsx(ze,{style:{height:s},children:jsxRuntime.jsxs("div",{className:"p-2 space-y-2",children:[jsxRuntime.jsx(sortable.SortableContext,{items:e.cards.map(l=>l.id),strategy:sortable.verticalListSortingStrategy,children:e.cards.map(l=>jsxRuntime.jsx(gC,{card:l,columnId:e.id,variant:t,renderCard:r,onCardClick:a},l.id))}),e.cards.length===0&&jsxRuntime.jsx("div",{className:"h-20 border-2 border-dashed rounded-lg flex items-center justify-center text-muted-foreground text-sm",children:"Drop here"})]})})]})}var ib=K__namespace.forwardRef(({className:e,variant:t,columns:r,onCardMove:a,onCardClick:n,onAddCard:i,renderCard:s,showAddCard:l=true,columnHeight:d=500,...m},u)=>{let[c,f]=K__namespace.useState(null),[p,h]=K__namespace.useState(null),y=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:8}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),g=v=>r.find(C=>C.cards.some(w=>w.id===v));return jsxRuntime.jsxs(core.DndContext,{sensors:y,collisionDetection:core.closestCorners,onDragStart:v=>{let{active:C}=v,w=g(C.id);if(w){let k=w.cards.find(S=>S.id===C.id);k&&(f(k),h(w.id));}},onDragOver:v=>{let{active:C,over:w}=v;if(!w)return;let k=C.id,S=w.id,T=g(k),N=g(S)||r.find(D=>D.id===S);if(!T||!N||T.id===N.id)return;let P=N.cards.findIndex(D=>D.id===S),M=P===-1?N.cards.length:P;a?.(k,T.id,N.id,M);},onDragEnd:v=>{let{active:C,over:w}=v;if(w&&C.id!==w.id){let k=g(C.id),S=g(w.id)||r.find(T=>T.id===w.id);if(k&&S){let T=S.cards.findIndex(P=>P.id===w.id),N=T===-1?S.cards.length:T;a?.(C.id,k.id,S.id,N);}}f(null),h(null);},children:[jsxRuntime.jsx("div",{ref:u,className:o(ob({variant:t,className:e})),...m,children:r.map(v=>jsxRuntime.jsx(bC,{column:v,variant:t,renderCard:s,onCardClick:n,onAddCard:i,showAddCard:l,columnHeight:d},v.id))}),jsxRuntime.jsx(core.DragOverlay,{children:c&&p&&jsxRuntime.jsx("div",{className:o(xl({variant:t,isDragging:true})),children:s?s(c,p):jsxRuntime.jsxs("div",{className:"flex items-start gap-2",children:[jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-muted-foreground flex-shrink-0 mt-0.5"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"font-medium text-sm truncate",children:c.title}),c.description&&jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:c.description})]})]})})})]})});ib.displayName="KanbanBoard";var sb=classVarianceAuthority.cva("relative",{variants:{variant:{default:"",bordered:"border rounded-lg p-4",cards:"rounded-lg"}},defaultVariants:{variant:"default"}}),lb=K__namespace.createContext(null);function yl(){let e=K__namespace.useContext(lb);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var db=K__namespace.forwardRef(({className:e,variant:t,children:r,opts:a,plugins:n,orientation:i="horizontal",showArrows:s=true,showDots:l=true,setApi:d,...m},u)=>{let[c,f]=vC__default.default({...a,axis:i==="horizontal"?"x":"y"},n),[p,h]=K__namespace.useState(false),[y,g]=K__namespace.useState(false),[x,R]=K__namespace.useState(0),[b,v]=K__namespace.useState([]),C=K__namespace.useCallback(N=>{N&&(R(N.selectedScrollSnap()),h(N.canScrollPrev()),g(N.canScrollNext()));},[]),w=K__namespace.useCallback(()=>{f?.scrollPrev();},[f]),k=K__namespace.useCallback(()=>{f?.scrollNext();},[f]),S=K__namespace.useCallback(N=>{f?.scrollTo(N);},[f]),T=K__namespace.useCallback(N=>{N.key==="ArrowLeft"?(N.preventDefault(),w()):N.key==="ArrowRight"&&(N.preventDefault(),k());},[w,k]);return K__namespace.useEffect(()=>{!f||!d||d(f);},[f,d]),K__namespace.useEffect(()=>{if(f)return v(f.scrollSnapList()),C(f),f.on("reInit",C),f.on("select",C),()=>{f?.off("select",C);}},[f,C]),jsxRuntime.jsx(lb.Provider,{value:{carouselRef:c,api:f,scrollPrev:w,scrollNext:k,canScrollPrev:p,canScrollNext:y,selectedIndex:x,scrollSnaps:b,scrollTo:S},children:jsxRuntime.jsxs("div",{ref:u,className:o(sb({variant:t,className:e})),onKeyDownCapture:T,role:"region","aria-roledescription":"carousel",...m,children:[jsxRuntime.jsx("div",{ref:c,className:"overflow-hidden",children:jsxRuntime.jsx("div",{className:o("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col"),children:r})}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Rl,{}),jsxRuntime.jsx(wl,{})]}),l&&b.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-1.5 mt-4",children:b.map((N,P)=>jsxRuntime.jsx("button",{className:o("w-2 h-2 rounded-full transition-all",P===x?"bg-primary w-4":"bg-muted-foreground/30 hover:bg-muted-foreground/50"),onClick:()=>S(P),"aria-label":`Go to slide ${P+1}`},P))})]})})});db.displayName="Carousel";var cb=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex",e),...t}));cb.displayName="CarouselContent";var mb=K__namespace.forwardRef(({className:e,basis:t="basis-full",...r},a)=>jsxRuntime.jsx("div",{ref:a,role:"group","aria-roledescription":"slide",className:o("min-w-0 shrink-0 grow-0 pl-4",t,e),...r}));mb.displayName="CarouselItem";var Rl=K__namespace.forwardRef(({className:e,variant:t="bordered",size:r="icon",...a},n)=>{let{scrollPrev:i,canScrollPrev:s}=yl();return jsxRuntime.jsxs($,{ref:n,variant:t,size:r,className:o("absolute left-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:i,...a,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Rl.displayName="CarouselPrevious";var wl=K__namespace.forwardRef(({className:e,variant:t="bordered",size:r="icon",...a},n)=>{let{scrollNext:i,canScrollNext:s}=yl();return jsxRuntime.jsxs($,{ref:n,variant:t,size:r,className:o("absolute right-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:i,...a,children:[jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Next slide"})]})});wl.displayName="CarouselNext";var ub=classVarianceAuthority.cva("flex flex-col bg-popover border rounded-lg shadow-md",{variants:{size:{sm:"w-64 h-72",md:"w-80 h-96",lg:"w-96 h-[480px]"}},defaultVariants:{size:"md"}}),vi={recent:{icon:"\u{1F550}",name:"Recent"},smileys:{icon:"\u{1F600}",name:"Smileys & Emotion"},people:{icon:"\u{1F44B}",name:"People & Body"},animals:{icon:"\u{1F43B}",name:"Animals & Nature"},food:{icon:"\u{1F354}",name:"Food & Drink"},travel:{icon:"\u{1F697}",name:"Travel & Places"},activities:{icon:"\u26BD",name:"Activities"},objects:{icon:"\u{1F4A1}",name:"Objects"},symbols:{icon:"\u2764\uFE0F",name:"Symbols"},flags:{icon:"\u{1F3F3}\uFE0F",name:"Flags"}},Pl={smileys:["\u{1F600}","\u{1F603}","\u{1F604}","\u{1F601}","\u{1F606}","\u{1F605}","\u{1F923}","\u{1F602}","\u{1F642}","\u{1F643}","\u{1F609}","\u{1F60A}","\u{1F607}","\u{1F970}","\u{1F60D}","\u{1F929}","\u{1F618}","\u{1F617}","\u263A\uFE0F","\u{1F61A}","\u{1F60B}","\u{1F61B}","\u{1F61C}","\u{1F92A}","\u{1F61D}","\u{1F911}","\u{1F917}","\u{1F92D}","\u{1F92B}","\u{1F914}","\u{1F910}","\u{1F928}","\u{1F610}","\u{1F611}","\u{1F636}","\u{1F60F}","\u{1F612}","\u{1F644}","\u{1F62C}","\u{1F925}","\u{1F60C}","\u{1F614}","\u{1F62A}","\u{1F924}","\u{1F634}","\u{1F637}","\u{1F912}","\u{1F915}","\u{1F922}","\u{1F92E}","\u{1F927}","\u{1F975}","\u{1F976}","\u{1F974}","\u{1F635}","\u{1F92F}","\u{1F920}","\u{1F973}","\u{1F978}","\u{1F60E}","\u{1F913}","\u{1F9D0}","\u{1F615}","\u{1F61F}","\u{1F641}","\u2639\uFE0F","\u{1F62E}","\u{1F62F}","\u{1F632}","\u{1F633}","\u{1F97A}","\u{1F626}","\u{1F627}","\u{1F628}","\u{1F630}","\u{1F625}","\u{1F622}","\u{1F62D}","\u{1F631}","\u{1F616}","\u{1F623}","\u{1F61E}","\u{1F613}","\u{1F629}","\u{1F62B}","\u{1F971}","\u{1F624}","\u{1F621}","\u{1F620}","\u{1F92C}","\u{1F608}","\u{1F47F}","\u{1F480}","\u2620\uFE0F","\u{1F4A9}","\u{1F921}","\u{1F479}","\u{1F47A}","\u{1F47B}","\u{1F47D}"],people:["\u{1F44B}","\u{1F91A}","\u{1F590}\uFE0F","\u270B","\u{1F596}","\u{1F44C}","\u{1F90C}","\u{1F90F}","\u270C\uFE0F","\u{1F91E}","\u{1F91F}","\u{1F918}","\u{1F919}","\u{1F448}","\u{1F449}","\u{1F446}","\u{1F595}","\u{1F447}","\u261D\uFE0F","\u{1F44D}","\u{1F44E}","\u270A","\u{1F44A}","\u{1F91B}","\u{1F91C}","\u{1F44F}","\u{1F64C}","\u{1F450}","\u{1F932}","\u{1F91D}","\u{1F64F}","\u270D\uFE0F","\u{1F485}","\u{1F933}","\u{1F4AA}","\u{1F9BE}","\u{1F9BF}","\u{1F9B5}","\u{1F9B6}","\u{1F442}","\u{1F9BB}","\u{1F443}","\u{1F9E0}","\u{1FAC0}","\u{1FAC1}","\u{1F9B7}","\u{1F9B4}","\u{1F440}","\u{1F441}\uFE0F","\u{1F445}","\u{1F444}","\u{1F476}","\u{1F9D2}","\u{1F466}","\u{1F467}","\u{1F9D1}","\u{1F471}","\u{1F468}","\u{1F9D4}","\u{1F469}","\u{1F9D3}","\u{1F474}","\u{1F475}","\u{1F64D}","\u{1F64E}","\u{1F645}","\u{1F646}","\u{1F481}","\u{1F64B}","\u{1F9CF}","\u{1F647}","\u{1F926}","\u{1F937}","\u{1F46E}","\u{1F575}\uFE0F","\u{1F482}","\u{1F977}","\u{1F477}","\u{1F934}","\u{1F478}"],animals:["\u{1F436}","\u{1F431}","\u{1F42D}","\u{1F439}","\u{1F430}","\u{1F98A}","\u{1F43B}","\u{1F43C}","\u{1F428}","\u{1F42F}","\u{1F981}","\u{1F42E}","\u{1F437}","\u{1F43D}","\u{1F438}","\u{1F435}","\u{1F648}","\u{1F649}","\u{1F64A}","\u{1F412}","\u{1F414}","\u{1F427}","\u{1F426}","\u{1F424}","\u{1F423}","\u{1F425}","\u{1F986}","\u{1F985}","\u{1F989}","\u{1F987}","\u{1F43A}","\u{1F417}","\u{1F434}","\u{1F984}","\u{1F41D}","\u{1FAB1}","\u{1F41B}","\u{1F98B}","\u{1F40C}","\u{1F41E}","\u{1F41C}","\u{1FAB0}","\u{1FAB2}","\u{1FAB3}","\u{1F99F}","\u{1F997}","\u{1F577}\uFE0F","\u{1F578}\uFE0F","\u{1F982}","\u{1F422}","\u{1F40D}","\u{1F98E}","\u{1F996}","\u{1F995}","\u{1F419}","\u{1F991}","\u{1F990}","\u{1F99E}","\u{1F980}","\u{1F421}","\u{1F420}","\u{1F41F}","\u{1F42C}","\u{1F433}","\u{1F40B}","\u{1F988}","\u{1F40A}","\u{1F405}","\u{1F406}","\u{1F993}","\u{1F98D}","\u{1F9A7}","\u{1F9A3}","\u{1F418}","\u{1F99B}","\u{1F98F}","\u{1F42A}","\u{1F42B}","\u{1F992}","\u{1F998}"],food:["\u{1F347}","\u{1F348}","\u{1F349}","\u{1F34A}","\u{1F34B}","\u{1F34C}","\u{1F34D}","\u{1F96D}","\u{1F34E}","\u{1F34F}","\u{1F350}","\u{1F351}","\u{1F352}","\u{1F353}","\u{1FAD0}","\u{1F95D}","\u{1F345}","\u{1FAD2}","\u{1F965}","\u{1F951}","\u{1F346}","\u{1F954}","\u{1F955}","\u{1F33D}","\u{1F336}\uFE0F","\u{1FAD1}","\u{1F952}","\u{1F96C}","\u{1F966}","\u{1F9C4}","\u{1F9C5}","\u{1F344}","\u{1F95C}","\u{1F330}","\u{1F35E}","\u{1F950}","\u{1F956}","\u{1FAD3}","\u{1F968}","\u{1F96F}","\u{1F95E}","\u{1F9C7}","\u{1F9C0}","\u{1F356}","\u{1F357}","\u{1F969}","\u{1F953}","\u{1F354}","\u{1F35F}","\u{1F355}","\u{1F32D}","\u{1F96A}","\u{1F32E}","\u{1F32F}","\u{1FAD4}","\u{1F959}","\u{1F9C6}","\u{1F95A}","\u{1F373}","\u{1F958}","\u{1F372}","\u{1FAD5}","\u{1F963}","\u{1F957}","\u{1F37F}","\u{1F9C8}","\u{1F9C2}","\u{1F96B}","\u{1F371}","\u{1F358}","\u{1F359}","\u{1F35A}","\u{1F35B}","\u{1F35C}","\u{1F35D}","\u{1F360}","\u{1F362}","\u{1F363}","\u{1F364}","\u{1F365}"],travel:["\u{1F697}","\u{1F695}","\u{1F699}","\u{1F68C}","\u{1F68E}","\u{1F3CE}\uFE0F","\u{1F693}","\u{1F691}","\u{1F692}","\u{1F690}","\u{1F6FB}","\u{1F69A}","\u{1F69B}","\u{1F69C}","\u{1F9AF}","\u{1F9BD}","\u{1F9BC}","\u{1F6F4}","\u{1F6B2}","\u{1F6F5}","\u{1F3CD}\uFE0F","\u{1F6FA}","\u{1F6A8}","\u{1F694}","\u{1F68D}","\u{1F698}","\u{1F696}","\u{1F6A1}","\u{1F6A0}","\u{1F69F}","\u{1F683}","\u{1F68B}","\u{1F69E}","\u{1F69D}","\u{1F684}","\u{1F685}","\u{1F688}","\u{1F682}","\u{1F686}","\u{1F687}","\u{1F68A}","\u{1F689}","\u2708\uFE0F","\u{1F6EB}","\u{1F6EC}","\u{1F6E9}\uFE0F","\u{1F4BA}","\u{1F6F0}\uFE0F","\u{1F680}","\u{1F6F8}","\u{1F681}","\u{1F6F6}","\u26F5","\u{1F6A4}","\u{1F6E5}\uFE0F","\u{1F6F3}\uFE0F","\u26F4\uFE0F","\u{1F6A2}","\u2693","\u{1FA9D}","\u26FD","\u{1F6A7}","\u{1F6A6}","\u{1F6A5}","\u{1F68F}","\u{1F5FA}\uFE0F","\u{1F5FF}","\u{1F5FD}","\u{1F5FC}","\u{1F3F0}","\u{1F3EF}","\u{1F3DF}\uFE0F","\u{1F3A1}","\u{1F3A2}","\u{1F3A0}","\u26F2","\u26F1\uFE0F","\u{1F3D6}\uFE0F","\u{1F3DD}\uFE0F","\u{1F3DC}\uFE0F"],activities:["\u26BD","\u{1F3C0}","\u{1F3C8}","\u26BE","\u{1F94E}","\u{1F3BE}","\u{1F3D0}","\u{1F3C9}","\u{1F94F}","\u{1F3B1}","\u{1FA80}","\u{1F3D3}","\u{1F3F8}","\u{1F3D2}","\u{1F3D1}","\u{1F94D}","\u{1F3CF}","\u{1FA83}","\u{1F945}","\u26F3","\u{1FA81}","\u{1F3F9}","\u{1F3A3}","\u{1F93F}","\u{1F94A}","\u{1F94B}","\u{1F3BD}","\u{1F6F9}","\u{1F6FC}","\u{1F6F7}","\u26F8\uFE0F","\u{1F94C}","\u{1F3BF}","\u26F7\uFE0F","\u{1F3C2}","\u{1FA82}","\u{1F3CB}\uFE0F","\u{1F93C}","\u{1F938}","\u26F9\uFE0F","\u{1F93A}","\u{1F93E}","\u{1F3CC}\uFE0F","\u{1F3C7}","\u26D1\uFE0F","\u{1F9D8}","\u{1F3C4}","\u{1F3CA}","\u{1F93D}","\u{1F6A3}","\u{1F9D7}","\u{1F6B5}","\u{1F6B4}","\u{1F3C6}","\u{1F947}","\u{1F948}","\u{1F949}","\u{1F3C5}","\u{1F396}\uFE0F","\u{1F3F5}\uFE0F","\u{1F397}\uFE0F","\u{1F3AB}","\u{1F39F}\uFE0F","\u{1F3AA}","\u{1F939}","\u{1F3AD}","\u{1FA70}","\u{1F3A8}","\u{1F3AC}","\u{1F3A4}","\u{1F3A7}","\u{1F3BC}","\u{1F3B9}","\u{1F941}","\u{1FA98}","\u{1F3B7}","\u{1F3BA}","\u{1FA97}","\u{1F3B8}","\u{1FA95}"],objects:["\u231A","\u{1F4F1}","\u{1F4F2}","\u{1F4BB}","\u2328\uFE0F","\u{1F5A5}\uFE0F","\u{1F5A8}\uFE0F","\u{1F5B1}\uFE0F","\u{1F5B2}\uFE0F","\u{1F579}\uFE0F","\u{1F5DC}\uFE0F","\u{1F4BD}","\u{1F4BE}","\u{1F4BF}","\u{1F4C0}","\u{1F4FC}","\u{1F4F7}","\u{1F4F8}","\u{1F4F9}","\u{1F3A5}","\u{1F4FD}\uFE0F","\u{1F39E}\uFE0F","\u{1F4DE}","\u260E\uFE0F","\u{1F4DF}","\u{1F4E0}","\u{1F4FA}","\u{1F4FB}","\u{1F399}\uFE0F","\u{1F39A}\uFE0F","\u{1F39B}\uFE0F","\u{1F9ED}","\u23F1\uFE0F","\u23F2\uFE0F","\u23F0","\u{1F570}\uFE0F","\u231B","\u23F3","\u{1F4E1}","\u{1F50B}","\u{1F50C}","\u{1F4A1}","\u{1F526}","\u{1F56F}\uFE0F","\u{1FA94}","\u{1F9EF}","\u{1F6E2}\uFE0F","\u{1F4B8}","\u{1F4B5}","\u{1F4B4}","\u{1F4B6}","\u{1F4B7}","\u{1FA99}","\u{1F4B0}","\u{1F4B3}","\u{1F48E}","\u2696\uFE0F","\u{1FA9C}","\u{1F9F0}","\u{1FA9B}","\u{1F527}","\u{1F528}","\u2692\uFE0F","\u{1F6E0}\uFE0F","\u26CF\uFE0F","\u{1FA9A}","\u{1F529}","\u2699\uFE0F","\u{1FAA4}","\u{1F9F1}","\u26D3\uFE0F","\u{1F9F2}","\u{1F52B}","\u{1F4A3}","\u{1F9E8}","\u{1FA93}","\u{1F52A}","\u{1F5E1}\uFE0F","\u2694\uFE0F","\u{1F6E1}\uFE0F"],symbols:["\u2764\uFE0F","\u{1F9E1}","\u{1F49B}","\u{1F49A}","\u{1F499}","\u{1F49C}","\u{1F5A4}","\u{1F90D}","\u{1F90E}","\u{1F494}","\u2763\uFE0F","\u{1F495}","\u{1F49E}","\u{1F493}","\u{1F497}","\u{1F496}","\u{1F498}","\u{1F49D}","\u{1F49F}","\u262E\uFE0F","\u271D\uFE0F","\u262A\uFE0F","\u{1F549}\uFE0F","\u2638\uFE0F","\u2721\uFE0F","\u{1F52F}","\u{1F54E}","\u262F\uFE0F","\u2626\uFE0F","\u{1F6D0}","\u26CE","\u2648","\u2649","\u264A","\u264B","\u264C","\u264D","\u264E","\u264F","\u2650","\u2651","\u2652","\u2653","\u{1F194}","\u269B\uFE0F","\u{1F251}","\u2622\uFE0F","\u2623\uFE0F","\u{1F4F4}","\u{1F4F3}","\u{1F236}","\u{1F21A}","\u{1F238}","\u{1F23A}","\u{1F237}\uFE0F","\u2734\uFE0F","\u{1F19A}","\u{1F4AE}","\u{1F250}","\u3299\uFE0F","\u3297\uFE0F","\u{1F234}","\u{1F235}","\u{1F239}","\u{1F232}","\u{1F170}\uFE0F","\u{1F171}\uFE0F","\u{1F18E}","\u{1F191}","\u{1F17E}\uFE0F","\u{1F198}","\u274C","\u2B55","\u{1F6D1}","\u26D4","\u{1F4DB}","\u{1F6AB}","\u{1F4AF}","\u{1F4A2}","\u2668\uFE0F"],flags:["\u{1F3F3}\uFE0F","\u{1F3F4}","\u{1F3C1}","\u{1F6A9}","\u{1F3F3}\uFE0F\u200D\u{1F308}","\u{1F3F3}\uFE0F\u200D\u26A7\uFE0F","\u{1F1FA}\u{1F1F3}","\u{1F1E6}\u{1F1EB}","\u{1F1E6}\u{1F1F1}","\u{1F1E9}\u{1F1FF}","\u{1F1E6}\u{1F1F8}","\u{1F1E6}\u{1F1E9}","\u{1F1E6}\u{1F1F4}","\u{1F1E6}\u{1F1EE}","\u{1F1E6}\u{1F1F6}","\u{1F1E6}\u{1F1EC}","\u{1F1E6}\u{1F1F7}","\u{1F1E6}\u{1F1F2}","\u{1F1E6}\u{1F1FC}","\u{1F1E6}\u{1F1FA}","\u{1F1E6}\u{1F1F9}","\u{1F1E6}\u{1F1FF}","\u{1F1E7}\u{1F1F8}","\u{1F1E7}\u{1F1ED}","\u{1F1E7}\u{1F1E9}","\u{1F1E7}\u{1F1E7}","\u{1F1E7}\u{1F1FE}","\u{1F1E7}\u{1F1EA}","\u{1F1E7}\u{1F1FF}","\u{1F1E7}\u{1F1EF}","\u{1F1E7}\u{1F1F2}","\u{1F1E7}\u{1F1F9}","\u{1F1E7}\u{1F1F4}","\u{1F1E7}\u{1F1E6}","\u{1F1E7}\u{1F1FC}","\u{1F1E7}\u{1F1F7}","\u{1F1E7}\u{1F1F3}","\u{1F1E7}\u{1F1EC}","\u{1F1E7}\u{1F1EB}","\u{1F1E7}\u{1F1EE}","\u{1F1E8}\u{1F1FB}","\u{1F1F0}\u{1F1ED}","\u{1F1E8}\u{1F1F2}","\u{1F1E8}\u{1F1E6}","\u{1F1E8}\u{1F1EB}","\u{1F1F9}\u{1F1E9}","\u{1F1E8}\u{1F1F1}","\u{1F1E8}\u{1F1F3}","\u{1F1E8}\u{1F1F4}","\u{1F1F0}\u{1F1F2}","\u{1F1E8}\u{1F1EC}","\u{1F1E8}\u{1F1E9}","\u{1F1E8}\u{1F1F7}","\u{1F1ED}\u{1F1F7}","\u{1F1E8}\u{1F1FA}","\u{1F1E8}\u{1F1FE}","\u{1F1E8}\u{1F1FF}","\u{1F1E9}\u{1F1F0}","\u{1F1E9}\u{1F1EF}","\u{1F1E9}\u{1F1F2}","\u{1F1E9}\u{1F1F4}","\u{1F1EA}\u{1F1E8}","\u{1F1EA}\u{1F1EC}","\u{1F1F8}\u{1F1FB}","\u{1F1EC}\u{1F1F6}","\u{1F1EA}\u{1F1F7}","\u{1F1EA}\u{1F1EA}","\u{1F1EA}\u{1F1F9}","\u{1F1EA}\u{1F1FA}","\u{1F1EB}\u{1F1EF}","\u{1F1EB}\u{1F1EE}","\u{1F1EB}\u{1F1F7}","\u{1F1EC}\u{1F1E6}","\u{1F1EC}\u{1F1F2}","\u{1F1EC}\u{1F1EA}","\u{1F1E9}\u{1F1EA}","\u{1F1EC}\u{1F1ED}","\u{1F1EC}\u{1F1F7}","\u{1F1EC}\u{1F1F9}","\u{1F1EC}\u{1F1F3}"]},pb=K__namespace.forwardRef(({className:e,size:t,onEmojiSelect:r,recentEmojis:a=[],defaultCategory:n="smileys",showSearch:i=true,showCategories:s=true,...l},d)=>{let[m,u]=K__namespace.useState(a.length>0?"recent":n),[c,f]=K__namespace.useState(""),h=c?Object.values(Pl).flat().filter(g=>g.toLowerCase().includes(c.toLowerCase())):m==="recent"?a:Pl[m]||[],y=g=>{r?.(g);};return jsxRuntime.jsxs("div",{ref:d,className:o(ub({size:t,className:e})),...l,children:[i&&jsxRuntime.jsx("div",{className:"p-2 border-b",children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(lucideReact.Search,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),jsxRuntime.jsx(hn,{placeholder:"Search emojis...",value:c,onChange:g=>f(g.target.value),className:"pl-8 h-8"})]})}),s&&!c&&jsxRuntime.jsx("div",{className:"flex border-b px-1",children:Object.entries(vi).map(([g,{icon:x}])=>g==="recent"&&a.length===0?null:jsxRuntime.jsx("button",{className:o("flex-1 p-2 text-lg hover:bg-accent rounded transition-colors",m===g&&"bg-accent"),onClick:()=>u(g),title:vi[g].name,children:x},g))}),!c&&jsxRuntime.jsx("div",{className:"px-3 py-1.5 text-xs font-medium text-muted-foreground",children:vi[m].name}),jsxRuntime.jsx(ze,{className:"flex-1",children:jsxRuntime.jsxs("div",{className:"grid grid-cols-8 gap-1 p-2",children:[h.map((g,x)=>jsxRuntime.jsx("button",{className:"w-8 h-8 flex items-center justify-center text-xl hover:bg-accent rounded transition-colors",onClick:()=>y(g),children:g},`${g}-${x}`)),h.length===0&&jsxRuntime.jsx("div",{className:"col-span-8 py-8 text-center text-muted-foreground text-sm",children:"No emojis found"})]})})]})});pb.displayName="EmojiPicker";var fb=classVarianceAuthority.cva("flex flex-col border rounded-lg bg-background overflow-hidden",{variants:{variant:{default:"",bordered:"border-2",ghost:"border-transparent"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),XC=classVarianceAuthority.cva("flex flex-wrap items-center gap-0.5 p-1 border-b",{variants:{size:{sm:"p-0.5",md:"p-1",lg:"p-1.5"}},defaultVariants:{size:"md"}}),qC=classVarianceAuthority.cva("flex-1 overflow-auto prose prose-sm max-w-none dark:prose-invert [&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[inherit] [&_.ProseMirror.is-editor-empty:first-child::before]:text-muted-foreground [&_.ProseMirror.is-editor-empty:first-child::before]:content-[attr(data-placeholder)] [&_.ProseMirror.is-editor-empty:first-child::before]:float-left [&_.ProseMirror.is-editor-empty:first-child::before]:pointer-events-none [&_.ProseMirror.is-editor-empty:first-child::before]:h-0",{variants:{size:{sm:"min-h-[100px] [&_.ProseMirror]:p-2 text-sm",md:"min-h-[150px] [&_.ProseMirror]:p-3 text-sm",lg:"min-h-[200px] [&_.ProseMirror]:p-4 text-base"}},defaultVariants:{size:"md"}}),De=({icon:e,title:t,isActive:r,onClick:a,disabled:n})=>jsxRuntime.jsxs(ia,{children:[jsxRuntime.jsx(sa,{asChild:true,children:jsxRuntime.jsx($,{type:"button",variant:r?"solid":"ghost",size:"icon",className:"h-7 w-7",onClick:a,disabled:n,children:e})}),jsxRuntime.jsx(Lr,{side:"top",className:"text-xs",children:t})]}),gb=K__namespace.forwardRef(({className:e,variant:t,size:r,value:a="",onChange:n,placeholder:i="Start writing...",readOnly:s=false,showToolbar:l=true,minHeight:d,maxHeight:m,onEditorReady:u,...c},f)=>{let p=react.useEditor({extensions:[SC__default.default.configure({heading:{levels:[1,2,3]}}),MC__default.default.configure({openOnClick:false,HTMLAttributes:{class:"text-primary underline"}}),TC__default.default,kC__default.default.configure({types:["heading","paragraph"]}),DC__default.default.configure({placeholder:i})],content:a,editable:!s,onUpdate:({editor:y})=>{n?.(y.getHTML());},onCreate:({editor:y})=>{u?.(y);}});K__namespace.useEffect(()=>{p&&a!==p.getHTML()&&p.commands.setContent(a);},[a,p]),K__namespace.useEffect(()=>{p&&p.setEditable(!s);},[s,p]);let h=()=>{if(!p)return;let y=p.getAttributes("link").href,g=window.prompt("URL",y);if(g!==null){if(g===""){p.chain().focus().extendMarkRange("link").unsetLink().run();return}p.chain().focus().extendMarkRange("link").setLink({href:g}).run();}};return p?jsxRuntime.jsx(na,{children:jsxRuntime.jsxs("div",{ref:f,className:o(fb({variant:t,size:r,className:e})),...c,children:[l&&!s&&jsxRuntime.jsxs("div",{className:o(XC({size:r})),children:[jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Undo,{className:"h-4 w-4"}),title:"Undo",onClick:()=>p.chain().focus().undo().run(),disabled:!p.can().undo()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Redo,{className:"h-4 w-4"}),title:"Redo",onClick:()=>p.chain().focus().redo().run(),disabled:!p.can().redo()}),jsxRuntime.jsx(Vr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Heading1,{className:"h-4 w-4"}),title:"Heading 1",isActive:p.isActive("heading",{level:1}),onClick:()=>p.chain().focus().toggleHeading({level:1}).run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Heading2,{className:"h-4 w-4"}),title:"Heading 2",isActive:p.isActive("heading",{level:2}),onClick:()=>p.chain().focus().toggleHeading({level:2}).run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Heading3,{className:"h-4 w-4"}),title:"Heading 3",isActive:p.isActive("heading",{level:3}),onClick:()=>p.chain().focus().toggleHeading({level:3}).run()}),jsxRuntime.jsx(Vr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Bold,{className:"h-4 w-4"}),title:"Bold (Ctrl+B)",isActive:p.isActive("bold"),onClick:()=>p.chain().focus().toggleBold().run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Italic,{className:"h-4 w-4"}),title:"Italic (Ctrl+I)",isActive:p.isActive("italic"),onClick:()=>p.chain().focus().toggleItalic().run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Underline,{className:"h-4 w-4"}),title:"Underline (Ctrl+U)",isActive:p.isActive("underline"),onClick:()=>p.chain().focus().toggleUnderline().run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Strikethrough,{className:"h-4 w-4"}),title:"Strikethrough",isActive:p.isActive("strike"),onClick:()=>p.chain().focus().toggleStrike().run()}),jsxRuntime.jsx(Vr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.List,{className:"h-4 w-4"}),title:"Bullet List",isActive:p.isActive("bulletList"),onClick:()=>p.chain().focus().toggleBulletList().run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.ListOrdered,{className:"h-4 w-4"}),title:"Numbered List",isActive:p.isActive("orderedList"),onClick:()=>p.chain().focus().toggleOrderedList().run()}),jsxRuntime.jsx(Vr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.AlignLeft,{className:"h-4 w-4"}),title:"Align Left",isActive:p.isActive({textAlign:"left"}),onClick:()=>p.chain().focus().setTextAlign("left").run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.AlignCenter,{className:"h-4 w-4"}),title:"Align Center",isActive:p.isActive({textAlign:"center"}),onClick:()=>p.chain().focus().setTextAlign("center").run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.AlignRight,{className:"h-4 w-4"}),title:"Align Right",isActive:p.isActive({textAlign:"right"}),onClick:()=>p.chain().focus().setTextAlign("right").run()}),jsxRuntime.jsx(Vr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Quote,{className:"h-4 w-4"}),title:"Blockquote",isActive:p.isActive("blockquote"),onClick:()=>p.chain().focus().toggleBlockquote().run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Code,{className:"h-4 w-4"}),title:"Code Block",isActive:p.isActive("codeBlock"),onClick:()=>p.chain().focus().toggleCodeBlock().run()}),jsxRuntime.jsx(Vr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Link,{className:"h-4 w-4"}),title:"Insert Link",isActive:p.isActive("link"),onClick:h}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Unlink,{className:"h-4 w-4"}),title:"Remove Link",onClick:()=>p.chain().focus().unsetLink().run(),disabled:!p.isActive("link")})]}),jsxRuntime.jsx(react.EditorContent,{editor:p,className:o(qC({size:r})),style:{minHeight:d,maxHeight:m}})]})}):null});gb.displayName="RichTextEditor";var vb=classVarianceAuthority.cva("flex flex-col border rounded-lg bg-background overflow-hidden",{variants:{variant:{default:"",bordered:"border-2",ghost:"border-none bg-transparent"}},defaultVariants:{variant:"default"}});function oS(e,t,r){return ZC.centerCrop(ZC.makeAspectCrop({unit:"%",width:90},r,e,t),e,t)}async function bb(e,t,r=0,a=1){let n=document.createElement("canvas"),i=n.getContext("2d");if(!i)return null;let s=e.naturalWidth/e.width,l=e.naturalHeight/e.height,d=window.devicePixelRatio||1;n.width=Math.floor(t.width*s*d),n.height=Math.floor(t.height*l*d),i.scale(d,d),i.imageSmoothingQuality="high";let m=t.x*s,u=t.y*l,c=r*Math.PI/180,f=e.naturalWidth/2,p=e.naturalHeight/2;return i.save(),i.translate(-m,-u),i.translate(f,p),i.rotate(c),i.scale(a,a),i.translate(-f,-p),i.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.naturalWidth,e.naturalHeight),i.restore(),new Promise(h=>{n.toBlob(y=>{h(y);},"image/png");})}var hb=K__namespace.forwardRef(({className:e,variant:t,src:r,aspectRatio:a,onCropChange:n,onCropComplete:i,showZoom:s=true,showRotation:l=true,minZoom:d=1,maxZoom:m=3,circularCrop:u=false,initialCrop:c,...f},p)=>{let h=K__namespace.useRef(null),[y,g]=K__namespace.useState(),[x,R]=K__namespace.useState(),[b,v]=K__namespace.useState(1),[C,w]=K__namespace.useState(0),k=P=>{let{width:M,height:D}=P.currentTarget;if(a){let E=oS(M,D,a);g(E);}else g(c||{unit:"%",x:10,y:10,width:80,height:80});},S=P=>{g(P),n?.(P);},T=async P=>{if(R(P),i&&h.current&&P.width&&P.height){let M=await bb(h.current,P,C,b);i(M);}},N=()=>{w(P=>(P+90)%360);};return K__namespace.useEffect(()=>{x&&h.current&&i&&bb(h.current,x,C,b).then(P=>{i(P);});},[b,C,x,i]),jsxRuntime.jsxs("div",{ref:p,className:o(vb({variant:t,className:e})),...f,children:[jsxRuntime.jsx("div",{className:"flex-1 flex items-center justify-center p-4 bg-muted/30 min-h-[300px]",children:jsxRuntime.jsx(ZC__default.default,{crop:y,onChange:S,onComplete:T,aspect:a,circularCrop:u,className:"max-h-[400px]",children:jsxRuntime.jsx("img",{ref:h,src:r,alt:"Crop preview",onLoad:k,style:{transform:`scale(${b}) rotate(${C}deg)`,maxHeight:"400px"}})})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-4 p-3 border-t",children:[s&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[jsxRuntime.jsx(lucideReact.ZoomOut,{className:"h-4 w-4 text-muted-foreground"}),jsxRuntime.jsx(kn,{value:[b],onValueChange:([P])=>v(P),min:d,max:m,step:.1,className:"flex-1"}),jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-4 w-4 text-muted-foreground"})]}),l&&jsxRuntime.jsx($,{variant:"bordered",size:"icon",onClick:N,children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-4 w-4"})})]})]})});hb.displayName="ImageCropper";var Tl=classVarianceAuthority.cva("inline-block",{variants:{variant:{default:"",bordered:"border rounded-lg p-2",card:"border rounded-lg p-4 bg-card shadow-sm"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),sS={sm:96,md:128,lg:192},yb=K__namespace.forwardRef(({className:e,variant:t,size:r,value:a,qrSize:n,fgColor:i="currentColor",bgColor:s="transparent",level:l="M",includeMargin:d=false,title:m,logo:u,logoSize:c=40,logoPadding:f=4,logoBackgroundColor:p="white",...h},y)=>{let g=n??sS[r??"md"];return a?jsxRuntime.jsx("div",{ref:y,className:o(Tl({variant:t,size:r,className:e})),...h,children:jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx(nS__default.default,{value:a,size:g,fgColor:i,bgColor:s,level:l,title:m,style:{padding:d?16:0}}),u&&jsxRuntime.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded",style:{padding:f,backgroundColor:p},children:jsxRuntime.jsx("img",{src:u,alt:"Logo",style:{width:c,height:c,objectFit:"contain"}})})]})}):jsxRuntime.jsx("div",{ref:y,className:o(Tl({variant:t,size:r,className:e})),...h,children:jsxRuntime.jsx("div",{className:"flex items-center justify-center bg-muted text-muted-foreground text-xs rounded",style:{width:g,height:g},children:"No data"})})});yb.displayName="QRCode";var Rb=({children:e,defaultTheme:t="system",storageKey:r="reever-ui-theme",enableSystem:a=true,disableTransitionOnChange:n=false,attribute:i="class",forcedTheme:s,themes:l=["light","dark"]})=>jsxRuntime.jsx(nextThemes.ThemeProvider,{defaultTheme:t,storageKey:r,enableSystem:a,disableTransitionOnChange:n,attribute:i,forcedTheme:s,themes:l,children:e});Rb.displayName="ThemeProvider";var fS=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"",ghost:""},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"ghost",size:"md"}}),wb=K__namespace.forwardRef(({className:e,variant:t="ghost",size:r="md",mode:a="dropdown"},n)=>{let{theme:i,setTheme:s,resolvedTheme:l}=nextThemes.useTheme(),[d,m]=K__namespace.useState(false);K__namespace.useEffect(()=>{m(true);},[]);let u=()=>{let c=["light","dark","system"],p=(c.indexOf(i||"system")+1)%c.length;s(c[p]);};return d?a==="cycle"?jsxRuntime.jsxs($,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:o("h-9 w-9",e),onClick:u,children:[l==="dark"?jsxRuntime.jsx(lucideReact.Moon,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Sun,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle theme"})]}):jsxRuntime.jsxs(la,{children:[jsxRuntime.jsx(da,{asChild:true,children:jsxRuntime.jsxs($,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:o("h-9 w-9",e),children:[jsxRuntime.jsx(lucideReact.Sun,{className:"h-4 w-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),jsxRuntime.jsx(lucideReact.Moon,{className:"absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),jsxRuntime.jsxs(Ir,{align:"end",children:[jsxRuntime.jsxs(It,{onClick:()=>s("light"),children:[jsxRuntime.jsx(lucideReact.Sun,{className:"mr-2 h-4 w-4"}),"Light"]}),jsxRuntime.jsxs(It,{onClick:()=>s("dark"),children:[jsxRuntime.jsx(lucideReact.Moon,{className:"mr-2 h-4 w-4"}),"Dark"]}),jsxRuntime.jsxs(It,{onClick:()=>s("system"),children:[jsxRuntime.jsx(lucideReact.Monitor,{className:"mr-2 h-4 w-4"}),"System"]})]})]}):jsxRuntime.jsxs($,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:o("h-9 w-9",e),disabled:true,children:[jsxRuntime.jsx(lucideReact.Sun,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle theme"})]})});wb.displayName="ThemeToggle";var Pb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),Cb=classVarianceAuthority.cva("flex w-full rounded-md border border-input bg-background ring-offset-background file:border-0 file:bg-transparent file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2.5 py-1.5 text-xs",md:"h-10 px-3 py-2 text-sm",lg:"h-12 px-4 py-3 text-base"},isInvalid:{true:"border-danger focus-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),Sb=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Mb=K__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,startContent:c,endContent:f,id:p,...h},y)=>{let g=K__namespace.useId(),x=p||g,R=`${x}-description`,b=`${x}-error`,v=i&&a;return jsxRuntime.jsxs("div",{className:o(Pb({size:s}),e),children:[t&&jsxRuntime.jsxs(as__namespace.Root,{htmlFor:x,className:o(Sb({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[c&&jsxRuntime.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:c}),jsxRuntime.jsx("input",{ref:y,id:x,"aria-invalid":i,"aria-describedby":v?b:r?R:void 0,"aria-required":n,className:o(Cb({size:s,isInvalid:i}),c&&"pl-10",f&&"pr-10",d),...h}),f&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:f})]}),r&&!v&&jsxRuntime.jsx("p",{id:R,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:r}),v&&jsxRuntime.jsx("p",{id:b,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:a})]})});Mb.displayName="TextField";var Vb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),vS=classVarianceAuthority.cva("flex rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 text-center [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",{variants:{size:{sm:"h-8 px-8 py-1.5 text-xs",md:"h-10 px-10 py-2 text-sm",lg:"h-12 px-12 py-3 text-base"},isInvalid:{true:"border-danger focus:border-danger",false:""},fullWidth:{true:"w-full",false:"w-fit min-w-24"}},defaultVariants:{size:"md",isInvalid:false,fullWidth:false}}),Tb=classVarianceAuthority.cva("absolute top-1/2 -translate-y-1/2 flex items-center justify-center rounded-md text-muted-foreground hover:text-foreground hover:bg-muted disabled:opacity-50 disabled:cursor-not-allowed transition-colors",{variants:{size:{sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{size:"md"}}),kb=classVarianceAuthority.cva("",{variants:{size:{sm:"h-3 w-3",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),hS=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Lb=K__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,min:c,max:f,step:p=1,value:h,defaultValue:y,onChange:g,showButtons:x=true,formatOptions:R,fullWidth:b=false,disabled:v,id:C,...w},k)=>{let S=K__namespace.useId(),T=C||S,N=`${T}-description`,P=`${T}-error`,[M,D]=K__namespace.useState(y),[E,L]=K__namespace.useState(false),V=h!==void 0?h:M,I=i&&a,A=K__namespace.useCallback(B=>{B!==void 0&&(c!==void 0&&B<c&&(B=c),f!==void 0&&B>f&&(B=f)),h===void 0&&D(B),g?.(B);},[h,c,f,g]),G=()=>{let B=(V??0)+p;A(B);},H=()=>{let B=(V??0)-p;A(B);},j=B=>{let te=B.target.value;if(te==="")A(void 0);else {let F=parseFloat(te);isNaN(F)||A(F);}},W=B=>{B.key==="ArrowUp"?(B.preventDefault(),G()):B.key==="ArrowDown"&&(B.preventDefault(),H());},Le=K__namespace.useMemo(()=>V===void 0?"":R?new Intl.NumberFormat(void 0,R).format(V):V.toString(),[V,R]),xe=c!==void 0&&V!==void 0&&V<=c,z=f!==void 0&&V!==void 0&&V>=f;return jsxRuntime.jsxs("div",{className:o(Vb({size:s}),e),children:[t&&jsxRuntime.jsxs(as__namespace.Root,{htmlFor:T,className:o(hS({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[x&&jsxRuntime.jsx("button",{type:"button",onClick:H,disabled:v||xe,className:o(Tb({size:s}),"left-1"),tabIndex:-1,"aria-label":"Decrease value",children:jsxRuntime.jsx(lucideReact.Minus,{className:o(kb({size:s}))})}),jsxRuntime.jsx("input",{ref:k,id:T,type:"text",inputMode:"decimal",value:Le,onChange:j,onKeyDown:W,onFocus:()=>L(true),onBlur:()=>L(false),"aria-invalid":i,"aria-describedby":I?P:r?N:void 0,"aria-required":n,"aria-valuemin":c,"aria-valuemax":f,"aria-valuenow":V,disabled:v,className:o(vS({size:s,isInvalid:i,fullWidth:b}),!x&&"px-3",d),style:{borderColor:E?"var(--color-foreground)":void 0},...w}),x&&jsxRuntime.jsx("button",{type:"button",onClick:G,disabled:v||z,className:o(Tb({size:s}),"right-1"),tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:o(kb({size:s}))})})]}),r&&!I&&jsxRuntime.jsx("p",{id:N,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:r}),I&&jsxRuntime.jsx("p",{id:P,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:a})]})});Lb.displayName="NumberField";var Hb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),RS=classVarianceAuthority.cva("flex w-full rounded-md border border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 pl-8 pr-8 py-1.5 text-xs",md:"h-10 pl-10 pr-10 py-2 text-sm",lg:"h-12 pl-12 pr-12 py-3 text-base"},isInvalid:{true:"border-danger focus-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),Ib=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),wS=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),NS=classVarianceAuthority.cva("absolute top-1/2 -translate-y-1/2 flex items-center justify-center rounded-full text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",{variants:{size:{sm:"h-5 w-5 right-1.5",md:"h-6 w-6 right-2",lg:"h-7 w-7 right-2.5"}},defaultVariants:{size:"md"}}),Ab=K__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:f="",onChange:p,onClear:h,onSearch:y,showClearButton:g=true,showSearchIcon:x=true,disabled:R,placeholder:b="Search...",id:v,...C},w)=>{let k=K__namespace.useId(),S=v||k,T=`${S}-description`,N=`${S}-error`,[P,M]=K__namespace.useState(f),D=c!==void 0?c:P,E=i&&a,L=D.length>0,V=G=>{let H=G.target.value;c===void 0&&M(H),p?.(H);},I=()=>{c===void 0&&M(""),p?.(""),h?.();},A=G=>{G.key==="Enter"?(G.preventDefault(),y?.(D)):G.key==="Escape"&&L&&(G.preventDefault(),I());};return jsxRuntime.jsxs("div",{className:o(Hb({size:s}),e),children:[t&&jsxRuntime.jsxs(as__namespace.Root,{htmlFor:S,className:o(wS({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[x&&jsxRuntime.jsx(lucideReact.Search,{className:o(Ib({size:s}),"absolute left-3 top-1/2 -translate-y-1/2")}),jsxRuntime.jsx("input",{ref:w,id:S,type:"search",value:D,onChange:V,onKeyDown:A,placeholder:b,"aria-invalid":i,"aria-describedby":E?N:r?T:void 0,"aria-required":n,disabled:R,className:o(RS({size:s,isInvalid:i}),!x&&"pl-3",!g&&"pr-3",d),...C}),g&&L&&!R&&jsxRuntime.jsx("button",{type:"button",onClick:I,className:o(NS({size:s})),tabIndex:-1,"aria-label":"Clear search",children:jsxRuntime.jsx(lucideReact.X,{className:o(Ib({size:s}))})})]}),r&&!E&&jsxRuntime.jsx("p",{id:T,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:r}),E&&jsxRuntime.jsx("p",{id:N,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:a})]})});Ab.displayName="SearchField";var Bb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),CS=classVarianceAuthority.cva("flex rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 [&::-webkit-calendar-picker-indicator]:hidden",{variants:{size:{sm:"h-8 pl-3 pr-8 py-1.5 text-xs",md:"h-10 pl-3 pr-10 py-2 text-sm",lg:"h-12 pl-4 pr-12 py-3 text-base"},isInvalid:{true:"border-danger focus:border-danger",false:""},fullWidth:{true:"w-full",false:"w-fit"}},defaultVariants:{size:"md",isInvalid:false,fullWidth:false}}),SS=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),MS=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),El=(e,t="yyyy-MM-dd")=>{if(!e)return "";let r=e.getFullYear(),a=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return t.replace("yyyy",String(r)).replace("MM",a).replace("dd",n)},TS=e=>{if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t},Fb=K__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:f,onChange:p,minDate:h,maxDate:y,dateFormat:g="yyyy-MM-dd",showIcon:x=true,fullWidth:R=false,disabled:b,id:v,...C},w)=>{let k=K__namespace.useId(),S=v||k,T=`${S}-description`,N=`${S}-error`,P=K__namespace.useRef(null),M=w||P,[D,E]=K__namespace.useState(f??null),[L,V]=K__namespace.useState(false),I=()=>{!b&&M.current&&M.current.showPicker?.();},A=c!==void 0?c:D,G=i&&a,H=xe=>{let z=TS(xe.target.value);c===void 0&&E(z),p?.(z);},j=A?El(A,"yyyy-MM-dd"):"",W=h?El(h,"yyyy-MM-dd"):void 0,Le=y?El(y,"yyyy-MM-dd"):void 0;return jsxRuntime.jsxs("div",{className:o(Bb({size:s}),e),children:[t&&jsxRuntime.jsxs(as__namespace.Root,{htmlFor:S,className:o(MS({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:o("relative",R?"w-full":"w-fit"),children:[jsxRuntime.jsx("input",{ref:M,id:S,type:"date",value:j,onChange:H,onFocus:()=>V(true),onBlur:()=>V(false),min:W,max:Le,"aria-invalid":i,"aria-describedby":G?N:r?T:void 0,"aria-required":n,disabled:b,className:o(CS({size:s,isInvalid:i,fullWidth:R}),!x&&"pr-3",d),style:{borderColor:L?"var(--color-foreground)":void 0},...C}),x&&jsxRuntime.jsx("button",{type:"button",onClick:I,disabled:b,className:"absolute right-3 top-1/2 -translate-y-1/2 cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",tabIndex:-1,"aria-label":"Open calendar",children:jsxRuntime.jsx(lucideReact.Calendar,{className:o(SS({size:s}))})})]}),r&&!G&&jsxRuntime.jsx("p",{id:T,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:r}),G&&jsxRuntime.jsx("p",{id:N,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:a})]})});Fb.displayName="DateField";var Gb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),kS=classVarianceAuthority.cva("inline-flex items-center rounded-md border border-input bg-background transition-colors",{variants:{size:{sm:"h-8 px-2 gap-0.5 text-xs",md:"h-10 px-3 gap-1 text-sm",lg:"h-12 px-4 gap-1.5 text-base"},isInvalid:{true:"border-danger",false:""},disabled:{true:"cursor-not-allowed opacity-50",false:""},fullWidth:{true:"w-full justify-center",false:"w-fit"}},defaultVariants:{size:"md",isInvalid:false,disabled:false,fullWidth:false}}),DS=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Wb=K__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:f,onChange:p,minTime:h,maxTime:y,showSeconds:g=false,hourCycle:x=24,disabled:R,fullWidth:b=false,id:v,...C},w)=>{let k=K__namespace.useId(),S=v||k,T=`${S}-description`,N=`${S}-error`,P=K__namespace.useRef(null),M=K__namespace.useRef(null),D=K__namespace.useRef(null),E=K__namespace.useRef(null),[L,V]=K__namespace.useState(f??null),I=c!==void 0?c:L,A=i&&a,G=O=>x===24?O:O===0?12:O>12?O-12:O,H=O=>O>=12?"PM":"AM",j=(O,Z)=>Z==="AM"?O===12?0:O:O===12?12:O+12,[W,Le]=K__namespace.useState(I?String(G(I.hour)).padStart(2,"0"):""),[xe,z]=K__namespace.useState(I?String(I.minute).padStart(2,"0"):""),[B,te]=K__namespace.useState(I?.second!==void 0?String(I.second).padStart(2,"0"):""),[F,oe]=K__namespace.useState(I?H(I.hour):"AM"),[ee,ot]=K__namespace.useState(false);K__namespace.useEffect(()=>{c!==void 0&&(c?(Le(String(G(c.hour)).padStart(2,"0")),z(String(c.minute).padStart(2,"0")),c.second!==void 0&&te(String(c.second).padStart(2,"0")),oe(H(c.hour))):(Le(""),z(""),te("")));},[c,x]);let nt=(O,Z,Ie,Qt)=>{let pe=parseInt(O,10),ht=parseInt(Z,10),er=g?parseInt(Ie,10):void 0;if(isNaN(pe)||isNaN(ht)||g&&isNaN(er)){c===void 0&&V(null),p?.(null);return}let dd={hour:x===12?j(pe,Qt):pe,minute:ht,...g&&er!==void 0&&{second:er}};c===void 0&&V(dd),p?.(dd);},Ox=O=>{let Z=O.target.value.replace(/\D/g,"").slice(0,2);Le(Z);let Ie=x===24?23:12,Qt=x===24?0:1;if(Z.length===2){let pe=parseInt(Z,10);pe>=Qt&&pe<=Ie&&(M.current?.focus(),M.current?.select());}},Gx=O=>{let Z=O.target.value.replace(/\D/g,"").slice(0,2);if(z(Z),Z.length===2){let Ie=parseInt(Z,10);Ie>=0&&Ie<=59&&(g?(D.current?.focus(),D.current?.select()):x===12&&E.current?.focus());}},Wx=O=>{let Z=O.target.value.replace(/\D/g,"").slice(0,2);te(Z),Z.length===2&&x===12&&E.current?.focus();},$x=()=>{if(W){let O=parseInt(W,10),Z=x===24?23:12,Qt=Math.min(Math.max(O,x===24?0:1),Z),pe=String(Qt).padStart(2,"0");Le(pe),nt(pe,xe,B,F);}},_x=()=>{if(xe){let O=parseInt(xe,10),Z=Math.min(Math.max(O,0),59),Ie=String(Z).padStart(2,"0");z(Ie),nt(W,Ie,B,F);}},Kx=()=>{if(B){let O=parseInt(B,10),Z=Math.min(Math.max(O,0),59),Ie=String(Z).padStart(2,"0");te(Ie),nt(W,xe,Ie,F);}},ld=()=>{let O=F==="AM"?"PM":"AM";oe(O),nt(W,xe,B,O);},Yx=O=>{let Z=O.key.toLowerCase();Z==="a"?(O.preventDefault(),F!=="AM"&&(oe("AM"),nt(W,xe,B,"AM"))):Z==="p"?(O.preventDefault(),F!=="PM"&&(oe("PM"),nt(W,xe,B,"PM"))):Z==="arrowup"||Z==="arrowdown"?(O.preventDefault(),ld()):Z==="arrowleft"&&(O.preventDefault(),g?(D.current?.focus(),D.current?.select()):(M.current?.focus(),M.current?.select()));},Xi=(O,Z)=>{if(O.key==="ArrowUp"||O.key==="ArrowDown"){O.preventDefault();let Ie=O.key==="ArrowUp"?1:-1;if(Z==="hour"){let Qt=parseInt(W,10)||0,pe=x===24?23:12,ht=x===24?0:1,er=Qt+Ie;er>pe&&(er=ht),er<ht&&(er=pe);let Zi=String(er).padStart(2,"0");Le(Zi),nt(Zi,xe,B,F);}else if(Z==="minute"){let pe=(parseInt(xe,10)||0)+Ie;pe>59&&(pe=0),pe<0&&(pe=59);let ht=String(pe).padStart(2,"0");z(ht),nt(W,ht,B,F);}else if(Z==="second"){let pe=(parseInt(B,10)||0)+Ie;pe>59&&(pe=0),pe<0&&(pe=59);let ht=String(pe).padStart(2,"0");te(ht),nt(W,xe,ht,F);}}O.key==="ArrowRight"&&(O.preventDefault(),Z==="hour"?(M.current?.focus(),M.current?.select()):Z==="minute"&&g?(D.current?.focus(),D.current?.select()):(Z==="minute"&&!g&&x===12||Z==="second"&&x===12)&&E.current?.focus()),O.key==="ArrowLeft"&&(O.preventDefault(),Z==="minute"?(P.current?.focus(),P.current?.select()):Z==="second"&&(M.current?.focus(),M.current?.select())),O.key==="Backspace"&&O.currentTarget.value===""&&(Z==="minute"?P.current?.focus():Z==="second"&&M.current?.focus());},qi=o((()=>{switch(s){case "sm":return "w-5";case "lg":return "w-7";default:return "w-6"}})(),"bg-transparent text-center outline-none placeholder:text-muted-foreground tabular-nums",R&&"cursor-not-allowed");return jsxRuntime.jsxs("div",{ref:w,className:o(Gb({size:s}),e),...C,children:[t&&jsxRuntime.jsxs(as__namespace.Root,{htmlFor:S,className:o(DS({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:o(kS({size:s,isInvalid:i,disabled:R,fullWidth:b}),d),style:{borderColor:ee?"var(--color-foreground)":void 0},onFocus:()=>ot(true),onBlur:O=>{O.currentTarget.contains(O.relatedTarget)||ot(false);},children:[jsxRuntime.jsx("input",{ref:P,id:S,type:"text",inputMode:"numeric",placeholder:x===24?"HH":"hh",value:W,onChange:Ox,onBlur:$x,onKeyDown:O=>Xi(O,"hour"),onFocus:O=>O.target.select(),"aria-label":"Hour","aria-invalid":i,"aria-describedby":A?N:r?T:void 0,"aria-required":n,disabled:R,className:qi}),jsxRuntime.jsx("span",{className:"text-muted-foreground",children:":"}),jsxRuntime.jsx("input",{ref:M,type:"text",inputMode:"numeric",placeholder:"mm",value:xe,onChange:Gx,onBlur:_x,onKeyDown:O=>Xi(O,"minute"),onFocus:O=>O.target.select(),"aria-label":"Minute",disabled:R,className:qi}),g&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"text-muted-foreground",children:":"}),jsxRuntime.jsx("input",{ref:D,type:"text",inputMode:"numeric",placeholder:"ss",value:B,onChange:Wx,onBlur:Kx,onKeyDown:O=>Xi(O,"second"),onFocus:O=>O.target.select(),"aria-label":"Second",disabled:R,className:qi})]}),x===12&&jsxRuntime.jsx("button",{ref:E,type:"button",onClick:ld,onKeyDown:Yx,disabled:R,className:o("ml-0.5 rounded text-muted-foreground hover:text-foreground focus:outline-none focus:text-foreground transition-colors tabular-nums",s==="sm"?"w-6":s==="lg"?"w-8":"w-7",R&&"cursor-not-allowed"),"aria-label":"AM/PM",children:F})]}),r&&!A&&jsxRuntime.jsx("p",{id:T,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:r}),A&&jsxRuntime.jsx("p",{id:N,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:a})]})});Wb.displayName="TimeField";var Kb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),LS=classVarianceAuthority.cva("flex rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 font-mono uppercase",{variants:{size:{sm:"h-8 pl-10 pr-3 py-1.5 text-xs",md:"h-10 pl-12 pr-3 py-2 text-sm",lg:"h-12 pl-14 pr-4 py-3 text-base"},isInvalid:{true:"border-danger focus:border-danger",false:""},fullWidth:{true:"w-full",false:"w-fit"}},defaultVariants:{size:"md",isInvalid:false,fullWidth:false}}),IS=classVarianceAuthority.cva("absolute left-2 top-1/2 -translate-y-1/2 rounded border border-input overflow-hidden",{variants:{size:{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}},defaultVariants:{size:"md"}}),ES=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),$b=e=>/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.test(e),HS=e=>(e.startsWith("#")||(e="#"+e),e.length===4&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),e.toUpperCase()),Yb=K__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:f="#000000",onChange:p,showSwatch:h=true,showPicker:y=true,allowAlpha:g=false,fullWidth:x=false,disabled:R,id:b,...v},C)=>{let w=K__namespace.useId(),k=b||w,S=`${k}-picker`,T=`${k}-description`,N=`${k}-error`,[P,M]=K__namespace.useState(f),[D,E]=K__namespace.useState(false),L=c!==void 0?c:P,V=i&&a,I=j=>{let W=j.target.value;W&&!W.startsWith("#")&&(W="#"+W),c===void 0&&M(W),p?.(W);},A=j=>{let W=j.target.value.toUpperCase();c===void 0&&M(W),p?.(W);},G=()=>{if(L&&$b(L)){let j=HS(L);j!==L&&(c===void 0&&M(j),p?.(j));}},H=$b(L)?L:"#000000";return jsxRuntime.jsxs("div",{className:o(Kb({size:s}),e),children:[t&&jsxRuntime.jsxs(as__namespace.Root,{htmlFor:k,className:o(ES({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[h&&jsxRuntime.jsx("div",{className:o(IS({size:s})),children:y?jsxRuntime.jsxs("label",{htmlFor:S,className:"block h-full w-full cursor-pointer",children:[jsxRuntime.jsx("input",{id:S,type:"color",value:H,onChange:A,disabled:R,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0",tabIndex:-1}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:H}})]}):jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:H}})}),jsxRuntime.jsx("input",{ref:C,id:k,type:"text",value:L,onChange:I,onFocus:()=>E(true),onBlur:()=>{E(false),G();},placeholder:"#000000",maxLength:g?9:7,"aria-invalid":i,"aria-describedby":V?N:r?T:void 0,"aria-required":n,disabled:R,className:o(LS({size:s,isInvalid:i,fullWidth:x}),!h&&"pl-3",d),style:{borderColor:D?"var(--color-foreground)":void 0},...v})]}),r&&!V&&jsxRuntime.jsx("p",{id:T,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:r}),V&&jsxRuntime.jsx("p",{id:N,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:a})]})});Yb.displayName="ColorField";var jb=classVarianceAuthority.cva("inline-flex",{variants:{variant:{default:"",attached:"[&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-r-none [&>*:last-child]:rounded-l-none [&>*:not(:first-child)]:-ml-px"},orientation:{horizontal:"flex-row",vertical:"flex-col [&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-b-none [&>*:last-child]:rounded-t-none [&>*:not(:first-child)]:-mt-px [&>*:not(:first-child)]:ml-0"},spacing:{none:"gap-0",sm:"gap-1",md:"gap-2",lg:"gap-3"}},compoundVariants:[{variant:"attached",spacing:["sm","md","lg"],className:"gap-0"}],defaultVariants:{variant:"default",orientation:"horizontal",spacing:"sm"}}),Xb=K__namespace.createContext({});function zS(){return K__namespace.useContext(Xb)}var qb=K__namespace.forwardRef(({className:e,variant:t,orientation:r,spacing:a,disabled:n,children:i,...s},l)=>jsxRuntime.jsx(Xb.Provider,{value:{disabled:n},children:jsxRuntime.jsx("div",{ref:l,role:"group",className:o(jb({variant:t,orientation:r,spacing:a,className:e})),...s,children:i})}));qb.displayName="ButtonGroup";var Jb=classVarianceAuthority.cva("inline-flex items-center justify-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",soft:"bg-primary/10 text-primary hover:bg-primary/20",surface:"bg-muted text-muted-foreground hover:bg-muted/80"},size:{sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10",xl:"h-12 w-12"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{variant:"ghost",size:"md",radius:"md"}}),Qb=K__namespace.forwardRef(({className:e,variant:t,size:r,radius:a,isLoading:n,disabled:i,children:s,...l},d)=>{let m={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5",xl:"h-6 w-6"}[r??"md"];return jsxRuntime.jsx("button",{ref:d,type:"button",disabled:i||n,className:o(Jb({variant:t,size:r,radius:a,className:e})),...l,children:n?jsxRuntime.jsxs("svg",{className:o("animate-spin",m),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):jsxRuntime.jsx("span",{className:o("[&>svg]:h-full [&>svg]:w-full",m),children:s})})});Qb.displayName="IconButton";var tv=classVarianceAuthority.cva("inline-flex items-center",{variants:{variant:{default:"gap-1",compact:"gap-0.5",attached:"[&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-r-none [&>*:last-child]:rounded-l-none [&>*:not(:first-child)]:-ml-px gap-0"},orientation:{horizontal:"flex-row",vertical:"flex-col [&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-b-none [&>*:last-child]:rounded-t-none [&>*:not(:first-child)]:-mt-px [&>*:not(:first-child)]:ml-0"},size:{sm:"",md:"",lg:""},density:{compact:"gap-0.5",regular:"gap-1",spacious:"gap-2"}},defaultVariants:{variant:"default",orientation:"horizontal",size:"md",density:"regular"}}),rv=K__namespace.forwardRef(({className:e,variant:t,orientation:r,size:a,density:n,items:i,maxVisibleItems:s,isDisabled:l,onAction:d,showLabels:m=false,renderItem:u,...c},f)=>{let p=s&&s<i.length?i.slice(0,s):i,h=s&&s<i.length?i.slice(s):[],y={sm:"h-8 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-10 px-4 text-base"}[a??"md"],g={sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[a??"md"],x={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5"}[a??"md"],R=(v,C)=>{C&&C(),d&&d(v);},b=v=>jsxRuntime.jsxs("button",{type:"button",disabled:l||v.isDisabled,onClick:()=>R(v.key,v.onPress),className:o("inline-flex items-center justify-center gap-2 rounded-md transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50",m?y:g),"aria-label":v.label,children:[v.icon&&jsxRuntime.jsx("span",{className:x,children:v.icon}),m&&jsxRuntime.jsx("span",{children:v.label})]},v.key);return jsxRuntime.jsxs("div",{ref:f,role:"group",className:o(tv({variant:t,orientation:r,size:a,density:n,className:e})),...c,children:[p.map(v=>u?u(v):b(v)),h.length>0&&jsxRuntime.jsxs(la,{children:[jsxRuntime.jsx(da,{asChild:true,children:jsxRuntime.jsx("button",{type:"button",disabled:l,className:o("inline-flex items-center justify-center rounded-md transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50",g),"aria-label":"More actions",children:jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:x})})}),jsxRuntime.jsx(Ir,{align:"end",children:h.map(v=>jsxRuntime.jsxs(It,{disabled:v.isDisabled,onClick:()=>R(v.key,v.onPress),children:[v.icon&&jsxRuntime.jsx("span",{className:o(x,"mr-2"),children:v.icon}),v.label]},v.key))})]})]})});rv.displayName="ActionGroup";var iv=classVarianceAuthority.cva("inline-flex items-center gap-2",{variants:{variant:{neutral:"[--status-color:theme(colors.muted.foreground)]",info:"[--status-color:theme(colors.blue.500)]",positive:"[--status-color:theme(colors.green.500)]",notice:"[--status-color:theme(colors.yellow.500)]",negative:"[--status-color:theme(colors.red.500)]"},size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{variant:"neutral",size:"md"}}),WS=classVarianceAuthority.cva("rounded-full bg-[--status-color] flex-shrink-0",{variants:{size:{sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2.5 w-2.5"},pulse:{true:"animate-pulse",false:""}},defaultVariants:{size:"md",pulse:false}}),sv=K__namespace.forwardRef(({className:e,variant:t,size:r,pulse:a=false,hideLabel:n=false,children:i,...s},l)=>jsxRuntime.jsxs("span",{ref:l,role:"status",className:o(iv({variant:t,size:r,className:e})),...s,children:[jsxRuntime.jsx("span",{className:o(WS({size:r,pulse:a})),"aria-hidden":"true"}),!n&&i&&jsxRuntime.jsx("span",{className:"text-foreground",children:i})]}));sv.displayName="StatusLight";var dv=classVarianceAuthority.cva("flex flex-col items-center justify-center text-center",{variants:{size:{sm:"gap-3 max-w-xs",md:"gap-4 max-w-sm",lg:"gap-5 max-w-md"}},defaultVariants:{size:"md"}}),_S=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"[&>svg]:h-16 [&>svg]:w-16",md:"[&>svg]:h-24 [&>svg]:w-24",lg:"[&>svg]:h-32 [&>svg]:w-32"}},defaultVariants:{size:"md"}}),KS=classVarianceAuthority.cva("font-semibold text-foreground",{variants:{size:{sm:"text-base",md:"text-lg",lg:"text-xl"}},defaultVariants:{size:"md"}}),YS=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),cv=K__namespace.forwardRef(({className:e,size:t,illustration:r,heading:a,description:n,children:i,...s},l)=>jsxRuntime.jsxs("div",{ref:l,className:o(dv({size:t,className:e})),...s,children:[r&&jsxRuntime.jsx("div",{className:o(_S({size:t})),"aria-hidden":"true",children:r}),a&&jsxRuntime.jsx("h3",{className:o(KS({size:t})),children:a}),n&&jsxRuntime.jsx("p",{className:o(YS({size:t})),children:n}),i&&jsxRuntime.jsx("div",{className:"mt-2",children:i})]}));cv.displayName="IllustratedMessage";var pv=classVarianceAuthority.cva("relative flex gap-3 rounded-lg border p-4 text-sm",{variants:{variant:{info:"border-blue-200 bg-blue-50 text-blue-900 dark:border-blue-800 dark:bg-blue-950 dark:text-blue-100 [&>svg]:text-blue-600 dark:[&>svg]:text-blue-400",success:"border-green-200 bg-green-50 text-green-900 dark:border-green-800 dark:bg-green-950 dark:text-green-100 [&>svg]:text-green-600 dark:[&>svg]:text-green-400",warning:"border-amber-200 bg-amber-50 text-amber-900 dark:border-amber-800 dark:bg-amber-950 dark:text-amber-100 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-400",error:"border-red-200 bg-red-50 text-red-900 dark:border-red-800 dark:bg-red-950 dark:text-red-100 [&>svg]:text-red-600 dark:[&>svg]:text-red-400",neutral:"border-border bg-muted text-foreground [&>svg]:text-muted-foreground"}},defaultVariants:{variant:"info"}}),QS={info:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle,neutral:lucideReact.Info},fv=K__namespace.forwardRef(({className:e,variant:t,title:r,icon:a,hideIcon:n=false,isDismissible:i=false,onDismiss:s,actions:l,children:d,...m},u)=>{let[c,f]=K__namespace.useState(true);if(!c)return null;let p=QS[t??"info"],h=()=>{f(false),s?.();};return jsxRuntime.jsxs("div",{ref:u,role:"alert",className:o(pv({variant:t,className:e})),...m,children:[!n&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a||jsxRuntime.jsx(p,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[r&&jsxRuntime.jsx("div",{className:"font-medium",children:r}),d&&jsxRuntime.jsx("div",{className:"opacity-90",children:d}),l&&jsxRuntime.jsx("div",{className:"mt-3 flex gap-2",children:l})]}),i&&jsxRuntime.jsx("button",{type:"button",onClick:h,className:"absolute right-2 top-2 rounded-md p-1 opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":"Dismiss",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})});fv.displayName="InlineAlert";var gv=classVarianceAuthority.cva("fixed flex items-center gap-2 rounded-lg border bg-background shadow-lg transition-all duration-200",{variants:{position:{bottom:"bottom-4 left-1/2 -translate-x-1/2",top:"top-4 left-1/2 -translate-x-1/2","bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4"},size:{sm:"px-3 py-2 gap-1.5",md:"px-4 py-2.5 gap-2",lg:"px-5 py-3 gap-3"}},defaultVariants:{position:"bottom",size:"md"}}),bv=K__namespace.forwardRef(({className:e,position:t,size:r,selectedCount:a=0,isOpen:n=true,onClose:i,showClose:s=true,selectedText:l,children:d,...m},u)=>{if(!n||a===0)return null;let c=()=>typeof l=="function"?l(a):l||`${a} item${a>1?"s":""} selected`;return jsxRuntime.jsxs("div",{ref:u,role:"toolbar","aria-label":"Actions for selected items",className:o(gv({position:t,size:r,className:e})),...m,children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:c()}),jsxRuntime.jsx("div",{className:"h-4 w-px bg-border"}),jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:d}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"h-4 w-px bg-border"}),jsxRuntime.jsx("button",{type:"button",onClick:i,className:"rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-colors","aria-label":"Close action bar",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})]})});bv.displayName="ActionBar";var vv=K__namespace.forwardRef(({className:e,icon:t,children:r,...a},n)=>jsxRuntime.jsxs("button",{ref:n,type:"button",className:o("inline-flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-sm font-medium transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:opacity-50",e),...a,children:[t&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:t}),r]}));vv.displayName="ActionBarButton";var hv=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{ghost:"hover:bg-accent hover:text-accent-foreground",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",subtle:"text-muted-foreground hover:text-foreground hover:bg-muted"},size:{sm:"h-7 w-7",md:"h-8 w-8",lg:"h-9 w-9"}},defaultVariants:{variant:"ghost",size:"md"}});function iM(e){return "items"in e}var xv=K__namespace.forwardRef(({items:e,align:t="end",side:r="bottom",iconOrientation:a="vertical",trigger:n,variant:i,size:s,onAction:l,"aria-label":d="More actions",triggerClassName:m,disabled:u},c)=>{let f={sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}[s??"md"],p=a==="horizontal"?lucideReact.MoreHorizontal:lucideReact.MoreVertical,h=g=>{g.onSelect?.(),l?.(g.key);},y=g=>jsxRuntime.jsxs(It,{disabled:g.isDisabled,onClick:()=>h(g),className:o(g.isDestructive&&"text-destructive focus:text-destructive"),children:[g.icon&&jsxRuntime.jsx("span",{className:"mr-2 h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:g.icon}),jsxRuntime.jsx("span",{className:"flex-1",children:g.label}),g.shortcut&&jsxRuntime.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:g.shortcut})]},g.key);return jsxRuntime.jsxs(la,{children:[jsxRuntime.jsx(da,{asChild:true,children:n||jsxRuntime.jsx("button",{ref:c,type:"button",disabled:u,className:o(hv({variant:i,size:s}),m),"aria-label":d,children:jsxRuntime.jsx(p,{className:f})})}),jsxRuntime.jsx(Ir,{align:t,side:r,children:e.map((g,x)=>iM(g)?jsxRuntime.jsxs(K__namespace.Fragment,{children:[x>0&&jsxRuntime.jsx(Sn,{}),g.items.map(y)]},g.key):y(g))})]})});xv.displayName="ActionMenu";var wv=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"gap-1",bordered:"border rounded-lg divide-y",cards:"gap-2"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),Nv=classVarianceAuthority.cva("flex items-center gap-3 transition-colors cursor-pointer",{variants:{variant:{default:"rounded-md hover:bg-accent",bordered:"hover:bg-accent",cards:"rounded-lg border hover:border-primary/50 hover:bg-accent/50"},size:{sm:"px-2 py-1.5 text-sm",md:"px-3 py-2",lg:"px-4 py-3 text-lg"},isSelected:{true:"bg-accent",false:""},isDisabled:{true:"opacity-50 pointer-events-none",false:""}},compoundVariants:[{variant:"cards",isSelected:true,className:"border-primary bg-accent"}],defaultVariants:{variant:"default",size:"md",isSelected:false,isDisabled:false}});function Pv({className:e,variant:t,size:r,items:a,selectedKeys:n,selectionMode:i="none",onSelectionChange:s,allowsDragging:l=false,onReorder:d,showCheckbox:m=false,renderItem:u,emptyContent:c,...f}){let[p,h]=K__namespace.useState(new Set),[y,g]=K__namespace.useState(null),[x,R]=K__namespace.useState(null),b=K__namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):p,[n,p]),v=S=>{if(i==="none")return;let T;i==="single"?T=b.has(S)?new Set:new Set([S]):(T=new Set(b),T.has(S)?T.delete(S):T.add(S)),n||h(T),s?.(T);},C=(S,T)=>{g(T),S.dataTransfer.effectAllowed="move";},w=(S,T)=>{S.preventDefault(),y!==T&&R(T);},k=()=>{if(y&&x&&y!==x){let S=a.findIndex(M=>M.key===y),T=a.findIndex(M=>M.key===x),N=[...a],[P]=N.splice(S,1);N.splice(T,0,P),d?.(N);}g(null),R(null);};return a.length===0?jsxRuntime.jsx("div",{className:o("flex items-center justify-center p-8 text-muted-foreground",e),children:c||"No items"}):jsxRuntime.jsx("div",{role:"listbox","aria-multiselectable":i==="multiple",className:o(wv({variant:t,size:r,className:e})),...f,children:a.map(S=>{let T=b.has(S.key),N=y===S.key,P=x===S.key;return u?jsxRuntime.jsx("div",{role:"option","aria-selected":T,onClick:()=>v(S.key),children:u(S,T)},S.key):jsxRuntime.jsxs("div",{role:"option","aria-selected":T,"aria-disabled":S.isDisabled,draggable:l&&!S.isDisabled,onDragStart:M=>C(M,S.key),onDragOver:M=>w(M,S.key),onDragEnd:k,onClick:()=>!S.isDisabled&&v(S.key),className:o(Nv({variant:t,size:r,isSelected:T,isDisabled:S.isDisabled}),N&&"opacity-50",P&&"border-t-2 border-t-primary"),children:[l&&jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-muted-foreground cursor-grab"}),m&&i!=="none"&&jsxRuntime.jsx("div",{className:o("flex h-4 w-4 items-center justify-center rounded border",T?"bg-primary border-primary text-primary-foreground":"border-input"),children:T&&jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),S.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 text-muted-foreground [&>svg]:h-full [&>svg]:w-full",children:S.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:S.label}),S.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:S.description})]})]},S.key)})})}Pv.displayName="ListView";var Sv=classVarianceAuthority.cva("relative flex w-full touch-none select-none",{variants:{orientation:{horizontal:"items-center",vertical:"flex-col justify-center h-full"},size:{sm:"",md:"",lg:""}},defaultVariants:{orientation:"horizontal",size:"md"}}),dM=classVarianceAuthority.cva("relative grow overflow-hidden rounded-full bg-secondary",{variants:{orientation:{horizontal:"w-full",vertical:"w-2 h-full"},size:{sm:"h-1",md:"h-2",lg:"h-3"}},compoundVariants:[{orientation:"vertical",size:"sm",className:"w-1 h-full"},{orientation:"vertical",size:"md",className:"w-2 h-full"},{orientation:"vertical",size:"lg",className:"w-3 h-full"}],defaultVariants:{orientation:"horizontal",size:"md"}}),Cv=classVarianceAuthority.cva("block 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",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-5 w-5",lg:"h-6 w-6"}},defaultVariants:{size:"md"}}),Mv=K__namespace.forwardRef(({className:e,orientation:t="horizontal",size:r,value:a,defaultValue:n=[25,75],onValueChange:i,onValueCommit:s,showLabels:l=false,formatLabel:d=g=>String(g),trackColor:m="primary",min:u=0,max:c=100,step:f=1,disabled:p,...h},y)=>{let[g,x]=K__namespace.useState(n),R=a??g,b=w=>{let k=w;a||x(k),i?.(k);},v=w=>{s?.(w);},C={primary:"bg-primary",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500"}[m];return jsxRuntime.jsxs("div",{className:"relative w-full",children:[l&&jsxRuntime.jsxs("div",{className:"flex justify-between mb-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx("span",{children:d(R[0])}),jsxRuntime.jsx("span",{children:d(R[1])})]}),jsxRuntime.jsxs(nr__namespace.Root,{ref:y,value:R,onValueChange:b,onValueCommit:v,min:u,max:c,step:f,disabled:p,orientation:t??"horizontal",className:o(Sv({orientation:t,size:r,className:e})),...h,children:[jsxRuntime.jsx(nr__namespace.Track,{className:o(dM({orientation:t,size:r})),children:jsxRuntime.jsx(nr__namespace.Range,{className:o("absolute rounded-full",C,{"h-full":t==="horizontal","w-full":t==="vertical"})})}),jsxRuntime.jsx(nr__namespace.Thumb,{className:o(Cv({size:r}))}),jsxRuntime.jsx(nr__namespace.Thumb,{className:o(Cv({size:r}))})]})]})});Mv.displayName="RangeSlider";var Dv=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-full transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",{variants:{variant:{help:"text-muted-foreground hover:text-foreground",info:"text-blue-500 hover:text-blue-600",warning:"text-yellow-500 hover:text-yellow-600"},size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}},defaultVariants:{variant:"help",size:"md"}}),pM=classVarianceAuthority.cva("z-50 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none animate-in fade-in-0 zoom-in-95",{variants:{size:{sm:"w-56 text-xs",md:"w-72 text-sm",lg:"w-80 text-base"}},defaultVariants:{size:"md"}}),fM={help:lucideReact.HelpCircle,info:lucideReact.Info,warning:lucideReact.AlertCircle},Vv=K__namespace.forwardRef(({variant:e="help",size:t,title:r,children:a,trigger:n,side:i="top",align:s="center",open:l,onOpenChange:d,learnMoreUrl:m,learnMoreText:u="Learn more",triggerClassName:c,contentClassName:f},p)=>{let h=fM[e??"help"];return jsxRuntime.jsxs(yt__namespace.Root,{open:l,onOpenChange:d,children:[jsxRuntime.jsx(yt__namespace.Trigger,{asChild:true,children:n||jsxRuntime.jsx("button",{ref:p,type:"button",className:o(Dv({variant:e,size:t}),c),"aria-label":"Help",children:jsxRuntime.jsx(h,{className:"h-full w-full"})})}),jsxRuntime.jsx(yt__namespace.Portal,{children:jsxRuntime.jsxs(yt__namespace.Content,{side:i,align:s,sideOffset:8,className:o(pM({size:t}),f),children:[r&&jsxRuntime.jsx("div",{className:"mb-2 font-semibold text-foreground",children:r}),jsxRuntime.jsx("div",{className:"text-muted-foreground",children:a}),m&&jsxRuntime.jsxs("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"mt-3 inline-block text-primary hover:underline",children:[u," \u2192"]}),jsxRuntime.jsx(yt__namespace.Arrow,{className:"fill-popover"})]})})]})});Vv.displayName="ContextualHelp";var Iv=classVarianceAuthority.cva("flex flex-wrap",{variants:{spacing:{sm:"gap-1",md:"gap-2",lg:"gap-3"}},defaultVariants:{spacing:"md"}}),$l=classVarianceAuthority.cva("inline-flex items-center gap-1 rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",{variants:{variant:{solid:"bg-primary text-primary-foreground",outline:"border border-input bg-background hover:bg-accent",soft:"bg-primary/10 text-primary",surface:"bg-muted text-muted-foreground"},size:{sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-1 text-sm",lg:"px-3 py-1.5 text-base"},isSelected:{true:"",false:""},isDisabled:{true:"opacity-50 pointer-events-none",false:""}},compoundVariants:[{variant:"outline",isSelected:true,className:"border-primary bg-primary/5"},{variant:"soft",isSelected:true,className:"bg-primary/20"},{variant:"surface",isSelected:true,className:"bg-muted/80 ring-2 ring-primary/20"}],defaultVariants:{variant:"soft",size:"md",isSelected:false,isDisabled:false}});function Ev({className:e,spacing:t,variant:r,size:a,items:n,selectedKeys:i,selectionMode:s="none",onSelectionChange:l,allowsRemoving:d=false,onRemove:m,label:u,description:c,errorMessage:f,maxTags:p,...h}){let[y,g]=K__namespace.useState(new Set),x=K__namespace.useMemo(()=>i?i instanceof Set?i:new Set(i):y,[i,y]),R=w=>{if(s==="none")return;let k;s==="single"?k=x.has(w)?new Set:new Set([w]):(k=new Set(x),k.has(w)?k.delete(w):k.add(w)),i||g(k),l?.(k);},b=(w,k)=>{k.stopPropagation(),m?.(w);},v=p?n.slice(0,p):n,C=p?Math.max(0,n.length-p):0;return jsxRuntime.jsxs("div",{className:"flex flex-col gap-1.5",children:[u&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:u}),c&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:c}),jsxRuntime.jsxs("div",{role:"group","aria-label":u,className:o(Iv({spacing:t}),e),...h,children:[v.map(w=>{let k=x.has(w.key),S=s!=="none";return jsxRuntime.jsxs("span",{role:S?"button":void 0,tabIndex:S&&!w.isDisabled?0:void 0,"aria-pressed":S?k:void 0,onClick:()=>!w.isDisabled&&R(w.key),onKeyDown:T=>{(T.key==="Enter"||T.key===" ")&&!w.isDisabled&&(T.preventDefault(),R(w.key));},style:w.color?{backgroundColor:w.color}:void 0,className:o($l({variant:w.color?void 0:r,size:a,isSelected:k,isDisabled:w.isDisabled}),S&&!w.isDisabled&&"cursor-pointer hover:opacity-80",w.color&&"text-white"),children:[w.icon&&jsxRuntime.jsx("span",{className:"h-3.5 w-3.5 [&>svg]:h-full [&>svg]:w-full",children:w.icon}),w.label,d&&!w.isDisabled&&jsxRuntime.jsx("button",{type:"button",onClick:T=>b(w.key,T),className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${w.label}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},w.key)}),C>0&&jsxRuntime.jsxs("span",{className:o($l({variant:"surface",size:a}),"cursor-default"),children:["+",C," more"]})]}),f&&jsxRuntime.jsx("span",{className:"text-sm text-destructive",children:f})]})}Ev.displayName="TagGroup";var zv=classVarianceAuthority.cva("grid",{variants:{columns:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",auto:"grid-cols-[repeat(auto-fill,minmax(150px,1fr))]"},gap:{sm:"gap-2",md:"gap-4",lg:"gap-6"}},defaultVariants:{columns:"auto",gap:"md"}}),Bv=classVarianceAuthority.cva("relative flex flex-col rounded-lg border transition-all cursor-pointer",{variants:{variant:{default:"hover:border-primary/50 hover:bg-accent/50",card:"bg-card shadow-sm hover:shadow-md hover:border-primary/50"},size:{sm:"p-2",md:"p-3",lg:"p-4"},isSelected:{true:"border-primary bg-accent ring-2 ring-primary/20",false:""},isDisabled:{true:"opacity-50 pointer-events-none",false:""}},defaultVariants:{variant:"default",size:"md",isSelected:false,isDisabled:false}});function Fv({className:e,columns:t,gap:r,items:a,selectedKeys:n,selectionMode:i="none",onSelectionChange:s,showSelectionIndicator:l=true,itemVariant:d="default",itemSize:m="md",renderItem:u,emptyContent:c,...f}){let[p,h]=K__namespace.useState(new Set),y=K__namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):p,[n,p]),g=x=>{if(i==="none")return;let R;i==="single"?R=y.has(x)?new Set:new Set([x]):(R=new Set(y),R.has(x)?R.delete(x):R.add(x)),n||h(R),s?.(R);};return a.length===0?jsxRuntime.jsx("div",{className:o("flex items-center justify-center p-8 text-muted-foreground",e),children:c||"No items"}):jsxRuntime.jsx("div",{role:"grid","aria-multiselectable":i==="multiple",className:o(zv({columns:t,gap:r,className:e})),...f,children:a.map(x=>{let R=y.has(x.key);return u?jsxRuntime.jsx("div",{role:"gridcell","aria-selected":R,onClick:()=>g(x.key),children:u(x,R)},x.key):jsxRuntime.jsxs("div",{role:"gridcell","aria-selected":R,"aria-disabled":x.isDisabled,onClick:()=>!x.isDisabled&&g(x.key),className:o(Bv({variant:d,size:m,isSelected:R,isDisabled:x.isDisabled})),children:[l&&i!=="none"&&R&&jsxRuntime.jsx("div",{className:"absolute top-2 right-2 flex h-5 w-5 items-center justify-center rounded-full bg-primary text-primary-foreground",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),x.thumbnail&&jsxRuntime.jsx("div",{className:"mb-2 aspect-square w-full overflow-hidden rounded-md bg-muted",children:x.thumbnail}),jsxRuntime.jsxs("div",{className:"min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:x.label}),x.description&&jsxRuntime.jsx("div",{className:"mt-1 truncate text-sm text-muted-foreground",children:x.description})]})]},x.key)})})}Fv.displayName="GridList";var Gv=classVarianceAuthority.cva("relative w-full",{variants:{size:{sm:"h-1.5",md:"h-2",lg:"h-3"}},defaultVariants:{size:"md"}}),vM=classVarianceAuthority.cva("w-full h-full rounded-full overflow-hidden",{variants:{variant:{default:"bg-secondary",subtle:"bg-muted"}},defaultVariants:{variant:"default"}}),hM=classVarianceAuthority.cva("h-full transition-all duration-300 ease-out",{variants:{color:{primary:"bg-primary",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500",info:"bg-blue-500",auto:""},rounded:{true:"rounded-full",false:"rounded-l-full"}},defaultVariants:{color:"primary",rounded:true}}),Hi=K__namespace.forwardRef(({className:e,size:t,value:r,min:a=0,max:n=100,optimum:i,low:s,high:l,label:d,showValueLabel:m=false,formatValue:u,color:c="primary",trackVariant:f="default",...p},h)=>{let y=Math.min(100,Math.max(0,(r-a)/(n-a)*100)),g=()=>{if(c!=="auto")return "";let R=(r-a)/(n-a),b=s!==void 0?(s-a)/(n-a):.25,v=l!==void 0?(l-a)/(n-a):.75;return (i!==void 0?(i-a)/(n-a):1)>=.5?R<=b?"bg-red-500":R<=v?"bg-yellow-500":"bg-green-500":R>=v?"bg-red-500":R>=b?"bg-yellow-500":"bg-green-500"},x=u?u(r,y):`${Math.round(y)}%`;return jsxRuntime.jsxs("div",{ref:h,className:o("w-full",e),...p,children:[(d||m)&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[d&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:d}),m&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:x})]}),jsxRuntime.jsx("div",{role:"meter","aria-valuenow":r,"aria-valuemin":a,"aria-valuemax":n,"aria-label":d,className:o(Gv({size:t})),children:jsxRuntime.jsx("div",{className:o(vM({variant:f})),children:jsxRuntime.jsx("div",{className:o(hM({color:c==="auto"?void 0:c,rounded:y>=100}),c==="auto"&&g()),style:{width:`${y}%`}})})})]})});Hi.displayName="Meter";var Wv=K__namespace.forwardRef((e,t)=>jsxRuntime.jsx(Hi,{ref:t,color:"auto",low:50,high:80,optimum:0,...e}));Wv.displayName="DiskUsageMeter";var $v=K__namespace.forwardRef((e,t)=>jsxRuntime.jsx(Hi,{ref:t,color:"auto",low:20,high:50,optimum:100,...e}));$v.displayName="BatteryMeter";var _v=classVarianceAuthority.cva("relative rounded-lg overflow-hidden cursor-crosshair touch-none select-none",{variants:{size:{sm:"h-32 w-32",md:"h-48 w-48",lg:"h-64 w-64",full:"h-full w-full min-h-48"}},defaultVariants:{size:"md"}}),zi=(e,t,r)=>{let a=n=>{let i=(n+e/60)%6;return r-r*t*Math.max(Math.min(i,4-i,1),0)};return [Math.round(a(5)*255),Math.round(a(3)*255),Math.round(a(1)*255)]},Kv=(e,t,r)=>{e/=255,t/=255,r/=255;let a=Math.max(e,t,r),n=Math.min(e,t,r),i=a-n,s=0,l=a===0?0:i/a,d=a;if(i!==0)switch(a){case e:s=((t-r)/i+(t<r?6:0))*60;break;case t:s=((r-e)/i+2)*60;break;case r:s=((e-t)/i+4)*60;break}return [s,l,d]},Yv=e=>{let t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:null},Uv=(e,t,r)=>"#"+[e,t,r].map(a=>a.toString(16).padStart(2,"0")).join(""),jv=K__namespace.forwardRef(({hue:e,saturation:t,brightness:r,value:a,defaultValue:n="#ff0000",onChange:i,onColorChange:s,size:l,disabled:d,thumbSize:m=18,className:u,...c},f)=>{let p=K__namespace.useRef(null),[h,y]=K__namespace.useState(false),g=K__namespace.useCallback(H=>{let j=Yv(H);return j?Kv(...j):[0,1,1]},[]),[x,R]=K__namespace.useState(()=>g(a||n)),b=e??x[0],v=t??x[1],C=r??x[2];K__namespace.useEffect(()=>{if(a){let H=g(a);R(H);}},[a,g]);let w=K__namespace.useCallback((H,j)=>{if(d||!p.current)return;let W=p.current.getBoundingClientRect(),Le=Math.max(0,Math.min(1,(H-W.left)/W.width)),xe=Math.max(0,Math.min(1,(j-W.top)/W.height)),z=Le,B=1-xe;t===void 0&&r===void 0&&R([b,z,B]),i?.({hue:b,saturation:z,brightness:B});let te=zi(b,z,B);s?.(Uv(...te));},[d,b,t,r,i,s]),k=H=>{d||(H.preventDefault(),y(true),H.target.setPointerCapture(H.pointerId),w(H.clientX,H.clientY));},S=H=>{h&&w(H.clientX,H.clientY);},T=H=>{y(false),H.target.releasePointerCapture(H.pointerId);},[N,P,M]=zi(b,1,1),D=`rgb(${N}, ${P}, ${M})`,E=v*100,L=(1-C)*100,[V,I,A]=zi(b,v,C),G=`rgb(${V}, ${I}, ${A})`;return jsxRuntime.jsx("div",{ref:f,className:o(_v({size:l}),d&&"cursor-not-allowed opacity-50",u),...c,children:jsxRuntime.jsxs("div",{ref:p,className:"absolute inset-0",style:{backgroundColor:D},onPointerDown:k,onPointerMove:S,onPointerUp:T,onPointerLeave:T,children:[jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to right, white, transparent)"}}),jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to bottom, transparent, black)"}}),jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white pointer-events-none",style:{width:m,height:m,left:`calc(${E}% - ${m/2}px)`,top:`calc(${L}% - ${m/2}px)`,backgroundColor:G,boxShadow:"0 0 0 1px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});jv.displayName="ColorArea";var qv=classVarianceAuthority.cva("relative rounded-full cursor-pointer touch-none select-none",{variants:{orientation:{horizontal:"w-full",vertical:"h-full"},size:{sm:"",md:"",lg:""}},compoundVariants:[{orientation:"horizontal",size:"sm",className:"h-3"},{orientation:"horizontal",size:"md",className:"h-4"},{orientation:"horizontal",size:"lg",className:"h-5"},{orientation:"vertical",size:"sm",className:"w-3"},{orientation:"vertical",size:"md",className:"w-4"},{orientation:"vertical",size:"lg",className:"w-5"}],defaultVariants:{orientation:"horizontal",size:"md"}}),wM=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23ccc'%3E%3Crect width='4' height='4'/%3E%3Crect x='4' y='4' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E")`,Xv="linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)",Zv=K__namespace.forwardRef(({value:e,defaultValue:t,onChange:r,channel:a="hue",baseColor:n="#ff0000",orientation:i,size:s,disabled:l,thumbSize:d=18,showBorder:m=true,className:u,...c},f)=>{let p=K__namespace.useRef(null),[h,y]=K__namespace.useState(false),g=()=>{switch(a){case "hue":return 0;case "alpha":case "saturation":case "brightness":return 1;default:return 0}},[x,R]=K__namespace.useState(t??g()),b=e??x,v=a==="hue"?b/360:b,C=K__namespace.useCallback((D,E)=>{if(l||!p.current)return;let L=p.current.getBoundingClientRect(),V=i!=="vertical",I;V?I=Math.max(0,Math.min(1,(D-L.left)/L.width)):I=Math.max(0,Math.min(1,1-(E-L.top)/L.height));let A=a==="hue"?I*360:I;e===void 0&&R(A),r?.(A);},[l,i,a,e,r]),w=D=>{l||(D.preventDefault(),y(true),D.target.setPointerCapture(D.pointerId),C(D.clientX,D.clientY));},k=D=>{h&&C(D.clientX,D.clientY);},S=D=>{y(false),D.target.releasePointerCapture(D.pointerId);},T=()=>{let D=i!=="vertical",E=D?"to right":"to top";switch(a){case "hue":return D?Xv:"linear-gradient(to top, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)";case "alpha":return `linear-gradient(${E}, transparent, ${n})`;case "saturation":return `linear-gradient(${E}, #808080, ${n})`;case "brightness":return `linear-gradient(${E}, #000000, ${n})`;default:return Xv}},N=()=>a==="hue"?`hsl(${b}, 100%, 50%)`:n,P=i!=="vertical",M=v*100;return jsxRuntime.jsx("div",{ref:f,className:o(qv({orientation:i,size:s}),l&&"cursor-not-allowed opacity-50",u),...c,children:jsxRuntime.jsxs("div",{ref:p,className:o("absolute inset-0 rounded-full overflow-hidden",m&&"border border-input"),style:{backgroundImage:a==="alpha"?wM:void 0,backgroundSize:a==="alpha"?"8px 8px":void 0},onPointerDown:w,onPointerMove:k,onPointerUp:S,onPointerLeave:S,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 rounded-full",style:{background:T()}}),jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:d,height:d,...P?{left:`calc(${M}% - ${d/2}px)`,top:"50%",transform:"translateY(-50%)"}:{bottom:`calc(${M}% - ${d/2}px)`,left:"50%",transform:"translateX(-50%)"},backgroundColor:N(),boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});Zv.displayName="ColorSlider";var Jv=classVarianceAuthority.cva("relative cursor-crosshair touch-none select-none",{variants:{size:{sm:"h-32 w-32",md:"h-48 w-48",lg:"h-64 w-64"}},defaultVariants:{size:"md"}}),CM=(e,t,r)=>{let a=e-r,n=t-r,i=Math.atan2(n,a)*180/Math.PI+90;return i<0&&(i+=360),i},Qv=K__namespace.forwardRef(({value:e,defaultValue:t=0,onChange:r,size:a,disabled:n,innerRadius:i=.6,thumbSize:s=20,showCenter:l=true,className:d,...m},u)=>{let c=K__namespace.useRef(null),[f,p]=K__namespace.useState(false),[h,y]=K__namespace.useState(t),g=e??h,x=K__namespace.useCallback((w,k)=>{if(n||!c.current)return;let S=c.current.getBoundingClientRect(),T=S.width/2,N=w-S.left,P=k-S.top,M=CM(N,P,T);e===void 0&&y(M),r?.(M);},[n,e,r]),R=w=>{n||(w.preventDefault(),p(true),w.target.setPointerCapture(w.pointerId),x(w.clientX,w.clientY));},b=w=>{f&&x(w.clientX,w.clientY);},v=w=>{p(false),w.target.releasePointerCapture(w.pointerId);},C=()=>{let w=[];for(let k=0;k<=360;k+=30)w.push(`hsl(${k}, 100%, 50%) ${k}deg`);return `conic-gradient(from 270deg, ${w.join(", ")})`};return jsxRuntime.jsx("div",{ref:u,className:o(Jv({size:a}),n&&"cursor-not-allowed opacity-50",d),...m,children:jsxRuntime.jsxs("div",{ref:c,className:"absolute inset-0 rounded-full",style:{background:C()},onPointerDown:R,onPointerMove:b,onPointerUp:v,onPointerLeave:v,children:[i<1&&jsxRuntime.jsx("div",{className:"absolute bg-background rounded-full",style:{top:`${(1-i)*50}%`,left:`${(1-i)*50}%`,width:`${i*100}%`,height:`${i*100}%`}}),l&&i<1&&jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-input bg-background",style:{width:8,height:8,top:"50%",left:"50%",transform:"translate(-50%, -50%)"}}),jsxRuntime.jsx(SM,{hue:g,innerRadius:i,thumbSize:s})]})})});Qv.displayName="ColorWheel";var SM=({hue:e,innerRadius:t,thumbSize:r})=>{let a=(1-(1-t)/2)*50,n=(e-90)*Math.PI/180,i=50+a*Math.cos(n),s=50+a*Math.sin(n);return jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:r,height:r,left:`calc(${i}% - ${r/2}px)`,top:`calc(${s}% - ${r/2}px)`,backgroundColor:`hsl(${e}, 100%, 50%)`,boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})};var eh=classVarianceAuthority.cva("flex",{variants:{direction:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"},gap:{0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},inline:{true:"inline-flex",false:"flex"}},defaultVariants:{direction:"row",align:"stretch",justify:"start",wrap:"nowrap",gap:0,inline:false}}),on=K__namespace.forwardRef(({className:e,direction:t,align:r,justify:a,wrap:n,gap:i,inline:s,as:l="div",...d},m)=>jsxRuntime.jsx(l,{ref:m,className:o(eh({direction:t,align:r,justify:a,wrap:n,gap:i,inline:s,className:e})),...d}));on.displayName="Flex";var th=K__namespace.forwardRef(({gap:e=2,align:t="center",...r},a)=>jsxRuntime.jsx(on,{ref:a,direction:"row",gap:e,align:t,...r}));th.displayName="HStack";var rh=K__namespace.forwardRef(({gap:e=2,align:t="stretch",...r},a)=>jsxRuntime.jsx(on,{ref:a,direction:"column",gap:e,align:t,...r}));rh.displayName="VStack";var ah=K__namespace.forwardRef((e,t)=>jsxRuntime.jsx(on,{ref:t,align:"center",justify:"center",...e}));ah.displayName="Center";var nh=classVarianceAuthority.cva("grid",{variants:{columns:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12",none:"grid-cols-none",auto:"grid-cols-[repeat(auto-fill,minmax(200px,1fr))]"},rows:{1:"grid-rows-1",2:"grid-rows-2",3:"grid-rows-3",4:"grid-rows-4",5:"grid-rows-5",6:"grid-rows-6",none:"grid-rows-none"},gap:{0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},gapX:{0:"gap-x-0",1:"gap-x-1",2:"gap-x-2",3:"gap-x-3",4:"gap-x-4",5:"gap-x-5",6:"gap-x-6",8:"gap-x-8",10:"gap-x-10",12:"gap-x-12"},gapY:{0:"gap-y-0",1:"gap-y-1",2:"gap-y-2",3:"gap-y-3",4:"gap-y-4",5:"gap-y-5",6:"gap-y-6",8:"gap-y-8",10:"gap-y-10",12:"gap-y-12"},flow:{row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"},placeItems:{start:"place-items-start",center:"place-items-center",end:"place-items-end",stretch:"place-items-stretch"}},defaultVariants:{columns:1,gap:4,flow:"row",align:"stretch",justify:"stretch"}}),Fi=K__namespace.forwardRef(({className:e,columns:t,rows:r,gap:a,gapX:n,gapY:i,flow:s,align:l,justify:d,placeItems:m,as:u="div",minChildWidth:c,style:f,...p},h)=>{let y=c?{...f,gridTemplateColumns:`repeat(auto-fill, minmax(${c}, 1fr))`}:f;return jsxRuntime.jsx(u,{ref:h,className:o(nh({columns:c?void 0:t,rows:r,gap:a,gapX:n,gapY:i,flow:s,align:l,justify:d,placeItems:m,className:e})),style:y,...p})});Fi.displayName="Grid";var ih=classVarianceAuthority.cva("",{variants:{colSpan:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",full:"col-span-full"},rowSpan:{1:"row-span-1",2:"row-span-2",3:"row-span-3",4:"row-span-4",5:"row-span-5",6:"row-span-6",full:"row-span-full"},colStart:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12",13:"col-start-13",auto:"col-start-auto"},colEnd:{1:"col-end-1",2:"col-end-2",3:"col-end-3",4:"col-end-4",5:"col-end-5",6:"col-end-6",7:"col-end-7",8:"col-end-8",9:"col-end-9",10:"col-end-10",11:"col-end-11",12:"col-end-12",13:"col-end-13",auto:"col-end-auto"},rowStart:{1:"row-start-1",2:"row-start-2",3:"row-start-3",4:"row-start-4",5:"row-start-5",6:"row-start-6",7:"row-start-7",auto:"row-start-auto"},rowEnd:{1:"row-end-1",2:"row-end-2",3:"row-end-3",4:"row-end-4",5:"row-end-5",6:"row-end-6",7:"row-end-7",auto:"row-end-auto"}}}),sh=K__namespace.forwardRef(({className:e,colSpan:t,rowSpan:r,colStart:a,colEnd:n,rowStart:i,rowEnd:s,as:l="div",...d},m)=>jsxRuntime.jsx(l,{ref:m,className:o(ih({colSpan:t,rowSpan:r,colStart:a,colEnd:n,rowStart:i,rowEnd:s,className:e})),...d}));sh.displayName="GridItem";var lh=K__namespace.forwardRef(({columns:e=2,className:t,...r},a)=>{if(typeof e=="number")return jsxRuntime.jsx(Fi,{ref:a,columns:e,className:t,...r});let n=o(e.sm&&`sm:grid-cols-${e.sm}`,e.md&&`md:grid-cols-${e.md}`,e.lg&&`lg:grid-cols-${e.lg}`,e.xl&&`xl:grid-cols-${e.xl}`);return jsxRuntime.jsx(Fi,{ref:a,columns:1,className:o(n,t),...r})});lh.displayName="SimpleGrid";var ch=classVarianceAuthority.cva("rounded-lg",{variants:{variant:{default:"bg-muted",subtle:"bg-muted/50",outline:"border border-border bg-transparent",filled:"bg-accent",sunken:"bg-muted shadow-inner"},size:{sm:"p-3",md:"p-4",lg:"p-6",xl:"p-8"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-3xl"}},defaultVariants:{variant:"default",size:"md",radius:"lg"}}),mh=K__namespace.forwardRef(({className:e,variant:t,size:r,radius:a,as:n="div",...i},s)=>jsxRuntime.jsx(n,{ref:s,className:o(ch({variant:t,size:r,radius:a,className:e})),...i}));mh.displayName="Well";var ph=classVarianceAuthority.cva("flex",{variants:{orientation:{horizontal:"flex-row items-center gap-2",vertical:"flex-col gap-1"},size:{sm:"",md:"",lg:""},align:{start:"items-start",center:"items-center",end:"items-end"}},compoundVariants:[{orientation:"horizontal",align:"start",className:"items-start"},{orientation:"horizontal",align:"center",className:"items-center"},{orientation:"horizontal",align:"end",className:"items-end"}],defaultVariants:{orientation:"vertical",size:"md",align:"start"}}),VM=classVarianceAuthority.cva("text-muted-foreground font-medium",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),LM=classVarianceAuthority.cva("text-foreground",{variants:{size:{sm:"text-sm",md:"text-base",lg:"text-lg"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},mono:{true:"font-mono",false:""}},defaultVariants:{size:"md",weight:"normal",mono:false}}),fh=K__namespace.forwardRef(({className:e,orientation:t,size:r,align:a,label:n,value:i,valueWeight:s,mono:l,labelWidth:d,labelClassName:m,valueClassName:u,showColon:c=false,copyable:f=false,onCopy:p,...h},y)=>{let g=async()=>{if(!(!f||i===null||i===void 0))try{let x=typeof i=="string"?i:String(i);await navigator.clipboard.writeText(x),p?.();}catch{}};return jsxRuntime.jsxs("div",{ref:y,className:o(ph({orientation:t,size:r,align:a,className:e})),...h,children:[jsxRuntime.jsxs("span",{className:o(VM({size:r}),m),style:d?{width:d,flexShrink:0}:void 0,children:[n,c&&":"]}),jsxRuntime.jsx("span",{className:o(LM({size:r,weight:s,mono:l}),f&&"cursor-pointer hover:bg-accent/50 rounded px-1 -mx-1 transition-colors",u),onClick:f?g:void 0,role:f?"button":void 0,tabIndex:f?0:void 0,onKeyDown:f?x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),g());}:void 0,children:i})]})});fh.displayName="LabeledValue";var gh=classVarianceAuthority.cva("",{variants:{orientation:{horizontal:"flex flex-row flex-wrap",vertical:"flex flex-col"},gap:{sm:"gap-2",md:"gap-4",lg:"gap-6"}},defaultVariants:{orientation:"vertical",gap:"md"}}),bh=K__namespace.forwardRef(({className:e,orientation:t,gap:r,...a},n)=>jsxRuntime.jsx("div",{ref:n,className:o(gh({orientation:t,gap:r,className:e})),...a}));bh.displayName="LabeledValueGroup";var yh=classVarianceAuthority.cva("flex items-center rounded-md border border-input bg-background ring-offset-background transition-colors focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",{variants:{size:{sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-base"},variant:{default:"",filled:"bg-muted border-transparent",ghost:"border-transparent hover:bg-muted"}},defaultVariants:{size:"md",variant:"default"}}),po=classVarianceAuthority.cva("text-muted-foreground shrink-0",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),Rh=K__namespace.forwardRef(({value:e,defaultValue:t="",onChange:r,onSearch:a,onSelect:n,suggestions:i=[],recentSearches:s=[],onClearRecentSearches:l,trendingSearches:d=[],isLoading:m,showClear:u=true,showIcon:c=true,popoverWidth:f="trigger",emptyMessage:p="No results found",size:h,variant:y,className:g,placeholder:x="Search...",disabled:R,...b},v)=>{let[C,w]=K__namespace.useState(false),[k,S]=K__namespace.useState(t),T=e!==void 0?e:k,N=K__namespace.useRef(null);K__namespace.useImperativeHandle(v,()=>N.current);let P=T.length>0,M=C&&(i.length>0||s.length>0||d.length>0||P),D=H=>{e===void 0&&S(H),r?.(H);},E=()=>{D(""),N.current?.focus();},L=H=>{H?.preventDefault(),T.trim()&&(a?.(T.trim()),w(false));},V=H=>{D(H.label),n?.(H),w(false);},I=H=>{D(H),a?.(H),w(false);},A=H=>{D(H),a?.(H),w(false);},G=K__namespace.useMemo(()=>{let H={};return i.forEach(j=>{let W=j.category||"Results";H[W]||(H[W]=[]),H[W].push(j);}),H},[i]);return jsxRuntime.jsxs(Ee,{open:M,onOpenChange:w,children:[jsxRuntime.jsx($e,{asChild:true,children:jsxRuntime.jsxs("form",{onSubmit:L,className:o(yh({size:h,variant:y}),g),children:[c&&jsxRuntime.jsx(lucideReact.Search,{className:o(po({size:h}),"ml-3")}),jsxRuntime.jsx("input",{ref:N,type:"text",value:T,onChange:H=>D(H.target.value),onFocus:()=>w(true),placeholder:x,disabled:R,className:o("flex-1 bg-transparent px-3 py-2 outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",!c&&"pl-3"),...b}),u&&P&&!R&&jsxRuntime.jsx("button",{type:"button",onClick:E,className:o("mr-2 rounded-sm p-1 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",po({size:h})),children:jsxRuntime.jsx(lucideReact.X,{className:"h-full w-full"})})]})}),jsxRuntime.jsx(Me,{className:"p-0",style:{width:f==="trigger"?"var(--radix-popover-trigger-width)":f},align:"start",onOpenAutoFocus:H=>H.preventDefault(),children:jsxRuntime.jsxs(cmdk.Command,{className:"rounded-lg border-0",children:[s.length>0&&!P&&jsxRuntime.jsxs("div",{className:"p-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between px-2 py-1.5",children:[jsxRuntime.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Recent"}),l&&jsxRuntime.jsx("button",{type:"button",onClick:l,className:"text-xs text-muted-foreground hover:text-foreground",children:"Clear"})]}),s.map((H,j)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>I(H),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[jsxRuntime.jsx(lucideReact.Clock,{className:o(po({size:h}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:H}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:o(po({size:h}),"opacity-0 group-hover:opacity-100")})]},j))]}),d.length>0&&!P&&jsxRuntime.jsxs("div",{className:"border-t p-2",children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5",children:jsxRuntime.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Trending"})}),d.map((H,j)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>A(H),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[jsxRuntime.jsx(lucideReact.TrendingUp,{className:o(po({size:h}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:H})]},j))]}),P&&jsxRuntime.jsx("div",{className:"p-2",children:m?jsxRuntime.jsx("div",{className:"flex items-center justify-center py-6",children:jsxRuntime.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-primary border-t-transparent"})}):i.length>0?Object.entries(G).map(([H,j])=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5",children:jsxRuntime.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:H})}),j.map(W=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>V(W),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[W.icon||jsxRuntime.jsx(lucideReact.Search,{className:o(po({size:h}))}),jsxRuntime.jsxs("div",{className:"flex-1 text-left",children:[jsxRuntime.jsx("div",{className:"truncate",children:W.label}),W.description&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:W.description})]})]},W.id))]},H)):jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:p})})]})})]})});Rh.displayName="SearchBar";var wh={Pages:jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"}),Files:jsxRuntime.jsx(lucideReact.Folder,{className:"h-4 w-4"}),Settings:jsxRuntime.jsx(lucideReact.Settings,{className:"h-4 w-4"}),Users:jsxRuntime.jsx(lucideReact.User,{className:"h-4 w-4"}),Tags:jsxRuntime.jsx(lucideReact.Hash,{className:"h-4 w-4"})},Nh=K__namespace.forwardRef(({open:e,onOpenChange:t,items:r=[],recentItems:a=[],placeholder:n="Search...",isLoading:i,emptyMessage:s="No results found.",filter:l,shortcut:d="\u2318K",onSelect:m,footer:u},c)=>{let[f,p]=K__namespace.useState(""),h=K__namespace.useRef(null);K__namespace.useEffect(()=>{e||p("");},[e]);let y=K__namespace.useMemo(()=>{let b={};return r.forEach(v=>{let C=v.category||"Results";b[C]||(b[C]=[]),b[C].push(v);}),b},[r]),g=b=>{b.onSelect?.(),m?.(b),t?.(false);},x=f.length>0,R=!x&&a.length>0;return jsxRuntime.jsx(ne__namespace.Root,{open:e,onOpenChange:t,children:jsxRuntime.jsxs(ne__namespace.Portal,{children:[jsxRuntime.jsx(ne__namespace.Overlay,{className:"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),jsxRuntime.jsx(ne__namespace.Content,{ref:c,className:"fixed left-1/2 top-[20%] z-50 w-full max-w-2xl -translate-x-1/2 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=open]:slide-in-from-left-1/2",children:jsxRuntime.jsxs(cmdk.Command,{className:"overflow-hidden rounded-xl border bg-background shadow-2xl",filter:l,shouldFilter:!l,children:[jsxRuntime.jsxs("div",{className:"flex items-center border-b px-4",children:[jsxRuntime.jsx(lucideReact.Search,{className:"h-5 w-5 shrink-0 text-muted-foreground"}),jsxRuntime.jsx(cmdk.Command.Input,{ref:h,value:f,onValueChange:p,placeholder:n,className:"flex h-14 w-full bg-transparent px-4 py-4 text-base outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"}),f&&jsxRuntime.jsx("button",{type:"button",onClick:()=>p(""),className:"rounded-sm p-1 text-muted-foreground hover:text-foreground",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]}),jsxRuntime.jsx(cmdk.Command.List,{className:"max-h-[400px] overflow-y-auto p-2",children:i?jsxRuntime.jsx("div",{className:"flex items-center justify-center py-10",children:jsxRuntime.jsx("div",{className:"h-6 w-6 animate-spin rounded-full border-2 border-primary border-t-transparent"})}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[R&&jsxRuntime.jsxs(cmdk.Command.Group,{heading:"Recent",children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:"Recent"}),a.map(b=>jsxRuntime.jsxs(cmdk.Command.Item,{value:b.label,onSelect:()=>g(b),className:"flex cursor-pointer items-center gap-3 rounded-lg px-3 py-2.5 text-sm aria-selected:bg-muted",children:[jsxRuntime.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted",children:b.icon||wh[b.category||""]||jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"})}),jsxRuntime.jsxs("div",{className:"flex-1 overflow-hidden",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:b.label}),b.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:b.description})]}),b.shortcut&&jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:b.shortcut.map((v,C)=>jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-medium",children:v},C))})]},b.id))]}),x&&Object.entries(y).map(([b,v])=>jsxRuntime.jsxs(cmdk.Command.Group,{heading:b,children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:b}),v.map(C=>jsxRuntime.jsxs(cmdk.Command.Item,{value:`${C.label} ${C.keywords?.join(" ")||""}`,onSelect:()=>g(C),className:"flex cursor-pointer items-center gap-3 rounded-lg px-3 py-2.5 text-sm aria-selected:bg-muted",children:[jsxRuntime.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted",children:C.icon||wh[b]||jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"})}),jsxRuntime.jsxs("div",{className:"flex-1 overflow-hidden",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:C.label}),C.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:C.description})]}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:"h-4 w-4 text-muted-foreground opacity-0 group-aria-selected:opacity-100"})]},C.id))]},b)),jsxRuntime.jsx(cmdk.Command.Empty,{className:"py-10 text-center text-sm text-muted-foreground",children:s})]})}),u?jsxRuntime.jsx("div",{className:"border-t px-4 py-3",children:u}):jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-t px-4 py-3 text-xs text-muted-foreground",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:"\u2191\u2193"}),"Navigate"]}),jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:"\u21B5"}),"Select"]}),jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:"Esc"}),"Close"]})]}),jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:["Press ",jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:d})," to open"]})]})]})})]})})});Nh.displayName="SpotlightSearch";function KM(e="k"){let[t,r]=K__namespace.useState(false);return K__namespace.useEffect(()=>{let a=n=>{(n.metaKey||n.ctrlKey)&&n.key===e&&(n.preventDefault(),r(i=>!i));};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e]),{open:t,setOpen:r,toggle:()=>r(a=>!a)}}var QM=classVarianceAuthority.cva("",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),eT={default:"bg-muted",info:"bg-blue-500/10 text-blue-600 dark:text-blue-400",success:"bg-green-500/10 text-green-600 dark:text-green-400",warning:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",error:"bg-red-500/10 text-red-600 dark:text-red-400"},tT=e=>{let t=typeof e=="string"?new Date(e):e,a=new Date().getTime()-t.getTime(),n=Math.floor(a/6e4),i=Math.floor(a/36e5),s=Math.floor(a/864e5);return n<1?"Just now":n<60?`${n}m ago`:i<24?`${i}h ago`:s<7?`${s}d ago`:t.toLocaleDateString()},Ph=K__namespace.forwardRef(({notifications:e=[],onNotificationClick:t,onMarkAsRead:r,onMarkAllAsRead:a,onDismiss:n,onClearAll:i,showSettings:s,onSettingsClick:l,trigger:d,align:m="end",emptyMessage:u="No notifications",maxHeight:c=400,className:f},p)=>{let[h,y]=K__namespace.useState(false),g=e.filter(b=>!b.read).length,x=e.length>0,R=b=>{b.read||r?.(b.id),t?.(b);};return jsxRuntime.jsxs(Ee,{open:h,onOpenChange:y,children:[jsxRuntime.jsx($e,{asChild:true,children:d||jsxRuntime.jsxs("button",{ref:p,className:o("relative inline-flex h-10 w-10 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",f),children:[jsxRuntime.jsx(lucideReact.Bell,{className:"h-5 w-5"}),g>0&&jsxRuntime.jsx("span",{className:"absolute -right-1 -top-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-medium text-primary-foreground",children:g>99?"99+":g})]})}),jsxRuntime.jsxs(Me,{className:"w-80 p-0 sm:w-96",align:m,sideOffset:8,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("h3",{className:"font-semibold",children:"Notifications"}),g>0&&jsxRuntime.jsxs(Qi,{size:"sm",children:[g," new"]})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[x&&a&&g>0&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:"rounded-sm p-1.5 text-muted-foreground hover:bg-muted hover:text-foreground",title:"Mark all as read",children:jsxRuntime.jsx(lucideReact.CheckCheck,{className:"h-4 w-4"})}),x&&i&&jsxRuntime.jsx("button",{type:"button",onClick:i,className:"rounded-sm p-1.5 text-muted-foreground hover:bg-muted hover:text-foreground",title:"Clear all",children:jsxRuntime.jsx(lucideReact.Trash2,{className:"h-4 w-4"})}),s&&l&&jsxRuntime.jsx("button",{type:"button",onClick:l,className:"rounded-sm p-1.5 text-muted-foreground hover:bg-muted hover:text-foreground",title:"Settings",children:jsxRuntime.jsx(lucideReact.Settings,{className:"h-4 w-4"})})]})]}),x?jsxRuntime.jsx(ze,{style:{maxHeight:c},children:jsxRuntime.jsx("div",{className:"divide-y",children:e.map(b=>jsxRuntime.jsxs("div",{className:o("group relative flex gap-3 px-4 py-3 transition-colors hover:bg-muted/50",!b.read&&"bg-muted/30"),children:[jsxRuntime.jsx("div",{className:o("flex h-9 w-9 shrink-0 items-center justify-center rounded-full",b.avatar?"overflow-hidden":eT[b.type||"default"]),children:b.avatar?jsxRuntime.jsx("img",{src:b.avatar,alt:"",className:"h-full w-full object-cover"}):b.icon?b.icon:jsxRuntime.jsx(lucideReact.Bell,{className:"h-4 w-4"})}),jsxRuntime.jsxs("button",{type:"button",onClick:()=>R(b),className:"flex-1 text-left",children:[jsxRuntime.jsxs("div",{className:"flex items-start justify-between gap-2",children:[jsxRuntime.jsx("p",{className:o("text-sm",!b.read&&"font-medium"),children:b.title}),!b.read&&jsxRuntime.jsx("span",{className:"mt-1.5 h-2 w-2 shrink-0 rounded-full bg-primary"})]}),b.description&&jsxRuntime.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground line-clamp-2",children:b.description}),jsxRuntime.jsx("p",{className:"mt-1 text-[10px] text-muted-foreground",children:tT(b.timestamp)})]}),jsxRuntime.jsxs("div",{className:"absolute right-2 top-2 flex gap-1 opacity-0 transition-opacity group-hover:opacity-100",children:[!b.read&&r&&jsxRuntime.jsx("button",{type:"button",onClick:v=>{v.stopPropagation(),r(b.id);},className:"rounded-sm p-1 text-muted-foreground hover:bg-background hover:text-foreground",title:"Mark as read",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3.5 w-3.5"})}),(n||b.onDismiss)&&jsxRuntime.jsx("button",{type:"button",onClick:v=>{v.stopPropagation(),b.onDismiss?.(),n?.(b.id);},className:"rounded-sm p-1 text-muted-foreground hover:bg-background hover:text-foreground",title:"Dismiss",children:jsxRuntime.jsx(lucideReact.X,{className:"h-3.5 w-3.5"})})]})]},b.id))})}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center py-10 text-center",children:[jsxRuntime.jsx(lucideReact.Bell,{className:"h-10 w-10 text-muted-foreground/50"}),jsxRuntime.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:u})]})]})]})});Ph.displayName="NotificationCenter";var Ch=classVarianceAuthority.cva("relative flex items-center justify-center gap-3 px-4 py-2.5 text-sm",{variants:{variant:{solid:"",flat:""},type:{default:"",success:"",warning:"",error:""},position:{top:"fixed top-0 left-0 right-0 z-50",relative:"relative"}},compoundVariants:[{variant:"solid",type:"default",className:"bg-primary text-primary-foreground [&>svg]:text-primary-foreground"},{variant:"flat",type:"default",className:"bg-primary/10 text-primary [&>svg]:text-primary"},{variant:"solid",type:"success",className:"bg-green-600 text-white dark:bg-green-500 [&>svg]:text-white"},{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:"bg-amber-600 text-white dark:bg-amber-500 [&>svg]:text-white"},{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:"bg-red-600 text-white dark:bg-red-500 [&>svg]:text-white"},{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",position:"relative"}}),lT={default:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle},Sh=K__namespace.forwardRef(({message:e,type:t="default",variant:r="solid",showIcon:a=false,icon:n,dismissible:i=true,onDismiss:s,endContent:l,position:d,animate:m,autoDismiss:u,storageKey:c,className:f,...p},h)=>{let[y,g]=K__namespace.useState(true),[x,R]=K__namespace.useState(false);K__namespace.useEffect(()=>{c&&localStorage.getItem(`banner-${c}`)==="true"&&g(false);},[c]),K__namespace.useEffect(()=>{if(u&&y){let w=setTimeout(()=>{b();},u);return ()=>clearTimeout(w)}},[u,y]);let b=()=>{R(true),setTimeout(()=>{g(false),c&&localStorage.setItem(`banner-${c}`,"true"),s?.();},200);};if(!y)return null;let v=lT[t],C=a?n!==void 0?n:v?jsxRuntime.jsx(v,{className:"h-4 w-4"}):null:null;return jsxRuntime.jsxs("div",{ref:h,className:o(Ch({variant:r,type:t,position:d}),m&&"animate-pulse",x&&"animate-out fade-out slide-out-to-top duration-200",f),role:"banner",...p,children:[C&&jsxRuntime.jsx("span",{className:"shrink-0",children:C}),jsxRuntime.jsx("span",{className:"text-center font-medium",children:e}),l&&jsxRuntime.jsx("div",{className:"shrink-0 ml-2",children:l}),i&&jsxRuntime.jsx("button",{type:"button",onClick:b,className:o("absolute right-2 top-1/2 -translate-y-1/2 rounded-sm p-1 transition-opacity hover:opacity-70 cursor-pointer",d==="relative"&&"right-4"),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})});Sh.displayName="Banner";var nn=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-full shadow-lg transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-muted",ghost:"bg-background hover:bg-muted shadow-md"},size:{sm:"h-10 w-10",md:"h-14 w-14",lg:"h-16 w-16"},position:{"bottom-right":"fixed bottom-6 right-6","bottom-left":"fixed bottom-6 left-6","bottom-center":"fixed bottom-6 left-1/2 -translate-x-1/2",relative:"relative"}},defaultVariants:{variant:"default",size:"md",position:"bottom-right"}}),mT=classVarianceAuthority.cva("transition-transform duration-200",{variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-7 w-7"}},defaultVariants:{size:"md"}}),ql=K__namespace.forwardRef(({icon:e,label:t="Action button",extended:r,extendedLabel:a,actions:n,direction:i="up",showTooltip:s=true,closeIcon:l,animation:d="rotate",variant:m,size:u,position:c,className:f,onClick:p,disabled:h,...y},g)=>{let[x,R]=K__namespace.useState(false),b=n&&n.length>0,v=T=>{b&&R(!x),p?.(T);},C=T=>{T.onClick?.(),R(false);},w={up:{container:"flex-col-reverse bottom-full mb-3",item:"mb-3"},down:{container:"flex-col top-full mt-3",item:"mt-3"},left:{container:"flex-row-reverse right-full mr-3",item:"mr-3"},right:{container:"flex-row left-full ml-3",item:"ml-3"}},k=d==="rotate"&&x?"rotate-45":"",S=d==="scale"&&x?"scale-0":"scale-100";return jsxRuntime.jsxs("div",{className:o("z-50",c!=="relative"&&c&&nn({position:c})),children:[b&&x&&jsxRuntime.jsx("div",{className:o("absolute flex items-center gap-2",w[i].container),children:n.map((T,N)=>jsxRuntime.jsxs("div",{className:o("flex items-center gap-2 animate-in fade-in zoom-in duration-200",i==="up"||i==="down"?"flex-row":"flex-col"),style:{animationDelay:`${N*50}ms`},children:[s&&(i==="up"||i==="down")&&jsxRuntime.jsx("span",{className:"rounded-md bg-popover px-2 py-1 text-xs font-medium text-popover-foreground shadow-md whitespace-nowrap",children:T.label}),T.href?jsxRuntime.jsx("a",{href:T.href,className:o(nn({variant:T.variant||"secondary",size:u==="lg"?"md":"sm"})),"aria-label":T.label,children:T.icon}):jsxRuntime.jsx("button",{type:"button",onClick:()=>C(T),className:o(nn({variant:T.variant||"secondary",size:u==="lg"?"md":"sm"})),"aria-label":T.label,children:T.icon}),s&&(i==="left"||i==="right")&&jsxRuntime.jsx("span",{className:"rounded-md bg-popover px-2 py-1 text-xs font-medium text-popover-foreground shadow-md whitespace-nowrap",children:T.label})]},T.id))}),jsxRuntime.jsxs("button",{ref:g,type:"button",onClick:v,disabled:h,className:o(nn({variant:m,size:u,position:"relative"}),r&&"px-6 gap-2",f),"aria-label":t,"aria-expanded":b?x:void 0,...y,children:[x&&l?l:jsxRuntime.jsx("span",{className:o(mT({size:u}),k,S,"transition-all duration-200"),children:e||jsxRuntime.jsx(lucideReact.Plus,{})}),r&&a&&jsxRuntime.jsx("span",{className:"font-medium",children:a})]}),b&&x&&jsxRuntime.jsx("div",{className:"fixed inset-0 -z-10",onClick:()=>R(false)})]})});ql.displayName="FloatingActionButton";var uT=ql;var Vh=classVarianceAuthority.cva("fixed bottom-0 left-0 right-0 z-50 flex items-center justify-around border-t bg-background safe-area-pb",{variants:{variant:{default:"border-border",elevated:"border-transparent shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.1)]",filled:"border-transparent bg-primary text-primary-foreground"},size:{sm:"h-14",md:"h-16",lg:"h-20"}},defaultVariants:{variant:"default",size:"md"}}),Th=classVarianceAuthority.cva("flex flex-1 flex-col items-center justify-center gap-1 transition-colors cursor-pointer",{variants:{variant:{default:"",elevated:"",filled:""}},defaultVariants:{variant:"default"}}),Lh=K__namespace.forwardRef(({className:e,variant:t,size:r,items:a,value:n,defaultValue:i,onValueChange:s,hideLabels:l=false,showActiveLabel:d=false,renderItem:m,...u},c)=>{let[f,p]=K__namespace.useState(i||a[0]?.key),h=n!==void 0,y=h?n:f,g=v=>{v.disabled||(h||p(v.key),s?.(v.key));},x=v=>t==="filled"?v?"text-primary-foreground":"text-primary-foreground/60 hover:text-primary-foreground/80":v?"text-primary":"text-muted-foreground hover:text-foreground",R=()=>{switch(r){case "sm":return "h-5 w-5";case "lg":return "h-7 w-7";default:return "h-6 w-6"}},b=()=>{switch(r){case "sm":return "text-[10px]";case "lg":return "text-sm";default:return "text-xs"}};return jsxRuntime.jsx("nav",{ref:c,className:o(Vh({variant:t,size:r}),e),role:"navigation","aria-label":"Bottom navigation",...u,children:a.map(v=>{let C=y===v.key,w=!l&&(d?C:true),k=C&&v.activeIcon?v.activeIcon:v.icon;if(m)return jsxRuntime.jsx("div",{onClick:()=>g(v),className:o(Th({variant:t}),v.disabled&&"opacity-50 cursor-not-allowed"),children:m(v,C)},v.key);let S=jsxRuntime.jsxs("div",{onClick:()=>!v.href&&g(v),className:o(Th({variant:t}),x(C),v.disabled&&"opacity-50 cursor-not-allowed"),role:"button","aria-current":C?"page":void 0,"aria-disabled":v.disabled,tabIndex:v.disabled?-1:0,onKeyDown:T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),g(v));},children:[jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("span",{className:o(R(),"[&>svg]:h-full [&>svg]:w-full"),children:k}),v.badge!==void 0&&v.badge>0&&jsxRuntime.jsx("span",{className:"absolute -top-1 -right-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-red-500 px-1 text-[10px] font-medium text-white",children:v.badge>99?"99+":v.badge}),v.showDot&&jsxRuntime.jsx("span",{className:"absolute -top-0.5 -right-0.5 h-2 w-2 rounded-full bg-red-500"})]}),w&&v.label&&jsxRuntime.jsx("span",{className:o(b(),"font-medium truncate max-w-full px-1"),children:v.label})]},v.key);return v.href&&!v.disabled?jsxRuntime.jsx("a",{href:v.href,onClick:()=>g(v),className:o("flex flex-1 flex-col items-center justify-center gap-1 no-underline",x(C)),children:S},v.key):S})})});Lh.displayName="BottomNavigation";var fT="fixed inset-x-0 bottom-0 z-50 mt-24 flex h-fit max-h-[90vh] flex-col rounded-t-[20px] border-t border-border/40 dark:border-border/20 bg-background",Eh=classVarianceAuthority.cva("flex w-full items-center gap-3 px-4 py-3.5 text-left transition-colors focus-visible:outline-none focus-visible:bg-accent disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"hover:bg-accent",destructive:"text-destructive hover:bg-destructive/10"}},defaultVariants:{variant:"default"}}),Hh=K__namespace.forwardRef(({open:e,onOpenChange:t,trigger:r,title:a,description:n,items:i,cancelLabel:s="Cancel",onCancel:l,showCancel:d=true,children:m,closeOnSelect:u=true,onAction:c},f)=>{let p=h=>{h.isDisabled||(h.onSelect?.(),c?.(h.key),u&&t?.(false));};return jsxRuntime.jsxs(vaul.Drawer.Root,{open:e,onOpenChange:t,children:[r&&jsxRuntime.jsx(vaul.Drawer.Trigger,{asChild:true,children:r}),jsxRuntime.jsxs(vaul.Drawer.Portal,{children:[jsxRuntime.jsx(vaul.Drawer.Overlay,{className:"fixed inset-0 z-50 bg-black/40"}),jsxRuntime.jsxs(vaul.Drawer.Content,{ref:f,className:fT,children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-1.5 w-12 flex-shrink-0 rounded-full bg-muted"}),(a||n)&&jsxRuntime.jsxs("div",{className:"px-4 py-3 text-center",children:[a&&jsxRuntime.jsx(vaul.Drawer.Title,{className:"text-base font-semibold",children:a}),n&&jsxRuntime.jsx(vaul.Drawer.Description,{className:"mt-1 text-sm text-muted-foreground",children:n})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:m||jsxRuntime.jsx("div",{className:"divide-y divide-border/40 dark:divide-border/20",children:i?.map(h=>jsxRuntime.jsxs("button",{type:"button",disabled:h.isDisabled,onClick:()=>p(h),className:o(Eh({variant:h.isDestructive?"destructive":"default"})),children:[h.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 flex-shrink-0 [&>svg]:h-full [&>svg]:w-full",children:h.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"font-medium",children:h.label}),h.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:h.description})]})]},h.key))})}),d&&jsxRuntime.jsx("div",{className:"border-t border-border/40 dark:border-border/20 p-2 pb-safe",children:jsxRuntime.jsx(vaul.Drawer.Close,{asChild:true,children:jsxRuntime.jsx("button",{type:"button",onClick:l,className:"w-full rounded-lg bg-muted py-3.5 text-center font-semibold transition-colors hover:bg-muted/80",children:s})})})]})]})]})});Hh.displayName="ActionSheet";var zh=classVarianceAuthority.cva("relative overflow-hidden touch-pan-y",{variants:{variant:{default:"",card:"rounded-lg border bg-card"}},defaultVariants:{variant:"default"}}),Jl=classVarianceAuthority.cva("flex h-full items-center justify-center px-4 text-white font-medium transition-opacity",{variants:{variant:{primary:"bg-primary",secondary:"bg-secondary text-secondary-foreground",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500",info:"bg-blue-500"},size:{sm:"min-w-16",md:"min-w-20",lg:"min-w-24"}},defaultVariants:{variant:"primary",size:"md"}}),Bh=K__namespace.forwardRef(({className:e,variant:t,leftActions:r=[],rightActions:a=[],actionSize:n="md",threshold:i=.3,onSwipeEnd:s,disabled:l=false,fullSwipeAction:d,children:m,...u},c)=>{let f=K__namespace.useRef(null),[p,h]=K__namespace.useState(0),[y,g]=K__namespace.useState(false),x=K__namespace.useRef(0),R=K__namespace.useRef(0),b=r.length*(n==="sm"?64:n==="lg"?96:80),v=a.length*(n==="sm"?64:n==="lg"?96:80),C=N=>{l||(g(true),x.current=N.touches[0].clientX,R.current=p);},w=N=>{if(!y||l)return;let M=N.touches[0].clientX-x.current,D=R.current+M;(D>0&&r.length===0||D<0&&a.length===0)&&(D=0),D>b?D=b+(D-b)*.3:D<-v&&(D=-v+(D+v)*.3),h(D);},k=()=>{if(!y)return;g(false);let N=f.current?.offsetWidth||0,P=Math.abs(p)/N;if(d&&P>.6){d==="right"&&p>0&&r[0]?(r[0].onAction?.(),s?.("right",r[0].key)):d==="left"&&p<0&&a[0]&&(a[0].onAction?.(),s?.("left",a[0].key)),h(0);return}p>b*i&&r.length>0?(h(b),s?.("right")):p<-v*i&&a.length>0?(h(-v),s?.("left")):h(0);},S=(N,P)=>{N.onAction?.(),s?.(P,N.key),h(0);},T=()=>{h(0);};return jsxRuntime.jsxs("div",{ref:c,className:o(zh({variant:t,className:e})),...u,children:[r.length>0&&jsxRuntime.jsx("div",{className:"absolute left-0 top-0 bottom-0 flex",style:{width:b},children:r.map(N=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>S(N,"right"),className:o(Jl({variant:N.variant,size:n})),style:{opacity:Math.min(1,p/b)},children:[N.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:N.icon}),!N.icon&&N.label]},N.key))}),a.length>0&&jsxRuntime.jsx("div",{className:"absolute right-0 top-0 bottom-0 flex",style:{width:v},children:a.map(N=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>S(N,"left"),className:o(Jl({variant:N.variant,size:n})),style:{opacity:Math.min(1,Math.abs(p)/v)},children:[N.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:N.icon}),!N.icon&&N.label]},N.key))}),jsxRuntime.jsx("div",{ref:f,className:o("relative bg-background",y?"":"transition-transform duration-200"),style:{transform:`translateX(${p}px)`},onTouchStart:C,onTouchMove:w,onTouchEnd:k,onClick:p!==0?T:void 0,children:m})]})});Bh.displayName="SwipeActions";var Oh=classVarianceAuthority.cva("relative overflow-hidden",{variants:{variant:{default:"",contained:"h-full"}},defaultVariants:{variant:"default"}}),vT=classVarianceAuthority.cva("absolute left-1/2 -translate-x-1/2 flex items-center justify-center transition-all duration-200",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"}},defaultVariants:{size:"md"}}),Gh=K__namespace.forwardRef(({className:e,variant:t,onRefresh:r,pullThreshold:a=80,maxPullDistance:n=120,loadingIndicator:i,pullIndicator:s,indicatorSize:l="md",disabled:d=false,pullText:m="Pull to refresh",releaseText:u="Release to refresh",refreshingText:c="Refreshing...",children:f,...p},h)=>{let y=K__namespace.useRef(null),[g,x]=K__namespace.useState(0),[R,b]=K__namespace.useState("idle"),v=K__namespace.useRef(0),C=K__namespace.useRef(false),w=()=>d||R==="refreshing"?false:(y.current?.scrollTop??window.scrollY)<=0,k=M=>{w()&&(v.current=M.touches[0].clientY,C.current=true);},S=M=>{if(!C.current||!w())return;let E=M.touches[0].clientY-v.current;if(E<0){x(0),b("idle");return}let V=Math.min(E*.5,n);x(V),b(V>=a?"ready":"pulling");},T=async()=>{if(C.current)if(C.current=false,R==="ready"){b("refreshing"),x(a*.6);try{await r();}finally{b("idle"),x(0);}}else b("idle"),x(0);},N={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}[l],P=()=>{if(R==="refreshing")return i||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:o(N,"animate-spin text-primary")}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:c})]});let M=Math.min(g/a*180,180);return s||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.ArrowDown,{className:o(N,"text-muted-foreground transition-transform"),style:{transform:`rotate(${M}deg)`}}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:R==="ready"?u:m})]})};return jsxRuntime.jsxs("div",{ref:h,className:o(Oh({variant:t,className:e})),...p,children:[jsxRuntime.jsx("div",{className:o(vT({size:l}),"z-10",R==="idle"&&g===0&&"opacity-0"),style:{top:Math.max(g-60,-60),opacity:Math.min(g/(a*.5),1)},children:P()}),jsxRuntime.jsx("div",{ref:y,className:o("transition-transform duration-200",R==="refreshing"&&"ease-out"),style:{transform:`translateY(${g}px)`,transition:C.current?"none":void 0},onTouchStart:k,onTouchMove:S,onTouchEnd:T,children:f})]})});Gh.displayName="PullToRefresh";var $h=classVarianceAuthority.cva("flex min-h-screen w-full",{variants:{layout:{default:"flex-col",sidebar:"flex-row"}},defaultVariants:{layout:"default"}}),_h=K__namespace.forwardRef(({className:e,layout:t="default",header:r,footer:a,sidebar:n,aside:i,sidebarCollapsed:s=false,sidebarWidth:l="16rem",sidebarCollapsedWidth:d="4rem",asideWidth:m="16rem",fixed:u=false,children:c,...f},p)=>{let h=s?d:l;return jsxRuntime.jsxs("div",{ref:p,className:o($h({layout:t}),e),style:{"--app-shell-sidebar-width":h,"--app-shell-aside-width":m},...f,children:[r&&jsxRuntime.jsx(ed,{fixed:u,hasSidebar:!!n,children:r}),jsxRuntime.jsxs("div",{className:"flex flex-1",children:[n&&jsxRuntime.jsx(td,{collapsed:s,fixed:u,children:n}),jsxRuntime.jsx("main",{className:o("flex-1 flex flex-col min-h-0",u&&r&&"pt-14",u&&a&&"pb-14"),children:c}),i&&jsxRuntime.jsx(rd,{fixed:u,children:i})]}),a&&jsxRuntime.jsx(ad,{fixed:u,hasSidebar:!!n,children:a})]})});_h.displayName="AppShell";var ed=K__namespace.forwardRef(({className:e,fixed:t,hasSidebar:r,children:a,...n},i)=>jsxRuntime.jsx("header",{ref:i,className:o("flex h-14 items-center border-b bg-background px-4",t&&"fixed top-0 right-0 z-40",t&&r&&"left-[var(--app-shell-sidebar-width)]",t&&!r&&"left-0",e),...n,children:a}));ed.displayName="AppShellHeader";var td=K__namespace.forwardRef(({className:e,collapsed:t,fixed:r,children:a,...n},i)=>jsxRuntime.jsx("aside",{ref:i,className:o("w-[var(--app-shell-sidebar-width)] shrink-0 border-r bg-background transition-[width] duration-200",r&&"fixed left-0 top-0 bottom-0 z-50",e),"data-collapsed":t,...n,children:a}));td.displayName="AppShellSidebar";var rd=K__namespace.forwardRef(({className:e,fixed:t,children:r,...a},n)=>jsxRuntime.jsx("aside",{ref:n,className:o("w-[var(--app-shell-aside-width)] shrink-0 border-l bg-background",t&&"fixed right-0 top-14 bottom-0 z-40",e),...a,children:r}));rd.displayName="AppShellAside";var ad=K__namespace.forwardRef(({className:e,fixed:t,hasSidebar:r,children:a,...n},i)=>jsxRuntime.jsx("footer",{ref:i,className:o("flex h-14 items-center border-t bg-background px-4",t&&"fixed bottom-0 right-0 z-40",t&&r&&"left-[var(--app-shell-sidebar-width)]",t&&!r&&"left-0",e),...n,children:a}));ad.displayName="AppShellFooter";var Kh=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex-1 overflow-auto p-4",e),...t}));Kh.displayName="AppShellMain";var Uh=classVarianceAuthority.cva("flex min-h-screen w-full bg-muted/40",{variants:{variant:{default:"",bordered:"[&_[data-slot=sidebar]]:border-r [&_[data-slot=header]]:border-b",filled:"[&_[data-slot=sidebar]]:bg-background [&_[data-slot=header]]:bg-background"}},defaultVariants:{variant:"bordered"}}),jh=K__namespace.forwardRef(({className:e,variant:t,navigation:r,logo:a,userMenu:n,headerActions:i,breadcrumb:s,defaultCollapsed:l=false,collapsed:d,onCollapsedChange:m,children:u,...c},f)=>{let[p,h]=K__namespace.useState(l),[y,g]=K__namespace.useState(false),x=d??p,R=K__namespace.useCallback(b=>{h(b),m?.(b);},[m]);return jsxRuntime.jsxs("div",{ref:f,className:o(Uh({variant:t}),e),...c,children:[jsxRuntime.jsxs("aside",{"data-slot":"sidebar","data-collapsed":x,className:o("hidden lg:flex flex-col fixed inset-y-0 left-0 z-50 bg-background transition-[width] duration-200",x?"w-16":"w-64"),children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:a}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:r}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]}),jsxRuntime.jsx(ko,{open:y,onOpenChange:g,children:jsxRuntime.jsxs(za,{side:"left",className:"w-64 p-0",children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:a}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:r}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]})}),jsxRuntime.jsxs("div",{className:o("flex flex-1 flex-col transition-[margin-left] duration-200",x?"lg:ml-16":"lg:ml-64"),children:[jsxRuntime.jsxs("header",{"data-slot":"header",className:"sticky top-0 z-40 flex h-14 items-center gap-4 bg-background px-4 lg:px-6",children:[jsxRuntime.jsxs($,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:()=>g(true),children:[jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle menu"})]}),jsxRuntime.jsxs($,{variant:"ghost",size:"icon",className:"hidden lg:flex",onClick:()=>R(!x),children:[jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle sidebar"})]}),s&&jsxRuntime.jsx("div",{className:"flex-1",children:s}),i&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:i})]}),jsxRuntime.jsx("main",{className:"flex-1 p-4 lg:p-6",children:u})]})]})});jh.displayName="DashboardLayout";var Xh=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("space-y-6",e),...t}));Xh.displayName="DashboardPage";var qh=K__namespace.forwardRef(({className:e,title:t,description:r,actions:a,children:n,...i},s)=>jsxRuntime.jsxs("div",{ref:s,className:o("flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",e),...i,children:[jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:t}),r&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:r}),n]}),a&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:a})]}));qh.displayName="DashboardPageHeader";var Zh=K__namespace.forwardRef(({className:e,columns:t=4,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:o("grid gap-4",{1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"}[t],e),...r}));Zh.displayName="DashboardGrid";var Yi=classVarianceAuthority.cva("min-h-screen w-full",{variants:{variant:{centered:"flex items-center justify-center bg-muted/40",split:"flex flex-col lg:flex-row",cover:"relative flex items-center justify-center"}},defaultVariants:{variant:"centered"}}),Jh=K__namespace.forwardRef(({className:e,variant:t="centered",logo:r,sideContent:a,backgroundImage:n,sidePosition:i="left",footer:s,children:l,...d},m)=>t==="split"?jsxRuntime.jsxs("div",{ref:m,className:o(Yi({variant:t}),e),...d,children:[jsxRuntime.jsx("div",{className:o("hidden lg:flex lg:w-1/2 flex-col bg-primary text-primary-foreground",i==="right"&&"order-2"),children:a||jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center p-8",children:[r&&jsxRuntime.jsx("div",{className:"mb-8",children:r}),jsxRuntime.jsxs("div",{className:"max-w-md text-center",children:[jsxRuntime.jsx("h2",{className:"text-3xl font-bold",children:"Welcome back"}),jsxRuntime.jsx("p",{className:"mt-4 text-primary-foreground/80",children:"Sign in to your account to continue"})]})]})}),jsxRuntime.jsxs("div",{className:o("flex flex-1 flex-col lg:w-1/2",i==="right"&&"order-1"),children:[r&&jsxRuntime.jsx("div",{className:"flex items-center justify-center p-6 lg:hidden",children:r}),jsxRuntime.jsx("div",{className:"flex flex-1 items-center justify-center p-6",children:jsxRuntime.jsx("div",{className:"w-full max-w-md space-y-6",children:l})}),s&&jsxRuntime.jsx("div",{className:"p-6 text-center text-sm text-muted-foreground",children:s})]})]}):t==="cover"?jsxRuntime.jsxs("div",{ref:m,className:o(Yi({variant:t}),e),style:n?{backgroundImage:`url(${n})`,backgroundSize:"cover",backgroundPosition:"center"}:void 0,...d,children:[n&&jsxRuntime.jsx("div",{className:"absolute inset-0 bg-background/80 backdrop-blur-sm"}),jsxRuntime.jsxs("div",{className:"relative z-10 w-full max-w-md p-6",children:[r&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:r}),jsxRuntime.jsx("div",{className:"rounded-lg border bg-card p-6 shadow-lg",children:l}),s&&jsxRuntime.jsx("div",{className:"mt-6 text-center text-sm text-muted-foreground",children:s})]})]}):jsxRuntime.jsx("div",{ref:m,className:o(Yi({variant:t}),e),...d,children:jsxRuntime.jsxs("div",{className:"w-full max-w-md p-6",children:[r&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:r}),jsxRuntime.jsx("div",{className:"rounded-lg border bg-card p-6 shadow-sm",children:l}),s&&jsxRuntime.jsx("div",{className:"mt-6 text-center text-sm text-muted-foreground",children:s})]})}));Jh.displayName="AuthLayout";var Qh=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("form",{ref:r,className:o("space-y-4",e),...t}));Qh.displayName="AuthForm";var ex=K__namespace.forwardRef(({className:e,title:t,description:r,children:a,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("space-y-2 text-center",e),...n,children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold",children:t}),r&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:r}),a]}));ex.displayName="AuthHeader";var tx=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex flex-col gap-2 text-center text-sm",e),...t}));tx.displayName="AuthFooterLinks";var rx=K__namespace.forwardRef(({className:e,text:t="or continue with",...r},a)=>jsxRuntime.jsxs("div",{ref:a,className:o("relative my-4",e),...r,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center",children:jsxRuntime.jsx("span",{className:"w-full border-t"})}),jsxRuntime.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:jsxRuntime.jsx("span",{className:"bg-card px-2 text-muted-foreground",children:t})})]}));rx.displayName="AuthDivider";var ax=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("grid grid-cols-2 gap-2",e),...t}));ax.displayName="AuthSocialButtons";var Ui=classVarianceAuthority.cva("w-full",{variants:{variant:{sidebar:"flex flex-col lg:flex-row gap-8",tabs:"space-y-6",stacked:"space-y-8"}},defaultVariants:{variant:"sidebar"}}),ox=K__namespace.forwardRef(({className:e,variant:t="sidebar",navigation:r,title:a,description:n,children:i,...s},l)=>t==="sidebar"?jsxRuntime.jsxs("div",{ref:l,className:o(Ui({variant:t}),e),...s,children:[r&&jsxRuntime.jsx("aside",{className:"lg:w-64 shrink-0",children:jsxRuntime.jsx("nav",{className:"flex flex-col gap-1",children:r})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-6",children:[(a||n)&&jsxRuntime.jsx(ln,{title:a,description:n}),i]})]}):t==="tabs"?jsxRuntime.jsxs("div",{ref:l,className:o(Ui({variant:t}),e),...s,children:[(a||n)&&jsxRuntime.jsx(ln,{title:a,description:n}),r,jsxRuntime.jsx("div",{className:"pt-4",children:i})]}):jsxRuntime.jsxs("div",{ref:l,className:o(Ui({variant:t}),e),...s,children:[(a||n)&&jsxRuntime.jsx(ln,{title:a,description:n}),i]}));ox.displayName="SettingsLayout";var ln=K__namespace.forwardRef(({className:e,title:t,description:r,children:a,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("space-y-1",e),...n,children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold",children:t}),r&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:r}),a]}));ln.displayName="SettingsHeader";var nx=K__namespace.forwardRef(({className:e,title:t,description:r,children:a,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("space-y-4",e),...n,children:[(t||r)&&jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h2",{className:"text-lg font-medium",children:t}),r&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:r})]}),a]}));nx.displayName="SettingsSection";var ix=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("rounded-lg border bg-card p-6",e),...t}));ix.displayName="SettingsCard";var sx=K__namespace.forwardRef(({className:e,label:t,description:r,htmlFor:a,children:n,...i},s)=>jsxRuntime.jsxs("div",{ref:s,className:o("flex flex-col gap-4 py-4 sm:flex-row sm:items-center sm:justify-between","border-b last:border-0 first:pt-0 last:pb-0",e),...i,children:[jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[t&&jsxRuntime.jsx("label",{htmlFor:a,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:t}),r&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:r})]}),jsxRuntime.jsx("div",{className:"shrink-0",children:n})]}));sx.displayName="SettingsRow";var lx=K__namespace.forwardRef(({className:e,active:t,icon:r,children:a,...n},i)=>jsxRuntime.jsxs("button",{ref:i,type:"button",className:o("flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors","hover:bg-muted",t&&"bg-muted",e),...n,children:[r&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:r}),a]}));lx.displayName="SettingsNavItem";var dx=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("h-px bg-border my-4",e),...t}));dx.displayName="SettingsSeparator";var Ea=(e,t,r)=>({duration:e,delay:t,ease:r||[.4,0,.2,1]}),wT={hidden:e=>({opacity:e}),visible:{opacity:1},exit:e=>({opacity:e})},cx=K__namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:i,unmountOnExit:s=true,initialOpacity:l=0,onAnimationStart:d,onAnimationComplete:m},u)=>{let c=jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:wT,custom:l,transition:Ea(r,a,n),className:o(i),onAnimationStart:d,onAnimationComplete:m,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&c}):c});cx.displayName="Fade";var NT=(e,t)=>{let r=typeof t=="number"?`${t}px`:t,a={up:{y:r},down:{y:`-${r}`},left:{x:r},right:{x:`-${r}`}};return {hidden:{opacity:0,...a[e]},visible:{opacity:1,x:0,y:0},exit:{opacity:0,...a[e]}}},mx=K__namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:i,unmountOnExit:s=true,direction:l="up",offset:d=20,onAnimationStart:m,onAnimationComplete:u},c)=>{let f=K__namespace.useMemo(()=>NT(l,d),[l,d]),p=jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:f,transition:Ea(r,a,n),className:o(i),onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&p}):p});mx.displayName="Slide";var PT={center:"center center",top:"center top",bottom:"center bottom",left:"left center",right:"right center","top-left":"left top","top-right":"right top","bottom-left":"left bottom","bottom-right":"right bottom"},CT={hidden:e=>({opacity:0,scale:e}),visible:{opacity:1,scale:1},exit:e=>({opacity:0,scale:e})},ux=K__namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:i,unmountOnExit:s=true,initialScale:l=.9,origin:d="center",onAnimationStart:m,onAnimationComplete:u},c)=>{let f=jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:CT,custom:l,transition:Ea(r,a,n),className:o(i),style:{transformOrigin:PT[d]},onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&f}):f});ux.displayName="Scale";var px=K__namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:i,horizontal:s=false,startingSize:l=0,animateOpacity:d=true,onAnimationStart:m,onAnimationComplete:u},c)=>{let f=s?"width":"height",p={hidden:{[f]:l,opacity:d?0:1},visible:{[f]:"auto",opacity:1},exit:{[f]:l,opacity:d?0:1}};return jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,children:e&&jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:"visible",exit:"exit",variants:p,transition:Ea(r,a,n),className:o("overflow-hidden",i),onAnimationStart:m,onAnimationComplete:u,children:t})})});px.displayName="Collapse";var fx=K__namespace.forwardRef(({show:e=true,children:t,duration:r=.4,delay:a=0,ease:n,className:i,initialWidth:s=0,initialHeight:l=0,animateOpacity:d=true,onAnimationStart:m,onAnimationComplete:u},c)=>{let f={hidden:{width:s,height:l,opacity:d?0:1},visible:{width:"auto",height:"auto",opacity:1},exit:{width:s,height:l,opacity:d?0:1}};return jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,children:e&&jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:"visible",exit:"exit",variants:f,transition:Ea(r,a,n),className:o("overflow-hidden",i),onAnimationStart:m,onAnimationComplete:u,children:t})})});fx.displayName="Expand";var gx=K__namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:i,unmountOnExit:s=true,initialRotation:l=-180,finalRotation:d=0,onAnimationStart:m,onAnimationComplete:u},c)=>{let f={hidden:{opacity:0,rotate:l},visible:{opacity:1,rotate:d},exit:{opacity:0,rotate:l}},p=jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:f,transition:Ea(r,a,n),className:o(i),onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&p}):p});gx.displayName="Rotate";var bx=K__namespace.forwardRef(({front:e,back:t,direction:r="horizontal",flipped:a=false,duration:n=.6,delay:i=0,ease:s,className:l,onAnimationStart:d,onAnimationComplete:m},u)=>{let c=r==="horizontal"?"rotateY":"rotateX";return jsxRuntime.jsx("div",{ref:u,className:o("relative",l),style:{perspective:1e3},children:jsxRuntime.jsxs(framerMotion.motion.div,{animate:{[c]:a?180:0},transition:Ea(n,i,s),style:{transformStyle:"preserve-3d"},onAnimationStart:d,onAnimationComplete:m,children:[jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden"},children:e}),jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden",transform:`${c}(180deg)`},children:t})]})})});bx.displayName="Flip";var vx=K__namespace.forwardRef(({color:e="currentColor",duration:t=.6,children:r,className:a,disabled:n=false},i)=>{let[s,l]=K__namespace.useState([]),d=K__namespace.useRef(null),m=c=>{if(n)return;let f=d.current;if(!f)return;let p=f.getBoundingClientRect(),h=c.clientX-p.left,y=c.clientY-p.top,g=Math.max(p.width,p.height)*2,x={id:Date.now(),x:h,y,size:g};l(R=>[...R,x]);},u=c=>{l(f=>f.filter(p=>p.id!==c));};return jsxRuntime.jsxs("div",{ref:i,className:o("relative overflow-hidden",a),onClick:m,children:[jsxRuntime.jsx("div",{ref:d,className:"relative z-0",children:r}),jsxRuntime.jsx(framerMotion.AnimatePresence,{children:s.map(c=>jsxRuntime.jsx(framerMotion.motion.span,{initial:{scale:0,opacity:.35},animate:{scale:1,opacity:0},exit:{opacity:0},transition:{duration:t,ease:"easeOut"},onAnimationComplete:()=>u(c.id),className:"pointer-events-none absolute rounded-full",style:{left:c.x-c.size/2,top:c.y-c.size/2,width:c.size,height:c.size,backgroundColor:e}},c.id))})]})});vx.displayName="Ripple";var hx=K__namespace.forwardRef(({children:e,animate:t=true,height:r=10,duration:a=.5,count:n=0,className:i,triggerOnHover:s=false},l)=>{let[d,m]=K__namespace.useState(false),u=s?d:t,c={idle:{y:0},bounce:{y:[0,-r,0],transition:{duration:a,ease:"easeInOut",repeat:n===0?1/0:n-1,repeatType:"loop"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:c,initial:"idle",animate:u?"bounce":"idle",className:o(i),onMouseEnter:()=>s&&m(true),onMouseLeave:()=>s&&m(false),children:e})});hx.displayName="Bounce";var TT={subtle:[0,-2,2,-2,2,-1,1,0],normal:[0,-5,5,-5,5,-3,3,0],strong:[0,-10,10,-10,10,-5,5,0]},xx=K__namespace.forwardRef(({children:e,animate:t=true,intensity:r="normal",duration:a=.5,count:n=1,className:i,triggerOnHover:s=false},l)=>{let[d,m]=K__namespace.useState(false),u=s?d:t,c={idle:{x:0},shake:{x:TT[r],transition:{duration:a,ease:"easeInOut",repeat:n-1}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:c,initial:"idle",animate:u?"shake":"idle",className:o(i),onMouseEnter:()=>s&&m(true),onMouseLeave:()=>s&&m(false),children:e})});xx.displayName="Shake";var kT={slow:"animate-[pulse_3s_ease-in-out_infinite]",normal:"animate-[pulse_2s_ease-in-out_infinite]",fast:"animate-[pulse_1s_ease-in-out_infinite]"},yx=K__namespace.forwardRef(({children:e,animate:t=true,speed:r="normal",className:a},n)=>jsxRuntime.jsx("div",{ref:n,className:o(t&&kT[r],a),children:e}));yx.displayName="Pulse";var Rx=K__namespace.forwardRef(({children:e,animate:t=true,angle:r=10,duration:a=.3,count:n=0,className:i,triggerOnHover:s=false},l)=>{let[d,m]=K__namespace.useState(false),u=s?d:t,c={idle:{rotate:0},wiggle:{rotate:[0,-r,r,-r,r,0],transition:{duration:a,ease:"easeInOut",repeat:n===0?1/0:n-1,repeatType:"loop"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:c,initial:"idle",animate:u?"wiggle":"idle",className:o(i),onMouseEnter:()=>s&&m(true),onMouseLeave:()=>s&&m(false),children:e})});Rx.displayName="Wiggle";var wx=K__namespace.forwardRef(({children:e,animate:t=false,scale:r=1.2,duration:a=.2,className:n,triggerOnHover:i=false,triggerOnClick:s=false},l)=>{let[d,m]=K__namespace.useState(false),u=t||d,c={type:"spring",stiffness:400,damping:17,duration:a},f=()=>{s&&(m(true),setTimeout(()=>m(false),a*1e3));};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,animate:{scale:u?r:1},transition:c,className:o(n),onMouseEnter:()=>i&&m(true),onMouseLeave:()=>i&&m(false),onClick:f,children:e})});wx.displayName="Pop";var ET=(e,t,r,a)=>{let n=e.toFixed(t),[i,s]=n.split("."),l=i.replace(/\B(?=(\d{3})+(?!\d))/g,r);return s?`${l}${a}${s}`:l},Nx=K__namespace.forwardRef(({value:e,from:t=0,duration:r=2,decimals:a=0,prefix:n="",suffix:i="",separator:s=",",decimalSeparator:l=".",animateOnView:d=true,delay:m=0,className:u,onComplete:c},f)=>{let p=K__namespace.useRef(null),h=framerMotion.useInView(p,{once:true}),[y,g]=K__namespace.useState(!d);K__namespace.useEffect(()=>{if(d&&h){let v=setTimeout(()=>g(true),m*1e3);return ()=>clearTimeout(v)}},[d,h,m]);let x={damping:30,stiffness:100,duration:r*1e3},R=framerMotion.useSpring(y?e:t,x),b=framerMotion.useTransform(R,v=>ET(v,a,s,l));return K__namespace.useEffect(()=>{y&&R.set(e);},[y,e,R]),K__namespace.useEffect(()=>{let v=R.on("change",C=>{Math.abs(C-e)<.01&&c&&c();});return ()=>v()},[R,e,c]),jsxRuntime.jsx("span",{ref:p,className:o(u),children:jsxRuntime.jsxs("span",{ref:f,children:[n,jsxRuntime.jsx(framerMotion.motion.span,{children:b}),i]})})});Nx.displayName="Counter";var Px=K__namespace.forwardRef(({text:e,speed:t=50,delay:r=0,pauseBetween:a=1500,cursor:n=true,cursorChar:i="|",loop:s=false,deleteSpeed:l=30,animateOnView:d=true,className:m,cursorClassName:u,onComplete:c},f)=>{let p=Array.isArray(e)?e:[e],[h,y]=K__namespace.useState(""),[g,x]=K__namespace.useState(0),[R,b]=K__namespace.useState(false),[v,C]=K__namespace.useState(false),w=K__namespace.useRef(null),k=framerMotion.useInView(w,{once:true}),[S,T]=K__namespace.useState(!d);return K__namespace.useEffect(()=>{if(d&&k){let N=setTimeout(()=>T(true),r*1e3);return ()=>clearTimeout(N)}},[d,k,r]),K__namespace.useEffect(()=>{if(!S||v)return;let N=p[g],P;return R?h.length>0?P=setTimeout(()=>{y(h.slice(0,-1));},l):(b(false),x(M=>(M+1)%p.length)):h.length<N.length?P=setTimeout(()=>{y(N.slice(0,h.length+1));},t):g<p.length-1||s?P=setTimeout(()=>{b(true);},a):(C(true),c?.()),()=>clearTimeout(P)},[S,h,g,R,v,p,t,l,a,s,c]),jsxRuntime.jsxs("span",{ref:w,className:o(m),children:[jsxRuntime.jsx("span",{ref:f,children:h}),n&&jsxRuntime.jsx(framerMotion.motion.span,{animate:{opacity:[1,0]},transition:{duration:.8,repeat:1/0,repeatType:"reverse"},className:o("ml-0.5",u),children:i})]})});Px.displayName="Typewriter";var Cx=K__namespace.forwardRef(({children:e,direction:t="up",stagger:r=.05,duration:a=.5,delay:n=0,splitBy:i="word",animateOnView:s=true,className:l},d)=>{let m=K__namespace.useRef(null),u=framerMotion.useInView(m,{once:true,amount:.5}),c=s?u:true,f=typeof e=="string"?e:"",p=i==="word"?f.split(" "):f.split(""),h={up:{y:20},down:{y:-20},left:{x:20},right:{x:-20}},y={hidden:{},visible:{transition:{staggerChildren:r,delayChildren:n}}},g={hidden:{opacity:0,...h[t]},visible:{opacity:1,x:0,y:0,transition:{duration:a,ease:"easeInOut"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:d,className:o("inline-flex flex-wrap",l),variants:y,initial:"hidden",animate:c?"visible":"hidden",children:jsxRuntime.jsx("span",{ref:m,children:p.map((x,R)=>jsxRuntime.jsxs(framerMotion.motion.span,{variants:g,className:"inline-block",children:[x,i==="word"&&R<p.length-1&&"\xA0"]},R))})})});Cx.displayName="TextReveal";var Sx=K__namespace.forwardRef(({words:e,duration:t=2,animation:r="slide",animationDuration:a=.5,className:n,loop:i=true},s)=>{let[l,d]=K__namespace.useState(0);K__namespace.useEffect(()=>{if(!i&&l===e.length-1)return;let u=setInterval(()=>{d(c=>(c+1)%e.length);},t*1e3);return ()=>clearInterval(u)},[e.length,t,i,l]);let m=()=>{switch(r){case "fade":return {initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};case "slide":return {initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20}};case "scale":return {initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:1.2}};case "blur":return {initial:{opacity:0,filter:"blur(10px)"},animate:{opacity:1,filter:"blur(0px)"},exit:{opacity:0,filter:"blur(10px)"}}}};return jsxRuntime.jsx("span",{ref:s,className:o("relative inline-block",n),children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"wait",children:jsxRuntime.jsx(framerMotion.motion.span,{variants:m(),initial:"initial",animate:"animate",exit:"exit",transition:{duration:a},className:"inline-block",children:e[l]},e[l])})})});Sx.displayName="WordRotate";var Dx=K__namespace.forwardRef(({children:e,direction:t="up",distance:r=50,duration:a=.6,delay:n=0,once:i=true,threshold:s=.1,className:l,scale:d,rotate:m,blur:u,ease:c=[.4,0,.2,1]},f)=>{let p=K__namespace.useRef(null),h=framerMotion.useInView(p,{once:i,amount:s}),g={up:{x:0,y:r},down:{x:0,y:-r},left:{x:r,y:0},right:{x:-r,y:0},none:{x:0,y:0}}[t],x={hidden:{opacity:0,x:g.x,y:g.y,scale:d??1,rotate:m??0,filter:u?`blur(${u}px)`:"blur(0px)"},visible:{opacity:1,x:0,y:0,scale:1,rotate:0,filter:"blur(0px)",transition:{duration:a,delay:n,ease:c}}};return jsxRuntime.jsx("div",{ref:p,children:jsxRuntime.jsx(framerMotion.motion.div,{ref:f,variants:x,initial:"hidden",animate:h?"visible":"hidden",className:o(l),children:e})})});Dx.displayName="ScrollReveal";var Vx=K__namespace.forwardRef(({position:e="top",size:t=4,color:r="hsl(var(--primary))",backgroundColor:a="transparent",zIndex:n=50,className:i,container:s,showPercentage:l=false,useSpring:d=true},m)=>{let{scrollYProgress:u}=framerMotion.useScroll({container:s}),c=framerMotion.useSpring(u,{stiffness:100,damping:30,restDelta:.001}),f=d?c:u,p=e==="top"||e==="bottom",h={top:{top:0,left:0,right:0,height:t},bottom:{bottom:0,left:0,right:0,height:t},left:{top:0,left:0,bottom:0,width:t},right:{top:0,right:0,bottom:0,width:t}},y=p?"scaleX":"scaleY",g=p?"left":"top";return jsxRuntime.jsxs("div",{ref:m,className:o("fixed",i),style:{...h[e],zIndex:n,backgroundColor:a},children:[jsxRuntime.jsx(framerMotion.motion.div,{className:"h-full w-full",style:{[y]:f,transformOrigin:g,backgroundColor:r}}),l&&jsxRuntime.jsx(AT,{progress:f,position:e})]})});Vx.displayName="ScrollProgress";var AT=({progress:e,position:t})=>{let r=framerMotion.useTransform(e,s=>Math.round(s*100)),[a,n]=K__namespace.useState(0);return K__namespace.useEffect(()=>{let s=r.on("change",n);return ()=>s()},[r]),jsxRuntime.jsxs("span",{className:o("fixed rounded bg-background/80 px-2 py-1 text-xs font-medium backdrop-blur-sm",{top:"top-2 right-4",bottom:"bottom-2 right-4",left:"top-4 left-2",right:"top-4 right-2"}[t]),children:[a,"%"]})},Lx=K__namespace.forwardRef(({children:e,speed:t=.5,direction:r="vertical",className:a,container:n},i)=>{let s=K__namespace.useRef(null),{scrollYProgress:l}=framerMotion.useScroll({target:s,container:n,offset:["start end","end start"]}),d=[-100*t,100*t],m=framerMotion.useTransform(l,[0,1],d),u=framerMotion.useSpring(m,{stiffness:100,damping:30}),c=r==="horizontal"?u:0,f=r==="vertical"?u:0;return jsxRuntime.jsx("div",{ref:s,className:o("overflow-hidden",a),children:jsxRuntime.jsx(framerMotion.motion.div,{ref:i,style:{x:c,y:f},children:e})})});Lx.displayName="Parallax";var Hx=K__namespace.forwardRef(({children:e,width:t,height:r,duration:a=1.5,direction:n="right",baseColor:i="hsl(var(--muted))",highlightColor:s="hsl(var(--muted-foreground) / 0.1)",borderRadius:l,className:d,active:m=true},u)=>{let c={left:"to left",right:"to right",top:"to top",bottom:"to bottom"},f={left:"shimmer-left",right:"shimmer-right",top:"shimmer-top",bottom:"shimmer-bottom"};return jsxRuntime.jsxs("div",{ref:u,className:o("relative overflow-hidden",d),style:{width:t,height:r,borderRadius:l,backgroundColor:i},children:[e,m&&jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:`linear-gradient(${c[n]}, transparent, ${s}, transparent)`,animation:`${f[n]} ${a}s infinite`}}),jsxRuntime.jsx("style",{children:`
|
|
36
|
+
`}),jsxRuntime.jsx("circle",{className:o("stroke-muted",i),cx:u.size/2,cy:u.size/2,r:c,strokeWidth:u.strokeWidth,fill:"none"}),jsxRuntime.jsx("circle",{cx:u.size/2,cy:u.size/2,r:c,strokeWidth:u.strokeWidth,fill:"none",strokeLinecap:"round",stroke:Cu[r]||Cu.default,strokeDasharray:d?`${v} ${f-v}`:`${f} ${f}`,strokeDashoffset:d?0:p,style:{transformOrigin:"center",transform:"rotate(-90deg)",transition:d?void 0:"stroke-dashoffset 0.3s ease-in-out"}})]}),n&&!d&&jsxRuntime.jsxs("span",{className:o("absolute font-medium text-foreground",u.fontSize),children:[Math.round(m),"%"]})]})});Tu.displayName="CircularProgress";var ku=K__namespace.createContext(null),IR=()=>{let e=K__namespace.useContext(ku);if(!e)throw new Error("OTP components must be used within InputOTP");return e},Du=classVarianceAuthority.cva("flex items-center gap-2 has-[:disabled]:opacity-50",{variants:{size:{sm:"[&_[data-otp-slot]]:h-8 [&_[data-otp-slot]]:w-8 [&_[data-otp-slot]]:text-xs",md:"[&_[data-otp-slot]]:h-10 [&_[data-otp-slot]]:w-10 [&_[data-otp-slot]]:text-sm",lg:"[&_[data-otp-slot]]:h-12 [&_[data-otp-slot]]:w-12 [&_[data-otp-slot]]:text-base"}},defaultVariants:{size:"md"}}),Vu=K__namespace.forwardRef(({className:e,containerClassName:t,maxLength:r,value:a,defaultValue:n="",onChange:i,onComplete:s,pattern:l,disabled:d=false,size:m,children:u,...c},f)=>{let[p,v]=K__namespace.useState(n),[y,g]=K__namespace.useState(0),[x,R]=K__namespace.useState(false),b=K__namespace.useRef(null),h=a!==void 0?a:p;K__namespace.useImperativeHandle(f,()=>b.current),K__namespace.useEffect(()=>{g(Math.min(h.length,r-1));},[h,r]),K__namespace.useEffect(()=>{h.length===r&&s&&s(h);},[h,r,s]);let P=T=>{let k=T.target.value;if(l&&k){let V=new RegExp(l.replace("^","").replace("$","").replace("+",""));k=k.split("").filter(E=>V.test(E)).join("");}k=k.slice(0,r),a===void 0&&v(k),i?.(k);},w=T=>{T.key==="ArrowLeft"?g(k=>Math.max(0,k-1)):T.key==="ArrowRight"&&g(k=>Math.min(h.length,r-1,k+1));},M=()=>{b.current?.focus();},C=()=>{R(true),g(Math.min(h.length,r-1));},S=()=>{R(false);},N={value:h,activeIndex:x?y:-1,maxLength:r,disabled:d};return jsxRuntime.jsx(ku.Provider,{value:N,children:jsxRuntime.jsxs("div",{className:o(Du({size:m}),t),onClick:M,"data-otp-container":true,children:[jsxRuntime.jsx("input",{ref:b,type:"text",inputMode:"numeric",autoComplete:"one-time-code",value:h,onChange:P,onKeyDown:w,onFocus:C,onBlur:S,disabled:d,maxLength:r,className:o("absolute opacity-0 pointer-events-none w-0 h-0",e),...c}),u]})})});Vu.displayName="InputOTP";var Lu=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex items-center",e),...t}));Lu.displayName="InputOTPGroup";var Iu=K__namespace.forwardRef(({index:e,className:t,...r},a)=>{let{value:n,activeIndex:i,disabled:s}=IR(),l=n[e]||"",d=i===e,m=d&&n.length===e;return jsxRuntime.jsxs("div",{ref:a,"data-otp-slot":true,"data-active":d,"data-filled":!!l,className:o("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm font-medium transition-all first:rounded-l-md first:border-l last:rounded-r-md",d&&"z-10 border-foreground",s&&"cursor-not-allowed opacity-50",t),...r,children:[l,m&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:jsxRuntime.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});Iu.displayName="InputOTPSlot";var Eu=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"separator",className:o("text-muted-foreground",e),...t,children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}));Eu.displayName="InputOTPSeparator";var zu=classVarianceAuthority.cva("inline-flex items-center gap-1 rounded-full text-xs font-medium transition-colors",{variants:{variant:{solid:"bg-primary text-primary-foreground",outline:"border border-input bg-transparent",ghost:"bg-transparent text-foreground",soft:"bg-primary/15 text-primary",surface:"bg-muted text-muted-foreground"},size:{sm:"h-5 px-2 text-xs",md:"h-6 px-2.5 text-xs",lg:"h-7 px-3 text-sm"}},defaultVariants:{variant:"soft",size:"md"}}),Bu=K__namespace.forwardRef(({className:e,variant:t,size:r,value:a=[],onChange:n,placeholder:i="Add tag...",maxTags:s,minTagLength:l=1,maxTagLength:d=50,triggerKeys:m=["Enter",",","Tab"],allowDuplicates:u=false,disabled:c,readOnly:f,renderTag:p,...v},y)=>{let[g,x]=K__namespace.useState(""),R=K__namespace.useRef(null);K__namespace.useImperativeHandle(y,()=>R.current);let b=N=>{let T=N.trim();if(T.length<l||T.length>d||s&&a.length>=s||!u&&a.some(V=>V.text.toLowerCase()===T.toLowerCase()))return;let k={id:crypto.randomUUID(),text:T};n?.([...a,k]),x("");},h=N=>{c||f||n?.(a.filter(T=>T.id!==N));},P=N=>{if(m.includes(N.key)){if(N.key==="Tab"&&!g)return;N.preventDefault(),b(g);}N.key==="Backspace"&&!g&&a.length>0&&h(a[a.length-1].id);},w=N=>{let T=N.target.value;if(T.includes(",")){T.split(",").forEach(V=>{V.trim()&&b(V);});return}x(T);},M=N=>{N.preventDefault(),N.clipboardData.getData("text").split(/[,\n\t]/).filter(Boolean).forEach(V=>{b(V);});},C=()=>{R.current?.focus();},S=s?a.length>=s:false;return jsxRuntime.jsxs("div",{className:o("flex min-h-10 w-full flex-wrap gap-1.5 rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",c&&"cursor-not-allowed opacity-50",e),onClick:C,children:[a.map(N=>p?p(N,()=>h(N.id)):jsxRuntime.jsxs("span",{className:o(zu({variant:t,size:r})),children:[N.text,!c&&!f&&jsxRuntime.jsx("button",{type:"button",onClick:T=>{T.stopPropagation(),h(N.id);},className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${N.text}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},N.id)),!S&&!f&&jsxRuntime.jsx("input",{ref:R,type:"text",value:g,onChange:w,onKeyDown:P,onPaste:M,placeholder:a.length===0?i:"",disabled:c,className:o("flex-1 bg-transparent outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed","min-w-[80px]"),...v})]})});Bu.displayName="TagInput";var Ou=classVarianceAuthority.cva("flex flex-col items-center justify-center text-center",{variants:{size:{sm:"gap-2 py-6",md:"gap-3 py-10",lg:"gap-4 py-16"}},defaultVariants:{size:"md"}}),Gu=K__namespace.forwardRef(({className:e,size:t,icon:r,title:a,description:n,action:i,children:s,...l},d)=>jsxRuntime.jsxs("div",{ref:d,className:o(Ou({size:t,className:e})),...l,children:[r&&jsxRuntime.jsx("div",{className:"text-muted-foreground [&>svg]:h-10 [&>svg]:w-10",children:r}),a&&jsxRuntime.jsx("h3",{className:"text-lg font-semibold text-foreground",children:a}),n&&jsxRuntime.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:n}),i&&jsxRuntime.jsx("div",{className:"mt-2",children:i}),s]}));Gu.displayName="EmptyState";var $u=classVarianceAuthority.cva("rounded-lg border bg-card p-6 text-card-foreground shadow-sm",{variants:{variant:{solid:"bg-primary text-primary-foreground border-primary",outline:"bg-transparent",ghost:"border-transparent shadow-none",soft:"bg-primary/10 border-primary/20",surface:"bg-muted border-muted"}},defaultVariants:{variant:"outline"}}),_u=K__namespace.forwardRef(({className:e,variant:t,label:r,value:a,icon:n,trend:i,trendValue:s,description:l,...d},m)=>{let u=i==="up"?lucideReact.TrendingUp:i==="down"?lucideReact.TrendingDown:lucideReact.Minus,c=i==="up"?"text-green-500":i==="down"?"text-red-500":"text-muted-foreground";return jsxRuntime.jsxs("div",{ref:m,className:o($u({variant:t,className:e})),...d,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:r}),n&&jsxRuntime.jsx("div",{className:"text-muted-foreground [&>svg]:h-4 [&>svg]:w-4",children:n})]}),jsxRuntime.jsxs("div",{className:"mt-2 flex items-baseline gap-2",children:[jsxRuntime.jsx("p",{className:"text-2xl font-bold",children:a}),i&&s&&jsxRuntime.jsxs("span",{className:o("flex items-center gap-0.5 text-sm",c),children:[jsxRuntime.jsx(u,{className:"h-3 w-3"}),s]})]}),l&&jsxRuntime.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:l})]})});_u.displayName="StatCard";var Yu=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"",bordered:"divide-y divide-border rounded-lg border",striped:"[&>*:nth-child(odd)]:bg-muted/50"},size:{sm:"gap-1 [&>*]:py-2 [&>*]:px-3",md:"gap-2 [&>*]:py-3 [&>*]:px-4",lg:"gap-3 [&>*]:py-4 [&>*]:px-5"}},defaultVariants:{variant:"default",size:"md"}}),Uu=K__namespace.forwardRef(({className:e,variant:t,size:r,...a},n)=>jsxRuntime.jsx("div",{ref:n,role:"list",className:o(Yu({variant:t,size:r,className:e})),...a}));Uu.displayName="List";var ju=classVarianceAuthority.cva("flex items-center gap-3 transition-colors",{variants:{interactive:{true:"cursor-pointer hover:bg-muted/50",false:""}},defaultVariants:{interactive:false}}),Xu=K__namespace.forwardRef(({className:e,interactive:t,leading:r,trailing:a,children:n,...i},s)=>jsxRuntime.jsxs("div",{ref:s,role:"listitem",className:o(ju({interactive:t,className:e})),...i,children:[r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground",children:r}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:n}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a})]}));Xu.displayName="ListItem";var qu=K__namespace.forwardRef(({className:e,primary:t,secondary:r,children:a,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("min-w-0",e),...n,children:[t&&jsxRuntime.jsx("p",{className:"text-sm font-medium leading-none truncate",children:t}),r&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground truncate",children:r}),a]}));qu.displayName="ListItemText";var Qu=classVarianceAuthority.cva("flex flex-col",{variants:{position:{left:"",right:"",alternate:""}},defaultVariants:{position:"left"}}),ep=K__namespace.forwardRef(({className:e,position:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,"data-position":t,className:o(Qu({position:t,className:e})),...r}));ep.displayName="Timeline";var tp=classVarianceAuthority.cva("relative flex gap-4 pb-8 last:pb-0",{variants:{variant:{default:"",success:"[&_[data-timeline-dot]]:bg-green-500 [&_[data-timeline-dot]]:border-green-500",warning:"[&_[data-timeline-dot]]:bg-yellow-500 [&_[data-timeline-dot]]:border-yellow-500",error:"[&_[data-timeline-dot]]:bg-red-500 [&_[data-timeline-dot]]:border-red-500",info:"[&_[data-timeline-dot]]:bg-blue-500 [&_[data-timeline-dot]]:border-blue-500"}},defaultVariants:{variant:"default"}}),rp=K__namespace.forwardRef(({className:e,variant:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:o(tp({variant:t,className:e})),...r}));rp.displayName="TimelineItem";var ap=K__namespace.forwardRef(({className:e,dot:t,showConnector:r=true,...a},n)=>jsxRuntime.jsxs("div",{ref:n,className:o("flex flex-col items-center",e),...a,children:[jsxRuntime.jsx("div",{"data-timeline-dot":true,className:"flex h-3 w-3 items-center justify-center rounded-full border-2 border-primary bg-primary",children:t}),r&&jsxRuntime.jsx("div",{className:"w-0.5 flex-1 bg-border"})]}));ap.displayName="TimelineSeparator";var op=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex-1 pt-0.5",e),...t}));op.displayName="TimelineContent";var np=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex-1 text-sm text-muted-foreground pt-0.5",e),...t}));np.displayName="TimelineOpposite";var sp=classVarianceAuthority.cva("inline-flex items-center rounded-lg bg-muted p-1 text-muted-foreground",{variants:{size:{sm:"h-8",md:"h-10",lg:"h-12"},fullWidth:{true:"w-full",false:""}},defaultVariants:{size:"md",fullWidth:false}}),lp=classVarianceAuthority.cva("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-sm",{variants:{size:{sm:"h-6 text-xs px-2.5",md:"h-8 text-sm px-3",lg:"h-10 text-base px-4"}},defaultVariants:{size:"md"}}),dp=K__namespace.createContext({}),cp=K__namespace.forwardRef(({className:e,size:t,fullWidth:r,children:a,...n},i)=>jsxRuntime.jsx(Aa__namespace.Root,{ref:i,type:"single",rovingFocus:false,className:o(sp({size:t,fullWidth:r,className:e})),...n,children:jsxRuntime.jsx(dp.Provider,{value:{size:t??"md"},children:a})}));cp.displayName="SegmentedControl";var mp=K__namespace.forwardRef(({className:e,children:t,...r},a)=>{let{size:n}=K__namespace.useContext(dp);return jsxRuntime.jsx(Aa__namespace.Item,{ref:a,className:o(lp({size:n}),"flex-1",e),...r,children:t})});mp.displayName="SegmentedControlItem";var up=classVarianceAuthority.cva("relative flex flex-col items-center justify-center rounded-lg border-2 border-dashed transition-colors",{variants:{variant:{default:"border-input bg-background hover:bg-accent/50",active:"border-primary bg-primary/5",error:"border-danger bg-danger/5"},size:{sm:"p-4 min-h-[120px]",md:"p-6 min-h-[160px]",lg:"p-8 min-h-[200px]"}},defaultVariants:{variant:"default",size:"md"}}),pp=e=>{let t=e.type;return t.startsWith("image/")?lucideReact.Image:t.startsWith("video/")?lucideReact.FileVideo:t.startsWith("audio/")?lucideReact.FileAudio:t.includes("pdf")||t.includes("document")?lucideReact.FileText:t.includes("zip")||t.includes("rar")||t.includes("archive")?lucideReact.FileArchive:lucideReact.File},Gn=e=>{if(e===0)return "0 Bytes";let t=1024,r=["Bytes","KB","MB","GB"],a=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,a)).toFixed(2))+" "+r[a]},fp=(e,t,r)=>{let a=[];return t&&e.size>t&&a.push({code:"file-too-large",message:`File is larger than ${Gn(t)}`}),r&&r.length>0&&(r.some(i=>{if(i.startsWith("."))return e.name.toLowerCase().endsWith(i.toLowerCase());if(i.endsWith("/*")){let s=i.slice(0,-2);return e.type.startsWith(s)}return e.type===i})||a.push({code:"file-invalid-type",message:`File type not accepted. Accepted: ${r.join(", ")}`})),a},gp=K__namespace.forwardRef(({className:e,variant:t,size:r,onFilesChange:a,onFilesRejected:n,onFileRemove:i,files:s=[],showFileList:l=true,children:d,maxSize:m=10*1024*1024,accept:u,multiple:c=true,disabled:f,...p},v)=>{let[y,g]=K__namespace.useState(false),[x,R]=K__namespace.useState(false),[b,h]=K__namespace.useState([]),P=K__namespace.useRef(null),w=K__namespace.useCallback(D=>{if(!D||D.length===0)return;let L=Array.from(D),A=[],B=[];(c?L:[L[0]]).forEach(j=>{let W=fp(j,m,u);W.length>0?B.push({file:j,errors:W}):A.push(j);}),h(B),A.length>0&&a?.(A),B.length>0&&n?.(B);},[m,u,c,a,n]),M=K__namespace.useCallback(D=>{if(D.preventDefault(),D.stopPropagation(),!f&&(g(true),D.dataTransfer.items)){let A=Array.from(D.dataTransfer.items).some(B=>{if(B.kind!=="file")return true;if(u&&u.length>0){let H=B.type;return !u.some(j=>j.endsWith("/*")?H.startsWith(j.slice(0,-2)):H===j)}return false});R(A);}},[f,u]),C=K__namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation(),!f&&(D.dataTransfer.dropEffect="copy");},[f]),S=K__namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation();let L=D.currentTarget.getBoundingClientRect(),A=D.clientX,B=D.clientY;(A<L.left||A>L.right||B<L.top||B>L.bottom)&&(g(false),R(false));},[]),N=K__namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation(),g(false),R(false),!f&&w(D.dataTransfer.files);},[f,w]),T=K__namespace.useCallback(()=>{f||P.current?.click();},[f]),k=K__namespace.useCallback(D=>{w(D.target.files),D.target.value="";},[w]),V=K__namespace.useCallback(D=>{f||(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),P.current?.click());},[f]),E=x?"error":y?"active":t,I=u?.join(",");return jsxRuntime.jsxs("div",{ref:v,className:o("space-y-4",e),...p,children:[jsxRuntime.jsxs("div",{role:"button",tabIndex:f?-1:0,onDragEnter:M,onDragOver:C,onDragLeave:S,onDrop:N,onClick:T,onKeyDown:V,className:o(up({variant:E,size:r}),f&&"opacity-50 cursor-not-allowed",!f&&"cursor-pointer focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"),"aria-disabled":f,children:[jsxRuntime.jsx("input",{ref:P,type:"file",accept:I,multiple:c,disabled:f,onChange:k,className:"sr-only",tabIndex:-1}),d||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[jsxRuntime.jsx("div",{className:"rounded-full bg-muted p-3",children:jsxRuntime.jsx(lucideReact.Upload,{className:"h-6 w-6 text-muted-foreground"})}),jsxRuntime.jsxs("div",{className:"space-y-1",children:[jsxRuntime.jsx("p",{className:"text-sm font-medium",children:y?"Drop files here":"Drop files or click to upload"}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[m&&`Max ${Gn(m)}`,u&&u.length>0&&` \u2022 ${u.join(", ")}`]})]})]})]}),b.length>0&&jsxRuntime.jsx("div",{className:"rounded-md bg-danger/10 p-3 text-sm text-danger",children:b.map(({file:D,errors:L})=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"font-medium",children:D.name}),":"," ",L.map(A=>A.message).join(", ")]},D.name))}),l&&s.length>0&&jsxRuntime.jsx("div",{className:"space-y-2",children:s.map(D=>{let L=pp(D.file);return jsxRuntime.jsxs("div",{className:o("flex items-center gap-3 rounded-lg border p-3",D.error&&"border-danger bg-danger/5"),children:[jsxRuntime.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-muted",children:jsxRuntime.jsx(L,{className:"h-5 w-5 text-muted-foreground"})}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"truncate text-sm font-medium",children:D.file.name}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[Gn(D.file.size),D.error&&jsxRuntime.jsx("span",{className:"ml-2 text-danger",children:D.error})]}),D.progress!==void 0&&D.progress<100&&jsxRuntime.jsx(kn,{value:D.progress,className:"mt-2 h-1"})]}),jsxRuntime.jsxs($,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",onClick:A=>{A.stopPropagation(),i?.(D.file);},children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Remove"})]})]},D.id)})})]})});gp.displayName="FileUpload";var JR=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23ccc'%3E%3Crect width='4' height='4'/%3E%3Crect x='4' y='4' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E")`,vp=classVarianceAuthority.cva("relative rounded-md border border-input shadow-sm transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{xs:"h-4 w-4",sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10",xl:"h-12 w-12"},shape:{square:"rounded-md",circle:"rounded-full"},interactive:{true:"cursor-pointer hover:scale-110 active:scale-105",false:"cursor-default"}},defaultVariants:{size:"md",shape:"square",interactive:false}}),zo=K__namespace.forwardRef(({color:e,isSelected:t,showTransparency:r=true,onSelect:a,size:n,shape:i,interactive:s,className:l,onClick:d,disabled:m,...u},c)=>jsxRuntime.jsx("button",{ref:c,type:"button",disabled:m,onClick:v=>{d?.(v),a?.(e);},className:o(vp({size:n,shape:i,interactive:s??(!!a||!!d)}),t&&"ring-2 ring-ring ring-offset-2",l),style:{backgroundImage:r?JR:void 0,backgroundSize:r?"8px 8px":void 0},"aria-label":`Color ${e}`,"aria-pressed":t,...u,children:jsxRuntime.jsx("span",{className:"absolute inset-0 rounded-[inherit]",style:{backgroundColor:e}})}));zo.displayName="ColorSwatch";var hp=classVarianceAuthority.cva("",{variants:{layout:{grid:"grid gap-2",stack:"flex flex-wrap gap-2"}},defaultVariants:{layout:"stack"}}),xp=K__namespace.forwardRef(({value:e,defaultValue:t,onChange:r,layout:a,columns:n=6,colors:i,swatchSize:s="md",swatchShape:l="square",disabled:d,className:m,style:u,...c},f)=>{let[p,v]=K__namespace.useState(t),y=e??p,g=K__namespace.useCallback(R=>{d||(e===void 0&&v(R),r?.(R));},[e,r,d]),x=R=>R.toLowerCase();return jsxRuntime.jsx("div",{ref:f,role:"listbox","aria-label":"Color options",className:o(hp({layout:a}),m),style:{...a==="grid"?{gridTemplateColumns:`repeat(${n}, 1fr)`}:{},...u},...c,children:i.map(R=>{let b=y?x(y)===x(R):false;return jsxRuntime.jsx(zo,{role:"option",color:R,size:s,shape:l,isSelected:b,onSelect:g,disabled:d,"aria-selected":b},R)})})});xp.displayName="ColorSwatchPicker";var tw=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"],yp={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"},Rp=K__namespace.forwardRef(({value:e,defaultValue:t="#3b82f6",onChange:r,disabled:a,presets:n=tw,showInput:i=true,size:s="md",className:l,variant:d="full"},m)=>{let[u,c]=K__namespace.useState(e??t),f=K__namespace.useId();K__namespace.useEffect(()=>{e!==void 0&&c(e);},[e]);let p=g=>{c(g),r?.(g);},v=g=>{c(g),r?.(g);},y=g=>{let x=g.target.value.toUpperCase();c(x),r?.(x);};return d==="simple"?jsxRuntime.jsxs("label",{className:o("relative rounded-md border border-input shadow-sm transition-colors cursor-pointer hover:border-foreground focus-within:border-foreground overflow-hidden",a&&"opacity-50 cursor-not-allowed",yp[s],l),children:[jsxRuntime.jsx("input",{type:"color",value:u,onChange:y,disabled:a,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0 disabled:cursor-not-allowed",id:f}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:u}})]}):jsxRuntime.jsxs(Ee,{children:[jsxRuntime.jsx($e,{asChild:true,children:jsxRuntime.jsx("button",{ref:m,disabled:a,className:o("rounded-md border border-input shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",yp[s],l),style:{backgroundColor:u},"aria-label":`Color picker, current color: ${u}`})}),jsxRuntime.jsx(Me,{className:"w-auto p-3",align:"start",children:jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:u,onChange:p,className:"!w-[200px]"}),i&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(ea,{htmlFor:"color-input",className:"text-xs",children:"Hex Color"}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx("div",{className:"h-9 w-9 shrink-0 rounded-md border",style:{backgroundColor:u}}),jsxRuntime.jsx(reactColorful.HexColorInput,{id:"color-input",color:u,onChange:p,prefixed:true,className:"flex h-9 w-full rounded-md border border-input bg-background px-3 py-2 font-mono text-sm uppercase ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"})]})]}),n.length>0&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(ea,{className:"text-xs",children:"Presets"}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1.5",children:n.map(g=>jsxRuntime.jsx(zo,{color:g,size:"sm",isSelected:u.toLowerCase()===g.toLowerCase(),onSelect:v},g))})]})]})})]})});Rp.displayName="ColorPicker";var wp=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),Is=e=>String(e).padStart(2,"0"),iw=e=>{let[t,r]=e.split(":").map(Number);return {hours:t||0,minutes:r||0}},sw=(e,t)=>`${Is(e)}:${Is(t)}`,Np=K__namespace.forwardRef(({className:e,size:t,value:r,onChange:a,use24Hour:n=true,minuteStep:i=1,showPicker:s=true,minTime:l,maxTime:d,disabled:m,...u},c)=>{let[f,p]=K__namespace.useState(r??""),[v,y]=K__namespace.useState(false);K__namespace.useEffect(()=>{r!==void 0&&p(r);},[r]);let{hours:g,minutes:x}=iw(f||"00:00"),R=S=>{let N=S.target.value;p(N),/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/.test(N)&&a?.(N);},b=(S,N)=>{let T=Math.max(0,Math.min(23,S)),k=Math.max(0,Math.min(59,N)),V=sw(T,k);p(V),a?.(V);},h=()=>b(g+1,x),P=()=>b(g-1,x),w=()=>b(g,x+i),M=()=>b(g,x-i),C=({value:S,onIncrement:N,onDecrement:T})=>jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx($,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:N,disabled:m,children:jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"flex h-10 w-12 items-center justify-center rounded-md bg-muted text-lg font-semibold",children:Is(S)}),jsxRuntime.jsx($,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:T,disabled:m,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"})})]});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[jsxRuntime.jsx("input",{ref:c,type:"time",value:f,onChange:R,disabled:m,className:o(wp({size:t}),s&&"pr-10","[&::-webkit-calendar-picker-indicator]:hidden",e),...u}),s&&jsxRuntime.jsxs(Ee,{open:v,onOpenChange:y,children:[jsxRuntime.jsx($e,{asChild:true,children:jsxRuntime.jsxs($,{type:"button",variant:"ghost",size:"sm",className:"absolute right-1 h-7 w-7 p-0",disabled:m,children:[jsxRuntime.jsx(lucideReact.Clock,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Pick time"})]})}),jsxRuntime.jsxs(Me,{className:"w-auto p-4",align:"end",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(C,{value:g,onIncrement:h,onDecrement:P,max:23}),jsxRuntime.jsx("div",{className:"text-2xl font-bold text-muted-foreground",children:":"}),jsxRuntime.jsx(C,{value:x,onIncrement:w,onDecrement:M,max:59})]}),jsxRuntime.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[jsxRuntime.jsx($,{variant:"bordered",size:"sm",onClick:()=>{let S=new Date;b(S.getHours(),S.getMinutes());},children:"Now"}),jsxRuntime.jsx($,{size:"sm",onClick:()=>y(false),children:"Done"})]})]})]})]})});Np.displayName="TimeInput";var Pp=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),dw=(e,t)=>{try{return new Intl.NumberFormat(t,{style:"currency",currency:e,currencyDisplay:"narrowSymbol"}).formatToParts(0).find(i=>i.type==="currency")?.value??e}catch{return e}},Es=(e,t,r,a)=>{let n=e.toFixed(t),[i,s]=n.split("."),l=i.replace(/\B(?=(\d{3})+(?!\d))/g,r);return s?`${l}${a}${s}`:l},Cp=(e,t,r)=>{if(!e)return;let a=e.replace(new RegExp(`\\${t}`,"g"),"");a=a.replace(r,"."),a=a.replace(/[^0-9.-]/g,"");let n=parseFloat(a);return isNaN(n)?void 0:n},Sp=K__namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a,onChange:n,currency:i="USD",locale:s="en-US",decimals:l=2,min:d,max:m,showCurrency:u=true,currencyPosition:c="prefix",currencySymbol:f,thousandSeparator:p=",",decimalSeparator:v=".",disabled:y,placeholder:g,...x},R)=>{let[b,h]=K__namespace.useState(a),[P,w]=K__namespace.useState(""),[M,C]=K__namespace.useState(false),S=r!==void 0?r:b,N=f??dw(i,s);K__namespace.useEffect(()=>{!M&&S!==void 0&&w(Es(S,l,p,v));},[S,l,p,v,M]);let T=D=>{let L=D.target.value;if(!L){w(""),r===void 0&&h(void 0),n?.(void 0);return}if(!new RegExp(`^[0-9${p}${v}.-]*$`).test(L))return;w(L);let B=Cp(L,p,v);if(B!==void 0){let H=B;d!==void 0&&B<d&&(H=d),m!==void 0&&B>m&&(H=m),r===void 0&&h(H),n?.(H);}},k=()=>{C(true),S!==void 0&&w(S.toString().replace(".",v));},V=()=>{C(false),w(S!==void 0?Es(S,l,p,v):"");},E=u&&c==="prefix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pr-1",children:N}),I=u&&c==="suffix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pl-1",children:N});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[E&&jsxRuntime.jsx("div",{className:"absolute left-3 pointer-events-none",children:E}),jsxRuntime.jsx("input",{ref:R,type:"text",inputMode:"decimal",value:P,onChange:T,onFocus:k,onBlur:V,disabled:y,placeholder:g??`0${v}${"0".repeat(l)}`,className:o(Pp({size:t}),E&&"pl-8",I&&"pr-8","text-right",e),style:{borderColor:M?"var(--color-foreground)":void 0},...x}),I&&jsxRuntime.jsx("div",{className:"absolute right-3 pointer-events-none",children:I})]})});Sp.displayName="CurrencyInput";var Mp=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 font-mono",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),Hs={creditCard:{mask:"#### #### #### ####"},creditCardAmex:{mask:"#### ###### #####"},cvv:{mask:"###"},expiry:{mask:"##/##"},date:{mask:"##/##/####"},dateISO:{mask:"####-##-##"},time:{mask:"##:##"},ip:{mask:"###.###.###.###"},mac:{mask:"AA:AA:AA:AA:AA:AA"},id11:{mask:"###########"},id9:{mask:"#########"},id10:{mask:"##########"},postal5:{mask:"#####"},postal9:{mask:"#####-####"}},uw=(e,t)=>{switch(t){case "#":return /\d/.test(e);case "A":return /[a-zA-Z]/.test(e);case "*":return /[a-zA-Z0-9]/.test(e);default:return e===t}},Fr=e=>["#","A","*"].includes(e),$n=(e,t,r)=>{let a="",n=0;for(let i=0;i<t.length&&n<=e.length;i++){let s=t[i];if(Fr(s)){if(n<e.length){let l=e[n];uw(l,s)?(a+=l,n++):(n++,i--);}}else (n<e.length||r)&&(a+=s);}return a},As=(e,t)=>{let r="";for(let a=0;a<e.length&&a<t.length;a++){let n=t[a];Fr(n)&&(r+=e[a]);}return r},Tp=(e,t)=>e.split("").map(r=>Fr(r)?t:r).join(""),pw=(e,t,r)=>{let a=0;for(let l=0;l<r&&l<e.length&&l<t.length;l++)Fr(t[l])&&a++;let i=0,s=0;for(let l=0;l<t.length&&s<a;l++)i++,Fr(t[l])&&s++;for(;i<t.length&&!Fr(t[i]);)i++;return Math.min(i,e.length)},kp=K__namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a="",onChange:n,mask:i,maskPlaceholder:s="_",showMaskPlaceholder:l=false,includeMaskChars:d=false,disabled:m,placeholder:u,...c},f)=>{let p=typeof i=="string"&&i in Hs?Hs[i].mask:i,[v,y]=K__namespace.useState(a),[g,x]=K__namespace.useState(""),[R,b]=K__namespace.useState(false),h=K__namespace.useRef(null),P=r!==void 0?r:v;K__namespace.useImperativeHandle(f,()=>h.current),K__namespace.useEffect(()=>{let S=$n(P,p,true);x(S);},[P,p]);let w=S=>{let N=S.target.value,T=S.target.selectionStart??0,k=N.replace(/[^\w]/g,""),V=$n(k,p,true),E=As(V,p);x(V),r===void 0&&y(d?V:E),n?.(E,V),requestAnimationFrame(()=>{if(h.current){let I=pw(V,p,T);h.current.setSelectionRange(I,I);}});},M=S=>{if(["ArrowLeft","ArrowRight","Home","End","Tab"].includes(S.key)||S.ctrlKey||S.metaKey)return;let N=h.current;if(!N)return;let T=N.selectionStart??0;if(S.key==="Backspace"&&T>0){let k=T-1;for(;k>0&&!Fr(p[k]);)k--;let V=As(g,p),E=0;for(let L=0;L<k&&L<p.length;L++)Fr(p[L])&&E++;let I=V.slice(0,Math.max(0,E-1))+V.slice(E),D=$n(I,p,true);x(D),r===void 0&&y(d?D:I),n?.(I,D),S.preventDefault(),requestAnimationFrame(()=>{h.current&&h.current.setSelectionRange(k,k);});}},C=l?Tp(p,s):u;return jsxRuntime.jsx("input",{ref:h,type:"text",value:g,onChange:w,onKeyDown:M,onFocus:()=>b(true),onBlur:()=>b(false),disabled:m,placeholder:C,className:o(Mp({size:t}),e),style:{borderColor:R?"var(--color-foreground)":void 0},...c})});kp.displayName="MaskedInput";var Dp=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),Yn={"DD/MM/YYYY":"/","MM/DD/YYYY":"/","YYYY-MM-DD":"-","DD.MM.YYYY":"."},Bs={"DD/MM/YYYY":["day","month","year"],"MM/DD/YYYY":["month","day","year"],"YYYY-MM-DD":["year","month","day"],"DD.MM.YYYY":["day","month","year"]},zs=(e,t)=>String(e).padStart(t,"0"),Kn=(e,t)=>{let r=zs(e.getDate(),2),a=zs(e.getMonth()+1,2),n=zs(e.getFullYear(),4),i=Yn[t],s=Bs[t],l={day:r,month:a,year:n};return s.map(d=>l[d]).join(i)},Vp=(e,t)=>{let r=Yn[t],a=e.split(r);if(a.length!==3)return null;let n=Bs[t],i={};if(n.forEach((l,d)=>{i[l]=parseInt(a[d],10);}),isNaN(i.day)||isNaN(i.month)||isNaN(i.year)||i.month<1||i.month>12||i.day<1||i.day>31||i.year<1e3||i.year>9999)return null;let s=new Date(i.year,i.month-1,i.day);return s.getFullYear()!==i.year||s.getMonth()!==i.month-1||s.getDate()!==i.day?null:s},vw=e=>e.toLowerCase(),hw=e=>{let t=Yn[e];return Bs[e].map(a=>a==="year"?"####":"##").join(t)},Lp=K__namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a,onChange:n,format:i="DD/MM/YYYY",minDate:s,maxDate:l,showIcon:d=true,disabled:m,placeholder:u,...c},f)=>{let[p,v]=K__namespace.useState(a??null),[y,g]=K__namespace.useState(""),[x,R]=K__namespace.useState(null),b=K__namespace.useRef(null),h=r!==void 0?r:p;K__namespace.useImperativeHandle(f,()=>b.current),K__namespace.useEffect(()=>{h?(g(Kn(h,i)),R(null)):g("");},[h,i]);let P=Yn[i],w=hw(i),M=N=>{let T=N.target.value;T=T.replace(new RegExp(`[^0-9\\${P}]`,"g"),"");let k=T.replace(new RegExp(`\\${P}`,"g"),""),V="",E=0;for(let I=0;I<w.length&&E<k.length;I++)w[I]==="#"?(V+=k[E],E++):V+=w[I];if(g(V),V.length===w.length){let I=Vp(V,i);if(I){if(s&&I<s){R(`Date must be after ${Kn(s,i)}`);return}if(l&&I>l){R(`Date must be before ${Kn(l,i)}`);return}R(null),r===void 0&&v(I),n?.(I);}else R("Invalid date");}else r===void 0&&v(null),n?.(null),R(null);},C=()=>{y&&y.length!==w.length&&(g(""),R(null),r===void 0&&v(null),n?.(null));},S=t==="sm"?"h-3 w-3":t==="lg"?"h-5 w-5":"h-4 w-4";return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{ref:b,type:"text",inputMode:"numeric",value:y,onChange:M,onBlur:C,disabled:m,placeholder:u??vw(i),className:o(Dp({size:t}),d&&"pr-10",x&&"border-danger focus-visible:ring-danger",e),"aria-invalid":!!x,"aria-describedby":x?"date-error":void 0,...c}),d&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2",children:jsxRuntime.jsx(lucideReact.Calendar,{className:o(S,"text-muted-foreground")})}),x&&jsxRuntime.jsx("p",{id:"date-error",className:"mt-1 text-xs text-danger",children:x})]})});Lp.displayName="DateInput";var Ip=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),Ep=[{code:"TR",name:"Turkey",dialCode:"+90",flag:"\u{1F1F9}\u{1F1F7}",format:"(###) ### ## ##"},{code:"US",name:"United States",dialCode:"+1",flag:"\u{1F1FA}\u{1F1F8}",format:"(###) ###-####"},{code:"GB",name:"United Kingdom",dialCode:"+44",flag:"\u{1F1EC}\u{1F1E7}",format:"#### ### ####"},{code:"DE",name:"Germany",dialCode:"+49",flag:"\u{1F1E9}\u{1F1EA}",format:"#### #######"},{code:"FR",name:"France",dialCode:"+33",flag:"\u{1F1EB}\u{1F1F7}",format:"# ## ## ## ##"},{code:"IT",name:"Italy",dialCode:"+39",flag:"\u{1F1EE}\u{1F1F9}",format:"### ### ####"},{code:"ES",name:"Spain",dialCode:"+34",flag:"\u{1F1EA}\u{1F1F8}",format:"### ### ###"},{code:"NL",name:"Netherlands",dialCode:"+31",flag:"\u{1F1F3}\u{1F1F1}",format:"## ########"},{code:"BE",name:"Belgium",dialCode:"+32",flag:"\u{1F1E7}\u{1F1EA}",format:"### ## ## ##"},{code:"AT",name:"Austria",dialCode:"+43",flag:"\u{1F1E6}\u{1F1F9}",format:"### #######"},{code:"CH",name:"Switzerland",dialCode:"+41",flag:"\u{1F1E8}\u{1F1ED}",format:"## ### ## ##"},{code:"SE",name:"Sweden",dialCode:"+46",flag:"\u{1F1F8}\u{1F1EA}",format:"##-### ## ##"},{code:"NO",name:"Norway",dialCode:"+47",flag:"\u{1F1F3}\u{1F1F4}",format:"### ## ###"},{code:"DK",name:"Denmark",dialCode:"+45",flag:"\u{1F1E9}\u{1F1F0}",format:"## ## ## ##"},{code:"FI",name:"Finland",dialCode:"+358",flag:"\u{1F1EB}\u{1F1EE}",format:"## ### ####"},{code:"PL",name:"Poland",dialCode:"+48",flag:"\u{1F1F5}\u{1F1F1}",format:"### ### ###"},{code:"CZ",name:"Czech Republic",dialCode:"+420",flag:"\u{1F1E8}\u{1F1FF}",format:"### ### ###"},{code:"GR",name:"Greece",dialCode:"+30",flag:"\u{1F1EC}\u{1F1F7}",format:"### ### ####"},{code:"PT",name:"Portugal",dialCode:"+351",flag:"\u{1F1F5}\u{1F1F9}",format:"### ### ###"},{code:"RU",name:"Russia",dialCode:"+7",flag:"\u{1F1F7}\u{1F1FA}",format:"(###) ###-##-##"},{code:"UA",name:"Ukraine",dialCode:"+380",flag:"\u{1F1FA}\u{1F1E6}",format:"## ### ## ##"},{code:"RO",name:"Romania",dialCode:"+40",flag:"\u{1F1F7}\u{1F1F4}",format:"### ### ###"},{code:"HU",name:"Hungary",dialCode:"+36",flag:"\u{1F1ED}\u{1F1FA}",format:"## ### ####"},{code:"BG",name:"Bulgaria",dialCode:"+359",flag:"\u{1F1E7}\u{1F1EC}",format:"### ### ###"},{code:"HR",name:"Croatia",dialCode:"+385",flag:"\u{1F1ED}\u{1F1F7}",format:"## ### ####"},{code:"RS",name:"Serbia",dialCode:"+381",flag:"\u{1F1F7}\u{1F1F8}",format:"## ### ####"},{code:"SI",name:"Slovenia",dialCode:"+386",flag:"\u{1F1F8}\u{1F1EE}",format:"## ### ###"},{code:"SK",name:"Slovakia",dialCode:"+421",flag:"\u{1F1F8}\u{1F1F0}",format:"### ### ###"},{code:"CA",name:"Canada",dialCode:"+1",flag:"\u{1F1E8}\u{1F1E6}",format:"(###) ###-####"},{code:"MX",name:"Mexico",dialCode:"+52",flag:"\u{1F1F2}\u{1F1FD}",format:"### ### ####"},{code:"BR",name:"Brazil",dialCode:"+55",flag:"\u{1F1E7}\u{1F1F7}",format:"(##) #####-####"},{code:"AR",name:"Argentina",dialCode:"+54",flag:"\u{1F1E6}\u{1F1F7}",format:"## ####-####"},{code:"AU",name:"Australia",dialCode:"+61",flag:"\u{1F1E6}\u{1F1FA}",format:"### ### ###"},{code:"NZ",name:"New Zealand",dialCode:"+64",flag:"\u{1F1F3}\u{1F1FF}",format:"## ### ####"},{code:"JP",name:"Japan",dialCode:"+81",flag:"\u{1F1EF}\u{1F1F5}",format:"##-####-####"},{code:"KR",name:"South Korea",dialCode:"+82",flag:"\u{1F1F0}\u{1F1F7}",format:"##-####-####"},{code:"CN",name:"China",dialCode:"+86",flag:"\u{1F1E8}\u{1F1F3}",format:"### #### ####"},{code:"HK",name:"Hong Kong",dialCode:"+852",flag:"\u{1F1ED}\u{1F1F0}",format:"#### ####"},{code:"TW",name:"Taiwan",dialCode:"+886",flag:"\u{1F1F9}\u{1F1FC}",format:"### ### ###"},{code:"SG",name:"Singapore",dialCode:"+65",flag:"\u{1F1F8}\u{1F1EC}",format:"#### ####"},{code:"IN",name:"India",dialCode:"+91",flag:"\u{1F1EE}\u{1F1F3}",format:"##### #####"},{code:"PK",name:"Pakistan",dialCode:"+92",flag:"\u{1F1F5}\u{1F1F0}",format:"### #######"},{code:"AE",name:"United Arab Emirates",dialCode:"+971",flag:"\u{1F1E6}\u{1F1EA}",format:"## ### ####"},{code:"SA",name:"Saudi Arabia",dialCode:"+966",flag:"\u{1F1F8}\u{1F1E6}",format:"## ### ####"},{code:"EG",name:"Egypt",dialCode:"+20",flag:"\u{1F1EA}\u{1F1EC}",format:"### ### ####"},{code:"ZA",name:"South Africa",dialCode:"+27",flag:"\u{1F1FF}\u{1F1E6}",format:"## ### ####"},{code:"NG",name:"Nigeria",dialCode:"+234",flag:"\u{1F1F3}\u{1F1EC}",format:"### ### ####"},{code:"IL",name:"Israel",dialCode:"+972",flag:"\u{1F1EE}\u{1F1F1}",format:"##-###-####"}],Un=(e,t)=>{let r=e.replace(/\D/g,""),a="",n=0;for(let i=0;i<t.length&&n<r.length;i++)t[i]==="#"?(a+=r[n],n++):a+=t[i];return a},Rw=e=>e.replace(/#/g,"_"),Hp=K__namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a="",onChange:n,country:i,defaultCountry:s="TR",onCountryChange:l,countries:d=Ep,showCountrySelect:m=true,showDialCode:u=false,disabled:c,placeholder:f,...p},v)=>{let[y,g]=K__namespace.useState(a),[x,R]=K__namespace.useState(i??s),[b,h]=K__namespace.useState(false),P=r!==void 0?r:y,w=i??x,M=d.find(k=>k.code===w)??d[0],C=Un(P,M.format),S=k=>{let E=k.target.value.replace(/\D/g,"");r===void 0&&g(E);let I=Un(E,M.format),D=`${M.dialCode} ${I}`;n?.(E,D,M);};return jsxRuntime.jsxs("div",{className:"flex",children:[m&&jsxRuntime.jsxs(as,{value:w,onValueChange:k=>{let V=d.find(D=>D.code===k);if(!V)return;i===void 0&&R(k),l?.(V);let E=Un(P,V.format),I=`${V.dialCode} ${E}`;n?.(P,I,V);},disabled:c,children:[jsxRuntime.jsx(yn,{className:o("w-[100px] rounded-r-none border-r-0 shrink-0",t==="sm"?"h-8":t==="lg"?"h-12":"h-10"),children:jsxRuntime.jsx(os,{children:jsxRuntime.jsxs("span",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{children:M.flag}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:M.dialCode})]})})}),jsxRuntime.jsx(Rn,{className:"max-h-[300px]",children:d.map(k=>jsxRuntime.jsx(wn,{value:k.code,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:k.flag}),jsxRuntime.jsx("span",{className:"flex-1",children:k.name}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:k.dialCode})]})},k.code))})]}),jsxRuntime.jsxs("div",{className:"relative flex-1",children:[u&&!m&&jsxRuntime.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:M.dialCode}),jsxRuntime.jsx("input",{ref:v,type:"tel",inputMode:"tel",value:C,onChange:S,onFocus:()=>h(true),onBlur:()=>h(false),disabled:c,placeholder:f??Rw(M.format),className:o(Ip({size:t}),m&&"rounded-l-none",u&&!m&&"pl-12",e),style:{borderColor:b?"var(--color-foreground)":void 0},...p})]})]})});Hp.displayName="PhoneInput";var zp=classVarianceAuthority.cva("flex items-center justify-between w-full px-4 py-3 border-b bg-background",{variants:{variant:{solid:"bg-primary text-primary-foreground border-primary",outline:"bg-background border-border",ghost:"bg-transparent border-transparent",soft:"bg-primary/10 border-primary/20",surface:"bg-muted border-border"},size:{sm:"h-12 px-3 py-2",md:"h-14 px-4 py-3",lg:"h-16 px-6 py-4"},sticky:{true:"sticky top-0 z-50",false:""}},defaultVariants:{variant:"outline",size:"md",sticky:false}}),Bp=K__namespace.forwardRef(({className:e,variant:t,size:r,sticky:a,brand:n,children:i,mobileBreakpoint:s="md",...l},d)=>{let[m,u]=K__namespace.useState(false),c={sm:"hidden sm:flex",md:"hidden md:flex",lg:"hidden lg:flex"}[s],f={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden"}[s];return jsxRuntime.jsxs("nav",{ref:d,className:o(zp({variant:t,size:r,sticky:a,className:e})),...l,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between w-full",children:[n&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:n}),jsxRuntime.jsx("div",{className:o("items-center gap-4 flex-1 justify-end",c),children:i}),jsxRuntime.jsx("button",{type:"button",className:o("p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors",f),onClick:()=>u(!m),"aria-label":m?"Close menu":"Open menu","aria-expanded":m,children:m?jsxRuntime.jsx(lucideReact.X,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"})})]}),m&&jsxRuntime.jsx("div",{className:o("absolute top-full left-0 right-0 flex flex-col gap-2 p-4 bg-background border-b border-border shadow-lg",f),children:i})]})});Bp.displayName="Navbar";var Fp=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex items-center gap-2 font-semibold text-lg",e),...t}));Fp.displayName="NavbarBrand";var Op=K__namespace.forwardRef(({className:e,justify:t="start",...r},a)=>{let n={start:"justify-start",center:"justify-center",end:"justify-end"}[t];return jsxRuntime.jsx("div",{ref:a,className:o("flex items-center gap-4",n,e),...r})});Op.displayName="NavbarContent";var Gp=K__namespace.forwardRef(({className:e,isActive:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex items-center",t&&"text-primary font-medium",e),...r}));Gp.displayName="NavbarItem";var Wp=K__namespace.forwardRef(({className:e,isActive:t,...r},a)=>jsxRuntime.jsx("a",{ref:a,className:o("text-sm font-medium transition-colors hover:text-primary",t?"text-primary":"text-muted-foreground",e),...r}));Wp.displayName="NavbarLink";var _p=classVarianceAuthority.cva("inline-flex items-center gap-1 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"text-primary-foreground bg-primary px-2 py-0.5 rounded hover:bg-primary/90",outline:"text-primary underline-offset-4 hover:underline",ghost:"text-foreground hover:text-primary",soft:"text-primary bg-primary/10 px-2 py-0.5 rounded hover:bg-primary/20",surface:"text-foreground bg-muted px-2 py-0.5 rounded hover:bg-muted/80"},size:{sm:"text-xs",md:"text-sm",lg:"text-base"},underline:{none:"",hover:"hover:underline underline-offset-4",always:"underline underline-offset-4"}},defaultVariants:{variant:"outline",size:"md",underline:"hover"}}),Kp=K__namespace.forwardRef(({className:e,variant:t,size:r,underline:a,isExternal:n,showExternalIcon:i=true,isDisabled:s,children:l,...d},m)=>{let u=n?{target:"_blank",rel:"noopener noreferrer"}:{};return jsxRuntime.jsxs("a",{ref:m,className:o(_p({variant:t,size:r,underline:a,className:e}),s&&"pointer-events-none opacity-50"),"aria-disabled":s,...u,...d,children:[l,n&&i&&jsxRuntime.jsx(lucideReact.ExternalLink,{className:"h-3 w-3 ml-0.5","aria-hidden":"true"})]})});Kp.displayName="Link";var Yp=classVarianceAuthority.cva("fixed z-50 transition-all duration-300",{variants:{position:{"bottom-right":"bottom-6 right-6","bottom-left":"bottom-6 left-6","bottom-center":"bottom-6 left-1/2 -translate-x-1/2"}},defaultVariants:{position:"bottom-right"}}),Up=K__namespace.forwardRef(({className:e,position:t,threshold:r=400,icon:a,behavior:n="smooth",variant:i="solid",color:s="default",size:l="md",radius:d="full",target:m,onVisibilityChange:u,onClick:c,...f},p)=>{let[v,y]=K__namespace.useState(false);K__namespace.useEffect(()=>{let R=m?.current||window,b=()=>{let P=(m?.current?m.current.scrollTop:window.scrollY||document.documentElement.scrollTop)>r;P!==v&&(y(P),u?.(P));};return R.addEventListener("scroll",b,{passive:true}),b(),()=>{R.removeEventListener("scroll",b);}},[r,m,v,u]);let g=R=>{m?.current?m.current.scrollTo({top:0,behavior:n}):window.scrollTo({top:0,behavior:n}),c?.(R);},x=l==="sm"?"h-4 w-4":l==="lg"?"h-6 w-6":"h-5 w-5";return jsxRuntime.jsx("div",{className:o(Yp({position:t}),v?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 translate-y-4 pointer-events-none",e),children:jsxRuntime.jsx($,{ref:p,type:"button",variant:i,color:s,size:"icon",radius:d,onClick:g,"aria-label":"Back to top",className:o("shadow-lg",l==="sm"&&"h-9 w-9",l==="md"&&"h-10 w-10",l==="lg"&&"h-12 w-12"),...f,children:a||jsxRuntime.jsx(lucideReact.ArrowUp,{className:x})})})});Up.displayName="BackTop";var Ew=U__namespace.Menu,Hw=U__namespace.Group,Aw=U__namespace.Portal,zw=U__namespace.Sub,Bw=U__namespace.RadioGroup,jp=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(U__namespace.Root,{ref:r,className:o("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",e),...t}));jp.displayName=U__namespace.Root.displayName;var Xp=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(U__namespace.Trigger,{ref:r,className:o("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e),...t}));Xp.displayName=U__namespace.Trigger.displayName;var qp=K__namespace.forwardRef(({className:e,inset:t,children:r,...a},n)=>jsxRuntime.jsxs(U__namespace.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),...a,children:[r,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}));qp.displayName=U__namespace.SubTrigger.displayName;var Zp=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(U__namespace.SubContent,{ref:r,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Zp.displayName=U__namespace.SubContent.displayName;var Jp=K__namespace.forwardRef(({className:e,align:t="start",alignOffset:r=-4,sideOffset:a=8,...n},i)=>jsxRuntime.jsx(U__namespace.Portal,{children:jsxRuntime.jsx(U__namespace.Content,{ref:i,align:t,alignOffset:r,sideOffset:a,className:o("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Jp.displayName=U__namespace.Content.displayName;var Qp=K__namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx(U__namespace.Item,{ref:a,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),...r}));Qp.displayName=U__namespace.Item.displayName;var ef=K__namespace.forwardRef(({className:e,children:t,checked:r,...a},n)=>jsxRuntime.jsxs(U__namespace.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:r,...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(U__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));ef.displayName=U__namespace.CheckboxItem.displayName;var tf=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsxs(U__namespace.RadioItem,{ref:a,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),...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(U__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));tf.displayName=U__namespace.RadioItem.displayName;var rf=K__namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx(U__namespace.Label,{ref:a,className:o("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));rf.displayName=U__namespace.Label.displayName;var af=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(U__namespace.Separator,{ref:r,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));af.displayName=U__namespace.Separator.displayName;var of=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});of.displayName="MenubarShortcut";var nf=classVarianceAuthority.cva("flex",{variants:{orientation:{horizontal:"flex-row items-center",vertical:"flex-col"},size:{sm:"gap-2",md:"gap-4",lg:"gap-6"}},defaultVariants:{orientation:"horizontal",size:"md"}}),sf=K__namespace.forwardRef(({className:e,orientation:t,size:r,currentStep:a=0,children:n,...i},s)=>{let l=K__namespace.Children.toArray(n);return jsxRuntime.jsx("div",{ref:s,className:o(nf({orientation:t,size:r,className:e})),...i,children:l.map((d,m)=>K__namespace.isValidElement(d)?K__namespace.cloneElement(d,{...d.props,stepNumber:m+1,status:d.props.status||(m<a?"completed":m===a?"current":"upcoming"),isLast:m===l.length-1,orientation:t,size:r}):d)})});sf.displayName="Steps";var lf=classVarianceAuthority.cva("flex items-center",{variants:{orientation:{horizontal:"flex-row",vertical:"flex-col items-start"},size:{sm:"gap-2",md:"gap-3",lg:"gap-4"}},defaultVariants:{orientation:"horizontal",size:"md"}}),Ow=classVarianceAuthority.cva("flex items-center justify-center rounded-full font-medium transition-colors",{variants:{status:{completed:"bg-primary text-primary-foreground",current:"bg-primary text-primary-foreground ring-2 ring-primary ring-offset-2 ring-offset-background",upcoming:"bg-muted text-muted-foreground border-2 border-muted-foreground/30"},size:{sm:"h-6 w-6 text-xs",md:"h-8 w-8 text-sm",lg:"h-10 w-10 text-base"}},defaultVariants:{status:"upcoming",size:"md"}}),Gw=classVarianceAuthority.cva("bg-muted transition-colors",{variants:{orientation:{horizontal:"h-0.5 flex-1 min-w-8",vertical:"w-0.5 min-h-8 ml-4"},status:{completed:"bg-primary",current:"bg-muted",upcoming:"bg-muted"}},defaultVariants:{orientation:"horizontal",status:"upcoming"}}),df=K__namespace.forwardRef(({className:e,orientation:t="horizontal",size:r="md",title:a,description:n,icon:i,status:s="upcoming",stepNumber:l,isLast:d,...m},u)=>jsxRuntime.jsxs("div",{ref:u,className:o(lf({orientation:t,size:r,className:e}),!d&&t==="horizontal"&&"flex-1"),...m,children:[jsxRuntime.jsx("div",{className:o("flex items-center",t==="vertical"&&"flex-col items-start"),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx("div",{className:o(Ow({status:s,size:r})),children:s==="completed"?jsxRuntime.jsx(lucideReact.Check,{className:r==="sm"?"h-3 w-3":r==="lg"?"h-5 w-5":"h-4 w-4"}):i||l}),(a||n)&&jsxRuntime.jsxs("div",{className:"flex flex-col",children:[a&&jsxRuntime.jsx("span",{className:o("font-medium",r==="sm"&&"text-sm",r==="lg"&&"text-lg",s==="upcoming"&&"text-muted-foreground"),children:a}),n&&jsxRuntime.jsx("span",{className:o("text-muted-foreground",r==="sm"&&"text-xs",r==="md"&&"text-sm",r==="lg"&&"text-base"),children:n})]})]})}),!d&&jsxRuntime.jsx("div",{className:o(Gw({orientation:t,status:s==="completed"?"completed":"upcoming"}),t==="vertical"&&"my-2")})]}));df.displayName="Step";function Uw({className:e,data:t,columns:r,selectable:a=false,selectedKeys:n,onSelectionChange:i,getRowKey:s=(h,P)=>String(P),sortable:l=false,sortState:d,onSortChange:m,paginated:u=false,pageSizeOptions:c=[10,20,50],paginationState:f,onPaginationChange:p,emptyContent:v="No data",loading:y=false,striped:g=false,hoverable:x=true,...R},b){let[h,P]=K__namespace.useState(new Set),[w,M]=K__namespace.useState({columnId:null,direction:null}),[C,S]=K__namespace.useState({pageIndex:0,pageSize:c[0]||10}),N=n??h,T=d??w,k=f??C,V=z=>{i?i(z):P(z);},E=z=>{m?m(z):M(z);},I=z=>{p?p(z):S(z);},D=K__namespace.useMemo(()=>{if(!T.columnId||!T.direction)return t;let z=r.find(F=>F.id===T.columnId);return z?[...t].sort((F,te)=>{let O=z.accessor(F),oe=z.accessor(te);if(O===oe)return 0;if(O==null)return 1;if(oe==null)return -1;let ee=String(O).localeCompare(String(oe),void 0,{numeric:true});return T.direction==="asc"?ee:-ee}):t},[t,T,r]),L=K__namespace.useMemo(()=>{if(!u)return D;let z=k.pageIndex*k.pageSize;return D.slice(z,z+k.pageSize)},[D,u,k]),A=Math.ceil(D.length/k.pageSize),B=z=>{if(z){let F=new Set(L.map((te,O)=>s(te,O)));V(F);}else V(new Set);},H=(z,F)=>{let te=new Set(N);F?te.add(z):te.delete(z),V(te);},j=L.length>0&&L.every((z,F)=>N.has(s(z,F))),W=L.some((z,F)=>N.has(s(z,F))),Le=z=>{if(!r.find(O=>O.id===z)?.sortable&&!l)return;let te="asc";T.columnId===z&&(T.direction==="asc"?te="desc":T.direction==="desc"&&(te=null)),E({columnId:te?z:null,direction:te});},xe=z=>T.columnId!==z?jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4 text-muted-foreground/50"}):T.direction==="asc"?jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"});return jsxRuntime.jsxs("div",{ref:b,className:o("w-full",e),...R,children:[jsxRuntime.jsx("div",{className:"relative w-full overflow-auto rounded-md border",children:jsxRuntime.jsxs("table",{className:"w-full caption-bottom text-sm",children:[jsxRuntime.jsx("thead",{className:"[&_tr]:border-b bg-muted/50",children:jsxRuntime.jsxs("tr",{children:[a&&jsxRuntime.jsx("th",{className:"h-12 w-12 px-4",children:jsxRuntime.jsx(yo,{checked:j?true:W?"indeterminate":false,onCheckedChange:B,"aria-label":"Select all"})}),r.map(z=>{let F=z.sortable??l;return jsxRuntime.jsx("th",{className:o("h-12 px-4 text-left align-middle font-medium text-muted-foreground",F&&"cursor-pointer select-none hover:text-foreground"),style:{width:z.width},onClick:()=>F&&Le(z.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[z.header,F&&xe(z.id)]})},z.id)})]})}),jsxRuntime.jsx("tbody",{className:"[&_tr:last-child]:border-0",children:y?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:r.length+(a?1:0),className:"h-24 text-center text-muted-foreground",children:"Loading..."})}):L.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:r.length+(a?1:0),className:"h-24 text-center text-muted-foreground",children:v})}):L.map((z,F)=>{let te=s(z,F),O=N.has(te);return jsxRuntime.jsxs("tr",{className:o("border-b transition-colors",x&&"hover:bg-muted/50",g&&F%2===1&&"bg-muted/30",O&&"bg-muted"),"data-state":O?"selected":void 0,children:[a&&jsxRuntime.jsx("td",{className:"w-12 px-4",children:jsxRuntime.jsx(yo,{checked:O,onCheckedChange:oe=>H(te,!!oe),"aria-label":`Select row ${F+1}`})}),r.map(oe=>jsxRuntime.jsx("td",{className:"p-4 align-middle",children:oe.cell?oe.cell(z,F):oe.accessor(z)},oe.id))]},te)})})]})}),u&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between px-2 py-4",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx("span",{children:"Rows per page:"}),jsxRuntime.jsx("select",{value:k.pageSize,onChange:z=>I({pageIndex:0,pageSize:Number(z.target.value)}),className:"h-8 rounded-md border bg-transparent px-2",children:c.map(z=>jsxRuntime.jsx("option",{value:z,children:z},z))})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground",children:["Page ",k.pageIndex+1," of ",A||1]}),jsxRuntime.jsxs("div",{className:"flex gap-1",children:[jsxRuntime.jsx("button",{onClick:()=>I({...k,pageIndex:k.pageIndex-1}),disabled:k.pageIndex===0,className:"inline-flex h-8 w-8 items-center justify-center rounded-md border bg-transparent hover:bg-muted disabled:opacity-50 disabled:pointer-events-none","aria-label":"Previous page",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{onClick:()=>I({...k,pageIndex:k.pageIndex+1}),disabled:k.pageIndex>=A-1,className:"inline-flex h-8 w-8 items-center justify-center rounded-md border bg-transparent hover:bg-muted disabled:opacity-50 disabled:pointer-events-none","aria-label":"Next page",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]})]})]})}var jw=K__namespace.forwardRef(Uw);var mf=classVarianceAuthority.cva("",{variants:{size:{sm:"[--tree-indent:12px] [--tree-item-height:28px] text-xs",md:"[--tree-indent:16px] [--tree-item-height:32px] text-sm",lg:"[--tree-indent:20px] [--tree-item-height:40px] text-base"}},defaultVariants:{size:"md"}}),uf=K__namespace.forwardRef(({className:e,size:t,data:r,defaultExpandedIds:a=[],expandedIds:n,onExpandedChange:i,selectedId:s,onSelect:l,showIcons:d=true,leafIcon:m=jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"}),folderIcon:u=jsxRuntime.jsx(lucideReact.Folder,{className:"h-4 w-4"}),folderOpenIcon:c=jsxRuntime.jsx(lucideReact.FolderOpen,{className:"h-4 w-4"}),defaultExpandAll:f=false,...p},v)=>{let y=K__namespace.useCallback(w=>w.reduce((M,C)=>C.children?.length?[...M,C.id,...y(C.children)]:M,[]),[]),[g,x]=K__namespace.useState(()=>f?y(r):a),R=n??g,b=w=>{i?i(w):x(w);},h=w=>{R.includes(w)?b(R.filter(M=>M!==w)):b([...R,w]);},P=(w,M=0)=>{let C=w.children&&w.children.length>0,S=R.includes(w.id),N=s===w.id,T=()=>{w.disabled||l?.(w);},k=E=>{E.stopPropagation(),C&&h(w.id);},V=()=>w.icon?w.icon:C?S?c:u:m;return jsxRuntime.jsxs("div",{role:"treeitem","aria-expanded":C?S:void 0,children:[jsxRuntime.jsxs("div",{className:o("flex items-center gap-1 rounded-md px-2 cursor-pointer transition-colors","h-[var(--tree-item-height)]","hover:bg-muted/50",N&&"bg-primary/10 text-primary",w.disabled&&"opacity-50 cursor-not-allowed"),style:{paddingLeft:`calc(${M} * var(--tree-indent) + 8px)`},onClick:T,children:[jsxRuntime.jsx("button",{type:"button",className:o("flex h-5 w-5 items-center justify-center rounded hover:bg-muted",!C&&"invisible"),onClick:k,tabIndex:-1,"aria-label":S?"Collapse":"Expand",children:S?jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})}),d&&jsxRuntime.jsx("span",{className:"flex-shrink-0 text-muted-foreground",children:V()}),jsxRuntime.jsx("span",{className:"truncate",children:w.name})]}),C&&S&&jsxRuntime.jsx("div",{role:"group",children:w.children.map(E=>P(E,M+1))})]},w.id)};return jsxRuntime.jsx("div",{ref:v,role:"tree",className:o(mf({size:t,className:e})),...p,children:r.map(w=>P(w))})});uf.displayName="TreeView";var ff=classVarianceAuthority.cva("flex rounded-md border border-input bg-background text-sm placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"},fullWidth:{true:"w-full",false:"w-fit min-w-48"}},defaultVariants:{size:"md",fullWidth:false}}),nN=({text:e,query:t})=>{if(!t)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let r=new RegExp(`(${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi"),a=e.split(r);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:a.map((n,i)=>r.test(n)?jsxRuntime.jsx("mark",{className:"bg-primary/20 text-foreground rounded-sm",children:n},i):jsxRuntime.jsx("span",{children:n},i))})},iN=(e,t)=>{let[r,a]=K__namespace.useState(e);return K__namespace.useEffect(()=>{let n=setTimeout(()=>{a(e);},t);return ()=>{clearTimeout(n);}},[e,t]),r},gf=K__namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a="",onChange:n,onSelect:i,options:s=[],loadOptions:l,debounceMs:d=300,minChars:m=0,placeholder:u="Type to search...",emptyText:c="No results found.",loadingText:f="Loading...",clearable:p=false,freeSolo:v=true,maxHeight:y=200,highlightMatch:g=true,fullWidth:x=false,disabled:R,...b},h)=>{let[P,w]=K__namespace.useState(false),[M,C]=K__namespace.useState(a),[S,N]=K__namespace.useState([]),[T,k]=K__namespace.useState(false),[V,E]=K__namespace.useState(false),I=K__namespace.useRef(null),D=r!==void 0?r:M,L=iN(D,d);K__namespace.useImperativeHandle(h,()=>I.current);let A=l?S:s,B=K__namespace.useMemo(()=>l?A:A.filter(ee=>ee.label.toLowerCase().includes(D.toLowerCase())),[A,D,l]);K__namespace.useEffect(()=>{if(!l)return;if(L.length<m){N([]);return}let ee=false;return (async()=>{k(true);try{let ot=await l(L);ee||N(ot);}catch{ee||N([]);}finally{ee||k(false);}})(),()=>{ee=true;}},[L,l,m]);let H=ee=>{r===void 0&&C(ee),n?.(ee);},j=ee=>{let at=ee.target.value;H(at),at.length>=m&&w(true);},W=ee=>{H(ee.label),i?.(ee),w(false);},Le=()=>{H(""),I.current?.focus();},xe=()=>{E(true),D.length>=m&&(B.length>0||T)&&w(true);},z=()=>{E(false);},F=ee=>{ee.key==="Escape"&&w(false),ee.key==="ArrowDown"&&!P&&B.length>0&&w(true);},te=P&&D.length>=m,O=t==="sm"?"h-3 w-3":t==="lg"?"h-5 w-5":"h-4 w-4",oe=p&&D?"pr-8":"pr-3";return jsxRuntime.jsxs(Ee,{open:te,onOpenChange:w,children:[jsxRuntime.jsx(ls,{asChild:true,children:jsxRuntime.jsxs("div",{className:o("relative",x?"w-full":"w-fit"),children:[jsxRuntime.jsx("input",{ref:I,type:"text",value:D,onChange:j,onFocus:xe,onBlur:z,onKeyDown:F,disabled:R,placeholder:u,className:o(ff({size:t,fullWidth:x}),oe,e),style:{borderColor:V?"var(--color-foreground)":void 0},role:"combobox","aria-expanded":te,"aria-autocomplete":"list","aria-controls":"autocomplete-list",...b}),p&&D&&!R&&jsxRuntime.jsx("button",{type:"button",onClick:Le,className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground","aria-label":"Clear",children:jsxRuntime.jsx(lucideReact.X,{className:O})})]})}),jsxRuntime.jsx(Me,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",onOpenAutoFocus:ee=>ee.preventDefault(),children:jsxRuntime.jsx(cmdk.Command,{className:"overflow-hidden rounded-md",shouldFilter:false,children:jsxRuntime.jsx(cmdk.Command.List,{id:"autocomplete-list",className:"overflow-y-auto p-1",style:{maxHeight:y},children:T?jsxRuntime.jsxs("div",{className:"flex items-center justify-center gap-2 py-6 text-sm text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:o(O,"animate-spin")}),f]}):B.length===0?jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:c}):B.map(ee=>jsxRuntime.jsxs(cmdk.Command.Item,{value:ee.value,disabled:ee.disabled,onSelect:()=>W(ee),className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground"),children:[jsxRuntime.jsx(lucideReact.Check,{className:o("mr-2 h-4 w-4 shrink-0",D===ee.label?"opacity-100":"opacity-0")}),jsxRuntime.jsx("span",{className:"flex-1",children:g?jsxRuntime.jsx(nN,{text:ee.label,query:D}):ee.label})]},ee.value))})})})]})});gf.displayName="Autocomplete";var $s=K__namespace.createContext(null),_s=K__namespace.createContext(null),Ks=()=>{let e=K__namespace.useContext($s);if(!e)throw new Error("useFormContext must be used within a Form");return e},qn=()=>{let e=K__namespace.useContext(_s);if(!e)throw new Error("useFieldContext must be used within a FormField");return e},sN={required:(e="This field is required")=>({validate:t=>typeof t=="string"?t.trim().length>0:Array.isArray(t)?t.length>0:t!=null,message:e}),minLength:(e,t)=>({validate:r=>typeof r=="string"&&r.length>=e,message:t??`Must be at least ${e} characters`}),maxLength:(e,t)=>({validate:r=>typeof r=="string"&&r.length<=e,message:t??`Must be at most ${e} characters`}),min:(e,t)=>({validate:r=>typeof r=="number"&&r>=e,message:t??`Must be at least ${e}`}),max:(e,t)=>({validate:r=>typeof r=="number"&&r<=e,message:t??`Must be at most ${e}`}),email:(e="Invalid email address")=>({validate:t=>typeof t=="string"&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t),message:e}),pattern:(e,t="Invalid format")=>({validate:r=>typeof r=="string"&&e.test(r),message:t}),custom:(e,t)=>({validate:e,message:t})},bf=K__namespace.forwardRef(({defaultValues:e={},onSubmit:t,onError:r,validateOnBlur:a=true,validateOnChange:n=false,children:i,className:s,...l},d)=>{let[m,u]=K__namespace.useState(e),[c,f]=K__namespace.useState({}),[p,v]=K__namespace.useState({}),[y,g]=K__namespace.useState({}),[x,R]=K__namespace.useState(false),b=K__namespace.useRef(new Map),h=K__namespace.useCallback((I,D)=>{b.current.set(I,D);},[]),P=K__namespace.useCallback(I=>{b.current.delete(I);},[]),w=K__namespace.useCallback(I=>{let D=b.current.get(I)||[],L=m[I];for(let A of D)if(!A.validate(L))return f(B=>({...B,[I]:A.message})),false;return f(A=>({...A,[I]:null})),true},[m]),M=K__namespace.useCallback(()=>{let I=true,D={};return b.current.forEach((L,A)=>{let B=m[A];for(let H of L)if(!H.validate(B)){D[A]=H.message,I=false;break}D[A]||(D[A]=null);}),f(D),I},[m]),C=K__namespace.useCallback((I,D)=>{u(L=>({...L,[I]:D})),g(L=>({...L,[I]:true})),n&&setTimeout(()=>{w(I);},0);},[n,w]),S=K__namespace.useCallback((I,D)=>{f(L=>({...L,[I]:D}));},[]),N=K__namespace.useCallback((I,D)=>{v(L=>({...L,[I]:D})),D&&a&&w(I);},[a,w]),T=K__namespace.useCallback(I=>({value:m[I],error:c[I]??null,touched:p[I]??false,dirty:y[I]??false}),[m,c,p,y]),k=K__namespace.useCallback(()=>{u(e),f({}),v({}),g({});},[e]),V=async I=>{I.preventDefault();let D={};if(b.current.forEach((A,B)=>{D[B]=true;}),v(D),!M()){r?.(c);return}if(t){R(true);try{await t(m);}finally{R(false);}}},E={values:m,errors:c,touched:p,dirty:y,isSubmitting:x,setValue:C,setError:S,setTouched:N,validateField:w,validateAll:M,registerField:h,unregisterField:P,getFieldState:T,reset:k};return jsxRuntime.jsx($s.Provider,{value:E,children:jsxRuntime.jsx("form",{ref:d,onSubmit:V,className:o("space-y-4",s),...l,children:i})})});bf.displayName="Form";var vf=({name:e,rules:t=[],defaultValue:r,children:a})=>{let n=Ks(),i=K__namespace.useId();K__namespace.useEffect(()=>(n.registerField(e,t),r!==void 0&&n.values[e]===void 0&&n.setValue(e,r),()=>{n.unregisterField(e);}),[e,t,r,n]);let s=n.getFieldState(e),l={name:e,id:`${i}-${e}`,value:s.value,error:s.error,touched:s.touched,dirty:s.dirty};return jsxRuntime.jsx(_s.Provider,{value:l,children:a})};vf.displayName="FormField";var hf=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("space-y-1.5",e),...t}));hf.displayName="FormItem";var xf=K__namespace.forwardRef(({className:e,required:t,children:r,...a},n)=>{let{id:i,error:s,touched:l}=qn();return jsxRuntime.jsxs(ea,{ref:n,htmlFor:i,className:o(s&&l&&"text-danger",e),...a,children:[r,t&&jsxRuntime.jsx("span",{className:"ml-1 text-danger",children:"*"})]})});xf.displayName="FormLabel";var yf=({children:e})=>{let{name:t,id:r,error:a,touched:n}=qn(),i=Ks(),s=i.getFieldState(t),l=m=>{let u=m.target,c=u.type==="checkbox"?u.checked:u.value;i.setValue(t,c);},d=()=>{i.setTouched(t,true);};return K__namespace.cloneElement(e,{id:r,name:t,value:s.value??"",onChange:l,onBlur:d,"aria-invalid":a&&n?"true":void 0,"aria-describedby":a&&n?`${r}-error`:void 0})};yf.displayName="FormControl";var Rf=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("p",{ref:r,className:o("text-xs text-muted-foreground",e),...t}));Rf.displayName="FormDescription";var wf=K__namespace.forwardRef(({className:e,message:t,...r},a)=>{let{id:n,error:i,touched:s}=qn(),l=t??(s?i:null);return l?jsxRuntime.jsx("p",{ref:a,id:`${n}-error`,className:o("text-xs text-danger",e),role:"alert",...r,children:l}):null});wf.displayName="FormMessage";var Pf=classVarianceAuthority.cva("inline-flex items-center gap-3",{variants:{size:{sm:"[&_[data-user-avatar]]:h-8 [&_[data-user-avatar]]:w-8",md:"[&_[data-user-avatar]]:h-10 [&_[data-user-avatar]]:w-10",lg:"[&_[data-user-avatar]]:h-12 [&_[data-user-avatar]]:w-12"}},defaultVariants:{size:"md"}}),Cf=K__namespace.forwardRef(({className:e,size:t,name:r,description:a,avatarUrl:n,avatarFallback:i,trailing:s,...l},d)=>{let m=i||r.split(" ").map(u=>u[0]).join("").toUpperCase().slice(0,2);return jsxRuntime.jsxs("div",{ref:d,className:o(Pf({size:t,className:e})),...l,children:[jsxRuntime.jsxs(ta,{"data-user-avatar":true,children:[n&&jsxRuntime.jsx(Ea,{src:n,alt:r}),jsxRuntime.jsx(ra,{children:m})]}),jsxRuntime.jsxs("div",{className:"flex flex-col min-w-0",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium leading-none truncate",children:r}),a&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground truncate",children:a})]}),s&&jsxRuntime.jsx("div",{className:"ml-auto flex-shrink-0",children:s})]})});Cf.displayName="User";var Mf=classVarianceAuthority.cva("font-mono rounded",{variants:{variant:{solid:"bg-primary text-primary-foreground",outline:"border border-input bg-transparent",ghost:"bg-transparent",soft:"bg-muted text-foreground",surface:"bg-muted/50 text-foreground border border-border"},size:{sm:"px-1 py-0.5 text-xs",md:"px-1.5 py-0.5 text-sm",lg:"px-2 py-1 text-base"}},defaultVariants:{variant:"soft",size:"md"}}),Tf=K__namespace.forwardRef(({className:e,variant:t,size:r,...a},n)=>jsxRuntime.jsx("code",{ref:n,className:o(Mf({variant:t,size:r,className:e})),...a}));Tf.displayName="Code";var kf=classVarianceAuthority.cva("relative flex items-center gap-2 font-mono rounded-lg border",{variants:{variant:{solid:"bg-primary text-primary-foreground border-primary",outline:"bg-transparent border-input",ghost:"bg-transparent border-transparent",soft:"bg-muted border-muted",surface:"bg-muted/50 border-border"},size:{sm:"px-3 py-1.5 text-xs",md:"px-4 py-2 text-sm",lg:"px-5 py-3 text-base"}},defaultVariants:{variant:"surface",size:"md"}}),Df=K__namespace.forwardRef(({className:e,variant:t,size:r,code:a,copyable:n=true,copyLabel:i="Copy",onCopy:s,symbol:l="$",hideSymbol:d=false,...m},u)=>{let[c,f]=K__namespace.useState(false),p=async()=>{try{await navigator.clipboard.writeText(a),f(!0),s?.(),setTimeout(()=>f(!1),2e3);}catch(v){console.error("Failed to copy:",v);}};return jsxRuntime.jsxs("div",{ref:u,className:o(kf({variant:t,size:r,className:e})),...m,children:[!d&&jsxRuntime.jsx("span",{className:"text-muted-foreground select-none",children:l}),jsxRuntime.jsx("code",{className:"flex-1 truncate",children:a}),n&&jsxRuntime.jsx("button",{type:"button",onClick:p,className:o("flex-shrink-0 rounded p-1 transition-colors","hover:bg-black/10 dark:hover:bg-white/10","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),"aria-label":c?"Copied":i,children:c?jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4 text-green-500"}):jsxRuntime.jsx(lucideReact.Copy,{className:"h-4 w-4 text-muted-foreground"})})]})});Df.displayName="Snippet";var js=classVarianceAuthority.cva("overflow-hidden",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),Vf=K__namespace.forwardRef(({className:e,radius:t,src:r,alt:a,fallback:n,showSkeleton:i=true,onLoad:s,onError:l,fit:d="cover",aspectRatio:m,style:u,...c},f)=>{let[p,v]=K__namespace.useState("loading");K__namespace.useEffect(()=>{r&&v("loading");},[r]);let y=()=>{v("loaded"),s?.();},g=()=>{v("error"),l?.();},x={contain:"object-contain",cover:"object-cover",fill:"object-fill",none:"object-none","scale-down":"object-scale-down"}[d];return p==="error"&&n?jsxRuntime.jsx("div",{className:o(js({radius:t}),"flex items-center justify-center bg-muted",e),style:{aspectRatio:m,...u},children:n}):jsxRuntime.jsxs("div",{className:o(js({radius:t}),"relative",e),style:{aspectRatio:m,...u},children:[p==="loading"&&i&&jsxRuntime.jsx(hn,{className:"absolute inset-0 h-full w-full"}),jsxRuntime.jsx("img",{ref:f,src:r,alt:a,onLoad:y,onError:g,className:o("h-full w-full transition-opacity duration-300",x,p==="loading"?"opacity-0":"opacity-100"),...c})]})});Vf.displayName="Image";var Ef=classVarianceAuthority.cva("flex flex-col rounded-lg border bg-background",{variants:{size:{sm:"p-1 gap-0.5",md:"p-1.5 gap-1",lg:"p-2 gap-1.5"}},defaultVariants:{size:"md"}}),Hf=classVarianceAuthority.cva("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",{variants:{size:{sm:"px-2 py-1 text-xs",md:"px-3 py-1.5 text-sm",lg:"px-4 py-2 text-base"}},defaultVariants:{size:"md"}}),Af=K__namespace.createContext({value:"",onValueChange:()=>{},multiple:false,size:"md"}),zf=K__namespace.forwardRef(({className:e,size:t="md",value:r,defaultValue:a="",onValueChange:n,multiple:i=false,children:s,...l},d)=>{let[m,u]=K__namespace.useState(a),c=r??m,f=p=>{let v;if(i){let y=Array.isArray(c)?c:[c].filter(Boolean);y.includes(p)?v=y.filter(g=>g!==p):v=[...y,p];}else v=p;n?n(v):u(v);};return jsxRuntime.jsx(Af.Provider,{value:{value:c,onValueChange:f,multiple:i,size:t??"md"},children:jsxRuntime.jsx("div",{ref:d,role:"listbox","aria-multiselectable":i,className:o(Ef({size:t,className:e})),...l,children:s})})});zf.displayName="Listbox";var Bf=K__namespace.forwardRef(({className:e,value:t,disabled:r,icon:a,description:n,children:i,...s},l)=>{let{value:d,onValueChange:m,multiple:u,size:c}=K__namespace.useContext(Af),f=u?Array.isArray(d)&&d.includes(t):d===t,p=()=>{r||m(t);},v=y=>{(y.key==="Enter"||y.key===" ")&&!r&&(y.preventDefault(),m(t));};return jsxRuntime.jsxs("div",{ref:l,role:"option","aria-selected":f,"data-disabled":r?"":void 0,tabIndex:r?-1:0,className:o(Hf({size:c}),f&&"bg-accent text-accent-foreground",e),onClick:p,onKeyDown:v,...s,children:[a&&jsxRuntime.jsx("span",{className:"mr-2 flex-shrink-0",children:a}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:i}),n&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:n})]}),f&&jsxRuntime.jsx(lucideReact.Check,{className:"ml-2 h-4 w-4 flex-shrink-0"})]})});Bf.displayName="ListboxItem";var Of=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"gap-2",bordered:"divide-y divide-border rounded-lg border",cards:"gap-2"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),Gf=classVarianceAuthority.cva("flex items-center gap-3 bg-background transition-all",{variants:{variant:{default:"rounded-lg border p-3",bordered:"p-3",cards:"rounded-lg border p-3 shadow-sm"},size:{sm:"p-2 text-sm",md:"p-3 text-sm",lg:"p-4 text-base"},isDragging:{true:"opacity-50 scale-[1.02] shadow-lg z-10",false:""},isDragOver:{true:"border-primary border-dashed",false:""}},defaultVariants:{variant:"default",size:"md",isDragging:false,isDragOver:false}});function yN({className:e,variant:t,size:r,items:a,onReorder:n,renderItem:i,showHandle:s=true,disabled:l=false,...d},m){let[u,c]=K__namespace.useState(null),[f,p]=K__namespace.useState(null),v=(b,h)=>{l||(c(h),b.dataTransfer.effectAllowed="move",b.dataTransfer.setData("text/plain",String(h)));},y=(b,h)=>{b.preventDefault(),!(l||u===null||u===h)&&p(h);},g=()=>{p(null);},x=(b,h)=>{if(b.preventDefault(),l||u===null||u===h){c(null),p(null);return}let P=[...a],[w]=P.splice(u,1);P.splice(h,0,w),n?.(P),c(null),p(null);},R=()=>{c(null),p(null);};return jsxRuntime.jsx("div",{ref:m,className:o(Of({variant:t,size:r,className:e})),...d,children:a.map((b,h)=>jsxRuntime.jsxs("div",{draggable:!l,onDragStart:P=>v(P,h),onDragOver:P=>y(P,h),onDragLeave:g,onDrop:P=>x(P,h),onDragEnd:R,className:o(Gf({variant:t,size:r,isDragging:u===h,isDragOver:f===h}),!l&&"cursor-move"),children:[s&&jsxRuntime.jsx("div",{className:o("flex-shrink-0 text-muted-foreground",l?"opacity-30":"cursor-grab active:cursor-grabbing"),children:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-5 w-5"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:i(b,h)})]},b.id))})}var RN=K__namespace.forwardRef(yN);var _f=classVarianceAuthority.cva("absolute inset-0 z-50 flex items-center justify-center transition-opacity",{variants:{variant:{solid:"bg-background",soft:"bg-background/80 backdrop-blur-sm",ghost:"bg-background/50"},visible:{true:"opacity-100 pointer-events-auto",false:"opacity-0 pointer-events-none"}},defaultVariants:{variant:"soft",visible:true}}),CN={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},Kf=K__namespace.forwardRef(({className:e,variant:t,loading:r=true,size:a="md",spinner:n,text:i,children:s,...l},d)=>jsxRuntime.jsxs("div",{ref:d,className:o("relative",e),...l,children:[s,jsxRuntime.jsx("div",{className:o(_f({variant:t,visible:r})),"aria-hidden":!r,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[n||jsxRuntime.jsx(lucideReact.Loader2,{className:o(CN[a],"animate-spin text-primary")}),i&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:i})]})})]}));Kf.displayName="LoadingOverlay";var Yf=classVarianceAuthority.cva("fixed top-0 left-0 z-[9999] h-0.5 transition-all duration-200 ease-out",{variants:{color:{primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",warning:"bg-warning",danger:"bg-danger",info:"bg-info"}},defaultVariants:{color:"primary"}}),Uf=K__namespace.forwardRef(({className:e,color:t,isLoading:r=false,progress:a,showSpinner:n=false,...i},s)=>{let[l,d]=K__namespace.useState(0),[m,u]=K__namespace.useState(false),c=K__namespace.useRef(null);return K__namespace.useEffect(()=>{if(a!==void 0){d(a),u(a>0&&a<100);return}return r?(u(true),d(10),c.current=setInterval(()=>{d(f=>{if(f>=90)return f;let p=Math.random()*10;return Math.min(f+p,90)});},500)):l>0&&(d(100),setTimeout(()=>{u(false),d(0);},200)),()=>{c.current&&clearInterval(c.current);}},[r,a]),!m&&a===void 0||a!==void 0&&(a<=0||a>=100)?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{ref:s,className:o(Yf({color:t,className:e})),style:{width:`${l}%`},role:"progressbar","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100,...i,children:jsxRuntime.jsx("div",{className:"absolute right-0 h-full w-24 -translate-y-1 rotate-3 bg-inherit opacity-50 blur-sm"})}),n&&m&&jsxRuntime.jsx("div",{className:"fixed top-4 right-4 z-[9999]",children:jsxRuntime.jsx("div",{className:o("h-4 w-4 animate-spin rounded-full border-2 border-transparent",t==="primary"&&"border-t-primary",t==="secondary"&&"border-t-secondary",t==="success"&&"border-t-success",t==="warning"&&"border-t-warning",t==="danger"&&"border-t-danger",t==="info"&&"border-t-info")})})]})});Uf.displayName="NProgress";var Zf=classVarianceAuthority.cva("flex items-center justify-center",{variants:{variant:{spinner:"",dots:"",pulse:"",skeleton:""},size:{sm:"gap-1",md:"gap-2",lg:"gap-3"},fullScreen:{true:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm",false:""}},defaultVariants:{variant:"spinner",size:"md",fullScreen:false}}),jf={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},VN={sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-3 w-3"},Jf=K__namespace.forwardRef(({className:e,variant:t="spinner",size:r="md",fullScreen:a,text:n,color:i="primary",...s},l)=>{let d={primary:"text-primary",secondary:"text-secondary",muted:"text-muted-foreground"}[i],m=()=>{switch(t){case "dots":return jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:[0,1,2].map(u=>jsxRuntime.jsx("div",{className:o(VN[r||"md"],"animate-bounce rounded-full bg-current",d),style:{animationDelay:`${u*.15}s`}},u))});case "pulse":return jsxRuntime.jsx("div",{className:o(jf[r||"md"],"animate-pulse rounded-full bg-current",d)});case "skeleton":return jsxRuntime.jsxs("div",{className:"w-full space-y-2",children:[jsxRuntime.jsx("div",{className:"h-4 w-3/4 animate-pulse rounded bg-muted"}),jsxRuntime.jsx("div",{className:"h-4 w-1/2 animate-pulse rounded bg-muted"}),jsxRuntime.jsx("div",{className:"h-4 w-5/6 animate-pulse rounded bg-muted"})]});default:return jsxRuntime.jsx(lucideReact.Loader2,{className:o(jf[r||"md"],"animate-spin",d)})}};return jsxRuntime.jsx("div",{ref:l,className:o(Zf({variant:t,size:r,fullScreen:a,className:e})),role:"status","aria-label":n||"Loading",...s,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[m(),n&&jsxRuntime.jsx("span",{className:o("text-sm",d),children:n})]})})});Jf.displayName="Loading";var Zs=class extends K__namespace.Component{constructor(t){super(t),this.state={hasError:false,error:null};}static getDerivedStateFromError(t){return {hasError:true,error:t}}componentDidCatch(t,r){this.props.onError?.(t,r);}componentDidUpdate(t){this.state.hasError&&this.props.resetKeys&&this.props.resetKeys.some((a,n)=>a!==t.resetKeys?.[n])&&this.reset();}reset=()=>{this.props.onReset?.(),this.setState({hasError:false,error:null});};render(){return this.state.hasError?this.props.fallback?this.props.fallback:jsxRuntime.jsx(Js,{error:this.state.error,onReset:this.reset}):this.props.children}},Js=K__namespace.forwardRef(({error:e,onReset:t,className:r},a)=>jsxRuntime.jsxs("div",{ref:a,className:o("flex min-h-[200px] flex-col items-center justify-center gap-4 rounded-lg border border-danger/20 bg-danger/5 p-6 text-center",r),role:"alert",children:[jsxRuntime.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-danger/10",children:jsxRuntime.jsx(lucideReact.AlertTriangle,{className:"h-6 w-6 text-danger"})}),jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"Something went wrong"}),e&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground max-w-md",children:e.message||"An unexpected error occurred"})]}),t&&jsxRuntime.jsxs("button",{onClick:t,className:"inline-flex items-center gap-2 rounded-md bg-danger px-4 py-2 text-sm font-medium text-danger-foreground hover:bg-danger/90 transition-colors",children:[jsxRuntime.jsx(lucideReact.RefreshCw,{className:"h-4 w-4"}),"Try again"]})]}));Js.displayName="DefaultErrorFallback";var EN=Zs;var eg=K__namespace.forwardRef(({value:e,defaultValue:t,onValueChange:r,placeholder:a="Pick a date range",dateFormat:n="LLL dd, y",disabled:i=false,minDate:s,maxDate:l,numberOfMonths:d=2,className:m,align:u="start"},c)=>{let[f,p]=K__namespace.useState(false),[v,y]=K__namespace.useState(t),g=e!==void 0,x=g?e:v,R=h=>{g||y(h),r?.(h);},b=h=>{if(!h)return a;let{from:P,to:w}=h;return P&&w?`${dateFns.format(P,n)} - ${dateFns.format(w,n)}`:P?dateFns.format(P,n):a};return jsxRuntime.jsxs(Ee,{open:f,onOpenChange:p,children:[jsxRuntime.jsx($e,{asChild:true,children:jsxRuntime.jsxs($,{ref:c,variant:"bordered",disabled:i,className:o("w-full justify-start text-left font-normal",!x?.from&&"text-muted-foreground",m),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),b(x)]})}),jsxRuntime.jsx(Me,{className:"w-auto p-0",align:u,children:jsxRuntime.jsx(Fa,{mode:"range",defaultMonth:x?.from,selected:x,onSelect:R,numberOfMonths:d,disabled:h=>!!(s&&h<s||l&&h>l),initialFocus:true})})]})});eg.displayName="DateRangePicker";var Qa=e=>String(e).padStart(2,"0"),tg=K__namespace.forwardRef(({value:e,onValueChange:t,placeholder:r="Pick a time",use24Hour:a=true,minuteStep:n=1,disabled:i=false,className:s},l)=>{let[d,m]=K__namespace.useState(false),u=a?Array.from({length:24},(b,h)=>h):Array.from({length:12},(b,h)=>h+1),c=Array.from({length:Math.floor(60/n)},(b,h)=>h*n),f=b=>{if(!b)return r;if(a)return `${Qa(b.hours)}:${Qa(b.minutes)}`;let h=b.hours%12||12,P=b.hours>=12?"PM":"AM";return `${Qa(h)}:${Qa(b.minutes)} ${P}`},p=b=>{let h=e?.minutes??0,P=b;if(!a&&e){let w=e.hours>=12;w&&b!==12?P=b+12:!w&&b===12&&(P=0);}t?.({hours:P,minutes:h});},v=b=>{let h=e?.hours??0;t?.({hours:h,minutes:b});},y=b=>{if(!e)return;let h=e.hours;b==="AM"&&e.hours>=12?h=e.hours-12:b==="PM"&&e.hours<12&&(h=e.hours+12),t?.({hours:h,minutes:e.minutes});},g=()=>{let b=new Date;t?.({hours:b.getHours(),minutes:b.getMinutes()});},x=e?e.hours>=12?"PM":"AM":void 0,R=e?a?e.hours:e.hours%12||12:void 0;return jsxRuntime.jsxs(Ee,{open:d,onOpenChange:m,children:[jsxRuntime.jsx($e,{asChild:true,children:jsxRuntime.jsxs($,{ref:l,variant:"bordered",disabled:i,className:o("w-full justify-start text-left font-normal",!e&&"text-muted-foreground",s),children:[jsxRuntime.jsx(lucideReact.Clock,{className:"mr-2 h-4 w-4"}),f(e)]})}),jsxRuntime.jsxs(Me,{className:"w-auto p-0",align:"start",children:[jsxRuntime.jsxs("div",{className:"flex",children:[jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsx("div",{className:"border-b px-3 py-2 text-center text-xs font-medium text-muted-foreground",children:"Hour"}),jsxRuntime.jsx(ze,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:u.map(b=>jsxRuntime.jsx($,{variant:R===b?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>p(b),children:Qa(b)},b))})})]}),jsxRuntime.jsxs("div",{className:"flex flex-col border-l",children:[jsxRuntime.jsx("div",{className:"border-b px-3 py-2 text-center text-xs font-medium text-muted-foreground",children:"Min"}),jsxRuntime.jsx(ze,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:c.map(b=>jsxRuntime.jsx($,{variant:e?.minutes===b?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>v(b),children:Qa(b)},b))})})]}),!a&&jsxRuntime.jsxs("div",{className:"flex flex-col border-l",children:[jsxRuntime.jsx("div",{className:"border-b px-3 py-2 text-center text-xs font-medium text-muted-foreground",children:"\xA0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 p-1",children:[jsxRuntime.jsx($,{variant:x==="AM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>y("AM"),children:"AM"}),jsxRuntime.jsx($,{variant:x==="PM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>y("PM"),children:"PM"})]})]})]}),jsxRuntime.jsxs("div",{className:"flex justify-between border-t p-2",children:[jsxRuntime.jsx($,{variant:"ghost",size:"sm",onClick:g,children:"Now"}),jsxRuntime.jsx($,{size:"sm",onClick:()=>m(false),children:"Done"})]})]})]})});tg.displayName="TimePicker";var rg=classVarianceAuthority.cva("overflow-auto",{variants:{variant:{default:"",bordered:"border rounded-lg",cards:""}},defaultVariants:{variant:"default"}});function BN({className:e,variant:t,items:r,itemHeight:a,height:n,overscan:i=3,renderItem:s,getItemKey:l,gap:d=0,onScrollChange:m,...u},c){let f=K__namespace.useRef(null),[p,v]=K__namespace.useState(0);K__namespace.useImperativeHandle(c,()=>f.current);let y=r.length*(a+d)-d,g=a+d,x=Math.max(0,Math.floor(p/g)-i),R=Math.ceil(n/g)+2*i,b=Math.min(r.length-1,x+R),h=w=>{let M=w.currentTarget.scrollTop;v(M),m?.(M);},P=K__namespace.useMemo(()=>{let w=[];for(let M=x;M<=b;M++)r[M]!==void 0&&w.push({item:r[M],index:M,style:{position:"absolute",top:M*g,left:0,right:0,height:a}});return w},[r,x,b,g,a]);return jsxRuntime.jsx("div",{ref:f,className:o(rg({variant:t,className:e})),style:{height:n,position:"relative"},onScroll:h,...u,children:jsxRuntime.jsx("div",{style:{height:y,position:"relative"},children:P.map(({item:w,index:M,style:C})=>jsxRuntime.jsx("div",{style:C,children:s(w,M)},l?l(w,M):M))})})}var FN=K__namespace.forwardRef(BN);var og=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"border rounded-lg overflow-hidden"}},defaultVariants:{variant:"default"}}),tl=classVarianceAuthority.cva("flex items-center justify-center py-4",{variants:{size:{sm:"py-2",md:"py-4",lg:"py-6"}},defaultVariants:{size:"md"}}),ng=K__namespace.forwardRef(({className:e,variant:t,size:r,children:a,onLoadMore:n,hasMore:i,isLoading:s=false,loader:l,threshold:d=100,rootMargin:m,useWindow:u=false,endMessage:c,...f},p)=>{let v=K__namespace.useRef(null),y=K__namespace.useRef(null),g=K__namespace.useRef(false);K__namespace.useImperativeHandle(p,()=>v.current),K__namespace.useEffect(()=>{let R=y.current;if(!R)return;let b=new IntersectionObserver(h=>{let[P]=h;P.isIntersecting&&i&&!s&&!g.current&&(g.current=true,Promise.resolve(n()).finally(()=>{g.current=false;}));},{root:u?null:v.current,rootMargin:m||`${d}px`,threshold:0});return b.observe(R),()=>{b.disconnect();}},[i,s,n,d,m,u]);let x=jsxRuntime.jsx("div",{className:o(tl({size:r})),children:jsxRuntime.jsx(lucideReact.Loader2,{className:"h-6 w-6 animate-spin text-muted-foreground"})});return jsxRuntime.jsxs("div",{ref:v,className:o(og({variant:t,className:e})),...f,children:[a,jsxRuntime.jsx("div",{ref:y,className:"h-px w-full"}),s&&(l||x),!i&&!s&&c&&jsxRuntime.jsx("div",{className:o(tl({size:r}),"text-muted-foreground text-sm"),children:c})]})});ng.displayName="InfiniteScroll";var _o=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(sg__namespace.Root,{ref:r,className:o(e),...t}));_o.displayName="VisuallyHidden";var $N={opaque:"bg-black/80",blur:"bg-black/50 backdrop-blur-sm",transparent:"bg-transparent"},_N={auto:"top-[50%] translate-y-[-50%]",center:"top-[50%] translate-y-[-50%]",top:"top-4 translate-y-0",bottom:"top-auto bottom-4 translate-y-0","top-center":"top-[20%] translate-y-0","bottom-center":"top-auto bottom-[20%] translate-y-0"},dg=classVarianceAuthority.cva("fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"),al=classVarianceAuthority.cva("fixed left-[50%] z-50 grid translate-x-[-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 sm:rounded-lg",{variants:{size:{xs:"w-full max-w-xs",sm:"w-full max-w-sm",md:"w-full max-w-md",lg:"w-full max-w-lg",xl:"w-full max-w-xl","2xl":"w-full max-w-2xl","3xl":"w-full max-w-3xl","4xl":"w-full max-w-4xl","5xl":"w-full max-w-5xl",full:"w-[calc(100vw-2rem)] h-[calc(100vh-2rem)] max-w-none"}},defaultVariants:{size:"md"}}),cg=K__namespace.createContext({scrollBehavior:"inside"}),KN=()=>K__namespace.useContext(cg),mg=K__namespace.forwardRef(({open:e,onOpenChange:t,trigger:r,title:a="Modal",children:n,hideCloseButton:i=false,isDismissable:s=true,isKeyboardDismissDisabled:l=false,backdrop:d="opaque",placement:m="center",scrollBehavior:u="inside",size:c,className:f},p)=>jsxRuntime.jsx(cg.Provider,{value:{scrollBehavior:u},children:jsxRuntime.jsxs(ie__namespace.Root,{open:e,onOpenChange:t,children:[r&&jsxRuntime.jsx(ie__namespace.Trigger,{asChild:true,children:r}),jsxRuntime.jsxs(ie__namespace.Portal,{children:[jsxRuntime.jsx(ie__namespace.Overlay,{className:o(dg(),$N[d],u==="outside"&&"overflow-y-auto flex items-start justify-center py-4"),children:u==="outside"?jsxRuntime.jsxs(ie__namespace.Content,{ref:p,className:o("relative z-50 grid gap-4 border bg-background p-6 shadow-lg sm:rounded-lg dark:border-0",c==="xs"&&"w-full max-w-xs",c==="sm"&&"w-full max-w-sm",c==="md"&&"w-full max-w-md",c==="lg"&&"w-full max-w-lg",c==="xl"&&"w-full max-w-xl",c==="2xl"&&"w-full max-w-2xl",c==="3xl"&&"w-full max-w-3xl",c==="4xl"&&"w-full max-w-4xl",c==="5xl"&&"w-full max-w-5xl",c==="full"&&"w-[calc(100vw-2rem)] min-h-[calc(100vh-2rem)]",!c&&"w-full max-w-md",f),onEscapeKeyDown:l?v=>v.preventDefault():void 0,onPointerDownOutside:s?void 0:v=>v.preventDefault(),children:[jsxRuntime.jsx(_o,{children:jsxRuntime.jsx(ie__namespace.Title,{children:a})}),n,!i&&jsxRuntime.jsx(ie__namespace.Close,{asChild:true,children:jsxRuntime.jsxs($,{variant:"light",size:"icon",radius:"full",className:"absolute right-2 top-2 h-8 w-8",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})})]}):null}),u==="inside"&&jsxRuntime.jsxs(ie__namespace.Content,{ref:p,className:o(al({size:c}),_N[m],"dark:border-0 max-h-[calc(100vh-2rem)] !flex !flex-col overflow-hidden gap-4",f),onEscapeKeyDown:l?v=>v.preventDefault():void 0,onPointerDownOutside:s?void 0:v=>v.preventDefault(),children:[jsxRuntime.jsx(_o,{children:jsxRuntime.jsx(ie__namespace.Title,{children:a})}),n,!i&&jsxRuntime.jsx(ie__namespace.Close,{asChild:true,children:jsxRuntime.jsxs($,{variant:"light",size:"icon",radius:"full",className:"absolute right-2 top-2 h-8 w-8",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})]})}));mg.displayName="Modal";var YN=ie__namespace.Root,UN=ie__namespace.Trigger,ug=ie__namespace.Portal,jN=ie__namespace.Close,ol=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ie__namespace.Overlay,{ref:r,className:o(dg(),e),...t}));ol.displayName="ModalOverlay";var pg=K__namespace.forwardRef(({className:e,children:t,size:r,showCloseButton:a=true,...n},i)=>jsxRuntime.jsxs(ug,{children:[jsxRuntime.jsx(ol,{}),jsxRuntime.jsxs(ie__namespace.Content,{ref:i,className:o(al({size:r}),e),...n,children:[t,a&&jsxRuntime.jsx(ie__namespace.Close,{asChild:true,children:jsxRuntime.jsxs($,{variant:"light",size:"icon",radius:"full",className:"absolute right-2 top-2 h-8 w-8",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})})]})]}));pg.displayName="ModalContent";var fg=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex-shrink-0 flex flex-col space-y-1.5 text-center sm:text-left",e),...t});fg.displayName="ModalHeader";var gg=({className:e,children:t})=>{let{scrollBehavior:r}=KN();return r==="inside"?jsxRuntime.jsx(ze,{className:o("flex-1 min-h-0 -mx-6 px-6",e),children:t}):jsxRuntime.jsx("div",{className:o(e),children:t})};gg.displayName="ModalBody";var bg=({className:e,children:t,...r})=>jsxRuntime.jsx("div",{className:o("flex-shrink-0 flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r,children:K__namespace.Children.map(t,a=>K__namespace.isValidElement(a)?jsxRuntime.jsx(ie__namespace.Close,{asChild:true,children:a}):a)});bg.displayName="ModalFooter";var vg=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ie__namespace.Title,{ref:r,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));vg.displayName="ModalTitle";var hg=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(ie__namespace.Description,{ref:r,className:o("text-sm text-muted-foreground",e),...t}));hg.displayName="ModalDescription";var yg=classVarianceAuthority.cva("h-10 w-10 rounded-full p-2",{variants:{variant:{default:"bg-muted text-foreground",danger:"bg-danger/10 text-danger",warning:"bg-warning/10 text-warning",success:"bg-success/10 text-success",info:"bg-info/10 text-info"}},defaultVariants:{variant:"default"}}),eP=classVarianceAuthority.cva("",{variants:{variant:{default:"",danger:"bg-danger text-danger-foreground hover:bg-danger/90",warning:"bg-warning text-warning-foreground hover:bg-warning/90",success:"bg-success text-success-foreground hover:bg-success/90",info:"bg-info text-info-foreground hover:bg-info/90"}},defaultVariants:{variant:"default"}}),tP={default:lucideReact.HelpCircle,danger:lucideReact.XCircle,warning:lucideReact.AlertTriangle,success:lucideReact.CheckCircle,info:lucideReact.Info},nl=K__namespace.forwardRef(({open:e,onOpenChange:t,trigger:r,title:a,description:n,confirmText:i="Confirm",cancelText:s="Cancel",onConfirm:l,onCancel:d,showIcon:m=true,icon:u,variant:c="default",loading:f=false,disabled:p=false,className:v},y)=>{let[g,x]=K__namespace.useState(false),R=tP[c||"default"],b=async()=>{if(l){let w=l();if(w instanceof Promise){x(true);try{await w;}finally{x(false);}}}},h=()=>{d?.();},P=f||g;return jsxRuntime.jsxs(ke__namespace.Root,{open:e,onOpenChange:t,children:[r&&jsxRuntime.jsx(ke__namespace.Trigger,{asChild:true,children:r}),jsxRuntime.jsxs(ke__namespace.Portal,{children:[jsxRuntime.jsx(ke__namespace.Overlay,{className:"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"}),jsxRuntime.jsxs(ke__namespace.Content,{ref:y,className:o("fixed left-[50%] top-[50%] z-50 grid w-full max-w-md 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",v),children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 sm:flex-row sm:items-start",children:[m&&jsxRuntime.jsx("div",{className:o(yg({variant:c})),children:u||jsxRuntime.jsx(R,{className:"h-6 w-6"})}),jsxRuntime.jsxs("div",{className:"flex flex-col space-y-2 text-center sm:text-left",children:[jsxRuntime.jsx(ke__namespace.Title,{className:"text-lg font-semibold",children:a}),n&&jsxRuntime.jsx(ke__namespace.Description,{className:"text-sm text-muted-foreground",children:n})]})]}),jsxRuntime.jsxs("div",{className:"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",children:[jsxRuntime.jsx(ke__namespace.Cancel,{className:o(Qt({variant:"bordered"})),onClick:h,disabled:P,children:s}),jsxRuntime.jsx(ke__namespace.Action,{className:o(Qt(),eP({variant:c}),P&&"opacity-50 cursor-not-allowed"),onClick:b,disabled:p||P,children:P?jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("svg",{className:"h-4 w-4 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Loading..."]}):i})]})]})]})]})});nl.displayName="ConfirmDialog";function rP(){let[e,t]=K__namespace.useState({open:false,options:null,resolve:null}),r=K__namespace.useCallback(l=>new Promise(d=>{t({open:true,options:l,resolve:d});}),[]),a=K__namespace.useCallback(()=>{e.resolve?.(true),t({open:false,options:null,resolve:null});},[e.resolve]),n=K__namespace.useCallback(()=>{e.resolve?.(false),t({open:false,options:null,resolve:null});},[e.resolve]),i=K__namespace.useCallback(l=>{l||(e.resolve?.(false),t({open:false,options:null,resolve:null}));},[e.resolve]),s=K__namespace.useMemo(()=>e.options?jsxRuntime.jsx(nl,{open:e.open,onOpenChange:i,title:e.options.title,description:e.options.description,confirmText:e.options.confirmText,cancelText:e.options.cancelText,variant:e.options.variant,onConfirm:a,onCancel:n}):null,[e,a,n,i]);return {confirm:r,ConfirmDialog:s}}var uP=e=>e.map(t=>typeof t=="string"?{src:t}:t),sl=K__namespace.forwardRef(({images:e,open:t,onOpenChange:r,initialIndex:a=0,onIndexChange:n,trigger:i,showThumbnails:s=true,showZoom:l=true,showRotate:d=true,showDownload:m=true,showFullscreen:u=true,showNavigation:c=true,showCounter:f=true,closeOnBackdropClick:p=true,className:v},y)=>{let g=K__namespace.useMemo(()=>uP(e),[e]),[x,R]=K__namespace.useState(a),[b,h]=K__namespace.useState(1),[P,w]=K__namespace.useState(0),[M,C]=K__namespace.useState(false),[S,N]=K__namespace.useState(false),[T,k]=K__namespace.useState({x:0,y:0}),[V,E]=K__namespace.useState({x:0,y:0}),I=K__namespace.useRef(null),D=g[x];K__namespace.useEffect(()=>{R(a);},[a]),K__namespace.useEffect(()=>{n?.(x);},[x,n]),K__namespace.useEffect(()=>{h(1),w(0),k({x:0,y:0});},[x]);let L=K__namespace.useCallback(()=>{R(O=>O>0?O-1:g.length-1);},[g.length]),A=K__namespace.useCallback(()=>{R(O=>O<g.length-1?O+1:0);},[g.length]),B=()=>{h(O=>Math.min(O+.5,4));},H=()=>{h(O=>{let oe=Math.max(O-.5,.5);return oe===1&&k({x:0,y:0}),oe});},j=()=>{w(O=>(O+90)%360);},W=async()=>{if(D)try{let oe=await(await fetch(D.src)).blob(),ee=URL.createObjectURL(oe),at=document.createElement("a");at.href=ee,at.download=D.alt||`image-${x+1}`,document.body.appendChild(at),at.click(),document.body.removeChild(at),URL.revokeObjectURL(ee);}catch{window.open(D.src,"_blank");}},Le=async()=>{if(I.current)if(M)try{await document.exitFullscreen(),C(!1);}catch{}else try{await I.current.requestFullscreen(),C(!0);}catch{}},xe=O=>{b>1&&(N(true),E({x:O.clientX-T.x,y:O.clientY-T.y}));},z=O=>{S&&b>1&&k({x:O.clientX-V.x,y:O.clientY-V.y});},F=()=>{N(false);},te=K__namespace.useCallback(O=>{switch(O.key){case "ArrowLeft":L();break;case "ArrowRight":A();break;case "Escape":r?.(false);break;case "+":case "=":B();break;case "-":H();break}},[L,A,r]);return K__namespace.useEffect(()=>{if(t)return window.addEventListener("keydown",te),()=>window.removeEventListener("keydown",te)},[t,te]),K__namespace.useEffect(()=>{let O=()=>{C(!!document.fullscreenElement);};return document.addEventListener("fullscreenchange",O),()=>document.removeEventListener("fullscreenchange",O)},[]),g.length===0?null:jsxRuntime.jsxs(ie__namespace.Root,{open:t,onOpenChange:r,children:[i&&jsxRuntime.jsx(ie__namespace.Trigger,{asChild:true,children:i}),jsxRuntime.jsxs(ie__namespace.Portal,{children:[jsxRuntime.jsx(ie__namespace.Overlay,{className:"fixed inset-0 z-50 bg-black/90 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",onClick:p?void 0:O=>O.stopPropagation()}),jsxRuntime.jsxs(ie__namespace.Content,{ref:y,className:o("fixed inset-0 z-50 flex flex-col outline-none",v),onPointerDownOutside:p?void 0:O=>O.preventDefault(),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-4 text-white",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[f&&g.length>1&&jsxRuntime.jsxs("span",{className:"text-sm",children:[x+1," / ",g.length]}),D?.title&&jsxRuntime.jsx("span",{className:"ml-4 text-sm font-medium",children:D.title})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[l&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:H,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Zoom out",children:jsxRuntime.jsx(lucideReact.ZoomOut,{className:"h-5 w-5"})}),jsxRuntime.jsxs("span",{className:"min-w-[3rem] text-center text-sm",children:[Math.round(b*100),"%"]}),jsxRuntime.jsx("button",{onClick:B,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Zoom in",children:jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-5 w-5"})})]}),d&&jsxRuntime.jsx("button",{onClick:j,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Rotate",children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-5 w-5"})}),m&&jsxRuntime.jsx("button",{onClick:W,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Download",children:jsxRuntime.jsx(lucideReact.Download,{className:"h-5 w-5"})}),u&&jsxRuntime.jsx("button",{onClick:Le,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:M?"Exit fullscreen":"Fullscreen",children:M?jsxRuntime.jsx(lucideReact.Minimize2,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Maximize2,{className:"h-5 w-5"})}),jsxRuntime.jsxs(ie__namespace.Close,{className:"rounded-full p-2 hover:bg-white/10 transition-colors ml-2",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]}),jsxRuntime.jsxs("div",{ref:I,className:"relative flex-1 flex items-center justify-center overflow-hidden",onMouseDown:xe,onMouseMove:z,onMouseUp:F,onMouseLeave:F,children:[c&&g.length>1&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:L,className:"absolute left-4 z-10 rounded-full bg-black/50 p-3 text-white hover:bg-black/70 transition-colors",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-6 w-6"})}),jsxRuntime.jsx("button",{onClick:A,className:"absolute right-4 z-10 rounded-full bg-black/50 p-3 text-white hover:bg-black/70 transition-colors",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-6 w-6"})})]}),jsxRuntime.jsx("img",{src:D?.src,alt:D?.alt||"",className:o("max-h-full max-w-full object-contain transition-transform duration-200",S?"cursor-grabbing":b>1?"cursor-grab":""),style:{transform:`translate(${T.x}px, ${T.y}px) scale(${b}) rotate(${P}deg)`},draggable:false})]}),D?.description&&jsxRuntime.jsx("div",{className:"p-4 text-center text-white text-sm",children:D.description}),s&&g.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-2 p-4 overflow-x-auto",children:g.map((O,oe)=>jsxRuntime.jsx("button",{onClick:()=>R(oe),className:o("h-16 w-16 flex-shrink-0 overflow-hidden rounded border-2 transition-all",x===oe?"border-white opacity-100":"border-transparent opacity-50 hover:opacity-75"),children:jsxRuntime.jsx("img",{src:O.src,alt:O.alt||`Thumbnail ${oe+1}`,className:"h-full w-full object-cover"})},oe))})]})]})]})});sl.displayName="ImageViewer";var Rg=({children:e,images:t,index:r=0,className:a})=>{let[n,i]=K__namespace.useState(false);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>i(true),className:o("cursor-zoom-in",a),children:e}),jsxRuntime.jsx(sl,{images:t,open:n,onOpenChange:i,initialIndex:r})]})};Rg.displayName="ImageViewerTrigger";var Pg=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"hover:bg-muted",solid:"bg-muted hover:bg-muted/80",ghost:"hover:bg-accent hover:text-accent-foreground",outline:"border border-input hover:bg-accent hover:text-accent-foreground"},size:{sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{variant:"default",size:"md"}}),Cg=K__namespace.forwardRef(({className:e,variant:t,size:r,iconSize:a,...n},i)=>{let l=a??{sm:14,md:16,lg:20}[r??"md"];return jsxRuntime.jsx("button",{ref:i,type:"button",className:o(Pg({variant:t,size:r}),e),"aria-label":"Close",...n,children:jsxRuntime.jsx(lucideReact.X,{style:{width:l,height:l}})})});Cg.displayName="CloseButton";var Mg=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",soft:"bg-primary/10 text-primary hover:bg-primary/20",surface:"bg-muted hover:bg-muted/80"},size:{sm:"h-7 w-7",md:"h-9 w-9",lg:"h-11 w-11"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},compoundVariants:[{variant:"solid",color:"primary",className:"bg-primary text-primary-foreground hover:bg-primary/90"},{variant:"solid",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/90"},{variant:"solid",color:"success",className:"bg-success text-success-foreground hover:bg-success/90"},{variant:"solid",color:"warning",className:"bg-warning text-warning-foreground hover:bg-warning/90"},{variant:"solid",color:"danger",className:"bg-danger text-danger-foreground hover:bg-danger/90"},{variant:"soft",color:"primary",className:"bg-primary/10 text-primary hover:bg-primary/20"},{variant:"soft",color:"secondary",className:"bg-secondary/10 text-secondary-foreground hover:bg-secondary/20"},{variant:"soft",color:"success",className:"bg-success/10 text-success hover:bg-success/20"},{variant:"soft",color:"warning",className:"bg-warning/10 text-warning hover:bg-warning/20"},{variant:"soft",color:"danger",className:"bg-danger/10 text-danger hover:bg-danger/20"},{variant:"outline",color:"primary",className:"border-primary text-primary hover:bg-primary/10"},{variant:"outline",color:"success",className:"border-success text-success hover:bg-success/10"},{variant:"outline",color:"warning",className:"border-warning text-warning hover:bg-warning/10"},{variant:"outline",color:"danger",className:"border-danger text-danger hover:bg-danger/10"}],defaultVariants:{variant:"ghost",size:"md",color:"default",radius:"md"}}),Tg=K__namespace.forwardRef(({className:e,variant:t,size:r,color:a,radius:n,loading:i,disabled:s,children:l,...d},m)=>jsxRuntime.jsx("button",{ref:m,type:"button",className:o(Mg({variant:t,size:r,color:a,radius:n}),e),disabled:s||i,...d,children:i?jsxRuntime.jsxs("svg",{className:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",style:{width:"1em",height:"1em"},children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):l}));Tg.displayName="ActionIcon";var Vg=({children:e,container:t,disabled:r=false})=>{let[a,n]=K__namespace.useState(false);if(K__namespace.useEffect(()=>{n(true);},[]),r||!a)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let i=null;return typeof t=="string"?i=document.querySelector(t):t instanceof Element?i=t:i=document.body,i?Ed.createPortal(e,i):jsxRuntime.jsx(jsxRuntime.Fragment,{children:e})};Vg.displayName="Portal";var Lg=classVarianceAuthority.cva("absolute rounded-full border-2 border-background",{variants:{color:{default:"bg-muted-foreground",primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",warning:"bg-warning",danger:"bg-danger"},size:{sm:"h-2 w-2",md:"h-2.5 w-2.5",lg:"h-3 w-3"},position:{"top-right":"top-0 right-0 -translate-y-1/3 translate-x-1/3","top-left":"top-0 left-0 -translate-y-1/3 -translate-x-1/3","bottom-right":"bottom-0 right-0 translate-y-1/3 translate-x-1/3","bottom-left":"bottom-0 left-0 translate-y-1/3 -translate-x-1/3"},ping:{true:"",false:""}},defaultVariants:{color:"primary",size:"md",position:"top-right",ping:false}}),Ig=K__namespace.forwardRef(({className:e,color:t,size:r,position:a,ping:n,content:i,show:s=true,offset:l,style:d,...m},u)=>{if(!s)return null;let c=i!=null;return jsxRuntime.jsxs("span",{ref:u,className:o(Lg({color:t,size:c?void 0:r,position:a,ping:n}),c&&"flex h-auto w-auto min-w-[1.25rem] items-center justify-center px-1 py-0.5 text-[10px] font-medium text-white",e),style:{...d,...l!==void 0&&{transform:`translate(${a?.includes("right")?l:-l}px, ${a?.includes("top")?-l:l}px)`}},...m,children:[n&&jsxRuntime.jsx("span",{className:o("absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",t==="default"&&"bg-muted-foreground",t==="primary"&&"bg-primary",t==="secondary"&&"bg-secondary",t==="success"&&"bg-success",t==="warning"&&"bg-warning",t==="danger"&&"bg-danger")}),i]})});Ig.displayName="Indicator";var Eg=K__namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:o("relative inline-flex",e),...r,children:t}));Eg.displayName="IndicatorWrapper";var Ag=classVarianceAuthority.cva("relative overflow-auto",{variants:{orientation:{vertical:"",horizontal:"",both:""},size:{sm:"",md:"",lg:""}},defaultVariants:{orientation:"vertical",size:"md"}}),zg=K__namespace.forwardRef(({className:e,orientation:t,size:r,hideScrollbar:a=false,shadowColor:n="rgba(0, 0, 0, 0.1)",children:i,...s},l)=>{let d=K__namespace.useRef(null),[m,u]=K__namespace.useState({top:false,bottom:false,left:false,right:false});K__namespace.useImperativeHandle(l,()=>d.current);let c=K__namespace.useCallback(()=>{let x=d.current;if(!x)return;let{scrollTop:R,scrollLeft:b,scrollHeight:h,scrollWidth:P,clientHeight:w,clientWidth:M}=x;u({top:R>0,bottom:R<h-w-1,left:b>0,right:b<P-M-1});},[]);K__namespace.useEffect(()=>{let x=d.current;if(x)return c(),x.addEventListener("scroll",c),window.addEventListener("resize",c),()=>{x.removeEventListener("scroll",c),window.removeEventListener("resize",c);}},[c]);let p={sm:"20px",md:"40px",lg:"60px"}[r??"md"],v=t==="vertical"||t==="both",y=t==="horizontal"||t==="both",g={maskImage:[v&&m.top&&`linear-gradient(to bottom, transparent, black ${p})`,v&&m.bottom&&`linear-gradient(to top, transparent, black ${p})`,y&&m.left&&`linear-gradient(to right, transparent, black ${p})`,y&&m.right&&`linear-gradient(to left, transparent, black ${p})`].filter(Boolean).join(", ")||void 0,maskComposite:"intersect",WebkitMaskComposite:"source-in"};return jsxRuntime.jsx("div",{ref:d,className:o(Ag({orientation:t,size:r}),a&&"scrollbar-hide [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",e),style:g,...s,children:i})});zg.displayName="ScrollShadow";var Bg=classVarianceAuthority.cva("inline-flex items-center justify-center font-mono font-medium",{variants:{variant:{default:"rounded border border-border bg-muted text-muted-foreground shadow-sm",outline:"rounded border border-border text-foreground",ghost:"text-muted-foreground"},size:{sm:"min-w-[1.25rem] px-1 py-0.5 text-[10px]",md:"min-w-[1.5rem] px-1.5 py-0.5 text-xs",lg:"min-w-[2rem] px-2 py-1 text-sm"}},defaultVariants:{variant:"default",size:"md"}}),NP={cmd:"\u2318",command:"\u2318",ctrl:"\u2303",control:"\u2303",alt:"\u2325",option:"\u2325",shift:"\u21E7",enter:"\u21B5",return:"\u21B5",backspace:"\u232B",delete:"\u2326",escape:"\u238B",esc:"\u238B",tab:"\u21E5",space:"\u2423",up:"\u2191",down:"\u2193",left:"\u2190",right:"\u2192",pageup:"\u21DE",pagedown:"\u21DF",home:"\u2912",end:"\u2913",capslock:"\u21EA"},PP=e=>{let t=e.toLowerCase();return NP[t]||e.toUpperCase()},Fg=K__namespace.forwardRef(({className:e,variant:t,size:r,keys:a,children:n,...i},s)=>{let l=()=>a?(Array.isArray(a)?a:[a]).map((m,u)=>jsxRuntime.jsxs(K__namespace.Fragment,{children:[u>0&&jsxRuntime.jsx("span",{className:"mx-0.5 text-muted-foreground",children:"+"}),jsxRuntime.jsx("span",{children:PP(m)})]},u)):n;return jsxRuntime.jsx("kbd",{ref:s,className:o(Bg({variant:t,size:r}),e),...i,children:l()})});Fg.displayName="Kbd";var Gg=K__namespace.forwardRef(({className:e,size:t,axis:r="both",style:a,...n},i)=>{let s=typeof t=="number"?`${t}px`:t,l={...a,...t?{width:r==="vertical"?void 0:s,height:r==="horizontal"?void 0:s,minWidth:r==="vertical"?void 0:s,minHeight:r==="horizontal"?void 0:s,flexShrink:0}:{flex:"1 1 auto"}};return jsxRuntime.jsx("div",{ref:i,"aria-hidden":"true",className:o(e),style:l,...n})});Gg.displayName="Spacer";var Wg=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"hover:bg-muted",solid:"bg-muted hover:bg-muted/80",ghost:"hover:bg-accent hover:text-accent-foreground",outline:"border border-input hover:bg-accent hover:text-accent-foreground"},size:{sm:"h-7 w-7",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{variant:"default",size:"md"}}),$g=K__namespace.forwardRef(({className:e,variant:t,size:r,value:a,successDuration:n=2e3,onCopySuccess:i,onCopyError:s,copyIcon:l,successIcon:d,...m},u)=>{let[c,f]=K__namespace.useState(false),p={sm:14,md:16,lg:20}[r??"md"],v=async()=>{try{await navigator.clipboard.writeText(a),f(!0),i?.(),setTimeout(()=>{f(!1);},n);}catch(y){s?.(y);}};return jsxRuntime.jsx("button",{ref:u,type:"button",className:o(Wg({variant:t,size:r}),e),onClick:v,"aria-label":c?"Copied":"Copy to clipboard",...m,children:c?d??jsxRuntime.jsx(lucideReact.Check,{className:"text-success",style:{width:p,height:p}}):l??jsxRuntime.jsx(lucideReact.Copy,{style:{width:p,height:p}})})});$g.displayName="CopyButton";var Kg=classVarianceAuthority.cva("flex flex-col bg-background",{variants:{variant:{default:"border rounded-lg",bordered:"border-2 rounded-lg",ghost:""},size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",size:"md"}}),IP=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],EP=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function HP(e,t,r){let a=new Date(e,t,1),n=new Date(e,t+1,0),i=[],s=a.getDay()-r;s<0&&(s+=7);for(let d=s-1;d>=0;d--)i.push(new Date(e,t,-d));for(let d=1;d<=n.getDate();d++)i.push(new Date(e,t,d));let l=42-i.length;for(let d=1;d<=l;d++)i.push(new Date(e,t+1,d));return i}function AP(e,t){let r=[],n=e.getDay()-t;n<0&&(n+=7);let i=new Date(e);i.setDate(e.getDate()-n);for(let s=0;s<7;s++){let l=new Date(i);l.setDate(i.getDate()+s),r.push(l);}return r}function li(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function si(e){return li(e,new Date)}function _g(e,t){return e.filter(r=>{let a=new Date(r.start),n=new Date(r.end);return li(a,t)||li(n,t)||a<t&&n>t})}var Yg=K__namespace.forwardRef(({className:e,variant:t,size:r,events:a=[],view:n="month",onViewChange:i,date:s,onDateChange:l,onEventClick:d,onSlotClick:m,weekStartsOn:u=0,locale:c="en-US",...f},p)=>{let[v,y]=K__namespace.useState(new Date),g=s??v,x=N=>{l?l(N):y(N);},R=u===1?EP:IP,b=()=>{let N=new Date(g);n==="month"?N.setMonth(N.getMonth()-1):n==="week"?N.setDate(N.getDate()-7):N.setDate(N.getDate()-1),x(N);},h=()=>{let N=new Date(g);n==="month"?N.setMonth(N.getMonth()+1):n==="week"?N.setDate(N.getDate()+7):N.setDate(N.getDate()+1),x(N);},P=()=>{x(new Date);},w=()=>n==="day"?g.toLocaleDateString(c,{weekday:"long",year:"numeric",month:"long",day:"numeric"}):g.toLocaleDateString(c,{year:"numeric",month:"long"}),M=()=>{let N=HP(g.getFullYear(),g.getMonth(),u);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col",children:[jsxRuntime.jsx("div",{className:"grid grid-cols-7 border-b",children:R.map(T=>jsxRuntime.jsx("div",{className:"p-2 text-center font-medium text-muted-foreground",children:T},T))}),jsxRuntime.jsx("div",{className:"flex-1 grid grid-cols-7 grid-rows-6",children:N.map((T,k)=>{let V=_g(a,T),E=T.getMonth()===g.getMonth();return jsxRuntime.jsxs("div",{className:o("min-h-[80px] border-b border-r p-1 cursor-pointer hover:bg-accent/50 transition-colors",!E&&"bg-muted/30"),onClick:()=>m?.(T),children:[jsxRuntime.jsx("div",{className:o("flex items-center justify-center w-7 h-7 rounded-full text-sm mb-1",si(T)&&"bg-primary text-primary-foreground",!E&&"text-muted-foreground"),children:T.getDate()}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[V.slice(0,3).map(I=>jsxRuntime.jsx("div",{className:"text-xs px-1 py-0.5 rounded truncate cursor-pointer hover:opacity-80",style:{backgroundColor:I.color||"hsl(var(--primary))",color:"white"},onClick:D=>{D.stopPropagation(),d?.(I);},children:I.title},I.id)),V.length>3&&jsxRuntime.jsxs("div",{className:"text-xs text-muted-foreground px-1",children:["+",V.length-3," more"]})]})]},k)})})]})},C=()=>{let N=AP(g,u),T=Array.from({length:24},(k,V)=>V);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[jsxRuntime.jsxs("div",{className:"grid grid-cols-[60px_repeat(7,1fr)] border-b",children:[jsxRuntime.jsx("div",{className:"p-2"}),N.map((k,V)=>jsxRuntime.jsxs("div",{className:o("p-2 text-center border-l",si(k)&&"bg-primary/10"),children:[jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground",children:R[V]}),jsxRuntime.jsx("div",{className:o("text-lg font-semibold",si(k)&&"text-primary"),children:k.getDate()})]},V))]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_repeat(7,1fr)]",children:T.map(k=>jsxRuntime.jsxs(K__namespace.Fragment,{children:[jsxRuntime.jsxs("div",{className:"h-12 text-xs text-muted-foreground text-right pr-2 pt-0 border-b",children:[k.toString().padStart(2,"0"),":00"]}),N.map((V,E)=>{let I=new Date(V);I.setHours(k,0,0,0);let D=a.filter(L=>{let A=new Date(L.start);return li(A,V)&&A.getHours()===k});return jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>m?.(I),children:D.map(L=>jsxRuntime.jsx("div",{className:"absolute inset-x-0.5 top-0.5 text-xs px-1 py-0.5 rounded truncate cursor-pointer",style:{backgroundColor:L.color||"hsl(var(--primary))",color:"white"},onClick:A=>{A.stopPropagation(),d?.(L);},children:L.title},L.id))},E)})]},k))})})]})},S=()=>{let N=Array.from({length:24},(k,V)=>V),T=_g(a,g);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[jsxRuntime.jsx("div",{className:"p-4 border-b text-center",children:jsxRuntime.jsx("div",{className:o("inline-flex items-center justify-center w-12 h-12 rounded-full text-2xl font-semibold",si(g)&&"bg-primary text-primary-foreground"),children:g.getDate()})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_1fr]",children:N.map(k=>{let V=new Date(g);V.setHours(k,0,0,0);let E=T.filter(I=>new Date(I.start).getHours()===k);return jsxRuntime.jsxs(K__namespace.Fragment,{children:[jsxRuntime.jsxs("div",{className:"h-12 text-xs text-muted-foreground text-right pr-2 pt-0 border-b",children:[k.toString().padStart(2,"0"),":00"]}),jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>m?.(V),children:E.map(I=>jsxRuntime.jsx("div",{className:"absolute inset-x-1 top-0.5 text-xs px-2 py-1 rounded truncate cursor-pointer",style:{backgroundColor:I.color||"hsl(var(--primary))",color:"white"},onClick:D=>{D.stopPropagation(),d?.(I);},children:I.title},I.id))})]},k)})})})]})};return jsxRuntime.jsxs("div",{ref:p,className:o(Kg({variant:t,size:r,className:e})),...f,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx($,{variant:"bordered",size:"sm",onClick:P,children:"Today"}),jsxRuntime.jsx($,{variant:"ghost",size:"icon",onClick:b,children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx($,{variant:"ghost",size:"icon",onClick:h,children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})}),jsxRuntime.jsx("h2",{className:"text-lg font-semibold ml-2",children:w()})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-1 border rounded-lg p-1",children:["month","week","day"].map(N=>jsxRuntime.jsx($,{variant:n===N?"solid":"ghost",size:"sm",onClick:()=>i?.(N),children:N.charAt(0).toUpperCase()+N.slice(1)},N))})]}),n==="month"&&M(),n==="week"&&C(),n==="day"&&S()]})});Yg.displayName="FullCalendar";var Yo=classVarianceAuthority.cva("w-full",{variants:{size:{sm:"h-48",md:"h-64",lg:"h-96"}},defaultVariants:{size:"md"}}),Uo=["hsl(var(--primary))","hsl(var(--chart-1, 220 70% 50%))","hsl(var(--chart-2, 160 60% 45%))","hsl(var(--chart-3, 30 80% 55%))","hsl(var(--chart-4, 280 65% 60%))"],Ug=K__namespace.forwardRef(({className:e,size:t,data:r,dataKeys:a,colors:n=Uo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",curveType:m="monotone",...u},c)=>jsxRuntime.jsx("div",{ref:c,className:o(Yo({size:t,className:e})),...u,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.LineChart,{data:r,children:[i&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:d,className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),l&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"},labelStyle:{color:"hsl(var(--popover-foreground))"}}),s&&jsxRuntime.jsx(recharts.Legend,{}),a.map((f,p)=>jsxRuntime.jsx(recharts.Line,{type:m,dataKey:f,stroke:n[p%n.length],strokeWidth:2,dot:{fill:n[p%n.length],strokeWidth:0},activeDot:{r:6}},f))]})})}));Ug.displayName="LineChart";var jg=K__namespace.forwardRef(({className:e,size:t,data:r,dataKeys:a,colors:n=Uo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",stacked:m=false,layout:u="horizontal",...c},f)=>jsxRuntime.jsx("div",{ref:f,className:o(Yo({size:t,className:e})),...c,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.BarChart,{data:r,layout:u,children:[i&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:u==="horizontal"?d:void 0,type:u==="horizontal"?"category":"number",className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{dataKey:u==="vertical"?d:void 0,type:u==="vertical"?"category":"number",className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),l&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"},labelStyle:{color:"hsl(var(--popover-foreground))"}}),s&&jsxRuntime.jsx(recharts.Legend,{}),a.map((p,v)=>jsxRuntime.jsx(recharts.Bar,{dataKey:p,fill:n[v%n.length],stackId:m?"stack":void 0,radius:[4,4,0,0]},p))]})})}));jg.displayName="BarChart";var Xg=K__namespace.forwardRef(({className:e,size:t,data:r,dataKey:a="value",nameKey:n="name",colors:i=Uo,innerRadius:s=0,outerRadius:l=80,showLegend:d=true,showTooltip:m=true,showLabels:u=false,...c},f)=>jsxRuntime.jsx("div",{ref:f,className:o(Yo({size:t,className:e})),...c,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.PieChart,{children:[m&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"}}),d&&jsxRuntime.jsx(recharts.Legend,{}),jsxRuntime.jsx(recharts.Pie,{data:r,dataKey:a,nameKey:n,cx:"50%",cy:"50%",innerRadius:s,outerRadius:l,label:u,labelLine:u,children:r.map((p,v)=>jsxRuntime.jsx(recharts.Cell,{fill:i[v%i.length]},`cell-${v}`))})]})})}));Xg.displayName="PieChart";var qg=K__namespace.forwardRef(({className:e,size:t,data:r,dataKeys:a,colors:n=Uo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",stacked:m=false,curveType:u="monotone",...c},f)=>jsxRuntime.jsx("div",{ref:f,className:o(Yo({size:t,className:e})),...c,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.AreaChart,{data:r,children:[i&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:d,className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),l&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"},labelStyle:{color:"hsl(var(--popover-foreground))"}}),s&&jsxRuntime.jsx(recharts.Legend,{}),a.map((p,v)=>jsxRuntime.jsx(recharts.Area,{type:u,dataKey:p,stroke:n[v%n.length],fill:n[v%n.length],fillOpacity:.3,stackId:m?"stack":void 0},p))]})})}));qg.displayName="AreaChart";var Qg=classVarianceAuthority.cva("flex gap-4 overflow-x-auto p-4",{variants:{variant:{default:"bg-muted/30",bordered:"border rounded-lg bg-background",ghost:""}},defaultVariants:{variant:"default"}}),eb=classVarianceAuthority.cva("flex flex-col min-w-[280px] w-[280px] rounded-lg",{variants:{variant:{default:"bg-muted/50",bordered:"border bg-background",ghost:"bg-transparent"}},defaultVariants:{variant:"default"}}),bl=classVarianceAuthority.cva("rounded-lg p-3 cursor-grab active:cursor-grabbing transition-all",{variants:{variant:{default:"bg-background border shadow-sm hover:shadow-md",bordered:"border-2 bg-background hover:border-primary/50",ghost:"bg-muted/50 hover:bg-muted"},isDragging:{true:"opacity-50 scale-[1.02] shadow-lg",false:""}},defaultVariants:{variant:"default",isDragging:false}});function nC({card:e,columnId:t,variant:r,renderCard:a,onCardClick:n}){let{attributes:i,listeners:s,setNodeRef:l,transform:d,transition:m,isDragging:u}=sortable.useSortable({id:e.id,data:{columnId:t}}),c={transform:utilities.CSS.Transform.toString(d),transition:m};return jsxRuntime.jsx("div",{ref:l,style:c,className:o(bl({variant:r,isDragging:u})),onClick:()=>n?.(e,t),...i,...s,children:a?a(e,t):jsxRuntime.jsxs("div",{className:"flex items-start gap-2",children:[jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-muted-foreground flex-shrink-0 mt-0.5"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"font-medium text-sm truncate",children:e.title}),e.description&&jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:e.description})]})]})})}function iC({column:e,variant:t,renderCard:r,onCardClick:a,onAddCard:n,showAddCard:i,columnHeight:s}){return jsxRuntime.jsxs("div",{className:o(eb({variant:t})),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-3 border-b",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[e.color&&jsxRuntime.jsx("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:e.color}}),jsxRuntime.jsx("h3",{className:"font-semibold text-sm",children:e.title}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground bg-muted px-2 py-0.5 rounded-full",children:e.cards.length})]}),i&&jsxRuntime.jsx($,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>n?.(e.id),children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"})})]}),jsxRuntime.jsx(ze,{style:{height:s},children:jsxRuntime.jsxs("div",{className:"p-2 space-y-2",children:[jsxRuntime.jsx(sortable.SortableContext,{items:e.cards.map(l=>l.id),strategy:sortable.verticalListSortingStrategy,children:e.cards.map(l=>jsxRuntime.jsx(nC,{card:l,columnId:e.id,variant:t,renderCard:r,onCardClick:a},l.id))}),e.cards.length===0&&jsxRuntime.jsx("div",{className:"h-20 border-2 border-dashed rounded-lg flex items-center justify-center text-muted-foreground text-sm",children:"Drop here"})]})})]})}var tb=K__namespace.forwardRef(({className:e,variant:t,columns:r,onCardMove:a,onCardClick:n,onAddCard:i,renderCard:s,showAddCard:l=true,columnHeight:d=500,...m},u)=>{let[c,f]=K__namespace.useState(null),[p,v]=K__namespace.useState(null),y=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:8}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),g=h=>r.find(P=>P.cards.some(w=>w.id===h));return jsxRuntime.jsxs(core.DndContext,{sensors:y,collisionDetection:core.closestCorners,onDragStart:h=>{let{active:P}=h,w=g(P.id);if(w){let M=w.cards.find(C=>C.id===P.id);M&&(f(M),v(w.id));}},onDragOver:h=>{let{active:P,over:w}=h;if(!w)return;let M=P.id,C=w.id,S=g(M),N=g(C)||r.find(V=>V.id===C);if(!S||!N||S.id===N.id)return;let T=N.cards.findIndex(V=>V.id===C),k=T===-1?N.cards.length:T;a?.(M,S.id,N.id,k);},onDragEnd:h=>{let{active:P,over:w}=h;if(w&&P.id!==w.id){let M=g(P.id),C=g(w.id)||r.find(S=>S.id===w.id);if(M&&C){let S=C.cards.findIndex(T=>T.id===w.id),N=S===-1?C.cards.length:S;a?.(P.id,M.id,C.id,N);}}f(null),v(null);},children:[jsxRuntime.jsx("div",{ref:u,className:o(Qg({variant:t,className:e})),...m,children:r.map(h=>jsxRuntime.jsx(iC,{column:h,variant:t,renderCard:s,onCardClick:n,onAddCard:i,showAddCard:l,columnHeight:d},h.id))}),jsxRuntime.jsx(core.DragOverlay,{children:c&&p&&jsxRuntime.jsx("div",{className:o(bl({variant:t,isDragging:true})),children:s?s(c,p):jsxRuntime.jsxs("div",{className:"flex items-start gap-2",children:[jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-muted-foreground flex-shrink-0 mt-0.5"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"font-medium text-sm truncate",children:c.title}),c.description&&jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:c.description})]})]})})})]})});tb.displayName="KanbanBoard";var rb=classVarianceAuthority.cva("relative",{variants:{variant:{default:"",bordered:"border rounded-lg p-4",cards:"rounded-lg"}},defaultVariants:{variant:"default"}}),ab=K__namespace.createContext(null);function vl(){let e=K__namespace.useContext(ab);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var ob=K__namespace.forwardRef(({className:e,variant:t,children:r,opts:a,plugins:n,orientation:i="horizontal",showArrows:s=true,showDots:l=true,setApi:d,...m},u)=>{let[c,f]=sC__default.default({...a,axis:i==="horizontal"?"x":"y"},n),[p,v]=K__namespace.useState(false),[y,g]=K__namespace.useState(false),[x,R]=K__namespace.useState(0),[b,h]=K__namespace.useState([]),P=K__namespace.useCallback(N=>{N&&(R(N.selectedScrollSnap()),v(N.canScrollPrev()),g(N.canScrollNext()));},[]),w=K__namespace.useCallback(()=>{f?.scrollPrev();},[f]),M=K__namespace.useCallback(()=>{f?.scrollNext();},[f]),C=K__namespace.useCallback(N=>{f?.scrollTo(N);},[f]),S=K__namespace.useCallback(N=>{N.key==="ArrowLeft"?(N.preventDefault(),w()):N.key==="ArrowRight"&&(N.preventDefault(),M());},[w,M]);return K__namespace.useEffect(()=>{!f||!d||d(f);},[f,d]),K__namespace.useEffect(()=>{if(f)return h(f.scrollSnapList()),P(f),f.on("reInit",P),f.on("select",P),()=>{f?.off("select",P);}},[f,P]),jsxRuntime.jsx(ab.Provider,{value:{carouselRef:c,api:f,scrollPrev:w,scrollNext:M,canScrollPrev:p,canScrollNext:y,selectedIndex:x,scrollSnaps:b,scrollTo:C},children:jsxRuntime.jsxs("div",{ref:u,className:o(rb({variant:t,className:e})),onKeyDownCapture:S,role:"region","aria-roledescription":"carousel",...m,children:[jsxRuntime.jsx("div",{ref:c,className:"overflow-hidden",children:jsxRuntime.jsx("div",{className:o("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col"),children:r})}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(hl,{}),jsxRuntime.jsx(xl,{})]}),l&&b.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-1.5 mt-4",children:b.map((N,T)=>jsxRuntime.jsx("button",{className:o("w-2 h-2 rounded-full transition-all",T===x?"bg-primary w-4":"bg-muted-foreground/30 hover:bg-muted-foreground/50"),onClick:()=>C(T),"aria-label":`Go to slide ${T+1}`},T))})]})})});ob.displayName="Carousel";var nb=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex",e),...t}));nb.displayName="CarouselContent";var ib=K__namespace.forwardRef(({className:e,basis:t="basis-full",...r},a)=>jsxRuntime.jsx("div",{ref:a,role:"group","aria-roledescription":"slide",className:o("min-w-0 shrink-0 grow-0 pl-4",t,e),...r}));ib.displayName="CarouselItem";var hl=K__namespace.forwardRef(({className:e,variant:t="bordered",size:r="icon",...a},n)=>{let{scrollPrev:i,canScrollPrev:s}=vl();return jsxRuntime.jsxs($,{ref:n,variant:t,size:r,className:o("absolute left-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:i,...a,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Previous slide"})]})});hl.displayName="CarouselPrevious";var xl=K__namespace.forwardRef(({className:e,variant:t="bordered",size:r="icon",...a},n)=>{let{scrollNext:i,canScrollNext:s}=vl();return jsxRuntime.jsxs($,{ref:n,variant:t,size:r,className:o("absolute right-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:i,...a,children:[jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Next slide"})]})});xl.displayName="CarouselNext";var sb=classVarianceAuthority.cva("flex flex-col bg-popover border rounded-lg shadow-md",{variants:{size:{sm:"w-64 h-72",md:"w-80 h-96",lg:"w-96 h-[480px]"}},defaultVariants:{size:"md"}}),fi={recent:{icon:"\u{1F550}",name:"Recent"},smileys:{icon:"\u{1F600}",name:"Smileys & Emotion"},people:{icon:"\u{1F44B}",name:"People & Body"},animals:{icon:"\u{1F43B}",name:"Animals & Nature"},food:{icon:"\u{1F354}",name:"Food & Drink"},travel:{icon:"\u{1F697}",name:"Travel & Places"},activities:{icon:"\u26BD",name:"Activities"},objects:{icon:"\u{1F4A1}",name:"Objects"},symbols:{icon:"\u2764\uFE0F",name:"Symbols"},flags:{icon:"\u{1F3F3}\uFE0F",name:"Flags"}},Rl={smileys:["\u{1F600}","\u{1F603}","\u{1F604}","\u{1F601}","\u{1F606}","\u{1F605}","\u{1F923}","\u{1F602}","\u{1F642}","\u{1F643}","\u{1F609}","\u{1F60A}","\u{1F607}","\u{1F970}","\u{1F60D}","\u{1F929}","\u{1F618}","\u{1F617}","\u263A\uFE0F","\u{1F61A}","\u{1F60B}","\u{1F61B}","\u{1F61C}","\u{1F92A}","\u{1F61D}","\u{1F911}","\u{1F917}","\u{1F92D}","\u{1F92B}","\u{1F914}","\u{1F910}","\u{1F928}","\u{1F610}","\u{1F611}","\u{1F636}","\u{1F60F}","\u{1F612}","\u{1F644}","\u{1F62C}","\u{1F925}","\u{1F60C}","\u{1F614}","\u{1F62A}","\u{1F924}","\u{1F634}","\u{1F637}","\u{1F912}","\u{1F915}","\u{1F922}","\u{1F92E}","\u{1F927}","\u{1F975}","\u{1F976}","\u{1F974}","\u{1F635}","\u{1F92F}","\u{1F920}","\u{1F973}","\u{1F978}","\u{1F60E}","\u{1F913}","\u{1F9D0}","\u{1F615}","\u{1F61F}","\u{1F641}","\u2639\uFE0F","\u{1F62E}","\u{1F62F}","\u{1F632}","\u{1F633}","\u{1F97A}","\u{1F626}","\u{1F627}","\u{1F628}","\u{1F630}","\u{1F625}","\u{1F622}","\u{1F62D}","\u{1F631}","\u{1F616}","\u{1F623}","\u{1F61E}","\u{1F613}","\u{1F629}","\u{1F62B}","\u{1F971}","\u{1F624}","\u{1F621}","\u{1F620}","\u{1F92C}","\u{1F608}","\u{1F47F}","\u{1F480}","\u2620\uFE0F","\u{1F4A9}","\u{1F921}","\u{1F479}","\u{1F47A}","\u{1F47B}","\u{1F47D}"],people:["\u{1F44B}","\u{1F91A}","\u{1F590}\uFE0F","\u270B","\u{1F596}","\u{1F44C}","\u{1F90C}","\u{1F90F}","\u270C\uFE0F","\u{1F91E}","\u{1F91F}","\u{1F918}","\u{1F919}","\u{1F448}","\u{1F449}","\u{1F446}","\u{1F595}","\u{1F447}","\u261D\uFE0F","\u{1F44D}","\u{1F44E}","\u270A","\u{1F44A}","\u{1F91B}","\u{1F91C}","\u{1F44F}","\u{1F64C}","\u{1F450}","\u{1F932}","\u{1F91D}","\u{1F64F}","\u270D\uFE0F","\u{1F485}","\u{1F933}","\u{1F4AA}","\u{1F9BE}","\u{1F9BF}","\u{1F9B5}","\u{1F9B6}","\u{1F442}","\u{1F9BB}","\u{1F443}","\u{1F9E0}","\u{1FAC0}","\u{1FAC1}","\u{1F9B7}","\u{1F9B4}","\u{1F440}","\u{1F441}\uFE0F","\u{1F445}","\u{1F444}","\u{1F476}","\u{1F9D2}","\u{1F466}","\u{1F467}","\u{1F9D1}","\u{1F471}","\u{1F468}","\u{1F9D4}","\u{1F469}","\u{1F9D3}","\u{1F474}","\u{1F475}","\u{1F64D}","\u{1F64E}","\u{1F645}","\u{1F646}","\u{1F481}","\u{1F64B}","\u{1F9CF}","\u{1F647}","\u{1F926}","\u{1F937}","\u{1F46E}","\u{1F575}\uFE0F","\u{1F482}","\u{1F977}","\u{1F477}","\u{1F934}","\u{1F478}"],animals:["\u{1F436}","\u{1F431}","\u{1F42D}","\u{1F439}","\u{1F430}","\u{1F98A}","\u{1F43B}","\u{1F43C}","\u{1F428}","\u{1F42F}","\u{1F981}","\u{1F42E}","\u{1F437}","\u{1F43D}","\u{1F438}","\u{1F435}","\u{1F648}","\u{1F649}","\u{1F64A}","\u{1F412}","\u{1F414}","\u{1F427}","\u{1F426}","\u{1F424}","\u{1F423}","\u{1F425}","\u{1F986}","\u{1F985}","\u{1F989}","\u{1F987}","\u{1F43A}","\u{1F417}","\u{1F434}","\u{1F984}","\u{1F41D}","\u{1FAB1}","\u{1F41B}","\u{1F98B}","\u{1F40C}","\u{1F41E}","\u{1F41C}","\u{1FAB0}","\u{1FAB2}","\u{1FAB3}","\u{1F99F}","\u{1F997}","\u{1F577}\uFE0F","\u{1F578}\uFE0F","\u{1F982}","\u{1F422}","\u{1F40D}","\u{1F98E}","\u{1F996}","\u{1F995}","\u{1F419}","\u{1F991}","\u{1F990}","\u{1F99E}","\u{1F980}","\u{1F421}","\u{1F420}","\u{1F41F}","\u{1F42C}","\u{1F433}","\u{1F40B}","\u{1F988}","\u{1F40A}","\u{1F405}","\u{1F406}","\u{1F993}","\u{1F98D}","\u{1F9A7}","\u{1F9A3}","\u{1F418}","\u{1F99B}","\u{1F98F}","\u{1F42A}","\u{1F42B}","\u{1F992}","\u{1F998}"],food:["\u{1F347}","\u{1F348}","\u{1F349}","\u{1F34A}","\u{1F34B}","\u{1F34C}","\u{1F34D}","\u{1F96D}","\u{1F34E}","\u{1F34F}","\u{1F350}","\u{1F351}","\u{1F352}","\u{1F353}","\u{1FAD0}","\u{1F95D}","\u{1F345}","\u{1FAD2}","\u{1F965}","\u{1F951}","\u{1F346}","\u{1F954}","\u{1F955}","\u{1F33D}","\u{1F336}\uFE0F","\u{1FAD1}","\u{1F952}","\u{1F96C}","\u{1F966}","\u{1F9C4}","\u{1F9C5}","\u{1F344}","\u{1F95C}","\u{1F330}","\u{1F35E}","\u{1F950}","\u{1F956}","\u{1FAD3}","\u{1F968}","\u{1F96F}","\u{1F95E}","\u{1F9C7}","\u{1F9C0}","\u{1F356}","\u{1F357}","\u{1F969}","\u{1F953}","\u{1F354}","\u{1F35F}","\u{1F355}","\u{1F32D}","\u{1F96A}","\u{1F32E}","\u{1F32F}","\u{1FAD4}","\u{1F959}","\u{1F9C6}","\u{1F95A}","\u{1F373}","\u{1F958}","\u{1F372}","\u{1FAD5}","\u{1F963}","\u{1F957}","\u{1F37F}","\u{1F9C8}","\u{1F9C2}","\u{1F96B}","\u{1F371}","\u{1F358}","\u{1F359}","\u{1F35A}","\u{1F35B}","\u{1F35C}","\u{1F35D}","\u{1F360}","\u{1F362}","\u{1F363}","\u{1F364}","\u{1F365}"],travel:["\u{1F697}","\u{1F695}","\u{1F699}","\u{1F68C}","\u{1F68E}","\u{1F3CE}\uFE0F","\u{1F693}","\u{1F691}","\u{1F692}","\u{1F690}","\u{1F6FB}","\u{1F69A}","\u{1F69B}","\u{1F69C}","\u{1F9AF}","\u{1F9BD}","\u{1F9BC}","\u{1F6F4}","\u{1F6B2}","\u{1F6F5}","\u{1F3CD}\uFE0F","\u{1F6FA}","\u{1F6A8}","\u{1F694}","\u{1F68D}","\u{1F698}","\u{1F696}","\u{1F6A1}","\u{1F6A0}","\u{1F69F}","\u{1F683}","\u{1F68B}","\u{1F69E}","\u{1F69D}","\u{1F684}","\u{1F685}","\u{1F688}","\u{1F682}","\u{1F686}","\u{1F687}","\u{1F68A}","\u{1F689}","\u2708\uFE0F","\u{1F6EB}","\u{1F6EC}","\u{1F6E9}\uFE0F","\u{1F4BA}","\u{1F6F0}\uFE0F","\u{1F680}","\u{1F6F8}","\u{1F681}","\u{1F6F6}","\u26F5","\u{1F6A4}","\u{1F6E5}\uFE0F","\u{1F6F3}\uFE0F","\u26F4\uFE0F","\u{1F6A2}","\u2693","\u{1FA9D}","\u26FD","\u{1F6A7}","\u{1F6A6}","\u{1F6A5}","\u{1F68F}","\u{1F5FA}\uFE0F","\u{1F5FF}","\u{1F5FD}","\u{1F5FC}","\u{1F3F0}","\u{1F3EF}","\u{1F3DF}\uFE0F","\u{1F3A1}","\u{1F3A2}","\u{1F3A0}","\u26F2","\u26F1\uFE0F","\u{1F3D6}\uFE0F","\u{1F3DD}\uFE0F","\u{1F3DC}\uFE0F"],activities:["\u26BD","\u{1F3C0}","\u{1F3C8}","\u26BE","\u{1F94E}","\u{1F3BE}","\u{1F3D0}","\u{1F3C9}","\u{1F94F}","\u{1F3B1}","\u{1FA80}","\u{1F3D3}","\u{1F3F8}","\u{1F3D2}","\u{1F3D1}","\u{1F94D}","\u{1F3CF}","\u{1FA83}","\u{1F945}","\u26F3","\u{1FA81}","\u{1F3F9}","\u{1F3A3}","\u{1F93F}","\u{1F94A}","\u{1F94B}","\u{1F3BD}","\u{1F6F9}","\u{1F6FC}","\u{1F6F7}","\u26F8\uFE0F","\u{1F94C}","\u{1F3BF}","\u26F7\uFE0F","\u{1F3C2}","\u{1FA82}","\u{1F3CB}\uFE0F","\u{1F93C}","\u{1F938}","\u26F9\uFE0F","\u{1F93A}","\u{1F93E}","\u{1F3CC}\uFE0F","\u{1F3C7}","\u26D1\uFE0F","\u{1F9D8}","\u{1F3C4}","\u{1F3CA}","\u{1F93D}","\u{1F6A3}","\u{1F9D7}","\u{1F6B5}","\u{1F6B4}","\u{1F3C6}","\u{1F947}","\u{1F948}","\u{1F949}","\u{1F3C5}","\u{1F396}\uFE0F","\u{1F3F5}\uFE0F","\u{1F397}\uFE0F","\u{1F3AB}","\u{1F39F}\uFE0F","\u{1F3AA}","\u{1F939}","\u{1F3AD}","\u{1FA70}","\u{1F3A8}","\u{1F3AC}","\u{1F3A4}","\u{1F3A7}","\u{1F3BC}","\u{1F3B9}","\u{1F941}","\u{1FA98}","\u{1F3B7}","\u{1F3BA}","\u{1FA97}","\u{1F3B8}","\u{1FA95}"],objects:["\u231A","\u{1F4F1}","\u{1F4F2}","\u{1F4BB}","\u2328\uFE0F","\u{1F5A5}\uFE0F","\u{1F5A8}\uFE0F","\u{1F5B1}\uFE0F","\u{1F5B2}\uFE0F","\u{1F579}\uFE0F","\u{1F5DC}\uFE0F","\u{1F4BD}","\u{1F4BE}","\u{1F4BF}","\u{1F4C0}","\u{1F4FC}","\u{1F4F7}","\u{1F4F8}","\u{1F4F9}","\u{1F3A5}","\u{1F4FD}\uFE0F","\u{1F39E}\uFE0F","\u{1F4DE}","\u260E\uFE0F","\u{1F4DF}","\u{1F4E0}","\u{1F4FA}","\u{1F4FB}","\u{1F399}\uFE0F","\u{1F39A}\uFE0F","\u{1F39B}\uFE0F","\u{1F9ED}","\u23F1\uFE0F","\u23F2\uFE0F","\u23F0","\u{1F570}\uFE0F","\u231B","\u23F3","\u{1F4E1}","\u{1F50B}","\u{1F50C}","\u{1F4A1}","\u{1F526}","\u{1F56F}\uFE0F","\u{1FA94}","\u{1F9EF}","\u{1F6E2}\uFE0F","\u{1F4B8}","\u{1F4B5}","\u{1F4B4}","\u{1F4B6}","\u{1F4B7}","\u{1FA99}","\u{1F4B0}","\u{1F4B3}","\u{1F48E}","\u2696\uFE0F","\u{1FA9C}","\u{1F9F0}","\u{1FA9B}","\u{1F527}","\u{1F528}","\u2692\uFE0F","\u{1F6E0}\uFE0F","\u26CF\uFE0F","\u{1FA9A}","\u{1F529}","\u2699\uFE0F","\u{1FAA4}","\u{1F9F1}","\u26D3\uFE0F","\u{1F9F2}","\u{1F52B}","\u{1F4A3}","\u{1F9E8}","\u{1FA93}","\u{1F52A}","\u{1F5E1}\uFE0F","\u2694\uFE0F","\u{1F6E1}\uFE0F"],symbols:["\u2764\uFE0F","\u{1F9E1}","\u{1F49B}","\u{1F49A}","\u{1F499}","\u{1F49C}","\u{1F5A4}","\u{1F90D}","\u{1F90E}","\u{1F494}","\u2763\uFE0F","\u{1F495}","\u{1F49E}","\u{1F493}","\u{1F497}","\u{1F496}","\u{1F498}","\u{1F49D}","\u{1F49F}","\u262E\uFE0F","\u271D\uFE0F","\u262A\uFE0F","\u{1F549}\uFE0F","\u2638\uFE0F","\u2721\uFE0F","\u{1F52F}","\u{1F54E}","\u262F\uFE0F","\u2626\uFE0F","\u{1F6D0}","\u26CE","\u2648","\u2649","\u264A","\u264B","\u264C","\u264D","\u264E","\u264F","\u2650","\u2651","\u2652","\u2653","\u{1F194}","\u269B\uFE0F","\u{1F251}","\u2622\uFE0F","\u2623\uFE0F","\u{1F4F4}","\u{1F4F3}","\u{1F236}","\u{1F21A}","\u{1F238}","\u{1F23A}","\u{1F237}\uFE0F","\u2734\uFE0F","\u{1F19A}","\u{1F4AE}","\u{1F250}","\u3299\uFE0F","\u3297\uFE0F","\u{1F234}","\u{1F235}","\u{1F239}","\u{1F232}","\u{1F170}\uFE0F","\u{1F171}\uFE0F","\u{1F18E}","\u{1F191}","\u{1F17E}\uFE0F","\u{1F198}","\u274C","\u2B55","\u{1F6D1}","\u26D4","\u{1F4DB}","\u{1F6AB}","\u{1F4AF}","\u{1F4A2}","\u2668\uFE0F"],flags:["\u{1F3F3}\uFE0F","\u{1F3F4}","\u{1F3C1}","\u{1F6A9}","\u{1F3F3}\uFE0F\u200D\u{1F308}","\u{1F3F3}\uFE0F\u200D\u26A7\uFE0F","\u{1F1FA}\u{1F1F3}","\u{1F1E6}\u{1F1EB}","\u{1F1E6}\u{1F1F1}","\u{1F1E9}\u{1F1FF}","\u{1F1E6}\u{1F1F8}","\u{1F1E6}\u{1F1E9}","\u{1F1E6}\u{1F1F4}","\u{1F1E6}\u{1F1EE}","\u{1F1E6}\u{1F1F6}","\u{1F1E6}\u{1F1EC}","\u{1F1E6}\u{1F1F7}","\u{1F1E6}\u{1F1F2}","\u{1F1E6}\u{1F1FC}","\u{1F1E6}\u{1F1FA}","\u{1F1E6}\u{1F1F9}","\u{1F1E6}\u{1F1FF}","\u{1F1E7}\u{1F1F8}","\u{1F1E7}\u{1F1ED}","\u{1F1E7}\u{1F1E9}","\u{1F1E7}\u{1F1E7}","\u{1F1E7}\u{1F1FE}","\u{1F1E7}\u{1F1EA}","\u{1F1E7}\u{1F1FF}","\u{1F1E7}\u{1F1EF}","\u{1F1E7}\u{1F1F2}","\u{1F1E7}\u{1F1F9}","\u{1F1E7}\u{1F1F4}","\u{1F1E7}\u{1F1E6}","\u{1F1E7}\u{1F1FC}","\u{1F1E7}\u{1F1F7}","\u{1F1E7}\u{1F1F3}","\u{1F1E7}\u{1F1EC}","\u{1F1E7}\u{1F1EB}","\u{1F1E7}\u{1F1EE}","\u{1F1E8}\u{1F1FB}","\u{1F1F0}\u{1F1ED}","\u{1F1E8}\u{1F1F2}","\u{1F1E8}\u{1F1E6}","\u{1F1E8}\u{1F1EB}","\u{1F1F9}\u{1F1E9}","\u{1F1E8}\u{1F1F1}","\u{1F1E8}\u{1F1F3}","\u{1F1E8}\u{1F1F4}","\u{1F1F0}\u{1F1F2}","\u{1F1E8}\u{1F1EC}","\u{1F1E8}\u{1F1E9}","\u{1F1E8}\u{1F1F7}","\u{1F1ED}\u{1F1F7}","\u{1F1E8}\u{1F1FA}","\u{1F1E8}\u{1F1FE}","\u{1F1E8}\u{1F1FF}","\u{1F1E9}\u{1F1F0}","\u{1F1E9}\u{1F1EF}","\u{1F1E9}\u{1F1F2}","\u{1F1E9}\u{1F1F4}","\u{1F1EA}\u{1F1E8}","\u{1F1EA}\u{1F1EC}","\u{1F1F8}\u{1F1FB}","\u{1F1EC}\u{1F1F6}","\u{1F1EA}\u{1F1F7}","\u{1F1EA}\u{1F1EA}","\u{1F1EA}\u{1F1F9}","\u{1F1EA}\u{1F1FA}","\u{1F1EB}\u{1F1EF}","\u{1F1EB}\u{1F1EE}","\u{1F1EB}\u{1F1F7}","\u{1F1EC}\u{1F1E6}","\u{1F1EC}\u{1F1F2}","\u{1F1EC}\u{1F1EA}","\u{1F1E9}\u{1F1EA}","\u{1F1EC}\u{1F1ED}","\u{1F1EC}\u{1F1F7}","\u{1F1EC}\u{1F1F9}","\u{1F1EC}\u{1F1F3}"]},lb=K__namespace.forwardRef(({className:e,size:t,onEmojiSelect:r,recentEmojis:a=[],defaultCategory:n="smileys",showSearch:i=true,showCategories:s=true,...l},d)=>{let[m,u]=K__namespace.useState(a.length>0?"recent":n),[c,f]=K__namespace.useState(""),v=c?Object.values(Rl).flat().filter(g=>g.toLowerCase().includes(c.toLowerCase())):m==="recent"?a:Rl[m]||[],y=g=>{r?.(g);};return jsxRuntime.jsxs("div",{ref:d,className:o(sb({size:t,className:e})),...l,children:[i&&jsxRuntime.jsx("div",{className:"p-2 border-b",children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(lucideReact.Search,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),jsxRuntime.jsx(gn,{placeholder:"Search emojis...",value:c,onChange:g=>f(g.target.value),className:"pl-8 h-8"})]})}),s&&!c&&jsxRuntime.jsx("div",{className:"flex border-b px-1",children:Object.entries(fi).map(([g,{icon:x}])=>g==="recent"&&a.length===0?null:jsxRuntime.jsx("button",{className:o("flex-1 p-2 text-lg hover:bg-accent rounded transition-colors",m===g&&"bg-accent"),onClick:()=>u(g),title:fi[g].name,children:x},g))}),!c&&jsxRuntime.jsx("div",{className:"px-3 py-1.5 text-xs font-medium text-muted-foreground",children:fi[m].name}),jsxRuntime.jsx(ze,{className:"flex-1",children:jsxRuntime.jsxs("div",{className:"grid grid-cols-8 gap-1 p-2",children:[v.map((g,x)=>jsxRuntime.jsx("button",{className:"w-8 h-8 flex items-center justify-center text-xl hover:bg-accent rounded transition-colors",onClick:()=>y(g),children:g},`${g}-${x}`)),v.length===0&&jsxRuntime.jsx("div",{className:"col-span-8 py-8 text-center text-muted-foreground text-sm",children:"No emojis found"})]})})]})});lb.displayName="EmojiPicker";var db=classVarianceAuthority.cva("flex flex-col border rounded-lg bg-background overflow-hidden",{variants:{variant:{default:"",bordered:"border-2",ghost:"border-transparent"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),FC=classVarianceAuthority.cva("flex flex-wrap items-center gap-0.5 p-1 border-b",{variants:{size:{sm:"p-0.5",md:"p-1",lg:"p-1.5"}},defaultVariants:{size:"md"}}),OC=classVarianceAuthority.cva("flex-1 overflow-auto prose prose-sm max-w-none dark:prose-invert [&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[inherit] [&_.ProseMirror.is-editor-empty:first-child::before]:text-muted-foreground [&_.ProseMirror.is-editor-empty:first-child::before]:content-[attr(data-placeholder)] [&_.ProseMirror.is-editor-empty:first-child::before]:float-left [&_.ProseMirror.is-editor-empty:first-child::before]:pointer-events-none [&_.ProseMirror.is-editor-empty:first-child::before]:h-0",{variants:{size:{sm:"min-h-[100px] [&_.ProseMirror]:p-2 text-sm",md:"min-h-[150px] [&_.ProseMirror]:p-3 text-sm",lg:"min-h-[200px] [&_.ProseMirror]:p-4 text-base"}},defaultVariants:{size:"md"}}),De=({icon:e,title:t,isActive:r,onClick:a,disabled:n})=>jsxRuntime.jsxs(oa,{children:[jsxRuntime.jsx(na,{asChild:true,children:jsxRuntime.jsx($,{type:"button",variant:r?"solid":"ghost",size:"icon",className:"h-7 w-7",onClick:a,disabled:n,children:e})}),jsxRuntime.jsx(Dr,{side:"top",className:"text-xs",children:t})]}),cb=K__namespace.forwardRef(({className:e,variant:t,size:r,value:a="",onChange:n,placeholder:i="Start writing...",readOnly:s=false,showToolbar:l=true,minHeight:d,maxHeight:m,onEditorReady:u,...c},f)=>{let p=react.useEditor({extensions:[bC__default.default.configure({heading:{levels:[1,2,3]}}),vC__default.default.configure({openOnClick:false,HTMLAttributes:{class:"text-primary underline"}}),hC__default.default,xC__default.default.configure({types:["heading","paragraph"]}),yC__default.default.configure({placeholder:i})],content:a,editable:!s,onUpdate:({editor:y})=>{n?.(y.getHTML());},onCreate:({editor:y})=>{u?.(y);}});K__namespace.useEffect(()=>{p&&a!==p.getHTML()&&p.commands.setContent(a);},[a,p]),K__namespace.useEffect(()=>{p&&p.setEditable(!s);},[s,p]);let v=()=>{if(!p)return;let y=p.getAttributes("link").href,g=window.prompt("URL",y);if(g!==null){if(g===""){p.chain().focus().extendMarkRange("link").unsetLink().run();return}p.chain().focus().extendMarkRange("link").setLink({href:g}).run();}};return p?jsxRuntime.jsx(aa,{children:jsxRuntime.jsxs("div",{ref:f,className:o(db({variant:t,size:r,className:e})),...c,children:[l&&!s&&jsxRuntime.jsxs("div",{className:o(FC({size:r})),children:[jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Undo,{className:"h-4 w-4"}),title:"Undo",onClick:()=>p.chain().focus().undo().run(),disabled:!p.can().undo()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Redo,{className:"h-4 w-4"}),title:"Redo",onClick:()=>p.chain().focus().redo().run(),disabled:!p.can().redo()}),jsxRuntime.jsx(kr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Heading1,{className:"h-4 w-4"}),title:"Heading 1",isActive:p.isActive("heading",{level:1}),onClick:()=>p.chain().focus().toggleHeading({level:1}).run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Heading2,{className:"h-4 w-4"}),title:"Heading 2",isActive:p.isActive("heading",{level:2}),onClick:()=>p.chain().focus().toggleHeading({level:2}).run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Heading3,{className:"h-4 w-4"}),title:"Heading 3",isActive:p.isActive("heading",{level:3}),onClick:()=>p.chain().focus().toggleHeading({level:3}).run()}),jsxRuntime.jsx(kr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Bold,{className:"h-4 w-4"}),title:"Bold (Ctrl+B)",isActive:p.isActive("bold"),onClick:()=>p.chain().focus().toggleBold().run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Italic,{className:"h-4 w-4"}),title:"Italic (Ctrl+I)",isActive:p.isActive("italic"),onClick:()=>p.chain().focus().toggleItalic().run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Underline,{className:"h-4 w-4"}),title:"Underline (Ctrl+U)",isActive:p.isActive("underline"),onClick:()=>p.chain().focus().toggleUnderline().run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Strikethrough,{className:"h-4 w-4"}),title:"Strikethrough",isActive:p.isActive("strike"),onClick:()=>p.chain().focus().toggleStrike().run()}),jsxRuntime.jsx(kr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.List,{className:"h-4 w-4"}),title:"Bullet List",isActive:p.isActive("bulletList"),onClick:()=>p.chain().focus().toggleBulletList().run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.ListOrdered,{className:"h-4 w-4"}),title:"Numbered List",isActive:p.isActive("orderedList"),onClick:()=>p.chain().focus().toggleOrderedList().run()}),jsxRuntime.jsx(kr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.AlignLeft,{className:"h-4 w-4"}),title:"Align Left",isActive:p.isActive({textAlign:"left"}),onClick:()=>p.chain().focus().setTextAlign("left").run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.AlignCenter,{className:"h-4 w-4"}),title:"Align Center",isActive:p.isActive({textAlign:"center"}),onClick:()=>p.chain().focus().setTextAlign("center").run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.AlignRight,{className:"h-4 w-4"}),title:"Align Right",isActive:p.isActive({textAlign:"right"}),onClick:()=>p.chain().focus().setTextAlign("right").run()}),jsxRuntime.jsx(kr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Quote,{className:"h-4 w-4"}),title:"Blockquote",isActive:p.isActive("blockquote"),onClick:()=>p.chain().focus().toggleBlockquote().run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Code,{className:"h-4 w-4"}),title:"Code Block",isActive:p.isActive("codeBlock"),onClick:()=>p.chain().focus().toggleCodeBlock().run()}),jsxRuntime.jsx(kr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Link,{className:"h-4 w-4"}),title:"Insert Link",isActive:p.isActive("link"),onClick:v}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Unlink,{className:"h-4 w-4"}),title:"Remove Link",onClick:()=>p.chain().focus().unsetLink().run(),disabled:!p.isActive("link")})]}),jsxRuntime.jsx(react.EditorContent,{editor:p,className:o(OC({size:r})),style:{minHeight:d,maxHeight:m}})]})}):null});cb.displayName="RichTextEditor";var ub=classVarianceAuthority.cva("flex flex-col border rounded-lg bg-background overflow-hidden",{variants:{variant:{default:"",bordered:"border-2",ghost:"border-none bg-transparent"}},defaultVariants:{variant:"default"}});function jC(e,t,r){return GC.centerCrop(GC.makeAspectCrop({unit:"%",width:90},r,e,t),e,t)}async function mb(e,t,r=0,a=1){let n=document.createElement("canvas"),i=n.getContext("2d");if(!i)return null;let s=e.naturalWidth/e.width,l=e.naturalHeight/e.height,d=window.devicePixelRatio||1;n.width=Math.floor(t.width*s*d),n.height=Math.floor(t.height*l*d),i.scale(d,d),i.imageSmoothingQuality="high";let m=t.x*s,u=t.y*l,c=r*Math.PI/180,f=e.naturalWidth/2,p=e.naturalHeight/2;return i.save(),i.translate(-m,-u),i.translate(f,p),i.rotate(c),i.scale(a,a),i.translate(-f,-p),i.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.naturalWidth,e.naturalHeight),i.restore(),new Promise(v=>{n.toBlob(y=>{v(y);},"image/png");})}var pb=K__namespace.forwardRef(({className:e,variant:t,src:r,aspectRatio:a,onCropChange:n,onCropComplete:i,showZoom:s=true,showRotation:l=true,minZoom:d=1,maxZoom:m=3,circularCrop:u=false,initialCrop:c,...f},p)=>{let v=K__namespace.useRef(null),[y,g]=K__namespace.useState(),[x,R]=K__namespace.useState(),[b,h]=K__namespace.useState(1),[P,w]=K__namespace.useState(0),M=T=>{let{width:k,height:V}=T.currentTarget;if(a){let E=jC(k,V,a);g(E);}else g(c||{unit:"%",x:10,y:10,width:80,height:80});},C=T=>{g(T),n?.(T);},S=async T=>{if(R(T),i&&v.current&&T.width&&T.height){let k=await mb(v.current,T,P,b);i(k);}},N=()=>{w(T=>(T+90)%360);};return K__namespace.useEffect(()=>{x&&v.current&&i&&mb(v.current,x,P,b).then(T=>{i(T);});},[b,P,x,i]),jsxRuntime.jsxs("div",{ref:p,className:o(ub({variant:t,className:e})),...f,children:[jsxRuntime.jsx("div",{className:"flex-1 flex items-center justify-center p-4 bg-muted/30 min-h-[300px]",children:jsxRuntime.jsx(GC__default.default,{crop:y,onChange:C,onComplete:S,aspect:a,circularCrop:u,className:"max-h-[400px]",children:jsxRuntime.jsx("img",{ref:v,src:r,alt:"Crop preview",onLoad:M,style:{transform:`scale(${b}) rotate(${P}deg)`,maxHeight:"400px"}})})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-4 p-3 border-t",children:[s&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[jsxRuntime.jsx(lucideReact.ZoomOut,{className:"h-4 w-4 text-muted-foreground"}),jsxRuntime.jsx(Sn,{value:[b],onValueChange:([T])=>h(T),min:d,max:m,step:.1,className:"flex-1"}),jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-4 w-4 text-muted-foreground"})]}),l&&jsxRuntime.jsx($,{variant:"bordered",size:"icon",onClick:N,children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-4 w-4"})})]})]})});pb.displayName="ImageCropper";var Cl=classVarianceAuthority.cva("inline-block",{variants:{variant:{default:"",bordered:"border rounded-lg p-2",card:"border rounded-lg p-4 bg-card shadow-sm"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),ZC={sm:96,md:128,lg:192},gb=K__namespace.forwardRef(({className:e,variant:t,size:r,value:a,qrSize:n,fgColor:i="currentColor",bgColor:s="transparent",level:l="M",includeMargin:d=false,title:m,logo:u,logoSize:c=40,logoPadding:f=4,logoBackgroundColor:p="white",...v},y)=>{let g=n??ZC[r??"md"];return a?jsxRuntime.jsx("div",{ref:y,className:o(Cl({variant:t,size:r,className:e})),...v,children:jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx(XC__default.default,{value:a,size:g,fgColor:i,bgColor:s,level:l,title:m,style:{padding:d?16:0}}),u&&jsxRuntime.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded",style:{padding:f,backgroundColor:p},children:jsxRuntime.jsx("img",{src:u,alt:"Logo",style:{width:c,height:c,objectFit:"contain"}})})]})}):jsxRuntime.jsx("div",{ref:y,className:o(Cl({variant:t,size:r,className:e})),...v,children:jsxRuntime.jsx("div",{className:"flex items-center justify-center bg-muted text-muted-foreground text-xs rounded",style:{width:g,height:g},children:"No data"})})});gb.displayName="QRCode";var bb=({children:e,defaultTheme:t="system",storageKey:r="reever-ui-theme",enableSystem:a=true,disableTransitionOnChange:n=false,attribute:i="class",forcedTheme:s,themes:l=["light","dark"]})=>jsxRuntime.jsx(nextThemes.ThemeProvider,{defaultTheme:t,storageKey:r,enableSystem:a,disableTransitionOnChange:n,attribute:i,forcedTheme:s,themes:l,children:e});bb.displayName="ThemeProvider";var oS=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"",ghost:""},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"ghost",size:"md"}}),vb=K__namespace.forwardRef(({className:e,variant:t="ghost",size:r="md",mode:a="dropdown"},n)=>{let{theme:i,setTheme:s,resolvedTheme:l}=nextThemes.useTheme(),[d,m]=K__namespace.useState(false);K__namespace.useEffect(()=>{m(true);},[]);let u=()=>{let c=["light","dark","system"],p=(c.indexOf(i||"system")+1)%c.length;s(c[p]);};return d?a==="cycle"?jsxRuntime.jsxs($,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:o("h-9 w-9",e),onClick:u,children:[l==="dark"?jsxRuntime.jsx(lucideReact.Moon,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Sun,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle theme"})]}):jsxRuntime.jsxs(ia,{children:[jsxRuntime.jsx(sa,{asChild:true,children:jsxRuntime.jsxs($,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:o("h-9 w-9",e),children:[jsxRuntime.jsx(lucideReact.Sun,{className:"h-4 w-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),jsxRuntime.jsx(lucideReact.Moon,{className:"absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),jsxRuntime.jsxs(Vr,{align:"end",children:[jsxRuntime.jsxs(Lt,{onClick:()=>s("light"),children:[jsxRuntime.jsx(lucideReact.Sun,{className:"mr-2 h-4 w-4"}),"Light"]}),jsxRuntime.jsxs(Lt,{onClick:()=>s("dark"),children:[jsxRuntime.jsx(lucideReact.Moon,{className:"mr-2 h-4 w-4"}),"Dark"]}),jsxRuntime.jsxs(Lt,{onClick:()=>s("system"),children:[jsxRuntime.jsx(lucideReact.Monitor,{className:"mr-2 h-4 w-4"}),"System"]})]})]}):jsxRuntime.jsxs($,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:o("h-9 w-9",e),disabled:true,children:[jsxRuntime.jsx(lucideReact.Sun,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle theme"})]})});vb.displayName="ThemeToggle";var xb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),yb=classVarianceAuthority.cva("flex w-full rounded-md border border-input bg-background ring-offset-background file:border-0 file:bg-transparent file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2.5 py-1.5 text-xs",md:"h-10 px-3 py-2 text-sm",lg:"h-12 px-4 py-3 text-base"},isInvalid:{true:"border-danger focus-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),Rb=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),wb=K__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,startContent:c,endContent:f,id:p,...v},y)=>{let g=K__namespace.useId(),x=p||g,R=`${x}-description`,b=`${x}-error`,h=i&&a;return jsxRuntime.jsxs("div",{className:o(xb({size:s}),e),children:[t&&jsxRuntime.jsxs(es__namespace.Root,{htmlFor:x,className:o(Rb({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[c&&jsxRuntime.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:c}),jsxRuntime.jsx("input",{ref:y,id:x,"aria-invalid":i,"aria-describedby":h?b:r?R:void 0,"aria-required":n,className:o(yb({size:s,isInvalid:i}),c&&"pl-10",f&&"pr-10",d),...v}),f&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:f})]}),r&&!h&&jsxRuntime.jsx("p",{id:R,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:r}),h&&jsxRuntime.jsx("p",{id:b,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:a})]})});wb.displayName="TextField";var Sb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),sS=classVarianceAuthority.cva("flex rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 text-center [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",{variants:{size:{sm:"h-8 px-8 py-1.5 text-xs",md:"h-10 px-10 py-2 text-sm",lg:"h-12 px-12 py-3 text-base"},isInvalid:{true:"border-danger focus:border-danger",false:""},fullWidth:{true:"w-full",false:"w-fit min-w-24"}},defaultVariants:{size:"md",isInvalid:false,fullWidth:false}}),Nb=classVarianceAuthority.cva("absolute top-1/2 -translate-y-1/2 flex items-center justify-center rounded-md text-muted-foreground hover:text-foreground hover:bg-muted disabled:opacity-50 disabled:cursor-not-allowed transition-colors",{variants:{size:{sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{size:"md"}}),Pb=classVarianceAuthority.cva("",{variants:{size:{sm:"h-3 w-3",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),lS=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Mb=K__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,min:c,max:f,step:p=1,value:v,defaultValue:y,onChange:g,showButtons:x=true,formatOptions:R,fullWidth:b=false,disabled:h,id:P,...w},M)=>{let C=K__namespace.useId(),S=P||C,N=`${S}-description`,T=`${S}-error`,[k,V]=K__namespace.useState(y),[E,I]=K__namespace.useState(false),D=v!==void 0?v:k,L=i&&a,A=K__namespace.useCallback(F=>{F!==void 0&&(c!==void 0&&F<c&&(F=c),f!==void 0&&F>f&&(F=f)),v===void 0&&V(F),g?.(F);},[v,c,f,g]),B=()=>{let F=(D??0)+p;A(F);},H=()=>{let F=(D??0)-p;A(F);},j=F=>{let te=F.target.value;if(te==="")A(void 0);else {let O=parseFloat(te);isNaN(O)||A(O);}},W=F=>{F.key==="ArrowUp"?(F.preventDefault(),B()):F.key==="ArrowDown"&&(F.preventDefault(),H());},Le=K__namespace.useMemo(()=>D===void 0?"":R?new Intl.NumberFormat(void 0,R).format(D):D.toString(),[D,R]),xe=c!==void 0&&D!==void 0&&D<=c,z=f!==void 0&&D!==void 0&&D>=f;return jsxRuntime.jsxs("div",{className:o(Sb({size:s}),e),children:[t&&jsxRuntime.jsxs(es__namespace.Root,{htmlFor:S,className:o(lS({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[x&&jsxRuntime.jsx("button",{type:"button",onClick:H,disabled:h||xe,className:o(Nb({size:s}),"left-1"),tabIndex:-1,"aria-label":"Decrease value",children:jsxRuntime.jsx(lucideReact.Minus,{className:o(Pb({size:s}))})}),jsxRuntime.jsx("input",{ref:M,id:S,type:"text",inputMode:"decimal",value:Le,onChange:j,onKeyDown:W,onFocus:()=>I(true),onBlur:()=>I(false),"aria-invalid":i,"aria-describedby":L?T:r?N:void 0,"aria-required":n,"aria-valuemin":c,"aria-valuemax":f,"aria-valuenow":D,disabled:h,className:o(sS({size:s,isInvalid:i,fullWidth:b}),!x&&"px-3",d),style:{borderColor:E?"var(--color-foreground)":void 0},...w}),x&&jsxRuntime.jsx("button",{type:"button",onClick:B,disabled:h||z,className:o(Nb({size:s}),"right-1"),tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:o(Pb({size:s}))})})]}),r&&!L&&jsxRuntime.jsx("p",{id:N,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:r}),L&&jsxRuntime.jsx("p",{id:T,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:a})]})});Mb.displayName="NumberField";var Db=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),mS=classVarianceAuthority.cva("flex w-full rounded-md border border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 pl-8 pr-8 py-1.5 text-xs",md:"h-10 pl-10 pr-10 py-2 text-sm",lg:"h-12 pl-12 pr-12 py-3 text-base"},isInvalid:{true:"border-danger focus-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),Tb=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),uS=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),pS=classVarianceAuthority.cva("absolute top-1/2 -translate-y-1/2 flex items-center justify-center rounded-full text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",{variants:{size:{sm:"h-5 w-5 right-1.5",md:"h-6 w-6 right-2",lg:"h-7 w-7 right-2.5"}},defaultVariants:{size:"md"}}),Vb=K__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:f="",onChange:p,onClear:v,onSearch:y,showClearButton:g=true,showSearchIcon:x=true,disabled:R,placeholder:b="Search...",id:h,...P},w)=>{let M=K__namespace.useId(),C=h||M,S=`${C}-description`,N=`${C}-error`,[T,k]=K__namespace.useState(f),V=c!==void 0?c:T,E=i&&a,I=V.length>0,D=B=>{let H=B.target.value;c===void 0&&k(H),p?.(H);},L=()=>{c===void 0&&k(""),p?.(""),v?.();},A=B=>{B.key==="Enter"?(B.preventDefault(),y?.(V)):B.key==="Escape"&&I&&(B.preventDefault(),L());};return jsxRuntime.jsxs("div",{className:o(Db({size:s}),e),children:[t&&jsxRuntime.jsxs(es__namespace.Root,{htmlFor:C,className:o(uS({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[x&&jsxRuntime.jsx(lucideReact.Search,{className:o(Tb({size:s}),"absolute left-3 top-1/2 -translate-y-1/2")}),jsxRuntime.jsx("input",{ref:w,id:C,type:"search",value:V,onChange:D,onKeyDown:A,placeholder:b,"aria-invalid":i,"aria-describedby":E?N:r?S:void 0,"aria-required":n,disabled:R,className:o(mS({size:s,isInvalid:i}),!x&&"pl-3",!g&&"pr-3",d),...P}),g&&I&&!R&&jsxRuntime.jsx("button",{type:"button",onClick:L,className:o(pS({size:s})),tabIndex:-1,"aria-label":"Clear search",children:jsxRuntime.jsx(lucideReact.X,{className:o(Tb({size:s}))})})]}),r&&!E&&jsxRuntime.jsx("p",{id:S,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:r}),E&&jsxRuntime.jsx("p",{id:N,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:a})]})});Vb.displayName="SearchField";var Ib=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),gS=classVarianceAuthority.cva("flex rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 [&::-webkit-calendar-picker-indicator]:hidden",{variants:{size:{sm:"h-8 pl-3 pr-8 py-1.5 text-xs",md:"h-10 pl-3 pr-10 py-2 text-sm",lg:"h-12 pl-4 pr-12 py-3 text-base"},isInvalid:{true:"border-danger focus:border-danger",false:""},fullWidth:{true:"w-full",false:"w-fit"}},defaultVariants:{size:"md",isInvalid:false,fullWidth:false}}),bS=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),vS=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Vl=(e,t="yyyy-MM-dd")=>{if(!e)return "";let r=e.getFullYear(),a=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return t.replace("yyyy",String(r)).replace("MM",a).replace("dd",n)},hS=e=>{if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t},Eb=K__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:f,onChange:p,minDate:v,maxDate:y,dateFormat:g="yyyy-MM-dd",showIcon:x=true,fullWidth:R=false,disabled:b,id:h,...P},w)=>{let M=K__namespace.useId(),C=h||M,S=`${C}-description`,N=`${C}-error`,T=K__namespace.useRef(null),k=w||T,[V,E]=K__namespace.useState(f??null),[I,D]=K__namespace.useState(false),L=()=>{!b&&k.current&&k.current.showPicker?.();},A=c!==void 0?c:V,B=i&&a,H=xe=>{let z=hS(xe.target.value);c===void 0&&E(z),p?.(z);},j=A?Vl(A,"yyyy-MM-dd"):"",W=v?Vl(v,"yyyy-MM-dd"):void 0,Le=y?Vl(y,"yyyy-MM-dd"):void 0;return jsxRuntime.jsxs("div",{className:o(Ib({size:s}),e),children:[t&&jsxRuntime.jsxs(es__namespace.Root,{htmlFor:C,className:o(vS({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:o("relative",R?"w-full":"w-fit"),children:[jsxRuntime.jsx("input",{ref:k,id:C,type:"date",value:j,onChange:H,onFocus:()=>D(true),onBlur:()=>D(false),min:W,max:Le,"aria-invalid":i,"aria-describedby":B?N:r?S:void 0,"aria-required":n,disabled:b,className:o(gS({size:s,isInvalid:i,fullWidth:R}),!x&&"pr-3",d),style:{borderColor:I?"var(--color-foreground)":void 0},...P}),x&&jsxRuntime.jsx("button",{type:"button",onClick:L,disabled:b,className:"absolute right-3 top-1/2 -translate-y-1/2 cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",tabIndex:-1,"aria-label":"Open calendar",children:jsxRuntime.jsx(lucideReact.Calendar,{className:o(bS({size:s}))})})]}),r&&!B&&jsxRuntime.jsx("p",{id:S,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:r}),B&&jsxRuntime.jsx("p",{id:N,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:a})]})});Eb.displayName="DateField";var Ab=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),xS=classVarianceAuthority.cva("inline-flex items-center rounded-md border border-input bg-background transition-colors",{variants:{size:{sm:"h-8 px-2 gap-0.5 text-xs",md:"h-10 px-3 gap-1 text-sm",lg:"h-12 px-4 gap-1.5 text-base"},isInvalid:{true:"border-danger",false:""},disabled:{true:"cursor-not-allowed opacity-50",false:""},fullWidth:{true:"w-full justify-center",false:"w-fit"}},defaultVariants:{size:"md",isInvalid:false,disabled:false,fullWidth:false}}),yS=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),zb=K__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:f,onChange:p,minTime:v,maxTime:y,showSeconds:g=false,hourCycle:x=24,disabled:R,fullWidth:b=false,id:h,...P},w)=>{let M=K__namespace.useId(),C=h||M,S=`${C}-description`,N=`${C}-error`,T=K__namespace.useRef(null),k=K__namespace.useRef(null),V=K__namespace.useRef(null),E=K__namespace.useRef(null),[I,D]=K__namespace.useState(f??null),L=c!==void 0?c:I,A=i&&a,B=G=>x===24?G:G===0?12:G>12?G-12:G,H=G=>G>=12?"PM":"AM",j=(G,Z)=>Z==="AM"?G===12?0:G:G===12?12:G+12,[W,Le]=K__namespace.useState(L?String(B(L.hour)).padStart(2,"0"):""),[xe,z]=K__namespace.useState(L?String(L.minute).padStart(2,"0"):""),[F,te]=K__namespace.useState(L?.second!==void 0?String(L.second).padStart(2,"0"):""),[O,oe]=K__namespace.useState(L?H(L.hour):"AM"),[ee,at]=K__namespace.useState(false);K__namespace.useEffect(()=>{c!==void 0&&(c?(Le(String(B(c.hour)).padStart(2,"0")),z(String(c.minute).padStart(2,"0")),c.second!==void 0&&te(String(c.second).padStart(2,"0")),oe(H(c.hour))):(Le(""),z(""),te("")));},[c,x]);let ot=(G,Z,Ie,Zt)=>{let fe=parseInt(G,10),ht=parseInt(Z,10),Jt=g?parseInt(Ie,10):void 0;if(isNaN(fe)||isNaN(ht)||g&&isNaN(Jt)){c===void 0&&D(null),p?.(null);return}let id={hour:x===12?j(fe,Zt):fe,minute:ht,...g&&Jt!==void 0&&{second:Jt}};c===void 0&&D(id),p?.(id);},Hx=G=>{let Z=G.target.value.replace(/\D/g,"").slice(0,2);Le(Z);let Ie=x===24?23:12,Zt=x===24?0:1;if(Z.length===2){let fe=parseInt(Z,10);fe>=Zt&&fe<=Ie&&(k.current?.focus(),k.current?.select());}},Ax=G=>{let Z=G.target.value.replace(/\D/g,"").slice(0,2);if(z(Z),Z.length===2){let Ie=parseInt(Z,10);Ie>=0&&Ie<=59&&(g?(V.current?.focus(),V.current?.select()):x===12&&E.current?.focus());}},zx=G=>{let Z=G.target.value.replace(/\D/g,"").slice(0,2);te(Z),Z.length===2&&x===12&&E.current?.focus();},Bx=()=>{if(W){let G=parseInt(W,10),Z=x===24?23:12,Zt=Math.min(Math.max(G,x===24?0:1),Z),fe=String(Zt).padStart(2,"0");Le(fe),ot(fe,xe,F,O);}},Fx=()=>{if(xe){let G=parseInt(xe,10),Z=Math.min(Math.max(G,0),59),Ie=String(Z).padStart(2,"0");z(Ie),ot(W,Ie,F,O);}},Ox=()=>{if(F){let G=parseInt(F,10),Z=Math.min(Math.max(G,0),59),Ie=String(Z).padStart(2,"0");te(Ie),ot(W,xe,Ie,O);}},nd=()=>{let G=O==="AM"?"PM":"AM";oe(G),ot(W,xe,F,G);},Gx=G=>{let Z=G.key.toLowerCase();Z==="a"?(G.preventDefault(),O!=="AM"&&(oe("AM"),ot(W,xe,F,"AM"))):Z==="p"?(G.preventDefault(),O!=="PM"&&(oe("PM"),ot(W,xe,F,"PM"))):Z==="arrowup"||Z==="arrowdown"?(G.preventDefault(),nd()):Z==="arrowleft"&&(G.preventDefault(),g?(V.current?.focus(),V.current?.select()):(k.current?.focus(),k.current?.select()));},Yi=(G,Z)=>{if(G.key==="ArrowUp"||G.key==="ArrowDown"){G.preventDefault();let Ie=G.key==="ArrowUp"?1:-1;if(Z==="hour"){let Zt=parseInt(W,10)||0,fe=x===24?23:12,ht=x===24?0:1,Jt=Zt+Ie;Jt>fe&&(Jt=ht),Jt<ht&&(Jt=fe);let ji=String(Jt).padStart(2,"0");Le(ji),ot(ji,xe,F,O);}else if(Z==="minute"){let fe=(parseInt(xe,10)||0)+Ie;fe>59&&(fe=0),fe<0&&(fe=59);let ht=String(fe).padStart(2,"0");z(ht),ot(W,ht,F,O);}else if(Z==="second"){let fe=(parseInt(F,10)||0)+Ie;fe>59&&(fe=0),fe<0&&(fe=59);let ht=String(fe).padStart(2,"0");te(ht),ot(W,xe,ht,O);}}G.key==="ArrowRight"&&(G.preventDefault(),Z==="hour"?(k.current?.focus(),k.current?.select()):Z==="minute"&&g?(V.current?.focus(),V.current?.select()):(Z==="minute"&&!g&&x===12||Z==="second"&&x===12)&&E.current?.focus()),G.key==="ArrowLeft"&&(G.preventDefault(),Z==="minute"?(T.current?.focus(),T.current?.select()):Z==="second"&&(k.current?.focus(),k.current?.select())),G.key==="Backspace"&&G.currentTarget.value===""&&(Z==="minute"?T.current?.focus():Z==="second"&&k.current?.focus());},Ui=o((()=>{switch(s){case "sm":return "w-5";case "lg":return "w-7";default:return "w-6"}})(),"bg-transparent text-center outline-none placeholder:text-muted-foreground tabular-nums",R&&"cursor-not-allowed");return jsxRuntime.jsxs("div",{ref:w,className:o(Ab({size:s}),e),...P,children:[t&&jsxRuntime.jsxs(es__namespace.Root,{htmlFor:C,className:o(yS({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:o(xS({size:s,isInvalid:i,disabled:R,fullWidth:b}),d),style:{borderColor:ee?"var(--color-foreground)":void 0},onFocus:()=>at(true),onBlur:G=>{G.currentTarget.contains(G.relatedTarget)||at(false);},children:[jsxRuntime.jsx("input",{ref:T,id:C,type:"text",inputMode:"numeric",placeholder:x===24?"HH":"hh",value:W,onChange:Hx,onBlur:Bx,onKeyDown:G=>Yi(G,"hour"),onFocus:G=>G.target.select(),"aria-label":"Hour","aria-invalid":i,"aria-describedby":A?N:r?S:void 0,"aria-required":n,disabled:R,className:Ui}),jsxRuntime.jsx("span",{className:"text-muted-foreground",children:":"}),jsxRuntime.jsx("input",{ref:k,type:"text",inputMode:"numeric",placeholder:"mm",value:xe,onChange:Ax,onBlur:Fx,onKeyDown:G=>Yi(G,"minute"),onFocus:G=>G.target.select(),"aria-label":"Minute",disabled:R,className:Ui}),g&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"text-muted-foreground",children:":"}),jsxRuntime.jsx("input",{ref:V,type:"text",inputMode:"numeric",placeholder:"ss",value:F,onChange:zx,onBlur:Ox,onKeyDown:G=>Yi(G,"second"),onFocus:G=>G.target.select(),"aria-label":"Second",disabled:R,className:Ui})]}),x===12&&jsxRuntime.jsx("button",{ref:E,type:"button",onClick:nd,onKeyDown:Gx,disabled:R,className:o("ml-0.5 rounded text-muted-foreground hover:text-foreground focus:outline-none focus:text-foreground transition-colors tabular-nums",s==="sm"?"w-6":s==="lg"?"w-8":"w-7",R&&"cursor-not-allowed"),"aria-label":"AM/PM",children:O})]}),r&&!A&&jsxRuntime.jsx("p",{id:S,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:r}),A&&jsxRuntime.jsx("p",{id:N,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:a})]})});zb.displayName="TimeField";var Ob=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),wS=classVarianceAuthority.cva("flex rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 font-mono uppercase",{variants:{size:{sm:"h-8 pl-10 pr-3 py-1.5 text-xs",md:"h-10 pl-12 pr-3 py-2 text-sm",lg:"h-12 pl-14 pr-4 py-3 text-base"},isInvalid:{true:"border-danger focus:border-danger",false:""},fullWidth:{true:"w-full",false:"w-fit"}},defaultVariants:{size:"md",isInvalid:false,fullWidth:false}}),NS=classVarianceAuthority.cva("absolute left-2 top-1/2 -translate-y-1/2 rounded border border-input overflow-hidden",{variants:{size:{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}},defaultVariants:{size:"md"}}),PS=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Bb=e=>/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.test(e),CS=e=>(e.startsWith("#")||(e="#"+e),e.length===4&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),e.toUpperCase()),Gb=K__namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:f="#000000",onChange:p,showSwatch:v=true,showPicker:y=true,allowAlpha:g=false,fullWidth:x=false,disabled:R,id:b,...h},P)=>{let w=K__namespace.useId(),M=b||w,C=`${M}-picker`,S=`${M}-description`,N=`${M}-error`,[T,k]=K__namespace.useState(f),[V,E]=K__namespace.useState(false),I=c!==void 0?c:T,D=i&&a,L=j=>{let W=j.target.value;W&&!W.startsWith("#")&&(W="#"+W),c===void 0&&k(W),p?.(W);},A=j=>{let W=j.target.value.toUpperCase();c===void 0&&k(W),p?.(W);},B=()=>{if(I&&Bb(I)){let j=CS(I);j!==I&&(c===void 0&&k(j),p?.(j));}},H=Bb(I)?I:"#000000";return jsxRuntime.jsxs("div",{className:o(Ob({size:s}),e),children:[t&&jsxRuntime.jsxs(es__namespace.Root,{htmlFor:M,className:o(PS({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[v&&jsxRuntime.jsx("div",{className:o(NS({size:s})),children:y?jsxRuntime.jsxs("label",{htmlFor:C,className:"block h-full w-full cursor-pointer",children:[jsxRuntime.jsx("input",{id:C,type:"color",value:H,onChange:A,disabled:R,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0",tabIndex:-1}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:H}})]}):jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:H}})}),jsxRuntime.jsx("input",{ref:P,id:M,type:"text",value:I,onChange:L,onFocus:()=>E(true),onBlur:()=>{E(false),B();},placeholder:"#000000",maxLength:g?9:7,"aria-invalid":i,"aria-describedby":D?N:r?S:void 0,"aria-required":n,disabled:R,className:o(wS({size:s,isInvalid:i,fullWidth:x}),!v&&"pl-3",d),style:{borderColor:V?"var(--color-foreground)":void 0},...h})]}),r&&!D&&jsxRuntime.jsx("p",{id:S,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:r}),D&&jsxRuntime.jsx("p",{id:N,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:a})]})});Gb.displayName="ColorField";var $b=classVarianceAuthority.cva("inline-flex",{variants:{variant:{default:"",attached:"[&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-r-none [&>*:last-child]:rounded-l-none [&>*:not(:first-child)]:-ml-px"},orientation:{horizontal:"flex-row",vertical:"flex-col [&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-b-none [&>*:last-child]:rounded-t-none [&>*:not(:first-child)]:-mt-px [&>*:not(:first-child)]:ml-0"},spacing:{none:"gap-0",sm:"gap-1",md:"gap-2",lg:"gap-3"}},compoundVariants:[{variant:"attached",spacing:["sm","md","lg"],className:"gap-0"}],defaultVariants:{variant:"default",orientation:"horizontal",spacing:"sm"}}),_b=K__namespace.createContext({});function MS(){return K__namespace.useContext(_b)}var Kb=K__namespace.forwardRef(({className:e,variant:t,orientation:r,spacing:a,disabled:n,children:i,...s},l)=>jsxRuntime.jsx(_b.Provider,{value:{disabled:n},children:jsxRuntime.jsx("div",{ref:l,role:"group",className:o($b({variant:t,orientation:r,spacing:a,className:e})),...s,children:i})}));Kb.displayName="ButtonGroup";var Ub=classVarianceAuthority.cva("inline-flex items-center justify-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",soft:"bg-primary/10 text-primary hover:bg-primary/20",surface:"bg-muted text-muted-foreground hover:bg-muted/80"},size:{sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10",xl:"h-12 w-12"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{variant:"ghost",size:"md",radius:"md"}}),jb=K__namespace.forwardRef(({className:e,variant:t,size:r,radius:a,isLoading:n,disabled:i,children:s,...l},d)=>{let m={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5",xl:"h-6 w-6"}[r??"md"];return jsxRuntime.jsx("button",{ref:d,type:"button",disabled:i||n,className:o(Ub({variant:t,size:r,radius:a,className:e})),...l,children:n?jsxRuntime.jsxs("svg",{className:o("animate-spin",m),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):jsxRuntime.jsx("span",{className:o("[&>svg]:h-full [&>svg]:w-full",m),children:s})})});jb.displayName="IconButton";var qb=classVarianceAuthority.cva("inline-flex items-center",{variants:{variant:{default:"gap-1",compact:"gap-0.5",attached:"[&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-r-none [&>*:last-child]:rounded-l-none [&>*:not(:first-child)]:-ml-px gap-0"},orientation:{horizontal:"flex-row",vertical:"flex-col [&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-b-none [&>*:last-child]:rounded-t-none [&>*:not(:first-child)]:-mt-px [&>*:not(:first-child)]:ml-0"},size:{sm:"",md:"",lg:""},density:{compact:"gap-0.5",regular:"gap-1",spacious:"gap-2"}},defaultVariants:{variant:"default",orientation:"horizontal",size:"md",density:"regular"}}),Zb=K__namespace.forwardRef(({className:e,variant:t,orientation:r,size:a,density:n,items:i,maxVisibleItems:s,isDisabled:l,onAction:d,showLabels:m=false,renderItem:u,...c},f)=>{let p=s&&s<i.length?i.slice(0,s):i,v=s&&s<i.length?i.slice(s):[],y={sm:"h-8 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-10 px-4 text-base"}[a??"md"],g={sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[a??"md"],x={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5"}[a??"md"],R=(h,P)=>{P&&P(),d&&d(h);},b=h=>jsxRuntime.jsxs("button",{type:"button",disabled:l||h.isDisabled,onClick:()=>R(h.key,h.onPress),className:o("inline-flex items-center justify-center gap-2 rounded-md transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50",m?y:g),"aria-label":h.label,children:[h.icon&&jsxRuntime.jsx("span",{className:x,children:h.icon}),m&&jsxRuntime.jsx("span",{children:h.label})]},h.key);return jsxRuntime.jsxs("div",{ref:f,role:"group",className:o(qb({variant:t,orientation:r,size:a,density:n,className:e})),...c,children:[p.map(h=>u?u(h):b(h)),v.length>0&&jsxRuntime.jsxs(ia,{children:[jsxRuntime.jsx(sa,{asChild:true,children:jsxRuntime.jsx("button",{type:"button",disabled:l,className:o("inline-flex items-center justify-center rounded-md transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50",g),"aria-label":"More actions",children:jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:x})})}),jsxRuntime.jsx(Vr,{align:"end",children:v.map(h=>jsxRuntime.jsxs(Lt,{disabled:h.isDisabled,onClick:()=>R(h.key,h.onPress),children:[h.icon&&jsxRuntime.jsx("span",{className:o(x,"mr-2"),children:h.icon}),h.label]},h.key))})]})]})});Zb.displayName="ActionGroup";var tv=classVarianceAuthority.cva("inline-flex items-center gap-2",{variants:{variant:{neutral:"[--status-color:theme(colors.muted.foreground)]",info:"[--status-color:theme(colors.blue.500)]",positive:"[--status-color:theme(colors.green.500)]",notice:"[--status-color:theme(colors.yellow.500)]",negative:"[--status-color:theme(colors.red.500)]"},size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{variant:"neutral",size:"md"}}),LS=classVarianceAuthority.cva("rounded-full bg-[--status-color] flex-shrink-0",{variants:{size:{sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2.5 w-2.5"},pulse:{true:"animate-pulse",false:""}},defaultVariants:{size:"md",pulse:false}}),rv=K__namespace.forwardRef(({className:e,variant:t,size:r,pulse:a=false,hideLabel:n=false,children:i,...s},l)=>jsxRuntime.jsxs("span",{ref:l,role:"status",className:o(tv({variant:t,size:r,className:e})),...s,children:[jsxRuntime.jsx("span",{className:o(LS({size:r,pulse:a})),"aria-hidden":"true"}),!n&&i&&jsxRuntime.jsx("span",{className:"text-foreground",children:i})]}));rv.displayName="StatusLight";var ov=classVarianceAuthority.cva("flex flex-col items-center justify-center text-center",{variants:{size:{sm:"gap-3 max-w-xs",md:"gap-4 max-w-sm",lg:"gap-5 max-w-md"}},defaultVariants:{size:"md"}}),ES=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"[&>svg]:h-16 [&>svg]:w-16",md:"[&>svg]:h-24 [&>svg]:w-24",lg:"[&>svg]:h-32 [&>svg]:w-32"}},defaultVariants:{size:"md"}}),HS=classVarianceAuthority.cva("font-semibold text-foreground",{variants:{size:{sm:"text-base",md:"text-lg",lg:"text-xl"}},defaultVariants:{size:"md"}}),AS=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),nv=K__namespace.forwardRef(({className:e,size:t,illustration:r,heading:a,description:n,children:i,...s},l)=>jsxRuntime.jsxs("div",{ref:l,className:o(ov({size:t,className:e})),...s,children:[r&&jsxRuntime.jsx("div",{className:o(ES({size:t})),"aria-hidden":"true",children:r}),a&&jsxRuntime.jsx("h3",{className:o(HS({size:t})),children:a}),n&&jsxRuntime.jsx("p",{className:o(AS({size:t})),children:n}),i&&jsxRuntime.jsx("div",{className:"mt-2",children:i})]}));nv.displayName="IllustratedMessage";var lv=classVarianceAuthority.cva("relative flex gap-3 rounded-lg border p-4 text-sm",{variants:{variant:{info:"border-blue-200 bg-blue-50 text-blue-900 dark:border-blue-800 dark:bg-blue-950 dark:text-blue-100 [&>svg]:text-blue-600 dark:[&>svg]:text-blue-400",success:"border-green-200 bg-green-50 text-green-900 dark:border-green-800 dark:bg-green-950 dark:text-green-100 [&>svg]:text-green-600 dark:[&>svg]:text-green-400",warning:"border-amber-200 bg-amber-50 text-amber-900 dark:border-amber-800 dark:bg-amber-950 dark:text-amber-100 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-400",error:"border-red-200 bg-red-50 text-red-900 dark:border-red-800 dark:bg-red-950 dark:text-red-100 [&>svg]:text-red-600 dark:[&>svg]:text-red-400",neutral:"border-border bg-muted text-foreground [&>svg]:text-muted-foreground"}},defaultVariants:{variant:"info"}}),$S={info:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle,neutral:lucideReact.Info},dv=K__namespace.forwardRef(({className:e,variant:t,title:r,icon:a,hideIcon:n=false,isDismissible:i=false,onDismiss:s,actions:l,children:d,...m},u)=>{let[c,f]=K__namespace.useState(true);if(!c)return null;let p=$S[t??"info"],v=()=>{f(false),s?.();};return jsxRuntime.jsxs("div",{ref:u,role:"alert",className:o(lv({variant:t,className:e})),...m,children:[!n&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a||jsxRuntime.jsx(p,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[r&&jsxRuntime.jsx("div",{className:"font-medium",children:r}),d&&jsxRuntime.jsx("div",{className:"opacity-90",children:d}),l&&jsxRuntime.jsx("div",{className:"mt-3 flex gap-2",children:l})]}),i&&jsxRuntime.jsx("button",{type:"button",onClick:v,className:"absolute right-2 top-2 rounded-md p-1 opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":"Dismiss",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})});dv.displayName="InlineAlert";var cv=classVarianceAuthority.cva("fixed flex items-center gap-2 rounded-lg border bg-background shadow-lg transition-all duration-200",{variants:{position:{bottom:"bottom-4 left-1/2 -translate-x-1/2",top:"top-4 left-1/2 -translate-x-1/2","bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4"},size:{sm:"px-3 py-2 gap-1.5",md:"px-4 py-2.5 gap-2",lg:"px-5 py-3 gap-3"}},defaultVariants:{position:"bottom",size:"md"}}),mv=K__namespace.forwardRef(({className:e,position:t,size:r,selectedCount:a=0,isOpen:n=true,onClose:i,showClose:s=true,selectedText:l,children:d,...m},u)=>{if(!n||a===0)return null;let c=()=>typeof l=="function"?l(a):l||`${a} item${a>1?"s":""} selected`;return jsxRuntime.jsxs("div",{ref:u,role:"toolbar","aria-label":"Actions for selected items",className:o(cv({position:t,size:r,className:e})),...m,children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:c()}),jsxRuntime.jsx("div",{className:"h-4 w-px bg-border"}),jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:d}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"h-4 w-px bg-border"}),jsxRuntime.jsx("button",{type:"button",onClick:i,className:"rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-colors","aria-label":"Close action bar",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})]})});mv.displayName="ActionBar";var uv=K__namespace.forwardRef(({className:e,icon:t,children:r,...a},n)=>jsxRuntime.jsxs("button",{ref:n,type:"button",className:o("inline-flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-sm font-medium transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:opacity-50",e),...a,children:[t&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:t}),r]}));uv.displayName="ActionBarButton";var pv=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{ghost:"hover:bg-accent hover:text-accent-foreground",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",subtle:"text-muted-foreground hover:text-foreground hover:bg-muted"},size:{sm:"h-7 w-7",md:"h-8 w-8",lg:"h-9 w-9"}},defaultVariants:{variant:"ghost",size:"md"}});function qS(e){return "items"in e}var fv=K__namespace.forwardRef(({items:e,align:t="end",side:r="bottom",iconOrientation:a="vertical",trigger:n,variant:i,size:s,onAction:l,"aria-label":d="More actions",triggerClassName:m,disabled:u},c)=>{let f={sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}[s??"md"],p=a==="horizontal"?lucideReact.MoreHorizontal:lucideReact.MoreVertical,v=g=>{g.onSelect?.(),l?.(g.key);},y=g=>jsxRuntime.jsxs(Lt,{disabled:g.isDisabled,onClick:()=>v(g),className:o(g.isDestructive&&"text-destructive focus:text-destructive"),children:[g.icon&&jsxRuntime.jsx("span",{className:"mr-2 h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:g.icon}),jsxRuntime.jsx("span",{className:"flex-1",children:g.label}),g.shortcut&&jsxRuntime.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:g.shortcut})]},g.key);return jsxRuntime.jsxs(ia,{children:[jsxRuntime.jsx(sa,{asChild:true,children:n||jsxRuntime.jsx("button",{ref:c,type:"button",disabled:u,className:o(pv({variant:i,size:s}),m),"aria-label":d,children:jsxRuntime.jsx(p,{className:f})})}),jsxRuntime.jsx(Vr,{align:t,side:r,children:e.map((g,x)=>qS(g)?jsxRuntime.jsxs(K__namespace.Fragment,{children:[x>0&&jsxRuntime.jsx(Nn,{}),g.items.map(y)]},g.key):y(g))})]})});fv.displayName="ActionMenu";var vv=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"gap-1",bordered:"border rounded-lg divide-y",cards:"gap-2"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),hv=classVarianceAuthority.cva("flex items-center gap-3 transition-colors cursor-pointer",{variants:{variant:{default:"rounded-md hover:bg-accent",bordered:"hover:bg-accent",cards:"rounded-lg border hover:border-primary/50 hover:bg-accent/50"},size:{sm:"px-2 py-1.5 text-sm",md:"px-3 py-2",lg:"px-4 py-3 text-lg"},isSelected:{true:"bg-accent",false:""},isDisabled:{true:"opacity-50 pointer-events-none",false:""}},compoundVariants:[{variant:"cards",isSelected:true,className:"border-primary bg-accent"}],defaultVariants:{variant:"default",size:"md",isSelected:false,isDisabled:false}});function xv({className:e,variant:t,size:r,items:a,selectedKeys:n,selectionMode:i="none",onSelectionChange:s,allowsDragging:l=false,onReorder:d,showCheckbox:m=false,renderItem:u,emptyContent:c,...f}){let[p,v]=K__namespace.useState(new Set),[y,g]=K__namespace.useState(null),[x,R]=K__namespace.useState(null),b=K__namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):p,[n,p]),h=C=>{if(i==="none")return;let S;i==="single"?S=b.has(C)?new Set:new Set([C]):(S=new Set(b),S.has(C)?S.delete(C):S.add(C)),n||v(S),s?.(S);},P=(C,S)=>{g(S),C.dataTransfer.effectAllowed="move";},w=(C,S)=>{C.preventDefault(),y!==S&&R(S);},M=()=>{if(y&&x&&y!==x){let C=a.findIndex(k=>k.key===y),S=a.findIndex(k=>k.key===x),N=[...a],[T]=N.splice(C,1);N.splice(S,0,T),d?.(N);}g(null),R(null);};return a.length===0?jsxRuntime.jsx("div",{className:o("flex items-center justify-center p-8 text-muted-foreground",e),children:c||"No items"}):jsxRuntime.jsx("div",{role:"listbox","aria-multiselectable":i==="multiple",className:o(vv({variant:t,size:r,className:e})),...f,children:a.map(C=>{let S=b.has(C.key),N=y===C.key,T=x===C.key;return u?jsxRuntime.jsx("div",{role:"option","aria-selected":S,onClick:()=>h(C.key),children:u(C,S)},C.key):jsxRuntime.jsxs("div",{role:"option","aria-selected":S,"aria-disabled":C.isDisabled,draggable:l&&!C.isDisabled,onDragStart:k=>P(k,C.key),onDragOver:k=>w(k,C.key),onDragEnd:M,onClick:()=>!C.isDisabled&&h(C.key),className:o(hv({variant:t,size:r,isSelected:S,isDisabled:C.isDisabled}),N&&"opacity-50",T&&"border-t-2 border-t-primary"),children:[l&&jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-muted-foreground cursor-grab"}),m&&i!=="none"&&jsxRuntime.jsx("div",{className:o("flex h-4 w-4 items-center justify-center rounded border",S?"bg-primary border-primary text-primary-foreground":"border-input"),children:S&&jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),C.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 text-muted-foreground [&>svg]:h-full [&>svg]:w-full",children:C.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:C.label}),C.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:C.description})]})]},C.key)})})}xv.displayName="ListView";var Rv=classVarianceAuthority.cva("relative flex w-full touch-none select-none",{variants:{orientation:{horizontal:"items-center",vertical:"flex-col justify-center h-full"},size:{sm:"",md:"",lg:""}},defaultVariants:{orientation:"horizontal",size:"md"}}),QS=classVarianceAuthority.cva("relative grow overflow-hidden rounded-full bg-secondary",{variants:{orientation:{horizontal:"w-full",vertical:"w-2 h-full"},size:{sm:"h-1",md:"h-2",lg:"h-3"}},compoundVariants:[{orientation:"vertical",size:"sm",className:"w-1 h-full"},{orientation:"vertical",size:"md",className:"w-2 h-full"},{orientation:"vertical",size:"lg",className:"w-3 h-full"}],defaultVariants:{orientation:"horizontal",size:"md"}}),yv=classVarianceAuthority.cva("block 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",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-5 w-5",lg:"h-6 w-6"}},defaultVariants:{size:"md"}}),wv=K__namespace.forwardRef(({className:e,orientation:t="horizontal",size:r,value:a,defaultValue:n=[25,75],onValueChange:i,onValueCommit:s,showLabels:l=false,formatLabel:d=g=>String(g),trackColor:m="primary",min:u=0,max:c=100,step:f=1,disabled:p,...v},y)=>{let[g,x]=K__namespace.useState(n),R=a??g,b=w=>{let M=w;a||x(M),i?.(M);},h=w=>{s?.(w);},P={primary:"bg-primary",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500"}[m];return jsxRuntime.jsxs("div",{className:"relative w-full",children:[l&&jsxRuntime.jsxs("div",{className:"flex justify-between mb-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx("span",{children:d(R[0])}),jsxRuntime.jsx("span",{children:d(R[1])})]}),jsxRuntime.jsxs(ar__namespace.Root,{ref:y,value:R,onValueChange:b,onValueCommit:h,min:u,max:c,step:f,disabled:p,orientation:t??"horizontal",className:o(Rv({orientation:t,size:r,className:e})),...v,children:[jsxRuntime.jsx(ar__namespace.Track,{className:o(QS({orientation:t,size:r})),children:jsxRuntime.jsx(ar__namespace.Range,{className:o("absolute rounded-full",P,{"h-full":t==="horizontal","w-full":t==="vertical"})})}),jsxRuntime.jsx(ar__namespace.Thumb,{className:o(yv({size:r}))}),jsxRuntime.jsx(ar__namespace.Thumb,{className:o(yv({size:r}))})]})]})});wv.displayName="RangeSlider";var Cv=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-full transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",{variants:{variant:{help:"text-muted-foreground hover:text-foreground",info:"text-blue-500 hover:text-blue-600",warning:"text-yellow-500 hover:text-yellow-600"},size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}},defaultVariants:{variant:"help",size:"md"}}),aM=classVarianceAuthority.cva("z-50 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none animate-in fade-in-0 zoom-in-95",{variants:{size:{sm:"w-56 text-xs",md:"w-72 text-sm",lg:"w-80 text-base"}},defaultVariants:{size:"md"}}),oM={help:lucideReact.HelpCircle,info:lucideReact.Info,warning:lucideReact.AlertCircle},Sv=K__namespace.forwardRef(({variant:e="help",size:t,title:r,children:a,trigger:n,side:i="top",align:s="center",open:l,onOpenChange:d,learnMoreUrl:m,learnMoreText:u="Learn more",triggerClassName:c,contentClassName:f},p)=>{let v=oM[e??"help"];return jsxRuntime.jsxs(yt__namespace.Root,{open:l,onOpenChange:d,children:[jsxRuntime.jsx(yt__namespace.Trigger,{asChild:true,children:n||jsxRuntime.jsx("button",{ref:p,type:"button",className:o(Cv({variant:e,size:t}),c),"aria-label":"Help",children:jsxRuntime.jsx(v,{className:"h-full w-full"})})}),jsxRuntime.jsx(yt__namespace.Portal,{children:jsxRuntime.jsxs(yt__namespace.Content,{side:i,align:s,sideOffset:8,className:o(aM({size:t}),f),children:[r&&jsxRuntime.jsx("div",{className:"mb-2 font-semibold text-foreground",children:r}),jsxRuntime.jsx("div",{className:"text-muted-foreground",children:a}),m&&jsxRuntime.jsxs("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"mt-3 inline-block text-primary hover:underline",children:[u," \u2192"]}),jsxRuntime.jsx(yt__namespace.Arrow,{className:"fill-popover"})]})})]})});Sv.displayName="ContextualHelp";var Tv=classVarianceAuthority.cva("flex flex-wrap",{variants:{spacing:{sm:"gap-1",md:"gap-2",lg:"gap-3"}},defaultVariants:{spacing:"md"}}),Ol=classVarianceAuthority.cva("inline-flex items-center gap-1 rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",{variants:{variant:{solid:"bg-primary text-primary-foreground",outline:"border border-input bg-background hover:bg-accent",soft:"bg-primary/10 text-primary",surface:"bg-muted text-muted-foreground"},size:{sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-1 text-sm",lg:"px-3 py-1.5 text-base"},isSelected:{true:"",false:""},isDisabled:{true:"opacity-50 pointer-events-none",false:""}},compoundVariants:[{variant:"outline",isSelected:true,className:"border-primary bg-primary/5"},{variant:"soft",isSelected:true,className:"bg-primary/20"},{variant:"surface",isSelected:true,className:"bg-muted/80 ring-2 ring-primary/20"}],defaultVariants:{variant:"soft",size:"md",isSelected:false,isDisabled:false}});function kv({className:e,spacing:t,variant:r,size:a,items:n,selectedKeys:i,selectionMode:s="none",onSelectionChange:l,allowsRemoving:d=false,onRemove:m,label:u,description:c,errorMessage:f,maxTags:p,...v}){let[y,g]=K__namespace.useState(new Set),x=K__namespace.useMemo(()=>i?i instanceof Set?i:new Set(i):y,[i,y]),R=w=>{if(s==="none")return;let M;s==="single"?M=x.has(w)?new Set:new Set([w]):(M=new Set(x),M.has(w)?M.delete(w):M.add(w)),i||g(M),l?.(M);},b=(w,M)=>{M.stopPropagation(),m?.(w);},h=p?n.slice(0,p):n,P=p?Math.max(0,n.length-p):0;return jsxRuntime.jsxs("div",{className:"flex flex-col gap-1.5",children:[u&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:u}),c&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:c}),jsxRuntime.jsxs("div",{role:"group","aria-label":u,className:o(Tv({spacing:t}),e),...v,children:[h.map(w=>{let M=x.has(w.key),C=s!=="none";return jsxRuntime.jsxs("span",{role:C?"button":void 0,tabIndex:C&&!w.isDisabled?0:void 0,"aria-pressed":C?M:void 0,onClick:()=>!w.isDisabled&&R(w.key),onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&!w.isDisabled&&(S.preventDefault(),R(w.key));},style:w.color?{backgroundColor:w.color}:void 0,className:o(Ol({variant:w.color?void 0:r,size:a,isSelected:M,isDisabled:w.isDisabled}),C&&!w.isDisabled&&"cursor-pointer hover:opacity-80",w.color&&"text-white"),children:[w.icon&&jsxRuntime.jsx("span",{className:"h-3.5 w-3.5 [&>svg]:h-full [&>svg]:w-full",children:w.icon}),w.label,d&&!w.isDisabled&&jsxRuntime.jsx("button",{type:"button",onClick:S=>b(w.key,S),className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${w.label}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},w.key)}),P>0&&jsxRuntime.jsxs("span",{className:o(Ol({variant:"surface",size:a}),"cursor-default"),children:["+",P," more"]})]}),f&&jsxRuntime.jsx("span",{className:"text-sm text-destructive",children:f})]})}kv.displayName="TagGroup";var Lv=classVarianceAuthority.cva("grid",{variants:{columns:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",auto:"grid-cols-[repeat(auto-fill,minmax(150px,1fr))]"},gap:{sm:"gap-2",md:"gap-4",lg:"gap-6"}},defaultVariants:{columns:"auto",gap:"md"}}),Iv=classVarianceAuthority.cva("relative flex flex-col rounded-lg border transition-all cursor-pointer",{variants:{variant:{default:"hover:border-primary/50 hover:bg-accent/50",card:"bg-card shadow-sm hover:shadow-md hover:border-primary/50"},size:{sm:"p-2",md:"p-3",lg:"p-4"},isSelected:{true:"border-primary bg-accent ring-2 ring-primary/20",false:""},isDisabled:{true:"opacity-50 pointer-events-none",false:""}},defaultVariants:{variant:"default",size:"md",isSelected:false,isDisabled:false}});function Ev({className:e,columns:t,gap:r,items:a,selectedKeys:n,selectionMode:i="none",onSelectionChange:s,showSelectionIndicator:l=true,itemVariant:d="default",itemSize:m="md",renderItem:u,emptyContent:c,...f}){let[p,v]=K__namespace.useState(new Set),y=K__namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):p,[n,p]),g=x=>{if(i==="none")return;let R;i==="single"?R=y.has(x)?new Set:new Set([x]):(R=new Set(y),R.has(x)?R.delete(x):R.add(x)),n||v(R),s?.(R);};return a.length===0?jsxRuntime.jsx("div",{className:o("flex items-center justify-center p-8 text-muted-foreground",e),children:c||"No items"}):jsxRuntime.jsx("div",{role:"grid","aria-multiselectable":i==="multiple",className:o(Lv({columns:t,gap:r,className:e})),...f,children:a.map(x=>{let R=y.has(x.key);return u?jsxRuntime.jsx("div",{role:"gridcell","aria-selected":R,onClick:()=>g(x.key),children:u(x,R)},x.key):jsxRuntime.jsxs("div",{role:"gridcell","aria-selected":R,"aria-disabled":x.isDisabled,onClick:()=>!x.isDisabled&&g(x.key),className:o(Iv({variant:d,size:m,isSelected:R,isDisabled:x.isDisabled})),children:[l&&i!=="none"&&R&&jsxRuntime.jsx("div",{className:"absolute top-2 right-2 flex h-5 w-5 items-center justify-center rounded-full bg-primary text-primary-foreground",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),x.thumbnail&&jsxRuntime.jsx("div",{className:"mb-2 aspect-square w-full overflow-hidden rounded-md bg-muted",children:x.thumbnail}),jsxRuntime.jsxs("div",{className:"min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:x.label}),x.description&&jsxRuntime.jsx("div",{className:"mt-1 truncate text-sm text-muted-foreground",children:x.description})]})]},x.key)})})}Ev.displayName="GridList";var Av=classVarianceAuthority.cva("relative w-full",{variants:{size:{sm:"h-1.5",md:"h-2",lg:"h-3"}},defaultVariants:{size:"md"}}),sM=classVarianceAuthority.cva("w-full h-full rounded-full overflow-hidden",{variants:{variant:{default:"bg-secondary",subtle:"bg-muted"}},defaultVariants:{variant:"default"}}),lM=classVarianceAuthority.cva("h-full transition-all duration-300 ease-out",{variants:{color:{primary:"bg-primary",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500",info:"bg-blue-500",auto:""},rounded:{true:"rounded-full",false:"rounded-l-full"}},defaultVariants:{color:"primary",rounded:true}}),Li=K__namespace.forwardRef(({className:e,size:t,value:r,min:a=0,max:n=100,optimum:i,low:s,high:l,label:d,showValueLabel:m=false,formatValue:u,color:c="primary",trackVariant:f="default",...p},v)=>{let y=Math.min(100,Math.max(0,(r-a)/(n-a)*100)),g=()=>{if(c!=="auto")return "";let R=(r-a)/(n-a),b=s!==void 0?(s-a)/(n-a):.25,h=l!==void 0?(l-a)/(n-a):.75;return (i!==void 0?(i-a)/(n-a):1)>=.5?R<=b?"bg-red-500":R<=h?"bg-yellow-500":"bg-green-500":R>=h?"bg-red-500":R>=b?"bg-yellow-500":"bg-green-500"},x=u?u(r,y):`${Math.round(y)}%`;return jsxRuntime.jsxs("div",{ref:v,className:o("w-full",e),...p,children:[(d||m)&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[d&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:d}),m&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:x})]}),jsxRuntime.jsx("div",{role:"meter","aria-valuenow":r,"aria-valuemin":a,"aria-valuemax":n,"aria-label":d,className:o(Av({size:t})),children:jsxRuntime.jsx("div",{className:o(sM({variant:f})),children:jsxRuntime.jsx("div",{className:o(lM({color:c==="auto"?void 0:c,rounded:y>=100}),c==="auto"&&g()),style:{width:`${y}%`}})})})]})});Li.displayName="Meter";var zv=K__namespace.forwardRef((e,t)=>jsxRuntime.jsx(Li,{ref:t,color:"auto",low:50,high:80,optimum:0,...e}));zv.displayName="DiskUsageMeter";var Bv=K__namespace.forwardRef((e,t)=>jsxRuntime.jsx(Li,{ref:t,color:"auto",low:20,high:50,optimum:100,...e}));Bv.displayName="BatteryMeter";var Fv=classVarianceAuthority.cva("relative rounded-lg overflow-hidden cursor-crosshair touch-none select-none",{variants:{size:{sm:"h-32 w-32",md:"h-48 w-48",lg:"h-64 w-64",full:"h-full w-full min-h-48"}},defaultVariants:{size:"md"}}),Ei=(e,t,r)=>{let a=n=>{let i=(n+e/60)%6;return r-r*t*Math.max(Math.min(i,4-i,1),0)};return [Math.round(a(5)*255),Math.round(a(3)*255),Math.round(a(1)*255)]},Ov=(e,t,r)=>{e/=255,t/=255,r/=255;let a=Math.max(e,t,r),n=Math.min(e,t,r),i=a-n,s=0,l=a===0?0:i/a,d=a;if(i!==0)switch(a){case e:s=((t-r)/i+(t<r?6:0))*60;break;case t:s=((r-e)/i+2)*60;break;case r:s=((e-t)/i+4)*60;break}return [s,l,d]},Gv=e=>{let t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:null},Wv=(e,t,r)=>"#"+[e,t,r].map(a=>a.toString(16).padStart(2,"0")).join(""),$v=K__namespace.forwardRef(({hue:e,saturation:t,brightness:r,value:a,defaultValue:n="#ff0000",onChange:i,onColorChange:s,size:l,disabled:d,thumbSize:m=18,className:u,...c},f)=>{let p=K__namespace.useRef(null),[v,y]=K__namespace.useState(false),g=K__namespace.useCallback(H=>{let j=Gv(H);return j?Ov(...j):[0,1,1]},[]),[x,R]=K__namespace.useState(()=>g(a||n)),b=e??x[0],h=t??x[1],P=r??x[2];K__namespace.useEffect(()=>{if(a){let H=g(a);R(H);}},[a,g]);let w=K__namespace.useCallback((H,j)=>{if(d||!p.current)return;let W=p.current.getBoundingClientRect(),Le=Math.max(0,Math.min(1,(H-W.left)/W.width)),xe=Math.max(0,Math.min(1,(j-W.top)/W.height)),z=Le,F=1-xe;t===void 0&&r===void 0&&R([b,z,F]),i?.({hue:b,saturation:z,brightness:F});let te=Ei(b,z,F);s?.(Wv(...te));},[d,b,t,r,i,s]),M=H=>{d||(H.preventDefault(),y(true),H.target.setPointerCapture(H.pointerId),w(H.clientX,H.clientY));},C=H=>{v&&w(H.clientX,H.clientY);},S=H=>{y(false),H.target.releasePointerCapture(H.pointerId);},[N,T,k]=Ei(b,1,1),V=`rgb(${N}, ${T}, ${k})`,E=h*100,I=(1-P)*100,[D,L,A]=Ei(b,h,P),B=`rgb(${D}, ${L}, ${A})`;return jsxRuntime.jsx("div",{ref:f,className:o(Fv({size:l}),d&&"cursor-not-allowed opacity-50",u),...c,children:jsxRuntime.jsxs("div",{ref:p,className:"absolute inset-0",style:{backgroundColor:V},onPointerDown:M,onPointerMove:C,onPointerUp:S,onPointerLeave:S,children:[jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to right, white, transparent)"}}),jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to bottom, transparent, black)"}}),jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white pointer-events-none",style:{width:m,height:m,left:`calc(${E}% - ${m/2}px)`,top:`calc(${I}% - ${m/2}px)`,backgroundColor:B,boxShadow:"0 0 0 1px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});$v.displayName="ColorArea";var Kv=classVarianceAuthority.cva("relative rounded-full cursor-pointer touch-none select-none",{variants:{orientation:{horizontal:"w-full",vertical:"h-full"},size:{sm:"",md:"",lg:""}},compoundVariants:[{orientation:"horizontal",size:"sm",className:"h-3"},{orientation:"horizontal",size:"md",className:"h-4"},{orientation:"horizontal",size:"lg",className:"h-5"},{orientation:"vertical",size:"sm",className:"w-3"},{orientation:"vertical",size:"md",className:"w-4"},{orientation:"vertical",size:"lg",className:"w-5"}],defaultVariants:{orientation:"horizontal",size:"md"}}),uM=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23ccc'%3E%3Crect width='4' height='4'/%3E%3Crect x='4' y='4' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E")`,_v="linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)",Yv=K__namespace.forwardRef(({value:e,defaultValue:t,onChange:r,channel:a="hue",baseColor:n="#ff0000",orientation:i,size:s,disabled:l,thumbSize:d=18,showBorder:m=true,className:u,...c},f)=>{let p=K__namespace.useRef(null),[v,y]=K__namespace.useState(false),g=()=>{switch(a){case "hue":return 0;case "alpha":case "saturation":case "brightness":return 1;default:return 0}},[x,R]=K__namespace.useState(t??g()),b=e??x,h=a==="hue"?b/360:b,P=K__namespace.useCallback((V,E)=>{if(l||!p.current)return;let I=p.current.getBoundingClientRect(),D=i!=="vertical",L;D?L=Math.max(0,Math.min(1,(V-I.left)/I.width)):L=Math.max(0,Math.min(1,1-(E-I.top)/I.height));let A=a==="hue"?L*360:L;e===void 0&&R(A),r?.(A);},[l,i,a,e,r]),w=V=>{l||(V.preventDefault(),y(true),V.target.setPointerCapture(V.pointerId),P(V.clientX,V.clientY));},M=V=>{v&&P(V.clientX,V.clientY);},C=V=>{y(false),V.target.releasePointerCapture(V.pointerId);},S=()=>{let V=i!=="vertical",E=V?"to right":"to top";switch(a){case "hue":return V?_v:"linear-gradient(to top, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)";case "alpha":return `linear-gradient(${E}, transparent, ${n})`;case "saturation":return `linear-gradient(${E}, #808080, ${n})`;case "brightness":return `linear-gradient(${E}, #000000, ${n})`;default:return _v}},N=()=>a==="hue"?`hsl(${b}, 100%, 50%)`:n,T=i!=="vertical",k=h*100;return jsxRuntime.jsx("div",{ref:f,className:o(Kv({orientation:i,size:s}),l&&"cursor-not-allowed opacity-50",u),...c,children:jsxRuntime.jsxs("div",{ref:p,className:o("absolute inset-0 rounded-full overflow-hidden",m&&"border border-input"),style:{backgroundImage:a==="alpha"?uM:void 0,backgroundSize:a==="alpha"?"8px 8px":void 0},onPointerDown:w,onPointerMove:M,onPointerUp:C,onPointerLeave:C,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 rounded-full",style:{background:S()}}),jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:d,height:d,...T?{left:`calc(${k}% - ${d/2}px)`,top:"50%",transform:"translateY(-50%)"}:{bottom:`calc(${k}% - ${d/2}px)`,left:"50%",transform:"translateX(-50%)"},backgroundColor:N(),boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});Yv.displayName="ColorSlider";var Uv=classVarianceAuthority.cva("relative cursor-crosshair touch-none select-none",{variants:{size:{sm:"h-32 w-32",md:"h-48 w-48",lg:"h-64 w-64"}},defaultVariants:{size:"md"}}),gM=(e,t,r)=>{let a=e-r,n=t-r,i=Math.atan2(n,a)*180/Math.PI+90;return i<0&&(i+=360),i},jv=K__namespace.forwardRef(({value:e,defaultValue:t=0,onChange:r,size:a,disabled:n,innerRadius:i=.6,thumbSize:s=20,showCenter:l=true,className:d,...m},u)=>{let c=K__namespace.useRef(null),[f,p]=K__namespace.useState(false),[v,y]=K__namespace.useState(t),g=e??v,x=K__namespace.useCallback((w,M)=>{if(n||!c.current)return;let C=c.current.getBoundingClientRect(),S=C.width/2,N=w-C.left,T=M-C.top,k=gM(N,T,S);e===void 0&&y(k),r?.(k);},[n,e,r]),R=w=>{n||(w.preventDefault(),p(true),w.target.setPointerCapture(w.pointerId),x(w.clientX,w.clientY));},b=w=>{f&&x(w.clientX,w.clientY);},h=w=>{p(false),w.target.releasePointerCapture(w.pointerId);},P=()=>{let w=[];for(let M=0;M<=360;M+=30)w.push(`hsl(${M}, 100%, 50%) ${M}deg`);return `conic-gradient(from 270deg, ${w.join(", ")})`};return jsxRuntime.jsx("div",{ref:u,className:o(Uv({size:a}),n&&"cursor-not-allowed opacity-50",d),...m,children:jsxRuntime.jsxs("div",{ref:c,className:"absolute inset-0 rounded-full",style:{background:P()},onPointerDown:R,onPointerMove:b,onPointerUp:h,onPointerLeave:h,children:[i<1&&jsxRuntime.jsx("div",{className:"absolute bg-background rounded-full",style:{top:`${(1-i)*50}%`,left:`${(1-i)*50}%`,width:`${i*100}%`,height:`${i*100}%`}}),l&&i<1&&jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-input bg-background",style:{width:8,height:8,top:"50%",left:"50%",transform:"translate(-50%, -50%)"}}),jsxRuntime.jsx(bM,{hue:g,innerRadius:i,thumbSize:s})]})})});jv.displayName="ColorWheel";var bM=({hue:e,innerRadius:t,thumbSize:r})=>{let a=(1-(1-t)/2)*50,n=(e-90)*Math.PI/180,i=50+a*Math.cos(n),s=50+a*Math.sin(n);return jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:r,height:r,left:`calc(${i}% - ${r/2}px)`,top:`calc(${s}% - ${r/2}px)`,backgroundColor:`hsl(${e}, 100%, 50%)`,boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})};var Xv=classVarianceAuthority.cva("flex",{variants:{direction:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"},gap:{0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},inline:{true:"inline-flex",false:"flex"}},defaultVariants:{direction:"row",align:"stretch",justify:"start",wrap:"nowrap",gap:0,inline:false}}),tn=K__namespace.forwardRef(({className:e,direction:t,align:r,justify:a,wrap:n,gap:i,inline:s,as:l="div",...d},m)=>jsxRuntime.jsx(l,{ref:m,className:o(Xv({direction:t,align:r,justify:a,wrap:n,gap:i,inline:s,className:e})),...d}));tn.displayName="Flex";var qv=K__namespace.forwardRef(({gap:e=2,align:t="center",...r},a)=>jsxRuntime.jsx(tn,{ref:a,direction:"row",gap:e,align:t,...r}));qv.displayName="HStack";var Zv=K__namespace.forwardRef(({gap:e=2,align:t="stretch",...r},a)=>jsxRuntime.jsx(tn,{ref:a,direction:"column",gap:e,align:t,...r}));Zv.displayName="VStack";var Jv=K__namespace.forwardRef((e,t)=>jsxRuntime.jsx(tn,{ref:t,align:"center",justify:"center",...e}));Jv.displayName="Center";var eh=classVarianceAuthority.cva("grid",{variants:{columns:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12",none:"grid-cols-none",auto:"grid-cols-[repeat(auto-fill,minmax(200px,1fr))]"},rows:{1:"grid-rows-1",2:"grid-rows-2",3:"grid-rows-3",4:"grid-rows-4",5:"grid-rows-5",6:"grid-rows-6",none:"grid-rows-none"},gap:{0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},gapX:{0:"gap-x-0",1:"gap-x-1",2:"gap-x-2",3:"gap-x-3",4:"gap-x-4",5:"gap-x-5",6:"gap-x-6",8:"gap-x-8",10:"gap-x-10",12:"gap-x-12"},gapY:{0:"gap-y-0",1:"gap-y-1",2:"gap-y-2",3:"gap-y-3",4:"gap-y-4",5:"gap-y-5",6:"gap-y-6",8:"gap-y-8",10:"gap-y-10",12:"gap-y-12"},flow:{row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"},placeItems:{start:"place-items-start",center:"place-items-center",end:"place-items-end",stretch:"place-items-stretch"}},defaultVariants:{columns:1,gap:4,flow:"row",align:"stretch",justify:"stretch"}}),Ai=K__namespace.forwardRef(({className:e,columns:t,rows:r,gap:a,gapX:n,gapY:i,flow:s,align:l,justify:d,placeItems:m,as:u="div",minChildWidth:c,style:f,...p},v)=>{let y=c?{...f,gridTemplateColumns:`repeat(auto-fill, minmax(${c}, 1fr))`}:f;return jsxRuntime.jsx(u,{ref:v,className:o(eh({columns:c?void 0:t,rows:r,gap:a,gapX:n,gapY:i,flow:s,align:l,justify:d,placeItems:m,className:e})),style:y,...p})});Ai.displayName="Grid";var th=classVarianceAuthority.cva("",{variants:{colSpan:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",full:"col-span-full"},rowSpan:{1:"row-span-1",2:"row-span-2",3:"row-span-3",4:"row-span-4",5:"row-span-5",6:"row-span-6",full:"row-span-full"},colStart:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12",13:"col-start-13",auto:"col-start-auto"},colEnd:{1:"col-end-1",2:"col-end-2",3:"col-end-3",4:"col-end-4",5:"col-end-5",6:"col-end-6",7:"col-end-7",8:"col-end-8",9:"col-end-9",10:"col-end-10",11:"col-end-11",12:"col-end-12",13:"col-end-13",auto:"col-end-auto"},rowStart:{1:"row-start-1",2:"row-start-2",3:"row-start-3",4:"row-start-4",5:"row-start-5",6:"row-start-6",7:"row-start-7",auto:"row-start-auto"},rowEnd:{1:"row-end-1",2:"row-end-2",3:"row-end-3",4:"row-end-4",5:"row-end-5",6:"row-end-6",7:"row-end-7",auto:"row-end-auto"}}}),rh=K__namespace.forwardRef(({className:e,colSpan:t,rowSpan:r,colStart:a,colEnd:n,rowStart:i,rowEnd:s,as:l="div",...d},m)=>jsxRuntime.jsx(l,{ref:m,className:o(th({colSpan:t,rowSpan:r,colStart:a,colEnd:n,rowStart:i,rowEnd:s,className:e})),...d}));rh.displayName="GridItem";var ah=K__namespace.forwardRef(({columns:e=2,className:t,...r},a)=>{if(typeof e=="number")return jsxRuntime.jsx(Ai,{ref:a,columns:e,className:t,...r});let n=o(e.sm&&`sm:grid-cols-${e.sm}`,e.md&&`md:grid-cols-${e.md}`,e.lg&&`lg:grid-cols-${e.lg}`,e.xl&&`xl:grid-cols-${e.xl}`);return jsxRuntime.jsx(Ai,{ref:a,columns:1,className:o(n,t),...r})});ah.displayName="SimpleGrid";var nh=classVarianceAuthority.cva("rounded-lg",{variants:{variant:{default:"bg-muted",subtle:"bg-muted/50",outline:"border border-border bg-transparent",filled:"bg-accent",sunken:"bg-muted shadow-inner"},size:{sm:"p-3",md:"p-4",lg:"p-6",xl:"p-8"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-3xl"}},defaultVariants:{variant:"default",size:"md",radius:"lg"}}),ih=K__namespace.forwardRef(({className:e,variant:t,size:r,radius:a,as:n="div",...i},s)=>jsxRuntime.jsx(n,{ref:s,className:o(nh({variant:t,size:r,radius:a,className:e})),...i}));ih.displayName="Well";var lh=classVarianceAuthority.cva("flex",{variants:{orientation:{horizontal:"flex-row items-center gap-2",vertical:"flex-col gap-1"},size:{sm:"",md:"",lg:""},align:{start:"items-start",center:"items-center",end:"items-end"}},compoundVariants:[{orientation:"horizontal",align:"start",className:"items-start"},{orientation:"horizontal",align:"center",className:"items-center"},{orientation:"horizontal",align:"end",className:"items-end"}],defaultVariants:{orientation:"vertical",size:"md",align:"start"}}),RM=classVarianceAuthority.cva("text-muted-foreground font-medium",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),wM=classVarianceAuthority.cva("text-foreground",{variants:{size:{sm:"text-sm",md:"text-base",lg:"text-lg"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},mono:{true:"font-mono",false:""}},defaultVariants:{size:"md",weight:"normal",mono:false}}),dh=K__namespace.forwardRef(({className:e,orientation:t,size:r,align:a,label:n,value:i,valueWeight:s,mono:l,labelWidth:d,labelClassName:m,valueClassName:u,showColon:c=false,copyable:f=false,onCopy:p,...v},y)=>{let g=async()=>{if(!(!f||i===null||i===void 0))try{let x=typeof i=="string"?i:String(i);await navigator.clipboard.writeText(x),p?.();}catch{}};return jsxRuntime.jsxs("div",{ref:y,className:o(lh({orientation:t,size:r,align:a,className:e})),...v,children:[jsxRuntime.jsxs("span",{className:o(RM({size:r}),m),style:d?{width:d,flexShrink:0}:void 0,children:[n,c&&":"]}),jsxRuntime.jsx("span",{className:o(wM({size:r,weight:s,mono:l}),f&&"cursor-pointer hover:bg-accent/50 rounded px-1 -mx-1 transition-colors",u),onClick:f?g:void 0,role:f?"button":void 0,tabIndex:f?0:void 0,onKeyDown:f?x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),g());}:void 0,children:i})]})});dh.displayName="LabeledValue";var ch=classVarianceAuthority.cva("",{variants:{orientation:{horizontal:"flex flex-row flex-wrap",vertical:"flex flex-col"},gap:{sm:"gap-2",md:"gap-4",lg:"gap-6"}},defaultVariants:{orientation:"vertical",gap:"md"}}),mh=K__namespace.forwardRef(({className:e,orientation:t,gap:r,...a},n)=>jsxRuntime.jsx("div",{ref:n,className:o(ch({orientation:t,gap:r,className:e})),...a}));mh.displayName="LabeledValueGroup";var gh=classVarianceAuthority.cva("flex items-center rounded-md border border-input bg-background ring-offset-background transition-colors focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",{variants:{size:{sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-base"},variant:{default:"",filled:"bg-muted border-transparent",ghost:"border-transparent hover:bg-muted"}},defaultVariants:{size:"md",variant:"default"}}),co=classVarianceAuthority.cva("text-muted-foreground shrink-0",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),bh=K__namespace.forwardRef(({value:e,defaultValue:t="",onChange:r,onSearch:a,onSelect:n,suggestions:i=[],recentSearches:s=[],onClearRecentSearches:l,trendingSearches:d=[],isLoading:m,showClear:u=true,showIcon:c=true,popoverWidth:f="trigger",emptyMessage:p="No results found",size:v,variant:y,className:g,placeholder:x="Search...",disabled:R,...b},h)=>{let[P,w]=K__namespace.useState(false),[M,C]=K__namespace.useState(t),S=e!==void 0?e:M,N=K__namespace.useRef(null);K__namespace.useImperativeHandle(h,()=>N.current);let T=S.length>0,k=P&&(i.length>0||s.length>0||d.length>0||T),V=H=>{e===void 0&&C(H),r?.(H);},E=()=>{V(""),N.current?.focus();},I=H=>{H?.preventDefault(),S.trim()&&(a?.(S.trim()),w(false));},D=H=>{V(H.label),n?.(H),w(false);},L=H=>{V(H),a?.(H),w(false);},A=H=>{V(H),a?.(H),w(false);},B=K__namespace.useMemo(()=>{let H={};return i.forEach(j=>{let W=j.category||"Results";H[W]||(H[W]=[]),H[W].push(j);}),H},[i]);return jsxRuntime.jsxs(Ee,{open:k,onOpenChange:w,children:[jsxRuntime.jsx($e,{asChild:true,children:jsxRuntime.jsxs("form",{onSubmit:I,className:o(gh({size:v,variant:y}),g),children:[c&&jsxRuntime.jsx(lucideReact.Search,{className:o(co({size:v}),"ml-3")}),jsxRuntime.jsx("input",{ref:N,type:"text",value:S,onChange:H=>V(H.target.value),onFocus:()=>w(true),placeholder:x,disabled:R,className:o("flex-1 bg-transparent px-3 py-2 outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",!c&&"pl-3"),...b}),u&&T&&!R&&jsxRuntime.jsx("button",{type:"button",onClick:E,className:o("mr-2 rounded-sm p-1 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",co({size:v})),children:jsxRuntime.jsx(lucideReact.X,{className:"h-full w-full"})})]})}),jsxRuntime.jsx(Me,{className:"p-0",style:{width:f==="trigger"?"var(--radix-popover-trigger-width)":f},align:"start",onOpenAutoFocus:H=>H.preventDefault(),children:jsxRuntime.jsxs(cmdk.Command,{className:"rounded-lg border-0",children:[s.length>0&&!T&&jsxRuntime.jsxs("div",{className:"p-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between px-2 py-1.5",children:[jsxRuntime.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Recent"}),l&&jsxRuntime.jsx("button",{type:"button",onClick:l,className:"text-xs text-muted-foreground hover:text-foreground",children:"Clear"})]}),s.map((H,j)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>L(H),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[jsxRuntime.jsx(lucideReact.Clock,{className:o(co({size:v}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:H}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:o(co({size:v}),"opacity-0 group-hover:opacity-100")})]},j))]}),d.length>0&&!T&&jsxRuntime.jsxs("div",{className:"border-t p-2",children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5",children:jsxRuntime.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Trending"})}),d.map((H,j)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>A(H),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[jsxRuntime.jsx(lucideReact.TrendingUp,{className:o(co({size:v}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:H})]},j))]}),T&&jsxRuntime.jsx("div",{className:"p-2",children:m?jsxRuntime.jsx("div",{className:"flex items-center justify-center py-6",children:jsxRuntime.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-primary border-t-transparent"})}):i.length>0?Object.entries(B).map(([H,j])=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5",children:jsxRuntime.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:H})}),j.map(W=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>D(W),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[W.icon||jsxRuntime.jsx(lucideReact.Search,{className:o(co({size:v}))}),jsxRuntime.jsxs("div",{className:"flex-1 text-left",children:[jsxRuntime.jsx("div",{className:"truncate",children:W.label}),W.description&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:W.description})]})]},W.id))]},H)):jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:p})})]})})]})});bh.displayName="SearchBar";var vh={Pages:jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"}),Files:jsxRuntime.jsx(lucideReact.Folder,{className:"h-4 w-4"}),Settings:jsxRuntime.jsx(lucideReact.Settings,{className:"h-4 w-4"}),Users:jsxRuntime.jsx(lucideReact.User,{className:"h-4 w-4"}),Tags:jsxRuntime.jsx(lucideReact.Hash,{className:"h-4 w-4"})},hh=K__namespace.forwardRef(({open:e,onOpenChange:t,items:r=[],recentItems:a=[],placeholder:n="Search...",isLoading:i,emptyMessage:s="No results found.",filter:l,shortcut:d="\u2318K",onSelect:m,footer:u},c)=>{let[f,p]=K__namespace.useState(""),v=K__namespace.useRef(null);K__namespace.useEffect(()=>{e||p("");},[e]);let y=K__namespace.useMemo(()=>{let b={};return r.forEach(h=>{let P=h.category||"Results";b[P]||(b[P]=[]),b[P].push(h);}),b},[r]),g=b=>{b.onSelect?.(),m?.(b),t?.(false);},x=f.length>0,R=!x&&a.length>0;return jsxRuntime.jsx(ie__namespace.Root,{open:e,onOpenChange:t,children:jsxRuntime.jsxs(ie__namespace.Portal,{children:[jsxRuntime.jsx(ie__namespace.Overlay,{className:"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),jsxRuntime.jsx(ie__namespace.Content,{ref:c,className:"fixed left-1/2 top-[20%] z-50 w-full max-w-2xl -translate-x-1/2 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=open]:slide-in-from-left-1/2",children:jsxRuntime.jsxs(cmdk.Command,{className:"overflow-hidden rounded-xl border bg-background shadow-2xl",filter:l,shouldFilter:!l,children:[jsxRuntime.jsxs("div",{className:"flex items-center border-b px-4",children:[jsxRuntime.jsx(lucideReact.Search,{className:"h-5 w-5 shrink-0 text-muted-foreground"}),jsxRuntime.jsx(cmdk.Command.Input,{ref:v,value:f,onValueChange:p,placeholder:n,className:"flex h-14 w-full bg-transparent px-4 py-4 text-base outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"}),f&&jsxRuntime.jsx("button",{type:"button",onClick:()=>p(""),className:"rounded-sm p-1 text-muted-foreground hover:text-foreground",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]}),jsxRuntime.jsx(cmdk.Command.List,{className:"max-h-[400px] overflow-y-auto p-2",children:i?jsxRuntime.jsx("div",{className:"flex items-center justify-center py-10",children:jsxRuntime.jsx("div",{className:"h-6 w-6 animate-spin rounded-full border-2 border-primary border-t-transparent"})}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[R&&jsxRuntime.jsxs(cmdk.Command.Group,{heading:"Recent",children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:"Recent"}),a.map(b=>jsxRuntime.jsxs(cmdk.Command.Item,{value:b.label,onSelect:()=>g(b),className:"flex cursor-pointer items-center gap-3 rounded-lg px-3 py-2.5 text-sm aria-selected:bg-muted",children:[jsxRuntime.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted",children:b.icon||vh[b.category||""]||jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"})}),jsxRuntime.jsxs("div",{className:"flex-1 overflow-hidden",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:b.label}),b.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:b.description})]}),b.shortcut&&jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:b.shortcut.map((h,P)=>jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-medium",children:h},P))})]},b.id))]}),x&&Object.entries(y).map(([b,h])=>jsxRuntime.jsxs(cmdk.Command.Group,{heading:b,children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:b}),h.map(P=>jsxRuntime.jsxs(cmdk.Command.Item,{value:`${P.label} ${P.keywords?.join(" ")||""}`,onSelect:()=>g(P),className:"flex cursor-pointer items-center gap-3 rounded-lg px-3 py-2.5 text-sm aria-selected:bg-muted",children:[jsxRuntime.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted",children:P.icon||vh[b]||jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"})}),jsxRuntime.jsxs("div",{className:"flex-1 overflow-hidden",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:P.label}),P.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:P.description})]}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:"h-4 w-4 text-muted-foreground opacity-0 group-aria-selected:opacity-100"})]},P.id))]},b)),jsxRuntime.jsx(cmdk.Command.Empty,{className:"py-10 text-center text-sm text-muted-foreground",children:s})]})}),u?jsxRuntime.jsx("div",{className:"border-t px-4 py-3",children:u}):jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-t px-4 py-3 text-xs text-muted-foreground",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:"\u2191\u2193"}),"Navigate"]}),jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:"\u21B5"}),"Select"]}),jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:"Esc"}),"Close"]})]}),jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:["Press ",jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:d})," to open"]})]})]})})]})})});hh.displayName="SpotlightSearch";function HM(e="k"){let[t,r]=K__namespace.useState(false);return K__namespace.useEffect(()=>{let a=n=>{(n.metaKey||n.ctrlKey)&&n.key===e&&(n.preventDefault(),r(i=>!i));};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e]),{open:t,setOpen:r,toggle:()=>r(a=>!a)}}var $M=classVarianceAuthority.cva("",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),_M={default:"bg-muted",info:"bg-blue-500/10 text-blue-600 dark:text-blue-400",success:"bg-green-500/10 text-green-600 dark:text-green-400",warning:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",error:"bg-red-500/10 text-red-600 dark:text-red-400"},KM=e=>{let t=typeof e=="string"?new Date(e):e,a=new Date().getTime()-t.getTime(),n=Math.floor(a/6e4),i=Math.floor(a/36e5),s=Math.floor(a/864e5);return n<1?"Just now":n<60?`${n}m ago`:i<24?`${i}h ago`:s<7?`${s}d ago`:t.toLocaleDateString()},xh=K__namespace.forwardRef(({notifications:e=[],onNotificationClick:t,onMarkAsRead:r,onMarkAllAsRead:a,onDismiss:n,onClearAll:i,showSettings:s,onSettingsClick:l,trigger:d,align:m="end",emptyMessage:u="No notifications",maxHeight:c=400,className:f},p)=>{let[v,y]=K__namespace.useState(false),g=e.filter(b=>!b.read).length,x=e.length>0,R=b=>{b.read||r?.(b.id),t?.(b);};return jsxRuntime.jsxs(Ee,{open:v,onOpenChange:y,children:[jsxRuntime.jsx($e,{asChild:true,children:d||jsxRuntime.jsxs("button",{ref:p,className:o("relative inline-flex h-10 w-10 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",f),children:[jsxRuntime.jsx(lucideReact.Bell,{className:"h-5 w-5"}),g>0&&jsxRuntime.jsx("span",{className:"absolute -right-1 -top-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-medium text-primary-foreground",children:g>99?"99+":g})]})}),jsxRuntime.jsxs(Me,{className:"w-80 p-0 sm:w-96",align:m,sideOffset:8,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("h3",{className:"font-semibold",children:"Notifications"}),g>0&&jsxRuntime.jsxs(qi,{size:"sm",children:[g," new"]})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[x&&a&&g>0&&jsxRuntime.jsx("button",{type:"button",onClick:a,className:"rounded-sm p-1.5 text-muted-foreground hover:bg-muted hover:text-foreground",title:"Mark all as read",children:jsxRuntime.jsx(lucideReact.CheckCheck,{className:"h-4 w-4"})}),x&&i&&jsxRuntime.jsx("button",{type:"button",onClick:i,className:"rounded-sm p-1.5 text-muted-foreground hover:bg-muted hover:text-foreground",title:"Clear all",children:jsxRuntime.jsx(lucideReact.Trash2,{className:"h-4 w-4"})}),s&&l&&jsxRuntime.jsx("button",{type:"button",onClick:l,className:"rounded-sm p-1.5 text-muted-foreground hover:bg-muted hover:text-foreground",title:"Settings",children:jsxRuntime.jsx(lucideReact.Settings,{className:"h-4 w-4"})})]})]}),x?jsxRuntime.jsx(ze,{style:{maxHeight:c},children:jsxRuntime.jsx("div",{className:"divide-y",children:e.map(b=>jsxRuntime.jsxs("div",{className:o("group relative flex gap-3 px-4 py-3 transition-colors hover:bg-muted/50",!b.read&&"bg-muted/30"),children:[jsxRuntime.jsx("div",{className:o("flex h-9 w-9 shrink-0 items-center justify-center rounded-full",b.avatar?"overflow-hidden":_M[b.type||"default"]),children:b.avatar?jsxRuntime.jsx("img",{src:b.avatar,alt:"",className:"h-full w-full object-cover"}):b.icon?b.icon:jsxRuntime.jsx(lucideReact.Bell,{className:"h-4 w-4"})}),jsxRuntime.jsxs("button",{type:"button",onClick:()=>R(b),className:"flex-1 text-left",children:[jsxRuntime.jsxs("div",{className:"flex items-start justify-between gap-2",children:[jsxRuntime.jsx("p",{className:o("text-sm",!b.read&&"font-medium"),children:b.title}),!b.read&&jsxRuntime.jsx("span",{className:"mt-1.5 h-2 w-2 shrink-0 rounded-full bg-primary"})]}),b.description&&jsxRuntime.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground line-clamp-2",children:b.description}),jsxRuntime.jsx("p",{className:"mt-1 text-[10px] text-muted-foreground",children:KM(b.timestamp)})]}),jsxRuntime.jsxs("div",{className:"absolute right-2 top-2 flex gap-1 opacity-0 transition-opacity group-hover:opacity-100",children:[!b.read&&r&&jsxRuntime.jsx("button",{type:"button",onClick:h=>{h.stopPropagation(),r(b.id);},className:"rounded-sm p-1 text-muted-foreground hover:bg-background hover:text-foreground",title:"Mark as read",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3.5 w-3.5"})}),(n||b.onDismiss)&&jsxRuntime.jsx("button",{type:"button",onClick:h=>{h.stopPropagation(),b.onDismiss?.(),n?.(b.id);},className:"rounded-sm p-1 text-muted-foreground hover:bg-background hover:text-foreground",title:"Dismiss",children:jsxRuntime.jsx(lucideReact.X,{className:"h-3.5 w-3.5"})})]})]},b.id))})}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center py-10 text-center",children:[jsxRuntime.jsx(lucideReact.Bell,{className:"h-10 w-10 text-muted-foreground/50"}),jsxRuntime.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:u})]})]})]})});xh.displayName="NotificationCenter";var yh=classVarianceAuthority.cva("relative flex items-center justify-center gap-3 px-4 py-2.5 text-sm",{variants:{variant:{solid:"",flat:""},type:{default:"",success:"",warning:"",error:""},position:{top:"fixed top-0 left-0 right-0 z-50",relative:"relative"}},compoundVariants:[{variant:"solid",type:"default",className:"bg-primary text-primary-foreground [&>svg]:text-primary-foreground"},{variant:"flat",type:"default",className:"bg-primary/10 text-primary [&>svg]:text-primary"},{variant:"solid",type:"success",className:"bg-green-600 text-white dark:bg-green-500 [&>svg]:text-white"},{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:"bg-amber-600 text-white dark:bg-amber-500 [&>svg]:text-white"},{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:"bg-red-600 text-white dark:bg-red-500 [&>svg]:text-white"},{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",position:"relative"}}),JM={default:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle},Rh=K__namespace.forwardRef(({message:e,type:t="default",variant:r="solid",showIcon:a=false,icon:n,dismissible:i=true,onDismiss:s,endContent:l,position:d,animate:m,autoDismiss:u,storageKey:c,className:f,...p},v)=>{let[y,g]=K__namespace.useState(true),[x,R]=K__namespace.useState(false);K__namespace.useEffect(()=>{c&&localStorage.getItem(`banner-${c}`)==="true"&&g(false);},[c]),K__namespace.useEffect(()=>{if(u&&y){let w=setTimeout(()=>{b();},u);return ()=>clearTimeout(w)}},[u,y]);let b=()=>{R(true),setTimeout(()=>{g(false),c&&localStorage.setItem(`banner-${c}`,"true"),s?.();},200);};if(!y)return null;let h=JM[t],P=a?n!==void 0?n:h?jsxRuntime.jsx(h,{className:"h-4 w-4"}):null:null;return jsxRuntime.jsxs("div",{ref:v,className:o(yh({variant:r,type:t,position:d}),m&&"animate-pulse",x&&"animate-out fade-out slide-out-to-top duration-200",f),role:"banner",...p,children:[P&&jsxRuntime.jsx("span",{className:"shrink-0",children:P}),jsxRuntime.jsx("span",{className:"text-center font-medium",children:e}),l&&jsxRuntime.jsx("div",{className:"shrink-0 ml-2",children:l}),i&&jsxRuntime.jsx("button",{type:"button",onClick:b,className:o("absolute right-2 top-1/2 -translate-y-1/2 rounded-sm p-1 transition-opacity hover:opacity-70 cursor-pointer",d==="relative"&&"right-4"),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})});Rh.displayName="Banner";var rn=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-full shadow-lg transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-muted",ghost:"bg-background hover:bg-muted shadow-md"},size:{sm:"h-10 w-10",md:"h-14 w-14",lg:"h-16 w-16"},position:{"bottom-right":"fixed bottom-6 right-6","bottom-left":"fixed bottom-6 left-6","bottom-center":"fixed bottom-6 left-1/2 -translate-x-1/2",relative:"relative"}},defaultVariants:{variant:"default",size:"md",position:"bottom-right"}}),tT=classVarianceAuthority.cva("transition-transform duration-200",{variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-7 w-7"}},defaultVariants:{size:"md"}}),Ul=K__namespace.forwardRef(({icon:e,label:t="Action button",extended:r,extendedLabel:a,actions:n,direction:i="up",showTooltip:s=true,closeIcon:l,animation:d="rotate",variant:m,size:u,position:c,className:f,onClick:p,disabled:v,...y},g)=>{let[x,R]=K__namespace.useState(false),b=n&&n.length>0,h=S=>{b&&R(!x),p?.(S);},P=S=>{S.onClick?.(),R(false);},w={up:{container:"flex-col-reverse bottom-full mb-3",item:"mb-3"},down:{container:"flex-col top-full mt-3",item:"mt-3"},left:{container:"flex-row-reverse right-full mr-3",item:"mr-3"},right:{container:"flex-row left-full ml-3",item:"ml-3"}},M=d==="rotate"&&x?"rotate-45":"",C=d==="scale"&&x?"scale-0":"scale-100";return jsxRuntime.jsxs("div",{className:o("z-50",c!=="relative"&&c&&rn({position:c})),children:[b&&x&&jsxRuntime.jsx("div",{className:o("absolute flex items-center gap-2",w[i].container),children:n.map((S,N)=>jsxRuntime.jsxs("div",{className:o("flex items-center gap-2 animate-in fade-in zoom-in duration-200",i==="up"||i==="down"?"flex-row":"flex-col"),style:{animationDelay:`${N*50}ms`},children:[s&&(i==="up"||i==="down")&&jsxRuntime.jsx("span",{className:"rounded-md bg-popover px-2 py-1 text-xs font-medium text-popover-foreground shadow-md whitespace-nowrap",children:S.label}),S.href?jsxRuntime.jsx("a",{href:S.href,className:o(rn({variant:S.variant||"secondary",size:u==="lg"?"md":"sm"})),"aria-label":S.label,children:S.icon}):jsxRuntime.jsx("button",{type:"button",onClick:()=>P(S),className:o(rn({variant:S.variant||"secondary",size:u==="lg"?"md":"sm"})),"aria-label":S.label,children:S.icon}),s&&(i==="left"||i==="right")&&jsxRuntime.jsx("span",{className:"rounded-md bg-popover px-2 py-1 text-xs font-medium text-popover-foreground shadow-md whitespace-nowrap",children:S.label})]},S.id))}),jsxRuntime.jsxs("button",{ref:g,type:"button",onClick:h,disabled:v,className:o(rn({variant:m,size:u,position:"relative"}),r&&"px-6 gap-2",f),"aria-label":t,"aria-expanded":b?x:void 0,...y,children:[x&&l?l:jsxRuntime.jsx("span",{className:o(tT({size:u}),M,C,"transition-all duration-200"),children:e||jsxRuntime.jsx(lucideReact.Plus,{})}),r&&a&&jsxRuntime.jsx("span",{className:"font-medium",children:a})]}),b&&x&&jsxRuntime.jsx("div",{className:"fixed inset-0 -z-10",onClick:()=>R(false)})]})});Ul.displayName="FloatingActionButton";var rT=Ul;var Sh=classVarianceAuthority.cva("fixed bottom-0 left-0 right-0 z-50 flex items-center justify-around border-t bg-background safe-area-pb",{variants:{variant:{default:"border-border",elevated:"border-transparent shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.1)]",filled:"border-transparent bg-primary text-primary-foreground"},size:{sm:"h-14",md:"h-16",lg:"h-20"}},defaultVariants:{variant:"default",size:"md"}}),Nh=classVarianceAuthority.cva("flex flex-1 flex-col items-center justify-center gap-1 transition-colors cursor-pointer",{variants:{variant:{default:"",elevated:"",filled:""}},defaultVariants:{variant:"default"}}),Mh=K__namespace.forwardRef(({className:e,variant:t,size:r,items:a,value:n,defaultValue:i,onValueChange:s,hideLabels:l=false,showActiveLabel:d=false,renderItem:m,...u},c)=>{let[f,p]=K__namespace.useState(i||a[0]?.key),v=n!==void 0,y=v?n:f,g=h=>{h.disabled||(v||p(h.key),s?.(h.key));},x=h=>t==="filled"?h?"text-primary-foreground":"text-primary-foreground/60 hover:text-primary-foreground/80":h?"text-primary":"text-muted-foreground hover:text-foreground",R=()=>{switch(r){case "sm":return "h-5 w-5";case "lg":return "h-7 w-7";default:return "h-6 w-6"}},b=()=>{switch(r){case "sm":return "text-[10px]";case "lg":return "text-sm";default:return "text-xs"}};return jsxRuntime.jsx("nav",{ref:c,className:o(Sh({variant:t,size:r}),e),role:"navigation","aria-label":"Bottom navigation",...u,children:a.map(h=>{let P=y===h.key,w=!l&&(d?P:true),M=P&&h.activeIcon?h.activeIcon:h.icon;if(m)return jsxRuntime.jsx("div",{onClick:()=>g(h),className:o(Nh({variant:t}),h.disabled&&"opacity-50 cursor-not-allowed"),children:m(h,P)},h.key);let C=jsxRuntime.jsxs("div",{onClick:()=>!h.href&&g(h),className:o(Nh({variant:t}),x(P),h.disabled&&"opacity-50 cursor-not-allowed"),role:"button","aria-current":P?"page":void 0,"aria-disabled":h.disabled,tabIndex:h.disabled?-1:0,onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),g(h));},children:[jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("span",{className:o(R(),"[&>svg]:h-full [&>svg]:w-full"),children:M}),h.badge!==void 0&&h.badge>0&&jsxRuntime.jsx("span",{className:"absolute -top-1 -right-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-red-500 px-1 text-[10px] font-medium text-white",children:h.badge>99?"99+":h.badge}),h.showDot&&jsxRuntime.jsx("span",{className:"absolute -top-0.5 -right-0.5 h-2 w-2 rounded-full bg-red-500"})]}),w&&h.label&&jsxRuntime.jsx("span",{className:o(b(),"font-medium truncate max-w-full px-1"),children:h.label})]},h.key);return h.href&&!h.disabled?jsxRuntime.jsx("a",{href:h.href,onClick:()=>g(h),className:o("flex flex-1 flex-col items-center justify-center gap-1 no-underline",x(P)),children:C},h.key):C})})});Mh.displayName="BottomNavigation";var oT="fixed inset-x-0 bottom-0 z-50 mt-24 flex h-fit max-h-[90vh] flex-col rounded-t-[20px] border-t border-border/40 dark:border-border/20 bg-background",kh=classVarianceAuthority.cva("flex w-full items-center gap-3 px-4 py-3.5 text-left transition-colors focus-visible:outline-none focus-visible:bg-accent disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"hover:bg-accent",destructive:"text-destructive hover:bg-destructive/10"}},defaultVariants:{variant:"default"}}),Dh=K__namespace.forwardRef(({open:e,onOpenChange:t,trigger:r,title:a,description:n,items:i,cancelLabel:s="Cancel",onCancel:l,showCancel:d=true,children:m,closeOnSelect:u=true,onAction:c},f)=>{let p=v=>{v.isDisabled||(v.onSelect?.(),c?.(v.key),u&&t?.(false));};return jsxRuntime.jsxs(vaul.Drawer.Root,{open:e,onOpenChange:t,children:[r&&jsxRuntime.jsx(vaul.Drawer.Trigger,{asChild:true,children:r}),jsxRuntime.jsxs(vaul.Drawer.Portal,{children:[jsxRuntime.jsx(vaul.Drawer.Overlay,{className:"fixed inset-0 z-50 bg-black/40"}),jsxRuntime.jsxs(vaul.Drawer.Content,{ref:f,className:oT,children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-1.5 w-12 flex-shrink-0 rounded-full bg-muted"}),(a||n)&&jsxRuntime.jsxs("div",{className:"px-4 py-3 text-center",children:[a&&jsxRuntime.jsx(vaul.Drawer.Title,{className:"text-base font-semibold",children:a}),n&&jsxRuntime.jsx(vaul.Drawer.Description,{className:"mt-1 text-sm text-muted-foreground",children:n})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:m||jsxRuntime.jsx("div",{className:"divide-y divide-border/40 dark:divide-border/20",children:i?.map(v=>jsxRuntime.jsxs("button",{type:"button",disabled:v.isDisabled,onClick:()=>p(v),className:o(kh({variant:v.isDestructive?"destructive":"default"})),children:[v.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 flex-shrink-0 [&>svg]:h-full [&>svg]:w-full",children:v.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"font-medium",children:v.label}),v.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:v.description})]})]},v.key))})}),d&&jsxRuntime.jsx("div",{className:"border-t border-border/40 dark:border-border/20 p-2 pb-safe",children:jsxRuntime.jsx(vaul.Drawer.Close,{asChild:true,children:jsxRuntime.jsx("button",{type:"button",onClick:l,className:"w-full rounded-lg bg-muted py-3.5 text-center font-semibold transition-colors hover:bg-muted/80",children:s})})})]})]})]})});Dh.displayName="ActionSheet";var Lh=classVarianceAuthority.cva("relative overflow-hidden touch-pan-y",{variants:{variant:{default:"",card:"rounded-lg border bg-card"}},defaultVariants:{variant:"default"}}),Xl=classVarianceAuthority.cva("flex h-full items-center justify-center px-4 text-white font-medium transition-opacity",{variants:{variant:{primary:"bg-primary",secondary:"bg-secondary text-secondary-foreground",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500",info:"bg-blue-500"},size:{sm:"min-w-16",md:"min-w-20",lg:"min-w-24"}},defaultVariants:{variant:"primary",size:"md"}}),Ih=K__namespace.forwardRef(({className:e,variant:t,leftActions:r=[],rightActions:a=[],actionSize:n="md",threshold:i=.3,onSwipeEnd:s,disabled:l=false,fullSwipeAction:d,children:m,...u},c)=>{let f=K__namespace.useRef(null),[p,v]=K__namespace.useState(0),[y,g]=K__namespace.useState(false),x=K__namespace.useRef(0),R=K__namespace.useRef(0),b=r.length*(n==="sm"?64:n==="lg"?96:80),h=a.length*(n==="sm"?64:n==="lg"?96:80),P=N=>{l||(g(true),x.current=N.touches[0].clientX,R.current=p);},w=N=>{if(!y||l)return;let k=N.touches[0].clientX-x.current,V=R.current+k;(V>0&&r.length===0||V<0&&a.length===0)&&(V=0),V>b?V=b+(V-b)*.3:V<-h&&(V=-h+(V+h)*.3),v(V);},M=()=>{if(!y)return;g(false);let N=f.current?.offsetWidth||0,T=Math.abs(p)/N;if(d&&T>.6){d==="right"&&p>0&&r[0]?(r[0].onAction?.(),s?.("right",r[0].key)):d==="left"&&p<0&&a[0]&&(a[0].onAction?.(),s?.("left",a[0].key)),v(0);return}p>b*i&&r.length>0?(v(b),s?.("right")):p<-h*i&&a.length>0?(v(-h),s?.("left")):v(0);},C=(N,T)=>{N.onAction?.(),s?.(T,N.key),v(0);},S=()=>{v(0);};return jsxRuntime.jsxs("div",{ref:c,className:o(Lh({variant:t,className:e})),...u,children:[r.length>0&&jsxRuntime.jsx("div",{className:"absolute left-0 top-0 bottom-0 flex",style:{width:b},children:r.map(N=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>C(N,"right"),className:o(Xl({variant:N.variant,size:n})),style:{opacity:Math.min(1,p/b)},children:[N.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:N.icon}),!N.icon&&N.label]},N.key))}),a.length>0&&jsxRuntime.jsx("div",{className:"absolute right-0 top-0 bottom-0 flex",style:{width:h},children:a.map(N=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>C(N,"left"),className:o(Xl({variant:N.variant,size:n})),style:{opacity:Math.min(1,Math.abs(p)/h)},children:[N.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:N.icon}),!N.icon&&N.label]},N.key))}),jsxRuntime.jsx("div",{ref:f,className:o("relative bg-background",y?"":"transition-transform duration-200"),style:{transform:`translateX(${p}px)`},onTouchStart:P,onTouchMove:w,onTouchEnd:M,onClick:p!==0?S:void 0,children:m})]})});Ih.displayName="SwipeActions";var Hh=classVarianceAuthority.cva("relative overflow-hidden",{variants:{variant:{default:"",contained:"h-full"}},defaultVariants:{variant:"default"}}),sT=classVarianceAuthority.cva("absolute left-1/2 -translate-x-1/2 flex items-center justify-center transition-all duration-200",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"}},defaultVariants:{size:"md"}}),Ah=K__namespace.forwardRef(({className:e,variant:t,onRefresh:r,pullThreshold:a=80,maxPullDistance:n=120,loadingIndicator:i,pullIndicator:s,indicatorSize:l="md",disabled:d=false,pullText:m="Pull to refresh",releaseText:u="Release to refresh",refreshingText:c="Refreshing...",children:f,...p},v)=>{let y=K__namespace.useRef(null),[g,x]=K__namespace.useState(0),[R,b]=K__namespace.useState("idle"),h=K__namespace.useRef(0),P=K__namespace.useRef(false),w=()=>d||R==="refreshing"?false:(y.current?.scrollTop??window.scrollY)<=0,M=k=>{w()&&(h.current=k.touches[0].clientY,P.current=true);},C=k=>{if(!P.current||!w())return;let E=k.touches[0].clientY-h.current;if(E<0){x(0),b("idle");return}let D=Math.min(E*.5,n);x(D),b(D>=a?"ready":"pulling");},S=async()=>{if(P.current)if(P.current=false,R==="ready"){b("refreshing"),x(a*.6);try{await r();}finally{b("idle"),x(0);}}else b("idle"),x(0);},N={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}[l],T=()=>{if(R==="refreshing")return i||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:o(N,"animate-spin text-primary")}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:c})]});let k=Math.min(g/a*180,180);return s||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.ArrowDown,{className:o(N,"text-muted-foreground transition-transform"),style:{transform:`rotate(${k}deg)`}}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:R==="ready"?u:m})]})};return jsxRuntime.jsxs("div",{ref:v,className:o(Hh({variant:t,className:e})),...p,children:[jsxRuntime.jsx("div",{className:o(sT({size:l}),"z-10",R==="idle"&&g===0&&"opacity-0"),style:{top:Math.max(g-60,-60),opacity:Math.min(g/(a*.5),1)},children:T()}),jsxRuntime.jsx("div",{ref:y,className:o("transition-transform duration-200",R==="refreshing"&&"ease-out"),style:{transform:`translateY(${g}px)`,transition:P.current?"none":void 0},onTouchStart:M,onTouchMove:C,onTouchEnd:S,children:f})]})});Ah.displayName="PullToRefresh";var Bh=classVarianceAuthority.cva("flex min-h-screen w-full",{variants:{layout:{default:"flex-col",sidebar:"flex-row"}},defaultVariants:{layout:"default"}}),Fh=K__namespace.forwardRef(({className:e,layout:t="default",header:r,footer:a,sidebar:n,aside:i,sidebarCollapsed:s=false,sidebarWidth:l="16rem",sidebarCollapsedWidth:d="4rem",asideWidth:m="16rem",fixed:u=false,children:c,...f},p)=>{let v=s?d:l;return jsxRuntime.jsxs("div",{ref:p,className:o(Bh({layout:t}),e),style:{"--app-shell-sidebar-width":v,"--app-shell-aside-width":m},...f,children:[r&&jsxRuntime.jsx(Zl,{fixed:u,hasSidebar:!!n,children:r}),jsxRuntime.jsxs("div",{className:"flex flex-1",children:[n&&jsxRuntime.jsx(Jl,{collapsed:s,fixed:u,children:n}),jsxRuntime.jsx("main",{className:o("flex-1 flex flex-col min-h-0",u&&r&&"pt-14",u&&a&&"pb-14"),children:c}),i&&jsxRuntime.jsx(Ql,{fixed:u,children:i})]}),a&&jsxRuntime.jsx(ed,{fixed:u,hasSidebar:!!n,children:a})]})});Fh.displayName="AppShell";var Zl=K__namespace.forwardRef(({className:e,fixed:t,hasSidebar:r,children:a,...n},i)=>jsxRuntime.jsx("header",{ref:i,className:o("flex h-14 items-center border-b bg-background px-4",t&&"fixed top-0 right-0 z-40",t&&r&&"left-[var(--app-shell-sidebar-width)]",t&&!r&&"left-0",e),...n,children:a}));Zl.displayName="AppShellHeader";var Jl=K__namespace.forwardRef(({className:e,collapsed:t,fixed:r,children:a,...n},i)=>jsxRuntime.jsx("aside",{ref:i,className:o("w-[var(--app-shell-sidebar-width)] shrink-0 border-r bg-background transition-[width] duration-200",r&&"fixed left-0 top-0 bottom-0 z-50",e),"data-collapsed":t,...n,children:a}));Jl.displayName="AppShellSidebar";var Ql=K__namespace.forwardRef(({className:e,fixed:t,children:r,...a},n)=>jsxRuntime.jsx("aside",{ref:n,className:o("w-[var(--app-shell-aside-width)] shrink-0 border-l bg-background",t&&"fixed right-0 top-14 bottom-0 z-40",e),...a,children:r}));Ql.displayName="AppShellAside";var ed=K__namespace.forwardRef(({className:e,fixed:t,hasSidebar:r,children:a,...n},i)=>jsxRuntime.jsx("footer",{ref:i,className:o("flex h-14 items-center border-t bg-background px-4",t&&"fixed bottom-0 right-0 z-40",t&&r&&"left-[var(--app-shell-sidebar-width)]",t&&!r&&"left-0",e),...n,children:a}));ed.displayName="AppShellFooter";var Oh=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex-1 overflow-auto p-4",e),...t}));Oh.displayName="AppShellMain";var Wh=classVarianceAuthority.cva("flex min-h-screen w-full bg-muted/40",{variants:{variant:{default:"",bordered:"[&_[data-slot=sidebar]]:border-r [&_[data-slot=header]]:border-b",filled:"[&_[data-slot=sidebar]]:bg-background [&_[data-slot=header]]:bg-background"}},defaultVariants:{variant:"bordered"}}),$h=K__namespace.forwardRef(({className:e,variant:t,navigation:r,logo:a,userMenu:n,headerActions:i,breadcrumb:s,defaultCollapsed:l=false,collapsed:d,onCollapsedChange:m,children:u,...c},f)=>{let[p,v]=K__namespace.useState(l),[y,g]=K__namespace.useState(false),x=d??p,R=K__namespace.useCallback(b=>{v(b),m?.(b);},[m]);return jsxRuntime.jsxs("div",{ref:f,className:o(Wh({variant:t}),e),...c,children:[jsxRuntime.jsxs("aside",{"data-slot":"sidebar","data-collapsed":x,className:o("hidden lg:flex flex-col fixed inset-y-0 left-0 z-50 bg-background transition-[width] duration-200",x?"w-16":"w-64"),children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:a}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:r}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]}),jsxRuntime.jsx(So,{open:y,onOpenChange:g,children:jsxRuntime.jsxs(Ha,{side:"left",className:"w-64 p-0",children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:a}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:r}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]})}),jsxRuntime.jsxs("div",{className:o("flex flex-1 flex-col transition-[margin-left] duration-200",x?"lg:ml-16":"lg:ml-64"),children:[jsxRuntime.jsxs("header",{"data-slot":"header",className:"sticky top-0 z-40 flex h-14 items-center gap-4 bg-background px-4 lg:px-6",children:[jsxRuntime.jsxs($,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:()=>g(true),children:[jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle menu"})]}),jsxRuntime.jsxs($,{variant:"ghost",size:"icon",className:"hidden lg:flex",onClick:()=>R(!x),children:[jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle sidebar"})]}),s&&jsxRuntime.jsx("div",{className:"flex-1",children:s}),i&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:i})]}),jsxRuntime.jsx("main",{className:"flex-1 p-4 lg:p-6",children:u})]})]})});$h.displayName="DashboardLayout";var _h=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("space-y-6",e),...t}));_h.displayName="DashboardPage";var Kh=K__namespace.forwardRef(({className:e,title:t,description:r,actions:a,children:n,...i},s)=>jsxRuntime.jsxs("div",{ref:s,className:o("flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",e),...i,children:[jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:t}),r&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:r}),n]}),a&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:a})]}));Kh.displayName="DashboardPageHeader";var Yh=K__namespace.forwardRef(({className:e,columns:t=4,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:o("grid gap-4",{1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"}[t],e),...r}));Yh.displayName="DashboardGrid";var $i=classVarianceAuthority.cva("min-h-screen w-full",{variants:{variant:{centered:"flex items-center justify-center bg-muted/40",split:"flex flex-col lg:flex-row",cover:"relative flex items-center justify-center"}},defaultVariants:{variant:"centered"}}),Uh=K__namespace.forwardRef(({className:e,variant:t="centered",logo:r,sideContent:a,backgroundImage:n,sidePosition:i="left",footer:s,children:l,...d},m)=>t==="split"?jsxRuntime.jsxs("div",{ref:m,className:o($i({variant:t}),e),...d,children:[jsxRuntime.jsx("div",{className:o("hidden lg:flex lg:w-1/2 flex-col bg-primary text-primary-foreground",i==="right"&&"order-2"),children:a||jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center p-8",children:[r&&jsxRuntime.jsx("div",{className:"mb-8",children:r}),jsxRuntime.jsxs("div",{className:"max-w-md text-center",children:[jsxRuntime.jsx("h2",{className:"text-3xl font-bold",children:"Welcome back"}),jsxRuntime.jsx("p",{className:"mt-4 text-primary-foreground/80",children:"Sign in to your account to continue"})]})]})}),jsxRuntime.jsxs("div",{className:o("flex flex-1 flex-col lg:w-1/2",i==="right"&&"order-1"),children:[r&&jsxRuntime.jsx("div",{className:"flex items-center justify-center p-6 lg:hidden",children:r}),jsxRuntime.jsx("div",{className:"flex flex-1 items-center justify-center p-6",children:jsxRuntime.jsx("div",{className:"w-full max-w-md space-y-6",children:l})}),s&&jsxRuntime.jsx("div",{className:"p-6 text-center text-sm text-muted-foreground",children:s})]})]}):t==="cover"?jsxRuntime.jsxs("div",{ref:m,className:o($i({variant:t}),e),style:n?{backgroundImage:`url(${n})`,backgroundSize:"cover",backgroundPosition:"center"}:void 0,...d,children:[n&&jsxRuntime.jsx("div",{className:"absolute inset-0 bg-background/80 backdrop-blur-sm"}),jsxRuntime.jsxs("div",{className:"relative z-10 w-full max-w-md p-6",children:[r&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:r}),jsxRuntime.jsx("div",{className:"rounded-lg border bg-card p-6 shadow-lg",children:l}),s&&jsxRuntime.jsx("div",{className:"mt-6 text-center text-sm text-muted-foreground",children:s})]})]}):jsxRuntime.jsx("div",{ref:m,className:o($i({variant:t}),e),...d,children:jsxRuntime.jsxs("div",{className:"w-full max-w-md p-6",children:[r&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:r}),jsxRuntime.jsx("div",{className:"rounded-lg border bg-card p-6 shadow-sm",children:l}),s&&jsxRuntime.jsx("div",{className:"mt-6 text-center text-sm text-muted-foreground",children:s})]})}));Uh.displayName="AuthLayout";var jh=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("form",{ref:r,className:o("space-y-4",e),...t}));jh.displayName="AuthForm";var Xh=K__namespace.forwardRef(({className:e,title:t,description:r,children:a,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("space-y-2 text-center",e),...n,children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold",children:t}),r&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:r}),a]}));Xh.displayName="AuthHeader";var qh=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex flex-col gap-2 text-center text-sm",e),...t}));qh.displayName="AuthFooterLinks";var Zh=K__namespace.forwardRef(({className:e,text:t="or continue with",...r},a)=>jsxRuntime.jsxs("div",{ref:a,className:o("relative my-4",e),...r,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center",children:jsxRuntime.jsx("span",{className:"w-full border-t"})}),jsxRuntime.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:jsxRuntime.jsx("span",{className:"bg-card px-2 text-muted-foreground",children:t})})]}));Zh.displayName="AuthDivider";var Jh=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("grid grid-cols-2 gap-2",e),...t}));Jh.displayName="AuthSocialButtons";var _i=classVarianceAuthority.cva("w-full",{variants:{variant:{sidebar:"flex flex-col lg:flex-row gap-8",tabs:"space-y-6",stacked:"space-y-8"}},defaultVariants:{variant:"sidebar"}}),Qh=K__namespace.forwardRef(({className:e,variant:t="sidebar",navigation:r,title:a,description:n,children:i,...s},l)=>t==="sidebar"?jsxRuntime.jsxs("div",{ref:l,className:o(_i({variant:t}),e),...s,children:[r&&jsxRuntime.jsx("aside",{className:"lg:w-64 shrink-0",children:jsxRuntime.jsx("nav",{className:"flex flex-col gap-1",children:r})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-6",children:[(a||n)&&jsxRuntime.jsx(on,{title:a,description:n}),i]})]}):t==="tabs"?jsxRuntime.jsxs("div",{ref:l,className:o(_i({variant:t}),e),...s,children:[(a||n)&&jsxRuntime.jsx(on,{title:a,description:n}),r,jsxRuntime.jsx("div",{className:"pt-4",children:i})]}):jsxRuntime.jsxs("div",{ref:l,className:o(_i({variant:t}),e),...s,children:[(a||n)&&jsxRuntime.jsx(on,{title:a,description:n}),i]}));Qh.displayName="SettingsLayout";var on=K__namespace.forwardRef(({className:e,title:t,description:r,children:a,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("space-y-1",e),...n,children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold",children:t}),r&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:r}),a]}));on.displayName="SettingsHeader";var ex=K__namespace.forwardRef(({className:e,title:t,description:r,children:a,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("space-y-4",e),...n,children:[(t||r)&&jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h2",{className:"text-lg font-medium",children:t}),r&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:r})]}),a]}));ex.displayName="SettingsSection";var tx=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("rounded-lg border bg-card p-6",e),...t}));tx.displayName="SettingsCard";var rx=K__namespace.forwardRef(({className:e,label:t,description:r,htmlFor:a,children:n,...i},s)=>jsxRuntime.jsxs("div",{ref:s,className:o("flex flex-col gap-4 py-4 sm:flex-row sm:items-center sm:justify-between","border-b last:border-0 first:pt-0 last:pb-0",e),...i,children:[jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[t&&jsxRuntime.jsx("label",{htmlFor:a,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:t}),r&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:r})]}),jsxRuntime.jsx("div",{className:"shrink-0",children:n})]}));rx.displayName="SettingsRow";var ax=K__namespace.forwardRef(({className:e,active:t,icon:r,children:a,...n},i)=>jsxRuntime.jsxs("button",{ref:i,type:"button",className:o("flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors","hover:bg-muted",t&&"bg-muted",e),...n,children:[r&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:r}),a]}));ax.displayName="SettingsNavItem";var ox=K__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:o("h-px bg-border my-4",e),...t}));ox.displayName="SettingsSeparator";var La=(e,t,r)=>({duration:e,delay:t,ease:r||[.4,0,.2,1]}),uT={hidden:e=>({opacity:e}),visible:{opacity:1},exit:e=>({opacity:e})},nx=K__namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:i,unmountOnExit:s=true,initialOpacity:l=0,onAnimationStart:d,onAnimationComplete:m},u)=>{let c=jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:uT,custom:l,transition:La(r,a,n),className:o(i),onAnimationStart:d,onAnimationComplete:m,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&c}):c});nx.displayName="Fade";var pT=(e,t)=>{let r=typeof t=="number"?`${t}px`:t,a={up:{y:r},down:{y:`-${r}`},left:{x:r},right:{x:`-${r}`}};return {hidden:{opacity:0,...a[e]},visible:{opacity:1,x:0,y:0},exit:{opacity:0,...a[e]}}},ix=K__namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:i,unmountOnExit:s=true,direction:l="up",offset:d=20,onAnimationStart:m,onAnimationComplete:u},c)=>{let f=K__namespace.useMemo(()=>pT(l,d),[l,d]),p=jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:f,transition:La(r,a,n),className:o(i),onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&p}):p});ix.displayName="Slide";var fT={center:"center center",top:"center top",bottom:"center bottom",left:"left center",right:"right center","top-left":"left top","top-right":"right top","bottom-left":"left bottom","bottom-right":"right bottom"},gT={hidden:e=>({opacity:0,scale:e}),visible:{opacity:1,scale:1},exit:e=>({opacity:0,scale:e})},sx=K__namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:i,unmountOnExit:s=true,initialScale:l=.9,origin:d="center",onAnimationStart:m,onAnimationComplete:u},c)=>{let f=jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:gT,custom:l,transition:La(r,a,n),className:o(i),style:{transformOrigin:fT[d]},onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&f}):f});sx.displayName="Scale";var lx=K__namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:i,horizontal:s=false,startingSize:l=0,animateOpacity:d=true,onAnimationStart:m,onAnimationComplete:u},c)=>{let f=s?"width":"height",p={hidden:{[f]:l,opacity:d?0:1},visible:{[f]:"auto",opacity:1},exit:{[f]:l,opacity:d?0:1}};return jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,children:e&&jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:"visible",exit:"exit",variants:p,transition:La(r,a,n),className:o("overflow-hidden",i),onAnimationStart:m,onAnimationComplete:u,children:t})})});lx.displayName="Collapse";var dx=K__namespace.forwardRef(({show:e=true,children:t,duration:r=.4,delay:a=0,ease:n,className:i,initialWidth:s=0,initialHeight:l=0,animateOpacity:d=true,onAnimationStart:m,onAnimationComplete:u},c)=>{let f={hidden:{width:s,height:l,opacity:d?0:1},visible:{width:"auto",height:"auto",opacity:1},exit:{width:s,height:l,opacity:d?0:1}};return jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,children:e&&jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:"visible",exit:"exit",variants:f,transition:La(r,a,n),className:o("overflow-hidden",i),onAnimationStart:m,onAnimationComplete:u,children:t})})});dx.displayName="Expand";var cx=K__namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:i,unmountOnExit:s=true,initialRotation:l=-180,finalRotation:d=0,onAnimationStart:m,onAnimationComplete:u},c)=>{let f={hidden:{opacity:0,rotate:l},visible:{opacity:1,rotate:d},exit:{opacity:0,rotate:l}},p=jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:f,transition:La(r,a,n),className:o(i),onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&p}):p});cx.displayName="Rotate";var mx=K__namespace.forwardRef(({front:e,back:t,direction:r="horizontal",flipped:a=false,duration:n=.6,delay:i=0,ease:s,className:l,onAnimationStart:d,onAnimationComplete:m},u)=>{let c=r==="horizontal"?"rotateY":"rotateX";return jsxRuntime.jsx("div",{ref:u,className:o("relative",l),style:{perspective:1e3},children:jsxRuntime.jsxs(framerMotion.motion.div,{animate:{[c]:a?180:0},transition:La(n,i,s),style:{transformStyle:"preserve-3d"},onAnimationStart:d,onAnimationComplete:m,children:[jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden"},children:e}),jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden",transform:`${c}(180deg)`},children:t})]})})});mx.displayName="Flip";var ux=K__namespace.forwardRef(({color:e="currentColor",duration:t=.6,children:r,className:a,disabled:n=false},i)=>{let[s,l]=K__namespace.useState([]),d=K__namespace.useRef(null),m=c=>{if(n)return;let f=d.current;if(!f)return;let p=f.getBoundingClientRect(),v=c.clientX-p.left,y=c.clientY-p.top,g=Math.max(p.width,p.height)*2,x={id:Date.now(),x:v,y,size:g};l(R=>[...R,x]);},u=c=>{l(f=>f.filter(p=>p.id!==c));};return jsxRuntime.jsxs("div",{ref:i,className:o("relative overflow-hidden",a),onClick:m,children:[jsxRuntime.jsx("div",{ref:d,className:"relative z-0",children:r}),jsxRuntime.jsx(framerMotion.AnimatePresence,{children:s.map(c=>jsxRuntime.jsx(framerMotion.motion.span,{initial:{scale:0,opacity:.35},animate:{scale:1,opacity:0},exit:{opacity:0},transition:{duration:t,ease:"easeOut"},onAnimationComplete:()=>u(c.id),className:"pointer-events-none absolute rounded-full",style:{left:c.x-c.size/2,top:c.y-c.size/2,width:c.size,height:c.size,backgroundColor:e}},c.id))})]})});ux.displayName="Ripple";var px=K__namespace.forwardRef(({children:e,animate:t=true,height:r=10,duration:a=.5,count:n=0,className:i,triggerOnHover:s=false},l)=>{let[d,m]=K__namespace.useState(false),u=s?d:t,c={idle:{y:0},bounce:{y:[0,-r,0],transition:{duration:a,ease:"easeInOut",repeat:n===0?1/0:n-1,repeatType:"loop"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:c,initial:"idle",animate:u?"bounce":"idle",className:o(i),onMouseEnter:()=>s&&m(true),onMouseLeave:()=>s&&m(false),children:e})});px.displayName="Bounce";var hT={subtle:[0,-2,2,-2,2,-1,1,0],normal:[0,-5,5,-5,5,-3,3,0],strong:[0,-10,10,-10,10,-5,5,0]},fx=K__namespace.forwardRef(({children:e,animate:t=true,intensity:r="normal",duration:a=.5,count:n=1,className:i,triggerOnHover:s=false},l)=>{let[d,m]=K__namespace.useState(false),u=s?d:t,c={idle:{x:0},shake:{x:hT[r],transition:{duration:a,ease:"easeInOut",repeat:n-1}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:c,initial:"idle",animate:u?"shake":"idle",className:o(i),onMouseEnter:()=>s&&m(true),onMouseLeave:()=>s&&m(false),children:e})});fx.displayName="Shake";var xT={slow:"animate-[pulse_3s_ease-in-out_infinite]",normal:"animate-[pulse_2s_ease-in-out_infinite]",fast:"animate-[pulse_1s_ease-in-out_infinite]"},gx=K__namespace.forwardRef(({children:e,animate:t=true,speed:r="normal",className:a},n)=>jsxRuntime.jsx("div",{ref:n,className:o(t&&xT[r],a),children:e}));gx.displayName="Pulse";var bx=K__namespace.forwardRef(({children:e,animate:t=true,angle:r=10,duration:a=.3,count:n=0,className:i,triggerOnHover:s=false},l)=>{let[d,m]=K__namespace.useState(false),u=s?d:t,c={idle:{rotate:0},wiggle:{rotate:[0,-r,r,-r,r,0],transition:{duration:a,ease:"easeInOut",repeat:n===0?1/0:n-1,repeatType:"loop"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:c,initial:"idle",animate:u?"wiggle":"idle",className:o(i),onMouseEnter:()=>s&&m(true),onMouseLeave:()=>s&&m(false),children:e})});bx.displayName="Wiggle";var vx=K__namespace.forwardRef(({children:e,animate:t=false,scale:r=1.2,duration:a=.2,className:n,triggerOnHover:i=false,triggerOnClick:s=false},l)=>{let[d,m]=K__namespace.useState(false),u=t||d,c={type:"spring",stiffness:400,damping:17,duration:a},f=()=>{s&&(m(true),setTimeout(()=>m(false),a*1e3));};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,animate:{scale:u?r:1},transition:c,className:o(n),onMouseEnter:()=>i&&m(true),onMouseLeave:()=>i&&m(false),onClick:f,children:e})});vx.displayName="Pop";var PT=(e,t,r,a)=>{let n=e.toFixed(t),[i,s]=n.split("."),l=i.replace(/\B(?=(\d{3})+(?!\d))/g,r);return s?`${l}${a}${s}`:l},hx=K__namespace.forwardRef(({value:e,from:t=0,duration:r=2,decimals:a=0,prefix:n="",suffix:i="",separator:s=",",decimalSeparator:l=".",animateOnView:d=true,delay:m=0,className:u,onComplete:c},f)=>{let p=K__namespace.useRef(null),v=framerMotion.useInView(p,{once:true}),[y,g]=K__namespace.useState(!d);K__namespace.useEffect(()=>{if(d&&v){let h=setTimeout(()=>g(true),m*1e3);return ()=>clearTimeout(h)}},[d,v,m]);let x={damping:30,stiffness:100,duration:r*1e3},R=framerMotion.useSpring(y?e:t,x),b=framerMotion.useTransform(R,h=>PT(h,a,s,l));return K__namespace.useEffect(()=>{y&&R.set(e);},[y,e,R]),K__namespace.useEffect(()=>{let h=R.on("change",P=>{Math.abs(P-e)<.01&&c&&c();});return ()=>h()},[R,e,c]),jsxRuntime.jsx("span",{ref:p,className:o(u),children:jsxRuntime.jsxs("span",{ref:f,children:[n,jsxRuntime.jsx(framerMotion.motion.span,{children:b}),i]})})});hx.displayName="Counter";var xx=K__namespace.forwardRef(({text:e,speed:t=50,delay:r=0,pauseBetween:a=1500,cursor:n=true,cursorChar:i="|",loop:s=false,deleteSpeed:l=30,animateOnView:d=true,className:m,cursorClassName:u,onComplete:c},f)=>{let p=Array.isArray(e)?e:[e],[v,y]=K__namespace.useState(""),[g,x]=K__namespace.useState(0),[R,b]=K__namespace.useState(false),[h,P]=K__namespace.useState(false),w=K__namespace.useRef(null),M=framerMotion.useInView(w,{once:true}),[C,S]=K__namespace.useState(!d);return K__namespace.useEffect(()=>{if(d&&M){let N=setTimeout(()=>S(true),r*1e3);return ()=>clearTimeout(N)}},[d,M,r]),K__namespace.useEffect(()=>{if(!C||h)return;let N=p[g],T;return R?v.length>0?T=setTimeout(()=>{y(v.slice(0,-1));},l):(b(false),x(k=>(k+1)%p.length)):v.length<N.length?T=setTimeout(()=>{y(N.slice(0,v.length+1));},t):g<p.length-1||s?T=setTimeout(()=>{b(true);},a):(P(true),c?.()),()=>clearTimeout(T)},[C,v,g,R,h,p,t,l,a,s,c]),jsxRuntime.jsxs("span",{ref:w,className:o(m),children:[jsxRuntime.jsx("span",{ref:f,children:v}),n&&jsxRuntime.jsx(framerMotion.motion.span,{animate:{opacity:[1,0]},transition:{duration:.8,repeat:1/0,repeatType:"reverse"},className:o("ml-0.5",u),children:i})]})});xx.displayName="Typewriter";var yx=K__namespace.forwardRef(({children:e,direction:t="up",stagger:r=.05,duration:a=.5,delay:n=0,splitBy:i="word",animateOnView:s=true,className:l},d)=>{let m=K__namespace.useRef(null),u=framerMotion.useInView(m,{once:true,amount:.5}),c=s?u:true,f=typeof e=="string"?e:"",p=i==="word"?f.split(" "):f.split(""),v={up:{y:20},down:{y:-20},left:{x:20},right:{x:-20}},y={hidden:{},visible:{transition:{staggerChildren:r,delayChildren:n}}},g={hidden:{opacity:0,...v[t]},visible:{opacity:1,x:0,y:0,transition:{duration:a,ease:"easeInOut"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:d,className:o("inline-flex flex-wrap",l),variants:y,initial:"hidden",animate:c?"visible":"hidden",children:jsxRuntime.jsx("span",{ref:m,children:p.map((x,R)=>jsxRuntime.jsxs(framerMotion.motion.span,{variants:g,className:"inline-block",children:[x,i==="word"&&R<p.length-1&&"\xA0"]},R))})})});yx.displayName="TextReveal";var Rx=K__namespace.forwardRef(({words:e,duration:t=2,animation:r="slide",animationDuration:a=.5,className:n,loop:i=true},s)=>{let[l,d]=K__namespace.useState(0);K__namespace.useEffect(()=>{if(!i&&l===e.length-1)return;let u=setInterval(()=>{d(c=>(c+1)%e.length);},t*1e3);return ()=>clearInterval(u)},[e.length,t,i,l]);let m=()=>{switch(r){case "fade":return {initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};case "slide":return {initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20}};case "scale":return {initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:1.2}};case "blur":return {initial:{opacity:0,filter:"blur(10px)"},animate:{opacity:1,filter:"blur(0px)"},exit:{opacity:0,filter:"blur(10px)"}}}};return jsxRuntime.jsx("span",{ref:s,className:o("relative inline-block",n),children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"wait",children:jsxRuntime.jsx(framerMotion.motion.span,{variants:m(),initial:"initial",animate:"animate",exit:"exit",transition:{duration:a},className:"inline-block",children:e[l]},e[l])})})});Rx.displayName="WordRotate";var Cx=K__namespace.forwardRef(({children:e,direction:t="up",distance:r=50,duration:a=.6,delay:n=0,once:i=true,threshold:s=.1,className:l,scale:d,rotate:m,blur:u,ease:c=[.4,0,.2,1]},f)=>{let p=K__namespace.useRef(null),v=framerMotion.useInView(p,{once:i,amount:s}),g={up:{x:0,y:r},down:{x:0,y:-r},left:{x:r,y:0},right:{x:-r,y:0},none:{x:0,y:0}}[t],x={hidden:{opacity:0,x:g.x,y:g.y,scale:d??1,rotate:m??0,filter:u?`blur(${u}px)`:"blur(0px)"},visible:{opacity:1,x:0,y:0,scale:1,rotate:0,filter:"blur(0px)",transition:{duration:a,delay:n,ease:c}}};return jsxRuntime.jsx("div",{ref:p,children:jsxRuntime.jsx(framerMotion.motion.div,{ref:f,variants:x,initial:"hidden",animate:v?"visible":"hidden",className:o(l),children:e})})});Cx.displayName="ScrollReveal";var Sx=K__namespace.forwardRef(({position:e="top",size:t=4,color:r="hsl(var(--primary))",backgroundColor:a="transparent",zIndex:n=50,className:i,container:s,showPercentage:l=false,useSpring:d=true},m)=>{let{scrollYProgress:u}=framerMotion.useScroll({container:s}),c=framerMotion.useSpring(u,{stiffness:100,damping:30,restDelta:.001}),f=d?c:u,p=e==="top"||e==="bottom",v={top:{top:0,left:0,right:0,height:t},bottom:{bottom:0,left:0,right:0,height:t},left:{top:0,left:0,bottom:0,width:t},right:{top:0,right:0,bottom:0,width:t}},y=p?"scaleX":"scaleY",g=p?"left":"top";return jsxRuntime.jsxs("div",{ref:m,className:o("fixed",i),style:{...v[e],zIndex:n,backgroundColor:a},children:[jsxRuntime.jsx(framerMotion.motion.div,{className:"h-full w-full",style:{[y]:f,transformOrigin:g,backgroundColor:r}}),l&&jsxRuntime.jsx(ST,{progress:f,position:e})]})});Sx.displayName="ScrollProgress";var ST=({progress:e,position:t})=>{let r=framerMotion.useTransform(e,s=>Math.round(s*100)),[a,n]=K__namespace.useState(0);return K__namespace.useEffect(()=>{let s=r.on("change",n);return ()=>s()},[r]),jsxRuntime.jsxs("span",{className:o("fixed rounded bg-background/80 px-2 py-1 text-xs font-medium backdrop-blur-sm",{top:"top-2 right-4",bottom:"bottom-2 right-4",left:"top-4 left-2",right:"top-4 right-2"}[t]),children:[a,"%"]})},Mx=K__namespace.forwardRef(({children:e,speed:t=.5,direction:r="vertical",className:a,container:n},i)=>{let s=K__namespace.useRef(null),{scrollYProgress:l}=framerMotion.useScroll({target:s,container:n,offset:["start end","end start"]}),d=[-100*t,100*t],m=framerMotion.useTransform(l,[0,1],d),u=framerMotion.useSpring(m,{stiffness:100,damping:30}),c=r==="horizontal"?u:0,f=r==="vertical"?u:0;return jsxRuntime.jsx("div",{ref:s,className:o("overflow-hidden",a),children:jsxRuntime.jsx(framerMotion.motion.div,{ref:i,style:{x:c,y:f},children:e})})});Mx.displayName="Parallax";var Dx=K__namespace.forwardRef(({children:e,width:t,height:r,duration:a=1.5,direction:n="right",baseColor:i="hsl(var(--muted))",highlightColor:s="hsl(var(--muted-foreground) / 0.1)",borderRadius:l,className:d,active:m=true},u)=>{let c={left:"to left",right:"to right",top:"to top",bottom:"to bottom"},f={left:"shimmer-left",right:"shimmer-right",top:"shimmer-top",bottom:"shimmer-bottom"};return jsxRuntime.jsxs("div",{ref:u,className:o("relative overflow-hidden",d),style:{width:t,height:r,borderRadius:l,backgroundColor:i},children:[e,m&&jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:`linear-gradient(${c[n]}, transparent, ${s}, transparent)`,animation:`${f[n]} ${a}s infinite`}}),jsxRuntime.jsx("style",{children:`
|
|
37
37
|
@keyframes shimmer-right {
|
|
38
38
|
0% { transform: translateX(-100%); }
|
|
39
39
|
100% { transform: translateX(100%); }
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
0% { transform: translateY(-100%); }
|
|
51
51
|
100% { transform: translateY(100%); }
|
|
52
52
|
}
|
|
53
|
-
`})]})});Hx.displayName="Shimmer";var zT={sm:24,md:40,lg:56,xl:80},BT={default:{circle:"stroke-muted-foreground",check:"stroke-foreground"},success:{circle:"stroke-green-500",check:"stroke-green-500"},primary:{circle:"stroke-primary",check:"stroke-primary"},outline:{circle:"stroke-border",check:"stroke-foreground"}},Ax=K__namespace.forwardRef(({show:e=true,size:t="md",variant:r="success",strokeWidth:a=2,duration:n=.6,delay:i=0,className:s,onComplete:l},d)=>{let m=zT[t],u=BT[r],c={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:i,ease:"easeOut"}}},f={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:i+n*.4,ease:"easeOut"}}};return jsxRuntime.jsxs("svg",{ref:d,width:m,height:m,viewBox:"0 0 50 50",className:o(s),children:[jsxRuntime.jsx(framerMotion.motion.circle,{cx:"25",cy:"25",r:"22",fill:"none",strokeWidth:a,className:u.circle,variants:c,initial:"hidden",animate:e?"visible":"hidden"}),jsxRuntime.jsx(framerMotion.motion.path,{d:"M14 27 L22 35 L36 18",fill:"none",strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round",className:u.check,variants:f,initial:"hidden",animate:e?"visible":"hidden",onAnimationComplete:()=>e&&l?.()})]})});Ax.displayName="Checkmark";var yo={particleCount:100,spread:70,startVelocity:30,decay:.95,gravity:1,colors:["#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff"],origin:{x:.5,y:.5},shapes:["square","circle"],scalar:1,drift:0,ticks:200},zx=K__namespace.forwardRef(({autoTrigger:e=false,delay:t=0,options:r={},children:a,onTrigger:n},i)=>{let s=K__namespace.useCallback(()=>{let l={...yo,...r};xo__default.default(l),n?.();},[r,n]);return K__namespace.useEffect(()=>{if(e){let l=setTimeout(s,t);return ()=>clearTimeout(l)}},[e,t,s]),a?jsxRuntime.jsx("button",{ref:i,type:"button",onClick:s,children:a}):null});zx.displayName="Confetti";var FT=()=>{let e=K__namespace.useCallback(a=>{let n={...yo,...a};xo__default.default(n);},[]),t=K__namespace.useCallback(()=>{let n=Date.now()+3e3,i=setInterval(()=>{let s=n-Date.now();if(s<=0){clearInterval(i);return}let l=50*(s/3e3);xo__default.default({...yo,particleCount:l,origin:{x:Math.random()*.4+.1,y:Math.random()-.2}}),xo__default.default({...yo,particleCount:l,origin:{x:Math.random()*.4+.5,y:Math.random()-.2}});},250);},[]),r=K__namespace.useCallback((a="both")=>{let n={x:0,y:1},i={x:1,y:1};(a==="left"||a==="both")&&xo__default.default({...yo,particleCount:50,angle:60,spread:55,origin:n}),(a==="right"||a==="both")&&xo__default.default({...yo,particleCount:50,angle:120,spread:55,origin:i});},[]);return {fire:e,fireworks:t,cannon:r}},Bx=K__namespace.forwardRef(({children:e,color:t="hsl(var(--primary))",intensity:r=20,spread:a=0,animate:n=false,duration:i=2,className:s},l)=>{let d={boxShadow:`0 0 ${r}px ${a}px ${t}`};return n?jsxRuntime.jsx(framerMotion.motion.div,{ref:l,className:o(s),animate:{boxShadow:[`0 0 ${r}px ${a}px ${t}`,`0 0 ${r*1.5}px ${a+5}px ${t}`,`0 0 ${r}px ${a}px ${t}`]},transition:{duration:i,repeat:1/0,ease:"easeInOut"},children:e}):jsxRuntime.jsx("div",{ref:l,className:o(s),style:d,children:e})});Bx.displayName="Glow";var Ex=(e,t)=>({id:Math.random().toString(36).substr(2,9),x:`${Math.random()*100}%`,y:`${Math.random()*100}%`,size:Math.random()*(t-e)+e,delay:Math.random()*2}),Fx=K__namespace.forwardRef(({children:e,count:t=10,color:r="hsl(var(--primary))",minSize:a=4,maxSize:n=8,duration:i=1.5,className:s},l)=>{let[d,m]=K__namespace.useState([]);return K__namespace.useEffect(()=>{let u=Array.from({length:t},()=>Ex(a,n));m(u);let c=setInterval(()=>{m(f=>{let p=[...f],h=Math.floor(Math.random()*t);return p[h]=Ex(a,n),p});},i*500);return ()=>clearInterval(c)},[t,a,n,i]),jsxRuntime.jsxs("div",{ref:l,className:o("relative inline-block",s),children:[e,d.map(u=>jsxRuntime.jsx(framerMotion.motion.svg,{className:"pointer-events-none absolute",style:{left:u.x,top:u.y,width:u.size,height:u.size},viewBox:"0 0 24 24",initial:{scale:0,opacity:0,rotate:0},animate:{scale:[0,1,0],opacity:[0,1,0],rotate:[0,180]},transition:{duration:i,delay:u.delay,repeat:1/0,ease:"easeInOut"},children:jsxRuntime.jsx("path",{d:"M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z",fill:r})},u.id))]})});Fx.displayName="Sparkles";Object.defineProperty(exports,"toast",{enumerable:true,get:function(){return sonner.toast}});Object.defineProperty(exports,"useTheme",{enumerable:true,get:function(){return nextThemes.useTheme}});exports.Accordion=h0;exports.AccordionItem=Tc;exports.ActionBar=bv;exports.ActionBarButton=vv;exports.ActionGroup=rv;exports.ActionIcon=Ig;exports.ActionMenu=xv;exports.ActionSheet=Hh;exports.Alert=ry;exports.AlertDescription=oy;exports.AlertTitle=ay;exports.AppShell=_h;exports.AppShellAside=rd;exports.AppShellFooter=ad;exports.AppShellHeader=ed;exports.AppShellMain=Kh;exports.AppShellSidebar=td;exports.AreaChart=tb;exports.AspectRatio=V0;exports.AuthDivider=rx;exports.AuthFooterLinks=tx;exports.AuthForm=Qh;exports.AuthHeader=ex;exports.AuthLayout=Jh;exports.AuthSocialButtons=ax;exports.Autocomplete=yf;exports.Avatar=aa;exports.AvatarFallback=oa;exports.AvatarGroup=Ym;exports.AvatarImage=Aa;exports.BackTop=Jp;exports.Badge=sy;exports.Banner=Sh;exports.BarChart=Qg;exports.BatteryMeter=$v;exports.BottomNavigation=Lh;exports.Bounce=hx;exports.Breadcrumb=Oc;exports.BreadcrumbEllipsis=Yc;exports.BreadcrumbItem=Wc;exports.BreadcrumbLink=$c;exports.BreadcrumbList=Gc;exports.BreadcrumbPage=_c;exports.BreadcrumbSeparator=Kc;exports.Button=$;exports.ButtonGroup=qb;exports.COUNTRIES=Fp;exports.Calendar=Ga;exports.Card=vd;exports.CardContent=xd;exports.CardFooter=yd;exports.CardHeader=hd;exports.Carousel=db;exports.CarouselContent=cb;exports.CarouselItem=mb;exports.CarouselNext=wl;exports.CarouselPrevious=Rl;exports.Center=ah;exports.Checkbox=No;exports.Checkmark=Ax;exports.Chip=Pu;exports.CircularProgress=Iu;exports.CloseButton=Dg;exports.Code=If;exports.Collapse=px;exports.Collapsible=Lc;exports.CollapsibleContent=Ec;exports.CollapsibleTrigger=Ic;exports.ColorArea=jv;exports.ColorField=Yb;exports.ColorPicker=Sp;exports.ColorSlider=Zv;exports.ColorSwatch=Oo;exports.ColorSwatchPicker=Pp;exports.ColorWheel=Qv;exports.Combobox=Fm;exports.Command=Ms;exports.CommandDialog=Q0;exports.CommandEmpty=Vm;exports.CommandGroup=Lm;exports.CommandInput=km;exports.CommandItem=Em;exports.CommandList=Dm;exports.CommandSeparator=Im;exports.CommandShortcut=Hm;exports.Confetti=zx;exports.ConfirmDialog=ll;exports.ContextMenu=n0;exports.ContextMenuCheckboxItem=pc;exports.ContextMenuContent=mc;exports.ContextMenuGroup=s0;exports.ContextMenuItem=uc;exports.ContextMenuLabel=gc;exports.ContextMenuPortal=l0;exports.ContextMenuRadioGroup=c0;exports.ContextMenuRadioItem=fc;exports.ContextMenuSeparator=bc;exports.ContextMenuShortcut=vc;exports.ContextMenuSub=d0;exports.ContextMenuSubContent=cc;exports.ContextMenuSubTrigger=dc;exports.ContextMenuTrigger=i0;exports.ContextualHelp=Vv;exports.CopyButton=jg;exports.Counter=Nx;exports.CurrencyInput=Vp;exports.DEFAULT_COLORS=qo;exports.DashboardGrid=Zh;exports.DashboardLayout=jh;exports.DashboardPage=Xh;exports.DashboardPageHeader=qh;exports.DataTable=oN;exports.DateField=Fb;exports.DateInput=zp;exports.DatePicker=Gm;exports.DateRangePicker=ng;exports.DefaultErrorFallback=tl;exports.Dialog=ts;exports.DialogClose=hy;exports.DialogContent=bn;exports.DialogDescription=Cd;exports.DialogFooter=Nd;exports.DialogHeader=wd;exports.DialogOverlay=rs;exports.DialogPortal=Rd;exports.DialogTitle=Pd;exports.DialogTrigger=vy;exports.DiskUsageMeter=Wv;exports.Dots=ku;exports.Drawer=rm;exports.DrawerClose=z0;exports.DrawerContent=om;exports.DrawerDescription=lm;exports.DrawerFooter=im;exports.DrawerHeader=nm;exports.DrawerOverlay=Ns;exports.DrawerPortal=am;exports.DrawerTitle=sm;exports.DrawerTrigger=A0;exports.DropdownMenu=la;exports.DropdownMenuCheckboxItem=Kd;exports.DropdownMenuContent=Ir;exports.DropdownMenuGroup=Gy;exports.DropdownMenuItem=It;exports.DropdownMenuLabel=Ud;exports.DropdownMenuPortal=Wy;exports.DropdownMenuRadioGroup=_y;exports.DropdownMenuRadioItem=Yd;exports.DropdownMenuSeparator=Sn;exports.DropdownMenuShortcut=jd;exports.DropdownMenuSub=$y;exports.DropdownMenuSubContent=_d;exports.DropdownMenuSubTrigger=$d;exports.DropdownMenuTrigger=da;exports.EMOJIS=Pl;exports.EMOJI_CATEGORIES=vi;exports.EmojiPicker=pb;exports.EmptyState=Yu;exports.ErrorBoundary=_N;exports.Expand=fx;exports.FAB=uT;exports.Fade=cx;exports.FieldContext=Us;exports.FileUpload=yp;exports.Flex=on;exports.Flip=bx;exports.FloatingActionButton=ql;exports.Form=Rf;exports.FormContext=Ys;exports.FormControl=Cf;exports.FormDescription=Sf;exports.FormField=wf;exports.FormItem=Nf;exports.FormLabel=Pf;exports.FormMessage=Mf;exports.FullCalendar=Zg;exports.Glow=Bx;exports.Grid=Fi;exports.GridItem=sh;exports.GridList=Fv;exports.HStack=th;exports.HoverCard=R0;exports.HoverCardContent=Bc;exports.HoverCardTrigger=w0;exports.IconButton=Qb;exports.IllustratedMessage=cv;exports.Image=Af;exports.ImageCropper=hb;exports.ImageViewer=cl;exports.ImageViewerTrigger=Sg;exports.Indicator=Bg;exports.IndicatorWrapper=Fg;exports.InfiniteScroll=cg;exports.InlineAlert=fv;exports.Input=hn;exports.InputOTP=Au;exports.InputOTPGroup=zu;exports.InputOTPSeparator=Fu;exports.InputOTPSlot=Bu;exports.KanbanBoard=ib;exports.Kbd=_g;exports.Label=ra;exports.LabeledValue=fh;exports.LabeledValueGroup=bh;exports.LineChart=Jg;exports.Link=qp;exports.List=Ju;exports.ListItem=ep;exports.ListItemText=tp;exports.ListView=Pv;exports.Listbox=Wf;exports.ListboxItem=$f;exports.Loading=ag;exports.LoadingOverlay=qf;exports.MASK_PRESETS=Bs;exports.MaskedInput=Ep;exports.Menubar=Qp;exports.MenubarCheckboxItem=nf;exports.MenubarContent=af;exports.MenubarGroup=Kw;exports.MenubarItem=of;exports.MenubarLabel=lf;exports.MenubarMenu=_w;exports.MenubarPortal=Yw;exports.MenubarRadioGroup=jw;exports.MenubarRadioItem=sf;exports.MenubarSeparator=df;exports.MenubarShortcut=cf;exports.MenubarSub=Uw;exports.MenubarSubContent=rf;exports.MenubarSubTrigger=tf;exports.MenubarTrigger=ef;exports.Meter=Hi;exports.Modal=bg;exports.ModalBody=yg;exports.ModalClose=oP;exports.ModalContent=hg;exports.ModalDescription=Ng;exports.ModalFooter=Rg;exports.ModalHeader=xg;exports.ModalOverlay=sl;exports.ModalPortal=vg;exports.ModalRoot=rP;exports.ModalTitle=wg;exports.ModalTrigger=aP;exports.MultiSelect=Wd;exports.NProgress=Jf;exports.Navbar=$p;exports.NavbarBrand=_p;exports.NavbarContent=Kp;exports.NavbarItem=Yp;exports.NavbarLink=Up;exports.NavigationMenu=jc;exports.NavigationMenuContent=Jc;exports.NavigationMenuIndicator=Qc;exports.NavigationMenuItem=E0;exports.NavigationMenuLink=H0;exports.NavigationMenuList=Xc;exports.NavigationMenuTrigger=Zc;exports.NavigationMenuViewport=ws;exports.NotificationCenter=Ph;exports.NumberField=Lb;exports.NumberInput=zm;exports.Pagination=Nm;exports.PaginationContent=Pm;exports.PaginationEllipsis=Tm;exports.PaginationItem=Cm;exports.PaginationLink=Hn;exports.PaginationNext=Mm;exports.PaginationPrevious=Sm;exports.Parallax=Lx;exports.PasswordInput=Am;exports.PhoneInput=Op;exports.PieChart=eb;exports.Pop=wx;exports.Popover=Ee;exports.PopoverAnchor=ms;exports.PopoverContent=Me;exports.PopoverTrigger=$e;exports.Portal=Ag;exports.Progress=Ln;exports.PullToRefresh=Gh;exports.Pulse=yx;exports.QRCode=yb;exports.RadioGroup=hc;exports.RadioGroupItem=xc;exports.RangeSlider=Mv;exports.Rating=jm;exports.ResizableHandle=zR;exports.ResizablePanel=AR;exports.ResizablePanelGroup=HR;exports.RichTextEditor=gb;exports.Ripple=vx;exports.Rotate=gx;exports.Scale=ux;exports.ScrollArea=ze;exports.ScrollBar=bs;exports.ScrollProgress=Vx;exports.ScrollReveal=Dx;exports.ScrollShadow=Wg;exports.SearchBar=Rh;exports.SearchField=Ab;exports.SegmentedControl=gp;exports.SegmentedControlItem=bp;exports.Select=is;exports.SelectContent=Pn;exports.SelectGroup=Hy;exports.SelectItem=Cn;exports.SelectLabel=Od;exports.SelectScrollDownButton=ds;exports.SelectScrollUpButton=ls;exports.SelectSeparator=Gd;exports.SelectTrigger=Nn;exports.SelectValue=ss;exports.Separator=Vr;exports.SettingsCard=ix;exports.SettingsHeader=ln;exports.SettingsLayout=ox;exports.SettingsNavItem=lx;exports.SettingsRow=sx;exports.SettingsSection=nx;exports.SettingsSeparator=dx;exports.Shake=xx;exports.Sheet=ko;exports.SheetClose=qy;exports.SheetContent=za;exports.SheetDescription=lc;exports.SheetFooter=ic;exports.SheetHeader=nc;exports.SheetOverlay=fs;exports.SheetPortal=ac;exports.SheetTitle=sc;exports.SheetTrigger=Xy;exports.Shimmer=Hx;exports.Sidebar=Zm;exports.SidebarContent=iu;exports.SidebarFooter=ou;exports.SidebarGroup=su;exports.SidebarGroupAction=du;exports.SidebarGroupContent=cu;exports.SidebarGroupLabel=lu;exports.SidebarHeader=au;exports.SidebarInset=ru;exports.SidebarMenu=mu;exports.SidebarMenuAction=gu;exports.SidebarMenuBadge=bu;exports.SidebarMenuButton=fu;exports.SidebarMenuItem=uu;exports.SidebarMenuSkeleton=vu;exports.SidebarMenuSub=hu;exports.SidebarMenuSubButton=yu;exports.SidebarMenuSubItem=xu;exports.SidebarPersistentToggle=eu;exports.SidebarProvider=qm;exports.SidebarRail=tu;exports.SidebarSeparator=nu;exports.SidebarToggle=Qm;exports.SidebarTrigger=Jm;exports.SimpleGrid=lh;exports.Skeleton=Rn;exports.Slide=mx;exports.Slider=kn;exports.Snippet=Hf;exports.SortableList=VN;exports.Spacer=Yg;exports.Sparkles=Fx;exports.Spinner=xm;exports.SpotlightSearch=Nh;exports.StatCard=Xu;exports.StatusLight=sv;exports.Step=ff;exports.Steps=uf;exports.SwipeActions=Bh;exports.Switch=Dd;exports.Table=dm;exports.TableBody=mm;exports.TableCaption=bm;exports.TableCell=gm;exports.TableFooter=um;exports.TableHead=fm;exports.TableHeader=cm;exports.TableRow=pm;exports.Tabs=Qd;exports.TabsContent=rc;exports.TabsList=ec;exports.TabsTrigger=tc;exports.TagGroup=Ev;exports.TagInput=$u;exports.TextBadge=Qi;exports.TextField=Mb;exports.TextReveal=Cx;exports.Textarea=Vd;exports.ThemeProvider=Rb;exports.ThemeToggle=wb;exports.TimeField=Wb;exports.TimeInput=Tp;exports.TimePicker=ig;exports.Timeline=np;exports.TimelineContent=dp;exports.TimelineItem=sp;exports.TimelineOpposite=cp;exports.TimelineSeparator=lp;exports.Toaster=Qy;exports.Toggle=Rc;exports.ToggleGroup=Nc;exports.ToggleGroupItem=Pc;exports.Tooltip=ia;exports.TooltipContent=Lr;exports.TooltipProvider=na;exports.TooltipTrigger=sa;exports.TreeView=vf;exports.Typewriter=Px;exports.User=Df;exports.VStack=rh;exports.VirtualList=XN;exports.VisuallyHidden=Uo;exports.Well=mh;exports.Wiggle=Rx;exports.WordRotate=Sx;exports.actionBarVariants=gv;exports.actionGroupVariants=tv;exports.actionIconVariants=Lg;exports.actionMenuTriggerVariants=hv;exports.actionSheetItemVariants=Eh;exports.alertVariants=ey;exports.appShellVariants=$h;exports.applyMask=Yn;exports.authLayoutVariants=Yi;exports.autocompleteInputVariants=xf;exports.avatarGroupVariants=Km;exports.backTopVariants=Zp;exports.badgeIndicatorVariants=ny;exports.bannerVariants=Ch;exports.bottomNavigationVariants=Vh;exports.buttonGroupVariants=jb;exports.buttonVariants=tr;exports.cardVariants=bd;exports.carouselVariants=sb;exports.chartContainerVariants=Xo;exports.chipVariants=Nu;exports.circularProgressVariants=Lu;exports.closeButtonVariants=kg;exports.cn=o;exports.codeVariants=Lf;exports.colorAreaVariants=_v;exports.colorFieldVariants=Kb;exports.colorSliderVariants=qv;exports.colorSwatchPickerVariants=Np;exports.colorSwatchVariants=wp;exports.colorWheelVariants=Jv;exports.confirmDialogIconVariants=Cg;exports.contextualHelpTriggerVariants=Dv;exports.copyButtonVariants=Ug;exports.currencyInputVariants=kp;exports.dashboardLayoutVariants=Uh;exports.dateFieldVariants=Bb;exports.dateInputVariants=Hp;exports.dotsVariants=Tu;exports.emojiPickerVariants=ub;exports.emptyStateVariants=Ku;exports.fabVariants=nn;exports.fileUploadVariants=vp;exports.flexVariants=eh;exports.formatCurrency=zs;exports.formatDate=jn;exports.formatFileSize=_n;exports.formatPhoneNumber=qn;exports.fullCalendarVariants=qg;exports.getFileIcon=hp;exports.getMaskPlaceholder=Ip;exports.gridItemVariants=ih;exports.gridListItemVariants=Bv;exports.gridListVariants=zv;exports.gridVariants=nh;exports.hexToRgb=Yv;exports.hsvToRgb=zi;exports.iconButtonVariants=Jb;exports.illustratedMessageVariants=dv;exports.imageCropperVariants=vb;exports.imageVariants=Zs;exports.indicatorVariants=zg;exports.infiniteScrollLoaderVariants=ol;exports.infiniteScrollVariants=dg;exports.inlineAlertVariants=pv;exports.inputOTPVariants=Hu;exports.inputSizeVariants=Cb;exports.kanbanBoardVariants=ob;exports.kanbanCardVariants=xl;exports.kanbanColumnVariants=nb;exports.kbdVariants=$g;exports.labelSizeVariants=Sb;exports.labeledValueGroupVariants=gh;exports.labeledValueVariants=ph;exports.linkVariants=Xp;exports.listItemVariants=Qu;exports.listVariants=Zu;exports.listViewItemVariants=Nv;exports.listViewVariants=wv;exports.listboxItemVariants=Of;exports.listboxVariants=Ff;exports.loadingOverlayVariants=Xf;exports.loadingVariants=rg;exports.maskedInputVariants=Lp;exports.meterVariants=Gv;exports.modalContentVariants=il;exports.navbarVariants=Wp;exports.navigationMenuTriggerStyle=qc;exports.notificationCenterVariants=QM;exports.nprogressVariants=Zf;exports.numberFieldVariants=Vb;exports.parseDate=Ap;exports.parseFormattedValue=Dp;exports.phoneInputVariants=Bp;exports.pullToRefreshVariants=Oh;exports.qrCodeVariants=Tl;exports.rangeSliderVariants=Sv;exports.ratingVariants=Um;exports.rgbToHex=Uv;exports.rgbToHsv=Kv;exports.richTextEditorVariants=fb;exports.scrollShadowVariants=Gg;exports.searchBarVariants=yh;exports.searchFieldVariants=Hb;exports.segmentedControlItemVariants=pp;exports.segmentedControlVariants=up;exports.settingsLayoutVariants=Ui;exports.sheetVariants=oc;exports.sidebarMenuButtonVariants=pu;exports.skeletonVariants=Id;exports.snippetVariants=Ef;exports.sortableItemVariants=Yf;exports.sortableListVariants=Kf;exports.spinnerVariants=hm;exports.statCardVariants=ju;exports.statusLightVariants=iv;exports.stepVariants=pf;exports.stepsVariants=mf;exports.swipeActionVariants=Jl;exports.swipeActionsVariants=zh;exports.tagGroupItemVariants=$l;exports.tagGroupVariants=Iv;exports.tagVariants=Wu;exports.textBadgeVariants=ly;exports.textFieldVariants=Pb;exports.themeToggleVariants=fS;exports.timeFieldVariants=Gb;exports.timeInputVariants=Mp;exports.timelineItemVariants=ip;exports.timelineVariants=op;exports.toggleVariants=Tn;exports.treeViewVariants=bf;exports.unmask=Fs;exports.useButtonGroup=zS;exports.useCarousel=yl;exports.useConfetti=FT;exports.useConfirmDialog=uP;exports.useFieldContext=Qn;exports.useFormContext=js;exports.useSidebar=Fn;exports.useSpotlight=KM;exports.userVariants=kf;exports.validateFile=xp;exports.validators=vN;exports.virtualListVariants=sg;exports.wellVariants=ch;//# sourceMappingURL=index.cjs.map
|
|
53
|
+
`})]})});Dx.displayName="Shimmer";var MT={sm:24,md:40,lg:56,xl:80},TT={default:{circle:"stroke-muted-foreground",check:"stroke-foreground"},success:{circle:"stroke-green-500",check:"stroke-green-500"},primary:{circle:"stroke-primary",check:"stroke-primary"},outline:{circle:"stroke-border",check:"stroke-foreground"}},Vx=K__namespace.forwardRef(({show:e=true,size:t="md",variant:r="success",strokeWidth:a=2,duration:n=.6,delay:i=0,className:s,onComplete:l},d)=>{let m=MT[t],u=TT[r],c={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:i,ease:"easeOut"}}},f={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:i+n*.4,ease:"easeOut"}}};return jsxRuntime.jsxs("svg",{ref:d,width:m,height:m,viewBox:"0 0 50 50",className:o(s),children:[jsxRuntime.jsx(framerMotion.motion.circle,{cx:"25",cy:"25",r:"22",fill:"none",strokeWidth:a,className:u.circle,variants:c,initial:"hidden",animate:e?"visible":"hidden"}),jsxRuntime.jsx(framerMotion.motion.path,{d:"M14 27 L22 35 L36 18",fill:"none",strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round",className:u.check,variants:f,initial:"hidden",animate:e?"visible":"hidden",onAnimationComplete:()=>e&&l?.()})]})});Vx.displayName="Checkmark";var vo={particleCount:100,spread:70,startVelocity:30,decay:.95,gravity:1,colors:["#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff"],origin:{x:.5,y:.5},shapes:["square","circle"],scalar:1,drift:0,ticks:200},Lx=K__namespace.forwardRef(({autoTrigger:e=false,delay:t=0,options:r={},children:a,onTrigger:n},i)=>{let s=K__namespace.useCallback(()=>{let l={...vo,...r};bo__default.default(l),n?.();},[r,n]);return K__namespace.useEffect(()=>{if(e){let l=setTimeout(s,t);return ()=>clearTimeout(l)}},[e,t,s]),a?jsxRuntime.jsx("button",{ref:i,type:"button",onClick:s,children:a}):null});Lx.displayName="Confetti";var kT=()=>{let e=K__namespace.useCallback(a=>{let n={...vo,...a};bo__default.default(n);},[]),t=K__namespace.useCallback(()=>{let n=Date.now()+3e3,i=setInterval(()=>{let s=n-Date.now();if(s<=0){clearInterval(i);return}let l=50*(s/3e3);bo__default.default({...vo,particleCount:l,origin:{x:Math.random()*.4+.1,y:Math.random()-.2}}),bo__default.default({...vo,particleCount:l,origin:{x:Math.random()*.4+.5,y:Math.random()-.2}});},250);},[]),r=K__namespace.useCallback((a="both")=>{let n={x:0,y:1},i={x:1,y:1};(a==="left"||a==="both")&&bo__default.default({...vo,particleCount:50,angle:60,spread:55,origin:n}),(a==="right"||a==="both")&&bo__default.default({...vo,particleCount:50,angle:120,spread:55,origin:i});},[]);return {fire:e,fireworks:t,cannon:r}},Ix=K__namespace.forwardRef(({children:e,color:t="hsl(var(--primary))",intensity:r=20,spread:a=0,animate:n=false,duration:i=2,className:s},l)=>{let d={boxShadow:`0 0 ${r}px ${a}px ${t}`};return n?jsxRuntime.jsx(framerMotion.motion.div,{ref:l,className:o(s),animate:{boxShadow:[`0 0 ${r}px ${a}px ${t}`,`0 0 ${r*1.5}px ${a+5}px ${t}`,`0 0 ${r}px ${a}px ${t}`]},transition:{duration:i,repeat:1/0,ease:"easeInOut"},children:e}):jsxRuntime.jsx("div",{ref:l,className:o(s),style:d,children:e})});Ix.displayName="Glow";var kx=(e,t)=>({id:Math.random().toString(36).substr(2,9),x:`${Math.random()*100}%`,y:`${Math.random()*100}%`,size:Math.random()*(t-e)+e,delay:Math.random()*2}),Ex=K__namespace.forwardRef(({children:e,count:t=10,color:r="hsl(var(--primary))",minSize:a=4,maxSize:n=8,duration:i=1.5,className:s},l)=>{let[d,m]=K__namespace.useState([]);return K__namespace.useEffect(()=>{let u=Array.from({length:t},()=>kx(a,n));m(u);let c=setInterval(()=>{m(f=>{let p=[...f],v=Math.floor(Math.random()*t);return p[v]=kx(a,n),p});},i*500);return ()=>clearInterval(c)},[t,a,n,i]),jsxRuntime.jsxs("div",{ref:l,className:o("relative inline-block",s),children:[e,d.map(u=>jsxRuntime.jsx(framerMotion.motion.svg,{className:"pointer-events-none absolute",style:{left:u.x,top:u.y,width:u.size,height:u.size},viewBox:"0 0 24 24",initial:{scale:0,opacity:0,rotate:0},animate:{scale:[0,1,0],opacity:[0,1,0],rotate:[0,180]},transition:{duration:i,delay:u.delay,repeat:1/0,ease:"easeInOut"},children:jsxRuntime.jsx("path",{d:"M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z",fill:r})},u.id))]})});Ex.displayName="Sparkles";Object.defineProperty(exports,"toast",{enumerable:true,get:function(){return sonner.toast}});Object.defineProperty(exports,"useTheme",{enumerable:true,get:function(){return nextThemes.useTheme}});exports.Accordion=f0;exports.AccordionItem=Cc;exports.ActionBar=mv;exports.ActionBarButton=uv;exports.ActionGroup=Zb;exports.ActionIcon=Tg;exports.ActionMenu=fv;exports.ActionSheet=Dh;exports.Alert=Zx;exports.AlertDescription=Qx;exports.AlertTitle=Jx;exports.AppShell=Fh;exports.AppShellAside=Ql;exports.AppShellFooter=ed;exports.AppShellHeader=Zl;exports.AppShellMain=Oh;exports.AppShellSidebar=Jl;exports.AreaChart=qg;exports.AspectRatio=M0;exports.AuthDivider=Zh;exports.AuthFooterLinks=qh;exports.AuthForm=jh;exports.AuthHeader=Xh;exports.AuthLayout=Uh;exports.AuthSocialButtons=Jh;exports.Autocomplete=gf;exports.Avatar=ta;exports.AvatarFallback=ra;exports.AvatarGroup=Gm;exports.AvatarImage=Ea;exports.BackTop=Up;exports.Badge=ry;exports.Banner=Rh;exports.BarChart=jg;exports.BatteryMeter=Bv;exports.BottomNavigation=Mh;exports.Bounce=px;exports.Breadcrumb=zc;exports.BreadcrumbEllipsis=$c;exports.BreadcrumbItem=Fc;exports.BreadcrumbLink=Oc;exports.BreadcrumbList=Bc;exports.BreadcrumbPage=Gc;exports.BreadcrumbSeparator=Wc;exports.Button=$;exports.ButtonGroup=Kb;exports.COUNTRIES=Ep;exports.Calendar=Fa;exports.Card=fd;exports.CardContent=bd;exports.CardFooter=vd;exports.CardHeader=gd;exports.Carousel=ob;exports.CarouselContent=nb;exports.CarouselItem=ib;exports.CarouselNext=xl;exports.CarouselPrevious=hl;exports.Center=Jv;exports.Checkbox=yo;exports.Checkmark=Vx;exports.Chip=xu;exports.CircularProgress=Tu;exports.CloseButton=Cg;exports.Code=Tf;exports.Collapse=lx;exports.Collapsible=kc;exports.CollapsibleContent=Vc;exports.CollapsibleTrigger=Dc;exports.ColorArea=$v;exports.ColorField=Gb;exports.ColorPicker=Rp;exports.ColorSlider=Yv;exports.ColorSwatch=zo;exports.ColorSwatchPicker=xp;exports.ColorWheel=jv;exports.Command=Ps;exports.CommandDialog=X0;exports.CommandEmpty=Tm;exports.CommandGroup=km;exports.CommandInput=Sm;exports.CommandItem=Vm;exports.CommandList=Mm;exports.CommandSeparator=Dm;exports.CommandShortcut=Lm;exports.Confetti=Lx;exports.ConfirmDialog=nl;exports.ContextMenu=t0;exports.ContextMenuCheckboxItem=cc;exports.ContextMenuContent=lc;exports.ContextMenuGroup=a0;exports.ContextMenuItem=dc;exports.ContextMenuLabel=uc;exports.ContextMenuPortal=o0;exports.ContextMenuRadioGroup=i0;exports.ContextMenuRadioItem=mc;exports.ContextMenuSeparator=pc;exports.ContextMenuShortcut=fc;exports.ContextMenuSub=n0;exports.ContextMenuSubContent=sc;exports.ContextMenuSubTrigger=ic;exports.ContextMenuTrigger=r0;exports.ContextualHelp=Sv;exports.CopyButton=$g;exports.Counter=hx;exports.CurrencyInput=Sp;exports.DEFAULT_COLORS=Uo;exports.DashboardGrid=Yh;exports.DashboardLayout=$h;exports.DashboardPage=_h;exports.DashboardPageHeader=Kh;exports.DataTable=jw;exports.DateField=Eb;exports.DateInput=Lp;exports.DatePicker=Am;exports.DateRangePicker=eg;exports.DefaultErrorFallback=Js;exports.Dialog=Ji;exports.DialogClose=py;exports.DialogContent=pn;exports.DialogDescription=wd;exports.DialogFooter=yd;exports.DialogHeader=xd;exports.DialogOverlay=Qi;exports.DialogPortal=hd;exports.DialogTitle=Rd;exports.DialogTrigger=uy;exports.DiskUsageMeter=zv;exports.Dots=Pu;exports.Drawer=Qc;exports.DrawerClose=I0;exports.DrawerContent=tm;exports.DrawerDescription=nm;exports.DrawerFooter=am;exports.DrawerHeader=rm;exports.DrawerOverlay=ys;exports.DrawerPortal=em;exports.DrawerTitle=om;exports.DrawerTrigger=L0;exports.DropdownMenu=ia;exports.DropdownMenuCheckboxItem=Wd;exports.DropdownMenuContent=Vr;exports.DropdownMenuGroup=zy;exports.DropdownMenuItem=Lt;exports.DropdownMenuLabel=_d;exports.DropdownMenuPortal=By;exports.DropdownMenuRadioGroup=Oy;exports.DropdownMenuRadioItem=$d;exports.DropdownMenuSeparator=Nn;exports.DropdownMenuShortcut=Kd;exports.DropdownMenuSub=Fy;exports.DropdownMenuSubContent=Gd;exports.DropdownMenuSubTrigger=Od;exports.DropdownMenuTrigger=sa;exports.EMOJIS=Rl;exports.EMOJI_CATEGORIES=fi;exports.EmojiPicker=lb;exports.EmptyState=Gu;exports.ErrorBoundary=EN;exports.Expand=dx;exports.FAB=rT;exports.Fade=nx;exports.FieldContext=_s;exports.FileUpload=gp;exports.Flex=tn;exports.Flip=mx;exports.FloatingActionButton=Ul;exports.Form=bf;exports.FormContext=$s;exports.FormControl=yf;exports.FormDescription=Rf;exports.FormField=vf;exports.FormItem=hf;exports.FormLabel=xf;exports.FormMessage=wf;exports.FullCalendar=Yg;exports.Glow=Ix;exports.Grid=Ai;exports.GridItem=rh;exports.GridList=Ev;exports.HStack=qv;exports.HoverCard=v0;exports.HoverCardContent=Hc;exports.HoverCardTrigger=h0;exports.IconButton=jb;exports.IllustratedMessage=nv;exports.Image=Vf;exports.ImageCropper=pb;exports.ImageViewer=sl;exports.ImageViewerTrigger=Rg;exports.Indicator=Ig;exports.IndicatorWrapper=Eg;exports.InfiniteScroll=ng;exports.InlineAlert=dv;exports.Input=gn;exports.InputOTP=Vu;exports.InputOTPGroup=Lu;exports.InputOTPSeparator=Eu;exports.InputOTPSlot=Iu;exports.KanbanBoard=tb;exports.Kbd=Fg;exports.Label=ea;exports.LabeledValue=dh;exports.LabeledValueGroup=mh;exports.LineChart=Ug;exports.Link=Kp;exports.List=Uu;exports.ListItem=Xu;exports.ListItemText=qu;exports.ListView=xv;exports.Listbox=zf;exports.ListboxItem=Bf;exports.Loading=Jf;exports.LoadingOverlay=Kf;exports.MASK_PRESETS=Hs;exports.MaskedInput=kp;exports.Menubar=jp;exports.MenubarCheckboxItem=ef;exports.MenubarContent=Jp;exports.MenubarGroup=Hw;exports.MenubarItem=Qp;exports.MenubarLabel=rf;exports.MenubarMenu=Ew;exports.MenubarPortal=Aw;exports.MenubarRadioGroup=Bw;exports.MenubarRadioItem=tf;exports.MenubarSeparator=af;exports.MenubarShortcut=of;exports.MenubarSub=zw;exports.MenubarSubContent=Zp;exports.MenubarSubTrigger=qp;exports.MenubarTrigger=Xp;exports.Meter=Li;exports.Modal=mg;exports.ModalBody=gg;exports.ModalClose=jN;exports.ModalContent=pg;exports.ModalDescription=hg;exports.ModalFooter=bg;exports.ModalHeader=fg;exports.ModalOverlay=ol;exports.ModalPortal=ug;exports.ModalRoot=YN;exports.ModalTitle=vg;exports.ModalTrigger=UN;exports.MultiSelect=Fd;exports.NProgress=Uf;exports.Navbar=Bp;exports.NavbarBrand=Fp;exports.NavbarContent=Op;exports.NavbarItem=Gp;exports.NavbarLink=Wp;exports.NavigationMenu=Kc;exports.NavigationMenuContent=Xc;exports.NavigationMenuIndicator=qc;exports.NavigationMenuItem=D0;exports.NavigationMenuLink=V0;exports.NavigationMenuList=Yc;exports.NavigationMenuTrigger=jc;exports.NavigationMenuViewport=xs;exports.NotificationCenter=xh;exports.NumberField=Mb;exports.NumberInput=Em;exports.Pagination=ym;exports.PaginationContent=Rm;exports.PaginationEllipsis=Cm;exports.PaginationItem=wm;exports.PaginationLink=Ln;exports.PaginationNext=Pm;exports.PaginationPrevious=Nm;exports.Parallax=Mx;exports.PasswordInput=Im;exports.PhoneInput=Hp;exports.PieChart=Xg;exports.Pop=vx;exports.Popover=Ee;exports.PopoverAnchor=ls;exports.PopoverContent=Me;exports.PopoverTrigger=$e;exports.Portal=Vg;exports.Progress=kn;exports.PullToRefresh=Ah;exports.Pulse=gx;exports.QRCode=gb;exports.RadioGroup=gc;exports.RadioGroupItem=bc;exports.RangeSlider=wv;exports.Rating=$m;exports.ResizableHandle=MR;exports.ResizablePanel=SR;exports.ResizablePanelGroup=CR;exports.RichTextEditor=cb;exports.Ripple=ux;exports.Rotate=cx;exports.Scale=sx;exports.ScrollArea=ze;exports.ScrollBar=ps;exports.ScrollProgress=Sx;exports.ScrollReveal=Cx;exports.ScrollShadow=zg;exports.SearchBar=bh;exports.SearchField=Vb;exports.SegmentedControl=cp;exports.SegmentedControlItem=mp;exports.Select=as;exports.SelectContent=Rn;exports.SelectGroup=Vy;exports.SelectItem=wn;exports.SelectLabel=zd;exports.SelectScrollDownButton=is;exports.SelectScrollUpButton=ns;exports.SelectSeparator=Bd;exports.SelectTrigger=yn;exports.SelectValue=os;exports.Separator=kr;exports.SettingsCard=tx;exports.SettingsHeader=on;exports.SettingsLayout=Qh;exports.SettingsNavItem=ax;exports.SettingsRow=rx;exports.SettingsSection=ex;exports.SettingsSeparator=ox;exports.Shake=fx;exports.Sheet=So;exports.SheetClose=Yy;exports.SheetContent=Ha;exports.SheetDescription=nc;exports.SheetFooter=ac;exports.SheetHeader=rc;exports.SheetOverlay=ms;exports.SheetPortal=ec;exports.SheetTitle=oc;exports.SheetTrigger=Ky;exports.Shimmer=Dx;exports.Sidebar=Ym;exports.SidebarContent=tu;exports.SidebarFooter=Qm;exports.SidebarGroup=ru;exports.SidebarGroupAction=ou;exports.SidebarGroupContent=nu;exports.SidebarGroupLabel=au;exports.SidebarHeader=Jm;exports.SidebarInset=Zm;exports.SidebarMenu=iu;exports.SidebarMenuAction=cu;exports.SidebarMenuBadge=mu;exports.SidebarMenuButton=du;exports.SidebarMenuItem=su;exports.SidebarMenuSkeleton=uu;exports.SidebarMenuSub=pu;exports.SidebarMenuSubButton=gu;exports.SidebarMenuSubItem=fu;exports.SidebarPersistentToggle=Xm;exports.SidebarProvider=Km;exports.SidebarRail=qm;exports.SidebarSeparator=eu;exports.SidebarToggle=jm;exports.SidebarTrigger=Um;exports.SimpleGrid=ah;exports.Skeleton=hn;exports.Slide=ix;exports.Slider=Sn;exports.Snippet=Df;exports.SortableList=RN;exports.Spacer=Gg;exports.Sparkles=Ex;exports.Spinner=bm;exports.SpotlightSearch=hh;exports.StatCard=_u;exports.StatusLight=rv;exports.Step=df;exports.Steps=sf;exports.SwipeActions=Ih;exports.Switch=Md;exports.Table=im;exports.TableBody=lm;exports.TableCaption=pm;exports.TableCell=um;exports.TableFooter=dm;exports.TableHead=mm;exports.TableHeader=sm;exports.TableRow=cm;exports.Tabs=qd;exports.TabsContent=Qd;exports.TabsList=Zd;exports.TabsTrigger=Jd;exports.TagGroup=kv;exports.TagInput=Bu;exports.TextBadge=qi;exports.TextField=wb;exports.TextReveal=yx;exports.Textarea=Td;exports.ThemeProvider=bb;exports.ThemeToggle=vb;exports.TimeField=zb;exports.TimeInput=Np;exports.TimePicker=tg;exports.Timeline=ep;exports.TimelineContent=op;exports.TimelineItem=rp;exports.TimelineOpposite=np;exports.TimelineSeparator=ap;exports.Toaster=Xy;exports.Toggle=hc;exports.ToggleGroup=yc;exports.ToggleGroupItem=Rc;exports.Tooltip=oa;exports.TooltipContent=Dr;exports.TooltipProvider=aa;exports.TooltipTrigger=na;exports.TreeView=uf;exports.Typewriter=xx;exports.User=Cf;exports.VStack=Zv;exports.VirtualList=FN;exports.VisuallyHidden=_o;exports.Well=ih;exports.Wiggle=bx;exports.WordRotate=Rx;exports.actionBarVariants=cv;exports.actionGroupVariants=qb;exports.actionIconVariants=Mg;exports.actionMenuTriggerVariants=pv;exports.actionSheetItemVariants=kh;exports.alertVariants=Xx;exports.appShellVariants=Bh;exports.applyMask=$n;exports.authLayoutVariants=$i;exports.autocompleteInputVariants=ff;exports.avatarGroupVariants=Om;exports.backTopVariants=Yp;exports.badgeIndicatorVariants=ey;exports.bannerVariants=yh;exports.bottomNavigationVariants=Sh;exports.buttonGroupVariants=$b;exports.buttonVariants=Qt;exports.cardVariants=pd;exports.carouselVariants=rb;exports.chartContainerVariants=Yo;exports.chipVariants=hu;exports.circularProgressVariants=Mu;exports.closeButtonVariants=Pg;exports.cn=o;exports.codeVariants=Mf;exports.colorAreaVariants=Fv;exports.colorFieldVariants=Ob;exports.colorSliderVariants=Kv;exports.colorSwatchPickerVariants=hp;exports.colorSwatchVariants=vp;exports.colorWheelVariants=Uv;exports.confirmDialogIconVariants=yg;exports.contextualHelpTriggerVariants=Cv;exports.copyButtonVariants=Wg;exports.currencyInputVariants=Pp;exports.dashboardLayoutVariants=Wh;exports.dateFieldVariants=Ib;exports.dateInputVariants=Dp;exports.dotsVariants=Nu;exports.emojiPickerVariants=sb;exports.emptyStateVariants=Ou;exports.fabVariants=rn;exports.fileUploadVariants=up;exports.flexVariants=Xv;exports.formatCurrency=Es;exports.formatDate=Kn;exports.formatFileSize=Gn;exports.formatPhoneNumber=Un;exports.fullCalendarVariants=Kg;exports.getFileIcon=pp;exports.getMaskPlaceholder=Tp;exports.gridItemVariants=th;exports.gridListItemVariants=Iv;exports.gridListVariants=Lv;exports.gridVariants=eh;exports.hexToRgb=Gv;exports.hsvToRgb=Ei;exports.iconButtonVariants=Ub;exports.illustratedMessageVariants=ov;exports.imageCropperVariants=ub;exports.imageVariants=js;exports.indicatorVariants=Lg;exports.infiniteScrollLoaderVariants=tl;exports.infiniteScrollVariants=og;exports.inlineAlertVariants=lv;exports.inputOTPVariants=Du;exports.inputSizeVariants=yb;exports.kanbanBoardVariants=Qg;exports.kanbanCardVariants=bl;exports.kanbanColumnVariants=eb;exports.kbdVariants=Bg;exports.labelSizeVariants=Rb;exports.labeledValueGroupVariants=ch;exports.labeledValueVariants=lh;exports.linkVariants=_p;exports.listItemVariants=ju;exports.listVariants=Yu;exports.listViewItemVariants=hv;exports.listViewVariants=vv;exports.listboxItemVariants=Hf;exports.listboxVariants=Ef;exports.loadingOverlayVariants=_f;exports.loadingVariants=Zf;exports.maskedInputVariants=Mp;exports.meterVariants=Av;exports.modalContentVariants=al;exports.navbarVariants=zp;exports.navigationMenuTriggerStyle=Uc;exports.notificationCenterVariants=$M;exports.nprogressVariants=Yf;exports.numberFieldVariants=Sb;exports.parseDate=Vp;exports.parseFormattedValue=Cp;exports.phoneInputVariants=Ip;exports.pullToRefreshVariants=Hh;exports.qrCodeVariants=Cl;exports.rangeSliderVariants=Rv;exports.ratingVariants=Wm;exports.rgbToHex=Wv;exports.rgbToHsv=Ov;exports.richTextEditorVariants=db;exports.scrollShadowVariants=Ag;exports.searchBarVariants=gh;exports.searchFieldVariants=Db;exports.segmentedControlItemVariants=lp;exports.segmentedControlVariants=sp;exports.settingsLayoutVariants=_i;exports.sheetVariants=tc;exports.sidebarMenuButtonVariants=lu;exports.skeletonVariants=Dd;exports.snippetVariants=kf;exports.sortableItemVariants=Gf;exports.sortableListVariants=Of;exports.spinnerVariants=gm;exports.statCardVariants=$u;exports.statusLightVariants=tv;exports.stepVariants=lf;exports.stepsVariants=nf;exports.swipeActionVariants=Xl;exports.swipeActionsVariants=Lh;exports.tagGroupItemVariants=Ol;exports.tagGroupVariants=Tv;exports.tagVariants=zu;exports.textBadgeVariants=ay;exports.textFieldVariants=xb;exports.themeToggleVariants=oS;exports.timeFieldVariants=Ab;exports.timeInputVariants=wp;exports.timelineItemVariants=tp;exports.timelineVariants=Qu;exports.toggleVariants=Cn;exports.treeViewVariants=mf;exports.unmask=As;exports.useButtonGroup=MS;exports.useCarousel=vl;exports.useConfetti=kT;exports.useConfirmDialog=rP;exports.useFieldContext=qn;exports.useFormContext=Ks;exports.useSidebar=An;exports.useSpotlight=HM;exports.userVariants=Pf;exports.validateFile=fp;exports.validators=sN;exports.virtualListVariants=rg;exports.wellVariants=nh;//# sourceMappingURL=index.cjs.map
|
|
54
54
|
//# sourceMappingURL=index.cjs.map
|