PageSourceSearch

https://toolsdk.ai/_next/static/chunks/8838fe1960ad86ea.js

js toolsdk.ai collected 2026-10-04 21:00:13 UTC 65,530 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,470152,e=>{"use strict";function t(e,[t,r]){return Math.min(r,Math.max(t,e))}e.s(["clamp",()=>t])},42746,e=>{"use strict";var t=e.i(843476),r=e.i(384050),n=e.i(757061),a=e.i(309864);e.i(816374);var o=e.i(974030),i=e.i(713548);function l({hideIfDisabled:e,size:a="icon-sm",color:l="ghost",...s}){let{setOpenSearch:d,enabled:c}=(0,n.useSearchContext)();return e&&!c?null:(0,t.jsx)("button",{type:"button",className:(0,o.cn)((0,i.buttonVariants)({size:a,color:l}),s.className),"data-search":"","aria-label":"Open Search",onClick:()=>{d(!0)},children:(0,t.jsx)(r.Search,{})})}function s({hideIfDisabled:e,...i}){let{enabled:l,hotKey:s,setOpenSearch:d}=(0,n.useSearchContext)(),{text:c}=(0,a.useI18n)();return e&&!l?null:(0,t.jsxs)("button",{type:"button","data-search-full":"",...i,className:(0,o.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",i.className),onClick:()=>{d(!0)},children:[(0,t.jsx)(r.Search,{className:"size-4"}),c.search,(0,t.jsx)("div",{className:"ms-auto inline-flex gap-0.5",children:s.map((e,r)=>(0,t.jsx)("kbd",{className:"rounded-md border bg-fd-background px-1.5",children:e.display},r))})]})}e.s(["LargeSearchToggle",()=>s,"SearchToggle",()=>l])},630255,e=>{"use strict";var t=e.i(843476),r=e.i(309864),n=e.i(281878);e.i(816374);var a=e.i(974030),o=e.i(713548);function i(e){let i=(0,r.useI18n)();if(!i.locales)throw Error("Missing `<I18nProvider />`");return(0,t.jsxs)(n.Popover,{children:[(0,t.jsx)(n.PopoverTrigger,{"aria-label":i.text.chooseLanguage,...e,className:(0,a.cn)((0,o.buttonVariants)({color:"ghost",className:"gap-1.5 p-1.5"}),e.className),children:e.children}),(0,t.jsxs)(n.PopoverContent,{className:"flex flex-col overflow-x-hidden p-0",children:[(0,t.jsx)("p",{className:"mb-1 p-2 text-xs font-medium text-fd-muted-foreground",children:i.text.chooseLanguage}),i.locales.map(e=>(0,t.jsx)("button",{type:"button",className:(0,a.cn)("p-2 text-start text-sm",e.locale===i.locale?"bg-fd-primary/10 font-medium text-fd-
1primary":"hover:bg-fd-accent hover:text-fd-accent-foreground"),onClick:()=>{i.onChange?.(e.locale)},children:e.name},e.locale))]})]})}function l(e){let n=(0,r.useI18n)(),a=n.locales?.find(e=>e.locale===n.locale)?.name;return(0,t.jsx)("span",{...e,children:a})}e.s(["LanguageToggle",()=>i,"LanguageToggleText",()=>l])},363759,e=>{"use strict";var t=e.i(843476),r=e.i(225913),n=e.i(384050),a=e.i(363178),o=e.i(271645);e.i(816374);var i=e.i(974030);let l=(0,r.cva)("size-6.5 rounded-full p-1.5 text-fd-muted-foreground",{variants:{active:{true:"bg-fd-accent text-fd-accent-foreground",false:"text-fd-muted-foreground"}}}),s=[["light",n.Sun],["dark",n.Moon],["system",n.Airplay]];function d({className:e,mode:r="light-dark",...n}){let{setTheme:d,theme:c,resolvedTheme:u}=(0,a.useTheme)(),[h,f]=(0,o.useState)(!1);(0,o.useEffect)(()=>{f(!0)},[]);let p=(0,i.cn)("inline-flex items-center rounded-full border p-1",e);if("light-dark"===r){let e=h?u:null;return(0,t.jsx)("button",{className:p,"aria-label":"Toggle Theme",onClick:()=>d("light"===e?"dark":"light"),"data-theme-toggle":"",children:s.map(([r,n])=>{if("system"!==r)return(0,t.jsx)(n,{fill:"currentColor",className:(0,i.cn)(l({active:e===r}))},r)})})}let m=h?c:null;return(0,t.jsx)("div",{className:p,"data-theme-toggle":"",...n,children:s.map(([e,r])=>(0,t.jsx)("button",{"aria-label":e,className:(0,i.cn)(l({active:m===e})),onClick:()=>d(e),children:(0,t.jsx)(r,{className:"size-full",fill:"currentColor"})},e))})}e.s(["ThemeToggle",()=>d])},310814,e=>{"use strict";var t=e.i(843476),r=e.i(363178),n=e.i(271645);function a({width:e=150,height:a=36,className:o=""}){let{resolvedTheme:i}=(0,r.useTheme)(),[l,s]=(0,n.useState)(!1);(0,n.useEffect)(()=>{s(!0)},[]);let d=l&&"dark"===i?"#ffffff":"#000000";return(0,t.jsxs)("svg",{width:e,height:a,viewBox:"0 0 150 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:o,"aria-label":"MCPSDK",children:[(0,t.jsx)("title",{children:"MCPSDK Logo"}),(0,t.jsxs)("g",{transform:"translate(1, 3) scale(0.059)",children:[(0,t.jsx)("path",{d:"M256 512C397.385 512 512 397.385 512 256C512 114.615 397.385 0 256 0C114.615 0 0 114.615 0 256C0 397.385 114.615 512 256 512Z",fill:d,opacity:"0.08"}),(0,t.jsx)("path",{d:"M429.156 222.531L361.525 183.483L293.895 144.435L226.218 105.341C224.99 104.638 223.6 104.268 222.184 104.268C220.769 104.268 219.379 104.638 218.151 105.341L150.52 144.435C149.299 145.14 148.285 146.155 147.58 147.378C146.876 148.6 146.507 149.986 146.509 151.396V224.836L82.8897 261.717C81.6591 262.427 80.6366 263.448 79.9246 264.678C79.2127 265.908 78.8362 267.303 78.8328 268.724V346.681C78.8488 348.104 79.2411 349.498 79.9698 350.721C80.6985 351.943 81.7377 352.951 82.9819 353.642L150.612 392.69C151.834 393.412 153.227 393.793 154.646 393.793C156.065 393.793 157.458 393.412 158.68 392.69L226.311 353.642L289.93 316.762L353.55 353.642C354.772 354.364 356.165 354.745 357.584 354.745C359.003 354.745 360.396 354.364 361.618 353.642L429.248 314.595C430.484 313.898 431.514 312.887 432.234 311.665C432.954 310.443 433.34 309.052 433.351 307.633V229.261C433.291 227.873 432.873 226.524 432.138 225.345C431.403 224.166 430.376 223.196 429.156 222.531ZM409.01 229.492L357.468 259.227L305.973 229.492L357.468 199.757L409.01 229.492ZM162.645 165.365L184.405 177.905L206.118 190.444L162.691 215.523L162.645 165.365ZM341.149 190.444L289.838 220.179L238.343 190.444L289.838 160.709L341.149 190.444ZM297.906 243.507L349.401 273.242V332.713L297.906 302.977V243.507ZM222.208 121.661L273.703 151.396L222.208 181.132L170.574 151.396L222.208 121.661ZM146.509 371.76L94.9682 342.025V282.554L146.509 312.29V371.76ZM103.036 268.586L158.357 236.315L221.977 199.434L273.472 229.169L218.151 261.44L154.577 298.321L103.036 268.586ZM218.289 339.674L162.967 371.945V312.29L226.541 275.409L281.862 243.138V302.608L218.289 339.674ZM417.216 302.793L365.536 332.713V273.242L417.077 243.507L417.216 302.793Z",fill:d})]}),(0,t.jsx)("text",{x:"35",y:"24",fontFamily:"system-ui, -apple-system, 'Segoe UI', sans-serif",fontSize:"19",fontWeight:"700",fill:d,letterSpacing:"-0.03em",children:"MCPSDK"})]})}function o({size:e=32,className:a=""}){let{resolvedTheme:o}
1=(0,r.useTheme)(),[i,l]=(0,n.useState)(!1);(0,n.useEffect)(()=>{l(!0)},[]);let s=i&&"dark"===o?"#ffffff":"#000000";return(0,t.jsxs)("svg",{width:e,height:e,viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,"aria-label":"MCPSDK Icon",children:[(0,t.jsx)("title",{children:"MCPSDK Logo"}),(0,t.jsxs)("g",{clipPath:"url(#clip0_logo_icon)",children:[(0,t.jsx)("path",{d:"M256 512C397.385 512 512 397.385 512 256C512 114.615 397.385 0 256 0C114.615 0 0 114.615 0 256C0 397.385 114.615 512 256 512Z",fill:s,opacity:"0.1"}),(0,t.jsx)("path",{d:"M429.156 222.531L361.525 183.483L293.895 144.435L226.218 105.341C224.99 104.638 223.6 104.268 222.184 104.268C220.769 104.268 219.379 104.638 218.151 105.341L150.52 144.435C149.299 145.14 148.285 146.155 147.58 147.378C146.876 148.6 146.507 149.986 146.509 151.396V224.836L82.8897 261.717C81.6591 262.427 80.6366 263.448 79.9246 264.678C79.2127 265.908 78.8362 267.303 78.8328 268.724V346.681C78.8488 348.104 79.2411 349.498 79.9698 350.721C80.6985 351.943 81.7377 352.951 82.9819 353.642L150.612 392.69C151.834 393.412 153.227 393.793 154.646 393.793C156.065 393.793 157.458 393.412 158.68 392.69L226.311 353.642L289.93 316.762L353.55 353.642C354.772 354.364 356.165 354.745 357.584 354.745C359.003 354.745 360.396 354.364 361.618 353.642L429.248 314.595C430.484 313.898 431.514 312.887 432.234 311.665C432.954 310.443 433.34 309.052 433.351 307.633V229.261C433.291 227.873 432.873 226.524 432.138 225.345C431.403 224.166 430.376 223.196 429.156 222.531ZM409.01 229.492L357.468 259.227L305.973 229.492L357.468 199.757L409.01 229.492ZM162.645 165.365L184.405 177.905L206.118 190.444L162.691 215.523L162.645 165.365ZM341.149 190.444L289.838 220.179L238.343 190.444L289.838 160.709L341.149 190.444ZM297.906 243.507L349.401 273.242V332.713L297.906 302.977V243.507ZM222.208 121.661L273.703 151.396L222.208 181.132L170.574 151.396L222.208 121.661ZM146.509 371.76L94.9682 342.025V282.554L146.509 312.29V371.76ZM103.036 268.586L158.357 236.315L221.977 199.434L273.472 229.169L218.151 261.44L154.577 298.321L103.036 268.586ZM218.289 339.674L162.967 371.945V312.29L226.541 275.409L281.862 243.138V302.608L218.289 339.674ZM417.216 302.793L365.536 332.713V273.242L417.077 243.507L417.216 302.793Z",fill:s})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_logo_icon",children:(0,t.jsx)("rect",{width:"512",height:"512",fill:"white"})})})]})}e.s(["Logo",()=>a,"LogoIcon",()=>o])},538570,e=>{"use strict";var t=e.i(843476);function r(){return(0,t.jsxs)("a",{href:"https://github.com/toolsdk-ai/toolsdk-mcp-registry",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground h-9 w-9","aria-label":"View on GitHub",title:"View on GitHub",children:[(0,t.jsx)("span",{className:"sr-only",children:"View on GitHub"}),(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-[1.2rem] w-[1.2rem]","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}),(0,t.jsx)("path",{d:"M9 18c-4.51 2-5-2-7-2"})]})]})}e.s(["GitHubButton",()=>r])},995850,e=>{"use strict";var t=e.i(843476),r=e.i(618566),n=e.i(478190),a=e.i(51887),o=e.i(830023),i=e.i(643531);let l=(0,e.i(475254).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"}]]);function s({languages:e,currentLang:r,onLanguageChange:n,showNativeNames:s=!0,iconSize:d=16,mode:c="with-text",className:u}){let h=e.find(e=>e.code===r)||e[0];return(0,t.jsxs)(a.DropdownMenu,{children:[(0,t.jsxs)(a.DropdownMenuTrigger,{className:(0,o.cn)("flex items-center gap-2 px-3 py-2 text-sm font-medium rounded-lg bg-transparent hover:bg-accent/50 transition-colors outline-none cursor-pointer","icon-only"===c&&"px-2 py-2",u),children:[(0,t.jsx)(l,{size:d,className:"opacity-70"}),"with-text"===c&&(0,t.jsx)("span",{className:"hidden sm:inline",children:s&&h?.nativeName?h.nativeName:h?.name||"English"})]}),(0,t.jsx)(a.DropdownMenuContent,{align:"start",className:"w-52 bg-background border border-border shadow-lg",children:e.map(e=>{let l=r===e.code;return(0,t.jsxs)(a.DropdownMenuItem,{onClick:()=>{var t;(t=e.code)!==r&&n(t)},className:(0,o.cn)("flex items-center justify-between gap-3 w-full cursor-pointer",l&&"bg-accent"),children:[(0,t.jsx)("span",{className:(0,o.cn)(l&&"font-semibold"),children:s&&e.nativeName?e.nativeName:e.name}),l&&(0,t.jsx)(i.Check,{size:16,className:"flex-shrink-0"})]},e.code)})})]})}var d=e.i(966036),c=e.i(390059);
1let u=c.SUPPORTED_LOCALES.map(e=>({code:e,name:c.LOCALE_DISPLAY_NAMES[e],nativeName:c.LOCALE_DISPLAY_NAMES[e]}));function h(){let e=(0,r.usePathname)(),{locale:a}=(0,d.useI18nContext)();return(0,t.jsx)(s,{languages:u,currentLang:a,onLanguageChange:t=>{var r,a;let o,i;(0,n.setLanguageCookie)(t);let l=(r=e,a=t,i=(o=r.split("/").filter(Boolean))[0],c.SUPPORTED_LOCALES.includes(i)&&o.shift(),"en"!==a&&o.unshift(a),`/${o.join("/")}`||"/");window.location.href=l},mode:"icon-only"})}e.s(["NavLanguageSwitcher",()=>h],995850)},784468,e=>{"use strict";var t=e.i(843476),r=e.i(605629),n=e.i(522016);e.i(15683),e.i(32566),e.i(561244);var a=e.i(932960),o=e.i(966036),i=e.i(70713),l=e.i(690206);function s(){let{data:e}=(0,i.useSession)(),s=!!e?.user,{LL:d}=(0,o.useI18nContext)(),{mode:c,requiresInvite:u,isLoading:h}=(0,l.useAccessMode)();return h?(0,t.jsx)("div",{className:"flex items-center gap-2"}):(0,t.jsx)("div",{className:"flex items-center gap-2",children:s?(0,t.jsx)(a.UserButton,{}):u?(0,t.jsx)(n.default,{href:"/waitlist/apply",children:(0,t.jsx)(r.Button,{size:"sm",variant:"default",children:"Get Early Access"})}):(0,t.jsx)(n.default,{href:"/sign-in",children:(0,t.jsx)(r.Button,{size:"sm",children:d.nav.signIn()})})})}e.s(["NavChildren",()=>s],784468)},816374,974030,e=>{"use strict";e.s([],816374);var t=e.i(919056);e.s(["cn",()=>t.twMerge],974030)},384050,e=>{"use strict";var t=e.i(843476),r=e.i(271645);e.i(816374);var n=e.i(974030);let a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},o=(e,o)=>{let i=(0,r.forwardRef)(({className:e,size:i=24,color:l="currentColor",children:s,...d},c)=>(0,t.jsxs)("svg",{ref:c,...a,width:i,height:i,stroke:l,className:(0,n.cn)("lucide",e),...d,children:[o.map(([e,t])=>(0,r.createElement)(e,t)),s]}));return i.displayName=e,i},i=o("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),l=o("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"}]]),s=o("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),d=o("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),c=o("search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),u=o("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),h=o("moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),f=o("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"}]]),p=o("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"}]]);o("menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),o("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),o("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),o("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),o("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);let m=o("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);o("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),o("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}
1]]),o("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);let v=o("clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"1"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"2"}]]);o("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);let g=o("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]),x=o("text",[["path",{d:"M15 18H3",key:"olowqp"}],["path",{d:"M17 6H3",key:"16j9eg"}],["path",{d:"M21 12H3",key:"2avoz0"}]]);o("file",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]),o("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),o("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]),o("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]),o("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);let b=o("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]),y=o("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),w=o("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);o("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),o("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),o("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),e.s(["Airplay",0,p,"Check",0,m,"ChevronDown",0,i,"ChevronLeft",0,w,"ChevronRight",0,y,"ChevronsUpDown",0,d,"Clipboard",0,v,"Edit",0,b,"ExternalLink",0,u,"Hash",0,g,"Languages",0,l,"Moon",0,h,"Search",0,c,"Sidebar",0,s,"Sun",0,f,"Text",0,x])},713548,e=>{"use strict";var t=e.i(225913);let r={primary:"bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80",outline:"border hover:bg-fd-accent hover:text-fd-accent-foreground",ghost:"hover:bg-fd-accent hover:text-fd-accent-foreground",secondary:"border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"},n=(0,t.cva)("inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring",{variants:{variant:r,color:r,size:{sm:"gap-1 px-2 py-1.5 text-xs",icon:"p-1.5 [&_svg]:size-5","icon-sm":"p-1.5 [&_svg]:size-4.5","icon-xs":"p-1 [&_svg]:size-4"}}});e.s(["buttonVariants",0,n])},821039,717882,e=>{"use strict";
1var t=e.i(905467),r=e.i(271645),n=e.i(843476),a=(0,r.forwardRef)(({href:e="#",external:r=e.match(/^\w+:/)||e.startsWith("//"),prefetch:a,children:o,...i},l)=>r?(0,n.jsx)("a",{ref:l,href:e,rel:"noreferrer noopener",target:"_blank",...i,children:o}):(0,n.jsx)(t.Link,{ref:l,href:e,prefetch:a,...i,children:o}));a.displayName="Link",e.s(["Link",()=>a],717882),e.i(901139),e.s([],821039)},574130,954005,e=>{"use strict";var t=e.i(717882);function r(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function n(e,t,a=!0){return(e=r(e))===(t=r(t))||a&&t.startsWith(`${e}/`)}function a(e,t){return e.urls?e.urls.has(r(t)):n(e.url,t,!0)}e.s(["default",()=>t.Link],574130),e.s(["isActive",()=>n,"isTabActive",()=>a],954005)},440748,e=>{"use strict";var t=e.i(843476);e.i(299382);var r=e.i(905467),n=e.i(954005);e.i(821039);var a=e.i(574130);function o({ref:e,item:o,...i}){let l=(0,r.usePathname)(),s=o.active??"url",d="none"!==s&&(0,n.isActive)(o.url,l,"nested-url"===s);return(0,t.jsx)(a.default,{ref:e,href:o.url,external:o.external,...i,"data-active":d,children:i.children})}e.s(["LinkItem",()=>o])},281878,e=>{"use strict";var t=e.i(843476),r=e.i(178761),n=e.i(271645);e.i(816374);var a=e.i(974030);let o=r.Root,i=r.Trigger,l=n.forwardRef(({className:e,align:n="center",sideOffset:o=4,...i},l)=>(0,t.jsx)(r.Portal,{children:(0,t.jsx)(r.Content,{ref:l,align:n,sideOffset:o,side:"bottom",className:(0,a.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",e),...i})}));l.displayName=r.Content.displayName,r.PopoverClose,e.s(["Popover",()=>o,"PopoverContent",()=>l,"PopoverTrigger",()=>i])},411150,e=>{"use strict";var t=e.i(271645);function r({enabled:e=!0}){let[r,n]=(0,t.useState)();return(0,t.useEffect)(()=>{if(!e)return;let t=()=>{n(window.scrollY<10)};return t(),window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[e]),r}e.s(["useIsScrollTop",()=>r])},690206,e=>{"use strict";e.i(843476),e.i(271645);var t=e.i(729622);function r(){let{data:e,isLoading:r}=t.trpc.systemAdmin.accessMode.getCurrent.useQuery();return{mode:e?.mode??"PUBLIC",isPublic:e?.mode==="PUBLIC",isInviteOnly:e?.mode==="INVITE_ONLY",isWaitingList:e?.mode==="WAITING_LIST",requiresInvite:e?.mode==="INVITE_ONLY"||e?.mode==="WAITING_LIST",isLoading:r}}e.s(["useAccessMode",()=>r])},643531,e=>{"use strict";var t=e.i(678745);e.s(["Check",()=>t.default])},178761,e=>{"use strict";var t=e.i(271645),r=e.i(981140),n=e.i(820783),a=e.i(30030),o=e.i(726330),i=e.i(303536),l=e.i(765491),s=e.i(610772),d=e.i(853660),c=e.i(774606),u=e.i(296626),h=e.i(248425),f=e.i(991918),p=e.i(369340),m=e.i(186312),v=e.i(985369),g=e.i(843476),x="Popover",[b,y]=(0,a.createContextScope)(x,[d.createPopperScope]),w=(0,d.createPopperScope)(),[C,j]=b(x),k=e=>{let{__scopePopover:r,children:n,open:a,defaultOpen:o,onOpenChange:i,modal:l=!1}=e,c=w(r),u=t.useRef(null),[h,f]=t.useState(!1),[m,v]=(0,p.useControllableState)({prop:a,defaultProp:o??!1,onChange:i,caller:x});return(0,g.jsx)(d.Root,{...c,children:(0,g.jsx)(C,{scope:r,contentId:(0,s.useId)(),triggerRef:u,open:m,onOpenChange:v,onOpenToggle:t.useCallback(()=>v(e=>!e),[v]),hasCustomAnchor:h,onCustomAnchorAdd:t.useCallback(()=>f(!0),[]),onCustomAnchorRemove:t.useCallback(()=>f(!1),[]),modal:l,children:n})})};k.displayName=x;var L="PopoverAnchor";t.forwardRef((e,r)=>{let{__scopePopover:n,...a}=e,o=j(L,n),i=w(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:s}=o;return t.useEffect(()=>(l(),()=>s()),[l,s]),(0,g.jsx)(d.Anchor,{...i,...a,ref:r})}).displayName=L;var S="PopoverTrigger",N=t.forwardRef((e,t)=>{let{__scopePopover:a,...o}=e,i=j(S,a),l=w(a),s=(0,n.useComposedRefs)(t,i.triggerRef),c=(0,g.jsx)(h.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":F(i.open),...o,ref:s,onClick:(0,r.composeEventHandlers)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?c:(0,g.jsx)(d.Anchor,{asChild:!0,...l,children:c})});N.displayName=S;var P="PopoverPortal",[M,R]=b(P,{forceMount:void 0}),T=e=>{let{__scopePopover:t,forceMount:r,children:n,container:a}=e,o=j(P,t);return(0,g.jsx)(M,{scope:t,forceMount:r,children:(0,g.jsx)(u.Presence,{present:r||o.open,children:(0,g.jsx)(c.Portal,{asChild:!0,container:a,children:n})})})};T.displayName=P;var E="PopoverContent",D=t.forwardRef((e,t)=>
1{let r=R(E,e.__scopePopover),{forceMount:n=r.forceMount,...a}=e,o=j(E,e.__scopePopover);return(0,g.jsx)(u.Presence,{present:n||o.open,children:o.modal?(0,g.jsx)(I,{...a,ref:t}):(0,g.jsx)(H,{...a,ref:t})})});D.displayName=E;var A=(0,f.createSlot)("PopoverContent.RemoveScroll"),I=t.forwardRef((e,a)=>{let o=j(E,e.__scopePopover),i=t.useRef(null),l=(0,n.useComposedRefs)(a,i),s=t.useRef(!1);return t.useEffect(()=>{let e=i.current;if(e)return(0,m.hideOthers)(e)},[]),(0,g.jsx)(v.RemoveScroll,{as:A,allowPinchZoom:!0,children:(0,g.jsx)(_,{...e,ref:l,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,r.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:(0,r.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;s.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,r.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),H=t.forwardRef((e,r)=>{let n=j(E,e.__scopePopover),a=t.useRef(!1),o=t.useRef(!1);return(0,g.jsx)(_,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(a.current||n.triggerRef.current?.focus(),t.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let r=t.target;n.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),_=t.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:f,onInteractOutside:p,...m}=e,v=j(E,r),x=w(r);return(0,i.useFocusGuards)(),(0,g.jsx)(l.FocusScope,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:s,children:(0,g.jsx)(o.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:p,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:f,onDismiss:()=>v.onOpenChange(!1),children:(0,g.jsx)(d.Content,{"data-state":F(v.open),role:"dialog",id:v.contentId,...x,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),z="PopoverClose",O=t.forwardRef((e,t)=>{let{__scopePopover:n,...a}=e,o=j(z,n);return(0,g.jsx)(h.Primitive.button,{type:"button",...a,ref:t,onClick:(0,r.composeEventHandlers)(e.onClick,()=>o.onOpenChange(!1))})});function F(e){return e?"open":"closed"}O.displayName=z,t.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=w(r);return(0,g.jsx)(d.Arrow,{...a,...n,ref:t})}).displayName="PopoverArrow",e.s(["Content",()=>D,"PopoverClose",()=>O,"Portal",()=>T,"Root",()=>k,"Trigger",()=>N])},191909,e=>{"use strict";let t=e=>"object"==typeof e&&null!=e&&1===e.nodeType,r=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,n=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n,a=getComputedStyle(e,null);return r(a.overflowY,t)||r(a.overflowX,t)||!!(n=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e))&&(n.clientHeight<e.scrollHeight||n.clientWidth<e.scrollWidth)}return!1},a=(e,t,r,n,a,o,i,l)=>o<e&&i>t||o>e&&i<t?0:o<=e&&l<=r||i>=t&&l>=r?o-e-n:i>t&&l<r||o<e&&l>r?i-t+a:0,o=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},i=(e,r)=>{var i,l,s,d;let c;if("undefined"==typeof document)return[];let{scrollMode:u,block:h,inline:f,boundary:p,skipOverflowHiddenElements:m}=r,v="function"==typeof p?p:e=>e!==p;if(!t(e))throw TypeError("Invalid target");let g=document.scrollingElement||document.documentElement,x=[],b=e;for(;t(b)&&v(b);){if((b=o(b))===g){x.push(b);break}null!=b&&b===document.body&&n(b)&&!n(document.documentElement)||null!=b&&n(b,m)&&x.push(b)}
1let y=null!=(l=null==(i=window.visualViewport)?void 0:i.width)?l:innerWidth,w=null!=(d=null==(s=window.visualViewport)?void 0:s.height)?d:innerHeight,{scrollX:C,scrollY:j}=window,{height:k,width:L,top:S,right:N,bottom:P,left:M}=e.getBoundingClientRect(),{top:R,right:T,bottom:E,left:D}={top:parseFloat((c=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(c.scrollMarginRight)||0,bottom:parseFloat(c.scrollMarginBottom)||0,left:parseFloat(c.scrollMarginLeft)||0},A="start"===h||"nearest"===h?S-R:"end"===h?P+E:S+k/2-R+E,I="center"===f?M+L/2-D+T:"end"===f?N+T:M-D,H=[];for(let e=0;e<x.length;e++){let t=x[e],{height:r,width:o,top:i,right:l,bottom:s,left:d}=t.getBoundingClientRect();if("if-needed"===u&&S>=0&&M>=0&&P<=w&&N<=y&&(t===g&&!n(t)||S>=i&&P<=s&&M>=d&&N<=l))break;let c=getComputedStyle(t),p=parseInt(c.borderLeftWidth,10),m=parseInt(c.borderTopWidth,10),v=parseInt(c.borderRightWidth,10),b=parseInt(c.borderBottomWidth,10),R=0,T=0,E="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-v:0,D="offsetHeight"in t?t.offsetHeight-t.clientHeight-m-b:0,_="offsetWidth"in t?0===t.offsetWidth?0:o/t.offsetWidth:0,z="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(g===t)R="start"===h?A:"end"===h?A-w:"nearest"===h?a(j,j+w,w,m,b,j+A,j+A+k,k):A-w/2,T="start"===f?I:"center"===f?I-y/2:"end"===f?I-y:a(C,C+y,y,p,v,C+I,C+I+L,L),R=Math.max(0,R+j),T=Math.max(0,T+C);else{R="start"===h?A-i-m:"end"===h?A-s+b+D:"nearest"===h?a(i,s,r,m,b+D,A,A+k,k):A-(i+r/2)+D/2,T="start"===f?I-d-p:"center"===f?I-(d+o/2)+E/2:"end"===f?I-l+v+E:a(d,l,o,p,v+E,I,I+L,L);let{scrollLeft:e,scrollTop:n}=t;R=0===z?0:Math.max(0,Math.min(n+R/z,t.scrollHeight-r/z+D)),T=0===_?0:Math.max(0,Math.min(e+T/_,t.scrollWidth-o/_+E)),A+=n-R,I+=e-T}H.push({el:t,top:R,left:T})}return H};function l(e,t){let r;if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n={top:parseFloat((r=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(r.scrollMarginRight)||0,bottom:parseFloat(r.scrollMarginBottom)||0,left:parseFloat(r.scrollMarginLeft)||0};if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(i(e,t));let a="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:r,top:o,left:l}of i(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=o-n.top+n.bottom,t=l-n.left+n.right;r.scroll({top:e,left:t,behavior:a})}}e.s(["default",()=>l],191909)},14804,e=>{"use strict";function t(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})}}e.s(["mergeRefs",()=>t])},647873,e=>{"use strict";e.i(821039);var t=e.i(717882);e.s(["default",()=>t.Link])},687607,e=>{"use strict";var t=e.i(271645),r=e.i(981140),n=e.i(30030),a=e.i(369340),o=e.i(934620),i=e.i(820783),l=e.i(248425),s=e.i(296626),d=e.i(610772),c=e.i(843476),u="Collapsible",[h,f]=(0,n.createContextScope)(u),[p,m]=h(u),v=t.forwardRef((e,r)=>{let{__scopeCollapsible:n,open:o,defaultOpen:i,disabled:s,onOpenChange:h,...f}=e,[m,v]=(0,a.useControllableState)({prop:o,defaultProp:i??!1,onChange:h,caller:u});return(0,c.jsx)(p,{scope:n,disabled:s,contentId:(0,d.useId)(),open:m,onOpenToggle:t.useCallback(()=>v(e=>!e),[v]),children:(0,c.jsx)(l.Primitive.div,{"data-state":C(m),"data-disabled":s?"":void 0,...f,ref:r})})});v.displayName=u;var g="CollapsibleTrigger",x=t.forwardRef((e,t)=>{let{__scopeCollapsible:n,...a}=e,o=m(g,n);return(0,c.jsx)(l.Primitive.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":C(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...a,ref:t,onClick:(0,r.composeEventHandlers)(e.onClick,o.onOpenToggle)})});x.displayName=g;var b="CollapsibleContent",y=t.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=m(b,e.__scopeCollapsible);return(0,c.jsx)(s.Presence,{present:r||a.open,children:({present:e})=>(0,c.jsx)(w,{...n,ref:t,present:e})})});y.displayName=b;var w=t.forwardRef((e,r)=>{let{__scopeCollapsible:n,present:a,children:s,...d}=e,u=m(b,n),[h,f]=t.useState(a),p=t.useRef(null),v=(0,i.useComposedRefs)(r,p),g=t.useRef(0),x=g.current,y=t.useRef(0),w=y.current,j=u.open||h,k=t.useRef(j),L=t.useRef(void 0);return t.useEffect(()=>{let e=requestAnimationFrame(()=>k.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,o.useLayoutEffect)(()=>{let e=p.current;if(e){L.current=L.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,y.current=t.width,k.current||(e.style.transitionDuration=L.current.transitionDuration,e.style.animationName=L.current.animationName),f(a)}},[u.open,a]),(0,c.jsx)(l.Primitive.div,{"data-state":C(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!j,...d,ref:v,style:{"--radix-collapsible-content-height":x?`${x}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:j&&s})});function C(e){return e?"open":"closed"}e.s(["CollapsibleContent",()=>y,"CollapsibleTrigger",()=>x,"Content",()=>y,"Root",()=>v,"Trigger",()=>x])},843849,437845,e=>{"use strict";var t=e.i(271645);function r(e,n,a=function e(t,r){return Array.isArray(t)&&Array.isArray(r)?r.length!==t.length||t.some((t,n)=>e(t,r[n])):t!==r}){let[o,i]=(0,t.useState)(e);a(o,e)&&(n(e,o),i(e))}e.s(["useOnChange",()=>r],437845),e.i(901139),e.s([],843849)},848798,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(248425),a=e.i(296626),o=e.i(30030),i=e.i(820783),l=e.i(30207),s=e.i(586318),d=e.i(934620),c=e.i(470152),u=e.i(981140),h="ScrollArea",[f,p]=(0,o.createContextScope)(h),[m,v]=f(h),g=r.forwardRef((e,a)=>{let{__scopeScrollArea:o,type:l="hover",dir:d,scrollHideDelay:c=600,...u}=e,[h,f]=r.useState(null),[p,v]=r.useState(null),[g,x]=r.useState(null),[b,y]=r.useState(null),[w,C]=r.useState(null),[j,k]=r.useState(0),[L,S]=r.useState(0),[N,P]=r.useState(!1),[M,R]=r.useState(!1),T=(0,i.useComposedRefs)(a,e=>f(e)),E=(0,s.useDirection)(d);return(0,t.jsx)(m,{scope:o,type:l,dir:E,scrollHideDelay:c,scrollArea:h,viewport:p,onViewportChange:v,content:g,onContentChange:x,scrollbarX:b,onScrollbarXChange:y,scrollbarXEnabled:N,onScrollbarXEnabledChange:P,scrollbarY:w,onScrollbarYChange:C,scrollbarYEnabled:M,onScrollbarYEnabledChange:R,onCornerWidthChange:k,onCornerHeight
1Change:S,children:(0,t.jsx)(n.Primitive.div,{dir:E,...u,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":j+"px","--radix-scroll-area-corner-height":L+"px",...e.style}})})});g.displayName=h;var x="ScrollAreaViewport",b=r.forwardRef((e,a)=>{let{__scopeScrollArea:o,children:l,nonce:s,...d}=e,c=v(x,o),u=r.useRef(null),h=(0,i.useComposedRefs)(a,u,c.onViewportChange);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),(0,t.jsx)(n.Primitive.div,{"data-radix-scroll-area-viewport":"",...d,ref:h,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,t.jsx)("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});b.displayName=x;var y="ScrollAreaScrollbar",w=r.forwardRef((e,n)=>{let{forceMount:a,...o}=e,i=v(y,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:s}=i,d="horizontal"===e.orientation;return r.useEffect(()=>(d?l(!0):s(!0),()=>{d?l(!1):s(!1)}),[d,l,s]),"hover"===i.type?(0,t.jsx)(C,{...o,ref:n,forceMount:a}):"scroll"===i.type?(0,t.jsx)(j,{...o,ref:n,forceMount:a}):"auto"===i.type?(0,t.jsx)(k,{...o,ref:n,forceMount:a}):"always"===i.type?(0,t.jsx)(L,{...o,ref:n}):null});w.displayName=y;var C=r.forwardRef((e,n)=>{let{forceMount:o,...i}=e,l=v(y,e.__scopeScrollArea),[s,d]=r.useState(!1);return r.useEffect(()=>{let e=l.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),d(!0)},n=()=>{t=window.setTimeout(()=>d(!1),l.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}},[l.scrollArea,l.scrollHideDelay]),(0,t.jsx)(a.Presence,{present:o||s,children:(0,t.jsx)(k,{"data-state":s?"visible":"hidden",...i,ref:n})})}),j=r.forwardRef((e,n)=>{var o;let{forceMount:i,...l}=e,s=v(y,e.__scopeScrollArea),d="horizontal"===e.orientation,c=B(()=>f("SCROLL_END"),100),[h,f]=(o={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},r.useReducer((e,t)=>o[e][t]??e,"hidden"));return r.useEffect(()=>{if("idle"===h){let e=window.setTimeout(()=>f("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[h,s.scrollHideDelay,f]),r.useEffect(()=>{let e=s.viewport,t=d?"scrollLeft":"scrollTop";if(e){let r=e[t],n=()=>{let n=e[t];r!==n&&(f("SCROLL"),c()),r=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[s.viewport,d,f,c]),(0,t.jsx)(a.Presence,{present:i||"hidden"!==h,children:(0,t.jsx)(L,{"data-state":"hidden"===h?"hidden":"visible",...l,ref:n,onPointerEnter:(0,u.composeEventHandlers)(e.onPointerEnter,()=>f("POINTER_ENTER")),onPointerLeave:(0,u.composeEventHandlers)(e.onPointerLeave,()=>f("POINTER_LEAVE"))})})}),k=r.forwardRef((e,n)=>{let o=v(y,e.__scopeScrollArea),{forceMount:i,...l}=e,[s,d]=r.useState(!1),c="horizontal"===e.orientation,u=B(()=>{if(o.viewport){let e=o.viewport.offsetWidth<o.viewport.scrollWidth,t=o.viewport.offsetHeight<o.viewport.scrollHeight;d(c?e:t)}},10);return Z(o.viewport,u),Z(o.content,u),(0,t.jsx)(a.Presence,{present:i||s,children:(0,t.jsx)(L,{"data-state":s?"visible":"hidden",...l,ref:n})})}),L=r.forwardRef((e,n)=>{let{orientation:a="vertical",...o}=e,i=v(y,e.__scopeScrollArea),l=r.useRef(null),s=r.useRef(0),[d,c]=r.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=z(d.viewport,d.content),h={...o,sizes:d,onSizesChange:c,hasThumb:!!(u>0&&u<1),onThumbChange:e=>l.current=e,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:e=>s.current=e};function f(e,t){return function(e,t,r,n="ltr"){let a=O(r),o=t||a/2,i=r.scrollbar.paddingStart+o,l=r.scrollbar.size-r.scrollbar.paddingEnd-(a-o),s=r.content-r.viewport;return V([i,l],"ltr"===n?[0,s]:[-1*s,0])(e)}(e,s.current,d,t)}return"horizontal"===a?(0,t.jsx)(S,{...h,ref:n,onThumbPositionChange:()=>{if(i.viewport&&l.current){let e=F(i.viewport.scrollLeft,d,i.dir);l.current.style.transform=`translate3d(${e}px, 0, 0)`}}
1,onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=f(e,i.dir))}}):"vertical"===a?(0,t.jsx)(N,{...h,ref:n,onThumbPositionChange:()=>{if(i.viewport&&l.current){let e=F(i.viewport.scrollTop,d);l.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=f(e))}}):null}),S=r.forwardRef((e,n)=>{let{sizes:a,onSizesChange:o,...l}=e,s=v(y,e.__scopeScrollArea),[d,c]=r.useState(),u=r.useRef(null),h=(0,i.useComposedRefs)(n,u,s.onScrollbarXChange);return r.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),(0,t.jsx)(R,{"data-orientation":"horizontal",...l,ref:h,sizes:a,style:{bottom:0,left:"rtl"===s.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===s.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":O(a)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(s.viewport){var n,a;let o=s.viewport.scrollLeft+t.deltaX;e.onWheelScroll(o),n=o,a=r,n>0&&n<a&&t.preventDefault()}},onResize:()=>{u.current&&s.viewport&&d&&o({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:_(d.paddingLeft),paddingEnd:_(d.paddingRight)}})}})}),N=r.forwardRef((e,n)=>{let{sizes:a,onSizesChange:o,...l}=e,s=v(y,e.__scopeScrollArea),[d,c]=r.useState(),u=r.useRef(null),h=(0,i.useComposedRefs)(n,u,s.onScrollbarYChange);return r.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),(0,t.jsx)(R,{"data-orientation":"vertical",...l,ref:h,sizes:a,style:{top:0,right:"ltr"===s.dir?0:void 0,left:"rtl"===s.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":O(a)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(s.viewport){var n,a;let o=s.viewport.scrollTop+t.deltaY;e.onWheelScroll(o),n=o,a=r,n>0&&n<a&&t.preventDefault()}},onResize:()=>{u.current&&s.viewport&&d&&o({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:_(d.paddingTop),paddingEnd:_(d.paddingBottom)}})}})}),[P,M]=f(y),R=r.forwardRef((e,a)=>{let{__scopeScrollArea:o,sizes:s,hasThumb:d,onThumbChange:c,onThumbPointerUp:h,onThumbPointerDown:f,onThumbPositionChange:p,onDragScroll:m,onWheelScroll:g,onResize:x,...b}=e,w=v(y,o),[C,j]=r.useState(null),k=(0,i.useComposedRefs)(a,e=>j(e)),L=r.useRef(null),S=r.useRef(""),N=w.viewport,M=s.content-s.viewport,R=(0,l.useCallbackRef)(g),T=(0,l.useCallbackRef)(p),E=B(x,10);function D(e){L.current&&m({x:e.clientX-L.current.left,y:e.clientY-L.current.top})}return r.useEffect(()=>{let e=e=>{let t=e.target;C?.contains(t)&&R(e,M)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[N,C,M,R]),r.useEffect(T,[s,T]),Z(C,E),Z(w.content,E),(0,t.jsx)(P,{scope:o,scrollbar:C,hasThumb:d,onThumbChange:(0,l.useCallbackRef)(c),onThumbPointerUp:(0,l.useCallbackRef)(h),onThumbPositionChange:T,onThumbPointerDown:(0,l.useCallbackRef)(f),children:(0,t.jsx)(n.Primitive.div,{...b,ref:k,style:{position:"absolute",...b.style},onPointerDown:(0,u.composeEventHandlers)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),L.current=C.getBoundingClientRect(),S.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),D(e))}),onPointerMove:(0,u.composeEventHandlers)(e.onPointerMove,D),onPointerUp:(0,u.composeEventHandlers)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=S.current,w.viewport&&(w.viewport.style.scrollBehavior=""),L.current=null})})})}),T="ScrollAreaThumb",E=r.forwardRef((e,r)=>{let{forceMount:n,...o}=e,i=M(T,e.__scopeScrollArea);return(0,t.jsx)(a.Presence,{present:n||i.hasThumb,children:(0,t.jsx)(D,{ref:r,...o})})}),D=r.forwardRef((e,a)=>{let{__scopeScrollArea:o,style:l,...s}=e,d=v(T,o),c=M(T,o),{onThumbPositionChange:h}=c,f=(0,i.useComposedRefs)(a,e=>c.onThumbChange(e)),p=r.useRef(void 0),m=B(()=>{p.current&&(p.current(),p.current=void 0)},100);return r.useEffect(()=>{let e=d.viewport;if(e){let t=()=>{m(),p.current||(p.current=W(e,h),h())};return h(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[d.viewport,m,h]),(0,t.jsx)(n.Primitive.div,{"data-state":c.hasThumb?"visible":"hidden",...s,ref:f,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:(0,u.composeEventHandlers)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),r=e.clientX-t.left,n=e.clientY-t.top;c.onThumbPointerDown({x:r,y:n})}),onPointerUp:(0,u.composeEventHandlers)(e.onPointerUp,c.onThumbPointerUp)})});E.displayName=T;var A="ScrollAreaCorner",I=r.forwardRef((e,r)=>{let n=v(A,e.__scopeScrollArea),a=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&a?(0,t.jsx)(H,{...e,ref:r}):null});I.displayName=A;var H=r.forwardRef((e,a)=>{let{__scopeScrollArea:o,...i}=e,l=v(A,o),[s,d]=r.useState(0),[c,u]=r.useState(0),h=!!(s&&c);return Z(l.scrollbarX,()=>{let e=l.scrollbarX?.offsetHeight||0;
1l.onCornerHeightChange(e),u(e)}),Z(l.scrollbarY,()=>{let e=l.scrollbarY?.offsetWidth||0;l.onCornerWidthChange(e),d(e)}),h?(0,t.jsx)(n.Primitive.div,{...i,ref:a,style:{width:s,height:c,position:"absolute",right:"ltr"===l.dir?0:void 0,left:"rtl"===l.dir?0:void 0,bottom:0,...e.style}}):null});function _(e){return e?parseInt(e,10):0}function z(e,t){let r=e/t;return isNaN(r)?0:r}function O(e){let t=z(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-r)*t,18)}function F(e,t,r="ltr"){let n=O(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-a,i=t.content-t.viewport,l=(0,c.clamp)(e,"ltr"===r?[0,i]:[-1*i,0]);return V([0,i],[0,o-n])(l)}function V(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}var W=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return!function a(){let o={left:e.scrollLeft,top:e.scrollTop},i=r.left!==o.left,l=r.top!==o.top;(i||l)&&t(),r=o,n=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(n)};function B(e,t){let n=(0,l.useCallbackRef)(e),a=r.useRef(0);return r.useEffect(()=>()=>window.clearTimeout(a.current),[]),r.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(n,t)},[n,t])}function Z(e,t){let r=(0,l.useCallbackRef)(t);(0,d.useLayoutEffect)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}e.i(816374);var q=e.i(974030);let U=r.forwardRef(({className:e,children:r,...n},a)=>(0,t.jsxs)(g,{ref:a,type:"scroll",className:(0,q.cn)("overflow-hidden",e),...n,children:[r,(0,t.jsx)(I,{}),(0,t.jsx)(X,{orientation:"vertical"})]}));U.displayName=g.displayName;let Y=r.forwardRef(({className:e,children:r,...n},a)=>(0,t.jsx)(b,{ref:a,className:(0,q.cn)("size-full rounded-[inherit]",e),...n,children:r}));Y.displayName=b.displayName;let X=r.forwardRef(({className:e,orientation:r="vertical",...n},a)=>(0,t.jsx)(w,{ref:a,orientation:r,className:(0,q.cn)("flex select-none data-[state=hidden]:animate-fd-fade-out","vertical"===r&&"h-full w-1.5","horizontal"===r&&"h-1.5 flex-col",e),...n,children:(0,t.jsx)(E,{className:"relative flex-1 rounded-full bg-fd-border"})}));X.displayName=w.displayName,e.s(["ScrollArea",()=>U,"ScrollViewport",()=>Y],848798)},451988,e=>{"use strict";var t=e.i(843476),r=e.i(687607),n=e.i(271645);e.i(816374);var a=e.i(974030);let o=r.Root,i=r.CollapsibleTrigger,l=(0,n.forwardRef)(({children:e,...o},i)=>{let[l,s]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{s(!0)},[]),(0,t.jsx)(r.CollapsibleContent,{ref:i,...o,className:(0,a.cn)("overflow-hidden",l&&"data-[state=closed]:animate-fd-collapsible-up data-[state=open]:animate-fd-collapsible-down",o.className),children:e})});l.displayName=r.CollapsibleContent.displayName,e.s(["Collapsible",()=>o,"CollapsibleContent",()=>l,"CollapsibleTrigger",()=>i])},670956,e=>{"use strict";var t=e.i(843476),r=e.i(384050),n=e.i(271645);e.i(821039);var a=e.i(574130);e.i(843849);var o=e.i(437845);e.i(816374);var i=e.i(974030),l=e.i(848798),s=e.i(954005),d=e.i(451988);e.i(901139);var c=e.i(296626),u=e.i(191909);e.i(299382);var h=e.i(905467);let f=(0,n.createContext)(null),p=(0,n.createContext)(null);function m({defaultOpenLevel:e=0,prefetch:r=!0,children:a}){let i=(0,n.useRef)(!0),[l,s]=(0,n.useState)(!1),[d,c]=(0,n.useState)(!1),u=(0,h.usePathname)(),p=!function(e,t=!1){let[r,a]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(t)return;let r=window.matchMedia(e),n=()=>{a(r.matches)};return n(),r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[t,e]),r}("(width < 768px)")?"full":"drawer";return(0,o.useOnChange)(u,()=>{i.current&&s(!1),i.current=!0}),(0,t.jsx)(f,{value:(0,n.useMemo)(()=>({open:l,setOpen:s,collapsed:d,setCollapsed:c,closeOnRedirect:i,defaultOpenLevel:e,prefetch:r,mode:p}),[l,d,e,r,p]),children:a})}function v(){let e=(0,n.use)(f);if(!e)throw Error("Missing SidebarContext, make sure you have wrapped the component in <DocsLayout /> and the context is available.");return e}function g(){return(0,n.use)(p)}function x(){return(0,n.use)(p)?.depth??0}function b({children:e}){let{collapsed:t,mode:r}
1=v(),[a,i]=(0,n.useState)(!1),l=(0,n.useRef)(null),s=(0,n.useRef)(0);if((0,o.useOnChange)(t,()=>{t&&i(!1)}),"full"===r)return e({ref:l,collapsed:t,hovered:a,onPointerEnter(e){d(e)||(window.clearTimeout(s.current),i(!0))},onPointerLeave(e){d(e)||(window.clearTimeout(s.current),s.current=window.setTimeout(()=>i(!1),Math.min(e.clientX,document.body.clientWidth-e.clientX)>100?0:500))}});function d(e){let r=l.current;return!r||!t||"touch"===e.pointerType||r.getAnimations().length>0}}function y(e){let{open:r,setOpen:n,mode:a}=v();if("drawer"===a)return(0,t.jsx)(c.Presence,{present:r,children:(0,t.jsx)("div",{"data-state":r?"open":"closed",onClick:()=>n(!1),...e})})}function w({className:e,children:r,...n}){let{open:a,mode:o}=v(),l=a?"open":"closed";if("drawer"===o)return(0,t.jsx)(c.Presence,{present:a,children:({present:a})=>(0,t.jsx)("aside",{id:"nd-sidebar-mobile","data-state":l,className:(0,i.cn)(!a&&"invisible",e),...n,children:r})})}function C(e){return(0,t.jsx)(l.ScrollArea,{...e,className:(0,i.cn)("min-h-0 flex-1",e.className),children:(0,t.jsx)(l.ScrollViewport,{className:"p-4 overscroll-contain",style:{maskImage:"linear-gradient(to bottom, transparent, white 12px, white calc(100% - 12px), transparent)"},children:e.children})})}function j(e){let r=x();return(0,t.jsx)("p",{...e,className:(0,i.cn)("inline-flex items-center gap-2 mb-1.5 px-2 mt-6 empty:mb-0",0===r&&"first:mt-0",e.className),children:e.children})}function k({icon:e,children:o,...i}){let l=(0,h.usePathname)(),d=(0,n.useRef)(null),{prefetch:c}=v(),u=void 0!==i.href&&(0,s.isActive)(i.href,l,!1);return T(u,d),(0,t.jsxs)(a.default,{ref:d,"data-active":u,prefetch:c,...i,children:[e??(i.external?(0,t.jsx)(r.ExternalLink,{}):null),o]})}function L({defaultOpen:e,collapsible:r=!0,active:a=!1,children:i,...l}){let{defaultOpenLevel:s}=v(),c=x()+1,u=!1===r||a||(e??s>=c),[h,f]=(0,n.useState)(u);return(0,o.useOnChange)(u,e=>{e&&f(e)}),(0,t.jsx)(d.Collapsible,{open:h,onOpenChange:f,disabled:!r,...l,children:(0,t.jsx)(p,{value:(0,n.useMemo)(()=>({open:h,setOpen:f,depth:c,collapsible:r}),[r,c,h]),children:i})})}function S({children:e,...a}){let{open:o,collapsible:l}=(0,n.use)(p);return l?(0,t.jsxs)(d.CollapsibleTrigger,{...a,children:[e,(0,t.jsx)(r.ChevronDown,{"data-icon":!0,className:(0,i.cn)("ms-auto transition-transform",!o&&"-rotate-90")})]}):(0,t.jsx)("div",{...a,children:e})}function N({children:e,...o}){let l=(0,n.useRef)(null),{open:d,setOpen:c,collapsible:u}=(0,n.use)(p),{prefetch:f}=v(),m=(0,h.usePathname)(),g=void 0!==o.href&&(0,s.isActive)(o.href,m,!1);return T(g,l),(0,t.jsxs)(a.default,{ref:l,"data-active":g,onClick:e=>{u&&(e.target instanceof Element&&e.target.matches("[data-icon], [data-icon] *")?(c(!d),e.preventDefault()):c(!g||!d))},prefetch:f,...o,children:[e,u&&(0,t.jsx)(r.ChevronDown,{"data-icon":!0,className:(0,i.cn)("ms-auto transition-transform",!d&&"-rotate-90")})]})}function P(e){return(0,t.jsx)(d.CollapsibleContent,{...e,children:e.children})}function M({children:e,...r}){let{setOpen:n}=v();return(0,t.jsx)("button",{"aria-label":"Open Sidebar",onClick:()=>n(e=>!e),...r,children:e})}function R(e){let{collapsed:r,setCollapsed:n}=v();return(0,t.jsx)("button",{type:"button","aria-label":"Collapse Sidebar","data-collapsed":r,onClick:()=>{n(e=>!e)},...e,children:e.children})}function T(e,t){let{mode:r}=v();(0,n.useEffect)(()=>{e&&t.current&&(0,u.default)(t.current,{boundary:document.getElementById("drawer"===r?"nd-sidebar-mobile":"nd-sidebar"),scrollMode:"if-needed"})},[e,r,t])}e.s(["SidebarCollapseTrigger",()=>R,"SidebarContent",()=>b,"SidebarDrawerContent",()=>w,"SidebarDrawerOverlay",()=>y,"SidebarFolder",()=>L,"SidebarFolderContent",()=>P,"SidebarFolderLink",()=>N,"SidebarFolderTrigger",()=>S,"SidebarItem",()=>k,"SidebarProvider",()=>m,"SidebarSeparator",()=>j,"SidebarTrigger",()=>M,"SidebarViewport",()=>C,"useFolder",()=>g,"useFolderDepth",()=>x,"useSidebar",()=>v],670956)},214072,557886,e=>{"use strict";var t=e.i(843476);e.i(299382);var r=e.i(905467),n=e.i(271645);function a(e,t,r){let{includePage:n=!1,includeSeparator:a=!1,includeRoot:o=!1}=r,i=[];for(let e=0;e<t.length;e++){let r=t[e];switch(r.type){case"page":n&&i.push({name:r.name,url:r.url});break;case"folder":if(r.root&&!o){i=[];break}(e===t.length-1||r.index!==t[e+1])&&i.push({name:r.name,url:r.index?.url});break;case"separator":r.name&&a&&i.push({name:r.name})}}return o&&i.unshift({name:e.name,url:"object"==typeof o?o.url:void 0}),i}function o(e,t){var r;let n=((r=t).startsWith("http://")||r.startsWith("https://")||(r.startsWith("/")||(r="/"+r),r.length>1&&r.endsWith("/")&&(r=r.slice(0,-1))),r);return function(e,t,r={}){let{includeSeparator:n=!0}=r;return function e(r){let a;for(let o of r){if(t(o)){let e=[];return a&&e.push(a),e.push(o),e}if("separator"===o.type&&n){a=o;continue}if("folder"===o.type){let r=o.index&&t(o.index)?[o.index]:e(o.children);if(r)return r.unshift(o),a&&r.unshift(a),r}}}(e)??null}(e,e=>"page"===e.type&&e.url===n)}Symbol("VisitBreak"),e.i(901139),e.s(["getBreadcrumbItemsFromPath",()=>a,"searchPath",()=>o],557886);let i=(0,n.createContext)(null),l=(0,n.createContext)([]);function s({tree:e,children:a}){let s=(0,n.useRef)(0),d=(0,r.usePathname)(),c=(0,n.useMemo)(()=>e,[e.$id??e]),u=(0,n.useMemo)(()=>o(c.children,d)??(c.fallback?o(c.fallback.children,d):null)??[],[c,d]),h=u.findLast(e=>"folder"===e.type&&e.root)??c;return h.$id??(h.$id=String(s.current++)),(0,t.jsx)(i,{value:(0,n.useMemo)(()=>({root:h,full:c}),[h,c]),children:(0,t.jsx)(l,{value:u,children:a})})}function d(){return(0,n.use)(l)}function c(){let e=(0,n.use)(i);if(!e)throw Error("You must wrap this component under <DocsLayout />");return e}e.s(["TreeContextProvider",()=>s,"useTreeContext",()=>c,"useTreePath",()=>d],214072)},563199,e=>{"use strict";var t=e.i(843476),r=e.i(271645);e.i(816374);var n=e.i(974030),a=e.i(670956);e.i(299382);var o=e.i(905467),i=e.i(954005);e.i(821039);var l=e.i(574130),s=e.i(411150);let d=(0,r.createContext)(null);function c({navTransparentMode:e="none",children:n}){let a=(0,s.useIsScrollTop)({enabled:"top"===e})??!0,o="top"===e?a:"always"===e;return(0,t.jsx)(d,{value:(0,r.useMemo)(()=>({isNavTransparent:o}),[o]),children:n})}function u(e){let{isNavTransparent:n}=(0,r.use)(d);return(0,t.jsx)("header",{"data-transparent":n,...e,children:e.children})}function h({className:e,style:r,children:o,...i}){let{collapsed:l}=(0,a.useSidebar)();return(0,t.jsx)("div",{id:"nd-docs-layout",className:(0,n.cn)("grid transition-[grid-template-columns] overflow-x-clip min-h-(--fd-docs-height) auto-cols-auto auto-rows-auto [--fd-docs-height:100dvh] [--fd-header-height:0px] [--fd-toc-popover-height:0px] [--fd-sidebar-width:0px] [--fd-toc-width:0px]",e),"data-sidebar-collapsed":l,style:{gridTemplate:`"sidebar header toc"
2        "sidebar toc-popover toc"
3        "sidebar main toc" 1fr / minmax(var(--fd-sidebar-col), 1fr) minmax(0, calc(var(--fd-layout-width,97rem) - var(--fd-sidebar-width) - var(--fd-toc-width))) minmax(min-content, 1fr)`,"--fd-docs-row-1":"var(--fd-banner-height, 0px)","--fd-docs-row-2":"calc(var(--fd-docs-row-1) + var(--fd-header-height))","--fd-docs-row-3":"calc(var(--fd-docs-row-2) + var(--fd-toc-popover-height))","--fd-sidebar-col":l?"0px":"var(--fd-sidebar-width)",...r},...i,children:o})}function f({options:e,...a}){let s=(0,o.usePathname)(),d=(0,r.useMemo)(()=>e.findLast(e=>(0,i.isTabActive)(e,s)),[e,s]);return(0,t.jsx)("div",{...a,className:(0,n.cn)("flex flex-row items-end gap-6 overflow-auto [grid-area:main]",a.className),children:e.map((e,r)=>(0,t.jsx)(l.default,{href:e.url,className:(0,n.cn)("inline-flex border-b-2 border-transparent transition-colors items-center pb-1.5 font-medium gap-2 text-fd-muted-foreground text-sm text-nowrap hover:text-fd-accent-foreground",e.unlisted&&d!==e&&"hidden",d===e&&"border-fd-primary text-fd-
3primary"),children:e.title},r))})}e.s(["LayoutBody",()=>h,"LayoutContext",0,d,"LayoutContextProvider",()=>c,"LayoutHeader",()=>u,"LayoutTabs",()=>f])},150568,e=>{"use strict";var t=e.i(843476),r=e.i(670956);e.i(816374);var n=e.i(974030),a=e.i(271645),o=e.i(225913),i=e.i(214072),l=e.i(713548),s=e.i(42746),d=e.i(384050),c=e.i(14804);let u=(0,o.cva)("relative flex flex-row items-center gap-2 rounded-lg p-2 text-start text-fd-muted-foreground wrap-anywhere [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{link:"transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none data-[active=true]:bg-fd-primary/10 data-[active=true]:text-fd-primary data-[active=true]:hover:transition-colors",button:"transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none"},highlight:{true:"data-[active=true]:before:content-[''] data-[active=true]:before:bg-fd-primary data-[active=true]:before:absolute data-[active=true]:before:w-px data-[active=true]:before:inset-y-2.5 data-[active=true]:before:start-2.5"}}});function h(e){return`calc(${2+3*e} * var(--spacing))`}let{SidebarProvider:f,SidebarFolder:p,SidebarCollapseTrigger:m,SidebarViewport:v,SidebarTrigger:g}=r;function x({ref:e,className:o,children:i,...u}){let h=(0,a.useRef)(null);return(0,t.jsx)(r.SidebarContent,{children:({collapsed:r,hovered:a,ref:f,...p})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{"data-sidebar-placeholder":"",className:"sticky top-(--fd-docs-row-1) z-20 [grid-area:sidebar] pointer-events-none *:pointer-events-auto h-[calc(var(--fd-docs-height)-var(--fd-docs-row-1))] md:layout:[--fd-sidebar-width:268px] max-md:hidden",children:[r&&(0,t.jsx)("div",{className:"absolute start-0 inset-y-0 w-4",...p}),(0,t.jsx)("aside",{id:"nd-sidebar",ref:(0,c.mergeRefs)(h,e,f),"data-collapsed":r,"data-hovered":r&&a,className:(0,n.cn)("absolute flex flex-col w-full start-0 inset-y-0 items-end bg-fd-card text-sm border-e duration-250 *:w-(--fd-sidebar-width)",r&&["inset-y-2 rounded-xl transition-transform border w-(--fd-sidebar-width)",a?"shadow-lg translate-x-2 rtl:-translate-x-2":"-translate-x-(--fd-sidebar-width) rtl:translate-x-full"],h.current&&"true"===h.current.getAttribute("data-collapsed")!==r&&"transition-[width,inset-block,translate,background-color]",o),...u,...p,children:i})]}),(0,t.jsxs)("div",{"data-sidebar-panel":"",className:(0,n.cn)("fixed flex top-[calc(--spacing(4)+var(--fd-toc-popover-height))] start-4 shadow-lg transition-opacity rounded-xl p-0.5 border bg-fd-muted text-fd-muted-foreground z-10",(!r||a)&&"pointer-events-none opacity-0"),children:[(0,t.jsx)(m,{className:(0,n.cn)((0,l.buttonVariants)({color:"ghost",size:"icon-sm",className:"rounded-lg"})),children:(0,t.jsx)(d.Sidebar,{})}),(0,t.jsx)(s.SearchToggle,{className:"rounded-lg",hideIfDisabled:!0})]})]})})}function b({children:e,className:a,...o}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.SidebarDrawerOverlay,{className:"fixed z-40 inset-0 backdrop-blur-xs data-[state=open]:animate-fd-fade-in data-[state=closed]:animate-fd-fade-out"}),(0,t.jsx)(r.SidebarDrawerContent,{className:(0,n.cn)("fixed text-[0.9375rem] flex flex-col shadow-lg border-s end-0 inset-y-0 w-[85%] max-w-[380px] z-40 bg-fd-background data-[state=open]:animate-fd-sidebar-in data-[state=closed]:animate-fd-sidebar-out",a),...o,children:e})]})}function y({className:e,style:a,children:o,...i}){let l=r.useFolderDepth();return(0,t.jsx)(r.SidebarSeparator,{className:(0,n.cn)("[&_svg]:size-4 [&_svg]:shrink-0",e),style:{paddingInlineStart:h(l),...a},...i,children:o})}function w({className:e,style:a,children:o,...i}){let l=r.useFolderDepth();return(0,t.jsx)(r.SidebarItem,{className:(0,n.cn)(u({variant:"link",highlight:l>=1}),e),style:{paddingInlineStart:h(l),...a},...i,children:o})}function C({className:e,style:a,...o}){let{depth:i,collapsible:l}=r.useFolder();return(0,t.jsx)(r.SidebarFolderTrigger,{className:(0,n.cn)(u({variant:l?"button":null}),"w-full",e),style:{paddingInlineStart:h(i-1),...a},...o,children:o.children})}function j({className:e,style:a,...o}){let i=r.useFolderDepth();return(0,t.jsx)(r.SidebarFolderLink,{className:(0,n.cn)(u({variant:"link",highlight:i>1}),"w-full",e),style:{paddingInlineStart:h(i-1),...a},...o,children:o.children})}function k({className:e,children:a,...o}){let i=r.useFolderDepth();return(0,t.jsx)(r.SidebarFolderContent,{className:(0,n.cn)("relative",1===i&&"before:content-[''] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:start-2.5",e),...o,children:a})}let L=function({SidebarFolder:e,SidebarFolderContent:r,SidebarFolderLink:n,SidebarFolderTrigger:o,SidebarSeparator:l,SidebarItem:s}){function d({item:a,children:l}){let s=(0,i.useTreePath)();return(0,t.jsxs)(e,{collapsible:a.collapsible,active:s.includes(a),defaultOpen:a.defaultOpen,children:[a.index?(0,t.jsxs)(n,{href:a.index.url,external:a.index.external,children:[a.icon,a.name]}):(0,t.jsxs)(o,{children:[a.icon,a.name]}),(0,t.jsx)(r,{children:l})]})}return function(e){let{root:r}=(0,i.useTreeContext)(),{Separator:n,Item:o,Folder:c=d}=e;return(0,a.useMemo)(()=>(0,t.jsx)(a.Fragment,{children:function e(r){return r.map((r,a)=>"separator"===r.type?n?(0,t.jsx)(n,{item:r},a):(0,t.jsxs)(l,{children:[r.icon,r.name]},a):"folder"===r.type?(0,t.jsx)(c,{item:r,children:e(r.children)},a):o?(0,t.jsx)(o,{item:r},r.url):(0,t.jsx)(s,{href:r.url,external:r.external,icon:r.icon,
3children:r.name},r.url))}(r.children)},r.$id),[c,o,n,r])}}({SidebarFolder:p,SidebarFolderContent:k,SidebarFolderLink:j,SidebarFolderTrigger:C,SidebarItem:w,SidebarSeparator:y}),S=function({SidebarFolder:e,SidebarFolderContent:r,SidebarFolderLink:n,SidebarFolderTrigger:a,SidebarItem:o}){return function i({item:l,...s}){return"custom"===l.type?(0,t.jsx)("div",{...s,children:l.children}):"menu"===l.type?(0,t.jsxs)(e,{...s,children:[l.url?(0,t.jsxs)(n,{href:l.url,external:l.external,children:[l.icon,l.text]}):(0,t.jsxs)(a,{children:[l.icon,l.text]}),(0,t.jsx)(r,{children:l.items.map((e,r)=>(0,t.jsx)(i,{item:e},r))})]}):(0,t.jsx)(o,{href:l.url,icon:l.icon,external:l.external,...s,children:l.text})}}({SidebarFolder:p,SidebarFolderContent:k,SidebarFolderLink:j,SidebarFolderTrigger:C,SidebarItem:w});e.s(["Sidebar",0,f,"SidebarCollapseTrigger",0,m,"SidebarContent",()=>x,"SidebarDrawer",()=>b,"SidebarFolder",0,p,"SidebarFolderContent",()=>k,"SidebarFolderLink",()=>j,"SidebarFolderTrigger",()=>C,"SidebarItem",()=>w,"SidebarLinkItem",0,S,"SidebarPageTree",0,L,"SidebarSeparator",()=>y,"SidebarTrigger",0,g,"SidebarViewport",0,v],150568)},379654,e=>{"use strict";var t=e.i(843476),r=e.i(384050),n=e.i(271645);e.i(821039);var a=e.i(574130);e.i(299382);var o=e.i(905467);e.i(816374);var i=e.i(974030),l=e.i(954005),s=e.i(670956),d=e.i(281878);function c({options:e,placeholder:c,...u}){let[h,f]=(0,n.useState)(!1),{closeOnRedirect:p}=(0,s.useSidebar)(),m=(0,o.usePathname)(),v=(0,n.useMemo)(()=>e.findLast(e=>(0,l.isTabActive)(e,m)),[e,m]),g=()=>{p.current=!1,f(!1)},x=v?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"size-9 shrink-0 empty:hidden md:size-5",children:v.icon}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:v.title}),(0,t.jsx)("p",{className:"text-sm text-fd-muted-foreground empty:hidden md:hidden",children:v.description})]})]}):c;return(0,t.jsxs)(d.Popover,{open:h,onOpenChange:f,children:[x&&(0,t.jsxs)(d.PopoverTrigger,{...u,className:(0,i.cn)("flex items-center gap-2 rounded-lg p-2 border bg-fd-secondary/50 text-start text-fd-secondary-foreground transition-colors hover:bg-fd-accent data-[state=open]:bg-fd-accent data-[state=open]:text-fd-accent-foreground",u.className),children:[x,(0,t.jsx)(r.ChevronsUpDown,{className:"shrink-0 ms-auto size-4 text-fd-muted-foreground"})]}),(0,t.jsx)(d.PopoverContent,{className:"flex flex-col gap-1 w-(--radix-popover-trigger-width) p-1 fd-scroll-container",children:e.map(e=>{let n=v&&e.url===v.url;if(n||!e.unlisted)return(0,t.jsxs)(a.default,{href:e.url,onClick:g,...e.props,className:(0,i.cn)("flex items-center gap-2 rounded-lg p-1.5 hover:bg-fd-accent hover:text-fd-accent-foreground",e.props?.className),children:[(0,t.jsx)("div",{className:"shrink-0 size-9 md:mt-1 md:mb-auto md:size-5 empty:hidden",children:e.icon}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:e.title}),(0,t.jsx)("p",{className:"text-[0.8125rem] text-fd-muted-foreground empty:hidden",children:e.description})]}),(0,t.jsx)(r.Check,{className:(0,i.cn)("shrink-0 ms-auto size-3.5 text-fd-primary",!n&&"invisible")})]},e.url)})})]})}e.s(["SidebarTabsDropdown",()=>c])}]);

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.