@sudobility/components 4.0.153 → 4.0.156

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.esm.js CHANGED
@@ -11,7 +11,7 @@ import { XMarkIcon as Ln, MinusIcon as In, CheckIcon as Pn } from "@heroicons/re
11
11
  import { CheckCircleIcon as bp, CheckIcon as pp, ExclamationTriangleIcon as yp, StarIcon as xp } from "@heroicons/react/24/solid";
12
12
  import { Root as Ma, Thumb as On } from "@radix-ui/react-switch";
13
13
  import * as G from "@radix-ui/react-select";
14
- import { ChevronDown as Jt, ChevronUp as Rn, Check as Dn } from "lucide-react";
14
+ import { ChevronDownIcon as Jt, ChevronUpIcon as Rn, CheckIcon as Dn } from "@heroicons/react/20/solid";
15
15
  import { Root as La } from "@radix-ui/react-label";
16
16
  import { Slot as Un } from "@radix-ui/react-slot";
17
17
  import { Link as at, useParams as bt, useNavigate as Qt, Outlet as _n, useLocation as jn } from "react-router-dom";
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(u,ze){typeof exports=="object"&&typeof module<"u"?ze(exports,require("clsx"),require("tailwind-merge"),require("react/jsx-runtime"),require("react"),require("class-variance-authority"),require("react-dom"),require("@heroicons/react/24/outline"),require("@heroicons/react/24/solid"),require("@radix-ui/react-switch"),require("@radix-ui/react-select"),require("lucide-react"),require("@radix-ui/react-label"),require("@radix-ui/react-slot"),require("react-router-dom"),require("@radix-ui/react-tabs"),require("react-i18next"),require("react-helmet-async"),require("web-vitals")):typeof define=="function"&&define.amd?define(["exports","clsx","tailwind-merge","react/jsx-runtime","react","class-variance-authority","react-dom","@heroicons/react/24/outline","@heroicons/react/24/solid","@radix-ui/react-switch","@radix-ui/react-select","lucide-react","@radix-ui/react-label","@radix-ui/react-slot","react-router-dom","@radix-ui/react-tabs","react-i18next","react-helmet-async","web-vitals"],ze):(u=typeof globalThis<"u"?globalThis:u||self,ze(u.MailBoxComponents={},u.clsx,u.tailwindMerge,u.ReactJSXRuntime,u.React,u.cva,u.ReactDOM,u.HeroiconsOutline,u.HeroiconsSolid,u.RadixSwitch,u.RadixSelect,u.LucideReact,u.RadixLabel,u.RadixSlot,u.ReactRouterDOM,u.RadixTabs,u.ReactI18next,u.ReactHelmetAsync,u.WebVitals))})(this,(function(u,ze,to,t,p,Z,wr,P,fe,kr,ao,Be,St,no,X,be,tr,Et,Fe){"use strict";function Tt(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const G=Tt(p),V=Tt(ao);function f(...e){return to.twMerge(ze.clsx(e))}const At=({children:e,as:r="div",p:a,px:n,py:o,m:s,mx:l,my:i,bg:d,border:c=!1,rounded:h,shadow:g,w:y,h:m,className:b})=>{const v={none:"0",xs:"1",sm:"2",md:"4",lg:"6",xl:"8","2xl":"12",auto:"auto"},w=d?{transparent:"bg-transparent",white:"bg-white dark:bg-gray-900",gray:"bg-gray-100 dark:bg-gray-800",primary:"bg-blue-50 dark:bg-blue-900/20",success:"bg-green-50 dark:bg-green-900/20",warning:"bg-yellow-50 dark:bg-yellow-900/20",danger:"bg-red-50 dark:bg-red-900/20"}[d]:"",S=h?{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"}[h]:"",k=g?{none:"shadow-none",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl"}[g]:"",x=y?{auto:"w-auto",full:"w-full",screen:"w-screen",min:"w-min",max:"w-max"}[y]:"",N=m?{auto:"h-auto",full:"h-full",screen:"h-screen",min:"h-min",max:"h-max"}[m]:"",E=[];a&&E.push("p-"+v[a]),n&&E.push("px-"+v[n]),o&&E.push("py-"+v[o]);const A=[];return s&&A.push("m-"+v[s]),l&&A.push("mx-"+v[l]),i&&A.push("my-"+v[i]),t.jsx(r,{className:f(...E,...A,w,c&&"border border-gray-200 dark:border-gray-700",S,k,x,N,b),children:e})},oo=({direction:e="row",align:r,justify:a,wrap:n="nowrap",gap:o,inline:s=!1,className:l,...i})=>{const d={row:"flex-row","row-reverse":"flex-row-reverse",col:"flex-col","col-reverse":"flex-col-reverse"},c=r?{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"}[r]:"",h=a?{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}[a]:"",g={nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"},y=o?{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"}[o]:"";return t.jsx(At,{...i,className:f(s?"inline-flex":"flex",d[e],c,h,g[n],y,l)})},so=({children:e,size:r="xl",center:a=!0,padding:n="md",className:o})=>{const s={sm:"max-w-screen-sm",md:"max-w-screen-md",lg:"max-w-screen-lg",xl:"max-w-screen-xl","2xl":"max-w-screen-2xl",full:"max-w-full"},l={none:"",sm:"px-4 py-2",md:"px-6 py-4",lg:"px-8 py-6"};return t.jsx("div",{className:f("w-full",s[r],a&&"mx-auto",l[n],o),children:e})},lo=({children:e,cols:r=1,gap:a="md",autoFit:n,autoFill:o,alignItems:s="stretch",justifyItems:l="stretch",className:i})=>{const d={none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},c={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},h={start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"},g=()=>{if(n||o)return"";if(typeof r=="number")return{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"}[r]||"grid-cols-1";const m=[];return r.sm&&m.push("grid-cols-"+r.sm),r.md&&m.push("md:grid-cols-"+r.md),r.lg&&m.push("lg:grid-cols-"+r.lg),r.xl&&m.push("xl:grid-cols-"+r.xl),m.join(" ")};let y;return n?y="repeat(auto-fit, minmax("+n+", 1fr))":o&&(y="repeat(auto-fill, minmax("+o+", 1fr))"),t.jsx("div",{className:f("grid",g(),d[a],c[s],h[l],i),style:y?{gridTemplateColumns:y}:void 0,children:e})},xr=({children:e,direction:r="vertical",spacing:a="md",align:n="stretch",justify:o="start",wrap:s=!1,full:l=!1,divider:i=!1,className:d})=>{const c=r==="vertical",h={vertical:{none:"",xs:"space-y-1",sm:"space-y-2",md:"space-y-4",lg:"space-y-6",xl:"space-y-8","2xl":"space-y-12"},horizontal:{none:"",xs:"space-x-1",sm:"space-x-2",md:"space-x-4",lg:"space-x-6",xl:"space-x-8","2xl":"space-x-12"}},g={vertical:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},horizontal:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"}},y={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},m={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"};return t.jsx("div",{className:f("flex",c?"flex-col":"flex-row",i?g[r][a]:h[r][a],y[n],m[o],s&&"flex-wrap",l&&(c?"h-full":"w-full"),d),children:i?p.Children.map(e,(b,v)=>t.jsxs(p.Fragment,{children:[b,v<p.Children.count(e)-1&&t.jsx("div",{className:f("bg-gray-200 dark:bg-gray-700",c?"h-px w-full":"w-px h-full")})]},v)):e})},io=e=>t.jsx(xr,{direction:"vertical",...e}),co=e=>t.jsx(xr,{direction:"horizontal",...e}),uo=({children:e,axis:r="both",inline:a=!1,className:n})=>{const o=()=>{switch(r){case"horizontal":return"justify-center";case"vertical":return"items-center";case"both":default:return"justify-center items-center"}};return t.jsx("div",{className:f(a?"inline-flex":"flex",o(),n),children:e})},go=({size:e="md",axis:r="vertical",flex:a=!1,className:n})=>{const o={vertical:{xs:"h-1",sm:"h-2",md:"h-4",lg:"h-6",xl:"h-8","2xl":"h-12"},horizontal:{xs:"w-1",sm:"w-2",md:"w-4",lg:"w-6",xl:"w-8","2xl":"w-12"}},s=typeof e=="number"?r==="vertical"?{height:`${e}px`}:{width:`${e}px`}:void 0,l=typeof e=="string"?o[r][e]:"";return t.jsx("div",{className:f(a&&"flex-1",!a&&l,n),style:s,"aria-hidden":"true"})},ho=Z.cva("",{variants:{variant:{default:"",hero:"relative overflow-hidden",feature:"bg-white dark:bg-gray-800",cta:"relative overflow-hidden",testimonial:"bg-gray-50 dark:bg-gray-900",footer:"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700 border-t"},spacing:{none:"",xs:"py-2",sm:"py-3",md:"py-4",lg:"py-6",xl:"py-8","2xl":"py-12","3xl":"py-16","4xl":"py-20","5xl":"py-24"},background:{none:"bg-transparent",default:"bg-gray-50 dark:bg-gray-900",surface:"bg-white dark:bg-gray-800",gradient:"bg-gradient-to-br from-gray-50 via-blue-50 to-purple-50 dark:from-gray-900 dark:via-blue-900/50 dark:to-purple-900/50","gradient-primary":"bg-gradient-to-br from-blue-50 to-indigo-100 dark:from-blue-900/50 dark:to-indigo-900/50","gradient-secondary":"bg-gradient-to-br from-green-50 to-blue-100 dark:from-green-900/50 dark:to-blue-900/50","gradient-tertiary":"bg-gradient-to-r from-emerald-50 to-teal-50 dark:from-gray-800 dark:to-gray-900","gradient-vibrant":"bg-gradient-to-br from-blue-800 to-purple-800 dark:from-blue-900 dark:to-purple-900"}},defaultVariants:{variant:"default",spacing:"3xl",background:"none"}}),fo={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl",full:"max-w-full"},bo=({children:e,variant:r="default",spacing:a="3xl",background:n="none",maxWidth:o="7xl",className:s,containerClassName:l,as:i="section",id:d,fullWidth:c=!1})=>{const h=c?e:t.jsx("div",{className:f(fo[o],"mx-auto px-4 sm:px-6 lg:px-8",l),children:e});return p.createElement(i,{id:d,className:f(ho({variant:r,spacing:a,background:n}),s)},h)},mo=Z.cva("min-h-screen flex flex-col",{variants:{background:{default:"bg-gray-50 dark:bg-gray-900",surface:"bg-white dark:bg-gray-800",transparent:"bg-transparent",gradient:"bg-gradient-to-br from-gray-50 via-blue-50 to-purple-50 dark:from-gray-900 dark:via-blue-900/20 dark:to-purple-900/20"},overflow:{visible:"overflow-visible",hidden:"overflow-hidden",scroll:"overflow-auto"}},defaultVariants:{background:"default",overflow:"visible"}}),yo=({children:e,background:r="default",overflow:a="visible",className:n})=>t.jsx("div",{className:f(mo({background:r,overflow:a}),n),children:e}),po=({children:e,ratio:r="16/9",className:a})=>{const s=`${1/(typeof r=="string"?{"16/9":1.7777777777777777,"4/3":1.3333333333333333,"1/1":1,"21/9":2.3333333333333335,"3/2":1.5}[r]:r)*100}%`;return t.jsx("div",{className:f("relative w-full",a),style:{paddingBottom:s},children:t.jsx("div",{className:"absolute inset-0",children:e})})},T={typography:{family:{sans:"font-sans",display:"font-sans",body:"font-sans"},semantic:{caption:"text-xs",small:"text-sm",body:"text-base",bodyLarge:"text-lg",h6:"text-base",h5:"text-lg",h4:"text-xl",h3:"text-2xl",h2:"text-3xl",h1:"text-4xl",hero:"text-8xl"},weight:{semibold:"font-semibold",bold:"font-bold",body:"font-normal",emphasis:"font-medium",strong:"font-semibold",heading:"font-bold",display:"font-extrabold"},decoration:{none:"no-underline",underline:"underline"},underlineOffset:{medium:"underline-offset-2"},leading:{tight:"leading-tight",heading:"leading-tight",body:"leading-relaxed",caption:"leading-normal",display:"leading-none"},tracking:{heading:"tracking-tight",body:"tracking-normal",caption:"tracking-normal",uppercase:"tracking-wider"},transform:{uppercase:"uppercase"}}},U={heading:{display:{hero:()=>`${T.typography.family.display} ${T.typography.semantic.hero} ${T.typography.weight.display} ${T.typography.leading.display} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,xl:()=>`${T.typography.family.display} text-7xl ${T.typography.weight.display} ${T.typography.leading.display} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,lg:()=>`${T.typography.family.display} text-6xl ${T.typography.weight.bold} ${T.typography.leading.display} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,md:()=>`${T.typography.family.display} text-5xl ${T.typography.weight.bold} ${T.typography.leading.tight} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,sm:()=>`${T.typography.family.display} text-4xl ${T.typography.weight.bold} ${T.typography.leading.tight} ${T.typography.tracking.heading} text-gray-900 dark:text-white`},h1:()=>`${T.typography.family.sans} ${T.typography.semantic.h1} ${T.typography.weight.heading} ${T.typography.leading.heading} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,h2:()=>`${T.typography.family.sans} ${T.typography.semantic.h2} ${T.typography.weight.heading} ${T.typography.leading.heading} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,h3:()=>`${T.typography.family.sans} ${T.typography.semantic.h3} ${T.typography.weight.heading} ${T.typography.leading.heading} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,h4:()=>`${T.typography.family.sans} ${T.typography.semantic.h4} ${T.typography.weight.semibold} ${T.typography.leading.heading} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,h5:()=>`${T.typography.family.sans} ${T.typography.semantic.h5} ${T.typography.weight.semibold} ${T.typography.leading.heading} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,h6:()=>`${T.typography.family.sans} ${T.typography.semantic.h6} ${T.typography.weight.semibold} ${T.typography.leading.heading} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,responsive:{h1:()=>`${T.typography.family.sans} text-2xl sm:text-3xl md:text-4xl lg:text-5xl ${T.typography.weight.heading} ${T.typography.leading.heading} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,h2:()=>`${T.typography.family.sans} text-xl sm:text-2xl md:text-3xl lg:text-4xl ${T.typography.weight.heading} ${T.typography.leading.heading} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,h3:()=>`${T.typography.family.sans} text-lg sm:text-xl md:text-2xl lg:text-3xl ${T.typography.weight.semibold} ${T.typography.leading.heading} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,display:()=>`${T.typography.family.display} text-4xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl ${T.typography.weight.display} ${T.typography.leading.display} ${T.typography.tracking.heading} text-gray-900 dark:text-white`}},body:{xl:()=>`${T.typography.family.body} ${T.typography.semantic.bodyLarge} ${T.typography.weight.body} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-700 dark:text-gray-300`,lg:()=>`${T.typography.family.body} ${T.typography.semantic.body} ${T.typography.weight.body} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-700 dark:text-gray-300`,md:()=>`${T.typography.family.body} ${T.typography.semantic.body} ${T.typography.weight.body} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-700 dark:text-gray-300`,sm:()=>`${T.typography.family.body} ${T.typography.semantic.small} ${T.typography.weight.body} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-600 dark:text-gray-400`,xs:()=>`${T.typography.family.body} ${T.typography.semantic.caption} ${T.typography.weight.body} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-600 dark:text-gray-400`,strong:{xl:()=>`${T.typography.family.body} ${T.typography.semantic.bodyLarge} ${T.typography.weight.strong} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-900 dark:text-white`,lg:()=>`${T.typography.family.body} ${T.typography.semantic.body} ${T.typography.weight.strong} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-900 dark:text-white`,md:()=>`${T.typography.family.body} ${T.typography.semantic.body} ${T.typography.weight.strong} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-900 dark:text-white`,sm:()=>`${T.typography.family.body} ${T.typography.semantic.small} ${T.typography.weight.strong} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-900 dark:text-white`},emphasis:{xl:()=>`${T.typography.family.body} ${T.typography.semantic.bodyLarge} ${T.typography.weight.emphasis} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-900 dark:text-white`,lg:()=>`${T.typography.family.body} ${T.typography.semantic.body} ${T.typography.weight.emphasis} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-900 dark:text-white`,md:()=>`${T.typography.family.body} ${T.typography.semantic.body} ${T.typography.weight.emphasis} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-900 dark:text-white`,sm:()=>`${T.typography.family.body} ${T.typography.semantic.small} ${T.typography.weight.emphasis} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-900 dark:text-white`},muted:{xl:()=>`${T.typography.family.body} ${T.typography.semantic.bodyLarge} ${T.typography.weight.body} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-600 dark:text-gray-400`,lg:()=>`${T.typography.family.body} ${T.typography.semantic.body} ${T.typography.weight.body} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-600 dark:text-gray-400`,md:()=>`${T.typography.family.body} ${T.typography.semantic.body} ${T.typography.weight.body} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-600 dark:text-gray-400`,sm:()=>`${T.typography.family.body} ${T.typography.semantic.small} ${T.typography.weight.body} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-600 dark:text-gray-400`}},caption:{default:()=>`${T.typography.family.body} ${T.typography.semantic.caption} ${T.typography.weight.body} ${T.typography.leading.caption} ${T.typography.tracking.caption} text-gray-500 dark:text-gray-500`,emphasis:()=>`${T.typography.family.body} ${T.typography.semantic.caption} ${T.typography.weight.emphasis} ${T.typography.leading.caption} ${T.typography.tracking.caption} text-gray-600 dark:text-gray-400`,uppercase:()=>`${T.typography.family.body} ${T.typography.semantic.caption} ${T.typography.weight.emphasis} ${T.typography.leading.caption} ${T.typography.tracking.uppercase} ${T.typography.transform.uppercase} text-gray-500 dark:text-gray-500`},link:{default:()=>`${T.typography.decoration.underline} ${T.typography.underlineOffset.medium} text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 transition-colors duration-150`,subtle:()=>`${T.typography.decoration.none} text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 hover:${T.typography.decoration.underline} hover:${T.typography.underlineOffset.medium} transition-all duration-150`,muted:()=>`${T.typography.decoration.underline} ${T.typography.underlineOffset.medium} text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 transition-colors duration-150`,external:()=>`${T.typography.decoration.underline} ${T.typography.underlineOffset.medium} text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 transition-colors duration-150 inline-flex items-center gap-1`},label:{default:()=>`${T.typography.family.body} text-sm ${T.typography.weight.emphasis} text-gray-900 dark:text-white`,required:()=>`${T.typography.family.body} text-sm ${T.typography.weight.emphasis} text-gray-900 dark:text-white after:content-['*'] after:ml-0.5 after:text-red-500`,optional:()=>`${T.typography.family.body} text-sm ${T.typography.weight.body} text-gray-600 dark:text-gray-400`,helper:()=>`${T.typography.family.body} text-sm ${T.typography.weight.body} text-gray-500 dark:text-gray-500`,error:()=>`${T.typography.family.body} text-sm ${T.typography.weight.body} text-red-600 dark:text-red-400`,success:()=>`${T.typography.family.body} text-sm ${T.typography.weight.body} text-green-600 dark:text-green-400`}},_={button:{primary:{default:()=>"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 border-transparent focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white dark:focus-visible:ring-blue-400 inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",small:()=>"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 border border-transparent focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white dark:focus-visible:ring-blue-400 inline-flex items-center justify-center rounded-md px-3 py-1.5 text-xs font-medium transition-colors duration-200 h-8",large:()=>"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 border-transparent focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white dark:focus-visible:ring-blue-400 inline-flex items-center justify-center rounded-md px-6 py-3 text-base font-medium transition-colors duration-200 h-12",withIcon:()=>"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 border-transparent focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white dark:focus-visible:ring-blue-400 inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",fullWidth:()=>"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 border-transparent focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white dark:focus-visible:ring-blue-400 flex items-center justify-center w-full rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200"},secondary:{default:()=>"bg-gray-100 text-gray-900 hover:bg-gray-200 active:bg-gray-300 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-700 dark:active:bg-gray-600 inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",small:()=>"bg-gray-100 text-gray-900 hover:bg-gray-200 active:bg-gray-300 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-700 dark:active:bg-gray-600 inline-flex items-center justify-center rounded-md px-3 py-1.5 text-xs font-medium transition-colors duration-200 h-8",large:()=>"bg-gray-100 text-gray-900 hover:bg-gray-200 active:bg-gray-300 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-700 dark:active:bg-gray-600 inline-flex items-center justify-center rounded-md px-6 py-3 text-base font-medium transition-colors duration-200 h-12",withIcon:()=>"bg-gray-100 text-gray-900 hover:bg-gray-200 active:bg-gray-300 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-700 dark:active:bg-gray-600 inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200"},outline:{default:()=>"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-900 border border-gray-300 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-50 dark:border-gray-600 inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",small:()=>"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-900 border border-gray-300 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-50 dark:border-gray-600 inline-flex items-center justify-center rounded-md px-3 py-1.5 text-xs font-medium transition-colors duration-200 h-8",large:()=>"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-900 border border-gray-300 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-50 dark:border-gray-600 inline-flex items-center justify-center rounded-md px-6 py-3 text-base font-medium transition-colors duration-200 h-12",withIcon:()=>"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-900 border border-gray-300 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-50 dark:border-gray-600 inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200"},destructive:{default:()=>"bg-red-600 text-white hover:bg-red-700 active:bg-red-800 border-transparent focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-red-600 dark:hover:bg-red-700 dark:active:bg-red-800 dark:text-white inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",outline:()=>"bg-transparent hover:bg-red-50 active:bg-red-100 text-red-600 border border-red-300 focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:hover:bg-red-900/20 dark:text-red-400 dark:border-red-800 inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",small:()=>"bg-red-600 text-white hover:bg-red-700 active:bg-red-800 border-transparent focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-red-600 dark:hover:bg-red-700 dark:active:bg-red-800 dark:text-white inline-flex items-center justify-center rounded-md px-3 py-1.5 text-xs font-medium transition-colors duration-200 h-8"},ghost:{default:()=>"bg-transparent hover:bg-gray-100 active:bg-gray-200 text-gray-700 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-300 inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",small:()=>"bg-transparent hover:bg-gray-100 active:bg-gray-200 text-gray-700 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-300 inline-flex items-center justify-center rounded-md px-2 py-1 text-xs font-medium transition-colors duration-200 h-8",icon:()=>"bg-transparent hover:bg-gray-100 active:bg-gray-200 text-gray-700 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-300 inline-flex items-center justify-center rounded-md p-2 transition-colors duration-200 h-10 w-10"},link:{default:()=>"bg-transparent hover:bg-transparent active:bg-transparent text-blue-600 border-transparent underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed disabled:no-underline dark:text-blue-400 inline-flex items-center justify-center rounded-md px-0 py-0 text-sm font-medium transition-colors duration-200",muted:()=>"bg-transparent hover:bg-transparent active:bg-transparent text-gray-600 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 border-transparent underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed disabled:no-underline inline-flex items-center justify-center rounded-md px-0 py-0 text-sm font-medium transition-colors duration-200"},gradient:{primary:()=>"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white border-transparent shadow-lg hover:shadow-xl focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-all duration-200",secondary:()=>"bg-gradient-to-r from-gray-100 to-gray-200 hover:from-gray-200 hover:to-gray-300 text-gray-900 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-all duration-200",success:()=>"bg-gradient-to-r from-green-500 to-emerald-600 hover:from-green-600 hover:to-emerald-700 text-white border-transparent shadow-lg hover:shadow-xl focus-visible:ring-2 focus-visible:ring-green-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-all duration-200"},web3:{wallet:()=>"bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-900 dark:text-gray-100 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",connect:()=>"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white border-transparent shadow-lg hover:shadow-xl focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-all duration-200",disconnect:()=>"bg-transparent hover:bg-red-50 active:bg-red-100 text-red-600 border border-red-300 focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:hover:bg-red-900/20 dark:text-red-400 dark:border-red-800 inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200"}},badge:{default:()=>"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",primary:()=>"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",success:()=>"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",warning:()=>"bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",error:()=>"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",ethereum:()=>"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",solana:()=>"bg-purple-100 text-purple-800 dark:bg-purple-900/30 dark:text-purple-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",small:(e="default")=>{const r={default:"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300",primary:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",success:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",warning:"bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300",error:"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300"};return`${r[e]||r.default} inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium`},large:(e="default")=>{const r={default:"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300",primary:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",success:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",warning:"bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300",error:"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300"};return`${r[e]||r.default} inline-flex items-center px-3 py-1 rounded-full text-sm font-medium`}},input:{default:()=>"bg-gray-50 dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 block w-full rounded-md px-3 py-2 text-sm placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",search:()=>"bg-gray-50 dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 block w-full rounded-md px-3 py-2 text-sm placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",error:()=>"bg-gray-50 dark:bg-gray-800 border-red-300 dark:border-red-700 text-gray-900 dark:text-gray-100 focus:border-red-500 focus:ring-red-500 block w-full rounded-md px-3 py-2 text-sm placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",small:()=>"bg-gray-50 dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 block w-full rounded-md px-2 py-1.5 text-xs placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",large:()=>"bg-gray-50 dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 block w-full rounded-md px-4 py-3 text-base placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",withIcon:()=>"bg-gray-50 dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 block w-full rounded-md pl-10 pr-3 py-2 text-sm placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2"},alert:{info:()=>"bg-blue-50 border-blue-200 dark:bg-blue-900/20 dark:border-blue-800 text-blue-800 dark:text-blue-200 rounded-md border p-4 flex items-start gap-3",success:()=>"bg-green-50 border-green-200 dark:bg-green-900/20 dark:border-green-800 text-green-800 dark:text-green-200 rounded-md border p-4 flex items-start gap-3",warning:()=>"bg-amber-50 border-amber-200 dark:bg-amber-900/20 dark:border-amber-800 text-amber-800 dark:text-amber-200 rounded-md border p-4 flex items-start gap-3",attention:()=>"bg-amber-50 border-amber-200 dark:bg-amber-900/20 dark:border-amber-800 text-amber-800 dark:text-amber-200 rounded-md border p-4 flex items-start gap-3",error:()=>"bg-red-50 border-red-200 dark:bg-red-900/20 dark:border-red-800 text-red-800 dark:text-red-200 rounded-md border p-4 flex items-start gap-3",compact:{info:()=>"bg-blue-50 border-blue-200 dark:bg-blue-900/20 dark:border-blue-800 text-blue-800 dark:text-blue-200 rounded border px-3 py-2 text-sm",success:()=>"bg-green-50 border-green-200 dark:bg-green-900/20 dark:border-green-800 text-green-800 dark:text-green-200 rounded border px-3 py-2 text-sm",warning:()=>"bg-amber-50 border-amber-200 dark:bg-amber-900/20 dark:border-amber-800 text-amber-800 dark:text-amber-200 rounded border px-3 py-2 text-sm",attention:()=>"bg-amber-50 border-amber-200 dark:bg-amber-900/20 dark:border-amber-800 text-amber-800 dark:text-amber-200 rounded border px-3 py-2 text-sm",error:()=>"bg-red-50 border-red-200 dark:bg-red-900/20 dark:border-red-800 text-red-800 dark:text-red-200 rounded border px-3 py-2 text-sm"}},navigation:{tabs:{root:()=>"",list:()=>"inline-flex h-10 items-center justify-center rounded-md bg-gray-100 dark:bg-gray-800 p-1 text-gray-500 dark:text-gray-400",listUnderlined:()=>"flex border-b border-gray-200 dark:border-gray-700",listPills:()=>"flex space-x-1 bg-gray-100 dark:bg-gray-800 rounded-lg p-1",trigger:()=>"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-white transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white data-[state=active]:text-gray-950 data-[state=active]:shadow-sm dark:ring-offset-gray-950 dark:focus-visible:ring-blue-400 dark:data-[state=active]:bg-gray-950 dark:data-[state=active]:text-gray-50",triggerUnderlined:()=>"inline-flex items-center justify-center whitespace-nowrap px-4 py-2 text-sm font-medium text-gray-500 dark:text-gray-400 border-b-2 border-transparent hover:text-gray-700 dark:hover:text-gray-300 hover:border-gray-300 dark:hover:border-gray-600 focus:outline-none focus:text-blue-600 focus:border-blue-600 dark:focus:text-blue-400 dark:focus:border-blue-400 data-[state=active]:text-blue-600 data-[state=active]:border-blue-600 dark:data-[state=active]:text-blue-400 dark:data-[state=active]:border-blue-400 transition-colors",triggerPills:()=>"inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1.5 text-sm font-medium text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 hover:bg-white dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500 data-[state=active]:bg-white data-[state=active]:text-gray-900 data-[state=active]:shadow-sm dark:data-[state=active]:bg-gray-700 dark:data-[state=active]:text-gray-100 transition-all",content:()=>"mt-2 ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 dark:ring-offset-gray-950 dark:focus-visible:ring-blue-400"}},icon:{variant:{default:{xs:()=>"h-3 w-3 text-gray-500 dark:text-gray-400",sm:()=>"h-4 w-4 text-gray-500 dark:text-gray-400",md:()=>"h-5 w-5 text-gray-500 dark:text-gray-400",lg:()=>"h-6 w-6 text-gray-500 dark:text-gray-400",xl:()=>"h-8 w-8 text-gray-500 dark:text-gray-400"},success:{xs:()=>"h-3 w-3 text-green-600 dark:text-green-400",sm:()=>"h-4 w-4 text-green-600 dark:text-green-400",md:()=>"h-5 w-5 text-green-600 dark:text-green-400",lg:()=>"h-6 w-6 text-green-600 dark:text-green-400",xl:()=>"h-8 w-8 text-green-600 dark:text-green-400"},warning:{xs:()=>"h-3 w-3 text-amber-600 dark:text-amber-400",sm:()=>"h-4 w-4 text-amber-600 dark:text-amber-400",md:()=>"h-5 w-5 text-amber-600 dark:text-amber-400",lg:()=>"h-6 w-6 text-amber-600 dark:text-amber-400",xl:()=>"h-8 w-8 text-amber-600 dark:text-amber-400"},error:{xs:()=>"h-3 w-3 text-red-600 dark:text-red-400",sm:()=>"h-4 w-4 text-red-600 dark:text-red-400",md:()=>"h-5 w-5 text-red-600 dark:text-red-400",lg:()=>"h-6 w-6 text-red-600 dark:text-red-400",xl:()=>"h-8 w-8 text-red-600 dark:text-red-400"},muted:{xs:()=>"h-3 w-3 text-gray-400 dark:text-gray-500",sm:()=>"h-4 w-4 text-gray-400 dark:text-gray-500",md:()=>"h-5 w-5 text-gray-400 dark:text-gray-500",lg:()=>"h-6 w-6 text-gray-400 dark:text-gray-500",xl:()=>"h-8 w-8 text-gray-400 dark:text-gray-500"}}},overlays:{modal:{backdrop:()=>"fixed inset-0 z-40 bg-black/50 dark:bg-black/70 backdrop-blur-sm transition-all duration-300 ease-out",backdropEntering:()=>"opacity-0",backdropEntered:()=>"opacity-100",backdropExiting:()=>"opacity-0",container:()=>"fixed inset-0 z-50 flex items-center justify-center p-4 transition-all duration-300 ease-out",containerEntering:()=>"opacity-0 scale-95",containerEntered:()=>"opacity-100 scale-100",containerExiting:()=>"opacity-0 scale-95",content:()=>"relative w-full max-w-lg bg-white dark:bg-gray-900 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 max-h-[80vh] overflow-hidden",small:()=>"max-w-sm",medium:()=>"max-w-lg",large:()=>"max-w-2xl",extraLarge:()=>"max-w-4xl",fullWidth:()=>"max-w-[95vw]",header:()=>"flex items-center justify-between p-4 sm:p-6 border-b border-gray-200 dark:border-gray-700",title:()=>"text-lg font-semibold text-gray-900 dark:text-gray-100",closeButton:()=>"p-1 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors",body:()=>"p-4 sm:p-6 overflow-y-auto",footer:()=>"flex items-center justify-end space-x-3 p-4 sm:p-6 border-t border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800/50"},dropdown:{container:()=>"relative inline-block",trigger:()=>"inline-flex justify-center items-center bg-transparent border-0 text-gray-900 dark:text-gray-100 focus:outline-none transition-colors",triggerBordered:()=>"inline-flex justify-center items-center bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 hover:bg-gray-50 dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:ring-offset-gray-950 transition-colors",menu:()=>"absolute z-50 w-56 bg-white dark:bg-gray-800 rounded-md shadow-lg focus:outline-none transition-all duration-200",menuSmall:()=>"w-40",menuLarge:()=>"w-72",menuAuto:()=>"w-auto min-w-40",menuTop:()=>"bottom-full mb-1",menuBottom:()=>"top-full mt-1",menuLeft:()=>"right-0",menuRight:()=>"left-0",menuEntering:()=>"opacity-0 scale-95 transform origin-top",menuEntered:()=>"opacity-100 scale-100 transform origin-top",menuExiting:()=>"opacity-0 scale-95 transform origin-top",itemContainer:()=>"py-1 px-1",item:()=>"flex items-center w-full text-left px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-blue-50 dark:hover:bg-blue-900/20 hover:text-blue-700 dark:hover:text-blue-300 transition-all duration-200 cursor-pointer hover:shadow-sm rounded-sm",itemActive:()=>"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 shadow-sm",itemDisabled:()=>"text-gray-400 dark:text-gray-600 cursor-not-allowed hover:bg-transparent hover:text-gray-400 dark:hover:text-gray-600",divider:()=>"my-1 border-t border-gray-200 dark:border-gray-700",header:()=>"px-4 py-2 text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wide",itemIcon:()=>"mr-3 h-4 w-4 flex-shrink-0",itemIconRight:()=>"ml-auto h-4 w-4 flex-shrink-0"}}},vo={success:"bg-green-500",error:"bg-red-500",warning:"bg-orange-500",attention:"bg-amber-500",info:"bg-blue-500",neutral:"bg-gray-500"};function Le(e){return vo[e]}const wo={default:"bg-white dark:bg-gray-800",bordered:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700",elevated:"bg-white dark:bg-gray-800 shadow-md",info:"bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 text-blue-900 dark:text-blue-300",success:"bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 text-green-900 dark:text-green-300",warning:"bg-orange-50 dark:bg-orange-900/20 border border-orange-200 dark:border-orange-800 text-orange-900 dark:text-orange-300",attention:"bg-amber-50 dark:bg-amber-900/20 border border-amber-200 dark:border-amber-800 text-amber-900 dark:text-amber-300",error:"bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 text-red-900 dark:text-red-300"};function ko(e){return wo[e]}const xo={default:{container:"bg-gradient-to-r from-blue-600/10 to-purple-600/10 border border-blue-200 text-blue-600 backdrop-blur-sm",icon:"text-blue-600"},premium:{container:"bg-gradient-to-r from-blue-600/10 to-purple-600/10 border border-blue-200 text-blue-600 backdrop-blur-sm",icon:"text-blue-600"},primary:{container:"bg-gradient-to-r from-blue-600/10 to-purple-600/10 border border-blue-200 text-blue-600 backdrop-blur-sm",icon:"text-blue-600"},light:{container:"bg-white/20 border border-white/30 text-white backdrop-blur-sm",icon:"text-white"}};function No(e){return xo[e]}const Co={border:{default:"border-gray-200 dark:border-gray-700"}},So=({label:e,labelPosition:r="center",orientation:a="horizontal",spacing:n="md",thickness:o="thin",variant:s="light",className:l,lineClassName:i})=>{const d={horizontal:{none:"my-0",sm:"my-2",md:"my-4",lg:"my-6",xl:"my-8"},vertical:{none:"mx-0",sm:"mx-2",md:"mx-4",lg:"mx-6",xl:"mx-8"}},c={horizontal:{thin:"border-t",medium:"border-t-2",thick:"border-t-4"},vertical:{thin:"border-l",medium:"border-l-2",thick:"border-l-4"}},h={light:"border-gray-200 dark:border-gray-700",medium:"border-gray-300 dark:border-gray-600",dark:"border-gray-400 dark:border-gray-500"};if(a==="vertical")return t.jsx("div",{className:f("self-stretch",c.vertical[o],h[s],d.vertical[n],l),role:"separator","aria-orientation":"vertical"});if(!e)return t.jsx("hr",{className:f(c.horizontal[o],h[s],d.horizontal[n],i,l),role:"separator","aria-orientation":"horizontal"});const g={left:"justify-start",center:"justify-center",right:"justify-end"};return t.jsxs("div",{className:f("flex items-center",d.horizontal[n],g[r],l),role:"separator","aria-orientation":"horizontal",children:[r!=="left"&&t.jsx("div",{className:f("flex-1",c.horizontal[o],h[s],i)}),t.jsx("span",{className:f(U.body.sm(),"px-3 text-gray-500 dark:text-gray-400 whitespace-nowrap"),children:e}),r!=="right"&&t.jsx("div",{className:f("flex-1",c.horizontal[o],h[s],i)})]})},Eo=({orientation:e="horizontal",spacing:r="md",thickness:a="thin",className:n})=>{const o={horizontal:{none:"",sm:"my-1",md:"my-2",lg:"my-4"},vertical:{none:"",sm:"mx-1",md:"mx-2",lg:"mx-4"}},s={horizontal:{thin:"h-px",medium:"h-0.5",thick:"h-1"},vertical:{thin:"w-px",medium:"w-0.5",thick:"w-1"}},l=e==="horizontal";return t.jsx("div",{role:"separator","aria-orientation":e,className:f("bg-gray-200 dark:bg-gray-700",l?"w-full":"h-full",s[e][a],o[e][r],n)})},To=({children:e,variant:r="blue",position:a="left",width:n="thick",padding:o="md",className:s})=>{const l={blue:"border-blue-500 dark:border-blue-400",green:"border-green-500 dark:border-green-400",purple:"border-purple-500 dark:border-purple-400",indigo:"border-indigo-500 dark:border-indigo-400",emerald:"border-emerald-500 dark:border-emerald-400",orange:"border-orange-500 dark:border-orange-400",red:"border-red-500 dark:border-red-400",gray:"border-gray-400 dark:border-gray-500"},i={left:"border-l",right:"border-r",top:"border-t",bottom:"border-b"},d={thin:"2",medium:"3",thick:"4"},c={left:{sm:"pl-3",md:"pl-4",lg:"pl-6"},right:{sm:"pr-3",md:"pr-4",lg:"pr-6"},top:{sm:"pt-3",md:"pt-4",lg:"pt-6"},bottom:{sm:"pb-3",md:"pb-4",lg:"pb-6"}},h=`${i[a]}-${d[n]}`;return t.jsx("div",{className:f(h,l[r],c[a][o],s),children:e})},Ao=({children:e,title:r,position:a="bottom-right",collapsible:n=!0,defaultCollapsed:o=!1,closeable:s=!1,onClose:l,className:i})=>{const[d,c]=p.useState(o),h={"bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4","top-right":"top-4 right-4","top-left":"top-4 left-4"};return t.jsxs("div",{className:f("fixed z-50 w-80","bg-white dark:bg-gray-900","border border-gray-300 dark:border-gray-700","rounded-lg shadow-2xl",h[a],i),children:[(r||n||s)&&t.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-gray-200 dark:border-gray-700",children:[r&&t.jsx("h3",{className:"font-semibold text-gray-900 dark:text-white",children:r}),t.jsxs("div",{className:"flex items-center gap-2",children:[n&&t.jsx("button",{onClick:()=>c(!d),className:"p-1 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition-colors","aria-label":d?"Expand":"Collapse",children:t.jsx("svg",{className:f("w-4 h-4 text-gray-600 dark:text-gray-400 transition-transform",d&&"rotate-180"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})}),s&&t.jsx("button",{onClick:l,className:"p-1 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition-colors","aria-label":"Close",children:t.jsx("svg",{className:"w-4 h-4 text-gray-600 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})]}),!d&&t.jsx("div",{className:"p-4",children:e})]})},Io=({left:e,right:r,direction:a="horizontal",initialSplit:n=.5,split:o,onSplitChange:s,minLeftSize:l=100,minRightSize:i=100,dividerSize:d=8,resizable:c=!0,className:h})=>{const[g,y]=p.useState(n),[m,b]=p.useState(!1),v=p.useRef(null),w=o!==void 0?o:g,S=x=>{c&&(x.preventDefault(),b(!0))};p.useEffect(()=>{if(!m)return;const x=E=>{const A=v.current;if(!A)return;const C=A.getBoundingClientRect();let I;a==="horizontal"?I=(E.clientX-C.left)/C.width:I=(E.clientY-C.top)/C.height,I=Math.max(0,Math.min(1,I));const L=a==="horizontal"?C.width:C.height,O=typeof l=="string"?parseFloat(l)/100*L:l,M=typeof i=="string"?parseFloat(i)/100*L:i,D=O/L,B=1-M/L;I=Math.max(D,Math.min(B,I)),o!==void 0&&s?s(I):y(I)},N=()=>{b(!1)};return document.addEventListener("mousemove",x),document.addEventListener("mouseup",N),()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",N)}},[m,a,l,i,o,s]),p.useEffect(()=>(m?(document.body.style.userSelect="none",document.body.style.cursor=a==="horizontal"?"col-resize":"row-resize"):(document.body.style.userSelect="",document.body.style.cursor=""),()=>{document.body.style.userSelect="",document.body.style.cursor=""}),[m,a]);const k=a==="horizontal";return t.jsxs("div",{ref:v,className:f("w-full h-full flex",k?"flex-row":"flex-col",h),children:[t.jsx("div",{className:"overflow-auto",style:{[k?"width":"height"]:`${w*100}%`},children:e}),t.jsx("div",{onMouseDown:S,className:f("flex-shrink-0 group","bg-gray-300 dark:bg-gray-700",c&&"hover:bg-blue-500 dark:hover:bg-blue-400","transition-colors",m&&"bg-blue-500 dark:bg-blue-400",k?"cursor-col-resize":"cursor-row-resize",!c&&"cursor-default"),style:{[k?"width":"height"]:`${d}px`},children:c&&t.jsx("div",{className:f("flex items-center justify-center w-full h-full","text-gray-600 dark:text-gray-400","group-hover:text-white",m&&"text-white"),children:k?t.jsxs("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24",children:[t.jsx("circle",{cx:"10",cy:"6",r:"1.5"}),t.jsx("circle",{cx:"10",cy:"12",r:"1.5"}),t.jsx("circle",{cx:"10",cy:"18",r:"1.5"}),t.jsx("circle",{cx:"14",cy:"6",r:"1.5"}),t.jsx("circle",{cx:"14",cy:"12",r:"1.5"}),t.jsx("circle",{cx:"14",cy:"18",r:"1.5"})]}):t.jsxs("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24",children:[t.jsx("circle",{cx:"6",cy:"10",r:"1.5"}),t.jsx("circle",{cx:"12",cy:"10",r:"1.5"}),t.jsx("circle",{cx:"18",cy:"10",r:"1.5"}),t.jsx("circle",{cx:"6",cy:"14",r:"1.5"}),t.jsx("circle",{cx:"12",cy:"14",r:"1.5"}),t.jsx("circle",{cx:"18",cy:"14",r:"1.5"})]})})}),t.jsx("div",{className:"overflow-auto flex-1",style:{[k?"width":"height"]:`${(1-w)*100}%`},children:r})]})},Lo=({children:e,defaultWidth:r=300,defaultHeight:a=200,minWidth:n=100,minHeight:o=100,maxWidth:s,maxHeight:l,directions:i=["right","bottom","bottom-right"],onResize:d,onResizeEnd:c,showHandles:h=!0,className:g})=>{const[y,m]=p.useState(r),[b,v]=p.useState(a),[w,S]=p.useState(!1),[k,x]=p.useState(null),N=p.useRef(null),E=p.useRef({x:0,y:0,width:0,height:0}),A=L=>O=>{O.preventDefault(),O.stopPropagation(),S(!0),x(L),E.current={x:O.clientX,y:O.clientY,width:y,height:b}};p.useEffect(()=>{if(!w||!k)return;const L=M=>{const D=M.clientX-E.current.x,B=M.clientY-E.current.y;let j=E.current.width,F=E.current.height;k.includes("right")?j=E.current.width+D:k.includes("left")&&(j=E.current.width-D),k.includes("bottom")?F=E.current.height+B:k.includes("top")&&(F=E.current.height-B),j=Math.max(n,j),F=Math.max(o,F),s&&(j=Math.min(s,j)),l&&(F=Math.min(l,F)),m(j),v(F),d&&d(j,F)},O=()=>{S(!1),x(null),c&&c(y,b)};return document.addEventListener("mousemove",L),document.addEventListener("mouseup",O),()=>{document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",O)}},[w,k,y,b,n,o,s,l,d,c]);const C=p.useCallback(L=>({top:"ns-resize",right:"ew-resize",bottom:"ns-resize",left:"ew-resize","top-left":"nwse-resize","top-right":"nesw-resize","bottom-left":"nesw-resize","bottom-right":"nwse-resize"})[L],[]);p.useEffect(()=>(w?(document.body.style.userSelect="none",document.body.style.cursor=C(k)):(document.body.style.userSelect="",document.body.style.cursor=""),()=>{document.body.style.userSelect="",document.body.style.cursor=""}),[w,k,C]);const I=L=>{if(!i.includes(L))return null;const O={top:"top-0 left-0 right-0 h-1 cursor-ns-resize",right:"top-0 right-0 bottom-0 w-1 cursor-ew-resize",bottom:"bottom-0 left-0 right-0 h-1 cursor-ns-resize",left:"top-0 left-0 bottom-0 w-1 cursor-ew-resize","top-left":"top-0 left-0 w-3 h-3 cursor-nwse-resize","top-right":"top-0 right-0 w-3 h-3 cursor-nesw-resize","bottom-left":"bottom-0 left-0 w-3 h-3 cursor-nesw-resize","bottom-right":"bottom-0 right-0 w-3 h-3 cursor-nwse-resize"};return t.jsx("div",{className:f("absolute z-10",h&&"bg-blue-500 dark:bg-blue-400 opacity-0 hover:opacity-50",O[L]),onMouseDown:A(L)},L)};return t.jsxs("div",{ref:N,className:f("relative",g),style:{width:`${y}px`,height:`${b}px`},children:[e,["top","right","bottom","left","top-left","top-right","bottom-left","bottom-right"].map(I)]})},Mo=({className:e,children:r,disabled:a=!1,onClick:n})=>t.jsx("div",{className:f("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",a&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:a?void 0:n,role:"region","aria-label":"UresizableUpanels",children:r||"UresizableUpanels Component"}),Po=({children:e,maxHeight:r,hideScrollbar:a=!1,direction:n="vertical",className:o})=>{const s={vertical:"overflow-y-auto overflow-x-hidden",horizontal:"overflow-x-auto overflow-y-hidden",both:"overflow-auto"},l=a?"scrollbar-hide":f("scrollbar-thin","scrollbar-thumb-gray-300 dark:scrollbar-thumb-gray-600","scrollbar-track-gray-100 dark:scrollbar-track-gray-800","hover:scrollbar-thumb-gray-400 dark:hover:scrollbar-thumb-gray-500"),i=typeof r=="number"?`${r}px`:r;return t.jsx("div",{className:f("relative",s[n],l,o),style:i?{maxHeight:i}:void 0,children:e})},Oo=({children:e,columns:r=3,gap:a=16,breakpoints:n,className:o})=>{const[s,l]=p.useState(r),i=p.useRef(null);p.useEffect(()=>{if(!n)return;const h=()=>{const g=window.innerWidth,y=Object.keys(n).map(Number).sort((m,b)=>b-m);for(const m of y)if(g>=m){l(n[m]);return}l(r)};return h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[n,r]);const d=p.Children.toArray(e),c=Array.from({length:s},()=>[]);return d.forEach((h,g)=>{c[g%s].push(h)}),t.jsx("div",{ref:i,className:f("flex",o),style:{gap:`${a}px`},children:c.map((h,g)=>t.jsx("div",{className:"flex-1 flex flex-col",style:{gap:`${a}px`},children:h},g))})},me=({children:e,container:r})=>{const[a,n]=p.useState(!1);if(p.useEffect(()=>(n(!0),()=>n(!1)),[]),!a)return null;const o=r||document.body;return wr.createPortal(e,o)},ar=({isOpen:e,onClose:r,children:a,blur:n=!1,opacity:o="medium",zIndex:s=40,lockScroll:l=!0,className:i})=>{if(p.useEffect(()=>{if(l){if(e){const c=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",document.body.style.paddingRight=`${c}px`}else document.body.style.overflow="",document.body.style.paddingRight="";return()=>{document.body.style.overflow="",document.body.style.paddingRight=""}}},[e,l]),!e)return null;const d={light:"bg-black/20 dark:bg-black/30",medium:"bg-black/50 dark:bg-black/60",dark:"bg-black/75 dark:bg-black/85"};return t.jsx(me,{children:t.jsx("div",{className:f("fixed inset-0","transition-opacity duration-300",n&&"backdrop-blur-sm",d[o],i),style:{zIndex:s},onClick:r,"aria-hidden":"true",children:a&&t.jsx("div",{className:"relative h-full w-full",onClick:c=>c.stopPropagation(),children:a})})})},It=({children:e,as:r="p",size:a="base",weight:n="normal",color:o="default",align:s,transform:l="none",truncate:i=!1,lineClamp:d,className:c})=>{const h={xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl"},g={light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},y={default:"text-gray-900 dark:text-gray-100",muted:"text-gray-600 dark:text-gray-400",primary:"text-blue-600 dark:text-blue-400",success:"text-green-600 dark:text-green-400",warning:"text-yellow-600 dark:text-yellow-400",danger:"text-red-600 dark:text-red-400"},m=s?{left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"}[s]:"",b={none:"",uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize"},v=d?{display:"-webkit-box",WebkitLineClamp:d,WebkitBoxOrient:"vertical",overflow:"hidden"}:void 0;return t.jsx(r,{className:f(h[a],g[n],y[o],m,b[l],i&&"truncate",d&&"overflow-hidden",c),style:v,children:e})},Uo=({children:e,level:r=2,size:a,weight:n="bold",color:o="default",align:s,className:l})=>{const d=a||{1:"4xl",2:"3xl",3:"2xl",4:"xl",5:"lg",6:"base"}[r],c={"4xl":"text-4xl","3xl":"text-3xl","2xl":"text-2xl",xl:"text-xl",lg:"text-lg",base:"text-base"},h={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold"},g={default:"text-gray-900 dark:text-gray-100",muted:"text-gray-700 dark:text-gray-300",primary:"text-blue-600 dark:text-blue-400"},y=s?{left:"text-left",center:"text-center",right:"text-right"}[s]:"",m=`h${r}`;return p.createElement(m,{className:f(c[d],h[n],g[o],y,l)},e)},Do=Z.cva("",{variants:{variant:{hero:U.heading.display.hero(),display:U.heading.display.lg(),h1:U.heading.h1(),h2:U.heading.h2(),h3:U.heading.h3()},responsive:{true:"",false:""},align:{left:"text-left",center:"text-center",right:"text-right"},color:{default:"text-gray-900 dark:text-white",muted:"text-gray-600 dark:text-gray-400",vibrant:"text-white",brand:"bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent"}},defaultVariants:{variant:"h1",responsive:!0,align:"left",color:"default"}}),jo=({children:e,variant:r="h1",responsive:a=!0,align:n="left",color:o="default",className:s,as:l})=>{const i=l||(r==="hero"||r==="display"||r==="h1"?"h1":r==="h2"?"h2":"h3");return t.jsx(i,{className:f(Do({variant:r,responsive:a,align:n,color:o}),s),children:e})},_o=Z.cva("",{variants:{variant:{h2:U.heading.h2(),h3:U.heading.h3(),h4:U.heading.h4(),h5:U.heading.h5(),h6:U.heading.h6()},spacing:{none:"",sm:"mb-2",md:"mb-4",lg:"mb-6",xl:"mb-8"},align:{left:"text-left",center:"text-center",right:"text-right"}},defaultVariants:{variant:"h2",spacing:"md",align:"left"}}),zo=({children:e,variant:r="h2",spacing:a="md",align:n="left",className:o,as:s})=>{const l=s||r;return p.createElement(l,{className:f(_o({variant:r,spacing:a,align:n}),o)},e)},Bo=Z.cva("",{variants:{variant:{body:U.body.md(),lead:U.body.lg(),large:U.body.lg(),small:U.body.sm(),caption:U.body.xs()},color:{default:"text-gray-700 dark:text-gray-300",muted:"text-gray-500 dark:text-gray-500",primary:"text-gray-900 dark:text-white"},align:{left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"}},defaultVariants:{variant:"body",color:"default",align:"left"}}),Fo=({children:e,variant:r="body",color:a="default",align:n="left",className:o,as:s="p"})=>p.createElement(s,{className:f(Bo({variant:r,color:a,align:n}),o)},e),Wo=Z.cva(U.link.default(),{variants:{variant:{default:U.link.default(),subtle:U.link.subtle(),muted:U.link.muted(),button:"inline-flex items-center justify-center px-4 py-2 rounded-md bg-blue-600 text-white hover:bg-blue-700 transition-colors"},external:{true:"inline-flex items-center gap-1",false:""}},defaultVariants:{variant:"default",external:!1}}),$o=({children:e,href:r,variant:a="default",external:n=!1,className:o,target:s,rel:l})=>t.jsxs("a",{href:r,target:s||(n?"_blank":void 0),rel:l||(n?"noopener noreferrer":void 0),className:f(Wo({variant:a,external:n}),o),children:[e,n&&t.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]}),Vo=({children:e,size:r="md",variant:a="default",className:n})=>{const o={sm:"text-xs px-1 py-0.5",md:"text-sm px-1.5 py-0.5",lg:"text-base px-2 py-1"},s={default:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-gray-100",primary:"bg-blue-50 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300",success:"bg-green-50 dark:bg-green-900/30 text-green-700 dark:text-green-300",warning:"bg-yellow-50 dark:bg-yellow-900/30 text-yellow-700 dark:text-yellow-300",danger:"bg-red-50 dark:bg-red-900/30 text-red-700 dark:text-red-300"};return t.jsx("code",{className:f("inline-block font-mono font-medium rounded",o[r],s[a],n),children:e})},Ho=({children:e,variant:r="primary",size:a="md",inline:n=!1,align:o="left",className:s,wrap:l=!1})=>{const i={primary:"text-blue-600 dark:text-blue-400 bg-blue-50 dark:bg-blue-900/30",secondary:"text-purple-600 dark:text-purple-400 bg-purple-50 dark:bg-purple-900/30",success:"text-green-600 dark:text-green-400 bg-green-50 dark:bg-green-900/30",warning:"text-yellow-700 dark:text-yellow-400 bg-yellow-50 dark:bg-yellow-900/30",neutral:"text-gray-700 dark:text-gray-300 bg-gray-100 dark:bg-gray-800"},d={xs:{text:"text-xs",padding:n?"px-1.5 py-0.5":"px-2 py-1"},sm:{text:"text-sm",padding:n?"px-2 py-0.5":"px-3 py-1.5"},md:{text:"text-base",padding:n?"px-2.5 py-1":"px-4 py-2"},lg:{text:"text-lg",padding:n?"px-3 py-1":"px-4 py-2"}},c={left:"text-left",center:"text-center",right:"text-right"},h=d[a],g=n?"code":"div";return t.jsx(g,{className:f("font-mono rounded-lg",i[r],h.text,h.padding,!n&&c[o],n?"inline-block":"block",!l&&"overflow-x-auto whitespace-nowrap",l&&"break-all",s),children:e})},qo=({children:e,size:r="md",className:a})=>{const n={sm:"text-xs px-1.5 py-0.5",md:"text-sm px-2 py-1",lg:"text-base px-2.5 py-1.5"};return t.jsx("kbd",{className:f("inline-flex items-center justify-center","font-mono font-semibold","bg-gray-100 dark:bg-gray-800","text-gray-900 dark:text-gray-100","border border-gray-300 dark:border-gray-600","rounded shadow-sm",n[r],a),children:e})},Go=({children:e,cite:r,variant:a="default",size:n="md",className:o})=>{const s={sm:"text-sm p-3",md:"text-base p-4",lg:"text-lg p-6"},l={sm:"text-xs",md:"text-sm",lg:"text-base"},i={default:"border-l-4 border-gray-300 dark:border-gray-600 bg-gray-50 dark:bg-gray-800/50",bordered:"border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800",accent:"border-l-4 border-blue-500 dark:border-blue-400 bg-blue-50 dark:bg-blue-900/20"};return t.jsxs("blockquote",{className:f("rounded-r-lg",s[n],i[a],o),children:[t.jsx("p",{className:"text-gray-800 dark:text-gray-200 italic",children:e}),r&&t.jsxs("footer",{className:f("mt-2 text-gray-600 dark:text-gray-400",l[n]),children:["— ",t.jsx("cite",{className:"not-italic font-medium",children:r})]})]})},Yo=({children:e,variant:r="default",showIcon:a=!1,size:n="sm",className:o})=>{const s={sm:"text-sm",base:"text-base"},l={sm:"h-4 w-4",base:"h-5 w-5"},d={default:{text:"text-gray-600 dark:text-gray-400",icon:P.InformationCircleIcon},error:{text:"text-red-600 dark:text-red-400",icon:P.ExclamationCircleIcon},success:{text:"text-green-600 dark:text-green-400",icon:P.CheckCircleIcon},warning:{text:"text-yellow-600 dark:text-yellow-400",icon:P.ExclamationCircleIcon}}[r],c=d.icon;return t.jsxs("div",{className:f("flex items-start gap-1.5",o),children:[a&&t.jsx(c,{className:f(l[n],d.text,"flex-shrink-0 mt-0.5")}),t.jsx("p",{className:f(s[n],d.text),children:e})]})},Ko=({className:e,children:r,disabled:a=!1,onClick:n})=>t.jsx("div",{className:f("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",a&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:a?void 0:n,role:"region","aria-label":"UscreenUreaderUtext",children:r||"UscreenUreaderUtext Component"}),Zo=({children:e,maxLength:r=50,position:a="end",ellipsis:n="...",showTooltip:o=!0,className:s})=>{const l=e||"";if(l.length<=r)return t.jsx("span",{className:s,children:l});const d=(()=>{const c=n.length,h=r-c;switch(a){case"start":return n+l.slice(l.length-h);case"middle":{const g=Math.floor(h/2),y=l.slice(0,g),m=l.slice(l.length-(h-g));return y+n+m}case"end":default:return l.slice(0,h)+n}})();return t.jsx("span",{className:f("inline-block",s),title:o?l:void 0,children:d})},Xo=({value:e,style:r="decimal",currency:a="USD",unit:n,minimumFractionDigits:o,maximumFractionDigits:s,locale:l="en-US",notation:i="standard",className:d})=>{const c=()=>{try{const h={style:r,notation:i,minimumFractionDigits:o,maximumFractionDigits:s};return r==="currency"&&(h.currency=a),r==="unit"&&n&&(h.unit=n),new Intl.NumberFormat(l,h).format(e)}catch(h){return console.error("Number formatting error:",h),e.toLocaleString(l)}};return t.jsx("span",{className:f(d),children:c()})},Qo=({date:e,showTooltip:r=!0,updateInterval:a=0,className:n})=>{const[,o]=p.useState(0),s=p.useMemo(()=>e instanceof Date?e:new Date(e),[e]);p.useEffect(()=>{if(a===0)return;const c=setInterval(()=>{o(h=>h+1)},a*1e3);return()=>clearInterval(c)},[a]);const i=(()=>{const h=new Date().getTime()-s.getTime(),g=Math.floor(h/1e3),y=Math.floor(g/60),m=Math.floor(y/60),b=Math.floor(m/24),v=Math.floor(b/7),w=Math.floor(b/30),S=Math.floor(b/365);return g<60?"just now":y<60?`${y} ${y===1?"minute":"minutes"} ago`:m<24?`${m} ${m===1?"hour":"hours"} ago`:b<7?`${b} ${b===1?"day":"days"} ago`:v<4?`${v} ${v===1?"week":"weeks"} ago`:w<12?`${w} ${w===1?"month":"months"} ago`:`${S} ${S===1?"year":"years"} ago`})(),d=s.toLocaleString();return t.jsx("time",{dateTime:s.toISOString(),title:r?d:void 0,className:f(n),children:i})},Me=({size:e="default",variant:r="default",className:a,ariaLabel:n="Loading",loadingText:o="Loading..."})=>{const s=()=>{const l={small:"w-4 h-4",default:"w-6 h-6",large:"w-8 h-8",extraLarge:"w-16 h-16 border-4"},i={default:"border-gray-300 border-t-blue-600",white:"border-white/30 border-t-white",success:"border-gray-300 border-t-green-600",warning:"border-gray-300 border-t-orange-600",error:"border-gray-300 border-t-red-600"};return`animate-spin rounded-full border-2 ${l[e]} ${i[r]}`};return t.jsx("div",{className:f(s(),a),role:"status","aria-label":n,children:t.jsx("span",{className:"sr-only",children:o})})},Jo=({isLoading:e,message:r,mode:a="fullscreen",blur:n=!1,spinnerSize:o="large",className:s})=>e?t.jsxs("div",{className:f(a==="fullscreen"?"fixed":"absolute","inset-0 z-50","flex flex-col items-center justify-center","bg-white/80 dark:bg-gray-900/80",n&&"backdrop-blur-sm",s),role:"alert","aria-live":"polite","aria-busy":"true",children:[t.jsx(Me,{size:o}),r&&t.jsx("p",{className:f(U.body.md(),"text-gray-700 dark:text-gray-300 mt-4"),children:r})]}):null,Ro=({size:e="md",variant:r="primary",color:a,className:n})=>{const o={sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-3 h-3"},s={primary:"bg-blue-600 dark:bg-blue-500",secondary:"bg-gray-600 dark:bg-gray-400",white:"bg-white"},l=f("rounded-full",o[e],a?"":s[r]);return t.jsxs("div",{className:f("flex items-center gap-1",n),children:[t.jsx("div",{className:l,style:{backgroundColor:a,animation:"loading-dot-bounce 1.4s infinite ease-in-out both",animationDelay:"-0.32s"}}),t.jsx("div",{className:l,style:{backgroundColor:a,animation:"loading-dot-bounce 1.4s infinite ease-in-out both",animationDelay:"-0.16s"}}),t.jsx("div",{className:l,style:{backgroundColor:a,animation:"loading-dot-bounce 1.4s infinite ease-in-out both"}}),t.jsx("style",{children:`
1
+ (function(u,ze){typeof exports=="object"&&typeof module<"u"?ze(exports,require("clsx"),require("tailwind-merge"),require("react/jsx-runtime"),require("react"),require("class-variance-authority"),require("react-dom"),require("@heroicons/react/24/outline"),require("@heroicons/react/24/solid"),require("@radix-ui/react-switch"),require("@radix-ui/react-select"),require("@heroicons/react/20/solid"),require("@radix-ui/react-label"),require("@radix-ui/react-slot"),require("react-router-dom"),require("@radix-ui/react-tabs"),require("react-i18next"),require("react-helmet-async"),require("web-vitals")):typeof define=="function"&&define.amd?define(["exports","clsx","tailwind-merge","react/jsx-runtime","react","class-variance-authority","react-dom","@heroicons/react/24/outline","@heroicons/react/24/solid","@radix-ui/react-switch","@radix-ui/react-select","@heroicons/react/20/solid","@radix-ui/react-label","@radix-ui/react-slot","react-router-dom","@radix-ui/react-tabs","react-i18next","react-helmet-async","web-vitals"],ze):(u=typeof globalThis<"u"?globalThis:u||self,ze(u.MailBoxComponents={},u.clsx,u.tailwindMerge,u.ReactJSXRuntime,u.React,u.cva,u.ReactDOM,u.HeroiconsOutline,u.HeroiconsSolid,u.RadixSwitch,u.RadixSelect,u.HeroiconsSolid20,u.RadixLabel,u.RadixSlot,u.ReactRouterDOM,u.RadixTabs,u.ReactI18next,u.ReactHelmetAsync,u.WebVitals))})(this,(function(u,ze,to,t,p,Z,wr,P,fe,kr,ao,Be,St,no,X,be,tr,Et,Fe){"use strict";function Tt(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const G=Tt(p),V=Tt(ao);function f(...e){return to.twMerge(ze.clsx(e))}const At=({children:e,as:r="div",p:a,px:n,py:o,m:s,mx:l,my:i,bg:d,border:c=!1,rounded:h,shadow:g,w:y,h:m,className:b})=>{const v={none:"0",xs:"1",sm:"2",md:"4",lg:"6",xl:"8","2xl":"12",auto:"auto"},w=d?{transparent:"bg-transparent",white:"bg-white dark:bg-gray-900",gray:"bg-gray-100 dark:bg-gray-800",primary:"bg-blue-50 dark:bg-blue-900/20",success:"bg-green-50 dark:bg-green-900/20",warning:"bg-yellow-50 dark:bg-yellow-900/20",danger:"bg-red-50 dark:bg-red-900/20"}[d]:"",S=h?{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"}[h]:"",k=g?{none:"shadow-none",sm:"shadow-sm",md:"shadow-md",lg:"shadow-lg",xl:"shadow-xl"}[g]:"",x=y?{auto:"w-auto",full:"w-full",screen:"w-screen",min:"w-min",max:"w-max"}[y]:"",N=m?{auto:"h-auto",full:"h-full",screen:"h-screen",min:"h-min",max:"h-max"}[m]:"",E=[];a&&E.push("p-"+v[a]),n&&E.push("px-"+v[n]),o&&E.push("py-"+v[o]);const A=[];return s&&A.push("m-"+v[s]),l&&A.push("mx-"+v[l]),i&&A.push("my-"+v[i]),t.jsx(r,{className:f(...E,...A,w,c&&"border border-gray-200 dark:border-gray-700",S,k,x,N,b),children:e})},oo=({direction:e="row",align:r,justify:a,wrap:n="nowrap",gap:o,inline:s=!1,className:l,...i})=>{const d={row:"flex-row","row-reverse":"flex-row-reverse",col:"flex-col","col-reverse":"flex-col-reverse"},c=r?{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"}[r]:"",h=a?{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}[a]:"",g={nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"},y=o?{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"}[o]:"";return t.jsx(At,{...i,className:f(s?"inline-flex":"flex",d[e],c,h,g[n],y,l)})},so=({children:e,size:r="xl",center:a=!0,padding:n="md",className:o})=>{const s={sm:"max-w-screen-sm",md:"max-w-screen-md",lg:"max-w-screen-lg",xl:"max-w-screen-xl","2xl":"max-w-screen-2xl",full:"max-w-full"},l={none:"",sm:"px-4 py-2",md:"px-6 py-4",lg:"px-8 py-6"};return t.jsx("div",{className:f("w-full",s[r],a&&"mx-auto",l[n],o),children:e})},lo=({children:e,cols:r=1,gap:a="md",autoFit:n,autoFill:o,alignItems:s="stretch",justifyItems:l="stretch",className:i})=>{const d={none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},c={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},h={start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"},g=()=>{if(n||o)return"";if(typeof r=="number")return{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"}[r]||"grid-cols-1";const m=[];return r.sm&&m.push("grid-cols-"+r.sm),r.md&&m.push("md:grid-cols-"+r.md),r.lg&&m.push("lg:grid-cols-"+r.lg),r.xl&&m.push("xl:grid-cols-"+r.xl),m.join(" ")};let y;return n?y="repeat(auto-fit, minmax("+n+", 1fr))":o&&(y="repeat(auto-fill, minmax("+o+", 1fr))"),t.jsx("div",{className:f("grid",g(),d[a],c[s],h[l],i),style:y?{gridTemplateColumns:y}:void 0,children:e})},xr=({children:e,direction:r="vertical",spacing:a="md",align:n="stretch",justify:o="start",wrap:s=!1,full:l=!1,divider:i=!1,className:d})=>{const c=r==="vertical",h={vertical:{none:"",xs:"space-y-1",sm:"space-y-2",md:"space-y-4",lg:"space-y-6",xl:"space-y-8","2xl":"space-y-12"},horizontal:{none:"",xs:"space-x-1",sm:"space-x-2",md:"space-x-4",lg:"space-x-6",xl:"space-x-8","2xl":"space-x-12"}},g={vertical:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},horizontal:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"}},y={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},m={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"};return t.jsx("div",{className:f("flex",c?"flex-col":"flex-row",i?g[r][a]:h[r][a],y[n],m[o],s&&"flex-wrap",l&&(c?"h-full":"w-full"),d),children:i?p.Children.map(e,(b,v)=>t.jsxs(p.Fragment,{children:[b,v<p.Children.count(e)-1&&t.jsx("div",{className:f("bg-gray-200 dark:bg-gray-700",c?"h-px w-full":"w-px h-full")})]},v)):e})},io=e=>t.jsx(xr,{direction:"vertical",...e}),co=e=>t.jsx(xr,{direction:"horizontal",...e}),uo=({children:e,axis:r="both",inline:a=!1,className:n})=>{const o=()=>{switch(r){case"horizontal":return"justify-center";case"vertical":return"items-center";case"both":default:return"justify-center items-center"}};return t.jsx("div",{className:f(a?"inline-flex":"flex",o(),n),children:e})},go=({size:e="md",axis:r="vertical",flex:a=!1,className:n})=>{const o={vertical:{xs:"h-1",sm:"h-2",md:"h-4",lg:"h-6",xl:"h-8","2xl":"h-12"},horizontal:{xs:"w-1",sm:"w-2",md:"w-4",lg:"w-6",xl:"w-8","2xl":"w-12"}},s=typeof e=="number"?r==="vertical"?{height:`${e}px`}:{width:`${e}px`}:void 0,l=typeof e=="string"?o[r][e]:"";return t.jsx("div",{className:f(a&&"flex-1",!a&&l,n),style:s,"aria-hidden":"true"})},ho=Z.cva("",{variants:{variant:{default:"",hero:"relative overflow-hidden",feature:"bg-white dark:bg-gray-800",cta:"relative overflow-hidden",testimonial:"bg-gray-50 dark:bg-gray-900",footer:"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700 border-t"},spacing:{none:"",xs:"py-2",sm:"py-3",md:"py-4",lg:"py-6",xl:"py-8","2xl":"py-12","3xl":"py-16","4xl":"py-20","5xl":"py-24"},background:{none:"bg-transparent",default:"bg-gray-50 dark:bg-gray-900",surface:"bg-white dark:bg-gray-800",gradient:"bg-gradient-to-br from-gray-50 via-blue-50 to-purple-50 dark:from-gray-900 dark:via-blue-900/50 dark:to-purple-900/50","gradient-primary":"bg-gradient-to-br from-blue-50 to-indigo-100 dark:from-blue-900/50 dark:to-indigo-900/50","gradient-secondary":"bg-gradient-to-br from-green-50 to-blue-100 dark:from-green-900/50 dark:to-blue-900/50","gradient-tertiary":"bg-gradient-to-r from-emerald-50 to-teal-50 dark:from-gray-800 dark:to-gray-900","gradient-vibrant":"bg-gradient-to-br from-blue-800 to-purple-800 dark:from-blue-900 dark:to-purple-900"}},defaultVariants:{variant:"default",spacing:"3xl",background:"none"}}),fo={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl",full:"max-w-full"},bo=({children:e,variant:r="default",spacing:a="3xl",background:n="none",maxWidth:o="7xl",className:s,containerClassName:l,as:i="section",id:d,fullWidth:c=!1})=>{const h=c?e:t.jsx("div",{className:f(fo[o],"mx-auto px-4 sm:px-6 lg:px-8",l),children:e});return p.createElement(i,{id:d,className:f(ho({variant:r,spacing:a,background:n}),s)},h)},mo=Z.cva("min-h-screen flex flex-col",{variants:{background:{default:"bg-gray-50 dark:bg-gray-900",surface:"bg-white dark:bg-gray-800",transparent:"bg-transparent",gradient:"bg-gradient-to-br from-gray-50 via-blue-50 to-purple-50 dark:from-gray-900 dark:via-blue-900/20 dark:to-purple-900/20"},overflow:{visible:"overflow-visible",hidden:"overflow-hidden",scroll:"overflow-auto"}},defaultVariants:{background:"default",overflow:"visible"}}),yo=({children:e,background:r="default",overflow:a="visible",className:n})=>t.jsx("div",{className:f(mo({background:r,overflow:a}),n),children:e}),po=({children:e,ratio:r="16/9",className:a})=>{const s=`${1/(typeof r=="string"?{"16/9":1.7777777777777777,"4/3":1.3333333333333333,"1/1":1,"21/9":2.3333333333333335,"3/2":1.5}[r]:r)*100}%`;return t.jsx("div",{className:f("relative w-full",a),style:{paddingBottom:s},children:t.jsx("div",{className:"absolute inset-0",children:e})})},T={typography:{family:{sans:"font-sans",display:"font-sans",body:"font-sans"},semantic:{caption:"text-xs",small:"text-sm",body:"text-base",bodyLarge:"text-lg",h6:"text-base",h5:"text-lg",h4:"text-xl",h3:"text-2xl",h2:"text-3xl",h1:"text-4xl",hero:"text-8xl"},weight:{semibold:"font-semibold",bold:"font-bold",body:"font-normal",emphasis:"font-medium",strong:"font-semibold",heading:"font-bold",display:"font-extrabold"},decoration:{none:"no-underline",underline:"underline"},underlineOffset:{medium:"underline-offset-2"},leading:{tight:"leading-tight",heading:"leading-tight",body:"leading-relaxed",caption:"leading-normal",display:"leading-none"},tracking:{heading:"tracking-tight",body:"tracking-normal",caption:"tracking-normal",uppercase:"tracking-wider"},transform:{uppercase:"uppercase"}}},U={heading:{display:{hero:()=>`${T.typography.family.display} ${T.typography.semantic.hero} ${T.typography.weight.display} ${T.typography.leading.display} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,xl:()=>`${T.typography.family.display} text-7xl ${T.typography.weight.display} ${T.typography.leading.display} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,lg:()=>`${T.typography.family.display} text-6xl ${T.typography.weight.bold} ${T.typography.leading.display} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,md:()=>`${T.typography.family.display} text-5xl ${T.typography.weight.bold} ${T.typography.leading.tight} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,sm:()=>`${T.typography.family.display} text-4xl ${T.typography.weight.bold} ${T.typography.leading.tight} ${T.typography.tracking.heading} text-gray-900 dark:text-white`},h1:()=>`${T.typography.family.sans} ${T.typography.semantic.h1} ${T.typography.weight.heading} ${T.typography.leading.heading} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,h2:()=>`${T.typography.family.sans} ${T.typography.semantic.h2} ${T.typography.weight.heading} ${T.typography.leading.heading} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,h3:()=>`${T.typography.family.sans} ${T.typography.semantic.h3} ${T.typography.weight.heading} ${T.typography.leading.heading} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,h4:()=>`${T.typography.family.sans} ${T.typography.semantic.h4} ${T.typography.weight.semibold} ${T.typography.leading.heading} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,h5:()=>`${T.typography.family.sans} ${T.typography.semantic.h5} ${T.typography.weight.semibold} ${T.typography.leading.heading} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,h6:()=>`${T.typography.family.sans} ${T.typography.semantic.h6} ${T.typography.weight.semibold} ${T.typography.leading.heading} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,responsive:{h1:()=>`${T.typography.family.sans} text-2xl sm:text-3xl md:text-4xl lg:text-5xl ${T.typography.weight.heading} ${T.typography.leading.heading} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,h2:()=>`${T.typography.family.sans} text-xl sm:text-2xl md:text-3xl lg:text-4xl ${T.typography.weight.heading} ${T.typography.leading.heading} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,h3:()=>`${T.typography.family.sans} text-lg sm:text-xl md:text-2xl lg:text-3xl ${T.typography.weight.semibold} ${T.typography.leading.heading} ${T.typography.tracking.heading} text-gray-900 dark:text-white`,display:()=>`${T.typography.family.display} text-4xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl ${T.typography.weight.display} ${T.typography.leading.display} ${T.typography.tracking.heading} text-gray-900 dark:text-white`}},body:{xl:()=>`${T.typography.family.body} ${T.typography.semantic.bodyLarge} ${T.typography.weight.body} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-700 dark:text-gray-300`,lg:()=>`${T.typography.family.body} ${T.typography.semantic.body} ${T.typography.weight.body} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-700 dark:text-gray-300`,md:()=>`${T.typography.family.body} ${T.typography.semantic.body} ${T.typography.weight.body} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-700 dark:text-gray-300`,sm:()=>`${T.typography.family.body} ${T.typography.semantic.small} ${T.typography.weight.body} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-600 dark:text-gray-400`,xs:()=>`${T.typography.family.body} ${T.typography.semantic.caption} ${T.typography.weight.body} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-600 dark:text-gray-400`,strong:{xl:()=>`${T.typography.family.body} ${T.typography.semantic.bodyLarge} ${T.typography.weight.strong} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-900 dark:text-white`,lg:()=>`${T.typography.family.body} ${T.typography.semantic.body} ${T.typography.weight.strong} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-900 dark:text-white`,md:()=>`${T.typography.family.body} ${T.typography.semantic.body} ${T.typography.weight.strong} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-900 dark:text-white`,sm:()=>`${T.typography.family.body} ${T.typography.semantic.small} ${T.typography.weight.strong} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-900 dark:text-white`},emphasis:{xl:()=>`${T.typography.family.body} ${T.typography.semantic.bodyLarge} ${T.typography.weight.emphasis} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-900 dark:text-white`,lg:()=>`${T.typography.family.body} ${T.typography.semantic.body} ${T.typography.weight.emphasis} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-900 dark:text-white`,md:()=>`${T.typography.family.body} ${T.typography.semantic.body} ${T.typography.weight.emphasis} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-900 dark:text-white`,sm:()=>`${T.typography.family.body} ${T.typography.semantic.small} ${T.typography.weight.emphasis} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-900 dark:text-white`},muted:{xl:()=>`${T.typography.family.body} ${T.typography.semantic.bodyLarge} ${T.typography.weight.body} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-600 dark:text-gray-400`,lg:()=>`${T.typography.family.body} ${T.typography.semantic.body} ${T.typography.weight.body} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-600 dark:text-gray-400`,md:()=>`${T.typography.family.body} ${T.typography.semantic.body} ${T.typography.weight.body} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-600 dark:text-gray-400`,sm:()=>`${T.typography.family.body} ${T.typography.semantic.small} ${T.typography.weight.body} ${T.typography.leading.body} ${T.typography.tracking.body} text-gray-600 dark:text-gray-400`}},caption:{default:()=>`${T.typography.family.body} ${T.typography.semantic.caption} ${T.typography.weight.body} ${T.typography.leading.caption} ${T.typography.tracking.caption} text-gray-500 dark:text-gray-500`,emphasis:()=>`${T.typography.family.body} ${T.typography.semantic.caption} ${T.typography.weight.emphasis} ${T.typography.leading.caption} ${T.typography.tracking.caption} text-gray-600 dark:text-gray-400`,uppercase:()=>`${T.typography.family.body} ${T.typography.semantic.caption} ${T.typography.weight.emphasis} ${T.typography.leading.caption} ${T.typography.tracking.uppercase} ${T.typography.transform.uppercase} text-gray-500 dark:text-gray-500`},link:{default:()=>`${T.typography.decoration.underline} ${T.typography.underlineOffset.medium} text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 transition-colors duration-150`,subtle:()=>`${T.typography.decoration.none} text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 hover:${T.typography.decoration.underline} hover:${T.typography.underlineOffset.medium} transition-all duration-150`,muted:()=>`${T.typography.decoration.underline} ${T.typography.underlineOffset.medium} text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 transition-colors duration-150`,external:()=>`${T.typography.decoration.underline} ${T.typography.underlineOffset.medium} text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 transition-colors duration-150 inline-flex items-center gap-1`},label:{default:()=>`${T.typography.family.body} text-sm ${T.typography.weight.emphasis} text-gray-900 dark:text-white`,required:()=>`${T.typography.family.body} text-sm ${T.typography.weight.emphasis} text-gray-900 dark:text-white after:content-['*'] after:ml-0.5 after:text-red-500`,optional:()=>`${T.typography.family.body} text-sm ${T.typography.weight.body} text-gray-600 dark:text-gray-400`,helper:()=>`${T.typography.family.body} text-sm ${T.typography.weight.body} text-gray-500 dark:text-gray-500`,error:()=>`${T.typography.family.body} text-sm ${T.typography.weight.body} text-red-600 dark:text-red-400`,success:()=>`${T.typography.family.body} text-sm ${T.typography.weight.body} text-green-600 dark:text-green-400`}},_={button:{primary:{default:()=>"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 border-transparent focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white dark:focus-visible:ring-blue-400 inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",small:()=>"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 border border-transparent focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white dark:focus-visible:ring-blue-400 inline-flex items-center justify-center rounded-md px-3 py-1.5 text-xs font-medium transition-colors duration-200 h-8",large:()=>"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 border-transparent focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white dark:focus-visible:ring-blue-400 inline-flex items-center justify-center rounded-md px-6 py-3 text-base font-medium transition-colors duration-200 h-12",withIcon:()=>"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 border-transparent focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white dark:focus-visible:ring-blue-400 inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",fullWidth:()=>"bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800 border-transparent focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-blue-600 dark:hover:bg-blue-700 dark:active:bg-blue-800 dark:text-white dark:focus-visible:ring-blue-400 flex items-center justify-center w-full rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200"},secondary:{default:()=>"bg-gray-100 text-gray-900 hover:bg-gray-200 active:bg-gray-300 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-700 dark:active:bg-gray-600 inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",small:()=>"bg-gray-100 text-gray-900 hover:bg-gray-200 active:bg-gray-300 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-700 dark:active:bg-gray-600 inline-flex items-center justify-center rounded-md px-3 py-1.5 text-xs font-medium transition-colors duration-200 h-8",large:()=>"bg-gray-100 text-gray-900 hover:bg-gray-200 active:bg-gray-300 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-700 dark:active:bg-gray-600 inline-flex items-center justify-center rounded-md px-6 py-3 text-base font-medium transition-colors duration-200 h-12",withIcon:()=>"bg-gray-100 text-gray-900 hover:bg-gray-200 active:bg-gray-300 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-gray-800 dark:text-gray-50 dark:hover:bg-gray-700 dark:active:bg-gray-600 inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200"},outline:{default:()=>"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-900 border border-gray-300 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-50 dark:border-gray-600 inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",small:()=>"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-900 border border-gray-300 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-50 dark:border-gray-600 inline-flex items-center justify-center rounded-md px-3 py-1.5 text-xs font-medium transition-colors duration-200 h-8",large:()=>"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-900 border border-gray-300 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-50 dark:border-gray-600 inline-flex items-center justify-center rounded-md px-6 py-3 text-base font-medium transition-colors duration-200 h-12",withIcon:()=>"bg-transparent hover:bg-gray-50 active:bg-gray-100 text-gray-900 border border-gray-300 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-50 dark:border-gray-600 inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200"},destructive:{default:()=>"bg-red-600 text-white hover:bg-red-700 active:bg-red-800 border-transparent focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-red-600 dark:hover:bg-red-700 dark:active:bg-red-800 dark:text-white inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",outline:()=>"bg-transparent hover:bg-red-50 active:bg-red-100 text-red-600 border border-red-300 focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:hover:bg-red-900/20 dark:text-red-400 dark:border-red-800 inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",small:()=>"bg-red-600 text-white hover:bg-red-700 active:bg-red-800 border-transparent focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-red-600 dark:hover:bg-red-700 dark:active:bg-red-800 dark:text-white inline-flex items-center justify-center rounded-md px-3 py-1.5 text-xs font-medium transition-colors duration-200 h-8"},ghost:{default:()=>"bg-transparent hover:bg-gray-100 active:bg-gray-200 text-gray-700 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-300 inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",small:()=>"bg-transparent hover:bg-gray-100 active:bg-gray-200 text-gray-700 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-300 inline-flex items-center justify-center rounded-md px-2 py-1 text-xs font-medium transition-colors duration-200 h-8",icon:()=>"bg-transparent hover:bg-gray-100 active:bg-gray-200 text-gray-700 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-transparent dark:hover:bg-gray-800 dark:active:bg-gray-700 dark:text-gray-300 inline-flex items-center justify-center rounded-md p-2 transition-colors duration-200 h-10 w-10"},link:{default:()=>"bg-transparent hover:bg-transparent active:bg-transparent text-blue-600 border-transparent underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed disabled:no-underline dark:text-blue-400 inline-flex items-center justify-center rounded-md px-0 py-0 text-sm font-medium transition-colors duration-200",muted:()=>"bg-transparent hover:bg-transparent active:bg-transparent text-gray-600 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 border-transparent underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed disabled:no-underline inline-flex items-center justify-center rounded-md px-0 py-0 text-sm font-medium transition-colors duration-200"},gradient:{primary:()=>"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white border-transparent shadow-lg hover:shadow-xl focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-all duration-200",secondary:()=>"bg-gradient-to-r from-gray-100 to-gray-200 hover:from-gray-200 hover:to-gray-300 text-gray-900 border-transparent focus-visible:ring-2 focus-visible:ring-gray-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-all duration-200",success:()=>"bg-gradient-to-r from-green-500 to-emerald-600 hover:from-green-600 hover:to-emerald-700 text-white border-transparent shadow-lg hover:shadow-xl focus-visible:ring-2 focus-visible:ring-green-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-all duration-200"},web3:{wallet:()=>"bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-900 dark:text-gray-100 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200",connect:()=>"bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white border-transparent shadow-lg hover:shadow-xl focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-all duration-200",disconnect:()=>"bg-transparent hover:bg-red-50 active:bg-red-100 text-red-600 border border-red-300 focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed dark:hover:bg-red-900/20 dark:text-red-400 dark:border-red-800 inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium transition-colors duration-200"}},badge:{default:()=>"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",primary:()=>"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",success:()=>"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",warning:()=>"bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",error:()=>"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",ethereum:()=>"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",solana:()=>"bg-purple-100 text-purple-800 dark:bg-purple-900/30 dark:text-purple-300 inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",small:(e="default")=>{const r={default:"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300",primary:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",success:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",warning:"bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300",error:"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300"};return`${r[e]||r.default} inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium`},large:(e="default")=>{const r={default:"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300",primary:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",success:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",warning:"bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300",error:"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300"};return`${r[e]||r.default} inline-flex items-center px-3 py-1 rounded-full text-sm font-medium`}},input:{default:()=>"bg-gray-50 dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 block w-full rounded-md px-3 py-2 text-sm placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",search:()=>"bg-gray-50 dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 block w-full rounded-md px-3 py-2 text-sm placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",error:()=>"bg-gray-50 dark:bg-gray-800 border-red-300 dark:border-red-700 text-gray-900 dark:text-gray-100 focus:border-red-500 focus:ring-red-500 block w-full rounded-md px-3 py-2 text-sm placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",small:()=>"bg-gray-50 dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 block w-full rounded-md px-2 py-1.5 text-xs placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",large:()=>"bg-gray-50 dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 block w-full rounded-md px-4 py-3 text-base placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2",withIcon:()=>"bg-gray-50 dark:bg-gray-800 border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 focus:border-blue-500 focus:ring-blue-500 dark:focus:border-blue-400 dark:focus:ring-blue-400 block w-full rounded-md pl-10 pr-3 py-2 text-sm placeholder:text-gray-500 dark:placeholder:text-gray-400 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2"},alert:{info:()=>"bg-blue-50 border-blue-200 dark:bg-blue-900/20 dark:border-blue-800 text-blue-800 dark:text-blue-200 rounded-md border p-4 flex items-start gap-3",success:()=>"bg-green-50 border-green-200 dark:bg-green-900/20 dark:border-green-800 text-green-800 dark:text-green-200 rounded-md border p-4 flex items-start gap-3",warning:()=>"bg-amber-50 border-amber-200 dark:bg-amber-900/20 dark:border-amber-800 text-amber-800 dark:text-amber-200 rounded-md border p-4 flex items-start gap-3",attention:()=>"bg-amber-50 border-amber-200 dark:bg-amber-900/20 dark:border-amber-800 text-amber-800 dark:text-amber-200 rounded-md border p-4 flex items-start gap-3",error:()=>"bg-red-50 border-red-200 dark:bg-red-900/20 dark:border-red-800 text-red-800 dark:text-red-200 rounded-md border p-4 flex items-start gap-3",compact:{info:()=>"bg-blue-50 border-blue-200 dark:bg-blue-900/20 dark:border-blue-800 text-blue-800 dark:text-blue-200 rounded border px-3 py-2 text-sm",success:()=>"bg-green-50 border-green-200 dark:bg-green-900/20 dark:border-green-800 text-green-800 dark:text-green-200 rounded border px-3 py-2 text-sm",warning:()=>"bg-amber-50 border-amber-200 dark:bg-amber-900/20 dark:border-amber-800 text-amber-800 dark:text-amber-200 rounded border px-3 py-2 text-sm",attention:()=>"bg-amber-50 border-amber-200 dark:bg-amber-900/20 dark:border-amber-800 text-amber-800 dark:text-amber-200 rounded border px-3 py-2 text-sm",error:()=>"bg-red-50 border-red-200 dark:bg-red-900/20 dark:border-red-800 text-red-800 dark:text-red-200 rounded border px-3 py-2 text-sm"}},navigation:{tabs:{root:()=>"",list:()=>"inline-flex h-10 items-center justify-center rounded-md bg-gray-100 dark:bg-gray-800 p-1 text-gray-500 dark:text-gray-400",listUnderlined:()=>"flex border-b border-gray-200 dark:border-gray-700",listPills:()=>"flex space-x-1 bg-gray-100 dark:bg-gray-800 rounded-lg p-1",trigger:()=>"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-white transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-white data-[state=active]:text-gray-950 data-[state=active]:shadow-sm dark:ring-offset-gray-950 dark:focus-visible:ring-blue-400 dark:data-[state=active]:bg-gray-950 dark:data-[state=active]:text-gray-50",triggerUnderlined:()=>"inline-flex items-center justify-center whitespace-nowrap px-4 py-2 text-sm font-medium text-gray-500 dark:text-gray-400 border-b-2 border-transparent hover:text-gray-700 dark:hover:text-gray-300 hover:border-gray-300 dark:hover:border-gray-600 focus:outline-none focus:text-blue-600 focus:border-blue-600 dark:focus:text-blue-400 dark:focus:border-blue-400 data-[state=active]:text-blue-600 data-[state=active]:border-blue-600 dark:data-[state=active]:text-blue-400 dark:data-[state=active]:border-blue-400 transition-colors",triggerPills:()=>"inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1.5 text-sm font-medium text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 hover:bg-white dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500 data-[state=active]:bg-white data-[state=active]:text-gray-900 data-[state=active]:shadow-sm dark:data-[state=active]:bg-gray-700 dark:data-[state=active]:text-gray-100 transition-all",content:()=>"mt-2 ring-offset-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 dark:ring-offset-gray-950 dark:focus-visible:ring-blue-400"}},icon:{variant:{default:{xs:()=>"h-3 w-3 text-gray-500 dark:text-gray-400",sm:()=>"h-4 w-4 text-gray-500 dark:text-gray-400",md:()=>"h-5 w-5 text-gray-500 dark:text-gray-400",lg:()=>"h-6 w-6 text-gray-500 dark:text-gray-400",xl:()=>"h-8 w-8 text-gray-500 dark:text-gray-400"},success:{xs:()=>"h-3 w-3 text-green-600 dark:text-green-400",sm:()=>"h-4 w-4 text-green-600 dark:text-green-400",md:()=>"h-5 w-5 text-green-600 dark:text-green-400",lg:()=>"h-6 w-6 text-green-600 dark:text-green-400",xl:()=>"h-8 w-8 text-green-600 dark:text-green-400"},warning:{xs:()=>"h-3 w-3 text-amber-600 dark:text-amber-400",sm:()=>"h-4 w-4 text-amber-600 dark:text-amber-400",md:()=>"h-5 w-5 text-amber-600 dark:text-amber-400",lg:()=>"h-6 w-6 text-amber-600 dark:text-amber-400",xl:()=>"h-8 w-8 text-amber-600 dark:text-amber-400"},error:{xs:()=>"h-3 w-3 text-red-600 dark:text-red-400",sm:()=>"h-4 w-4 text-red-600 dark:text-red-400",md:()=>"h-5 w-5 text-red-600 dark:text-red-400",lg:()=>"h-6 w-6 text-red-600 dark:text-red-400",xl:()=>"h-8 w-8 text-red-600 dark:text-red-400"},muted:{xs:()=>"h-3 w-3 text-gray-400 dark:text-gray-500",sm:()=>"h-4 w-4 text-gray-400 dark:text-gray-500",md:()=>"h-5 w-5 text-gray-400 dark:text-gray-500",lg:()=>"h-6 w-6 text-gray-400 dark:text-gray-500",xl:()=>"h-8 w-8 text-gray-400 dark:text-gray-500"}}},overlays:{modal:{backdrop:()=>"fixed inset-0 z-40 bg-black/50 dark:bg-black/70 backdrop-blur-sm transition-all duration-300 ease-out",backdropEntering:()=>"opacity-0",backdropEntered:()=>"opacity-100",backdropExiting:()=>"opacity-0",container:()=>"fixed inset-0 z-50 flex items-center justify-center p-4 transition-all duration-300 ease-out",containerEntering:()=>"opacity-0 scale-95",containerEntered:()=>"opacity-100 scale-100",containerExiting:()=>"opacity-0 scale-95",content:()=>"relative w-full max-w-lg bg-white dark:bg-gray-900 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 max-h-[80vh] overflow-hidden",small:()=>"max-w-sm",medium:()=>"max-w-lg",large:()=>"max-w-2xl",extraLarge:()=>"max-w-4xl",fullWidth:()=>"max-w-[95vw]",header:()=>"flex items-center justify-between p-4 sm:p-6 border-b border-gray-200 dark:border-gray-700",title:()=>"text-lg font-semibold text-gray-900 dark:text-gray-100",closeButton:()=>"p-1 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md transition-colors",body:()=>"p-4 sm:p-6 overflow-y-auto",footer:()=>"flex items-center justify-end space-x-3 p-4 sm:p-6 border-t border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800/50"},dropdown:{container:()=>"relative inline-block",trigger:()=>"inline-flex justify-center items-center bg-transparent border-0 text-gray-900 dark:text-gray-100 focus:outline-none transition-colors",triggerBordered:()=>"inline-flex justify-center items-center bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 text-gray-900 dark:text-gray-100 hover:bg-gray-50 dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:ring-offset-gray-950 transition-colors",menu:()=>"absolute z-50 w-56 bg-white dark:bg-gray-800 rounded-md shadow-lg focus:outline-none transition-all duration-200",menuSmall:()=>"w-40",menuLarge:()=>"w-72",menuAuto:()=>"w-auto min-w-40",menuTop:()=>"bottom-full mb-1",menuBottom:()=>"top-full mt-1",menuLeft:()=>"right-0",menuRight:()=>"left-0",menuEntering:()=>"opacity-0 scale-95 transform origin-top",menuEntered:()=>"opacity-100 scale-100 transform origin-top",menuExiting:()=>"opacity-0 scale-95 transform origin-top",itemContainer:()=>"py-1 px-1",item:()=>"flex items-center w-full text-left px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-blue-50 dark:hover:bg-blue-900/20 hover:text-blue-700 dark:hover:text-blue-300 transition-all duration-200 cursor-pointer hover:shadow-sm rounded-sm",itemActive:()=>"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 shadow-sm",itemDisabled:()=>"text-gray-400 dark:text-gray-600 cursor-not-allowed hover:bg-transparent hover:text-gray-400 dark:hover:text-gray-600",divider:()=>"my-1 border-t border-gray-200 dark:border-gray-700",header:()=>"px-4 py-2 text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wide",itemIcon:()=>"mr-3 h-4 w-4 flex-shrink-0",itemIconRight:()=>"ml-auto h-4 w-4 flex-shrink-0"}}},vo={success:"bg-green-500",error:"bg-red-500",warning:"bg-orange-500",attention:"bg-amber-500",info:"bg-blue-500",neutral:"bg-gray-500"};function Le(e){return vo[e]}const wo={default:"bg-white dark:bg-gray-800",bordered:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700",elevated:"bg-white dark:bg-gray-800 shadow-md",info:"bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 text-blue-900 dark:text-blue-300",success:"bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 text-green-900 dark:text-green-300",warning:"bg-orange-50 dark:bg-orange-900/20 border border-orange-200 dark:border-orange-800 text-orange-900 dark:text-orange-300",attention:"bg-amber-50 dark:bg-amber-900/20 border border-amber-200 dark:border-amber-800 text-amber-900 dark:text-amber-300",error:"bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 text-red-900 dark:text-red-300"};function ko(e){return wo[e]}const xo={default:{container:"bg-gradient-to-r from-blue-600/10 to-purple-600/10 border border-blue-200 text-blue-600 backdrop-blur-sm",icon:"text-blue-600"},premium:{container:"bg-gradient-to-r from-blue-600/10 to-purple-600/10 border border-blue-200 text-blue-600 backdrop-blur-sm",icon:"text-blue-600"},primary:{container:"bg-gradient-to-r from-blue-600/10 to-purple-600/10 border border-blue-200 text-blue-600 backdrop-blur-sm",icon:"text-blue-600"},light:{container:"bg-white/20 border border-white/30 text-white backdrop-blur-sm",icon:"text-white"}};function No(e){return xo[e]}const Co={border:{default:"border-gray-200 dark:border-gray-700"}},So=({label:e,labelPosition:r="center",orientation:a="horizontal",spacing:n="md",thickness:o="thin",variant:s="light",className:l,lineClassName:i})=>{const d={horizontal:{none:"my-0",sm:"my-2",md:"my-4",lg:"my-6",xl:"my-8"},vertical:{none:"mx-0",sm:"mx-2",md:"mx-4",lg:"mx-6",xl:"mx-8"}},c={horizontal:{thin:"border-t",medium:"border-t-2",thick:"border-t-4"},vertical:{thin:"border-l",medium:"border-l-2",thick:"border-l-4"}},h={light:"border-gray-200 dark:border-gray-700",medium:"border-gray-300 dark:border-gray-600",dark:"border-gray-400 dark:border-gray-500"};if(a==="vertical")return t.jsx("div",{className:f("self-stretch",c.vertical[o],h[s],d.vertical[n],l),role:"separator","aria-orientation":"vertical"});if(!e)return t.jsx("hr",{className:f(c.horizontal[o],h[s],d.horizontal[n],i,l),role:"separator","aria-orientation":"horizontal"});const g={left:"justify-start",center:"justify-center",right:"justify-end"};return t.jsxs("div",{className:f("flex items-center",d.horizontal[n],g[r],l),role:"separator","aria-orientation":"horizontal",children:[r!=="left"&&t.jsx("div",{className:f("flex-1",c.horizontal[o],h[s],i)}),t.jsx("span",{className:f(U.body.sm(),"px-3 text-gray-500 dark:text-gray-400 whitespace-nowrap"),children:e}),r!=="right"&&t.jsx("div",{className:f("flex-1",c.horizontal[o],h[s],i)})]})},Eo=({orientation:e="horizontal",spacing:r="md",thickness:a="thin",className:n})=>{const o={horizontal:{none:"",sm:"my-1",md:"my-2",lg:"my-4"},vertical:{none:"",sm:"mx-1",md:"mx-2",lg:"mx-4"}},s={horizontal:{thin:"h-px",medium:"h-0.5",thick:"h-1"},vertical:{thin:"w-px",medium:"w-0.5",thick:"w-1"}},l=e==="horizontal";return t.jsx("div",{role:"separator","aria-orientation":e,className:f("bg-gray-200 dark:bg-gray-700",l?"w-full":"h-full",s[e][a],o[e][r],n)})},To=({children:e,variant:r="blue",position:a="left",width:n="thick",padding:o="md",className:s})=>{const l={blue:"border-blue-500 dark:border-blue-400",green:"border-green-500 dark:border-green-400",purple:"border-purple-500 dark:border-purple-400",indigo:"border-indigo-500 dark:border-indigo-400",emerald:"border-emerald-500 dark:border-emerald-400",orange:"border-orange-500 dark:border-orange-400",red:"border-red-500 dark:border-red-400",gray:"border-gray-400 dark:border-gray-500"},i={left:"border-l",right:"border-r",top:"border-t",bottom:"border-b"},d={thin:"2",medium:"3",thick:"4"},c={left:{sm:"pl-3",md:"pl-4",lg:"pl-6"},right:{sm:"pr-3",md:"pr-4",lg:"pr-6"},top:{sm:"pt-3",md:"pt-4",lg:"pt-6"},bottom:{sm:"pb-3",md:"pb-4",lg:"pb-6"}},h=`${i[a]}-${d[n]}`;return t.jsx("div",{className:f(h,l[r],c[a][o],s),children:e})},Ao=({children:e,title:r,position:a="bottom-right",collapsible:n=!0,defaultCollapsed:o=!1,closeable:s=!1,onClose:l,className:i})=>{const[d,c]=p.useState(o),h={"bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4","top-right":"top-4 right-4","top-left":"top-4 left-4"};return t.jsxs("div",{className:f("fixed z-50 w-80","bg-white dark:bg-gray-900","border border-gray-300 dark:border-gray-700","rounded-lg shadow-2xl",h[a],i),children:[(r||n||s)&&t.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-gray-200 dark:border-gray-700",children:[r&&t.jsx("h3",{className:"font-semibold text-gray-900 dark:text-white",children:r}),t.jsxs("div",{className:"flex items-center gap-2",children:[n&&t.jsx("button",{onClick:()=>c(!d),className:"p-1 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition-colors","aria-label":d?"Expand":"Collapse",children:t.jsx("svg",{className:f("w-4 h-4 text-gray-600 dark:text-gray-400 transition-transform",d&&"rotate-180"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})}),s&&t.jsx("button",{onClick:l,className:"p-1 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition-colors","aria-label":"Close",children:t.jsx("svg",{className:"w-4 h-4 text-gray-600 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})]}),!d&&t.jsx("div",{className:"p-4",children:e})]})},Io=({left:e,right:r,direction:a="horizontal",initialSplit:n=.5,split:o,onSplitChange:s,minLeftSize:l=100,minRightSize:i=100,dividerSize:d=8,resizable:c=!0,className:h})=>{const[g,y]=p.useState(n),[m,b]=p.useState(!1),v=p.useRef(null),w=o!==void 0?o:g,S=x=>{c&&(x.preventDefault(),b(!0))};p.useEffect(()=>{if(!m)return;const x=E=>{const A=v.current;if(!A)return;const C=A.getBoundingClientRect();let I;a==="horizontal"?I=(E.clientX-C.left)/C.width:I=(E.clientY-C.top)/C.height,I=Math.max(0,Math.min(1,I));const L=a==="horizontal"?C.width:C.height,O=typeof l=="string"?parseFloat(l)/100*L:l,M=typeof i=="string"?parseFloat(i)/100*L:i,D=O/L,B=1-M/L;I=Math.max(D,Math.min(B,I)),o!==void 0&&s?s(I):y(I)},N=()=>{b(!1)};return document.addEventListener("mousemove",x),document.addEventListener("mouseup",N),()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",N)}},[m,a,l,i,o,s]),p.useEffect(()=>(m?(document.body.style.userSelect="none",document.body.style.cursor=a==="horizontal"?"col-resize":"row-resize"):(document.body.style.userSelect="",document.body.style.cursor=""),()=>{document.body.style.userSelect="",document.body.style.cursor=""}),[m,a]);const k=a==="horizontal";return t.jsxs("div",{ref:v,className:f("w-full h-full flex",k?"flex-row":"flex-col",h),children:[t.jsx("div",{className:"overflow-auto",style:{[k?"width":"height"]:`${w*100}%`},children:e}),t.jsx("div",{onMouseDown:S,className:f("flex-shrink-0 group","bg-gray-300 dark:bg-gray-700",c&&"hover:bg-blue-500 dark:hover:bg-blue-400","transition-colors",m&&"bg-blue-500 dark:bg-blue-400",k?"cursor-col-resize":"cursor-row-resize",!c&&"cursor-default"),style:{[k?"width":"height"]:`${d}px`},children:c&&t.jsx("div",{className:f("flex items-center justify-center w-full h-full","text-gray-600 dark:text-gray-400","group-hover:text-white",m&&"text-white"),children:k?t.jsxs("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24",children:[t.jsx("circle",{cx:"10",cy:"6",r:"1.5"}),t.jsx("circle",{cx:"10",cy:"12",r:"1.5"}),t.jsx("circle",{cx:"10",cy:"18",r:"1.5"}),t.jsx("circle",{cx:"14",cy:"6",r:"1.5"}),t.jsx("circle",{cx:"14",cy:"12",r:"1.5"}),t.jsx("circle",{cx:"14",cy:"18",r:"1.5"})]}):t.jsxs("svg",{className:"w-4 h-4",fill:"currentColor",viewBox:"0 0 24 24",children:[t.jsx("circle",{cx:"6",cy:"10",r:"1.5"}),t.jsx("circle",{cx:"12",cy:"10",r:"1.5"}),t.jsx("circle",{cx:"18",cy:"10",r:"1.5"}),t.jsx("circle",{cx:"6",cy:"14",r:"1.5"}),t.jsx("circle",{cx:"12",cy:"14",r:"1.5"}),t.jsx("circle",{cx:"18",cy:"14",r:"1.5"})]})})}),t.jsx("div",{className:"overflow-auto flex-1",style:{[k?"width":"height"]:`${(1-w)*100}%`},children:r})]})},Lo=({children:e,defaultWidth:r=300,defaultHeight:a=200,minWidth:n=100,minHeight:o=100,maxWidth:s,maxHeight:l,directions:i=["right","bottom","bottom-right"],onResize:d,onResizeEnd:c,showHandles:h=!0,className:g})=>{const[y,m]=p.useState(r),[b,v]=p.useState(a),[w,S]=p.useState(!1),[k,x]=p.useState(null),N=p.useRef(null),E=p.useRef({x:0,y:0,width:0,height:0}),A=L=>O=>{O.preventDefault(),O.stopPropagation(),S(!0),x(L),E.current={x:O.clientX,y:O.clientY,width:y,height:b}};p.useEffect(()=>{if(!w||!k)return;const L=M=>{const D=M.clientX-E.current.x,B=M.clientY-E.current.y;let j=E.current.width,F=E.current.height;k.includes("right")?j=E.current.width+D:k.includes("left")&&(j=E.current.width-D),k.includes("bottom")?F=E.current.height+B:k.includes("top")&&(F=E.current.height-B),j=Math.max(n,j),F=Math.max(o,F),s&&(j=Math.min(s,j)),l&&(F=Math.min(l,F)),m(j),v(F),d&&d(j,F)},O=()=>{S(!1),x(null),c&&c(y,b)};return document.addEventListener("mousemove",L),document.addEventListener("mouseup",O),()=>{document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",O)}},[w,k,y,b,n,o,s,l,d,c]);const C=p.useCallback(L=>({top:"ns-resize",right:"ew-resize",bottom:"ns-resize",left:"ew-resize","top-left":"nwse-resize","top-right":"nesw-resize","bottom-left":"nesw-resize","bottom-right":"nwse-resize"})[L],[]);p.useEffect(()=>(w?(document.body.style.userSelect="none",document.body.style.cursor=C(k)):(document.body.style.userSelect="",document.body.style.cursor=""),()=>{document.body.style.userSelect="",document.body.style.cursor=""}),[w,k,C]);const I=L=>{if(!i.includes(L))return null;const O={top:"top-0 left-0 right-0 h-1 cursor-ns-resize",right:"top-0 right-0 bottom-0 w-1 cursor-ew-resize",bottom:"bottom-0 left-0 right-0 h-1 cursor-ns-resize",left:"top-0 left-0 bottom-0 w-1 cursor-ew-resize","top-left":"top-0 left-0 w-3 h-3 cursor-nwse-resize","top-right":"top-0 right-0 w-3 h-3 cursor-nesw-resize","bottom-left":"bottom-0 left-0 w-3 h-3 cursor-nesw-resize","bottom-right":"bottom-0 right-0 w-3 h-3 cursor-nwse-resize"};return t.jsx("div",{className:f("absolute z-10",h&&"bg-blue-500 dark:bg-blue-400 opacity-0 hover:opacity-50",O[L]),onMouseDown:A(L)},L)};return t.jsxs("div",{ref:N,className:f("relative",g),style:{width:`${y}px`,height:`${b}px`},children:[e,["top","right","bottom","left","top-left","top-right","bottom-left","bottom-right"].map(I)]})},Mo=({className:e,children:r,disabled:a=!1,onClick:n})=>t.jsx("div",{className:f("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",a&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:a?void 0:n,role:"region","aria-label":"UresizableUpanels",children:r||"UresizableUpanels Component"}),Po=({children:e,maxHeight:r,hideScrollbar:a=!1,direction:n="vertical",className:o})=>{const s={vertical:"overflow-y-auto overflow-x-hidden",horizontal:"overflow-x-auto overflow-y-hidden",both:"overflow-auto"},l=a?"scrollbar-hide":f("scrollbar-thin","scrollbar-thumb-gray-300 dark:scrollbar-thumb-gray-600","scrollbar-track-gray-100 dark:scrollbar-track-gray-800","hover:scrollbar-thumb-gray-400 dark:hover:scrollbar-thumb-gray-500"),i=typeof r=="number"?`${r}px`:r;return t.jsx("div",{className:f("relative",s[n],l,o),style:i?{maxHeight:i}:void 0,children:e})},Oo=({children:e,columns:r=3,gap:a=16,breakpoints:n,className:o})=>{const[s,l]=p.useState(r),i=p.useRef(null);p.useEffect(()=>{if(!n)return;const h=()=>{const g=window.innerWidth,y=Object.keys(n).map(Number).sort((m,b)=>b-m);for(const m of y)if(g>=m){l(n[m]);return}l(r)};return h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[n,r]);const d=p.Children.toArray(e),c=Array.from({length:s},()=>[]);return d.forEach((h,g)=>{c[g%s].push(h)}),t.jsx("div",{ref:i,className:f("flex",o),style:{gap:`${a}px`},children:c.map((h,g)=>t.jsx("div",{className:"flex-1 flex flex-col",style:{gap:`${a}px`},children:h},g))})},me=({children:e,container:r})=>{const[a,n]=p.useState(!1);if(p.useEffect(()=>(n(!0),()=>n(!1)),[]),!a)return null;const o=r||document.body;return wr.createPortal(e,o)},ar=({isOpen:e,onClose:r,children:a,blur:n=!1,opacity:o="medium",zIndex:s=40,lockScroll:l=!0,className:i})=>{if(p.useEffect(()=>{if(l){if(e){const c=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",document.body.style.paddingRight=`${c}px`}else document.body.style.overflow="",document.body.style.paddingRight="";return()=>{document.body.style.overflow="",document.body.style.paddingRight=""}}},[e,l]),!e)return null;const d={light:"bg-black/20 dark:bg-black/30",medium:"bg-black/50 dark:bg-black/60",dark:"bg-black/75 dark:bg-black/85"};return t.jsx(me,{children:t.jsx("div",{className:f("fixed inset-0","transition-opacity duration-300",n&&"backdrop-blur-sm",d[o],i),style:{zIndex:s},onClick:r,"aria-hidden":"true",children:a&&t.jsx("div",{className:"relative h-full w-full",onClick:c=>c.stopPropagation(),children:a})})})},It=({children:e,as:r="p",size:a="base",weight:n="normal",color:o="default",align:s,transform:l="none",truncate:i=!1,lineClamp:d,className:c})=>{const h={xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl"},g={light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},y={default:"text-gray-900 dark:text-gray-100",muted:"text-gray-600 dark:text-gray-400",primary:"text-blue-600 dark:text-blue-400",success:"text-green-600 dark:text-green-400",warning:"text-yellow-600 dark:text-yellow-400",danger:"text-red-600 dark:text-red-400"},m=s?{left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"}[s]:"",b={none:"",uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize"},v=d?{display:"-webkit-box",WebkitLineClamp:d,WebkitBoxOrient:"vertical",overflow:"hidden"}:void 0;return t.jsx(r,{className:f(h[a],g[n],y[o],m,b[l],i&&"truncate",d&&"overflow-hidden",c),style:v,children:e})},Uo=({children:e,level:r=2,size:a,weight:n="bold",color:o="default",align:s,className:l})=>{const d=a||{1:"4xl",2:"3xl",3:"2xl",4:"xl",5:"lg",6:"base"}[r],c={"4xl":"text-4xl","3xl":"text-3xl","2xl":"text-2xl",xl:"text-xl",lg:"text-lg",base:"text-base"},h={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold"},g={default:"text-gray-900 dark:text-gray-100",muted:"text-gray-700 dark:text-gray-300",primary:"text-blue-600 dark:text-blue-400"},y=s?{left:"text-left",center:"text-center",right:"text-right"}[s]:"",m=`h${r}`;return p.createElement(m,{className:f(c[d],h[n],g[o],y,l)},e)},Do=Z.cva("",{variants:{variant:{hero:U.heading.display.hero(),display:U.heading.display.lg(),h1:U.heading.h1(),h2:U.heading.h2(),h3:U.heading.h3()},responsive:{true:"",false:""},align:{left:"text-left",center:"text-center",right:"text-right"},color:{default:"text-gray-900 dark:text-white",muted:"text-gray-600 dark:text-gray-400",vibrant:"text-white",brand:"bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent"}},defaultVariants:{variant:"h1",responsive:!0,align:"left",color:"default"}}),jo=({children:e,variant:r="h1",responsive:a=!0,align:n="left",color:o="default",className:s,as:l})=>{const i=l||(r==="hero"||r==="display"||r==="h1"?"h1":r==="h2"?"h2":"h3");return t.jsx(i,{className:f(Do({variant:r,responsive:a,align:n,color:o}),s),children:e})},_o=Z.cva("",{variants:{variant:{h2:U.heading.h2(),h3:U.heading.h3(),h4:U.heading.h4(),h5:U.heading.h5(),h6:U.heading.h6()},spacing:{none:"",sm:"mb-2",md:"mb-4",lg:"mb-6",xl:"mb-8"},align:{left:"text-left",center:"text-center",right:"text-right"}},defaultVariants:{variant:"h2",spacing:"md",align:"left"}}),zo=({children:e,variant:r="h2",spacing:a="md",align:n="left",className:o,as:s})=>{const l=s||r;return p.createElement(l,{className:f(_o({variant:r,spacing:a,align:n}),o)},e)},Bo=Z.cva("",{variants:{variant:{body:U.body.md(),lead:U.body.lg(),large:U.body.lg(),small:U.body.sm(),caption:U.body.xs()},color:{default:"text-gray-700 dark:text-gray-300",muted:"text-gray-500 dark:text-gray-500",primary:"text-gray-900 dark:text-white"},align:{left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"}},defaultVariants:{variant:"body",color:"default",align:"left"}}),Fo=({children:e,variant:r="body",color:a="default",align:n="left",className:o,as:s="p"})=>p.createElement(s,{className:f(Bo({variant:r,color:a,align:n}),o)},e),Wo=Z.cva(U.link.default(),{variants:{variant:{default:U.link.default(),subtle:U.link.subtle(),muted:U.link.muted(),button:"inline-flex items-center justify-center px-4 py-2 rounded-md bg-blue-600 text-white hover:bg-blue-700 transition-colors"},external:{true:"inline-flex items-center gap-1",false:""}},defaultVariants:{variant:"default",external:!1}}),$o=({children:e,href:r,variant:a="default",external:n=!1,className:o,target:s,rel:l})=>t.jsxs("a",{href:r,target:s||(n?"_blank":void 0),rel:l||(n?"noopener noreferrer":void 0),className:f(Wo({variant:a,external:n}),o),children:[e,n&&t.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]}),Vo=({children:e,size:r="md",variant:a="default",className:n})=>{const o={sm:"text-xs px-1 py-0.5",md:"text-sm px-1.5 py-0.5",lg:"text-base px-2 py-1"},s={default:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-gray-100",primary:"bg-blue-50 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300",success:"bg-green-50 dark:bg-green-900/30 text-green-700 dark:text-green-300",warning:"bg-yellow-50 dark:bg-yellow-900/30 text-yellow-700 dark:text-yellow-300",danger:"bg-red-50 dark:bg-red-900/30 text-red-700 dark:text-red-300"};return t.jsx("code",{className:f("inline-block font-mono font-medium rounded",o[r],s[a],n),children:e})},Ho=({children:e,variant:r="primary",size:a="md",inline:n=!1,align:o="left",className:s,wrap:l=!1})=>{const i={primary:"text-blue-600 dark:text-blue-400 bg-blue-50 dark:bg-blue-900/30",secondary:"text-purple-600 dark:text-purple-400 bg-purple-50 dark:bg-purple-900/30",success:"text-green-600 dark:text-green-400 bg-green-50 dark:bg-green-900/30",warning:"text-yellow-700 dark:text-yellow-400 bg-yellow-50 dark:bg-yellow-900/30",neutral:"text-gray-700 dark:text-gray-300 bg-gray-100 dark:bg-gray-800"},d={xs:{text:"text-xs",padding:n?"px-1.5 py-0.5":"px-2 py-1"},sm:{text:"text-sm",padding:n?"px-2 py-0.5":"px-3 py-1.5"},md:{text:"text-base",padding:n?"px-2.5 py-1":"px-4 py-2"},lg:{text:"text-lg",padding:n?"px-3 py-1":"px-4 py-2"}},c={left:"text-left",center:"text-center",right:"text-right"},h=d[a],g=n?"code":"div";return t.jsx(g,{className:f("font-mono rounded-lg",i[r],h.text,h.padding,!n&&c[o],n?"inline-block":"block",!l&&"overflow-x-auto whitespace-nowrap",l&&"break-all",s),children:e})},qo=({children:e,size:r="md",className:a})=>{const n={sm:"text-xs px-1.5 py-0.5",md:"text-sm px-2 py-1",lg:"text-base px-2.5 py-1.5"};return t.jsx("kbd",{className:f("inline-flex items-center justify-center","font-mono font-semibold","bg-gray-100 dark:bg-gray-800","text-gray-900 dark:text-gray-100","border border-gray-300 dark:border-gray-600","rounded shadow-sm",n[r],a),children:e})},Go=({children:e,cite:r,variant:a="default",size:n="md",className:o})=>{const s={sm:"text-sm p-3",md:"text-base p-4",lg:"text-lg p-6"},l={sm:"text-xs",md:"text-sm",lg:"text-base"},i={default:"border-l-4 border-gray-300 dark:border-gray-600 bg-gray-50 dark:bg-gray-800/50",bordered:"border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800",accent:"border-l-4 border-blue-500 dark:border-blue-400 bg-blue-50 dark:bg-blue-900/20"};return t.jsxs("blockquote",{className:f("rounded-r-lg",s[n],i[a],o),children:[t.jsx("p",{className:"text-gray-800 dark:text-gray-200 italic",children:e}),r&&t.jsxs("footer",{className:f("mt-2 text-gray-600 dark:text-gray-400",l[n]),children:["— ",t.jsx("cite",{className:"not-italic font-medium",children:r})]})]})},Yo=({children:e,variant:r="default",showIcon:a=!1,size:n="sm",className:o})=>{const s={sm:"text-sm",base:"text-base"},l={sm:"h-4 w-4",base:"h-5 w-5"},d={default:{text:"text-gray-600 dark:text-gray-400",icon:P.InformationCircleIcon},error:{text:"text-red-600 dark:text-red-400",icon:P.ExclamationCircleIcon},success:{text:"text-green-600 dark:text-green-400",icon:P.CheckCircleIcon},warning:{text:"text-yellow-600 dark:text-yellow-400",icon:P.ExclamationCircleIcon}}[r],c=d.icon;return t.jsxs("div",{className:f("flex items-start gap-1.5",o),children:[a&&t.jsx(c,{className:f(l[n],d.text,"flex-shrink-0 mt-0.5")}),t.jsx("p",{className:f(s[n],d.text),children:e})]})},Ko=({className:e,children:r,disabled:a=!1,onClick:n})=>t.jsx("div",{className:f("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",a&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:a?void 0:n,role:"region","aria-label":"UscreenUreaderUtext",children:r||"UscreenUreaderUtext Component"}),Zo=({children:e,maxLength:r=50,position:a="end",ellipsis:n="...",showTooltip:o=!0,className:s})=>{const l=e||"";if(l.length<=r)return t.jsx("span",{className:s,children:l});const d=(()=>{const c=n.length,h=r-c;switch(a){case"start":return n+l.slice(l.length-h);case"middle":{const g=Math.floor(h/2),y=l.slice(0,g),m=l.slice(l.length-(h-g));return y+n+m}case"end":default:return l.slice(0,h)+n}})();return t.jsx("span",{className:f("inline-block",s),title:o?l:void 0,children:d})},Xo=({value:e,style:r="decimal",currency:a="USD",unit:n,minimumFractionDigits:o,maximumFractionDigits:s,locale:l="en-US",notation:i="standard",className:d})=>{const c=()=>{try{const h={style:r,notation:i,minimumFractionDigits:o,maximumFractionDigits:s};return r==="currency"&&(h.currency=a),r==="unit"&&n&&(h.unit=n),new Intl.NumberFormat(l,h).format(e)}catch(h){return console.error("Number formatting error:",h),e.toLocaleString(l)}};return t.jsx("span",{className:f(d),children:c()})},Qo=({date:e,showTooltip:r=!0,updateInterval:a=0,className:n})=>{const[,o]=p.useState(0),s=p.useMemo(()=>e instanceof Date?e:new Date(e),[e]);p.useEffect(()=>{if(a===0)return;const c=setInterval(()=>{o(h=>h+1)},a*1e3);return()=>clearInterval(c)},[a]);const i=(()=>{const h=new Date().getTime()-s.getTime(),g=Math.floor(h/1e3),y=Math.floor(g/60),m=Math.floor(y/60),b=Math.floor(m/24),v=Math.floor(b/7),w=Math.floor(b/30),S=Math.floor(b/365);return g<60?"just now":y<60?`${y} ${y===1?"minute":"minutes"} ago`:m<24?`${m} ${m===1?"hour":"hours"} ago`:b<7?`${b} ${b===1?"day":"days"} ago`:v<4?`${v} ${v===1?"week":"weeks"} ago`:w<12?`${w} ${w===1?"month":"months"} ago`:`${S} ${S===1?"year":"years"} ago`})(),d=s.toLocaleString();return t.jsx("time",{dateTime:s.toISOString(),title:r?d:void 0,className:f(n),children:i})},Me=({size:e="default",variant:r="default",className:a,ariaLabel:n="Loading",loadingText:o="Loading..."})=>{const s=()=>{const l={small:"w-4 h-4",default:"w-6 h-6",large:"w-8 h-8",extraLarge:"w-16 h-16 border-4"},i={default:"border-gray-300 border-t-blue-600",white:"border-white/30 border-t-white",success:"border-gray-300 border-t-green-600",warning:"border-gray-300 border-t-orange-600",error:"border-gray-300 border-t-red-600"};return`animate-spin rounded-full border-2 ${l[e]} ${i[r]}`};return t.jsx("div",{className:f(s(),a),role:"status","aria-label":n,children:t.jsx("span",{className:"sr-only",children:o})})},Jo=({isLoading:e,message:r,mode:a="fullscreen",blur:n=!1,spinnerSize:o="large",className:s})=>e?t.jsxs("div",{className:f(a==="fullscreen"?"fixed":"absolute","inset-0 z-50","flex flex-col items-center justify-center","bg-white/80 dark:bg-gray-900/80",n&&"backdrop-blur-sm",s),role:"alert","aria-live":"polite","aria-busy":"true",children:[t.jsx(Me,{size:o}),r&&t.jsx("p",{className:f(U.body.md(),"text-gray-700 dark:text-gray-300 mt-4"),children:r})]}):null,Ro=({size:e="md",variant:r="primary",color:a,className:n})=>{const o={sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-3 h-3"},s={primary:"bg-blue-600 dark:bg-blue-500",secondary:"bg-gray-600 dark:bg-gray-400",white:"bg-white"},l=f("rounded-full",o[e],a?"":s[r]);return t.jsxs("div",{className:f("flex items-center gap-1",n),children:[t.jsx("div",{className:l,style:{backgroundColor:a,animation:"loading-dot-bounce 1.4s infinite ease-in-out both",animationDelay:"-0.32s"}}),t.jsx("div",{className:l,style:{backgroundColor:a,animation:"loading-dot-bounce 1.4s infinite ease-in-out both",animationDelay:"-0.16s"}}),t.jsx("div",{className:l,style:{backgroundColor:a,animation:"loading-dot-bounce 1.4s infinite ease-in-out both"}}),t.jsx("style",{children:`
2
2
  @keyframes loading-dot-bounce {
3
3
  0%, 80%, 100% {
4
4
  transform: scale(0);
@@ -19,7 +19,7 @@
19
19
  hover:bg-black/10 dark:hover:bg-white/10
20
20
  ${c.text}
21
21
  `,"aria-label":"Dismiss notification",children:t.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})}const fs={"top-right":"top-4 right-4","top-left":"top-4 left-4","bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4","top-center":"top-4 left-1/2 -translate-x-1/2","bottom-center":"bottom-4 left-1/2 -translate-x-1/2"};function bs({toasts:e,onDismiss:r,position:a="bottom-right"}){return e.length===0?null:t.jsx("div",{className:`fixed z-50 flex flex-col gap-2 max-w-sm w-full ${fs[a]}`,"aria-label":"Notifications",children:e.map(n=>t.jsx(Lt,{toast:n,onDismiss:r},n.id))})}function ms(){const e=p.useContext(Cr);if(!e)throw new Error("useToast must be used within a ToastProvider");return e}const ys=({message:e,variant:r="info",onClose:a,className:n})=>{const o={info:"bg-blue-500",success:"bg-green-500",warning:"bg-yellow-500",error:"bg-red-500"};return t.jsxs("div",{className:f("fixed bottom-4 right-4 p-4 rounded-lg text-white shadow-lg flex items-center gap-3",o[r],n),children:[t.jsx("span",{children:e}),a&&t.jsx("button",{onClick:a,className:"ml-4",children:"×"})]})},ps=({count:e,maxCount:r=99,variant:a="danger",className:n})=>{const o=e>r?`${r}+`:e,s={default:"bg-gray-500",primary:"bg-blue-500",danger:"bg-red-500"};return t.jsx("span",{className:f("inline-flex items-center justify-center px-2 py-1 text-xs font-bold text-white rounded-full",s[a],n),children:o})},vs=({notifications:e,onMarkAsRead:r,className:a})=>t.jsx("div",{className:f("bg-white dark:bg-gray-900 rounded-lg border border-gray-200 dark:border-gray-700 p-4 max-h-96 overflow-y-auto",a),children:e.map(n=>t.jsxs("div",{className:f("p-3 rounded mb-2",n.read?"bg-transparent":"bg-blue-50 dark:bg-blue-900/20"),onClick:()=>r?.(n.id),children:[t.jsx("h4",{className:"font-semibold text-gray-900 dark:text-white",children:n.title}),t.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:n.message}),t.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-500",children:n.timestamp})]},n.id))}),ws=({children:e,variant:r="default",size:a="sm",icon:n,dot:o=!1,pill:s=!1,outline:l=!1,onClick:i,dismissible:d=!1,onDismiss:c,count:h,maxCount:g,className:y})=>{const m={default:"bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300",primary:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400",success:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400",warning:"bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400",danger:"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400",info:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400",purple:"bg-purple-100 text-purple-800 dark:bg-purple-900/30 dark:text-purple-400"},b={default:"border border-gray-300 text-gray-700 dark:border-gray-600 dark:text-gray-300",primary:"border border-blue-600 text-blue-600 dark:border-blue-400 dark:text-blue-400",success:"border border-green-600 text-green-600 dark:border-green-400 dark:text-green-400",warning:"border border-yellow-600 text-yellow-600 dark:border-yellow-400 dark:text-yellow-400",danger:"border border-red-600 text-red-600 dark:border-red-400 dark:text-red-400",info:"border border-blue-600 text-blue-600 dark:border-blue-400 dark:text-blue-400",purple:"border border-purple-600 text-purple-600 dark:border-purple-400 dark:text-purple-400"},v={sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-1 text-sm",lg:"px-3 py-1.5 text-base"},w={sm:"h-3 w-3",md:"h-3.5 w-3.5",lg:"h-4 w-4"},S={default:"bg-gray-600 dark:bg-gray-400",primary:"bg-blue-600 dark:bg-blue-400",success:"bg-green-600 dark:bg-green-400",warning:"bg-yellow-600 dark:bg-yellow-400",danger:"bg-red-600 dark:bg-red-400",info:"bg-blue-600 dark:bg-blue-400",purple:"bg-purple-600 dark:bg-purple-400"},k=h!==void 0?g!==void 0&&h>g?`${g}+`:h.toString():null,x=t.jsxs(t.Fragment,{children:[o&&t.jsx("span",{className:f("h-2 w-2 rounded-full mr-1.5",S[r])}),n&&t.jsx("span",{className:f(w[a],"mr-1"),children:n}),e,k&&t.jsx("span",{className:"ml-1",children:k}),d&&c&&t.jsx("button",{onClick:E=>{E.stopPropagation(),c()},className:"ml-1 hover:bg-black/10 dark:hover:bg-white/10 rounded-full p-0.5","aria-label":"Dismiss",children:t.jsx(fe.XMarkIcon,{className:f(w[a])})})]}),N=i?"button":"span";return t.jsx(N,{onClick:i,className:f("inline-flex items-center font-medium",l?b[r]:m[r],v[a],s?"rounded-full":"rounded",i&&"cursor-pointer hover:opacity-80",y),children:x})},ks=({className:e,children:r,disabled:a=!1,onClick:n})=>t.jsx("div",{className:f("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",a&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:a?void 0:n,role:"region","aria-label":"UbadgeUdesigner",children:r||"UbadgeUdesigner Component"});var ye={},pe={},Sr={},Mt;function xs(){return Mt||(Mt=1,Object.defineProperty(Sr,"__esModule",{value:!0})),Sr}var Er={},z={},Pt;function Pe(){if(Pt)return z;Pt=1,Object.defineProperty(z,"__esModule",{value:!0}),z.Currency=z.ErrorType=z.FeatureFlag=z.EmailValidationState=z.PlatformType=z.ConnectionState=z.ConnectionType=z.EmailSortCriteria=z.SortOrder=z.EmailAddressType=z.InfoType=z.NotificationType=z.RequestStatus=z.SubscriptionAction=z.EmailAction=z.MediumView=z.MobileView=z.EmailComposeType=z.FontSize=z.Theme=z.Chain=z.ChainType=z.AuthStatus=void 0;var e;(function(C){C.CONNECTED="connected",C.DISCONNECTED="disconnected",C.VERIFIED="verified"})(e||(z.AuthStatus=e={}));var r;(function(C){C.EVM="evm",C.SOLANA="solana"})(r||(z.ChainType=r={}));var a;(function(C){C.ETH_MAINNET="eth-mainnet",C.ETH_SEPOLIA="eth-sepolia",C.ETH_GOERLI="eth-goerli",C.POLYGON_MAINNET="polygon-mainnet",C.POLYGON_MUMBAI="polygon-mumbai",C.POLYGON_AMOY="polygon-amoy",C.OPTIMISM_MAINNET="optimism-mainnet",C.OPTIMISM_SEPOLIA="optimism-sepolia",C.OPTIMISM_GOERLI="optimism-goerli",C.ARBITRUM_MAINNET="arbitrum-mainnet",C.ARBITRUM_SEPOLIA="arbitrum-sepolia",C.ARBITRUM_GOERLI="arbitrum-goerli",C.BASE_MAINNET="base-mainnet",C.BASE_SEPOLIA="base-sepolia",C.BASE_GOERLI="base-goerli",C.AVALANCHE_MAINNET="avalanche-mainnet",C.AVALANCHE_FUJI="avalanche-fuji",C.BNB_MAINNET="bnb-mainnet",C.BNB_TESTNET="bnb-testnet",C.GNOSIS_MAINNET="gnosis-mainnet",C.GNOSIS_CHIADO="gnosis-chiado",C.CELO_MAINNET="celo-mainnet",C.CELO_ALFAJORES="celo-alfajores",C.ZKSYNC_MAINNET="zksync-mainnet",C.ZKSYNC_SEPOLIA="zksync-sepolia",C.LINEA_MAINNET="linea-mainnet",C.LINEA_SEPOLIA="linea-sepolia",C.SCROLL_MAINNET="scroll-mainnet",C.SCROLL_SEPOLIA="scroll-sepolia",C.MONAD_MAINNET="monad-mainnet",C.MONAD_TESTNET="monad-testnet",C.STORY_MAINNET="story-mainnet",C.STORY_TESTNET="story-testnet",C.PLUME_MAINNET="plume-mainnet",C.PLUME_TESTNET="plume-testnet",C.NEXUS_MAINNET="nexus-mainnet",C.NEXUS_TESTNET="nexus-testnet",C.HYPEREVM_MAINNET="hyperevm-mainnet",C.HYPEREVM_TESTNET="hyperevm-testnet",C.SONIC_MAINNET="sonic-mainnet",C.SONIC_TESTNET="sonic-testnet",C.SONIC_BLAZE="sonic-blaze",C.UNICHAIN_MAINNET="unichain-mainnet",C.UNICHAIN_SEPOLIA="unichain-sepolia",C.WORLD_MAINNET="world-mainnet",C.XDC_MAINNET="xdc-mainnet",C.INK_TESTNET="ink-testnet",C.FETCH_MAINNET="fetch-mainnet",C.FETCH_TESTNET="fetch-testnet",C.GENSYN_MAINNET="gensyn-mainnet",C.GENSYN_TESTNET="gensyn-testnet",C.RITUAL_MAINNET="ritual-mainnet",C.RITUAL_TESTNET="ritual-testnet",C.SOLANA_MAINNET="solana-mainnet",C.SOLANA_DEVNET="solana-devnet",C.SOLANA_TESTNET="solana-testnet",C.EVM_LOCAL="evm-local",C.SOLANA_LOCAL="solana-local"})(a||(z.Chain=a={}));var n;(function(C){C.LIGHT="light",C.DARK="dark",C.SYSTEM="system"})(n||(z.Theme=n={}));var o;(function(C){C.SMALL="small",C.MEDIUM="medium",C.LARGE="large"})(o||(z.FontSize=o={}));var s;(function(C){C.NEW="new",C.REPLY="reply",C.REPLY_ALL="replyAll",C.FORWARD="forward"})(s||(z.EmailComposeType=s={}));var l;(function(C){C.EMAIL_ADDRESSES="emailAddresses",C.FOLDERS="folders",C.EMAILS="emails",C.EMAIL_BODY="emailBody"})(l||(z.MobileView=l={}));var i;(function(C){C.LEFT="left",C.RIGHT="right"})(i||(z.MediumView=i={}));var d;(function(C){C.OPEN="open",C.REPLY="reply",C.FORWARD="forward",C.DELETE="delete",C.STAR="star",C.UNSTAR="unstar",C.MARK_READ="mark_read",C.MARK_UNREAD="mark_unread"})(d||(z.EmailAction=d={}));var c;(function(C){C.VIEW="view",C.PURCHASE="purchase",C.CANCEL="cancel",C.RESTORE="restore"})(c||(z.SubscriptionAction=c={}));var h;(function(C){C.IDLE="idle",C.LOADING="loading",C.SUCCESS="success",C.ERROR="error"})(h||(z.RequestStatus=h={}));var g;(function(C){C.INFO="info",C.SUCCESS="success",C.WARNING="warning",C.ERROR="error"})(g||(z.NotificationType=g={}));var y;(function(C){C.INFO="info",C.SUCCESS="success",C.WARNING="warning",C.ERROR="error"})(y||(z.InfoType=y={}));var m;(function(C){C.DIRECT="direct",C.ENS="ens",C.SNS="sns",C.CUSTOM="custom"})(m||(z.EmailAddressType=m={}));var b;(function(C){C.ASC="asc",C.DESC="desc"})(b||(z.SortOrder=b={}));var v;(function(C){C.DATE="date",C.SUBJECT="subject",C.FROM="from",C.SIZE="size"})(v||(z.EmailSortCriteria=v={}));var w;(function(C){C.UNKNOWN="unknown",C.NONE="none",C.WIFI="wifi",C.CELLULAR_2G="2g",C.CELLULAR_3G="3g",C.CELLULAR_4G="4g",C.CELLULAR_5G="5g",C.ETHERNET="ethernet"})(w||(z.ConnectionType=w={}));var S;(function(C){C.UNKNOWN="unknown",C.DISCONNECTED="disconnected",C.CONNECTING="connecting",C.CONNECTED="connected",C.RECONNECTING="reconnecting",C.VERIFIED="verified",C.LIMITED="limited",C.ERROR="error"})(S||(z.ConnectionState=S={}));var k;(function(C){C.WEB="web",C.REACT_NATIVE="react_native",C.DESKTOP="desktop"})(k||(z.PlatformType=k={}));var x;(function(C){C.VALID="valid",C.INVALID="invalid",C.PENDING="pending",C.UNKNOWN="unknown"})(x||(z.EmailValidationState=x={}));var N;(function(C){C.AI_SEARCH="ai_search",C.SMART_COMPOSE="smart_compose",C.ADVANCED_FILTERS="advanced_filters",C.DARK_MODE="dark_mode",C.NOTIFICATIONS="notifications",C.ANALYTICS="analytics"})(N||(z.FeatureFlag=N={}));var E;(function(C){C.NETWORK="network",C.AUTH="auth",C.VALIDATION="validation",C.PERMISSION="permission",C.UNKNOWN="unknown"})(E||(z.ErrorType=E={}));var A;return(function(C){C.USD="USD",C.EUR="EUR",C.GBP="GBP",C.CAD="CAD",C.AUD="AUD"})(A||(z.Currency=A={})),z}var Tr={},Ot;function Ns(){return Ot||(Ot=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getWalletConnectionState=e.isWalletVerified=e.isWalletConnected=void 0;const r=Pe(),a=s=>s!=null&&!!s.walletAddress;e.isWalletConnected=a;const n=s=>(0,e.isWalletConnected)(s)&&!!s.message&&!!s.signature;e.isWalletVerified=n;const o=s=>(0,e.isWalletConnected)(s)?(0,e.isWalletVerified)(s)?r.ConnectionState.VERIFIED:r.ConnectionState.CONNECTED:r.ConnectionState.DISCONNECTED;e.getWalletConnectionState=o})(Tr)),Tr}var Ut;function Cs(){return Ut||(Ut=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isWalletVerified=e.isWalletConnected=e.getWalletConnectionState=e.Theme=e.SubscriptionAction=e.SortOrder=e.RequestStatus=e.PlatformType=e.NotificationType=e.MobileView=e.MediumView=e.InfoType=e.FontSize=e.FeatureFlag=e.ErrorType=e.EmailValidationState=e.EmailSortCriteria=e.EmailComposeType=e.EmailAddressType=e.EmailAction=e.Currency=e.ConnectionType=e.ConnectionState=e.ChainType=e.Chain=e.AuthStatus=void 0;var r=Pe();Object.defineProperty(e,"AuthStatus",{enumerable:!0,get:function(){return r.AuthStatus}}),Object.defineProperty(e,"Chain",{enumerable:!0,get:function(){return r.Chain}}),Object.defineProperty(e,"ChainType",{enumerable:!0,get:function(){return r.ChainType}}),Object.defineProperty(e,"ConnectionState",{enumerable:!0,get:function(){return r.ConnectionState}}),Object.defineProperty(e,"ConnectionType",{enumerable:!0,get:function(){return r.ConnectionType}}),Object.defineProperty(e,"Currency",{enumerable:!0,get:function(){return r.Currency}}),Object.defineProperty(e,"EmailAction",{enumerable:!0,get:function(){return r.EmailAction}}),Object.defineProperty(e,"EmailAddressType",{enumerable:!0,get:function(){return r.EmailAddressType}}),Object.defineProperty(e,"EmailComposeType",{enumerable:!0,get:function(){return r.EmailComposeType}}),Object.defineProperty(e,"EmailSortCriteria",{enumerable:!0,get:function(){return r.EmailSortCriteria}}),Object.defineProperty(e,"EmailValidationState",{enumerable:!0,get:function(){return r.EmailValidationState}}),Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return r.ErrorType}}),Object.defineProperty(e,"FeatureFlag",{enumerable:!0,get:function(){return r.FeatureFlag}}),Object.defineProperty(e,"FontSize",{enumerable:!0,get:function(){return r.FontSize}}),Object.defineProperty(e,"InfoType",{enumerable:!0,get:function(){return r.InfoType}}),Object.defineProperty(e,"MediumView",{enumerable:!0,get:function(){return r.MediumView}}),Object.defineProperty(e,"MobileView",{enumerable:!0,get:function(){return r.MobileView}}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:function(){return r.NotificationType}}),Object.defineProperty(e,"PlatformType",{enumerable:!0,get:function(){return r.PlatformType}}),Object.defineProperty(e,"RequestStatus",{enumerable:!0,get:function(){return r.RequestStatus}}),Object.defineProperty(e,"SortOrder",{enumerable:!0,get:function(){return r.SortOrder}}),Object.defineProperty(e,"SubscriptionAction",{enumerable:!0,get:function(){return r.SubscriptionAction}}),Object.defineProperty(e,"Theme",{enumerable:!0,get:function(){return r.Theme}});var a=Ns();Object.defineProperty(e,"getWalletConnectionState",{enumerable:!0,get:function(){return a.getWalletConnectionState}}),Object.defineProperty(e,"isWalletConnected",{enumerable:!0,get:function(){return a.isWalletConnected}}),Object.defineProperty(e,"isWalletVerified",{enumerable:!0,get:function(){return a.isWalletVerified}})})(Er)),Er}var Ar={},Q={},Dt;function Ir(){if(Dt)return Q;Dt=1,Object.defineProperty(Q,"__esModule",{value:!0}),Q.PROTOCOL_CONSTANTS=Q.TransactionStatus=Q.MessageType=void 0,Q.isSolanaAddress=a,Q.isEvmAddress=n,Q.isSolanaRecipient=o,Q.isEvmRecipient=s;var e;(function(l){l.STANDARD="standard",l.PRIORITY="priority",l.PREPARED_STANDARD="prepared_standard",l.PREPARED_PRIORITY="prepared_priority"})(e||(Q.MessageType=e={}));var r;(function(l){l.SUCCESS="success",l.FAILED="failed",l.PENDING="pending"})(r||(Q.TransactionStatus=r={}));function a(l){try{if(l.length<32||l.length>44||!/^[1-9A-HJ-NP-Za-km-z]+$/.test(l))return!1;try{return require("bs58").decode(l).length===32}catch{return!0}}catch{return!1}}function n(l){return/^0x[a-fA-F0-9]{40}$/.test(l)}function o(l){return a(l)}function s(l){return n(l)}return Q.PROTOCOL_CONSTANTS={SEND_FEE:100000n,CLAIM_PERIOD:1440*60*60,REVENUE_SHARES:{SENDER:90,OWNER:10},USDC_DECIMALS:6,MAX_LENGTHS:{SUBJECT:200,BODY:2e3,MAIL_ID:100}},Q}var ve={},J={},jt;function _t(){if(jt)return J;jt=1,Object.defineProperty(J,"__esModule",{value:!0}),J.AddressType=void 0,J.isENSName=n,J.isSNSName=o,J.getAddressType=s,J.isValidWalletAddress=l,J.isValidSignature=i,J.parseEmailAddress=d,J.formatWalletAddress=c,J.getChainDisplayName=h;const e=Pe(),r=Ir();var a;(function(g){g.EVMAddress="EVMAddress",g.SolanaAddress="SolanaAddress",g.ENSName="ENSName",g.SNSName="SNSName"})(a||(J.AddressType=a={}));function n(g){const y=g.toLowerCase();if(!y.endsWith(".eth")&&!y.endsWith(".box"))return!1;const m=(y.endsWith(".eth"),y.slice(0,-4));if(m.length===0)return!1;const b=m.split("."),v=/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/;for(const w of b)if(w.length===0||!v.test(w)||w.includes("--"))return!1;return!0}function o(g){const y=g.toLowerCase(),b=[".sol",".abc",".bonk",".poor",".gm",".dao",".defi",".web3"].find(k=>y.endsWith(k));if(!b)return!1;const v=y.slice(0,-b.length);if(v.length===0)return!1;const w=v.split("."),S=/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/;for(const k of w)if(k.length===0||!S.test(k)||k.includes("--"))return!1;return!0}function s(g,y=void 0){if((0,r.isEvmAddress)(g))return a.EVMAddress;if((0,r.isSolanaAddress)(g))return a.SolanaAddress;if(y&&g.includes(".")){if(y===a.EVMAddress)return a.ENSName;if(y===a.SolanaAddress)return a.SNSName}}function l(g,y){if(!g||typeof g!="string")return!1;const m=s(g);switch(y){case e.ChainType.EVM:return m===a.EVMAddress||m===a.ENSName;case e.ChainType.SOLANA:return m===a.SolanaAddress||m===a.SNSName;default:return!!m}}function i(g,y){if(!g||typeof g!="string")return!1;switch(y){case e.ChainType.EVM:return/^0x[a-fA-F0-9]{130}$/.test(g);case e.ChainType.SOLANA:return/^[1-9A-HJ-NP-Za-km-z]{87,88}$/.test(g);default:return g.length>50}}function d(g){if(!g||typeof g!="string")return;const y=g.split("@");if(y.length!==2)return;const[m,b]=y;if(!m||!b)return;const v=s(m);return{address:m,domain:b,type:v}}function c(g){if(!g||g.length<10)return g;const y=s(g);return(y===a.ENSName||y===a.SNSName)&&g.length<=20?g:`${g.slice(0,6)}...${g.slice(-4)}`}function h(g){if(!g)return"Unknown Chain";switch(g){case e.ChainType.EVM:return"EVM Chain";case e.ChainType.SOLANA:return"Solana";default:return"Blockchain"}}return J}var zt;function Ss(){if(zt)return ve;zt=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.validateDomain=r,ve.validateMessage=a,ve.validateAddress=n,ve.validateAmount=o;const e=_t();function r(s){if(!s||s.length===0)throw new Error("Domain cannot be empty");if(s.length>100)throw new Error("Domain cannot exceed 100 characters");if(!/^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(s))throw new Error("Invalid domain format");return!0}function a(s,l){if(!s||s.length===0)throw new Error("Message subject cannot be empty");if(s.length>200)throw new Error("Message subject cannot exceed 200 characters");if(!l||l.length===0)throw new Error("Message body cannot be empty");if(l.length>1e4)throw new Error("Message body cannot exceed 10000 characters");return!0}function n(s,l){if(!s||s.length===0)throw new Error("Address cannot be empty");if(!(0,e.isValidWalletAddress)(s,l))throw new Error(`Invalid ${l} address format`);return!0}function o(s){if(s==null||s===""||typeof s=="string"&&s.trim()==="")throw new Error("Invalid amount format");let l;try{if(typeof s=="string"){if(!/^-?\d+$/.test(s.trim()))throw new Error("Invalid amount format");l=BigInt(s)}else if(typeof s=="number"){if(!Number.isFinite(s))throw new Error("Invalid amount format");l=BigInt(Math.floor(s))}else if(typeof s=="bigint")l=s;else throw new Error("Invalid amount format")}catch{throw new Error("Invalid amount format")}if(l<0n)throw new Error("Amount cannot be negative");return l}return ve}var Bt;function Es(){return Bt||(Bt=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateMessage=e.validateDomain=e.validateAmount=e.validateAddress=e.isSolanaRecipient=e.isSolanaAddress=e.isEvmRecipient=e.isEvmAddress=e.TransactionStatus=e.PROTOCOL_CONSTANTS=e.MessageType=void 0;var r=Ir();Object.defineProperty(e,"MessageType",{enumerable:!0,get:function(){return r.MessageType}}),Object.defineProperty(e,"PROTOCOL_CONSTANTS",{enumerable:!0,get:function(){return r.PROTOCOL_CONSTANTS}}),Object.defineProperty(e,"TransactionStatus",{enumerable:!0,get:function(){return r.TransactionStatus}}),Object.defineProperty(e,"isEvmAddress",{enumerable:!0,get:function(){return r.isEvmAddress}}),Object.defineProperty(e,"isEvmRecipient",{enumerable:!0,get:function(){return r.isEvmRecipient}}),Object.defineProperty(e,"isSolanaAddress",{enumerable:!0,get:function(){return r.isSolanaAddress}}),Object.defineProperty(e,"isSolanaRecipient",{enumerable:!0,get:function(){return r.isSolanaRecipient}});var a=Ss();Object.defineProperty(e,"validateAddress",{enumerable:!0,get:function(){return a.validateAddress}}),Object.defineProperty(e,"validateAmount",{enumerable:!0,get:function(){return a.validateAmount}}),Object.defineProperty(e,"validateDomain",{enumerable:!0,get:function(){return a.validateDomain}}),Object.defineProperty(e,"validateMessage",{enumerable:!0,get:function(){return a.validateMessage}})})(Ar)),Ar}var Lr={},We={},Ft;function Ts(){if(Ft)return We;Ft=1,Object.defineProperty(We,"__esModule",{value:!0}),We.StorageType=void 0;var e;return(function(r){r.LOCAL_STORAGE="localStorage",r.SESSION_STORAGE="sessionStorage",r.ASYNC_STORAGE="asyncStorage",r.MEMORY="memory"})(e||(We.StorageType=e={})),We}var Wt;function As(){return Wt||(Wt=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StorageType=void 0;var r=Ts();Object.defineProperty(e,"StorageType",{enumerable:!0,get:function(){return r.StorageType}})})(Lr)),Lr}var Mr={},we={},$t;function Is(){if($t)return we;$t=1,Object.defineProperty(we,"__esModule",{value:!0}),we.AnalyticsEventBuilder=we.AnalyticsEvent=void 0;var e;(function(a){a.USER_LOGIN="user_login",a.USER_LOGOUT="user_logout",a.USER_SIGNUP="user_signup",a.EMAIL_SENT="email_sent",a.EMAIL_RECEIVED="email_received",a.EMAIL_OPENED="email_opened",a.EMAIL_REPLY="email_reply",a.EMAIL_FORWARD="email_forward",a.EMAIL_DELETE="email_delete",a.EMAIL_STAR="email_star",a.EMAIL_COMPOSE="email_compose",a.EMAIL_CLICKED="email_clicked",a.PAGE_VIEW="page_view",a.SCREEN_VIEW="screen_view",a.FOLDER_SWITCH="folder_switch",a.SUBSCRIPTION_VIEW="subscription_view",a.SUBSCRIPTION_PURCHASE="subscription_purchase",a.SUBSCRIPTION_CANCEL="subscription_cancel",a.SEARCH_PERFORMED="search_performed",a.SETTINGS_CHANGED="settings_changed",a.ERROR_OCCURRED="error_occurred",a.AB_TEST_VIEWED="ab_test_viewed",a.AB_TEST_CONVERTED="ab_test_converted",a.CUSTOM_EVENT="custom_event"})(e||(we.AnalyticsEvent=e={}));class r{static emailAction(n,o,s){return{action:n,email_id:o,folder:s,timestamp:Date.now()}}static pageView(n,o){return{page_name:n,page_path:o,timestamp:Date.now()}}static error(n,o,s){return{error_type:n,error_message:o,page_name:s,timestamp:Date.now()}}static subscription(n,o,s,l){return{action:n,plan_type:o,amount:s,currency:l,timestamp:Date.now()}}static engagement(n,o,s){return{feature:n,interaction:o,duration:s,timestamp:Date.now()}}static performance(n,o,s){return{metric:n,value:o,context:s,timestamp:Date.now()}}}return we.AnalyticsEventBuilder=r,we}var Pr={},Vt;function Ls(){return Vt||(Vt=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProcessedEventName=e.ContractType=e.ChainType=void 0;var r=Pe();Object.defineProperty(e,"ChainType",{enumerable:!0,get:function(){return r.ChainType}});var a;(function(o){o.Mailer="Mailer",o.MailService="MailService"})(a||(e.ContractType=a={}));var n;(function(o){o.MailSent="MailSent",o.PreparedMailSent="PreparedMailSent",o.DelegationSet="DelegationSet",o.DelegationCleared="DelegationCleared",o.DomainRegistered="DomainRegistered",o.DomainExtended="DomainExtended",o.DomainReleased="DomainReleased",o.FeeUpdated="FeeUpdated",o.SharesRecorded="SharesRecorded",o.RecipientClaimed="RecipientClaimed",o.OwnerClaimed="OwnerClaimed",o.ExpiredSharesClaimed="ExpiredSharesClaimed"})(n||(e.ProcessedEventName=n={}))})(Pr)),Pr}var $e={},Ht;function Ms(){if(Ht)return $e;Ht=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.NetworkError=void 0;class e extends Error{constructor(a,n,o,s){super(a),this.name="NetworkError",this.status=n,this.statusText=o,this.response=s}}return $e.NetworkError=e,$e}var Ve={},qt;function Ps(){if(qt)return Ve;qt=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.WalletType=void 0;var e;return(function(r){r.METAMASK="metamask",r.PHANTOM="phantom",r.COINBASE="coinbase",r.WALLETCONNECT="walletconnect",r.INJECTED="injected"})(e||(Ve.WalletType=e={})),Ve}var Gt;function Os(){return Gt||(Gt=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WalletType=e.NetworkError=e.ProcessedEventName=e.ContractType=e.ChainType=e.AnalyticsEventBuilder=e.AnalyticsEvent=void 0;var r=Is();Object.defineProperty(e,"AnalyticsEvent",{enumerable:!0,get:function(){return r.AnalyticsEvent}}),Object.defineProperty(e,"AnalyticsEventBuilder",{enumerable:!0,get:function(){return r.AnalyticsEventBuilder}});var a=Ls();Object.defineProperty(e,"ChainType",{enumerable:!0,get:function(){return a.ChainType}}),Object.defineProperty(e,"ContractType",{enumerable:!0,get:function(){return a.ContractType}}),Object.defineProperty(e,"ProcessedEventName",{enumerable:!0,get:function(){return a.ProcessedEventName}});var n=Ms();Object.defineProperty(e,"NetworkError",{enumerable:!0,get:function(){return n.NetworkError}});var o=Ps();Object.defineProperty(e,"WalletType",{enumerable:!0,get:function(){return o.WalletType}})})(Mr)),Mr}var ke={},He={},Yt;function Us(){if(Yt)return He;Yt=1,Object.defineProperty(He,"__esModule",{value:!0}),He.RateLimitPeriodType=void 0;var e;return(function(r){r.HOUR="hour",r.DAY="day",r.MONTH="month"})(e||(He.RateLimitPeriodType=e={})),He}var Kt;function Ds(){return Kt||(Kt=1,(function(e){var r=ke&&ke.__createBinding||(Object.create?(function(n,o,s,l){l===void 0&&(l=s);var i=Object.getOwnPropertyDescriptor(o,s);(!i||("get"in i?!o.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(n,l,i)}):(function(n,o,s,l){l===void 0&&(l=s),n[l]=o[s]})),a=ke&&ke.__exportStar||function(n,o){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&r(o,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),a(Us(),e)})(ke)),ke}var xe={},ie={},Zt;function Xt(){if(Zt)return ie;Zt=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.InvitationStatus=ie.EntityRole=ie.EntityType=void 0;var e;(function(n){n.PERSONAL="personal",n.ORGANIZATION="organization"})(e||(ie.EntityType=e={}));var r;(function(n){n.OWNER="owner",n.ADMIN="admin",n.MEMBER="member"})(r||(ie.EntityRole=r={}));var a;return(function(n){n.PENDING="pending",n.ACCEPTED="accepted",n.DECLINED="declined",n.EXPIRED="expired"})(a||(ie.InvitationStatus=a={})),ie}var Or={},Qt;function js(){return Qt||(Qt=1,Object.defineProperty(Or,"__esModule",{value:!0})),Or}var Ur={},Jt;function _s(){return Jt||(Jt=1,Object.defineProperty(Ur,"__esModule",{value:!0})),Ur}var Dr={},Rt;function zs(){return Rt||(Rt=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ROLE_PERMISSIONS=void 0,e.getPermissionsForRole=s,e.hasPermission=l;const r=Xt(),a={canViewEntity:!0,canEditEntity:!0,canDeleteEntity:!0,canManageMembers:!0,canInviteMembers:!0,canManageProjects:!0,canCreateProjects:!0,canViewProjects:!0,canManageApiKeys:!0,canViewApiKeys:!0},n={canViewEntity:!0,canEditEntity:!0,canDeleteEntity:!1,canManageMembers:!1,canInviteMembers:!1,canManageProjects:!0,canCreateProjects:!0,canViewProjects:!0,canManageApiKeys:!0,canViewApiKeys:!0},o={canViewEntity:!0,canEditEntity:!1,canDeleteEntity:!1,canManageMembers:!1,canInviteMembers:!1,canManageProjects:!1,canCreateProjects:!1,canViewProjects:!0,canManageApiKeys:!1,canViewApiKeys:!0};e.ROLE_PERMISSIONS={[r.EntityRole.OWNER]:a,[r.EntityRole.ADMIN]:n,[r.EntityRole.MEMBER]:o};function s(i){return e.ROLE_PERMISSIONS[i]}function l(i,d){return e.ROLE_PERMISSIONS[i][d]}})(Dr)),Dr}var ea;function Bs(){return ea||(ea=1,(function(e){var r=xe&&xe.__createBinding||(Object.create?(function(n,o,s,l){l===void 0&&(l=s);var i=Object.getOwnPropertyDescriptor(o,s);(!i||("get"in i?!o.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(n,l,i)}):(function(n,o,s,l){l===void 0&&(l=s),n[l]=o[s]})),a=xe&&xe.__exportStar||function(n,o){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&r(o,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),a(Xt(),e),a(js(),e),a(_s(),e),a(zs(),e)})(xe)),xe}var ra;function ta(){return ra||(ra=1,(function(e){var r=pe&&pe.__createBinding||(Object.create?(function(n,o,s,l){l===void 0&&(l=s);var i=Object.getOwnPropertyDescriptor(o,s);(!i||("get"in i?!o.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(n,l,i)}):(function(n,o,s,l){l===void 0&&(l=s),n[l]=o[s]})),a=pe&&pe.__exportStar||function(n,o){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&r(o,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),a(xs(),e),a(Cs(),e),a(Es(),e),a(As(),e),a(Os(),e),a(Ds(),e),a(Bs(),e)})(pe)),pe}var Ne={},jr={},qe={},aa;function Fs(){if(aa)return qe;aa=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.Web3UsernameValidator=void 0;const e=Pe();class r{static validate(n){if(n){if(this.EVM_REGEX.test(n))return{name:null,address:n.toLowerCase(),chainType:e.ChainType.EVM};if(!n.startsWith("0x")&&n.length>=32&&n.length<=44&&this.BASE58_REGEX.test(n))return{name:null,address:n,chainType:e.ChainType.SOLANA};if((n.toLowerCase().endsWith(".eth")||n.toLowerCase().endsWith(".box"))&&n.length>=5&&this.ENS_REGEX.test(n))return{name:n.toLowerCase(),address:null,chainType:e.ChainType.EVM};if(n.toLowerCase().includes(".")){const o=n.toLowerCase().split(".");if(o.length===2){const[s,l]=o;if(this.VALID_SNS_TLDS.includes(l)&&this.SNS_NAME_REGEX.test(s)&&s.length>=1)return{name:n.toLowerCase(),address:null,chainType:e.ChainType.SOLANA}}}}}static isValidEVMAddress(n){return this.EVM_REGEX.test(n)}static isValidSolanaAddress(n){return!n.startsWith("0x")&&n.length>=32&&n.length<=44&&this.BASE58_REGEX.test(n)}static isValidENSName(n){return(n.toLowerCase().endsWith(".eth")||n.toLowerCase().endsWith(".box"))&&n.length>=5&&this.ENS_REGEX.test(n)}static isValidSNSName(n){if(!n.toLowerCase().includes("."))return!1;const o=n.toLowerCase().split(".");if(o.length!==2)return!1;const[s,l]=o;return this.VALID_SNS_TLDS.includes(l)&&this.SNS_NAME_REGEX.test(s)&&s.length>=1}}return qe.Web3UsernameValidator=r,r.EVM_REGEX=/^0x[a-fA-F0-9]{40}$/,r.BASE58_REGEX=/^[1-9A-HJ-NP-Za-km-z]+$/,r.ENS_REGEX=/^[a-zA-Z0-9]([a-zA-Z0-9]|(-[a-zA-Z0-9]))*\.(eth|box)$/i,r.SNS_NAME_REGEX=/^[a-zA-Z0-9]([a-zA-Z0-9]|(-[a-zA-Z0-9]))*$/,r.VALID_SNS_TLDS=["sol","abc","backpack","bonk","coin","dao","defi","gm","poor","pump","shdw","stepn","web3"],qe}var _r={},na;function Ws(){return na||(na=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.parseJson=e.createAssertion=e.isUrl=e.isEmail=e.isValidDate=e.isErrorResponse=e.isSuccessResponse=e.isApiResponse=e.optional=e.validateArray=e.hasRequiredProperties=e.isNullish=e.isArray=e.isObject=e.isBoolean=e.isNumber=e.isString=e.createValidator=void 0;const r=(x,N)=>E=>{try{return x(E)?{isValid:!0,data:E}:{isValid:!1,error:`Invalid ${N}`,data:null}}catch(A){return{isValid:!1,error:`Validation error for ${N}: ${A instanceof Error?A.message:"Unknown error"}`,data:null}}};e.createValidator=r;const a=x=>typeof x=="string";e.isString=a;const n=x=>typeof x=="number"&&!isNaN(x);e.isNumber=n;const o=x=>typeof x=="boolean";e.isBoolean=o;const s=x=>typeof x=="object"&&x!==null&&!Array.isArray(x);e.isObject=s;const l=x=>Array.isArray(x);e.isArray=l;const i=x=>x==null;e.isNullish=i;const d=(x,N)=>(0,e.isObject)(x)?N.every(E=>E in x):!1;e.hasRequiredProperties=d;const c=(x,N)=>(0,e.isArray)(x)?x.every(N):!1;e.validateArray=c;const h=x=>N=>N===void 0||x(N);e.optional=h;const g=x=>(0,e.isObject)(x)&&(0,e.isBoolean)(x.success);e.isApiResponse=g;const y=(x,N)=>!(0,e.isApiResponse)(x)||!x.success?!1:N&&"data"in x?N(x.data):!0;e.isSuccessResponse=y;const m=x=>(0,e.isApiResponse)(x)&&!x.success&&"error"in x&&(0,e.isString)(x.error);e.isErrorResponse=m;const b=x=>{if(!(0,e.isString)(x))return!1;const N=new Date(x);return!isNaN(N.getTime())};e.isValidDate=b;const v=x=>(0,e.isString)(x)?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x):!1;e.isEmail=v;const w=x=>{if(!(0,e.isString)(x))return!1;try{return new URL(x),!0}catch{return!1}};e.isUrl=w;const S=(x,N)=>(E,A=N)=>{if(!x(E))throw new TypeError(`Invalid ${A}: expected ${N}`)};e.createAssertion=S;const k=(x,N)=>{try{const E=JSON.parse(x);return N?N(E)?{isValid:!0,data:E}:{isValid:!1,error:"Parsed JSON does not match expected type",data:null}:{isValid:!0,data:E}}catch(E){return{isValid:!1,error:`JSON parse error: ${E instanceof Error?E.message:"Unknown error"}`,data:null}}};e.parseJson=k})(_r)),_r}var oa;function $s(){return oa||(oa=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateArray=e.parseJson=e.optional=e.isValidDate=e.isUrl=e.isSuccessResponse=e.isString=e.isObject=e.isNumber=e.isNullish=e.isErrorResponse=e.isEmail=e.isBoolean=e.isArray=e.isApiResponse=e.hasRequiredProperties=e.createValidator=e.createAssertion=e.Web3UsernameValidator=void 0;var r=Fs();Object.defineProperty(e,"Web3UsernameValidator",{enumerable:!0,get:function(){return r.Web3UsernameValidator}});var a=Ws();Object.defineProperty(e,"createAssertion",{enumerable:!0,get:function(){return a.createAssertion}}),Object.defineProperty(e,"createValidator",{enumerable:!0,get:function(){return a.createValidator}}),Object.defineProperty(e,"hasRequiredProperties",{enumerable:!0,get:function(){return a.hasRequiredProperties}}),Object.defineProperty(e,"isApiResponse",{enumerable:!0,get:function(){return a.isApiResponse}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return a.isArray}}),Object.defineProperty(e,"isBoolean",{enumerable:!0,get:function(){return a.isBoolean}}),Object.defineProperty(e,"isEmail",{enumerable:!0,get:function(){return a.isEmail}}),Object.defineProperty(e,"isErrorResponse",{enumerable:!0,get:function(){return a.isErrorResponse}}),Object.defineProperty(e,"isNullish",{enumerable:!0,get:function(){return a.isNullish}}),Object.defineProperty(e,"isNumber",{enumerable:!0,get:function(){return a.isNumber}}),Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return a.isObject}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return a.isString}}),Object.defineProperty(e,"isSuccessResponse",{enumerable:!0,get:function(){return a.isSuccessResponse}}),Object.defineProperty(e,"isUrl",{enumerable:!0,get:function(){return a.isUrl}}),Object.defineProperty(e,"isValidDate",{enumerable:!0,get:function(){return a.isValidDate}}),Object.defineProperty(e,"optional",{enumerable:!0,get:function(){return a.optional}}),Object.defineProperty(e,"parseJson",{enumerable:!0,get:function(){return a.parseJson}}),Object.defineProperty(e,"validateArray",{enumerable:!0,get:function(){return a.validateArray}})})(jr)),jr}var zr={},ee={},sa;function Vs(){if(sa)return ee;sa=1,Object.defineProperty(ee,"__esModule",{value:!0}),ee.createMultiChainId=e,ee.createUserMultiChainId=r,ee.createChainStatsId=a,ee.createDelegationId=n,ee.normalizeAddress=o,ee.formatBigInt=s,ee.isZeroAddress=l,ee.isTestNet=i,ee.validateEventArgs=d;function e(c,h,g){return`${c}-${h}-${g}`}function r(c,h){return`${c}-${h.toLowerCase()}`}function a(c){return`${c}-global`}function n(c,h){return`${c.toLowerCase()}-${h}`}function o(c){return c.toLowerCase()}function s(c,h=18){const g=BigInt(10**h),y=c/g,m=c%g;return m===0n?y.toString():`${y}.${m.toString().padStart(h,"0").replace(/0+$/,"")}`}function l(c){return c.toLowerCase()==="0x0000000000000000000000000000000000000000"}function i(c){const h=new Set([31337,11155111,80001,80002,421614,11155420,84532,43113]),g=new Set([-102,-103,-104]);return h.has(c)||g.has(c)}function d(c,h){for(const g of h)if(c[g]===void 0||c[g]===null)return console.error(`❌ Missing required field: ${String(g)}`),!1;return!0}return ee}var la;function Hs(){return la||(la=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateEventArgs=e.normalizeAddress=e.isZeroAddress=e.isTestNet=e.formatBigInt=e.createUserMultiChainId=e.createMultiChainId=e.createDelegationId=e.createChainStatsId=e.isSolanaAddress=e.isEvmAddress=e.parseEmailAddress=e.isValidWalletAddress=e.isValidSignature=e.isSNSName=e.isENSName=e.getChainDisplayName=e.getAddressType=e.formatWalletAddress=e.AddressType=void 0;var r=_t();Object.defineProperty(e,"AddressType",{enumerable:!0,get:function(){return r.AddressType}}),Object.defineProperty(e,"formatWalletAddress",{enumerable:!0,get:function(){return r.formatWalletAddress}}),Object.defineProperty(e,"getAddressType",{enumerable:!0,get:function(){return r.getAddressType}}),Object.defineProperty(e,"getChainDisplayName",{enumerable:!0,get:function(){return r.getChainDisplayName}}),Object.defineProperty(e,"isENSName",{enumerable:!0,get:function(){return r.isENSName}}),Object.defineProperty(e,"isSNSName",{enumerable:!0,get:function(){return r.isSNSName}}),Object.defineProperty(e,"isValidSignature",{enumerable:!0,get:function(){return r.isValidSignature}}),Object.defineProperty(e,"isValidWalletAddress",{enumerable:!0,get:function(){return r.isValidWalletAddress}}),Object.defineProperty(e,"parseEmailAddress",{enumerable:!0,get:function(){return r.parseEmailAddress}});var a=Ir();Object.defineProperty(e,"isEvmAddress",{enumerable:!0,get:function(){return a.isEvmAddress}}),Object.defineProperty(e,"isSolanaAddress",{enumerable:!0,get:function(){return a.isSolanaAddress}});var n=Vs();Object.defineProperty(e,"createChainStatsId",{enumerable:!0,get:function(){return n.createChainStatsId}}),Object.defineProperty(e,"createDelegationId",{enumerable:!0,get:function(){return n.createDelegationId}}),Object.defineProperty(e,"createMultiChainId",{enumerable:!0,get:function(){return n.createMultiChainId}}),Object.defineProperty(e,"createUserMultiChainId",{enumerable:!0,get:function(){return n.createUserMultiChainId}}),Object.defineProperty(e,"formatBigInt",{enumerable:!0,get:function(){return n.formatBigInt}}),Object.defineProperty(e,"isTestNet",{enumerable:!0,get:function(){return n.isTestNet}}),Object.defineProperty(e,"isZeroAddress",{enumerable:!0,get:function(){return n.isZeroAddress}}),Object.defineProperty(e,"normalizeAddress",{enumerable:!0,get:function(){return n.normalizeAddress}}),Object.defineProperty(e,"validateEventArgs",{enumerable:!0,get:function(){return n.validateEventArgs}})})(zr)),zr}var Br={},te={},ia;function qs(){if(ia)return te;ia=1,Object.defineProperty(te,"__esModule",{value:!0}),te.generateAuthMessage=r,te.isAuthExpired=a,te.getAuthStatusText=n,te.canAccessProtectedFeatures=o,te.isAuthStatusConnected=s,te.generateNonce=l,te.extractNonceFromMessage=i,te.isValidNonce=d;const e=Pe();function r(c,h){const g=h||`${Date.now()}-${Math.random().toString(36).substr(2,9)}`;return`Authenticate with ${c}
22
- Nonce: ${g}`}function a(c,h=24){const g=new Date(c.getTime()+h*60*60*1e3);return new Date>g}function n(c){switch(c){case e.AuthStatus.DISCONNECTED:return"Not connected";case e.AuthStatus.CONNECTED:return"Connected - Please verify";case e.AuthStatus.VERIFIED:return"Authenticated";default:return"Unknown status"}}function o(c){return c===e.AuthStatus.VERIFIED}function s(c){return c===e.AuthStatus.CONNECTED||c===e.AuthStatus.VERIFIED}function l(){return`${Date.now()}-${Math.random().toString(36).substr(2,9)}`}function i(c){const h=c.match(/Nonce:\s*(.+)$/m);return h?h[1].trim():void 0}function d(c){if(!c||typeof c!="string"||c.length<10)return!1;const h=c.split("-");if(h.length>=2){const g=parseInt(h[0],10);if(!isNaN(g)){const y=Date.now()-864e5;if(g<y)return!1}}return!0}return te}var ca;function Gs(){return ca||(ca=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isValidNonce=e.isAuthStatusConnected=e.isAuthExpired=e.getAuthStatusText=e.generateNonce=e.generateAuthMessage=e.extractNonceFromMessage=e.canAccessProtectedFeatures=void 0;var r=qs();Object.defineProperty(e,"canAccessProtectedFeatures",{enumerable:!0,get:function(){return r.canAccessProtectedFeatures}}),Object.defineProperty(e,"extractNonceFromMessage",{enumerable:!0,get:function(){return r.extractNonceFromMessage}}),Object.defineProperty(e,"generateAuthMessage",{enumerable:!0,get:function(){return r.generateAuthMessage}}),Object.defineProperty(e,"generateNonce",{enumerable:!0,get:function(){return r.generateNonce}}),Object.defineProperty(e,"getAuthStatusText",{enumerable:!0,get:function(){return r.getAuthStatusText}}),Object.defineProperty(e,"isAuthExpired",{enumerable:!0,get:function(){return r.isAuthExpired}}),Object.defineProperty(e,"isAuthStatusConnected",{enumerable:!0,get:function(){return r.isAuthStatusConnected}}),Object.defineProperty(e,"isValidNonce",{enumerable:!0,get:function(){return r.isValidNonce}})})(Br)),Br}var Fr={},Wr={},da;function Ys(){return da||(da=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CLAIM_PERIOD_DAYS=e.USDC_DECIMALS=void 0,e.formatUSDC=r,e.parseUSDC=a,e.USDC_DECIMALS=6,e.CLAIM_PERIOD_DAYS=60;function r(n){return(n/Math.pow(10,e.USDC_DECIMALS)).toFixed(2)}function a(n){return Math.floor(parseFloat(n)*Math.pow(10,e.USDC_DECIMALS))}})(Wr)),Wr}var ae={},ua;function Ks(){if(ua)return ae;ua=1,Object.defineProperty(ae,"__esModule",{value:!0}),ae.formatEmailDate=e,ae.formatTimestamp=r,ae.formatRelativeTime=a,ae.parseDate=n,ae.isDateInRange=o,ae.addDays=s,ae.addHours=l;function e(i){const d=typeof i=="string"?new Date(i):i;if(isNaN(d.getTime()))return"Invalid date";const c=new Date,h=c.getTime()-d.getTime(),g=Math.floor(h/(1e3*60*60*24));return g===0?d.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}):g===1?"Yesterday":g<7?d.toLocaleDateString("en-US",{weekday:"long"}):d.getFullYear()===c.getFullYear()?d.toLocaleDateString("en-US",{month:"short",day:"numeric"}):d.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}function r(i){return new Date(i).toISOString()}function a(i){const d=typeof i=="string"||typeof i=="number"?new Date(i):i;if(isNaN(d.getTime()))return"Invalid date";const h=new Date().getTime()-d.getTime(),g=Math.floor(h/1e3),y=Math.floor(g/60),m=Math.floor(y/60),b=Math.floor(m/24),v=Math.floor(b/7),w=Math.floor(b/30),S=Math.floor(b/365);return g<60?"just now":y<60?y===1?"1 minute ago":`${y} minutes ago`:m<24?m===1?"1 hour ago":`${m} hours ago`:b<7?b===1?"1 day ago":`${b} days ago`:v<4?v===1?"1 week ago":`${v} weeks ago`:w<12?w===1?"1 month ago":`${w} months ago`:S===1?"1 year ago":`${S} years ago`}function n(i){try{const d=new Date(i);return isNaN(d.getTime())?null:d}catch{return null}}function o(i,d,c){return i>=d&&i<=c}function s(i,d){const c=new Date(i);return c.setDate(c.getDate()+d),c}function l(i,d){const c=new Date(i);return c.setHours(c.getHours()+d),c}return ae}var q={},ga;function Zs(){if(ga)return q;ga=1,Object.defineProperty(q,"__esModule",{value:!0}),q.truncate=e,q.capitalize=r,q.toTitleCase=a,q.toKebabCase=n,q.toCamelCase=o,q.toSnakeCase=s,q.normalizeWhitespace=l,q.isBlank=i,q.isNotBlank=d,q.escapeHtml=c,q.stripHtml=h,q.getInitials=g,q.formatBytes=y,q.randomString=m,q.pluralize=b,q.formatNumber=v;function e(w,S,k="..."){return!w||w.length<=S?w:w.slice(0,S-k.length)+k}function r(w){return w&&w.charAt(0).toUpperCase()+w.slice(1)}function a(w){return w&&w.toLowerCase().split(" ").map(S=>r(S)).join(" ")}function n(w){return w&&w.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function o(w){return w&&w.replace(/[-_\s]+(.)?/g,(S,k)=>k?k.toUpperCase():"").replace(/^./,S=>S.toLowerCase())}function s(w){return w&&w.replace(/([a-z])([A-Z])/g,"$1_$2").replace(/[\s-]+/g,"_").toLowerCase()}function l(w){return w&&w.replace(/\s+/g," ").trim()}function i(w){return!w||w.trim().length===0}function d(w){return!i(w)}function c(w){if(!w)return w;const S={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return w.replace(/[&<>"']/g,k=>S[k])}function h(w){return w&&w.replace(/<[^>]*>/g,"")}function g(w,S=2){return w?w.trim().split(/\s+/).slice(0,S).map(N=>N.charAt(0).toUpperCase()).join(""):""}function y(w,S=2){if(w===0)return"0 Bytes";const k=1024,x=S<0?0:S,N=["Bytes","KB","MB","GB","TB","PB"],E=Math.floor(Math.log(w)/Math.log(k));return parseFloat((w/Math.pow(k,E)).toFixed(x))+" "+N[E]}function m(w,S="alphanumeric"){let k;switch(S){case"alpha":k="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";break;case"numeric":k="0123456789";break;case"alphanumeric":k="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";break;case"hex":k="0123456789abcdef";break;default:k=S}let x="";for(let N=0;N<w;N++)x+=k.charAt(Math.floor(Math.random()*k.length));return x}function b(w,S,k){return w===1?S:k||`${S}s`}function v(w){return w.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}return q}var ha;function Xs(){return ha||(ha=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.truncate=e.toTitleCase=e.toSnakeCase=e.toKebabCase=e.toCamelCase=e.stripHtml=e.randomString=e.pluralize=e.normalizeWhitespace=e.isNotBlank=e.isBlank=e.getInitials=e.formatNumber=e.formatBytes=e.escapeHtml=e.capitalize=e.parseDate=e.isDateInRange=e.formatTimestamp=e.formatRelativeTime=e.formatEmailDate=e.addHours=e.addDays=e.parseUSDC=e.formatUSDC=e.USDC_DECIMALS=e.CLAIM_PERIOD_DAYS=void 0;var r=Ys();Object.defineProperty(e,"CLAIM_PERIOD_DAYS",{enumerable:!0,get:function(){return r.CLAIM_PERIOD_DAYS}}),Object.defineProperty(e,"USDC_DECIMALS",{enumerable:!0,get:function(){return r.USDC_DECIMALS}}),Object.defineProperty(e,"formatUSDC",{enumerable:!0,get:function(){return r.formatUSDC}}),Object.defineProperty(e,"parseUSDC",{enumerable:!0,get:function(){return r.parseUSDC}});var a=Ks();Object.defineProperty(e,"addDays",{enumerable:!0,get:function(){return a.addDays}}),Object.defineProperty(e,"addHours",{enumerable:!0,get:function(){return a.addHours}}),Object.defineProperty(e,"formatEmailDate",{enumerable:!0,get:function(){return a.formatEmailDate}}),Object.defineProperty(e,"formatRelativeTime",{enumerable:!0,get:function(){return a.formatRelativeTime}}),Object.defineProperty(e,"formatTimestamp",{enumerable:!0,get:function(){return a.formatTimestamp}}),Object.defineProperty(e,"isDateInRange",{enumerable:!0,get:function(){return a.isDateInRange}}),Object.defineProperty(e,"parseDate",{enumerable:!0,get:function(){return a.parseDate}});var n=Zs();Object.defineProperty(e,"capitalize",{enumerable:!0,get:function(){return n.capitalize}}),Object.defineProperty(e,"escapeHtml",{enumerable:!0,get:function(){return n.escapeHtml}}),Object.defineProperty(e,"formatBytes",{enumerable:!0,get:function(){return n.formatBytes}}),Object.defineProperty(e,"formatNumber",{enumerable:!0,get:function(){return n.formatNumber}}),Object.defineProperty(e,"getInitials",{enumerable:!0,get:function(){return n.getInitials}}),Object.defineProperty(e,"isBlank",{enumerable:!0,get:function(){return n.isBlank}}),Object.defineProperty(e,"isNotBlank",{enumerable:!0,get:function(){return n.isNotBlank}}),Object.defineProperty(e,"normalizeWhitespace",{enumerable:!0,get:function(){return n.normalizeWhitespace}}),Object.defineProperty(e,"pluralize",{enumerable:!0,get:function(){return n.pluralize}}),Object.defineProperty(e,"randomString",{enumerable:!0,get:function(){return n.randomString}}),Object.defineProperty(e,"stripHtml",{enumerable:!0,get:function(){return n.stripHtml}}),Object.defineProperty(e,"toCamelCase",{enumerable:!0,get:function(){return n.toCamelCase}}),Object.defineProperty(e,"toKebabCase",{enumerable:!0,get:function(){return n.toKebabCase}}),Object.defineProperty(e,"toSnakeCase",{enumerable:!0,get:function(){return n.toSnakeCase}}),Object.defineProperty(e,"toTitleCase",{enumerable:!0,get:function(){return n.toTitleCase}}),Object.defineProperty(e,"truncate",{enumerable:!0,get:function(){return n.truncate}})})(Fr)),Fr}var $r={},W={},fa;function Qs(){if(fa)return W;fa=1,Object.defineProperty(W,"__esModule",{value:!0}),W.Z_INDEX=W.ANIMATION=W.NETWORK_IDS=W.WALLET_NAMES=W.CONTACT_INFO=W.ROUTES=W.SUCCESS_MESSAGES=W.ERROR_MESSAGES=W.TIME_FORMAT=W.SUBSCRIPTION_TIERS=W.EMAIL_CONFIG=W.STORAGE_KEYS=W.CHAIN_TYPE=W.AUTH_STATUS=W.API_RETRY_DELAY=W.API_RETRY_ATTEMPTS=W.API_TIMEOUT=void 0;const e=3e4;W.API_TIMEOUT=e;const r=3;W.API_RETRY_ATTEMPTS=r;const a=1e3;W.API_RETRY_DELAY=a;const n={DISCONNECTED:"disconnected",CONNECTED:"connected",VERIFIED:"verified"};W.AUTH_STATUS=n;const o={EVM:"evm",SOLANA:"solana",UNKNOWN:"unknown"};W.CHAIN_TYPE=o;const s={AUTH_TOKEN:"authToken",USER_DATA:"userData",THEME:"theme",EMAIL_CACHE:"emailCache",WALLET_ADDRESS:"walletAddress",CHAIN_TYPE:"chainType"};W.STORAGE_KEYS=s;const l={MAX_ATTACHMENT_SIZE:25*1024*1024,MAX_RECIPIENTS:100,ITEMS_PER_PAGE:50,REFRESH_INTERVAL:6e4,NOTIFICATION_COOLDOWN:3e5};W.EMAIL_CONFIG=l;const i={FREE:"free",BASIC:"basic",PRO:"pro",ENTERPRISE:"enterprise"};W.SUBSCRIPTION_TIERS=i;const d={SHORT_DATE:"MMM d",FULL_DATE:"MMM d, yyyy",DATE_TIME:"MMM d, yyyy h:mm a",RELATIVE:"relative"};W.TIME_FORMAT=d;const c={WALLET_NOT_CONNECTED:"Please connect your wallet first",INVALID_ADDRESS:"Please enter a valid address",NETWORK_ERROR:"Network error. Please try again.",AUTHENTICATION_FAILED:"Authentication failed. Please sign in again.",TRANSACTION_FAILED:"Transaction failed. Please try again.",INSUFFICIENT_FUNDS:"Insufficient funds for this operation",RATE_LIMITED:"Too many requests. Please wait a moment.",SESSION_EXPIRED:"Your session has expired. Please sign in again.",PERMISSION_DENIED:"You do not have permission to perform this action"};W.ERROR_MESSAGES=c;const h={EMAIL_SENT:"Email sent successfully",EMAIL_DELETED:"Email deleted successfully",PREFERENCES_SAVED:"Preferences saved successfully",WALLET_CONNECTED:"Wallet connected successfully",AUTHENTICATION_SUCCESS:"Authentication successful",DELEGATION_SUCCESS:"Delegation successful",SUBSCRIPTION_ACTIVATED:"Subscription activated successfully"};W.SUCCESS_MESSAGES=h;const g={HOME:"/",ABOUT:"/about",CONNECT:"/connect",MAIL:"/mail",COMPOSE:"/mail/compose",PREFERENCES:"/preferences",TERMS:"/terms",PRIVACY:"/privacy",DOCUMENTATION:"/document",WEB3_USERS:"/web3-users",WEB3_PROJECTS:"/web3-projects"};W.ROUTES=g;const y={SUPPORT_EMAIL:"support@sudobility.com",CONTACT_EMAIL:"info@sudobility.com"};W.CONTACT_INFO=y;const m={METAMASK:"MetaMask",WALLETCONNECT:"WalletConnect",COINBASE:"Coinbase Wallet",PHANTOM:"Phantom",SAFE:"Safe",ARGENT:"Argent",RAINBOW:"Rainbow",TRUST:"Trust Wallet",LEDGER:"Ledger",TREZOR:"Trezor"};W.WALLET_NAMES=m;const b={ETHEREUM_MAINNET:1,POLYGON:137,ARBITRUM:42161,OPTIMISM:10,BASE:8453,SOLANA_MAINNET:"mainnet-beta",SOLANA_DEVNET:"devnet"};W.NETWORK_IDS=b;const v={FAST:150,NORMAL:300,SLOW:500,VERY_SLOW:1e3};W.ANIMATION=v;const w={DROPDOWN:10,OVERLAY:20,MODAL:30,POPOVER:40,TOOLTIP:50,TOAST:60};return W.Z_INDEX=w,W}var Ge={},ba;function Js(){return ba||(ba=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.STATUS_VALUES=void 0,Ge.STATUS_VALUES={SUCCESS:"success",PENDING:"pending",FAILED:"failed",ERROR:"error"}),Ge}var ma;function Rs(){return ma||(ma=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.STATUS_VALUES=e.Z_INDEX=e.ANIMATION=e.NETWORK_IDS=e.WALLET_NAMES=e.CONTACT_INFO=e.ROUTES=e.SUCCESS_MESSAGES=e.ERROR_MESSAGES=e.TIME_FORMAT=e.SUBSCRIPTION_TIERS=e.EMAIL_CONFIG=e.STORAGE_KEYS=e.CHAIN_TYPE=e.AUTH_STATUS=e.API_RETRY_DELAY=e.API_RETRY_ATTEMPTS=e.API_TIMEOUT=void 0;var r=Qs();Object.defineProperty(e,"API_TIMEOUT",{enumerable:!0,get:function(){return r.API_TIMEOUT}}),Object.defineProperty(e,"API_RETRY_ATTEMPTS",{enumerable:!0,get:function(){return r.API_RETRY_ATTEMPTS}}),Object.defineProperty(e,"API_RETRY_DELAY",{enumerable:!0,get:function(){return r.API_RETRY_DELAY}}),Object.defineProperty(e,"AUTH_STATUS",{enumerable:!0,get:function(){return r.AUTH_STATUS}}),Object.defineProperty(e,"CHAIN_TYPE",{enumerable:!0,get:function(){return r.CHAIN_TYPE}}),Object.defineProperty(e,"STORAGE_KEYS",{enumerable:!0,get:function(){return r.STORAGE_KEYS}}),Object.defineProperty(e,"EMAIL_CONFIG",{enumerable:!0,get:function(){return r.EMAIL_CONFIG}}),Object.defineProperty(e,"SUBSCRIPTION_TIERS",{enumerable:!0,get:function(){return r.SUBSCRIPTION_TIERS}}),Object.defineProperty(e,"TIME_FORMAT",{enumerable:!0,get:function(){return r.TIME_FORMAT}}),Object.defineProperty(e,"ERROR_MESSAGES",{enumerable:!0,get:function(){return r.ERROR_MESSAGES}}),Object.defineProperty(e,"SUCCESS_MESSAGES",{enumerable:!0,get:function(){return r.SUCCESS_MESSAGES}}),Object.defineProperty(e,"ROUTES",{enumerable:!0,get:function(){return r.ROUTES}}),Object.defineProperty(e,"CONTACT_INFO",{enumerable:!0,get:function(){return r.CONTACT_INFO}}),Object.defineProperty(e,"WALLET_NAMES",{enumerable:!0,get:function(){return r.WALLET_NAMES}}),Object.defineProperty(e,"NETWORK_IDS",{enumerable:!0,get:function(){return r.NETWORK_IDS}}),Object.defineProperty(e,"ANIMATION",{enumerable:!0,get:function(){return r.ANIMATION}}),Object.defineProperty(e,"Z_INDEX",{enumerable:!0,get:function(){return r.Z_INDEX}});var a=Js();Object.defineProperty(e,"STATUS_VALUES",{enumerable:!0,get:function(){return a.STATUS_VALUES}})})($r)),$r}var Vr={},Y={},ya;function el(){if(ya)return Y;ya=1,Object.defineProperty(Y,"__esModule",{value:!0}),Y.storageLogger=Y.ensLogger=Y.contractLogger=Y.apiLogger=Y.authLogger=Y.logger=Y.LogLevel=void 0;var e;(function(d){d.ERROR="error",d.WARN="warn",d.INFO="info",d.DEBUG="debug"})(e||(Y.LogLevel=e={}));class r{constructor(){this.isDevelopment=process.env.NODE_ENV==="development"}formatTimestamp(){return new Date().toISOString()}formatMessage(c,h,g){const y=this.formatTimestamp(),m=g?` [${g}]`:"";return`[${y}]${m} ${h}`}shouldLog(c){return this.isDevelopment?!0:c===e.ERROR||c===e.WARN}error(c,h,g){this.shouldLog(e.ERROR)&&(console.error(this.formatMessage(e.ERROR,c,h)),g&&console.error(g))}warn(c,h,g){this.shouldLog(e.WARN)&&(console.warn(this.formatMessage(e.WARN,c,h)),g&&console.warn(g))}info(c,h,g){this.shouldLog(e.INFO)&&(console.log(this.formatMessage(e.INFO,c,h)),g&&console.log(g))}debug(c,h,g){this.shouldLog(e.DEBUG)&&(console.log(this.formatMessage(e.DEBUG,c,h)),g&&console.log(g))}withContext(c){return{error:(h,g)=>this.error(h,c,g),warn:(h,g)=>this.warn(h,c,g),info:(h,g)=>this.info(h,c,g),debug:(h,g)=>this.debug(h,c,g)}}}const a=new r;Y.logger=a;const n=a.withContext("AUTH");Y.authLogger=n;const o=a.withContext("API");Y.apiLogger=o;const s=a.withContext("CONTRACT");Y.contractLogger=s;const l=a.withContext("ENS");Y.ensLogger=l;const i=a.withContext("STORAGE");return Y.storageLogger=i,Y}var pa;function va(){return pa||(pa=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.storageLogger=e.ensLogger=e.contractLogger=e.apiLogger=e.authLogger=e.logger=e.LogLevel=void 0;var r=el();Object.defineProperty(e,"LogLevel",{enumerable:!0,get:function(){return r.LogLevel}}),Object.defineProperty(e,"logger",{enumerable:!0,get:function(){return r.logger}}),Object.defineProperty(e,"authLogger",{enumerable:!0,get:function(){return r.authLogger}}),Object.defineProperty(e,"apiLogger",{enumerable:!0,get:function(){return r.apiLogger}}),Object.defineProperty(e,"contractLogger",{enumerable:!0,get:function(){return r.contractLogger}}),Object.defineProperty(e,"ensLogger",{enumerable:!0,get:function(){return r.ensLogger}}),Object.defineProperty(e,"storageLogger",{enumerable:!0,get:function(){return r.storageLogger}})})(Vr)),Vr}var Hr={},Ce={},wa;function rl(){if(wa)return Ce;wa=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.createURLSearchParams=r,Ce.createSearchParams=a,Ce.searchParamsToString=n,Ce.parseSearchParams=o;class e{constructor(l){if(this.params=new Map,l)if(typeof l=="string")this.parseString(l);else if(Array.isArray(l))for(const[i,d]of l)this.append(i,d);else for(const[i,d]of Object.entries(l))d!==void 0&&this.append(i,d)}parseString(l){const i=l.startsWith("?")?l.slice(1):l;if(i)for(const d of i.split("&")){const[c,h=""]=d.split("=");c&&this.append(decodeURIComponent(c),decodeURIComponent(h))}}append(l,i){this.params.has(l)||this.params.set(l,[]);const d=this.params.get(l);d&&d.push(i)}delete(l){this.params.delete(l)}get(l){const i=this.params.get(l);return i&&i.length>0?i[0]:null}getAll(l){return this.params.get(l)||[]}has(l){return this.params.has(l)}set(l,i){this.params.set(l,[i])}toString(){const l=[];return this.params.forEach((i,d)=>{for(const c of i)l.push(`${encodeURIComponent(d)}=${encodeURIComponent(c)}`)}),l.join("&")}forEach(l){this.params.forEach((i,d)=>{for(const c of i)l(c,d)})}}function r(s){return typeof URLSearchParams<"u"?new URLSearchParams(s):new e(s)}function a(s){const l=r(void 0);for(const[i,d]of Object.entries(s))d!=null&&l.append(i,String(d));return l}function n(s){return s.toString()}function o(s){const l=r(s),i={};return l.forEach((d,c)=>{i[c]=d}),i}return Ce}var ka;function tl(){return ka||(ka=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.parseSearchParams=e.searchParamsToString=e.createSearchParams=e.createURLSearchParams=void 0;var r=rl();Object.defineProperty(e,"createURLSearchParams",{enumerable:!0,get:function(){return r.createURLSearchParams}}),Object.defineProperty(e,"createSearchParams",{enumerable:!0,get:function(){return r.createSearchParams}}),Object.defineProperty(e,"searchParamsToString",{enumerable:!0,get:function(){return r.searchParamsToString}}),Object.defineProperty(e,"parseSearchParams",{enumerable:!0,get:function(){return r.parseSearchParams}})})(Hr)),Hr}var K={},xa;function al(){if(xa)return K;xa=1,Object.defineProperty(K,"__esModule",{value:!0}),K.debounceAsync=K.clearExpiredCache=K.withCache=K.withTimeout=K.safeParallel=K.withLoadingState=K.safeAsync=void 0;const e=va(),r=async(h,g)=>{try{return{data:await h(),success:!0}}catch(y){const m=y instanceof Error?y:new Error(String(y));return e.logger.error(`Async operation failed: ${m.message}`,g,y),{error:m,success:!1}}};K.safeAsync=r;const a=async(h,g,y,m)=>{g(!0),y(null);try{return await h()}catch(b){const v=b instanceof Error?b.message:String(b);y(v),e.logger.error(`Operation failed: ${v}`,m,b);return}finally{g(!1)}};K.withLoadingState=a;const n=async(h,g)=>{try{return{data:await Promise.all(h.map(m=>m())),success:!0}}catch(y){const m=y instanceof Error?y:new Error(String(y));return e.logger.error(`Parallel operations failed: ${m.message}`,g,y),{error:m,success:!1}}};K.safeParallel=n;const o=async(h,g,y)=>{const m=new Promise((b,v)=>setTimeout(()=>v(new Error(`Operation timed out after ${g}ms`)),g));try{return await Promise.race([h(),m])}catch(b){throw e.logger.error("Timeout operation failed",y,b),b}};K.withTimeout=o;const s=new Map,l=async(h,g,y=300*1e3)=>{const m=s.get(h),b=Date.now();if(m&&b-m.timestamp<m.ttl)return m.data;const v=await g();return s.set(h,{data:v,timestamp:b,ttl:y}),v};K.withCache=l;const i=()=>{const h=Date.now();for(const[g,y]of s.entries())h-y.timestamp>=y.ttl&&s.delete(g)};K.clearExpiredCache=i;const d=new Map,c=(h,g,y)=>(...m)=>new Promise(b=>{const v=d.get(y);v&&clearTimeout(v);const w=setTimeout(async()=>{d.delete(y);try{const S=await h(...m);b(S)}catch(S){e.logger.error("Debounced operation failed",y,S),b(void 0)}},g);d.set(y,w)});return K.debounceAsync=c,K}var Na;function Ca(){return Na||(Na=1,(function(e){var r=Ne&&Ne.__createBinding||(Object.create?(function(n,o,s,l){l===void 0&&(l=s);var i=Object.getOwnPropertyDescriptor(o,s);(!i||("get"in i?!o.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(n,l,i)}):(function(n,o,s,l){l===void 0&&(l=s),n[l]=o[s]})),a=Ne&&Ne.__exportStar||function(n,o){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&r(o,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),a($s(),e),a(Hs(),e),a(Gs(),e),a(Xs(),e),a(Rs(),e),a(va(),e),a(tl(),e),a(al(),e)})(Ne)),Ne}var Sa;function nl(){return Sa||(Sa=1,(function(e){var r=ye&&ye.__createBinding||(Object.create?(function(s,l,i,d){d===void 0&&(d=i);var c=Object.getOwnPropertyDescriptor(l,i);(!c||("get"in c?!l.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return l[i]}}),Object.defineProperty(s,d,c)}):(function(s,l,i,d){d===void 0&&(d=i),s[d]=l[i]})),a=ye&&ye.__exportStar||function(s,l){for(var i in s)i!=="default"&&!Object.prototype.hasOwnProperty.call(l,i)&&r(l,s,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProcessedEventName=e.ContractType=e.StorageType=e.WalletType=e.ChainType=e.AnalyticsEvent=e.TransactionStatus=e.MessageType=e.InfoType=e.NotificationType=e.RequestStatus=e.MobileView=e.EmailComposeType=e.FontSize=e.Theme=e.Chain=e.AuthStatus=e.debounceAsync=e.clearExpiredCache=e.withCache=e.withTimeout=e.safeParallel=e.withLoadingState=e.safeAsync=void 0,a(ta(),e),a(Ca(),e);var n=Ca();Object.defineProperty(e,"safeAsync",{enumerable:!0,get:function(){return n.safeAsync}}),Object.defineProperty(e,"withLoadingState",{enumerable:!0,get:function(){return n.withLoadingState}}),Object.defineProperty(e,"safeParallel",{enumerable:!0,get:function(){return n.safeParallel}}),Object.defineProperty(e,"withTimeout",{enumerable:!0,get:function(){return n.withTimeout}}),Object.defineProperty(e,"withCache",{enumerable:!0,get:function(){return n.withCache}}),Object.defineProperty(e,"clearExpiredCache",{enumerable:!0,get:function(){return n.clearExpiredCache}}),Object.defineProperty(e,"debounceAsync",{enumerable:!0,get:function(){return n.debounceAsync}});var o=ta();Object.defineProperty(e,"AuthStatus",{enumerable:!0,get:function(){return o.AuthStatus}}),Object.defineProperty(e,"Chain",{enumerable:!0,get:function(){return o.Chain}}),Object.defineProperty(e,"Theme",{enumerable:!0,get:function(){return o.Theme}}),Object.defineProperty(e,"FontSize",{enumerable:!0,get:function(){return o.FontSize}}),Object.defineProperty(e,"EmailComposeType",{enumerable:!0,get:function(){return o.EmailComposeType}}),Object.defineProperty(e,"MobileView",{enumerable:!0,get:function(){return o.MobileView}}),Object.defineProperty(e,"RequestStatus",{enumerable:!0,get:function(){return o.RequestStatus}}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:function(){return o.NotificationType}}),Object.defineProperty(e,"InfoType",{enumerable:!0,get:function(){return o.InfoType}}),Object.defineProperty(e,"MessageType",{enumerable:!0,get:function(){return o.MessageType}}),Object.defineProperty(e,"TransactionStatus",{enumerable:!0,get:function(){return o.TransactionStatus}}),Object.defineProperty(e,"AnalyticsEvent",{enumerable:!0,get:function(){return o.AnalyticsEvent}}),Object.defineProperty(e,"ChainType",{enumerable:!0,get:function(){return o.ChainType}}),Object.defineProperty(e,"WalletType",{enumerable:!0,get:function(){return o.WalletType}}),Object.defineProperty(e,"StorageType",{enumerable:!0,get:function(){return o.StorageType}}),Object.defineProperty(e,"ContractType",{enumerable:!0,get:function(){return o.ContractType}}),Object.defineProperty(e,"ProcessedEventName",{enumerable:!0,get:function(){return o.ProcessedEventName}})})(ye)),ye}var ge=nl();const ol=e=>{switch(e){case"verified":case"success":return Le("success");case"connected":case"warning":return Le("warning");case"disconnected":case"error":return Le("error");case"pending":return Le("info");default:return Le("neutral")}},sl=e=>{switch(e){case"sm":return"w-1.5 h-1.5";case"lg":return"w-3 h-3";default:return"w-2 h-2"}},ll=({status:e,label:r,showDot:a=!0,size:n="md"})=>{const s=r||{verified:"Verified",connected:"Connected",disconnected:"Disconnected",pending:"Pending",error:"Error",success:"Success",warning:"Warning"}[e],i=((h,g)=>{const y={sm:"small",md:"default",lg:"large"},b={verified:"success",success:"success",connected:"warning",warning:"warning",disconnected:"error",error:"error",pending:"primary"}[h]||"default",v=y[g];return v==="default"?_.badge[b]():_.badge[v](b)})(e,n),d=ol(e),c=sl(n);return t.jsxs("span",{className:i,children:[a&&t.jsx("span",{className:`inline-block ${c} rounded-full ${d} mr-1`}),s]})},il=({chainType:e,size:r="md"})=>{if(!e)return null;const a=e===ge.ChainType.SOLANA?"SOL":"ETH",o={sm:"small",md:"default",lg:"large"}[r],s=()=>{const l=e===ge.ChainType.SOLANA?"solana":"ethereum";return o==="default"?_.badge[l]():_.badge[o](l)};return t.jsx("span",{className:s(),children:a})},cl={xs:"w-1.5 h-1.5",sm:"w-2 h-2",md:"w-3 h-3",lg:"w-4 h-4"},dl=({status:e,size:r="sm",pulse:a=!1,className:n})=>t.jsx("div",{className:f("rounded-full flex-shrink-0",Le(e),cl[r],a&&"animate-pulse",n)}),ul=({className:e,children:r,disabled:a=!1,onClick:n})=>t.jsx("div",{className:f("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",a&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:a?void 0:n,role:"region","aria-label":"UstatusUpipeline",children:r||"UstatusUpipeline Component"}),nr=G.forwardRef(({className:e,type:r,onTrack:a,trackingLabel:n,componentName:o,onBlur:s,onChange:l,...i},d)=>{const c=g=>{a&&a({action:"blur",trackingLabel:n,componentName:o}),s?.(g)},h=g=>{a&&a({action:"change",trackingLabel:n,componentName:o}),l?.(g)};return t.jsx("input",{type:r,className:f(_.input.default(),e),ref:d,onBlur:c,onChange:h,...i})});nr.displayName="Input";const gl=({value:e,onChange:r,placeholder:a,rows:n=4,disabled:o=!1,readOnly:s=!1,showCount:l=!1,maxLength:i,resize:d="vertical",size:c="md",className:h,textareaProps:g,onTrack:y,trackingLabel:m,componentName:b})=>{const v={sm:"p-2 text-sm",md:"p-3 text-base",lg:"p-4 text-lg"},w={none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"},S=E=>{const A=E.target.value;i&&A.length>i||(y&&y({action:"change",trackingLabel:m,componentName:b}),r(A))},k=()=>{y&&y({action:"blur",trackingLabel:m,componentName:b})},x=e.length,N=l||i!==void 0;return t.jsxs("div",{className:f("w-full",h),children:[t.jsx("textarea",{value:e,onChange:S,onBlur:k,placeholder:a,rows:n,disabled:o,readOnly:s,maxLength:i,className:f("w-full rounded-lg border","bg-white dark:bg-gray-800","text-gray-900 dark:text-gray-100","placeholder-gray-400 dark:placeholder-gray-500","border-gray-300 dark:border-gray-600","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent","transition-colors duration-200",v[c],w[d],o&&"opacity-50 cursor-not-allowed",s&&"bg-gray-50 dark:bg-gray-900 cursor-default"),...g}),N&&t.jsx("div",{className:"flex justify-end mt-1",children:t.jsxs("span",{className:f("text-xs",i&&x>i*.9?"text-yellow-600 dark:text-yellow-400":"text-gray-500 dark:text-gray-400",i&&x>=i&&"text-red-600 dark:text-red-400"),children:[x,i&&` / ${i}`]})})]})},hl=({value:e,onChange:r,min:a,max:n,step:o=1,disabled:s=!1,showSteppers:l=!1,stepperPosition:i="right",placeholder:d,size:c="md",className:h,inputProps:g,onTrack:y,trackingLabel:m,componentName:b})=>{const w={sm:{input:"py-1.5 px-3 text-sm",button:"w-6 h-6",icon:"h-3 w-3"},md:{input:"py-2 px-3 text-base",button:"w-8 h-8",icon:"h-4 w-4"},lg:{input:"py-3 px-4 text-lg",button:"w-10 h-10",icon:"h-5 w-5"}}[c],S=L=>({action:L,trackingLabel:m,componentName:b}),k=L=>{const O=parseFloat(L.target.value);if(isNaN(O)){if(L.target.value===""){const M=a??0;y&&y(S("input")),r(M)}}else{const M=x(O);y&&y(S("input")),r(M)}},x=L=>{let O=L;return a!==void 0&&O<a&&(O=a),n!==void 0&&O>n&&(O=n),O},N=()=>{const L=x(e+o);y&&y(S("increment")),r(L)},E=()=>{const L=x(e-o);y&&y(S("decrement")),r(L)},A=n===void 0||e<n,C=a===void 0||e>a,I=({onClick:L,icon:O,disabled:M,ariaLabel:D})=>t.jsx("button",{type:"button",onClick:L,disabled:s||M,"aria-label":D,className:f("inline-flex items-center justify-center","border border-gray-300 dark:border-gray-600","bg-white dark:bg-gray-800","text-gray-700 dark:text-gray-300","hover:bg-gray-50 dark:hover:bg-gray-700","focus:outline-none focus:ring-2 focus:ring-blue-500","transition-colors",w.button,(s||M)&&"opacity-50 cursor-not-allowed"),children:O});return l&&i==="sides"?t.jsxs("div",{className:f("inline-flex items-stretch",h),children:[t.jsx(I,{onClick:E,disabled:!C,icon:t.jsx(P.MinusIcon,{className:w.icon}),ariaLabel:"Decrement"}),t.jsx("input",{type:"number",value:e,onChange:k,min:a,max:n,step:o,disabled:s,placeholder:d,className:f("border-x-0 text-center","border-gray-300 dark:border-gray-600","bg-white dark:bg-gray-800","text-gray-900 dark:text-gray-100","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:z-10","transition-colors",w.input,s&&"opacity-50 cursor-not-allowed","[appearance:textfield]","[&::-webkit-outer-spin-button]:appearance-none","[&::-webkit-inner-spin-button]:appearance-none"),...g}),t.jsx(I,{onClick:N,disabled:!A,icon:t.jsx(P.PlusIcon,{className:w.icon}),ariaLabel:"Increment"})]}):l&&i==="right"?t.jsxs("div",{className:f("inline-flex items-stretch gap-2",h),children:[t.jsx("input",{type:"number",value:e,onChange:k,min:a,max:n,step:o,disabled:s,placeholder:d,className:f("rounded-lg border","border-gray-300 dark:border-gray-600","bg-white dark:bg-gray-800","text-gray-900 dark:text-gray-100","placeholder-gray-400 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent","transition-colors",w.input,s&&"opacity-50 cursor-not-allowed","[appearance:textfield]","[&::-webkit-outer-spin-button]:appearance-none","[&::-webkit-inner-spin-button]:appearance-none"),...g}),t.jsxs("div",{className:"inline-flex flex-col gap-0.5",children:[t.jsx("button",{type:"button",onClick:N,disabled:s||!A,"aria-label":"Increment",className:f("inline-flex items-center justify-center","rounded border border-gray-300 dark:border-gray-600","bg-white dark:bg-gray-800","text-gray-700 dark:text-gray-300","hover:bg-gray-50 dark:hover:bg-gray-700","focus:outline-none focus:ring-2 focus:ring-blue-500","transition-colors","flex-1",w.button.replace(/h-\d+/,"h-auto"),(s||!A)&&"opacity-50 cursor-not-allowed"),children:t.jsx(P.PlusIcon,{className:f(w.icon,"w-3 h-3")})}),t.jsx("button",{type:"button",onClick:E,disabled:s||!C,"aria-label":"Decrement",className:f("inline-flex items-center justify-center","rounded border border-gray-300 dark:border-gray-600","bg-white dark:bg-gray-800","text-gray-700 dark:text-gray-300","hover:bg-gray-50 dark:hover:bg-gray-700","focus:outline-none focus:ring-2 focus:ring-blue-500","transition-colors","flex-1",w.button.replace(/h-\d+/,"h-auto"),(s||!C)&&"opacity-50 cursor-not-allowed"),children:t.jsx(P.MinusIcon,{className:f(w.icon,"w-3 h-3")})})]})]}):t.jsx("input",{type:"number",value:e,onChange:k,min:a,max:n,step:o,disabled:s,placeholder:d,className:f("rounded-lg border","border-gray-300 dark:border-gray-600","bg-white dark:bg-gray-800","text-gray-900 dark:text-gray-100","placeholder-gray-400 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent","transition-colors",w.input,s&&"opacity-50 cursor-not-allowed",h),...g})},fl=({value:e,onChange:r,placeholder:a="Search...",autoFocus:n=!1,disabled:o=!1,size:s="md",showIcon:l=!0,showClear:i=!0,loading:d=!1,className:c,inputProps:h,onTrack:g,trackingLabel:y,componentName:m})=>{const[b,v]=p.useState(""),w=e!==void 0?e:b,S=e!==void 0,x={sm:{input:"py-1.5 text-sm",icon:"h-4 w-4",padding:l?"pl-8 pr-8":"px-3",iconLeft:"left-0 pl-2.5",iconRight:"right-0 pr-2.5"},md:{input:"py-2 text-base",icon:"h-5 w-5",padding:l?"pl-10 pr-10":"px-3",iconLeft:"left-0 pl-3",iconRight:"right-0 pr-3"},lg:{input:"py-3 text-lg",icon:"h-6 w-6",padding:l?"pl-12 pr-12":"px-4",iconLeft:"left-0 pl-3.5",iconRight:"right-0 pr-3.5"}}[s],N=p.useCallback(C=>{const I=C.target.value;S||v(I),r?.(I)},[r,S]),E=p.useCallback(()=>{g&&g({action:"search",trackingLabel:y,componentName:m})},[g,y,m]),A=p.useCallback(()=>{S||v(""),g&&g({action:"clear",trackingLabel:y,componentName:m}),r?.("")},[r,S,g,y,m]);return t.jsxs("div",{className:f("relative w-full",c),children:[l&&t.jsx("div",{className:f("absolute inset-y-0 flex items-center pointer-events-none",x.iconLeft),children:t.jsx(P.MagnifyingGlassIcon,{className:f(x.icon,"text-gray-400 dark:text-gray-500")})}),t.jsx("input",{type:"text",value:w,onChange:N,onBlur:E,placeholder:a,autoFocus:n,disabled:o||d,className:f("block w-full rounded-lg border","bg-white dark:bg-gray-800","text-gray-900 dark:text-gray-100","placeholder-gray-400 dark:placeholder-gray-500","border-gray-300 dark:border-gray-600","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent","transition-colors duration-200",x.input,x.padding,o&&"opacity-50 cursor-not-allowed",d&&"opacity-60"),...h}),i&&w&&!d&&t.jsx("button",{type:"button",onClick:A,disabled:o,className:f("absolute inset-y-0 flex items-center","text-gray-400 hover:text-gray-600 dark:hover:text-gray-300","transition-colors",o?"cursor-not-allowed":"cursor-pointer",x.iconRight),"aria-label":"Clear search",children:t.jsx(P.XMarkIcon,{className:x.icon})}),d&&t.jsx("div",{className:f("absolute inset-y-0 flex items-center",x.iconRight),children:t.jsxs("svg",{className:f(x.icon,"animate-spin text-gray-400"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),t.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"})]})})]})},bl=({value:e,onChange:r,type:a="date",min:n,max:o,disabled:s=!1,showIcon:l=!1,placeholder:i,size:d="md",className:c,inputProps:h})=>{const y={sm:{input:"py-1.5 text-sm",icon:"h-4 w-4",padding:l?"pl-8 pr-3":"px-3",iconLeft:"left-0 pl-2.5"},md:{input:"py-2 text-base",icon:"h-5 w-5",padding:l?"pl-10 pr-4":"px-4",iconLeft:"left-0 pl-3"},lg:{input:"py-3 text-lg",icon:"h-6 w-6",padding:l?"pl-12 pr-4":"px-4",iconLeft:"left-0 pl-3.5"}}[d],m=e instanceof Date?ml(e,a):e,b=v=>{r(v.target.value)};return t.jsxs("div",{className:f("relative",c),children:[l&&t.jsx("div",{className:f("absolute inset-y-0 flex items-center pointer-events-none",y.iconLeft),children:t.jsx(P.CalendarIcon,{className:f(y.icon,"text-gray-400 dark:text-gray-500")})}),t.jsx("input",{type:a,value:m,onChange:b,min:n,max:o,disabled:s,placeholder:i,className:f("block w-full rounded-lg border","bg-white dark:bg-gray-800","text-gray-900 dark:text-gray-100","placeholder-gray-400 dark:placeholder-gray-500","border-gray-300 dark:border-gray-600","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent","transition-colors duration-200",y.input,y.padding,s&&"opacity-50 cursor-not-allowed","appearance-none","[&::-webkit-calendar-picker-indicator]:opacity-100","[&::-webkit-calendar-picker-indicator]:cursor-pointer"),...h})]})};function ml(e,r){const a=d=>String(d).padStart(2,"0"),n=e.getFullYear(),o=a(e.getMonth()+1),s=a(e.getDate()),l=a(e.getHours()),i=a(e.getMinutes());switch(r){case"date":return`${n}-${o}-${s}`;case"time":return`${l}:${i}`;case"datetime-local":return`${n}-${o}-${s}T${l}:${i}`;case"month":return`${n}-${o}`;case"week":{const d=new Date(n,0,1),c=Math.floor((e.getTime()-d.getTime())/(1440*60*1e3)),h=Math.ceil((c+d.getDay()+1)/7);return`${n}-W${a(h)}`}default:return`${n}-${o}-${s}`}}const Ea=({value:e,onChange:r,use12Hour:a=!1,minuteStep:n=1,disabled:o=!1,className:s})=>{const[l,i]=p.useState(!1),[d,c]=p.useState("12"),[h,g]=p.useState("00"),[y,m]=p.useState("AM"),b=p.useRef(null);p.useEffect(()=>{if(e){const[x,N]=e.split(":"),E=parseInt(x,10);if(a){const A=E>=12,C=E===0?12:E>12?E-12:E;c(C.toString().padStart(2,"0")),m(A?"PM":"AM")}else c(x);g(N)}},[e,a]),p.useEffect(()=>{const x=N=>{b.current&&!b.current.contains(N.target)&&i(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]);const v=()=>{if(!e)return"";const[x,N]=e.split(":"),E=parseInt(x,10);if(a){const A=E===0?12:E>12?E-12:E,C=E>=12?"PM":"AM";return`${A}:${N} ${C}`}return`${x}:${N}`},w=(x,N,E)=>{let A=parseInt(x,10);const C=parseInt(N,10);a&&E&&(E==="PM"&&A!==12?A+=12:E==="AM"&&A===12&&(A=0));const I=`${A.toString().padStart(2,"0")}:${C.toString().padStart(2,"0")}`;r(I)},S=a?Array.from({length:12},(x,N)=>(N+1).toString().padStart(2,"0")):Array.from({length:24},(x,N)=>N.toString().padStart(2,"0")),k=Array.from({length:Math.ceil(60/n)},(x,N)=>(N*n).toString().padStart(2,"0"));return t.jsxs("div",{ref:b,className:f("relative w-full",s),children:[t.jsxs("button",{type:"button",onClick:()=>!o&&i(!l),disabled:o,className:f("w-full px-3 py-2 text-sm text-left flex items-center justify-between","bg-white dark:bg-gray-900","border border-gray-300 dark:border-gray-700","rounded-md","hover:bg-gray-50 dark:hover:bg-gray-800","transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",l&&"ring-2 ring-blue-500 dark:ring-blue-400"),children:[t.jsx("span",{className:f(e?"text-gray-900 dark:text-white":"text-gray-500 dark:text-gray-400"),children:e?v():"Select time"}),t.jsx("svg",{className:"w-5 h-5 text-gray-600 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})]}),l&&t.jsx("div",{className:"absolute top-full left-0 mt-1 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-md shadow-lg z-50",children:t.jsxs("div",{className:"flex gap-1 p-2",children:[t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:"text-xs font-medium text-gray-700 dark:text-gray-300 text-center mb-1 px-2",children:"Hour"}),t.jsx("div",{className:"h-48 overflow-y-auto w-16 border border-gray-200 dark:border-gray-700 rounded",children:S.map(x=>t.jsx("button",{onClick:()=>{c(x),w(x,h,a?y:void 0)},className:f("w-full px-3 py-1.5 text-sm text-center","hover:bg-gray-100 dark:hover:bg-gray-800","transition-colors",x===d&&"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 font-medium"),children:x},x))})]}),t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:"text-xs font-medium text-gray-700 dark:text-gray-300 text-center mb-1 px-2",children:"Min"}),t.jsx("div",{className:"h-48 overflow-y-auto w-16 border border-gray-200 dark:border-gray-700 rounded",children:k.map(x=>t.jsx("button",{onClick:()=>{g(x),w(d,x,a?y:void 0)},className:f("w-full px-3 py-1.5 text-sm text-center","hover:bg-gray-100 dark:hover:bg-gray-800","transition-colors",x===h&&"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 font-medium"),children:x},x))})]}),a&&t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:"text-xs font-medium text-gray-700 dark:text-gray-300 text-center mb-1 px-2",children:" "}),t.jsxs("div",{className:"h-48 flex flex-col justify-center gap-2 w-16",children:[t.jsx("button",{onClick:()=>{m("AM"),w(d,h,"AM")},className:f("px-3 py-2 text-sm text-center rounded","hover:bg-gray-100 dark:hover:bg-gray-800","transition-colors",y==="AM"&&"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 font-medium"),children:"AM"}),t.jsx("button",{onClick:()=>{m("PM"),w(d,h,"PM")},className:f("px-3 py-2 text-sm text-center rounded","hover:bg-gray-100 dark:hover:bg-gray-800","transition-colors",y==="PM"&&"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 font-medium"),children:"PM"})]})]})]})})]})},yl=[{code:"US",name:"United States",dialCode:"+1",flag:"🇺🇸"},{code:"GB",name:"United Kingdom",dialCode:"+44",flag:"🇬🇧"},{code:"CA",name:"Canada",dialCode:"+1",flag:"🇨🇦"},{code:"AU",name:"Australia",dialCode:"+61",flag:"🇦🇺"},{code:"DE",name:"Germany",dialCode:"+49",flag:"🇩🇪"},{code:"FR",name:"France",dialCode:"+33",flag:"🇫🇷"},{code:"IT",name:"Italy",dialCode:"+39",flag:"🇮🇹"},{code:"ES",name:"Spain",dialCode:"+34",flag:"🇪🇸"},{code:"MX",name:"Mexico",dialCode:"+52",flag:"🇲🇽"},{code:"BR",name:"Brazil",dialCode:"+55",flag:"🇧🇷"},{code:"IN",name:"India",dialCode:"+91",flag:"🇮🇳"},{code:"CN",name:"China",dialCode:"+86",flag:"🇨🇳"},{code:"JP",name:"Japan",dialCode:"+81",flag:"🇯🇵"},{code:"KR",name:"South Korea",dialCode:"+82",flag:"🇰🇷"},{code:"SG",name:"Singapore",dialCode:"+65",flag:"🇸🇬"}],pl=({value:e,onChange:r,country:a,onCountryChange:n,countries:o=yl,placeholder:s="Phone number",disabled:l=!1,className:i})=>{const[d,c]=p.useState(o[0]?.code||"US"),[h,g]=p.useState(!1),[y,m]=p.useState(""),b=a!==void 0?a:d,v=o.find(N=>N.code===b),w=N=>{a!==void 0&&n?n(N):c(N),g(!1),m("")},S=N=>{const E=N.replace(/\D/g,"");return v?.dialCode==="+1"?E.length<=3?E:E.length<=6?`(${E.slice(0,3)}) ${E.slice(3)}`:`(${E.slice(0,3)}) ${E.slice(3,6)}-${E.slice(6,10)}`:E},k=N=>{const E=S(N.target.value);r(E)},x=o.filter(N=>N.name.toLowerCase().includes(y.toLowerCase())||N.dialCode.includes(y)||N.code.toLowerCase().includes(y.toLowerCase()));return t.jsxs("div",{className:f("relative w-full",i),children:[t.jsxs("div",{className:"flex gap-2",children:[t.jsxs("div",{className:"relative",children:[t.jsxs("button",{type:"button",onClick:()=>!l&&g(!h),disabled:l,className:f("flex items-center gap-2 px-3 py-2 min-w-[120px]","bg-white dark:bg-gray-900","border border-gray-300 dark:border-gray-700","rounded-md","hover:bg-gray-50 dark:hover:bg-gray-800","transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",h&&"ring-2 ring-blue-500 dark:ring-blue-400"),children:[t.jsx("span",{className:"text-xl",children:v?.flag}),t.jsx("span",{className:"text-sm font-medium text-gray-900 dark:text-white",children:v?.dialCode}),t.jsx("svg",{className:f("w-4 h-4 text-gray-600 dark:text-gray-400 transition-transform",h&&"rotate-180"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),h&&t.jsxs("div",{className:"absolute top-full left-0 mt-1 w-72 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-md shadow-lg z-50",children:[t.jsx("div",{className:"p-2 border-b border-gray-200 dark:border-gray-700",children:t.jsx("input",{type:"text",value:y,onChange:N=>m(N.target.value),placeholder:"Search countries...",className:"w-full px-3 py-2 text-sm bg-gray-50 dark:bg-gray-800 border-none rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400",onClick:N=>N.stopPropagation()})}),t.jsx("div",{className:"max-h-60 overflow-y-auto py-1",children:x.length===0?t.jsx("div",{className:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400 text-center",children:"No countries found"}):x.map(N=>t.jsxs("button",{onClick:()=>w(N.code),className:f("w-full px-3 py-2 text-left flex items-center gap-3","hover:bg-gray-100 dark:hover:bg-gray-800","transition-colors",N.code===b&&"bg-blue-50 dark:bg-blue-900/30"),children:[t.jsx("span",{className:"text-xl",children:N.flag}),t.jsx("span",{className:"flex-1 text-sm text-gray-900 dark:text-white",children:N.name}),t.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:N.dialCode})]},N.code))})]})]}),t.jsx("input",{type:"tel",value:e,onChange:k,placeholder:s,disabled:l,className:f("flex-1 px-3 py-2 text-sm","bg-white dark:bg-gray-900","border border-gray-300 dark:border-gray-700","rounded-md","focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400","disabled:opacity-50 disabled:cursor-not-allowed")})]}),e&&v&&t.jsxs("p",{className:"mt-1.5 text-xs text-gray-600 dark:text-gray-400",children:["Full number: ",v.dialCode," ",e]}),h&&t.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>g(!1)})]})},vl=({checked:e,defaultChecked:r=!1,onChange:a,label:n,description:o,disabled:s=!1,size:l="md",variant:i="primary",color:d,className:c,id:h,name:g,value:y,required:m=!1,indeterminate:b=!1,error:v=!1,errorMessage:w,icon:S,onTrack:k,trackingLabel:x,componentName:N})=>{const[E,A]=p.useState(r),C=e!==void 0,I=C?e:E,L={sm:{box:"w-4 h-4",check:"w-3 h-3",text:"text-sm",desc:"text-xs"},md:{box:"w-5 h-5",check:"w-4 h-4",text:"text-base",desc:"text-sm"},lg:{box:"w-6 h-6",check:"w-5 h-5",text:"text-lg",desc:"text-base"}},M=d?{blue:"primary",green:"success",yellow:"warning",red:"error"}[d]:i,D=()=>v?I?"bg-red-600 border-red-600":"border-red-600 dark:border-red-500":{primary:I?"bg-blue-600 border-blue-600":"border-gray-300 dark:border-gray-600",success:I?"bg-green-600 border-green-600":"border-gray-300 dark:border-gray-600",warning:I?"bg-yellow-600 border-yellow-600":"border-gray-300 dark:border-gray-600",error:I?"bg-red-600 border-red-600":"border-gray-300 dark:border-gray-600"}[M],B=$=>{if(s)return;const R=$.target.checked;C||A(R),k&&k({action:"toggle",trackingLabel:x,componentName:N}),a?.(R)},j=$=>{if(!s&&($.key===" "||$.key==="Spacebar")){$.preventDefault();const R=!I;C||A(R),k&&k({action:"toggle",trackingLabel:x,componentName:N}),a?.(R)}},F=L[l];return t.jsxs("div",{className:f("inline-flex flex-col",c),children:[t.jsxs("label",{className:f("inline-flex items-start gap-2 cursor-pointer",s&&"opacity-50 cursor-not-allowed"),children:[t.jsxs("div",{className:"relative flex items-center",children:[t.jsx("input",{type:"checkbox",checked:I,defaultChecked:C?void 0:r,onChange:B,onKeyDown:j,disabled:s,id:h,name:g,value:y,required:m,className:"sr-only peer"}),t.jsx("div",{"data-indeterminate":b?"true":void 0,className:f("rounded border-2 flex items-center justify-center transition-colors bg-white dark:bg-gray-900",F.box,D(),!s&&"hover:border-opacity-75"),children:b?t.jsx(fe.MinusIcon,{className:f("text-white",F.check)}):I?S||t.jsx(fe.CheckIcon,{className:f("text-white",F.check)}):null})]}),(n||o)&&t.jsxs("div",{className:"flex flex-col",children:[n&&t.jsx("span",{className:f("text-gray-900 dark:text-white",F.text),children:n}),o&&t.jsx("span",{className:f("text-gray-600 dark:text-gray-400",F.desc),children:o})]})]}),w&&t.jsx("span",{className:"mt-1 text-sm text-red-600 dark:text-red-400",children:w})]})},Ta=G.forwardRef(({className:e,onTrack:r,trackingLabel:a,componentName:n,onCheckedChange:o,...s},l)=>{const i=d=>{r&&r({action:"toggle",trackingLabel:a,componentName:n}),o?.(d)};return t.jsx(kr.Root,{className:f("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-blue-500 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-600 data-[state=unchecked]:bg-gray-200 dark:focus-visible:ring-blue-400 dark:focus-visible:ring-offset-gray-950 dark:data-[state=checked]:bg-blue-500 dark:data-[state=unchecked]:bg-gray-700",e),onCheckedChange:i,...s,ref:l,children:t.jsx(kr.Thumb,{className:f("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})})});Ta.displayName=kr.Root.displayName;const wl=({name:e="radio-group",value:r,onChange:a,options:n,label:o,orientation:s="vertical",disabled:l=!1,error:i=!1,errorMessage:d,required:c=!1,size:h="md",renderOption:g,className:y})=>{const m=p.useRef(null),v={sm:{radio:"w-4 h-4",label:"text-sm",description:"text-xs"},md:{radio:"w-5 h-5",label:"text-base",description:"text-sm"},lg:{radio:"w-6 h-6",label:"text-lg",description:"text-base"}}[h],w=(k,x)=>{!l&&!x&&a(k)},S=(k,x)=>{const N=n.filter(A=>!A.disabled&&!l),E=N.findIndex(A=>A.value===n[x].value);if(k.key==="ArrowDown"||k.key==="ArrowRight"){k.preventDefault();const A=(E+1)%N.length;a(N[A].value)}else if(k.key==="ArrowUp"||k.key==="ArrowLeft"){k.preventDefault();const A=(E-1+N.length)%N.length;a(N[A].value)}};return t.jsxs("div",{className:f("w-full",y),children:[o&&t.jsx("div",{className:"mb-2",children:t.jsxs("span",{className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:[o,c&&t.jsx("span",{className:"text-red-600 ml-1",children:"*"})]})}),t.jsx("div",{ref:m,className:f(s==="horizontal"?"flex flex-row gap-4":"flex flex-col space-y-2"),role:"radiogroup",children:n.map((k,x)=>{const N=l||k.disabled,E=r===k.value;return t.jsxs("label",{className:f("flex items-start cursor-pointer",N&&"opacity-50 cursor-not-allowed",i&&"border-red-600 dark:border-red-500"),children:[t.jsx("input",{type:"radio",name:e,value:k.value,checked:E,onChange:()=>w(k.value,!!k.disabled),onKeyDown:A=>S(A,x),disabled:N,className:f("mt-0.5 mr-2",v.radio,"text-blue-600 bg-white dark:bg-gray-900","border-gray-300 dark:border-gray-600","focus:ring-blue-500 focus:ring-2","transition-colors",i&&"border-red-600 dark:border-red-500",N&&"cursor-not-allowed")}),t.jsx("div",{className:"flex-1 min-w-0",children:g?g(k):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:f("font-medium text-gray-700 dark:text-gray-300",v.label),children:k.label}),k.description&&t.jsx("p",{className:f("text-gray-500 dark:text-gray-400 mt-0.5",v.description),children:k.description})]})})]},k.value)})}),d&&t.jsx("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400",children:d})]})},qr=({onTrack:e,trackingLabel:r,componentName:a,onValueChange:n,children:o,...s})=>{const l=i=>{e&&e({action:"change",trackingLabel:r,componentName:a}),n?.(i)};return t.jsx(V.Root,{onValueChange:l,...s,children:o})},kl=V.Group,Aa=V.Value,or=G.forwardRef(({className:e,children:r,...a},n)=>t.jsxs(V.Trigger,{ref:n,className:f("flex h-9 w-full items-center justify-between rounded-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 px-3 py-2 text-sm text-gray-900 dark:text-gray-100 hover:bg-gray-50 dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:ring-offset-gray-950 transition-colors disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...a,children:[r,t.jsx(V.Icon,{asChild:!0,children:t.jsx(Be.ChevronDown,{className:"h-4 w-4 opacity-50 ml-2 flex-shrink-0"})})]}));or.displayName=V.Trigger.displayName;const Gr=G.forwardRef(({className:e,...r},a)=>t.jsx(V.ScrollUpButton,{ref:a,className:f("flex cursor-default items-center justify-center py-1",e),...r,children:t.jsx(Be.ChevronUp,{className:"h-4 w-4"})}));Gr.displayName=V.ScrollUpButton.displayName;const Yr=G.forwardRef(({className:e,...r},a)=>t.jsx(V.ScrollDownButton,{ref:a,className:f("flex cursor-default items-center justify-center py-1",e),...r,children:t.jsx(Be.ChevronDown,{className:"h-4 w-4"})}));Yr.displayName=V.ScrollDownButton.displayName;const sr=G.forwardRef(({className:e,children:r,position:a="popper",...n},o)=>t.jsx(V.Portal,{children:t.jsxs(V.Content,{ref:o,className:f(_.overlays.dropdown.menu(),"z-[1000000] max-h-96 overflow-hidden 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 w-[var(--radix-select-trigger-width)]",e),position:a,...n,children:[t.jsx(Gr,{}),t.jsx(V.Viewport,{className:f(_.overlays.dropdown.itemContainer(),a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full"),children:r}),t.jsx(Yr,{})]})}));sr.displayName=V.Content.displayName;const Ia=G.forwardRef(({className:e,...r},a)=>t.jsx(V.Label,{ref:a,className:f(_.overlays.dropdown.header(),"py-1.5",e),...r}));Ia.displayName=V.Label.displayName;const lr=G.forwardRef(({className:e,children:r,...a},n)=>t.jsxs(V.Item,{ref:n,className:f(_.overlays.dropdown.item(),"relative select-none justify-between pr-8 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[t.jsx(V.ItemText,{children:r}),t.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:t.jsx(V.ItemIndicator,{children:t.jsx(Be.Check,{className:"h-4 w-4"})})})]}));lr.displayName=V.Item.displayName;const La=G.forwardRef(({className:e,...r},a)=>t.jsx(V.Separator,{ref:a,className:f("my-1 h-px bg-gray-200 dark:bg-gray-700",e),...r}));La.displayName=V.Separator.displayName;const xl=({options:e,value:r,onChange:a,placeholder:n="Select items...",searchPlaceholder:o="Search...",searchable:s=!0,maxDisplay:l=3,disabled:i=!1,className:d})=>{const[c,h]=p.useState(!1),[g,y]=p.useState(""),m=p.useRef(null),b=s?e.filter(N=>N.label.toLowerCase().includes(g.toLowerCase())):e,v=e.filter(N=>r.includes(N.value)),w=N=>{r.includes(N)?a(r.filter(E=>E!==N)):a([...r,N])},S=N=>{a(r.filter(E=>E!==N))};p.useEffect(()=>{const N=E=>{m.current&&!m.current.contains(E.target)&&(h(!1),y(""))};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[]);const k=v.length,x=k>l?k-l:0;return t.jsxs("div",{ref:m,className:f("relative w-full",d),children:[t.jsx("button",{type:"button",onClick:()=>!i&&h(!c),disabled:i,className:f("w-full min-h-[42px] px-3 py-2 text-sm text-left","bg-white dark:bg-gray-900","border border-gray-300 dark:border-gray-700","rounded-md","hover:bg-gray-50 dark:hover:bg-gray-800","transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",c&&"ring-2 ring-blue-500 dark:ring-blue-400"),children:t.jsx("div",{className:"flex flex-wrap gap-1.5",children:v.length===0?t.jsx("span",{className:"text-gray-500 dark:text-gray-400",children:n}):t.jsxs(t.Fragment,{children:[v.slice(0,l).map(N=>t.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 rounded text-xs font-medium",children:[N.label,t.jsx("button",{onClick:E=>{E.stopPropagation(),S(N.value)},className:"hover:text-blue-900 dark:hover:text-blue-100",children:t.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},N.value)),x>0&&t.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 rounded text-xs font-medium",children:["+",x," more"]})]})})}),c&&t.jsxs("div",{className:"absolute z-50 w-full mt-1 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-md shadow-lg",children:[s&&t.jsx("div",{className:"p-2 border-b border-gray-200 dark:border-gray-700",children:t.jsx("input",{type:"text",value:g,onChange:N=>y(N.target.value),placeholder:o,className:"w-full px-3 py-2 text-sm bg-gray-50 dark:bg-gray-800 border-none rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400",onClick:N=>N.stopPropagation()})}),t.jsx("div",{className:"max-h-60 overflow-y-auto py-1",children:b.length===0?t.jsx("div",{className:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400 text-center",children:"No options found"}):b.map(N=>{const E=r.includes(N.value);return t.jsxs("button",{onClick:()=>!N.disabled&&w(N.value),disabled:N.disabled,className:f("w-full px-3 py-2 text-sm text-left flex items-center gap-2","hover:bg-gray-100 dark:hover:bg-gray-800","transition-colors","disabled:opacity-50 disabled:cursor-not-allowed"),children:[t.jsx("div",{className:f("w-4 h-4 border-2 rounded flex items-center justify-center",E?"bg-blue-600 border-blue-600 dark:bg-blue-500 dark:border-blue-500":"border-gray-300 dark:border-gray-600"),children:E&&t.jsx("svg",{className:"w-3 h-3 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})})}),t.jsx("span",{className:"flex-1 text-gray-900 dark:text-white",children:N.label})]},N.value)})}),r.length>0&&t.jsxs("div",{className:"p-2 border-t border-gray-200 dark:border-gray-700 flex justify-between items-center",children:[t.jsxs("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:[r.length," selected"]}),t.jsx("button",{onClick:N=>{N.stopPropagation(),a([])},className:"text-xs text-blue-600 dark:text-blue-400 hover:underline",children:"Clear all"})]})]})]})},Nl=({options:e,value:r,onChange:a,placeholder:n="Select option...",searchPlaceholder:o="Search...",emptyMessage:s="No results found.",disabled:l=!1,className:i})=>{const[d,c]=p.useState(!1),[h,g]=p.useState(""),[y,m]=p.useState(0),b=p.useRef(null),v=p.useRef(null),w=e.filter(N=>N.label.toLowerCase().includes(h.toLowerCase())),S=e.find(N=>N.value===r);p.useEffect(()=>{if(!d)return;const N=E=>{b.current&&!b.current.contains(E.target)&&(c(!1),g(""))};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[d]),p.useEffect(()=>{d&&v.current&&v.current.focus()},[d]),p.useEffect(()=>{m(0)},[h]);const k=N=>{if(!d){(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),c(!0));return}switch(N.key){case"ArrowDown":N.preventDefault(),m(E=>E<w.length-1?E+1:E);break;case"ArrowUp":N.preventDefault(),m(E=>E>0?E-1:E);break;case"Enter":N.preventDefault(),w[y]&&!w[y].disabled&&(a(w[y].value),c(!1),g(""));break;case"Escape":N.preventDefault(),c(!1),g("");break}},x=(N,E)=>{E||(a(N),c(!1),g(""))};return t.jsxs("div",{ref:b,className:f("relative w-full",i),children:[t.jsxs("button",{type:"button",onClick:()=>!l&&c(!d),onKeyDown:k,disabled:l,className:f("w-full flex items-center justify-between","px-3 py-2 text-sm text-left","bg-white dark:bg-gray-900","border border-gray-300 dark:border-gray-700","rounded-md","hover:bg-gray-50 dark:hover:bg-gray-800","transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",d&&"ring-2 ring-blue-500 dark:ring-blue-400"),children:[t.jsx("span",{className:f("truncate",!S&&"text-gray-500 dark:text-gray-400"),children:S?S.label:n}),t.jsx("svg",{className:f("w-4 h-4 ml-2 transition-transform",d&&"rotate-180"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),d&&t.jsxs("div",{className:"absolute z-50 w-full mt-1 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-md shadow-lg",children:[t.jsx("div",{className:"p-2 border-b border-gray-200 dark:border-gray-700",children:t.jsx("input",{ref:v,type:"text",value:h,onChange:N=>g(N.target.value),onKeyDown:k,placeholder:o,className:"w-full px-3 py-2 text-sm bg-gray-50 dark:bg-gray-800 border-none rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400"})}),t.jsx("div",{className:"max-h-60 overflow-y-auto py-1",children:w.length===0?t.jsx("div",{className:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400 text-center",children:s}):w.map((N,E)=>t.jsx("button",{onClick:()=>x(N.value,N.disabled),disabled:N.disabled,className:f("w-full px-3 py-2 text-sm text-left","transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",N.value===r?"bg-blue-50 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300":E===y?"bg-gray-100 dark:bg-gray-800":"hover:bg-gray-50 dark:hover:bg-gray-800"),children:N.label},N.value))})]})]})},Cl=({options:e,value:r,onChange:a,placeholder:n="Enter or select...",disabled:o=!1,className:s,inputClassName:l,filterOptions:i=!0,emptyMessage:d="No matching options"})=>{const[c,h]=p.useState(!1),[g,y]=p.useState(!1),[m,b]=p.useState(!1),[v,w]=p.useState(0),S=p.useRef(null),k=p.useRef(null),x=e.find(M=>M.value===r),N=x?.label&&typeof x.label!="string",E=i&&m?e.filter(M=>(M.searchLabel||M.value).toLowerCase().includes(r.toLowerCase())):e;p.useEffect(()=>{if(!c&&!g)return;const M=D=>{S.current&&!S.current.contains(D.target)&&(h(!1),y(!1),b(!1))};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[c,g]),p.useEffect(()=>{w(0)},[r,E.length]);const A=M=>{if(!c){M.key==="ArrowDown"&&(M.preventDefault(),h(!0));return}switch(M.key){case"ArrowDown":M.preventDefault(),w(D=>D<E.length-1?D+1:D);break;case"ArrowUp":M.preventDefault(),w(D=>D>0?D-1:D);break;case"Enter":M.preventDefault(),E[v]&&!E[v].disabled&&(a(E[v].value),h(!1),b(!1));break;case"Escape":M.preventDefault(),h(!1),b(!1);break;case"Tab":h(!1),b(!1);break}},C=(M,D)=>{D||(a(M),h(!1),y(!1),b(!1))},I=M=>{a(M.target.value),b(!0),c||h(!0)},L=()=>{o||(h(!c),c||k.current?.focus())},O=()=>{o||(y(!0),h(!0),setTimeout(()=>k.current?.focus(),0))};return t.jsxs("div",{ref:S,className:f("relative w-full",s),children:[t.jsxs("div",{className:"relative flex items-center",children:[!g&&N&&r?t.jsx("button",{type:"button",onClick:O,disabled:o,className:f(_.input.default(),"pr-10 text-left flex items-center",o&&"opacity-50 cursor-not-allowed",l),children:x?.label}):t.jsx("input",{ref:k,type:"text",value:r,onChange:I,onKeyDown:A,onFocus:()=>{y(!0),e.length>0&&h(!0)},onBlur:()=>{setTimeout(()=>{c||y(!1)},150)},placeholder:n,disabled:o,className:f(_.input.default(),"pr-10",o&&"opacity-50 cursor-not-allowed",l)}),t.jsx("button",{type:"button",onClick:L,disabled:o,className:f("absolute right-0 top-0 h-full px-3","flex items-center justify-center","text-gray-500 dark:text-gray-400","hover:text-gray-700 dark:hover:text-gray-200","transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",c&&"text-gray-700 dark:text-gray-200"),"aria-label":"Toggle dropdown",children:t.jsx(Be.ChevronDown,{className:f("w-4 h-4 transition-transform",c&&"rotate-180")})})]}),c&&e.length>0&&t.jsx("div",{className:f("absolute z-50 w-full mt-1","bg-white dark:bg-gray-900","border border-gray-300 dark:border-gray-700","rounded-md shadow-lg","max-h-60 overflow-y-auto"),children:E.length===0?t.jsx("div",{className:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400 text-center",children:d}):E.map((M,D)=>t.jsx("button",{type:"button",onClick:()=>C(M.value,M.disabled),disabled:M.disabled,className:f("w-full px-3 py-2 text-sm text-left","flex items-center gap-2","transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",M.value===r?"bg-blue-50 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300":D===v?"bg-gray-100 dark:bg-gray-800":"hover:bg-gray-50 dark:hover:bg-gray-800","text-gray-900 dark:text-gray-100"),children:M.label||M.value},M.value))})]})};function ir(e,r){p.useEffect(()=>{const a=n=>{const o=e?.current;!o||o.contains(n?.target||null)||r(n)};return document.addEventListener("mousedown",a),document.addEventListener("touchstart",a),()=>{document.removeEventListener("mousedown",a),document.removeEventListener("touchstart",a)}},[e,r])}const Sl=({trigger:e,items:r,align:a="right",className:n="",variant:o="default",onTrack:s,trackingLabel:l,componentName:i})=>{const[d,c]=p.useState(!1),h=p.useRef(null);ir(h,()=>c(!1));const g=b=>{b.disabled||(s&&s({action:"select",trackingLabel:l,componentName:i}),b.onClick(),c(!1))},y=a==="left"?_.overlays.dropdown.menuRight():_.overlays.dropdown.menuLeft(),m=o==="bordered"?_.overlays.dropdown.triggerBordered():_.overlays.dropdown.trigger();return t.jsxs("div",{className:`${_.overlays.dropdown.container()} ${n}`,ref:h,children:[t.jsx("div",{className:m,onClick:()=>c(!d),children:e}),d&&t.jsx("div",{className:`${_.overlays.dropdown.menu()} ${y} ${_.overlays.dropdown.menuBottom()}`,children:t.jsx("div",{className:_.overlays.dropdown.itemContainer(),children:r.map(b=>b.separator?t.jsx("div",{className:"my-1 h-px bg-gray-200 dark:bg-gray-700",role:"separator"},b.id):t.jsxs("button",{onClick:()=>g(b),disabled:b.disabled,className:`${b.disabled?_.overlays.dropdown.itemDisabled():_.overlays.dropdown.item()} flex items-center gap-2`,children:[b.icon&&t.jsx(b.icon,{className:_.overlays.dropdown.itemIcon()}),t.jsx("span",{children:b.label})]},b.id))})})]})},El=({options:e,value:r,values:a=[],onChange:n,onValuesChange:o,multiple:s=!1,size:l="md",variant:i="default",className:d})=>{const c=(m,b)=>{if(!b)if(s){const v=a.includes(m)?a.filter(w=>w!==m):[...a,m];o?.(v)}else n?.(m)},h=m=>s?a.includes(m):r===m,g={sm:"text-xs px-2 py-1",md:"text-sm px-3 py-2",lg:"text-base px-4 py-2"},y={default:{base:"bg-gray-100 dark:bg-gray-800",button:"hover:bg-gray-200 dark:hover:bg-gray-700",selected:"bg-white dark:bg-gray-900 shadow-sm"},outline:{base:"border border-gray-200 dark:border-gray-700",button:"hover:bg-gray-50 dark:hover:bg-gray-800",selected:"bg-gray-100 dark:bg-gray-800 border-gray-300 dark:border-gray-600"}};return t.jsx("div",{className:f("inline-flex rounded-lg p-1 gap-1",y[i].base,d),role:"group",children:e.map(m=>{const b=h(m.value);return t.jsxs("button",{onClick:()=>c(m.value,m.disabled),disabled:m.disabled,className:f("inline-flex items-center justify-center gap-2","rounded-md font-medium","transition-all duration-150","disabled:opacity-50 disabled:cursor-not-allowed",g[l],b?y[i].selected:y[i].button,b?"text-gray-900 dark:text-white":"text-gray-600 dark:text-gray-400"),"aria-pressed":b,children:[m.icon&&t.jsx("span",{className:"flex-shrink-0 w-4 h-4",children:m.icon}),m.label]},m.value)})})},Tl=({value:e,onChange:r,min:a=0,max:n=100,step:o=1,disabled:s=!1,showValue:l=!1,formatValue:i=b=>String(b),showMinMax:d=!1,minLabel:c,maxLabel:h,variant:g="primary",size:y="md",className:m})=>{const b={sm:"h-1",md:"h-2",lg:"h-3"},v={primary:"accent-blue-600 dark:accent-blue-500",success:"accent-green-600 dark:accent-green-500",warning:"accent-yellow-600 dark:accent-yellow-500",danger:"accent-red-600 dark:accent-red-500"},w=k=>{r(Number(k.target.value))},S=(e-a)/(n-a)*100;return t.jsxs("div",{className:f("w-full",m),children:[l&&t.jsxs("div",{className:"flex justify-between items-center mb-2",children:[t.jsx("span",{className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:i(e)}),d&&t.jsxs("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:[c||a," - ",h||n]})]}),t.jsxs("div",{className:"relative",children:[t.jsx("div",{className:f("absolute inset-0 rounded-full","bg-gray-200 dark:bg-gray-700",b[y])}),t.jsx("div",{className:f("absolute left-0 rounded-full transition-all","bg-current",v[g],b[y]),style:{width:`${S}%`}}),t.jsx("input",{type:"range",min:a,max:n,step:o,value:e,onChange:w,disabled:s,className:f("relative w-full appearance-none bg-transparent cursor-pointer","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500","rounded-lg",b[y],v[g],s&&"opacity-50 cursor-not-allowed","[&::-webkit-slider-thumb]:appearance-none","[&::-webkit-slider-thumb]:w-4","[&::-webkit-slider-thumb]:h-4","[&::-webkit-slider-thumb]:rounded-full","[&::-webkit-slider-thumb]:bg-white","[&::-webkit-slider-thumb]:border-2","[&::-webkit-slider-thumb]:border-current","[&::-webkit-slider-thumb]:shadow-md","[&::-webkit-slider-thumb]:transition-transform","[&::-webkit-slider-thumb]:hover:scale-110","[&::-moz-range-thumb]:w-4","[&::-moz-range-thumb]:h-4","[&::-moz-range-thumb]:rounded-full","[&::-moz-range-thumb]:bg-white","[&::-moz-range-thumb]:border-2","[&::-moz-range-thumb]:border-current","[&::-moz-range-thumb]:shadow-md","[&::-moz-range-thumb]:transition-transform","[&::-moz-range-thumb]:hover:scale-110")})]}),d&&!l&&t.jsxs("div",{className:"flex justify-between mt-1",children:[t.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:c||a}),t.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:h||n})]})]})},Al=({value:e,onChange:r,min:a=0,max:n=100,step:o=1,showValue:s=!0,className:l})=>t.jsxs("div",{className:f("flex items-center gap-4",l),children:[t.jsx("input",{type:"range",min:a,max:n,step:o,value:e,onChange:i=>r(Number(i.target.value)),className:"flex-1 accent-blue-500"}),s&&t.jsx("span",{className:"w-12 text-center font-semibold text-gray-900 dark:text-white",children:e})]}),Il=({onChange:e,accept:r,multiple:a=!1,maxSize:n,maxFiles:o,disabled:s=!1,showDropZone:l=!1,showFileList:i=!0,files:d=[],onRemove:c,className:h,buttonText:g="Choose Files",dropZoneText:y="Drop files here or click to browse",onTrack:m,trackingLabel:b,componentName:v})=>{const w=p.useRef(null),[S,k]=p.useState(!1),[x,N]=p.useState(null),E=j=>(N(null),o&&d.length+j.length>o?(N(`Maximum ${o} files allowed`),[]):j.filter($=>n&&$.size>n?(N(`File "${$.name}" exceeds maximum size of ${Kr(n)}`),!1):!0)),A=j=>{m&&m({action:j,trackingLabel:b,componentName:v})},C=j=>{const F=Array.from(j.target.files||[]),$=E(F);$.length>0&&(A("select"),e($)),w.current&&(w.current.value="")},I=()=>{w.current?.click()},L=j=>{j.preventDefault(),j.stopPropagation(),s||k(!0)},O=j=>{j.preventDefault(),j.stopPropagation(),k(!1)},M=j=>{j.preventDefault(),j.stopPropagation()},D=j=>{if(j.preventDefault(),j.stopPropagation(),k(!1),s)return;const F=Array.from(j.dataTransfer.files),$=E(F);$.length>0&&(A("drop"),e($))},B=j=>{c&&(A("remove"),c(j))};return l?t.jsxs("div",{className:f("w-full",h),children:[t.jsx("input",{ref:w,type:"file",onChange:C,accept:r,multiple:a,disabled:s,className:"hidden"}),t.jsx("div",{onClick:I,onDragEnter:L,onDragLeave:O,onDragOver:M,onDrop:D,className:f("relative border-2 border-dashed rounded-lg p-8","transition-colors duration-200","cursor-pointer",S?"border-blue-500 bg-blue-50 dark:bg-blue-900/10":"border-gray-300 dark:border-gray-600 hover:border-gray-400 dark:hover:border-gray-500",s&&"opacity-50 cursor-not-allowed"),children:t.jsxs("div",{className:"flex flex-col items-center justify-center space-y-3",children:[t.jsx(P.CloudArrowUpIcon,{className:"h-12 w-12 text-gray-400 dark:text-gray-500"}),t.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 text-center",children:y}),n&&t.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-500",children:["Max file size: ",Kr(n)]})]})}),x&&t.jsx("p",{className:"mt-2 text-sm text-red-600 dark:text-red-400",children:x}),i&&d.length>0&&t.jsx(Ma,{files:d,onRemove:B})]}):t.jsxs("div",{className:f("w-full",h),children:[t.jsx("input",{ref:w,type:"file",onChange:C,accept:r,multiple:a,disabled:s,className:"hidden"}),t.jsxs("button",{type:"button",onClick:I,disabled:s,className:f("inline-flex items-center px-4 py-2 border border-gray-300 dark:border-gray-600","rounded-lg shadow-sm text-sm font-medium","text-gray-700 dark:text-gray-300","bg-white dark:bg-gray-800","hover:bg-gray-50 dark:hover:bg-gray-700","focus:outline-none focus:ring-2 focus:ring-blue-500","transition-colors",s&&"opacity-50 cursor-not-allowed"),children:[t.jsx(P.DocumentIcon,{className:"h-5 w-5 mr-2"}),g]}),x&&t.jsx("p",{className:"mt-2 text-sm text-red-600 dark:text-red-400",children:x}),i&&d.length>0&&t.jsx(Ma,{files:d,onRemove:B})]})},Ma=({files:e,onRemove:r})=>t.jsx("div",{className:"mt-3 space-y-2",children:e.map((a,n)=>t.jsxs("div",{className:"flex items-center justify-between p-2 bg-gray-50 dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700",children:[t.jsxs("div",{className:"flex items-center space-x-2 flex-1 min-w-0",children:[t.jsx(P.DocumentIcon,{className:"h-5 w-5 text-gray-400 flex-shrink-0"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-gray-100 truncate",children:a.name}),t.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:Kr(a.size)})]})]}),t.jsx("button",{type:"button",onClick:()=>r(n),className:"flex-shrink-0 p-1 text-gray-400 hover:text-red-600 dark:hover:text-red-400 transition-colors","aria-label":"Remove file",children:t.jsx(P.XMarkIcon,{className:"h-5 w-5"})})]},`${a.name}-${n}`))});function Kr(e){if(e===0)return"0 Bytes";const r=1024,a=["Bytes","KB","MB","GB"],n=Math.floor(Math.log(e)/Math.log(r));return Math.round(e/Math.pow(r,n)*100)/100+" "+a[n]}const Ll=({value:e,onChange:r,placeholder:a="Type and press Enter...",maxTags:n,validate:o,validator:s,separators:l=[],allowDuplicates:i=!1,disabled:d=!1,error:c=!1,errorMessage:h,variant:g="primary",renderTag:y,className:m})=>{const b=o||s,[v,w]=p.useState(""),S=p.useRef(null),k={primary:"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300",secondary:"bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300",success:"bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-300",warning:"bg-yellow-100 dark:bg-yellow-900/30 text-yellow-700 dark:text-yellow-300",error:"bg-red-100 dark:bg-red-900/30 text-red-700 dark:text-red-300"},x=I=>{const L=I.trim();L&&(n&&e.length>=n||!i&&e.includes(L)||b&&!b(L)||(r([...e,L]),w("")))},N=I=>{r(e.filter((L,O)=>O!==I))},E=I=>{w(I.target.value)},A=I=>{I.key==="Enter"&&(I.preventDefault(),v.trim()&&x(v)),I.key===","&&(I.preventDefault(),v.trim()&&x(v)),l.length>0&&l.includes(I.key)&&I.key!==","&&(I.preventDefault(),v.trim()&&x(v)),I.key==="Backspace"&&!v&&e.length>0&&N(e.length-1),I.key==="Escape"&&w("")},C=n!==void 0&&e.length>=n;return t.jsxs("div",{className:f("w-full",m),children:[t.jsxs("div",{className:f("min-h-[42px] px-3 py-2 flex flex-wrap gap-2 items-center","bg-white dark:bg-gray-900","border border-gray-300 dark:border-gray-700","rounded-md","focus-within:ring-2 focus-within:ring-blue-500 dark:focus-within:ring-blue-400","transition-all",d&&"opacity-50 cursor-not-allowed bg-gray-50 dark:bg-gray-800",c&&"border-red-500 dark:border-red-400"),onClick:()=>!d&&S.current?.focus(),children:[e.map((I,L)=>y?t.jsx(p.Fragment,{children:y(I,L,()=>N(L))},L):t.jsxs("span",{className:f("inline-flex items-center gap-1.5 px-2.5 py-1",k[g],"text-sm font-medium","rounded-md","transition-colors"),children:[t.jsx("span",{className:"truncate max-w-[200px]",children:I}),t.jsx("button",{type:"button",onClick:O=>{O.stopPropagation(),N(L)},disabled:d,className:f("flex-shrink-0 hover:text-blue-900 dark:hover:text-blue-100","transition-colors","disabled:cursor-not-allowed"),"aria-label":`Remove ${I}`,children:t.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},L)),t.jsx("input",{ref:S,type:"text",value:v,onChange:E,onKeyDown:A,placeholder:e.length===0?a:C?`Max ${n} tags`:"",disabled:d,className:f("flex-1 min-w-[120px] outline-none bg-transparent","text-sm text-gray-900 dark:text-white","placeholder:text-gray-500 dark:placeholder:text-gray-400","disabled:cursor-not-allowed")})]}),h&&t.jsx("p",{className:"mt-1.5 text-xs text-red-600 dark:text-red-400",children:h}),n&&t.jsxs("p",{className:"mt-1.5 text-xs text-gray-600 dark:text-gray-400",children:[e.length," / ",n," tags"]})]})},Ml=({value:e,onChange:r,mentions:a,trigger:n="@",placeholder:o="Type a message...",disabled:s=!1,className:l})=>{const[i,d]=p.useState(!1),[c,h]=p.useState([]),[g,y]=p.useState(0),[m,b]=p.useState(0),v=p.useRef(null),w=p.useRef(null),S=N=>{const E=N.target.value,A=N.target.selectionStart||0;r(E),b(A);const I=E.substring(0,A).split(/\s/),L=I[I.length-1];if(L.startsWith(n)){const O=L.substring(n.length),M=a.filter(D=>D.label.toLowerCase().includes(O.toLowerCase()));h(M),d(M.length>0),y(0)}else d(!1)},k=N=>{const E=e.substring(0,m),A=e.substring(m),C=E.split(/\s/),I=C[C.length-1],L=E.length-I.length,O=e.substring(0,L)+n+N.label+" "+A;if(r(O),d(!1),v.current){const M=L+n.length+N.label.length+1;setTimeout(()=>{v.current?.focus(),v.current?.setSelectionRange(M,M)},0)}},x=N=>{if(i)switch(N.key){case"ArrowDown":N.preventDefault(),y(E=>E<c.length-1?E+1:E);break;case"ArrowUp":N.preventDefault(),y(E=>E>0?E-1:E);break;case"Enter":N.preventDefault(),c[g]&&k(c[g]);break;case"Escape":N.preventDefault(),d(!1);break}};return p.useEffect(()=>{const N=E=>{w.current&&!w.current.contains(E.target)&&v.current&&!v.current.contains(E.target)&&d(!1)};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[]),t.jsxs("div",{className:f("relative w-full",l),children:[t.jsx("textarea",{ref:v,value:e,onChange:S,onKeyDown:x,placeholder:o,disabled:s,className:f("w-full px-3 py-2 text-sm","bg-white dark:bg-gray-900","border border-gray-300 dark:border-gray-700","rounded-md","focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400","disabled:opacity-50 disabled:cursor-not-allowed","resize-none","min-h-[100px]")}),i&&t.jsx("div",{ref:w,className:"absolute z-50 w-full mt-1 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-md shadow-lg max-h-60 overflow-y-auto",children:c.map((N,E)=>t.jsxs("button",{onClick:()=>k(N),className:f("w-full px-3 py-2 text-left flex items-center gap-3","hover:bg-gray-100 dark:hover:bg-gray-800","transition-colors",E===g&&"bg-blue-50 dark:bg-blue-900/30"),children:[N.avatar&&t.jsx("img",{src:N.avatar,alt:N.label,className:"w-8 h-8 rounded-full"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white truncate",children:N.label}),N.metadata&&t.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400 truncate",children:N.metadata})]})]},N.id))})]})},Pl=Z.cva(`${U.label.default()} peer-disabled:cursor-not-allowed peer-disabled:opacity-70`),Zr=G.forwardRef(({className:e,...r},a)=>t.jsx(St.Root,{ref:a,className:f(Pl(),e),...r}));Zr.displayName=St.Root.displayName;const Ol=({id:e,label:r,type:a="text",value:n,onChange:o,placeholder:s,helperText:l,error:i,required:d=!1,disabled:c=!1,maxLength:h,autoFocus:g=!1,className:y,inputClassName:m})=>{const b=!!i,v=l||i?`${e}-helper`:void 0;return t.jsxs("div",{className:f("space-y-2",y),children:[t.jsxs(Zr,{htmlFor:e,children:[r,d&&t.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),t.jsx(nr,{type:a,id:e,value:n,onChange:o,placeholder:s,disabled:c,maxLength:h,autoFocus:g,required:d,"aria-invalid":b,"aria-describedby":v,className:m}),(l||i)&&t.jsx("p",{id:v,className:f(U.body.sm(),b?"text-red-600 dark:text-red-400":"text-gray-500 dark:text-gray-400"),role:b?"alert":void 0,children:i||l})]})},cr=({label:e,required:r=!1,error:a,helpText:n,children:o,layout:s="vertical",className:l="",labelClassName:i="",contentClassName:d=""})=>{const c=s==="horizontal";return t.jsxs("div",{className:`${c?"grid grid-cols-1 md:grid-cols-3 gap-4 items-start":"space-y-2"} ${l}`,children:[t.jsxs("div",{className:c?"md:col-span-1":"",children:[t.jsxs("label",{className:`block text-sm font-medium text-gray-700 dark:text-gray-300 ${i}`,children:[e,r&&t.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),n&&!a&&t.jsxs("div",{className:"mt-1 flex items-start",children:[t.jsx(P.InformationCircleIcon,{className:"h-4 w-4 text-gray-400 mr-1 mt-0.5 flex-shrink-0"}),t.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:n})]})]}),t.jsxs("div",{className:`${c?"md:col-span-2":""} ${d}`,children:[t.jsx("div",{className:a?"relative":"",children:o}),a&&t.jsxs("div",{className:"mt-1 flex items-start",children:[t.jsx(P.ExclamationCircleIcon,{className:"h-4 w-4 text-red-500 mr-1 mt-0.5 flex-shrink-0"}),t.jsx("p",{className:"text-xs text-red-600 dark:text-red-400",children:a})]})]})]})},Ul=({label:e,value:r,onChange:a,placeholder:n,required:o=!1,error:s,helpText:l,type:i="text",layout:d="vertical",className:c=""})=>t.jsx(cr,{label:e,required:o,error:s,helpText:l,layout:d,className:c,children:t.jsx("input",{type:i,value:r,onChange:h=>a(h.target.value),placeholder:n,className:`
22
+ Nonce: ${g}`}function a(c,h=24){const g=new Date(c.getTime()+h*60*60*1e3);return new Date>g}function n(c){switch(c){case e.AuthStatus.DISCONNECTED:return"Not connected";case e.AuthStatus.CONNECTED:return"Connected - Please verify";case e.AuthStatus.VERIFIED:return"Authenticated";default:return"Unknown status"}}function o(c){return c===e.AuthStatus.VERIFIED}function s(c){return c===e.AuthStatus.CONNECTED||c===e.AuthStatus.VERIFIED}function l(){return`${Date.now()}-${Math.random().toString(36).substr(2,9)}`}function i(c){const h=c.match(/Nonce:\s*(.+)$/m);return h?h[1].trim():void 0}function d(c){if(!c||typeof c!="string"||c.length<10)return!1;const h=c.split("-");if(h.length>=2){const g=parseInt(h[0],10);if(!isNaN(g)){const y=Date.now()-864e5;if(g<y)return!1}}return!0}return te}var ca;function Gs(){return ca||(ca=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isValidNonce=e.isAuthStatusConnected=e.isAuthExpired=e.getAuthStatusText=e.generateNonce=e.generateAuthMessage=e.extractNonceFromMessage=e.canAccessProtectedFeatures=void 0;var r=qs();Object.defineProperty(e,"canAccessProtectedFeatures",{enumerable:!0,get:function(){return r.canAccessProtectedFeatures}}),Object.defineProperty(e,"extractNonceFromMessage",{enumerable:!0,get:function(){return r.extractNonceFromMessage}}),Object.defineProperty(e,"generateAuthMessage",{enumerable:!0,get:function(){return r.generateAuthMessage}}),Object.defineProperty(e,"generateNonce",{enumerable:!0,get:function(){return r.generateNonce}}),Object.defineProperty(e,"getAuthStatusText",{enumerable:!0,get:function(){return r.getAuthStatusText}}),Object.defineProperty(e,"isAuthExpired",{enumerable:!0,get:function(){return r.isAuthExpired}}),Object.defineProperty(e,"isAuthStatusConnected",{enumerable:!0,get:function(){return r.isAuthStatusConnected}}),Object.defineProperty(e,"isValidNonce",{enumerable:!0,get:function(){return r.isValidNonce}})})(Br)),Br}var Fr={},Wr={},da;function Ys(){return da||(da=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CLAIM_PERIOD_DAYS=e.USDC_DECIMALS=void 0,e.formatUSDC=r,e.parseUSDC=a,e.USDC_DECIMALS=6,e.CLAIM_PERIOD_DAYS=60;function r(n){return(n/Math.pow(10,e.USDC_DECIMALS)).toFixed(2)}function a(n){return Math.floor(parseFloat(n)*Math.pow(10,e.USDC_DECIMALS))}})(Wr)),Wr}var ae={},ua;function Ks(){if(ua)return ae;ua=1,Object.defineProperty(ae,"__esModule",{value:!0}),ae.formatEmailDate=e,ae.formatTimestamp=r,ae.formatRelativeTime=a,ae.parseDate=n,ae.isDateInRange=o,ae.addDays=s,ae.addHours=l;function e(i){const d=typeof i=="string"?new Date(i):i;if(isNaN(d.getTime()))return"Invalid date";const c=new Date,h=c.getTime()-d.getTime(),g=Math.floor(h/(1e3*60*60*24));return g===0?d.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}):g===1?"Yesterday":g<7?d.toLocaleDateString("en-US",{weekday:"long"}):d.getFullYear()===c.getFullYear()?d.toLocaleDateString("en-US",{month:"short",day:"numeric"}):d.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}function r(i){return new Date(i).toISOString()}function a(i){const d=typeof i=="string"||typeof i=="number"?new Date(i):i;if(isNaN(d.getTime()))return"Invalid date";const h=new Date().getTime()-d.getTime(),g=Math.floor(h/1e3),y=Math.floor(g/60),m=Math.floor(y/60),b=Math.floor(m/24),v=Math.floor(b/7),w=Math.floor(b/30),S=Math.floor(b/365);return g<60?"just now":y<60?y===1?"1 minute ago":`${y} minutes ago`:m<24?m===1?"1 hour ago":`${m} hours ago`:b<7?b===1?"1 day ago":`${b} days ago`:v<4?v===1?"1 week ago":`${v} weeks ago`:w<12?w===1?"1 month ago":`${w} months ago`:S===1?"1 year ago":`${S} years ago`}function n(i){try{const d=new Date(i);return isNaN(d.getTime())?null:d}catch{return null}}function o(i,d,c){return i>=d&&i<=c}function s(i,d){const c=new Date(i);return c.setDate(c.getDate()+d),c}function l(i,d){const c=new Date(i);return c.setHours(c.getHours()+d),c}return ae}var q={},ga;function Zs(){if(ga)return q;ga=1,Object.defineProperty(q,"__esModule",{value:!0}),q.truncate=e,q.capitalize=r,q.toTitleCase=a,q.toKebabCase=n,q.toCamelCase=o,q.toSnakeCase=s,q.normalizeWhitespace=l,q.isBlank=i,q.isNotBlank=d,q.escapeHtml=c,q.stripHtml=h,q.getInitials=g,q.formatBytes=y,q.randomString=m,q.pluralize=b,q.formatNumber=v;function e(w,S,k="..."){return!w||w.length<=S?w:w.slice(0,S-k.length)+k}function r(w){return w&&w.charAt(0).toUpperCase()+w.slice(1)}function a(w){return w&&w.toLowerCase().split(" ").map(S=>r(S)).join(" ")}function n(w){return w&&w.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function o(w){return w&&w.replace(/[-_\s]+(.)?/g,(S,k)=>k?k.toUpperCase():"").replace(/^./,S=>S.toLowerCase())}function s(w){return w&&w.replace(/([a-z])([A-Z])/g,"$1_$2").replace(/[\s-]+/g,"_").toLowerCase()}function l(w){return w&&w.replace(/\s+/g," ").trim()}function i(w){return!w||w.trim().length===0}function d(w){return!i(w)}function c(w){if(!w)return w;const S={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return w.replace(/[&<>"']/g,k=>S[k])}function h(w){return w&&w.replace(/<[^>]*>/g,"")}function g(w,S=2){return w?w.trim().split(/\s+/).slice(0,S).map(N=>N.charAt(0).toUpperCase()).join(""):""}function y(w,S=2){if(w===0)return"0 Bytes";const k=1024,x=S<0?0:S,N=["Bytes","KB","MB","GB","TB","PB"],E=Math.floor(Math.log(w)/Math.log(k));return parseFloat((w/Math.pow(k,E)).toFixed(x))+" "+N[E]}function m(w,S="alphanumeric"){let k;switch(S){case"alpha":k="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";break;case"numeric":k="0123456789";break;case"alphanumeric":k="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";break;case"hex":k="0123456789abcdef";break;default:k=S}let x="";for(let N=0;N<w;N++)x+=k.charAt(Math.floor(Math.random()*k.length));return x}function b(w,S,k){return w===1?S:k||`${S}s`}function v(w){return w.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}return q}var ha;function Xs(){return ha||(ha=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.truncate=e.toTitleCase=e.toSnakeCase=e.toKebabCase=e.toCamelCase=e.stripHtml=e.randomString=e.pluralize=e.normalizeWhitespace=e.isNotBlank=e.isBlank=e.getInitials=e.formatNumber=e.formatBytes=e.escapeHtml=e.capitalize=e.parseDate=e.isDateInRange=e.formatTimestamp=e.formatRelativeTime=e.formatEmailDate=e.addHours=e.addDays=e.parseUSDC=e.formatUSDC=e.USDC_DECIMALS=e.CLAIM_PERIOD_DAYS=void 0;var r=Ys();Object.defineProperty(e,"CLAIM_PERIOD_DAYS",{enumerable:!0,get:function(){return r.CLAIM_PERIOD_DAYS}}),Object.defineProperty(e,"USDC_DECIMALS",{enumerable:!0,get:function(){return r.USDC_DECIMALS}}),Object.defineProperty(e,"formatUSDC",{enumerable:!0,get:function(){return r.formatUSDC}}),Object.defineProperty(e,"parseUSDC",{enumerable:!0,get:function(){return r.parseUSDC}});var a=Ks();Object.defineProperty(e,"addDays",{enumerable:!0,get:function(){return a.addDays}}),Object.defineProperty(e,"addHours",{enumerable:!0,get:function(){return a.addHours}}),Object.defineProperty(e,"formatEmailDate",{enumerable:!0,get:function(){return a.formatEmailDate}}),Object.defineProperty(e,"formatRelativeTime",{enumerable:!0,get:function(){return a.formatRelativeTime}}),Object.defineProperty(e,"formatTimestamp",{enumerable:!0,get:function(){return a.formatTimestamp}}),Object.defineProperty(e,"isDateInRange",{enumerable:!0,get:function(){return a.isDateInRange}}),Object.defineProperty(e,"parseDate",{enumerable:!0,get:function(){return a.parseDate}});var n=Zs();Object.defineProperty(e,"capitalize",{enumerable:!0,get:function(){return n.capitalize}}),Object.defineProperty(e,"escapeHtml",{enumerable:!0,get:function(){return n.escapeHtml}}),Object.defineProperty(e,"formatBytes",{enumerable:!0,get:function(){return n.formatBytes}}),Object.defineProperty(e,"formatNumber",{enumerable:!0,get:function(){return n.formatNumber}}),Object.defineProperty(e,"getInitials",{enumerable:!0,get:function(){return n.getInitials}}),Object.defineProperty(e,"isBlank",{enumerable:!0,get:function(){return n.isBlank}}),Object.defineProperty(e,"isNotBlank",{enumerable:!0,get:function(){return n.isNotBlank}}),Object.defineProperty(e,"normalizeWhitespace",{enumerable:!0,get:function(){return n.normalizeWhitespace}}),Object.defineProperty(e,"pluralize",{enumerable:!0,get:function(){return n.pluralize}}),Object.defineProperty(e,"randomString",{enumerable:!0,get:function(){return n.randomString}}),Object.defineProperty(e,"stripHtml",{enumerable:!0,get:function(){return n.stripHtml}}),Object.defineProperty(e,"toCamelCase",{enumerable:!0,get:function(){return n.toCamelCase}}),Object.defineProperty(e,"toKebabCase",{enumerable:!0,get:function(){return n.toKebabCase}}),Object.defineProperty(e,"toSnakeCase",{enumerable:!0,get:function(){return n.toSnakeCase}}),Object.defineProperty(e,"toTitleCase",{enumerable:!0,get:function(){return n.toTitleCase}}),Object.defineProperty(e,"truncate",{enumerable:!0,get:function(){return n.truncate}})})(Fr)),Fr}var $r={},W={},fa;function Qs(){if(fa)return W;fa=1,Object.defineProperty(W,"__esModule",{value:!0}),W.Z_INDEX=W.ANIMATION=W.NETWORK_IDS=W.WALLET_NAMES=W.CONTACT_INFO=W.ROUTES=W.SUCCESS_MESSAGES=W.ERROR_MESSAGES=W.TIME_FORMAT=W.SUBSCRIPTION_TIERS=W.EMAIL_CONFIG=W.STORAGE_KEYS=W.CHAIN_TYPE=W.AUTH_STATUS=W.API_RETRY_DELAY=W.API_RETRY_ATTEMPTS=W.API_TIMEOUT=void 0;const e=3e4;W.API_TIMEOUT=e;const r=3;W.API_RETRY_ATTEMPTS=r;const a=1e3;W.API_RETRY_DELAY=a;const n={DISCONNECTED:"disconnected",CONNECTED:"connected",VERIFIED:"verified"};W.AUTH_STATUS=n;const o={EVM:"evm",SOLANA:"solana",UNKNOWN:"unknown"};W.CHAIN_TYPE=o;const s={AUTH_TOKEN:"authToken",USER_DATA:"userData",THEME:"theme",EMAIL_CACHE:"emailCache",WALLET_ADDRESS:"walletAddress",CHAIN_TYPE:"chainType"};W.STORAGE_KEYS=s;const l={MAX_ATTACHMENT_SIZE:25*1024*1024,MAX_RECIPIENTS:100,ITEMS_PER_PAGE:50,REFRESH_INTERVAL:6e4,NOTIFICATION_COOLDOWN:3e5};W.EMAIL_CONFIG=l;const i={FREE:"free",BASIC:"basic",PRO:"pro",ENTERPRISE:"enterprise"};W.SUBSCRIPTION_TIERS=i;const d={SHORT_DATE:"MMM d",FULL_DATE:"MMM d, yyyy",DATE_TIME:"MMM d, yyyy h:mm a",RELATIVE:"relative"};W.TIME_FORMAT=d;const c={WALLET_NOT_CONNECTED:"Please connect your wallet first",INVALID_ADDRESS:"Please enter a valid address",NETWORK_ERROR:"Network error. Please try again.",AUTHENTICATION_FAILED:"Authentication failed. Please sign in again.",TRANSACTION_FAILED:"Transaction failed. Please try again.",INSUFFICIENT_FUNDS:"Insufficient funds for this operation",RATE_LIMITED:"Too many requests. Please wait a moment.",SESSION_EXPIRED:"Your session has expired. Please sign in again.",PERMISSION_DENIED:"You do not have permission to perform this action"};W.ERROR_MESSAGES=c;const h={EMAIL_SENT:"Email sent successfully",EMAIL_DELETED:"Email deleted successfully",PREFERENCES_SAVED:"Preferences saved successfully",WALLET_CONNECTED:"Wallet connected successfully",AUTHENTICATION_SUCCESS:"Authentication successful",DELEGATION_SUCCESS:"Delegation successful",SUBSCRIPTION_ACTIVATED:"Subscription activated successfully"};W.SUCCESS_MESSAGES=h;const g={HOME:"/",ABOUT:"/about",CONNECT:"/connect",MAIL:"/mail",COMPOSE:"/mail/compose",PREFERENCES:"/preferences",TERMS:"/terms",PRIVACY:"/privacy",DOCUMENTATION:"/document",WEB3_USERS:"/web3-users",WEB3_PROJECTS:"/web3-projects"};W.ROUTES=g;const y={SUPPORT_EMAIL:"support@sudobility.com",CONTACT_EMAIL:"info@sudobility.com"};W.CONTACT_INFO=y;const m={METAMASK:"MetaMask",WALLETCONNECT:"WalletConnect",COINBASE:"Coinbase Wallet",PHANTOM:"Phantom",SAFE:"Safe",ARGENT:"Argent",RAINBOW:"Rainbow",TRUST:"Trust Wallet",LEDGER:"Ledger",TREZOR:"Trezor"};W.WALLET_NAMES=m;const b={ETHEREUM_MAINNET:1,POLYGON:137,ARBITRUM:42161,OPTIMISM:10,BASE:8453,SOLANA_MAINNET:"mainnet-beta",SOLANA_DEVNET:"devnet"};W.NETWORK_IDS=b;const v={FAST:150,NORMAL:300,SLOW:500,VERY_SLOW:1e3};W.ANIMATION=v;const w={DROPDOWN:10,OVERLAY:20,MODAL:30,POPOVER:40,TOOLTIP:50,TOAST:60};return W.Z_INDEX=w,W}var Ge={},ba;function Js(){return ba||(ba=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.STATUS_VALUES=void 0,Ge.STATUS_VALUES={SUCCESS:"success",PENDING:"pending",FAILED:"failed",ERROR:"error"}),Ge}var ma;function Rs(){return ma||(ma=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.STATUS_VALUES=e.Z_INDEX=e.ANIMATION=e.NETWORK_IDS=e.WALLET_NAMES=e.CONTACT_INFO=e.ROUTES=e.SUCCESS_MESSAGES=e.ERROR_MESSAGES=e.TIME_FORMAT=e.SUBSCRIPTION_TIERS=e.EMAIL_CONFIG=e.STORAGE_KEYS=e.CHAIN_TYPE=e.AUTH_STATUS=e.API_RETRY_DELAY=e.API_RETRY_ATTEMPTS=e.API_TIMEOUT=void 0;var r=Qs();Object.defineProperty(e,"API_TIMEOUT",{enumerable:!0,get:function(){return r.API_TIMEOUT}}),Object.defineProperty(e,"API_RETRY_ATTEMPTS",{enumerable:!0,get:function(){return r.API_RETRY_ATTEMPTS}}),Object.defineProperty(e,"API_RETRY_DELAY",{enumerable:!0,get:function(){return r.API_RETRY_DELAY}}),Object.defineProperty(e,"AUTH_STATUS",{enumerable:!0,get:function(){return r.AUTH_STATUS}}),Object.defineProperty(e,"CHAIN_TYPE",{enumerable:!0,get:function(){return r.CHAIN_TYPE}}),Object.defineProperty(e,"STORAGE_KEYS",{enumerable:!0,get:function(){return r.STORAGE_KEYS}}),Object.defineProperty(e,"EMAIL_CONFIG",{enumerable:!0,get:function(){return r.EMAIL_CONFIG}}),Object.defineProperty(e,"SUBSCRIPTION_TIERS",{enumerable:!0,get:function(){return r.SUBSCRIPTION_TIERS}}),Object.defineProperty(e,"TIME_FORMAT",{enumerable:!0,get:function(){return r.TIME_FORMAT}}),Object.defineProperty(e,"ERROR_MESSAGES",{enumerable:!0,get:function(){return r.ERROR_MESSAGES}}),Object.defineProperty(e,"SUCCESS_MESSAGES",{enumerable:!0,get:function(){return r.SUCCESS_MESSAGES}}),Object.defineProperty(e,"ROUTES",{enumerable:!0,get:function(){return r.ROUTES}}),Object.defineProperty(e,"CONTACT_INFO",{enumerable:!0,get:function(){return r.CONTACT_INFO}}),Object.defineProperty(e,"WALLET_NAMES",{enumerable:!0,get:function(){return r.WALLET_NAMES}}),Object.defineProperty(e,"NETWORK_IDS",{enumerable:!0,get:function(){return r.NETWORK_IDS}}),Object.defineProperty(e,"ANIMATION",{enumerable:!0,get:function(){return r.ANIMATION}}),Object.defineProperty(e,"Z_INDEX",{enumerable:!0,get:function(){return r.Z_INDEX}});var a=Js();Object.defineProperty(e,"STATUS_VALUES",{enumerable:!0,get:function(){return a.STATUS_VALUES}})})($r)),$r}var Vr={},Y={},ya;function el(){if(ya)return Y;ya=1,Object.defineProperty(Y,"__esModule",{value:!0}),Y.storageLogger=Y.ensLogger=Y.contractLogger=Y.apiLogger=Y.authLogger=Y.logger=Y.LogLevel=void 0;var e;(function(d){d.ERROR="error",d.WARN="warn",d.INFO="info",d.DEBUG="debug"})(e||(Y.LogLevel=e={}));class r{constructor(){this.isDevelopment=process.env.NODE_ENV==="development"}formatTimestamp(){return new Date().toISOString()}formatMessage(c,h,g){const y=this.formatTimestamp(),m=g?` [${g}]`:"";return`[${y}]${m} ${h}`}shouldLog(c){return this.isDevelopment?!0:c===e.ERROR||c===e.WARN}error(c,h,g){this.shouldLog(e.ERROR)&&(console.error(this.formatMessage(e.ERROR,c,h)),g&&console.error(g))}warn(c,h,g){this.shouldLog(e.WARN)&&(console.warn(this.formatMessage(e.WARN,c,h)),g&&console.warn(g))}info(c,h,g){this.shouldLog(e.INFO)&&(console.log(this.formatMessage(e.INFO,c,h)),g&&console.log(g))}debug(c,h,g){this.shouldLog(e.DEBUG)&&(console.log(this.formatMessage(e.DEBUG,c,h)),g&&console.log(g))}withContext(c){return{error:(h,g)=>this.error(h,c,g),warn:(h,g)=>this.warn(h,c,g),info:(h,g)=>this.info(h,c,g),debug:(h,g)=>this.debug(h,c,g)}}}const a=new r;Y.logger=a;const n=a.withContext("AUTH");Y.authLogger=n;const o=a.withContext("API");Y.apiLogger=o;const s=a.withContext("CONTRACT");Y.contractLogger=s;const l=a.withContext("ENS");Y.ensLogger=l;const i=a.withContext("STORAGE");return Y.storageLogger=i,Y}var pa;function va(){return pa||(pa=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.storageLogger=e.ensLogger=e.contractLogger=e.apiLogger=e.authLogger=e.logger=e.LogLevel=void 0;var r=el();Object.defineProperty(e,"LogLevel",{enumerable:!0,get:function(){return r.LogLevel}}),Object.defineProperty(e,"logger",{enumerable:!0,get:function(){return r.logger}}),Object.defineProperty(e,"authLogger",{enumerable:!0,get:function(){return r.authLogger}}),Object.defineProperty(e,"apiLogger",{enumerable:!0,get:function(){return r.apiLogger}}),Object.defineProperty(e,"contractLogger",{enumerable:!0,get:function(){return r.contractLogger}}),Object.defineProperty(e,"ensLogger",{enumerable:!0,get:function(){return r.ensLogger}}),Object.defineProperty(e,"storageLogger",{enumerable:!0,get:function(){return r.storageLogger}})})(Vr)),Vr}var Hr={},Ce={},wa;function rl(){if(wa)return Ce;wa=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.createURLSearchParams=r,Ce.createSearchParams=a,Ce.searchParamsToString=n,Ce.parseSearchParams=o;class e{constructor(l){if(this.params=new Map,l)if(typeof l=="string")this.parseString(l);else if(Array.isArray(l))for(const[i,d]of l)this.append(i,d);else for(const[i,d]of Object.entries(l))d!==void 0&&this.append(i,d)}parseString(l){const i=l.startsWith("?")?l.slice(1):l;if(i)for(const d of i.split("&")){const[c,h=""]=d.split("=");c&&this.append(decodeURIComponent(c),decodeURIComponent(h))}}append(l,i){this.params.has(l)||this.params.set(l,[]);const d=this.params.get(l);d&&d.push(i)}delete(l){this.params.delete(l)}get(l){const i=this.params.get(l);return i&&i.length>0?i[0]:null}getAll(l){return this.params.get(l)||[]}has(l){return this.params.has(l)}set(l,i){this.params.set(l,[i])}toString(){const l=[];return this.params.forEach((i,d)=>{for(const c of i)l.push(`${encodeURIComponent(d)}=${encodeURIComponent(c)}`)}),l.join("&")}forEach(l){this.params.forEach((i,d)=>{for(const c of i)l(c,d)})}}function r(s){return typeof URLSearchParams<"u"?new URLSearchParams(s):new e(s)}function a(s){const l=r(void 0);for(const[i,d]of Object.entries(s))d!=null&&l.append(i,String(d));return l}function n(s){return s.toString()}function o(s){const l=r(s),i={};return l.forEach((d,c)=>{i[c]=d}),i}return Ce}var ka;function tl(){return ka||(ka=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.parseSearchParams=e.searchParamsToString=e.createSearchParams=e.createURLSearchParams=void 0;var r=rl();Object.defineProperty(e,"createURLSearchParams",{enumerable:!0,get:function(){return r.createURLSearchParams}}),Object.defineProperty(e,"createSearchParams",{enumerable:!0,get:function(){return r.createSearchParams}}),Object.defineProperty(e,"searchParamsToString",{enumerable:!0,get:function(){return r.searchParamsToString}}),Object.defineProperty(e,"parseSearchParams",{enumerable:!0,get:function(){return r.parseSearchParams}})})(Hr)),Hr}var K={},xa;function al(){if(xa)return K;xa=1,Object.defineProperty(K,"__esModule",{value:!0}),K.debounceAsync=K.clearExpiredCache=K.withCache=K.withTimeout=K.safeParallel=K.withLoadingState=K.safeAsync=void 0;const e=va(),r=async(h,g)=>{try{return{data:await h(),success:!0}}catch(y){const m=y instanceof Error?y:new Error(String(y));return e.logger.error(`Async operation failed: ${m.message}`,g,y),{error:m,success:!1}}};K.safeAsync=r;const a=async(h,g,y,m)=>{g(!0),y(null);try{return await h()}catch(b){const v=b instanceof Error?b.message:String(b);y(v),e.logger.error(`Operation failed: ${v}`,m,b);return}finally{g(!1)}};K.withLoadingState=a;const n=async(h,g)=>{try{return{data:await Promise.all(h.map(m=>m())),success:!0}}catch(y){const m=y instanceof Error?y:new Error(String(y));return e.logger.error(`Parallel operations failed: ${m.message}`,g,y),{error:m,success:!1}}};K.safeParallel=n;const o=async(h,g,y)=>{const m=new Promise((b,v)=>setTimeout(()=>v(new Error(`Operation timed out after ${g}ms`)),g));try{return await Promise.race([h(),m])}catch(b){throw e.logger.error("Timeout operation failed",y,b),b}};K.withTimeout=o;const s=new Map,l=async(h,g,y=300*1e3)=>{const m=s.get(h),b=Date.now();if(m&&b-m.timestamp<m.ttl)return m.data;const v=await g();return s.set(h,{data:v,timestamp:b,ttl:y}),v};K.withCache=l;const i=()=>{const h=Date.now();for(const[g,y]of s.entries())h-y.timestamp>=y.ttl&&s.delete(g)};K.clearExpiredCache=i;const d=new Map,c=(h,g,y)=>(...m)=>new Promise(b=>{const v=d.get(y);v&&clearTimeout(v);const w=setTimeout(async()=>{d.delete(y);try{const S=await h(...m);b(S)}catch(S){e.logger.error("Debounced operation failed",y,S),b(void 0)}},g);d.set(y,w)});return K.debounceAsync=c,K}var Na;function Ca(){return Na||(Na=1,(function(e){var r=Ne&&Ne.__createBinding||(Object.create?(function(n,o,s,l){l===void 0&&(l=s);var i=Object.getOwnPropertyDescriptor(o,s);(!i||("get"in i?!o.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(n,l,i)}):(function(n,o,s,l){l===void 0&&(l=s),n[l]=o[s]})),a=Ne&&Ne.__exportStar||function(n,o){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&r(o,n,s)};Object.defineProperty(e,"__esModule",{value:!0}),a($s(),e),a(Hs(),e),a(Gs(),e),a(Xs(),e),a(Rs(),e),a(va(),e),a(tl(),e),a(al(),e)})(Ne)),Ne}var Sa;function nl(){return Sa||(Sa=1,(function(e){var r=ye&&ye.__createBinding||(Object.create?(function(s,l,i,d){d===void 0&&(d=i);var c=Object.getOwnPropertyDescriptor(l,i);(!c||("get"in c?!l.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return l[i]}}),Object.defineProperty(s,d,c)}):(function(s,l,i,d){d===void 0&&(d=i),s[d]=l[i]})),a=ye&&ye.__exportStar||function(s,l){for(var i in s)i!=="default"&&!Object.prototype.hasOwnProperty.call(l,i)&&r(l,s,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProcessedEventName=e.ContractType=e.StorageType=e.WalletType=e.ChainType=e.AnalyticsEvent=e.TransactionStatus=e.MessageType=e.InfoType=e.NotificationType=e.RequestStatus=e.MobileView=e.EmailComposeType=e.FontSize=e.Theme=e.Chain=e.AuthStatus=e.debounceAsync=e.clearExpiredCache=e.withCache=e.withTimeout=e.safeParallel=e.withLoadingState=e.safeAsync=void 0,a(ta(),e),a(Ca(),e);var n=Ca();Object.defineProperty(e,"safeAsync",{enumerable:!0,get:function(){return n.safeAsync}}),Object.defineProperty(e,"withLoadingState",{enumerable:!0,get:function(){return n.withLoadingState}}),Object.defineProperty(e,"safeParallel",{enumerable:!0,get:function(){return n.safeParallel}}),Object.defineProperty(e,"withTimeout",{enumerable:!0,get:function(){return n.withTimeout}}),Object.defineProperty(e,"withCache",{enumerable:!0,get:function(){return n.withCache}}),Object.defineProperty(e,"clearExpiredCache",{enumerable:!0,get:function(){return n.clearExpiredCache}}),Object.defineProperty(e,"debounceAsync",{enumerable:!0,get:function(){return n.debounceAsync}});var o=ta();Object.defineProperty(e,"AuthStatus",{enumerable:!0,get:function(){return o.AuthStatus}}),Object.defineProperty(e,"Chain",{enumerable:!0,get:function(){return o.Chain}}),Object.defineProperty(e,"Theme",{enumerable:!0,get:function(){return o.Theme}}),Object.defineProperty(e,"FontSize",{enumerable:!0,get:function(){return o.FontSize}}),Object.defineProperty(e,"EmailComposeType",{enumerable:!0,get:function(){return o.EmailComposeType}}),Object.defineProperty(e,"MobileView",{enumerable:!0,get:function(){return o.MobileView}}),Object.defineProperty(e,"RequestStatus",{enumerable:!0,get:function(){return o.RequestStatus}}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:function(){return o.NotificationType}}),Object.defineProperty(e,"InfoType",{enumerable:!0,get:function(){return o.InfoType}}),Object.defineProperty(e,"MessageType",{enumerable:!0,get:function(){return o.MessageType}}),Object.defineProperty(e,"TransactionStatus",{enumerable:!0,get:function(){return o.TransactionStatus}}),Object.defineProperty(e,"AnalyticsEvent",{enumerable:!0,get:function(){return o.AnalyticsEvent}}),Object.defineProperty(e,"ChainType",{enumerable:!0,get:function(){return o.ChainType}}),Object.defineProperty(e,"WalletType",{enumerable:!0,get:function(){return o.WalletType}}),Object.defineProperty(e,"StorageType",{enumerable:!0,get:function(){return o.StorageType}}),Object.defineProperty(e,"ContractType",{enumerable:!0,get:function(){return o.ContractType}}),Object.defineProperty(e,"ProcessedEventName",{enumerable:!0,get:function(){return o.ProcessedEventName}})})(ye)),ye}var ge=nl();const ol=e=>{switch(e){case"verified":case"success":return Le("success");case"connected":case"warning":return Le("warning");case"disconnected":case"error":return Le("error");case"pending":return Le("info");default:return Le("neutral")}},sl=e=>{switch(e){case"sm":return"w-1.5 h-1.5";case"lg":return"w-3 h-3";default:return"w-2 h-2"}},ll=({status:e,label:r,showDot:a=!0,size:n="md"})=>{const s=r||{verified:"Verified",connected:"Connected",disconnected:"Disconnected",pending:"Pending",error:"Error",success:"Success",warning:"Warning"}[e],i=((h,g)=>{const y={sm:"small",md:"default",lg:"large"},b={verified:"success",success:"success",connected:"warning",warning:"warning",disconnected:"error",error:"error",pending:"primary"}[h]||"default",v=y[g];return v==="default"?_.badge[b]():_.badge[v](b)})(e,n),d=ol(e),c=sl(n);return t.jsxs("span",{className:i,children:[a&&t.jsx("span",{className:`inline-block ${c} rounded-full ${d} mr-1`}),s]})},il=({chainType:e,size:r="md"})=>{if(!e)return null;const a=e===ge.ChainType.SOLANA?"SOL":"ETH",o={sm:"small",md:"default",lg:"large"}[r],s=()=>{const l=e===ge.ChainType.SOLANA?"solana":"ethereum";return o==="default"?_.badge[l]():_.badge[o](l)};return t.jsx("span",{className:s(),children:a})},cl={xs:"w-1.5 h-1.5",sm:"w-2 h-2",md:"w-3 h-3",lg:"w-4 h-4"},dl=({status:e,size:r="sm",pulse:a=!1,className:n})=>t.jsx("div",{className:f("rounded-full flex-shrink-0",Le(e),cl[r],a&&"animate-pulse",n)}),ul=({className:e,children:r,disabled:a=!1,onClick:n})=>t.jsx("div",{className:f("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",a&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:a?void 0:n,role:"region","aria-label":"UstatusUpipeline",children:r||"UstatusUpipeline Component"}),nr=G.forwardRef(({className:e,type:r,onTrack:a,trackingLabel:n,componentName:o,onBlur:s,onChange:l,...i},d)=>{const c=g=>{a&&a({action:"blur",trackingLabel:n,componentName:o}),s?.(g)},h=g=>{a&&a({action:"change",trackingLabel:n,componentName:o}),l?.(g)};return t.jsx("input",{type:r,className:f(_.input.default(),e),ref:d,onBlur:c,onChange:h,...i})});nr.displayName="Input";const gl=({value:e,onChange:r,placeholder:a,rows:n=4,disabled:o=!1,readOnly:s=!1,showCount:l=!1,maxLength:i,resize:d="vertical",size:c="md",className:h,textareaProps:g,onTrack:y,trackingLabel:m,componentName:b})=>{const v={sm:"p-2 text-sm",md:"p-3 text-base",lg:"p-4 text-lg"},w={none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"},S=E=>{const A=E.target.value;i&&A.length>i||(y&&y({action:"change",trackingLabel:m,componentName:b}),r(A))},k=()=>{y&&y({action:"blur",trackingLabel:m,componentName:b})},x=e.length,N=l||i!==void 0;return t.jsxs("div",{className:f("w-full",h),children:[t.jsx("textarea",{value:e,onChange:S,onBlur:k,placeholder:a,rows:n,disabled:o,readOnly:s,maxLength:i,className:f("w-full rounded-lg border","bg-white dark:bg-gray-800","text-gray-900 dark:text-gray-100","placeholder-gray-400 dark:placeholder-gray-500","border-gray-300 dark:border-gray-600","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent","transition-colors duration-200",v[c],w[d],o&&"opacity-50 cursor-not-allowed",s&&"bg-gray-50 dark:bg-gray-900 cursor-default"),...g}),N&&t.jsx("div",{className:"flex justify-end mt-1",children:t.jsxs("span",{className:f("text-xs",i&&x>i*.9?"text-yellow-600 dark:text-yellow-400":"text-gray-500 dark:text-gray-400",i&&x>=i&&"text-red-600 dark:text-red-400"),children:[x,i&&` / ${i}`]})})]})},hl=({value:e,onChange:r,min:a,max:n,step:o=1,disabled:s=!1,showSteppers:l=!1,stepperPosition:i="right",placeholder:d,size:c="md",className:h,inputProps:g,onTrack:y,trackingLabel:m,componentName:b})=>{const w={sm:{input:"py-1.5 px-3 text-sm",button:"w-6 h-6",icon:"h-3 w-3"},md:{input:"py-2 px-3 text-base",button:"w-8 h-8",icon:"h-4 w-4"},lg:{input:"py-3 px-4 text-lg",button:"w-10 h-10",icon:"h-5 w-5"}}[c],S=L=>({action:L,trackingLabel:m,componentName:b}),k=L=>{const O=parseFloat(L.target.value);if(isNaN(O)){if(L.target.value===""){const M=a??0;y&&y(S("input")),r(M)}}else{const M=x(O);y&&y(S("input")),r(M)}},x=L=>{let O=L;return a!==void 0&&O<a&&(O=a),n!==void 0&&O>n&&(O=n),O},N=()=>{const L=x(e+o);y&&y(S("increment")),r(L)},E=()=>{const L=x(e-o);y&&y(S("decrement")),r(L)},A=n===void 0||e<n,C=a===void 0||e>a,I=({onClick:L,icon:O,disabled:M,ariaLabel:D})=>t.jsx("button",{type:"button",onClick:L,disabled:s||M,"aria-label":D,className:f("inline-flex items-center justify-center","border border-gray-300 dark:border-gray-600","bg-white dark:bg-gray-800","text-gray-700 dark:text-gray-300","hover:bg-gray-50 dark:hover:bg-gray-700","focus:outline-none focus:ring-2 focus:ring-blue-500","transition-colors",w.button,(s||M)&&"opacity-50 cursor-not-allowed"),children:O});return l&&i==="sides"?t.jsxs("div",{className:f("inline-flex items-stretch",h),children:[t.jsx(I,{onClick:E,disabled:!C,icon:t.jsx(P.MinusIcon,{className:w.icon}),ariaLabel:"Decrement"}),t.jsx("input",{type:"number",value:e,onChange:k,min:a,max:n,step:o,disabled:s,placeholder:d,className:f("border-x-0 text-center","border-gray-300 dark:border-gray-600","bg-white dark:bg-gray-800","text-gray-900 dark:text-gray-100","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:z-10","transition-colors",w.input,s&&"opacity-50 cursor-not-allowed","[appearance:textfield]","[&::-webkit-outer-spin-button]:appearance-none","[&::-webkit-inner-spin-button]:appearance-none"),...g}),t.jsx(I,{onClick:N,disabled:!A,icon:t.jsx(P.PlusIcon,{className:w.icon}),ariaLabel:"Increment"})]}):l&&i==="right"?t.jsxs("div",{className:f("inline-flex items-stretch gap-2",h),children:[t.jsx("input",{type:"number",value:e,onChange:k,min:a,max:n,step:o,disabled:s,placeholder:d,className:f("rounded-lg border","border-gray-300 dark:border-gray-600","bg-white dark:bg-gray-800","text-gray-900 dark:text-gray-100","placeholder-gray-400 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent","transition-colors",w.input,s&&"opacity-50 cursor-not-allowed","[appearance:textfield]","[&::-webkit-outer-spin-button]:appearance-none","[&::-webkit-inner-spin-button]:appearance-none"),...g}),t.jsxs("div",{className:"inline-flex flex-col gap-0.5",children:[t.jsx("button",{type:"button",onClick:N,disabled:s||!A,"aria-label":"Increment",className:f("inline-flex items-center justify-center","rounded border border-gray-300 dark:border-gray-600","bg-white dark:bg-gray-800","text-gray-700 dark:text-gray-300","hover:bg-gray-50 dark:hover:bg-gray-700","focus:outline-none focus:ring-2 focus:ring-blue-500","transition-colors","flex-1",w.button.replace(/h-\d+/,"h-auto"),(s||!A)&&"opacity-50 cursor-not-allowed"),children:t.jsx(P.PlusIcon,{className:f(w.icon,"w-3 h-3")})}),t.jsx("button",{type:"button",onClick:E,disabled:s||!C,"aria-label":"Decrement",className:f("inline-flex items-center justify-center","rounded border border-gray-300 dark:border-gray-600","bg-white dark:bg-gray-800","text-gray-700 dark:text-gray-300","hover:bg-gray-50 dark:hover:bg-gray-700","focus:outline-none focus:ring-2 focus:ring-blue-500","transition-colors","flex-1",w.button.replace(/h-\d+/,"h-auto"),(s||!C)&&"opacity-50 cursor-not-allowed"),children:t.jsx(P.MinusIcon,{className:f(w.icon,"w-3 h-3")})})]})]}):t.jsx("input",{type:"number",value:e,onChange:k,min:a,max:n,step:o,disabled:s,placeholder:d,className:f("rounded-lg border","border-gray-300 dark:border-gray-600","bg-white dark:bg-gray-800","text-gray-900 dark:text-gray-100","placeholder-gray-400 dark:placeholder-gray-500","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent","transition-colors",w.input,s&&"opacity-50 cursor-not-allowed",h),...g})},fl=({value:e,onChange:r,placeholder:a="Search...",autoFocus:n=!1,disabled:o=!1,size:s="md",showIcon:l=!0,showClear:i=!0,loading:d=!1,className:c,inputProps:h,onTrack:g,trackingLabel:y,componentName:m})=>{const[b,v]=p.useState(""),w=e!==void 0?e:b,S=e!==void 0,x={sm:{input:"py-1.5 text-sm",icon:"h-4 w-4",padding:l?"pl-8 pr-8":"px-3",iconLeft:"left-0 pl-2.5",iconRight:"right-0 pr-2.5"},md:{input:"py-2 text-base",icon:"h-5 w-5",padding:l?"pl-10 pr-10":"px-3",iconLeft:"left-0 pl-3",iconRight:"right-0 pr-3"},lg:{input:"py-3 text-lg",icon:"h-6 w-6",padding:l?"pl-12 pr-12":"px-4",iconLeft:"left-0 pl-3.5",iconRight:"right-0 pr-3.5"}}[s],N=p.useCallback(C=>{const I=C.target.value;S||v(I),r?.(I)},[r,S]),E=p.useCallback(()=>{g&&g({action:"search",trackingLabel:y,componentName:m})},[g,y,m]),A=p.useCallback(()=>{S||v(""),g&&g({action:"clear",trackingLabel:y,componentName:m}),r?.("")},[r,S,g,y,m]);return t.jsxs("div",{className:f("relative w-full",c),children:[l&&t.jsx("div",{className:f("absolute inset-y-0 flex items-center pointer-events-none",x.iconLeft),children:t.jsx(P.MagnifyingGlassIcon,{className:f(x.icon,"text-gray-400 dark:text-gray-500")})}),t.jsx("input",{type:"text",value:w,onChange:N,onBlur:E,placeholder:a,autoFocus:n,disabled:o||d,className:f("block w-full rounded-lg border","bg-white dark:bg-gray-800","text-gray-900 dark:text-gray-100","placeholder-gray-400 dark:placeholder-gray-500","border-gray-300 dark:border-gray-600","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent","transition-colors duration-200",x.input,x.padding,o&&"opacity-50 cursor-not-allowed",d&&"opacity-60"),...h}),i&&w&&!d&&t.jsx("button",{type:"button",onClick:A,disabled:o,className:f("absolute inset-y-0 flex items-center","text-gray-400 hover:text-gray-600 dark:hover:text-gray-300","transition-colors",o?"cursor-not-allowed":"cursor-pointer",x.iconRight),"aria-label":"Clear search",children:t.jsx(P.XMarkIcon,{className:x.icon})}),d&&t.jsx("div",{className:f("absolute inset-y-0 flex items-center",x.iconRight),children:t.jsxs("svg",{className:f(x.icon,"animate-spin text-gray-400"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),t.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"})]})})]})},bl=({value:e,onChange:r,type:a="date",min:n,max:o,disabled:s=!1,showIcon:l=!1,placeholder:i,size:d="md",className:c,inputProps:h})=>{const y={sm:{input:"py-1.5 text-sm",icon:"h-4 w-4",padding:l?"pl-8 pr-3":"px-3",iconLeft:"left-0 pl-2.5"},md:{input:"py-2 text-base",icon:"h-5 w-5",padding:l?"pl-10 pr-4":"px-4",iconLeft:"left-0 pl-3"},lg:{input:"py-3 text-lg",icon:"h-6 w-6",padding:l?"pl-12 pr-4":"px-4",iconLeft:"left-0 pl-3.5"}}[d],m=e instanceof Date?ml(e,a):e,b=v=>{r(v.target.value)};return t.jsxs("div",{className:f("relative",c),children:[l&&t.jsx("div",{className:f("absolute inset-y-0 flex items-center pointer-events-none",y.iconLeft),children:t.jsx(P.CalendarIcon,{className:f(y.icon,"text-gray-400 dark:text-gray-500")})}),t.jsx("input",{type:a,value:m,onChange:b,min:n,max:o,disabled:s,placeholder:i,className:f("block w-full rounded-lg border","bg-white dark:bg-gray-800","text-gray-900 dark:text-gray-100","placeholder-gray-400 dark:placeholder-gray-500","border-gray-300 dark:border-gray-600","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent","transition-colors duration-200",y.input,y.padding,s&&"opacity-50 cursor-not-allowed","appearance-none","[&::-webkit-calendar-picker-indicator]:opacity-100","[&::-webkit-calendar-picker-indicator]:cursor-pointer"),...h})]})};function ml(e,r){const a=d=>String(d).padStart(2,"0"),n=e.getFullYear(),o=a(e.getMonth()+1),s=a(e.getDate()),l=a(e.getHours()),i=a(e.getMinutes());switch(r){case"date":return`${n}-${o}-${s}`;case"time":return`${l}:${i}`;case"datetime-local":return`${n}-${o}-${s}T${l}:${i}`;case"month":return`${n}-${o}`;case"week":{const d=new Date(n,0,1),c=Math.floor((e.getTime()-d.getTime())/(1440*60*1e3)),h=Math.ceil((c+d.getDay()+1)/7);return`${n}-W${a(h)}`}default:return`${n}-${o}-${s}`}}const Ea=({value:e,onChange:r,use12Hour:a=!1,minuteStep:n=1,disabled:o=!1,className:s})=>{const[l,i]=p.useState(!1),[d,c]=p.useState("12"),[h,g]=p.useState("00"),[y,m]=p.useState("AM"),b=p.useRef(null);p.useEffect(()=>{if(e){const[x,N]=e.split(":"),E=parseInt(x,10);if(a){const A=E>=12,C=E===0?12:E>12?E-12:E;c(C.toString().padStart(2,"0")),m(A?"PM":"AM")}else c(x);g(N)}},[e,a]),p.useEffect(()=>{const x=N=>{b.current&&!b.current.contains(N.target)&&i(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]);const v=()=>{if(!e)return"";const[x,N]=e.split(":"),E=parseInt(x,10);if(a){const A=E===0?12:E>12?E-12:E,C=E>=12?"PM":"AM";return`${A}:${N} ${C}`}return`${x}:${N}`},w=(x,N,E)=>{let A=parseInt(x,10);const C=parseInt(N,10);a&&E&&(E==="PM"&&A!==12?A+=12:E==="AM"&&A===12&&(A=0));const I=`${A.toString().padStart(2,"0")}:${C.toString().padStart(2,"0")}`;r(I)},S=a?Array.from({length:12},(x,N)=>(N+1).toString().padStart(2,"0")):Array.from({length:24},(x,N)=>N.toString().padStart(2,"0")),k=Array.from({length:Math.ceil(60/n)},(x,N)=>(N*n).toString().padStart(2,"0"));return t.jsxs("div",{ref:b,className:f("relative w-full",s),children:[t.jsxs("button",{type:"button",onClick:()=>!o&&i(!l),disabled:o,className:f("w-full px-3 py-2 text-sm text-left flex items-center justify-between","bg-white dark:bg-gray-900","border border-gray-300 dark:border-gray-700","rounded-md","hover:bg-gray-50 dark:hover:bg-gray-800","transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",l&&"ring-2 ring-blue-500 dark:ring-blue-400"),children:[t.jsx("span",{className:f(e?"text-gray-900 dark:text-white":"text-gray-500 dark:text-gray-400"),children:e?v():"Select time"}),t.jsx("svg",{className:"w-5 h-5 text-gray-600 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})]}),l&&t.jsx("div",{className:"absolute top-full left-0 mt-1 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-md shadow-lg z-50",children:t.jsxs("div",{className:"flex gap-1 p-2",children:[t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:"text-xs font-medium text-gray-700 dark:text-gray-300 text-center mb-1 px-2",children:"Hour"}),t.jsx("div",{className:"h-48 overflow-y-auto w-16 border border-gray-200 dark:border-gray-700 rounded",children:S.map(x=>t.jsx("button",{onClick:()=>{c(x),w(x,h,a?y:void 0)},className:f("w-full px-3 py-1.5 text-sm text-center","hover:bg-gray-100 dark:hover:bg-gray-800","transition-colors",x===d&&"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 font-medium"),children:x},x))})]}),t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:"text-xs font-medium text-gray-700 dark:text-gray-300 text-center mb-1 px-2",children:"Min"}),t.jsx("div",{className:"h-48 overflow-y-auto w-16 border border-gray-200 dark:border-gray-700 rounded",children:k.map(x=>t.jsx("button",{onClick:()=>{g(x),w(d,x,a?y:void 0)},className:f("w-full px-3 py-1.5 text-sm text-center","hover:bg-gray-100 dark:hover:bg-gray-800","transition-colors",x===h&&"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 font-medium"),children:x},x))})]}),a&&t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:"text-xs font-medium text-gray-700 dark:text-gray-300 text-center mb-1 px-2",children:" "}),t.jsxs("div",{className:"h-48 flex flex-col justify-center gap-2 w-16",children:[t.jsx("button",{onClick:()=>{m("AM"),w(d,h,"AM")},className:f("px-3 py-2 text-sm text-center rounded","hover:bg-gray-100 dark:hover:bg-gray-800","transition-colors",y==="AM"&&"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 font-medium"),children:"AM"}),t.jsx("button",{onClick:()=>{m("PM"),w(d,h,"PM")},className:f("px-3 py-2 text-sm text-center rounded","hover:bg-gray-100 dark:hover:bg-gray-800","transition-colors",y==="PM"&&"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 font-medium"),children:"PM"})]})]})]})})]})},yl=[{code:"US",name:"United States",dialCode:"+1",flag:"🇺🇸"},{code:"GB",name:"United Kingdom",dialCode:"+44",flag:"🇬🇧"},{code:"CA",name:"Canada",dialCode:"+1",flag:"🇨🇦"},{code:"AU",name:"Australia",dialCode:"+61",flag:"🇦🇺"},{code:"DE",name:"Germany",dialCode:"+49",flag:"🇩🇪"},{code:"FR",name:"France",dialCode:"+33",flag:"🇫🇷"},{code:"IT",name:"Italy",dialCode:"+39",flag:"🇮🇹"},{code:"ES",name:"Spain",dialCode:"+34",flag:"🇪🇸"},{code:"MX",name:"Mexico",dialCode:"+52",flag:"🇲🇽"},{code:"BR",name:"Brazil",dialCode:"+55",flag:"🇧🇷"},{code:"IN",name:"India",dialCode:"+91",flag:"🇮🇳"},{code:"CN",name:"China",dialCode:"+86",flag:"🇨🇳"},{code:"JP",name:"Japan",dialCode:"+81",flag:"🇯🇵"},{code:"KR",name:"South Korea",dialCode:"+82",flag:"🇰🇷"},{code:"SG",name:"Singapore",dialCode:"+65",flag:"🇸🇬"}],pl=({value:e,onChange:r,country:a,onCountryChange:n,countries:o=yl,placeholder:s="Phone number",disabled:l=!1,className:i})=>{const[d,c]=p.useState(o[0]?.code||"US"),[h,g]=p.useState(!1),[y,m]=p.useState(""),b=a!==void 0?a:d,v=o.find(N=>N.code===b),w=N=>{a!==void 0&&n?n(N):c(N),g(!1),m("")},S=N=>{const E=N.replace(/\D/g,"");return v?.dialCode==="+1"?E.length<=3?E:E.length<=6?`(${E.slice(0,3)}) ${E.slice(3)}`:`(${E.slice(0,3)}) ${E.slice(3,6)}-${E.slice(6,10)}`:E},k=N=>{const E=S(N.target.value);r(E)},x=o.filter(N=>N.name.toLowerCase().includes(y.toLowerCase())||N.dialCode.includes(y)||N.code.toLowerCase().includes(y.toLowerCase()));return t.jsxs("div",{className:f("relative w-full",i),children:[t.jsxs("div",{className:"flex gap-2",children:[t.jsxs("div",{className:"relative",children:[t.jsxs("button",{type:"button",onClick:()=>!l&&g(!h),disabled:l,className:f("flex items-center gap-2 px-3 py-2 min-w-[120px]","bg-white dark:bg-gray-900","border border-gray-300 dark:border-gray-700","rounded-md","hover:bg-gray-50 dark:hover:bg-gray-800","transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",h&&"ring-2 ring-blue-500 dark:ring-blue-400"),children:[t.jsx("span",{className:"text-xl",children:v?.flag}),t.jsx("span",{className:"text-sm font-medium text-gray-900 dark:text-white",children:v?.dialCode}),t.jsx("svg",{className:f("w-4 h-4 text-gray-600 dark:text-gray-400 transition-transform",h&&"rotate-180"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),h&&t.jsxs("div",{className:"absolute top-full left-0 mt-1 w-72 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-md shadow-lg z-50",children:[t.jsx("div",{className:"p-2 border-b border-gray-200 dark:border-gray-700",children:t.jsx("input",{type:"text",value:y,onChange:N=>m(N.target.value),placeholder:"Search countries...",className:"w-full px-3 py-2 text-sm bg-gray-50 dark:bg-gray-800 border-none rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400",onClick:N=>N.stopPropagation()})}),t.jsx("div",{className:"max-h-60 overflow-y-auto py-1",children:x.length===0?t.jsx("div",{className:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400 text-center",children:"No countries found"}):x.map(N=>t.jsxs("button",{onClick:()=>w(N.code),className:f("w-full px-3 py-2 text-left flex items-center gap-3","hover:bg-gray-100 dark:hover:bg-gray-800","transition-colors",N.code===b&&"bg-blue-50 dark:bg-blue-900/30"),children:[t.jsx("span",{className:"text-xl",children:N.flag}),t.jsx("span",{className:"flex-1 text-sm text-gray-900 dark:text-white",children:N.name}),t.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:N.dialCode})]},N.code))})]})]}),t.jsx("input",{type:"tel",value:e,onChange:k,placeholder:s,disabled:l,className:f("flex-1 px-3 py-2 text-sm","bg-white dark:bg-gray-900","border border-gray-300 dark:border-gray-700","rounded-md","focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400","disabled:opacity-50 disabled:cursor-not-allowed")})]}),e&&v&&t.jsxs("p",{className:"mt-1.5 text-xs text-gray-600 dark:text-gray-400",children:["Full number: ",v.dialCode," ",e]}),h&&t.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>g(!1)})]})},vl=({checked:e,defaultChecked:r=!1,onChange:a,label:n,description:o,disabled:s=!1,size:l="md",variant:i="primary",color:d,className:c,id:h,name:g,value:y,required:m=!1,indeterminate:b=!1,error:v=!1,errorMessage:w,icon:S,onTrack:k,trackingLabel:x,componentName:N})=>{const[E,A]=p.useState(r),C=e!==void 0,I=C?e:E,L={sm:{box:"w-4 h-4",check:"w-3 h-3",text:"text-sm",desc:"text-xs"},md:{box:"w-5 h-5",check:"w-4 h-4",text:"text-base",desc:"text-sm"},lg:{box:"w-6 h-6",check:"w-5 h-5",text:"text-lg",desc:"text-base"}},M=d?{blue:"primary",green:"success",yellow:"warning",red:"error"}[d]:i,D=()=>v?I?"bg-red-600 border-red-600":"border-red-600 dark:border-red-500":{primary:I?"bg-blue-600 border-blue-600":"border-gray-300 dark:border-gray-600",success:I?"bg-green-600 border-green-600":"border-gray-300 dark:border-gray-600",warning:I?"bg-yellow-600 border-yellow-600":"border-gray-300 dark:border-gray-600",error:I?"bg-red-600 border-red-600":"border-gray-300 dark:border-gray-600"}[M],B=$=>{if(s)return;const R=$.target.checked;C||A(R),k&&k({action:"toggle",trackingLabel:x,componentName:N}),a?.(R)},j=$=>{if(!s&&($.key===" "||$.key==="Spacebar")){$.preventDefault();const R=!I;C||A(R),k&&k({action:"toggle",trackingLabel:x,componentName:N}),a?.(R)}},F=L[l];return t.jsxs("div",{className:f("inline-flex flex-col",c),children:[t.jsxs("label",{className:f("inline-flex items-start gap-2 cursor-pointer",s&&"opacity-50 cursor-not-allowed"),children:[t.jsxs("div",{className:"relative flex items-center",children:[t.jsx("input",{type:"checkbox",checked:I,defaultChecked:C?void 0:r,onChange:B,onKeyDown:j,disabled:s,id:h,name:g,value:y,required:m,className:"sr-only peer"}),t.jsx("div",{"data-indeterminate":b?"true":void 0,className:f("rounded border-2 flex items-center justify-center transition-colors bg-white dark:bg-gray-900",F.box,D(),!s&&"hover:border-opacity-75"),children:b?t.jsx(fe.MinusIcon,{className:f("text-white",F.check)}):I?S||t.jsx(fe.CheckIcon,{className:f("text-white",F.check)}):null})]}),(n||o)&&t.jsxs("div",{className:"flex flex-col",children:[n&&t.jsx("span",{className:f("text-gray-900 dark:text-white",F.text),children:n}),o&&t.jsx("span",{className:f("text-gray-600 dark:text-gray-400",F.desc),children:o})]})]}),w&&t.jsx("span",{className:"mt-1 text-sm text-red-600 dark:text-red-400",children:w})]})},Ta=G.forwardRef(({className:e,onTrack:r,trackingLabel:a,componentName:n,onCheckedChange:o,...s},l)=>{const i=d=>{r&&r({action:"toggle",trackingLabel:a,componentName:n}),o?.(d)};return t.jsx(kr.Root,{className:f("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-blue-500 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-600 data-[state=unchecked]:bg-gray-200 dark:focus-visible:ring-blue-400 dark:focus-visible:ring-offset-gray-950 dark:data-[state=checked]:bg-blue-500 dark:data-[state=unchecked]:bg-gray-700",e),onCheckedChange:i,...s,ref:l,children:t.jsx(kr.Thumb,{className:f("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})})});Ta.displayName=kr.Root.displayName;const wl=({name:e="radio-group",value:r,onChange:a,options:n,label:o,orientation:s="vertical",disabled:l=!1,error:i=!1,errorMessage:d,required:c=!1,size:h="md",renderOption:g,className:y})=>{const m=p.useRef(null),v={sm:{radio:"w-4 h-4",label:"text-sm",description:"text-xs"},md:{radio:"w-5 h-5",label:"text-base",description:"text-sm"},lg:{radio:"w-6 h-6",label:"text-lg",description:"text-base"}}[h],w=(k,x)=>{!l&&!x&&a(k)},S=(k,x)=>{const N=n.filter(A=>!A.disabled&&!l),E=N.findIndex(A=>A.value===n[x].value);if(k.key==="ArrowDown"||k.key==="ArrowRight"){k.preventDefault();const A=(E+1)%N.length;a(N[A].value)}else if(k.key==="ArrowUp"||k.key==="ArrowLeft"){k.preventDefault();const A=(E-1+N.length)%N.length;a(N[A].value)}};return t.jsxs("div",{className:f("w-full",y),children:[o&&t.jsx("div",{className:"mb-2",children:t.jsxs("span",{className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:[o,c&&t.jsx("span",{className:"text-red-600 ml-1",children:"*"})]})}),t.jsx("div",{ref:m,className:f(s==="horizontal"?"flex flex-row gap-4":"flex flex-col space-y-2"),role:"radiogroup",children:n.map((k,x)=>{const N=l||k.disabled,E=r===k.value;return t.jsxs("label",{className:f("flex items-start cursor-pointer",N&&"opacity-50 cursor-not-allowed",i&&"border-red-600 dark:border-red-500"),children:[t.jsx("input",{type:"radio",name:e,value:k.value,checked:E,onChange:()=>w(k.value,!!k.disabled),onKeyDown:A=>S(A,x),disabled:N,className:f("mt-0.5 mr-2",v.radio,"text-blue-600 bg-white dark:bg-gray-900","border-gray-300 dark:border-gray-600","focus:ring-blue-500 focus:ring-2","transition-colors",i&&"border-red-600 dark:border-red-500",N&&"cursor-not-allowed")}),t.jsx("div",{className:"flex-1 min-w-0",children:g?g(k):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:f("font-medium text-gray-700 dark:text-gray-300",v.label),children:k.label}),k.description&&t.jsx("p",{className:f("text-gray-500 dark:text-gray-400 mt-0.5",v.description),children:k.description})]})})]},k.value)})}),d&&t.jsx("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400",children:d})]})},qr=({onTrack:e,trackingLabel:r,componentName:a,onValueChange:n,children:o,...s})=>{const l=i=>{e&&e({action:"change",trackingLabel:r,componentName:a}),n?.(i)};return t.jsx(V.Root,{onValueChange:l,...s,children:o})},kl=V.Group,Aa=V.Value,or=G.forwardRef(({className:e,children:r,...a},n)=>t.jsxs(V.Trigger,{ref:n,className:f("flex h-9 w-full items-center justify-between rounded-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 px-3 py-2 text-sm text-gray-900 dark:text-gray-100 hover:bg-gray-50 dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:ring-offset-gray-950 transition-colors disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...a,children:[r,t.jsx(V.Icon,{asChild:!0,children:t.jsx(Be.ChevronDownIcon,{className:"h-4 w-4 opacity-50 ml-2 flex-shrink-0"})})]}));or.displayName=V.Trigger.displayName;const Gr=G.forwardRef(({className:e,...r},a)=>t.jsx(V.ScrollUpButton,{ref:a,className:f("flex cursor-default items-center justify-center py-1",e),...r,children:t.jsx(Be.ChevronUpIcon,{className:"h-4 w-4"})}));Gr.displayName=V.ScrollUpButton.displayName;const Yr=G.forwardRef(({className:e,...r},a)=>t.jsx(V.ScrollDownButton,{ref:a,className:f("flex cursor-default items-center justify-center py-1",e),...r,children:t.jsx(Be.ChevronDownIcon,{className:"h-4 w-4"})}));Yr.displayName=V.ScrollDownButton.displayName;const sr=G.forwardRef(({className:e,children:r,position:a="popper",...n},o)=>t.jsx(V.Portal,{children:t.jsxs(V.Content,{ref:o,className:f(_.overlays.dropdown.menu(),"z-[1000000] max-h-96 overflow-hidden 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 w-[var(--radix-select-trigger-width)]",e),position:a,...n,children:[t.jsx(Gr,{}),t.jsx(V.Viewport,{className:f(_.overlays.dropdown.itemContainer(),a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full"),children:r}),t.jsx(Yr,{})]})}));sr.displayName=V.Content.displayName;const Ia=G.forwardRef(({className:e,...r},a)=>t.jsx(V.Label,{ref:a,className:f(_.overlays.dropdown.header(),"py-1.5",e),...r}));Ia.displayName=V.Label.displayName;const lr=G.forwardRef(({className:e,children:r,...a},n)=>t.jsxs(V.Item,{ref:n,className:f(_.overlays.dropdown.item(),"relative select-none justify-between pr-8 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[t.jsx(V.ItemText,{children:r}),t.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:t.jsx(V.ItemIndicator,{children:t.jsx(Be.CheckIcon,{className:"h-4 w-4"})})})]}));lr.displayName=V.Item.displayName;const La=G.forwardRef(({className:e,...r},a)=>t.jsx(V.Separator,{ref:a,className:f("my-1 h-px bg-gray-200 dark:bg-gray-700",e),...r}));La.displayName=V.Separator.displayName;const xl=({options:e,value:r,onChange:a,placeholder:n="Select items...",searchPlaceholder:o="Search...",searchable:s=!0,maxDisplay:l=3,disabled:i=!1,className:d})=>{const[c,h]=p.useState(!1),[g,y]=p.useState(""),m=p.useRef(null),b=s?e.filter(N=>N.label.toLowerCase().includes(g.toLowerCase())):e,v=e.filter(N=>r.includes(N.value)),w=N=>{r.includes(N)?a(r.filter(E=>E!==N)):a([...r,N])},S=N=>{a(r.filter(E=>E!==N))};p.useEffect(()=>{const N=E=>{m.current&&!m.current.contains(E.target)&&(h(!1),y(""))};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[]);const k=v.length,x=k>l?k-l:0;return t.jsxs("div",{ref:m,className:f("relative w-full",d),children:[t.jsx("button",{type:"button",onClick:()=>!i&&h(!c),disabled:i,className:f("w-full min-h-[42px] px-3 py-2 text-sm text-left","bg-white dark:bg-gray-900","border border-gray-300 dark:border-gray-700","rounded-md","hover:bg-gray-50 dark:hover:bg-gray-800","transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",c&&"ring-2 ring-blue-500 dark:ring-blue-400"),children:t.jsx("div",{className:"flex flex-wrap gap-1.5",children:v.length===0?t.jsx("span",{className:"text-gray-500 dark:text-gray-400",children:n}):t.jsxs(t.Fragment,{children:[v.slice(0,l).map(N=>t.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 rounded text-xs font-medium",children:[N.label,t.jsx("button",{onClick:E=>{E.stopPropagation(),S(N.value)},className:"hover:text-blue-900 dark:hover:text-blue-100",children:t.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},N.value)),x>0&&t.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 rounded text-xs font-medium",children:["+",x," more"]})]})})}),c&&t.jsxs("div",{className:"absolute z-50 w-full mt-1 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-md shadow-lg",children:[s&&t.jsx("div",{className:"p-2 border-b border-gray-200 dark:border-gray-700",children:t.jsx("input",{type:"text",value:g,onChange:N=>y(N.target.value),placeholder:o,className:"w-full px-3 py-2 text-sm bg-gray-50 dark:bg-gray-800 border-none rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400",onClick:N=>N.stopPropagation()})}),t.jsx("div",{className:"max-h-60 overflow-y-auto py-1",children:b.length===0?t.jsx("div",{className:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400 text-center",children:"No options found"}):b.map(N=>{const E=r.includes(N.value);return t.jsxs("button",{onClick:()=>!N.disabled&&w(N.value),disabled:N.disabled,className:f("w-full px-3 py-2 text-sm text-left flex items-center gap-2","hover:bg-gray-100 dark:hover:bg-gray-800","transition-colors","disabled:opacity-50 disabled:cursor-not-allowed"),children:[t.jsx("div",{className:f("w-4 h-4 border-2 rounded flex items-center justify-center",E?"bg-blue-600 border-blue-600 dark:bg-blue-500 dark:border-blue-500":"border-gray-300 dark:border-gray-600"),children:E&&t.jsx("svg",{className:"w-3 h-3 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})})}),t.jsx("span",{className:"flex-1 text-gray-900 dark:text-white",children:N.label})]},N.value)})}),r.length>0&&t.jsxs("div",{className:"p-2 border-t border-gray-200 dark:border-gray-700 flex justify-between items-center",children:[t.jsxs("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:[r.length," selected"]}),t.jsx("button",{onClick:N=>{N.stopPropagation(),a([])},className:"text-xs text-blue-600 dark:text-blue-400 hover:underline",children:"Clear all"})]})]})]})},Nl=({options:e,value:r,onChange:a,placeholder:n="Select option...",searchPlaceholder:o="Search...",emptyMessage:s="No results found.",disabled:l=!1,className:i})=>{const[d,c]=p.useState(!1),[h,g]=p.useState(""),[y,m]=p.useState(0),b=p.useRef(null),v=p.useRef(null),w=e.filter(N=>N.label.toLowerCase().includes(h.toLowerCase())),S=e.find(N=>N.value===r);p.useEffect(()=>{if(!d)return;const N=E=>{b.current&&!b.current.contains(E.target)&&(c(!1),g(""))};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[d]),p.useEffect(()=>{d&&v.current&&v.current.focus()},[d]),p.useEffect(()=>{m(0)},[h]);const k=N=>{if(!d){(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),c(!0));return}switch(N.key){case"ArrowDown":N.preventDefault(),m(E=>E<w.length-1?E+1:E);break;case"ArrowUp":N.preventDefault(),m(E=>E>0?E-1:E);break;case"Enter":N.preventDefault(),w[y]&&!w[y].disabled&&(a(w[y].value),c(!1),g(""));break;case"Escape":N.preventDefault(),c(!1),g("");break}},x=(N,E)=>{E||(a(N),c(!1),g(""))};return t.jsxs("div",{ref:b,className:f("relative w-full",i),children:[t.jsxs("button",{type:"button",onClick:()=>!l&&c(!d),onKeyDown:k,disabled:l,className:f("w-full flex items-center justify-between","px-3 py-2 text-sm text-left","bg-white dark:bg-gray-900","border border-gray-300 dark:border-gray-700","rounded-md","hover:bg-gray-50 dark:hover:bg-gray-800","transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",d&&"ring-2 ring-blue-500 dark:ring-blue-400"),children:[t.jsx("span",{className:f("truncate",!S&&"text-gray-500 dark:text-gray-400"),children:S?S.label:n}),t.jsx("svg",{className:f("w-4 h-4 ml-2 transition-transform",d&&"rotate-180"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),d&&t.jsxs("div",{className:"absolute z-50 w-full mt-1 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-md shadow-lg",children:[t.jsx("div",{className:"p-2 border-b border-gray-200 dark:border-gray-700",children:t.jsx("input",{ref:v,type:"text",value:h,onChange:N=>g(N.target.value),onKeyDown:k,placeholder:o,className:"w-full px-3 py-2 text-sm bg-gray-50 dark:bg-gray-800 border-none rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400"})}),t.jsx("div",{className:"max-h-60 overflow-y-auto py-1",children:w.length===0?t.jsx("div",{className:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400 text-center",children:s}):w.map((N,E)=>t.jsx("button",{onClick:()=>x(N.value,N.disabled),disabled:N.disabled,className:f("w-full px-3 py-2 text-sm text-left","transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",N.value===r?"bg-blue-50 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300":E===y?"bg-gray-100 dark:bg-gray-800":"hover:bg-gray-50 dark:hover:bg-gray-800"),children:N.label},N.value))})]})]})},Cl=({options:e,value:r,onChange:a,placeholder:n="Enter or select...",disabled:o=!1,className:s,inputClassName:l,filterOptions:i=!0,emptyMessage:d="No matching options"})=>{const[c,h]=p.useState(!1),[g,y]=p.useState(!1),[m,b]=p.useState(!1),[v,w]=p.useState(0),S=p.useRef(null),k=p.useRef(null),x=e.find(M=>M.value===r),N=x?.label&&typeof x.label!="string",E=i&&m?e.filter(M=>(M.searchLabel||M.value).toLowerCase().includes(r.toLowerCase())):e;p.useEffect(()=>{if(!c&&!g)return;const M=D=>{S.current&&!S.current.contains(D.target)&&(h(!1),y(!1),b(!1))};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[c,g]),p.useEffect(()=>{w(0)},[r,E.length]);const A=M=>{if(!c){M.key==="ArrowDown"&&(M.preventDefault(),h(!0));return}switch(M.key){case"ArrowDown":M.preventDefault(),w(D=>D<E.length-1?D+1:D);break;case"ArrowUp":M.preventDefault(),w(D=>D>0?D-1:D);break;case"Enter":M.preventDefault(),E[v]&&!E[v].disabled&&(a(E[v].value),h(!1),b(!1));break;case"Escape":M.preventDefault(),h(!1),b(!1);break;case"Tab":h(!1),b(!1);break}},C=(M,D)=>{D||(a(M),h(!1),y(!1),b(!1))},I=M=>{a(M.target.value),b(!0),c||h(!0)},L=()=>{o||(h(!c),c||k.current?.focus())},O=()=>{o||(y(!0),h(!0),setTimeout(()=>k.current?.focus(),0))};return t.jsxs("div",{ref:S,className:f("relative w-full",s),children:[t.jsxs("div",{className:"relative flex items-center",children:[!g&&N&&r?t.jsx("button",{type:"button",onClick:O,disabled:o,className:f(_.input.default(),"pr-10 text-left flex items-center",o&&"opacity-50 cursor-not-allowed",l),children:x?.label}):t.jsx("input",{ref:k,type:"text",value:r,onChange:I,onKeyDown:A,onFocus:()=>{y(!0),e.length>0&&h(!0)},onBlur:()=>{setTimeout(()=>{c||y(!1)},150)},placeholder:n,disabled:o,className:f(_.input.default(),"pr-10",o&&"opacity-50 cursor-not-allowed",l)}),t.jsx("button",{type:"button",onClick:L,disabled:o,className:f("absolute right-0 top-0 h-full px-3","flex items-center justify-center","text-gray-500 dark:text-gray-400","hover:text-gray-700 dark:hover:text-gray-200","transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",c&&"text-gray-700 dark:text-gray-200"),"aria-label":"Toggle dropdown",children:t.jsx(Be.ChevronDownIcon,{className:f("w-4 h-4 transition-transform",c&&"rotate-180")})})]}),c&&e.length>0&&t.jsx("div",{className:f("absolute z-50 w-full mt-1","bg-white dark:bg-gray-900","border border-gray-300 dark:border-gray-700","rounded-md shadow-lg","max-h-60 overflow-y-auto"),children:E.length===0?t.jsx("div",{className:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400 text-center",children:d}):E.map((M,D)=>t.jsx("button",{type:"button",onClick:()=>C(M.value,M.disabled),disabled:M.disabled,className:f("w-full px-3 py-2 text-sm text-left","flex items-center gap-2","transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",M.value===r?"bg-blue-50 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300":D===v?"bg-gray-100 dark:bg-gray-800":"hover:bg-gray-50 dark:hover:bg-gray-800","text-gray-900 dark:text-gray-100"),children:M.label||M.value},M.value))})]})};function ir(e,r){p.useEffect(()=>{const a=n=>{const o=e?.current;!o||o.contains(n?.target||null)||r(n)};return document.addEventListener("mousedown",a),document.addEventListener("touchstart",a),()=>{document.removeEventListener("mousedown",a),document.removeEventListener("touchstart",a)}},[e,r])}const Sl=({trigger:e,items:r,align:a="right",className:n="",variant:o="default",onTrack:s,trackingLabel:l,componentName:i})=>{const[d,c]=p.useState(!1),h=p.useRef(null);ir(h,()=>c(!1));const g=b=>{b.disabled||(s&&s({action:"select",trackingLabel:l,componentName:i}),b.onClick(),c(!1))},y=a==="left"?_.overlays.dropdown.menuRight():_.overlays.dropdown.menuLeft(),m=o==="bordered"?_.overlays.dropdown.triggerBordered():_.overlays.dropdown.trigger();return t.jsxs("div",{className:`${_.overlays.dropdown.container()} ${n}`,ref:h,children:[t.jsx("div",{className:m,onClick:()=>c(!d),children:e}),d&&t.jsx("div",{className:`${_.overlays.dropdown.menu()} ${y} ${_.overlays.dropdown.menuBottom()}`,children:t.jsx("div",{className:_.overlays.dropdown.itemContainer(),children:r.map(b=>b.separator?t.jsx("div",{className:"my-1 h-px bg-gray-200 dark:bg-gray-700",role:"separator"},b.id):t.jsxs("button",{onClick:()=>g(b),disabled:b.disabled,className:`${b.disabled?_.overlays.dropdown.itemDisabled():_.overlays.dropdown.item()} flex items-center gap-2`,children:[b.icon&&t.jsx(b.icon,{className:_.overlays.dropdown.itemIcon()}),t.jsx("span",{children:b.label})]},b.id))})})]})},El=({options:e,value:r,values:a=[],onChange:n,onValuesChange:o,multiple:s=!1,size:l="md",variant:i="default",className:d})=>{const c=(m,b)=>{if(!b)if(s){const v=a.includes(m)?a.filter(w=>w!==m):[...a,m];o?.(v)}else n?.(m)},h=m=>s?a.includes(m):r===m,g={sm:"text-xs px-2 py-1",md:"text-sm px-3 py-2",lg:"text-base px-4 py-2"},y={default:{base:"bg-gray-100 dark:bg-gray-800",button:"hover:bg-gray-200 dark:hover:bg-gray-700",selected:"bg-white dark:bg-gray-900 shadow-sm"},outline:{base:"border border-gray-200 dark:border-gray-700",button:"hover:bg-gray-50 dark:hover:bg-gray-800",selected:"bg-gray-100 dark:bg-gray-800 border-gray-300 dark:border-gray-600"}};return t.jsx("div",{className:f("inline-flex rounded-lg p-1 gap-1",y[i].base,d),role:"group",children:e.map(m=>{const b=h(m.value);return t.jsxs("button",{onClick:()=>c(m.value,m.disabled),disabled:m.disabled,className:f("inline-flex items-center justify-center gap-2","rounded-md font-medium","transition-all duration-150","disabled:opacity-50 disabled:cursor-not-allowed",g[l],b?y[i].selected:y[i].button,b?"text-gray-900 dark:text-white":"text-gray-600 dark:text-gray-400"),"aria-pressed":b,children:[m.icon&&t.jsx("span",{className:"flex-shrink-0 w-4 h-4",children:m.icon}),m.label]},m.value)})})},Tl=({value:e,onChange:r,min:a=0,max:n=100,step:o=1,disabled:s=!1,showValue:l=!1,formatValue:i=b=>String(b),showMinMax:d=!1,minLabel:c,maxLabel:h,variant:g="primary",size:y="md",className:m})=>{const b={sm:"h-1",md:"h-2",lg:"h-3"},v={primary:"accent-blue-600 dark:accent-blue-500",success:"accent-green-600 dark:accent-green-500",warning:"accent-yellow-600 dark:accent-yellow-500",danger:"accent-red-600 dark:accent-red-500"},w=k=>{r(Number(k.target.value))},S=(e-a)/(n-a)*100;return t.jsxs("div",{className:f("w-full",m),children:[l&&t.jsxs("div",{className:"flex justify-between items-center mb-2",children:[t.jsx("span",{className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:i(e)}),d&&t.jsxs("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:[c||a," - ",h||n]})]}),t.jsxs("div",{className:"relative",children:[t.jsx("div",{className:f("absolute inset-0 rounded-full","bg-gray-200 dark:bg-gray-700",b[y])}),t.jsx("div",{className:f("absolute left-0 rounded-full transition-all","bg-current",v[g],b[y]),style:{width:`${S}%`}}),t.jsx("input",{type:"range",min:a,max:n,step:o,value:e,onChange:w,disabled:s,className:f("relative w-full appearance-none bg-transparent cursor-pointer","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500","rounded-lg",b[y],v[g],s&&"opacity-50 cursor-not-allowed","[&::-webkit-slider-thumb]:appearance-none","[&::-webkit-slider-thumb]:w-4","[&::-webkit-slider-thumb]:h-4","[&::-webkit-slider-thumb]:rounded-full","[&::-webkit-slider-thumb]:bg-white","[&::-webkit-slider-thumb]:border-2","[&::-webkit-slider-thumb]:border-current","[&::-webkit-slider-thumb]:shadow-md","[&::-webkit-slider-thumb]:transition-transform","[&::-webkit-slider-thumb]:hover:scale-110","[&::-moz-range-thumb]:w-4","[&::-moz-range-thumb]:h-4","[&::-moz-range-thumb]:rounded-full","[&::-moz-range-thumb]:bg-white","[&::-moz-range-thumb]:border-2","[&::-moz-range-thumb]:border-current","[&::-moz-range-thumb]:shadow-md","[&::-moz-range-thumb]:transition-transform","[&::-moz-range-thumb]:hover:scale-110")})]}),d&&!l&&t.jsxs("div",{className:"flex justify-between mt-1",children:[t.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:c||a}),t.jsx("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:h||n})]})]})},Al=({value:e,onChange:r,min:a=0,max:n=100,step:o=1,showValue:s=!0,className:l})=>t.jsxs("div",{className:f("flex items-center gap-4",l),children:[t.jsx("input",{type:"range",min:a,max:n,step:o,value:e,onChange:i=>r(Number(i.target.value)),className:"flex-1 accent-blue-500"}),s&&t.jsx("span",{className:"w-12 text-center font-semibold text-gray-900 dark:text-white",children:e})]}),Il=({onChange:e,accept:r,multiple:a=!1,maxSize:n,maxFiles:o,disabled:s=!1,showDropZone:l=!1,showFileList:i=!0,files:d=[],onRemove:c,className:h,buttonText:g="Choose Files",dropZoneText:y="Drop files here or click to browse",onTrack:m,trackingLabel:b,componentName:v})=>{const w=p.useRef(null),[S,k]=p.useState(!1),[x,N]=p.useState(null),E=j=>(N(null),o&&d.length+j.length>o?(N(`Maximum ${o} files allowed`),[]):j.filter($=>n&&$.size>n?(N(`File "${$.name}" exceeds maximum size of ${Kr(n)}`),!1):!0)),A=j=>{m&&m({action:j,trackingLabel:b,componentName:v})},C=j=>{const F=Array.from(j.target.files||[]),$=E(F);$.length>0&&(A("select"),e($)),w.current&&(w.current.value="")},I=()=>{w.current?.click()},L=j=>{j.preventDefault(),j.stopPropagation(),s||k(!0)},O=j=>{j.preventDefault(),j.stopPropagation(),k(!1)},M=j=>{j.preventDefault(),j.stopPropagation()},D=j=>{if(j.preventDefault(),j.stopPropagation(),k(!1),s)return;const F=Array.from(j.dataTransfer.files),$=E(F);$.length>0&&(A("drop"),e($))},B=j=>{c&&(A("remove"),c(j))};return l?t.jsxs("div",{className:f("w-full",h),children:[t.jsx("input",{ref:w,type:"file",onChange:C,accept:r,multiple:a,disabled:s,className:"hidden"}),t.jsx("div",{onClick:I,onDragEnter:L,onDragLeave:O,onDragOver:M,onDrop:D,className:f("relative border-2 border-dashed rounded-lg p-8","transition-colors duration-200","cursor-pointer",S?"border-blue-500 bg-blue-50 dark:bg-blue-900/10":"border-gray-300 dark:border-gray-600 hover:border-gray-400 dark:hover:border-gray-500",s&&"opacity-50 cursor-not-allowed"),children:t.jsxs("div",{className:"flex flex-col items-center justify-center space-y-3",children:[t.jsx(P.CloudArrowUpIcon,{className:"h-12 w-12 text-gray-400 dark:text-gray-500"}),t.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 text-center",children:y}),n&&t.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-500",children:["Max file size: ",Kr(n)]})]})}),x&&t.jsx("p",{className:"mt-2 text-sm text-red-600 dark:text-red-400",children:x}),i&&d.length>0&&t.jsx(Ma,{files:d,onRemove:B})]}):t.jsxs("div",{className:f("w-full",h),children:[t.jsx("input",{ref:w,type:"file",onChange:C,accept:r,multiple:a,disabled:s,className:"hidden"}),t.jsxs("button",{type:"button",onClick:I,disabled:s,className:f("inline-flex items-center px-4 py-2 border border-gray-300 dark:border-gray-600","rounded-lg shadow-sm text-sm font-medium","text-gray-700 dark:text-gray-300","bg-white dark:bg-gray-800","hover:bg-gray-50 dark:hover:bg-gray-700","focus:outline-none focus:ring-2 focus:ring-blue-500","transition-colors",s&&"opacity-50 cursor-not-allowed"),children:[t.jsx(P.DocumentIcon,{className:"h-5 w-5 mr-2"}),g]}),x&&t.jsx("p",{className:"mt-2 text-sm text-red-600 dark:text-red-400",children:x}),i&&d.length>0&&t.jsx(Ma,{files:d,onRemove:B})]})},Ma=({files:e,onRemove:r})=>t.jsx("div",{className:"mt-3 space-y-2",children:e.map((a,n)=>t.jsxs("div",{className:"flex items-center justify-between p-2 bg-gray-50 dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700",children:[t.jsxs("div",{className:"flex items-center space-x-2 flex-1 min-w-0",children:[t.jsx(P.DocumentIcon,{className:"h-5 w-5 text-gray-400 flex-shrink-0"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-gray-100 truncate",children:a.name}),t.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:Kr(a.size)})]})]}),t.jsx("button",{type:"button",onClick:()=>r(n),className:"flex-shrink-0 p-1 text-gray-400 hover:text-red-600 dark:hover:text-red-400 transition-colors","aria-label":"Remove file",children:t.jsx(P.XMarkIcon,{className:"h-5 w-5"})})]},`${a.name}-${n}`))});function Kr(e){if(e===0)return"0 Bytes";const r=1024,a=["Bytes","KB","MB","GB"],n=Math.floor(Math.log(e)/Math.log(r));return Math.round(e/Math.pow(r,n)*100)/100+" "+a[n]}const Ll=({value:e,onChange:r,placeholder:a="Type and press Enter...",maxTags:n,validate:o,validator:s,separators:l=[],allowDuplicates:i=!1,disabled:d=!1,error:c=!1,errorMessage:h,variant:g="primary",renderTag:y,className:m})=>{const b=o||s,[v,w]=p.useState(""),S=p.useRef(null),k={primary:"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300",secondary:"bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300",success:"bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-300",warning:"bg-yellow-100 dark:bg-yellow-900/30 text-yellow-700 dark:text-yellow-300",error:"bg-red-100 dark:bg-red-900/30 text-red-700 dark:text-red-300"},x=I=>{const L=I.trim();L&&(n&&e.length>=n||!i&&e.includes(L)||b&&!b(L)||(r([...e,L]),w("")))},N=I=>{r(e.filter((L,O)=>O!==I))},E=I=>{w(I.target.value)},A=I=>{I.key==="Enter"&&(I.preventDefault(),v.trim()&&x(v)),I.key===","&&(I.preventDefault(),v.trim()&&x(v)),l.length>0&&l.includes(I.key)&&I.key!==","&&(I.preventDefault(),v.trim()&&x(v)),I.key==="Backspace"&&!v&&e.length>0&&N(e.length-1),I.key==="Escape"&&w("")},C=n!==void 0&&e.length>=n;return t.jsxs("div",{className:f("w-full",m),children:[t.jsxs("div",{className:f("min-h-[42px] px-3 py-2 flex flex-wrap gap-2 items-center","bg-white dark:bg-gray-900","border border-gray-300 dark:border-gray-700","rounded-md","focus-within:ring-2 focus-within:ring-blue-500 dark:focus-within:ring-blue-400","transition-all",d&&"opacity-50 cursor-not-allowed bg-gray-50 dark:bg-gray-800",c&&"border-red-500 dark:border-red-400"),onClick:()=>!d&&S.current?.focus(),children:[e.map((I,L)=>y?t.jsx(p.Fragment,{children:y(I,L,()=>N(L))},L):t.jsxs("span",{className:f("inline-flex items-center gap-1.5 px-2.5 py-1",k[g],"text-sm font-medium","rounded-md","transition-colors"),children:[t.jsx("span",{className:"truncate max-w-[200px]",children:I}),t.jsx("button",{type:"button",onClick:O=>{O.stopPropagation(),N(L)},disabled:d,className:f("flex-shrink-0 hover:text-blue-900 dark:hover:text-blue-100","transition-colors","disabled:cursor-not-allowed"),"aria-label":`Remove ${I}`,children:t.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},L)),t.jsx("input",{ref:S,type:"text",value:v,onChange:E,onKeyDown:A,placeholder:e.length===0?a:C?`Max ${n} tags`:"",disabled:d,className:f("flex-1 min-w-[120px] outline-none bg-transparent","text-sm text-gray-900 dark:text-white","placeholder:text-gray-500 dark:placeholder:text-gray-400","disabled:cursor-not-allowed")})]}),h&&t.jsx("p",{className:"mt-1.5 text-xs text-red-600 dark:text-red-400",children:h}),n&&t.jsxs("p",{className:"mt-1.5 text-xs text-gray-600 dark:text-gray-400",children:[e.length," / ",n," tags"]})]})},Ml=({value:e,onChange:r,mentions:a,trigger:n="@",placeholder:o="Type a message...",disabled:s=!1,className:l})=>{const[i,d]=p.useState(!1),[c,h]=p.useState([]),[g,y]=p.useState(0),[m,b]=p.useState(0),v=p.useRef(null),w=p.useRef(null),S=N=>{const E=N.target.value,A=N.target.selectionStart||0;r(E),b(A);const I=E.substring(0,A).split(/\s/),L=I[I.length-1];if(L.startsWith(n)){const O=L.substring(n.length),M=a.filter(D=>D.label.toLowerCase().includes(O.toLowerCase()));h(M),d(M.length>0),y(0)}else d(!1)},k=N=>{const E=e.substring(0,m),A=e.substring(m),C=E.split(/\s/),I=C[C.length-1],L=E.length-I.length,O=e.substring(0,L)+n+N.label+" "+A;if(r(O),d(!1),v.current){const M=L+n.length+N.label.length+1;setTimeout(()=>{v.current?.focus(),v.current?.setSelectionRange(M,M)},0)}},x=N=>{if(i)switch(N.key){case"ArrowDown":N.preventDefault(),y(E=>E<c.length-1?E+1:E);break;case"ArrowUp":N.preventDefault(),y(E=>E>0?E-1:E);break;case"Enter":N.preventDefault(),c[g]&&k(c[g]);break;case"Escape":N.preventDefault(),d(!1);break}};return p.useEffect(()=>{const N=E=>{w.current&&!w.current.contains(E.target)&&v.current&&!v.current.contains(E.target)&&d(!1)};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[]),t.jsxs("div",{className:f("relative w-full",l),children:[t.jsx("textarea",{ref:v,value:e,onChange:S,onKeyDown:x,placeholder:o,disabled:s,className:f("w-full px-3 py-2 text-sm","bg-white dark:bg-gray-900","border border-gray-300 dark:border-gray-700","rounded-md","focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400","disabled:opacity-50 disabled:cursor-not-allowed","resize-none","min-h-[100px]")}),i&&t.jsx("div",{ref:w,className:"absolute z-50 w-full mt-1 bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-md shadow-lg max-h-60 overflow-y-auto",children:c.map((N,E)=>t.jsxs("button",{onClick:()=>k(N),className:f("w-full px-3 py-2 text-left flex items-center gap-3","hover:bg-gray-100 dark:hover:bg-gray-800","transition-colors",E===g&&"bg-blue-50 dark:bg-blue-900/30"),children:[N.avatar&&t.jsx("img",{src:N.avatar,alt:N.label,className:"w-8 h-8 rounded-full"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white truncate",children:N.label}),N.metadata&&t.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400 truncate",children:N.metadata})]})]},N.id))})]})},Pl=Z.cva(`${U.label.default()} peer-disabled:cursor-not-allowed peer-disabled:opacity-70`),Zr=G.forwardRef(({className:e,...r},a)=>t.jsx(St.Root,{ref:a,className:f(Pl(),e),...r}));Zr.displayName=St.Root.displayName;const Ol=({id:e,label:r,type:a="text",value:n,onChange:o,placeholder:s,helperText:l,error:i,required:d=!1,disabled:c=!1,maxLength:h,autoFocus:g=!1,className:y,inputClassName:m})=>{const b=!!i,v=l||i?`${e}-helper`:void 0;return t.jsxs("div",{className:f("space-y-2",y),children:[t.jsxs(Zr,{htmlFor:e,children:[r,d&&t.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),t.jsx(nr,{type:a,id:e,value:n,onChange:o,placeholder:s,disabled:c,maxLength:h,autoFocus:g,required:d,"aria-invalid":b,"aria-describedby":v,className:m}),(l||i)&&t.jsx("p",{id:v,className:f(U.body.sm(),b?"text-red-600 dark:text-red-400":"text-gray-500 dark:text-gray-400"),role:b?"alert":void 0,children:i||l})]})},cr=({label:e,required:r=!1,error:a,helpText:n,children:o,layout:s="vertical",className:l="",labelClassName:i="",contentClassName:d=""})=>{const c=s==="horizontal";return t.jsxs("div",{className:`${c?"grid grid-cols-1 md:grid-cols-3 gap-4 items-start":"space-y-2"} ${l}`,children:[t.jsxs("div",{className:c?"md:col-span-1":"",children:[t.jsxs("label",{className:`block text-sm font-medium text-gray-700 dark:text-gray-300 ${i}`,children:[e,r&&t.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),n&&!a&&t.jsxs("div",{className:"mt-1 flex items-start",children:[t.jsx(P.InformationCircleIcon,{className:"h-4 w-4 text-gray-400 mr-1 mt-0.5 flex-shrink-0"}),t.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:n})]})]}),t.jsxs("div",{className:`${c?"md:col-span-2":""} ${d}`,children:[t.jsx("div",{className:a?"relative":"",children:o}),a&&t.jsxs("div",{className:"mt-1 flex items-start",children:[t.jsx(P.ExclamationCircleIcon,{className:"h-4 w-4 text-red-500 mr-1 mt-0.5 flex-shrink-0"}),t.jsx("p",{className:"text-xs text-red-600 dark:text-red-400",children:a})]})]})]})},Ul=({label:e,value:r,onChange:a,placeholder:n,required:o=!1,error:s,helpText:l,type:i="text",layout:d="vertical",className:c=""})=>t.jsx(cr,{label:e,required:o,error:s,helpText:l,layout:d,className:c,children:t.jsx("input",{type:i,value:r,onChange:h=>a(h.target.value),placeholder:n,className:`
23
23
  block w-full px-3 py-2 border rounded-md shadow-sm
24
24
  focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500
25
25
  dark:bg-gray-800 dark:border-gray-600 dark:text-white
@@ -6,7 +6,7 @@ export interface ActionBannerProps {
6
6
  description?: string;
7
7
  /** Variant determines the color scheme */
8
8
  variant?: 'info' | 'success' | 'warning' | 'error';
9
- /** Icon to display (React node, typically from lucide-react) */
9
+ /** Icon to display (React node, typically from @heroicons/react) */
10
10
  icon?: React.ReactNode;
11
11
  /** Action button configuration */
12
12
  action?: {
@@ -1 +1 @@
1
- {"version":3,"file":"action-banner.d.ts","sourceRoot":"","sources":["../../../src/primitives/feedback/action-banner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,iBAAiB;IAChC,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACnD,gEAAgE;IAChE,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,kCAAkC;IAClC,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;KACxB,CAAC;IACF,kCAAkC;IAClC,eAAe,CAAC,EAAE;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;IACF,0CAA0C;IAC1C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA6CD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAoFpD,CAAC"}
1
+ {"version":3,"file":"action-banner.d.ts","sourceRoot":"","sources":["../../../src/primitives/feedback/action-banner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,iBAAiB;IAChC,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACnD,oEAAoE;IACpE,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,kCAAkC;IAClC,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;KACxB,CAAC;IACF,kCAAkC;IAClC,eAAe,CAAC,EAAE;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;IACF,0CAA0C;IAC1C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA6CD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAoFpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/ui/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAK1D,kDAAkD;AAClD,MAAM,WAAW,kBAAkB;IACjC,uBAAuB;IACvB,MAAM,EAAE,QAAQ,CAAC;IACjB,yCAAyC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iCAAiC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,WAAY,SAAQ,eAAe,CAAC,WAAW;IAC9D,0DAA0D;IAC1D,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC7C,gCAAgC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0CAA0C;IAC1C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAwBjC,CAAC;AAEF,QAAA,MAAM,WAAW,yGAAwB,CAAC;AAE1C,QAAA,MAAM,WAAW,0GAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,oKAiBjB,CAAC;AAGH,QAAA,MAAM,oBAAoB,qKAcxB,CAAC;AAGH,QAAA,MAAM,sBAAsB,uKAc1B,CAAC;AAIH,QAAA,MAAM,aAAa,8JA8BjB,CAAC;AAGH,QAAA,MAAM,WAAW,4JASf,CAAC;AAGH,QAAA,MAAM,UAAU,2JAqBd,CAAC;AAGH,QAAA,MAAM,eAAe,gKASnB,CAAC;AAGH,OAAO,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,sBAAsB,GACvB,CAAC"}
1
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/ui/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAS1D,kDAAkD;AAClD,MAAM,WAAW,kBAAkB;IACjC,uBAAuB;IACvB,MAAM,EAAE,QAAQ,CAAC;IACjB,yCAAyC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iCAAiC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,WAAY,SAAQ,eAAe,CAAC,WAAW;IAC9D,0DAA0D;IAC1D,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC7C,gCAAgC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0CAA0C;IAC1C,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAwBjC,CAAC;AAEF,QAAA,MAAM,WAAW,yGAAwB,CAAC;AAE1C,QAAA,MAAM,WAAW,0GAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,oKAiBjB,CAAC;AAGH,QAAA,MAAM,oBAAoB,qKAcxB,CAAC;AAGH,QAAA,MAAM,sBAAsB,uKAc1B,CAAC;AAIH,QAAA,MAAM,aAAa,8JA8BjB,CAAC;AAGH,QAAA,MAAM,WAAW,4JASf,CAAC;AAGH,QAAA,MAAM,UAAU,2JAqBd,CAAC;AAGH,QAAA,MAAM,eAAe,gKASnB,CAAC;AAGH,OAAO,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,sBAAsB,GACvB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sudobility/components",
3
- "version": "4.0.153",
3
+ "version": "4.0.156",
4
4
  "description": "Reusable UI components and design system - Reorganized for better maintainability",
5
5
  "type": "module",
6
6
  "main": "dist/index.umd.js",
@@ -61,7 +61,6 @@
61
61
  "class-variance-authority": ">=0.7.0",
62
62
  "clsx": ">=2.0.0",
63
63
  "i18next": ">=23.0.0",
64
- "lucide-react": ">=0.300.0",
65
64
  "react": ">=18.0.0",
66
65
  "react-dom": ">=18.0.0",
67
66
  "react-i18next": ">=14.0.0",
@@ -101,7 +100,6 @@
101
100
  "eslint-plugin-react-refresh": "^0.4.0",
102
101
  "i18next": "^25.6.0",
103
102
  "jsdom": "^26.1.0",
104
- "lucide-react": "^0.548.0",
105
103
  "postcss": "^8.5.6",
106
104
  "prettier": "^3.6.2",
107
105
  "react": "^19.0.0",