PageSourceSearch

https://lightvela.ai/__releases/20261005113621-09df283215f9-global/_next/static/chunks/0_5znks9572j8.js

js lightvela.ai collected 2026-10-05 12:10:43 UTC 119,152 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,599434,e=>{"use strict";var t=e.i(125417),r=e.i(730624),n=e.i(372169);let a=(0,r.forwardRef)(({href:e="#",external:r=e.match(/^\w+:/)||e.startsWith("//"),prefetch:a,children:o,...s},i)=>r?(0,n.jsx)("a",{ref:i,href:e,rel:"noreferrer noopener",target:"_blank",...s,children:o}):(0,n.jsx)(t.Link,{ref:i,href:e,prefetch:a,...s,children:o}));a.displayName="Link",e.s(["default",0,a])},133302,977878,330886,989169,424308,798777,e=>{"use strict";function t(e,r,n={}){let{includeSeparator:a=!0}=n;return function e(t){let n;for(let o of t){if(r(o)){let e=[];return n&&e.push(n),e.push(o),e}if("separator"===o.type&&a){n=o;continue}if("folder"===o.type){let t=o.index&&r(o.index)?[o.index]:e(o.children);if(t)return t.unshift(o),n&&t.unshift(n),t}}}(e)??null}Symbol("VisitBreak"),e.s(["r",0,t],133302),e.s(["LinkItem",()=>e$,"baseSlots",()=>eF],798777);var r=e.i(523675),n=e.i(788082),a=e.i(781307),o=e.i(372169),s=e.i(730624),i=e.i(515201),l=e.i(318551),c=e.i(350359),d=e.i(849204),u=e.i(378997),f=e.i(583795),h=e.i(543559),p=e.i(556938),m=e.i(278928),x=e.i(774610),g=s.forwardRef((e,t)=>{let{children:r,width:n=10,height:a=5,...s}=e;return(0,o.jsx)(x.Primitive.svg,{...s,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,o.jsx)("polygon",{points:"0,0 30,0 15,10"})})});g.displayName="Arrow";var v=e.i(92596),b=e.i(540240),w="Popper",[y,j]=(0,c.createContextScope)(w),[C,k]=y(w),N=e=>{let{__scopePopper:t,children:r}=e,[n,a]=s.useState(null),[i,l]=s.useState(void 0);return(0,o.jsx)(C,{scope:t,anchor:n,onAnchorChange:a,placementState:i,setPlacementState:l,children:r})};N.displayName=w;var S="PopperAnchor",P=s.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:n,...a}=e,i=k(S,r),c=s.useRef(null),d=i.onAnchorChange,u=s.useCallback(e=>{c.current=e,e&&d(e)},[d]),f=(0,l.useComposedRefs)(t,u),h=s.useRef(null);s.useEffect(()=>{if(!n)return;let e=h.current;h.current=n.current,e!==h.current&&d(h.current)});let p=i.placementState&&O(i.placementState),m=p?.[0],g=p?.[1];return n?null:(0,o.jsx)(x.Primitive.div,{"data-radix-popper-side":m,"data-radix-popper-align":g,...a,ref:f})});P.displayName=S;var R="PopperContent",[T,E]=y(R),L=s.forwardRef((e,t)=>{let{__scopePopper:r,side:n="bottom",sideOffset:a=0,align:i="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:u=!0,collisionBoundary:f=[],collisionPadding:h=0,sticky:g="partial",hideWhenDetached:w=!1,updatePositionStrategy:y="optimized",onPlaced:j,...C}=e,N=k(R,r),[S,P]=s.useState(null),E=(0,l.useComposedRefs)(t,e=>P(e)),[L,A]=s.useState(null),I=function(e){let[t,r]=s.useState(void 0);return(0,b.useLayoutEffect)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,a;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,a=t.blockSize}else n=e.offsetWidth,a=e.offsetHeight;r({width:n,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(L),M=I?.width??0,$=I?.height??0,F="number"==typeof h?h:{top:0,right:0,bottom:0,left:0,...h},_=Array.isArray(f)?f:[f],H=_.length>0,B={padding:F,boundary:_.filter(D),altBoundary:H},{refs:W,floatingStyles:V,placement:U,isPositioned:q,middlewareData:Y}=(0,p.useFloating)({strategy:"fixed",placement:n+("center"!==i?"-"+i:""),whileElementsMounted:(...e)=>(0,m.autoUpdate)(...e,{animationFrame:"always"===y}),elements:{reference:N.anchor},middleware:[(0,p.offset)({mainAxis:a+$,alignmentAxis:c}),u&&(0,p.shift)({mainAxis:!0,crossAxis:!1,limiter:"partial"===g?(0,p.limitShift)():void 0,...B}),u&&(0,p.flip)({...B}),(0,p.size)({...B,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:a,height:o}=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",`${o}px`)}}),L&&(0,p.arrow)({element:L,padding:d}),z({arrowWidth:M,arrowHeight:$}),w&&(0,p.hide)({strategy:"referenceHidden",...B,boundary:H?B.boundary:void 0})]}),X=N.setPlacementState;(0,b.useLayoutEffect)(()=>(X(U),()=>{X(void 0)}),[U,X]);let[G,K]=O(U),Z=(0,v.useCallbackRef)(j);(0,b.useLayoutEffect)(()=>{q&&Z?.()},[q,Z]);let J=Y.arrow?.x,Q=Y.arrow?.y,ee=Y.arrow?.centerOffset!==0,[et,er]=s.useState();return(0,b.useLayoutEffect)(()=>{S&&er(window.getComputedStyle(S).zIndex)},[S]),(0,o.jsx)("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:q?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[Y.transformOrigin?.x,Y.transformOrigin?.y].join(" "),...Y.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,o.jsx)(T,{scope:r,placedSide:G,placedAlign:K,onArrowChange:A,arrowX:J,arrowY:Q,shouldHideArrow:ee,children:(0,o.jsx)(x.Primitive.div,{"data-side":G,"data-align":K,...C,ref:E,style:{...C.style,animation:q?void 0:"none"}})})})});L.displayName=R;var A="PopperArrow",I={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},M=s.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,a=E(A,r),s=I[a.placedSide];return(0,o.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:(0,o.jsx)(g,{...n,ref:t,style:{...n.style,display:"block"}})})});function D(e){return null!==e}M.displayName=A;var z=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:a}=t,o=a.arrow?.centerOffset!==0,s=o?0:e.arrowWidth,i=o?0:e.arrowHeight,[l,c]=O(r),d={start:"0%",center:"50%",end:"100%"}[c],u=(a.arrow?.x??0)+s/2,f=(a.arrow?.y??0)+i/2,h="",p="";return"bottom"===l?(h=o?d:`${u}px`,p=`${-i}px`):"top"===l?(h=o?d:`${u}px`,p=`${n.floating.height+i}px`):"right"===l?(h=`${-i}px`,p=o?d:`${f}px`):"left"===l&&(h=`${n.floating.width+i}px`,p=o?d:`${f}px`),{data:{x:h,y:p}}}});function O(e){let[t,r="center"]=e.split("-");return[t,r]}var $=e.i(492258),F=e.i(574115),_=e.i(267039),H=e.i(892626),B=e.i(73772),W=e.i(469759),V="Popover",[U,q]=(0,c.createContextScope)(V,[j]),Y=j(),[X,G]=U(V),K=e=>{let{__scopePopover:t,children:r,open:n,defaultOpen:a,onOpenChange:i,modal:l=!1}=e,c=Y(t),d=s.useRef(null),[u,f]=s.useState(!1),[p,m]=(0,H.useControllableState)({prop:n,defaultProp:a??!1,onChange:i,caller:V});return(0,o.jsx)(N,{...c,children:(0,o.jsx)(X,{scope:t,contentId:(0,h.useId)(),triggerRef:d,open:p,onOpenChange:m,onOpenToggle:s.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:u,onCustomAnchorAdd:s.useCallback(()=>f(!0),[]),onCustomAnchorRemove:s.useCallback(()=>f(!1),[]),modal:l,children:r})})};K.displayName=V;var Z="PopoverAnchor";s.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=G(Z,r),i=Y(r),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=a;return s.useEffect(()=>(l(),()=>c()),[l,c]),(0,o.jsx)(P,{...i,...n,ref:t})}).displayName=Z;var J="PopoverTrigger",Q=s.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=G(J,r),s=Y(r),c=(0,l.useComposedRefs)(t,a.triggerRef),d=(0,o.jsx)(x.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":eu(a.open),...n,ref:c,onClick:(0,i.composeEventHandlers)(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?d:(0,o.jsx)(P,{asChild:!0,...s,children:d})});Q.displayName=J;var ee="PopoverPortal",[et,er]=U(ee,{forceMount:void 0}),en=e=>{let{__scopePopover:t,forceMount:r,children:n,container:a}=e,s=G(ee,t);return(0,o.jsx)(et,{scope:t,forceMount:r,children:(0,o.jsx)(F.Presence,{present:r||s.open,children:(0,o.jsx)($.Portal,{asChild:!0,container:a,children:n})})})};en.displayName=ee;var ea="PopoverContent",eo=s.forwardRef((e,t)=>{let r=er(ea,e.__scopePopover),{forceMount:n=r.forceMount,...a}=e,s=G(ea,e.__scopePopover);return(0,o.jsx)(F.Presence,{present:n||s.open,children:s.modal?(0,o.jsx)(ei,{...a,ref:t}):(0,o.jsx)(el,{...a,ref:t})})});eo.displayName=ea;var es=(0,_.createSlot)("PopoverContent.RemoveScroll"),ei=s.forwardRef((e,t)=>{let r=G(ea,e.__scopePopover),n=s.useRef(null),a=(0,l.useComposedRefs)(t,n),c=s.useRef(!1);return s.useEffect(()=>{let e=n.current;if(e)return(0,B.hideOthers)(e)},[]),(0,o.jsx)(W.RemoveScroll,{as:es,allowPinchZoom:!0,children:(0,o.jsx)(ec,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),c.current||r.triggerRef.current?.focus()}),onPointerDownOutside:(0,i.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;c.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),el=s.forwardRef((e,t)=>{let r=G(ea,e.__scopePopover),n=s.useRef(!1),a=s.useRef(!1);return(0,o.jsx)(ec,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let o=t.target;r.triggerRef.current?.contains(o)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),ec=s.forwardRef((e,t)=>
1{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:h,onInteractOutside:p,...m}=e,x=G(ea,r),g=Y(r);return(0,u.useFocusGuards)(),(0,o.jsx)(f.FocusScope,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:s,children:(0,o.jsx)(d.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:p,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:h,onDismiss:()=>x.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,o.jsx)(L,{"data-state":eu(x.open),role:"dialog",id:x.contentId,...g,...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)"}})})})}),ed="PopoverClose";function eu(e){return e?"open":"closed"}function ef({className:e,align:t="center",sideOffset:r=4,...a}){return(0,o.jsx)(en,{children:(0,o.jsx)(eo,{align:t,sideOffset:r,side:"bottom",className:(0,n.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),...a})})}s.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=G(ed,r);return(0,o.jsx)(x.Primitive.button,{type:"button",...n,ref:t,onClick:(0,i.composeEventHandlers)(e.onClick,()=>a.onOpenChange(!1))})}).displayName=ed,s.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=Y(r);return(0,o.jsx)(M,{...a,...n,ref:t})}).displayName="PopoverArrow",e.s(["Popover",0,K,"PopoverContent",0,ef,"PopoverTrigger",0,Q],977878);var eh=e.i(801917);function ep({className:e,variant:t="ghost",children:s,...i}){let l=(0,r.useI18n)(),c=(0,eh.useTranslations)({note:"language switcher"});if(!l.locales)throw Error("Missing `<I18nProvider />`");let d=c("Choose a language");return(0,o.jsxs)(K,{children:[(0,o.jsx)(Q,{"aria-label":c("Choose a language",{note:"aria-label"}),className:(0,n.cn)((0,a.buttonVariants)({variant:t}),"gap-1.5 p-1.5 data-[state=open]:bg-fd-accent",e),...i,children:s}),(0,o.jsxs)(ef,{className:"flex flex-col gap-0.5 p-1",children:[(0,o.jsx)("p",{className:"p-2 text-xs font-medium text-fd-muted-foreground",children:d}),l.locales.map(e=>(0,o.jsx)("button",{type:"button",className:(0,n.cn)("px-2 py-1.5 text-start text-sm rounded-lg transition-colors",e.locale===l.locale?"bg-fd-primary/10 text-fd-primary":"text-fd-muted-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"),onClick:()=>{l.onChange?.(e.locale)},children:e.name},e.locale))]})]})}function em(e){let{locales:t,locale:n}=(0,r.useI18n)(),a=t?.find(e=>e.locale===n)?.name;return(0,o.jsx)("span",{...e,children:a})}var ex=e.i(249942),eg=e.i(958070),eg=eg;function ev({hideIfDisabled:e,size:t="icon-sm",color:r="ghost",...s}){let{setOpenSearch:i,enabled:l}=(0,ex.useSearchContext)(),c=(0,eh.useTranslations)({note:"search trigger"});return e&&!l?null:(0,o.jsx)("button",{type:"button",className:(0,n.cn)((0,a.buttonVariants)({size:t,color:r}),s.className),"data-search":"","aria-label":c("Open Search",{note:"aria-label"}),onClick:()=>{i(!0)},children:(0,o.jsx)(eg.default,{})})}function eb({hideIfDisabled:e,...t}){let{enabled:r,hotKey:a,setOpenSearch:s}=(0,ex.useSearchContext)(),i=(0,eh.useTranslations)({note:"search trigger"});return e&&!r?null:(0,o.jsxs)("button",{type:"button","data-search-full":"",...t,className:(0,n.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",t.className),onClick:()=>{s(!0)},children:[(0,o.jsx)(eg.default,{className:"size-4"}),i("Search"),(0,o.jsx)("div",{className:"ms-auto inline-flex gap-0.5",children:a.map((e,t)=>(0,o.jsx)("kbd",{className:"rounded-md border bg-fd-background px-1.5",children:e.display},t))})]})}e.s(["FullSearchTrigger",0,eb,"SearchTrigger",0,ev],330886);var ew=e.i(282026);let ey=(0,ew.default)("airplay",[["path",{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",key:"ns4c3b"}],["path",{d:"m12 15 5 6H7Z",key:"14qnn2"}]]),ej=(0,ew.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),eC=(0,ew.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);var ek=e.i(294237),eN=e.i(821957);let eS=(0,ek.cva)("size-6.5 p-1.5 text-fd-muted-foreground",{variants:{active:{true:"bg-fd-accent text-fd-accent-foreground",false:"text-fd-muted-foreground"}}}
1),eP=[["light",eC],["dark",ej],["system",ey]];function eR({className:e,mode:t="light-dark",...r}){let{setTheme:a,theme:i,resolvedTheme:l}=(0,eN.useTheme)(),[c,d]=(0,s.useState)(!1),u=(0,eh.useTranslations)({note:"theme switcher"}),f={light:u("Light",{note:"aria-label"}),dark:u("Dark",{note:"aria-label"}),system:u("System",{note:"aria-label"})};(0,s.useEffect)(()=>{d(!0)},[]);let h=(0,n.cn)("inline-flex items-center rounded-full border p-1 overflow-hidden *:rounded-full",e);if("light-dark"===t){let e=c?l:null;return(0,o.jsx)("button",{className:h,"aria-label":u("Toggle Theme",{note:"aria-label"}),onClick:()=>a("light"===e?"dark":"light"),"data-theme-toggle":"",children:eP.map(([t,r])=>{if("system"!==t)return(0,o.jsx)(r,{fill:"currentColor",className:(0,n.cn)(eS({active:e===t}))},t)})})}let p=c?i:null;return(0,o.jsx)("div",{className:h,"data-theme-toggle":"",...r,children:eP.map(([e,t])=>(0,o.jsx)("button",{"aria-label":f[e],className:(0,n.cn)(eS({active:p===e})),onClick:()=>a(e),children:(0,o.jsx)(t,{className:"size-full",fill:"currentColor"})},e))})}function eT(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function eE(e,t,r=!1){return(e=eT(e))===(t=eT(t))||r&&t.startsWith(`${e}/`)}e.s(["getLayoutTabs",()=>eA,"isLayoutTabActive",()=>eI,"isLinkItemActive",()=>eD,"useLinkItems",()=>eM],424308),e.s(["isActive",0,eE,"normalize",0,eT],989169);let eL=(e,t)=>t.icon?{...e,icon:(0,o.jsx)("div",{className:"size-full [&_svg]:size-full max-md:p-1.5 max-md:rounded-md max-md:border max-md:bg-fd-secondary",children:t.icon})}:e;function eA(e,{transform:t=eL}={}){let r=[];function n(e,a){if("root"in e&&e.root){let n=e.index?.url??e.children.find(e=>"page"===e.type)?.url;if(n){let o={title:e.name,icon:e.icon,description:e.description,url:n,unlisted:a,$folder:e},s=t?t(o,e):o;s&&r.push(s)}}for(let t of e.children)"folder"===t.type&&n(t,a)}return n(e),e.fallback&&n(e.fallback,!0),r}function eI(e,r){return e.$folder?null!==t(e.$folder.children,e=>"page"===e.type&&eE(e.url,r)):e.urls?e.urls.has(eT(r)):eE(e.url,r,!0)}function eM({githubUrl:e,links:t}){return(0,s.useMemo)(()=>{let r=function({links:e=[],githubUrl:t}){let r=[...e];return t&&r.push({type:"icon",url:t,text:"Github",label:"GitHub",icon:(0,o.jsx)("svg",{role:"img",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})}),external:!0}),r}({links:t,githubUrl:e}),n=[],a=[];for(let e of r)switch(e.on){case"menu":a.push(e);break;case"nav":n.push(e);break;default:n.push(e),a.push(e)}return{navItems:n,menuItems:a,all:r}},[t,e])}function eD(e,t){return"custom"!==e.type&&!!e.url&&"none"!==e.active&&eE(e.url,t,"nested-url"===e.active)}var ez=e.i(599434),eO=e.i(125417);function e$({ref:e,item:t,...r}){let n=eD(t,(0,eO.usePathname)());return(0,o.jsx)(ez.default,{ref:e,href:t.url,external:t.external,...r,"data-active":n,children:r.children})}function eF({useProps:e}){function t(t){let{themeSwitch:r}=e();return r.component?r.component:(0,o.jsx)(eR,{...t,...r})}function n(t){let{searchToggle:r}=e();return r.components?.sm?r.components.sm:(0,o.jsx)(ev,{...t,...r.sm})}function a(t){let{searchToggle:r}=e();return r.components?.lg?r.components.lg:(0,o.jsx)(eb,{...t,...r.full})}function s({href:t="/",...r}){let{url:n=t,title:a}=e().nav??{};return"function"==typeof a?a({href:n,...r}):(0,o.jsx)(ez.default,{href:n,...r,children:a})}return{useProvider(e){let{locales:o=[]}=(0,r.useI18n)(),{nav:i,slots:l={},i18n:c=o.length>1,searchToggle:{enabled:d=!0,...u}={},themeSwitch:{enabled:f=!0,...h}={}}=e;return{baseSlots:{navTitle:l.navTitle??s,themeSwitch:f&&(l.themeSwitch??t),languageSelect:!!c&&(l.languageSelect??{root:ep,text:em}),searchTrigger:d&&(l.searchTrigger??{sm:n,full:a})},baseProps:{nav:i,searchToggle:u,themeSwitch:h}}}}}},876767,825957,e=>{"use strict";e.s(["mergeRefs",0,function(...e){return t=>
1{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})}}],876767);let t=(0,e.i(282026).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,t],825957)},757841,214238,732650,718853,795236,530890,667439,420744,76031,116219,227481,800656,91303,423177,67331,784453,e=>{"use strict";e.s(["LayoutBody",()=>ty,"useDocsLayout",()=>tw,"useIsDocsLayout",()=>tb],757841);var t=e.i(788082),r=e.i(125417),n=e.i(372169),a=e.i(730624),o=e.i(133302);function s(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(0,o.r)(e,e=>"page"===e.type&&e.url===n)}e.s(["getBreadcrumbItemsFromPath",0,function(e,t,r){let{includePage:n=!1,includeSeparator:a=!1,includeRoot:o=!1}=r,s=[];for(let r=0;r<t.length;r++){let i=t[r];switch(i.type){case"page":n&&s.push({name:i.name,url:i.url});break;case"folder":if(i.root){s=[],o&&s.push({name:e.name,url:"object"==typeof o?o.url:i.index?.url});break}(r===t.length-1||i.index!==t[r+1])&&s.push({name:i.name,url:i.index?.url});break;case"separator":i.name&&a&&s.push({name:i.name})}}return s},"searchPath",0,s],214238);let i=(0,a.createContext)(null),l=(0,a.createContext)([]);function c({tree:e,children:t}){let o=(0,a.useRef)(0),d=(0,r.usePathname)(),u=(0,a.useMemo)(()=>e,[e.$id]),f=(0,a.useMemo)(()=>s(u.children,d)??(u.fallback?s(u.fallback.children,d):null)??[],[u,d]),h=f.findLast(e=>"folder"===e.type&&e.root)??u;return h.$id??=String(o.current++),(0,n.jsx)(i,{value:(0,a.useMemo)(()=>({root:h,full:u}),[h,u]),children:(0,n.jsx)(l,{value:f,children:t})})}function d(){return(0,a.use)(l)}function u(){let e=(0,a.use)(i);if(!e)throw Error("You must wrap this component under <DocsLayout />");return e}e.s(["TreeContextProvider",0,c,"useTreeContext",0,u,"useTreePath",0,d],732650);var f=e.i(798777),h=e.i(424308);function p({enabled:e=!0}){let[t,r]=(0,a.useState)();return(0,a.useEffect)(()=>{if(!e)return;let t=()=>{r(window.scrollY<10)};return t(),window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[e]),t}e.s(["useIsScrollTop",0,p],718853);var m=e.i(781307),x=e.i(876767),g=e.i(977878),v=e.i(330886),b=Object.defineProperty,w=(e,t)=>{let r={};for(var n in e)b(r,n,{get:e[n],enumerable:!0});return t||b(r,Symbol.toStringTag,{value:"Module"}),r};e.s(["__exportAll",0,w],795236);var y=e.i(515201),j=e.i(350359),C=e.i(892626),k=e.i(540240),N=e.i(318551),S=e.i(774610),P=e.i(574115),R=e.i(543559),T="Collapsible",[E,L]=(0,j.createContextScope)(T),[A,I]=E(T),M=a.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:o,defaultOpen:s,disabled:i,onOpenChange:l,...c}=e,[d,u]=(0,C.useControllableState)({prop:o,defaultProp:s??!1,onChange:l,caller:T});return(0,n.jsx)(A,{scope:r,disabled:i,contentId:(0,R.useId)(),open:d,onOpenToggle:a.useCallback(()=>u(e=>!e),[u]),children:(0,n.jsx)(S.Primitive.div,{"data-state":_(d),"data-disabled":i?"":void 0,...c,ref:t})})});M.displayName=T;var D="CollapsibleTrigger",z=a.forwardRef((e,t)=>{let{__scopeCollapsible:r,...a}=e,o=I(D,r);return(0,n.jsx)(S.Primitive.button,{type:"button","aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open||!1,"data-state":_(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...a,ref:t,onClick:(0,y.composeEventHandlers)(e.onClick,o.onOpenToggle)})});z.displayName=D;var O="CollapsibleContent",$=a.forwardRef((e,t)=>{let{forceMount:r,...a}=e,o=I(O,e.__scopeCollapsible);return(0,n.jsx)(P.Presence,{present:r||o.open,children:({present:e})=>(0,n.jsx)(F,{...a,ref:t,present:e})})});$.displayName=O;var F=a.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:o,children:s,...i}=e,l=I(O,r),[c,d]=a.useState(o),u=a.useRef(null),f=(0,N.useComposedRefs)(t,u),h=a.useRef(0),p=h.current,m=a.useRef(0),x=m.current,g=l.open||c,v=a.useRef(g),b=a.useRef(void 0);return a.useEffect(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,k.useLayoutEffect)(()=>{let e=u.current;if(e){b.current=b.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();h.current=t.height,m.current=t.width,v.current||(e.style.transitionDuration=b.current.transitionDuration,e.style.animationName=b.current.animationName),d(o)}},[l.open,o]),(0,n.jsx)(S.Primitive.div,{"data-state":_(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!g,...i,ref:f,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:g&&s})});function _(e){return e?"open":"closed"}function H({children:e,...r}){let[o,s]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{s(!0)},[]),(0,n.jsx)($,{...r,className:(0,t.cn)("overflow-hidden",o&&"data-[state=closed]:animate-fd-collapsible-up data-[state=open]:animate-fd-collapsible-down",r.className),children:e})}e.s(["Collapsible",0,M,"CollapsibleContent",0,H,"CollapsibleTrigger",0,z],530890);
1var B=e.i(92596),W=e.i(212121),V="ScrollArea",[U,q]=(0,j.createContextScope)(V),[Y,X]=U(V),G=a.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:o="hover",dir:s,scrollHideDelay:i=600,...l}=e,[c,d]=a.useState(null),[u,f]=a.useState(null),[h,p]=a.useState(null),[m,x]=a.useState(null),[g,v]=a.useState(null),[b,w]=a.useState(0),[y,j]=a.useState(0),[C,k]=a.useState(!1),[P,R]=a.useState(!1),T=(0,N.useComposedRefs)(t,e=>d(e)),E=(0,W.useDirection)(s);return(0,n.jsx)(Y,{scope:r,type:o,dir:E,scrollHideDelay:i,scrollArea:c,viewport:u,onViewportChange:f,content:h,onContentChange:p,scrollbarX:m,onScrollbarXChange:x,scrollbarXEnabled:C,onScrollbarXEnabledChange:k,scrollbarY:g,onScrollbarYChange:v,scrollbarYEnabled:P,onScrollbarYEnabledChange:R,onCornerWidthChange:w,onCornerHeightChange:j,children:(0,n.jsx)(S.Primitive.div,{dir:E,...l,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":y+"px",...e.style}})})});G.displayName=V;var K="ScrollAreaViewport",Z=a.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:o,nonce:s,...i}=e,l=X(K,r),c=a.useRef(null),d=(0,N.useComposedRefs)(t,c,l.onViewportChange);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(J,{nonce:s}),(0,n.jsx)(S.Primitive.div,{"data-radix-scroll-area-viewport":"",...i,ref:d,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,n.jsx)("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});Z.displayName=K;var J=a.memo(({nonce:e})=>(0,n.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:e}),(e,t)=>e.nonce===t.nonce),Q="ScrollAreaScrollbar",ee=a.forwardRef((e,t)=>{let{forceMount:r,...o}=e,s=X(Q,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=s,c="horizontal"===e.orientation;return a.useEffect(()=>(c?i(!0):l(!0),()=>{c?i(!1):l(!1)}),[c,i,l]),"hover"===s.type?(0,n.jsx)(et,{...o,ref:t,forceMount:r}):"scroll"===s.type?(0,n.jsx)(er,{...o,ref:t,forceMount:r}):"auto"===s.type?(0,n.jsx)(en,{...o,ref:t,forceMount:r}):"always"===s.type?(0,n.jsx)(ea,{...o,ref:t,"data-state":"visible"}):null});ee.displayName=Q;var et=a.forwardRef((e,t)=>{let{forceMount:r,...o}=e,s=X(Q,e.__scopeScrollArea),[i,l]=a.useState(!1);return a.useEffect(()=>{let e=s.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),l(!0)},n=()=>{t=window.setTimeout(()=>l(!1),s.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}},[s.scrollArea,s.scrollHideDelay]),(0,n.jsx)(P.Presence,{present:r||i,children:(0,n.jsx)(en,{"data-state":i?"visible":"hidden",...o,ref:t})})}),er=a.forwardRef((e,t)=>{var r;let{forceMount:o,...s}=e,i=X(Q,e.__scopeScrollArea),l="horizontal"===e.orientation,c=ej(()=>u("SCROLL_END"),100),[d,u]=(r={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},a.useReducer((e,t)=>r[e][t]??e,"hidden"));return a.useEffect(()=>{if("idle"===d){let e=window.setTimeout(()=>u("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(e)}},[d,i.scrollHideDelay,u]),a.useEffect(()=>{let e=i.viewport,t=l?"scrollLeft":"scrollTop";if(e){let r=e[t],n=()=>{let n=e[t];r!==n&&(u("SCROLL"),c()),r=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[i.viewport,l,u,c]),(0,n.jsx)(P.Presence,{present:o||"hidden"!==d,children:(0,n.jsx)(ea,{"data-state":"hidden"===d?"hidden":"visible",...s,ref:t,onPointerEnter:(0,y.composeEventHandlers)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,y.composeEventHandlers)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),en=a.forwardRef((e,t)=>{let r=X(Q,e.__scopeScrollArea),{forceMount:o,...s}=e,[i,l]=a.useState(!1),c="horizontal"===e.orientation,d=ej(()=>
1{if(r.viewport){let e=r.viewport.offsetWidth<r.viewport.scrollWidth,t=r.viewport.offsetHeight<r.viewport.scrollHeight;l(c?e:t)}},10);return eC(r.viewport,d),eC(r.content,d),(0,n.jsx)(P.Presence,{present:o||i,children:(0,n.jsx)(ea,{"data-state":i?"visible":"hidden",...s,ref:t})})}),ea=a.forwardRef((e,t)=>{let{orientation:r="vertical",...o}=e,s=X(Q,e.__scopeScrollArea),i=a.useRef(null),l=a.useRef(0),[c,d]=a.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=eg(c.viewport,c.content),f={...o,sizes:c,onSizesChange:d,hasThumb:!!(u>0&&u<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:e=>l.current=e};function h(e,t){return function(e,t,r,n="ltr"){let a=ev(r),o=t||a/2,s=r.scrollbar.paddingStart+o,i=r.scrollbar.size-r.scrollbar.paddingEnd-(a-o),l=r.content-r.viewport;return ew([s,i],"ltr"===n?[0,l]:[-1*l,0])(e)}(e,l.current,c,t)}return"horizontal"===r?(0,n.jsx)(eo,{...f,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){let e=eb(s.viewport.scrollLeft,c,s.dir);i.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{s.viewport&&(s.viewport.scrollLeft=e)},onDragScroll:e=>{s.viewport&&(s.viewport.scrollLeft=h(e,s.dir))}}):"vertical"===r?(0,n.jsx)(es,{...f,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){let e=eb(s.viewport.scrollTop,c);i.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{s.viewport&&(s.viewport.scrollTop=e)},onDragScroll:e=>{s.viewport&&(s.viewport.scrollTop=h(e))}}):null}),eo=a.forwardRef((e,t)=>{let{sizes:r,onSizesChange:o,...s}=e,i=X(Q,e.__scopeScrollArea),[l,c]=a.useState(),d=a.useRef(null),u=(0,N.useComposedRefs)(t,d,i.onScrollbarXChange);return a.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),(0,n.jsx)(ec,{"data-orientation":"horizontal",...s,ref:u,sizes:r,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ev(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(i.viewport){var n,a;let o=i.viewport.scrollLeft+t.deltaX;e.onWheelScroll(o),n=o,a=r,n>0&&n<a&&t.preventDefault()}},onResize:()=>{d.current&&i.viewport&&l&&o({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:ex(l.paddingLeft),paddingEnd:ex(l.paddingRight)}})}})}),es=a.forwardRef((e,t)=>{let{sizes:r,onSizesChange:o,...s}=e,i=X(Q,e.__scopeScrollArea),[l,c]=a.useState(),d=a.useRef(null),u=(0,N.useComposedRefs)(t,d,i.onScrollbarYChange);return a.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),(0,n.jsx)(ec,{"data-orientation":"vertical",...s,ref:u,sizes:r,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ev(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(i.viewport){var n,a;let o=i.viewport.scrollTop+t.deltaY;e.onWheelScroll(o),n=o,a=r,n>0&&n<a&&t.preventDefault()}},onResize:()=>{d.current&&i.viewport&&l&&o({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:ex(l.paddingTop),paddingEnd:ex(l.paddingBottom)}})}})}),[ei,el]=U(Q),ec=a.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:o,hasThumb:s,onThumbChange:i,onThumbPointerUp:l,onThumbPointerDown:c,onThumbPositionChange:d,onDragScroll:u,onWheelScroll:f,onResize:h,...p}=e,m=X(Q,r),[x,g]=a.useState(null),v=(0,N.useComposedRefs)(t,e=>g(e)),b=a.useRef(null),w=a.useRef(""),j=m.viewport,C=o.content-o.viewport,k=(0,B.useCallbackRef)(f),P=(0,B.useCallbackRef)(d),R=ej(h,10);function T(e){b.current&&u({x:e.clientX-b.current.left,y:e.clientY-b.current.top})}return a.useEffect(()=>{let e=e=>{let t=e.target;x?.contains(t)&&k(e,C)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[j,x,C,k]),a.useEffect(P,[o,P]),eC(x,R),eC(m.content,R),(0,n.jsx)(ei,{scope:r,scrollbar:x,hasThumb:s,onThumbChange:(0,B.useCallbackRef)(i),onThumbPointerUp:(0,B.useCallbackRef)(l),onThumbPositionChange:P,onThumbPointerDown:(0,B.useCallbackRef)(c),children:(0,n.jsx)(S.Primitive.div,{...p,ref:v,style:{position:"absolute",...p.style},onPointerDown:(0,y.composeEventHandlers)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),b.current=x.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),T(e))}),onPointerMove:(0,y.composeEventHandlers)(e.onPointerMove,T),onPointerUp:(0,y.composeEventHandlers)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=w.current,m.viewport&&(m.viewport.style.scrollBehavior=""),b.current=null})})})}),ed="ScrollAreaThumb",eu=a.forwardRef((e,t)=>
1{let{forceMount:r,...a}=e,o=el(ed,e.__scopeScrollArea);return(0,n.jsx)(P.Presence,{present:r||o.hasThumb,children:(0,n.jsx)(ef,{ref:t,...a})})}),ef=a.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:o,...s}=e,i=X(ed,r),l=el(ed,r),{onThumbPositionChange:c}=l,d=(0,N.useComposedRefs)(t,e=>l.onThumbChange(e)),u=a.useRef(void 0),f=ej(()=>{u.current&&(u.current(),u.current=void 0)},100);return a.useEffect(()=>{let e=i.viewport;if(e){let t=()=>{f(),u.current||(u.current=ey(e,c),c())};return c(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[i.viewport,f,c]),(0,n.jsx)(S.Primitive.div,{"data-state":l.hasThumb?"visible":"hidden",...s,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:(0,y.composeEventHandlers)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),r=e.clientX-t.left,n=e.clientY-t.top;l.onThumbPointerDown({x:r,y:n})}),onPointerUp:(0,y.composeEventHandlers)(e.onPointerUp,l.onThumbPointerUp)})});eu.displayName=ed;var eh="ScrollAreaCorner",ep=a.forwardRef((e,t)=>{let r=X(eh,e.__scopeScrollArea),a=!!(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&a?(0,n.jsx)(em,{...e,ref:t}):null});ep.displayName=eh;var em=a.forwardRef((e,t)=>{let{__scopeScrollArea:r,...o}=e,s=X(eh,r),[i,l]=a.useState(0),[c,d]=a.useState(0),u=!!(i&&c);return eC(s.scrollbarX,()=>{let e=s.scrollbarX?.offsetHeight||0;s.onCornerHeightChange(e),d(e)}),eC(s.scrollbarY,()=>{let e=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(e),l(e)}),u?(0,n.jsx)(S.Primitive.div,{...o,ref:t,style:{width:i,height:c,position:"absolute",right:"ltr"===s.dir?0:void 0,left:"rtl"===s.dir?0:void 0,bottom:0,...e.style}}):null});function ex(e){return e?parseInt(e,10):0}function eg(e,t){let r=e/t;return isNaN(r)?0:r}function ev(e){let t=eg(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-r)*t,18)}function eb(e,t,r="ltr"){let n=ev(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-a,s=t.content-t.viewport,i=function(e,[t,r]){return Math.min(r,Math.max(t,e))}(e,"ltr"===r?[0,s]:[-1*s,0]);return ew([0,s],[0,o-n])(i)}function ew(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 ey=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return!function a(){let o={left:e.scrollLeft,top:e.scrollTop},s=r.left!==o.left,i=r.top!==o.top;(s||i)&&t(),r=o,n=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(n)};function ej(e,t){let r=(0,B.useCallbackRef)(e),n=a.useRef(0);return a.useEffect(()=>()=>window.clearTimeout(n.current),[]),a.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function eC(e,t){let r=(0,B.useCallbackRef)(t);(0,k.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])}function ek({className:e,children:r,...a}){return(0,n.jsxs)(G,{type:"scroll",className:(0,t.cn)("overflow-hidden",e),...a,children:[r,(0,n.jsx)(ep,{}),(0,n.jsx)(eS,{orientation:"vertical"})]})}function eN({className:e,children:r,...a}){return(0,n.jsx)(Z,{className:(0,t.cn)("size-full rounded-[inherit]",e),...a,children:r})}function eS({className:e,orientation:r="vertical",...a}){return(0,n.jsx)(ee,{orientation:r,className:(0,t.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),...a,children:(0,n.jsx)(eu,{className:"relative flex-1 rounded-full bg-fd-border"})})}var eP=e.i(599434),eR=e.i(282026);let eT=(0,eR.default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",0,eT],667439);let eE=(0,eR.default)("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"}]]);e.s(["default",0,eE],420744);var eL=e.i(801917),eA=e.i(180347),eI=e.i(187484),eM=w({SidebarCollapseTrigger:()=>eJ,SidebarContent:()=>eH,SidebarDrawerContent:()=>eV,SidebarDrawerOverlay:()=>eW,SidebarFolder:()=>eY,SidebarFolderContent:()=>eK,SidebarFolderLink:()=>eG,SidebarFolderTrigger:()=>eX,SidebarItem:()=>eq,SidebarProvider:()=>eO,SidebarSeparator:()=>eU,SidebarTrigger:()=>eZ,SidebarViewport:()=>eB,useAutoScroll:()=>eQ,useFolder:()=>eF,useFolderDepth:()=>e_,useSidebar:()=>e$});let eD=(0,a.createContext)(null),ez=(0,a.createContext)(null);function eO({defaultOpenLevel:e=0,prefetch:t,children:o}){let s=(0,a.useRef)(!0),[i,l]=(0,a.useState)(!1),[c,d]=(0,a.useState)(!1),u=(0,r.usePathname)(),f=!function(e,t=!1){let[r,n]=(0,a.useState)(null);return(0,a.useEffect)(()=>
1{if(t)return;let r=window.matchMedia(e),a=()=>{n(r.matches)};return a(),r.addEventListener("change",a),()=>{r.removeEventListener("change",a)}},[t,e]),r}("(width < 768px)")?"full":"drawer";return(0,eA.useOnChange)(u,()=>{s.current&&l(!1),s.current=!0}),(0,n.jsx)(eD,{value:(0,a.useMemo)(()=>({open:i,setOpen:l,collapsed:c,setCollapsed:d,closeOnRedirect:s,defaultOpenLevel:e,prefetch:t,mode:f}),[i,c,e,t,f]),children:o})}function e$(){let e=(0,a.use)(eD);if(!e)throw Error("Missing SidebarContext, make sure you have wrapped the component in <DocsLayout /> and the context is available.");return e}function eF(){return(0,a.use)(ez)}function e_(){return(0,a.use)(ez)?.depth??0}function eH({mode:e="full",children:t}){let{collapsed:r,mode:n}=e$(),[o,s]=(0,a.useState)(!1),i=(0,a.useRef)(null),l=(0,a.useRef)(0);if((0,eA.useOnChange)(r,()=>{r&&s(!1)}),!0===e||e===n)return t({ref:i,collapsed:r,hovered:o,onPointerEnter(e){c(e)||(window.clearTimeout(l.current),s(!0))},onPointerLeave(e){c(e)||(window.clearTimeout(l.current),l.current=window.setTimeout(()=>s(!1),Math.min(e.clientX,document.body.clientWidth-e.clientX)>100?0:500))}});function c(e){let t=i.current;return!t||!r||"touch"===e.pointerType||t.getAnimations().length>0}}function eB({area:e,viewport:r,children:a}){return(0,n.jsx)(ek,{...e,className:(0,t.cn)("min-h-0 flex-1",e?.className),children:(0,n.jsx)(eN,{...r,className:(0,t.cn)("*:flex! *:flex-col! *:gap-0.5! p-4 overscroll-contain mask-[linear-gradient(to_bottom,transparent,white_12px,white_calc(100%-12px),transparent)]",r?.className),children:a})})}function eW(e){let{open:t,setOpen:r,mode:a}=e$();if("drawer"===a)return(0,n.jsx)(P.Presence,{present:t,children:(0,n.jsx)("div",{"data-state":t?"open":"closed",onClick:()=>r(!1),...e})})}function eV({className:e,children:r,...a}){let{open:o,mode:s}=e$(),i=o?"open":"closed";if("drawer"===s)return(0,n.jsx)(P.Presence,{present:o,children:({present:o})=>(0,n.jsx)("aside",{id:"nd-sidebar-mobile","data-state":i,className:(0,t.cn)(!o&&"invisible",e),...a,children:r})})}function eU(e){return(0,n.jsx)("p",{...e})}function eq({icon:e,active:t=!1,children:r,...o}){let s=(0,a.useRef)(null),{prefetch:i}=e$();return eQ(t,s),(0,n.jsxs)(eP.default,{ref:s,"data-active":t,prefetch:i,...o,children:[e??(o.external?(0,n.jsx)(eE,{}):null),r]})}
1function eY({defaultOpen:e,collapsible:t=!0,active:r=!1,children:o,...s}){let{defaultOpenLevel:i}=e$(),l=e_()+1,c=!1===t||r||(e??i>=l),[d,u]=(0,a.useState)(c);return(0,eA.useOnChange)(c,e=>{e&&u(e)}),(0,n.jsx)(M,{open:d,onOpenChange:u,disabled:!t,...s,children:(0,n.jsx)(ez,{value:(0,a.useMemo)(()=>({open:d,setOpen:u,depth:l,collapsible:t}),[t,l,d]),children:o})})}function eX({children:e,...r}){let{open:o,collapsible:s}=(0,a.use)(ez);return s?(0,n.jsxs)(z,{...r,children:[e,(0,n.jsx)(eT,{"data-icon":!0,className:(0,t.cn)("ms-auto transition-transform",!o&&"-rotate-90 rtl:rotate-90")})]}):(0,n.jsx)("div",{...r,children:e})}function eG({children:e,active:r=!1,...o}){let s=(0,a.useRef)(null),{open:i,setOpen:l,collapsible:c}=(0,a.use)(ez),{prefetch:d}=e$();return eQ(r,s),(0,n.jsxs)(eP.default,{ref:s,"data-active":r,onClick:e=>{c&&(e.target instanceof Element&&e.target.matches("[data-icon], [data-icon] *")?(l(!i),e.preventDefault()):l(!r||!i))},prefetch:d,...o,children:[e,c&&(0,n.jsx)(eT,{"data-icon":!0,className:(0,t.cn)("ms-auto transition-transform",!i&&"-rotate-90 rtl:rotate-90")})]})}function eK(e){return(0,n.jsx)(H,{...e,children:e.children})}function eZ({children:e,...t}){let{setOpen:r}=e$();return(0,n.jsx)("button",{"aria-label":(0,eL.useTranslations)({note:"sidebar"})("Open Sidebar",{note:"aria-label"}),onClick:()=>r(e=>!e),...t,children:e})}function eJ(e){let{collapsed:t,setCollapsed:r}=e$();return(0,n.jsx)("button",{type:"button","aria-label":(0,eL.useTranslations)({note:"sidebar"})("Collapse Sidebar",{note:"aria-label"}),"data-collapsed":t,onClick:()=>{r(e=>!e)},...e,children:e.children})}function eQ(e,t){let{mode:r}=e$();(0,a.useEffect)(()=>{e&&t.current&&(0,eI.default)(t.current,{boundary:document.getElementById("drawer"===r?"nd-sidebar-mobile":"nd-sidebar"),scrollMode:"if-needed"})},[e,r,t])}e.s(["SidebarCollapseTrigger",0,eJ,"SidebarContent",0,eH,"SidebarDrawerContent",0,eV,"SidebarDrawerOverlay",0,eW,"SidebarFolder",0,eY,"SidebarFolderContent",0,eK,"SidebarFolderLink",0,eG,"SidebarFolderTrigger",0,eX,"SidebarItem",0,eq,"SidebarProvider",0,eO,"SidebarSeparator",0,eU,"SidebarTrigger",0,eZ,"SidebarViewport",0,eB,"base_exports",0,eM,"useFolder",0,eF,"useFolderDepth",0,e_],76031);var e0=e.i(989169);let e1=(0,a.createContext)(null);function e2({SidebarFolder:e,SidebarFolderContent:t,SidebarFolderLink:o,SidebarFolderTrigger:s,SidebarSeparator:i,SidebarItem:l}){function c(e){return e.map((e,t)=>(0,n.jsx)(f,{node:e},t))}function f({node:r}){let{Separator:u,Item:h,Folder:p,pathname:m}=(0,a.use)(e1);if("separator"===r.type)return u?(0,n.jsx)(u,{item:r}):(0,n.jsxs)(i,{children:[r.icon,r.name]});if("folder"===r.type){let a=d();return p?(0,n.jsx)(p,{item:r,children:c(r.children)}):(0,n.jsxs)(e,{collapsible:r.collapsible,active:a.includes(r),defaultOpen:r.defaultOpen,children:[r.index?(0,n.jsxs)(o,{href:r.index.url,active:(0,e0.isActive)(r.index.url,m),external:r.index.external,children:[r.icon,r.name]}):(0,n.jsxs)(s,{children:[r.icon,r.name]}),(0,n.jsx)(t,{children:c(r.children)})]})}return h?(0,n.jsx)(h,{item:r}):(0,n.jsx)(l,{href:r.url,external:r.external,active:(0,e0.isActive)(r.url,m),icon:r.icon,children:r.name})}return function(e){let{Folder:t,Item:o,Separator:s}=e,{root:i}=u(),l=(0,r.usePathname)();return(0,n.jsx)(e1,{value:(0,a.useMemo)(()=>({Folder:t,Item:o,Separator:s,pathname:l}),[t,o,s,l]),children:(0,n.jsx)(a.Fragment,{children:c(i.children)},i.$id)})}}function e5({SidebarFolder:e,SidebarFolderContent:t,SidebarFolderLink:a,SidebarFolderTrigger:o,SidebarItem:s}){return function i({item:l,...c}){let d=(0,h.isLinkItemActive)(l,(0,r.usePathname)());return"custom"===l.type?(0,n.jsx)("div",{...c,children:l.children}):"menu"===l.type?(0,n.jsxs)(e,{...c,children:[l.url?(0,n.jsxs)(a,{href:l.url,active:d,external:l.external,children:[l.icon,l.text]}):(0,n.jsxs)(o,{children:[l.icon,l.text]}),(0,n.jsx)(t,{children:l.items.map((e,t)=>(0,n.jsx)(i,{item:e},t))})]}):(0,n.jsx)(s,{href:l.url,icon:l.icon,external:l.external,active:d,...c,children:l.text})}}e.s(["createPageTreeRenderer",0,e2],116219),e.s(["createLinkItemRenderer",0,e5],227481);var e4=e.i(825957);let e7=(0,eR.default)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);e.s(["ChevronsUpDown",0,e7],800656);let e8=(0,eR.default)("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);e.s(["Languages",0,e8],91303);let e6=(0,eR.default)("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);e.s(["default",0,e6],423177),e.s(["SidebarIcon",0,e6],67331);let e3=(0,e.i(294237).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
1/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:inset-s-2.5"}}}),{useSidebar:e9}=eM;function te(e){return(0,n.jsx)(eO,{...e})}function tt({footer:e,banner:r,collapsible:a=!0,components:o,...s}){let{menuItems:i,slots:l,props:{tabs:c,nav:d,tabMode:u}}=tw(),h=i.filter(e=>"icon"===e.type),p=(0,n.jsxs)(eB,{children:[i.filter(e=>"icon"!==e.type).map((e,r,a)=>(0,n.jsx)(tp,{item:e,className:(0,t.cn)(r===a.length-1&&"mb-4")},r)),(0,n.jsx)(th,{...o})]});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(to,{...s,children:[(0,n.jsxs)("div",{className:"flex flex-col gap-3 p-4 pb-2",children:[(0,n.jsxs)("div",{className:"flex",children:[l.navTitle&&(0,n.jsx)(l.navTitle,{className:"inline-flex text-[0.9375rem] items-center gap-2.5 font-medium me-auto"}),d?.children,a&&(0,n.jsx)(tn,{className:(0,t.cn)((0,m.buttonVariants)({color:"ghost",size:"icon-sm",className:"mb-auto text-fd-muted-foreground"})),children:(0,n.jsx)(e6,{})})]}),l.searchTrigger&&(0,n.jsx)(l.searchTrigger.full,{hideIfDisabled:!0}),c.length>0&&"auto"===u&&(0,n.jsx)(tu,{tabs:c}),r]}),p,(l.languageSelect||h.length>0||l.themeSwitch||e)&&(0,n.jsxs)("div",{className:"flex flex-col p-4 pt-2",children:[l.languageSelect&&(0,n.jsxs)(l.languageSelect.root,{variant:"secondary",className:"text-fd-muted-foreground text-start justify-start bg-fd-secondary/50 mb-2",children:[(0,n.jsx)(e8,{className:"size-4.5"}),(0,n.jsx)(l.languageSelect.text,{}),(0,n.jsx)(eT,{className:"ms-auto size-3.5"})]}),(0,n.jsxs)("div",{className:"flex text-fd-muted-foreground items-center border bg-fd-secondary/50 p-0.5 pe-0 rounded-lg empty:hidden",children:[h.map((e,r)=>(0,n.jsx)(f.LinkItem,{item:e,className:(0,t.cn)((0,m.buttonVariants)({size:"icon-sm",color:"ghost"})),"aria-label":e.label,children:e.icon},r)),l.themeSwitch&&(0,n.jsx)(l.themeSwitch,{className:"px-1 py-0 border-y-0 border-e-0 rounded-none ms-auto *:rounded-md"})]}),e]})]}),(0,n.jsxs)(ts,{children:[(0,n.jsxs)("div",{className:"flex flex-col gap-3 p-4 pb-2",children:[(0,n.jsxs)("div",{className:"flex text-fd-muted-foreground items-center gap-1.5",children:[(0,n.jsx)("div",{className:"flex flex-1",children:h.map((e,r)=>(0,n.jsx)(f.LinkItem,{item:e,className:(0,t.cn)((0,m.buttonVariants)({size:"icon-sm",color:"ghost",className:"p-2"})),"aria-label":e.label,children:e.icon},r))}),l.languageSelect&&(0,n.jsxs)(l.languageSelect.root,{children:[(0,n.jsx)(e8,{className:"size-4.5"}),(0,n.jsx)(l.languageSelect.text,{})]}),l.themeSwitch&&(0,n.jsx)(l.themeSwitch,{className:"p-0"}),(0,n.jsx)(ta,{className:(0,t.cn)((0,m.buttonVariants)({color:"ghost",size:"icon-sm",className:"p-2"})),children:(0,n.jsx)(e6,{})})]}),c.length>0&&(0,n.jsx)(tu,{tabs:c}),r]}),p,(0,n.jsx)("div",{className:"flex flex-col border-t p-4 pt-2 empty:hidden",children:e})]})]})}function tr(e){return(0,n.jsx)(eY,{...e})}function tn(e){return(0,n.jsx)(eJ,{...e})}function ta(e){return(0,n.jsx)(eZ,{...e})}function to({ref:e,className:r,children:o,...s}){let i=(0,a.useRef)(null);return(0,n.jsx)(eH,{children:({collapsed:a,hovered:l,ref:c,...d})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.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:[a&&(0,n.jsx)("div",{className:"absolute inset-s-0 inset-y-0 w-4",...d}),(0,n.jsx)("aside",{id:"nd-sidebar",ref:(0,x.mergeRefs)(i,e,c),"data-collapsed":a,"data-hovered":a&&l,className:(0,t.cn)("absolute flex flex-col w-full inset-s-0 inset-y-0 items-end bg-fd-card text-sm border-e duration-250 *:w-(--fd-sidebar-width)",a&&["inset-y-2 rounded-xl transition-transform border w-(--fd-sidebar-width)",l?"shadow-lg translate-x-2 rtl:-translate-x-2":"-translate-x-(--fd-sidebar-width) rtl:translate-x-full"],i.current&&"true"===i.current.getAttribute("data-collapsed")!==a&&"transition-[width,inset-block,translate,background-color]",r),...s,...d,children:o})]}),(0,n.jsxs)("div",{"data-sidebar-panel":"",className:(0,t.cn)("fixed flex to
1p-[calc(--spacing(4)+var(--fd-docs-row-3))] inset-s-4 shadow-lg transition-opacity rounded-xl p-0.5 border bg-fd-muted text-fd-muted-foreground z-10",(!a||l)&&"pointer-events-none opacity-0"),children:[(0,n.jsx)(eJ,{className:(0,t.cn)((0,m.buttonVariants)({color:"ghost",size:"icon-sm",className:"rounded-lg"})),children:(0,n.jsx)(e6,{})}),(0,n.jsx)(v.SearchTrigger,{className:"rounded-lg",hideIfDisabled:!0})]})]})})}function ts({children:e,className:r,...a}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eW,{className:"fixed z-40 inset-0 backdrop-blur-xs data-[state=open]:animate-fd-fade-in data-[state=closed]:animate-fd-fade-out"}),(0,n.jsx)(eV,{className:(0,t.cn)("fixed text-[0.9375rem] flex flex-col shadow-lg border-s inset-e-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",r),...a,children:e})]})}function ti({className:e,style:r,children:a,...o}){let s=e_();return(0,n.jsx)(eq,{className:(0,t.cn)(e3({variant:"link",highlight:s>=1}),e),style:{paddingInlineStart:tf(s),...r},...o,children:a})}function tl({className:e,style:r,...a}){let{depth:o,collapsible:s}=eF();return(0,n.jsx)(eX,{className:(0,t.cn)(e3({variant:s?"button":null}),"w-full",e),style:{paddingInlineStart:tf(o-1),...r},...a,children:a.children})}function tc({className:e,style:r,...a}){let o=e_();return(0,n.jsx)(eG,{className:(0,t.cn)(e3({variant:"link",highlight:o>1}),"w-full",e),style:{paddingInlineStart:tf(o-1),...r},...a,children:a.children})}function td({className:e,children:r,...a}){return(0,n.jsx)(eK,{className:(0,t.cn)("relative",1===e_()&&"before:content-[''] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:inset-s-2.5",e),...a,children:(0,n.jsx)("div",{className:"flex flex-col gap-0.5 pt-0.5",children:r})})}function tu({tabs:e,placeholder:o,...s}){let[i,l]=(0,a.useState)(!1),{closeOnRedirect:c}=e9(),d=(0,r.usePathname)(),u=(0,a.useMemo)(()=>e.findLast(e=>(0,h.isLayoutTabActive)(e,d)),[e,d]),f=()=>{c.current=!1,l(!1)},p=u?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"size-9 shrink-0 empty:hidden md:size-5",children:u.icon}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-medium",children:u.title}),(0,n.jsx)("p",{className:"text-sm text-fd-muted-foreground empty:hidden md:hidden",children:u.description})]})]}):o;return(0,n.jsxs)(g.Popover,{open:i,onOpenChange:l,children:[p&&(0,n.jsxs)(g.PopoverTrigger,{...s,className:(0,t.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",s.className),children:[p,(0,n.jsx)(e7,{className:"shrink-0 ms-auto size-4 text-fd-muted-foreground"})]}),(0,n.jsx)(g.PopoverContent,{className:"flex flex-col gap-1 w-(--radix-popover-trigger-width) p-1 fd-scroll-container",children:e.map(e=>{let r=u&&e.url===u.url;if(r||!e.unlisted)return(0,n.jsxs)(eP.default,{href:e.url,onClick:f,...e.props,className:(0,t.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,n.jsx)("div",{className:"shrink-0 size-9 md:mb-auto md:size-5 empty:hidden",children:e.icon}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-medium leading-none",children:e.title}),(0,n.jsx)("p",{className:"text-[0.8125rem] text-fd-muted-foreground mt-1 empty:hidden",children:e.description})]}),(0,n.jsx)(e4.Check,{className:(0,t.cn)("shrink-0 ms-auto size-3.5 text-fd-primary",!r&&"invisible")})]},e.url)})})]})}function tf(e){return`calc(${2+3*e} * var(--spacing))`}let th=e2({SidebarFolder:tr,SidebarFolderContent:td,SidebarFolderLink:tc,SidebarFolderTrigger:tl,SidebarItem:ti,SidebarSeparator:function({className:e,style:r,children:a,...o}){let s=e_();return(0,n.jsx)(eU,{className:(0,t.cn)("inline-flex items-center gap-2 mb-1 px-2 mt-6 empty:mb-0 [&_svg]:size-4 [&_svg]:shrink-0",0===s&&"first:mt-0",e),style:{paddingInlineStart:tf(s),...r},...o,children:a})}}),tp=e5({SidebarFolder:tr,SidebarFolderContent:td,SidebarFolderLink:tc,SidebarFolderTrigger:tl,SidebarItem:ti});function tm(e){let{isNavTransparent:r,slots:a,props:{nav:o}}=tw();return o?.component?o.component:(0,n.jsxs)("header",{id:"nd-subnav","data-transparent":r,...e,className:(0,t.cn)("[grid-area:header] sticky top-(--fd-docs-row-1) z-30 flex items-center ps-4 pe-2.5 border-b transition-colors backdrop-blur-sm h-(--fd-header-height) md:hidden max-md:layout:[--fd-header-height:--spacing(14)] data-[transparent=false]:bg-fd-background/80",e.className),children:[a.navTitle&&(0,n.jsx)(a.navTitle,{className:"inline-flex items-center gap-2.5 font-semibold"}),(0,n.jsx)("div",{className:"flex-1",children:o?.children}),a.searchTrigger&&(0,n.jsx)(a.searchTrigger.sm,{hideIfDisabled:!0,className:"p-2"}),a.sidebar&&(0,n.jsx)(a.sidebar.trigger,{className:(0,t.cn)((0,m.buttonVariants)({color:"ghost",size:"icon-sm",className:"p-2"})),children:(0,n.jsx)(e6,{})})]})}function tx(e){let{slots:r}=tw(),{collapsed:o}=r.sidebar.useSidebar(),[s,i]=(0,a.useState)(o),l=s!==o;return(0,a.useEffect)(()=>{l&&i(o)},[o,l]),(0,n.jsx)("div",{id:"nd-docs-layout","data-sidebar-collapsed":o,"data-column-changed":l,...e,style:{gridTemplate:`"sidebar sidebar header toc toc"
2"sidebar sidebar toc-popover toc toc"
3"sidebar sidebar main toc toc" 1fr / minmax(min-content, 1fr) var(--fd-sidebar-col) minmax(0, calc(var(--fd-layout-width,97rem) - var(--fd-sidebar-width) - var(--fd-toc-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":o?"0px":"var(--fd-sidebar-width)",...e.style},className:(0,t.cn)("grid overflow-x-clip min-h-(--fd-docs-height) [--fd-docs-height:100dvh] [--fd-header-height:0px] [--fd-toc-popover-height:0px] [--fd-sidebar-width:0px] [--fd-toc-width:0px] data-[column-changed=true]:transition-[grid-template-columns]",e.className),children:e.children})}e.s([],784453);let{useProvider:tg}=(0,f.baseSlots)({useProps:()=>tw().props}),tv=(0,a.createContext)(null);function tb(){return null!==(0,a.use)(tv)}function tw(){let e=(0,a.use)(tv);if(!e)throw Error("Please use <DocsPage /> (`fumadocs-ui/layouts/docs/page`) under <DocsLayout /> (`fumadocs-ui/layouts/docs`).");return e}function ty(e){let{nav:{enabled:t=!0,transparentMode:r="none"}={},sidebar:{enabled:a=!0,defaultOpenLevel:o,prefetch:s,...i}={},slots:l,tabs:d,tabMode:u="auto",tree:f,containerProps:m,children:x}=e,g=p({enabled:"top"===r})??!0,{baseSlots:v,baseProps:b}=tg(e),w=(0,h.useLinkItems)(e),y={...v,header:l?.header??tm,container:l?.container??tx,sidebar:l?.sidebar??{provider:te,root:tt,trigger:ta,useSidebar:e9}};return(0,n.jsx)(c,{tree:f,children:(0,n.jsx)(tv,{value:{props:{tabMode:u,tabs:d,...b},isNavTransparent:"top"===r?g:"always"===r,slots:y,...w},children:(0,n.jsx)(y.sidebar.provider,{defaultOpenLevel:o,prefetch:s,children:(0,n.jsxs)(y.container,{...m,children:[t&&(0,n.jsx)(y.header,{}),a&&(0,n.jsx)(y.sidebar.root,{...i}),"top"===u&&d.length>0&&(0,n.jsx)(tj,{tabs:d,className:"z-10 bg-fd-background border-b px-6 pt-3 xl:px-8 max-md:hidden"}),x]})})})})}function tj({tabs:e,...o}){let s=(0,r.usePathname)(),i=(0,a.useMemo)(()=>e.findLast(e=>(0,h.isLayoutTabActive)(e,s)),[e,s]);return(0,n.jsx)("div",{...o,className:(0,t.cn)("flex flex-row items-end gap-6 overflow-auto [grid-area:main]",o.className),children:e.map((e,r)=>(0,n.jsx)(eP.default,{href:e.url,className:(0,t.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&&i!==e&&"hidden",i===e&&"border-fd-primary text-fd-
3primary"),children:e.title},r))})}},826611,e=>{"use strict";var t=e.i(730624);e.s(["useCopyButton",0,function(e){let[r,n]=(0,t.useState)(!1),a=(0,t.useRef)(e),o=(0,t.useRef)(null);a.current=e;let s=(0,t.useCallback)(()=>{o.current&&window.clearTimeout(o.current),Promise.resolve(a.current()).then(()=>{n(!0),o.current=window.setTimeout(()=>{n(!1)},1500)})},[]);return(0,t.useEffect)(()=>()=>{o.current&&window.clearTimeout(o.current)},[]),[r,s]}])},725658,e=>{"use strict";var t=e.i(788082),r=e.i(757841),n=e.i(732650),a=e.i(599434),o=e.i(372169),s=e.i(594588),i=e.i(730624),l=e.i(214238);function c({includeRoot:e,includeSeparator:r,includePage:d,...u}){let f=(0,n.useTreePath)(),{root:h}=(0,n.useTreeContext)(),p=(0,i.useMemo)(()=>(0,l.getBreadcrumbItemsFromPath)(h,f,{includePage:d,includeSeparator:r,includeRoot:e}),[d,e,r,f,h]);return 0===p.length?null:(0,o.jsx)("div",{...u,className:(0,t.cn)("flex items-center gap-1.5 text-sm text-fd-muted-foreground",u.className),children:p.map((e,r)=>{let n=(0,t.cn)("truncate",r===p.length-1&&"text-fd-primary font-medium");return(0,o.jsxs)(i.Fragment,{children:[0!==r&&(0,o.jsx)(s.ChevronRight,{className:"size-3.5 shrink-0"}),e.url?(0,o.jsx)(a.default,{href:e.url,className:(0,t.cn)(n,"transition-opacity hover:opacity-80"),children:e.name}):(0,o.jsx)("span",{className:n,children:e.name})]},r)})})}var d=e.i(795236),u=e.i(781307),f=e.i(876767),h=e.i(104405),p=e.i(187484);let m=(0,i.createContext)(null),x=(0,i.createContext)(null);function g({ref:e,onActiveChange:t=()=>null,...r}){let n=r.href?j(r.href):null,a=(0,i.use)(x),s=(0,i.useRef)(null),l=v(),[c,d]=(0,i.useState)(()=>l.items.some(e=>e.id===n&&e.active));function u(e,t=!1){let r,o=s.current,i=a?.current;if(n&&o&&i){for(let t of e)t.active&&(!r||r.t<t.t)&&(r=t);r?.id===n&&(0,p.default)(o,{behavior:t?"instant":"smooth",block:"center",inline:"center",scrollMode:"always",boundary:i})}}return w(e=>{let r=n?e.find(e=>e.id===n):null;r&&r.active!==c&&(d(r.active),t(r.active),u(e))}),(0,i.useEffect)(()=>{u(l.items,!0)},[l]),(0,o.jsx)("a",{ref:function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}(s,e),"data-active":c,...r})}function v(){let e=(0,i.use)(m);if(!e)throw Error("Component must be used under the <AnchorProvider /> component.");return e}function b(){let e=v();return(0,i.useMemo)(()=>({get:()=>e.items,listen:e.listen.bind(e),unlisten:e.unlisten.bind(e)}),[e])}function w(e){let t=v(),r=(0,i.useEffectEvent)(e);(0,i.useEffect)(()=>(t.listen(r),()=>t.unlisten(r)),[t])}function y(e,t=h.t){let r=v(),[n,a]=(0,i.useState)(()=>e(r.items));return w(r=>{let o=e(r);t(n,o)||a(o)}),n}function j(e){return e.startsWith("#")?e.slice(1):null}var C=class{constructor(){this.items=[],this.single=!1,this.observer=null,this.listeners=new Set}listen(e){this.listeners.add(e)}unlisten(e){this.listeners.delete(e)}setItems(e){let t=this.observer;if(t)for(let e of this.items){let r=document.getElementById(e.id);r&&t.unobserve(r)}let r=[];for(let t of e){let e=j(t.url);e&&r.push({id:e,active:!1,fallback:!1,t:0,original:t})}this.update(r),this.observeItems()}watch(e){this.observer||(this.observer=new IntersectionObserver(this.callback.bind(this),e),this.observeItems())}unwatch(){this.observer?.disconnect(),this.observer=null}callback(e){if(0===e.length)return;let t=!1,r=this.items.map(r=>{let n=e.find(e=>e.target.id===r.id),a=n?n.isIntersecting:r.active&&!r.fallback;return this.single&&t&&(a=!1),r.active!==a&&(r={...r,t:Date.now(),active:a,fallback:!1}),a&&(t=!0),r});if(!t&&e[0].rootBounds){let t=e[0].rootBounds.top,n=Number.MAX_VALUE,a=-1;for(let e=0;e<r.length;e++){let o=document.getElementById(r[e].id);if(!o)continue;let s=Math.abs(t-o.getBoundingClientRect().top);s<n&&(a=e,n=s)}-1!==a&&(r[a]={...r[a],active:!0,fallback:!0,t:Date.now()})}this.update(r)}observeItems(){if(this.observer)for(let e of this.items){let t=document.getElementById(e.id);t&&this.observer.observe(t)}}update(e){for(let t of(this.items=e,this.listeners))t(e)}};e.s(["AnchorProvider",0,function({toc:e,single:t=!1,children:r}){let n=(0,i.useMemo)(()=>new C,[]);return n.single=t,(0,i.useEffect)(()=>{n.setItems(e)},[n,e]),(0,i.useEffect)(()=>(n.watch({threshold:.9}),()=>n.unwatch()),[n]),(0,o.jsx)(m,{value:n,children:r})},"ScrollProvider",0,function({containerRef:e,children:t}){return(0,o.jsx)(x,{value:e,children:t})},"TOCItem",0,g,"useActiveAnchor",0,function(){return y(e=>{let t;for(let r of e)r.active&&(!t||r.t>t.t)&&(t=r);return t?.id})},"useActiveAnchors",0,function(){return y(e=>{let t=[];
3for(let r of e)r.active&&t.push(r.id);return t})},"useItems",0,function(){return y(e=>e)},"useTOC",0,b,"useTOCListener",0,w,"useTOCSelector",0,y],16867);var k=e.i(16867);let N=(0,i.createContext)([]);function S(){return(0,i.use)(N)}let{useActiveAnchor:P,useActiveAnchors:R,useItems:T}=k;function E({toc:e,children:t,...r}){return(0,o.jsx)(N,{value:e,children:(0,o.jsx)(k.AnchorProvider,{toc:e,...r,children:t})})}function L({ref:e,className:r,...n}){let a=(0,i.useRef)(null);return(0,o.jsx)("div",{ref:(0,f.mergeRefs)(a,e),className:(0,t.cn)("relative min-h-0 text-sm ms-px overflow-auto [scrollbar-width:none] mask-[linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] py-3",r),...n,children:(0,o.jsx)(k.ScrollProvider,{containerRef:a,children:n.children})})}var A=e.i(801917),I=(0,d.__exportAll)({TOCEmpty:()=>D,TOCItem:()=>$,TOCItems:()=>M});function M({ref:e,className:r,thumbBox:n=!0,children:a,...s}){let l=(0,i.useRef)(null),c=S(),[d,u]=(0,i.useState)(null),h=(0,i.useCallback)(()=>{let e=l.current;if(!e||0===e.clientHeight)return;if(0===c.length)return void u(null);let t=0,r=0,a="",s=[],i=[];for(let n=0;n<c.length;n++){let l=c[n],d=e.querySelector(`a[href="${l.url}"]`);if(!d)continue;let u=getComputedStyle(d),f=O(l.depth)+.5,h=d.offsetTop+parseFloat(u.paddingTop),p=d.offsetTop+d.clientHeight-parseFloat(u.paddingBottom);if(t=Math.max(f+8,t),r=Math.max(r,p),0===n)a+=` M${f} ${h} L${f} ${p}`;else{let[,e,t]=n>0?s[n-1]:[0,0,0];a+=` C ${t} ${h-4} ${f} ${e+4} ${f} ${h} L${f} ${p}`}void 0!==l._step&&i.push((0,o.jsxs)("g",{transform:`translate(${f}, ${(h+p)/2})`,children:[(0,o.jsx)("circle",{cx:"0",cy:"0",r:"8",className:"fill-fd-primary"}),(0,o.jsx)("text",{cx:"0",cy:"0",textAnchor:"middle",alignmentBaseline:"central",dominantBaseline:"middle",className:"fill-fd-primary-foreground font-medium text-xs leading-none font-mono rtl:-scale-x-100",children:l._step})]},n)),s.push([h,p,f])}i.unshift((0,o.jsx)("path",{d:a,className:"stroke-fd-primary",strokeWidth:"1",fill:"none"},"path"));let d=[];if(n){let e=document.createElementNS("http://www.w3.org/2000/svg","path");e.setAttribute("d",a);let t=e.getTotalLength();for(let r=0;r<s.length;r++){let[n,a]=s[r],o=r>0?d[r-1][1]+(n-s[r-1][1]):n;for(;o<t&&e.getPointAtLength(o).y<n;)o++;d.push([o,o+a-n])}}u({content:i,width:t,height:r,d:a,itemLineLengths:d,positions:s})},[c,n]);return(0,i.useEffect)(()=>{let e=l.current;if(!e)return;let t=new ResizeObserver(h);return t.observe(e),h(),()=>{t.unobserve(e)}},[h]),(0,o.jsxs)("div",{ref:(0,f.mergeRefs)(l,e),className:(0,t.cn)("relative flex flex-col",r),...s,children:[d&&(0,o.jsx)(z,{computed:d,thumbBox:n}),a]})}function D(){return(0,o.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:(0,A.useTranslations)({note:"table of contents"})("No Headings")})}function z({computed:e,thumbBox:t}){let r=(0,i.useRef)(null),n=(0,i.useRef)(null),a=b();function s(r){let a={},o=r.findIndex(e=>e.active);if(-1===o)return a;let s=r.findLastIndex(e=>e.active);if(a["--track-top"]=`${e.positions[o][0]}px`,a["--track-bottom"]=`${e.positions[s][1]}px`,t){let t=!1;if(n.current){let e=n.current;t=e.startIdx>o||e.endIdx>s||e.startIdx===o&&e.endIdx===s&&e.isUp}n.current={startIdx:o,endIdx:s,isUp:t},a["--offset-distance"]=t?`${e.itemLineLengths[o][0]}px`:`${e.itemLineLengths[s][1]}px`,a["--opacity"]=void 0!==r[t?o:s].original._step?"0":"1"}return a}return w(e=>{let t=r.current;if(t)for(let[r,n]of Object.entries(s(e)))t.style.setProperty(r,n)}),(0,o.jsxs)("div",{ref:r,className:"absolute top-0 inset-s-0 origin-center rtl:-scale-x-100",style:{width:e.width,height:e.height,...s(a.get())},children:[(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${e.width} ${e.height}`,className:"absolute transition-[clip-path]",style:{width:e.width,height:e.height,clipPath:"polygon(0 var(--track-top,0), 100% var(--track-top,0), 100% var(--track-bottom,0), 0 var(--track-bottom,0))"},children:e.content}),t&&(0,o.jsx)("div",{className:"absolute left-0 size-1 bg-fd-primary rounded-full [offset-distance:var(--offset-distance,0)] opacity-(--opacity,0) transition-[opacity,offset-distance]",style:{offsetPath:`path("${e.d}")`}})]})}function O(e){return e<=2?8:3===e?16:24}function $({item:e,...r}){var n;let a=S(),{isFirst:s,isLast:l,svg:c}=(0,i.useMemo)(()=>{let r=a.indexOf(e),n=0===r,s=r===a.length-1,i=O(e.depth),l=n?i:O(a[r-1].depth),c=s?i:O(a[r+1].depth);return{isFirst:n,isLast:s,svg:(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:(0,t.cn)("absolute -top-1.5 inset-s-0 bottom-0 h-[calc(100%+--spacing(1.5))] -z-1 rtl:-scale-x-100",i!==c&&"h-full bottom-1.5"),style:{width:Math.max(l,i)+9},children:[l!==i&&(0,o.jsx)("path",{d:`M ${l+.5} 0 C ${l+.5} 8 ${i+.5} 4 ${i+.5} 12`,stroke:"black",strokeWidth:"1",fill:"none",className:"stroke-fd-foreground
3/10"}),(0,o.jsx)("line",{x1:i+.5,y1:l===i?"6":"12",x2:i+.5,y2:"100%",strokeWidth:"1",className:"stroke-fd-foreground/10"}),void 0!==e._step&&(0,o.jsxs)("g",{transform:`translate(${i+.5}, ${i===c?"3":"6"})`,children:[(0,o.jsx)("circle",{cx:"0",cy:"50%",r:"8",className:"fill-fd-muted"}),(0,o.jsx)("text",{x:"0",y:"50%",textAnchor:"middle",alignmentBaseline:"central",dominantBaseline:"middle",className:"fill-fd-muted-foreground font-medium text-xs leading-none font-mono rtl:-scale-x-100",children:e._step})]})]})}},[a,e]);return(0,o.jsxs)(g,{href:e.url,...r,className:(0,t.cn)("prose relative py-1.5 text-sm scroll-m-4 text-fd-muted-foreground hover:text-fd-accent-foreground transition-colors wrap-anywhere data-[active=true]:text-fd-primary",s&&"pt-0",l&&"pb-0",r.className),style:{paddingInlineStart:(n=e.depth)<=2?20:3===n?32:44,...r.style},children:[c,e.title]})}var F=(0,d.__exportAll)({TOCEmpty:()=>H,TOCItem:()=>V,TOCItems:()=>_});function _({ref:e,className:r,children:n,...a}){let s=(0,i.useRef)(null),l=S(),[c,d]=(0,i.useState)(null),u=(0,i.useCallback)(()=>{let e=s.current;if(!e||0===e.clientHeight)return;if(0===l.length)return void d(null);let t=0,r=0,n="",a=[],i=[];for(let s=0;s<l.length;s++){let c=l[s],d=e.querySelector(`a[href="${c.url}"]`);if(!d)continue;let u=getComputedStyle(d),f=W(c.depth)+.5,h=d.offsetTop+parseFloat(u.paddingTop),p=d.offsetTop+d.clientHeight-parseFloat(u.paddingBottom);if(t=Math.max(f+8,t),r=Math.max(r,p),0===s)n+=` M${f} ${h} L${f} ${p}`;else{let[,e,t]=s>0?a[s-1]:[0,0,0];n+=` L ${t} ${e} ${f} ${h} L${f} ${p}`}void 0!==c._step&&i.push((0,o.jsxs)("g",{transform:`translate(${f}, ${(h+p)/2})`,children:[(0,o.jsx)("circle",{cx:"0",cy:"0",r:"8",className:"fill-fd-primary"}),(0,o.jsx)("text",{cx:"0",cy:"0",textAnchor:"middle",alignmentBaseline:"central",dominantBaseline:"middle",className:"fill-fd-primary-foreground font-medium text-xs leading-none font-mono rtl:-scale-x-100",children:c._step})]},s)),a.push([h,p,f])}i.unshift((0,o.jsx)("path",{d:n,className:"stroke-fd-primary",strokeWidth:"1",fill:"none"},"path")),d({content:i,width:t,height:r,d:n,itemLineLengths:[],positions:a})},[l]);return(0,i.useEffect)(()=>{let e=s.current;if(!e)return;let t=new ResizeObserver(u);return t.observe(e),u(),()=>{t.unobserve(e)}},[u]),(0,o.jsxs)("div",{ref:(0,f.mergeRefs)(s,e),className:(0,t.cn)("relative flex flex-col",r),...a,children:[c&&(0,o.jsx)(B,{computed:c}),n]})}function H(){return(0,o.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:(0,A.useTranslations)({note:"table of contents"})("No Headings")})}function B({computed:e}){let t=(0,i.useRef)(null),r=b();function n(t){let r={},n=t.findIndex(e=>e.active);if(-1===n)return r;let a=t.findLastIndex(e=>e.active);return r["--track-top"]=`${e.positions[n][0]}px`,r["--track-bottom"]=`${e.positions[a][1]}px`,r}return w(e=>{let r=t.current;if(r)for(let[t,a]of Object.entries(n(e)))r.style.setProperty(t,a)}),(0,o.jsx)("div",{ref:t,className:"absolute top-0 inset-s-0 origin-center rtl:-scale-x-100",style:{width:e.width,height:e.height,...n(r.get())},children:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${e.width} ${e.height}`,className:"absolute transition-[clip-path]",style:{width:e.width,height:e.height,clipPath:"polygon(0 var(--track-top,0), 100% var(--track-top,0), 100% var(--track-bottom,0), 0 var(--track-bottom,0))"},children:e.content})})}function W(e){return e<=2?8:3===e?20:32}function V({item:e,...r}){var n;let a=S(),{isFirst:s,isLast:l,svg:c}=(0,i.useMemo)(()=>{let r=a.indexOf(e),n=0===r,s=r===a.length-1,i=W(e.depth),l=n?i:W(a[r-1].depth),c=s?i:W(a[r+1].depth);return{isFirst:n,isLast:s,svg:(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:(0,t.cn)("absolute -top-1.5 inset-s-0 bottom-0 h-[calc(100%+--spacing(1.5))] -z-1 rtl:-scale-x-100",i!==c&&"h-full bottom-1.5"),style:{width:Math.max(l,i)+9},children:[l!==i&&(0,o.jsx)("path",{d:`M ${l+.5} 0 L ${l+.5} 0 ${i+.5} 12`,stroke:"black",strokeWidth:"1",fill:"none",className:"stroke-fd-foreground/10"}),(0,o.jsx)("line",{x1:i+.5,y1:l===i?"6":"12",x2:i+.5,y2:"100%",strokeWidth:"1",className:"stroke-fd-foreground
3/10"}),void 0!==e._step&&(0,o.jsxs)("g",{transform:`translate(${i+.5}, ${i===c?"3":"6"})`,children:[(0,o.jsx)("circle",{cx:"0",cy:"50%",r:"8",className:"fill-fd-muted"}),(0,o.jsx)("text",{x:"0",y:"50%",textAnchor:"middle",alignmentBaseline:"central",dominantBaseline:"middle",className:"fill-fd-muted-foreground font-medium text-xs leading-none font-mono rtl:-scale-x-100",children:e._step})]})]})}},[a,e]);return(0,o.jsxs)(g,{href:e.url,...r,className:(0,t.cn)("prose relative py-1.5 text-sm scroll-m-4 text-fd-muted-foreground hover:text-fd-accent-foreground transition-colors wrap-anywhere data-[active=true]:text-fd-primary",s&&"pt-0",l&&"pb-0",r.className),style:{paddingInlineStart:(n=e.depth)<=2?20:3===n?32:44,...r.style},children:[c,e.title]})}var U=e.i(530890);e.i(784453);var q=e.i(667439),Y=e.i(282026);let X=(0,Y.default)("text-align-start",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]]);function G(e){return(0,o.jsx)(E,{...e})}function K({container:e,header:r,footer:n,style:a="normal",list:s}){let i=S(),l=(0,A.useTranslations)({note:"table of contents"}),{TOCItems:c,TOCEmpty:d,TOCItem:u}="clerk"===a?F:I;return 0!==i.length||r||n?(0,o.jsxs)("div",{id:"nd-toc",...e,className:(0,t.cn)("sticky top-(--fd-docs-row-1) h-[calc(var(--fd-docs-height)-var(--fd-docs-row-1))] flex flex-col [grid-area:toc] w-(--fd-toc-width) pt-12 pe-4 pb-2 xl:layout:[--fd-toc-width:268px] max-xl:hidden",e?.className),children:[r,(0,o.jsxs)("h3",{id:"toc-title",className:"inline-flex items-center gap-1.5 text-sm text-fd-muted-foreground",children:[(0,o.jsx)(X,{className:"size-4"}),l("On this page")]}),(0,o.jsx)(L,{children:(0,o.jsxs)(c,{...s,children:[0===i.length&&(0,o.jsx)(d,{}),i.map(e=>(0,o.jsx)(u,{item:e},e.url))]})}),n]}):(0,o.jsx)("div",{id:"nd-toc-placeholder",className:"hidden xl:layout:[--fd-toc-width:268px]"})}let Z=(0,i.createContext)(null);function J({container:e,trigger:n,content:a,header:s,footer:l,style:c="normal",list:d}){let u=S(),f=(0,i.useRef)(null),[h,p]=(0,i.useState)(!1),{isNavTransparent:m}=(0,r.useDocsLayout)(),{TOCItems:x,TOCItem:g,TOCEmpty:v}="clerk"===c?F:I,b=(0,i.useEffectEvent)(e=>{h&&e.target instanceof HTMLElement&&f.current&&!f.current.contains(e.target)&&p(!1)}),w=()=>{p(!1)};return(0,i.useEffect)(()=>(window.addEventListener("click",b),()=>{window.removeEventListener("click",b)}),[]),(0,o.jsx)(Z,{value:(0,i.useMemo)(()=>({open:h,setOpen:p}),[p,h]),children:(0,o.jsx)(U.Collapsible,{open:h,onOpenChange:p,"data-toc-popover":"",...e,className:(0,t.cn)("sticky top-(--fd-docs-row-2) z-10 [grid-area:toc-popover] h-(--fd-toc-popover-height) xl:hidden max-xl:layout:[--fd-toc-popover-height:--spacing(10)]",e?.className),children:(0,o.jsxs)("header",{ref:f,className:(0,t.cn)("border-b backdrop-blur-sm transition-colors",(!m||h)&&"bg-fd-background/80",h&&"shadow-lg"),children:[(0,o.jsx)(Q,{...n}),(0,o.jsxs)(et,{...a,children:[s,(0,o.jsx)(L,{children:(0,o.jsxs)(x,{...d,children:[0===u.length&&(0,o.jsx)(v,{}),u.map(e=>(0,o.jsx)(g,{item:e,onClick:w},e.url))]})}),l]})]})})})}function Q({className:e,...r}){let a=(0,A.useTranslations)({note:"table of contents"}),{open:s}=(0,i.use)(Z),l=T(),c=l.findIndex(e=>e.active),d=(0,n.useTreePath)().at(-1),u=-1!==c&&!s;return(0,o.jsxs)(U.CollapsibleTrigger,{className:(0,t.cn)("flex w-full h-10 items-center text-sm text-fd-muted-foreground gap-2.5 px-4 py-2.5 text-start focus-visible:outline-none [&_svg]:size-4 md:px-6",e),"data-toc-popover-trigger":"",...r,children:[(0,o.jsx)(ee,{value:(l.findLastIndex(e=>e.active)+1)/Math.max(1,l.length),max:1,className:(0,t.cn)("shrink-0",s&&"text-fd-primary")}),(0,o.jsxs)("span",{className:"grid flex-1 *:my-auto *:row-start-1 *:col-start-1",children:[(0,o.jsx)("span",{className:(0,t.cn)("truncate transition-[opacity,translate,color]",s&&"text-fd-foreground",u&&"opacity-0 -translate-y-full pointer-events-none"),children:d?.name??a("On this page")}),(0,o.jsx)("span",{className:(0,t.cn)("truncate transition-[opacity,translate]",!u&&"opacity-0 translate-y-full pointer-events-none"),children:l[c]?.original.title})]}),(0,o.jsx)(q.ChevronDown,{className:(0,t.cn)("shrink-0 transition-transform mx-0.5",s&&"rotate-180")}
3)]})}function ee({value:e,strokeWidth:t=1.5,size:r=18,min:n=0,max:a=100,style:s,...i}){let l=e<n?n:e>a?a:e,c=r/2-t,d=2*Math.PI*c,u=l/a*d,f={cx:r/2,cy:r/2,r:c,fill:"none",strokeWidth:t};return(0,o.jsxs)("svg",{role:"progressbar",viewBox:`0 0 ${r} ${r}`,"aria-valuenow":l,"aria-valuemin":n,"aria-valuemax":a,style:{width:r,height:r,...s},...i,children:[(0,o.jsx)("circle",{...f,className:"stroke-current/25"}),(0,o.jsx)("circle",{...f,stroke:"currentColor",strokeDasharray:d,strokeDashoffset:d-u,strokeLinecap:"round",transform:`rotate(-90 ${r/2} ${r/2})`,className:"transition-all"})]})}function et(e){return(0,o.jsx)(U.CollapsibleContent,{"data-toc-popover-content":"",...e,children:(0,o.jsx)("div",{className:"flex flex-col px-4 max-h-[50vh] md:px-6",children:e.children})})}var er=e.i(989169);let en=new WeakMap;function ea(){let{root:e}=(0,n.useTreeContext)(),t=en.get(e);if(t)return t;let r=[];for(let t of e.children)!function e(t){if("folder"===t.type)for(let r of(t.index&&e(t.index),t.children))e(r);else"page"!==t.type||t.external||r.push(t)}(t);return en.set(e,r),r}var eo=e.i(125417);let es=(0,Y.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);function ei({items:e,children:r,className:n,...a}){let s=ea(),l=(0,eo.usePathname)(),{previous:c,next:d}=(0,i.useMemo)(()=>{if(e)return e;let t=s.findIndex(e=>(0,er.isActive)(e.url,l));return -1===t?{}:{previous:s[t-1],next:s[t+1]}},[s,e,l]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:(0,t.cn)("@container grid gap-4",c&&d?"grid-cols-2":"grid-cols-1",n),...a,children:[c&&(0,o.jsx)(el,{item:c,index:0}),d&&(0,o.jsx)(el,{item:d,index:1})]}),r]})}function el({item:e,index:r}){let n=(0,A.useTranslations)({note:"pagination"}),i=0===r?es:s.ChevronRight;return(0,o.jsxs)(a.default,{href:e.url,className:(0,t.cn)("flex flex-col gap-2 rounded-lg border p-4 text-sm transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground @max-lg:col-span-full",1===r&&"text-end"),children:[(0,o.jsxs)("div",{className:(0,t.cn)("inline-flex items-center gap-1.5 font-medium",1===r&&"flex-row-reverse"),children:[(0,o.jsx)(i,{className:"-mx-1 size-4 shrink-0 rtl:rotate-180"}),(0,o.jsx)("p",{children:e.name})]}),(0,o.jsx)("p",{className:"text-fd-muted-foreground truncate",children:e.description??n(0===r?"Previous Page":"Next Page")})]})}function ec(e){let{full:r}=ey();return(0,o.jsx)("article",{id:"nd-page","data-full":r,...e,className:(0,t.cn)("flex flex-col w-full max-w-[900px] mx-auto [grid-area:main] px-4 py-6 gap-4 md:px-6 md:pt-8 xl:px-8 xl:pt-14",r&&"max-w-[1168px]",e.className),children:e.children})}var ed=e.i(826611),eu=e.i(977878),ef=e.i(825957);let eh=(0,Y.default)("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"}]]);var ep=e.i(420744),ep=ep;let em=new Map;function ex({markdownUrl:e,...r}){let n=(0,A.useTranslations)({note:"page actions"}),[a,s]=(0,i.useState)(!1),[l,c]=(0,ed.useCopyButton)(async()=>{let t=em.get(e);if(t)return navigator.clipboard.writeText(await t);s(!0);try{let t=fetch(e).then(e=>e.text());em.set(e,t),await navigator.clipboard.write([new ClipboardItem({"text/plain":t})])}finally{s(!1)}});return(0,o.jsxs)("button",{disabled:a,onClick:c,...r,className:(0,t.cn)((0,u.buttonVariants)({color:"secondary",size:"sm",className:"gap-2 [&_svg]:size-3.5 [&_svg]:text-fd-muted-foreground"}),r.className),children:[l?(0,o.jsx)(ef.Check,{}):(0,o.jsx)(eh,{}),r.children??n("Copy Markdown")]})}function eg({markdownUrl:e,githubUrl:r,...n}){let a=(0,eo.usePathname)(),s=(0,A.useTranslations)({note:"page actions"}),l=(0,i.useMemo)(()=>{let t=s("Read {url}, I want to ask questions about it.",{variables:{url:String("u"<typeof window?a:new URL(a,window.location.origin))}});return[r&&{title:s("Open in GitHub"),href:r,icon:(0,o.jsxs)("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",children:[(0,o.jsx)("title",{children:"GitHub"}),(0,o.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]})},e&&{title:s("View as Markdown"),href:e,icon:(0,o.jsx)(X,{})},{title:s("Open in Scira AI"),href:`https://scira.ai/?${new URLSearchParams({q:t})}`,icon:(0,o.jsxs)("svg",{width:"910",height:"934",viewBox:"0 0 910 934",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("title",{children:"Scira AI"}),(0,o.jsx)("path",{d:"M647.664 197.775C569.13 189.049 525.5 145.419 516.774 66.8849C508.048 145.419 464.418 189.049 385.884 197.775C464.418 206.501 508.048 250.131 516.774 328.665C525.5 250.131 569.13 206.501 647.664 197.775Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"8",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M516.774 304.217C510.299 275.491 498.208 252.087 480.335 234.214C462.462 216.341 439.058 204.251 410.333 197.775C439.059 191.3 462.462 179.209 480.335 161.336C498.208 143.463 510.299 120.06 516.774 91.334C523.25 120.059 535.34 143.463 553.213 161.336C571.086 179.209 594.49 191.3 623.216 197.775C594.49 204.251 571.086 216.341 553.213 234.214C535.34 252.087 523.25 275.491 516.774 304.217Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"8",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M857.5 508.116C763.259 497.644 710.903 445.288 700.432 351.047C689.961 445.288 637.605 497.644 543.364 508.116C637.605 518.587 689.961 570.943 700.432 665.184C710.903 570.943 763.259 518.587 857.5 508.116Z",stroke:"currentColor",strokeWidth:"20",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M700.432 615.957C691.848 589.05 678.575 566.357 660.383 548.165C642.191 529.973 619.499 516.7 592.593 508.116C619.499 499.533 642.191 486.258 660.383 468.066C678.575 449.874 691.848 427.181 700.432 400.274C709.015 427.181 722.289 449.874 740.481 468.066C758.673 486.258 781.365 499.533 808.271 508.116C781.365 516.7 758.673 529.973 740.481 548.165C722.289 566.357 709.015 589.05 700.432 615.957Z",stroke:"currentColor",strokeWidth:"20",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M889.949 121.237C831.049 114.692 798.326 81.9698 791.782 23.0692C785.237 81.9698 752.515 114.692 693.614 121.237C752.515 127.781 785.237 160.504 791.782 219.404C798.326 160.504 831.049 127.781 889.949 121.237Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"8",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M791.782 196.795C786.697 176.937 777.869 160.567 765.16 147.858C752.452 135.15 736.082 126.322 716.226 121.237C736.082 116.152 752.452 107.324 765.16 94.6152C777.869 81.9065 786.697 65.5368 791.782 45.6797C796.867 65.5367 805.695 81.9066 818.403 94.6152C831.112 107.324 847.481 116.152 867.338 121.237C847.481 126.322 831.112 135.15 818.403 147.858C805.694 160.567 796.867 176.937 791.782 196.795Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"8",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M760.632 764.337C720.719 814.616 669.835 855.1 611.872 882.692C553.91 910.285 490.404 924.255 426.213 923.533C362.022 922.812 298.846 907.419 241.518 878.531C184.19 849.643 134.228 808.026 95.4548 756.863C56.6815 705.7 30.1238 646.346 17.8129 583.343C5.50207 520.339 7.76433 455.354 24.4266 393.359C41.089 331.364 71.7099 274.001 113.947 225.658C156.184 177.315 208.919 139.273 268.117 114.442",stroke:"currentColor",strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round"})]})},{title:s("Open in ChatGPT"),href:`https://chatgpt.com/?${new URLSearchParams({prompt:t,hints:"search"})}
3`,icon:(0,o.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("title",{children:"OpenAI"}),(0,o.jsx)("path",{d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"})]})},{title:s("Open in Claude"),href:`https://claude.ai/new?${new URLSearchParams({q:t})}`,icon:(0,o.jsxs)("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("title",{children:"Anthropic"}),(0,o.jsx)("path",{d:"M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"})]})},{title:s("Open in Cursor"),icon:(0,o.jsxs)("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("title",{children:"Cursor"}),(0,o.jsx)("path",{d:"M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23"})]}),href:`https://cursor.com/link/prompt?${new URLSearchParams({text:t})}`}].filter(e=>!!e)},[r,e,a,s]);return(0,o.jsxs)(eu.Popover,{children:[(0,o.jsxs)(eu.PopoverTrigger,{...n,className:(0,t.cn)((0,u.buttonVariants)({color:"secondary",size:"sm"}),"gap-2 data-[state=open]:bg-fd-accent data-[state=open]:text-fd-accent-foreground",n.className),children:[n.children??s("Open"),(0,o.jsx)(q.ChevronDown,{className:"size-3.5 text-fd-muted-foreground"})]}),(0,o.jsx)(eu.PopoverContent,{className:"flex flex-col",children:l.map(e=>(0,o.jsxs)("a",{href:e.href,rel:"noreferrer noopener",target:"_blank",className:"text-sm p-2 rounded-lg inline-flex items-center gap-2 hover:text-fd-accent-foreground hover:bg-fd-accent [&_svg]:size-4",children:[e.icon,e.title,(0,o.jsx)(ep.default,{className:"text-fd-muted-foreground size-3.5 ms-auto"})]},e.href))})]})}let ev=(0,Y.default)("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"}]]);var eb=(0,d.__exportAll)({DocsBody:()=>ek,DocsDescription:()=>eN,DocsPage:()=>ej,DocsTitle:()=>eS,EditOnGitHub:()=>eC,MarkdownCopyButton:()=>ex,PageBreadcrumb:()=>c,PageFooter:()=>ei,PageLastUpdate:()=>eP,ViewOptionsPopover:()=>eg,useDocsPage:()=>ey});let ew=(0,i.createContext)(null);function ey(){let e=(0,i.use)(ew);if(!e)throw Error("Please use page components under <DocsPage /> (`fumadocs-ui/layouts/docs/page`).");return e}function ej({full:e=!1,tableOfContent:{enabled:t=!e,single:r,...n}={},tableOfContentPopover:{enabled:a,...s}={},breadcrumb:{enabled:i=!0,...l}={},footer:{enabled:d=!0,...u}={},toc:f=[],slots:h={},children:p,...m}){a??=!!(f.length>0||s.header||s.footer);let x={breadcrumb:h.breadcrumb??c,footer:h.footer??ei,toc:h.toc??{provider:G,main:K,popover:J},container:h.container??ec};return(0,o.jsx)(ew,{value:{full:e,slots:x},children:(0,o.jsxs)(x.toc.provider,{single:r,toc:t||a?f:[],children:[a&&(s.component??(0,o.jsx)(x.toc.popover,{...s})),(0,o.jsxs)(x.container,{...m,children:[i&&(l.component??(0,o.jsx)(x.breadcrumb,{...l})),p,d&&(u.component??(0,o.jsx)(x.footer,{...u}))]}),t&&(n.component??(0,o.jsx)(x.toc.main,{...n}))]})})}function eC(e){let r=(0,A.useTranslations)({note:"edit page"});return(0,o.jsx)("a",{target:"_blank",rel:"noreferrer noopener",...e,className:(0,t.cn)((0,u.buttonVariants)({color:"secondary",size:"sm"}),"gap-1.5 not-prose",e.className),children:e.children??(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ev,{className:"size-3.5"}),r("Edit on GitHub")]})})}function ek({children:e,className:r,...n}){return(0,o.jsx)("div",{...n,className:(0,t.cn)("prose flex-1",r),children:e})}function eN({children:e,className:r,...n}){return void 0===e?null:(0,o.jsx)("p",{...n,className:(0,t.cn)("mb-8 text-lg text-fd-muted-foreground",r),children:e})}function eS({children:e,className:r,...n}){return(0,o.jsx)("h1",{...n,className:(0,t.cn)("text-[1.75em] font-semibold",r),children:e})}function eP({date:e,...r}){let n=(0,A.useTranslations)({note:"page footer"}),[a,s]=(0,i.useState)("");return(0,i.useEffect)(()=>{s(e.toLocaleDateString())},[e]),(0,o.jsxs)("p",{...r,className:(0,t.cn)("text-sm text-fd-muted-foreground",r.className),children:[n("Last updated on")," ",a]})}var eR=e.i(798777);e.i(424308),e.i(718853);
3var eT=e.i(76031),eE=e.i(116219),eL=e.i(227481);e.i(800656),e.i(91303),e.i(67331),(0,Y.default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);let eA=(0,e.i(294237).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:inset-s-2.5"}}});function eI(e){return`calc(${2+3*e} * var(--spacing))`}let{useSidebar:eM}=eT.base_exports;function eD(e){return(0,o.jsx)(eT.SidebarFolder,{...e})}function ez({className:e,style:r,children:n,...a}){let s=(0,eT.useFolderDepth)();return(0,o.jsx)(eT.SidebarItem,{className:(0,t.cn)(eA({variant:"link",highlight:s>=1}),e),style:{paddingInlineStart:eI(s),...r},...a,children:n})}function eO({className:e,style:r,...n}){let{depth:a,collapsible:s}=(0,eT.useFolder)();return(0,o.jsx)(eT.SidebarFolderTrigger,{className:(0,t.cn)(eA({variant:s?"button":null}),"w-full",e),style:{paddingInlineStart:eI(a-1),...r},...n,children:n.children})}function e$({className:e,style:r,...n}){let a=(0,eT.useFolderDepth)();return(0,o.jsx)(eT.SidebarFolderLink,{className:(0,t.cn)(eA({variant:"link",highlight:a>1}),"w-full",e),style:{paddingInlineStart:eI(a-1),...r},...n,children:n.children})}function eF({className:e,children:r,...n}){return(0,o.jsx)(eT.SidebarFolderContent,{className:(0,t.cn)("relative",1===(0,eT.useFolderDepth)()&&"before:content-[''] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:inset-s-2.5",e),...n,children:(0,o.jsx)("div",{className:"flex flex-col gap-0.5 pt-0.5",children:r})})}(0,eE.createPageTreeRenderer)({SidebarFolder:eD,SidebarFolderContent:eF,SidebarFolderLink:e$,SidebarFolderTrigger:eO,SidebarItem:ez,SidebarSeparator:function({className:e,style:r,children:n,...a}){let s=(0,eT.useFolderDepth)();return(0,o.jsx)(eT.SidebarSeparator,{className:(0,t.cn)("inline-flex items-center gap-2 mb-1.5 px-2 mt-6 empty:mb-0 [&_svg]:size-4 [&_svg]:shrink-0",0===s&&"first:mt-0",e),style:{paddingInlineStart:eI(s),...r},...a,children:n})}}),(0,eL.createLinkItemRenderer)({SidebarFolder:eD,SidebarFolderContent:eF,SidebarFolderLink:e$,SidebarFolderTrigger:eO,SidebarItem:ez}),e.i(423177);let{useProvider:e_}=(0,eR.baseSlots)({useProps:()=>eB().props}),eH=(0,i.createContext)(null);function eB(){let e=(0,i.use)(eH);if(!e)throw Error("Please use <DocsPage /> (`fumadocs-ui/layouts/notebook/page`) under <DocsLayout /> (`fumadocs-ui/layouts/notebook`).");return e}function eW(e){return(0,o.jsx)(E,{...e})}function eV({container:e,header:r,footer:n,style:a="normal",list:s}){let i=S(),l=(0,A.useTranslations)({note:"table of contents"}),{TOCItems:c,TOCEmpty:d,TOCItem:u}="clerk"===a?F:I;return 0!==i.length||n||r?(0,o.jsxs)("div",{id:"nd-toc",...e,className:(0,t.cn)("sticky top-(--fd-docs-row-3) [grid-area:toc] h-[calc(var(--fd-docs-height)-var(--fd-docs-row-3))] flex flex-col w-(--fd-toc-width) pt-12 pe-4 pb-2 xl:layout:[--fd-toc-width:268px] max-xl:hidden",e?.className),children:[r,(0,o.jsxs)("h3",{id:"toc-title",className:"inline-flex items-center gap-1.5 text-sm text-fd-muted-foreground",children:[(0,o.jsx)(X,{className:"size-4"}),l("On this page")]}),(0,o.jsx)(L,{children:(0,o.jsxs)(c,{...s,children:[0===i.length&&(0,o.jsx)(d,{}),i.map(e=>(0,o.jsx)(u,{item:e},e.url))]})}),n]}):(0,o.jsx)("div",{id:"nd-toc-placeholder",className:"hidden xl:layout:[--fd-toc-width:268px]"})}let eU=(0,i.createContext)(null);function eq({container:e,trigger:r,content:n,header:a,footer:s,style:l="normal",list:c}){let d=S(),u=(0,i.useRef)(null),[f,h]=(0,i.useState)(!1),{isNavTransparent:p}=eB(),{TOCItems:m,TOCItem:x,TOCEmpty:g}="clerk"===l?F:I,v=(0,i.useEffectEvent)(e=>{f&&e.target instanceof HTMLElement&&u.current&&!u.current.contains(e.target)&&h(!1)}),b=()=>{h(!1)};return(0,i.useEffect)(()=>(window.addEventListener("click",v),()=>{window.removeEventListener("click",v)}),[]),(0,o.jsx)(eU,{value:(0,i.useMemo)(()=>({open:f,setOpen:h}),[h,f]),children:(0,o.jsx)(U.Collapsible,{open:f,onOpenChange:h,"data-toc-popover":"",...e,className:(0,t.cn)("sticky top-(--fd-docs-row-2) z-10 [grid-area:toc-popover] h-(--fd-toc-popover-height) xl:hidden max-xl:layout:[--fd-toc-popover-height:--spacing(10)]",e?.className),children:(0,o.jsxs)("header",{ref:u,className:(0,t.cn)("border-b backdrop-blur-sm transition-colors",(!p||f)&&"bg-fd-background/80",f&&"shadow-lg"),children:[(0,o.jsx)(eY,{...r}),(0,o.jsxs)(eG,{...n,children:[a,(0,o.jsx)(L,{children:(0,o.jsxs)(m,{...c,children:[0===d.length&&(0,o.jsx)(g,{}),d.map(e=>(0,o.jsx)(x,{item:e,onClick:b},e.url))]})}),s]})]})})})}function eY({className:e,...r}){let a=(0,A.useTranslations)({note:"table of contents"}),{open:s}=(0,i.use)(eU),l=T(),c=l.findIndex(e=>e.active),d=(0,n.useTreePath)().at(-1),u=-1!==c&&!s;return(0,o.jsxs)(U.CollapsibleTrigger,{className:(0,t.cn)("flex w-full h-10 items-center text-sm text-fd-muted-foreground gap-2.5 px-4 py-2.5 text-start focus-visible:outline-none [&_svg]:size-4 md:px-6",e),"data-toc-popover-trigger":"",...r,children:[(0,o.jsx)(eX,{value:(l.findLastIndex(e=>e.active)+1)/Math.max(1,l.length),max:1,className:(0,t.cn)("shrink-0",s&&"text-fd-
3primary")}),(0,o.jsxs)("span",{className:"grid flex-1 *:my-auto *:row-start-1 *:col-start-1",children:[(0,o.jsx)("span",{className:(0,t.cn)("truncate transition-[opacity,translate,color]",s&&"text-fd-foreground",u&&"opacity-0 -translate-y-full pointer-events-none"),children:d?.name??a("On this page")}),(0,o.jsx)("span",{className:(0,t.cn)("truncate transition-[opacity,translate]",!u&&"opacity-0 translate-y-full pointer-events-none"),children:l[c]?.original.title})]}),(0,o.jsx)(q.ChevronDown,{className:(0,t.cn)("shrink-0 transition-transform mx-0.5",s&&"rotate-180")})]})}function eX({value:e,strokeWidth:t=1.5,size:r=18,min:n=0,max:a=100,style:s,...i}){let l=e<n?n:e>a?a:e,c=r/2-t,d=2*Math.PI*c,u=l/a*d,f={cx:r/2,cy:r/2,r:c,fill:"none",strokeWidth:t};return(0,o.jsxs)("svg",{role:"progressbar",viewBox:`0 0 ${r} ${r}`,"aria-valuenow":l,"aria-valuemin":n,"aria-valuemax":a,style:{width:r,height:r,...s},...i,children:[(0,o.jsx)("circle",{...f,className:"stroke-current/25"}),(0,o.jsx)("circle",{...f,stroke:"currentColor",strokeDasharray:d,strokeDashoffset:d-u,strokeLinecap:"round",transform:`rotate(-90 ${r/2} ${r/2})`,className:"transition-all"})]})}function eG(e){return(0,o.jsx)(U.CollapsibleContent,{"data-toc-popover-content":"",...e,children:(0,o.jsx)("div",{className:"flex flex-col px-4 max-h-[50vh] md:px-6",children:e.children})})}function eK({items:e,children:r,className:n,...a}){let s=ea(),l=(0,eo.usePathname)(),{previous:c,next:d}=(0,i.useMemo)(()=>{if(e)return e;let t=s.findIndex(e=>(0,er.isActive)(e.url,l));return -1===t?{}:{previous:s[t-1],next:s[t+1]}},[s,e,l]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:(0,t.cn)("@container grid gap-4",c&&d?"grid-cols-2":"grid-cols-1",n),...a,children:[c&&(0,o.jsx)(eZ,{item:c,index:0}),d&&(0,o.jsx)(eZ,{item:d,index:1})]}),r]})}function eZ({item:e,index:r}){let n=(0,A.useTranslations)({note:"pagination"}),i=0===r?es:s.ChevronRight;return(0,o.jsxs)(a.default,{href:e.url,className:(0,t.cn)("flex flex-col gap-2 rounded-lg border p-4 text-sm transition-colors hover:bg-fd-accent/80 hover:text-fd-accent-foreground @max-lg:col-span-full",1===r&&"text-end"),children:[(0,o.jsxs)("div",{className:(0,t.cn)("inline-flex items-center gap-1.5 font-medium",1===r&&"flex-row-reverse"),children:[(0,o.jsx)(i,{className:"-mx-1 size-4 shrink-0 rtl:rotate-180"}),(0,o.jsx)("p",{children:e.name})]}),(0,o.jsx)("p",{className:"text-fd-muted-foreground truncate",children:e.description??n(0===r?"Previous Page":"Next Page")})]})}function eJ({includeRoot:e,includeSeparator:r,includePage:c,...d}){let u=(0,n.useTreePath)(),{root:f}=(0,n.useTreeContext)(),h=(0,i.useMemo)(()=>(0,l.getBreadcrumbItemsFromPath)(f,u,{includePage:c,includeSeparator:r,includeRoot:e}),[c,e,r,u,f]);return 0===h.length?null:(0,o.jsx)("div",{...d,className:(0,t.cn)("flex items-center gap-1.5 text-sm text-fd-muted-foreground",d.className),children:h.map((e,r)=>{let n=(0,t.cn)("truncate",r===h.length-1&&"text-fd-primary font-medium");return(0,o.jsxs)(i.Fragment,{children:[0!==r&&(0,o.jsx)(s.ChevronRight,{className:"size-3.5 shrink-0"}),e.url?(0,o.jsx)(a.default,{href:e.url,className:(0,t.cn)(n,"transition-opacity hover:opacity-80"),children:e.name}):(0,o.jsx)("span",{className:n,children:e.name})]},r)})})}function eQ(e){let{full:r}=e2();return(0,o.jsx)("article",{id:"nd-page","data-full":r,...e,className:(0,t.cn)("flex flex-col [grid-area:main] px-4 py-6 gap-4 md:px-6 md:pt-8 xl:px-8 xl:pt-14 *:max-w-[900px]",r&&"*:max-w-[1285px]",e.className),children:e.children})}var e0=(0,d.__exportAll)({DocsBody:()=>e7,DocsDescription:()=>e8,DocsPage:()=>e5,DocsTitle:()=>e6,EditOnGitHub:()=>e4,MarkdownCopyButton:()=>ex,PageBreadcrumb:()=>eJ,PageFooter:()=>eK,PageLastUpdate:()=>e3,ViewOptionsPopover:()=>eg,useDocsPage:()=>e2});let e1=(0,i.createContext)(null);function e2(){let e=(0,i.use)(e1);if(!e)throw Error("Please use page components under <DocsPage /> (`fumadocs-ui/layouts/notebook/page`).");return e}function e5({full:e=!1,tableOfContent:{enabled:t=!e,single:r,...n}={},tableOfContentPopover:{enabled:a,...s}={},breadcrumb:{enabled:i=!0,...l}={},footer:{enabled:c=!0,...d}={},toc:u=[],slots:f={},children:h,...p}){a??=!!(u.length>0||s.header||s.footer);
3let m={breadcrumb:f.breadcrumb??eJ,footer:f.footer??eK,toc:f.toc??{provider:eW,main:eV,popover:eq},container:f.container??eQ};return(0,o.jsx)(e1,{value:{full:e,slots:m},children:(0,o.jsxs)(m.toc.provider,{single:r,toc:t||a?u:[],children:[a&&(s.component??(0,o.jsx)(m.toc.popover,{...s})),(0,o.jsxs)(m.container,{...p,children:[i&&(l.component??(0,o.jsx)(m.breadcrumb,{...l})),h,c&&(d.component??(0,o.jsx)(m.footer,{...d}))]}),t&&(n.component??(0,o.jsx)(m.toc.main,{...n}))]})})}function e4(e){let r=(0,A.useTranslations)({note:"edit page"});return(0,o.jsx)("a",{target:"_blank",rel:"noreferrer noopener",...e,className:(0,t.cn)((0,u.buttonVariants)({color:"secondary",size:"sm"}),"gap-1.5 not-prose",e.className),children:e.children??(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ev,{className:"size-3.5"}),r("Edit on GitHub")]})})}function e7({children:e,className:r,...n}){return(0,o.jsx)("div",{...n,className:(0,t.cn)("prose flex-1",r),children:e})}function e8({children:e,className:r,...n}){return void 0===e?null:(0,o.jsx)("p",{...n,className:(0,t.cn)("mb-8 text-lg text-fd-muted-foreground",r),children:e})}function e6({children:e,className:r,...n}){return(0,o.jsx)("h1",{...n,className:(0,t.cn)("text-[1.75em] font-semibold",r),children:e})}function e3({date:e,...r}){let n=(0,A.useTranslations)({note:"page footer"}),[a,s]=(0,i.useState)("");return(0,i.useEffect)(()=>{s(e.toLocaleDateString())},[e]),(0,o.jsxs)("p",{...r,className:(0,t.cn)("text-sm text-fd-muted-foreground",r.className),children:[n("Last updated on")," ",a]})}function e9(e){return(0,o.jsx)("main",{...e,className:(0,t.cn)("w-full max-w-[1400px] mx-auto px-4 py-12",e.className),children:(0,o.jsx)("article",{className:"prose",children:e.children})})}function te({lastUpdate:e,editOnGithub:t,children:n,...a}){let{DocsPage:s,EditOnGitHub:i,PageLastUpdate:l}=(0,r.useIsDocsLayout)()?eb:e0;return(0,o.jsxs)(s,{...a,children:[n,(0,o.jsxs)("div",{className:"flex flex-row flex-wrap items-center justify-between gap-4 empty:hidden",children:[t&&(0,o.jsx)(i,{href:`https://github.com/${t.owner}/${t.repo}/blob/${t.sha}/${t.path.startsWith("/")?t.path.slice(1):t.path}`}),e&&(0,o.jsx)(l,{date:new Date(e)})]})]})}e.s(["DocsPage",0,te,"withArticle",0,e9],533883),e.i(533883),e.s(["DocsBody",0,ek,"DocsDescription",0,eN,"DocsPage",0,te,"DocsTitle",0,eS,"EditOnGitHub",0,eC,"PageBreadcrumb",0,c,"PageLastUpdate",0,eP,"withArticle",0,e9],725658)},609780,e=>{"use strict";var t=e.i(788082),r=e.i(781307),n=e.i(826611),a=e.i(372169),o=e.i(282026);let s=(0,o.default)("copy-check",[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["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"}]]),i=(0,o.default)("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"}]]);var l=e.i(801917);e.s(["Heading",0,function({as:e,...o}){let c=e??"h1",d=(0,l.useTranslations)({note:"heading anchor"}),[u,f]=(0,n.useCopyButton)(()=>{if(!o.id)return;let e=new URL(window.location.href);return e.hash=o.id,navigator.clipboard.writeText(e.href)});return o.id?(0,a.jsxs)(c,{...o,className:(0,t.cn)("group/heading flex scroll-m-28 flex-row items-center gap-1",o.className),children:[(0,a.jsx)("a",{"data-card":"",href:`#${o.id}`,children:o.children}),(0,a.jsx)("button",{"aria-label":d("Copy Anchor Link",{note:"aria-label"}),className:(0,t.cn)((0,r.buttonVariants)({variant:"ghost",size:"icon-xs"}),"not-prose shrink-0 text-fd-muted-foreground opacity-0 transition-opacity group-hover/heading:opacity-100"),onClick:f,children:u?(0,a.jsx)(s,{}):(0,a.jsx)(i,{})})]}):(0,a.jsx)(c,{...o})}],609780)},113705,e=>{"use strict";var t=e.i(788082),r=e.i(781307),n=e.i(826611),a=e.i(876767),o=e.i(372169),s=e.i(730624),i=e.i(515201),l=e.i(350359),c=e.i(318551),d=e.i(267039),u=new WeakMap;function f(e,t){var r,n;let a,o,s;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let i=(r=e,n=t,a=r.length,(s=(o=h(n))>=0?o:a+o)<0||s>=a?-1:s);return -1===i?void 0:e[i]}function h(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],u.set(this,!0)}set(e,t){return u.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,a=this.has(t),o=this.#e.length,s=h(e),i=s>=0?s:o+s,l=i<0||i>=o?-1:i;if(l===this.size||a&&l===this.size-1||-1===l)return this.set(t,r),this;let c=this.size+ +!a;s<0&&i++;let d=[...this.#e],u=!1;for(let e=i;e<c;e++)if(i===e){let o=d[e];d[e]===t&&(o=d[e+1]),a&&this.delete(t),n=this.get(o),this.set(t,r)}else{u||d[e-1]!==t||(u=!0);let r=d[u?e:e-1],a=n;n=this.get(r),this.delete(r),this.set(r,a)}return this}with(t,r,n){let a=new e(this);return a.insert(t,r,n),a}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=f(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=f(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return f(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],a=0;for(let e of this)Reflect.apply(t,r,[e,a,this])&&n.push(e),a++;return new e(n)}map(t,r){let n=[],a=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,a,this])]),a++;return new e(n)}reduce(...e){let[t,r]=e,n=0,a=r??this.at(0);for(let r of this)a=0===n&&1===e.length?r:Reflect.apply(t,this,[a,r,n,this]),n++;return a}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let a=this.at(r);n=r===this.size-1&&1===e.length?a:Reflect.apply(t,this,[n,a,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,a=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(a=r-1);for(let e=t;e<=a;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}});var p=e.i(543559),m=e.i(774610),x=e.i(92596),g=e.i(892626),v=e.i(212
3121),b="rovingFocusGroup.onEntryFocus",w={bubbles:!1,cancelable:!0},y="RovingFocusGroup",[j,C,k]=function(e){let t=e+"CollectionProvider",[r,n]=(0,l.createContextScope)(t),[a,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),u=e=>{let{scope:t,children:r}=e,n=s.useRef(null),i=s.useRef(new Map).current;return(0,o.jsx)(a,{scope:t,itemMap:i,collectionRef:n,children:r})};u.displayName=t;let f=e+"CollectionSlot",h=(0,d.createSlot)(f),p=s.forwardRef((e,t)=>{let{scope:r,children:n}=e,a=i(f,r),s=(0,c.useComposedRefs)(t,a.collectionRef);return(0,o.jsx)(h,{ref:s,children:n})});p.displayName=f;let m=e+"CollectionItemSlot",x="data-radix-collection-item",g=(0,d.createSlot)(m),v=s.forwardRef((e,t)=>{let{scope:r,children:n,...a}=e,l=s.useRef(null),d=(0,c.useComposedRefs)(t,l),u=i(m,r);return s.useEffect(()=>(u.itemMap.set(l,{ref:l,...a}),()=>void u.itemMap.delete(l))),(0,o.jsx)(g,{...{[x]:""},ref:d,children:n})});return v.displayName=m,[{Provider:u,Slot:p,ItemSlot:v},function(t){let r=i(e+"CollectionConsumer",t);return s.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${x}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}(y),[N,S]=(0,l.createContextScope)(y,[k]),[P,R]=N(y),T=s.forwardRef((e,t)=>(0,o.jsx)(j.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,o.jsx)(j.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,o.jsx)(E,{...e,ref:t})})}));T.displayName=y;var E=s.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:a=!1,dir:l,currentTabStopId:d,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:f,onEntryFocus:h,preventScrollOnEntryFocus:p=!1,...j}=e,k=s.useRef(null),N=(0,c.useComposedRefs)(t,k),S=(0,v.useDirection)(l),[R,T]=(0,g.useControllableState)({prop:d,defaultProp:u??null,onChange:f,caller:y}),[E,L]=s.useState(!1),A=(0,x.useCallbackRef)(h),I=C(r),D=s.useRef(!1),[z,O]=s.useState(0);return s.useEffect(()=>{let e=k.current;if(e)return e.addEventListener(b,A),()=>e.removeEventListener(b,A)},[A]),(0,o.jsx)(P,{scope:r,orientation:n,dir:S,loop:a,currentTabStopId:R,onItemFocus:s.useCallback(e=>T(e),[T]),onItemShiftTab:s.useCallback(()=>L(!0),[]),onFocusableItemAdd:s.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:s.useCallback(()=>O(e=>e-1),[]),children:(0,o.jsx)(m.Primitive.div,{tabIndex:E||0===z?-1:0,"data-orientation":n,...j,ref:N,style:{outline:"none",...e.style},onMouseDown:(0,i.composeEventHandlers)(e.onMouseDown,()=>{D.current=!0}),onFocus:(0,i.composeEventHandlers)(e.onFocus,e=>{let t=!D.current;if(e.target===e.currentTarget&&t&&!E){let t=new CustomEvent(b,w);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=I().filter(e=>e.focusable);M([e.find(e=>e.active),e.find(e=>e.id===R),...e].filter(Boolean).map(e=>e.ref.current),p)}}D.current=!1}),onBlur:(0,i.composeEventHandlers)(e.onBlur,()=>L(!1))})})}),L="RovingFocusGroupItem",A=s.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:a=!1,tabStopId:l,children:c,...d}=e,u=(0,p.useId)(),f=l||u,h=R(L,r),x=h.currentTabStopId===f,g=C(r),{onFocusableItemAdd:v,onFocusableItemRemove:b,currentTabStopId:w}=h;return s.useEffect(()=>{if(n)return v(),()=>b()},[n,v,b]),(0,o.jsx)(j.ItemSlot,{scope:r,id:f,focusable:n,active:a,children:(0,o.jsx)(m.Primitive.span,{tabIndex:x?0:-1,"data-orientation":h.orientation,...d,ref:t,onMouseDown:(0,i.composeEventHandlers)(e.onMouseDown,e=>{n?h.onItemFocus(f):e.preventDefault()}),onFocus:(0,i.composeEventHandlers)(e.onFocus,()=>h.onItemFocus(f)),onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let a=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(a))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)))return I[a]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=g().filter(e=>
3e.focusable).map(e=>e.ref.current);if("last"===t)a.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&a.reverse();let o=a.indexOf(e.currentTarget);a=h.loop?(r=a,n=o+1,r.map((e,t)=>r[(n+t)%r.length])):a.slice(o+1)}setTimeout(()=>M(a))}}),children:"function"==typeof c?c({isCurrentTabStop:x,hasTabStop:null!=w}):c})})});A.displayName=L;var I={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function M(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var D=e.i(574115),z="Tabs",[O,$]=(0,l.createContextScope)(z,[S]),F=S(),[_,H]=O(z),B=s.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:a,defaultValue:s,orientation:i="horizontal",dir:l,activationMode:c="automatic",...d}=e,u=(0,v.useDirection)(l),[f,h]=(0,g.useControllableState)({prop:n,onChange:a,defaultProp:s??"",caller:z});return(0,o.jsx)(_,{scope:r,baseId:(0,p.useId)(),value:f,onValueChange:h,orientation:i,dir:u,activationMode:c,children:(0,o.jsx)(m.Primitive.div,{dir:u,"data-orientation":i,...d,ref:t})})});B.displayName=z;var W="TabsList",V=s.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...a}=e,s=H(W,r),i=F(r);return(0,o.jsx)(T,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:n,children:(0,o.jsx)(m.Primitive.div,{role:"tablist","aria-orientation":s.orientation,...a,ref:t})})});V.displayName=W;var U="TabsTrigger",q=s.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:a=!1,...s}=e,l=H(U,r),c=F(r),d=G(l.baseId,n),u=K(l.baseId,n),f=n===l.value;return(0,o.jsx)(A,{asChild:!0,...c,focusable:!a,active:f,children:(0,o.jsx)(m.Primitive.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:d,...s,ref:t,onMouseDown:(0,i.composeEventHandlers)(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(n)}),onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(n)}),onFocus:(0,i.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==l.activationMode;f||a||!e||l.onValueChange(n)})})})});q.displayName=U;var Y="TabsContent",X=s.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,forceMount:a,children:i,...l}=e,c=H(Y,r),d=G(c.baseId,n),u=K(c.baseId,n),f=n===c.value,h=s.useRef(f);return s.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,o.jsx)(D.Presence,{present:a||f,children:({present:r})=>(0,o.jsx)(m.Primitive.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!r,id:u,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:r&&i})})});function G(e,t){return`${e}-trigger-${t}`}function K(e,t){return`${e}-content-${t}`}X.displayName=Y;let Z=new Map,J=(0,s.createContext)(null);function Q({ref:e,groupId:t,persist:r=!1,updateAnchor:n=!1,defaultValue:i,value:l,onValueChange:c,...d}){let u=(0,s.useRef)(null),f=(0,s.useMemo)(()=>new Map,[]),[h,p]=void 0===l?(0,s.useState)(i):[l,(0,s.useEffectEvent)(e=>c?.(e))];return(0,s.useLayoutEffect)(()=>{if(!t)return;let e=sessionStorage.getItem(t);r&&(e??=localStorage.getItem(t)),e&&p(e);let n=Z.get(t)??new Set;return n.add(p),Z.set(t,n),()=>{n.delete(p)}},[t,r,p]),(0,s.useLayoutEffect)(()=>{let e=window.location.hash.slice(1);if(e){for(let[t,r]of f.entries())if(r===e){p(t),u.current?.scrollIntoView();break}}},[p,f]),(0,o.jsx)(B,{ref:(0,a.mergeRefs)(e,u),value:h,onValueChange:e=>{if(n){let t=f.get(e);t&&window.history.replaceState(null,"",`#${t}`)}if(t){let n=Z.get(t);if(n)for(let t of n)t(e);sessionStorage.setItem(t,e),r&&localStorage.setItem(t,e)}else p(e)},...d,children:(0,o.jsx)(J,{value:(0,s.useMemo)(()=>({valueToIdMap:f}),[f]),children:d.children})})}function ee({value:e,...t}){let{valueToIdMap:r}=function(){let e=(0,s.use)(J);if(!e)throw Error("You must wrap your component in <Tabs>");return e}();return t.id&&r.set(e,t.id),(0,o.jsx)(X,{value:e,...t,children:t.children})}var et=e.i(825957);
3let er=(0,e.i(282026).default)("clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["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:"116196"}]]);var en=e.i(801917);let ea=(0,s.createContext)(null);function eo({className:e,containerRef:a,...s}){let i=(0,en.useTranslations)({note:"code block"}),[l,c]=(0,n.useCopyButton)(()=>{let e=a.current?.getElementsByTagName("pre").item(0);if(!e)return;let t=e.cloneNode(!0);t.querySelectorAll(".nd-copy-ignore").forEach(e=>{e.replaceWith("\n")}),navigator.clipboard.writeText(t.textContent??"")});return(0,o.jsx)("button",{type:"button","data-checked":l||void 0,className:(0,t.cn)((0,r.buttonVariants)({className:"hover:text-fd-accent-foreground data-checked:text-fd-accent-foreground",size:"icon-xs"}),e),"aria-label":i(l?"Copied Text":"Copy Text",{note:"aria-label"}),onClick:c,...s,children:l?(0,o.jsx)(et.Check,{}):(0,o.jsx)(er,{})})}e.s(["CodeBlock",0,function({ref:e,title:r,allowCopy:n=!0,keepBackground:a=!1,icon:i,viewportProps:l={},children:c,Actions:d=e=>(0,o.jsx)("div",{...e,className:(0,t.cn)("empty:hidden",e.className)}),...u}){let f=null!==(0,s.use)(ea),h=(0,s.useRef)(null);return(0,o.jsxs)("figure",{ref:e,dir:"ltr",...u,tabIndex:-1,className:(0,t.cn)(f?"bg-fd-secondary -mx-px -mb-px last:rounded-b-xl":"my-4 bg-fd-card rounded-xl",a&&"bg-(--shiki-light-bg) dark:bg-(--shiki-dark-bg)","shiki relative border shadow-sm not-prose overflow-hidden text-sm",u.className),children:[r?(0,o.jsxs)("div",{className:"flex text-fd-muted-foreground items-center gap-2 h-9.5 border-b px-4",children:["string"==typeof i?(0,o.jsx)("div",{className:"[&_svg]:size-3.5",dangerouslySetInnerHTML:{__html:i}}):i,(0,o.jsx)("figcaption",{className:"flex-1 truncate",children:r}),d({className:"-me-2",children:n&&(0,o.jsx)(eo,{containerRef:h})})]}):d({className:"absolute top-3 right-2 z-2 backdrop-blur-lg rounded-lg text-fd-muted-foreground",children:n&&(0,o.jsx)(eo,{containerRef:h})}),(0,o.jsx)("div",{ref:h,...l,role:"region",tabIndex:0,className:(0,t.cn)("text-[0.8125rem] py-3.5 overflow-auto max-h-[600px] fd-scroll-container focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-fd-ring",l.className),style:{"--padding-right":r?void 0:"calc(var(--spacing) * 8)",counterSet:u["data-line-numbers"]?`line ${Number(u["data-line-numbers-start"]??1)-1}`:void 0,...l.style},children:c})]})},"CodeBlockTab",0,function(e){return(0,o.jsx)(ee,{...e})},"CodeBlockTabs",0,function({ref:e,...r}){let n=(0,s.useRef)(null),i=null!==(0,s.use)(ea);return(0,o.jsx)(Q,{ref:(0,a.mergeRefs)(n,e),...r,className:(0,t.cn)("bg-fd-card rounded-xl border",!i&&"my-4",r.className),children:(0,o.jsx)(ea,{value:(0,s.useMemo)(()=>({containerRef:n,nested:i}),[i]),children:r.children})})},"CodeBlockTabsList",0,function(e){return(0,o.jsx)(V,{...e,className:(0,t.cn)("flex flex-row px-2 overflow-x-auto text-fd-muted-foreground",e.className),children:e.children})},"CodeBlockTabsTrigger",0,function({children:e,...r}){return(0,o.jsxs)(q,{...r,className:(0,t.cn)("relative group inline-flex text-sm font-medium text-nowrap items-center transition-colors gap-2 px-2 py-1.5 hover:text-fd-accent-foreground data-[state=active]:text-fd-primary [&_svg]:size-3.5",r.className),children:[(0,o.jsx)("div",{className:"absolute inset-x-2 bottom-0 h-px group-data-[state=active]:bg-fd-primary"}),e]})},"Pre",0,function(e){return(0,o.jsx)("pre",{...e,className:(0,t.cn)("min-w-full w-max *:flex *:flex-col",e.className),children:e.children})}],113705)}]);

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.