@reeverdev/ui 0.1.29 → 0.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +32 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -6
- package/dist/index.d.ts +12 -6
- package/dist/index.js +32 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,34 @@
|
|
|
1
|
-
'use strict';var U=require('react'),classVarianceAuthority=require('class-variance-authority'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),reactSlot=require('@radix-ui/react-slot'),lucideReact=require('lucide-react'),no=require('@radix-ui/react-checkbox'),oe=require('@radix-ui/react-dialog'),Oi=require('@radix-ui/react-label'),lo=require('@radix-ui/react-separator'),co=require('@radix-ui/react-switch'),Et=require('@radix-ui/react-avatar'),it=require('@radix-ui/react-tooltip'),Y=require('@radix-ui/react-select'),_=require('@radix-ui/react-dropdown-menu'),st=require('@radix-ui/react-popover'),lt=require('@radix-ui/react-tabs'),sonner=require('sonner'),Ue=require('@radix-ui/react-scroll-area'),K=require('@radix-ui/react-context-menu'),fa=require('@radix-ui/react-radio-group'),as=require('@radix-ui/react-toggle'),br=require('@radix-ui/react-toggle-group'),zt=require('@radix-ui/react-slider'),Ye=require('@radix-ui/react-accordion'),vr=require('@radix-ui/react-collapsible'),le=require('@radix-ui/react-alert-dialog'),go=require('@radix-ui/react-progress'),Ua=require('@radix-ui/react-hover-card'),Cc=require('@radix-ui/react-aspect-ratio'),fe=require('@radix-ui/react-navigation-menu'),vaul=require('vaul'),reactDayPicker=require('react-day-picker'),cmdk=require('cmdk'),dateFns=require('date-fns'),reactResizablePanels=require('react-resizable-panels'),reactColorful=require('react-colorful'),$=require('@radix-ui/react-menubar'),reactDom=require('react-dom'),mg=require('@radix-ui/react-visually-hidden'),recharts=require('recharts'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),wP=require('embla-carousel-react'),react=require('@tiptap/react'),VP=require('@tiptap/starter-kit'),LP=require('@tiptap/extension-link'),IP=require('@tiptap/extension-underline'),EP=require('@tiptap/extension-text-align'),HP=require('@tiptap/extension-placeholder'),aC=require('react-image-crop');require('react-image-crop/dist/ReactCrop.css');var cC=require('react-qr-code'),nextThemes=require('next-themes'),framerMotion=require('framer-motion'),Jr=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 U__namespace=/*#__PURE__*/_interopNamespace(U);var no__namespace=/*#__PURE__*/_interopNamespace(no);var oe__namespace=/*#__PURE__*/_interopNamespace(oe);var Oi__namespace=/*#__PURE__*/_interopNamespace(Oi);var lo__namespace=/*#__PURE__*/_interopNamespace(lo);var co__namespace=/*#__PURE__*/_interopNamespace(co);var Et__namespace=/*#__PURE__*/_interopNamespace(Et);var it__namespace=/*#__PURE__*/_interopNamespace(it);var Y__namespace=/*#__PURE__*/_interopNamespace(Y);var ___namespace=/*#__PURE__*/_interopNamespace(_);var st__namespace=/*#__PURE__*/_interopNamespace(st);var lt__namespace=/*#__PURE__*/_interopNamespace(lt);var Ue__namespace=/*#__PURE__*/_interopNamespace(Ue);var K__namespace=/*#__PURE__*/_interopNamespace(K);var fa__namespace=/*#__PURE__*/_interopNamespace(fa);var as__namespace=/*#__PURE__*/_interopNamespace(as);var br__namespace=/*#__PURE__*/_interopNamespace(br);var zt__namespace=/*#__PURE__*/_interopNamespace(zt);var Ye__namespace=/*#__PURE__*/_interopNamespace(Ye);var vr__namespace=/*#__PURE__*/_interopNamespace(vr);var le__namespace=/*#__PURE__*/_interopNamespace(le);var go__namespace=/*#__PURE__*/_interopNamespace(go);var Ua__namespace=/*#__PURE__*/_interopNamespace(Ua);var Cc__namespace=/*#__PURE__*/_interopNamespace(Cc);var fe__namespace=/*#__PURE__*/_interopNamespace(fe);var $__namespace=/*#__PURE__*/_interopNamespace($);var mg__namespace=/*#__PURE__*/_interopNamespace(mg);var wP__default=/*#__PURE__*/_interopDefault(wP);var VP__default=/*#__PURE__*/_interopDefault(VP);var LP__default=/*#__PURE__*/_interopDefault(LP);var IP__default=/*#__PURE__*/_interopDefault(IP);var EP__default=/*#__PURE__*/_interopDefault(EP);var HP__default=/*#__PURE__*/_interopDefault(HP);var aC__default=/*#__PURE__*/_interopDefault(aC);var cC__default=/*#__PURE__*/_interopDefault(cC);var Jr__default=/*#__PURE__*/_interopDefault(Jr);function o(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var yx=classVarianceAuthority.cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4",{variants:{variant:{solid:"border-transparent bg-primary text-primary-foreground [&>svg]:text-primary-foreground",outline:"border-input bg-transparent text-foreground [&>svg]:text-foreground",ghost:"border-transparent bg-transparent text-foreground [&>svg]:text-foreground",soft:"border-transparent bg-primary/15 text-primary [&>svg]:text-primary",surface:"border-transparent bg-muted text-muted-foreground [&>svg]:text-muted-foreground",destructive:"border-destructive/50 bg-destructive/10 text-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"solid"}}),Rx=U__namespace.forwardRef(({className:e,variant:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,role:"alert",className:o(yx({variant:t}),e),...a}));Rx.displayName="Alert";var wx=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("h5",{ref:a,className:o("mb-1 font-medium leading-none tracking-tight",e),...t}));wx.displayName="AlertTitle";var Nx=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("text-sm [&_p]:leading-relaxed",e),...t}));Nx.displayName="AlertDescription";var Px=classVarianceAuthority.cva("absolute rounded-full flex items-center justify-center font-semibold",{variants:{variant:{solid:"",bordered:"border-2"},color:{default:"",success:"",warning:"",danger:""},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:"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"},{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"}}),Cx={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"},Sx=U__namespace.forwardRef(({className:e,children:t,content:a,variant:r="solid",color:n="default",size:i="md",placement:s="top-right",isDot:l=false,...d},m)=>jsxRuntime.jsxs("div",{ref:m,className:o("relative inline-flex",e),...d,children:[t,jsxRuntime.jsx("span",{className:o(Px({variant:r,color:n,size:l?void 0:i,placement:s}),l&&Cx[i||"md"],l&&"min-w-0 p-0"),children:!l&&a})]}));Sx.displayName="Badge";var Tx=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"},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"}}),ro=U__namespace.forwardRef(({className:e,color:t,size:a,...r},n)=>jsxRuntime.jsx("span",{ref:n,className:o(Tx({color:t,size:a}),e),...r}));ro.displayName="TextBadge";var Te=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:""},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"}],defaultVariants:{variant:"solid",color:"default",size:"md",radius:"md"}}),O=U__namespace.forwardRef(({className:e,variant:t,color:a,size:r,radius:n,asChild:i=false,href:s,loading:l=false,startContent:d,endContent:m,children:u,disabled:c,style:g,...p},v)=>{let N=c||l,h=t==="bordered"?{borderColor:"currentColor",...g}:g,w=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(Te({variant:t,color:a,size:r,radius:n,className:e})),ref:v,style:h,...p,children:w}):s?jsxRuntime.jsx("a",{href:s,className:o(Te({variant:t,color:a,size:r,radius:n,className:e}),N&&"pointer-events-none opacity-50"),style:h,...p,children:w}):jsxRuntime.jsx("button",{className:o(Te({variant:t,color:a,size:r,radius:n,className:e})),ref:v,disabled:N,style:h,...p,children:w})});O.displayName="Button";var jl=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"}}),Xl=U__namespace.forwardRef(({className:e,radius:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o(jl({radius:t,className:e})),...a}));Xl.displayName="Card";var ql=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("p-6 text-2xl font-semibold leading-none tracking-tight",e),...t}));ql.displayName="CardHeader";var Zl=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("p-6 pt-0",e),...t}));Zl.displayName="CardContent";var Ql=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex items-center p-6 pt-0",e),...t}));Ql.displayName="CardFooter";var io=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(no__namespace.Root,{ref:a,className:o("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:jsxRuntime.jsx(no__namespace.Indicator,{className:o("flex items-center justify-center text-current"),children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}));io.displayName=no__namespace.Root.displayName;var Bi=oe__namespace.Root,Hx=oe__namespace.Trigger,ed=oe__namespace.Portal,Ax=oe__namespace.Close,Fi=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Overlay,{ref:a,className:o("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Fi.displayName=oe__namespace.Overlay.displayName;var Jo=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(ed,{children:[jsxRuntime.jsx(Fi,{}),jsxRuntime.jsxs(oe__namespace.Content,{ref:r,className:o("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,jsxRuntime.jsxs(oe__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"})]})]})]}));Jo.displayName=oe__namespace.Content.displayName;var td=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});td.displayName="DialogHeader";var ad=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ad.displayName="DialogFooter";var rd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Title,{ref:a,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));rd.displayName=oe__namespace.Title.displayName;var od=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));od.displayName=oe__namespace.Description.displayName;var Bx=classVarianceAuthority.cva("flex h-10 w-full border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),en=U__namespace.forwardRef(({className:e,type:t,radius:a,...r},n)=>jsxRuntime.jsx("input",{type:t,className:o(Bx({radius:a,className:e})),ref:n,...r}));en.displayName="Input";var Gx=classVarianceAuthority.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Aa=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Oi__namespace.Root,{ref:a,className:o(Gx(),e),...t}));Aa.displayName=Oi__namespace.Root.displayName;var da=U__namespace.forwardRef(({className:e,orientation:t="horizontal",decorative:a=true,text:r,...n},i)=>r&&t==="horizontal"?jsxRuntime.jsxs("div",{className:o("flex items-center gap-4",e),children:[jsxRuntime.jsx(lo__namespace.Root,{decorative:a,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n}),jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:r}),jsxRuntime.jsx(lo__namespace.Root,{decorative:a,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n})]}):jsxRuntime.jsx(lo__namespace.Root,{ref:i,decorative:a,orientation:t,className:o("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));da.displayName=lo__namespace.Root.displayName;var cd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(co__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:a,children:jsxRuntime.jsx(co__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")})}));cd.displayName=co__namespace.Root.displayName;var Kx=classVarianceAuthority.cva("flex min-h-[80px] w-full border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"}},defaultVariants:{radius:"md"}}),pd=U__namespace.forwardRef(({className:e,radius:t,...a},r)=>jsxRuntime.jsx("textarea",{className:o(Kx({radius:t,className:e})),ref:r,...a}));pd.displayName="Textarea";var fd=classVarianceAuthority.cva("rounded-md bg-muted",{variants:{variant:{pulse:"animate-pulse",shimmer:"skeleton-shimmer",static:""}},defaultVariants:{variant:"pulse"}}),an=U__namespace.forwardRef(({className:e,variant:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o(fd({variant:t,className:e})),...a}));an.displayName="Skeleton";var qx=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"}}),za=U__namespace.forwardRef(({className:e,size:t,radius:a,...r},n)=>jsxRuntime.jsx(Et__namespace.Root,{ref:n,className:o(qx({size:t,radius:a,className:e})),...r}));za.displayName=Et__namespace.Root.displayName;var fr=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Et__namespace.Image,{ref:a,className:o("aspect-square h-full w-full",e),...t}));fr.displayName=Et__namespace.Image.displayName;var Ba=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Et__namespace.Fallback,{ref:a,className:o("flex h-full w-full items-center justify-center bg-muted",e),...t}));Ba.displayName=Et__namespace.Fallback.displayName;var Fa=it__namespace.Provider,Oa=it__namespace.Root,Ga=it__namespace.Trigger,ca=U__namespace.forwardRef(({className:e,sideOffset:t=4,...a},r)=>jsxRuntime.jsx(it__namespace.Portal,{children:jsxRuntime.jsx(it__namespace.Content,{ref:r,sideOffset:t,className:o("z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));ca.displayName=it__namespace.Content.displayName;var Wi=Y__namespace.Root,Jx=Y__namespace.Group,$i=Y__namespace.Value,on=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Y__namespace.Trigger,{ref:r,className:o("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...a,children:[t,jsxRuntime.jsx(Y__namespace.Icon,{asChild:true,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));on.displayName=Y__namespace.Trigger.displayName;var _i=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.ScrollUpButton,{ref:a,className:o("flex cursor-default items-center justify-center py-1",e),...t,children:jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"})}));_i.displayName=Y__namespace.ScrollUpButton.displayName;var Ki=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.ScrollDownButton,{ref:a,className:o("flex cursor-default items-center justify-center py-1",e),...t,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"})}));Ki.displayName=Y__namespace.ScrollDownButton.displayName;var nn=U__namespace.forwardRef(({className:e,children:t,position:a="popper",...r},n)=>jsxRuntime.jsx(Y__namespace.Portal,{children:jsxRuntime.jsxs(Y__namespace.Content,{ref:n,className:o("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,...r,children:[jsxRuntime.jsx(_i,{}),jsxRuntime.jsx(Y__namespace.Viewport,{className:o("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),jsxRuntime.jsx(Ki,{})]})}));nn.displayName=Y__namespace.Content.displayName;var hd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.Label,{ref:a,className:o("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));hd.displayName=Y__namespace.Label.displayName;var sn=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Y__namespace.Item,{ref:r,className:o("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(Y__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),jsxRuntime.jsx(Y__namespace.ItemText,{children:t})]}));sn.displayName=Y__namespace.Item.displayName;var xd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));xd.displayName=Y__namespace.Separator.displayName;var Wa=___namespace.Root,$a=___namespace.Trigger,ry=___namespace.Group,oy=___namespace.Portal,ny=___namespace.Sub,iy=___namespace.RadioGroup,yd=U__namespace.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxRuntime.jsxs(___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),...r,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto"})]}));yd.displayName=___namespace.SubTrigger.displayName;var Rd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(___namespace.SubContent,{ref:a,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Rd.displayName=___namespace.SubContent.displayName;var pa=U__namespace.forwardRef(({className:e,sideOffset:t=4,...a},r)=>jsxRuntime.jsx(___namespace.Portal,{children:jsxRuntime.jsx(___namespace.Content,{ref:r,sideOffset:t,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));pa.displayName=___namespace.Content.displayName;var xt=U__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(___namespace.Item,{ref:r,className:o("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));xt.displayName=___namespace.Item.displayName;var wd=U__namespace.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxRuntime.jsxs(___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:a,...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(___namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));wd.displayName=___namespace.CheckboxItem.displayName;var Nd=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(___namespace.RadioItem,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(___namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Nd.displayName=___namespace.RadioItem.displayName;var Pd=U__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(___namespace.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Pd.displayName=___namespace.Label.displayName;var ln=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(___namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));ln.displayName=___namespace.Separator.displayName;var Cd=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest opacity-60",e),...t});Cd.displayName="DropdownMenuShortcut";var ve=st__namespace.Root,Re=st__namespace.Trigger,ji=st__namespace.Anchor,ue=U__namespace.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},n)=>jsxRuntime.jsx(st__namespace.Portal,{children:jsxRuntime.jsx(st__namespace.Content,{ref:n,align:t,sideOffset:a,className:o("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",e),...r})}));ue.displayName=st__namespace.Content.displayName;var sy=lt__namespace.Root,Md=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(lt__namespace.List,{ref:a,className:o("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));Md.displayName=lt__namespace.List.displayName;var kd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(lt__namespace.Trigger,{ref:a,className:o("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));kd.displayName=lt__namespace.Trigger.displayName;var Dd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(lt__namespace.Content,{ref:a,className:o("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Dd.displayName=lt__namespace.Content.displayName;var po=oe__namespace.Root,cy=oe__namespace.Trigger,my=oe__namespace.Close,Vd=oe__namespace.Portal,Zi=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__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:a}));Zi.displayName=oe__namespace.Overlay.displayName;var Ld=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"}}),gr=U__namespace.forwardRef(({side:e="right",className:t,children:a,...r},n)=>jsxRuntime.jsxs(Vd,{children:[jsxRuntime.jsx(Zi,{}),jsxRuntime.jsxs(oe__namespace.Content,{ref:n,className:o(Ld({side:e}),t),...r,children:[jsxRuntime.jsxs(oe__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"})]}),a]})]}));gr.displayName=oe__namespace.Content.displayName;var Id=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",e),...t});Id.displayName="SheetHeader";var Ed=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ed.displayName="SheetFooter";var Hd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Title,{ref:a,className:o("text-lg font-semibold text-foreground",e),...t}));Hd.displayName=oe__namespace.Title.displayName;var Ad=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));Ad.displayName=oe__namespace.Description.displayName;var fy=({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 dt=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Ue__namespace.Root,{ref:r,className:o("relative overflow-hidden",e),...a,children:[jsxRuntime.jsx(Ue__namespace.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),jsxRuntime.jsx(Ji,{}),jsxRuntime.jsx(Ue__namespace.Corner,{})]}));dt.displayName=Ue__namespace.Root.displayName;var Ji=U__namespace.forwardRef(({className:e,orientation:t="vertical",...a},r)=>jsxRuntime.jsx(Ue__namespace.ScrollAreaScrollbar,{ref:r,orientation:t,className:o("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:jsxRuntime.jsx(Ue__namespace.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Ji.displayName=Ue__namespace.ScrollAreaScrollbar.displayName;var yy=K__namespace.Root,Ry=K__namespace.Trigger,wy=K__namespace.Group,Ny=K__namespace.Portal,Py=K__namespace.Sub,Cy=K__namespace.RadioGroup,zd=U__namespace.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxRuntime.jsxs(K__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),...r,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}));zd.displayName=K__namespace.SubTrigger.displayName;var Bd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(K__namespace.SubContent,{ref:a,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",e),...t}));Bd.displayName=K__namespace.SubContent.displayName;var Fd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(K__namespace.Portal,{children:jsxRuntime.jsx(K__namespace.Content,{ref:a,className:o("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",e),...t})}));Fd.displayName=K__namespace.Content.displayName;var Od=U__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(K__namespace.Item,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...a}));Od.displayName=K__namespace.Item.displayName;var Gd=U__namespace.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxRuntime.jsxs(K__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:a,...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(K__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));Gd.displayName=K__namespace.CheckboxItem.displayName;var Wd=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(K__namespace.RadioItem,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(K__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-4 w-4 fill-current"})})}),t]}));Wd.displayName=K__namespace.RadioItem.displayName;var $d=U__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(K__namespace.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...a}));$d.displayName=K__namespace.Label.displayName;var _d=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(K__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-border",e),...t}));_d.displayName=K__namespace.Separator.displayName;var Kd=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Kd.displayName="ContextMenuShortcut";var Ud=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(fa__namespace.Root,{className:o("grid gap-2",e),...t,ref:a}));Ud.displayName=fa__namespace.Root.displayName;var Yd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(fa__namespace.Item,{ref:a,className:o("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:jsxRuntime.jsx(fa__namespace.Indicator,{className:"flex items-center justify-center",children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));Yd.displayName=fa__namespace.Item.displayName;var mn=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"}}),Xd=U__namespace.forwardRef(({className:e,variant:t,size:a,...r},n)=>jsxRuntime.jsx(as__namespace.Root,{ref:n,className:o(mn({variant:t,size:a,className:e})),...r}));Xd.displayName=as__namespace.Root.displayName;var qd=U__namespace.createContext({size:"md",variant:"solid"}),Zd=U__namespace.forwardRef(({className:e,variant:t,size:a,children:r,...n},i)=>jsxRuntime.jsx(br__namespace.Root,{ref:i,className:o("flex items-center justify-center gap-1",e),...n,children:jsxRuntime.jsx(qd.Provider,{value:{variant:t,size:a},children:r})}));Zd.displayName=br__namespace.Root.displayName;var Qd=U__namespace.forwardRef(({className:e,children:t,variant:a,size:r,...n},i)=>{let s=U__namespace.useContext(qd);return jsxRuntime.jsx(br__namespace.Item,{ref:i,className:o(mn({variant:s.variant||a,size:s.size||r}),e),...n,children:t})});Qd.displayName=br__namespace.Item.displayName;var pn=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsxs(zt__namespace.Root,{ref:a,className:o("relative flex w-full touch-none select-none items-center",e),...t,children:[jsxRuntime.jsx(zt__namespace.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:jsxRuntime.jsx(zt__namespace.Range,{className:"absolute h-full bg-primary"})}),jsxRuntime.jsx(zt__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"})]}));pn.displayName=zt__namespace.Root.displayName;var Vy=Ye__namespace.Root,ec=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Ye__namespace.Item,{ref:a,className:o("border-b data-[disabled]:opacity-50",e),...t}));ec.displayName="AccordionItem";var tc=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsx(Ye__namespace.Header,{className:"flex",children:jsxRuntime.jsxs(Ye__namespace.Trigger,{ref:r,className:o("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180 disabled:pointer-events-none disabled:opacity-50",e),...a,children:[t,jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));tc.displayName=Ye__namespace.Trigger.displayName;var ac=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsx(Ye__namespace.Content,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...a,children:jsxRuntime.jsx("div",{className:o("pb-4 pt-0",e),children:t})}));ac.displayName=Ye__namespace.Content.displayName;var Ey=vr__namespace.Root,nc=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsx(vr__namespace.CollapsibleTrigger,{ref:r,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),...a,children:t??jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4"})}));nc.displayName="CollapsibleTrigger";var Hy=vr__namespace.CollapsibleContent;var Ay=le__namespace.Root,zy=le__namespace.Trigger,ic=le__namespace.Portal,ns=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(le__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:a}));ns.displayName=le__namespace.Overlay.displayName;var sc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsxs(ic,{children:[jsxRuntime.jsx(ns,{}),jsxRuntime.jsx(le__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),...t})]}));sc.displayName=le__namespace.Content.displayName;var lc=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",e),...t});lc.displayName="AlertDialogHeader";var dc=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});dc.displayName="AlertDialogFooter";var cc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(le__namespace.Title,{ref:a,className:o("text-lg font-semibold",e),...t}));cc.displayName=le__namespace.Title.displayName;var mc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(le__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));mc.displayName=le__namespace.Description.displayName;var pc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(le__namespace.Action,{ref:a,className:o(Te(),e),...t}));pc.displayName=le__namespace.Action.displayName;var uc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(le__namespace.Cancel,{ref:a,className:o(Te({variant:"bordered"}),"mt-2 sm:mt-0",e),...t}));uc.displayName=le__namespace.Cancel.displayName;var fn=U__namespace.forwardRef(({className:e,value:t,...a},r)=>jsxRuntime.jsx(go__namespace.Root,{ref:r,className:o("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...a,children:jsxRuntime.jsx(go__namespace.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));fn.displayName=go__namespace.Root.displayName;var Fy=Ua__namespace.Root,Oy=Ua__namespace.Trigger,vc=U__namespace.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},n)=>jsxRuntime.jsx(Ua__namespace.Content,{ref:n,align:t,sideOffset:a,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),...r}));vc.displayName=Ua__namespace.Content.displayName;var hc=U__namespace.forwardRef(({...e},t)=>jsxRuntime.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));hc.displayName="Breadcrumb";var xc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ol",{ref:a,className:o("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));xc.displayName="BreadcrumbList";var yc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("li",{ref:a,className:o("inline-flex items-center gap-1.5",e),...t}));yc.displayName="BreadcrumbItem";var Rc=U__namespace.forwardRef(({asChild:e,className:t,...a},r)=>jsxRuntime.jsx(e?reactSlot.Slot:"a",{ref:r,className:o("transition-colors hover:text-foreground",t),...a}));Rc.displayName="BreadcrumbLink";var wc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:o("font-normal text-foreground",e),...t}));wc.displayName="BreadcrumbPage";var Nc=({children:e,className:t,...a})=>jsxRuntime.jsx("li",{role:"presentation","aria-hidden":"true",className:o("[&>svg]:h-3.5 [&>svg]:w-3.5",t),...a,children:e??jsxRuntime.jsx(lucideReact.ChevronRight,{})});Nc.displayName="BreadcrumbSeparator";var Pc=({className:e,...t})=>jsxRuntime.jsxs("span",{role:"presentation","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"})]});Pc.displayName="BreadcrumbEllipsis";var Uy=Cc__namespace.Root;var Sc=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(fe__namespace.Root,{ref:r,className:o("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:[t,jsxRuntime.jsx(is,{})]}));Sc.displayName=fe__namespace.Root.displayName;var Tc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(fe__namespace.List,{ref:a,className:o("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));Tc.displayName=fe__namespace.List.displayName;var Xy=fe__namespace.Item,Mc=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"),kc=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(fe__namespace.Trigger,{ref:r,className:o(Mc(),"group",e),...a,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"})]}));kc.displayName=fe__namespace.Trigger.displayName;var Dc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(fe__namespace.Content,{ref:a,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}));Dc.displayName=fe__namespace.Content.displayName;var qy=fe__namespace.Link,is=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{className:o("absolute left-0 top-full flex justify-center"),children:jsxRuntime.jsx(fe__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:a,...t})}));is.displayName=fe__namespace.Viewport.displayName;var Vc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(fe__namespace.Indicator,{ref:a,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"})}));Vc.displayName=fe__namespace.Indicator.displayName;var Ec=({shouldScaleBackground:e=true,...t})=>jsxRuntime.jsx(vaul.Drawer.Root,{shouldScaleBackground:e,...t});Ec.displayName="Drawer";var Zy=vaul.Drawer.Trigger,Hc=vaul.Drawer.Portal,Qy=vaul.Drawer.Close,ss=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(vaul.Drawer.Overlay,{ref:a,className:o("fixed inset-0 z-50 bg-black/80",e),...t}));ss.displayName=vaul.Drawer.Overlay.displayName;var Ac=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Hc,{children:[jsxRuntime.jsx(ss,{}),jsxRuntime.jsxs(vaul.Drawer.Content,{ref:r,className:o("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...a,children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));Ac.displayName="DrawerContent";var zc=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("grid gap-1.5 p-4 text-center sm:text-left",e),...t});zc.displayName="DrawerHeader";var Bc=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("mt-auto flex flex-col gap-2 p-4",e),...t});Bc.displayName="DrawerFooter";var Fc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(vaul.Drawer.Title,{ref:a,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));Fc.displayName=vaul.Drawer.Title.displayName;var Oc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(vaul.Drawer.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));Oc.displayName=vaul.Drawer.Description.displayName;var Gc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{className:"relative w-full overflow-auto",children:jsxRuntime.jsx("table",{ref:a,className:o("w-full caption-bottom text-sm",e),...t})}));Gc.displayName="Table";var Wc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("thead",{ref:a,className:o("[&_tr]:border-b",e),...t}));Wc.displayName="TableHeader";var $c=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("tbody",{ref:a,className:o("[&_tr:last-child]:border-0",e),...t}));$c.displayName="TableBody";var _c=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("tfoot",{ref:a,className:o("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));_c.displayName="TableFooter";var Kc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("tr",{ref:a,className:o("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Kc.displayName="TableRow";var Uc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("th",{ref:a,className:o("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Uc.displayName="TableHead";var Yc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("td",{ref:a,className:o("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Yc.displayName="TableCell";var jc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("caption",{ref:a,className:o("mt-4 text-sm text-muted-foreground",e),...t}));jc.displayName="TableCaption";var qc=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"}}),Zc=U__namespace.forwardRef(({className:e,size:t,...a},r)=>jsxRuntime.jsx(lucideReact.Loader2,{ref:r,className:o(qc({size:t,className:e})),...a}));Zc.displayName="Spinner";function xr({className:e,classNames:t,showOutsideDays:a=true,...r}){return jsxRuntime.jsx(reactDayPicker.DayPicker,{showOutsideDays:a,className:o("p-3",e),classNames:{months:"flex flex-col sm:flex-row gap-4",month:"flex flex-col gap-4",month_caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",button_previous:o(Te({variant:"bordered"}),"absolute left-1 h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),button_next:o(Te({variant:"bordered"}),"absolute right-1 h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),month_grid:"w-full border-collapse space-y-1",weekdays:"flex",weekday:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",week:"flex w-full mt-2",day:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day_button:o(Te({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),range_end:"day-range-end",selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",today:"bg-accent text-accent-foreground",outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",disabled:"text-muted-foreground opacity-50",range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",hidden:"invisible",...t},components:{Chevron:({orientation:n})=>n==="left"?jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})},...r})}xr.displayName="Calendar";var Qc=({className:e,...t})=>jsxRuntime.jsx("nav",{role:"navigation","aria-label":"pagination",className:o("mx-auto flex w-full justify-center",e),...t});Qc.displayName="Pagination";var Jc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ul",{ref:a,className:o("flex flex-row items-center gap-1",e),...t}));Jc.displayName="PaginationContent";var em=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("li",{ref:a,className:o("",e),...t}));em.displayName="PaginationItem";var gn=({className:e,isActive:t,size:a="icon",...r})=>jsxRuntime.jsx("a",{"aria-current":t?"page":void 0,className:o(Te({variant:t?"bordered":"ghost",size:a}),e),...r});gn.displayName="PaginationLink";var tm=({className:e,...t})=>jsxRuntime.jsxs(gn,{"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"})]});tm.displayName="PaginationPrevious";var am=({className:e,...t})=>jsxRuntime.jsxs(gn,{"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"})]});am.displayName="PaginationNext";var rm=({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"})]});rm.displayName="PaginationEllipsis";var ms=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command,{ref:a,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 dR=({children:e,...t})=>jsxRuntime.jsx(Bi,{...t,children:jsxRuntime.jsx(Jo,{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})})}),om=U__namespace.forwardRef(({className:e,...t},a)=>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:a,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})]}));om.displayName=cmdk.Command.Input.displayName;var nm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.List,{ref:a,className:o("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));nm.displayName=cmdk.Command.List.displayName;var im=U__namespace.forwardRef((e,t)=>jsxRuntime.jsx(cmdk.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));im.displayName=cmdk.Command.Empty.displayName;var sm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.Group,{ref:a,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}));sm.displayName=cmdk.Command.Group.displayName;var lm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.Separator,{ref:a,className:o("-mx-1 h-px bg-border",e),...t}));lm.displayName=cmdk.Command.Separator.displayName;var dm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.Item,{ref:a,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}));dm.displayName=cmdk.Command.Item.displayName;var cm=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});cm.displayName="CommandShortcut";var mm=U__namespace.forwardRef(({className:e,showToggle:t=true,disabled:a,...r},n)=>{let[i,s]=U__namespace.useState(false);return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{type:i?"text":"password",className:o("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t&&"pr-10",e),ref:n,disabled:a,...r}),t&&jsxRuntime.jsx(O,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-10 w-10 px-3 hover:bg-transparent",onClick:()=>s(!i),disabled:a,tabIndex:-1,"aria-label":i?"Hide password":"Show password",children:i?jsxRuntime.jsx(lucideReact.EyeOff,{className:"h-4 w-4 text-muted-foreground"}):jsxRuntime.jsx(lucideReact.Eye,{className:"h-4 w-4 text-muted-foreground"})})]})});mm.displayName="PasswordInput";var pm=U__namespace.forwardRef(({className:e,showButtons:t=true,step:a=1,min:r,max:n,value:i,defaultValue:s,onChange:l,disabled:d,...m},u)=>{let[c,g]=U__namespace.useState(s),p=i!==void 0,v=p?i:c,N=x=>{x!==void 0&&(r!==void 0&&x<r&&(x=r),n!==void 0&&x>n&&(x=n)),p||g(x),l?.(x);},b=()=>{N((v??0)+a);},h=()=>{N((v??0)-a);},w=x=>{let S=x.target.value;if(S==="")N(void 0);else {let k=parseFloat(S);isNaN(k)||N(k);}},f=x=>{x.key==="ArrowUp"?(x.preventDefault(),b()):x.key==="ArrowDown"&&(x.preventDefault(),h());},y=r===void 0||(v??0)>r,P=n===void 0||(v??0)<n;return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[t&&jsxRuntime.jsx(O,{type:"button",variant:"bordered",size:"icon",className:"h-10 w-10 rounded-r-none border-r-0",onClick:h,disabled:d||!y,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:o("flex h-10 w-full bg-background px-3 py-2 text-sm text-center ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t?"border-y border-input rounded-none":"border border-input rounded-md",e),ref:u,value:v??"",onChange:w,onKeyDown:f,disabled:d,...m}),t&&jsxRuntime.jsx(O,{type:"button",variant:"bordered",size:"icon",className:"h-10 w-10 rounded-l-none border-l-0",onClick:b,disabled:d||!P,tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"})})]})});pm.displayName="NumberInput";var um=U__namespace.forwardRef(({options:e,value:t,defaultValue:a=[],onValueChange:r,placeholder:n="Select items...",searchPlaceholder:i="Search...",emptyText:s="No items found.",maxItems:l,showCount:d=false,disabled:m=false,className:u},c)=>{let[g,p]=U__namespace.useState(false),[v,N]=U__namespace.useState(""),[b,h]=U__namespace.useState(a),w=t!==void 0,f=w?t:b,y=R=>{w||h(R),r?.(R);},P=R=>{let C=f.includes(R)?f.filter(D=>D!==R):l&&f.length>=l?f:[...f,R];y(C);},x=R=>{y(f.filter(C=>C!==R));},S=()=>{y([]);},k=e.filter(R=>f.includes(R.value)),M=e.filter(R=>R.label.toLowerCase().includes(v.toLowerCase()));return jsxRuntime.jsxs(ve,{open:g,onOpenChange:p,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs(O,{ref:c,variant:"bordered",role:"combobox","aria-expanded":g,disabled:m,className:o("w-full justify-between h-auto min-h-10",f.length>0?"px-2 py-1.5":"px-3 py-2",u),children:[f.length===0?jsxRuntime.jsx("span",{className:"text-muted-foreground font-normal",children:n}):d?jsxRuntime.jsxs("span",{className:"font-normal",children:[f.length," selected"]}):jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1",children:k.map(R=>jsxRuntime.jsxs(ro,{className:"mr-1",children:[R.label,jsxRuntime.jsx("button",{type:"button",className:"ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",onKeyDown:C=>{C.key==="Enter"&&(C.preventDefault(),C.stopPropagation(),x(R.value));},onMouseDown:C=>{C.preventDefault(),C.stopPropagation();},onClick:C=>{C.preventDefault(),C.stopPropagation(),x(R.value);},children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},R.value))}),jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),jsxRuntime.jsx(ue,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",children:jsxRuntime.jsxs(cmdk.Command,{className:"overflow-hidden rounded-md",children:[jsxRuntime.jsxs("div",{className:"flex items-center border-b px-3",children:[jsxRuntime.jsx(cmdk.Command.Input,{value:v,onValueChange:N,placeholder:i,className:"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"}),f.length>0&&jsxRuntime.jsx("button",{type:"button",onClick:S,className:"ml-2 text-xs text-muted-foreground hover:text-foreground",children:"Clear"})]}),jsxRuntime.jsxs(cmdk.Command.List,{className:"max-h-[200px] overflow-y-auto p-1",children:[M.length===0&&jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:s}),M.map(R=>{let C=f.includes(R.value),D=R.disabled||!C&&l!==void 0&&f.length>=l;return jsxRuntime.jsxs(cmdk.Command.Item,{value:R.value,disabled:D,onSelect:()=>P(R.value),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("div",{className:o("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",C?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),R.label]},R.value)})]})]})})]})});um.displayName="MultiSelect";var fm=U__namespace.forwardRef(({options:e,value:t,defaultValue:a="",onValueChange:r,placeholder:n="Select...",searchPlaceholder:i="Search...",emptyText:s="No results found.",disabled:l=false,clearable:d=false,className:m},u)=>{let[c,g]=U__namespace.useState(false),[p,v]=U__namespace.useState(""),[N,b]=U__namespace.useState(a),h=t!==void 0,w=h?t:N,f=S=>{h||b(S),r?.(S);},y=S=>{f(d&&w===S?"":S),g(false),v("");},P=e.find(S=>S.value===w),x=e.filter(S=>S.label.toLowerCase().includes(p.toLowerCase()));return jsxRuntime.jsxs(ve,{open:c,onOpenChange:g,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs(O,{ref:u,variant:"bordered",role:"combobox","aria-expanded":c,disabled:l,className:o("w-full justify-between font-normal",!w&&"text-muted-foreground",m),children:[P?P.label:n,jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),jsxRuntime.jsx(ue,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",children:jsxRuntime.jsxs(cmdk.Command,{className:"overflow-hidden rounded-md",children:[jsxRuntime.jsx("div",{className:"flex items-center border-b px-3",children:jsxRuntime.jsx(cmdk.Command.Input,{value:p,onValueChange:v,placeholder:i,className:"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"})}),jsxRuntime.jsxs(cmdk.Command.List,{className:"max-h-[200px] overflow-y-auto p-1",children:[x.length===0&&jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:s}),x.map(S=>jsxRuntime.jsxs(cmdk.Command.Item,{value:S.value,disabled:S.disabled,onSelect:()=>y(S.value),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",w===S.value?"opacity-100":"opacity-0")}),S.label]},S.value))]})]})})]})});fm.displayName="Combobox";var bm=U__namespace.forwardRef(({value:e,defaultValue:t,onValueChange:a,placeholder:r="Pick a date",dateFormat:n="PPP",disabled:i=false,minDate:s,maxDate:l,className:d},m)=>{let[u,c]=U__namespace.useState(false),[g,p]=U__namespace.useState(t),v=e!==void 0,N=v?e:g,b=h=>{v||p(h),a?.(h),c(false);};return jsxRuntime.jsxs(ve,{open:u,onOpenChange:c,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs(O,{ref:m,variant:"bordered",disabled:i,className:o("w-full justify-start text-left font-normal",!N&&"text-muted-foreground",d),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),N?dateFns.format(N,n):r]})}),jsxRuntime.jsx(ue,{className:"w-auto p-0",align:"start",children:jsxRuntime.jsx(xr,{mode:"single",selected:N,onSelect:b,disabled:h=>!!(s&&h<s||l&&h>l),initialFocus:true})})]})});bm.displayName="DatePicker";var ym=classVarianceAuthority.cva("flex -space-x-2",{variants:{size:{sm:"-space-x-2",md:"-space-x-2.5",lg:"-space-x-3"}},defaultVariants:{size:"md"}}),vm=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"}}),Rm=U__namespace.forwardRef(({className:e,items:t,max:a=5,size:r,showTooltips:n=false,...i},s)=>{let l=t.slice(0,a),d=t.length-a,m=(c,g)=>{let p=jsxRuntime.jsxs(za,{className:o(vm({size:r})),children:[c.src&&jsxRuntime.jsx(fr,{src:c.src,alt:c.alt||""}),jsxRuntime.jsx(Ba,{className:"text-xs",children:c.fallback||c.alt?.charAt(0)?.toUpperCase()||"?"})]},g);return n&&c.alt?jsxRuntime.jsxs(Oa,{children:[jsxRuntime.jsx(Ga,{asChild:true,children:p}),jsxRuntime.jsx(ca,{className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",children:c.alt})]},g):p},u=jsxRuntime.jsxs("div",{ref:s,className:o(ym({size:r,className:e})),...i,children:[l.map((c,g)=>m(c,g)),d>0&&jsxRuntime.jsx(za,{className:o(vm({size:r})),children:jsxRuntime.jsxs(Ba,{className:"bg-muted text-muted-foreground",children:["+",d]})})]});return n?jsxRuntime.jsx(Fa,{delayDuration:300,children:u}):u});Rm.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"}}),Nm=U__namespace.forwardRef(({className:e,value:t,defaultValue:a=0,onValueChange:r,max:n=5,size:i,icon:s="star",allowHalf:l=false,readOnly:d=false,disabled:m=false,filledColor:u,emptyColor:c,...g},p)=>{let[v,N]=U__namespace.useState(a),[b,h]=U__namespace.useState(null),w=t!==void 0,f=w?t:v,y=b!==null?b:f,P=T=>{d||m||(w||N(T),r?.(T));},x=(T,I=false)=>{let L=l&&I?T+.5:T+1;P(L);},S=(T,I)=>{if(d||m)return;let L=T.currentTarget.getBoundingClientRect(),V=l&&T.clientX<L.left+L.width/2;h(V?I+.5:I+1);},k=()=>{h(null);},M=s==="heart"?lucideReact.Heart:lucideReact.Star,R=T=>y>=T+1?"full":y>=T+.5?"half":"empty",C=u?{color:u,fill:u}:{},D=c?{color:c}:{};return jsxRuntime.jsx("div",{ref:p,className:o(wm({size:i,className:e}),m&&"opacity-50 cursor-not-allowed"),onMouseLeave:k,role:"radiogroup","aria-label":"Rating",...g,children:Array.from({length:n},(T,I)=>{let L=R(I);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 E=V.currentTarget.getBoundingClientRect(),A=l&&V.clientX<E.left+E.width/2;x(I,A);},onMouseMove:V=>S(V,I),disabled:m||d,"aria-label":`Rate ${I+1} out of ${n}`,role:"radio","aria-checked":f===I+1,children:[jsxRuntime.jsx(M,{className:o("text-muted-foreground/30",L!=="empty"&&"absolute inset-0"),style:L==="empty"?D:void 0}),L!=="empty"&&jsxRuntime.jsx(M,{className:o("text-yellow-500 fill-yellow-500",s==="heart"&&"text-red-500 fill-red-500",L==="half"&&"clip-path-half"),style:{...C,clipPath:L==="half"?"inset(0 50% 0 0)":void 0}})]},I)})})});Nm.displayName="Rating";var DR="16rem",VR="18rem",LR="3rem",IR="b",Pm=U__namespace.createContext(null);function wo(){let e=U__namespace.useContext(Pm);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var Cm=U__namespace.forwardRef(({defaultOpen:e=true,open:t,onOpenChange:a,className:r,style:n,children:i,...s},l)=>{let[d,m]=U__namespace.useState(false),[u,c]=U__namespace.useState(false),[g,p]=U__namespace.useState(e),v=t??g,N=U__namespace.useCallback(f=>{let y=typeof f=="function"?f(v):f;a?a(y):p(y);},[a,v]);U__namespace.useEffect(()=>{let f=()=>{m(window.innerWidth<768);};return f(),window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)},[]);let b=U__namespace.useCallback(()=>d?c(f=>!f):N(f=>!f),[d,N,c]);U__namespace.useEffect(()=>{let f=y=>{y.key===IR&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),b());};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[b]);let h=v?"expanded":"collapsed",w=U__namespace.useMemo(()=>({state:h,open:v,setOpen:N,isMobile:d,openMobile:u,setOpenMobile:c,toggleSidebar:b}),[h,v,N,d,u,c,b]);return jsxRuntime.jsx(Pm.Provider,{value:w,children:jsxRuntime.jsx(Fa,{delayDuration:0,children:jsxRuntime.jsx("div",{ref:l,style:{"--sidebar-width":DR,"--sidebar-width-icon":LR,...n},className:o("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),...s,children:i})})})});Cm.displayName="SidebarProvider";var Sm=U__namespace.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:r,children:n,...i},s)=>{let{isMobile:l,state:d,openMobile:m,setOpenMobile:u}=wo();return a==="none"?jsxRuntime.jsx("div",{ref:s,className:o("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),...i,children:n}):l?jsxRuntime.jsx(po,{open:m,onOpenChange:u,children:jsxRuntime.jsx(gr,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":VR},side:e,children:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:n})})}):jsxRuntime.jsxs("div",{ref:s,className:"group peer hidden md:block text-sidebar-foreground","data-state":d,"data-collapsible":d==="collapsed"?a:"","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",r),...i,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:n})})]})});Sm.displayName="Sidebar";var Tm=U__namespace.forwardRef(({className:e,onClick:t,...a},r)=>{let{toggleSidebar:n}=wo();return jsxRuntime.jsxs(O,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:o("h-7 w-7",e),onClick:i=>{t?.(i),n();},...a,children:[jsxRuntime.jsx(lucideReact.PanelLeft,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Tm.displayName="SidebarTrigger";var Mm=U__namespace.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:r}=wo();return jsxRuntime.jsx("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,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})});Mm.displayName="SidebarRail";var km=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("main",{ref:a,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}));km.displayName="SidebarInset";var Dm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"header",className:o("flex flex-col gap-2 p-2",e),...t}));Dm.displayName="SidebarHeader";var Vm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"footer",className:o("flex flex-col gap-2 p-2",e),...t}));Vm.displayName="SidebarFooter";var Lm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"separator",className:o("mx-2 h-px w-auto bg-sidebar-border",e),...t}));Lm.displayName="SidebarSeparator";var Im=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"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}));Im.displayName="SidebarContent";var Em=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"group",className:o("relative flex w-full min-w-0 flex-col p-2",e),...t}));Em.displayName="SidebarGroup";var Hm=U__namespace.forwardRef(({className:e,asChild:t=false,...a},r)=>jsxRuntime.jsx(t?reactSlot.Slot:"div",{ref:r,"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),...a}));Hm.displayName="SidebarGroupLabel";var Am=U__namespace.forwardRef(({className:e,asChild:t=false,...a},r)=>jsxRuntime.jsx(t?reactSlot.Slot:"button",{ref:r,"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),...a}));Am.displayName="SidebarGroupAction";var zm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"group-content",className:o("w-full text-sm",e),...t}));zm.displayName="SidebarGroupContent";var Bm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ul",{ref:a,"data-sidebar":"menu",className:o("flex w-full min-w-0 flex-col gap-1",e),...t}));Bm.displayName="SidebarMenu";var Fm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("li",{ref:a,"data-sidebar":"menu-item",className:o("group/menu-item relative",e),...t}));Fm.displayName="SidebarMenuItem";var Om=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"}}),Gm=U__namespace.forwardRef(({asChild:e=false,isActive:t=false,variant:a="solid",size:r="md",tooltip:n,className:i,...s},l)=>{let d=e?reactSlot.Slot:"button",{isMobile:m,state:u}=wo(),c=jsxRuntime.jsx(d,{ref:l,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:o(Om({variant:a,size:r}),i),...s});return n?(typeof n=="string"&&(n={children:n}),jsxRuntime.jsxs(Oa,{children:[jsxRuntime.jsx(Ga,{asChild:true,children:c}),jsxRuntime.jsx(ca,{side:"right",align:"center",hidden:u!=="collapsed"||m,...n})]})):c});Gm.displayName="SidebarMenuButton";var Wm=U__namespace.forwardRef(({className:e,asChild:t=false,showOnHover:a=false,...r},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",a&&"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),...r}));Wm.displayName="SidebarMenuAction";var $m=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"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}));$m.displayName="SidebarMenuBadge";var _m=U__namespace.forwardRef(({className:e,showIcon:t=false,...a},r)=>{let n=U__namespace.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxRuntime.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:o("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,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}})]})});_m.displayName="SidebarMenuSkeleton";var Km=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ul",{ref:a,"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}));Km.displayName="SidebarMenuSub";var Um=U__namespace.forwardRef(({...e},t)=>jsxRuntime.jsx("li",{ref:t,...e}));Um.displayName="SidebarMenuSubItem";var Ym=U__namespace.forwardRef(({asChild:e=false,size:t="md",isActive:a,className:r,...n},i)=>jsxRuntime.jsx(e?reactSlot.Slot:"a",{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,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",r),...n}));Ym.displayName="SidebarMenuSubButton";var qm=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}}),HR=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"}}),Zm=U__namespace.forwardRef(({className:e,variant:t,color:a,size:r,radius:n,clickable:i,startContent:s,endContent:l,closable:d,onClose:m,disabled:u,avatar:c,children:g,onClick:p,...v},N)=>{let b=i||!!p,h=w=>{w.stopPropagation(),m?.();};return jsxRuntime.jsxs("div",{ref:N,role:b?"button":void 0,tabIndex:b&&!u?0:void 0,"aria-disabled":u,onClick:u?void 0:p,onKeyDown:b&&!u?w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),p?.(w));}:void 0,className:o(qm({variant:t,color:a,size:r,radius:n,clickable:b}),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:g}),l&&jsxRuntime.jsx("span",{className:"shrink-0",children:l}),d&&jsxRuntime.jsx("button",{type:"button","aria-label":"Remove",onClick:h,disabled:u,className:o(HR({size:r})),children:jsxRuntime.jsx(lucideReact.X,{})})]})});Zm.displayName="Chip";var GR=({className:e,direction:t="horizontal",...a})=>jsxRuntime.jsx(reactResizablePanels.Group,{orientation:t,className:o("flex h-full w-full data-[orientation=vertical]:flex-col",e),...a}),WR=reactResizablePanels.Panel,$R=({withHandle:e,className:t,...a})=>jsxRuntime.jsx(reactResizablePanels.Separator,{className:o("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[orientation=vertical]:h-px data-[orientation=vertical]:w-full data-[orientation=vertical]:after:left-0 data-[orientation=vertical]:after:h-1 data-[orientation=vertical]:after:w-full data-[orientation=vertical]:after:-translate-y-1/2 data-[orientation=vertical]:after:translate-x-0 [&[data-orientation=vertical]>div]:rotate-90",t),...a,children:e&&jsxRuntime.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-2.5 w-2.5"})})});var ep=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"}}),tp=U__namespace.forwardRef(({className:e,size:t,count:a=3,...r},n)=>jsxRuntime.jsx("span",{ref:n,role:"status","aria-label":"Loading",className:o(ep({size:t,className:e})),...r,children:Array.from({length:a}).map((i,s)=>jsxRuntime.jsx("span",{className:"rounded-full bg-current animate-dots-bounce",style:{animationDelay:`${s*.16}s`}},s))}));tp.displayName="Dots";var rp=classVarianceAuthority.cva("",{variants:{size:{sm:"h-4 w-4",md:"h-8 w-8",lg:"h-12 w-12",xl:"h-16 w-16"}},defaultVariants:{size:"md"}}),op=U__namespace.forwardRef(({className:e,size:t,value:a,strokeWidth:r=4,showValue:n=false,label:i,...s},l)=>{let d=a===void 0,m=50-r/2,u=2*Math.PI*m,c=d?0:u-Math.min(100,Math.max(0,a))/100*u;return jsxRuntime.jsxs("svg",{ref:l,viewBox:"0 0 100 100",className:o(rp({size:t,className:e}),d&&"animate-spin"),role:"progressbar","aria-valuenow":d?void 0:a,"aria-valuemin":0,"aria-valuemax":100,...s,children:[jsxRuntime.jsx("circle",{cx:"50",cy:"50",r:m,fill:"none",stroke:"currentColor",strokeWidth:r,className:"text-muted opacity-20"}),jsxRuntime.jsx("circle",{cx:"50",cy:"50",r:m,fill:"none",stroke:"currentColor",strokeWidth:r,strokeLinecap:"round",strokeDasharray:u,strokeDashoffset:d?u*.75:c,className:"text-primary transition-[stroke-dashoffset] duration-300 ease-in-out",style:{transformOrigin:"center",transform:"rotate(-90deg)"}}),n&&!d&&jsxRuntime.jsx("text",{x:"50",y:"50",textAnchor:"middle",dominantBaseline:"central",className:"fill-current text-[0.65rem] font-medium",children:i??`${Math.round(a)}%`})]})});op.displayName="CircularProgress";var np=U__namespace.createContext(null),XR=()=>{let e=U__namespace.useContext(np);if(!e)throw new Error("OTP components must be used within InputOTP");return e},ip=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"}}),sp=U__namespace.forwardRef(({className:e,containerClassName:t,maxLength:a,value:r,defaultValue:n="",onChange:i,onComplete:s,pattern:l,disabled:d=false,size:m,children:u,...c},g)=>{let[p,v]=U__namespace.useState(n),[N,b]=U__namespace.useState(0),[h,w]=U__namespace.useState(false),f=U__namespace.useRef(null),y=r!==void 0?r:p;U__namespace.useImperativeHandle(g,()=>f.current),U__namespace.useEffect(()=>{b(Math.min(y.length,a-1));},[y,a]),U__namespace.useEffect(()=>{y.length===a&&s&&s(y);},[y,a,s]);let P=C=>{let D=C.target.value;if(l&&D){let T=new RegExp(l.replace("^","").replace("$","").replace("+",""));D=D.split("").filter(I=>T.test(I)).join("");}D=D.slice(0,a),r===void 0&&v(D),i?.(D);},x=C=>{C.key==="ArrowLeft"?b(D=>Math.max(0,D-1)):C.key==="ArrowRight"&&b(D=>Math.min(y.length,a-1,D+1));},S=()=>{f.current?.focus();},k=()=>{w(true),b(Math.min(y.length,a-1));},M=()=>{w(false);},R={value:y,activeIndex:h?N:-1,maxLength:a,disabled:d};return jsxRuntime.jsx(np.Provider,{value:R,children:jsxRuntime.jsxs("div",{className:o(ip({size:m}),t),onClick:S,"data-otp-container":true,children:[jsxRuntime.jsx("input",{ref:f,type:"text",inputMode:"numeric",autoComplete:"one-time-code",value:y,onChange:P,onKeyDown:x,onFocus:k,onBlur:M,disabled:d,maxLength:a,className:o("absolute opacity-0 pointer-events-none w-0 h-0",e),...c}),u]})})});sp.displayName="InputOTP";var lp=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex items-center",e),...t}));lp.displayName="InputOTPGroup";var dp=U__namespace.forwardRef(({index:e,className:t,...a},r)=>{let{value:n,activeIndex:i,disabled:s}=XR(),l=n[e]||"",d=i===e,m=d&&n.length===e;return jsxRuntime.jsxs("div",{ref:r,"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 ring-2 ring-ring ring-offset-background",s&&"cursor-not-allowed opacity-50",t),...a,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"})})]})});dp.displayName="InputOTPSlot";var cp=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,role:"separator",className:o("text-muted-foreground",e),...t,children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}));cp.displayName="InputOTPSeparator";var up=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"}}),fp=U__namespace.forwardRef(({className:e,variant:t,size:a,value:r=[],onChange:n,placeholder:i="Add tag...",maxTags:s,minTagLength:l=1,maxTagLength:d=50,triggerKeys:m=["Enter",",","Tab"],allowDuplicates:u=false,disabled:c,readOnly:g,renderTag:p,...v},N)=>{let[b,h]=U__namespace.useState(""),w=U__namespace.useRef(null);U__namespace.useImperativeHandle(N,()=>w.current);let f=R=>{let C=R.trim();if(C.length<l||C.length>d||s&&r.length>=s||!u&&r.some(T=>T.text.toLowerCase()===C.toLowerCase()))return;let D={id:crypto.randomUUID(),text:C};n?.([...r,D]),h("");},y=R=>{c||g||n?.(r.filter(C=>C.id!==R));},P=R=>{if(m.includes(R.key)){if(R.key==="Tab"&&!b)return;R.preventDefault(),f(b);}R.key==="Backspace"&&!b&&r.length>0&&y(r[r.length-1].id);},x=R=>{let C=R.target.value;if(C.includes(",")){C.split(",").forEach(T=>{T.trim()&&f(T);});return}h(C);},S=R=>{R.preventDefault(),R.clipboardData.getData("text").split(/[,\n\t]/).filter(Boolean).forEach(T=>{f(T);});},k=()=>{w.current?.focus();},M=s?r.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:k,children:[r.map(R=>p?p(R,()=>y(R.id)):jsxRuntime.jsxs("span",{className:o(up({variant:t,size:a})),children:[R.text,!c&&!g&&jsxRuntime.jsx("button",{type:"button",onClick:C=>{C.stopPropagation(),y(R.id);},className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${R.text}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},R.id)),!M&&!g&&jsxRuntime.jsx("input",{ref:w,type:"text",value:b,onChange:x,onKeyDown:P,onPaste:S,placeholder:r.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})]})});fp.displayName="TagInput";var bp=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"}}),vp=U__namespace.forwardRef(({className:e,size:t,icon:a,title:r,description:n,action:i,children:s,...l},d)=>jsxRuntime.jsxs("div",{ref:d,className:o(bp({size:t,className:e})),...l,children:[a&&jsxRuntime.jsx("div",{className:"text-muted-foreground [&>svg]:h-10 [&>svg]:w-10",children:a}),r&&jsxRuntime.jsx("h3",{className:"text-lg font-semibold text-foreground",children:r}),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]}));vp.displayName="EmptyState";var xp=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"}}),yp=U__namespace.forwardRef(({className:e,variant:t,label:a,value:r,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(xp({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:a}),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:r}),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})]})});yp.displayName="StatCard";var wp=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"}}),Np=U__namespace.forwardRef(({className:e,variant:t,size:a,...r},n)=>jsxRuntime.jsx("div",{ref:n,role:"list",className:o(wp({variant:t,size:a,className:e})),...r}));Np.displayName="List";var Pp=classVarianceAuthority.cva("flex items-center gap-3 transition-colors",{variants:{interactive:{true:"cursor-pointer hover:bg-muted/50",false:""}},defaultVariants:{interactive:false}}),Cp=U__namespace.forwardRef(({className:e,interactive:t,leading:a,trailing:r,children:n,...i},s)=>jsxRuntime.jsxs("div",{ref:s,role:"listitem",className:o(Pp({interactive:t,className:e})),...i,children:[a&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground",children:a}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:n}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]}));Cp.displayName="ListItem";var Sp=U__namespace.forwardRef(({className:e,primary:t,secondary:a,children:r,...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}),a&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground truncate",children:a}),r]}));Sp.displayName="ListItemText";var kp=classVarianceAuthority.cva("flex flex-col",{variants:{position:{left:"",right:"",alternate:""}},defaultVariants:{position:"left"}}),Dp=U__namespace.forwardRef(({className:e,position:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,"data-position":t,className:o(kp({position:t,className:e})),...a}));Dp.displayName="Timeline";var Vp=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"}}),Lp=U__namespace.forwardRef(({className:e,variant:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o(Vp({variant:t,className:e})),...a}));Lp.displayName="TimelineItem";var Ip=U__namespace.forwardRef(({className:e,dot:t,showConnector:a=true,...r},n)=>jsxRuntime.jsxs("div",{ref:n,className:o("flex flex-col items-center",e),...r,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}),a&&jsxRuntime.jsx("div",{className:"w-0.5 flex-1 bg-border"})]}));Ip.displayName="TimelineSeparator";var Ep=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex-1 pt-0.5",e),...t}));Ep.displayName="TimelineContent";var Hp=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex-1 text-sm text-muted-foreground pt-0.5",e),...t}));Hp.displayName="TimelineOpposite";var zp=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}}),Bp=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=U__namespace.createContext({}),Op=U__namespace.forwardRef(({className:e,size:t,fullWidth:a,children:r,...n},i)=>jsxRuntime.jsx(br__namespace.Root,{ref:i,type:"single",rovingFocus:false,className:o(zp({size:t,fullWidth:a,className:e})),...n,children:jsxRuntime.jsx(Fp.Provider,{value:{size:t??"md"},children:r})}));Op.displayName="SegmentedControl";var Gp=U__namespace.forwardRef(({className:e,children:t,...a},r)=>{let{size:n}=U__namespace.useContext(Fp);return jsxRuntime.jsx(br__namespace.Item,{ref:r,className:o(Bp({size:n}),"flex-1",e),...a,children:t})});Gp.displayName="SegmentedControlItem";var Wp=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"}}),$p=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},kn=e=>{if(e===0)return "0 Bytes";let t=1024,a=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,r)).toFixed(2))+" "+a[r]},_p=(e,t,a)=>{let r=[];return t&&e.size>t&&r.push({code:"file-too-large",message:`File is larger than ${kn(t)}`}),a&&a.length>0&&(a.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})||r.push({code:"file-invalid-type",message:`File type not accepted. Accepted: ${a.join(", ")}`})),r},Kp=U__namespace.forwardRef(({className:e,variant:t,size:a,onFilesChange:r,onFilesRejected:n,onFileRemove:i,files:s=[],showFileList:l=true,children:d,maxSize:m=10*1024*1024,accept:u,multiple:c=true,disabled:g,...p},v)=>{let[N,b]=U__namespace.useState(false),[h,w]=U__namespace.useState(false),[f,y]=U__namespace.useState([]),P=U__namespace.useRef(null),x=U__namespace.useCallback(V=>{if(!V||V.length===0)return;let E=Array.from(V),A=[],B=[];(c?E:[E[0]]).forEach(Q=>{let te=_p(Q,m,u);te.length>0?B.push({file:Q,errors:te}):A.push(Q);}),y(B),A.length>0&&r?.(A),B.length>0&&n?.(B);},[m,u,c,r,n]),S=U__namespace.useCallback(V=>{if(V.preventDefault(),V.stopPropagation(),!g&&(b(true),V.dataTransfer.items)){let A=Array.from(V.dataTransfer.items).some(B=>{if(B.kind!=="file")return true;if(u&&u.length>0){let H=B.type;return !u.some(Q=>Q.endsWith("/*")?H.startsWith(Q.slice(0,-2)):H===Q)}return false});w(A);}},[g,u]),k=U__namespace.useCallback(V=>{V.preventDefault(),V.stopPropagation(),!g&&(V.dataTransfer.dropEffect="copy");},[g]),M=U__namespace.useCallback(V=>{V.preventDefault(),V.stopPropagation();let E=V.currentTarget.getBoundingClientRect(),A=V.clientX,B=V.clientY;(A<E.left||A>E.right||B<E.top||B>E.bottom)&&(b(false),w(false));},[]),R=U__namespace.useCallback(V=>{V.preventDefault(),V.stopPropagation(),b(false),w(false),!g&&x(V.dataTransfer.files);},[g,x]),C=U__namespace.useCallback(()=>{g||P.current?.click();},[g]),D=U__namespace.useCallback(V=>{x(V.target.files),V.target.value="";},[x]),T=U__namespace.useCallback(V=>{g||(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),P.current?.click());},[g]),I=h?"error":N?"active":t,L=u?.join(",");return jsxRuntime.jsxs("div",{ref:v,className:o("space-y-4",e),...p,children:[jsxRuntime.jsxs("div",{role:"button",tabIndex:g?-1:0,onDragEnter:S,onDragOver:k,onDragLeave:M,onDrop:R,onClick:C,onKeyDown:T,className:o(Wp({variant:I,size:a}),g&&"opacity-50 cursor-not-allowed",!g&&"cursor-pointer focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"),"aria-disabled":g,children:[jsxRuntime.jsx("input",{ref:P,type:"file",accept:L,multiple:c,disabled:g,onChange:D,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:N?"Drop files here":"Drop files or click to upload"}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[m&&`Max ${kn(m)}`,u&&u.length>0&&` \u2022 ${u.join(", ")}`]})]})]})]}),f.length>0&&jsxRuntime.jsx("div",{className:"rounded-md bg-danger/10 p-3 text-sm text-danger",children:f.map(({file:V,errors:E})=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"font-medium",children:V.name}),":"," ",E.map(A=>A.message).join(", ")]},V.name))}),l&&s.length>0&&jsxRuntime.jsx("div",{className:"space-y-2",children:s.map(V=>{let E=$p(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(E,{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:[kn(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(fn,{value:V.progress,className:"mt-2 h-1"})]}),jsxRuntime.jsxs(O,{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)})})]})});Kp.displayName="FileUpload";var jp=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}}),g0=`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")`,Tr=U__namespace.forwardRef(({color:e,isSelected:t,showTransparency:a=true,onSelect:r,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),r?.(e);},className:o(jp({size:n,shape:i,interactive:s??(!!r||!!d)}),t&&"ring-2 ring-ring ring-offset-2",l),style:{backgroundImage:a?g0:void 0,backgroundSize:a?"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}})}));Tr.displayName="ColorSwatch";var h0=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"],x0={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"},Xp=U__namespace.forwardRef(({value:e,defaultValue:t="#3b82f6",onChange:a,disabled:r,presets:n=h0,showInput:i=true,size:s="md",className:l},d)=>{let[m,u]=U__namespace.useState(e??t);U__namespace.useEffect(()=>{e!==void 0&&u(e);},[e]);let c=p=>{u(p),a?.(p);},g=p=>{u(p),a?.(p);};return jsxRuntime.jsxs(ve,{children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsx("button",{ref:d,disabled:r,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",x0[s],l),style:{backgroundColor:m},"aria-label":`Color picker, current color: ${m}`})}),jsxRuntime.jsx(ue,{className:"w-auto p-3",align:"start",children:jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:m,onChange:c,className:"!w-[200px]"}),i&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(Aa,{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:m}}),jsxRuntime.jsx(reactColorful.HexColorInput,{id:"color-input",color:m,onChange:c,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(Aa,{className:"text-xs",children:"Presets"}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1.5",children:n.map(p=>jsxRuntime.jsx(Tr,{color:p,size:"sm",isSelected:m.toLowerCase()===p.toLowerCase(),onSelect:g},p))})]})]})})]})});Xp.displayName="ColorPicker";var qp=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"}}),bs=e=>String(e).padStart(2,"0"),P0=e=>{let[t,a]=e.split(":").map(Number);return {hours:t||0,minutes:a||0}},C0=(e,t)=>`${bs(e)}:${bs(t)}`,Zp=U__namespace.forwardRef(({className:e,size:t,value:a,onChange:r,use24Hour:n=true,minuteStep:i=1,showPicker:s=true,minTime:l,maxTime:d,disabled:m,...u},c)=>{let[g,p]=U__namespace.useState(a??""),[v,N]=U__namespace.useState(false);U__namespace.useEffect(()=>{a!==void 0&&p(a);},[a]);let{hours:b,minutes:h}=P0(g||"00:00"),w=M=>{let R=M.target.value;p(R),/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/.test(R)&&r?.(R);},f=(M,R)=>{let C=Math.max(0,Math.min(23,M)),D=Math.max(0,Math.min(59,R)),T=C0(C,D);p(T),r?.(T);},y=()=>f(b+1,h),P=()=>f(b-1,h),x=()=>f(b,h+i),S=()=>f(b,h-i),k=({value:M,onIncrement:R,onDecrement:C})=>jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx(O,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:R,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:bs(M)}),jsxRuntime.jsx(O,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:C,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:g,onChange:w,disabled:m,className:o(qp({size:t}),s&&"pr-10","[&::-webkit-calendar-picker-indicator]:hidden",e),...u}),s&&jsxRuntime.jsxs(ve,{open:v,onOpenChange:N,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs(O,{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(ue,{className:"w-auto p-4",align:"end",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(k,{value:b,onIncrement:y,onDecrement:P,max:23}),jsxRuntime.jsx("div",{className:"text-2xl font-bold text-muted-foreground",children:":"}),jsxRuntime.jsx(k,{value:h,onIncrement:x,onDecrement:S,max:59})]}),jsxRuntime.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[jsxRuntime.jsx(O,{variant:"bordered",size:"sm",onClick:()=>{let M=new Date;f(M.getHours(),M.getMinutes());},children:"Now"}),jsxRuntime.jsx(O,{size:"sm",onClick:()=>N(false),children:"Done"})]})]})]})]})});Zp.displayName="TimeInput";var Qp=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"}}),T0=(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}},vs=(e,t,a,r)=>{let n=e.toFixed(t),[i,s]=n.split("."),l=i.replace(/\B(?=(\d{3})+(?!\d))/g,a);return s?`${l}${r}${s}`:l},Jp=(e,t,a)=>{if(!e)return;let r=e.replace(new RegExp(`\\${t}`,"g"),"");r=r.replace(a,"."),r=r.replace(/[^0-9.-]/g,"");let n=parseFloat(r);return isNaN(n)?void 0:n},eu=U__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r,onChange:n,currency:i="USD",locale:s="en-US",decimals:l=2,min:d,max:m,showCurrency:u=true,currencyPosition:c="prefix",currencySymbol:g,thousandSeparator:p=",",decimalSeparator:v=".",disabled:N,placeholder:b,...h},w)=>{let[f,y]=U__namespace.useState(r),[P,x]=U__namespace.useState(""),[S,k]=U__namespace.useState(false),M=a!==void 0?a:f,R=g??T0(i,s);U__namespace.useEffect(()=>{!S&&M!==void 0&&x(vs(M,l,p,v));},[M,l,p,v,S]);let C=V=>{let E=V.target.value;if(!E){x(""),a===void 0&&y(void 0),n?.(void 0);return}if(!new RegExp(`^[0-9${p}${v}.-]*$`).test(E))return;x(E);let B=Jp(E,p,v);if(B!==void 0){let H=B;d!==void 0&&B<d&&(H=d),m!==void 0&&B>m&&(H=m),a===void 0&&y(H),n?.(H);}},D=()=>{k(true),M!==void 0&&x(M.toString().replace(".",v));},T=()=>{k(false),x(M!==void 0?vs(M,l,p,v):"");},I=u&&c==="prefix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pr-1",children:R}),L=u&&c==="suffix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pl-1",children:R});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[I&&jsxRuntime.jsx("div",{className:"absolute left-3 pointer-events-none",children:I}),jsxRuntime.jsx("input",{ref:w,type:"text",inputMode:"decimal",value:P,onChange:C,onFocus:D,onBlur:T,disabled:N,placeholder:b??`0${v}${"0".repeat(l)}`,className:o(Qp({size:t}),I&&"pl-8",L&&"pr-8","text-right",e),...h}),L&&jsxRuntime.jsx("div",{className:"absolute right-3 pointer-events-none",children:L})]})});eu.displayName="CurrencyInput";var tu=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 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:"#####-####"}},D0=(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}},Ra=e=>["#","A","*"].includes(e),Dn=(e,t,a)=>{let r="",n=0;for(let i=0;i<t.length&&n<=e.length;i++){let s=t[i];if(Ra(s)){if(n<e.length){let l=e[n];D0(l,s)?(r+=l,n++):(n++,i--);}}else (n<e.length||a)&&(r+=s);}return r},xs=(e,t)=>{let a="";for(let r=0;r<e.length&&r<t.length;r++){let n=t[r];Ra(n)&&(a+=e[r]);}return a},au=(e,t)=>e.split("").map(a=>Ra(a)?t:a).join(""),V0=(e,t,a)=>{let r=0;for(let l=0;l<a&&l<e.length&&l<t.length;l++)Ra(t[l])&&r++;let i=0,s=0;for(let l=0;l<t.length&&s<r;l++)i++,Ra(t[l])&&s++;for(;i<t.length&&!Ra(t[i]);)i++;return Math.min(i,e.length)},ru=U__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r="",onChange:n,mask:i,maskPlaceholder:s="_",showMaskPlaceholder:l=false,includeMaskChars:d=false,disabled:m,placeholder:u,...c},g)=>{let p=typeof i=="string"&&i in hs?hs[i].mask:i,[v,N]=U__namespace.useState(r),[b,h]=U__namespace.useState(""),w=U__namespace.useRef(null),f=a!==void 0?a:v;U__namespace.useImperativeHandle(g,()=>w.current),U__namespace.useEffect(()=>{let S=Dn(f,p,true);h(S);},[f,p]);let y=S=>{let k=S.target.value,M=S.target.selectionStart??0,R=k.replace(/[^\w]/g,""),C=Dn(R,p,true),D=xs(C,p);h(C),a===void 0&&N(d?C:D),n?.(D,C),requestAnimationFrame(()=>{if(w.current){let T=V0(C,p,M);w.current.setSelectionRange(T,T);}});},P=S=>{if(["ArrowLeft","ArrowRight","Home","End","Tab"].includes(S.key)||S.ctrlKey||S.metaKey)return;let k=w.current;if(!k)return;let M=k.selectionStart??0;if(S.key==="Backspace"&&M>0){let R=M-1;for(;R>0&&!Ra(p[R]);)R--;let C=xs(b,p),D=0;for(let L=0;L<R&&L<p.length;L++)Ra(p[L])&&D++;let T=C.slice(0,Math.max(0,D-1))+C.slice(D),I=Dn(T,p,true);h(I),a===void 0&&N(d?I:T),n?.(T,I),S.preventDefault(),requestAnimationFrame(()=>{w.current&&w.current.setSelectionRange(R,R);});}},x=l?au(p,s):u;return jsxRuntime.jsx("input",{ref:w,type:"text",value:b,onChange:y,onKeyDown:P,disabled:m,placeholder:x,className:o(tu({size:t}),e),...c})});ru.displayName="MaskedInput";var ou=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"}}),In={"DD/MM/YYYY":"/","MM/DD/YYYY":"/","YYYY-MM-DD":"-","DD.MM.YYYY":"."},Rs={"DD/MM/YYYY":["day","month","year"],"MM/DD/YYYY":["month","day","year"],"YYYY-MM-DD":["year","month","day"],"DD.MM.YYYY":["day","month","year"]},ys=(e,t)=>String(e).padStart(t,"0"),Ln=(e,t)=>{let a=ys(e.getDate(),2),r=ys(e.getMonth()+1,2),n=ys(e.getFullYear(),4),i=In[t],s=Rs[t],l={day:a,month:r,year:n};return s.map(d=>l[d]).join(i)},nu=(e,t)=>{let a=In[t],r=e.split(a);if(r.length!==3)return null;let n=Rs[t],i={};if(n.forEach((l,d)=>{i[l]=parseInt(r[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},H0=e=>e.toLowerCase(),A0=e=>{let t=In[e];return Rs[e].map(r=>r==="year"?"####":"##").join(t)},iu=U__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r,onChange:n,format:i="DD/MM/YYYY",minDate:s,maxDate:l,showIcon:d=true,disabled:m,placeholder:u,...c},g)=>{let[p,v]=U__namespace.useState(r??null),[N,b]=U__namespace.useState(""),[h,w]=U__namespace.useState(null),f=U__namespace.useRef(null),y=a!==void 0?a:p;U__namespace.useImperativeHandle(g,()=>f.current),U__namespace.useEffect(()=>{y?(b(Ln(y,i)),w(null)):b("");},[y,i]);let P=In[i],x=A0(i),S=R=>{let C=R.target.value;C=C.replace(new RegExp(`[^0-9\\${P}]`,"g"),"");let D=C.replace(new RegExp(`\\${P}`,"g"),""),T="",I=0;for(let L=0;L<x.length&&I<D.length;L++)x[L]==="#"?(T+=D[I],I++):T+=x[L];if(b(T),T.length===x.length){let L=nu(T,i);if(L){if(s&&L<s){w(`Date must be after ${Ln(s,i)}`);return}if(l&&L>l){w(`Date must be before ${Ln(l,i)}`);return}w(null),a===void 0&&v(L),n?.(L);}else w("Invalid date");}else a===void 0&&v(null),n?.(null),w(null);},k=()=>{N&&N.length!==x.length&&(b(""),w(null),a===void 0&&v(null),n?.(null));},M=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:f,type:"text",inputMode:"numeric",value:N,onChange:S,onBlur:k,disabled:m,placeholder:u??H0(i),className:o(ou({size:t}),d&&"pr-10",h&&"border-danger focus-visible:ring-danger",e),"aria-invalid":!!h,"aria-describedby":h?"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(M,"text-muted-foreground")})}),h&&jsxRuntime.jsx("p",{id:"date-error",className:"mt-1 text-xs text-danger",children:h})]})});iu.displayName="DateInput";var su=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"}}),lu=[{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:"##-###-####"}],En=(e,t)=>{let a=e.replace(/\D/g,""),r="",n=0;for(let i=0;i<t.length&&n<a.length;i++)t[i]==="#"?(r+=a[n],n++):r+=t[i];return r},F0=e=>e.replace(/#/g,"_"),du=U__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r="",onChange:n,country:i,defaultCountry:s="TR",onCountryChange:l,countries:d=lu,showCountrySelect:m=true,showDialCode:u=false,disabled:c,placeholder:g,...p},v)=>{let[N,b]=U__namespace.useState(r),[h,w]=U__namespace.useState(i??s),f=a!==void 0?a:N,y=i??h,P=d.find(R=>R.code===y)??d[0],x=En(f,P.format),S=R=>{let D=R.target.value.replace(/\D/g,"");a===void 0&&b(D);let T=En(D,P.format),I=`${P.dialCode} ${T}`;n?.(D,I,P);};return jsxRuntime.jsxs("div",{className:"flex",children:[m&&jsxRuntime.jsxs(Wi,{value:y,onValueChange:R=>{let C=d.find(I=>I.code===R);if(!C)return;i===void 0&&w(R),l?.(C);let D=En(f,C.format),T=`${C.dialCode} ${D}`;n?.(f,T,C);},disabled:c,children:[jsxRuntime.jsx(on,{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($i,{children:jsxRuntime.jsxs("span",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{children:P.flag}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:P.dialCode})]})})}),jsxRuntime.jsx(nn,{className:"max-h-[300px]",children:d.map(R=>jsxRuntime.jsx(sn,{value:R.code,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:R.flag}),jsxRuntime.jsx("span",{className:"flex-1",children:R.name}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:R.dialCode})]})},R.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:P.dialCode}),jsxRuntime.jsx("input",{ref:v,type:"tel",inputMode:"tel",value:x,onChange:S,disabled:c,placeholder:g??F0(P.format),className:o(su({size:t}),m&&"rounded-l-none",u&&!m&&"pl-12",e),...p})]})]})});du.displayName="PhoneInput";var mu=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}}),pu=U__namespace.forwardRef(({className:e,variant:t,size:a,sticky:r,brand:n,children:i,mobileBreakpoint:s="md",...l},d)=>{let[m,u]=U__namespace.useState(false),c={sm:"hidden sm:flex",md:"hidden md:flex",lg:"hidden lg:flex"}[s],g={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden"}[s];return jsxRuntime.jsxs("nav",{ref:d,className:o(mu({variant:t,size:a,sticky:r,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",g),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",g),children:i})]})});pu.displayName="Navbar";var uu=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex items-center gap-2 font-semibold text-lg",e),...t}));uu.displayName="NavbarBrand";var fu=U__namespace.forwardRef(({className:e,justify:t="start",...a},r)=>{let n={start:"justify-start",center:"justify-center",end:"justify-end"}[t];return jsxRuntime.jsx("div",{ref:r,className:o("flex items-center gap-4",n,e),...a})});fu.displayName="NavbarContent";var gu=U__namespace.forwardRef(({className:e,isActive:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex items-center",t&&"text-primary font-medium",e),...a}));gu.displayName="NavbarItem";var bu=U__namespace.forwardRef(({className:e,isActive:t,...a},r)=>jsxRuntime.jsx("a",{ref:r,className:o("text-sm font-medium transition-colors hover:text-primary",t?"text-primary":"text-muted-foreground",e),...a}));bu.displayName="NavbarLink";var hu=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"}}),xu=U__namespace.forwardRef(({className:e,variant:t,size:a,underline:r,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(hu({variant:t,size:a,underline:r,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"})]})});xu.displayName="Link";var Ru=classVarianceAuthority.cva("fixed bottom-6 right-6 z-50 flex items-center justify-center rounded-full shadow-lg transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{variant:{solid:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"bg-background border border-border text-foreground hover:bg-accent",ghost:"bg-background/80 backdrop-blur-sm text-foreground hover:bg-accent",soft:"bg-primary/10 text-primary hover:bg-primary/20",surface:"bg-muted text-foreground hover:bg-muted/80"},size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"}},defaultVariants:{variant:"solid",size:"md"}}),wu=U__namespace.forwardRef(({className:e,variant:t,size:a,visibilityHeight:r=400,smooth:n=true,icon:i,duration:s=300,onClick:l,...d},m)=>{let[u,c]=U__namespace.useState(false);U__namespace.useEffect(()=>{let v=()=>{c(window.scrollY>r);};return v(),window.addEventListener("scroll",v,{passive:true}),()=>window.removeEventListener("scroll",v)},[r]);let g=v=>{n?window.scrollTo({top:0,behavior:"smooth"}):window.scrollTo(0,0),l?.(v);},p={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}[a||"md"];return u?jsxRuntime.jsx("button",{ref:m,type:"button",className:o(Ru({variant:t,size:a,className:e}),"animate-in fade-in zoom-in duration-300"),onClick:g,"aria-label":"Back to top",...d,children:i||jsxRuntime.jsx(lucideReact.ArrowUp,{className:p})}):null});wu.displayName="BackTop";var Q0=$__namespace.Menu,J0=$__namespace.Group,ew=$__namespace.Portal,tw=$__namespace.Sub,aw=$__namespace.RadioGroup,Nu=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx($__namespace.Root,{ref:a,className:o("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",e),...t}));Nu.displayName=$__namespace.Root.displayName;var Pu=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx($__namespace.Trigger,{ref:a,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}));Pu.displayName=$__namespace.Trigger.displayName;var Cu=U__namespace.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxRuntime.jsxs($__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),...r,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}));Cu.displayName=$__namespace.SubTrigger.displayName;var Su=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx($__namespace.SubContent,{ref:a,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}));Su.displayName=$__namespace.SubContent.displayName;var Tu=U__namespace.forwardRef(({className:e,align:t="start",alignOffset:a=-4,sideOffset:r=8,...n},i)=>jsxRuntime.jsx($__namespace.Portal,{children:jsxRuntime.jsx($__namespace.Content,{ref:i,align:t,alignOffset:a,sideOffset:r,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})}));Tu.displayName=$__namespace.Content.displayName;var Mu=U__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx($__namespace.Item,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...a}));Mu.displayName=$__namespace.Item.displayName;var ku=U__namespace.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxRuntime.jsxs($__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:a,...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx($__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));ku.displayName=$__namespace.CheckboxItem.displayName;var Du=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs($__namespace.RadioItem,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx($__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Du.displayName=$__namespace.RadioItem.displayName;var Vu=U__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx($__namespace.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Vu.displayName=$__namespace.Label.displayName;var Lu=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx($__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));Lu.displayName=$__namespace.Separator.displayName;var Iu=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Iu.displayName="MenubarShortcut";var Eu=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"}}),Hu=U__namespace.forwardRef(({className:e,orientation:t,size:a,currentStep:r=0,children:n,...i},s)=>{let l=U__namespace.Children.toArray(n);return jsxRuntime.jsx("div",{ref:s,className:o(Eu({orientation:t,size:a,className:e})),...i,children:l.map((d,m)=>U__namespace.isValidElement(d)?U__namespace.cloneElement(d,{...d.props,stepNumber:m+1,status:d.props.status||(m<r?"completed":m===r?"current":"upcoming"),isLast:m===l.length-1,orientation:t,size:a}):d)})});Hu.displayName="Steps";var Au=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"}}),nw=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"}}),zu=U__namespace.forwardRef(({className:e,orientation:t="horizontal",size:a="md",title:r,description:n,icon:i,status:s="upcoming",stepNumber:l,isLast:d,...m},u)=>jsxRuntime.jsxs("div",{ref:u,className:o(Au({orientation:t,size:a,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:a})),children:s==="completed"?jsxRuntime.jsx(lucideReact.Check,{className:a==="sm"?"h-3 w-3":a==="lg"?"h-5 w-5":"h-4 w-4"}):i||l}),(r||n)&&jsxRuntime.jsxs("div",{className:"flex flex-col",children:[r&&jsxRuntime.jsx("span",{className:o("font-medium",a==="sm"&&"text-sm",a==="lg"&&"text-lg",s==="upcoming"&&"text-muted-foreground"),children:r}),n&&jsxRuntime.jsx("span",{className:o("text-muted-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm",a==="lg"&&"text-base"),children:n})]})]})}),!d&&jsxRuntime.jsx("div",{className:o(nw({orientation:t,status:s==="completed"?"completed":"upcoming"}),t==="vertical"&&"my-2")})]}));zu.displayName="Step";function mw({className:e,data:t,columns:a,selectable:r=false,selectedKeys:n,onSelectionChange:i,getRowKey:s=(y,P)=>String(P),sortable:l=false,sortState:d,onSortChange:m,paginated:u=false,pageSizeOptions:c=[10,20,50],paginationState:g,onPaginationChange:p,emptyContent:v="No data",loading:N=false,striped:b=false,hoverable:h=true,...w},f){let[y,P]=U__namespace.useState(new Set),[x,S]=U__namespace.useState({columnId:null,direction:null}),[k,M]=U__namespace.useState({pageIndex:0,pageSize:c[0]||10}),R=n??y,C=d??x,D=g??k,T=z=>{i?i(z):P(z);},I=z=>{m?m(z):S(z);},L=z=>{p?p(z):M(z);},V=U__namespace.useMemo(()=>{if(!C.columnId||!C.direction)return t;let z=a.find(F=>F.id===C.columnId);return z?[...t].sort((F,ae)=>{let G=z.accessor(F),ge=z.accessor(ae);if(G===ge)return 0;if(G==null)return 1;if(ge==null)return -1;let to=String(G).localeCompare(String(ge),void 0,{numeric:true});return C.direction==="asc"?to:-to}):t},[t,C,a]),E=U__namespace.useMemo(()=>{if(!u)return V;let z=D.pageIndex*D.pageSize;return V.slice(z,z+D.pageSize)},[V,u,D]),A=Math.ceil(V.length/D.pageSize),B=z=>{if(z){let F=new Set(E.map((ae,G)=>s(ae,G)));T(F);}else T(new Set);},H=(z,F)=>{let ae=new Set(R);F?ae.add(z):ae.delete(z),T(ae);},Q=E.length>0&&E.every((z,F)=>R.has(s(z,F))),te=E.some((z,F)=>R.has(s(z,F))),J=z=>{if(!a.find(G=>G.id===z)?.sortable&&!l)return;let ae="asc";C.columnId===z&&(C.direction==="asc"?ae="desc":C.direction==="desc"&&(ae=null)),I({columnId:ae?z:null,direction:ae});},nt=z=>C.columnId!==z?jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4 text-muted-foreground/50"}):C.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:f,className:o("w-full",e),...w,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:[r&&jsxRuntime.jsx("th",{className:"h-12 w-12 px-4",children:jsxRuntime.jsx(io,{checked:Q?true:te?"indeterminate":false,onCheckedChange:B,"aria-label":"Select all"})}),a.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&&J(z.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[z.header,F&&nt(z.id)]})},z.id)})]})}),jsxRuntime.jsx("tbody",{className:"[&_tr:last-child]:border-0",children:N?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:a.length+(r?1:0),className:"h-24 text-center text-muted-foreground",children:"Loading..."})}):E.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:a.length+(r?1:0),className:"h-24 text-center text-muted-foreground",children:v})}):E.map((z,F)=>{let ae=s(z,F),G=R.has(ae);return jsxRuntime.jsxs("tr",{className:o("border-b transition-colors",h&&"hover:bg-muted/50",b&&F%2===1&&"bg-muted/30",G&&"bg-muted"),"data-state":G?"selected":void 0,children:[r&&jsxRuntime.jsx("td",{className:"w-12 px-4",children:jsxRuntime.jsx(io,{checked:G,onCheckedChange:ge=>H(ae,!!ge),"aria-label":`Select row ${F+1}`})}),a.map(ge=>jsxRuntime.jsx("td",{className:"p-4 align-middle",children:ge.cell?ge.cell(z,F):ge.accessor(z)},ge.id))]},ae)})})]})}),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:D.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 ",D.pageIndex+1," of ",A||1]}),jsxRuntime.jsxs("div",{className:"flex gap-1",children:[jsxRuntime.jsx("button",{onClick:()=>L({...D,pageIndex:D.pageIndex-1}),disabled:D.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({...D,pageIndex:D.pageIndex+1}),disabled:D.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 pw=U__namespace.forwardRef(mw);var Fu=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"}}),Ou=U__namespace.forwardRef(({className:e,size:t,data:a,defaultExpandedIds:r=[],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:g=false,...p},v)=>{let N=U__namespace.useCallback(x=>x.reduce((S,k)=>k.children?.length?[...S,k.id,...N(k.children)]:S,[]),[]),[b,h]=U__namespace.useState(()=>g?N(a):r),w=n??b,f=x=>{i?i(x):h(x);},y=x=>{w.includes(x)?f(w.filter(S=>S!==x)):f([...w,x]);},P=(x,S=0)=>{let k=x.children&&x.children.length>0,M=w.includes(x.id),R=s===x.id,C=()=>{x.disabled||l?.(x);},D=I=>{I.stopPropagation(),k&&y(x.id);},T=()=>x.icon?x.icon:k?M?c:u:m;return jsxRuntime.jsxs("div",{role:"treeitem","aria-expanded":k?M: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",R&&"bg-primary/10 text-primary",x.disabled&&"opacity-50 cursor-not-allowed"),style:{paddingLeft:`calc(${S} * var(--tree-indent) + 8px)`},onClick:C,children:[jsxRuntime.jsx("button",{type:"button",className:o("flex h-5 w-5 items-center justify-center rounded hover:bg-muted",!k&&"invisible"),onClick:D,tabIndex:-1,"aria-label":M?"Collapse":"Expand",children:M?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:T()}),jsxRuntime.jsx("span",{className:"truncate",children:x.name})]}),k&&M&&jsxRuntime.jsx("div",{role:"group",children:x.children.map(I=>P(I,S+1))})]},x.id)};return jsxRuntime.jsx("div",{ref:v,role:"tree",className:o(Fu({size:t,className:e})),...p,children:a.map(x=>P(x))})});Ou.displayName="TreeView";var Wu=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{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"}}),Nw=({text:e,query:t})=>{if(!t)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let a=new RegExp(`(${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi"),r=e.split(a);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.map((n,i)=>a.test(n)?jsxRuntime.jsx("mark",{className:"bg-primary/20 text-foreground rounded-sm",children:n},i):jsxRuntime.jsx("span",{children:n},i))})},Pw=(e,t)=>{let[a,r]=U__namespace.useState(e);return U__namespace.useEffect(()=>{let n=setTimeout(()=>{r(e);},t);return ()=>{clearTimeout(n);}},[e,t]),a},$u=U__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r="",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:g="Loading...",clearable:p=false,freeSolo:v=true,maxHeight:N=200,highlightMatch:b=true,disabled:h,...w},f)=>{let[y,P]=U__namespace.useState(false),[x,S]=U__namespace.useState(r),[k,M]=U__namespace.useState([]),[R,C]=U__namespace.useState(false),D=U__namespace.useRef(null),T=a!==void 0?a:x,I=Pw(T,d);U__namespace.useImperativeHandle(f,()=>D.current);let L=l?k:s,V=U__namespace.useMemo(()=>l?L:L.filter(F=>F.label.toLowerCase().includes(T.toLowerCase())),[L,T,l]);U__namespace.useEffect(()=>{if(!l)return;if(I.length<m){M([]);return}let F=false;return (async()=>{C(true);try{let G=await l(I);F||M(G);}catch{F||M([]);}finally{F||C(false);}})(),()=>{F=true;}},[I,l,m]);let E=F=>{a===void 0&&S(F),n?.(F);},A=F=>{let ae=F.target.value;E(ae),ae.length>=m&&P(true);},B=F=>{E(F.label),i?.(F),P(false);},H=()=>{E(""),D.current?.focus();},Q=()=>{T.length>=m&&(V.length>0||R)&&P(true);},te=F=>{F.key==="Escape"&&P(false),F.key==="ArrowDown"&&!y&&V.length>0&&P(true);},J=y&&T.length>=m,nt=t==="sm"?"h-3 w-3":t==="lg"?"h-5 w-5":"h-4 w-4",z=p&&T?"pr-8":"pr-3";return jsxRuntime.jsxs(ve,{open:J,onOpenChange:P,children:[jsxRuntime.jsx(ji,{asChild:true,children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx("input",{ref:D,type:"text",value:T,onChange:A,onFocus:Q,onKeyDown:te,disabled:h,placeholder:u,className:o(Wu({size:t}),z,e),role:"combobox","aria-expanded":J,"aria-autocomplete":"list","aria-controls":"autocomplete-list",...w}),p&&T&&!h&&jsxRuntime.jsx("button",{type:"button",onClick:H,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:nt})})]})}),jsxRuntime.jsx(ue,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",onOpenAutoFocus:F=>F.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:N},children:R?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(nt,"animate-spin")}),g]}):V.length===0?jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:c}):V.map(F=>jsxRuntime.jsxs(cmdk.Command.Item,{value:F.value,disabled:F.disabled,onSelect:()=>B(F),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",T===F.label?"opacity-100":"opacity-0")}),jsxRuntime.jsx("span",{className:"flex-1",children:b?jsxRuntime.jsx(Nw,{text:F.label,query:T}):F.label})]},F.value))})})})]})});$u.displayName="Autocomplete";var Cs=U__namespace.createContext(null),Ss=U__namespace.createContext(null),Ts=()=>{let e=U__namespace.useContext(Cs);if(!e)throw new Error("useFormContext must be used within a Form");return e},zn=()=>{let e=U__namespace.useContext(Ss);if(!e)throw new Error("useFieldContext must be used within a FormField");return e},Cw={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:a=>typeof a=="string"&&a.length>=e,message:t??`Must be at least ${e} characters`}),maxLength:(e,t)=>({validate:a=>typeof a=="string"&&a.length<=e,message:t??`Must be at most ${e} characters`}),min:(e,t)=>({validate:a=>typeof a=="number"&&a>=e,message:t??`Must be at least ${e}`}),max:(e,t)=>({validate:a=>typeof a=="number"&&a<=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:a=>typeof a=="string"&&e.test(a),message:t}),custom:(e,t)=>({validate:e,message:t})},_u=U__namespace.forwardRef(({defaultValues:e={},onSubmit:t,onError:a,validateOnBlur:r=true,validateOnChange:n=false,children:i,className:s,...l},d)=>{let[m,u]=U__namespace.useState(e),[c,g]=U__namespace.useState({}),[p,v]=U__namespace.useState({}),[N,b]=U__namespace.useState({}),[h,w]=U__namespace.useState(false),f=U__namespace.useRef(new Map),y=U__namespace.useCallback((L,V)=>{f.current.set(L,V);},[]),P=U__namespace.useCallback(L=>{f.current.delete(L);},[]),x=U__namespace.useCallback(L=>{let V=f.current.get(L)||[],E=m[L];for(let A of V)if(!A.validate(E))return g(B=>({...B,[L]:A.message})),false;return g(A=>({...A,[L]:null})),true},[m]),S=U__namespace.useCallback(()=>{let L=true,V={};return f.current.forEach((E,A)=>{let B=m[A];for(let H of E)if(!H.validate(B)){V[A]=H.message,L=false;break}V[A]||(V[A]=null);}),g(V),L},[m]),k=U__namespace.useCallback((L,V)=>{u(E=>({...E,[L]:V})),b(E=>({...E,[L]:true})),n&&setTimeout(()=>{x(L);},0);},[n,x]),M=U__namespace.useCallback((L,V)=>{g(E=>({...E,[L]:V}));},[]),R=U__namespace.useCallback((L,V)=>{v(E=>({...E,[L]:V})),V&&r&&x(L);},[r,x]),C=U__namespace.useCallback(L=>({value:m[L],error:c[L]??null,touched:p[L]??false,dirty:N[L]??false}),[m,c,p,N]),D=U__namespace.useCallback(()=>{u(e),g({}),v({}),b({});},[e]),T=async L=>{L.preventDefault();let V={};if(f.current.forEach((A,B)=>{V[B]=true;}),v(V),!S()){a?.(c);return}if(t){w(true);try{await t(m);}finally{w(false);}}},I={values:m,errors:c,touched:p,dirty:N,isSubmitting:h,setValue:k,setError:M,setTouched:R,validateField:x,validateAll:S,registerField:y,unregisterField:P,getFieldState:C,reset:D};return jsxRuntime.jsx(Cs.Provider,{value:I,children:jsxRuntime.jsx("form",{ref:d,onSubmit:T,className:o("space-y-4",s),...l,children:i})})});_u.displayName="Form";var Ku=({name:e,rules:t=[],defaultValue:a,children:r})=>{let n=Ts(),i=U__namespace.useId();U__namespace.useEffect(()=>(n.registerField(e,t),a!==void 0&&n.values[e]===void 0&&n.setValue(e,a),()=>{n.unregisterField(e);}),[e,t,a,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(Ss.Provider,{value:l,children:r})};Ku.displayName="FormField";var Uu=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("space-y-1.5",e),...t}));Uu.displayName="FormItem";var Yu=U__namespace.forwardRef(({className:e,required:t,children:a,...r},n)=>{let{id:i,error:s,touched:l}=zn();return jsxRuntime.jsxs(Aa,{ref:n,htmlFor:i,className:o(s&&l&&"text-danger",e),...r,children:[a,t&&jsxRuntime.jsx("span",{className:"ml-1 text-danger",children:"*"})]})});Yu.displayName="FormLabel";var ju=({children:e})=>{let{name:t,id:a,error:r,touched:n}=zn(),i=Ts(),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 U__namespace.cloneElement(e,{id:a,name:t,value:s.value??"",onChange:l,onBlur:d,"aria-invalid":r&&n?"true":void 0,"aria-describedby":r&&n?`${a}-error`:void 0})};ju.displayName="FormControl";var Xu=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("p",{ref:a,className:o("text-xs text-muted-foreground",e),...t}));Xu.displayName="FormDescription";var qu=U__namespace.forwardRef(({className:e,message:t,...a},r)=>{let{id:n,error:i,touched:s}=zn(),l=t??(s?i:null);return l?jsxRuntime.jsx("p",{ref:r,id:`${n}-error`,className:o("text-xs text-danger",e),role:"alert",...a,children:l}):null});qu.displayName="FormMessage";var Qu=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"}}),Ju=U__namespace.forwardRef(({className:e,size:t,name:a,description:r,avatarUrl:n,avatarFallback:i,trailing:s,...l},d)=>{let m=i||a.split(" ").map(u=>u[0]).join("").toUpperCase().slice(0,2);return jsxRuntime.jsxs("div",{ref:d,className:o(Qu({size:t,className:e})),...l,children:[jsxRuntime.jsxs(za,{"data-user-avatar":true,children:[n&&jsxRuntime.jsx(fr,{src:n,alt:a}),jsxRuntime.jsx(Ba,{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:a}),r&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground truncate",children:r})]}),s&&jsxRuntime.jsx("div",{className:"ml-auto flex-shrink-0",children:s})]})});Ju.displayName="User";var tf=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"}}),af=U__namespace.forwardRef(({className:e,variant:t,size:a,...r},n)=>jsxRuntime.jsx("code",{ref:n,className:o(tf({variant:t,size:a,className:e})),...r}));af.displayName="Code";var rf=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"}}),of=U__namespace.forwardRef(({className:e,variant:t,size:a,code:r,copyable:n=true,copyLabel:i="Copy",onCopy:s,symbol:l="$",hideSymbol:d=false,...m},u)=>{let[c,g]=U__namespace.useState(false),p=async()=>{try{await navigator.clipboard.writeText(r),g(!0),s?.(),setTimeout(()=>g(!1),2e3);}catch(v){console.error("Failed to copy:",v);}};return jsxRuntime.jsxs("div",{ref:u,className:o(rf({variant:t,size:a,className:e})),...m,children:[!d&&jsxRuntime.jsx("span",{className:"text-muted-foreground select-none",children:l}),jsxRuntime.jsx("code",{className:"flex-1 truncate",children:r}),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"})})]})});of.displayName="Snippet";var Ds=classVarianceAuthority.cva("overflow-hidden",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),nf=U__namespace.forwardRef(({className:e,radius:t,src:a,alt:r,fallback:n,showSkeleton:i=true,onLoad:s,onError:l,fit:d="cover",aspectRatio:m,style:u,...c},g)=>{let[p,v]=U__namespace.useState("loading");U__namespace.useEffect(()=>{a&&v("loading");},[a]);let N=()=>{v("loaded"),s?.();},b=()=>{v("error"),l?.();},h={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(Ds({radius:t}),"flex items-center justify-center bg-muted",e),style:{aspectRatio:m,...u},children:n}):jsxRuntime.jsxs("div",{className:o(Ds({radius:t}),"relative",e),style:{aspectRatio:m,...u},children:[p==="loading"&&i&&jsxRuntime.jsx(an,{className:"absolute inset-0 h-full w-full"}),jsxRuntime.jsx("img",{ref:g,src:a,alt:r,onLoad:N,onError:b,className:o("h-full w-full transition-opacity duration-300",h,p==="loading"?"opacity-0":"opacity-100"),...c})]})});nf.displayName="Image";var df=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"}}),cf=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"}}),mf=U__namespace.createContext({value:"",onValueChange:()=>{},multiple:false,size:"md"}),pf=U__namespace.forwardRef(({className:e,size:t="md",value:a,defaultValue:r="",onValueChange:n,multiple:i=false,children:s,...l},d)=>{let[m,u]=U__namespace.useState(r),c=a??m,g=p=>{let v;if(i){let N=Array.isArray(c)?c:[c].filter(Boolean);N.includes(p)?v=N.filter(b=>b!==p):v=[...N,p];}else v=p;n?n(v):u(v);};return jsxRuntime.jsx(mf.Provider,{value:{value:c,onValueChange:g,multiple:i,size:t??"md"},children:jsxRuntime.jsx("div",{ref:d,role:"listbox","aria-multiselectable":i,className:o(df({size:t,className:e})),...l,children:s})})});pf.displayName="Listbox";var uf=U__namespace.forwardRef(({className:e,value:t,disabled:a,icon:r,description:n,children:i,...s},l)=>{let{value:d,onValueChange:m,multiple:u,size:c}=U__namespace.useContext(mf),g=u?Array.isArray(d)&&d.includes(t):d===t,p=()=>{a||m(t);},v=N=>{(N.key==="Enter"||N.key===" ")&&!a&&(N.preventDefault(),m(t));};return jsxRuntime.jsxs("div",{ref:l,role:"option","aria-selected":g,"data-disabled":a?"":void 0,tabIndex:a?-1:0,className:o(cf({size:c}),g&&"bg-accent text-accent-foreground",e),onClick:p,onKeyDown:v,...s,children:[r&&jsxRuntime.jsx("span",{className:"mr-2 flex-shrink-0",children:r}),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})]}),g&&jsxRuntime.jsx(lucideReact.Check,{className:"ml-2 h-4 w-4 flex-shrink-0"})]})});uf.displayName="ListboxItem";var gf=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"}}),bf=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 Bw({className:e,variant:t,size:a,items:r,onReorder:n,renderItem:i,showHandle:s=true,disabled:l=false,...d},m){let[u,c]=U__namespace.useState(null),[g,p]=U__namespace.useState(null),v=(f,y)=>{l||(c(y),f.dataTransfer.effectAllowed="move",f.dataTransfer.setData("text/plain",String(y)));},N=(f,y)=>{f.preventDefault(),!(l||u===null||u===y)&&p(y);},b=()=>{p(null);},h=(f,y)=>{if(f.preventDefault(),l||u===null||u===y){c(null),p(null);return}let P=[...r],[x]=P.splice(u,1);P.splice(y,0,x),n?.(P),c(null),p(null);},w=()=>{c(null),p(null);};return jsxRuntime.jsx("div",{ref:m,className:o(gf({variant:t,size:a,className:e})),...d,children:r.map((f,y)=>jsxRuntime.jsxs("div",{draggable:!l,onDragStart:P=>v(P,y),onDragOver:P=>N(P,y),onDragLeave:b,onDrop:P=>h(P,y),onDragEnd:w,className:o(bf({variant:t,size:a,isDragging:u===y,isDragOver:g===y}),!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(f,y)})]},f.id))})}var Fw=U__namespace.forwardRef(Bw);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}}),$w={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},yf=U__namespace.forwardRef(({className:e,variant:t,loading:a=true,size:r="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:a})),"aria-hidden":!a,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[n||jsxRuntime.jsx(lucideReact.Loader2,{className:o($w[r],"animate-spin text-primary")}),i&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:i})]})})]}));yf.displayName="LoadingOverlay";var Rf=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"}}),wf=U__namespace.forwardRef(({className:e,color:t,isLoading:a=false,progress:r,showSpinner:n=false,...i},s)=>{let[l,d]=U__namespace.useState(0),[m,u]=U__namespace.useState(false),c=U__namespace.useRef(null);return U__namespace.useEffect(()=>{if(r!==void 0){d(r),u(r>0&&r<100);return}return a?(u(true),d(10),c.current=setInterval(()=>{d(g=>{if(g>=90)return g;let p=Math.random()*10;return Math.min(g+p,90)});},500)):l>0&&(d(100),setTimeout(()=>{u(false),d(0);},200)),()=>{c.current&&clearInterval(c.current);}},[a,r]),!m&&r===void 0||r!==void 0&&(r<=0||r>=100)?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{ref:s,className:o(Rf({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")})})]})});wf.displayName="NProgress";var Sf=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}}),Nf={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},Xw={sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-3 w-3"},Tf=U__namespace.forwardRef(({className:e,variant:t="spinner",size:a="md",fullScreen:r,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(Xw[a||"md"],"animate-bounce rounded-full bg-current",d),style:{animationDelay:`${u*.15}s`}},u))});case "pulse":return jsxRuntime.jsx("div",{className:o(Nf[a||"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(Nf[a||"md"],"animate-spin",d)})}};return jsxRuntime.jsx("div",{ref:l,className:o(Sf({variant:t,size:a,fullScreen:r,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})]})})});Tf.displayName="Loading";var Is=class extends U__namespace.Component{constructor(t){super(t),this.state={hasError:false,error:null};}static getDerivedStateFromError(t){return {hasError:true,error:t}}componentDidCatch(t,a){this.props.onError?.(t,a);}componentDidUpdate(t){this.state.hasError&&this.props.resetKeys&&this.props.resetKeys.some((r,n)=>r!==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(Es,{error:this.state.error,onReset:this.reset}):this.props.children}},Es=U__namespace.forwardRef(({error:e,onReset:t,className:a},r)=>jsxRuntime.jsxs("div",{ref:r,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",a),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"]})]}));Es.displayName="DefaultErrorFallback";var Qw=Is;var kf=U__namespace.forwardRef(({value:e,defaultValue:t,onValueChange:a,placeholder:r="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[g,p]=U__namespace.useState(false),[v,N]=U__namespace.useState(t),b=e!==void 0,h=b?e:v,w=y=>{b||N(y),a?.(y);},f=y=>{if(!y)return r;let{from:P,to:x}=y;return P&&x?`${dateFns.format(P,n)} - ${dateFns.format(x,n)}`:P?dateFns.format(P,n):r};return jsxRuntime.jsxs(ve,{open:g,onOpenChange:p,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs(O,{ref:c,variant:"bordered",disabled:i,className:o("w-full justify-start text-left font-normal",!h?.from&&"text-muted-foreground",m),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),f(h)]})}),jsxRuntime.jsx(ue,{className:"w-auto p-0",align:u,children:jsxRuntime.jsx(xr,{mode:"range",defaultMonth:h?.from,selected:h,onSelect:w,numberOfMonths:d,disabled:y=>!!(s&&y<s||l&&y>l),initialFocus:true})})]})});kf.displayName="DateRangePicker";var Er=e=>String(e).padStart(2,"0"),Df=U__namespace.forwardRef(({value:e,onValueChange:t,placeholder:a="Pick a time",use24Hour:r=true,minuteStep:n=1,disabled:i=false,className:s},l)=>{let[d,m]=U__namespace.useState(false),u=r?Array.from({length:24},(f,y)=>y):Array.from({length:12},(f,y)=>y+1),c=Array.from({length:Math.floor(60/n)},(f,y)=>y*n),g=f=>{if(!f)return a;if(r)return `${Er(f.hours)}:${Er(f.minutes)}`;let y=f.hours%12||12,P=f.hours>=12?"PM":"AM";return `${Er(y)}:${Er(f.minutes)} ${P}`},p=f=>{let y=e?.minutes??0,P=f;if(!r&&e){let x=e.hours>=12;x&&f!==12?P=f+12:!x&&f===12&&(P=0);}t?.({hours:P,minutes:y});},v=f=>{let y=e?.hours??0;t?.({hours:y,minutes:f});},N=f=>{if(!e)return;let y=e.hours;f==="AM"&&e.hours>=12?y=e.hours-12:f==="PM"&&e.hours<12&&(y=e.hours+12),t?.({hours:y,minutes:e.minutes});},b=()=>{let f=new Date;t?.({hours:f.getHours(),minutes:f.getMinutes()});},h=e?e.hours>=12?"PM":"AM":void 0,w=e?r?e.hours:e.hours%12||12:void 0;return jsxRuntime.jsxs(ve,{open:d,onOpenChange:m,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs(O,{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"}),g(e)]})}),jsxRuntime.jsxs(ue,{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(dt,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:u.map(f=>jsxRuntime.jsx(O,{variant:w===f?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>p(f),children:Er(f)},f))})})]}),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(dt,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:c.map(f=>jsxRuntime.jsx(O,{variant:e?.minutes===f?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>v(f),children:Er(f)},f))})})]}),!r&&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(O,{variant:h==="AM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>N("AM"),children:"AM"}),jsxRuntime.jsx(O,{variant:h==="PM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>N("PM"),children:"PM"})]})]})]}),jsxRuntime.jsxs("div",{className:"flex justify-between border-t p-2",children:[jsxRuntime.jsx(O,{variant:"ghost",size:"sm",onClick:b,children:"Now"}),jsxRuntime.jsx(O,{size:"sm",onClick:()=>m(false),children:"Done"})]})]})]})});Df.displayName="TimePicker";var Vf=classVarianceAuthority.cva("overflow-auto",{variants:{variant:{default:"",bordered:"border rounded-lg",cards:""}},defaultVariants:{variant:"default"}});function aN({className:e,variant:t,items:a,itemHeight:r,height:n,overscan:i=3,renderItem:s,getItemKey:l,gap:d=0,onScrollChange:m,...u},c){let g=U__namespace.useRef(null),[p,v]=U__namespace.useState(0);U__namespace.useImperativeHandle(c,()=>g.current);let N=a.length*(r+d)-d,b=r+d,h=Math.max(0,Math.floor(p/b)-i),w=Math.ceil(n/b)+2*i,f=Math.min(a.length-1,h+w),y=x=>{let S=x.currentTarget.scrollTop;v(S),m?.(S);},P=U__namespace.useMemo(()=>{let x=[];for(let S=h;S<=f;S++)a[S]!==void 0&&x.push({item:a[S],index:S,style:{position:"absolute",top:S*b,left:0,right:0,height:r}});return x},[a,h,f,b,r]);return jsxRuntime.jsx("div",{ref:g,className:o(Vf({variant:t,className:e})),style:{height:n,position:"relative"},onScroll:y,...u,children:jsxRuntime.jsx("div",{style:{height:N,position:"relative"},children:P.map(({item:x,index:S,style:k})=>jsxRuntime.jsx("div",{style:k,children:s(x,S)},l?l(x,S):S))})})}var rN=U__namespace.forwardRef(aN);var If=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"border rounded-lg overflow-hidden"}},defaultVariants:{variant:"default"}}),zs=classVarianceAuthority.cva("flex items-center justify-center py-4",{variants:{size:{sm:"py-2",md:"py-4",lg:"py-6"}},defaultVariants:{size:"md"}}),Ef=U__namespace.forwardRef(({className:e,variant:t,size:a,children:r,onLoadMore:n,hasMore:i,isLoading:s=false,loader:l,threshold:d=100,rootMargin:m,useWindow:u=false,endMessage:c,...g},p)=>{let v=U__namespace.useRef(null),N=U__namespace.useRef(null),b=U__namespace.useRef(false);U__namespace.useImperativeHandle(p,()=>v.current),U__namespace.useEffect(()=>{let w=N.current;if(!w)return;let f=new IntersectionObserver(y=>{let[P]=y;P.isIntersecting&&i&&!s&&!b.current&&(b.current=true,Promise.resolve(n()).finally(()=>{b.current=false;}));},{root:u?null:v.current,rootMargin:m||`${d}px`,threshold:0});return f.observe(w),()=>{f.disconnect();}},[i,s,n,d,m,u]);let h=jsxRuntime.jsx("div",{className:o(zs({size:a})),children:jsxRuntime.jsx(lucideReact.Loader2,{className:"h-6 w-6 animate-spin text-muted-foreground"})});return jsxRuntime.jsxs("div",{ref:v,className:o(If({variant:t,className:e})),...g,children:[r,jsxRuntime.jsx("div",{ref:N,className:"h-px w-full"}),s&&(l||h),!i&&!s&&c&&jsxRuntime.jsx("div",{className:o(zs({size:a}),"text-muted-foreground text-sm"),children:c})]})});Ef.displayName="InfiniteScroll";var zf=classVarianceAuthority.cva("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"),Bs=classVarianceAuthority.cva("fixed left-[50%] top-[50%] z-50 grid 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",{variants:{size:{sm:"w-full max-w-sm",md:"w-full max-w-lg",lg:"w-full max-w-2xl",xl:"w-full max-w-4xl",full:"w-[calc(100vw-2rem)] h-[calc(100vh-2rem)] max-w-none"}},defaultVariants:{size:"md"}}),Bf=U__namespace.forwardRef(({open:e,onOpenChange:t,children:a,trigger:r,title:n,description:i,footer:s,showCloseButton:l=true,closeOnOverlayClick:d=true,closeOnEscape:m=true,size:u,className:c,contentClassName:g},p)=>jsxRuntime.jsxs(oe__namespace.Root,{open:e,onOpenChange:t,children:[r&&jsxRuntime.jsx(oe__namespace.Trigger,{asChild:true,children:r}),jsxRuntime.jsxs(oe__namespace.Portal,{children:[jsxRuntime.jsx(oe__namespace.Overlay,{className:o(zf(),c),onClick:d?void 0:v=>v.stopPropagation()}),jsxRuntime.jsxs(oe__namespace.Content,{ref:p,className:o(Bs({size:u}),g),onEscapeKeyDown:m?void 0:v=>v.preventDefault(),onPointerDownOutside:d?void 0:v=>v.preventDefault(),children:[(n||i)&&jsxRuntime.jsxs("div",{className:"flex flex-col space-y-1.5 text-center sm:text-left",children:[n&&jsxRuntime.jsx(oe__namespace.Title,{className:"text-lg font-semibold leading-none tracking-tight",children:n}),i&&jsxRuntime.jsx(oe__namespace.Description,{className:"text-sm text-muted-foreground",children:i})]}),a,s&&jsxRuntime.jsx("div",{className:"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",children:s}),l&&jsxRuntime.jsxs(oe__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"})]})]})]})]}));Bf.displayName="Modal";var iN=oe__namespace.Root,sN=oe__namespace.Trigger,Ff=oe__namespace.Portal,lN=oe__namespace.Close,Fs=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Overlay,{ref:a,className:o(zf(),e),...t}));Fs.displayName="ModalOverlay";var Of=U__namespace.forwardRef(({className:e,children:t,size:a,showCloseButton:r=true,...n},i)=>jsxRuntime.jsxs(Ff,{children:[jsxRuntime.jsx(Fs,{}),jsxRuntime.jsxs(oe__namespace.Content,{ref:i,className:o(Bs({size:a}),e),...n,children:[t,r&&jsxRuntime.jsxs(oe__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"})]})]})]}));Of.displayName="ModalContent";var Gf=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Gf.displayName="ModalHeader";var Wf=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Wf.displayName="ModalFooter";var $f=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Title,{ref:a,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));$f.displayName="ModalTitle";var _f=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));_f.displayName="ModalDescription";var Uf=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"}}),fN=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"}}),gN={default:lucideReact.HelpCircle,danger:lucideReact.XCircle,warning:lucideReact.AlertTriangle,success:lucideReact.CheckCircle,info:lucideReact.Info},Os=U__namespace.forwardRef(({open:e,onOpenChange:t,trigger:a,title:r,description:n,confirmText:i="Confirm",cancelText:s="Cancel",onConfirm:l,onCancel:d,showIcon:m=true,icon:u,variant:c="default",loading:g=false,disabled:p=false,className:v},N)=>{let[b,h]=U__namespace.useState(false),w=gN[c||"default"],f=async()=>{if(l){let x=l();if(x instanceof Promise){h(true);try{await x;}finally{h(false);}}}},y=()=>{d?.();},P=g||b;return jsxRuntime.jsxs(le__namespace.Root,{open:e,onOpenChange:t,children:[a&&jsxRuntime.jsx(le__namespace.Trigger,{asChild:true,children:a}),jsxRuntime.jsxs(le__namespace.Portal,{children:[jsxRuntime.jsx(le__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(le__namespace.Content,{ref:N,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(Uf({variant:c})),children:u||jsxRuntime.jsx(w,{className:"h-6 w-6"})}),jsxRuntime.jsxs("div",{className:"flex flex-col space-y-2 text-center sm:text-left",children:[jsxRuntime.jsx(le__namespace.Title,{className:"text-lg font-semibold",children:r}),n&&jsxRuntime.jsx(le__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(le__namespace.Cancel,{className:o(Te({variant:"bordered"})),onClick:y,disabled:P,children:s}),jsxRuntime.jsx(le__namespace.Action,{className:o(Te(),fN({variant:c}),P&&"opacity-50 cursor-not-allowed"),onClick:f,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})]})]})]})]})});Os.displayName="ConfirmDialog";function bN(){let[e,t]=U__namespace.useState({open:false,options:null,resolve:null}),a=U__namespace.useCallback(l=>new Promise(d=>{t({open:true,options:l,resolve:d});}),[]),r=U__namespace.useCallback(()=>{e.resolve?.(true),t({open:false,options:null,resolve:null});},[e.resolve]),n=U__namespace.useCallback(()=>{e.resolve?.(false),t({open:false,options:null,resolve:null});},[e.resolve]),i=U__namespace.useCallback(l=>{l||(e.resolve?.(false),t({open:false,options:null,resolve:null}));},[e.resolve]),s=U__namespace.useMemo(()=>e.options?jsxRuntime.jsx(Os,{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:r,onCancel:n}):null,[e,r,n,i]);return {confirm:a,ConfirmDialog:s}}var SN=e=>e.map(t=>typeof t=="string"?{src:t}:t),Ws=U__namespace.forwardRef(({images:e,open:t,onOpenChange:a,initialIndex:r=0,onIndexChange:n,trigger:i,showThumbnails:s=true,showZoom:l=true,showRotate:d=true,showDownload:m=true,showFullscreen:u=true,showNavigation:c=true,showCounter:g=true,closeOnBackdropClick:p=true,className:v},N)=>{let b=U__namespace.useMemo(()=>SN(e),[e]),[h,w]=U__namespace.useState(r),[f,y]=U__namespace.useState(1),[P,x]=U__namespace.useState(0),[S,k]=U__namespace.useState(false),[M,R]=U__namespace.useState(false),[C,D]=U__namespace.useState({x:0,y:0}),[T,I]=U__namespace.useState({x:0,y:0}),L=U__namespace.useRef(null),V=b[h];U__namespace.useEffect(()=>{w(r);},[r]),U__namespace.useEffect(()=>{n?.(h);},[h,n]),U__namespace.useEffect(()=>{y(1),x(0),D({x:0,y:0});},[h]);let E=U__namespace.useCallback(()=>{w(G=>G>0?G-1:b.length-1);},[b.length]),A=U__namespace.useCallback(()=>{w(G=>G<b.length-1?G+1:0);},[b.length]),B=()=>{y(G=>Math.min(G+.5,4));},H=()=>{y(G=>{let ge=Math.max(G-.5,.5);return ge===1&&D({x:0,y:0}),ge});},Q=()=>{x(G=>(G+90)%360);},te=async()=>{if(V)try{let ge=await(await fetch(V.src)).blob(),to=URL.createObjectURL(ge),ao=document.createElement("a");ao.href=to,ao.download=V.alt||`image-${h+1}`,document.body.appendChild(ao),ao.click(),document.body.removeChild(ao),URL.revokeObjectURL(to);}catch{window.open(V.src,"_blank");}},J=async()=>{if(L.current)if(S)try{await document.exitFullscreen(),k(!1);}catch{}else try{await L.current.requestFullscreen(),k(!0);}catch{}},nt=G=>{f>1&&(R(true),I({x:G.clientX-C.x,y:G.clientY-C.y}));},z=G=>{M&&f>1&&D({x:G.clientX-T.x,y:G.clientY-T.y});},F=()=>{R(false);},ae=U__namespace.useCallback(G=>{switch(G.key){case "ArrowLeft":E();break;case "ArrowRight":A();break;case "Escape":a?.(false);break;case "+":case "=":B();break;case "-":H();break}},[E,A,a]);return U__namespace.useEffect(()=>{if(t)return window.addEventListener("keydown",ae),()=>window.removeEventListener("keydown",ae)},[t,ae]),U__namespace.useEffect(()=>{let G=()=>{k(!!document.fullscreenElement);};return document.addEventListener("fullscreenchange",G),()=>document.removeEventListener("fullscreenchange",G)},[]),b.length===0?null:jsxRuntime.jsxs(oe__namespace.Root,{open:t,onOpenChange:a,children:[i&&jsxRuntime.jsx(oe__namespace.Trigger,{asChild:true,children:i}),jsxRuntime.jsxs(oe__namespace.Portal,{children:[jsxRuntime.jsx(oe__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:G=>G.stopPropagation()}),jsxRuntime.jsxs(oe__namespace.Content,{ref:N,className:o("fixed inset-0 z-50 flex flex-col outline-none",v),onPointerDownOutside:p?void 0:G=>G.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:[g&&b.length>1&&jsxRuntime.jsxs("span",{className:"text-sm",children:[h+1," / ",b.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(f*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:Q,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:te,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:J,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:S?"Exit fullscreen":"Fullscreen",children:S?jsxRuntime.jsx(lucideReact.Minimize2,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Maximize2,{className:"h-5 w-5"})}),jsxRuntime.jsxs(oe__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:nt,onMouseMove:z,onMouseUp:F,onMouseLeave:F,children:[c&&b.length>1&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:E,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",M?"cursor-grabbing":f>1?"cursor-grab":""),style:{transform:`translate(${C.x}px, ${C.y}px) scale(${f}) rotate(${P}deg)`},draggable:false})]}),V?.description&&jsxRuntime.jsx("div",{className:"p-4 text-center text-white text-sm",children:V.description}),s&&b.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-2 p-4 overflow-x-auto",children:b.map((G,ge)=>jsxRuntime.jsx("button",{onClick:()=>w(ge),className:o("h-16 w-16 flex-shrink-0 overflow-hidden rounded border-2 transition-all",h===ge?"border-white opacity-100":"border-transparent opacity-50 hover:opacity-75"),children:jsxRuntime.jsx("img",{src:G.src,alt:G.alt||`Thumbnail ${ge+1}`,className:"h-full w-full object-cover"})},ge))})]})]})]})});Ws.displayName="ImageViewer";var Yf=({children:e,images:t,index:a=0,className:r})=>{let[n,i]=U__namespace.useState(false);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>i(true),className:o("cursor-zoom-in",r),children:e}),jsxRuntime.jsx(Ws,{images:t,open:n,onOpenChange:i,initialIndex:a})]})};Yf.displayName="ImageViewerTrigger";var qf=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"}}),Zf=U__namespace.forwardRef(({className:e,variant:t,size:a,iconSize:r,...n},i)=>{let l=r??{sm:14,md:16,lg:20}[a??"md"];return jsxRuntime.jsx("button",{ref:i,type:"button",className:o(qf({variant:t,size:a}),e),"aria-label":"Close",...n,children:jsxRuntime.jsx(lucideReact.X,{style:{width:l,height:l}})})});Zf.displayName="CloseButton";var Jf=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"}}),eg=U__namespace.forwardRef(({className:e,variant:t,size:a,color:r,radius:n,loading:i,disabled:s,children:l,...d},m)=>jsxRuntime.jsx("button",{ref:m,type:"button",className:o(Jf({variant:t,size:a,color:r,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}));eg.displayName="ActionIcon";var rg=({children:e,container:t,disabled:a=false})=>{let[r,n]=U__namespace.useState(false);if(U__namespace.useEffect(()=>{n(true);},[]),a||!r)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?reactDom.createPortal(e,i):jsxRuntime.jsx(jsxRuntime.Fragment,{children:e})};rg.displayName="Portal";var og=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}}),ng=U__namespace.forwardRef(({className:e,color:t,size:a,position:r,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(og({color:t,size:c?void 0:a,position:r,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(${r?.includes("right")?l:-l}px, ${r?.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]})});ng.displayName="Indicator";var ig=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o("relative inline-flex",e),...a,children:t}));ig.displayName="IndicatorWrapper";var lg=classVarianceAuthority.cva("relative overflow-auto",{variants:{orientation:{vertical:"",horizontal:"",both:""},size:{sm:"",md:"",lg:""}},defaultVariants:{orientation:"vertical",size:"md"}}),dg=U__namespace.forwardRef(({className:e,orientation:t,size:a,hideScrollbar:r=false,shadowColor:n="rgba(0, 0, 0, 0.1)",children:i,...s},l)=>{let d=U__namespace.useRef(null),[m,u]=U__namespace.useState({top:false,bottom:false,left:false,right:false});U__namespace.useImperativeHandle(l,()=>d.current);let c=U__namespace.useCallback(()=>{let h=d.current;if(!h)return;let{scrollTop:w,scrollLeft:f,scrollHeight:y,scrollWidth:P,clientHeight:x,clientWidth:S}=h;u({top:w>0,bottom:w<y-x-1,left:f>0,right:f<P-S-1});},[]);U__namespace.useEffect(()=>{let h=d.current;if(h)return c(),h.addEventListener("scroll",c),window.addEventListener("resize",c),()=>{h.removeEventListener("scroll",c),window.removeEventListener("resize",c);}},[c]);let p={sm:"20px",md:"40px",lg:"60px"}[a??"md"],v=t==="vertical"||t==="both",N=t==="horizontal"||t==="both",b={maskImage:[v&&m.top&&`linear-gradient(to bottom, transparent, black ${p})`,v&&m.bottom&&`linear-gradient(to top, transparent, black ${p})`,N&&m.left&&`linear-gradient(to right, transparent, black ${p})`,N&&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(lg({orientation:t,size:a}),r&&"scrollbar-hide [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",e),style:b,...s,children:i})});dg.displayName="ScrollShadow";var pg=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(mg__namespace.Root,{ref:a,className:o(e),...t}));pg.displayName="VisuallyHidden";var ug=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"}}),BN={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"},FN=e=>{let t=e.toLowerCase();return BN[t]||e.toUpperCase()},fg=U__namespace.forwardRef(({className:e,variant:t,size:a,keys:r,children:n,...i},s)=>{let l=()=>r?(Array.isArray(r)?r:[r]).map((m,u)=>jsxRuntime.jsxs(U__namespace.Fragment,{children:[u>0&&jsxRuntime.jsx("span",{className:"mx-0.5 text-muted-foreground",children:"+"}),jsxRuntime.jsx("span",{children:FN(m)})]},u)):n;return jsxRuntime.jsx("kbd",{ref:s,className:o(ug({variant:t,size:a}),e),...i,children:l()})});fg.displayName="Kbd";var bg=U__namespace.forwardRef(({className:e,size:t,axis:a="both",style:r,...n},i)=>{let s=typeof t=="number"?`${t}px`:t,l={...r,...t?{width:a==="vertical"?void 0:s,height:a==="horizontal"?void 0:s,minWidth:a==="vertical"?void 0:s,minHeight:a==="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})});bg.displayName="Spacer";var vg=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"}}),hg=U__namespace.forwardRef(({className:e,variant:t,size:a,value:r,successDuration:n=2e3,onCopySuccess:i,onCopyError:s,copyIcon:l,successIcon:d,...m},u)=>{let[c,g]=U__namespace.useState(false),p={sm:14,md:16,lg:20}[a??"md"],v=async()=>{try{await navigator.clipboard.writeText(r),g(!0),i?.(),setTimeout(()=>{g(!1);},n);}catch(N){s?.(N);}};return jsxRuntime.jsx("button",{ref:u,type:"button",className:o(vg({variant:t,size:a}),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}})})});hg.displayName="CopyButton";var yg=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"}}),jN=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],XN=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function qN(e,t,a){let r=new Date(e,t,1),n=new Date(e,t+1,0),i=[],s=r.getDay()-a;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 ZN(e,t){let a=[],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),a.push(l);}return a}function Xn(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function jn(e){return Xn(e,new Date)}function xg(e,t){return e.filter(a=>{let r=new Date(a.start),n=new Date(a.end);return Xn(r,t)||Xn(n,t)||r<t&&n>t})}var Rg=U__namespace.forwardRef(({className:e,variant:t,size:a,events:r=[],view:n="month",onViewChange:i,date:s,onDateChange:l,onEventClick:d,onSlotClick:m,weekStartsOn:u=0,locale:c="en-US",...g},p)=>{let[v,N]=U__namespace.useState(new Date),b=s??v,h=R=>{l?l(R):N(R);},w=u===1?XN:jN,f=()=>{let R=new Date(b);n==="month"?R.setMonth(R.getMonth()-1):n==="week"?R.setDate(R.getDate()-7):R.setDate(R.getDate()-1),h(R);},y=()=>{let R=new Date(b);n==="month"?R.setMonth(R.getMonth()+1):n==="week"?R.setDate(R.getDate()+7):R.setDate(R.getDate()+1),h(R);},P=()=>{h(new Date);},x=()=>n==="day"?b.toLocaleDateString(c,{weekday:"long",year:"numeric",month:"long",day:"numeric"}):b.toLocaleDateString(c,{year:"numeric",month:"long"}),S=()=>{let R=qN(b.getFullYear(),b.getMonth(),u);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col",children:[jsxRuntime.jsx("div",{className:"grid grid-cols-7 border-b",children:w.map(C=>jsxRuntime.jsx("div",{className:"p-2 text-center font-medium text-muted-foreground",children:C},C))}),jsxRuntime.jsx("div",{className:"flex-1 grid grid-cols-7 grid-rows-6",children:R.map((C,D)=>{let T=xg(r,C),I=C.getMonth()===b.getMonth();return jsxRuntime.jsxs("div",{className:o("min-h-[80px] border-b border-r p-1 cursor-pointer hover:bg-accent/50 transition-colors",!I&&"bg-muted/30"),onClick:()=>m?.(C),children:[jsxRuntime.jsx("div",{className:o("flex items-center justify-center w-7 h-7 rounded-full text-sm mb-1",jn(C)&&"bg-primary text-primary-foreground",!I&&"text-muted-foreground"),children:C.getDate()}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[T.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)),T.length>3&&jsxRuntime.jsxs("div",{className:"text-xs text-muted-foreground px-1",children:["+",T.length-3," more"]})]})]},D)})})]})},k=()=>{let R=ZN(b,u),C=Array.from({length:24},(D,T)=>T);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"}),R.map((D,T)=>jsxRuntime.jsxs("div",{className:o("p-2 text-center border-l",jn(D)&&"bg-primary/10"),children:[jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground",children:w[T]}),jsxRuntime.jsx("div",{className:o("text-lg font-semibold",jn(D)&&"text-primary"),children:D.getDate()})]},T))]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_repeat(7,1fr)]",children:C.map(D=>jsxRuntime.jsxs(U__namespace.Fragment,{children:[jsxRuntime.jsxs("div",{className:"h-12 text-xs text-muted-foreground text-right pr-2 pt-0 border-b",children:[D.toString().padStart(2,"0"),":00"]}),R.map((T,I)=>{let L=new Date(T);L.setHours(D,0,0,0);let V=r.filter(E=>{let A=new Date(E.start);return Xn(A,T)&&A.getHours()===D});return jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>m?.(L),children:V.map(E=>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:E.color||"hsl(var(--primary))",color:"white"},onClick:A=>{A.stopPropagation(),d?.(E);},children:E.title},E.id))},I)})]},D))})})]})},M=()=>{let R=Array.from({length:24},(D,T)=>T),C=xg(r,b);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",jn(b)&&"bg-primary text-primary-foreground"),children:b.getDate()})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_1fr]",children:R.map(D=>{let T=new Date(b);T.setHours(D,0,0,0);let I=C.filter(L=>new Date(L.start).getHours()===D);return jsxRuntime.jsxs(U__namespace.Fragment,{children:[jsxRuntime.jsxs("div",{className:"h-12 text-xs text-muted-foreground text-right pr-2 pt-0 border-b",children:[D.toString().padStart(2,"0"),":00"]}),jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>m?.(T),children:I.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))})]},D)})})})]})};return jsxRuntime.jsxs("div",{ref:p,className:o(yg({variant:t,size:a,className:e})),...g,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(O,{variant:"bordered",size:"sm",onClick:P,children:"Today"}),jsxRuntime.jsx(O,{variant:"ghost",size:"icon",onClick:f,children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx(O,{variant:"ghost",size:"icon",onClick:y,children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})}),jsxRuntime.jsx("h2",{className:"text-lg font-semibold ml-2",children:x()})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-1 border rounded-lg p-1",children:["month","week","day"].map(R=>jsxRuntime.jsx(O,{variant:n===R?"solid":"ghost",size:"sm",onClick:()=>i?.(R),children:R.charAt(0).toUpperCase()+R.slice(1)},R))})]}),n==="month"&&S(),n==="week"&&k(),n==="day"&&M()]})});Rg.displayName="FullCalendar";var Io=classVarianceAuthority.cva("w-full",{variants:{size:{sm:"h-48",md:"h-64",lg:"h-96"}},defaultVariants:{size:"md"}}),Eo=["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%))"],wg=U__namespace.forwardRef(({className:e,size:t,data:a,dataKeys:r,colors:n=Eo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",curveType:m="monotone",...u},c)=>jsxRuntime.jsx("div",{ref:c,className:o(Io({size:t,className:e})),...u,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.LineChart,{data:a,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,{}),r.map((g,p)=>jsxRuntime.jsx(recharts.Line,{type:m,dataKey:g,stroke:n[p%n.length],strokeWidth:2,dot:{fill:n[p%n.length],strokeWidth:0},activeDot:{r:6}},g))]})})}));wg.displayName="LineChart";var Ng=U__namespace.forwardRef(({className:e,size:t,data:a,dataKeys:r,colors:n=Eo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",stacked:m=false,layout:u="horizontal",...c},g)=>jsxRuntime.jsx("div",{ref:g,className:o(Io({size:t,className:e})),...c,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.BarChart,{data:a,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,{}),r.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))]})})}));Ng.displayName="BarChart";var Pg=U__namespace.forwardRef(({className:e,size:t,data:a,dataKey:r="value",nameKey:n="name",colors:i=Eo,innerRadius:s=0,outerRadius:l=80,showLegend:d=true,showTooltip:m=true,showLabels:u=false,...c},g)=>jsxRuntime.jsx("div",{ref:g,className:o(Io({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:a,dataKey:r,nameKey:n,cx:"50%",cy:"50%",innerRadius:s,outerRadius:l,label:u,labelLine:u,children:a.map((p,v)=>jsxRuntime.jsx(recharts.Cell,{fill:i[v%i.length]},`cell-${v}`))})]})})}));Pg.displayName="PieChart";var Cg=U__namespace.forwardRef(({className:e,size:t,data:a,dataKeys:r,colors:n=Eo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",stacked:m=false,curveType:u="monotone",...c},g)=>jsxRuntime.jsx("div",{ref:g,className:o(Io({size:t,className:e})),...c,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.AreaChart,{data:a,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,{}),r.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))]})})}));Cg.displayName="AreaChart";var Mg=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"}}),kg=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"}}),Zs=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 yP({card:e,columnId:t,variant:a,renderCard:r,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(Zs({variant:a,isDragging:u})),onClick:()=>n?.(e,t),...i,...s,children:r?r(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 RP({column:e,variant:t,renderCard:a,onCardClick:r,onAddCard:n,showAddCard:i,columnHeight:s}){return jsxRuntime.jsxs("div",{className:o(kg({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(O,{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(dt,{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(yP,{card:l,columnId:e.id,variant:t,renderCard:a,onCardClick:r},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 Dg=U__namespace.forwardRef(({className:e,variant:t,columns:a,onCardMove:r,onCardClick:n,onAddCard:i,renderCard:s,showAddCard:l=true,columnHeight:d=500,...m},u)=>{let[c,g]=U__namespace.useState(null),[p,v]=U__namespace.useState(null),N=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:8}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),b=y=>a.find(P=>P.cards.some(x=>x.id===y));return jsxRuntime.jsxs(core.DndContext,{sensors:N,collisionDetection:core.closestCorners,onDragStart:y=>{let{active:P}=y,x=b(P.id);if(x){let S=x.cards.find(k=>k.id===P.id);S&&(g(S),v(x.id));}},onDragOver:y=>{let{active:P,over:x}=y;if(!x)return;let S=P.id,k=x.id,M=b(S),R=b(k)||a.find(T=>T.id===k);if(!M||!R||M.id===R.id)return;let C=R.cards.findIndex(T=>T.id===k),D=C===-1?R.cards.length:C;r?.(S,M.id,R.id,D);},onDragEnd:y=>{let{active:P,over:x}=y;if(x&&P.id!==x.id){let S=b(P.id),k=b(x.id)||a.find(M=>M.id===x.id);if(S&&k){let M=k.cards.findIndex(C=>C.id===x.id),R=M===-1?k.cards.length:M;r?.(P.id,S.id,k.id,R);}}g(null),v(null);},children:[jsxRuntime.jsx("div",{ref:u,className:o(Mg({variant:t,className:e})),...m,children:a.map(y=>jsxRuntime.jsx(RP,{column:y,variant:t,renderCard:s,onCardClick:n,onAddCard:i,showAddCard:l,columnHeight:d},y.id))}),jsxRuntime.jsx(core.DragOverlay,{children:c&&p&&jsxRuntime.jsx("div",{className:o(Zs({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})]})]})})})]})});Dg.displayName="KanbanBoard";var Vg=classVarianceAuthority.cva("relative",{variants:{variant:{default:"",bordered:"border rounded-lg p-4",cards:"rounded-lg"}},defaultVariants:{variant:"default"}}),Lg=U__namespace.createContext(null);function Qs(){let e=U__namespace.useContext(Lg);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Ig=U__namespace.forwardRef(({className:e,variant:t,children:a,opts:r,plugins:n,orientation:i="horizontal",showArrows:s=true,showDots:l=true,setApi:d,...m},u)=>{let[c,g]=wP__default.default({...r,axis:i==="horizontal"?"x":"y"},n),[p,v]=U__namespace.useState(false),[N,b]=U__namespace.useState(false),[h,w]=U__namespace.useState(0),[f,y]=U__namespace.useState([]),P=U__namespace.useCallback(R=>{R&&(w(R.selectedScrollSnap()),v(R.canScrollPrev()),b(R.canScrollNext()));},[]),x=U__namespace.useCallback(()=>{g?.scrollPrev();},[g]),S=U__namespace.useCallback(()=>{g?.scrollNext();},[g]),k=U__namespace.useCallback(R=>{g?.scrollTo(R);},[g]),M=U__namespace.useCallback(R=>{R.key==="ArrowLeft"?(R.preventDefault(),x()):R.key==="ArrowRight"&&(R.preventDefault(),S());},[x,S]);return U__namespace.useEffect(()=>{!g||!d||d(g);},[g,d]),U__namespace.useEffect(()=>{if(g)return y(g.scrollSnapList()),P(g),g.on("reInit",P),g.on("select",P),()=>{g?.off("select",P);}},[g,P]),jsxRuntime.jsx(Lg.Provider,{value:{carouselRef:c,api:g,scrollPrev:x,scrollNext:S,canScrollPrev:p,canScrollNext:N,selectedIndex:h,scrollSnaps:f,scrollTo:k},children:jsxRuntime.jsxs("div",{ref:u,className:o(Vg({variant:t,className:e})),onKeyDownCapture:M,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:a})}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Js,{}),jsxRuntime.jsx(el,{})]}),l&&f.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-1.5 mt-4",children:f.map((R,C)=>jsxRuntime.jsx("button",{className:o("w-2 h-2 rounded-full transition-all",C===h?"bg-primary w-4":"bg-muted-foreground/30 hover:bg-muted-foreground/50"),onClick:()=>k(C),"aria-label":`Go to slide ${C+1}`},C))})]})})});Ig.displayName="Carousel";var Eg=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex",e),...t}));Eg.displayName="CarouselContent";var Hg=U__namespace.forwardRef(({className:e,basis:t="basis-full",...a},r)=>jsxRuntime.jsx("div",{ref:r,role:"group","aria-roledescription":"slide",className:o("min-w-0 shrink-0 grow-0 pl-4",t,e),...a}));Hg.displayName="CarouselItem";var Js=U__namespace.forwardRef(({className:e,variant:t="bordered",size:a="icon",...r},n)=>{let{scrollPrev:i,canScrollPrev:s}=Qs();return jsxRuntime.jsxs(O,{ref:n,variant:t,size:a,className:o("absolute left-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:i,...r,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Js.displayName="CarouselPrevious";var el=U__namespace.forwardRef(({className:e,variant:t="bordered",size:a="icon",...r},n)=>{let{scrollNext:i,canScrollNext:s}=Qs();return jsxRuntime.jsxs(O,{ref:n,variant:t,size:a,className:o("absolute right-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:i,...r,children:[jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Next slide"})]})});el.displayName="CarouselNext";var Ag=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"}}),ti={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"}},al={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}"]},zg=U__namespace.forwardRef(({className:e,size:t,onEmojiSelect:a,recentEmojis:r=[],defaultCategory:n="smileys",showSearch:i=true,showCategories:s=true,...l},d)=>{let[m,u]=U__namespace.useState(r.length>0?"recent":n),[c,g]=U__namespace.useState(""),v=c?Object.values(al).flat().filter(b=>b.toLowerCase().includes(c.toLowerCase())):m==="recent"?r:al[m]||[],N=b=>{a?.(b);};return jsxRuntime.jsxs("div",{ref:d,className:o(Ag({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(en,{placeholder:"Search emojis...",value:c,onChange:b=>g(b.target.value),className:"pl-8 h-8"})]})}),s&&!c&&jsxRuntime.jsx("div",{className:"flex border-b px-1",children:Object.entries(ti).map(([b,{icon:h}])=>b==="recent"&&r.length===0?null:jsxRuntime.jsx("button",{className:o("flex-1 p-2 text-lg hover:bg-accent rounded transition-colors",m===b&&"bg-accent"),onClick:()=>u(b),title:ti[b].name,children:h},b))}),!c&&jsxRuntime.jsx("div",{className:"px-3 py-1.5 text-xs font-medium text-muted-foreground",children:ti[m].name}),jsxRuntime.jsx(dt,{className:"flex-1",children:jsxRuntime.jsxs("div",{className:"grid grid-cols-8 gap-1 p-2",children:[v.map((b,h)=>jsxRuntime.jsx("button",{className:"w-8 h-8 flex items-center justify-center text-xl hover:bg-accent rounded transition-colors",onClick:()=>N(b),children:b},`${b}-${h}`)),v.length===0&&jsxRuntime.jsx("div",{className:"col-span-8 py-8 text-center text-muted-foreground text-sm",children:"No emojis found"})]})})]})});zg.displayName="EmojiPicker";var Bg=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"}}),eC=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"}}),tC=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"}}),Pe=({icon:e,title:t,isActive:a,onClick:r,disabled:n})=>jsxRuntime.jsxs(Oa,{children:[jsxRuntime.jsx(Ga,{asChild:true,children:jsxRuntime.jsx(O,{type:"button",variant:a?"solid":"ghost",size:"icon",className:"h-7 w-7",onClick:r,disabled:n,children:e})}),jsxRuntime.jsx(ca,{side:"top",className:"text-xs",children:t})]}),Fg=U__namespace.forwardRef(({className:e,variant:t,size:a,value:r="",onChange:n,placeholder:i="Start writing...",readOnly:s=false,showToolbar:l=true,minHeight:d,maxHeight:m,onEditorReady:u,...c},g)=>{let p=react.useEditor({extensions:[VP__default.default.configure({heading:{levels:[1,2,3]}}),LP__default.default.configure({openOnClick:false,HTMLAttributes:{class:"text-primary underline"}}),IP__default.default,EP__default.default.configure({types:["heading","paragraph"]}),HP__default.default.configure({placeholder:i})],content:r,editable:!s,onUpdate:({editor:N})=>{n?.(N.getHTML());},onCreate:({editor:N})=>{u?.(N);}});U__namespace.useEffect(()=>{p&&r!==p.getHTML()&&p.commands.setContent(r);},[r,p]),U__namespace.useEffect(()=>{p&&p.setEditable(!s);},[s,p]);let v=()=>{if(!p)return;let N=p.getAttributes("link").href,b=window.prompt("URL",N);if(b!==null){if(b===""){p.chain().focus().extendMarkRange("link").unsetLink().run();return}p.chain().focus().extendMarkRange("link").setLink({href:b}).run();}};return p?jsxRuntime.jsx(Fa,{children:jsxRuntime.jsxs("div",{ref:g,className:o(Bg({variant:t,size:a,className:e})),...c,children:[l&&!s&&jsxRuntime.jsxs("div",{className:o(eC({size:a})),children:[jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Undo,{className:"h-4 w-4"}),title:"Undo",onClick:()=>p.chain().focus().undo().run(),disabled:!p.can().undo()}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Redo,{className:"h-4 w-4"}),title:"Redo",onClick:()=>p.chain().focus().redo().run(),disabled:!p.can().redo()}),jsxRuntime.jsx(da,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Pe,{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(Pe,{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(Pe,{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(da,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Pe,{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(Pe,{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(Pe,{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(Pe,{icon:jsxRuntime.jsx(lucideReact.Strikethrough,{className:"h-4 w-4"}),title:"Strikethrough",isActive:p.isActive("strike"),onClick:()=>p.chain().focus().toggleStrike().run()}),jsxRuntime.jsx(da,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Pe,{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(Pe,{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(da,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Pe,{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(Pe,{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(Pe,{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(da,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Quote,{className:"h-4 w-4"}),title:"Blockquote",isActive:p.isActive("blockquote"),onClick:()=>p.chain().focus().toggleBlockquote().run()}),jsxRuntime.jsx(Pe,{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(da,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Link,{className:"h-4 w-4"}),title:"Insert Link",isActive:p.isActive("link"),onClick:v}),jsxRuntime.jsx(Pe,{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(tC({size:a})),style:{minHeight:d,maxHeight:m}})]})}):null});Fg.displayName="RichTextEditor";var Gg=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 dC(e,t,a){return aC.centerCrop(aC.makeAspectCrop({unit:"%",width:90},a,e,t),e,t)}async function Og(e,t,a=0,r=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=a*Math.PI/180,g=e.naturalWidth/2,p=e.naturalHeight/2;return i.save(),i.translate(-m,-u),i.translate(g,p),i.rotate(c),i.scale(r,r),i.translate(-g,-p),i.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.naturalWidth,e.naturalHeight),i.restore(),new Promise(v=>{n.toBlob(N=>{v(N);},"image/png");})}var Wg=U__namespace.forwardRef(({className:e,variant:t,src:a,aspectRatio:r,onCropChange:n,onCropComplete:i,showZoom:s=true,showRotation:l=true,minZoom:d=1,maxZoom:m=3,circularCrop:u=false,initialCrop:c,...g},p)=>{let v=U__namespace.useRef(null),[N,b]=U__namespace.useState(),[h,w]=U__namespace.useState(),[f,y]=U__namespace.useState(1),[P,x]=U__namespace.useState(0),S=C=>{let{width:D,height:T}=C.currentTarget;if(r){let I=dC(D,T,r);b(I);}else b(c||{unit:"%",x:10,y:10,width:80,height:80});},k=C=>{b(C),n?.(C);},M=async C=>{if(w(C),i&&v.current&&C.width&&C.height){let D=await Og(v.current,C,P,f);i(D);}},R=()=>{x(C=>(C+90)%360);};return U__namespace.useEffect(()=>{h&&v.current&&i&&Og(v.current,h,P,f).then(C=>{i(C);});},[f,P,h,i]),jsxRuntime.jsxs("div",{ref:p,className:o(Gg({variant:t,className:e})),...g,children:[jsxRuntime.jsx("div",{className:"flex-1 flex items-center justify-center p-4 bg-muted/30 min-h-[300px]",children:jsxRuntime.jsx(aC__default.default,{crop:N,onChange:k,onComplete:M,aspect:r,circularCrop:u,className:"max-h-[400px]",children:jsxRuntime.jsx("img",{ref:v,src:a,alt:"Crop preview",onLoad:S,style:{transform:`scale(${f}) 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(pn,{value:[f],onValueChange:([C])=>y(C),min:d,max:m,step:.1,className:"flex-1"}),jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-4 w-4 text-muted-foreground"})]}),l&&jsxRuntime.jsx(O,{variant:"bordered",size:"icon",onClick:R,children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-4 w-4"})})]})]})});Wg.displayName="ImageCropper";var il=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"}}),pC={sm:96,md:128,lg:192},_g=U__namespace.forwardRef(({className:e,variant:t,size:a,value:r,qrSize:n,fgColor:i="currentColor",bgColor:s="transparent",level:l="M",includeMargin:d=false,title:m,logo:u,logoSize:c=40,logoPadding:g=4,logoBackgroundColor:p="white",...v},N)=>{let b=n??pC[a??"md"];return r?jsxRuntime.jsx("div",{ref:N,className:o(il({variant:t,size:a,className:e})),...v,children:jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx(cC__default.default,{value:r,size:b,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:g,backgroundColor:p},children:jsxRuntime.jsx("img",{src:u,alt:"Logo",style:{width:c,height:c,objectFit:"contain"}})})]})}):jsxRuntime.jsx("div",{ref:N,className:o(il({variant:t,size:a,className:e})),...v,children:jsxRuntime.jsx("div",{className:"flex items-center justify-center bg-muted text-muted-foreground text-xs rounded",style:{width:b,height:b},children:"No data"})})});_g.displayName="QRCode";var Kg=({children:e,defaultTheme:t="system",storageKey:a="reever-ui-theme",enableSystem:r=true,disableTransitionOnChange:n=false,attribute:i="class",forcedTheme:s,themes:l=["light","dark"]})=>jsxRuntime.jsx(nextThemes.ThemeProvider,{defaultTheme:t,storageKey:a,enableSystem:r,disableTransitionOnChange:n,attribute:i,forcedTheme:s,themes:l,children:e});Kg.displayName="ThemeProvider";var xC=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"",ghost:""},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"ghost",size:"md"}}),Ug=U__namespace.forwardRef(({className:e,variant:t="ghost",size:a="md",mode:r="dropdown"},n)=>{let{theme:i,setTheme:s,resolvedTheme:l}=nextThemes.useTheme(),[d,m]=U__namespace.useState(false);U__namespace.useEffect(()=>{m(true);},[]);let u=()=>{let c=["light","dark","system"],p=(c.indexOf(i||"system")+1)%c.length;s(c[p]);};return d?r==="cycle"?jsxRuntime.jsxs(O,{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(Wa,{children:[jsxRuntime.jsx($a,{asChild:true,children:jsxRuntime.jsxs(O,{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(pa,{align:"end",children:[jsxRuntime.jsxs(xt,{onClick:()=>s("light"),children:[jsxRuntime.jsx(lucideReact.Sun,{className:"mr-2 h-4 w-4"}),"Light"]}),jsxRuntime.jsxs(xt,{onClick:()=>s("dark"),children:[jsxRuntime.jsx(lucideReact.Moon,{className:"mr-2 h-4 w-4"}),"Dark"]}),jsxRuntime.jsxs(xt,{onClick:()=>s("system"),children:[jsxRuntime.jsx(lucideReact.Monitor,{className:"mr-2 h-4 w-4"}),"System"]})]})]}):jsxRuntime.jsxs(O,{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"})]})});Ug.displayName="ThemeToggle";var jg=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),Xg=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}}),qg=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"}}),Zg=U__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,startContent:c,endContent:g,id:p,...v},N)=>{let b=U__namespace.useId(),h=p||b,w=`${h}-description`,f=`${h}-error`,y=i&&r;return jsxRuntime.jsxs("div",{className:o(jg({size:s}),e),children:[t&&jsxRuntime.jsxs(Oi__namespace.Root,{htmlFor:h,className:o(qg({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:N,id:h,"aria-invalid":i,"aria-describedby":y?f:a?w:void 0,"aria-required":n,className:o(Xg({size:s,isInvalid:i}),c&&"pl-10",g&&"pr-10",d),...v}),g&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:g})]}),a&&!y&&jsxRuntime.jsx("p",{id:w,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),y&&jsxRuntime.jsx("p",{id:f,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});Zg.displayName="TextField";var tb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),wC=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 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-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),Qg=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"}}),Jg=classVarianceAuthority.cva("",{variants:{size:{sm:"h-3 w-3",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),NC=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"}}),ab=U__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,min:c,max:g,step:p=1,value:v,defaultValue:N,onChange:b,showButtons:h=true,formatOptions:w,disabled:f,id:y,...P},x)=>{let S=U__namespace.useId(),k=y||S,M=`${k}-description`,R=`${k}-error`,[C,D]=U__namespace.useState(N),T=v!==void 0?v:C,I=i&&r,L=U__namespace.useCallback(J=>{J!==void 0&&(c!==void 0&&J<c&&(J=c),g!==void 0&&J>g&&(J=g)),v===void 0&&D(J),b?.(J);},[v,c,g,b]),V=()=>{let J=(T??0)+p;L(J);},E=()=>{let J=(T??0)-p;L(J);},A=J=>{let nt=J.target.value;if(nt==="")L(void 0);else {let z=parseFloat(nt);isNaN(z)||L(z);}},B=J=>{J.key==="ArrowUp"?(J.preventDefault(),V()):J.key==="ArrowDown"&&(J.preventDefault(),E());},H=U__namespace.useMemo(()=>T===void 0?"":w?new Intl.NumberFormat(void 0,w).format(T):T.toString(),[T,w]),Q=c!==void 0&&T!==void 0&&T<=c,te=g!==void 0&&T!==void 0&&T>=g;return jsxRuntime.jsxs("div",{className:o(tb({size:s}),e),children:[t&&jsxRuntime.jsxs(Oi__namespace.Root,{htmlFor:k,className:o(NC({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("button",{type:"button",onClick:E,disabled:f||Q,className:o(Qg({size:s}),"left-1"),tabIndex:-1,"aria-label":"Decrease value",children:jsxRuntime.jsx(lucideReact.Minus,{className:o(Jg({size:s}))})}),jsxRuntime.jsx("input",{ref:x,id:k,type:"text",inputMode:"decimal",value:H,onChange:A,onKeyDown:B,"aria-invalid":i,"aria-describedby":I?R:a?M:void 0,"aria-required":n,"aria-valuemin":c,"aria-valuemax":g,"aria-valuenow":T,disabled:f,className:o(wC({size:s,isInvalid:i}),!h&&"px-3",d),...P}),h&&jsxRuntime.jsx("button",{type:"button",onClick:V,disabled:f||te,className:o(Qg({size:s}),"right-1"),tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:o(Jg({size:s}))})})]}),a&&!I&&jsxRuntime.jsx("p",{id:M,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),I&&jsxRuntime.jsx("p",{id:R,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});ab.displayName="NumberField";var nb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),SC=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}}),rb=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"}}),TC=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"}}),MC=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"}}),ib=U__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:g="",onChange:p,onClear:v,onSearch:N,showClearButton:b=true,showSearchIcon:h=true,disabled:w,placeholder:f="Search...",id:y,...P},x)=>{let S=U__namespace.useId(),k=y||S,M=`${k}-description`,R=`${k}-error`,[C,D]=U__namespace.useState(g),T=c!==void 0?c:C,I=i&&r,L=T.length>0,V=B=>{let H=B.target.value;c===void 0&&D(H),p?.(H);},E=()=>{c===void 0&&D(""),p?.(""),v?.();},A=B=>{B.key==="Enter"?(B.preventDefault(),N?.(T)):B.key==="Escape"&&L&&(B.preventDefault(),E());};return jsxRuntime.jsxs("div",{className:o(nb({size:s}),e),children:[t&&jsxRuntime.jsxs(Oi__namespace.Root,{htmlFor:k,className:o(TC({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(lucideReact.Search,{className:o(rb({size:s}),"absolute left-3 top-1/2 -translate-y-1/2")}),jsxRuntime.jsx("input",{ref:x,id:k,type:"search",value:T,onChange:V,onKeyDown:A,placeholder:f,"aria-invalid":i,"aria-describedby":I?R:a?M:void 0,"aria-required":n,disabled:w,className:o(SC({size:s,isInvalid:i}),!h&&"pl-3",!b&&"pr-3",d),...P}),b&&L&&!w&&jsxRuntime.jsx("button",{type:"button",onClick:E,className:o(MC({size:s})),tabIndex:-1,"aria-label":"Clear search",children:jsxRuntime.jsx(lucideReact.X,{className:o(rb({size:s}))})})]}),a&&!I&&jsxRuntime.jsx("p",{id:M,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),I&&jsxRuntime.jsx("p",{id:R,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});ib.displayName="SearchField";var lb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),DC=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-3 py-1.5 text-xs",md:"h-10 pl-10 pr-3 py-2 text-sm",lg:"h-12 pl-12 pr-4 py-3 text-base"},isInvalid:{true:"border-danger focus-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),VC=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"}}),LC=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"}}),pl=(e,t="yyyy-MM-dd")=>{if(!e)return "";let a=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return t.replace("yyyy",String(a)).replace("MM",r).replace("dd",n)},IC=e=>{if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t},db=U__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:g,onChange:p,minDate:v,maxDate:N,dateFormat:b="yyyy-MM-dd",showIcon:h=true,disabled:w,id:f,...y},P)=>{let x=U__namespace.useId(),S=f||x,k=`${S}-description`,M=`${S}-error`,[R,C]=U__namespace.useState(g??null),D=c!==void 0?c:R,T=i&&r,I=A=>{let B=IC(A.target.value);c===void 0&&C(B),p?.(B);},L=D?pl(D,"yyyy-MM-dd"):"",V=v?pl(v,"yyyy-MM-dd"):void 0,E=N?pl(N,"yyyy-MM-dd"):void 0;return jsxRuntime.jsxs("div",{className:o(lb({size:s}),e),children:[t&&jsxRuntime.jsxs(Oi__namespace.Root,{htmlFor:S,className:o(LC({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(lucideReact.Calendar,{className:o(VC({size:s}),"absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none")}),jsxRuntime.jsx("input",{ref:P,id:S,type:"date",value:L,onChange:I,min:V,max:E,"aria-invalid":i,"aria-describedby":T?M:a?k:void 0,"aria-required":n,disabled:w,className:o(DC({size:s,isInvalid:i}),!h&&"pl-3",d),...y})]}),a&&!T&&jsxRuntime.jsx("p",{id:k,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),T&&jsxRuntime.jsx("p",{id:M,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});db.displayName="DateField";var mb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),HC=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-3 py-1.5 text-xs",md:"h-10 pl-10 pr-3 py-2 text-sm",lg:"h-12 pl-12 pr-4 py-3 text-base"},isInvalid:{true:"border-danger focus-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),AC=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"}}),zC=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"}}),fl=(e,t)=>{if(!e)return "";let a=String(e.hour).padStart(2,"0"),r=String(e.minute).padStart(2,"0");if(t&&e.second!==void 0){let n=String(e.second).padStart(2,"0");return `${a}:${r}:${n}`}return `${a}:${r}`},BC=(e,t)=>{if(!e)return null;let a=e.split(":");if(a.length<2)return null;let r=parseInt(a[0],10),n=parseInt(a[1],10),i=t&&a[2]?parseInt(a[2],10):void 0;return isNaN(r)||isNaN(n)?null:{hour:r,minute:n,second:i}},pb=U__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:g,onChange:p,minTime:v,maxTime:N,showSeconds:b=false,showIcon:h=true,hourCycle:w=24,disabled:f,id:y,...P},x)=>{let S=U__namespace.useId(),k=y||S,M=`${k}-description`,R=`${k}-error`,[C,D]=U__namespace.useState(g??null),T=c!==void 0?c:C,I=i&&r,L=B=>{let H=BC(B.target.value,b);c===void 0&&D(H),p?.(H);},V=fl(T,b),E=v?fl(v,b):void 0,A=N?fl(N,b):void 0;return jsxRuntime.jsxs("div",{className:o(mb({size:s}),e),children:[t&&jsxRuntime.jsxs(Oi__namespace.Root,{htmlFor:k,className:o(zC({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(lucideReact.Clock,{className:o(AC({size:s}),"absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none")}),jsxRuntime.jsx("input",{ref:x,id:k,type:"time",value:V,onChange:L,min:E,max:A,step:b?1:60,"aria-invalid":i,"aria-describedby":I?R:a?M:void 0,"aria-required":n,disabled:f,className:o(HC({size:s,isInvalid:i}),!h&&"pl-3",d),...P})]}),a&&!I&&jsxRuntime.jsx("p",{id:M,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),I&&jsxRuntime.jsx("p",{id:R,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});pb.displayName="TimeField";var gb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),FC=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 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-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),OC=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"}}),GC=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"}}),ub=e=>/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.test(e),WC=e=>(e.startsWith("#")||(e="#"+e),e.length===4&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),e.toUpperCase()),bb=U__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:g="#000000",onChange:p,showSwatch:v=true,showPicker:N=true,allowAlpha:b=false,disabled:h,id:w,...f},y)=>{let P=U__namespace.useId(),x=w||P,S=`${x}-picker`,k=`${x}-description`,M=`${x}-error`,[R,C]=U__namespace.useState(g),D=c!==void 0?c:R,T=i&&r,I=A=>{let B=A.target.value;B&&!B.startsWith("#")&&(B="#"+B),c===void 0&&C(B),p?.(B);},L=A=>{let B=A.target.value.toUpperCase();c===void 0&&C(B),p?.(B);},V=()=>{if(D&&ub(D)){let A=WC(D);A!==D&&(c===void 0&&C(A),p?.(A));}},E=ub(D)?D:"#000000";return jsxRuntime.jsxs("div",{className:o(gb({size:s}),e),children:[t&&jsxRuntime.jsxs(Oi__namespace.Root,{htmlFor:x,className:o(GC({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(OC({size:s})),children:N?jsxRuntime.jsxs("label",{htmlFor:S,className:"block h-full w-full cursor-pointer",children:[jsxRuntime.jsx("input",{id:S,type:"color",value:E,onChange:L,disabled:h,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0",tabIndex:-1}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:E}})]}):jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:E}})}),jsxRuntime.jsx("input",{ref:y,id:x,type:"text",value:D,onChange:I,onBlur:V,placeholder:"#000000",maxLength:b?9:7,"aria-invalid":i,"aria-describedby":T?M:a?k:void 0,"aria-required":n,disabled:h,className:o(FC({size:s,isInvalid:i}),!v&&"pl-3",d),...f})]}),a&&!T&&jsxRuntime.jsx("p",{id:k,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),T&&jsxRuntime.jsx("p",{id:M,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});bb.displayName="ColorField";var hb=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=U__namespace.createContext({});function _C(){return U__namespace.useContext(xb)}var yb=U__namespace.forwardRef(({className:e,variant:t,orientation:a,spacing:r,disabled:n,children:i,...s},l)=>jsxRuntime.jsx(xb.Provider,{value:{disabled:n},children:jsxRuntime.jsx("div",{ref:l,role:"group",className:o(hb({variant:t,orientation:a,spacing:r,className:e})),...s,children:i})}));yb.displayName="ButtonGroup";var wb=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"}}),Nb=U__namespace.forwardRef(({className:e,variant:t,size:a,radius:r,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"}[a??"md"];return jsxRuntime.jsx("button",{ref:d,type:"button",disabled:i||n,className:o(wb({variant:t,size:a,radius:r,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})})});Nb.displayName="IconButton";var Cb=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"}}),Sb=U__namespace.forwardRef(({className:e,variant:t,orientation:a,size:r,density:n,items:i,maxVisibleItems:s,isDisabled:l,onAction:d,showLabels:m=false,renderItem:u,...c},g)=>{let p=s&&s<i.length?i.slice(0,s):i,v=s&&s<i.length?i.slice(s):[],N={sm:"h-8 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-10 px-4 text-base"}[r??"md"],b={sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[r??"md"],h={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5"}[r??"md"],w=(y,P)=>{P&&P(),d&&d(y);},f=y=>jsxRuntime.jsxs("button",{type:"button",disabled:l||y.isDisabled,onClick:()=>w(y.key,y.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?N:b),"aria-label":y.label,children:[y.icon&&jsxRuntime.jsx("span",{className:h,children:y.icon}),m&&jsxRuntime.jsx("span",{children:y.label})]},y.key);return jsxRuntime.jsxs("div",{ref:g,role:"group",className:o(Cb({variant:t,orientation:a,size:r,density:n,className:e})),...c,children:[p.map(y=>u?u(y):f(y)),v.length>0&&jsxRuntime.jsxs(Wa,{children:[jsxRuntime.jsx($a,{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",b),"aria-label":"More actions",children:jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:h})})}),jsxRuntime.jsx(pa,{align:"end",children:v.map(y=>jsxRuntime.jsxs(xt,{disabled:y.isDisabled,onClick:()=>w(y.key,y.onPress),children:[y.icon&&jsxRuntime.jsx("span",{className:o(h,"mr-2"),children:y.icon}),y.label]},y.key))})]})]})});Sb.displayName="ActionGroup";var Db=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"}}),XC=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}}),Vb=U__namespace.forwardRef(({className:e,variant:t,size:a,pulse:r=false,hideLabel:n=false,children:i,...s},l)=>jsxRuntime.jsxs("span",{ref:l,role:"status",className:o(Db({variant:t,size:a,className:e})),...s,children:[jsxRuntime.jsx("span",{className:o(XC({size:a,pulse:r})),"aria-hidden":"true"}),!n&&i&&jsxRuntime.jsx("span",{className:"text-foreground",children:i})]}));Vb.displayName="StatusLight";var Ib=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"}}),ZC=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"}}),QC=classVarianceAuthority.cva("font-semibold text-foreground",{variants:{size:{sm:"text-base",md:"text-lg",lg:"text-xl"}},defaultVariants:{size:"md"}}),JC=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Eb=U__namespace.forwardRef(({className:e,size:t,illustration:a,heading:r,description:n,children:i,...s},l)=>jsxRuntime.jsxs("div",{ref:l,className:o(Ib({size:t,className:e})),...s,children:[a&&jsxRuntime.jsx("div",{className:o(ZC({size:t})),"aria-hidden":"true",children:a}),r&&jsxRuntime.jsx("h3",{className:o(QC({size:t})),children:r}),n&&jsxRuntime.jsx("p",{className:o(JC({size:t})),children:n}),i&&jsxRuntime.jsx("div",{className:"mt-2",children:i})]}));Eb.displayName="IllustratedMessage";var zb=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-yellow-200 bg-yellow-50 text-yellow-900 dark:border-yellow-800 dark:bg-yellow-950 dark:text-yellow-100 [&>svg]:text-yellow-600 dark:[&>svg]:text-yellow-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"}}),iS={info:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle,neutral:lucideReact.Info},Bb=U__namespace.forwardRef(({className:e,variant:t,title:a,icon:r,hideIcon:n=false,isDismissible:i=false,onDismiss:s,actions:l,children:d,...m},u)=>{let[c,g]=U__namespace.useState(true);if(!c)return null;let p=iS[t??"info"],v=()=>{g(false),s?.();};return jsxRuntime.jsxs("div",{ref:u,role:"alert",className:o(zb({variant:t,className:e})),...m,children:[!n&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r||jsxRuntime.jsx(p,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[a&&jsxRuntime.jsx("div",{className:"font-medium",children:a}),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"})})]})});Bb.displayName="InlineAlert";var Fb=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"}}),Ob=U__namespace.forwardRef(({className:e,position:t,size:a,selectedCount:r=0,isOpen:n=true,onClose:i,showClose:s=true,selectedText:l,children:d,...m},u)=>{if(!n||r===0)return null;let c=()=>typeof l=="function"?l(r):l||`${r} item${r>1?"s":""} selected`;return jsxRuntime.jsxs("div",{ref:u,role:"toolbar","aria-label":"Actions for selected items",className:o(Fb({position:t,size:a,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"})})]})]})});Ob.displayName="ActionBar";var Gb=U__namespace.forwardRef(({className:e,icon:t,children:a,...r},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),...r,children:[t&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:t}),a]}));Gb.displayName="ActionBarButton";var Wb=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 uS(e){return "items"in e}var $b=U__namespace.forwardRef(({items:e,align:t="end",side:a="bottom",iconOrientation:r="vertical",trigger:n,variant:i,size:s,onAction:l,"aria-label":d="More actions",triggerClassName:m,disabled:u},c)=>{let g={sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}[s??"md"],p=r==="horizontal"?lucideReact.MoreHorizontal:lucideReact.MoreVertical,v=b=>{b.onSelect?.(),l?.(b.key);},N=b=>jsxRuntime.jsxs(xt,{disabled:b.isDisabled,onClick:()=>v(b),className:o(b.isDestructive&&"text-destructive focus:text-destructive"),children:[b.icon&&jsxRuntime.jsx("span",{className:"mr-2 h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:b.icon}),jsxRuntime.jsx("span",{className:"flex-1",children:b.label}),b.shortcut&&jsxRuntime.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:b.shortcut})]},b.key);return jsxRuntime.jsxs(Wa,{children:[jsxRuntime.jsx($a,{asChild:true,children:n||jsxRuntime.jsx("button",{ref:c,type:"button",disabled:u,className:o(Wb({variant:i,size:s}),m),"aria-label":d,children:jsxRuntime.jsx(p,{className:g})})}),jsxRuntime.jsx(pa,{align:t,side:a,children:e.map((b,h)=>uS(b)?jsxRuntime.jsxs(U__namespace.Fragment,{children:[h>0&&jsxRuntime.jsx(ln,{}),b.items.map(N)]},b.key):N(b))})]})});$b.displayName="ActionMenu";var Ub=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"}}),Yb=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 jb({className:e,variant:t,size:a,items:r,selectedKeys:n,selectionMode:i="none",onSelectionChange:s,allowsDragging:l=false,onReorder:d,showCheckbox:m=false,renderItem:u,emptyContent:c,...g}){let[p,v]=U__namespace.useState(new Set),[N,b]=U__namespace.useState(null),[h,w]=U__namespace.useState(null),f=U__namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):p,[n,p]),y=k=>{if(i==="none")return;let M;i==="single"?M=f.has(k)?new Set:new Set([k]):(M=new Set(f),M.has(k)?M.delete(k):M.add(k)),n||v(M),s?.(M);},P=(k,M)=>{b(M),k.dataTransfer.effectAllowed="move";},x=(k,M)=>{k.preventDefault(),N!==M&&w(M);},S=()=>{if(N&&h&&N!==h){let k=r.findIndex(D=>D.key===N),M=r.findIndex(D=>D.key===h),R=[...r],[C]=R.splice(k,1);R.splice(M,0,C),d?.(R);}b(null),w(null);};return r.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(Ub({variant:t,size:a,className:e})),...g,children:r.map(k=>{let M=f.has(k.key),R=N===k.key,C=h===k.key;return u?jsxRuntime.jsx("div",{role:"option","aria-selected":M,onClick:()=>y(k.key),children:u(k,M)},k.key):jsxRuntime.jsxs("div",{role:"option","aria-selected":M,"aria-disabled":k.isDisabled,draggable:l&&!k.isDisabled,onDragStart:D=>P(D,k.key),onDragOver:D=>x(D,k.key),onDragEnd:S,onClick:()=>!k.isDisabled&&y(k.key),className:o(Yb({variant:t,size:a,isSelected:M,isDisabled:k.isDisabled}),R&&"opacity-50",C&&"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",M?"bg-primary border-primary text-primary-foreground":"border-input"),children:M&&jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),k.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 text-muted-foreground [&>svg]:h-full [&>svg]:w-full",children:k.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:k.label}),k.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:k.description})]})]},k.key)})})}jb.displayName="ListView";var qb=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"}}),bS=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"}}),Xb=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"}}),Zb=U__namespace.forwardRef(({className:e,orientation:t="horizontal",size:a,value:r,defaultValue:n=[25,75],onValueChange:i,onValueCommit:s,showLabels:l=false,formatLabel:d=b=>String(b),trackColor:m="primary",min:u=0,max:c=100,step:g=1,disabled:p,...v},N)=>{let[b,h]=U__namespace.useState(n),w=r??b,f=x=>{let S=x;r||h(S),i?.(S);},y=x=>{s?.(x);},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(w[0])}),jsxRuntime.jsx("span",{children:d(w[1])})]}),jsxRuntime.jsxs(zt__namespace.Root,{ref:N,value:w,onValueChange:f,onValueCommit:y,min:u,max:c,step:g,disabled:p,orientation:t??"horizontal",className:o(qb({orientation:t,size:a,className:e})),...v,children:[jsxRuntime.jsx(zt__namespace.Track,{className:o(bS({orientation:t,size:a})),children:jsxRuntime.jsx(zt__namespace.Range,{className:o("absolute rounded-full",P,{"h-full":t==="horizontal","w-full":t==="vertical"})})}),jsxRuntime.jsx(zt__namespace.Thumb,{className:o(Xb({size:a}))}),jsxRuntime.jsx(zt__namespace.Thumb,{className:o(Xb({size:a}))})]})]})});Zb.displayName="RangeSlider";var ev=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"}}),yS=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"}}),RS={help:lucideReact.HelpCircle,info:lucideReact.Info,warning:lucideReact.AlertCircle},tv=U__namespace.forwardRef(({variant:e="help",size:t,title:a,children:r,trigger:n,side:i="top",align:s="center",open:l,onOpenChange:d,learnMoreUrl:m,learnMoreText:u="Learn more",triggerClassName:c,contentClassName:g},p)=>{let v=RS[e??"help"];return jsxRuntime.jsxs(st__namespace.Root,{open:l,onOpenChange:d,children:[jsxRuntime.jsx(st__namespace.Trigger,{asChild:true,children:n||jsxRuntime.jsx("button",{ref:p,type:"button",className:o(ev({variant:e,size:t}),c),"aria-label":"Help",children:jsxRuntime.jsx(v,{className:"h-full w-full"})})}),jsxRuntime.jsx(st__namespace.Portal,{children:jsxRuntime.jsxs(st__namespace.Content,{side:i,align:s,sideOffset:8,className:o(yS({size:t}),g),children:[a&&jsxRuntime.jsx("div",{className:"mb-2 font-semibold text-foreground",children:a}),jsxRuntime.jsx("div",{className:"text-muted-foreground",children:r}),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(st__namespace.Arrow,{className:"fill-popover"})]})})]})});tv.displayName="ContextualHelp";var rv=classVarianceAuthority.cva("flex flex-wrap",{variants:{spacing:{sm:"gap-1",md:"gap-2",lg:"gap-3"}},defaultVariants:{spacing:"md"}}),wl=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 ov({className:e,spacing:t,variant:a,size:r,items:n,selectedKeys:i,selectionMode:s="none",onSelectionChange:l,allowsRemoving:d=false,onRemove:m,label:u,description:c,errorMessage:g,maxTags:p,...v}){let[N,b]=U__namespace.useState(new Set),h=U__namespace.useMemo(()=>i?i instanceof Set?i:new Set(i):N,[i,N]),w=x=>{if(s==="none")return;let S;s==="single"?S=h.has(x)?new Set:new Set([x]):(S=new Set(h),S.has(x)?S.delete(x):S.add(x)),i||b(S),l?.(S);},f=(x,S)=>{S.stopPropagation(),m?.(x);},y=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(rv({spacing:t}),e),...v,children:[y.map(x=>{let S=h.has(x.key),k=s!=="none";return jsxRuntime.jsxs("span",{role:k?"button":void 0,tabIndex:k&&!x.isDisabled?0:void 0,"aria-pressed":k?S:void 0,onClick:()=>!x.isDisabled&&w(x.key),onKeyDown:M=>{(M.key==="Enter"||M.key===" ")&&!x.isDisabled&&(M.preventDefault(),w(x.key));},style:x.color?{backgroundColor:x.color}:void 0,className:o(wl({variant:x.color?void 0:a,size:r,isSelected:S,isDisabled:x.isDisabled}),k&&!x.isDisabled&&"cursor-pointer hover:opacity-80",x.color&&"text-white"),children:[x.icon&&jsxRuntime.jsx("span",{className:"h-3.5 w-3.5 [&>svg]:h-full [&>svg]:w-full",children:x.icon}),x.label,d&&!x.isDisabled&&jsxRuntime.jsx("button",{type:"button",onClick:M=>f(x.key,M),className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${x.label}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},x.key)}),P>0&&jsxRuntime.jsxs("span",{className:o(wl({variant:"surface",size:r}),"cursor-default"),children:["+",P," more"]})]}),g&&jsxRuntime.jsx("span",{className:"text-sm text-destructive",children:g})]})}ov.displayName="TagGroup";var sv=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"}}),lv=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 dv({className:e,columns:t,gap:a,items:r,selectedKeys:n,selectionMode:i="none",onSelectionChange:s,showSelectionIndicator:l=true,itemVariant:d="default",itemSize:m="md",renderItem:u,emptyContent:c,...g}){let[p,v]=U__namespace.useState(new Set),N=U__namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):p,[n,p]),b=h=>{if(i==="none")return;let w;i==="single"?w=N.has(h)?new Set:new Set([h]):(w=new Set(N),w.has(h)?w.delete(h):w.add(h)),n||v(w),s?.(w);};return r.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(sv({columns:t,gap:a,className:e})),...g,children:r.map(h=>{let w=N.has(h.key);return u?jsxRuntime.jsx("div",{role:"gridcell","aria-selected":w,onClick:()=>b(h.key),children:u(h,w)},h.key):jsxRuntime.jsxs("div",{role:"gridcell","aria-selected":w,"aria-disabled":h.isDisabled,onClick:()=>!h.isDisabled&&b(h.key),className:o(lv({variant:d,size:m,isSelected:w,isDisabled:h.isDisabled})),children:[l&&i!=="none"&&w&&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"})}),h.thumbnail&&jsxRuntime.jsx("div",{className:"mb-2 aspect-square w-full overflow-hidden rounded-md bg-muted",children:h.thumbnail}),jsxRuntime.jsxs("div",{className:"min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:h.label}),h.description&&jsxRuntime.jsx("div",{className:"mt-1 truncate text-sm text-muted-foreground",children:h.description})]})]},h.key)})})}dv.displayName="GridList";var mv=classVarianceAuthority.cva("relative w-full",{variants:{size:{sm:"h-1.5",md:"h-2",lg:"h-3"}},defaultVariants:{size:"md"}}),PS=classVarianceAuthority.cva("w-full h-full rounded-full overflow-hidden",{variants:{variant:{default:"bg-secondary",subtle:"bg-muted"}},defaultVariants:{variant:"default"}}),CS=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}}),xi=U__namespace.forwardRef(({className:e,size:t,value:a,min:r=0,max:n=100,optimum:i,low:s,high:l,label:d,showValueLabel:m=false,formatValue:u,color:c="primary",trackVariant:g="default",...p},v)=>{let N=Math.min(100,Math.max(0,(a-r)/(n-r)*100)),b=()=>{if(c!=="auto")return "";let w=(a-r)/(n-r),f=s!==void 0?(s-r)/(n-r):.25,y=l!==void 0?(l-r)/(n-r):.75;return (i!==void 0?(i-r)/(n-r):1)>=.5?w<=f?"bg-red-500":w<=y?"bg-yellow-500":"bg-green-500":w>=y?"bg-red-500":w>=f?"bg-yellow-500":"bg-green-500"},h=u?u(a,N):`${Math.round(N)}%`;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:h})]}),jsxRuntime.jsx("div",{role:"meter","aria-valuenow":a,"aria-valuemin":r,"aria-valuemax":n,"aria-label":d,className:o(mv({size:t})),children:jsxRuntime.jsx("div",{className:o(PS({variant:g})),children:jsxRuntime.jsx("div",{className:o(CS({color:c==="auto"?void 0:c,rounded:N>=100}),c==="auto"&&b()),style:{width:`${N}%`}})})})]})});xi.displayName="Meter";var pv=U__namespace.forwardRef((e,t)=>jsxRuntime.jsx(xi,{ref:t,color:"auto",low:50,high:80,optimum:0,...e}));pv.displayName="DiskUsageMeter";var uv=U__namespace.forwardRef((e,t)=>jsxRuntime.jsx(xi,{ref:t,color:"auto",low:20,high:50,optimum:100,...e}));uv.displayName="BatteryMeter";var gv=classVarianceAuthority.cva("flex flex-wrap",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2"},layout:{wrap:"flex-wrap",grid:"grid"}},defaultVariants:{size:"md",layout:"wrap"}}),bv=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"],vv=["#f8fafc","#f1f5f9","#e2e8f0","#cbd5e1","#94a3b8","#64748b","#475569","#334155","#1e293b","#0f172a","#fef2f2","#fee2e2","#fecaca","#fca5a5","#f87171","#ef4444","#dc2626","#b91c1c","#991b1b","#7f1d1d","#fff7ed","#ffedd5","#fed7aa","#fdba74","#fb923c","#f97316","#ea580c","#c2410c","#9a3412","#7c2d12","#fefce8","#fef9c3","#fef08a","#fde047","#facc15","#eab308","#ca8a04","#a16207","#854d0e","#713f12","#f0fdf4","#dcfce7","#bbf7d0","#86efac","#4ade80","#22c55e","#16a34a","#15803d","#166534","#14532d","#eff6ff","#dbeafe","#bfdbfe","#93c5fd","#60a5fa","#3b82f6","#2563eb","#1d4ed8","#1e40af","#1e3a8a","#faf5ff","#f3e8ff","#e9d5ff","#d8b4fe","#c084fc","#a855f7","#9333ea","#7e22ce","#6b21a8","#581c87","#fdf2f8","#fce7f3","#fbcfe8","#f9a8d4","#f472b6","#ec4899","#db2777","#be185d","#9d174d","#831843"],hv=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],xv=U__namespace.forwardRef(({value:e,defaultValue:t,onChange:a,colors:r="default",customColors:n,size:i,layout:s,swatchSize:l="md",swatchShape:d="square",columns:m,disabled:u,showSelection:c=true,className:g,...p},v)=>{let[N,b]=U__namespace.useState(t),h=e!==void 0?e:N,f=(()=>{if(n)return n;if(Array.isArray(r))return r;switch(r){case "tailwind":return vv;case "material":return hv;default:return bv}})(),y=x=>{u||(e===void 0&&b(x),a?.(x));},P=s==="grid"&&m?{gridTemplateColumns:`repeat(${m}, 1fr)`}:{};return jsxRuntime.jsx("div",{ref:v,role:"listbox","aria-label":"Color palette",className:o(gv({size:i,layout:s}),g),style:P,...p,children:f.map((x,S)=>jsxRuntime.jsx(Tr,{color:x,size:l,shape:d,isSelected:c&&h?.toLowerCase()===x.toLowerCase(),onSelect:y,disabled:u,role:"option","aria-selected":h?.toLowerCase()===x.toLowerCase()},`${x}-${S}`))})});xv.displayName="ColorSwatchPicker";var yv=classVarianceAuthority.cva("relative rounded-md border border-input 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"}},defaultVariants:{size:"md"}}),wi=(e,t,a)=>{let r=n=>{let i=(n+e/60)%6;return a-a*t*Math.max(Math.min(i,4-i,1),0)};return [Math.round(r(5)*255),Math.round(r(3)*255),Math.round(r(1)*255)]},Rv=(e,t,a)=>{e/=255,t/=255,a/=255;let r=Math.max(e,t,a),n=Math.min(e,t,a),i=r-n,s=0,l=r===0?0:i/r,d=r;if(i!==0)switch(r){case e:s=((t-a)/i+(t<a?6:0))*60;break;case t:s=((a-e)/i+2)*60;break;case a:s=((e-t)/i+4)*60;break}return [s,l,d]},wv=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},Nv=(e,t,a)=>"#"+[e,t,a].map(r=>r.toString(16).padStart(2,"0")).join(""),Pv=U__namespace.forwardRef(({hue:e,saturation:t,brightness:a,value:r,defaultValue:n="#ff0000",onChange:i,onColorChange:s,size:l,disabled:d,thumbSize:m=16,className:u,...c},g)=>{let p=U__namespace.useRef(null),[v,N]=U__namespace.useState(false),b=U__namespace.useCallback(H=>{let Q=wv(H);return Q?Rv(...Q):[0,1,1]},[]),[h,w]=U__namespace.useState(()=>b(r||n)),f=e??h[0],y=t??h[1],P=a??h[2];U__namespace.useEffect(()=>{if(r){let H=b(r);w(H);}},[r,b]);let x=U__namespace.useCallback((H,Q)=>{if(d||!p.current)return;let te=p.current.getBoundingClientRect(),J=Math.max(0,Math.min(1,(H-te.left)/te.width)),nt=Math.max(0,Math.min(1,(Q-te.top)/te.height)),z=J,F=1-nt;t===void 0&&a===void 0&&w([f,z,F]),i?.({hue:f,saturation:z,brightness:F});let ae=wi(f,z,F);s?.(Nv(...ae));},[d,f,t,a,i,s]),S=H=>{d||(H.preventDefault(),N(true),H.target.setPointerCapture(H.pointerId),x(H.clientX,H.clientY));},k=H=>{v&&x(H.clientX,H.clientY);},M=H=>{N(false),H.target.releasePointerCapture(H.pointerId);},[R,C,D]=wi(f,1,1),T=`rgb(${R}, ${C}, ${D})`,I=y*100,L=(1-P)*100,[V,E,A]=wi(f,y,P),B=`rgb(${V}, ${E}, ${A})`;return jsxRuntime.jsx("div",{ref:g,className:o(yv({size:l}),d&&"cursor-not-allowed opacity-50",u),...c,children:jsxRuntime.jsxs("div",{ref:p,className:"absolute inset-0",style:{backgroundColor:T},onPointerDown:S,onPointerMove:k,onPointerUp:M,onPointerLeave:M,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 shadow-md pointer-events-none",style:{width:m,height:m,left:`calc(${I}% - ${m/2}px)`,top:`calc(${L}% - ${m/2}px)`,backgroundColor:B,boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});Pv.displayName="ColorArea";var Sv=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"}}),DS=`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")`,Cv="linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)",Tv=U__namespace.forwardRef(({value:e,defaultValue:t,onChange:a,channel:r="hue",baseColor:n="#ff0000",orientation:i,size:s,disabled:l,thumbSize:d=18,showBorder:m=true,className:u,...c},g)=>{let p=U__namespace.useRef(null),[v,N]=U__namespace.useState(false),b=()=>{switch(r){case "hue":return 0;case "alpha":case "saturation":case "brightness":return 1;default:return 0}},[h,w]=U__namespace.useState(t??b()),f=e??h,y=r==="hue"?f/360:f,P=U__namespace.useCallback((T,I)=>{if(l||!p.current)return;let L=p.current.getBoundingClientRect(),V=i!=="vertical",E;V?E=Math.max(0,Math.min(1,(T-L.left)/L.width)):E=Math.max(0,Math.min(1,1-(I-L.top)/L.height));let A=r==="hue"?E*360:E;e===void 0&&w(A),a?.(A);},[l,i,r,e,a]),x=T=>{l||(T.preventDefault(),N(true),T.target.setPointerCapture(T.pointerId),P(T.clientX,T.clientY));},S=T=>{v&&P(T.clientX,T.clientY);},k=T=>{N(false),T.target.releasePointerCapture(T.pointerId);},M=()=>{let T=i!=="vertical",I=T?"to right":"to top";switch(r){case "hue":return T?Cv:"linear-gradient(to top, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)";case "alpha":return `linear-gradient(${I}, transparent, ${n})`;case "saturation":return `linear-gradient(${I}, #808080, ${n})`;case "brightness":return `linear-gradient(${I}, #000000, ${n})`;default:return Cv}},R=()=>r==="hue"?`hsl(${f}, 100%, 50%)`:n,C=i!=="vertical",D=y*100;return jsxRuntime.jsx("div",{ref:g,className:o(Sv({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:r==="alpha"?DS:void 0,backgroundSize:r==="alpha"?"8px 8px":void 0},onPointerDown:x,onPointerMove:S,onPointerUp:k,onPointerLeave:k,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 rounded-full",style:{background:M()}}),jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:d,height:d,...C?{left:`calc(${D}% - ${d/2}px)`,top:"50%",transform:"translateY(-50%)"}:{bottom:`calc(${D}% - ${d/2}px)`,left:"50%",transform:"translateX(-50%)"},backgroundColor:R(),boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});Tv.displayName="ColorSlider";var Mv=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"}}),IS=(e,t,a)=>{let r=e-a,n=t-a,i=Math.atan2(n,r)*180/Math.PI+90;return i<0&&(i+=360),i},kv=U__namespace.forwardRef(({value:e,defaultValue:t=0,onChange:a,size:r,disabled:n,innerRadius:i=.6,thumbSize:s=20,showCenter:l=true,className:d,...m},u)=>{let c=U__namespace.useRef(null),[g,p]=U__namespace.useState(false),[v,N]=U__namespace.useState(t),b=e??v,h=U__namespace.useCallback((x,S)=>{if(n||!c.current)return;let k=c.current.getBoundingClientRect(),M=k.width/2,R=x-k.left,C=S-k.top,D=IS(R,C,M);e===void 0&&N(D),a?.(D);},[n,e,a]),w=x=>{n||(x.preventDefault(),p(true),x.target.setPointerCapture(x.pointerId),h(x.clientX,x.clientY));},f=x=>{g&&h(x.clientX,x.clientY);},y=x=>{p(false),x.target.releasePointerCapture(x.pointerId);},P=()=>{let x=[];for(let S=0;S<=360;S+=30)x.push(`hsl(${S}, 100%, 50%) ${S}deg`);return `conic-gradient(from 270deg, ${x.join(", ")})`};return jsxRuntime.jsx("div",{ref:u,className:o(Mv({size:r}),n&&"cursor-not-allowed opacity-50",d),...m,children:jsxRuntime.jsxs("div",{ref:c,className:"absolute inset-0 rounded-full",style:{background:P()},onPointerDown:w,onPointerMove:f,onPointerUp:y,onPointerLeave:y,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(ES,{hue:b,innerRadius:i,thumbSize:s})]})})});kv.displayName="ColorWheel";var ES=({hue:e,innerRadius:t,thumbSize:a})=>{let r=(1-(1-t)/2)*50,n=(e-90)*Math.PI/180,i=50+r*Math.cos(n),s=50+r*Math.sin(n);return jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:a,height:a,left:`calc(${i}% - ${a/2}px)`,top:`calc(${s}% - ${a/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 Dv=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}}),_o=U__namespace.forwardRef(({className:e,direction:t,align:a,justify:r,wrap:n,gap:i,inline:s,as:l="div",...d},m)=>jsxRuntime.jsx(l,{ref:m,className:o(Dv({direction:t,align:a,justify:r,wrap:n,gap:i,inline:s,className:e})),...d}));_o.displayName="Flex";var Vv=U__namespace.forwardRef(({gap:e=2,align:t="center",...a},r)=>jsxRuntime.jsx(_o,{ref:r,direction:"row",gap:e,align:t,...a}));Vv.displayName="HStack";var Lv=U__namespace.forwardRef(({gap:e=2,align:t="stretch",...a},r)=>jsxRuntime.jsx(_o,{ref:r,direction:"column",gap:e,align:t,...a}));Lv.displayName="VStack";var Iv=U__namespace.forwardRef((e,t)=>jsxRuntime.jsx(_o,{ref:t,align:"center",justify:"center",...e}));Iv.displayName="Center";var Hv=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"}}),Pi=U__namespace.forwardRef(({className:e,columns:t,rows:a,gap:r,gapX:n,gapY:i,flow:s,align:l,justify:d,placeItems:m,as:u="div",minChildWidth:c,style:g,...p},v)=>{let N=c?{...g,gridTemplateColumns:`repeat(auto-fill, minmax(${c}, 1fr))`}:g;return jsxRuntime.jsx(u,{ref:v,className:o(Hv({columns:c?void 0:t,rows:a,gap:r,gapX:n,gapY:i,flow:s,align:l,justify:d,placeItems:m,className:e})),style:N,...p})});Pi.displayName="Grid";var Av=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"}}}),zv=U__namespace.forwardRef(({className:e,colSpan:t,rowSpan:a,colStart:r,colEnd:n,rowStart:i,rowEnd:s,as:l="div",...d},m)=>jsxRuntime.jsx(l,{ref:m,className:o(Av({colSpan:t,rowSpan:a,colStart:r,colEnd:n,rowStart:i,rowEnd:s,className:e})),...d}));zv.displayName="GridItem";var Bv=U__namespace.forwardRef(({columns:e=2,className:t,...a},r)=>{if(typeof e=="number")return jsxRuntime.jsx(Pi,{ref:r,columns:e,className:t,...a});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(Pi,{ref:r,columns:1,className:o(n,t),...a})});Bv.displayName="SimpleGrid";var Ov=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"}}),Gv=U__namespace.forwardRef(({className:e,variant:t,size:a,radius:r,as:n="div",...i},s)=>jsxRuntime.jsx(n,{ref:s,className:o(Ov({variant:t,size:a,radius:r,className:e})),...i}));Gv.displayName="Well";var $v=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"}}),FS=classVarianceAuthority.cva("text-muted-foreground font-medium",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),OS=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}}),_v=U__namespace.forwardRef(({className:e,orientation:t,size:a,align:r,label:n,value:i,valueWeight:s,mono:l,labelWidth:d,labelClassName:m,valueClassName:u,showColon:c=false,copyable:g=false,onCopy:p,...v},N)=>{let b=async()=>{if(!(!g||i===null||i===void 0))try{let h=typeof i=="string"?i:String(i);await navigator.clipboard.writeText(h),p?.();}catch{}};return jsxRuntime.jsxs("div",{ref:N,className:o($v({orientation:t,size:a,align:r,className:e})),...v,children:[jsxRuntime.jsxs("span",{className:o(FS({size:a}),m),style:d?{width:d,flexShrink:0}:void 0,children:[n,c&&":"]}),jsxRuntime.jsx("span",{className:o(OS({size:a,weight:s,mono:l}),g&&"cursor-pointer hover:bg-accent/50 rounded px-1 -mx-1 transition-colors",u),onClick:g?b:void 0,role:g?"button":void 0,tabIndex:g?0:void 0,onKeyDown:g?h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),b());}:void 0,children:i})]})});_v.displayName="LabeledValue";var Kv=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"}}),Uv=U__namespace.forwardRef(({className:e,orientation:t,gap:a,...r},n)=>jsxRuntime.jsx("div",{ref:n,className:o(Kv({orientation:t,gap:a,className:e})),...r}));Uv.displayName="LabeledValueGroup";var qv=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"}}),Yr=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"}}),Zv=U__namespace.forwardRef(({value:e,defaultValue:t="",onChange:a,onSearch:r,onSelect:n,suggestions:i=[],recentSearches:s=[],onClearRecentSearches:l,trendingSearches:d=[],isLoading:m,showClear:u=true,showIcon:c=true,popoverWidth:g="trigger",emptyMessage:p="No results found",size:v,variant:N,className:b,placeholder:h="Search...",disabled:w,...f},y)=>{let[P,x]=U__namespace.useState(false),[S,k]=U__namespace.useState(t),M=e!==void 0?e:S,R=U__namespace.useRef(null);U__namespace.useImperativeHandle(y,()=>R.current);let C=M.length>0,D=P&&(i.length>0||s.length>0||d.length>0||C),T=H=>{e===void 0&&k(H),a?.(H);},I=()=>{T(""),R.current?.focus();},L=H=>{H?.preventDefault(),M.trim()&&(r?.(M.trim()),x(false));},V=H=>{T(H.label),n?.(H),x(false);},E=H=>{T(H),r?.(H),x(false);},A=H=>{T(H),r?.(H),x(false);},B=U__namespace.useMemo(()=>{let H={};return i.forEach(Q=>{let te=Q.category||"Results";H[te]||(H[te]=[]),H[te].push(Q);}),H},[i]);return jsxRuntime.jsxs(ve,{open:D,onOpenChange:x,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs("form",{onSubmit:L,className:o(qv({size:v,variant:N}),b),children:[c&&jsxRuntime.jsx(lucideReact.Search,{className:o(Yr({size:v}),"ml-3")}),jsxRuntime.jsx("input",{ref:R,type:"text",value:M,onChange:H=>T(H.target.value),onFocus:()=>x(true),placeholder:h,disabled:w,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"),...f}),u&&C&&!w&&jsxRuntime.jsx("button",{type:"button",onClick:I,className:o("mr-2 rounded-sm p-1 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",Yr({size:v})),children:jsxRuntime.jsx(lucideReact.X,{className:"h-full w-full"})})]})}),jsxRuntime.jsx(ue,{className:"p-0",style:{width:g==="trigger"?"var(--radix-popover-trigger-width)":g},align:"start",onOpenAutoFocus:H=>H.preventDefault(),children:jsxRuntime.jsxs(cmdk.Command,{className:"rounded-lg border-0",children:[s.length>0&&!C&&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,Q)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>E(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(Yr({size:v}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:H}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:o(Yr({size:v}),"opacity-0 group-hover:opacity-100")})]},Q))]}),d.length>0&&!C&&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,Q)=>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(Yr({size:v}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:H})]},Q))]}),C&&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,Q])=>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})}),Q.map(te=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>V(te),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[te.icon||jsxRuntime.jsx(lucideReact.Search,{className:o(Yr({size:v}))}),jsxRuntime.jsxs("div",{className:"flex-1 text-left",children:[jsxRuntime.jsx("div",{className:"truncate",children:te.label}),te.description&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:te.description})]})]},te.id))]},H)):jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:p})})]})})]})});Zv.displayName="SearchBar";var Qv={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"})},Jv=U__namespace.forwardRef(({open:e,onOpenChange:t,items:a=[],recentItems:r=[],placeholder:n="Search...",isLoading:i,emptyMessage:s="No results found.",filter:l,shortcut:d="\u2318K",onSelect:m,footer:u},c)=>{let[g,p]=U__namespace.useState(""),v=U__namespace.useRef(null);U__namespace.useEffect(()=>{e||p("");},[e]);let N=U__namespace.useMemo(()=>{let f={};return a.forEach(y=>{let P=y.category||"Results";f[P]||(f[P]=[]),f[P].push(y);}),f},[a]),b=f=>{f.onSelect?.(),m?.(f),t?.(false);},h=g.length>0,w=!h&&r.length>0;return jsxRuntime.jsx(oe__namespace.Root,{open:e,onOpenChange:t,children:jsxRuntime.jsxs(oe__namespace.Portal,{children:[jsxRuntime.jsx(oe__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(oe__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:g,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"}),g&&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:[w&&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"}),r.map(f=>jsxRuntime.jsxs(cmdk.Command.Item,{value:f.label,onSelect:()=>b(f),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:f.icon||Qv[f.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:f.label}),f.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:f.description})]}),f.shortcut&&jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:f.shortcut.map((y,P)=>jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-medium",children:y},P))})]},f.id))]}),h&&Object.entries(N).map(([f,y])=>jsxRuntime.jsxs(cmdk.Command.Group,{heading:f,children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:f}),y.map(P=>jsxRuntime.jsxs(cmdk.Command.Item,{value:`${P.label} ${P.keywords?.join(" ")||""}`,onSelect:()=>b(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||Qv[f]||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))]},f)),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"]})]})]})})]})})});Jv.displayName="SpotlightSearch";function JS(e="k"){let[t,a]=U__namespace.useState(false);return U__namespace.useEffect(()=>{let r=n=>{(n.metaKey||n.ctrlKey)&&n.key===e&&(n.preventDefault(),a(i=>!i));};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[e]),{open:t,setOpen:a,toggle:()=>a(r=>!r)}}var sT=classVarianceAuthority.cva("",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),lT={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"},dT=e=>{let t=typeof e=="string"?new Date(e):e,r=new Date().getTime()-t.getTime(),n=Math.floor(r/6e4),i=Math.floor(r/36e5),s=Math.floor(r/864e5);return n<1?"Just now":n<60?`${n}m ago`:i<24?`${i}h ago`:s<7?`${s}d ago`:t.toLocaleDateString()},eh=U__namespace.forwardRef(({notifications:e=[],onNotificationClick:t,onMarkAsRead:a,onMarkAllAsRead:r,onDismiss:n,onClearAll:i,showSettings:s,onSettingsClick:l,trigger:d,align:m="end",emptyMessage:u="No notifications",maxHeight:c=400,className:g},p)=>{let[v,N]=U__namespace.useState(false),b=e.filter(f=>!f.read).length,h=e.length>0,w=f=>{f.read||a?.(f.id),t?.(f);};return jsxRuntime.jsxs(ve,{open:v,onOpenChange:N,children:[jsxRuntime.jsx(Re,{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",g),children:[jsxRuntime.jsx(lucideReact.Bell,{className:"h-5 w-5"}),b>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:b>99?"99+":b})]})}),jsxRuntime.jsxs(ue,{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"}),b>0&&jsxRuntime.jsxs(ro,{size:"sm",children:[b," new"]})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[h&&r&&b>0&&jsxRuntime.jsx("button",{type:"button",onClick:r,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"})}),h&&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"})})]})]}),h?jsxRuntime.jsx(dt,{style:{maxHeight:c},children:jsxRuntime.jsx("div",{className:"divide-y",children:e.map(f=>jsxRuntime.jsxs("div",{className:o("group relative flex gap-3 px-4 py-3 transition-colors hover:bg-muted/50",!f.read&&"bg-muted/30"),children:[jsxRuntime.jsx("div",{className:o("flex h-9 w-9 shrink-0 items-center justify-center rounded-full",f.avatar?"overflow-hidden":lT[f.type||"default"]),children:f.avatar?jsxRuntime.jsx("img",{src:f.avatar,alt:"",className:"h-full w-full object-cover"}):f.icon?f.icon:jsxRuntime.jsx(lucideReact.Bell,{className:"h-4 w-4"})}),jsxRuntime.jsxs("button",{type:"button",onClick:()=>w(f),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",!f.read&&"font-medium"),children:f.title}),!f.read&&jsxRuntime.jsx("span",{className:"mt-1.5 h-2 w-2 shrink-0 rounded-full bg-primary"})]}),f.description&&jsxRuntime.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground line-clamp-2",children:f.description}),jsxRuntime.jsx("p",{className:"mt-1 text-[10px] text-muted-foreground",children:dT(f.timestamp)})]}),jsxRuntime.jsxs("div",{className:"absolute right-2 top-2 flex gap-1 opacity-0 transition-opacity group-hover:opacity-100",children:[!f.read&&a&&jsxRuntime.jsx("button",{type:"button",onClick:y=>{y.stopPropagation(),a(f.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||f.onDismiss)&&jsxRuntime.jsx("button",{type:"button",onClick:y=>{y.stopPropagation(),f.onDismiss?.(),n?.(f.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"})})]})]},f.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})]})]})]})});eh.displayName="NotificationCenter";var ah=classVarianceAuthority.cva("relative flex items-center justify-center gap-3 px-4 py-2.5 text-sm",{variants:{variant:{default:"bg-muted text-foreground",primary:"bg-primary text-primary-foreground",info:"bg-blue-500 text-white",success:"bg-green-500 text-white",warning:"bg-yellow-500 text-black",danger:"bg-red-500 text-white",gradient:"bg-gradient-to-r from-primary via-purple-500 to-pink-500 text-white"},position:{top:"fixed top-0 left-0 right-0 z-50",relative:"relative"}},defaultVariants:{variant:"default",position:"relative"}}),bT={default:lucideReact.Megaphone,primary:lucideReact.Megaphone,info:lucideReact.Info,success:lucideReact.CheckCircle,warning:lucideReact.AlertTriangle,danger:lucideReact.XCircle,gradient:lucideReact.Megaphone},rh=U__namespace.forwardRef(({message:e,showIcon:t=true,icon:a,dismissible:r=true,onDismiss:n,action:i,variant:s="default",position:l,animate:d,autoDismiss:m,storageKey:u,className:c,...g},p)=>{let[v,N]=U__namespace.useState(true),[b,h]=U__namespace.useState(false);U__namespace.useEffect(()=>{u&&localStorage.getItem(`banner-${u}`)==="true"&&N(false);},[u]),U__namespace.useEffect(()=>{if(m&&v){let y=setTimeout(()=>{w();},m);return ()=>clearTimeout(y)}},[m,v]);let w=()=>{h(true),setTimeout(()=>{N(false),u&&localStorage.setItem(`banner-${u}`,"true"),n?.();},200);};if(!v)return null;let f=a?null:bT[s||"default"];return jsxRuntime.jsxs("div",{ref:p,className:o(ah({variant:s,position:l}),d&&"animate-pulse",b&&"animate-out fade-out slide-out-to-top duration-200",c),role:"banner",...g,children:[t&&jsxRuntime.jsx("span",{className:"shrink-0",children:a||f&&jsxRuntime.jsx(f,{className:"h-4 w-4"})}),jsxRuntime.jsx("span",{className:"text-center font-medium",children:e}),i&&(i.href?jsxRuntime.jsxs("a",{href:i.href,className:"group inline-flex shrink-0 items-center gap-1 font-semibold underline-offset-4 hover:underline",children:[i.label,jsxRuntime.jsx(lucideReact.ArrowRight,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]}):jsxRuntime.jsxs("button",{type:"button",onClick:i.onClick,className:"group inline-flex shrink-0 items-center gap-1 font-semibold underline-offset-4 hover:underline",children:[i.label,jsxRuntime.jsx(lucideReact.ArrowRight,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]})),r&&jsxRuntime.jsx("button",{type:"button",onClick:w,className:o("absolute right-2 top-1/2 -translate-y-1/2 rounded-sm p-1 transition-opacity hover:opacity-70",l==="relative"&&"right-4"),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})});rh.displayName="AnnouncementBanner";var Ko=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"}}),hT=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"}}),Vl=U__namespace.forwardRef(({icon:e,label:t="Action button",extended:a,extendedLabel:r,actions:n,direction:i="up",showTooltip:s=true,closeIcon:l,animation:d="rotate",variant:m,size:u,position:c,className:g,onClick:p,disabled:v,...N},b)=>{let[h,w]=U__namespace.useState(false),f=n&&n.length>0,y=M=>{f&&w(!h),p?.(M);},P=M=>{M.onClick?.(),w(false);},x={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"}},S=d==="rotate"&&h?"rotate-45":"",k=d==="scale"&&h?"scale-0":"scale-100";return jsxRuntime.jsxs("div",{className:o("z-50",c!=="relative"&&c&&Ko({position:c})),children:[f&&h&&jsxRuntime.jsx("div",{className:o("absolute flex items-center gap-2",x[i].container),children:n.map((M,R)=>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:`${R*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:M.label}),M.href?jsxRuntime.jsx("a",{href:M.href,className:o(Ko({variant:M.variant||"secondary",size:u==="lg"?"md":"sm"})),"aria-label":M.label,children:M.icon}):jsxRuntime.jsx("button",{type:"button",onClick:()=>P(M),className:o(Ko({variant:M.variant||"secondary",size:u==="lg"?"md":"sm"})),"aria-label":M.label,children:M.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:M.label})]},M.id))}),jsxRuntime.jsxs("button",{ref:b,type:"button",onClick:y,disabled:v,className:o(Ko({variant:m,size:u,position:"relative"}),a&&"px-6 gap-2",g),"aria-label":t,"aria-expanded":f?h:void 0,...N,children:[h&&l?l:jsxRuntime.jsx("span",{className:o(hT({size:u}),S,k,"transition-all duration-200"),children:e||jsxRuntime.jsx(lucideReact.Plus,{})}),a&&r&&jsxRuntime.jsx("span",{className:"font-medium",children:r})]}),f&&h&&jsxRuntime.jsx("div",{className:"fixed inset-0 -z-10",onClick:()=>w(false)})]})});Vl.displayName="FloatingActionButton";var xT=Vl;var ih=classVarianceAuthority.cva("fixed bottom-0 left-0 right-0 z-50 flex items-center justify-around border-t bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/80 safe-area-inset-bottom",{variants:{variant:{default:"border-border",elevated:"border-transparent shadow-lg",filled:"border-transparent bg-primary text-primary-foreground"},size:{sm:"h-14",md:"h-16",lg:"h-20"}},defaultVariants:{variant:"default",size:"md"}}),yT=classVarianceAuthority.cva("flex flex-1 flex-col items-center justify-center gap-1 transition-colors",{variants:{variant:{default:"text-muted-foreground hover:text-foreground",elevated:"text-muted-foreground hover:text-foreground",filled:"text-primary-foreground/70 hover:text-primary-foreground"},size:{sm:"py-1.5",md:"py-2",lg:"py-3"},isActive:{true:"",false:""}},compoundVariants:[{variant:"default",isActive:true,className:"text-primary"},{variant:"elevated",isActive:true,className:"text-primary"},{variant:"filled",isActive:true,className:"text-primary-foreground"}],defaultVariants:{variant:"default",size:"md",isActive:false}}),RT=classVarianceAuthority.cva("transition-transform",{variants:{size:{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-7 w-7"},isActive:{true:"scale-110",false:""}},defaultVariants:{size:"md",isActive:false}}),wT=classVarianceAuthority.cva("font-medium transition-opacity",{variants:{size:{sm:"text-[10px]",md:"text-xs",lg:"text-sm"},showLabel:{always:"opacity-100",active:"",never:"sr-only"},isActive:{true:"",false:""}},compoundVariants:[{showLabel:"active",isActive:true,className:"opacity-100"},{showLabel:"active",isActive:false,className:"opacity-0 h-0"}],defaultVariants:{size:"md",showLabel:"always",isActive:false}}),sh=U__namespace.forwardRef(({className:e,variant:t,size:a,items:r,activeKey:n,defaultActiveKey:i,onChange:s,showLabels:l="always",hideOnScroll:d=false,...m},u)=>{let[c,g]=U__namespace.useState(i??r[0]?.key),[p,v]=U__namespace.useState(true),N=U__namespace.useRef(0),b=n??c;U__namespace.useEffect(()=>{if(!d)return;let w=()=>{let f=window.scrollY,y=f>N.current,P=f<N.current;y&&f>100?v(false):P&&v(true),N.current=f;};return window.addEventListener("scroll",w,{passive:true}),()=>window.removeEventListener("scroll",w)},[d]);let h=w=>{n===void 0&&g(w.key),s?.(w.key),w.onClick?.();};return jsxRuntime.jsx("nav",{ref:u,role:"navigation","aria-label":"Bottom navigation",className:o(ih({variant:t,size:a,className:e}),"transition-transform duration-300",!p&&"translate-y-full"),...m,children:r.map(w=>{let f=b===w.key,y=f&&w.activeIcon?w.activeIcon:w.icon,P=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{className:"relative",children:[jsxRuntime.jsx("span",{className:o(RT({size:a,isActive:f})),children:y}),w.badge!==void 0&&jsxRuntime.jsx("span",{className:"absolute -right-2 -top-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-destructive px-1 text-[10px] font-medium text-destructive-foreground",children:typeof w.badge=="number"&&w.badge>99?"99+":w.badge})]}),jsxRuntime.jsx("span",{className:o(wT({size:a,showLabel:l,isActive:f})),children:w.label})]}),x=o(yT({variant:t,size:a,isActive:f}));return w.href?jsxRuntime.jsx("a",{href:w.href,className:x,"aria-current":f?"page":void 0,onClick:()=>h(w),children:P},w.key):jsxRuntime.jsx("button",{type:"button",className:x,"aria-current":f?"page":void 0,onClick:()=>h(w),children:P},w.key)})})});sh.displayName="BottomNavigation";var ch=classVarianceAuthority.cva("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[20px] border-t bg-background",{variants:{size:{sm:"max-h-[50vh]",md:"max-h-[70vh]",lg:"max-h-[85vh]",full:"max-h-[100vh] rounded-t-none"}},defaultVariants:{size:"md"}}),mh=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"}}),ph=U__namespace.forwardRef(({open:e,onOpenChange:t,trigger:a,title:r,description:n,items:i,cancelLabel:s="Cancel",onCancel:l,showCancel:d=true,children:m,size:u,closeOnSelect:c=true,onAction:g},p)=>{let v=b=>{b.isDisabled||(b.onSelect?.(),g?.(b.key),c&&t?.(false));},N=()=>{l?.(),t?.(false);};return jsxRuntime.jsxs(vaul.Drawer.Root,{open:e,onOpenChange:t,children:[a&&jsxRuntime.jsx(vaul.Drawer.Trigger,{asChild:true,children:a}),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:p,className:o(ch({size:u})),children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-1.5 w-12 flex-shrink-0 rounded-full bg-muted"}),(r||n)&&jsxRuntime.jsxs("div",{className:"px-4 py-3 text-center",children:[r&&jsxRuntime.jsx(vaul.Drawer.Title,{className:"text-base font-semibold",children:r}),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",children:i?.map(b=>jsxRuntime.jsxs("button",{type:"button",disabled:b.isDisabled,onClick:()=>v(b),className:o(mh({variant:b.isDestructive?"destructive":"default"})),children:[b.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 flex-shrink-0 [&>svg]:h-full [&>svg]:w-full",children:b.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"font-medium",children:b.label}),b.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:b.description})]})]},b.key))})}),d&&jsxRuntime.jsx("div",{className:"border-t p-2 pb-safe",children:jsxRuntime.jsx("button",{type:"button",onClick:N,className:"w-full rounded-lg bg-muted py-3.5 text-center font-semibold transition-colors hover:bg-muted/80",children:s})})]})]})]})});ph.displayName="ActionSheet";var fh=classVarianceAuthority.cva("relative overflow-hidden touch-pan-y",{variants:{variant:{default:"",card:"rounded-lg border bg-card"}},defaultVariants:{variant:"default"}}),Il=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"}}),gh=U__namespace.forwardRef(({className:e,variant:t,leftActions:a=[],rightActions:r=[],actionSize:n="md",threshold:i=.3,onSwipeEnd:s,disabled:l=false,fullSwipeAction:d,children:m,...u},c)=>{let g=U__namespace.useRef(null),[p,v]=U__namespace.useState(0),[N,b]=U__namespace.useState(false),h=U__namespace.useRef(0),w=U__namespace.useRef(0),f=a.length*(n==="sm"?64:n==="lg"?96:80),y=r.length*(n==="sm"?64:n==="lg"?96:80),P=R=>{l||(b(true),h.current=R.touches[0].clientX,w.current=p);},x=R=>{if(!N||l)return;let D=R.touches[0].clientX-h.current,T=w.current+D;(T>0&&a.length===0||T<0&&r.length===0)&&(T=0),T>f?T=f+(T-f)*.3:T<-y&&(T=-y+(T+y)*.3),v(T);},S=()=>{if(!N)return;b(false);let R=g.current?.offsetWidth||0,C=Math.abs(p)/R;if(d&&C>.6){d==="right"&&p>0&&a[0]?(a[0].onAction?.(),s?.("right",a[0].key)):d==="left"&&p<0&&r[0]&&(r[0].onAction?.(),s?.("left",r[0].key)),v(0);return}p>f*i&&a.length>0?(v(f),s?.("right")):p<-y*i&&r.length>0?(v(-y),s?.("left")):v(0);},k=(R,C)=>{R.onAction?.(),s?.(C,R.key),v(0);},M=()=>{v(0);};return jsxRuntime.jsxs("div",{ref:c,className:o(fh({variant:t,className:e})),...u,children:[a.length>0&&jsxRuntime.jsx("div",{className:"absolute left-0 top-0 bottom-0 flex",style:{width:f},children:a.map(R=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>k(R,"right"),className:o(Il({variant:R.variant,size:n})),style:{opacity:Math.min(1,p/f)},children:[R.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:R.icon}),!R.icon&&R.label]},R.key))}),r.length>0&&jsxRuntime.jsx("div",{className:"absolute right-0 top-0 bottom-0 flex",style:{width:y},children:r.map(R=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>k(R,"left"),className:o(Il({variant:R.variant,size:n})),style:{opacity:Math.min(1,Math.abs(p)/y)},children:[R.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:R.icon}),!R.icon&&R.label]},R.key))}),jsxRuntime.jsx("div",{ref:g,className:o("relative bg-background",N?"":"transition-transform duration-200"),style:{transform:`translateX(${p}px)`},onTouchStart:P,onTouchMove:x,onTouchEnd:S,onClick:p!==0?M:void 0,children:m})]})});gh.displayName="SwipeActions";var vh=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"}}),hh=U__namespace.forwardRef(({className:e,variant:t,onRefresh:a,pullThreshold:r=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:g,...p},v)=>{let N=U__namespace.useRef(null),[b,h]=U__namespace.useState(0),[w,f]=U__namespace.useState("idle"),y=U__namespace.useRef(0),P=U__namespace.useRef(false),x=()=>d||w==="refreshing"?false:(N.current?.scrollTop??window.scrollY)<=0,S=D=>{x()&&(y.current=D.touches[0].clientY,P.current=true);},k=D=>{if(!P.current||!x())return;let I=D.touches[0].clientY-y.current;if(I<0){h(0),f("idle");return}let V=Math.min(I*.5,n);h(V),f(V>=r?"ready":"pulling");},M=async()=>{if(P.current)if(P.current=false,w==="ready"){f("refreshing"),h(r*.6);try{await a();}finally{f("idle"),h(0);}}else f("idle"),h(0);},R={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}[l],C=()=>{if(w==="refreshing")return i||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:o(R,"animate-spin text-primary")}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:c})]});let D=Math.min(b/r*180,180);return s||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.ArrowDown,{className:o(R,"text-muted-foreground transition-transform"),style:{transform:`rotate(${D}deg)`}}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:w==="ready"?u:m})]})};return jsxRuntime.jsxs("div",{ref:v,className:o(vh({variant:t,className:e})),...p,children:[jsxRuntime.jsx("div",{className:o(ST({size:l}),"z-10",w==="idle"&&b===0&&"opacity-0"),style:{top:Math.max(b-60,-60),opacity:Math.min(b/(r*.5),1)},children:C()}),jsxRuntime.jsx("div",{ref:N,className:o("transition-transform duration-200",w==="refreshing"&&"ease-out"),style:{transform:`translateY(${b}px)`,transition:P.current?"none":void 0},onTouchStart:S,onTouchMove:k,onTouchEnd:M,children:g})]})});hh.displayName="PullToRefresh";var yh=classVarianceAuthority.cva("flex min-h-screen w-full",{variants:{layout:{default:"flex-col",sidebar:"flex-row"}},defaultVariants:{layout:"default"}}),Rh=U__namespace.forwardRef(({className:e,layout:t="default",header:a,footer:r,sidebar:n,aside:i,sidebarCollapsed:s=false,sidebarWidth:l="16rem",sidebarCollapsedWidth:d="4rem",asideWidth:m="16rem",fixed:u=false,children:c,...g},p)=>{let v=s?d:l;return jsxRuntime.jsxs("div",{ref:p,className:o(yh({layout:t}),e),style:{"--app-shell-sidebar-width":v,"--app-shell-aside-width":m},...g,children:[a&&jsxRuntime.jsx(Hl,{fixed:u,hasSidebar:!!n,children:a}),jsxRuntime.jsxs("div",{className:"flex flex-1",children:[n&&jsxRuntime.jsx(Al,{collapsed:s,fixed:u,children:n}),jsxRuntime.jsx("main",{className:o("flex-1 flex flex-col min-h-0",u&&a&&"pt-14",u&&r&&"pb-14"),children:c}),i&&jsxRuntime.jsx(zl,{fixed:u,children:i})]}),r&&jsxRuntime.jsx(Bl,{fixed:u,hasSidebar:!!n,children:r})]})});Rh.displayName="AppShell";var Hl=U__namespace.forwardRef(({className:e,fixed:t,hasSidebar:a,children:r,...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&&a&&"left-[var(--app-shell-sidebar-width)]",t&&!a&&"left-0",e),...n,children:r}));Hl.displayName="AppShellHeader";var Al=U__namespace.forwardRef(({className:e,collapsed:t,fixed:a,children:r,...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",a&&"fixed left-0 top-0 bottom-0 z-50",e),"data-collapsed":t,...n,children:r}));Al.displayName="AppShellSidebar";var zl=U__namespace.forwardRef(({className:e,fixed:t,children:a,...r},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),...r,children:a}));zl.displayName="AppShellAside";var Bl=U__namespace.forwardRef(({className:e,fixed:t,hasSidebar:a,children:r,...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&&a&&"left-[var(--app-shell-sidebar-width)]",t&&!a&&"left-0",e),...n,children:r}));Bl.displayName="AppShellFooter";var wh=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex-1 overflow-auto p-4",e),...t}));wh.displayName="AppShellMain";var Ph=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"}}),Ch=U__namespace.forwardRef(({className:e,variant:t,navigation:a,logo:r,userMenu:n,headerActions:i,breadcrumb:s,defaultCollapsed:l=false,collapsed:d,onCollapsedChange:m,children:u,...c},g)=>{let[p,v]=U__namespace.useState(l),[N,b]=U__namespace.useState(false),h=d??p,w=U__namespace.useCallback(f=>{v(f),m?.(f);},[m]);return jsxRuntime.jsxs("div",{ref:g,className:o(Ph({variant:t}),e),...c,children:[jsxRuntime.jsxs("aside",{"data-slot":"sidebar","data-collapsed":h,className:o("hidden lg:flex flex-col fixed inset-y-0 left-0 z-50 bg-background transition-[width] duration-200",h?"w-16":"w-64"),children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:r}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:a}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]}),jsxRuntime.jsx(po,{open:N,onOpenChange:b,children:jsxRuntime.jsxs(gr,{side:"left",className:"w-64 p-0",children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:r}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:a}),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",h?"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(O,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:()=>b(true),children:[jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle menu"})]}),jsxRuntime.jsxs(O,{variant:"ghost",size:"icon",className:"hidden lg:flex",onClick:()=>w(!h),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})]})]})});Ch.displayName="DashboardLayout";var Sh=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("space-y-6",e),...t}));Sh.displayName="DashboardPage";var Th=U__namespace.forwardRef(({className:e,title:t,description:a,actions:r,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}),a&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:a}),n]}),r&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:r})]}));Th.displayName="DashboardPageHeader";var Mh=U__namespace.forwardRef(({className:e,columns:t=4,...a},r)=>jsxRuntime.jsx("div",{ref:r,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),...a}));Mh.displayName="DashboardGrid";var Vi=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"}}),kh=U__namespace.forwardRef(({className:e,variant:t="centered",logo:a,sideContent:r,backgroundImage:n,sidePosition:i="left",footer:s,children:l,...d},m)=>t==="split"?jsxRuntime.jsxs("div",{ref:m,className:o(Vi({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:r||jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center p-8",children:[a&&jsxRuntime.jsx("div",{className:"mb-8",children:a}),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:[a&&jsxRuntime.jsx("div",{className:"flex items-center justify-center p-6 lg:hidden",children:a}),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(Vi({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:[a&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:a}),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(Vi({variant:t}),e),...d,children:jsxRuntime.jsxs("div",{className:"w-full max-w-md p-6",children:[a&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:a}),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})]})}));kh.displayName="AuthLayout";var Dh=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("form",{ref:a,className:o("space-y-4",e),...t}));Dh.displayName="AuthForm";var Vh=U__namespace.forwardRef(({className:e,title:t,description:a,children:r,...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}),a&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:a}),r]}));Vh.displayName="AuthHeader";var Lh=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex flex-col gap-2 text-center text-sm",e),...t}));Lh.displayName="AuthFooterLinks";var Ih=U__namespace.forwardRef(({className:e,text:t="or continue with",...a},r)=>jsxRuntime.jsxs("div",{ref:r,className:o("relative my-4",e),...a,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})})]}));Ih.displayName="AuthDivider";var Eh=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("grid grid-cols-2 gap-2",e),...t}));Eh.displayName="AuthSocialButtons";var Li=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"}}),Hh=U__namespace.forwardRef(({className:e,variant:t="sidebar",navigation:a,title:r,description:n,children:i,...s},l)=>t==="sidebar"?jsxRuntime.jsxs("div",{ref:l,className:o(Li({variant:t}),e),...s,children:[a&&jsxRuntime.jsx("aside",{className:"lg:w-64 shrink-0",children:jsxRuntime.jsx("nav",{className:"flex flex-col gap-1",children:a})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-6",children:[(r||n)&&jsxRuntime.jsx(Yo,{title:r,description:n}),i]})]}):t==="tabs"?jsxRuntime.jsxs("div",{ref:l,className:o(Li({variant:t}),e),...s,children:[(r||n)&&jsxRuntime.jsx(Yo,{title:r,description:n}),a,jsxRuntime.jsx("div",{className:"pt-4",children:i})]}):jsxRuntime.jsxs("div",{ref:l,className:o(Li({variant:t}),e),...s,children:[(r||n)&&jsxRuntime.jsx(Yo,{title:r,description:n}),i]}));Hh.displayName="SettingsLayout";var Yo=U__namespace.forwardRef(({className:e,title:t,description:a,children:r,...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}),a&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:a}),r]}));Yo.displayName="SettingsHeader";var Ah=U__namespace.forwardRef(({className:e,title:t,description:a,children:r,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("space-y-4",e),...n,children:[(t||a)&&jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h2",{className:"text-lg font-medium",children:t}),a&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:a})]}),r]}));Ah.displayName="SettingsSection";var zh=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("rounded-lg border bg-card p-6",e),...t}));zh.displayName="SettingsCard";var Bh=U__namespace.forwardRef(({className:e,label:t,description:a,htmlFor:r,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:r,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:t}),a&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:a})]}),jsxRuntime.jsx("div",{className:"shrink-0",children:n})]}));Bh.displayName="SettingsRow";var Fh=U__namespace.forwardRef(({className:e,active:t,icon:a,children:r,...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:[a&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:a}),r]}));Fh.displayName="SettingsNavItem";var Oh=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("h-px bg-border my-4",e),...t}));Oh.displayName="SettingsSeparator";var ur=(e,t,a)=>({duration:e,delay:t,ease:a||[.4,0,.2,1]}),VT={hidden:e=>({opacity:e}),visible:{opacity:1},exit:e=>({opacity:e})},Gh=U__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=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:VT,custom:l,transition:ur(a,r,n),className:o(i),onAnimationStart:d,onAnimationComplete:m,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&c}):c});Gh.displayName="Fade";var LT=(e,t)=>{let a=typeof t=="number"?`${t}px`:t,r={up:{y:a},down:{y:`-${a}`},left:{x:a},right:{x:`-${a}`}};return {hidden:{opacity:0,...r[e]},visible:{opacity:1,x:0,y:0},exit:{opacity:0,...r[e]}}},Wh=U__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,direction:l="up",offset:d=20,onAnimationStart:m,onAnimationComplete:u},c)=>{let g=U__namespace.useMemo(()=>LT(l,d),[l,d]),p=jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:g,transition:ur(a,r,n),className:o(i),onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&p}):p});Wh.displayName="Slide";var IT={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"},ET={hidden:e=>({opacity:0,scale:e}),visible:{opacity:1,scale:1},exit:e=>({opacity:0,scale:e})},$h=U__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,initialScale:l=.9,origin:d="center",onAnimationStart:m,onAnimationComplete:u},c)=>{let g=jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:ET,custom:l,transition:ur(a,r,n),className:o(i),style:{transformOrigin:IT[d]},onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&g}):g});$h.displayName="Scale";var _h=U__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,horizontal:s=false,startingSize:l=0,animateOpacity:d=true,onAnimationStart:m,onAnimationComplete:u},c)=>{let g=s?"width":"height",p={hidden:{[g]:l,opacity:d?0:1},visible:{[g]:"auto",opacity:1},exit:{[g]: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:ur(a,r,n),className:o("overflow-hidden",i),onAnimationStart:m,onAnimationComplete:u,children:t})})});_h.displayName="Collapse";var Kh=U__namespace.forwardRef(({show:e=true,children:t,duration:a=.4,delay:r=0,ease:n,className:i,initialWidth:s=0,initialHeight:l=0,animateOpacity:d=true,onAnimationStart:m,onAnimationComplete:u},c)=>{let g={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:g,transition:ur(a,r,n),className:o("overflow-hidden",i),onAnimationStart:m,onAnimationComplete:u,children:t})})});Kh.displayName="Expand";var Uh=U__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,initialRotation:l=-180,finalRotation:d=0,onAnimationStart:m,onAnimationComplete:u},c)=>{let g={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:g,transition:ur(a,r,n),className:o(i),onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&p}):p});Uh.displayName="Rotate";var Yh=U__namespace.forwardRef(({front:e,back:t,direction:a="horizontal",flipped:r=false,duration:n=.6,delay:i=0,ease:s,className:l,onAnimationStart:d,onAnimationComplete:m},u)=>{let c=a==="horizontal"?"rotateY":"rotateX";return jsxRuntime.jsx("div",{ref:u,className:o("relative",l),style:{perspective:1e3},children:jsxRuntime.jsxs(framerMotion.motion.div,{animate:{[c]:r?180:0},transition:ur(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})]})})});Yh.displayName="Flip";var jh=U__namespace.forwardRef(({color:e="currentColor",duration:t=.6,children:a,className:r,disabled:n=false},i)=>{let[s,l]=U__namespace.useState([]),d=U__namespace.useRef(null),m=c=>{if(n)return;let g=d.current;if(!g)return;let p=g.getBoundingClientRect(),v=c.clientX-p.left,N=c.clientY-p.top,b=Math.max(p.width,p.height)*2,h={id:Date.now(),x:v,y:N,size:b};l(w=>[...w,h]);},u=c=>{l(g=>g.filter(p=>p.id!==c));};return jsxRuntime.jsxs("div",{ref:i,className:o("relative overflow-hidden",r),onClick:m,children:[jsxRuntime.jsx("div",{ref:d,className:"relative z-0",children:a}),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))})]})});jh.displayName="Ripple";var Xh=U__namespace.forwardRef(({children:e,animate:t=true,height:a=10,duration:r=.5,count:n=0,className:i,triggerOnHover:s=false},l)=>{let[d,m]=U__namespace.useState(false),u=s?d:t,c={idle:{y:0},bounce:{y:[0,-a,0],transition:{duration:r,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})});Xh.displayName="Bounce";var zT={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]},qh=U__namespace.forwardRef(({children:e,animate:t=true,intensity:a="normal",duration:r=.5,count:n=1,className:i,triggerOnHover:s=false},l)=>{let[d,m]=U__namespace.useState(false),u=s?d:t,c={idle:{x:0},shake:{x:zT[a],transition:{duration:r,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})});qh.displayName="Shake";var BT={slow:"animate-[pulse_3s_ease-in-out_infinite]",normal:"animate-[pulse_2s_ease-in-out_infinite]",fast:"animate-[pulse_1s_ease-in-out_infinite]"},Zh=U__namespace.forwardRef(({children:e,animate:t=true,speed:a="normal",className:r},n)=>jsxRuntime.jsx("div",{ref:n,className:o(t&&BT[a],r),children:e}));Zh.displayName="Pulse";var Qh=U__namespace.forwardRef(({children:e,animate:t=true,angle:a=10,duration:r=.3,count:n=0,className:i,triggerOnHover:s=false},l)=>{let[d,m]=U__namespace.useState(false),u=s?d:t,c={idle:{rotate:0},wiggle:{rotate:[0,-a,a,-a,a,0],transition:{duration:r,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})});Qh.displayName="Wiggle";var Jh=U__namespace.forwardRef(({children:e,animate:t=false,scale:a=1.2,duration:r=.2,className:n,triggerOnHover:i=false,triggerOnClick:s=false},l)=>{let[d,m]=U__namespace.useState(false),u=t||d,c={type:"spring",stiffness:400,damping:17,duration:r},g=()=>{s&&(m(true),setTimeout(()=>m(false),r*1e3));};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,animate:{scale:u?a:1},transition:c,className:o(n),onMouseEnter:()=>i&&m(true),onMouseLeave:()=>i&&m(false),onClick:g,children:e})});Jh.displayName="Pop";var $T=(e,t,a,r)=>{let n=e.toFixed(t),[i,s]=n.split("."),l=i.replace(/\B(?=(\d{3})+(?!\d))/g,a);return s?`${l}${r}${s}`:l},ex=U__namespace.forwardRef(({value:e,from:t=0,duration:a=2,decimals:r=0,prefix:n="",suffix:i="",separator:s=",",decimalSeparator:l=".",animateOnView:d=true,delay:m=0,className:u,onComplete:c},g)=>{let p=U__namespace.useRef(null),v=framerMotion.useInView(p,{once:true}),[N,b]=U__namespace.useState(!d);U__namespace.useEffect(()=>{if(d&&v){let y=setTimeout(()=>b(true),m*1e3);return ()=>clearTimeout(y)}},[d,v,m]);let h={damping:30,stiffness:100,duration:a*1e3},w=framerMotion.useSpring(N?e:t,h),f=framerMotion.useTransform(w,y=>$T(y,r,s,l));return U__namespace.useEffect(()=>{N&&w.set(e);},[N,e,w]),U__namespace.useEffect(()=>{let y=w.on("change",P=>{Math.abs(P-e)<.01&&c&&c();});return ()=>y()},[w,e,c]),jsxRuntime.jsx("span",{ref:p,className:o(u),children:jsxRuntime.jsxs("span",{ref:g,children:[n,jsxRuntime.jsx(framerMotion.motion.span,{children:f}),i]})})});ex.displayName="Counter";var tx=U__namespace.forwardRef(({text:e,speed:t=50,delay:a=0,pauseBetween:r=1500,cursor:n=true,cursorChar:i="|",loop:s=false,deleteSpeed:l=30,animateOnView:d=true,className:m,cursorClassName:u,onComplete:c},g)=>{let p=Array.isArray(e)?e:[e],[v,N]=U__namespace.useState(""),[b,h]=U__namespace.useState(0),[w,f]=U__namespace.useState(false),[y,P]=U__namespace.useState(false),x=U__namespace.useRef(null),S=framerMotion.useInView(x,{once:true}),[k,M]=U__namespace.useState(!d);return U__namespace.useEffect(()=>{if(d&&S){let R=setTimeout(()=>M(true),a*1e3);return ()=>clearTimeout(R)}},[d,S,a]),U__namespace.useEffect(()=>{if(!k||y)return;let R=p[b],C;return w?v.length>0?C=setTimeout(()=>{N(v.slice(0,-1));},l):(f(false),h(D=>(D+1)%p.length)):v.length<R.length?C=setTimeout(()=>{N(R.slice(0,v.length+1));},t):b<p.length-1||s?C=setTimeout(()=>{f(true);},r):(P(true),c?.()),()=>clearTimeout(C)},[k,v,b,w,y,p,t,l,r,s,c]),jsxRuntime.jsxs("span",{ref:x,className:o(m),children:[jsxRuntime.jsx("span",{ref:g,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})]})});tx.displayName="Typewriter";var ax=U__namespace.forwardRef(({children:e,direction:t="up",stagger:a=.05,duration:r=.5,delay:n=0,splitBy:i="word",animateOnView:s=true,className:l},d)=>{let m=U__namespace.useRef(null),u=framerMotion.useInView(m,{once:true,amount:.5}),c=s?u:true,g=typeof e=="string"?e:"",p=i==="word"?g.split(" "):g.split(""),v={up:{y:20},down:{y:-20},left:{x:20},right:{x:-20}},N={hidden:{},visible:{transition:{staggerChildren:a,delayChildren:n}}},b={hidden:{opacity:0,...v[t]},visible:{opacity:1,x:0,y:0,transition:{duration:r,ease:"easeInOut"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:d,className:o("inline-flex flex-wrap",l),variants:N,initial:"hidden",animate:c?"visible":"hidden",children:jsxRuntime.jsx("span",{ref:m,children:p.map((h,w)=>jsxRuntime.jsxs(framerMotion.motion.span,{variants:b,className:"inline-block",children:[h,i==="word"&&w<p.length-1&&"\xA0"]},w))})})});ax.displayName="TextReveal";var rx=U__namespace.forwardRef(({words:e,duration:t=2,animation:a="slide",animationDuration:r=.5,className:n,loop:i=true},s)=>{let[l,d]=U__namespace.useState(0);U__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(a){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:r},className:"inline-block",children:e[l]},e[l])})})});rx.displayName="WordRotate";var sx=U__namespace.forwardRef(({children:e,direction:t="up",distance:a=50,duration:r=.6,delay:n=0,once:i=true,threshold:s=.1,className:l,scale:d,rotate:m,blur:u,ease:c=[.4,0,.2,1]},g)=>{let p=U__namespace.useRef(null),v=framerMotion.useInView(p,{once:i,amount:s}),b={up:{x:0,y:a},down:{x:0,y:-a},left:{x:a,y:0},right:{x:-a,y:0},none:{x:0,y:0}}[t],h={hidden:{opacity:0,x:b.x,y:b.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:r,delay:n,ease:c}}};return jsxRuntime.jsx("div",{ref:p,children:jsxRuntime.jsx(framerMotion.motion.div,{ref:g,variants:h,initial:"hidden",animate:v?"visible":"hidden",className:o(l),children:e})})});sx.displayName="ScrollReveal";var lx=U__namespace.forwardRef(({position:e="top",size:t=4,color:a="hsl(var(--primary))",backgroundColor:r="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}),g=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}},N=p?"scaleX":"scaleY",b=p?"left":"top";return jsxRuntime.jsxs("div",{ref:m,className:o("fixed",i),style:{...v[e],zIndex:n,backgroundColor:r},children:[jsxRuntime.jsx(framerMotion.motion.div,{className:"h-full w-full",style:{[N]:g,transformOrigin:b,backgroundColor:a}}),l&&jsxRuntime.jsx(KT,{progress:g,position:e})]})});lx.displayName="ScrollProgress";var KT=({progress:e,position:t})=>{let a=framerMotion.useTransform(e,s=>Math.round(s*100)),[r,n]=U__namespace.useState(0);return U__namespace.useEffect(()=>{let s=a.on("change",n);return ()=>s()},[a]),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:[r,"%"]})},dx=U__namespace.forwardRef(({children:e,speed:t=.5,direction:a="vertical",className:r,container:n},i)=>{let s=U__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=a==="horizontal"?u:0,g=a==="vertical"?u:0;return jsxRuntime.jsx("div",{ref:s,className:o("overflow-hidden",r),children:jsxRuntime.jsx(framerMotion.motion.div,{ref:i,style:{x:c,y:g},children:e})})});dx.displayName="Parallax";var px=U__namespace.forwardRef(({children:e,width:t,height:a,duration:r=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"},g={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:a,borderRadius:l,backgroundColor:i},children:[e,m&&jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:`linear-gradient(${c[n]}, transparent, ${s}, transparent)`,animation:`${g[n]} ${r}s infinite`}}),jsxRuntime.jsx("style",{children:`
|
|
1
|
+
'use strict';var U=require('react'),classVarianceAuthority=require('class-variance-authority'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),reactSlot=require('@radix-ui/react-slot'),lucideReact=require('lucide-react'),io=require('@radix-ui/react-checkbox'),oe=require('@radix-ui/react-dialog'),Wi=require('@radix-ui/react-label'),co=require('@radix-ui/react-separator'),mo=require('@radix-ui/react-switch'),Et=require('@radix-ui/react-avatar'),nt=require('@radix-ui/react-tooltip'),Y=require('@radix-ui/react-select'),_=require('@radix-ui/react-dropdown-menu'),it=require('@radix-ui/react-popover'),st=require('@radix-ui/react-tabs'),sonner=require('sonner'),Ue=require('@radix-ui/react-scroll-area'),K=require('@radix-ui/react-context-menu'),fa=require('@radix-ui/react-radio-group'),os=require('@radix-ui/react-toggle'),vr=require('@radix-ui/react-toggle-group'),zt=require('@radix-ui/react-slider'),xt=require('@radix-ui/react-accordion'),hr=require('@radix-ui/react-collapsible'),le=require('@radix-ui/react-alert-dialog'),bo=require('@radix-ui/react-progress'),Ya=require('@radix-ui/react-hover-card'),Mc=require('@radix-ui/react-aspect-ratio'),fe=require('@radix-ui/react-navigation-menu'),vaul=require('vaul'),reactDayPicker=require('react-day-picker'),cmdk=require('cmdk'),dateFns=require('date-fns'),reactResizablePanels=require('react-resizable-panels'),reactColorful=require('react-colorful'),$=require('@radix-ui/react-menubar'),reactDom=require('react-dom'),fg=require('@radix-ui/react-visually-hidden'),recharts=require('recharts'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),TP=require('embla-carousel-react'),react=require('@tiptap/react'),HP=require('@tiptap/starter-kit'),zP=require('@tiptap/extension-link'),BP=require('@tiptap/extension-underline'),FP=require('@tiptap/extension-text-align'),OP=require('@tiptap/extension-placeholder'),sC=require('react-image-crop');require('react-image-crop/dist/ReactCrop.css');var gC=require('react-qr-code'),nextThemes=require('next-themes'),framerMotion=require('framer-motion'),eo=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 U__namespace=/*#__PURE__*/_interopNamespace(U);var io__namespace=/*#__PURE__*/_interopNamespace(io);var oe__namespace=/*#__PURE__*/_interopNamespace(oe);var Wi__namespace=/*#__PURE__*/_interopNamespace(Wi);var co__namespace=/*#__PURE__*/_interopNamespace(co);var mo__namespace=/*#__PURE__*/_interopNamespace(mo);var Et__namespace=/*#__PURE__*/_interopNamespace(Et);var nt__namespace=/*#__PURE__*/_interopNamespace(nt);var Y__namespace=/*#__PURE__*/_interopNamespace(Y);var ___namespace=/*#__PURE__*/_interopNamespace(_);var it__namespace=/*#__PURE__*/_interopNamespace(it);var st__namespace=/*#__PURE__*/_interopNamespace(st);var Ue__namespace=/*#__PURE__*/_interopNamespace(Ue);var K__namespace=/*#__PURE__*/_interopNamespace(K);var fa__namespace=/*#__PURE__*/_interopNamespace(fa);var os__namespace=/*#__PURE__*/_interopNamespace(os);var vr__namespace=/*#__PURE__*/_interopNamespace(vr);var zt__namespace=/*#__PURE__*/_interopNamespace(zt);var xt__namespace=/*#__PURE__*/_interopNamespace(xt);var hr__namespace=/*#__PURE__*/_interopNamespace(hr);var le__namespace=/*#__PURE__*/_interopNamespace(le);var bo__namespace=/*#__PURE__*/_interopNamespace(bo);var Ya__namespace=/*#__PURE__*/_interopNamespace(Ya);var Mc__namespace=/*#__PURE__*/_interopNamespace(Mc);var fe__namespace=/*#__PURE__*/_interopNamespace(fe);var $__namespace=/*#__PURE__*/_interopNamespace($);var fg__namespace=/*#__PURE__*/_interopNamespace(fg);var TP__default=/*#__PURE__*/_interopDefault(TP);var HP__default=/*#__PURE__*/_interopDefault(HP);var zP__default=/*#__PURE__*/_interopDefault(zP);var BP__default=/*#__PURE__*/_interopDefault(BP);var FP__default=/*#__PURE__*/_interopDefault(FP);var OP__default=/*#__PURE__*/_interopDefault(OP);var sC__default=/*#__PURE__*/_interopDefault(sC);var gC__default=/*#__PURE__*/_interopDefault(gC);var eo__default=/*#__PURE__*/_interopDefault(eo);function o(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var Nx=classVarianceAuthority.cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4",{variants:{variant:{solid:"border-transparent bg-primary text-primary-foreground [&>svg]:text-primary-foreground",outline:"border-input bg-transparent text-foreground [&>svg]:text-foreground",ghost:"border-transparent bg-transparent text-foreground [&>svg]:text-foreground",soft:"border-transparent bg-primary/15 text-primary [&>svg]:text-primary",surface:"border-transparent bg-muted text-muted-foreground [&>svg]:text-muted-foreground",destructive:"border-destructive/50 bg-destructive/10 text-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"solid"}}),Px=U__namespace.forwardRef(({className:e,variant:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,role:"alert",className:o(Nx({variant:t}),e),...a}));Px.displayName="Alert";var Cx=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("h5",{ref:a,className:o("mb-1 font-medium leading-none tracking-tight",e),...t}));Cx.displayName="AlertTitle";var Sx=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("text-sm [&_p]:leading-relaxed",e),...t}));Sx.displayName="AlertDescription";var Tx=classVarianceAuthority.cva("absolute rounded-full flex items-center justify-center font-semibold",{variants:{variant:{solid:"",bordered:"border-2"},color:{default:"",success:"",warning:"",danger:""},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:"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"},{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"}}),Mx={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"},kx=U__namespace.forwardRef(({className:e,children:t,content:a,variant:r="solid",color:n="default",size:i="md",placement:s="top-right",isDot:l=false,...d},m)=>jsxRuntime.jsxs("div",{ref:m,className:o("relative inline-flex",e),...d,children:[t,jsxRuntime.jsx("span",{className:o(Tx({variant:r,color:n,size:l?void 0:i,placement:s}),l&&Mx[i||"md"],l&&"min-w-0 p-0"),children:!l&&a})]}));kx.displayName="Badge";var Dx=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"},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"}}),oo=U__namespace.forwardRef(({className:e,color:t,size:a,...r},n)=>jsxRuntime.jsx("span",{ref:n,className:o(Dx({color:t,size:a}),e),...r}));oo.displayName="TextBadge";var Te=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:""},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"}],defaultVariants:{variant:"solid",color:"default",size:"md",radius:"md"}}),O=U__namespace.forwardRef(({className:e,variant:t,color:a,size:r,radius:n,asChild:i=false,href:s,loading:l=false,startContent:d,endContent:m,children:u,disabled:c,style:g,...p},v)=>{let N=c||l,h=t==="bordered"?{borderColor:"currentColor",...g}:g,w=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(Te({variant:t,color:a,size:r,radius:n,className:e})),ref:v,style:h,...p,children:w}):s?jsxRuntime.jsx("a",{href:s,className:o(Te({variant:t,color:a,size:r,radius:n,className:e}),N&&"pointer-events-none opacity-50"),style:h,...p,children:w}):jsxRuntime.jsx("button",{className:o(Te({variant:t,color:a,size:r,radius:n,className:e})),ref:v,disabled:N,style:h,...p,children:w})});O.displayName="Button";var Zl=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"}}),Ql=U__namespace.forwardRef(({className:e,radius:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o(Zl({radius:t,className:e})),...a}));Ql.displayName="Card";var Jl=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("p-6 text-2xl font-semibold leading-none tracking-tight",e),...t}));Jl.displayName="CardHeader";var ed=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("p-6 pt-0",e),...t}));ed.displayName="CardContent";var td=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex items-center p-6 pt-0",e),...t}));td.displayName="CardFooter";var so=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(io__namespace.Root,{ref:a,className:o("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:jsxRuntime.jsx(io__namespace.Indicator,{className:o("flex items-center justify-center text-current"),children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}));so.displayName=io__namespace.Root.displayName;var Oi=oe__namespace.Root,Bx=oe__namespace.Trigger,rd=oe__namespace.Portal,Fx=oe__namespace.Close,Gi=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Overlay,{ref:a,className:o("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Gi.displayName=oe__namespace.Overlay.displayName;var en=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(rd,{children:[jsxRuntime.jsx(Gi,{}),jsxRuntime.jsxs(oe__namespace.Content,{ref:r,className:o("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,jsxRuntime.jsxs(oe__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"})]})]})]}));en.displayName=oe__namespace.Content.displayName;var od=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});od.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 id=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Title,{ref:a,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));id.displayName=oe__namespace.Title.displayName;var sd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));sd.displayName=oe__namespace.Description.displayName;var Gx=classVarianceAuthority.cva("flex h-10 w-full border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),tn=U__namespace.forwardRef(({className:e,type:t,radius:a,...r},n)=>jsxRuntime.jsx("input",{type:t,className:o(Gx({radius:a,className:e})),ref:n,...r}));tn.displayName="Input";var _x=classVarianceAuthority.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ha=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Wi__namespace.Root,{ref:a,className:o(_x(),e),...t}));Ha.displayName=Wi__namespace.Root.displayName;var da=U__namespace.forwardRef(({className:e,orientation:t="horizontal",decorative:a=true,text:r,...n},i)=>r&&t==="horizontal"?jsxRuntime.jsxs("div",{className:o("flex items-center gap-4",e),children:[jsxRuntime.jsx(co__namespace.Root,{decorative:a,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n}),jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:r}),jsxRuntime.jsx(co__namespace.Root,{decorative:a,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n})]}):jsxRuntime.jsx(co__namespace.Root,{ref:i,decorative:a,orientation:t,className:o("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));da.displayName=co__namespace.Root.displayName;var ud=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(mo__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:a,children:jsxRuntime.jsx(mo__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")})}));ud.displayName=mo__namespace.Root.displayName;var jx=classVarianceAuthority.cva("flex min-h-[80px] w-full border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"}},defaultVariants:{radius:"md"}}),gd=U__namespace.forwardRef(({className:e,radius:t,...a},r)=>jsxRuntime.jsx("textarea",{className:o(jx({radius:t,className:e})),ref:r,...a}));gd.displayName="Textarea";var vd=classVarianceAuthority.cva("rounded-md bg-muted",{variants:{variant:{pulse:"animate-pulse",shimmer:"skeleton-shimmer",static:""}},defaultVariants:{variant:"pulse"}}),rn=U__namespace.forwardRef(({className:e,variant:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o(vd({variant:t,className:e})),...a}));rn.displayName="Skeleton";var Jx=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"}}),za=U__namespace.forwardRef(({className:e,size:t,radius:a,...r},n)=>jsxRuntime.jsx(Et__namespace.Root,{ref:n,className:o(Jx({size:t,radius:a,className:e})),...r}));za.displayName=Et__namespace.Root.displayName;var gr=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Et__namespace.Image,{ref:a,className:o("aspect-square h-full w-full",e),...t}));gr.displayName=Et__namespace.Image.displayName;var Ba=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Et__namespace.Fallback,{ref:a,className:o("flex h-full w-full items-center justify-center bg-muted",e),...t}));Ba.displayName=Et__namespace.Fallback.displayName;var Fa=nt__namespace.Provider,Oa=nt__namespace.Root,Ga=nt__namespace.Trigger,ca=U__namespace.forwardRef(({className:e,sideOffset:t=4,...a},r)=>jsxRuntime.jsx(nt__namespace.Portal,{children:jsxRuntime.jsx(nt__namespace.Content,{ref:r,sideOffset:t,className:o("z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));ca.displayName=nt__namespace.Content.displayName;var _i=Y__namespace.Root,ay=Y__namespace.Group,Ki=Y__namespace.Value,nn=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Y__namespace.Trigger,{ref:r,className:o("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...a,children:[t,jsxRuntime.jsx(Y__namespace.Icon,{asChild:true,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));nn.displayName=Y__namespace.Trigger.displayName;var Ui=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.ScrollUpButton,{ref:a,className:o("flex cursor-default items-center justify-center py-1",e),...t,children:jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"})}));Ui.displayName=Y__namespace.ScrollUpButton.displayName;var Yi=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.ScrollDownButton,{ref:a,className:o("flex cursor-default items-center justify-center py-1",e),...t,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"})}));Yi.displayName=Y__namespace.ScrollDownButton.displayName;var sn=U__namespace.forwardRef(({className:e,children:t,position:a="popper",...r},n)=>jsxRuntime.jsx(Y__namespace.Portal,{children:jsxRuntime.jsxs(Y__namespace.Content,{ref:n,className:o("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,...r,children:[jsxRuntime.jsx(Ui,{}),jsxRuntime.jsx(Y__namespace.Viewport,{className:o("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),jsxRuntime.jsx(Yi,{})]})}));sn.displayName=Y__namespace.Content.displayName;var Rd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.Label,{ref:a,className:o("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Rd.displayName=Y__namespace.Label.displayName;var ln=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Y__namespace.Item,{ref:r,className:o("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(Y__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),jsxRuntime.jsx(Y__namespace.ItemText,{children:t})]}));ln.displayName=Y__namespace.Item.displayName;var wd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));wd.displayName=Y__namespace.Separator.displayName;var Wa=___namespace.Root,$a=___namespace.Trigger,iy=___namespace.Group,sy=___namespace.Portal,ly=___namespace.Sub,dy=___namespace.RadioGroup,Nd=U__namespace.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxRuntime.jsxs(___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),...r,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto"})]}));Nd.displayName=___namespace.SubTrigger.displayName;var Pd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(___namespace.SubContent,{ref:a,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Pd.displayName=___namespace.SubContent.displayName;var pa=U__namespace.forwardRef(({className:e,sideOffset:t=4,...a},r)=>jsxRuntime.jsx(___namespace.Portal,{children:jsxRuntime.jsx(___namespace.Content,{ref:r,sideOffset:t,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));pa.displayName=___namespace.Content.displayName;var ht=U__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(___namespace.Item,{ref:r,className:o("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));ht.displayName=___namespace.Item.displayName;var Cd=U__namespace.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxRuntime.jsxs(___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:a,...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(___namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));Cd.displayName=___namespace.CheckboxItem.displayName;var Sd=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(___namespace.RadioItem,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(___namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Sd.displayName=___namespace.RadioItem.displayName;var Td=U__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(___namespace.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Td.displayName=___namespace.Label.displayName;var dn=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(___namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));dn.displayName=___namespace.Separator.displayName;var Md=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest opacity-60",e),...t});Md.displayName="DropdownMenuShortcut";var ve=it__namespace.Root,Re=it__namespace.Trigger,qi=it__namespace.Anchor,ue=U__namespace.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},n)=>jsxRuntime.jsx(it__namespace.Portal,{children:jsxRuntime.jsx(it__namespace.Content,{ref:n,align:t,sideOffset:a,className:o("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",e),...r})}));ue.displayName=it__namespace.Content.displayName;var cy=st__namespace.Root,Vd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(st__namespace.List,{ref:a,className:o("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));Vd.displayName=st__namespace.List.displayName;var Ld=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(st__namespace.Trigger,{ref:a,className:o("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));Ld.displayName=st__namespace.Trigger.displayName;var Id=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(st__namespace.Content,{ref:a,className:o("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Id.displayName=st__namespace.Content.displayName;var uo=oe__namespace.Root,uy=oe__namespace.Trigger,fy=oe__namespace.Close,Ed=oe__namespace.Portal,Ji=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__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:a}));Ji.displayName=oe__namespace.Overlay.displayName;var Ad=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"}}),br=U__namespace.forwardRef(({side:e="right",className:t,children:a,...r},n)=>jsxRuntime.jsxs(Ed,{children:[jsxRuntime.jsx(Ji,{}),jsxRuntime.jsxs(oe__namespace.Content,{ref:n,className:o(Ad({side:e}),t),...r,children:[jsxRuntime.jsxs(oe__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"})]}),a]})]}));br.displayName=oe__namespace.Content.displayName;var Hd=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",e),...t});Hd.displayName="SheetHeader";var zd=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});zd.displayName="SheetFooter";var Bd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Title,{ref:a,className:o("text-lg font-semibold text-foreground",e),...t}));Bd.displayName=oe__namespace.Title.displayName;var Fd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));Fd.displayName=oe__namespace.Description.displayName;var vy=({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 lt=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Ue__namespace.Root,{ref:r,className:o("relative overflow-hidden",e),...a,children:[jsxRuntime.jsx(Ue__namespace.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),jsxRuntime.jsx(ts,{}),jsxRuntime.jsx(Ue__namespace.Corner,{})]}));lt.displayName=Ue__namespace.Root.displayName;var ts=U__namespace.forwardRef(({className:e,orientation:t="vertical",...a},r)=>jsxRuntime.jsx(Ue__namespace.ScrollAreaScrollbar,{ref:r,orientation:t,className:o("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:jsxRuntime.jsx(Ue__namespace.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ts.displayName=Ue__namespace.ScrollAreaScrollbar.displayName;var Ny=K__namespace.Root,Py=K__namespace.Trigger,Cy=K__namespace.Group,Sy=K__namespace.Portal,Ty=K__namespace.Sub,My=K__namespace.RadioGroup,Od=U__namespace.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxRuntime.jsxs(K__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),...r,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}));Od.displayName=K__namespace.SubTrigger.displayName;var Gd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(K__namespace.SubContent,{ref:a,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",e),...t}));Gd.displayName=K__namespace.SubContent.displayName;var Wd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(K__namespace.Portal,{children:jsxRuntime.jsx(K__namespace.Content,{ref:a,className:o("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",e),...t})}));Wd.displayName=K__namespace.Content.displayName;var $d=U__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(K__namespace.Item,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...a}));$d.displayName=K__namespace.Item.displayName;var _d=U__namespace.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxRuntime.jsxs(K__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:a,...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(K__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));_d.displayName=K__namespace.CheckboxItem.displayName;var Kd=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(K__namespace.RadioItem,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(K__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-4 w-4 fill-current"})})}),t]}));Kd.displayName=K__namespace.RadioItem.displayName;var Ud=U__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(K__namespace.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...a}));Ud.displayName=K__namespace.Label.displayName;var Yd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(K__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-border",e),...t}));Yd.displayName=K__namespace.Separator.displayName;var jd=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});jd.displayName="ContextMenuShortcut";var Xd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(fa__namespace.Root,{className:o("grid gap-2",e),...t,ref:a}));Xd.displayName=fa__namespace.Root.displayName;var qd=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(fa__namespace.Item,{ref:a,className:o("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:jsxRuntime.jsx(fa__namespace.Indicator,{className:"flex items-center justify-center",children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));qd.displayName=fa__namespace.Item.displayName;var pn=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"}}),Qd=U__namespace.forwardRef(({className:e,variant:t,size:a,...r},n)=>jsxRuntime.jsx(os__namespace.Root,{ref:n,className:o(pn({variant:t,size:a,className:e})),...r}));Qd.displayName=os__namespace.Root.displayName;var Jd=U__namespace.createContext({size:"md",variant:"solid"}),ec=U__namespace.forwardRef(({className:e,variant:t,size:a,children:r,...n},i)=>jsxRuntime.jsx(vr__namespace.Root,{ref:i,className:o("flex items-center justify-center gap-1",e),...n,children:jsxRuntime.jsx(Jd.Provider,{value:{variant:t,size:a},children:r})}));ec.displayName=vr__namespace.Root.displayName;var tc=U__namespace.forwardRef(({className:e,children:t,variant:a,size:r,...n},i)=>{let s=U__namespace.useContext(Jd);return jsxRuntime.jsx(vr__namespace.Item,{ref:i,className:o(pn({variant:s.variant||a,size:s.size||r}),e),...n,children:t})});tc.displayName=vr__namespace.Item.displayName;var un=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsxs(zt__namespace.Root,{ref:a,className:o("relative flex w-full touch-none select-none items-center",e),...t,children:[jsxRuntime.jsx(zt__namespace.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:jsxRuntime.jsx(zt__namespace.Range,{className:"absolute h-full bg-primary"})}),jsxRuntime.jsx(zt__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"})]}));un.displayName=zt__namespace.Root.displayName;var Ey=`
|
|
2
|
+
@keyframes accordion-down {
|
|
3
|
+
from { height: 0; opacity: 0; }
|
|
4
|
+
to { height: var(--radix-accordion-content-height); opacity: 1; }
|
|
5
|
+
}
|
|
6
|
+
@keyframes accordion-up {
|
|
7
|
+
from { height: var(--radix-accordion-content-height); opacity: 1; }
|
|
8
|
+
to { height: 0; opacity: 0; }
|
|
9
|
+
}
|
|
10
|
+
.accordion-content[data-state="open"] {
|
|
11
|
+
animation: accordion-down 0.25s ease-out;
|
|
12
|
+
}
|
|
13
|
+
.accordion-content[data-state="closed"] {
|
|
14
|
+
animation: accordion-up 0.2s ease-out;
|
|
15
|
+
}
|
|
16
|
+
`,rc=false,Ay=()=>{if(rc||typeof document>"u")return;let e=document.createElement("style");e.textContent=Ey,document.head.appendChild(e),rc=true;},oc=({className:e,...t})=>(U__namespace.useEffect(()=>{Ay();},[]),jsxRuntime.jsx(xt__namespace.Root,{className:o("w-full",e),...t}));oc.displayName="Accordion";var Hy=oc,nc=U__namespace.forwardRef(({className:e,title:t,subtitle:a,startContent:r,children:n,...i},s)=>jsxRuntime.jsxs(xt__namespace.Item,{ref:s,className:o("border-b data-[disabled]:opacity-50",e),...i,children:[jsxRuntime.jsx(xt__namespace.Header,{className:"flex",children:jsxRuntime.jsxs(xt__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:[r,jsxRuntime.jsxs("div",{className:"flex flex-col items-start",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:t}),a&&jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:a})]})]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}),jsxRuntime.jsx(xt__namespace.Content,{className:"accordion-content overflow-hidden text-sm",children:jsxRuntime.jsx("div",{className:"pb-4 pt-0",children:n})})]}));nc.displayName="AccordionItem";var By=`
|
|
17
|
+
@keyframes collapsible-down {
|
|
18
|
+
from { height: 0; opacity: 0; }
|
|
19
|
+
to { height: var(--radix-collapsible-content-height); opacity: 1; }
|
|
20
|
+
}
|
|
21
|
+
@keyframes collapsible-up {
|
|
22
|
+
from { height: var(--radix-collapsible-content-height); opacity: 1; }
|
|
23
|
+
to { height: 0; opacity: 0; }
|
|
24
|
+
}
|
|
25
|
+
.collapsible-content[data-state="open"] {
|
|
26
|
+
animation: collapsible-down 0.25s ease-out;
|
|
27
|
+
}
|
|
28
|
+
.collapsible-content[data-state="closed"] {
|
|
29
|
+
animation: collapsible-up 0.2s ease-out;
|
|
30
|
+
}
|
|
31
|
+
`,ic=false,Fy=()=>{if(ic||typeof document>"u")return;let e=document.createElement("style");e.textContent=By,document.head.appendChild(e),ic=true;},Oy=hr__namespace.Root,sc=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsx(hr__namespace.CollapsibleTrigger,{ref:r,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),...a,children:t??jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4"})}));sc.displayName="CollapsibleTrigger";var lc=U__namespace.forwardRef(({className:e,...t},a)=>(U__namespace.useEffect(()=>{Fy();},[]),jsxRuntime.jsx(hr__namespace.CollapsibleContent,{ref:a,className:o("collapsible-content overflow-hidden",e),...t})));lc.displayName="CollapsibleContent";var Gy=le__namespace.Root,Wy=le__namespace.Trigger,dc=le__namespace.Portal,ls=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(le__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:a}));ls.displayName=le__namespace.Overlay.displayName;var cc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsxs(dc,{children:[jsxRuntime.jsx(ls,{}),jsxRuntime.jsx(le__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),...t})]}));cc.displayName=le__namespace.Content.displayName;var mc=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",e),...t});mc.displayName="AlertDialogHeader";var pc=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});pc.displayName="AlertDialogFooter";var uc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(le__namespace.Title,{ref:a,className:o("text-lg font-semibold",e),...t}));uc.displayName=le__namespace.Title.displayName;var fc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(le__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));fc.displayName=le__namespace.Description.displayName;var gc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(le__namespace.Action,{ref:a,className:o(Te(),e),...t}));gc.displayName=le__namespace.Action.displayName;var bc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(le__namespace.Cancel,{ref:a,className:o(Te({variant:"bordered"}),"mt-2 sm:mt-0",e),...t}));bc.displayName=le__namespace.Cancel.displayName;var bn=U__namespace.forwardRef(({className:e,value:t,...a},r)=>jsxRuntime.jsx(bo__namespace.Root,{ref:r,className:o("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...a,children:jsxRuntime.jsx(bo__namespace.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));bn.displayName=bo__namespace.Root.displayName;var _y=Ya__namespace.Root,Ky=Ya__namespace.Trigger,yc=U__namespace.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},n)=>jsxRuntime.jsx(Ya__namespace.Content,{ref:n,align:t,sideOffset:a,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),...r}));yc.displayName=Ya__namespace.Content.displayName;var Rc=U__namespace.forwardRef(({...e},t)=>jsxRuntime.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Rc.displayName="Breadcrumb";var wc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ol",{ref:a,className:o("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));wc.displayName="BreadcrumbList";var Nc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("li",{ref:a,className:o("inline-flex items-center gap-1.5",e),...t}));Nc.displayName="BreadcrumbItem";var Pc=U__namespace.forwardRef(({asChild:e,className:t,...a},r)=>jsxRuntime.jsx(e?reactSlot.Slot:"a",{ref:r,className:o("transition-colors hover:text-foreground",t),...a}));Pc.displayName="BreadcrumbLink";var Cc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:o("font-normal text-foreground",e),...t}));Cc.displayName="BreadcrumbPage";var Sc=({children:e,className:t,...a})=>jsxRuntime.jsx("li",{role:"presentation","aria-hidden":"true",className:o("[&>svg]:h-3.5 [&>svg]:w-3.5",t),...a,children:e??jsxRuntime.jsx(lucideReact.ChevronRight,{})});Sc.displayName="BreadcrumbSeparator";var Tc=({className:e,...t})=>jsxRuntime.jsxs("span",{role:"presentation","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"})]});Tc.displayName="BreadcrumbEllipsis";var Zy=Mc__namespace.Root;var kc=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(fe__namespace.Root,{ref:r,className:o("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:[t,jsxRuntime.jsx(ds,{})]}));kc.displayName=fe__namespace.Root.displayName;var Dc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(fe__namespace.List,{ref:a,className:o("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));Dc.displayName=fe__namespace.List.displayName;var eR=fe__namespace.Item,Vc=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"),Lc=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(fe__namespace.Trigger,{ref:r,className:o(Vc(),"group",e),...a,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"})]}));Lc.displayName=fe__namespace.Trigger.displayName;var Ic=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(fe__namespace.Content,{ref:a,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}));Ic.displayName=fe__namespace.Content.displayName;var tR=fe__namespace.Link,ds=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{className:o("absolute left-0 top-full flex justify-center"),children:jsxRuntime.jsx(fe__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:a,...t})}));ds.displayName=fe__namespace.Viewport.displayName;var Ec=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(fe__namespace.Indicator,{ref:a,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"})}));Ec.displayName=fe__namespace.Indicator.displayName;var zc=({shouldScaleBackground:e=true,...t})=>jsxRuntime.jsx(vaul.Drawer.Root,{shouldScaleBackground:e,...t});zc.displayName="Drawer";var aR=vaul.Drawer.Trigger,Bc=vaul.Drawer.Portal,rR=vaul.Drawer.Close,cs=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(vaul.Drawer.Overlay,{ref:a,className:o("fixed inset-0 z-50 bg-black/80",e),...t}));cs.displayName=vaul.Drawer.Overlay.displayName;var Fc=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Bc,{children:[jsxRuntime.jsx(cs,{}),jsxRuntime.jsxs(vaul.Drawer.Content,{ref:r,className:o("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...a,children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));Fc.displayName="DrawerContent";var Oc=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("grid gap-1.5 p-4 text-center sm:text-left",e),...t});Oc.displayName="DrawerHeader";var Gc=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("mt-auto flex flex-col gap-2 p-4",e),...t});Gc.displayName="DrawerFooter";var Wc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(vaul.Drawer.Title,{ref:a,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));Wc.displayName=vaul.Drawer.Title.displayName;var $c=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(vaul.Drawer.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));$c.displayName=vaul.Drawer.Description.displayName;var _c=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{className:"relative w-full overflow-auto",children:jsxRuntime.jsx("table",{ref:a,className:o("w-full caption-bottom text-sm",e),...t})}));_c.displayName="Table";var Kc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("thead",{ref:a,className:o("[&_tr]:border-b",e),...t}));Kc.displayName="TableHeader";var Uc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("tbody",{ref:a,className:o("[&_tr:last-child]:border-0",e),...t}));Uc.displayName="TableBody";var Yc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("tfoot",{ref:a,className:o("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Yc.displayName="TableFooter";var jc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("tr",{ref:a,className:o("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));jc.displayName="TableRow";var Xc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("th",{ref:a,className:o("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Xc.displayName="TableHead";var qc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("td",{ref:a,className:o("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));qc.displayName="TableCell";var Zc=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("caption",{ref:a,className:o("mt-4 text-sm text-muted-foreground",e),...t}));Zc.displayName="TableCaption";var Jc=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"}}),em=U__namespace.forwardRef(({className:e,size:t,...a},r)=>jsxRuntime.jsx(lucideReact.Loader2,{ref:r,className:o(Jc({size:t,className:e})),...a}));em.displayName="Spinner";function yr({className:e,classNames:t,showOutsideDays:a=true,...r}){return jsxRuntime.jsx(reactDayPicker.DayPicker,{showOutsideDays:a,className:o("p-3",e),classNames:{months:"flex flex-col sm:flex-row gap-4",month:"flex flex-col gap-4",month_caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",button_previous:o(Te({variant:"bordered"}),"absolute left-1 h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),button_next:o(Te({variant:"bordered"}),"absolute right-1 h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),month_grid:"w-full border-collapse space-y-1",weekdays:"flex",weekday:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",week:"flex w-full mt-2",day:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day_button:o(Te({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),range_end:"day-range-end",selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",today:"bg-accent text-accent-foreground",outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",disabled:"text-muted-foreground opacity-50",range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",hidden:"invisible",...t},components:{Chevron:({orientation:n})=>n==="left"?jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})},...r})}yr.displayName="Calendar";var tm=({className:e,...t})=>jsxRuntime.jsx("nav",{role:"navigation","aria-label":"pagination",className:o("mx-auto flex w-full justify-center",e),...t});tm.displayName="Pagination";var am=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ul",{ref:a,className:o("flex flex-row items-center gap-1",e),...t}));am.displayName="PaginationContent";var rm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("li",{ref:a,className:o("",e),...t}));rm.displayName="PaginationItem";var vn=({className:e,isActive:t,size:a="icon",...r})=>jsxRuntime.jsx("a",{"aria-current":t?"page":void 0,className:o(Te({variant:t?"bordered":"ghost",size:a}),e),...r});vn.displayName="PaginationLink";var om=({className:e,...t})=>jsxRuntime.jsxs(vn,{"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"})]});om.displayName="PaginationPrevious";var nm=({className:e,...t})=>jsxRuntime.jsxs(vn,{"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"})]});nm.displayName="PaginationNext";var im=({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"})]});im.displayName="PaginationEllipsis";var fs=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command,{ref:a,className:o("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));fs.displayName=cmdk.Command.displayName;var fR=({children:e,...t})=>jsxRuntime.jsx(Oi,{...t,children:jsxRuntime.jsx(en,{className:"overflow-hidden p-0 shadow-lg",children:jsxRuntime.jsx(fs,{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=U__namespace.forwardRef(({className:e,...t},a)=>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:a,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 lm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.List,{ref:a,className:o("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));lm.displayName=cmdk.Command.List.displayName;var dm=U__namespace.forwardRef((e,t)=>jsxRuntime.jsx(cmdk.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));dm.displayName=cmdk.Command.Empty.displayName;var cm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.Group,{ref:a,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}));cm.displayName=cmdk.Command.Group.displayName;var mm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.Separator,{ref:a,className:o("-mx-1 h-px bg-border",e),...t}));mm.displayName=cmdk.Command.Separator.displayName;var pm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.Item,{ref:a,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}));pm.displayName=cmdk.Command.Item.displayName;var um=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});um.displayName="CommandShortcut";var fm=U__namespace.forwardRef(({className:e,showToggle:t=true,disabled:a,...r},n)=>{let[i,s]=U__namespace.useState(false);return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{type:i?"text":"password",className:o("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t&&"pr-10",e),ref:n,disabled:a,...r}),t&&jsxRuntime.jsx(O,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-10 w-10 px-3 hover:bg-transparent",onClick:()=>s(!i),disabled:a,tabIndex:-1,"aria-label":i?"Hide password":"Show password",children:i?jsxRuntime.jsx(lucideReact.EyeOff,{className:"h-4 w-4 text-muted-foreground"}):jsxRuntime.jsx(lucideReact.Eye,{className:"h-4 w-4 text-muted-foreground"})})]})});fm.displayName="PasswordInput";var gm=U__namespace.forwardRef(({className:e,showButtons:t=true,step:a=1,min:r,max:n,value:i,defaultValue:s,onChange:l,disabled:d,...m},u)=>{let[c,g]=U__namespace.useState(s),p=i!==void 0,v=p?i:c,N=x=>{x!==void 0&&(r!==void 0&&x<r&&(x=r),n!==void 0&&x>n&&(x=n)),p||g(x),l?.(x);},b=()=>{N((v??0)+a);},h=()=>{N((v??0)-a);},w=x=>{let S=x.target.value;if(S==="")N(void 0);else {let k=parseFloat(S);isNaN(k)||N(k);}},f=x=>{x.key==="ArrowUp"?(x.preventDefault(),b()):x.key==="ArrowDown"&&(x.preventDefault(),h());},y=r===void 0||(v??0)>r,P=n===void 0||(v??0)<n;return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[t&&jsxRuntime.jsx(O,{type:"button",variant:"bordered",size:"icon",className:"h-10 w-10 rounded-r-none border-r-0",onClick:h,disabled:d||!y,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:o("flex h-10 w-full bg-background px-3 py-2 text-sm text-center ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t?"border-y border-input rounded-none":"border border-input rounded-md",e),ref:u,value:v??"",onChange:w,onKeyDown:f,disabled:d,...m}),t&&jsxRuntime.jsx(O,{type:"button",variant:"bordered",size:"icon",className:"h-10 w-10 rounded-l-none border-l-0",onClick:b,disabled:d||!P,tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"})})]})});gm.displayName="NumberInput";var bm=U__namespace.forwardRef(({options:e,value:t,defaultValue:a=[],onValueChange:r,placeholder:n="Select items...",searchPlaceholder:i="Search...",emptyText:s="No items found.",maxItems:l,showCount:d=false,disabled:m=false,className:u},c)=>{let[g,p]=U__namespace.useState(false),[v,N]=U__namespace.useState(""),[b,h]=U__namespace.useState(a),w=t!==void 0,f=w?t:b,y=R=>{w||h(R),r?.(R);},P=R=>{let C=f.includes(R)?f.filter(D=>D!==R):l&&f.length>=l?f:[...f,R];y(C);},x=R=>{y(f.filter(C=>C!==R));},S=()=>{y([]);},k=e.filter(R=>f.includes(R.value)),M=e.filter(R=>R.label.toLowerCase().includes(v.toLowerCase()));return jsxRuntime.jsxs(ve,{open:g,onOpenChange:p,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs(O,{ref:c,variant:"bordered",role:"combobox","aria-expanded":g,disabled:m,className:o("w-full justify-between h-auto min-h-10",f.length>0?"px-2 py-1.5":"px-3 py-2",u),children:[f.length===0?jsxRuntime.jsx("span",{className:"text-muted-foreground font-normal",children:n}):d?jsxRuntime.jsxs("span",{className:"font-normal",children:[f.length," selected"]}):jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1",children:k.map(R=>jsxRuntime.jsxs(oo,{className:"mr-1",children:[R.label,jsxRuntime.jsx("button",{type:"button",className:"ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",onKeyDown:C=>{C.key==="Enter"&&(C.preventDefault(),C.stopPropagation(),x(R.value));},onMouseDown:C=>{C.preventDefault(),C.stopPropagation();},onClick:C=>{C.preventDefault(),C.stopPropagation(),x(R.value);},children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},R.value))}),jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),jsxRuntime.jsx(ue,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",children:jsxRuntime.jsxs(cmdk.Command,{className:"overflow-hidden rounded-md",children:[jsxRuntime.jsxs("div",{className:"flex items-center border-b px-3",children:[jsxRuntime.jsx(cmdk.Command.Input,{value:v,onValueChange:N,placeholder:i,className:"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"}),f.length>0&&jsxRuntime.jsx("button",{type:"button",onClick:S,className:"ml-2 text-xs text-muted-foreground hover:text-foreground",children:"Clear"})]}),jsxRuntime.jsxs(cmdk.Command.List,{className:"max-h-[200px] overflow-y-auto p-1",children:[M.length===0&&jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:s}),M.map(R=>{let C=f.includes(R.value),D=R.disabled||!C&&l!==void 0&&f.length>=l;return jsxRuntime.jsxs(cmdk.Command.Item,{value:R.value,disabled:D,onSelect:()=>P(R.value),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("div",{className:o("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",C?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),R.label]},R.value)})]})]})})]})});bm.displayName="MultiSelect";var vm=U__namespace.forwardRef(({options:e,value:t,defaultValue:a="",onValueChange:r,placeholder:n="Select...",searchPlaceholder:i="Search...",emptyText:s="No results found.",disabled:l=false,clearable:d=false,className:m},u)=>{let[c,g]=U__namespace.useState(false),[p,v]=U__namespace.useState(""),[N,b]=U__namespace.useState(a),h=t!==void 0,w=h?t:N,f=S=>{h||b(S),r?.(S);},y=S=>{f(d&&w===S?"":S),g(false),v("");},P=e.find(S=>S.value===w),x=e.filter(S=>S.label.toLowerCase().includes(p.toLowerCase()));return jsxRuntime.jsxs(ve,{open:c,onOpenChange:g,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs(O,{ref:u,variant:"bordered",role:"combobox","aria-expanded":c,disabled:l,className:o("w-full justify-between font-normal",!w&&"text-muted-foreground",m),children:[P?P.label:n,jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),jsxRuntime.jsx(ue,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",children:jsxRuntime.jsxs(cmdk.Command,{className:"overflow-hidden rounded-md",children:[jsxRuntime.jsx("div",{className:"flex items-center border-b px-3",children:jsxRuntime.jsx(cmdk.Command.Input,{value:p,onValueChange:v,placeholder:i,className:"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"})}),jsxRuntime.jsxs(cmdk.Command.List,{className:"max-h-[200px] overflow-y-auto p-1",children:[x.length===0&&jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:s}),x.map(S=>jsxRuntime.jsxs(cmdk.Command.Item,{value:S.value,disabled:S.disabled,onSelect:()=>y(S.value),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",w===S.value?"opacity-100":"opacity-0")}),S.label]},S.value))]})]})})]})});vm.displayName="Combobox";var xm=U__namespace.forwardRef(({value:e,defaultValue:t,onValueChange:a,placeholder:r="Pick a date",dateFormat:n="PPP",disabled:i=false,minDate:s,maxDate:l,className:d},m)=>{let[u,c]=U__namespace.useState(false),[g,p]=U__namespace.useState(t),v=e!==void 0,N=v?e:g,b=h=>{v||p(h),a?.(h),c(false);};return jsxRuntime.jsxs(ve,{open:u,onOpenChange:c,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs(O,{ref:m,variant:"bordered",disabled:i,className:o("w-full justify-start text-left font-normal",!N&&"text-muted-foreground",d),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),N?dateFns.format(N,n):r]})}),jsxRuntime.jsx(ue,{className:"w-auto p-0",align:"start",children:jsxRuntime.jsx(yr,{mode:"single",selected:N,onSelect:b,disabled:h=>!!(s&&h<s||l&&h>l),initialFocus:true})})]})});xm.displayName="DatePicker";var Nm=classVarianceAuthority.cva("flex -space-x-2",{variants:{size:{sm:"-space-x-2",md:"-space-x-2.5",lg:"-space-x-3"}},defaultVariants:{size:"md"}}),ym=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"}}),Pm=U__namespace.forwardRef(({className:e,items:t,max:a=5,size:r,showTooltips:n=false,...i},s)=>{let l=t.slice(0,a),d=t.length-a,m=(c,g)=>{let p=jsxRuntime.jsxs(za,{className:o(ym({size:r})),children:[c.src&&jsxRuntime.jsx(gr,{src:c.src,alt:c.alt||""}),jsxRuntime.jsx(Ba,{className:"text-xs",children:c.fallback||c.alt?.charAt(0)?.toUpperCase()||"?"})]},g);return n&&c.alt?jsxRuntime.jsxs(Oa,{children:[jsxRuntime.jsx(Ga,{asChild:true,children:p}),jsxRuntime.jsx(ca,{className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",children:c.alt})]},g):p},u=jsxRuntime.jsxs("div",{ref:s,className:o(Nm({size:r,className:e})),...i,children:[l.map((c,g)=>m(c,g)),d>0&&jsxRuntime.jsx(za,{className:o(ym({size:r})),children:jsxRuntime.jsxs(Ba,{className:"bg-muted text-muted-foreground",children:["+",d]})})]});return n?jsxRuntime.jsx(Fa,{delayDuration:300,children:u}):u});Pm.displayName="AvatarGroup";var Cm=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"}}),Sm=U__namespace.forwardRef(({className:e,value:t,defaultValue:a=0,onValueChange:r,max:n=5,size:i,icon:s="star",allowHalf:l=false,readOnly:d=false,disabled:m=false,filledColor:u,emptyColor:c,...g},p)=>{let[v,N]=U__namespace.useState(a),[b,h]=U__namespace.useState(null),w=t!==void 0,f=w?t:v,y=b!==null?b:f,P=T=>{d||m||(w||N(T),r?.(T));},x=(T,I=false)=>{let L=l&&I?T+.5:T+1;P(L);},S=(T,I)=>{if(d||m)return;let L=T.currentTarget.getBoundingClientRect(),V=l&&T.clientX<L.left+L.width/2;h(V?I+.5:I+1);},k=()=>{h(null);},M=s==="heart"?lucideReact.Heart:lucideReact.Star,R=T=>y>=T+1?"full":y>=T+.5?"half":"empty",C=u?{color:u,fill:u}:{},D=c?{color:c}:{};return jsxRuntime.jsx("div",{ref:p,className:o(Cm({size:i,className:e}),m&&"opacity-50 cursor-not-allowed"),onMouseLeave:k,role:"radiogroup","aria-label":"Rating",...g,children:Array.from({length:n},(T,I)=>{let L=R(I);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 E=V.currentTarget.getBoundingClientRect(),H=l&&V.clientX<E.left+E.width/2;x(I,H);},onMouseMove:V=>S(V,I),disabled:m||d,"aria-label":`Rate ${I+1} out of ${n}`,role:"radio","aria-checked":f===I+1,children:[jsxRuntime.jsx(M,{className:o("text-muted-foreground/30",L!=="empty"&&"absolute inset-0"),style:L==="empty"?D:void 0}),L!=="empty"&&jsxRuntime.jsx(M,{className:o("text-yellow-500 fill-yellow-500",s==="heart"&&"text-red-500 fill-red-500",L==="half"&&"clip-path-half"),style:{...C,clipPath:L==="half"?"inset(0 50% 0 0)":void 0}})]},I)})})});Sm.displayName="Rating";var AR="16rem",HR="18rem",zR="3rem",BR="b",Tm=U__namespace.createContext(null);function No(){let e=U__namespace.useContext(Tm);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var Mm=U__namespace.forwardRef(({defaultOpen:e=true,open:t,onOpenChange:a,className:r,style:n,children:i,...s},l)=>{let[d,m]=U__namespace.useState(false),[u,c]=U__namespace.useState(false),[g,p]=U__namespace.useState(e),v=t??g,N=U__namespace.useCallback(f=>{let y=typeof f=="function"?f(v):f;a?a(y):p(y);},[a,v]);U__namespace.useEffect(()=>{let f=()=>{m(window.innerWidth<768);};return f(),window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)},[]);let b=U__namespace.useCallback(()=>d?c(f=>!f):N(f=>!f),[d,N,c]);U__namespace.useEffect(()=>{let f=y=>{y.key===BR&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),b());};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[b]);let h=v?"expanded":"collapsed",w=U__namespace.useMemo(()=>({state:h,open:v,setOpen:N,isMobile:d,openMobile:u,setOpenMobile:c,toggleSidebar:b}),[h,v,N,d,u,c,b]);return jsxRuntime.jsx(Tm.Provider,{value:w,children:jsxRuntime.jsx(Fa,{delayDuration:0,children:jsxRuntime.jsx("div",{ref:l,style:{"--sidebar-width":AR,"--sidebar-width-icon":zR,...n},className:o("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),...s,children:i})})})});Mm.displayName="SidebarProvider";var km=U__namespace.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:r,children:n,...i},s)=>{let{isMobile:l,state:d,openMobile:m,setOpenMobile:u}=No();return a==="none"?jsxRuntime.jsx("div",{ref:s,className:o("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),...i,children:n}):l?jsxRuntime.jsx(uo,{open:m,onOpenChange:u,children:jsxRuntime.jsx(br,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":HR},side:e,children:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:n})})}):jsxRuntime.jsxs("div",{ref:s,className:"group peer hidden md:block text-sidebar-foreground","data-state":d,"data-collapsible":d==="collapsed"?a:"","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",r),...i,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:n})})]})});km.displayName="Sidebar";var Dm=U__namespace.forwardRef(({className:e,onClick:t,...a},r)=>{let{toggleSidebar:n}=No();return jsxRuntime.jsxs(O,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:o("h-7 w-7",e),onClick:i=>{t?.(i),n();},...a,children:[jsxRuntime.jsx(lucideReact.PanelLeft,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Dm.displayName="SidebarTrigger";var Vm=U__namespace.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:r}=No();return jsxRuntime.jsx("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,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})});Vm.displayName="SidebarRail";var Lm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("main",{ref:a,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}));Lm.displayName="SidebarInset";var Im=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"header",className:o("flex flex-col gap-2 p-2",e),...t}));Im.displayName="SidebarHeader";var Em=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"footer",className:o("flex flex-col gap-2 p-2",e),...t}));Em.displayName="SidebarFooter";var Am=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"separator",className:o("mx-2 h-px w-auto bg-sidebar-border",e),...t}));Am.displayName="SidebarSeparator";var Hm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"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}));Hm.displayName="SidebarContent";var zm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"group",className:o("relative flex w-full min-w-0 flex-col p-2",e),...t}));zm.displayName="SidebarGroup";var Bm=U__namespace.forwardRef(({className:e,asChild:t=false,...a},r)=>jsxRuntime.jsx(t?reactSlot.Slot:"div",{ref:r,"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),...a}));Bm.displayName="SidebarGroupLabel";var Fm=U__namespace.forwardRef(({className:e,asChild:t=false,...a},r)=>jsxRuntime.jsx(t?reactSlot.Slot:"button",{ref:r,"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),...a}));Fm.displayName="SidebarGroupAction";var Om=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"group-content",className:o("w-full text-sm",e),...t}));Om.displayName="SidebarGroupContent";var Gm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ul",{ref:a,"data-sidebar":"menu",className:o("flex w-full min-w-0 flex-col gap-1",e),...t}));Gm.displayName="SidebarMenu";var Wm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("li",{ref:a,"data-sidebar":"menu-item",className:o("group/menu-item relative",e),...t}));Wm.displayName="SidebarMenuItem";var $m=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"}}),_m=U__namespace.forwardRef(({asChild:e=false,isActive:t=false,variant:a="solid",size:r="md",tooltip:n,className:i,...s},l)=>{let d=e?reactSlot.Slot:"button",{isMobile:m,state:u}=No(),c=jsxRuntime.jsx(d,{ref:l,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:o($m({variant:a,size:r}),i),...s});return n?(typeof n=="string"&&(n={children:n}),jsxRuntime.jsxs(Oa,{children:[jsxRuntime.jsx(Ga,{asChild:true,children:c}),jsxRuntime.jsx(ca,{side:"right",align:"center",hidden:u!=="collapsed"||m,...n})]})):c});_m.displayName="SidebarMenuButton";var Km=U__namespace.forwardRef(({className:e,asChild:t=false,showOnHover:a=false,...r},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",a&&"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),...r}));Km.displayName="SidebarMenuAction";var Um=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"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}));Um.displayName="SidebarMenuBadge";var Ym=U__namespace.forwardRef(({className:e,showIcon:t=false,...a},r)=>{let n=U__namespace.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxRuntime.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:o("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,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}})]})});Ym.displayName="SidebarMenuSkeleton";var jm=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ul",{ref:a,"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}));jm.displayName="SidebarMenuSub";var Xm=U__namespace.forwardRef(({...e},t)=>jsxRuntime.jsx("li",{ref:t,...e}));Xm.displayName="SidebarMenuSubItem";var qm=U__namespace.forwardRef(({asChild:e=false,size:t="md",isActive:a,className:r,...n},i)=>jsxRuntime.jsx(e?reactSlot.Slot:"a",{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,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",r),...n}));qm.displayName="SidebarMenuSubButton";var Jm=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}}),OR=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"}}),ep=U__namespace.forwardRef(({className:e,variant:t,color:a,size:r,radius:n,clickable:i,startContent:s,endContent:l,closable:d,onClose:m,disabled:u,avatar:c,children:g,onClick:p,...v},N)=>{let b=i||!!p,h=w=>{w.stopPropagation(),m?.();};return jsxRuntime.jsxs("div",{ref:N,role:b?"button":void 0,tabIndex:b&&!u?0:void 0,"aria-disabled":u,onClick:u?void 0:p,onKeyDown:b&&!u?w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),p?.(w));}:void 0,className:o(Jm({variant:t,color:a,size:r,radius:n,clickable:b}),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:g}),l&&jsxRuntime.jsx("span",{className:"shrink-0",children:l}),d&&jsxRuntime.jsx("button",{type:"button","aria-label":"Remove",onClick:h,disabled:u,className:o(OR({size:r})),children:jsxRuntime.jsx(lucideReact.X,{})})]})});ep.displayName="Chip";var UR=({className:e,direction:t="horizontal",...a})=>jsxRuntime.jsx(reactResizablePanels.Group,{orientation:t,className:o("flex h-full w-full data-[orientation=vertical]:flex-col",e),...a}),YR=reactResizablePanels.Panel,jR=({withHandle:e,className:t,...a})=>jsxRuntime.jsx(reactResizablePanels.Separator,{className:o("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[orientation=vertical]:h-px data-[orientation=vertical]:w-full data-[orientation=vertical]:after:left-0 data-[orientation=vertical]:after:h-1 data-[orientation=vertical]:after:w-full data-[orientation=vertical]:after:-translate-y-1/2 data-[orientation=vertical]:after:translate-x-0 [&[data-orientation=vertical]>div]:rotate-90",t),...a,children:e&&jsxRuntime.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-2.5 w-2.5"})})});var rp=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"}}),op=U__namespace.forwardRef(({className:e,size:t,count:a=3,...r},n)=>jsxRuntime.jsx("span",{ref:n,role:"status","aria-label":"Loading",className:o(rp({size:t,className:e})),...r,children:Array.from({length:a}).map((i,s)=>jsxRuntime.jsx("span",{className:"rounded-full bg-current animate-dots-bounce",style:{animationDelay:`${s*.16}s`}},s))}));op.displayName="Dots";var ip=classVarianceAuthority.cva("",{variants:{size:{sm:"h-4 w-4",md:"h-8 w-8",lg:"h-12 w-12",xl:"h-16 w-16"}},defaultVariants:{size:"md"}}),sp=U__namespace.forwardRef(({className:e,size:t,value:a,strokeWidth:r=4,showValue:n=false,label:i,...s},l)=>{let d=a===void 0,m=50-r/2,u=2*Math.PI*m,c=d?0:u-Math.min(100,Math.max(0,a))/100*u;return jsxRuntime.jsxs("svg",{ref:l,viewBox:"0 0 100 100",className:o(ip({size:t,className:e}),d&&"animate-spin"),role:"progressbar","aria-valuenow":d?void 0:a,"aria-valuemin":0,"aria-valuemax":100,...s,children:[jsxRuntime.jsx("circle",{cx:"50",cy:"50",r:m,fill:"none",stroke:"currentColor",strokeWidth:r,className:"text-muted opacity-20"}),jsxRuntime.jsx("circle",{cx:"50",cy:"50",r:m,fill:"none",stroke:"currentColor",strokeWidth:r,strokeLinecap:"round",strokeDasharray:u,strokeDashoffset:d?u*.75:c,className:"text-primary transition-[stroke-dashoffset] duration-300 ease-in-out",style:{transformOrigin:"center",transform:"rotate(-90deg)"}}),n&&!d&&jsxRuntime.jsx("text",{x:"50",y:"50",textAnchor:"middle",dominantBaseline:"central",className:"fill-current text-[0.65rem] font-medium",children:i??`${Math.round(a)}%`})]})});sp.displayName="CircularProgress";var lp=U__namespace.createContext(null),e0=()=>{let e=U__namespace.useContext(lp);if(!e)throw new Error("OTP components must be used within InputOTP");return e},dp=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"}}),cp=U__namespace.forwardRef(({className:e,containerClassName:t,maxLength:a,value:r,defaultValue:n="",onChange:i,onComplete:s,pattern:l,disabled:d=false,size:m,children:u,...c},g)=>{let[p,v]=U__namespace.useState(n),[N,b]=U__namespace.useState(0),[h,w]=U__namespace.useState(false),f=U__namespace.useRef(null),y=r!==void 0?r:p;U__namespace.useImperativeHandle(g,()=>f.current),U__namespace.useEffect(()=>{b(Math.min(y.length,a-1));},[y,a]),U__namespace.useEffect(()=>{y.length===a&&s&&s(y);},[y,a,s]);let P=C=>{let D=C.target.value;if(l&&D){let T=new RegExp(l.replace("^","").replace("$","").replace("+",""));D=D.split("").filter(I=>T.test(I)).join("");}D=D.slice(0,a),r===void 0&&v(D),i?.(D);},x=C=>{C.key==="ArrowLeft"?b(D=>Math.max(0,D-1)):C.key==="ArrowRight"&&b(D=>Math.min(y.length,a-1,D+1));},S=()=>{f.current?.focus();},k=()=>{w(true),b(Math.min(y.length,a-1));},M=()=>{w(false);},R={value:y,activeIndex:h?N:-1,maxLength:a,disabled:d};return jsxRuntime.jsx(lp.Provider,{value:R,children:jsxRuntime.jsxs("div",{className:o(dp({size:m}),t),onClick:S,"data-otp-container":true,children:[jsxRuntime.jsx("input",{ref:f,type:"text",inputMode:"numeric",autoComplete:"one-time-code",value:y,onChange:P,onKeyDown:x,onFocus:k,onBlur:M,disabled:d,maxLength:a,className:o("absolute opacity-0 pointer-events-none w-0 h-0",e),...c}),u]})})});cp.displayName="InputOTP";var mp=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex items-center",e),...t}));mp.displayName="InputOTPGroup";var pp=U__namespace.forwardRef(({index:e,className:t,...a},r)=>{let{value:n,activeIndex:i,disabled:s}=e0(),l=n[e]||"",d=i===e,m=d&&n.length===e;return jsxRuntime.jsxs("div",{ref:r,"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 ring-2 ring-ring ring-offset-background",s&&"cursor-not-allowed opacity-50",t),...a,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"})})]})});pp.displayName="InputOTPSlot";var up=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,role:"separator",className:o("text-muted-foreground",e),...t,children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}));up.displayName="InputOTPSeparator";var bp=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"}}),vp=U__namespace.forwardRef(({className:e,variant:t,size:a,value:r=[],onChange:n,placeholder:i="Add tag...",maxTags:s,minTagLength:l=1,maxTagLength:d=50,triggerKeys:m=["Enter",",","Tab"],allowDuplicates:u=false,disabled:c,readOnly:g,renderTag:p,...v},N)=>{let[b,h]=U__namespace.useState(""),w=U__namespace.useRef(null);U__namespace.useImperativeHandle(N,()=>w.current);let f=R=>{let C=R.trim();if(C.length<l||C.length>d||s&&r.length>=s||!u&&r.some(T=>T.text.toLowerCase()===C.toLowerCase()))return;let D={id:crypto.randomUUID(),text:C};n?.([...r,D]),h("");},y=R=>{c||g||n?.(r.filter(C=>C.id!==R));},P=R=>{if(m.includes(R.key)){if(R.key==="Tab"&&!b)return;R.preventDefault(),f(b);}R.key==="Backspace"&&!b&&r.length>0&&y(r[r.length-1].id);},x=R=>{let C=R.target.value;if(C.includes(",")){C.split(",").forEach(T=>{T.trim()&&f(T);});return}h(C);},S=R=>{R.preventDefault(),R.clipboardData.getData("text").split(/[,\n\t]/).filter(Boolean).forEach(T=>{f(T);});},k=()=>{w.current?.focus();},M=s?r.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:k,children:[r.map(R=>p?p(R,()=>y(R.id)):jsxRuntime.jsxs("span",{className:o(bp({variant:t,size:a})),children:[R.text,!c&&!g&&jsxRuntime.jsx("button",{type:"button",onClick:C=>{C.stopPropagation(),y(R.id);},className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${R.text}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},R.id)),!M&&!g&&jsxRuntime.jsx("input",{ref:w,type:"text",value:b,onChange:x,onKeyDown:P,onPaste:S,placeholder:r.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})]})});vp.displayName="TagInput";var xp=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"}}),yp=U__namespace.forwardRef(({className:e,size:t,icon:a,title:r,description:n,action:i,children:s,...l},d)=>jsxRuntime.jsxs("div",{ref:d,className:o(xp({size:t,className:e})),...l,children:[a&&jsxRuntime.jsx("div",{className:"text-muted-foreground [&>svg]:h-10 [&>svg]:w-10",children:a}),r&&jsxRuntime.jsx("h3",{className:"text-lg font-semibold text-foreground",children:r}),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]}));yp.displayName="EmptyState";var wp=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"}}),Np=U__namespace.forwardRef(({className:e,variant:t,label:a,value:r,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(wp({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:a}),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:r}),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})]})});Np.displayName="StatCard";var Cp=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"}}),Sp=U__namespace.forwardRef(({className:e,variant:t,size:a,...r},n)=>jsxRuntime.jsx("div",{ref:n,role:"list",className:o(Cp({variant:t,size:a,className:e})),...r}));Sp.displayName="List";var Tp=classVarianceAuthority.cva("flex items-center gap-3 transition-colors",{variants:{interactive:{true:"cursor-pointer hover:bg-muted/50",false:""}},defaultVariants:{interactive:false}}),Mp=U__namespace.forwardRef(({className:e,interactive:t,leading:a,trailing:r,children:n,...i},s)=>jsxRuntime.jsxs("div",{ref:s,role:"listitem",className:o(Tp({interactive:t,className:e})),...i,children:[a&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground",children:a}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:n}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]}));Mp.displayName="ListItem";var kp=U__namespace.forwardRef(({className:e,primary:t,secondary:a,children:r,...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}),a&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground truncate",children:a}),r]}));kp.displayName="ListItemText";var Lp=classVarianceAuthority.cva("flex flex-col",{variants:{position:{left:"",right:"",alternate:""}},defaultVariants:{position:"left"}}),Ip=U__namespace.forwardRef(({className:e,position:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,"data-position":t,className:o(Lp({position:t,className:e})),...a}));Ip.displayName="Timeline";var Ep=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"}}),Ap=U__namespace.forwardRef(({className:e,variant:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o(Ep({variant:t,className:e})),...a}));Ap.displayName="TimelineItem";var Hp=U__namespace.forwardRef(({className:e,dot:t,showConnector:a=true,...r},n)=>jsxRuntime.jsxs("div",{ref:n,className:o("flex flex-col items-center",e),...r,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}),a&&jsxRuntime.jsx("div",{className:"w-0.5 flex-1 bg-border"})]}));Hp.displayName="TimelineSeparator";var zp=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex-1 pt-0.5",e),...t}));zp.displayName="TimelineContent";var Bp=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex-1 text-sm text-muted-foreground pt-0.5",e),...t}));Bp.displayName="TimelineOpposite";var Op=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}}),Gp=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"}}),Wp=U__namespace.createContext({}),$p=U__namespace.forwardRef(({className:e,size:t,fullWidth:a,children:r,...n},i)=>jsxRuntime.jsx(vr__namespace.Root,{ref:i,type:"single",rovingFocus:false,className:o(Op({size:t,fullWidth:a,className:e})),...n,children:jsxRuntime.jsx(Wp.Provider,{value:{size:t??"md"},children:r})}));$p.displayName="SegmentedControl";var _p=U__namespace.forwardRef(({className:e,children:t,...a},r)=>{let{size:n}=U__namespace.useContext(Wp);return jsxRuntime.jsx(vr__namespace.Item,{ref:r,className:o(Gp({size:n}),"flex-1",e),...a,children:t})});_p.displayName="SegmentedControlItem";var Kp=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"}}),Up=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},Vn=e=>{if(e===0)return "0 Bytes";let t=1024,a=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,r)).toFixed(2))+" "+a[r]},Yp=(e,t,a)=>{let r=[];return t&&e.size>t&&r.push({code:"file-too-large",message:`File is larger than ${Vn(t)}`}),a&&a.length>0&&(a.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})||r.push({code:"file-invalid-type",message:`File type not accepted. Accepted: ${a.join(", ")}`})),r},jp=U__namespace.forwardRef(({className:e,variant:t,size:a,onFilesChange:r,onFilesRejected:n,onFileRemove:i,files:s=[],showFileList:l=true,children:d,maxSize:m=10*1024*1024,accept:u,multiple:c=true,disabled:g,...p},v)=>{let[N,b]=U__namespace.useState(false),[h,w]=U__namespace.useState(false),[f,y]=U__namespace.useState([]),P=U__namespace.useRef(null),x=U__namespace.useCallback(V=>{if(!V||V.length===0)return;let E=Array.from(V),H=[],B=[];(c?E:[E[0]]).forEach(Q=>{let te=Yp(Q,m,u);te.length>0?B.push({file:Q,errors:te}):H.push(Q);}),y(B),H.length>0&&r?.(H),B.length>0&&n?.(B);},[m,u,c,r,n]),S=U__namespace.useCallback(V=>{if(V.preventDefault(),V.stopPropagation(),!g&&(b(true),V.dataTransfer.items)){let H=Array.from(V.dataTransfer.items).some(B=>{if(B.kind!=="file")return true;if(u&&u.length>0){let A=B.type;return !u.some(Q=>Q.endsWith("/*")?A.startsWith(Q.slice(0,-2)):A===Q)}return false});w(H);}},[g,u]),k=U__namespace.useCallback(V=>{V.preventDefault(),V.stopPropagation(),!g&&(V.dataTransfer.dropEffect="copy");},[g]),M=U__namespace.useCallback(V=>{V.preventDefault(),V.stopPropagation();let E=V.currentTarget.getBoundingClientRect(),H=V.clientX,B=V.clientY;(H<E.left||H>E.right||B<E.top||B>E.bottom)&&(b(false),w(false));},[]),R=U__namespace.useCallback(V=>{V.preventDefault(),V.stopPropagation(),b(false),w(false),!g&&x(V.dataTransfer.files);},[g,x]),C=U__namespace.useCallback(()=>{g||P.current?.click();},[g]),D=U__namespace.useCallback(V=>{x(V.target.files),V.target.value="";},[x]),T=U__namespace.useCallback(V=>{g||(V.key==="Enter"||V.key===" ")&&(V.preventDefault(),P.current?.click());},[g]),I=h?"error":N?"active":t,L=u?.join(",");return jsxRuntime.jsxs("div",{ref:v,className:o("space-y-4",e),...p,children:[jsxRuntime.jsxs("div",{role:"button",tabIndex:g?-1:0,onDragEnter:S,onDragOver:k,onDragLeave:M,onDrop:R,onClick:C,onKeyDown:T,className:o(Kp({variant:I,size:a}),g&&"opacity-50 cursor-not-allowed",!g&&"cursor-pointer focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"),"aria-disabled":g,children:[jsxRuntime.jsx("input",{ref:P,type:"file",accept:L,multiple:c,disabled:g,onChange:D,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:N?"Drop files here":"Drop files or click to upload"}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[m&&`Max ${Vn(m)}`,u&&u.length>0&&` \u2022 ${u.join(", ")}`]})]})]})]}),f.length>0&&jsxRuntime.jsx("div",{className:"rounded-md bg-danger/10 p-3 text-sm text-danger",children:f.map(({file:V,errors:E})=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"font-medium",children:V.name}),":"," ",E.map(H=>H.message).join(", ")]},V.name))}),l&&s.length>0&&jsxRuntime.jsx("div",{className:"space-y-2",children:s.map(V=>{let E=Up(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(E,{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:[Vn(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(bn,{value:V.progress,className:"mt-2 h-1"})]}),jsxRuntime.jsxs(O,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",onClick:H=>{H.stopPropagation(),i?.(V.file);},children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Remove"})]})]},V.id)})})]})});jp.displayName="FileUpload";var Zp=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}}),y0=`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")`,Mr=U__namespace.forwardRef(({color:e,isSelected:t,showTransparency:a=true,onSelect:r,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),r?.(e);},className:o(Zp({size:n,shape:i,interactive:s??(!!r||!!d)}),t&&"ring-2 ring-ring ring-offset-2",l),style:{backgroundImage:a?y0:void 0,backgroundSize:a?"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}})}));Mr.displayName="ColorSwatch";var N0=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"],P0={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"},Qp=U__namespace.forwardRef(({value:e,defaultValue:t="#3b82f6",onChange:a,disabled:r,presets:n=N0,showInput:i=true,size:s="md",className:l},d)=>{let[m,u]=U__namespace.useState(e??t);U__namespace.useEffect(()=>{e!==void 0&&u(e);},[e]);let c=p=>{u(p),a?.(p);},g=p=>{u(p),a?.(p);};return jsxRuntime.jsxs(ve,{children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsx("button",{ref:d,disabled:r,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",P0[s],l),style:{backgroundColor:m},"aria-label":`Color picker, current color: ${m}`})}),jsxRuntime.jsx(ue,{className:"w-auto p-3",align:"start",children:jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:m,onChange:c,className:"!w-[200px]"}),i&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(Ha,{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:m}}),jsxRuntime.jsx(reactColorful.HexColorInput,{id:"color-input",color:m,onChange:c,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(Ha,{className:"text-xs",children:"Presets"}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1.5",children:n.map(p=>jsxRuntime.jsx(Mr,{color:p,size:"sm",isSelected:m.toLowerCase()===p.toLowerCase(),onSelect:g},p))})]})]})})]})});Qp.displayName="ColorPicker";var Jp=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"}}),xs=e=>String(e).padStart(2,"0"),k0=e=>{let[t,a]=e.split(":").map(Number);return {hours:t||0,minutes:a||0}},D0=(e,t)=>`${xs(e)}:${xs(t)}`,eu=U__namespace.forwardRef(({className:e,size:t,value:a,onChange:r,use24Hour:n=true,minuteStep:i=1,showPicker:s=true,minTime:l,maxTime:d,disabled:m,...u},c)=>{let[g,p]=U__namespace.useState(a??""),[v,N]=U__namespace.useState(false);U__namespace.useEffect(()=>{a!==void 0&&p(a);},[a]);let{hours:b,minutes:h}=k0(g||"00:00"),w=M=>{let R=M.target.value;p(R),/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/.test(R)&&r?.(R);},f=(M,R)=>{let C=Math.max(0,Math.min(23,M)),D=Math.max(0,Math.min(59,R)),T=D0(C,D);p(T),r?.(T);},y=()=>f(b+1,h),P=()=>f(b-1,h),x=()=>f(b,h+i),S=()=>f(b,h-i),k=({value:M,onIncrement:R,onDecrement:C})=>jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx(O,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:R,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:xs(M)}),jsxRuntime.jsx(O,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:C,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:g,onChange:w,disabled:m,className:o(Jp({size:t}),s&&"pr-10","[&::-webkit-calendar-picker-indicator]:hidden",e),...u}),s&&jsxRuntime.jsxs(ve,{open:v,onOpenChange:N,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs(O,{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(ue,{className:"w-auto p-4",align:"end",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(k,{value:b,onIncrement:y,onDecrement:P,max:23}),jsxRuntime.jsx("div",{className:"text-2xl font-bold text-muted-foreground",children:":"}),jsxRuntime.jsx(k,{value:h,onIncrement:x,onDecrement:S,max:59})]}),jsxRuntime.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[jsxRuntime.jsx(O,{variant:"bordered",size:"sm",onClick:()=>{let M=new Date;f(M.getHours(),M.getMinutes());},children:"Now"}),jsxRuntime.jsx(O,{size:"sm",onClick:()=>N(false),children:"Done"})]})]})]})]})});eu.displayName="TimeInput";var tu=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"}}),L0=(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}},ys=(e,t,a,r)=>{let n=e.toFixed(t),[i,s]=n.split("."),l=i.replace(/\B(?=(\d{3})+(?!\d))/g,a);return s?`${l}${r}${s}`:l},au=(e,t,a)=>{if(!e)return;let r=e.replace(new RegExp(`\\${t}`,"g"),"");r=r.replace(a,"."),r=r.replace(/[^0-9.-]/g,"");let n=parseFloat(r);return isNaN(n)?void 0:n},ru=U__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r,onChange:n,currency:i="USD",locale:s="en-US",decimals:l=2,min:d,max:m,showCurrency:u=true,currencyPosition:c="prefix",currencySymbol:g,thousandSeparator:p=",",decimalSeparator:v=".",disabled:N,placeholder:b,...h},w)=>{let[f,y]=U__namespace.useState(r),[P,x]=U__namespace.useState(""),[S,k]=U__namespace.useState(false),M=a!==void 0?a:f,R=g??L0(i,s);U__namespace.useEffect(()=>{!S&&M!==void 0&&x(ys(M,l,p,v));},[M,l,p,v,S]);let C=V=>{let E=V.target.value;if(!E){x(""),a===void 0&&y(void 0),n?.(void 0);return}if(!new RegExp(`^[0-9${p}${v}.-]*$`).test(E))return;x(E);let B=au(E,p,v);if(B!==void 0){let A=B;d!==void 0&&B<d&&(A=d),m!==void 0&&B>m&&(A=m),a===void 0&&y(A),n?.(A);}},D=()=>{k(true),M!==void 0&&x(M.toString().replace(".",v));},T=()=>{k(false),x(M!==void 0?ys(M,l,p,v):"");},I=u&&c==="prefix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pr-1",children:R}),L=u&&c==="suffix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pl-1",children:R});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[I&&jsxRuntime.jsx("div",{className:"absolute left-3 pointer-events-none",children:I}),jsxRuntime.jsx("input",{ref:w,type:"text",inputMode:"decimal",value:P,onChange:C,onFocus:D,onBlur:T,disabled:N,placeholder:b??`0${v}${"0".repeat(l)}`,className:o(tu({size:t}),I&&"pl-8",L&&"pr-8","text-right",e),...h}),L&&jsxRuntime.jsx("div",{className:"absolute right-3 pointer-events-none",children:L})]})});ru.displayName="CurrencyInput";var ou=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 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"}}),Rs={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:"#####-####"}},A0=(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}},Ra=e=>["#","A","*"].includes(e),Ln=(e,t,a)=>{let r="",n=0;for(let i=0;i<t.length&&n<=e.length;i++){let s=t[i];if(Ra(s)){if(n<e.length){let l=e[n];A0(l,s)?(r+=l,n++):(n++,i--);}}else (n<e.length||a)&&(r+=s);}return r},ws=(e,t)=>{let a="";for(let r=0;r<e.length&&r<t.length;r++){let n=t[r];Ra(n)&&(a+=e[r]);}return a},nu=(e,t)=>e.split("").map(a=>Ra(a)?t:a).join(""),H0=(e,t,a)=>{let r=0;for(let l=0;l<a&&l<e.length&&l<t.length;l++)Ra(t[l])&&r++;let i=0,s=0;for(let l=0;l<t.length&&s<r;l++)i++,Ra(t[l])&&s++;for(;i<t.length&&!Ra(t[i]);)i++;return Math.min(i,e.length)},iu=U__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r="",onChange:n,mask:i,maskPlaceholder:s="_",showMaskPlaceholder:l=false,includeMaskChars:d=false,disabled:m,placeholder:u,...c},g)=>{let p=typeof i=="string"&&i in Rs?Rs[i].mask:i,[v,N]=U__namespace.useState(r),[b,h]=U__namespace.useState(""),w=U__namespace.useRef(null),f=a!==void 0?a:v;U__namespace.useImperativeHandle(g,()=>w.current),U__namespace.useEffect(()=>{let S=Ln(f,p,true);h(S);},[f,p]);let y=S=>{let k=S.target.value,M=S.target.selectionStart??0,R=k.replace(/[^\w]/g,""),C=Ln(R,p,true),D=ws(C,p);h(C),a===void 0&&N(d?C:D),n?.(D,C),requestAnimationFrame(()=>{if(w.current){let T=H0(C,p,M);w.current.setSelectionRange(T,T);}});},P=S=>{if(["ArrowLeft","ArrowRight","Home","End","Tab"].includes(S.key)||S.ctrlKey||S.metaKey)return;let k=w.current;if(!k)return;let M=k.selectionStart??0;if(S.key==="Backspace"&&M>0){let R=M-1;for(;R>0&&!Ra(p[R]);)R--;let C=ws(b,p),D=0;for(let L=0;L<R&&L<p.length;L++)Ra(p[L])&&D++;let T=C.slice(0,Math.max(0,D-1))+C.slice(D),I=Ln(T,p,true);h(I),a===void 0&&N(d?I:T),n?.(T,I),S.preventDefault(),requestAnimationFrame(()=>{w.current&&w.current.setSelectionRange(R,R);});}},x=l?nu(p,s):u;return jsxRuntime.jsx("input",{ref:w,type:"text",value:b,onChange:y,onKeyDown:P,disabled:m,placeholder:x,className:o(ou({size:t}),e),...c})});iu.displayName="MaskedInput";var su=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"}}),An={"DD/MM/YYYY":"/","MM/DD/YYYY":"/","YYYY-MM-DD":"-","DD.MM.YYYY":"."},Ps={"DD/MM/YYYY":["day","month","year"],"MM/DD/YYYY":["month","day","year"],"YYYY-MM-DD":["year","month","day"],"DD.MM.YYYY":["day","month","year"]},Ns=(e,t)=>String(e).padStart(t,"0"),En=(e,t)=>{let a=Ns(e.getDate(),2),r=Ns(e.getMonth()+1,2),n=Ns(e.getFullYear(),4),i=An[t],s=Ps[t],l={day:a,month:r,year:n};return s.map(d=>l[d]).join(i)},lu=(e,t)=>{let a=An[t],r=e.split(a);if(r.length!==3)return null;let n=Ps[t],i={};if(n.forEach((l,d)=>{i[l]=parseInt(r[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},O0=e=>e.toLowerCase(),G0=e=>{let t=An[e];return Ps[e].map(r=>r==="year"?"####":"##").join(t)},du=U__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r,onChange:n,format:i="DD/MM/YYYY",minDate:s,maxDate:l,showIcon:d=true,disabled:m,placeholder:u,...c},g)=>{let[p,v]=U__namespace.useState(r??null),[N,b]=U__namespace.useState(""),[h,w]=U__namespace.useState(null),f=U__namespace.useRef(null),y=a!==void 0?a:p;U__namespace.useImperativeHandle(g,()=>f.current),U__namespace.useEffect(()=>{y?(b(En(y,i)),w(null)):b("");},[y,i]);let P=An[i],x=G0(i),S=R=>{let C=R.target.value;C=C.replace(new RegExp(`[^0-9\\${P}]`,"g"),"");let D=C.replace(new RegExp(`\\${P}`,"g"),""),T="",I=0;for(let L=0;L<x.length&&I<D.length;L++)x[L]==="#"?(T+=D[I],I++):T+=x[L];if(b(T),T.length===x.length){let L=lu(T,i);if(L){if(s&&L<s){w(`Date must be after ${En(s,i)}`);return}if(l&&L>l){w(`Date must be before ${En(l,i)}`);return}w(null),a===void 0&&v(L),n?.(L);}else w("Invalid date");}else a===void 0&&v(null),n?.(null),w(null);},k=()=>{N&&N.length!==x.length&&(b(""),w(null),a===void 0&&v(null),n?.(null));},M=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:f,type:"text",inputMode:"numeric",value:N,onChange:S,onBlur:k,disabled:m,placeholder:u??O0(i),className:o(su({size:t}),d&&"pr-10",h&&"border-danger focus-visible:ring-danger",e),"aria-invalid":!!h,"aria-describedby":h?"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(M,"text-muted-foreground")})}),h&&jsxRuntime.jsx("p",{id:"date-error",className:"mt-1 text-xs text-danger",children:h})]})});du.displayName="DateInput";var cu=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"}}),mu=[{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:"##-###-####"}],Hn=(e,t)=>{let a=e.replace(/\D/g,""),r="",n=0;for(let i=0;i<t.length&&n<a.length;i++)t[i]==="#"?(r+=a[n],n++):r+=t[i];return r},_0=e=>e.replace(/#/g,"_"),pu=U__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r="",onChange:n,country:i,defaultCountry:s="TR",onCountryChange:l,countries:d=mu,showCountrySelect:m=true,showDialCode:u=false,disabled:c,placeholder:g,...p},v)=>{let[N,b]=U__namespace.useState(r),[h,w]=U__namespace.useState(i??s),f=a!==void 0?a:N,y=i??h,P=d.find(R=>R.code===y)??d[0],x=Hn(f,P.format),S=R=>{let D=R.target.value.replace(/\D/g,"");a===void 0&&b(D);let T=Hn(D,P.format),I=`${P.dialCode} ${T}`;n?.(D,I,P);};return jsxRuntime.jsxs("div",{className:"flex",children:[m&&jsxRuntime.jsxs(_i,{value:y,onValueChange:R=>{let C=d.find(I=>I.code===R);if(!C)return;i===void 0&&w(R),l?.(C);let D=Hn(f,C.format),T=`${C.dialCode} ${D}`;n?.(f,T,C);},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(Ki,{children:jsxRuntime.jsxs("span",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{children:P.flag}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:P.dialCode})]})})}),jsxRuntime.jsx(sn,{className:"max-h-[300px]",children:d.map(R=>jsxRuntime.jsx(ln,{value:R.code,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:R.flag}),jsxRuntime.jsx("span",{className:"flex-1",children:R.name}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:R.dialCode})]})},R.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:P.dialCode}),jsxRuntime.jsx("input",{ref:v,type:"tel",inputMode:"tel",value:x,onChange:S,disabled:c,placeholder:g??_0(P.format),className:o(cu({size:t}),m&&"rounded-l-none",u&&!m&&"pl-12",e),...p})]})]})});pu.displayName="PhoneInput";var fu=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}}),gu=U__namespace.forwardRef(({className:e,variant:t,size:a,sticky:r,brand:n,children:i,mobileBreakpoint:s="md",...l},d)=>{let[m,u]=U__namespace.useState(false),c={sm:"hidden sm:flex",md:"hidden md:flex",lg:"hidden lg:flex"}[s],g={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden"}[s];return jsxRuntime.jsxs("nav",{ref:d,className:o(fu({variant:t,size:a,sticky:r,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",g),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",g),children:i})]})});gu.displayName="Navbar";var bu=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex items-center gap-2 font-semibold text-lg",e),...t}));bu.displayName="NavbarBrand";var vu=U__namespace.forwardRef(({className:e,justify:t="start",...a},r)=>{let n={start:"justify-start",center:"justify-center",end:"justify-end"}[t];return jsxRuntime.jsx("div",{ref:r,className:o("flex items-center gap-4",n,e),...a})});vu.displayName="NavbarContent";var hu=U__namespace.forwardRef(({className:e,isActive:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex items-center",t&&"text-primary font-medium",e),...a}));hu.displayName="NavbarItem";var xu=U__namespace.forwardRef(({className:e,isActive:t,...a},r)=>jsxRuntime.jsx("a",{ref:r,className:o("text-sm font-medium transition-colors hover:text-primary",t?"text-primary":"text-muted-foreground",e),...a}));xu.displayName="NavbarLink";var Ru=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"}}),wu=U__namespace.forwardRef(({className:e,variant:t,size:a,underline:r,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(Ru({variant:t,size:a,underline:r,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"})]})});wu.displayName="Link";var Pu=classVarianceAuthority.cva("fixed bottom-6 right-6 z-50 flex items-center justify-center rounded-full shadow-lg transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{variant:{solid:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"bg-background border border-border text-foreground hover:bg-accent",ghost:"bg-background/80 backdrop-blur-sm text-foreground hover:bg-accent",soft:"bg-primary/10 text-primary hover:bg-primary/20",surface:"bg-muted text-foreground hover:bg-muted/80"},size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"}},defaultVariants:{variant:"solid",size:"md"}}),Cu=U__namespace.forwardRef(({className:e,variant:t,size:a,visibilityHeight:r=400,smooth:n=true,icon:i,duration:s=300,onClick:l,...d},m)=>{let[u,c]=U__namespace.useState(false);U__namespace.useEffect(()=>{let v=()=>{c(window.scrollY>r);};return v(),window.addEventListener("scroll",v,{passive:true}),()=>window.removeEventListener("scroll",v)},[r]);let g=v=>{n?window.scrollTo({top:0,behavior:"smooth"}):window.scrollTo(0,0),l?.(v);},p={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}[a||"md"];return u?jsxRuntime.jsx("button",{ref:m,type:"button",className:o(Pu({variant:t,size:a,className:e}),"animate-in fade-in zoom-in duration-300"),onClick:g,"aria-label":"Back to top",...d,children:i||jsxRuntime.jsx(lucideReact.ArrowUp,{className:p})}):null});Cu.displayName="BackTop";var rw=$__namespace.Menu,ow=$__namespace.Group,nw=$__namespace.Portal,iw=$__namespace.Sub,sw=$__namespace.RadioGroup,Su=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx($__namespace.Root,{ref:a,className:o("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",e),...t}));Su.displayName=$__namespace.Root.displayName;var Tu=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx($__namespace.Trigger,{ref:a,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}));Tu.displayName=$__namespace.Trigger.displayName;var Mu=U__namespace.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxRuntime.jsxs($__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),...r,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}));Mu.displayName=$__namespace.SubTrigger.displayName;var ku=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx($__namespace.SubContent,{ref:a,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}));ku.displayName=$__namespace.SubContent.displayName;var Du=U__namespace.forwardRef(({className:e,align:t="start",alignOffset:a=-4,sideOffset:r=8,...n},i)=>jsxRuntime.jsx($__namespace.Portal,{children:jsxRuntime.jsx($__namespace.Content,{ref:i,align:t,alignOffset:a,sideOffset:r,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})}));Du.displayName=$__namespace.Content.displayName;var Vu=U__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx($__namespace.Item,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...a}));Vu.displayName=$__namespace.Item.displayName;var Lu=U__namespace.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxRuntime.jsxs($__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:a,...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx($__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));Lu.displayName=$__namespace.CheckboxItem.displayName;var Iu=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs($__namespace.RadioItem,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx($__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Iu.displayName=$__namespace.RadioItem.displayName;var Eu=U__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx($__namespace.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Eu.displayName=$__namespace.Label.displayName;var Au=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx($__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));Au.displayName=$__namespace.Separator.displayName;var Hu=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Hu.displayName="MenubarShortcut";var zu=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"}}),Bu=U__namespace.forwardRef(({className:e,orientation:t,size:a,currentStep:r=0,children:n,...i},s)=>{let l=U__namespace.Children.toArray(n);return jsxRuntime.jsx("div",{ref:s,className:o(zu({orientation:t,size:a,className:e})),...i,children:l.map((d,m)=>U__namespace.isValidElement(d)?U__namespace.cloneElement(d,{...d.props,stepNumber:m+1,status:d.props.status||(m<r?"completed":m===r?"current":"upcoming"),isLast:m===l.length-1,orientation:t,size:a}):d)})});Bu.displayName="Steps";var Fu=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"}}),dw=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"}}),cw=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"}}),Ou=U__namespace.forwardRef(({className:e,orientation:t="horizontal",size:a="md",title:r,description:n,icon:i,status:s="upcoming",stepNumber:l,isLast:d,...m},u)=>jsxRuntime.jsxs("div",{ref:u,className:o(Fu({orientation:t,size:a,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(dw({status:s,size:a})),children:s==="completed"?jsxRuntime.jsx(lucideReact.Check,{className:a==="sm"?"h-3 w-3":a==="lg"?"h-5 w-5":"h-4 w-4"}):i||l}),(r||n)&&jsxRuntime.jsxs("div",{className:"flex flex-col",children:[r&&jsxRuntime.jsx("span",{className:o("font-medium",a==="sm"&&"text-sm",a==="lg"&&"text-lg",s==="upcoming"&&"text-muted-foreground"),children:r}),n&&jsxRuntime.jsx("span",{className:o("text-muted-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm",a==="lg"&&"text-base"),children:n})]})]})}),!d&&jsxRuntime.jsx("div",{className:o(cw({orientation:t,status:s==="completed"?"completed":"upcoming"}),t==="vertical"&&"my-2")})]}));Ou.displayName="Step";function bw({className:e,data:t,columns:a,selectable:r=false,selectedKeys:n,onSelectionChange:i,getRowKey:s=(y,P)=>String(P),sortable:l=false,sortState:d,onSortChange:m,paginated:u=false,pageSizeOptions:c=[10,20,50],paginationState:g,onPaginationChange:p,emptyContent:v="No data",loading:N=false,striped:b=false,hoverable:h=true,...w},f){let[y,P]=U__namespace.useState(new Set),[x,S]=U__namespace.useState({columnId:null,direction:null}),[k,M]=U__namespace.useState({pageIndex:0,pageSize:c[0]||10}),R=n??y,C=d??x,D=g??k,T=z=>{i?i(z):P(z);},I=z=>{m?m(z):S(z);},L=z=>{p?p(z):M(z);},V=U__namespace.useMemo(()=>{if(!C.columnId||!C.direction)return t;let z=a.find(F=>F.id===C.columnId);return z?[...t].sort((F,ae)=>{let G=z.accessor(F),ge=z.accessor(ae);if(G===ge)return 0;if(G==null)return 1;if(ge==null)return -1;let ao=String(G).localeCompare(String(ge),void 0,{numeric:true});return C.direction==="asc"?ao:-ao}):t},[t,C,a]),E=U__namespace.useMemo(()=>{if(!u)return V;let z=D.pageIndex*D.pageSize;return V.slice(z,z+D.pageSize)},[V,u,D]),H=Math.ceil(V.length/D.pageSize),B=z=>{if(z){let F=new Set(E.map((ae,G)=>s(ae,G)));T(F);}else T(new Set);},A=(z,F)=>{let ae=new Set(R);F?ae.add(z):ae.delete(z),T(ae);},Q=E.length>0&&E.every((z,F)=>R.has(s(z,F))),te=E.some((z,F)=>R.has(s(z,F))),J=z=>{if(!a.find(G=>G.id===z)?.sortable&&!l)return;let ae="asc";C.columnId===z&&(C.direction==="asc"?ae="desc":C.direction==="desc"&&(ae=null)),I({columnId:ae?z:null,direction:ae});},ot=z=>C.columnId!==z?jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4 text-muted-foreground/50"}):C.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:f,className:o("w-full",e),...w,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:[r&&jsxRuntime.jsx("th",{className:"h-12 w-12 px-4",children:jsxRuntime.jsx(so,{checked:Q?true:te?"indeterminate":false,onCheckedChange:B,"aria-label":"Select all"})}),a.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&&J(z.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[z.header,F&&ot(z.id)]})},z.id)})]})}),jsxRuntime.jsx("tbody",{className:"[&_tr:last-child]:border-0",children:N?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:a.length+(r?1:0),className:"h-24 text-center text-muted-foreground",children:"Loading..."})}):E.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:a.length+(r?1:0),className:"h-24 text-center text-muted-foreground",children:v})}):E.map((z,F)=>{let ae=s(z,F),G=R.has(ae);return jsxRuntime.jsxs("tr",{className:o("border-b transition-colors",h&&"hover:bg-muted/50",b&&F%2===1&&"bg-muted/30",G&&"bg-muted"),"data-state":G?"selected":void 0,children:[r&&jsxRuntime.jsx("td",{className:"w-12 px-4",children:jsxRuntime.jsx(so,{checked:G,onCheckedChange:ge=>A(ae,!!ge),"aria-label":`Select row ${F+1}`})}),a.map(ge=>jsxRuntime.jsx("td",{className:"p-4 align-middle",children:ge.cell?ge.cell(z,F):ge.accessor(z)},ge.id))]},ae)})})]})}),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:D.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 ",D.pageIndex+1," of ",H||1]}),jsxRuntime.jsxs("div",{className:"flex gap-1",children:[jsxRuntime.jsx("button",{onClick:()=>L({...D,pageIndex:D.pageIndex-1}),disabled:D.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({...D,pageIndex:D.pageIndex+1}),disabled:D.pageIndex>=H-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 vw=U__namespace.forwardRef(bw);var Wu=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"}}),$u=U__namespace.forwardRef(({className:e,size:t,data:a,defaultExpandedIds:r=[],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:g=false,...p},v)=>{let N=U__namespace.useCallback(x=>x.reduce((S,k)=>k.children?.length?[...S,k.id,...N(k.children)]:S,[]),[]),[b,h]=U__namespace.useState(()=>g?N(a):r),w=n??b,f=x=>{i?i(x):h(x);},y=x=>{w.includes(x)?f(w.filter(S=>S!==x)):f([...w,x]);},P=(x,S=0)=>{let k=x.children&&x.children.length>0,M=w.includes(x.id),R=s===x.id,C=()=>{x.disabled||l?.(x);},D=I=>{I.stopPropagation(),k&&y(x.id);},T=()=>x.icon?x.icon:k?M?c:u:m;return jsxRuntime.jsxs("div",{role:"treeitem","aria-expanded":k?M: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",R&&"bg-primary/10 text-primary",x.disabled&&"opacity-50 cursor-not-allowed"),style:{paddingLeft:`calc(${S} * var(--tree-indent) + 8px)`},onClick:C,children:[jsxRuntime.jsx("button",{type:"button",className:o("flex h-5 w-5 items-center justify-center rounded hover:bg-muted",!k&&"invisible"),onClick:D,tabIndex:-1,"aria-label":M?"Collapse":"Expand",children:M?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:T()}),jsxRuntime.jsx("span",{className:"truncate",children:x.name})]}),k&&M&&jsxRuntime.jsx("div",{role:"group",children:x.children.map(I=>P(I,S+1))})]},x.id)};return jsxRuntime.jsx("div",{ref:v,role:"tree",className:o(Wu({size:t,className:e})),...p,children:a.map(x=>P(x))})});$u.displayName="TreeView";var Ku=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{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"}}),Mw=({text:e,query:t})=>{if(!t)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let a=new RegExp(`(${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi"),r=e.split(a);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.map((n,i)=>a.test(n)?jsxRuntime.jsx("mark",{className:"bg-primary/20 text-foreground rounded-sm",children:n},i):jsxRuntime.jsx("span",{children:n},i))})},kw=(e,t)=>{let[a,r]=U__namespace.useState(e);return U__namespace.useEffect(()=>{let n=setTimeout(()=>{r(e);},t);return ()=>{clearTimeout(n);}},[e,t]),a},Uu=U__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r="",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:g="Loading...",clearable:p=false,freeSolo:v=true,maxHeight:N=200,highlightMatch:b=true,disabled:h,...w},f)=>{let[y,P]=U__namespace.useState(false),[x,S]=U__namespace.useState(r),[k,M]=U__namespace.useState([]),[R,C]=U__namespace.useState(false),D=U__namespace.useRef(null),T=a!==void 0?a:x,I=kw(T,d);U__namespace.useImperativeHandle(f,()=>D.current);let L=l?k:s,V=U__namespace.useMemo(()=>l?L:L.filter(F=>F.label.toLowerCase().includes(T.toLowerCase())),[L,T,l]);U__namespace.useEffect(()=>{if(!l)return;if(I.length<m){M([]);return}let F=false;return (async()=>{C(true);try{let G=await l(I);F||M(G);}catch{F||M([]);}finally{F||C(false);}})(),()=>{F=true;}},[I,l,m]);let E=F=>{a===void 0&&S(F),n?.(F);},H=F=>{let ae=F.target.value;E(ae),ae.length>=m&&P(true);},B=F=>{E(F.label),i?.(F),P(false);},A=()=>{E(""),D.current?.focus();},Q=()=>{T.length>=m&&(V.length>0||R)&&P(true);},te=F=>{F.key==="Escape"&&P(false),F.key==="ArrowDown"&&!y&&V.length>0&&P(true);},J=y&&T.length>=m,ot=t==="sm"?"h-3 w-3":t==="lg"?"h-5 w-5":"h-4 w-4",z=p&&T?"pr-8":"pr-3";return jsxRuntime.jsxs(ve,{open:J,onOpenChange:P,children:[jsxRuntime.jsx(qi,{asChild:true,children:jsxRuntime.jsxs("div",{className:"relative w-full",children:[jsxRuntime.jsx("input",{ref:D,type:"text",value:T,onChange:H,onFocus:Q,onKeyDown:te,disabled:h,placeholder:u,className:o(Ku({size:t}),z,e),role:"combobox","aria-expanded":J,"aria-autocomplete":"list","aria-controls":"autocomplete-list",...w}),p&&T&&!h&&jsxRuntime.jsx("button",{type:"button",onClick:A,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:ot})})]})}),jsxRuntime.jsx(ue,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",onOpenAutoFocus:F=>F.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:N},children:R?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(ot,"animate-spin")}),g]}):V.length===0?jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:c}):V.map(F=>jsxRuntime.jsxs(cmdk.Command.Item,{value:F.value,disabled:F.disabled,onSelect:()=>B(F),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",T===F.label?"opacity-100":"opacity-0")}),jsxRuntime.jsx("span",{className:"flex-1",children:b?jsxRuntime.jsx(Mw,{text:F.label,query:T}):F.label})]},F.value))})})})]})});Uu.displayName="Autocomplete";var Ms=U__namespace.createContext(null),ks=U__namespace.createContext(null),Ds=()=>{let e=U__namespace.useContext(Ms);if(!e)throw new Error("useFormContext must be used within a Form");return e},Fn=()=>{let e=U__namespace.useContext(ks);if(!e)throw new Error("useFieldContext must be used within a FormField");return e},Dw={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:a=>typeof a=="string"&&a.length>=e,message:t??`Must be at least ${e} characters`}),maxLength:(e,t)=>({validate:a=>typeof a=="string"&&a.length<=e,message:t??`Must be at most ${e} characters`}),min:(e,t)=>({validate:a=>typeof a=="number"&&a>=e,message:t??`Must be at least ${e}`}),max:(e,t)=>({validate:a=>typeof a=="number"&&a<=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:a=>typeof a=="string"&&e.test(a),message:t}),custom:(e,t)=>({validate:e,message:t})},Yu=U__namespace.forwardRef(({defaultValues:e={},onSubmit:t,onError:a,validateOnBlur:r=true,validateOnChange:n=false,children:i,className:s,...l},d)=>{let[m,u]=U__namespace.useState(e),[c,g]=U__namespace.useState({}),[p,v]=U__namespace.useState({}),[N,b]=U__namespace.useState({}),[h,w]=U__namespace.useState(false),f=U__namespace.useRef(new Map),y=U__namespace.useCallback((L,V)=>{f.current.set(L,V);},[]),P=U__namespace.useCallback(L=>{f.current.delete(L);},[]),x=U__namespace.useCallback(L=>{let V=f.current.get(L)||[],E=m[L];for(let H of V)if(!H.validate(E))return g(B=>({...B,[L]:H.message})),false;return g(H=>({...H,[L]:null})),true},[m]),S=U__namespace.useCallback(()=>{let L=true,V={};return f.current.forEach((E,H)=>{let B=m[H];for(let A of E)if(!A.validate(B)){V[H]=A.message,L=false;break}V[H]||(V[H]=null);}),g(V),L},[m]),k=U__namespace.useCallback((L,V)=>{u(E=>({...E,[L]:V})),b(E=>({...E,[L]:true})),n&&setTimeout(()=>{x(L);},0);},[n,x]),M=U__namespace.useCallback((L,V)=>{g(E=>({...E,[L]:V}));},[]),R=U__namespace.useCallback((L,V)=>{v(E=>({...E,[L]:V})),V&&r&&x(L);},[r,x]),C=U__namespace.useCallback(L=>({value:m[L],error:c[L]??null,touched:p[L]??false,dirty:N[L]??false}),[m,c,p,N]),D=U__namespace.useCallback(()=>{u(e),g({}),v({}),b({});},[e]),T=async L=>{L.preventDefault();let V={};if(f.current.forEach((H,B)=>{V[B]=true;}),v(V),!S()){a?.(c);return}if(t){w(true);try{await t(m);}finally{w(false);}}},I={values:m,errors:c,touched:p,dirty:N,isSubmitting:h,setValue:k,setError:M,setTouched:R,validateField:x,validateAll:S,registerField:y,unregisterField:P,getFieldState:C,reset:D};return jsxRuntime.jsx(Ms.Provider,{value:I,children:jsxRuntime.jsx("form",{ref:d,onSubmit:T,className:o("space-y-4",s),...l,children:i})})});Yu.displayName="Form";var ju=({name:e,rules:t=[],defaultValue:a,children:r})=>{let n=Ds(),i=U__namespace.useId();U__namespace.useEffect(()=>(n.registerField(e,t),a!==void 0&&n.values[e]===void 0&&n.setValue(e,a),()=>{n.unregisterField(e);}),[e,t,a,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(ks.Provider,{value:l,children:r})};ju.displayName="FormField";var Xu=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("space-y-1.5",e),...t}));Xu.displayName="FormItem";var qu=U__namespace.forwardRef(({className:e,required:t,children:a,...r},n)=>{let{id:i,error:s,touched:l}=Fn();return jsxRuntime.jsxs(Ha,{ref:n,htmlFor:i,className:o(s&&l&&"text-danger",e),...r,children:[a,t&&jsxRuntime.jsx("span",{className:"ml-1 text-danger",children:"*"})]})});qu.displayName="FormLabel";var Zu=({children:e})=>{let{name:t,id:a,error:r,touched:n}=Fn(),i=Ds(),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 U__namespace.cloneElement(e,{id:a,name:t,value:s.value??"",onChange:l,onBlur:d,"aria-invalid":r&&n?"true":void 0,"aria-describedby":r&&n?`${a}-error`:void 0})};Zu.displayName="FormControl";var Qu=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("p",{ref:a,className:o("text-xs text-muted-foreground",e),...t}));Qu.displayName="FormDescription";var Ju=U__namespace.forwardRef(({className:e,message:t,...a},r)=>{let{id:n,error:i,touched:s}=Fn(),l=t??(s?i:null);return l?jsxRuntime.jsx("p",{ref:r,id:`${n}-error`,className:o("text-xs text-danger",e),role:"alert",...a,children:l}):null});Ju.displayName="FormMessage";var tf=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"}}),af=U__namespace.forwardRef(({className:e,size:t,name:a,description:r,avatarUrl:n,avatarFallback:i,trailing:s,...l},d)=>{let m=i||a.split(" ").map(u=>u[0]).join("").toUpperCase().slice(0,2);return jsxRuntime.jsxs("div",{ref:d,className:o(tf({size:t,className:e})),...l,children:[jsxRuntime.jsxs(za,{"data-user-avatar":true,children:[n&&jsxRuntime.jsx(gr,{src:n,alt:a}),jsxRuntime.jsx(Ba,{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:a}),r&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground truncate",children:r})]}),s&&jsxRuntime.jsx("div",{className:"ml-auto flex-shrink-0",children:s})]})});af.displayName="User";var of=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"}}),nf=U__namespace.forwardRef(({className:e,variant:t,size:a,...r},n)=>jsxRuntime.jsx("code",{ref:n,className:o(of({variant:t,size:a,className:e})),...r}));nf.displayName="Code";var sf=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"}}),lf=U__namespace.forwardRef(({className:e,variant:t,size:a,code:r,copyable:n=true,copyLabel:i="Copy",onCopy:s,symbol:l="$",hideSymbol:d=false,...m},u)=>{let[c,g]=U__namespace.useState(false),p=async()=>{try{await navigator.clipboard.writeText(r),g(!0),s?.(),setTimeout(()=>g(!1),2e3);}catch(v){console.error("Failed to copy:",v);}};return jsxRuntime.jsxs("div",{ref:u,className:o(sf({variant:t,size:a,className:e})),...m,children:[!d&&jsxRuntime.jsx("span",{className:"text-muted-foreground select-none",children:l}),jsxRuntime.jsx("code",{className:"flex-1 truncate",children:r}),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"})})]})});lf.displayName="Snippet";var Is=classVarianceAuthority.cva("overflow-hidden",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),df=U__namespace.forwardRef(({className:e,radius:t,src:a,alt:r,fallback:n,showSkeleton:i=true,onLoad:s,onError:l,fit:d="cover",aspectRatio:m,style:u,...c},g)=>{let[p,v]=U__namespace.useState("loading");U__namespace.useEffect(()=>{a&&v("loading");},[a]);let N=()=>{v("loaded"),s?.();},b=()=>{v("error"),l?.();},h={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(Is({radius:t}),"flex items-center justify-center bg-muted",e),style:{aspectRatio:m,...u},children:n}):jsxRuntime.jsxs("div",{className:o(Is({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:g,src:a,alt:r,onLoad:N,onError:b,className:o("h-full w-full transition-opacity duration-300",h,p==="loading"?"opacity-0":"opacity-100"),...c})]})});df.displayName="Image";var pf=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"}}),uf=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"}}),ff=U__namespace.createContext({value:"",onValueChange:()=>{},multiple:false,size:"md"}),gf=U__namespace.forwardRef(({className:e,size:t="md",value:a,defaultValue:r="",onValueChange:n,multiple:i=false,children:s,...l},d)=>{let[m,u]=U__namespace.useState(r),c=a??m,g=p=>{let v;if(i){let N=Array.isArray(c)?c:[c].filter(Boolean);N.includes(p)?v=N.filter(b=>b!==p):v=[...N,p];}else v=p;n?n(v):u(v);};return jsxRuntime.jsx(ff.Provider,{value:{value:c,onValueChange:g,multiple:i,size:t??"md"},children:jsxRuntime.jsx("div",{ref:d,role:"listbox","aria-multiselectable":i,className:o(pf({size:t,className:e})),...l,children:s})})});gf.displayName="Listbox";var bf=U__namespace.forwardRef(({className:e,value:t,disabled:a,icon:r,description:n,children:i,...s},l)=>{let{value:d,onValueChange:m,multiple:u,size:c}=U__namespace.useContext(ff),g=u?Array.isArray(d)&&d.includes(t):d===t,p=()=>{a||m(t);},v=N=>{(N.key==="Enter"||N.key===" ")&&!a&&(N.preventDefault(),m(t));};return jsxRuntime.jsxs("div",{ref:l,role:"option","aria-selected":g,"data-disabled":a?"":void 0,tabIndex:a?-1:0,className:o(uf({size:c}),g&&"bg-accent text-accent-foreground",e),onClick:p,onKeyDown:v,...s,children:[r&&jsxRuntime.jsx("span",{className:"mr-2 flex-shrink-0",children:r}),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})]}),g&&jsxRuntime.jsx(lucideReact.Check,{className:"ml-2 h-4 w-4 flex-shrink-0"})]})});bf.displayName="ListboxItem";var hf=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"}}),xf=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 $w({className:e,variant:t,size:a,items:r,onReorder:n,renderItem:i,showHandle:s=true,disabled:l=false,...d},m){let[u,c]=U__namespace.useState(null),[g,p]=U__namespace.useState(null),v=(f,y)=>{l||(c(y),f.dataTransfer.effectAllowed="move",f.dataTransfer.setData("text/plain",String(y)));},N=(f,y)=>{f.preventDefault(),!(l||u===null||u===y)&&p(y);},b=()=>{p(null);},h=(f,y)=>{if(f.preventDefault(),l||u===null||u===y){c(null),p(null);return}let P=[...r],[x]=P.splice(u,1);P.splice(y,0,x),n?.(P),c(null),p(null);},w=()=>{c(null),p(null);};return jsxRuntime.jsx("div",{ref:m,className:o(hf({variant:t,size:a,className:e})),...d,children:r.map((f,y)=>jsxRuntime.jsxs("div",{draggable:!l,onDragStart:P=>v(P,y),onDragOver:P=>N(P,y),onDragLeave:b,onDrop:P=>h(P,y),onDragEnd:w,className:o(xf({variant:t,size:a,isDragging:u===y,isDragOver:g===y}),!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(f,y)})]},f.id))})}var _w=U__namespace.forwardRef($w);var wf=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}}),jw={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},Nf=U__namespace.forwardRef(({className:e,variant:t,loading:a=true,size:r="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(wf({variant:t,visible:a})),"aria-hidden":!a,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[n||jsxRuntime.jsx(lucideReact.Loader2,{className:o(jw[r],"animate-spin text-primary")}),i&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:i})]})})]}));Nf.displayName="LoadingOverlay";var Pf=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"}}),Cf=U__namespace.forwardRef(({className:e,color:t,isLoading:a=false,progress:r,showSpinner:n=false,...i},s)=>{let[l,d]=U__namespace.useState(0),[m,u]=U__namespace.useState(false),c=U__namespace.useRef(null);return U__namespace.useEffect(()=>{if(r!==void 0){d(r),u(r>0&&r<100);return}return a?(u(true),d(10),c.current=setInterval(()=>{d(g=>{if(g>=90)return g;let p=Math.random()*10;return Math.min(g+p,90)});},500)):l>0&&(d(100),setTimeout(()=>{u(false),d(0);},200)),()=>{c.current&&clearInterval(c.current);}},[a,r]),!m&&r===void 0||r!==void 0&&(r<=0||r>=100)?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{ref:s,className:o(Pf({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")})})]})});Cf.displayName="NProgress";var kf=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}}),Sf={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},eN={sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-3 w-3"},Df=U__namespace.forwardRef(({className:e,variant:t="spinner",size:a="md",fullScreen:r,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(eN[a||"md"],"animate-bounce rounded-full bg-current",d),style:{animationDelay:`${u*.15}s`}},u))});case "pulse":return jsxRuntime.jsx("div",{className:o(Sf[a||"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(Sf[a||"md"],"animate-spin",d)})}};return jsxRuntime.jsx("div",{ref:l,className:o(kf({variant:t,size:a,fullScreen:r,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})]})})});Df.displayName="Loading";var Hs=class extends U__namespace.Component{constructor(t){super(t),this.state={hasError:false,error:null};}static getDerivedStateFromError(t){return {hasError:true,error:t}}componentDidCatch(t,a){this.props.onError?.(t,a);}componentDidUpdate(t){this.state.hasError&&this.props.resetKeys&&this.props.resetKeys.some((r,n)=>r!==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(zs,{error:this.state.error,onReset:this.reset}):this.props.children}},zs=U__namespace.forwardRef(({error:e,onReset:t,className:a},r)=>jsxRuntime.jsxs("div",{ref:r,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",a),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"]})]}));zs.displayName="DefaultErrorFallback";var rN=Hs;var Lf=U__namespace.forwardRef(({value:e,defaultValue:t,onValueChange:a,placeholder:r="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[g,p]=U__namespace.useState(false),[v,N]=U__namespace.useState(t),b=e!==void 0,h=b?e:v,w=y=>{b||N(y),a?.(y);},f=y=>{if(!y)return r;let{from:P,to:x}=y;return P&&x?`${dateFns.format(P,n)} - ${dateFns.format(x,n)}`:P?dateFns.format(P,n):r};return jsxRuntime.jsxs(ve,{open:g,onOpenChange:p,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs(O,{ref:c,variant:"bordered",disabled:i,className:o("w-full justify-start text-left font-normal",!h?.from&&"text-muted-foreground",m),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),f(h)]})}),jsxRuntime.jsx(ue,{className:"w-auto p-0",align:u,children:jsxRuntime.jsx(yr,{mode:"range",defaultMonth:h?.from,selected:h,onSelect:w,numberOfMonths:d,disabled:y=>!!(s&&y<s||l&&y>l),initialFocus:true})})]})});Lf.displayName="DateRangePicker";var Ar=e=>String(e).padStart(2,"0"),If=U__namespace.forwardRef(({value:e,onValueChange:t,placeholder:a="Pick a time",use24Hour:r=true,minuteStep:n=1,disabled:i=false,className:s},l)=>{let[d,m]=U__namespace.useState(false),u=r?Array.from({length:24},(f,y)=>y):Array.from({length:12},(f,y)=>y+1),c=Array.from({length:Math.floor(60/n)},(f,y)=>y*n),g=f=>{if(!f)return a;if(r)return `${Ar(f.hours)}:${Ar(f.minutes)}`;let y=f.hours%12||12,P=f.hours>=12?"PM":"AM";return `${Ar(y)}:${Ar(f.minutes)} ${P}`},p=f=>{let y=e?.minutes??0,P=f;if(!r&&e){let x=e.hours>=12;x&&f!==12?P=f+12:!x&&f===12&&(P=0);}t?.({hours:P,minutes:y});},v=f=>{let y=e?.hours??0;t?.({hours:y,minutes:f});},N=f=>{if(!e)return;let y=e.hours;f==="AM"&&e.hours>=12?y=e.hours-12:f==="PM"&&e.hours<12&&(y=e.hours+12),t?.({hours:y,minutes:e.minutes});},b=()=>{let f=new Date;t?.({hours:f.getHours(),minutes:f.getMinutes()});},h=e?e.hours>=12?"PM":"AM":void 0,w=e?r?e.hours:e.hours%12||12:void 0;return jsxRuntime.jsxs(ve,{open:d,onOpenChange:m,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs(O,{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"}),g(e)]})}),jsxRuntime.jsxs(ue,{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(lt,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:u.map(f=>jsxRuntime.jsx(O,{variant:w===f?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>p(f),children:Ar(f)},f))})})]}),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(lt,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:c.map(f=>jsxRuntime.jsx(O,{variant:e?.minutes===f?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>v(f),children:Ar(f)},f))})})]}),!r&&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(O,{variant:h==="AM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>N("AM"),children:"AM"}),jsxRuntime.jsx(O,{variant:h==="PM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>N("PM"),children:"PM"})]})]})]}),jsxRuntime.jsxs("div",{className:"flex justify-between border-t p-2",children:[jsxRuntime.jsx(O,{variant:"ghost",size:"sm",onClick:b,children:"Now"}),jsxRuntime.jsx(O,{size:"sm",onClick:()=>m(false),children:"Done"})]})]})]})});If.displayName="TimePicker";var Ef=classVarianceAuthority.cva("overflow-auto",{variants:{variant:{default:"",bordered:"border rounded-lg",cards:""}},defaultVariants:{variant:"default"}});function sN({className:e,variant:t,items:a,itemHeight:r,height:n,overscan:i=3,renderItem:s,getItemKey:l,gap:d=0,onScrollChange:m,...u},c){let g=U__namespace.useRef(null),[p,v]=U__namespace.useState(0);U__namespace.useImperativeHandle(c,()=>g.current);let N=a.length*(r+d)-d,b=r+d,h=Math.max(0,Math.floor(p/b)-i),w=Math.ceil(n/b)+2*i,f=Math.min(a.length-1,h+w),y=x=>{let S=x.currentTarget.scrollTop;v(S),m?.(S);},P=U__namespace.useMemo(()=>{let x=[];for(let S=h;S<=f;S++)a[S]!==void 0&&x.push({item:a[S],index:S,style:{position:"absolute",top:S*b,left:0,right:0,height:r}});return x},[a,h,f,b,r]);return jsxRuntime.jsx("div",{ref:g,className:o(Ef({variant:t,className:e})),style:{height:n,position:"relative"},onScroll:y,...u,children:jsxRuntime.jsx("div",{style:{height:N,position:"relative"},children:P.map(({item:x,index:S,style:k})=>jsxRuntime.jsx("div",{style:k,children:s(x,S)},l?l(x,S):S))})})}var lN=U__namespace.forwardRef(sN);var Hf=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"border rounded-lg overflow-hidden"}},defaultVariants:{variant:"default"}}),Os=classVarianceAuthority.cva("flex items-center justify-center py-4",{variants:{size:{sm:"py-2",md:"py-4",lg:"py-6"}},defaultVariants:{size:"md"}}),zf=U__namespace.forwardRef(({className:e,variant:t,size:a,children:r,onLoadMore:n,hasMore:i,isLoading:s=false,loader:l,threshold:d=100,rootMargin:m,useWindow:u=false,endMessage:c,...g},p)=>{let v=U__namespace.useRef(null),N=U__namespace.useRef(null),b=U__namespace.useRef(false);U__namespace.useImperativeHandle(p,()=>v.current),U__namespace.useEffect(()=>{let w=N.current;if(!w)return;let f=new IntersectionObserver(y=>{let[P]=y;P.isIntersecting&&i&&!s&&!b.current&&(b.current=true,Promise.resolve(n()).finally(()=>{b.current=false;}));},{root:u?null:v.current,rootMargin:m||`${d}px`,threshold:0});return f.observe(w),()=>{f.disconnect();}},[i,s,n,d,m,u]);let h=jsxRuntime.jsx("div",{className:o(Os({size:a})),children:jsxRuntime.jsx(lucideReact.Loader2,{className:"h-6 w-6 animate-spin text-muted-foreground"})});return jsxRuntime.jsxs("div",{ref:v,className:o(Hf({variant:t,className:e})),...g,children:[r,jsxRuntime.jsx("div",{ref:N,className:"h-px w-full"}),s&&(l||h),!i&&!s&&c&&jsxRuntime.jsx("div",{className:o(Os({size:a}),"text-muted-foreground text-sm"),children:c})]})});zf.displayName="InfiniteScroll";var Of=classVarianceAuthority.cva("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"),Gs=classVarianceAuthority.cva("fixed left-[50%] top-[50%] z-50 grid 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",{variants:{size:{sm:"w-full max-w-sm",md:"w-full max-w-lg",lg:"w-full max-w-2xl",xl:"w-full max-w-4xl",full:"w-[calc(100vw-2rem)] h-[calc(100vh-2rem)] max-w-none"}},defaultVariants:{size:"md"}}),Gf=U__namespace.forwardRef(({open:e,onOpenChange:t,children:a,trigger:r,title:n,description:i,footer:s,showCloseButton:l=true,closeOnOverlayClick:d=true,closeOnEscape:m=true,size:u,className:c,contentClassName:g},p)=>jsxRuntime.jsxs(oe__namespace.Root,{open:e,onOpenChange:t,children:[r&&jsxRuntime.jsx(oe__namespace.Trigger,{asChild:true,children:r}),jsxRuntime.jsxs(oe__namespace.Portal,{children:[jsxRuntime.jsx(oe__namespace.Overlay,{className:o(Of(),c),onClick:d?void 0:v=>v.stopPropagation()}),jsxRuntime.jsxs(oe__namespace.Content,{ref:p,className:o(Gs({size:u}),g),onEscapeKeyDown:m?void 0:v=>v.preventDefault(),onPointerDownOutside:d?void 0:v=>v.preventDefault(),children:[(n||i)&&jsxRuntime.jsxs("div",{className:"flex flex-col space-y-1.5 text-center sm:text-left",children:[n&&jsxRuntime.jsx(oe__namespace.Title,{className:"text-lg font-semibold leading-none tracking-tight",children:n}),i&&jsxRuntime.jsx(oe__namespace.Description,{className:"text-sm text-muted-foreground",children:i})]}),a,s&&jsxRuntime.jsx("div",{className:"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",children:s}),l&&jsxRuntime.jsxs(oe__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"})]})]})]})]}));Gf.displayName="Modal";var mN=oe__namespace.Root,pN=oe__namespace.Trigger,Wf=oe__namespace.Portal,uN=oe__namespace.Close,Ws=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Overlay,{ref:a,className:o(Of(),e),...t}));Ws.displayName="ModalOverlay";var $f=U__namespace.forwardRef(({className:e,children:t,size:a,showCloseButton:r=true,...n},i)=>jsxRuntime.jsxs(Wf,{children:[jsxRuntime.jsx(Ws,{}),jsxRuntime.jsxs(oe__namespace.Content,{ref:i,className:o(Gs({size:a}),e),...n,children:[t,r&&jsxRuntime.jsxs(oe__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"})]})]})]}));$f.displayName="ModalContent";var _f=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});_f.displayName="ModalHeader";var Kf=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Kf.displayName="ModalFooter";var Uf=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Title,{ref:a,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));Uf.displayName="ModalTitle";var Yf=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(oe__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));Yf.displayName="ModalDescription";var Xf=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"}}),xN=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"}}),yN={default:lucideReact.HelpCircle,danger:lucideReact.XCircle,warning:lucideReact.AlertTriangle,success:lucideReact.CheckCircle,info:lucideReact.Info},$s=U__namespace.forwardRef(({open:e,onOpenChange:t,trigger:a,title:r,description:n,confirmText:i="Confirm",cancelText:s="Cancel",onConfirm:l,onCancel:d,showIcon:m=true,icon:u,variant:c="default",loading:g=false,disabled:p=false,className:v},N)=>{let[b,h]=U__namespace.useState(false),w=yN[c||"default"],f=async()=>{if(l){let x=l();if(x instanceof Promise){h(true);try{await x;}finally{h(false);}}}},y=()=>{d?.();},P=g||b;return jsxRuntime.jsxs(le__namespace.Root,{open:e,onOpenChange:t,children:[a&&jsxRuntime.jsx(le__namespace.Trigger,{asChild:true,children:a}),jsxRuntime.jsxs(le__namespace.Portal,{children:[jsxRuntime.jsx(le__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(le__namespace.Content,{ref:N,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(Xf({variant:c})),children:u||jsxRuntime.jsx(w,{className:"h-6 w-6"})}),jsxRuntime.jsxs("div",{className:"flex flex-col space-y-2 text-center sm:text-left",children:[jsxRuntime.jsx(le__namespace.Title,{className:"text-lg font-semibold",children:r}),n&&jsxRuntime.jsx(le__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(le__namespace.Cancel,{className:o(Te({variant:"bordered"})),onClick:y,disabled:P,children:s}),jsxRuntime.jsx(le__namespace.Action,{className:o(Te(),xN({variant:c}),P&&"opacity-50 cursor-not-allowed"),onClick:f,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})]})]})]})]})});$s.displayName="ConfirmDialog";function RN(){let[e,t]=U__namespace.useState({open:false,options:null,resolve:null}),a=U__namespace.useCallback(l=>new Promise(d=>{t({open:true,options:l,resolve:d});}),[]),r=U__namespace.useCallback(()=>{e.resolve?.(true),t({open:false,options:null,resolve:null});},[e.resolve]),n=U__namespace.useCallback(()=>{e.resolve?.(false),t({open:false,options:null,resolve:null});},[e.resolve]),i=U__namespace.useCallback(l=>{l||(e.resolve?.(false),t({open:false,options:null,resolve:null}));},[e.resolve]),s=U__namespace.useMemo(()=>e.options?jsxRuntime.jsx($s,{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:r,onCancel:n}):null,[e,r,n,i]);return {confirm:a,ConfirmDialog:s}}var VN=e=>e.map(t=>typeof t=="string"?{src:t}:t),Ks=U__namespace.forwardRef(({images:e,open:t,onOpenChange:a,initialIndex:r=0,onIndexChange:n,trigger:i,showThumbnails:s=true,showZoom:l=true,showRotate:d=true,showDownload:m=true,showFullscreen:u=true,showNavigation:c=true,showCounter:g=true,closeOnBackdropClick:p=true,className:v},N)=>{let b=U__namespace.useMemo(()=>VN(e),[e]),[h,w]=U__namespace.useState(r),[f,y]=U__namespace.useState(1),[P,x]=U__namespace.useState(0),[S,k]=U__namespace.useState(false),[M,R]=U__namespace.useState(false),[C,D]=U__namespace.useState({x:0,y:0}),[T,I]=U__namespace.useState({x:0,y:0}),L=U__namespace.useRef(null),V=b[h];U__namespace.useEffect(()=>{w(r);},[r]),U__namespace.useEffect(()=>{n?.(h);},[h,n]),U__namespace.useEffect(()=>{y(1),x(0),D({x:0,y:0});},[h]);let E=U__namespace.useCallback(()=>{w(G=>G>0?G-1:b.length-1);},[b.length]),H=U__namespace.useCallback(()=>{w(G=>G<b.length-1?G+1:0);},[b.length]),B=()=>{y(G=>Math.min(G+.5,4));},A=()=>{y(G=>{let ge=Math.max(G-.5,.5);return ge===1&&D({x:0,y:0}),ge});},Q=()=>{x(G=>(G+90)%360);},te=async()=>{if(V)try{let ge=await(await fetch(V.src)).blob(),ao=URL.createObjectURL(ge),ro=document.createElement("a");ro.href=ao,ro.download=V.alt||`image-${h+1}`,document.body.appendChild(ro),ro.click(),document.body.removeChild(ro),URL.revokeObjectURL(ao);}catch{window.open(V.src,"_blank");}},J=async()=>{if(L.current)if(S)try{await document.exitFullscreen(),k(!1);}catch{}else try{await L.current.requestFullscreen(),k(!0);}catch{}},ot=G=>{f>1&&(R(true),I({x:G.clientX-C.x,y:G.clientY-C.y}));},z=G=>{M&&f>1&&D({x:G.clientX-T.x,y:G.clientY-T.y});},F=()=>{R(false);},ae=U__namespace.useCallback(G=>{switch(G.key){case "ArrowLeft":E();break;case "ArrowRight":H();break;case "Escape":a?.(false);break;case "+":case "=":B();break;case "-":A();break}},[E,H,a]);return U__namespace.useEffect(()=>{if(t)return window.addEventListener("keydown",ae),()=>window.removeEventListener("keydown",ae)},[t,ae]),U__namespace.useEffect(()=>{let G=()=>{k(!!document.fullscreenElement);};return document.addEventListener("fullscreenchange",G),()=>document.removeEventListener("fullscreenchange",G)},[]),b.length===0?null:jsxRuntime.jsxs(oe__namespace.Root,{open:t,onOpenChange:a,children:[i&&jsxRuntime.jsx(oe__namespace.Trigger,{asChild:true,children:i}),jsxRuntime.jsxs(oe__namespace.Portal,{children:[jsxRuntime.jsx(oe__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:G=>G.stopPropagation()}),jsxRuntime.jsxs(oe__namespace.Content,{ref:N,className:o("fixed inset-0 z-50 flex flex-col outline-none",v),onPointerDownOutside:p?void 0:G=>G.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:[g&&b.length>1&&jsxRuntime.jsxs("span",{className:"text-sm",children:[h+1," / ",b.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:A,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(f*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:Q,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:te,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:J,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:S?"Exit fullscreen":"Fullscreen",children:S?jsxRuntime.jsx(lucideReact.Minimize2,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Maximize2,{className:"h-5 w-5"})}),jsxRuntime.jsxs(oe__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:ot,onMouseMove:z,onMouseUp:F,onMouseLeave:F,children:[c&&b.length>1&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:E,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:H,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",M?"cursor-grabbing":f>1?"cursor-grab":""),style:{transform:`translate(${C.x}px, ${C.y}px) scale(${f}) rotate(${P}deg)`},draggable:false})]}),V?.description&&jsxRuntime.jsx("div",{className:"p-4 text-center text-white text-sm",children:V.description}),s&&b.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-2 p-4 overflow-x-auto",children:b.map((G,ge)=>jsxRuntime.jsx("button",{onClick:()=>w(ge),className:o("h-16 w-16 flex-shrink-0 overflow-hidden rounded border-2 transition-all",h===ge?"border-white opacity-100":"border-transparent opacity-50 hover:opacity-75"),children:jsxRuntime.jsx("img",{src:G.src,alt:G.alt||`Thumbnail ${ge+1}`,className:"h-full w-full object-cover"})},ge))})]})]})]})});Ks.displayName="ImageViewer";var qf=({children:e,images:t,index:a=0,className:r})=>{let[n,i]=U__namespace.useState(false);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>i(true),className:o("cursor-zoom-in",r),children:e}),jsxRuntime.jsx(Ks,{images:t,open:n,onOpenChange:i,initialIndex:a})]})};qf.displayName="ImageViewerTrigger";var Jf=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"}}),eg=U__namespace.forwardRef(({className:e,variant:t,size:a,iconSize:r,...n},i)=>{let l=r??{sm:14,md:16,lg:20}[a??"md"];return jsxRuntime.jsx("button",{ref:i,type:"button",className:o(Jf({variant:t,size:a}),e),"aria-label":"Close",...n,children:jsxRuntime.jsx(lucideReact.X,{style:{width:l,height:l}})})});eg.displayName="CloseButton";var ag=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"}}),rg=U__namespace.forwardRef(({className:e,variant:t,size:a,color:r,radius:n,loading:i,disabled:s,children:l,...d},m)=>jsxRuntime.jsx("button",{ref:m,type:"button",className:o(ag({variant:t,size:a,color:r,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}));rg.displayName="ActionIcon";var ig=({children:e,container:t,disabled:a=false})=>{let[r,n]=U__namespace.useState(false);if(U__namespace.useEffect(()=>{n(true);},[]),a||!r)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?reactDom.createPortal(e,i):jsxRuntime.jsx(jsxRuntime.Fragment,{children:e})};ig.displayName="Portal";var sg=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}}),lg=U__namespace.forwardRef(({className:e,color:t,size:a,position:r,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(sg({color:t,size:c?void 0:a,position:r,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(${r?.includes("right")?l:-l}px, ${r?.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]})});lg.displayName="Indicator";var dg=U__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o("relative inline-flex",e),...a,children:t}));dg.displayName="IndicatorWrapper";var mg=classVarianceAuthority.cva("relative overflow-auto",{variants:{orientation:{vertical:"",horizontal:"",both:""},size:{sm:"",md:"",lg:""}},defaultVariants:{orientation:"vertical",size:"md"}}),pg=U__namespace.forwardRef(({className:e,orientation:t,size:a,hideScrollbar:r=false,shadowColor:n="rgba(0, 0, 0, 0.1)",children:i,...s},l)=>{let d=U__namespace.useRef(null),[m,u]=U__namespace.useState({top:false,bottom:false,left:false,right:false});U__namespace.useImperativeHandle(l,()=>d.current);let c=U__namespace.useCallback(()=>{let h=d.current;if(!h)return;let{scrollTop:w,scrollLeft:f,scrollHeight:y,scrollWidth:P,clientHeight:x,clientWidth:S}=h;u({top:w>0,bottom:w<y-x-1,left:f>0,right:f<P-S-1});},[]);U__namespace.useEffect(()=>{let h=d.current;if(h)return c(),h.addEventListener("scroll",c),window.addEventListener("resize",c),()=>{h.removeEventListener("scroll",c),window.removeEventListener("resize",c);}},[c]);let p={sm:"20px",md:"40px",lg:"60px"}[a??"md"],v=t==="vertical"||t==="both",N=t==="horizontal"||t==="both",b={maskImage:[v&&m.top&&`linear-gradient(to bottom, transparent, black ${p})`,v&&m.bottom&&`linear-gradient(to top, transparent, black ${p})`,N&&m.left&&`linear-gradient(to right, transparent, black ${p})`,N&&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(mg({orientation:t,size:a}),r&&"scrollbar-hide [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",e),style:b,...s,children:i})});pg.displayName="ScrollShadow";var gg=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(fg__namespace.Root,{ref:a,className:o(e),...t}));gg.displayName="VisuallyHidden";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"}}),$N={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"},_N=e=>{let t=e.toLowerCase();return $N[t]||e.toUpperCase()},vg=U__namespace.forwardRef(({className:e,variant:t,size:a,keys:r,children:n,...i},s)=>{let l=()=>r?(Array.isArray(r)?r:[r]).map((m,u)=>jsxRuntime.jsxs(U__namespace.Fragment,{children:[u>0&&jsxRuntime.jsx("span",{className:"mx-0.5 text-muted-foreground",children:"+"}),jsxRuntime.jsx("span",{children:_N(m)})]},u)):n;return jsxRuntime.jsx("kbd",{ref:s,className:o(bg({variant:t,size:a}),e),...i,children:l()})});vg.displayName="Kbd";var xg=U__namespace.forwardRef(({className:e,size:t,axis:a="both",style:r,...n},i)=>{let s=typeof t=="number"?`${t}px`:t,l={...r,...t?{width:a==="vertical"?void 0:s,height:a==="horizontal"?void 0:s,minWidth:a==="vertical"?void 0:s,minHeight:a==="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})});xg.displayName="Spacer";var yg=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"}}),Rg=U__namespace.forwardRef(({className:e,variant:t,size:a,value:r,successDuration:n=2e3,onCopySuccess:i,onCopyError:s,copyIcon:l,successIcon:d,...m},u)=>{let[c,g]=U__namespace.useState(false),p={sm:14,md:16,lg:20}[a??"md"],v=async()=>{try{await navigator.clipboard.writeText(r),g(!0),i?.(),setTimeout(()=>{g(!1);},n);}catch(N){s?.(N);}};return jsxRuntime.jsx("button",{ref:u,type:"button",className:o(yg({variant:t,size:a}),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}})})});Rg.displayName="CopyButton";var Ng=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"}}),JN=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],eP=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function tP(e,t,a){let r=new Date(e,t,1),n=new Date(e,t+1,0),i=[],s=r.getDay()-a;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 a=[],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),a.push(l);}return a}function Zn(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function qn(e){return Zn(e,new Date)}function wg(e,t){return e.filter(a=>{let r=new Date(a.start),n=new Date(a.end);return Zn(r,t)||Zn(n,t)||r<t&&n>t})}var Pg=U__namespace.forwardRef(({className:e,variant:t,size:a,events:r=[],view:n="month",onViewChange:i,date:s,onDateChange:l,onEventClick:d,onSlotClick:m,weekStartsOn:u=0,locale:c="en-US",...g},p)=>{let[v,N]=U__namespace.useState(new Date),b=s??v,h=R=>{l?l(R):N(R);},w=u===1?eP:JN,f=()=>{let R=new Date(b);n==="month"?R.setMonth(R.getMonth()-1):n==="week"?R.setDate(R.getDate()-7):R.setDate(R.getDate()-1),h(R);},y=()=>{let R=new Date(b);n==="month"?R.setMonth(R.getMonth()+1):n==="week"?R.setDate(R.getDate()+7):R.setDate(R.getDate()+1),h(R);},P=()=>{h(new Date);},x=()=>n==="day"?b.toLocaleDateString(c,{weekday:"long",year:"numeric",month:"long",day:"numeric"}):b.toLocaleDateString(c,{year:"numeric",month:"long"}),S=()=>{let R=tP(b.getFullYear(),b.getMonth(),u);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col",children:[jsxRuntime.jsx("div",{className:"grid grid-cols-7 border-b",children:w.map(C=>jsxRuntime.jsx("div",{className:"p-2 text-center font-medium text-muted-foreground",children:C},C))}),jsxRuntime.jsx("div",{className:"flex-1 grid grid-cols-7 grid-rows-6",children:R.map((C,D)=>{let T=wg(r,C),I=C.getMonth()===b.getMonth();return jsxRuntime.jsxs("div",{className:o("min-h-[80px] border-b border-r p-1 cursor-pointer hover:bg-accent/50 transition-colors",!I&&"bg-muted/30"),onClick:()=>m?.(C),children:[jsxRuntime.jsx("div",{className:o("flex items-center justify-center w-7 h-7 rounded-full text-sm mb-1",qn(C)&&"bg-primary text-primary-foreground",!I&&"text-muted-foreground"),children:C.getDate()}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[T.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)),T.length>3&&jsxRuntime.jsxs("div",{className:"text-xs text-muted-foreground px-1",children:["+",T.length-3," more"]})]})]},D)})})]})},k=()=>{let R=aP(b,u),C=Array.from({length:24},(D,T)=>T);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"}),R.map((D,T)=>jsxRuntime.jsxs("div",{className:o("p-2 text-center border-l",qn(D)&&"bg-primary/10"),children:[jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground",children:w[T]}),jsxRuntime.jsx("div",{className:o("text-lg font-semibold",qn(D)&&"text-primary"),children:D.getDate()})]},T))]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_repeat(7,1fr)]",children:C.map(D=>jsxRuntime.jsxs(U__namespace.Fragment,{children:[jsxRuntime.jsxs("div",{className:"h-12 text-xs text-muted-foreground text-right pr-2 pt-0 border-b",children:[D.toString().padStart(2,"0"),":00"]}),R.map((T,I)=>{let L=new Date(T);L.setHours(D,0,0,0);let V=r.filter(E=>{let H=new Date(E.start);return Zn(H,T)&&H.getHours()===D});return jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>m?.(L),children:V.map(E=>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:E.color||"hsl(var(--primary))",color:"white"},onClick:H=>{H.stopPropagation(),d?.(E);},children:E.title},E.id))},I)})]},D))})})]})},M=()=>{let R=Array.from({length:24},(D,T)=>T),C=wg(r,b);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",qn(b)&&"bg-primary text-primary-foreground"),children:b.getDate()})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_1fr]",children:R.map(D=>{let T=new Date(b);T.setHours(D,0,0,0);let I=C.filter(L=>new Date(L.start).getHours()===D);return jsxRuntime.jsxs(U__namespace.Fragment,{children:[jsxRuntime.jsxs("div",{className:"h-12 text-xs text-muted-foreground text-right pr-2 pt-0 border-b",children:[D.toString().padStart(2,"0"),":00"]}),jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>m?.(T),children:I.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))})]},D)})})})]})};return jsxRuntime.jsxs("div",{ref:p,className:o(Ng({variant:t,size:a,className:e})),...g,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(O,{variant:"bordered",size:"sm",onClick:P,children:"Today"}),jsxRuntime.jsx(O,{variant:"ghost",size:"icon",onClick:f,children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx(O,{variant:"ghost",size:"icon",onClick:y,children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})}),jsxRuntime.jsx("h2",{className:"text-lg font-semibold ml-2",children:x()})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-1 border rounded-lg p-1",children:["month","week","day"].map(R=>jsxRuntime.jsx(O,{variant:n===R?"solid":"ghost",size:"sm",onClick:()=>i?.(R),children:R.charAt(0).toUpperCase()+R.slice(1)},R))})]}),n==="month"&&S(),n==="week"&&k(),n==="day"&&M()]})});Pg.displayName="FullCalendar";var Eo=classVarianceAuthority.cva("w-full",{variants:{size:{sm:"h-48",md:"h-64",lg:"h-96"}},defaultVariants:{size:"md"}}),Ao=["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%))"],Cg=U__namespace.forwardRef(({className:e,size:t,data:a,dataKeys:r,colors:n=Ao,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",curveType:m="monotone",...u},c)=>jsxRuntime.jsx("div",{ref:c,className:o(Eo({size:t,className:e})),...u,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.LineChart,{data:a,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,{}),r.map((g,p)=>jsxRuntime.jsx(recharts.Line,{type:m,dataKey:g,stroke:n[p%n.length],strokeWidth:2,dot:{fill:n[p%n.length],strokeWidth:0},activeDot:{r:6}},g))]})})}));Cg.displayName="LineChart";var Sg=U__namespace.forwardRef(({className:e,size:t,data:a,dataKeys:r,colors:n=Ao,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",stacked:m=false,layout:u="horizontal",...c},g)=>jsxRuntime.jsx("div",{ref:g,className:o(Eo({size:t,className:e})),...c,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.BarChart,{data:a,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,{}),r.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))]})})}));Sg.displayName="BarChart";var Tg=U__namespace.forwardRef(({className:e,size:t,data:a,dataKey:r="value",nameKey:n="name",colors:i=Ao,innerRadius:s=0,outerRadius:l=80,showLegend:d=true,showTooltip:m=true,showLabels:u=false,...c},g)=>jsxRuntime.jsx("div",{ref:g,className:o(Eo({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:a,dataKey:r,nameKey:n,cx:"50%",cy:"50%",innerRadius:s,outerRadius:l,label:u,labelLine:u,children:a.map((p,v)=>jsxRuntime.jsx(recharts.Cell,{fill:i[v%i.length]},`cell-${v}`))})]})})}));Tg.displayName="PieChart";var Mg=U__namespace.forwardRef(({className:e,size:t,data:a,dataKeys:r,colors:n=Ao,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",stacked:m=false,curveType:u="monotone",...c},g)=>jsxRuntime.jsx("div",{ref:g,className:o(Eo({size:t,className:e})),...c,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.AreaChart,{data:a,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,{}),r.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))]})})}));Mg.displayName="AreaChart";var Vg=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"}}),Lg=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"}}),el=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 CP({card:e,columnId:t,variant:a,renderCard:r,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(el({variant:a,isDragging:u})),onClick:()=>n?.(e,t),...i,...s,children:r?r(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 SP({column:e,variant:t,renderCard:a,onCardClick:r,onAddCard:n,showAddCard:i,columnHeight:s}){return jsxRuntime.jsxs("div",{className:o(Lg({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(O,{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(lt,{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(CP,{card:l,columnId:e.id,variant:t,renderCard:a,onCardClick:r},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 Ig=U__namespace.forwardRef(({className:e,variant:t,columns:a,onCardMove:r,onCardClick:n,onAddCard:i,renderCard:s,showAddCard:l=true,columnHeight:d=500,...m},u)=>{let[c,g]=U__namespace.useState(null),[p,v]=U__namespace.useState(null),N=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:8}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),b=y=>a.find(P=>P.cards.some(x=>x.id===y));return jsxRuntime.jsxs(core.DndContext,{sensors:N,collisionDetection:core.closestCorners,onDragStart:y=>{let{active:P}=y,x=b(P.id);if(x){let S=x.cards.find(k=>k.id===P.id);S&&(g(S),v(x.id));}},onDragOver:y=>{let{active:P,over:x}=y;if(!x)return;let S=P.id,k=x.id,M=b(S),R=b(k)||a.find(T=>T.id===k);if(!M||!R||M.id===R.id)return;let C=R.cards.findIndex(T=>T.id===k),D=C===-1?R.cards.length:C;r?.(S,M.id,R.id,D);},onDragEnd:y=>{let{active:P,over:x}=y;if(x&&P.id!==x.id){let S=b(P.id),k=b(x.id)||a.find(M=>M.id===x.id);if(S&&k){let M=k.cards.findIndex(C=>C.id===x.id),R=M===-1?k.cards.length:M;r?.(P.id,S.id,k.id,R);}}g(null),v(null);},children:[jsxRuntime.jsx("div",{ref:u,className:o(Vg({variant:t,className:e})),...m,children:a.map(y=>jsxRuntime.jsx(SP,{column:y,variant:t,renderCard:s,onCardClick:n,onAddCard:i,showAddCard:l,columnHeight:d},y.id))}),jsxRuntime.jsx(core.DragOverlay,{children:c&&p&&jsxRuntime.jsx("div",{className:o(el({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})]})]})})})]})});Ig.displayName="KanbanBoard";var Eg=classVarianceAuthority.cva("relative",{variants:{variant:{default:"",bordered:"border rounded-lg p-4",cards:"rounded-lg"}},defaultVariants:{variant:"default"}}),Ag=U__namespace.createContext(null);function tl(){let e=U__namespace.useContext(Ag);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Hg=U__namespace.forwardRef(({className:e,variant:t,children:a,opts:r,plugins:n,orientation:i="horizontal",showArrows:s=true,showDots:l=true,setApi:d,...m},u)=>{let[c,g]=TP__default.default({...r,axis:i==="horizontal"?"x":"y"},n),[p,v]=U__namespace.useState(false),[N,b]=U__namespace.useState(false),[h,w]=U__namespace.useState(0),[f,y]=U__namespace.useState([]),P=U__namespace.useCallback(R=>{R&&(w(R.selectedScrollSnap()),v(R.canScrollPrev()),b(R.canScrollNext()));},[]),x=U__namespace.useCallback(()=>{g?.scrollPrev();},[g]),S=U__namespace.useCallback(()=>{g?.scrollNext();},[g]),k=U__namespace.useCallback(R=>{g?.scrollTo(R);},[g]),M=U__namespace.useCallback(R=>{R.key==="ArrowLeft"?(R.preventDefault(),x()):R.key==="ArrowRight"&&(R.preventDefault(),S());},[x,S]);return U__namespace.useEffect(()=>{!g||!d||d(g);},[g,d]),U__namespace.useEffect(()=>{if(g)return y(g.scrollSnapList()),P(g),g.on("reInit",P),g.on("select",P),()=>{g?.off("select",P);}},[g,P]),jsxRuntime.jsx(Ag.Provider,{value:{carouselRef:c,api:g,scrollPrev:x,scrollNext:S,canScrollPrev:p,canScrollNext:N,selectedIndex:h,scrollSnaps:f,scrollTo:k},children:jsxRuntime.jsxs("div",{ref:u,className:o(Eg({variant:t,className:e})),onKeyDownCapture:M,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:a})}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(al,{}),jsxRuntime.jsx(rl,{})]}),l&&f.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-1.5 mt-4",children:f.map((R,C)=>jsxRuntime.jsx("button",{className:o("w-2 h-2 rounded-full transition-all",C===h?"bg-primary w-4":"bg-muted-foreground/30 hover:bg-muted-foreground/50"),onClick:()=>k(C),"aria-label":`Go to slide ${C+1}`},C))})]})})});Hg.displayName="Carousel";var zg=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex",e),...t}));zg.displayName="CarouselContent";var Bg=U__namespace.forwardRef(({className:e,basis:t="basis-full",...a},r)=>jsxRuntime.jsx("div",{ref:r,role:"group","aria-roledescription":"slide",className:o("min-w-0 shrink-0 grow-0 pl-4",t,e),...a}));Bg.displayName="CarouselItem";var al=U__namespace.forwardRef(({className:e,variant:t="bordered",size:a="icon",...r},n)=>{let{scrollPrev:i,canScrollPrev:s}=tl();return jsxRuntime.jsxs(O,{ref:n,variant:t,size:a,className:o("absolute left-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:i,...r,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Previous slide"})]})});al.displayName="CarouselPrevious";var rl=U__namespace.forwardRef(({className:e,variant:t="bordered",size:a="icon",...r},n)=>{let{scrollNext:i,canScrollNext:s}=tl();return jsxRuntime.jsxs(O,{ref:n,variant:t,size:a,className:o("absolute right-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:i,...r,children:[jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Next slide"})]})});rl.displayName="CarouselNext";var Fg=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"}}),ri={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"}},nl={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}"]},Og=U__namespace.forwardRef(({className:e,size:t,onEmojiSelect:a,recentEmojis:r=[],defaultCategory:n="smileys",showSearch:i=true,showCategories:s=true,...l},d)=>{let[m,u]=U__namespace.useState(r.length>0?"recent":n),[c,g]=U__namespace.useState(""),v=c?Object.values(nl).flat().filter(b=>b.toLowerCase().includes(c.toLowerCase())):m==="recent"?r:nl[m]||[],N=b=>{a?.(b);};return jsxRuntime.jsxs("div",{ref:d,className:o(Fg({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(tn,{placeholder:"Search emojis...",value:c,onChange:b=>g(b.target.value),className:"pl-8 h-8"})]})}),s&&!c&&jsxRuntime.jsx("div",{className:"flex border-b px-1",children:Object.entries(ri).map(([b,{icon:h}])=>b==="recent"&&r.length===0?null:jsxRuntime.jsx("button",{className:o("flex-1 p-2 text-lg hover:bg-accent rounded transition-colors",m===b&&"bg-accent"),onClick:()=>u(b),title:ri[b].name,children:h},b))}),!c&&jsxRuntime.jsx("div",{className:"px-3 py-1.5 text-xs font-medium text-muted-foreground",children:ri[m].name}),jsxRuntime.jsx(lt,{className:"flex-1",children:jsxRuntime.jsxs("div",{className:"grid grid-cols-8 gap-1 p-2",children:[v.map((b,h)=>jsxRuntime.jsx("button",{className:"w-8 h-8 flex items-center justify-center text-xl hover:bg-accent rounded transition-colors",onClick:()=>N(b),children:b},`${b}-${h}`)),v.length===0&&jsxRuntime.jsx("div",{className:"col-span-8 py-8 text-center text-muted-foreground text-sm",children:"No emojis found"})]})})]})});Og.displayName="EmojiPicker";var Gg=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"}}),nC=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"}}),iC=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"}}),Pe=({icon:e,title:t,isActive:a,onClick:r,disabled:n})=>jsxRuntime.jsxs(Oa,{children:[jsxRuntime.jsx(Ga,{asChild:true,children:jsxRuntime.jsx(O,{type:"button",variant:a?"solid":"ghost",size:"icon",className:"h-7 w-7",onClick:r,disabled:n,children:e})}),jsxRuntime.jsx(ca,{side:"top",className:"text-xs",children:t})]}),Wg=U__namespace.forwardRef(({className:e,variant:t,size:a,value:r="",onChange:n,placeholder:i="Start writing...",readOnly:s=false,showToolbar:l=true,minHeight:d,maxHeight:m,onEditorReady:u,...c},g)=>{let p=react.useEditor({extensions:[HP__default.default.configure({heading:{levels:[1,2,3]}}),zP__default.default.configure({openOnClick:false,HTMLAttributes:{class:"text-primary underline"}}),BP__default.default,FP__default.default.configure({types:["heading","paragraph"]}),OP__default.default.configure({placeholder:i})],content:r,editable:!s,onUpdate:({editor:N})=>{n?.(N.getHTML());},onCreate:({editor:N})=>{u?.(N);}});U__namespace.useEffect(()=>{p&&r!==p.getHTML()&&p.commands.setContent(r);},[r,p]),U__namespace.useEffect(()=>{p&&p.setEditable(!s);},[s,p]);let v=()=>{if(!p)return;let N=p.getAttributes("link").href,b=window.prompt("URL",N);if(b!==null){if(b===""){p.chain().focus().extendMarkRange("link").unsetLink().run();return}p.chain().focus().extendMarkRange("link").setLink({href:b}).run();}};return p?jsxRuntime.jsx(Fa,{children:jsxRuntime.jsxs("div",{ref:g,className:o(Gg({variant:t,size:a,className:e})),...c,children:[l&&!s&&jsxRuntime.jsxs("div",{className:o(nC({size:a})),children:[jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Undo,{className:"h-4 w-4"}),title:"Undo",onClick:()=>p.chain().focus().undo().run(),disabled:!p.can().undo()}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Redo,{className:"h-4 w-4"}),title:"Redo",onClick:()=>p.chain().focus().redo().run(),disabled:!p.can().redo()}),jsxRuntime.jsx(da,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Pe,{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(Pe,{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(Pe,{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(da,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Pe,{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(Pe,{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(Pe,{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(Pe,{icon:jsxRuntime.jsx(lucideReact.Strikethrough,{className:"h-4 w-4"}),title:"Strikethrough",isActive:p.isActive("strike"),onClick:()=>p.chain().focus().toggleStrike().run()}),jsxRuntime.jsx(da,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Pe,{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(Pe,{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(da,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Pe,{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(Pe,{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(Pe,{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(da,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Quote,{className:"h-4 w-4"}),title:"Blockquote",isActive:p.isActive("blockquote"),onClick:()=>p.chain().focus().toggleBlockquote().run()}),jsxRuntime.jsx(Pe,{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(da,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(Pe,{icon:jsxRuntime.jsx(lucideReact.Link,{className:"h-4 w-4"}),title:"Insert Link",isActive:p.isActive("link"),onClick:v}),jsxRuntime.jsx(Pe,{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(iC({size:a})),style:{minHeight:d,maxHeight:m}})]})}):null});Wg.displayName="RichTextEditor";var _g=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 fC(e,t,a){return sC.centerCrop(sC.makeAspectCrop({unit:"%",width:90},a,e,t),e,t)}async function $g(e,t,a=0,r=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=a*Math.PI/180,g=e.naturalWidth/2,p=e.naturalHeight/2;return i.save(),i.translate(-m,-u),i.translate(g,p),i.rotate(c),i.scale(r,r),i.translate(-g,-p),i.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.naturalWidth,e.naturalHeight),i.restore(),new Promise(v=>{n.toBlob(N=>{v(N);},"image/png");})}var Kg=U__namespace.forwardRef(({className:e,variant:t,src:a,aspectRatio:r,onCropChange:n,onCropComplete:i,showZoom:s=true,showRotation:l=true,minZoom:d=1,maxZoom:m=3,circularCrop:u=false,initialCrop:c,...g},p)=>{let v=U__namespace.useRef(null),[N,b]=U__namespace.useState(),[h,w]=U__namespace.useState(),[f,y]=U__namespace.useState(1),[P,x]=U__namespace.useState(0),S=C=>{let{width:D,height:T}=C.currentTarget;if(r){let I=fC(D,T,r);b(I);}else b(c||{unit:"%",x:10,y:10,width:80,height:80});},k=C=>{b(C),n?.(C);},M=async C=>{if(w(C),i&&v.current&&C.width&&C.height){let D=await $g(v.current,C,P,f);i(D);}},R=()=>{x(C=>(C+90)%360);};return U__namespace.useEffect(()=>{h&&v.current&&i&&$g(v.current,h,P,f).then(C=>{i(C);});},[f,P,h,i]),jsxRuntime.jsxs("div",{ref:p,className:o(_g({variant:t,className:e})),...g,children:[jsxRuntime.jsx("div",{className:"flex-1 flex items-center justify-center p-4 bg-muted/30 min-h-[300px]",children:jsxRuntime.jsx(sC__default.default,{crop:N,onChange:k,onComplete:M,aspect:r,circularCrop:u,className:"max-h-[400px]",children:jsxRuntime.jsx("img",{ref:v,src:a,alt:"Crop preview",onLoad:S,style:{transform:`scale(${f}) 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(un,{value:[f],onValueChange:([C])=>y(C),min:d,max:m,step:.1,className:"flex-1"}),jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-4 w-4 text-muted-foreground"})]}),l&&jsxRuntime.jsx(O,{variant:"bordered",size:"icon",onClick:R,children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-4 w-4"})})]})]})});Kg.displayName="ImageCropper";var dl=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"}}),vC={sm:96,md:128,lg:192},Yg=U__namespace.forwardRef(({className:e,variant:t,size:a,value:r,qrSize:n,fgColor:i="currentColor",bgColor:s="transparent",level:l="M",includeMargin:d=false,title:m,logo:u,logoSize:c=40,logoPadding:g=4,logoBackgroundColor:p="white",...v},N)=>{let b=n??vC[a??"md"];return r?jsxRuntime.jsx("div",{ref:N,className:o(dl({variant:t,size:a,className:e})),...v,children:jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx(gC__default.default,{value:r,size:b,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:g,backgroundColor:p},children:jsxRuntime.jsx("img",{src:u,alt:"Logo",style:{width:c,height:c,objectFit:"contain"}})})]})}):jsxRuntime.jsx("div",{ref:N,className:o(dl({variant:t,size:a,className:e})),...v,children:jsxRuntime.jsx("div",{className:"flex items-center justify-center bg-muted text-muted-foreground text-xs rounded",style:{width:b,height:b},children:"No data"})})});Yg.displayName="QRCode";var jg=({children:e,defaultTheme:t="system",storageKey:a="reever-ui-theme",enableSystem:r=true,disableTransitionOnChange:n=false,attribute:i="class",forcedTheme:s,themes:l=["light","dark"]})=>jsxRuntime.jsx(nextThemes.ThemeProvider,{defaultTheme:t,storageKey:a,enableSystem:r,disableTransitionOnChange:n,attribute:i,forcedTheme:s,themes:l,children:e});jg.displayName="ThemeProvider";var PC=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"",ghost:""},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"ghost",size:"md"}}),Xg=U__namespace.forwardRef(({className:e,variant:t="ghost",size:a="md",mode:r="dropdown"},n)=>{let{theme:i,setTheme:s,resolvedTheme:l}=nextThemes.useTheme(),[d,m]=U__namespace.useState(false);U__namespace.useEffect(()=>{m(true);},[]);let u=()=>{let c=["light","dark","system"],p=(c.indexOf(i||"system")+1)%c.length;s(c[p]);};return d?r==="cycle"?jsxRuntime.jsxs(O,{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(Wa,{children:[jsxRuntime.jsx($a,{asChild:true,children:jsxRuntime.jsxs(O,{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(pa,{align:"end",children:[jsxRuntime.jsxs(ht,{onClick:()=>s("light"),children:[jsxRuntime.jsx(lucideReact.Sun,{className:"mr-2 h-4 w-4"}),"Light"]}),jsxRuntime.jsxs(ht,{onClick:()=>s("dark"),children:[jsxRuntime.jsx(lucideReact.Moon,{className:"mr-2 h-4 w-4"}),"Dark"]}),jsxRuntime.jsxs(ht,{onClick:()=>s("system"),children:[jsxRuntime.jsx(lucideReact.Monitor,{className:"mr-2 h-4 w-4"}),"System"]})]})]}):jsxRuntime.jsxs(O,{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"})]})});Xg.displayName="ThemeToggle";var Zg=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),Qg=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}}),Jg=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"}}),eb=U__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,startContent:c,endContent:g,id:p,...v},N)=>{let b=U__namespace.useId(),h=p||b,w=`${h}-description`,f=`${h}-error`,y=i&&r;return jsxRuntime.jsxs("div",{className:o(Zg({size:s}),e),children:[t&&jsxRuntime.jsxs(Wi__namespace.Root,{htmlFor:h,className:o(Jg({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:N,id:h,"aria-invalid":i,"aria-describedby":y?f:a?w:void 0,"aria-required":n,className:o(Qg({size:s,isInvalid:i}),c&&"pl-10",g&&"pr-10",d),...v}),g&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:g})]}),a&&!y&&jsxRuntime.jsx("p",{id:w,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),y&&jsxRuntime.jsx("p",{id:f,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});eb.displayName="TextField";var ob=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),TC=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 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-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid: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"}}),ab=classVarianceAuthority.cva("",{variants:{size:{sm:"h-3 w-3",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),MC=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"}}),nb=U__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,min:c,max:g,step:p=1,value:v,defaultValue:N,onChange:b,showButtons:h=true,formatOptions:w,disabled:f,id:y,...P},x)=>{let S=U__namespace.useId(),k=y||S,M=`${k}-description`,R=`${k}-error`,[C,D]=U__namespace.useState(N),T=v!==void 0?v:C,I=i&&r,L=U__namespace.useCallback(J=>{J!==void 0&&(c!==void 0&&J<c&&(J=c),g!==void 0&&J>g&&(J=g)),v===void 0&&D(J),b?.(J);},[v,c,g,b]),V=()=>{let J=(T??0)+p;L(J);},E=()=>{let J=(T??0)-p;L(J);},H=J=>{let ot=J.target.value;if(ot==="")L(void 0);else {let z=parseFloat(ot);isNaN(z)||L(z);}},B=J=>{J.key==="ArrowUp"?(J.preventDefault(),V()):J.key==="ArrowDown"&&(J.preventDefault(),E());},A=U__namespace.useMemo(()=>T===void 0?"":w?new Intl.NumberFormat(void 0,w).format(T):T.toString(),[T,w]),Q=c!==void 0&&T!==void 0&&T<=c,te=g!==void 0&&T!==void 0&&T>=g;return jsxRuntime.jsxs("div",{className:o(ob({size:s}),e),children:[t&&jsxRuntime.jsxs(Wi__namespace.Root,{htmlFor:k,className:o(MC({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("button",{type:"button",onClick:E,disabled:f||Q,className:o(tb({size:s}),"left-1"),tabIndex:-1,"aria-label":"Decrease value",children:jsxRuntime.jsx(lucideReact.Minus,{className:o(ab({size:s}))})}),jsxRuntime.jsx("input",{ref:x,id:k,type:"text",inputMode:"decimal",value:A,onChange:H,onKeyDown:B,"aria-invalid":i,"aria-describedby":I?R:a?M:void 0,"aria-required":n,"aria-valuemin":c,"aria-valuemax":g,"aria-valuenow":T,disabled:f,className:o(TC({size:s,isInvalid:i}),!h&&"px-3",d),...P}),h&&jsxRuntime.jsx("button",{type:"button",onClick:V,disabled:f||te,className:o(tb({size:s}),"right-1"),tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:o(ab({size:s}))})})]}),a&&!I&&jsxRuntime.jsx("p",{id:M,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),I&&jsxRuntime.jsx("p",{id:R,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});nb.displayName="NumberField";var lb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),VC=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"}}),LC=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"}}),IC=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"}}),db=U__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:g="",onChange:p,onClear:v,onSearch:N,showClearButton:b=true,showSearchIcon:h=true,disabled:w,placeholder:f="Search...",id:y,...P},x)=>{let S=U__namespace.useId(),k=y||S,M=`${k}-description`,R=`${k}-error`,[C,D]=U__namespace.useState(g),T=c!==void 0?c:C,I=i&&r,L=T.length>0,V=B=>{let A=B.target.value;c===void 0&&D(A),p?.(A);},E=()=>{c===void 0&&D(""),p?.(""),v?.();},H=B=>{B.key==="Enter"?(B.preventDefault(),N?.(T)):B.key==="Escape"&&L&&(B.preventDefault(),E());};return jsxRuntime.jsxs("div",{className:o(lb({size:s}),e),children:[t&&jsxRuntime.jsxs(Wi__namespace.Root,{htmlFor:k,className:o(LC({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(lucideReact.Search,{className:o(ib({size:s}),"absolute left-3 top-1/2 -translate-y-1/2")}),jsxRuntime.jsx("input",{ref:x,id:k,type:"search",value:T,onChange:V,onKeyDown:H,placeholder:f,"aria-invalid":i,"aria-describedby":I?R:a?M:void 0,"aria-required":n,disabled:w,className:o(VC({size:s,isInvalid:i}),!h&&"pl-3",!b&&"pr-3",d),...P}),b&&L&&!w&&jsxRuntime.jsx("button",{type:"button",onClick:E,className:o(IC({size:s})),tabIndex:-1,"aria-label":"Clear search",children:jsxRuntime.jsx(lucideReact.X,{className:o(ib({size:s}))})})]}),a&&!I&&jsxRuntime.jsx("p",{id:M,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),I&&jsxRuntime.jsx("p",{id:R,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});db.displayName="SearchField";var mb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),AC=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-3 py-1.5 text-xs",md:"h-10 pl-10 pr-3 py-2 text-sm",lg:"h-12 pl-12 pr-4 py-3 text-base"},isInvalid:{true:"border-danger focus-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),HC=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"}}),zC=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"}}),gl=(e,t="yyyy-MM-dd")=>{if(!e)return "";let a=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return t.replace("yyyy",String(a)).replace("MM",r).replace("dd",n)},BC=e=>{if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t},pb=U__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:g,onChange:p,minDate:v,maxDate:N,dateFormat:b="yyyy-MM-dd",showIcon:h=true,disabled:w,id:f,...y},P)=>{let x=U__namespace.useId(),S=f||x,k=`${S}-description`,M=`${S}-error`,[R,C]=U__namespace.useState(g??null),D=c!==void 0?c:R,T=i&&r,I=H=>{let B=BC(H.target.value);c===void 0&&C(B),p?.(B);},L=D?gl(D,"yyyy-MM-dd"):"",V=v?gl(v,"yyyy-MM-dd"):void 0,E=N?gl(N,"yyyy-MM-dd"):void 0;return jsxRuntime.jsxs("div",{className:o(mb({size:s}),e),children:[t&&jsxRuntime.jsxs(Wi__namespace.Root,{htmlFor:S,className:o(zC({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(lucideReact.Calendar,{className:o(HC({size:s}),"absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none")}),jsxRuntime.jsx("input",{ref:P,id:S,type:"date",value:L,onChange:I,min:V,max:E,"aria-invalid":i,"aria-describedby":T?M:a?k:void 0,"aria-required":n,disabled:w,className:o(AC({size:s,isInvalid:i}),!h&&"pl-3",d),...y})]}),a&&!T&&jsxRuntime.jsx("p",{id:k,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),T&&jsxRuntime.jsx("p",{id:M,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});pb.displayName="DateField";var fb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),OC=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-3 py-1.5 text-xs",md:"h-10 pl-10 pr-3 py-2 text-sm",lg:"h-12 pl-12 pr-4 py-3 text-base"},isInvalid:{true:"border-danger focus-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),GC=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"}}),WC=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)=>{if(!e)return "";let a=String(e.hour).padStart(2,"0"),r=String(e.minute).padStart(2,"0");if(t&&e.second!==void 0){let n=String(e.second).padStart(2,"0");return `${a}:${r}:${n}`}return `${a}:${r}`},$C=(e,t)=>{if(!e)return null;let a=e.split(":");if(a.length<2)return null;let r=parseInt(a[0],10),n=parseInt(a[1],10),i=t&&a[2]?parseInt(a[2],10):void 0;return isNaN(r)||isNaN(n)?null:{hour:r,minute:n,second:i}},gb=U__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:g,onChange:p,minTime:v,maxTime:N,showSeconds:b=false,showIcon:h=true,hourCycle:w=24,disabled:f,id:y,...P},x)=>{let S=U__namespace.useId(),k=y||S,M=`${k}-description`,R=`${k}-error`,[C,D]=U__namespace.useState(g??null),T=c!==void 0?c:C,I=i&&r,L=B=>{let A=$C(B.target.value,b);c===void 0&&D(A),p?.(A);},V=vl(T,b),E=v?vl(v,b):void 0,H=N?vl(N,b):void 0;return jsxRuntime.jsxs("div",{className:o(fb({size:s}),e),children:[t&&jsxRuntime.jsxs(Wi__namespace.Root,{htmlFor:k,className:o(WC({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(lucideReact.Clock,{className:o(GC({size:s}),"absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none")}),jsxRuntime.jsx("input",{ref:x,id:k,type:"time",value:V,onChange:L,min:E,max:H,step:b?1:60,"aria-invalid":i,"aria-describedby":I?R:a?M:void 0,"aria-required":n,disabled:f,className:o(OC({size:s,isInvalid:i}),!h&&"pl-3",d),...P})]}),a&&!I&&jsxRuntime.jsx("p",{id:M,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),I&&jsxRuntime.jsx("p",{id:R,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});gb.displayName="TimeField";var hb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),_C=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 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-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),KC=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"}}),UC=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),YC=e=>(e.startsWith("#")||(e="#"+e),e.length===4&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),e.toUpperCase()),xb=U__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:g="#000000",onChange:p,showSwatch:v=true,showPicker:N=true,allowAlpha:b=false,disabled:h,id:w,...f},y)=>{let P=U__namespace.useId(),x=w||P,S=`${x}-picker`,k=`${x}-description`,M=`${x}-error`,[R,C]=U__namespace.useState(g),D=c!==void 0?c:R,T=i&&r,I=H=>{let B=H.target.value;B&&!B.startsWith("#")&&(B="#"+B),c===void 0&&C(B),p?.(B);},L=H=>{let B=H.target.value.toUpperCase();c===void 0&&C(B),p?.(B);},V=()=>{if(D&&bb(D)){let H=YC(D);H!==D&&(c===void 0&&C(H),p?.(H));}},E=bb(D)?D:"#000000";return jsxRuntime.jsxs("div",{className:o(hb({size:s}),e),children:[t&&jsxRuntime.jsxs(Wi__namespace.Root,{htmlFor:x,className:o(UC({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(KC({size:s})),children:N?jsxRuntime.jsxs("label",{htmlFor:S,className:"block h-full w-full cursor-pointer",children:[jsxRuntime.jsx("input",{id:S,type:"color",value:E,onChange:L,disabled:h,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0",tabIndex:-1}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:E}})]}):jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:E}})}),jsxRuntime.jsx("input",{ref:y,id:x,type:"text",value:D,onChange:I,onBlur:V,placeholder:"#000000",maxLength:b?9:7,"aria-invalid":i,"aria-describedby":T?M:a?k:void 0,"aria-required":n,disabled:h,className:o(_C({size:s,isInvalid:i}),!v&&"pl-3",d),...f})]}),a&&!T&&jsxRuntime.jsx("p",{id:k,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),T&&jsxRuntime.jsx("p",{id:M,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});xb.displayName="ColorField";var Rb=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"}}),wb=U__namespace.createContext({});function XC(){return U__namespace.useContext(wb)}var Nb=U__namespace.forwardRef(({className:e,variant:t,orientation:a,spacing:r,disabled:n,children:i,...s},l)=>jsxRuntime.jsx(wb.Provider,{value:{disabled:n},children:jsxRuntime.jsx("div",{ref:l,role:"group",className:o(Rb({variant:t,orientation:a,spacing:r,className:e})),...s,children:i})}));Nb.displayName="ButtonGroup";var Cb=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"}}),Sb=U__namespace.forwardRef(({className:e,variant:t,size:a,radius:r,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"}[a??"md"];return jsxRuntime.jsx("button",{ref:d,type:"button",disabled:i||n,className:o(Cb({variant:t,size:a,radius:r,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})})});Sb.displayName="IconButton";var Mb=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"}}),kb=U__namespace.forwardRef(({className:e,variant:t,orientation:a,size:r,density:n,items:i,maxVisibleItems:s,isDisabled:l,onAction:d,showLabels:m=false,renderItem:u,...c},g)=>{let p=s&&s<i.length?i.slice(0,s):i,v=s&&s<i.length?i.slice(s):[],N={sm:"h-8 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-10 px-4 text-base"}[r??"md"],b={sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[r??"md"],h={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5"}[r??"md"],w=(y,P)=>{P&&P(),d&&d(y);},f=y=>jsxRuntime.jsxs("button",{type:"button",disabled:l||y.isDisabled,onClick:()=>w(y.key,y.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?N:b),"aria-label":y.label,children:[y.icon&&jsxRuntime.jsx("span",{className:h,children:y.icon}),m&&jsxRuntime.jsx("span",{children:y.label})]},y.key);return jsxRuntime.jsxs("div",{ref:g,role:"group",className:o(Mb({variant:t,orientation:a,size:r,density:n,className:e})),...c,children:[p.map(y=>u?u(y):f(y)),v.length>0&&jsxRuntime.jsxs(Wa,{children:[jsxRuntime.jsx($a,{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",b),"aria-label":"More actions",children:jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:h})})}),jsxRuntime.jsx(pa,{align:"end",children:v.map(y=>jsxRuntime.jsxs(ht,{disabled:y.isDisabled,onClick:()=>w(y.key,y.onPress),children:[y.icon&&jsxRuntime.jsx("span",{className:o(h,"mr-2"),children:y.icon}),y.label]},y.key))})]})]})});kb.displayName="ActionGroup";var Ib=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"}}),eS=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}}),Eb=U__namespace.forwardRef(({className:e,variant:t,size:a,pulse:r=false,hideLabel:n=false,children:i,...s},l)=>jsxRuntime.jsxs("span",{ref:l,role:"status",className:o(Ib({variant:t,size:a,className:e})),...s,children:[jsxRuntime.jsx("span",{className:o(eS({size:a,pulse:r})),"aria-hidden":"true"}),!n&&i&&jsxRuntime.jsx("span",{className:"text-foreground",children:i})]}));Eb.displayName="StatusLight";var Hb=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"}}),aS=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"}}),rS=classVarianceAuthority.cva("font-semibold text-foreground",{variants:{size:{sm:"text-base",md:"text-lg",lg:"text-xl"}},defaultVariants:{size:"md"}}),oS=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),zb=U__namespace.forwardRef(({className:e,size:t,illustration:a,heading:r,description:n,children:i,...s},l)=>jsxRuntime.jsxs("div",{ref:l,className:o(Hb({size:t,className:e})),...s,children:[a&&jsxRuntime.jsx("div",{className:o(aS({size:t})),"aria-hidden":"true",children:a}),r&&jsxRuntime.jsx("h3",{className:o(rS({size:t})),children:r}),n&&jsxRuntime.jsx("p",{className:o(oS({size:t})),children:n}),i&&jsxRuntime.jsx("div",{className:"mt-2",children:i})]}));zb.displayName="IllustratedMessage";var Ob=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-yellow-200 bg-yellow-50 text-yellow-900 dark:border-yellow-800 dark:bg-yellow-950 dark:text-yellow-100 [&>svg]:text-yellow-600 dark:[&>svg]:text-yellow-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"}}),mS={info:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle,neutral:lucideReact.Info},Gb=U__namespace.forwardRef(({className:e,variant:t,title:a,icon:r,hideIcon:n=false,isDismissible:i=false,onDismiss:s,actions:l,children:d,...m},u)=>{let[c,g]=U__namespace.useState(true);if(!c)return null;let p=mS[t??"info"],v=()=>{g(false),s?.();};return jsxRuntime.jsxs("div",{ref:u,role:"alert",className:o(Ob({variant:t,className:e})),...m,children:[!n&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r||jsxRuntime.jsx(p,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[a&&jsxRuntime.jsx("div",{className:"font-medium",children:a}),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"})})]})});Gb.displayName="InlineAlert";var Wb=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"}}),$b=U__namespace.forwardRef(({className:e,position:t,size:a,selectedCount:r=0,isOpen:n=true,onClose:i,showClose:s=true,selectedText:l,children:d,...m},u)=>{if(!n||r===0)return null;let c=()=>typeof l=="function"?l(r):l||`${r} item${r>1?"s":""} selected`;return jsxRuntime.jsxs("div",{ref:u,role:"toolbar","aria-label":"Actions for selected items",className:o(Wb({position:t,size:a,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"})})]})]})});$b.displayName="ActionBar";var _b=U__namespace.forwardRef(({className:e,icon:t,children:a,...r},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),...r,children:[t&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:t}),a]}));_b.displayName="ActionBarButton";var Kb=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 hS(e){return "items"in e}var Ub=U__namespace.forwardRef(({items:e,align:t="end",side:a="bottom",iconOrientation:r="vertical",trigger:n,variant:i,size:s,onAction:l,"aria-label":d="More actions",triggerClassName:m,disabled:u},c)=>{let g={sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}[s??"md"],p=r==="horizontal"?lucideReact.MoreHorizontal:lucideReact.MoreVertical,v=b=>{b.onSelect?.(),l?.(b.key);},N=b=>jsxRuntime.jsxs(ht,{disabled:b.isDisabled,onClick:()=>v(b),className:o(b.isDestructive&&"text-destructive focus:text-destructive"),children:[b.icon&&jsxRuntime.jsx("span",{className:"mr-2 h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:b.icon}),jsxRuntime.jsx("span",{className:"flex-1",children:b.label}),b.shortcut&&jsxRuntime.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:b.shortcut})]},b.key);return jsxRuntime.jsxs(Wa,{children:[jsxRuntime.jsx($a,{asChild:true,children:n||jsxRuntime.jsx("button",{ref:c,type:"button",disabled:u,className:o(Kb({variant:i,size:s}),m),"aria-label":d,children:jsxRuntime.jsx(p,{className:g})})}),jsxRuntime.jsx(pa,{align:t,side:a,children:e.map((b,h)=>hS(b)?jsxRuntime.jsxs(U__namespace.Fragment,{children:[h>0&&jsxRuntime.jsx(dn,{}),b.items.map(N)]},b.key):N(b))})]})});Ub.displayName="ActionMenu";var Xb=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"}}),qb=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 Zb({className:e,variant:t,size:a,items:r,selectedKeys:n,selectionMode:i="none",onSelectionChange:s,allowsDragging:l=false,onReorder:d,showCheckbox:m=false,renderItem:u,emptyContent:c,...g}){let[p,v]=U__namespace.useState(new Set),[N,b]=U__namespace.useState(null),[h,w]=U__namespace.useState(null),f=U__namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):p,[n,p]),y=k=>{if(i==="none")return;let M;i==="single"?M=f.has(k)?new Set:new Set([k]):(M=new Set(f),M.has(k)?M.delete(k):M.add(k)),n||v(M),s?.(M);},P=(k,M)=>{b(M),k.dataTransfer.effectAllowed="move";},x=(k,M)=>{k.preventDefault(),N!==M&&w(M);},S=()=>{if(N&&h&&N!==h){let k=r.findIndex(D=>D.key===N),M=r.findIndex(D=>D.key===h),R=[...r],[C]=R.splice(k,1);R.splice(M,0,C),d?.(R);}b(null),w(null);};return r.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(Xb({variant:t,size:a,className:e})),...g,children:r.map(k=>{let M=f.has(k.key),R=N===k.key,C=h===k.key;return u?jsxRuntime.jsx("div",{role:"option","aria-selected":M,onClick:()=>y(k.key),children:u(k,M)},k.key):jsxRuntime.jsxs("div",{role:"option","aria-selected":M,"aria-disabled":k.isDisabled,draggable:l&&!k.isDisabled,onDragStart:D=>P(D,k.key),onDragOver:D=>x(D,k.key),onDragEnd:S,onClick:()=>!k.isDisabled&&y(k.key),className:o(qb({variant:t,size:a,isSelected:M,isDisabled:k.isDisabled}),R&&"opacity-50",C&&"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",M?"bg-primary border-primary text-primary-foreground":"border-input"),children:M&&jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),k.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 text-muted-foreground [&>svg]:h-full [&>svg]:w-full",children:k.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:k.label}),k.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:k.description})]})]},k.key)})})}Zb.displayName="ListView";var Jb=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"}}),RS=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"}}),Qb=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"}}),ev=U__namespace.forwardRef(({className:e,orientation:t="horizontal",size:a,value:r,defaultValue:n=[25,75],onValueChange:i,onValueCommit:s,showLabels:l=false,formatLabel:d=b=>String(b),trackColor:m="primary",min:u=0,max:c=100,step:g=1,disabled:p,...v},N)=>{let[b,h]=U__namespace.useState(n),w=r??b,f=x=>{let S=x;r||h(S),i?.(S);},y=x=>{s?.(x);},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(w[0])}),jsxRuntime.jsx("span",{children:d(w[1])})]}),jsxRuntime.jsxs(zt__namespace.Root,{ref:N,value:w,onValueChange:f,onValueCommit:y,min:u,max:c,step:g,disabled:p,orientation:t??"horizontal",className:o(Jb({orientation:t,size:a,className:e})),...v,children:[jsxRuntime.jsx(zt__namespace.Track,{className:o(RS({orientation:t,size:a})),children:jsxRuntime.jsx(zt__namespace.Range,{className:o("absolute rounded-full",P,{"h-full":t==="horizontal","w-full":t==="vertical"})})}),jsxRuntime.jsx(zt__namespace.Thumb,{className:o(Qb({size:a}))}),jsxRuntime.jsx(zt__namespace.Thumb,{className:o(Qb({size:a}))})]})]})});ev.displayName="RangeSlider";var rv=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"}}),CS=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"}}),SS={help:lucideReact.HelpCircle,info:lucideReact.Info,warning:lucideReact.AlertCircle},ov=U__namespace.forwardRef(({variant:e="help",size:t,title:a,children:r,trigger:n,side:i="top",align:s="center",open:l,onOpenChange:d,learnMoreUrl:m,learnMoreText:u="Learn more",triggerClassName:c,contentClassName:g},p)=>{let v=SS[e??"help"];return jsxRuntime.jsxs(it__namespace.Root,{open:l,onOpenChange:d,children:[jsxRuntime.jsx(it__namespace.Trigger,{asChild:true,children:n||jsxRuntime.jsx("button",{ref:p,type:"button",className:o(rv({variant:e,size:t}),c),"aria-label":"Help",children:jsxRuntime.jsx(v,{className:"h-full w-full"})})}),jsxRuntime.jsx(it__namespace.Portal,{children:jsxRuntime.jsxs(it__namespace.Content,{side:i,align:s,sideOffset:8,className:o(CS({size:t}),g),children:[a&&jsxRuntime.jsx("div",{className:"mb-2 font-semibold text-foreground",children:a}),jsxRuntime.jsx("div",{className:"text-muted-foreground",children:r}),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(it__namespace.Arrow,{className:"fill-popover"})]})})]})});ov.displayName="ContextualHelp";var iv=classVarianceAuthority.cva("flex flex-wrap",{variants:{spacing:{sm:"gap-1",md:"gap-2",lg:"gap-3"}},defaultVariants:{spacing:"md"}}),Cl=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 sv({className:e,spacing:t,variant:a,size:r,items:n,selectedKeys:i,selectionMode:s="none",onSelectionChange:l,allowsRemoving:d=false,onRemove:m,label:u,description:c,errorMessage:g,maxTags:p,...v}){let[N,b]=U__namespace.useState(new Set),h=U__namespace.useMemo(()=>i?i instanceof Set?i:new Set(i):N,[i,N]),w=x=>{if(s==="none")return;let S;s==="single"?S=h.has(x)?new Set:new Set([x]):(S=new Set(h),S.has(x)?S.delete(x):S.add(x)),i||b(S),l?.(S);},f=(x,S)=>{S.stopPropagation(),m?.(x);},y=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(iv({spacing:t}),e),...v,children:[y.map(x=>{let S=h.has(x.key),k=s!=="none";return jsxRuntime.jsxs("span",{role:k?"button":void 0,tabIndex:k&&!x.isDisabled?0:void 0,"aria-pressed":k?S:void 0,onClick:()=>!x.isDisabled&&w(x.key),onKeyDown:M=>{(M.key==="Enter"||M.key===" ")&&!x.isDisabled&&(M.preventDefault(),w(x.key));},style:x.color?{backgroundColor:x.color}:void 0,className:o(Cl({variant:x.color?void 0:a,size:r,isSelected:S,isDisabled:x.isDisabled}),k&&!x.isDisabled&&"cursor-pointer hover:opacity-80",x.color&&"text-white"),children:[x.icon&&jsxRuntime.jsx("span",{className:"h-3.5 w-3.5 [&>svg]:h-full [&>svg]:w-full",children:x.icon}),x.label,d&&!x.isDisabled&&jsxRuntime.jsx("button",{type:"button",onClick:M=>f(x.key,M),className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${x.label}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},x.key)}),P>0&&jsxRuntime.jsxs("span",{className:o(Cl({variant:"surface",size:r}),"cursor-default"),children:["+",P," more"]})]}),g&&jsxRuntime.jsx("span",{className:"text-sm text-destructive",children:g})]})}sv.displayName="TagGroup";var cv=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"}}),mv=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 pv({className:e,columns:t,gap:a,items:r,selectedKeys:n,selectionMode:i="none",onSelectionChange:s,showSelectionIndicator:l=true,itemVariant:d="default",itemSize:m="md",renderItem:u,emptyContent:c,...g}){let[p,v]=U__namespace.useState(new Set),N=U__namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):p,[n,p]),b=h=>{if(i==="none")return;let w;i==="single"?w=N.has(h)?new Set:new Set([h]):(w=new Set(N),w.has(h)?w.delete(h):w.add(h)),n||v(w),s?.(w);};return r.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(cv({columns:t,gap:a,className:e})),...g,children:r.map(h=>{let w=N.has(h.key);return u?jsxRuntime.jsx("div",{role:"gridcell","aria-selected":w,onClick:()=>b(h.key),children:u(h,w)},h.key):jsxRuntime.jsxs("div",{role:"gridcell","aria-selected":w,"aria-disabled":h.isDisabled,onClick:()=>!h.isDisabled&&b(h.key),className:o(mv({variant:d,size:m,isSelected:w,isDisabled:h.isDisabled})),children:[l&&i!=="none"&&w&&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"})}),h.thumbnail&&jsxRuntime.jsx("div",{className:"mb-2 aspect-square w-full overflow-hidden rounded-md bg-muted",children:h.thumbnail}),jsxRuntime.jsxs("div",{className:"min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:h.label}),h.description&&jsxRuntime.jsx("div",{className:"mt-1 truncate text-sm text-muted-foreground",children:h.description})]})]},h.key)})})}pv.displayName="GridList";var fv=classVarianceAuthority.cva("relative w-full",{variants:{size:{sm:"h-1.5",md:"h-2",lg:"h-3"}},defaultVariants:{size:"md"}}),kS=classVarianceAuthority.cva("w-full h-full rounded-full overflow-hidden",{variants:{variant:{default:"bg-secondary",subtle:"bg-muted"}},defaultVariants:{variant:"default"}}),DS=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}}),Ri=U__namespace.forwardRef(({className:e,size:t,value:a,min:r=0,max:n=100,optimum:i,low:s,high:l,label:d,showValueLabel:m=false,formatValue:u,color:c="primary",trackVariant:g="default",...p},v)=>{let N=Math.min(100,Math.max(0,(a-r)/(n-r)*100)),b=()=>{if(c!=="auto")return "";let w=(a-r)/(n-r),f=s!==void 0?(s-r)/(n-r):.25,y=l!==void 0?(l-r)/(n-r):.75;return (i!==void 0?(i-r)/(n-r):1)>=.5?w<=f?"bg-red-500":w<=y?"bg-yellow-500":"bg-green-500":w>=y?"bg-red-500":w>=f?"bg-yellow-500":"bg-green-500"},h=u?u(a,N):`${Math.round(N)}%`;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:h})]}),jsxRuntime.jsx("div",{role:"meter","aria-valuenow":a,"aria-valuemin":r,"aria-valuemax":n,"aria-label":d,className:o(fv({size:t})),children:jsxRuntime.jsx("div",{className:o(kS({variant:g})),children:jsxRuntime.jsx("div",{className:o(DS({color:c==="auto"?void 0:c,rounded:N>=100}),c==="auto"&&b()),style:{width:`${N}%`}})})})]})});Ri.displayName="Meter";var gv=U__namespace.forwardRef((e,t)=>jsxRuntime.jsx(Ri,{ref:t,color:"auto",low:50,high:80,optimum:0,...e}));gv.displayName="DiskUsageMeter";var bv=U__namespace.forwardRef((e,t)=>jsxRuntime.jsx(Ri,{ref:t,color:"auto",low:20,high:50,optimum:100,...e}));bv.displayName="BatteryMeter";var hv=classVarianceAuthority.cva("flex flex-wrap",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2"},layout:{wrap:"flex-wrap",grid:"grid"}},defaultVariants:{size:"md",layout:"wrap"}}),xv=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"],yv=["#f8fafc","#f1f5f9","#e2e8f0","#cbd5e1","#94a3b8","#64748b","#475569","#334155","#1e293b","#0f172a","#fef2f2","#fee2e2","#fecaca","#fca5a5","#f87171","#ef4444","#dc2626","#b91c1c","#991b1b","#7f1d1d","#fff7ed","#ffedd5","#fed7aa","#fdba74","#fb923c","#f97316","#ea580c","#c2410c","#9a3412","#7c2d12","#fefce8","#fef9c3","#fef08a","#fde047","#facc15","#eab308","#ca8a04","#a16207","#854d0e","#713f12","#f0fdf4","#dcfce7","#bbf7d0","#86efac","#4ade80","#22c55e","#16a34a","#15803d","#166534","#14532d","#eff6ff","#dbeafe","#bfdbfe","#93c5fd","#60a5fa","#3b82f6","#2563eb","#1d4ed8","#1e40af","#1e3a8a","#faf5ff","#f3e8ff","#e9d5ff","#d8b4fe","#c084fc","#a855f7","#9333ea","#7e22ce","#6b21a8","#581c87","#fdf2f8","#fce7f3","#fbcfe8","#f9a8d4","#f472b6","#ec4899","#db2777","#be185d","#9d174d","#831843"],Rv=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],wv=U__namespace.forwardRef(({value:e,defaultValue:t,onChange:a,colors:r="default",customColors:n,size:i,layout:s,swatchSize:l="md",swatchShape:d="square",columns:m,disabled:u,showSelection:c=true,className:g,...p},v)=>{let[N,b]=U__namespace.useState(t),h=e!==void 0?e:N,f=(()=>{if(n)return n;if(Array.isArray(r))return r;switch(r){case "tailwind":return yv;case "material":return Rv;default:return xv}})(),y=x=>{u||(e===void 0&&b(x),a?.(x));},P=s==="grid"&&m?{gridTemplateColumns:`repeat(${m}, 1fr)`}:{};return jsxRuntime.jsx("div",{ref:v,role:"listbox","aria-label":"Color palette",className:o(hv({size:i,layout:s}),g),style:P,...p,children:f.map((x,S)=>jsxRuntime.jsx(Mr,{color:x,size:l,shape:d,isSelected:c&&h?.toLowerCase()===x.toLowerCase(),onSelect:y,disabled:u,role:"option","aria-selected":h?.toLowerCase()===x.toLowerCase()},`${x}-${S}`))})});wv.displayName="ColorSwatchPicker";var Nv=classVarianceAuthority.cva("relative rounded-md border border-input 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"}},defaultVariants:{size:"md"}}),Pi=(e,t,a)=>{let r=n=>{let i=(n+e/60)%6;return a-a*t*Math.max(Math.min(i,4-i,1),0)};return [Math.round(r(5)*255),Math.round(r(3)*255),Math.round(r(1)*255)]},Pv=(e,t,a)=>{e/=255,t/=255,a/=255;let r=Math.max(e,t,a),n=Math.min(e,t,a),i=r-n,s=0,l=r===0?0:i/r,d=r;if(i!==0)switch(r){case e:s=((t-a)/i+(t<a?6:0))*60;break;case t:s=((a-e)/i+2)*60;break;case a:s=((e-t)/i+4)*60;break}return [s,l,d]},Cv=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},Sv=(e,t,a)=>"#"+[e,t,a].map(r=>r.toString(16).padStart(2,"0")).join(""),Tv=U__namespace.forwardRef(({hue:e,saturation:t,brightness:a,value:r,defaultValue:n="#ff0000",onChange:i,onColorChange:s,size:l,disabled:d,thumbSize:m=16,className:u,...c},g)=>{let p=U__namespace.useRef(null),[v,N]=U__namespace.useState(false),b=U__namespace.useCallback(A=>{let Q=Cv(A);return Q?Pv(...Q):[0,1,1]},[]),[h,w]=U__namespace.useState(()=>b(r||n)),f=e??h[0],y=t??h[1],P=a??h[2];U__namespace.useEffect(()=>{if(r){let A=b(r);w(A);}},[r,b]);let x=U__namespace.useCallback((A,Q)=>{if(d||!p.current)return;let te=p.current.getBoundingClientRect(),J=Math.max(0,Math.min(1,(A-te.left)/te.width)),ot=Math.max(0,Math.min(1,(Q-te.top)/te.height)),z=J,F=1-ot;t===void 0&&a===void 0&&w([f,z,F]),i?.({hue:f,saturation:z,brightness:F});let ae=Pi(f,z,F);s?.(Sv(...ae));},[d,f,t,a,i,s]),S=A=>{d||(A.preventDefault(),N(true),A.target.setPointerCapture(A.pointerId),x(A.clientX,A.clientY));},k=A=>{v&&x(A.clientX,A.clientY);},M=A=>{N(false),A.target.releasePointerCapture(A.pointerId);},[R,C,D]=Pi(f,1,1),T=`rgb(${R}, ${C}, ${D})`,I=y*100,L=(1-P)*100,[V,E,H]=Pi(f,y,P),B=`rgb(${V}, ${E}, ${H})`;return jsxRuntime.jsx("div",{ref:g,className:o(Nv({size:l}),d&&"cursor-not-allowed opacity-50",u),...c,children:jsxRuntime.jsxs("div",{ref:p,className:"absolute inset-0",style:{backgroundColor:T},onPointerDown:S,onPointerMove:k,onPointerUp:M,onPointerLeave:M,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 shadow-md pointer-events-none",style:{width:m,height:m,left:`calc(${I}% - ${m/2}px)`,top:`calc(${L}% - ${m/2}px)`,backgroundColor:B,boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});Tv.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"}}),AS=`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")`,Mv="linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)",Dv=U__namespace.forwardRef(({value:e,defaultValue:t,onChange:a,channel:r="hue",baseColor:n="#ff0000",orientation:i,size:s,disabled:l,thumbSize:d=18,showBorder:m=true,className:u,...c},g)=>{let p=U__namespace.useRef(null),[v,N]=U__namespace.useState(false),b=()=>{switch(r){case "hue":return 0;case "alpha":case "saturation":case "brightness":return 1;default:return 0}},[h,w]=U__namespace.useState(t??b()),f=e??h,y=r==="hue"?f/360:f,P=U__namespace.useCallback((T,I)=>{if(l||!p.current)return;let L=p.current.getBoundingClientRect(),V=i!=="vertical",E;V?E=Math.max(0,Math.min(1,(T-L.left)/L.width)):E=Math.max(0,Math.min(1,1-(I-L.top)/L.height));let H=r==="hue"?E*360:E;e===void 0&&w(H),a?.(H);},[l,i,r,e,a]),x=T=>{l||(T.preventDefault(),N(true),T.target.setPointerCapture(T.pointerId),P(T.clientX,T.clientY));},S=T=>{v&&P(T.clientX,T.clientY);},k=T=>{N(false),T.target.releasePointerCapture(T.pointerId);},M=()=>{let T=i!=="vertical",I=T?"to right":"to top";switch(r){case "hue":return T?Mv:"linear-gradient(to top, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)";case "alpha":return `linear-gradient(${I}, transparent, ${n})`;case "saturation":return `linear-gradient(${I}, #808080, ${n})`;case "brightness":return `linear-gradient(${I}, #000000, ${n})`;default:return Mv}},R=()=>r==="hue"?`hsl(${f}, 100%, 50%)`:n,C=i!=="vertical",D=y*100;return jsxRuntime.jsx("div",{ref:g,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:r==="alpha"?AS:void 0,backgroundSize:r==="alpha"?"8px 8px":void 0},onPointerDown:x,onPointerMove:S,onPointerUp:k,onPointerLeave:k,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 rounded-full",style:{background:M()}}),jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:d,height:d,...C?{left:`calc(${D}% - ${d/2}px)`,top:"50%",transform:"translateY(-50%)"}:{bottom:`calc(${D}% - ${d/2}px)`,left:"50%",transform:"translateX(-50%)"},backgroundColor:R(),boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});Dv.displayName="ColorSlider";var Vv=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"}}),BS=(e,t,a)=>{let r=e-a,n=t-a,i=Math.atan2(n,r)*180/Math.PI+90;return i<0&&(i+=360),i},Lv=U__namespace.forwardRef(({value:e,defaultValue:t=0,onChange:a,size:r,disabled:n,innerRadius:i=.6,thumbSize:s=20,showCenter:l=true,className:d,...m},u)=>{let c=U__namespace.useRef(null),[g,p]=U__namespace.useState(false),[v,N]=U__namespace.useState(t),b=e??v,h=U__namespace.useCallback((x,S)=>{if(n||!c.current)return;let k=c.current.getBoundingClientRect(),M=k.width/2,R=x-k.left,C=S-k.top,D=BS(R,C,M);e===void 0&&N(D),a?.(D);},[n,e,a]),w=x=>{n||(x.preventDefault(),p(true),x.target.setPointerCapture(x.pointerId),h(x.clientX,x.clientY));},f=x=>{g&&h(x.clientX,x.clientY);},y=x=>{p(false),x.target.releasePointerCapture(x.pointerId);},P=()=>{let x=[];for(let S=0;S<=360;S+=30)x.push(`hsl(${S}, 100%, 50%) ${S}deg`);return `conic-gradient(from 270deg, ${x.join(", ")})`};return jsxRuntime.jsx("div",{ref:u,className:o(Vv({size:r}),n&&"cursor-not-allowed opacity-50",d),...m,children:jsxRuntime.jsxs("div",{ref:c,className:"absolute inset-0 rounded-full",style:{background:P()},onPointerDown:w,onPointerMove:f,onPointerUp:y,onPointerLeave:y,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(FS,{hue:b,innerRadius:i,thumbSize:s})]})})});Lv.displayName="ColorWheel";var FS=({hue:e,innerRadius:t,thumbSize:a})=>{let r=(1-(1-t)/2)*50,n=(e-90)*Math.PI/180,i=50+r*Math.cos(n),s=50+r*Math.sin(n);return jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:a,height:a,left:`calc(${i}% - ${a/2}px)`,top:`calc(${s}% - ${a/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 Iv=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}}),Ko=U__namespace.forwardRef(({className:e,direction:t,align:a,justify:r,wrap:n,gap:i,inline:s,as:l="div",...d},m)=>jsxRuntime.jsx(l,{ref:m,className:o(Iv({direction:t,align:a,justify:r,wrap:n,gap:i,inline:s,className:e})),...d}));Ko.displayName="Flex";var Ev=U__namespace.forwardRef(({gap:e=2,align:t="center",...a},r)=>jsxRuntime.jsx(Ko,{ref:r,direction:"row",gap:e,align:t,...a}));Ev.displayName="HStack";var Av=U__namespace.forwardRef(({gap:e=2,align:t="stretch",...a},r)=>jsxRuntime.jsx(Ko,{ref:r,direction:"column",gap:e,align:t,...a}));Av.displayName="VStack";var Hv=U__namespace.forwardRef((e,t)=>jsxRuntime.jsx(Ko,{ref:t,align:"center",justify:"center",...e}));Hv.displayName="Center";var Bv=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"}}),Si=U__namespace.forwardRef(({className:e,columns:t,rows:a,gap:r,gapX:n,gapY:i,flow:s,align:l,justify:d,placeItems:m,as:u="div",minChildWidth:c,style:g,...p},v)=>{let N=c?{...g,gridTemplateColumns:`repeat(auto-fill, minmax(${c}, 1fr))`}:g;return jsxRuntime.jsx(u,{ref:v,className:o(Bv({columns:c?void 0:t,rows:a,gap:r,gapX:n,gapY:i,flow:s,align:l,justify:d,placeItems:m,className:e})),style:N,...p})});Si.displayName="Grid";var Fv=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"}}}),Ov=U__namespace.forwardRef(({className:e,colSpan:t,rowSpan:a,colStart:r,colEnd:n,rowStart:i,rowEnd:s,as:l="div",...d},m)=>jsxRuntime.jsx(l,{ref:m,className:o(Fv({colSpan:t,rowSpan:a,colStart:r,colEnd:n,rowStart:i,rowEnd:s,className:e})),...d}));Ov.displayName="GridItem";var Gv=U__namespace.forwardRef(({columns:e=2,className:t,...a},r)=>{if(typeof e=="number")return jsxRuntime.jsx(Si,{ref:r,columns:e,className:t,...a});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(Si,{ref:r,columns:1,className:o(n,t),...a})});Gv.displayName="SimpleGrid";var $v=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"}}),_v=U__namespace.forwardRef(({className:e,variant:t,size:a,radius:r,as:n="div",...i},s)=>jsxRuntime.jsx(n,{ref:s,className:o($v({variant:t,size:a,radius:r,className:e})),...i}));_v.displayName="Well";var Uv=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"}}),_S=classVarianceAuthority.cva("text-muted-foreground font-medium",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),KS=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}}),Yv=U__namespace.forwardRef(({className:e,orientation:t,size:a,align:r,label:n,value:i,valueWeight:s,mono:l,labelWidth:d,labelClassName:m,valueClassName:u,showColon:c=false,copyable:g=false,onCopy:p,...v},N)=>{let b=async()=>{if(!(!g||i===null||i===void 0))try{let h=typeof i=="string"?i:String(i);await navigator.clipboard.writeText(h),p?.();}catch{}};return jsxRuntime.jsxs("div",{ref:N,className:o(Uv({orientation:t,size:a,align:r,className:e})),...v,children:[jsxRuntime.jsxs("span",{className:o(_S({size:a}),m),style:d?{width:d,flexShrink:0}:void 0,children:[n,c&&":"]}),jsxRuntime.jsx("span",{className:o(KS({size:a,weight:s,mono:l}),g&&"cursor-pointer hover:bg-accent/50 rounded px-1 -mx-1 transition-colors",u),onClick:g?b:void 0,role:g?"button":void 0,tabIndex:g?0:void 0,onKeyDown:g?h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),b());}:void 0,children:i})]})});Yv.displayName="LabeledValue";var jv=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"}}),Xv=U__namespace.forwardRef(({className:e,orientation:t,gap:a,...r},n)=>jsxRuntime.jsx("div",{ref:n,className:o(jv({orientation:t,gap:a,className:e})),...r}));Xv.displayName="LabeledValueGroup";var Jv=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"}}),jr=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"}}),eh=U__namespace.forwardRef(({value:e,defaultValue:t="",onChange:a,onSearch:r,onSelect:n,suggestions:i=[],recentSearches:s=[],onClearRecentSearches:l,trendingSearches:d=[],isLoading:m,showClear:u=true,showIcon:c=true,popoverWidth:g="trigger",emptyMessage:p="No results found",size:v,variant:N,className:b,placeholder:h="Search...",disabled:w,...f},y)=>{let[P,x]=U__namespace.useState(false),[S,k]=U__namespace.useState(t),M=e!==void 0?e:S,R=U__namespace.useRef(null);U__namespace.useImperativeHandle(y,()=>R.current);let C=M.length>0,D=P&&(i.length>0||s.length>0||d.length>0||C),T=A=>{e===void 0&&k(A),a?.(A);},I=()=>{T(""),R.current?.focus();},L=A=>{A?.preventDefault(),M.trim()&&(r?.(M.trim()),x(false));},V=A=>{T(A.label),n?.(A),x(false);},E=A=>{T(A),r?.(A),x(false);},H=A=>{T(A),r?.(A),x(false);},B=U__namespace.useMemo(()=>{let A={};return i.forEach(Q=>{let te=Q.category||"Results";A[te]||(A[te]=[]),A[te].push(Q);}),A},[i]);return jsxRuntime.jsxs(ve,{open:D,onOpenChange:x,children:[jsxRuntime.jsx(Re,{asChild:true,children:jsxRuntime.jsxs("form",{onSubmit:L,className:o(Jv({size:v,variant:N}),b),children:[c&&jsxRuntime.jsx(lucideReact.Search,{className:o(jr({size:v}),"ml-3")}),jsxRuntime.jsx("input",{ref:R,type:"text",value:M,onChange:A=>T(A.target.value),onFocus:()=>x(true),placeholder:h,disabled:w,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"),...f}),u&&C&&!w&&jsxRuntime.jsx("button",{type:"button",onClick:I,className:o("mr-2 rounded-sm p-1 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",jr({size:v})),children:jsxRuntime.jsx(lucideReact.X,{className:"h-full w-full"})})]})}),jsxRuntime.jsx(ue,{className:"p-0",style:{width:g==="trigger"?"var(--radix-popover-trigger-width)":g},align:"start",onOpenAutoFocus:A=>A.preventDefault(),children:jsxRuntime.jsxs(cmdk.Command,{className:"rounded-lg border-0",children:[s.length>0&&!C&&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((A,Q)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>E(A),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(jr({size:v}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:A}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:o(jr({size:v}),"opacity-0 group-hover:opacity-100")})]},Q))]}),d.length>0&&!C&&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((A,Q)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>H(A),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(jr({size:v}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:A})]},Q))]}),C&&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(([A,Q])=>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:A})}),Q.map(te=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>V(te),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[te.icon||jsxRuntime.jsx(lucideReact.Search,{className:o(jr({size:v}))}),jsxRuntime.jsxs("div",{className:"flex-1 text-left",children:[jsxRuntime.jsx("div",{className:"truncate",children:te.label}),te.description&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:te.description})]})]},te.id))]},A)):jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:p})})]})})]})});eh.displayName="SearchBar";var th={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"})},ah=U__namespace.forwardRef(({open:e,onOpenChange:t,items:a=[],recentItems:r=[],placeholder:n="Search...",isLoading:i,emptyMessage:s="No results found.",filter:l,shortcut:d="\u2318K",onSelect:m,footer:u},c)=>{let[g,p]=U__namespace.useState(""),v=U__namespace.useRef(null);U__namespace.useEffect(()=>{e||p("");},[e]);let N=U__namespace.useMemo(()=>{let f={};return a.forEach(y=>{let P=y.category||"Results";f[P]||(f[P]=[]),f[P].push(y);}),f},[a]),b=f=>{f.onSelect?.(),m?.(f),t?.(false);},h=g.length>0,w=!h&&r.length>0;return jsxRuntime.jsx(oe__namespace.Root,{open:e,onOpenChange:t,children:jsxRuntime.jsxs(oe__namespace.Portal,{children:[jsxRuntime.jsx(oe__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(oe__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:g,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"}),g&&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:[w&&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"}),r.map(f=>jsxRuntime.jsxs(cmdk.Command.Item,{value:f.label,onSelect:()=>b(f),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:f.icon||th[f.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:f.label}),f.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:f.description})]}),f.shortcut&&jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:f.shortcut.map((y,P)=>jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-medium",children:y},P))})]},f.id))]}),h&&Object.entries(N).map(([f,y])=>jsxRuntime.jsxs(cmdk.Command.Group,{heading:f,children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:f}),y.map(P=>jsxRuntime.jsxs(cmdk.Command.Item,{value:`${P.label} ${P.keywords?.join(" ")||""}`,onSelect:()=>b(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||th[f]||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))]},f)),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"]})]})]})})]})})});ah.displayName="SpotlightSearch";function oT(e="k"){let[t,a]=U__namespace.useState(false);return U__namespace.useEffect(()=>{let r=n=>{(n.metaKey||n.ctrlKey)&&n.key===e&&(n.preventDefault(),a(i=>!i));};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[e]),{open:t,setOpen:a,toggle:()=>a(r=>!r)}}var pT=classVarianceAuthority.cva("",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),uT={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"},fT=e=>{let t=typeof e=="string"?new Date(e):e,r=new Date().getTime()-t.getTime(),n=Math.floor(r/6e4),i=Math.floor(r/36e5),s=Math.floor(r/864e5);return n<1?"Just now":n<60?`${n}m ago`:i<24?`${i}h ago`:s<7?`${s}d ago`:t.toLocaleDateString()},rh=U__namespace.forwardRef(({notifications:e=[],onNotificationClick:t,onMarkAsRead:a,onMarkAllAsRead:r,onDismiss:n,onClearAll:i,showSettings:s,onSettingsClick:l,trigger:d,align:m="end",emptyMessage:u="No notifications",maxHeight:c=400,className:g},p)=>{let[v,N]=U__namespace.useState(false),b=e.filter(f=>!f.read).length,h=e.length>0,w=f=>{f.read||a?.(f.id),t?.(f);};return jsxRuntime.jsxs(ve,{open:v,onOpenChange:N,children:[jsxRuntime.jsx(Re,{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",g),children:[jsxRuntime.jsx(lucideReact.Bell,{className:"h-5 w-5"}),b>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:b>99?"99+":b})]})}),jsxRuntime.jsxs(ue,{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"}),b>0&&jsxRuntime.jsxs(oo,{size:"sm",children:[b," new"]})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[h&&r&&b>0&&jsxRuntime.jsx("button",{type:"button",onClick:r,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"})}),h&&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"})})]})]}),h?jsxRuntime.jsx(lt,{style:{maxHeight:c},children:jsxRuntime.jsx("div",{className:"divide-y",children:e.map(f=>jsxRuntime.jsxs("div",{className:o("group relative flex gap-3 px-4 py-3 transition-colors hover:bg-muted/50",!f.read&&"bg-muted/30"),children:[jsxRuntime.jsx("div",{className:o("flex h-9 w-9 shrink-0 items-center justify-center rounded-full",f.avatar?"overflow-hidden":uT[f.type||"default"]),children:f.avatar?jsxRuntime.jsx("img",{src:f.avatar,alt:"",className:"h-full w-full object-cover"}):f.icon?f.icon:jsxRuntime.jsx(lucideReact.Bell,{className:"h-4 w-4"})}),jsxRuntime.jsxs("button",{type:"button",onClick:()=>w(f),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",!f.read&&"font-medium"),children:f.title}),!f.read&&jsxRuntime.jsx("span",{className:"mt-1.5 h-2 w-2 shrink-0 rounded-full bg-primary"})]}),f.description&&jsxRuntime.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground line-clamp-2",children:f.description}),jsxRuntime.jsx("p",{className:"mt-1 text-[10px] text-muted-foreground",children:fT(f.timestamp)})]}),jsxRuntime.jsxs("div",{className:"absolute right-2 top-2 flex gap-1 opacity-0 transition-opacity group-hover:opacity-100",children:[!f.read&&a&&jsxRuntime.jsx("button",{type:"button",onClick:y=>{y.stopPropagation(),a(f.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||f.onDismiss)&&jsxRuntime.jsx("button",{type:"button",onClick:y=>{y.stopPropagation(),f.onDismiss?.(),n?.(f.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"})})]})]},f.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})]})]})]})});rh.displayName="NotificationCenter";var nh=classVarianceAuthority.cva("relative flex items-center justify-center gap-3 px-4 py-2.5 text-sm",{variants:{variant:{default:"bg-muted text-foreground",primary:"bg-primary text-primary-foreground",info:"bg-blue-500 text-white",success:"bg-green-500 text-white",warning:"bg-yellow-500 text-black",danger:"bg-red-500 text-white",gradient:"bg-gradient-to-r from-primary via-purple-500 to-pink-500 text-white"},position:{top:"fixed top-0 left-0 right-0 z-50",relative:"relative"}},defaultVariants:{variant:"default",position:"relative"}}),RT={default:lucideReact.Megaphone,primary:lucideReact.Megaphone,info:lucideReact.Info,success:lucideReact.CheckCircle,warning:lucideReact.AlertTriangle,danger:lucideReact.XCircle,gradient:lucideReact.Megaphone},ih=U__namespace.forwardRef(({message:e,showIcon:t=true,icon:a,dismissible:r=true,onDismiss:n,action:i,variant:s="default",position:l,animate:d,autoDismiss:m,storageKey:u,className:c,...g},p)=>{let[v,N]=U__namespace.useState(true),[b,h]=U__namespace.useState(false);U__namespace.useEffect(()=>{u&&localStorage.getItem(`banner-${u}`)==="true"&&N(false);},[u]),U__namespace.useEffect(()=>{if(m&&v){let y=setTimeout(()=>{w();},m);return ()=>clearTimeout(y)}},[m,v]);let w=()=>{h(true),setTimeout(()=>{N(false),u&&localStorage.setItem(`banner-${u}`,"true"),n?.();},200);};if(!v)return null;let f=a?null:RT[s||"default"];return jsxRuntime.jsxs("div",{ref:p,className:o(nh({variant:s,position:l}),d&&"animate-pulse",b&&"animate-out fade-out slide-out-to-top duration-200",c),role:"banner",...g,children:[t&&jsxRuntime.jsx("span",{className:"shrink-0",children:a||f&&jsxRuntime.jsx(f,{className:"h-4 w-4"})}),jsxRuntime.jsx("span",{className:"text-center font-medium",children:e}),i&&(i.href?jsxRuntime.jsxs("a",{href:i.href,className:"group inline-flex shrink-0 items-center gap-1 font-semibold underline-offset-4 hover:underline",children:[i.label,jsxRuntime.jsx(lucideReact.ArrowRight,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]}):jsxRuntime.jsxs("button",{type:"button",onClick:i.onClick,className:"group inline-flex shrink-0 items-center gap-1 font-semibold underline-offset-4 hover:underline",children:[i.label,jsxRuntime.jsx(lucideReact.ArrowRight,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]})),r&&jsxRuntime.jsx("button",{type:"button",onClick:w,className:o("absolute right-2 top-1/2 -translate-y-1/2 rounded-sm p-1 transition-opacity hover:opacity-70",l==="relative"&&"right-4"),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})});ih.displayName="AnnouncementBanner";var Uo=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"}}),NT=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"}}),El=U__namespace.forwardRef(({icon:e,label:t="Action button",extended:a,extendedLabel:r,actions:n,direction:i="up",showTooltip:s=true,closeIcon:l,animation:d="rotate",variant:m,size:u,position:c,className:g,onClick:p,disabled:v,...N},b)=>{let[h,w]=U__namespace.useState(false),f=n&&n.length>0,y=M=>{f&&w(!h),p?.(M);},P=M=>{M.onClick?.(),w(false);},x={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"}},S=d==="rotate"&&h?"rotate-45":"",k=d==="scale"&&h?"scale-0":"scale-100";return jsxRuntime.jsxs("div",{className:o("z-50",c!=="relative"&&c&&Uo({position:c})),children:[f&&h&&jsxRuntime.jsx("div",{className:o("absolute flex items-center gap-2",x[i].container),children:n.map((M,R)=>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:`${R*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:M.label}),M.href?jsxRuntime.jsx("a",{href:M.href,className:o(Uo({variant:M.variant||"secondary",size:u==="lg"?"md":"sm"})),"aria-label":M.label,children:M.icon}):jsxRuntime.jsx("button",{type:"button",onClick:()=>P(M),className:o(Uo({variant:M.variant||"secondary",size:u==="lg"?"md":"sm"})),"aria-label":M.label,children:M.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:M.label})]},M.id))}),jsxRuntime.jsxs("button",{ref:b,type:"button",onClick:y,disabled:v,className:o(Uo({variant:m,size:u,position:"relative"}),a&&"px-6 gap-2",g),"aria-label":t,"aria-expanded":f?h:void 0,...N,children:[h&&l?l:jsxRuntime.jsx("span",{className:o(NT({size:u}),S,k,"transition-all duration-200"),children:e||jsxRuntime.jsx(lucideReact.Plus,{})}),a&&r&&jsxRuntime.jsx("span",{className:"font-medium",children:r})]}),f&&h&&jsxRuntime.jsx("div",{className:"fixed inset-0 -z-10",onClick:()=>w(false)})]})});El.displayName="FloatingActionButton";var PT=El;var dh=classVarianceAuthority.cva("fixed bottom-0 left-0 right-0 z-50 flex items-center justify-around border-t bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/80 safe-area-inset-bottom",{variants:{variant:{default:"border-border",elevated:"border-transparent shadow-lg",filled:"border-transparent bg-primary text-primary-foreground"},size:{sm:"h-14",md:"h-16",lg:"h-20"}},defaultVariants:{variant:"default",size:"md"}}),CT=classVarianceAuthority.cva("flex flex-1 flex-col items-center justify-center gap-1 transition-colors",{variants:{variant:{default:"text-muted-foreground hover:text-foreground",elevated:"text-muted-foreground hover:text-foreground",filled:"text-primary-foreground/70 hover:text-primary-foreground"},size:{sm:"py-1.5",md:"py-2",lg:"py-3"},isActive:{true:"",false:""}},compoundVariants:[{variant:"default",isActive:true,className:"text-primary"},{variant:"elevated",isActive:true,className:"text-primary"},{variant:"filled",isActive:true,className:"text-primary-foreground"}],defaultVariants:{variant:"default",size:"md",isActive:false}}),ST=classVarianceAuthority.cva("transition-transform",{variants:{size:{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-7 w-7"},isActive:{true:"scale-110",false:""}},defaultVariants:{size:"md",isActive:false}}),TT=classVarianceAuthority.cva("font-medium transition-opacity",{variants:{size:{sm:"text-[10px]",md:"text-xs",lg:"text-sm"},showLabel:{always:"opacity-100",active:"",never:"sr-only"},isActive:{true:"",false:""}},compoundVariants:[{showLabel:"active",isActive:true,className:"opacity-100"},{showLabel:"active",isActive:false,className:"opacity-0 h-0"}],defaultVariants:{size:"md",showLabel:"always",isActive:false}}),ch=U__namespace.forwardRef(({className:e,variant:t,size:a,items:r,activeKey:n,defaultActiveKey:i,onChange:s,showLabels:l="always",hideOnScroll:d=false,...m},u)=>{let[c,g]=U__namespace.useState(i??r[0]?.key),[p,v]=U__namespace.useState(true),N=U__namespace.useRef(0),b=n??c;U__namespace.useEffect(()=>{if(!d)return;let w=()=>{let f=window.scrollY,y=f>N.current,P=f<N.current;y&&f>100?v(false):P&&v(true),N.current=f;};return window.addEventListener("scroll",w,{passive:true}),()=>window.removeEventListener("scroll",w)},[d]);let h=w=>{n===void 0&&g(w.key),s?.(w.key),w.onClick?.();};return jsxRuntime.jsx("nav",{ref:u,role:"navigation","aria-label":"Bottom navigation",className:o(dh({variant:t,size:a,className:e}),"transition-transform duration-300",!p&&"translate-y-full"),...m,children:r.map(w=>{let f=b===w.key,y=f&&w.activeIcon?w.activeIcon:w.icon,P=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("span",{className:"relative",children:[jsxRuntime.jsx("span",{className:o(ST({size:a,isActive:f})),children:y}),w.badge!==void 0&&jsxRuntime.jsx("span",{className:"absolute -right-2 -top-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-destructive px-1 text-[10px] font-medium text-destructive-foreground",children:typeof w.badge=="number"&&w.badge>99?"99+":w.badge})]}),jsxRuntime.jsx("span",{className:o(TT({size:a,showLabel:l,isActive:f})),children:w.label})]}),x=o(CT({variant:t,size:a,isActive:f}));return w.href?jsxRuntime.jsx("a",{href:w.href,className:x,"aria-current":f?"page":void 0,onClick:()=>h(w),children:P},w.key):jsxRuntime.jsx("button",{type:"button",className:x,"aria-current":f?"page":void 0,onClick:()=>h(w),children:P},w.key)})})});ch.displayName="BottomNavigation";var uh=classVarianceAuthority.cva("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[20px] border-t bg-background",{variants:{size:{sm:"max-h-[50vh]",md:"max-h-[70vh]",lg:"max-h-[85vh]",full:"max-h-[100vh] rounded-t-none"}},defaultVariants:{size:"md"}}),fh=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"}}),gh=U__namespace.forwardRef(({open:e,onOpenChange:t,trigger:a,title:r,description:n,items:i,cancelLabel:s="Cancel",onCancel:l,showCancel:d=true,children:m,size:u,closeOnSelect:c=true,onAction:g},p)=>{let v=b=>{b.isDisabled||(b.onSelect?.(),g?.(b.key),c&&t?.(false));},N=()=>{l?.(),t?.(false);};return jsxRuntime.jsxs(vaul.Drawer.Root,{open:e,onOpenChange:t,children:[a&&jsxRuntime.jsx(vaul.Drawer.Trigger,{asChild:true,children:a}),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:p,className:o(uh({size:u})),children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-1.5 w-12 flex-shrink-0 rounded-full bg-muted"}),(r||n)&&jsxRuntime.jsxs("div",{className:"px-4 py-3 text-center",children:[r&&jsxRuntime.jsx(vaul.Drawer.Title,{className:"text-base font-semibold",children:r}),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",children:i?.map(b=>jsxRuntime.jsxs("button",{type:"button",disabled:b.isDisabled,onClick:()=>v(b),className:o(fh({variant:b.isDestructive?"destructive":"default"})),children:[b.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 flex-shrink-0 [&>svg]:h-full [&>svg]:w-full",children:b.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"font-medium",children:b.label}),b.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:b.description})]})]},b.key))})}),d&&jsxRuntime.jsx("div",{className:"border-t p-2 pb-safe",children:jsxRuntime.jsx("button",{type:"button",onClick:N,className:"w-full rounded-lg bg-muted py-3.5 text-center font-semibold transition-colors hover:bg-muted/80",children:s})})]})]})]})});gh.displayName="ActionSheet";var vh=classVarianceAuthority.cva("relative overflow-hidden touch-pan-y",{variants:{variant:{default:"",card:"rounded-lg border bg-card"}},defaultVariants:{variant:"default"}}),Hl=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"}}),hh=U__namespace.forwardRef(({className:e,variant:t,leftActions:a=[],rightActions:r=[],actionSize:n="md",threshold:i=.3,onSwipeEnd:s,disabled:l=false,fullSwipeAction:d,children:m,...u},c)=>{let g=U__namespace.useRef(null),[p,v]=U__namespace.useState(0),[N,b]=U__namespace.useState(false),h=U__namespace.useRef(0),w=U__namespace.useRef(0),f=a.length*(n==="sm"?64:n==="lg"?96:80),y=r.length*(n==="sm"?64:n==="lg"?96:80),P=R=>{l||(b(true),h.current=R.touches[0].clientX,w.current=p);},x=R=>{if(!N||l)return;let D=R.touches[0].clientX-h.current,T=w.current+D;(T>0&&a.length===0||T<0&&r.length===0)&&(T=0),T>f?T=f+(T-f)*.3:T<-y&&(T=-y+(T+y)*.3),v(T);},S=()=>{if(!N)return;b(false);let R=g.current?.offsetWidth||0,C=Math.abs(p)/R;if(d&&C>.6){d==="right"&&p>0&&a[0]?(a[0].onAction?.(),s?.("right",a[0].key)):d==="left"&&p<0&&r[0]&&(r[0].onAction?.(),s?.("left",r[0].key)),v(0);return}p>f*i&&a.length>0?(v(f),s?.("right")):p<-y*i&&r.length>0?(v(-y),s?.("left")):v(0);},k=(R,C)=>{R.onAction?.(),s?.(C,R.key),v(0);},M=()=>{v(0);};return jsxRuntime.jsxs("div",{ref:c,className:o(vh({variant:t,className:e})),...u,children:[a.length>0&&jsxRuntime.jsx("div",{className:"absolute left-0 top-0 bottom-0 flex",style:{width:f},children:a.map(R=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>k(R,"right"),className:o(Hl({variant:R.variant,size:n})),style:{opacity:Math.min(1,p/f)},children:[R.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:R.icon}),!R.icon&&R.label]},R.key))}),r.length>0&&jsxRuntime.jsx("div",{className:"absolute right-0 top-0 bottom-0 flex",style:{width:y},children:r.map(R=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>k(R,"left"),className:o(Hl({variant:R.variant,size:n})),style:{opacity:Math.min(1,Math.abs(p)/y)},children:[R.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:R.icon}),!R.icon&&R.label]},R.key))}),jsxRuntime.jsx("div",{ref:g,className:o("relative bg-background",N?"":"transition-transform duration-200"),style:{transform:`translateX(${p}px)`},onTouchStart:P,onTouchMove:x,onTouchEnd:S,onClick:p!==0?M:void 0,children:m})]})});hh.displayName="SwipeActions";var yh=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"}}),Rh=U__namespace.forwardRef(({className:e,variant:t,onRefresh:a,pullThreshold:r=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:g,...p},v)=>{let N=U__namespace.useRef(null),[b,h]=U__namespace.useState(0),[w,f]=U__namespace.useState("idle"),y=U__namespace.useRef(0),P=U__namespace.useRef(false),x=()=>d||w==="refreshing"?false:(N.current?.scrollTop??window.scrollY)<=0,S=D=>{x()&&(y.current=D.touches[0].clientY,P.current=true);},k=D=>{if(!P.current||!x())return;let I=D.touches[0].clientY-y.current;if(I<0){h(0),f("idle");return}let V=Math.min(I*.5,n);h(V),f(V>=r?"ready":"pulling");},M=async()=>{if(P.current)if(P.current=false,w==="ready"){f("refreshing"),h(r*.6);try{await a();}finally{f("idle"),h(0);}}else f("idle"),h(0);},R={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}[l],C=()=>{if(w==="refreshing")return i||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:o(R,"animate-spin text-primary")}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:c})]});let D=Math.min(b/r*180,180);return s||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.ArrowDown,{className:o(R,"text-muted-foreground transition-transform"),style:{transform:`rotate(${D}deg)`}}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:w==="ready"?u:m})]})};return jsxRuntime.jsxs("div",{ref:v,className:o(yh({variant:t,className:e})),...p,children:[jsxRuntime.jsx("div",{className:o(VT({size:l}),"z-10",w==="idle"&&b===0&&"opacity-0"),style:{top:Math.max(b-60,-60),opacity:Math.min(b/(r*.5),1)},children:C()}),jsxRuntime.jsx("div",{ref:N,className:o("transition-transform duration-200",w==="refreshing"&&"ease-out"),style:{transform:`translateY(${b}px)`,transition:P.current?"none":void 0},onTouchStart:S,onTouchMove:k,onTouchEnd:M,children:g})]})});Rh.displayName="PullToRefresh";var Nh=classVarianceAuthority.cva("flex min-h-screen w-full",{variants:{layout:{default:"flex-col",sidebar:"flex-row"}},defaultVariants:{layout:"default"}}),Ph=U__namespace.forwardRef(({className:e,layout:t="default",header:a,footer:r,sidebar:n,aside:i,sidebarCollapsed:s=false,sidebarWidth:l="16rem",sidebarCollapsedWidth:d="4rem",asideWidth:m="16rem",fixed:u=false,children:c,...g},p)=>{let v=s?d:l;return jsxRuntime.jsxs("div",{ref:p,className:o(Nh({layout:t}),e),style:{"--app-shell-sidebar-width":v,"--app-shell-aside-width":m},...g,children:[a&&jsxRuntime.jsx(Bl,{fixed:u,hasSidebar:!!n,children:a}),jsxRuntime.jsxs("div",{className:"flex flex-1",children:[n&&jsxRuntime.jsx(Fl,{collapsed:s,fixed:u,children:n}),jsxRuntime.jsx("main",{className:o("flex-1 flex flex-col min-h-0",u&&a&&"pt-14",u&&r&&"pb-14"),children:c}),i&&jsxRuntime.jsx(Ol,{fixed:u,children:i})]}),r&&jsxRuntime.jsx(Gl,{fixed:u,hasSidebar:!!n,children:r})]})});Ph.displayName="AppShell";var Bl=U__namespace.forwardRef(({className:e,fixed:t,hasSidebar:a,children:r,...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&&a&&"left-[var(--app-shell-sidebar-width)]",t&&!a&&"left-0",e),...n,children:r}));Bl.displayName="AppShellHeader";var Fl=U__namespace.forwardRef(({className:e,collapsed:t,fixed:a,children:r,...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",a&&"fixed left-0 top-0 bottom-0 z-50",e),"data-collapsed":t,...n,children:r}));Fl.displayName="AppShellSidebar";var Ol=U__namespace.forwardRef(({className:e,fixed:t,children:a,...r},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),...r,children:a}));Ol.displayName="AppShellAside";var Gl=U__namespace.forwardRef(({className:e,fixed:t,hasSidebar:a,children:r,...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&&a&&"left-[var(--app-shell-sidebar-width)]",t&&!a&&"left-0",e),...n,children:r}));Gl.displayName="AppShellFooter";var Ch=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex-1 overflow-auto p-4",e),...t}));Ch.displayName="AppShellMain";var Th=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"}}),Mh=U__namespace.forwardRef(({className:e,variant:t,navigation:a,logo:r,userMenu:n,headerActions:i,breadcrumb:s,defaultCollapsed:l=false,collapsed:d,onCollapsedChange:m,children:u,...c},g)=>{let[p,v]=U__namespace.useState(l),[N,b]=U__namespace.useState(false),h=d??p,w=U__namespace.useCallback(f=>{v(f),m?.(f);},[m]);return jsxRuntime.jsxs("div",{ref:g,className:o(Th({variant:t}),e),...c,children:[jsxRuntime.jsxs("aside",{"data-slot":"sidebar","data-collapsed":h,className:o("hidden lg:flex flex-col fixed inset-y-0 left-0 z-50 bg-background transition-[width] duration-200",h?"w-16":"w-64"),children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:r}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:a}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]}),jsxRuntime.jsx(uo,{open:N,onOpenChange:b,children:jsxRuntime.jsxs(br,{side:"left",className:"w-64 p-0",children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:r}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:a}),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",h?"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(O,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:()=>b(true),children:[jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle menu"})]}),jsxRuntime.jsxs(O,{variant:"ghost",size:"icon",className:"hidden lg:flex",onClick:()=>w(!h),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})]})]})});Mh.displayName="DashboardLayout";var kh=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("space-y-6",e),...t}));kh.displayName="DashboardPage";var Dh=U__namespace.forwardRef(({className:e,title:t,description:a,actions:r,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}),a&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:a}),n]}),r&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:r})]}));Dh.displayName="DashboardPageHeader";var Vh=U__namespace.forwardRef(({className:e,columns:t=4,...a},r)=>jsxRuntime.jsx("div",{ref:r,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),...a}));Vh.displayName="DashboardGrid";var Ii=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"}}),Lh=U__namespace.forwardRef(({className:e,variant:t="centered",logo:a,sideContent:r,backgroundImage:n,sidePosition:i="left",footer:s,children:l,...d},m)=>t==="split"?jsxRuntime.jsxs("div",{ref:m,className:o(Ii({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:r||jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center p-8",children:[a&&jsxRuntime.jsx("div",{className:"mb-8",children:a}),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:[a&&jsxRuntime.jsx("div",{className:"flex items-center justify-center p-6 lg:hidden",children:a}),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(Ii({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:[a&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:a}),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(Ii({variant:t}),e),...d,children:jsxRuntime.jsxs("div",{className:"w-full max-w-md p-6",children:[a&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:a}),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})]})}));Lh.displayName="AuthLayout";var Ih=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("form",{ref:a,className:o("space-y-4",e),...t}));Ih.displayName="AuthForm";var Eh=U__namespace.forwardRef(({className:e,title:t,description:a,children:r,...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}),a&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:a}),r]}));Eh.displayName="AuthHeader";var Ah=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex flex-col gap-2 text-center text-sm",e),...t}));Ah.displayName="AuthFooterLinks";var Hh=U__namespace.forwardRef(({className:e,text:t="or continue with",...a},r)=>jsxRuntime.jsxs("div",{ref:r,className:o("relative my-4",e),...a,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})})]}));Hh.displayName="AuthDivider";var zh=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("grid grid-cols-2 gap-2",e),...t}));zh.displayName="AuthSocialButtons";var Ei=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"}}),Bh=U__namespace.forwardRef(({className:e,variant:t="sidebar",navigation:a,title:r,description:n,children:i,...s},l)=>t==="sidebar"?jsxRuntime.jsxs("div",{ref:l,className:o(Ei({variant:t}),e),...s,children:[a&&jsxRuntime.jsx("aside",{className:"lg:w-64 shrink-0",children:jsxRuntime.jsx("nav",{className:"flex flex-col gap-1",children:a})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-6",children:[(r||n)&&jsxRuntime.jsx(jo,{title:r,description:n}),i]})]}):t==="tabs"?jsxRuntime.jsxs("div",{ref:l,className:o(Ei({variant:t}),e),...s,children:[(r||n)&&jsxRuntime.jsx(jo,{title:r,description:n}),a,jsxRuntime.jsx("div",{className:"pt-4",children:i})]}):jsxRuntime.jsxs("div",{ref:l,className:o(Ei({variant:t}),e),...s,children:[(r||n)&&jsxRuntime.jsx(jo,{title:r,description:n}),i]}));Bh.displayName="SettingsLayout";var jo=U__namespace.forwardRef(({className:e,title:t,description:a,children:r,...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}),a&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:a}),r]}));jo.displayName="SettingsHeader";var Fh=U__namespace.forwardRef(({className:e,title:t,description:a,children:r,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("space-y-4",e),...n,children:[(t||a)&&jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h2",{className:"text-lg font-medium",children:t}),a&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:a})]}),r]}));Fh.displayName="SettingsSection";var Oh=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("rounded-lg border bg-card p-6",e),...t}));Oh.displayName="SettingsCard";var Gh=U__namespace.forwardRef(({className:e,label:t,description:a,htmlFor:r,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:r,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:t}),a&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:a})]}),jsxRuntime.jsx("div",{className:"shrink-0",children:n})]}));Gh.displayName="SettingsRow";var Wh=U__namespace.forwardRef(({className:e,active:t,icon:a,children:r,...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:[a&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:a}),r]}));Wh.displayName="SettingsNavItem";var $h=U__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("h-px bg-border my-4",e),...t}));$h.displayName="SettingsSeparator";var fr=(e,t,a)=>({duration:e,delay:t,ease:a||[.4,0,.2,1]}),HT={hidden:e=>({opacity:e}),visible:{opacity:1},exit:e=>({opacity:e})},_h=U__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=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:HT,custom:l,transition:fr(a,r,n),className:o(i),onAnimationStart:d,onAnimationComplete:m,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&c}):c});_h.displayName="Fade";var zT=(e,t)=>{let a=typeof t=="number"?`${t}px`:t,r={up:{y:a},down:{y:`-${a}`},left:{x:a},right:{x:`-${a}`}};return {hidden:{opacity:0,...r[e]},visible:{opacity:1,x:0,y:0},exit:{opacity:0,...r[e]}}},Kh=U__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,direction:l="up",offset:d=20,onAnimationStart:m,onAnimationComplete:u},c)=>{let g=U__namespace.useMemo(()=>zT(l,d),[l,d]),p=jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:g,transition:fr(a,r,n),className:o(i),onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&p}):p});Kh.displayName="Slide";var BT={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"},FT={hidden:e=>({opacity:0,scale:e}),visible:{opacity:1,scale:1},exit:e=>({opacity:0,scale:e})},Uh=U__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,initialScale:l=.9,origin:d="center",onAnimationStart:m,onAnimationComplete:u},c)=>{let g=jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:FT,custom:l,transition:fr(a,r,n),className:o(i),style:{transformOrigin:BT[d]},onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&g}):g});Uh.displayName="Scale";var Yh=U__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,horizontal:s=false,startingSize:l=0,animateOpacity:d=true,onAnimationStart:m,onAnimationComplete:u},c)=>{let g=s?"width":"height",p={hidden:{[g]:l,opacity:d?0:1},visible:{[g]:"auto",opacity:1},exit:{[g]: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:fr(a,r,n),className:o("overflow-hidden",i),onAnimationStart:m,onAnimationComplete:u,children:t})})});Yh.displayName="Collapse";var jh=U__namespace.forwardRef(({show:e=true,children:t,duration:a=.4,delay:r=0,ease:n,className:i,initialWidth:s=0,initialHeight:l=0,animateOpacity:d=true,onAnimationStart:m,onAnimationComplete:u},c)=>{let g={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:g,transition:fr(a,r,n),className:o("overflow-hidden",i),onAnimationStart:m,onAnimationComplete:u,children:t})})});jh.displayName="Expand";var Xh=U__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,initialRotation:l=-180,finalRotation:d=0,onAnimationStart:m,onAnimationComplete:u},c)=>{let g={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:g,transition:fr(a,r,n),className:o(i),onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&p}):p});Xh.displayName="Rotate";var qh=U__namespace.forwardRef(({front:e,back:t,direction:a="horizontal",flipped:r=false,duration:n=.6,delay:i=0,ease:s,className:l,onAnimationStart:d,onAnimationComplete:m},u)=>{let c=a==="horizontal"?"rotateY":"rotateX";return jsxRuntime.jsx("div",{ref:u,className:o("relative",l),style:{perspective:1e3},children:jsxRuntime.jsxs(framerMotion.motion.div,{animate:{[c]:r?180:0},transition:fr(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})]})})});qh.displayName="Flip";var Zh=U__namespace.forwardRef(({color:e="currentColor",duration:t=.6,children:a,className:r,disabled:n=false},i)=>{let[s,l]=U__namespace.useState([]),d=U__namespace.useRef(null),m=c=>{if(n)return;let g=d.current;if(!g)return;let p=g.getBoundingClientRect(),v=c.clientX-p.left,N=c.clientY-p.top,b=Math.max(p.width,p.height)*2,h={id:Date.now(),x:v,y:N,size:b};l(w=>[...w,h]);},u=c=>{l(g=>g.filter(p=>p.id!==c));};return jsxRuntime.jsxs("div",{ref:i,className:o("relative overflow-hidden",r),onClick:m,children:[jsxRuntime.jsx("div",{ref:d,className:"relative z-0",children:a}),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))})]})});Zh.displayName="Ripple";var Qh=U__namespace.forwardRef(({children:e,animate:t=true,height:a=10,duration:r=.5,count:n=0,className:i,triggerOnHover:s=false},l)=>{let[d,m]=U__namespace.useState(false),u=s?d:t,c={idle:{y:0},bounce:{y:[0,-a,0],transition:{duration:r,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})});Qh.displayName="Bounce";var WT={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]},Jh=U__namespace.forwardRef(({children:e,animate:t=true,intensity:a="normal",duration:r=.5,count:n=1,className:i,triggerOnHover:s=false},l)=>{let[d,m]=U__namespace.useState(false),u=s?d:t,c={idle:{x:0},shake:{x:WT[a],transition:{duration:r,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})});Jh.displayName="Shake";var $T={slow:"animate-[pulse_3s_ease-in-out_infinite]",normal:"animate-[pulse_2s_ease-in-out_infinite]",fast:"animate-[pulse_1s_ease-in-out_infinite]"},ex=U__namespace.forwardRef(({children:e,animate:t=true,speed:a="normal",className:r},n)=>jsxRuntime.jsx("div",{ref:n,className:o(t&&$T[a],r),children:e}));ex.displayName="Pulse";var tx=U__namespace.forwardRef(({children:e,animate:t=true,angle:a=10,duration:r=.3,count:n=0,className:i,triggerOnHover:s=false},l)=>{let[d,m]=U__namespace.useState(false),u=s?d:t,c={idle:{rotate:0},wiggle:{rotate:[0,-a,a,-a,a,0],transition:{duration:r,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})});tx.displayName="Wiggle";var ax=U__namespace.forwardRef(({children:e,animate:t=false,scale:a=1.2,duration:r=.2,className:n,triggerOnHover:i=false,triggerOnClick:s=false},l)=>{let[d,m]=U__namespace.useState(false),u=t||d,c={type:"spring",stiffness:400,damping:17,duration:r},g=()=>{s&&(m(true),setTimeout(()=>m(false),r*1e3));};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,animate:{scale:u?a:1},transition:c,className:o(n),onMouseEnter:()=>i&&m(true),onMouseLeave:()=>i&&m(false),onClick:g,children:e})});ax.displayName="Pop";var jT=(e,t,a,r)=>{let n=e.toFixed(t),[i,s]=n.split("."),l=i.replace(/\B(?=(\d{3})+(?!\d))/g,a);return s?`${l}${r}${s}`:l},rx=U__namespace.forwardRef(({value:e,from:t=0,duration:a=2,decimals:r=0,prefix:n="",suffix:i="",separator:s=",",decimalSeparator:l=".",animateOnView:d=true,delay:m=0,className:u,onComplete:c},g)=>{let p=U__namespace.useRef(null),v=framerMotion.useInView(p,{once:true}),[N,b]=U__namespace.useState(!d);U__namespace.useEffect(()=>{if(d&&v){let y=setTimeout(()=>b(true),m*1e3);return ()=>clearTimeout(y)}},[d,v,m]);let h={damping:30,stiffness:100,duration:a*1e3},w=framerMotion.useSpring(N?e:t,h),f=framerMotion.useTransform(w,y=>jT(y,r,s,l));return U__namespace.useEffect(()=>{N&&w.set(e);},[N,e,w]),U__namespace.useEffect(()=>{let y=w.on("change",P=>{Math.abs(P-e)<.01&&c&&c();});return ()=>y()},[w,e,c]),jsxRuntime.jsx("span",{ref:p,className:o(u),children:jsxRuntime.jsxs("span",{ref:g,children:[n,jsxRuntime.jsx(framerMotion.motion.span,{children:f}),i]})})});rx.displayName="Counter";var ox=U__namespace.forwardRef(({text:e,speed:t=50,delay:a=0,pauseBetween:r=1500,cursor:n=true,cursorChar:i="|",loop:s=false,deleteSpeed:l=30,animateOnView:d=true,className:m,cursorClassName:u,onComplete:c},g)=>{let p=Array.isArray(e)?e:[e],[v,N]=U__namespace.useState(""),[b,h]=U__namespace.useState(0),[w,f]=U__namespace.useState(false),[y,P]=U__namespace.useState(false),x=U__namespace.useRef(null),S=framerMotion.useInView(x,{once:true}),[k,M]=U__namespace.useState(!d);return U__namespace.useEffect(()=>{if(d&&S){let R=setTimeout(()=>M(true),a*1e3);return ()=>clearTimeout(R)}},[d,S,a]),U__namespace.useEffect(()=>{if(!k||y)return;let R=p[b],C;return w?v.length>0?C=setTimeout(()=>{N(v.slice(0,-1));},l):(f(false),h(D=>(D+1)%p.length)):v.length<R.length?C=setTimeout(()=>{N(R.slice(0,v.length+1));},t):b<p.length-1||s?C=setTimeout(()=>{f(true);},r):(P(true),c?.()),()=>clearTimeout(C)},[k,v,b,w,y,p,t,l,r,s,c]),jsxRuntime.jsxs("span",{ref:x,className:o(m),children:[jsxRuntime.jsx("span",{ref:g,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})]})});ox.displayName="Typewriter";var nx=U__namespace.forwardRef(({children:e,direction:t="up",stagger:a=.05,duration:r=.5,delay:n=0,splitBy:i="word",animateOnView:s=true,className:l},d)=>{let m=U__namespace.useRef(null),u=framerMotion.useInView(m,{once:true,amount:.5}),c=s?u:true,g=typeof e=="string"?e:"",p=i==="word"?g.split(" "):g.split(""),v={up:{y:20},down:{y:-20},left:{x:20},right:{x:-20}},N={hidden:{},visible:{transition:{staggerChildren:a,delayChildren:n}}},b={hidden:{opacity:0,...v[t]},visible:{opacity:1,x:0,y:0,transition:{duration:r,ease:"easeInOut"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:d,className:o("inline-flex flex-wrap",l),variants:N,initial:"hidden",animate:c?"visible":"hidden",children:jsxRuntime.jsx("span",{ref:m,children:p.map((h,w)=>jsxRuntime.jsxs(framerMotion.motion.span,{variants:b,className:"inline-block",children:[h,i==="word"&&w<p.length-1&&"\xA0"]},w))})})});nx.displayName="TextReveal";var ix=U__namespace.forwardRef(({words:e,duration:t=2,animation:a="slide",animationDuration:r=.5,className:n,loop:i=true},s)=>{let[l,d]=U__namespace.useState(0);U__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(a){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:r},className:"inline-block",children:e[l]},e[l])})})});ix.displayName="WordRotate";var cx=U__namespace.forwardRef(({children:e,direction:t="up",distance:a=50,duration:r=.6,delay:n=0,once:i=true,threshold:s=.1,className:l,scale:d,rotate:m,blur:u,ease:c=[.4,0,.2,1]},g)=>{let p=U__namespace.useRef(null),v=framerMotion.useInView(p,{once:i,amount:s}),b={up:{x:0,y:a},down:{x:0,y:-a},left:{x:a,y:0},right:{x:-a,y:0},none:{x:0,y:0}}[t],h={hidden:{opacity:0,x:b.x,y:b.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:r,delay:n,ease:c}}};return jsxRuntime.jsx("div",{ref:p,children:jsxRuntime.jsx(framerMotion.motion.div,{ref:g,variants:h,initial:"hidden",animate:v?"visible":"hidden",className:o(l),children:e})})});cx.displayName="ScrollReveal";var mx=U__namespace.forwardRef(({position:e="top",size:t=4,color:a="hsl(var(--primary))",backgroundColor:r="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}),g=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}},N=p?"scaleX":"scaleY",b=p?"left":"top";return jsxRuntime.jsxs("div",{ref:m,className:o("fixed",i),style:{...v[e],zIndex:n,backgroundColor:r},children:[jsxRuntime.jsx(framerMotion.motion.div,{className:"h-full w-full",style:{[N]:g,transformOrigin:b,backgroundColor:a}}),l&&jsxRuntime.jsx(qT,{progress:g,position:e})]})});mx.displayName="ScrollProgress";var qT=({progress:e,position:t})=>{let a=framerMotion.useTransform(e,s=>Math.round(s*100)),[r,n]=U__namespace.useState(0);return U__namespace.useEffect(()=>{let s=a.on("change",n);return ()=>s()},[a]),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:[r,"%"]})},px=U__namespace.forwardRef(({children:e,speed:t=.5,direction:a="vertical",className:r,container:n},i)=>{let s=U__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=a==="horizontal"?u:0,g=a==="vertical"?u:0;return jsxRuntime.jsx("div",{ref:s,className:o("overflow-hidden",r),children:jsxRuntime.jsx(framerMotion.motion.div,{ref:i,style:{x:c,y:g},children:e})})});px.displayName="Parallax";var gx=U__namespace.forwardRef(({children:e,width:t,height:a,duration:r=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"},g={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:a,borderRadius:l,backgroundColor:i},children:[e,m&&jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:`linear-gradient(${c[n]}, transparent, ${s}, transparent)`,animation:`${g[n]} ${r}s infinite`}}),jsxRuntime.jsx("style",{children:`
|
|
2
32
|
@keyframes shimmer-right {
|
|
3
33
|
0% { transform: translateX(-100%); }
|
|
4
34
|
100% { transform: translateX(100%); }
|
|
@@ -15,5 +45,5 @@
|
|
|
15
45
|
0% { transform: translateY(-100%); }
|
|
16
46
|
100% { transform: translateY(100%); }
|
|
17
47
|
}
|
|
18
|
-
`})]})});px.displayName="Shimmer";var UT={sm:24,md:40,lg:56,xl:80},YT={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"}},ux=U__namespace.forwardRef(({show:e=true,size:t="md",variant:a="success",strokeWidth:r=2,duration:n=.6,delay:i=0,className:s,onComplete:l},d)=>{let m=UT[t],u=YT[a],c={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:i,ease:"easeOut"}}},g={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:r,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:r,strokeLinecap:"round",strokeLinejoin:"round",className:u.check,variants:g,initial:"hidden",animate:e?"visible":"hidden",onAnimationComplete:()=>e&&l?.()})]})});ux.displayName="Checkmark";var eo={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},fx=U__namespace.forwardRef(({autoTrigger:e=false,delay:t=0,options:a={},children:r,onTrigger:n},i)=>{let s=U__namespace.useCallback(()=>{let l={...eo,...a};Jr__default.default(l),n?.();},[a,n]);return U__namespace.useEffect(()=>{if(e){let l=setTimeout(s,t);return ()=>clearTimeout(l)}},[e,t,s]),r?jsxRuntime.jsx("button",{ref:i,type:"button",onClick:s,children:r}):null});fx.displayName="Confetti";var jT=()=>{let e=U__namespace.useCallback(r=>{let n={...eo,...r};Jr__default.default(n);},[]),t=U__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);Jr__default.default({...eo,particleCount:l,origin:{x:Math.random()*.4+.1,y:Math.random()-.2}}),Jr__default.default({...eo,particleCount:l,origin:{x:Math.random()*.4+.5,y:Math.random()-.2}});},250);},[]),a=U__namespace.useCallback((r="both")=>{let n={x:0,y:1},i={x:1,y:1};(r==="left"||r==="both")&&Jr__default.default({...eo,particleCount:50,angle:60,spread:55,origin:n}),(r==="right"||r==="both")&&Jr__default.default({...eo,particleCount:50,angle:120,spread:55,origin:i});},[]);return {fire:e,fireworks:t,cannon:a}},gx=U__namespace.forwardRef(({children:e,color:t="hsl(var(--primary))",intensity:a=20,spread:r=0,animate:n=false,duration:i=2,className:s},l)=>{let d={boxShadow:`0 0 ${a}px ${r}px ${t}`};return n?jsxRuntime.jsx(framerMotion.motion.div,{ref:l,className:o(s),animate:{boxShadow:[`0 0 ${a}px ${r}px ${t}`,`0 0 ${a*1.5}px ${r+5}px ${t}`,`0 0 ${a}px ${r}px ${t}`]},transition:{duration:i,repeat:1/0,ease:"easeInOut"},children:e}):jsxRuntime.jsx("div",{ref:l,className:o(s),style:d,children:e})});gx.displayName="Glow";var mx=(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}),bx=U__namespace.forwardRef(({children:e,count:t=10,color:a="hsl(var(--primary))",minSize:r=4,maxSize:n=8,duration:i=1.5,className:s},l)=>{let[d,m]=U__namespace.useState([]);return U__namespace.useEffect(()=>{let u=Array.from({length:t},()=>mx(r,n));m(u);let c=setInterval(()=>{m(g=>{let p=[...g],v=Math.floor(Math.random()*t);return p[v]=mx(r,n),p});},i*500);return ()=>clearInterval(c)},[t,r,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:a})},u.id))]})});bx.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=Vy;exports.AccordionContent=ac;exports.AccordionItem=ec;exports.AccordionTrigger=tc;exports.ActionBar=Ob;exports.ActionBarButton=Gb;exports.ActionGroup=Sb;exports.ActionIcon=eg;exports.ActionMenu=$b;exports.ActionSheet=ph;exports.Alert=Rx;exports.AlertDescription=Nx;exports.AlertDialog=Ay;exports.AlertDialogAction=pc;exports.AlertDialogCancel=uc;exports.AlertDialogContent=sc;exports.AlertDialogDescription=mc;exports.AlertDialogFooter=dc;exports.AlertDialogHeader=lc;exports.AlertDialogOverlay=ns;exports.AlertDialogPortal=ic;exports.AlertDialogTitle=cc;exports.AlertDialogTrigger=zy;exports.AlertTitle=wx;exports.AnnouncementBanner=rh;exports.AppShell=Rh;exports.AppShellAside=zl;exports.AppShellFooter=Bl;exports.AppShellHeader=Hl;exports.AppShellMain=wh;exports.AppShellSidebar=Al;exports.AreaChart=Cg;exports.AspectRatio=Uy;exports.AuthDivider=Ih;exports.AuthFooterLinks=Lh;exports.AuthForm=Dh;exports.AuthHeader=Vh;exports.AuthLayout=kh;exports.AuthSocialButtons=Eh;exports.Autocomplete=$u;exports.Avatar=za;exports.AvatarFallback=Ba;exports.AvatarGroup=Rm;exports.AvatarImage=fr;exports.BackTop=wu;exports.Badge=Sx;exports.BarChart=Ng;exports.BatteryMeter=uv;exports.BottomNavigation=sh;exports.Bounce=Xh;exports.Breadcrumb=hc;exports.BreadcrumbEllipsis=Pc;exports.BreadcrumbItem=yc;exports.BreadcrumbLink=Rc;exports.BreadcrumbList=xc;exports.BreadcrumbPage=wc;exports.BreadcrumbSeparator=Nc;exports.Button=O;exports.ButtonGroup=yb;exports.COUNTRIES=lu;exports.Calendar=xr;exports.Card=Xl;exports.CardContent=Zl;exports.CardFooter=Ql;exports.CardHeader=ql;exports.Carousel=Ig;exports.CarouselContent=Eg;exports.CarouselItem=Hg;exports.CarouselNext=el;exports.CarouselPrevious=Js;exports.Center=Iv;exports.Checkbox=io;exports.Checkmark=ux;exports.Chip=Zm;exports.CircularProgress=op;exports.CloseButton=Zf;exports.Code=af;exports.Collapse=_h;exports.Collapsible=Ey;exports.CollapsibleContent=Hy;exports.CollapsibleTrigger=nc;exports.ColorArea=Pv;exports.ColorField=bb;exports.ColorPicker=Xp;exports.ColorSlider=Tv;exports.ColorSwatch=Tr;exports.ColorSwatchPicker=xv;exports.ColorWheel=kv;exports.Combobox=fm;exports.Command=ms;exports.CommandDialog=dR;exports.CommandEmpty=im;exports.CommandGroup=sm;exports.CommandInput=om;exports.CommandItem=dm;exports.CommandList=nm;exports.CommandSeparator=lm;exports.CommandShortcut=cm;exports.Confetti=fx;exports.ConfirmDialog=Os;exports.ContextMenu=yy;exports.ContextMenuCheckboxItem=Gd;exports.ContextMenuContent=Fd;exports.ContextMenuGroup=wy;exports.ContextMenuItem=Od;exports.ContextMenuLabel=$d;exports.ContextMenuPortal=Ny;exports.ContextMenuRadioGroup=Cy;exports.ContextMenuRadioItem=Wd;exports.ContextMenuSeparator=_d;exports.ContextMenuShortcut=Kd;exports.ContextMenuSub=Py;exports.ContextMenuSubContent=Bd;exports.ContextMenuSubTrigger=zd;exports.ContextMenuTrigger=Ry;exports.ContextualHelp=tv;exports.CopyButton=hg;exports.Counter=ex;exports.CurrencyInput=eu;exports.DEFAULT_COLORS=Eo;exports.DashboardGrid=Mh;exports.DashboardLayout=Ch;exports.DashboardPage=Sh;exports.DashboardPageHeader=Th;exports.DataTable=pw;exports.DateField=db;exports.DateInput=iu;exports.DatePicker=bm;exports.DateRangePicker=kf;exports.DefaultErrorFallback=Es;exports.Dialog=Bi;exports.DialogClose=Ax;exports.DialogContent=Jo;exports.DialogDescription=od;exports.DialogFooter=ad;exports.DialogHeader=td;exports.DialogOverlay=Fi;exports.DialogPortal=ed;exports.DialogTitle=rd;exports.DialogTrigger=Hx;exports.DiskUsageMeter=pv;exports.Dots=tp;exports.Drawer=Ec;exports.DrawerClose=Qy;exports.DrawerContent=Ac;exports.DrawerDescription=Oc;exports.DrawerFooter=Bc;exports.DrawerHeader=zc;exports.DrawerOverlay=ss;exports.DrawerPortal=Hc;exports.DrawerTitle=Fc;exports.DrawerTrigger=Zy;exports.DropdownMenu=Wa;exports.DropdownMenuCheckboxItem=wd;exports.DropdownMenuContent=pa;exports.DropdownMenuGroup=ry;exports.DropdownMenuItem=xt;exports.DropdownMenuLabel=Pd;exports.DropdownMenuPortal=oy;exports.DropdownMenuRadioGroup=iy;exports.DropdownMenuRadioItem=Nd;exports.DropdownMenuSeparator=ln;exports.DropdownMenuShortcut=Cd;exports.DropdownMenuSub=ny;exports.DropdownMenuSubContent=Rd;exports.DropdownMenuSubTrigger=yd;exports.DropdownMenuTrigger=$a;exports.EMOJIS=al;exports.EMOJI_CATEGORIES=ti;exports.EmojiPicker=zg;exports.EmptyState=vp;exports.ErrorBoundary=Qw;exports.Expand=Kh;exports.FAB=xT;exports.Fade=Gh;exports.FieldContext=Ss;exports.FileUpload=Kp;exports.Flex=_o;exports.Flip=Yh;exports.FloatingActionButton=Vl;exports.Form=_u;exports.FormContext=Cs;exports.FormControl=ju;exports.FormDescription=Xu;exports.FormField=Ku;exports.FormItem=Uu;exports.FormLabel=Yu;exports.FormMessage=qu;exports.FullCalendar=Rg;exports.Glow=gx;exports.Grid=Pi;exports.GridItem=zv;exports.GridList=dv;exports.HStack=Vv;exports.HoverCard=Fy;exports.HoverCardContent=vc;exports.HoverCardTrigger=Oy;exports.IconButton=Nb;exports.IllustratedMessage=Eb;exports.Image=nf;exports.ImageCropper=Wg;exports.ImageViewer=Ws;exports.ImageViewerTrigger=Yf;exports.Indicator=ng;exports.IndicatorWrapper=ig;exports.InfiniteScroll=Ef;exports.InlineAlert=Bb;exports.Input=en;exports.InputOTP=sp;exports.InputOTPGroup=lp;exports.InputOTPSeparator=cp;exports.InputOTPSlot=dp;exports.KanbanBoard=Dg;exports.Kbd=fg;exports.Label=Aa;exports.LabeledValue=_v;exports.LabeledValueGroup=Uv;exports.LineChart=wg;exports.Link=xu;exports.List=Np;exports.ListItem=Cp;exports.ListItemText=Sp;exports.ListView=jb;exports.Listbox=pf;exports.ListboxItem=uf;exports.Loading=Tf;exports.LoadingOverlay=yf;exports.MASK_PRESETS=hs;exports.MaskedInput=ru;exports.Menubar=Nu;exports.MenubarCheckboxItem=ku;exports.MenubarContent=Tu;exports.MenubarGroup=J0;exports.MenubarItem=Mu;exports.MenubarLabel=Vu;exports.MenubarMenu=Q0;exports.MenubarPortal=ew;exports.MenubarRadioGroup=aw;exports.MenubarRadioItem=Du;exports.MenubarSeparator=Lu;exports.MenubarShortcut=Iu;exports.MenubarSub=tw;exports.MenubarSubContent=Su;exports.MenubarSubTrigger=Cu;exports.MenubarTrigger=Pu;exports.Meter=xi;exports.Modal=Bf;exports.ModalClose=lN;exports.ModalContent=Of;exports.ModalDescription=_f;exports.ModalFooter=Wf;exports.ModalHeader=Gf;exports.ModalOverlay=Fs;exports.ModalPortal=Ff;exports.ModalRoot=iN;exports.ModalTitle=$f;exports.ModalTrigger=sN;exports.MultiSelect=um;exports.NProgress=wf;exports.Navbar=pu;exports.NavbarBrand=uu;exports.NavbarContent=fu;exports.NavbarItem=gu;exports.NavbarLink=bu;exports.NavigationMenu=Sc;exports.NavigationMenuContent=Dc;exports.NavigationMenuIndicator=Vc;exports.NavigationMenuItem=Xy;exports.NavigationMenuLink=qy;exports.NavigationMenuList=Tc;exports.NavigationMenuTrigger=kc;exports.NavigationMenuViewport=is;exports.NotificationCenter=eh;exports.NumberField=ab;exports.NumberInput=pm;exports.Pagination=Qc;exports.PaginationContent=Jc;exports.PaginationEllipsis=rm;exports.PaginationItem=em;exports.PaginationLink=gn;exports.PaginationNext=am;exports.PaginationPrevious=tm;exports.Parallax=dx;exports.PasswordInput=mm;exports.PhoneInput=du;exports.PieChart=Pg;exports.Pop=Jh;exports.Popover=ve;exports.PopoverAnchor=ji;exports.PopoverContent=ue;exports.PopoverTrigger=Re;exports.Portal=rg;exports.Progress=fn;exports.PullToRefresh=hh;exports.Pulse=Zh;exports.QRCode=_g;exports.RadioGroup=Ud;exports.RadioGroupItem=Yd;exports.RangeSlider=Zb;exports.Rating=Nm;exports.ResizableHandle=$R;exports.ResizablePanel=WR;exports.ResizablePanelGroup=GR;exports.RichTextEditor=Fg;exports.Ripple=jh;exports.Rotate=Uh;exports.Scale=$h;exports.ScrollArea=dt;exports.ScrollBar=Ji;exports.ScrollProgress=lx;exports.ScrollReveal=sx;exports.ScrollShadow=dg;exports.SearchBar=Zv;exports.SearchField=ib;exports.SegmentedControl=Op;exports.SegmentedControlItem=Gp;exports.Select=Wi;exports.SelectContent=nn;exports.SelectGroup=Jx;exports.SelectItem=sn;exports.SelectLabel=hd;exports.SelectScrollDownButton=Ki;exports.SelectScrollUpButton=_i;exports.SelectSeparator=xd;exports.SelectTrigger=on;exports.SelectValue=$i;exports.Separator=da;exports.SettingsCard=zh;exports.SettingsHeader=Yo;exports.SettingsLayout=Hh;exports.SettingsNavItem=Fh;exports.SettingsRow=Bh;exports.SettingsSection=Ah;exports.SettingsSeparator=Oh;exports.Shake=qh;exports.Sheet=po;exports.SheetClose=my;exports.SheetContent=gr;exports.SheetDescription=Ad;exports.SheetFooter=Ed;exports.SheetHeader=Id;exports.SheetOverlay=Zi;exports.SheetPortal=Vd;exports.SheetTitle=Hd;exports.SheetTrigger=cy;exports.Shimmer=px;exports.Sidebar=Sm;exports.SidebarContent=Im;exports.SidebarFooter=Vm;exports.SidebarGroup=Em;exports.SidebarGroupAction=Am;exports.SidebarGroupContent=zm;exports.SidebarGroupLabel=Hm;exports.SidebarHeader=Dm;exports.SidebarInset=km;exports.SidebarMenu=Bm;exports.SidebarMenuAction=Wm;exports.SidebarMenuBadge=$m;exports.SidebarMenuButton=Gm;exports.SidebarMenuItem=Fm;exports.SidebarMenuSkeleton=_m;exports.SidebarMenuSub=Km;exports.SidebarMenuSubButton=Ym;exports.SidebarMenuSubItem=Um;exports.SidebarProvider=Cm;exports.SidebarRail=Mm;exports.SidebarSeparator=Lm;exports.SidebarTrigger=Tm;exports.SimpleGrid=Bv;exports.Skeleton=an;exports.Slide=Wh;exports.Slider=pn;exports.Snippet=of;exports.SortableList=Fw;exports.Spacer=bg;exports.Sparkles=bx;exports.Spinner=Zc;exports.SpotlightSearch=Jv;exports.StatCard=yp;exports.StatusLight=Vb;exports.Step=zu;exports.Steps=Hu;exports.SwipeActions=gh;exports.Switch=cd;exports.Table=Gc;exports.TableBody=$c;exports.TableCaption=jc;exports.TableCell=Yc;exports.TableFooter=_c;exports.TableHead=Uc;exports.TableHeader=Wc;exports.TableRow=Kc;exports.Tabs=sy;exports.TabsContent=Dd;exports.TabsList=Md;exports.TabsTrigger=kd;exports.TagGroup=ov;exports.TagInput=fp;exports.TextBadge=ro;exports.TextField=Zg;exports.TextReveal=ax;exports.Textarea=pd;exports.ThemeProvider=Kg;exports.ThemeToggle=Ug;exports.TimeField=pb;exports.TimeInput=Zp;exports.TimePicker=Df;exports.Timeline=Dp;exports.TimelineContent=Ep;exports.TimelineItem=Lp;exports.TimelineOpposite=Hp;exports.TimelineSeparator=Ip;exports.Toaster=fy;exports.Toggle=Xd;exports.ToggleGroup=Zd;exports.ToggleGroupItem=Qd;exports.Tooltip=Oa;exports.TooltipContent=ca;exports.TooltipProvider=Fa;exports.TooltipTrigger=Ga;exports.TreeView=Ou;exports.Typewriter=tx;exports.User=Ju;exports.VStack=Lv;exports.VirtualList=rN;exports.VisuallyHidden=pg;exports.Well=Gv;exports.Wiggle=Qh;exports.WordRotate=rx;exports.actionBarVariants=Fb;exports.actionGroupVariants=Cb;exports.actionIconVariants=Jf;exports.actionMenuTriggerVariants=Wb;exports.actionSheetItemVariants=mh;exports.actionSheetVariants=ch;exports.announcementBannerVariants=ah;exports.appShellVariants=yh;exports.applyMask=Dn;exports.authLayoutVariants=Vi;exports.autocompleteInputVariants=Wu;exports.avatarGroupVariants=ym;exports.backTopVariants=Ru;exports.badgeIndicatorVariants=Px;exports.bottomNavigationVariants=ih;exports.buttonGroupVariants=hb;exports.buttonVariants=Te;exports.cardVariants=jl;exports.carouselVariants=Vg;exports.chartContainerVariants=Io;exports.chipVariants=qm;exports.circularProgressVariants=rp;exports.closeButtonVariants=qf;exports.cn=o;exports.codeVariants=tf;exports.colorAreaVariants=yv;exports.colorFieldVariants=gb;exports.colorSliderVariants=Sv;exports.colorSwatchPickerVariants=gv;exports.colorSwatchVariants=jp;exports.colorWheelVariants=Mv;exports.confirmDialogIconVariants=Uf;exports.contextualHelpTriggerVariants=ev;exports.copyButtonVariants=vg;exports.currencyInputVariants=Qp;exports.dashboardLayoutVariants=Ph;exports.dateFieldVariants=lb;exports.dateInputVariants=ou;exports.defaultColors=bv;exports.dotsVariants=ep;exports.emojiPickerVariants=Ag;exports.emptyStateVariants=bp;exports.fabVariants=Ko;exports.fileUploadVariants=Wp;exports.flexVariants=Dv;exports.formatCurrency=vs;exports.formatDate=Ln;exports.formatFileSize=kn;exports.formatPhoneNumber=En;exports.fullCalendarVariants=yg;exports.getFileIcon=$p;exports.getMaskPlaceholder=au;exports.gridItemVariants=Av;exports.gridListItemVariants=lv;exports.gridListVariants=sv;exports.gridVariants=Hv;exports.hexToRgb=wv;exports.hsvToRgb=wi;exports.iconButtonVariants=wb;exports.illustratedMessageVariants=Ib;exports.imageCropperVariants=Gg;exports.imageVariants=Ds;exports.indicatorVariants=og;exports.infiniteScrollLoaderVariants=zs;exports.infiniteScrollVariants=If;exports.inlineAlertVariants=zb;exports.inputOTPVariants=ip;exports.inputSizeVariants=Xg;exports.kanbanBoardVariants=Mg;exports.kanbanCardVariants=Zs;exports.kanbanColumnVariants=kg;exports.kbdVariants=ug;exports.labelSizeVariants=qg;exports.labeledValueGroupVariants=Kv;exports.labeledValueVariants=$v;exports.linkVariants=hu;exports.listItemVariants=Pp;exports.listVariants=wp;exports.listViewItemVariants=Yb;exports.listViewVariants=Ub;exports.listboxItemVariants=cf;exports.listboxVariants=df;exports.loadingOverlayVariants=xf;exports.loadingVariants=Sf;exports.maskedInputVariants=tu;exports.materialColors=hv;exports.meterVariants=mv;exports.modalContentVariants=Bs;exports.navbarVariants=mu;exports.navigationMenuTriggerStyle=Mc;exports.notificationCenterVariants=sT;exports.nprogressVariants=Rf;exports.numberFieldVariants=tb;exports.parseDate=nu;exports.parseFormattedValue=Jp;exports.phoneInputVariants=su;exports.pullToRefreshVariants=vh;exports.qrCodeVariants=il;exports.rangeSliderVariants=qb;exports.ratingVariants=wm;exports.rgbToHex=Nv;exports.rgbToHsv=Rv;exports.richTextEditorVariants=Bg;exports.scrollShadowVariants=lg;exports.searchBarVariants=qv;exports.searchFieldVariants=nb;exports.segmentedControlItemVariants=Bp;exports.segmentedControlVariants=zp;exports.settingsLayoutVariants=Li;exports.sheetVariants=Ld;exports.sidebarMenuButtonVariants=Om;exports.skeletonVariants=fd;exports.snippetVariants=rf;exports.sortableItemVariants=bf;exports.sortableListVariants=gf;exports.spinnerVariants=qc;exports.statCardVariants=xp;exports.statusLightVariants=Db;exports.stepVariants=Au;exports.stepsVariants=Eu;exports.swipeActionVariants=Il;exports.swipeActionsVariants=fh;exports.tagGroupItemVariants=wl;exports.tagGroupVariants=rv;exports.tagVariants=up;exports.tailwindColors=vv;exports.textBadgeVariants=Tx;exports.textFieldVariants=jg;exports.themeToggleVariants=xC;exports.timeFieldVariants=mb;exports.timeInputVariants=qp;exports.timelineItemVariants=Vp;exports.timelineVariants=kp;exports.toggleVariants=mn;exports.treeViewVariants=Fu;exports.unmask=xs;exports.useButtonGroup=_C;exports.useCarousel=Qs;exports.useConfetti=jT;exports.useConfirmDialog=bN;exports.useFieldContext=zn;exports.useFormContext=Ts;exports.useSidebar=wo;exports.useSpotlight=JS;exports.userVariants=Qu;exports.validateFile=_p;exports.validators=Cw;exports.virtualListVariants=Vf;exports.wellVariants=Ov;//# sourceMappingURL=index.cjs.map
|
|
48
|
+
`})]})});gx.displayName="Shimmer";var ZT={sm:24,md:40,lg:56,xl:80},QT={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"}},bx=U__namespace.forwardRef(({show:e=true,size:t="md",variant:a="success",strokeWidth:r=2,duration:n=.6,delay:i=0,className:s,onComplete:l},d)=>{let m=ZT[t],u=QT[a],c={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:i,ease:"easeOut"}}},g={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:r,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:r,strokeLinecap:"round",strokeLinejoin:"round",className:u.check,variants:g,initial:"hidden",animate:e?"visible":"hidden",onAnimationComplete:()=>e&&l?.()})]})});bx.displayName="Checkmark";var to={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},vx=U__namespace.forwardRef(({autoTrigger:e=false,delay:t=0,options:a={},children:r,onTrigger:n},i)=>{let s=U__namespace.useCallback(()=>{let l={...to,...a};eo__default.default(l),n?.();},[a,n]);return U__namespace.useEffect(()=>{if(e){let l=setTimeout(s,t);return ()=>clearTimeout(l)}},[e,t,s]),r?jsxRuntime.jsx("button",{ref:i,type:"button",onClick:s,children:r}):null});vx.displayName="Confetti";var JT=()=>{let e=U__namespace.useCallback(r=>{let n={...to,...r};eo__default.default(n);},[]),t=U__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);eo__default.default({...to,particleCount:l,origin:{x:Math.random()*.4+.1,y:Math.random()-.2}}),eo__default.default({...to,particleCount:l,origin:{x:Math.random()*.4+.5,y:Math.random()-.2}});},250);},[]),a=U__namespace.useCallback((r="both")=>{let n={x:0,y:1},i={x:1,y:1};(r==="left"||r==="both")&&eo__default.default({...to,particleCount:50,angle:60,spread:55,origin:n}),(r==="right"||r==="both")&&eo__default.default({...to,particleCount:50,angle:120,spread:55,origin:i});},[]);return {fire:e,fireworks:t,cannon:a}},hx=U__namespace.forwardRef(({children:e,color:t="hsl(var(--primary))",intensity:a=20,spread:r=0,animate:n=false,duration:i=2,className:s},l)=>{let d={boxShadow:`0 0 ${a}px ${r}px ${t}`};return n?jsxRuntime.jsx(framerMotion.motion.div,{ref:l,className:o(s),animate:{boxShadow:[`0 0 ${a}px ${r}px ${t}`,`0 0 ${a*1.5}px ${r+5}px ${t}`,`0 0 ${a}px ${r}px ${t}`]},transition:{duration:i,repeat:1/0,ease:"easeInOut"},children:e}):jsxRuntime.jsx("div",{ref:l,className:o(s),style:d,children:e})});hx.displayName="Glow";var fx=(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}),xx=U__namespace.forwardRef(({children:e,count:t=10,color:a="hsl(var(--primary))",minSize:r=4,maxSize:n=8,duration:i=1.5,className:s},l)=>{let[d,m]=U__namespace.useState([]);return U__namespace.useEffect(()=>{let u=Array.from({length:t},()=>fx(r,n));m(u);let c=setInterval(()=>{m(g=>{let p=[...g],v=Math.floor(Math.random()*t);return p[v]=fx(r,n),p});},i*500);return ()=>clearInterval(c)},[t,r,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:a})},u.id))]})});xx.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=Hy;exports.AccordionItem=nc;exports.ActionBar=$b;exports.ActionBarButton=_b;exports.ActionGroup=kb;exports.ActionIcon=rg;exports.ActionMenu=Ub;exports.ActionSheet=gh;exports.Alert=Px;exports.AlertDescription=Sx;exports.AlertDialog=Gy;exports.AlertDialogAction=gc;exports.AlertDialogCancel=bc;exports.AlertDialogContent=cc;exports.AlertDialogDescription=fc;exports.AlertDialogFooter=pc;exports.AlertDialogHeader=mc;exports.AlertDialogOverlay=ls;exports.AlertDialogPortal=dc;exports.AlertDialogTitle=uc;exports.AlertDialogTrigger=Wy;exports.AlertTitle=Cx;exports.AnnouncementBanner=ih;exports.AppShell=Ph;exports.AppShellAside=Ol;exports.AppShellFooter=Gl;exports.AppShellHeader=Bl;exports.AppShellMain=Ch;exports.AppShellSidebar=Fl;exports.AreaChart=Mg;exports.AspectRatio=Zy;exports.AuthDivider=Hh;exports.AuthFooterLinks=Ah;exports.AuthForm=Ih;exports.AuthHeader=Eh;exports.AuthLayout=Lh;exports.AuthSocialButtons=zh;exports.Autocomplete=Uu;exports.Avatar=za;exports.AvatarFallback=Ba;exports.AvatarGroup=Pm;exports.AvatarImage=gr;exports.BackTop=Cu;exports.Badge=kx;exports.BarChart=Sg;exports.BatteryMeter=bv;exports.BottomNavigation=ch;exports.Bounce=Qh;exports.Breadcrumb=Rc;exports.BreadcrumbEllipsis=Tc;exports.BreadcrumbItem=Nc;exports.BreadcrumbLink=Pc;exports.BreadcrumbList=wc;exports.BreadcrumbPage=Cc;exports.BreadcrumbSeparator=Sc;exports.Button=O;exports.ButtonGroup=Nb;exports.COUNTRIES=mu;exports.Calendar=yr;exports.Card=Ql;exports.CardContent=ed;exports.CardFooter=td;exports.CardHeader=Jl;exports.Carousel=Hg;exports.CarouselContent=zg;exports.CarouselItem=Bg;exports.CarouselNext=rl;exports.CarouselPrevious=al;exports.Center=Hv;exports.Checkbox=so;exports.Checkmark=bx;exports.Chip=ep;exports.CircularProgress=sp;exports.CloseButton=eg;exports.Code=nf;exports.Collapse=Yh;exports.Collapsible=Oy;exports.CollapsibleContent=lc;exports.CollapsibleTrigger=sc;exports.ColorArea=Tv;exports.ColorField=xb;exports.ColorPicker=Qp;exports.ColorSlider=Dv;exports.ColorSwatch=Mr;exports.ColorSwatchPicker=wv;exports.ColorWheel=Lv;exports.Combobox=vm;exports.Command=fs;exports.CommandDialog=fR;exports.CommandEmpty=dm;exports.CommandGroup=cm;exports.CommandInput=sm;exports.CommandItem=pm;exports.CommandList=lm;exports.CommandSeparator=mm;exports.CommandShortcut=um;exports.Confetti=vx;exports.ConfirmDialog=$s;exports.ContextMenu=Ny;exports.ContextMenuCheckboxItem=_d;exports.ContextMenuContent=Wd;exports.ContextMenuGroup=Cy;exports.ContextMenuItem=$d;exports.ContextMenuLabel=Ud;exports.ContextMenuPortal=Sy;exports.ContextMenuRadioGroup=My;exports.ContextMenuRadioItem=Kd;exports.ContextMenuSeparator=Yd;exports.ContextMenuShortcut=jd;exports.ContextMenuSub=Ty;exports.ContextMenuSubContent=Gd;exports.ContextMenuSubTrigger=Od;exports.ContextMenuTrigger=Py;exports.ContextualHelp=ov;exports.CopyButton=Rg;exports.Counter=rx;exports.CurrencyInput=ru;exports.DEFAULT_COLORS=Ao;exports.DashboardGrid=Vh;exports.DashboardLayout=Mh;exports.DashboardPage=kh;exports.DashboardPageHeader=Dh;exports.DataTable=vw;exports.DateField=pb;exports.DateInput=du;exports.DatePicker=xm;exports.DateRangePicker=Lf;exports.DefaultErrorFallback=zs;exports.Dialog=Oi;exports.DialogClose=Fx;exports.DialogContent=en;exports.DialogDescription=sd;exports.DialogFooter=nd;exports.DialogHeader=od;exports.DialogOverlay=Gi;exports.DialogPortal=rd;exports.DialogTitle=id;exports.DialogTrigger=Bx;exports.DiskUsageMeter=gv;exports.Dots=op;exports.Drawer=zc;exports.DrawerClose=rR;exports.DrawerContent=Fc;exports.DrawerDescription=$c;exports.DrawerFooter=Gc;exports.DrawerHeader=Oc;exports.DrawerOverlay=cs;exports.DrawerPortal=Bc;exports.DrawerTitle=Wc;exports.DrawerTrigger=aR;exports.DropdownMenu=Wa;exports.DropdownMenuCheckboxItem=Cd;exports.DropdownMenuContent=pa;exports.DropdownMenuGroup=iy;exports.DropdownMenuItem=ht;exports.DropdownMenuLabel=Td;exports.DropdownMenuPortal=sy;exports.DropdownMenuRadioGroup=dy;exports.DropdownMenuRadioItem=Sd;exports.DropdownMenuSeparator=dn;exports.DropdownMenuShortcut=Md;exports.DropdownMenuSub=ly;exports.DropdownMenuSubContent=Pd;exports.DropdownMenuSubTrigger=Nd;exports.DropdownMenuTrigger=$a;exports.EMOJIS=nl;exports.EMOJI_CATEGORIES=ri;exports.EmojiPicker=Og;exports.EmptyState=yp;exports.ErrorBoundary=rN;exports.Expand=jh;exports.FAB=PT;exports.Fade=_h;exports.FieldContext=ks;exports.FileUpload=jp;exports.Flex=Ko;exports.Flip=qh;exports.FloatingActionButton=El;exports.Form=Yu;exports.FormContext=Ms;exports.FormControl=Zu;exports.FormDescription=Qu;exports.FormField=ju;exports.FormItem=Xu;exports.FormLabel=qu;exports.FormMessage=Ju;exports.FullCalendar=Pg;exports.Glow=hx;exports.Grid=Si;exports.GridItem=Ov;exports.GridList=pv;exports.HStack=Ev;exports.HoverCard=_y;exports.HoverCardContent=yc;exports.HoverCardTrigger=Ky;exports.IconButton=Sb;exports.IllustratedMessage=zb;exports.Image=df;exports.ImageCropper=Kg;exports.ImageViewer=Ks;exports.ImageViewerTrigger=qf;exports.Indicator=lg;exports.IndicatorWrapper=dg;exports.InfiniteScroll=zf;exports.InlineAlert=Gb;exports.Input=tn;exports.InputOTP=cp;exports.InputOTPGroup=mp;exports.InputOTPSeparator=up;exports.InputOTPSlot=pp;exports.KanbanBoard=Ig;exports.Kbd=vg;exports.Label=Ha;exports.LabeledValue=Yv;exports.LabeledValueGroup=Xv;exports.LineChart=Cg;exports.Link=wu;exports.List=Sp;exports.ListItem=Mp;exports.ListItemText=kp;exports.ListView=Zb;exports.Listbox=gf;exports.ListboxItem=bf;exports.Loading=Df;exports.LoadingOverlay=Nf;exports.MASK_PRESETS=Rs;exports.MaskedInput=iu;exports.Menubar=Su;exports.MenubarCheckboxItem=Lu;exports.MenubarContent=Du;exports.MenubarGroup=ow;exports.MenubarItem=Vu;exports.MenubarLabel=Eu;exports.MenubarMenu=rw;exports.MenubarPortal=nw;exports.MenubarRadioGroup=sw;exports.MenubarRadioItem=Iu;exports.MenubarSeparator=Au;exports.MenubarShortcut=Hu;exports.MenubarSub=iw;exports.MenubarSubContent=ku;exports.MenubarSubTrigger=Mu;exports.MenubarTrigger=Tu;exports.Meter=Ri;exports.Modal=Gf;exports.ModalClose=uN;exports.ModalContent=$f;exports.ModalDescription=Yf;exports.ModalFooter=Kf;exports.ModalHeader=_f;exports.ModalOverlay=Ws;exports.ModalPortal=Wf;exports.ModalRoot=mN;exports.ModalTitle=Uf;exports.ModalTrigger=pN;exports.MultiSelect=bm;exports.NProgress=Cf;exports.Navbar=gu;exports.NavbarBrand=bu;exports.NavbarContent=vu;exports.NavbarItem=hu;exports.NavbarLink=xu;exports.NavigationMenu=kc;exports.NavigationMenuContent=Ic;exports.NavigationMenuIndicator=Ec;exports.NavigationMenuItem=eR;exports.NavigationMenuLink=tR;exports.NavigationMenuList=Dc;exports.NavigationMenuTrigger=Lc;exports.NavigationMenuViewport=ds;exports.NotificationCenter=rh;exports.NumberField=nb;exports.NumberInput=gm;exports.Pagination=tm;exports.PaginationContent=am;exports.PaginationEllipsis=im;exports.PaginationItem=rm;exports.PaginationLink=vn;exports.PaginationNext=nm;exports.PaginationPrevious=om;exports.Parallax=px;exports.PasswordInput=fm;exports.PhoneInput=pu;exports.PieChart=Tg;exports.Pop=ax;exports.Popover=ve;exports.PopoverAnchor=qi;exports.PopoverContent=ue;exports.PopoverTrigger=Re;exports.Portal=ig;exports.Progress=bn;exports.PullToRefresh=Rh;exports.Pulse=ex;exports.QRCode=Yg;exports.RadioGroup=Xd;exports.RadioGroupItem=qd;exports.RangeSlider=ev;exports.Rating=Sm;exports.ResizableHandle=jR;exports.ResizablePanel=YR;exports.ResizablePanelGroup=UR;exports.RichTextEditor=Wg;exports.Ripple=Zh;exports.Rotate=Xh;exports.Scale=Uh;exports.ScrollArea=lt;exports.ScrollBar=ts;exports.ScrollProgress=mx;exports.ScrollReveal=cx;exports.ScrollShadow=pg;exports.SearchBar=eh;exports.SearchField=db;exports.SegmentedControl=$p;exports.SegmentedControlItem=_p;exports.Select=_i;exports.SelectContent=sn;exports.SelectGroup=ay;exports.SelectItem=ln;exports.SelectLabel=Rd;exports.SelectScrollDownButton=Yi;exports.SelectScrollUpButton=Ui;exports.SelectSeparator=wd;exports.SelectTrigger=nn;exports.SelectValue=Ki;exports.Separator=da;exports.SettingsCard=Oh;exports.SettingsHeader=jo;exports.SettingsLayout=Bh;exports.SettingsNavItem=Wh;exports.SettingsRow=Gh;exports.SettingsSection=Fh;exports.SettingsSeparator=$h;exports.Shake=Jh;exports.Sheet=uo;exports.SheetClose=fy;exports.SheetContent=br;exports.SheetDescription=Fd;exports.SheetFooter=zd;exports.SheetHeader=Hd;exports.SheetOverlay=Ji;exports.SheetPortal=Ed;exports.SheetTitle=Bd;exports.SheetTrigger=uy;exports.Shimmer=gx;exports.Sidebar=km;exports.SidebarContent=Hm;exports.SidebarFooter=Em;exports.SidebarGroup=zm;exports.SidebarGroupAction=Fm;exports.SidebarGroupContent=Om;exports.SidebarGroupLabel=Bm;exports.SidebarHeader=Im;exports.SidebarInset=Lm;exports.SidebarMenu=Gm;exports.SidebarMenuAction=Km;exports.SidebarMenuBadge=Um;exports.SidebarMenuButton=_m;exports.SidebarMenuItem=Wm;exports.SidebarMenuSkeleton=Ym;exports.SidebarMenuSub=jm;exports.SidebarMenuSubButton=qm;exports.SidebarMenuSubItem=Xm;exports.SidebarProvider=Mm;exports.SidebarRail=Vm;exports.SidebarSeparator=Am;exports.SidebarTrigger=Dm;exports.SimpleGrid=Gv;exports.Skeleton=rn;exports.Slide=Kh;exports.Slider=un;exports.Snippet=lf;exports.SortableList=_w;exports.Spacer=xg;exports.Sparkles=xx;exports.Spinner=em;exports.SpotlightSearch=ah;exports.StatCard=Np;exports.StatusLight=Eb;exports.Step=Ou;exports.Steps=Bu;exports.SwipeActions=hh;exports.Switch=ud;exports.Table=_c;exports.TableBody=Uc;exports.TableCaption=Zc;exports.TableCell=qc;exports.TableFooter=Yc;exports.TableHead=Xc;exports.TableHeader=Kc;exports.TableRow=jc;exports.Tabs=cy;exports.TabsContent=Id;exports.TabsList=Vd;exports.TabsTrigger=Ld;exports.TagGroup=sv;exports.TagInput=vp;exports.TextBadge=oo;exports.TextField=eb;exports.TextReveal=nx;exports.Textarea=gd;exports.ThemeProvider=jg;exports.ThemeToggle=Xg;exports.TimeField=gb;exports.TimeInput=eu;exports.TimePicker=If;exports.Timeline=Ip;exports.TimelineContent=zp;exports.TimelineItem=Ap;exports.TimelineOpposite=Bp;exports.TimelineSeparator=Hp;exports.Toaster=vy;exports.Toggle=Qd;exports.ToggleGroup=ec;exports.ToggleGroupItem=tc;exports.Tooltip=Oa;exports.TooltipContent=ca;exports.TooltipProvider=Fa;exports.TooltipTrigger=Ga;exports.TreeView=$u;exports.Typewriter=ox;exports.User=af;exports.VStack=Av;exports.VirtualList=lN;exports.VisuallyHidden=gg;exports.Well=_v;exports.Wiggle=tx;exports.WordRotate=ix;exports.actionBarVariants=Wb;exports.actionGroupVariants=Mb;exports.actionIconVariants=ag;exports.actionMenuTriggerVariants=Kb;exports.actionSheetItemVariants=fh;exports.actionSheetVariants=uh;exports.announcementBannerVariants=nh;exports.appShellVariants=Nh;exports.applyMask=Ln;exports.authLayoutVariants=Ii;exports.autocompleteInputVariants=Ku;exports.avatarGroupVariants=Nm;exports.backTopVariants=Pu;exports.badgeIndicatorVariants=Tx;exports.bottomNavigationVariants=dh;exports.buttonGroupVariants=Rb;exports.buttonVariants=Te;exports.cardVariants=Zl;exports.carouselVariants=Eg;exports.chartContainerVariants=Eo;exports.chipVariants=Jm;exports.circularProgressVariants=ip;exports.closeButtonVariants=Jf;exports.cn=o;exports.codeVariants=of;exports.colorAreaVariants=Nv;exports.colorFieldVariants=hb;exports.colorSliderVariants=kv;exports.colorSwatchPickerVariants=hv;exports.colorSwatchVariants=Zp;exports.colorWheelVariants=Vv;exports.confirmDialogIconVariants=Xf;exports.contextualHelpTriggerVariants=rv;exports.copyButtonVariants=yg;exports.currencyInputVariants=tu;exports.dashboardLayoutVariants=Th;exports.dateFieldVariants=mb;exports.dateInputVariants=su;exports.defaultColors=xv;exports.dotsVariants=rp;exports.emojiPickerVariants=Fg;exports.emptyStateVariants=xp;exports.fabVariants=Uo;exports.fileUploadVariants=Kp;exports.flexVariants=Iv;exports.formatCurrency=ys;exports.formatDate=En;exports.formatFileSize=Vn;exports.formatPhoneNumber=Hn;exports.fullCalendarVariants=Ng;exports.getFileIcon=Up;exports.getMaskPlaceholder=nu;exports.gridItemVariants=Fv;exports.gridListItemVariants=mv;exports.gridListVariants=cv;exports.gridVariants=Bv;exports.hexToRgb=Cv;exports.hsvToRgb=Pi;exports.iconButtonVariants=Cb;exports.illustratedMessageVariants=Hb;exports.imageCropperVariants=_g;exports.imageVariants=Is;exports.indicatorVariants=sg;exports.infiniteScrollLoaderVariants=Os;exports.infiniteScrollVariants=Hf;exports.inlineAlertVariants=Ob;exports.inputOTPVariants=dp;exports.inputSizeVariants=Qg;exports.kanbanBoardVariants=Vg;exports.kanbanCardVariants=el;exports.kanbanColumnVariants=Lg;exports.kbdVariants=bg;exports.labelSizeVariants=Jg;exports.labeledValueGroupVariants=jv;exports.labeledValueVariants=Uv;exports.linkVariants=Ru;exports.listItemVariants=Tp;exports.listVariants=Cp;exports.listViewItemVariants=qb;exports.listViewVariants=Xb;exports.listboxItemVariants=uf;exports.listboxVariants=pf;exports.loadingOverlayVariants=wf;exports.loadingVariants=kf;exports.maskedInputVariants=ou;exports.materialColors=Rv;exports.meterVariants=fv;exports.modalContentVariants=Gs;exports.navbarVariants=fu;exports.navigationMenuTriggerStyle=Vc;exports.notificationCenterVariants=pT;exports.nprogressVariants=Pf;exports.numberFieldVariants=ob;exports.parseDate=lu;exports.parseFormattedValue=au;exports.phoneInputVariants=cu;exports.pullToRefreshVariants=yh;exports.qrCodeVariants=dl;exports.rangeSliderVariants=Jb;exports.ratingVariants=Cm;exports.rgbToHex=Sv;exports.rgbToHsv=Pv;exports.richTextEditorVariants=Gg;exports.scrollShadowVariants=mg;exports.searchBarVariants=Jv;exports.searchFieldVariants=lb;exports.segmentedControlItemVariants=Gp;exports.segmentedControlVariants=Op;exports.settingsLayoutVariants=Ei;exports.sheetVariants=Ad;exports.sidebarMenuButtonVariants=$m;exports.skeletonVariants=vd;exports.snippetVariants=sf;exports.sortableItemVariants=xf;exports.sortableListVariants=hf;exports.spinnerVariants=Jc;exports.statCardVariants=wp;exports.statusLightVariants=Ib;exports.stepVariants=Fu;exports.stepsVariants=zu;exports.swipeActionVariants=Hl;exports.swipeActionsVariants=vh;exports.tagGroupItemVariants=Cl;exports.tagGroupVariants=iv;exports.tagVariants=bp;exports.tailwindColors=yv;exports.textBadgeVariants=Dx;exports.textFieldVariants=Zg;exports.themeToggleVariants=PC;exports.timeFieldVariants=fb;exports.timeInputVariants=Jp;exports.timelineItemVariants=Ep;exports.timelineVariants=Lp;exports.toggleVariants=pn;exports.treeViewVariants=Wu;exports.unmask=ws;exports.useButtonGroup=XC;exports.useCarousel=tl;exports.useConfetti=JT;exports.useConfirmDialog=RN;exports.useFieldContext=Fn;exports.useFormContext=Ds;exports.useSidebar=No;exports.useSpotlight=oT;exports.userVariants=tf;exports.validateFile=Yp;exports.validators=Dw;exports.virtualListVariants=Ef;exports.wellVariants=$v;//# sourceMappingURL=index.cjs.map
|
|
19
49
|
//# sourceMappingURL=index.cjs.map
|