PageSourceSearch

https://aura-stack-auth.vercel.app/_next/static/chunks/0v6r103ip5zzl.js

js aura-stack-auth.vercel.app collected 2026-10-03 06:09:05 UTC 70,768 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,243796,e=>{"use strict";var t=e.i(335718);e.s(["useCopyButton",0,function(e){let[r,n]=(0,t.useState)(!1),s=(0,t.useRef)(e),a=(0,t.useRef)(null);s.current=e;let o=(0,t.useCallback)(()=>{a.current&&window.clearTimeout(a.current),Promise.resolve(s.current()).then(()=>{n(!0),a.current=window.setTimeout(()=>{n(!1)},1500)})},[]);return(0,t.useEffect)(()=>()=>{a.current&&window.clearTimeout(a.current)},[]),[r,o]}])},530815,e=>{"use strict";var t=e.i(972395),r=e.i(594809),n=e.i(10933),s=e.i(537695),a=e.i(852366),o=e.i(393347),i=e.i(818636),l=e.i(335718),c=e.i(428184),d=e.i(187484);let u=(0,l.createContext)([]),f=(0,l.createContext)({current:null});function h(){return(0,l.useContext)(u)[0]}function x(){return(0,l.useContext)(u)}function p({containerRef:e,children:t}){return(0,c.jsx)(f.Provider,{value:e,children:t})}function m({toc:e,single:t=!1,children:r}){let n=(0,l.useMemo)(()=>e.map(e=>e.url.split("#")[1]),[e]);return(0,c.jsx)(u.Provider,{value:function(e,t){let r=(0,l.useRef)(null),[n,s]=(0,l.useState)(()=>[]),a=(0,l.useRef)(null),o=(0,l.useEffectEvent)(r=>{a.current??={visible:new Set};let n=a.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,a=-1;for(let r of e){let e=document.getElementById(r);if(!e)continue;let s=Math.abs(n-e.getBoundingClientRect().top);(-1===a||s<a)&&(t=e,a=s)}s(t?[t.id]:[])}else{let r=e.filter(e=>n.visible.has(e));s(t?r.slice(0,1):r)}});return(0,l.useEffect)(()=>{if(!r.current)return r.current=new IntersectionObserver(o,{rootMargin:"0px",threshold:.98}),()=>{r.current?.disconnect(),r.current=null}},[]),(0,l.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]),n}(n,t),children:r})}function g({ref:e,onActiveChange:t=()=>null,...r}){let n=(0,l.useContext)(f),s=(0,l.useRef)(null),a=x().indexOf(r.href.slice(1)),o=-1!==a,i=0===a,u=(0,l.useEffectEvent)(t);return(0,l.useLayoutEffect)(()=>{let e=s.current,t=n.current;t&&e&&i&&(0,d.default)(e,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:t})},[n,i]),(0,l.useEffect)(()=>()=>u(o),[o]),(0,c.jsx)("a",{ref:function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}(s,e),"data-active":o,...r,children:r.children})}var v=e.i(56158);let j=(0,l.createContext)([]);function b(){return(0,l.use)(j)}function w({toc:e,children:t,...r}){return(0,c.jsx)(j,{value:e,children:(0,c.jsx)(m,{toc:e,...r,children:t})})}function y({ref:e,className:r,...n}){let s=(0,l.useRef)(null);return(0,c.jsx)("div",{ref:(0,i.mergeRefs)(s,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,c.jsx)(p,{containerRef:s,children:n.children})})}function C({containerRef:e,...t}){let r=(0,l.useRef)(null),n=x();function s(e){let t=r.current;t&&(t.style.setProperty("--fd-top",`${e[0]}px`),t.style.setProperty("--fd-height",`${e[1]}px`))}let a=(0,l.useEffectEvent)(()=>{e.current&&s(k(e.current,n))});return(0,l.useEffect)(()=>{if(!e.current)return;let t=e.current,r=new ResizeObserver(a);return r.observe(t),()=>{r.disconnect()}},[e]),(0,v.useOnChange)(n,()=>{e.current&&s(k(e.current,n))}),(0,c.jsx)("div",{ref:r,"data-hidden":0===n.length,...t})}function k(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]}let N=new Map;function M(){let{root:e}=(0,s.useTreeContext)(),t=N.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 N.set(e.$id,r),r}var R=e.i(430301),T=e.i(4665),L=e.i(49102),I=e.i(540796);let S=(0,I.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var A=e.i(838408),z=e.i(897641);let P=(0,l.createContext)(null);function E({className:e,children:n,...s}){let a=(0,l.useRef)(null),[i,d]=(0,l.useState)(!1),{isNavTransparent:u}=(0,r.useDocsLayout)(),f=(0,l.useEffectEvent)(e=>{i&&a.current&&!a.current.contains(e.target)&&d(!1)});return(0,l.useEffect)(()=>(window.addEventListener("click",f),()=>{window.removeEventListener("click",f)}),[]),(0,c.jsx)(P,{value:(0,l.useMemo)(()=>({open:i,setOpen:d}),[d,i]),children:(0,c.jsx)(o.Collapsible,{open:i,onOpenChange:d,"data-toc-popover":"",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),...s,children:(0,c.jsx)("header",{ref:a,className:(0,t.cn)("border-b backdrop-blur-sm transition-colors",(!u||i)&&"bg-fd-background/80",i&&"shadow-lg"),children:n})})})}function O({className:e,...r}){let{text:a}=(0,n.useI18n)(),{open:i}=(0,l.use)(P),d=b(),u=h(),f=(0,l.useMemo)(()=>d.findIndex(e=>u===e.url.slice(1)),[d,u]),x=(0,s.useTreePath)().at(-1),p=-1!==f&&!i;return(0,c.jsxs)(o.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,c.jsx)(D,{value:(f+1)/Math.max(1,d.length),max:1,className:(0,t.cn)("shrink-0",i&&"text-fd-
1primary")}),(0,c.jsxs)("span",{className:"grid flex-1 *:my-auto *:row-start-1 *:col-start-1",children:[(0,c.jsx)("span",{className:(0,t.cn)("truncate transition-[opacity,translate,color]",i&&"text-fd-foreground",p&&"opacity-0 -translate-y-full pointer-events-none"),children:x?.name??a.toc}),(0,c.jsx)("span",{className:(0,t.cn)("truncate transition-[opacity,translate]",!p&&"opacity-0 translate-y-full pointer-events-none"),children:d[f]?.title})]}),(0,c.jsx)(L.ChevronDown,{className:(0,t.cn)("shrink-0 transition-transform mx-0.5",i&&"rotate-180")})]})}function D({value:e,strokeWidth:t=2,size:r=24,min:n=0,max:s=100,...a}){let o=e<n?n:e>s?s:e,i=(r-t)/2,l=2*Math.PI*i,d=o/s*l,u={cx:r/2,cy:r/2,r:i,fill:"none",strokeWidth:t};return(0,c.jsxs)("svg",{role:"progressbar",viewBox:`0 0 ${r} ${r}`,"aria-valuenow":o,"aria-valuemin":n,"aria-valuemax":s,...a,children:[(0,c.jsx)("circle",{...u,className:"stroke-current/25"}),(0,c.jsx)("circle",{...u,stroke:"currentColor",strokeDasharray:l,strokeDashoffset:l-d,strokeLinecap:"round",transform:`rotate(-90 ${r/2} ${r/2})`,className:"transition-all"})]})}function $(e){return(0,c.jsx)(o.CollapsibleContent,{"data-toc-popover-content":"",...e,className:(0,t.cn)("flex flex-col px-4 max-h-[50vh] md:px-6",e.className),children:e.children})}function B({date:e,...r}){let{text:s}=(0,n.useI18n)(),[a,o]=(0,l.useState)("");return(0,l.useEffect)(()=>{o(e.toLocaleDateString())},[e]),(0,c.jsxs)("p",{...r,className:(0,t.cn)("text-sm text-fd-muted-foreground",r.className),children:[s.lastUpdate," ",a]})}function F({items:e,children:r,className:n,...s}){let o=M(),i=(0,R.usePathname)(),{previous:d,next:u}=(0,l.useMemo)(()=>{if(e)return e;let t=o.findIndex(e=>(0,a.isActive)(e.url,i));return -1===t?{}:{previous:o[t-1],next:o[t+1]}},[o,e,i]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:(0,t.cn)("@container grid gap-4",d&&u?"grid-cols-2":"grid-cols-1",n),...s,children:[d&&(0,c.jsx)(H,{item:d,index:0}),u&&(0,c.jsx)(H,{item:u,index:1})]}),r]})}function H({item:e,index:r}){let{text:s}=(0,n.useI18n)(),a=0===r?S:A.ChevronRight;return(0,c.jsxs)(T.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,c.jsxs)("div",{className:(0,t.cn)("inline-flex items-center gap-1.5 font-medium",1===r&&"flex-row-reverse"),children:[(0,c.jsx)(a,{className:"-mx-1 size-4 shrink-0 rtl:rotate-180"}),(0,c.jsx)("p",{children:e.name})]}),(0,c.jsx)("p",{className:"text-fd-muted-foreground truncate",children:e.description??(0===r?s.previousPage:s.nextPage)})]})}function _({includeRoot:e,includeSeparator:r,includePage:n,...a}){let o=(0,s.useTreePath)(),{root:i}=(0,s.useTreeContext)(),d=(0,l.useMemo)(()=>(0,z.getBreadcrumbItemsFromPath)(i,o,{includePage:n,includeSeparator:r,includeRoot:e}),[n,e,r,o,i]);return 0===d.length?null:(0,c.jsx)("div",{...a,className:(0,t.cn)("flex items-center gap-1.5 text-sm text-fd-muted-foreground",a.className),children:d.map((e,r)=>{let n=(0,t.cn)("truncate",r===d.length-1&&"text-fd-primary font-medium");return(0,c.jsxs)(l.Fragment,{children:[0!==r&&(0,c.jsx)(A.ChevronRight,{className:"size-3.5 shrink-0"}),e.url?(0,c.jsx)(T.default,{href:e.url,className:(0,t.cn)(n,"transition-opacity hover:opacity-80"),children:e.name}):(0,c.jsx)("span",{className:n,children:e.name})]},r)})})}var V=Object.defineProperty,U=(e,t)=>{let r={};for(var n in e)V(r,n,{get:e[n],enumerable:!0});return t||V(r,Symbol.toStringTag,{value:"Module"}),r},Z=e.i(130581);function W({ref:e,className:r,...s}){let a=(0,l.useRef)(null),o=b(),{text:d}=(0,n.useI18n)();return 0===o.length?(0,c.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:d.tocNoHeadings}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(C,{containerRef:a,className:"absolute top-(--fd-top) h-(--fd-height) w-0.5 rounded-e-sm bg-fd-primary transition-[top,height] ease-linear"}),(0,c.jsx)("div",{ref:(0,i.mergeRefs)(e,a),className:(0,t.cn)("flex flex-col border-s border-fd-foreground
1/10",r),...s,children:o.map(e=>(0,c.jsx)(G,{item:e},e.url))})]})}function G({item:e}){return(0,c.jsx)(g,{href:e.url,className:(0,t.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})}function K({ref:e,className:r,...s}){let a=(0,l.useRef)(null),o=b(),{text:d}=(0,n.useI18n)(),[u,f]=(0,l.useState)();return((0,l.useEffect)(()=>{if(!a.current)return;let e=a.current;function t(){if(0===e.clientHeight)return;let t=0,r=0,n=[];for(let s=0;s<o.length;s++){let a=e.querySelector(`a[href="#${o[s].url.slice(1)}"]`);if(!a)continue;let i=getComputedStyle(a),l=q(o[s].depth)+1,c=a.offsetTop+parseFloat(i.paddingTop),d=a.offsetTop+a.clientHeight-parseFloat(i.paddingBottom);t=Math.max(l,t),r=Math.max(r,d),n.push(`${0===s?"M":"L"}${l} ${c}`),n.push(`L${l} ${d}`)}f({path:n.join(" "),width:t+1,height:r})}let r=new ResizeObserver(t);return t(),r.observe(e),()=>{r.disconnect()}},[o]),0===o.length)?(0,c.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:d.tocNoHeadings}):(0,c.jsxs)(c.Fragment,{children:[u&&(0,c.jsx)("div",{className:"absolute start-0 top-0 rtl:-scale-x-100",style:{width:u.width,height:u.height,maskImage:`url("data:image/svg+xml,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${u.width} ${u.height}"><path d="${u.path}" stroke="black" stroke-width="1" fill="none" /></svg>`)}")`},children:(0,c.jsx)(C,{containerRef:a,className:"absolute w-full top-(--fd-top) h-(--fd-height) bg-fd-primary transition-[top,height]"})}),(0,c.jsx)("div",{ref:(0,i.mergeRefs)(a,e),className:(0,t.cn)("flex flex-col",r),...s,children:o.map((e,t)=>(0,c.jsx)(Y,{item:e,upper:o[t-1]?.depth,lower:o[t+1]?.depth},e.url))})]})}function q(e){return 10*(e>=3)}function Y({item:e,upper:r=e.depth,lower:n=e.depth}){var s;let a=q(e.depth),o=q(r),i=q(n);return(0,c.jsxs)(g,{href:e.url,style:{paddingInlineStart:(s=e.depth)<=2?14:3===s?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:[a!==o&&(0,c.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,c.jsx)("line",{x1:o,y1:"0",x2:a,y2:"12",className:"stroke-fd-foreground/10",strokeWidth:"1"})}),(0,c.jsx)("div",{className:(0,t.cn)("absolute inset-y-0 w-px bg-fd-foreground/10",a!==o&&"top-1.5",a!==i&&"bottom-1.5"),style:{insetInlineStart:a}}),e.title]})}var X=e.i(243796),J=e.i(184434),Q=e.i(985087);let ee=(0,I.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 et=e.i(487464),et=et;let er=(0,I.default)("text-align-start",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]]),en=new Map;function es({markdownUrl:e,...r}){let[n,s]=(0,l.useState)(!1),[a,o]=(0,X.useCopyButton)(async()=>{let t=en.get(e);if(t)return navigator.clipboard.writeText(await t);s(!0);try{let t=fetch(e).then(e=>e.text());en.set(e,t),await navigator.clipboard.write([new ClipboardItem({"text/plain":t})])}finally{s(!1)}});return(0,c.jsxs)("button",{disabled:n,onClick:o,...r,className:(0,t.cn)((0,Z.buttonVariants)({color:"secondary",size:"sm",className:"gap-2 [&_svg]:size-3.5 [&_svg]:text-fd-muted-foreground"}),r.className),children:[a?(0,c.jsx)(Q.Check,{}):(0,c.jsx)(ee,{}),r.children??"Copy Markdown"]})}function ea({markdownUrl:e,githubUrl:r,...n}){let s=(0,l.useMemo)(()=>{let t=`Read ${"u">typeof window?window.location.href:"loading"}, I want to ask questions about it.`;return[{title:"Open in GitHub",href:r,icon:(0,c.jsxs)("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",children:[(0,c.jsx)("title",{children:"GitHub"}),(0,c.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"})]})},{title:"View as Markdown",href:e,icon:(0,c.jsx)(er,{})},{title:"Open in Scira AI",href:`https://scira.ai/?${new URLSearchParams({q:t})}`,icon:(0,c.jsxs)("svg",{width:"910",height:"934",viewBox:"0 0 910 934",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("title",{children:"Scira AI"}),(0,c.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,c.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,c.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,c.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,c.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,c.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,c.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:"Open in ChatGPT",href:`https://chatgpt.com/?${new URLSearchParams({hints:"search",q:t})}
1`,icon:(0,c.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("title",{children:"OpenAI"}),(0,c.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:"Open in Claude",href:`https://claude.ai/new?${new URLSearchParams({q:t})}`,icon:(0,c.jsxs)("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("title",{children:"Anthropic"}),(0,c.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:"Open in Cursor",icon:(0,c.jsxs)("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("title",{children:"Cursor"}),(0,c.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})}`}]},[r,e]);return(0,c.jsxs)(J.Popover,{children:[(0,c.jsxs)(J.PopoverTrigger,{...n,className:(0,t.cn)((0,Z.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??"Open",(0,c.jsx)(L.ChevronDown,{className:"size-3.5 text-fd-muted-foreground"})]}),(0,c.jsx)(J.PopoverContent,{className:"flex flex-col",children:s.map(e=>(0,c.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,c.jsx)(et.default,{className:"text-fd-muted-foreground size-3.5 ms-auto"})]},e.href))})]})}let eo=(0,I.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 ei=U({DocsBody:()=>ed,DocsDescription:()=>eu,DocsPage:()=>el,DocsTitle:()=>ef,EditOnGitHub:()=>ec,MarkdownCopyButton:()=>es,PageBreadcrumb:()=>_,PageLastUpdate:()=>B,ViewOptionsPopover:()=>ea});function el({breadcrumb:{enabled:e=!0,component:r,...s}={},footer:{enabled:a,component:o,...i}={},full:l=!1,tableOfContentPopover:{enabled:d,component:u,...f}={},tableOfContent:{enabled:h,component:x,...p}={},toc:m=[],children:g,className:v}){h??=!l&&(m.length>0||void 0!==p.footer||void 0!==p.header),d??=m.length>0||void 0!==f.header||void 0!==f.footer;let j=e=>e;return(h||d)&&(j=e=>(0,c.jsx)(w,{single:p.single,toc:m,children:e})),j((0,c.jsxs)(c.Fragment,{children:[d&&(u??(0,c.jsxs)(E,{children:[(0,c.jsx)(O,{}),(0,c.jsxs)($,{children:[f.header,(0,c.jsx)(y,{children:"clerk"===f.style?(0,c.jsx)(K,{}):(0,c.jsx)(W,{})}),f.footer]})]})),(0,c.jsxs)("article",{id:"nd-page","data-full":l,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",l?"max-w-[1168px]":"xl:layout:[--fd-toc-width:268px]",v),children:[e&&(r??(0,c.jsx)(_,{...s})),g,!1!==a&&(o??(0,c.jsx)(F,{...i}))]}),h&&(x??(0,c.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:[p.header,(0,c.jsxs)("h3",{id:"toc-title",className:"inline-flex items-center gap-1.5 text-sm text-fd-muted-foreground",children:[(0,c.jsx)(er,{className:"size-4"}),(0,c.jsx)(n.I18nLabel,{label:"toc"})]}),(0,c.jsx)(y,{children:"clerk"===p.style?(0,c.jsx)(K,{}):(0,c.jsx)(W,{})}),p.footer]}))]}))}function ec(e){return(0,c.jsx)("a",{target:"_blank",rel:"noreferrer noopener",...e,className:(0,t.cn)((0,Z.buttonVariants)({color:"secondary",size:"sm",className:"gap-1.5 not-prose"}),e.className),children:e.children??(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(eo,{className:"size-3.5"}),(0,c.jsx)(n.I18nLabel,{label:"editOnGithub"})]})})}function ed({children:e,className:r,...n}){return(0,c.jsx)("div",{...n,className:(0,t.cn)("prose flex-1",r),children:e})}function eu({children:e,className:r,...n}){return void 0===e?null:(0,c.jsx)("p",{...n,className:(0,t.cn)("mb-8 text-lg text-fd-muted-foreground",r),children:e})}function ef({children:e,className:r,...n}){return(0,c.jsx)("h1",{...n,className:(0,t.cn)("text-[1.75em] font-semibold",r),children:e})}
1e.i(551346),e.i(133704),e.i(812536),e.i(259836);let eh=(0,l.createContext)(null),ex=(0,l.createContext)(null);function ep({className:e,children:r,...n}){let s=(0,l.useRef)(null),[a,i]=(0,l.useState)(!1),{isNavTransparent:d}=function(){let e=(0,l.use)(eh);if(!e)throw Error("Please use <DocsPage /> (`fumadocs-ui/layouts/notebook/page`) under <DocsLayout /> (`fumadocs-ui/layouts/notebook`).");return e}(),u=(0,l.useEffectEvent)(e=>{a&&s.current&&!s.current.contains(e.target)&&i(!1)});return(0,l.useEffect)(()=>(window.addEventListener("click",u),()=>{window.removeEventListener("click",u)}),[]),(0,c.jsx)(ex,{value:(0,l.useMemo)(()=>({open:a,setOpen:i}),[i,a]),children:(0,c.jsx)(o.Collapsible,{open:a,onOpenChange:i,"data-toc-popover":"",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),...n,children:(0,c.jsx)("header",{ref:s,className:(0,t.cn)("border-b backdrop-blur-sm transition-colors",(!d||a)&&"bg-fd-background/80",a&&"shadow-lg"),children:r})})})}function em({className:e,...r}){let{text:a}=(0,n.useI18n)(),{open:i}=(0,l.use)(ex),d=b(),u=h(),f=(0,l.useMemo)(()=>d.findIndex(e=>u===e.url.slice(1)),[d,u]),x=(0,s.useTreePath)().at(-1),p=-1!==f&&!i;return(0,c.jsxs)(o.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,c.jsx)(eg,{value:(f+1)/Math.max(1,d.length),max:1,className:(0,t.cn)("shrink-0",i&&"text-fd-primary")}),(0,c.jsxs)("span",{className:"grid flex-1 *:my-auto *:row-start-1 *:col-start-1",children:[(0,c.jsx)("span",{className:(0,t.cn)("truncate transition-[opacity,translate,color]",i&&"text-fd-foreground",p&&"opacity-0 -translate-y-full pointer-events-none"),children:x?.name??a.toc}),(0,c.jsx)("span",{className:(0,t.cn)("truncate transition-[opacity,translate]",!p&&"opacity-0 translate-y-full pointer-events-none"),children:d[f]?.title})]}),(0,c.jsx)(L.ChevronDown,{className:(0,t.cn)("shrink-0 transition-transform mx-0.5",i&&"rotate-180")})]})}function eg({value:e,strokeWidth:t=2,size:r=24,min:n=0,max:s=100,...a}){let o=e<n?n:e>s?s:e,i=(r-t)/2,l=2*Math.PI*i,d=o/s*l,u={cx:r/2,cy:r/2,r:i,fill:"none",strokeWidth:t};return(0,c.jsxs)("svg",{role:"progressbar",viewBox:`0 0 ${r} ${r}`,"aria-valuenow":o,"aria-valuemin":n,"aria-valuemax":s,...a,children:[(0,c.jsx)("circle",{...u,className:"stroke-current/25"}),(0,c.jsx)("circle",{...u,stroke:"currentColor",strokeDasharray:l,strokeDashoffset:l-d,strokeLinecap:"round",transform:`rotate(-90 ${r/2} ${r/2})`,className:"transition-all"})]})}function ev(e){return(0,c.jsx)(o.CollapsibleContent,{"data-toc-popover-content":"",...e,className:(0,t.cn)("flex flex-col px-4 max-h-[50vh] md:px-6",e.className),children:e.children})}function ej({date:e,...r}){let{text:s}=(0,n.useI18n)(),[a,o]=(0,l.useState)("");return(0,l.useEffect)(()=>{o(e.toLocaleDateString())},[e]),(0,c.jsxs)("p",{...r,className:(0,t.cn)("text-sm text-fd-muted-foreground",r.className),children:[s.lastUpdate," ",a]})}function eb({items:e,children:r,className:n,...s}){let o=M(),i=(0,R.usePathname)(),{previous:d,next:u}=(0,l.useMemo)(()=>{if(e)return e;let t=o.findIndex(e=>(0,a.isActive)(e.url,i));return -1===t?{}:{previous:o[t-1],next:o[t+1]}},[o,e,i]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:(0,t.cn)("@container grid gap-4",d&&u?"grid-cols-2":"grid-cols-1",n),...s,children:[d&&(0,c.jsx)(ew,{item:d,index:0}),u&&(0,c.jsx)(ew,{item:u,index:1})]}),r]})}function ew({item:e,index:r}){let{text:s}=(0,n.useI18n)(),a=0===r?S:A.ChevronRight;return(0,c.jsxs)(T.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,c.jsxs)("div",{className:(0,t.cn)("inline-flex items-center gap-1.5 font-medium",1===r&&"flex-row-reverse"),children:[(0,c.jsx)(a,{className:"-mx-1 size-4 shrink-0 rtl:rotate-180"}),(0,c.jsx)("p",{children:e.name})]}),(0,c.jsx)("p",{className:"text-fd-muted-foreground truncate",children:e.description??(0===r?s.previousPage:s.nextPage)})]})}function ey({includeRoot:e,includeSeparator:r,includePage:n,...a}){let o=(0,s.useTreePath)(),{root:i}=(0,s.useTreeContext)(),d=(0,l.useMemo)(()=>(0,z.getBreadcrumbItemsFromPath)(i,o,{includePage:n,includeSeparator:r,includeRoot:e}),[n,e,r,o,i]);return 0===d.length?null:(0,c.jsx)("div",{...a,className:(0,t.cn)("flex items-center gap-1.5 text-sm text-fd-muted-foreground",a.className),children:d.map((e,r)=>
1{let n=(0,t.cn)("truncate",r===d.length-1&&"text-fd-primary font-medium");return(0,c.jsxs)(l.Fragment,{children:[0!==r&&(0,c.jsx)(A.ChevronRight,{className:"size-3.5 shrink-0"}),e.url?(0,c.jsx)(T.default,{href:e.url,className:(0,t.cn)(n,"transition-opacity hover:opacity-80"),children:e.name}):(0,c.jsx)("span",{className:n,children:e.name})]},r)})})}var eC=U({DocsBody:()=>eM,DocsDescription:()=>eR,DocsPage:()=>ek,DocsTitle:()=>eT,EditOnGitHub:()=>eN,MarkdownCopyButton:()=>es,PageBreadcrumb:()=>ey,PageLastUpdate:()=>ej,ViewOptionsPopover:()=>ea});function ek({breadcrumb:{enabled:e=!0,component:r,...s}={},footer:{enabled:a,component:o,...i}={},full:l=!1,tableOfContentPopover:{enabled:d,component:u,...f}={},tableOfContent:{enabled:h,component:x,...p}={},toc:m=[],children:g,className:v}){h??=!l&&(m.length>0||void 0!==p.footer||void 0!==p.header),d??=m.length>0||void 0!==f.header||void 0!==f.footer;let j=e=>e;return(h||d)&&(j=e=>(0,c.jsx)(w,{single:p.single,toc:m,children:e})),j((0,c.jsxs)(c.Fragment,{children:[d&&(u??(0,c.jsxs)(ep,{children:[(0,c.jsx)(em,{}),(0,c.jsxs)(ev,{children:[f.header,(0,c.jsx)(y,{children:"clerk"===f.style?(0,c.jsx)(K,{}):(0,c.jsx)(W,{})}),f.footer]})]})),(0,c.jsxs)("article",{id:"nd-page","data-full":l,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]",l&&"*:max-w-[1285px]",v),children:[e&&(r??(0,c.jsx)(ey,{...s})),g,!1!==a&&(o??(0,c.jsx)(eb,{...i}))]}),h&&(x??(0,c.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:[p.header,(0,c.jsxs)("h3",{id:"toc-title",className:"inline-flex items-center gap-1.5 text-sm text-fd-muted-foreground",children:[(0,c.jsx)(er,{className:"size-4"}),(0,c.jsx)(n.I18nLabel,{label:"toc"})]}),(0,c.jsx)(y,{children:"clerk"===p.style?(0,c.jsx)(K,{}):(0,c.jsx)(W,{})}),p.footer]}))]}))}function eN(e){return(0,c.jsx)("a",{target:"_blank",rel:"noreferrer noopener",...e,className:(0,t.cn)((0,Z.buttonVariants)({color:"secondary",size:"sm",className:"gap-1.5 not-prose"}),e.className),children:e.children??(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(eo,{className:"size-3.5"}),(0,c.jsx)(n.I18nLabel,{label:"editOnGithub"})]})})}function eM({children:e,className:r,...n}){return(0,c.jsx)("div",{...n,className:(0,t.cn)("prose flex-1",r),children:e})}function eR({children:e,className:r,...n}){return void 0===e?null:(0,c.jsx)("p",{...n,className:(0,t.cn)("mb-8 text-lg text-fd-muted-foreground",r),children:e})}function eT({children:e,className:r,...n}){return(0,c.jsx)("h1",{...n,className:(0,t.cn)("text-[1.75em] font-semibold",r),children:e})}function eL(e){return(0,c.jsx)("main",{...e,className:(0,t.cn)("w-full max-w-[1400px] mx-auto px-4 py-12",e.className),children:(0,c.jsx)("article",{className:"prose",children:e.children})})}function eI({lastUpdate:e,editOnGithub:t,children:n,...s}){let{DocsPage:a,EditOnGitHub:o,PageLastUpdate:i}=(0,l.use)(r.LayoutContext)?ei:eC;return(0,c.jsxs)(a,{...s,children:[n,(0,c.jsxs)("div",{className:"flex flex-row flex-wrap items-center justify-between gap-4 empty:hidden",children:[t&&(0,c.jsx)(o,{href:`https://github.com/${t.owner}/${t.repo}/blob/${t.sha}/${t.path.startsWith("/")?t.path.slice(1):t.path}`}),e&&(0,c.jsx)(i,{date:new Date(e)})]})]})}e.s(["DocsPage",0,eI,"withArticle",0,eL],696450),e.i(696450),e.s(["DocsBody",0,ed,"DocsDescription",0,eu,"DocsPage",0,eI,"DocsTitle",0,ef,"EditOnGitHub",0,ec,"PageBreadcrumb",0,_,"PageLastUpdate",0,B,"withArticle",0,eL],530815)},987099,e=>{"use strict";var t=e.i(335718),r=e.i(9413),n=e.i(922353),s=e.i(160310),a=e.i(428184),o=new WeakMap;function i(e,t){var r,n;let s,a,o;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let i=(r=e,n=t,s=r.length,(o=(a=l(n))>=0?a:s+a)<0||o>=s?-1:o);return -1===i?void 0:e[i]}function l(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],o.set(this,!0)}set(e,t){return o.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,s=this.has(t),a=this.#e.length,o=l(e),i=o>=0?o:a+o,c=i<0||i>=a?-1:i;if(c===this.size||s&&c===this.size-1||-1===c)return this.set(t,r),this;let d=this.size+ +!s;o<0&&i++;let u=[...this.#e],f=!1;for(let e=i;e<d;e++)if(i===e){let a=u[e];u[e]===t&&(a=u[e+1]),s&&this.delete(t),n=this.get(a),this.set(t,r)}else{f||u[e-1]!==t||(f=!0);let r=u[f?e:e-1],s=n;n=this.get(r),this.delete(r),this.set(r,s)}return this}with(t,r,n){let s=new e(this);return s.insert(t,r,n),s}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=i(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=i(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return i(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=[],s=0;for(let e of this)Reflect.apply(t,r,[e,s,this])&&n.push(e),s++;return new e(n)}map(t,r){let n=[],s=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,s,this])]),s++;return new e(n)}reduce(...e){let[t,r]=e,n=0,s=r??this.at(0);for(let r of this)s=0===n&&1===e.length?r:Reflect.apply(t,this,[s,r,n,this]),n++;return s}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let s=this.at(r);n=r===this.size-1&&1===e.length?s:Reflect.apply(t,this,[n,s,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,s=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(s=r-1);for(let e=t;e<=s;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}}),e.s(["createCollection",0,function(e){let o=e+"CollectionProvider",[i,l]=(0,r.createContextScope)(o),[c,d]=i(o,{collectionRef:{current:null},itemMap:new Map}),u=e=>{let{scope:r,children:n}=e,s=t.default.useRef(null),o=t.default.useRef(new Map).current;return(0,a.jsx)(c,{scope:r,itemMap:o,collectionRef:s,children:n})};u.displayName=o;let f=e+"CollectionSlot",h=(0,s.createSlot)(f),x=t.default.forwardRef((e,t)=>
1{let{scope:r,children:s}=e,o=d(f,r),i=(0,n.useComposedRefs)(t,o.collectionRef);return(0,a.jsx)(h,{ref:i,children:s})});x.displayName=f;let p=e+"CollectionItemSlot",m="data-radix-collection-item",g=(0,s.createSlot)(p),v=t.default.forwardRef((e,r)=>{let{scope:s,children:o,...i}=e,l=t.default.useRef(null),c=(0,n.useComposedRefs)(r,l),u=d(p,s);return t.default.useEffect(()=>(u.itemMap.set(l,{ref:l,...i}),()=>void u.itemMap.delete(l))),(0,a.jsx)(g,{...{[m]:""},ref:c,children:o})});return v.displayName=p,[{Provider:u,Slot:x,ItemSlot:v},function(r){let n=d(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},l]}])},35790,e=>{"use strict";var t=e.i(818636),r=e.i(335718),n=e.i(428184),s=e.i(291967),a=e.i(9413),o=e.i(987099),i=e.i(922353),l=e.i(411207),c=e.i(285565),d=e.i(488248),u=e.i(136567),f=e.i(775649),h="rovingFocusGroup.onEntryFocus",x={bubbles:!1,cancelable:!0},p="RovingFocusGroup",[m,g,v]=(0,o.createCollection)(p),[j,b]=(0,a.createContextScope)(p,[v]),[w,y]=j(p),C=r.forwardRef((e,t)=>(0,n.jsx)(m.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,n.jsx)(m.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,n.jsx)(k,{...e,ref:t})})}));C.displayName=p;var k=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,orientation:o,loop:l=!1,dir:m,currentTabStopId:v,defaultCurrentTabStopId:j,onCurrentTabStopIdChange:b,onEntryFocus:y,preventScrollOnEntryFocus:C=!1,...k}=e,N=r.useRef(null),M=(0,i.useComposedRefs)(t,N),R=(0,f.useDirection)(m),[L,I]=(0,u.useControllableState)({prop:v,defaultProp:j??null,onChange:b,caller:p}),[S,A]=r.useState(!1),z=(0,d.useCallbackRef)(y),P=g(a),E=r.useRef(!1),[O,D]=r.useState(0);return r.useEffect(()=>{let e=N.current;if(e)return e.addEventListener(h,z),()=>e.removeEventListener(h,z)},[z]),(0,n.jsx)(w,{scope:a,orientation:o,dir:R,loop:l,currentTabStopId:L,onItemFocus:r.useCallback(e=>I(e),[I]),onItemShiftTab:r.useCallback(()=>A(!0),[]),onFocusableItemAdd:r.useCallback(()=>D(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>D(e=>e-1),[]),children:(0,n.jsx)(c.Primitive.div,{tabIndex:S||0===O?-1:0,"data-orientation":o,...k,ref:M,style:{outline:"none",...e.style},onMouseDown:(0,s.composeEventHandlers)(e.onMouseDown,()=>{E.current=!0}),onFocus:(0,s.composeEventHandlers)(e.onFocus,e=>{let t=!E.current;if(e.target===e.currentTarget&&t&&!S){let t=new CustomEvent(h,x);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable);T([e.find(e=>e.active),e.find(e=>e.id===L),...e].filter(Boolean).map(e=>e.ref.current),C)}}E.current=!1}),onBlur:(0,s.composeEventHandlers)(e.onBlur,()=>A(!1))})})}),N="RovingFocusGroupItem",M=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:a,focusable:o=!0,active:i=!1,tabStopId:d,children:u,...f}=e,h=(0,l.useId)(),x=d||h,p=y(N,a),v=p.currentTabStopId===x,j=g(a),{onFocusableItemAdd:b,onFocusableItemRemove:w,currentTabStopId:C}=p;return r.useEffect(()=>{if(o)return b(),()=>w()},[o,b,w]),(0,n.jsx)(m.ItemSlot,{scope:a,id:x,focusable:o,active:i,children:(0,n.jsx)(c.Primitive.span,{tabIndex:v?0:-1,"data-orientation":p.orientation,...f,ref:t,onMouseDown:(0,s.composeEventHandlers)(e.onMouseDown,e=>{o?p.onItemFocus(x):e.preventDefault()}),onFocus:(0,s.composeEventHandlers)(e.onFocus,()=>p.onItemFocus(x)),onKeyDown:(0,s.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let s=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(s))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(s)))return R[s]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let s=j().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)s.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&s.reverse();let a=s.indexOf(e.currentTarget);s=p.loop?(r=s,n=a+1,r.map((e,t)=>r[(n+t)%r.length])):s.slice(a+1)}setTimeout(()=>T(s))}}),children:"function"==typeof u?u({isCurrentTabStop:v,hasTabStop:null!=C}):u})})});M.displayName=N;var R={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var L=e.i(690816),I="Tabs",[S,A]=(0,a.createContextScope)(I,[b]),z=b(),[P,E]=S(I),O=r.forwardRef((e,t)=>
1{let{__scopeTabs:r,value:s,onValueChange:a,defaultValue:o,orientation:i="horizontal",dir:d,activationMode:h="automatic",...x}=e,p=(0,f.useDirection)(d),[m,g]=(0,u.useControllableState)({prop:s,onChange:a,defaultProp:o??"",caller:I});return(0,n.jsx)(P,{scope:r,baseId:(0,l.useId)(),value:m,onValueChange:g,orientation:i,dir:p,activationMode:h,children:(0,n.jsx)(c.Primitive.div,{dir:p,"data-orientation":i,...x,ref:t})})});O.displayName=I;var D="TabsList",$=r.forwardRef((e,t)=>{let{__scopeTabs:r,loop:s=!0,...a}=e,o=E(D,r),i=z(r);return(0,n.jsx)(C,{asChild:!0,...i,orientation:o.orientation,dir:o.dir,loop:s,children:(0,n.jsx)(c.Primitive.div,{role:"tablist","aria-orientation":o.orientation,...a,ref:t})})});$.displayName=D;var B="TabsTrigger",F=r.forwardRef((e,t)=>{let{__scopeTabs:r,value:a,disabled:o=!1,...i}=e,l=E(B,r),d=z(r),u=V(l.baseId,a),f=U(l.baseId,a),h=a===l.value;return(0,n.jsx)(M,{asChild:!0,...d,focusable:!o,active:h,children:(0,n.jsx)(c.Primitive.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":f,"data-state":h?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u,...i,ref:t,onMouseDown:(0,s.composeEventHandlers)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(a)}),onKeyDown:(0,s.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(a)}),onFocus:(0,s.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==l.activationMode;h||o||!e||l.onValueChange(a)})})})});F.displayName=B;var H="TabsContent",_=r.forwardRef((e,t)=>{let{__scopeTabs:s,value:a,forceMount:o,children:i,...l}=e,d=E(H,s),u=V(d.baseId,a),f=U(d.baseId,a),h=a===d.value,x=r.useRef(h);return r.useEffect(()=>{let e=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,n.jsx)(L.Presence,{present:o||h,children:({present:r})=>(0,n.jsx)(c.Primitive.div,{"data-state":h?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,id:f,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:x.current?"0s":void 0},children:r&&i})})});function V(e,t){return`${e}-trigger-${t}`}function U(e,t){return`${e}-content-${t}`}_.displayName=H;let Z=new Map,W=(0,r.createContext)(null);e.s(["Tabs",0,function({ref:e,groupId:s,persist:a=!1,updateAnchor:o=!1,defaultValue:i,value:l,onValueChange:c,...d}){let u=(0,r.useRef)(null),f=(0,r.useMemo)(()=>new Map,[]),[h,x]=void 0===l?(0,r.useState)(i):[l,(0,r.useEffectEvent)(e=>c?.(e))];return(0,r.useLayoutEffect)(()=>{if(!s)return;let e=sessionStorage.getItem(s);a&&(e??=localStorage.getItem(s)),e&&x(e);let t=Z.get(s)??new Set;return t.add(x),Z.set(s,t),()=>{t.delete(x)}},[s,a,x]),(0,r.useLayoutEffect)(()=>{let e=window.location.hash.slice(1);if(e){for(let[t,r]of f.entries())if(r===e){x(t),u.current?.scrollIntoView();break}}},[x,f]),(0,n.jsx)(O,{ref:(0,t.mergeRefs)(e,u),value:h,onValueChange:e=>{if(o){let t=f.get(e);t&&window.history.replaceState(null,"",`#${t}`)}if(s){let t=Z.get(s);if(t)for(let r of t)r(e);sessionStorage.setItem(s,e),a&&localStorage.setItem(s,e)}else x(e)},...d,children:(0,n.jsx)(W,{value:(0,r.useMemo)(()=>({valueToIdMap:f}),[f]),children:d.children})})},"TabsContent",0,function({value:e,...t}){let{valueToIdMap:s}=function(){let e=(0,r.use)(W);if(!e)throw Error("You must wrap your component in <Tabs>");return e}();return t.id&&s.set(e,t.id),(0,n.jsx)(_,{value:e,...t,children:t.children})},"TabsList",0,$,"TabsTrigger",0,F],35790)},372645,e=>{"use strict";var t=e.i(972395),r=e.i(243796),n=e.i(130581),s=e.i(818636),a=e.i(35790),o=e.i(335718),i=e.i(428184),l=e.i(985087);let c=(0,e.i(540796).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"}]]),d=(0,o.createContext)(null);function u({className:e,containerRef:s,...a}){let[o,d]=(0,r.useCopyButton)(()=>{let e=s.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,i.jsx)("button",{type:"button","data-checked":o||void 0,className:(0,t.cn)((0,n.buttonVariants)({className:"hover:text-fd-accent-foreground data-checked:text-fd-accent-foreground",size:"icon-xs"}),e),"aria-label":o?"Copied Text":"Copy Text",onClick:d,...a,children:o?(0,i.jsx)(l.Check,{}):(0,i.jsx)(c,{})})}e.s(["CodeBlock",0,function({ref:e,title:r,allowCopy:n=!0,keepBackgroun
1d:s=!1,icon:a,viewportProps:l={},children:c,Actions:f=e=>(0,i.jsx)("div",{...e,className:(0,t.cn)("empty:hidden",e.className)}),...h}){let x=null!==(0,o.use)(d),p=(0,o.useRef)(null);return(0,i.jsxs)("figure",{ref:e,dir:"ltr",...h,tabIndex:-1,className:(0,t.cn)(x?"bg-fd-secondary -mx-px -mb-px last:rounded-b-xl":"my-4 bg-fd-card rounded-xl",s&&"bg-(--shiki-light-bg) dark:bg-(--shiki-dark-bg)","shiki relative border shadow-sm not-prose overflow-hidden text-sm",h.className),children:[r?(0,i.jsxs)("div",{className:"flex text-fd-muted-foreground items-center gap-2 h-9.5 border-b px-4",children:["string"==typeof a?(0,i.jsx)("div",{className:"[&_svg]:size-3.5",dangerouslySetInnerHTML:{__html:a}}):a,(0,i.jsx)("figcaption",{className:"flex-1 truncate",children:r}),f({className:"-me-2",children:n&&(0,i.jsx)(u,{containerRef:p})})]}):f({className:"absolute top-3 right-2 z-2 backdrop-blur-lg rounded-lg text-fd-muted-foreground",children:n&&(0,i.jsx)(u,{containerRef:p})}),(0,i.jsx)("div",{ref:p,...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:h["data-line-numbers"]?`line ${Number(h["data-line-numbers-start"]??1)-1}`:void 0,...l.style},children:c})]})},"CodeBlockTab",0,function(e){return(0,i.jsx)(a.TabsContent,{...e})},"CodeBlockTabs",0,function({ref:e,...r}){let n=(0,o.useRef)(null),l=null!==(0,o.use)(d);return(0,i.jsx)(a.Tabs,{ref:(0,s.mergeRefs)(n,e),...r,className:(0,t.cn)("bg-fd-card rounded-xl border",!l&&"my-4",r.className),children:(0,i.jsx)(d,{value:(0,o.useMemo)(()=>({containerRef:n,nested:l}),[l]),children:r.children})})},"CodeBlockTabsList",0,function(e){return(0,i.jsx)(a.TabsList,{...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,i.jsxs)(a.TabsTrigger,{...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,i.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,i.jsx)("pre",{...e,className:(0,t.cn)("min-w-full w-max *:flex *:flex-col",e.className),children:e.children})}],372645)},157243,e=>{"use strict";var t=e.i(972395),r=e.i(393347),n=e.i(335718),s=e.i(428184),a=e.i(4665),o=e.i(49102);let i=(0,e.i(294237).cva)("text-fd-muted-foreground not-prose pe-2");function l({parentId:e,name:c,item:{parameters:d=[],description:u,required:f=!1,deprecated:h,typeDescription:x,default:p,type:m,typeDescriptionLink:g,returns:v}}){let[j,b]=(0,n.useState)(!1),w=e?`${e}-${c}`:void 0;return(0,n.useEffect)(()=>{let e=window.location.hash;w&&e&&`#${w}`===e&&b(!0)},[w]),(0,s.jsxs)(r.Collapsible,{id:w,open:j,onOpenChange:e=>{e&&w&&window.history.replaceState(null,"",`#${w}`),b(e)},className:(0,t.cn)("rounded-xl border overflow-hidden scroll-m-2
10 transition-all",j?"shadow-sm bg-fd-background not-last:mb-2":"border-transparent"),children:[(0,s.jsxs)(r.CollapsibleTrigger,{className:"relative flex flex-row items-center w-full group text-start px-3 py-2 not-prose hover:bg-fd-accent",children:[(0,s.jsxs)("code",{className:(0,t.cn)("text-fd-primary min-w-fit w-1/4 font-mono font-medium pe-2",h&&"line-through text-fd-primary/50"),children:[c,!f&&"?"]}),g?(0,s.jsx)(a.default,{href:g,className:"underline @max-xl:hidden",children:m}):(0,s.jsx)("span",{className:"@max-xl:hidden",children:m}),(0,s.jsx)(o.ChevronDown,{className:"absolute end-2 size-4 text-fd-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),(0,s.jsx)(r.CollapsibleContent,{children:(0,s.jsxs)("div",{className:"grid grid-cols-[1fr_3fr] gap-y-4 text-sm p-3 overflow-auto fd-scroll-container border-t",children:[(0,s.jsx)("div",{className:"text-sm prose col-span-full prose-no-margin empty:hidden",children:u}),x&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:(0,t.cn)(i()),children:"Type"}),(0,s.jsx)("p",{className:"my-auto not-prose",children:x})]}),p&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:(0,t.cn)(i()),children:"Default"}),(0,s.jsx)("p",{className:"my-auto not-prose",children:p})]}),d.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:(0,t.cn)(i()),children:"Parameters"}),(0,s.jsx)("div",{className:"flex flex-col gap-2",children:d.map(e=>(0,s.jsxs)("div",{className:"inline-flex items-center flex-wrap gap-1",children:[(0,s.jsxs)("p",{className:"font-medium not-prose text-nowrap",children:[e.name," -"]}),(0,s.jsx)("div",{className:"text-sm prose prose-no-margin",children:e.description})]},e.name))})]}),v&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:(0,t.cn)(i()),children:"Returns"}),(0,s.jsx)("div",{className:"my-auto text-sm prose prose-no-margin",children:v})]})]})})]})}e.s(["TypeTable",0,function({id:e,type:r,className:n,...a}){return(0,s.jsxs)("div",{id:e,className:(0,t.cn)("@container flex flex-col p-1 bg-fd-card text-fd-card-foreground rounded-2xl border my-6 text-sm overflow-hidden",n),...a,children:[(0,s.jsxs)("div",{className:"flex font-medium items-center px-3 py-1 not-prose text-fd-muted-foreground",children:[(0,s.jsx)("p",{className:"w-1/4",children:"Prop"}),(0,s.jsx)("p",{className:"@max-xl:hidden",children:"Type"})]}),Object.entries(r).map(([t,r])=>(0,s.jsx)(l,{parentId:e,name:t,item:r},t))]})}])},33928,e=>{"use strict";var t=e.i(972395),r=e.i(35790),n=e.i(335718),s=e.i(428184);let a=(0,n.createContext)(null);function o(){let e=(0,n.useContext)(a);if(!e)throw Error("You must wrap your component in <Tabs>");return e}let i=n.forwardRef((e,n)=>(0,s.jsx)(r.TabsList,{ref:n,...e,className:(0,t.cn)("flex gap-3.5 text-fd-secondary-foreground overflow-x-auto px-4 not-prose",e.className)}));i.displayName="TabsList";let l=n.forwardRef((e,n)=>(0,s.jsx)(r.TabsTrigger,{ref:n,...e,className:(0,t.cn)("inline-flex items-center gap-2 whitespace-nowrap text-fd-muted-foreground border-b border-transparent py-2 text-sm font-medium transition-colors [&_svg]:size-4 hover:text-fd-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-fd-primary data-[state=active]:text-fd-primary",e.className)}));function c({value:e,className:n,...a}){return(0,s.jsx)(r.TabsContent,{value:e,forceMount:!0,className:(0,t.cn)("p-4 text-[0.9375rem] bg-fd-background rounded-xl outline-none prose-no-margin data-[state=inactive]:hidden [&>figure:only-child]:-m-4 [&>figure:only-child]:border-none",n),...a,children:a.children})}function d(e){return e.toLowerCase().replace(/\s/,"-")}l.displayName="TabsTrigger",e.s(["Tab",0,function({value:e,...t}){let{items:r}=o(),a=e??r?.at(function(){let e=(0,n.useId)(),{collection:t}=o();return(0,n.useEffect)(()=>()=>{let r=t.indexOf(e);-1!==r&&t.splice(r,1)},[e,t]),t.includes(e)||t.push(e),t.indexOf(e)}());if(!a)throw Error("Failed to resolve tab `value`, please pass a `value` prop to the Tab component.");return(0,s.jsx)(c,{value:d(a),...t,children:t.children})},"Tabs",0,function({ref:e,className:o,items:c,label:u,defaultIndex:f=0,defaultValue:h=c?d(c[f]):void 0,...x}
1){let[p,m]=(0,n.useState)(h),g=(0,n.useMemo)(()=>[],[]);return(0,s.jsxs)(r.Tabs,{ref:e,className:(0,t.cn)("flex flex-col overflow-hidden rounded-xl border bg-fd-secondary my-4",o),value:p,onValueChange:e=>{(!c||c.some(t=>d(t)===e))&&m(e)},...x,children:[c&&(0,s.jsxs)(i,{children:[u&&(0,s.jsx)("span",{className:"text-sm font-medium my-auto me-auto",children:u}),c.map(e=>(0,s.jsx)(l,{value:d(e),children:e},e))]}),(0,s.jsx)(a.Provider,{value:(0,n.useMemo)(()=>({items:c,collection:g}),[g,c]),children:x.children})]})},"TabsContent",0,c,"TabsList",0,i,"TabsTrigger",0,l])},96145,e=>{"use strict";var t=e.i(972395),r=e.i(243796),n=e.i(130581),s=e.i(818636),a=e.i(428184),o=e.i(838408),i=e.i(335718),l=e.i(9413),c=e.i(987099),d=e.i(922353),u=e.i(291967),f=e.i(136567),h=e.i(285565),x=e.i(906470),p=e.i(411207),m=e.i(775649),g="Accordion",v=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[j,b,w]=(0,c.createCollection)(g),[y,C]=(0,l.createContextScope)(g,[w,x.createCollapsibleScope]),k=(0,x.createCollapsibleScope)(),N=i.default.forwardRef((e,t)=>{let{type:r,...n}=e;return(0,a.jsx)(j.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,a.jsx)(S,{...n,ref:t}):(0,a.jsx)(I,{...n,ref:t})})});N.displayName=g;var[M,R]=y(g),[T,L]=y(g,{collapsible:!1}),I=i.default.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:s=()=>{},collapsible:o=!1,...l}=e,[c,d]=(0,f.useControllableState)({prop:r,defaultProp:n??"",onChange:s,caller:g});return(0,a.jsx)(M,{scope:e.__scopeAccordion,value:i.default.useMemo(()=>c?[c]:[],[c]),onItemOpen:d,onItemClose:i.default.useCallback(()=>o&&d(""),[o,d]),children:(0,a.jsx)(T,{scope:e.__scopeAccordion,collapsible:o,children:(0,a.jsx)(P,{...l,ref:t})})})}),S=i.default.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:s=()=>{},...o}=e,[l,c]=(0,f.useControllableState)({prop:r,defaultProp:n??[],onChange:s,caller:g}),d=i.default.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=i.default.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,a.jsx)(M,{scope:e.__scopeAccordion,value:l,onItemOpen:d,onItemClose:u,children:(0,a.jsx)(T,{scope:e.__scopeAccordion,collapsible:!0,children:(0,a.jsx)(P,{...o,ref:t})})})}),[A,z]=y(g),P=i.default.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:n,dir:s,orientation:o="vertical",...l}=e,c=i.default.useRef(null),f=(0,d.useComposedRefs)(c,t),x=b(r),p="ltr"===(0,m.useDirection)(s),g=(0,u.composeEventHandlers)(e.onKeyDown,e=>{if(!v.includes(e.key))return;let t=e.target,r=x().filter(e=>!e.ref.current?.disabled),n=r.findIndex(e=>e.ref.current===t),s=r.length;if(-1===n)return;e.preventDefault();let a=n,i=s-1,l=()=>{(a=n+1)>i&&(a=0)},c=()=>{(a=n-1)<0&&(a=i)};switch(e.key){case"Home":a=0;break;case"End":a=i;break;case"ArrowRight":"horizontal"===o&&(p?l():c());break;case"ArrowDown":"vertical"===o&&l();break;case"ArrowLeft":"horizontal"===o&&(p?c():l());break;case"ArrowUp":"vertical"===o&&c()}let d=a%s;r[d].ref.current?.focus()});return(0,a.jsx)(A,{scope:r,disabled:n,direction:s,orientation:o,children:(0,a.jsx)(j.Slot,{scope:r,children:(0,a.jsx)(h.Primitive.div,{...l,"data-orientation":o,ref:f,onKeyDown:n?void 0:g})})})}),E="AccordionItem",[O,D]=y(E),$=i.default.forwardRef((e,t)=>{let{__scopeAccordion:r,value:n,...s}=e,o=z(E,r),i=R(E,r),l=k(r),c=(0,p.useId)(),d=n&&i.value.includes(n)||!1,u=o.disabled||e.disabled;return(0,a.jsx)(O,{scope:r,open:d,disabled:u,triggerId:c,children:(0,a.jsx)(x.Root,{"data-orientation":o.orientation,"data-state":Z(d),...l,...s,ref:t,disabled:u,open:d,onOpenChange:e=>{e?i.onItemOpen(n):i.onItemClose(n)}})})});$.displayName=E;var B="AccordionHeader",F=i.default.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,s=z(g,r),o=D(B,r);return(0,a.jsx)(h.Primitive.h3,{"data-orientation":s.orientation,"data-state":Z(o.open),"data-disabled":o.disabled?"":void 0,...n,ref:t})});F.displayName=B;var H="AccordionTrigger",_=i.default.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,s=z(g,r),o=D(H,r),i=L(H,r),l=k(r);return(0,a.jsx)(j.ItemSlot,{scope:r,children:(0,a.jsx)(x.Trigger,{"aria-disabled":o.open&&!i.collapsible||void 0,"data-orientation":s.orientation,id:o.triggerId,...l,...n,ref:t})})});_.displayName=H;var V="AccordionContent",U=i.default.forwardRef((e,t)=>
1{let{__scopeAccordion:r,...n}=e,s=z(g,r),o=D(V,r),i=k(r);return(0,a.jsx)(x.Content,{role:"region","aria-labelledby":o.triggerId,"data-orientation":s.orientation,...i,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function Z(e){return e?"open":"closed"}function W({className:e,...r}){return(0,a.jsx)(N,{className:(0,t.cn)("divide-y divide-fd-border overflow-hidden rounded-lg border bg-fd-card",e),...r})}function G({className:e,children:r,...n}){return(0,a.jsx)($,{className:(0,t.cn)("scroll-m-24",e),...n,children:r})}function K({className:e,children:r,...n}){return(0,a.jsx)(F,{className:(0,t.cn)("not-prose flex flex-row items-center text-fd-card-foreground font-medium has-focus-visible:bg-fd-accent",e),...n,children:r})}function q({className:e,children:r,...n}){return(0,a.jsxs)(_,{className:(0,t.cn)("group flex flex-1 items-center gap-2 px-3 py-2.5 text-start focus-visible:outline-none",e),...n,children:[(0,a.jsx)(o.ChevronRight,{className:"size-4 shrink-0 text-fd-muted-foreground transition-transform duration-200 group-data-[state=open]:rotate-90"}),r]})}function Y({className:e,children:r,...n}){return(0,a.jsx)(U,{className:(0,t.cn)("overflow-hidden data-[state=closed]:animate-fd-accordion-up data-[state=open]:animate-fd-accordion-down",e),...n,children:r})}U.displayName=V;var X=e.i(985087);let J=(0,e.i(540796).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"}]]);function Q({id:e}){let[s,o]=(0,r.useCopyButton)(()=>{let t=new URL(window.location.href);return t.hash=e,navigator.clipboard.writeText(t.toString())});return(0,a.jsx)("button",{type:"button","aria-label":"Copy Link",className:(0,t.cn)((0,n.buttonVariants)({color:"ghost",className:"text-fd-muted-foreground me-2"})),onClick:o,children:s?(0,a.jsx)(X.Check,{className:"size-3.5"}):(0,a.jsx)(J,{className:"size-3.5"})})}e.s(["Accordion",0,function({title:e,id:t,value:r=String(e),children:n,...s}){return(0,a.jsxs)(G,{value:r,...s,children:[(0,a.jsxs)(K,{id:t,"data-accordion-value":r,children:[(0,a.jsx)(q,{children:e}),t?(0,a.jsx)(Q,{id:t}):null]}),(0,a.jsx)(Y,{children:(0,a.jsx)("div",{className:"px-4 pb-2 text-[0.9375rem] prose-no-margin",children:n})})]})},"Accordions",0,function({type:e="single",ref:r,className:n,defaultValue:o,...l}){let c=(0,i.useRef)(null),d=(0,s.mergeRefs)(r,c),[u,f]=(0,i.useState)(()=>"single"===e?o??"":o??[]);return(0,i.useEffect)(()=>{let e=window.location.hash.substring(1),t=c.current;if(!t||0===e.length)return;let r=document.getElementById(e);if(!r||!t.contains(r))return;let n=r.getAttribute("data-accordion-value");n&&f(e=>"string"==typeof e?n:[n,...e])},[]),(0,a.jsx)(W,{type:e,ref:d,value:u,onValueChange:f,collapsible:"single"===e||void 0,className:(0,t.cn)("divide-y divide-fd-border overflow-hidden rounded-lg border bg-fd-card",n),...l})}],96145)},619328,e=>{"use strict";var t=e.i(972395),r=e.i(393347),n=e.i(335718),s=e.i(428184),a=e.i(540796);let o=(0,a.default)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]),i=(0,a.default)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),l=(0,a.default)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]),c=(0,e.i(294237).cva)("flex flex-row items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-fd-accent hover:text-fd-accent-foreground [&_svg]:size-4");e.s(["File",0,function({name:e,icon:r=(0,s.jsx)(o,{}),className:n,...a}){return(0,s.jsxs)("div",{className:(0,t.cn)(c({className:n})),...a,children:[r,e]})},"Files",0,function({className:e,...r}){return(0,s.jsx)("div",{className:(0,t.cn)("not-prose rounded-md border bg-fd-card p-2",e),...r,children:r.children})},"Folder",0,function({name:e,defaultOpen:a=!1,...o}
1){let[d,u]=(0,n.useState)(a);return(0,s.jsxs)(r.Collapsible,{open:d,onOpenChange:u,...o,children:[(0,s.jsxs)(r.CollapsibleTrigger,{className:(0,t.cn)(c({className:"w-full"})),children:[d?(0,s.jsx)(l,{}):(0,s.jsx)(i,{}),e]}),(0,s.jsx)(r.CollapsibleContent,{children:(0,s.jsx)("div",{className:"ms-2 flex flex-col border-l ps-2",children:o.children})})]})}],619328)},887900,e=>{"use strict";var t=e.i(428184),r=e.i(335718),n=e.i(821957);let s=new Map;function a(e,t){let r=s.get(e);if(r)return r;let n=t();return s.set(e,n),n}function o({chart:s}){let i=(0,r.useId)(),{resolvedTheme:l}=(0,n.useTheme)(),{default:c}=(0,r.use)(a("mermaid",()=>e.A(890793)));c.initialize({startOnLoad:!1,securityLevel:"loose",fontFamily:"inherit",themeCSS:"margin: 1.5rem auto 0;",theme:"dark"===l?"dark":"default"});let{svg:d,bindFunctions:u}=(0,r.use)(a(`${s}-${l}`,()=>c.render(i,s.replaceAll("\\n","\n"))));return(0,t.jsx)("div",{ref:e=>{e&&u?.(e)},dangerouslySetInnerHTML:{__html:d}})}e.s(["Mermaid",0,function({chart:e}){let[n,s]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{s(!0)},[]),n)return(0,t.jsx)(o,{chart:e})}])},548248,e=>{"use strict";var t=e.i(428184),r=e.i(335718),n=e.i(301123),s=e.i(201439),a=e.i(363160),o=e.i(210918);let i=(0,o.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"}]]),l=(0,o.default)("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]);var c=e.i(7284),d=e.i(243796),u=e.i(130581),f=e.i(184434),h=e.i(294237);let x=new Map,p=(0,h.cva)("text-sm p-2 rounded-lg inline-flex items-center gap-2 hover:text-fd-accent-foreground hover:bg-fd-accent [&_svg]:size-4");e.s(["LLMCopyButton",0,function({markdownUrl:e}){let[s,o]=(0,r.useState)(!1),[i,l]=(0,d.useCopyButton)(async()=>{let t=x.get(e);if(t)return navigator.clipboard.writeText(t);o(!0);try{await navigator.clipboard.write([new ClipboardItem({"text/plain":fetch(e).then(async t=>{let r=await t.text();return x.set(e,r),r})})])}finally{o(!1)}});return(0,t.jsxs)("button",{disabled:s,className:(0,c.clsx)((0,u.buttonVariants)({color:"secondary",size:"sm",className:"gap-2 [&_svg]:size-3.5 [&_svg]:text-fd-muted-foreground"})),onClick:l,children:[i?(0,t.jsx)(n.Check,{}):(0,t.jsx)(a.Copy,{}),"Copy Markdown"]})},"ViewOptions",0,function({markdownUrl:e,githubUrl:n}){let a=(0,r.useMemo)(()=>{let r=new URL(e,window.location.origin),s=`Read ${r}, I want to ask questions about it.`;return[{title:"Open in GitHub",href:n,icon:(0,t.jsxs)("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",children:[(0,t.jsx)("title",{children:"GitHub"}),(0,t.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"})]})},{title:"Open in Scira AI",href:`https://scira.ai/?${new URLSearchParams({q:s})}`,icon:(0,t.jsxs)("svg",{width:"910",height:"934",viewBox:"0 0 910 934",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("title",{children:"Scira AI"}),(0,t.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,t.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,t.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,t.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,t.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,t.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,t.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:"Open in ChatGPT",href:`https://chatgpt.com/?${new URLSearchParams({hints:"search",q:s})}
1`,icon:(0,t.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("title",{children:"OpenAI"}),(0,t.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:"Open in Claude",href:`https://claude.ai/new?${new URLSearchParams({q:s})}`,icon:(0,t.jsxs)("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("title",{children:"Anthropic"}),(0,t.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:"Open in T3 Chat",href:`https://t3.chat/new?${new URLSearchParams({q:s})}`,icon:(0,t.jsx)(l,{})}]},[n,e]);return(0,t.jsxs)(f.Popover,{children:[(0,t.jsxs)(f.PopoverTrigger,{className:(0,c.clsx)((0,u.buttonVariants)({color:"secondary",size:"sm",className:"gap-2"})),children:["Open",(0,t.jsx)(s.ChevronDown,{className:"size-3.5 text-fd-muted-foreground"})]}),(0,t.jsx)(f.PopoverContent,{className:"flex flex-col",children:a.map(e=>(0,t.jsxs)("a",{href:e.href,rel:"noreferrer noopener",target:"_blank",className:(0,c.clsx)(p()),children:[e.icon,e.title,(0,t.jsx)(i,{className:"text-fd-muted-foreground size-3.5 ms-auto"})]},e.href))})]})}],548248)}]);

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.