1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,96369,178187,e=>{"use strict";var t=e.i(983137),r=e.i(506113),n=e.i(793811),s=e.i(292296),a=e.i(187484);let o=(0,n.createContext)([]),l=(0,n.createContext)({current:null});function i(){return(0,n.useContext)(o)}function c({containerRef:e,children:t}){return(0,s.jsx)(l.Provider,{value:e,children:t})}function d({toc:e,single:t=!1,children:r}){let a=(0,n.useMemo)(()=>e.map(e=>e.url.split("#")[1]),[e]);return(0,s.jsx)(o.Provider,{value:function(e,t){let r=(0,n.useRef)(null),[s,a]=(0,n.useState)(()=>[]),o=(0,n.useRef)(null),l=(0,n.useEffectEvent)(r=>{o.current??={visible:new Set};let n=o.current;for(let e of r)e.isIntersecting?n.visible.add(e.target.id):n.visible.delete(e.target.id);if(0===n.visible.size){let t,n=r.length>0?r[0]?.rootBounds?.top??0:0,s=-1;for(let r of e){let e=document.getElementById(r);if(!e)continue;let a=Math.abs(n-e.getBoundingClientRect().top);(-1===s||a<s)&&(t=e,s=a)}a(t?[t.id]:[])}else{let r=e.filter(e=>n.visible.has(e));a(t?r.slice(0,1):r)}});return(0,n.useEffect)(()=>{if(!r.current)return r.current=new IntersectionObserver(l,{rootMargin:"0px",threshold:.98}),()=>{r.current?.disconnect(),r.current=null}},[]),(0,n.useEffect)(()=>{let t=r.current;if(!t)return;let n=e.flatMap(e=>document.getElementById(e)??[]);for(let e of n)t.observe(e);return()=>{for(let e of n)t.unobserve(e)}},[e]),s}(a,t),children:r})}e.s(["AnchorProvider",0,d,"ScrollProvider",0,c,"TOCItem",0,function({ref:e,onActiveChange:t=()=>null,...r}){let o=(0,n.useContext)(l),c=(0,n.useRef)(null),d=i().indexOf(r.href.slice(1)),u=-1!==d,x=0===d,f=(0,n.useEffectEvent)(t);return(0,n.useLayoutEffect)(()=>{let e=c.current,t=o.current;t&&e&&x&&(0,a.default)(e,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:t})},[o,x]),(0,n.useEffect)(()=>()=>f(u),[u]),(0,s.jsx)("a",{ref:function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}(c,e),"data-active":u,...r,children:r.children})},"useActiveAnchor",0,function(){return(0,n.useContext)(o)[0]},"useActiveAnchors",0,i],178187);var u=e.i(510207);let x=(0,n.createContext)([]);function f(e,t){if(0===t.length||0===e.clientHeight)return[0,0];let r=Number.MAX_VALUE,n=0;for(let s of t){let t=e.querySelector(`a[href="#${s}"]`);if(!t)continue;let a=getComputedStyle(t);r=Math.min(r,t.offsetTop+parseFloat(a.paddingTop)),n=Math.max(n,t.offsetTop+t.clientHeight-parseFloat(a.paddingBottom))}return[r,n-r]}e.s(["TOCProvider",0,function({toc:e,children:t,...r}){return(0,s.jsx)(x,{value:e,children:(0,s.jsx)(d,{toc:e,...r,children:t})})},"TOCScrollArea",0,function({ref:e,className:a,...o}){let l=(0,n.useRef)(null);return(0,s.jsx)("div",{ref:(0,r.mergeRefs)(l,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",a),...o,children:(0,s.jsx)(c,{containerRef:l,children:o.children})})},"TocThumb",0,function({containerRef:e,...t}){let r=(0,n.useRef)(null),a=i();function o(e){let t=r.current;t&&(t.style.setProperty("--fd-top",`${e[0]}px`),t.style.setProperty("--fd-height",`${e[1]}px`))}let l=(0,n.useEffectEvent)(()=>{e.current&&o(f(e.current,a))});return(0,n.useEffect)(()=>{if(!e.current)return;let t=e.current,r=new ResizeObserver(l);return r.observe(t),()=>{r.disconnect()}},[e]),(0,u.useOnChange)(a,()=>{e.current&&o(f(e.current,a))}),(0,s.jsx)("div",{ref:r,"data-hidden":0===a.length,...t})},"useTOCItems",0,function(){return(0,n.use)(x)}],96369)},440978,736658,e=>{"use strict";var t=e.i(357925),r=e.i(983137),n=e.i(200066),s=e.i(506113),a=e.i(96369),o=e.i(793811),l=e.i(292296),i=e.i(178187);function c({item:e}){return(0,l.jsx)(i.TOCItem,{href:e.url,className:(0,r.cn)("prose py-1.5 text-sm text-fd-muted-foreground transition-colors wrap-anywhere first:pt-0 last:pb-0 data-[active=true]:text-fd-primary",e.depth<=2&&"ps-3",3===e.depth&&"ps-6",e.depth>=4&&"ps-8"),children:e.title})}e.s(["TOCItems",0,function({ref:e,className:t,...i}){let d=(0,o.useRef)(null),u=(0,a.useTOCItems)(),{text:x}=(0,n.useI18n)();return 0===u.length?(0,l.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:x.tocNoHeadings}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.TocThumb,{containerRef:d,className:"absolute top-(--fd-top) h-(--fd-height) w-0.5 rounded-e-sm bg-fd-primary transition-[top,height] ease-linear"}),(0,l.jsx)("div",{ref:(0,s.mergeRefs)(e,d),className:(0,r.cn)("flex flex-col border-s border-fd-foreground
1/10",t),...i,children:u.map(e=>(0,l.jsx)(c,{item:e},e.url))})]})}],736658);var d=e.i(736658),u={};(0,t.__reExport)(u,d),e.s(["default_exports",0,u],440978)},20900,e=>{"use strict";var t=e.i(357925),r=e.i(96369),n={};(0,t.__reExport)(n,r),e.s(["toc_exports",0,n])},985559,e=>{"use strict";e.i(399174),e.i(824595);var t=e.i(315120),r=e.i(785812),n=e.i(983137),s=e.i(292296),a=e.i(793811);e.i(748955);let o=(0,a.createContext)(null);var l=e.i(103573),i=e.i(689971),c=e.i(345e3),d=e.i(20900),u=e.i(619931),x=e.i(798751);let f=(0,x.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var p=e.i(696119),m=e.i(5720),h=e.i(410955),g=e.i(178187),v=e.i(33384);let j=new Map;function b(){let{root:e}=(0,v.useTreeContext)(),t=j.get(e.$id);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 j.set(e.$id,r),r}let y=(0,a.createContext)(null);function N({className:e,children:t,...r}){let l=(0,a.useRef)(null),[i,d]=(0,a.useState)(!1),{isNavTransparent:u}=(0,a.use)(o),x=(0,a.useEffectEvent)(e=>{i&&l.current&&!l.current.contains(e.target)&&d(!1)});return(0,a.useEffect)(()=>(window.addEventListener("click",x),()=>{window.removeEventListener("click",x)}),[]),(0,s.jsx)(y,{value:(0,a.useMemo)(()=>({open:i,setOpen:d}),[d,i]),children:(0,s.jsx)(c.Collapsible,{open:i,onOpenChange:d,"data-toc-popover":"",className:(0,n.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),...r,children:(0,s.jsx)("header",{ref:l,className:(0,n.cn)("border-b backdrop-blur-sm transition-colors",(!u||i)&&"bg-fd-background/80",i&&"shadow-lg"),children:t})})})}function w({className:e,...t}){let{text:r}=(0,l.i18n_exports.useI18n)(),{open:o}=(0,a.use)(y),x=(0,d.toc_exports.useTOCItems)(),f=(0,g.useActiveAnchor)(),p=(0,a.useMemo)(()=>x.findIndex(e=>f===e.url.slice(1)),[x,f]),m=(0,i.tree_exports.useTreePath)().at(-1),h=-1!==p&&!o;return(0,s.jsxs)(c.CollapsibleTrigger,{className:(0,n.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":"",...t,children:[(0,s.jsx)(C,{value:(p+1)/Math.max(1,x.length),max:1,className:(0,n.cn)("shrink-0",o&&"text-fd-primary")}),(0,s.jsxs)("span",{className:"grid flex-1 *:my-auto *:row-start-1 *:col-start-1",children:[(0,s.jsx)("span",{className:(0,n.cn)("truncate transition-[opacity,translate,color]",o&&"text-fd-foreground",h&&"opacity-0 -translate-y-full pointer-events-none"),children:m?.name??r.toc}),(0,s.jsx)("span",{className:(0,n.cn)("truncate transition-[opacity,translate]",!h&&"opacity-0 translate-y-full pointer-events-none"),children:x[p]?.title})]}),(0,s.jsx)(u.ChevronDown,{className:(0,n.cn)("shrink-0 transition-transform mx-0.5",o&&"rotate-180")})]})}function C({value:e,strokeWidth:t=2,size:r=24,min:n=0,max:a=100,...o}){let l=e<n?n:e>a?a:e,i=(r-t)/2,c=2*Math.PI*i,d=l/a*c,u={cx:r/2,cy:r/2,r:i,fill:"none",strokeWidth:t};return(0,s.jsxs)("svg",{role:"progressbar",viewBox:`0 0 ${r} ${r}`,"aria-valuenow":l,"aria-valuemin":n,"aria-valuemax":a,...o,children:[(0,s.jsx)("circle",{...u,className:"stroke-current/25"}),(0,s.jsx)("circle",{...u,stroke:"currentColor",strokeDasharray:c,strokeDashoffset:c-d,strokeLinecap:"round",transform:`rotate(-90 ${r/2} ${r/2})`,className:"transition-all"})]})}function T(e){return(0,s.jsx)(c.CollapsibleContent,{"data-toc-popover-content":"",...e,className:(0,n.cn)("flex flex-col px-4 max-h-[50vh] md:px-6",e.className),children:e.children})}function k({date:e,...t}){let{text:r}=(0,l.i18n_exports.useI18n)(),[o,i]=(0,a.useState)("");return(0,a.useEffect)(()=>{i(e.toLocaleDateString())},[e]),(0,s.jsxs)("p",{...t,className:(0,n.cn)("text-sm text-fd-muted-foreground",t.className),children:[r.lastUpdate," ",o]})}function _({items:e,children:t,className:o,...l}){let i=b(),c=(0,r.usePathname)(),{previous:d,next:u}=(0,a.useMemo)(()=>{if(e)return e;let t=i.findIndex(e=>(0,h.isActive)(e.url,c,!1));return -1===t?{}:{previous:i[t-1],next:i[t+1]}},[i,e,c]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:(0,n.cn)("@container grid gap-4",d&&u?"grid-cols-2":"grid-cols-1",o),...l,children:[d&&(0,s.jsx)(I,{item:d,index:0}),u&&(0,s.jsx)(I,{item:u,index:1})]}),t]})}function I({item:e,index:r}){let{text:a}=(0,l.i18n_exports.useI18n)(),o=0===r?f:p.ChevronRight;return(0,s.jsxs)(t.default,{href:e.url,className:(0,n.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,s.jsxs)("div",{className:(0,n.cn)("inline-flex items-center gap-1.5 font-medium",1===r&&"flex-row-reverse"),children:[(0,s.jsx)(o,{className:"-mx-1 size-4 shrink-0 rtl:rotate-180"}),(0,s.jsx)("p",{children:e.name})]}),(0,s.jsx)("p",{className:"text-fd-muted-foreground truncate",children:e.description??(0===r?a.previousPage:a.nextPage)})]})}function O({includeRoot:e,includeSeparator:r,includePage:o,...l}){let c=(0,i.tree_exports.useTreePath)(),{root:d}=(0,i.tree_exports.useTreeContext)(),u=(0,a.useMemo)(()=>(0,m.getBreadcrumbItemsFromPath)(d,c,{includePage:o,includeSeparator:r,includeRoot:e}),[o,e,r,c,d]);return 0===u.length?null:(0,s.jsx)("div",{...l,className:(0,n.cn)("flex items-center gap-1.5 text-sm text-fd-muted-foreground",l.className),children:u.map((e,r)=>
1{let o=(0,n.cn)("truncate",r===u.length-1&&"text-fd-primary font-medium");return(0,s.jsxs)(a.Fragment,{children:[0!==r&&(0,s.jsx)(p.ChevronRight,{className:"size-3.5 shrink-0"}),e.url?(0,s.jsx)(t.default,{href:e.url,className:(0,n.cn)(o,"transition-opacity hover:opacity-80"),children:e.name}):(0,s.jsx)("span",{className:o,children:e.name})]},r)})})}var P=e.i(357925),E=e.i(998240),M=e.i(440978),$=e.i(200066),D=e.i(506113),A=e.i(96369);function R(e){return 10*(e>=3)}function S({item:e,upper:t=e.depth,lower:r=e.depth}){var a;let o=R(e.depth),l=R(t),i=R(r);return(0,s.jsxs)(g.TOCItem,{href:e.url,style:{paddingInlineStart:(a=e.depth)<=2?14:3===a?26:36},className:"prose relative py-1.5 text-sm text-fd-muted-foreground hover:text-fd-accent-foreground transition-colors wrap-anywhere first:pt-0 last:pb-0 data-[active=true]:text-fd-primary",children:[o!==l&&(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",className:"absolute -top-1.5 start-0 size-4 rtl:-scale-x-100",children:(0,s.jsx)("line",{x1:l,y1:"0",x2:o,y2:"12",className:"stroke-fd-foreground/10",strokeWidth:"1"})}),(0,s.jsx)("div",{className:(0,n.cn)("absolute inset-y-0 w-px bg-fd-foreground/10",o!==l&&"top-1.5",o!==i&&"bottom-1.5"),style:{insetInlineStart:o}}),e.title]})}e.s(["TOCItems",0,function({ref:e,className:t,...r}){let o=(0,a.useRef)(null),l=(0,A.useTOCItems)(),{text:i}=(0,$.useI18n)(),[c,d]=(0,a.useState)();return((0,a.useEffect)(()=>{if(!o.current)return;let e=o.current;function t(){if(0===e.clientHeight)return;let t=0,r=0,n=[];for(let s=0;s<l.length;s++){let a=e.querySelector(`a[href="#${l[s].url.slice(1)}"]`);if(!a)continue;let o=getComputedStyle(a),i=R(l[s].depth)+1,c=a.offsetTop+parseFloat(o.paddingTop),d=a.offsetTop+a.clientHeight-parseFloat(o.paddingBottom);t=Math.max(i,t),r=Math.max(r,d),n.push(`${0===s?"M":"L"}${i} ${c}`),n.push(`L${i} ${d}`)}d({path:n.join(" "),width:t+1,height:r})}let r=new ResizeObserver(t);return t(),r.observe(e),()=>{r.disconnect()}},[l]),0===l.length)?(0,s.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:i.tocNoHeadings}):(0,s.jsxs)(s.Fragment,{children:[c&&(0,s.jsx)("div",{className:"absolute start-0 top-0 rtl:-scale-x-100",style:{width:c.width,height:c.height,maskImage:`url("data:image/svg+xml,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${c.width} ${c.height}"><path d="${c.path}" stroke="black" stroke-width="1" fill="none" /></svg>`)}")`},children:(0,s.jsx)(A.TocThumb,{containerRef:o,className:"absolute w-full top-(--fd-top) h-(--fd-height) bg-fd-primary transition-[top,height]"})}),(0,s.jsx)("div",{ref:(0,D.mergeRefs)(o,e),className:(0,n.cn)("flex flex-col",t),...r,children:l.map((e,t)=>(0,s.jsx)(S,{item:e,upper:l[t-1]?.depth,lower:l[t+1]?.depth},e.url))})]})}],114884);var z=e.i(114884),L={};(0,P.__reExport)(L,z);let B=(0,x.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"}]]),F=(0,x.default)("text-align-start",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]]);var H=(0,P.__exportAll)({DocsBody:()=>q,DocsDescription:()=>V,DocsPage:()=>U,DocsTitle:()=>K,EditOnGitHub:()=>G,PageBreadcrumb:()=>O,PageLastUpdate:()=>k});function U({breadcrumb:{enabled:e=!0,component:t,...r}={},footer:{enabled:a,component:o,...i}={},full:c=!1,tableOfContentPopover:{enabled:u,component:x,...f}={},tableOfContent:{enabled:p,component:m,...h}={},toc:g=[],children:v,className:j}){p??=!c&&(g.length>0||void 0!==h.footer||void 0!==h.header),u??=g.length>0||void 0!==f.header||void 0!==f.footer;let b=e=>e;return(p||u)&&(b=e=>(0,s.jsx)(d.toc_exports.TOCProvider,{single:h.single,toc:g,children:e})),b((0,s.jsxs)(s.Fragment,{children:[u&&(x??(0,s.jsxs)(N,{children:[(0,s.jsx)(w,{}),(0,s.jsxs)(T,{children:[f.header,(0,s.jsx)(d.toc_exports.TOCScrollArea,{children:"clerk"===f.style?(0,s.jsx)(L.TOCItems,{}):(0,s.jsx)(M.default_exports.TOCItems,{})}),f.footer]})]})),(0,s.jsxs)("article",{id:"nd-page","data-full":c,className:(0,n.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",c?"max-w-[1200px]":"xl:layout:[--fd-toc-width:268px]",j),children:[e&&(t??(0,s.jsx)(O,{...r})),v,!1!==a&&(o??(0,s.jsx)(_,{...i}))]}),p&&(m??(0,s.jsxs)("div",{id:"nd-toc",className:"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 max-xl:hidden",children:[h.header,(0,s.jsxs)("h3",{id:"toc-title",className:"inline-flex items-center gap-1.5 text-sm text-fd-muted-foreground",children:[(0,s.jsx)(F,{className:"size-4"}
1),(0,s.jsx)(l.i18n_exports.I18nLabel,{label:"toc"})]}),(0,s.jsx)(d.toc_exports.TOCScrollArea,{children:"clerk"===h.style?(0,s.jsx)(L.TOCItems,{}):(0,s.jsx)(M.default_exports.TOCItems,{})}),h.footer]}))]}))}function G(e){return(0,s.jsx)("a",{target:"_blank",rel:"noreferrer noopener",...e,className:(0,n.cn)((0,E.buttonVariants)({color:"secondary",size:"sm",className:"gap-1.5 not-prose"}),e.className),children:e.children??(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(B,{className:"size-3.5"}),(0,s.jsx)(l.i18n_exports.I18nLabel,{label:"editOnGithub"})]})})}function q({children:e,className:t,...r}){return(0,s.jsx)("div",{...r,className:(0,n.cn)("prose flex-1",t),children:e})}function V({children:e,className:t,...r}){return void 0===e?null:(0,s.jsx)("p",{...r,className:(0,n.cn)("mb-8 text-lg text-fd-muted-foreground",t),children:e})}function K({children:e,className:t,...r}){return(0,s.jsx)("h1",{...r,className:(0,n.cn)("text-[1.75em] font-semibold",t),children:e})}var W=e.i(742206);let X=(0,a.createContext)(null);function J({className:e,children:t,...r}){let o=(0,a.useRef)(null),[l,i]=(0,a.useState)(!1),{isNavTransparent:d}=(0,a.use)(W.LayoutContext),u=(0,a.useEffectEvent)(e=>{l&&o.current&&!o.current.contains(e.target)&&i(!1)});return(0,a.useEffect)(()=>(window.addEventListener("click",u),()=>{window.removeEventListener("click",u)}),[]),(0,s.jsx)(X,{value:(0,a.useMemo)(()=>({open:l,setOpen:i}),[i,l]),children:(0,s.jsx)(c.Collapsible,{open:l,onOpenChange:i,"data-toc-popover":"",className:(0,n.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),...r,children:(0,s.jsx)("header",{ref:o,className:(0,n.cn)("border-b backdrop-blur-sm transition-colors",(!d||l)&&"bg-fd-background/80",l&&"shadow-lg"),children:t})})})}function Q({className:e,...t}){let{text:r}=(0,l.i18n_exports.useI18n)(),{open:o}=(0,a.use)(X),x=(0,d.toc_exports.useTOCItems)(),f=(0,g.useActiveAnchor)(),p=(0,a.useMemo)(()=>x.findIndex(e=>f===e.url.slice(1)),[x,f]),m=(0,i.tree_exports.useTreePath)().at(-1),h=-1!==p&&!o;return(0,s.jsxs)(c.CollapsibleTrigger,{className:(0,n.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":"",...t,children:[(0,s.jsx)(Y,{value:(p+1)/Math.max(1,x.length),max:1,className:(0,n.cn)("shrink-0",o&&"text-fd-primary")}),(0,s.jsxs)("span",{className:"grid flex-1 *:my-auto *:row-start-1 *:col-start-1",children:[(0,s.jsx)("span",{className:(0,n.cn)("truncate transition-[opacity,translate,color]",o&&"text-fd-foreground",h&&"opacity-0 -translate-y-full pointer-events-none"),children:m?.name??r.toc}),(0,s.jsx)("span",{className:(0,n.cn)("truncate transition-[opacity,translate]",!h&&"opacity-0 translate-y-full pointer-events-none"),children:x[p]?.title})]}),(0,s.jsx)(u.ChevronDown,{className:(0,n.cn)("shrink-0 transition-transform mx-0.5",o&&"rotate-180")})]})}function Y({value:e,strokeWidth:t=2,size:r=24,min:n=0,max:a=100,...o}){let l=e<n?n:e>a?a:e,i=(r-t)/2,c=2*Math.PI*i,d=l/a*c,u={cx:r/2,cy:r/2,r:i,fill:"none",strokeWidth:t};return(0,s.jsxs)("svg",{role:"progressbar",viewBox:`0 0 ${r} ${r}`,"aria-valuenow":l,"aria-valuemin":n,"aria-valuemax":a,...o,children:[(0,s.jsx)("circle",{...u,className:"stroke-current/25"}),(0,s.jsx)("circle",{...u,stroke:"currentColor",strokeDasharray:c,strokeDashoffset:c-d,strokeLinecap:"round",transform:`rotate(-90 ${r/2} ${r/2})`,className:"transition-all"})]})}function Z(e){return(0,s.jsx)(c.CollapsibleContent,{"data-toc-popover-content":"",...e,className:(0,n.cn)("flex flex-col px-4 max-h-[50vh] md:px-6",e.className),children:e.children})}function ee({date:e,...t}){let{text:r}=(0,l.i18n_exports.useI18n)(),[o,i]=(0,a.useState)("");return(0,a.useEffect)(()=>{i(e.toLocaleDateString())},[e]),(0,s.jsxs)("p",{...t,className:(0,n.cn)("text-sm text-fd-muted-foreground",t.className),children:[r.lastUpdate," ",o]})}function et({items:e,children:t,className:o,...l}){let i=b(),c=(0,r.usePathname)(),{previous:d,next:u}=(0,a.useMemo)(()=>
1{if(e)return e;let t=i.findIndex(e=>(0,h.isActive)(e.url,c,!1));return -1===t?{}:{previous:i[t-1],next:i[t+1]}},[i,e,c]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:(0,n.cn)("@container grid gap-4",d&&u?"grid-cols-2":"grid-cols-1",o),...l,children:[d&&(0,s.jsx)(er,{item:d,index:0}),u&&(0,s.jsx)(er,{item:u,index:1})]}),t]})}function er({item:e,index:r}){let{text:a}=(0,l.i18n_exports.useI18n)(),o=0===r?f:p.ChevronRight;return(0,s.jsxs)(t.default,{href:e.url,className:(0,n.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,s.jsxs)("div",{className:(0,n.cn)("inline-flex items-center gap-1.5 font-medium",1===r&&"flex-row-reverse"),children:[(0,s.jsx)(o,{className:"-mx-1 size-4 shrink-0 rtl:rotate-180"}),(0,s.jsx)("p",{children:e.name})]}),(0,s.jsx)("p",{className:"text-fd-muted-foreground truncate",children:e.description??(0===r?a.previousPage:a.nextPage)})]})}function en({includeRoot:e,includeSeparator:r,includePage:o,...l}){let c=(0,i.tree_exports.useTreePath)(),{root:d}=(0,i.tree_exports.useTreeContext)(),u=(0,a.useMemo)(()=>(0,m.getBreadcrumbItemsFromPath)(d,c,{includePage:o,includeSeparator:r,includeRoot:e}),[o,e,r,c,d]);return 0===u.length?null:(0,s.jsx)("div",{...l,className:(0,n.cn)("flex items-center gap-1.5 text-sm text-fd-muted-foreground",l.className),children:u.map((e,r)=>{let o=(0,n.cn)("truncate",r===u.length-1&&"text-fd-primary font-medium");return(0,s.jsxs)(a.Fragment,{children:[0!==r&&(0,s.jsx)(p.ChevronRight,{className:"size-3.5 shrink-0"}),e.url?(0,s.jsx)(t.default,{href:e.url,className:(0,n.cn)(o,"transition-opacity hover:opacity-80"),children:e.name}):(0,s.jsx)("span",{className:o,children:e.name})]},r)})})}var es=(0,P.__exportAll)({DocsBody:()=>el,DocsDescription:()=>ei,DocsPage:()=>ea,DocsTitle:()=>ec,EditOnGitHub:()=>eo,PageBreadcrumb:()=>en,PageLastUpdate:()=>ee});function ea({breadcrumb:{enabled:e=!0,component:t,...r}={},footer:{enabled:a,component:o,...i}={},full:c=!1,tableOfContentPopover:{enabled:u,component:x,...f}={},tableOfContent:{enabled:p,component:m,...h}={},toc:g=[],children:v,className:j}){p??=!c&&(g.length>0||void 0!==h.footer||void 0!==h.header),u??=g.length>0||void 0!==f.header||void 0!==f.footer;let b=e=>e;return(p||u)&&(b=e=>(0,s.jsx)(d.toc_exports.TOCProvider,{single:h.single,toc:g,children:e})),b((0,s.jsxs)(s.Fragment,{children:[u&&(x??(0,s.jsxs)(J,{children:[(0,s.jsx)(Q,{}),(0,s.jsxs)(Z,{children:[f.header,(0,s.jsx)(d.toc_exports.TOCScrollArea,{children:"clerk"===f.style?(0,s.jsx)(L.TOCItems,{}):(0,s.jsx)(M.default_exports.TOCItems,{})}),f.footer]})]})),(0,s.jsxs)("article",{id:"nd-page","data-full":c,className:(0,n.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]",c&&"*:max-w-[1285px]",j),children:[e&&(t??(0,s.jsx)(en,{...r})),v,!1!==a&&(o??(0,s.jsx)(et,{...i}))]}),p&&(m??(0,s.jsxs)("div",{id:"nd-toc",className:"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",children:[h.header,(0,s.jsxs)("h3",{id:"toc-title",className:"inline-flex items-center gap-1.5 text-sm text-fd-muted-foreground",children:[(0,s.jsx)(F,{className:"size-4"}
1),(0,s.jsx)(l.i18n_exports.I18nLabel,{label:"toc"})]}),(0,s.jsx)(d.toc_exports.TOCScrollArea,{children:"clerk"===h.style?(0,s.jsx)(L.TOCItems,{}):(0,s.jsx)(M.default_exports.TOCItems,{})}),h.footer]}))]}))}function eo(e){return(0,s.jsx)("a",{target:"_blank",rel:"noreferrer noopener",...e,className:(0,n.cn)((0,E.buttonVariants)({color:"secondary",size:"sm",className:"gap-1.5 not-prose"}),e.className),children:e.children??(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(B,{className:"size-3.5"}),(0,s.jsx)(l.i18n_exports.I18nLabel,{label:"editOnGithub"})]})})}function el({children:e,className:t,...r}){return(0,s.jsx)("div",{...r,className:(0,n.cn)("prose flex-1",t),children:e})}function ei({children:e,className:t,...r}){return void 0===e?null:(0,s.jsx)("p",{...r,className:(0,n.cn)("mb-8 text-lg text-fd-muted-foreground",t),children:e})}function ec({children:e,className:t,...r}){return(0,s.jsx)("h1",{...r,className:(0,n.cn)("text-[1.75em] font-semibold",t),children:e})}function ed(e){return(0,s.jsx)("main",{...e,className:(0,n.cn)("w-full max-w-[1400px] mx-auto px-4 py-12",e.className),children:(0,s.jsx)("article",{className:"prose",children:e.children})})}function eu({lastUpdate:e,editOnGithub:t,children:r,...n}){let{DocsPage:l,EditOnGitHub:i,PageLastUpdate:c}=(0,a.use)(o)?H:es;return(0,s.jsxs)(l,{...n,children:[r,(0,s.jsxs)("div",{className:"flex flex-row flex-wrap items-center justify-between gap-4 empty:hidden",children:[t&&(0,s.jsx)(i,{href:`https://github.com/${t.owner}/${t.repo}/blob/${t.sha}/${t.path.startsWith("/")?t.path.slice(1):t.path}`}),e&&(0,s.jsx)(c,{date:new Date(e)})]})]})}e.s(["DocsPage",0,eu,"withArticle",0,ed],231003),e.i(231003),e.s(["DocsBody",0,q,"DocsDescription",0,V,"DocsPage",0,eu,"DocsTitle",0,K,"EditOnGitHub",0,G,"PageBreadcrumb",0,O,"PageLastUpdate",0,k,"withArticle",0,ed],985559)},696119,e=>{"use strict";let t=(0,e.i(798751).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],696119)}]);
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.