PageSourceSearch

https://www.shadcn.io/_next/static/chunks/14hwo9n3g10ss.js

js shadcn.io collected 2026-09-25 20:13:11 UTC 61,397 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,1587392,e=>{"use strict";var n=e.i(7843476),t=e.i(4522016),r=e.i(7670312);e.s(["default",0,function(){var e=new Date().getFullYear();return(0,n.jsxs)("footer",{className:"flex w-full flex-col",itemScope:!0,itemType:"https://schema.org/WPFooter",children:[(0,n.jsxs)("div",{className:"mx-auto w-full max-w-[1400px] border-t border-dashed px-4 py-12 min-[1400px]:border-x min-[1800px]:max-w-[1536px] sm:px-8 sm:py-16",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center gap-4 mb-10",itemScope:!0,itemType:"https://schema.org/Organization",children:[(0,n.jsxs)(t.default,{"aria-label":"Go to shadcn.io homepage - Production-ready React UI components and blocks",href:"/",itemProp:"url",children:[(0,n.jsx)(r.default,{}),(0,n.jsx)("meta",{content:"shadcn.io",itemProp:"name"})]}),(0,n.jsx)("p",{className:"text-base text-muted-foreground text-center max-w-md",itemProp:"description",children:"Production-ready UI blocks and components for React and Next.js developers. Thousands of copy-paste ready components built with Tailwind CSS."})]}),(0,n.jsxs)("nav",{"aria-label":"Footer navigation",className:"grid gap-8 grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-7 text-center sm:text-left",children:[(0,n.jsxs)("section",{"aria-labelledby":"footer-products",className:"flex flex-col gap-4",children:[(0,n.jsx)("h2",{className:"text-base font-semibold",id:"footer-products",children:"Products"}),(0,n.jsx)("nav",{"aria-label":"Product navigation links",children:(0,n.jsxs)("ul",{className:"space-y-3 text-muted-foreground",children:[(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Browse production-ready React UI blocks and components",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"/blocks",title:"React UI Blocks - Copy-paste ready components",children:"Blocks"})}),(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Browse shadcn/ui component patterns and examples",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"/examples",title:"Component Patterns - shadcn/ui examples and variations",children:"Patterns"})}),(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Browse customizable themes for shadcn/ui and Tailwind CSS",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"/theme",title:"Themes - Customizable color schemes for your React app",children:"Themes"})}),(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Browse icon libraries compatible with React and shadcn/ui",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"/icons",title:"Icons - Lucide, Heroicons, and more icon libraries",children:"Icons"})})]})})]}),(0,n.jsxs)("section",{"aria-labelledby":"footer-resources",className:"flex flex-col gap-4",children:[(0,n.jsx)("h2",{className:"text-base font-semibold",id:"footer-resources",children:"Resources"}),(0,n.jsx)("nav",{"aria-label":"Resource navigation links",children:(0,n.jsxs)("ul",{className:"space-y-3 text-muted-foreground",children:[(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Browse curated collection of shadcn/ui components, tools, and resources",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"/awesome",title:"Awesome shadcn/ui - Curated community resources",children:"Awesome"})}),(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Browse color palettes and generators for Tailwind CSS",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"/colors",title:"Colors - Color palettes for Tailwind CSS projects",children:"Colors"})}),(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Browse animation easing functions and timing curves",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"/easings",title:"Easings - Animation timing functions for smooth transitions",children:"Easings"})}),(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Browse reusable React hooks for c
1ommon functionality",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"/hooks",title:"React Hooks - Reusable hooks for state, effects, and more",children:"Hooks"})})]})})]}),(0,n.jsxs)("section",{"aria-labelledby":"footer-icons",className:"flex flex-col gap-4",children:[(0,n.jsx)("h2",{className:"text-base font-semibold",id:"footer-icons",children:"React Icons"}),(0,n.jsx)("nav",{"aria-label":"Icon library navigation links",children:(0,n.jsxs)("ul",{className:"space-y-3 text-muted-foreground",children:[(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Browse Lucide icons - Beautiful and consistent icon library",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"/icons/lucide",title:"Lucide Icons - Open source icon library",children:"Lucide"})}),(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Browse Heroicons - Icons by the makers of Tailwind CSS",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"/icons/heroicons",title:"Heroicons - Beautiful hand-crafted SVG icons",children:"Heroicons"})}),(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Browse Ant Design icons - Enterprise-level icon library",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"/icons/ant-design",title:"Ant Design Icons - Enterprise UI icon set",children:"Ant Design"})}),(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Browse Akar Icons - Perfectly rounded icon library",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"/icons/akar-icons",title:"Akar Icons - Rounded icon set for modern UIs",children:"Akar Icons"})})]})})]}),(0,n.jsxs)("section",{"aria-labelledby":"footer-company",className:"flex flex-col gap-4",children:[(0,n.jsx)("h2",{className:"text-base font-semibold",id:"footer-company",children:"Company"}),(0,n.jsx)("nav",{"aria-label":"Company navigation links",children:(0,n.jsxs)("ul",{className:"space-y-3 text-muted-foreground",children:[(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"View shadcn.io pricing plans and subscription options",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"/pricing",title:"Pricing - Plans for individuals and teams",children:"Pricing"})}),(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"View shadcn.io license information and usage terms",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"/license",title:"License - Usage rights and permissions",children:"License"})}),(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Contact shadcn.io support team",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"/dashboard/contact",title:"Contact - Get in touch with our team",children:"Contact"})})]})})]}),(0,n.jsxs)("section",{"aria-labelledby":"footer-community",className:"flex flex-col gap-4",children:[(0,n.jsx)("h2",{className:"text-base font-semibold",id:"footer-community",children:"Community"}),(0,n.jsx)("nav",{"aria-label":"Community navigation links",children:(0,n.jsxs)("ul",{className:"space-y-3 text-muted-foreground",children:[(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Join shadcn.io Discord community for React developers (opens in new tab)",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"https://discord.com/invite/Z9NVtNE7bj",rel:"noopener noreferrer",target:"_blank",title:"Discord - Join our developer community",children:"Discord"})}),(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"View shadcn.io open source repository on GitHub (opens in new tab)",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"https://github.com/shadcnio/react-shadcn-components",rel:"noopener noreferrer",target:"_blank",title:"GitHub - View source code and contribute",children:"GitHub"})}),(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Join shadcn.io affiliate program and earn commissions (opens in new tab)",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"https://partners.dub.co/shadcnio",rel:"noopener noreferrer",target:"_blank",title:"Affiliates - Earn commissions promoting shadcn.io",children:"Affiliates"})})]})})]}),(0,n.jsxs)("section",{"aria-labelledby":"footer-legal",className:"flex flex-col gap-4",children:[(0,n.jsx)("h2",{className:"text-base font-semibold",id:"footer-legal",children:"Legal"}),(0,n.jsx)("nav",{"aria-label":"Legal navigation links",children:(0,n.jsxs)("ul",{className:"space-y-3 text-muted-foreground",children:[(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Read shadcn.io privacy policy",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"/privacy",title:"Privacy Policy - How we handle your data",children:"Privacy"})}),(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Read shadcn.io terms of service",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"/terms",title:"Terms of Service - Usage agreement",children:"Terms"})})]})})]}),(0,n.jsxs)("section",{"aria-labelledby":"footer-partners",className:"flex flex-col gap-4",children:[(0,n.jsx)("h2",{className:"text-base font-semibold",id:"footer-partners",children:"Partners"}),(0,n.jsx)("nav",{"aria-label":"Partner navigation links",children:(0,n.jsxs)("ul",{className:"space-y-3 text-muted-foreground",children:[(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Visit Neobrutalism - neobrutalism UI components (opens in new tab)",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"https://neobrutalism.com",rel:"noopener noreferrer",target:"_blank",title:"Neobrutalism - Neobrutalism UI components",children:"Neobrutalism"})}),(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Visit GrokBots - ready-to-copy Grok bot prompts (opens in new tab)",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"https://grokbots.ai",rel:"noopener noreferrer",target:"_blank",title:"GrokBots - Ready-to-copy Grok bot prompts",children:"GrokBots"})}),(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Visit image.dev - convert, compress, and resize images in the browser (opens in new tab)",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"https://image.dev",rel:"noopener noreferrer",target:"_blank",title:"image.dev - Browser image converter",children:"image.dev"})}),(0,n.jsx)("li",{children:(0,n.jsx)(t.default,{"aria-label":"Visit NimiqHub - Nimiq blockchain explorer (opens in new tab)",className:"text-base hover:text-primary hover:underline transition-all py-1 inline-block",href:"https://nimiqhub.com",rel:"noopener noreferrer",target:"_blank",title:"NimiqHub - Nimiq blockchain explorer",children:"NimiqHub"})})]})})]})]})]}),(0,n.jsx)("div",{className:"w-full border-t border-dashed",children:(0,n.jsxs)("div",{className:"text-muted-foreground mx-auto flex w-full max-w-[1400px] items-center justify-between gap-5 border-dashed px-8 py-6 pb-24 text-center max-lg:flex-col min-[1400px]:border-x min-[1800px]:max-w-[1536px]",children:[(0,n.jsxs)("p",{className:"text-base",children:[(0,n.jsxs)("span",{children:["© ",e]})," ",(0,n.jsx)(t.default,{"aria-label":"Go to shadcn.io homepage",className:"text-foreground font-medium hover:text-primary hover:underline transition-all",href:"/",title:"shadcn.io - React UI Components",children:"shadcn.io"})," ",(0,n.jsx)("span",{children:"• Community-driven resource, not affiliated with shadcn/ui"})]}),(0,n.jsxs)("p",{className:"text-base",children:[(0,n.jsx)("span",{children:"Built by"})," ",(0,n.jsx)(t.default,{"aria-label":"Visit Azencot LLC website - Web development agency (opens in new tab)",className:"text-foreground font-medium hover:text-primary hover:underline transition-all",href:"https://www.azencot.com",rel:"noopener noreferrer",target:"_blank",title:"Azencot LLC - Web Development Agency",children:"Azencot LLC"})]})]})})]})}])},7670312,e=>{"use strict";
1var n=e.i(7843476),t=e.i(120786),r=e.i(1092808);let a=function(e){return(0,n.jsxs)("svg",(0,r._)((0,t._)({fill:"none",height:"1em",viewBox:"0 0 324 323",width:"1em",xmlns:"http://www.w3.org/2000/svg"},e),{children:[(0,n.jsx)("rect",{fill:"black",height:"323",rx:"161.5",width:"323",x:"0.5"}),(0,n.jsx)("circle",{cx:"162",cy:"161.5",fill:"white",r:"60"})]}))};var i=e.i(9647163);e.s(["default",0,function(e){var t=e.className;return(0,n.jsxs)("div",{"aria-label":"shadcn.io - React UI components and blocks",className:(0,i.cn)("flex items-center",t),itemScope:!0,itemType:"https://schema.org/Brand",role:"img",children:[(0,n.jsx)(a,{"aria-hidden":"true",className:"size-6.5 dark:invert"}),(0,n.jsx)("span",{className:"ms-2.5 text-lg font-semibold",itemProp:"name",children:"shadcn.io"})]})}],7670312)},1736977,e=>{"use strict";var n=e.i(7843476),t=e.i(1243553),r=e.i(4260289),a=e.i(292270),i=e.i(2263488),o=e.i(2239616),s=e.i(3283086),l=e.i(4522016),c=e.i(5618566),u=e.i(7063270),d=e.i(994179),f=e.i(2102321),m=e.i(1463415),h=e.i(2556570),v=e.i(9672136);e.s(["NavbarLoginButton",0,function(){var e,p,x,g,b=(0,c.useRouter)(),j=(0,h.useAuth)(),y=j.user,w=j.isPro,N=j.isLoading,_=j.clearSession,C=function(){_(),(0,v.signOut)().then(function(){b.refresh()})};if(N)return(0,n.jsx)(f.Button,{"aria-label":"Loading user status",disabled:!0,size:"sm",variant:"default",children:"Sign in"});if(!y)return(0,n.jsx)(f.Button,{"aria-label":"Sign in to your account",asChild:!0,size:"sm",title:"Sign in to shadcn.io",variant:"default",children:(0,n.jsx)(l.default,{href:"/sign-in",children:"Sign in"})});var k=y.name?y.name.split(" ").map(function(e){return e[0]}).join("").toUpperCase().slice(0,2):null!=(e=null==(g=y.email)||null==(x=g[0])?void 0:x.toUpperCase())?e:"U";return(0,n.jsxs)(m.DropdownMenu,{children:[(0,n.jsx)(m.DropdownMenuTrigger,{asChild:!0,children:(0,n.jsx)(f.Button,{"aria-haspopup":"menu","aria-label":"User menu for ".concat(y.name||y.email),className:"relative h-9 w-9 rounded-full",title:"Open user menu",variant:"ghost",children:(0,n.jsxs)(u.Avatar,{className:"h-9 w-9",children:[(0,n.jsx)(u.AvatarImage,{alt:"".concat(y.name||"User","'s profile picture"),src:null!=(p=y.image)?p:void 0}),(0,n.jsx)(u.AvatarFallback,{"aria-label":"".concat(y.name||"User"," initials: ").concat(k),children:k})]})})}),(0,n.jsxs)(m.DropdownMenuContent,{align:"end","aria-label":"User account menu",className:"w-56",forceMount:!0,children:[(0,n.jsx)("div",{className:"flex items-center justify-start gap-2 p-2",children:(0,n.jsxs)("div",{className:"flex flex-col space-y-1 leading-none",children:[y.name&&(0,n.jsxs)("p",{className:"font-medium flex items-center gap-1.5",children:[y.name,w&&(0,n.jsxs)(d.Badge,{"aria-label":"Pro subscription active",className:"h-5 px-1.5 text-[10px] font-medium",variant:"secondary",children:[(0,n.jsx)(t.Crown,{"aria-hidden":"true",className:"mr-0.5 h-3 w-3 text-amber-500"}),"Pro"]})]}),y.email&&(0,n.jsx)("p",{className:"w-[200px] truncate text-sm text-muted-foreground",children:y.email})]})}),(0,n.jsx)(m.DropdownMenuSeparator,{}),!w&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.DropdownMenuItem,{asChild:!0,children:(0,n.jsxs)(l.default,{"aria-label":"Upgrade to Pro subscription",className:"cursor-pointer text-amber-600 dark:text-amber-400",href:"/pricing",title:"Upgrade to Pro - Get access to all features",children:[(0,n.jsx)(s.Sparkles,{"aria-hidden":"true",className:"mr-2 h-4 w-4"}),"Upgrade to Pro"]})}),(0,n.jsx)(m.DropdownMenuSeparator,{})]}),(0,n.jsx)(m.DropdownMenuItem,{asChild:!0,children:(0,n.jsxs)(l.default,{"aria-label":"Go to your dashboard",className:"cursor-pointer",href:"/dashboard",title:"Dashboard - View your account overview",children:[(0,n.jsx)(r.LayoutDashboard,{"aria-hidden":"true",className:"mr-2 h-4 w-4"}),"Dashboard"]})}),(0,n.jsx)(m.DropdownMenuItem,{asChild:!0,children:(0,n.jsxs)(l.default,{"aria-label":"Go to profile settings",className:"cursor-pointer",href:"/dashboard/profile",title:"Profile - Manage your account preferences",children:[(0,n.jsx)(o.Settings,{"aria-hidden":"true",className:"mr-2 h-4 w-4"}),"Profile"]})}),(0,n.jsx)(m.DropdownMenuItem,{asChild:!0,children:(0,n.jsxs)(l.default,{"aria-label":"Contact support",className:"cursor-pointer",href:"/dashboard/contact",title:"Contact - Get help from our team",children:[(0,n.jsx)(i.Mail,{"aria-hidden":"true",className:"mr-2 h-4 w-4"}),"Contact"]})}),(0,n.jsx)(m.DropdownMenuSeparator,{}),(0,n.jsxs)(m.DropdownMenuItem,{"aria-label":"Sign out of your account",className:"cursor-pointer text-destructive focus:text-destructive",onSelect:function(e){e.preventDefault(),C()},title:"Sign out - End your session",children:[(0,n.jsx)(a.LogOut,{"aria-hidden":"true",className:"mr-2 h-4 w-4"}),"Sign out"]})]})]})}])},9337270,e=>{"use strict";
1var n=e.i(651682),t=e.i(7843476),r=e.i(975558),a=e.i(5271645),i=e.i(2102321),o=e.i(9647163);e.s(["default",0,function(){var e=(0,n._)((0,a.useState)(!1),2),s=e[0],l=e[1];return(0,a.useEffect)(function(){var e=function(){l(window.scrollY>320)};return window.addEventListener("scroll",e,{passive:!0}),e(),function(){window.removeEventListener("scroll",e)}},[]),(0,t.jsxs)(i.Button,{"aria-hidden":!s,"aria-label":"Scroll to top of page",className:(0,o.cn)("fixed end-6 bottom-25 lg:bottom-15 z-50 cursor-pointer transition-all duration-200",{"scale-0":!s,"scale-100":s}),onClick:function(){window.scrollTo({top:0,behavior:"smooth"})},size:"icon",tabIndex:s?0:-1,title:"Back to top",children:[(0,t.jsx)(r.ArrowUp,{"aria-hidden":"true",className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Scroll to top"})]})}])},1498255,e=>{"use strict";var n=e.i(651682),t=e.i(7843476),r=e.i(4522016),a=e.i(5618566),i=e.i(5271645);function o(){var e=new Date,n=new Date(e);n.setUTCHours(24,0,0,0);var t=n.getTime()-e.getTime();return{hours:Math.floor(t/36e5%24),minutes:Math.floor(t/1e3/60%60),seconds:Math.floor(t/1e3%60)}}function s(e){var n=e.timeLeft;return(0,t.jsx)("span",{className:"tabular-nums font-mono text-sm",suppressHydrationWarning:!0,children:n?"".concat(n.hours.toString().padStart(2,"0"),":").concat(n.minutes.toString().padStart(2,"0"),":").concat(n.seconds.toString().padStart(2,"0")):"--:--:--"})}e.s(["PromoBanner",0,function(e){var l,c,u,d=e.inDashboard,f=void 0!==d&&d,m=e.inDocs,h=void 0!==m&&m,v=e.href,p=e.label,x=void 0===p?"70% off":p,g=(c=(l=(0,n._)((0,i.useState)(null),2))[0],u=l[1],(0,i.useEffect)(function(){u(o());var e=setInterval(function(){u(o())},1e3);return function(){return clearInterval(e)}},[]),c);if("/pricing"===(0,a.usePathname)())return null;var b=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"text-muted-foreground",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:x}),(0,t.jsx)("span",{className:"mx-1.5",children:"·"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"Ends in "}),(0,t.jsx)(s,{timeLeft:g})]}),(0,t.jsx)("span",{className:"text-muted-foreground group-hover:text-foreground transition-colors",children:"→"})]}),j="group flex items-center gap-2 text-sm hover:text-foreground transition-colors cursor-pointer";return(0,t.jsxs)(t.Fragment,{children:[f&&(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n          @media (max-width: 767px) {\n            .promo-banner-dashboard { left: 0 !important; }\n          }\n        "}}),h&&(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:'\n          .promo-banner-docs { left: var(--fd-sidebar-width, 0px); }\n          body:has(#nd-sidebar[data-collapsed="true"]) .promo-banner-docs { left: 0; }\n        '}}),(0,t.jsx)("output",{"aria-label":"Promotional offer: ".concat("string"==typeof x?x:"Get Pro",", limited time"),className:"fixed bottom-0 left-0 right-0 z-40 border-t border-border bg-background/80 backdrop-blur-sm py-3 px-4 ".concat(f?"promo-banner-dashboard":""," ").concat(h?"promo-banner-docs":""),style:f?{left:"var(--sidebar-width, 0px)"}:void 0,children:(0,t.jsx)("div",{className:"mx-auto max-w-4xl flex items-center justify-center",children:v?(0,t.jsx)(r.default,{className:j,href:v,children:b}):(0,t.jsx)("button",{className:j,onClick:function(){var e=document.getElementById("yearly-pricing-card");if(e){e.scrollIntoView({behavior:"smooth",block:"center"});var n=Date.now(),t=function(){var r=e.getBoundingClientRect(),a=window.innerHeight/2;50>Math.abs(r.top+r.height/2-a)||Date.now()-n>1e3?(e.style.transform="scale(1.03)",setTimeout(function(){e.style.transform=""},300)):requestAnimationFrame(t)};requestAnimationFrame(t)}},type:"button",children:b})})})]})}])},5576958,e=>{"use strict";var n=e.i(120786),t=e.i(1092808),r=e.i(3233027),a=e.i(651682),i=e.i(8540316),o=e.i(5271645),s=e.i(7174080),l=e.i(4030030),c=e.i(9981140),u=e.i(4248425),d=e.i(7369340),f=e.i(820783),m=e.i(3586318),h=e.i(4296626),v=e.i(7610772),p=e.i(5075830),x=e.i(6726330),g=e.i(5999682),b=e.i(1934620),j=e.i(3030207),y=e.i(5959411),w=e.i(7843476),N=Object.defineProperty,_=function(e,n){return N(e,"name",{value:n,configurable:!0})},C="NavigationMenu",k=(0,a._)((0,p.createCollection)(C),3),M=k[0],S=k[1],T=k[2],R=(0,a._)((0,p.createCollection)(C),3),P=R[
10],I=R[1],E=R[2],L=(0,a._)((0,l.createContextScope)(C,[T,E]),2),D=L[0],A=L[1],V=(0,a._)(D(C),2),z=V[0],F=V[1],H=(0,a._)(D(C),2),B=H[0],U=H[1],O=o.forwardRef(_(function(e,i){var s=e.__scopeNavigationMenu,l=e.value,c=e.onValueChange,h=e.defaultValue,v=e.delayDuration,p=void 0===v?200:v,x=e.skipDelayDuration,g=void 0===x?300:x,b=e.orientation,j=void 0===b?"horizontal":b,y=e.dir,N=(0,r._)(e,["__scopeNavigationMenu","value","onValueChange","defaultValue","delayDuration","skipDelayDuration","orientation","dir"]),k=(0,a._)(o.useState(null),2),M=k[0],S=k[1],T=(0,f.useComposedRefs)(i,S),R=(0,m.useDirection)(y),P=o.useRef(0),I=o.useRef(0),E=o.useRef(0),L=(0,a._)(o.useState(!0),2),D=L[0],A=L[1],V=(0,a._)((0,d.useControllableState)({prop:l,onChange:_(function(e){var n=g>0;""!==e?(window.clearTimeout(E.current),n&&A(!1)):(window.clearTimeout(E.current),E.current=window.setTimeout(function(){return A(!0)},g)),null==c||c(e)},"onChange"),defaultProp:null!=h?h:"",caller:C}),2),z=V[0],F=V[1],H=o.useCallback(function(){window.clearTimeout(I.current),I.current=window.setTimeout(function(){return F("")},150)},[F]),B=o.useCallback(function(e){window.clearTimeout(I.current),F(e)},[F]),U=o.useCallback(function(e){z===e?window.clearTimeout(I.current):P.current=window.setTimeout(function(){window.clearTimeout(I.current),F(e)},p)},[z,F,p]);return o.useEffect(function(){return function(){window.clearTimeout(P.current),window.clearTimeout(I.current),window.clearTimeout(E.current)}},[]),(0,w.jsx)(q,{scope:s,isRootMenu:!0,value:z,dir:R,orientation:j,rootNavigationMenu:M,onTriggerEnter:function(e){window.clearTimeout(P.current),D?U(e):B(e)},onTriggerLeave:function(){window.clearTimeout(P.current),H()},onContentEnter:function(){return window.clearTimeout(I.current)},onContentLeave:H,onItemSelect:function(e){F(function(n){return n===e?"":e})},onItemDismiss:function(){return F("")},children:(0,w.jsx)(u.Primitive.nav,(0,t._)((0,n._)({"aria-label":"Main","data-orientation":j,dir:R},N),{ref:T}))})},"NavigationMenu")),G="NavigationMenuSub",K=o.forwardRef(_(function(e,i){var o=e.__scopeNavigationMenu,s=e.value,l=e.onValueChange,c=e.defaultValue,f=e.orientation,m=void 0===f?"horizontal":f,h=(0,r._)(e,["__scopeNavigationMenu","value","onValueChange","defaultValue","orientation"]),v=F(G,o),p=(0,a._)((0,d.useControllableState)({prop:s,onChange:l,defaultProp:null!=c?c:"",caller:G}),2),x=p[0],g=p[1];return(0,w.jsx)(q,{scope:o,isRootMenu:!1,value:x,dir:v.dir,orientation:m,rootNavigationMenu:v.rootNavigationMenu,onTriggerEnter:function(e){return g(e)},onItemSelect:function(e){return g(e)},onItemDismiss:function(){return g("")},children:(0,w.jsx)(u.Primitive.div,(0,t._)((0,n._)({"data-orientation":m},h),{ref:i}))})},"NavigationMenuSub")),q=_(function(e){var n=e.scope,t=e.isRootMenu,r=e.rootNavigationMenu,i=e.dir,s=e.orientation,l=e.children,c=e.value,u=e.onItemSelect,d=e.onItemDismiss,f=e.onTriggerEnter,m=e.onTriggerLeave,h=e.onContentEnter,p=e.onContentLeave,x=(0,a._)(o.useState(null),2),b=x[0],y=x[1],N=(0,a._)(o.useState(new Map),2),_=N[0],C=N[1],k=(0,a._)(o.useState(null),2),S=k[0],T=k[1];return(0,w.jsx)(z,{scope:n,isRootMenu:t,rootNavigationMenu:r,value:c,previousValue:(0,g.usePrevious)(c),baseId:(0,v.useId)(),dir:i,orientation:s,viewport:b,onViewportChange:y,indicatorTrack:S,onIndicatorTrackChange:T,onTriggerEnter:(0,j.useCallbackRef)(f),onTriggerLeave:(0,j.useCallbackRef)(m),onContentEnter:(0,j.useCallbackRef)(h),onContentLeave:(0,j.useCallbackRef)(p),onItemSelect:(0,j.useCallbackRef)(u),onItemDismiss:(0,j.useCallbackRef)(d),onViewportContentChange:o.useCallback(function(e,n){C(function(t){return t.set(e,n),new Map(t)})},[]),onViewportContentRemove:o.useCallback(function(e){C(function(n){return n.has(e)?(n.delete(e),new Map(n)):n})},[]),children:(0,w.jsx)(M.Provider,{scope:n,children:(0,w.jsx)(B,{scope:n,items:_,children:l})})})},"NavigationMenuProvider"),W=o.forwardRef(_(function(e,a){var i=e.__scopeNavigationMenu,o=(0,r._)(e,["__scopeNavigationMenu"]),s=F("NavigationMenuList",i),l=(0,w.jsx)(u.Primitive.ul,(0,t._)((0,n._)({"data-orientation":s.orientation},o),{ref:a}));return(0,w.jsx)(u.Primitive.div,{style:{position:"relative"},ref:s.onIndicatorTrackChange,children:(0,w.jsx)(M.Slot,{scope:i,children:s.isRootMenu?(0,w.jsx)(eh,{asChild:!0,children:l}):l})})},"NavigationMenuList")),Y=(0,a._)(D("NavigationMenuItem"),2),J=Y[0],$=Y[1],Z=o.forwardRef(_(function(e,a){var i=e.__scopeNavigationMenu,s=e.value,l=(0,r._)(e,["__scopeNavigationMenu","value"]),c=(0,v.useId)(),d=o.useRef(null),f=o.useRef(null),m=o.useRef(null),h=o.useRef(function(){}),p=o.useRef(!1),x=o.useCallback(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";if(d.current){h.current();var n=ex(d.current);n.length&&eg("start"===e?n:n.reverse())}},[]),g=o.useCallback(function(){if(d.current){var e=ex(d.current);e.length&&(h.current=eb(e))}},[]);return(0,w.jsx)(J,{scope:i,value:s||c||"LEGACY_REACT_AUTO_VALUE",triggerRef:f,contentRef:d,focusProxyRef:m,wasEscapeCloseRef:p,onEntryKeyDown:x,onFocusProxyEnter:x,onRootContentClose:g,onContentFocusOutside:g,children:(0,w.jsx)(u.Primitive.li,(0,t._)((0,n._)({},l),{ref:a}))})},"NavigationMenuItem")),X="NavigationMenuTrigger",Q=o.forwardRef(_(function(e,a){var i=e.__scopeNavigationMenu,s=e.disabled,l=(0,r._)(e,["__scopeNavigationMenu","disabled"]),d=F(X,e.__scopeNavigationMenu),m=$(X,e.__scopeNavigationMenu),h=o.useRef(null),v=(0,f.useComposedRefs)(h,m.triggerRef,a),p=ew(d.baseId,m.value),x=eN(d.baseId,m.value),g=o.useRef(!1),b=
1o.useRef(!1),j=m.value===d.value;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(M.ItemSlot,{scope:i,value:m.value,children:(0,w.jsx)(ep,{asChild:!0,children:(0,w.jsx)(u.Primitive.button,(0,t._)((0,n._)({id:p,disabled:s,"data-disabled":s?"":void 0,"data-state":ey(j),"aria-expanded":j,"aria-controls":j?x:void 0},l),{ref:v,onPointerEnter:(0,c.composeEventHandlers)(e.onPointerEnter,function(){b.current=!1,m.wasEscapeCloseRef.current=!1}),onPointerMove:(0,c.composeEventHandlers)(e.onPointerMove,e_(function(){s||b.current||m.wasEscapeCloseRef.current||g.current||(d.onTriggerEnter(m.value),g.current=!0)})),onPointerLeave:(0,c.composeEventHandlers)(e.onPointerLeave,e_(function(){s||(d.onTriggerLeave(),g.current=!1)})),onClick:(0,c.composeEventHandlers)(e.onClick,function(){d.onItemSelect(m.value),b.current=j}),onKeyDown:(0,c.composeEventHandlers)(e.onKeyDown,function(e){var n={horizontal:"ArrowDown",vertical:"rtl"===d.dir?"ArrowLeft":"ArrowRight"}[d.orientation];j&&e.key===n&&(m.onEntryKeyDown(),e.preventDefault())})}))})}),j&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(y.Root,{"aria-hidden":!0,tabIndex:0,ref:m.focusProxyRef,onFocus:function(e){var n=m.contentRef.current,t=e.relatedTarget,r=t===h.current,a=null==n?void 0:n.contains(t);(r||!a)&&m.onFocusProxyEnter(r?"start":"end")}}),d.viewport&&(0,w.jsx)("span",{"aria-owns":x})]})]})},"NavigationMenuTrigger")),ee="navigationMenu.linkSelect",en=o.forwardRef(_(function(e,a){e.__scopeNavigationMenu;var i=e.active,o=e.onSelect,s=(0,r._)(e,["__scopeNavigationMenu","active","onSelect"]);return(0,w.jsx)(ep,{asChild:!0,children:(0,w.jsx)(u.Primitive.a,(0,t._)((0,n._)({"data-active":i?"":void 0,"aria-current":i?"page":void 0},s),{ref:a,onClick:(0,c.composeEventHandlers)(e.onClick,function(e){var n=e.target,t=new CustomEvent(ee,{bubbles:!0,cancelable:!0});if(n.addEventListener(ee,function(e){return null==o?void 0:o(e)},{once:!0}),(0,u.dispatchDiscreteCustomEvent)(n,t),!t.defaultPrevented&&!e.metaKey){var r=new CustomEvent(el,{bubbles:!0,cancelable:!0});(0,u.dispatchDiscreteCustomEvent)(n,r)}},{checkForDefaultPrevented:!1})}))})},"NavigationMenuLink")),et="NavigationMenuIndicator",er=o.forwardRef(_(function(e,a){var i=e.forceMount,o=(0,r._)(e,["forceMount"]),l=F(et,e.__scopeNavigationMenu),c=!!l.value;return l.indicatorTrack?s.createPortal((0,w.jsx)(h.Presence,{present:i||c,children:(0,w.jsx)(ea,(0,t._)((0,n._)({},o),{ref:a}))}),l.indicatorTrack):null},"NavigationMenuIndicator")),ea=o.forwardRef(_(function(e,i){var s=e.__scopeNavigationMenu,l=(0,r._)(e,["__scopeNavigationMenu"]),c=F(et,s),d=S(s),f=(0,a._)(o.useState(null),2),m=f[0],h=f[1],v=(0,a._)(o.useState(null),2),p=v[0],x=v[1],g="horizontal"===c.orientation,b=!!c.value;o.useEffect(function(){var e,n=null==(e=d().find(function(e){return e.value===c.value}))?void 0:e.ref.current;n&&h(n)},[d,c.value]);var j=_(function(){m&&x({size:g?m.offsetWidth:m.offsetHeight,offset:g?m.offsetLeft:m.offsetTop})},"handlePositionChange");return ej(m,j),ej(c.indicatorTrack,j),p?(0,w.jsx)(u.Primitive.div,(0,t._)((0,n._)({"aria-hidden":!0,"data-state":b?"visible":"hidden","data-orientation":c.orientation},l),{ref:i,style:(0,n._)({position:"absolute"},g?{left:0,width:p.size+"px",transform:"translateX(".concat(p.offset,"px)"),"--radix-navigation-menu-indicator-translate-x":"".concat(p.offset,"px")}:{top:0,height:p.size+"px",transform:"translateY(".concat(p.offset,"px)"),"--radix-navigation-menu-indicator-translate-y":"".concat(p.offset,"px")},l.style)})):null},"NavigationMenuIndicatorImpl")),ei="NavigationMenuContent",eo=o.forwardRef(_(function(e,a){var i=e.forceMount,o=(0,r._)(e,["forceMount"]),s=F(ei,e.__scopeNavigationMenu),l=$(ei,e.__scopeNavigationMenu),u=(0,f.useComposedRefs)(l.contentRef,a),d=l.value===s.value,m=(0,n._)({value:l.value,triggerRef:l.triggerRef,focusProxyRef:l.focusProxyRef,wasEscapeCloseRef:l.wasEscapeCloseRef,onContentFocusOutside:l.onContentFocusOutside,onRootContentClose:l.onRootContentClose},o);return s.viewport?(0,w.jsx)(es,(0,t._)((0,n._)({forceMount:i},m),{ref:u})):(0,w.jsx)(h.Presence,{present:i||d,children:(0,w.jsx)(ec,(0,t._)((0,n._)({"data-state":ey(d)},m),{ref:u,onPointerEnter:(0,c.composeEventHandlers)(e.onPointerEnter,s.onContentEnter),onPointerLeave:(0,c.composeEventHandlers)(e.onPointerLeave,e_(s.onContentLeave)),style:(0,n._)({pointerEvents:!d&&s.isRootMenu?"none":void 0},m.style)}))})},"NavigationMenuContent")),es=o.forwardRef(_(function(e,t){var r=F(ei,e.__scopeNavigationMenu),a=r.onViewportContentChange,i=r.onViewportContentRemove;return(0,b.useLayoutEffect)(function(){a(e.value,(0,n._)({ref:t},e))},[e,t,a]),(0,b.useLayoutEffect)(function(){return function(){return i(e.value)}},[e.value,i]),null}
1,"ViewportContentMounter")),el="navigationMenu.rootContentDismiss",ec=o.forwardRef(_(function(e,a){var i=e.__scopeNavigationMenu,s=e.value,l=e.triggerRef,u=e.focusProxyRef,d=e.wasEscapeCloseRef,m=e.onRootContentClose,h=e.onContentFocusOutside,v=(0,r._)(e,["__scopeNavigationMenu","value","triggerRef","focusProxyRef","wasEscapeCloseRef","onRootContentClose","onContentFocusOutside"]),p=F(ei,i),g=o.useRef(null),b=(0,f.useComposedRefs)(g,a),j=ew(p.baseId,s),y=eN(p.baseId,s),N=S(i),C=o.useRef(null),k=p.onItemDismiss;o.useEffect(function(){var e=g.current;if(p.isRootMenu&&e){var n=_(function(){var n;k(),m(),e.contains(document.activeElement)&&(null==(n=l.current)||n.focus())},"handleClose");return e.addEventListener(el,n),function(){return e.removeEventListener(el,n)}}},[p.isRootMenu,e.value,l,k,m]);var M=o.useMemo(function(){var e=N().map(function(e){return e.value});"rtl"===p.dir&&e.reverse();var n=e.indexOf(p.value),t=e.indexOf(p.previousValue),r=s===p.value,a=t===e.indexOf(s);if(!r&&!a)return C.current;var i=function(){if(n!==t){if(r&&-1!==t)return n>t?"from-end":"from-start";if(a&&-1!==n)return n>t?"to-start":"to-end"}return null}();return C.current=i,i},[p.previousValue,p.value,p.dir,N,s]);return(0,w.jsx)(eh,{asChild:!0,children:(0,w.jsx)(x.DismissableLayer,(0,t._)((0,n._)({id:y,"aria-labelledby":j,"data-motion":M,"data-orientation":p.orientation},v),{ref:b,disableOutsidePointerEvents:!1,onDismiss:function(){var e,n=new Event(el,{bubbles:!0,cancelable:!0});null==(e=g.current)||e.dispatchEvent(n)},onFocusOutside:(0,c.composeEventHandlers)(e.onFocusOutside,function(e){h();var n,t=e.target;(null==(n=p.rootNavigationMenu)?void 0:n.contains(t))&&e.preventDefault()}),onPointerDownOutside:(0,c.composeEventHandlers)(e.onPointerDownOutside,function(e){var n,t=e.target,r=N().some(function(e){var n;return null==(n=e.ref.current)?void 0:n.contains(t)}),a=p.isRootMenu&&(null==(n=p.viewport)?void 0:n.contains(t));(r||a||!p.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,c.composeEventHandlers)(e.onKeyDown,function(e){var n=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!n){var t,r=ex(e.currentTarget),a=document.activeElement,i=r.findIndex(function(e){return e===a});eg(e.shiftKey?r.slice(0,i).reverse():r.slice(i+1,r.length))?e.preventDefault():null==(t=u.current)||t.focus()}}),onEscapeKeyDown:(0,c.composeEventHandlers)(e.onEscapeKeyDown,function(e){d.current=!0})}
1))})},"NavigationMenuContentImpl")),eu="NavigationMenuViewport",ed=o.forwardRef(_(function(e,a){var i=e.forceMount,o=(0,r._)(e,["forceMount"]),s=!!F(eu,e.__scopeNavigationMenu).value;return(0,w.jsx)(h.Presence,{present:i||s,children:(0,w.jsx)(ef,(0,t._)((0,n._)({},o),{ref:a}))})},"NavigationMenuViewport")),ef=o.forwardRef(_(function(e,i){var s=e.__scopeNavigationMenu,l=(e.children,(0,r._)(e,["__scopeNavigationMenu","children"])),d=F(eu,s),m=(0,f.useComposedRefs)(i,d.onViewportChange),v=U(ei,e.__scopeNavigationMenu),p=(0,a._)(o.useState(null),2),x=p[0],g=p[1],b=(0,a._)(o.useState(null),2),j=b[0],y=b[1],N=x?(null==x?void 0:x.width)+"px":void 0,C=x?(null==x?void 0:x.height)+"px":void 0,k=!!d.value,M=k?d.value:d.previousValue,S=_(function(){j&&g({width:j.offsetWidth,height:j.offsetHeight})},"handleSizeChange");return ej(j,S),(0,w.jsx)(u.Primitive.div,(0,t._)((0,n._)({"data-state":ey(k),"data-orientation":d.orientation},l),{ref:m,style:(0,n._)({pointerEvents:!k&&d.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":N,"--radix-navigation-menu-viewport-height":C},l.style),onPointerEnter:(0,c.composeEventHandlers)(e.onPointerEnter,d.onContentEnter),onPointerLeave:(0,c.composeEventHandlers)(e.onPointerLeave,e_(d.onContentLeave)),children:Array.from(v.items).map(function(e){var i=(0,a._)(e,2),o=i[0],s=i[1],l=s.ref,c=s.forceMount,u=(0,r._)(s,["ref","forceMount"]),d=M===o;return(0,w.jsx)(h.Presence,{present:c||d,children:(0,w.jsx)(em,(0,t._)((0,n._)({},u),{contentRef:l,isActive:d,onActiveContentChange:y}))},o)})}))},"NavigationMenuViewportImpl")),em=_(function(e){var a=e.contentRef,i=e.isActive,s=e.onActiveContentChange,l=(0,r._)(e,["contentRef","isActive","onActiveContentChange"]),c=o.useCallback(function(e){i&&e&&s(e)},[i,s]),u=(0,f.useComposedRefs)(a,c);return(0,w.jsx)(ec,(0,t._)((0,n._)({},l),{ref:u}))},"NavigationMenuViewportItem"),eh=o.forwardRef(_(function(e,a){var i=e.__scopeNavigationMenu,o=(0,r._)(e,["__scopeNavigationMenu"]),s=F("FocusGroup",i);return(0,w.jsx)(P.Provider,{scope:i,children:(0,w.jsx)(P.Slot,{scope:i,children:(0,w.jsx)(u.Primitive.div,(0,t._)((0,n._)({dir:s.dir},o),{ref:a}))})})},"FocusGroup")),ev=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ep=o.forwardRef(_(function(e,a){var o=e.__scopeNavigationMenu,s=(0,r._)(e,["__scopeNavigationMenu"]),l=I(o),d=F("FocusGroupItem",o);return(0,w.jsx)(P.ItemSlot,{scope:o,children:(0,w.jsx)(u.Primitive.button,(0,t._)((0,n._)({},s),{ref:a,onKeyDown:(0,c.composeEventHandlers)(e.onKeyDown,function(e){if(["Home","End"].concat((0,i._)(ev)).includes(e.key)){var n=l().map(function(e){return e.ref.current});if(["rtl"===d.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&n.reverse(),ev.includes(e.key)){var t=n.indexOf(e.currentTarget);n=n.slice(t+1)}setTimeout(function(){return eg(n)}),e.preventDefault()}})}))})},"FocusGroupItem"));function ex(e){for(var n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:_(function(e){var n="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||n?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});t.nextNode();)n.push(t.currentNode);return n}function eg(e){var n=document.activeElement;return e.some(function(e){return e===n||(e.focus(),document.activeElement!==n)})}function eb(e){return e.forEach(function(e){e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),function(){e.forEach(function(e){var n=e.dataset.tabindex;e.setAttribute("tabindex",n)})}}function ej(e,n){var t=(0,j.useCallbackRef)(n);(0,b.useLayoutEffect)(function(){var n=0;if(e){var r=new ResizeObserver(function(){cancelAnimationFrame(n),n=window.requestAnimationFrame(t)});return r.observe(e),function(){window.cancelAnimationFrame(n),r.unobserve(e)}}},[e,t])}function ey(e){return e?"open":"closed"}function ew(e,n){return"".concat(e,"-trigger-").concat(n)}function eN(e,n){return"".concat(e,"-content-").concat(n)}function e_(e){return function(n){return"mouse"===n.pointerType?e(n):void 0}}_(ex,"getTabbableCandidates"),_(eg,"focusFirst"),_(eb,"removeFromTabOrder"),_(ej,"useResizeObserver"),_(ey,"getOpenState"),_(ew,"makeTriggerId"),_(eN,"makeContentId"),_(e_,"whenMouse"),e.s(["Content",0,eo,"Indicator",0,er,"Item",0,Z,"Link",0,en,"List",0,W,"NavigationMenu",0,O,"NavigationMenuContent",0,eo,"NavigationMenuIndicator",0,er,"NavigationMenuItem",0,Z,"NavigationMenuLink",0,en,"NavigationMenuList",0,W,"NavigationMenuSub",0,K,"NavigationMenuTrigger",0,Q,"NavigationMenuViewport",0,ed,"Root",0,O,"Sub",0,K,"Trigger",0,Q,"Viewport",0,ed,"createNavigationMenuScope",0,A])},5647873,e=>{"use strict";
1var n=e.i(120786),t=e.i(1092808),r=e.i(3233027),a=e.i(5224110),i=e.i(7843476);function o(e){var o=e.ref,s=e.href,l=void 0===s?"#":s,c=e.external,u=void 0===c?!!(l.match(/^\w+:/)||l.startsWith("//")):c,d=e.prefetch,f=e.children,m=(0,r._)(e,["ref","href","external","prefetch","children"]);return u?(0,i.jsx)("a",(0,t._)((0,n._)({ref:o,href:l,rel:"noreferrer noopener",target:"_blank"},m),{children:f})):(0,i.jsx)(a.Link,(0,t._)((0,n._)({ref:o,href:l,prefetch:d},m),{children:f}))}e.s(["Link",0,o,"default",0,o])},6423060,e=>{"use strict";e.i(8540316),Symbol("VisitBreak"),e.s(["r",0,function(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r.includeSeparator,i=void 0===a||a;return null!=(t=function e(t){var r=!0,a=!1,o=void 0;try{for(var s,l,c=t[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var u=l.value;if(n(u)){var d=[];return s&&d.push(s),d.push(u),d}if("separator"===u.type&&i){s=u;continue}if("folder"===u.type){var f=u.index&&n(u.index)?[u.index]:e(u.children);if(f)return f.unshift(u),s&&f.unshift(s),f}}}catch(e){a=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}}(e))?t:null}])},2281878,e=>{"use strict";var n=e.i(120786),t=e.i(3233027);e.i(4816374);var r=e.i(8128769),a=e.i(7843476);e.i(5271645);var i=e.i(2178761),o=i.Root,s=i.Trigger;i.PopoverClose,e.s(["Popover",0,o,"PopoverContent",0,function(e){var o=e.className,s=e.align,l=e.sideOffset,c=(0,t._)(e,["className","align","sideOffset"]);return(0,a.jsx)(i.Portal,{children:(0,a.jsx)(i.Content,(0,n._)({align:void 0===s?"center":s,sideOffset:void 0===l?4:l,side:"bottom",className:(0,r.cn)("z-50 origin-(--radix-popover-content-transform-origin) overflow-y-auto max-h-(--radix-popover-content-available-height) min-w-[240px] max-w-[98vw] rounded-xl border bg-fd-popover/60 backdrop-blur-lg p-2 text-sm text-fd-popover-foreground shadow-lg focus-visible:outline-none data-[state=closed]:animate-fd-popover-out data-[state=open]:animate-fd-popover-in",o)},c))})},"PopoverTrigger",0,s])},5864345,e=>{"use strict";e.s(["HomeLayout",()=>D,"useHomeLayout",()=>E],5864345);var n=e.i(120786),t=e.i(1092808),r=e.i(3233027),a=e.i(4874072),i=e.i(6187302);e.i(4816374);var o=e.i(8128769),s=e.i(7843476);function l(e){return(0,s.jsx)("main",(0,t._)((0,n._)({id:"nd-home-layout"},e),{className:(0,o.cn)("flex flex-1 flex-col [--fd-layout-width:1400px]",e.className)}))}var c=e.i(651682),u=e.i(6713548),d=e.i(2411150),f=e.i(5271645),m=e.i(5576958),h=m.Root,v=m.List;function p(e){var a=e.className,i=e.children,l=(0,r._)(e,["className","children"]);return(0,s.jsx)(m.NavigationMenuItem,(0,t._)((0,n._)({className:(0,o.cn)("list-none",a)},l),{children:i}))}function x(e){var a=e.className,i=e.children,l=(0,r._)(e,["className","children"]);return(0,s.jsx)(m.Trigger,(0,t._)((0,n._)({className:(0,o.cn)("data-[state=open]:bg-fd-accent/50",a)},l),{children:i}))}function g(e){var t=e.className,a=(0,r._)(e,["className"]);return(0,s.jsx)(m.Content,(0,n._)({className:(0,o.cn)("absolute inset-x-0 top-0 overflow-auto fd-scroll-container max-h-[80svh] data-[motion=from-end]:animate-fd-enterFromRight data-[motion=from-start]:animate-fd-enterFromLeft data-[motion=to-end]:animate-fd-exitToRight data-[motion=to-start]:animate-fd-exitToLeft",t)},a))}var b=m.Link;function j(e){var a=e.className,i=e.ref,l=(0,r._)(e,["className","ref"]);return(0,s.jsx)("div",{ref:i,className:"flex w-full justify-center",children:(0,s.jsx)(m.Viewport,(0,t._)((0,n._)({},l),{className:(0,o.cn)("relative h-(--radix-navigation-menu-viewport-height) w-full origin-[top_center] overflow-hidden transition-[width,height] duration-300 data-[state=closed]:animate-fd-nav-menu-out data-[state=open]:animate-fd-nav-menu-in",a)}))})}var y=e.i(5647873),w=e.i(6246872),N=e.i(3382125),_=e.i(6225913),C=e.i(7532257),k=(0,_.cva)("[&_svg]:size-4",{variants:{variant:{main:"inline-flex items-center gap-1 p-2 text-fd-muted-foreground transition-colors hover:text-fd-accent-foreground data-[active=true]:text-fd-primary",button:(0,u.buttonVariants)({color:"secondary",className:"gap-1.5"}),icon:(0,u.buttonVariants)({color:"ghost",size:"icon"})}},defaultVariants:{variant:"main"}});function M(e){var r=E(),a=r.navItems,i=r.menuItems,l=r.slots,c=r.props.nav,d=(0,C.useTranslations)({note:"mobile menu"});return(null==c?void 0:c.component)?c.component:(0,s.jsxs)(T,(0,t._)((0,n._)({transparentMode:null==c?void 0:c.transparentMode},e),{children:[l.navTitle&&(0,s.jsx)(l.navTitle,{className:"inline-flex items-center gap-2.5 font-semibold"}),null==c?void 0:c.children,(0,s.jsx)("ul",{className:"flex flex-row items-center gap-2 px-6 max-sm:hidden",children:a.filter(function(e){return!S(e)}).map(function(e,n){return(0,s.jsx)(R,{item:e,className:"text-sm"},n)})}),(0,s.jsxs)("div",{className:"flex flex-row items-center justify-end gap-1.5 flex-1 max-lg:hidden",children:[l.searchTrigger&&(0,s.jsx)(l.searchTrigger.full,{hideIfDisabled:!0,className:"w-full rounded-full ps-2.5 max-w-[240px]"}),l.themeSwitch&&(0,s.jsx)(l.themeSwitch,{}),l.languageSelect&&(0,s.jsx)(l.languageSelect.root,{children:(0,s.jsx)(N.Languages,{className:"size-5"})}),(0,s.jsx)("ul",{className:"flex flex-row gap-2 items-center empty:hidden",children:a.filter(S).map(function(e,n){return(0,s.jsx)(R,{className:(0,o.cn)("icon"===e.type&&"-mx-1 first:ms-0 last:me-0"),item:e},n)})})]}),(0,s.jsxs)("div",{className:"flex flex-row items-center ms-auto -me-1.5 lg:hidden",children:[l.searchTrigger&&(0,s.jsx)(l.searchTrigger.sm,{hideIfDisabled:!0,className:"p-2"}),(0,s.jsx)(p,{asChild:!0,children:(0,s.jsxs)("div",{children:[(0,s.jsx)(x,{"aria-label":d("Toggle Menu",{note:"aria-label"}),className:(0,o.cn)((0,u.buttonVariants)({size:"icon",color:"ghost",className:"group [&_svg]:size-5.5"})),onPointerMove:(null==c?void 0:c.enableHoverToOpen)?void 0:function(e){return e.preventDefault()},children:(0,s.jsx)(w.ChevronDown,{className:"transition-transform duration-300 group-data-[state=open]:rotate-180"})}),(0,s.jsxs)(g,{className:"flex flex-col p-4 sm:flex-row sm:items-center sm:justify-end",children:[i.filter(function(e){return!S(e)}).map(function(e,n){return(0,s.jsx)(P,{item:e,className:"sm:hidden"},n)}),(0,s.jsxs)("div",{className:"-ms-1.5 flex flex-row items-center gap-2 max-sm:mt-2",children:[i.filter(S).map(function(e,n){return(0,s.jsx)(P,{item:e,className:(0,o.cn)("icon"===e.type&&"-mx-1 first:ms-0")},n)}),(0,s.jsx)("div",{role:"separator",className:"flex-1"}),l.languageSelect&&(0,s.jsxs)(l.languageSelect.root,{children:[(0,s.jsx)(N.Languages,{className:"size-5"}),l.languageSelect.text&&(0,s.jsx)(l.languageSelect.text,{}),(0,s.jsx)(w.ChevronDown,{className:"size-3 text-fd-muted-foreground"})]}),l.themeSwitch&&(0,s.jsx)(l.themeSwitch,{})]})]})]})})]})]}))}function S(e){return"secondary"in e&&null!=e.secondary?e.secondary:"icon"===e.type}function T(e){var a,i=e.transparentMode,l=void 0===i?"none":i,u=(0,r._)(e,["transparentMode"]),m=(0,c._)((0,f.useState)(""),2),p=m[0],x=m[1],g=null==(a=(0,d.useIsScrollTop)({enabled:"top"===l}))||a;return(0,s.jsx)(h,{value:p,onValueChange:x,asChild:!0,children:(0,s.jsx)("header",(0,t._)((0,n._)({id:"nd-nav"},u),{className:(0,o.cn)("sticky h-14 top-0 z-40",u.className),children:(0,s.jsxs)("div",{className:(0,o.cn)("backdrop-blur-lg border-b transition-colors *:mx-auto *:max-w-(--fd-layout-width)",p.length>0&&"max-lg:shadow-lg max-lg:rounded-b-2xl",(!("top"===l?g:"always"===l)||p.length>0)&&"bg-fd-background/80"),children:[(0,s.jsx)(v,{className:"flex h-14 w-full items-center px-4",asChild:!0,children:(0,s.jsx)("nav",{children:u.children})}),(0,s.jsx)(j,{})]})}))})}function R(e){var i=e.item,l=(0,r._)(e,["item"]);if("custom"===i.type)return i.children;if("menu"===i.type){var c=i.items.map(function(e,a){if("custom"===e.type)return(0,s.jsx)(f.Fragment,{children:e.children},a);var i,l,c=null!=(i=e.menu)?i:{},u=c.banner,d=void 0===u?e.icon?(0,s.jsx)("div",{className:"w-fit roun
1ded-md border bg-fd-muted p-1 [&_svg]:size-4",children:e.icon}):null:u,m=(0,r._)(c,["banner"]);return(0,s.jsx)(b,{asChild:!0,children:(0,s.jsx)(y.default,(0,t._)((0,n._)({href:e.url,external:e.external},m),{className:(0,o.cn)("flex flex-col gap-2 rounded-lg border bg-fd-card p-3 transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground",m.className),children:null!=(l=m.children)?l:(0,s.jsxs)(s.Fragment,{children:[d,(0,s.jsx)("p",{className:"text-base font-medium",children:e.text}),(0,s.jsx)("p",{className:"text-sm text-fd-muted-foreground empty:hidden",children:e.description})]})}))},"".concat(a,"-").concat(e.url))});return(0,s.jsxs)(p,(0,t._)((0,n._)({},l),{children:[(0,s.jsx)(x,{className:(0,o.cn)(k(),"rounded-md"),children:i.url?(0,s.jsx)(y.default,{href:i.url,external:i.external,children:i.text}):i.text}),(0,s.jsx)(g,{className:"grid grid-cols-1 gap-2 p-4 md:grid-cols-2 lg:grid-cols-3",children:c})]}))}return(0,s.jsx)(p,(0,t._)((0,n._)({},l),{children:(0,s.jsx)(b,{asChild:!0,children:(0,s.jsx)(a.LinkItem,{item:i,"aria-label":"icon"===i.type?i.label:void 0,className:(0,o.cn)(k({variant:i.type})),children:"icon"===i.type?i.icon:i.text})})}))}function P(e){var n,t=e.item,i=(0,r._)(e,["item"]);if("custom"===t.type)return(0,s.jsx)("div",{className:(0,o.cn)("grid",i.className),children:t.children});if("menu"===t.type){var l=(0,s.jsxs)(s.Fragment,{children:[t.icon,t.text]});return(0,s.jsxs)("div",{className:(0,o.cn)("mb-4 flex flex-col",i.className),children:[(0,s.jsx)("p",{className:"mb-1 text-sm text-fd-muted-foreground",children:t.url?(0,s.jsx)(b,{asChild:!0,children:(0,s.jsx)(y.default,{href:t.url,external:t.external,children:l})}):l}),t.items.map(function(e,n){return(0,s.jsx)(P,{item:e},n)})]})}return(0,s.jsx)(b,{asChild:!0,children:(0,s.jsxs)(a.LinkItem,{item:t,className:(0,o.cn)({main:"inline-flex items-center gap-2 py-1.5 transition-colors hover:text-fd-popover-foreground
1/50 data-[active=true]:font-medium data-[active=true]:text-fd-primary [&_svg]:size-4",icon:(0,u.buttonVariants)({size:"icon",color:"ghost"}),button:(0,u.buttonVariants)({color:"secondary",className:"gap-1.5 [&_svg]:size-4"})}[null!=(n=t.type)?n:"main"],i.className),"aria-label":"icon"===t.type?t.label:void 0,children:[t.icon,"icon"===t.type?void 0:t.text]})})}var I=(0,f.createContext)(null);function E(){var e=(0,f.use)(I);if(!e)throw Error("Please use this component under <HomeLayout /> (`fumadocs-ui/layouts/home`).");return e}var L=(0,a.baseSlots)({useProps:function(){return E().props}}).useBaseSlots;function D(e){var a,o,c=e.nav,u=(void 0===c?{}:c).enabled,d=e.slots,f=e.children,m=(e.i18n,e.githubUrl,e.links,e.themeSwitch,e.searchToggle,(0,r._)(e,["nav","slots","children","i18n","githubUrl","links","themeSwitch","searchToggle"])),h=L(e),v=h.baseSlots,p=h.baseProps,x=(0,i.useLinkItems)(e),g=(0,t._)((0,n._)({},v),{header:null!=(a=null==d?void 0:d.header)?a:M,container:null!=(o=null==d?void 0:d.container)?o:l});return(0,s.jsx)(I,{value:(0,n._)({props:p,slots:g},x),children:(0,s.jsxs)(g.container,(0,t._)((0,n._)({},m),{children:[(void 0===u||u)&&(0,s.jsx)(g.header,{}),f]}))})}},4874072,6187302,e=>{"use strict";e.s(["LinkItem",()=>j,"baseSlots",()=>y],4874072),e.s(["getLayoutTabs",()=>h,"isLayoutTabActive",()=>v,"isLinkItemActive",()=>x,"useLinkItems",()=>p],6187302);var n=e.i(120786),t=e.i(1092808),r=e.i(3233027),a=e.i(9309864),i=e.i(5414389),o=e.i(6253754),s=e.i(8284457),l=e.i(8540316),c=e.i(7600074),u=e.i(7843476),d=e.i(5271645),f=e.i(6423060),f=f,m=function(e,r){return r.icon?(0,t._)((0,n._)({},e),{icon:(0,u.jsx)("div",{className:"size-full [&_svg]:size-full max-md:p-1.5 max-md:rounded-md max-md:border max-md:bg-fd-secondary",children:r.icon})}):e};function h(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.transform,r=void 0===t?m:t,a=[];function i(e,n){if("root"in e&&e.root){var t,o,s,l=null!=(t=null==(o=e.index)?void 0:o.url)?t:null==(s=e.children.find(function(e){return"page"===e.type}))?void 0:s.url;if(l){var c={title:e.name,icon:e.icon,description:e.description,url:l,unlisted:n,$folder:e},u=r?r(c,e):c;u&&a.push(u)}}var d=!0,f=!1,m=void 0;try{for(var h,v=e.children[Symbol.iterator]();!(d=(h=v.next()).done);d=!0){var p=h.value;"folder"===p.type&&i(p,n)}}catch(e){f=!0,m=e}finally{try{d||null==v.return||v.return()}finally{if(f)throw m}}}return i(e),e.fallback&&i(e.fallback,!0),a}function v(e,n){return e.$folder?null!==f.r(e.$folder.children,function(e){return"page"===e.type&&(0,c.isActive)(e.url,n)}):e.urls?e.urls.has((0,c.normalize)(n)):(0,c.isActive)(e.url,n,!0)}function p(e){var n=e.githubUrl,t=e.links;return(0,d.useMemo)(function(){var e=(d=(c={links:t,githubUrl:n}).links,f=c.githubUrl,m=(0,l._)(void 0===d?[]:d),f&&m.push({type:"icon",url:f,text:"Github",label:"GitHub",icon:(0,u.jsx)("svg",{role:"img",viewBox:"0 0 24 24",fill:"currentColor",children:(0,u.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})}),external:!0}),m),r=[],a=[],i=!0,o=!1,s=void 0;try{for(var c,d,f,m,h,v=e[Symbol.iterator]();!(i=(h=v.next()).done);i=!0){var p=h.value;switch(p.on){case"menu":a.push(p);break;case"nav":r.push(p);break;default:r.push(p),a.push(p)}}}catch(e){o=!0,s=e}finally{try{i||null==v.return||v.return()}finally{if(o)throw s}}return{navItems:r,menuItems:a,all:e}},[t,n])}function x(e,n){return"custom"!==e.type&&!!e.url&&"none"!==e.active&&(0,c.isActive)(e.url,n,"nested-url"===e.active)}var g=e.i(5647873),b=e.i(5224110);function j(e){var a=e.ref,i=e.item,o=(0,r._)(e,["ref","item"]),s=x(i,(0,b.usePathname)());return(0,u.jsx)(g.default,(0,t._)((0,n._)({ref:a,href:i.url,external:i.external},o),{"data-active":s,children:o.children}))}function y(e){var l=e.useProps;function c(e){var t=l().themeSwitch;return t.component?t.component:(0,u.jsx)(s.ThemeSwitch,(0,n._)({},e,t))}function d(e){var t,r=l().searchToggle;return(null==(t=r.components)?void 0:t.sm)?r.components.sm:(0,u.jsx)(o.SearchTrigger,(0,n._)({},e,r.sm))}function f(e){var t,r=l().searchToggle;return(null==(t=r.components)?void 0:t.lg)?r.components.lg:(0,u.jsx)(o.FullSearchTrigger,(0,n._)({},e,r.full))}function m(e){var a,i=e.href,o=(0,r._)(e,["href"]),s=null!=(a=l().nav)?a:{},c=s.url,d=void 0===c?void 0===i?"/":i:c,f=s.title;return"function"==typeof f?f((0,n._)({href:d},o)):(0,u.jsx)(g.default,(0,t._)((0,n._)({href:d},o),{children:f}))}return{useBaseSlots:function(e){var n,t,o,s,l=(0,a.useI18n)().locales,u=e.nav,h=e.slots,v=void 0===h?{}:h,p=e.i18n,x=void 0===p?(void 0===l?[]:l).length>1:p,g=e.searchToggle,b=void 0===g?{}:g,j=b.enabled,y=(0,r._)(b,["enabled"]),w=e.themeSwitch,N=void 0===w?{}:w,_=N.enabled,C=(0,r._)(N,["enabled"]);return{baseSlots:{navTitle:null!=(n=v.navTitle)?n:m,themeSwitch:(void 0===_||_)&&(null!=(t=v.themeSwitch)?t:c),languageSelect:!!x&&(null!=(o=v.languageSelect)?o:{root:i.LanguageSelect,text:i.LanguageSelectText}),searchTrigger:(void 0===j||j)&&(null!=(s=v.searchTrigger)?s:{sm:d,full:f})},baseProps:{nav:u,searchToggle:y,themeSwitch:C}}}}}},5414389,6253754,8284457,7600074,e=>{"use strict";
1var n=e.i(120786),t=e.i(1092808),r=e.i(3233027);e.i(4816374);var a=e.i(8128769),i=e.i(6713548),o=e.i(9309864),s=e.i(2281878),l=e.i(7843476),c=e.i(7532257);e.s(["LanguageSelect",0,function(e){var u=e.className,d=e.variant,f=e.children,m=(0,r._)(e,["className","variant","children"]),h=(0,o.useI18n)(),v=(0,c.useTranslations)({note:"language switcher"});if(!h.locales)throw Error("Missing `<I18nProvider />`");var p=v("Choose a language");return(0,l.jsxs)(s.Popover,{children:[(0,l.jsx)(s.PopoverTrigger,(0,t._)((0,n._)({"aria-label":v("Choose a language",{note:"aria-label"}),className:(0,a.cn)((0,i.buttonVariants)({variant:void 0===d?"ghost":d}),"gap-1.5 p-1.5 data-[state=open]:bg-fd-accent",u)},m),{children:f})),(0,l.jsxs)(s.PopoverContent,{className:"flex flex-col gap-0.5 p-1",children:[(0,l.jsx)("p",{className:"p-2 text-xs font-medium text-fd-muted-foreground",children:p}),h.locales.map(function(e){return(0,l.jsx)("button",{type:"button",className:(0,a.cn)("px-2 py-1.5 text-start text-sm rounded-lg transition-colors",e.locale===h.locale?"bg-fd-primary/10 text-fd-primary":"text-fd-muted-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"),onClick:function(){var n;null==(n=h.onChange)||n.call(h,e.locale)},children:e.name},e.locale)})]})]})},"LanguageSelectText",0,function(e){var r,a=(0,o.useI18n)(),i=a.locales,s=a.locale,c=null==i||null==(r=i.find(function(e){return e.locale===s}))?void 0:r.name;return(0,l.jsx)("span",(0,t._)((0,n._)({},e),{children:c}))}],5414389);var u=e.i(1757061),d=e.i(8429554),d=d;e.s(["FullSearchTrigger",0,function(e){var i=e.hideIfDisabled,o=(0,r._)(e,["hideIfDisabled"]),s=(0,u.useSearchContext)(),f=s.enabled,m=s.hotKey,h=s.setOpenSearch,v=(0,c.useTranslations)({note:"search trigger"});return i&&!f?null:(0,l.jsxs)("button",(0,t._)((0,n._)({type:"button","data-search-full":""},o),{className:(0,a.cn)("inline-flex items-center gap-2 rounded-lg border bg-fd-secondary/50 p-1.5 ps-2 text-sm text-fd-muted-foreground transition-colors hover:bg-fd-accent hover:text-fd-accent-foreground",o.className),onClick:function(){h(!0)},children:[(0,l.jsx)(d.default,{className:"size-4"}),v("Search"),(0,l.jsx)("div",{className:"ms-auto inline-flex gap-0.5",children:m.map(function(e,n){return(0,l.jsx)("kbd",{className:"rounded-md border bg-fd-background px-1.5",children:e.display},n)})})]}))},"SearchTrigger",0,function(e){var n=e.hideIfDisabled,t=e.size,o=e.color,s=(0,r._)(e,["hideIfDisabled","size","color"]),f=(0,u.useSearchContext)(),m=f.setOpenSearch,h=f.enabled,v=(0,c.useTranslations)({note:"search trigger"});return n&&!h?null:(0,l.jsx)("button",{type:"button",className:(0,a.cn)((0,i.buttonVariants)({size:void 0===t?"icon-sm":t,color:void 0===o?"ghost":o}),s.className),"data-search":"","aria-label":v("Open Search",{note:"aria-label"}),onClick:function(){m(!0)},children:(0,l.jsx)(d.default,{})})}],6253754);var f=e.i(651682),m=e.i(6155034),h=(0,m.default)("airplay",[["path",{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",key:"ns4c3b"}],["path",{d:"m12 15 5 6H7Z",key:"14qnn2"}]]),v=(0,m.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),p=(0,m.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),x=e.i(6225913),g=e.i(5271645),b=e.i(5363178),j=e.i(7174080),y=(0,x.cva)("size-6.5 p-1.5 text-fd-muted-foreground",{variants:{active:{true:"bg-fd-accent text-fd-accent-foreground",false:"text-fd-muted-foreground"}}}),w=[["light",p],["dark",v],["system",h]];function N(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}e.s(["ThemeSwitch",0,function(e){var i=e.className,o=e.mode,s=(0,r._)(e,["className","mode"]),u=(0,b.useTheme)(),d=u.setTheme,m=u.theme,h=u.resolvedTheme,v=(0,f._)((0,g.useState)(!1),2),p=v[0],x=v[1],N=(0,c.useTranslations)({note:"theme switcher"}),_={light:N("Light",{note:"aria-label"}),dark:N("Dark",{note:"aria-label"}),system:N("System",{note:"aria-label"})},C=function(e){var n;(null==(n=document)?void 0:n.startViewTransition)?document.startViewTransition(function(){return(0,j.flushSync)(function(){return d(e)})}):d(e)};(0,g.useEffect)(function(){x(!0)},[]);var k=(0,a.cn)("inline-flex items-center rounded-full border p-1 overflow-hidden *:rounded-full",i);if("light-dark"===(void 0===o?"light-dark":o)){var M=p?h:null;return(0,l.jsx)("button",{className:k,"aria-label":N("Toggle Theme",{note:"aria-label"}),onClick:function(){return C("light"===M?"dark":"light")},"data-theme-toggle":"",children:w.map(function(e){var n=(0,f._)(e,2),t=n[0],r=n[1];if("system"!==t)return(0,l.jsx)(r,{fill:"currentColor",className:(0,a.cn)(y({active:M===t}))},t)})})}var S=p?m:null;return(0,l.jsx)("div",(0,t._)((0,n._)({className:k,"data-theme-toggle":""}
1,s),{children:w.map(function(e){var n=(0,f._)(e,2),t=n[0],r=n[1];return(0,l.jsx)("button",{"aria-label":_[t],className:(0,a.cn)(y({active:S===t})),onClick:function(){return C(t)},children:(0,l.jsx)(r,{className:"size-full",fill:"currentColor"})},t)})}))}],8284457),e.s(["isActive",0,function(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(e=N(e))===(n=N(n))||t&&n.startsWith("".concat(e,"/"))},"normalize",0,N],7600074)},2411150,3382125,e=>{"use strict";var n=e.i(651682),t=e.i(5271645);e.s(["useIsScrollTop",0,function(e){var r=e.enabled,a=void 0===r||r,i=(0,n._)((0,t.useState)(),2),o=i[0],s=i[1];return(0,t.useEffect)(function(){if(a){var e=function(){s(window.scrollY<10)};return e(),window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}}},[a]),o}],2411150);var r=(0,e.i(6155034).default)("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);e.s(["Languages",0,r],3382125)},6246872,e=>{"use strict";var n=(0,e.i(6155034).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",0,n],6246872)},975558,e=>{"use strict";var n=e.i(4344575);e.s(["ArrowUp",()=>n.default])},1243553,e=>{"use strict";var n=e.i(5535685);e.s(["Crown",()=>n.default])},4260289,e=>{"use strict";var n=e.i(8010252);e.s(["LayoutDashboard",()=>n.default])},292270,e=>{"use strict";var n=e.i(9518820);e.s(["LogOut",()=>n.default])},2263488,e=>{"use strict";var n=e.i(6768214);e.s(["Mail",()=>n.default])},2239616,e=>{"use strict";var n=e.i(9903446);e.s(["Settings",()=>n.default])},3283086,e=>{"use strict";var n=e.i(1576144);e.s(["Sparkles",()=>n.default])}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.