PageSourceSearch

https://www.v0.build/docs/_next/static/immutable/chunks/2e2mqp5dw6nvp.js

js www.v0.build collected 2026-10-10 02:28:17 UTC 66,374 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,312969,332130,e=>{"use strict";var t=e.i(824980),r=e.i(875966);let n={height:16,aspectRatio:1,viewBox:"0 0 16 16"},a=(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("path",{clipRule:"evenodd",d:"M1.5 8a6 6 0 0 1 3.62-5.51 7 7 0 0 0 7.08 9.25A5.99 5.99 0 0 1 1.5 8M6.42.58a7.5 7.5 0 1 0 7.96 10.41l-.92-1.01a5.5 5.5 0 0 1-6.3-8.25zm6.83.42v1.75H15v1.5h-1.75V6h-1.5V4.25H10v-1.5h1.75V1z",fill:"currentColor",fillRule:"evenodd"})});e.s(["IconMoon",0,function(e){return(0,t.jsx)(r.BaseIcon,{$generated:n,...e,children:a})}],312969);let i={height:16,aspectRatio:1,viewBox:"0 0 16 16"},s=(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("path",{clipRule:"evenodd",d:"M8.75.75V0h-1.5v2h1.5V.75M3.26 4.32l-.53-.53-.35-.35-.53-.53L2.9 1.85l.53.53.35.35.53.53zm8.42-1.06.53-.53.35-.35.53-.53 1.06 1.06-.53.53-.35.35-.53.53zM8 11.25a3.25 3.25 0 1 0 0-6.5 3.25 3.25 0 0 0 0 6.5m0 1.5a4.75 4.75 0 1 0 0-9.5 4.75 4.75 0 0 0 0 9.5m6-5.5h2v1.5h-2zm-13.25 0H0v1.5h2v-1.5H.75m1.62 5.32-.53.53 1.06 1.06.53-.53.35-.35.53-.53-1.06-1.06-.53.53zm10.2 1.06.53.53 1.06-1.06-.53-.53-.35-.35-.53-.53-1.06 1.06.53.53zM8.75 14v2h-1.5v-2z",fill:"currentColor",fillRule:"evenodd"})});e.s(["IconSun",0,function(e){return(0,t.jsx)(r.BaseIcon,{$generated:i,...e,children:s})}],332130)},654300,e=>{"use strict";var t=e.i(824980),r=e.i(365760),n=e.i(32194),a=e.i(125934),i=e.i(220530),s=e.i(875966);function o(e){return(0,t.jsx)(s.BaseIcon,{$generated:l,...e,children:d})}let l={height:16,aspectRatio:1,viewBox:"0 0 16 16"},d=(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("path",{clipRule:"evenodd",d:"M5.75 1.5H5V0H3.5v1.5H0V3h1.32A9 9 0 0 0 3.2 7.03c-.73.6-1.56.97-2.45.97H0v1.5h.75c1.37 0 2.55-.57 3.5-1.39a5.4 5.4 0 0 0 3.5 1.39h.75V8h-.75c-.9 0-1.72-.37-2.45-.97l.22-.28A9 9 0 0 0 7.18 3H8.5V1.5H5.75M5.65 3h-2.8a8 8 0 0 0 1.4 2.94A8 8 0 0 0 5.65 3m3.51 13 .83-2h3.52l.83 2h1.62l-.12-.29-3.39-8.2h-1.38l-3.41 8.2-.12.29zm3.73-3.5h-2.27l1.14-2.75z",fill:"currentColor",fillRule:"evenodd"})});var c=e.i(312969),u=e.i(332130),h=e.i(671345),p=e.i(288526),f=e.i(848317),x=e.i(278123),m=e.i(282637),g=e.i(323527);e.s(["AskAIButton",0,({children:e,className:r,prompt:n,size:a="small",variant:i="secondary",...s})=>{let{enabled:o,isOpen:l,preloadChat:d,setIsOpen:c,setPrompt:u}=(0,m.useGeistdocsChatContext)();return o?(0,t.jsx)(h.Button,{className:(0,x.cn)("shrink-0",r),onClick:()=>{if(d(),n){u(n),c(!0);return}c(!l)},onFocus:d,onMouseEnter:d,size:a,typeName:"button",variant:i,...s,children:e??(0,t.jsx)("span",{children:"Ask AI"})}):null},"AskAIUser",0,({avatarUrl:e,name:t})=>{let{setUser:r}=(0,m.useGeistdocsChatContext)();return(0,a.useEffect)(()=>e?(r({avatarUrl:e,name:t??void 0}),()=>r(null)):void r(null),[e,t,r]),null},"LanguageSelector",0,()=>{let{locale:e,locales:n,onChange:a}=(0,r.useI18n)();return n?(0,t.jsxs)(g.DropdownMenu,{children:[(0,t.jsxs)(g.DropdownMenuTrigger,{"aria-label":"Select Language",className:"flex items-center justify-center rounded-md p-2 hover:bg-gray-alpha-100 focus-visible:shadow-[var(--ds-focus-ring)] focus-visible:outline-none active:bg-gray-alpha-300",children:[(0,t.jsx)(o,{className:"size-4.5"}),(0,t.jsx)("span",{className:"sr-only",children:"Select Language"})]}),(0,t.jsx)(g.DropdownMenuContent,{align:"end",children:n.map(r=>(0,t.jsxs)(g.DropdownMenuItem,{className:"flex cursor-pointer items-center justify-between",disabled:e===r.locale,onClick:()=>a?.(r.locale),children:[r.name,e===r.locale&&(0,t.jsx)(i.IconCheck,{className:"size-4"})]},r.locale))})]}):null},"SearchButton",0,({className:e,onClick:r})=>{let{setOpenSearch:a}=(0,n.useSearchContext)();return(0,t.jsxs)("button",{className:(0,x.cn)("flex h-8 cursor-pointer items-center justify-between rounded-md border-0 bg-background-100 py-0 pr-1.5 pl-3.5 font-normal font-sans text-gray-1000 text-sm shadow-[0_0_0_1px_var(--ds-gray-400)] outline-none hover:bg-gray-100 focus-visible:shadow-focus-ring",e),onClick:()=>{a(!0),r?.()},type:"button",children:[(0,t.jsx)("span",{className:"pr-6",children:"Search…"}),(0,t.jsx)(p.Kbd,{className:"inline-flex items-center justify-center rounded",small:!0,children:"⌘K"})]})},"ThemeToggle",0,()=>{let{resolvedTheme:e,setTheme:r}=(0,f.useTheme)(),[n,i]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{i(!0)},[]),!n)return(0,t.jsx)(h.Button,{"aria-label":"Toggle Theme",shape:"square",size:"small",svgOnly:!0,t
1ype:"unstyled",typeName:"button",children:(0,t.jsx)("div",{className:"size-4"})});let s="dark"===e?c.IconMoon:u.IconSun;return(0,t.jsx)(h.Button,{"aria-label":"dark"===e?"Switch to Light Theme":"Switch to Dark Theme",onClick:()=>r("dark"===e?"light":"dark"),shape:"square",size:"small",svgOnly:!0,type:"unstyled",typeName:"button",children:(0,t.jsx)(s,{className:"size-4"})})},"useGeistdocsChat",0,()=>{let{ask:e,enabled:t,isOpen:r,openWithPage:n,setIsOpen:i}=(0,m.useGeistdocsChatContext)();return(0,a.useMemo)(()=>({ask:e,close:()=>i(!1),enabled:t,isOpen:r,open:()=>{t&&i(!0)},openWithPage:n,toggle:()=>{t&&i(e=>!e)}}),[e,t,r,n,i])}],654300)},980013,e=>{"use strict";e.i(365760),e.s(["createGeistdocsI18n",0,e=>{var t;let r,n,{defaultLanguage:a,languages:i,translations:s}=(r=(t=e).defaultLanguage??"en",r in(n={...t.translations??{}})||(n[r]={displayName:r.toUpperCase()}),{defaultLanguage:r,languages:Array.from(new Set(Object.keys(n))),translations:n}),o={defaultLanguage:a,languages:i,hideLocale:"default-locale"},{provider:l}=function(e,t){let{translations:r}=t;return{provider:(t=e.defaultLanguage)=>({locale:t,translations:r[t],locales:e.languages.map(e=>({locale:e,name:r[e]?.displayName??e}))})}}(o,{translations:s});return{i18n:o,i18nProvider:l}}],980013)},167469,e=>{"use strict";var t=e.i(824980),r=e.i(494739),n=e.i(125934),a=e.i(153801);let i=/\/$/,s=new Set(["BUTTON","INPUT","LABEL","SELECT","SUMMARY","TEXTAREA"]),o="__geistdocsMouseDownNavigationHandled";e.s(["MouseDownNavigation",0,({children:e})=>{let l=(0,r.useRouter)(),{basePath:d}=(0,a.useGeistdocsConfig)(),c=(0,n.useRef)(!1),u=(0,n.useCallback)(e=>{c.current=!1;let t=((e,t)=>{let r=e;for(;r&&r!==t;){if("A"===r.tagName)return r;r=r.parentElement}return null})(e.target,e.currentTarget);if(!(t&&((e,t)=>{if(e.defaultPrevented||0!==e.button||"mouse"!==e.pointerType||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||((e,t)=>{if(t.hasAttribute("data-no-mousedown-nav"))return!0;let r=e;for(;r&&r!==t;){if(r.hasAttribute("data-no-mousedown-nav")||s.has(r.tagName)||"button"===r.getAttribute("role"))return!0;r=r.parentElement}return!1})(e.target,t))return!1;let r=e.nativeEvent;if(!0===r[o])return!1;let n=t.getAttribute("target");if(n&&"_self"!==n||t.hasAttribute("download"))return!1;let a=t.getAttribute("href");if(!a||a.startsWith("#"))return!1;try{if(new URL(a,window.location.origin).origin!==window.location.origin)return!1}catch{return!1}return r[o]=!0,!0})(e,t)))return;let r=t.getAttribute("href");r&&(c.current=!0,l.push(((e,t)=>{let r=t&&"/"!==t?(t.startsWith("/")?t:`/${t}`).replace(i,""):"";if(!r)return e;try{let t=new URL(e,window.location.origin);if(t.pathname===r)return`/${t.search}${t.hash}`;if(t.pathname.startsWith(`${r}/`))return`${t.pathname.slice(r.length)}${t.search}${t.hash}`}catch{}return e})(r,d),{scroll:"false"!==t.getAttribute("data-scroll")}))},[d,l]),h=(0,n.useCallback)(e=>{c.current&&(e.preventDefault(),c.current=!1)},[]);return(0,t.jsx)("div",{onClickCapture:h,onPointerDownCapture:u,style:{display:"contents"},children:e})}],167469)},663689,e=>{"use strict";var t=e.i(824980),r=e.i(397605),n=e.i(125934),a=e.i(655744),i=e.i(664513),s=e.i(278123),o=e.i(282637),l=e.i(997094),d=e.i(153801),c=e.i(980013),u=e.i(855620);e.i(354592);var h=e.i(699062),p=e.i(245114),f=e.i(365760),x=e.i(644712);let m=({allowClear:e=!1,basePath:r,onTagChange:a,tag:i,tags:s,...o})=>{let{locale:l}=(0,f.useI18n)(),d=void 0!==s&&s.length>
10,[c,m]=(0,n.useState)(i);(0,h.useOnChange)(i,e=>{m(e)});let{search:g,setSearch:v,query:b}=(0,u.useDocsSearch)({type:"fetch",locale:l,tag:d?c:i,api:(0,x.getPublicPath)("/api/search",r)});return(0,t.jsxs)(p.SearchDialog,{isLoading:b.isLoading,onSearchChange:v,search:g,...o,children:[(0,t.jsx)(p.SearchDialogOverlay,{className:"bg-background-100/80 backdrop-blur-none"}),(0,t.jsxs)(p.SearchDialogContent,{className:"w-[640px] max-w-[calc(100vw-1rem)] border-none shadow-[var(--ds-shadow-modal)]","data-geistdocs-command-modal":!0,onEscapeKeyDown:()=>o.onOpenChange(!1),children:[(0,t.jsxs)(p.SearchDialogHeader,{children:[(0,t.jsx)(p.SearchDialogIcon,{}),(0,t.jsx)(p.SearchDialogInput,{}),(0,t.jsx)(p.SearchDialogClose,{})]}),(0,t.jsx)(p.SearchDialogList,{"aria-label":"Search results",Item:e=>(0,t.jsx)(p.SearchDialogListItem,{...e,role:"option"}),items:"empty"===b.data?null:b.data,role:"listbox"}),d?(0,t.jsx)(p.SearchDialogFooter,{children:(0,t.jsx)(p.TagsList,{allowClear:e,onTagChange:e=>{m(e),a?.(e)},tag:"string"==typeof c?c:void 0,children:s.map(e=>(0,t.jsx)(p.TagsListItem,{value:e.value,children:e.name},e.value))})}):null]})]})};var g=e.i(24685),v=e.i(82494);let b=({config:e})=>{let r=e.webmcp?.enabled,a=(0,o.useGeistdocsChatContext)(),i=!!(r&&e.webmcp?.askAI&&a.enabled),s=(0,n.useRef)(a.ask);return s.current=a.ask,(0,n.useEffect)(()=>{let e=document.modelContext;if(r&&e?.registerTool){var t,n;let r;return t=(({ask:e,fetcher:t=fetch,location:r,requestTimeoutMs:n=15e3})=>[{name:"read_current_page",description:"Read the current documentation page as Markdown. Navigate to a documentation page before calling this tool.",annotations:{readOnlyHint:!0,untrustedContentHint:!0},inputSchema:{type:"object",properties:{},additionalProperties:!1},execute:async(e,{signal:a}={})=>{let i=new URL(r.href);i.hash="",i.search="";let s=AbortSignal.timeout(n),o=await t(i,{headers:{Accept:"text/markdown"},redirect:"error",signal:a?AbortSignal.any([a,s]):s});if(!o.ok)throw Error(`Documentation page could not be read (${o.status}).`);if(!o.headers.get("content-type")?.includes("text/markdown"))throw Error("The current page does not provide documentation Markdown.");return o.text()}},...e?[{name:"ask_ai",description:"Ask a question in this documentation site's Ask AI chat. The question is submitted on the user's behalf and the answer streams into the chat panel on the page; this tool does not return the answer.",annotations:{readOnlyHint:!1,untrustedContentHint:!1},inputSchema:{type:"object",properties:{question:{type:"string",description:"The question to ask about this documentation.",minLength:2,maxLength:2e3}},required:["question"],additionalProperties:!1},execute:t=>{let r="string"==typeof t?.question?t.question.trim():"";return r.length<2||r.length>2e3?Promise.reject(Error("question must be a string of 2 to 2000 characters after trimming whitespace.")):(e(r),Promise.resolve("Submitted the question to this site's Ask AI chat. The answer appears in the chat panel on the page."))}}]:[]])({ask:i?e=>s.current(e):void 0,location:window.location}),n=e=>console.warn("Geistdocs WebMCP registration failed:",e),r=new AbortController,(async()=>{try{for(let n of t){if(r.signal.aborted)return;await e.registerTool(n,{signal:r.signal})}}catch(e){r.signal.aborted||(r.abort(),n(e))}})(),()=>r.abort()}},[i,r]),r?(0,t.jsx)(v.default,{id:"geistdocs-webmcp",src:`${(0,x.getPublicPath)("/api/mcp",e.basePath)}?webmcp-script`}):null},j=(0,n.lazy)(()=>e.A(960840).then(({GeistdocsChatShell:e})=>({default:e}))),y=({config:e,search:i,theme:d,lang:u,...h})=>{let{i18n:p,i18nProvider:f}=(0,c.createGeistdocsI18n)(e),{enabled:x,hasBeenOpened:v,isExpanded:y,isOpen:w,setIsExpanded:N,setIsOpen:S}=(0,o.useGeistdocsChatContext)(),C=(0,g.useIsMobile)();(0,n.useEffect)(()=>{if(!x)return;let e=e=>{if("Escape"===e.key&&w){e.preventDefault(),y&&!C?N(!1):S(!1);return}(e.metaKey||e.ctrlKey)&&!e.altKey&&!e.shiftKey&&"i"===e.key.toLowerCase()&&(e.preventDefault(),S(e=>!e))};return document.addEventListener("keydown",e,!0),()=>document.removeEventListener("keydown",e,!0)},[x,y,C,w,N,S]);let k=(0,n.useCallback)(r=>(0,t.jsx)(m,{basePath:e.basePath,...r}),[e.basePath]);return(0,t.jsxs)("div",{className:(0,s.cn)("@container transition-[padding-right] duration-150 ease-[
1cubic-bezier(0.175,0.885,0.32,1.1)] motion-reduce:transition-none",x&&w&&!C?"pr-[400px]!":null),"data-geistdocs-container":!0,children:[(0,t.jsx)(r.RootProvider,{i18n:f(u??p.defaultLanguage),search:{SearchDialog:k,...i},theme:{enabled:!1},...h}),(0,t.jsx)(b,{config:e}),(0,t.jsx)(a.Toasts,{}),v?(0,t.jsx)(n.Suspense,{fallback:w?(0,t.jsx)(l.ChatLoadingSkeleton,{isMobile:C,title:e.title}):null,children:(0,t.jsx)(j,{})}):null]})};e.s(["GeistdocsProvider",0,e=>(0,t.jsx)(i.GeistProvider,{storageKey:"geistdocs-theme",withScript:!1,children:(0,t.jsx)(d.GeistdocsConfigProvider,{config:e.config,children:(0,t.jsx)(o.GeistdocsChatProvider,{config:e.config,children:(0,t.jsx)(y,{...e})})})})],663689)},22693,e=>{"use strict";var t=e.i(824980);e.i(673354);var r=e.i(444906),n=e.i(373238),a=e.i(494739),i=e.i(193121),s=e.i(125934),o=e.i(867265),l=e.i(875966);function d(e){return(0,t.jsx)(l.BaseIcon,{$generated:c,...e,children:u})}let c={height:16,aspectRatio:1,viewBox:"0 0 16 16"},u=(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("path",{clipRule:"evenodd",d:"m6.75 3.94.53.53 2.82 2.82a1 1 0 0 1 0 1.42l-2.82 2.82-.53.53L5.69 11l.53-.53L8.69 8 6.22 5.53 5.69 5z",fill:"currentColor",fillRule:"evenodd"})});var h=e.i(713315),p=e.i(485699),f=e.i(278123);function x(e){return(0,t.jsx)(h.Dialog.Root,{"data-slot":"sheet",...e})}function m({className:e,children:r,noOverlay:n,side:a="right",overlay:i=!0,...s}){return(0,t.jsxs)(h.Dialog.Portal,{"data-slot":"sheet-portal",children:[i&&!n?(0,t.jsx)(h.Dialog.Overlay,{className:"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-background-100/80 duration-300 ease-[cubic-bezier(0.32,0.72,0,1)] data-[state=closed]:animate-out data-[state=open]:animate-in motion-reduce:animate-none","data-slot":"sheet-overlay"}):null,(0,t.jsxs)(h.Dialog.Content,{className:(0,f.cn)("fixed z-50 flex flex-col gap-4 bg-background-100 shadow-[var(--ds-shadow-modal)] duration-300 ease-[cubic-bezier(0.32,0.72,0,1)] data-[state=closed]:animate-out data-[state=open]:animate-in motion-reduce:animate-none","right"===a&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","left"===a&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","top"===a&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===a&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),"data-slot":"sheet-content",...s,children:[r,(0,t.jsxs)(h.Dialog.Close,{className:"absolute top-4 right-4 grid size-8 touch-manipulation place-items-center rounded-md text-gray-900 transition-colors hover:bg-gray-alpha-100 hover:text-gray-1000 focus-visible:shadow-[var(--ds-focus-ring)] focus-visible:outline-none disabled:pointer-events-none data-[state=open]:bg-gray-alpha-100 motion-reduce:transition-none","data-slot":"sheet-close",children:[(0,t.jsx)(p.IconCross,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function g({className:e,...r}){return(0,t.jsx)("div",{className:(0,f.cn)("flex flex-col gap-1.5 p-4",e),"data-slot":"sheet-header",...r})}function v({className:e,...r}){return(0,t.jsx)(h.Dialog.Title,{className:(0,f.cn)("font-semibold text-gray-1000",e),"data-slot":"sheet-title",...r})}function b({className:e,...r}){return(0,t.jsx)(h.Dialog.Description,{className:(0,f.cn)("text-gray-800 text-sm",e),"data-slot":"sheet-description",...r})}var j=e.i(654300),y=e.i(62245),w=e.i(167469);let N=/\/$/,S=/^(?:\w+:|\/\/)/,C=e=>{let t=e?.badge;return"string"==typeof t&&t.length>0?t:void 0},k={DEL:"bg-red-200 text-red-1000",DELETE:"bg-red-200 text-red-1000",GET:"bg-green-200 text-green-1000",HEAD:"bg-teal-200 text-teal-1000",OPTIONS:"bg-pink-200 text-pink-1000",PATCH:"bg-purple-200 text-purple-1000",POST:"bg-blue-200 text-blue-1000",PUT:"bg-amber-200 text-amber-1000"},P={New:"bg-blue-200 text-blue-900"},A=e=>!!(e&&(e.external||S.test(e.url))),R=(e,t,r="sidebar")=>e.$id??`${r}-node-${t.join("-")}`,T=(e,t)=>
1void 0!==e&&void 0!==t&&e.url===t,E=(e,t)=>"page"===e.type?e.url===t:"separator"!==e.type&&(e.index?.url===t||e.children.some(e=>E(e,t))),I=/[^a-zA-Z0-9_-]/g,O=e=>{let t=[];for(let r of e)"page"===r.type?t.push(r.url):"folder"===r.type&&(r.index&&t.push(r.index.url),t.push(...O(r.children)));return t},L=(e,t,r)=>!!(t||S.test(r)||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey),z=e=>{e.dataset.fadeTop=String(e.scrollTop>0),e.dataset.fadeBottom=String(e.scrollTop+e.clientHeight<e.scrollHeight-1)},D=(e,t,r,n,a)=>{let i=`${t??""}:${n}`;(0,s.useLayoutEffect)(()=>{let t=e.current;if(!(t&&r&&i)||a?.current)return;let n=t.closest("[data-geistdocs-sidebar-scroll]"),s=t.querySelector('[aria-current="page"], [data-sidebar-active="true"]');n&&s&&((e,t)=>{let r=e.getBoundingClientRect(),n=t.getBoundingClientRect();if(n.top>=r.top&&n.bottom<=r.bottom)return;let a=n.top-r.top+e.scrollTop-(e.clientHeight-n.height)/2,i=e.scrollHeight-e.clientHeight;e.scrollTo({behavior:"auto",top:Math.min(Math.max(a,0),i)})})(n,s)},[e,r,i,a?.current])},_=({depth:e,item:r})=>(0,t.jsxs)("li",{className:(0,f.cn)("mt-4 flex items-center gap-2 px-2 pt-2 pb-1 font-medium text-gray-900 text-label-13 first:mt-0 [&_svg]:size-4",e>0&&"ml-3"),children:[r.icon?(0,t.jsx)("span",{className:"shrink-0",children:r.icon}):null,(0,t.jsx)("span",{className:"min-w-0 truncate",children:r.name})]}),M=({depth:e,nodes:r,parentPath:n,state:a})=>(0,t.jsx)(t.Fragment,{children:r.map((r,i)=>(0,t.jsx)(B,{depth:e,node:r,path:[...n,i],state:a},R(r,[...n,i],a.idScope)))}),F=({expanded:e})=>(0,t.jsx)(d,{className:(0,f.cn)(e&&"rotate-90"),size:16}),$=({children:e,className:r})=>(0,t.jsx)("span",{className:(0,f.cn)("grid h-9 w-8 flex-none place-content-center text-gray-900",r),children:e}),H=({label:e})=>e?(0,t.jsx)("span",{className:(0,f.cn)("inline-flex h-6 max-w-24 shrink-0 items-center truncate rounded-full px-2 text-button-12",P[e]??k[e]??"bg-gray-alpha-400 text-gray-1000"),children:e}):null,B=({depth:e,node:n,path:a,state:i})=>{var s;let l,d,c=R(n,a,i.idScope);if("separator"===n.type)return(0,t.jsx)(_,{depth:e,item:n});let u="folder"===n.type?n:null,h="folder"===n.type?n.index:n,p=C(h),x=!!u?.children.length,m=!!(u&&i.opened.includes(c)),g=T(h,i.activeUrl),v=(d=i.idPrefix,`${d}-${c.replace(I,"-")}`),b=`${v}-label`,j=(0,f.cn)("flex h-9 origin-left touch-manipulation flex-row items-center rounded-md pr-1 pl-2.5 motion-reduce:transition-none",(s=0===e,g?"bg-gray-200 text-gray-1000":s?"text-gray-1000 hover:bg-gray-100 focus-visible:bg-gray-100":"text-gray-900 hover:bg-gray-100 hover:text-gray-1000 focus-visible:bg-gray-100 focus-visible:text-gray-1000")),y=(0,t.jsxs)(t.Fragment,{children:[n.icon?(0,t.jsx)("span",{className:"shrink-0 [&_svg]:size-4",children:n.icon}):null,(0,t.jsxs)("span",{className:(0,f.cn)("flex min-w-0 flex-1 items-center gap-1.5 truncate text-button-14",e>0&&"font-normal"),children:[(0,t.jsx)(H,{label:p}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",id:b,children:n.name}),A(h)?(0,t.jsx)($,{children:(0,t.jsx)(o.IconArrowUpRightSmall,{size:16})}):null]})]});return l=h?(0,t.jsx)(r.default,{"aria-current":g?"page":void 0,className:(0,f.cn)(j,"min-w-0 flex-1 no-underline outline-none focus-visible:shadow-[var(--ds-focus-ring)]"),external:h.external,href:h.url,onClick:e=>{i.onNavigate?.(),L(e,h?.external,h?.url??"")||u&&x&&(g||!m)&&i.toggleFolder(u,a)},prefetch:!0,children:y}):u&&x?(0,t.jsxs)("button",{"aria-controls":v,"aria-expanded":m,className:(0,f.cn)(j,"w-full min-w-0 flex-1 cursor-pointer border-0 bg-transparent text-left outline-none focus-visible:shadow-[var(--ds-focus-ring)]"),onClick:()=>i.toggleFolder(u,a),type:"button",children:[y,(0,t.jsx)($,{className:"-mr-1",children:(0,t.jsx)(F,{expanded:m})})]}):(0,t.jsx)("span",{className:(0,f.cn)(j,"min-w-0 flex-1"),children:y}),(0,t.jsxs)("li",{className:(0,f.cn)("relative flex w-full select-none flex-col items-stretch",e>0&&"pl-3"),children:[(0,t.jsxs)("div",{className:"relative flex w-full items-center gap-px",children:[l,h&&u&&x?(0,t.jsx)("button",{"aria-controls":v,"aria-expanded":m,"aria-labelledby":b,className:"grid h-9 w-8 flex-none cursor-pointer touch-manipulation place-content-center rounded-md bg-transparent p-0 text-gray-900 hover:bg-gray-100 focus-visible:bg-gray-100 focus-visible:shadow-[var(--ds-focus-ring)] focu
1s-visible:outline-none motion-reduce:transition-none",onClick:()=>i.toggleFolder(u,a),type:"button",children:(0,t.jsx)(F,{expanded:m})}):null]}),u&&x&&m?(0,t.jsx)("ul",{className:"relative mt-px mb-1 flex w-full list-none flex-col gap-px p-0",id:v,children:(0,t.jsx)(M,{depth:e+1,nodes:u.children,parentPath:a,state:i})}):null]})},q=({activeUrl:e,idScope:r,nodes:n,onNavigate:a,openFirstLevel:i=!1,scrollActive:o=!1,visible:l=!0})=>{let d=(0,s.useId)().replace(I,""),c=r??`sidebar-${d}`,u=(0,s.useRef)(null),{manualToggleRef:h,opened:p,toggleFolder:f}=((e,t,r,n)=>{let a=(0,s.useMemo)(()=>((e,t,r=!1,n="sidebar")=>{let a=[],i=(e,s,o)=>{for(let[l,d]of e.entries()){if("folder"!==d.type)continue;let e=[...o,l];(d.defaultOpen??(r&&0===s||!!t&&E(d,t)))&&a.push(R(d,e,n)),i(d.children,s+1,e)}};return i(e,0,[]),a})(e,t,r,n),[t,e,r,n]),[i,o]=(0,s.useState)(a),l=(0,s.useRef)(!1);return(0,s.useLayoutEffect)(()=>{l.current=!1,o(e=>{let t=[...new Set([...e,...a])];return t.length===e.length?e:t})},[a]),{manualToggleRef:l,opened:i,toggleFolder:(e,t)=>{let r=R(e,t,n);l.current=!0,o(a=>{if(!a.includes(r))return[...a,r];let i=new Set([r,...((e,t,r="sidebar")=>{let n=[],a=(e,t)=>{for(let[i,s]of e.entries()){if("folder"!==s.type)continue;let e=[...t,i];n.push(R(s,e,r)),a(s.children,e)}};return a(e.children,t),n})(e,t,n)]);return a.filter(e=>!i.has(e))})}}})(n,e,i,c),x={activeUrl:e,idPrefix:`sidebar-${d}`,idScope:c,onNavigate:a,opened:p,toggleFolder:f};return D(u,e,o&&l,p.join(":"),h),(0,t.jsx)("ul",{className:"m-0 flex list-none flex-col gap-px p-0",ref:u,children:(0,t.jsx)(M,{depth:0,nodes:n,parentPath:[],state:x})})},K=({activeSection:e,activeUrl:r,groups:n,onSelect:a,visible:i})=>{let o=(0,s.useRef)(null);return D(o,r,i,e?.$id??"root"),(0,t.jsx)("div",{className:"flex flex-col gap-4 px-2 pt-1 pb-2",ref:o,children:n.map(n=>(0,t.jsxs)("div",{className:"flex flex-col",children:[n.label||n.icon?(0,t.jsxs)("div",{className:"flex items-center gap-2 px-2 pt-2 pb-1 font-medium text-gray-900 text-label-13 [&_svg]:size-4",children:[n.icon?(0,t.jsx)("span",{className:"shrink-0",children:n.icon}):null,(0,t.jsx)("span",{className:"min-w-0 truncate",children:n.label})]}):null,(0,t.jsx)("ul",{className:"m-0 flex list-none flex-col gap-px p-0",children:n.items.map((n,i)=>(0,t.jsx)(U,{activeSection:e,activeUrl:r,item:n,onSelect:a},R(n,[i])))})]},n.id))})},U=({activeSection:e,activeUrl:n,item:a,onSelect:i})=>{let s,l,c="folder"===a.type?a:null,u="folder"===a.type?a.index:a,h=C(u),p=!!c?.children.length,x="folder"===a.type&&a.children.length>0&&A(a.index),m=T(u,n),g=a===e||m,v={folder:"font-medium",page:"font-normal"}[a.type],b=(0,f.cn)("flex h-9 touch-manipulation items-center gap-2 rounded-md pr-2 pl-2.5 no-underline outline-none focus-visible:shadow-[var(--ds-focus-ring)] motion-reduce:transition-none",g?"bg-gray-200 text-gray-1000":"text-gray-900 hover:bg-gray-100 hover:text-gray-1000 focus-visible:bg-gray-100"),j=(0,t.jsxs)(t.Fragment,{children:[a.icon?(0,t.jsx)("span",{className:"shrink-0 [&_svg]:size-4",children:a.icon}):null,(0,t.jsx)(H,{label:h}),(0,t.jsx)("span",{className:(0,f.cn)("min-w-0 flex-1 truncate text-button-14",v),children:a.name}),A(u)?(0,t.jsx)($,{children:(0,t.jsx)(o.IconArrowUpRightSmall,{size:16})}):null,p&&!x?(0,t.jsx)($,{children:(0,t.jsx)(d,{size:16})}):null]});return s=u?(0,t.jsx)(r.default,{"aria-current":m?"page":void 0,className:(0,f.cn)(b,x&&"min-w-0 flex-1"),"data-sidebar-active":g,external:u.external,href:u.url,onClick:c&&p?e=>{L(e,u.external,u.url)||i(c,e.currentTarget)}:void 0,prefetch:!0,children:j}):c&&p?(0,t.jsx)("button",{className:(0,f.cn)(b,"w-full cursor-pointer border-0 bg-transparent text-left"),"data-sidebar-active":g,onClick:e=>i(c,e.currentTarget),type:"button",children:j}):(0,t.jsx)("span",{className:b,children:j}),(0,t.jsxs)("li",{className:(0,f.cn)(x&&"flex items-center gap-px"),children:[s,x?(0,t.jsx)("button",{"aria-label":"string"==typeof(l=a.name)||"number"==typeof l?`Browse ${l}`:"Browse Section",className:"grid size-8 flex-none cursor-pointer touch-manipulation place-content-center rounded-md bg-transparent p-0 text-gray-900 hover:bg-gray-100 focus-visible:bg-gray-100 focus-visible:shadow-[var(--ds-focus-ring)] focu
1s-visible:outline-none motion-reduce:transition-none",onClick:e=>i(a,e.currentTarget),type:"button",children:(0,t.jsx)(d,{size:16})}):null]})},G=({buttonRef:e,onBack:r,section:n})=>(0,t.jsx)("div",{className:"mb-2 px-2 pt-1",children:(0,t.jsxs)("button",{"aria-label":"Back to all documentation sections",className:"flex w-full cursor-pointer touch-manipulation flex-row items-center justify-between gap-1 rounded-md border-0 bg-transparent p-0 text-gray-900 hover:bg-gray-100 hover:text-gray-1000 focus-visible:bg-gray-100 focus-visible:text-gray-1000 focus-visible:shadow-[var(--ds-focus-ring)] focus-visible:outline-none motion-reduce:transition-none",onClick:r,ref:e,type:"button",children:[(0,t.jsx)("span",{className:"grid size-9 flex-none place-content-center",children:(0,t.jsx)(d,{className:"rotate-180",size:16})}),(0,t.jsx)("span",{className:"flex min-w-0 flex-1 items-center justify-center text-button-14",children:(0,t.jsx)("span",{className:"truncate",children:n.name})}),(0,t.jsx)("span",{className:"size-9 flex-none"})]})}),V=({activeUrl:e,nodes:r,rootScope:n,top:a})=>{let o=(0,s.useMemo)(()=>(e=>{let t=[],r={id:"sidebar-root",items:[]};for(let[n,a]of e.entries()){if("separator"===a.type){r.items.length>0&&t.push(r),r={icon:a.icon,id:R(a,[n]),items:[],label:a.name};continue}r.items.push(a)}return r.items.length>0&&t.push(r),t})(r),[r]),l=(0,s.useMemo)(()=>((e,t)=>{if(!t)return null;for(let r of e)if("folder"===r.type&&r.children.length>0&&E(r,t))return r;return null}
1)(r,e),[e,r]),[d,c]=(0,s.useState)(null),u=d??l,[h,p]=(0,s.useState)(l?"section":"root"),[x,m]=(0,s.useState)("section"===h),g=(0,s.useRef)(null);(0,i.useSize)({onResize:()=>{g.current&&z(g.current)},ref:g});let v=(0,s.useRef)(null),b=(0,s.useRef)(null),j=(0,s.useRef)(!1),y=(0,s.useRef)(!1),S=(0,s.useMemo)(()=>(e=>{if(!e)return[];if(!e.index)return e.children;let t=e.index.url.replace(N,"");return[{...e.index,$id:`${e.$id??"section"}-overview`,icon:void 0,name:"Overview"},...e.children.filter(e=>"page"!==e.type||e.url.replace(N,"")!==t)]})(u),[u]),C=u?R(u,[Math.max(r.indexOf(u),0)],n):n;(0,s.useEffect)(()=>{c(null),p(l?"section":"root")},[l]),(0,s.useEffect)(()=>{if("section"!==h)return void m(!1);let e=requestAnimationFrame(()=>m(!0));return()=>cancelAnimationFrame(e)},[h]),(0,s.useEffect)(()=>{let e,t=g.current;if(!t)return;let r=()=>{void 0===e&&(e=requestAnimationFrame(()=>{e=void 0,z(t)}))};return z(t),t.addEventListener("scroll",r,{passive:!0}),()=>{void 0!==e&&cancelAnimationFrame(e),t.removeEventListener("scroll",r)}},[]);let k="section"===h&&x,P=!k;return(0,s.useLayoutEffect)(()=>{if(k&&y.current){b.current?.focus({preventScroll:!0}),y.current=!1;return}if(!k&&j.current){let e=v.current?.isConnected?v.current:g.current?.querySelector('[data-sidebar-pane="root"] [data-sidebar-active="true"]')??g.current?.querySelector('[data-sidebar-pane="root"] a, [data-sidebar-pane="root"] button');e?.focus({preventScroll:!0}),j.current=!1}},[k]),(0,t.jsx)("div",{className:"pointer-events-none sticky top-(--fd-docs-row-1) z-20 @min-[961px]:block hidden h-[calc(var(--fd-docs-height)-var(--fd-docs-row-1))] @min-[961px]:layout:[--fd-sidebar-width:300px] [grid-area:sidebar] *:pointer-events-auto","data-sidebar-placeholder":!0,children:(0,t.jsx)("aside",{className:"h-full w-[300px] pr-3 text-gray-900",children:(0,t.jsx)(w.MouseDownNavigation,{children:(0,t.jsxs)("nav",{"aria-label":"Documentation",className:"geistdocs-sidebar-scroll h-full w-full overflow-auto overflow-x-hidden px-1 pt-14 pb-1 outline-none","data-geistdocs-sidebar-scroll":!0,ref:g,children:[a?(0,t.jsx)("div",{className:"px-2 pb-3",children:a}):null,(0,t.jsxs)("div",{className:"relative overflow-hidden",children:[(0,t.jsx)("div",{className:(0,f.cn)("geistdocs-sidebar-pane",k&&"pointer-events-none absolute inset-x-0 top-0 opacity-0 [transform:translateX(-8px)] motion-reduce:invisible"),"data-sidebar-pane":"root",inert:k||void 0,children:(0,t.jsx)(K,{activeSection:u,activeUrl:e,groups:o,onSelect:(e,t)=>{v.current=t,y.current=!0,c(e),p("section")},visible:!k})}),u?(0,t.jsxs)("div",{className:(0,f.cn)("geistdocs-sidebar-pane",P&&"pointer-events-none absolute inset-x-0 top-0 opacity-0 [transform:translateX(8px)] motion-reduce:invisible"),"data-sidebar-pane":"section",inert:P||void 0,children:[(0,t.jsx)(G,{buttonRef:b,onBack:()=>{j.current=!0,c(null),p("root")},section:u}),(0,t.jsx)("div",{className:"px-2",children:(0,t.jsx)(q,{activeUrl:e,idScope:C,nodes:S,openFirstLevel:!0,scrollActive:!0,visible:!P})})]}):null]})]})})})})},W=({activeUrl:e,nodes:r,rootScope:n,top:a})=>(0,t.jsx)("div",{className:"pointer-events-none sticky top-(--fd-docs-row-1) z-20 @min-[961px]:block hidden h-[calc(var(--fd-docs-height)-var(--fd-docs-row-1))] @min-[961px]:layout:[--fd-sidebar-width:300px] [grid-area:sidebar] *:pointer-events-auto","data-sidebar-mode":"tree","data-sidebar-placeholder":!0,children:(0,t.jsx)("aside",{className:"h-full w-[300px] pr-3 text-gray-900",children:(0,t.jsx)(w.MouseDownNavigation,{children:(0,t.jsxs)("nav",{"aria-label":"Documentation",className:"geistdocs-sidebar-scroll h-full w-full overflow-auto overflow-x-hidden px-3 pt-14 pb-1 outline-none","data-geistdocs-sidebar-scroll":!0,children:[a?(0,t.jsx)("div",{className:"pb-3",children:a}):null,(0,t.jsx)(q,{activeUrl:e,idScope:n,nodes:r,openFirstLevel:!0,scrollActive:!0})]})})})}),X=({mode:e,...r})=>"tree"===e?(0,t.jsx)(W,{...r}):(0,t.jsx)(V,{...r}),J=({activeUrl:e,idScope:r,nodes:n,onOpenChange:a,open:i,top:s})=>(0,t.jsx)(x,{onOpenChange:a,open:i,children:(0,t.jsxs)(m,{className:"w-full gap-0 bg-background-200 p-0 sm:max-w-none","data-geistdocs-mobile-sidebar":!0,noOverlay:!0,side:"left",children:[(0,t.jsxs)(g,{className:"h-16 shrink-0 justify-center border-b px-4 py-0",children:[(0,t.jsx)(v,{className:"text-label-16",children:"Browse"}),(0,t.jsx)(b,{className:"sr-only",children:"Navigation for the documentation."})]}),(0,t.jsx)(w.MouseDownNavigation,{children:(0,t.jsxs)("nav",{"aria-label":"Documentation",className:"flex-1 overflow-y-auto overflow-x-hidden overscroll-contain px-2 py-3 text-gray-900","data-geistdocs-sidebar-scroll":!0,children:[(0,t.jsx)("div",{className:"pb-4 [&>button]:w-full",children:(0,t.jsx)(j.SearchButton,{onClick:()=>a(!1)})}),s?(0,t.jsx)("div",{className:"pb-4",children:s}):null,(0,t.jsx)(q,{activeUrl:e,idScope:r,nodes:n,onNavigate:()=>a(!1),scrollActive:!0,visible:i})]})})]})});e.s(["GeistdocsSidebar",0,({mode:e="sections",showDesktop:r=!0,top:o})=>{let{root:l,full:d}=(0,n.useTreeContext)(),{isOpen:c,setIsOpen:u}=(0,y.useGeistdocsSidebar)(),h=(0,s.useRef)(null);
1(0,i.useSize)({onResize:({width:e})=>{e>=961&&u(!1)},ref:h});let p=(0,a.usePathname)(),f=(0,s.useRef)(p),x=(0,a.useParams)(),m=Array.isArray(x.slug)?x.slug.join("/"):x.slug??"",g=(0,s.useMemo)(()=>{let e;return((e,t)=>{if(!t)return;let r=`/${t}`;return O(e).filter(e=>e.endsWith(r)).sort((e,t)=>e.split("/").length-t.split("/").length).at(0)})(d.children,m)??(e=l.children,O(e).filter(e=>p===e||p.endsWith(e)).sort((e,t)=>t.length-e.length).at(0))},[d,p,l,m]),v=(0,s.useMemo)(()=>l.$id??(e=>{let t;for(let r of O(e))(!t||r.length<t.length)&&(t=r);return t})(l.children)??"root",[l]);return(0,s.useEffect)(()=>{p!==f.current&&(u(!1),f.current=p)},[p,u]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{hidden:!0,ref:e=>{h.current=e?.closest("[data-geistdocs-container]")??null}}),r?(0,t.jsx)(X,{activeUrl:g,mode:e,nodes:l.children,rootScope:v,top:o},l.$id):null,(0,t.jsx)(J,{activeUrl:g,idScope:v,nodes:l.children,onOpenChange:u,open:c,top:o})]})}],22693)},943925,e=>{"use strict";var t=e.i(824980),r=e.i(891643),n=e.i(125934);e.i(673354);var a=e.i(444906);e.i(847346);var i=e.i(553160),s=e.i(788082),o=e.i(183366),l=e.i(805489),d=e.i(541209);e.s(["SidebarTabsDropdown",0,function({options:e,placeholder:c,...u}){let[h,p]=(0,n.useState)(!1),{closeOnRedirect:f}=(0,l.useSidebar)(),x=(0,i.usePathname)(),m=(0,n.useMemo)(()=>e.findLast(e=>(0,o.isTabActive)(e,x)),[e,x]),g=()=>{f.current=!1,p(!1)},v=m?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"size-9 shrink-0 empty:hidden md:size-5",children:m.icon}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:m.title}),(0,t.jsx)("p",{className:"text-sm text-fd-muted-foreground empty:hidden md:hidden",children:m.description})]})]}):c;return(0,t.jsxs)(d.Popover,{open:h,onOpenChange:p,children:[v&&(0,t.jsxs)(d.PopoverTrigger,{...u,className:(0,s.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:[v,(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=m&&e.url===m.url;if(n||!e.unlisted)return(0,t.jsxs)(a.default,{href:e.url,onClick:g,...e.props,className:(0,s.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,s.cn)("shrink-0 ms-auto size-3.5 text-fd-primary",!n&&"invisible")})]},e.url)})})]})}])},541209,e=>{"use strict";var t=e.i(824980),r=e.i(125934),n=e.i(943473),a=e.i(222138),i=e.i(689500),s=e.i(398340),o=e.i(586912),l=e.i(890100),d=e.i(688768),c=e.i(961143),u=e.i(278928),h=e.i(509388),p=r.forwardRef((e,r)=>{let{children:n,width:a=10,height:i=5,...s}=e;return(0,t.jsx)(h.Primitive.svg,{...s,ref:r,width:a,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,t.jsx)("polygon",{points:"0,0 30,0 15,10"})})});p.displayName="Arrow";var f=e.i(191801),x=e.i(484831),m=e.i(690877),g="Popper",[v,b]=(0,i.createContextScope)(g),[j,y]=v(g),w=e=>{let{__scopePopper:n,children:a}=e,[i,s]=r.useState(null),[o,l]=r.useState(void 0);return(0,t.jsx)(j,{scope:n,anchor:i,onAnchorChange:s,placementState:o,setPlacementState:l,children:a})};w.displayName=g;var N="PopperAnchor",S=r.forwardRef((e,n)=>{let{__scopePopper:i,virtualRef:s,...o}=e,l=y(N,i),d=r.useRef(null),c=l.onAnchorChange,u=r.useCallback(e=>{d.current=e,e&&c(e)},[c]),p=(0,a.useComposedRefs)(n,u),f=r.useRef(null);r.useEffect(()=>{if(!s)return;let e=f.current;f.current=s.current,e!==f.current&&c(f.current)});let x=l.placementState&&L(l.placementState),m=x?.[0],g=x?.[1];return s?null:(0,t.jsx)(h.Primitive.div,{"data-radix-popper-side":m,"data-radix-popper-align":g,...o,ref:p})});S.displayName=N;
1var C="PopperContent",[k,P]=v(C),A=r.forwardRef((e,n)=>{let{__scopePopper:i,side:s="bottom",sideOffset:o=0,align:l="center",alignOffset:d=0,arrowPadding:p=0,avoidCollisions:g=!0,collisionBoundary:v=[],collisionPadding:b=0,sticky:j="partial",hideWhenDetached:w=!1,updatePositionStrategy:N="optimized",onPlaced:S,...P}=e,A=y(C,i),[R,T]=r.useState(null),E=(0,a.useComposedRefs)(n,T),[z,D]=r.useState(null),_=(0,m.useSize)(z),M=_?.width??0,F=_?.height??0,$="number"==typeof b?b:{top:0,right:0,bottom:0,left:0,...b},H=Array.isArray(v)?v:[v],B=H.length>0,q={padding:$,boundary:H.filter(I),altBoundary:B},{refs:K,floatingStyles:U,placement:G,isPositioned:V,middlewareData:W}=(0,c.useFloating)({strategy:"fixed",placement:s+("center"!==l?"-"+l:""),whileElementsMounted:(...e)=>(0,u.autoUpdate)(...e,{animationFrame:"always"===N}),elements:{reference:A.anchor},middleware:[(0,c.offset)({mainAxis:o+F,alignmentAxis:d}),g&&(0,c.shift)({mainAxis:!0,crossAxis:!1,limiter:"partial"===j?(0,c.limitShift)():void 0,...q}),g&&(0,c.flip)({...q}),(0,c.size)({...q,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:a,height:i}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${r}px`),s.setProperty("--radix-popper-available-height",`${n}px`),s.setProperty("--radix-popper-anchor-width",`${a}px`),s.setProperty("--radix-popper-anchor-height",`${i}px`)}}),z&&(0,c.arrow)({element:z,padding:p}),O({arrowWidth:M,arrowHeight:F}),w&&(0,c.hide)({strategy:"referenceHidden",...q,boundary:B?q.boundary:void 0})]}),X=A.setPlacementState;(0,x.useLayoutEffect)(()=>(X(G),()=>{X(void 0)}),[G,X]);let[J,Y]=L(G),Z=(0,f.useCallbackRef)(S);(0,x.useLayoutEffect)(()=>{V&&Z?.()},[V,Z]);let Q=W.arrow?.x,ee=W.arrow?.y,et=W.arrow?.centerOffset!==0,[er,en]=r.useState();return(0,x.useLayoutEffect)(()=>{R&&en(window.getComputedStyle(R).zIndex)},[R]),(0,t.jsx)("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:V?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:er,"--radix-popper-transform-origin":[W.transformOrigin?.x,W.transformOrigin?.y].join(" "),...W.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,t.jsx)(k,{scope:i,placedSide:J,placedAlign:Y,onArrowChange:D,arrowX:Q,arrowY:ee,shouldHideArrow:et,children:(0,t.jsx)(h.Primitive.div,{"data-side":J,"data-align":Y,...P,ref:E,style:{...P.style,animation:V?void 0:"none"}})})})});A.displayName=C;var R="PopperArrow",T={top:"bottom",right:"left",bottom:"top",left:"right"},E=r.forwardRef(function(e,r){let{__scopePopper:n,...a}=e,i=P(R,n),s=T[i.placedSide];return(0,t.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,t.jsx)(p,{...a,ref:r,style:{...a.style,display:"block"}})})});function I(e){return null!==e}E.displayName=R;var O=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:a}=t,i=a.arrow?.centerOffset!==0,s=i?0:e.arrowWidth,o=i?0:e.arrowHeight,[l,d]=L(r),c={start:"0%",center:"50%",end:"100%"}[d],u=(a.arrow?.x??0)+s/2,h=(a.arrow?.y??0)+o/2,p="",f="";return"bottom"===l?(p=i?c:`${u}px`,f=`${-o}px`):"top"===l?(p=i?c:`${u}px`,f=`${n.floating.height+o}px`):"right"===l?(p=`${-o}px`,f=i?c:`${h}px`):"left"===l&&(p=`${n.floating.width+o}px`,f=i?c:`${h}px`),{data:{x:p,y:f}}}});function L(e){let[t,r="center"]=e.split("-");return[t,r]}var z=e.i(510180),D=r.forwardRef((e,n)=>{let{container:a,...i}=e,[s,o]=r.useState(!1);(0,x.useLayoutEffect)(()=>o(!0),[]);let l=a||s&&globalThis?.document?.body;return l?z.createPortal((0,t.jsx)(h.Primitive.div,{...i,ref:n}),l):null});D.displayName="Portal";var _=e.i(994128),M=e.i(164583),F=e.i(86200),$=e.i(645751),H=e.i(180962),B="Popover",[q,K]=(0,i.createContextScope)(B,[b]),U=b(),[G,V]=q(B),W=e=>{let{__scopePopover:n,children:a,open:i,defaultOpen:s,onOpenChange:o,modal:l=!1}=e,c=U(n),u=r.useRef(null),[h,p]=r.useState(!1),[f,x]=(0,F.useControllableState)({prop:i,defaultProp:s??!1,onChange:o,caller:B});return(0,t.jsx)(w,{...c,children:(0,t.jsx)(G,{scope:n,contentId:(0,d.useId)(),triggerRef:u,open:f,onOpenChange:x,onOpenToggle:r.useCallback(()=>x(e=>!e),[x]),hasCustomAnchor:h,onCustomAnchorAdd:r.useCallback(()=>p(!0),[]),onCustomAnchorRemove:r.useCallback(()=>p(!1),[]),modal:l,children:a})})};W.displayName=B;var X="PopoverAnchor";
1r.forwardRef((e,n)=>{let{__scopePopover:a,...i}=e,s=V(X,a),o=U(a),{onCustomAnchorAdd:l,onCustomAnchorRemove:d}=s;return r.useEffect(()=>(l(),()=>d()),[l,d]),(0,t.jsx)(S,{...o,...i,ref:n})}).displayName=X;var J="PopoverTrigger",Y=r.forwardRef((e,r)=>{let{__scopePopover:i,...s}=e,o=V(J,i),l=U(i),d=(0,a.useComposedRefs)(r,o.triggerRef),c=(0,t.jsx)(h.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":ed(o.open),...s,ref:d,onClick:(0,n.composeEventHandlers)(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:(0,t.jsx)(S,{asChild:!0,...l,children:c})});Y.displayName=J;var Z="PopoverPortal",[Q,ee]=q(Z,{forceMount:void 0}),et=e=>{let{__scopePopover:r,forceMount:n,children:a,container:i}=e,s=V(Z,r);return(0,t.jsx)(Q,{scope:r,forceMount:n,children:(0,t.jsx)(_.Presence,{present:n||s.open,children:(0,t.jsx)(D,{asChild:!0,container:i,children:a})})})};et.displayName=Z;var er="PopoverContent",en=r.forwardRef((e,r)=>{let n=ee(er,e.__scopePopover),{forceMount:a=n.forceMount,...i}=e,s=V(er,e.__scopePopover);return(0,t.jsx)(_.Presence,{present:a||s.open,children:s.modal?(0,t.jsx)(ei,{...i,ref:r}):(0,t.jsx)(es,{...i,ref:r})})});en.displayName=er;var ea=(0,M.createSlot)("PopoverContent.RemoveScroll"),ei=r.forwardRef((e,i)=>{let s=V(er,e.__scopePopover),o=r.useRef(null),l=(0,a.useComposedRefs)(i,o),d=r.useRef(!1);return r.useEffect(()=>{let e=o.current;if(e)return(0,$.hideOthers)(e)},[]),(0,t.jsx)(H.RemoveScroll,{as:ea,allowPinchZoom:!0,children:(0,t.jsx)(eo,{...e,ref:l,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,n.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),d.current||s.triggerRef.current?.focus()}),onPointerDownOutside:(0,n.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;d.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,n.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),es=r.forwardRef((e,n)=>{let a=V(er,e.__scopePopover),i=r.useRef(!1),s=r.useRef(!1);return(0,t.jsx)(eo,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||a.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(s.current=!0));let r=t.target;a.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&s.current&&t.preventDefault()}})}),eo=r.forwardRef((e,r)=>{let{__scopePopover:n,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:d,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:p,onInteractOutside:f,...x}=e,m=V(er,n),g=U(n);return(0,o.useFocusGuards)(),(0,t.jsx)(l.FocusScope,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:i,onUnmountAutoFocus:d,children:(0,t.jsx)(s.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:f,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:p,onDismiss:()=>m.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,t.jsx)(A,{"data-state":ed(m.open),role:"dialog",id:m.contentId,...g,...x,ref:r,style:{...x.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)"}})})})}),el="PopoverClose";function ed(e){return e?"open":"closed"}r.forwardRef((e,r)=>{let{__scopePopover:a,...i}=e,s=V(el,a);return(0,t.jsx)(h.Primitive.button,{type:"button",...i,ref:r,onClick:(0,n.composeEventHandlers)(e.onClick,()=>s.onOpenChange(!1))})}).displayName=el,r.forwardRef((e,r)=>{let{__scopePopover:n,...a}=e,i=U(n);return(0,t.jsx)(E,{...i,...a,ref:r})}).displayName="PopoverArrow";var ec=e.i(788082);let eu=r.forwardRef(({className:e,align:r="center",sideOffset:n=4,...a},i)=>(0,t.jsx)(et,{children:(0,t.jsx)(en,{ref:i,align:r,sideOffset:n,side:"bottom",className:(0,ec.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-
1popover-foreground shadow-lg focus-visible:outline-none data-[state=closed]:animate-fd-popover-out data-[state=open]:animate-fd-popover-in",e),...a})}));eu.displayName=en.displayName,e.s(["Popover",0,W,"PopoverContent",0,eu,"PopoverTrigger",0,Y],541209)},32194,e=>{"use strict";var t=e.i(824980),r=e.i(125934);let n=(0,r.createContext)({enabled:!1,hotKey:[],setOpenSearch:()=>void 0});function a(){let[e,t]=(0,r.useState)("⌘");return(0,r.useEffect)(()=>{window.navigator.userAgent.includes("Windows")&&t("Ctrl")},[]),e}e.s(["SearchProvider",0,function({SearchDialog:e,children:i,preload:s=!0,options:o,hotKey:l=[{key:e=>e.metaKey||e.ctrlKey,display:(0,t.jsx)(a,{})},{key:"k",display:"K"}],links:d}){let[c,u]=(0,r.useState)(!s&&void 0),h=(0,r.useEffectEvent)(e=>{l.every(t=>"string"==typeof t.key?e.key===t.key:t.key(e))&&(u(e=>!e),e.preventDefault())});return(0,r.useEffect)(()=>(window.addEventListener("keydown",h),()=>{window.removeEventListener("keydown",h)}),[l]),(0,t.jsxs)(n,{value:(0,r.useMemo)(()=>({enabled:!0,hotKey:l,setOpenSearch:u}),[l]),children:[void 0!==c&&(0,t.jsx)(e,{open:c,onOpenChange:u,links:d,...o}),i]})},"useSearchContext",0,function(){return(0,r.use)(n)}])},599423,e=>{"use strict";var t=e.i(824980),r=e.i(805489),n=e.i(788082),a=e.i(125934),i=e.i(294237),s=e.i(373238),o=e.i(462046),l=e.i(752415),d=e.i(891643),c=e.i(737778);let u=(0,i.cva)("relative flex flex-row items-center gap-2 rounded-lg p-2 text-start text-fd-muted-foreground wrap-anywhere transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{link:"data-[active=true]:bg-fd-primary/10 data-[active=true]:text-fd-primary data-[active=true]:hover:transition-colors"},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:p,SidebarFolder:f,SidebarCollapseTrigger:x,SidebarViewport:m,SidebarTrigger:g}=r;function v({className:e,style:a,children:i,...s}){let o=r.useFolderDepth();return(0,t.jsx)(r.SidebarSeparator,{className:(0,n.cn)("[&_svg]:size-4 [&_svg]:shrink-0",e),style:{paddingInlineStart:h(o),...a},...s,children:i})}function b({className:e,style:a,children:i,...s}){let o=r.useFolderDepth();return(0,t.jsx)(r.SidebarItem,{className:(0,n.cn)(u({variant:"link",highlight:o>=1}),e),style:{paddingInlineStart:h(o),...a},...s,children:i})}function j({className:e,style:a,...i}){let s=r.useFolderDepth();return(0,t.jsx)(r.SidebarFolderTrigger,{className:(0,n.cn)(u(),"w-full",e),style:{paddingInlineStart:h(s-1),...a},...i,children:i.children})}function y({className:e,style:a,...i}){let s=r.useFolderDepth();return(0,t.jsx)(r.SidebarFolderLink,{className:(0,n.cn)(u({variant:"link",highlight:s>1}),"w-full",e),style:{paddingInlineStart:h(s-1),...a},...i,children:i.children})}function w({className:e,children:a,...i}){let s=r.useFolderDepth();return(0,t.jsx)(r.SidebarFolderContent,{className:(0,n.cn)("relative",1===s&&"before:content-[''] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:start-2.5",e),...i,children:a})}let N=function({SidebarFolder:e,SidebarFolderContent:r,SidebarFolderLink:n,SidebarFolderTrigger:i,SidebarSeparator:o,SidebarItem:l}){function d({item:a,children:o}){let l=(0,s.useTreePath)();return(0,t.jsxs)(e,{defaultOpen:e=>(a.defaultOpen??e)||l.includes(a),children:[a.index?(0,t.jsxs)(n,{href:a.index.url,external:a.index.external,children:[a.icon,a.name]}):(0,t.jsxs)(i,{children:[a.icon,a.name]}),(0,t.jsx)(r,{children:o})]})}return function(e){let{root:r}=(0,s.useTreeContext)(),{Separator:n,Item:i,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)(o,{children:[r.icon,r.name]},a):"folder"===r.type?(0,t.jsx)(c,{item:r,children:e(r.children)},a):i?(0,t.jsx)(i,{item:r},r.url):(0,t.jsx)(l,{href:r.url,external:r.external,icon:r.icon,
1children:r.name},r.url))}(r.children)},r.$id),[c,i,n,r])}}({SidebarFolder:f,SidebarFolderContent:w,SidebarFolderLink:y,SidebarFolderTrigger:j,SidebarItem:b,SidebarSeparator:v}),S=function({SidebarFolder:e,SidebarFolderContent:r,SidebarFolderLink:n,SidebarFolderTrigger:a,SidebarItem:i}){return function s({item:o,...l}){return"custom"===o.type?(0,t.jsx)("div",{...l,children:o.children}):"menu"===o.type?(0,t.jsxs)(e,{...l,children:[o.url?(0,t.jsxs)(n,{href:o.url,external:o.external,children:[o.icon,o.text]}):(0,t.jsxs)(a,{children:[o.icon,o.text]}),(0,t.jsx)(r,{children:o.items.map((e,r)=>(0,t.jsx)(s,{item:e},r))})]}):(0,t.jsx)(i,{href:o.url,icon:o.icon,external:o.external,...l,children:o.text})}}({SidebarFolder:f,SidebarFolderContent:w,SidebarFolderLink:y,SidebarFolderTrigger:j,SidebarItem:b});e.s(["Sidebar",0,p,"SidebarCollapseTrigger",0,x,"SidebarContent",0,function({ref:e,className:i,children:s,...u}){let h=(0,a.useRef)(null);return(0,t.jsx)(r.SidebarContent,{children:({collapsed:r,hovered:a,ref:p,...f})=>(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",...f}),(0,t.jsx)("aside",{id:"nd-sidebar",ref:(0,c.mergeRefs)(h,e,p),"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]",i),...u,...f,children:s})]}),(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)(x,{className:(0,n.cn)((0,o.buttonVariants)({color:"ghost",size:"icon-sm",className:"rounded-lg"})),children:(0,t.jsx)(d.Sidebar,{})}),(0,t.jsx)(l.SearchToggle,{className:"rounded-lg",hideIfDisabled:!0})]})]})})},"SidebarDrawer",0,function({children:e,className:a,...i}){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),...i,children:e})]})},"SidebarFolder",0,f,"SidebarFolderContent",0,w,"SidebarFolderLink",0,y,"SidebarFolderTrigger",0,j,"SidebarItem",0,b,"SidebarLinkItem",0,S,"SidebarPageTree",0,N,"SidebarSeparator",0,v,"SidebarTrigger",0,g,"SidebarViewport",0,m],599423)},887581,e=>{"use strict";var t=e.i(824980),r=e.i(365760),n=e.i(541209),a=e.i(788082),i=e.i(462046);e.s(["LanguageToggle",0,function(e){let s=(0,r.useI18n)();if(!s.locales)throw Error("Missing `<I18nProvider />`");return(0,t.jsxs)(n.Popover,{children:[(0,t.jsx)(n.PopoverTrigger,{"aria-label":s.text.chooseLanguage,...e,className:(0,a.cn)((0,i.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:s.text.chooseLanguage}),s.locales.map(e=>(0,t.jsx)("button",{type:"button",className:(0,a.cn)("p-2 text-start text-sm",e.locale===s.locale?"bg-fd-primary/10 font-medium text-fd-
1primary":"hover:bg-fd-accent hover:text-fd-accent-foreground"),onClick:()=>{s.onChange?.(e.locale)},children:e.name},e.locale))]})]})},"LanguageToggleText",0,function(e){let n=(0,r.useI18n)(),a=n.locales?.find(e=>e.locale===n.locale)?.name;return(0,t.jsx)("span",{...e,children:a})}])},804336,e=>{"use strict";var t=e.i(824980);e.i(847346);var r=e.i(553160),n=e.i(183366);e.i(673354);var a=e.i(444906);e.s(["LinkItem",0,function({ref:e,item:i,...s}){let o=(0,r.usePathname)(),l=i.active??"url",d="none"!==l&&(0,n.isActive)(i.url,o,"nested-url"===l);return(0,t.jsx)(a.default,{ref:e,href:i.url,external:i.external,...s,"data-active":d,children:s.children})}])},752415,e=>{"use strict";var t=e.i(824980),r=e.i(891643),n=e.i(32194),a=e.i(365760),i=e.i(788082),s=e.i(462046);e.s(["LargeSearchToggle",0,function({hideIfDisabled:e,...s}){let{enabled:o,hotKey:l,setOpenSearch:d}=(0,n.useSearchContext)(),{text:c}=(0,a.useI18n)();return e&&!o?null:(0,t.jsxs)("button",{type:"button","data-search-full":"",...s,className:(0,i.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",s.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:l.map((e,r)=>(0,t.jsx)("kbd",{className:"rounded-md border bg-fd-background px-1.5",children:e.display},r))})]})},"SearchToggle",0,function({hideIfDisabled:e,size:a="icon-sm",color:o="ghost",...l}){let{setOpenSearch:d,enabled:c}=(0,n.useSearchContext)();return e&&!c?null:(0,t.jsx)("button",{type:"button",className:(0,i.cn)((0,s.buttonVariants)({size:a,color:o}),l.className),"data-search":"","aria-label":"Open Search",onClick:()=>{d(!0)},children:(0,t.jsx)(r.Search,{})})}])},117467,e=>{"use strict";var t=e.i(824980),r=e.i(294237),n=e.i(891643),a=e.i(848317),i=e.i(125934),s=e.i(788082);let o=(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"}}}),l=[["light",n.Sun],["dark",n.Moon],["system",n.Airplay]];e.s(["ThemeToggle",0,function({className:e,mode:r="light-dark",...n}){let{setTheme:d,theme:c,resolvedTheme:u}=(0,a.useTheme)(),[h,p]=(0,i.useState)(!1);(0,i.useEffect)(()=>{p(!0)},[]);let f=(0,s.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:f,"aria-label":"Toggle Theme",onClick:()=>d("light"===e?"dark":"light"),"data-theme-toggle":"",children:l.map(([r,n])=>{if("system"!==r)return(0,t.jsx)(n,{fill:"currentColor",className:(0,s.cn)(o({active:e===r}))},r)})})}let x=h?c:null;return(0,t.jsx)("div",{className:f,"data-theme-toggle":"",...n,children:l.map(([e,r])=>(0,t.jsx)("button",{"aria-label":e,className:(0,s.cn)(o({active:x===e})),onClick:()=>d(e),children:(0,t.jsx)(r,{className:"size-full",fill:"currentColor"})},e))})}])},397605,664513,997094,e=>{"use strict";var t=e.i(824980),r=e.i(848317),n=e.i(125934),a=e.i(802033),i=e.i(32194),s=e.i(365760);e.i(847346);var o=e.i(553160);let l=(0,n.lazy)(()=>e.A(168537));function d({children:e,dir:n="ltr",theme:s={},search:o,i18n:u}){let h=e;return o?.enabled!==!1&&(h=(0,t.jsx)(i.SearchProvider,{SearchDialog:l,...o,children:h})),s?.enabled!==!1&&(h=(0,t.jsx)(r.ThemeProvider,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,...s,children:h})),u&&(h=(0,t.jsx)(c,{...u,children:h})),(0,t.jsx)(a.DirectionProvider,{dir:n,children:h})}function c({locales:e=[],locale:r,onLocaleChange:a,children:i,translations:l}){let d=(0,o.useRouter)(),u=(0,o.usePathname)(),h=e=>{if(a)return a(e);let t=u.split("/").filter(e=>e.length>0);t[0]!==r?t.unshift(e):t[0]=e,d.push(`/${t.join("/")}`)},p=(0,n.useRef)(h);return p.current=h,(0,t.jsx)(s.I18nContext,{value:(0,n.useMemo)(()=>({locale:r,locales:e,text:{...s.defaultTranslations,...l},onChange:e=>p.current(e)}),[r,e,l]),children:i})}var u=e.i(494739),h=e.i(517637),p=e.i(351090);function f({children:e,Link:r,Image:n}){return(0,t.jsx)(o.FrameworkProvider,{usePathname:u.usePathname,useRouter:u.useRouter,useParams:u.useParams,Link:r??h.default,Image:n??p.default,children:e})}e.s(["RootProvider",0,function({components:e,...r}){return(0,t.jsx)(f,{Link:e?.Link,Image:e?.Image,children:(0,t.jsx)(d,{...r,children:r.children})})}],397605),e.s(["GeistProvider",0,({children:e,storageKey:n="geistdocs-theme",withScript:a,...i})=>(0,t.jsx)(r.ThemeProvider,{attribute:"class",defaultTheme:"system",enableSystem:!0,storageKey:n,value:{dark:"dark-theme",light:"light-theme"},...i,children:e})],664513);var x=e.i(278123);let m=({block:e,className:r,height:n,rounded:a,style:i,width:s,...o})=>(0,t.jsx)("div",{"aria-hidden":"true",className:(0,x.cn)("animate-pulse bg-gray-200",e?"block":"inl
1ine-block",a?"rounded-full":"rounded-md",r),style:{height:n,width:s,...i},...o}),g=async e=>{let t=e.replaceAll(" ","").toLowerCase();return"databases"in indexedDB&&!(await indexedDB.databases()).some(e=>e.name===t)?0:new Promise(e=>{let r=indexedDB.open(t);r.onerror=()=>e(0),r.onupgradeneeded=()=>{r.transaction?.abort(),e(0)},r.onsuccess=()=>{let t=r.result;if(!t.objectStoreNames.contains("messages")){t.close(),e(0);return}let n=t.transaction("messages","readonly"),a=n.objectStore("messages").count();a.onerror=()=>e(0),a.onsuccess=()=>e(a.result),n.oncomplete=()=>t.close()}})},v=()=>(0,t.jsxs)("div",{className:"relative flex flex-1 flex-col justify-start gap-7 overflow-hidden px-4 pt-12 pb-4",children:[(0,t.jsxs)("div",{className:"relative mr-2 ml-auto w-[260px]",children:[(0,t.jsx)("div",{className:"relative min-h-10 animate-pulse rounded-[10px] bg-gray-200"}),(0,t.jsx)("svg",{"aria-hidden":"true",className:"absolute right-[2.5px] -bottom-[0.5px] z-10 translate-x-1/2 fill-gray-200/80",height:"14",viewBox:"0 0 18 14",width:"18",children:(0,t.jsx)("path",{d:"M0.866025 8.80383L11.2583 0.803833C11.2583 0.803833 12.0621 9.5 17.2583 13.1961C12.0621 13.1961 0.866025 8.80383 0.866025 8.80383Z"})})]}),(0,t.jsx)(m,{height:25,width:"20%"}),(0,t.jsxs)("div",{className:"flex shrink-0 flex-col gap-4",children:[(0,t.jsxs)("div",{className:"w-[80%] flex-1 space-y-2",children:[(0,t.jsx)(m,{height:20,width:"66%"}),(0,t.jsx)(m,{height:20,width:"100%"}),(0,t.jsx)(m,{height:20,width:"75%"})]}),(0,t.jsxs)("div",{className:"w-[80%] flex-1 space-y-2",children:[(0,t.jsx)(m,{height:20,width:"50%"}),(0,t.jsx)(m,{height:20,width:"100%"}),(0,t.jsx)(m,{height:20,width:"83%"}),(0,t.jsx)(m,{height:20,width:"66%"})]}),(0,t.jsxs)("div",{className:"w-[80%] flex-1 space-y-2",children:[(0,t.jsx)(m,{height:20,width:"75%"}),(0,t.jsx)(m,{height:20,width:"100%"}),(0,t.jsx)(m,{height:20,width:"50%"})]}),(0,t.jsxs)("div",{className:"w-[80%] flex-1 space-y-2",children:[(0,t.jsx)(m,{height:20,width:"66%"}),(0,t.jsx)(m,{height:20,width:"100%"}),(0,t.jsx)(m,{height:20,width:"75%"}),(0,t.jsx)(m,{height:20,width:"33%"})]})]}),(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-52 bg-gradient-to-t from-background-100 via-background-100 to-transparent"})]}),b=()=>(0,t.jsxs)("div",{className:"flex h-full min-h-0 flex-col",children:[(0,t.jsxs)("div",{className:"flex h-16 shrink-0 items-center justify-between px-3.5 py-2",children:[(0,t.jsx)(m,{height:20,width:56}),(0,t.jsx)("div",{className:"flex items-center gap-1",children:[0,1,2,3].map(e=>(0,t.jsx)(m,{height:32,rounded:!0,width:32},e))})]}),(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col justify-end",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2 px-4 pt-4",children:[[0,1,2,3].map(e=>(0,t.jsx)(m,{block:!0,height:36,width:"100%"},e)),(0,t.jsx)(m,{className:"mt-3 mb-2 ml-2",height:16,width:"72%"})]}),(0,t.jsx)("div",{className:"p-4",children:(0,t.jsx)(m,{block:!0,className:"rounded-[12px]",height:88,width:"100%"})})]})]});e.s(["ChatLoadingSkeleton",0,({isMobile:e,title:r})=>{let[a,i]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{g(r).then(e=>i(e>0))},[r]),(0,t.jsx)("div",{className:(0,x.cn)("fixed z-45 flex flex-col bg-background-100",e?"inset-x-0 bottom-0 h-[80dvh] rounded-t-xl":"inset-y-0 right-0 w-[400px] border-l"),children:a?(0,t.jsx)(v,{}):(0,t.jsx)(b,{})})}],997094)},452302,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return s},requestIdleCallback:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},s="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},796328,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ESCAPE_REGEX:function(){return s},htmlEscapeAttributeString:function(){return c},htmlEscapeJsonString:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},s=/[&><\u2028\u2029]/g,o={"&":"&amp;",'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;"},l=/[&"'<>]/g;function d(e){return e.replace(s,e=>i[e])}function c(e){return e.replace(l,e=>o[e])}},163067,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return j},handleClientScriptLoad:function(){return g},initScriptLoader:function(){return v}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(836437),s=e.r(56421),o=e.r(824980),l=i._(e.r(510180)),d=s._(e.r(125934)),c=e.r(115522),u=e.r(953291),h=e.r(452302),p=e.r(796328),f=new Map,x=new Set,m=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:a=null,dangerouslySetInnerHTML:i,children:s="",strategy:o="afterInteractive",onError:d,stylesheets:c}=e,h=r||t;if(h&&x.has(h))return;if(f.has(t)){x.add(h),f.get(t).then(n,d);return}let p=()=>{a&&a(),x.add(h)},m=document.createElement("script"),g=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),n&&n.call(this,t),p()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){d&&d(e)});i?(m.innerHTML=i.__html||"",p()):s?(m.textContent="string"==typeof s?s:Array.isArray(s)?s.join(""):"",p()):t&&(m.src=t,f.set(t,g)),(0,u.setAttributesFromProps)(m,e),"worker"===o&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",o),c&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(c),document.body.appendChild(m)};function g(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,h.requestIdleCallback)(()=>m(e))}):m(e)}function v(e){e.forEach(g),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");x.add(t)})}function b(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:a=null,strategy:i="afterInteractive",onError:s,stylesheets:u,...f}=e,{updateScripts:g,scripts:v,getIsSsr:b,appDir:j,nonce:y}=(0,d.useContext)(c.HeadManagerContext);y=f.nonce||y;let w=(0,d.useRef)(!1);(0,d.useEffect)(()=>{let e=t||r;w.current||(a&&e&&x.has(e)&&a(),w.current=!0)},[a,t,r]);let N=(0,d.useRef)(!1);if((0,d.useEffect)(()=>{if(!N.current){if("afterInteractive"===i)m(e);else"lazyOnload"===i&&("complete"===document.readyState?(0,h.requestIdleCallback)(()=>m(e)):window.addEventListener("load",()=>{(0,h.requestIdleCallback)(()=>m(e))}));N.current=!0}},[e,i]),("beforeInteractive"===i||"worker"===i)&&(g?(v[i]=(v[i]||[]).concat([{id:t,src:r,onLoad:n,onReady:a,onError:s,...f,nonce:y}]),g(v)):b&&b()?x.add(t||r):b&&!b()&&m({...e,nonce:y})),j){if(u&&u.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===i)if(!r)return f.dangerouslySetInnerHTML&&(f.children=f.dangerouslySetInnerHTML.__html,delete f.dangerouslySetInnerHTML),(0,o.jsx)("script",{nonce:y,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([0,{...f,id:t}]))})`}});else return l.default.preload(r,f.integrity?{as:"script",integrity:f.integrity,nonce:y,crossOrigin:f.crossOrigin}:{as:"script",nonce:y,crossOrigin:f.crossOrigin}),(0,o.jsx)("script",{nonce:y,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([r,{...f,id:t}]))})`}});"afterInteractive"===i&&r&&l.default.preload(r,f.integrity?{as:"script",integrity:f.integrity,nonce:y,crossOrigin:f.crossOrigin}:{as:"script",nonce:y,crossOrigin:f.crossOrigin})}return null}Object.defineProperty(b,"__nextScript",{value:!0});let j=b;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},82494,(e,t,r)=>{t.exports=e.r(163067)}]);

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.