@sudobility/components 2.0.23 → 2.0.25
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 +2672 -2645
- package/dist/index.umd.js +12 -12
- package/dist/ui/accordion.d.ts +1 -1
- package/dist/ui/code-display.d.ts +1 -1
- package/dist/ui/copy-button.d.ts +1 -1
- package/dist/ui/gradient-banner.d.ts +1 -1
- package/dist/ui/logo.d.ts +1 -1
- package/dist/ui/logo.d.ts.map +1 -1
- package/dist/utils/storage.d.ts +2 -2
- package/package.json +3 -4
- package/vendor/@johnqh/design-system/colors.d.ts +0 -1064
- package/vendor/@johnqh/design-system/colors.d.ts.map +0 -1
- package/vendor/@johnqh/design-system/index.d.ts +0 -123
- package/vendor/@johnqh/design-system/index.d.ts.map +0 -1
- package/vendor/@johnqh/design-system/index.esm.js +0 -3543
- package/vendor/@johnqh/design-system/index.umd.js +0 -1
- package/vendor/@johnqh/design-system/package.json +0 -9
- package/vendor/@johnqh/design-system/simple-variants.d.ts +0 -72
- package/vendor/@johnqh/design-system/simple-variants.d.ts.map +0 -1
- package/vendor/@johnqh/design-system/tokens.d.ts +0 -307
- package/vendor/@johnqh/design-system/tokens.d.ts.map +0 -1
- package/vendor/@johnqh/design-system/typography.d.ts +0 -112
- package/vendor/@johnqh/design-system/typography.d.ts.map +0 -1
- package/vendor/@johnqh/design-system/variants.d.ts +0 -35
- package/vendor/@johnqh/design-system/variants.d.ts.map +0 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
(function(u
|
|
1
|
+
(function(u,Oe){typeof exports=="object"&&typeof module<"u"?Oe(exports,require("clsx"),require("tailwind-merge"),require("react"),require("react/jsx-runtime"),require("web-vitals"),require("react-dom"),require("@heroicons/react/24/outline"),require("@radix-ui/react-slot"),require("class-variance-authority"),require("@radix-ui/react-label"),require("@radix-ui/react-select"),require("lucide-react"),require("@radix-ui/react-switch"),require("@radix-ui/react-tabs"),require("@heroicons/react/24/solid"),require("react-router-dom"),require("react-share"),require("react-i18next"),require("react-helmet-async")):typeof define=="function"&&define.amd?define(["exports","clsx","tailwind-merge","react","react/jsx-runtime","web-vitals","react-dom","@heroicons/react/24/outline","@radix-ui/react-slot","class-variance-authority","@radix-ui/react-label","@radix-ui/react-select","lucide-react","@radix-ui/react-switch","@radix-ui/react-tabs","@heroicons/react/24/solid","react-router-dom","react-share","react-i18next","react-helmet-async"],Oe):(u=typeof globalThis<"u"?globalThis:u||self,Oe(u.MailBoxComponents={},u.clsx,u.tailwindMerge,u.React,u.ReactJSXRuntime,u.WebVitals,u.ReactDOM,u.HeroiconsOutline,u.RadixSlot,u.cva,u.RadixLabel,u.RadixSelect,u.LucideReact,u.RadixSwitch,u.RadixTabs,u.HeroiconsSolid,u.ReactRouterDOM,u.ReactShare,u.ReactI18next,u.ReactHelmetAsync))})(this,(function(u,Oe,hn,x,n,Me,Qe,E,St,_,hr,bn,Xe,Nt,me,he,Ze,Q,br,yn){"use strict";function Et(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const S=Et(x),yr=Et(Qe),H=Et(bn);function y(...e){return hn.twMerge(Oe.clsx(e))}const xn=e=>e,vn=e=>{if(typeof document>"u")return;const t=document.createElement("style");t.textContent=e,t.setAttribute("data-critical","true"),document.head.appendChild(t)},wn=e=>{if(typeof document>"u")return;const t=document.createElement("link");t.rel="preload",t.as="style",t.href=e,t.onload=()=>{t.rel="stylesheet"},document.head.appendChild(t);const r=document.createElement("noscript");r.innerHTML=`<link rel="stylesheet" href="${e}">`,document.head.appendChild(r)},kn=e=>{const t={};return Object.entries(e).forEach(([r,a])=>{t[`--${r}`]=typeof a=="number"?`${a}px`:a}),t},Cn={xs:475,sm:640,md:768,lg:1024,xl:1280,"2xl":1536},Sn=(e,t=Cn)=>{const[r,a]=x.useState("base");return x.useEffect(()=>{const o=()=>{const s=window.innerWidth;s>=t["2xl"]?a("2xl"):s>=t.xl?a("xl"):s>=t.lg?a("lg"):s>=t.md?a("md"):s>=t.sm?a("sm"):s>=t.xs?a("xs"):a("base")};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[t]),e[r]||e.base||{}},xr=()=>typeof window>"u"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches,Nn=()=>{const[e,t]=x.useState(xr);return x.useEffect(()=>{const r=window.matchMedia("(prefers-reduced-motion: reduce)"),a=()=>{t(r.matches)};return r.addEventListener?r.addEventListener("change",a):r.addListener(a),()=>{r.removeEventListener?r.removeEventListener("change",a):r.removeListener(a)}},[]),e},En=(e,t=["layout","paint"])=>{e&&(e.style.contain=t.join(" "))},An=(e,t)=>e?(e.style.willChange=t.join(", "),()=>{e.style.willChange="auto"}):void 0,Pn=e=>{typeof window>"u"||requestAnimationFrame(()=>{e.forEach(t=>t())})},Tn=(...e)=>e.filter(Boolean).join(" "),In=e=>{const t={},r=["display","position","width","height","margin","padding","fontSize","fontFamily","color","backgroundColor"];return Object.entries(e).forEach(([a,o])=>{r.includes(a)&&(t[a]=o)}),t},$n=(e,t=[])=>{const[r,a]=x.useState(null),[o,s]=x.useState(!0);return x.useEffect(()=>{let i=!0;return e().then(l=>{i&&(a(l.default),s(!1))}),()=>{i=!1}},[e,...t]),{styles:r,loading:o}},Ln=(e,t="1rem")=>({display:"grid",gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`,gap:t,contain:"layout",willChange:"transform"}),On=(e="row",t="center",r="flex-start")=>({display:"flex",flexDirection:e,alignItems:t,justifyContent:r,contain:"layout"}),Mn=e=>{const[t,r]=x.useState(!1);return x.useEffect(()=>{const a=window.matchMedia(e);r(a.matches);const o=()=>r(a.matches);return a.addEventListener?a.addEventListener("change",o):a.addListener(o),()=>{a.removeEventListener?a.removeEventListener("change",o):a.removeListener(o)}},[e]),t},zn=(e,t)=>{const[r,a]=x.useState("light");return x.useEffect(()=>{const o=window.matchMedia("(prefers-color-scheme: dark)");a(o.matches?"dark":"light");const s=()=>{a(o.matches?"dark":"light")};return o.addEventListener?o.addEventListener("change",s):o.addListener(s),()=>{o.removeEventListener?o.removeEventListener("change",s):o.removeListener(s)}},[]),r==="dark"?t:e},Dn=e=>{const t={src:e.src,alt:e.alt,loading:e.loading||"lazy"};return e.title&&(t.title=e.title),e.width&&(t.width=e.width),e.height&&(t.height=e.height),e.sizes&&(t.sizes=e.sizes),e.srcSet&&(t.srcSet=e.srcSet),t.itemProp="image",t},Bn=(e,t=[320,640,768,1024,1280,1920])=>t.map(r=>`${e.replace(/\{width\}/g,r.toString())} ${r}w`).join(", "),Wn=e=>e.map(t=>t.maxWidth?`(max-width: ${t.maxWidth}px) ${t.size}`:t.size).join(", "),jn=(e,t="openGraph")=>{const r={};return t==="openGraph"?(r["og:image"]=e.url,e.width&&(r["og:image:width"]=e.width.toString()),e.height&&(r["og:image:height"]=e.height.toString()),e.alt&&(r["og:image:alt"]=e.alt),e.type&&(r["og:image:type"]=e.type)):(r["twitter:image"]=e.url,e.alt&&(r["twitter:image:alt"]=e.alt)),r},Fn=(e='img[loading="lazy"]')=>{if(typeof window>"u"||!("IntersectionObserver"in window))return;const t=document.querySelectorAll(e);if("loading"in HTMLImageElement.prototype){t.forEach(a=>{a.dataset.src&&(a.src=a.dataset.src)});return}const r=new IntersectionObserver(a=>{a.forEach(o=>{if(o.isIntersecting){const s=o.target;s.dataset.src&&(s.src=s.dataset.src,s.removeAttribute("data-src")),s.dataset.srcset&&(s.srcset=s.dataset.srcset,s.removeAttribute("data-srcset")),r.unobserve(s)}})},{rootMargin:"50px 0px",threshold:.01});return t.forEach(a=>r.observe(a)),()=>{t.forEach(a=>r.unobserve(a))}},vr=()=>typeof window>"u"?Promise.resolve(!1):new Promise(e=>{const t=new Image;t.onload=t.onerror=function(){e(t.height===2)},t.src="data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA"}),wr=()=>typeof window>"u"?Promise.resolve(!1):new Promise(e=>{const t=new Image;t.onload=()=>e(!0),t.onerror=()=>e(!1),t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A="}),_n=async(e="jpg")=>{const[t,r]=await Promise.all([vr(),wr()]);return r?"avif":t?"webp":e},Hn=(e,t,r,a)=>`
|
|
2
2
|
<picture>
|
|
3
3
|
${e.map(s=>{const i=[`srcset="${s.srcSet}"`];return s.type&&i.push(`type="${s.type}"`),s.media&&i.push(`media="${s.media}"`),s.sizes&&i.push(`sizes="${s.sizes}"`),`<source ${i.join(" ")}>`}).join(`
|
|
4
4
|
`)}
|
|
5
5
|
<img src="${t}" alt="${r}"${a?` class="${a}"`:""} loading="lazy">
|
|
6
|
-
</picture>`.trim(),
|
|
6
|
+
</picture>`.trim(),Un=(e,t="image")=>{if(typeof document>"u")return;const r=document.createElement("link");r.rel="preload",r.as=t,r.href=e,e.includes(".webp")?r.type="image/webp":e.includes(".avif")&&(r.type="image/avif"),document.head.appendChild(r)},Vn=(e,t,r)=>{if(typeof window>"u")return;const a=new Image;a.src=e,a.classList.add("progressive-image-placeholder"),r.appendChild(a);const o=new Image;o.src=t,o.classList.add("progressive-image-main"),o.style.opacity="0",o.onload=()=>{r.appendChild(o),requestAnimationFrame(()=>{o.style.transition="opacity 0.3s",o.style.opacity="1",setTimeout(()=>{a.remove()},300)})}},qn=e=>new Promise(t=>{const r=performance.now();e.complete?t({loadTime:0,size:0,format:e.src.split(".").pop()||"unknown",dimensions:{width:e.naturalWidth,height:e.naturalHeight},isLazyLoaded:e.loading==="lazy",isOptimized:e.srcset!==""||e.sizes!==""}):e.addEventListener("load",()=>{const a=performance.now()-r;t({loadTime:a,size:0,format:e.src.split(".").pop()||"unknown",dimensions:{width:e.naturalWidth,height:e.naturalHeight},isLazyLoaded:e.loading==="lazy",isOptimized:e.srcset!==""||e.sizes!==""})})}),Gn=(e,t,r="#e0e0e0")=>{const a=`
|
|
7
7
|
<svg width="${e}" height="${t}" xmlns="http://www.w3.org/2000/svg">
|
|
8
8
|
<rect width="100%" height="100%" fill="${r}"/>
|
|
9
9
|
</svg>
|
|
10
|
-
`;return`data:image/svg+xml;base64,${btoa(a)}`},Un=(e,t)=>{const r=1/t*100;e.style.position="relative",e.style.paddingTop=`${r}%`;const a=e.querySelector("img");a&&(a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.width="100%",a.style.height="100%",a.style.objectFit="cover")},ke={createPureFunction:e=>e,isDevelopment:process.env.NODE_ENV==="development",isProduction:process.env.NODE_ENV==="production",isTest:process.env.NODE_ENV==="test",createFeatureFlags:(e={})=>({enableAnalytics:process.env.VITE_ENABLE_ANALYTICS==="true",enableDebugTools:process.env.NODE_ENV==="development",enablePerformanceMonitoring:process.env.VITE_ENABLE_PERF_MONITORING!=="false",...e})},Gn=e=>{const t={};return Object.entries(e).forEach(([r,a])=>{t[r]=()=>{try{return a()}catch{return Promise.resolve({default:null})}}}),t},vr={createDebounce:e=>t=>{let r;return((...a)=>{clearTimeout(r),r=setTimeout(()=>t(...a),e)})},memoize:e=>{const t=new Map;return((...r)=>{const a=JSON.stringify(r);if(t.has(a))return t.get(a);const o=e(...r);return t.set(a,o),o})},isDeepEqual:(e,t)=>{if(e===t)return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(const o of r)if(!a.includes(o)||!vr.isDeepEqual(e[o],t[o]))return!1;return!0},createThrottle:e=>t=>{let r=0;return((...a)=>{const o=Date.now();if(o-r>=e)return r=o,t(...a)})}},Kn=e=>{const t={};return Object.entries(e).forEach(([r,a])=>{t[r]={},Object.entries(a).forEach(([o,s])=>{t[r][o]=()=>import(s).then(i=>({[o]:i[o]}))})}),t},Ce={getModuleSize:e=>new Promise(t=>{if(typeof window<"u"&&"performance"in window){const a=performance.getEntriesByType("resource").find(o=>o.name.includes(e));t(a?.transferSize||0)}else t(0)}),usageTracker:new Set,trackUsage:e=>{ke.isDevelopment&&Ce.usageTracker.add(e)},getUsageReport:()=>ke.isDevelopment?Array.from(Ce.usageTracker).sort():[],estimateImpact:e=>{const t=e.map(r=>Ce.getModuleSize(r).then(a=>[r,a]));return Promise.all(t).then(r=>{const a={};let o=0;return r.forEach(([s,i])=>{a[s]=i,o+=i}),{total:o,modules:a}})}},wr={inlineCriticalCSS:e=>{if(typeof document<"u"){const t=document.createElement("style");t.textContent=e,document.head.appendChild(t)}},loadAsyncCSS:e=>{if(typeof document<"u"){const t=document.createElement("link");t.rel="stylesheet",t.href=e,t.media="print",t.onload=()=>{t.media="all"},document.head.appendChild(t)}},removeUnusedCSS:e=>{if(typeof document>"u")return;const t=new Set;return e.forEach(r=>{try{document.querySelector(r)&&t.add(r)}catch{}}),{used:Array.from(t),unused:e.filter(r=>!t.has(r))}}},Yn=(e={})=>{const{features:t={},criticalCSS:r="",enableUsageTracking:a=ke.isDevelopment}=e;return{features:ke.createFeatureFlags(t),initialize:()=>{r&&typeof document<"u"&&wr.inlineCriticalCSS(r)},cleanup:()=>{Ce.usageTracker.clear()},getReport:()=>({usage:Ce.getUsageReport(),features:ke.createFeatureFlags(t)})}};let Et;function Qn(e){throw typeof window<"u"?new Error("Web navigation service not implemented in shared library"):new Error("React Native navigation service not implemented in shared library")}function J(e){return Et||(Et=Qn()),Et}function Xn(){const e=J(),t=e.getCurrentState();return{navigate:(r,a)=>{e.navigate(r,a)},goBack:r=>{e.goBack(r)},replace:(r,a)=>{e.replace(r,a)},currentPath:t.currentPath,searchParams:t.searchParams,params:t.params,canGoBack:e.canGoBack(),isSupported:e.isSupported()}}function Zn(){const t=J().getCurrentState(),r=Object.keys(t.searchParams).length>0?"?"+new URLSearchParams(t.searchParams).toString():"";return{pathname:t.currentPath,search:r,searchParams:t.searchParams,hash:"",state:{},key:t.currentPath}}function Jn(){const e=J(),t=e.getCurrentState();return[new URLSearchParams(t.searchParams),o=>{const s=o instanceof URLSearchParams?Object.fromEntries(o.entries()):o,i=new URLSearchParams(s).toString(),l=t.currentPath+(i?`?${i}`:"");e.replace(l)}]}const be={navigate:(e,t)=>{J().navigate(e,t)},goBack:e=>{J().goBack(e)},replace:(e,t)=>{J().replace(e,t)},getCurrentPath:()=>J().getCurrentPath(),getSearchParams:()=>J().getSearchParams(),goToMail:()=>{be.navigate("/mail")},goToPreferences:()=>{be.navigate("/preferences")},goToCompose:(e,t)=>{const r=new URLSearchParams;e&&r.set("type",e),t&&Object.entries(t).forEach(([o,s])=>{r.set(o,s)});const a=r.toString();be.navigate(`/mail/compose${a?`?${a}`:""}`)},goToConnect:()=>{be.navigate("/connect")},goToDelegate:()=>{be.navigate("/admin/delegate")},goToHome:()=>{be.navigate("/")},canGoBack:()=>J().canGoBack()},Rn=(e,t)=>t.find(r=>r.href===e)||null,eo=(e,t,r)=>{const a=e.split("/").filter(Boolean);if(a.length===0)return[{label:"Home",current:!0}];const o=[{label:"Home",href:"/"}],i={...{docs:"Documentation",about:"About",connect:"Connect",settings:"Settings",preferences:"Preferences",profile:"Profile",help:"Help",support:"Support",contact:"Contact",terms:"Terms of Service",privacy:"Privacy Policy"},...r||{}};return a.forEach((l,c)=>{const d=c===a.length-1,g="/"+a.slice(0,c+1).join("/"),m=t&&d?t:i[l]||l;o.push({label:m,href:d?void 0:g,current:d})}),o},to={isActivePath:(e,t,r=!0)=>r?e===t:e.startsWith(t),getParentPath:e=>{const t=e.split("/").filter(Boolean);return t.length<=1?"/":"/"+t.slice(0,-1).join("/")},extractParams:(e,t)=>{const r=e.split("/").filter(Boolean),a=t.split("/").filter(Boolean),o={};return r.forEach((s,i)=>{if(s.startsWith(":")&&a[i]){const l=s.substring(1);o[l]=a[i]}}),o},buildUrlWithParams:(e,t)=>{const r=new URL(e,"http://localhost");return Object.entries(t).forEach(([a,o])=>{r.searchParams.set(a,String(o))}),r.pathname+r.search},parseQueryParams:e=>{const t=new URLSearchParams(e.startsWith("?")?e:`?${e}`),r={};return t.forEach((a,o)=>{r[o]=a}),r},normalizePath:e=>{if(!e||e==="/")return"/";let t=e.startsWith("/")?e:`/${e}`;return t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t},isExternalUrl:e=>{try{return new URL(e,window?.location?.origin||"http://localhost").origin!==(window?.location?.origin||"http://localhost")}catch{return!1}}};function ro(e,t=3,r=1e3){return x.lazy(()=>new Promise((a,o)=>{const s=i=>{e().then(a).catch(l=>{i>0?setTimeout(()=>{s(i-1)},r):o(l)})};s(t)}))}function ao(e){let t=null;const r=()=>(t||(t=e()),t.then(()=>{}));return{Component:x.lazy(()=>t||e()),preload:r}}function no(e,t={}){const{fallback:r=n.jsx("div",{children:"Loading..."}),errorFallback:a=n.jsx("div",{children:"Failed to load component"}),loadingDelay:o=200,minimumLoadingTime:s=500}=t,i=x.lazy(async()=>{const c=Date.now();try{const d=await e(),g=Date.now()-c;return g<s&&await new Promise(m=>setTimeout(m,s-g)),d}catch{return{default:(()=>a)}}}),l=()=>{const[c,d]=x.useState(!1);return x.useEffect(()=>{const g=setTimeout(()=>{d(!0)},o);return()=>clearTimeout(g)},[]),c?n.jsx(n.Fragment,{children:r}):null};return x.forwardRef((c,d)=>n.jsx(x.Suspense,{fallback:n.jsx(l,{}),children:n.jsx(i,{...c,ref:d})}))}function kr(e,t={}){const[r,a]=x.useState(!1),[o,s]=x.useState(!1);return x.useEffect(()=>{const i=e.current;if(!i||o)return;const l=new IntersectionObserver(([c])=>{c.isIntersecting&&(a(!0),s(!0),l.disconnect())},{rootMargin:"50px",threshold:.01,...t});return l.observe(i),()=>{l.disconnect()}},[e,t,o]),r}const oo=({children:e,fallback:t=n.jsx("div",{children:"Loading..."}),threshold:r=.01,rootMargin:a="50px",placeholder:o})=>{const s=x.useRef(null),i=kr(s,{threshold:r,rootMargin:a});return n.jsx("div",{ref:s,children:i?e:o||t})};function so(e){const{importFn:t,preloadOnHover:r=!0,preloadOnFocus:a=!0,prefetchDelay:o=50}=e;let s=null,i=null;const l=()=>(i||(i=t()),i),c=()=>{s&&clearTimeout(s),s=setTimeout(()=>{l()},o)};return{Component:x.lazy(()=>i||t()),preload:l,linkProps:{...r&&{onMouseEnter:c,onMouseLeave:()=>{s&&clearTimeout(s)}},...a&&{onFocus:c}}}}function io(e,t=[]){const[r,a]=x.useState(null),[o,s]=x.useState(!0),[i,l]=x.useState(null);return x.useEffect(()=>{let c=!0;return s(!0),l(null),e().then(d=>{c&&(a(d),s(!1))}).catch(d=>{c&&(l(d),s(!1))}),()=>{c=!1}},[e,...t]),{module:r,loading:o,error:i}}class Cr{constructor(t=3,r=100){this.queue=new Set,this.isProcessing=!1,this.batchSize=t,this.delay=r}add(t){this.queue.add(t),this.process()}async process(){if(this.isProcessing||this.queue.size===0)return;this.isProcessing=!0;const t=Array.from(this.queue).slice(0,this.batchSize);t.forEach(r=>this.queue.delete(r)),await Promise.all(t.map(r=>r().catch(()=>{}))),this.queue.size>0&&await new Promise(r=>setTimeout(r,this.delay)),this.isProcessing=!1,this.queue.size>0&&this.process()}}function lo(e,t,r){if(typeof document>"u")return;const a=document.createElement("link");a.rel=t,a.href=e,r&&(t==="preload"||t==="prefetch")&&(a.as=r),document.head.appendChild(a)}var At=(e=>(e[e.HIGH=0]="HIGH",e[e.MEDIUM=1]="MEDIUM",e[e.LOW=2]="LOW",e[e.IDLE=3]="IDLE",e))(At||{});class Sr{constructor(){this.queues=new Map,this.isProcessing=!1,Object.values(At).filter(t=>typeof t=="number").forEach(t=>{this.queues.set(t,[])})}load(t,r=1){const a=this.queues.get(r);a&&a.push(t),this.process()}async process(){if(!this.isProcessing){this.isProcessing=!0;for(const[t,r]of this.queues)for(;r.length>0;){const a=r.shift();if(a)try{await a()}catch{}t>=2&&await new Promise(o=>setTimeout(o,50))}this.isProcessing=!1}}}const co=new Cr,uo=new Sr;class Pt{constructor(t={}){this.prefix=t.prefix||"mailbox",this.defaultTTL=t.ttl,this.platformStorage=t.platformStorage||this.createFallbackStorage()}createFallbackStorage(){const t=new Map;return{getItem:r=>t.get(r)||null,setItem:(r,a)=>{t.set(r,a)},removeItem:r=>{t.delete(r)},clear:()=>{t.clear()},getAllKeys:()=>Array.from(t.keys())}}getKey(t){return`${this.prefix}-${t}`}isExpired(t){return t.ttl?Date.now()-t.timestamp>t.ttl:!1}set(t,r,a){try{const o={value:r,timestamp:Date.now(),ttl:a||this.defaultTTL};this.platformStorage.setItem(this.getKey(t),JSON.stringify(o))}catch{}}get(t,r){try{const a=this.platformStorage.getItem(this.getKey(t));if(!a)return r;const o=JSON.parse(a);return this.isExpired(o)?(this.remove(t),r):o.value}catch{return r}}remove(t){try{this.platformStorage.removeItem(this.getKey(t))}catch{}}clear(t){try{if(this.platformStorage.getAllKeys){const r=this.platformStorage.getAllKeys(),a=this.getKey(t||""),o=r.filter(s=>s.startsWith(a));for(const s of o)this.platformStorage.removeItem(s)}else this.platformStorage.clear?.()}catch(r){console.error("Failed to clear storage:",r)}}has(t){try{return this.platformStorage.getItem(this.getKey(t))!==null}catch(r){return console.error(`Failed to check item ${t}:`,r),!1}}getAllKeys(){try{if(this.platformStorage.getAllKeys){const t=this.platformStorage.getAllKeys(),r=`${this.prefix}-`;return t.filter(a=>a.startsWith(r)).map(a=>a.substring(r.length))}return[]}catch(t){return console.error("Failed to get all keys:",t),[]}}}const go=new Pt,mo=new Pt({prefix:"mailbox-theme"}),po=new Pt({prefix:"walletUser",ttl:10080*60*1e3}),fo=e=>{if(!e)throw new Error("PlatformStorage must be provided to createSimpleStorage");return{setItem:(t,r)=>{try{e.setItem(t,r)}catch{}},getItem:t=>{try{return e.getItem(t)}catch{return null}},removeItem:t=>{try{e.removeItem(t)}catch{}}}};function Nr(){const e={isWalletBrowser:!1,walletType:"unknown",hasEthereum:!1,hasSolana:!1,provider:null};if(typeof window>"u")return e;try{const t=navigator.userAgent.toLowerCase();let r="unknown",a=!1;t.includes("metamask")?(r="metamask",a=!0):t.includes("trustwallet")?(r="trustwallet",a=!0):t.includes("coinbase")?(r="coinbase",a=!0):t.includes("rainbow")?(r="rainbow",a=!0):t.includes("phantom")?(r="phantom",a=!0):t.includes("solflare")?(r="solflare",a=!0):t.includes("exodus")&&(r="exodus",a=!0);const o=!!window.ethereum,s=!!window.solana||!!window.phantom?.solana;(o||s)&&!a&&(a=!0,window.ethereum?.isMetaMask?r="metamask":window.ethereum?.isCoinbaseWallet?r="coinbase":window.ethereum?.isRainbow?r="rainbow":window.phantom?r="phantom":window.solflare&&(r="solflare"));const i=o?window.ethereum:s?window.solana||window.phantom?.solana:null;return{isWalletBrowser:a,walletType:r,hasEthereum:o,hasSolana:s,provider:i}}catch{return e}}async function ho(){const e=Nr();if(!e.isWalletBrowser)return{success:!1,error:"Not running in a wallet browser"};try{if(e.hasEthereum&&e.provider)try{const t=await e.provider.request({method:"eth_requestAccounts"});if(t&&t.length>0)return{success:!0,address:t[0]}}catch{}if(e.hasSolana&&e.provider)try{const t=await e.provider.connect();if(t.publicKey)return{success:!0,address:t.publicKey.toString()}}catch{}return{success:!1,error:"Failed to connect to wallet provider"}}catch(t){return{success:!1,error:t instanceof Error?t.message:"Unknown connection error"}}}class bo{constructor(t){this.metrics={timestamp:Date.now()},this.observers=[],this.performanceMarks=new Map,this.reportCallback=t,this.initializeWebVitals(),this.initializeCustomObservers(),this.collectDeviceInfo()}initializeWebVitals(){Oe.onCLS(t=>{this.metrics.CLS=t.value,this.reportMetric("CLS",t.value)}),Oe.onINP(t=>{this.metrics.INP=t.value,this.reportMetric("INP",t.value)}),Oe.onFCP(t=>{this.metrics.FCP=t.value,this.reportMetric("FCP",t.value)}),Oe.onLCP(t=>{this.metrics.LCP=t.value,this.reportMetric("LCP",t.value)}),Oe.onTTFB(t=>{this.metrics.TTFB=t.value,this.reportMetric("TTFB",t.value)})}initializeCustomObservers(){if("PerformanceObserver"in window){const t=new PerformanceObserver(a=>{a.getEntries().forEach(s=>{if(s.entryType==="navigation"){const i=s;this.metrics.bundleLoadTime=i.loadEventEnd-i.fetchStart}})});try{t.observe({entryTypes:["navigation"]}),this.observers.push(t)}catch{}const r=new PerformanceObserver(a=>{a.getEntries().forEach(s=>{(s.name.includes(".js")||s.name.includes(".css"))&&this.trackResourceLoad(s.name,s.duration)})});try{r.observe({entryTypes:["resource"]}),this.observers.push(r)}catch{}}}collectDeviceInfo(){if(typeof window<"u"){const t=navigator;t.connection&&(this.metrics.connection=t.connection.effectiveType||t.connection.type),t.deviceMemory&&(this.metrics.deviceMemory=t.deviceMemory),t.hardwareConcurrency&&(this.metrics.hardwareConcurrency=t.hardwareConcurrency),this.metrics.viewport={width:window.innerWidth,height:window.innerHeight}}}reportMetric(t,r){this.reportCallback&&this.reportCallback({...this.metrics,timestamp:Date.now()}),process.env.NODE_ENV}trackResourceLoad(t,r){const a=t.includes(".js"),o=t.includes(".css");if(a||o){const s=a?"JavaScript":"CSS";this.reportMetric(`${s} Load`,r)}}measureComponentRender(t,r){this.metrics.componentRenderTime=r,this.reportMetric(`Component Render (${t})`,r)}measureAPICall(t,r){this.metrics.apiResponseTime=r,this.reportMetric(`API Call (${t})`,r)}measureRouteChange(t,r){this.metrics.routeChangeTime=r,this.reportMetric(`Route Change (${t})`,r)}markStart(t){this.performanceMarks.set(t,performance.now())}markEnd(t){const r=this.performanceMarks.get(t);if(r){const a=performance.now()-r;this.reportMetric(`Mark (${t})`,a),this.performanceMarks.delete(t)}}trackRouteChange(t,r,a){typeof r=="string"?this.measureRouteChange(r,a||performance.now()):this.measureRouteChange(t,r)}getSummary(){return{coreWebVitals:{score:this.calculateScore(),LCP:this.metrics.LCP,INP:this.metrics.INP,CLS:this.metrics.CLS},loadingPerformance:{FCP:this.metrics.FCP,TTFB:this.metrics.TTFB,bundleLoadTime:this.metrics.bundleLoadTime},runtime:{routeChangeTime:this.metrics.routeChangeTime,apiResponseTime:this.metrics.apiResponseTime,componentRenderTime:this.metrics.componentRenderTime},device:{connection:this.metrics.connection,deviceMemory:this.metrics.deviceMemory,hardwareConcurrency:this.metrics.hardwareConcurrency}}}calculateScore(){let t=100;return this.metrics.LCP&&this.metrics.LCP>2500?t-=25:this.metrics.LCP&&this.metrics.LCP>2e3&&(t-=15),this.metrics.INP&&this.metrics.INP>200?t-=20:this.metrics.INP&&this.metrics.INP>100&&(t-=10),this.metrics.CLS&&this.metrics.CLS>.1?t-=15:this.metrics.CLS&&this.metrics.CLS>.05&&(t-=8),Math.max(t,0)}getMetrics(){return{...this.metrics}}cleanup(){this.observers.forEach(t=>t.disconnect()),this.observers=[]}}let Ze=null;const yo=e=>(Ze||(Ze=new bo(e)),Ze),Je=()=>Ze,Er=e=>{const t=x.useRef(performance.now());x.useEffect(()=>{const r=performance.now()-t.current,a=Je();a&&a.measureComponentRender(e,r)},[e])},xo=(e,t)=>x.forwardRef((r,a)=>(Er(t),x.createElement(e,{...r,ref:a}))),vo=async(e,t)=>{const r=performance.now(),a=await e(),o=performance.now()-r,s=Je();return s&&s.measureAPICall(t,o),a},Ar={LCP:2500,INP:200,CLS:.1,FCP:1800,TTFB:800,bundleSize:17e4},wo=(e,t=Ar)=>{const r=[];return t.LCP&&e.LCP&&e.LCP>t.LCP&&r.push(`LCP: ${e.LCP.toFixed(0)}ms (budget: ${t.LCP}ms)`),t.INP&&e.INP&&e.INP>t.INP&&r.push(`INP: ${e.INP.toFixed(0)}ms (budget: ${t.INP}ms)`),t.CLS&&e.CLS&&e.CLS>t.CLS&&r.push(`CLS: ${e.CLS.toFixed(3)} (budget: ${t.CLS})`),t.FCP&&e.FCP&&e.FCP>t.FCP&&r.push(`FCP: ${e.FCP.toFixed(0)}ms (budget: ${t.FCP}ms)`),t.TTFB&&e.TTFB&&e.TTFB>t.TTFB&&r.push(`TTFB: ${e.TTFB.toFixed(0)}ms (budget: ${t.TTFB}ms)`),{passed:r.length===0,violations:r}},ko=e=>{const t=e||Je()?.getMetrics()||{timestamp:Date.now()},r={timestamp:new Date().toISOString(),metrics:t,environment:{userAgent:typeof window<"u"?window.navigator.userAgent:"unknown",url:typeof window<"u"?window.location.href:"unknown",referrer:typeof document<"u"?document.referrer:"unknown",viewport:t.viewport,connection:t.connection,deviceMemory:t.deviceMemory,hardwareConcurrency:t.hardwareConcurrency}};return JSON.stringify(r,null,2)},Co=e=>{if(e===0)return"0 Bytes";const t=1024,r=["Bytes","KB","MB","GB","TB"],a=Math.floor(Math.log(e)/Math.log(t)),o=Math.min(a,r.length-1);return parseFloat((e/Math.pow(t,o)).toFixed(2))+" "+r[o]},So=(e,t,r)=>{const a={bytes:0,kb:1,mb:2,gb:3,tb:4},o=1024,i=e*Math.pow(o,a[t])/Math.pow(o,a[r]);return Math.round(i*100)/100},No=e=>{const t=e.match(/^(\d+(?:\.\d+)?)\s*(bytes?|kb|mb|gb|tb)$/i);if(!t)return null;const r=parseFloat(t[1]),a=t[2].toLowerCase(),s={bytes:1,byte:1,kb:1024,mb:1024*1024,gb:1024*1024*1024,tb:1024*1024*1024*1024}[a];return s?Math.round(r*s):null};function Pr(e,t){x.useEffect(()=>{const r=a=>{const o=e?.current;!o||o.contains(a?.target||null)||t(a)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e,t])}const Tr=e=>{const[t,r]=x.useState(""),[a,o]=x.useState(!0),[s,i]=x.useState(null);return x.useEffect(()=>{e&&(async()=>{try{o(!0),i(null);const c=await fetch(`/code/${e}`);if(!c.ok)throw new Error(`Failed to load code file: ${e}`);const d=await c.text();r(d)}catch(c){i(c instanceof Error?c.message:"Unknown error"),r("// Error loading code file")}finally{o(!1)}})()},[e]),{code:t,loading:a,error:s}},Eo=(e={})=>{const{successMessage:t="",successDuration:r=3e3,errorPrefix:a="",onSuccess:o,onError:s}=e,[i,l]=x.useState(!1),[c,d]=x.useState(""),[g,m]=x.useState(""),f=x.useCallback(()=>{d(""),m("")},[]),p=x.useCallback(()=>{d("")},[]),h=x.useCallback(()=>{m("")},[]),y=x.useCallback(async k=>{l(!0),f();try{await k(),t&&(d(t),r>0&&setTimeout(()=>{d("")},r)),o&&o()}catch(w){const C=w instanceof Error?w.message:"An error occurred";throw m(a?`${a}: ${C}`:C),s&&w instanceof Error&&s(w),w}finally{l(!1)}},[t,r,a,o,s,f]);return{isSubmitting:i,successMessage:c,errorMessage:g,submit:y,clearMessages:f,clearSuccess:p,clearError:h}},Ao=(e=!1)=>{const[t,r]=x.useState(e),a=x.useCallback(()=>r(!0),[]),o=x.useCallback(()=>r(!1),[]),s=x.useCallback(()=>r(i=>!i),[]);return{value:t,setTrue:a,setFalse:o,toggle:s,setValue:r}},Ir=(e={})=>{const{successDuration:t=2e3,onSuccess:r,onError:a}=e,[o,s]=x.useState(null),i=x.useCallback(async d=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(d);else{const g=document.createElement("textarea");g.value=d,g.style.position="fixed",g.style.left="-999999px",g.style.top="-999999px",document.body.appendChild(g),g.focus(),g.select();const m=document.execCommand("copy");if(document.body.removeChild(g),!m)throw new Error("Copy command was unsuccessful")}return s(d),r?.(d),setTimeout(()=>{s(null)},t),!0}catch(g){const m=g instanceof Error?g:new Error("Copy failed");return a?.(m),!1}},[t,r,a]),l=x.useCallback(d=>o===d,[o]),c=x.useCallback(()=>{s(null)},[]);return{copiedValue:o,copyToClipboard:i,isCopied:l,resetCopiedState:c}},Po=(e={})=>{const{successDuration:t=2e3,onSuccess:r,onError:a}=e,[o,s]=x.useState({}),i=x.useCallback(async(d,g)=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(d);else{const m=document.createElement("textarea");m.value=d,m.style.position="fixed",m.style.left="-999999px",m.style.top="-999999px",document.body.appendChild(m),m.focus(),m.select();const f=document.execCommand("copy");if(document.body.removeChild(m),!f)throw new Error("Copy command was unsuccessful")}return s(m=>({...m,[g]:!0})),r?.(d),setTimeout(()=>{s(m=>({...m,[g]:!1}))},t),!0}catch(m){const f=m instanceof Error?m:new Error("Copy failed");return a?.(f),!1}},[t,r,a]),l=x.useCallback(d=>o[d]||!1,[o]),c=x.useCallback(d=>{s(d?g=>({...g,[d]:!1}):{})},[]);return{copiedStates:o,copyToClipboard:i,isCopied:l,resetCopiedState:c}},To={pending:{label:"Pending",color:"bg-gray-500",textColor:"text-white"},in_progress:{label:"In Progress",color:"bg-blue-500",textColor:"text-white"},verified:{label:"Verified",color:"bg-green-500",textColor:"text-white"},rejected:{label:"Rejected",color:"bg-red-500",textColor:"text-white"}},Io={basic:"Basic KYC",enhanced:"Enhanced KYC",accredited:"Accredited Investor"},Lo=({status:e,level:t,className:r=""})=>{const a=To[e],o=Io[t];return n.jsx("div",{className:`inline-flex items-center gap-2 ${r}`,children:n.jsxs("span",{className:`px-3 py-1 rounded-full text-sm font-medium ${a.color} ${a.textColor}`,children:[o,": ",a.label]})})},$o=({accessToken:e,onComplete:t,onError:r,className:a=""})=>{const o=x.useRef(null),s=x.useRef(null);return x.useEffect(()=>{if(!e)return;const i=document.createElement("script");return i.src="https://static.sumsub.com/idensic/static/sns-websdk-builder.js",i.async=!0,i.onload=()=>{if(o.current&&window.snsWebSdk)try{const l=window.snsWebSdk.init(e,()=>e).withConf({lang:"en"}).withOptions({addViewportTag:!1,adaptIframeHeight:!0}).on("idCheck.onStepCompleted",c=>{}).on("idCheck.onApplicantSubmitted",c=>{t?.()}).on("idCheck.onError",c=>{console.error("SumsubWebSDK: Error",c),r?.(c)}).build();s.current=l,l.launch("#sumsub-websdk-container")}catch(l){console.error("Failed to initialize Sumsub SDK:",l),r?.(l)}else console.error("SumsubWebSDK: Missing requirements - containerRef:",!!o.current,"snsWebSdk:",!!window.snsWebSdk)},i.onerror=()=>{const l=new Error("Failed to load Sumsub Web SDK script");console.error(l),r?.(l)},document.body.appendChild(i),()=>{document.body.contains(i)&&document.body.removeChild(i),s.current&&typeof s.current.destroy=="function"&&s.current.destroy()}},[e,t,r]),n.jsx("div",{className:`sumsub-sdk-container ${a}`,children:n.jsx("div",{ref:o,id:"sumsub-websdk-container"})})},Oo={basic:{title:"Basic KYC",description:"Age & Identity Verification",color:"border-blue-200",activeColor:"border-blue-500 bg-blue-50"},enhanced:{title:"Enhanced KYC",description:"Basic + Country & Compliance",color:"border-purple-200",activeColor:"border-purple-500 bg-purple-50"},accredited:{title:"Accredited Investor",description:"Enhanced + Financial Verification",color:"border-gold-200",activeColor:"border-gold-500 bg-gold-50"}},Mo=({level:e,price:t,features:r,isActive:a=!1,isVerified:o=!1,onSelect:s,className:i=""})=>{const l=Oo[e];return n.jsxs("div",{className:`
|
|
10
|
+
`;return`data:image/svg+xml;base64,${btoa(a)}`},Kn=(e,t)=>{const r=1/t*100;e.style.position="relative",e.style.paddingTop=`${r}%`;const a=e.querySelector("img");a&&(a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.width="100%",a.style.height="100%",a.style.objectFit="cover")},Ce={createPureFunction:e=>e,isDevelopment:process.env.NODE_ENV==="development",isProduction:process.env.NODE_ENV==="production",isTest:process.env.NODE_ENV==="test",createFeatureFlags:(e={})=>({enableAnalytics:process.env.VITE_ENABLE_ANALYTICS==="true",enableDebugTools:process.env.NODE_ENV==="development",enablePerformanceMonitoring:process.env.VITE_ENABLE_PERF_MONITORING!=="false",...e})},Yn=e=>{const t={};return Object.entries(e).forEach(([r,a])=>{t[r]=()=>{try{return a()}catch{return Promise.resolve({default:null})}}}),t},kr={createDebounce:e=>t=>{let r;return((...a)=>{clearTimeout(r),r=setTimeout(()=>t(...a),e)})},memoize:e=>{const t=new Map;return((...r)=>{const a=JSON.stringify(r);if(t.has(a))return t.get(a);const o=e(...r);return t.set(a,o),o})},isDeepEqual:(e,t)=>{if(e===t)return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(const o of r)if(!a.includes(o)||!kr.isDeepEqual(e[o],t[o]))return!1;return!0},createThrottle:e=>t=>{let r=0;return((...a)=>{const o=Date.now();if(o-r>=e)return r=o,t(...a)})}},Qn=e=>{const t={};return Object.entries(e).forEach(([r,a])=>{t[r]={},Object.entries(a).forEach(([o,s])=>{t[r][o]=()=>import(s).then(i=>({[o]:i[o]}))})}),t},Se={getModuleSize:e=>new Promise(t=>{if(typeof window<"u"&&"performance"in window){const a=performance.getEntriesByType("resource").find(o=>o.name.includes(e));t(a?.transferSize||0)}else t(0)}),usageTracker:new Set,trackUsage:e=>{Ce.isDevelopment&&Se.usageTracker.add(e)},getUsageReport:()=>Ce.isDevelopment?Array.from(Se.usageTracker).sort():[],estimateImpact:e=>{const t=e.map(r=>Se.getModuleSize(r).then(a=>[r,a]));return Promise.all(t).then(r=>{const a={};let o=0;return r.forEach(([s,i])=>{a[s]=i,o+=i}),{total:o,modules:a}})}},Cr={inlineCriticalCSS:e=>{if(typeof document<"u"){const t=document.createElement("style");t.textContent=e,document.head.appendChild(t)}},loadAsyncCSS:e=>{if(typeof document<"u"){const t=document.createElement("link");t.rel="stylesheet",t.href=e,t.media="print",t.onload=()=>{t.media="all"},document.head.appendChild(t)}},removeUnusedCSS:e=>{if(typeof document>"u")return;const t=new Set;return e.forEach(r=>{try{document.querySelector(r)&&t.add(r)}catch{}}),{used:Array.from(t),unused:e.filter(r=>!t.has(r))}}},Xn=(e={})=>{const{features:t={},criticalCSS:r="",enableUsageTracking:a=Ce.isDevelopment}=e;return{features:Ce.createFeatureFlags(t),initialize:()=>{r&&typeof document<"u"&&Cr.inlineCriticalCSS(r)},cleanup:()=>{Se.usageTracker.clear()},getReport:()=>({usage:Se.getUsageReport(),features:Ce.createFeatureFlags(t)})}};let At;function Zn(e){throw typeof window<"u"?new Error("Web navigation service not implemented in shared library"):new Error("React Native navigation service not implemented in shared library")}function J(e){return At||(At=Zn()),At}function Jn(){const e=J(),t=e.getCurrentState();return{navigate:(r,a)=>{e.navigate(r,a)},goBack:r=>{e.goBack(r)},replace:(r,a)=>{e.replace(r,a)},currentPath:t.currentPath,searchParams:t.searchParams,params:t.params,canGoBack:e.canGoBack(),isSupported:e.isSupported()}}function Rn(){const t=J().getCurrentState(),r=Object.keys(t.searchParams).length>0?"?"+new URLSearchParams(t.searchParams).toString():"";return{pathname:t.currentPath,search:r,searchParams:t.searchParams,hash:"",state:{},key:t.currentPath}}function eo(){const e=J(),t=e.getCurrentState();return[new URLSearchParams(t.searchParams),o=>{const s=o instanceof URLSearchParams?Object.fromEntries(o.entries()):o,i=new URLSearchParams(s).toString(),l=t.currentPath+(i?`?${i}`:"");e.replace(l)}]}const be={navigate:(e,t)=>{J().navigate(e,t)},goBack:e=>{J().goBack(e)},replace:(e,t)=>{J().replace(e,t)},getCurrentPath:()=>J().getCurrentPath(),getSearchParams:()=>J().getSearchParams(),goToMail:()=>{be.navigate("/mail")},goToPreferences:()=>{be.navigate("/preferences")},goToCompose:(e,t)=>{const r=new URLSearchParams;e&&r.set("type",e),t&&Object.entries(t).forEach(([o,s])=>{r.set(o,s)});const a=r.toString();be.navigate(`/mail/compose${a?`?${a}`:""}`)},goToConnect:()=>{be.navigate("/connect")},goToDelegate:()=>{be.navigate("/admin/delegate")},goToHome:()=>{be.navigate("/")},canGoBack:()=>J().canGoBack()},to=(e,t)=>t.find(r=>r.href===e)||null,ro=(e,t,r)=>{const a=e.split("/").filter(Boolean);if(a.length===0)return[{label:"Home",current:!0}];const o=[{label:"Home",href:"/"}],i={...{docs:"Documentation",about:"About",connect:"Connect",settings:"Settings",preferences:"Preferences",profile:"Profile",help:"Help",support:"Support",contact:"Contact",terms:"Terms of Service",privacy:"Privacy Policy"},...r||{}};return a.forEach((l,c)=>{const d=c===a.length-1,g="/"+a.slice(0,c+1).join("/"),p=t&&d?t:i[l]||l;o.push({label:p,href:d?void 0:g,current:d})}),o},ao={isActivePath:(e,t,r=!0)=>r?e===t:e.startsWith(t),getParentPath:e=>{const t=e.split("/").filter(Boolean);return t.length<=1?"/":"/"+t.slice(0,-1).join("/")},extractParams:(e,t)=>{const r=e.split("/").filter(Boolean),a=t.split("/").filter(Boolean),o={};return r.forEach((s,i)=>{if(s.startsWith(":")&&a[i]){const l=s.substring(1);o[l]=a[i]}}),o},buildUrlWithParams:(e,t)=>{const r=new URL(e,"http://localhost");return Object.entries(t).forEach(([a,o])=>{r.searchParams.set(a,String(o))}),r.pathname+r.search},parseQueryParams:e=>{const t=new URLSearchParams(e.startsWith("?")?e:`?${e}`),r={};return t.forEach((a,o)=>{r[o]=a}),r},normalizePath:e=>{if(!e||e==="/")return"/";let t=e.startsWith("/")?e:`/${e}`;return t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t},isExternalUrl:e=>{try{return new URL(e,window?.location?.origin||"http://localhost").origin!==(window?.location?.origin||"http://localhost")}catch{return!1}}};function no(e,t=3,r=1e3){return x.lazy(()=>new Promise((a,o)=>{const s=i=>{e().then(a).catch(l=>{i>0?setTimeout(()=>{s(i-1)},r):o(l)})};s(t)}))}function oo(e){let t=null;const r=()=>(t||(t=e()),t.then(()=>{}));return{Component:x.lazy(()=>t||e()),preload:r}}function so(e,t={}){const{fallback:r=n.jsx("div",{children:"Loading..."}),errorFallback:a=n.jsx("div",{children:"Failed to load component"}),loadingDelay:o=200,minimumLoadingTime:s=500}=t,i=x.lazy(async()=>{const c=Date.now();try{const d=await e(),g=Date.now()-c;return g<s&&await new Promise(p=>setTimeout(p,s-g)),d}catch{return{default:(()=>a)}}}),l=()=>{const[c,d]=x.useState(!1);return x.useEffect(()=>{const g=setTimeout(()=>{d(!0)},o);return()=>clearTimeout(g)},[]),c?n.jsx(n.Fragment,{children:r}):null};return x.forwardRef((c,d)=>n.jsx(x.Suspense,{fallback:n.jsx(l,{}),children:n.jsx(i,{...c,ref:d})}))}function Sr(e,t={}){const[r,a]=x.useState(!1),[o,s]=x.useState(!1);return x.useEffect(()=>{const i=e.current;if(!i||o)return;const l=new IntersectionObserver(([c])=>{c.isIntersecting&&(a(!0),s(!0),l.disconnect())},{rootMargin:"50px",threshold:.01,...t});return l.observe(i),()=>{l.disconnect()}},[e,t,o]),r}const io=({children:e,fallback:t=n.jsx("div",{children:"Loading..."}),threshold:r=.01,rootMargin:a="50px",placeholder:o})=>{const s=x.useRef(null),i=Sr(s,{threshold:r,rootMargin:a});return n.jsx("div",{ref:s,children:i?e:o||t})};function lo(e){const{importFn:t,preloadOnHover:r=!0,preloadOnFocus:a=!0,prefetchDelay:o=50}=e;let s=null,i=null;const l=()=>(i||(i=t()),i),c=()=>{s&&clearTimeout(s),s=setTimeout(()=>{l()},o)};return{Component:x.lazy(()=>i||t()),preload:l,linkProps:{...r&&{onMouseEnter:c,onMouseLeave:()=>{s&&clearTimeout(s)}},...a&&{onFocus:c}}}}function co(e,t=[]){const[r,a]=x.useState(null),[o,s]=x.useState(!0),[i,l]=x.useState(null);return x.useEffect(()=>{let c=!0;return s(!0),l(null),e().then(d=>{c&&(a(d),s(!1))}).catch(d=>{c&&(l(d),s(!1))}),()=>{c=!1}},[e,...t]),{module:r,loading:o,error:i}}class Nr{constructor(t=3,r=100){this.queue=new Set,this.isProcessing=!1,this.batchSize=t,this.delay=r}add(t){this.queue.add(t),this.process()}async process(){if(this.isProcessing||this.queue.size===0)return;this.isProcessing=!0;const t=Array.from(this.queue).slice(0,this.batchSize);t.forEach(r=>this.queue.delete(r)),await Promise.all(t.map(r=>r().catch(()=>{}))),this.queue.size>0&&await new Promise(r=>setTimeout(r,this.delay)),this.isProcessing=!1,this.queue.size>0&&this.process()}}function uo(e,t,r){if(typeof document>"u")return;const a=document.createElement("link");a.rel=t,a.href=e,r&&(t==="preload"||t==="prefetch")&&(a.as=r),document.head.appendChild(a)}var Pt=(e=>(e[e.HIGH=0]="HIGH",e[e.MEDIUM=1]="MEDIUM",e[e.LOW=2]="LOW",e[e.IDLE=3]="IDLE",e))(Pt||{});class Er{constructor(){this.queues=new Map,this.isProcessing=!1,Object.values(Pt).filter(t=>typeof t=="number").forEach(t=>{this.queues.set(t,[])})}load(t,r=1){const a=this.queues.get(r);a&&a.push(t),this.process()}async process(){if(!this.isProcessing){this.isProcessing=!0;for(const[t,r]of this.queues)for(;r.length>0;){const a=r.shift();if(a)try{await a()}catch{}t>=2&&await new Promise(o=>setTimeout(o,50))}this.isProcessing=!1}}}const go=new Nr,po=new Er;class Tt{constructor(t={}){this.prefix=t.prefix||"mailbox",this.defaultTTL=t.ttl,this.platformStorage=t.platformStorage||this.createFallbackStorage()}createFallbackStorage(){const t=new Map;return{getItem:r=>t.get(r)||null,setItem:(r,a)=>{t.set(r,a)},removeItem:r=>{t.delete(r)},clear:()=>{t.clear()},getAllKeys:()=>Array.from(t.keys())}}getKey(t){return`${this.prefix}-${t}`}isExpired(t){return t.ttl?Date.now()-t.timestamp>t.ttl:!1}set(t,r,a){try{const o={value:r,timestamp:Date.now(),ttl:a||this.defaultTTL};this.platformStorage.setItem(this.getKey(t),JSON.stringify(o))}catch{}}get(t,r){try{const a=this.platformStorage.getItem(this.getKey(t));if(!a)return r;const o=JSON.parse(a);return this.isExpired(o)?(this.remove(t),r):o.value}catch{return r}}remove(t){try{this.platformStorage.removeItem(this.getKey(t))}catch{}}clear(t){try{if(this.platformStorage.getAllKeys){const r=this.platformStorage.getAllKeys(),a=this.getKey(t||""),o=r.filter(s=>s.startsWith(a));for(const s of o)this.platformStorage.removeItem(s)}else this.platformStorage.clear?.()}catch(r){console.error("Failed to clear storage:",r)}}has(t){try{return this.platformStorage.getItem(this.getKey(t))!==null}catch(r){return console.error(`Failed to check item ${t}:`,r),!1}}getAllKeys(){try{if(this.platformStorage.getAllKeys){const t=this.platformStorage.getAllKeys(),r=`${this.prefix}-`;return t.filter(a=>a.startsWith(r)).map(a=>a.substring(r.length))}return[]}catch(t){return console.error("Failed to get all keys:",t),[]}}}const fo=new Tt,mo=new Tt({prefix:"mailbox-theme"}),ho=new Tt({prefix:"walletUser",ttl:10080*60*1e3}),bo=e=>{if(!e)throw new Error("PlatformStorage must be provided to createSimpleStorage");return{setItem:(t,r)=>{try{e.setItem(t,r)}catch{}},getItem:t=>{try{return e.getItem(t)}catch{return null}},removeItem:t=>{try{e.removeItem(t)}catch{}}}};function Ar(){const e={isWalletBrowser:!1,walletType:"unknown",hasEthereum:!1,hasSolana:!1,provider:null};if(typeof window>"u")return e;try{const t=navigator.userAgent.toLowerCase();let r="unknown",a=!1;t.includes("metamask")?(r="metamask",a=!0):t.includes("trustwallet")?(r="trustwallet",a=!0):t.includes("coinbase")?(r="coinbase",a=!0):t.includes("rainbow")?(r="rainbow",a=!0):t.includes("phantom")?(r="phantom",a=!0):t.includes("solflare")?(r="solflare",a=!0):t.includes("exodus")&&(r="exodus",a=!0);const o=!!window.ethereum,s=!!window.solana||!!window.phantom?.solana;(o||s)&&!a&&(a=!0,window.ethereum?.isMetaMask?r="metamask":window.ethereum?.isCoinbaseWallet?r="coinbase":window.ethereum?.isRainbow?r="rainbow":window.phantom?r="phantom":window.solflare&&(r="solflare"));const i=o?window.ethereum:s?window.solana||window.phantom?.solana:null;return{isWalletBrowser:a,walletType:r,hasEthereum:o,hasSolana:s,provider:i}}catch{return e}}async function yo(){const e=Ar();if(!e.isWalletBrowser)return{success:!1,error:"Not running in a wallet browser"};try{if(e.hasEthereum&&e.provider)try{const t=await e.provider.request({method:"eth_requestAccounts"});if(t&&t.length>0)return{success:!0,address:t[0]}}catch{}if(e.hasSolana&&e.provider)try{const t=await e.provider.connect();if(t.publicKey)return{success:!0,address:t.publicKey.toString()}}catch{}return{success:!1,error:"Failed to connect to wallet provider"}}catch(t){return{success:!1,error:t instanceof Error?t.message:"Unknown connection error"}}}class xo{constructor(t){this.metrics={timestamp:Date.now()},this.observers=[],this.performanceMarks=new Map,this.reportCallback=t,this.initializeWebVitals(),this.initializeCustomObservers(),this.collectDeviceInfo()}initializeWebVitals(){Me.onCLS(t=>{this.metrics.CLS=t.value,this.reportMetric("CLS",t.value)}),Me.onINP(t=>{this.metrics.INP=t.value,this.reportMetric("INP",t.value)}),Me.onFCP(t=>{this.metrics.FCP=t.value,this.reportMetric("FCP",t.value)}),Me.onLCP(t=>{this.metrics.LCP=t.value,this.reportMetric("LCP",t.value)}),Me.onTTFB(t=>{this.metrics.TTFB=t.value,this.reportMetric("TTFB",t.value)})}initializeCustomObservers(){if("PerformanceObserver"in window){const t=new PerformanceObserver(a=>{a.getEntries().forEach(s=>{if(s.entryType==="navigation"){const i=s;this.metrics.bundleLoadTime=i.loadEventEnd-i.fetchStart}})});try{t.observe({entryTypes:["navigation"]}),this.observers.push(t)}catch{}const r=new PerformanceObserver(a=>{a.getEntries().forEach(s=>{(s.name.includes(".js")||s.name.includes(".css"))&&this.trackResourceLoad(s.name,s.duration)})});try{r.observe({entryTypes:["resource"]}),this.observers.push(r)}catch{}}}collectDeviceInfo(){if(typeof window<"u"){const t=navigator;t.connection&&(this.metrics.connection=t.connection.effectiveType||t.connection.type),t.deviceMemory&&(this.metrics.deviceMemory=t.deviceMemory),t.hardwareConcurrency&&(this.metrics.hardwareConcurrency=t.hardwareConcurrency),this.metrics.viewport={width:window.innerWidth,height:window.innerHeight}}}reportMetric(t,r){this.reportCallback&&this.reportCallback({...this.metrics,timestamp:Date.now()}),process.env.NODE_ENV}trackResourceLoad(t,r){const a=t.includes(".js"),o=t.includes(".css");if(a||o){const s=a?"JavaScript":"CSS";this.reportMetric(`${s} Load`,r)}}measureComponentRender(t,r){this.metrics.componentRenderTime=r,this.reportMetric(`Component Render (${t})`,r)}measureAPICall(t,r){this.metrics.apiResponseTime=r,this.reportMetric(`API Call (${t})`,r)}measureRouteChange(t,r){this.metrics.routeChangeTime=r,this.reportMetric(`Route Change (${t})`,r)}markStart(t){this.performanceMarks.set(t,performance.now())}markEnd(t){const r=this.performanceMarks.get(t);if(r){const a=performance.now()-r;this.reportMetric(`Mark (${t})`,a),this.performanceMarks.delete(t)}}trackRouteChange(t,r,a){typeof r=="string"?this.measureRouteChange(r,a||performance.now()):this.measureRouteChange(t,r)}getSummary(){return{coreWebVitals:{score:this.calculateScore(),LCP:this.metrics.LCP,INP:this.metrics.INP,CLS:this.metrics.CLS},loadingPerformance:{FCP:this.metrics.FCP,TTFB:this.metrics.TTFB,bundleLoadTime:this.metrics.bundleLoadTime},runtime:{routeChangeTime:this.metrics.routeChangeTime,apiResponseTime:this.metrics.apiResponseTime,componentRenderTime:this.metrics.componentRenderTime},device:{connection:this.metrics.connection,deviceMemory:this.metrics.deviceMemory,hardwareConcurrency:this.metrics.hardwareConcurrency}}}calculateScore(){let t=100;return this.metrics.LCP&&this.metrics.LCP>2500?t-=25:this.metrics.LCP&&this.metrics.LCP>2e3&&(t-=15),this.metrics.INP&&this.metrics.INP>200?t-=20:this.metrics.INP&&this.metrics.INP>100&&(t-=10),this.metrics.CLS&&this.metrics.CLS>.1?t-=15:this.metrics.CLS&&this.metrics.CLS>.05&&(t-=8),Math.max(t,0)}getMetrics(){return{...this.metrics}}cleanup(){this.observers.forEach(t=>t.disconnect()),this.observers=[]}}let Je=null;const vo=e=>(Je||(Je=new xo(e)),Je),Re=()=>Je,Pr=e=>{const t=x.useRef(performance.now());x.useEffect(()=>{const r=performance.now()-t.current,a=Re();a&&a.measureComponentRender(e,r)},[e])},wo=(e,t)=>x.forwardRef((r,a)=>(Pr(t),x.createElement(e,{...r,ref:a}))),ko=async(e,t)=>{const r=performance.now(),a=await e(),o=performance.now()-r,s=Re();return s&&s.measureAPICall(t,o),a},Tr={LCP:2500,INP:200,CLS:.1,FCP:1800,TTFB:800,bundleSize:17e4},Co=(e,t=Tr)=>{const r=[];return t.LCP&&e.LCP&&e.LCP>t.LCP&&r.push(`LCP: ${e.LCP.toFixed(0)}ms (budget: ${t.LCP}ms)`),t.INP&&e.INP&&e.INP>t.INP&&r.push(`INP: ${e.INP.toFixed(0)}ms (budget: ${t.INP}ms)`),t.CLS&&e.CLS&&e.CLS>t.CLS&&r.push(`CLS: ${e.CLS.toFixed(3)} (budget: ${t.CLS})`),t.FCP&&e.FCP&&e.FCP>t.FCP&&r.push(`FCP: ${e.FCP.toFixed(0)}ms (budget: ${t.FCP}ms)`),t.TTFB&&e.TTFB&&e.TTFB>t.TTFB&&r.push(`TTFB: ${e.TTFB.toFixed(0)}ms (budget: ${t.TTFB}ms)`),{passed:r.length===0,violations:r}},So=e=>{const t=e||Re()?.getMetrics()||{timestamp:Date.now()},r={timestamp:new Date().toISOString(),metrics:t,environment:{userAgent:typeof window<"u"?window.navigator.userAgent:"unknown",url:typeof window<"u"?window.location.href:"unknown",referrer:typeof document<"u"?document.referrer:"unknown",viewport:t.viewport,connection:t.connection,deviceMemory:t.deviceMemory,hardwareConcurrency:t.hardwareConcurrency}};return JSON.stringify(r,null,2)},No=e=>{if(e===0)return"0 Bytes";const t=1024,r=["Bytes","KB","MB","GB","TB"],a=Math.floor(Math.log(e)/Math.log(t)),o=Math.min(a,r.length-1);return parseFloat((e/Math.pow(t,o)).toFixed(2))+" "+r[o]},Eo=(e,t,r)=>{const a={bytes:0,kb:1,mb:2,gb:3,tb:4},o=1024,i=e*Math.pow(o,a[t])/Math.pow(o,a[r]);return Math.round(i*100)/100},Ao=e=>{const t=e.match(/^(\d+(?:\.\d+)?)\s*(bytes?|kb|mb|gb|tb)$/i);if(!t)return null;const r=parseFloat(t[1]),a=t[2].toLowerCase(),s={bytes:1,byte:1,kb:1024,mb:1024*1024,gb:1024*1024*1024,tb:1024*1024*1024*1024}[a];return s?Math.round(r*s):null};function Ir(e,t){x.useEffect(()=>{const r=a=>{const o=e?.current;!o||o.contains(a?.target||null)||t(a)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e,t])}const $r=e=>{const[t,r]=x.useState(""),[a,o]=x.useState(!0),[s,i]=x.useState(null);return x.useEffect(()=>{e&&(async()=>{try{o(!0),i(null);const c=await fetch(`/code/${e}`);if(!c.ok)throw new Error(`Failed to load code file: ${e}`);const d=await c.text();r(d)}catch(c){i(c instanceof Error?c.message:"Unknown error"),r("// Error loading code file")}finally{o(!1)}})()},[e]),{code:t,loading:a,error:s}},Po=(e={})=>{const{successMessage:t="",successDuration:r=3e3,errorPrefix:a="",onSuccess:o,onError:s}=e,[i,l]=x.useState(!1),[c,d]=x.useState(""),[g,p]=x.useState(""),b=x.useCallback(()=>{d(""),p("")},[]),f=x.useCallback(()=>{d("")},[]),m=x.useCallback(()=>{p("")},[]),h=x.useCallback(async w=>{l(!0),b();try{await w(),t&&(d(t),r>0&&setTimeout(()=>{d("")},r)),o&&o()}catch(k){const C=k instanceof Error?k.message:"An error occurred";throw p(a?`${a}: ${C}`:C),s&&k instanceof Error&&s(k),k}finally{l(!1)}},[t,r,a,o,s,b]);return{isSubmitting:i,successMessage:c,errorMessage:g,submit:h,clearMessages:b,clearSuccess:f,clearError:m}},To=(e=!1)=>{const[t,r]=x.useState(e),a=x.useCallback(()=>r(!0),[]),o=x.useCallback(()=>r(!1),[]),s=x.useCallback(()=>r(i=>!i),[]);return{value:t,setTrue:a,setFalse:o,toggle:s,setValue:r}},Lr=(e={})=>{const{successDuration:t=2e3,onSuccess:r,onError:a}=e,[o,s]=x.useState(null),i=x.useCallback(async d=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(d);else{const g=document.createElement("textarea");g.value=d,g.style.position="fixed",g.style.left="-999999px",g.style.top="-999999px",document.body.appendChild(g),g.focus(),g.select();const p=document.execCommand("copy");if(document.body.removeChild(g),!p)throw new Error("Copy command was unsuccessful")}return s(d),r?.(d),setTimeout(()=>{s(null)},t),!0}catch(g){const p=g instanceof Error?g:new Error("Copy failed");return a?.(p),!1}},[t,r,a]),l=x.useCallback(d=>o===d,[o]),c=x.useCallback(()=>{s(null)},[]);return{copiedValue:o,copyToClipboard:i,isCopied:l,resetCopiedState:c}},Io=(e={})=>{const{successDuration:t=2e3,onSuccess:r,onError:a}=e,[o,s]=x.useState({}),i=x.useCallback(async(d,g)=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(d);else{const p=document.createElement("textarea");p.value=d,p.style.position="fixed",p.style.left="-999999px",p.style.top="-999999px",document.body.appendChild(p),p.focus(),p.select();const b=document.execCommand("copy");if(document.body.removeChild(p),!b)throw new Error("Copy command was unsuccessful")}return s(p=>({...p,[g]:!0})),r?.(d),setTimeout(()=>{s(p=>({...p,[g]:!1}))},t),!0}catch(p){const b=p instanceof Error?p:new Error("Copy failed");return a?.(b),!1}},[t,r,a]),l=x.useCallback(d=>o[d]||!1,[o]),c=x.useCallback(d=>{s(d?g=>({...g,[d]:!1}):{})},[]);return{copiedStates:o,copyToClipboard:i,isCopied:l,resetCopiedState:c}},$o={pending:{label:"Pending",color:"bg-gray-500",textColor:"text-white"},in_progress:{label:"In Progress",color:"bg-blue-500",textColor:"text-white"},verified:{label:"Verified",color:"bg-green-500",textColor:"text-white"},rejected:{label:"Rejected",color:"bg-red-500",textColor:"text-white"}},Lo={basic:"Basic KYC",enhanced:"Enhanced KYC",accredited:"Accredited Investor"},Oo=({status:e,level:t,className:r=""})=>{const a=$o[e],o=Lo[t];return n.jsx("div",{className:`inline-flex items-center gap-2 ${r}`,children:n.jsxs("span",{className:`px-3 py-1 rounded-full text-sm font-medium ${a.color} ${a.textColor}`,children:[o,": ",a.label]})})},Mo=({accessToken:e,onComplete:t,onError:r,className:a=""})=>{const o=x.useRef(null),s=x.useRef(null);return x.useEffect(()=>{if(!e)return;const i=document.createElement("script");return i.src="https://static.sumsub.com/idensic/static/sns-websdk-builder.js",i.async=!0,i.onload=()=>{if(o.current&&window.snsWebSdk)try{const l=window.snsWebSdk.init(e,()=>e).withConf({lang:"en"}).withOptions({addViewportTag:!1,adaptIframeHeight:!0}).on("idCheck.onStepCompleted",c=>{}).on("idCheck.onApplicantSubmitted",c=>{t?.()}).on("idCheck.onError",c=>{console.error("SumsubWebSDK: Error",c),r?.(c)}).build();s.current=l,l.launch("#sumsub-websdk-container")}catch(l){console.error("Failed to initialize Sumsub SDK:",l),r?.(l)}else console.error("SumsubWebSDK: Missing requirements - containerRef:",!!o.current,"snsWebSdk:",!!window.snsWebSdk)},i.onerror=()=>{const l=new Error("Failed to load Sumsub Web SDK script");console.error(l),r?.(l)},document.body.appendChild(i),()=>{document.body.contains(i)&&document.body.removeChild(i),s.current&&typeof s.current.destroy=="function"&&s.current.destroy()}},[e,t,r]),n.jsx("div",{className:`sumsub-sdk-container ${a}`,children:n.jsx("div",{ref:o,id:"sumsub-websdk-container"})})},zo={basic:{title:"Basic KYC",description:"Age & Identity Verification",color:"border-blue-200",activeColor:"border-blue-500 bg-blue-50"},enhanced:{title:"Enhanced KYC",description:"Basic + Country & Compliance",color:"border-purple-200",activeColor:"border-purple-500 bg-purple-50"},accredited:{title:"Accredited Investor",description:"Enhanced + Financial Verification",color:"border-gold-200",activeColor:"border-gold-500 bg-gold-50"}},Do=({level:e,price:t,features:r,isActive:a=!1,isVerified:o=!1,onSelect:s,className:i=""})=>{const l=zo[e];return n.jsxs("div",{className:`
|
|
11
11
|
relative border-2 rounded-lg p-6 transition-all
|
|
12
12
|
${a?l.activeColor:`${l.color} hover:border-gray-400`}
|
|
13
13
|
${i}
|
|
14
14
|
`,children:[o&&n.jsx("div",{className:"absolute top-4 right-4",children:n.jsx("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-green-100 text-green-800",children:"✓ Verified"})}),n.jsx("h3",{className:"text-xl font-bold mb-2",children:l.title}),n.jsx("p",{className:"text-gray-600 mb-4",children:l.description}),n.jsxs("p",{className:"text-3xl font-bold mb-4",children:[t,n.jsx("span",{className:"text-sm font-normal text-gray-600",children:"/year"})]}),n.jsx("ul",{className:"space-y-2 mb-6",children:r.map((c,d)=>n.jsxs("li",{className:"flex items-start gap-2",children:[n.jsx("span",{className:"text-green-500 mt-0.5",children:"✓"}),n.jsx("span",{className:"text-sm",children:c})]},d))}),s&&n.jsx("button",{onClick:s,disabled:o,className:`
|
|
15
15
|
w-full py-2 px-4 rounded font-medium transition-colors
|
|
16
16
|
${o?"bg-gray-200 text-gray-500 cursor-not-allowed":a?"bg-blue-600 text-white hover:bg-blue-700":"bg-gray-200 text-gray-700 hover:bg-gray-300"}
|
|
17
|
-
`,children:o?"Verified":a?"Current Plan":"Select Plan"})]})},
|
|
17
|
+
`,children:o?"Verified":a?"Current Plan":"Select Plan"})]})},Bo=(e,t,r)=>e?e.length<=t+r?e:`${e.slice(0,t)}...${e.slice(-r)}`:"",Wo=({address:e,prefixLength:t=6,suffixLength:r=4,className:a="",showCopy:o=!1})=>{const[s,i]=x.useState(!1),[l,c]=x.useState(!1),[d,g]=x.useState({top:0,left:0}),p=x.useRef(null),b=Bo(e,t,r);x.useEffect(()=>{if(s&&p.current){const k=p.current.getBoundingClientRect();g({top:k.top+window.scrollY-48,left:k.left+window.scrollX+k.width/2})}},[s]);const f=async()=>{if(o)try{await navigator.clipboard.writeText(e),c(!0),setTimeout(()=>c(!1),2e3)}catch(k){console.error("Failed to copy address:",k)}i(!0),setTimeout(()=>i(!1),2e3)},m=()=>{i(!0)},h=()=>{l||i(!1)},w=s&&n.jsxs("div",{className:"fixed z-[9999] px-3 py-2 bg-gray-900 dark:bg-gray-700 text-white text-xs rounded shadow-lg whitespace-nowrap pointer-events-none",style:{top:`${d.top}px`,left:`${d.left}px`,transform:"translateX(-50%)",minWidth:"max-content"},children:[l?n.jsx("span",{className:"text-green-300",children:"✓ Copied!"}):n.jsx("span",{className:"font-mono",children:e}),n.jsx("div",{className:"absolute left-1/2 transform -translate-x-1/2 top-full w-0 h-0 border-l-4 border-r-4 border-t-4 border-transparent border-t-gray-900 dark:border-t-gray-700"})]});return n.jsxs(n.Fragment,{children:[n.jsx("code",{ref:p,className:`
|
|
18
18
|
font-mono text-sm text-gray-900 dark:text-gray-100
|
|
19
19
|
${o?"cursor-pointer hover:text-blue-600 dark:hover:text-blue-400":""}
|
|
20
20
|
${a}
|
|
21
|
-
`,onClick:p,onMouseEnter:h,onMouseLeave:y,title:e,children:f}),k&&typeof document<"u"&&Ye.createPortal(k,document.body)]})},v={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"}}},T={heading:{display:{hero:()=>`${v.typography.family.display} ${v.typography.semantic.hero} ${v.typography.weight.display} ${v.typography.leading.display} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,xl:()=>`${v.typography.family.display} text-7xl ${v.typography.weight.display} ${v.typography.leading.display} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,lg:()=>`${v.typography.family.display} text-6xl ${v.typography.weight.bold} ${v.typography.leading.display} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,md:()=>`${v.typography.family.display} text-5xl ${v.typography.weight.bold} ${v.typography.leading.tight} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,sm:()=>`${v.typography.family.display} text-4xl ${v.typography.weight.bold} ${v.typography.leading.tight} ${v.typography.tracking.heading} text-gray-900 dark:text-white`},h1:()=>`${v.typography.family.sans} ${v.typography.semantic.h1} ${v.typography.weight.heading} ${v.typography.leading.heading} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,h2:()=>`${v.typography.family.sans} ${v.typography.semantic.h2} ${v.typography.weight.heading} ${v.typography.leading.heading} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,h3:()=>`${v.typography.family.sans} ${v.typography.semantic.h3} ${v.typography.weight.heading} ${v.typography.leading.heading} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,h4:()=>`${v.typography.family.sans} ${v.typography.semantic.h4} ${v.typography.weight.semibold} ${v.typography.leading.heading} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,h5:()=>`${v.typography.family.sans} ${v.typography.semantic.h5} ${v.typography.weight.semibold} ${v.typography.leading.heading} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,h6:()=>`${v.typography.family.sans} ${v.typography.semantic.h6} ${v.typography.weight.semibold} ${v.typography.leading.heading} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,responsive:{h1:()=>`${v.typography.family.sans} text-2xl sm:text-3xl md:text-4xl lg:text-5xl ${v.typography.weight.heading} ${v.typography.leading.heading} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,h2:()=>`${v.typography.family.sans} text-xl sm:text-2xl md:text-3xl lg:text-4xl ${v.typography.weight.heading} ${v.typography.leading.heading} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,h3:()=>`${v.typography.family.sans} text-lg sm:text-xl md:text-2xl lg:text-3xl ${v.typography.weight.semibold} ${v.typography.leading.heading} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,display:()=>`${v.typography.family.display} text-4xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl ${v.typography.weight.display} ${v.typography.leading.display} ${v.typography.tracking.heading} text-gray-900 dark:text-white`}},body:{xl:()=>`${v.typography.family.body} ${v.typography.semantic.bodyLarge} ${v.typography.weight.body} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-700 dark:text-gray-300`,lg:()=>`${v.typography.family.body} ${v.typography.semantic.body} ${v.typography.weight.body} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-700 dark:text-gray-300`,md:()=>`${v.typography.family.body} ${v.typography.semantic.body} ${v.typography.weight.body} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-700 dark:text-gray-300`,sm:()=>`${v.typography.family.body} ${v.typography.semantic.small} ${v.typography.weight.body} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-600 dark:text-gray-400`,xs:()=>`${v.typography.family.body} ${v.typography.semantic.caption} ${v.typography.weight.body} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-600 dark:text-gray-400`,strong:{xl:()=>`${v.typography.family.body} ${v.typography.semantic.bodyLarge} ${v.typography.weight.strong} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-900 dark:text-white`,lg:()=>`${v.typography.family.body} ${v.typography.semantic.body} ${v.typography.weight.strong} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-900 dark:text-white`,md:()=>`${v.typography.family.body} ${v.typography.semantic.body} ${v.typography.weight.strong} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-900 dark:text-white`,sm:()=>`${v.typography.family.body} ${v.typography.semantic.small} ${v.typography.weight.strong} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-900 dark:text-white`},emphasis:{xl:()=>`${v.typography.family.body} ${v.typography.semantic.bodyLarge} ${v.typography.weight.emphasis} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-900 dark:text-white`,lg:()=>`${v.typography.family.body} ${v.typography.semantic.body} ${v.typography.weight.emphasis} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-900 dark:text-white`,md:()=>`${v.typography.family.body} ${v.typography.semantic.body} ${v.typography.weight.emphasis} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-900 dark:text-white`,sm:()=>`${v.typography.family.body} ${v.typography.semantic.small} ${v.typography.weight.emphasis} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-900 dark:text-white`},muted:{xl:()=>`${v.typography.family.body} ${v.typography.semantic.bodyLarge} ${v.typography.weight.body} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-600 dark:text-gray-400`,lg:()=>`${v.typography.family.body} ${v.typography.semantic.body} ${v.typography.weight.body} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-600 dark:text-gray-400`,md:()=>`${v.typography.family.body} ${v.typography.semantic.body} ${v.typography.weight.body} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-600 dark:text-gray-400`,sm:()=>`${v.typography.family.body} ${v.typography.semantic.small} ${v.typography.weight.body} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-600 dark:text-gray-400`}},caption:{default:()=>`${v.typography.family.body} ${v.typography.semantic.caption} ${v.typography.weight.body} ${v.typography.leading.caption} ${v.typography.tracking.caption} text-gray-500 dark:text-gray-500`,emphasis:()=>`${v.typography.family.body} ${v.typography.semantic.caption} ${v.typography.weight.emphasis} ${v.typography.leading.caption} ${v.typography.tracking.caption} text-gray-600 dark:text-gray-400`,uppercase:()=>`${v.typography.family.body} ${v.typography.semantic.caption} ${v.typography.weight.emphasis} ${v.typography.leading.caption} ${v.typography.tracking.uppercase} ${v.typography.transform.uppercase} text-gray-500 dark:text-gray-500`},link:{default:()=>`${v.typography.decoration.underline} ${v.typography.underlineOffset.medium} text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 transition-colors duration-150`,subtle:()=>`${v.typography.decoration.none} text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 hover:${v.typography.decoration.underline} hover:${v.typography.underlineOffset.medium} transition-all duration-150`,muted:()=>`${v.typography.decoration.underline} ${v.typography.underlineOffset.medium} text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 transition-colors duration-150`,external:()=>`${v.typography.decoration.underline} ${v.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:()=>`${v.typography.family.body} text-sm ${v.typography.weight.emphasis} text-gray-900 dark:text-white`,required:()=>`${v.typography.family.body} text-sm ${v.typography.weight.emphasis} text-gray-900 dark:text-white after:content-['*'] after:ml-0.5 after:text-red-500`,optional:()=>`${v.typography.family.body} text-sm ${v.typography.weight.body} text-gray-600 dark:text-gray-400`,helper:()=>`${v.typography.family.body} text-sm ${v.typography.weight.body} text-gray-500 dark:text-gray-500`,error:()=>`${v.typography.family.body} text-sm ${v.typography.weight.body} text-red-600 dark:text-red-400`,success:()=>`${v.typography.family.body} text-sm ${v.typography.weight.body} text-green-600 dark:text-green-400`}},L={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 t={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`${t[e]||t.default} inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium`},large:(e="default")=>{const t={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`${t[e]||t.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"}}},Bo={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 Se(e){return Bo[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 jo(e){return Wo[e]}const Fo={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 _o(e){return Fo[e]}const Ho={section:{gradient:"py-20 bg-gradient-to-r from-purple-50 to-blue-50 dark:from-purple-900 dark:to-blue-900"}},Vo=(e,t,r)=>{if(r)return`${r}/address/${e}`;if(!t)return null;if(t<0)return`https://explorer.solana.com/address/${e}${t===-101?"":t===-102?"?cluster=devnet":"?cluster=testnet"}`;const o={1:"https://etherscan.io",11155111:"https://sepolia.etherscan.io",5:"https://goerli.etherscan.io",137:"https://polygonscan.com",80002:"https://amoy.polygonscan.com",42161:"https://arbiscan.io",421614:"https://sepolia.arbiscan.io",10:"https://optimistic.etherscan.io",11155420:"https://sepolia-optimism.etherscan.io",8453:"https://basescan.org",84532:"https://sepolia.basescan.org"}[t];return o?`${o}/address/${e}`:null},qo=(e,t)=>t==="full"?e:t==="medium"?`${e.substring(0,10)}...${e.substring(e.length-8)}`:`${e.substring(0,6)}...${e.substring(e.length-4)}`,Uo=({address:e,chainId:t,explorerUrl:r,label:a,format:o="short",showCopy:s=!0,showExplorer:i=!0,className:l="",textClassName:c=""})=>{const[d,g]=x.useState(!1),m=qo(e,o),f=Vo(e,t,r),p=async()=>{try{await navigator.clipboard.writeText(e),g(!0),setTimeout(()=>g(!1),2e3)}catch{}};return n.jsxs("div",{className:b("flex items-center gap-2",l),children:[a&&n.jsxs("span",{className:T.label.default(),children:[a,":"]}),n.jsx("span",{className:b("font-mono text-sm",o==="full"&&"break-all",c),children:m}),n.jsxs("div",{className:"flex items-center gap-1",children:[s&&n.jsx("button",{onClick:p,className:b("p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors","text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"),title:d?"Copied!":"Copy address","aria-label":"Copy address",children:d?n.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}):n.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})}),i&&f&&n.jsx("a",{href:f,target:"_blank",rel:"noopener noreferrer",className:b("p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors","text-gray-500 hover:text-blue-600 dark:text-gray-400 dark:hover:text-blue-400"),title:"View on block explorer","aria-label":"View on block explorer",children:n.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.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"})})})]})]})},Go={info:E.InformationCircleIcon,success:E.CheckCircleIcon,warning:E.ExclamationTriangleIcon,attention:E.BellAlertIcon,error:E.XCircleIcon},Ko=({children:e,className:t})=>n.jsx("div",{className:b("font-medium mb-1",t),children:e}),Yo=({children:e,className:t})=>n.jsx("div",{className:b("text-sm break-words",t),children:e}),Qo=({variant:e="info",title:t,description:r,icon:a,children:o,className:s})=>{const i=Go[e],l=a||n.jsx(i,{className:"h-5 w-5"}),c=typeof L.alert[e]=="function"?L.alert[e]():"";return n.jsxs("div",{role:"alert",className:b(c,s),children:[l&&n.jsx("div",{className:"flex-shrink-0",children:l}),n.jsxs("div",{className:"flex-1 min-w-0",children:[t&&n.jsx("div",{className:"font-medium mb-1 break-words",children:t}),r&&n.jsx("div",{className:"text-sm break-words",children:r}),o]})]})},Lr=()=>typeof document<"u"&&typeof document.createElement=="function"&&typeof document.getElementById=="function",Xo=e=>{if(typeof document<"u"&&document.getElementById)try{return document.getElementById(e)}catch{}return null},Zo=e=>{if(typeof document<"u"&&document.createElement)try{return document.createElement(e)}catch{}return null},Jo=e=>{const t=typeof document<"u"?document.head:null;if(t&&e)try{return t.appendChild(e),!0}catch{}return!1},ye=({animation:e="fade-in-up",delay:t=0,duration:r=600,once:a=!0,children:o,className:s="",threshold:i=.1})=>{const[l,c]=x.useState(!1),[d,g]=x.useState(!1),m=x.useRef(null);x.useEffect(()=>{if(!Lr()||typeof IntersectionObserver>"u"){c(!0),a&&g(!0);return}const p=new IntersectionObserver(([y])=>{y.isIntersecting&&(!d||!a)?(c(!0),a&&g(!0)):a||c(!1)},{threshold:i}),h=m.current;return h&&p.observe(h),()=>{h&&p.unobserve(h)}},[i,a,d]);const f=()=>{if(e==="none")return"";const p=`transition-all duration-${r} ease-out`,h=t>0?`delay-${t}`:"",y={"fade-in-up":l?`opacity-100 translate-y-0 ${p} ${h}`:`opacity-0 translate-y-8 ${p} ${h}`,"fade-in-scale":l?`opacity-100 scale-100 ${p} ${h}`:`opacity-0 scale-95 ${p} ${h}`,"fade-in-left":l?`opacity-100 translate-x-0 ${p} ${h}`:`opacity-0 -translate-x-8 ${p} ${h}`,"fade-in-right":l?`opacity-100 translate-x-0 ${p} ${h}`:`opacity-0 translate-x-8 ${p} ${h}`,"slide-in-bottom":l?`translate-y-0 ${p} ${h}`:`translate-y-full ${p} ${h}`,"zoom-in":l?`opacity-100 scale-100 ${p} ${h}`:`opacity-0 scale-50 ${p} ${h}`,float:"animate-float","bounce-slow":"animate-bounce-slow"};return y[e]||y["fade-in-up"]};return x.useEffect(()=>{if(Lr()&&(e==="float"||e==="bounce-slow")){const p="animated-section-keyframes";if(!Xo(p)){const h=Zo("style");h&&(h.id=p,h.textContent=`
|
|
21
|
+
`,onClick:f,onMouseEnter:m,onMouseLeave:h,title:e,children:b}),w&&typeof document<"u"&&Qe.createPortal(w,document.body)]})},v={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"}}},T={heading:{display:{hero:()=>`${v.typography.family.display} ${v.typography.semantic.hero} ${v.typography.weight.display} ${v.typography.leading.display} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,xl:()=>`${v.typography.family.display} text-7xl ${v.typography.weight.display} ${v.typography.leading.display} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,lg:()=>`${v.typography.family.display} text-6xl ${v.typography.weight.bold} ${v.typography.leading.display} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,md:()=>`${v.typography.family.display} text-5xl ${v.typography.weight.bold} ${v.typography.leading.tight} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,sm:()=>`${v.typography.family.display} text-4xl ${v.typography.weight.bold} ${v.typography.leading.tight} ${v.typography.tracking.heading} text-gray-900 dark:text-white`},h1:()=>`${v.typography.family.sans} ${v.typography.semantic.h1} ${v.typography.weight.heading} ${v.typography.leading.heading} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,h2:()=>`${v.typography.family.sans} ${v.typography.semantic.h2} ${v.typography.weight.heading} ${v.typography.leading.heading} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,h3:()=>`${v.typography.family.sans} ${v.typography.semantic.h3} ${v.typography.weight.heading} ${v.typography.leading.heading} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,h4:()=>`${v.typography.family.sans} ${v.typography.semantic.h4} ${v.typography.weight.semibold} ${v.typography.leading.heading} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,h5:()=>`${v.typography.family.sans} ${v.typography.semantic.h5} ${v.typography.weight.semibold} ${v.typography.leading.heading} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,h6:()=>`${v.typography.family.sans} ${v.typography.semantic.h6} ${v.typography.weight.semibold} ${v.typography.leading.heading} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,responsive:{h1:()=>`${v.typography.family.sans} text-2xl sm:text-3xl md:text-4xl lg:text-5xl ${v.typography.weight.heading} ${v.typography.leading.heading} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,h2:()=>`${v.typography.family.sans} text-xl sm:text-2xl md:text-3xl lg:text-4xl ${v.typography.weight.heading} ${v.typography.leading.heading} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,h3:()=>`${v.typography.family.sans} text-lg sm:text-xl md:text-2xl lg:text-3xl ${v.typography.weight.semibold} ${v.typography.leading.heading} ${v.typography.tracking.heading} text-gray-900 dark:text-white`,display:()=>`${v.typography.family.display} text-4xl sm:text-5xl md:text-6xl lg:text-7xl xl:text-8xl ${v.typography.weight.display} ${v.typography.leading.display} ${v.typography.tracking.heading} text-gray-900 dark:text-white`}},body:{xl:()=>`${v.typography.family.body} ${v.typography.semantic.bodyLarge} ${v.typography.weight.body} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-700 dark:text-gray-300`,lg:()=>`${v.typography.family.body} ${v.typography.semantic.body} ${v.typography.weight.body} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-700 dark:text-gray-300`,md:()=>`${v.typography.family.body} ${v.typography.semantic.body} ${v.typography.weight.body} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-700 dark:text-gray-300`,sm:()=>`${v.typography.family.body} ${v.typography.semantic.small} ${v.typography.weight.body} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-600 dark:text-gray-400`,xs:()=>`${v.typography.family.body} ${v.typography.semantic.caption} ${v.typography.weight.body} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-600 dark:text-gray-400`,strong:{xl:()=>`${v.typography.family.body} ${v.typography.semantic.bodyLarge} ${v.typography.weight.strong} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-900 dark:text-white`,lg:()=>`${v.typography.family.body} ${v.typography.semantic.body} ${v.typography.weight.strong} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-900 dark:text-white`,md:()=>`${v.typography.family.body} ${v.typography.semantic.body} ${v.typography.weight.strong} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-900 dark:text-white`,sm:()=>`${v.typography.family.body} ${v.typography.semantic.small} ${v.typography.weight.strong} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-900 dark:text-white`},emphasis:{xl:()=>`${v.typography.family.body} ${v.typography.semantic.bodyLarge} ${v.typography.weight.emphasis} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-900 dark:text-white`,lg:()=>`${v.typography.family.body} ${v.typography.semantic.body} ${v.typography.weight.emphasis} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-900 dark:text-white`,md:()=>`${v.typography.family.body} ${v.typography.semantic.body} ${v.typography.weight.emphasis} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-900 dark:text-white`,sm:()=>`${v.typography.family.body} ${v.typography.semantic.small} ${v.typography.weight.emphasis} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-900 dark:text-white`},muted:{xl:()=>`${v.typography.family.body} ${v.typography.semantic.bodyLarge} ${v.typography.weight.body} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-600 dark:text-gray-400`,lg:()=>`${v.typography.family.body} ${v.typography.semantic.body} ${v.typography.weight.body} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-600 dark:text-gray-400`,md:()=>`${v.typography.family.body} ${v.typography.semantic.body} ${v.typography.weight.body} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-600 dark:text-gray-400`,sm:()=>`${v.typography.family.body} ${v.typography.semantic.small} ${v.typography.weight.body} ${v.typography.leading.body} ${v.typography.tracking.body} text-gray-600 dark:text-gray-400`}},caption:{default:()=>`${v.typography.family.body} ${v.typography.semantic.caption} ${v.typography.weight.body} ${v.typography.leading.caption} ${v.typography.tracking.caption} text-gray-500 dark:text-gray-500`,emphasis:()=>`${v.typography.family.body} ${v.typography.semantic.caption} ${v.typography.weight.emphasis} ${v.typography.leading.caption} ${v.typography.tracking.caption} text-gray-600 dark:text-gray-400`,uppercase:()=>`${v.typography.family.body} ${v.typography.semantic.caption} ${v.typography.weight.emphasis} ${v.typography.leading.caption} ${v.typography.tracking.uppercase} ${v.typography.transform.uppercase} text-gray-500 dark:text-gray-500`},link:{default:()=>`${v.typography.decoration.underline} ${v.typography.underlineOffset.medium} text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 transition-colors duration-150`,subtle:()=>`${v.typography.decoration.none} text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 hover:${v.typography.decoration.underline} hover:${v.typography.underlineOffset.medium} transition-all duration-150`,muted:()=>`${v.typography.decoration.underline} ${v.typography.underlineOffset.medium} text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 transition-colors duration-150`,external:()=>`${v.typography.decoration.underline} ${v.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:()=>`${v.typography.family.body} text-sm ${v.typography.weight.emphasis} text-gray-900 dark:text-white`,required:()=>`${v.typography.family.body} text-sm ${v.typography.weight.emphasis} text-gray-900 dark:text-white after:content-['*'] after:ml-0.5 after:text-red-500`,optional:()=>`${v.typography.family.body} text-sm ${v.typography.weight.body} text-gray-600 dark:text-gray-400`,helper:()=>`${v.typography.family.body} text-sm ${v.typography.weight.body} text-gray-500 dark:text-gray-500`,error:()=>`${v.typography.family.body} text-sm ${v.typography.weight.body} text-red-600 dark:text-red-400`,success:()=>`${v.typography.family.body} text-sm ${v.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 t={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`${t[e]||t.default} inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium`},large:(e="default")=>{const t={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`${t[e]||t.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"}}},jo={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 Ne(e){return jo[e]}const Fo={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 _o(e){return Fo[e]}const Ho={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 Uo(e){return Ho[e]}const Vo={section:{gradient:"py-20 bg-gradient-to-r from-purple-50 to-blue-50 dark:from-purple-900 dark:to-blue-900"}},qo=(e,t,r)=>{if(r)return`${r}/address/${e}`;if(!t)return null;if(t<0)return`https://explorer.solana.com/address/${e}${t===-101?"":t===-102?"?cluster=devnet":"?cluster=testnet"}`;const o={1:"https://etherscan.io",11155111:"https://sepolia.etherscan.io",5:"https://goerli.etherscan.io",137:"https://polygonscan.com",80002:"https://amoy.polygonscan.com",42161:"https://arbiscan.io",421614:"https://sepolia.arbiscan.io",10:"https://optimistic.etherscan.io",11155420:"https://sepolia-optimism.etherscan.io",8453:"https://basescan.org",84532:"https://sepolia.basescan.org"}[t];return o?`${o}/address/${e}`:null},Go=(e,t)=>t==="full"?e:t==="medium"?`${e.substring(0,10)}...${e.substring(e.length-8)}`:`${e.substring(0,6)}...${e.substring(e.length-4)}`,Ko=({address:e,chainId:t,explorerUrl:r,label:a,format:o="short",showCopy:s=!0,showExplorer:i=!0,className:l="",textClassName:c=""})=>{const[d,g]=x.useState(!1),p=Go(e,o),b=qo(e,t,r),f=async()=>{try{await navigator.clipboard.writeText(e),g(!0),setTimeout(()=>g(!1),2e3)}catch{}};return n.jsxs("div",{className:y("flex items-center gap-2",l),children:[a&&n.jsxs("span",{className:T.label.default(),children:[a,":"]}),n.jsx("span",{className:y("font-mono text-sm",o==="full"&&"break-all",c),children:p}),n.jsxs("div",{className:"flex items-center gap-1",children:[s&&n.jsx("button",{onClick:f,className:y("p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors","text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"),title:d?"Copied!":"Copy address","aria-label":"Copy address",children:d?n.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}):n.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})}),i&&b&&n.jsx("a",{href:b,target:"_blank",rel:"noopener noreferrer",className:y("p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors","text-gray-500 hover:text-blue-600 dark:text-gray-400 dark:hover:text-blue-400"),title:"View on block explorer","aria-label":"View on block explorer",children:n.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.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"})})})]})]})},Yo={info:E.InformationCircleIcon,success:E.CheckCircleIcon,warning:E.ExclamationTriangleIcon,attention:E.BellAlertIcon,error:E.XCircleIcon},Qo=({children:e,className:t})=>n.jsx("div",{className:y("font-medium mb-1",t),children:e}),Xo=({children:e,className:t})=>n.jsx("div",{className:y("text-sm break-words",t),children:e}),Zo=({variant:e="info",title:t,description:r,icon:a,children:o,className:s})=>{const i=Yo[e],l=a||n.jsx(i,{className:"h-5 w-5"}),c=typeof $.alert[e]=="function"?$.alert[e]():"";return n.jsxs("div",{role:"alert",className:y(c,s),children:[l&&n.jsx("div",{className:"flex-shrink-0",children:l}),n.jsxs("div",{className:"flex-1 min-w-0",children:[t&&n.jsx("div",{className:"font-medium mb-1 break-words",children:t}),r&&n.jsx("div",{className:"text-sm break-words",children:r}),o]})]})},Or=()=>typeof document<"u"&&typeof document.createElement=="function"&&typeof document.getElementById=="function",Jo=e=>{if(typeof document<"u"&&document.getElementById)try{return document.getElementById(e)}catch{}return null},Ro=e=>{if(typeof document<"u"&&document.createElement)try{return document.createElement(e)}catch{}return null},es=e=>{const t=typeof document<"u"?document.head:null;if(t&&e)try{return t.appendChild(e),!0}catch{}return!1},ye=({animation:e="fade-in-up",delay:t=0,duration:r=600,once:a=!0,children:o,className:s="",threshold:i=.1})=>{const[l,c]=x.useState(!1),[d,g]=x.useState(!1),p=x.useRef(null);x.useEffect(()=>{if(!Or()||typeof IntersectionObserver>"u"){c(!0),a&&g(!0);return}const f=new IntersectionObserver(([h])=>{h.isIntersecting&&(!d||!a)?(c(!0),a&&g(!0)):a||c(!1)},{threshold:i}),m=p.current;return m&&f.observe(m),()=>{m&&f.unobserve(m)}},[i,a,d]);const b=()=>{if(e==="none")return"";const f=`transition-all duration-${r} ease-out`,m=t>0?`delay-${t}`:"",h={"fade-in-up":l?`opacity-100 translate-y-0 ${f} ${m}`:`opacity-0 translate-y-8 ${f} ${m}`,"fade-in-scale":l?`opacity-100 scale-100 ${f} ${m}`:`opacity-0 scale-95 ${f} ${m}`,"fade-in-left":l?`opacity-100 translate-x-0 ${f} ${m}`:`opacity-0 -translate-x-8 ${f} ${m}`,"fade-in-right":l?`opacity-100 translate-x-0 ${f} ${m}`:`opacity-0 translate-x-8 ${f} ${m}`,"slide-in-bottom":l?`translate-y-0 ${f} ${m}`:`translate-y-full ${f} ${m}`,"zoom-in":l?`opacity-100 scale-100 ${f} ${m}`:`opacity-0 scale-50 ${f} ${m}`,float:"animate-float","bounce-slow":"animate-bounce-slow"};return h[e]||h["fade-in-up"]};return x.useEffect(()=>{if(Or()&&(e==="float"||e==="bounce-slow")){const f="animated-section-keyframes";if(!Jo(f)){const m=Ro("style");m&&(m.id=f,m.textContent=`
|
|
22
22
|
@keyframes float {
|
|
23
23
|
0%, 100% { transform: translateY(0px); }
|
|
24
24
|
50% { transform: translateY(-20px); }
|
|
@@ -33,34 +33,34 @@
|
|
|
33
33
|
.animate-bounce-slow {
|
|
34
34
|
animation: bounce-slow 4s ease-in-out infinite;
|
|
35
35
|
}
|
|
36
|
-
`,Jo(h))}}},[e]),n.jsx("div",{ref:m,className:`${f()} ${s}`,children:o})},Ro=({children:e,delay:t=0,className:r=""})=>n.jsx(ye,{animation:"fade-in-up",delay:t,className:r,children:e}),es=({children:e,delay:t=0,className:r=""})=>n.jsx(ye,{animation:"fade-in-scale",delay:t,className:r,children:e}),ts=({children:e,className:t=""})=>n.jsx(ye,{animation:"float",className:t,children:e}),$r=_.cva("min-h-[44px] touch-manipulation",{variants:{variant:{default:"",primary:"",secondary:"",outline:"",ghost:"",destructive:"","destructive-outline":"",success:"",link:"",gradient:"","gradient-secondary":"","gradient-success":"",wallet:"",connect:"",disconnect:""},size:{default:"",sm:"h-8",lg:"h-12",icon:"h-10 w-10 p-0"},animation:{none:"transition-colors duration-200",hover:"transition-all duration-200 hover:scale-105",lift:"transition-all duration-200 hover:scale-105",scale:"transition-transform duration-200 hover:scale-95",glow:"transition-all duration-200 hover:shadow-lg",shimmer:"transition-all duration-200",tap:"transition-transform duration-100 active:scale-95",connect:"transition-all duration-200 hover:scale-105",transaction:"transition-all duration-200 animate-pulse",disconnect:"transition-all duration-200 hover:opacity-80"}},defaultVariants:{variant:"default",size:"default",animation:"hover"}}),de=S.forwardRef(({className:e,variant:t,size:r,animation:a,asChild:o=!1,...s},i)=>{const l=o?Ct.Slot:"button",c=t||"default",d=r&&r!=="default"&&r!=="icon"?r:void 0,g=p=>p?{sm:"small",lg:"large",default:"default"}[p]||p:"default",f=(()=>{if(c.startsWith("gradient")){const p=c.replace("gradient-","").replace("gradient","primary");return L.button.gradient[p]?.()||L.button.primary.default()}else{if(["wallet","connect","disconnect"].includes(c))return L.button.web3[c]?.()||L.button.primary.default();{const p=g(d);return L.button[c]?.[p]?.()||L.button.primary.default()}}})();return n.jsx(l,{className:b($r({size:r,animation:a}),f,e),ref:i,...s})});de.displayName="Button";const rs="bg-gradient-to-r from-blue-50 to-indigo-50 dark:from-blue-900/20 dark:to-indigo-900/20 border border-blue-200 dark:border-blue-800",as={none:"",sm:"p-3",md:"p-6",lg:"p-8"},Tt=({variant:e="elevated",padding:t="md",icon:r,onClose:a,className:o,children:s,...i})=>{const c=["info","success","warning","error"].includes(e)&&(r||a),d=e==="callout"?rs:jo(e);return n.jsx("div",{className:b("rounded-lg",d,as[t],o),...i,children:c?n.jsxs("div",{className:"flex items-start gap-3",children:[r&&n.jsx("div",{className:"flex-shrink-0 text-lg",children:r}),n.jsx("div",{className:"flex-1 min-w-0",children:s}),a&&n.jsx("button",{onClick:a,className:"flex-shrink-0 text-current hover:opacity-70 transition-opacity","aria-label":"Close",children:n.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}):s})},ns=({title:e,description:t,className:r,children:a,...o})=>n.jsxs("div",{className:b("space-y-1.5",r),...o,children:[e&&n.jsx("h3",{className:T.heading.h4(),children:e}),t&&n.jsx("p",{className:T.body.sm(),children:t}),a]}),os=({className:e,children:t,...r})=>n.jsx("div",{className:b("",e),...r,children:t}),ss=({className:e,children:t,...r})=>n.jsx("div",{className:b("flex items-center pt-4",e),...r,children:t}),is=({title:e,children:t,variant:r="info",size:a="default",className:o})=>{const s={sm:"sm",default:"md",lg:"lg"},i=r==="neutral"?"bordered":r;return n.jsxs(Tt,{variant:i,padding:s[a],className:o,children:[e&&n.jsx("h3",{className:b("font-semibold mb-2",a==="sm"?"text-base":a==="lg"?"text-xl":"text-lg"),children:e}),t]})},ls=({title:e,icon:t,children:r,variant:a="gradient",size:o="default",centered:s=!1,className:i})=>{const l={sm:"sm",default:"md",lg:"lg"},c=a==="gradient"||a==="neutral"?"callout":a;return n.jsx(Tt,{variant:c,padding:l[o],className:i,children:n.jsxs("div",{className:b("space-y-4",s&&"text-center"),children:[t&&n.jsx("div",{className:b("font-bold",o==="sm"?"text-2xl":o==="lg"?"text-5xl":"text-4xl",s?"text-center":"text-left"),children:t}),e&&n.jsx("h3",{className:b("font-bold mb-4",o==="sm"?"text-lg":o==="lg"?"text-3xl":"text-2xl"),children:e}),n.jsx("div",{className:b("text-gray-600 dark:text-gray-400",o==="sm"?"text-sm":o==="lg"?"text-lg":"text-base"),children:r})]})})},cs=_.cva("grid gap-8",{variants:{layout:{grid:"grid-cols-1 md:grid-cols-2",stacked:"grid-cols-1 space-y-8",cards:"grid-cols-1 md:grid-cols-2 gap-6"},spacing:{sm:"gap-4",md:"gap-8",lg:"gap-12"}},defaultVariants:{layout:"grid",spacing:"md"}}),ds=_.cva("rounded-xl p-6 transition-all duration-300",{variants:{variant:{traditional:"bg-red-50 dark:bg-red-900/20 border-2 border-red-100 dark:border-red-800/30 hover:border-red-200 dark:hover:border-red-700/50",web3:"bg-green-50 dark:bg-green-900/20 border-2 border-green-100 dark:border-green-800/30 hover:border-green-200 dark:hover:border-green-700/50",neutral:"bg-gray-50 dark:bg-gray-800/50 border-2 border-gray-100 dark:border-gray-700/30 hover:border-gray-200 dark:hover:border-gray-600/50",elevated:"bg-white dark:bg-gray-800 shadow-lg hover:shadow-xl border border-gray-200 dark:border-gray-700"},animation:{none:"",hover:"hover:transform hover:scale-[1.02]",float:"hover:-translate-y-1"}},defaultVariants:{variant:"traditional",animation:"hover"}}),us=_.cva("text-lg font-bold mb-4 flex items-center gap-3",{variants:{variant:{traditional:"text-red-600 dark:text-red-400",web3:"text-green-600 dark:text-green-400",neutral:"text-gray-900 dark:text-white",elevated:"text-gray-900 dark:text-white"}},defaultVariants:{variant:"traditional"}}),gs={traditional:"❌",web3:"✅",neutral:"ℹ️",elevated:"⭐"},ms={red:"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300",green:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",blue:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",gray:"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300"},ps=({className:e,layout:t="grid",spacing:r="md",title:a,subtitle:o,traditional:s,web3:i,cardAnimation:l="hover",animate:c=!0,animationDelay:d=0,traditionalIcon:g,web3Icon:m})=>{const f=(h,y)=>{const k=n.jsxs("div",{className:b(ds({variant:h.variant,animation:l})),children:[n.jsxs("div",{className:b(us({variant:h.variant})),children:[n.jsx("span",{className:"text-2xl",children:h.icon||(y===0?g:m)||gs[h.variant]}),n.jsx("div",{className:"flex-1",children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("span",{children:h.title}),h.badge&&n.jsx("span",{className:b("text-xs font-medium px-2 py-1 rounded-full",ms[h.badge.color||"gray"]),children:h.badge.text})]})})]}),n.jsx("ul",{className:"space-y-3",children:h.items.map((w,C)=>n.jsxs("li",{className:b("flex items-start gap-3 text-sm leading-relaxed",w.highlight&&"font-medium"),children:[w.icon&&n.jsx("span",{className:"flex-shrink-0 mt-0.5 text-base",children:w.icon}),n.jsxs("div",{className:"flex-1",children:[n.jsx("span",{className:b(h.variant==="traditional"||h.variant==="web3"?"text-gray-700 dark:text-gray-300":"text-gray-600 dark:text-gray-400"),children:w.text}),w.subtext&&n.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-500 mt-1",children:w.subtext})]})]},C))})]});return c?n.jsx(ye,{animation:"fade-in-up",delay:d+y*200,children:k},h.title):n.jsx("div",{children:k},h.title)},p=n.jsxs("div",{className:b("space-y-8",e),children:[(a||o)&&n.jsxs("div",{className:"text-center space-y-4",children:[a&&n.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-gray-900 dark:text-white",children:a}),o&&n.jsx("p",{className:"text-lg text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:o})]}),n.jsxs("div",{className:b(cs({layout:t,spacing:r})),children:[f(s,0),f(i,1)]})]});return c?n.jsx(ye,{animation:"fade-in-up",delay:d,children:p}):p},It=(e,t,r,a)=>({title:e,variant:r,items:t.map(o=>typeof o=="string"?{text:o}:o),...a}),fs=e=>{const t=[{text:"Create account with email/password",icon:"🔑"},{text:"Remember multiple passwords",icon:"🧠"},{text:"Verify email address",icon:"📧"},{text:"Risk of password theft",icon:"⚠️"},{text:"Data stored on company servers",icon:"🏢"},{text:"Account can be locked/suspended",icon:"🔒"}],r=[{text:"Connect your wallet",icon:"🔗"},{text:"No passwords needed",icon:"🚫"},{text:"Instant authentication",icon:"⚡"},{text:"Cryptographically secure",icon:"🔐"},{text:"You own your data",icon:"👑"},{text:"Censorship resistant",icon:"🛡️"}];return{traditional:It(e?.traditionalTitle||"Traditional Email",e?.traditionalItems||t,"traditional",{badge:{text:e?.traditionalBadge||"Old Way",color:"red"}}),web3:It(e?.web3Title||"Web3 Email",e?.web3Items||r,"web3",{badge:{text:e?.web3Badge||"New Way",color:"green"}})}},hs=_.cva("mx-auto px-4 sm:px-6",{variants:{size:{sm:"max-w-2xl",md:"max-w-4xl",lg:"max-w-6xl",xl:"max-w-7xl lg:px-8",full:"max-w-full",prose:"max-w-prose"},spacing:{none:"",xs:"py-2",sm:"py-3",md:"py-4",lg:"py-6",xl:"py-8","2xl":"py-12","3xl":"py-16"},align:{left:"text-left",center:"text-center",right:"text-right"}},defaultVariants:{size:"xl",spacing:"md",align:"left"}}),bs=({children:e,size:t="xl",spacing:r="md",align:a="left",className:o,as:s="div"})=>x.createElement(s,{className:b(hs({size:t,spacing:r,align:a}),o)},e),ys=({data:e,columns:t,hasActions:r=!1,renderCell:a,renderAction:o,emptyMessage:s="No data available",getRowKey:i=(c,d)=>String(d),className:l=""})=>!e||e.length===0?n.jsx("div",{className:`text-center py-8 bg-gray-50 dark:bg-gray-800 rounded-lg ${l}`,children:n.jsx("p",{className:`${T.body.sm()} text-gray-500 dark:text-gray-400`,children:s})}):n.jsx("div",{className:`relative ${l}`,children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full border-collapse",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-gray-200 dark:border-gray-700",children:[t.map((c,d)=>n.jsx("th",{className:`${T.label.default()} text-left py-3 px-4 whitespace-nowrap`,children:c},d)),r&&n.jsx("th",{className:`${T.label.default()} text-right py-3 px-4 sticky right-0 bg-white dark:bg-gray-900 whitespace-nowrap`})]})}),n.jsx("tbody",{children:e.map((c,d)=>n.jsxs("tr",{className:"border-b border-gray-100 dark:border-gray-800 hover:bg-gray-50 dark:hover:bg-gray-800/50",children:[t.map((g,m)=>{const f=a(c,m);return n.jsx("td",{className:"py-3 px-4",children:typeof f=="string"?n.jsx("span",{className:T.body.sm(),children:f}):f},m)}),r&&n.jsx("td",{className:"py-3 px-4 text-right sticky right-0 bg-white dark:bg-gray-900",children:o?.(c)})]},i(c,d)))})]})})}),xs=({trigger:e,items:t,align:r="right",className:a="",variant:o="default"})=>{const[s,i]=x.useState(!1),l=x.useRef(null);Pr(l,()=>i(!1));const c=m=>{m.disabled||(m.onClick(),i(!1))},d=r==="left"?L.overlays.dropdown.menuRight():L.overlays.dropdown.menuLeft(),g=o==="bordered"?L.overlays.dropdown.triggerBordered():L.overlays.dropdown.trigger();return n.jsxs("div",{className:`${L.overlays.dropdown.container()} ${a}`,ref:l,children:[n.jsx("div",{className:g,onClick:()=>i(!s),children:e}),s&&n.jsx("div",{className:`${L.overlays.dropdown.menu()} ${d} ${L.overlays.dropdown.menuBottom()}`,children:n.jsx("div",{className:L.overlays.dropdown.itemContainer(),children:t.map(m=>m.separator?n.jsx("div",{className:"my-1 h-px bg-gray-200 dark:bg-gray-700",role:"separator"},m.id):n.jsxs("button",{onClick:()=>c(m),disabled:m.disabled,className:`${m.disabled?L.overlays.dropdown.itemDisabled():L.overlays.dropdown.item()} flex items-center gap-2`,children:[m.icon&&n.jsx(m.icon,{className:L.overlays.dropdown.itemIcon()}),n.jsx("span",{children:m.label})]},m.id))})})]})},vs=({icon:e,title:t,description:r,benefits:a,metrics:o,color:s="blue",isHighlight:i=!1,learnMoreUrl:l,cta:c,onClick:d,interactive:g=!1,borderColor:m=!1,className:f})=>{const p={blue:"text-blue-600 dark:text-blue-400",green:"text-green-600 dark:text-green-400",purple:"text-purple-600 dark:text-purple-400",orange:"text-orange-600 dark:text-orange-400",pink:"text-pink-600 dark:text-pink-400",gray:"text-gray-600 dark:text-gray-400",red:"text-red-600 dark:text-red-400",indigo:"text-indigo-600 dark:text-indigo-400",cyan:"text-cyan-600 dark:text-cyan-400",emerald:"text-emerald-600 dark:text-emerald-400"},h={green:"border-l-4 border-green-500",blue:"border-l-4 border-blue-500",purple:"border-l-4 border-purple-500",orange:"border-l-4 border-orange-500",red:"border-l-4 border-red-500",indigo:"border-l-4 border-indigo-500",cyan:"border-l-4 border-cyan-500",emerald:"border-l-4 border-emerald-500",pink:"border-l-4 border-pink-500",gray:"border-l-4 border-gray-500"},y={green:"bg-green-100 dark:bg-green-900/20",blue:"bg-blue-100 dark:bg-blue-900/20",purple:"bg-purple-100 dark:bg-purple-900/20",orange:"bg-orange-100 dark:bg-orange-900/20",red:"bg-red-100 dark:bg-red-900/20",indigo:"bg-indigo-100 dark:bg-indigo-900/20",cyan:"bg-cyan-100 dark:bg-cyan-900/20",emerald:"bg-emerald-100 dark:bg-emerald-900/20",pink:"bg-pink-100 dark:bg-pink-900/20",gray:"bg-gray-100 dark:bg-gray-900/20"},k=p[s],w=typeof e=="string",C=()=>n.jsxs(n.Fragment,{children:[w?n.jsx("div",{className:"text-4xl mb-4",children:e}):m?n.jsx("div",{className:b("w-12 h-12","rounded-lg","flex items-center justify-center","mb-4",y[s],k),children:e}):n.jsx("div",{className:b("flex-shrink-0 mb-4",k),children:e}),n.jsxs("div",{className:"flex-1",children:[n.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-3",children:t}),n.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-4 leading-relaxed",children:r}),c&&n.jsx("div",{className:"mt-3 mb-4",children:c}),a&&a.length>0&&n.jsx("ul",{className:"space-y-2 mb-4",children:a.map((A,$)=>n.jsxs("li",{className:"flex items-start",children:[n.jsx("div",{className:b("w-2 h-2 rounded-full mt-2 mr-3 flex-shrink-0",`bg-${s}-500`)}),n.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:A})]},$))}),o&&Object.keys(o).length>0&&n.jsx("div",{className:"grid grid-cols-2 gap-4 mt-4",children:Object.entries(o).map(([A,$],I)=>n.jsxs("div",{className:"text-center p-3 bg-gray-50 dark:bg-gray-700/50 rounded-lg",children:[n.jsx("div",{className:b("text-lg font-bold",k),children:$}),n.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:A})]},I))})]})]}),N=b("p-6 rounded-xl shadow-lg hover:shadow-xl transition-all duration-200",m&&h[s],(g||d)&&"cursor-pointer hover:scale-[1.02]",i?"bg-gradient-to-br from-blue-50 to-indigo-50 dark:from-blue-900/20 dark:to-indigo-900/20 border-blue-200 dark:border-blue-800 border":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700 border",f),P=A=>{d&&("key"in A?(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),d()):d())};return l?n.jsx("a",{href:l,className:b(N,"block group"),onClick:d?A=>{A.preventDefault(),P(A)}:void 0,children:n.jsx(C,{})}):d?n.jsx("div",{className:N,onClick:P,onKeyDown:P,role:"button",tabIndex:0,"aria-label":t,children:n.jsx(C,{})}):n.jsx("div",{className:N,children:n.jsx(C,{})})},ws=_.cva("grid gap-8",{variants:{columns:{1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"},spacing:{sm:"gap-4",md:"gap-8",lg:"gap-12"}},defaultVariants:{columns:3,spacing:"md"}}),ks=_.cva("group transition-all duration-300",{variants:{variant:{default:"text-center",left:"text-left",hoverable:"text-center hover:transform hover:scale-105 cursor-pointer",card:"bg-white dark:bg-gray-800 rounded-2xl p-8 shadow-lg hover:shadow-xl text-center",minimal:"text-center space-y-4"},animation:{none:"",hover:"hover:transform hover:scale-105",float:"hover:-translate-y-2"}},defaultVariants:{variant:"default",animation:"hover"}}),Cs=_.cva("flex items-center justify-center rounded-2xl mb-6 transition-all duration-300",{variants:{size:{sm:"w-16 h-16",md:"w-20 h-20",lg:"w-24 h-24"},style:{gradient:"bg-gradient-to-br from-blue-100 to-blue-200 dark:from-blue-900/30 dark:to-blue-800/30 group-hover:from-blue-200 group-hover:to-blue-300 dark:group-hover:from-blue-800/40 dark:group-hover:to-blue-700/40",solid:"bg-blue-100 dark:bg-blue-900/30 group-hover:bg-blue-200 dark:group-hover:bg-blue-800/40",outline:"border-2 border-blue-200 dark:border-blue-800 group-hover:border-blue-300 dark:group-hover:border-blue-700",colorful:"group-hover:scale-110"},position:{center:"mx-auto",left:"",right:"ml-auto"}},defaultVariants:{size:"md",style:"gradient",position:"center"}}),Ss={success:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",info:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",warning:"bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300",default:"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300"},Ns=({className:e,features:t,columns:r=3,spacing:a="md",cardVariant:o="default",cardAnimation:s="hover",iconSize:i="md",iconStyle:l="gradient",iconPosition:c="center",titleClass:d,descriptionClass:g,animate:m=!0,animationDelay:f=0,staggerDelay:p=100,onFeatureClick:h,defaultLinkText:y="Learn more"})=>{const k=(C,N)=>{if(l==="colorful"&&C.gradient)return{background:`linear-gradient(135deg, ${C.gradient.from}, ${C.gradient.to})`};if(l==="colorful"){const P=[{from:"#3B82F6",to:"#1D4ED8"},{from:"#10B981",to:"#059669"},{from:"#8B5CF6",to:"#7C3AED"},{from:"#F59E0B",to:"#D97706"},{from:"#EF4444",to:"#DC2626"},{from:"#06B6D4",to:"#0891B2"}],A=P[N%P.length];return{background:`linear-gradient(135deg, ${A.from}, ${A.to})`}}},w=(C,N)=>{const P=n.jsxs("div",{className:b(ks({variant:o,animation:s})),onClick:()=>h?.(C),role:h?"button":void 0,tabIndex:h?0:void 0,children:[C.badge&&n.jsx("div",{className:"mb-4",children:n.jsx("span",{className:b("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",Ss[C.badge.variant||"default"]),children:C.badge.text})}),n.jsx("div",{className:b(Cs({size:i,style:l,position:c})),style:k(C,N),children:n.jsx("div",{className:b("flex items-center justify-center",l==="colorful"?"text-white":"text-blue-600 dark:text-blue-400"),children:C.icon})}),n.jsx("h3",{className:b("text-xl font-bold text-gray-900 dark:text-white mb-4",d),children:C.title}),n.jsx("div",{className:b("text-gray-600 dark:text-gray-300 leading-relaxed",g),children:C.description}),C.link&&n.jsx("div",{className:"mt-6",children:n.jsxs("a",{href:C.link.href,className:"inline-flex items-center text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 font-medium transition-colors duration-200",children:[C.link.text||y,n.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})})]});return m?n.jsx(ye,{animation:"fade-in-up",delay:f+N*p,children:P},C.id||N):n.jsx("div",{children:P},C.id||N)};return n.jsx("div",{className:b(ws({columns:r,spacing:a}),e),children:t.map(w)})},Lt=(e,t,r,a)=>({icon:e,title:t,description:r,...a}),Es=e=>[Lt(n.jsx("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})}),e?.passwordlessTitle||"Passwordless Security",e?.passwordlessDescription||"Authenticate using your Web3 wallet - no passwords to remember or lose."),Lt(n.jsx("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.40A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})}),e?.encryptionTitle||"End-to-End Encryption",e?.encryptionDescription||"Your emails are encrypted and only you can read them.")],As=({badgeIcon:e,badgeText:t,badgeColor:r="blue",title:a,subtitle:o,description:s,primaryButton:i,secondaryButton:l,className:c,children:d})=>{const m={blue:"bg-blue-100 dark:bg-blue-900/30 border-blue-300 dark:border-blue-700 text-blue-800 dark:text-blue-200",green:"bg-green-100 dark:bg-green-900/30 border-green-300 dark:border-green-700 text-green-800 dark:text-green-200",purple:"bg-purple-100 dark:bg-purple-900/30 border-purple-300 dark:border-purple-700 text-purple-800 dark:text-purple-200",orange:"bg-orange-100 dark:bg-orange-900/30 border-orange-300 dark:border-orange-700 text-orange-800 dark:text-orange-200",pink:"bg-pink-100 dark:bg-pink-900/30 border-pink-300 dark:border-pink-700 text-pink-800 dark:text-pink-200",gray:"bg-gray-100 dark:bg-gray-900/30 border-gray-300 dark:border-gray-700 text-gray-800 dark:text-gray-200"}[r];return n.jsx("section",{className:b("py-20",c),children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[n.jsxs("div",{className:b("inline-flex items-center border px-6 py-3 rounded-full mb-6",m),children:[e&&n.jsx("span",{className:"mr-3",children:e}),n.jsx("span",{className:"font-semibold",children:t})]}),n.jsxs("h1",{className:"text-4xl md:text-6xl font-bold text-gray-900 dark:text-gray-100 mb-6",children:[typeof a=="string"?n.jsx("span",{dangerouslySetInnerHTML:{__html:a}}):a,o&&n.jsx("span",{className:"text-blue-600 dark:text-blue-400 block",children:o})]}),n.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 mb-8 max-w-4xl mx-auto leading-relaxed",children:s}),(i||l)&&n.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-8",children:[i&&n.jsx(de,{size:"lg",...i,className:b("px-8 py-3",i.className),children:i.text}),l&&n.jsx(de,{variant:"outline",size:"lg",...l,className:b("px-8 py-3",l.className),children:l.text})]}),d]})})},Or=S.forwardRef(({className:e,type:t,...r},a)=>n.jsx("input",{type:t,className:b(L.input.default(),e),ref:a,...r}));Or.displayName="Input";const Ps=_.cva(`${T.label.default()} peer-disabled:cursor-not-allowed peer-disabled:opacity-70`),$t=S.forwardRef(({className:e,...t},r)=>n.jsx(pr.Root,{ref:r,className:b(Ps(),e),...t}));$t.displayName=pr.Root.displayName;const Ts=({title:e,description:t,metrics:r,columns:a=3,className:o})=>{const s={blue:"text-blue-600 dark:text-blue-400",green:"text-green-600 dark:text-green-400",purple:"text-purple-600 dark:text-purple-400",orange:"text-orange-600 dark:text-orange-400",pink:"text-pink-600 dark:text-pink-400",gray:"text-gray-600 dark:text-gray-400"},i={2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"};return n.jsx("section",{className:b("py-16",o),children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(e||t)&&n.jsxs("div",{className:"text-center mb-12",children:[e&&n.jsx("h2",{className:"text-3xl font-bold text-gray-900 dark:text-white mb-4",children:e}),t&&n.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto",children:t})]}),n.jsx("div",{className:b("grid gap-8",i[a]),children:r.map((l,c)=>{const d=l.color?s[l.color]:s.blue;return n.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl p-6 border border-gray-200 dark:border-gray-700 text-center hover:shadow-lg transition-shadow",children:[l.icon&&n.jsx("div",{className:b("flex justify-center mb-4",d),children:l.icon}),n.jsxs("div",{className:"space-y-2",children:[n.jsx("div",{className:b("text-3xl font-bold",d),children:l.value}),n.jsx("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:l.label}),l.trend&&n.jsxs("div",{className:b("text-sm font-semibold",l.trend.direction==="up"?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400"),children:[l.trend.direction==="up"?"↑":"↓"," ",l.trend.value]})]})]},c)})})]})})},Is=({title:e,description:t,steps:r,orientation:a="vertical",color:o="blue",className:s})=>{const l={blue:{bg:"bg-blue-600",text:"text-blue-600 dark:text-blue-400",border:"border-blue-200 dark:border-blue-800"},green:{bg:"bg-green-600",text:"text-green-600 dark:text-green-400",border:"border-green-200 dark:border-green-800"},purple:{bg:"bg-purple-600",text:"text-purple-600 dark:text-purple-400",border:"border-purple-200 dark:border-purple-800"},orange:{bg:"bg-orange-600",text:"text-orange-600 dark:text-orange-400",border:"border-orange-200 dark:border-orange-800"},pink:{bg:"bg-pink-600",text:"text-pink-600 dark:text-pink-400",border:"border-pink-200 dark:border-pink-800"},gray:{bg:"bg-gray-600",text:"text-gray-600 dark:text-gray-400",border:"border-gray-200 dark:border-gray-800"}}[o];return n.jsx("section",{className:b("py-16",s),children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(e||t)&&n.jsxs("div",{className:"text-center mb-12",children:[e&&n.jsx("h2",{className:"text-3xl font-bold text-gray-900 dark:text-white mb-4",children:e}),t&&n.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto",children:t})]}),n.jsx("div",{className:b(a==="horizontal"?"flex flex-col lg:flex-row justify-center items-center lg:items-start space-y-8 lg:space-y-0 lg:space-x-8":"space-y-8 max-w-4xl mx-auto"),children:r.map((c,d)=>n.jsxs("div",{className:b("relative",a==="horizontal"?"flex-1 text-center lg:text-left":"flex items-start"),children:[n.jsx("div",{className:b("flex-shrink-0 flex items-center justify-center rounded-full text-white font-bold",l.bg,a==="horizontal"?"w-12 h-12 mx-auto lg:mx-0 mb-4":"w-10 h-10 mr-4 mt-1"),children:c.icon?c.icon:c.step}),d<r.length-1&&a==="vertical"&&n.jsx("div",{className:b("absolute left-5 top-12 w-px h-8 -ml-px",l.bg.replace("bg-","bg-").replace("-600","-200"),"dark:"+l.bg.replace("bg-","bg-").replace("-600","-800"))}),n.jsxs("div",{className:b(a==="horizontal"?"flex-1":"flex-1 min-w-0"),children:[n.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:c.title}),n.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-3",children:c.description}),c.details&&c.details.length>0&&n.jsx("ul",{className:"space-y-1",children:c.details.map((g,m)=>n.jsxs("li",{className:"flex items-start",children:[n.jsx("div",{className:b("w-1.5 h-1.5 rounded-full mt-2 mr-2 flex-shrink-0",l.bg)}),n.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:g})]},m))})]})]},d))})]})})},Ls=({children:e,onRefresh:t,disabled:r=!1,refreshingText:a="Refreshing...",pullDownText:o="Pull down to refresh",releaseText:s="Release to refresh",threshold:i=80,maxPullDistance:l=120,className:c=""})=>{const[d,g]=x.useState(0),[m,f]=x.useState(!1),[p,h]=x.useState(!1),y=x.useRef(0),k=x.useRef(null);x.useEffect(()=>{const A=k.current;if(!A)return;const $=D=>{if(r||m)return;A.scrollTop<=0&&(y.current=D.touches[0].clientY,h(!0))},I=D=>{if(!p)return;const B=D.touches[0].clientY-y.current;if(B>0&&A.scrollTop<=0){const V=Math.min(B/l,1),W=Math.min(B*(1-V*.5),l);g(W),B>10&&D.preventDefault()}},z=async()=>{if(p)if(h(!1),d>=i&&!m){f(!0);try{await t()}catch{}finally{f(!1),g(0)}}else g(0)};return A.addEventListener("touchstart",$,{passive:!0}),A.addEventListener("touchmove",I,{passive:!1}),A.addEventListener("touchend",z),()=>{A.removeEventListener("touchstart",$),A.removeEventListener("touchmove",I),A.removeEventListener("touchend",z)}},[r,m,p,d,i,l,t]);const w=Math.min(d/i,1),C=p||m,N=p?d:m?i:0,P=()=>m?a:d>=i?s:o;return n.jsxs("div",{ref:k,className:`relative ${c}`,style:{height:"100%",overflowY:"auto",WebkitOverflowScrolling:"touch"},children:[n.jsx("div",{className:"sticky top-0 left-0 right-0 flex items-center justify-center bg-gradient-to-b from-blue-50/90 to-transparent dark:from-blue-900/20 dark:to-transparent backdrop-blur-sm z-10 transition-all duration-300 ease-out",style:{height:`${N}px`,marginTop:p?0:`-${N}px`,opacity:C?1:0,pointerEvents:"none"},children:n.jsxs("div",{className:"flex flex-col items-center justify-center gap-2",children:[n.jsx(E.ArrowPathIcon,{className:`w-6 h-6 text-blue-600 dark:text-blue-400 transition-transform duration-200 ${m?"animate-spin":""}`,style:{transform:`rotate(${w*360}deg)`}}),d>20&&n.jsx("span",{className:"text-xs font-medium text-blue-600 dark:text-blue-400",children:P()})]})}),n.jsx("div",{style:{paddingTop:p?`${d}px`:0,transition:p?"none":"padding-top 200ms ease-out"},children:e})]})},Ot=H.Root,$s=H.Group,Mr=H.Value,Re=S.forwardRef(({className:e,children:t,...r},a)=>n.jsxs(H.Trigger,{ref:a,className:b("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),...r,children:[t,n.jsx(H.Icon,{asChild:!0,children:n.jsx(Qe.ChevronDown,{className:"h-4 w-4 opacity-50 ml-2 flex-shrink-0"})})]}));Re.displayName=H.Trigger.displayName;const Mt=S.forwardRef(({className:e,...t},r)=>n.jsx(H.ScrollUpButton,{ref:r,className:b("flex cursor-default items-center justify-center py-1",e),...t,children:n.jsx(Qe.ChevronUp,{className:"h-4 w-4"})}));Mt.displayName=H.ScrollUpButton.displayName;const zt=S.forwardRef(({className:e,...t},r)=>n.jsx(H.ScrollDownButton,{ref:r,className:b("flex cursor-default items-center justify-center py-1",e),...t,children:n.jsx(Qe.ChevronDown,{className:"h-4 w-4"})}));zt.displayName=H.ScrollDownButton.displayName;const et=S.forwardRef(({className:e,children:t,position:r="popper",...a},o)=>n.jsx(H.Portal,{children:n.jsxs(H.Content,{ref:o,className:b(L.overlays.dropdown.menu(),"z-[1000000] max-h-96 min-w-[8rem] 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",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...a,children:[n.jsx(Mt,{}),n.jsx(H.Viewport,{className:b(L.overlays.dropdown.itemContainer(),r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),n.jsx(zt,{})]})}));et.displayName=H.Content.displayName;const zr=S.forwardRef(({className:e,...t},r)=>n.jsx(H.Label,{ref:r,className:b(L.overlays.dropdown.header(),"py-1.5",e),...t}));zr.displayName=H.Label.displayName;const tt=S.forwardRef(({className:e,children:t,...r},a)=>n.jsxs(H.Item,{ref:a,className:b(L.overlays.dropdown.item(),"relative select-none justify-between pr-8 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[n.jsx(H.ItemText,{children:t}),n.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:n.jsx(H.ItemIndicator,{children:n.jsx(Qe.Check,{className:"h-4 w-4"})})})]}));tt.displayName=H.Item.displayName;const Dr=S.forwardRef(({className:e,...t},r)=>n.jsx(H.Separator,{ref:r,className:b("my-1 h-px bg-gray-200 dark:bg-gray-700",e),...t}));Dr.displayName=H.Separator.displayName;const rt=({size:e="default",variant:t="default",className:r,ariaLabel:a="Loading",loadingText:o="Loading..."})=>{const s=()=>{const i={small:"w-4 h-4",default:"w-6 h-6",large:"w-8 h-8",extraLarge:"w-16 h-16 border-4"},l={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 ${i[e]} ${l[t]}`};return n.jsx("div",{className:b(s(),r),role:"status","aria-label":a,children:n.jsx("span",{className:"sr-only",children:o})})},Br=S.forwardRef(({className:e,...t},r)=>n.jsx(St.Root,{className:b("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),...t,ref:r,children:n.jsx(St.Thumb,{className:b("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")})}));Br.displayName=St.Root.displayName;const Os=({title:e,onAdd:t,addButtonTooltip:r,loading:a,className:o=""})=>n.jsx("div",{className:`p-4 border-b border-gray-200 dark:border-gray-700 ${o}`,children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:e}),n.jsxs("div",{className:"flex items-center space-x-2",children:[a&&n.jsx("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),t&&n.jsx("button",{onClick:t,className:"p-1 rounded hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors",title:r,"aria-label":r||"Add",children:n.jsx("svg",{className:"w-5 h-5 text-gray-600 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})})})]})]})}),Ms=({subsections:e,isExpanded:t,selectedSubsection:r,parentSectionId:a,onSubsectionSelect:o})=>{const s=x.useRef(null),[i,l]=x.useState(void 0);return x.useEffect(()=>{if(s.current){const c=s.current.scrollHeight;l(t?c+8:0)}},[t,e]),n.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{height:i!==void 0?`${i}px`:"auto"},children:n.jsx("div",{ref:s,className:"ml-6 mt-2 space-y-1",children:e.map(c=>n.jsx("button",{onClick:()=>o?.(c.id,a),className:`block w-full text-left px-3 py-2 rounded-md text-sm transition-all duration-200 hover:scale-[1.02] ${r===c.id?"bg-blue-100 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300 shadow-sm":"text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-gray-800 dark:hover:text-gray-200"}`,children:c.title},c.id))})})},zs=({sections:e,selectedSection:t,selectedSubsection:r,expandedSections:a,onSectionSelect:o,onSubsectionSelect:s,onToggleSection:i,className:l=""})=>n.jsx("nav",{className:`space-y-2 ${l}`,children:e.map(c=>n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx("button",{onClick:()=>o(c.id),className:`flex-1 text-left px-3 py-2 rounded-md text-sm font-medium transition-all duration-200 hover:scale-[1.02] ${t===c.id&&!r?"bg-blue-100 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300 shadow-sm":"text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-gray-900 dark:hover:text-gray-100"}`,children:c.title}),c.subsections&&c.subsections.length>0&&n.jsx("button",{onClick:()=>i(c.id),className:"p-1 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800 hover:scale-110 transition-all duration-200",children:n.jsx(E.ChevronRightIcon,{className:`h-4 w-4 text-gray-500 transition-transform duration-300 ease-in-out ${a.includes(c.id)?"rotate-90":"rotate-0"}`})})]}),c.subsections&&n.jsx(Ms,{subsections:c.subsections,isExpanded:a.includes(c.id),selectedSubsection:r,parentSectionId:c.id,onSubsectionSelect:s})]},c.id))}),Ds=e=>{switch(e){case"verified":case"success":return Se("success");case"connected":case"warning":return Se("warning");case"disconnected":case"error":return Se("error");case"pending":return Se("info");default:return Se("neutral")}},Bs=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"}},Ws=({status:e,label:t,showDot:r=!0,size:a="md"})=>{const s=t||{verified:"Verified",connected:"Connected",disconnected:"Disconnected",pending:"Pending",error:"Error",success:"Success",warning:"Warning"}[e],l=((g,m)=>{const f={sm:"small",md:"default",lg:"large"},h={verified:"success",success:"success",connected:"warning",warning:"warning",disconnected:"error",error:"error",pending:"primary"}[g]||"default",y=f[m];return y==="default"?L.badge[h]():L.badge[y](h)})(e,a),c=Ds(e),d=Bs(a);return n.jsxs("span",{className:l,children:[r&&n.jsx("span",{className:`inline-block ${d} rounded-full ${c} mr-1`}),s]})},Wr=({chainType:e,size:t="md"})=>{if(e==="unknown")return null;const r=e==="solana"?"SOL":"ETH",o={sm:"small",md:"default",lg:"large"}[t],s=()=>{const i=e==="solana"?"solana":"ethereum";return o==="default"?L.badge[i]():L.badge[o](i)};return n.jsx("span",{className:s(),children:r})},js=e=>e?e.length<=10?e:`${e.slice(0,6)}...${e.slice(-4)}`:"",jr=({type:e,addressType:t})=>{if(e==="primary")return n.jsx(Wr,{chainType:t==="solana"?"solana":"evm",size:"sm"});const r=()=>e.toUpperCase(),a=()=>{switch(e){case"ens":return"bg-green-50 text-green-700 border-green-200 dark:bg-green-900/10 dark:text-green-300 dark:border-green-800";case"sns":return"bg-orange-50 text-orange-700 border-orange-200 dark:bg-orange-900/10 dark:text-orange-300 dark:border-orange-800";default:return"bg-gray-50 text-gray-700 border-gray-200 dark:bg-gray-900/10 dark:text-gray-300 dark:border-gray-800"}};return n.jsx("span",{className:b("inline-flex items-center px-2.5 py-0.5 rounded-md text-xs font-medium border",a()),children:r()})},Fs=({domainEmails:e,isExpanded:t,selectedAccount:r,onAccountSelect:a,onAccountSettings:o})=>{const s=x.useRef(null),[i,l]=x.useState(void 0);return x.useEffect(()=>{if(s.current){const c=s.current.scrollHeight;l(t?c+8:0)}},[t,e]),n.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{height:i!==void 0?`${i}px`:"auto"},children:n.jsx("div",{ref:s,className:"ml-6 mt-2 space-y-1",children:e.map(c=>n.jsxs("button",{onClick:()=>a(c.address),className:b("w-full flex items-center justify-between text-left px-3 py-2 rounded-lg transition-colors h-[44px]",T.body.sm(),r===c.address?"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300":"hover:bg-gray-100 dark:hover:bg-gray-700"),children:[n.jsx("span",{className:"truncate flex-1",children:c.name}),n.jsx(jr,{type:c.type,addressType:c.addressType})]},c.address))})})},_s=({walletGroups:e,selectedAccount:t,expandedWallets:r,onAccountSelect:a,onToggleWallet:o,onAccountSettings:s,className:i=""})=>n.jsx("nav",{className:b("space-y-1",i),children:e.map(l=>n.jsxs("div",{children:[n.jsxs("button",{onClick:()=>a(l.primaryEmail.address),className:b("w-full flex items-center justify-between text-left px-3 py-2 rounded-lg transition-colors h-[44px]",T.body.sm(),t===l.primaryEmail.address&&l.domainEmails.length===0?"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300":"hover:bg-gray-100 dark:hover:bg-gray-700"),style:l.customColor?{backgroundColor:l.customColor}:void 0,children:[n.jsxs("div",{className:"flex items-center flex-1 min-w-0",children:[n.jsx("span",{className:"truncate flex-1",children:js(l.walletAddress)}),n.jsx(jr,{type:l.primaryEmail.type,addressType:l.addressType})]}),l.domainEmails.length>0&&n.jsx("div",{onClick:c=>{c.stopPropagation(),o(l.walletAddress)},className:"p-1 rounded-lg hover:bg-gray-200 dark:hover:bg-gray-600 transition-colors cursor-pointer",role:"button",tabIndex:0,onKeyDown:c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),c.stopPropagation(),o(l.walletAddress))},children:n.jsx(E.ChevronRightIcon,{className:b("h-4 w-4 text-gray-500 transition-transform duration-300 ease-in-out",r.includes(l.walletAddress)?"rotate-90":"rotate-0")})})]}),l.domainEmails.length>0&&n.jsx(Fs,{domainEmails:l.domainEmails,isExpanded:r.includes(l.walletAddress),selectedAccount:t,onAccountSelect:a,onAccountSettings:s})]},l.walletAddress))}),Hs=e=>{switch(e){case"cog":return E.Cog6ToothIcon;case"arrow-right":return E.ArrowRightIcon;case"shield":return E.ShieldCheckIcon;case"reply":case"chat":return E.ChatBubbleLeftRightIcon;case"filter":return E.FunnelIcon;case"plug":return E.LinkIcon;case"adjustments":return E.AdjustmentsHorizontalIcon;case"currency-dollar":return E.CurrencyDollarIcon;default:return E.Cog6ToothIcon}},Vs=({settings:e,selectedSetting:t,onSettingSelect:r,className:a=""})=>n.jsx("nav",{className:b("space-y-1",a),"aria-label":"Settings navigation",children:n.jsx("ul",{className:"space-y-1",role:"list",children:e.map(o=>{const s=Hs(o.icon),i=t===o.id;return n.jsx("li",{children:n.jsx("button",{onClick:()=>r(o.id),className:b("w-full flex items-center text-left px-3 py-2 rounded-lg transition-colors h-[44px]",T.body.sm(),i?"bg-orange-100 dark:bg-orange-900/30 text-orange-700 dark:text-orange-300":"hover:bg-gray-100 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300"),"aria-current":i?"page":void 0,title:o.description,children:n.jsxs("div",{className:"flex items-center flex-1 min-w-0",children:[n.jsx(s,{className:"h-5 w-5 mr-3 flex-shrink-0","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:o.title})]})})},o.id)})})}),qs=fe.Root,Fr=S.forwardRef(({className:e,...t},r)=>n.jsx(fe.List,{ref:r,className:b(L.navigation.tabs.list(),e),...t}));Fr.displayName=fe.List.displayName;const _r=S.forwardRef(({className:e,...t},r)=>n.jsx(fe.Trigger,{ref:r,className:b(L.navigation.tabs.trigger(),e),...t}));_r.displayName=fe.Trigger.displayName;const Hr=S.forwardRef(({className:e,...t},r)=>n.jsx(fe.Content,{ref:r,className:b(L.navigation.tabs.content(),e),...t}));Hr.displayName=fe.Content.displayName;const Us=({title:e,description:t,useCases:r,columns:a=3,className:o})=>{const s={blue:"text-blue-600 dark:text-blue-400",green:"text-green-600 dark:text-green-400",purple:"text-purple-600 dark:text-purple-400",orange:"text-orange-600 dark:text-orange-400",pink:"text-pink-600 dark:text-pink-400",gray:"text-gray-600 dark:text-gray-400"},i={2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"};return n.jsx("section",{className:b(Ho.section.gradient,o),children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(e||t)&&n.jsxs("div",{className:"text-center mb-12",children:[e&&n.jsx("h2",{className:"text-3xl font-bold text-gray-900 dark:text-white mb-4",children:e}),t&&n.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto",children:t})]}),n.jsx("div",{className:b("grid gap-8",i[a]),children:r.map((l,c)=>{const d=l.color?s[l.color]:s.blue;return n.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl p-6 border border-gray-200 dark:border-gray-700 hover:shadow-lg transition-shadow",children:[n.jsx("div",{className:b("flex-shrink-0 mb-4",d),children:l.icon}),n.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-3",children:l.title}),n.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-4",children:l.description}),l.examples&&l.examples.length>0&&n.jsxs("div",{children:[n.jsx("h4",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2",children:"Examples:"}),n.jsx("ul",{className:"space-y-1",children:l.examples.map((g,m)=>n.jsxs("li",{className:"flex items-start",children:[n.jsx("div",{className:b("w-1.5 h-1.5 rounded-full mt-2 mr-2 flex-shrink-0",l.color?`bg-${l.color}-500`:"bg-blue-500")}),n.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:g})]},m))})]})]},c)})})]})})},Gs={row:"flex-row","row-reverse":"flex-row-reverse",col:"flex-col","col-reverse":"flex-col-reverse"},Ks={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},Ys={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},Qs={wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse",nowrap:"flex-nowrap"},Xs={0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},Zs=({children:e,direction:t="row",align:r="start",justify:a="start",wrap:o="nowrap",gap:s="0",className:i})=>n.jsx("div",{className:b("flex",Gs[t],Ks[r],Ys[a],Qs[o],Xs[s],i),children:e}),Js=_.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"}}),Rs=({children:e,background:t="default",overflow:r="visible",className:a})=>n.jsx("div",{className:b(Js({background:t,overflow:r}),a),children:e}),ei=_.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-600 to-purple-600 dark:from-blue-700 dark:to-purple-700"}},defaultVariants:{variant:"default",spacing:"3xl",background:"none"}}),ti=({children:e,variant:t="default",spacing:r="3xl",background:a="none",className:o,as:s="section",id:i})=>x.createElement(s,{id:i,className:b(ei({variant:t,spacing:r,background:a}),o)},e),Vr=({icon:e,title:t="No data",description:r,action:a,className:o})=>n.jsxs("div",{className:b("flex flex-col items-center justify-center py-12 px-4 text-center",o),children:[e&&n.jsx("div",{className:"mb-4 text-gray-400 dark:text-gray-600",children:e}),n.jsx("h3",{className:b(T.heading.h3(),"mb-2"),children:t}),r&&n.jsx("p",{className:b(T.body.sm(),"text-gray-600 dark:text-gray-400 max-w-sm mb-6"),children:r}),a&&n.jsx("div",{className:"mt-4",children:a})]}),ri=({message:e="Loading...",size:t="default",fullScreen:r=!1,variant:a="default",className:o})=>{const i={small:{spinner:"small",text:"text-sm"},default:{spinner:"default",text:"text-base"},large:{spinner:"large",text:"text-lg"}}[t],l=r?"fixed inset-0 z-50 flex items-center justify-center bg-white/80 dark:bg-gray-900/80":"flex flex-col items-center justify-center p-8",c=n.jsxs("div",{className:b(l,o),children:[n.jsx(rt,{size:i.spinner,variant:a,className:"mb-4"}),e&&n.jsx("p",{className:b(i.text,"text-gray-600 dark:text-gray-400 text-center max-w-sm"),children:e})]});return r?n.jsx("div",{className:"fixed inset-0 z-50 bg-white/80 dark:bg-gray-900/80 backdrop-blur-sm",children:n.jsxs("div",{className:"flex items-center justify-center min-h-full p-4",children:[n.jsx(rt,{size:i.spinner,variant:a,className:"mb-4"}),e&&n.jsx("p",{className:"text-center text-gray-600 dark:text-gray-400 max-w-sm",children:e})]})}):c},ai=({title:e,subtext:t,className:r})=>n.jsx(Vr,{title:e,description:t,className:r}),Dt=({label:e,value:t,onChange:r,placeholder:a,required:o=!1,error:s,className:i=""})=>n.jsxs("div",{className:i,children:[n.jsxs($t,{htmlFor:e.toLowerCase(),className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:[e," ",o&&n.jsx("span",{className:"text-red-500",children:"*"})]}),n.jsx("input",{id:e.toLowerCase(),type:"email",value:t,onChange:l=>r(l.target.value),placeholder:a,className:`
|
|
36
|
+
`,es(m))}}},[e]),n.jsx("div",{ref:p,className:`${b()} ${s}`,children:o})},ts=({children:e,delay:t=0,className:r=""})=>n.jsx(ye,{animation:"fade-in-up",delay:t,className:r,children:e}),rs=({children:e,delay:t=0,className:r=""})=>n.jsx(ye,{animation:"fade-in-scale",delay:t,className:r,children:e}),as=({children:e,className:t=""})=>n.jsx(ye,{animation:"float",className:t,children:e}),Mr=_.cva("min-h-[44px] touch-manipulation",{variants:{variant:{default:"",primary:"",secondary:"",outline:"",ghost:"",destructive:"","destructive-outline":"",success:"",link:"",gradient:"","gradient-secondary":"","gradient-success":"",wallet:"",connect:"",disconnect:""},size:{default:"",sm:"h-8",lg:"h-12",icon:"h-10 w-10 p-0"},animation:{none:"transition-colors duration-200",hover:"transition-all duration-200 hover:scale-105",lift:"transition-all duration-200 hover:scale-105",scale:"transition-transform duration-200 hover:scale-95",glow:"transition-all duration-200 hover:shadow-lg",shimmer:"transition-all duration-200",tap:"transition-transform duration-100 active:scale-95",connect:"transition-all duration-200 hover:scale-105",transaction:"transition-all duration-200 animate-pulse",disconnect:"transition-all duration-200 hover:opacity-80"}},defaultVariants:{variant:"default",size:"default",animation:"hover"}}),de=S.forwardRef(({className:e,variant:t,size:r,animation:a,asChild:o=!1,...s},i)=>{const l=o?St.Slot:"button",c=t||"default",d=r&&r!=="default"&&r!=="icon"?r:void 0,g=f=>f?{sm:"small",lg:"large",default:"default"}[f]||f:"default",b=(()=>{if(c.startsWith("gradient")){const f=c.replace("gradient-","").replace("gradient","primary");return $.button.gradient[f]?.()||$.button.primary.default()}else{if(["wallet","connect","disconnect"].includes(c))return $.button.web3[c]?.()||$.button.primary.default();{const f=g(d);return $.button[c]?.[f]?.()||$.button.primary.default()}}})();return n.jsx(l,{className:y(Mr({size:r,animation:a}),b,e),ref:i,...s})});de.displayName="Button";const ns="bg-gradient-to-r from-blue-50 to-indigo-50 dark:from-blue-900/20 dark:to-indigo-900/20 border border-blue-200 dark:border-blue-800",os={none:"",sm:"p-3",md:"p-6",lg:"p-8"},It=({variant:e="elevated",padding:t="md",icon:r,onClose:a,className:o,children:s,...i})=>{const c=["info","success","warning","error"].includes(e)&&(r||a),d=e==="callout"?ns:_o(e);return n.jsx("div",{className:y("rounded-lg",d,os[t],o),...i,children:c?n.jsxs("div",{className:"flex items-start gap-3",children:[r&&n.jsx("div",{className:"flex-shrink-0 text-lg",children:r}),n.jsx("div",{className:"flex-1 min-w-0",children:s}),a&&n.jsx("button",{onClick:a,className:"flex-shrink-0 text-current hover:opacity-70 transition-opacity","aria-label":"Close",children:n.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}):s})},ss=({title:e,description:t,className:r,children:a,...o})=>n.jsxs("div",{className:y("space-y-1.5",r),...o,children:[e&&n.jsx("h3",{className:T.heading.h4(),children:e}),t&&n.jsx("p",{className:T.body.sm(),children:t}),a]}),is=({className:e,children:t,...r})=>n.jsx("div",{className:y("",e),...r,children:t}),ls=({className:e,children:t,...r})=>n.jsx("div",{className:y("flex items-center pt-4",e),...r,children:t}),cs=({title:e,children:t,variant:r="info",size:a="default",className:o})=>{const s={sm:"sm",default:"md",lg:"lg"},i=r==="neutral"?"bordered":r;return n.jsxs(It,{variant:i,padding:s[a],className:o,children:[e&&n.jsx("h3",{className:y("font-semibold mb-2",a==="sm"?"text-base":a==="lg"?"text-xl":"text-lg"),children:e}),t]})},ds=({title:e,icon:t,children:r,variant:a="gradient",size:o="default",centered:s=!1,className:i})=>{const l={sm:"sm",default:"md",lg:"lg"},c=a==="gradient"||a==="neutral"?"callout":a;return n.jsx(It,{variant:c,padding:l[o],className:i,children:n.jsxs("div",{className:y("space-y-4",s&&"text-center"),children:[t&&n.jsx("div",{className:y("font-bold",o==="sm"?"text-2xl":o==="lg"?"text-5xl":"text-4xl",s?"text-center":"text-left"),children:t}),e&&n.jsx("h3",{className:y("font-bold mb-4",o==="sm"?"text-lg":o==="lg"?"text-3xl":"text-2xl"),children:e}),n.jsx("div",{className:y("text-gray-600 dark:text-gray-400",o==="sm"?"text-sm":o==="lg"?"text-lg":"text-base"),children:r})]})})},us=_.cva("grid gap-8",{variants:{layout:{grid:"grid-cols-1 md:grid-cols-2",stacked:"grid-cols-1 space-y-8",cards:"grid-cols-1 md:grid-cols-2 gap-6"},spacing:{sm:"gap-4",md:"gap-8",lg:"gap-12"}},defaultVariants:{layout:"grid",spacing:"md"}}),gs=_.cva("rounded-xl p-6 transition-all duration-300",{variants:{variant:{traditional:"bg-red-50 dark:bg-red-900/20 border-2 border-red-100 dark:border-red-800/30 hover:border-red-200 dark:hover:border-red-700/50",web3:"bg-green-50 dark:bg-green-900/20 border-2 border-green-100 dark:border-green-800/30 hover:border-green-200 dark:hover:border-green-700/50",neutral:"bg-gray-50 dark:bg-gray-800/50 border-2 border-gray-100 dark:border-gray-700/30 hover:border-gray-200 dark:hover:border-gray-600/50",elevated:"bg-white dark:bg-gray-800 shadow-lg hover:shadow-xl border border-gray-200 dark:border-gray-700"},animation:{none:"",hover:"hover:transform hover:scale-[1.02]",float:"hover:-translate-y-1"}},defaultVariants:{variant:"traditional",animation:"hover"}}),ps=_.cva("text-lg font-bold mb-4 flex items-center gap-3",{variants:{variant:{traditional:"text-red-600 dark:text-red-400",web3:"text-green-600 dark:text-green-400",neutral:"text-gray-900 dark:text-white",elevated:"text-gray-900 dark:text-white"}},defaultVariants:{variant:"traditional"}}),fs={traditional:"❌",web3:"✅",neutral:"ℹ️",elevated:"⭐"},ms={red:"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300",green:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",blue:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",gray:"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300"},hs=({className:e,layout:t="grid",spacing:r="md",title:a,subtitle:o,traditional:s,web3:i,cardAnimation:l="hover",animate:c=!0,animationDelay:d=0,traditionalIcon:g,web3Icon:p})=>{const b=(m,h)=>{const w=n.jsxs("div",{className:y(gs({variant:m.variant,animation:l})),children:[n.jsxs("div",{className:y(ps({variant:m.variant})),children:[n.jsx("span",{className:"text-2xl",children:m.icon||(h===0?g:p)||fs[m.variant]}),n.jsx("div",{className:"flex-1",children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("span",{children:m.title}),m.badge&&n.jsx("span",{className:y("text-xs font-medium px-2 py-1 rounded-full",ms[m.badge.color||"gray"]),children:m.badge.text})]})})]}),n.jsx("ul",{className:"space-y-3",children:m.items.map((k,C)=>n.jsxs("li",{className:y("flex items-start gap-3 text-sm leading-relaxed",k.highlight&&"font-medium"),children:[k.icon&&n.jsx("span",{className:"flex-shrink-0 mt-0.5 text-base",children:k.icon}),n.jsxs("div",{className:"flex-1",children:[n.jsx("span",{className:y(m.variant==="traditional"||m.variant==="web3"?"text-gray-700 dark:text-gray-300":"text-gray-600 dark:text-gray-400"),children:k.text}),k.subtext&&n.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-500 mt-1",children:k.subtext})]})]},C))})]});return c?n.jsx(ye,{animation:"fade-in-up",delay:d+h*200,children:w},m.title):n.jsx("div",{children:w},m.title)},f=n.jsxs("div",{className:y("space-y-8",e),children:[(a||o)&&n.jsxs("div",{className:"text-center space-y-4",children:[a&&n.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-gray-900 dark:text-white",children:a}),o&&n.jsx("p",{className:"text-lg text-gray-600 dark:text-gray-400 max-w-2xl mx-auto",children:o})]}),n.jsxs("div",{className:y(us({layout:t,spacing:r})),children:[b(s,0),b(i,1)]})]});return c?n.jsx(ye,{animation:"fade-in-up",delay:d,children:f}):f},$t=(e,t,r,a)=>({title:e,variant:r,items:t.map(o=>typeof o=="string"?{text:o}:o),...a}),bs=e=>{const t=[{text:"Create account with email/password",icon:"🔑"},{text:"Remember multiple passwords",icon:"🧠"},{text:"Verify email address",icon:"📧"},{text:"Risk of password theft",icon:"⚠️"},{text:"Data stored on company servers",icon:"🏢"},{text:"Account can be locked/suspended",icon:"🔒"}],r=[{text:"Connect your wallet",icon:"🔗"},{text:"No passwords needed",icon:"🚫"},{text:"Instant authentication",icon:"⚡"},{text:"Cryptographically secure",icon:"🔐"},{text:"You own your data",icon:"👑"},{text:"Censorship resistant",icon:"🛡️"}];return{traditional:$t(e?.traditionalTitle||"Traditional Email",e?.traditionalItems||t,"traditional",{badge:{text:e?.traditionalBadge||"Old Way",color:"red"}}),web3:$t(e?.web3Title||"Web3 Email",e?.web3Items||r,"web3",{badge:{text:e?.web3Badge||"New Way",color:"green"}})}},ys=_.cva("mx-auto px-4 sm:px-6",{variants:{size:{sm:"max-w-2xl",md:"max-w-4xl",lg:"max-w-6xl",xl:"max-w-7xl lg:px-8",full:"max-w-full",prose:"max-w-prose"},spacing:{none:"",xs:"py-2",sm:"py-3",md:"py-4",lg:"py-6",xl:"py-8","2xl":"py-12","3xl":"py-16"},align:{left:"text-left",center:"text-center",right:"text-right"}},defaultVariants:{size:"xl",spacing:"md",align:"left"}}),xs=({children:e,size:t="xl",spacing:r="md",align:a="left",className:o,as:s="div"})=>x.createElement(s,{className:y(ys({size:t,spacing:r,align:a}),o)},e),vs=({data:e,columns:t,hasActions:r=!1,renderCell:a,renderAction:o,emptyMessage:s="No data available",getRowKey:i=(c,d)=>String(d),className:l=""})=>!e||e.length===0?n.jsx("div",{className:`text-center py-8 bg-gray-50 dark:bg-gray-800 rounded-lg ${l}`,children:n.jsx("p",{className:`${T.body.sm()} text-gray-500 dark:text-gray-400`,children:s})}):n.jsx("div",{className:`relative ${l}`,children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full border-collapse",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-gray-200 dark:border-gray-700",children:[t.map((c,d)=>n.jsx("th",{className:`${T.label.default()} text-left py-3 px-4 whitespace-nowrap`,children:c},d)),r&&n.jsx("th",{className:`${T.label.default()} text-right py-3 px-4 sticky right-0 bg-white dark:bg-gray-900 whitespace-nowrap`})]})}),n.jsx("tbody",{children:e.map((c,d)=>n.jsxs("tr",{className:"border-b border-gray-100 dark:border-gray-800 hover:bg-gray-50 dark:hover:bg-gray-800/50",children:[t.map((g,p)=>{const b=a(c,p);return n.jsx("td",{className:"py-3 px-4",children:typeof b=="string"?n.jsx("span",{className:T.body.sm(),children:b}):b},p)}),r&&n.jsx("td",{className:"py-3 px-4 text-right sticky right-0 bg-white dark:bg-gray-900",children:o?.(c)})]},i(c,d)))})]})})}),ws=({trigger:e,items:t,align:r="right",className:a="",variant:o="default"})=>{const[s,i]=x.useState(!1),l=x.useRef(null);Ir(l,()=>i(!1));const c=p=>{p.disabled||(p.onClick(),i(!1))},d=r==="left"?$.overlays.dropdown.menuRight():$.overlays.dropdown.menuLeft(),g=o==="bordered"?$.overlays.dropdown.triggerBordered():$.overlays.dropdown.trigger();return n.jsxs("div",{className:`${$.overlays.dropdown.container()} ${a}`,ref:l,children:[n.jsx("div",{className:g,onClick:()=>i(!s),children:e}),s&&n.jsx("div",{className:`${$.overlays.dropdown.menu()} ${d} ${$.overlays.dropdown.menuBottom()}`,children:n.jsx("div",{className:$.overlays.dropdown.itemContainer(),children:t.map(p=>p.separator?n.jsx("div",{className:"my-1 h-px bg-gray-200 dark:bg-gray-700",role:"separator"},p.id):n.jsxs("button",{onClick:()=>c(p),disabled:p.disabled,className:`${p.disabled?$.overlays.dropdown.itemDisabled():$.overlays.dropdown.item()} flex items-center gap-2`,children:[p.icon&&n.jsx(p.icon,{className:$.overlays.dropdown.itemIcon()}),n.jsx("span",{children:p.label})]},p.id))})})]})},ks=({icon:e,title:t,description:r,benefits:a,metrics:o,color:s="blue",isHighlight:i=!1,learnMoreUrl:l,cta:c,onClick:d,interactive:g=!1,borderColor:p=!1,className:b})=>{const f={blue:"text-blue-600 dark:text-blue-400",green:"text-green-600 dark:text-green-400",purple:"text-purple-600 dark:text-purple-400",orange:"text-orange-600 dark:text-orange-400",pink:"text-pink-600 dark:text-pink-400",gray:"text-gray-600 dark:text-gray-400",red:"text-red-600 dark:text-red-400",indigo:"text-indigo-600 dark:text-indigo-400",cyan:"text-cyan-600 dark:text-cyan-400",emerald:"text-emerald-600 dark:text-emerald-400"},m={green:"border-l-4 border-green-500",blue:"border-l-4 border-blue-500",purple:"border-l-4 border-purple-500",orange:"border-l-4 border-orange-500",red:"border-l-4 border-red-500",indigo:"border-l-4 border-indigo-500",cyan:"border-l-4 border-cyan-500",emerald:"border-l-4 border-emerald-500",pink:"border-l-4 border-pink-500",gray:"border-l-4 border-gray-500"},h={green:"bg-green-100 dark:bg-green-900/20",blue:"bg-blue-100 dark:bg-blue-900/20",purple:"bg-purple-100 dark:bg-purple-900/20",orange:"bg-orange-100 dark:bg-orange-900/20",red:"bg-red-100 dark:bg-red-900/20",indigo:"bg-indigo-100 dark:bg-indigo-900/20",cyan:"bg-cyan-100 dark:bg-cyan-900/20",emerald:"bg-emerald-100 dark:bg-emerald-900/20",pink:"bg-pink-100 dark:bg-pink-900/20",gray:"bg-gray-100 dark:bg-gray-900/20"},w=f[s],k=typeof e=="string",C=()=>n.jsxs(n.Fragment,{children:[k?n.jsx("div",{className:"text-4xl mb-4",children:e}):p?n.jsx("div",{className:y("w-12 h-12","rounded-lg","flex items-center justify-center","mb-4",h[s],w),children:e}):n.jsx("div",{className:y("flex-shrink-0 mb-4",w),children:e}),n.jsxs("div",{className:"flex-1",children:[n.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-3",children:t}),n.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-4 leading-relaxed",children:r}),c&&n.jsx("div",{className:"mt-3 mb-4",children:c}),a&&a.length>0&&n.jsx("ul",{className:"space-y-2 mb-4",children:a.map((A,L)=>n.jsxs("li",{className:"flex items-start",children:[n.jsx("div",{className:y("w-2 h-2 rounded-full mt-2 mr-3 flex-shrink-0",`bg-${s}-500`)}),n.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:A})]},L))}),o&&Object.keys(o).length>0&&n.jsx("div",{className:"grid grid-cols-2 gap-4 mt-4",children:Object.entries(o).map(([A,L],I)=>n.jsxs("div",{className:"text-center p-3 bg-gray-50 dark:bg-gray-700/50 rounded-lg",children:[n.jsx("div",{className:y("text-lg font-bold",w),children:L}),n.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:A})]},I))})]})]}),N=y("p-6 rounded-xl shadow-lg hover:shadow-xl transition-all duration-200",p&&m[s],(g||d)&&"cursor-pointer hover:scale-[1.02]",i?"bg-gradient-to-br from-blue-50 to-indigo-50 dark:from-blue-900/20 dark:to-indigo-900/20 border-blue-200 dark:border-blue-800 border":"bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700 border",b),P=A=>{d&&("key"in A?(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),d()):d())};return l?n.jsx("a",{href:l,className:y(N,"block group"),onClick:d?A=>{A.preventDefault(),P(A)}:void 0,children:n.jsx(C,{})}):d?n.jsx("div",{className:N,onClick:P,onKeyDown:P,role:"button",tabIndex:0,"aria-label":t,children:n.jsx(C,{})}):n.jsx("div",{className:N,children:n.jsx(C,{})})},Cs=_.cva("grid gap-8",{variants:{columns:{1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"},spacing:{sm:"gap-4",md:"gap-8",lg:"gap-12"}},defaultVariants:{columns:3,spacing:"md"}}),Ss=_.cva("group transition-all duration-300",{variants:{variant:{default:"text-center",left:"text-left",hoverable:"text-center hover:transform hover:scale-105 cursor-pointer",card:"bg-white dark:bg-gray-800 rounded-2xl p-8 shadow-lg hover:shadow-xl text-center",minimal:"text-center space-y-4"},animation:{none:"",hover:"hover:transform hover:scale-105",float:"hover:-translate-y-2"}},defaultVariants:{variant:"default",animation:"hover"}}),Ns=_.cva("flex items-center justify-center rounded-2xl mb-6 transition-all duration-300",{variants:{size:{sm:"w-16 h-16",md:"w-20 h-20",lg:"w-24 h-24"},style:{gradient:"bg-gradient-to-br from-blue-100 to-blue-200 dark:from-blue-900/30 dark:to-blue-800/30 group-hover:from-blue-200 group-hover:to-blue-300 dark:group-hover:from-blue-800/40 dark:group-hover:to-blue-700/40",solid:"bg-blue-100 dark:bg-blue-900/30 group-hover:bg-blue-200 dark:group-hover:bg-blue-800/40",outline:"border-2 border-blue-200 dark:border-blue-800 group-hover:border-blue-300 dark:group-hover:border-blue-700",colorful:"group-hover:scale-110"},position:{center:"mx-auto",left:"",right:"ml-auto"}},defaultVariants:{size:"md",style:"gradient",position:"center"}}),Es={success:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300",info:"bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300",warning:"bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300",default:"bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300"},As=({className:e,features:t,columns:r=3,spacing:a="md",cardVariant:o="default",cardAnimation:s="hover",iconSize:i="md",iconStyle:l="gradient",iconPosition:c="center",titleClass:d,descriptionClass:g,animate:p=!0,animationDelay:b=0,staggerDelay:f=100,onFeatureClick:m,defaultLinkText:h="Learn more"})=>{const w=(C,N)=>{if(l==="colorful"&&C.gradient)return{background:`linear-gradient(135deg, ${C.gradient.from}, ${C.gradient.to})`};if(l==="colorful"){const P=[{from:"#3B82F6",to:"#1D4ED8"},{from:"#10B981",to:"#059669"},{from:"#8B5CF6",to:"#7C3AED"},{from:"#F59E0B",to:"#D97706"},{from:"#EF4444",to:"#DC2626"},{from:"#06B6D4",to:"#0891B2"}],A=P[N%P.length];return{background:`linear-gradient(135deg, ${A.from}, ${A.to})`}}},k=(C,N)=>{const P=n.jsxs("div",{className:y(Ss({variant:o,animation:s})),onClick:()=>m?.(C),role:m?"button":void 0,tabIndex:m?0:void 0,children:[C.badge&&n.jsx("div",{className:"mb-4",children:n.jsx("span",{className:y("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",Es[C.badge.variant||"default"]),children:C.badge.text})}),n.jsx("div",{className:y(Ns({size:i,style:l,position:c})),style:w(C,N),children:n.jsx("div",{className:y("flex items-center justify-center",l==="colorful"?"text-white":"text-blue-600 dark:text-blue-400"),children:C.icon})}),n.jsx("h3",{className:y("text-xl font-bold text-gray-900 dark:text-white mb-4",d),children:C.title}),n.jsx("div",{className:y("text-gray-600 dark:text-gray-300 leading-relaxed",g),children:C.description}),C.link&&n.jsx("div",{className:"mt-6",children:n.jsxs("a",{href:C.link.href,className:"inline-flex items-center text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 font-medium transition-colors duration-200",children:[C.link.text||h,n.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})})]});return p?n.jsx(ye,{animation:"fade-in-up",delay:b+N*f,children:P},C.id||N):n.jsx("div",{children:P},C.id||N)};return n.jsx("div",{className:y(Cs({columns:r,spacing:a}),e),children:t.map(k)})},Lt=(e,t,r,a)=>({icon:e,title:t,description:r,...a}),Ps=e=>[Lt(n.jsx("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})}),e?.passwordlessTitle||"Passwordless Security",e?.passwordlessDescription||"Authenticate using your Web3 wallet - no passwords to remember or lose."),Lt(n.jsx("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.40A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})}),e?.encryptionTitle||"End-to-End Encryption",e?.encryptionDescription||"Your emails are encrypted and only you can read them.")],Ts=({badgeIcon:e,badgeText:t,badgeColor:r="blue",title:a,subtitle:o,description:s,primaryButton:i,secondaryButton:l,className:c,children:d})=>{const p={blue:"bg-blue-100 dark:bg-blue-900/30 border-blue-300 dark:border-blue-700 text-blue-800 dark:text-blue-200",green:"bg-green-100 dark:bg-green-900/30 border-green-300 dark:border-green-700 text-green-800 dark:text-green-200",purple:"bg-purple-100 dark:bg-purple-900/30 border-purple-300 dark:border-purple-700 text-purple-800 dark:text-purple-200",orange:"bg-orange-100 dark:bg-orange-900/30 border-orange-300 dark:border-orange-700 text-orange-800 dark:text-orange-200",pink:"bg-pink-100 dark:bg-pink-900/30 border-pink-300 dark:border-pink-700 text-pink-800 dark:text-pink-200",gray:"bg-gray-100 dark:bg-gray-900/30 border-gray-300 dark:border-gray-700 text-gray-800 dark:text-gray-200"}[r];return n.jsx("section",{className:y("py-20",c),children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[n.jsxs("div",{className:y("inline-flex items-center border px-6 py-3 rounded-full mb-6",p),children:[e&&n.jsx("span",{className:"mr-3",children:e}),n.jsx("span",{className:"font-semibold",children:t})]}),n.jsxs("h1",{className:"text-4xl md:text-6xl font-bold text-gray-900 dark:text-gray-100 mb-6",children:[typeof a=="string"?n.jsx("span",{dangerouslySetInnerHTML:{__html:a}}):a,o&&n.jsx("span",{className:"text-blue-600 dark:text-blue-400 block",children:o})]}),n.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 mb-8 max-w-4xl mx-auto leading-relaxed",children:s}),(i||l)&&n.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-8",children:[i&&n.jsx(de,{size:"lg",...i,className:y("px-8 py-3",i.className),children:i.text}),l&&n.jsx(de,{variant:"outline",size:"lg",...l,className:y("px-8 py-3",l.className),children:l.text})]}),d]})})},zr=S.forwardRef(({className:e,type:t,...r},a)=>n.jsx("input",{type:t,className:y($.input.default(),e),ref:a,...r}));zr.displayName="Input";const Is=_.cva(`${T.label.default()} peer-disabled:cursor-not-allowed peer-disabled:opacity-70`),Ot=S.forwardRef(({className:e,...t},r)=>n.jsx(hr.Root,{ref:r,className:y(Is(),e),...t}));Ot.displayName=hr.Root.displayName;const $s=({title:e,description:t,metrics:r,columns:a=3,className:o})=>{const s={blue:"text-blue-600 dark:text-blue-400",green:"text-green-600 dark:text-green-400",purple:"text-purple-600 dark:text-purple-400",orange:"text-orange-600 dark:text-orange-400",pink:"text-pink-600 dark:text-pink-400",gray:"text-gray-600 dark:text-gray-400"},i={2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"};return n.jsx("section",{className:y("py-16",o),children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(e||t)&&n.jsxs("div",{className:"text-center mb-12",children:[e&&n.jsx("h2",{className:"text-3xl font-bold text-gray-900 dark:text-white mb-4",children:e}),t&&n.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto",children:t})]}),n.jsx("div",{className:y("grid gap-8",i[a]),children:r.map((l,c)=>{const d=l.color?s[l.color]:s.blue;return n.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl p-6 border border-gray-200 dark:border-gray-700 text-center hover:shadow-lg transition-shadow",children:[l.icon&&n.jsx("div",{className:y("flex justify-center mb-4",d),children:l.icon}),n.jsxs("div",{className:"space-y-2",children:[n.jsx("div",{className:y("text-3xl font-bold",d),children:l.value}),n.jsx("div",{className:"text-gray-600 dark:text-gray-400 font-medium",children:l.label}),l.trend&&n.jsxs("div",{className:y("text-sm font-semibold",l.trend.direction==="up"?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400"),children:[l.trend.direction==="up"?"↑":"↓"," ",l.trend.value]})]})]},c)})})]})})},Ls=({title:e,description:t,steps:r,orientation:a="vertical",color:o="blue",className:s})=>{const l={blue:{bg:"bg-blue-600",text:"text-blue-600 dark:text-blue-400",border:"border-blue-200 dark:border-blue-800"},green:{bg:"bg-green-600",text:"text-green-600 dark:text-green-400",border:"border-green-200 dark:border-green-800"},purple:{bg:"bg-purple-600",text:"text-purple-600 dark:text-purple-400",border:"border-purple-200 dark:border-purple-800"},orange:{bg:"bg-orange-600",text:"text-orange-600 dark:text-orange-400",border:"border-orange-200 dark:border-orange-800"},pink:{bg:"bg-pink-600",text:"text-pink-600 dark:text-pink-400",border:"border-pink-200 dark:border-pink-800"},gray:{bg:"bg-gray-600",text:"text-gray-600 dark:text-gray-400",border:"border-gray-200 dark:border-gray-800"}}[o];return n.jsx("section",{className:y("py-16",s),children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(e||t)&&n.jsxs("div",{className:"text-center mb-12",children:[e&&n.jsx("h2",{className:"text-3xl font-bold text-gray-900 dark:text-white mb-4",children:e}),t&&n.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto",children:t})]}),n.jsx("div",{className:y(a==="horizontal"?"flex flex-col lg:flex-row justify-center items-center lg:items-start space-y-8 lg:space-y-0 lg:space-x-8":"space-y-8 max-w-4xl mx-auto"),children:r.map((c,d)=>n.jsxs("div",{className:y("relative",a==="horizontal"?"flex-1 text-center lg:text-left":"flex items-start"),children:[n.jsx("div",{className:y("flex-shrink-0 flex items-center justify-center rounded-full text-white font-bold",l.bg,a==="horizontal"?"w-12 h-12 mx-auto lg:mx-0 mb-4":"w-10 h-10 mr-4 mt-1"),children:c.icon?c.icon:c.step}),d<r.length-1&&a==="vertical"&&n.jsx("div",{className:y("absolute left-5 top-12 w-px h-8 -ml-px",l.bg.replace("bg-","bg-").replace("-600","-200"),"dark:"+l.bg.replace("bg-","bg-").replace("-600","-800"))}),n.jsxs("div",{className:y(a==="horizontal"?"flex-1":"flex-1 min-w-0"),children:[n.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:c.title}),n.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-3",children:c.description}),c.details&&c.details.length>0&&n.jsx("ul",{className:"space-y-1",children:c.details.map((g,p)=>n.jsxs("li",{className:"flex items-start",children:[n.jsx("div",{className:y("w-1.5 h-1.5 rounded-full mt-2 mr-2 flex-shrink-0",l.bg)}),n.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:g})]},p))})]})]},d))})]})})},Os=({children:e,onRefresh:t,disabled:r=!1,refreshingText:a="Refreshing...",pullDownText:o="Pull down to refresh",releaseText:s="Release to refresh",threshold:i=80,maxPullDistance:l=120,className:c=""})=>{const[d,g]=x.useState(0),[p,b]=x.useState(!1),[f,m]=x.useState(!1),h=x.useRef(0),w=x.useRef(null);x.useEffect(()=>{const A=w.current;if(!A)return;const L=D=>{if(r||p)return;A.scrollTop<=0&&(h.current=D.touches[0].clientY,m(!0))},I=D=>{if(!f)return;const B=D.touches[0].clientY-h.current;if(B>0&&A.scrollTop<=0){const U=Math.min(B/l,1),W=Math.min(B*(1-U*.5),l);g(W),B>10&&D.preventDefault()}},z=async()=>{if(f)if(m(!1),d>=i&&!p){b(!0);try{await t()}catch{}finally{b(!1),g(0)}}else g(0)};return A.addEventListener("touchstart",L,{passive:!0}),A.addEventListener("touchmove",I,{passive:!1}),A.addEventListener("touchend",z),()=>{A.removeEventListener("touchstart",L),A.removeEventListener("touchmove",I),A.removeEventListener("touchend",z)}},[r,p,f,d,i,l,t]);const k=Math.min(d/i,1),C=f||p,N=f?d:p?i:0,P=()=>p?a:d>=i?s:o;return n.jsxs("div",{ref:w,className:`relative ${c}`,style:{height:"100%",overflowY:"auto",WebkitOverflowScrolling:"touch"},children:[n.jsx("div",{className:"sticky top-0 left-0 right-0 flex items-center justify-center bg-gradient-to-b from-blue-50/90 to-transparent dark:from-blue-900/20 dark:to-transparent backdrop-blur-sm z-10 transition-all duration-300 ease-out",style:{height:`${N}px`,marginTop:f?0:`-${N}px`,opacity:C?1:0,pointerEvents:"none"},children:n.jsxs("div",{className:"flex flex-col items-center justify-center gap-2",children:[n.jsx(E.ArrowPathIcon,{className:`w-6 h-6 text-blue-600 dark:text-blue-400 transition-transform duration-200 ${p?"animate-spin":""}`,style:{transform:`rotate(${k*360}deg)`}}),d>20&&n.jsx("span",{className:"text-xs font-medium text-blue-600 dark:text-blue-400",children:P()})]})}),n.jsx("div",{style:{paddingTop:f?`${d}px`:0,transition:f?"none":"padding-top 200ms ease-out"},children:e})]})},Mt=H.Root,Ms=H.Group,Dr=H.Value,et=S.forwardRef(({className:e,children:t,...r},a)=>n.jsxs(H.Trigger,{ref:a,className:y("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),...r,children:[t,n.jsx(H.Icon,{asChild:!0,children:n.jsx(Xe.ChevronDown,{className:"h-4 w-4 opacity-50 ml-2 flex-shrink-0"})})]}));et.displayName=H.Trigger.displayName;const zt=S.forwardRef(({className:e,...t},r)=>n.jsx(H.ScrollUpButton,{ref:r,className:y("flex cursor-default items-center justify-center py-1",e),...t,children:n.jsx(Xe.ChevronUp,{className:"h-4 w-4"})}));zt.displayName=H.ScrollUpButton.displayName;const Dt=S.forwardRef(({className:e,...t},r)=>n.jsx(H.ScrollDownButton,{ref:r,className:y("flex cursor-default items-center justify-center py-1",e),...t,children:n.jsx(Xe.ChevronDown,{className:"h-4 w-4"})}));Dt.displayName=H.ScrollDownButton.displayName;const tt=S.forwardRef(({className:e,children:t,position:r="popper",...a},o)=>n.jsx(H.Portal,{children:n.jsxs(H.Content,{ref:o,className:y($.overlays.dropdown.menu(),"z-[1000000] max-h-96 min-w-[8rem] 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",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...a,children:[n.jsx(zt,{}),n.jsx(H.Viewport,{className:y($.overlays.dropdown.itemContainer(),r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),n.jsx(Dt,{})]})}));tt.displayName=H.Content.displayName;const Br=S.forwardRef(({className:e,...t},r)=>n.jsx(H.Label,{ref:r,className:y($.overlays.dropdown.header(),"py-1.5",e),...t}));Br.displayName=H.Label.displayName;const rt=S.forwardRef(({className:e,children:t,...r},a)=>n.jsxs(H.Item,{ref:a,className:y($.overlays.dropdown.item(),"relative select-none justify-between pr-8 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[n.jsx(H.ItemText,{children:t}),n.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:n.jsx(H.ItemIndicator,{children:n.jsx(Xe.Check,{className:"h-4 w-4"})})})]}));rt.displayName=H.Item.displayName;const Wr=S.forwardRef(({className:e,...t},r)=>n.jsx(H.Separator,{ref:r,className:y("my-1 h-px bg-gray-200 dark:bg-gray-700",e),...t}));Wr.displayName=H.Separator.displayName;const at=({size:e="default",variant:t="default",className:r,ariaLabel:a="Loading",loadingText:o="Loading..."})=>{const s=()=>{const i={small:"w-4 h-4",default:"w-6 h-6",large:"w-8 h-8",extraLarge:"w-16 h-16 border-4"},l={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 ${i[e]} ${l[t]}`};return n.jsx("div",{className:y(s(),r),role:"status","aria-label":a,children:n.jsx("span",{className:"sr-only",children:o})})},jr=S.forwardRef(({className:e,...t},r)=>n.jsx(Nt.Root,{className:y("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),...t,ref:r,children:n.jsx(Nt.Thumb,{className:y("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")})}));jr.displayName=Nt.Root.displayName;const zs=({title:e,onAdd:t,addButtonTooltip:r,loading:a,className:o=""})=>n.jsx("div",{className:`p-4 border-b border-gray-200 dark:border-gray-700 ${o}`,children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:e}),n.jsxs("div",{className:"flex items-center space-x-2",children:[a&&n.jsx("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),t&&n.jsx("button",{onClick:t,className:"p-1 rounded hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors",title:r,"aria-label":r||"Add",children:n.jsx("svg",{className:"w-5 h-5 text-gray-600 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})})})]})]})}),Ds=({subsections:e,isExpanded:t,selectedSubsection:r,parentSectionId:a,onSubsectionSelect:o})=>{const s=x.useRef(null),[i,l]=x.useState(void 0);return x.useEffect(()=>{if(s.current){const c=s.current.scrollHeight;l(t?c+8:0)}},[t,e]),n.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{height:i!==void 0?`${i}px`:"auto"},children:n.jsx("div",{ref:s,className:"ml-6 mt-2 space-y-1",children:e.map(c=>n.jsx("button",{onClick:()=>o?.(c.id,a),className:`block w-full text-left px-3 py-2 rounded-md text-sm transition-all duration-200 hover:scale-[1.02] ${r===c.id?"bg-blue-100 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300 shadow-sm":"text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-gray-800 dark:hover:text-gray-200"}`,children:c.title},c.id))})})},Bs=({sections:e,selectedSection:t,selectedSubsection:r,expandedSections:a,onSectionSelect:o,onSubsectionSelect:s,onToggleSection:i,className:l=""})=>n.jsx("nav",{className:`space-y-2 ${l}`,children:e.map(c=>n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx("button",{onClick:()=>o(c.id),className:`flex-1 text-left px-3 py-2 rounded-md text-sm font-medium transition-all duration-200 hover:scale-[1.02] ${t===c.id&&!r?"bg-blue-100 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300 shadow-sm":"text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 hover:text-gray-900 dark:hover:text-gray-100"}`,children:c.title}),c.subsections&&c.subsections.length>0&&n.jsx("button",{onClick:()=>i(c.id),className:"p-1 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800 hover:scale-110 transition-all duration-200",children:n.jsx(E.ChevronRightIcon,{className:`h-4 w-4 text-gray-500 transition-transform duration-300 ease-in-out ${a.includes(c.id)?"rotate-90":"rotate-0"}`})})]}),c.subsections&&n.jsx(Ds,{subsections:c.subsections,isExpanded:a.includes(c.id),selectedSubsection:r,parentSectionId:c.id,onSubsectionSelect:s})]},c.id))}),Ws=e=>{switch(e){case"verified":case"success":return Ne("success");case"connected":case"warning":return Ne("warning");case"disconnected":case"error":return Ne("error");case"pending":return Ne("info");default:return Ne("neutral")}},js=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"}},Fs=({status:e,label:t,showDot:r=!0,size:a="md"})=>{const s=t||{verified:"Verified",connected:"Connected",disconnected:"Disconnected",pending:"Pending",error:"Error",success:"Success",warning:"Warning"}[e],l=((g,p)=>{const b={sm:"small",md:"default",lg:"large"},m={verified:"success",success:"success",connected:"warning",warning:"warning",disconnected:"error",error:"error",pending:"primary"}[g]||"default",h=b[p];return h==="default"?$.badge[m]():$.badge[h](m)})(e,a),c=Ws(e),d=js(a);return n.jsxs("span",{className:l,children:[r&&n.jsx("span",{className:`inline-block ${d} rounded-full ${c} mr-1`}),s]})},Fr=({chainType:e,size:t="md"})=>{if(e==="unknown")return null;const r=e==="solana"?"SOL":"ETH",o={sm:"small",md:"default",lg:"large"}[t],s=()=>{const i=e==="solana"?"solana":"ethereum";return o==="default"?$.badge[i]():$.badge[o](i)};return n.jsx("span",{className:s(),children:r})},_s=e=>e?e.length<=10?e:`${e.slice(0,6)}...${e.slice(-4)}`:"",_r=({type:e,addressType:t})=>{if(e==="primary")return n.jsx(Fr,{chainType:t==="solana"?"solana":"evm",size:"sm"});const r=()=>e.toUpperCase(),a=()=>{switch(e){case"ens":return"bg-green-50 text-green-700 border-green-200 dark:bg-green-900/10 dark:text-green-300 dark:border-green-800";case"sns":return"bg-orange-50 text-orange-700 border-orange-200 dark:bg-orange-900/10 dark:text-orange-300 dark:border-orange-800";default:return"bg-gray-50 text-gray-700 border-gray-200 dark:bg-gray-900/10 dark:text-gray-300 dark:border-gray-800"}};return n.jsx("span",{className:y("inline-flex items-center px-2.5 py-0.5 rounded-md text-xs font-medium border",a()),children:r()})},Hs=({domainEmails:e,isExpanded:t,selectedAccount:r,onAccountSelect:a,onAccountSettings:o})=>{const s=x.useRef(null),[i,l]=x.useState(void 0);return x.useEffect(()=>{if(s.current){const c=s.current.scrollHeight;l(t?c+8:0)}},[t,e]),n.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{height:i!==void 0?`${i}px`:"auto"},children:n.jsx("div",{ref:s,className:"ml-6 mt-2 space-y-1",children:e.map(c=>n.jsxs("button",{onClick:()=>a(c.address),className:y("w-full flex items-center justify-between text-left px-3 py-2 rounded-lg transition-colors h-[44px]",T.body.sm(),r===c.address?"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300":"hover:bg-gray-100 dark:hover:bg-gray-700"),children:[n.jsx("span",{className:"truncate flex-1",children:c.name}),n.jsx(_r,{type:c.type,addressType:c.addressType})]},c.address))})})},Us=({walletGroups:e,selectedAccount:t,expandedWallets:r,onAccountSelect:a,onToggleWallet:o,onAccountSettings:s,className:i=""})=>n.jsx("nav",{className:y("space-y-1",i),children:e.map(l=>n.jsxs("div",{children:[n.jsxs("button",{onClick:()=>a(l.primaryEmail.address),className:y("w-full flex items-center justify-between text-left px-3 py-2 rounded-lg transition-colors h-[44px]",T.body.sm(),t===l.primaryEmail.address&&l.domainEmails.length===0?"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300":"hover:bg-gray-100 dark:hover:bg-gray-700"),style:l.customColor?{backgroundColor:l.customColor}:void 0,children:[n.jsxs("div",{className:"flex items-center flex-1 min-w-0",children:[n.jsx("span",{className:"truncate flex-1",children:_s(l.walletAddress)}),n.jsx(_r,{type:l.primaryEmail.type,addressType:l.addressType})]}),l.domainEmails.length>0&&n.jsx("div",{onClick:c=>{c.stopPropagation(),o(l.walletAddress)},className:"p-1 rounded-lg hover:bg-gray-200 dark:hover:bg-gray-600 transition-colors cursor-pointer",role:"button",tabIndex:0,onKeyDown:c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),c.stopPropagation(),o(l.walletAddress))},children:n.jsx(E.ChevronRightIcon,{className:y("h-4 w-4 text-gray-500 transition-transform duration-300 ease-in-out",r.includes(l.walletAddress)?"rotate-90":"rotate-0")})})]}),l.domainEmails.length>0&&n.jsx(Hs,{domainEmails:l.domainEmails,isExpanded:r.includes(l.walletAddress),selectedAccount:t,onAccountSelect:a,onAccountSettings:s})]},l.walletAddress))}),Vs=e=>{switch(e){case"cog":return E.Cog6ToothIcon;case"arrow-right":return E.ArrowRightIcon;case"shield":return E.ShieldCheckIcon;case"reply":case"chat":return E.ChatBubbleLeftRightIcon;case"filter":return E.FunnelIcon;case"plug":return E.LinkIcon;case"adjustments":return E.AdjustmentsHorizontalIcon;case"currency-dollar":return E.CurrencyDollarIcon;default:return E.Cog6ToothIcon}},qs=({settings:e,selectedSetting:t,onSettingSelect:r,className:a=""})=>n.jsx("nav",{className:y("space-y-1",a),"aria-label":"Settings navigation",children:n.jsx("ul",{className:"space-y-1",role:"list",children:e.map(o=>{const s=Vs(o.icon),i=t===o.id;return n.jsx("li",{children:n.jsx("button",{onClick:()=>r(o.id),className:y("w-full flex items-center text-left px-3 py-2 rounded-lg transition-colors h-[44px]",T.body.sm(),i?"bg-orange-100 dark:bg-orange-900/30 text-orange-700 dark:text-orange-300":"hover:bg-gray-100 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300"),"aria-current":i?"page":void 0,title:o.description,children:n.jsxs("div",{className:"flex items-center flex-1 min-w-0",children:[n.jsx(s,{className:"h-5 w-5 mr-3 flex-shrink-0","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:o.title})]})})},o.id)})})}),Gs=me.Root,Hr=S.forwardRef(({className:e,...t},r)=>n.jsx(me.List,{ref:r,className:y($.navigation.tabs.list(),e),...t}));Hr.displayName=me.List.displayName;const Ur=S.forwardRef(({className:e,...t},r)=>n.jsx(me.Trigger,{ref:r,className:y($.navigation.tabs.trigger(),e),...t}));Ur.displayName=me.Trigger.displayName;const Vr=S.forwardRef(({className:e,...t},r)=>n.jsx(me.Content,{ref:r,className:y($.navigation.tabs.content(),e),...t}));Vr.displayName=me.Content.displayName;const Ks=({title:e,description:t,useCases:r,columns:a=3,className:o})=>{const s={blue:"text-blue-600 dark:text-blue-400",green:"text-green-600 dark:text-green-400",purple:"text-purple-600 dark:text-purple-400",orange:"text-orange-600 dark:text-orange-400",pink:"text-pink-600 dark:text-pink-400",gray:"text-gray-600 dark:text-gray-400"},i={2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"};return n.jsx("section",{className:y(Vo.section.gradient,o),children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(e||t)&&n.jsxs("div",{className:"text-center mb-12",children:[e&&n.jsx("h2",{className:"text-3xl font-bold text-gray-900 dark:text-white mb-4",children:e}),t&&n.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto",children:t})]}),n.jsx("div",{className:y("grid gap-8",i[a]),children:r.map((l,c)=>{const d=l.color?s[l.color]:s.blue;return n.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl p-6 border border-gray-200 dark:border-gray-700 hover:shadow-lg transition-shadow",children:[n.jsx("div",{className:y("flex-shrink-0 mb-4",d),children:l.icon}),n.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-3",children:l.title}),n.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-4",children:l.description}),l.examples&&l.examples.length>0&&n.jsxs("div",{children:[n.jsx("h4",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2",children:"Examples:"}),n.jsx("ul",{className:"space-y-1",children:l.examples.map((g,p)=>n.jsxs("li",{className:"flex items-start",children:[n.jsx("div",{className:y("w-1.5 h-1.5 rounded-full mt-2 mr-2 flex-shrink-0",l.color?`bg-${l.color}-500`:"bg-blue-500")}),n.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:g})]},p))})]})]},c)})})]})})},Ys={row:"flex-row","row-reverse":"flex-row-reverse",col:"flex-col","col-reverse":"flex-col-reverse"},Qs={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},Xs={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},Zs={wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse",nowrap:"flex-nowrap"},Js={0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},Rs=({children:e,direction:t="row",align:r="start",justify:a="start",wrap:o="nowrap",gap:s="0",className:i})=>n.jsx("div",{className:y("flex",Ys[t],Qs[r],Xs[a],Zs[o],Js[s],i),children:e}),ei=_.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"}}),ti=({children:e,background:t="default",overflow:r="visible",className:a})=>n.jsx("div",{className:y(ei({background:t,overflow:r}),a),children:e}),ri=_.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-600 to-purple-600 dark:from-blue-700 dark:to-purple-700"}},defaultVariants:{variant:"default",spacing:"3xl",background:"none"}}),ai=({children:e,variant:t="default",spacing:r="3xl",background:a="none",className:o,as:s="section",id:i})=>x.createElement(s,{id:i,className:y(ri({variant:t,spacing:r,background:a}),o)},e),qr=({icon:e,title:t="No data",description:r,action:a,className:o})=>n.jsxs("div",{className:y("flex flex-col items-center justify-center py-12 px-4 text-center",o),children:[e&&n.jsx("div",{className:"mb-4 text-gray-400 dark:text-gray-600",children:e}),n.jsx("h3",{className:y(T.heading.h3(),"mb-2"),children:t}),r&&n.jsx("p",{className:y(T.body.sm(),"text-gray-600 dark:text-gray-400 max-w-sm mb-6"),children:r}),a&&n.jsx("div",{className:"mt-4",children:a})]}),ni=({message:e="Loading...",size:t="default",fullScreen:r=!1,variant:a="default",className:o})=>{const i={small:{spinner:"small",text:"text-sm"},default:{spinner:"default",text:"text-base"},large:{spinner:"large",text:"text-lg"}}[t],l=r?"fixed inset-0 z-50 flex items-center justify-center bg-white/80 dark:bg-gray-900/80":"flex flex-col items-center justify-center p-8",c=n.jsxs("div",{className:y(l,o),children:[n.jsx(at,{size:i.spinner,variant:a,className:"mb-4"}),e&&n.jsx("p",{className:y(i.text,"text-gray-600 dark:text-gray-400 text-center max-w-sm"),children:e})]});return r?n.jsx("div",{className:"fixed inset-0 z-50 bg-white/80 dark:bg-gray-900/80 backdrop-blur-sm",children:n.jsxs("div",{className:"flex items-center justify-center min-h-full p-4",children:[n.jsx(at,{size:i.spinner,variant:a,className:"mb-4"}),e&&n.jsx("p",{className:"text-center text-gray-600 dark:text-gray-400 max-w-sm",children:e})]})}):c},oi=({title:e,subtext:t,className:r})=>n.jsx(qr,{title:e,description:t,className:r}),Bt=({label:e,value:t,onChange:r,placeholder:a,required:o=!1,error:s,className:i=""})=>n.jsxs("div",{className:i,children:[n.jsxs(Ot,{htmlFor:e.toLowerCase(),className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:[e," ",o&&n.jsx("span",{className:"text-red-500",children:"*"})]}),n.jsx("input",{id:e.toLowerCase(),type:"email",value:t,onChange:l=>r(l.target.value),placeholder:a,className:`
|
|
37
37
|
mt-1 block w-full px-3 py-2 border rounded-md shadow-sm
|
|
38
38
|
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500
|
|
39
39
|
dark:bg-gray-800 dark:border-gray-600 dark:text-white
|
|
40
40
|
${s?"border-red-300 focus:ring-red-500 focus:border-red-500":"border-gray-300 dark:border-gray-600"}
|
|
41
|
-
`}),s&&n.jsx("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400",children:s})]}),
|
|
41
|
+
`}),s&&n.jsx("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400",children:s})]}),Wt=({isVisible:e,onToggle:t,showLabel:r,hideLabel:a,...o})=>{const s=e?a:r;return n.jsxs("div",{children:[n.jsxs("button",{type:"button",onClick:t,className:"flex items-center text-sm text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 mb-2",children:[e?n.jsx(E.ChevronUpIcon,{className:"h-4 w-4 mr-1"}):n.jsx(E.ChevronDownIcon,{className:"h-4 w-4 mr-1"}),s]}),e&&n.jsx(Bt,{...o})]})},si=({to:e,onToChange:t,cc:r="",onCcChange:a,bcc:o="",onBccChange:s,showCc:i=!1,showBcc:l=!1,onToggleCc:c,onToggleBcc:d,errors:g={},className:p="",labels:b={},placeholders:f={}})=>{const m={to:"To",cc:"CC",bcc:"BCC",addCc:"Add CC",removeCc:"Remove CC",addBcc:"Add BCC",removeBcc:"Remove BCC"},h={to:"recipient@example.com",cc:"cc@example.com",bcc:"bcc@example.com"},w={...m,...b},k={...h,...f};return n.jsxs("div",{className:`space-y-4 ${p}`,children:[n.jsx(Bt,{label:w.to,value:e,onChange:t,placeholder:k.to,required:!0,error:g.to}),c&&a&&n.jsx(Wt,{label:w.cc,value:r,onChange:a,placeholder:k.cc,error:g.cc,isVisible:i,onToggle:c,showLabel:w.addCc,hideLabel:w.removeCc}),d&&s&&n.jsx(Wt,{label:w.bcc,value:o,onChange:s,placeholder:k.bcc,error:g.bcc,isVisible:l,onToggle:d,showLabel:w.addBcc,hideLabel:w.removeBcc})]})},nt=({label:e,required:t=!1,error:r,helpText:a,children:o,layout:s="vertical",className:i="",labelClassName:l="",contentClassName:c=""})=>{const d=s==="horizontal";return n.jsxs("div",{className:`${d?"grid grid-cols-1 md:grid-cols-3 gap-4 items-start":"space-y-2"} ${i}`,children:[n.jsxs("div",{className:d?"md:col-span-1":"",children:[n.jsxs("label",{className:`block text-sm font-medium text-gray-700 dark:text-gray-300 ${l}`,children:[e,t&&n.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),a&&!r&&n.jsxs("div",{className:"mt-1 flex items-start",children:[n.jsx(E.InformationCircleIcon,{className:"h-4 w-4 text-gray-400 mr-1 mt-0.5 flex-shrink-0"}),n.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:a})]})]}),n.jsxs("div",{className:`${d?"md:col-span-2":""} ${c}`,children:[n.jsx("div",{className:r?"relative":"",children:o}),r&&n.jsxs("div",{className:"mt-1 flex items-start",children:[n.jsx(E.ExclamationCircleIcon,{className:"h-4 w-4 text-red-500 mr-1 mt-0.5 flex-shrink-0"}),n.jsx("p",{className:"text-xs text-red-600 dark:text-red-400",children:r})]})]})]})},ii=({label:e,value:t,onChange:r,placeholder:a,required:o=!1,error:s,helpText:i,type:l="text",layout:c="vertical",className:d=""})=>n.jsx(nt,{label:e,required:o,error:s,helpText:i,layout:c,className:d,children:n.jsx("input",{type:l,value:t,onChange:g=>r(g.target.value),placeholder:a,className:`
|
|
42
42
|
block w-full px-3 py-2 border rounded-md shadow-sm
|
|
43
43
|
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500
|
|
44
44
|
dark:bg-gray-800 dark:border-gray-600 dark:text-white
|
|
45
45
|
transition-colors duration-200
|
|
46
46
|
${s?"border-red-300 focus:ring-red-500 focus:border-red-500":"border-gray-300 dark:border-gray-600"}
|
|
47
|
-
`})}),
|
|
47
|
+
`})}),li=({label:e,value:t,onChange:r,placeholder:a,required:o=!1,error:s,helpText:i,rows:l=4,layout:c="vertical",className:d=""})=>n.jsx(nt,{label:e,required:o,error:s,helpText:i,layout:c,className:d,children:n.jsx("textarea",{value:t,onChange:g=>r(g.target.value),placeholder:a,rows:l,className:`
|
|
48
48
|
block w-full px-3 py-2 border rounded-md shadow-sm
|
|
49
49
|
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500
|
|
50
50
|
dark:bg-gray-800 dark:border-gray-600 dark:text-white
|
|
51
51
|
transition-colors duration-200 resize-vertical
|
|
52
52
|
${s?"border-red-300 focus:ring-red-500 focus:border-red-500":"border-gray-300 dark:border-gray-600"}
|
|
53
|
-
`})}),
|
|
53
|
+
`})}),ci=({label:e,value:t,onChange:r,options:a,required:o=!1,error:s,helpText:i,placeholder:l="Select an option",layout:c="vertical",className:d=""})=>n.jsx(nt,{label:e,required:o,error:s,helpText:i,layout:c,className:d,children:n.jsxs("select",{value:t,onChange:g=>r(g.target.value),className:`
|
|
54
54
|
block w-full px-3 py-2 border rounded-md shadow-sm
|
|
55
55
|
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500
|
|
56
56
|
dark:bg-gray-800 dark:border-gray-600 dark:text-white
|
|
57
57
|
transition-colors duration-200
|
|
58
58
|
${s?"border-red-300 focus:ring-red-500 focus:border-red-500":"border-gray-300 dark:border-gray-600"}
|
|
59
|
-
`,children:[l&&n.jsx("option",{value:"",disabled:!0,children:l}),a.map(g=>n.jsx("option",{value:g.value,disabled:g.disabled,children:g.label},g.value))]})}),li={xs:"w-1.5 h-1.5",sm:"w-2 h-2",md:"w-3 h-3",lg:"w-4 h-4"},ci=({status:e,size:t="sm",pulse:r=!1,className:a})=>n.jsx("div",{className:b("rounded-full flex-shrink-0",Se(e),li[t],r&&"animate-pulse",a)});function oe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function qr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function di(...e){return t=>{let r=!1;const a=e.map(o=>{const s=qr(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<a.length;o++){const s=a[o];typeof s=="function"?s():qr(e[o],null)}}}}function xe(...e){return S.useCallback(di(...e),e)}function Ur(e,t=[]){let r=[];function a(s,i){const l=S.createContext(i),c=r.length;r=[...r,i];const d=m=>{const{scope:f,children:p,...h}=m,y=f?.[e]?.[c]||l,k=S.useMemo(()=>h,Object.values(h));return n.jsx(y.Provider,{value:k,children:p})};d.displayName=s+"Provider";function g(m,f){const p=f?.[e]?.[c]||l,h=S.useContext(p);if(h)return h;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[d,g]}const o=()=>{const s=r.map(i=>S.createContext(i));return function(l){const c=l?.[e]||s;return S.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[a,ui(o,...t)]}function ui(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const a=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=a.reduce((l,{useScope:c,scopeName:d})=>{const m=c(s)[`__scope${d}`];return{...l,...m}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var gi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ue=gi.reduce((e,t)=>{const r=Ct.createSlot(`Primitive.${t}`),a=S.forwardRef((o,s)=>{const{asChild:i,...l}=o,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(c,{...l,ref:s})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function mi(e,t){e&&hr.flushSync(()=>e.dispatchEvent(t))}function nt(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...r)=>t.current?.(...r),[])}function pi(e,t=globalThis?.document){const r=nt(e);S.useEffect(()=>{const a=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[r,t])}var fi="DismissableLayer",Wt="dismissableLayer.update",hi="dismissableLayer.pointerDownOutside",bi="dismissableLayer.focusOutside",Gr,Kr=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yr=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...c}=e,d=S.useContext(Kr),[g,m]=S.useState(null),f=g?.ownerDocument??globalThis?.document,[,p]=S.useState({}),h=xe(t,I=>m(I)),y=Array.from(d.layers),[k]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=y.indexOf(k),C=g?y.indexOf(g):-1,N=d.layersWithOutsidePointerEventsDisabled.size>0,P=C>=w,A=vi(I=>{const z=I.target,D=[...d.branches].some(M=>M.contains(z));!P||D||(o?.(I),i?.(I),I.defaultPrevented||l?.())},f),$=wi(I=>{const z=I.target;[...d.branches].some(M=>M.contains(z))||(s?.(I),i?.(I),I.defaultPrevented||l?.())},f);return pi(I=>{C===d.layers.size-1&&(a?.(I),!I.defaultPrevented&&l&&(I.preventDefault(),l()))},f),S.useEffect(()=>{if(g)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Gr=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(g)),d.layers.add(g),Qr(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Gr)}},[g,f,r,d]),S.useEffect(()=>()=>{g&&(d.layers.delete(g),d.layersWithOutsidePointerEventsDisabled.delete(g),Qr())},[g,d]),S.useEffect(()=>{const I=()=>p({});return document.addEventListener(Wt,I),()=>document.removeEventListener(Wt,I)},[]),n.jsx(ue.div,{...c,ref:h,style:{pointerEvents:N?P?"auto":"none":void 0,...e.style},onFocusCapture:oe(e.onFocusCapture,$.onFocusCapture),onBlurCapture:oe(e.onBlurCapture,$.onBlurCapture),onPointerDownCapture:oe(e.onPointerDownCapture,A.onPointerDownCapture)})});Yr.displayName=fi;var yi="DismissableLayerBranch",xi=S.forwardRef((e,t)=>{const r=S.useContext(Kr),a=S.useRef(null),o=xe(t,a);return S.useEffect(()=>{const s=a.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),n.jsx(ue.div,{...e,ref:o})});xi.displayName=yi;function vi(e,t=globalThis?.document){const r=nt(e),a=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const s=l=>{if(l.target&&!a.current){let c=function(){Xr(hi,r,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);a.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>a.current=!0}}function wi(e,t=globalThis?.document){const r=nt(e),a=S.useRef(!1);return S.useEffect(()=>{const o=s=>{s.target&&!a.current&&Xr(bi,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function Qr(){const e=new CustomEvent(Wt);document.dispatchEvent(e)}function Xr(e,t,r,{discrete:a}){const o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),a?mi(o,s):o.dispatchEvent(s)}var ge=globalThis?.document?S.useLayoutEffect:()=>{},ki=S[" useId ".trim().toString()]||(()=>{}),Ci=0;function Si(e){const[t,r]=S.useState(ki());return ge(()=>{r(a=>a??String(Ci++))},[e]),t?`radix-${t}`:""}const Ni=["top","right","bottom","left"],me=Math.min,K=Math.max,ot=Math.round,st=Math.floor,R=e=>({x:e,y:e}),Ei={left:"right",right:"left",bottom:"top",top:"bottom"},Ai={start:"end",end:"start"};function jt(e,t,r){return K(e,me(t,r))}function se(e,t){return typeof e=="function"?e(t):e}function ie(e){return e.split("-")[0]}function Ne(e){return e.split("-")[1]}function Ft(e){return e==="x"?"y":"x"}function _t(e){return e==="y"?"height":"width"}const Pi=new Set(["top","bottom"]);function ee(e){return Pi.has(ie(e))?"y":"x"}function Ht(e){return Ft(ee(e))}function Ti(e,t,r){r===void 0&&(r=!1);const a=Ne(e),o=Ht(e),s=_t(o);let i=o==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=it(i)),[i,it(i)]}function Ii(e){const t=it(e);return[Vt(e),t,Vt(t)]}function Vt(e){return e.replace(/start|end/g,t=>Ai[t])}const Zr=["left","right"],Jr=["right","left"],Li=["top","bottom"],$i=["bottom","top"];function Oi(e,t,r){switch(e){case"top":case"bottom":return r?t?Jr:Zr:t?Zr:Jr;case"left":case"right":return t?Li:$i;default:return[]}}function Mi(e,t,r,a){const o=Ne(e);let s=Oi(ie(e),r==="start",a);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Vt)))),s}function it(e){return e.replace(/left|right|bottom|top/g,t=>Ei[t])}function zi(e){return{top:0,right:0,bottom:0,left:0,...e}}function Rr(e){return typeof e!="number"?zi(e):{top:e,right:e,bottom:e,left:e}}function lt(e){const{x:t,y:r,width:a,height:o}=e;return{width:a,height:o,top:r,left:t,right:t+a,bottom:r+o,x:t,y:r}}function ea(e,t,r){let{reference:a,floating:o}=e;const s=ee(t),i=Ht(t),l=_t(i),c=ie(t),d=s==="y",g=a.x+a.width/2-o.width/2,m=a.y+a.height/2-o.height/2,f=a[l]/2-o[l]/2;let p;switch(c){case"top":p={x:g,y:a.y-o.height};break;case"bottom":p={x:g,y:a.y+a.height};break;case"right":p={x:a.x+a.width,y:m};break;case"left":p={x:a.x-o.width,y:m};break;default:p={x:a.x,y:a.y}}switch(Ne(t)){case"start":p[i]-=f*(r&&d?-1:1);break;case"end":p[i]+=f*(r&&d?-1:1);break}return p}const Di=async(e,t,r)=>{const{placement:a="bottom",strategy:o="absolute",middleware:s=[],platform:i}=r,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:g,y:m}=ea(d,a,c),f=a,p={},h=0;for(let y=0;y<l.length;y++){const{name:k,fn:w}=l[y],{x:C,y:N,data:P,reset:A}=await w({x:g,y:m,initialPlacement:a,placement:f,strategy:o,middlewareData:p,rects:d,platform:i,elements:{reference:e,floating:t}});g=C??g,m=N??m,p={...p,[k]:{...p[k],...P}},A&&h<=50&&(h++,typeof A=="object"&&(A.placement&&(f=A.placement),A.rects&&(d=A.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:g,y:m}=ea(d,f,c)),y=-1)}return{x:g,y:m,placement:f,strategy:o,middlewareData:p}};async function Me(e,t){var r;t===void 0&&(t={});const{x:a,y:o,platform:s,rects:i,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:f=!1,padding:p=0}=se(t,e),h=Rr(p),k=l[f?m==="floating"?"reference":"floating":m],w=lt(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(k)))==null||r?k:k.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:d,rootBoundary:g,strategy:c})),C=m==="floating"?{x:a,y:o,width:i.floating.width,height:i.floating.height}:i.reference,N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),P=await(s.isElement==null?void 0:s.isElement(N))?await(s.getScale==null?void 0:s.getScale(N))||{x:1,y:1}:{x:1,y:1},A=lt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:N,strategy:c}):C);return{top:(w.top-A.top+h.top)/P.y,bottom:(A.bottom-w.bottom+h.bottom)/P.y,left:(w.left-A.left+h.left)/P.x,right:(A.right-w.right+h.right)/P.x}}const Bi=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:a,placement:o,rects:s,platform:i,elements:l,middlewareData:c}=t,{element:d,padding:g=0}=se(e,t)||{};if(d==null)return{};const m=Rr(g),f={x:r,y:a},p=Ht(o),h=_t(p),y=await i.getDimensions(d),k=p==="y",w=k?"top":"left",C=k?"bottom":"right",N=k?"clientHeight":"clientWidth",P=s.reference[h]+s.reference[p]-f[p]-s.floating[h],A=f[p]-s.reference[p],$=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let I=$?$[N]:0;(!I||!await(i.isElement==null?void 0:i.isElement($)))&&(I=l.floating[N]||s.floating[h]);const z=P/2-A/2,D=I/2-y[h]/2-1,M=me(m[w],D),B=me(m[C],D),V=M,W=I-y[h]-B,j=I/2-y[h]/2+z,q=jt(V,j,W),F=!c.arrow&&Ne(o)!=null&&j!==q&&s.reference[h]/2-(j<V?M:B)-y[h]/2<0,U=F?j<V?j-V:j-W:0;return{[p]:f[p]+U,data:{[p]:q,centerOffset:j-q-U,...F&&{alignmentOffset:U}},reset:F}}}),Wi=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,a;const{placement:o,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:g=!0,crossAxis:m=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:y=!0,...k}=se(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const w=ie(o),C=ee(l),N=ie(l)===l,P=await(c.isRTL==null?void 0:c.isRTL(d.floating)),A=f||(N||!y?[it(l)]:Ii(l)),$=h!=="none";!f&&$&&A.push(...Mi(l,y,h,P));const I=[l,...A],z=await Me(t,k),D=[];let M=((a=s.flip)==null?void 0:a.overflows)||[];if(g&&D.push(z[w]),m){const j=Ti(o,i,P);D.push(z[j[0]],z[j[1]])}if(M=[...M,{placement:o,overflows:D}],!D.every(j=>j<=0)){var B,V;const j=(((B=s.flip)==null?void 0:B.index)||0)+1,q=I[j];if(q&&(!(m==="alignment"?C!==ee(q):!1)||M.every(O=>ee(O.placement)===C?O.overflows[0]>0:!0)))return{data:{index:j,overflows:M},reset:{placement:q}};let F=(V=M.filter(U=>U.overflows[0]<=0).sort((U,O)=>U.overflows[1]-O.overflows[1])[0])==null?void 0:V.placement;if(!F)switch(p){case"bestFit":{var W;const U=(W=M.filter(O=>{if($){const G=ee(O.placement);return G===C||G==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(G=>G>0).reduce((G,ne)=>G+ne,0)]).sort((O,G)=>O[1]-G[1])[0])==null?void 0:W[0];U&&(F=U);break}case"initialPlacement":F=l;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function ta(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ra(e){return Ni.some(t=>e[t]>=0)}const ji=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:a="referenceHidden",...o}=se(e,t);switch(a){case"referenceHidden":{const s=await Me(t,{...o,elementContext:"reference"}),i=ta(s,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:ra(i)}}}case"escaped":{const s=await Me(t,{...o,altBoundary:!0}),i=ta(s,r.floating);return{data:{escapedOffsets:i,escaped:ra(i)}}}default:return{}}}}},aa=new Set(["left","top"]);async function Fi(e,t){const{placement:r,platform:a,elements:o}=e,s=await(a.isRTL==null?void 0:a.isRTL(o.floating)),i=ie(r),l=Ne(r),c=ee(r)==="y",d=aa.has(i)?-1:1,g=s&&c?-1:1,m=se(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),c?{x:p*g,y:f*d}:{x:f*d,y:p*g}}const _i=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,a;const{x:o,y:s,placement:i,middlewareData:l}=t,c=await Fi(t,e);return i===((r=l.offset)==null?void 0:r.placement)&&(a=l.arrow)!=null&&a.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},Hi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:a,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:k=>{let{x:w,y:C}=k;return{x:w,y:C}}},...c}=se(e,t),d={x:r,y:a},g=await Me(t,c),m=ee(ie(o)),f=Ft(m);let p=d[f],h=d[m];if(s){const k=f==="y"?"top":"left",w=f==="y"?"bottom":"right",C=p+g[k],N=p-g[w];p=jt(C,p,N)}if(i){const k=m==="y"?"top":"left",w=m==="y"?"bottom":"right",C=h+g[k],N=h-g[w];h=jt(C,h,N)}const y=l.fn({...t,[f]:p,[m]:h});return{...y,data:{x:y.x-r,y:y.y-a,enabled:{[f]:s,[m]:i}}}}}},Vi=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:a,placement:o,rects:s,middlewareData:i}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=se(e,t),g={x:r,y:a},m=ee(o),f=Ft(m);let p=g[f],h=g[m];const y=se(l,t),k=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const N=f==="y"?"height":"width",P=s.reference[f]-s.floating[N]+k.mainAxis,A=s.reference[f]+s.reference[N]-k.mainAxis;p<P?p=P:p>A&&(p=A)}if(d){var w,C;const N=f==="y"?"width":"height",P=aa.has(ie(o)),A=s.reference[m]-s.floating[N]+(P&&((w=i.offset)==null?void 0:w[m])||0)+(P?0:k.crossAxis),$=s.reference[m]+s.reference[N]+(P?0:((C=i.offset)==null?void 0:C[m])||0)-(P?k.crossAxis:0);h<A?h=A:h>$&&(h=$)}return{[f]:p,[m]:h}}}},qi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,a;const{placement:o,rects:s,platform:i,elements:l}=t,{apply:c=()=>{},...d}=se(e,t),g=await Me(t,d),m=ie(o),f=Ne(o),p=ee(o)==="y",{width:h,height:y}=s.floating;let k,w;m==="top"||m==="bottom"?(k=m,w=f===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(w=m,k=f==="end"?"top":"bottom");const C=y-g.top-g.bottom,N=h-g.left-g.right,P=me(y-g[k],C),A=me(h-g[w],N),$=!t.middlewareData.shift;let I=P,z=A;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(z=N),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(I=C),$&&!f){const M=K(g.left,0),B=K(g.right,0),V=K(g.top,0),W=K(g.bottom,0);p?z=h-2*(M!==0||B!==0?M+B:K(g.left,g.right)):I=y-2*(V!==0||W!==0?V+W:K(g.top,g.bottom))}await c({...t,availableWidth:z,availableHeight:I});const D=await i.getDimensions(l.floating);return h!==D.width||y!==D.height?{reset:{rects:!0}}:{}}}};function ct(){return typeof window<"u"}function Ee(e){return na(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function te(e){var t;return(t=(na(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function na(e){return ct()?e instanceof Node||e instanceof Y(e).Node:!1}function X(e){return ct()?e instanceof Element||e instanceof Y(e).Element:!1}function re(e){return ct()?e instanceof HTMLElement||e instanceof Y(e).HTMLElement:!1}function oa(e){return!ct()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}const Ui=new Set(["inline","contents"]);function ze(e){const{overflow:t,overflowX:r,overflowY:a,display:o}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&!Ui.has(o)}const Gi=new Set(["table","td","th"]);function Ki(e){return Gi.has(Ee(e))}const Yi=[":popover-open",":modal"];function dt(e){return Yi.some(t=>{try{return e.matches(t)}catch{return!1}})}const Qi=["transform","translate","scale","rotate","perspective"],Xi=["transform","translate","scale","rotate","perspective","filter"],Zi=["paint","layout","strict","content"];function qt(e){const t=Ut(),r=X(e)?Z(e):e;return Qi.some(a=>r[a]?r[a]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Xi.some(a=>(r.willChange||"").includes(a))||Zi.some(a=>(r.contain||"").includes(a))}function Ji(e){let t=pe(e);for(;re(t)&&!Ae(t);){if(qt(t))return t;if(dt(t))return null;t=pe(t)}return null}function Ut(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ri=new Set(["html","body","#document"]);function Ae(e){return Ri.has(Ee(e))}function Z(e){return Y(e).getComputedStyle(e)}function ut(e){return X(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pe(e){if(Ee(e)==="html")return e;const t=e.assignedSlot||e.parentNode||oa(e)&&e.host||te(e);return oa(t)?t.host:t}function sa(e){const t=pe(e);return Ae(t)?e.ownerDocument?e.ownerDocument.body:e.body:re(t)&&ze(t)?t:sa(t)}function De(e,t,r){var a;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=sa(e),s=o===((a=e.ownerDocument)==null?void 0:a.body),i=Y(o);if(s){const l=Gt(i);return t.concat(i,i.visualViewport||[],ze(o)?o:[],l&&r?De(l):[])}return t.concat(o,De(o,[],r))}function Gt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ia(e){const t=Z(e);let r=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const o=re(e),s=o?e.offsetWidth:r,i=o?e.offsetHeight:a,l=ot(r)!==s||ot(a)!==i;return l&&(r=s,a=i),{width:r,height:a,$:l}}function Kt(e){return X(e)?e:e.contextElement}function Pe(e){const t=Kt(e);if(!re(t))return R(1);const r=t.getBoundingClientRect(),{width:a,height:o,$:s}=ia(t);let i=(s?ot(r.width):r.width)/a,l=(s?ot(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const el=R(0);function la(e){const t=Y(e);return!Ut()||!t.visualViewport?el:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tl(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Y(e)?!1:t}function ve(e,t,r,a){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),s=Kt(e);let i=R(1);t&&(a?X(a)&&(i=Pe(a)):i=Pe(e));const l=tl(s,r,a)?la(s):R(0);let c=(o.left+l.x)/i.x,d=(o.top+l.y)/i.y,g=o.width/i.x,m=o.height/i.y;if(s){const f=Y(s),p=a&&X(a)?Y(a):a;let h=f,y=Gt(h);for(;y&&a&&p!==h;){const k=Pe(y),w=y.getBoundingClientRect(),C=Z(y),N=w.left+(y.clientLeft+parseFloat(C.paddingLeft))*k.x,P=w.top+(y.clientTop+parseFloat(C.paddingTop))*k.y;c*=k.x,d*=k.y,g*=k.x,m*=k.y,c+=N,d+=P,h=Y(y),y=Gt(h)}}return lt({width:g,height:m,x:c,y:d})}function gt(e,t){const r=ut(e).scrollLeft;return t?t.left+r:ve(te(e)).left+r}function ca(e,t){const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-gt(e,r),o=r.top+t.scrollTop;return{x:a,y:o}}function rl(e){let{elements:t,rect:r,offsetParent:a,strategy:o}=e;const s=o==="fixed",i=te(a),l=t?dt(t.floating):!1;if(a===i||l&&s)return r;let c={scrollLeft:0,scrollTop:0},d=R(1);const g=R(0),m=re(a);if((m||!m&&!s)&&((Ee(a)!=="body"||ze(i))&&(c=ut(a)),re(a))){const p=ve(a);d=Pe(a),g.x=p.x+a.clientLeft,g.y=p.y+a.clientTop}const f=i&&!m&&!s?ca(i,c):R(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+g.x+f.x,y:r.y*d.y-c.scrollTop*d.y+g.y+f.y}}function al(e){return Array.from(e.getClientRects())}function nl(e){const t=te(e),r=ut(e),a=e.ownerDocument.body,o=K(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),s=K(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let i=-r.scrollLeft+gt(e);const l=-r.scrollTop;return Z(a).direction==="rtl"&&(i+=K(t.clientWidth,a.clientWidth)-o),{width:o,height:s,x:i,y:l}}const da=25;function ol(e,t){const r=Y(e),a=te(e),o=r.visualViewport;let s=a.clientWidth,i=a.clientHeight,l=0,c=0;if(o){s=o.width,i=o.height;const g=Ut();(!g||g&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}const d=gt(a);if(d<=0){const g=a.ownerDocument,m=g.body,f=getComputedStyle(m),p=g.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(a.clientWidth-m.clientWidth-p);h<=da&&(s-=h)}else d<=da&&(s+=d);return{width:s,height:i,x:l,y:c}}const sl=new Set(["absolute","fixed"]);function il(e,t){const r=ve(e,!0,t==="fixed"),a=r.top+e.clientTop,o=r.left+e.clientLeft,s=re(e)?Pe(e):R(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,c=o*s.x,d=a*s.y;return{width:i,height:l,x:c,y:d}}function ua(e,t,r){let a;if(t==="viewport")a=ol(e,r);else if(t==="document")a=nl(te(e));else if(X(t))a=il(t,r);else{const o=la(e);a={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return lt(a)}function ga(e,t){const r=pe(e);return r===t||!X(r)||Ae(r)?!1:Z(r).position==="fixed"||ga(r,t)}function ll(e,t){const r=t.get(e);if(r)return r;let a=De(e,[],!1).filter(l=>X(l)&&Ee(l)!=="body"),o=null;const s=Z(e).position==="fixed";let i=s?pe(e):e;for(;X(i)&&!Ae(i);){const l=Z(i),c=qt(i);!c&&l.position==="fixed"&&(o=null),(s?!c&&!o:!c&&l.position==="static"&&!!o&&sl.has(o.position)||ze(i)&&!c&&ga(e,i))?a=a.filter(g=>g!==i):o=l,i=pe(i)}return t.set(e,a),a}function cl(e){let{element:t,boundary:r,rootBoundary:a,strategy:o}=e;const i=[...r==="clippingAncestors"?dt(t)?[]:ll(t,this._c):[].concat(r),a],l=i[0],c=i.reduce((d,g)=>{const m=ua(t,g,o);return d.top=K(m.top,d.top),d.right=me(m.right,d.right),d.bottom=me(m.bottom,d.bottom),d.left=K(m.left,d.left),d},ua(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function dl(e){const{width:t,height:r}=ia(e);return{width:t,height:r}}function ul(e,t,r){const a=re(t),o=te(t),s=r==="fixed",i=ve(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const c=R(0);function d(){c.x=gt(o)}if(a||!a&&!s)if((Ee(t)!=="body"||ze(o))&&(l=ut(t)),a){const p=ve(t,!0,s,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else o&&d();s&&!a&&o&&d();const g=o&&!a&&!s?ca(o,l):R(0),m=i.left+l.scrollLeft-c.x-g.x,f=i.top+l.scrollTop-c.y-g.y;return{x:m,y:f,width:i.width,height:i.height}}function Yt(e){return Z(e).position==="static"}function ma(e,t){if(!re(e)||Z(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return te(e)===r&&(r=r.ownerDocument.body),r}function pa(e,t){const r=Y(e);if(dt(e))return r;if(!re(e)){let o=pe(e);for(;o&&!Ae(o);){if(X(o)&&!Yt(o))return o;o=pe(o)}return r}let a=ma(e,t);for(;a&&Ki(a)&&Yt(a);)a=ma(a,t);return a&&Ae(a)&&Yt(a)&&!qt(a)?r:a||Ji(e)||r}const gl=async function(e){const t=this.getOffsetParent||pa,r=this.getDimensions,a=await r(e.floating);return{reference:ul(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function ml(e){return Z(e).direction==="rtl"}const pl={convertOffsetParentRelativeRectToViewportRelativeRect:rl,getDocumentElement:te,getClippingRect:cl,getOffsetParent:pa,getElementRects:gl,getClientRects:al,getDimensions:dl,getScale:Pe,isElement:X,isRTL:ml};function fa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fl(e,t){let r=null,a;const o=te(e);function s(){var l;clearTimeout(a),(l=r)==null||l.disconnect(),r=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const d=e.getBoundingClientRect(),{left:g,top:m,width:f,height:p}=d;if(l||t(),!f||!p)return;const h=st(m),y=st(o.clientWidth-(g+f)),k=st(o.clientHeight-(m+p)),w=st(g),N={rootMargin:-h+"px "+-y+"px "+-k+"px "+-w+"px",threshold:K(0,me(1,c))||1};let P=!0;function A($){const I=$[0].intersectionRatio;if(I!==c){if(!P)return i();I?i(!1,I):a=setTimeout(()=>{i(!1,1e-7)},1e3)}I===1&&!fa(d,e.getBoundingClientRect())&&i(),P=!1}try{r=new IntersectionObserver(A,{...N,root:o.ownerDocument})}catch{r=new IntersectionObserver(A,N)}r.observe(e)}return i(!0),s}function hl(e,t,r,a){a===void 0&&(a={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=a,d=Kt(e),g=o||s?[...d?De(d):[],...De(t)]:[];g.forEach(w=>{o&&w.addEventListener("scroll",r,{passive:!0}),s&&w.addEventListener("resize",r)});const m=d&&l?fl(d,r):null;let f=-1,p=null;i&&(p=new ResizeObserver(w=>{let[C]=w;C&&C.target===d&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var N;(N=p)==null||N.observe(t)})),r()}),d&&!c&&p.observe(d),p.observe(t));let h,y=c?ve(e):null;c&&k();function k(){const w=ve(e);y&&!fa(y,w)&&r(),y=w,h=requestAnimationFrame(k)}return r(),()=>{var w;g.forEach(C=>{o&&C.removeEventListener("scroll",r),s&&C.removeEventListener("resize",r)}),m?.(),(w=p)==null||w.disconnect(),p=null,c&&cancelAnimationFrame(h)}}const bl=_i,yl=Hi,xl=Wi,vl=qi,wl=ji,ha=Bi,kl=Vi,Cl=(e,t,r)=>{const a=new Map,o={platform:pl,...r},s={...o.platform,_c:a};return Di(e,t,{...o,platform:s})};var Sl=typeof document<"u",Nl=function(){},mt=Sl?x.useLayoutEffect:Nl;function pt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,a,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(a=r;a--!==0;)if(!pt(e[a],t[a]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(a=r;a--!==0;)if(!{}.hasOwnProperty.call(t,o[a]))return!1;for(a=r;a--!==0;){const s=o[a];if(!(s==="_owner"&&e.$$typeof)&&!pt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ba(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ya(e,t){const r=ba(e);return Math.round(t*r)/r}function Qt(e){const t=S.useRef(e);return mt(()=>{t.current=e}),t}function El(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:a=[],platform:o,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[g,m]=S.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=S.useState(a);pt(f,a)||p(a);const[h,y]=S.useState(null),[k,w]=S.useState(null),C=S.useCallback(O=>{O!==$.current&&($.current=O,y(O))},[]),N=S.useCallback(O=>{O!==I.current&&(I.current=O,w(O))},[]),P=s||h,A=i||k,$=S.useRef(null),I=S.useRef(null),z=S.useRef(g),D=c!=null,M=Qt(c),B=Qt(o),V=Qt(d),W=S.useCallback(()=>{if(!$.current||!I.current)return;const O={placement:t,strategy:r,middleware:f};B.current&&(O.platform=B.current),Cl($.current,I.current,O).then(G=>{const ne={...G,isPositioned:V.current!==!1};j.current&&!pt(z.current,ne)&&(z.current=ne,hr.flushSync(()=>{m(ne)}))})},[f,t,r,B,V]);mt(()=>{d===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,m(O=>({...O,isPositioned:!1})))},[d]);const j=S.useRef(!1);mt(()=>(j.current=!0,()=>{j.current=!1}),[]),mt(()=>{if(P&&($.current=P),A&&(I.current=A),P&&A){if(M.current)return M.current(P,A,W);W()}},[P,A,W,M,D]);const q=S.useMemo(()=>({reference:$,floating:I,setReference:C,setFloating:N}),[C,N]),F=S.useMemo(()=>({reference:P,floating:A}),[P,A]),U=S.useMemo(()=>{const O={position:r,left:0,top:0};if(!F.floating)return O;const G=ya(F.floating,g.x),ne=ya(F.floating,g.y);return l?{...O,transform:"translate("+G+"px, "+ne+"px)",...ba(F.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:G,top:ne}},[r,l,F.floating,g.x,g.y]);return S.useMemo(()=>({...g,update:W,refs:q,elements:F,floatingStyles:U}),[g,W,q,F,U])}const Al=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:a,padding:o}=typeof e=="function"?e(r):e;return a&&t(a)?a.current!=null?ha({element:a.current,padding:o}).fn(r):{}:a?ha({element:a,padding:o}).fn(r):{}}}},Pl=(e,t)=>({...bl(e),options:[e,t]}),Tl=(e,t)=>({...yl(e),options:[e,t]}),Il=(e,t)=>({...kl(e),options:[e,t]}),Ll=(e,t)=>({...xl(e),options:[e,t]}),$l=(e,t)=>({...vl(e),options:[e,t]}),Ol=(e,t)=>({...wl(e),options:[e,t]}),Ml=(e,t)=>({...Al(e),options:[e,t]});var zl="Arrow",xa=S.forwardRef((e,t)=>{const{children:r,width:a=10,height:o=5,...s}=e;return n.jsx(ue.svg,{...s,ref:t,width:a,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:n.jsx("polygon",{points:"0,0 30,0 15,10"})})});xa.displayName=zl;var Dl=xa;function Bl(e){const[t,r]=S.useState(void 0);return ge(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,l;if("borderBoxSize"in s){const c=s.borderBoxSize,d=Array.isArray(c)?c[0]:c;i=d.inlineSize,l=d.blockSize}else i=e.offsetWidth,l=e.offsetHeight;r({width:i,height:l})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}var Xt="Popper",[va,wa]=Ur(Xt),[Wl,ka]=va(Xt),Ca=e=>{const{__scopePopper:t,children:r}=e,[a,o]=S.useState(null);return n.jsx(Wl,{scope:t,anchor:a,onAnchorChange:o,children:r})};Ca.displayName=Xt;var Sa="PopperAnchor",Na=S.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:a,...o}=e,s=ka(Sa,r),i=S.useRef(null),l=xe(t,i),c=S.useRef(null);return S.useEffect(()=>{const d=c.current;c.current=a?.current||i.current,d!==c.current&&s.onAnchorChange(c.current)}),a?null:n.jsx(ue.div,{...o,ref:l})});Na.displayName=Sa;var Zt="PopperContent",[jl,Fl]=va(Zt),Ea=S.forwardRef((e,t)=>{const{__scopePopper:r,side:a="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:g=0,sticky:m="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:h,...y}=e,k=ka(Zt,r),[w,C]=S.useState(null),N=xe(t,Ke=>C(Ke)),[P,A]=S.useState(null),$=Bl(P),I=$?.width??0,z=$?.height??0,D=a+(s!=="center"?"-"+s:""),M=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},B=Array.isArray(d)?d:[d],V=B.length>0,W={padding:M,boundary:B.filter(Hl),altBoundary:V},{refs:j,floatingStyles:q,placement:F,isPositioned:U,middlewareData:O}=El({strategy:"fixed",placement:D,whileElementsMounted:(...Ke)=>hl(...Ke,{animationFrame:p==="always"}),elements:{reference:k.anchor},middleware:[Pl({mainAxis:o+z,alignmentAxis:i}),c&&Tl({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Il():void 0,...W}),c&&Ll({...W}),$l({...W,apply:({elements:Ke,rects:mn,availableWidth:Uu,availableHeight:Gu})=>{const{width:Ku,height:Yu}=mn.reference,kt=Ke.floating.style;kt.setProperty("--radix-popper-available-width",`${Uu}px`),kt.setProperty("--radix-popper-available-height",`${Gu}px`),kt.setProperty("--radix-popper-anchor-width",`${Ku}px`),kt.setProperty("--radix-popper-anchor-height",`${Yu}px`)}}),P&&Ml({element:P,padding:l}),Vl({arrowWidth:I,arrowHeight:z}),f&&Ol({strategy:"referenceHidden",...W})]}),[G,ne]=Ta(F),gn=nt(h);ge(()=>{U&&gn?.()},[U,gn]);const Fu=O.arrow?.x,_u=O.arrow?.y,Hu=O.arrow?.centerOffset!==0,[Vu,qu]=S.useState();return ge(()=>{w&&qu(window.getComputedStyle(w).zIndex)},[w]),n.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:U?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Vu,"--radix-popper-transform-origin":[O.transformOrigin?.x,O.transformOrigin?.y].join(" "),...O.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:n.jsx(jl,{scope:r,placedSide:G,onArrowChange:A,arrowX:Fu,arrowY:_u,shouldHideArrow:Hu,children:n.jsx(ue.div,{"data-side":G,"data-align":ne,...y,ref:N,style:{...y.style,animation:U?void 0:"none"}})})})});Ea.displayName=Zt;var Aa="PopperArrow",_l={top:"bottom",right:"left",bottom:"top",left:"right"},Pa=S.forwardRef(function(t,r){const{__scopePopper:a,...o}=t,s=Fl(Aa,a),i=_l[s.placedSide];return n.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:n.jsx(Dl,{...o,ref:r,style:{...o.style,display:"block"}})})});Pa.displayName=Aa;function Hl(e){return e!==null}var Vl=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:a,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,g]=Ta(r),m={start:"0%",center:"50%",end:"100%"}[g],f=(o.arrow?.x??0)+l/2,p=(o.arrow?.y??0)+c/2;let h="",y="";return d==="bottom"?(h=i?m:`${f}px`,y=`${-c}px`):d==="top"?(h=i?m:`${f}px`,y=`${a.floating.height+c}px`):d==="right"?(h=`${-c}px`,y=i?m:`${p}px`):d==="left"&&(h=`${a.floating.width+c}px`,y=i?m:`${p}px`),{data:{x:h,y}}}});function Ta(e){const[t,r="center"]=e.split("-");return[t,r]}var ql=Ca,Ul=Na,Gl=Ea,Kl=Pa,Yl="Portal",Ia=S.forwardRef((e,t)=>{const{container:r,...a}=e,[o,s]=S.useState(!1);ge(()=>s(!0),[]);const i=r||o&&globalThis?.document?.body;return i?Ye.createPortal(n.jsx(ue.div,{...a,ref:t}),i):null});Ia.displayName=Yl;function Ql(e,t){return S.useReducer((r,a)=>t[r][a]??r,e)}var Jt=e=>{const{present:t,children:r}=e,a=Xl(t),o=typeof r=="function"?r({present:a.isPresent}):S.Children.only(r),s=xe(a.ref,Zl(o));return typeof r=="function"||a.isPresent?S.cloneElement(o,{ref:s}):null};Jt.displayName="Presence";function Xl(e){const[t,r]=S.useState(),a=S.useRef(null),o=S.useRef(e),s=S.useRef("none"),i=e?"mounted":"unmounted",[l,c]=Ql(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const d=ft(a.current);s.current=l==="mounted"?d:"none"},[l]),ge(()=>{const d=a.current,g=o.current;if(g!==e){const f=s.current,p=ft(d);e?c("MOUNT"):p==="none"||d?.display==="none"?c("UNMOUNT"):c(g&&f!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ge(()=>{if(t){let d;const g=t.ownerDocument.defaultView??window,m=p=>{const y=ft(a.current).includes(CSS.escape(p.animationName));if(p.target===t&&y&&(c("ANIMATION_END"),!o.current)){const k=t.style.animationFillMode;t.style.animationFillMode="forwards",d=g.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=k)})}},f=p=>{p.target===t&&(s.current=ft(a.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{g.clearTimeout(d),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:S.useCallback(d=>{a.current=d?getComputedStyle(d):null,r(d)},[])}}function ft(e){return e?.animationName||"none"}function Zl(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Jl=S[" useInsertionEffect ".trim().toString()]||ge;function Rl({prop:e,defaultProp:t,onChange:r=()=>{},caller:a}){const[o,s,i]=ec({defaultProp:t,onChange:r}),l=e!==void 0,c=l?e:o;{const g=S.useRef(e!==void 0);S.useEffect(()=>{const m=g.current;m!==l&&console.warn(`${a} is changing from ${m?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=l},[l,a])}const d=S.useCallback(g=>{if(l){const m=tc(g)?g(e):g;m!==e&&i.current?.(m)}else s(g)},[l,e,s,i]);return[c,d]}function ec({defaultProp:e,onChange:t}){const[r,a]=S.useState(e),o=S.useRef(r),s=S.useRef(t);return Jl(()=>{s.current=t},[t]),S.useEffect(()=>{o.current!==r&&(s.current?.(r),o.current=r)},[r,o]),[r,a,s]}function tc(e){return typeof e=="function"}var rc=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ac="VisuallyHidden",La=S.forwardRef((e,t)=>n.jsx(ue.span,{...e,ref:t,style:{...rc,...e.style}}));La.displayName=ac;var nc=La,[ht]=Ur("Tooltip",[wa]),bt=wa(),$a="TooltipProvider",oc=700,Rt="tooltip.open",[sc,er]=ht($a),Oa=e=>{const{__scopeTooltip:t,delayDuration:r=oc,skipDelayDuration:a=300,disableHoverableContent:o=!1,children:s}=e,i=S.useRef(!0),l=S.useRef(!1),c=S.useRef(0);return S.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),n.jsx(sc,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:S.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,a)},[a]),isPointerInTransitRef:l,onPointerInTransitChange:S.useCallback(d=>{l.current=d},[]),disableHoverableContent:o,children:s})};Oa.displayName=$a;var Be="Tooltip",[ic,We]=ht(Be),Ma=e=>{const{__scopeTooltip:t,children:r,open:a,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:l}=e,c=er(Be,e.__scopeTooltip),d=bt(t),[g,m]=S.useState(null),f=Si(),p=S.useRef(0),h=i??c.disableHoverableContent,y=l??c.delayDuration,k=S.useRef(!1),[w,C]=Rl({prop:a,defaultProp:o??!1,onChange:I=>{I?(c.onOpen(),document.dispatchEvent(new CustomEvent(Rt))):c.onClose(),s?.(I)},caller:Be}),N=S.useMemo(()=>w?k.current?"delayed-open":"instant-open":"closed",[w]),P=S.useCallback(()=>{window.clearTimeout(p.current),p.current=0,k.current=!1,C(!0)},[C]),A=S.useCallback(()=>{window.clearTimeout(p.current),p.current=0,C(!1)},[C]),$=S.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{k.current=!0,C(!0),p.current=0},y)},[y,C]);return S.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),n.jsx(ql,{...d,children:n.jsx(ic,{scope:t,contentId:f,open:w,stateAttribute:N,trigger:g,onTriggerChange:m,onTriggerEnter:S.useCallback(()=>{c.isOpenDelayedRef.current?$():P()},[c.isOpenDelayedRef,$,P]),onTriggerLeave:S.useCallback(()=>{h?A():(window.clearTimeout(p.current),p.current=0)},[A,h]),onOpen:P,onClose:A,disableHoverableContent:h,children:r})})};Ma.displayName=Be;var tr="TooltipTrigger",za=S.forwardRef((e,t)=>{const{__scopeTooltip:r,...a}=e,o=We(tr,r),s=er(tr,r),i=bt(r),l=S.useRef(null),c=xe(t,l,o.onTriggerChange),d=S.useRef(!1),g=S.useRef(!1),m=S.useCallback(()=>d.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),n.jsx(Ul,{asChild:!0,...i,children:n.jsx(ue.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...a,ref:c,onPointerMove:oe(e.onPointerMove,f=>{f.pointerType!=="touch"&&!g.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),g.current=!0)}),onPointerLeave:oe(e.onPointerLeave,()=>{o.onTriggerLeave(),g.current=!1}),onPointerDown:oe(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:oe(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:oe(e.onBlur,o.onClose),onClick:oe(e.onClick,o.onClose)})})});za.displayName=tr;var rr="TooltipPortal",[lc,cc]=ht(rr,{forceMount:void 0}),Da=e=>{const{__scopeTooltip:t,forceMount:r,children:a,container:o}=e,s=We(rr,t);return n.jsx(lc,{scope:t,forceMount:r,children:n.jsx(Jt,{present:r||s.open,children:n.jsx(Ia,{asChild:!0,container:o,children:a})})})};Da.displayName=rr;var Te="TooltipContent",Ba=S.forwardRef((e,t)=>{const r=cc(Te,e.__scopeTooltip),{forceMount:a=r.forceMount,side:o="top",...s}=e,i=We(Te,e.__scopeTooltip);return n.jsx(Jt,{present:a||i.open,children:i.disableHoverableContent?n.jsx(Wa,{side:o,...s,ref:t}):n.jsx(dc,{side:o,...s,ref:t})})}),dc=S.forwardRef((e,t)=>{const r=We(Te,e.__scopeTooltip),a=er(Te,e.__scopeTooltip),o=S.useRef(null),s=xe(t,o),[i,l]=S.useState(null),{trigger:c,onClose:d}=r,g=o.current,{onPointerInTransitChange:m}=a,f=S.useCallback(()=>{l(null),m(!1)},[m]),p=S.useCallback((h,y)=>{const k=h.currentTarget,w={x:h.clientX,y:h.clientY},C=pc(w,k.getBoundingClientRect()),N=fc(w,C),P=hc(y.getBoundingClientRect()),A=yc([...N,...P]);l(A),m(!0)},[m]);return S.useEffect(()=>()=>f(),[f]),S.useEffect(()=>{if(c&&g){const h=k=>p(k,g),y=k=>p(k,c);return c.addEventListener("pointerleave",h),g.addEventListener("pointerleave",y),()=>{c.removeEventListener("pointerleave",h),g.removeEventListener("pointerleave",y)}}},[c,g,p,f]),S.useEffect(()=>{if(i){const h=y=>{const k=y.target,w={x:y.clientX,y:y.clientY},C=c?.contains(k)||g?.contains(k),N=!bc(w,i);C?f():N&&(f(),d())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[c,g,i,d,f]),n.jsx(Wa,{...e,ref:s})}),[uc,gc]=ht(Be,{isInside:!1}),mc=Ct.createSlottable("TooltipContent"),Wa=S.forwardRef((e,t)=>{const{__scopeTooltip:r,children:a,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...l}=e,c=We(Te,r),d=bt(r),{onClose:g}=c;return S.useEffect(()=>(document.addEventListener(Rt,g),()=>document.removeEventListener(Rt,g)),[g]),S.useEffect(()=>{if(c.trigger){const m=f=>{f.target?.contains(c.trigger)&&g()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[c.trigger,g]),n.jsx(Yr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:m=>m.preventDefault(),onDismiss:g,children:n.jsxs(Gl,{"data-state":c.stateAttribute,...d,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[n.jsx(mc,{children:a}),n.jsx(uc,{scope:r,isInside:!0,children:n.jsx(nc,{id:c.contentId,role:"tooltip",children:o||a})})]})})});Ba.displayName=Te;var ja="TooltipArrow",Fa=S.forwardRef((e,t)=>{const{__scopeTooltip:r,...a}=e,o=bt(r);return gc(ja,r).isInside?null:n.jsx(Kl,{...o,...a,ref:t})});Fa.displayName=ja;function pc(e,t){const r=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,a,o,s)){case s:return"left";case o:return"right";case r:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function fc(e,t,r=5){const a=[];switch(t){case"top":a.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":a.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":a.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":a.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return a}function hc(e){const{top:t,right:r,bottom:a,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:a},{x:o,y:a}]}function bc(e,t){const{x:r,y:a}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const l=t[s],c=t[i],d=l.x,g=l.y,m=c.x,f=c.y;g>a!=f>a&&r<(m-d)*(a-g)/(f-g)+d&&(o=!o)}return o}function yc(e){const t=e.slice();return t.sort((r,a)=>r.x<a.x?-1:r.x>a.x?1:r.y<a.y?-1:r.y>a.y?1:0),xc(t)}function xc(e){if(e.length<=1)return e.slice();const t=[];for(let a=0;a<e.length;a++){const o=e[a];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let a=e.length-1;a>=0;a--){const o=e[a];for(;r.length>=2;){const s=r[r.length-1],i=r[r.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var vc=Oa,wc=Ma,kc=za,Cc=Da,Sc=Ba,Nc=Fa;const Ec={operational:{color:"bg-green-500/80",hoverColor:"hover:bg-green-500",label:"All systems operational"},degraded:{color:"bg-yellow-500/80",hoverColor:"hover:bg-yellow-500",label:"Degraded performance"},"major-outage":{color:"bg-red-500/80",hoverColor:"hover:bg-red-500",label:"Major outage"}},Ac={xs:"w-1.5 h-1.5",sm:"w-2 h-2",md:"w-3 h-3",lg:"w-4 h-4"},Pc=({statusPageUrl:e="/status",apiEndpoint:t,refreshInterval:r=6e4,size:a="sm",className:o,version:s,onStatusChange:i,isNetworkOnline:l=!0})=>{const[c,d]=x.useState({status:"operational",version:s||"1.0.0",message:"All systems operational"}),[g,m]=x.useState(!1);x.useEffect(()=>{const k=async()=>{if(t){m(!0);try{const w=await fetch(t);if(w.ok){const C=await w.json();let N;C.status?.indicator?N={status:{none:"operational",minor:"degraded",major:"major-outage",critical:"major-outage"}[C.status.indicator]||"operational",version:s,message:C.status.description}:N=C,d(N),i?.(N)}}catch{}finally{m(!1)}}};if(k(),r>0){const w=setInterval(k,r);return()=>clearInterval(w)}},[t,r,i,s]);const f=l?c.status:"major-outage",p=Ec[f],h=k=>{if(k.preventDefault(),!l){window.alert("Network is not available. Please check your internet connection and try again later.");return}window.open(e,"_blank","noopener,noreferrer")},y=n.jsx("div",{className:"text-xs",children:l?n.jsxs(n.Fragment,{children:[c.version&&n.jsxs("div",{className:"font-semibold mb-1",children:["Version ",c.version]}),n.jsx("div",{children:c.message||p.label}),c.incidents&&c.incidents.length>0&&n.jsxs("div",{className:"mt-2 text-[10px] opacity-90",children:[n.jsx("div",{className:"font-medium",children:"Current incidents:"}),n.jsx("ul",{className:"list-disc list-inside",children:c.incidents.map((k,w)=>n.jsx("li",{children:k},w))})]})]}):n.jsx("div",{children:"Network unavailable"})});return n.jsx(vc,{delayDuration:200,children:n.jsxs(wc,{children:[n.jsx(kc,{asChild:!0,children:n.jsx("button",{onClick:h,className:b("rounded-full flex-shrink-0 transition-all duration-200 cursor-pointer","ring-offset-2 focus:outline-none focus:ring-2 focus:ring-offset-2",p.color,p.hoverColor,Ac[a],(g||!l)&&"animate-pulse",o),"aria-label":`System status: ${p.label}`})}),n.jsx(Cc,{children:n.jsxs(Sc,{className:"z-50 overflow-hidden rounded-md bg-gray-900 dark:bg-gray-800 px-3 py-2 text-white shadow-md animate-in fade-in-0 zoom-in-95",sideOffset:5,children:[y,n.jsx(Nc,{className:"fill-gray-900 dark:fill-gray-800"})]})})]})})},Tc={sm:{container:"px-6 py-3",icon:"h-5 w-5 mr-2",text:"font-semibold"},md:{container:"px-6 py-3",icon:"h-5 w-5 mr-2",text:"font-semibold"},lg:{container:"px-6 py-3",icon:"h-5 w-5 mr-2",text:"font-semibold"}},Ic=({icon:e,text:t,variant:r="default",size:a="md",className:o})=>{const{container:s,icon:i}=_o(r),l=Tc[a];return n.jsxs("div",{className:b("inline-flex items-center rounded-full mb-6",s,l.container,o),children:[n.jsx("div",{className:b("animate-float-icon",i,l.icon),children:e}),n.jsx("span",{className:l.text,children:t})]})},Lc=_.cva("",{variants:{variant:{hero:T.heading.display.hero(),display:T.heading.display.lg(),h1:T.heading.h1(),h2:T.heading.h2(),h3:T.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"}}),$c=({children:e,variant:t="h1",responsive:r=!0,align:a="left",color:o="default",className:s,as:i})=>{const l=i||(t==="hero"||t==="display"||t==="h1"?"h1":t==="h2"?"h2":"h3");return n.jsx(l,{className:b(Lc({variant:t,responsive:r,align:a,color:o}),s),children:e})},Oc=_.cva("",{variants:{variant:{h2:T.heading.h2(),h3:T.heading.h3(),h4:T.heading.h4(),h5:T.heading.h5(),h6:T.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"}}),Mc=({children:e,variant:t="h2",spacing:r="md",align:a="left",className:o,as:s})=>{const i=s||t;return x.createElement(i,{className:b(Oc({variant:t,spacing:r,align:a}),o)},e)},zc=_.cva("",{variants:{variant:{body:T.body.md(),lead:T.body.lg(),large:T.body.lg(),small:T.body.sm(),caption:T.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"}}),Dc=({children:e,variant:t="body",color:r="default",align:a="left",className:o,as:s="p"})=>x.createElement(s,{className:b(zc({variant:t,color:r,align:a}),o)},e),Bc=_.cva(T.link.default(),{variants:{variant:{default:T.link.default(),subtle:T.link.subtle(),muted:T.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}}),Wc=({children:e,href:t,variant:r="default",external:a=!1,className:o,target:s,rel:i})=>n.jsxs("a",{href:t,target:s||(a?"_blank":void 0),rel:i||(a?"noopener noreferrer":void 0),className:b(Bc({variant:r,external:a}),o),children:[e,a&&n.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.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"})})]}),yt=_.cva("transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 rounded-sm",{variants:{variant:{subtle:T.link.subtle(),default:T.link.default(),muted:T.link.muted(),external:T.link.external(),inherit:"text-inherit hover:text-blue-600 dark:hover:text-blue-400 underline-offset-2 hover:underline transition-colors duration-200"},size:{sm:"text-sm",default:"text-base",lg:"text-lg"}},defaultVariants:{variant:"subtle",size:"default"}}),ar=S.forwardRef(({className:e,variant:t,size:r,to:a,href:o,external:s,children:i,...l},c)=>{const d=a||o;return d?s||d.startsWith("http")||d.startsWith("mailto:")?n.jsx("a",{className:b(yt({variant:t==="subtle"?"external":t,size:r,className:e})),href:d,target:"_blank",rel:"noopener noreferrer",ref:c,...l,children:i}):n.jsx(Xe.Link,{className:b(yt({variant:t,size:r,className:e})),to:d,ref:c,...l,children:i}):n.jsx("span",{className:b(yt({variant:t,size:r,className:e})),...l,children:i})});ar.displayName="SmartLink";const jc=(e,t)=>S.useMemo(()=>{let r=e;return Object.entries(t).forEach(([a,o])=>{const s=new RegExp(`\\b${a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`,"gi");r=r.replace(s,i=>`<SmartLink to="${o}" variant="subtle">${i}</SmartLink>`)}),r},[e,t]),Fc={documentation:"/document",settings:"/settings",about:"/about",contact:"/contact","privacy policy":"/privacy",privacy:"/privacy","terms of service":"/terms",terms:"/terms","cookie policy":"/cookies",cookies:"/cookies",points:"/points","earn points":"/how-to-earn-points","how to earn points":"/how-to-earn-points","connect wallet":"/connect","connect your wallet":"/connect","wallet connection":"/connect",wallet:"/connect",compose:"/compose","compose email":"/compose","send email":"/compose",mail:"/mail",email:"/mail",inbox:"/mail",dashboard:"/mail",delegate:"/delegate",delegation:"/delegate",manage:"/manage","manage preferences":"/preferences",profile:"/settings",account:"/settings",preferences:"/preferences",token:"/token","web3 users":"/web3-users","web3 projects":"/web3-projects","get started":"/connect","start here":"/connect","learn more":"/document","read more":"/document","our features":"/document",support:"/contact",help:"/document","contact us":"/contact"},_c=({children:e,mappings:t=Fc,className:r,variant:a="subtle"})=>{const o=S.useMemo(()=>{if(!e||typeof e!="string")return e||"";let i=e;return Object.entries(t).sort(([c],[d])=>d.length-c.length).forEach(([c,d])=>{if(c&&d){const g=new RegExp(`\\b${c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`,"gi");i=i.replace(g,m=>`__LINK_START__${d}__LINK_MID__${m}__LINK_END__`)}}),i},[e,t]);if(!o||typeof o!="string")return n.jsx("span",{className:r,children:e});const s=o.split(/(__LINK_START__.*?__LINK_END__)/);return n.jsx("span",{className:r,children:s.map((i,l)=>{const c=i.match(/__LINK_START__(.*?)__LINK_MID__(.*?)__LINK_END__/);if(c){const[,d,g]=c;return n.jsx(ar,{to:d,variant:a,children:g},l)}return i})})},_a=({isOpen:e,onClose:t,title:r,size:a="medium",variant:o="default",overlay:s="default",showCloseButton:i=!0,closeOnOverlayClick:l=!0,closeOnEscape:c=!0,children:d,className:g,"aria-labelledby":m,"aria-describedby":f,closeAriaLabel:p="Close modal"})=>{const h=x.useRef(null),y=x.useRef(null);if(x.useEffect(()=>{if(!e||!c)return;const N=P=>{P.key==="Escape"&&t()};return document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)},[e,c,t]),x.useEffect(()=>{if(e)return y.current=document.activeElement,h.current&&h.current.focus(),document.body.style.overflow="hidden",()=>{document.body.style.overflow="unset",y.current&&y.current.focus()}},[e]),!e)return null;const k=()=>{const N=L.overlays.modal.content(),P=L.overlays.modal[a]();return b(N,P)},w=N=>{l&&N.target===N.currentTarget&&t()},C=n.jsxs(n.Fragment,{children:[n.jsx("div",{className:L.overlays.modal.backdrop(),onClick:w}),n.jsx("div",{className:L.overlays.modal.container(),role:"dialog","aria-modal":"true","aria-labelledby":m,"aria-describedby":f,children:n.jsxs("div",{ref:h,"data-testid":"modal-content",className:b(k(),g),tabIndex:-1,onClick:N=>N.stopPropagation(),children:[r&&n.jsxs("div",{className:L.overlays.modal.header(),children:[n.jsx("h2",{id:m,className:L.overlays.modal.title(),children:r}),i&&n.jsx("button",{onClick:t,className:L.overlays.modal.closeButton(),"aria-label":p,children:n.jsx(E.XMarkIcon,{className:L.icon.variant.muted.md()})})]}),d]})})]});return Ye.createPortal(C,document.body)},Hc=({children:e,variant:t="default",className:r})=>n.jsx("div",{"data-testid":"modal-header",className:b(L.overlays.modal.header(),r),children:e}),Ha=({children:e,variant:t="default",className:r})=>n.jsx("div",{"data-testid":"modal-body",className:b(L.overlays.modal.body(),r),children:e}),Va=({children:e,variant:t="default",className:r})=>n.jsx("div",{"data-testid":"modal-footer",className:b(L.overlays.modal.footer(),r),children:e}),Vc={default:E.InformationCircleIcon,warning:E.ExclamationTriangleIcon,danger:E.XCircleIcon,success:E.CheckCircleIcon,info:E.InformationCircleIcon},qc={default:()=>L.icon.variant.default.lg(),warning:()=>L.icon.variant.warning.lg(),danger:()=>L.icon.variant.error.lg(),success:()=>L.icon.variant.success.lg(),info:()=>L.icon.variant.default.lg()},Uc={default:"default",warning:"default",danger:"destructive",success:"default",info:"default"},Gc=({isOpen:e,onClose:t,onConfirm:r,title:a,message:o,confirmText:s="Confirm",cancelText:i="Cancel",loadingText:l="Processing...",variant:c="default",isLoading:d=!1})=>{const g=Vc[c],m=qc[c],f=Uc[c];return n.jsxs(_a,{isOpen:e,onClose:t,size:"small",variant:"web3confirmation","aria-labelledby":"confirmation-dialog-title","aria-describedby":"confirmation-dialog-description",children:[n.jsxs(Ha,{variant:"padded",children:[n.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[n.jsx(g,{className:m()}),n.jsx("h3",{id:"confirmation-dialog-title",className:T.heading.h4(),children:a})]}),n.jsx("p",{id:"confirmation-dialog-description",className:T.body.md(),children:o})]}),n.jsxs(Va,{children:[n.jsx(de,{variant:"outline",onClick:t,disabled:d,children:i}),n.jsx(de,{variant:f,onClick:r,disabled:d,children:d?l:s})]})]})},Kc={sm:"w-12 h-12",md:"w-16 h-16",lg:"w-20 h-20",xl:"w-24 h-24"},Yc={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10",xl:"h-12 w-12"},Qc={primary:"bg-gradient-to-br from-blue-100 to-blue-200 text-blue-600 shadow-lg hover:shadow-blue-200",secondary:"bg-gradient-to-br from-purple-100 to-purple-200 text-purple-600 shadow-lg hover:shadow-purple-200",success:"bg-gradient-to-br from-green-100 to-green-200 text-green-600 shadow-lg hover:shadow-green-200",warning:"bg-gradient-to-br from-yellow-100 to-yellow-200 text-yellow-600 shadow-lg hover:shadow-yellow-200",error:"bg-gradient-to-br from-red-100 to-red-200 text-red-600 shadow-lg hover:shadow-red-200",neutral:"bg-gradient-to-br from-gray-100 to-gray-200 text-gray-600 shadow-lg hover:shadow-gray-200"},Xc={square:"rounded-none",rounded:"rounded-2xl",circle:"rounded-full"},Zc={none:"",float:"animate-float",pulse:"animate-pulse",bounce:"animate-bounce-slow"},Jc=({children:e,size:t="lg",variant:r="primary",shape:a="rounded",animation:o="float",className:s})=>n.jsx("div",{className:b("flex items-center justify-center mx-auto mb-6 transition-all duration-300 group-hover:scale-105",Kc[t],Qc[r],Xc[a],Zc[o],s),children:n.jsx("div",{className:b(Yc[t]),children:e})}),Rc=_.cva("border-b transition-all duration-200",{variants:{variant:{default:"bg-gradient-to-r from-green-100 to-blue-100 dark:from-green-900/20 dark:to-blue-900/20 border-green-200 dark:border-green-700",compact:"bg-green-50 dark:bg-green-900/10 border-green-200 dark:border-green-800",minimal:"bg-gray-50 dark:bg-gray-900/50 border-gray-200 dark:border-gray-700",vibrant:"bg-gradient-to-r from-blue-600 to-purple-600 border-blue-700"},size:{default:"py-4",compact:"py-3",large:"py-6"}},defaultVariants:{variant:"default",size:"default"}}),ed=_.cva("font-semibold",{variants:{variant:{default:"text-green-800 dark:text-green-200",compact:"text-green-700 dark:text-green-300",minimal:"text-gray-700 dark:text-gray-300",vibrant:"text-white"}},defaultVariants:{variant:"default"}}),td=_.cva("inline-flex items-center justify-center px-6 py-2 rounded-lg font-medium transition-all duration-200 hover:transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-offset-2",{variants:{variant:{default:"bg-gradient-to-r from-green-600 to-blue-600 hover:from-green-700 hover:to-blue-700 text-white focus:ring-green-500",compact:"bg-green-600 hover:bg-green-700 text-white focus:ring-green-500",minimal:"bg-blue-600 hover:bg-blue-700 text-white focus:ring-blue-500",vibrant:"bg-white hover:bg-gray-100 text-blue-600 hover:text-blue-700 focus:ring-white"}},defaultVariants:{variant:"default"}}),rd=({className:e,variant:t="default",size:r="default",message:a="Get Your Free Email Address - Start Using 0xmail.box Today",ctaText:o="Get Free Email",ctaLink:s="/connect",showBadge:i=!0,badgeText:l="FREE",onDismiss:c,isDismissible:d=!1,dismissAriaLabel:g="Dismiss banner"})=>n.jsx("div",{className:b(Rc({variant:t,size:r}),e),children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4 text-center relative",children:[d&&c&&n.jsx("button",{onClick:c,className:"absolute right-0 top-1/2 -translate-y-1/2 p-1 rounded-full hover:bg-black/10 dark:hover:bg-white/10 transition-colors","aria-label":g,children:n.jsx("svg",{className:"w-4 h-4 text-current opacity-60",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),n.jsxs("div",{className:"flex items-center",children:[i&&n.jsx("div",{className:b("text-xs font-bold px-3 py-1 rounded-full mr-3 transition-colors",t==="vibrant"?"bg-white text-blue-600":"bg-green-500 text-white"),children:l}),n.jsx("span",{className:b(ed({variant:t})),children:a})]}),n.jsx(Xe.Link,{to:s,className:b(td({variant:t})),children:o})]})})}),ad=_.cva("bg-white dark:bg-gray-800 rounded-lg shadow-md p-6 transition-all duration-200",{variants:{variant:{default:"border-gray-200 dark:border-gray-700 border hover:shadow-lg",elevated:"shadow-lg hover:shadow-xl",minimal:"bg-transparent shadow-none border-none p-4"},trend:{none:"",up:"border-l-4 border-green-500",down:"border-l-4 border-red-500",neutral:"border-l-4 border-gray-400"}},defaultVariants:{variant:"default",trend:"none"}}),nd=({label:e,value:t,change:r,trend:a="none",icon:o,variant:s="default",className:i})=>{const l={up:"text-green-600 dark:text-green-400",down:"text-red-600 dark:text-red-400",neutral:"text-gray-600 dark:text-gray-400",none:"text-gray-600 dark:text-gray-400"},c={up:"↗",down:"↘",neutral:"→",none:""};return n.jsx("div",{className:b(ad({variant:s,trend:a}),i),children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400 mb-1",children:e}),n.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:t}),r&&n.jsxs("p",{className:b("text-sm font-medium flex items-center gap-1 mt-1",l[a||"none"]),children:[n.jsx("span",{children:c[a||"none"]}),r]})]}),o&&n.jsx("div",{className:"text-3xl opacity-80",children:o})]})})},od=_.cva("space-y-6",{variants:{variant:{default:"",card:"bg-white dark:bg-gray-800 rounded-lg border-gray-200 dark:border-gray-700 border p-6",minimal:"space-y-4"},spacing:{tight:"space-y-3",normal:"space-y-4",relaxed:"space-y-6",loose:"space-y-8"}},defaultVariants:{variant:"default",spacing:"normal"}}),sd=({title:e,description:t,children:r,variant:a="default",spacing:o="normal",className:s})=>n.jsxs("div",{className:b(od({variant:a,spacing:o}),s),children:[(e||t)&&n.jsxs("div",{className:"space-y-1",children:[e&&n.jsx("h3",{className:"text-lg font-medium text-gray-900 dark:text-white",children:e}),t&&n.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:t})]}),r]}),id=_.cva("flex flex-col items-center text-center space-y-4",{variants:{layout:{vertical:"flex-col items-center text-center",horizontal:"flex-row items-start text-left space-y-0 space-x-4",minimal:"flex-col space-y-2"},spacing:{tight:"space-y-2",normal:"space-y-4",relaxed:"space-y-6"},interactive:{true:"transition-all duration-200 hover:transform hover:scale-105 cursor-pointer",false:""}},defaultVariants:{layout:"vertical",spacing:"normal",interactive:!1}}),ld=({icon:e,title:t,description:r,layout:a="vertical",spacing:o="normal",interactive:s=!1,className:i,onClick:l})=>n.jsxs("div",{className:b(id({layout:a,spacing:o,interactive:s}),i),onClick:l,children:[n.jsx("div",{className:"text-4xl mb-4 flex-shrink-0",children:e}),n.jsxs("div",{className:"space-y-2",children:[n.jsx("h3",{className:"text-xl font-bold text-gray-900 dark:text-white",children:t}),n.jsx("div",{className:"text-gray-600 dark:text-gray-300 leading-relaxed",children:r})]})]}),cd=({icon:e,size:t="md",shape:r="rounded",variant:a="blue-purple",gradientClasses:o,className:s,iconClassName:i})=>{const l={sm:{container:"w-10 h-10",icon:"h-5 w-5"},md:{container:"w-12 h-12",icon:"h-6 w-6"},lg:{container:"w-16 h-16",icon:"h-8 w-8"},xl:{container:"w-20 h-20",icon:"h-10 w-10"}},c={square:"rounded-lg",rounded:"rounded-xl",circle:"rounded-full"},d={"blue-purple":"bg-gradient-to-r from-blue-600 to-purple-600","green-blue":"bg-gradient-to-r from-green-600 to-blue-600","orange-red":"bg-gradient-to-r from-orange-600 to-red-600",gray:"bg-gradient-to-r from-gray-600 to-gray-800 dark:from-gray-700 dark:to-gray-900",custom:o||"bg-gradient-to-r from-blue-600 to-purple-600"},g=l[t];return n.jsx("div",{className:b("flex items-center justify-center flex-shrink-0",g.container,c[r],d[a],s),children:n.jsx(e,{className:b("text-white",g.icon,i)})})},dd=({children:e,variant:t="blue-purple",gradientClasses:r,size:a="md",rounded:o="2xl",bordered:s=!1,borderClasses:i="border border-white/20",className:l})=>{const c={"blue-purple":"bg-gradient-to-r from-blue-600 to-purple-600 text-white","green-blue":"bg-gradient-to-r from-green-600 to-blue-600 text-white","orange-red":"bg-gradient-to-r from-orange-600 to-red-600 text-white",gray:"bg-gradient-to-r from-gray-600 to-gray-800 dark:from-gray-700 dark:to-gray-900 text-white",light:"bg-gradient-to-r from-blue-50 to-purple-50 dark:from-blue-900/20 dark:to-purple-900/20 text-gray-900 dark:text-gray-100",custom:r||"bg-gradient-to-r from-blue-600 to-purple-600 text-white"},d={sm:"p-4",md:"p-6",lg:"p-8"},g={md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl"};return n.jsx("div",{className:b(c[t],d[a],g[o],s&&i,l),children:e})},ud=({children:e,title:t,variant:r="info",size:a="md",icon:o,bordered:s=!0,className:i})=>{const l={info:{bg:"bg-blue-50 dark:bg-blue-900/20",border:"border-blue-200 dark:border-blue-800",title:"text-blue-900 dark:text-blue-300",text:"text-blue-800 dark:text-blue-400",icon:"text-blue-600 dark:text-blue-400"},success:{bg:"bg-green-50 dark:bg-green-900/20",border:"border-green-200 dark:border-green-800",title:"text-green-900 dark:text-green-300",text:"text-green-800 dark:text-green-400",icon:"text-green-600 dark:text-green-400"},warning:{bg:"bg-yellow-50 dark:bg-yellow-900/20",border:"border-yellow-200 dark:border-yellow-800",title:"text-yellow-900 dark:text-yellow-300",text:"text-yellow-800 dark:text-yellow-400",icon:"text-yellow-600 dark:text-yellow-400"},danger:{bg:"bg-red-50 dark:bg-red-900/20",border:"border-red-200 dark:border-red-800",title:"text-red-900 dark:text-red-300",text:"text-red-800 dark:text-red-400",icon:"text-red-600 dark:text-red-400"},neutral:{bg:"bg-gray-50 dark:bg-gray-800",border:"border-gray-200 dark:border-gray-700",title:"text-gray-900 dark:text-gray-100",text:"text-gray-700 dark:text-gray-300",icon:"text-gray-600 dark:text-gray-400"}},c={sm:"p-3",md:"p-4",lg:"p-6"},d=l[r];return n.jsxs("div",{className:b("rounded-lg",d.bg,s&&`border ${d.border}`,c[a],i),children:[(t||o)&&n.jsxs("div",{className:"flex items-start gap-3 mb-2",children:[o&&n.jsx(o,{className:b("h-5 w-5 flex-shrink-0 mt-0.5",d.icon)}),t&&n.jsx("h3",{className:b(T.body.strong.md(),d.title),children:t})]}),n.jsx("div",{className:b(!t&&!o&&d.text),children:e})]})},gd=({children:e,variant:t="blue",position:r="left",width:a="thick",padding:o="md",className:s})=>{const i={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"},l={left:"border-l",right:"border-r",top:"border-t",bottom:"border-b"},c={thin:"2",medium:"3",thick:"4"},d={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"}},g=`${l[r]}-${c[a]}`;return n.jsx("div",{className:b(g,i[t],d[r][o],s),children:e})},md=({children:e,variant:t="primary",size:r="md",inline:a=!1,align:o="left",className:s,wrap:i=!1})=>{const l={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"},c={xs:{text:"text-xs",padding:a?"px-1.5 py-0.5":"px-2 py-1"},sm:{text:"text-sm",padding:a?"px-2 py-0.5":"px-3 py-1.5"},md:{text:"text-base",padding:a?"px-2.5 py-1":"px-4 py-2"},lg:{text:"text-lg",padding:a?"px-3 py-1":"px-4 py-2"}},d={left:"text-left",center:"text-center",right:"text-right"},g=c[r],m=a?"code":"div";return n.jsx(m,{className:b("font-mono rounded-lg",l[t],g.text,g.padding,!a&&d[o],a?"inline-block":"block",!i&&"overflow-x-auto whitespace-nowrap",i&&"break-all",s),children:e})},pd=({variant:e="text",width:t,height:r,className:a,count:o,lines:s=1,animate:i=!0,borderRadius:l,theme:c,spacing:d,gap:g="md"})=>{const m={text:"h-4 rounded",circle:"rounded-full",rectangle:"rounded-lg",avatar:"w-10 h-10 rounded-full",button:"h-10 rounded-lg"},f={light:"bg-gray-200",dark:"bg-gray-700"},p={sm:"space-y-1",md:"space-y-2",lg:"space-y-3"},h=o??s,y=k=>{const w={};return t&&(w.width=typeof t=="number"?`${t}px`:t),r&&(w.height=typeof r=="number"?`${r}px`:r),l&&(w.borderRadius=l),n.jsx("div",{className:b(i&&"animate-pulse",c?f[c]:"bg-gray-200 dark:bg-gray-700",m[e],a),style:w},k)};if(h>1){const k=d!==void 0?`space-y-${d}`:p[g];return n.jsx("div",{className:b(k),children:Array.from({length:h}).map((w,C)=>y(C))})}return y()},fd=({value:e,label:t,variant:r="neutral",size:a="md",align:o="center",icon:s,iconPosition:i="top",className:l,valueClassName:c,labelClassName:d})=>{const g={primary:{value:"text-blue-600 dark:text-blue-400",label:"text-blue-600/70 dark:text-blue-400/70",icon:"text-blue-600 dark:text-blue-400"},success:{value:"text-green-600 dark:text-green-400",label:"text-green-600/70 dark:text-green-400/70",icon:"text-green-600 dark:text-green-400"},warning:{value:"text-yellow-600 dark:text-yellow-400",label:"text-yellow-600/70 dark:text-yellow-400/70",icon:"text-yellow-600 dark:text-yellow-400"},danger:{value:"text-red-600 dark:text-red-400",label:"text-red-600/70 dark:text-red-400/70",icon:"text-red-600 dark:text-red-400"},neutral:{value:"text-gray-900 dark:text-gray-100",label:"text-gray-600 dark:text-gray-400",icon:"text-gray-600 dark:text-gray-400"},white:{value:"text-white",label:"text-white/70",icon:"text-white"}},m={sm:{value:T.heading.h5(),label:T.caption.default(),icon:"h-4 w-4"},md:{value:T.heading.h4(),label:T.body.sm(),icon:"h-5 w-5"},lg:{value:T.heading.h3(),label:T.body.md(),icon:"h-6 w-6"},xl:{value:T.heading.h2(),label:T.body.lg(),icon:"h-8 w-8"}},f={left:"text-left",center:"text-center",right:"text-right"},p=g[r],h=m[a];return n.jsxs("div",{className:b(f[o],l),children:[s&&i==="top"&&n.jsx(s,{className:b(h.icon,p.icon,"mb-2",o==="center"&&"mx-auto")}),n.jsxs("div",{className:b(i==="left"&&s&&"flex items-center gap-3",o==="center"&&i==="left"&&"justify-center"),children:[s&&i==="left"&&n.jsx(s,{className:b(h.icon,p.icon)}),n.jsxs("div",{children:[n.jsx("div",{className:b("font-bold",h.value,p.value,c),children:e}),n.jsx("div",{className:b(h.label,p.label,d),children:t})]})]})]})},hd=({value:e,max:t=100,variant:r="primary",size:a="md",showLabel:o=!1,labelPosition:s="outside",label:i,className:l,barClassName:c,animated:d=!0,striped:g=!1})=>{const m=Math.min(Math.max(e/t*100,0),100),f=i||`${Math.round(m)}%`,p={primary:"bg-blue-600 dark:bg-blue-500",success:"bg-green-600 dark:bg-green-500",warning:"bg-yellow-600 dark:bg-yellow-500",danger:"bg-red-600 dark:bg-red-500",purple:"bg-purple-600 dark:bg-purple-500",gray:"bg-gray-600 dark:bg-gray-500"},h={sm:"h-1",md:"h-2",lg:"h-3"};return n.jsx("div",{className:b("w-full",l),children:n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:b("flex-1 bg-gray-200 dark:bg-gray-600 rounded-full overflow-hidden",h[a]),children:n.jsx("div",{className:b("rounded-full",h[a],p[r],d&&"transition-all duration-300 ease-in-out",g&&"bg-gradient-to-r from-transparent via-white/20 to-transparent bg-[length:20px_100%]",c),style:{width:`${m}%`},role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":t,children:o&&s==="inside"&&a==="lg"&&n.jsx("span",{className:"flex items-center justify-center h-full text-xs font-medium text-white px-2",children:f})})}),o&&s==="outside"&&n.jsx("span",{className:"text-sm font-medium text-gray-600 dark:text-gray-400 whitespace-nowrap",children:f})]})})},bd=({label:e,labelPosition:t="center",orientation:r="horizontal",spacing:a="md",thickness:o="thin",variant:s="light",className:i,lineClassName:l})=>{const c={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"}},d={horizontal:{thin:"border-t",medium:"border-t-2",thick:"border-t-4"},vertical:{thin:"border-l",medium:"border-l-2",thick:"border-l-4"}},g={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(r==="vertical")return n.jsx("div",{className:b("self-stretch",d.vertical[o],g[s],c.vertical[a],i),role:"separator","aria-orientation":"vertical"});if(!e)return n.jsx("hr",{className:b(d.horizontal[o],g[s],c.horizontal[a],l,i),role:"separator","aria-orientation":"horizontal"});const m={left:"justify-start",center:"justify-center",right:"justify-end"};return n.jsxs("div",{className:b("flex items-center",c.horizontal[a],m[t],i),role:"separator","aria-orientation":"horizontal",children:[t!=="left"&&n.jsx("div",{className:b("flex-1",d.horizontal[o],g[s],l)}),n.jsx("span",{className:b(T.body.sm(),"px-3 text-gray-500 dark:text-gray-400 whitespace-nowrap"),children:e}),t!=="right"&&n.jsx("div",{className:b("flex-1",d.horizontal[o],g[s],l)})]})},yd=({icon:e,children:t,iconPosition:r="left",gap:a="md",iconSize:o="md",align:s="left",variant:i="default",className:l,iconClassName:c,textClassName:d})=>{const g={xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4"},m={xs:"h-3 w-3",sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-8 w-8"},f={left:"text-left",center:"text-center items-center",right:"text-right items-end"},p={default:"text-gray-700 dark:text-gray-300",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",muted:"text-gray-500 dark:text-gray-400"},h={left:"flex items-center",right:"flex flex-row-reverse items-center",top:"flex flex-col"};return n.jsxs("div",{className:b(h[r],g[a],r==="top"&&f[s],p[i],l),children:[n.jsx(e,{className:b(m[o],"flex-shrink-0",c)}),n.jsx("span",{className:b(d),children:t})]})},xd=({text:e,size:t="md",variant:r="icon",label:a="Copy",successLabel:o="Copied!",iconPosition:s="left",className:i,title:l,onCopySuccess:c,onCopyError:d})=>{const{copyToClipboard:g,isCopied:m}=Ir({successDuration:2e3,onSuccess:c,onError:d}),f=m(e),p=()=>{g(e)},y={sm:{icon:"h-3.5 w-3.5",button:"p-1",text:"text-xs px-2 py-1"},md:{icon:"h-4 w-4",button:"p-1.5",text:"text-sm px-3 py-1.5"},lg:{icon:"h-5 w-5",button:"p-2",text:"text-base px-4 py-2"}}[t],k=f?E.CheckIcon:E.ClipboardDocumentIcon;if(r==="icon")return n.jsx("button",{onClick:p,className:b("inline-flex items-center justify-center rounded transition-colors",f?"text-green-600 dark:text-green-400":"text-gray-400 hover:text-gray-600 dark:hover:text-gray-300",y.button,i),title:l||(f?"Copied!":"Copy to clipboard"),type:"button",children:n.jsx(k,{className:y.icon})});const w=b("inline-flex items-center gap-2 rounded font-medium transition-colors",y.text),C={text:b(f?"text-green-600 dark:text-green-400":"text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300"),outline:b("border",f?"border-green-600 text-green-600 dark:border-green-400 dark:text-green-400":"border-gray-300 text-gray-700 hover:border-gray-400 dark:border-gray-600 dark:text-gray-300 dark:hover:border-gray-500")},N=f?o:a;return n.jsxs("button",{onClick:p,className:b(w,C[r],i),title:l||(f?"Copied!":"Copy to clipboard"),type:"button",children:[s==="left"&&n.jsx(k,{className:y.icon}),n.jsx("span",{children:N}),s==="right"&&n.jsx(k,{className:y.icon})]})},vd=({title:e,description:t,count:r,countLabel:a,action:o,loading:s=!1,loadingText:i="Loading...",size:l="md",className:c})=>{const g={sm:{title:T.heading.h4(),description:T.body.sm(),count:T.caption.default()},md:{title:T.heading.h3(),description:T.body.md(),count:T.body.sm()},lg:{title:T.heading.h2(),description:T.body.lg(),count:T.body.md()}}[l];return n.jsxs("div",{className:b("flex items-start justify-between gap-4",c),children:[n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[n.jsx("h2",{className:b(g.title,"text-gray-900 dark:text-gray-100"),children:e}),r!==void 0&&n.jsxs("span",{className:b(g.count,"text-gray-500 dark:text-gray-400"),children:["(",r,a&&` ${a}`,")"]}),s&&n.jsxs("span",{className:b(g.count,"text-gray-500 dark:text-gray-400 flex items-center gap-2"),children:[n.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-blue-600"}),i]})]}),t&&n.jsx("p",{className:b(g.description,"mt-1 text-gray-600 dark:text-gray-400"),children:t})]}),o&&n.jsx("div",{className:"flex-shrink-0",children:o})]})},wd=({children:e,variant:t="default",size:r="sm",icon:a,dot:o=!1,pill:s=!1,outline:i=!1,onClick:l,dismissible:c=!1,onDismiss:d,count:g,maxCount:m,className:f})=>{const p={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"},h={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"},y={sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-1 text-sm",lg:"px-3 py-1.5 text-base"},k={sm:"h-3 w-3",md:"h-3.5 w-3.5",lg:"h-4 w-4"},w={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"},C=g!==void 0?m!==void 0&&g>m?`${m}+`:g.toString():null,N=n.jsxs(n.Fragment,{children:[o&&n.jsx("span",{className:b("h-2 w-2 rounded-full mr-1.5",w[t])}),a&&n.jsx("span",{className:b(k[r],"mr-1"),children:a}),e,C&&n.jsx("span",{className:"ml-1",children:C}),c&&d&&n.jsx("button",{onClick:A=>{A.stopPropagation(),d()},className:"ml-1 hover:bg-black/10 dark:hover:bg-white/10 rounded-full p-0.5","aria-label":"Dismiss",children:n.jsx(he.XMarkIcon,{className:b(k[r])})})]}),P=l?"button":"span";return n.jsx(P,{onClick:l,className:b("inline-flex items-center font-medium",i?h[t]:p[t],y[r],s?"rounded-full":"rounded",l&&"cursor-pointer hover:opacity-80",f),children:N})},kd=({src:e,alt:t="Avatar",fallback:r,name:a,size:o="md",status:s,className:i,onClick:l})=>{const[c,d]=x.useState(!1),g={sm:"w-8 h-8 text-xs",md:"w-10 h-10 text-sm",lg:"w-12 h-12 text-base"},m={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"},f={online:"bg-green-500",offline:"bg-gray-400",away:"bg-yellow-500",busy:"bg-red-500"},h=r||(a?(w=>{const C=w.trim().split(/\s+/);return C.length===1?C[0].charAt(0).toUpperCase():C[0].charAt(0).toUpperCase()+C[C.length-1].charAt(0).toUpperCase()})(a):""),y=e&&!c,k=()=>{d(!0)};return n.jsxs("div",{className:"relative inline-block flex-shrink-0",children:[n.jsx("div",{className:b("flex items-center justify-center overflow-hidden rounded-full",g[o],!y&&"bg-gray-300 dark:bg-gray-600 text-gray-700 dark:text-gray-200",l&&"cursor-pointer hover:opacity-80 transition-opacity",i),onClick:l,role:l?"button":void 0,tabIndex:l?0:void 0,children:y?n.jsx("img",{src:e,alt:t,className:"w-full h-full object-cover",onError:k}):n.jsx("span",{className:"font-semibold",children:h})}),s&&n.jsx("span",{className:b("absolute bottom-0 right-0 rounded-full border-2 border-white dark:border-gray-800",f[s],m[o]),"aria-label":s})]})},Cd=({steps:e,currentStep:t=0,orientation:r="horizontal",size:a="md",variant:o="primary",showConnectors:s=!0,className:i,onStepClick:l})=>{const c={sm:{circle:"w-6 h-6 text-xs",label:"text-xs",description:"text-xs",connector:r==="vertical"?"h-6":"h-0.5"},md:{circle:"w-8 h-8 text-sm",label:"text-sm",description:"text-xs",connector:r==="vertical"?"h-8":"h-0.5"},lg:{circle:"w-10 h-10 text-base",label:"text-base",description:"text-sm",connector:r==="vertical"?"h-10":"h-0.5"}},d={primary:{active:"bg-blue-500 text-white border-blue-500",completed:"bg-blue-500 text-white border-blue-500",pending:"bg-white dark:bg-gray-800 text-gray-400 border-gray-300 dark:border-gray-600",connector:"bg-blue-500",connectorPending:"bg-gray-300 dark:bg-gray-600"},success:{active:"bg-green-500 text-white border-green-500",completed:"bg-green-500 text-white border-green-500",pending:"bg-white dark:bg-gray-800 text-gray-400 border-gray-300 dark:border-gray-600",connector:"bg-green-500",connectorPending:"bg-gray-300 dark:bg-gray-600"},purple:{active:"bg-purple-500 text-white border-purple-500",completed:"bg-purple-500 text-white border-purple-500",pending:"bg-white dark:bg-gray-800 text-gray-400 border-gray-300 dark:border-gray-600",connector:"bg-purple-500",connectorPending:"bg-gray-300 dark:bg-gray-600"}},g=c[a],m=d[o],f=h=>{const y=e[h];return y.status?y.status:h<t?"completed":h===t?"current":"pending"},p=(h,y)=>{const k=f(y),w=l&&k!=="pending",C=b("flex items-center justify-center rounded-full border-2 font-bold flex-shrink-0 transition-all",g.circle,k==="completed"&&m.completed,k==="current"&&m.active,k==="pending"&&m.pending,w&&"cursor-pointer hover:opacity-80");return n.jsxs("div",{className:b(r==="horizontal"?"flex items-center":"flex",r==="horizontal"?"flex-col items-center":"items-start"),children:[n.jsxs("div",{className:b(r==="horizontal"?"flex flex-col items-center":"flex items-start gap-3"),children:[n.jsx("div",{className:C,onClick:w?()=>l(y):void 0,role:w?"button":void 0,tabIndex:w?0:void 0,children:k==="completed"?n.jsx(he.CheckIcon,{className:b(a==="sm"?"h-3 w-3":a==="md"?"h-4 w-4":"h-5 w-5")}):n.jsx("span",{children:y+1})}),n.jsxs("div",{className:b(r==="horizontal"?"text-center mt-2":"flex-1"),children:[n.jsx("div",{className:b("font-medium",g.label,k==="pending"?"text-gray-500 dark:text-gray-400":"text-gray-900 dark:text-gray-100"),children:h.label}),h.description&&n.jsx("div",{className:b(g.description,"text-gray-600 dark:text-gray-400 mt-0.5"),children:h.description})]})]}),s&&y<e.length-1&&n.jsx("div",{className:b(r==="vertical"?"w-0.5 ml-3.5":"flex-1 mx-2",g.connector,k==="completed"?m.connector:m.connectorPending)})]},y)};return n.jsx("div",{className:b("flex",r==="horizontal"?"items-start":"flex-col",i),children:e.map((h,y)=>p(h,y))})},Sd=({label:e,value:t,orientation:r="vertical",align:a="start",labelWidth:o="auto",size:s="md",separator:i=!1,labelVariant:l="muted",valueVariant:c="default",className:d,labelClassName:g,valueClassName:m})=>{const f={sm:{label:T.body.sm(),value:T.body.sm(),gap:"gap-1"},md:{label:T.body.md(),value:T.body.md(),gap:"gap-2"},lg:{label:T.body.lg(),value:T.body.lg(),gap:"gap-3"}},p={auto:"",sm:"w-24",md:"w-32",lg:"w-40"},h={start:"justify-start",center:"justify-center",between:"justify-between"},y={default:"text-gray-700 dark:text-gray-300",muted:"text-gray-600 dark:text-gray-400",strong:"text-gray-900 dark:text-gray-100 font-semibold"},k={default:"text-gray-900 dark:text-gray-100",muted:"text-gray-600 dark:text-gray-400",strong:"text-gray-900 dark:text-gray-100 font-semibold",primary:"text-blue-600 dark:text-blue-400"},w=f[s];return n.jsxs("div",{className:b(r==="horizontal"?"flex items-center":"flex flex-col",r==="horizontal"&&h[a],w.gap,i&&"pb-3 mb-3 border-b border-gray-200 dark:border-gray-700",d),children:[n.jsx("dt",{className:b(w.label,y[l],r==="horizontal"&&p[o],r==="horizontal"&&"flex-shrink-0",g),children:e}),n.jsx("dd",{className:b(w.value,k[c],r==="horizontal"&&"flex-1",m),children:t})]})},Nd=({content:e,children:t,placement:r="top",delayShow:a=0,delayHide:o=0,className:s,disabled:i=!1,showArrow:l=!0,variant:c="default",trigger:d="hover",isOpen:g,onVisibilityChange:m})=>{const[f,p]=x.useState(!1),h=x.useRef(void 0),y=x.useRef(void 0),k=x.useRef(null),w=x.useRef(null),C=g!==void 0,N=C?g:f,P=x.useCallback(()=>{i||C||(y.current&&(clearTimeout(y.current),y.current=void 0),a>0?h.current=setTimeout(()=>{p(!0),m?.(!0)},a):(p(!0),m?.(!0)))},[i,C,a,m]),A=x.useCallback(()=>{C||(h.current&&(clearTimeout(h.current),h.current=void 0),o>0?y.current=setTimeout(()=>{p(!1),m?.(!1)},o):(p(!1),m?.(!1)))},[C,o,m]);x.useEffect(()=>()=>{h.current&&clearTimeout(h.current),y.current&&clearTimeout(y.current)},[]),x.useEffect(()=>{if(d!=="click"||!N)return;const q=F=>{k.current&&!k.current.contains(F.target)&&w.current&&!w.current.contains(F.target)&&A()};return document.addEventListener("mousedown",q),()=>{document.removeEventListener("mousedown",q)}},[d,N,A]);const $=()=>{d==="hover"&&P()},I=()=>{d==="hover"&&A()},z=()=>{d==="hover"&&P()},D=()=>{d==="hover"&&A()},M=()=>{d==="click"&&!C&&(N?(p(!1),m?.(!1)):(p(!0),m?.(!0)))},B={top:"bottom-full left-1/2 -translate-x-1/2 -translate-y-2",bottom:"top-full left-1/2 -translate-x-1/2 translate-y-2",left:"right-full top-1/2 -translate-x-2 -translate-y-1/2",right:"left-full top-1/2 translate-x-2 -translate-y-1/2"},V={top:"top-full left-1/2 -translate-x-1/2 border-l-transparent border-r-transparent border-b-transparent",bottom:"bottom-full left-1/2 -translate-x-1/2 border-l-transparent border-r-transparent border-t-transparent",left:"left-full top-1/2 -translate-y-1/2 border-t-transparent border-b-transparent border-r-transparent",right:"right-full top-1/2 -translate-y-1/2 border-t-transparent border-b-transparent border-l-transparent"},W={default:"bg-gray-900 dark:bg-gray-700 text-white",info:"bg-blue-600 dark:bg-blue-500 text-white",success:"bg-green-600 dark:bg-green-500 text-white",warning:"bg-yellow-600 dark:bg-yellow-500 text-white",error:"bg-red-600 dark:bg-red-500 text-white"},j={default:{top:"border-t-gray-900 dark:border-t-gray-700",bottom:"border-b-gray-900 dark:border-b-gray-700",left:"border-l-gray-900 dark:border-l-gray-700",right:"border-r-gray-900 dark:border-r-gray-700"},info:{top:"border-t-blue-600 dark:border-t-blue-500",bottom:"border-b-blue-600 dark:border-b-blue-500",left:"border-l-blue-600 dark:border-l-blue-500",right:"border-r-blue-600 dark:border-r-blue-500"},success:{top:"border-t-green-600 dark:border-t-green-500",bottom:"border-b-green-600 dark:border-b-green-500",left:"border-l-green-600 dark:border-l-green-500",right:"border-r-green-600 dark:border-r-green-500"},warning:{top:"border-t-yellow-600 dark:border-t-yellow-500",bottom:"border-b-yellow-600 dark:border-b-yellow-500",left:"border-l-yellow-600 dark:border-l-yellow-500",right:"border-r-yellow-600 dark:border-r-yellow-500"},error:{top:"border-t-red-600 dark:border-t-red-500",bottom:"border-b-red-600 dark:border-b-red-500",left:"border-l-red-600 dark:border-l-red-500",right:"border-r-red-600 dark:border-r-red-500"}};return n.jsxs("div",{ref:w,className:"relative inline-block",onMouseEnter:$,onMouseLeave:I,onFocus:z,onBlur:D,onClick:M,children:[t,N&&!i&&n.jsxs("div",{ref:k,className:b("absolute z-50 px-2 py-1 text-xs font-medium rounded shadow-lg whitespace-nowrap pointer-events-none",B[r],W[c],s),role:"tooltip",children:[e,l&&n.jsx("div",{className:b("absolute w-0 h-0 border-4 arrow",V[r],j[c][r])})]})]})},Ed=({href:e,children:t,showIcon:r=!0,iconPosition:a="right",size:o="md",variant:s="default",className:i,onClick:l})=>{const c={sm:{text:T.body.sm(),icon:"h-3 w-3",gap:"gap-1"},md:{text:T.body.md(),icon:"h-4 w-4",gap:"gap-1.5"},lg:{text:T.body.lg(),icon:"h-5 w-5",gap:"gap-2"}},d={default:"text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300",primary:"text-blue-700 dark:text-blue-300 hover:text-blue-800 dark:hover:text-blue-200 font-semibold",muted:"text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-200"},g=c[o];return n.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer",onClick:l,className:b("inline-flex items-center",g.gap,g.text,d[s],"underline decoration-1 underline-offset-2","hover:decoration-2","transition-all duration-200",i),children:[r&&a==="left"&&n.jsx(E.ArrowTopRightOnSquareIcon,{className:b(g.icon,"flex-shrink-0")}),n.jsx("span",{children:t}),r&&a==="right"&&n.jsx(E.ArrowTopRightOnSquareIcon,{className:b(g.icon,"flex-shrink-0")})]})},Ad=({icon:e,"aria-label":t,onClick:r,size:a="md",shape:o="rounded",variant:s="default",disabled:i=!1,type:l="button",className:c,title:d})=>{const g={xs:{button:"p-1",icon:"h-3 w-3"},sm:{button:"p-1.5",icon:"h-4 w-4"},md:{button:"p-2",icon:"h-5 w-5"},lg:{button:"p-3",icon:"h-6 w-6"},xl:{button:"p-4",icon:"h-8 w-8"}},m={circle:"rounded-full",square:"rounded-none",rounded:"rounded-lg"},f={default:"bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700",primary:"bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-600",secondary:"bg-purple-600 text-white hover:bg-purple-700 dark:bg-purple-500 dark:hover:bg-purple-600",danger:"bg-red-600 text-white hover:bg-red-700 dark:bg-red-500 dark:hover:bg-red-600",ghost:"bg-transparent text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800",outline:"bg-transparent border-2 border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800"},p=g[a];return n.jsx("button",{type:l,onClick:r,disabled:i,"aria-label":t,title:d||t,className:b("inline-flex items-center justify-center","transition-all duration-200","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-current",p.button,m[o],f[s],c),children:n.jsx(e,{className:p.icon})})},Pd=({type:e,size:t="md",colored:r=!0,className:a})=>{const o={xs:"h-3 w-3",sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-8 w-8"},s=c=>{const d=c.toLowerCase();return d.startsWith("image/")||[".jpg",".jpeg",".png",".gif",".svg",".webp",".ico"].some(g=>d.endsWith(g))?{Icon:E.PhotoIcon,color:"text-blue-600 dark:text-blue-400"}:d.startsWith("video/")||[".mp4",".avi",".mov",".wmv",".flv",".webm"].some(g=>d.endsWith(g))?{Icon:E.FilmIcon,color:"text-purple-600 dark:text-purple-400"}:d.startsWith("audio/")||[".mp3",".wav",".ogg",".m4a",".flac"].some(g=>d.endsWith(g))?{Icon:E.MusicalNoteIcon,color:"text-pink-600 dark:text-pink-400"}:d.includes("pdf")||d.endsWith(".pdf")?{Icon:E.DocumentArrowDownIcon,color:"text-red-600 dark:text-red-400"}:d.includes("word")||d.includes("document")||[".doc",".docx",".odt"].some(g=>d.endsWith(g))?{Icon:E.DocumentTextIcon,color:"text-blue-700 dark:text-blue-300"}:d.includes("excel")||d.includes("spreadsheet")||[".xls",".xlsx",".ods",".csv"].some(g=>d.endsWith(g))?{Icon:E.TableCellsIcon,color:"text-green-600 dark:text-green-400"}:[".js",".ts",".jsx",".tsx",".py",".java",".cpp",".c",".h",".css",".scss",".html",".json",".xml",".yaml",".yml",".sh",".sql"].some(g=>d.endsWith(g))?{Icon:E.CodeBracketIcon,color:"text-gray-700 dark:text-gray-300"}:d.includes("zip")||d.includes("compressed")||d.includes("archive")||[".zip",".rar",".7z",".tar",".gz",".bz2"].some(g=>d.endsWith(g))?{Icon:E.ArchiveBoxIcon,color:"text-yellow-600 dark:text-yellow-400"}:{Icon:E.DocumentIcon,color:"text-gray-600 dark:text-gray-400"}},{Icon:i,color:l}=s(e);return n.jsx(i,{className:b(o[t],r?l:"text-gray-600 dark:text-gray-400",a)})},Td=({currentPage:e,totalPages:t,onPageChange:r,siblingCount:a=1,showFirstLast:o=!1,size:s="md",className:i})=>{const c={sm:{button:"h-8 w-8 text-xs",icon:"h-3 w-3",text:T.body.sm()},md:{button:"h-10 w-10 text-sm",icon:"h-4 w-4",text:T.body.md()},lg:{button:"h-12 w-12 text-base",icon:"h-5 w-5",text:T.body.lg()}}[s],g=(()=>{const C=[];C.push(1);const N=Math.max(e-a,2),P=Math.min(e+a,t-1);N>2&&C.push("ellipsis");for(let A=N;A<=P;A++)C.push(A);return P<t-1&&C.push("ellipsis"),t>1&&C.push(t),C})(),m=()=>{e>1&&r(e-1)},f=()=>{e<t&&r(e+1)},p=()=>{r(1)},h=()=>{r(t)},y=b("inline-flex items-center justify-center","rounded-md border border-gray-300 dark:border-gray-600","transition-all duration-200","focus:outline-none focus:ring-2 focus:ring-blue-500","disabled:opacity-50 disabled:cursor-not-allowed"),k=C=>b(y,c.button,c.text,C?"bg-blue-600 text-white border-blue-600 dark:bg-blue-500 dark:border-blue-500":"bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700"),w=b(y,c.button,"bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-300","hover:bg-gray-50 dark:hover:bg-gray-700");return n.jsxs("nav",{className:b("flex items-center gap-1",i),"aria-label":"Pagination",children:[o&&n.jsx("button",{onClick:p,disabled:e===1,className:w,"aria-label":"Go to first page",children:n.jsx("span",{className:c.text,children:"First"})}),n.jsx("button",{onClick:m,disabled:e===1,className:w,"aria-label":"Go to previous page",children:n.jsx(E.ChevronLeftIcon,{className:c.icon})}),g.map((C,N)=>C==="ellipsis"?n.jsx("span",{className:b("inline-flex items-center justify-center",c.button,"text-gray-400 dark:text-gray-500"),children:"..."},`ellipsis-${N}`):n.jsx("button",{onClick:()=>r(C),className:k(C===e),"aria-label":`Go to page ${C}`,"aria-current":C===e?"page":void 0,children:C},C)),n.jsx("button",{onClick:f,disabled:e===t,className:w,"aria-label":"Go to next page",children:n.jsx(E.ChevronRightIcon,{className:c.icon})}),o&&n.jsx("button",{onClick:h,disabled:e===t,className:w,"aria-label":"Go to last page",children:n.jsx("span",{className:c.text,children:"Last"})})]})},Id=({children:e,variant:t="default",size:r="md",onRemove:a,onClick:o,disabled:s=!1,className:i})=>{const l={sm:{tag:"px-2 py-0.5 text-xs gap-1",icon:"h-3 w-3"},md:{tag:"px-2.5 py-1 text-sm gap-1.5",icon:"h-3.5 w-3.5"},lg:{tag:"px-3 py-1.5 text-base gap-2",icon:"h-4 w-4"}},c={default:"bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700",primary:"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 hover:bg-blue-200 dark:hover:bg-blue-900/50",success:"bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-300 hover:bg-green-200 dark:hover:bg-green-900/50",warning:"bg-yellow-100 dark:bg-yellow-900/30 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-200 dark:hover:bg-yellow-900/50",danger:"bg-red-100 dark:bg-red-900/30 text-red-700 dark:text-red-300 hover:bg-red-200 dark:hover:bg-red-900/50",info:"bg-cyan-100 dark:bg-cyan-900/30 text-cyan-700 dark:text-cyan-300 hover:bg-cyan-200 dark:hover:bg-cyan-900/50",purple:"bg-purple-100 dark:bg-purple-900/30 text-purple-700 dark:text-purple-300 hover:bg-purple-200 dark:hover:bg-purple-900/50"},d=l[r],g=o||a,m=()=>{s||o&&o()},f=p=>{p.stopPropagation(),!(s||!a)&&a()};return n.jsxs("span",{onClick:m,className:b("inline-flex items-center font-medium rounded-full","transition-colors duration-200",d.tag,c[t],g&&!s&&"cursor-pointer",s&&"opacity-50 cursor-not-allowed",i),children:[n.jsx("span",{children:e}),a&&n.jsx("button",{type:"button",onClick:f,disabled:s,className:b("inline-flex items-center justify-center rounded-full","hover:bg-black/10 dark:hover:bg-white/10","transition-colors",s?"cursor-not-allowed":"cursor-pointer"),"aria-label":"Remove",children:n.jsx(he.XMarkIcon,{className:d.icon})})]})},Ld=({isOpen:e,onClick:t,opacity:r="medium",blur:a=!1,zIndex:o=50,className:s,children:i})=>{const l={light:"bg-black/20 dark:bg-black/30",medium:"bg-black/50 dark:bg-black/60",dark:"bg-black/75 dark:bg-black/80"};return e?n.jsx("div",{onClick:t,className:b("fixed inset-0","transition-all duration-200",l[r],a&&"backdrop-blur-sm",s),style:{zIndex:o},role:"presentation","aria-hidden":"true",children:i}):null},$d=({children:e,icon:t,onClick:r,disabled:a=!1,danger:o=!1,selected:s=!1,description:i,shortcut:l,className:c})=>{const d=()=>{a||r?.()},g=m=>{a||(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),r?.())};return n.jsxs("div",{role:"menuitem",tabIndex:a?-1:0,onClick:d,onKeyDown:g,className:b("flex items-center gap-3 px-3 py-2","transition-colors duration-150","cursor-pointer select-none",!a&&!o&&!s&&"hover:bg-gray-100 dark:hover:bg-gray-700",!a&&!o&&s&&"bg-blue-50 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300",!a&&o&&"hover:bg-red-50 dark:hover:bg-red-900/30 text-red-600 dark:text-red-400",a&&"opacity-50 cursor-not-allowed",c),"aria-disabled":a,children:[t&&n.jsx(t,{className:b("h-5 w-5 flex-shrink-0",o?"text-red-600 dark:text-red-400":s?"text-blue-600 dark:text-blue-400":"text-gray-500 dark:text-gray-400")}),n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsx("div",{className:b(T.body.md(),o&&"text-red-600 dark:text-red-400",s&&"text-blue-700 dark:text-blue-300 font-medium",!o&&!s&&"text-gray-900 dark:text-gray-100"),children:e}),i&&n.jsx("div",{className:b(T.caption.default(),"text-gray-600 dark:text-gray-400 mt-0.5"),children:i})]}),l&&n.jsx("span",{className:b(T.caption.default(),"text-gray-500 dark:text-gray-400 flex-shrink-0"),children:l})]})},Od=({isLoading:e,message:t,mode:r="fullscreen",blur:a=!1,spinnerSize:o="large",className:s})=>e?n.jsxs("div",{className:b(r==="fullscreen"?"fixed":"absolute","inset-0 z-50","flex flex-col items-center justify-center","bg-white/80 dark:bg-gray-900/80",a&&"backdrop-blur-sm",s),role:"alert","aria-live":"polite","aria-busy":"true",children:[n.jsx(rt,{size:o}),t&&n.jsx("p",{className:b(T.body.md(),"text-gray-700 dark:text-gray-300 mt-4"),children:t})]}):null,Md=({orientation:e="horizontal",spacing:t="md",thickness:r="thin",className:a})=>{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"}},i=e==="horizontal";return n.jsx("div",{role:"separator","aria-orientation":e,className:b("bg-gray-200 dark:bg-gray-700",i?"w-full":"h-full",s[e][r],o[e][t],a)})};x.createContext(void 0);const zd=({wallet:e,connector:t,className:r="w-8 h-8",iconBasePath:a="/wallet-icons"})=>{const o=e.toLowerCase(),s=l=>{const c={metamask:"metamask.svg",walletconnect:"walletconnect.svg",coinbase:"coinbase.svg",phantom:"phantom.svg",solflare:"solflare.svg",keplr:"keplr.svg",browser:"browser-wallet.svg",injected:"browser-wallet.svg"};for(const[d,g]of Object.entries(c))if(l.includes(d))return`${a}/${g}`;return`${a}/default.svg`};if(t?.icon)return n.jsx("img",{src:t.icon,alt:`${e} wallet`,className:`${r} rounded-lg`,onError:l=>{const c=l.target;c.src=s(o)}});const i=s(o);return n.jsx("img",{src:i,alt:`${e} wallet`,className:`${r} rounded-lg`,onError:l=>{const c=l.target;c.src=`${a}/default.svg`}})},Dd=({size:e="md",className:t="",showText:r=!0,onClick:a,logoSrc:o="/logo.png",logoAlt:s="Logo",logoText:i="0xmail.box",fontFamily:l="Dancing Script, cursive"})=>{const d=(()=>{switch(e){case"sm":return{container:"space-x-2",image:"h-6 w-6",text:"text-lg"};case"md":return{container:"space-x-2",image:"h-8 w-8",text:"text-2xl"};case"lg":return{container:"space-x-3",image:"h-10 w-10",text:"text-3xl"};case"xl":return{container:"space-x-4",image:"h-12 w-12",text:"text-4xl"};default:return{container:"space-x-2",image:"h-8 w-8",text:"text-2xl"}}})(),g=n.jsxs(n.Fragment,{children:[n.jsx("img",{src:o,alt:s,className:d.image}),r&&n.jsx("div",{className:`${d.text} font-bold text-gray-900 dark:text-gray-100`,style:{fontFamily:l,fontWeight:"700"},children:i})]});return a?n.jsx("button",{onClick:a,className:`flex items-center ${d.container} ${t} hover:opacity-80 transition-opacity`,children:g}):n.jsx("div",{className:`flex items-center ${d.container} ${t}`,children:g})},Bd=({shareConfig:e})=>{const[t,r]=x.useState(!1),[a,o]=x.useState(""),[s,i]=x.useState(!1);x.useEffect(()=>{const g=e.onBeforeShare;g&&!a&&(async()=>{i(!0);try{const f=typeof window<"u"?window.location.href:"",p=await g(f);o(p)}catch{const f=typeof window<"u"?window.location.href:"";o(f)}finally{i(!1)}})()},[e,a]);const l=a||(typeof window<"u"?window.location.href:""),c=[{component:Q.TwitterShareButton,icon:Q.TwitterIcon,props:{url:l,title:e.title,hashtags:e.hashtags},label:"Twitter"},{component:Q.FacebookShareButton,icon:Q.FacebookIcon,props:{url:l,quote:`${e.title}
|
|
59
|
+
`,children:[l&&n.jsx("option",{value:"",disabled:!0,children:l}),a.map(g=>n.jsx("option",{value:g.value,disabled:g.disabled,children:g.label},g.value))]})}),di={xs:"w-1.5 h-1.5",sm:"w-2 h-2",md:"w-3 h-3",lg:"w-4 h-4"},ui=({status:e,size:t="sm",pulse:r=!1,className:a})=>n.jsx("div",{className:y("rounded-full flex-shrink-0",Ne(e),di[t],r&&"animate-pulse",a)});function oe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function Gr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gi(...e){return t=>{let r=!1;const a=e.map(o=>{const s=Gr(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<a.length;o++){const s=a[o];typeof s=="function"?s():Gr(e[o],null)}}}}function xe(...e){return S.useCallback(gi(...e),e)}function Kr(e,t=[]){let r=[];function a(s,i){const l=S.createContext(i),c=r.length;r=[...r,i];const d=p=>{const{scope:b,children:f,...m}=p,h=b?.[e]?.[c]||l,w=S.useMemo(()=>m,Object.values(m));return n.jsx(h.Provider,{value:w,children:f})};d.displayName=s+"Provider";function g(p,b){const f=b?.[e]?.[c]||l,m=S.useContext(f);if(m)return m;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[d,g]}const o=()=>{const s=r.map(i=>S.createContext(i));return function(l){const c=l?.[e]||s;return S.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[a,pi(o,...t)]}function pi(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const a=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=a.reduce((l,{useScope:c,scopeName:d})=>{const p=c(s)[`__scope${d}`];return{...l,...p}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var fi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ue=fi.reduce((e,t)=>{const r=St.createSlot(`Primitive.${t}`),a=S.forwardRef((o,s)=>{const{asChild:i,...l}=o,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(c,{...l,ref:s})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function mi(e,t){e&&yr.flushSync(()=>e.dispatchEvent(t))}function ot(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...r)=>t.current?.(...r),[])}function hi(e,t=globalThis?.document){const r=ot(e);S.useEffect(()=>{const a=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[r,t])}var bi="DismissableLayer",jt="dismissableLayer.update",yi="dismissableLayer.pointerDownOutside",xi="dismissableLayer.focusOutside",Yr,Qr=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xr=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...c}=e,d=S.useContext(Qr),[g,p]=S.useState(null),b=g?.ownerDocument??globalThis?.document,[,f]=S.useState({}),m=xe(t,I=>p(I)),h=Array.from(d.layers),[w]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),k=h.indexOf(w),C=g?h.indexOf(g):-1,N=d.layersWithOutsidePointerEventsDisabled.size>0,P=C>=k,A=ki(I=>{const z=I.target,D=[...d.branches].some(M=>M.contains(z));!P||D||(o?.(I),i?.(I),I.defaultPrevented||l?.())},b),L=Ci(I=>{const z=I.target;[...d.branches].some(M=>M.contains(z))||(s?.(I),i?.(I),I.defaultPrevented||l?.())},b);return hi(I=>{C===d.layers.size-1&&(a?.(I),!I.defaultPrevented&&l&&(I.preventDefault(),l()))},b),S.useEffect(()=>{if(g)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Yr=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(g)),d.layers.add(g),Zr(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Yr)}},[g,b,r,d]),S.useEffect(()=>()=>{g&&(d.layers.delete(g),d.layersWithOutsidePointerEventsDisabled.delete(g),Zr())},[g,d]),S.useEffect(()=>{const I=()=>f({});return document.addEventListener(jt,I),()=>document.removeEventListener(jt,I)},[]),n.jsx(ue.div,{...c,ref:m,style:{pointerEvents:N?P?"auto":"none":void 0,...e.style},onFocusCapture:oe(e.onFocusCapture,L.onFocusCapture),onBlurCapture:oe(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:oe(e.onPointerDownCapture,A.onPointerDownCapture)})});Xr.displayName=bi;var vi="DismissableLayerBranch",wi=S.forwardRef((e,t)=>{const r=S.useContext(Qr),a=S.useRef(null),o=xe(t,a);return S.useEffect(()=>{const s=a.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),n.jsx(ue.div,{...e,ref:o})});wi.displayName=vi;function ki(e,t=globalThis?.document){const r=ot(e),a=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const s=l=>{if(l.target&&!a.current){let c=function(){Jr(yi,r,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);a.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>a.current=!0}}function Ci(e,t=globalThis?.document){const r=ot(e),a=S.useRef(!1);return S.useEffect(()=>{const o=s=>{s.target&&!a.current&&Jr(xi,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function Zr(){const e=new CustomEvent(jt);document.dispatchEvent(e)}function Jr(e,t,r,{discrete:a}){const o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),a?mi(o,s):o.dispatchEvent(s)}var ge=globalThis?.document?S.useLayoutEffect:()=>{},Si=S[" useId ".trim().toString()]||(()=>{}),Ni=0;function Ei(e){const[t,r]=S.useState(Si());return ge(()=>{r(a=>a??String(Ni++))},[e]),t?`radix-${t}`:""}const Ai=["top","right","bottom","left"],pe=Math.min,K=Math.max,st=Math.round,it=Math.floor,R=e=>({x:e,y:e}),Pi={left:"right",right:"left",bottom:"top",top:"bottom"},Ti={start:"end",end:"start"};function Ft(e,t,r){return K(e,pe(t,r))}function se(e,t){return typeof e=="function"?e(t):e}function ie(e){return e.split("-")[0]}function Ee(e){return e.split("-")[1]}function _t(e){return e==="x"?"y":"x"}function Ht(e){return e==="y"?"height":"width"}const Ii=new Set(["top","bottom"]);function ee(e){return Ii.has(ie(e))?"y":"x"}function Ut(e){return _t(ee(e))}function $i(e,t,r){r===void 0&&(r=!1);const a=Ee(e),o=Ut(e),s=Ht(o);let i=o==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=lt(i)),[i,lt(i)]}function Li(e){const t=lt(e);return[Vt(e),t,Vt(t)]}function Vt(e){return e.replace(/start|end/g,t=>Ti[t])}const Rr=["left","right"],ea=["right","left"],Oi=["top","bottom"],Mi=["bottom","top"];function zi(e,t,r){switch(e){case"top":case"bottom":return r?t?ea:Rr:t?Rr:ea;case"left":case"right":return t?Oi:Mi;default:return[]}}function Di(e,t,r,a){const o=Ee(e);let s=zi(ie(e),r==="start",a);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Vt)))),s}function lt(e){return e.replace(/left|right|bottom|top/g,t=>Pi[t])}function Bi(e){return{top:0,right:0,bottom:0,left:0,...e}}function ta(e){return typeof e!="number"?Bi(e):{top:e,right:e,bottom:e,left:e}}function ct(e){const{x:t,y:r,width:a,height:o}=e;return{width:a,height:o,top:r,left:t,right:t+a,bottom:r+o,x:t,y:r}}function ra(e,t,r){let{reference:a,floating:o}=e;const s=ee(t),i=Ut(t),l=Ht(i),c=ie(t),d=s==="y",g=a.x+a.width/2-o.width/2,p=a.y+a.height/2-o.height/2,b=a[l]/2-o[l]/2;let f;switch(c){case"top":f={x:g,y:a.y-o.height};break;case"bottom":f={x:g,y:a.y+a.height};break;case"right":f={x:a.x+a.width,y:p};break;case"left":f={x:a.x-o.width,y:p};break;default:f={x:a.x,y:a.y}}switch(Ee(t)){case"start":f[i]-=b*(r&&d?-1:1);break;case"end":f[i]+=b*(r&&d?-1:1);break}return f}const Wi=async(e,t,r)=>{const{placement:a="bottom",strategy:o="absolute",middleware:s=[],platform:i}=r,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:g,y:p}=ra(d,a,c),b=a,f={},m=0;for(let h=0;h<l.length;h++){const{name:w,fn:k}=l[h],{x:C,y:N,data:P,reset:A}=await k({x:g,y:p,initialPlacement:a,placement:b,strategy:o,middlewareData:f,rects:d,platform:i,elements:{reference:e,floating:t}});g=C??g,p=N??p,f={...f,[w]:{...f[w],...P}},A&&m<=50&&(m++,typeof A=="object"&&(A.placement&&(b=A.placement),A.rects&&(d=A.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:g,y:p}=ra(d,b,c)),h=-1)}return{x:g,y:p,placement:b,strategy:o,middlewareData:f}};async function ze(e,t){var r;t===void 0&&(t={});const{x:a,y:o,platform:s,rects:i,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:g="viewport",elementContext:p="floating",altBoundary:b=!1,padding:f=0}=se(t,e),m=ta(f),w=l[b?p==="floating"?"reference":"floating":p],k=ct(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(w)))==null||r?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:d,rootBoundary:g,strategy:c})),C=p==="floating"?{x:a,y:o,width:i.floating.width,height:i.floating.height}:i.reference,N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),P=await(s.isElement==null?void 0:s.isElement(N))?await(s.getScale==null?void 0:s.getScale(N))||{x:1,y:1}:{x:1,y:1},A=ct(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:N,strategy:c}):C);return{top:(k.top-A.top+m.top)/P.y,bottom:(A.bottom-k.bottom+m.bottom)/P.y,left:(k.left-A.left+m.left)/P.x,right:(A.right-k.right+m.right)/P.x}}const ji=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:a,placement:o,rects:s,platform:i,elements:l,middlewareData:c}=t,{element:d,padding:g=0}=se(e,t)||{};if(d==null)return{};const p=ta(g),b={x:r,y:a},f=Ut(o),m=Ht(f),h=await i.getDimensions(d),w=f==="y",k=w?"top":"left",C=w?"bottom":"right",N=w?"clientHeight":"clientWidth",P=s.reference[m]+s.reference[f]-b[f]-s.floating[m],A=b[f]-s.reference[f],L=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let I=L?L[N]:0;(!I||!await(i.isElement==null?void 0:i.isElement(L)))&&(I=l.floating[N]||s.floating[m]);const z=P/2-A/2,D=I/2-h[m]/2-1,M=pe(p[k],D),B=pe(p[C],D),U=M,W=I-h[m]-B,j=I/2-h[m]/2+z,V=Ft(U,j,W),F=!c.arrow&&Ee(o)!=null&&j!==V&&s.reference[m]/2-(j<U?M:B)-h[m]/2<0,q=F?j<U?j-U:j-W:0;return{[f]:b[f]+q,data:{[f]:V,centerOffset:j-V-q,...F&&{alignmentOffset:q}},reset:F}}}),Fi=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,a;const{placement:o,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:g=!0,crossAxis:p=!0,fallbackPlacements:b,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...w}=se(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const k=ie(o),C=ee(l),N=ie(l)===l,P=await(c.isRTL==null?void 0:c.isRTL(d.floating)),A=b||(N||!h?[lt(l)]:Li(l)),L=m!=="none";!b&&L&&A.push(...Di(l,h,m,P));const I=[l,...A],z=await ze(t,w),D=[];let M=((a=s.flip)==null?void 0:a.overflows)||[];if(g&&D.push(z[k]),p){const j=$i(o,i,P);D.push(z[j[0]],z[j[1]])}if(M=[...M,{placement:o,overflows:D}],!D.every(j=>j<=0)){var B,U;const j=(((B=s.flip)==null?void 0:B.index)||0)+1,V=I[j];if(V&&(!(p==="alignment"?C!==ee(V):!1)||M.every(O=>ee(O.placement)===C?O.overflows[0]>0:!0)))return{data:{index:j,overflows:M},reset:{placement:V}};let F=(U=M.filter(q=>q.overflows[0]<=0).sort((q,O)=>q.overflows[1]-O.overflows[1])[0])==null?void 0:U.placement;if(!F)switch(f){case"bestFit":{var W;const q=(W=M.filter(O=>{if(L){const G=ee(O.placement);return G===C||G==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(G=>G>0).reduce((G,ne)=>G+ne,0)]).sort((O,G)=>O[1]-G[1])[0])==null?void 0:W[0];q&&(F=q);break}case"initialPlacement":F=l;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function aa(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function na(e){return Ai.some(t=>e[t]>=0)}const _i=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:a="referenceHidden",...o}=se(e,t);switch(a){case"referenceHidden":{const s=await ze(t,{...o,elementContext:"reference"}),i=aa(s,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:na(i)}}}case"escaped":{const s=await ze(t,{...o,altBoundary:!0}),i=aa(s,r.floating);return{data:{escapedOffsets:i,escaped:na(i)}}}default:return{}}}}},oa=new Set(["left","top"]);async function Hi(e,t){const{placement:r,platform:a,elements:o}=e,s=await(a.isRTL==null?void 0:a.isRTL(o.floating)),i=ie(r),l=Ee(r),c=ee(r)==="y",d=oa.has(i)?-1:1,g=s&&c?-1:1,p=se(t,e);let{mainAxis:b,crossAxis:f,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof m=="number"&&(f=l==="end"?m*-1:m),c?{x:f*g,y:b*d}:{x:b*d,y:f*g}}const Ui=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,a;const{x:o,y:s,placement:i,middlewareData:l}=t,c=await Hi(t,e);return i===((r=l.offset)==null?void 0:r.placement)&&(a=l.arrow)!=null&&a.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},Vi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:a,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:w=>{let{x:k,y:C}=w;return{x:k,y:C}}},...c}=se(e,t),d={x:r,y:a},g=await ze(t,c),p=ee(ie(o)),b=_t(p);let f=d[b],m=d[p];if(s){const w=b==="y"?"top":"left",k=b==="y"?"bottom":"right",C=f+g[w],N=f-g[k];f=Ft(C,f,N)}if(i){const w=p==="y"?"top":"left",k=p==="y"?"bottom":"right",C=m+g[w],N=m-g[k];m=Ft(C,m,N)}const h=l.fn({...t,[b]:f,[p]:m});return{...h,data:{x:h.x-r,y:h.y-a,enabled:{[b]:s,[p]:i}}}}}},qi=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:a,placement:o,rects:s,middlewareData:i}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=se(e,t),g={x:r,y:a},p=ee(o),b=_t(p);let f=g[b],m=g[p];const h=se(l,t),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const N=b==="y"?"height":"width",P=s.reference[b]-s.floating[N]+w.mainAxis,A=s.reference[b]+s.reference[N]-w.mainAxis;f<P?f=P:f>A&&(f=A)}if(d){var k,C;const N=b==="y"?"width":"height",P=oa.has(ie(o)),A=s.reference[p]-s.floating[N]+(P&&((k=i.offset)==null?void 0:k[p])||0)+(P?0:w.crossAxis),L=s.reference[p]+s.reference[N]+(P?0:((C=i.offset)==null?void 0:C[p])||0)-(P?w.crossAxis:0);m<A?m=A:m>L&&(m=L)}return{[b]:f,[p]:m}}}},Gi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,a;const{placement:o,rects:s,platform:i,elements:l}=t,{apply:c=()=>{},...d}=se(e,t),g=await ze(t,d),p=ie(o),b=Ee(o),f=ee(o)==="y",{width:m,height:h}=s.floating;let w,k;p==="top"||p==="bottom"?(w=p,k=b===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(k=p,w=b==="end"?"top":"bottom");const C=h-g.top-g.bottom,N=m-g.left-g.right,P=pe(h-g[w],C),A=pe(m-g[k],N),L=!t.middlewareData.shift;let I=P,z=A;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(z=N),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(I=C),L&&!b){const M=K(g.left,0),B=K(g.right,0),U=K(g.top,0),W=K(g.bottom,0);f?z=m-2*(M!==0||B!==0?M+B:K(g.left,g.right)):I=h-2*(U!==0||W!==0?U+W:K(g.top,g.bottom))}await c({...t,availableWidth:z,availableHeight:I});const D=await i.getDimensions(l.floating);return m!==D.width||h!==D.height?{reset:{rects:!0}}:{}}}};function dt(){return typeof window<"u"}function Ae(e){return sa(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function te(e){var t;return(t=(sa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function sa(e){return dt()?e instanceof Node||e instanceof Y(e).Node:!1}function X(e){return dt()?e instanceof Element||e instanceof Y(e).Element:!1}function re(e){return dt()?e instanceof HTMLElement||e instanceof Y(e).HTMLElement:!1}function ia(e){return!dt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}const Ki=new Set(["inline","contents"]);function De(e){const{overflow:t,overflowX:r,overflowY:a,display:o}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+r)&&!Ki.has(o)}const Yi=new Set(["table","td","th"]);function Qi(e){return Yi.has(Ae(e))}const Xi=[":popover-open",":modal"];function ut(e){return Xi.some(t=>{try{return e.matches(t)}catch{return!1}})}const Zi=["transform","translate","scale","rotate","perspective"],Ji=["transform","translate","scale","rotate","perspective","filter"],Ri=["paint","layout","strict","content"];function qt(e){const t=Gt(),r=X(e)?Z(e):e;return Zi.some(a=>r[a]?r[a]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Ji.some(a=>(r.willChange||"").includes(a))||Ri.some(a=>(r.contain||"").includes(a))}function el(e){let t=fe(e);for(;re(t)&&!Pe(t);){if(qt(t))return t;if(ut(t))return null;t=fe(t)}return null}function Gt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const tl=new Set(["html","body","#document"]);function Pe(e){return tl.has(Ae(e))}function Z(e){return Y(e).getComputedStyle(e)}function gt(e){return X(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function fe(e){if(Ae(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ia(e)&&e.host||te(e);return ia(t)?t.host:t}function la(e){const t=fe(e);return Pe(t)?e.ownerDocument?e.ownerDocument.body:e.body:re(t)&&De(t)?t:la(t)}function Be(e,t,r){var a;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=la(e),s=o===((a=e.ownerDocument)==null?void 0:a.body),i=Y(o);if(s){const l=Kt(i);return t.concat(i,i.visualViewport||[],De(o)?o:[],l&&r?Be(l):[])}return t.concat(o,Be(o,[],r))}function Kt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ca(e){const t=Z(e);let r=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const o=re(e),s=o?e.offsetWidth:r,i=o?e.offsetHeight:a,l=st(r)!==s||st(a)!==i;return l&&(r=s,a=i),{width:r,height:a,$:l}}function Yt(e){return X(e)?e:e.contextElement}function Te(e){const t=Yt(e);if(!re(t))return R(1);const r=t.getBoundingClientRect(),{width:a,height:o,$:s}=ca(t);let i=(s?st(r.width):r.width)/a,l=(s?st(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const rl=R(0);function da(e){const t=Y(e);return!Gt()||!t.visualViewport?rl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function al(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Y(e)?!1:t}function ve(e,t,r,a){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),s=Yt(e);let i=R(1);t&&(a?X(a)&&(i=Te(a)):i=Te(e));const l=al(s,r,a)?da(s):R(0);let c=(o.left+l.x)/i.x,d=(o.top+l.y)/i.y,g=o.width/i.x,p=o.height/i.y;if(s){const b=Y(s),f=a&&X(a)?Y(a):a;let m=b,h=Kt(m);for(;h&&a&&f!==m;){const w=Te(h),k=h.getBoundingClientRect(),C=Z(h),N=k.left+(h.clientLeft+parseFloat(C.paddingLeft))*w.x,P=k.top+(h.clientTop+parseFloat(C.paddingTop))*w.y;c*=w.x,d*=w.y,g*=w.x,p*=w.y,c+=N,d+=P,m=Y(h),h=Kt(m)}}return ct({width:g,height:p,x:c,y:d})}function pt(e,t){const r=gt(e).scrollLeft;return t?t.left+r:ve(te(e)).left+r}function ua(e,t){const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-pt(e,r),o=r.top+t.scrollTop;return{x:a,y:o}}function nl(e){let{elements:t,rect:r,offsetParent:a,strategy:o}=e;const s=o==="fixed",i=te(a),l=t?ut(t.floating):!1;if(a===i||l&&s)return r;let c={scrollLeft:0,scrollTop:0},d=R(1);const g=R(0),p=re(a);if((p||!p&&!s)&&((Ae(a)!=="body"||De(i))&&(c=gt(a)),re(a))){const f=ve(a);d=Te(a),g.x=f.x+a.clientLeft,g.y=f.y+a.clientTop}const b=i&&!p&&!s?ua(i,c):R(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+g.x+b.x,y:r.y*d.y-c.scrollTop*d.y+g.y+b.y}}function ol(e){return Array.from(e.getClientRects())}function sl(e){const t=te(e),r=gt(e),a=e.ownerDocument.body,o=K(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),s=K(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let i=-r.scrollLeft+pt(e);const l=-r.scrollTop;return Z(a).direction==="rtl"&&(i+=K(t.clientWidth,a.clientWidth)-o),{width:o,height:s,x:i,y:l}}const ga=25;function il(e,t){const r=Y(e),a=te(e),o=r.visualViewport;let s=a.clientWidth,i=a.clientHeight,l=0,c=0;if(o){s=o.width,i=o.height;const g=Gt();(!g||g&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}const d=pt(a);if(d<=0){const g=a.ownerDocument,p=g.body,b=getComputedStyle(p),f=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,m=Math.abs(a.clientWidth-p.clientWidth-f);m<=ga&&(s-=m)}else d<=ga&&(s+=d);return{width:s,height:i,x:l,y:c}}const ll=new Set(["absolute","fixed"]);function cl(e,t){const r=ve(e,!0,t==="fixed"),a=r.top+e.clientTop,o=r.left+e.clientLeft,s=re(e)?Te(e):R(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,c=o*s.x,d=a*s.y;return{width:i,height:l,x:c,y:d}}function pa(e,t,r){let a;if(t==="viewport")a=il(e,r);else if(t==="document")a=sl(te(e));else if(X(t))a=cl(t,r);else{const o=da(e);a={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ct(a)}function fa(e,t){const r=fe(e);return r===t||!X(r)||Pe(r)?!1:Z(r).position==="fixed"||fa(r,t)}function dl(e,t){const r=t.get(e);if(r)return r;let a=Be(e,[],!1).filter(l=>X(l)&&Ae(l)!=="body"),o=null;const s=Z(e).position==="fixed";let i=s?fe(e):e;for(;X(i)&&!Pe(i);){const l=Z(i),c=qt(i);!c&&l.position==="fixed"&&(o=null),(s?!c&&!o:!c&&l.position==="static"&&!!o&&ll.has(o.position)||De(i)&&!c&&fa(e,i))?a=a.filter(g=>g!==i):o=l,i=fe(i)}return t.set(e,a),a}function ul(e){let{element:t,boundary:r,rootBoundary:a,strategy:o}=e;const i=[...r==="clippingAncestors"?ut(t)?[]:dl(t,this._c):[].concat(r),a],l=i[0],c=i.reduce((d,g)=>{const p=pa(t,g,o);return d.top=K(p.top,d.top),d.right=pe(p.right,d.right),d.bottom=pe(p.bottom,d.bottom),d.left=K(p.left,d.left),d},pa(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function gl(e){const{width:t,height:r}=ca(e);return{width:t,height:r}}function pl(e,t,r){const a=re(t),o=te(t),s=r==="fixed",i=ve(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const c=R(0);function d(){c.x=pt(o)}if(a||!a&&!s)if((Ae(t)!=="body"||De(o))&&(l=gt(t)),a){const f=ve(t,!0,s,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else o&&d();s&&!a&&o&&d();const g=o&&!a&&!s?ua(o,l):R(0),p=i.left+l.scrollLeft-c.x-g.x,b=i.top+l.scrollTop-c.y-g.y;return{x:p,y:b,width:i.width,height:i.height}}function Qt(e){return Z(e).position==="static"}function ma(e,t){if(!re(e)||Z(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return te(e)===r&&(r=r.ownerDocument.body),r}function ha(e,t){const r=Y(e);if(ut(e))return r;if(!re(e)){let o=fe(e);for(;o&&!Pe(o);){if(X(o)&&!Qt(o))return o;o=fe(o)}return r}let a=ma(e,t);for(;a&&Qi(a)&&Qt(a);)a=ma(a,t);return a&&Pe(a)&&Qt(a)&&!qt(a)?r:a||el(e)||r}const fl=async function(e){const t=this.getOffsetParent||ha,r=this.getDimensions,a=await r(e.floating);return{reference:pl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function ml(e){return Z(e).direction==="rtl"}const hl={convertOffsetParentRelativeRectToViewportRelativeRect:nl,getDocumentElement:te,getClippingRect:ul,getOffsetParent:ha,getElementRects:fl,getClientRects:ol,getDimensions:gl,getScale:Te,isElement:X,isRTL:ml};function ba(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function bl(e,t){let r=null,a;const o=te(e);function s(){var l;clearTimeout(a),(l=r)==null||l.disconnect(),r=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const d=e.getBoundingClientRect(),{left:g,top:p,width:b,height:f}=d;if(l||t(),!b||!f)return;const m=it(p),h=it(o.clientWidth-(g+b)),w=it(o.clientHeight-(p+f)),k=it(g),N={rootMargin:-m+"px "+-h+"px "+-w+"px "+-k+"px",threshold:K(0,pe(1,c))||1};let P=!0;function A(L){const I=L[0].intersectionRatio;if(I!==c){if(!P)return i();I?i(!1,I):a=setTimeout(()=>{i(!1,1e-7)},1e3)}I===1&&!ba(d,e.getBoundingClientRect())&&i(),P=!1}try{r=new IntersectionObserver(A,{...N,root:o.ownerDocument})}catch{r=new IntersectionObserver(A,N)}r.observe(e)}return i(!0),s}function yl(e,t,r,a){a===void 0&&(a={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=a,d=Yt(e),g=o||s?[...d?Be(d):[],...Be(t)]:[];g.forEach(k=>{o&&k.addEventListener("scroll",r,{passive:!0}),s&&k.addEventListener("resize",r)});const p=d&&l?bl(d,r):null;let b=-1,f=null;i&&(f=new ResizeObserver(k=>{let[C]=k;C&&C.target===d&&f&&(f.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var N;(N=f)==null||N.observe(t)})),r()}),d&&!c&&f.observe(d),f.observe(t));let m,h=c?ve(e):null;c&&w();function w(){const k=ve(e);h&&!ba(h,k)&&r(),h=k,m=requestAnimationFrame(w)}return r(),()=>{var k;g.forEach(C=>{o&&C.removeEventListener("scroll",r),s&&C.removeEventListener("resize",r)}),p?.(),(k=f)==null||k.disconnect(),f=null,c&&cancelAnimationFrame(m)}}const xl=Ui,vl=Vi,wl=Fi,kl=Gi,Cl=_i,ya=ji,Sl=qi,Nl=(e,t,r)=>{const a=new Map,o={platform:hl,...r},s={...o.platform,_c:a};return Wi(e,t,{...o,platform:s})};var El=typeof document<"u",Al=function(){},ft=El?x.useLayoutEffect:Al;function mt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,a,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(a=r;a--!==0;)if(!mt(e[a],t[a]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(a=r;a--!==0;)if(!{}.hasOwnProperty.call(t,o[a]))return!1;for(a=r;a--!==0;){const s=o[a];if(!(s==="_owner"&&e.$$typeof)&&!mt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function xa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function va(e,t){const r=xa(e);return Math.round(t*r)/r}function Xt(e){const t=S.useRef(e);return ft(()=>{t.current=e}),t}function Pl(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:a=[],platform:o,elements:{reference:s,floating:i}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[g,p]=S.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[b,f]=S.useState(a);mt(b,a)||f(a);const[m,h]=S.useState(null),[w,k]=S.useState(null),C=S.useCallback(O=>{O!==L.current&&(L.current=O,h(O))},[]),N=S.useCallback(O=>{O!==I.current&&(I.current=O,k(O))},[]),P=s||m,A=i||w,L=S.useRef(null),I=S.useRef(null),z=S.useRef(g),D=c!=null,M=Xt(c),B=Xt(o),U=Xt(d),W=S.useCallback(()=>{if(!L.current||!I.current)return;const O={placement:t,strategy:r,middleware:b};B.current&&(O.platform=B.current),Nl(L.current,I.current,O).then(G=>{const ne={...G,isPositioned:U.current!==!1};j.current&&!mt(z.current,ne)&&(z.current=ne,yr.flushSync(()=>{p(ne)}))})},[b,t,r,B,U]);ft(()=>{d===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,p(O=>({...O,isPositioned:!1})))},[d]);const j=S.useRef(!1);ft(()=>(j.current=!0,()=>{j.current=!1}),[]),ft(()=>{if(P&&(L.current=P),A&&(I.current=A),P&&A){if(M.current)return M.current(P,A,W);W()}},[P,A,W,M,D]);const V=S.useMemo(()=>({reference:L,floating:I,setReference:C,setFloating:N}),[C,N]),F=S.useMemo(()=>({reference:P,floating:A}),[P,A]),q=S.useMemo(()=>{const O={position:r,left:0,top:0};if(!F.floating)return O;const G=va(F.floating,g.x),ne=va(F.floating,g.y);return l?{...O,transform:"translate("+G+"px, "+ne+"px)",...xa(F.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:G,top:ne}},[r,l,F.floating,g.x,g.y]);return S.useMemo(()=>({...g,update:W,refs:V,elements:F,floatingStyles:q}),[g,W,V,F,q])}const Tl=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:a,padding:o}=typeof e=="function"?e(r):e;return a&&t(a)?a.current!=null?ya({element:a.current,padding:o}).fn(r):{}:a?ya({element:a,padding:o}).fn(r):{}}}},Il=(e,t)=>({...xl(e),options:[e,t]}),$l=(e,t)=>({...vl(e),options:[e,t]}),Ll=(e,t)=>({...Sl(e),options:[e,t]}),Ol=(e,t)=>({...wl(e),options:[e,t]}),Ml=(e,t)=>({...kl(e),options:[e,t]}),zl=(e,t)=>({...Cl(e),options:[e,t]}),Dl=(e,t)=>({...Tl(e),options:[e,t]});var Bl="Arrow",wa=S.forwardRef((e,t)=>{const{children:r,width:a=10,height:o=5,...s}=e;return n.jsx(ue.svg,{...s,ref:t,width:a,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:n.jsx("polygon",{points:"0,0 30,0 15,10"})})});wa.displayName=Bl;var Wl=wa;function jl(e){const[t,r]=S.useState(void 0);return ge(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,l;if("borderBoxSize"in s){const c=s.borderBoxSize,d=Array.isArray(c)?c[0]:c;i=d.inlineSize,l=d.blockSize}else i=e.offsetWidth,l=e.offsetHeight;r({width:i,height:l})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else r(void 0)},[e]),t}var Zt="Popper",[ka,Ca]=Kr(Zt),[Fl,Sa]=ka(Zt),Na=e=>{const{__scopePopper:t,children:r}=e,[a,o]=S.useState(null);return n.jsx(Fl,{scope:t,anchor:a,onAnchorChange:o,children:r})};Na.displayName=Zt;var Ea="PopperAnchor",Aa=S.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:a,...o}=e,s=Sa(Ea,r),i=S.useRef(null),l=xe(t,i),c=S.useRef(null);return S.useEffect(()=>{const d=c.current;c.current=a?.current||i.current,d!==c.current&&s.onAnchorChange(c.current)}),a?null:n.jsx(ue.div,{...o,ref:l})});Aa.displayName=Ea;var Jt="PopperContent",[_l,Hl]=ka(Jt),Pa=S.forwardRef((e,t)=>{const{__scopePopper:r,side:a="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:g=0,sticky:p="partial",hideWhenDetached:b=!1,updatePositionStrategy:f="optimized",onPlaced:m,...h}=e,w=Sa(Jt,r),[k,C]=S.useState(null),N=xe(t,Ye=>C(Ye)),[P,A]=S.useState(null),L=jl(P),I=L?.width??0,z=L?.height??0,D=a+(s!=="center"?"-"+s:""),M=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},B=Array.isArray(d)?d:[d],U=B.length>0,W={padding:M,boundary:B.filter(Vl),altBoundary:U},{refs:j,floatingStyles:V,placement:F,isPositioned:q,middlewareData:O}=Pl({strategy:"fixed",placement:D,whileElementsMounted:(...Ye)=>yl(...Ye,{animationFrame:f==="always"}),elements:{reference:w.anchor},middleware:[Il({mainAxis:o+z,alignmentAxis:i}),c&&$l({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Ll():void 0,...W}),c&&Ol({...W}),Ml({...W,apply:({elements:Ye,rects:mn,availableWidth:Yu,availableHeight:Qu})=>{const{width:Xu,height:Zu}=mn.reference,Ct=Ye.floating.style;Ct.setProperty("--radix-popper-available-width",`${Yu}px`),Ct.setProperty("--radix-popper-available-height",`${Qu}px`),Ct.setProperty("--radix-popper-anchor-width",`${Xu}px`),Ct.setProperty("--radix-popper-anchor-height",`${Zu}px`)}}),P&&Dl({element:P,padding:l}),ql({arrowWidth:I,arrowHeight:z}),b&&zl({strategy:"referenceHidden",...W})]}),[G,ne]=$a(F),fn=ot(m);ge(()=>{q&&fn?.()},[q,fn]);const Uu=O.arrow?.x,Vu=O.arrow?.y,qu=O.arrow?.centerOffset!==0,[Gu,Ku]=S.useState();return ge(()=>{k&&Ku(window.getComputedStyle(k).zIndex)},[k]),n.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:q?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Gu,"--radix-popper-transform-origin":[O.transformOrigin?.x,O.transformOrigin?.y].join(" "),...O.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:n.jsx(_l,{scope:r,placedSide:G,onArrowChange:A,arrowX:Uu,arrowY:Vu,shouldHideArrow:qu,children:n.jsx(ue.div,{"data-side":G,"data-align":ne,...h,ref:N,style:{...h.style,animation:q?void 0:"none"}})})})});Pa.displayName=Jt;var Ta="PopperArrow",Ul={top:"bottom",right:"left",bottom:"top",left:"right"},Ia=S.forwardRef(function(t,r){const{__scopePopper:a,...o}=t,s=Hl(Ta,a),i=Ul[s.placedSide];return n.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:n.jsx(Wl,{...o,ref:r,style:{...o.style,display:"block"}})})});Ia.displayName=Ta;function Vl(e){return e!==null}var ql=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:a,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,g]=$a(r),p={start:"0%",center:"50%",end:"100%"}[g],b=(o.arrow?.x??0)+l/2,f=(o.arrow?.y??0)+c/2;let m="",h="";return d==="bottom"?(m=i?p:`${b}px`,h=`${-c}px`):d==="top"?(m=i?p:`${b}px`,h=`${a.floating.height+c}px`):d==="right"?(m=`${-c}px`,h=i?p:`${f}px`):d==="left"&&(m=`${a.floating.width+c}px`,h=i?p:`${f}px`),{data:{x:m,y:h}}}});function $a(e){const[t,r="center"]=e.split("-");return[t,r]}var Gl=Na,Kl=Aa,Yl=Pa,Ql=Ia,Xl="Portal",La=S.forwardRef((e,t)=>{const{container:r,...a}=e,[o,s]=S.useState(!1);ge(()=>s(!0),[]);const i=r||o&&globalThis?.document?.body;return i?Qe.createPortal(n.jsx(ue.div,{...a,ref:t}),i):null});La.displayName=Xl;function Zl(e,t){return S.useReducer((r,a)=>t[r][a]??r,e)}var Rt=e=>{const{present:t,children:r}=e,a=Jl(t),o=typeof r=="function"?r({present:a.isPresent}):S.Children.only(r),s=xe(a.ref,Rl(o));return typeof r=="function"||a.isPresent?S.cloneElement(o,{ref:s}):null};Rt.displayName="Presence";function Jl(e){const[t,r]=S.useState(),a=S.useRef(null),o=S.useRef(e),s=S.useRef("none"),i=e?"mounted":"unmounted",[l,c]=Zl(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const d=ht(a.current);s.current=l==="mounted"?d:"none"},[l]),ge(()=>{const d=a.current,g=o.current;if(g!==e){const b=s.current,f=ht(d);e?c("MOUNT"):f==="none"||d?.display==="none"?c("UNMOUNT"):c(g&&b!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ge(()=>{if(t){let d;const g=t.ownerDocument.defaultView??window,p=f=>{const h=ht(a.current).includes(CSS.escape(f.animationName));if(f.target===t&&h&&(c("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",d=g.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},b=f=>{f.target===t&&(s.current=ht(a.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{g.clearTimeout(d),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:S.useCallback(d=>{a.current=d?getComputedStyle(d):null,r(d)},[])}}function ht(e){return e?.animationName||"none"}function Rl(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var ec=S[" useInsertionEffect ".trim().toString()]||ge;function tc({prop:e,defaultProp:t,onChange:r=()=>{},caller:a}){const[o,s,i]=rc({defaultProp:t,onChange:r}),l=e!==void 0,c=l?e:o;{const g=S.useRef(e!==void 0);S.useEffect(()=>{const p=g.current;p!==l&&console.warn(`${a} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=l},[l,a])}const d=S.useCallback(g=>{if(l){const p=ac(g)?g(e):g;p!==e&&i.current?.(p)}else s(g)},[l,e,s,i]);return[c,d]}function rc({defaultProp:e,onChange:t}){const[r,a]=S.useState(e),o=S.useRef(r),s=S.useRef(t);return ec(()=>{s.current=t},[t]),S.useEffect(()=>{o.current!==r&&(s.current?.(r),o.current=r)},[r,o]),[r,a,s]}function ac(e){return typeof e=="function"}var nc=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),oc="VisuallyHidden",Oa=S.forwardRef((e,t)=>n.jsx(ue.span,{...e,ref:t,style:{...nc,...e.style}}));Oa.displayName=oc;var sc=Oa,[bt]=Kr("Tooltip",[Ca]),yt=Ca(),Ma="TooltipProvider",ic=700,er="tooltip.open",[lc,tr]=bt(Ma),za=e=>{const{__scopeTooltip:t,delayDuration:r=ic,skipDelayDuration:a=300,disableHoverableContent:o=!1,children:s}=e,i=S.useRef(!0),l=S.useRef(!1),c=S.useRef(0);return S.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),n.jsx(lc,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:S.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,a)},[a]),isPointerInTransitRef:l,onPointerInTransitChange:S.useCallback(d=>{l.current=d},[]),disableHoverableContent:o,children:s})};za.displayName=Ma;var We="Tooltip",[cc,je]=bt(We),Da=e=>{const{__scopeTooltip:t,children:r,open:a,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:l}=e,c=tr(We,e.__scopeTooltip),d=yt(t),[g,p]=S.useState(null),b=Ei(),f=S.useRef(0),m=i??c.disableHoverableContent,h=l??c.delayDuration,w=S.useRef(!1),[k,C]=tc({prop:a,defaultProp:o??!1,onChange:I=>{I?(c.onOpen(),document.dispatchEvent(new CustomEvent(er))):c.onClose(),s?.(I)},caller:We}),N=S.useMemo(()=>k?w.current?"delayed-open":"instant-open":"closed",[k]),P=S.useCallback(()=>{window.clearTimeout(f.current),f.current=0,w.current=!1,C(!0)},[C]),A=S.useCallback(()=>{window.clearTimeout(f.current),f.current=0,C(!1)},[C]),L=S.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{w.current=!0,C(!0),f.current=0},h)},[h,C]);return S.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),n.jsx(Gl,{...d,children:n.jsx(cc,{scope:t,contentId:b,open:k,stateAttribute:N,trigger:g,onTriggerChange:p,onTriggerEnter:S.useCallback(()=>{c.isOpenDelayedRef.current?L():P()},[c.isOpenDelayedRef,L,P]),onTriggerLeave:S.useCallback(()=>{m?A():(window.clearTimeout(f.current),f.current=0)},[A,m]),onOpen:P,onClose:A,disableHoverableContent:m,children:r})})};Da.displayName=We;var rr="TooltipTrigger",Ba=S.forwardRef((e,t)=>{const{__scopeTooltip:r,...a}=e,o=je(rr,r),s=tr(rr,r),i=yt(r),l=S.useRef(null),c=xe(t,l,o.onTriggerChange),d=S.useRef(!1),g=S.useRef(!1),p=S.useCallback(()=>d.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),n.jsx(Kl,{asChild:!0,...i,children:n.jsx(ue.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...a,ref:c,onPointerMove:oe(e.onPointerMove,b=>{b.pointerType!=="touch"&&!g.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),g.current=!0)}),onPointerLeave:oe(e.onPointerLeave,()=>{o.onTriggerLeave(),g.current=!1}),onPointerDown:oe(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:oe(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:oe(e.onBlur,o.onClose),onClick:oe(e.onClick,o.onClose)})})});Ba.displayName=rr;var ar="TooltipPortal",[dc,uc]=bt(ar,{forceMount:void 0}),Wa=e=>{const{__scopeTooltip:t,forceMount:r,children:a,container:o}=e,s=je(ar,t);return n.jsx(dc,{scope:t,forceMount:r,children:n.jsx(Rt,{present:r||s.open,children:n.jsx(La,{asChild:!0,container:o,children:a})})})};Wa.displayName=ar;var Ie="TooltipContent",ja=S.forwardRef((e,t)=>{const r=uc(Ie,e.__scopeTooltip),{forceMount:a=r.forceMount,side:o="top",...s}=e,i=je(Ie,e.__scopeTooltip);return n.jsx(Rt,{present:a||i.open,children:i.disableHoverableContent?n.jsx(Fa,{side:o,...s,ref:t}):n.jsx(gc,{side:o,...s,ref:t})})}),gc=S.forwardRef((e,t)=>{const r=je(Ie,e.__scopeTooltip),a=tr(Ie,e.__scopeTooltip),o=S.useRef(null),s=xe(t,o),[i,l]=S.useState(null),{trigger:c,onClose:d}=r,g=o.current,{onPointerInTransitChange:p}=a,b=S.useCallback(()=>{l(null),p(!1)},[p]),f=S.useCallback((m,h)=>{const w=m.currentTarget,k={x:m.clientX,y:m.clientY},C=hc(k,w.getBoundingClientRect()),N=bc(k,C),P=yc(h.getBoundingClientRect()),A=vc([...N,...P]);l(A),p(!0)},[p]);return S.useEffect(()=>()=>b(),[b]),S.useEffect(()=>{if(c&&g){const m=w=>f(w,g),h=w=>f(w,c);return c.addEventListener("pointerleave",m),g.addEventListener("pointerleave",h),()=>{c.removeEventListener("pointerleave",m),g.removeEventListener("pointerleave",h)}}},[c,g,f,b]),S.useEffect(()=>{if(i){const m=h=>{const w=h.target,k={x:h.clientX,y:h.clientY},C=c?.contains(w)||g?.contains(w),N=!xc(k,i);C?b():N&&(b(),d())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,g,i,d,b]),n.jsx(Fa,{...e,ref:s})}),[pc,fc]=bt(We,{isInside:!1}),mc=St.createSlottable("TooltipContent"),Fa=S.forwardRef((e,t)=>{const{__scopeTooltip:r,children:a,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...l}=e,c=je(Ie,r),d=yt(r),{onClose:g}=c;return S.useEffect(()=>(document.addEventListener(er,g),()=>document.removeEventListener(er,g)),[g]),S.useEffect(()=>{if(c.trigger){const p=b=>{b.target?.contains(c.trigger)&&g()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,g]),n.jsx(Xr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:g,children:n.jsxs(Yl,{"data-state":c.stateAttribute,...d,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[n.jsx(mc,{children:a}),n.jsx(pc,{scope:r,isInside:!0,children:n.jsx(sc,{id:c.contentId,role:"tooltip",children:o||a})})]})})});ja.displayName=Ie;var _a="TooltipArrow",Ha=S.forwardRef((e,t)=>{const{__scopeTooltip:r,...a}=e,o=yt(r);return fc(_a,r).isInside?null:n.jsx(Ql,{...o,...a,ref:t})});Ha.displayName=_a;function hc(e,t){const r=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,a,o,s)){case s:return"left";case o:return"right";case r:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function bc(e,t,r=5){const a=[];switch(t){case"top":a.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":a.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":a.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":a.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return a}function yc(e){const{top:t,right:r,bottom:a,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:a},{x:o,y:a}]}function xc(e,t){const{x:r,y:a}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const l=t[s],c=t[i],d=l.x,g=l.y,p=c.x,b=c.y;g>a!=b>a&&r<(p-d)*(a-g)/(b-g)+d&&(o=!o)}return o}function vc(e){const t=e.slice();return t.sort((r,a)=>r.x<a.x?-1:r.x>a.x?1:r.y<a.y?-1:r.y>a.y?1:0),wc(t)}function wc(e){if(e.length<=1)return e.slice();const t=[];for(let a=0;a<e.length;a++){const o=e[a];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let a=e.length-1;a>=0;a--){const o=e[a];for(;r.length>=2;){const s=r[r.length-1],i=r[r.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var kc=za,Cc=Da,Sc=Ba,Nc=Wa,Ec=ja,Ac=Ha;const Pc={operational:{color:"bg-green-500/80",hoverColor:"hover:bg-green-500",label:"All systems operational"},degraded:{color:"bg-yellow-500/80",hoverColor:"hover:bg-yellow-500",label:"Degraded performance"},"major-outage":{color:"bg-red-500/80",hoverColor:"hover:bg-red-500",label:"Major outage"}},Tc={xs:"w-1.5 h-1.5",sm:"w-2 h-2",md:"w-3 h-3",lg:"w-4 h-4"},Ic=({statusPageUrl:e="/status",apiEndpoint:t,refreshInterval:r=6e4,size:a="sm",className:o,version:s,onStatusChange:i,isNetworkOnline:l=!0})=>{const[c,d]=x.useState({status:"operational",version:s||"1.0.0",message:"All systems operational"}),[g,p]=x.useState(!1);x.useEffect(()=>{const w=async()=>{if(t){p(!0);try{const k=await fetch(t);if(k.ok){const C=await k.json();let N;C.status?.indicator?N={status:{none:"operational",minor:"degraded",major:"major-outage",critical:"major-outage"}[C.status.indicator]||"operational",version:s,message:C.status.description}:N=C,d(N),i?.(N)}}catch{}finally{p(!1)}}};if(w(),r>0){const k=setInterval(w,r);return()=>clearInterval(k)}},[t,r,i,s]);const b=l?c.status:"major-outage",f=Pc[b],m=w=>{if(w.preventDefault(),!l){window.alert("Network is not available. Please check your internet connection and try again later.");return}window.open(e,"_blank","noopener,noreferrer")},h=n.jsx("div",{className:"text-xs",children:l?n.jsxs(n.Fragment,{children:[c.version&&n.jsxs("div",{className:"font-semibold mb-1",children:["Version ",c.version]}),n.jsx("div",{children:c.message||f.label}),c.incidents&&c.incidents.length>0&&n.jsxs("div",{className:"mt-2 text-[10px] opacity-90",children:[n.jsx("div",{className:"font-medium",children:"Current incidents:"}),n.jsx("ul",{className:"list-disc list-inside",children:c.incidents.map((w,k)=>n.jsx("li",{children:w},k))})]})]}):n.jsx("div",{children:"Network unavailable"})});return n.jsx(kc,{delayDuration:200,children:n.jsxs(Cc,{children:[n.jsx(Sc,{asChild:!0,children:n.jsx("button",{onClick:m,className:y("rounded-full flex-shrink-0 transition-all duration-200 cursor-pointer","ring-offset-2 focus:outline-none focus:ring-2 focus:ring-offset-2",f.color,f.hoverColor,Tc[a],(g||!l)&&"animate-pulse",o),"aria-label":`System status: ${f.label}`})}),n.jsx(Nc,{children:n.jsxs(Ec,{className:"z-50 overflow-hidden rounded-md bg-gray-900 dark:bg-gray-800 px-3 py-2 text-white shadow-md animate-in fade-in-0 zoom-in-95",sideOffset:5,children:[h,n.jsx(Ac,{className:"fill-gray-900 dark:fill-gray-800"})]})})]})})},$c={sm:{container:"px-6 py-3",icon:"h-5 w-5 mr-2",text:"font-semibold"},md:{container:"px-6 py-3",icon:"h-5 w-5 mr-2",text:"font-semibold"},lg:{container:"px-6 py-3",icon:"h-5 w-5 mr-2",text:"font-semibold"}},Lc=({icon:e,text:t,variant:r="default",size:a="md",className:o})=>{const{container:s,icon:i}=Uo(r),l=$c[a];return n.jsxs("div",{className:y("inline-flex items-center rounded-full mb-6",s,l.container,o),children:[n.jsx("div",{className:y("animate-float-icon",i,l.icon),children:e}),n.jsx("span",{className:l.text,children:t})]})},Oc=_.cva("",{variants:{variant:{hero:T.heading.display.hero(),display:T.heading.display.lg(),h1:T.heading.h1(),h2:T.heading.h2(),h3:T.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"}}),Mc=({children:e,variant:t="h1",responsive:r=!0,align:a="left",color:o="default",className:s,as:i})=>{const l=i||(t==="hero"||t==="display"||t==="h1"?"h1":t==="h2"?"h2":"h3");return n.jsx(l,{className:y(Oc({variant:t,responsive:r,align:a,color:o}),s),children:e})},zc=_.cva("",{variants:{variant:{h2:T.heading.h2(),h3:T.heading.h3(),h4:T.heading.h4(),h5:T.heading.h5(),h6:T.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"}}),Dc=({children:e,variant:t="h2",spacing:r="md",align:a="left",className:o,as:s})=>{const i=s||t;return x.createElement(i,{className:y(zc({variant:t,spacing:r,align:a}),o)},e)},Bc=_.cva("",{variants:{variant:{body:T.body.md(),lead:T.body.lg(),large:T.body.lg(),small:T.body.sm(),caption:T.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"}}),Wc=({children:e,variant:t="body",color:r="default",align:a="left",className:o,as:s="p"})=>x.createElement(s,{className:y(Bc({variant:t,color:r,align:a}),o)},e),jc=_.cva(T.link.default(),{variants:{variant:{default:T.link.default(),subtle:T.link.subtle(),muted:T.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}}),Fc=({children:e,href:t,variant:r="default",external:a=!1,className:o,target:s,rel:i})=>n.jsxs("a",{href:t,target:s||(a?"_blank":void 0),rel:i||(a?"noopener noreferrer":void 0),className:y(jc({variant:r,external:a}),o),children:[e,a&&n.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.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"})})]}),xt=_.cva("transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 rounded-sm",{variants:{variant:{subtle:T.link.subtle(),default:T.link.default(),muted:T.link.muted(),external:T.link.external(),inherit:"text-inherit hover:text-blue-600 dark:hover:text-blue-400 underline-offset-2 hover:underline transition-colors duration-200"},size:{sm:"text-sm",default:"text-base",lg:"text-lg"}},defaultVariants:{variant:"subtle",size:"default"}}),nr=S.forwardRef(({className:e,variant:t,size:r,to:a,href:o,external:s,children:i,...l},c)=>{const d=a||o;return d?s||d.startsWith("http")||d.startsWith("mailto:")?n.jsx("a",{className:y(xt({variant:t==="subtle"?"external":t,size:r,className:e})),href:d,target:"_blank",rel:"noopener noreferrer",ref:c,...l,children:i}):n.jsx(Ze.Link,{className:y(xt({variant:t,size:r,className:e})),to:d,ref:c,...l,children:i}):n.jsx("span",{className:y(xt({variant:t,size:r,className:e})),...l,children:i})});nr.displayName="SmartLink";const _c=(e,t)=>S.useMemo(()=>{let r=e;return Object.entries(t).forEach(([a,o])=>{const s=new RegExp(`\\b${a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`,"gi");r=r.replace(s,i=>`<SmartLink to="${o}" variant="subtle">${i}</SmartLink>`)}),r},[e,t]),Hc={documentation:"/document",settings:"/settings",about:"/about",contact:"/contact","privacy policy":"/privacy",privacy:"/privacy","terms of service":"/terms",terms:"/terms","cookie policy":"/cookies",cookies:"/cookies",points:"/points","earn points":"/how-to-earn-points","how to earn points":"/how-to-earn-points","connect wallet":"/connect","connect your wallet":"/connect","wallet connection":"/connect",wallet:"/connect",compose:"/compose","compose email":"/compose","send email":"/compose",mail:"/mail",email:"/mail",inbox:"/mail",dashboard:"/mail",delegate:"/delegate",delegation:"/delegate",manage:"/manage","manage preferences":"/preferences",profile:"/settings",account:"/settings",preferences:"/preferences",token:"/token","web3 users":"/web3-users","web3 projects":"/web3-projects","get started":"/connect","start here":"/connect","learn more":"/document","read more":"/document","our features":"/document",support:"/contact",help:"/document","contact us":"/contact"},Uc=({children:e,mappings:t=Hc,className:r,variant:a="subtle"})=>{const o=S.useMemo(()=>{if(!e||typeof e!="string")return e||"";let i=e;return Object.entries(t).sort(([c],[d])=>d.length-c.length).forEach(([c,d])=>{if(c&&d){const g=new RegExp(`\\b${c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`,"gi");i=i.replace(g,p=>`__LINK_START__${d}__LINK_MID__${p}__LINK_END__`)}}),i},[e,t]);if(!o||typeof o!="string")return n.jsx("span",{className:r,children:e});const s=o.split(/(__LINK_START__.*?__LINK_END__)/);return n.jsx("span",{className:r,children:s.map((i,l)=>{const c=i.match(/__LINK_START__(.*?)__LINK_MID__(.*?)__LINK_END__/);if(c){const[,d,g]=c;return n.jsx(nr,{to:d,variant:a,children:g},l)}return i})})},Ua=({isOpen:e,onClose:t,title:r,size:a="medium",variant:o="default",overlay:s="default",showCloseButton:i=!0,closeOnOverlayClick:l=!0,closeOnEscape:c=!0,children:d,className:g,"aria-labelledby":p,"aria-describedby":b,closeAriaLabel:f="Close modal"})=>{const m=x.useRef(null),h=x.useRef(null);if(x.useEffect(()=>{if(!e||!c)return;const N=P=>{P.key==="Escape"&&t()};return document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)},[e,c,t]),x.useEffect(()=>{if(e)return h.current=document.activeElement,m.current&&m.current.focus(),document.body.style.overflow="hidden",()=>{document.body.style.overflow="unset",h.current&&h.current.focus()}},[e]),!e)return null;const w=()=>{const N=$.overlays.modal.content(),P=$.overlays.modal[a]();return y(N,P)},k=N=>{l&&N.target===N.currentTarget&&t()},C=n.jsxs(n.Fragment,{children:[n.jsx("div",{className:$.overlays.modal.backdrop(),onClick:k}),n.jsx("div",{className:$.overlays.modal.container(),role:"dialog","aria-modal":"true","aria-labelledby":p,"aria-describedby":b,children:n.jsxs("div",{ref:m,"data-testid":"modal-content",className:y(w(),g),tabIndex:-1,onClick:N=>N.stopPropagation(),children:[r&&n.jsxs("div",{className:$.overlays.modal.header(),children:[n.jsx("h2",{id:p,className:$.overlays.modal.title(),children:r}),i&&n.jsx("button",{onClick:t,className:$.overlays.modal.closeButton(),"aria-label":f,children:n.jsx(E.XMarkIcon,{className:$.icon.variant.muted.md()})})]}),d]})})]});return Qe.createPortal(C,document.body)},Vc=({children:e,variant:t="default",className:r})=>n.jsx("div",{"data-testid":"modal-header",className:y($.overlays.modal.header(),r),children:e}),Va=({children:e,variant:t="default",className:r})=>n.jsx("div",{"data-testid":"modal-body",className:y($.overlays.modal.body(),r),children:e}),qa=({children:e,variant:t="default",className:r})=>n.jsx("div",{"data-testid":"modal-footer",className:y($.overlays.modal.footer(),r),children:e}),qc={default:E.InformationCircleIcon,warning:E.ExclamationTriangleIcon,danger:E.XCircleIcon,success:E.CheckCircleIcon,info:E.InformationCircleIcon},Gc={default:()=>$.icon.variant.default.lg(),warning:()=>$.icon.variant.warning.lg(),danger:()=>$.icon.variant.error.lg(),success:()=>$.icon.variant.success.lg(),info:()=>$.icon.variant.default.lg()},Kc={default:"default",warning:"default",danger:"destructive",success:"default",info:"default"},Yc=({isOpen:e,onClose:t,onConfirm:r,title:a,message:o,confirmText:s="Confirm",cancelText:i="Cancel",loadingText:l="Processing...",variant:c="default",isLoading:d=!1})=>{const g=qc[c],p=Gc[c],b=Kc[c];return n.jsxs(Ua,{isOpen:e,onClose:t,size:"small",variant:"web3confirmation","aria-labelledby":"confirmation-dialog-title","aria-describedby":"confirmation-dialog-description",children:[n.jsxs(Va,{variant:"padded",children:[n.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[n.jsx(g,{className:p()}),n.jsx("h3",{id:"confirmation-dialog-title",className:T.heading.h4(),children:a})]}),n.jsx("p",{id:"confirmation-dialog-description",className:T.body.md(),children:o})]}),n.jsxs(qa,{children:[n.jsx(de,{variant:"outline",onClick:t,disabled:d,children:i}),n.jsx(de,{variant:b,onClick:r,disabled:d,children:d?l:s})]})]})},Qc={sm:"w-12 h-12",md:"w-16 h-16",lg:"w-20 h-20",xl:"w-24 h-24"},Xc={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10",xl:"h-12 w-12"},Zc={primary:"bg-gradient-to-br from-blue-100 to-blue-200 text-blue-600 shadow-lg hover:shadow-blue-200",secondary:"bg-gradient-to-br from-purple-100 to-purple-200 text-purple-600 shadow-lg hover:shadow-purple-200",success:"bg-gradient-to-br from-green-100 to-green-200 text-green-600 shadow-lg hover:shadow-green-200",warning:"bg-gradient-to-br from-yellow-100 to-yellow-200 text-yellow-600 shadow-lg hover:shadow-yellow-200",error:"bg-gradient-to-br from-red-100 to-red-200 text-red-600 shadow-lg hover:shadow-red-200",neutral:"bg-gradient-to-br from-gray-100 to-gray-200 text-gray-600 shadow-lg hover:shadow-gray-200"},Jc={square:"rounded-none",rounded:"rounded-2xl",circle:"rounded-full"},Rc={none:"",float:"animate-float",pulse:"animate-pulse",bounce:"animate-bounce-slow"},ed=({children:e,size:t="lg",variant:r="primary",shape:a="rounded",animation:o="float",className:s})=>n.jsx("div",{className:y("flex items-center justify-center mx-auto mb-6 transition-all duration-300 group-hover:scale-105",Qc[t],Zc[r],Jc[a],Rc[o],s),children:n.jsx("div",{className:y(Xc[t]),children:e})}),td=_.cva("border-b transition-all duration-200",{variants:{variant:{default:"bg-gradient-to-r from-green-100 to-blue-100 dark:from-green-900/20 dark:to-blue-900/20 border-green-200 dark:border-green-700",compact:"bg-green-50 dark:bg-green-900/10 border-green-200 dark:border-green-800",minimal:"bg-gray-50 dark:bg-gray-900/50 border-gray-200 dark:border-gray-700",vibrant:"bg-gradient-to-r from-blue-600 to-purple-600 border-blue-700"},size:{default:"py-4",compact:"py-3",large:"py-6"}},defaultVariants:{variant:"default",size:"default"}}),rd=_.cva("font-semibold",{variants:{variant:{default:"text-green-800 dark:text-green-200",compact:"text-green-700 dark:text-green-300",minimal:"text-gray-700 dark:text-gray-300",vibrant:"text-white"}},defaultVariants:{variant:"default"}}),ad=_.cva("inline-flex items-center justify-center px-6 py-2 rounded-lg font-medium transition-all duration-200 hover:transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-offset-2",{variants:{variant:{default:"bg-gradient-to-r from-green-600 to-blue-600 hover:from-green-700 hover:to-blue-700 text-white focus:ring-green-500",compact:"bg-green-600 hover:bg-green-700 text-white focus:ring-green-500",minimal:"bg-blue-600 hover:bg-blue-700 text-white focus:ring-blue-500",vibrant:"bg-white hover:bg-gray-100 text-blue-600 hover:text-blue-700 focus:ring-white"}},defaultVariants:{variant:"default"}}),nd=({className:e,variant:t="default",size:r="default",message:a="Get Your Free Email Address - Start Using Web3 Email Today",ctaText:o="Get Free Email",ctaLink:s="/connect",showBadge:i=!0,badgeText:l="FREE",onDismiss:c,isDismissible:d=!1,dismissAriaLabel:g="Dismiss banner"})=>n.jsx("div",{className:y(td({variant:t,size:r}),e),children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:n.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4 text-center relative",children:[d&&c&&n.jsx("button",{onClick:c,className:"absolute right-0 top-1/2 -translate-y-1/2 p-1 rounded-full hover:bg-black/10 dark:hover:bg-white/10 transition-colors","aria-label":g,children:n.jsx("svg",{className:"w-4 h-4 text-current opacity-60",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),n.jsxs("div",{className:"flex items-center",children:[i&&n.jsx("div",{className:y("text-xs font-bold px-3 py-1 rounded-full mr-3 transition-colors",t==="vibrant"?"bg-white text-blue-600":"bg-green-500 text-white"),children:l}),n.jsx("span",{className:y(rd({variant:t})),children:a})]}),n.jsx(Ze.Link,{to:s,className:y(ad({variant:t})),children:o})]})})}),od=_.cva("bg-white dark:bg-gray-800 rounded-lg shadow-md p-6 transition-all duration-200",{variants:{variant:{default:"border-gray-200 dark:border-gray-700 border hover:shadow-lg",elevated:"shadow-lg hover:shadow-xl",minimal:"bg-transparent shadow-none border-none p-4"},trend:{none:"",up:"border-l-4 border-green-500",down:"border-l-4 border-red-500",neutral:"border-l-4 border-gray-400"}},defaultVariants:{variant:"default",trend:"none"}}),sd=({label:e,value:t,change:r,trend:a="none",icon:o,variant:s="default",className:i})=>{const l={up:"text-green-600 dark:text-green-400",down:"text-red-600 dark:text-red-400",neutral:"text-gray-600 dark:text-gray-400",none:"text-gray-600 dark:text-gray-400"},c={up:"↗",down:"↘",neutral:"→",none:""};return n.jsx("div",{className:y(od({variant:s,trend:a}),i),children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400 mb-1",children:e}),n.jsx("p",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:t}),r&&n.jsxs("p",{className:y("text-sm font-medium flex items-center gap-1 mt-1",l[a||"none"]),children:[n.jsx("span",{children:c[a||"none"]}),r]})]}),o&&n.jsx("div",{className:"text-3xl opacity-80",children:o})]})})},id=_.cva("space-y-6",{variants:{variant:{default:"",card:"bg-white dark:bg-gray-800 rounded-lg border-gray-200 dark:border-gray-700 border p-6",minimal:"space-y-4"},spacing:{tight:"space-y-3",normal:"space-y-4",relaxed:"space-y-6",loose:"space-y-8"}},defaultVariants:{variant:"default",spacing:"normal"}}),ld=({title:e,description:t,children:r,variant:a="default",spacing:o="normal",className:s})=>n.jsxs("div",{className:y(id({variant:a,spacing:o}),s),children:[(e||t)&&n.jsxs("div",{className:"space-y-1",children:[e&&n.jsx("h3",{className:"text-lg font-medium text-gray-900 dark:text-white",children:e}),t&&n.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:t})]}),r]}),cd=_.cva("flex flex-col items-center text-center space-y-4",{variants:{layout:{vertical:"flex-col items-center text-center",horizontal:"flex-row items-start text-left space-y-0 space-x-4",minimal:"flex-col space-y-2"},spacing:{tight:"space-y-2",normal:"space-y-4",relaxed:"space-y-6"},interactive:{true:"transition-all duration-200 hover:transform hover:scale-105 cursor-pointer",false:""}},defaultVariants:{layout:"vertical",spacing:"normal",interactive:!1}}),dd=({icon:e,title:t,description:r,layout:a="vertical",spacing:o="normal",interactive:s=!1,className:i,onClick:l})=>n.jsxs("div",{className:y(cd({layout:a,spacing:o,interactive:s}),i),onClick:l,children:[n.jsx("div",{className:"text-4xl mb-4 flex-shrink-0",children:e}),n.jsxs("div",{className:"space-y-2",children:[n.jsx("h3",{className:"text-xl font-bold text-gray-900 dark:text-white",children:t}),n.jsx("div",{className:"text-gray-600 dark:text-gray-300 leading-relaxed",children:r})]})]}),ud=({icon:e,size:t="md",shape:r="rounded",variant:a="blue-purple",gradientClasses:o,className:s,iconClassName:i})=>{const l={sm:{container:"w-10 h-10",icon:"h-5 w-5"},md:{container:"w-12 h-12",icon:"h-6 w-6"},lg:{container:"w-16 h-16",icon:"h-8 w-8"},xl:{container:"w-20 h-20",icon:"h-10 w-10"}},c={square:"rounded-lg",rounded:"rounded-xl",circle:"rounded-full"},d={"blue-purple":"bg-gradient-to-r from-blue-600 to-purple-600","green-blue":"bg-gradient-to-r from-green-600 to-blue-600","orange-red":"bg-gradient-to-r from-orange-600 to-red-600",gray:"bg-gradient-to-r from-gray-600 to-gray-800 dark:from-gray-700 dark:to-gray-900",custom:o||"bg-gradient-to-r from-blue-600 to-purple-600"},g=l[t];return n.jsx("div",{className:y("flex items-center justify-center flex-shrink-0",g.container,c[r],d[a],s),children:n.jsx(e,{className:y("text-white",g.icon,i)})})},gd=({children:e,variant:t="blue-purple",gradientClasses:r,size:a="md",rounded:o="2xl",bordered:s=!1,borderClasses:i="border border-white/20",className:l})=>{const c={"blue-purple":"bg-gradient-to-r from-blue-600 to-purple-600 text-white","green-blue":"bg-gradient-to-r from-green-600 to-blue-600 text-white","orange-red":"bg-gradient-to-r from-orange-600 to-red-600 text-white",gray:"bg-gradient-to-r from-gray-600 to-gray-800 dark:from-gray-700 dark:to-gray-900 text-white",light:"bg-gradient-to-r from-blue-50 to-purple-50 dark:from-blue-900/20 dark:to-purple-900/20 text-gray-900 dark:text-gray-100",custom:r||"bg-gradient-to-r from-blue-600 to-purple-600 text-white"},d={sm:"p-4",md:"p-6",lg:"p-8"},g={md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl"};return n.jsx("div",{className:y(c[t],d[a],g[o],s&&i,l),children:e})},pd=({children:e,title:t,variant:r="info",size:a="md",icon:o,bordered:s=!0,className:i})=>{const l={info:{bg:"bg-blue-50 dark:bg-blue-900/20",border:"border-blue-200 dark:border-blue-800",title:"text-blue-900 dark:text-blue-300",text:"text-blue-800 dark:text-blue-400",icon:"text-blue-600 dark:text-blue-400"},success:{bg:"bg-green-50 dark:bg-green-900/20",border:"border-green-200 dark:border-green-800",title:"text-green-900 dark:text-green-300",text:"text-green-800 dark:text-green-400",icon:"text-green-600 dark:text-green-400"},warning:{bg:"bg-yellow-50 dark:bg-yellow-900/20",border:"border-yellow-200 dark:border-yellow-800",title:"text-yellow-900 dark:text-yellow-300",text:"text-yellow-800 dark:text-yellow-400",icon:"text-yellow-600 dark:text-yellow-400"},danger:{bg:"bg-red-50 dark:bg-red-900/20",border:"border-red-200 dark:border-red-800",title:"text-red-900 dark:text-red-300",text:"text-red-800 dark:text-red-400",icon:"text-red-600 dark:text-red-400"},neutral:{bg:"bg-gray-50 dark:bg-gray-800",border:"border-gray-200 dark:border-gray-700",title:"text-gray-900 dark:text-gray-100",text:"text-gray-700 dark:text-gray-300",icon:"text-gray-600 dark:text-gray-400"}},c={sm:"p-3",md:"p-4",lg:"p-6"},d=l[r];return n.jsxs("div",{className:y("rounded-lg",d.bg,s&&`border ${d.border}`,c[a],i),children:[(t||o)&&n.jsxs("div",{className:"flex items-start gap-3 mb-2",children:[o&&n.jsx(o,{className:y("h-5 w-5 flex-shrink-0 mt-0.5",d.icon)}),t&&n.jsx("h3",{className:y(T.body.strong.md(),d.title),children:t})]}),n.jsx("div",{className:y(!t&&!o&&d.text),children:e})]})},fd=({children:e,variant:t="blue",position:r="left",width:a="thick",padding:o="md",className:s})=>{const i={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"},l={left:"border-l",right:"border-r",top:"border-t",bottom:"border-b"},c={thin:"2",medium:"3",thick:"4"},d={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"}},g=`${l[r]}-${c[a]}`;return n.jsx("div",{className:y(g,i[t],d[r][o],s),children:e})},md=({children:e,variant:t="primary",size:r="md",inline:a=!1,align:o="left",className:s,wrap:i=!1})=>{const l={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"},c={xs:{text:"text-xs",padding:a?"px-1.5 py-0.5":"px-2 py-1"},sm:{text:"text-sm",padding:a?"px-2 py-0.5":"px-3 py-1.5"},md:{text:"text-base",padding:a?"px-2.5 py-1":"px-4 py-2"},lg:{text:"text-lg",padding:a?"px-3 py-1":"px-4 py-2"}},d={left:"text-left",center:"text-center",right:"text-right"},g=c[r],p=a?"code":"div";return n.jsx(p,{className:y("font-mono rounded-lg",l[t],g.text,g.padding,!a&&d[o],a?"inline-block":"block",!i&&"overflow-x-auto whitespace-nowrap",i&&"break-all",s),children:e})},hd=({variant:e="text",width:t,height:r,className:a,count:o,lines:s=1,animate:i=!0,borderRadius:l,theme:c,spacing:d,gap:g="md"})=>{const p={text:"h-4 rounded",circle:"rounded-full",rectangle:"rounded-lg",avatar:"w-10 h-10 rounded-full",button:"h-10 rounded-lg"},b={light:"bg-gray-200",dark:"bg-gray-700"},f={sm:"space-y-1",md:"space-y-2",lg:"space-y-3"},m=o??s,h=w=>{const k={};return t&&(k.width=typeof t=="number"?`${t}px`:t),r&&(k.height=typeof r=="number"?`${r}px`:r),l&&(k.borderRadius=l),n.jsx("div",{className:y(i&&"animate-pulse",c?b[c]:"bg-gray-200 dark:bg-gray-700",p[e],a),style:k},w)};if(m>1){const w=d!==void 0?`space-y-${d}`:f[g];return n.jsx("div",{className:y(w),children:Array.from({length:m}).map((k,C)=>h(C))})}return h()},bd=({value:e,label:t,variant:r="neutral",size:a="md",align:o="center",icon:s,iconPosition:i="top",className:l,valueClassName:c,labelClassName:d})=>{const g={primary:{value:"text-blue-600 dark:text-blue-400",label:"text-blue-600/70 dark:text-blue-400/70",icon:"text-blue-600 dark:text-blue-400"},success:{value:"text-green-600 dark:text-green-400",label:"text-green-600/70 dark:text-green-400/70",icon:"text-green-600 dark:text-green-400"},warning:{value:"text-yellow-600 dark:text-yellow-400",label:"text-yellow-600/70 dark:text-yellow-400/70",icon:"text-yellow-600 dark:text-yellow-400"},danger:{value:"text-red-600 dark:text-red-400",label:"text-red-600/70 dark:text-red-400/70",icon:"text-red-600 dark:text-red-400"},neutral:{value:"text-gray-900 dark:text-gray-100",label:"text-gray-600 dark:text-gray-400",icon:"text-gray-600 dark:text-gray-400"},white:{value:"text-white",label:"text-white/70",icon:"text-white"}},p={sm:{value:T.heading.h5(),label:T.caption.default(),icon:"h-4 w-4"},md:{value:T.heading.h4(),label:T.body.sm(),icon:"h-5 w-5"},lg:{value:T.heading.h3(),label:T.body.md(),icon:"h-6 w-6"},xl:{value:T.heading.h2(),label:T.body.lg(),icon:"h-8 w-8"}},b={left:"text-left",center:"text-center",right:"text-right"},f=g[r],m=p[a];return n.jsxs("div",{className:y(b[o],l),children:[s&&i==="top"&&n.jsx(s,{className:y(m.icon,f.icon,"mb-2",o==="center"&&"mx-auto")}),n.jsxs("div",{className:y(i==="left"&&s&&"flex items-center gap-3",o==="center"&&i==="left"&&"justify-center"),children:[s&&i==="left"&&n.jsx(s,{className:y(m.icon,f.icon)}),n.jsxs("div",{children:[n.jsx("div",{className:y("font-bold",m.value,f.value,c),children:e}),n.jsx("div",{className:y(m.label,f.label,d),children:t})]})]})]})},yd=({value:e,max:t=100,variant:r="primary",size:a="md",showLabel:o=!1,labelPosition:s="outside",label:i,className:l,barClassName:c,animated:d=!0,striped:g=!1})=>{const p=Math.min(Math.max(e/t*100,0),100),b=i||`${Math.round(p)}%`,f={primary:"bg-blue-600 dark:bg-blue-500",success:"bg-green-600 dark:bg-green-500",warning:"bg-yellow-600 dark:bg-yellow-500",danger:"bg-red-600 dark:bg-red-500",purple:"bg-purple-600 dark:bg-purple-500",gray:"bg-gray-600 dark:bg-gray-500"},m={sm:"h-1",md:"h-2",lg:"h-3"};return n.jsx("div",{className:y("w-full",l),children:n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:y("flex-1 bg-gray-200 dark:bg-gray-600 rounded-full overflow-hidden",m[a]),children:n.jsx("div",{className:y("rounded-full",m[a],f[r],d&&"transition-all duration-300 ease-in-out",g&&"bg-gradient-to-r from-transparent via-white/20 to-transparent bg-[length:20px_100%]",c),style:{width:`${p}%`},role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":t,children:o&&s==="inside"&&a==="lg"&&n.jsx("span",{className:"flex items-center justify-center h-full text-xs font-medium text-white px-2",children:b})})}),o&&s==="outside"&&n.jsx("span",{className:"text-sm font-medium text-gray-600 dark:text-gray-400 whitespace-nowrap",children:b})]})})},xd=({label:e,labelPosition:t="center",orientation:r="horizontal",spacing:a="md",thickness:o="thin",variant:s="light",className:i,lineClassName:l})=>{const c={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"}},d={horizontal:{thin:"border-t",medium:"border-t-2",thick:"border-t-4"},vertical:{thin:"border-l",medium:"border-l-2",thick:"border-l-4"}},g={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(r==="vertical")return n.jsx("div",{className:y("self-stretch",d.vertical[o],g[s],c.vertical[a],i),role:"separator","aria-orientation":"vertical"});if(!e)return n.jsx("hr",{className:y(d.horizontal[o],g[s],c.horizontal[a],l,i),role:"separator","aria-orientation":"horizontal"});const p={left:"justify-start",center:"justify-center",right:"justify-end"};return n.jsxs("div",{className:y("flex items-center",c.horizontal[a],p[t],i),role:"separator","aria-orientation":"horizontal",children:[t!=="left"&&n.jsx("div",{className:y("flex-1",d.horizontal[o],g[s],l)}),n.jsx("span",{className:y(T.body.sm(),"px-3 text-gray-500 dark:text-gray-400 whitespace-nowrap"),children:e}),t!=="right"&&n.jsx("div",{className:y("flex-1",d.horizontal[o],g[s],l)})]})},vd=({icon:e,children:t,iconPosition:r="left",gap:a="md",iconSize:o="md",align:s="left",variant:i="default",className:l,iconClassName:c,textClassName:d})=>{const g={xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4"},p={xs:"h-3 w-3",sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-8 w-8"},b={left:"text-left",center:"text-center items-center",right:"text-right items-end"},f={default:"text-gray-700 dark:text-gray-300",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",muted:"text-gray-500 dark:text-gray-400"},m={left:"flex items-center",right:"flex flex-row-reverse items-center",top:"flex flex-col"};return n.jsxs("div",{className:y(m[r],g[a],r==="top"&&b[s],f[i],l),children:[n.jsx(e,{className:y(p[o],"flex-shrink-0",c)}),n.jsx("span",{className:y(d),children:t})]})},wd=({text:e,size:t="md",variant:r="icon",label:a="Copy",successLabel:o="Copied!",iconPosition:s="left",className:i,title:l,onCopySuccess:c,onCopyError:d})=>{const{copyToClipboard:g,isCopied:p}=Lr({successDuration:2e3,onSuccess:c,onError:d}),b=p(e),f=()=>{g(e)},h={sm:{icon:"h-3.5 w-3.5",button:"p-1",text:"text-xs px-2 py-1"},md:{icon:"h-4 w-4",button:"p-1.5",text:"text-sm px-3 py-1.5"},lg:{icon:"h-5 w-5",button:"p-2",text:"text-base px-4 py-2"}}[t],w=b?E.CheckIcon:E.ClipboardDocumentIcon;if(r==="icon")return n.jsx("button",{onClick:f,className:y("inline-flex items-center justify-center rounded transition-colors",b?"text-green-600 dark:text-green-400":"text-gray-400 hover:text-gray-600 dark:hover:text-gray-300",h.button,i),title:l||(b?"Copied!":"Copy to clipboard"),type:"button",children:n.jsx(w,{className:h.icon})});const k=y("inline-flex items-center gap-2 rounded font-medium transition-colors",h.text),C={text:y(b?"text-green-600 dark:text-green-400":"text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300"),outline:y("border",b?"border-green-600 text-green-600 dark:border-green-400 dark:text-green-400":"border-gray-300 text-gray-700 hover:border-gray-400 dark:border-gray-600 dark:text-gray-300 dark:hover:border-gray-500")},N=b?o:a;return n.jsxs("button",{onClick:f,className:y(k,C[r],i),title:l||(b?"Copied!":"Copy to clipboard"),type:"button",children:[s==="left"&&n.jsx(w,{className:h.icon}),n.jsx("span",{children:N}),s==="right"&&n.jsx(w,{className:h.icon})]})},kd=({title:e,description:t,count:r,countLabel:a,action:o,loading:s=!1,loadingText:i="Loading...",size:l="md",className:c})=>{const g={sm:{title:T.heading.h4(),description:T.body.sm(),count:T.caption.default()},md:{title:T.heading.h3(),description:T.body.md(),count:T.body.sm()},lg:{title:T.heading.h2(),description:T.body.lg(),count:T.body.md()}}[l];return n.jsxs("div",{className:y("flex items-start justify-between gap-4",c),children:[n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[n.jsx("h2",{className:y(g.title,"text-gray-900 dark:text-gray-100"),children:e}),r!==void 0&&n.jsxs("span",{className:y(g.count,"text-gray-500 dark:text-gray-400"),children:["(",r,a&&` ${a}`,")"]}),s&&n.jsxs("span",{className:y(g.count,"text-gray-500 dark:text-gray-400 flex items-center gap-2"),children:[n.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-blue-600"}),i]})]}),t&&n.jsx("p",{className:y(g.description,"mt-1 text-gray-600 dark:text-gray-400"),children:t})]}),o&&n.jsx("div",{className:"flex-shrink-0",children:o})]})},Cd=({children:e,variant:t="default",size:r="sm",icon:a,dot:o=!1,pill:s=!1,outline:i=!1,onClick:l,dismissible:c=!1,onDismiss:d,count:g,maxCount:p,className:b})=>{const f={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"},m={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"},h={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"},k={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"},C=g!==void 0?p!==void 0&&g>p?`${p}+`:g.toString():null,N=n.jsxs(n.Fragment,{children:[o&&n.jsx("span",{className:y("h-2 w-2 rounded-full mr-1.5",k[t])}),a&&n.jsx("span",{className:y(w[r],"mr-1"),children:a}),e,C&&n.jsx("span",{className:"ml-1",children:C}),c&&d&&n.jsx("button",{onClick:A=>{A.stopPropagation(),d()},className:"ml-1 hover:bg-black/10 dark:hover:bg-white/10 rounded-full p-0.5","aria-label":"Dismiss",children:n.jsx(he.XMarkIcon,{className:y(w[r])})})]}),P=l?"button":"span";return n.jsx(P,{onClick:l,className:y("inline-flex items-center font-medium",i?m[t]:f[t],h[r],s?"rounded-full":"rounded",l&&"cursor-pointer hover:opacity-80",b),children:N})},Sd=({src:e,alt:t="Avatar",fallback:r,name:a,size:o="md",status:s,className:i,onClick:l})=>{const[c,d]=x.useState(!1),g={sm:"w-8 h-8 text-xs",md:"w-10 h-10 text-sm",lg:"w-12 h-12 text-base"},p={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"},b={online:"bg-green-500",offline:"bg-gray-400",away:"bg-yellow-500",busy:"bg-red-500"},m=r||(a?(k=>{const C=k.trim().split(/\s+/);return C.length===1?C[0].charAt(0).toUpperCase():C[0].charAt(0).toUpperCase()+C[C.length-1].charAt(0).toUpperCase()})(a):""),h=e&&!c,w=()=>{d(!0)};return n.jsxs("div",{className:"relative inline-block flex-shrink-0",children:[n.jsx("div",{className:y("flex items-center justify-center overflow-hidden rounded-full",g[o],!h&&"bg-gray-300 dark:bg-gray-600 text-gray-700 dark:text-gray-200",l&&"cursor-pointer hover:opacity-80 transition-opacity",i),onClick:l,role:l?"button":void 0,tabIndex:l?0:void 0,children:h?n.jsx("img",{src:e,alt:t,className:"w-full h-full object-cover",onError:w}):n.jsx("span",{className:"font-semibold",children:m})}),s&&n.jsx("span",{className:y("absolute bottom-0 right-0 rounded-full border-2 border-white dark:border-gray-800",b[s],p[o]),"aria-label":s})]})},Nd=({steps:e,currentStep:t=0,orientation:r="horizontal",size:a="md",variant:o="primary",showConnectors:s=!0,className:i,onStepClick:l})=>{const c={sm:{circle:"w-6 h-6 text-xs",label:"text-xs",description:"text-xs",connector:r==="vertical"?"h-6":"h-0.5"},md:{circle:"w-8 h-8 text-sm",label:"text-sm",description:"text-xs",connector:r==="vertical"?"h-8":"h-0.5"},lg:{circle:"w-10 h-10 text-base",label:"text-base",description:"text-sm",connector:r==="vertical"?"h-10":"h-0.5"}},d={primary:{active:"bg-blue-500 text-white border-blue-500",completed:"bg-blue-500 text-white border-blue-500",pending:"bg-white dark:bg-gray-800 text-gray-400 border-gray-300 dark:border-gray-600",connector:"bg-blue-500",connectorPending:"bg-gray-300 dark:bg-gray-600"},success:{active:"bg-green-500 text-white border-green-500",completed:"bg-green-500 text-white border-green-500",pending:"bg-white dark:bg-gray-800 text-gray-400 border-gray-300 dark:border-gray-600",connector:"bg-green-500",connectorPending:"bg-gray-300 dark:bg-gray-600"},purple:{active:"bg-purple-500 text-white border-purple-500",completed:"bg-purple-500 text-white border-purple-500",pending:"bg-white dark:bg-gray-800 text-gray-400 border-gray-300 dark:border-gray-600",connector:"bg-purple-500",connectorPending:"bg-gray-300 dark:bg-gray-600"}},g=c[a],p=d[o],b=m=>{const h=e[m];return h.status?h.status:m<t?"completed":m===t?"current":"pending"},f=(m,h)=>{const w=b(h),k=l&&w!=="pending",C=y("flex items-center justify-center rounded-full border-2 font-bold flex-shrink-0 transition-all",g.circle,w==="completed"&&p.completed,w==="current"&&p.active,w==="pending"&&p.pending,k&&"cursor-pointer hover:opacity-80");return n.jsxs("div",{className:y(r==="horizontal"?"flex items-center":"flex",r==="horizontal"?"flex-col items-center":"items-start"),children:[n.jsxs("div",{className:y(r==="horizontal"?"flex flex-col items-center":"flex items-start gap-3"),children:[n.jsx("div",{className:C,onClick:k?()=>l(h):void 0,role:k?"button":void 0,tabIndex:k?0:void 0,children:w==="completed"?n.jsx(he.CheckIcon,{className:y(a==="sm"?"h-3 w-3":a==="md"?"h-4 w-4":"h-5 w-5")}):n.jsx("span",{children:h+1})}),n.jsxs("div",{className:y(r==="horizontal"?"text-center mt-2":"flex-1"),children:[n.jsx("div",{className:y("font-medium",g.label,w==="pending"?"text-gray-500 dark:text-gray-400":"text-gray-900 dark:text-gray-100"),children:m.label}),m.description&&n.jsx("div",{className:y(g.description,"text-gray-600 dark:text-gray-400 mt-0.5"),children:m.description})]})]}),s&&h<e.length-1&&n.jsx("div",{className:y(r==="vertical"?"w-0.5 ml-3.5":"flex-1 mx-2",g.connector,w==="completed"?p.connector:p.connectorPending)})]},h)};return n.jsx("div",{className:y("flex",r==="horizontal"?"items-start":"flex-col",i),children:e.map((m,h)=>f(m,h))})},Ed=({label:e,value:t,orientation:r="vertical",align:a="start",labelWidth:o="auto",size:s="md",separator:i=!1,labelVariant:l="muted",valueVariant:c="default",className:d,labelClassName:g,valueClassName:p})=>{const b={sm:{label:T.body.sm(),value:T.body.sm(),gap:"gap-1"},md:{label:T.body.md(),value:T.body.md(),gap:"gap-2"},lg:{label:T.body.lg(),value:T.body.lg(),gap:"gap-3"}},f={auto:"",sm:"w-24",md:"w-32",lg:"w-40"},m={start:"justify-start",center:"justify-center",between:"justify-between"},h={default:"text-gray-700 dark:text-gray-300",muted:"text-gray-600 dark:text-gray-400",strong:"text-gray-900 dark:text-gray-100 font-semibold"},w={default:"text-gray-900 dark:text-gray-100",muted:"text-gray-600 dark:text-gray-400",strong:"text-gray-900 dark:text-gray-100 font-semibold",primary:"text-blue-600 dark:text-blue-400"},k=b[s];return n.jsxs("div",{className:y(r==="horizontal"?"flex items-center":"flex flex-col",r==="horizontal"&&m[a],k.gap,i&&"pb-3 mb-3 border-b border-gray-200 dark:border-gray-700",d),children:[n.jsx("dt",{className:y(k.label,h[l],r==="horizontal"&&f[o],r==="horizontal"&&"flex-shrink-0",g),children:e}),n.jsx("dd",{className:y(k.value,w[c],r==="horizontal"&&"flex-1",p),children:t})]})},Ad=({content:e,children:t,placement:r="top",delayShow:a=0,delayHide:o=0,className:s,disabled:i=!1,showArrow:l=!0,variant:c="default",trigger:d="hover",isOpen:g,onVisibilityChange:p})=>{const[b,f]=x.useState(!1),m=x.useRef(void 0),h=x.useRef(void 0),w=x.useRef(null),k=x.useRef(null),C=g!==void 0,N=C?g:b,P=x.useCallback(()=>{i||C||(h.current&&(clearTimeout(h.current),h.current=void 0),a>0?m.current=setTimeout(()=>{f(!0),p?.(!0)},a):(f(!0),p?.(!0)))},[i,C,a,p]),A=x.useCallback(()=>{C||(m.current&&(clearTimeout(m.current),m.current=void 0),o>0?h.current=setTimeout(()=>{f(!1),p?.(!1)},o):(f(!1),p?.(!1)))},[C,o,p]);x.useEffect(()=>()=>{m.current&&clearTimeout(m.current),h.current&&clearTimeout(h.current)},[]),x.useEffect(()=>{if(d!=="click"||!N)return;const V=F=>{w.current&&!w.current.contains(F.target)&&k.current&&!k.current.contains(F.target)&&A()};return document.addEventListener("mousedown",V),()=>{document.removeEventListener("mousedown",V)}},[d,N,A]);const L=()=>{d==="hover"&&P()},I=()=>{d==="hover"&&A()},z=()=>{d==="hover"&&P()},D=()=>{d==="hover"&&A()},M=()=>{d==="click"&&!C&&(N?(f(!1),p?.(!1)):(f(!0),p?.(!0)))},B={top:"bottom-full left-1/2 -translate-x-1/2 -translate-y-2",bottom:"top-full left-1/2 -translate-x-1/2 translate-y-2",left:"right-full top-1/2 -translate-x-2 -translate-y-1/2",right:"left-full top-1/2 translate-x-2 -translate-y-1/2"},U={top:"top-full left-1/2 -translate-x-1/2 border-l-transparent border-r-transparent border-b-transparent",bottom:"bottom-full left-1/2 -translate-x-1/2 border-l-transparent border-r-transparent border-t-transparent",left:"left-full top-1/2 -translate-y-1/2 border-t-transparent border-b-transparent border-r-transparent",right:"right-full top-1/2 -translate-y-1/2 border-t-transparent border-b-transparent border-l-transparent"},W={default:"bg-gray-900 dark:bg-gray-700 text-white",info:"bg-blue-600 dark:bg-blue-500 text-white",success:"bg-green-600 dark:bg-green-500 text-white",warning:"bg-yellow-600 dark:bg-yellow-500 text-white",error:"bg-red-600 dark:bg-red-500 text-white"},j={default:{top:"border-t-gray-900 dark:border-t-gray-700",bottom:"border-b-gray-900 dark:border-b-gray-700",left:"border-l-gray-900 dark:border-l-gray-700",right:"border-r-gray-900 dark:border-r-gray-700"},info:{top:"border-t-blue-600 dark:border-t-blue-500",bottom:"border-b-blue-600 dark:border-b-blue-500",left:"border-l-blue-600 dark:border-l-blue-500",right:"border-r-blue-600 dark:border-r-blue-500"},success:{top:"border-t-green-600 dark:border-t-green-500",bottom:"border-b-green-600 dark:border-b-green-500",left:"border-l-green-600 dark:border-l-green-500",right:"border-r-green-600 dark:border-r-green-500"},warning:{top:"border-t-yellow-600 dark:border-t-yellow-500",bottom:"border-b-yellow-600 dark:border-b-yellow-500",left:"border-l-yellow-600 dark:border-l-yellow-500",right:"border-r-yellow-600 dark:border-r-yellow-500"},error:{top:"border-t-red-600 dark:border-t-red-500",bottom:"border-b-red-600 dark:border-b-red-500",left:"border-l-red-600 dark:border-l-red-500",right:"border-r-red-600 dark:border-r-red-500"}};return n.jsxs("div",{ref:k,className:"relative inline-block",onMouseEnter:L,onMouseLeave:I,onFocus:z,onBlur:D,onClick:M,children:[t,N&&!i&&n.jsxs("div",{ref:w,className:y("absolute z-50 px-2 py-1 text-xs font-medium rounded shadow-lg whitespace-nowrap pointer-events-none",B[r],W[c],s),role:"tooltip",children:[e,l&&n.jsx("div",{className:y("absolute w-0 h-0 border-4 arrow",U[r],j[c][r])})]})]})},Pd=({href:e,children:t,showIcon:r=!0,iconPosition:a="right",size:o="md",variant:s="default",className:i,onClick:l})=>{const c={sm:{text:T.body.sm(),icon:"h-3 w-3",gap:"gap-1"},md:{text:T.body.md(),icon:"h-4 w-4",gap:"gap-1.5"},lg:{text:T.body.lg(),icon:"h-5 w-5",gap:"gap-2"}},d={default:"text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300",primary:"text-blue-700 dark:text-blue-300 hover:text-blue-800 dark:hover:text-blue-200 font-semibold",muted:"text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-200"},g=c[o];return n.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer",onClick:l,className:y("inline-flex items-center",g.gap,g.text,d[s],"underline decoration-1 underline-offset-2","hover:decoration-2","transition-all duration-200",i),children:[r&&a==="left"&&n.jsx(E.ArrowTopRightOnSquareIcon,{className:y(g.icon,"flex-shrink-0")}),n.jsx("span",{children:t}),r&&a==="right"&&n.jsx(E.ArrowTopRightOnSquareIcon,{className:y(g.icon,"flex-shrink-0")})]})},Td=({icon:e,"aria-label":t,onClick:r,size:a="md",shape:o="rounded",variant:s="default",disabled:i=!1,type:l="button",className:c,title:d})=>{const g={xs:{button:"p-1",icon:"h-3 w-3"},sm:{button:"p-1.5",icon:"h-4 w-4"},md:{button:"p-2",icon:"h-5 w-5"},lg:{button:"p-3",icon:"h-6 w-6"},xl:{button:"p-4",icon:"h-8 w-8"}},p={circle:"rounded-full",square:"rounded-none",rounded:"rounded-lg"},b={default:"bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700",primary:"bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-600",secondary:"bg-purple-600 text-white hover:bg-purple-700 dark:bg-purple-500 dark:hover:bg-purple-600",danger:"bg-red-600 text-white hover:bg-red-700 dark:bg-red-500 dark:hover:bg-red-600",ghost:"bg-transparent text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800",outline:"bg-transparent border-2 border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800"},f=g[a];return n.jsx("button",{type:l,onClick:r,disabled:i,"aria-label":t,title:d||t,className:y("inline-flex items-center justify-center","transition-all duration-200","focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2","disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-current",f.button,p[o],b[s],c),children:n.jsx(e,{className:f.icon})})},Id=({type:e,size:t="md",colored:r=!0,className:a})=>{const o={xs:"h-3 w-3",sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-8 w-8"},s=c=>{const d=c.toLowerCase();return d.startsWith("image/")||[".jpg",".jpeg",".png",".gif",".svg",".webp",".ico"].some(g=>d.endsWith(g))?{Icon:E.PhotoIcon,color:"text-blue-600 dark:text-blue-400"}:d.startsWith("video/")||[".mp4",".avi",".mov",".wmv",".flv",".webm"].some(g=>d.endsWith(g))?{Icon:E.FilmIcon,color:"text-purple-600 dark:text-purple-400"}:d.startsWith("audio/")||[".mp3",".wav",".ogg",".m4a",".flac"].some(g=>d.endsWith(g))?{Icon:E.MusicalNoteIcon,color:"text-pink-600 dark:text-pink-400"}:d.includes("pdf")||d.endsWith(".pdf")?{Icon:E.DocumentArrowDownIcon,color:"text-red-600 dark:text-red-400"}:d.includes("word")||d.includes("document")||[".doc",".docx",".odt"].some(g=>d.endsWith(g))?{Icon:E.DocumentTextIcon,color:"text-blue-700 dark:text-blue-300"}:d.includes("excel")||d.includes("spreadsheet")||[".xls",".xlsx",".ods",".csv"].some(g=>d.endsWith(g))?{Icon:E.TableCellsIcon,color:"text-green-600 dark:text-green-400"}:[".js",".ts",".jsx",".tsx",".py",".java",".cpp",".c",".h",".css",".scss",".html",".json",".xml",".yaml",".yml",".sh",".sql"].some(g=>d.endsWith(g))?{Icon:E.CodeBracketIcon,color:"text-gray-700 dark:text-gray-300"}:d.includes("zip")||d.includes("compressed")||d.includes("archive")||[".zip",".rar",".7z",".tar",".gz",".bz2"].some(g=>d.endsWith(g))?{Icon:E.ArchiveBoxIcon,color:"text-yellow-600 dark:text-yellow-400"}:{Icon:E.DocumentIcon,color:"text-gray-600 dark:text-gray-400"}},{Icon:i,color:l}=s(e);return n.jsx(i,{className:y(o[t],r?l:"text-gray-600 dark:text-gray-400",a)})},$d=({currentPage:e,totalPages:t,onPageChange:r,siblingCount:a=1,showFirstLast:o=!1,size:s="md",className:i})=>{const c={sm:{button:"h-8 w-8 text-xs",icon:"h-3 w-3",text:T.body.sm()},md:{button:"h-10 w-10 text-sm",icon:"h-4 w-4",text:T.body.md()},lg:{button:"h-12 w-12 text-base",icon:"h-5 w-5",text:T.body.lg()}}[s],g=(()=>{const C=[];C.push(1);const N=Math.max(e-a,2),P=Math.min(e+a,t-1);N>2&&C.push("ellipsis");for(let A=N;A<=P;A++)C.push(A);return P<t-1&&C.push("ellipsis"),t>1&&C.push(t),C})(),p=()=>{e>1&&r(e-1)},b=()=>{e<t&&r(e+1)},f=()=>{r(1)},m=()=>{r(t)},h=y("inline-flex items-center justify-center","rounded-md border border-gray-300 dark:border-gray-600","transition-all duration-200","focus:outline-none focus:ring-2 focus:ring-blue-500","disabled:opacity-50 disabled:cursor-not-allowed"),w=C=>y(h,c.button,c.text,C?"bg-blue-600 text-white border-blue-600 dark:bg-blue-500 dark:border-blue-500":"bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700"),k=y(h,c.button,"bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-300","hover:bg-gray-50 dark:hover:bg-gray-700");return n.jsxs("nav",{className:y("flex items-center gap-1",i),"aria-label":"Pagination",children:[o&&n.jsx("button",{onClick:f,disabled:e===1,className:k,"aria-label":"Go to first page",children:n.jsx("span",{className:c.text,children:"First"})}),n.jsx("button",{onClick:p,disabled:e===1,className:k,"aria-label":"Go to previous page",children:n.jsx(E.ChevronLeftIcon,{className:c.icon})}),g.map((C,N)=>C==="ellipsis"?n.jsx("span",{className:y("inline-flex items-center justify-center",c.button,"text-gray-400 dark:text-gray-500"),children:"..."},`ellipsis-${N}`):n.jsx("button",{onClick:()=>r(C),className:w(C===e),"aria-label":`Go to page ${C}`,"aria-current":C===e?"page":void 0,children:C},C)),n.jsx("button",{onClick:b,disabled:e===t,className:k,"aria-label":"Go to next page",children:n.jsx(E.ChevronRightIcon,{className:c.icon})}),o&&n.jsx("button",{onClick:m,disabled:e===t,className:k,"aria-label":"Go to last page",children:n.jsx("span",{className:c.text,children:"Last"})})]})},Ld=({children:e,variant:t="default",size:r="md",onRemove:a,onClick:o,disabled:s=!1,className:i})=>{const l={sm:{tag:"px-2 py-0.5 text-xs gap-1",icon:"h-3 w-3"},md:{tag:"px-2.5 py-1 text-sm gap-1.5",icon:"h-3.5 w-3.5"},lg:{tag:"px-3 py-1.5 text-base gap-2",icon:"h-4 w-4"}},c={default:"bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700",primary:"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 hover:bg-blue-200 dark:hover:bg-blue-900/50",success:"bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-300 hover:bg-green-200 dark:hover:bg-green-900/50",warning:"bg-yellow-100 dark:bg-yellow-900/30 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-200 dark:hover:bg-yellow-900/50",danger:"bg-red-100 dark:bg-red-900/30 text-red-700 dark:text-red-300 hover:bg-red-200 dark:hover:bg-red-900/50",info:"bg-cyan-100 dark:bg-cyan-900/30 text-cyan-700 dark:text-cyan-300 hover:bg-cyan-200 dark:hover:bg-cyan-900/50",purple:"bg-purple-100 dark:bg-purple-900/30 text-purple-700 dark:text-purple-300 hover:bg-purple-200 dark:hover:bg-purple-900/50"},d=l[r],g=o||a,p=()=>{s||o&&o()},b=f=>{f.stopPropagation(),!(s||!a)&&a()};return n.jsxs("span",{onClick:p,className:y("inline-flex items-center font-medium rounded-full","transition-colors duration-200",d.tag,c[t],g&&!s&&"cursor-pointer",s&&"opacity-50 cursor-not-allowed",i),children:[n.jsx("span",{children:e}),a&&n.jsx("button",{type:"button",onClick:b,disabled:s,className:y("inline-flex items-center justify-center rounded-full","hover:bg-black/10 dark:hover:bg-white/10","transition-colors",s?"cursor-not-allowed":"cursor-pointer"),"aria-label":"Remove",children:n.jsx(he.XMarkIcon,{className:d.icon})})]})},Od=({isOpen:e,onClick:t,opacity:r="medium",blur:a=!1,zIndex:o=50,className:s,children:i})=>{const l={light:"bg-black/20 dark:bg-black/30",medium:"bg-black/50 dark:bg-black/60",dark:"bg-black/75 dark:bg-black/80"};return e?n.jsx("div",{onClick:t,className:y("fixed inset-0","transition-all duration-200",l[r],a&&"backdrop-blur-sm",s),style:{zIndex:o},role:"presentation","aria-hidden":"true",children:i}):null},Md=({children:e,icon:t,onClick:r,disabled:a=!1,danger:o=!1,selected:s=!1,description:i,shortcut:l,className:c})=>{const d=()=>{a||r?.()},g=p=>{a||(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),r?.())};return n.jsxs("div",{role:"menuitem",tabIndex:a?-1:0,onClick:d,onKeyDown:g,className:y("flex items-center gap-3 px-3 py-2","transition-colors duration-150","cursor-pointer select-none",!a&&!o&&!s&&"hover:bg-gray-100 dark:hover:bg-gray-700",!a&&!o&&s&&"bg-blue-50 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300",!a&&o&&"hover:bg-red-50 dark:hover:bg-red-900/30 text-red-600 dark:text-red-400",a&&"opacity-50 cursor-not-allowed",c),"aria-disabled":a,children:[t&&n.jsx(t,{className:y("h-5 w-5 flex-shrink-0",o?"text-red-600 dark:text-red-400":s?"text-blue-600 dark:text-blue-400":"text-gray-500 dark:text-gray-400")}),n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsx("div",{className:y(T.body.md(),o&&"text-red-600 dark:text-red-400",s&&"text-blue-700 dark:text-blue-300 font-medium",!o&&!s&&"text-gray-900 dark:text-gray-100"),children:e}),i&&n.jsx("div",{className:y(T.caption.default(),"text-gray-600 dark:text-gray-400 mt-0.5"),children:i})]}),l&&n.jsx("span",{className:y(T.caption.default(),"text-gray-500 dark:text-gray-400 flex-shrink-0"),children:l})]})},zd=({isLoading:e,message:t,mode:r="fullscreen",blur:a=!1,spinnerSize:o="large",className:s})=>e?n.jsxs("div",{className:y(r==="fullscreen"?"fixed":"absolute","inset-0 z-50","flex flex-col items-center justify-center","bg-white/80 dark:bg-gray-900/80",a&&"backdrop-blur-sm",s),role:"alert","aria-live":"polite","aria-busy":"true",children:[n.jsx(at,{size:o}),t&&n.jsx("p",{className:y(T.body.md(),"text-gray-700 dark:text-gray-300 mt-4"),children:t})]}):null,Dd=({orientation:e="horizontal",spacing:t="md",thickness:r="thin",className:a})=>{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"}},i=e==="horizontal";return n.jsx("div",{role:"separator","aria-orientation":e,className:y("bg-gray-200 dark:bg-gray-700",i?"w-full":"h-full",s[e][r],o[e][t],a)})};x.createContext(void 0);const Bd=({wallet:e,connector:t,className:r="w-8 h-8",iconBasePath:a="/wallet-icons"})=>{const o=e.toLowerCase(),s=l=>{const c={metamask:"metamask.svg",walletconnect:"walletconnect.svg",coinbase:"coinbase.svg",phantom:"phantom.svg",solflare:"solflare.svg",keplr:"keplr.svg",browser:"browser-wallet.svg",injected:"browser-wallet.svg"};for(const[d,g]of Object.entries(c))if(l.includes(d))return`${a}/${g}`;return`${a}/default.svg`};if(t?.icon)return n.jsx("img",{src:t.icon,alt:`${e} wallet`,className:`${r} rounded-lg`,onError:l=>{const c=l.target;c.src=s(o)}});const i=s(o);return n.jsx("img",{src:i,alt:`${e} wallet`,className:`${r} rounded-lg`,onError:l=>{const c=l.target;c.src=`${a}/default.svg`}})},Wd=({size:e="md",className:t="",showText:r=!0,onClick:a,logoSrc:o="/logo.png",logoAlt:s="Logo",logoText:i,fontFamily:l="Dancing Script, cursive"})=>{const d=(()=>{switch(e){case"sm":return{container:"space-x-2",image:"h-6 w-6",text:"text-lg"};case"md":return{container:"space-x-2",image:"h-8 w-8",text:"text-2xl"};case"lg":return{container:"space-x-3",image:"h-10 w-10",text:"text-3xl"};case"xl":return{container:"space-x-4",image:"h-12 w-12",text:"text-4xl"};default:return{container:"space-x-2",image:"h-8 w-8",text:"text-2xl"}}})(),g=n.jsxs(n.Fragment,{children:[n.jsx("img",{src:o,alt:s,className:d.image}),r&&n.jsx("div",{className:`${d.text} font-bold text-gray-900 dark:text-gray-100`,style:{fontFamily:l,fontWeight:"700"},children:i})]});return a?n.jsx("button",{onClick:a,className:`flex items-center ${d.container} ${t} hover:opacity-80 transition-opacity`,children:g}):n.jsx("div",{className:`flex items-center ${d.container} ${t}`,children:g})},jd=({shareConfig:e})=>{const[t,r]=x.useState(!1),[a,o]=x.useState(""),[s,i]=x.useState(!1);x.useEffect(()=>{const g=e.onBeforeShare;g&&!a&&(async()=>{i(!0);try{const b=typeof window<"u"?window.location.href:"",f=await g(b);o(f)}catch{const b=typeof window<"u"?window.location.href:"";o(b)}finally{i(!1)}})()},[e,a]);const l=a||(typeof window<"u"?window.location.href:""),c=[{component:Q.TwitterShareButton,icon:Q.TwitterIcon,props:{url:l,title:e.title,hashtags:e.hashtags},label:"Twitter"},{component:Q.FacebookShareButton,icon:Q.FacebookIcon,props:{url:l,quote:`${e.title}
|
|
60
60
|
|
|
61
61
|
${e.description}`},label:"Facebook"},{component:Q.LinkedinShareButton,icon:Q.LinkedinIcon,props:{url:l,title:e.title,summary:e.description},label:"LinkedIn"},{component:Q.RedditShareButton,icon:Q.RedditIcon,props:{url:l,title:e.title},label:"Reddit"},{component:Q.TelegramShareButton,icon:Q.TelegramIcon,props:{url:l,title:e.title},label:"Telegram"},{component:Q.WhatsappShareButton,icon:Q.WhatsappIcon,props:{url:l,title:e.title,separator:`
|
|
62
62
|
|
|
63
|
-
`},label:"WhatsApp"}],d=async()=>{try{await navigator.clipboard.writeText(l),r(!1)}catch{}};return n.jsxs("div",{className:"relative",children:[n.jsx("button",{onClick:()=>r(!t),className:"flex items-center justify-center w-8 h-8 bg-blue-50 hover:bg-blue-100 dark:bg-blue-900/30 dark:hover:bg-blue-900/50 text-blue-600 dark:text-blue-400 rounded-lg transition-colors",title:"Share this page",children:n.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.367 2.684 3 3 0 00-5.367-2.684z"})})}),t&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"fixed inset-0 z-[999998]",onClick:()=>r(!1)}),n.jsx("div",{className:"absolute right-0 top-10 z-[999999] w-32 bg-white dark:bg-gray-800 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 py-1",children:s?n.jsx("div",{className:"flex items-center justify-center px-3 py-2",children:n.jsx("div",{className:"w-4 h-4 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"})}):n.jsxs(n.Fragment,{children:[c.map((g,m)=>{const f=g.component,p=g.icon;return n.jsx(f,{...g.props,className:"w-full",children:n.jsxs("div",{className:"flex items-center px-3 py-1.5 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer",children:[n.jsx(p,{size:16,round:!0,className:"mr-2"}),n.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-300",children:g.label})]})},m)}),n.jsxs("button",{onClick:d,className:"w-full flex items-center px-3 py-1.5 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer",children:[n.jsx("svg",{className:"w-4 h-4 mr-2 text-gray-600 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})}),n.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-300",children:"Copy Link"})]})]})})]})]})},qa=({items:e,shareConfig:t,className:r,showHome:a})=>n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("nav",{"aria-label":"Breadcrumb",children:n.jsx("ol",{className:"flex items-center text-sm space-x-2",children:e.map((o,s)=>n.jsxs(x.Fragment,{children:[n.jsx("li",{children:o.current?n.jsx("span",{className:"text-gray-700 dark:text-gray-300 font-medium",children:o.label}):n.jsx(Xe.Link,{to:o.href||"#",className:"text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 transition-colors",children:o.label})}),s<e.length-1&&n.jsx("li",{children:n.jsx("span",{className:"text-gray-400 dark:text-gray-500",children:"/"})})]},s))})}),t&&n.jsx(Bd,{shareConfig:t})]}),Wd=({items:e,shareConfig:t})=>n.jsx("div",{className:"bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700 relative z-50",children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-3 relative",children:n.jsx(qa,{items:e,shareConfig:t})})}),jd=({filename:e,code:t,language:r,title:a,className:o="",showCopy:s=!0,showHeader:i=!0})=>{const{t:l}=fr.useTranslation("codeBlock"),{code:c,loading:d,error:g}=Tr(e||""),[m,f]=x.useState(!1),p=t||c,y=r||(e?(w=>{switch(w.split(".").pop()?.toLowerCase()){case"sol":return"solidity";case"js":case"mjs":return"javascript";case"ts":return"typescript";case"sh":return"bash";case"graphql":return"graphql";case"json":return"json";case"css":return"css";case"html":return"html";case"jsx":return"jsx";case"tsx":return"tsx";case"py":return"python";case"java":return"java";case"cpp":case"c":return"cpp";case"go":return"go";case"rs":return"rust";case"php":return"php";case"rb":return"ruby";default:return"text"}})(e):"text"),k=async()=>{if(p)try{await navigator.clipboard.writeText(p),f(!0),setTimeout(()=>f(!1),2e3)}catch{}};return e&&d?n.jsx("div",{className:`bg-gray-900 text-green-400 rounded-lg p-4 font-mono text-sm ${o}`,children:n.jsx("div",{className:"animate-pulse text-gray-500",children:l("loadingCode","Loading code...")})}):e&&g?n.jsxs("div",{className:`bg-gray-900 text-red-400 rounded-lg p-4 font-mono text-sm ${o}`,children:[l("error","Error"),": ",g]}):p?n.jsxs("div",{className:`bg-gray-900 rounded-lg border border-green-500/20 shadow-lg shadow-green-500/10 ${o}`,children:[i&&n.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-green-500/20 bg-gray-800/50",children:[n.jsx("span",{className:"text-sm text-green-400 font-mono",children:a||e||`${y} code`}),s&&n.jsx("button",{onClick:k,className:"p-2 text-gray-400 hover:text-green-400 hover:bg-gray-800 rounded-lg transition-all duration-200 group",title:l("copyCode","Copy code"),children:m?n.jsx(E.CheckIcon,{className:"h-4 w-4 text-green-400"}):n.jsx(E.ClipboardDocumentIcon,{className:"h-4 w-4 group-hover:scale-110 transition-transform"})})]}),n.jsx("div",{className:"p-4 overflow-x-auto text-left",children:n.jsx("pre",{className:`text-sm language-${y}`,children:n.jsx("code",{className:"text-gray-100",children:p})})})]}):n.jsx("div",{className:`bg-gray-900 text-gray-400 rounded-lg p-4 font-mono text-sm ${o}`,children:l("noCode","No code to display")})},Fd=({title:e,description:t,code:r,preview:a,language:o="tsx",showBrowserChrome:s=!0,copyKey:i})=>{const[l,c]=x.useState({}),d=(f,p)=>{navigator.clipboard.writeText(f).then(()=>{c(h=>({...h,[p]:!0})),setTimeout(()=>{c(h=>({...h,[p]:!1}))},2e3)})},g=i||`${e}-code`,m=l[g];return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:e}),t&&n.jsx("p",{className:"text-gray-600 dark:text-gray-400 text-sm",children:t})]}),a&&n.jsxs("div",{className:"relative",children:[s&&n.jsxs("div",{className:"bg-gray-200 dark:bg-gray-700 rounded-t-lg px-4 py-3 flex items-center space-x-2",children:[n.jsxs("div",{className:"flex space-x-2",children:[n.jsx("div",{className:"w-3 h-3 rounded-full bg-red-500"}),n.jsx("div",{className:"w-3 h-3 rounded-full bg-yellow-500"}),n.jsx("div",{className:"w-3 h-3 rounded-full bg-green-500"})]}),n.jsx("div",{className:"flex-1 text-center",children:n.jsx("div",{className:"bg-white dark:bg-gray-600 rounded px-3 py-1 text-xs text-gray-600 dark:text-gray-300 inline-block",children:"Preview"})})]}),n.jsx("div",{className:`bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 p-6 ${s?"rounded-b-lg":"rounded-lg"}`,children:a})]}),n.jsx("div",{className:"relative",children:n.jsxs("div",{className:"bg-gray-900 rounded-lg overflow-hidden",children:[n.jsxs("div",{className:"bg-gray-800 px-4 py-2 flex justify-between items-center",children:[n.jsx("span",{className:"text-gray-300 text-sm font-mono",children:o}),n.jsx("button",{onClick:()=>d(r,g),className:"flex items-center space-x-1 text-gray-300 hover:text-white transition-colors text-sm","aria-label":m?"Copied!":"Copy code",children:m?n.jsxs(n.Fragment,{children:[n.jsx(E.CheckIcon,{className:"h-4 w-4"}),n.jsx("span",{children:"Copied!"})]}):n.jsxs(n.Fragment,{children:[n.jsx(E.ClipboardIcon,{className:"h-4 w-4"}),n.jsx("span",{children:"Copy"})]})})]}),n.jsx("div",{className:"p-4 overflow-x-auto",children:n.jsx("pre",{className:"text-gray-100 text-sm leading-relaxed",children:n.jsx("code",{children:r})})})]})})]})},_d=({subsections:e,isExpanded:t,selectedSubsection:r,parentSectionId:a,onSubsectionSelect:o})=>{const s=x.useRef(null),[i,l]=x.useState(void 0);return x.useLayoutEffect(()=>{if(s.current){const c=s.current.scrollHeight;l(t?c+16:0)}},[t,e]),n.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{height:i!==void 0?`${i}px`:"auto"},children:n.jsx("div",{ref:s,className:"ml-6 mt-1 mb-1 space-y-1",children:e.map(c=>n.jsxs("div",{className:"relative group",children:[r===c.id&&n.jsx("div",{className:"absolute top-0.5 bottom-0.5 left-1 right-12 bg-blue-500/20 dark:bg-blue-400/20 rounded-lg pointer-events-none"}),r!==c.id&&n.jsx("div",{className:"absolute top-0.5 bottom-0.5 left-1 right-12 bg-blue-500/0 group-hover:bg-blue-500/10 dark:group-hover:bg-blue-400/10 rounded-lg pointer-events-none transition-colors duration-200"}),n.jsx("button",{onClick:()=>o?.(c.id,a),className:`relative z-10 block w-full text-left pl-4 pr-3 py-2 rounded-md text-sm transition-all duration-200 ${r===c.id?"text-blue-700 dark:text-blue-300":"text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-200"}`,children:c.title})]},c.id))})})},Hd=({id:e,title:t,content:r,subsections:a,isSelected:o=!1,selectedSubsection:s=null,onSectionSelect:i,onSubsectionSelect:l,className:c=""})=>{const[d,g]=x.useState(!1),m=()=>{g(!d)},f=()=>{i?.(e)},p=a&&a.length>0;return n.jsxs("div",{className:c,children:[n.jsxs("div",{className:"relative flex items-center group",children:[o&&!s&&n.jsx("div",{className:"absolute top-2 bottom-2 left-2 right-12 bg-blue-500/20 dark:bg-blue-400/20 rounded-lg pointer-events-none"}),!(o&&!s)&&n.jsx("div",{className:"absolute top-2 bottom-2 left-2 right-12 bg-blue-500/0 group-hover:bg-blue-500/10 dark:group-hover:bg-blue-400/10 rounded-lg pointer-events-none transition-colors duration-200"}),n.jsx("button",{onClick:f,className:`relative z-10 flex-1 text-left pl-5 pr-3 py-4 text-base font-medium transition-all duration-200 ${o&&!s?"text-blue-700 dark:text-blue-300":"text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-gray-100"}`,children:t}),p&&n.jsx("button",{onClick:m,className:"p-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800 hover:scale-110 transition-all duration-200","aria-label":d?"Collapse section":"Expand section",children:n.jsx(E.ChevronRightIcon,{className:`h-5 w-5 text-gray-500 transition-transform duration-300 ease-in-out ${d?"rotate-90":"rotate-0"}`})})]}),p&&n.jsx(_d,{subsections:a,isExpanded:d,selectedSubsection:s,parentSectionId:e,onSubsectionSelect:l})]})},Vd=({title:e,subtitle:t,buttonText:r,buttonIcon:a="envelope",variant:o="default",badgeText:s="FREE",prominentBadgeText:i="100% Free",onButtonClick:l,className:c=""})=>{const d=()=>a==="envelope"||a==="both"?n.jsx(E.EnvelopeIcon,{className:o==="prominent"?"h-5 w-5 mr-2":"h-4 w-4 mr-1"}):a==="none"?null:n.jsx("svg",{className:o==="prominent"?"h-5 w-5 mr-2":"h-4 w-4 mr-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 12a4 4 0 10-8 0 4 4 0 008 0zm0 0v1.5a2.5 2.5 0 005 0V12a9 9 0 10-9 9m4.5-1.206a8.959 8.959 0 01-4.5 1.207"})}),g=()=>a==="arrow"||a==="both"?n.jsx(E.ArrowRightIcon,{className:"h-4 w-4 ml-2"}):null,m=()=>o==="prominent"?"border-b-2 border-green-200 dark:border-green-700":"border-b border-green-200 dark:border-green-700",f=()=>{const y="bg-gradient-to-r from-green-600 to-blue-600 hover:from-green-700 hover:to-blue-700 text-white rounded-lg font-bold transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-green-500/25 inline-flex items-center whitespace-nowrap cursor-pointer";return o==="prominent"?`${y} px-8 py-3 text-base`:`${y} px-6 py-2 text-sm`},p=()=>o==="prominent"?"text-green-800 dark:text-green-200 font-semibold text-lg":"text-green-800 dark:text-green-200 font-semibold",h=o==="prominent"?i:s;return n.jsx("div",{className:`bg-gradient-to-r from-green-100 to-blue-100 dark:from-green-900/20 dark:to-blue-900/20 ${m()} ${c}`,children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:n.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4",children:[n.jsxs("div",{className:`flex items-center ${o==="prominent"?"text-center sm:text-left":""}`,children:[n.jsx("div",{className:"bg-green-500 text-white text-xs font-bold px-3 py-1 rounded-full mr-3 animate-pulse",children:h}),n.jsxs("div",{children:[n.jsx("span",{className:p(),children:e}),t&&n.jsx("span",{className:"text-green-700 dark:text-green-300 text-sm block",children:t})]})]}),n.jsxs("button",{onClick:l,className:f(),children:[d(),r,g()]})]})})})},qd=({children:e,onClick:t,variant:r,size:a,disabled:o,className:s,type:i,trackingLabel:l,actionType:c,componentName:d,onTrack:g,trackingParams:m={},...f})=>{const p=h=>{if(g){const y=l||(typeof e=="string"?e:"")||"Unknown Button",w=r&&["default","primary","secondary","outline","ghost","destructive","link"].includes(r)?r:"default";g({button_text:y,button_type:w,component_name:d,action_type:c,...m})}t&&t(h)};return n.jsx(de,{...f,variant:r,size:a,disabled:o,className:s,type:i,onClick:p,children:e})},Ud=({children:e,onClick:t,to:r,href:a,trackingLabel:o,componentName:s,onTrack:i,trackingParams:l={},LinkComponent:c,linkProps:d={},...g})=>{const m=p=>{if(i){const h=o||(typeof e=="string"?e:"")||"Unknown Link",y=r?typeof r=="string"?r:r.pathname||"":a||"";i({link_text:h,link_url:y,to_page:y,navigation_type:c?"router_link":"anchor_link",component_name:s,...l})}t&&t(p)};if(c&&r!==void 0)return n.jsx(c,{...d,to:r,onClick:m,...g,children:e});const f=r?typeof r=="string"?r:r.pathname||"#":a;return n.jsx("a",{...g,href:f,onClick:m,children:e})},Ua={en:{name:"English",flag:"🇺🇸"},ar:{name:"العربية",flag:"🇸🇦"},de:{name:"Deutsch",flag:"🇩🇪"},es:{name:"Español",flag:"🇪🇸"},fr:{name:"Français",flag:"🇫🇷"},it:{name:"Italiano",flag:"🇮🇹"},ja:{name:"日本語",flag:"🇯🇵"},ko:{name:"한국어",flag:"🇰🇷"},pt:{name:"Português",flag:"🇵🇹"},ru:{name:"Русский",flag:"🇷🇺"},sv:{name:"Svenska",flag:"🇸🇪"},th:{name:"ไทย",flag:"🇹🇭"},uk:{name:"Українська",flag:"🇺🇦"},vi:{name:"Tiếng Việt",flag:"🇻🇳"},zh:{name:"简体中文",flag:"🇨🇳"}},Gd=({variant:e="compact",className:t=""})=>{const{i18n:r,t:a}=fr.useTranslation("languageSelector"),[o,s]=x.useState(r.language),i=x.useMemo(()=>r.options.supportedLngs?r.options.supportedLngs.filter(d=>d!=="cimode").map(d=>({code:d,name:Ua[d]?.name||d.toUpperCase(),flag:Ua[d]?.flag||"🌐"})).sort((d,g)=>d.name.localeCompare(g.name)):[],[r.options.supportedLngs]),l=i.find(d=>d.code===o||d.code.toLowerCase()===o.toLowerCase());x.useEffect(()=>{s(r.language)},[r.language]);const c=d=>{localStorage.setItem("language",d),r.changeLanguage(d).then(()=>{s(r.language),setTimeout(()=>{window.dispatchEvent(new Event("languagechange"))},100)}).catch(()=>{})};return e==="compact"?n.jsx("div",{className:`relative ${t}`,children:n.jsxs(Ot,{value:o,onValueChange:c,children:[n.jsx(Re,{className:"h-10 w-auto px-3 border-0 bg-transparent hover:bg-gray-100 dark:hover:bg-gray-700 focus:ring-0 focus:ring-offset-0",children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-lg leading-none",children:l?.flag}),n.jsx("span",{className:"hidden sm:block text-sm font-medium text-gray-700 dark:text-gray-300",children:l?.name})]})}),n.jsx(et,{children:i.map(d=>n.jsx(tt,{value:d.code,className:"cursor-pointer",children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-lg leading-none",children:d.flag}),n.jsx("span",{className:"text-sm",children:d.name})]})},d.code))})]})}):n.jsxs("div",{className:`space-y-2 ${t}`,children:[n.jsxs("label",{className:"text-sm font-medium text-gray-700 dark:text-gray-300 flex items-center space-x-2",children:[n.jsx(E.LanguageIcon,{className:"h-4 w-4 text-gray-500 dark:text-gray-400"}),n.jsx("span",{children:a("language","Language")})]}),n.jsxs(Ot,{value:o,onValueChange:c,children:[n.jsx(Re,{children:n.jsx(Mr,{placeholder:a("selectLanguage","Select language")})}),n.jsx(et,{children:i.map(d=>n.jsx(tt,{value:d.code,className:"cursor-pointer",children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-lg leading-none",children:d.flag}),n.jsx("span",{children:d.name})]})},d.code))})]}),n.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:a("selectPreferredLanguage","Select your preferred language")})]})},Kd=({items:e,type:t="ordered",variant:r="default",className:a,itemClassName:o})=>{const s=()=>{const d="space-y-2",g={ordered:t==="ordered"?"list-decimal":"",unordered:t==="unordered"?"list-disc":""},m={default:"list-inside",enhanced:"list-inside space-y-3",minimal:"list-none space-y-1"};return b(d,g[t],m[r])},i=d=>{const g="text-gray-600 dark:text-gray-400";return r==="enhanced"?b(g,"relative pl-8 pb-2 border-l-2 border-gray-200 dark:border-gray-700",d===e.length-1&&"border-l-transparent"):r==="minimal"?b(g,"flex items-start"):g},l=d=>r==="enhanced"&&t==="ordered"?n.jsx("div",{className:"absolute -left-4 -top-1 w-6 h-6 bg-blue-600 text-white rounded-full flex items-center justify-center text-sm font-medium",children:d+1}):null,c=(d,g)=>{const m=typeof d=="object",f=m?d.content:d,p=m?d.subItems:void 0;return n.jsxs("li",{className:b(i(g),o),children:[l(g),r==="minimal"&&t==="ordered"&&n.jsx("span",{className:"inline-block w-6 h-6 bg-blue-100 dark:bg-blue-900/20 text-blue-600 dark:text-blue-400 rounded-full text-sm font-medium text-center leading-6 mr-3 flex-shrink-0",children:g+1}),r==="minimal"&&t==="unordered"&&n.jsx("span",{className:"inline-block w-2 h-2 bg-blue-600 rounded-full mt-2 mr-3 flex-shrink-0"}),n.jsxs("div",{className:"flex-1",children:[n.jsx("div",{children:f}),p&&p.length>0&&n.jsx("ul",{className:"mt-2 ml-4 space-y-1 list-disc list-inside text-sm text-gray-500 dark:text-gray-500",children:p.map((h,y)=>n.jsx("li",{children:h},y))})]})]},g)};return n.jsx("ul",{className:b(s(),a),children:e.map(c)})};class Yd extends x.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("ErrorBoundary caught an error:",t,r),this.props.onError?.(t,r)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:n.jsxs("div",{style:{padding:"20px",border:"1px solid red",margin:"10px"},children:[n.jsx("h2",{children:"Something went wrong"}),n.jsxs("p",{children:["Error: ",this.state.error?.message||"Unknown error"]}),n.jsx("button",{onClick:()=>this.setState({hasError:!1}),children:"Try again"})]}):this.props.children}}class Qd extends x.Component{constructor(t){super(t),this.retryTimer=null,this.sendErrorToMonitoring=(r,a)=>{try{typeof window<"u"&&window.Sentry&&window.Sentry?.captureException(r,{contexts:{react:{componentStack:a.componentStack}},tags:{errorBoundary:!0,componentName:this.props.componentName||"unknown",lazyLoading:!0}}),typeof window<"u"&&window.gtag&&window.gtag?.("event","exception",{description:r.message,fatal:!1,custom_map:{component:this.props.componentName||"unknown"}})}catch{}},this.handleRetry=()=>{const{maxRetries:r=3,retryDelay:a=1e3}=this.props,{retryCount:o}=this.state;if(o>=r)return;this.setState({isRetrying:!0}),this.retryTimer&&clearTimeout(this.retryTimer);const s=a*Math.pow(2,o);this.retryTimer=setTimeout(()=>{this.setState({hasError:!1,error:null,errorInfo:null,retryCount:o+1,isRetrying:!1})},s)},this.handleReload=()=>{window.location.reload()},this.state={hasError:!1,error:null,errorInfo:null,retryCount:0,isRetrying:!1,lastErrorTime:0}}static getDerivedStateFromError(t){return{hasError:!0,error:t,lastErrorTime:Date.now()}}componentDidCatch(t,r){const{onError:a,componentName:o}=this.props;this.setState({error:t,errorInfo:r}),console.error(`LazyErrorBoundary caught an error in ${o||"Unknown Component"}:`,t,r),a?.(t,r),this.sendErrorToMonitoring(t,r)}componentWillUnmount(){this.retryTimer&&clearTimeout(this.retryTimer)}render(){const{children:t,fallback:r,componentName:a,showRetryButton:o=!0,maxRetries:s=3}=this.props,{hasError:i,error:l,isRetrying:c,retryCount:d}=this.state;return i&&l?r||n.jsx("div",{className:"lazy-error-boundary error-boundary-container",children:n.jsxs("div",{className:"error-content",children:[n.jsx("div",{className:"error-icon",children:"⚠️"}),n.jsxs("h3",{className:"error-title",children:["Something went wrong loading ",a||"this component"]}),n.jsxs("div",{className:"error-details",children:[n.jsx("p",{className:"error-message",children:l.message}),process.env.NODE_ENV==="development"&&n.jsxs("details",{className:"error-stack",children:[n.jsx("summary",{children:"Error Details (Development)"}),n.jsx("pre",{children:l.stack})]})]}),n.jsxs("div",{className:"error-actions",children:[o&&d<s&&n.jsx("button",{onClick:this.handleRetry,disabled:c,className:"retry-button",children:c?"Retrying...":`Retry (${d}/${s})`}),d>=s&&n.jsx("button",{onClick:this.handleReload,className:"reload-button",children:"Reload Page"})]}),n.jsxs("div",{className:"error-help",children:[n.jsx("p",{children:"This might be a temporary issue. Try refreshing the page."}),navigator.onLine===!1&&n.jsx("p",{className:"offline-notice",children:"You appear to be offline. Check your connection and try again."})]})]})}):t}}const Xd=({children:e})=>n.jsx(n.Fragment,{children:e}),Zd=({children:e})=>n.jsx(n.Fragment,{children:e}),Jd=(e,t,r)=>{const a=x.memo(e,t);return r&&(a.displayName=`Memo(${r})`),process.env.NODE_ENV==="development"?o=>(x.useMemo(()=>{let i=0;return()=>++i},[])(),n.jsx(a,{...o})):a},Rd=(e,t)=>x.memo(e,(r,a)=>t.every(o=>r[o]===a[o])),e0=x.memo(({children:e,compute:t,deps:r})=>{const a=x.useRef(r),o=x.useRef(t),s=x.useRef(void 0),i=x.useMemo(()=>{const l=r.length!==a.current.length||r.some((d,g)=>d!==a.current[g]),c=t!==o.current;if(l||c||s.current===void 0){let d;return process.env.NODE_ENV==="development"?(performance.now(),d=t(),performance.now()):d=t(),a.current=r,o.current=t,s.current=d,d}return s.current},[t,r]);return n.jsx(n.Fragment,{children:e(i)})}),t0=x.memo(({item:e,index:t,style:r,renderItem:a})=>n.jsx("div",{style:r,children:a(e,t)}),(e,t)=>e.index===t.index&&e.item===t.item&&e.style.height===t.style.height&&e.style.top===t.style.top),r0=x.memo(({condition:e,children:t,fallback:r=null})=>e?n.jsx(n.Fragment,{children:t}):n.jsx(n.Fragment,{children:r})),a0=({children:e,threshold:t=.1,rootMargin:r="50px",fallback:a=null})=>{const[o,s]=x.useState(!1),i=x.useRef(null);return x.useEffect(()=>{const l=new IntersectionObserver(([c])=>{c.isIntersecting&&(s(!0),l.disconnect())},{threshold:t,rootMargin:r});return i.current&&l.observe(i.current),()=>l.disconnect()},[t,r]),n.jsx("div",{ref:i,children:o?e:a})},n0=({children:e,maxRenderTime:t=16,onSlowRender:r})=>{const a=x.useRef(0);return x.useLayoutEffect(()=>{a.current=performance.now()}),x.useEffect(()=>{const o=performance.now()-a.current;o>t&&r?.(o)}),n.jsx(n.Fragment,{children:e})},o0=({children:e,batchSize:t=5,delay:r=0})=>{const[a,o]=x.useState(t);return x.useEffect(()=>{if(a<e.length){const s=setTimeout(()=>{o(i=>Math.min(i+t,e.length))},r);return()=>clearTimeout(s)}},[a,e.length,t,r]),n.jsx(n.Fragment,{children:e.slice(0,a)})},s0=({src:e,alt:t,placeholder:r,lowQualitySrc:a,aspectRatio:o="16/9",eager:s=!1,className:i="",...l})=>{const[c,d]=x.useState(!1),[g,m]=x.useState(s),[f,p]=x.useState(!1),h=x.useRef(null),y=x.useRef(null);x.useEffect(()=>{if(s){m(!0);return}return y.current=new IntersectionObserver(C=>{C.forEach(N=>{N.isIntersecting&&(m(!0),y.current&&h.current&&y.current.unobserve(h.current))})},{rootMargin:"50px",threshold:.01}),h.current&&y.current.observe(h.current),()=>{y.current&&y.current.disconnect()}},[s]);const k=()=>{d(!0)},w=()=>{p(!0)};return n.jsxs("div",{className:`relative overflow-hidden ${i}`,style:{aspectRatio:o},children:[a&&!c&&n.jsx("img",{src:a,alt:"",className:"absolute inset-0 w-full h-full object-cover blur-sm","aria-hidden":"true"}),!a&&!c&&n.jsx("div",{className:"absolute inset-0 bg-gray-200 dark:bg-gray-700 animate-pulse","aria-hidden":"true"}),g&&!f&&n.jsx("img",{ref:h,src:e,alt:t,onLoad:k,onError:w,className:`absolute inset-0 w-full h-full object-cover transition-opacity duration-500 ${c?"opacity-100":"opacity-0"}`,loading:s?"eager":"lazy",...l}),f&&n.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-100 dark:bg-gray-800",children:n.jsxs("div",{className:"text-center text-gray-500 dark:text-gray-400",children:[n.jsx("svg",{className:"mx-auto h-12 w-12 mb-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})}),n.jsx("p",{className:"text-sm",children:"Failed to load image"})]})})]})},i0=({title:e,description:t,primaryButton:r,secondaryButton:a,gradient:o={from:"blue-600",to:"purple-600"},textColor:s="light",className:i="",size:l="lg"})=>{const d=(()=>{const y=o.via?`${o.from}-${o.via}-${o.to}`:`${o.from}-${o.to}`;return{"blue-600-purple-600":"bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-700 dark:to-purple-700","orange-900-red-900":"bg-gradient-to-r from-orange-600 to-red-600 dark:from-orange-700 dark:to-red-700","green-600-blue-600":"bg-gradient-to-r from-green-600 to-blue-600 dark:from-green-700 dark:to-blue-700","purple-600-pink-600":"bg-gradient-to-r from-purple-600 to-pink-600 dark:from-purple-700 dark:to-pink-700"}[y]||"bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-700 dark:to-purple-700"})(),g=s==="light"?"text-white":"text-gray-900 dark:text-gray-100",m={sm:"py-12",md:"py-16",lg:"py-20"},f={sm:"text-2xl md:text-3xl",md:"text-3xl md:text-4xl",lg:"text-4xl md:text-5xl"},p={sm:"text-base md:text-lg",md:"text-lg md:text-xl",lg:"text-xl md:text-2xl"},h=(y,k=!1)=>{const w=()=>y.variant==="primary"||k?"gradient":(y.variant==="secondary","outline"),C=n.jsx(de,{variant:w(),size:"lg",className:k?"":"bg-white/10 hover:bg-white/20 backdrop-blur-sm border-white/30",children:y.label});return y.external?n.jsx("a",{href:y.href,target:"_blank",rel:"noopener noreferrer",children:C}):n.jsx(Xe.Link,{to:y.href,children:C})};return n.jsxs("section",{className:`${d} ${m[l]} relative overflow-hidden ${i}`,children:[n.jsx("div",{className:"absolute inset-0 bg-black/20"}),n.jsxs("div",{className:"absolute top-0 left-1/2 transform -translate-x-1/2 w-full h-full",children:[n.jsx("div",{className:"absolute top-10 left-10 w-72 h-72 bg-white/10 rounded-full blur-3xl"}),n.jsx("div",{className:"absolute bottom-10 right-10 w-72 h-72 bg-white/10 rounded-full blur-3xl"})]}),n.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[n.jsx("h2",{className:`${f[l]} font-bold ${g} mb-6`,children:e}),n.jsx("p",{className:`${p[l]} ${g}/90 mb-8 max-w-2xl mx-auto`,children:t}),n.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[h(r,!0),a&&h(a,!1)]})]})]})},l0=({children:e,backgroundClassName:t="",contentClassName:r=""})=>n.jsx("div",{className:t,children:n.jsx("div",{className:r,children:e})}),c0=({title:e,description:t})=>n.jsxs("div",{className:"mb-8",children:[n.jsx("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:e}),t&&n.jsx("p",{className:"mt-2 text-gray-600 dark:text-gray-400",children:t})]}),d0=({isSelected:e,onClick:t,icon:r,label:a,description:o,className:s=""})=>n.jsxs("div",{onClick:t,className:`relative flex items-start p-4 cursor-pointer transition-all border-b border-gray-200 dark:border-gray-700 last:border-b-0 group ${s}`,children:[e&&n.jsx("div",{className:"absolute inset-1 bg-blue-500/10 dark:bg-blue-400/10 rounded-lg pointer-events-none"}),n.jsxs("div",{className:"relative z-10 flex items-start w-full",children:[r&&n.jsx(r,{className:`h-5 w-5 mt-0.5 mr-3 flex-shrink-0 transition-colors ${e?"text-blue-600 dark:text-blue-400":"text-gray-500 dark:text-gray-400 group-hover:text-gray-700 dark:group-hover:text-gray-300"}`}),n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsx("div",{className:`font-medium transition-colors ${e?"text-blue-600 dark:text-blue-400":"text-gray-900 dark:text-gray-100 group-hover:text-gray-700 dark:group-hover:text-gray-300"}`,children:a}),o&&n.jsx("div",{className:`text-xs mt-0.5 transition-colors ${e?"text-blue-500 dark:text-blue-300":"text-gray-500 dark:text-gray-400"}`,children:o})]})]})]}),u0=({masterTitle:e,masterSubtitle:t,backButtonText:r,masterContent:a,detailContent:o,detailTitle:s,mobileView:i="navigation",onBackToNavigation:l,masterClassName:c="",detailClassName:d="",detailTitleClassName:g="",masterWidth:m=320,stickyMaster:f=!0,stickyTopOffset:p=96,desktopGap:h=32,showMasterBackground:y=!0,enableAnimations:k=!0,animationDuration:w=300,animationRef:C})=>{const N=`gap-${Math.round(h/4)}`||"gap-8",P=q=>q?q.split("-")[0].trim():"Back",A=r?P(r):e?P(e):"Back",[$,I]=x.useState(!1),[z,D]=x.useState("auto"),M=x.useRef(null),B=x.useRef(null);x.useEffect(()=>(C&&(C.current={triggerTransition:q=>{if(!k){q();return}if(M.current){const F=M.current.scrollHeight;D(F)}I(!0),B.current&&clearTimeout(B.current),B.current=setTimeout(()=>{q(),setTimeout(()=>{if(M.current){const F=M.current.scrollHeight;D(F),setTimeout(()=>{D("auto"),I(!1)},w)}},50)},w/2)}}),()=>{B.current&&clearTimeout(B.current)}),[k,w,C]);const V=k?{height:z==="auto"?"auto":`${z}px`,transition:`height ${w}ms cubic-bezier(0.4, 0, 0.2, 1)`,width:"100%",maxWidth:"100%"}:{width:"100%",maxWidth:"100%"},W=k?`${$?"opacity-0 transform translate-y-2":"opacity-100 transform translate-y-0"}`:"",j=k?{transition:`opacity ${w}ms ease-in-out, transform ${w}ms ease-in-out`}:{};return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`md:hidden ${i==="navigation"?"block":"hidden"} flex-1`,children:n.jsxs("div",{className:y?"bg-white dark:bg-gray-800 p-6":"p-6",children:[e&&n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-4",children:e}),t&&n.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-6 break-all",children:t})]}),n.jsx("div",{className:c,children:a})]})}),n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[n.jsxs("div",{className:`md:hidden ${i==="content"?"block":"hidden"}`,children:[i==="content"&&l&&n.jsxs("button",{onClick:l,className:"mb-4 px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-md 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 transition-colors",children:["← ",A]}),n.jsx("div",{ref:M,className:`bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-8 overflow-hidden ${d}`,style:V,children:n.jsxs("div",{className:W,style:j,children:[s&&n.jsx("h1",{className:`text-4xl font-bold text-gray-900 dark:text-white mb-6 ${g}`,children:s}),o]})})]}),n.jsxs("div",{className:`hidden md:flex min-h-full ${N}`,style:{width:"100%"},children:[n.jsx("aside",{className:"flex-shrink-0",style:{width:`${m}px`,minWidth:`${m}px`},children:n.jsxs("div",{className:f?"sticky":"",style:f?{top:`${p}px`}:void 0,children:[e&&n.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4",children:e}),t&&n.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-6 break-all",children:t}),n.jsx("div",{className:`bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 ${f?"max-h-[calc(100vh-200px)] overflow-y-auto":""} ${c}`,children:a})]})}),n.jsx("div",{className:"flex-1 min-w-0",style:{width:`calc(100% - ${m+h}px)`},children:n.jsx("div",{ref:M,className:`bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-8 overflow-hidden ${d}`,style:V,children:n.jsxs("div",{className:W,style:j,children:[s&&n.jsx("h1",{className:`text-4xl font-bold text-gray-900 dark:text-white mb-6 ${g}`,children:s}),o]})})})]})]})]})},g0=({children:e})=>(x.useEffect(()=>{const t=()=>{[].forEach(m=>{const f=document.createElement("link");f.rel="preload",f.href=m.href,f.as=m.as,m.type&&(f.type=m.type),m.crossorigin&&(f.crossOrigin=""),document.head.appendChild(f)})},r=()=>{document.querySelectorAll('img[data-priority="high"]').forEach(f=>{f.fetchPriority="high"});const m=document.querySelector("[data-hero]");if(m){const f=m.getAttribute("data-bg-image");if(f){const p=document.createElement("link");p.rel="preload",p.href=f,p.as="image",document.head.appendChild(p)}}},a=()=>{document.querySelectorAll("img:not([width]):not([height])").forEach(f=>{const p=f;p.naturalWidth&&p.naturalHeight&&(p.width=p.naturalWidth,p.height=p.naturalHeight)}),document.querySelectorAll("[data-dynamic]").forEach(f=>{f.getAttribute("style")?.includes("min-height")||(f.style.minHeight="200px")})},o=()=>{const g=()=>{document.querySelectorAll("script[data-defer]").forEach(p=>{p.setAttribute("defer","")})};"requestIdleCallback"in window?requestIdleCallback(()=>{g()}):setTimeout(g,1),(()=>{["scroll","touchstart","touchmove","wheel"].forEach(p=>{document.addEventListener(p,()=>{},{passive:!0})})})()},s=()=>{},i=()=>{[{rel:"dns-prefetch",href:"//fonts.googleapis.com"},{rel:"dns-prefetch",href:"//api.0xmail.box"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossorigin:!0},{rel:"preconnect",href:"https://api.0xmail.box"}].forEach(m=>{const f=document.createElement("link");f.rel=m.rel,f.href=m.href,m.crossorigin&&(f.crossOrigin=""),document.head.appendChild(f)})},l=()=>{if(document.querySelectorAll("img[data-lazy]").forEach(m=>{m.loading="lazy"}),"IntersectionObserver"in window){const m=new IntersectionObserver(p=>{p.forEach(h=>{if(h.isIntersecting){const y=h.target;y.dataset.src&&(y.src=y.dataset.src,y.removeAttribute("data-src")),m.unobserve(y)}})},{rootMargin:"50px 0px"});document.querySelectorAll("img[data-src]").forEach(p=>m.observe(p))}},c=()=>{[{name:"ai-content-type",content:"web3-email-platform"},{name:"ai-primary-function",content:"wallet-based-email"},{name:"ai-supported-chains",content:"ethereum,solana,polygon,arbitrum,optimism"},{name:"ai-complexity-level",content:"beginner-to-advanced"},{name:"ai-target-users",content:"web3-users,crypto-enthusiasts,developers"},{name:"machine-readable",content:"true"},{name:"structured-data",content:"json-ld"},{name:"content-category",content:"technology,blockchain,communication"},{name:"interaction-model",content:"wallet-authentication"}].forEach(({name:p,content:h})=>{if(!document.querySelector(`meta[name="${p}"]`)){const y=document.createElement("meta");y.name=p,y.content=h,document.head.appendChild(y)}});const m={"@context":"https://schema.org","@type":"WebApplication",name:"0xmail.box",description:"Web3 email platform using blockchain wallet authentication",url:"https://0xmail.box",applicationCategory:"CommunicationApplication",operatingSystem:"Web Browser",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},featureList:["Wallet-based authentication","ENS domain email support","SNS domain email support","Multi-chain compatibility","Smart contract integration","Web2/Web3 bridge"],audience:{"@type":"Audience",audienceType:"Web3 Users"}},f=document.createElement("script");f.type="application/ld+json",f.textContent=JSON.stringify(m),document.head.appendChild(f)},d=()=>{document.querySelectorAll('link[rel="stylesheet"][data-non-critical]').forEach(m=>{const f=m.cloneNode(!0);f.rel="preload",f.as="style",f.onload=()=>{f.onload=null,f.rel="stylesheet"},document.head.appendChild(f),m.remove()})};return t(),r(),a(),o(),i(),l(),c(),d(),setTimeout(s,2e3),()=>{}},[]),n.jsx(n.Fragment,{children:e})),m0=()=>(x.useEffect(()=>{if(typeof window>"u"||typeof document>"u"||!document.documentElement)return;const e=()=>{if("IntersectionObserver"in window){const l=new IntersectionObserver(c=>{c.forEach(d=>{if(d.isIntersecting){const g=d.target;g.dataset.src&&(g.src=g.dataset.src,g.removeAttribute("data-src"),l.unobserve(g))}})},{rootMargin:"50px 0px"});document.querySelectorAll("img[data-src]").forEach(c=>{l.observe(c)})}const o=()=>{["/connect","/mail","/settings"].forEach(c=>{const d=document.createElement("link");d.rel="prefetch",d.href=c,document.head.appendChild(d)})},s=()=>{if(!document.querySelector("script[data-wallet-detection]")){const l=document.createElement("script");l.dataset.walletDetection="true",l.innerHTML='(function() { window.walletPreload = { hasMetaMask: typeof window.ethereum !== "undefined", hasPhantom: typeof window.solana !== "undefined", hasWalletConnect: true }; })();',document.head.appendChild(l)}},i=()=>{document.querySelectorAll("img[data-hero]").forEach(l=>{const c=l;c.loading="eager","fetchPriority"in c&&(c.fetchPriority="high")}),document.querySelectorAll('img[data-priority="low"]').forEach(l=>{const c=l;c.loading="lazy","fetchPriority"in c&&(c.fetchPriority="low")})};requestIdleCallback(()=>{o(),s(),i()},{timeout:2e3})},t=()=>{if("PerformanceObserver"in window){const o=new PerformanceObserver(i=>{const l=i.getEntries(),c=l[l.length-1];c&&c.startTime>2500&&(document.documentElement.style.setProperty("--animation-duration","0s"),localStorage.setItem("reduce-image-quality","true"))});try{o.observe({entryTypes:["largest-contentful-paint"]})}catch{}const s=new PerformanceObserver(i=>{let l=0;for(const c of i.getEntries())c.hadRecentInput||(l+=c.value);l>.1&&document.querySelectorAll("img:not([width]):not([height])").forEach(c=>{const d=c;d.style.aspectRatio="16/9"})});try{s.observe({entryTypes:["layout-shift"]})}catch{}}},r=()=>{if("connection"in navigator&&typeof document<"u"&&document.documentElement){const o=navigator.connection;if(o){const s=o.effectiveType;s==="slow-2g"||s==="2g"?(document.documentElement.classList.add("slow-connection"),document.querySelectorAll('link[rel="prefetch"]').forEach(i=>{i.getAttribute("data-critical")||i.remove()}),localStorage.setItem("use-low-quality-images","true")):s==="3g"?document.documentElement.classList.add("moderate-connection"):document.documentElement.classList.add("fast-connection")}}};return(()=>{e(),t(),r()})(),()=>{if("PerformanceObserver"in window)try{PerformanceObserver.supportedEntryTypes.forEach(()=>{})}catch{}}},[]),null),p0=({children:e})=>n.jsx(n.Fragment,{children:e}),f0={user:{duration:300*1e3,maxSize:100,staleWhileRevalidate:!0},mailboxes:{duration:120*1e3,maxSize:50,staleWhileRevalidate:!0},addresses:{duration:600*1e3,maxSize:50,staleWhileRevalidate:!0},messages:{duration:30*1e3,maxSize:200,staleWhileRevalidate:!0},messageDetails:{duration:120*1e3,maxSize:100,staleWhileRevalidate:!1},messageCount:{duration:10*1e3,maxSize:20,staleWhileRevalidate:!0}};class h0{constructor(){this.cache=new Map}set(t,r,a){if(this.cache.size>=a.maxSize){const o=this.cache.keys().next().value;o&&this.cache.delete(o)}this.cache.set(t,{data:r,timestamp:Date.now(),isStale:!1})}get(t,r){const a=this.cache.get(t);if(!a)return null;const s=Date.now()-a.timestamp>r.duration;return s&&!r.staleWhileRevalidate?(this.cache.delete(t),null):{data:a.data,isStale:s}}invalidate(t){for(const r of this.cache.keys())r.includes(t)&&this.cache.delete(r)}clear(){this.cache.clear()}getStats(){return{size:this.cache.size,keys:Array.from(this.cache.keys()),memory:this.estimateMemoryUsage()}}estimateMemoryUsage(){return Array.from(this.cache.values()).reduce((t,r)=>t+JSON.stringify(r).length*2,0)}}const Ie=new h0,we=new Map,Ga=async(e,t,r="messages")=>{const a=f0[r],o=Ie.get(e,a);if(o&&!o.isStale)return o.data;const s=we.get(e);if(s)return s;if(o&&o.isStale&&a.staleWhileRevalidate){const l=t().then(c=>(Ie.set(e,c,a),we.delete(e),c)).catch(c=>{throw we.delete(e),c});return we.set(e,l),o.data}const i=t().then(l=>(Ie.set(e,l,a),we.delete(e),l)).catch(l=>{throw we.delete(e),l});return we.set(e,i),i};class b0{constructor(){this.queue=[],this.timer=null,this.batchDelay=10}add(t,r){return new Promise((a,o)=>{this.queue.push({key:t,fetcher:r,resolve:a,reject:o}),this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.processBatch()},this.batchDelay)})}async processBatch(){const t=[...this.queue];this.queue.length=0,this.timer=null;const r=this.groupRequests(t);for(const a of r)await Promise.allSettled(a.map(async o=>{try{const s=await o.fetcher();o.resolve(s)}catch(s){o.reject(s)}}))}groupRequests(t){const r=[];for(let o=0;o<t.length;o+=5)r.push(t.slice(o,o+5));return r}}const y0=new b0;class x0{constructor(t,r={}){this.requestInterceptors=[],this.responseInterceptors=[],this.baseURL=t,this.defaultHeaders=r}addRequestInterceptor(t){this.requestInterceptors.push(t)}addResponseInterceptor(t){this.responseInterceptors.push(t)}async request(t,r={},a,o="messages"){const s=`${this.baseURL}${t}`,i=a||`${r.method||"GET"}:${s}`,l=async()=>{let c={...r,headers:{...this.defaultHeaders,...r.headers}};for(const g of this.requestInterceptors)c=g(c);let d=await fetch(s,c);for(const g of this.responseInterceptors)d=await g(d);if(!d.ok)throw new Error(`API Error: ${d.status} ${d.statusText}`);return d.json()};return r.method==="GET"&&this.shouldBatch(t)?y0.add(i,l):Ga(i,l,o)}shouldBatch(t){return t.includes("/messages/")&&!t.includes("/messages?")}async get(t,r){return this.request(t,{method:"GET"},void 0,r)}async post(t,r){return this.request(t,{method:"POST",body:JSON.stringify(r)})}async put(t,r){return this.request(t,{method:"PUT",body:JSON.stringify(r)})}async delete(t){return this.request(t,{method:"DELETE"})}}const v0=async(e,t=3,r=1e3)=>{let a;for(let o=0;o<=t;o++)try{return await e()}catch(s){if(a=s,o===t)throw a;const i=r*Math.pow(2,o)+Math.random()*1e3;await new Promise(l=>setTimeout(l,i))}throw a};class w0{constructor(){this.abortController=new AbortController}async request(t,r={}){const a=await fetch(t,{...r,signal:this.abortController.signal});if(!a.ok)throw new Error(`HTTP ${a.status}: ${a.statusText}`);return a.json()}cancel(){this.abortController.abort()}}const k0={invalidate:e=>Ie.invalidate(e),clear:()=>Ie.clear(),getStats:()=>Ie.getStats(),warmUp:async e=>{await Promise.allSettled(e.map(t=>t()))},prefetch:async e=>{"requestIdleCallback"in window?window.requestIdleCallback(async()=>{await Promise.allSettled(e.map(t=>t()))}):setTimeout(async()=>{await Promise.allSettled(e.map(t=>t()))},100)}};function Ka(){if(typeof window>"u")return!1;const e=window.navigator.userAgent.toLowerCase();return["metamask","trustwallet","coinbase","rainbow","phantom","solflare","exodus","ledger","binance","okx"].some(r=>e.includes(r))}function Ya(){return typeof window>"u"?!1:window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"}function Qa(){if(typeof window>"u")return!1;const e=window.location.hostname;return/^\d+\.\d+\.\d+\.\d+$/.test(e)}function Xa(){return Ya()?"localhost":Ka()?"wallet-browser":Qa()?"network":"production"}function C0(){const e=Xa();return e==="localhost"||e==="wallet-browser"}function S0(e){}function Za(){return typeof window<"u"}function N0(){return typeof window<"u"}function E0(e,t){if(Za())e();else return t}const Ja={"default-src":["'self'"],"script-src":["'self'","'unsafe-inline'","'unsafe-eval'","https://fonts.googleapis.com","https://www.googletagmanager.com","https://www.google-analytics.com"],"style-src":["'self'","'unsafe-inline'","https://fonts.googleapis.com","https://fonts.gstatic.com"],"font-src":["'self'","https://fonts.gstatic.com","data:"],"img-src":["'self'","data:","https:","blob:"],"connect-src":["'self'","https://api.0xmail.box","https://0xmail.box","https://*.walletconnect.com","https://*.walletconnect.org","https://registry.walletconnect.com","https://relay.walletconnect.com","wss://*.walletconnect.com","wss://*.walletconnect.org","https://keys.coinbase.com","https://api.coinbase.com","https://www.walletlink.org","https://mainnet.infura.io","https://polygon-rpc.com","https://rpc.ankr.com","https://cloudflare-eth.com","https://eth-mainnet.alchemyapi.io","https://api.phantom.app","https://solana-api.projectserum.com","https://api.mainnet-beta.solana.com","https://api.devnet.solana.com","wss://api.phantom.app","wss://api.devnet.solana.com","wss://api.mainnet-beta.solana.com","https://bridge.arbitrum.io","https://polygon-mainnet.infura.io","https://optimism-mainnet.infura.io"],"frame-src":["'self'","https://verify.walletconnect.com","https://verify.walletconnect.org"],"worker-src":["'self'","blob:"],"child-src":["'self'","https://verify.walletconnect.com"],"object-src":["'none'"],"base-uri":["'self'"],"form-action":["'self'"]},Ra=()=>Object.entries(Ja).map(([e,t])=>`${e} ${t.join(" ")}`).join("; "),A0={"X-Frame-Options":"DENY","X-Content-Type-Options":"nosniff","X-XSS-Protection":"1; mode=block","Referrer-Policy":"strict-origin-when-cross-origin","Permissions-Policy":"camera=(), microphone=(), geolocation=(), interest-cohort=()","Strict-Transport-Security":"max-age=31536000; includeSubDomains; preload","Cross-Origin-Embedder-Policy":"credentialless","Cross-Origin-Opener-Policy":"same-origin-allow-popups","Cross-Origin-Resource-Policy":"cross-origin","Content-Security-Policy":Ra()},P0={fonts:"public, max-age=31536000, immutable",images:"public, max-age=31536000, immutable",js:"public, max-age=31536000, immutable",css:"public, max-age=31536000, immutable",serviceWorker:"public, max-age=0, must-revalidate",manifest:"public, max-age=86400",api:"no-cache, no-store, must-revalidate"},T0=()=>{typeof window<"u"&&document.addEventListener("securitypolicyviolation",()=>{})},I0={walletConnections:"Always verify wallet signatures and never trust client-side data",rpcEndpoints:"Use reputable RPC providers and consider rate limiting",contractInteractions:"Validate all smart contract interactions on the backend",userInput:"Sanitize all user inputs, especially wallet addresses and transaction data",privateKeys:"Never log, store, or transmit private keys - they should remain in wallets only",phishing:"Implement strict CSP to prevent injection of malicious scripts that could steal wallet access"},le=new Map,je=new Map,xt=new Set;let Fe="medium",nr=!1;function L0(){if("connection"in navigator){const r=navigator.connection;r&&(Fe=r.effectiveType==="4g"?"fast":r.effectiveType==="3g"?"medium":"slow")}const e=navigator.deviceMemory,t=navigator.hardwareConcurrency;nr=e&&e<4||t&&t<4}L0();function $0(e,t,r={}){const{retries:a=3,timeout:o=1e4,fallback:s,preloadCondition:i,cacheStrategy:l="memory",priority:c="medium",onLoad:d,onError:g}=r;if(le.has(t))return le.get(t).component;const m=x.lazy(async()=>{const p=performance.now();if(je.has(t))return je.get(t).then(y=>({default:y}));const h=O0(e,a,o);je.set(t,h.then(y=>y.default));try{const y=await h,k=performance.now()-p;if(l!=="none"){const w={component:y.default,timestamp:Date.now(),loadTime:k};if(le.set(t,w),l==="session")try{sessionStorage.setItem(`lazy_${t}`,JSON.stringify({timestamp:w.timestamp,loadTime:k}))}catch{}}return je.delete(t),d?.(y.default),y}catch(y){throw je.delete(t),g?.(y),y}}),f=p=>{const[h,y]=x.useState(!0);x.useEffect(()=>{if(i&&!le.has(t)&&i()&&!xt.has(t)){xt.add(t);const C=M0(c,Fe);setTimeout(()=>{e().catch(()=>{})},C)}},[]);const k=s||n.jsxs("div",{className:"flex items-center justify-center p-4",children:[n.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),n.jsxs("span",{className:"ml-2 text-sm text-gray-600",children:["Loading ",t.replace(/([A-Z])/g," $1").trim(),"..."]})]});return!h&&nr&&Fe==="slow"?n.jsx("div",{className:"lazy-placeholder",children:n.jsxs("button",{onClick:()=>y(!0),className:"load-component-btn",children:["Load ",t]})}):n.jsx(x.Suspense,{fallback:k,children:n.jsx(m,{...p})})};return f.displayName=`AdvancedLazy(${t})`,f}async function O0(e,t,r){let a;for(let o=0;o<t;o++)try{const s=new Promise((l,c)=>{setTimeout(()=>c(new Error("Load timeout")),r)});return await Promise.race([e(),s])}catch(s){if(a=s,o<t-1){const i=Math.pow(2,o)*1e3,l=Math.random()*1e3;await new Promise(c=>setTimeout(c,i+l))}}throw a}function M0(e,t){const r={critical:0,high:500,medium:2e3,low:5e3},a={fast:.5,medium:1,slow:2},o=r[e]||2e3,s=a[t]||1;return o*s}const Ue=class Ue{static registerRoute(t,r){this.routeMap.set(t,r),this.routeUsageStats.set(t,0)}static setCurrentRoute(t){this.currentRoute=t;const r=this.routeUsageStats.get(t)||0;this.routeUsageStats.set(t,r+1),this.preloadLikelyRoutes(t)}static preloadLikelyRoutes(t){this.getRouteTransitionProbability(t).forEach(({route:a,probability:o})=>{o>.3&&!le.has(a)&&setTimeout(()=>{this.routeMap.get(a)},Fe==="fast"?1e3:3e3)})}static getRouteTransitionProbability(t){const r=[];switch(t){case"/":r.push({route:"/connect",probability:.7},{route:"/about",probability:.2},{route:"/document",probability:.1});break;case"/connect":r.push({route:"/mail",probability:.8},{route:"/settings",probability:.1});break;case"/mail":r.push({route:"/compose",probability:.4},{route:"/settings",probability:.2});break;default:r.push({route:"/",probability:.1})}return r}static getStats(){return{routeCount:this.routeMap.size,cacheSize:le.size,currentRoute:this.currentRoute,usageStats:Object.fromEntries(this.routeUsageStats)}}};Ue.routeMap=new Map,Ue.routeUsageStats=new Map,Ue.currentRoute="";let or=Ue;const z0=({src:e,alt:t,className:r,placeholder:a,priority:o="medium"})=>{const[s,i]=x.useState(!1),[l,c]=x.useState(!1),d=x.useRef(null);x.useEffect(()=>{if(!d.current)return;if(o==="high"){c(!0);return}const m=new IntersectionObserver(([f])=>{f.isIntersecting&&(c(!0),m.unobserve(f.target))},{rootMargin:o==="low"?"100px":"200px",threshold:.1});return m.observe(d.current),()=>m.disconnect()},[o]);const g=()=>{i(!0)};return n.jsxs("div",{className:`lazy-image-container ${r}`,children:[n.jsx("img",{ref:d,src:l?e:a||"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB2aWV3Qm94PSIwIDAgMSAxIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNGM0Y0RjYiLz48L3N2Zz4=",alt:t,className:`transition-opacity duration-300 ${s?"opacity-100":"opacity-0"}`,onLoad:g,loading:o==="high"?"eager":"lazy",fetchPriority:o==="high"?"high":"low"}),!s&&l&&n.jsx("div",{className:"absolute inset-0 bg-gray-200 animate-pulse rounded"})]})};function D0(){le.clear(),xt.clear()}function B0(){return{cachedComponents:le.size,preloadQueue:xt.size,networkSpeed:Fe,isLowEndDevice:nr,cacheEntries:Array.from(le.entries()).map(([e,t])=>({name:e,loadTime:t.loadTime,age:Date.now()-t.timestamp}))}}const W0=({message:e})=>n.jsxs("div",{className:"flex items-center justify-center p-4",children:[n.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),n.jsx("span",{className:"ml-2 text-sm text-gray-600",children:e})]}),j0=e=>{if(typeof e=="function"||typeof e=="object")return e;switch(e){case"minimal":return()=>n.jsx("div",{className:"flex justify-center items-center p-4",children:"Loading..."});case"skeleton":return()=>n.jsxs("div",{className:"animate-pulse",children:[n.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4 mb-2"}),n.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/2"})]});case"default":default:return()=>n.jsx(W0,{message:"Loading component..."})}},en=(e,t="default",r=3)=>{const a=x.lazy(async()=>{let s=null;for(let i=0;i<r;i++)try{return await e()}catch(l){s=l,i<r-1&&await new Promise(c=>setTimeout(c,Math.pow(2,i)*1e3))}throw s}),o=j0(t);return s=>n.jsx(x.Suspense,{fallback:n.jsx(o,{}),children:n.jsx(a,{...s})})},F0=async e=>{try{await e()}catch{}},_0=e=>{const t={};return Object.entries(e).forEach(([r,a])=>{t[r]=en(a,"skeleton")}),t},H0=e=>e,tn={critical:["/","/connect","/mail"],secondary:["/settings","/compose","/points"],optional:["/document","/about","/terms","/privacy"]},Ge=class Ge{static add(t,r){this.preloadedComponents.has(t)||(this.preloadQueue.push({name:t,loader:r}),this.processQueue())}static async processQueue(){this.isPreloading||this.preloadQueue.length===0||(this.isPreloading=!0,"requestIdleCallback"in window?window.requestIdleCallback(async()=>{const t=this.preloadQueue.shift();if(t)try{await t.loader(),this.preloadedComponents.add(t.name)}catch{}this.isPreloading=!1,this.processQueue()}):setTimeout(async()=>{const t=this.preloadQueue.shift();if(t)try{await t.loader(),this.preloadedComponents.add(t.name)}catch{}this.isPreloading=!1,this.processQueue()},100))}static isPreloaded(t){return this.preloadedComponents.has(t)}static clear(){this.preloadedComponents.clear(),this.preloadQueue=[],this.isPreloading=!1}};Ge.preloadedComponents=new Set,Ge.preloadQueue=[],Ge.isPreloading=!1;let sr=Ge;const V0=()=>{"requestIdleCallback"in window&&window.requestIdleCallback(()=>{tn.secondary.forEach(e=>{})})},rn=({message:e})=>n.jsxs("div",{className:"flex items-center justify-center p-4",children:[n.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),n.jsx("span",{className:"ml-2 text-sm text-gray-600",children:e})]}),_e=new Map;function q0(e,t){const{condition:r,fallback:a,retries:o=3,timeout:s=1e4,priority:i="medium",cacheKey:l=`conditional-${Math.random()}`}=t,c=d=>{const[g,m]=x.useState(!1),[f,p]=x.useState(null);return x.useEffect(()=>{const k=setTimeout(async()=>{const w=_e.get(l);if(w&&w.isValid&&Date.now()-w.lastCheck<3e5)try{if(await w.condition()){p(()=>w.component),m(!0);return}}catch{}try{if(await r()){const N=await K0(e,o,s);_e.set(l,{component:N.default,condition:r,lastCheck:Date.now(),isValid:!0}),p(()=>N.default),m(!0)}}catch{}},i==="high"?0:i==="medium"?100:500);return()=>clearTimeout(k)},[]),g?f?n.jsx(x.Suspense,{fallback:a||n.jsx(rn,{message:"Loading component..."}),children:n.jsx(f,{...d})}):null:a||n.jsx(rn,{message:"Checking conditions..."})};return c.displayName=`ConditionalLazy(${l})`,c}const U0={},G0={};async function K0(e,t,r){let a;for(let o=0;o<t;o++)try{const s=new Promise((i,l)=>{setTimeout(()=>l(new Error("Import timeout")),r)});return await Promise.race([e(),s])}catch(s){if(a=s,o<t-1){const i=Math.pow(2,o)*1e3;await new Promise(l=>setTimeout(l,i))}}throw a}function Y0(){_e.clear()}function Q0(){return{cachedComponents:_e.size,cacheEntries:Array.from(_e.entries()).map(([e,t])=>({key:e,lastCheck:t.lastCheck,isValid:t.isValid,age:Date.now()-t.lastCheck}))}}const an=[{name:"react-router",path:"/assets/react-router-*.js",size:12,config:{priority:"critical",condition:()=>!0}},{name:"app-core",path:"/assets/app-core-*.js",size:25,config:{priority:"high",condition:()=>window.location.pathname==="/",delay:1e3,onIdle:!0}},{name:"wagmi",path:"/assets/wagmi-*.js",size:15,config:{priority:"high",condition:()=>!!(window.ethereum||localStorage.getItem("walletconnect")),onIdle:!0}},{name:"wc-ethereum",path:"/assets/wc-ethereum-*.js",size:273,config:{priority:"medium",condition:()=>!!window.ethereum,delay:2e3,onHover:!0}},{name:"solana-core",path:"/assets/solana-core-*.js",size:29,config:{priority:"medium",condition:()=>!!(window.solana||window.phantom),delay:1500}},{name:"mail-features",path:"/assets/mail-features-*.js",size:10,config:{priority:"medium",condition:()=>window.location.pathname.includes("/connect")||localStorage.getItem("wallet-connected")==="true",onScroll:20}},{name:"coinbase",path:"/assets/coinbase-*.js",size:75,config:{priority:"low",condition:()=>!!window.ethereum,delay:5e3,onIdle:!0}},{name:"design-system",path:"/assets/design-system-*.js",size:112,config:{priority:"low",condition:()=>window.location.pathname.includes("/internal"),delay:3e3}}];class X0{constructor(){this.preloaded=new Set,this.networkSpeedEstimate="medium",this.isLowEndDevice=!1,this.userActivityScore=0,this.detectNetworkSpeed(),this.detectDeviceCapability(),this.startUserActivityTracking()}detectNetworkSpeed(){if("connection"in navigator){const r=navigator.connection;if(r){const a=r.effectiveType;a==="4g"?this.networkSpeedEstimate="fast":a==="3g"?this.networkSpeedEstimate="medium":this.networkSpeedEstimate="slow"}}const t=performance.now();fetch("/favicon.ico",{method:"HEAD"}).then(()=>{const r=performance.now()-t;r<100?this.networkSpeedEstimate="fast":r<300?this.networkSpeedEstimate="medium":this.networkSpeedEstimate="slow"}).catch(()=>{this.networkSpeedEstimate="slow"})}detectDeviceCapability(){const t=navigator.deviceMemory,r=navigator.hardwareConcurrency;t&&t<4&&(this.isLowEndDevice=!0),r&&r<4&&(this.isLowEndDevice=!0),"getBattery"in navigator&&navigator.getBattery?.().then(a=>{a.level&&a.level<.2&&(this.isLowEndDevice=!0)})}startUserActivityTracking(){let t;const r=()=>{this.userActivityScore=Math.min(this.userActivityScore+1,100),clearTimeout(t),t=setTimeout(()=>{this.userActivityScore=Math.max(this.userActivityScore-1,0)},5e3)};["click","scroll","keydown","mousemove"].forEach(a=>{document.addEventListener(a,r,{passive:!0})})}shouldPreload(t){return this.networkSpeedEstimate==="slow"&&t.size>50||this.isLowEndDevice&&t.size>30?!1:t.config.condition()}async preloadChunk(t){if(!this.preloaded.has(t.name))try{if(document.querySelectorAll('script[src*="'+t.name+'"]').length===0&&document.querySelectorAll('link[href*="'+t.name+'"]').length>0)return;const a=document.createElement("link");a.rel="modulepreload",a.href=t.path.replace("*",this.getChunkHash(t.name)),a.crossOrigin="","fetchPriority"in a&&(a.fetchPriority=t.config.priority==="critical"?"high":"low"),document.head.appendChild(a),this.preloaded.add(t.name)}catch{}}getChunkHash(t){const r=Array.from(document.querySelectorAll("script[src]"));for(const a of r){const o=a.src;if(o.includes(t)){const s=o.match(new RegExp(`${t}-([A-Za-z0-9_-]+)\\.js`));if(s)return s[1]}}return"unknown"}async schedulePreload(t){const r=t.config;return r.delay&&await new Promise(a=>setTimeout(a,r.delay)),r.onIdle&&"requestIdleCallback"in window?new Promise(a=>{window.requestIdleCallback(()=>{this.preloadChunk(t).then(a)})}):this.preloadChunk(t)}initializePreloading(){an.sort((r,a)=>{const o={critical:0,high:1,medium:2,low:3};return o[r.config.priority]-o[a.config.priority]}).forEach(r=>{this.shouldPreload(r)&&(r.config.priority==="critical"?this.preloadChunk(r):this.schedulePreload(r),r.config.onHover&&this.setupHoverPreloading(r),r.config.onScroll&&this.setupScrollPreloading(r,r.config.onScroll))}),this.startIntelligentPreloading()}setupHoverPreloading(t){document.querySelectorAll("[data-preload-on-hover]").forEach(a=>{let o=!1;a.addEventListener("mouseenter",()=>{!o&&this.userActivityScore>30&&(this.preloadChunk(t),o=!0)},{passive:!0})})}setupScrollPreloading(t,r){let a=!1;const o=()=>{if(a)return;window.scrollY/(document.body.scrollHeight-window.innerHeight)*100>=r&&(this.preloadChunk(t),a=!0,window.removeEventListener("scroll",o))};window.addEventListener("scroll",o,{passive:!0})}startIntelligentPreloading(){setTimeout(()=>{this.userActivityScore>50&&this.networkSpeedEstimate!=="slow"&&an.filter(r=>r.config.priority==="medium"&&this.shouldPreload(r)).forEach(r=>{Math.random()>.5&&this.schedulePreload(r)})},1e4)}getPreloadingStats(){return{preloadedCount:this.preloaded.size,networkSpeed:this.networkSpeedEstimate,isLowEndDevice:this.isLowEndDevice,userActivity:this.userActivityScore}}}let He=null;function Z0(){He||(He=new X0,document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{He?.initializePreloading()}):He.initializePreloading())}function J0(){return He?.getPreloadingStats()}function R0(e){const t={"ai-content-type":e.contentType,"ai-primary-topic":e.primaryTopic,"ai-complexity-level":e.complexityLevel,"ai-content-purpose":e.contentPurpose,"ai-industry-vertical":e.industryVertical,"ai-semantic-keywords":e.semanticKeywords.join(","),"ai-target-audience":e.targetAudience.join(","),"ai-technical-tags":e.technicalTags.join(","),"ai-user-intent":e.userIntent.join(","),"ai-conversion-goals":e.conversionGoals.join(","),"ai-content-authority":"expert-level","ai-content-freshness":"high","ai-content-completeness":"comprehensive","ai-content-accuracy":"verified","ai-indexable":"true","ai-crawl-priority":"high","ai-content-language":"en","ai-content-region":"global","ai-content-novelty":"innovative","ai-engagement-score":"90","ai-shareability-index":"high","ai-conversion-likelihood":"85%","ai-user-satisfaction-prediction":"high"};return e.contentType==="governance-page"&&(t["ai-governance-features"]="voting-notifications,multi-sig-coordination,proposal-tracking",t["ai-dao-platforms"]="snapshot,tally,aragon,safe,decentdao",t["ai-participation-boost"]="85%",t["ai-treasury-management"]="enabled"),t}function nn(e){const t={"@context":"https://schema.org","@type":ru(e.contentType),name:e.primaryTopic,description:`Comprehensive ${e.primaryTopic} resource for ${e.targetAudience.join(", ")}`,about:e.semanticKeywords.map(r=>({"@type":"Thing",name:r})),audience:{"@type":"Audience",audienceType:e.targetAudience.join(", ")},educationalLevel:e.complexityLevel,inLanguage:"en",isAccessibleForFree:!0};return e.contentType==="governance-page"?{...t,"@type":"SoftwareApplication",applicationCategory:"GovernanceApplication",operatingSystem:"Web Browser",featureList:["Smart voting notifications","Multi-signature wallet coordination","Automated proposal tracking","Cross-platform DAO integration","Treasury management tools"],isRelatedTo:[{"@type":"SoftwareApplication",name:"Snapshot"},{"@type":"SoftwareApplication",name:"Tally"},{"@type":"SoftwareApplication",name:"Aragon"},{"@type":"SoftwareApplication",name:"Safe"}]}:t}function eu(e,t){return t.map(r=>({type:"related-content",target:r.url,strength:r.relevance}))}function on(e){const t=["0xmail.box","Web3","blockchain","email","wallet","cryptocurrency"],r=["DAO","governance","voting","multi-sig","Snapshot","Tally","Aragon","Safe","proposal","community"];return e.contentType==="governance-page"?[...t,...r]:t}function sn(e){const t=["web3-infrastructure","email-technology","blockchain-applications"],r=["dao-governance-tools","voting-notification-systems","community-management-platforms","multi-signature-coordination","treasury-management-solutions"];return e.contentType==="governance-page"?[...t,...r]:t}function tu(e,t){return{contentClassification:{type:e.contentType,topic:e.primaryTopic,audience:e.targetAudience.join(","),complexity:e.complexityLevel,purpose:e.contentPurpose,vertical:e.industryVertical},semanticMarkup:nn(e),entityRecognition:on(e),topicClustering:sn(e),contentRelationships:t?.contentRelationships||[],...t}}function ru(e){return{article:"Article","landing-page":"WebPage","product-page":"Product","governance-page":"SoftwareApplication",documentation:"TechArticle"}[e]||"WebPage"}function au(e){return{"@context":"https://schema.org","@type":"MonitorAction",name:`AI Performance Tracking - ${e}`,instrument:{"@type":"SoftwareApplication",name:"AI Analytics Platform"},measurementTechnique:["User Engagement Metrics","AI Content Understanding Score","Semantic Relevance Analysis","Conversion Optimization Tracking"],result:{"@type":"Dataset",name:`${e} Performance Data`,description:"AI-optimized performance metrics and user interaction data"}}}const nu={governancePage:{contentType:"governance-page",primaryTopic:"DAO Governance Communication Platform",semanticKeywords:["DAO governance","voting notifications","multi-sig coordination","proposal tracking","community engagement","treasury management"],targetAudience:["DAO members","governance participants","multi-sig signers","protocol teams","community managers"],complexityLevel:"intermediate",contentPurpose:"commercial",industryVertical:"blockchain-governance",technicalTags:["snapshot","tally","aragon","safe","multi-sig","voting","proposals","treasury"],userIntent:["improve-governance","increase-participation","coordinate-multi-sig","track-proposals","engage-community"],conversionGoals:["dao-integration","governance-setup","multi-sig-connection","notification-activation"]},landingPage:{contentType:"landing-page",primaryTopic:"Web3 Email Platform",semanticKeywords:["Web3 email","wallet authentication","ENS email","SNS email","blockchain email","decentralized communication"],targetAudience:["Web3 users","crypto enthusiasts","blockchain developers","DeFi users"],complexityLevel:"beginner",contentPurpose:"commercial",industryVertical:"web3-communication",technicalTags:["ethereum","solana","ens","sns","wallet-connect","metamask","phantom"],userIntent:["create-web3-email","connect-wallet","secure-communication","eliminate-passwords"],conversionGoals:["wallet-connection","email-creation","first-email-sent","premium-upgrade"]}},ou=({message:e,className:t})=>n.jsxs("div",{className:`flex items-center justify-center p-4 ${t||""}`,children:[n.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),n.jsx("span",{className:"ml-2 text-sm text-gray-600",children:e})]}),ir=new Map,Ve=new Set;function lr(){const e=[];return!!window.ethereum?.isMetaMask&&(Ve.add("metamask"),e.push({name:"MetaMask",detected:!0,priority:1})),!!window.ethereum?.isCoinbaseWallet&&(Ve.add("coinbase"),e.push({name:"Coinbase Wallet",detected:!0,priority:2})),!!window.solana?.isPhantom&&(Ve.add("phantom"),e.push({name:"Phantom",detected:!0,priority:3})),e.push({name:"WalletConnect",detected:!0,priority:4}),e.sort((o,s)=>o.priority-s.priority)}function cr(e){const t=`wallet-${e.toLowerCase()}`;if(ir.has(t))return ir.get(t);const r=()=>Promise.resolve({default:()=>x.createElement("div",{},`${e} Provider Placeholder`)}),a=x.lazy(r),o=s=>n.jsx(x.Suspense,{fallback:n.jsx(ou,{message:`Loading ${e} wallet...`,className:"wallet-loading"}),children:n.jsx(a,{...s})});return o.displayName=`Lazy${e}Provider`,ir.set(t,o),o}function su({children:e}){const t=lr();return t.filter(r=>r.priority<=2&&r.detected).forEach(r=>{setTimeout(()=>{},1e3)}),n.jsxs(n.Fragment,{children:[t.map(r=>{const a=cr(r.name);return n.jsx(a,{},r.name)}),e]})}const mr=class mr{static preloadWallet(t){const r=t.toLowerCase();this.preloadedWallets.has(r)||(this.preloadedWallets.add(r),setTimeout(()=>{cr(t)},500))}static preloadCommonWallets(){["metamask","walletconnect","coinbase"].forEach((r,a)=>{setTimeout(()=>{this.preloadWallet(r)},a*1e3)})}static getPreloadedWallets(){return Array.from(this.preloadedWallets)}};mr.preloadedWallets=new Set;let qe=mr;function iu(){return{availableWallets:lr(),preloadWallet:a=>{qe.preloadWallet(a)},getDetectedWallets:()=>Array.from(Ve),hasWallet:a=>Ve.has(a.toLowerCase())}}function lu({walletName:e,onConnect:t,disabled:r=!1}){const a=()=>{qe.preloadWallet(e),setTimeout(t,100)};return n.jsxs("button",{onClick:a,disabled:r,className:"wallet-connect-btn","data-wallet":e.toLowerCase(),children:["Connect ",e]})}class cu{constructor(){this.criticalResources=[],this.observedMetrics={fcp:0,lcp:0,fid:0,cls:0,ttfb:0},this.defineCriticalResources(),this.startPerformanceObservation()}defineCriticalResources(){this.criticalResources=[{url:"/assets/index-*.css",type:"style",priority:"critical",preload:!0},{url:"/assets/index-*.js",type:"script",priority:"critical"},{url:"/assets/react-core-*.js",type:"script",priority:"high",preload:!0},{url:"https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiJ-Ek-_EeA.woff2",type:"font",priority:"critical",preload:!0},{url:"/logo.png",type:"image",priority:"high",preload:!0}]}startPerformanceObservation(){if("PerformanceObserver"in window)try{new PerformanceObserver(s=>{for(const i of s.getEntries())i.name==="first-contentful-paint"&&(this.observedMetrics.fcp=i.startTime,this.optimizeBasedOnFCP(i.startTime))}).observe({entryTypes:["paint"]}),new PerformanceObserver(s=>{for(const i of s.getEntries())this.observedMetrics.lcp=i.startTime,this.optimizeBasedOnLCP(i.startTime)}).observe({entryTypes:["largest-contentful-paint"]});let a=0;new PerformanceObserver(s=>{for(const i of s.getEntries())i.hadRecentInput||(a+=i.value);this.observedMetrics.cls=a}).observe({entryTypes:["layout-shift"]})}catch{}window.addEventListener("load",()=>{setTimeout(()=>{const t=performance.getEntriesByType("navigation")[0];t&&(this.observedMetrics.ttfb=t.responseStart-t.requestStart,this.optimizeBasedOnTTFB(this.observedMetrics.ttfb))},0)})}optimizeBasedOnFCP(t){t>2e3?this.applyEmergencyOptimizations():t>1500&&this.applyMediumOptimizations()}optimizeBasedOnLCP(t){t>2500&&this.optimizeLCPElements()}optimizeBasedOnTTFB(t){t>600&&this.enableAggressiveCaching()}applyEmergencyOptimizations(){document.querySelectorAll('img[data-priority="low"]').forEach(a=>{a.loading="lazy",a.style.display="none",setTimeout(()=>{a.style.display=""},3e3)}),document.querySelectorAll('script[data-priority="low"]').forEach(a=>{a.setAttribute("defer","")})}applyMediumOptimizations(){["/assets/app-core-*.js","/assets/react-router-*.js"].forEach(r=>{this.preloadResource(r,"script")})}optimizeLCPElements(){document.querySelectorAll("img[data-hero], [data-lcp-element]").forEach(a=>{a instanceof HTMLImageElement&&(a.fetchPriority="high",a.loading="eager")});const r=document.querySelector("img[data-hero]")?.getAttribute("src");r&&this.preloadResource(r,"image")}enableAggressiveCaching(){const t=document.createElement("meta");t.httpEquiv="Cache-Control",t.content="public, max-age=31536000, immutable",document.head.appendChild(t)}preloadResource(t,r){if(document.querySelector(`link[href*="${t}"]`))return;const o=document.createElement("link");switch(o.rel="preload",o.href=t,r){case"script":o.as="script";break;case"style":o.as="style";break;case"font":o.as="font",o.type="font/woff2",o.crossOrigin="";break;case"image":o.as="image";break}document.head.appendChild(o)}optimizeCriticalPath(){this.criticalResources.filter(t=>t.priority==="critical"&&t.preload).forEach(t=>{this.preloadResource(t.url,t.type)}),this.inlineCriticalCSS(),this.optimizeFontLoading(),this.removeRenderBlocking(),this.setupProgressiveLoading()}inlineCriticalCSS(){const t=document.querySelector('link[rel="stylesheet"][data-critical]');t&&this.isSmallResource(t.getAttribute("href")||"")&&fetch(t.getAttribute("href")||"").then(r=>r.text()).then(r=>{if(r.length<1e4){const a=document.createElement("style");a.textContent=r,document.head.appendChild(a),t.remove()}}).catch(()=>{})}optimizeFontLoading(){document.querySelectorAll('link[href*="fonts.googleapis.com"]').forEach(r=>{const a=r.getAttribute("href")||"";if(!a.includes("display=swap")){const o=a.includes("?")?"&":"?";r.setAttribute("href",`${a}${o}display=swap`)}})}removeRenderBlocking(){document.querySelectorAll('link[rel="stylesheet"]:not([data-critical])').forEach(r=>{const a=r.cloneNode(!0);a.rel="preload",a.as="style",a.onload=()=>{a.onload=null,a.rel="stylesheet"};const o=document.createElement("noscript"),s=r.cloneNode(!0);o.appendChild(s),document.head.appendChild(a),document.head.appendChild(o),r.remove()})}setupProgressiveLoading(){const t=document.querySelectorAll("img[data-src]");if("IntersectionObserver"in window){const r=new IntersectionObserver(a=>{a.forEach(o=>{if(o.isIntersecting){const s=o.target;s.src=s.dataset.src||"",s.removeAttribute("data-src"),r.unobserve(s)}})},{rootMargin:"50px 0px",threshold:.01});t.forEach(a=>r.observe(a))}else t.forEach(r=>{const a=r;a.src=a.dataset.src||""})}isSmallResource(t){return t.includes("critical")||t.includes("inline")}getPerformanceMetrics(){return{...this.observedMetrics,score:this.calculatePerformanceScore()}}calculatePerformanceScore(){let t=100;return this.observedMetrics.fcp>2e3?t-=20:this.observedMetrics.fcp>1500&&(t-=10),this.observedMetrics.lcp>2500?t-=25:this.observedMetrics.lcp>2e3&&(t-=15),this.observedMetrics.cls>.1?t-=15:this.observedMetrics.cls>.05&&(t-=8),this.observedMetrics.ttfb>600?t-=10:this.observedMetrics.ttfb>400&&(t-=5),Math.max(t,0)}}const vt={mark:e=>{typeof performance<"u"&&performance.mark&&performance.mark(e)},measure:(e,t,r)=>{if(typeof performance<"u"&&performance.measure)try{performance.measure(e,t,r);const a=performance.getEntriesByName(e);return a[a.length-1]?.duration||0}catch{return 0}return 0},getEntries:e=>typeof performance<"u"&&performance.getEntriesByName?e?performance.getEntriesByName(e):performance.getEntries():[],clearEntries:e=>{typeof performance<"u"&&(e?(performance.clearMeasures?.(e),performance.clearMarks?.(e)):(performance.clearMeasures?.(),performance.clearMarks?.()))}},du=(e,t=[])=>{x.useEffect(()=>(vt.mark(`${e}-start`),()=>{vt.mark(`${e}-end`),vt.measure(e,`${e}-start`,`${e}-end`)}),[e,t])},uu=e=>{const t=x.useRef(e);return t.current=e,x.useCallback((...r)=>t.current(...r),[])},gu=(e,t,r)=>{const a=x.useRef(t),o=x.useRef(void 0);return x.useMemo(()=>(r&&process.env.NODE_ENV==="development"&&t.some((s,i)=>s!==a.current[i]),a.current=t,o.current=e(),o.current),[e,r,t])},wt=new Map,mu=e=>{const t=wt.get(e)||0;wt.set(e,t+1),x.useEffect(()=>{process.env.NODE_ENV})},pu=()=>Object.fromEntries(wt),fu=()=>wt.clear(),hu=e=>x.lazy(e),bu=(e=.1)=>{const[t,r]=x.useState(new Set),a=x.useRef(null);x.useEffect(()=>(a.current=new IntersectionObserver(s=>{s.forEach(i=>{if(i.isIntersecting){const l=i.target,c=l.dataset.src;c&&(l.src=c,l.onload=()=>{r(d=>new Set(d).add(c))},a.current?.unobserve(l))}})},{threshold:e}),()=>a.current?.disconnect()),[e]);const o=x.useCallback(s=>{s&&a.current&&a.current.observe(s)},[]);return{loadedImages:t,observeImage:o}},yu=e=>{typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(()=>{e().catch(()=>{})}):setTimeout(()=>{e().catch(()=>{})},100)},ln={},xu=e=>{ln[e.name]=e.value,process.env.NODE_ENV},vu=()=>ln,wu=(e,t="script")=>{if(typeof document<"u"){const r=document.createElement("link");r.rel="prefetch",r.href=e,r.as=t,document.head.appendChild(r)}},ku=(e,t="script",r)=>{if(typeof document<"u"){const a=document.createElement("link");a.rel="preload",a.href=e,a.as=t,r&&(a.crossOrigin="anonymous"),document.head.appendChild(a)}},Cu=e=>{const t=x.useRef(new Set),r=x.useRef(new Set),a=x.useCallback((s,i)=>{const l=setTimeout(()=>{t.current.delete(l),s()},i);return t.current.add(l),l},[]),o=x.useCallback((s,i)=>{const l=setInterval(s,i);return r.current.add(l),l},[]);return x.useEffect(()=>{const s=t.current,i=r.current;return()=>{s.forEach(l=>clearTimeout(l)),i.forEach(l=>clearInterval(l)),process.env.NODE_ENV}},[e]),{createTimer:a,createInterval:o}},ce={maxBundleSize:500,maxChunkSize:200,maxImageSize:100,maxFCP:1800,maxLCP:2500,maxFID:100,maxCLS:.1,check:e=>{const t=[];return e.FCP&&e.FCP>ce.maxFCP&&t.push(`FCP (${e.FCP}ms) exceeds budget (${ce.maxFCP}ms)`),e.LCP&&e.LCP>ce.maxLCP&&t.push(`LCP (${e.LCP}ms) exceeds budget (${ce.maxLCP}ms)`),e.FID&&e.FID>ce.maxFID&&t.push(`FID (${e.FID}ms) exceeds budget (${ce.maxFID}ms)`),e.CLS&&e.CLS>ce.maxCLS&&t.push(`CLS (${e.CLS}) exceeds budget (${ce.maxCLS})`),t}},Su=({contentType:e,aiSummary:t,technicalComplexity:r="intermediate"})=>n.jsxs(hn.Helmet,{children:[n.jsx("meta",{name:"ai:content-type",content:e}),n.jsx("meta",{name:"ai:summary",content:t}),n.jsx("meta",{name:"ai:complexity",content:r})]}),Nu=({children:e,className:t,...r})=>n.jsx("main",{className:t,...r,role:"main",children:e}),Eu=({children:e})=>n.jsx(n.Fragment,{children:e}),Le=e=>Array.isArray(e)?e:typeof e=="string"?e.split(",").map(t=>t.trim()).filter(Boolean):[],dr=e=>{const t=Le(e.audience);return{"@context":"https://schema.org","@type":"SoftwareApplication",name:"0xmail.box",applicationCategory:"CommunicationApplication",operatingSystem:"Web Browser",description:e.description,url:"https://0xmail.box",downloadUrl:"https://0xmail.box/connect",installUrl:"https://0xmail.box/connect",screenshot:"https://0xmail.box/screenshots/app-preview.jpg",aggregateRating:{"@type":"AggregateRating",ratingValue:"4.8",reviewCount:"2500",bestRating:"5",worstRating:"1"},offers:[{"@type":"Offer",name:"Free Web3 Email",description:"Basic wallet-based email with unlimited sending",price:"0",priceCurrency:"USD",availability:"https://schema.org/InStock"},{"@type":"Offer",name:"Premium Web3 Email",description:"Advanced features with ENS/SNS domains and priority support",price:"2.00",priceCurrency:"USD",billingIncrement:"month",availability:"https://schema.org/InStock"}],featureList:["Passwordless wallet authentication","ENS domain email support (.eth)","Solana Name Service support (.sol)","Smart contract email integration","Multi-chain wallet compatibility","Cross-chain email addresses","DAO email delegation","Encrypted communication","Web2/Web3 bridge functionality","Point-based reward system"],applicationSubCategory:"Web3 Email Platform",audience:{"@type":"Audience",audienceType:t.join(", "),geographicArea:"Worldwide"},creator:{"@type":"Organization",name:"0xmail.box",url:"https://0xmail.box"},datePublished:"2024-01-01",dateModified:e.lastUpdated?.toISOString()||new Date().toISOString(),version:"1.0",softwareRequirements:"Web3 Wallet (MetaMask, Phantom, etc.)",storageRequirements:"5MB",memoryRequirements:"512MB RAM",supportingData:{blockchainNetworks:["Ethereum","Solana","Polygon","Arbitrum","Optimism"],supportedWallets:["MetaMask","Phantom","WalletConnect","Coinbase Wallet"],smartContractSupport:!0,ensCompatible:!0,snsCompatible:!0}}},ur=e=>{const t=Le(e.keywords),r=Le(e.audience);return{"@context":"https://schema.org","@type":"TechnicalArticle",headline:e.title,description:e.description,author:{"@type":"Organization",name:"0xmail.box",url:"https://0xmail.box",logo:{"@type":"ImageObject",url:"https://0xmail.box/logo.png"}},publisher:{"@type":"Organization",name:"0xmail.box",logo:{"@type":"ImageObject",url:"https://0xmail.box/logo.png",width:600,height:600}},datePublished:"2024-01-01T00:00:00Z",dateModified:e.lastUpdated?.toISOString()||new Date().toISOString(),mainEntityOfPage:{"@type":"WebPage","@id":`https://0xmail.box${location.pathname}`},image:{"@type":"ImageObject",url:"https://0xmail.box/og-images/technical-guide.jpg",width:1200,height:630},keywords:t.join(", "),about:[{"@type":"Thing",name:"Web3 Email Platform"},{"@type":"Thing",name:"Blockchain Technology"},{"@type":"Thing",name:"Decentralized Communication"}],audience:{"@type":"Audience",audienceType:r.join(", "),educationalLevel:e.complexity},educationalLevel:e.complexity,proficiencyLevel:e.complexity,learningResourceType:e.contentType,timeRequired:e.readingTime?`PT${e.readingTime}M`:"PT5M",inLanguage:"en",isAccessibleForFree:!0,license:"https://creativecommons.org/licenses/by/4.0/",teaches:e.relatedTopics||["Web3 email setup","Wallet connection process","Blockchain authentication","Smart contract integration"]}},Au=e=>({"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer,dateCreated:new Date().toISOString(),upvoteCount:Math.floor(Math.random()*50)+10,author:{"@type":"Organization",name:"0xmail.box"}},answerCount:1,upvoteCount:Math.floor(Math.random()*100)+20,dateCreated:"2024-01-01T00:00:00Z",category:t.category||"Web3 Email"}))}),gr=e=>({"@context":"https://schema.org","@type":"WebPage",name:e.title,description:e.description,url:`https://0xmail.box${location.pathname}`,primaryImageOfPage:{"@type":"ImageObject",url:"https://0xmail.box/og-images/ai-optimized.jpg"},significantLink:["https://0xmail.box/document","https://0xmail.box/web3-users","https://0xmail.box/web3-projects","https://0xmail.box/connect"],relatedLink:e.relatedTopics?.map(t=>`https://0xmail.box/search?q=${encodeURIComponent(t)}`)||[],about:{"@type":"Thing",name:"Web3 Email Communication",description:"Blockchain-based email platform using wallet authentication",sameAs:["https://en.wikipedia.org/wiki/Web3","https://en.wikipedia.org/wiki/Blockchain","https://en.wikipedia.org/wiki/Cryptocurrency_wallet"]},mentions:[{"@type":"SoftwareApplication",name:"MetaMask"},{"@type":"SoftwareApplication",name:"Phantom Wallet"},{"@type":"Thing",name:"Ethereum Name Service"},{"@type":"Thing",name:"Solana Name Service"}],isPartOf:{"@type":"WebSite","@id":"https://0xmail.box",name:"0xmail.box"},potentialAction:{"@type":"InteractAction",target:{"@type":"EntryPoint",urlTemplate:"https://0xmail.box/connect",actionPlatform:["https://schema.org/DesktopWebPlatform","https://schema.org/MobileWebPlatform"]},name:"Connect Web3 Wallet"}}),cn=e=>{const t=Le(e.keywords);return{"og:title":e.title,"og:description":e.description,"og:type":"website","og:url":`https://0xmail.box${location.pathname}`,"og:image":`https://0xmail.box/og-images/${e.category}.jpg`,"og:image:width":"1200","og:image:height":"630","og:image:alt":`${e.title} - Web3 Email Platform`,"og:site_name":"0xmail.box","og:locale":"en_US","article:author":"https://0xmail.box/about","article:section":e.category,"article:tag":t.join(","),"article:published_time":"2024-01-01T00:00:00Z","article:modified_time":e.lastUpdated?.toISOString()||new Date().toISOString()}},dn=e=>({"twitter:card":"summary_large_image","twitter:site":"@0xmailbox","twitter:creator":"@0xmailbox","twitter:title":e.title,"twitter:description":e.description,"twitter:image":`https://0xmail.box/twitter-cards/${e.category}.jpg`,"twitter:image:alt":`${e.title} - Web3 Email Platform`,"twitter:label1":"Category","twitter:data1":e.category,"twitter:label2":"Reading Time","twitter:data2":e.readingTime?`${e.readingTime} min`:"5 min"}),un=e=>{const t=Le(e.keywords),r=Le(e.audience);return{"ai:content-type":e.contentType,"ai:complexity":e.complexity,"ai:category":e.category,"ai:audience":r.join(","),"ai:keywords":t.join(","),"ai:reading-time":e.readingTime?.toString()||"5","web3:platform":"Email","web3:networks":"ethereum,solana,polygon","web3:wallets":"metamask,phantom,walletconnect","web3:features":"ens,sns,smart-contracts,multi-chain","llm:context":"Web3 email platform documentation and user guides","llm:domain":"blockchain,cryptocurrency,decentralized-communication","llm:use-case":"email,authentication,wallet-integration,smart-contracts","semantic:topic":e.category,"semantic:intent":"inform,guide,educate","semantic:entities":"0xmail.box,Web3,blockchain,email,wallet","content:freshness":e.lastUpdated?.toISOString()||new Date().toISOString(),"content:authority":"high","content:expertise":"technical","content:trustworthiness":"verified"}},Pu=e=>({structuredData:{product:dr(e),article:ur(e),aiOptimized:gr(e)},openGraph:cn(e),twitterCard:dn(e),aiMetaTags:un(e),jsonLD:[dr(e),ur(e),gr(e)]}),Tu={homepage:{title:"0xmail.box - Revolutionary Web3 Email Platform | Wallet-Based Authentication",description:"Transform your email experience with 0xmail.box - the first Web3 email platform using wallet authentication. No passwords, enhanced security, ENS/SNS domain support, and smart contract integration.",keywords:["Web3 email","blockchain email","wallet authentication","ENS email","SNS email","decentralized email","smart contract integration"],category:"Web3 Platform",audience:["Crypto Users","Web3 Developers","DeFi Users","DAO Members"],complexity:"beginner",contentType:"overview",readingTime:3,relatedTopics:["Web3 authentication","Blockchain communication","Decentralized identity"]},documentation:{title:"0xmail.box Documentation - Complete Web3 Email Setup Guide",description:"Comprehensive documentation for 0xmail.box Web3 email platform. Learn wallet connection, ENS/SNS setup, smart contract integration, and advanced features.",keywords:["Web3 email guide","wallet connection","ENS setup","SNS configuration","smart contract email","blockchain documentation"],category:"Technical Documentation",audience:["Developers","Technical Users","Web3 Enthusiasts"],complexity:"intermediate",contentType:"guide",readingTime:15,relatedTopics:["Wallet integration","Blockchain protocols","Email security"]},earnPoints:{title:"How to Earn Points on 0xmail.box - Web3 Email Rewards Guide",description:"Master the 0xmail.box points system. Earn rewards through email activities, referrals, smart contract interactions, and prepare for future token distribution.",keywords:["Web3 rewards","email points","blockchain rewards","referral program","token preparation","crypto incentives"],category:"Rewards Guide",audience:["Token Farmers","Crypto Users","Web3 Users"],complexity:"beginner",contentType:"tutorial",readingTime:8,relatedTopics:["Token economics","Reward systems","Referral marketing"]}},Iu=e=>{const{level:t,text:r,className:a="",id:o,semanticContext:s="section"}=e,i=`h${t}`,l={1:"text-4xl md:text-5xl lg:text-6xl font-bold leading-tight",2:"text-3xl md:text-4xl font-bold leading-tight",3:"text-2xl md:text-3xl font-bold leading-tight",4:"text-xl md:text-2xl font-semibold leading-tight",5:"text-lg md:text-xl font-semibold leading-tight",6:"text-base md:text-lg font-medium leading-tight"},c={"page-title":"text-gray-900 dark:text-white mb-6",section:"text-gray-900 dark:text-white mb-4",subsection:"text-gray-900 dark:text-white mb-3",feature:"text-gray-900 dark:text-white mb-2",benefit:"text-blue-600 dark:text-blue-400 mb-2",step:"text-green-600 dark:text-green-400 mb-2"},d=[l[t],c[s],a].filter(Boolean).join(" "),g=o||r.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"");return x.createElement(i,{id:g,className:d,"aria-level":t},r)},ae={pageTitle:(e,t)=>({level:1,text:e,className:t,semanticContext:"page-title"}),majorSection:(e,t)=>({level:2,text:e,className:t,semanticContext:"section"}),feature:(e,t)=>({level:3,text:e,className:t,semanticContext:"feature"}),benefit:(e,t)=>({level:3,text:e,className:t,semanticContext:"benefit"}),step:(e,t,r)=>({level:3,text:t?`Step ${t}: ${e}`:e,className:r,semanticContext:"step"}),subFeature:(e,t)=>({level:4,text:e,className:t,semanticContext:"feature"})},Lu=e=>{const t=[],r=[],a=e.filter(o=>o.level===1).length;a===0?t.push("Missing H1 tag - every page should have exactly one H1"):a>1&&t.push(`Multiple H1 tags found (${a}) - use only one H1 per page`);for(let o=1;o<e.length;o++){const s=e[o],i=e[o-1];s.level>i.level+1&&t.push(`Heading level jump from H${i.level} to H${s.level} - avoid skipping levels`)}return e.forEach((o,s)=>{o.text.length<3&&t.push(`Heading ${s+1} is too short - use descriptive text`),o.text.length>70&&r.push(`Heading "${o.text.substring(0,30)}..." is long - consider shortening for better SEO`)}),{isValid:t.length===0,errors:t,suggestions:r}},$u={walletConnection:ae.pageTitle("Connect Your Web3 Wallet"),emailBenefits:ae.majorSection("Why Choose Web3 Email?"),securityFeature:ae.feature("Secure & Private"),ensIntegration:ae.feature("ENS Domain Support"),multiChain:ae.feature("Multi-Chain Compatibility"),passwordless:ae.benefit("No Passwords Required"),setupStep1:ae.step("Connect Your Wallet",1),setupStep2:ae.step("Verify Your Identity",2),setupStep3:ae.step("Access Your Emails",3)},Ou=[{term:"Web3 Email",definition:"Email system that uses blockchain wallet addresses as authentication instead of traditional passwords",category:"Web3 Communication",synonyms:["blockchain email","decentralized email","crypto email"],relatedTerms:["wallet authentication","ENS email","SNS email"],examples:["vitalik.eth@0xmail.box","alice.sol@0xmail.box"],context:"Web3 email revolutionizes digital communication by eliminating passwords and using cryptographic signatures for authentication"},{term:"Wallet Authentication",definition:"Authentication method using cryptographic signatures from blockchain wallets instead of passwords",category:"Security",synonyms:["wallet-based auth","signature authentication","passwordless authentication"],relatedTerms:["EIP-712","SIWE","message signing"],examples:["MetaMask signature","Phantom wallet auth","WalletConnect login"],context:"Wallet authentication provides superior security through cryptographic proofs that cannot be phished or stolen like passwords"},{term:"ENS Email",definition:"Email addresses using Ethereum Name Service domains (.eth) as identifiers",category:"Naming Systems",synonyms:["Ethereum name email",".eth email"],relatedTerms:["ENS","Ethereum domains","blockchain domains"],examples:["vitalik.eth","ethereum.eth"],context:"ENS emails provide human-readable addresses that resolve to Ethereum wallet addresses"},{term:"SNS Email",definition:"Email addresses using Solana Name Service domains (.sol) as identifiers",category:"Naming Systems",synonyms:["Solana name email",".sol email"],relatedTerms:["SNS","Solana domains","SPL domains"],examples:["anatoly.sol","solana.sol"],context:"SNS emails provide human-readable addresses for Solana ecosystem users"},{term:"Smart Contract Integration",definition:"Ability to send and receive emails triggered by blockchain smart contract events",category:"Blockchain Integration",synonyms:["contract notifications","on-chain email triggers"],relatedTerms:["event listeners","webhooks","contract automation"],examples:["DAO proposal notifications","DeFi alert emails","NFT sale confirmations"],context:"Smart contract integration enables automated communication based on blockchain events"},{term:"Multi-Chain Support",definition:"Compatibility with multiple blockchain networks for wallet authentication and email services",category:"Interoperability",synonyms:["cross-chain support","blockchain agnostic"],relatedTerms:["EVM chains","Solana","Layer 2"],examples:["Ethereum, Polygon, Arbitrum, Solana support"],context:"Multi-chain support ensures users from any blockchain ecosystem can use the email service"},{term:"DAO Email Delegation",definition:"System allowing DAOs to manage email communications through delegated authorities",category:"Governance",synonyms:["governance email","multi-sig email"],relatedTerms:["DAO governance","multi-signature","delegation"],examples:["Treasury notifications","Proposal alerts","Voting reminders"],context:"DAO email delegation enables decentralized organizations to manage communications efficiently"},{term:"Web2/Web3 Bridge",definition:"Technology enabling communication between traditional email systems and blockchain-based email",category:"Interoperability",synonyms:["email bridge","legacy integration"],relatedTerms:["SMTP gateway","email forwarding","protocol bridge"],examples:["Gmail to Web3 email","Outlook integration"],context:"Web2/Web3 bridge ensures compatibility with existing email infrastructure"}],Mu=e=>({"@context":"https://schema.org","@type":"LearningResource",educationalLevel:e.difficulty,learningResourceType:"Technical Documentation",timeRequired:e.estimatedTime?`PT${e.estimatedTime}M`:void 0,teaches:e.learningObjectives,requires:e.prerequisites,about:{"@type":"Thing",name:e.domain,category:e.category,subcategory:e.subcategory},keywords:e.concepts,applicationExample:e.practicalApplications,isRelatedTo:e.relatedConcepts}),zu=e=>{const t={nodes:e.map(r=>({id:r.term,label:r.term,category:r.category,definition:r.definition})),edges:[]};return e.forEach(r=>{r.relatedTerms?.forEach(a=>{e.find(s=>s.term===a)&&t.edges.push({source:r.term,target:a,relationship:"related_to"})}),r.synonyms?.forEach(a=>{t.edges.push({source:r.term,target:a,relationship:"synonym_of"})})}),t},Du=e=>{const t=[];return e.examples?.forEach(r=>{t.push({text:r,label:e.term,type:"positive",confidence:1})}),e.context&&t.push({text:e.context,label:e.term,type:"contextual",confidence:.8}),t.push({text:`${e.term} is ${e.definition}`,label:e.term,type:"definition",confidence:1}),t},Bu=e=>{const t=[];return e.forEach(r=>{t.push({question:`What is ${r.term}?`,answer:r.definition,category:r.category,difficulty:"basic"}),r.context&&t.push({question:`How does ${r.term} work?`,answer:r.context,category:r.category,difficulty:"intermediate"}),r.examples&&r.examples.length>0&&t.push({question:`What are examples of ${r.term}?`,answer:r.examples.join(", "),category:r.category,difficulty:"basic"}),r.relatedTerms&&r.relatedTerms.length>0&&t.push({question:`What is ${r.term} related to?`,answer:`${r.term} is related to ${r.relatedTerms.join(", ")}`,category:r.category,difficulty:"intermediate"})}),t},Wu={homepage:{domain:"Web3 Email Platform",category:"Web3 Communication",concepts:["Web3 email","wallet authentication","passwordless login","blockchain messaging"],prerequisites:["Basic blockchain knowledge","Understanding of crypto wallets"],learningObjectives:["Understand Web3 email concepts","Learn wallet authentication","Explore blockchain communication"],difficulty:"beginner",estimatedTime:5,practicalApplications:["Secure email communication","DAO governance","DeFi notifications"]},documentation:{domain:"Web3 Email Technical Documentation",category:"Technical Guide",concepts:["API integration","smart contracts","wallet connection","email protocols"],prerequisites:["JavaScript/TypeScript","Web3 development basics","REST APIs"],learningObjectives:["Implement Web3 email","Integrate wallet authentication","Build on email API"],difficulty:"intermediate",estimatedTime:30,practicalApplications:["dApp integration","Email automation","Smart contract notifications"]},governance:{domain:"DAO Governance Communication",category:"Governance Tools",concepts:["DAO email","voting notifications","proposal tracking","multi-sig coordination"],prerequisites:["DAO basics","Governance understanding","Multi-signature wallets"],learningObjectives:["Setup DAO email","Configure voting alerts","Manage team communication"],difficulty:"advanced",estimatedTime:20,practicalApplications:["DAO operations","Treasury management","Governance participation"]}};/**
|
|
63
|
+
`},label:"WhatsApp"}],d=async()=>{try{await navigator.clipboard.writeText(l),r(!1)}catch{}};return n.jsxs("div",{className:"relative",children:[n.jsx("button",{onClick:()=>r(!t),className:"flex items-center justify-center w-8 h-8 bg-blue-50 hover:bg-blue-100 dark:bg-blue-900/30 dark:hover:bg-blue-900/50 text-blue-600 dark:text-blue-400 rounded-lg transition-colors",title:"Share this page",children:n.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 110-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 105.367-2.684 3 3 0 00-5.367 2.684zm0 9.316a3 3 0 105.367 2.684 3 3 0 00-5.367-2.684z"})})}),t&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"fixed inset-0 z-[999998]",onClick:()=>r(!1)}),n.jsx("div",{className:"absolute right-0 top-10 z-[999999] w-32 bg-white dark:bg-gray-800 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 py-1",children:s?n.jsx("div",{className:"flex items-center justify-center px-3 py-2",children:n.jsx("div",{className:"w-4 h-4 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"})}):n.jsxs(n.Fragment,{children:[c.map((g,p)=>{const b=g.component,f=g.icon;return n.jsx(b,{...g.props,className:"w-full",children:n.jsxs("div",{className:"flex items-center px-3 py-1.5 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer",children:[n.jsx(f,{size:16,round:!0,className:"mr-2"}),n.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-300",children:g.label})]})},p)}),n.jsxs("button",{onClick:d,className:"w-full flex items-center px-3 py-1.5 hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer",children:[n.jsx("svg",{className:"w-4 h-4 mr-2 text-gray-600 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})}),n.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-300",children:"Copy Link"})]})]})})]})]})},Ga=({items:e,shareConfig:t,className:r,showHome:a})=>n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("nav",{"aria-label":"Breadcrumb",children:n.jsx("ol",{className:"flex items-center text-sm space-x-2",children:e.map((o,s)=>n.jsxs(x.Fragment,{children:[n.jsx("li",{children:o.current?n.jsx("span",{className:"text-gray-700 dark:text-gray-300 font-medium",children:o.label}):n.jsx(Ze.Link,{to:o.href||"#",className:"text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 transition-colors",children:o.label})}),s<e.length-1&&n.jsx("li",{children:n.jsx("span",{className:"text-gray-400 dark:text-gray-500",children:"/"})})]},s))})}),t&&n.jsx(jd,{shareConfig:t})]}),Fd=({items:e,shareConfig:t})=>n.jsx("div",{className:"bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700 relative z-50",children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-3 relative",children:n.jsx(Ga,{items:e,shareConfig:t})})}),_d=({filename:e,code:t,language:r,title:a,className:o="",showCopy:s=!0,showHeader:i=!0})=>{const{t:l}=br.useTranslation("codeBlock"),{code:c,loading:d,error:g}=$r(e||""),[p,b]=x.useState(!1),f=t||c,h=r||(e?(k=>{switch(k.split(".").pop()?.toLowerCase()){case"sol":return"solidity";case"js":case"mjs":return"javascript";case"ts":return"typescript";case"sh":return"bash";case"graphql":return"graphql";case"json":return"json";case"css":return"css";case"html":return"html";case"jsx":return"jsx";case"tsx":return"tsx";case"py":return"python";case"java":return"java";case"cpp":case"c":return"cpp";case"go":return"go";case"rs":return"rust";case"php":return"php";case"rb":return"ruby";default:return"text"}})(e):"text"),w=async()=>{if(f)try{await navigator.clipboard.writeText(f),b(!0),setTimeout(()=>b(!1),2e3)}catch{}};return e&&d?n.jsx("div",{className:`bg-gray-900 text-green-400 rounded-lg p-4 font-mono text-sm ${o}`,children:n.jsx("div",{className:"animate-pulse text-gray-500",children:l("loadingCode","Loading code...")})}):e&&g?n.jsxs("div",{className:`bg-gray-900 text-red-400 rounded-lg p-4 font-mono text-sm ${o}`,children:[l("error","Error"),": ",g]}):f?n.jsxs("div",{className:`bg-gray-900 rounded-lg border border-green-500/20 shadow-lg shadow-green-500/10 ${o}`,children:[i&&n.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b border-green-500/20 bg-gray-800/50",children:[n.jsx("span",{className:"text-sm text-green-400 font-mono",children:a||e||`${h} code`}),s&&n.jsx("button",{onClick:w,className:"p-2 text-gray-400 hover:text-green-400 hover:bg-gray-800 rounded-lg transition-all duration-200 group",title:l("copyCode","Copy code"),children:p?n.jsx(E.CheckIcon,{className:"h-4 w-4 text-green-400"}):n.jsx(E.ClipboardDocumentIcon,{className:"h-4 w-4 group-hover:scale-110 transition-transform"})})]}),n.jsx("div",{className:"p-4 overflow-x-auto text-left",children:n.jsx("pre",{className:`text-sm language-${h}`,children:n.jsx("code",{className:"text-gray-100",children:f})})})]}):n.jsx("div",{className:`bg-gray-900 text-gray-400 rounded-lg p-4 font-mono text-sm ${o}`,children:l("noCode","No code to display")})},Hd=({title:e,description:t,code:r,preview:a,language:o="tsx",showBrowserChrome:s=!0,copyKey:i})=>{const[l,c]=x.useState({}),d=(b,f)=>{navigator.clipboard.writeText(b).then(()=>{c(m=>({...m,[f]:!0})),setTimeout(()=>{c(m=>({...m,[f]:!1}))},2e3)})},g=i||`${e}-code`,p=l[g];return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:e}),t&&n.jsx("p",{className:"text-gray-600 dark:text-gray-400 text-sm",children:t})]}),a&&n.jsxs("div",{className:"relative",children:[s&&n.jsxs("div",{className:"bg-gray-200 dark:bg-gray-700 rounded-t-lg px-4 py-3 flex items-center space-x-2",children:[n.jsxs("div",{className:"flex space-x-2",children:[n.jsx("div",{className:"w-3 h-3 rounded-full bg-red-500"}),n.jsx("div",{className:"w-3 h-3 rounded-full bg-yellow-500"}),n.jsx("div",{className:"w-3 h-3 rounded-full bg-green-500"})]}),n.jsx("div",{className:"flex-1 text-center",children:n.jsx("div",{className:"bg-white dark:bg-gray-600 rounded px-3 py-1 text-xs text-gray-600 dark:text-gray-300 inline-block",children:"Preview"})})]}),n.jsx("div",{className:`bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 p-6 ${s?"rounded-b-lg":"rounded-lg"}`,children:a})]}),n.jsx("div",{className:"relative",children:n.jsxs("div",{className:"bg-gray-900 rounded-lg overflow-hidden",children:[n.jsxs("div",{className:"bg-gray-800 px-4 py-2 flex justify-between items-center",children:[n.jsx("span",{className:"text-gray-300 text-sm font-mono",children:o}),n.jsx("button",{onClick:()=>d(r,g),className:"flex items-center space-x-1 text-gray-300 hover:text-white transition-colors text-sm","aria-label":p?"Copied!":"Copy code",children:p?n.jsxs(n.Fragment,{children:[n.jsx(E.CheckIcon,{className:"h-4 w-4"}),n.jsx("span",{children:"Copied!"})]}):n.jsxs(n.Fragment,{children:[n.jsx(E.ClipboardIcon,{className:"h-4 w-4"}),n.jsx("span",{children:"Copy"})]})})]}),n.jsx("div",{className:"p-4 overflow-x-auto",children:n.jsx("pre",{className:"text-gray-100 text-sm leading-relaxed",children:n.jsx("code",{children:r})})})]})})]})},Ud=({subsections:e,isExpanded:t,selectedSubsection:r,parentSectionId:a,onSubsectionSelect:o})=>{const s=x.useRef(null),[i,l]=x.useState(void 0);return x.useLayoutEffect(()=>{if(s.current){const c=s.current.scrollHeight;l(t?c+16:0)}},[t,e]),n.jsx("div",{className:"overflow-hidden transition-all duration-300 ease-in-out",style:{height:i!==void 0?`${i}px`:"auto"},children:n.jsx("div",{ref:s,className:"ml-6 mt-1 mb-1 space-y-1",children:e.map(c=>n.jsxs("div",{className:"relative group",children:[r===c.id&&n.jsx("div",{className:"absolute top-0.5 bottom-0.5 left-1 right-12 bg-blue-500/20 dark:bg-blue-400/20 rounded-lg pointer-events-none"}),r!==c.id&&n.jsx("div",{className:"absolute top-0.5 bottom-0.5 left-1 right-12 bg-blue-500/0 group-hover:bg-blue-500/10 dark:group-hover:bg-blue-400/10 rounded-lg pointer-events-none transition-colors duration-200"}),n.jsx("button",{onClick:()=>o?.(c.id,a),className:`relative z-10 block w-full text-left pl-4 pr-3 py-2 rounded-md text-sm transition-all duration-200 ${r===c.id?"text-blue-700 dark:text-blue-300":"text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-200"}`,children:c.title})]},c.id))})})},Vd=({id:e,title:t,content:r,subsections:a,isSelected:o=!1,selectedSubsection:s=null,onSectionSelect:i,onSubsectionSelect:l,className:c=""})=>{const[d,g]=x.useState(!1),p=()=>{g(!d)},b=()=>{i?.(e)},f=a&&a.length>0;return n.jsxs("div",{className:c,children:[n.jsxs("div",{className:"relative flex items-center group",children:[o&&!s&&n.jsx("div",{className:"absolute top-2 bottom-2 left-2 right-12 bg-blue-500/20 dark:bg-blue-400/20 rounded-lg pointer-events-none"}),!(o&&!s)&&n.jsx("div",{className:"absolute top-2 bottom-2 left-2 right-12 bg-blue-500/0 group-hover:bg-blue-500/10 dark:group-hover:bg-blue-400/10 rounded-lg pointer-events-none transition-colors duration-200"}),n.jsx("button",{onClick:b,className:`relative z-10 flex-1 text-left pl-5 pr-3 py-4 text-base font-medium transition-all duration-200 ${o&&!s?"text-blue-700 dark:text-blue-300":"text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-gray-100"}`,children:t}),f&&n.jsx("button",{onClick:p,className:"p-2 rounded-md hover:bg-gray-100 dark:hover:bg-gray-800 hover:scale-110 transition-all duration-200","aria-label":d?"Collapse section":"Expand section",children:n.jsx(E.ChevronRightIcon,{className:`h-5 w-5 text-gray-500 transition-transform duration-300 ease-in-out ${d?"rotate-90":"rotate-0"}`})})]}),f&&n.jsx(Ud,{subsections:a,isExpanded:d,selectedSubsection:s,parentSectionId:e,onSubsectionSelect:l})]})},qd=({title:e,subtitle:t,buttonText:r,buttonIcon:a="envelope",variant:o="default",badgeText:s="FREE",prominentBadgeText:i="100% Free",onButtonClick:l,className:c=""})=>{const d=()=>a==="envelope"||a==="both"?n.jsx(E.EnvelopeIcon,{className:o==="prominent"?"h-5 w-5 mr-2":"h-4 w-4 mr-1"}):a==="none"?null:n.jsx("svg",{className:o==="prominent"?"h-5 w-5 mr-2":"h-4 w-4 mr-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 12a4 4 0 10-8 0 4 4 0 008 0zm0 0v1.5a2.5 2.5 0 005 0V12a9 9 0 10-9 9m4.5-1.206a8.959 8.959 0 01-4.5 1.207"})}),g=()=>a==="arrow"||a==="both"?n.jsx(E.ArrowRightIcon,{className:"h-4 w-4 ml-2"}):null,p=()=>o==="prominent"?"border-b-2 border-green-200 dark:border-green-700":"border-b border-green-200 dark:border-green-700",b=()=>{const h="bg-gradient-to-r from-green-600 to-blue-600 hover:from-green-700 hover:to-blue-700 text-white rounded-lg font-bold transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-green-500/25 inline-flex items-center whitespace-nowrap cursor-pointer";return o==="prominent"?`${h} px-8 py-3 text-base`:`${h} px-6 py-2 text-sm`},f=()=>o==="prominent"?"text-green-800 dark:text-green-200 font-semibold text-lg":"text-green-800 dark:text-green-200 font-semibold",m=o==="prominent"?i:s;return n.jsx("div",{className:`bg-gradient-to-r from-green-100 to-blue-100 dark:from-green-900/20 dark:to-blue-900/20 ${p()} ${c}`,children:n.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4",children:n.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4",children:[n.jsxs("div",{className:`flex items-center ${o==="prominent"?"text-center sm:text-left":""}`,children:[n.jsx("div",{className:"bg-green-500 text-white text-xs font-bold px-3 py-1 rounded-full mr-3 animate-pulse",children:m}),n.jsxs("div",{children:[n.jsx("span",{className:f(),children:e}),t&&n.jsx("span",{className:"text-green-700 dark:text-green-300 text-sm block",children:t})]})]}),n.jsxs("button",{onClick:l,className:b(),children:[d(),r,g()]})]})})})},Gd=({children:e,onClick:t,variant:r,size:a,disabled:o,className:s,type:i,trackingLabel:l,actionType:c,componentName:d,onTrack:g,trackingParams:p={},...b})=>{const f=m=>{if(g){const h=l||(typeof e=="string"?e:"")||"Unknown Button",k=r&&["default","primary","secondary","outline","ghost","destructive","link"].includes(r)?r:"default";g({button_text:h,button_type:k,component_name:d,action_type:c,...p})}t&&t(m)};return n.jsx(de,{...b,variant:r,size:a,disabled:o,className:s,type:i,onClick:f,children:e})},Kd=({children:e,onClick:t,to:r,href:a,trackingLabel:o,componentName:s,onTrack:i,trackingParams:l={},LinkComponent:c,linkProps:d={},...g})=>{const p=f=>{if(i){const m=o||(typeof e=="string"?e:"")||"Unknown Link",h=r?typeof r=="string"?r:r.pathname||"":a||"";i({link_text:m,link_url:h,to_page:h,navigation_type:c?"router_link":"anchor_link",component_name:s,...l})}t&&t(f)};if(c&&r!==void 0)return n.jsx(c,{...d,to:r,onClick:p,...g,children:e});const b=r?typeof r=="string"?r:r.pathname||"#":a;return n.jsx("a",{...g,href:b,onClick:p,children:e})},Ka={en:{name:"English",flag:"🇺🇸"},ar:{name:"العربية",flag:"🇸🇦"},de:{name:"Deutsch",flag:"🇩🇪"},es:{name:"Español",flag:"🇪🇸"},fr:{name:"Français",flag:"🇫🇷"},it:{name:"Italiano",flag:"🇮🇹"},ja:{name:"日本語",flag:"🇯🇵"},ko:{name:"한국어",flag:"🇰🇷"},pt:{name:"Português",flag:"🇵🇹"},ru:{name:"Русский",flag:"🇷🇺"},sv:{name:"Svenska",flag:"🇸🇪"},th:{name:"ไทย",flag:"🇹🇭"},uk:{name:"Українська",flag:"🇺🇦"},vi:{name:"Tiếng Việt",flag:"🇻🇳"},zh:{name:"简体中文",flag:"🇨🇳"}},Yd=({variant:e="compact",className:t=""})=>{const{i18n:r,t:a}=br.useTranslation("languageSelector"),[o,s]=x.useState(r.language),i=x.useMemo(()=>r.options.supportedLngs?r.options.supportedLngs.filter(d=>d!=="cimode").map(d=>({code:d,name:Ka[d]?.name||d.toUpperCase(),flag:Ka[d]?.flag||"🌐"})).sort((d,g)=>d.name.localeCompare(g.name)):[],[r.options.supportedLngs]),l=i.find(d=>d.code===o||d.code.toLowerCase()===o.toLowerCase());x.useEffect(()=>{s(r.language)},[r.language]);const c=d=>{localStorage.setItem("language",d),r.changeLanguage(d).then(()=>{s(r.language),setTimeout(()=>{window.dispatchEvent(new Event("languagechange"))},100)}).catch(()=>{})};return e==="compact"?n.jsx("div",{className:`relative ${t}`,children:n.jsxs(Mt,{value:o,onValueChange:c,children:[n.jsx(et,{className:"h-10 w-auto px-3 border-0 bg-transparent hover:bg-gray-100 dark:hover:bg-gray-700 focus:ring-0 focus:ring-offset-0",children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-lg leading-none",children:l?.flag}),n.jsx("span",{className:"hidden sm:block text-sm font-medium text-gray-700 dark:text-gray-300",children:l?.name})]})}),n.jsx(tt,{children:i.map(d=>n.jsx(rt,{value:d.code,className:"cursor-pointer",children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-lg leading-none",children:d.flag}),n.jsx("span",{className:"text-sm",children:d.name})]})},d.code))})]})}):n.jsxs("div",{className:`space-y-2 ${t}`,children:[n.jsxs("label",{className:"text-sm font-medium text-gray-700 dark:text-gray-300 flex items-center space-x-2",children:[n.jsx(E.LanguageIcon,{className:"h-4 w-4 text-gray-500 dark:text-gray-400"}),n.jsx("span",{children:a("language","Language")})]}),n.jsxs(Mt,{value:o,onValueChange:c,children:[n.jsx(et,{children:n.jsx(Dr,{placeholder:a("selectLanguage","Select language")})}),n.jsx(tt,{children:i.map(d=>n.jsx(rt,{value:d.code,className:"cursor-pointer",children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-lg leading-none",children:d.flag}),n.jsx("span",{children:d.name})]})},d.code))})]}),n.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:a("selectPreferredLanguage","Select your preferred language")})]})},Qd=({items:e,type:t="ordered",variant:r="default",className:a,itemClassName:o})=>{const s=()=>{const d="space-y-2",g={ordered:t==="ordered"?"list-decimal":"",unordered:t==="unordered"?"list-disc":""},p={default:"list-inside",enhanced:"list-inside space-y-3",minimal:"list-none space-y-1"};return y(d,g[t],p[r])},i=d=>{const g="text-gray-600 dark:text-gray-400";return r==="enhanced"?y(g,"relative pl-8 pb-2 border-l-2 border-gray-200 dark:border-gray-700",d===e.length-1&&"border-l-transparent"):r==="minimal"?y(g,"flex items-start"):g},l=d=>r==="enhanced"&&t==="ordered"?n.jsx("div",{className:"absolute -left-4 -top-1 w-6 h-6 bg-blue-600 text-white rounded-full flex items-center justify-center text-sm font-medium",children:d+1}):null,c=(d,g)=>{const p=typeof d=="object",b=p?d.content:d,f=p?d.subItems:void 0;return n.jsxs("li",{className:y(i(g),o),children:[l(g),r==="minimal"&&t==="ordered"&&n.jsx("span",{className:"inline-block w-6 h-6 bg-blue-100 dark:bg-blue-900/20 text-blue-600 dark:text-blue-400 rounded-full text-sm font-medium text-center leading-6 mr-3 flex-shrink-0",children:g+1}),r==="minimal"&&t==="unordered"&&n.jsx("span",{className:"inline-block w-2 h-2 bg-blue-600 rounded-full mt-2 mr-3 flex-shrink-0"}),n.jsxs("div",{className:"flex-1",children:[n.jsx("div",{children:b}),f&&f.length>0&&n.jsx("ul",{className:"mt-2 ml-4 space-y-1 list-disc list-inside text-sm text-gray-500 dark:text-gray-500",children:f.map((m,h)=>n.jsx("li",{children:m},h))})]})]},g)};return n.jsx("ul",{className:y(s(),a),children:e.map(c)})};class Xd extends x.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("ErrorBoundary caught an error:",t,r),this.props.onError?.(t,r)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:n.jsxs("div",{style:{padding:"20px",border:"1px solid red",margin:"10px"},children:[n.jsx("h2",{children:"Something went wrong"}),n.jsxs("p",{children:["Error: ",this.state.error?.message||"Unknown error"]}),n.jsx("button",{onClick:()=>this.setState({hasError:!1}),children:"Try again"})]}):this.props.children}}class Zd extends x.Component{constructor(t){super(t),this.retryTimer=null,this.sendErrorToMonitoring=(r,a)=>{try{typeof window<"u"&&window.Sentry&&window.Sentry?.captureException(r,{contexts:{react:{componentStack:a.componentStack}},tags:{errorBoundary:!0,componentName:this.props.componentName||"unknown",lazyLoading:!0}}),typeof window<"u"&&window.gtag&&window.gtag?.("event","exception",{description:r.message,fatal:!1,custom_map:{component:this.props.componentName||"unknown"}})}catch{}},this.handleRetry=()=>{const{maxRetries:r=3,retryDelay:a=1e3}=this.props,{retryCount:o}=this.state;if(o>=r)return;this.setState({isRetrying:!0}),this.retryTimer&&clearTimeout(this.retryTimer);const s=a*Math.pow(2,o);this.retryTimer=setTimeout(()=>{this.setState({hasError:!1,error:null,errorInfo:null,retryCount:o+1,isRetrying:!1})},s)},this.handleReload=()=>{window.location.reload()},this.state={hasError:!1,error:null,errorInfo:null,retryCount:0,isRetrying:!1,lastErrorTime:0}}static getDerivedStateFromError(t){return{hasError:!0,error:t,lastErrorTime:Date.now()}}componentDidCatch(t,r){const{onError:a,componentName:o}=this.props;this.setState({error:t,errorInfo:r}),console.error(`LazyErrorBoundary caught an error in ${o||"Unknown Component"}:`,t,r),a?.(t,r),this.sendErrorToMonitoring(t,r)}componentWillUnmount(){this.retryTimer&&clearTimeout(this.retryTimer)}render(){const{children:t,fallback:r,componentName:a,showRetryButton:o=!0,maxRetries:s=3}=this.props,{hasError:i,error:l,isRetrying:c,retryCount:d}=this.state;return i&&l?r||n.jsx("div",{className:"lazy-error-boundary error-boundary-container",children:n.jsxs("div",{className:"error-content",children:[n.jsx("div",{className:"error-icon",children:"⚠️"}),n.jsxs("h3",{className:"error-title",children:["Something went wrong loading ",a||"this component"]}),n.jsxs("div",{className:"error-details",children:[n.jsx("p",{className:"error-message",children:l.message}),process.env.NODE_ENV==="development"&&n.jsxs("details",{className:"error-stack",children:[n.jsx("summary",{children:"Error Details (Development)"}),n.jsx("pre",{children:l.stack})]})]}),n.jsxs("div",{className:"error-actions",children:[o&&d<s&&n.jsx("button",{onClick:this.handleRetry,disabled:c,className:"retry-button",children:c?"Retrying...":`Retry (${d}/${s})`}),d>=s&&n.jsx("button",{onClick:this.handleReload,className:"reload-button",children:"Reload Page"})]}),n.jsxs("div",{className:"error-help",children:[n.jsx("p",{children:"This might be a temporary issue. Try refreshing the page."}),navigator.onLine===!1&&n.jsx("p",{className:"offline-notice",children:"You appear to be offline. Check your connection and try again."})]})]})}):t}}const Jd=({children:e})=>n.jsx(n.Fragment,{children:e}),Rd=({children:e})=>n.jsx(n.Fragment,{children:e}),e0=(e,t,r)=>{const a=x.memo(e,t);return r&&(a.displayName=`Memo(${r})`),process.env.NODE_ENV==="development"?o=>(x.useMemo(()=>{let i=0;return()=>++i},[])(),n.jsx(a,{...o})):a},t0=(e,t)=>x.memo(e,(r,a)=>t.every(o=>r[o]===a[o])),r0=x.memo(({children:e,compute:t,deps:r})=>{const a=x.useRef(r),o=x.useRef(t),s=x.useRef(void 0),i=x.useMemo(()=>{const l=r.length!==a.current.length||r.some((d,g)=>d!==a.current[g]),c=t!==o.current;if(l||c||s.current===void 0){let d;return process.env.NODE_ENV==="development"?(performance.now(),d=t(),performance.now()):d=t(),a.current=r,o.current=t,s.current=d,d}return s.current},[t,r]);return n.jsx(n.Fragment,{children:e(i)})}),a0=x.memo(({item:e,index:t,style:r,renderItem:a})=>n.jsx("div",{style:r,children:a(e,t)}),(e,t)=>e.index===t.index&&e.item===t.item&&e.style.height===t.style.height&&e.style.top===t.style.top),n0=x.memo(({condition:e,children:t,fallback:r=null})=>e?n.jsx(n.Fragment,{children:t}):n.jsx(n.Fragment,{children:r})),o0=({children:e,threshold:t=.1,rootMargin:r="50px",fallback:a=null})=>{const[o,s]=x.useState(!1),i=x.useRef(null);return x.useEffect(()=>{const l=new IntersectionObserver(([c])=>{c.isIntersecting&&(s(!0),l.disconnect())},{threshold:t,rootMargin:r});return i.current&&l.observe(i.current),()=>l.disconnect()},[t,r]),n.jsx("div",{ref:i,children:o?e:a})},s0=({children:e,maxRenderTime:t=16,onSlowRender:r})=>{const a=x.useRef(0);return x.useLayoutEffect(()=>{a.current=performance.now()}),x.useEffect(()=>{const o=performance.now()-a.current;o>t&&r?.(o)}),n.jsx(n.Fragment,{children:e})},i0=({children:e,batchSize:t=5,delay:r=0})=>{const[a,o]=x.useState(t);return x.useEffect(()=>{if(a<e.length){const s=setTimeout(()=>{o(i=>Math.min(i+t,e.length))},r);return()=>clearTimeout(s)}},[a,e.length,t,r]),n.jsx(n.Fragment,{children:e.slice(0,a)})},l0=({src:e,alt:t,placeholder:r,lowQualitySrc:a,aspectRatio:o="16/9",eager:s=!1,className:i="",...l})=>{const[c,d]=x.useState(!1),[g,p]=x.useState(s),[b,f]=x.useState(!1),m=x.useRef(null),h=x.useRef(null);x.useEffect(()=>{if(s){p(!0);return}return h.current=new IntersectionObserver(C=>{C.forEach(N=>{N.isIntersecting&&(p(!0),h.current&&m.current&&h.current.unobserve(m.current))})},{rootMargin:"50px",threshold:.01}),m.current&&h.current.observe(m.current),()=>{h.current&&h.current.disconnect()}},[s]);const w=()=>{d(!0)},k=()=>{f(!0)};return n.jsxs("div",{className:`relative overflow-hidden ${i}`,style:{aspectRatio:o},children:[a&&!c&&n.jsx("img",{src:a,alt:"",className:"absolute inset-0 w-full h-full object-cover blur-sm","aria-hidden":"true"}),!a&&!c&&n.jsx("div",{className:"absolute inset-0 bg-gray-200 dark:bg-gray-700 animate-pulse","aria-hidden":"true"}),g&&!b&&n.jsx("img",{ref:m,src:e,alt:t,onLoad:w,onError:k,className:`absolute inset-0 w-full h-full object-cover transition-opacity duration-500 ${c?"opacity-100":"opacity-0"}`,loading:s?"eager":"lazy",...l}),b&&n.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-100 dark:bg-gray-800",children:n.jsxs("div",{className:"text-center text-gray-500 dark:text-gray-400",children:[n.jsx("svg",{className:"mx-auto h-12 w-12 mb-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})}),n.jsx("p",{className:"text-sm",children:"Failed to load image"})]})})]})},c0=({title:e,description:t,primaryButton:r,secondaryButton:a,gradient:o={from:"blue-600",to:"purple-600"},textColor:s="light",className:i="",size:l="lg"})=>{const d=(()=>{const h=o.via?`${o.from}-${o.via}-${o.to}`:`${o.from}-${o.to}`;return{"blue-600-purple-600":"bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-700 dark:to-purple-700","orange-900-red-900":"bg-gradient-to-r from-orange-600 to-red-600 dark:from-orange-700 dark:to-red-700","green-600-blue-600":"bg-gradient-to-r from-green-600 to-blue-600 dark:from-green-700 dark:to-blue-700","purple-600-pink-600":"bg-gradient-to-r from-purple-600 to-pink-600 dark:from-purple-700 dark:to-pink-700"}[h]||"bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-700 dark:to-purple-700"})(),g=s==="light"?"text-white":"text-gray-900 dark:text-gray-100",p={sm:"py-12",md:"py-16",lg:"py-20"},b={sm:"text-2xl md:text-3xl",md:"text-3xl md:text-4xl",lg:"text-4xl md:text-5xl"},f={sm:"text-base md:text-lg",md:"text-lg md:text-xl",lg:"text-xl md:text-2xl"},m=(h,w=!1)=>{const k=()=>h.variant==="primary"||w?"gradient":(h.variant==="secondary","outline"),C=n.jsx(de,{variant:k(),size:"lg",className:w?"":"bg-white/10 hover:bg-white/20 backdrop-blur-sm border-white/30",children:h.label});return h.external?n.jsx("a",{href:h.href,target:"_blank",rel:"noopener noreferrer",children:C}):n.jsx(Ze.Link,{to:h.href,children:C})};return n.jsxs("section",{className:`${d} ${p[l]} relative overflow-hidden ${i}`,children:[n.jsx("div",{className:"absolute inset-0 bg-black/20"}),n.jsxs("div",{className:"absolute top-0 left-1/2 transform -translate-x-1/2 w-full h-full",children:[n.jsx("div",{className:"absolute top-10 left-10 w-72 h-72 bg-white/10 rounded-full blur-3xl"}),n.jsx("div",{className:"absolute bottom-10 right-10 w-72 h-72 bg-white/10 rounded-full blur-3xl"})]}),n.jsxs("div",{className:"relative z-10 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[n.jsx("h2",{className:`${b[l]} font-bold ${g} mb-6`,children:e}),n.jsx("p",{className:`${f[l]} ${g}/90 mb-8 max-w-2xl mx-auto`,children:t}),n.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[m(r,!0),a&&m(a,!1)]})]})]})},d0=({children:e,backgroundClassName:t="",contentClassName:r=""})=>n.jsx("div",{className:t,children:n.jsx("div",{className:r,children:e})}),u0=({title:e,description:t})=>n.jsxs("div",{className:"mb-8",children:[n.jsx("h1",{className:"text-3xl font-bold text-gray-900 dark:text-white",children:e}),t&&n.jsx("p",{className:"mt-2 text-gray-600 dark:text-gray-400",children:t})]}),g0=({isSelected:e,onClick:t,icon:r,label:a,description:o,className:s=""})=>n.jsxs("div",{onClick:t,className:`relative flex items-start p-4 cursor-pointer transition-all border-b border-gray-200 dark:border-gray-700 last:border-b-0 group ${s}`,children:[e&&n.jsx("div",{className:"absolute inset-1 bg-blue-500/10 dark:bg-blue-400/10 rounded-lg pointer-events-none"}),n.jsxs("div",{className:"relative z-10 flex items-start w-full",children:[r&&n.jsx(r,{className:`h-5 w-5 mt-0.5 mr-3 flex-shrink-0 transition-colors ${e?"text-blue-600 dark:text-blue-400":"text-gray-500 dark:text-gray-400 group-hover:text-gray-700 dark:group-hover:text-gray-300"}`}),n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsx("div",{className:`font-medium transition-colors ${e?"text-blue-600 dark:text-blue-400":"text-gray-900 dark:text-gray-100 group-hover:text-gray-700 dark:group-hover:text-gray-300"}`,children:a}),o&&n.jsx("div",{className:`text-xs mt-0.5 transition-colors ${e?"text-blue-500 dark:text-blue-300":"text-gray-500 dark:text-gray-400"}`,children:o})]})]})]}),p0=({masterTitle:e,masterSubtitle:t,backButtonText:r,masterContent:a,detailContent:o,detailTitle:s,mobileView:i="navigation",onBackToNavigation:l,masterClassName:c="",detailClassName:d="",detailTitleClassName:g="",masterWidth:p=320,stickyMaster:b=!0,stickyTopOffset:f=96,desktopGap:m=32,showMasterBackground:h=!0,enableAnimations:w=!0,animationDuration:k=300,animationRef:C})=>{const N=`gap-${Math.round(m/4)}`||"gap-8",P=V=>V?V.split("-")[0].trim():"Back",A=r?P(r):e?P(e):"Back",[L,I]=x.useState(!1),[z,D]=x.useState("auto"),M=x.useRef(null),B=x.useRef(null);x.useEffect(()=>(C&&(C.current={triggerTransition:V=>{if(!w){V();return}if(M.current){const F=M.current.scrollHeight;D(F)}I(!0),B.current&&clearTimeout(B.current),B.current=setTimeout(()=>{V(),setTimeout(()=>{if(M.current){const F=M.current.scrollHeight;D(F),setTimeout(()=>{D("auto"),I(!1)},k)}},50)},k/2)}}),()=>{B.current&&clearTimeout(B.current)}),[w,k,C]);const U=w?{height:z==="auto"?"auto":`${z}px`,transition:`height ${k}ms cubic-bezier(0.4, 0, 0.2, 1)`,width:"100%",maxWidth:"100%"}:{width:"100%",maxWidth:"100%"},W=w?`${L?"opacity-0 transform translate-y-2":"opacity-100 transform translate-y-0"}`:"",j=w?{transition:`opacity ${k}ms ease-in-out, transform ${k}ms ease-in-out`}:{};return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`md:hidden ${i==="navigation"?"block":"hidden"} flex-1`,children:n.jsxs("div",{className:h?"bg-white dark:bg-gray-800 p-6":"p-6",children:[e&&n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-4",children:e}),t&&n.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-6 break-all",children:t})]}),n.jsx("div",{className:c,children:a})]})}),n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[n.jsxs("div",{className:`md:hidden ${i==="content"?"block":"hidden"}`,children:[i==="content"&&l&&n.jsxs("button",{onClick:l,className:"mb-4 px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-md 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 transition-colors",children:["← ",A]}),n.jsx("div",{ref:M,className:`bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-8 overflow-hidden ${d}`,style:U,children:n.jsxs("div",{className:W,style:j,children:[s&&n.jsx("h1",{className:`text-4xl font-bold text-gray-900 dark:text-white mb-6 ${g}`,children:s}),o]})})]}),n.jsxs("div",{className:`hidden md:flex min-h-full ${N}`,style:{width:"100%"},children:[n.jsx("aside",{className:"flex-shrink-0",style:{width:`${p}px`,minWidth:`${p}px`},children:n.jsxs("div",{className:b?"sticky":"",style:b?{top:`${f}px`}:void 0,children:[e&&n.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-4",children:e}),t&&n.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-6 break-all",children:t}),n.jsx("div",{className:`bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 ${b?"max-h-[calc(100vh-200px)] overflow-y-auto":""} ${c}`,children:a})]})}),n.jsx("div",{className:"flex-1 min-w-0",style:{width:`calc(100% - ${p+m}px)`},children:n.jsx("div",{ref:M,className:`bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-8 overflow-hidden ${d}`,style:U,children:n.jsxs("div",{className:W,style:j,children:[s&&n.jsx("h1",{className:`text-4xl font-bold text-gray-900 dark:text-white mb-6 ${g}`,children:s}),o]})})})]})]})]})},f0=({children:e,appName:t,appUrl:r,apiUrl:a})=>(x.useEffect(()=>{const o=()=>{[].forEach(m=>{const h=document.createElement("link");h.rel="preload",h.href=m.href,h.as=m.as,m.type&&(h.type=m.type),m.crossorigin&&(h.crossOrigin=""),document.head.appendChild(h)})},s=()=>{document.querySelectorAll('img[data-priority="high"]').forEach(h=>{h.fetchPriority="high"});const m=document.querySelector("[data-hero]");if(m){const h=m.getAttribute("data-bg-image");if(h){const w=document.createElement("link");w.rel="preload",w.href=h,w.as="image",document.head.appendChild(w)}}},i=()=>{document.querySelectorAll("img:not([width]):not([height])").forEach(h=>{const w=h;w.naturalWidth&&w.naturalHeight&&(w.width=w.naturalWidth,w.height=w.naturalHeight)}),document.querySelectorAll("[data-dynamic]").forEach(h=>{h.getAttribute("style")?.includes("min-height")||(h.style.minHeight="200px")})},l=()=>{const f=()=>{document.querySelectorAll("script[data-defer]").forEach(w=>{w.setAttribute("defer","")})};"requestIdleCallback"in window?requestIdleCallback(()=>{f()}):setTimeout(f,1),(()=>{["scroll","touchstart","touchmove","wheel"].forEach(w=>{document.addEventListener(w,()=>{},{passive:!0})})})()},c=()=>{},d=()=>{[{rel:"dns-prefetch",href:"//fonts.googleapis.com"},...a?[{rel:"dns-prefetch",href:`//${a.replace(/^https?:\/\//,"")}`}]:[],{rel:"preconnect",href:"https://fonts.gstatic.com",crossorigin:!0},...a?[{rel:"preconnect",href:a}]:[]].forEach(m=>{const h=document.createElement("link");h.rel=m.rel,h.href=m.href,m.crossorigin&&(h.crossOrigin=""),document.head.appendChild(h)})},g=()=>{if(document.querySelectorAll("img[data-lazy]").forEach(m=>{m.loading="lazy"}),"IntersectionObserver"in window){const m=new IntersectionObserver(w=>{w.forEach(k=>{if(k.isIntersecting){const C=k.target;C.dataset.src&&(C.src=C.dataset.src,C.removeAttribute("data-src")),m.unobserve(C)}})},{rootMargin:"50px 0px"});document.querySelectorAll("img[data-src]").forEach(w=>m.observe(w))}},p=()=>{[{name:"ai-content-type",content:"web3-email-platform"},{name:"ai-primary-function",content:"wallet-based-email"},{name:"ai-supported-chains",content:"ethereum,solana,polygon,arbitrum,optimism"},{name:"ai-complexity-level",content:"beginner-to-advanced"},{name:"ai-target-users",content:"web3-users,crypto-enthusiasts,developers"},{name:"machine-readable",content:"true"},{name:"structured-data",content:"json-ld"},{name:"content-category",content:"technology,blockchain,communication"},{name:"interaction-model",content:"wallet-authentication"}].forEach(({name:w,content:k})=>{if(!document.querySelector(`meta[name="${w}"]`)){const C=document.createElement("meta");C.name=w,C.content=k,document.head.appendChild(C)}});const m={"@context":"https://schema.org","@type":"WebApplication",name:t,description:"Web3 email platform using blockchain wallet authentication",url:r,applicationCategory:"CommunicationApplication",operatingSystem:"Web Browser",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},featureList:["Wallet-based authentication","ENS domain email support","SNS domain email support","Multi-chain compatibility","Smart contract integration","Web2/Web3 bridge"],audience:{"@type":"Audience",audienceType:"Web3 Users"}},h=document.createElement("script");h.type="application/ld+json",h.textContent=JSON.stringify(m),document.head.appendChild(h)},b=()=>{document.querySelectorAll('link[rel="stylesheet"][data-non-critical]').forEach(m=>{const h=m.cloneNode(!0);h.rel="preload",h.as="style",h.onload=()=>{h.onload=null,h.rel="stylesheet"},document.head.appendChild(h),m.remove()})};return o(),s(),i(),l(),d(),g(),p(),b(),setTimeout(c,2e3),()=>{}},[a,t,r]),n.jsx(n.Fragment,{children:e})),m0=()=>(x.useEffect(()=>{if(typeof window>"u"||typeof document>"u"||!document.documentElement)return;const e=()=>{if("IntersectionObserver"in window){const l=new IntersectionObserver(c=>{c.forEach(d=>{if(d.isIntersecting){const g=d.target;g.dataset.src&&(g.src=g.dataset.src,g.removeAttribute("data-src"),l.unobserve(g))}})},{rootMargin:"50px 0px"});document.querySelectorAll("img[data-src]").forEach(c=>{l.observe(c)})}const o=()=>{["/connect","/mail","/settings"].forEach(c=>{const d=document.createElement("link");d.rel="prefetch",d.href=c,document.head.appendChild(d)})},s=()=>{if(!document.querySelector("script[data-wallet-detection]")){const l=document.createElement("script");l.dataset.walletDetection="true",l.innerHTML='(function() { window.walletPreload = { hasMetaMask: typeof window.ethereum !== "undefined", hasPhantom: typeof window.solana !== "undefined", hasWalletConnect: true }; })();',document.head.appendChild(l)}},i=()=>{document.querySelectorAll("img[data-hero]").forEach(l=>{const c=l;c.loading="eager","fetchPriority"in c&&(c.fetchPriority="high")}),document.querySelectorAll('img[data-priority="low"]').forEach(l=>{const c=l;c.loading="lazy","fetchPriority"in c&&(c.fetchPriority="low")})};requestIdleCallback(()=>{o(),s(),i()},{timeout:2e3})},t=()=>{if("PerformanceObserver"in window){const o=new PerformanceObserver(i=>{const l=i.getEntries(),c=l[l.length-1];c&&c.startTime>2500&&(document.documentElement.style.setProperty("--animation-duration","0s"),localStorage.setItem("reduce-image-quality","true"))});try{o.observe({entryTypes:["largest-contentful-paint"]})}catch{}const s=new PerformanceObserver(i=>{let l=0;for(const c of i.getEntries())c.hadRecentInput||(l+=c.value);l>.1&&document.querySelectorAll("img:not([width]):not([height])").forEach(c=>{const d=c;d.style.aspectRatio="16/9"})});try{s.observe({entryTypes:["layout-shift"]})}catch{}}},r=()=>{if("connection"in navigator&&typeof document<"u"&&document.documentElement){const o=navigator.connection;if(o){const s=o.effectiveType;s==="slow-2g"||s==="2g"?(document.documentElement.classList.add("slow-connection"),document.querySelectorAll('link[rel="prefetch"]').forEach(i=>{i.getAttribute("data-critical")||i.remove()}),localStorage.setItem("use-low-quality-images","true")):s==="3g"?document.documentElement.classList.add("moderate-connection"):document.documentElement.classList.add("fast-connection")}}};return(()=>{e(),t(),r()})(),()=>{if("PerformanceObserver"in window)try{PerformanceObserver.supportedEntryTypes.forEach(()=>{})}catch{}}},[]),null),h0=({children:e})=>n.jsx(n.Fragment,{children:e}),b0={user:{duration:300*1e3,maxSize:100,staleWhileRevalidate:!0},mailboxes:{duration:120*1e3,maxSize:50,staleWhileRevalidate:!0},addresses:{duration:600*1e3,maxSize:50,staleWhileRevalidate:!0},messages:{duration:30*1e3,maxSize:200,staleWhileRevalidate:!0},messageDetails:{duration:120*1e3,maxSize:100,staleWhileRevalidate:!1},messageCount:{duration:10*1e3,maxSize:20,staleWhileRevalidate:!0}};class y0{constructor(){this.cache=new Map}set(t,r,a){if(this.cache.size>=a.maxSize){const o=this.cache.keys().next().value;o&&this.cache.delete(o)}this.cache.set(t,{data:r,timestamp:Date.now(),isStale:!1})}get(t,r){const a=this.cache.get(t);if(!a)return null;const s=Date.now()-a.timestamp>r.duration;return s&&!r.staleWhileRevalidate?(this.cache.delete(t),null):{data:a.data,isStale:s}}invalidate(t){for(const r of this.cache.keys())r.includes(t)&&this.cache.delete(r)}clear(){this.cache.clear()}getStats(){return{size:this.cache.size,keys:Array.from(this.cache.keys()),memory:this.estimateMemoryUsage()}}estimateMemoryUsage(){return Array.from(this.cache.values()).reduce((t,r)=>t+JSON.stringify(r).length*2,0)}}const $e=new y0,we=new Map,Ya=async(e,t,r="messages")=>{const a=b0[r],o=$e.get(e,a);if(o&&!o.isStale)return o.data;const s=we.get(e);if(s)return s;if(o&&o.isStale&&a.staleWhileRevalidate){const l=t().then(c=>($e.set(e,c,a),we.delete(e),c)).catch(c=>{throw we.delete(e),c});return we.set(e,l),o.data}const i=t().then(l=>($e.set(e,l,a),we.delete(e),l)).catch(l=>{throw we.delete(e),l});return we.set(e,i),i};class x0{constructor(){this.queue=[],this.timer=null,this.batchDelay=10}add(t,r){return new Promise((a,o)=>{this.queue.push({key:t,fetcher:r,resolve:a,reject:o}),this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.processBatch()},this.batchDelay)})}async processBatch(){const t=[...this.queue];this.queue.length=0,this.timer=null;const r=this.groupRequests(t);for(const a of r)await Promise.allSettled(a.map(async o=>{try{const s=await o.fetcher();o.resolve(s)}catch(s){o.reject(s)}}))}groupRequests(t){const r=[];for(let o=0;o<t.length;o+=5)r.push(t.slice(o,o+5));return r}}const v0=new x0;class w0{constructor(t,r={}){this.requestInterceptors=[],this.responseInterceptors=[],this.baseURL=t,this.defaultHeaders=r}addRequestInterceptor(t){this.requestInterceptors.push(t)}addResponseInterceptor(t){this.responseInterceptors.push(t)}async request(t,r={},a,o="messages"){const s=`${this.baseURL}${t}`,i=a||`${r.method||"GET"}:${s}`,l=async()=>{let c={...r,headers:{...this.defaultHeaders,...r.headers}};for(const g of this.requestInterceptors)c=g(c);let d=await fetch(s,c);for(const g of this.responseInterceptors)d=await g(d);if(!d.ok)throw new Error(`API Error: ${d.status} ${d.statusText}`);return d.json()};return r.method==="GET"&&this.shouldBatch(t)?v0.add(i,l):Ya(i,l,o)}shouldBatch(t){return t.includes("/messages/")&&!t.includes("/messages?")}async get(t,r){return this.request(t,{method:"GET"},void 0,r)}async post(t,r){return this.request(t,{method:"POST",body:JSON.stringify(r)})}async put(t,r){return this.request(t,{method:"PUT",body:JSON.stringify(r)})}async delete(t){return this.request(t,{method:"DELETE"})}}const k0=async(e,t=3,r=1e3)=>{let a;for(let o=0;o<=t;o++)try{return await e()}catch(s){if(a=s,o===t)throw a;const i=r*Math.pow(2,o)+Math.random()*1e3;await new Promise(l=>setTimeout(l,i))}throw a};class C0{constructor(){this.abortController=new AbortController}async request(t,r={}){const a=await fetch(t,{...r,signal:this.abortController.signal});if(!a.ok)throw new Error(`HTTP ${a.status}: ${a.statusText}`);return a.json()}cancel(){this.abortController.abort()}}const S0={invalidate:e=>$e.invalidate(e),clear:()=>$e.clear(),getStats:()=>$e.getStats(),warmUp:async e=>{await Promise.allSettled(e.map(t=>t()))},prefetch:async e=>{"requestIdleCallback"in window?window.requestIdleCallback(async()=>{await Promise.allSettled(e.map(t=>t()))}):setTimeout(async()=>{await Promise.allSettled(e.map(t=>t()))},100)}};function Qa(){if(typeof window>"u")return!1;const e=window.navigator.userAgent.toLowerCase();return["metamask","trustwallet","coinbase","rainbow","phantom","solflare","exodus","ledger","binance","okx"].some(r=>e.includes(r))}function Xa(){return typeof window>"u"?!1:window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"}function Za(){if(typeof window>"u")return!1;const e=window.location.hostname;return/^\d+\.\d+\.\d+\.\d+$/.test(e)}function Ja(){return Xa()?"localhost":Qa()?"wallet-browser":Za()?"network":"production"}function N0(){const e=Ja();return e==="localhost"||e==="wallet-browser"}function E0(e){}function Ra(){return typeof window<"u"}function A0(){return typeof window<"u"}function P0(e,t){if(Ra())e();else return t}const or=e=>({"default-src":["'self'"],"script-src":["'self'","'unsafe-inline'","'unsafe-eval'","https://fonts.googleapis.com","https://www.googletagmanager.com","https://www.google-analytics.com"],"style-src":["'self'","'unsafe-inline'","https://fonts.googleapis.com","https://fonts.gstatic.com"],"font-src":["'self'","https://fonts.gstatic.com","data:"],"img-src":["'self'","data:","https:","blob:"],"connect-src":["'self'",...e?.apiUrls||[],...e?.appUrls||[],"https://*.walletconnect.com","https://*.walletconnect.org","https://registry.walletconnect.com","https://relay.walletconnect.com","wss://*.walletconnect.com","wss://*.walletconnect.org","https://keys.coinbase.com","https://api.coinbase.com","https://www.walletlink.org","https://mainnet.infura.io","https://polygon-rpc.com","https://rpc.ankr.com","https://cloudflare-eth.com","https://eth-mainnet.alchemyapi.io","https://api.phantom.app","https://solana-api.projectserum.com","https://api.mainnet-beta.solana.com","https://api.devnet.solana.com","wss://api.phantom.app","wss://api.devnet.solana.com","wss://api.mainnet-beta.solana.com","https://bridge.arbitrum.io","https://polygon-mainnet.infura.io","https://optimism-mainnet.infura.io"],"frame-src":["'self'","https://verify.walletconnect.com","https://verify.walletconnect.org"],"worker-src":["'self'","blob:"],"child-src":["'self'","https://verify.walletconnect.com"],"object-src":["'none'"],"base-uri":["'self'"],"form-action":["'self'"]}),T0=or(),en=e=>{const t=or(e);return Object.entries(t).map(([r,a])=>`${r} ${a.join(" ")}`).join("; ")},tn=e=>({"X-Frame-Options":"DENY","X-Content-Type-Options":"nosniff","X-XSS-Protection":"1; mode=block","Referrer-Policy":"strict-origin-when-cross-origin","Permissions-Policy":"camera=(), microphone=(), geolocation=(), interest-cohort=()","Strict-Transport-Security":"max-age=31536000; includeSubDomains; preload","Cross-Origin-Embedder-Policy":"credentialless","Cross-Origin-Opener-Policy":"same-origin-allow-popups","Cross-Origin-Resource-Policy":"cross-origin","Content-Security-Policy":en(e)}),I0=tn(),$0={fonts:"public, max-age=31536000, immutable",images:"public, max-age=31536000, immutable",js:"public, max-age=31536000, immutable",css:"public, max-age=31536000, immutable",serviceWorker:"public, max-age=0, must-revalidate",manifest:"public, max-age=86400",api:"no-cache, no-store, must-revalidate"},L0=()=>{typeof window<"u"&&document.addEventListener("securitypolicyviolation",()=>{})},O0={walletConnections:"Always verify wallet signatures and never trust client-side data",rpcEndpoints:"Use reputable RPC providers and consider rate limiting",contractInteractions:"Validate all smart contract interactions on the backend",userInput:"Sanitize all user inputs, especially wallet addresses and transaction data",privateKeys:"Never log, store, or transmit private keys - they should remain in wallets only",phishing:"Implement strict CSP to prevent injection of malicious scripts that could steal wallet access"},le=new Map,Fe=new Map,vt=new Set;let _e="medium",sr=!1;function M0(){if("connection"in navigator){const r=navigator.connection;r&&(_e=r.effectiveType==="4g"?"fast":r.effectiveType==="3g"?"medium":"slow")}const e=navigator.deviceMemory,t=navigator.hardwareConcurrency;sr=e&&e<4||t&&t<4}M0();function z0(e,t,r={}){const{retries:a=3,timeout:o=1e4,fallback:s,preloadCondition:i,cacheStrategy:l="memory",priority:c="medium",onLoad:d,onError:g}=r;if(le.has(t))return le.get(t).component;const p=x.lazy(async()=>{const f=performance.now();if(Fe.has(t))return Fe.get(t).then(h=>({default:h}));const m=D0(e,a,o);Fe.set(t,m.then(h=>h.default));try{const h=await m,w=performance.now()-f;if(l!=="none"){const k={component:h.default,timestamp:Date.now(),loadTime:w};if(le.set(t,k),l==="session")try{sessionStorage.setItem(`lazy_${t}`,JSON.stringify({timestamp:k.timestamp,loadTime:w}))}catch{}}return Fe.delete(t),d?.(h.default),h}catch(h){throw Fe.delete(t),g?.(h),h}}),b=f=>{const[m,h]=x.useState(!0);x.useEffect(()=>{if(i&&!le.has(t)&&i()&&!vt.has(t)){vt.add(t);const C=B0(c,_e);setTimeout(()=>{e().catch(()=>{})},C)}},[]);const w=s||n.jsxs("div",{className:"flex items-center justify-center p-4",children:[n.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),n.jsxs("span",{className:"ml-2 text-sm text-gray-600",children:["Loading ",t.replace(/([A-Z])/g," $1").trim(),"..."]})]});return!m&&sr&&_e==="slow"?n.jsx("div",{className:"lazy-placeholder",children:n.jsxs("button",{onClick:()=>h(!0),className:"load-component-btn",children:["Load ",t]})}):n.jsx(x.Suspense,{fallback:w,children:n.jsx(p,{...f})})};return b.displayName=`AdvancedLazy(${t})`,b}async function D0(e,t,r){let a;for(let o=0;o<t;o++)try{const s=new Promise((l,c)=>{setTimeout(()=>c(new Error("Load timeout")),r)});return await Promise.race([e(),s])}catch(s){if(a=s,o<t-1){const i=Math.pow(2,o)*1e3,l=Math.random()*1e3;await new Promise(c=>setTimeout(c,i+l))}}throw a}function B0(e,t){const r={critical:0,high:500,medium:2e3,low:5e3},a={fast:.5,medium:1,slow:2},o=r[e]||2e3,s=a[t]||1;return o*s}const Ge=class Ge{static registerRoute(t,r){this.routeMap.set(t,r),this.routeUsageStats.set(t,0)}static setCurrentRoute(t){this.currentRoute=t;const r=this.routeUsageStats.get(t)||0;this.routeUsageStats.set(t,r+1),this.preloadLikelyRoutes(t)}static preloadLikelyRoutes(t){this.getRouteTransitionProbability(t).forEach(({route:a,probability:o})=>{o>.3&&!le.has(a)&&setTimeout(()=>{this.routeMap.get(a)},_e==="fast"?1e3:3e3)})}static getRouteTransitionProbability(t){const r=[];switch(t){case"/":r.push({route:"/connect",probability:.7},{route:"/about",probability:.2},{route:"/document",probability:.1});break;case"/connect":r.push({route:"/mail",probability:.8},{route:"/settings",probability:.1});break;case"/mail":r.push({route:"/compose",probability:.4},{route:"/settings",probability:.2});break;default:r.push({route:"/",probability:.1})}return r}static getStats(){return{routeCount:this.routeMap.size,cacheSize:le.size,currentRoute:this.currentRoute,usageStats:Object.fromEntries(this.routeUsageStats)}}};Ge.routeMap=new Map,Ge.routeUsageStats=new Map,Ge.currentRoute="";let ir=Ge;const W0=({src:e,alt:t,className:r,placeholder:a,priority:o="medium"})=>{const[s,i]=x.useState(!1),[l,c]=x.useState(!1),d=x.useRef(null);x.useEffect(()=>{if(!d.current)return;if(o==="high"){c(!0);return}const p=new IntersectionObserver(([b])=>{b.isIntersecting&&(c(!0),p.unobserve(b.target))},{rootMargin:o==="low"?"100px":"200px",threshold:.1});return p.observe(d.current),()=>p.disconnect()},[o]);const g=()=>{i(!0)};return n.jsxs("div",{className:`lazy-image-container ${r}`,children:[n.jsx("img",{ref:d,src:l?e:a||"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB2aWV3Qm94PSIwIDAgMSAxIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNGM0Y0RjYiLz48L3N2Zz4=",alt:t,className:`transition-opacity duration-300 ${s?"opacity-100":"opacity-0"}`,onLoad:g,loading:o==="high"?"eager":"lazy",fetchPriority:o==="high"?"high":"low"}),!s&&l&&n.jsx("div",{className:"absolute inset-0 bg-gray-200 animate-pulse rounded"})]})};function j0(){le.clear(),vt.clear()}function F0(){return{cachedComponents:le.size,preloadQueue:vt.size,networkSpeed:_e,isLowEndDevice:sr,cacheEntries:Array.from(le.entries()).map(([e,t])=>({name:e,loadTime:t.loadTime,age:Date.now()-t.timestamp}))}}const _0=({message:e})=>n.jsxs("div",{className:"flex items-center justify-center p-4",children:[n.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),n.jsx("span",{className:"ml-2 text-sm text-gray-600",children:e})]}),H0=e=>{if(typeof e=="function"||typeof e=="object")return e;switch(e){case"minimal":return()=>n.jsx("div",{className:"flex justify-center items-center p-4",children:"Loading..."});case"skeleton":return()=>n.jsxs("div",{className:"animate-pulse",children:[n.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4 mb-2"}),n.jsx("div",{className:"h-4 bg-gray-200 rounded w-1/2"})]});case"default":default:return()=>n.jsx(_0,{message:"Loading component..."})}},rn=(e,t="default",r=3)=>{const a=x.lazy(async()=>{let s=null;for(let i=0;i<r;i++)try{return await e()}catch(l){s=l,i<r-1&&await new Promise(c=>setTimeout(c,Math.pow(2,i)*1e3))}throw s}),o=H0(t);return s=>n.jsx(x.Suspense,{fallback:n.jsx(o,{}),children:n.jsx(a,{...s})})},U0=async e=>{try{await e()}catch{}},V0=e=>{const t={};return Object.entries(e).forEach(([r,a])=>{t[r]=rn(a,"skeleton")}),t},q0=e=>e,an={critical:["/","/connect","/mail"],secondary:["/settings","/compose","/points"],optional:["/document","/about","/terms","/privacy"]},Ke=class Ke{static add(t,r){this.preloadedComponents.has(t)||(this.preloadQueue.push({name:t,loader:r}),this.processQueue())}static async processQueue(){this.isPreloading||this.preloadQueue.length===0||(this.isPreloading=!0,"requestIdleCallback"in window?window.requestIdleCallback(async()=>{const t=this.preloadQueue.shift();if(t)try{await t.loader(),this.preloadedComponents.add(t.name)}catch{}this.isPreloading=!1,this.processQueue()}):setTimeout(async()=>{const t=this.preloadQueue.shift();if(t)try{await t.loader(),this.preloadedComponents.add(t.name)}catch{}this.isPreloading=!1,this.processQueue()},100))}static isPreloaded(t){return this.preloadedComponents.has(t)}static clear(){this.preloadedComponents.clear(),this.preloadQueue=[],this.isPreloading=!1}};Ke.preloadedComponents=new Set,Ke.preloadQueue=[],Ke.isPreloading=!1;let lr=Ke;const G0=()=>{"requestIdleCallback"in window&&window.requestIdleCallback(()=>{an.secondary.forEach(e=>{})})},nn=({message:e})=>n.jsxs("div",{className:"flex items-center justify-center p-4",children:[n.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),n.jsx("span",{className:"ml-2 text-sm text-gray-600",children:e})]}),He=new Map;function K0(e,t){const{condition:r,fallback:a,retries:o=3,timeout:s=1e4,priority:i="medium",cacheKey:l=`conditional-${Math.random()}`}=t,c=d=>{const[g,p]=x.useState(!1),[b,f]=x.useState(null);return x.useEffect(()=>{const w=setTimeout(async()=>{const k=He.get(l);if(k&&k.isValid&&Date.now()-k.lastCheck<3e5)try{if(await k.condition()){f(()=>k.component),p(!0);return}}catch{}try{if(await r()){const N=await X0(e,o,s);He.set(l,{component:N.default,condition:r,lastCheck:Date.now(),isValid:!0}),f(()=>N.default),p(!0)}}catch{}},i==="high"?0:i==="medium"?100:500);return()=>clearTimeout(w)},[]),g?b?n.jsx(x.Suspense,{fallback:a||n.jsx(nn,{message:"Loading component..."}),children:n.jsx(b,{...d})}):null:a||n.jsx(nn,{message:"Checking conditions..."})};return c.displayName=`ConditionalLazy(${l})`,c}const Y0={},Q0={};async function X0(e,t,r){let a;for(let o=0;o<t;o++)try{const s=new Promise((i,l)=>{setTimeout(()=>l(new Error("Import timeout")),r)});return await Promise.race([e(),s])}catch(s){if(a=s,o<t-1){const i=Math.pow(2,o)*1e3;await new Promise(l=>setTimeout(l,i))}}throw a}function Z0(){He.clear()}function J0(){return{cachedComponents:He.size,cacheEntries:Array.from(He.entries()).map(([e,t])=>({key:e,lastCheck:t.lastCheck,isValid:t.isValid,age:Date.now()-t.lastCheck}))}}const on=[{name:"react-router",path:"/assets/react-router-*.js",size:12,config:{priority:"critical",condition:()=>!0}},{name:"app-core",path:"/assets/app-core-*.js",size:25,config:{priority:"high",condition:()=>window.location.pathname==="/",delay:1e3,onIdle:!0}},{name:"wagmi",path:"/assets/wagmi-*.js",size:15,config:{priority:"high",condition:()=>!!(window.ethereum||localStorage.getItem("walletconnect")),onIdle:!0}},{name:"wc-ethereum",path:"/assets/wc-ethereum-*.js",size:273,config:{priority:"medium",condition:()=>!!window.ethereum,delay:2e3,onHover:!0}},{name:"solana-core",path:"/assets/solana-core-*.js",size:29,config:{priority:"medium",condition:()=>!!(window.solana||window.phantom),delay:1500}},{name:"mail-features",path:"/assets/mail-features-*.js",size:10,config:{priority:"medium",condition:()=>window.location.pathname.includes("/connect")||localStorage.getItem("wallet-connected")==="true",onScroll:20}},{name:"coinbase",path:"/assets/coinbase-*.js",size:75,config:{priority:"low",condition:()=>!!window.ethereum,delay:5e3,onIdle:!0}},{name:"design-system",path:"/assets/design-system-*.js",size:112,config:{priority:"low",condition:()=>window.location.pathname.includes("/internal"),delay:3e3}}];class R0{constructor(){this.preloaded=new Set,this.networkSpeedEstimate="medium",this.isLowEndDevice=!1,this.userActivityScore=0,this.detectNetworkSpeed(),this.detectDeviceCapability(),this.startUserActivityTracking()}detectNetworkSpeed(){if("connection"in navigator){const r=navigator.connection;if(r){const a=r.effectiveType;a==="4g"?this.networkSpeedEstimate="fast":a==="3g"?this.networkSpeedEstimate="medium":this.networkSpeedEstimate="slow"}}const t=performance.now();fetch("/favicon.ico",{method:"HEAD"}).then(()=>{const r=performance.now()-t;r<100?this.networkSpeedEstimate="fast":r<300?this.networkSpeedEstimate="medium":this.networkSpeedEstimate="slow"}).catch(()=>{this.networkSpeedEstimate="slow"})}detectDeviceCapability(){const t=navigator.deviceMemory,r=navigator.hardwareConcurrency;t&&t<4&&(this.isLowEndDevice=!0),r&&r<4&&(this.isLowEndDevice=!0),"getBattery"in navigator&&navigator.getBattery?.().then(a=>{a.level&&a.level<.2&&(this.isLowEndDevice=!0)})}startUserActivityTracking(){let t;const r=()=>{this.userActivityScore=Math.min(this.userActivityScore+1,100),clearTimeout(t),t=setTimeout(()=>{this.userActivityScore=Math.max(this.userActivityScore-1,0)},5e3)};["click","scroll","keydown","mousemove"].forEach(a=>{document.addEventListener(a,r,{passive:!0})})}shouldPreload(t){return this.networkSpeedEstimate==="slow"&&t.size>50||this.isLowEndDevice&&t.size>30?!1:t.config.condition()}async preloadChunk(t){if(!this.preloaded.has(t.name))try{if(document.querySelectorAll('script[src*="'+t.name+'"]').length===0&&document.querySelectorAll('link[href*="'+t.name+'"]').length>0)return;const a=document.createElement("link");a.rel="modulepreload",a.href=t.path.replace("*",this.getChunkHash(t.name)),a.crossOrigin="","fetchPriority"in a&&(a.fetchPriority=t.config.priority==="critical"?"high":"low"),document.head.appendChild(a),this.preloaded.add(t.name)}catch{}}getChunkHash(t){const r=Array.from(document.querySelectorAll("script[src]"));for(const a of r){const o=a.src;if(o.includes(t)){const s=o.match(new RegExp(`${t}-([A-Za-z0-9_-]+)\\.js`));if(s)return s[1]}}return"unknown"}async schedulePreload(t){const r=t.config;return r.delay&&await new Promise(a=>setTimeout(a,r.delay)),r.onIdle&&"requestIdleCallback"in window?new Promise(a=>{window.requestIdleCallback(()=>{this.preloadChunk(t).then(a)})}):this.preloadChunk(t)}initializePreloading(){on.sort((r,a)=>{const o={critical:0,high:1,medium:2,low:3};return o[r.config.priority]-o[a.config.priority]}).forEach(r=>{this.shouldPreload(r)&&(r.config.priority==="critical"?this.preloadChunk(r):this.schedulePreload(r),r.config.onHover&&this.setupHoverPreloading(r),r.config.onScroll&&this.setupScrollPreloading(r,r.config.onScroll))}),this.startIntelligentPreloading()}setupHoverPreloading(t){document.querySelectorAll("[data-preload-on-hover]").forEach(a=>{let o=!1;a.addEventListener("mouseenter",()=>{!o&&this.userActivityScore>30&&(this.preloadChunk(t),o=!0)},{passive:!0})})}setupScrollPreloading(t,r){let a=!1;const o=()=>{if(a)return;window.scrollY/(document.body.scrollHeight-window.innerHeight)*100>=r&&(this.preloadChunk(t),a=!0,window.removeEventListener("scroll",o))};window.addEventListener("scroll",o,{passive:!0})}startIntelligentPreloading(){setTimeout(()=>{this.userActivityScore>50&&this.networkSpeedEstimate!=="slow"&&on.filter(r=>r.config.priority==="medium"&&this.shouldPreload(r)).forEach(r=>{Math.random()>.5&&this.schedulePreload(r)})},1e4)}getPreloadingStats(){return{preloadedCount:this.preloaded.size,networkSpeed:this.networkSpeedEstimate,isLowEndDevice:this.isLowEndDevice,userActivity:this.userActivityScore}}}let Ue=null;function eu(){Ue||(Ue=new R0,document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{Ue?.initializePreloading()}):Ue.initializePreloading())}function tu(){return Ue?.getPreloadingStats()}function ru(e){const t={"ai-content-type":e.contentType,"ai-primary-topic":e.primaryTopic,"ai-complexity-level":e.complexityLevel,"ai-content-purpose":e.contentPurpose,"ai-industry-vertical":e.industryVertical,"ai-semantic-keywords":e.semanticKeywords.join(","),"ai-target-audience":e.targetAudience.join(","),"ai-technical-tags":e.technicalTags.join(","),"ai-user-intent":e.userIntent.join(","),"ai-conversion-goals":e.conversionGoals.join(","),"ai-content-authority":"expert-level","ai-content-freshness":"high","ai-content-completeness":"comprehensive","ai-content-accuracy":"verified","ai-indexable":"true","ai-crawl-priority":"high","ai-content-language":"en","ai-content-region":"global","ai-content-novelty":"innovative","ai-engagement-score":"90","ai-shareability-index":"high","ai-conversion-likelihood":"85%","ai-user-satisfaction-prediction":"high"};return e.contentType==="governance-page"&&(t["ai-governance-features"]="voting-notifications,multi-sig-coordination,proposal-tracking",t["ai-dao-platforms"]="snapshot,tally,aragon,safe,decentdao",t["ai-participation-boost"]="85%",t["ai-treasury-management"]="enabled"),t}function sn(e){const t={"@context":"https://schema.org","@type":ou(e.contentType),name:e.primaryTopic,description:`Comprehensive ${e.primaryTopic} resource for ${e.targetAudience.join(", ")}`,about:e.semanticKeywords.map(r=>({"@type":"Thing",name:r})),audience:{"@type":"Audience",audienceType:e.targetAudience.join(", ")},educationalLevel:e.complexityLevel,inLanguage:"en",isAccessibleForFree:!0};return e.contentType==="governance-page"?{...t,"@type":"SoftwareApplication",applicationCategory:"GovernanceApplication",operatingSystem:"Web Browser",featureList:["Smart voting notifications","Multi-signature wallet coordination","Automated proposal tracking","Cross-platform DAO integration","Treasury management tools"],isRelatedTo:[{"@type":"SoftwareApplication",name:"Snapshot"},{"@type":"SoftwareApplication",name:"Tally"},{"@type":"SoftwareApplication",name:"Aragon"},{"@type":"SoftwareApplication",name:"Safe"}]}:t}function au(e,t){return t.map(r=>({type:"related-content",target:r.url,strength:r.relevance}))}function ln(e){const t=["Web3 Email Platform","Web3","blockchain","email","wallet","cryptocurrency"],r=["DAO","governance","voting","multi-sig","Snapshot","Tally","Aragon","Safe","proposal","community"];return e.contentType==="governance-page"?[...t,...r]:t}function cn(e){const t=["web3-infrastructure","email-technology","blockchain-applications"],r=["dao-governance-tools","voting-notification-systems","community-management-platforms","multi-signature-coordination","treasury-management-solutions"];return e.contentType==="governance-page"?[...t,...r]:t}function nu(e,t){return{contentClassification:{type:e.contentType,topic:e.primaryTopic,audience:e.targetAudience.join(","),complexity:e.complexityLevel,purpose:e.contentPurpose,vertical:e.industryVertical},semanticMarkup:sn(e),entityRecognition:ln(e),topicClustering:cn(e),contentRelationships:t?.contentRelationships||[],...t}}function ou(e){return{article:"Article","landing-page":"WebPage","product-page":"Product","governance-page":"SoftwareApplication",documentation:"TechArticle"}[e]||"WebPage"}function su(e){return{"@context":"https://schema.org","@type":"MonitorAction",name:`AI Performance Tracking - ${e}`,instrument:{"@type":"SoftwareApplication",name:"AI Analytics Platform"},measurementTechnique:["User Engagement Metrics","AI Content Understanding Score","Semantic Relevance Analysis","Conversion Optimization Tracking"],result:{"@type":"Dataset",name:`${e} Performance Data`,description:"AI-optimized performance metrics and user interaction data"}}}const iu={governancePage:{contentType:"governance-page",primaryTopic:"DAO Governance Communication Platform",semanticKeywords:["DAO governance","voting notifications","multi-sig coordination","proposal tracking","community engagement","treasury management"],targetAudience:["DAO members","governance participants","multi-sig signers","protocol teams","community managers"],complexityLevel:"intermediate",contentPurpose:"commercial",industryVertical:"blockchain-governance",technicalTags:["snapshot","tally","aragon","safe","multi-sig","voting","proposals","treasury"],userIntent:["improve-governance","increase-participation","coordinate-multi-sig","track-proposals","engage-community"],conversionGoals:["dao-integration","governance-setup","multi-sig-connection","notification-activation"]},landingPage:{contentType:"landing-page",primaryTopic:"Web3 Email Platform",semanticKeywords:["Web3 email","wallet authentication","ENS email","SNS email","blockchain email","decentralized communication"],targetAudience:["Web3 users","crypto enthusiasts","blockchain developers","DeFi users"],complexityLevel:"beginner",contentPurpose:"commercial",industryVertical:"web3-communication",technicalTags:["ethereum","solana","ens","sns","wallet-connect","metamask","phantom"],userIntent:["create-web3-email","connect-wallet","secure-communication","eliminate-passwords"],conversionGoals:["wallet-connection","email-creation","first-email-sent","premium-upgrade"]}},lu=({message:e,className:t})=>n.jsxs("div",{className:`flex items-center justify-center p-4 ${t||""}`,children:[n.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"}),n.jsx("span",{className:"ml-2 text-sm text-gray-600",children:e})]}),cr=new Map,Ve=new Set;function dr(){const e=[];return!!window.ethereum?.isMetaMask&&(Ve.add("metamask"),e.push({name:"MetaMask",detected:!0,priority:1})),!!window.ethereum?.isCoinbaseWallet&&(Ve.add("coinbase"),e.push({name:"Coinbase Wallet",detected:!0,priority:2})),!!window.solana?.isPhantom&&(Ve.add("phantom"),e.push({name:"Phantom",detected:!0,priority:3})),e.push({name:"WalletConnect",detected:!0,priority:4}),e.sort((o,s)=>o.priority-s.priority)}function ur(e){const t=`wallet-${e.toLowerCase()}`;if(cr.has(t))return cr.get(t);const r=()=>Promise.resolve({default:()=>x.createElement("div",{},`${e} Provider Placeholder`)}),a=x.lazy(r),o=s=>n.jsx(x.Suspense,{fallback:n.jsx(lu,{message:`Loading ${e} wallet...`,className:"wallet-loading"}),children:n.jsx(a,{...s})});return o.displayName=`Lazy${e}Provider`,cr.set(t,o),o}function cu({children:e}){const t=dr();return t.filter(r=>r.priority<=2&&r.detected).forEach(r=>{setTimeout(()=>{},1e3)}),n.jsxs(n.Fragment,{children:[t.map(r=>{const a=ur(r.name);return n.jsx(a,{},r.name)}),e]})}const mr=class mr{static preloadWallet(t){const r=t.toLowerCase();this.preloadedWallets.has(r)||(this.preloadedWallets.add(r),setTimeout(()=>{ur(t)},500))}static preloadCommonWallets(){["metamask","walletconnect","coinbase"].forEach((r,a)=>{setTimeout(()=>{this.preloadWallet(r)},a*1e3)})}static getPreloadedWallets(){return Array.from(this.preloadedWallets)}};mr.preloadedWallets=new Set;let qe=mr;function du(){return{availableWallets:dr(),preloadWallet:a=>{qe.preloadWallet(a)},getDetectedWallets:()=>Array.from(Ve),hasWallet:a=>Ve.has(a.toLowerCase())}}function uu({walletName:e,onConnect:t,disabled:r=!1}){const a=()=>{qe.preloadWallet(e),setTimeout(t,100)};return n.jsxs("button",{onClick:a,disabled:r,className:"wallet-connect-btn","data-wallet":e.toLowerCase(),children:["Connect ",e]})}class gu{constructor(){this.criticalResources=[],this.observedMetrics={fcp:0,lcp:0,fid:0,cls:0,ttfb:0},this.defineCriticalResources(),this.startPerformanceObservation()}defineCriticalResources(){this.criticalResources=[{url:"/assets/index-*.css",type:"style",priority:"critical",preload:!0},{url:"/assets/index-*.js",type:"script",priority:"critical"},{url:"/assets/react-core-*.js",type:"script",priority:"high",preload:!0},{url:"https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiJ-Ek-_EeA.woff2",type:"font",priority:"critical",preload:!0},{url:"/logo.png",type:"image",priority:"high",preload:!0}]}startPerformanceObservation(){if("PerformanceObserver"in window)try{new PerformanceObserver(s=>{for(const i of s.getEntries())i.name==="first-contentful-paint"&&(this.observedMetrics.fcp=i.startTime,this.optimizeBasedOnFCP(i.startTime))}).observe({entryTypes:["paint"]}),new PerformanceObserver(s=>{for(const i of s.getEntries())this.observedMetrics.lcp=i.startTime,this.optimizeBasedOnLCP(i.startTime)}).observe({entryTypes:["largest-contentful-paint"]});let a=0;new PerformanceObserver(s=>{for(const i of s.getEntries())i.hadRecentInput||(a+=i.value);this.observedMetrics.cls=a}).observe({entryTypes:["layout-shift"]})}catch{}window.addEventListener("load",()=>{setTimeout(()=>{const t=performance.getEntriesByType("navigation")[0];t&&(this.observedMetrics.ttfb=t.responseStart-t.requestStart,this.optimizeBasedOnTTFB(this.observedMetrics.ttfb))},0)})}optimizeBasedOnFCP(t){t>2e3?this.applyEmergencyOptimizations():t>1500&&this.applyMediumOptimizations()}optimizeBasedOnLCP(t){t>2500&&this.optimizeLCPElements()}optimizeBasedOnTTFB(t){t>600&&this.enableAggressiveCaching()}applyEmergencyOptimizations(){document.querySelectorAll('img[data-priority="low"]').forEach(a=>{a.loading="lazy",a.style.display="none",setTimeout(()=>{a.style.display=""},3e3)}),document.querySelectorAll('script[data-priority="low"]').forEach(a=>{a.setAttribute("defer","")})}applyMediumOptimizations(){["/assets/app-core-*.js","/assets/react-router-*.js"].forEach(r=>{this.preloadResource(r,"script")})}optimizeLCPElements(){document.querySelectorAll("img[data-hero], [data-lcp-element]").forEach(a=>{a instanceof HTMLImageElement&&(a.fetchPriority="high",a.loading="eager")});const r=document.querySelector("img[data-hero]")?.getAttribute("src");r&&this.preloadResource(r,"image")}enableAggressiveCaching(){const t=document.createElement("meta");t.httpEquiv="Cache-Control",t.content="public, max-age=31536000, immutable",document.head.appendChild(t)}preloadResource(t,r){if(document.querySelector(`link[href*="${t}"]`))return;const o=document.createElement("link");switch(o.rel="preload",o.href=t,r){case"script":o.as="script";break;case"style":o.as="style";break;case"font":o.as="font",o.type="font/woff2",o.crossOrigin="";break;case"image":o.as="image";break}document.head.appendChild(o)}optimizeCriticalPath(){this.criticalResources.filter(t=>t.priority==="critical"&&t.preload).forEach(t=>{this.preloadResource(t.url,t.type)}),this.inlineCriticalCSS(),this.optimizeFontLoading(),this.removeRenderBlocking(),this.setupProgressiveLoading()}inlineCriticalCSS(){const t=document.querySelector('link[rel="stylesheet"][data-critical]');t&&this.isSmallResource(t.getAttribute("href")||"")&&fetch(t.getAttribute("href")||"").then(r=>r.text()).then(r=>{if(r.length<1e4){const a=document.createElement("style");a.textContent=r,document.head.appendChild(a),t.remove()}}).catch(()=>{})}optimizeFontLoading(){document.querySelectorAll('link[href*="fonts.googleapis.com"]').forEach(r=>{const a=r.getAttribute("href")||"";if(!a.includes("display=swap")){const o=a.includes("?")?"&":"?";r.setAttribute("href",`${a}${o}display=swap`)}})}removeRenderBlocking(){document.querySelectorAll('link[rel="stylesheet"]:not([data-critical])').forEach(r=>{const a=r.cloneNode(!0);a.rel="preload",a.as="style",a.onload=()=>{a.onload=null,a.rel="stylesheet"};const o=document.createElement("noscript"),s=r.cloneNode(!0);o.appendChild(s),document.head.appendChild(a),document.head.appendChild(o),r.remove()})}setupProgressiveLoading(){const t=document.querySelectorAll("img[data-src]");if("IntersectionObserver"in window){const r=new IntersectionObserver(a=>{a.forEach(o=>{if(o.isIntersecting){const s=o.target;s.src=s.dataset.src||"",s.removeAttribute("data-src"),r.unobserve(s)}})},{rootMargin:"50px 0px",threshold:.01});t.forEach(a=>r.observe(a))}else t.forEach(r=>{const a=r;a.src=a.dataset.src||""})}isSmallResource(t){return t.includes("critical")||t.includes("inline")}getPerformanceMetrics(){return{...this.observedMetrics,score:this.calculatePerformanceScore()}}calculatePerformanceScore(){let t=100;return this.observedMetrics.fcp>2e3?t-=20:this.observedMetrics.fcp>1500&&(t-=10),this.observedMetrics.lcp>2500?t-=25:this.observedMetrics.lcp>2e3&&(t-=15),this.observedMetrics.cls>.1?t-=15:this.observedMetrics.cls>.05&&(t-=8),this.observedMetrics.ttfb>600?t-=10:this.observedMetrics.ttfb>400&&(t-=5),Math.max(t,0)}}const wt={mark:e=>{typeof performance<"u"&&performance.mark&&performance.mark(e)},measure:(e,t,r)=>{if(typeof performance<"u"&&performance.measure)try{performance.measure(e,t,r);const a=performance.getEntriesByName(e);return a[a.length-1]?.duration||0}catch{return 0}return 0},getEntries:e=>typeof performance<"u"&&performance.getEntriesByName?e?performance.getEntriesByName(e):performance.getEntries():[],clearEntries:e=>{typeof performance<"u"&&(e?(performance.clearMeasures?.(e),performance.clearMarks?.(e)):(performance.clearMeasures?.(),performance.clearMarks?.()))}},pu=(e,t=[])=>{x.useEffect(()=>(wt.mark(`${e}-start`),()=>{wt.mark(`${e}-end`),wt.measure(e,`${e}-start`,`${e}-end`)}),[e,t])},fu=e=>{const t=x.useRef(e);return t.current=e,x.useCallback((...r)=>t.current(...r),[])},mu=(e,t,r)=>{const a=x.useRef(t),o=x.useRef(void 0);return x.useMemo(()=>(r&&process.env.NODE_ENV==="development"&&t.some((s,i)=>s!==a.current[i]),a.current=t,o.current=e(),o.current),[e,r,t])},kt=new Map,hu=e=>{const t=kt.get(e)||0;kt.set(e,t+1),x.useEffect(()=>{process.env.NODE_ENV})},bu=()=>Object.fromEntries(kt),yu=()=>kt.clear(),xu=e=>x.lazy(e),vu=(e=.1)=>{const[t,r]=x.useState(new Set),a=x.useRef(null);x.useEffect(()=>(a.current=new IntersectionObserver(s=>{s.forEach(i=>{if(i.isIntersecting){const l=i.target,c=l.dataset.src;c&&(l.src=c,l.onload=()=>{r(d=>new Set(d).add(c))},a.current?.unobserve(l))}})},{threshold:e}),()=>a.current?.disconnect()),[e]);const o=x.useCallback(s=>{s&&a.current&&a.current.observe(s)},[]);return{loadedImages:t,observeImage:o}},wu=e=>{typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(()=>{e().catch(()=>{})}):setTimeout(()=>{e().catch(()=>{})},100)},dn={},ku=e=>{dn[e.name]=e.value,process.env.NODE_ENV},Cu=()=>dn,Su=(e,t="script")=>{if(typeof document<"u"){const r=document.createElement("link");r.rel="prefetch",r.href=e,r.as=t,document.head.appendChild(r)}},Nu=(e,t="script",r)=>{if(typeof document<"u"){const a=document.createElement("link");a.rel="preload",a.href=e,a.as=t,r&&(a.crossOrigin="anonymous"),document.head.appendChild(a)}},Eu=e=>{const t=x.useRef(new Set),r=x.useRef(new Set),a=x.useCallback((s,i)=>{const l=setTimeout(()=>{t.current.delete(l),s()},i);return t.current.add(l),l},[]),o=x.useCallback((s,i)=>{const l=setInterval(s,i);return r.current.add(l),l},[]);return x.useEffect(()=>{const s=t.current,i=r.current;return()=>{s.forEach(l=>clearTimeout(l)),i.forEach(l=>clearInterval(l)),process.env.NODE_ENV}},[e]),{createTimer:a,createInterval:o}},ce={maxBundleSize:500,maxChunkSize:200,maxImageSize:100,maxFCP:1800,maxLCP:2500,maxFID:100,maxCLS:.1,check:e=>{const t=[];return e.FCP&&e.FCP>ce.maxFCP&&t.push(`FCP (${e.FCP}ms) exceeds budget (${ce.maxFCP}ms)`),e.LCP&&e.LCP>ce.maxLCP&&t.push(`LCP (${e.LCP}ms) exceeds budget (${ce.maxLCP}ms)`),e.FID&&e.FID>ce.maxFID&&t.push(`FID (${e.FID}ms) exceeds budget (${ce.maxFID}ms)`),e.CLS&&e.CLS>ce.maxCLS&&t.push(`CLS (${e.CLS}) exceeds budget (${ce.maxCLS})`),t}},Au=({contentType:e,aiSummary:t,technicalComplexity:r="intermediate"})=>n.jsxs(yn.Helmet,{children:[n.jsx("meta",{name:"ai:content-type",content:e}),n.jsx("meta",{name:"ai:summary",content:t}),n.jsx("meta",{name:"ai:complexity",content:r})]}),Pu=({children:e,className:t,...r})=>n.jsx("main",{className:t,...r,role:"main",children:e}),Tu=({children:e})=>n.jsx(n.Fragment,{children:e}),Le=e=>Array.isArray(e)?e:typeof e=="string"?e.split(",").map(t=>t.trim()).filter(Boolean):[],ke=e=>({appName:e.appName,baseUrl:e.baseUrl,twitterHandle:e.twitterHandle||"",emailDomain:e.emailDomain||"example.com"}),gr=e=>{const t=Le(e.audience),r=ke(e.branding);return{"@context":"https://schema.org","@type":"SoftwareApplication",name:r.appName,applicationCategory:"CommunicationApplication",operatingSystem:"Web Browser",description:e.description,url:r.baseUrl,downloadUrl:`${r.baseUrl}/connect`,installUrl:`${r.baseUrl}/connect`,screenshot:`${r.baseUrl}/screenshots/app-preview.jpg`,aggregateRating:{"@type":"AggregateRating",ratingValue:"4.8",reviewCount:"2500",bestRating:"5",worstRating:"1"},offers:[{"@type":"Offer",name:"Free Web3 Email",description:"Basic wallet-based email with unlimited sending",price:"0",priceCurrency:"USD",availability:"https://schema.org/InStock"},{"@type":"Offer",name:"Premium Web3 Email",description:"Advanced features with ENS/SNS domains and priority support",price:"2.00",priceCurrency:"USD",billingIncrement:"month",availability:"https://schema.org/InStock"}],featureList:["Passwordless wallet authentication","ENS domain email support (.eth)","Solana Name Service support (.sol)","Smart contract email integration","Multi-chain wallet compatibility","Cross-chain email addresses","DAO email delegation","Encrypted communication","Web2/Web3 bridge functionality","Point-based reward system"],applicationSubCategory:"Web3 Email Platform",audience:{"@type":"Audience",audienceType:t.join(", "),geographicArea:"Worldwide"},creator:{"@type":"Organization",name:r.appName,url:r.baseUrl},datePublished:"2024-01-01",dateModified:e.lastUpdated?.toISOString()||new Date().toISOString(),version:"1.0",softwareRequirements:"Web3 Wallet (MetaMask, Phantom, etc.)",storageRequirements:"5MB",memoryRequirements:"512MB RAM",supportingData:{blockchainNetworks:["Ethereum","Solana","Polygon","Arbitrum","Optimism"],supportedWallets:["MetaMask","Phantom","WalletConnect","Coinbase Wallet"],smartContractSupport:!0,ensCompatible:!0,snsCompatible:!0}}},pr=e=>{const t=Le(e.keywords),r=Le(e.audience),a=ke(e.branding);return{"@context":"https://schema.org","@type":"TechnicalArticle",headline:e.title,description:e.description,author:{"@type":"Organization",name:a.appName,url:a.baseUrl,logo:{"@type":"ImageObject",url:`${a.baseUrl}/logo.png`}},publisher:{"@type":"Organization",name:a.appName,logo:{"@type":"ImageObject",url:`${a.baseUrl}/logo.png`,width:600,height:600}},datePublished:"2024-01-01T00:00:00Z",dateModified:e.lastUpdated?.toISOString()||new Date().toISOString(),mainEntityOfPage:{"@type":"WebPage","@id":`${a.baseUrl}${location.pathname}`},image:{"@type":"ImageObject",url:`${a.baseUrl}/og-images/technical-guide.jpg`,width:1200,height:630},keywords:t.join(", "),about:[{"@type":"Thing",name:"Web3 Email Platform"},{"@type":"Thing",name:"Blockchain Technology"},{"@type":"Thing",name:"Decentralized Communication"}],audience:{"@type":"Audience",audienceType:r.join(", "),educationalLevel:e.complexity},educationalLevel:e.complexity,proficiencyLevel:e.complexity,learningResourceType:e.contentType,timeRequired:e.readingTime?`PT${e.readingTime}M`:"PT5M",inLanguage:"en",isAccessibleForFree:!0,license:"https://creativecommons.org/licenses/by/4.0/",teaches:e.relatedTopics||["Web3 email setup","Wallet connection process","Blockchain authentication","Smart contract integration"]}},Iu=(e,t)=>{const r=ke(t);return{"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(a=>({"@type":"Question",name:a.question,acceptedAnswer:{"@type":"Answer",text:a.answer,dateCreated:new Date().toISOString(),upvoteCount:Math.floor(Math.random()*50)+10,author:{"@type":"Organization",name:r.appName}},answerCount:1,upvoteCount:Math.floor(Math.random()*100)+20,dateCreated:"2024-01-01T00:00:00Z",category:a.category||"General"}))}},fr=e=>{const t=ke(e.branding);return{"@context":"https://schema.org","@type":"WebPage",name:e.title,description:e.description,url:`${t.baseUrl}${location.pathname}`,primaryImageOfPage:{"@type":"ImageObject",url:`${t.baseUrl}/og-images/ai-optimized.jpg`},significantLink:[`${t.baseUrl}/document`,`${t.baseUrl}/web3-users`,`${t.baseUrl}/web3-projects`,`${t.baseUrl}/connect`],relatedLink:e.relatedTopics?.map(r=>`${t.baseUrl}/search?q=${encodeURIComponent(r)}`)||[],about:{"@type":"Thing",name:"Web3 Email Communication",description:"Blockchain-based email platform using wallet authentication",sameAs:["https://en.wikipedia.org/wiki/Web3","https://en.wikipedia.org/wiki/Blockchain","https://en.wikipedia.org/wiki/Cryptocurrency_wallet"]},mentions:[{"@type":"SoftwareApplication",name:"MetaMask"},{"@type":"SoftwareApplication",name:"Phantom Wallet"},{"@type":"Thing",name:"Ethereum Name Service"},{"@type":"Thing",name:"Solana Name Service"}],isPartOf:{"@type":"WebSite","@id":t.baseUrl,name:t.appName},potentialAction:{"@type":"InteractAction",target:{"@type":"EntryPoint",urlTemplate:`${t.baseUrl}/connect`,actionPlatform:["https://schema.org/DesktopWebPlatform","https://schema.org/MobileWebPlatform"]},name:"Connect Web3 Wallet"}}},un=e=>{const t=Le(e.keywords),r=ke(e.branding);return{"og:title":e.title,"og:description":e.description,"og:type":"website","og:url":`${r.baseUrl}${location.pathname}`,"og:image":`${r.baseUrl}/og-images/${e.category}.jpg`,"og:image:width":"1200","og:image:height":"630","og:image:alt":`${e.title} - ${r.appName}`,"og:site_name":r.appName,"og:locale":"en_US","article:author":`${r.baseUrl}/about`,"article:section":e.category,"article:tag":t.join(","),"article:published_time":"2024-01-01T00:00:00Z","article:modified_time":e.lastUpdated?.toISOString()||new Date().toISOString()}},gn=e=>{const t=ke(e.branding);return{"twitter:card":"summary_large_image","twitter:site":t.twitterHandle||"","twitter:creator":t.twitterHandle||"","twitter:title":e.title,"twitter:description":e.description,"twitter:image":`${t.baseUrl}/twitter-cards/${e.category}.jpg`,"twitter:image:alt":`${e.title} - ${t.appName}`,"twitter:label1":"Category","twitter:data1":e.category,"twitter:label2":"Reading Time","twitter:data2":e.readingTime?`${e.readingTime} min`:"5 min"}},pn=e=>{const t=Le(e.keywords),r=Le(e.audience),a=ke(e.branding);return{"ai:content-type":e.contentType,"ai:complexity":e.complexity,"ai:category":e.category,"ai:audience":r.join(","),"ai:keywords":t.join(","),"ai:reading-time":e.readingTime?.toString()||"5","web3:platform":"Email","web3:networks":"ethereum,solana,polygon","web3:wallets":"metamask,phantom,walletconnect","web3:features":"ens,sns,smart-contracts,multi-chain","llm:context":"Web3 email platform documentation and user guides","llm:domain":"blockchain,cryptocurrency,decentralized-communication","llm:use-case":"email,authentication,wallet-integration,smart-contracts","semantic:topic":e.category,"semantic:intent":"inform,guide,educate","semantic:entities":`${a.appName},Web3,blockchain,email,wallet`,"content:freshness":e.lastUpdated?.toISOString()||new Date().toISOString(),"content:authority":"high","content:expertise":"technical","content:trustworthiness":"verified"}},$u=e=>({structuredData:{product:gr(e),article:pr(e),aiOptimized:fr(e)},openGraph:un(e),twitterCard:gn(e),aiMetaTags:pn(e),jsonLD:[gr(e),pr(e),fr(e)]}),Lu={homepage:{title:"Revolutionary Web3 Email Platform | Wallet-Based Authentication",description:"Transform your email experience - the first Web3 email platform using wallet authentication. No passwords, enhanced security, ENS/SNS domain support, and smart contract integration.",keywords:["Web3 email","blockchain email","wallet authentication","ENS email","SNS email","decentralized email","smart contract integration"],category:"Web3 Platform",audience:["Crypto Users","Web3 Developers","DeFi Users","DAO Members"],complexity:"beginner",contentType:"overview",readingTime:3,relatedTopics:["Web3 authentication","Blockchain communication","Decentralized identity"]},documentation:{title:"Documentation - Complete Web3 Email Setup Guide",description:"Comprehensive documentation for Web3 email platform. Learn wallet connection, ENS/SNS setup, smart contract integration, and advanced features.",keywords:["Web3 email guide","wallet connection","ENS setup","SNS configuration","smart contract email","blockchain documentation"],category:"Technical Documentation",audience:["Developers","Technical Users","Web3 Enthusiasts"],complexity:"intermediate",contentType:"guide",readingTime:15,relatedTopics:["Wallet integration","Blockchain protocols","Email security"]},earnPoints:{title:"How to Earn Points - Web3 Email Rewards Guide",description:"Master the points system. Earn rewards through email activities, referrals, smart contract interactions, and prepare for future token distribution.",keywords:["Web3 rewards","email points","blockchain rewards","referral program","token preparation","crypto incentives"],category:"Rewards Guide",audience:["Token Farmers","Crypto Users","Web3 Users"],complexity:"beginner",contentType:"tutorial",readingTime:8,relatedTopics:["Token economics","Reward systems","Referral marketing"]}},Ou=e=>{const{level:t,text:r,className:a="",id:o,semanticContext:s="section"}=e,i=`h${t}`,l={1:"text-4xl md:text-5xl lg:text-6xl font-bold leading-tight",2:"text-3xl md:text-4xl font-bold leading-tight",3:"text-2xl md:text-3xl font-bold leading-tight",4:"text-xl md:text-2xl font-semibold leading-tight",5:"text-lg md:text-xl font-semibold leading-tight",6:"text-base md:text-lg font-medium leading-tight"},c={"page-title":"text-gray-900 dark:text-white mb-6",section:"text-gray-900 dark:text-white mb-4",subsection:"text-gray-900 dark:text-white mb-3",feature:"text-gray-900 dark:text-white mb-2",benefit:"text-blue-600 dark:text-blue-400 mb-2",step:"text-green-600 dark:text-green-400 mb-2"},d=[l[t],c[s],a].filter(Boolean).join(" "),g=o||r.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"");return x.createElement(i,{id:g,className:d,"aria-level":t},r)},ae={pageTitle:(e,t)=>({level:1,text:e,className:t,semanticContext:"page-title"}),majorSection:(e,t)=>({level:2,text:e,className:t,semanticContext:"section"}),feature:(e,t)=>({level:3,text:e,className:t,semanticContext:"feature"}),benefit:(e,t)=>({level:3,text:e,className:t,semanticContext:"benefit"}),step:(e,t,r)=>({level:3,text:t?`Step ${t}: ${e}`:e,className:r,semanticContext:"step"}),subFeature:(e,t)=>({level:4,text:e,className:t,semanticContext:"feature"})},Mu=e=>{const t=[],r=[],a=e.filter(o=>o.level===1).length;a===0?t.push("Missing H1 tag - every page should have exactly one H1"):a>1&&t.push(`Multiple H1 tags found (${a}) - use only one H1 per page`);for(let o=1;o<e.length;o++){const s=e[o],i=e[o-1];s.level>i.level+1&&t.push(`Heading level jump from H${i.level} to H${s.level} - avoid skipping levels`)}return e.forEach((o,s)=>{o.text.length<3&&t.push(`Heading ${s+1} is too short - use descriptive text`),o.text.length>70&&r.push(`Heading "${o.text.substring(0,30)}..." is long - consider shortening for better SEO`)}),{isValid:t.length===0,errors:t,suggestions:r}},zu={walletConnection:ae.pageTitle("Connect Your Web3 Wallet"),emailBenefits:ae.majorSection("Why Choose Web3 Email?"),securityFeature:ae.feature("Secure & Private"),ensIntegration:ae.feature("ENS Domain Support"),multiChain:ae.feature("Multi-Chain Compatibility"),passwordless:ae.benefit("No Passwords Required"),setupStep1:ae.step("Connect Your Wallet",1),setupStep2:ae.step("Verify Your Identity",2),setupStep3:ae.step("Access Your Emails",3)},Du=[{term:"Web3 Email",definition:"Email system that uses blockchain wallet addresses as authentication instead of traditional passwords",category:"Web3 Communication",synonyms:["blockchain email","decentralized email","crypto email"],relatedTerms:["wallet authentication","ENS email","SNS email"],examples:["vitalik.eth@example.com","alice.sol@example.com"],context:"Web3 email revolutionizes digital communication by eliminating passwords and using cryptographic signatures for authentication"},{term:"Wallet Authentication",definition:"Authentication method using cryptographic signatures from blockchain wallets instead of passwords",category:"Security",synonyms:["wallet-based auth","signature authentication","passwordless authentication"],relatedTerms:["EIP-712","SIWE","message signing"],examples:["MetaMask signature","Phantom wallet auth","WalletConnect login"],context:"Wallet authentication provides superior security through cryptographic proofs that cannot be phished or stolen like passwords"},{term:"ENS Email",definition:"Email addresses using Ethereum Name Service domains (.eth) as identifiers",category:"Naming Systems",synonyms:["Ethereum name email",".eth email"],relatedTerms:["ENS","Ethereum domains","blockchain domains"],examples:["vitalik.eth","ethereum.eth"],context:"ENS emails provide human-readable addresses that resolve to Ethereum wallet addresses"},{term:"SNS Email",definition:"Email addresses using Solana Name Service domains (.sol) as identifiers",category:"Naming Systems",synonyms:["Solana name email",".sol email"],relatedTerms:["SNS","Solana domains","SPL domains"],examples:["anatoly.sol","solana.sol"],context:"SNS emails provide human-readable addresses for Solana ecosystem users"},{term:"Smart Contract Integration",definition:"Ability to send and receive emails triggered by blockchain smart contract events",category:"Blockchain Integration",synonyms:["contract notifications","on-chain email triggers"],relatedTerms:["event listeners","webhooks","contract automation"],examples:["DAO proposal notifications","DeFi alert emails","NFT sale confirmations"],context:"Smart contract integration enables automated communication based on blockchain events"},{term:"Multi-Chain Support",definition:"Compatibility with multiple blockchain networks for wallet authentication and email services",category:"Interoperability",synonyms:["cross-chain support","blockchain agnostic"],relatedTerms:["EVM chains","Solana","Layer 2"],examples:["Ethereum, Polygon, Arbitrum, Solana support"],context:"Multi-chain support ensures users from any blockchain ecosystem can use the email service"},{term:"DAO Email Delegation",definition:"System allowing DAOs to manage email communications through delegated authorities",category:"Governance",synonyms:["governance email","multi-sig email"],relatedTerms:["DAO governance","multi-signature","delegation"],examples:["Treasury notifications","Proposal alerts","Voting reminders"],context:"DAO email delegation enables decentralized organizations to manage communications efficiently"},{term:"Web2/Web3 Bridge",definition:"Technology enabling communication between traditional email systems and blockchain-based email",category:"Interoperability",synonyms:["email bridge","legacy integration"],relatedTerms:["SMTP gateway","email forwarding","protocol bridge"],examples:["Gmail to Web3 email","Outlook integration"],context:"Web2/Web3 bridge ensures compatibility with existing email infrastructure"}],Bu=e=>({"@context":"https://schema.org","@type":"LearningResource",educationalLevel:e.difficulty,learningResourceType:"Technical Documentation",timeRequired:e.estimatedTime?`PT${e.estimatedTime}M`:void 0,teaches:e.learningObjectives,requires:e.prerequisites,about:{"@type":"Thing",name:e.domain,category:e.category,subcategory:e.subcategory},keywords:e.concepts,applicationExample:e.practicalApplications,isRelatedTo:e.relatedConcepts}),Wu=e=>{const t={nodes:e.map(r=>({id:r.term,label:r.term,category:r.category,definition:r.definition})),edges:[]};return e.forEach(r=>{r.relatedTerms?.forEach(a=>{e.find(s=>s.term===a)&&t.edges.push({source:r.term,target:a,relationship:"related_to"})}),r.synonyms?.forEach(a=>{t.edges.push({source:r.term,target:a,relationship:"synonym_of"})})}),t},ju=e=>{const t=[];return e.examples?.forEach(r=>{t.push({text:r,label:e.term,type:"positive",confidence:1})}),e.context&&t.push({text:e.context,label:e.term,type:"contextual",confidence:.8}),t.push({text:`${e.term} is ${e.definition}`,label:e.term,type:"definition",confidence:1}),t},Fu=e=>{const t=[];return e.forEach(r=>{t.push({question:`What is ${r.term}?`,answer:r.definition,category:r.category,difficulty:"basic"}),r.context&&t.push({question:`How does ${r.term} work?`,answer:r.context,category:r.category,difficulty:"intermediate"}),r.examples&&r.examples.length>0&&t.push({question:`What are examples of ${r.term}?`,answer:r.examples.join(", "),category:r.category,difficulty:"basic"}),r.relatedTerms&&r.relatedTerms.length>0&&t.push({question:`What is ${r.term} related to?`,answer:`${r.term} is related to ${r.relatedTerms.join(", ")}`,category:r.category,difficulty:"intermediate"})}),t},_u={homepage:{domain:"Web3 Email Platform",category:"Web3 Communication",concepts:["Web3 email","wallet authentication","passwordless login","blockchain messaging"],prerequisites:["Basic blockchain knowledge","Understanding of crypto wallets"],learningObjectives:["Understand Web3 email concepts","Learn wallet authentication","Explore blockchain communication"],difficulty:"beginner",estimatedTime:5,practicalApplications:["Secure email communication","DAO governance","DeFi notifications"]},documentation:{domain:"Web3 Email Technical Documentation",category:"Technical Guide",concepts:["API integration","smart contracts","wallet connection","email protocols"],prerequisites:["JavaScript/TypeScript","Web3 development basics","REST APIs"],learningObjectives:["Implement Web3 email","Integrate wallet authentication","Build on email API"],difficulty:"intermediate",estimatedTime:30,practicalApplications:["dApp integration","Email automation","Smart contract notifications"]},governance:{domain:"DAO Governance Communication",category:"Governance Tools",concepts:["DAO email","voting notifications","proposal tracking","multi-sig coordination"],prerequisites:["DAO basics","Governance understanding","Multi-signature wallets"],learningObjectives:["Setup DAO email","Configure voting alerts","Manage team communication"],difficulty:"advanced",estimatedTime:20,practicalApplications:["DAO operations","Treasury management","Governance participation"]}};/**
|
|
64
64
|
* @johnqh/mail-box-components
|
|
65
65
|
*
|
|
66
66
|
* A comprehensive React component library and design system.
|
|
@@ -68,4 +68,4 @@ ${e.description}`},label:"Facebook"},{component:Q.LinkedinShareButton,icon:Q.Lin
|
|
|
68
68
|
* @version 1.4.0
|
|
69
69
|
* @author John Qiu Huang
|
|
70
70
|
* @license MIT
|
|
71
|
-
*/const ju={utils:{cn:b}};Object.defineProperty(u,"ArrowLeftIcon",{enumerable:!0,get:()=>E.ArrowLeftIcon}),Object.defineProperty(u,"ArrowRightIcon",{enumerable:!0,get:()=>E.ArrowRightIcon}),Object.defineProperty(u,"Bars3Icon",{enumerable:!0,get:()=>E.Bars3Icon}),Object.defineProperty(u,"BellIcon",{enumerable:!0,get:()=>E.BellIcon}),Object.defineProperty(u,"BellSlashIcon",{enumerable:!0,get:()=>E.BellSlashIcon}),Object.defineProperty(u,"ChartBarIcon",{enumerable:!0,get:()=>E.ChartBarIcon}),Object.defineProperty(u,"CheckCircleIcon",{enumerable:!0,get:()=>E.CheckCircleIcon}),Object.defineProperty(u,"CheckIcon",{enumerable:!0,get:()=>E.CheckIcon}),Object.defineProperty(u,"ChevronDownIcon",{enumerable:!0,get:()=>E.ChevronDownIcon}),Object.defineProperty(u,"ChevronLeftIcon",{enumerable:!0,get:()=>E.ChevronLeftIcon}),Object.defineProperty(u,"ChevronRightIcon",{enumerable:!0,get:()=>E.ChevronRightIcon}),Object.defineProperty(u,"ChevronUpIcon",{enumerable:!0,get:()=>E.ChevronUpIcon}),Object.defineProperty(u,"ClockIcon",{enumerable:!0,get:()=>E.ClockIcon}),Object.defineProperty(u,"CodeBracketIcon",{enumerable:!0,get:()=>E.CodeBracketIcon}),Object.defineProperty(u,"Cog6ToothIcon",{enumerable:!0,get:()=>E.Cog6ToothIcon}),Object.defineProperty(u,"CreditCardIcon",{enumerable:!0,get:()=>E.CreditCardIcon}),Object.defineProperty(u,"DocumentTextIcon",{enumerable:!0,get:()=>E.DocumentTextIcon}),Object.defineProperty(u,"EnvelopeIcon",{enumerable:!0,get:()=>E.EnvelopeIcon}),Object.defineProperty(u,"ExclamationTriangleIcon",{enumerable:!0,get:()=>E.ExclamationTriangleIcon}),Object.defineProperty(u,"EyeSlashIcon",{enumerable:!0,get:()=>E.EyeSlashIcon}),Object.defineProperty(u,"GlobeAltIcon",{enumerable:!0,get:()=>E.GlobeAltIcon}),Object.defineProperty(u,"HomeIcon",{enumerable:!0,get:()=>E.HomeIcon}),Object.defineProperty(u,"InboxIcon",{enumerable:!0,get:()=>E.InboxIcon}),Object.defineProperty(u,"InformationCircleIcon",{enumerable:!0,get:()=>E.InformationCircleIcon}),Object.defineProperty(u,"KeyIcon",{enumerable:!0,get:()=>E.KeyIcon}),Object.defineProperty(u,"MegaphoneIcon",{enumerable:!0,get:()=>E.MegaphoneIcon}),Object.defineProperty(u,"MinusIcon",{enumerable:!0,get:()=>E.MinusIcon}),Object.defineProperty(u,"PaperAirplaneIcon",{enumerable:!0,get:()=>E.PaperAirplaneIcon}),Object.defineProperty(u,"PaperClipIcon",{enumerable:!0,get:()=>E.PaperClipIcon}),Object.defineProperty(u,"PlusIcon",{enumerable:!0,get:()=>E.PlusIcon}),Object.defineProperty(u,"RocketLaunchIcon",{enumerable:!0,get:()=>E.RocketLaunchIcon}),Object.defineProperty(u,"ShieldCheckIcon",{enumerable:!0,get:()=>E.ShieldCheckIcon}),Object.defineProperty(u,"SparklesIcon",{enumerable:!0,get:()=>E.SparklesIcon}),Object.defineProperty(u,"StarIcon",{enumerable:!0,get:()=>E.StarIcon}),Object.defineProperty(u,"TrashIcon",{enumerable:!0,get:()=>E.TrashIcon}),Object.defineProperty(u,"UserGroupIcon",{enumerable:!0,get:()=>E.UserGroupIcon}),Object.defineProperty(u,"XMarkIcon",{enumerable:!0,get:()=>E.XMarkIcon}),Object.defineProperty(u,"CheckCircleIconSolid",{enumerable:!0,get:()=>he.CheckCircleIcon}),Object.defineProperty(u,"CheckIconSolid",{enumerable:!0,get:()=>he.CheckIcon}),Object.defineProperty(u,"ExclamationTriangleIconSolid",{enumerable:!0,get:()=>he.ExclamationTriangleIcon}),Object.defineProperty(u,"StarIconSolid",{enumerable:!0,get:()=>he.StarIcon}),u.AIMeta=Su,u.AITrainingEnhancer=Eu,u.AI_TRAINING_CONFIGS=Wu,u.AddressLabel=Do,u.AddressLink=Uo,u.Alert=Qo,u.AlertDescription=Yo,u.AlertTitle=Ko,u.AnimatedSection=ye,u.Avatar=kd,u.Backdrop=Ld,u.Badge=wd,u.BatchRender=o0,u.BodyText=Dc,u.BorderAccent=gd,u.Breadcrumb=qa,u.BreadcrumbSection=Wd,u.Button=de,u.CTASection=i0,u.CalloutBox=ls,u.CancellableRequest=w0,u.Card=Tt,u.CardContent=os,u.CardFooter=ss,u.CardHeader=ns,u.ChainBadge=Wr,u.CodeBlock=jd,u.CodeDisplay=md,u.CodeExampleBlock=Fd,u.CollapsibleDocumentationTopic=Hd,u.CollapsibleEmailField=Bt,u.ComparisonSection=ps,u.ComponentPreloader=sr,u.ConditionalRender=r0,u.ConfirmationDialog=Gc,u.ContentContainer=bs,u.CopyButton=xd,u.DataTable=ys,u.Divider=bd,u.Dropdown=xs,u.EmailAccountsList=_s,u.EmailInputField=Dt,u.EmailInputGroup=ni,u.EmptyState=Vr,u.ErrorBoundary=Yd,u.ErrorBoundaryLazy=Qd,u.ExpensiveComponent=e0,u.ExternalLink=Ed,u.FadeInScale=es,u.FadeInUp=Ro,u.FeatureBlock=ld,u.FeatureCard=vs,u.FeatureGrid=Ns,u.FileIcon=Pd,u.FlexContainer=Zs,u.FloatingElement=ts,u.FormFieldGroup=at,u.FormSection=sd,u.FreeEmailBanner=rd,u.GradientBanner=dd,u.GradientIconContainer=cd,u.HeroBannerWithBadge=As,u.IconButton=Ad,u.IconContainer=Jc,u.IconText=yd,u.InfoBox=ud,u.InfoCard=is,u.Input=Or,u.KYCLevelCard=Mo,u.KYCStatusBadge=Lo,u.KeyValuePair=Sd,u.Label=$t,u.LanguageSelector=Gd,u.LazyComponent=a0,u.LazyImage=z0,u.LazyLoadQueue=Cr,u.LazyWalletButton=lu,u.LazyWrapper=oo,u.LoadPriority=At,u.LoadingOptimizer=m0,u.LoadingOverlay=Od,u.LoadingState=ri,u.Logo=Dd,u.MasterDetailLayout=u0,u.MasterListItem=d0,u.MenuItem=$d,u.MetricsGrid=Ts,u.Modal=_a,u.ModalContent=Ha,u.ModalFooter=Va,u.ModalHeader=Hc,u.NoContent=ai,u.OptimizedAPIClient=x0,u.OptimizedImage=s0,u.OptimizedRoutePreloader=p0,u.PageContainer=Rs,u.PageHeader=c0,u.PageSectionHeader=vd,u.PageTitle=$c,u.Pagination=Td,u.PerformanceBoundary=n0,u.PerformanceOptimizer=g0,u.PlatformSpecificComponents=G0,u.PriorityLoader=Sr,u.ProcessSteps=Is,u.ProgressBar=hd,u.PromotionalBanner=Vd,u.PullToRefresh=Ls,u.RouteBasedLazyLoader=or,u.SafeAppWrapper=Xd,u.Section=ti,u.SectionBadge=Ic,u.SectionHeader=Os,u.SectionTitle=Mc,u.SecurityProvider=Zd,u.Select=Ot,u.SelectContent=et,u.SelectField=ii,u.SelectGroup=$s,u.SelectItem=tt,u.SelectLabel=zr,u.SelectScrollDownButton=zt,u.SelectScrollUpButton=Mt,u.SelectSeparator=Dr,u.SelectTrigger=Re,u.SelectValue=Mr,u.SemanticHTML=Nu,u.Separator=Md,u.SettingsList=Vs,u.SkeletonLoader=pd,u.SmartContent=_c,u.SmartLink=ar,u.SmartWalletProviders=su,u.Spinner=rt,u.StandardPageLayout=l0,u.StatCard=nd,u.StatDisplay=fd,u.StatusBadge=Ws,u.StatusIndicator=ci,u.StepIndicator=Cd,u.StepList=Kd,u.SubscriptionGatedComponents=U0,u.SumsubWebSDK=$o,u.Switch=Br,u.SystemStatusIndicator=Pc,u.TableOfContents=zs,u.Tabs=qs,u.TabsContent=Hr,u.TabsList=Fr,u.TabsTrigger=_r,u.Tag=Id,u.TextAreaField=si,u.TextField=oi,u.TextLink=Wc,u.Tooltip=Nd,u.TrackedButton=qd,u.TrackedLink=Ud,u.UseCaseGrid=Us,u.VirtualListItem=t0,u.WEB3_CONCEPTS=Ou,u.WEB3_EMAIL_HEADINGS=$u,u.WEB3_HEADING_PATTERNS=ae,u.WalletIcon=zd,u.WalletPreloader=qe,u.addResourceHint=lo,u.aiOptimizationPresets=nu,u.appStorage=go,u.autoConnectWalletBrowser=ho,u.batchDOMUpdates=En,u.bundleAnalysis=Ce,u.buttonVariants=$r,u.cacheHeaders=P0,u.cacheUtils=k0,u.checkPerformanceBudget=wo,u.clearComponentCache=D0,u.clearConditionalCache=Y0,u.clearRenderCounts=fu,u.cn=b,u.combineClassNames=b,u.conditionalCSS=E0,u.convertFileSize=So,u.createAIMetaTags=un,u.createAIOptimizedSchema=gr,u.createAdvancedLazyComponent=$0,u.createBreadcrumb=eo,u.createCSSVariables=vn,u.createComparisonData=It,u.createConditionalImports=Gn,u.createConditionalLazyComponent=q0,u.createEmailComparisonData=fs,u.createEnhancedFAQSchema=Au,u.createEnhancedOpenGraph=cn,u.createEnhancedTwitterCard=dn,u.createFeature=Lt,u.createLazyComponent=en,u.createLazyComponentFactory=hu,u.createLazyRoute=so,u.createLazyWalletProvider=cr,u.createLibraryImports=H0,u.createMemoComponent=Jd,u.createOptimizedStyles=bn,u.createProgressiveComponent=no,u.createSecurityFeatures=Es,u.createSelectiveExports=Kn,u.createSelectiveMemoComponent=Rd,u.createSemanticHeading=Iu,u.createSimpleStorage=fo,u.createTechnicalArticleSchema=ur,u.createTreeShakingConfig=Yn,u.createUIComponents=_0,u.createWeb3ProductSchema=dr,u.criticalPathOptimizer=cu,u.cspDirectives=Ja,u.cssOptimization=wr,u.deadCodeElimination=ke,u.default=ju,u.defaultPerformanceBudget=Ar,u.detectAvailableWallets=lr,u.detectWalletBrowser=Nr,u.exportPerformanceData=ko,u.formatFileSize=Co,u.generateAIMetaTags=R0,u.generateAIMetadata=Mu,u.generateAIStructuredData=tu,u.generateAdvancedSEO=Pu,u.generateCSP=Ra,u.generateConceptGraph=zu,u.generateContentRelationships=eu,u.generateEntityRecognition=on,u.generateImageSEO=Mn,u.generatePerformanceTrackingSchema=au,u.generatePictureElement=Fn,u.generatePlaceholder=qn,u.generateQAPairs=Bu,u.generateSemanticMarkup=nn,u.generateSizes=Dn,u.generateSocialImageMeta=Bn,u.generateSrcSet=zn,u.generateTopicClustering=sn,u.generateTrainingExamples=Du,u.getActiveNavItem=Rn,u.getConditionalStats=Q0,u.getEnvironmentType=Xa,u.getLazyLoadingStats=B0,u.getOptimalImageFormat=jn,u.getPerformanceMonitor=Je,u.getPreloadingStats=J0,u.getRenderCounts=pu,u.getUINavigationService=J,u.getWebVitals=vu,u.initializeAdvancedPreloading=Z0,u.initializePerformanceMonitoring=yo,u.initializePreloading=V0,u.inlineCriticalStyles=Pn,u.isLocalhost=Ya,u.isNetworkAccess=Qa,u.isWalletBrowser=Ka,u.isWebEnvironment=Za,u.lazyLoadQueue=co,u.lazyWithPreload=ao,u.lazyWithRetry=ro,u.loadCSS=S0,u.loadCriticalCSS=yn,u.loadNonCriticalCSS=xn,u.measureAsyncOperation=vo,u.measureImagePerformance=Vn,u.navigationHelper=be,u.navigationUtils=to,u.optimizeClassNames=An,u.optimizeContainment=Sn,u.optimizeFlex=Ln,u.optimizeGrid=In,u.optimizeWillChange=Nn,u.optimizedFetch=Ga,u.pageSEOConfigs=Tu,u.parseFileSize=No,u.performanceBudget=ce,u.performanceUtils=vt,u.prefersReducedMotion=br,u.prefetchResource=wu,u.preloadComponent=F0,u.preloadImage=_n,u.preloadResource=ku,u.preloadRoute=yu,u.preserveAspectRatio=Un,u.priorityLoader=uo,u.reportWebVitals=xu,u.routeConfig=tn,u.securityHeaders=A0,u.setupCSPReporting=T0,u.setupLazyLoading=Wn,u.setupProgressiveLoading=Hn,u.shouldEnableWallet=C0,u.smartLinkVariants=yt,u.supportsAVIF=xr,u.supportsCSSImports=N0,u.supportsWebP=yr,u.themeStorage=mo,u.useClickOutside=Pr,u.useCodeLoader=Tr,u.useComponentPerformance=Er,u.useCopyToClipboard=Ir,u.useDebugMemo=gu,u.useDynamicImport=io,u.useFormSubmission=Eo,u.useImageLazyLoading=bu,u.useLazyLoad=kr,u.useLazyStyles=Tn,u.useLocation=Zn,u.useMediaQuery=$n,u.useMemoryLeakDetection=Cu,u.useMultipleCopyToClipboard=Po,u.useNavigation=Xn,u.useOptimizedTheme=On,u.useOptimizedWallets=iu,u.usePerformanceMark=du,u.useReducedMotion=Cn,u.useRenderCount=mu,u.useResponsiveStyles=kn,u.useSearchParams=Jn,u.useSmartLinks=jc,u.useStableCallback=uu,u.useToggle=Ao,u.utils=vr,u.validateHeadingStructure=Lu,u.walletStorage=po,u.web3SecurityNotes=I0,u.withPerformanceTracking=xo,u.withRetry=v0,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
71
|
+
*/const Hu={utils:{cn:y}};Object.defineProperty(u,"ArrowLeftIcon",{enumerable:!0,get:()=>E.ArrowLeftIcon}),Object.defineProperty(u,"ArrowRightIcon",{enumerable:!0,get:()=>E.ArrowRightIcon}),Object.defineProperty(u,"Bars3Icon",{enumerable:!0,get:()=>E.Bars3Icon}),Object.defineProperty(u,"BellIcon",{enumerable:!0,get:()=>E.BellIcon}),Object.defineProperty(u,"BellSlashIcon",{enumerable:!0,get:()=>E.BellSlashIcon}),Object.defineProperty(u,"ChartBarIcon",{enumerable:!0,get:()=>E.ChartBarIcon}),Object.defineProperty(u,"CheckCircleIcon",{enumerable:!0,get:()=>E.CheckCircleIcon}),Object.defineProperty(u,"CheckIcon",{enumerable:!0,get:()=>E.CheckIcon}),Object.defineProperty(u,"ChevronDownIcon",{enumerable:!0,get:()=>E.ChevronDownIcon}),Object.defineProperty(u,"ChevronLeftIcon",{enumerable:!0,get:()=>E.ChevronLeftIcon}),Object.defineProperty(u,"ChevronRightIcon",{enumerable:!0,get:()=>E.ChevronRightIcon}),Object.defineProperty(u,"ChevronUpIcon",{enumerable:!0,get:()=>E.ChevronUpIcon}),Object.defineProperty(u,"ClockIcon",{enumerable:!0,get:()=>E.ClockIcon}),Object.defineProperty(u,"CodeBracketIcon",{enumerable:!0,get:()=>E.CodeBracketIcon}),Object.defineProperty(u,"Cog6ToothIcon",{enumerable:!0,get:()=>E.Cog6ToothIcon}),Object.defineProperty(u,"CreditCardIcon",{enumerable:!0,get:()=>E.CreditCardIcon}),Object.defineProperty(u,"DocumentTextIcon",{enumerable:!0,get:()=>E.DocumentTextIcon}),Object.defineProperty(u,"EnvelopeIcon",{enumerable:!0,get:()=>E.EnvelopeIcon}),Object.defineProperty(u,"ExclamationTriangleIcon",{enumerable:!0,get:()=>E.ExclamationTriangleIcon}),Object.defineProperty(u,"EyeSlashIcon",{enumerable:!0,get:()=>E.EyeSlashIcon}),Object.defineProperty(u,"GlobeAltIcon",{enumerable:!0,get:()=>E.GlobeAltIcon}),Object.defineProperty(u,"HomeIcon",{enumerable:!0,get:()=>E.HomeIcon}),Object.defineProperty(u,"InboxIcon",{enumerable:!0,get:()=>E.InboxIcon}),Object.defineProperty(u,"InformationCircleIcon",{enumerable:!0,get:()=>E.InformationCircleIcon}),Object.defineProperty(u,"KeyIcon",{enumerable:!0,get:()=>E.KeyIcon}),Object.defineProperty(u,"MegaphoneIcon",{enumerable:!0,get:()=>E.MegaphoneIcon}),Object.defineProperty(u,"MinusIcon",{enumerable:!0,get:()=>E.MinusIcon}),Object.defineProperty(u,"PaperAirplaneIcon",{enumerable:!0,get:()=>E.PaperAirplaneIcon}),Object.defineProperty(u,"PaperClipIcon",{enumerable:!0,get:()=>E.PaperClipIcon}),Object.defineProperty(u,"PlusIcon",{enumerable:!0,get:()=>E.PlusIcon}),Object.defineProperty(u,"RocketLaunchIcon",{enumerable:!0,get:()=>E.RocketLaunchIcon}),Object.defineProperty(u,"ShieldCheckIcon",{enumerable:!0,get:()=>E.ShieldCheckIcon}),Object.defineProperty(u,"SparklesIcon",{enumerable:!0,get:()=>E.SparklesIcon}),Object.defineProperty(u,"StarIcon",{enumerable:!0,get:()=>E.StarIcon}),Object.defineProperty(u,"TrashIcon",{enumerable:!0,get:()=>E.TrashIcon}),Object.defineProperty(u,"UserGroupIcon",{enumerable:!0,get:()=>E.UserGroupIcon}),Object.defineProperty(u,"XMarkIcon",{enumerable:!0,get:()=>E.XMarkIcon}),Object.defineProperty(u,"CheckCircleIconSolid",{enumerable:!0,get:()=>he.CheckCircleIcon}),Object.defineProperty(u,"CheckIconSolid",{enumerable:!0,get:()=>he.CheckIcon}),Object.defineProperty(u,"ExclamationTriangleIconSolid",{enumerable:!0,get:()=>he.ExclamationTriangleIcon}),Object.defineProperty(u,"StarIconSolid",{enumerable:!0,get:()=>he.StarIcon}),u.AIMeta=Au,u.AITrainingEnhancer=Tu,u.AI_TRAINING_CONFIGS=_u,u.AddressLabel=Wo,u.AddressLink=Ko,u.Alert=Zo,u.AlertDescription=Xo,u.AlertTitle=Qo,u.AnimatedSection=ye,u.Avatar=Sd,u.Backdrop=Od,u.Badge=Cd,u.BatchRender=i0,u.BodyText=Wc,u.BorderAccent=fd,u.Breadcrumb=Ga,u.BreadcrumbSection=Fd,u.Button=de,u.CTASection=c0,u.CalloutBox=ds,u.CancellableRequest=C0,u.Card=It,u.CardContent=is,u.CardFooter=ls,u.CardHeader=ss,u.ChainBadge=Fr,u.CodeBlock=_d,u.CodeDisplay=md,u.CodeExampleBlock=Hd,u.CollapsibleDocumentationTopic=Vd,u.CollapsibleEmailField=Wt,u.ComparisonSection=hs,u.ComponentPreloader=lr,u.ConditionalRender=n0,u.ConfirmationDialog=Yc,u.ContentContainer=xs,u.CopyButton=wd,u.DataTable=vs,u.Divider=xd,u.Dropdown=ws,u.EmailAccountsList=Us,u.EmailInputField=Bt,u.EmailInputGroup=si,u.EmptyState=qr,u.ErrorBoundary=Xd,u.ErrorBoundaryLazy=Zd,u.ExpensiveComponent=r0,u.ExternalLink=Pd,u.FadeInScale=rs,u.FadeInUp=ts,u.FeatureBlock=dd,u.FeatureCard=ks,u.FeatureGrid=As,u.FileIcon=Id,u.FlexContainer=Rs,u.FloatingElement=as,u.FormFieldGroup=nt,u.FormSection=ld,u.FreeEmailBanner=nd,u.GradientBanner=gd,u.GradientIconContainer=ud,u.HeroBannerWithBadge=Ts,u.IconButton=Td,u.IconContainer=ed,u.IconText=vd,u.InfoBox=pd,u.InfoCard=cs,u.Input=zr,u.KYCLevelCard=Do,u.KYCStatusBadge=Oo,u.KeyValuePair=Ed,u.Label=Ot,u.LanguageSelector=Yd,u.LazyComponent=o0,u.LazyImage=W0,u.LazyLoadQueue=Nr,u.LazyWalletButton=uu,u.LazyWrapper=io,u.LoadPriority=Pt,u.LoadingOptimizer=m0,u.LoadingOverlay=zd,u.LoadingState=ni,u.Logo=Wd,u.MasterDetailLayout=p0,u.MasterListItem=g0,u.MenuItem=Md,u.MetricsGrid=$s,u.Modal=Ua,u.ModalContent=Va,u.ModalFooter=qa,u.ModalHeader=Vc,u.NoContent=oi,u.OptimizedAPIClient=w0,u.OptimizedImage=l0,u.OptimizedRoutePreloader=h0,u.PageContainer=ti,u.PageHeader=u0,u.PageSectionHeader=kd,u.PageTitle=Mc,u.Pagination=$d,u.PerformanceBoundary=s0,u.PerformanceOptimizer=f0,u.PlatformSpecificComponents=Q0,u.PriorityLoader=Er,u.ProcessSteps=Ls,u.ProgressBar=yd,u.PromotionalBanner=qd,u.PullToRefresh=Os,u.RouteBasedLazyLoader=ir,u.SafeAppWrapper=Jd,u.Section=ai,u.SectionBadge=Lc,u.SectionHeader=zs,u.SectionTitle=Dc,u.SecurityProvider=Rd,u.Select=Mt,u.SelectContent=tt,u.SelectField=ci,u.SelectGroup=Ms,u.SelectItem=rt,u.SelectLabel=Br,u.SelectScrollDownButton=Dt,u.SelectScrollUpButton=zt,u.SelectSeparator=Wr,u.SelectTrigger=et,u.SelectValue=Dr,u.SemanticHTML=Pu,u.Separator=Dd,u.SettingsList=qs,u.SkeletonLoader=hd,u.SmartContent=Uc,u.SmartLink=nr,u.SmartWalletProviders=cu,u.Spinner=at,u.StandardPageLayout=d0,u.StatCard=sd,u.StatDisplay=bd,u.StatusBadge=Fs,u.StatusIndicator=ui,u.StepIndicator=Nd,u.StepList=Qd,u.SubscriptionGatedComponents=Y0,u.SumsubWebSDK=Mo,u.Switch=jr,u.SystemStatusIndicator=Ic,u.TableOfContents=Bs,u.Tabs=Gs,u.TabsContent=Vr,u.TabsList=Hr,u.TabsTrigger=Ur,u.Tag=Ld,u.TextAreaField=li,u.TextField=ii,u.TextLink=Fc,u.Tooltip=Ad,u.TrackedButton=Gd,u.TrackedLink=Kd,u.UseCaseGrid=Ks,u.VirtualListItem=a0,u.WEB3_CONCEPTS=Du,u.WEB3_EMAIL_HEADINGS=zu,u.WEB3_HEADING_PATTERNS=ae,u.WalletIcon=Bd,u.WalletPreloader=qe,u.addResourceHint=uo,u.aiOptimizationPresets=iu,u.appStorage=fo,u.autoConnectWalletBrowser=yo,u.batchDOMUpdates=Pn,u.bundleAnalysis=Se,u.buttonVariants=Mr,u.cacheHeaders=$0,u.cacheUtils=S0,u.checkPerformanceBudget=Co,u.clearComponentCache=j0,u.clearConditionalCache=Z0,u.clearRenderCounts=yu,u.cn=y,u.combineClassNames=y,u.conditionalCSS=P0,u.convertFileSize=Eo,u.createAIMetaTags=pn,u.createAIOptimizedSchema=fr,u.createAdvancedLazyComponent=z0,u.createBreadcrumb=ro,u.createCSSVariables=kn,u.createComparisonData=$t,u.createConditionalImports=Yn,u.createConditionalLazyComponent=K0,u.createEmailComparisonData=bs,u.createEnhancedFAQSchema=Iu,u.createEnhancedOpenGraph=un,u.createEnhancedTwitterCard=gn,u.createFeature=Lt,u.createLazyComponent=rn,u.createLazyComponentFactory=xu,u.createLazyRoute=lo,u.createLazyWalletProvider=ur,u.createLibraryImports=q0,u.createMemoComponent=e0,u.createOptimizedStyles=xn,u.createProgressiveComponent=so,u.createSecurityFeatures=Ps,u.createSelectiveExports=Qn,u.createSelectiveMemoComponent=t0,u.createSemanticHeading=Ou,u.createSimpleStorage=bo,u.createTechnicalArticleSchema=pr,u.createTreeShakingConfig=Xn,u.createUIComponents=V0,u.createWeb3ProductSchema=gr,u.criticalPathOptimizer=gu,u.cspDirectives=T0,u.cssOptimization=Cr,u.deadCodeElimination=Ce,u.default=Hu,u.defaultPerformanceBudget=Tr,u.detectAvailableWallets=dr,u.detectWalletBrowser=Ar,u.exportPerformanceData=So,u.formatFileSize=No,u.generateAIMetaTags=ru,u.generateAIMetadata=Bu,u.generateAIStructuredData=nu,u.generateAdvancedSEO=$u,u.generateCSP=en,u.generateCSPDirectives=or,u.generateConceptGraph=Wu,u.generateContentRelationships=au,u.generateEntityRecognition=ln,u.generateImageSEO=Dn,u.generatePerformanceTrackingSchema=su,u.generatePictureElement=Hn,u.generatePlaceholder=Gn,u.generateQAPairs=Fu,u.generateSemanticMarkup=sn,u.generateSizes=Wn,u.generateSocialImageMeta=jn,u.generateSrcSet=Bn,u.generateTopicClustering=cn,u.generateTrainingExamples=ju,u.getActiveNavItem=to,u.getConditionalStats=J0,u.getEnvironmentType=Ja,u.getLazyLoadingStats=F0,u.getOptimalImageFormat=_n,u.getPerformanceMonitor=Re,u.getPreloadingStats=tu,u.getRenderCounts=bu,u.getSecurityHeaders=tn,u.getUINavigationService=J,u.getWebVitals=Cu,u.initializeAdvancedPreloading=eu,u.initializePerformanceMonitoring=vo,u.initializePreloading=G0,u.inlineCriticalStyles=In,u.isLocalhost=Xa,u.isNetworkAccess=Za,u.isWalletBrowser=Qa,u.isWebEnvironment=Ra,u.lazyLoadQueue=go,u.lazyWithPreload=oo,u.lazyWithRetry=no,u.loadCSS=E0,u.loadCriticalCSS=vn,u.loadNonCriticalCSS=wn,u.measureAsyncOperation=ko,u.measureImagePerformance=qn,u.navigationHelper=be,u.navigationUtils=ao,u.optimizeClassNames=Tn,u.optimizeContainment=En,u.optimizeFlex=On,u.optimizeGrid=Ln,u.optimizeWillChange=An,u.optimizedFetch=Ya,u.pageSEOConfigs=Lu,u.parseFileSize=Ao,u.performanceBudget=ce,u.performanceUtils=wt,u.prefersReducedMotion=xr,u.prefetchResource=Su,u.preloadComponent=U0,u.preloadImage=Un,u.preloadResource=Nu,u.preloadRoute=wu,u.preserveAspectRatio=Kn,u.priorityLoader=po,u.reportWebVitals=ku,u.routeConfig=an,u.securityHeaders=I0,u.setupCSPReporting=L0,u.setupLazyLoading=Fn,u.setupProgressiveLoading=Vn,u.shouldEnableWallet=N0,u.smartLinkVariants=xt,u.supportsAVIF=wr,u.supportsCSSImports=A0,u.supportsWebP=vr,u.themeStorage=mo,u.useClickOutside=Ir,u.useCodeLoader=$r,u.useComponentPerformance=Pr,u.useCopyToClipboard=Lr,u.useDebugMemo=mu,u.useDynamicImport=co,u.useFormSubmission=Po,u.useImageLazyLoading=vu,u.useLazyLoad=Sr,u.useLazyStyles=$n,u.useLocation=Rn,u.useMediaQuery=Mn,u.useMemoryLeakDetection=Eu,u.useMultipleCopyToClipboard=Io,u.useNavigation=Jn,u.useOptimizedTheme=zn,u.useOptimizedWallets=du,u.usePerformanceMark=pu,u.useReducedMotion=Nn,u.useRenderCount=hu,u.useResponsiveStyles=Sn,u.useSearchParams=eo,u.useSmartLinks=_c,u.useStableCallback=fu,u.useToggle=To,u.utils=kr,u.validateHeadingStructure=Mu,u.walletStorage=ho,u.web3SecurityNotes=O0,u.withPerformanceTracking=wo,u.withRetry=k0,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|